diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a4c181e7..61f47a1c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,6 +1,10 @@ name: Run tests -on: [pull_request, push] +on: + pull_request: + push: + branches: + - main jobs: unit: @@ -11,7 +15,7 @@ jobs: go-version: [ '1.18', '1.23' ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Go uses: actions/setup-go@v5 diff --git a/api/.openapi-generator/FILES b/api/.openapi-generator/FILES index 415b281f..93de2866 100644 --- a/api/.openapi-generator/FILES +++ b/api/.openapi-generator/FILES @@ -15,6 +15,7 @@ api_bing_geocoders.go api_braintree_gateways.go api_braintree_payments.go api_bundles.go +api_buy_x_pay_y_promotions.go api_captures.go api_carrier_accounts.go api_checkout_com_gateways.go @@ -23,6 +24,7 @@ api_cleanups.go api_coupon_codes_promotion_rules.go api_coupon_recipients.go api_coupons.go +api_custom_promotion_rules.go api_customer_addresses.go api_customer_groups.go api_customer_password_resets.go @@ -39,6 +41,7 @@ api_external_promotions.go api_external_tax_calculators.go api_fixed_amount_promotions.go api_fixed_price_promotions.go +api_flex_promotions.go api_free_gift_promotions.go api_free_shipping_promotions.go api_geocoders.go @@ -56,6 +59,7 @@ api_klarna_gateways.go api_klarna_payments.go api_line_item_options.go api_line_items.go +api_links.go api_manual_gateways.go api_manual_tax_calculators.go api_markets.go @@ -65,7 +69,6 @@ api_order_copies.go api_order_factories.go api_order_subscription_items.go api_order_subscriptions.go -api_order_validation_rules.go api_orders.go api_organization.go api_packages.go @@ -73,10 +76,12 @@ api_parcel_line_items.go api_parcels.go api_payment_gateways.go api_payment_methods.go +api_payment_options.go api_paypal_gateways.go api_paypal_payments.go api_percentage_discount_promotions.go api_price_frequency_tiers.go +api_price_list_schedulers.go api_price_lists.go api_price_tiers.go api_price_volume_tiers.go @@ -85,6 +90,8 @@ api_promotion_rules.go api_promotions.go api_recurring_order_copies.go api_refunds.go +api_reserved_stocks.go +api_resource_errors.go api_return_line_items.go api_returns.go api_satispay_gateways.go @@ -104,15 +111,18 @@ api_skus.go api_stock_items.go api_stock_line_items.go api_stock_locations.go +api_stock_reservations.go api_stock_transfers.go api_stripe_gateways.go api_stripe_payments.go api_subscription_models.go +api_tags.go api_tax_calculators.go api_tax_categories.go api_tax_rules.go api_taxjar_accounts.go api_transactions.go +api_versions.go api_voids.go api_webhooks.go api_wire_transfers.go @@ -123,10 +133,17 @@ docs/AddressCreate.md docs/AddressCreateData.md docs/AddressCreateDataRelationships.md docs/AddressCreateDataRelationshipsGeocoder.md +docs/AddressCreateDataRelationshipsTags.md docs/AddressData.md docs/AddressDataRelationships.md +docs/AddressDataRelationshipsEvents.md +docs/AddressDataRelationshipsEventsData.md docs/AddressDataRelationshipsGeocoder.md docs/AddressDataRelationshipsGeocoderData.md +docs/AddressDataRelationshipsTags.md +docs/AddressDataRelationshipsTagsData.md +docs/AddressDataRelationshipsVersions.md +docs/AddressDataRelationshipsVersionsData.md docs/AddressUpdate.md docs/AddressUpdateData.md docs/AddressesApi.md @@ -134,6 +151,7 @@ docs/Adjustment.md docs/AdjustmentCreate.md docs/AdjustmentCreateData.md docs/AdjustmentData.md +docs/AdjustmentDataRelationships.md docs/AdjustmentUpdate.md docs/AdjustmentUpdateData.md docs/AdjustmentsApi.md @@ -185,10 +203,10 @@ docs/AttachmentsApi.md docs/Authorization.md docs/AuthorizationData.md docs/AuthorizationDataRelationships.md +docs/AuthorizationDataRelationshipsAttachments.md +docs/AuthorizationDataRelationshipsAttachmentsData.md docs/AuthorizationDataRelationshipsCaptures.md docs/AuthorizationDataRelationshipsCapturesData.md -docs/AuthorizationDataRelationshipsEvents.md -docs/AuthorizationDataRelationshipsEventsData.md docs/AuthorizationDataRelationshipsVoids.md docs/AuthorizationDataRelationshipsVoidsData.md docs/AuthorizationUpdate.md @@ -201,8 +219,6 @@ docs/AvalaraAccountCreateDataRelationships.md docs/AvalaraAccountCreateDataRelationshipsTaxCategories.md docs/AvalaraAccountData.md docs/AvalaraAccountDataRelationships.md -docs/AvalaraAccountDataRelationshipsAttachments.md -docs/AvalaraAccountDataRelationshipsAttachmentsData.md docs/AvalaraAccountDataRelationshipsMarkets.md docs/AvalaraAccountDataRelationshipsMarketsData.md docs/AvalaraAccountDataRelationshipsTaxCategories.md @@ -282,7 +298,34 @@ docs/BundleDataRelationshipsSkus.md docs/BundleDataRelationshipsSkusData.md docs/BundleUpdate.md docs/BundleUpdateData.md +docs/BundleUpdateDataRelationships.md docs/BundlesApi.md +docs/BuyXPayYPromotion.md +docs/BuyXPayYPromotionCreate.md +docs/BuyXPayYPromotionCreateData.md +docs/BuyXPayYPromotionCreateDataRelationships.md +docs/BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule.md +docs/BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule.md +docs/BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule.md +docs/BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule.md +docs/BuyXPayYPromotionData.md +docs/BuyXPayYPromotionDataRelationships.md +docs/BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule.md +docs/BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData.md +docs/BuyXPayYPromotionDataRelationshipsCoupons.md +docs/BuyXPayYPromotionDataRelationshipsCouponsData.md +docs/BuyXPayYPromotionDataRelationshipsCustomPromotionRule.md +docs/BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData.md +docs/BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule.md +docs/BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData.md +docs/BuyXPayYPromotionDataRelationshipsPromotionRules.md +docs/BuyXPayYPromotionDataRelationshipsPromotionRulesData.md +docs/BuyXPayYPromotionDataRelationshipsSkuListPromotionRule.md +docs/BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData.md +docs/BuyXPayYPromotionUpdate.md +docs/BuyXPayYPromotionUpdateData.md +docs/BuyXPayYPromotionUpdateDataRelationships.md +docs/BuyXPayYPromotionsApi.md docs/Capture.md docs/CaptureData.md docs/CaptureDataRelationships.md @@ -290,11 +333,17 @@ docs/CaptureDataRelationshipsReferenceAuthorization.md docs/CaptureDataRelationshipsReferenceAuthorizationData.md docs/CaptureDataRelationshipsRefunds.md docs/CaptureDataRelationshipsRefundsData.md +docs/CaptureDataRelationshipsReturn.md +docs/CaptureDataRelationshipsReturnData.md docs/CaptureUpdate.md docs/CaptureUpdateData.md docs/CapturesApi.md docs/CarrierAccount.md +docs/CarrierAccountCreate.md +docs/CarrierAccountCreateData.md docs/CarrierAccountData.md +docs/CarrierAccountUpdate.md +docs/CarrierAccountUpdateData.md docs/CarrierAccountsApi.md docs/CheckoutComGateway.md docs/CheckoutComGatewayCreate.md @@ -320,6 +369,8 @@ docs/CleanupCreate.md docs/CleanupCreateData.md docs/CleanupData.md docs/CleanupDataRelationships.md +docs/CleanupUpdate.md +docs/CleanupUpdateData.md docs/CleanupsApi.md docs/Coupon.md docs/CouponCodesPromotionRule.md @@ -330,8 +381,6 @@ docs/CouponCodesPromotionRuleCreateDataRelationshipsCoupons.md docs/CouponCodesPromotionRuleCreateDataRelationshipsPromotion.md docs/CouponCodesPromotionRuleData.md docs/CouponCodesPromotionRuleDataRelationships.md -docs/CouponCodesPromotionRuleDataRelationshipsCoupons.md -docs/CouponCodesPromotionRuleDataRelationshipsCouponsData.md docs/CouponCodesPromotionRuleDataRelationshipsPromotion.md docs/CouponCodesPromotionRuleDataRelationshipsPromotionData.md docs/CouponCodesPromotionRuleUpdate.md @@ -341,11 +390,11 @@ docs/CouponCodesPromotionRulesApi.md docs/CouponCreate.md docs/CouponCreateData.md docs/CouponCreateDataRelationships.md -docs/CouponCreateDataRelationshipsPromotionRule.md +docs/CouponCreateDataRelationshipsCouponRecipient.md docs/CouponData.md docs/CouponDataRelationships.md -docs/CouponDataRelationshipsPromotionRule.md -docs/CouponDataRelationshipsPromotionRuleData.md +docs/CouponDataRelationshipsCouponRecipient.md +docs/CouponDataRelationshipsCouponRecipientData.md docs/CouponRecipient.md docs/CouponRecipientCreate.md docs/CouponRecipientCreateData.md @@ -362,6 +411,16 @@ docs/CouponUpdate.md docs/CouponUpdateData.md docs/CouponUpdateDataRelationships.md docs/CouponsApi.md +docs/CustomPromotionRule.md +docs/CustomPromotionRuleCreate.md +docs/CustomPromotionRuleCreateData.md +docs/CustomPromotionRuleCreateDataRelationships.md +docs/CustomPromotionRuleData.md +docs/CustomPromotionRuleDataRelationships.md +docs/CustomPromotionRuleUpdate.md +docs/CustomPromotionRuleUpdateData.md +docs/CustomPromotionRuleUpdateDataRelationships.md +docs/CustomPromotionRulesApi.md docs/Customer.md docs/CustomerAddress.md docs/CustomerAddressCreate.md @@ -390,8 +449,6 @@ docs/CustomerDataRelationshipsCustomerSubscriptions.md docs/CustomerDataRelationshipsCustomerSubscriptionsData.md docs/CustomerDataRelationshipsOrderSubscriptions.md docs/CustomerDataRelationshipsOrderSubscriptionsData.md -docs/CustomerDataRelationshipsReturns.md -docs/CustomerDataRelationshipsReturnsData.md docs/CustomerGroup.md docs/CustomerGroupCreate.md docs/CustomerGroupCreateData.md @@ -412,6 +469,7 @@ docs/CustomerPaymentSource.md docs/CustomerPaymentSourceCreate.md docs/CustomerPaymentSourceCreateData.md docs/CustomerPaymentSourceCreateDataRelationships.md +docs/CustomerPaymentSourceCreateDataRelationshipsPaymentMethod.md docs/CustomerPaymentSourceCreateDataRelationshipsPaymentSource.md docs/CustomerPaymentSourceData.md docs/CustomerPaymentSourceDataRelationships.md @@ -425,6 +483,7 @@ docs/CustomerSubscription.md docs/CustomerSubscriptionCreate.md docs/CustomerSubscriptionCreateData.md docs/CustomerSubscriptionData.md +docs/CustomerSubscriptionDataRelationships.md docs/CustomerSubscriptionUpdate.md docs/CustomerSubscriptionUpdateData.md docs/CustomerSubscriptionsApi.md @@ -458,11 +517,16 @@ docs/EventData.md docs/EventDataRelationships.md docs/EventDataRelationshipsLastEventCallbacks.md docs/EventDataRelationshipsLastEventCallbacksData.md +docs/EventUpdate.md +docs/EventUpdateData.md docs/EventsApi.md docs/Export.md docs/ExportCreate.md docs/ExportCreateData.md docs/ExportData.md +docs/ExportDataRelationships.md +docs/ExportUpdate.md +docs/ExportUpdateData.md docs/ExportsApi.md docs/ExternalGateway.md docs/ExternalGatewayCreate.md @@ -485,18 +549,7 @@ docs/ExternalPaymentsApi.md docs/ExternalPromotion.md docs/ExternalPromotionCreate.md docs/ExternalPromotionCreateData.md -docs/ExternalPromotionCreateDataRelationships.md -docs/ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule.md -docs/ExternalPromotionCreateDataRelationshipsPromotionRules.md -docs/ExternalPromotionCreateDataRelationshipsSkuListPromotionRule.md docs/ExternalPromotionData.md -docs/ExternalPromotionDataRelationships.md -docs/ExternalPromotionDataRelationshipsOrderAmountPromotionRule.md -docs/ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData.md -docs/ExternalPromotionDataRelationshipsPromotionRules.md -docs/ExternalPromotionDataRelationshipsPromotionRulesData.md -docs/ExternalPromotionDataRelationshipsSkuListPromotionRule.md -docs/ExternalPromotionDataRelationshipsSkuListPromotionRuleData.md docs/ExternalPromotionUpdate.md docs/ExternalPromotionUpdateData.md docs/ExternalPromotionsApi.md @@ -518,13 +571,19 @@ docs/FixedAmountPromotionsApi.md docs/FixedPricePromotion.md docs/FixedPricePromotionCreate.md docs/FixedPricePromotionCreateData.md -docs/FixedPricePromotionCreateDataRelationships.md docs/FixedPricePromotionData.md -docs/FixedPricePromotionDataRelationships.md docs/FixedPricePromotionUpdate.md docs/FixedPricePromotionUpdateData.md -docs/FixedPricePromotionUpdateDataRelationships.md docs/FixedPricePromotionsApi.md +docs/FlexPromotion.md +docs/FlexPromotionCreate.md +docs/FlexPromotionCreateData.md +docs/FlexPromotionCreateDataRelationships.md +docs/FlexPromotionData.md +docs/FlexPromotionDataRelationships.md +docs/FlexPromotionUpdate.md +docs/FlexPromotionUpdateData.md +docs/FlexPromotionsApi.md docs/FreeGiftPromotion.md docs/FreeGiftPromotionCreate.md docs/FreeGiftPromotionCreateData.md @@ -536,6 +595,7 @@ docs/FreeShippingPromotion.md docs/FreeShippingPromotionCreate.md docs/FreeShippingPromotionCreateData.md docs/FreeShippingPromotionData.md +docs/FreeShippingPromotionDataRelationships.md docs/FreeShippingPromotionUpdate.md docs/FreeShippingPromotionUpdateData.md docs/FreeShippingPromotionsApi.md @@ -567,10 +627,10 @@ docs/GETAuthorizationsAuthorizationId200Response.md docs/GETAuthorizationsAuthorizationId200ResponseData.md docs/GETAuthorizationsAuthorizationId200ResponseDataAttributes.md docs/GETAuthorizationsAuthorizationId200ResponseDataRelationships.md +docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md +docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData.md docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsCaptures.md docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsCapturesData.md -docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md -docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData.md docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsVoids.md docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsVoidsData.md docs/GETAvalaraAccounts200Response.md @@ -605,6 +665,10 @@ docs/GETBundles200Response.md docs/GETBundlesBundleId200Response.md docs/GETBundlesBundleId200ResponseData.md docs/GETBundlesBundleId200ResponseDataAttributes.md +docs/GETBuyXPayYPromotions200Response.md +docs/GETBuyXPayYPromotionsBuyXPayYPromotionId200Response.md +docs/GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData.md +docs/GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes.md docs/GETCaptures200Response.md docs/GETCapturesCaptureId200Response.md docs/GETCapturesCaptureId200ResponseData.md @@ -614,6 +678,8 @@ docs/GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization.md docs/GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorizationData.md docs/GETCapturesCaptureId200ResponseDataRelationshipsRefunds.md docs/GETCapturesCaptureId200ResponseDataRelationshipsRefundsData.md +docs/GETCapturesCaptureId200ResponseDataRelationshipsReturn.md +docs/GETCapturesCaptureId200ResponseDataRelationshipsReturnData.md docs/GETCarrierAccounts200Response.md docs/GETCarrierAccountsCarrierAccountId200Response.md docs/GETCarrierAccountsCarrierAccountId200ResponseData.md @@ -633,6 +699,7 @@ docs/GETCleanupsCleanupId200ResponseDataAttributes.md docs/GETCouponCodesPromotionRules200Response.md docs/GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200Response.md docs/GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData.md +docs/GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes.md docs/GETCouponRecipients200Response.md docs/GETCouponRecipientsCouponRecipientId200Response.md docs/GETCouponRecipientsCouponRecipientId200ResponseData.md @@ -641,6 +708,10 @@ docs/GETCoupons200Response.md docs/GETCouponsCouponId200Response.md docs/GETCouponsCouponId200ResponseData.md docs/GETCouponsCouponId200ResponseDataAttributes.md +docs/GETCustomPromotionRules200Response.md +docs/GETCustomPromotionRulesCustomPromotionRuleId200Response.md +docs/GETCustomPromotionRulesCustomPromotionRuleId200ResponseData.md +docs/GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes.md docs/GETCustomerAddresses200Response.md docs/GETCustomerAddressesCustomerAddressId200Response.md docs/GETCustomerAddressesCustomerAddressId200ResponseData.md @@ -713,6 +784,10 @@ docs/GETFixedPricePromotions200Response.md docs/GETFixedPricePromotionsFixedPricePromotionId200Response.md docs/GETFixedPricePromotionsFixedPricePromotionId200ResponseData.md docs/GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes.md +docs/GETFlexPromotions200Response.md +docs/GETFlexPromotionsFlexPromotionId200Response.md +docs/GETFlexPromotionsFlexPromotionId200ResponseData.md +docs/GETFlexPromotionsFlexPromotionId200ResponseDataAttributes.md docs/GETFreeGiftPromotions200Response.md docs/GETFreeGiftPromotionsFreeGiftPromotionId200Response.md docs/GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData.md @@ -770,6 +845,10 @@ docs/GETLineItems200Response.md docs/GETLineItemsLineItemId200Response.md docs/GETLineItemsLineItemId200ResponseData.md docs/GETLineItemsLineItemId200ResponseDataAttributes.md +docs/GETLinks200Response.md +docs/GETLinksLinkId200Response.md +docs/GETLinksLinkId200ResponseData.md +docs/GETLinksLinkId200ResponseDataAttributes.md docs/GETManualGateways200Response.md docs/GETManualGatewaysManualGatewayId200Response.md docs/GETManualGatewaysManualGatewayId200ResponseData.md @@ -806,9 +885,6 @@ docs/GETOrderSubscriptions200Response.md docs/GETOrderSubscriptionsOrderSubscriptionId200Response.md docs/GETOrderSubscriptionsOrderSubscriptionId200ResponseData.md docs/GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes.md -docs/GETOrderValidationRules200Response.md -docs/GETOrderValidationRulesOrderValidationRuleId200Response.md -docs/GETOrderValidationRulesOrderValidationRuleId200ResponseData.md docs/GETOrders200Response.md docs/GETOrdersOrderId200Response.md docs/GETOrdersOrderId200ResponseData.md @@ -835,6 +911,10 @@ docs/GETPaymentMethods200Response.md docs/GETPaymentMethodsPaymentMethodId200Response.md docs/GETPaymentMethodsPaymentMethodId200ResponseData.md docs/GETPaymentMethodsPaymentMethodId200ResponseDataAttributes.md +docs/GETPaymentOptions200Response.md +docs/GETPaymentOptionsPaymentOptionId200Response.md +docs/GETPaymentOptionsPaymentOptionId200ResponseData.md +docs/GETPaymentOptionsPaymentOptionId200ResponseDataAttributes.md docs/GETPaypalGateways200Response.md docs/GETPaypalGatewaysPaypalGatewayId200Response.md docs/GETPaypalGatewaysPaypalGatewayId200ResponseData.md @@ -850,6 +930,10 @@ docs/GETPriceFrequencyTiers200Response.md docs/GETPriceFrequencyTiersPriceFrequencyTierId200Response.md docs/GETPriceFrequencyTiersPriceFrequencyTierId200ResponseData.md docs/GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes.md +docs/GETPriceListSchedulers200Response.md +docs/GETPriceListSchedulersPriceListSchedulerId200Response.md +docs/GETPriceListSchedulersPriceListSchedulerId200ResponseData.md +docs/GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes.md docs/GETPriceLists200Response.md docs/GETPriceListsPriceListId200Response.md docs/GETPriceListsPriceListId200ResponseData.md @@ -883,6 +967,20 @@ docs/GETRefundsRefundId200ResponseDataAttributes.md docs/GETRefundsRefundId200ResponseDataRelationships.md docs/GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture.md docs/GETRefundsRefundId200ResponseDataRelationshipsReferenceCaptureData.md +docs/GETReservedStocks200Response.md +docs/GETReservedStocksReservedStockId200Response.md +docs/GETReservedStocksReservedStockId200ResponseData.md +docs/GETReservedStocksReservedStockId200ResponseDataAttributes.md +docs/GETReservedStocksReservedStockId200ResponseDataRelationships.md +docs/GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem.md +docs/GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData.md +docs/GETResourceErrors200Response.md +docs/GETResourceErrorsResourceErrorId200Response.md +docs/GETResourceErrorsResourceErrorId200ResponseData.md +docs/GETResourceErrorsResourceErrorId200ResponseDataAttributes.md +docs/GETResourceErrorsResourceErrorId200ResponseDataRelationships.md +docs/GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource.md +docs/GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData.md docs/GETReturnLineItems200Response.md docs/GETReturnLineItemsReturnLineItemId200Response.md docs/GETReturnLineItemsReturnLineItemId200ResponseData.md @@ -903,15 +1001,6 @@ docs/GETShipments200Response.md docs/GETShipmentsShipmentId200Response.md docs/GETShipmentsShipmentId200ResponseData.md docs/GETShipmentsShipmentId200ResponseDataAttributes.md -docs/GETShipmentsShipmentId200ResponseDataRelationships.md -docs/GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods.md -docs/GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData.md -docs/GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts.md -docs/GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData.md -docs/GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime.md -docs/GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData.md -docs/GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory.md -docs/GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData.md docs/GETShippingCategories200Response.md docs/GETShippingCategoriesShippingCategoryId200Response.md docs/GETShippingCategoriesShippingCategoryId200ResponseData.md @@ -960,13 +1049,14 @@ docs/GETStockLineItems200Response.md docs/GETStockLineItemsStockLineItemId200Response.md docs/GETStockLineItemsStockLineItemId200ResponseData.md docs/GETStockLineItemsStockLineItemId200ResponseDataAttributes.md -docs/GETStockLineItemsStockLineItemId200ResponseDataRelationships.md -docs/GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem.md -docs/GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData.md docs/GETStockLocations200Response.md docs/GETStockLocationsStockLocationId200Response.md docs/GETStockLocationsStockLocationId200ResponseData.md docs/GETStockLocationsStockLocationId200ResponseDataAttributes.md +docs/GETStockReservations200Response.md +docs/GETStockReservationsStockReservationId200Response.md +docs/GETStockReservationsStockReservationId200ResponseData.md +docs/GETStockReservationsStockReservationId200ResponseDataAttributes.md docs/GETStockTransfers200Response.md docs/GETStockTransfersStockTransferId200Response.md docs/GETStockTransfersStockTransferId200ResponseData.md @@ -983,6 +1073,10 @@ docs/GETSubscriptionModels200Response.md docs/GETSubscriptionModelsSubscriptionModelId200Response.md docs/GETSubscriptionModelsSubscriptionModelId200ResponseData.md docs/GETSubscriptionModelsSubscriptionModelId200ResponseDataAttributes.md +docs/GETTags200Response.md +docs/GETTagsTagId200Response.md +docs/GETTagsTagId200ResponseData.md +docs/GETTagsTagId200ResponseDataAttributes.md docs/GETTaxCalculators200Response.md docs/GETTaxCalculatorsTaxCalculatorId200Response.md docs/GETTaxCalculatorsTaxCalculatorId200ResponseData.md @@ -1001,6 +1095,10 @@ docs/GETTransactions200Response.md docs/GETTransactionsTransactionId200Response.md docs/GETTransactionsTransactionId200ResponseData.md docs/GETTransactionsTransactionId200ResponseDataRelationships.md +docs/GETVersions200Response.md +docs/GETVersionsVersionId200Response.md +docs/GETVersionsVersionId200ResponseData.md +docs/GETVersionsVersionId200ResponseDataAttributes.md docs/GETVoids200Response.md docs/GETVoidsVoidId200Response.md docs/GETVoidsVoidId200ResponseData.md @@ -1047,6 +1145,8 @@ docs/HasOneApi.md docs/ImportCreate.md docs/ImportCreateData.md docs/ImportData.md +docs/ImportUpdate.md +docs/ImportUpdateData.md docs/ImportsApi.md docs/InStockSubscription.md docs/InStockSubscriptionCreate.md @@ -1117,14 +1217,24 @@ docs/LineItemCreateDataRelationships.md docs/LineItemCreateDataRelationshipsItem.md docs/LineItemData.md docs/LineItemDataRelationships.md +docs/LineItemDataRelationshipsAdjustment.md +docs/LineItemDataRelationshipsAdjustmentData.md +docs/LineItemDataRelationshipsBundle.md +docs/LineItemDataRelationshipsBundleData.md +docs/LineItemDataRelationshipsGiftCard.md +docs/LineItemDataRelationshipsGiftCardData.md docs/LineItemDataRelationshipsItem.md docs/LineItemDataRelationshipsItemData.md docs/LineItemDataRelationshipsLineItemOptions.md docs/LineItemDataRelationshipsLineItemOptionsData.md -docs/LineItemDataRelationshipsShipmentLineItems.md -docs/LineItemDataRelationshipsShipmentLineItemsData.md +docs/LineItemDataRelationshipsReturnLineItems.md +docs/LineItemDataRelationshipsReturnLineItemsData.md +docs/LineItemDataRelationshipsShipment.md +docs/LineItemDataRelationshipsShipmentData.md docs/LineItemDataRelationshipsStockLineItems.md docs/LineItemDataRelationshipsStockLineItemsData.md +docs/LineItemDataRelationshipsStockReservations.md +docs/LineItemDataRelationshipsStockReservationsData.md docs/LineItemDataRelationshipsStockTransfers.md docs/LineItemDataRelationshipsStockTransfersData.md docs/LineItemOption.md @@ -1146,6 +1256,19 @@ docs/LineItemOptionsApi.md docs/LineItemUpdate.md docs/LineItemUpdateData.md docs/LineItemsApi.md +docs/Link.md +docs/LinkCreate.md +docs/LinkCreateData.md +docs/LinkCreateDataRelationships.md +docs/LinkCreateDataRelationshipsItem.md +docs/LinkData.md +docs/LinkDataRelationships.md +docs/LinkDataRelationshipsItem.md +docs/LinkDataRelationshipsItemData.md +docs/LinkUpdate.md +docs/LinkUpdateData.md +docs/LinkUpdateDataRelationships.md +docs/LinksApi.md docs/ManualGateway.md docs/ManualGatewayCreate.md docs/ManualGatewayCreateData.md @@ -1180,6 +1303,8 @@ docs/MarketDataRelationshipsMerchant.md docs/MarketDataRelationshipsMerchantData.md docs/MarketDataRelationshipsPriceList.md docs/MarketDataRelationshipsPriceListData.md +docs/MarketDataRelationshipsPriceListSchedulers.md +docs/MarketDataRelationshipsPriceListSchedulersData.md docs/MarketDataRelationshipsSubscriptionModel.md docs/MarketDataRelationshipsSubscriptionModelData.md docs/MarketDataRelationshipsTaxCalculator.md @@ -1205,12 +1330,9 @@ docs/Order.md docs/OrderAmountPromotionRule.md docs/OrderAmountPromotionRuleCreate.md docs/OrderAmountPromotionRuleCreateData.md -docs/OrderAmountPromotionRuleCreateDataRelationships.md docs/OrderAmountPromotionRuleData.md -docs/OrderAmountPromotionRuleDataRelationships.md docs/OrderAmountPromotionRuleUpdate.md docs/OrderAmountPromotionRuleUpdateData.md -docs/OrderAmountPromotionRuleUpdateDataRelationships.md docs/OrderAmountPromotionRulesApi.md docs/OrderCopiesApi.md docs/OrderCopy.md @@ -1224,14 +1346,16 @@ docs/OrderCopyUpdateData.md docs/OrderCreate.md docs/OrderCreateData.md docs/OrderCreateDataRelationships.md -docs/OrderCreateDataRelationshipsPaymentMethod.md docs/OrderData.md docs/OrderDataRelationships.md -docs/OrderDataRelationshipsAvailableFreeBundles.md -docs/OrderDataRelationshipsAvailableFreeBundlesData.md +docs/OrderDataRelationshipsLinks.md +docs/OrderDataRelationshipsLinksData.md docs/OrderDataRelationshipsOrderCopies.md -docs/OrderDataRelationshipsShipments.md -docs/OrderDataRelationshipsShipmentsData.md +docs/OrderDataRelationshipsOrderCopiesData.md +docs/OrderDataRelationshipsPaymentOptions.md +docs/OrderDataRelationshipsPaymentOptionsData.md +docs/OrderDataRelationshipsResourceErrors.md +docs/OrderDataRelationshipsResourceErrorsData.md docs/OrderDataRelationshipsTransactions.md docs/OrderDataRelationshipsTransactionsData.md docs/OrderFactoriesApi.md @@ -1244,8 +1368,6 @@ docs/OrderSubscriptionCreateData.md docs/OrderSubscriptionCreateDataRelationships.md docs/OrderSubscriptionData.md docs/OrderSubscriptionDataRelationships.md -docs/OrderSubscriptionDataRelationshipsOrderCopies.md -docs/OrderSubscriptionDataRelationshipsOrderCopiesData.md docs/OrderSubscriptionDataRelationshipsOrderFactories.md docs/OrderSubscriptionDataRelationshipsOrderFactoriesData.md docs/OrderSubscriptionDataRelationshipsOrderSubscriptionItems.md @@ -1256,6 +1378,8 @@ docs/OrderSubscriptionItem.md docs/OrderSubscriptionItemCreate.md docs/OrderSubscriptionItemCreateData.md docs/OrderSubscriptionItemCreateDataRelationships.md +docs/OrderSubscriptionItemCreateDataRelationshipsAdjustment.md +docs/OrderSubscriptionItemCreateDataRelationshipsBundle.md docs/OrderSubscriptionItemCreateDataRelationshipsItem.md docs/OrderSubscriptionItemCreateDataRelationshipsOrderSubscription.md docs/OrderSubscriptionItemData.md @@ -1272,9 +1396,6 @@ docs/OrderSubscriptionUpdateDataRelationshipsCustomerPaymentSource.md docs/OrderSubscriptionsApi.md docs/OrderUpdate.md docs/OrderUpdateData.md -docs/OrderValidationRule.md -docs/OrderValidationRuleData.md -docs/OrderValidationRulesApi.md docs/OrdersApi.md docs/Organization.md docs/OrganizationApi.md @@ -1321,15 +1442,23 @@ docs/PATCHBraintreePaymentsBraintreePaymentId200ResponseDataAttributes.md docs/PATCHBundlesBundleId200Response.md docs/PATCHBundlesBundleId200ResponseData.md docs/PATCHBundlesBundleId200ResponseDataAttributes.md +docs/PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response.md +docs/PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData.md +docs/PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes.md docs/PATCHCapturesCaptureId200Response.md docs/PATCHCapturesCaptureId200ResponseData.md docs/PATCHCapturesCaptureId200ResponseDataAttributes.md +docs/PATCHCarrierAccountsCarrierAccountId200Response.md +docs/PATCHCarrierAccountsCarrierAccountId200ResponseData.md +docs/PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes.md docs/PATCHCheckoutComGatewaysCheckoutComGatewayId200Response.md docs/PATCHCheckoutComGatewaysCheckoutComGatewayId200ResponseData.md docs/PATCHCheckoutComGatewaysCheckoutComGatewayId200ResponseDataAttributes.md docs/PATCHCheckoutComPaymentsCheckoutComPaymentId200Response.md docs/PATCHCheckoutComPaymentsCheckoutComPaymentId200ResponseData.md docs/PATCHCheckoutComPaymentsCheckoutComPaymentId200ResponseDataAttributes.md +docs/PATCHCleanupsCleanupId200Response.md +docs/PATCHCleanupsCleanupId200ResponseData.md docs/PATCHCouponCodesPromotionRulesCouponCodesPromotionRuleId200Response.md docs/PATCHCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData.md docs/PATCHCouponRecipientsCouponRecipientId200Response.md @@ -1338,6 +1467,9 @@ docs/PATCHCouponRecipientsCouponRecipientId200ResponseDataAttributes.md docs/PATCHCouponsCouponId200Response.md docs/PATCHCouponsCouponId200ResponseData.md docs/PATCHCouponsCouponId200ResponseDataAttributes.md +docs/PATCHCustomPromotionRulesCustomPromotionRuleId200Response.md +docs/PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData.md +docs/PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes.md docs/PATCHCustomerAddressesCustomerAddressId200Response.md docs/PATCHCustomerAddressesCustomerAddressId200ResponseData.md docs/PATCHCustomerGroupsCustomerGroupId200Response.md @@ -1348,14 +1480,21 @@ docs/PATCHCustomerPasswordResetsCustomerPasswordResetId200ResponseData.md docs/PATCHCustomerPasswordResetsCustomerPasswordResetId200ResponseDataAttributes.md docs/PATCHCustomerPaymentSourcesCustomerPaymentSourceId200Response.md docs/PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData.md +docs/PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes.md docs/PATCHCustomerSubscriptionsCustomerSubscriptionId200Response.md docs/PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData.md +docs/PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes.md docs/PATCHCustomersCustomerId200Response.md docs/PATCHCustomersCustomerId200ResponseData.md docs/PATCHCustomersCustomerId200ResponseDataAttributes.md docs/PATCHDeliveryLeadTimesDeliveryLeadTimeId200Response.md docs/PATCHDeliveryLeadTimesDeliveryLeadTimeId200ResponseData.md docs/PATCHDeliveryLeadTimesDeliveryLeadTimeId200ResponseDataAttributes.md +docs/PATCHEventsEventId200Response.md +docs/PATCHEventsEventId200ResponseData.md +docs/PATCHEventsEventId200ResponseDataAttributes.md +docs/PATCHExportsExportId200Response.md +docs/PATCHExportsExportId200ResponseData.md docs/PATCHExternalGatewaysExternalGatewayId200Response.md docs/PATCHExternalGatewaysExternalGatewayId200ResponseData.md docs/PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes.md @@ -1374,6 +1513,9 @@ docs/PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes.m docs/PATCHFixedPricePromotionsFixedPricePromotionId200Response.md docs/PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData.md docs/PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes.md +docs/PATCHFlexPromotionsFlexPromotionId200Response.md +docs/PATCHFlexPromotionsFlexPromotionId200ResponseData.md +docs/PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes.md docs/PATCHFreeGiftPromotionsFreeGiftPromotionId200Response.md docs/PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData.md docs/PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes.md @@ -1388,6 +1530,8 @@ docs/PATCHGiftCardsGiftCardId200ResponseDataAttributes.md docs/PATCHGoogleGeocodersGoogleGeocoderId200Response.md docs/PATCHGoogleGeocodersGoogleGeocoderId200ResponseData.md docs/PATCHGoogleGeocodersGoogleGeocoderId200ResponseDataAttributes.md +docs/PATCHImportsImportId200Response.md +docs/PATCHImportsImportId200ResponseData.md docs/PATCHInStockSubscriptionsInStockSubscriptionId200Response.md docs/PATCHInStockSubscriptionsInStockSubscriptionId200ResponseData.md docs/PATCHInStockSubscriptionsInStockSubscriptionId200ResponseDataAttributes.md @@ -1412,6 +1556,9 @@ docs/PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes.md docs/PATCHLineItemsLineItemId200Response.md docs/PATCHLineItemsLineItemId200ResponseData.md docs/PATCHLineItemsLineItemId200ResponseDataAttributes.md +docs/PATCHLinksLinkId200Response.md +docs/PATCHLinksLinkId200ResponseData.md +docs/PATCHLinksLinkId200ResponseDataAttributes.md docs/PATCHManualGatewaysManualGatewayId200Response.md docs/PATCHManualGatewaysManualGatewayId200ResponseData.md docs/PATCHManualGatewaysManualGatewayId200ResponseDataAttributes.md @@ -1449,6 +1596,9 @@ docs/PATCHParcelsParcelId200ResponseDataAttributes.md docs/PATCHPaymentMethodsPaymentMethodId200Response.md docs/PATCHPaymentMethodsPaymentMethodId200ResponseData.md docs/PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes.md +docs/PATCHPaymentOptionsPaymentOptionId200Response.md +docs/PATCHPaymentOptionsPaymentOptionId200ResponseData.md +docs/PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes.md docs/PATCHPaypalGatewaysPaypalGatewayId200Response.md docs/PATCHPaypalGatewaysPaypalGatewayId200ResponseData.md docs/PATCHPaypalGatewaysPaypalGatewayId200ResponseDataAttributes.md @@ -1461,6 +1611,9 @@ docs/PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDa docs/PATCHPriceFrequencyTiersPriceFrequencyTierId200Response.md docs/PATCHPriceFrequencyTiersPriceFrequencyTierId200ResponseData.md docs/PATCHPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes.md +docs/PATCHPriceListSchedulersPriceListSchedulerId200Response.md +docs/PATCHPriceListSchedulersPriceListSchedulerId200ResponseData.md +docs/PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes.md docs/PATCHPriceListsPriceListId200Response.md docs/PATCHPriceListsPriceListId200ResponseData.md docs/PATCHPriceListsPriceListId200ResponseDataAttributes.md @@ -1472,6 +1625,9 @@ docs/PATCHPricesPriceId200ResponseData.md docs/PATCHPricesPriceId200ResponseDataAttributes.md docs/PATCHRecurringOrderCopiesRecurringOrderCopyId200Response.md docs/PATCHRecurringOrderCopiesRecurringOrderCopyId200ResponseData.md +docs/PATCHRefundsRefundId200Response.md +docs/PATCHRefundsRefundId200ResponseData.md +docs/PATCHRefundsRefundId200ResponseDataAttributes.md docs/PATCHReturnLineItemsReturnLineItemId200Response.md docs/PATCHReturnLineItemsReturnLineItemId200ResponseData.md docs/PATCHReturnLineItemsReturnLineItemId200ResponseDataAttributes.md @@ -1516,9 +1672,15 @@ docs/PATCHSkusSkuId200ResponseDataAttributes.md docs/PATCHStockItemsStockItemId200Response.md docs/PATCHStockItemsStockItemId200ResponseData.md docs/PATCHStockItemsStockItemId200ResponseDataAttributes.md +docs/PATCHStockLineItemsStockLineItemId200Response.md +docs/PATCHStockLineItemsStockLineItemId200ResponseData.md +docs/PATCHStockLineItemsStockLineItemId200ResponseDataAttributes.md docs/PATCHStockLocationsStockLocationId200Response.md docs/PATCHStockLocationsStockLocationId200ResponseData.md docs/PATCHStockLocationsStockLocationId200ResponseDataAttributes.md +docs/PATCHStockReservationsStockReservationId200Response.md +docs/PATCHStockReservationsStockReservationId200ResponseData.md +docs/PATCHStockReservationsStockReservationId200ResponseDataAttributes.md docs/PATCHStockTransfersStockTransferId200Response.md docs/PATCHStockTransfersStockTransferId200ResponseData.md docs/PATCHStockTransfersStockTransferId200ResponseDataAttributes.md @@ -1531,6 +1693,9 @@ docs/PATCHStripePaymentsStripePaymentId200ResponseDataAttributes.md docs/PATCHSubscriptionModelsSubscriptionModelId200Response.md docs/PATCHSubscriptionModelsSubscriptionModelId200ResponseData.md docs/PATCHSubscriptionModelsSubscriptionModelId200ResponseDataAttributes.md +docs/PATCHTagsTagId200Response.md +docs/PATCHTagsTagId200ResponseData.md +docs/PATCHTagsTagId200ResponseDataAttributes.md docs/PATCHTaxCategoriesTaxCategoryId200Response.md docs/PATCHTaxCategoriesTaxCategoryId200ResponseData.md docs/PATCHTaxCategoriesTaxCategoryId200ResponseDataAttributes.md @@ -1540,6 +1705,8 @@ docs/PATCHTaxRulesTaxRuleId200ResponseDataAttributes.md docs/PATCHTaxjarAccountsTaxjarAccountId200Response.md docs/PATCHTaxjarAccountsTaxjarAccountId200ResponseData.md docs/PATCHTaxjarAccountsTaxjarAccountId200ResponseDataAttributes.md +docs/PATCHVoidsVoidId200Response.md +docs/PATCHVoidsVoidId200ResponseData.md docs/PATCHWebhooksWebhookId200Response.md docs/PATCHWebhooksWebhookId200ResponseData.md docs/PATCHWebhooksWebhookId200ResponseDataAttributes.md @@ -1550,12 +1717,19 @@ docs/POSTAddresses201ResponseData.md docs/POSTAddresses201ResponseDataAttributes.md docs/POSTAddresses201ResponseDataLinks.md docs/POSTAddresses201ResponseDataRelationships.md +docs/POSTAddresses201ResponseDataRelationshipsEvents.md +docs/POSTAddresses201ResponseDataRelationshipsEventsData.md docs/POSTAddresses201ResponseDataRelationshipsGeocoder.md docs/POSTAddresses201ResponseDataRelationshipsGeocoderData.md docs/POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md +docs/POSTAddresses201ResponseDataRelationshipsTags.md +docs/POSTAddresses201ResponseDataRelationshipsTagsData.md +docs/POSTAddresses201ResponseDataRelationshipsVersions.md +docs/POSTAddresses201ResponseDataRelationshipsVersionsData.md docs/POSTAdjustments201Response.md docs/POSTAdjustments201ResponseData.md docs/POSTAdjustments201ResponseDataAttributes.md +docs/POSTAdjustments201ResponseDataRelationships.md docs/POSTAdyenGateways201Response.md docs/POSTAdyenGateways201ResponseData.md docs/POSTAdyenGateways201ResponseDataAttributes.md @@ -1582,8 +1756,6 @@ docs/POSTAvalaraAccounts201Response.md docs/POSTAvalaraAccounts201ResponseData.md docs/POSTAvalaraAccounts201ResponseDataAttributes.md docs/POSTAvalaraAccounts201ResponseDataRelationships.md -docs/POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md -docs/POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData.md docs/POSTAvalaraAccounts201ResponseDataRelationshipsMarkets.md docs/POSTAvalaraAccounts201ResponseDataRelationshipsMarketsData.md docs/POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories.md @@ -1625,6 +1797,25 @@ docs/POSTBundles201ResponseDataRelationshipsSkuList.md docs/POSTBundles201ResponseDataRelationshipsSkuListData.md docs/POSTBundles201ResponseDataRelationshipsSkus.md docs/POSTBundles201ResponseDataRelationshipsSkusData.md +docs/POSTBuyXPayYPromotions201Response.md +docs/POSTBuyXPayYPromotions201ResponseData.md +docs/POSTBuyXPayYPromotions201ResponseDataAttributes.md +docs/POSTBuyXPayYPromotions201ResponseDataRelationships.md +docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule.md +docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData.md +docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons.md +docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData.md +docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule.md +docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData.md +docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule.md +docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData.md +docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules.md +docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData.md +docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule.md +docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData.md +docs/POSTCarrierAccounts201Response.md +docs/POSTCarrierAccounts201ResponseData.md +docs/POSTCarrierAccounts201ResponseDataAttributes.md docs/POSTCheckoutComGateways201Response.md docs/POSTCheckoutComGateways201ResponseData.md docs/POSTCheckoutComGateways201ResponseDataAttributes.md @@ -1641,8 +1832,6 @@ docs/POSTCleanups201ResponseDataRelationships.md docs/POSTCouponCodesPromotionRules201Response.md docs/POSTCouponCodesPromotionRules201ResponseData.md docs/POSTCouponCodesPromotionRules201ResponseDataRelationships.md -docs/POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons.md -docs/POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData.md docs/POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion.md docs/POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotionData.md docs/POSTCouponRecipients201Response.md @@ -1655,10 +1844,17 @@ docs/POSTCoupons201Response.md docs/POSTCoupons201ResponseData.md docs/POSTCoupons201ResponseDataAttributes.md docs/POSTCoupons201ResponseDataRelationships.md +docs/POSTCoupons201ResponseDataRelationshipsCouponRecipient.md +docs/POSTCoupons201ResponseDataRelationshipsCouponRecipientData.md docs/POSTCoupons201ResponseDataRelationshipsPromotionRule.md docs/POSTCoupons201ResponseDataRelationshipsPromotionRuleData.md +docs/POSTCustomPromotionRules201Response.md +docs/POSTCustomPromotionRules201ResponseData.md +docs/POSTCustomPromotionRules201ResponseDataAttributes.md +docs/POSTCustomPromotionRules201ResponseDataRelationships.md docs/POSTCustomerAddresses201Response.md docs/POSTCustomerAddresses201ResponseData.md +docs/POSTCustomerAddresses201ResponseDataAttributes.md docs/POSTCustomerAddresses201ResponseDataRelationships.md docs/POSTCustomerAddresses201ResponseDataRelationshipsAddress.md docs/POSTCustomerAddresses201ResponseDataRelationshipsAddressData.md @@ -1674,12 +1870,16 @@ docs/POSTCustomerPasswordResets201ResponseDataAttributes.md docs/POSTCustomerPasswordResets201ResponseDataRelationships.md docs/POSTCustomerPaymentSources201Response.md docs/POSTCustomerPaymentSources201ResponseData.md +docs/POSTCustomerPaymentSources201ResponseDataAttributes.md docs/POSTCustomerPaymentSources201ResponseDataRelationships.md +docs/POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod.md +docs/POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData.md docs/POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentSource.md docs/POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentSourceData.md docs/POSTCustomerSubscriptions201Response.md docs/POSTCustomerSubscriptions201ResponseData.md docs/POSTCustomerSubscriptions201ResponseDataAttributes.md +docs/POSTCustomerSubscriptions201ResponseDataRelationships.md docs/POSTCustomers201Response.md docs/POSTCustomers201ResponseData.md docs/POSTCustomers201ResponseDataAttributes.md @@ -1711,6 +1911,7 @@ docs/POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocationData.md docs/POSTExports201Response.md docs/POSTExports201ResponseData.md docs/POSTExports201ResponseDataAttributes.md +docs/POSTExports201ResponseDataRelationships.md docs/POSTExternalGateways201Response.md docs/POSTExternalGateways201ResponseData.md docs/POSTExternalGateways201ResponseDataAttributes.md @@ -1726,15 +1927,6 @@ docs/POSTExternalPayments201ResponseDataRelationshipsWalletData.md docs/POSTExternalPromotions201Response.md docs/POSTExternalPromotions201ResponseData.md docs/POSTExternalPromotions201ResponseDataAttributes.md -docs/POSTExternalPromotions201ResponseDataRelationships.md -docs/POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule.md -docs/POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData.md -docs/POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule.md -docs/POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData.md -docs/POSTExternalPromotions201ResponseDataRelationshipsPromotionRules.md -docs/POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData.md -docs/POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule.md -docs/POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData.md docs/POSTExternalTaxCalculators201Response.md docs/POSTExternalTaxCalculators201ResponseData.md docs/POSTExternalTaxCalculators201ResponseDataAttributes.md @@ -1745,13 +1937,17 @@ docs/POSTFixedAmountPromotions201ResponseDataAttributes.md docs/POSTFixedPricePromotions201Response.md docs/POSTFixedPricePromotions201ResponseData.md docs/POSTFixedPricePromotions201ResponseDataAttributes.md -docs/POSTFixedPricePromotions201ResponseDataRelationships.md +docs/POSTFlexPromotions201Response.md +docs/POSTFlexPromotions201ResponseData.md +docs/POSTFlexPromotions201ResponseDataAttributes.md +docs/POSTFlexPromotions201ResponseDataRelationships.md docs/POSTFreeGiftPromotions201Response.md docs/POSTFreeGiftPromotions201ResponseData.md docs/POSTFreeGiftPromotions201ResponseDataAttributes.md docs/POSTFreeShippingPromotions201Response.md docs/POSTFreeShippingPromotions201ResponseData.md docs/POSTFreeShippingPromotions201ResponseDataAttributes.md +docs/POSTFreeShippingPromotions201ResponseDataRelationships.md docs/POSTGiftCardRecipients201Response.md docs/POSTGiftCardRecipients201ResponseData.md docs/POSTGiftCards201Response.md @@ -1809,16 +2005,30 @@ docs/POSTLineItems201Response.md docs/POSTLineItems201ResponseData.md docs/POSTLineItems201ResponseDataAttributes.md docs/POSTLineItems201ResponseDataRelationships.md +docs/POSTLineItems201ResponseDataRelationshipsAdjustment.md +docs/POSTLineItems201ResponseDataRelationshipsAdjustmentData.md +docs/POSTLineItems201ResponseDataRelationshipsBundle.md +docs/POSTLineItems201ResponseDataRelationshipsBundleData.md +docs/POSTLineItems201ResponseDataRelationshipsGiftCard.md +docs/POSTLineItems201ResponseDataRelationshipsGiftCardData.md docs/POSTLineItems201ResponseDataRelationshipsItem.md docs/POSTLineItems201ResponseDataRelationshipsItemData.md docs/POSTLineItems201ResponseDataRelationshipsLineItemOptions.md docs/POSTLineItems201ResponseDataRelationshipsLineItemOptionsData.md -docs/POSTLineItems201ResponseDataRelationshipsShipmentLineItems.md -docs/POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData.md +docs/POSTLineItems201ResponseDataRelationshipsReturnLineItems.md +docs/POSTLineItems201ResponseDataRelationshipsReturnLineItemsData.md +docs/POSTLineItems201ResponseDataRelationshipsShipment.md +docs/POSTLineItems201ResponseDataRelationshipsShipmentData.md docs/POSTLineItems201ResponseDataRelationshipsStockLineItems.md docs/POSTLineItems201ResponseDataRelationshipsStockLineItemsData.md +docs/POSTLineItems201ResponseDataRelationshipsStockReservations.md +docs/POSTLineItems201ResponseDataRelationshipsStockReservationsData.md docs/POSTLineItems201ResponseDataRelationshipsStockTransfers.md docs/POSTLineItems201ResponseDataRelationshipsStockTransfersData.md +docs/POSTLinks201Response.md +docs/POSTLinks201ResponseData.md +docs/POSTLinks201ResponseDataAttributes.md +docs/POSTLinks201ResponseDataRelationships.md docs/POSTManualGateways201Response.md docs/POSTManualGateways201ResponseData.md docs/POSTManualGateways201ResponseDataAttributes.md @@ -1833,10 +2043,14 @@ docs/POSTMarkets201Response.md docs/POSTMarkets201ResponseData.md docs/POSTMarkets201ResponseDataAttributes.md docs/POSTMarkets201ResponseDataRelationships.md +docs/POSTMarkets201ResponseDataRelationshipsBasePriceList.md +docs/POSTMarkets201ResponseDataRelationshipsBasePriceListData.md docs/POSTMarkets201ResponseDataRelationshipsMerchant.md docs/POSTMarkets201ResponseDataRelationshipsMerchantData.md docs/POSTMarkets201ResponseDataRelationshipsPriceList.md docs/POSTMarkets201ResponseDataRelationshipsPriceListData.md +docs/POSTMarkets201ResponseDataRelationshipsPriceListSchedulers.md +docs/POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData.md docs/POSTMarkets201ResponseDataRelationshipsSubscriptionModel.md docs/POSTMarkets201ResponseDataRelationshipsSubscriptionModelData.md docs/POSTMarkets201ResponseDataRelationshipsTaxCalculator.md @@ -1848,7 +2062,6 @@ docs/POSTMerchants201ResponseDataRelationships.md docs/POSTOrderAmountPromotionRules201Response.md docs/POSTOrderAmountPromotionRules201ResponseData.md docs/POSTOrderAmountPromotionRules201ResponseDataAttributes.md -docs/POSTOrderAmountPromotionRules201ResponseDataRelationships.md docs/POSTOrderCopies201Response.md docs/POSTOrderCopies201ResponseData.md docs/POSTOrderCopies201ResponseDataAttributes.md @@ -1863,14 +2076,14 @@ docs/POSTOrderSubscriptionItems201Response.md docs/POSTOrderSubscriptionItems201ResponseData.md docs/POSTOrderSubscriptionItems201ResponseDataAttributes.md docs/POSTOrderSubscriptionItems201ResponseDataRelationships.md +docs/POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem.md +docs/POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData.md docs/POSTOrderSubscriptions201Response.md docs/POSTOrderSubscriptions201ResponseData.md docs/POSTOrderSubscriptions201ResponseDataAttributes.md docs/POSTOrderSubscriptions201ResponseDataRelationships.md docs/POSTOrderSubscriptions201ResponseDataRelationshipsCustomerPaymentSource.md docs/POSTOrderSubscriptions201ResponseDataRelationshipsCustomerPaymentSourceData.md -docs/POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies.md -docs/POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData.md docs/POSTOrderSubscriptions201ResponseDataRelationshipsOrderFactories.md docs/POSTOrderSubscriptions201ResponseDataRelationshipsOrderFactoriesData.md docs/POSTOrderSubscriptions201ResponseDataRelationshipsOrderSubscriptionItems.md @@ -1895,8 +2108,14 @@ docs/POSTOrders201ResponseDataRelationshipsBillingAddress.md docs/POSTOrders201ResponseDataRelationshipsBillingAddressData.md docs/POSTOrders201ResponseDataRelationshipsLineItems.md docs/POSTOrders201ResponseDataRelationshipsLineItemsData.md -docs/POSTOrders201ResponseDataRelationshipsPaymentMethod.md -docs/POSTOrders201ResponseDataRelationshipsPaymentMethodData.md +docs/POSTOrders201ResponseDataRelationshipsLinks.md +docs/POSTOrders201ResponseDataRelationshipsLinksData.md +docs/POSTOrders201ResponseDataRelationshipsOrderCopies.md +docs/POSTOrders201ResponseDataRelationshipsOrderCopiesData.md +docs/POSTOrders201ResponseDataRelationshipsPaymentOptions.md +docs/POSTOrders201ResponseDataRelationshipsPaymentOptionsData.md +docs/POSTOrders201ResponseDataRelationshipsResourceErrors.md +docs/POSTOrders201ResponseDataRelationshipsResourceErrorsData.md docs/POSTOrders201ResponseDataRelationshipsShipments.md docs/POSTOrders201ResponseDataRelationshipsShipmentsData.md docs/POSTOrders201ResponseDataRelationshipsShippingAddress.md @@ -1915,8 +2134,6 @@ docs/POSTParcelLineItems201ResponseDataAttributes.md docs/POSTParcelLineItems201ResponseDataRelationships.md docs/POSTParcelLineItems201ResponseDataRelationshipsParcel.md docs/POSTParcelLineItems201ResponseDataRelationshipsParcelData.md -docs/POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem.md -docs/POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData.md docs/POSTParcelLineItems201ResponseDataRelationshipsStockLineItem.md docs/POSTParcelLineItems201ResponseDataRelationshipsStockLineItemData.md docs/POSTParcels201Response.md @@ -1927,12 +2144,14 @@ docs/POSTParcels201ResponseDataRelationshipsPackage.md docs/POSTParcels201ResponseDataRelationshipsPackageData.md docs/POSTParcels201ResponseDataRelationshipsParcelLineItems.md docs/POSTParcels201ResponseDataRelationshipsParcelLineItemsData.md -docs/POSTParcels201ResponseDataRelationshipsShipment.md -docs/POSTParcels201ResponseDataRelationshipsShipmentData.md docs/POSTPaymentMethods201Response.md docs/POSTPaymentMethods201ResponseData.md docs/POSTPaymentMethods201ResponseDataAttributes.md docs/POSTPaymentMethods201ResponseDataRelationships.md +docs/POSTPaymentOptions201Response.md +docs/POSTPaymentOptions201ResponseData.md +docs/POSTPaymentOptions201ResponseDataAttributes.md +docs/POSTPaymentOptions201ResponseDataRelationships.md docs/POSTPaypalGateways201Response.md docs/POSTPaypalGateways201ResponseData.md docs/POSTPaypalGateways201ResponseDataAttributes.md @@ -1951,6 +2170,10 @@ docs/POSTPriceFrequencyTiers201ResponseDataAttributes.md docs/POSTPriceFrequencyTiers201ResponseDataRelationships.md docs/POSTPriceFrequencyTiers201ResponseDataRelationshipsPrice.md docs/POSTPriceFrequencyTiers201ResponseDataRelationshipsPriceData.md +docs/POSTPriceListSchedulers201Response.md +docs/POSTPriceListSchedulers201ResponseData.md +docs/POSTPriceListSchedulers201ResponseDataAttributes.md +docs/POSTPriceListSchedulers201ResponseDataRelationships.md docs/POSTPriceLists201Response.md docs/POSTPriceLists201ResponseData.md docs/POSTPriceLists201ResponseDataAttributes.md @@ -1964,6 +2187,12 @@ docs/POSTPrices201Response.md docs/POSTPrices201ResponseData.md docs/POSTPrices201ResponseDataAttributes.md docs/POSTPrices201ResponseDataRelationships.md +docs/POSTPrices201ResponseDataRelationshipsJwtCustomer.md +docs/POSTPrices201ResponseDataRelationshipsJwtCustomerData.md +docs/POSTPrices201ResponseDataRelationshipsJwtMarkets.md +docs/POSTPrices201ResponseDataRelationshipsJwtMarketsData.md +docs/POSTPrices201ResponseDataRelationshipsJwtStockLocations.md +docs/POSTPrices201ResponseDataRelationshipsJwtStockLocationsData.md docs/POSTPrices201ResponseDataRelationshipsPriceFrequencyTiers.md docs/POSTPrices201ResponseDataRelationshipsPriceFrequencyTiersData.md docs/POSTPrices201ResponseDataRelationshipsPriceTiers.md @@ -1977,8 +2206,6 @@ docs/POSTReturnLineItems201Response.md docs/POSTReturnLineItems201ResponseData.md docs/POSTReturnLineItems201ResponseDataAttributes.md docs/POSTReturnLineItems201ResponseDataRelationships.md -docs/POSTReturnLineItems201ResponseDataRelationshipsReturn.md -docs/POSTReturnLineItems201ResponseDataRelationshipsReturnData.md docs/POSTReturns201Response.md docs/POSTReturns201ResponseData.md docs/POSTReturns201ResponseDataRelationships.md @@ -1986,16 +2213,30 @@ docs/POSTReturns201ResponseDataRelationshipsDestinationAddress.md docs/POSTReturns201ResponseDataRelationshipsDestinationAddressData.md docs/POSTReturns201ResponseDataRelationshipsOriginAddress.md docs/POSTReturns201ResponseDataRelationshipsOriginAddressData.md -docs/POSTReturns201ResponseDataRelationshipsReturnLineItems.md -docs/POSTReturns201ResponseDataRelationshipsReturnLineItemsData.md +docs/POSTReturns201ResponseDataRelationshipsReferenceRefund.md +docs/POSTReturns201ResponseDataRelationshipsReferenceRefundData.md docs/POSTSatispayGateways201Response.md docs/POSTSatispayGateways201ResponseData.md +docs/POSTSatispayGateways201ResponseDataAttributes.md docs/POSTSatispayGateways201ResponseDataRelationships.md docs/POSTSatispayGateways201ResponseDataRelationshipsSatispayPayments.md docs/POSTSatispayGateways201ResponseDataRelationshipsSatispayPaymentsData.md docs/POSTSatispayPayments201Response.md docs/POSTSatispayPayments201ResponseData.md docs/POSTSatispayPayments201ResponseDataAttributes.md +docs/POSTShipments201Response.md +docs/POSTShipments201ResponseData.md +docs/POSTShipments201ResponseDataRelationships.md +docs/POSTShipments201ResponseDataRelationshipsAvailableShippingMethods.md +docs/POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData.md +docs/POSTShipments201ResponseDataRelationshipsCarrierAccounts.md +docs/POSTShipments201ResponseDataRelationshipsCarrierAccountsData.md +docs/POSTShipments201ResponseDataRelationshipsDeliveryLeadTime.md +docs/POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData.md +docs/POSTShipments201ResponseDataRelationshipsInventoryStockLocation.md +docs/POSTShipments201ResponseDataRelationshipsInventoryStockLocationData.md +docs/POSTShipments201ResponseDataRelationshipsShippingCategory.md +docs/POSTShipments201ResponseDataRelationshipsShippingCategoryData.md docs/POSTShippingCategories201Response.md docs/POSTShippingCategories201ResponseData.md docs/POSTShippingCategories201ResponseDataAttributes.md @@ -2038,6 +2279,7 @@ docs/POSTSkuLists201ResponseDataRelationshipsSkuListItemsData.md docs/POSTSkuOptions201Response.md docs/POSTSkuOptions201ResponseData.md docs/POSTSkuOptions201ResponseDataAttributes.md +docs/POSTSkuOptions201ResponseDataRelationships.md docs/POSTSkus201Response.md docs/POSTSkus201ResponseData.md docs/POSTSkus201ResponseDataAttributes.md @@ -2052,10 +2294,24 @@ docs/POSTStockItems201Response.md docs/POSTStockItems201ResponseData.md docs/POSTStockItems201ResponseDataAttributes.md docs/POSTStockItems201ResponseDataRelationships.md +docs/POSTStockItems201ResponseDataRelationshipsReservedStock.md +docs/POSTStockItems201ResponseDataRelationshipsReservedStockData.md +docs/POSTStockLineItems201Response.md +docs/POSTStockLineItems201ResponseData.md +docs/POSTStockLineItems201ResponseDataAttributes.md +docs/POSTStockLineItems201ResponseDataRelationships.md +docs/POSTStockLineItems201ResponseDataRelationshipsStockReservation.md +docs/POSTStockLineItems201ResponseDataRelationshipsStockReservationData.md docs/POSTStockLocations201Response.md docs/POSTStockLocations201ResponseData.md docs/POSTStockLocations201ResponseDataAttributes.md docs/POSTStockLocations201ResponseDataRelationships.md +docs/POSTStockReservations201Response.md +docs/POSTStockReservations201ResponseData.md +docs/POSTStockReservations201ResponseDataAttributes.md +docs/POSTStockReservations201ResponseDataRelationships.md +docs/POSTStockReservations201ResponseDataRelationshipsStockTransfer.md +docs/POSTStockReservations201ResponseDataRelationshipsStockTransferData.md docs/POSTStockTransfers201Response.md docs/POSTStockTransfers201ResponseData.md docs/POSTStockTransfers201ResponseDataAttributes.md @@ -2077,6 +2333,9 @@ docs/POSTSubscriptionModels201Response.md docs/POSTSubscriptionModels201ResponseData.md docs/POSTSubscriptionModels201ResponseDataAttributes.md docs/POSTSubscriptionModels201ResponseDataRelationships.md +docs/POSTTags201Response.md +docs/POSTTags201ResponseData.md +docs/POSTTags201ResponseDataAttributes.md docs/POSTTaxCategories201Response.md docs/POSTTaxCategories201ResponseData.md docs/POSTTaxCategories201ResponseDataAttributes.md @@ -2090,12 +2349,14 @@ docs/POSTTaxRules201ResponseDataRelationshipsManualTaxCalculatorData.md docs/POSTTaxjarAccounts201Response.md docs/POSTTaxjarAccounts201ResponseData.md docs/POSTTaxjarAccounts201ResponseDataAttributes.md +docs/POSTTaxjarAccounts201ResponseDataRelationships.md docs/POSTWebhooks201Response.md docs/POSTWebhooks201ResponseData.md docs/POSTWebhooks201ResponseDataAttributes.md docs/POSTWebhooks201ResponseDataRelationships.md docs/POSTWireTransfers201Response.md docs/POSTWireTransfers201ResponseData.md +docs/POSTWireTransfers201ResponseDataRelationships.md docs/PackageCreate.md docs/PackageCreateData.md docs/PackageCreateDataRelationships.md @@ -2124,7 +2385,6 @@ docs/ParcelLineItemCreate.md docs/ParcelLineItemCreateData.md docs/ParcelLineItemCreateDataRelationships.md docs/ParcelLineItemCreateDataRelationshipsParcel.md -docs/ParcelLineItemCreateDataRelationshipsShipmentLineItem.md docs/ParcelLineItemCreateDataRelationshipsStockLineItem.md docs/ParcelLineItemData.md docs/ParcelLineItemDataRelationships.md @@ -2149,6 +2409,14 @@ docs/PaymentMethodUpdate.md docs/PaymentMethodUpdateData.md docs/PaymentMethodUpdateDataRelationships.md docs/PaymentMethodsApi.md +docs/PaymentOption.md +docs/PaymentOptionCreate.md +docs/PaymentOptionCreateData.md +docs/PaymentOptionData.md +docs/PaymentOptionDataRelationships.md +docs/PaymentOptionUpdate.md +docs/PaymentOptionUpdateData.md +docs/PaymentOptionsApi.md docs/PaypalGateway.md docs/PaypalGatewayCreate.md docs/PaypalGatewayCreateData.md @@ -2204,6 +2472,16 @@ docs/PriceListCreate.md docs/PriceListCreateData.md docs/PriceListData.md docs/PriceListDataRelationships.md +docs/PriceListScheduler.md +docs/PriceListSchedulerCreate.md +docs/PriceListSchedulerCreateData.md +docs/PriceListSchedulerCreateDataRelationships.md +docs/PriceListSchedulerData.md +docs/PriceListSchedulerDataRelationships.md +docs/PriceListSchedulerUpdate.md +docs/PriceListSchedulerUpdateData.md +docs/PriceListSchedulerUpdateDataRelationships.md +docs/PriceListSchedulersApi.md docs/PriceListUpdate.md docs/PriceListUpdateData.md docs/PriceListsApi.md @@ -2239,14 +2517,27 @@ docs/RecurringOrderCopyUpdateData.md docs/Refund.md docs/RefundData.md docs/RefundDataRelationships.md +docs/RefundUpdate.md +docs/RefundUpdateData.md docs/RefundsApi.md +docs/ReservedStock.md +docs/ReservedStockData.md +docs/ReservedStockDataRelationships.md +docs/ReservedStockDataRelationshipsStockItem.md +docs/ReservedStockDataRelationshipsStockItemData.md +docs/ReservedStocksApi.md +docs/ResourceError.md +docs/ResourceErrorData.md +docs/ResourceErrorDataRelationships.md +docs/ResourceErrorDataRelationshipsResource.md +docs/ResourceErrorDataRelationshipsResourceData.md +docs/ResourceErrorsApi.md docs/ReturnCreate.md docs/ReturnCreateData.md docs/ReturnCreateDataRelationships.md +docs/ReturnCreateDataRelationshipsReferenceCapture.md docs/ReturnData.md docs/ReturnDataRelationships.md -docs/ReturnDataRelationshipsReturnLineItems.md -docs/ReturnDataRelationshipsReturnLineItemsData.md docs/ReturnLineItem.md docs/ReturnLineItemCreate.md docs/ReturnLineItemCreateData.md @@ -2259,6 +2550,7 @@ docs/ReturnLineItemUpdateData.md docs/ReturnLineItemsApi.md docs/ReturnUpdate.md docs/ReturnUpdateData.md +docs/ReturnUpdateDataRelationships.md docs/ReturnsApi.md docs/SatispayGateway.md docs/SatispayGatewayCreate.md @@ -2280,6 +2572,11 @@ docs/SatispayPaymentUpdate.md docs/SatispayPaymentUpdateData.md docs/SatispayPaymentsApi.md docs/Shipment.md +docs/ShipmentCreate.md +docs/ShipmentCreateData.md +docs/ShipmentCreateDataRelationships.md +docs/ShipmentCreateDataRelationshipsInventoryStockLocation.md +docs/ShipmentCreateDataRelationshipsShippingCategory.md docs/ShipmentData.md docs/ShipmentDataRelationships.md docs/ShipmentDataRelationshipsCarrierAccounts.md @@ -2304,7 +2601,6 @@ docs/ShippingMethod.md docs/ShippingMethodCreate.md docs/ShippingMethodCreateData.md docs/ShippingMethodCreateDataRelationships.md -docs/ShippingMethodCreateDataRelationshipsShippingCategory.md docs/ShippingMethodCreateDataRelationshipsShippingMethodTiers.md docs/ShippingMethodCreateDataRelationshipsShippingZone.md docs/ShippingMethodData.md @@ -2329,6 +2625,7 @@ docs/ShippingWeightTierCreateDataRelationships.md docs/ShippingWeightTierData.md docs/ShippingWeightTierUpdate.md docs/ShippingWeightTierUpdateData.md +docs/ShippingWeightTierUpdateDataRelationships.md docs/ShippingWeightTiersApi.md docs/ShippingZone.md docs/ShippingZoneCreate.md @@ -2345,8 +2642,6 @@ docs/SkuCreateData.md docs/SkuCreateDataRelationships.md docs/SkuData.md docs/SkuDataRelationships.md -docs/SkuDataRelationshipsStockItems.md -docs/SkuDataRelationshipsStockItemsData.md docs/SkuList.md docs/SkuListCreate.md docs/SkuListCreateData.md @@ -2379,7 +2674,9 @@ docs/SkuListsApi.md docs/SkuOption.md docs/SkuOptionCreate.md docs/SkuOptionCreateData.md +docs/SkuOptionCreateDataRelationships.md docs/SkuOptionData.md +docs/SkuOptionDataRelationships.md docs/SkuOptionUpdate.md docs/SkuOptionUpdateData.md docs/SkuOptionsApi.md @@ -2393,13 +2690,21 @@ docs/StockItemCreateData.md docs/StockItemCreateDataRelationships.md docs/StockItemData.md docs/StockItemDataRelationships.md +docs/StockItemDataRelationshipsReservedStock.md +docs/StockItemDataRelationshipsReservedStockData.md docs/StockItemUpdate.md docs/StockItemUpdateData.md docs/StockItemUpdateDataRelationships.md docs/StockItemsApi.md docs/StockLineItem.md +docs/StockLineItemCreate.md +docs/StockLineItemCreateData.md +docs/StockLineItemCreateDataRelationships.md +docs/StockLineItemCreateDataRelationshipsStockItem.md docs/StockLineItemData.md docs/StockLineItemDataRelationships.md +docs/StockLineItemUpdate.md +docs/StockLineItemUpdateData.md docs/StockLineItemsApi.md docs/StockLocation.md docs/StockLocationCreate.md @@ -2409,6 +2714,15 @@ docs/StockLocationDataRelationships.md docs/StockLocationUpdate.md docs/StockLocationUpdateData.md docs/StockLocationsApi.md +docs/StockReservation.md +docs/StockReservationCreate.md +docs/StockReservationCreateData.md +docs/StockReservationCreateDataRelationships.md +docs/StockReservationData.md +docs/StockReservationDataRelationships.md +docs/StockReservationUpdate.md +docs/StockReservationUpdateData.md +docs/StockReservationsApi.md docs/StockTransfer.md docs/StockTransferCreate.md docs/StockTransferCreateData.md @@ -2444,6 +2758,13 @@ docs/SubscriptionModelDataRelationships.md docs/SubscriptionModelUpdate.md docs/SubscriptionModelUpdateData.md docs/SubscriptionModelsApi.md +docs/Tag.md +docs/TagCreate.md +docs/TagCreateData.md +docs/TagData.md +docs/TagUpdate.md +docs/TagUpdateData.md +docs/TagsApi.md docs/TaxCalculator.md docs/TaxCalculatorData.md docs/TaxCalculatorsApi.md @@ -2452,11 +2773,8 @@ docs/TaxCategory.md docs/TaxCategoryCreate.md docs/TaxCategoryCreateData.md docs/TaxCategoryCreateDataRelationships.md -docs/TaxCategoryCreateDataRelationshipsTaxCalculator.md docs/TaxCategoryData.md docs/TaxCategoryDataRelationships.md -docs/TaxCategoryDataRelationshipsTaxCalculator.md -docs/TaxCategoryDataRelationshipsTaxCalculatorData.md docs/TaxCategoryUpdate.md docs/TaxCategoryUpdateData.md docs/TaxCategoryUpdateDataRelationships.md @@ -2477,6 +2795,7 @@ docs/TaxjarAccount.md docs/TaxjarAccountCreate.md docs/TaxjarAccountCreateData.md docs/TaxjarAccountData.md +docs/TaxjarAccountDataRelationships.md docs/TaxjarAccountUpdate.md docs/TaxjarAccountUpdateData.md docs/TaxjarAccountsApi.md @@ -2484,9 +2803,14 @@ docs/Transaction.md docs/TransactionData.md docs/TransactionDataRelationships.md docs/TransactionsApi.md +docs/Version.md +docs/VersionData.md +docs/VersionsApi.md docs/Void.md docs/VoidData.md docs/VoidDataRelationships.md +docs/VoidUpdate.md +docs/VoidUpdateData.md docs/VoidsApi.md docs/Webhook.md docs/WebhookCreate.md @@ -2500,6 +2824,7 @@ docs/WireTransfer.md docs/WireTransferCreate.md docs/WireTransferCreateData.md docs/WireTransferData.md +docs/WireTransferDataRelationships.md docs/WireTransferUpdate.md docs/WireTransferUpdateData.md docs/WireTransfersApi.md @@ -2508,16 +2833,24 @@ model_address_create.go model_address_create_data.go model_address_create_data_relationships.go model_address_create_data_relationships_geocoder.go +model_address_create_data_relationships_tags.go model_address_data.go model_address_data_relationships.go +model_address_data_relationships_events.go +model_address_data_relationships_events_data.go model_address_data_relationships_geocoder.go model_address_data_relationships_geocoder_data.go +model_address_data_relationships_tags.go +model_address_data_relationships_tags_data.go +model_address_data_relationships_versions.go +model_address_data_relationships_versions_data.go model_address_update.go model_address_update_data.go model_adjustment.go model_adjustment_create.go model_adjustment_create_data.go model_adjustment_data.go +model_adjustment_data_relationships.go model_adjustment_update.go model_adjustment_update_data.go model_adyen_gateway.go @@ -2564,10 +2897,10 @@ model_attachment_update_data_relationships.go model_authorization.go model_authorization_data.go model_authorization_data_relationships.go +model_authorization_data_relationships_attachments.go +model_authorization_data_relationships_attachments_data.go model_authorization_data_relationships_captures.go model_authorization_data_relationships_captures_data.go -model_authorization_data_relationships_events.go -model_authorization_data_relationships_events_data.go model_authorization_data_relationships_voids.go model_authorization_data_relationships_voids_data.go model_authorization_update.go @@ -2579,8 +2912,6 @@ model_avalara_account_create_data_relationships.go model_avalara_account_create_data_relationships_tax_categories.go model_avalara_account_data.go model_avalara_account_data_relationships.go -model_avalara_account_data_relationships_attachments.go -model_avalara_account_data_relationships_attachments_data.go model_avalara_account_data_relationships_markets.go model_avalara_account_data_relationships_markets_data.go model_avalara_account_data_relationships_tax_categories.go @@ -2653,6 +2984,32 @@ model_bundle_data_relationships_skus.go model_bundle_data_relationships_skus_data.go model_bundle_update.go model_bundle_update_data.go +model_bundle_update_data_relationships.go +model_buy_x_pay_y_promotion.go +model_buy_x_pay_y_promotion_create.go +model_buy_x_pay_y_promotion_create_data.go +model_buy_x_pay_y_promotion_create_data_relationships.go +model_buy_x_pay_y_promotion_create_data_relationships_coupon_codes_promotion_rule.go +model_buy_x_pay_y_promotion_create_data_relationships_custom_promotion_rule.go +model_buy_x_pay_y_promotion_create_data_relationships_order_amount_promotion_rule.go +model_buy_x_pay_y_promotion_create_data_relationships_sku_list_promotion_rule.go +model_buy_x_pay_y_promotion_data.go +model_buy_x_pay_y_promotion_data_relationships.go +model_buy_x_pay_y_promotion_data_relationships_coupon_codes_promotion_rule.go +model_buy_x_pay_y_promotion_data_relationships_coupon_codes_promotion_rule_data.go +model_buy_x_pay_y_promotion_data_relationships_coupons.go +model_buy_x_pay_y_promotion_data_relationships_coupons_data.go +model_buy_x_pay_y_promotion_data_relationships_custom_promotion_rule.go +model_buy_x_pay_y_promotion_data_relationships_custom_promotion_rule_data.go +model_buy_x_pay_y_promotion_data_relationships_order_amount_promotion_rule.go +model_buy_x_pay_y_promotion_data_relationships_order_amount_promotion_rule_data.go +model_buy_x_pay_y_promotion_data_relationships_promotion_rules.go +model_buy_x_pay_y_promotion_data_relationships_promotion_rules_data.go +model_buy_x_pay_y_promotion_data_relationships_sku_list_promotion_rule.go +model_buy_x_pay_y_promotion_data_relationships_sku_list_promotion_rule_data.go +model_buy_x_pay_y_promotion_update.go +model_buy_x_pay_y_promotion_update_data.go +model_buy_x_pay_y_promotion_update_data_relationships.go model_capture.go model_capture_data.go model_capture_data_relationships.go @@ -2660,10 +3017,16 @@ model_capture_data_relationships_reference_authorization.go model_capture_data_relationships_reference_authorization_data.go model_capture_data_relationships_refunds.go model_capture_data_relationships_refunds_data.go +model_capture_data_relationships_return.go +model_capture_data_relationships_return_data.go model_capture_update.go model_capture_update_data.go model_carrier_account.go +model_carrier_account_create.go +model_carrier_account_create_data.go model_carrier_account_data.go +model_carrier_account_update.go +model_carrier_account_update_data.go model_checkout_com_gateway.go model_checkout_com_gateway_create.go model_checkout_com_gateway_create_data.go @@ -2686,6 +3049,8 @@ model_cleanup_create.go model_cleanup_create_data.go model_cleanup_data.go model_cleanup_data_relationships.go +model_cleanup_update.go +model_cleanup_update_data.go model_coupon.go model_coupon_codes_promotion_rule.go model_coupon_codes_promotion_rule_create.go @@ -2695,8 +3060,6 @@ model_coupon_codes_promotion_rule_create_data_relationships_coupons.go model_coupon_codes_promotion_rule_create_data_relationships_promotion.go model_coupon_codes_promotion_rule_data.go model_coupon_codes_promotion_rule_data_relationships.go -model_coupon_codes_promotion_rule_data_relationships_coupons.go -model_coupon_codes_promotion_rule_data_relationships_coupons_data.go model_coupon_codes_promotion_rule_data_relationships_promotion.go model_coupon_codes_promotion_rule_data_relationships_promotion_data.go model_coupon_codes_promotion_rule_update.go @@ -2705,11 +3068,11 @@ model_coupon_codes_promotion_rule_update_data_relationships.go model_coupon_create.go model_coupon_create_data.go model_coupon_create_data_relationships.go -model_coupon_create_data_relationships_promotion_rule.go +model_coupon_create_data_relationships_coupon_recipient.go model_coupon_data.go model_coupon_data_relationships.go -model_coupon_data_relationships_promotion_rule.go -model_coupon_data_relationships_promotion_rule_data.go +model_coupon_data_relationships_coupon_recipient.go +model_coupon_data_relationships_coupon_recipient_data.go model_coupon_recipient.go model_coupon_recipient_create.go model_coupon_recipient_create_data.go @@ -2724,6 +3087,15 @@ model_coupon_recipient_update_data.go model_coupon_update.go model_coupon_update_data.go model_coupon_update_data_relationships.go +model_custom_promotion_rule.go +model_custom_promotion_rule_create.go +model_custom_promotion_rule_create_data.go +model_custom_promotion_rule_create_data_relationships.go +model_custom_promotion_rule_data.go +model_custom_promotion_rule_data_relationships.go +model_custom_promotion_rule_update.go +model_custom_promotion_rule_update_data.go +model_custom_promotion_rule_update_data_relationships.go model_customer.go model_customer_address.go model_customer_address_create.go @@ -2751,8 +3123,6 @@ model_customer_data_relationships_customer_subscriptions.go model_customer_data_relationships_customer_subscriptions_data.go model_customer_data_relationships_order_subscriptions.go model_customer_data_relationships_order_subscriptions_data.go -model_customer_data_relationships_returns.go -model_customer_data_relationships_returns_data.go model_customer_group.go model_customer_group_create.go model_customer_group_create_data.go @@ -2771,6 +3141,7 @@ model_customer_payment_source.go model_customer_payment_source_create.go model_customer_payment_source_create_data.go model_customer_payment_source_create_data_relationships.go +model_customer_payment_source_create_data_relationships_payment_method.go model_customer_payment_source_create_data_relationships_payment_source.go model_customer_payment_source_data.go model_customer_payment_source_data_relationships.go @@ -2783,6 +3154,7 @@ model_customer_subscription.go model_customer_subscription_create.go model_customer_subscription_create_data.go model_customer_subscription_data.go +model_customer_subscription_data_relationships.go model_customer_subscription_update.go model_customer_subscription_update_data.go model_customer_update.go @@ -2812,10 +3184,15 @@ model_event_data.go model_event_data_relationships.go model_event_data_relationships_last_event_callbacks.go model_event_data_relationships_last_event_callbacks_data.go +model_event_update.go +model_event_update_data.go model_export.go model_export_create.go model_export_create_data.go model_export_data.go +model_export_data_relationships.go +model_export_update.go +model_export_update_data.go model_external_gateway.go model_external_gateway_create.go model_external_gateway_create_data.go @@ -2835,18 +3212,7 @@ model_external_payment_update_data.go model_external_promotion.go model_external_promotion_create.go model_external_promotion_create_data.go -model_external_promotion_create_data_relationships.go -model_external_promotion_create_data_relationships_order_amount_promotion_rule.go -model_external_promotion_create_data_relationships_promotion_rules.go -model_external_promotion_create_data_relationships_sku_list_promotion_rule.go model_external_promotion_data.go -model_external_promotion_data_relationships.go -model_external_promotion_data_relationships_order_amount_promotion_rule.go -model_external_promotion_data_relationships_order_amount_promotion_rule_data.go -model_external_promotion_data_relationships_promotion_rules.go -model_external_promotion_data_relationships_promotion_rules_data.go -model_external_promotion_data_relationships_sku_list_promotion_rule.go -model_external_promotion_data_relationships_sku_list_promotion_rule_data.go model_external_promotion_update.go model_external_promotion_update_data.go model_external_tax_calculator.go @@ -2865,12 +3231,17 @@ model_fixed_amount_promotion_update_data.go model_fixed_price_promotion.go model_fixed_price_promotion_create.go model_fixed_price_promotion_create_data.go -model_fixed_price_promotion_create_data_relationships.go model_fixed_price_promotion_data.go -model_fixed_price_promotion_data_relationships.go model_fixed_price_promotion_update.go model_fixed_price_promotion_update_data.go -model_fixed_price_promotion_update_data_relationships.go +model_flex_promotion.go +model_flex_promotion_create.go +model_flex_promotion_create_data.go +model_flex_promotion_create_data_relationships.go +model_flex_promotion_data.go +model_flex_promotion_data_relationships.go +model_flex_promotion_update.go +model_flex_promotion_update_data.go model_free_gift_promotion.go model_free_gift_promotion_create.go model_free_gift_promotion_create_data.go @@ -2881,6 +3252,7 @@ model_free_shipping_promotion.go model_free_shipping_promotion_create.go model_free_shipping_promotion_create_data.go model_free_shipping_promotion_data.go +model_free_shipping_promotion_data_relationships.go model_free_shipping_promotion_update.go model_free_shipping_promotion_update_data.go model_geocoder.go @@ -2913,10 +3285,10 @@ model_get_authorizations_authorization_id_200_response.go model_get_authorizations_authorization_id_200_response_data.go model_get_authorizations_authorization_id_200_response_data_attributes.go model_get_authorizations_authorization_id_200_response_data_relationships.go +model_get_authorizations_authorization_id_200_response_data_relationships_attachments.go +model_get_authorizations_authorization_id_200_response_data_relationships_attachments_data.go model_get_authorizations_authorization_id_200_response_data_relationships_captures.go model_get_authorizations_authorization_id_200_response_data_relationships_captures_data.go -model_get_authorizations_authorization_id_200_response_data_relationships_events.go -model_get_authorizations_authorization_id_200_response_data_relationships_events_data.go model_get_authorizations_authorization_id_200_response_data_relationships_voids.go model_get_authorizations_authorization_id_200_response_data_relationships_voids_data.go model_get_avalara_accounts_200_response.go @@ -2951,6 +3323,10 @@ model_get_bundles_200_response.go model_get_bundles_bundle_id_200_response.go model_get_bundles_bundle_id_200_response_data.go model_get_bundles_bundle_id_200_response_data_attributes.go +model_get_buy_x_pay_y_promotions_200_response.go +model_get_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response.go +model_get_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response_data.go +model_get_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response_data_attributes.go model_get_captures_200_response.go model_get_captures_capture_id_200_response.go model_get_captures_capture_id_200_response_data.go @@ -2960,6 +3336,8 @@ model_get_captures_capture_id_200_response_data_relationships_reference_authoriz model_get_captures_capture_id_200_response_data_relationships_reference_authorization_data.go model_get_captures_capture_id_200_response_data_relationships_refunds.go model_get_captures_capture_id_200_response_data_relationships_refunds_data.go +model_get_captures_capture_id_200_response_data_relationships_return.go +model_get_captures_capture_id_200_response_data_relationships_return_data.go model_get_carrier_accounts_200_response.go model_get_carrier_accounts_carrier_account_id_200_response.go model_get_carrier_accounts_carrier_account_id_200_response_data.go @@ -2979,6 +3357,7 @@ model_get_cleanups_cleanup_id_200_response_data_attributes.go model_get_coupon_codes_promotion_rules_200_response.go model_get_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response.go model_get_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response_data.go +model_get_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response_data_attributes.go model_get_coupon_recipients_200_response.go model_get_coupon_recipients_coupon_recipient_id_200_response.go model_get_coupon_recipients_coupon_recipient_id_200_response_data.go @@ -2987,6 +3366,10 @@ model_get_coupons_200_response.go model_get_coupons_coupon_id_200_response.go model_get_coupons_coupon_id_200_response_data.go model_get_coupons_coupon_id_200_response_data_attributes.go +model_get_custom_promotion_rules_200_response.go +model_get_custom_promotion_rules_custom_promotion_rule_id_200_response.go +model_get_custom_promotion_rules_custom_promotion_rule_id_200_response_data.go +model_get_custom_promotion_rules_custom_promotion_rule_id_200_response_data_attributes.go model_get_customer_addresses_200_response.go model_get_customer_addresses_customer_address_id_200_response.go model_get_customer_addresses_customer_address_id_200_response_data.go @@ -3059,6 +3442,10 @@ model_get_fixed_price_promotions_200_response.go model_get_fixed_price_promotions_fixed_price_promotion_id_200_response.go model_get_fixed_price_promotions_fixed_price_promotion_id_200_response_data.go model_get_fixed_price_promotions_fixed_price_promotion_id_200_response_data_attributes.go +model_get_flex_promotions_200_response.go +model_get_flex_promotions_flex_promotion_id_200_response.go +model_get_flex_promotions_flex_promotion_id_200_response_data.go +model_get_flex_promotions_flex_promotion_id_200_response_data_attributes.go model_get_free_gift_promotions_200_response.go model_get_free_gift_promotions_free_gift_promotion_id_200_response.go model_get_free_gift_promotions_free_gift_promotion_id_200_response_data.go @@ -3116,6 +3503,10 @@ model_get_line_items_200_response.go model_get_line_items_line_item_id_200_response.go model_get_line_items_line_item_id_200_response_data.go model_get_line_items_line_item_id_200_response_data_attributes.go +model_get_links_200_response.go +model_get_links_link_id_200_response.go +model_get_links_link_id_200_response_data.go +model_get_links_link_id_200_response_data_attributes.go model_get_manual_gateways_200_response.go model_get_manual_gateways_manual_gateway_id_200_response.go model_get_manual_gateways_manual_gateway_id_200_response_data.go @@ -3152,9 +3543,6 @@ model_get_order_subscriptions_200_response.go model_get_order_subscriptions_order_subscription_id_200_response.go model_get_order_subscriptions_order_subscription_id_200_response_data.go model_get_order_subscriptions_order_subscription_id_200_response_data_attributes.go -model_get_order_validation_rules_200_response.go -model_get_order_validation_rules_order_validation_rule_id_200_response.go -model_get_order_validation_rules_order_validation_rule_id_200_response_data.go model_get_orders_200_response.go model_get_orders_order_id_200_response.go model_get_orders_order_id_200_response_data.go @@ -3181,6 +3569,10 @@ model_get_payment_methods_200_response.go model_get_payment_methods_payment_method_id_200_response.go model_get_payment_methods_payment_method_id_200_response_data.go model_get_payment_methods_payment_method_id_200_response_data_attributes.go +model_get_payment_options_200_response.go +model_get_payment_options_payment_option_id_200_response.go +model_get_payment_options_payment_option_id_200_response_data.go +model_get_payment_options_payment_option_id_200_response_data_attributes.go model_get_paypal_gateways_200_response.go model_get_paypal_gateways_paypal_gateway_id_200_response.go model_get_paypal_gateways_paypal_gateway_id_200_response_data.go @@ -3196,6 +3588,10 @@ model_get_price_frequency_tiers_200_response.go model_get_price_frequency_tiers_price_frequency_tier_id_200_response.go model_get_price_frequency_tiers_price_frequency_tier_id_200_response_data.go model_get_price_frequency_tiers_price_frequency_tier_id_200_response_data_attributes.go +model_get_price_list_schedulers_200_response.go +model_get_price_list_schedulers_price_list_scheduler_id_200_response.go +model_get_price_list_schedulers_price_list_scheduler_id_200_response_data.go +model_get_price_list_schedulers_price_list_scheduler_id_200_response_data_attributes.go model_get_price_lists_200_response.go model_get_price_lists_price_list_id_200_response.go model_get_price_lists_price_list_id_200_response_data.go @@ -3229,6 +3625,20 @@ model_get_refunds_refund_id_200_response_data_attributes.go model_get_refunds_refund_id_200_response_data_relationships.go model_get_refunds_refund_id_200_response_data_relationships_reference_capture.go model_get_refunds_refund_id_200_response_data_relationships_reference_capture_data.go +model_get_reserved_stocks_200_response.go +model_get_reserved_stocks_reserved_stock_id_200_response.go +model_get_reserved_stocks_reserved_stock_id_200_response_data.go +model_get_reserved_stocks_reserved_stock_id_200_response_data_attributes.go +model_get_reserved_stocks_reserved_stock_id_200_response_data_relationships.go +model_get_reserved_stocks_reserved_stock_id_200_response_data_relationships_stock_item.go +model_get_reserved_stocks_reserved_stock_id_200_response_data_relationships_stock_item_data.go +model_get_resource_errors_200_response.go +model_get_resource_errors_resource_error_id_200_response.go +model_get_resource_errors_resource_error_id_200_response_data.go +model_get_resource_errors_resource_error_id_200_response_data_attributes.go +model_get_resource_errors_resource_error_id_200_response_data_relationships.go +model_get_resource_errors_resource_error_id_200_response_data_relationships_resource.go +model_get_resource_errors_resource_error_id_200_response_data_relationships_resource_data.go model_get_return_line_items_200_response.go model_get_return_line_items_return_line_item_id_200_response.go model_get_return_line_items_return_line_item_id_200_response_data.go @@ -3249,15 +3659,6 @@ model_get_shipments_200_response.go model_get_shipments_shipment_id_200_response.go model_get_shipments_shipment_id_200_response_data.go model_get_shipments_shipment_id_200_response_data_attributes.go -model_get_shipments_shipment_id_200_response_data_relationships.go -model_get_shipments_shipment_id_200_response_data_relationships_available_shipping_methods.go -model_get_shipments_shipment_id_200_response_data_relationships_available_shipping_methods_data.go -model_get_shipments_shipment_id_200_response_data_relationships_carrier_accounts.go -model_get_shipments_shipment_id_200_response_data_relationships_carrier_accounts_data.go -model_get_shipments_shipment_id_200_response_data_relationships_delivery_lead_time.go -model_get_shipments_shipment_id_200_response_data_relationships_delivery_lead_time_data.go -model_get_shipments_shipment_id_200_response_data_relationships_shipping_category.go -model_get_shipments_shipment_id_200_response_data_relationships_shipping_category_data.go model_get_shipping_categories_200_response.go model_get_shipping_categories_shipping_category_id_200_response.go model_get_shipping_categories_shipping_category_id_200_response_data.go @@ -3306,13 +3707,14 @@ model_get_stock_line_items_200_response.go model_get_stock_line_items_stock_line_item_id_200_response.go model_get_stock_line_items_stock_line_item_id_200_response_data.go model_get_stock_line_items_stock_line_item_id_200_response_data_attributes.go -model_get_stock_line_items_stock_line_item_id_200_response_data_relationships.go -model_get_stock_line_items_stock_line_item_id_200_response_data_relationships_stock_item.go -model_get_stock_line_items_stock_line_item_id_200_response_data_relationships_stock_item_data.go model_get_stock_locations_200_response.go model_get_stock_locations_stock_location_id_200_response.go model_get_stock_locations_stock_location_id_200_response_data.go model_get_stock_locations_stock_location_id_200_response_data_attributes.go +model_get_stock_reservations_200_response.go +model_get_stock_reservations_stock_reservation_id_200_response.go +model_get_stock_reservations_stock_reservation_id_200_response_data.go +model_get_stock_reservations_stock_reservation_id_200_response_data_attributes.go model_get_stock_transfers_200_response.go model_get_stock_transfers_stock_transfer_id_200_response.go model_get_stock_transfers_stock_transfer_id_200_response_data.go @@ -3329,6 +3731,10 @@ model_get_subscription_models_200_response.go model_get_subscription_models_subscription_model_id_200_response.go model_get_subscription_models_subscription_model_id_200_response_data.go model_get_subscription_models_subscription_model_id_200_response_data_attributes.go +model_get_tags_200_response.go +model_get_tags_tag_id_200_response.go +model_get_tags_tag_id_200_response_data.go +model_get_tags_tag_id_200_response_data_attributes.go model_get_tax_calculators_200_response.go model_get_tax_calculators_tax_calculator_id_200_response.go model_get_tax_calculators_tax_calculator_id_200_response_data.go @@ -3347,6 +3753,10 @@ model_get_transactions_200_response.go model_get_transactions_transaction_id_200_response.go model_get_transactions_transaction_id_200_response_data.go model_get_transactions_transaction_id_200_response_data_relationships.go +model_get_versions_200_response.go +model_get_versions_version_id_200_response.go +model_get_versions_version_id_200_response_data.go +model_get_versions_version_id_200_response_data_attributes.go model_get_voids_200_response.go model_get_voids_void_id_200_response.go model_get_voids_void_id_200_response_data.go @@ -3386,6 +3796,8 @@ model_import.go model_import_create.go model_import_create_data.go model_import_data.go +model_import_update.go +model_import_update_data.go model_in_stock_subscription.go model_in_stock_subscription_create.go model_in_stock_subscription_create_data.go @@ -3449,14 +3861,24 @@ model_line_item_create_data_relationships.go model_line_item_create_data_relationships_item.go model_line_item_data.go model_line_item_data_relationships.go +model_line_item_data_relationships_adjustment.go +model_line_item_data_relationships_adjustment_data.go +model_line_item_data_relationships_bundle.go +model_line_item_data_relationships_bundle_data.go +model_line_item_data_relationships_gift_card.go +model_line_item_data_relationships_gift_card_data.go model_line_item_data_relationships_item.go model_line_item_data_relationships_item_data.go model_line_item_data_relationships_line_item_options.go model_line_item_data_relationships_line_item_options_data.go -model_line_item_data_relationships_shipment_line_items.go -model_line_item_data_relationships_shipment_line_items_data.go +model_line_item_data_relationships_return_line_items.go +model_line_item_data_relationships_return_line_items_data.go +model_line_item_data_relationships_shipment.go +model_line_item_data_relationships_shipment_data.go model_line_item_data_relationships_stock_line_items.go model_line_item_data_relationships_stock_line_items_data.go +model_line_item_data_relationships_stock_reservations.go +model_line_item_data_relationships_stock_reservations_data.go model_line_item_data_relationships_stock_transfers.go model_line_item_data_relationships_stock_transfers_data.go model_line_item_option.go @@ -3476,6 +3898,18 @@ model_line_item_option_update_data.go model_line_item_option_update_data_relationships.go model_line_item_update.go model_line_item_update_data.go +model_link.go +model_link_create.go +model_link_create_data.go +model_link_create_data_relationships.go +model_link_create_data_relationships_item.go +model_link_data.go +model_link_data_relationships.go +model_link_data_relationships_item.go +model_link_data_relationships_item_data.go +model_link_update.go +model_link_update_data.go +model_link_update_data_relationships.go model_manual_gateway.go model_manual_gateway_create.go model_manual_gateway_create_data.go @@ -3508,6 +3942,8 @@ model_market_data_relationships_merchant.go model_market_data_relationships_merchant_data.go model_market_data_relationships_price_list.go model_market_data_relationships_price_list_data.go +model_market_data_relationships_price_list_schedulers.go +model_market_data_relationships_price_list_schedulers_data.go model_market_data_relationships_subscription_model.go model_market_data_relationships_subscription_model_data.go model_market_data_relationships_tax_calculator.go @@ -3528,12 +3964,9 @@ model_order.go model_order_amount_promotion_rule.go model_order_amount_promotion_rule_create.go model_order_amount_promotion_rule_create_data.go -model_order_amount_promotion_rule_create_data_relationships.go model_order_amount_promotion_rule_data.go -model_order_amount_promotion_rule_data_relationships.go model_order_amount_promotion_rule_update.go model_order_amount_promotion_rule_update_data.go -model_order_amount_promotion_rule_update_data_relationships.go model_order_copy.go model_order_copy_create.go model_order_copy_create_data.go @@ -3545,14 +3978,16 @@ model_order_copy_update_data.go model_order_create.go model_order_create_data.go model_order_create_data_relationships.go -model_order_create_data_relationships_payment_method.go model_order_data.go model_order_data_relationships.go -model_order_data_relationships_available_free_bundles.go -model_order_data_relationships_available_free_bundles_data.go +model_order_data_relationships_links.go +model_order_data_relationships_links_data.go model_order_data_relationships_order_copies.go -model_order_data_relationships_shipments.go -model_order_data_relationships_shipments_data.go +model_order_data_relationships_order_copies_data.go +model_order_data_relationships_payment_options.go +model_order_data_relationships_payment_options_data.go +model_order_data_relationships_resource_errors.go +model_order_data_relationships_resource_errors_data.go model_order_data_relationships_transactions.go model_order_data_relationships_transactions_data.go model_order_factory.go @@ -3564,8 +3999,6 @@ model_order_subscription_create_data.go model_order_subscription_create_data_relationships.go model_order_subscription_data.go model_order_subscription_data_relationships.go -model_order_subscription_data_relationships_order_copies.go -model_order_subscription_data_relationships_order_copies_data.go model_order_subscription_data_relationships_order_factories.go model_order_subscription_data_relationships_order_factories_data.go model_order_subscription_data_relationships_order_subscription_items.go @@ -3576,6 +4009,8 @@ model_order_subscription_item.go model_order_subscription_item_create.go model_order_subscription_item_create_data.go model_order_subscription_item_create_data_relationships.go +model_order_subscription_item_create_data_relationships_adjustment.go +model_order_subscription_item_create_data_relationships_bundle.go model_order_subscription_item_create_data_relationships_item.go model_order_subscription_item_create_data_relationships_order_subscription.go model_order_subscription_item_data.go @@ -3590,8 +4025,6 @@ model_order_subscription_update_data_relationships.go model_order_subscription_update_data_relationships_customer_payment_source.go model_order_update.go model_order_update_data.go -model_order_validation_rule.go -model_order_validation_rule_data.go model_organization.go model_organization_data.go model_package.go @@ -3622,7 +4055,6 @@ model_parcel_line_item_create.go model_parcel_line_item_create_data.go model_parcel_line_item_create_data_relationships.go model_parcel_line_item_create_data_relationships_parcel.go -model_parcel_line_item_create_data_relationships_shipment_line_item.go model_parcel_line_item_create_data_relationships_stock_line_item.go model_parcel_line_item_data.go model_parcel_line_item_data_relationships.go @@ -3673,15 +4105,23 @@ model_patch_braintree_payments_braintree_payment_id_200_response_data_attributes model_patch_bundles_bundle_id_200_response.go model_patch_bundles_bundle_id_200_response_data.go model_patch_bundles_bundle_id_200_response_data_attributes.go +model_patch_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response.go +model_patch_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response_data.go +model_patch_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response_data_attributes.go model_patch_captures_capture_id_200_response.go model_patch_captures_capture_id_200_response_data.go model_patch_captures_capture_id_200_response_data_attributes.go +model_patch_carrier_accounts_carrier_account_id_200_response.go +model_patch_carrier_accounts_carrier_account_id_200_response_data.go +model_patch_carrier_accounts_carrier_account_id_200_response_data_attributes.go model_patch_checkout_com_gateways_checkout_com_gateway_id_200_response.go model_patch_checkout_com_gateways_checkout_com_gateway_id_200_response_data.go model_patch_checkout_com_gateways_checkout_com_gateway_id_200_response_data_attributes.go model_patch_checkout_com_payments_checkout_com_payment_id_200_response.go model_patch_checkout_com_payments_checkout_com_payment_id_200_response_data.go model_patch_checkout_com_payments_checkout_com_payment_id_200_response_data_attributes.go +model_patch_cleanups_cleanup_id_200_response.go +model_patch_cleanups_cleanup_id_200_response_data.go model_patch_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response.go model_patch_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response_data.go model_patch_coupon_recipients_coupon_recipient_id_200_response.go @@ -3690,6 +4130,9 @@ model_patch_coupon_recipients_coupon_recipient_id_200_response_data_attributes.g model_patch_coupons_coupon_id_200_response.go model_patch_coupons_coupon_id_200_response_data.go model_patch_coupons_coupon_id_200_response_data_attributes.go +model_patch_custom_promotion_rules_custom_promotion_rule_id_200_response.go +model_patch_custom_promotion_rules_custom_promotion_rule_id_200_response_data.go +model_patch_custom_promotion_rules_custom_promotion_rule_id_200_response_data_attributes.go model_patch_customer_addresses_customer_address_id_200_response.go model_patch_customer_addresses_customer_address_id_200_response_data.go model_patch_customer_groups_customer_group_id_200_response.go @@ -3700,14 +4143,21 @@ model_patch_customer_password_resets_customer_password_reset_id_200_response_dat model_patch_customer_password_resets_customer_password_reset_id_200_response_data_attributes.go model_patch_customer_payment_sources_customer_payment_source_id_200_response.go model_patch_customer_payment_sources_customer_payment_source_id_200_response_data.go +model_patch_customer_payment_sources_customer_payment_source_id_200_response_data_attributes.go model_patch_customer_subscriptions_customer_subscription_id_200_response.go model_patch_customer_subscriptions_customer_subscription_id_200_response_data.go +model_patch_customer_subscriptions_customer_subscription_id_200_response_data_attributes.go model_patch_customers_customer_id_200_response.go model_patch_customers_customer_id_200_response_data.go model_patch_customers_customer_id_200_response_data_attributes.go model_patch_delivery_lead_times_delivery_lead_time_id_200_response.go model_patch_delivery_lead_times_delivery_lead_time_id_200_response_data.go model_patch_delivery_lead_times_delivery_lead_time_id_200_response_data_attributes.go +model_patch_events_event_id_200_response.go +model_patch_events_event_id_200_response_data.go +model_patch_events_event_id_200_response_data_attributes.go +model_patch_exports_export_id_200_response.go +model_patch_exports_export_id_200_response_data.go model_patch_external_gateways_external_gateway_id_200_response.go model_patch_external_gateways_external_gateway_id_200_response_data.go model_patch_external_gateways_external_gateway_id_200_response_data_attributes.go @@ -3726,6 +4176,9 @@ model_patch_fixed_amount_promotions_fixed_amount_promotion_id_200_response_data_ model_patch_fixed_price_promotions_fixed_price_promotion_id_200_response.go model_patch_fixed_price_promotions_fixed_price_promotion_id_200_response_data.go model_patch_fixed_price_promotions_fixed_price_promotion_id_200_response_data_attributes.go +model_patch_flex_promotions_flex_promotion_id_200_response.go +model_patch_flex_promotions_flex_promotion_id_200_response_data.go +model_patch_flex_promotions_flex_promotion_id_200_response_data_attributes.go model_patch_free_gift_promotions_free_gift_promotion_id_200_response.go model_patch_free_gift_promotions_free_gift_promotion_id_200_response_data.go model_patch_free_gift_promotions_free_gift_promotion_id_200_response_data_attributes.go @@ -3740,6 +4193,8 @@ model_patch_gift_cards_gift_card_id_200_response_data_attributes.go model_patch_google_geocoders_google_geocoder_id_200_response.go model_patch_google_geocoders_google_geocoder_id_200_response_data.go model_patch_google_geocoders_google_geocoder_id_200_response_data_attributes.go +model_patch_imports_import_id_200_response.go +model_patch_imports_import_id_200_response_data.go model_patch_in_stock_subscriptions_in_stock_subscription_id_200_response.go model_patch_in_stock_subscriptions_in_stock_subscription_id_200_response_data.go model_patch_in_stock_subscriptions_in_stock_subscription_id_200_response_data_attributes.go @@ -3764,6 +4219,9 @@ model_patch_line_item_options_line_item_option_id_200_response_data_attributes.g model_patch_line_items_line_item_id_200_response.go model_patch_line_items_line_item_id_200_response_data.go model_patch_line_items_line_item_id_200_response_data_attributes.go +model_patch_links_link_id_200_response.go +model_patch_links_link_id_200_response_data.go +model_patch_links_link_id_200_response_data_attributes.go model_patch_manual_gateways_manual_gateway_id_200_response.go model_patch_manual_gateways_manual_gateway_id_200_response_data.go model_patch_manual_gateways_manual_gateway_id_200_response_data_attributes.go @@ -3801,6 +4259,9 @@ model_patch_parcels_parcel_id_200_response_data_attributes.go model_patch_payment_methods_payment_method_id_200_response.go model_patch_payment_methods_payment_method_id_200_response_data.go model_patch_payment_methods_payment_method_id_200_response_data_attributes.go +model_patch_payment_options_payment_option_id_200_response.go +model_patch_payment_options_payment_option_id_200_response_data.go +model_patch_payment_options_payment_option_id_200_response_data_attributes.go model_patch_paypal_gateways_paypal_gateway_id_200_response.go model_patch_paypal_gateways_paypal_gateway_id_200_response_data.go model_patch_paypal_gateways_paypal_gateway_id_200_response_data_attributes.go @@ -3813,6 +4274,9 @@ model_patch_percentage_discount_promotions_percentage_discount_promotion_id_200_ model_patch_price_frequency_tiers_price_frequency_tier_id_200_response.go model_patch_price_frequency_tiers_price_frequency_tier_id_200_response_data.go model_patch_price_frequency_tiers_price_frequency_tier_id_200_response_data_attributes.go +model_patch_price_list_schedulers_price_list_scheduler_id_200_response.go +model_patch_price_list_schedulers_price_list_scheduler_id_200_response_data.go +model_patch_price_list_schedulers_price_list_scheduler_id_200_response_data_attributes.go model_patch_price_lists_price_list_id_200_response.go model_patch_price_lists_price_list_id_200_response_data.go model_patch_price_lists_price_list_id_200_response_data_attributes.go @@ -3824,6 +4288,9 @@ model_patch_prices_price_id_200_response_data.go model_patch_prices_price_id_200_response_data_attributes.go model_patch_recurring_order_copies_recurring_order_copy_id_200_response.go model_patch_recurring_order_copies_recurring_order_copy_id_200_response_data.go +model_patch_refunds_refund_id_200_response.go +model_patch_refunds_refund_id_200_response_data.go +model_patch_refunds_refund_id_200_response_data_attributes.go model_patch_return_line_items_return_line_item_id_200_response.go model_patch_return_line_items_return_line_item_id_200_response_data.go model_patch_return_line_items_return_line_item_id_200_response_data_attributes.go @@ -3868,9 +4335,15 @@ model_patch_skus_sku_id_200_response_data_attributes.go model_patch_stock_items_stock_item_id_200_response.go model_patch_stock_items_stock_item_id_200_response_data.go model_patch_stock_items_stock_item_id_200_response_data_attributes.go +model_patch_stock_line_items_stock_line_item_id_200_response.go +model_patch_stock_line_items_stock_line_item_id_200_response_data.go +model_patch_stock_line_items_stock_line_item_id_200_response_data_attributes.go model_patch_stock_locations_stock_location_id_200_response.go model_patch_stock_locations_stock_location_id_200_response_data.go model_patch_stock_locations_stock_location_id_200_response_data_attributes.go +model_patch_stock_reservations_stock_reservation_id_200_response.go +model_patch_stock_reservations_stock_reservation_id_200_response_data.go +model_patch_stock_reservations_stock_reservation_id_200_response_data_attributes.go model_patch_stock_transfers_stock_transfer_id_200_response.go model_patch_stock_transfers_stock_transfer_id_200_response_data.go model_patch_stock_transfers_stock_transfer_id_200_response_data_attributes.go @@ -3883,6 +4356,9 @@ model_patch_stripe_payments_stripe_payment_id_200_response_data_attributes.go model_patch_subscription_models_subscription_model_id_200_response.go model_patch_subscription_models_subscription_model_id_200_response_data.go model_patch_subscription_models_subscription_model_id_200_response_data_attributes.go +model_patch_tags_tag_id_200_response.go +model_patch_tags_tag_id_200_response_data.go +model_patch_tags_tag_id_200_response_data_attributes.go model_patch_tax_categories_tax_category_id_200_response.go model_patch_tax_categories_tax_category_id_200_response_data.go model_patch_tax_categories_tax_category_id_200_response_data_attributes.go @@ -3892,6 +4368,8 @@ model_patch_tax_rules_tax_rule_id_200_response_data_attributes.go model_patch_taxjar_accounts_taxjar_account_id_200_response.go model_patch_taxjar_accounts_taxjar_account_id_200_response_data.go model_patch_taxjar_accounts_taxjar_account_id_200_response_data_attributes.go +model_patch_voids_void_id_200_response.go +model_patch_voids_void_id_200_response_data.go model_patch_webhooks_webhook_id_200_response.go model_patch_webhooks_webhook_id_200_response_data.go model_patch_webhooks_webhook_id_200_response_data_attributes.go @@ -3909,6 +4387,13 @@ model_payment_method_data_relationships.go model_payment_method_update.go model_payment_method_update_data.go model_payment_method_update_data_relationships.go +model_payment_option.go +model_payment_option_create.go +model_payment_option_create_data.go +model_payment_option_data.go +model_payment_option_data_relationships.go +model_payment_option_update.go +model_payment_option_update_data.go model_paypal_gateway.go model_paypal_gateway_create.go model_paypal_gateway_create_data.go @@ -3935,12 +4420,19 @@ model_post_addresses_201_response_data.go model_post_addresses_201_response_data_attributes.go model_post_addresses_201_response_data_links.go model_post_addresses_201_response_data_relationships.go +model_post_addresses_201_response_data_relationships_events.go +model_post_addresses_201_response_data_relationships_events_data.go model_post_addresses_201_response_data_relationships_geocoder.go model_post_addresses_201_response_data_relationships_geocoder_data.go model_post_addresses_201_response_data_relationships_geocoder_links.go +model_post_addresses_201_response_data_relationships_tags.go +model_post_addresses_201_response_data_relationships_tags_data.go +model_post_addresses_201_response_data_relationships_versions.go +model_post_addresses_201_response_data_relationships_versions_data.go model_post_adjustments_201_response.go model_post_adjustments_201_response_data.go model_post_adjustments_201_response_data_attributes.go +model_post_adjustments_201_response_data_relationships.go model_post_adyen_gateways_201_response.go model_post_adyen_gateways_201_response_data.go model_post_adyen_gateways_201_response_data_attributes.go @@ -3967,8 +4459,6 @@ model_post_avalara_accounts_201_response.go model_post_avalara_accounts_201_response_data.go model_post_avalara_accounts_201_response_data_attributes.go model_post_avalara_accounts_201_response_data_relationships.go -model_post_avalara_accounts_201_response_data_relationships_attachments.go -model_post_avalara_accounts_201_response_data_relationships_attachments_data.go model_post_avalara_accounts_201_response_data_relationships_markets.go model_post_avalara_accounts_201_response_data_relationships_markets_data.go model_post_avalara_accounts_201_response_data_relationships_tax_categories.go @@ -4010,6 +4500,25 @@ model_post_bundles_201_response_data_relationships_sku_list.go model_post_bundles_201_response_data_relationships_sku_list_data.go model_post_bundles_201_response_data_relationships_skus.go model_post_bundles_201_response_data_relationships_skus_data.go +model_post_buy_x_pay_y_promotions_201_response.go +model_post_buy_x_pay_y_promotions_201_response_data.go +model_post_buy_x_pay_y_promotions_201_response_data_attributes.go +model_post_buy_x_pay_y_promotions_201_response_data_relationships.go +model_post_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule.go +model_post_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule_data.go +model_post_buy_x_pay_y_promotions_201_response_data_relationships_coupons.go +model_post_buy_x_pay_y_promotions_201_response_data_relationships_coupons_data.go +model_post_buy_x_pay_y_promotions_201_response_data_relationships_custom_promotion_rule.go +model_post_buy_x_pay_y_promotions_201_response_data_relationships_custom_promotion_rule_data.go +model_post_buy_x_pay_y_promotions_201_response_data_relationships_order_amount_promotion_rule.go +model_post_buy_x_pay_y_promotions_201_response_data_relationships_order_amount_promotion_rule_data.go +model_post_buy_x_pay_y_promotions_201_response_data_relationships_promotion_rules.go +model_post_buy_x_pay_y_promotions_201_response_data_relationships_promotion_rules_data.go +model_post_buy_x_pay_y_promotions_201_response_data_relationships_sku_list_promotion_rule.go +model_post_buy_x_pay_y_promotions_201_response_data_relationships_sku_list_promotion_rule_data.go +model_post_carrier_accounts_201_response.go +model_post_carrier_accounts_201_response_data.go +model_post_carrier_accounts_201_response_data_attributes.go model_post_checkout_com_gateways_201_response.go model_post_checkout_com_gateways_201_response_data.go model_post_checkout_com_gateways_201_response_data_attributes.go @@ -4026,8 +4535,6 @@ model_post_cleanups_201_response_data_relationships.go model_post_coupon_codes_promotion_rules_201_response.go model_post_coupon_codes_promotion_rules_201_response_data.go model_post_coupon_codes_promotion_rules_201_response_data_relationships.go -model_post_coupon_codes_promotion_rules_201_response_data_relationships_coupons.go -model_post_coupon_codes_promotion_rules_201_response_data_relationships_coupons_data.go model_post_coupon_codes_promotion_rules_201_response_data_relationships_promotion.go model_post_coupon_codes_promotion_rules_201_response_data_relationships_promotion_data.go model_post_coupon_recipients_201_response.go @@ -4040,10 +4547,17 @@ model_post_coupons_201_response.go model_post_coupons_201_response_data.go model_post_coupons_201_response_data_attributes.go model_post_coupons_201_response_data_relationships.go +model_post_coupons_201_response_data_relationships_coupon_recipient.go +model_post_coupons_201_response_data_relationships_coupon_recipient_data.go model_post_coupons_201_response_data_relationships_promotion_rule.go model_post_coupons_201_response_data_relationships_promotion_rule_data.go +model_post_custom_promotion_rules_201_response.go +model_post_custom_promotion_rules_201_response_data.go +model_post_custom_promotion_rules_201_response_data_attributes.go +model_post_custom_promotion_rules_201_response_data_relationships.go model_post_customer_addresses_201_response.go model_post_customer_addresses_201_response_data.go +model_post_customer_addresses_201_response_data_attributes.go model_post_customer_addresses_201_response_data_relationships.go model_post_customer_addresses_201_response_data_relationships_address.go model_post_customer_addresses_201_response_data_relationships_address_data.go @@ -4059,12 +4573,16 @@ model_post_customer_password_resets_201_response_data_attributes.go model_post_customer_password_resets_201_response_data_relationships.go model_post_customer_payment_sources_201_response.go model_post_customer_payment_sources_201_response_data.go +model_post_customer_payment_sources_201_response_data_attributes.go model_post_customer_payment_sources_201_response_data_relationships.go +model_post_customer_payment_sources_201_response_data_relationships_payment_method.go +model_post_customer_payment_sources_201_response_data_relationships_payment_method_data.go model_post_customer_payment_sources_201_response_data_relationships_payment_source.go model_post_customer_payment_sources_201_response_data_relationships_payment_source_data.go model_post_customer_subscriptions_201_response.go model_post_customer_subscriptions_201_response_data.go model_post_customer_subscriptions_201_response_data_attributes.go +model_post_customer_subscriptions_201_response_data_relationships.go model_post_customers_201_response.go model_post_customers_201_response_data.go model_post_customers_201_response_data_attributes.go @@ -4096,6 +4614,7 @@ model_post_delivery_lead_times_201_response_data_relationships_stock_location_da model_post_exports_201_response.go model_post_exports_201_response_data.go model_post_exports_201_response_data_attributes.go +model_post_exports_201_response_data_relationships.go model_post_external_gateways_201_response.go model_post_external_gateways_201_response_data.go model_post_external_gateways_201_response_data_attributes.go @@ -4111,15 +4630,6 @@ model_post_external_payments_201_response_data_relationships_wallet_data.go model_post_external_promotions_201_response.go model_post_external_promotions_201_response_data.go model_post_external_promotions_201_response_data_attributes.go -model_post_external_promotions_201_response_data_relationships.go -model_post_external_promotions_201_response_data_relationships_coupon_codes_promotion_rule.go -model_post_external_promotions_201_response_data_relationships_coupon_codes_promotion_rule_data.go -model_post_external_promotions_201_response_data_relationships_order_amount_promotion_rule.go -model_post_external_promotions_201_response_data_relationships_order_amount_promotion_rule_data.go -model_post_external_promotions_201_response_data_relationships_promotion_rules.go -model_post_external_promotions_201_response_data_relationships_promotion_rules_data.go -model_post_external_promotions_201_response_data_relationships_sku_list_promotion_rule.go -model_post_external_promotions_201_response_data_relationships_sku_list_promotion_rule_data.go model_post_external_tax_calculators_201_response.go model_post_external_tax_calculators_201_response_data.go model_post_external_tax_calculators_201_response_data_attributes.go @@ -4130,13 +4640,17 @@ model_post_fixed_amount_promotions_201_response_data_attributes.go model_post_fixed_price_promotions_201_response.go model_post_fixed_price_promotions_201_response_data.go model_post_fixed_price_promotions_201_response_data_attributes.go -model_post_fixed_price_promotions_201_response_data_relationships.go +model_post_flex_promotions_201_response.go +model_post_flex_promotions_201_response_data.go +model_post_flex_promotions_201_response_data_attributes.go +model_post_flex_promotions_201_response_data_relationships.go model_post_free_gift_promotions_201_response.go model_post_free_gift_promotions_201_response_data.go model_post_free_gift_promotions_201_response_data_attributes.go model_post_free_shipping_promotions_201_response.go model_post_free_shipping_promotions_201_response_data.go model_post_free_shipping_promotions_201_response_data_attributes.go +model_post_free_shipping_promotions_201_response_data_relationships.go model_post_gift_card_recipients_201_response.go model_post_gift_card_recipients_201_response_data.go model_post_gift_cards_201_response.go @@ -4194,16 +4708,30 @@ model_post_line_items_201_response.go model_post_line_items_201_response_data.go model_post_line_items_201_response_data_attributes.go model_post_line_items_201_response_data_relationships.go +model_post_line_items_201_response_data_relationships_adjustment.go +model_post_line_items_201_response_data_relationships_adjustment_data.go +model_post_line_items_201_response_data_relationships_bundle.go +model_post_line_items_201_response_data_relationships_bundle_data.go +model_post_line_items_201_response_data_relationships_gift_card.go +model_post_line_items_201_response_data_relationships_gift_card_data.go model_post_line_items_201_response_data_relationships_item.go model_post_line_items_201_response_data_relationships_item_data.go model_post_line_items_201_response_data_relationships_line_item_options.go model_post_line_items_201_response_data_relationships_line_item_options_data.go -model_post_line_items_201_response_data_relationships_shipment_line_items.go -model_post_line_items_201_response_data_relationships_shipment_line_items_data.go +model_post_line_items_201_response_data_relationships_return_line_items.go +model_post_line_items_201_response_data_relationships_return_line_items_data.go +model_post_line_items_201_response_data_relationships_shipment.go +model_post_line_items_201_response_data_relationships_shipment_data.go model_post_line_items_201_response_data_relationships_stock_line_items.go model_post_line_items_201_response_data_relationships_stock_line_items_data.go +model_post_line_items_201_response_data_relationships_stock_reservations.go +model_post_line_items_201_response_data_relationships_stock_reservations_data.go model_post_line_items_201_response_data_relationships_stock_transfers.go model_post_line_items_201_response_data_relationships_stock_transfers_data.go +model_post_links_201_response.go +model_post_links_201_response_data.go +model_post_links_201_response_data_attributes.go +model_post_links_201_response_data_relationships.go model_post_manual_gateways_201_response.go model_post_manual_gateways_201_response_data.go model_post_manual_gateways_201_response_data_attributes.go @@ -4218,10 +4746,14 @@ model_post_markets_201_response.go model_post_markets_201_response_data.go model_post_markets_201_response_data_attributes.go model_post_markets_201_response_data_relationships.go +model_post_markets_201_response_data_relationships_base_price_list.go +model_post_markets_201_response_data_relationships_base_price_list_data.go model_post_markets_201_response_data_relationships_merchant.go model_post_markets_201_response_data_relationships_merchant_data.go model_post_markets_201_response_data_relationships_price_list.go model_post_markets_201_response_data_relationships_price_list_data.go +model_post_markets_201_response_data_relationships_price_list_schedulers.go +model_post_markets_201_response_data_relationships_price_list_schedulers_data.go model_post_markets_201_response_data_relationships_subscription_model.go model_post_markets_201_response_data_relationships_subscription_model_data.go model_post_markets_201_response_data_relationships_tax_calculator.go @@ -4233,7 +4765,6 @@ model_post_merchants_201_response_data_relationships.go model_post_order_amount_promotion_rules_201_response.go model_post_order_amount_promotion_rules_201_response_data.go model_post_order_amount_promotion_rules_201_response_data_attributes.go -model_post_order_amount_promotion_rules_201_response_data_relationships.go model_post_order_copies_201_response.go model_post_order_copies_201_response_data.go model_post_order_copies_201_response_data_attributes.go @@ -4248,14 +4779,14 @@ model_post_order_subscription_items_201_response.go model_post_order_subscription_items_201_response_data.go model_post_order_subscription_items_201_response_data_attributes.go model_post_order_subscription_items_201_response_data_relationships.go +model_post_order_subscription_items_201_response_data_relationships_source_line_item.go +model_post_order_subscription_items_201_response_data_relationships_source_line_item_data.go model_post_order_subscriptions_201_response.go model_post_order_subscriptions_201_response_data.go model_post_order_subscriptions_201_response_data_attributes.go model_post_order_subscriptions_201_response_data_relationships.go model_post_order_subscriptions_201_response_data_relationships_customer_payment_source.go model_post_order_subscriptions_201_response_data_relationships_customer_payment_source_data.go -model_post_order_subscriptions_201_response_data_relationships_order_copies.go -model_post_order_subscriptions_201_response_data_relationships_order_copies_data.go model_post_order_subscriptions_201_response_data_relationships_order_factories.go model_post_order_subscriptions_201_response_data_relationships_order_factories_data.go model_post_order_subscriptions_201_response_data_relationships_order_subscription_items.go @@ -4280,8 +4811,14 @@ model_post_orders_201_response_data_relationships_billing_address.go model_post_orders_201_response_data_relationships_billing_address_data.go model_post_orders_201_response_data_relationships_line_items.go model_post_orders_201_response_data_relationships_line_items_data.go -model_post_orders_201_response_data_relationships_payment_method.go -model_post_orders_201_response_data_relationships_payment_method_data.go +model_post_orders_201_response_data_relationships_links.go +model_post_orders_201_response_data_relationships_links_data.go +model_post_orders_201_response_data_relationships_order_copies.go +model_post_orders_201_response_data_relationships_order_copies_data.go +model_post_orders_201_response_data_relationships_payment_options.go +model_post_orders_201_response_data_relationships_payment_options_data.go +model_post_orders_201_response_data_relationships_resource_errors.go +model_post_orders_201_response_data_relationships_resource_errors_data.go model_post_orders_201_response_data_relationships_shipments.go model_post_orders_201_response_data_relationships_shipments_data.go model_post_orders_201_response_data_relationships_shipping_address.go @@ -4300,8 +4837,6 @@ model_post_parcel_line_items_201_response_data_attributes.go model_post_parcel_line_items_201_response_data_relationships.go model_post_parcel_line_items_201_response_data_relationships_parcel.go model_post_parcel_line_items_201_response_data_relationships_parcel_data.go -model_post_parcel_line_items_201_response_data_relationships_shipment_line_item.go -model_post_parcel_line_items_201_response_data_relationships_shipment_line_item_data.go model_post_parcel_line_items_201_response_data_relationships_stock_line_item.go model_post_parcel_line_items_201_response_data_relationships_stock_line_item_data.go model_post_parcels_201_response.go @@ -4312,12 +4847,14 @@ model_post_parcels_201_response_data_relationships_package.go model_post_parcels_201_response_data_relationships_package_data.go model_post_parcels_201_response_data_relationships_parcel_line_items.go model_post_parcels_201_response_data_relationships_parcel_line_items_data.go -model_post_parcels_201_response_data_relationships_shipment.go -model_post_parcels_201_response_data_relationships_shipment_data.go model_post_payment_methods_201_response.go model_post_payment_methods_201_response_data.go model_post_payment_methods_201_response_data_attributes.go model_post_payment_methods_201_response_data_relationships.go +model_post_payment_options_201_response.go +model_post_payment_options_201_response_data.go +model_post_payment_options_201_response_data_attributes.go +model_post_payment_options_201_response_data_relationships.go model_post_paypal_gateways_201_response.go model_post_paypal_gateways_201_response_data.go model_post_paypal_gateways_201_response_data_attributes.go @@ -4336,6 +4873,10 @@ model_post_price_frequency_tiers_201_response_data_attributes.go model_post_price_frequency_tiers_201_response_data_relationships.go model_post_price_frequency_tiers_201_response_data_relationships_price.go model_post_price_frequency_tiers_201_response_data_relationships_price_data.go +model_post_price_list_schedulers_201_response.go +model_post_price_list_schedulers_201_response_data.go +model_post_price_list_schedulers_201_response_data_attributes.go +model_post_price_list_schedulers_201_response_data_relationships.go model_post_price_lists_201_response.go model_post_price_lists_201_response_data.go model_post_price_lists_201_response_data_attributes.go @@ -4349,6 +4890,12 @@ model_post_prices_201_response.go model_post_prices_201_response_data.go model_post_prices_201_response_data_attributes.go model_post_prices_201_response_data_relationships.go +model_post_prices_201_response_data_relationships_jwt_customer.go +model_post_prices_201_response_data_relationships_jwt_customer_data.go +model_post_prices_201_response_data_relationships_jwt_markets.go +model_post_prices_201_response_data_relationships_jwt_markets_data.go +model_post_prices_201_response_data_relationships_jwt_stock_locations.go +model_post_prices_201_response_data_relationships_jwt_stock_locations_data.go model_post_prices_201_response_data_relationships_price_frequency_tiers.go model_post_prices_201_response_data_relationships_price_frequency_tiers_data.go model_post_prices_201_response_data_relationships_price_tiers.go @@ -4362,8 +4909,6 @@ model_post_return_line_items_201_response.go model_post_return_line_items_201_response_data.go model_post_return_line_items_201_response_data_attributes.go model_post_return_line_items_201_response_data_relationships.go -model_post_return_line_items_201_response_data_relationships_return.go -model_post_return_line_items_201_response_data_relationships_return_data.go model_post_returns_201_response.go model_post_returns_201_response_data.go model_post_returns_201_response_data_relationships.go @@ -4371,16 +4916,30 @@ model_post_returns_201_response_data_relationships_destination_address.go model_post_returns_201_response_data_relationships_destination_address_data.go model_post_returns_201_response_data_relationships_origin_address.go model_post_returns_201_response_data_relationships_origin_address_data.go -model_post_returns_201_response_data_relationships_return_line_items.go -model_post_returns_201_response_data_relationships_return_line_items_data.go +model_post_returns_201_response_data_relationships_reference_refund.go +model_post_returns_201_response_data_relationships_reference_refund_data.go model_post_satispay_gateways_201_response.go model_post_satispay_gateways_201_response_data.go +model_post_satispay_gateways_201_response_data_attributes.go model_post_satispay_gateways_201_response_data_relationships.go model_post_satispay_gateways_201_response_data_relationships_satispay_payments.go model_post_satispay_gateways_201_response_data_relationships_satispay_payments_data.go model_post_satispay_payments_201_response.go model_post_satispay_payments_201_response_data.go model_post_satispay_payments_201_response_data_attributes.go +model_post_shipments_201_response.go +model_post_shipments_201_response_data.go +model_post_shipments_201_response_data_relationships.go +model_post_shipments_201_response_data_relationships_available_shipping_methods.go +model_post_shipments_201_response_data_relationships_available_shipping_methods_data.go +model_post_shipments_201_response_data_relationships_carrier_accounts.go +model_post_shipments_201_response_data_relationships_carrier_accounts_data.go +model_post_shipments_201_response_data_relationships_delivery_lead_time.go +model_post_shipments_201_response_data_relationships_delivery_lead_time_data.go +model_post_shipments_201_response_data_relationships_inventory_stock_location.go +model_post_shipments_201_response_data_relationships_inventory_stock_location_data.go +model_post_shipments_201_response_data_relationships_shipping_category.go +model_post_shipments_201_response_data_relationships_shipping_category_data.go model_post_shipping_categories_201_response.go model_post_shipping_categories_201_response_data.go model_post_shipping_categories_201_response_data_attributes.go @@ -4423,6 +4982,7 @@ model_post_sku_lists_201_response_data_relationships_sku_list_items_data.go model_post_sku_options_201_response.go model_post_sku_options_201_response_data.go model_post_sku_options_201_response_data_attributes.go +model_post_sku_options_201_response_data_relationships.go model_post_skus_201_response.go model_post_skus_201_response_data.go model_post_skus_201_response_data_attributes.go @@ -4437,10 +4997,24 @@ model_post_stock_items_201_response.go model_post_stock_items_201_response_data.go model_post_stock_items_201_response_data_attributes.go model_post_stock_items_201_response_data_relationships.go +model_post_stock_items_201_response_data_relationships_reserved_stock.go +model_post_stock_items_201_response_data_relationships_reserved_stock_data.go +model_post_stock_line_items_201_response.go +model_post_stock_line_items_201_response_data.go +model_post_stock_line_items_201_response_data_attributes.go +model_post_stock_line_items_201_response_data_relationships.go +model_post_stock_line_items_201_response_data_relationships_stock_reservation.go +model_post_stock_line_items_201_response_data_relationships_stock_reservation_data.go model_post_stock_locations_201_response.go model_post_stock_locations_201_response_data.go model_post_stock_locations_201_response_data_attributes.go model_post_stock_locations_201_response_data_relationships.go +model_post_stock_reservations_201_response.go +model_post_stock_reservations_201_response_data.go +model_post_stock_reservations_201_response_data_attributes.go +model_post_stock_reservations_201_response_data_relationships.go +model_post_stock_reservations_201_response_data_relationships_stock_transfer.go +model_post_stock_reservations_201_response_data_relationships_stock_transfer_data.go model_post_stock_transfers_201_response.go model_post_stock_transfers_201_response_data.go model_post_stock_transfers_201_response_data_attributes.go @@ -4462,6 +5036,9 @@ model_post_subscription_models_201_response.go model_post_subscription_models_201_response_data.go model_post_subscription_models_201_response_data_attributes.go model_post_subscription_models_201_response_data_relationships.go +model_post_tags_201_response.go +model_post_tags_201_response_data.go +model_post_tags_201_response_data_attributes.go model_post_tax_categories_201_response.go model_post_tax_categories_201_response_data.go model_post_tax_categories_201_response_data_attributes.go @@ -4475,12 +5052,14 @@ model_post_tax_rules_201_response_data_relationships_manual_tax_calculator_data. model_post_taxjar_accounts_201_response.go model_post_taxjar_accounts_201_response_data.go model_post_taxjar_accounts_201_response_data_attributes.go +model_post_taxjar_accounts_201_response_data_relationships.go model_post_webhooks_201_response.go model_post_webhooks_201_response_data.go model_post_webhooks_201_response_data_attributes.go model_post_webhooks_201_response_data_relationships.go model_post_wire_transfers_201_response.go model_post_wire_transfers_201_response_data.go +model_post_wire_transfers_201_response_data_relationships.go model_price.go model_price_create.go model_price_create_data.go @@ -4511,6 +5090,15 @@ model_price_list_create.go model_price_list_create_data.go model_price_list_data.go model_price_list_data_relationships.go +model_price_list_scheduler.go +model_price_list_scheduler_create.go +model_price_list_scheduler_create_data.go +model_price_list_scheduler_create_data_relationships.go +model_price_list_scheduler_data.go +model_price_list_scheduler_data_relationships.go +model_price_list_scheduler_update.go +model_price_list_scheduler_update_data.go +model_price_list_scheduler_update_data_relationships.go model_price_list_update.go model_price_list_update_data.go model_price_tier.go @@ -4539,14 +5127,25 @@ model_recurring_order_copy_update_data.go model_refund.go model_refund_data.go model_refund_data_relationships.go +model_refund_update.go +model_refund_update_data.go +model_reserved_stock.go +model_reserved_stock_data.go +model_reserved_stock_data_relationships.go +model_reserved_stock_data_relationships_stock_item.go +model_reserved_stock_data_relationships_stock_item_data.go +model_resource_error.go +model_resource_error_data.go +model_resource_error_data_relationships.go +model_resource_error_data_relationships_resource.go +model_resource_error_data_relationships_resource_data.go model_return.go model_return_create.go model_return_create_data.go model_return_create_data_relationships.go +model_return_create_data_relationships_reference_capture.go model_return_data.go model_return_data_relationships.go -model_return_data_relationships_return_line_items.go -model_return_data_relationships_return_line_items_data.go model_return_line_item.go model_return_line_item_create.go model_return_line_item_create_data.go @@ -4558,6 +5157,7 @@ model_return_line_item_update.go model_return_line_item_update_data.go model_return_update.go model_return_update_data.go +model_return_update_data_relationships.go model_satispay_gateway.go model_satispay_gateway_create.go model_satispay_gateway_create_data.go @@ -4576,6 +5176,11 @@ model_satispay_payment_data.go model_satispay_payment_update.go model_satispay_payment_update_data.go model_shipment.go +model_shipment_create.go +model_shipment_create_data.go +model_shipment_create_data_relationships.go +model_shipment_create_data_relationships_inventory_stock_location.go +model_shipment_create_data_relationships_shipping_category.go model_shipment_data.go model_shipment_data_relationships.go model_shipment_data_relationships_carrier_accounts.go @@ -4598,7 +5203,6 @@ model_shipping_method.go model_shipping_method_create.go model_shipping_method_create_data.go model_shipping_method_create_data_relationships.go -model_shipping_method_create_data_relationships_shipping_category.go model_shipping_method_create_data_relationships_shipping_method_tiers.go model_shipping_method_create_data_relationships_shipping_zone.go model_shipping_method_data.go @@ -4621,6 +5225,7 @@ model_shipping_weight_tier_create_data_relationships.go model_shipping_weight_tier_data.go model_shipping_weight_tier_update.go model_shipping_weight_tier_update_data.go +model_shipping_weight_tier_update_data_relationships.go model_shipping_zone.go model_shipping_zone_create.go model_shipping_zone_create_data.go @@ -4634,8 +5239,6 @@ model_sku_create_data.go model_sku_create_data_relationships.go model_sku_data.go model_sku_data_relationships.go -model_sku_data_relationships_stock_items.go -model_sku_data_relationships_stock_items_data.go model_sku_list.go model_sku_list_create.go model_sku_list_create_data.go @@ -4665,7 +5268,9 @@ model_sku_list_update_data.go model_sku_option.go model_sku_option_create.go model_sku_option_create_data.go +model_sku_option_create_data_relationships.go model_sku_option_data.go +model_sku_option_data_relationships.go model_sku_option_update.go model_sku_option_update_data.go model_sku_update.go @@ -4677,12 +5282,20 @@ model_stock_item_create_data.go model_stock_item_create_data_relationships.go model_stock_item_data.go model_stock_item_data_relationships.go +model_stock_item_data_relationships_reserved_stock.go +model_stock_item_data_relationships_reserved_stock_data.go model_stock_item_update.go model_stock_item_update_data.go model_stock_item_update_data_relationships.go model_stock_line_item.go +model_stock_line_item_create.go +model_stock_line_item_create_data.go +model_stock_line_item_create_data_relationships.go +model_stock_line_item_create_data_relationships_stock_item.go model_stock_line_item_data.go model_stock_line_item_data_relationships.go +model_stock_line_item_update.go +model_stock_line_item_update_data.go model_stock_location.go model_stock_location_create.go model_stock_location_create_data.go @@ -4690,6 +5303,14 @@ model_stock_location_data.go model_stock_location_data_relationships.go model_stock_location_update.go model_stock_location_update_data.go +model_stock_reservation.go +model_stock_reservation_create.go +model_stock_reservation_create_data.go +model_stock_reservation_create_data_relationships.go +model_stock_reservation_data.go +model_stock_reservation_data_relationships.go +model_stock_reservation_update.go +model_stock_reservation_update_data.go model_stock_transfer.go model_stock_transfer_create.go model_stock_transfer_create_data.go @@ -4721,17 +5342,20 @@ model_subscription_model_data.go model_subscription_model_data_relationships.go model_subscription_model_update.go model_subscription_model_update_data.go +model_tag.go +model_tag_create.go +model_tag_create_data.go +model_tag_data.go +model_tag_update.go +model_tag_update_data.go model_tax_calculator.go model_tax_calculator_data.go model_tax_category.go model_tax_category_create.go model_tax_category_create_data.go model_tax_category_create_data_relationships.go -model_tax_category_create_data_relationships_tax_calculator.go model_tax_category_data.go model_tax_category_data_relationships.go -model_tax_category_data_relationships_tax_calculator.go -model_tax_category_data_relationships_tax_calculator_data.go model_tax_category_update.go model_tax_category_update_data.go model_tax_category_update_data_relationships.go @@ -4751,14 +5375,19 @@ model_taxjar_account.go model_taxjar_account_create.go model_taxjar_account_create_data.go model_taxjar_account_data.go +model_taxjar_account_data_relationships.go model_taxjar_account_update.go model_taxjar_account_update_data.go model_transaction.go model_transaction_data.go model_transaction_data_relationships.go +model_version.go +model_version_data.go model_void.go model_void_data.go model_void_data_relationships.go +model_void_update.go +model_void_update_data.go model_webhook.go model_webhook_create.go model_webhook_create_data.go @@ -4770,6 +5399,7 @@ model_wire_transfer.go model_wire_transfer_create.go model_wire_transfer_create_data.go model_wire_transfer_data.go +model_wire_transfer_data_relationships.go model_wire_transfer_update.go model_wire_transfer_update_data.go response.go @@ -4788,6 +5418,7 @@ test/api_bing_geocoders_test.go test/api_braintree_gateways_test.go test/api_braintree_payments_test.go test/api_bundles_test.go +test/api_buy_x_pay_y_promotions_test.go test/api_captures_test.go test/api_carrier_accounts_test.go test/api_checkout_com_gateways_test.go @@ -4796,6 +5427,7 @@ test/api_cleanups_test.go test/api_coupon_codes_promotion_rules_test.go test/api_coupon_recipients_test.go test/api_coupons_test.go +test/api_custom_promotion_rules_test.go test/api_customer_addresses_test.go test/api_customer_groups_test.go test/api_customer_password_resets_test.go @@ -4812,6 +5444,7 @@ test/api_external_promotions_test.go test/api_external_tax_calculators_test.go test/api_fixed_amount_promotions_test.go test/api_fixed_price_promotions_test.go +test/api_flex_promotions_test.go test/api_free_gift_promotions_test.go test/api_free_shipping_promotions_test.go test/api_geocoders_test.go @@ -4829,6 +5462,7 @@ test/api_klarna_gateways_test.go test/api_klarna_payments_test.go test/api_line_item_options_test.go test/api_line_items_test.go +test/api_links_test.go test/api_manual_gateways_test.go test/api_manual_tax_calculators_test.go test/api_markets_test.go @@ -4838,7 +5472,6 @@ test/api_order_copies_test.go test/api_order_factories_test.go test/api_order_subscription_items_test.go test/api_order_subscriptions_test.go -test/api_order_validation_rules_test.go test/api_orders_test.go test/api_organization_test.go test/api_packages_test.go @@ -4846,10 +5479,12 @@ test/api_parcel_line_items_test.go test/api_parcels_test.go test/api_payment_gateways_test.go test/api_payment_methods_test.go +test/api_payment_options_test.go test/api_paypal_gateways_test.go test/api_paypal_payments_test.go test/api_percentage_discount_promotions_test.go test/api_price_frequency_tiers_test.go +test/api_price_list_schedulers_test.go test/api_price_lists_test.go test/api_price_tiers_test.go test/api_price_volume_tiers_test.go @@ -4858,6 +5493,8 @@ test/api_promotion_rules_test.go test/api_promotions_test.go test/api_recurring_order_copies_test.go test/api_refunds_test.go +test/api_reserved_stocks_test.go +test/api_resource_errors_test.go test/api_return_line_items_test.go test/api_returns_test.go test/api_satispay_gateways_test.go @@ -4877,15 +5514,18 @@ test/api_skus_test.go test/api_stock_items_test.go test/api_stock_line_items_test.go test/api_stock_locations_test.go +test/api_stock_reservations_test.go test/api_stock_transfers_test.go test/api_stripe_gateways_test.go test/api_stripe_payments_test.go test/api_subscription_models_test.go +test/api_tags_test.go test/api_tax_calculators_test.go test/api_tax_categories_test.go test/api_tax_rules_test.go test/api_taxjar_accounts_test.go test/api_transactions_test.go +test/api_versions_test.go test/api_voids_test.go test/api_webhooks_test.go test/api_wire_transfers_test.go diff --git a/api/README.md b/api/README.md index 5fd4ff96..2d514849 100644 --- a/api/README.md +++ b/api/README.md @@ -5,7 +5,7 @@ Headless Commerce for Global Brands. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 4.1.3 +- API version: 7.3.1 - Package version: 1.0.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit [https://commercelayer.io](https://commercelayer.io) @@ -115,10 +115,13 @@ Class | Method | HTTP request | Description *AttachmentsApi* | [**DELETEAttachmentsAttachmentId**](docs/AttachmentsApi.md#deleteattachmentsattachmentid) | **Delete** /attachments/{attachmentId} | Delete an attachment *AttachmentsApi* | [**GETAttachments**](docs/AttachmentsApi.md#getattachments) | **Get** /attachments | List all attachments *AttachmentsApi* | [**GETAttachmentsAttachmentId**](docs/AttachmentsApi.md#getattachmentsattachmentid) | **Get** /attachments/{attachmentId} | Retrieve an attachment +*AttachmentsApi* | [**GETAuthorizationIdAttachments**](docs/AttachmentsApi.md#getauthorizationidattachments) | **Get** /authorizations/{authorizationId}/attachments | Retrieve the attachments associated to the authorization *AttachmentsApi* | [**GETAvalaraAccountIdAttachments**](docs/AttachmentsApi.md#getavalaraaccountidattachments) | **Get** /avalara_accounts/{avalaraAccountId}/attachments | Retrieve the attachments associated to the avalara account *AttachmentsApi* | [**GETBillingInfoValidationRuleIdAttachments**](docs/AttachmentsApi.md#getbillinginfovalidationruleidattachments) | **Get** /billing_info_validation_rules/{billingInfoValidationRuleId}/attachments | Retrieve the attachments associated to the billing info validation rule *AttachmentsApi* | [**GETBingGeocoderIdAttachments**](docs/AttachmentsApi.md#getbinggeocoderidattachments) | **Get** /bing_geocoders/{bingGeocoderId}/attachments | Retrieve the attachments associated to the bing geocoder *AttachmentsApi* | [**GETBundleIdAttachments**](docs/AttachmentsApi.md#getbundleidattachments) | **Get** /bundles/{bundleId}/attachments | Retrieve the attachments associated to the bundle +*AttachmentsApi* | [**GETBuyXPayYPromotionIdAttachments**](docs/AttachmentsApi.md#getbuyxpayypromotionidattachments) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/attachments | Retrieve the attachments associated to the buy x pay y promotion +*AttachmentsApi* | [**GETCaptureIdAttachments**](docs/AttachmentsApi.md#getcaptureidattachments) | **Get** /captures/{captureId}/attachments | Retrieve the attachments associated to the capture *AttachmentsApi* | [**GETCarrierAccountIdAttachments**](docs/AttachmentsApi.md#getcarrieraccountidattachments) | **Get** /carrier_accounts/{carrierAccountId}/attachments | Retrieve the attachments associated to the carrier account *AttachmentsApi* | [**GETCouponRecipientIdAttachments**](docs/AttachmentsApi.md#getcouponrecipientidattachments) | **Get** /coupon_recipients/{couponRecipientId}/attachments | Retrieve the attachments associated to the coupon recipient *AttachmentsApi* | [**GETCustomerGroupIdAttachments**](docs/AttachmentsApi.md#getcustomergroupidattachments) | **Get** /customer_groups/{customerGroupId}/attachments | Retrieve the attachments associated to the customer group @@ -128,6 +131,7 @@ Class | Method | HTTP request | Description *AttachmentsApi* | [**GETExternalTaxCalculatorIdAttachments**](docs/AttachmentsApi.md#getexternaltaxcalculatoridattachments) | **Get** /external_tax_calculators/{externalTaxCalculatorId}/attachments | Retrieve the attachments associated to the external tax calculator *AttachmentsApi* | [**GETFixedAmountPromotionIdAttachments**](docs/AttachmentsApi.md#getfixedamountpromotionidattachments) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/attachments | Retrieve the attachments associated to the fixed amount promotion *AttachmentsApi* | [**GETFixedPricePromotionIdAttachments**](docs/AttachmentsApi.md#getfixedpricepromotionidattachments) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/attachments | Retrieve the attachments associated to the fixed price promotion +*AttachmentsApi* | [**GETFlexPromotionIdAttachments**](docs/AttachmentsApi.md#getflexpromotionidattachments) | **Get** /flex_promotions/{flexPromotionId}/attachments | Retrieve the attachments associated to the flex promotion *AttachmentsApi* | [**GETFreeGiftPromotionIdAttachments**](docs/AttachmentsApi.md#getfreegiftpromotionidattachments) | **Get** /free_gift_promotions/{freeGiftPromotionId}/attachments | Retrieve the attachments associated to the free gift promotion *AttachmentsApi* | [**GETFreeShippingPromotionIdAttachments**](docs/AttachmentsApi.md#getfreeshippingpromotionidattachments) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/attachments | Retrieve the attachments associated to the free shipping promotion *AttachmentsApi* | [**GETGeocoderIdAttachments**](docs/AttachmentsApi.md#getgeocoderidattachments) | **Get** /geocoders/{geocoderId}/attachments | Retrieve the attachments associated to the geocoder @@ -139,10 +143,10 @@ Class | Method | HTTP request | Description *AttachmentsApi* | [**GETMarketIdAttachments**](docs/AttachmentsApi.md#getmarketidattachments) | **Get** /markets/{marketId}/attachments | Retrieve the attachments associated to the market *AttachmentsApi* | [**GETMerchantIdAttachments**](docs/AttachmentsApi.md#getmerchantidattachments) | **Get** /merchants/{merchantId}/attachments | Retrieve the attachments associated to the merchant *AttachmentsApi* | [**GETOrderIdAttachments**](docs/AttachmentsApi.md#getorderidattachments) | **Get** /orders/{orderId}/attachments | Retrieve the attachments associated to the order -*AttachmentsApi* | [**GETOrderValidationRuleIdAttachments**](docs/AttachmentsApi.md#getordervalidationruleidattachments) | **Get** /order_validation_rules/{orderValidationRuleId}/attachments | Retrieve the attachments associated to the order validation rule *AttachmentsApi* | [**GETPackageIdAttachments**](docs/AttachmentsApi.md#getpackageidattachments) | **Get** /packages/{packageId}/attachments | Retrieve the attachments associated to the package *AttachmentsApi* | [**GETParcelIdAttachments**](docs/AttachmentsApi.md#getparcelidattachments) | **Get** /parcels/{parcelId}/attachments | Retrieve the attachments associated to the parcel *AttachmentsApi* | [**GETPaymentMethodIdAttachments**](docs/AttachmentsApi.md#getpaymentmethodidattachments) | **Get** /payment_methods/{paymentMethodId}/attachments | Retrieve the attachments associated to the payment method +*AttachmentsApi* | [**GETPaymentOptionIdAttachments**](docs/AttachmentsApi.md#getpaymentoptionidattachments) | **Get** /payment_options/{paymentOptionId}/attachments | Retrieve the attachments associated to the payment option *AttachmentsApi* | [**GETPercentageDiscountPromotionIdAttachments**](docs/AttachmentsApi.md#getpercentagediscountpromotionidattachments) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/attachments | Retrieve the attachments associated to the percentage discount promotion *AttachmentsApi* | [**GETPriceFrequencyTierIdAttachments**](docs/AttachmentsApi.md#getpricefrequencytieridattachments) | **Get** /price_frequency_tiers/{priceFrequencyTierId}/attachments | Retrieve the attachments associated to the price frequency tier *AttachmentsApi* | [**GETPriceIdAttachments**](docs/AttachmentsApi.md#getpriceidattachments) | **Get** /prices/{priceId}/attachments | Retrieve the attachments associated to the price @@ -150,6 +154,7 @@ Class | Method | HTTP request | Description *AttachmentsApi* | [**GETPriceTierIdAttachments**](docs/AttachmentsApi.md#getpricetieridattachments) | **Get** /price_tiers/{priceTierId}/attachments | Retrieve the attachments associated to the price tier *AttachmentsApi* | [**GETPriceVolumeTierIdAttachments**](docs/AttachmentsApi.md#getpricevolumetieridattachments) | **Get** /price_volume_tiers/{priceVolumeTierId}/attachments | Retrieve the attachments associated to the price volume tier *AttachmentsApi* | [**GETPromotionIdAttachments**](docs/AttachmentsApi.md#getpromotionidattachments) | **Get** /promotions/{promotionId}/attachments | Retrieve the attachments associated to the promotion +*AttachmentsApi* | [**GETRefundIdAttachments**](docs/AttachmentsApi.md#getrefundidattachments) | **Get** /refunds/{refundId}/attachments | Retrieve the attachments associated to the refund *AttachmentsApi* | [**GETReturnIdAttachments**](docs/AttachmentsApi.md#getreturnidattachments) | **Get** /returns/{returnId}/attachments | Retrieve the attachments associated to the return *AttachmentsApi* | [**GETShipmentIdAttachments**](docs/AttachmentsApi.md#getshipmentidattachments) | **Get** /shipments/{shipmentId}/attachments | Retrieve the attachments associated to the shipment *AttachmentsApi* | [**GETShippingCategoryIdAttachments**](docs/AttachmentsApi.md#getshippingcategoryidattachments) | **Get** /shipping_categories/{shippingCategoryId}/attachments | Retrieve the attachments associated to the shipping category @@ -162,10 +167,13 @@ Class | Method | HTTP request | Description *AttachmentsApi* | [**GETSkuOptionIdAttachments**](docs/AttachmentsApi.md#getskuoptionidattachments) | **Get** /sku_options/{skuOptionId}/attachments | Retrieve the attachments associated to the SKU option *AttachmentsApi* | [**GETStockItemIdAttachments**](docs/AttachmentsApi.md#getstockitemidattachments) | **Get** /stock_items/{stockItemId}/attachments | Retrieve the attachments associated to the stock item *AttachmentsApi* | [**GETStockLocationIdAttachments**](docs/AttachmentsApi.md#getstocklocationidattachments) | **Get** /stock_locations/{stockLocationId}/attachments | Retrieve the attachments associated to the stock location +*AttachmentsApi* | [**GETStockTransferIdAttachments**](docs/AttachmentsApi.md#getstocktransferidattachments) | **Get** /stock_transfers/{stockTransferId}/attachments | Retrieve the attachments associated to the stock transfer *AttachmentsApi* | [**GETSubscriptionModelIdAttachments**](docs/AttachmentsApi.md#getsubscriptionmodelidattachments) | **Get** /subscription_models/{subscriptionModelId}/attachments | Retrieve the attachments associated to the subscription model *AttachmentsApi* | [**GETTaxCalculatorIdAttachments**](docs/AttachmentsApi.md#gettaxcalculatoridattachments) | **Get** /tax_calculators/{taxCalculatorId}/attachments | Retrieve the attachments associated to the tax calculator *AttachmentsApi* | [**GETTaxCategoryIdAttachments**](docs/AttachmentsApi.md#gettaxcategoryidattachments) | **Get** /tax_categories/{taxCategoryId}/attachments | Retrieve the attachments associated to the tax category *AttachmentsApi* | [**GETTaxjarAccountIdAttachments**](docs/AttachmentsApi.md#gettaxjaraccountidattachments) | **Get** /taxjar_accounts/{taxjarAccountId}/attachments | Retrieve the attachments associated to the taxjar account +*AttachmentsApi* | [**GETTransactionIdAttachments**](docs/AttachmentsApi.md#gettransactionidattachments) | **Get** /transactions/{transactionId}/attachments | Retrieve the attachments associated to the transaction +*AttachmentsApi* | [**GETVoidIdAttachments**](docs/AttachmentsApi.md#getvoididattachments) | **Get** /voids/{voidId}/attachments | Retrieve the attachments associated to the void *AttachmentsApi* | [**PATCHAttachmentsAttachmentId**](docs/AttachmentsApi.md#patchattachmentsattachmentid) | **Patch** /attachments/{attachmentId} | Update an attachment *AttachmentsApi* | [**POSTAttachments**](docs/AttachmentsApi.md#postattachments) | **Post** /attachments | Create an attachment *AuthorizationsApi* | [**GETAuthorizations**](docs/AuthorizationsApi.md#getauthorizations) | **Get** /authorizations | List all authorizations @@ -218,15 +226,24 @@ Class | Method | HTTP request | Description *BundlesApi* | [**GETSkuListIdBundles**](docs/BundlesApi.md#getskulistidbundles) | **Get** /sku_lists/{skuListId}/bundles | Retrieve the bundles associated to the SKU list *BundlesApi* | [**PATCHBundlesBundleId**](docs/BundlesApi.md#patchbundlesbundleid) | **Patch** /bundles/{bundleId} | Update a bundle *BundlesApi* | [**POSTBundles**](docs/BundlesApi.md#postbundles) | **Post** /bundles | Create a bundle +*BuyXPayYPromotionsApi* | [**DELETEBuyXPayYPromotionsBuyXPayYPromotionId**](docs/BuyXPayYPromotionsApi.md#deletebuyxpayypromotionsbuyxpayypromotionid) | **Delete** /buy_x_pay_y_promotions/{buyXPayYPromotionId} | Delete a buy x pay y promotion +*BuyXPayYPromotionsApi* | [**GETBuyXPayYPromotions**](docs/BuyXPayYPromotionsApi.md#getbuyxpayypromotions) | **Get** /buy_x_pay_y_promotions | List all buy x pay y promotions +*BuyXPayYPromotionsApi* | [**GETBuyXPayYPromotionsBuyXPayYPromotionId**](docs/BuyXPayYPromotionsApi.md#getbuyxpayypromotionsbuyxpayypromotionid) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId} | Retrieve a buy x pay y promotion +*BuyXPayYPromotionsApi* | [**PATCHBuyXPayYPromotionsBuyXPayYPromotionId**](docs/BuyXPayYPromotionsApi.md#patchbuyxpayypromotionsbuyxpayypromotionid) | **Patch** /buy_x_pay_y_promotions/{buyXPayYPromotionId} | Update a buy x pay y promotion +*BuyXPayYPromotionsApi* | [**POSTBuyXPayYPromotions**](docs/BuyXPayYPromotionsApi.md#postbuyxpayypromotions) | **Post** /buy_x_pay_y_promotions | Create a buy x pay y promotion *CapturesApi* | [**GETAuthorizationIdCaptures**](docs/CapturesApi.md#getauthorizationidcaptures) | **Get** /authorizations/{authorizationId}/captures | Retrieve the captures associated to the authorization *CapturesApi* | [**GETCaptures**](docs/CapturesApi.md#getcaptures) | **Get** /captures | List all captures *CapturesApi* | [**GETCapturesCaptureId**](docs/CapturesApi.md#getcapturescaptureid) | **Get** /captures/{captureId} | Retrieve a capture *CapturesApi* | [**GETOrderIdCaptures**](docs/CapturesApi.md#getorderidcaptures) | **Get** /orders/{orderId}/captures | Retrieve the captures associated to the order *CapturesApi* | [**GETRefundIdReferenceCapture**](docs/CapturesApi.md#getrefundidreferencecapture) | **Get** /refunds/{refundId}/reference_capture | Retrieve the reference capture associated to the refund +*CapturesApi* | [**GETReturnIdReferenceCapture**](docs/CapturesApi.md#getreturnidreferencecapture) | **Get** /returns/{returnId}/reference_capture | Retrieve the reference capture associated to the return *CapturesApi* | [**PATCHCapturesCaptureId**](docs/CapturesApi.md#patchcapturescaptureid) | **Patch** /captures/{captureId} | Update a capture +*CarrierAccountsApi* | [**DELETECarrierAccountsCarrierAccountId**](docs/CarrierAccountsApi.md#deletecarrieraccountscarrieraccountid) | **Delete** /carrier_accounts/{carrierAccountId} | Delete a carrier account *CarrierAccountsApi* | [**GETCarrierAccounts**](docs/CarrierAccountsApi.md#getcarrieraccounts) | **Get** /carrier_accounts | List all carrier accounts *CarrierAccountsApi* | [**GETCarrierAccountsCarrierAccountId**](docs/CarrierAccountsApi.md#getcarrieraccountscarrieraccountid) | **Get** /carrier_accounts/{carrierAccountId} | Retrieve a carrier account *CarrierAccountsApi* | [**GETShipmentIdCarrierAccounts**](docs/CarrierAccountsApi.md#getshipmentidcarrieraccounts) | **Get** /shipments/{shipmentId}/carrier_accounts | Retrieve the carrier accounts associated to the shipment +*CarrierAccountsApi* | [**PATCHCarrierAccountsCarrierAccountId**](docs/CarrierAccountsApi.md#patchcarrieraccountscarrieraccountid) | **Patch** /carrier_accounts/{carrierAccountId} | Update a carrier account +*CarrierAccountsApi* | [**POSTCarrierAccounts**](docs/CarrierAccountsApi.md#postcarrieraccounts) | **Post** /carrier_accounts | Create a carrier account *CheckoutComGatewaysApi* | [**DELETECheckoutComGatewaysCheckoutComGatewayId**](docs/CheckoutComGatewaysApi.md#deletecheckoutcomgatewayscheckoutcomgatewayid) | **Delete** /checkout_com_gateways/{checkoutComGatewayId} | Delete a checkout.com gateway *CheckoutComGatewaysApi* | [**GETCheckoutComGateways**](docs/CheckoutComGatewaysApi.md#getcheckoutcomgateways) | **Get** /checkout_com_gateways | List all checkout.com gateways *CheckoutComGatewaysApi* | [**GETCheckoutComGatewaysCheckoutComGatewayId**](docs/CheckoutComGatewaysApi.md#getcheckoutcomgatewayscheckoutcomgatewayid) | **Get** /checkout_com_gateways/{checkoutComGatewayId} | Retrieve a checkout.com gateway @@ -241,14 +258,17 @@ Class | Method | HTTP request | Description *CleanupsApi* | [**DELETECleanupsCleanupId**](docs/CleanupsApi.md#deletecleanupscleanupid) | **Delete** /cleanups/{cleanupId} | Delete a cleanup *CleanupsApi* | [**GETCleanups**](docs/CleanupsApi.md#getcleanups) | **Get** /cleanups | List all cleanups *CleanupsApi* | [**GETCleanupsCleanupId**](docs/CleanupsApi.md#getcleanupscleanupid) | **Get** /cleanups/{cleanupId} | Retrieve a cleanup +*CleanupsApi* | [**PATCHCleanupsCleanupId**](docs/CleanupsApi.md#patchcleanupscleanupid) | **Patch** /cleanups/{cleanupId} | Update a cleanup *CleanupsApi* | [**POSTCleanups**](docs/CleanupsApi.md#postcleanups) | **Post** /cleanups | Create a cleanup *CouponCodesPromotionRulesApi* | [**DELETECouponCodesPromotionRulesCouponCodesPromotionRuleId**](docs/CouponCodesPromotionRulesApi.md#deletecouponcodespromotionrulescouponcodespromotionruleid) | **Delete** /coupon_codes_promotion_rules/{couponCodesPromotionRuleId} | Delete a coupon codes promotion rule +*CouponCodesPromotionRulesApi* | [**GETBuyXPayYPromotionIdCouponCodesPromotionRule**](docs/CouponCodesPromotionRulesApi.md#getbuyxpayypromotionidcouponcodespromotionrule) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the buy x pay y promotion *CouponCodesPromotionRulesApi* | [**GETCouponCodesPromotionRules**](docs/CouponCodesPromotionRulesApi.md#getcouponcodespromotionrules) | **Get** /coupon_codes_promotion_rules | List all coupon codes promotion rules *CouponCodesPromotionRulesApi* | [**GETCouponCodesPromotionRulesCouponCodesPromotionRuleId**](docs/CouponCodesPromotionRulesApi.md#getcouponcodespromotionrulescouponcodespromotionruleid) | **Get** /coupon_codes_promotion_rules/{couponCodesPromotionRuleId} | Retrieve a coupon codes promotion rule *CouponCodesPromotionRulesApi* | [**GETCouponIdPromotionRule**](docs/CouponCodesPromotionRulesApi.md#getcouponidpromotionrule) | **Get** /coupons/{couponId}/promotion_rule | Retrieve the promotion rule associated to the coupon *CouponCodesPromotionRulesApi* | [**GETExternalPromotionIdCouponCodesPromotionRule**](docs/CouponCodesPromotionRulesApi.md#getexternalpromotionidcouponcodespromotionrule) | **Get** /external_promotions/{externalPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the external promotion *CouponCodesPromotionRulesApi* | [**GETFixedAmountPromotionIdCouponCodesPromotionRule**](docs/CouponCodesPromotionRulesApi.md#getfixedamountpromotionidcouponcodespromotionrule) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the fixed amount promotion *CouponCodesPromotionRulesApi* | [**GETFixedPricePromotionIdCouponCodesPromotionRule**](docs/CouponCodesPromotionRulesApi.md#getfixedpricepromotionidcouponcodespromotionrule) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the fixed price promotion +*CouponCodesPromotionRulesApi* | [**GETFlexPromotionIdCouponCodesPromotionRule**](docs/CouponCodesPromotionRulesApi.md#getflexpromotionidcouponcodespromotionrule) | **Get** /flex_promotions/{flexPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the flex promotion *CouponCodesPromotionRulesApi* | [**GETFreeGiftPromotionIdCouponCodesPromotionRule**](docs/CouponCodesPromotionRulesApi.md#getfreegiftpromotionidcouponcodespromotionrule) | **Get** /free_gift_promotions/{freeGiftPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the free gift promotion *CouponCodesPromotionRulesApi* | [**GETFreeShippingPromotionIdCouponCodesPromotionRule**](docs/CouponCodesPromotionRulesApi.md#getfreeshippingpromotionidcouponcodespromotionrule) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the free shipping promotion *CouponCodesPromotionRulesApi* | [**GETPercentageDiscountPromotionIdCouponCodesPromotionRule**](docs/CouponCodesPromotionRulesApi.md#getpercentagediscountpromotionidcouponcodespromotionrule) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the percentage discount promotion @@ -256,16 +276,39 @@ Class | Method | HTTP request | Description *CouponCodesPromotionRulesApi* | [**PATCHCouponCodesPromotionRulesCouponCodesPromotionRuleId**](docs/CouponCodesPromotionRulesApi.md#patchcouponcodespromotionrulescouponcodespromotionruleid) | **Patch** /coupon_codes_promotion_rules/{couponCodesPromotionRuleId} | Update a coupon codes promotion rule *CouponCodesPromotionRulesApi* | [**POSTCouponCodesPromotionRules**](docs/CouponCodesPromotionRulesApi.md#postcouponcodespromotionrules) | **Post** /coupon_codes_promotion_rules | Create a coupon codes promotion rule *CouponRecipientsApi* | [**DELETECouponRecipientsCouponRecipientId**](docs/CouponRecipientsApi.md#deletecouponrecipientscouponrecipientid) | **Delete** /coupon_recipients/{couponRecipientId} | Delete a coupon recipient +*CouponRecipientsApi* | [**GETCouponIdCouponRecipient**](docs/CouponRecipientsApi.md#getcouponidcouponrecipient) | **Get** /coupons/{couponId}/coupon_recipient | Retrieve the coupon recipient associated to the coupon *CouponRecipientsApi* | [**GETCouponRecipients**](docs/CouponRecipientsApi.md#getcouponrecipients) | **Get** /coupon_recipients | List all coupon recipients *CouponRecipientsApi* | [**GETCouponRecipientsCouponRecipientId**](docs/CouponRecipientsApi.md#getcouponrecipientscouponrecipientid) | **Get** /coupon_recipients/{couponRecipientId} | Retrieve a coupon recipient *CouponRecipientsApi* | [**PATCHCouponRecipientsCouponRecipientId**](docs/CouponRecipientsApi.md#patchcouponrecipientscouponrecipientid) | **Patch** /coupon_recipients/{couponRecipientId} | Update a coupon recipient *CouponRecipientsApi* | [**POSTCouponRecipients**](docs/CouponRecipientsApi.md#postcouponrecipients) | **Post** /coupon_recipients | Create a coupon recipient *CouponsApi* | [**DELETECouponsCouponId**](docs/CouponsApi.md#deletecouponscouponid) | **Delete** /coupons/{couponId} | Delete a coupon +*CouponsApi* | [**GETBuyXPayYPromotionIdCoupons**](docs/CouponsApi.md#getbuyxpayypromotionidcoupons) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/coupons | Retrieve the coupons associated to the buy x pay y promotion *CouponsApi* | [**GETCouponCodesPromotionRuleIdCoupons**](docs/CouponsApi.md#getcouponcodespromotionruleidcoupons) | **Get** /coupon_codes_promotion_rules/{couponCodesPromotionRuleId}/coupons | Retrieve the coupons associated to the coupon codes promotion rule *CouponsApi* | [**GETCoupons**](docs/CouponsApi.md#getcoupons) | **Get** /coupons | List all coupons *CouponsApi* | [**GETCouponsCouponId**](docs/CouponsApi.md#getcouponscouponid) | **Get** /coupons/{couponId} | Retrieve a coupon +*CouponsApi* | [**GETExternalPromotionIdCoupons**](docs/CouponsApi.md#getexternalpromotionidcoupons) | **Get** /external_promotions/{externalPromotionId}/coupons | Retrieve the coupons associated to the external promotion +*CouponsApi* | [**GETFixedAmountPromotionIdCoupons**](docs/CouponsApi.md#getfixedamountpromotionidcoupons) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/coupons | Retrieve the coupons associated to the fixed amount promotion +*CouponsApi* | [**GETFixedPricePromotionIdCoupons**](docs/CouponsApi.md#getfixedpricepromotionidcoupons) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/coupons | Retrieve the coupons associated to the fixed price promotion +*CouponsApi* | [**GETFlexPromotionIdCoupons**](docs/CouponsApi.md#getflexpromotionidcoupons) | **Get** /flex_promotions/{flexPromotionId}/coupons | Retrieve the coupons associated to the flex promotion +*CouponsApi* | [**GETFreeGiftPromotionIdCoupons**](docs/CouponsApi.md#getfreegiftpromotionidcoupons) | **Get** /free_gift_promotions/{freeGiftPromotionId}/coupons | Retrieve the coupons associated to the free gift promotion +*CouponsApi* | [**GETFreeShippingPromotionIdCoupons**](docs/CouponsApi.md#getfreeshippingpromotionidcoupons) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/coupons | Retrieve the coupons associated to the free shipping promotion +*CouponsApi* | [**GETPercentageDiscountPromotionIdCoupons**](docs/CouponsApi.md#getpercentagediscountpromotionidcoupons) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/coupons | Retrieve the coupons associated to the percentage discount promotion +*CouponsApi* | [**GETPromotionIdCoupons**](docs/CouponsApi.md#getpromotionidcoupons) | **Get** /promotions/{promotionId}/coupons | Retrieve the coupons associated to the promotion *CouponsApi* | [**PATCHCouponsCouponId**](docs/CouponsApi.md#patchcouponscouponid) | **Patch** /coupons/{couponId} | Update a coupon *CouponsApi* | [**POSTCoupons**](docs/CouponsApi.md#postcoupons) | **Post** /coupons | Create a coupon +*CustomPromotionRulesApi* | [**DELETECustomPromotionRulesCustomPromotionRuleId**](docs/CustomPromotionRulesApi.md#deletecustompromotionrulescustompromotionruleid) | **Delete** /custom_promotion_rules/{customPromotionRuleId} | Delete a custom promotion rule +*CustomPromotionRulesApi* | [**GETBuyXPayYPromotionIdCustomPromotionRule**](docs/CustomPromotionRulesApi.md#getbuyxpayypromotionidcustompromotionrule) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the buy x pay y promotion +*CustomPromotionRulesApi* | [**GETCustomPromotionRules**](docs/CustomPromotionRulesApi.md#getcustompromotionrules) | **Get** /custom_promotion_rules | List all custom promotion rules +*CustomPromotionRulesApi* | [**GETCustomPromotionRulesCustomPromotionRuleId**](docs/CustomPromotionRulesApi.md#getcustompromotionrulescustompromotionruleid) | **Get** /custom_promotion_rules/{customPromotionRuleId} | Retrieve a custom promotion rule +*CustomPromotionRulesApi* | [**GETExternalPromotionIdCustomPromotionRule**](docs/CustomPromotionRulesApi.md#getexternalpromotionidcustompromotionrule) | **Get** /external_promotions/{externalPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the external promotion +*CustomPromotionRulesApi* | [**GETFixedAmountPromotionIdCustomPromotionRule**](docs/CustomPromotionRulesApi.md#getfixedamountpromotionidcustompromotionrule) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the fixed amount promotion +*CustomPromotionRulesApi* | [**GETFixedPricePromotionIdCustomPromotionRule**](docs/CustomPromotionRulesApi.md#getfixedpricepromotionidcustompromotionrule) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the fixed price promotion +*CustomPromotionRulesApi* | [**GETFreeGiftPromotionIdCustomPromotionRule**](docs/CustomPromotionRulesApi.md#getfreegiftpromotionidcustompromotionrule) | **Get** /free_gift_promotions/{freeGiftPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the free gift promotion +*CustomPromotionRulesApi* | [**GETFreeShippingPromotionIdCustomPromotionRule**](docs/CustomPromotionRulesApi.md#getfreeshippingpromotionidcustompromotionrule) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the free shipping promotion +*CustomPromotionRulesApi* | [**GETPercentageDiscountPromotionIdCustomPromotionRule**](docs/CustomPromotionRulesApi.md#getpercentagediscountpromotionidcustompromotionrule) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the percentage discount promotion +*CustomPromotionRulesApi* | [**GETPromotionIdCustomPromotionRule**](docs/CustomPromotionRulesApi.md#getpromotionidcustompromotionrule) | **Get** /promotions/{promotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the promotion +*CustomPromotionRulesApi* | [**PATCHCustomPromotionRulesCustomPromotionRuleId**](docs/CustomPromotionRulesApi.md#patchcustompromotionrulescustompromotionruleid) | **Patch** /custom_promotion_rules/{customPromotionRuleId} | Update a custom promotion rule +*CustomPromotionRulesApi* | [**POSTCustomPromotionRules**](docs/CustomPromotionRulesApi.md#postcustompromotionrules) | **Post** /custom_promotion_rules | Create a custom promotion rule *CustomerAddressesApi* | [**DELETECustomerAddressesCustomerAddressId**](docs/CustomerAddressesApi.md#deletecustomeraddressescustomeraddressid) | **Delete** /customer_addresses/{customerAddressId} | Delete a customer address *CustomerAddressesApi* | [**GETCustomerAddresses**](docs/CustomerAddressesApi.md#getcustomeraddresses) | **Get** /customer_addresses | List all customer addresses *CustomerAddressesApi* | [**GETCustomerAddressesCustomerAddressId**](docs/CustomerAddressesApi.md#getcustomeraddressescustomeraddressid) | **Get** /customer_addresses/{customerAddressId} | Retrieve a customer address @@ -312,7 +355,9 @@ Class | Method | HTTP request | Description *CustomersApi* | [**GETInStockSubscriptionIdCustomer**](docs/CustomersApi.md#getinstocksubscriptionidcustomer) | **Get** /in_stock_subscriptions/{inStockSubscriptionId}/customer | Retrieve the customer associated to the in stock subscription *CustomersApi* | [**GETOrderIdCustomer**](docs/CustomersApi.md#getorderidcustomer) | **Get** /orders/{orderId}/customer | Retrieve the customer associated to the order *CustomersApi* | [**GETOrderSubscriptionIdCustomer**](docs/CustomersApi.md#getordersubscriptionidcustomer) | **Get** /order_subscriptions/{orderSubscriptionId}/customer | Retrieve the customer associated to the order subscription +*CustomersApi* | [**GETPriceIdJwtCustomer**](docs/CustomersApi.md#getpriceidjwtcustomer) | **Get** /prices/{priceId}/jwt_customer | Retrieve the jwt customer associated to the price *CustomersApi* | [**GETReturnIdCustomer**](docs/CustomersApi.md#getreturnidcustomer) | **Get** /returns/{returnId}/customer | Retrieve the customer associated to the return +*CustomersApi* | [**GETSkuIdJwtCustomer**](docs/CustomersApi.md#getskuidjwtcustomer) | **Get** /skus/{skuId}/jwt_customer | Retrieve the jwt customer associated to the SKU *CustomersApi* | [**GETSkuListIdCustomer**](docs/CustomersApi.md#getskulistidcustomer) | **Get** /sku_lists/{skuListId}/customer | Retrieve the customer associated to the SKU list *CustomersApi* | [**PATCHCustomersCustomerId**](docs/CustomersApi.md#patchcustomerscustomerid) | **Patch** /customers/{customerId} | Update a customer *CustomersApi* | [**POSTCustomers**](docs/CustomersApi.md#postcustomers) | **Post** /customers | Create a customer @@ -328,9 +373,14 @@ Class | Method | HTTP request | Description *EventCallbacksApi* | [**GETEventCallbacksEventCallbackId**](docs/EventCallbacksApi.md#geteventcallbackseventcallbackid) | **Get** /event_callbacks/{eventCallbackId} | Retrieve an event callback *EventCallbacksApi* | [**GETEventIdLastEventCallbacks**](docs/EventCallbacksApi.md#geteventidlasteventcallbacks) | **Get** /events/{eventId}/last_event_callbacks | Retrieve the last event callbacks associated to the event *EventCallbacksApi* | [**GETWebhookIdLastEventCallbacks**](docs/EventCallbacksApi.md#getwebhookidlasteventcallbacks) | **Get** /webhooks/{webhookId}/last_event_callbacks | Retrieve the last event callbacks associated to the webhook +*EventsApi* | [**GETAddressIdEvents**](docs/EventsApi.md#getaddressidevents) | **Get** /addresses/{addressId}/events | Retrieve the events associated to the address *EventsApi* | [**GETAuthorizationIdEvents**](docs/EventsApi.md#getauthorizationidevents) | **Get** /authorizations/{authorizationId}/events | Retrieve the events associated to the authorization +*EventsApi* | [**GETAvalaraAccountIdEvents**](docs/EventsApi.md#getavalaraaccountidevents) | **Get** /avalara_accounts/{avalaraAccountId}/events | Retrieve the events associated to the avalara account +*EventsApi* | [**GETBundleIdEvents**](docs/EventsApi.md#getbundleidevents) | **Get** /bundles/{bundleId}/events | Retrieve the events associated to the bundle +*EventsApi* | [**GETBuyXPayYPromotionIdEvents**](docs/EventsApi.md#getbuyxpayypromotionidevents) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/events | Retrieve the events associated to the buy x pay y promotion *EventsApi* | [**GETCaptureIdEvents**](docs/EventsApi.md#getcaptureidevents) | **Get** /captures/{captureId}/events | Retrieve the events associated to the capture *EventsApi* | [**GETCleanupIdEvents**](docs/EventsApi.md#getcleanupidevents) | **Get** /cleanups/{cleanupId}/events | Retrieve the events associated to the cleanup +*EventsApi* | [**GETCouponIdEvents**](docs/EventsApi.md#getcouponidevents) | **Get** /coupons/{couponId}/events | Retrieve the events associated to the coupon *EventsApi* | [**GETCustomerAddressIdEvents**](docs/EventsApi.md#getcustomeraddressidevents) | **Get** /customer_addresses/{customerAddressId}/events | Retrieve the events associated to the customer address *EventsApi* | [**GETCustomerIdEvents**](docs/EventsApi.md#getcustomeridevents) | **Get** /customers/{customerId}/events | Retrieve the events associated to the customer *EventsApi* | [**GETCustomerPasswordResetIdEvents**](docs/EventsApi.md#getcustomerpasswordresetidevents) | **Get** /customer_password_resets/{customerPasswordResetId}/events | Retrieve the events associated to the customer password reset @@ -341,11 +391,15 @@ Class | Method | HTTP request | Description *EventsApi* | [**GETExternalPromotionIdEvents**](docs/EventsApi.md#getexternalpromotionidevents) | **Get** /external_promotions/{externalPromotionId}/events | Retrieve the events associated to the external promotion *EventsApi* | [**GETFixedAmountPromotionIdEvents**](docs/EventsApi.md#getfixedamountpromotionidevents) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/events | Retrieve the events associated to the fixed amount promotion *EventsApi* | [**GETFixedPricePromotionIdEvents**](docs/EventsApi.md#getfixedpricepromotionidevents) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/events | Retrieve the events associated to the fixed price promotion +*EventsApi* | [**GETFlexPromotionIdEvents**](docs/EventsApi.md#getflexpromotionidevents) | **Get** /flex_promotions/{flexPromotionId}/events | Retrieve the events associated to the flex promotion *EventsApi* | [**GETFreeGiftPromotionIdEvents**](docs/EventsApi.md#getfreegiftpromotionidevents) | **Get** /free_gift_promotions/{freeGiftPromotionId}/events | Retrieve the events associated to the free gift promotion *EventsApi* | [**GETFreeShippingPromotionIdEvents**](docs/EventsApi.md#getfreeshippingpromotionidevents) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/events | Retrieve the events associated to the free shipping promotion *EventsApi* | [**GETGiftCardIdEvents**](docs/EventsApi.md#getgiftcardidevents) | **Get** /gift_cards/{giftCardId}/events | Retrieve the events associated to the gift card *EventsApi* | [**GETImportIdEvents**](docs/EventsApi.md#getimportidevents) | **Get** /imports/{importId}/events | Retrieve the events associated to the import *EventsApi* | [**GETInStockSubscriptionIdEvents**](docs/EventsApi.md#getinstocksubscriptionidevents) | **Get** /in_stock_subscriptions/{inStockSubscriptionId}/events | Retrieve the events associated to the in stock subscription +*EventsApi* | [**GETLineItemIdEvents**](docs/EventsApi.md#getlineitemidevents) | **Get** /line_items/{lineItemId}/events | Retrieve the events associated to the line item +*EventsApi* | [**GETLineItemOptionIdEvents**](docs/EventsApi.md#getlineitemoptionidevents) | **Get** /line_item_options/{lineItemOptionId}/events | Retrieve the events associated to the line item option +*EventsApi* | [**GETLinkIdEvents**](docs/EventsApi.md#getlinkidevents) | **Get** /links/{linkId}/events | Retrieve the events associated to the link *EventsApi* | [**GETOrderCopyIdEvents**](docs/EventsApi.md#getordercopyidevents) | **Get** /order_copies/{orderCopyId}/events | Retrieve the events associated to the order copy *EventsApi* | [**GETOrderFactoryIdEvents**](docs/EventsApi.md#getorderfactoryidevents) | **Get** /order_factories/{orderFactoryId}/events | Retrieve the events associated to the order factory *EventsApi* | [**GETOrderIdEvents**](docs/EventsApi.md#getorderidevents) | **Get** /orders/{orderId}/events | Retrieve the events associated to the order @@ -353,17 +407,23 @@ Class | Method | HTTP request | Description *EventsApi* | [**GETParcelIdEvents**](docs/EventsApi.md#getparcelidevents) | **Get** /parcels/{parcelId}/events | Retrieve the events associated to the parcel *EventsApi* | [**GETPercentageDiscountPromotionIdEvents**](docs/EventsApi.md#getpercentagediscountpromotionidevents) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/events | Retrieve the events associated to the percentage discount promotion *EventsApi* | [**GETPriceFrequencyTierIdEvents**](docs/EventsApi.md#getpricefrequencytieridevents) | **Get** /price_frequency_tiers/{priceFrequencyTierId}/events | Retrieve the events associated to the price frequency tier +*EventsApi* | [**GETPriceListSchedulerIdEvents**](docs/EventsApi.md#getpricelistscheduleridevents) | **Get** /price_list_schedulers/{priceListSchedulerId}/events | Retrieve the events associated to the price list scheduler *EventsApi* | [**GETPriceVolumeTierIdEvents**](docs/EventsApi.md#getpricevolumetieridevents) | **Get** /price_volume_tiers/{priceVolumeTierId}/events | Retrieve the events associated to the price volume tier *EventsApi* | [**GETPromotionIdEvents**](docs/EventsApi.md#getpromotionidevents) | **Get** /promotions/{promotionId}/events | Retrieve the events associated to the promotion *EventsApi* | [**GETRecurringOrderCopyIdEvents**](docs/EventsApi.md#getrecurringordercopyidevents) | **Get** /recurring_order_copies/{recurringOrderCopyId}/events | Retrieve the events associated to the recurring order copy *EventsApi* | [**GETRefundIdEvents**](docs/EventsApi.md#getrefundidevents) | **Get** /refunds/{refundId}/events | Retrieve the events associated to the refund *EventsApi* | [**GETReturnIdEvents**](docs/EventsApi.md#getreturnidevents) | **Get** /returns/{returnId}/events | Retrieve the events associated to the return *EventsApi* | [**GETShipmentIdEvents**](docs/EventsApi.md#getshipmentidevents) | **Get** /shipments/{shipmentId}/events | Retrieve the events associated to the shipment +*EventsApi* | [**GETSkuIdEvents**](docs/EventsApi.md#getskuidevents) | **Get** /skus/{skuId}/events | Retrieve the events associated to the SKU +*EventsApi* | [**GETSkuOptionIdEvents**](docs/EventsApi.md#getskuoptionidevents) | **Get** /sku_options/{skuOptionId}/events | Retrieve the events associated to the SKU option *EventsApi* | [**GETStockTransferIdEvents**](docs/EventsApi.md#getstocktransferidevents) | **Get** /stock_transfers/{stockTransferId}/events | Retrieve the events associated to the stock transfer +*EventsApi* | [**GETTransactionIdEvents**](docs/EventsApi.md#gettransactionidevents) | **Get** /transactions/{transactionId}/events | Retrieve the events associated to the transaction *EventsApi* | [**GETVoidIdEvents**](docs/EventsApi.md#getvoididevents) | **Get** /voids/{voidId}/events | Retrieve the events associated to the void +*EventsApi* | [**PATCHEventsEventId**](docs/EventsApi.md#patcheventseventid) | **Patch** /events/{eventId} | Update an event *ExportsApi* | [**DELETEExportsExportId**](docs/ExportsApi.md#deleteexportsexportid) | **Delete** /exports/{exportId} | Delete an export *ExportsApi* | [**GETExports**](docs/ExportsApi.md#getexports) | **Get** /exports | List all exports *ExportsApi* | [**GETExportsExportId**](docs/ExportsApi.md#getexportsexportid) | **Get** /exports/{exportId} | Retrieve an export +*ExportsApi* | [**PATCHExportsExportId**](docs/ExportsApi.md#patchexportsexportid) | **Patch** /exports/{exportId} | Update an export *ExportsApi* | [**POSTExports**](docs/ExportsApi.md#postexports) | **Post** /exports | Create an export *ExternalGatewaysApi* | [**DELETEExternalGatewaysExternalGatewayId**](docs/ExternalGatewaysApi.md#deleteexternalgatewaysexternalgatewayid) | **Delete** /external_gateways/{externalGatewayId} | Delete an external gateway *ExternalGatewaysApi* | [**GETExternalGateways**](docs/ExternalGatewaysApi.md#getexternalgateways) | **Get** /external_gateways | List all external gateways @@ -396,6 +456,11 @@ Class | Method | HTTP request | Description *FixedPricePromotionsApi* | [**GETFixedPricePromotionsFixedPricePromotionId**](docs/FixedPricePromotionsApi.md#getfixedpricepromotionsfixedpricepromotionid) | **Get** /fixed_price_promotions/{fixedPricePromotionId} | Retrieve a fixed price promotion *FixedPricePromotionsApi* | [**PATCHFixedPricePromotionsFixedPricePromotionId**](docs/FixedPricePromotionsApi.md#patchfixedpricepromotionsfixedpricepromotionid) | **Patch** /fixed_price_promotions/{fixedPricePromotionId} | Update a fixed price promotion *FixedPricePromotionsApi* | [**POSTFixedPricePromotions**](docs/FixedPricePromotionsApi.md#postfixedpricepromotions) | **Post** /fixed_price_promotions | Create a fixed price promotion +*FlexPromotionsApi* | [**DELETEFlexPromotionsFlexPromotionId**](docs/FlexPromotionsApi.md#deleteflexpromotionsflexpromotionid) | **Delete** /flex_promotions/{flexPromotionId} | Delete a flex promotion +*FlexPromotionsApi* | [**GETFlexPromotions**](docs/FlexPromotionsApi.md#getflexpromotions) | **Get** /flex_promotions | List all flex promotions +*FlexPromotionsApi* | [**GETFlexPromotionsFlexPromotionId**](docs/FlexPromotionsApi.md#getflexpromotionsflexpromotionid) | **Get** /flex_promotions/{flexPromotionId} | Retrieve a flex promotion +*FlexPromotionsApi* | [**PATCHFlexPromotionsFlexPromotionId**](docs/FlexPromotionsApi.md#patchflexpromotionsflexpromotionid) | **Patch** /flex_promotions/{flexPromotionId} | Update a flex promotion +*FlexPromotionsApi* | [**POSTFlexPromotions**](docs/FlexPromotionsApi.md#postflexpromotions) | **Post** /flex_promotions | Create a flex promotion *FreeGiftPromotionsApi* | [**DELETEFreeGiftPromotionsFreeGiftPromotionId**](docs/FreeGiftPromotionsApi.md#deletefreegiftpromotionsfreegiftpromotionid) | **Delete** /free_gift_promotions/{freeGiftPromotionId} | Delete a free gift promotion *FreeGiftPromotionsApi* | [**GETFreeGiftPromotions**](docs/FreeGiftPromotionsApi.md#getfreegiftpromotions) | **Get** /free_gift_promotions | List all free gift promotions *FreeGiftPromotionsApi* | [**GETFreeGiftPromotionsFreeGiftPromotionId**](docs/FreeGiftPromotionsApi.md#getfreegiftpromotionsfreegiftpromotionid) | **Get** /free_gift_promotions/{freeGiftPromotionId} | Retrieve a free gift promotion @@ -409,6 +474,7 @@ Class | Method | HTTP request | Description *GeocodersApi* | [**GETAddressIdGeocoder**](docs/GeocodersApi.md#getaddressidgeocoder) | **Get** /addresses/{addressId}/geocoder | Retrieve the geocoder associated to the address *GeocodersApi* | [**GETGeocoders**](docs/GeocodersApi.md#getgeocoders) | **Get** /geocoders | List all geocoders *GeocodersApi* | [**GETGeocodersGeocoderId**](docs/GeocodersApi.md#getgeocodersgeocoderid) | **Get** /geocoders/{geocoderId} | Retrieve a geocoder +*GeocodersApi* | [**GETMarketIdGeocoder**](docs/GeocodersApi.md#getmarketidgeocoder) | **Get** /markets/{marketId}/geocoder | Retrieve the geocoder associated to the market *GiftCardRecipientsApi* | [**DELETEGiftCardRecipientsGiftCardRecipientId**](docs/GiftCardRecipientsApi.md#deletegiftcardrecipientsgiftcardrecipientid) | **Delete** /gift_card_recipients/{giftCardRecipientId} | Delete a gift card recipient *GiftCardRecipientsApi* | [**GETGiftCardIdGiftCardRecipient**](docs/GiftCardRecipientsApi.md#getgiftcardidgiftcardrecipient) | **Get** /gift_cards/{giftCardId}/gift_card_recipient | Retrieve the gift card recipient associated to the gift card *GiftCardRecipientsApi* | [**GETGiftCardRecipients**](docs/GiftCardRecipientsApi.md#getgiftcardrecipients) | **Get** /gift_card_recipients | List all gift card recipients @@ -425,35 +491,74 @@ Class | Method | HTTP request | Description *GoogleGeocodersApi* | [**GETGoogleGeocodersGoogleGeocoderId**](docs/GoogleGeocodersApi.md#getgooglegeocodersgooglegeocoderid) | **Get** /google_geocoders/{googleGeocoderId} | Retrieve a google geocoder *GoogleGeocodersApi* | [**PATCHGoogleGeocodersGoogleGeocoderId**](docs/GoogleGeocodersApi.md#patchgooglegeocodersgooglegeocoderid) | **Patch** /google_geocoders/{googleGeocoderId} | Update a google geocoder *GoogleGeocodersApi* | [**POSTGoogleGeocoders**](docs/GoogleGeocodersApi.md#postgooglegeocoders) | **Post** /google_geocoders | Create a google geocoder +*HasManyApi* | [**GETAddressIdEvents**](docs/HasManyApi.md#getaddressidevents) | **Get** /addresses/{addressId}/events | Retrieve the events associated to the address +*HasManyApi* | [**GETAddressIdTags**](docs/HasManyApi.md#getaddressidtags) | **Get** /addresses/{addressId}/tags | Retrieve the tags associated to the address +*HasManyApi* | [**GETAddressIdVersions**](docs/HasManyApi.md#getaddressidversions) | **Get** /addresses/{addressId}/versions | Retrieve the versions associated to the address +*HasManyApi* | [**GETAdjustmentIdVersions**](docs/HasManyApi.md#getadjustmentidversions) | **Get** /adjustments/{adjustmentId}/versions | Retrieve the versions associated to the adjustment *HasManyApi* | [**GETAdyenGatewayIdAdyenPayments**](docs/HasManyApi.md#getadyengatewayidadyenpayments) | **Get** /adyen_gateways/{adyenGatewayId}/adyen_payments | Retrieve the adyen payments associated to the adyen gateway *HasManyApi* | [**GETAdyenGatewayIdPaymentMethods**](docs/HasManyApi.md#getadyengatewayidpaymentmethods) | **Get** /adyen_gateways/{adyenGatewayId}/payment_methods | Retrieve the payment methods associated to the adyen gateway +*HasManyApi* | [**GETAdyenGatewayIdVersions**](docs/HasManyApi.md#getadyengatewayidversions) | **Get** /adyen_gateways/{adyenGatewayId}/versions | Retrieve the versions associated to the adyen gateway +*HasManyApi* | [**GETAdyenPaymentIdVersions**](docs/HasManyApi.md#getadyenpaymentidversions) | **Get** /adyen_payments/{adyenPaymentId}/versions | Retrieve the versions associated to the adyen payment +*HasManyApi* | [**GETAuthorizationIdAttachments**](docs/HasManyApi.md#getauthorizationidattachments) | **Get** /authorizations/{authorizationId}/attachments | Retrieve the attachments associated to the authorization *HasManyApi* | [**GETAuthorizationIdCaptures**](docs/HasManyApi.md#getauthorizationidcaptures) | **Get** /authorizations/{authorizationId}/captures | Retrieve the captures associated to the authorization *HasManyApi* | [**GETAuthorizationIdEvents**](docs/HasManyApi.md#getauthorizationidevents) | **Get** /authorizations/{authorizationId}/events | Retrieve the events associated to the authorization +*HasManyApi* | [**GETAuthorizationIdVersions**](docs/HasManyApi.md#getauthorizationidversions) | **Get** /authorizations/{authorizationId}/versions | Retrieve the versions associated to the authorization *HasManyApi* | [**GETAuthorizationIdVoids**](docs/HasManyApi.md#getauthorizationidvoids) | **Get** /authorizations/{authorizationId}/voids | Retrieve the voids associated to the authorization *HasManyApi* | [**GETAvalaraAccountIdAttachments**](docs/HasManyApi.md#getavalaraaccountidattachments) | **Get** /avalara_accounts/{avalaraAccountId}/attachments | Retrieve the attachments associated to the avalara account +*HasManyApi* | [**GETAvalaraAccountIdEvents**](docs/HasManyApi.md#getavalaraaccountidevents) | **Get** /avalara_accounts/{avalaraAccountId}/events | Retrieve the events associated to the avalara account *HasManyApi* | [**GETAvalaraAccountIdMarkets**](docs/HasManyApi.md#getavalaraaccountidmarkets) | **Get** /avalara_accounts/{avalaraAccountId}/markets | Retrieve the markets associated to the avalara account *HasManyApi* | [**GETAvalaraAccountIdTaxCategories**](docs/HasManyApi.md#getavalaraaccountidtaxcategories) | **Get** /avalara_accounts/{avalaraAccountId}/tax_categories | Retrieve the tax categories associated to the avalara account +*HasManyApi* | [**GETAvalaraAccountIdVersions**](docs/HasManyApi.md#getavalaraaccountidversions) | **Get** /avalara_accounts/{avalaraAccountId}/versions | Retrieve the versions associated to the avalara account *HasManyApi* | [**GETAxerveGatewayIdAxervePayments**](docs/HasManyApi.md#getaxervegatewayidaxervepayments) | **Get** /axerve_gateways/{axerveGatewayId}/axerve_payments | Retrieve the axerve payments associated to the axerve gateway *HasManyApi* | [**GETAxerveGatewayIdPaymentMethods**](docs/HasManyApi.md#getaxervegatewayidpaymentmethods) | **Get** /axerve_gateways/{axerveGatewayId}/payment_methods | Retrieve the payment methods associated to the axerve gateway +*HasManyApi* | [**GETAxerveGatewayIdVersions**](docs/HasManyApi.md#getaxervegatewayidversions) | **Get** /axerve_gateways/{axerveGatewayId}/versions | Retrieve the versions associated to the axerve gateway +*HasManyApi* | [**GETAxervePaymentIdVersions**](docs/HasManyApi.md#getaxervepaymentidversions) | **Get** /axerve_payments/{axervePaymentId}/versions | Retrieve the versions associated to the axerve payment *HasManyApi* | [**GETBillingInfoValidationRuleIdAttachments**](docs/HasManyApi.md#getbillinginfovalidationruleidattachments) | **Get** /billing_info_validation_rules/{billingInfoValidationRuleId}/attachments | Retrieve the attachments associated to the billing info validation rule +*HasManyApi* | [**GETBillingInfoValidationRuleIdVersions**](docs/HasManyApi.md#getbillinginfovalidationruleidversions) | **Get** /billing_info_validation_rules/{billingInfoValidationRuleId}/versions | Retrieve the versions associated to the billing info validation rule *HasManyApi* | [**GETBingGeocoderIdAddresses**](docs/HasManyApi.md#getbinggeocoderidaddresses) | **Get** /bing_geocoders/{bingGeocoderId}/addresses | Retrieve the addresses associated to the bing geocoder *HasManyApi* | [**GETBingGeocoderIdAttachments**](docs/HasManyApi.md#getbinggeocoderidattachments) | **Get** /bing_geocoders/{bingGeocoderId}/attachments | Retrieve the attachments associated to the bing geocoder +*HasManyApi* | [**GETBingGeocoderIdMarkets**](docs/HasManyApi.md#getbinggeocoderidmarkets) | **Get** /bing_geocoders/{bingGeocoderId}/markets | Retrieve the markets associated to the bing geocoder *HasManyApi* | [**GETBraintreeGatewayIdBraintreePayments**](docs/HasManyApi.md#getbraintreegatewayidbraintreepayments) | **Get** /braintree_gateways/{braintreeGatewayId}/braintree_payments | Retrieve the braintree payments associated to the braintree gateway *HasManyApi* | [**GETBraintreeGatewayIdPaymentMethods**](docs/HasManyApi.md#getbraintreegatewayidpaymentmethods) | **Get** /braintree_gateways/{braintreeGatewayId}/payment_methods | Retrieve the payment methods associated to the braintree gateway +*HasManyApi* | [**GETBraintreeGatewayIdVersions**](docs/HasManyApi.md#getbraintreegatewayidversions) | **Get** /braintree_gateways/{braintreeGatewayId}/versions | Retrieve the versions associated to the braintree gateway +*HasManyApi* | [**GETBraintreePaymentIdVersions**](docs/HasManyApi.md#getbraintreepaymentidversions) | **Get** /braintree_payments/{braintreePaymentId}/versions | Retrieve the versions associated to the braintree payment *HasManyApi* | [**GETBundleIdAttachments**](docs/HasManyApi.md#getbundleidattachments) | **Get** /bundles/{bundleId}/attachments | Retrieve the attachments associated to the bundle +*HasManyApi* | [**GETBundleIdEvents**](docs/HasManyApi.md#getbundleidevents) | **Get** /bundles/{bundleId}/events | Retrieve the events associated to the bundle *HasManyApi* | [**GETBundleIdSkus**](docs/HasManyApi.md#getbundleidskus) | **Get** /bundles/{bundleId}/skus | Retrieve the skus associated to the bundle +*HasManyApi* | [**GETBundleIdTags**](docs/HasManyApi.md#getbundleidtags) | **Get** /bundles/{bundleId}/tags | Retrieve the tags associated to the bundle +*HasManyApi* | [**GETBundleIdVersions**](docs/HasManyApi.md#getbundleidversions) | **Get** /bundles/{bundleId}/versions | Retrieve the versions associated to the bundle +*HasManyApi* | [**GETBuyXPayYPromotionIdAttachments**](docs/HasManyApi.md#getbuyxpayypromotionidattachments) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/attachments | Retrieve the attachments associated to the buy x pay y promotion +*HasManyApi* | [**GETBuyXPayYPromotionIdCoupons**](docs/HasManyApi.md#getbuyxpayypromotionidcoupons) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/coupons | Retrieve the coupons associated to the buy x pay y promotion +*HasManyApi* | [**GETBuyXPayYPromotionIdEvents**](docs/HasManyApi.md#getbuyxpayypromotionidevents) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/events | Retrieve the events associated to the buy x pay y promotion +*HasManyApi* | [**GETBuyXPayYPromotionIdSkus**](docs/HasManyApi.md#getbuyxpayypromotionidskus) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/skus | Retrieve the skus associated to the buy x pay y promotion +*HasManyApi* | [**GETBuyXPayYPromotionIdTags**](docs/HasManyApi.md#getbuyxpayypromotionidtags) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/tags | Retrieve the tags associated to the buy x pay y promotion +*HasManyApi* | [**GETBuyXPayYPromotionIdVersions**](docs/HasManyApi.md#getbuyxpayypromotionidversions) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/versions | Retrieve the versions associated to the buy x pay y promotion +*HasManyApi* | [**GETCaptureIdAttachments**](docs/HasManyApi.md#getcaptureidattachments) | **Get** /captures/{captureId}/attachments | Retrieve the attachments associated to the capture *HasManyApi* | [**GETCaptureIdEvents**](docs/HasManyApi.md#getcaptureidevents) | **Get** /captures/{captureId}/events | Retrieve the events associated to the capture *HasManyApi* | [**GETCaptureIdRefunds**](docs/HasManyApi.md#getcaptureidrefunds) | **Get** /captures/{captureId}/refunds | Retrieve the refunds associated to the capture +*HasManyApi* | [**GETCaptureIdVersions**](docs/HasManyApi.md#getcaptureidversions) | **Get** /captures/{captureId}/versions | Retrieve the versions associated to the capture *HasManyApi* | [**GETCarrierAccountIdAttachments**](docs/HasManyApi.md#getcarrieraccountidattachments) | **Get** /carrier_accounts/{carrierAccountId}/attachments | Retrieve the attachments associated to the carrier account +*HasManyApi* | [**GETCarrierAccountIdVersions**](docs/HasManyApi.md#getcarrieraccountidversions) | **Get** /carrier_accounts/{carrierAccountId}/versions | Retrieve the versions associated to the carrier account *HasManyApi* | [**GETCheckoutComGatewayIdCheckoutComPayments**](docs/HasManyApi.md#getcheckoutcomgatewayidcheckoutcompayments) | **Get** /checkout_com_gateways/{checkoutComGatewayId}/checkout_com_payments | Retrieve the checkout com payments associated to the checkout.com gateway *HasManyApi* | [**GETCheckoutComGatewayIdPaymentMethods**](docs/HasManyApi.md#getcheckoutcomgatewayidpaymentmethods) | **Get** /checkout_com_gateways/{checkoutComGatewayId}/payment_methods | Retrieve the payment methods associated to the checkout.com gateway +*HasManyApi* | [**GETCheckoutComGatewayIdVersions**](docs/HasManyApi.md#getcheckoutcomgatewayidversions) | **Get** /checkout_com_gateways/{checkoutComGatewayId}/versions | Retrieve the versions associated to the checkout.com gateway +*HasManyApi* | [**GETCheckoutComPaymentIdVersions**](docs/HasManyApi.md#getcheckoutcompaymentidversions) | **Get** /checkout_com_payments/{checkoutComPaymentId}/versions | Retrieve the versions associated to the checkout.com payment *HasManyApi* | [**GETCleanupIdEvents**](docs/HasManyApi.md#getcleanupidevents) | **Get** /cleanups/{cleanupId}/events | Retrieve the events associated to the cleanup +*HasManyApi* | [**GETCleanupIdVersions**](docs/HasManyApi.md#getcleanupidversions) | **Get** /cleanups/{cleanupId}/versions | Retrieve the versions associated to the cleanup *HasManyApi* | [**GETCouponCodesPromotionRuleIdCoupons**](docs/HasManyApi.md#getcouponcodespromotionruleidcoupons) | **Get** /coupon_codes_promotion_rules/{couponCodesPromotionRuleId}/coupons | Retrieve the coupons associated to the coupon codes promotion rule +*HasManyApi* | [**GETCouponCodesPromotionRuleIdVersions**](docs/HasManyApi.md#getcouponcodespromotionruleidversions) | **Get** /coupon_codes_promotion_rules/{couponCodesPromotionRuleId}/versions | Retrieve the versions associated to the coupon codes promotion rule +*HasManyApi* | [**GETCouponIdEvents**](docs/HasManyApi.md#getcouponidevents) | **Get** /coupons/{couponId}/events | Retrieve the events associated to the coupon +*HasManyApi* | [**GETCouponIdTags**](docs/HasManyApi.md#getcouponidtags) | **Get** /coupons/{couponId}/tags | Retrieve the tags associated to the coupon +*HasManyApi* | [**GETCouponIdVersions**](docs/HasManyApi.md#getcouponidversions) | **Get** /coupons/{couponId}/versions | Retrieve the versions associated to the coupon *HasManyApi* | [**GETCouponRecipientIdAttachments**](docs/HasManyApi.md#getcouponrecipientidattachments) | **Get** /coupon_recipients/{couponRecipientId}/attachments | Retrieve the attachments associated to the coupon recipient +*HasManyApi* | [**GETCouponRecipientIdVersions**](docs/HasManyApi.md#getcouponrecipientidversions) | **Get** /coupon_recipients/{couponRecipientId}/versions | Retrieve the versions associated to the coupon recipient +*HasManyApi* | [**GETCustomPromotionRuleIdVersions**](docs/HasManyApi.md#getcustompromotionruleidversions) | **Get** /custom_promotion_rules/{customPromotionRuleId}/versions | Retrieve the versions associated to the custom promotion rule *HasManyApi* | [**GETCustomerAddressIdEvents**](docs/HasManyApi.md#getcustomeraddressidevents) | **Get** /customer_addresses/{customerAddressId}/events | Retrieve the events associated to the customer address +*HasManyApi* | [**GETCustomerAddressIdVersions**](docs/HasManyApi.md#getcustomeraddressidversions) | **Get** /customer_addresses/{customerAddressId}/versions | Retrieve the versions associated to the customer address *HasManyApi* | [**GETCustomerGroupIdAttachments**](docs/HasManyApi.md#getcustomergroupidattachments) | **Get** /customer_groups/{customerGroupId}/attachments | Retrieve the attachments associated to the customer group *HasManyApi* | [**GETCustomerGroupIdCustomers**](docs/HasManyApi.md#getcustomergroupidcustomers) | **Get** /customer_groups/{customerGroupId}/customers | Retrieve the customers associated to the customer group *HasManyApi* | [**GETCustomerGroupIdMarkets**](docs/HasManyApi.md#getcustomergroupidmarkets) | **Get** /customer_groups/{customerGroupId}/markets | Retrieve the markets associated to the customer group +*HasManyApi* | [**GETCustomerGroupIdVersions**](docs/HasManyApi.md#getcustomergroupidversions) | **Get** /customer_groups/{customerGroupId}/versions | Retrieve the versions associated to the customer group *HasManyApi* | [**GETCustomerIdAttachments**](docs/HasManyApi.md#getcustomeridattachments) | **Get** /customers/{customerId}/attachments | Retrieve the attachments associated to the customer *HasManyApi* | [**GETCustomerIdCustomerAddresses**](docs/HasManyApi.md#getcustomeridcustomeraddresses) | **Get** /customers/{customerId}/customer_addresses | Retrieve the customer addresses associated to the customer *HasManyApi* | [**GETCustomerIdCustomerPaymentSources**](docs/HasManyApi.md#getcustomeridcustomerpaymentsources) | **Get** /customers/{customerId}/customer_payment_sources | Retrieve the customer payment sources associated to the customer @@ -463,51 +568,104 @@ Class | Method | HTTP request | Description *HasManyApi* | [**GETCustomerIdOrders**](docs/HasManyApi.md#getcustomeridorders) | **Get** /customers/{customerId}/orders | Retrieve the orders associated to the customer *HasManyApi* | [**GETCustomerIdReturns**](docs/HasManyApi.md#getcustomeridreturns) | **Get** /customers/{customerId}/returns | Retrieve the returns associated to the customer *HasManyApi* | [**GETCustomerIdSkuLists**](docs/HasManyApi.md#getcustomeridskulists) | **Get** /customers/{customerId}/sku_lists | Retrieve the sku lists associated to the customer +*HasManyApi* | [**GETCustomerIdTags**](docs/HasManyApi.md#getcustomeridtags) | **Get** /customers/{customerId}/tags | Retrieve the tags associated to the customer *HasManyApi* | [**GETCustomerPasswordResetIdEvents**](docs/HasManyApi.md#getcustomerpasswordresetidevents) | **Get** /customer_password_resets/{customerPasswordResetId}/events | Retrieve the events associated to the customer password reset +*HasManyApi* | [**GETCustomerPaymentSourceIdVersions**](docs/HasManyApi.md#getcustomerpaymentsourceidversions) | **Get** /customer_payment_sources/{customerPaymentSourceId}/versions | Retrieve the versions associated to the customer payment source *HasManyApi* | [**GETCustomerSubscriptionIdEvents**](docs/HasManyApi.md#getcustomersubscriptionidevents) | **Get** /customer_subscriptions/{customerSubscriptionId}/events | Retrieve the events associated to the customer subscription +*HasManyApi* | [**GETCustomerSubscriptionIdVersions**](docs/HasManyApi.md#getcustomersubscriptionidversions) | **Get** /customer_subscriptions/{customerSubscriptionId}/versions | Retrieve the versions associated to the customer subscription *HasManyApi* | [**GETDeliveryLeadTimeIdAttachments**](docs/HasManyApi.md#getdeliveryleadtimeidattachments) | **Get** /delivery_lead_times/{deliveryLeadTimeId}/attachments | Retrieve the attachments associated to the delivery lead time +*HasManyApi* | [**GETDeliveryLeadTimeIdVersions**](docs/HasManyApi.md#getdeliveryleadtimeidversions) | **Get** /delivery_lead_times/{deliveryLeadTimeId}/versions | Retrieve the versions associated to the delivery lead time *HasManyApi* | [**GETEventIdLastEventCallbacks**](docs/HasManyApi.md#geteventidlasteventcallbacks) | **Get** /events/{eventId}/last_event_callbacks | Retrieve the last event callbacks associated to the event *HasManyApi* | [**GETEventIdWebhooks**](docs/HasManyApi.md#geteventidwebhooks) | **Get** /events/{eventId}/webhooks | Retrieve the webhooks associated to the event *HasManyApi* | [**GETExportIdEvents**](docs/HasManyApi.md#getexportidevents) | **Get** /exports/{exportId}/events | Retrieve the events associated to the export *HasManyApi* | [**GETExternalGatewayIdExternalPayments**](docs/HasManyApi.md#getexternalgatewayidexternalpayments) | **Get** /external_gateways/{externalGatewayId}/external_payments | Retrieve the external payments associated to the external gateway *HasManyApi* | [**GETExternalGatewayIdPaymentMethods**](docs/HasManyApi.md#getexternalgatewayidpaymentmethods) | **Get** /external_gateways/{externalGatewayId}/payment_methods | Retrieve the payment methods associated to the external gateway +*HasManyApi* | [**GETExternalGatewayIdVersions**](docs/HasManyApi.md#getexternalgatewayidversions) | **Get** /external_gateways/{externalGatewayId}/versions | Retrieve the versions associated to the external gateway +*HasManyApi* | [**GETExternalPaymentIdVersions**](docs/HasManyApi.md#getexternalpaymentidversions) | **Get** /external_payments/{externalPaymentId}/versions | Retrieve the versions associated to the external payment *HasManyApi* | [**GETExternalPromotionIdAttachments**](docs/HasManyApi.md#getexternalpromotionidattachments) | **Get** /external_promotions/{externalPromotionId}/attachments | Retrieve the attachments associated to the external promotion +*HasManyApi* | [**GETExternalPromotionIdCoupons**](docs/HasManyApi.md#getexternalpromotionidcoupons) | **Get** /external_promotions/{externalPromotionId}/coupons | Retrieve the coupons associated to the external promotion *HasManyApi* | [**GETExternalPromotionIdEvents**](docs/HasManyApi.md#getexternalpromotionidevents) | **Get** /external_promotions/{externalPromotionId}/events | Retrieve the events associated to the external promotion +*HasManyApi* | [**GETExternalPromotionIdSkus**](docs/HasManyApi.md#getexternalpromotionidskus) | **Get** /external_promotions/{externalPromotionId}/skus | Retrieve the skus associated to the external promotion +*HasManyApi* | [**GETExternalPromotionIdTags**](docs/HasManyApi.md#getexternalpromotionidtags) | **Get** /external_promotions/{externalPromotionId}/tags | Retrieve the tags associated to the external promotion +*HasManyApi* | [**GETExternalPromotionIdVersions**](docs/HasManyApi.md#getexternalpromotionidversions) | **Get** /external_promotions/{externalPromotionId}/versions | Retrieve the versions associated to the external promotion *HasManyApi* | [**GETExternalTaxCalculatorIdAttachments**](docs/HasManyApi.md#getexternaltaxcalculatoridattachments) | **Get** /external_tax_calculators/{externalTaxCalculatorId}/attachments | Retrieve the attachments associated to the external tax calculator *HasManyApi* | [**GETExternalTaxCalculatorIdMarkets**](docs/HasManyApi.md#getexternaltaxcalculatoridmarkets) | **Get** /external_tax_calculators/{externalTaxCalculatorId}/markets | Retrieve the markets associated to the external tax calculator +*HasManyApi* | [**GETExternalTaxCalculatorIdVersions**](docs/HasManyApi.md#getexternaltaxcalculatoridversions) | **Get** /external_tax_calculators/{externalTaxCalculatorId}/versions | Retrieve the versions associated to the external tax calculator *HasManyApi* | [**GETFixedAmountPromotionIdAttachments**](docs/HasManyApi.md#getfixedamountpromotionidattachments) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/attachments | Retrieve the attachments associated to the fixed amount promotion +*HasManyApi* | [**GETFixedAmountPromotionIdCoupons**](docs/HasManyApi.md#getfixedamountpromotionidcoupons) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/coupons | Retrieve the coupons associated to the fixed amount promotion *HasManyApi* | [**GETFixedAmountPromotionIdEvents**](docs/HasManyApi.md#getfixedamountpromotionidevents) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/events | Retrieve the events associated to the fixed amount promotion +*HasManyApi* | [**GETFixedAmountPromotionIdSkus**](docs/HasManyApi.md#getfixedamountpromotionidskus) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/skus | Retrieve the skus associated to the fixed amount promotion +*HasManyApi* | [**GETFixedAmountPromotionIdTags**](docs/HasManyApi.md#getfixedamountpromotionidtags) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/tags | Retrieve the tags associated to the fixed amount promotion +*HasManyApi* | [**GETFixedAmountPromotionIdVersions**](docs/HasManyApi.md#getfixedamountpromotionidversions) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/versions | Retrieve the versions associated to the fixed amount promotion *HasManyApi* | [**GETFixedPricePromotionIdAttachments**](docs/HasManyApi.md#getfixedpricepromotionidattachments) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/attachments | Retrieve the attachments associated to the fixed price promotion +*HasManyApi* | [**GETFixedPricePromotionIdCoupons**](docs/HasManyApi.md#getfixedpricepromotionidcoupons) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/coupons | Retrieve the coupons associated to the fixed price promotion *HasManyApi* | [**GETFixedPricePromotionIdEvents**](docs/HasManyApi.md#getfixedpricepromotionidevents) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/events | Retrieve the events associated to the fixed price promotion *HasManyApi* | [**GETFixedPricePromotionIdSkus**](docs/HasManyApi.md#getfixedpricepromotionidskus) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/skus | Retrieve the skus associated to the fixed price promotion +*HasManyApi* | [**GETFixedPricePromotionIdTags**](docs/HasManyApi.md#getfixedpricepromotionidtags) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/tags | Retrieve the tags associated to the fixed price promotion +*HasManyApi* | [**GETFixedPricePromotionIdVersions**](docs/HasManyApi.md#getfixedpricepromotionidversions) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/versions | Retrieve the versions associated to the fixed price promotion +*HasManyApi* | [**GETFlexPromotionIdAttachments**](docs/HasManyApi.md#getflexpromotionidattachments) | **Get** /flex_promotions/{flexPromotionId}/attachments | Retrieve the attachments associated to the flex promotion +*HasManyApi* | [**GETFlexPromotionIdCoupons**](docs/HasManyApi.md#getflexpromotionidcoupons) | **Get** /flex_promotions/{flexPromotionId}/coupons | Retrieve the coupons associated to the flex promotion +*HasManyApi* | [**GETFlexPromotionIdEvents**](docs/HasManyApi.md#getflexpromotionidevents) | **Get** /flex_promotions/{flexPromotionId}/events | Retrieve the events associated to the flex promotion +*HasManyApi* | [**GETFlexPromotionIdTags**](docs/HasManyApi.md#getflexpromotionidtags) | **Get** /flex_promotions/{flexPromotionId}/tags | Retrieve the tags associated to the flex promotion +*HasManyApi* | [**GETFlexPromotionIdVersions**](docs/HasManyApi.md#getflexpromotionidversions) | **Get** /flex_promotions/{flexPromotionId}/versions | Retrieve the versions associated to the flex promotion *HasManyApi* | [**GETFreeGiftPromotionIdAttachments**](docs/HasManyApi.md#getfreegiftpromotionidattachments) | **Get** /free_gift_promotions/{freeGiftPromotionId}/attachments | Retrieve the attachments associated to the free gift promotion +*HasManyApi* | [**GETFreeGiftPromotionIdCoupons**](docs/HasManyApi.md#getfreegiftpromotionidcoupons) | **Get** /free_gift_promotions/{freeGiftPromotionId}/coupons | Retrieve the coupons associated to the free gift promotion *HasManyApi* | [**GETFreeGiftPromotionIdEvents**](docs/HasManyApi.md#getfreegiftpromotionidevents) | **Get** /free_gift_promotions/{freeGiftPromotionId}/events | Retrieve the events associated to the free gift promotion *HasManyApi* | [**GETFreeGiftPromotionIdSkus**](docs/HasManyApi.md#getfreegiftpromotionidskus) | **Get** /free_gift_promotions/{freeGiftPromotionId}/skus | Retrieve the skus associated to the free gift promotion +*HasManyApi* | [**GETFreeGiftPromotionIdTags**](docs/HasManyApi.md#getfreegiftpromotionidtags) | **Get** /free_gift_promotions/{freeGiftPromotionId}/tags | Retrieve the tags associated to the free gift promotion +*HasManyApi* | [**GETFreeGiftPromotionIdVersions**](docs/HasManyApi.md#getfreegiftpromotionidversions) | **Get** /free_gift_promotions/{freeGiftPromotionId}/versions | Retrieve the versions associated to the free gift promotion *HasManyApi* | [**GETFreeShippingPromotionIdAttachments**](docs/HasManyApi.md#getfreeshippingpromotionidattachments) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/attachments | Retrieve the attachments associated to the free shipping promotion +*HasManyApi* | [**GETFreeShippingPromotionIdCoupons**](docs/HasManyApi.md#getfreeshippingpromotionidcoupons) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/coupons | Retrieve the coupons associated to the free shipping promotion *HasManyApi* | [**GETFreeShippingPromotionIdEvents**](docs/HasManyApi.md#getfreeshippingpromotionidevents) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/events | Retrieve the events associated to the free shipping promotion +*HasManyApi* | [**GETFreeShippingPromotionIdTags**](docs/HasManyApi.md#getfreeshippingpromotionidtags) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/tags | Retrieve the tags associated to the free shipping promotion +*HasManyApi* | [**GETFreeShippingPromotionIdVersions**](docs/HasManyApi.md#getfreeshippingpromotionidversions) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/versions | Retrieve the versions associated to the free shipping promotion *HasManyApi* | [**GETGeocoderIdAddresses**](docs/HasManyApi.md#getgeocoderidaddresses) | **Get** /geocoders/{geocoderId}/addresses | Retrieve the addresses associated to the geocoder *HasManyApi* | [**GETGeocoderIdAttachments**](docs/HasManyApi.md#getgeocoderidattachments) | **Get** /geocoders/{geocoderId}/attachments | Retrieve the attachments associated to the geocoder +*HasManyApi* | [**GETGeocoderIdMarkets**](docs/HasManyApi.md#getgeocoderidmarkets) | **Get** /geocoders/{geocoderId}/markets | Retrieve the markets associated to the geocoder *HasManyApi* | [**GETGiftCardIdAttachments**](docs/HasManyApi.md#getgiftcardidattachments) | **Get** /gift_cards/{giftCardId}/attachments | Retrieve the attachments associated to the gift card *HasManyApi* | [**GETGiftCardIdEvents**](docs/HasManyApi.md#getgiftcardidevents) | **Get** /gift_cards/{giftCardId}/events | Retrieve the events associated to the gift card +*HasManyApi* | [**GETGiftCardIdTags**](docs/HasManyApi.md#getgiftcardidtags) | **Get** /gift_cards/{giftCardId}/tags | Retrieve the tags associated to the gift card +*HasManyApi* | [**GETGiftCardIdVersions**](docs/HasManyApi.md#getgiftcardidversions) | **Get** /gift_cards/{giftCardId}/versions | Retrieve the versions associated to the gift card *HasManyApi* | [**GETGiftCardRecipientIdAttachments**](docs/HasManyApi.md#getgiftcardrecipientidattachments) | **Get** /gift_card_recipients/{giftCardRecipientId}/attachments | Retrieve the attachments associated to the gift card recipient +*HasManyApi* | [**GETGiftCardRecipientIdVersions**](docs/HasManyApi.md#getgiftcardrecipientidversions) | **Get** /gift_card_recipients/{giftCardRecipientId}/versions | Retrieve the versions associated to the gift card recipient *HasManyApi* | [**GETGoogleGeocoderIdAddresses**](docs/HasManyApi.md#getgooglegeocoderidaddresses) | **Get** /google_geocoders/{googleGeocoderId}/addresses | Retrieve the addresses associated to the google geocoder *HasManyApi* | [**GETGoogleGeocoderIdAttachments**](docs/HasManyApi.md#getgooglegeocoderidattachments) | **Get** /google_geocoders/{googleGeocoderId}/attachments | Retrieve the attachments associated to the google geocoder +*HasManyApi* | [**GETGoogleGeocoderIdMarkets**](docs/HasManyApi.md#getgooglegeocoderidmarkets) | **Get** /google_geocoders/{googleGeocoderId}/markets | Retrieve the markets associated to the google geocoder *HasManyApi* | [**GETImportIdEvents**](docs/HasManyApi.md#getimportidevents) | **Get** /imports/{importId}/events | Retrieve the events associated to the import *HasManyApi* | [**GETInStockSubscriptionIdEvents**](docs/HasManyApi.md#getinstocksubscriptionidevents) | **Get** /in_stock_subscriptions/{inStockSubscriptionId}/events | Retrieve the events associated to the in stock subscription +*HasManyApi* | [**GETInStockSubscriptionIdVersions**](docs/HasManyApi.md#getinstocksubscriptionidversions) | **Get** /in_stock_subscriptions/{inStockSubscriptionId}/versions | Retrieve the versions associated to the in stock subscription *HasManyApi* | [**GETInventoryModelIdAttachments**](docs/HasManyApi.md#getinventorymodelidattachments) | **Get** /inventory_models/{inventoryModelId}/attachments | Retrieve the attachments associated to the inventory model *HasManyApi* | [**GETInventoryModelIdInventoryReturnLocations**](docs/HasManyApi.md#getinventorymodelidinventoryreturnlocations) | **Get** /inventory_models/{inventoryModelId}/inventory_return_locations | Retrieve the inventory return locations associated to the inventory model *HasManyApi* | [**GETInventoryModelIdInventoryStockLocations**](docs/HasManyApi.md#getinventorymodelidinventorystocklocations) | **Get** /inventory_models/{inventoryModelId}/inventory_stock_locations | Retrieve the inventory stock locations associated to the inventory model +*HasManyApi* | [**GETInventoryModelIdVersions**](docs/HasManyApi.md#getinventorymodelidversions) | **Get** /inventory_models/{inventoryModelId}/versions | Retrieve the versions associated to the inventory model +*HasManyApi* | [**GETInventoryReturnLocationIdVersions**](docs/HasManyApi.md#getinventoryreturnlocationidversions) | **Get** /inventory_return_locations/{inventoryReturnLocationId}/versions | Retrieve the versions associated to the inventory return location +*HasManyApi* | [**GETInventoryStockLocationIdVersions**](docs/HasManyApi.md#getinventorystocklocationidversions) | **Get** /inventory_stock_locations/{inventoryStockLocationId}/versions | Retrieve the versions associated to the inventory stock location *HasManyApi* | [**GETKlarnaGatewayIdKlarnaPayments**](docs/HasManyApi.md#getklarnagatewayidklarnapayments) | **Get** /klarna_gateways/{klarnaGatewayId}/klarna_payments | Retrieve the klarna payments associated to the klarna gateway *HasManyApi* | [**GETKlarnaGatewayIdPaymentMethods**](docs/HasManyApi.md#getklarnagatewayidpaymentmethods) | **Get** /klarna_gateways/{klarnaGatewayId}/payment_methods | Retrieve the payment methods associated to the klarna gateway +*HasManyApi* | [**GETKlarnaGatewayIdVersions**](docs/HasManyApi.md#getklarnagatewayidversions) | **Get** /klarna_gateways/{klarnaGatewayId}/versions | Retrieve the versions associated to the klarna gateway +*HasManyApi* | [**GETKlarnaPaymentIdVersions**](docs/HasManyApi.md#getklarnapaymentidversions) | **Get** /klarna_payments/{klarnaPaymentId}/versions | Retrieve the versions associated to the klarna payment +*HasManyApi* | [**GETLineItemIdEvents**](docs/HasManyApi.md#getlineitemidevents) | **Get** /line_items/{lineItemId}/events | Retrieve the events associated to the line item *HasManyApi* | [**GETLineItemIdLineItemOptions**](docs/HasManyApi.md#getlineitemidlineitemoptions) | **Get** /line_items/{lineItemId}/line_item_options | Retrieve the line item options associated to the line item +*HasManyApi* | [**GETLineItemIdReturnLineItems**](docs/HasManyApi.md#getlineitemidreturnlineitems) | **Get** /line_items/{lineItemId}/return_line_items | Retrieve the return line items associated to the line item *HasManyApi* | [**GETLineItemIdStockLineItems**](docs/HasManyApi.md#getlineitemidstocklineitems) | **Get** /line_items/{lineItemId}/stock_line_items | Retrieve the stock line items associated to the line item +*HasManyApi* | [**GETLineItemIdStockReservations**](docs/HasManyApi.md#getlineitemidstockreservations) | **Get** /line_items/{lineItemId}/stock_reservations | Retrieve the stock reservations associated to the line item *HasManyApi* | [**GETLineItemIdStockTransfers**](docs/HasManyApi.md#getlineitemidstocktransfers) | **Get** /line_items/{lineItemId}/stock_transfers | Retrieve the stock transfers associated to the line item +*HasManyApi* | [**GETLineItemIdTags**](docs/HasManyApi.md#getlineitemidtags) | **Get** /line_items/{lineItemId}/tags | Retrieve the tags associated to the line item +*HasManyApi* | [**GETLineItemOptionIdEvents**](docs/HasManyApi.md#getlineitemoptionidevents) | **Get** /line_item_options/{lineItemOptionId}/events | Retrieve the events associated to the line item option +*HasManyApi* | [**GETLineItemOptionIdTags**](docs/HasManyApi.md#getlineitemoptionidtags) | **Get** /line_item_options/{lineItemOptionId}/tags | Retrieve the tags associated to the line item option +*HasManyApi* | [**GETLinkIdEvents**](docs/HasManyApi.md#getlinkidevents) | **Get** /links/{linkId}/events | Retrieve the events associated to the link *HasManyApi* | [**GETManualGatewayIdPaymentMethods**](docs/HasManyApi.md#getmanualgatewayidpaymentmethods) | **Get** /manual_gateways/{manualGatewayId}/payment_methods | Retrieve the payment methods associated to the manual gateway +*HasManyApi* | [**GETManualGatewayIdVersions**](docs/HasManyApi.md#getmanualgatewayidversions) | **Get** /manual_gateways/{manualGatewayId}/versions | Retrieve the versions associated to the manual gateway *HasManyApi* | [**GETManualTaxCalculatorIdAttachments**](docs/HasManyApi.md#getmanualtaxcalculatoridattachments) | **Get** /manual_tax_calculators/{manualTaxCalculatorId}/attachments | Retrieve the attachments associated to the manual tax calculator *HasManyApi* | [**GETManualTaxCalculatorIdMarkets**](docs/HasManyApi.md#getmanualtaxcalculatoridmarkets) | **Get** /manual_tax_calculators/{manualTaxCalculatorId}/markets | Retrieve the markets associated to the manual tax calculator *HasManyApi* | [**GETManualTaxCalculatorIdTaxRules**](docs/HasManyApi.md#getmanualtaxcalculatoridtaxrules) | **Get** /manual_tax_calculators/{manualTaxCalculatorId}/tax_rules | Retrieve the tax rules associated to the manual tax calculator +*HasManyApi* | [**GETManualTaxCalculatorIdVersions**](docs/HasManyApi.md#getmanualtaxcalculatoridversions) | **Get** /manual_tax_calculators/{manualTaxCalculatorId}/versions | Retrieve the versions associated to the manual tax calculator *HasManyApi* | [**GETMarketIdAttachments**](docs/HasManyApi.md#getmarketidattachments) | **Get** /markets/{marketId}/attachments | Retrieve the attachments associated to the market +*HasManyApi* | [**GETMarketIdPriceListSchedulers**](docs/HasManyApi.md#getmarketidpricelistschedulers) | **Get** /markets/{marketId}/price_list_schedulers | Retrieve the price list schedulers associated to the market +*HasManyApi* | [**GETMarketIdVersions**](docs/HasManyApi.md#getmarketidversions) | **Get** /markets/{marketId}/versions | Retrieve the versions associated to the market *HasManyApi* | [**GETMerchantIdAttachments**](docs/HasManyApi.md#getmerchantidattachments) | **Get** /merchants/{merchantId}/attachments | Retrieve the attachments associated to the merchant +*HasManyApi* | [**GETMerchantIdVersions**](docs/HasManyApi.md#getmerchantidversions) | **Get** /merchants/{merchantId}/versions | Retrieve the versions associated to the merchant +*HasManyApi* | [**GETOrderAmountPromotionRuleIdVersions**](docs/HasManyApi.md#getorderamountpromotionruleidversions) | **Get** /order_amount_promotion_rules/{orderAmountPromotionRuleId}/versions | Retrieve the versions associated to the order amount promotion rule *HasManyApi* | [**GETOrderCopyIdEvents**](docs/HasManyApi.md#getordercopyidevents) | **Get** /order_copies/{orderCopyId}/events | Retrieve the events associated to the order copy *HasManyApi* | [**GETOrderFactoryIdEvents**](docs/HasManyApi.md#getorderfactoryidevents) | **Get** /order_factories/{orderFactoryId}/events | Retrieve the events associated to the order factory *HasManyApi* | [**GETOrderIdAttachments**](docs/HasManyApi.md#getorderidattachments) | **Get** /orders/{orderId}/attachments | Retrieve the attachments associated to the order @@ -518,99 +676,186 @@ Class | Method | HTTP request | Description *HasManyApi* | [**GETOrderIdAvailablePaymentMethods**](docs/HasManyApi.md#getorderidavailablepaymentmethods) | **Get** /orders/{orderId}/available_payment_methods | Retrieve the available payment methods associated to the order *HasManyApi* | [**GETOrderIdCaptures**](docs/HasManyApi.md#getorderidcaptures) | **Get** /orders/{orderId}/captures | Retrieve the captures associated to the order *HasManyApi* | [**GETOrderIdEvents**](docs/HasManyApi.md#getorderidevents) | **Get** /orders/{orderId}/events | Retrieve the events associated to the order +*HasManyApi* | [**GETOrderIdLineItemOptions**](docs/HasManyApi.md#getorderidlineitemoptions) | **Get** /orders/{orderId}/line_item_options | Retrieve the line item options associated to the order *HasManyApi* | [**GETOrderIdLineItems**](docs/HasManyApi.md#getorderidlineitems) | **Get** /orders/{orderId}/line_items | Retrieve the line items associated to the order +*HasManyApi* | [**GETOrderIdLinks**](docs/HasManyApi.md#getorderidlinks) | **Get** /orders/{orderId}/links | Retrieve the links associated to the order *HasManyApi* | [**GETOrderIdOrderCopies**](docs/HasManyApi.md#getorderidordercopies) | **Get** /orders/{orderId}/order_copies | Retrieve the order copies associated to the order *HasManyApi* | [**GETOrderIdOrderFactories**](docs/HasManyApi.md#getorderidorderfactories) | **Get** /orders/{orderId}/order_factories | Retrieve the order factories associated to the order *HasManyApi* | [**GETOrderIdOrderSubscriptions**](docs/HasManyApi.md#getorderidordersubscriptions) | **Get** /orders/{orderId}/order_subscriptions | Retrieve the order subscriptions associated to the order +*HasManyApi* | [**GETOrderIdPaymentOptions**](docs/HasManyApi.md#getorderidpaymentoptions) | **Get** /orders/{orderId}/payment_options | Retrieve the payment options associated to the order *HasManyApi* | [**GETOrderIdRecurringOrderCopies**](docs/HasManyApi.md#getorderidrecurringordercopies) | **Get** /orders/{orderId}/recurring_order_copies | Retrieve the recurring order copies associated to the order *HasManyApi* | [**GETOrderIdRefunds**](docs/HasManyApi.md#getorderidrefunds) | **Get** /orders/{orderId}/refunds | Retrieve the refunds associated to the order +*HasManyApi* | [**GETOrderIdResourceErrors**](docs/HasManyApi.md#getorderidresourceerrors) | **Get** /orders/{orderId}/resource_errors | Retrieve the resource errors associated to the order *HasManyApi* | [**GETOrderIdReturns**](docs/HasManyApi.md#getorderidreturns) | **Get** /orders/{orderId}/returns | Retrieve the returns associated to the order *HasManyApi* | [**GETOrderIdShipments**](docs/HasManyApi.md#getorderidshipments) | **Get** /orders/{orderId}/shipments | Retrieve the shipments associated to the order +*HasManyApi* | [**GETOrderIdStockLineItems**](docs/HasManyApi.md#getorderidstocklineitems) | **Get** /orders/{orderId}/stock_line_items | Retrieve the stock line items associated to the order +*HasManyApi* | [**GETOrderIdStockReservations**](docs/HasManyApi.md#getorderidstockreservations) | **Get** /orders/{orderId}/stock_reservations | Retrieve the stock reservations associated to the order +*HasManyApi* | [**GETOrderIdStockTransfers**](docs/HasManyApi.md#getorderidstocktransfers) | **Get** /orders/{orderId}/stock_transfers | Retrieve the stock transfers associated to the order +*HasManyApi* | [**GETOrderIdTags**](docs/HasManyApi.md#getorderidtags) | **Get** /orders/{orderId}/tags | Retrieve the tags associated to the order +*HasManyApi* | [**GETOrderIdVersions**](docs/HasManyApi.md#getorderidversions) | **Get** /orders/{orderId}/versions | Retrieve the versions associated to the order *HasManyApi* | [**GETOrderIdVoids**](docs/HasManyApi.md#getorderidvoids) | **Get** /orders/{orderId}/voids | Retrieve the voids associated to the order *HasManyApi* | [**GETOrderSubscriptionIdEvents**](docs/HasManyApi.md#getordersubscriptionidevents) | **Get** /order_subscriptions/{orderSubscriptionId}/events | Retrieve the events associated to the order subscription *HasManyApi* | [**GETOrderSubscriptionIdOrderFactories**](docs/HasManyApi.md#getordersubscriptionidorderfactories) | **Get** /order_subscriptions/{orderSubscriptionId}/order_factories | Retrieve the order factories associated to the order subscription *HasManyApi* | [**GETOrderSubscriptionIdOrderSubscriptionItems**](docs/HasManyApi.md#getordersubscriptionidordersubscriptionitems) | **Get** /order_subscriptions/{orderSubscriptionId}/order_subscription_items | Retrieve the order subscription items associated to the order subscription *HasManyApi* | [**GETOrderSubscriptionIdOrders**](docs/HasManyApi.md#getordersubscriptionidorders) | **Get** /order_subscriptions/{orderSubscriptionId}/orders | Retrieve the orders associated to the order subscription *HasManyApi* | [**GETOrderSubscriptionIdRecurringOrderCopies**](docs/HasManyApi.md#getordersubscriptionidrecurringordercopies) | **Get** /order_subscriptions/{orderSubscriptionId}/recurring_order_copies | Retrieve the recurring order copies associated to the order subscription -*HasManyApi* | [**GETOrderValidationRuleIdAttachments**](docs/HasManyApi.md#getordervalidationruleidattachments) | **Get** /order_validation_rules/{orderValidationRuleId}/attachments | Retrieve the attachments associated to the order validation rule +*HasManyApi* | [**GETOrderSubscriptionIdTags**](docs/HasManyApi.md#getordersubscriptionidtags) | **Get** /order_subscriptions/{orderSubscriptionId}/tags | Retrieve the tags associated to the order subscription +*HasManyApi* | [**GETOrderSubscriptionIdVersions**](docs/HasManyApi.md#getordersubscriptionidversions) | **Get** /order_subscriptions/{orderSubscriptionId}/versions | Retrieve the versions associated to the order subscription *HasManyApi* | [**GETPackageIdAttachments**](docs/HasManyApi.md#getpackageidattachments) | **Get** /packages/{packageId}/attachments | Retrieve the attachments associated to the package *HasManyApi* | [**GETPackageIdParcels**](docs/HasManyApi.md#getpackageidparcels) | **Get** /packages/{packageId}/parcels | Retrieve the parcels associated to the package +*HasManyApi* | [**GETPackageIdVersions**](docs/HasManyApi.md#getpackageidversions) | **Get** /packages/{packageId}/versions | Retrieve the versions associated to the package *HasManyApi* | [**GETParcelIdAttachments**](docs/HasManyApi.md#getparcelidattachments) | **Get** /parcels/{parcelId}/attachments | Retrieve the attachments associated to the parcel *HasManyApi* | [**GETParcelIdEvents**](docs/HasManyApi.md#getparcelidevents) | **Get** /parcels/{parcelId}/events | Retrieve the events associated to the parcel *HasManyApi* | [**GETParcelIdParcelLineItems**](docs/HasManyApi.md#getparcelidparcellineitems) | **Get** /parcels/{parcelId}/parcel_line_items | Retrieve the parcel line items associated to the parcel +*HasManyApi* | [**GETParcelIdVersions**](docs/HasManyApi.md#getparcelidversions) | **Get** /parcels/{parcelId}/versions | Retrieve the versions associated to the parcel +*HasManyApi* | [**GETParcelLineItemIdVersions**](docs/HasManyApi.md#getparcellineitemidversions) | **Get** /parcel_line_items/{parcelLineItemId}/versions | Retrieve the versions associated to the parcel line item *HasManyApi* | [**GETPaymentGatewayIdPaymentMethods**](docs/HasManyApi.md#getpaymentgatewayidpaymentmethods) | **Get** /payment_gateways/{paymentGatewayId}/payment_methods | Retrieve the payment methods associated to the payment gateway +*HasManyApi* | [**GETPaymentGatewayIdVersions**](docs/HasManyApi.md#getpaymentgatewayidversions) | **Get** /payment_gateways/{paymentGatewayId}/versions | Retrieve the versions associated to the payment gateway *HasManyApi* | [**GETPaymentMethodIdAttachments**](docs/HasManyApi.md#getpaymentmethodidattachments) | **Get** /payment_methods/{paymentMethodId}/attachments | Retrieve the attachments associated to the payment method +*HasManyApi* | [**GETPaymentMethodIdVersions**](docs/HasManyApi.md#getpaymentmethodidversions) | **Get** /payment_methods/{paymentMethodId}/versions | Retrieve the versions associated to the payment method +*HasManyApi* | [**GETPaymentOptionIdAttachments**](docs/HasManyApi.md#getpaymentoptionidattachments) | **Get** /payment_options/{paymentOptionId}/attachments | Retrieve the attachments associated to the payment option *HasManyApi* | [**GETPaypalGatewayIdPaymentMethods**](docs/HasManyApi.md#getpaypalgatewayidpaymentmethods) | **Get** /paypal_gateways/{paypalGatewayId}/payment_methods | Retrieve the payment methods associated to the paypal gateway *HasManyApi* | [**GETPaypalGatewayIdPaypalPayments**](docs/HasManyApi.md#getpaypalgatewayidpaypalpayments) | **Get** /paypal_gateways/{paypalGatewayId}/paypal_payments | Retrieve the paypal payments associated to the paypal gateway +*HasManyApi* | [**GETPaypalGatewayIdVersions**](docs/HasManyApi.md#getpaypalgatewayidversions) | **Get** /paypal_gateways/{paypalGatewayId}/versions | Retrieve the versions associated to the paypal gateway +*HasManyApi* | [**GETPaypalPaymentIdVersions**](docs/HasManyApi.md#getpaypalpaymentidversions) | **Get** /paypal_payments/{paypalPaymentId}/versions | Retrieve the versions associated to the paypal payment *HasManyApi* | [**GETPercentageDiscountPromotionIdAttachments**](docs/HasManyApi.md#getpercentagediscountpromotionidattachments) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/attachments | Retrieve the attachments associated to the percentage discount promotion +*HasManyApi* | [**GETPercentageDiscountPromotionIdCoupons**](docs/HasManyApi.md#getpercentagediscountpromotionidcoupons) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/coupons | Retrieve the coupons associated to the percentage discount promotion *HasManyApi* | [**GETPercentageDiscountPromotionIdEvents**](docs/HasManyApi.md#getpercentagediscountpromotionidevents) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/events | Retrieve the events associated to the percentage discount promotion *HasManyApi* | [**GETPercentageDiscountPromotionIdSkus**](docs/HasManyApi.md#getpercentagediscountpromotionidskus) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/skus | Retrieve the skus associated to the percentage discount promotion +*HasManyApi* | [**GETPercentageDiscountPromotionIdTags**](docs/HasManyApi.md#getpercentagediscountpromotionidtags) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/tags | Retrieve the tags associated to the percentage discount promotion +*HasManyApi* | [**GETPercentageDiscountPromotionIdVersions**](docs/HasManyApi.md#getpercentagediscountpromotionidversions) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/versions | Retrieve the versions associated to the percentage discount promotion *HasManyApi* | [**GETPriceFrequencyTierIdAttachments**](docs/HasManyApi.md#getpricefrequencytieridattachments) | **Get** /price_frequency_tiers/{priceFrequencyTierId}/attachments | Retrieve the attachments associated to the price frequency tier *HasManyApi* | [**GETPriceFrequencyTierIdEvents**](docs/HasManyApi.md#getpricefrequencytieridevents) | **Get** /price_frequency_tiers/{priceFrequencyTierId}/events | Retrieve the events associated to the price frequency tier +*HasManyApi* | [**GETPriceFrequencyTierIdVersions**](docs/HasManyApi.md#getpricefrequencytieridversions) | **Get** /price_frequency_tiers/{priceFrequencyTierId}/versions | Retrieve the versions associated to the price frequency tier *HasManyApi* | [**GETPriceIdAttachments**](docs/HasManyApi.md#getpriceidattachments) | **Get** /prices/{priceId}/attachments | Retrieve the attachments associated to the price +*HasManyApi* | [**GETPriceIdJwtMarkets**](docs/HasManyApi.md#getpriceidjwtmarkets) | **Get** /prices/{priceId}/jwt_markets | Retrieve the jwt markets associated to the price +*HasManyApi* | [**GETPriceIdJwtStockLocations**](docs/HasManyApi.md#getpriceidjwtstocklocations) | **Get** /prices/{priceId}/jwt_stock_locations | Retrieve the jwt stock locations associated to the price *HasManyApi* | [**GETPriceIdPriceFrequencyTiers**](docs/HasManyApi.md#getpriceidpricefrequencytiers) | **Get** /prices/{priceId}/price_frequency_tiers | Retrieve the price frequency tiers associated to the price *HasManyApi* | [**GETPriceIdPriceTiers**](docs/HasManyApi.md#getpriceidpricetiers) | **Get** /prices/{priceId}/price_tiers | Retrieve the price tiers associated to the price *HasManyApi* | [**GETPriceIdPriceVolumeTiers**](docs/HasManyApi.md#getpriceidpricevolumetiers) | **Get** /prices/{priceId}/price_volume_tiers | Retrieve the price volume tiers associated to the price +*HasManyApi* | [**GETPriceIdVersions**](docs/HasManyApi.md#getpriceidversions) | **Get** /prices/{priceId}/versions | Retrieve the versions associated to the price *HasManyApi* | [**GETPriceListIdAttachments**](docs/HasManyApi.md#getpricelistidattachments) | **Get** /price_lists/{priceListId}/attachments | Retrieve the attachments associated to the price list +*HasManyApi* | [**GETPriceListIdPriceListSchedulers**](docs/HasManyApi.md#getpricelistidpricelistschedulers) | **Get** /price_lists/{priceListId}/price_list_schedulers | Retrieve the price list schedulers associated to the price list *HasManyApi* | [**GETPriceListIdPrices**](docs/HasManyApi.md#getpricelistidprices) | **Get** /price_lists/{priceListId}/prices | Retrieve the prices associated to the price list +*HasManyApi* | [**GETPriceListIdVersions**](docs/HasManyApi.md#getpricelistidversions) | **Get** /price_lists/{priceListId}/versions | Retrieve the versions associated to the price list +*HasManyApi* | [**GETPriceListSchedulerIdEvents**](docs/HasManyApi.md#getpricelistscheduleridevents) | **Get** /price_list_schedulers/{priceListSchedulerId}/events | Retrieve the events associated to the price list scheduler +*HasManyApi* | [**GETPriceListSchedulerIdVersions**](docs/HasManyApi.md#getpricelistscheduleridversions) | **Get** /price_list_schedulers/{priceListSchedulerId}/versions | Retrieve the versions associated to the price list scheduler *HasManyApi* | [**GETPriceTierIdAttachments**](docs/HasManyApi.md#getpricetieridattachments) | **Get** /price_tiers/{priceTierId}/attachments | Retrieve the attachments associated to the price tier +*HasManyApi* | [**GETPriceTierIdVersions**](docs/HasManyApi.md#getpricetieridversions) | **Get** /price_tiers/{priceTierId}/versions | Retrieve the versions associated to the price tier *HasManyApi* | [**GETPriceVolumeTierIdAttachments**](docs/HasManyApi.md#getpricevolumetieridattachments) | **Get** /price_volume_tiers/{priceVolumeTierId}/attachments | Retrieve the attachments associated to the price volume tier *HasManyApi* | [**GETPriceVolumeTierIdEvents**](docs/HasManyApi.md#getpricevolumetieridevents) | **Get** /price_volume_tiers/{priceVolumeTierId}/events | Retrieve the events associated to the price volume tier +*HasManyApi* | [**GETPriceVolumeTierIdVersions**](docs/HasManyApi.md#getpricevolumetieridversions) | **Get** /price_volume_tiers/{priceVolumeTierId}/versions | Retrieve the versions associated to the price volume tier *HasManyApi* | [**GETPromotionIdAttachments**](docs/HasManyApi.md#getpromotionidattachments) | **Get** /promotions/{promotionId}/attachments | Retrieve the attachments associated to the promotion +*HasManyApi* | [**GETPromotionIdCoupons**](docs/HasManyApi.md#getpromotionidcoupons) | **Get** /promotions/{promotionId}/coupons | Retrieve the coupons associated to the promotion *HasManyApi* | [**GETPromotionIdEvents**](docs/HasManyApi.md#getpromotionidevents) | **Get** /promotions/{promotionId}/events | Retrieve the events associated to the promotion +*HasManyApi* | [**GETPromotionIdTags**](docs/HasManyApi.md#getpromotionidtags) | **Get** /promotions/{promotionId}/tags | Retrieve the tags associated to the promotion +*HasManyApi* | [**GETPromotionIdVersions**](docs/HasManyApi.md#getpromotionidversions) | **Get** /promotions/{promotionId}/versions | Retrieve the versions associated to the promotion +*HasManyApi* | [**GETPromotionRuleIdVersions**](docs/HasManyApi.md#getpromotionruleidversions) | **Get** /promotion_rules/{promotionRuleId}/versions | Retrieve the versions associated to the promotion rule *HasManyApi* | [**GETRecurringOrderCopyIdEvents**](docs/HasManyApi.md#getrecurringordercopyidevents) | **Get** /recurring_order_copies/{recurringOrderCopyId}/events | Retrieve the events associated to the recurring order copy +*HasManyApi* | [**GETRefundIdAttachments**](docs/HasManyApi.md#getrefundidattachments) | **Get** /refunds/{refundId}/attachments | Retrieve the attachments associated to the refund *HasManyApi* | [**GETRefundIdEvents**](docs/HasManyApi.md#getrefundidevents) | **Get** /refunds/{refundId}/events | Retrieve the events associated to the refund +*HasManyApi* | [**GETRefundIdVersions**](docs/HasManyApi.md#getrefundidversions) | **Get** /refunds/{refundId}/versions | Retrieve the versions associated to the refund +*HasManyApi* | [**GETReservedStockIdStockReservations**](docs/HasManyApi.md#getreservedstockidstockreservations) | **Get** /reserved_stocks/{reservedStockId}/stock_reservations | Retrieve the stock reservations associated to the reserved stock +*HasManyApi* | [**GETReservedStockIdVersions**](docs/HasManyApi.md#getreservedstockidversions) | **Get** /reserved_stocks/{reservedStockId}/versions | Retrieve the versions associated to the reserved stock *HasManyApi* | [**GETReturnIdAttachments**](docs/HasManyApi.md#getreturnidattachments) | **Get** /returns/{returnId}/attachments | Retrieve the attachments associated to the return *HasManyApi* | [**GETReturnIdEvents**](docs/HasManyApi.md#getreturnidevents) | **Get** /returns/{returnId}/events | Retrieve the events associated to the return +*HasManyApi* | [**GETReturnIdResourceErrors**](docs/HasManyApi.md#getreturnidresourceerrors) | **Get** /returns/{returnId}/resource_errors | Retrieve the resource errors associated to the return *HasManyApi* | [**GETReturnIdReturnLineItems**](docs/HasManyApi.md#getreturnidreturnlineitems) | **Get** /returns/{returnId}/return_line_items | Retrieve the return line items associated to the return +*HasManyApi* | [**GETReturnIdTags**](docs/HasManyApi.md#getreturnidtags) | **Get** /returns/{returnId}/tags | Retrieve the tags associated to the return +*HasManyApi* | [**GETReturnIdVersions**](docs/HasManyApi.md#getreturnidversions) | **Get** /returns/{returnId}/versions | Retrieve the versions associated to the return *HasManyApi* | [**GETSatispayGatewayIdPaymentMethods**](docs/HasManyApi.md#getsatispaygatewayidpaymentmethods) | **Get** /satispay_gateways/{satispayGatewayId}/payment_methods | Retrieve the payment methods associated to the satispay gateway *HasManyApi* | [**GETSatispayGatewayIdSatispayPayments**](docs/HasManyApi.md#getsatispaygatewayidsatispaypayments) | **Get** /satispay_gateways/{satispayGatewayId}/satispay_payments | Retrieve the satispay payments associated to the satispay gateway +*HasManyApi* | [**GETSatispayGatewayIdVersions**](docs/HasManyApi.md#getsatispaygatewayidversions) | **Get** /satispay_gateways/{satispayGatewayId}/versions | Retrieve the versions associated to the satispay gateway +*HasManyApi* | [**GETSatispayPaymentIdVersions**](docs/HasManyApi.md#getsatispaypaymentidversions) | **Get** /satispay_payments/{satispayPaymentId}/versions | Retrieve the versions associated to the satispay payment *HasManyApi* | [**GETShipmentIdAttachments**](docs/HasManyApi.md#getshipmentidattachments) | **Get** /shipments/{shipmentId}/attachments | Retrieve the attachments associated to the shipment *HasManyApi* | [**GETShipmentIdAvailableShippingMethods**](docs/HasManyApi.md#getshipmentidavailableshippingmethods) | **Get** /shipments/{shipmentId}/available_shipping_methods | Retrieve the available shipping methods associated to the shipment *HasManyApi* | [**GETShipmentIdCarrierAccounts**](docs/HasManyApi.md#getshipmentidcarrieraccounts) | **Get** /shipments/{shipmentId}/carrier_accounts | Retrieve the carrier accounts associated to the shipment *HasManyApi* | [**GETShipmentIdEvents**](docs/HasManyApi.md#getshipmentidevents) | **Get** /shipments/{shipmentId}/events | Retrieve the events associated to the shipment +*HasManyApi* | [**GETShipmentIdLineItems**](docs/HasManyApi.md#getshipmentidlineitems) | **Get** /shipments/{shipmentId}/line_items | Retrieve the line items associated to the shipment *HasManyApi* | [**GETShipmentIdParcels**](docs/HasManyApi.md#getshipmentidparcels) | **Get** /shipments/{shipmentId}/parcels | Retrieve the parcels associated to the shipment *HasManyApi* | [**GETShipmentIdStockLineItems**](docs/HasManyApi.md#getshipmentidstocklineitems) | **Get** /shipments/{shipmentId}/stock_line_items | Retrieve the stock line items associated to the shipment *HasManyApi* | [**GETShipmentIdStockTransfers**](docs/HasManyApi.md#getshipmentidstocktransfers) | **Get** /shipments/{shipmentId}/stock_transfers | Retrieve the stock transfers associated to the shipment +*HasManyApi* | [**GETShipmentIdTags**](docs/HasManyApi.md#getshipmentidtags) | **Get** /shipments/{shipmentId}/tags | Retrieve the tags associated to the shipment +*HasManyApi* | [**GETShipmentIdVersions**](docs/HasManyApi.md#getshipmentidversions) | **Get** /shipments/{shipmentId}/versions | Retrieve the versions associated to the shipment *HasManyApi* | [**GETShippingCategoryIdAttachments**](docs/HasManyApi.md#getshippingcategoryidattachments) | **Get** /shipping_categories/{shippingCategoryId}/attachments | Retrieve the attachments associated to the shipping category *HasManyApi* | [**GETShippingCategoryIdSkus**](docs/HasManyApi.md#getshippingcategoryidskus) | **Get** /shipping_categories/{shippingCategoryId}/skus | Retrieve the skus associated to the shipping category +*HasManyApi* | [**GETShippingCategoryIdVersions**](docs/HasManyApi.md#getshippingcategoryidversions) | **Get** /shipping_categories/{shippingCategoryId}/versions | Retrieve the versions associated to the shipping category *HasManyApi* | [**GETShippingMethodIdAttachments**](docs/HasManyApi.md#getshippingmethodidattachments) | **Get** /shipping_methods/{shippingMethodId}/attachments | Retrieve the attachments associated to the shipping method *HasManyApi* | [**GETShippingMethodIdShippingMethodTiers**](docs/HasManyApi.md#getshippingmethodidshippingmethodtiers) | **Get** /shipping_methods/{shippingMethodId}/shipping_method_tiers | Retrieve the shipping method tiers associated to the shipping method *HasManyApi* | [**GETShippingMethodIdShippingWeightTiers**](docs/HasManyApi.md#getshippingmethodidshippingweighttiers) | **Get** /shipping_methods/{shippingMethodId}/shipping_weight_tiers | Retrieve the shipping weight tiers associated to the shipping method +*HasManyApi* | [**GETShippingMethodIdVersions**](docs/HasManyApi.md#getshippingmethodidversions) | **Get** /shipping_methods/{shippingMethodId}/versions | Retrieve the versions associated to the shipping method *HasManyApi* | [**GETShippingMethodTierIdAttachments**](docs/HasManyApi.md#getshippingmethodtieridattachments) | **Get** /shipping_method_tiers/{shippingMethodTierId}/attachments | Retrieve the attachments associated to the shipping method tier +*HasManyApi* | [**GETShippingMethodTierIdVersions**](docs/HasManyApi.md#getshippingmethodtieridversions) | **Get** /shipping_method_tiers/{shippingMethodTierId}/versions | Retrieve the versions associated to the shipping method tier *HasManyApi* | [**GETShippingWeightTierIdAttachments**](docs/HasManyApi.md#getshippingweighttieridattachments) | **Get** /shipping_weight_tiers/{shippingWeightTierId}/attachments | Retrieve the attachments associated to the shipping weight tier +*HasManyApi* | [**GETShippingWeightTierIdVersions**](docs/HasManyApi.md#getshippingweighttieridversions) | **Get** /shipping_weight_tiers/{shippingWeightTierId}/versions | Retrieve the versions associated to the shipping weight tier *HasManyApi* | [**GETShippingZoneIdAttachments**](docs/HasManyApi.md#getshippingzoneidattachments) | **Get** /shipping_zones/{shippingZoneId}/attachments | Retrieve the attachments associated to the shipping zone +*HasManyApi* | [**GETShippingZoneIdVersions**](docs/HasManyApi.md#getshippingzoneidversions) | **Get** /shipping_zones/{shippingZoneId}/versions | Retrieve the versions associated to the shipping zone *HasManyApi* | [**GETSkuIdAttachments**](docs/HasManyApi.md#getskuidattachments) | **Get** /skus/{skuId}/attachments | Retrieve the attachments associated to the SKU *HasManyApi* | [**GETSkuIdDeliveryLeadTimes**](docs/HasManyApi.md#getskuiddeliveryleadtimes) | **Get** /skus/{skuId}/delivery_lead_times | Retrieve the delivery lead times associated to the SKU +*HasManyApi* | [**GETSkuIdEvents**](docs/HasManyApi.md#getskuidevents) | **Get** /skus/{skuId}/events | Retrieve the events associated to the SKU +*HasManyApi* | [**GETSkuIdJwtMarkets**](docs/HasManyApi.md#getskuidjwtmarkets) | **Get** /skus/{skuId}/jwt_markets | Retrieve the jwt markets associated to the SKU +*HasManyApi* | [**GETSkuIdJwtStockLocations**](docs/HasManyApi.md#getskuidjwtstocklocations) | **Get** /skus/{skuId}/jwt_stock_locations | Retrieve the jwt stock locations associated to the SKU +*HasManyApi* | [**GETSkuIdLinks**](docs/HasManyApi.md#getskuidlinks) | **Get** /skus/{skuId}/links | Retrieve the links associated to the SKU *HasManyApi* | [**GETSkuIdPrices**](docs/HasManyApi.md#getskuidprices) | **Get** /skus/{skuId}/prices | Retrieve the prices associated to the SKU +*HasManyApi* | [**GETSkuIdSkuListItems**](docs/HasManyApi.md#getskuidskulistitems) | **Get** /skus/{skuId}/sku_list_items | Retrieve the sku list items associated to the SKU +*HasManyApi* | [**GETSkuIdSkuLists**](docs/HasManyApi.md#getskuidskulists) | **Get** /skus/{skuId}/sku_lists | Retrieve the sku lists associated to the SKU *HasManyApi* | [**GETSkuIdSkuOptions**](docs/HasManyApi.md#getskuidskuoptions) | **Get** /skus/{skuId}/sku_options | Retrieve the sku options associated to the SKU *HasManyApi* | [**GETSkuIdStockItems**](docs/HasManyApi.md#getskuidstockitems) | **Get** /skus/{skuId}/stock_items | Retrieve the stock items associated to the SKU +*HasManyApi* | [**GETSkuIdStockReservations**](docs/HasManyApi.md#getskuidstockreservations) | **Get** /skus/{skuId}/stock_reservations | Retrieve the stock reservations associated to the SKU +*HasManyApi* | [**GETSkuIdTags**](docs/HasManyApi.md#getskuidtags) | **Get** /skus/{skuId}/tags | Retrieve the tags associated to the SKU +*HasManyApi* | [**GETSkuIdVersions**](docs/HasManyApi.md#getskuidversions) | **Get** /skus/{skuId}/versions | Retrieve the versions associated to the SKU *HasManyApi* | [**GETSkuListIdAttachments**](docs/HasManyApi.md#getskulistidattachments) | **Get** /sku_lists/{skuListId}/attachments | Retrieve the attachments associated to the SKU list *HasManyApi* | [**GETSkuListIdBundles**](docs/HasManyApi.md#getskulistidbundles) | **Get** /sku_lists/{skuListId}/bundles | Retrieve the bundles associated to the SKU list +*HasManyApi* | [**GETSkuListIdLinks**](docs/HasManyApi.md#getskulistidlinks) | **Get** /sku_lists/{skuListId}/links | Retrieve the links associated to the SKU list *HasManyApi* | [**GETSkuListIdSkuListItems**](docs/HasManyApi.md#getskulistidskulistitems) | **Get** /sku_lists/{skuListId}/sku_list_items | Retrieve the sku list items associated to the SKU list *HasManyApi* | [**GETSkuListIdSkus**](docs/HasManyApi.md#getskulistidskus) | **Get** /sku_lists/{skuListId}/skus | Retrieve the skus associated to the SKU list +*HasManyApi* | [**GETSkuListIdVersions**](docs/HasManyApi.md#getskulistidversions) | **Get** /sku_lists/{skuListId}/versions | Retrieve the versions associated to the SKU list +*HasManyApi* | [**GETSkuListItemIdVersions**](docs/HasManyApi.md#getskulistitemidversions) | **Get** /sku_list_items/{skuListItemId}/versions | Retrieve the versions associated to the SKU list item *HasManyApi* | [**GETSkuListPromotionRuleIdSkus**](docs/HasManyApi.md#getskulistpromotionruleidskus) | **Get** /sku_list_promotion_rules/{skuListPromotionRuleId}/skus | Retrieve the skus associated to the SKU list promotion rule +*HasManyApi* | [**GETSkuListPromotionRuleIdVersions**](docs/HasManyApi.md#getskulistpromotionruleidversions) | **Get** /sku_list_promotion_rules/{skuListPromotionRuleId}/versions | Retrieve the versions associated to the SKU list promotion rule *HasManyApi* | [**GETSkuOptionIdAttachments**](docs/HasManyApi.md#getskuoptionidattachments) | **Get** /sku_options/{skuOptionId}/attachments | Retrieve the attachments associated to the SKU option +*HasManyApi* | [**GETSkuOptionIdEvents**](docs/HasManyApi.md#getskuoptionidevents) | **Get** /sku_options/{skuOptionId}/events | Retrieve the events associated to the SKU option +*HasManyApi* | [**GETSkuOptionIdTags**](docs/HasManyApi.md#getskuoptionidtags) | **Get** /sku_options/{skuOptionId}/tags | Retrieve the tags associated to the SKU option +*HasManyApi* | [**GETSkuOptionIdVersions**](docs/HasManyApi.md#getskuoptionidversions) | **Get** /sku_options/{skuOptionId}/versions | Retrieve the versions associated to the SKU option *HasManyApi* | [**GETStockItemIdAttachments**](docs/HasManyApi.md#getstockitemidattachments) | **Get** /stock_items/{stockItemId}/attachments | Retrieve the attachments associated to the stock item +*HasManyApi* | [**GETStockItemIdStockReservations**](docs/HasManyApi.md#getstockitemidstockreservations) | **Get** /stock_items/{stockItemId}/stock_reservations | Retrieve the stock reservations associated to the stock item +*HasManyApi* | [**GETStockItemIdVersions**](docs/HasManyApi.md#getstockitemidversions) | **Get** /stock_items/{stockItemId}/versions | Retrieve the versions associated to the stock item +*HasManyApi* | [**GETStockLineItemIdVersions**](docs/HasManyApi.md#getstocklineitemidversions) | **Get** /stock_line_items/{stockLineItemId}/versions | Retrieve the versions associated to the stock line item *HasManyApi* | [**GETStockLocationIdAttachments**](docs/HasManyApi.md#getstocklocationidattachments) | **Get** /stock_locations/{stockLocationId}/attachments | Retrieve the attachments associated to the stock location *HasManyApi* | [**GETStockLocationIdInventoryReturnLocations**](docs/HasManyApi.md#getstocklocationidinventoryreturnlocations) | **Get** /stock_locations/{stockLocationId}/inventory_return_locations | Retrieve the inventory return locations associated to the stock location *HasManyApi* | [**GETStockLocationIdInventoryStockLocations**](docs/HasManyApi.md#getstocklocationidinventorystocklocations) | **Get** /stock_locations/{stockLocationId}/inventory_stock_locations | Retrieve the inventory stock locations associated to the stock location *HasManyApi* | [**GETStockLocationIdStockItems**](docs/HasManyApi.md#getstocklocationidstockitems) | **Get** /stock_locations/{stockLocationId}/stock_items | Retrieve the stock items associated to the stock location *HasManyApi* | [**GETStockLocationIdStockTransfers**](docs/HasManyApi.md#getstocklocationidstocktransfers) | **Get** /stock_locations/{stockLocationId}/stock_transfers | Retrieve the stock transfers associated to the stock location +*HasManyApi* | [**GETStockLocationIdVersions**](docs/HasManyApi.md#getstocklocationidversions) | **Get** /stock_locations/{stockLocationId}/versions | Retrieve the versions associated to the stock location +*HasManyApi* | [**GETStockTransferIdAttachments**](docs/HasManyApi.md#getstocktransferidattachments) | **Get** /stock_transfers/{stockTransferId}/attachments | Retrieve the attachments associated to the stock transfer *HasManyApi* | [**GETStockTransferIdEvents**](docs/HasManyApi.md#getstocktransferidevents) | **Get** /stock_transfers/{stockTransferId}/events | Retrieve the events associated to the stock transfer +*HasManyApi* | [**GETStockTransferIdVersions**](docs/HasManyApi.md#getstocktransferidversions) | **Get** /stock_transfers/{stockTransferId}/versions | Retrieve the versions associated to the stock transfer *HasManyApi* | [**GETStripeGatewayIdPaymentMethods**](docs/HasManyApi.md#getstripegatewayidpaymentmethods) | **Get** /stripe_gateways/{stripeGatewayId}/payment_methods | Retrieve the payment methods associated to the stripe gateway *HasManyApi* | [**GETStripeGatewayIdStripePayments**](docs/HasManyApi.md#getstripegatewayidstripepayments) | **Get** /stripe_gateways/{stripeGatewayId}/stripe_payments | Retrieve the stripe payments associated to the stripe gateway +*HasManyApi* | [**GETStripeGatewayIdVersions**](docs/HasManyApi.md#getstripegatewayidversions) | **Get** /stripe_gateways/{stripeGatewayId}/versions | Retrieve the versions associated to the stripe gateway +*HasManyApi* | [**GETStripePaymentIdVersions**](docs/HasManyApi.md#getstripepaymentidversions) | **Get** /stripe_payments/{stripePaymentId}/versions | Retrieve the versions associated to the stripe payment *HasManyApi* | [**GETSubscriptionModelIdAttachments**](docs/HasManyApi.md#getsubscriptionmodelidattachments) | **Get** /subscription_models/{subscriptionModelId}/attachments | Retrieve the attachments associated to the subscription model *HasManyApi* | [**GETSubscriptionModelIdMarkets**](docs/HasManyApi.md#getsubscriptionmodelidmarkets) | **Get** /subscription_models/{subscriptionModelId}/markets | Retrieve the markets associated to the subscription model *HasManyApi* | [**GETSubscriptionModelIdOrderSubscriptions**](docs/HasManyApi.md#getsubscriptionmodelidordersubscriptions) | **Get** /subscription_models/{subscriptionModelId}/order_subscriptions | Retrieve the order subscriptions associated to the subscription model *HasManyApi* | [**GETTaxCalculatorIdAttachments**](docs/HasManyApi.md#gettaxcalculatoridattachments) | **Get** /tax_calculators/{taxCalculatorId}/attachments | Retrieve the attachments associated to the tax calculator *HasManyApi* | [**GETTaxCalculatorIdMarkets**](docs/HasManyApi.md#gettaxcalculatoridmarkets) | **Get** /tax_calculators/{taxCalculatorId}/markets | Retrieve the markets associated to the tax calculator +*HasManyApi* | [**GETTaxCalculatorIdVersions**](docs/HasManyApi.md#gettaxcalculatoridversions) | **Get** /tax_calculators/{taxCalculatorId}/versions | Retrieve the versions associated to the tax calculator *HasManyApi* | [**GETTaxCategoryIdAttachments**](docs/HasManyApi.md#gettaxcategoryidattachments) | **Get** /tax_categories/{taxCategoryId}/attachments | Retrieve the attachments associated to the tax category +*HasManyApi* | [**GETTaxCategoryIdVersions**](docs/HasManyApi.md#gettaxcategoryidversions) | **Get** /tax_categories/{taxCategoryId}/versions | Retrieve the versions associated to the tax category +*HasManyApi* | [**GETTaxRuleIdVersions**](docs/HasManyApi.md#gettaxruleidversions) | **Get** /tax_rules/{taxRuleId}/versions | Retrieve the versions associated to the tax rule *HasManyApi* | [**GETTaxjarAccountIdAttachments**](docs/HasManyApi.md#gettaxjaraccountidattachments) | **Get** /taxjar_accounts/{taxjarAccountId}/attachments | Retrieve the attachments associated to the taxjar account *HasManyApi* | [**GETTaxjarAccountIdMarkets**](docs/HasManyApi.md#gettaxjaraccountidmarkets) | **Get** /taxjar_accounts/{taxjarAccountId}/markets | Retrieve the markets associated to the taxjar account *HasManyApi* | [**GETTaxjarAccountIdTaxCategories**](docs/HasManyApi.md#gettaxjaraccountidtaxcategories) | **Get** /taxjar_accounts/{taxjarAccountId}/tax_categories | Retrieve the tax categories associated to the taxjar account +*HasManyApi* | [**GETTaxjarAccountIdVersions**](docs/HasManyApi.md#gettaxjaraccountidversions) | **Get** /taxjar_accounts/{taxjarAccountId}/versions | Retrieve the versions associated to the taxjar account +*HasManyApi* | [**GETTransactionIdAttachments**](docs/HasManyApi.md#gettransactionidattachments) | **Get** /transactions/{transactionId}/attachments | Retrieve the attachments associated to the transaction +*HasManyApi* | [**GETTransactionIdEvents**](docs/HasManyApi.md#gettransactionidevents) | **Get** /transactions/{transactionId}/events | Retrieve the events associated to the transaction +*HasManyApi* | [**GETTransactionIdVersions**](docs/HasManyApi.md#gettransactionidversions) | **Get** /transactions/{transactionId}/versions | Retrieve the versions associated to the transaction +*HasManyApi* | [**GETVoidIdAttachments**](docs/HasManyApi.md#getvoididattachments) | **Get** /voids/{voidId}/attachments | Retrieve the attachments associated to the void *HasManyApi* | [**GETVoidIdEvents**](docs/HasManyApi.md#getvoididevents) | **Get** /voids/{voidId}/events | Retrieve the events associated to the void +*HasManyApi* | [**GETVoidIdVersions**](docs/HasManyApi.md#getvoididversions) | **Get** /voids/{voidId}/versions | Retrieve the versions associated to the void *HasManyApi* | [**GETWebhookIdLastEventCallbacks**](docs/HasManyApi.md#getwebhookidlasteventcallbacks) | **Get** /webhooks/{webhookId}/last_event_callbacks | Retrieve the last event callbacks associated to the webhook +*HasManyApi* | [**GETWebhookIdVersions**](docs/HasManyApi.md#getwebhookidversions) | **Get** /webhooks/{webhookId}/versions | Retrieve the versions associated to the webhook +*HasManyApi* | [**GETWireTransferIdVersions**](docs/HasManyApi.md#getwiretransferidversions) | **Get** /wire_transfers/{wireTransferId}/versions | Retrieve the versions associated to the wire transfer *HasOneApi* | [**GETAddressIdGeocoder**](docs/HasOneApi.md#getaddressidgeocoder) | **Get** /addresses/{addressId}/geocoder | Retrieve the geocoder associated to the address *HasOneApi* | [**GETAdyenPaymentIdOrder**](docs/HasOneApi.md#getadyenpaymentidorder) | **Get** /adyen_payments/{adyenPaymentId}/order | Retrieve the order associated to the adyen payment *HasOneApi* | [**GETAdyenPaymentIdPaymentGateway**](docs/HasOneApi.md#getadyenpaymentidpaymentgateway) | **Get** /adyen_payments/{adyenPaymentId}/payment_gateway | Retrieve the payment gateway associated to the adyen payment @@ -622,11 +867,19 @@ Class | Method | HTTP request | Description *HasOneApi* | [**GETBraintreePaymentIdPaymentGateway**](docs/HasOneApi.md#getbraintreepaymentidpaymentgateway) | **Get** /braintree_payments/{braintreePaymentId}/payment_gateway | Retrieve the payment gateway associated to the braintree payment *HasOneApi* | [**GETBundleIdMarket**](docs/HasOneApi.md#getbundleidmarket) | **Get** /bundles/{bundleId}/market | Retrieve the market associated to the bundle *HasOneApi* | [**GETBundleIdSkuList**](docs/HasOneApi.md#getbundleidskulist) | **Get** /bundles/{bundleId}/sku_list | Retrieve the sku list associated to the bundle +*HasOneApi* | [**GETBuyXPayYPromotionIdCouponCodesPromotionRule**](docs/HasOneApi.md#getbuyxpayypromotionidcouponcodespromotionrule) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the buy x pay y promotion +*HasOneApi* | [**GETBuyXPayYPromotionIdCustomPromotionRule**](docs/HasOneApi.md#getbuyxpayypromotionidcustompromotionrule) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the buy x pay y promotion +*HasOneApi* | [**GETBuyXPayYPromotionIdMarket**](docs/HasOneApi.md#getbuyxpayypromotionidmarket) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/market | Retrieve the market associated to the buy x pay y promotion +*HasOneApi* | [**GETBuyXPayYPromotionIdOrderAmountPromotionRule**](docs/HasOneApi.md#getbuyxpayypromotionidorderamountpromotionrule) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the buy x pay y promotion +*HasOneApi* | [**GETBuyXPayYPromotionIdSkuList**](docs/HasOneApi.md#getbuyxpayypromotionidskulist) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/sku_list | Retrieve the sku list associated to the buy x pay y promotion +*HasOneApi* | [**GETBuyXPayYPromotionIdSkuListPromotionRule**](docs/HasOneApi.md#getbuyxpayypromotionidskulistpromotionrule) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the buy x pay y promotion *HasOneApi* | [**GETCaptureIdOrder**](docs/HasOneApi.md#getcaptureidorder) | **Get** /captures/{captureId}/order | Retrieve the order associated to the capture *HasOneApi* | [**GETCaptureIdReferenceAuthorization**](docs/HasOneApi.md#getcaptureidreferenceauthorization) | **Get** /captures/{captureId}/reference_authorization | Retrieve the reference authorization associated to the capture +*HasOneApi* | [**GETCaptureIdReturn**](docs/HasOneApi.md#getcaptureidreturn) | **Get** /captures/{captureId}/return | Retrieve the return associated to the capture *HasOneApi* | [**GETCarrierAccountIdMarket**](docs/HasOneApi.md#getcarrieraccountidmarket) | **Get** /carrier_accounts/{carrierAccountId}/market | Retrieve the market associated to the carrier account *HasOneApi* | [**GETCheckoutComPaymentIdOrder**](docs/HasOneApi.md#getcheckoutcompaymentidorder) | **Get** /checkout_com_payments/{checkoutComPaymentId}/order | Retrieve the order associated to the checkout.com payment *HasOneApi* | [**GETCheckoutComPaymentIdPaymentGateway**](docs/HasOneApi.md#getcheckoutcompaymentidpaymentgateway) | **Get** /checkout_com_payments/{checkoutComPaymentId}/payment_gateway | Retrieve the payment gateway associated to the checkout.com payment +*HasOneApi* | [**GETCouponIdCouponRecipient**](docs/HasOneApi.md#getcouponidcouponrecipient) | **Get** /coupons/{couponId}/coupon_recipient | Retrieve the coupon recipient associated to the coupon *HasOneApi* | [**GETCouponIdPromotionRule**](docs/HasOneApi.md#getcouponidpromotionrule) | **Get** /coupons/{couponId}/promotion_rule | Retrieve the promotion rule associated to the coupon *HasOneApi* | [**GETCouponRecipientIdCustomer**](docs/HasOneApi.md#getcouponrecipientidcustomer) | **Get** /coupon_recipients/{couponRecipientId}/customer | Retrieve the customer associated to the coupon recipient *HasOneApi* | [**GETCustomerAddressIdAddress**](docs/HasOneApi.md#getcustomeraddressidaddress) | **Get** /customer_addresses/{customerAddressId}/address | Retrieve the address associated to the customer address @@ -634,6 +887,7 @@ Class | Method | HTTP request | Description *HasOneApi* | [**GETCustomerIdCustomerGroup**](docs/HasOneApi.md#getcustomeridcustomergroup) | **Get** /customers/{customerId}/customer_group | Retrieve the customer group associated to the customer *HasOneApi* | [**GETCustomerPasswordResetIdCustomer**](docs/HasOneApi.md#getcustomerpasswordresetidcustomer) | **Get** /customer_password_resets/{customerPasswordResetId}/customer | Retrieve the customer associated to the customer password reset *HasOneApi* | [**GETCustomerPaymentSourceIdCustomer**](docs/HasOneApi.md#getcustomerpaymentsourceidcustomer) | **Get** /customer_payment_sources/{customerPaymentSourceId}/customer | Retrieve the customer associated to the customer payment source +*HasOneApi* | [**GETCustomerPaymentSourceIdPaymentMethod**](docs/HasOneApi.md#getcustomerpaymentsourceidpaymentmethod) | **Get** /customer_payment_sources/{customerPaymentSourceId}/payment_method | Retrieve the payment method associated to the customer payment source *HasOneApi* | [**GETCustomerSubscriptionIdCustomer**](docs/HasOneApi.md#getcustomersubscriptionidcustomer) | **Get** /customer_subscriptions/{customerSubscriptionId}/customer | Retrieve the customer associated to the customer subscription *HasOneApi* | [**GETDeliveryLeadTimeIdShippingMethod**](docs/HasOneApi.md#getdeliveryleadtimeidshippingmethod) | **Get** /delivery_lead_times/{deliveryLeadTimeId}/shipping_method | Retrieve the shipping method associated to the delivery lead time *HasOneApi* | [**GETDeliveryLeadTimeIdStockLocation**](docs/HasOneApi.md#getdeliveryleadtimeidstocklocation) | **Get** /delivery_lead_times/{deliveryLeadTimeId}/stock_location | Retrieve the stock location associated to the delivery lead time @@ -642,26 +896,35 @@ Class | Method | HTTP request | Description *HasOneApi* | [**GETExternalPaymentIdPaymentGateway**](docs/HasOneApi.md#getexternalpaymentidpaymentgateway) | **Get** /external_payments/{externalPaymentId}/payment_gateway | Retrieve the payment gateway associated to the external payment *HasOneApi* | [**GETExternalPaymentIdWallet**](docs/HasOneApi.md#getexternalpaymentidwallet) | **Get** /external_payments/{externalPaymentId}/wallet | Retrieve the wallet associated to the external payment *HasOneApi* | [**GETExternalPromotionIdCouponCodesPromotionRule**](docs/HasOneApi.md#getexternalpromotionidcouponcodespromotionrule) | **Get** /external_promotions/{externalPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the external promotion +*HasOneApi* | [**GETExternalPromotionIdCustomPromotionRule**](docs/HasOneApi.md#getexternalpromotionidcustompromotionrule) | **Get** /external_promotions/{externalPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the external promotion *HasOneApi* | [**GETExternalPromotionIdMarket**](docs/HasOneApi.md#getexternalpromotionidmarket) | **Get** /external_promotions/{externalPromotionId}/market | Retrieve the market associated to the external promotion *HasOneApi* | [**GETExternalPromotionIdOrderAmountPromotionRule**](docs/HasOneApi.md#getexternalpromotionidorderamountpromotionrule) | **Get** /external_promotions/{externalPromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the external promotion +*HasOneApi* | [**GETExternalPromotionIdSkuList**](docs/HasOneApi.md#getexternalpromotionidskulist) | **Get** /external_promotions/{externalPromotionId}/sku_list | Retrieve the sku list associated to the external promotion *HasOneApi* | [**GETExternalPromotionIdSkuListPromotionRule**](docs/HasOneApi.md#getexternalpromotionidskulistpromotionrule) | **Get** /external_promotions/{externalPromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the external promotion *HasOneApi* | [**GETFixedAmountPromotionIdCouponCodesPromotionRule**](docs/HasOneApi.md#getfixedamountpromotionidcouponcodespromotionrule) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the fixed amount promotion +*HasOneApi* | [**GETFixedAmountPromotionIdCustomPromotionRule**](docs/HasOneApi.md#getfixedamountpromotionidcustompromotionrule) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the fixed amount promotion *HasOneApi* | [**GETFixedAmountPromotionIdMarket**](docs/HasOneApi.md#getfixedamountpromotionidmarket) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/market | Retrieve the market associated to the fixed amount promotion *HasOneApi* | [**GETFixedAmountPromotionIdOrderAmountPromotionRule**](docs/HasOneApi.md#getfixedamountpromotionidorderamountpromotionrule) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the fixed amount promotion +*HasOneApi* | [**GETFixedAmountPromotionIdSkuList**](docs/HasOneApi.md#getfixedamountpromotionidskulist) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/sku_list | Retrieve the sku list associated to the fixed amount promotion *HasOneApi* | [**GETFixedAmountPromotionIdSkuListPromotionRule**](docs/HasOneApi.md#getfixedamountpromotionidskulistpromotionrule) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the fixed amount promotion *HasOneApi* | [**GETFixedPricePromotionIdCouponCodesPromotionRule**](docs/HasOneApi.md#getfixedpricepromotionidcouponcodespromotionrule) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the fixed price promotion +*HasOneApi* | [**GETFixedPricePromotionIdCustomPromotionRule**](docs/HasOneApi.md#getfixedpricepromotionidcustompromotionrule) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the fixed price promotion *HasOneApi* | [**GETFixedPricePromotionIdMarket**](docs/HasOneApi.md#getfixedpricepromotionidmarket) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/market | Retrieve the market associated to the fixed price promotion *HasOneApi* | [**GETFixedPricePromotionIdOrderAmountPromotionRule**](docs/HasOneApi.md#getfixedpricepromotionidorderamountpromotionrule) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the fixed price promotion *HasOneApi* | [**GETFixedPricePromotionIdSkuList**](docs/HasOneApi.md#getfixedpricepromotionidskulist) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/sku_list | Retrieve the sku list associated to the fixed price promotion *HasOneApi* | [**GETFixedPricePromotionIdSkuListPromotionRule**](docs/HasOneApi.md#getfixedpricepromotionidskulistpromotionrule) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the fixed price promotion +*HasOneApi* | [**GETFlexPromotionIdCouponCodesPromotionRule**](docs/HasOneApi.md#getflexpromotionidcouponcodespromotionrule) | **Get** /flex_promotions/{flexPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the flex promotion *HasOneApi* | [**GETFreeGiftPromotionIdCouponCodesPromotionRule**](docs/HasOneApi.md#getfreegiftpromotionidcouponcodespromotionrule) | **Get** /free_gift_promotions/{freeGiftPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the free gift promotion +*HasOneApi* | [**GETFreeGiftPromotionIdCustomPromotionRule**](docs/HasOneApi.md#getfreegiftpromotionidcustompromotionrule) | **Get** /free_gift_promotions/{freeGiftPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the free gift promotion *HasOneApi* | [**GETFreeGiftPromotionIdMarket**](docs/HasOneApi.md#getfreegiftpromotionidmarket) | **Get** /free_gift_promotions/{freeGiftPromotionId}/market | Retrieve the market associated to the free gift promotion *HasOneApi* | [**GETFreeGiftPromotionIdOrderAmountPromotionRule**](docs/HasOneApi.md#getfreegiftpromotionidorderamountpromotionrule) | **Get** /free_gift_promotions/{freeGiftPromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the free gift promotion *HasOneApi* | [**GETFreeGiftPromotionIdSkuList**](docs/HasOneApi.md#getfreegiftpromotionidskulist) | **Get** /free_gift_promotions/{freeGiftPromotionId}/sku_list | Retrieve the sku list associated to the free gift promotion *HasOneApi* | [**GETFreeGiftPromotionIdSkuListPromotionRule**](docs/HasOneApi.md#getfreegiftpromotionidskulistpromotionrule) | **Get** /free_gift_promotions/{freeGiftPromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the free gift promotion *HasOneApi* | [**GETFreeShippingPromotionIdCouponCodesPromotionRule**](docs/HasOneApi.md#getfreeshippingpromotionidcouponcodespromotionrule) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the free shipping promotion +*HasOneApi* | [**GETFreeShippingPromotionIdCustomPromotionRule**](docs/HasOneApi.md#getfreeshippingpromotionidcustompromotionrule) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the free shipping promotion *HasOneApi* | [**GETFreeShippingPromotionIdMarket**](docs/HasOneApi.md#getfreeshippingpromotionidmarket) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/market | Retrieve the market associated to the free shipping promotion *HasOneApi* | [**GETFreeShippingPromotionIdOrderAmountPromotionRule**](docs/HasOneApi.md#getfreeshippingpromotionidorderamountpromotionrule) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the free shipping promotion +*HasOneApi* | [**GETFreeShippingPromotionIdSkuList**](docs/HasOneApi.md#getfreeshippingpromotionidskulist) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/sku_list | Retrieve the sku list associated to the free shipping promotion *HasOneApi* | [**GETFreeShippingPromotionIdSkuListPromotionRule**](docs/HasOneApi.md#getfreeshippingpromotionidskulistpromotionrule) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the free shipping promotion *HasOneApi* | [**GETGiftCardIdGiftCardRecipient**](docs/HasOneApi.md#getgiftcardidgiftcardrecipient) | **Get** /gift_cards/{giftCardId}/gift_card_recipient | Retrieve the gift card recipient associated to the gift card *HasOneApi* | [**GETGiftCardIdMarket**](docs/HasOneApi.md#getgiftcardidmarket) | **Get** /gift_cards/{giftCardId}/market | Retrieve the market associated to the gift card @@ -678,7 +941,9 @@ Class | Method | HTTP request | Description *HasOneApi* | [**GETLineItemIdOrder**](docs/HasOneApi.md#getlineitemidorder) | **Get** /line_items/{lineItemId}/order | Retrieve the order associated to the line item *HasOneApi* | [**GETLineItemOptionIdLineItem**](docs/HasOneApi.md#getlineitemoptionidlineitem) | **Get** /line_item_options/{lineItemOptionId}/line_item | Retrieve the line item associated to the line item option *HasOneApi* | [**GETLineItemOptionIdSkuOption**](docs/HasOneApi.md#getlineitemoptionidskuoption) | **Get** /line_item_options/{lineItemOptionId}/sku_option | Retrieve the sku option associated to the line item option +*HasOneApi* | [**GETMarketIdBasePriceList**](docs/HasOneApi.md#getmarketidbasepricelist) | **Get** /markets/{marketId}/base_price_list | Retrieve the base price list associated to the market *HasOneApi* | [**GETMarketIdCustomerGroup**](docs/HasOneApi.md#getmarketidcustomergroup) | **Get** /markets/{marketId}/customer_group | Retrieve the customer group associated to the market +*HasOneApi* | [**GETMarketIdGeocoder**](docs/HasOneApi.md#getmarketidgeocoder) | **Get** /markets/{marketId}/geocoder | Retrieve the geocoder associated to the market *HasOneApi* | [**GETMarketIdInventoryModel**](docs/HasOneApi.md#getmarketidinventorymodel) | **Get** /markets/{marketId}/inventory_model | Retrieve the inventory model associated to the market *HasOneApi* | [**GETMarketIdMerchant**](docs/HasOneApi.md#getmarketidmerchant) | **Get** /markets/{marketId}/merchant | Retrieve the merchant associated to the market *HasOneApi* | [**GETMarketIdPriceList**](docs/HasOneApi.md#getmarketidpricelist) | **Get** /markets/{marketId}/price_list | Retrieve the price list associated to the market @@ -693,6 +958,7 @@ Class | Method | HTTP request | Description *HasOneApi* | [**GETOrderIdBillingAddress**](docs/HasOneApi.md#getorderidbillingaddress) | **Get** /orders/{orderId}/billing_address | Retrieve the billing address associated to the order *HasOneApi* | [**GETOrderIdCustomer**](docs/HasOneApi.md#getorderidcustomer) | **Get** /orders/{orderId}/customer | Retrieve the customer associated to the order *HasOneApi* | [**GETOrderIdMarket**](docs/HasOneApi.md#getorderidmarket) | **Get** /orders/{orderId}/market | Retrieve the market associated to the order +*HasOneApi* | [**GETOrderIdOrderSubscription**](docs/HasOneApi.md#getorderidordersubscription) | **Get** /orders/{orderId}/order_subscription | Retrieve the order subscription associated to the order *HasOneApi* | [**GETOrderIdPaymentMethod**](docs/HasOneApi.md#getorderidpaymentmethod) | **Get** /orders/{orderId}/payment_method | Retrieve the payment method associated to the order *HasOneApi* | [**GETOrderIdShippingAddress**](docs/HasOneApi.md#getorderidshippingaddress) | **Get** /orders/{orderId}/shipping_address | Retrieve the shipping address associated to the order *HasOneApi* | [**GETOrderSubscriptionIdCustomer**](docs/HasOneApi.md#getordersubscriptionidcustomer) | **Get** /order_subscriptions/{orderSubscriptionId}/customer | Retrieve the customer associated to the order subscription @@ -701,7 +967,7 @@ Class | Method | HTTP request | Description *HasOneApi* | [**GETOrderSubscriptionIdSourceOrder**](docs/HasOneApi.md#getordersubscriptionidsourceorder) | **Get** /order_subscriptions/{orderSubscriptionId}/source_order | Retrieve the source order associated to the order subscription *HasOneApi* | [**GETOrderSubscriptionIdSubscriptionModel**](docs/HasOneApi.md#getordersubscriptionidsubscriptionmodel) | **Get** /order_subscriptions/{orderSubscriptionId}/subscription_model | Retrieve the subscription model associated to the order subscription *HasOneApi* | [**GETOrderSubscriptionItemIdOrderSubscription**](docs/HasOneApi.md#getordersubscriptionitemidordersubscription) | **Get** /order_subscription_items/{orderSubscriptionItemId}/order_subscription | Retrieve the order subscription associated to the order subscription item -*HasOneApi* | [**GETOrderValidationRuleIdMarket**](docs/HasOneApi.md#getordervalidationruleidmarket) | **Get** /order_validation_rules/{orderValidationRuleId}/market | Retrieve the market associated to the order validation rule +*HasOneApi* | [**GETOrderSubscriptionItemIdSourceLineItem**](docs/HasOneApi.md#getordersubscriptionitemidsourcelineitem) | **Get** /order_subscription_items/{orderSubscriptionItemId}/source_line_item | Retrieve the source line item associated to the order subscription item *HasOneApi* | [**GETPackageIdStockLocation**](docs/HasOneApi.md#getpackageidstocklocation) | **Get** /packages/{packageId}/stock_location | Retrieve the stock location associated to the package *HasOneApi* | [**GETParcelIdPackage**](docs/HasOneApi.md#getparcelidpackage) | **Get** /parcels/{parcelId}/package | Retrieve the package associated to the parcel *HasOneApi* | [**GETParcelIdShipment**](docs/HasOneApi.md#getparcelidshipment) | **Get** /parcels/{parcelId}/shipment | Retrieve the shipment associated to the parcel @@ -709,37 +975,50 @@ Class | Method | HTTP request | Description *HasOneApi* | [**GETParcelLineItemIdStockLineItem**](docs/HasOneApi.md#getparcellineitemidstocklineitem) | **Get** /parcel_line_items/{parcelLineItemId}/stock_line_item | Retrieve the stock line item associated to the parcel line item *HasOneApi* | [**GETPaymentMethodIdMarket**](docs/HasOneApi.md#getpaymentmethodidmarket) | **Get** /payment_methods/{paymentMethodId}/market | Retrieve the market associated to the payment method *HasOneApi* | [**GETPaymentMethodIdPaymentGateway**](docs/HasOneApi.md#getpaymentmethodidpaymentgateway) | **Get** /payment_methods/{paymentMethodId}/payment_gateway | Retrieve the payment gateway associated to the payment method +*HasOneApi* | [**GETPaymentOptionIdOrder**](docs/HasOneApi.md#getpaymentoptionidorder) | **Get** /payment_options/{paymentOptionId}/order | Retrieve the order associated to the payment option *HasOneApi* | [**GETPaypalPaymentIdOrder**](docs/HasOneApi.md#getpaypalpaymentidorder) | **Get** /paypal_payments/{paypalPaymentId}/order | Retrieve the order associated to the paypal payment *HasOneApi* | [**GETPaypalPaymentIdPaymentGateway**](docs/HasOneApi.md#getpaypalpaymentidpaymentgateway) | **Get** /paypal_payments/{paypalPaymentId}/payment_gateway | Retrieve the payment gateway associated to the paypal payment *HasOneApi* | [**GETPercentageDiscountPromotionIdCouponCodesPromotionRule**](docs/HasOneApi.md#getpercentagediscountpromotionidcouponcodespromotionrule) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the percentage discount promotion +*HasOneApi* | [**GETPercentageDiscountPromotionIdCustomPromotionRule**](docs/HasOneApi.md#getpercentagediscountpromotionidcustompromotionrule) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the percentage discount promotion *HasOneApi* | [**GETPercentageDiscountPromotionIdMarket**](docs/HasOneApi.md#getpercentagediscountpromotionidmarket) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/market | Retrieve the market associated to the percentage discount promotion *HasOneApi* | [**GETPercentageDiscountPromotionIdOrderAmountPromotionRule**](docs/HasOneApi.md#getpercentagediscountpromotionidorderamountpromotionrule) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the percentage discount promotion *HasOneApi* | [**GETPercentageDiscountPromotionIdSkuList**](docs/HasOneApi.md#getpercentagediscountpromotionidskulist) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/sku_list | Retrieve the sku list associated to the percentage discount promotion *HasOneApi* | [**GETPercentageDiscountPromotionIdSkuListPromotionRule**](docs/HasOneApi.md#getpercentagediscountpromotionidskulistpromotionrule) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the percentage discount promotion *HasOneApi* | [**GETPriceFrequencyTierIdPrice**](docs/HasOneApi.md#getpricefrequencytieridprice) | **Get** /price_frequency_tiers/{priceFrequencyTierId}/price | Retrieve the price associated to the price frequency tier +*HasOneApi* | [**GETPriceIdJwtCustomer**](docs/HasOneApi.md#getpriceidjwtcustomer) | **Get** /prices/{priceId}/jwt_customer | Retrieve the jwt customer associated to the price *HasOneApi* | [**GETPriceIdPriceList**](docs/HasOneApi.md#getpriceidpricelist) | **Get** /prices/{priceId}/price_list | Retrieve the price list associated to the price *HasOneApi* | [**GETPriceIdSku**](docs/HasOneApi.md#getpriceidsku) | **Get** /prices/{priceId}/sku | Retrieve the sku associated to the price +*HasOneApi* | [**GETPriceListSchedulerIdMarket**](docs/HasOneApi.md#getpricelistscheduleridmarket) | **Get** /price_list_schedulers/{priceListSchedulerId}/market | Retrieve the market associated to the price list scheduler +*HasOneApi* | [**GETPriceListSchedulerIdPriceList**](docs/HasOneApi.md#getpricelistscheduleridpricelist) | **Get** /price_list_schedulers/{priceListSchedulerId}/price_list | Retrieve the price list associated to the price list scheduler *HasOneApi* | [**GETPriceTierIdPrice**](docs/HasOneApi.md#getpricetieridprice) | **Get** /price_tiers/{priceTierId}/price | Retrieve the price associated to the price tier *HasOneApi* | [**GETPriceVolumeTierIdPrice**](docs/HasOneApi.md#getpricevolumetieridprice) | **Get** /price_volume_tiers/{priceVolumeTierId}/price | Retrieve the price associated to the price volume tier *HasOneApi* | [**GETPromotionIdCouponCodesPromotionRule**](docs/HasOneApi.md#getpromotionidcouponcodespromotionrule) | **Get** /promotions/{promotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the promotion +*HasOneApi* | [**GETPromotionIdCustomPromotionRule**](docs/HasOneApi.md#getpromotionidcustompromotionrule) | **Get** /promotions/{promotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the promotion *HasOneApi* | [**GETPromotionIdMarket**](docs/HasOneApi.md#getpromotionidmarket) | **Get** /promotions/{promotionId}/market | Retrieve the market associated to the promotion *HasOneApi* | [**GETPromotionIdOrderAmountPromotionRule**](docs/HasOneApi.md#getpromotionidorderamountpromotionrule) | **Get** /promotions/{promotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the promotion +*HasOneApi* | [**GETPromotionIdSkuList**](docs/HasOneApi.md#getpromotionidskulist) | **Get** /promotions/{promotionId}/sku_list | Retrieve the sku list associated to the promotion *HasOneApi* | [**GETPromotionIdSkuListPromotionRule**](docs/HasOneApi.md#getpromotionidskulistpromotionrule) | **Get** /promotions/{promotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the promotion *HasOneApi* | [**GETRecurringOrderCopyIdOrderSubscription**](docs/HasOneApi.md#getrecurringordercopyidordersubscription) | **Get** /recurring_order_copies/{recurringOrderCopyId}/order_subscription | Retrieve the order subscription associated to the recurring order copy *HasOneApi* | [**GETRecurringOrderCopyIdSourceOrder**](docs/HasOneApi.md#getrecurringordercopyidsourceorder) | **Get** /recurring_order_copies/{recurringOrderCopyId}/source_order | Retrieve the source order associated to the recurring order copy *HasOneApi* | [**GETRecurringOrderCopyIdTargetOrder**](docs/HasOneApi.md#getrecurringordercopyidtargetorder) | **Get** /recurring_order_copies/{recurringOrderCopyId}/target_order | Retrieve the target order associated to the recurring order copy *HasOneApi* | [**GETRefundIdOrder**](docs/HasOneApi.md#getrefundidorder) | **Get** /refunds/{refundId}/order | Retrieve the order associated to the refund *HasOneApi* | [**GETRefundIdReferenceCapture**](docs/HasOneApi.md#getrefundidreferencecapture) | **Get** /refunds/{refundId}/reference_capture | Retrieve the reference capture associated to the refund +*HasOneApi* | [**GETRefundIdReturn**](docs/HasOneApi.md#getrefundidreturn) | **Get** /refunds/{refundId}/return | Retrieve the return associated to the refund +*HasOneApi* | [**GETReservedStockIdSku**](docs/HasOneApi.md#getreservedstockidsku) | **Get** /reserved_stocks/{reservedStockId}/sku | Retrieve the sku associated to the reserved stock +*HasOneApi* | [**GETReservedStockIdStockItem**](docs/HasOneApi.md#getreservedstockidstockitem) | **Get** /reserved_stocks/{reservedStockId}/stock_item | Retrieve the stock item associated to the reserved stock *HasOneApi* | [**GETReturnIdCustomer**](docs/HasOneApi.md#getreturnidcustomer) | **Get** /returns/{returnId}/customer | Retrieve the customer associated to the return *HasOneApi* | [**GETReturnIdDestinationAddress**](docs/HasOneApi.md#getreturniddestinationaddress) | **Get** /returns/{returnId}/destination_address | Retrieve the destination address associated to the return *HasOneApi* | [**GETReturnIdOrder**](docs/HasOneApi.md#getreturnidorder) | **Get** /returns/{returnId}/order | Retrieve the order associated to the return *HasOneApi* | [**GETReturnIdOriginAddress**](docs/HasOneApi.md#getreturnidoriginaddress) | **Get** /returns/{returnId}/origin_address | Retrieve the origin address associated to the return +*HasOneApi* | [**GETReturnIdReferenceCapture**](docs/HasOneApi.md#getreturnidreferencecapture) | **Get** /returns/{returnId}/reference_capture | Retrieve the reference capture associated to the return +*HasOneApi* | [**GETReturnIdReferenceRefund**](docs/HasOneApi.md#getreturnidreferencerefund) | **Get** /returns/{returnId}/reference_refund | Retrieve the reference refund associated to the return *HasOneApi* | [**GETReturnIdStockLocation**](docs/HasOneApi.md#getreturnidstocklocation) | **Get** /returns/{returnId}/stock_location | Retrieve the stock location associated to the return *HasOneApi* | [**GETReturnLineItemIdLineItem**](docs/HasOneApi.md#getreturnlineitemidlineitem) | **Get** /return_line_items/{returnLineItemId}/line_item | Retrieve the line item associated to the return line item *HasOneApi* | [**GETReturnLineItemIdReturn**](docs/HasOneApi.md#getreturnlineitemidreturn) | **Get** /return_line_items/{returnLineItemId}/return | Retrieve the return associated to the return line item *HasOneApi* | [**GETSatispayPaymentIdOrder**](docs/HasOneApi.md#getsatispaypaymentidorder) | **Get** /satispay_payments/{satispayPaymentId}/order | Retrieve the order associated to the satispay payment *HasOneApi* | [**GETSatispayPaymentIdPaymentGateway**](docs/HasOneApi.md#getsatispaypaymentidpaymentgateway) | **Get** /satispay_payments/{satispayPaymentId}/payment_gateway | Retrieve the payment gateway associated to the satispay payment *HasOneApi* | [**GETShipmentIdDeliveryLeadTime**](docs/HasOneApi.md#getshipmentiddeliveryleadtime) | **Get** /shipments/{shipmentId}/delivery_lead_time | Retrieve the delivery lead time associated to the shipment +*HasOneApi* | [**GETShipmentIdInventoryStockLocation**](docs/HasOneApi.md#getshipmentidinventorystocklocation) | **Get** /shipments/{shipmentId}/inventory_stock_location | Retrieve the inventory stock location associated to the shipment *HasOneApi* | [**GETShipmentIdOrder**](docs/HasOneApi.md#getshipmentidorder) | **Get** /shipments/{shipmentId}/order | Retrieve the order associated to the shipment *HasOneApi* | [**GETShipmentIdOriginAddress**](docs/HasOneApi.md#getshipmentidoriginaddress) | **Get** /shipments/{shipmentId}/origin_address | Retrieve the origin address associated to the shipment *HasOneApi* | [**GETShipmentIdShippingAddress**](docs/HasOneApi.md#getshipmentidshippingaddress) | **Get** /shipments/{shipmentId}/shipping_address | Retrieve the shipping address associated to the shipment @@ -753,23 +1032,35 @@ Class | Method | HTTP request | Description *HasOneApi* | [**GETShippingMethodIdStockLocation**](docs/HasOneApi.md#getshippingmethodidstocklocation) | **Get** /shipping_methods/{shippingMethodId}/stock_location | Retrieve the stock location associated to the shipping method *HasOneApi* | [**GETShippingMethodTierIdShippingMethod**](docs/HasOneApi.md#getshippingmethodtieridshippingmethod) | **Get** /shipping_method_tiers/{shippingMethodTierId}/shipping_method | Retrieve the shipping method associated to the shipping method tier *HasOneApi* | [**GETShippingWeightTierIdShippingMethod**](docs/HasOneApi.md#getshippingweighttieridshippingmethod) | **Get** /shipping_weight_tiers/{shippingWeightTierId}/shipping_method | Retrieve the shipping method associated to the shipping weight tier +*HasOneApi* | [**GETSkuIdJwtCustomer**](docs/HasOneApi.md#getskuidjwtcustomer) | **Get** /skus/{skuId}/jwt_customer | Retrieve the jwt customer associated to the SKU *HasOneApi* | [**GETSkuIdShippingCategory**](docs/HasOneApi.md#getskuidshippingcategory) | **Get** /skus/{skuId}/shipping_category | Retrieve the shipping category associated to the SKU *HasOneApi* | [**GETSkuListIdCustomer**](docs/HasOneApi.md#getskulistidcustomer) | **Get** /sku_lists/{skuListId}/customer | Retrieve the customer associated to the SKU list *HasOneApi* | [**GETSkuListItemIdSku**](docs/HasOneApi.md#getskulistitemidsku) | **Get** /sku_list_items/{skuListItemId}/sku | Retrieve the sku associated to the SKU list item *HasOneApi* | [**GETSkuListItemIdSkuList**](docs/HasOneApi.md#getskulistitemidskulist) | **Get** /sku_list_items/{skuListItemId}/sku_list | Retrieve the sku list associated to the SKU list item *HasOneApi* | [**GETSkuListPromotionRuleIdSkuList**](docs/HasOneApi.md#getskulistpromotionruleidskulist) | **Get** /sku_list_promotion_rules/{skuListPromotionRuleId}/sku_list | Retrieve the sku list associated to the SKU list promotion rule *HasOneApi* | [**GETSkuOptionIdMarket**](docs/HasOneApi.md#getskuoptionidmarket) | **Get** /sku_options/{skuOptionId}/market | Retrieve the market associated to the SKU option +*HasOneApi* | [**GETStockItemIdReservedStock**](docs/HasOneApi.md#getstockitemidreservedstock) | **Get** /stock_items/{stockItemId}/reserved_stock | Retrieve the reserved stock associated to the stock item *HasOneApi* | [**GETStockItemIdSku**](docs/HasOneApi.md#getstockitemidsku) | **Get** /stock_items/{stockItemId}/sku | Retrieve the sku associated to the stock item *HasOneApi* | [**GETStockItemIdStockLocation**](docs/HasOneApi.md#getstockitemidstocklocation) | **Get** /stock_items/{stockItemId}/stock_location | Retrieve the stock location associated to the stock item *HasOneApi* | [**GETStockLineItemIdLineItem**](docs/HasOneApi.md#getstocklineitemidlineitem) | **Get** /stock_line_items/{stockLineItemId}/line_item | Retrieve the line item associated to the stock line item *HasOneApi* | [**GETStockLineItemIdShipment**](docs/HasOneApi.md#getstocklineitemidshipment) | **Get** /stock_line_items/{stockLineItemId}/shipment | Retrieve the shipment associated to the stock line item +*HasOneApi* | [**GETStockLineItemIdSku**](docs/HasOneApi.md#getstocklineitemidsku) | **Get** /stock_line_items/{stockLineItemId}/sku | Retrieve the sku associated to the stock line item *HasOneApi* | [**GETStockLineItemIdStockItem**](docs/HasOneApi.md#getstocklineitemidstockitem) | **Get** /stock_line_items/{stockLineItemId}/stock_item | Retrieve the stock item associated to the stock line item +*HasOneApi* | [**GETStockLineItemIdStockReservation**](docs/HasOneApi.md#getstocklineitemidstockreservation) | **Get** /stock_line_items/{stockLineItemId}/stock_reservation | Retrieve the stock reservation associated to the stock line item *HasOneApi* | [**GETStockLocationIdAddress**](docs/HasOneApi.md#getstocklocationidaddress) | **Get** /stock_locations/{stockLocationId}/address | Retrieve the address associated to the stock location +*HasOneApi* | [**GETStockReservationIdLineItem**](docs/HasOneApi.md#getstockreservationidlineitem) | **Get** /stock_reservations/{stockReservationId}/line_item | Retrieve the line item associated to the stock reservation +*HasOneApi* | [**GETStockReservationIdOrder**](docs/HasOneApi.md#getstockreservationidorder) | **Get** /stock_reservations/{stockReservationId}/order | Retrieve the order associated to the stock reservation +*HasOneApi* | [**GETStockReservationIdReservedStock**](docs/HasOneApi.md#getstockreservationidreservedstock) | **Get** /stock_reservations/{stockReservationId}/reserved_stock | Retrieve the reserved stock associated to the stock reservation +*HasOneApi* | [**GETStockReservationIdSku**](docs/HasOneApi.md#getstockreservationidsku) | **Get** /stock_reservations/{stockReservationId}/sku | Retrieve the sku associated to the stock reservation +*HasOneApi* | [**GETStockReservationIdStockItem**](docs/HasOneApi.md#getstockreservationidstockitem) | **Get** /stock_reservations/{stockReservationId}/stock_item | Retrieve the stock item associated to the stock reservation +*HasOneApi* | [**GETStockReservationIdStockLineItem**](docs/HasOneApi.md#getstockreservationidstocklineitem) | **Get** /stock_reservations/{stockReservationId}/stock_line_item | Retrieve the stock line item associated to the stock reservation +*HasOneApi* | [**GETStockReservationIdStockTransfer**](docs/HasOneApi.md#getstockreservationidstocktransfer) | **Get** /stock_reservations/{stockReservationId}/stock_transfer | Retrieve the stock transfer associated to the stock reservation *HasOneApi* | [**GETStockTransferIdDestinationStockLocation**](docs/HasOneApi.md#getstocktransferiddestinationstocklocation) | **Get** /stock_transfers/{stockTransferId}/destination_stock_location | Retrieve the destination stock location associated to the stock transfer *HasOneApi* | [**GETStockTransferIdLineItem**](docs/HasOneApi.md#getstocktransferidlineitem) | **Get** /stock_transfers/{stockTransferId}/line_item | Retrieve the line item associated to the stock transfer *HasOneApi* | [**GETStockTransferIdOriginStockLocation**](docs/HasOneApi.md#getstocktransferidoriginstocklocation) | **Get** /stock_transfers/{stockTransferId}/origin_stock_location | Retrieve the origin stock location associated to the stock transfer *HasOneApi* | [**GETStockTransferIdShipment**](docs/HasOneApi.md#getstocktransferidshipment) | **Get** /stock_transfers/{stockTransferId}/shipment | Retrieve the shipment associated to the stock transfer *HasOneApi* | [**GETStockTransferIdSku**](docs/HasOneApi.md#getstocktransferidsku) | **Get** /stock_transfers/{stockTransferId}/sku | Retrieve the sku associated to the stock transfer +*HasOneApi* | [**GETStockTransferIdStockReservation**](docs/HasOneApi.md#getstocktransferidstockreservation) | **Get** /stock_transfers/{stockTransferId}/stock_reservation | Retrieve the stock reservation associated to the stock transfer *HasOneApi* | [**GETStripePaymentIdOrder**](docs/HasOneApi.md#getstripepaymentidorder) | **Get** /stripe_payments/{stripePaymentId}/order | Retrieve the order associated to the stripe payment *HasOneApi* | [**GETStripePaymentIdPaymentGateway**](docs/HasOneApi.md#getstripepaymentidpaymentgateway) | **Get** /stripe_payments/{stripePaymentId}/payment_gateway | Retrieve the payment gateway associated to the stripe payment *HasOneApi* | [**GETTaxCategoryIdSku**](docs/HasOneApi.md#gettaxcategoryidsku) | **Get** /tax_categories/{taxCategoryId}/sku | Retrieve the sku associated to the tax category @@ -781,6 +1072,7 @@ Class | Method | HTTP request | Description *ImportsApi* | [**DELETEImportsImportId**](docs/ImportsApi.md#deleteimportsimportid) | **Delete** /imports/{importId} | Delete an import *ImportsApi* | [**GETImports**](docs/ImportsApi.md#getimports) | **Get** /imports | List all imports *ImportsApi* | [**GETImportsImportId**](docs/ImportsApi.md#getimportsimportid) | **Get** /imports/{importId} | Retrieve an import +*ImportsApi* | [**PATCHImportsImportId**](docs/ImportsApi.md#patchimportsimportid) | **Patch** /imports/{importId} | Update an import *ImportsApi* | [**POSTImports**](docs/ImportsApi.md#postimports) | **Post** /imports | Create an import *InStockSubscriptionsApi* | [**DELETEInStockSubscriptionsInStockSubscriptionId**](docs/InStockSubscriptionsApi.md#deleteinstocksubscriptionsinstocksubscriptionid) | **Delete** /in_stock_subscriptions/{inStockSubscriptionId} | Delete an in stock subscription *InStockSubscriptionsApi* | [**GETInStockSubscriptions**](docs/InStockSubscriptionsApi.md#getinstocksubscriptions) | **Get** /in_stock_subscriptions | List all in stock subscriptions @@ -806,6 +1098,7 @@ Class | Method | HTTP request | Description *InventoryStockLocationsApi* | [**GETInventoryModelIdInventoryStockLocations**](docs/InventoryStockLocationsApi.md#getinventorymodelidinventorystocklocations) | **Get** /inventory_models/{inventoryModelId}/inventory_stock_locations | Retrieve the inventory stock locations associated to the inventory model *InventoryStockLocationsApi* | [**GETInventoryStockLocations**](docs/InventoryStockLocationsApi.md#getinventorystocklocations) | **Get** /inventory_stock_locations | List all inventory stock locations *InventoryStockLocationsApi* | [**GETInventoryStockLocationsInventoryStockLocationId**](docs/InventoryStockLocationsApi.md#getinventorystocklocationsinventorystocklocationid) | **Get** /inventory_stock_locations/{inventoryStockLocationId} | Retrieve an inventory stock location +*InventoryStockLocationsApi* | [**GETShipmentIdInventoryStockLocation**](docs/InventoryStockLocationsApi.md#getshipmentidinventorystocklocation) | **Get** /shipments/{shipmentId}/inventory_stock_location | Retrieve the inventory stock location associated to the shipment *InventoryStockLocationsApi* | [**GETStockLocationIdInventoryStockLocations**](docs/InventoryStockLocationsApi.md#getstocklocationidinventorystocklocations) | **Get** /stock_locations/{stockLocationId}/inventory_stock_locations | Retrieve the inventory stock locations associated to the stock location *InventoryStockLocationsApi* | [**PATCHInventoryStockLocationsInventoryStockLocationId**](docs/InventoryStockLocationsApi.md#patchinventorystocklocationsinventorystocklocationid) | **Patch** /inventory_stock_locations/{inventoryStockLocationId} | Update an inventory stock location *InventoryStockLocationsApi* | [**POSTInventoryStockLocations**](docs/InventoryStockLocationsApi.md#postinventorystocklocations) | **Post** /inventory_stock_locations | Create an inventory stock location @@ -824,6 +1117,7 @@ Class | Method | HTTP request | Description *LineItemOptionsApi* | [**GETLineItemIdLineItemOptions**](docs/LineItemOptionsApi.md#getlineitemidlineitemoptions) | **Get** /line_items/{lineItemId}/line_item_options | Retrieve the line item options associated to the line item *LineItemOptionsApi* | [**GETLineItemOptions**](docs/LineItemOptionsApi.md#getlineitemoptions) | **Get** /line_item_options | List all line item options *LineItemOptionsApi* | [**GETLineItemOptionsLineItemOptionId**](docs/LineItemOptionsApi.md#getlineitemoptionslineitemoptionid) | **Get** /line_item_options/{lineItemOptionId} | Retrieve a line item option +*LineItemOptionsApi* | [**GETOrderIdLineItemOptions**](docs/LineItemOptionsApi.md#getorderidlineitemoptions) | **Get** /orders/{orderId}/line_item_options | Retrieve the line item options associated to the order *LineItemOptionsApi* | [**PATCHLineItemOptionsLineItemOptionId**](docs/LineItemOptionsApi.md#patchlineitemoptionslineitemoptionid) | **Patch** /line_item_options/{lineItemOptionId} | Update a line item option *LineItemOptionsApi* | [**POSTLineItemOptions**](docs/LineItemOptionsApi.md#postlineitemoptions) | **Post** /line_item_options | Create a line item option *LineItemsApi* | [**DELETELineItemsLineItemId**](docs/LineItemsApi.md#deletelineitemslineitemid) | **Delete** /line_items/{lineItemId} | Delete a line item @@ -831,11 +1125,22 @@ Class | Method | HTTP request | Description *LineItemsApi* | [**GETLineItems**](docs/LineItemsApi.md#getlineitems) | **Get** /line_items | List all line items *LineItemsApi* | [**GETLineItemsLineItemId**](docs/LineItemsApi.md#getlineitemslineitemid) | **Get** /line_items/{lineItemId} | Retrieve a line item *LineItemsApi* | [**GETOrderIdLineItems**](docs/LineItemsApi.md#getorderidlineitems) | **Get** /orders/{orderId}/line_items | Retrieve the line items associated to the order +*LineItemsApi* | [**GETOrderSubscriptionItemIdSourceLineItem**](docs/LineItemsApi.md#getordersubscriptionitemidsourcelineitem) | **Get** /order_subscription_items/{orderSubscriptionItemId}/source_line_item | Retrieve the source line item associated to the order subscription item *LineItemsApi* | [**GETReturnLineItemIdLineItem**](docs/LineItemsApi.md#getreturnlineitemidlineitem) | **Get** /return_line_items/{returnLineItemId}/line_item | Retrieve the line item associated to the return line item +*LineItemsApi* | [**GETShipmentIdLineItems**](docs/LineItemsApi.md#getshipmentidlineitems) | **Get** /shipments/{shipmentId}/line_items | Retrieve the line items associated to the shipment *LineItemsApi* | [**GETStockLineItemIdLineItem**](docs/LineItemsApi.md#getstocklineitemidlineitem) | **Get** /stock_line_items/{stockLineItemId}/line_item | Retrieve the line item associated to the stock line item +*LineItemsApi* | [**GETStockReservationIdLineItem**](docs/LineItemsApi.md#getstockreservationidlineitem) | **Get** /stock_reservations/{stockReservationId}/line_item | Retrieve the line item associated to the stock reservation *LineItemsApi* | [**GETStockTransferIdLineItem**](docs/LineItemsApi.md#getstocktransferidlineitem) | **Get** /stock_transfers/{stockTransferId}/line_item | Retrieve the line item associated to the stock transfer *LineItemsApi* | [**PATCHLineItemsLineItemId**](docs/LineItemsApi.md#patchlineitemslineitemid) | **Patch** /line_items/{lineItemId} | Update a line item *LineItemsApi* | [**POSTLineItems**](docs/LineItemsApi.md#postlineitems) | **Post** /line_items | Create a line item +*LinksApi* | [**DELETELinksLinkId**](docs/LinksApi.md#deletelinkslinkid) | **Delete** /links/{linkId} | Delete a link +*LinksApi* | [**GETLinks**](docs/LinksApi.md#getlinks) | **Get** /links | List all links +*LinksApi* | [**GETLinksLinkId**](docs/LinksApi.md#getlinkslinkid) | **Get** /links/{linkId} | Retrieve a link +*LinksApi* | [**GETOrderIdLinks**](docs/LinksApi.md#getorderidlinks) | **Get** /orders/{orderId}/links | Retrieve the links associated to the order +*LinksApi* | [**GETSkuIdLinks**](docs/LinksApi.md#getskuidlinks) | **Get** /skus/{skuId}/links | Retrieve the links associated to the SKU +*LinksApi* | [**GETSkuListIdLinks**](docs/LinksApi.md#getskulistidlinks) | **Get** /sku_lists/{skuListId}/links | Retrieve the links associated to the SKU list +*LinksApi* | [**PATCHLinksLinkId**](docs/LinksApi.md#patchlinkslinkid) | **Patch** /links/{linkId} | Update a link +*LinksApi* | [**POSTLinks**](docs/LinksApi.md#postlinks) | **Post** /links | Create a link *ManualGatewaysApi* | [**DELETEManualGatewaysManualGatewayId**](docs/ManualGatewaysApi.md#deletemanualgatewaysmanualgatewayid) | **Delete** /manual_gateways/{manualGatewayId} | Delete a manual gateway *ManualGatewaysApi* | [**GETManualGateways**](docs/ManualGatewaysApi.md#getmanualgateways) | **Get** /manual_gateways | List all manual gateways *ManualGatewaysApi* | [**GETManualGatewaysManualGatewayId**](docs/ManualGatewaysApi.md#getmanualgatewaysmanualgatewayid) | **Get** /manual_gateways/{manualGatewayId} | Retrieve a manual gateway @@ -850,7 +1155,9 @@ Class | Method | HTTP request | Description *MarketsApi* | [**DELETEMarketsMarketId**](docs/MarketsApi.md#deletemarketsmarketid) | **Delete** /markets/{marketId} | Delete a market *MarketsApi* | [**GETAvalaraAccountIdMarkets**](docs/MarketsApi.md#getavalaraaccountidmarkets) | **Get** /avalara_accounts/{avalaraAccountId}/markets | Retrieve the markets associated to the avalara account *MarketsApi* | [**GETBillingInfoValidationRuleIdMarket**](docs/MarketsApi.md#getbillinginfovalidationruleidmarket) | **Get** /billing_info_validation_rules/{billingInfoValidationRuleId}/market | Retrieve the market associated to the billing info validation rule +*MarketsApi* | [**GETBingGeocoderIdMarkets**](docs/MarketsApi.md#getbinggeocoderidmarkets) | **Get** /bing_geocoders/{bingGeocoderId}/markets | Retrieve the markets associated to the bing geocoder *MarketsApi* | [**GETBundleIdMarket**](docs/MarketsApi.md#getbundleidmarket) | **Get** /bundles/{bundleId}/market | Retrieve the market associated to the bundle +*MarketsApi* | [**GETBuyXPayYPromotionIdMarket**](docs/MarketsApi.md#getbuyxpayypromotionidmarket) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/market | Retrieve the market associated to the buy x pay y promotion *MarketsApi* | [**GETCarrierAccountIdMarket**](docs/MarketsApi.md#getcarrieraccountidmarket) | **Get** /carrier_accounts/{carrierAccountId}/market | Retrieve the market associated to the carrier account *MarketsApi* | [**GETCustomerGroupIdMarkets**](docs/MarketsApi.md#getcustomergroupidmarkets) | **Get** /customer_groups/{customerGroupId}/markets | Retrieve the markets associated to the customer group *MarketsApi* | [**GETExternalPromotionIdMarket**](docs/MarketsApi.md#getexternalpromotionidmarket) | **Get** /external_promotions/{externalPromotionId}/market | Retrieve the market associated to the external promotion @@ -859,18 +1166,22 @@ Class | Method | HTTP request | Description *MarketsApi* | [**GETFixedPricePromotionIdMarket**](docs/MarketsApi.md#getfixedpricepromotionidmarket) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/market | Retrieve the market associated to the fixed price promotion *MarketsApi* | [**GETFreeGiftPromotionIdMarket**](docs/MarketsApi.md#getfreegiftpromotionidmarket) | **Get** /free_gift_promotions/{freeGiftPromotionId}/market | Retrieve the market associated to the free gift promotion *MarketsApi* | [**GETFreeShippingPromotionIdMarket**](docs/MarketsApi.md#getfreeshippingpromotionidmarket) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/market | Retrieve the market associated to the free shipping promotion +*MarketsApi* | [**GETGeocoderIdMarkets**](docs/MarketsApi.md#getgeocoderidmarkets) | **Get** /geocoders/{geocoderId}/markets | Retrieve the markets associated to the geocoder *MarketsApi* | [**GETGiftCardIdMarket**](docs/MarketsApi.md#getgiftcardidmarket) | **Get** /gift_cards/{giftCardId}/market | Retrieve the market associated to the gift card +*MarketsApi* | [**GETGoogleGeocoderIdMarkets**](docs/MarketsApi.md#getgooglegeocoderidmarkets) | **Get** /google_geocoders/{googleGeocoderId}/markets | Retrieve the markets associated to the google geocoder *MarketsApi* | [**GETInStockSubscriptionIdMarket**](docs/MarketsApi.md#getinstocksubscriptionidmarket) | **Get** /in_stock_subscriptions/{inStockSubscriptionId}/market | Retrieve the market associated to the in stock subscription *MarketsApi* | [**GETManualTaxCalculatorIdMarkets**](docs/MarketsApi.md#getmanualtaxcalculatoridmarkets) | **Get** /manual_tax_calculators/{manualTaxCalculatorId}/markets | Retrieve the markets associated to the manual tax calculator *MarketsApi* | [**GETMarkets**](docs/MarketsApi.md#getmarkets) | **Get** /markets | List all markets *MarketsApi* | [**GETMarketsMarketId**](docs/MarketsApi.md#getmarketsmarketid) | **Get** /markets/{marketId} | Retrieve a market *MarketsApi* | [**GETOrderIdMarket**](docs/MarketsApi.md#getorderidmarket) | **Get** /orders/{orderId}/market | Retrieve the market associated to the order *MarketsApi* | [**GETOrderSubscriptionIdMarket**](docs/MarketsApi.md#getordersubscriptionidmarket) | **Get** /order_subscriptions/{orderSubscriptionId}/market | Retrieve the market associated to the order subscription -*MarketsApi* | [**GETOrderValidationRuleIdMarket**](docs/MarketsApi.md#getordervalidationruleidmarket) | **Get** /order_validation_rules/{orderValidationRuleId}/market | Retrieve the market associated to the order validation rule *MarketsApi* | [**GETPaymentMethodIdMarket**](docs/MarketsApi.md#getpaymentmethodidmarket) | **Get** /payment_methods/{paymentMethodId}/market | Retrieve the market associated to the payment method *MarketsApi* | [**GETPercentageDiscountPromotionIdMarket**](docs/MarketsApi.md#getpercentagediscountpromotionidmarket) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/market | Retrieve the market associated to the percentage discount promotion +*MarketsApi* | [**GETPriceIdJwtMarkets**](docs/MarketsApi.md#getpriceidjwtmarkets) | **Get** /prices/{priceId}/jwt_markets | Retrieve the jwt markets associated to the price +*MarketsApi* | [**GETPriceListSchedulerIdMarket**](docs/MarketsApi.md#getpricelistscheduleridmarket) | **Get** /price_list_schedulers/{priceListSchedulerId}/market | Retrieve the market associated to the price list scheduler *MarketsApi* | [**GETPromotionIdMarket**](docs/MarketsApi.md#getpromotionidmarket) | **Get** /promotions/{promotionId}/market | Retrieve the market associated to the promotion *MarketsApi* | [**GETShippingMethodIdMarket**](docs/MarketsApi.md#getshippingmethodidmarket) | **Get** /shipping_methods/{shippingMethodId}/market | Retrieve the market associated to the shipping method +*MarketsApi* | [**GETSkuIdJwtMarkets**](docs/MarketsApi.md#getskuidjwtmarkets) | **Get** /skus/{skuId}/jwt_markets | Retrieve the jwt markets associated to the SKU *MarketsApi* | [**GETSkuOptionIdMarket**](docs/MarketsApi.md#getskuoptionidmarket) | **Get** /sku_options/{skuOptionId}/market | Retrieve the market associated to the SKU option *MarketsApi* | [**GETSubscriptionModelIdMarkets**](docs/MarketsApi.md#getsubscriptionmodelidmarkets) | **Get** /subscription_models/{subscriptionModelId}/markets | Retrieve the markets associated to the subscription model *MarketsApi* | [**GETTaxCalculatorIdMarkets**](docs/MarketsApi.md#gettaxcalculatoridmarkets) | **Get** /tax_calculators/{taxCalculatorId}/markets | Retrieve the markets associated to the tax calculator @@ -884,6 +1195,7 @@ Class | Method | HTTP request | Description *MerchantsApi* | [**PATCHMerchantsMerchantId**](docs/MerchantsApi.md#patchmerchantsmerchantid) | **Patch** /merchants/{merchantId} | Update a merchant *MerchantsApi* | [**POSTMerchants**](docs/MerchantsApi.md#postmerchants) | **Post** /merchants | Create a merchant *OrderAmountPromotionRulesApi* | [**DELETEOrderAmountPromotionRulesOrderAmountPromotionRuleId**](docs/OrderAmountPromotionRulesApi.md#deleteorderamountpromotionrulesorderamountpromotionruleid) | **Delete** /order_amount_promotion_rules/{orderAmountPromotionRuleId} | Delete an order amount promotion rule +*OrderAmountPromotionRulesApi* | [**GETBuyXPayYPromotionIdOrderAmountPromotionRule**](docs/OrderAmountPromotionRulesApi.md#getbuyxpayypromotionidorderamountpromotionrule) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the buy x pay y promotion *OrderAmountPromotionRulesApi* | [**GETExternalPromotionIdOrderAmountPromotionRule**](docs/OrderAmountPromotionRulesApi.md#getexternalpromotionidorderamountpromotionrule) | **Get** /external_promotions/{externalPromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the external promotion *OrderAmountPromotionRulesApi* | [**GETFixedAmountPromotionIdOrderAmountPromotionRule**](docs/OrderAmountPromotionRulesApi.md#getfixedamountpromotionidorderamountpromotionrule) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the fixed amount promotion *OrderAmountPromotionRulesApi* | [**GETFixedPricePromotionIdOrderAmountPromotionRule**](docs/OrderAmountPromotionRulesApi.md#getfixedpricepromotionidorderamountpromotionrule) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the fixed price promotion @@ -914,6 +1226,7 @@ Class | Method | HTTP request | Description *OrderSubscriptionsApi* | [**DELETEOrderSubscriptionsOrderSubscriptionId**](docs/OrderSubscriptionsApi.md#deleteordersubscriptionsordersubscriptionid) | **Delete** /order_subscriptions/{orderSubscriptionId} | Delete an order subscription *OrderSubscriptionsApi* | [**GETCustomerIdOrderSubscriptions**](docs/OrderSubscriptionsApi.md#getcustomeridordersubscriptions) | **Get** /customers/{customerId}/order_subscriptions | Retrieve the order subscriptions associated to the customer *OrderSubscriptionsApi* | [**GETOrderCopyIdOrderSubscription**](docs/OrderSubscriptionsApi.md#getordercopyidordersubscription) | **Get** /order_copies/{orderCopyId}/order_subscription | Retrieve the order subscription associated to the order copy +*OrderSubscriptionsApi* | [**GETOrderIdOrderSubscription**](docs/OrderSubscriptionsApi.md#getorderidordersubscription) | **Get** /orders/{orderId}/order_subscription | Retrieve the order subscription associated to the order *OrderSubscriptionsApi* | [**GETOrderIdOrderSubscriptions**](docs/OrderSubscriptionsApi.md#getorderidordersubscriptions) | **Get** /orders/{orderId}/order_subscriptions | Retrieve the order subscriptions associated to the order *OrderSubscriptionsApi* | [**GETOrderSubscriptionItemIdOrderSubscription**](docs/OrderSubscriptionsApi.md#getordersubscriptionitemidordersubscription) | **Get** /order_subscription_items/{orderSubscriptionItemId}/order_subscription | Retrieve the order subscription associated to the order subscription item *OrderSubscriptionsApi* | [**GETOrderSubscriptions**](docs/OrderSubscriptionsApi.md#getordersubscriptions) | **Get** /order_subscriptions | List all order subscriptions @@ -922,8 +1235,6 @@ Class | Method | HTTP request | Description *OrderSubscriptionsApi* | [**GETSubscriptionModelIdOrderSubscriptions**](docs/OrderSubscriptionsApi.md#getsubscriptionmodelidordersubscriptions) | **Get** /subscription_models/{subscriptionModelId}/order_subscriptions | Retrieve the order subscriptions associated to the subscription model *OrderSubscriptionsApi* | [**PATCHOrderSubscriptionsOrderSubscriptionId**](docs/OrderSubscriptionsApi.md#patchordersubscriptionsordersubscriptionid) | **Patch** /order_subscriptions/{orderSubscriptionId} | Update an order subscription *OrderSubscriptionsApi* | [**POSTOrderSubscriptions**](docs/OrderSubscriptionsApi.md#postordersubscriptions) | **Post** /order_subscriptions | Create an order subscription -*OrderValidationRulesApi* | [**GETOrderValidationRules**](docs/OrderValidationRulesApi.md#getordervalidationrules) | **Get** /order_validation_rules | List all order validation rules -*OrderValidationRulesApi* | [**GETOrderValidationRulesOrderValidationRuleId**](docs/OrderValidationRulesApi.md#getordervalidationrulesordervalidationruleid) | **Get** /order_validation_rules/{orderValidationRuleId} | Retrieve an order validation rule *OrdersApi* | [**DELETEOrdersOrderId**](docs/OrdersApi.md#deleteordersorderid) | **Delete** /orders/{orderId} | Delete an order *OrdersApi* | [**GETAdyenPaymentIdOrder**](docs/OrdersApi.md#getadyenpaymentidorder) | **Get** /adyen_payments/{adyenPaymentId}/order | Retrieve the order associated to the adyen payment *OrdersApi* | [**GETAuthorizationIdOrder**](docs/OrdersApi.md#getauthorizationidorder) | **Get** /authorizations/{authorizationId}/order | Retrieve the order associated to the authorization @@ -943,6 +1254,7 @@ Class | Method | HTTP request | Description *OrdersApi* | [**GETOrderSubscriptionIdSourceOrder**](docs/OrdersApi.md#getordersubscriptionidsourceorder) | **Get** /order_subscriptions/{orderSubscriptionId}/source_order | Retrieve the source order associated to the order subscription *OrdersApi* | [**GETOrders**](docs/OrdersApi.md#getorders) | **Get** /orders | List all orders *OrdersApi* | [**GETOrdersOrderId**](docs/OrdersApi.md#getordersorderid) | **Get** /orders/{orderId} | Retrieve an order +*OrdersApi* | [**GETPaymentOptionIdOrder**](docs/OrdersApi.md#getpaymentoptionidorder) | **Get** /payment_options/{paymentOptionId}/order | Retrieve the order associated to the payment option *OrdersApi* | [**GETPaypalPaymentIdOrder**](docs/OrdersApi.md#getpaypalpaymentidorder) | **Get** /paypal_payments/{paypalPaymentId}/order | Retrieve the order associated to the paypal payment *OrdersApi* | [**GETRecurringOrderCopyIdSourceOrder**](docs/OrdersApi.md#getrecurringordercopyidsourceorder) | **Get** /recurring_order_copies/{recurringOrderCopyId}/source_order | Retrieve the source order associated to the recurring order copy *OrdersApi* | [**GETRecurringOrderCopyIdTargetOrder**](docs/OrdersApi.md#getrecurringordercopyidtargetorder) | **Get** /recurring_order_copies/{recurringOrderCopyId}/target_order | Retrieve the target order associated to the recurring order copy @@ -950,6 +1262,7 @@ Class | Method | HTTP request | Description *OrdersApi* | [**GETReturnIdOrder**](docs/OrdersApi.md#getreturnidorder) | **Get** /returns/{returnId}/order | Retrieve the order associated to the return *OrdersApi* | [**GETSatispayPaymentIdOrder**](docs/OrdersApi.md#getsatispaypaymentidorder) | **Get** /satispay_payments/{satispayPaymentId}/order | Retrieve the order associated to the satispay payment *OrdersApi* | [**GETShipmentIdOrder**](docs/OrdersApi.md#getshipmentidorder) | **Get** /shipments/{shipmentId}/order | Retrieve the order associated to the shipment +*OrdersApi* | [**GETStockReservationIdOrder**](docs/OrdersApi.md#getstockreservationidorder) | **Get** /stock_reservations/{stockReservationId}/order | Retrieve the order associated to the stock reservation *OrdersApi* | [**GETStripePaymentIdOrder**](docs/OrdersApi.md#getstripepaymentidorder) | **Get** /stripe_payments/{stripePaymentId}/order | Retrieve the order associated to the stripe payment *OrdersApi* | [**GETTransactionIdOrder**](docs/OrdersApi.md#gettransactionidorder) | **Get** /transactions/{transactionId}/order | Retrieve the order associated to the transaction *OrdersApi* | [**GETVoidIdOrder**](docs/OrdersApi.md#getvoididorder) | **Get** /voids/{voidId}/order | Retrieve the order associated to the void @@ -994,6 +1307,7 @@ Class | Method | HTTP request | Description *PaymentMethodsApi* | [**GETAxerveGatewayIdPaymentMethods**](docs/PaymentMethodsApi.md#getaxervegatewayidpaymentmethods) | **Get** /axerve_gateways/{axerveGatewayId}/payment_methods | Retrieve the payment methods associated to the axerve gateway *PaymentMethodsApi* | [**GETBraintreeGatewayIdPaymentMethods**](docs/PaymentMethodsApi.md#getbraintreegatewayidpaymentmethods) | **Get** /braintree_gateways/{braintreeGatewayId}/payment_methods | Retrieve the payment methods associated to the braintree gateway *PaymentMethodsApi* | [**GETCheckoutComGatewayIdPaymentMethods**](docs/PaymentMethodsApi.md#getcheckoutcomgatewayidpaymentmethods) | **Get** /checkout_com_gateways/{checkoutComGatewayId}/payment_methods | Retrieve the payment methods associated to the checkout.com gateway +*PaymentMethodsApi* | [**GETCustomerPaymentSourceIdPaymentMethod**](docs/PaymentMethodsApi.md#getcustomerpaymentsourceidpaymentmethod) | **Get** /customer_payment_sources/{customerPaymentSourceId}/payment_method | Retrieve the payment method associated to the customer payment source *PaymentMethodsApi* | [**GETExternalGatewayIdPaymentMethods**](docs/PaymentMethodsApi.md#getexternalgatewayidpaymentmethods) | **Get** /external_gateways/{externalGatewayId}/payment_methods | Retrieve the payment methods associated to the external gateway *PaymentMethodsApi* | [**GETKlarnaGatewayIdPaymentMethods**](docs/PaymentMethodsApi.md#getklarnagatewayidpaymentmethods) | **Get** /klarna_gateways/{klarnaGatewayId}/payment_methods | Retrieve the payment methods associated to the klarna gateway *PaymentMethodsApi* | [**GETManualGatewayIdPaymentMethods**](docs/PaymentMethodsApi.md#getmanualgatewayidpaymentmethods) | **Get** /manual_gateways/{manualGatewayId}/payment_methods | Retrieve the payment methods associated to the manual gateway @@ -1007,6 +1321,12 @@ Class | Method | HTTP request | Description *PaymentMethodsApi* | [**GETStripeGatewayIdPaymentMethods**](docs/PaymentMethodsApi.md#getstripegatewayidpaymentmethods) | **Get** /stripe_gateways/{stripeGatewayId}/payment_methods | Retrieve the payment methods associated to the stripe gateway *PaymentMethodsApi* | [**PATCHPaymentMethodsPaymentMethodId**](docs/PaymentMethodsApi.md#patchpaymentmethodspaymentmethodid) | **Patch** /payment_methods/{paymentMethodId} | Update a payment method *PaymentMethodsApi* | [**POSTPaymentMethods**](docs/PaymentMethodsApi.md#postpaymentmethods) | **Post** /payment_methods | Create a payment method +*PaymentOptionsApi* | [**DELETEPaymentOptionsPaymentOptionId**](docs/PaymentOptionsApi.md#deletepaymentoptionspaymentoptionid) | **Delete** /payment_options/{paymentOptionId} | Delete a payment option +*PaymentOptionsApi* | [**GETOrderIdPaymentOptions**](docs/PaymentOptionsApi.md#getorderidpaymentoptions) | **Get** /orders/{orderId}/payment_options | Retrieve the payment options associated to the order +*PaymentOptionsApi* | [**GETPaymentOptions**](docs/PaymentOptionsApi.md#getpaymentoptions) | **Get** /payment_options | List all payment options +*PaymentOptionsApi* | [**GETPaymentOptionsPaymentOptionId**](docs/PaymentOptionsApi.md#getpaymentoptionspaymentoptionid) | **Get** /payment_options/{paymentOptionId} | Retrieve a payment option +*PaymentOptionsApi* | [**PATCHPaymentOptionsPaymentOptionId**](docs/PaymentOptionsApi.md#patchpaymentoptionspaymentoptionid) | **Patch** /payment_options/{paymentOptionId} | Update a payment option +*PaymentOptionsApi* | [**POSTPaymentOptions**](docs/PaymentOptionsApi.md#postpaymentoptions) | **Post** /payment_options | Create a payment option *PaypalGatewaysApi* | [**DELETEPaypalGatewaysPaypalGatewayId**](docs/PaypalGatewaysApi.md#deletepaypalgatewayspaypalgatewayid) | **Delete** /paypal_gateways/{paypalGatewayId} | Delete a paypal gateway *PaypalGatewaysApi* | [**GETPaypalGateways**](docs/PaypalGatewaysApi.md#getpaypalgateways) | **Get** /paypal_gateways | List all paypal gateways *PaypalGatewaysApi* | [**GETPaypalGatewaysPaypalGatewayId**](docs/PaypalGatewaysApi.md#getpaypalgatewayspaypalgatewayid) | **Get** /paypal_gateways/{paypalGatewayId} | Retrieve a paypal gateway @@ -1029,9 +1349,18 @@ Class | Method | HTTP request | Description *PriceFrequencyTiersApi* | [**GETPriceIdPriceFrequencyTiers**](docs/PriceFrequencyTiersApi.md#getpriceidpricefrequencytiers) | **Get** /prices/{priceId}/price_frequency_tiers | Retrieve the price frequency tiers associated to the price *PriceFrequencyTiersApi* | [**PATCHPriceFrequencyTiersPriceFrequencyTierId**](docs/PriceFrequencyTiersApi.md#patchpricefrequencytierspricefrequencytierid) | **Patch** /price_frequency_tiers/{priceFrequencyTierId} | Update a price frequency tier *PriceFrequencyTiersApi* | [**POSTPriceFrequencyTiers**](docs/PriceFrequencyTiersApi.md#postpricefrequencytiers) | **Post** /price_frequency_tiers | Create a price frequency tier +*PriceListSchedulersApi* | [**DELETEPriceListSchedulersPriceListSchedulerId**](docs/PriceListSchedulersApi.md#deletepricelistschedulerspricelistschedulerid) | **Delete** /price_list_schedulers/{priceListSchedulerId} | Delete a price list scheduler +*PriceListSchedulersApi* | [**GETMarketIdPriceListSchedulers**](docs/PriceListSchedulersApi.md#getmarketidpricelistschedulers) | **Get** /markets/{marketId}/price_list_schedulers | Retrieve the price list schedulers associated to the market +*PriceListSchedulersApi* | [**GETPriceListIdPriceListSchedulers**](docs/PriceListSchedulersApi.md#getpricelistidpricelistschedulers) | **Get** /price_lists/{priceListId}/price_list_schedulers | Retrieve the price list schedulers associated to the price list +*PriceListSchedulersApi* | [**GETPriceListSchedulers**](docs/PriceListSchedulersApi.md#getpricelistschedulers) | **Get** /price_list_schedulers | List all price list schedulers +*PriceListSchedulersApi* | [**GETPriceListSchedulersPriceListSchedulerId**](docs/PriceListSchedulersApi.md#getpricelistschedulerspricelistschedulerid) | **Get** /price_list_schedulers/{priceListSchedulerId} | Retrieve a price list scheduler +*PriceListSchedulersApi* | [**PATCHPriceListSchedulersPriceListSchedulerId**](docs/PriceListSchedulersApi.md#patchpricelistschedulerspricelistschedulerid) | **Patch** /price_list_schedulers/{priceListSchedulerId} | Update a price list scheduler +*PriceListSchedulersApi* | [**POSTPriceListSchedulers**](docs/PriceListSchedulersApi.md#postpricelistschedulers) | **Post** /price_list_schedulers | Create a price list scheduler *PriceListsApi* | [**DELETEPriceListsPriceListId**](docs/PriceListsApi.md#deletepricelistspricelistid) | **Delete** /price_lists/{priceListId} | Delete a price list +*PriceListsApi* | [**GETMarketIdBasePriceList**](docs/PriceListsApi.md#getmarketidbasepricelist) | **Get** /markets/{marketId}/base_price_list | Retrieve the base price list associated to the market *PriceListsApi* | [**GETMarketIdPriceList**](docs/PriceListsApi.md#getmarketidpricelist) | **Get** /markets/{marketId}/price_list | Retrieve the price list associated to the market *PriceListsApi* | [**GETPriceIdPriceList**](docs/PriceListsApi.md#getpriceidpricelist) | **Get** /prices/{priceId}/price_list | Retrieve the price list associated to the price +*PriceListsApi* | [**GETPriceListSchedulerIdPriceList**](docs/PriceListsApi.md#getpricelistscheduleridpricelist) | **Get** /price_list_schedulers/{priceListSchedulerId}/price_list | Retrieve the price list associated to the price list scheduler *PriceListsApi* | [**GETPriceLists**](docs/PriceListsApi.md#getpricelists) | **Get** /price_lists | List all price lists *PriceListsApi* | [**GETPriceListsPriceListId**](docs/PriceListsApi.md#getpricelistspricelistid) | **Get** /price_lists/{priceListId} | Retrieve a price list *PriceListsApi* | [**PATCHPriceListsPriceListId**](docs/PriceListsApi.md#patchpricelistspricelistid) | **Patch** /price_lists/{priceListId} | Update a price list @@ -1070,15 +1399,28 @@ Class | Method | HTTP request | Description *RefundsApi* | [**GETOrderIdRefunds**](docs/RefundsApi.md#getorderidrefunds) | **Get** /orders/{orderId}/refunds | Retrieve the refunds associated to the order *RefundsApi* | [**GETRefunds**](docs/RefundsApi.md#getrefunds) | **Get** /refunds | List all refunds *RefundsApi* | [**GETRefundsRefundId**](docs/RefundsApi.md#getrefundsrefundid) | **Get** /refunds/{refundId} | Retrieve a refund +*RefundsApi* | [**GETReturnIdReferenceRefund**](docs/RefundsApi.md#getreturnidreferencerefund) | **Get** /returns/{returnId}/reference_refund | Retrieve the reference refund associated to the return +*RefundsApi* | [**PATCHRefundsRefundId**](docs/RefundsApi.md#patchrefundsrefundid) | **Patch** /refunds/{refundId} | Update a refund +*ReservedStocksApi* | [**GETReservedStocks**](docs/ReservedStocksApi.md#getreservedstocks) | **Get** /reserved_stocks | List all reserved stocks +*ReservedStocksApi* | [**GETReservedStocksReservedStockId**](docs/ReservedStocksApi.md#getreservedstocksreservedstockid) | **Get** /reserved_stocks/{reservedStockId} | Retrieve a reserved stock +*ReservedStocksApi* | [**GETStockItemIdReservedStock**](docs/ReservedStocksApi.md#getstockitemidreservedstock) | **Get** /stock_items/{stockItemId}/reserved_stock | Retrieve the reserved stock associated to the stock item +*ReservedStocksApi* | [**GETStockReservationIdReservedStock**](docs/ReservedStocksApi.md#getstockreservationidreservedstock) | **Get** /stock_reservations/{stockReservationId}/reserved_stock | Retrieve the reserved stock associated to the stock reservation +*ResourceErrorsApi* | [**GETOrderIdResourceErrors**](docs/ResourceErrorsApi.md#getorderidresourceerrors) | **Get** /orders/{orderId}/resource_errors | Retrieve the resource errors associated to the order +*ResourceErrorsApi* | [**GETResourceErrors**](docs/ResourceErrorsApi.md#getresourceerrors) | **Get** /resource_errors | List all resource errors +*ResourceErrorsApi* | [**GETResourceErrorsResourceErrorId**](docs/ResourceErrorsApi.md#getresourceerrorsresourceerrorid) | **Get** /resource_errors/{resourceErrorId} | Retrieve a resource error +*ResourceErrorsApi* | [**GETReturnIdResourceErrors**](docs/ResourceErrorsApi.md#getreturnidresourceerrors) | **Get** /returns/{returnId}/resource_errors | Retrieve the resource errors associated to the return *ReturnLineItemsApi* | [**DELETEReturnLineItemsReturnLineItemId**](docs/ReturnLineItemsApi.md#deletereturnlineitemsreturnlineitemid) | **Delete** /return_line_items/{returnLineItemId} | Delete a return line item +*ReturnLineItemsApi* | [**GETLineItemIdReturnLineItems**](docs/ReturnLineItemsApi.md#getlineitemidreturnlineitems) | **Get** /line_items/{lineItemId}/return_line_items | Retrieve the return line items associated to the line item *ReturnLineItemsApi* | [**GETReturnIdReturnLineItems**](docs/ReturnLineItemsApi.md#getreturnidreturnlineitems) | **Get** /returns/{returnId}/return_line_items | Retrieve the return line items associated to the return *ReturnLineItemsApi* | [**GETReturnLineItems**](docs/ReturnLineItemsApi.md#getreturnlineitems) | **Get** /return_line_items | List all return line items *ReturnLineItemsApi* | [**GETReturnLineItemsReturnLineItemId**](docs/ReturnLineItemsApi.md#getreturnlineitemsreturnlineitemid) | **Get** /return_line_items/{returnLineItemId} | Retrieve a return line item *ReturnLineItemsApi* | [**PATCHReturnLineItemsReturnLineItemId**](docs/ReturnLineItemsApi.md#patchreturnlineitemsreturnlineitemid) | **Patch** /return_line_items/{returnLineItemId} | Update a return line item *ReturnLineItemsApi* | [**POSTReturnLineItems**](docs/ReturnLineItemsApi.md#postreturnlineitems) | **Post** /return_line_items | Create a return line item *ReturnsApi* | [**DELETEReturnsReturnId**](docs/ReturnsApi.md#deletereturnsreturnid) | **Delete** /returns/{returnId} | Delete a return +*ReturnsApi* | [**GETCaptureIdReturn**](docs/ReturnsApi.md#getcaptureidreturn) | **Get** /captures/{captureId}/return | Retrieve the return associated to the capture *ReturnsApi* | [**GETCustomerIdReturns**](docs/ReturnsApi.md#getcustomeridreturns) | **Get** /customers/{customerId}/returns | Retrieve the returns associated to the customer *ReturnsApi* | [**GETOrderIdReturns**](docs/ReturnsApi.md#getorderidreturns) | **Get** /orders/{orderId}/returns | Retrieve the returns associated to the order +*ReturnsApi* | [**GETRefundIdReturn**](docs/ReturnsApi.md#getrefundidreturn) | **Get** /refunds/{refundId}/return | Retrieve the return associated to the refund *ReturnsApi* | [**GETReturnLineItemIdReturn**](docs/ReturnsApi.md#getreturnlineitemidreturn) | **Get** /return_line_items/{returnLineItemId}/return | Retrieve the return associated to the return line item *ReturnsApi* | [**GETReturns**](docs/ReturnsApi.md#getreturns) | **Get** /returns | List all returns *ReturnsApi* | [**GETReturnsReturnId**](docs/ReturnsApi.md#getreturnsreturnid) | **Get** /returns/{returnId} | Retrieve a return @@ -1095,6 +1437,7 @@ Class | Method | HTTP request | Description *SatispayPaymentsApi* | [**GETSatispayPaymentsSatispayPaymentId**](docs/SatispayPaymentsApi.md#getsatispaypaymentssatispaypaymentid) | **Get** /satispay_payments/{satispayPaymentId} | Retrieve a satispay payment *SatispayPaymentsApi* | [**PATCHSatispayPaymentsSatispayPaymentId**](docs/SatispayPaymentsApi.md#patchsatispaypaymentssatispaypaymentid) | **Patch** /satispay_payments/{satispayPaymentId} | Update a satispay payment *SatispayPaymentsApi* | [**POSTSatispayPayments**](docs/SatispayPaymentsApi.md#postsatispaypayments) | **Post** /satispay_payments | Create a satispay payment +*ShipmentsApi* | [**DELETEShipmentsShipmentId**](docs/ShipmentsApi.md#deleteshipmentsshipmentid) | **Delete** /shipments/{shipmentId} | Delete a shipment *ShipmentsApi* | [**GETOrderIdShipments**](docs/ShipmentsApi.md#getorderidshipments) | **Get** /orders/{orderId}/shipments | Retrieve the shipments associated to the order *ShipmentsApi* | [**GETParcelIdShipment**](docs/ShipmentsApi.md#getparcelidshipment) | **Get** /parcels/{parcelId}/shipment | Retrieve the shipment associated to the parcel *ShipmentsApi* | [**GETShipments**](docs/ShipmentsApi.md#getshipments) | **Get** /shipments | List all shipments @@ -1102,6 +1445,7 @@ Class | Method | HTTP request | Description *ShipmentsApi* | [**GETStockLineItemIdShipment**](docs/ShipmentsApi.md#getstocklineitemidshipment) | **Get** /stock_line_items/{stockLineItemId}/shipment | Retrieve the shipment associated to the stock line item *ShipmentsApi* | [**GETStockTransferIdShipment**](docs/ShipmentsApi.md#getstocktransferidshipment) | **Get** /stock_transfers/{stockTransferId}/shipment | Retrieve the shipment associated to the stock transfer *ShipmentsApi* | [**PATCHShipmentsShipmentId**](docs/ShipmentsApi.md#patchshipmentsshipmentid) | **Patch** /shipments/{shipmentId} | Update a shipment +*ShipmentsApi* | [**POSTShipments**](docs/ShipmentsApi.md#postshipments) | **Post** /shipments | Create a shipment *ShippingCategoriesApi* | [**DELETEShippingCategoriesShippingCategoryId**](docs/ShippingCategoriesApi.md#deleteshippingcategoriesshippingcategoryid) | **Delete** /shipping_categories/{shippingCategoryId} | Delete a shipping category *ShippingCategoriesApi* | [**GETShipmentIdShippingCategory**](docs/ShippingCategoriesApi.md#getshipmentidshippingcategory) | **Get** /shipments/{shipmentId}/shipping_category | Retrieve the shipping category associated to the shipment *ShippingCategoriesApi* | [**GETShippingCategories**](docs/ShippingCategoriesApi.md#getshippingcategories) | **Get** /shipping_categories | List all shipping categories @@ -1138,12 +1482,14 @@ Class | Method | HTTP request | Description *SingletonApi* | [**GETApplicationApplicationId**](docs/SingletonApi.md#getapplicationapplicationid) | **Get** /application | Retrieve the application *SingletonApi* | [**GETOrganizationOrganizationId**](docs/SingletonApi.md#getorganizationorganizationid) | **Get** /organization | Retrieve the organization *SkuListItemsApi* | [**DELETESkuListItemsSkuListItemId**](docs/SkuListItemsApi.md#deleteskulistitemsskulistitemid) | **Delete** /sku_list_items/{skuListItemId} | Delete a SKU list item +*SkuListItemsApi* | [**GETSkuIdSkuListItems**](docs/SkuListItemsApi.md#getskuidskulistitems) | **Get** /skus/{skuId}/sku_list_items | Retrieve the sku list items associated to the SKU *SkuListItemsApi* | [**GETSkuListIdSkuListItems**](docs/SkuListItemsApi.md#getskulistidskulistitems) | **Get** /sku_lists/{skuListId}/sku_list_items | Retrieve the sku list items associated to the SKU list *SkuListItemsApi* | [**GETSkuListItems**](docs/SkuListItemsApi.md#getskulistitems) | **Get** /sku_list_items | List all SKU list items *SkuListItemsApi* | [**GETSkuListItemsSkuListItemId**](docs/SkuListItemsApi.md#getskulistitemsskulistitemid) | **Get** /sku_list_items/{skuListItemId} | Retrieve a SKU list item *SkuListItemsApi* | [**PATCHSkuListItemsSkuListItemId**](docs/SkuListItemsApi.md#patchskulistitemsskulistitemid) | **Patch** /sku_list_items/{skuListItemId} | Update a SKU list item *SkuListItemsApi* | [**POSTSkuListItems**](docs/SkuListItemsApi.md#postskulistitems) | **Post** /sku_list_items | Create a SKU list item *SkuListPromotionRulesApi* | [**DELETESkuListPromotionRulesSkuListPromotionRuleId**](docs/SkuListPromotionRulesApi.md#deleteskulistpromotionrulesskulistpromotionruleid) | **Delete** /sku_list_promotion_rules/{skuListPromotionRuleId} | Delete a SKU list promotion rule +*SkuListPromotionRulesApi* | [**GETBuyXPayYPromotionIdSkuListPromotionRule**](docs/SkuListPromotionRulesApi.md#getbuyxpayypromotionidskulistpromotionrule) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the buy x pay y promotion *SkuListPromotionRulesApi* | [**GETExternalPromotionIdSkuListPromotionRule**](docs/SkuListPromotionRulesApi.md#getexternalpromotionidskulistpromotionrule) | **Get** /external_promotions/{externalPromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the external promotion *SkuListPromotionRulesApi* | [**GETFixedAmountPromotionIdSkuListPromotionRule**](docs/SkuListPromotionRulesApi.md#getfixedamountpromotionidskulistpromotionrule) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the fixed amount promotion *SkuListPromotionRulesApi* | [**GETFixedPricePromotionIdSkuListPromotionRule**](docs/SkuListPromotionRulesApi.md#getfixedpricepromotionidskulistpromotionrule) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the fixed price promotion @@ -1157,10 +1503,16 @@ Class | Method | HTTP request | Description *SkuListPromotionRulesApi* | [**POSTSkuListPromotionRules**](docs/SkuListPromotionRulesApi.md#postskulistpromotionrules) | **Post** /sku_list_promotion_rules | Create a SKU list promotion rule *SkuListsApi* | [**DELETESkuListsSkuListId**](docs/SkuListsApi.md#deleteskulistsskulistid) | **Delete** /sku_lists/{skuListId} | Delete a SKU list *SkuListsApi* | [**GETBundleIdSkuList**](docs/SkuListsApi.md#getbundleidskulist) | **Get** /bundles/{bundleId}/sku_list | Retrieve the sku list associated to the bundle +*SkuListsApi* | [**GETBuyXPayYPromotionIdSkuList**](docs/SkuListsApi.md#getbuyxpayypromotionidskulist) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/sku_list | Retrieve the sku list associated to the buy x pay y promotion *SkuListsApi* | [**GETCustomerIdSkuLists**](docs/SkuListsApi.md#getcustomeridskulists) | **Get** /customers/{customerId}/sku_lists | Retrieve the sku lists associated to the customer +*SkuListsApi* | [**GETExternalPromotionIdSkuList**](docs/SkuListsApi.md#getexternalpromotionidskulist) | **Get** /external_promotions/{externalPromotionId}/sku_list | Retrieve the sku list associated to the external promotion +*SkuListsApi* | [**GETFixedAmountPromotionIdSkuList**](docs/SkuListsApi.md#getfixedamountpromotionidskulist) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/sku_list | Retrieve the sku list associated to the fixed amount promotion *SkuListsApi* | [**GETFixedPricePromotionIdSkuList**](docs/SkuListsApi.md#getfixedpricepromotionidskulist) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/sku_list | Retrieve the sku list associated to the fixed price promotion *SkuListsApi* | [**GETFreeGiftPromotionIdSkuList**](docs/SkuListsApi.md#getfreegiftpromotionidskulist) | **Get** /free_gift_promotions/{freeGiftPromotionId}/sku_list | Retrieve the sku list associated to the free gift promotion +*SkuListsApi* | [**GETFreeShippingPromotionIdSkuList**](docs/SkuListsApi.md#getfreeshippingpromotionidskulist) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/sku_list | Retrieve the sku list associated to the free shipping promotion *SkuListsApi* | [**GETPercentageDiscountPromotionIdSkuList**](docs/SkuListsApi.md#getpercentagediscountpromotionidskulist) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/sku_list | Retrieve the sku list associated to the percentage discount promotion +*SkuListsApi* | [**GETPromotionIdSkuList**](docs/SkuListsApi.md#getpromotionidskulist) | **Get** /promotions/{promotionId}/sku_list | Retrieve the sku list associated to the promotion +*SkuListsApi* | [**GETSkuIdSkuLists**](docs/SkuListsApi.md#getskuidskulists) | **Get** /skus/{skuId}/sku_lists | Retrieve the sku lists associated to the SKU *SkuListsApi* | [**GETSkuListItemIdSkuList**](docs/SkuListsApi.md#getskulistitemidskulist) | **Get** /sku_list_items/{skuListItemId}/sku_list | Retrieve the sku list associated to the SKU list item *SkuListsApi* | [**GETSkuListPromotionRuleIdSkuList**](docs/SkuListsApi.md#getskulistpromotionruleidskulist) | **Get** /sku_list_promotion_rules/{skuListPromotionRuleId}/sku_list | Retrieve the sku list associated to the SKU list promotion rule *SkuListsApi* | [**GETSkuLists**](docs/SkuListsApi.md#getskulists) | **Get** /sku_lists | List all SKU lists @@ -1176,12 +1528,16 @@ Class | Method | HTTP request | Description *SkuOptionsApi* | [**POSTSkuOptions**](docs/SkuOptionsApi.md#postskuoptions) | **Post** /sku_options | Create a SKU option *SkusApi* | [**DELETESkusSkuId**](docs/SkusApi.md#deleteskusskuid) | **Delete** /skus/{skuId} | Delete a SKU *SkusApi* | [**GETBundleIdSkus**](docs/SkusApi.md#getbundleidskus) | **Get** /bundles/{bundleId}/skus | Retrieve the skus associated to the bundle +*SkusApi* | [**GETBuyXPayYPromotionIdSkus**](docs/SkusApi.md#getbuyxpayypromotionidskus) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/skus | Retrieve the skus associated to the buy x pay y promotion +*SkusApi* | [**GETExternalPromotionIdSkus**](docs/SkusApi.md#getexternalpromotionidskus) | **Get** /external_promotions/{externalPromotionId}/skus | Retrieve the skus associated to the external promotion +*SkusApi* | [**GETFixedAmountPromotionIdSkus**](docs/SkusApi.md#getfixedamountpromotionidskus) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/skus | Retrieve the skus associated to the fixed amount promotion *SkusApi* | [**GETFixedPricePromotionIdSkus**](docs/SkusApi.md#getfixedpricepromotionidskus) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/skus | Retrieve the skus associated to the fixed price promotion *SkusApi* | [**GETFreeGiftPromotionIdSkus**](docs/SkusApi.md#getfreegiftpromotionidskus) | **Get** /free_gift_promotions/{freeGiftPromotionId}/skus | Retrieve the skus associated to the free gift promotion *SkusApi* | [**GETInStockSubscriptionIdSku**](docs/SkusApi.md#getinstocksubscriptionidsku) | **Get** /in_stock_subscriptions/{inStockSubscriptionId}/sku | Retrieve the sku associated to the in stock subscription *SkusApi* | [**GETOrderIdAvailableFreeSkus**](docs/SkusApi.md#getorderidavailablefreeskus) | **Get** /orders/{orderId}/available_free_skus | Retrieve the available free skus associated to the order *SkusApi* | [**GETPercentageDiscountPromotionIdSkus**](docs/SkusApi.md#getpercentagediscountpromotionidskus) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/skus | Retrieve the skus associated to the percentage discount promotion *SkusApi* | [**GETPriceIdSku**](docs/SkusApi.md#getpriceidsku) | **Get** /prices/{priceId}/sku | Retrieve the sku associated to the price +*SkusApi* | [**GETReservedStockIdSku**](docs/SkusApi.md#getreservedstockidsku) | **Get** /reserved_stocks/{reservedStockId}/sku | Retrieve the sku associated to the reserved stock *SkusApi* | [**GETShippingCategoryIdSkus**](docs/SkusApi.md#getshippingcategoryidskus) | **Get** /shipping_categories/{shippingCategoryId}/skus | Retrieve the skus associated to the shipping category *SkusApi* | [**GETSkuListIdSkus**](docs/SkusApi.md#getskulistidskus) | **Get** /sku_lists/{skuListId}/skus | Retrieve the skus associated to the SKU list *SkusApi* | [**GETSkuListItemIdSku**](docs/SkusApi.md#getskulistitemidsku) | **Get** /sku_list_items/{skuListItemId}/sku | Retrieve the sku associated to the SKU list item @@ -1189,31 +1545,42 @@ Class | Method | HTTP request | Description *SkusApi* | [**GETSkus**](docs/SkusApi.md#getskus) | **Get** /skus | List all SKUs *SkusApi* | [**GETSkusSkuId**](docs/SkusApi.md#getskusskuid) | **Get** /skus/{skuId} | Retrieve a SKU *SkusApi* | [**GETStockItemIdSku**](docs/SkusApi.md#getstockitemidsku) | **Get** /stock_items/{stockItemId}/sku | Retrieve the sku associated to the stock item +*SkusApi* | [**GETStockLineItemIdSku**](docs/SkusApi.md#getstocklineitemidsku) | **Get** /stock_line_items/{stockLineItemId}/sku | Retrieve the sku associated to the stock line item +*SkusApi* | [**GETStockReservationIdSku**](docs/SkusApi.md#getstockreservationidsku) | **Get** /stock_reservations/{stockReservationId}/sku | Retrieve the sku associated to the stock reservation *SkusApi* | [**GETStockTransferIdSku**](docs/SkusApi.md#getstocktransferidsku) | **Get** /stock_transfers/{stockTransferId}/sku | Retrieve the sku associated to the stock transfer *SkusApi* | [**GETTaxCategoryIdSku**](docs/SkusApi.md#gettaxcategoryidsku) | **Get** /tax_categories/{taxCategoryId}/sku | Retrieve the sku associated to the tax category *SkusApi* | [**PATCHSkusSkuId**](docs/SkusApi.md#patchskusskuid) | **Patch** /skus/{skuId} | Update a SKU *SkusApi* | [**POSTSkus**](docs/SkusApi.md#postskus) | **Post** /skus | Create a SKU *StockItemsApi* | [**DELETEStockItemsStockItemId**](docs/StockItemsApi.md#deletestockitemsstockitemid) | **Delete** /stock_items/{stockItemId} | Delete a stock item +*StockItemsApi* | [**GETReservedStockIdStockItem**](docs/StockItemsApi.md#getreservedstockidstockitem) | **Get** /reserved_stocks/{reservedStockId}/stock_item | Retrieve the stock item associated to the reserved stock *StockItemsApi* | [**GETSkuIdStockItems**](docs/StockItemsApi.md#getskuidstockitems) | **Get** /skus/{skuId}/stock_items | Retrieve the stock items associated to the SKU *StockItemsApi* | [**GETStockItems**](docs/StockItemsApi.md#getstockitems) | **Get** /stock_items | List all stock items *StockItemsApi* | [**GETStockItemsStockItemId**](docs/StockItemsApi.md#getstockitemsstockitemid) | **Get** /stock_items/{stockItemId} | Retrieve a stock item *StockItemsApi* | [**GETStockLineItemIdStockItem**](docs/StockItemsApi.md#getstocklineitemidstockitem) | **Get** /stock_line_items/{stockLineItemId}/stock_item | Retrieve the stock item associated to the stock line item *StockItemsApi* | [**GETStockLocationIdStockItems**](docs/StockItemsApi.md#getstocklocationidstockitems) | **Get** /stock_locations/{stockLocationId}/stock_items | Retrieve the stock items associated to the stock location +*StockItemsApi* | [**GETStockReservationIdStockItem**](docs/StockItemsApi.md#getstockreservationidstockitem) | **Get** /stock_reservations/{stockReservationId}/stock_item | Retrieve the stock item associated to the stock reservation *StockItemsApi* | [**PATCHStockItemsStockItemId**](docs/StockItemsApi.md#patchstockitemsstockitemid) | **Patch** /stock_items/{stockItemId} | Update a stock item *StockItemsApi* | [**POSTStockItems**](docs/StockItemsApi.md#poststockitems) | **Post** /stock_items | Create a stock item +*StockLineItemsApi* | [**DELETEStockLineItemsStockLineItemId**](docs/StockLineItemsApi.md#deletestocklineitemsstocklineitemid) | **Delete** /stock_line_items/{stockLineItemId} | Delete a stock line item *StockLineItemsApi* | [**GETLineItemIdStockLineItems**](docs/StockLineItemsApi.md#getlineitemidstocklineitems) | **Get** /line_items/{lineItemId}/stock_line_items | Retrieve the stock line items associated to the line item +*StockLineItemsApi* | [**GETOrderIdStockLineItems**](docs/StockLineItemsApi.md#getorderidstocklineitems) | **Get** /orders/{orderId}/stock_line_items | Retrieve the stock line items associated to the order *StockLineItemsApi* | [**GETParcelLineItemIdStockLineItem**](docs/StockLineItemsApi.md#getparcellineitemidstocklineitem) | **Get** /parcel_line_items/{parcelLineItemId}/stock_line_item | Retrieve the stock line item associated to the parcel line item *StockLineItemsApi* | [**GETShipmentIdStockLineItems**](docs/StockLineItemsApi.md#getshipmentidstocklineitems) | **Get** /shipments/{shipmentId}/stock_line_items | Retrieve the stock line items associated to the shipment *StockLineItemsApi* | [**GETStockLineItems**](docs/StockLineItemsApi.md#getstocklineitems) | **Get** /stock_line_items | List all stock line items *StockLineItemsApi* | [**GETStockLineItemsStockLineItemId**](docs/StockLineItemsApi.md#getstocklineitemsstocklineitemid) | **Get** /stock_line_items/{stockLineItemId} | Retrieve a stock line item +*StockLineItemsApi* | [**GETStockReservationIdStockLineItem**](docs/StockLineItemsApi.md#getstockreservationidstocklineitem) | **Get** /stock_reservations/{stockReservationId}/stock_line_item | Retrieve the stock line item associated to the stock reservation +*StockLineItemsApi* | [**PATCHStockLineItemsStockLineItemId**](docs/StockLineItemsApi.md#patchstocklineitemsstocklineitemid) | **Patch** /stock_line_items/{stockLineItemId} | Update a stock line item +*StockLineItemsApi* | [**POSTStockLineItems**](docs/StockLineItemsApi.md#poststocklineitems) | **Post** /stock_line_items | Create a stock line item *StockLocationsApi* | [**DELETEStockLocationsStockLocationId**](docs/StockLocationsApi.md#deletestocklocationsstocklocationid) | **Delete** /stock_locations/{stockLocationId} | Delete a stock location *StockLocationsApi* | [**GETDeliveryLeadTimeIdStockLocation**](docs/StockLocationsApi.md#getdeliveryleadtimeidstocklocation) | **Get** /delivery_lead_times/{deliveryLeadTimeId}/stock_location | Retrieve the stock location associated to the delivery lead time *StockLocationsApi* | [**GETInventoryReturnLocationIdStockLocation**](docs/StockLocationsApi.md#getinventoryreturnlocationidstocklocation) | **Get** /inventory_return_locations/{inventoryReturnLocationId}/stock_location | Retrieve the stock location associated to the inventory return location *StockLocationsApi* | [**GETInventoryStockLocationIdStockLocation**](docs/StockLocationsApi.md#getinventorystocklocationidstocklocation) | **Get** /inventory_stock_locations/{inventoryStockLocationId}/stock_location | Retrieve the stock location associated to the inventory stock location *StockLocationsApi* | [**GETPackageIdStockLocation**](docs/StockLocationsApi.md#getpackageidstocklocation) | **Get** /packages/{packageId}/stock_location | Retrieve the stock location associated to the package +*StockLocationsApi* | [**GETPriceIdJwtStockLocations**](docs/StockLocationsApi.md#getpriceidjwtstocklocations) | **Get** /prices/{priceId}/jwt_stock_locations | Retrieve the jwt stock locations associated to the price *StockLocationsApi* | [**GETReturnIdStockLocation**](docs/StockLocationsApi.md#getreturnidstocklocation) | **Get** /returns/{returnId}/stock_location | Retrieve the stock location associated to the return *StockLocationsApi* | [**GETShipmentIdStockLocation**](docs/StockLocationsApi.md#getshipmentidstocklocation) | **Get** /shipments/{shipmentId}/stock_location | Retrieve the stock location associated to the shipment *StockLocationsApi* | [**GETShippingMethodIdStockLocation**](docs/StockLocationsApi.md#getshippingmethodidstocklocation) | **Get** /shipping_methods/{shippingMethodId}/stock_location | Retrieve the stock location associated to the shipping method +*StockLocationsApi* | [**GETSkuIdJwtStockLocations**](docs/StockLocationsApi.md#getskuidjwtstocklocations) | **Get** /skus/{skuId}/jwt_stock_locations | Retrieve the jwt stock locations associated to the SKU *StockLocationsApi* | [**GETStockItemIdStockLocation**](docs/StockLocationsApi.md#getstockitemidstocklocation) | **Get** /stock_items/{stockItemId}/stock_location | Retrieve the stock location associated to the stock item *StockLocationsApi* | [**GETStockLocations**](docs/StockLocationsApi.md#getstocklocations) | **Get** /stock_locations | List all stock locations *StockLocationsApi* | [**GETStockLocationsStockLocationId**](docs/StockLocationsApi.md#getstocklocationsstocklocationid) | **Get** /stock_locations/{stockLocationId} | Retrieve a stock location @@ -1221,10 +1588,24 @@ Class | Method | HTTP request | Description *StockLocationsApi* | [**GETStockTransferIdOriginStockLocation**](docs/StockLocationsApi.md#getstocktransferidoriginstocklocation) | **Get** /stock_transfers/{stockTransferId}/origin_stock_location | Retrieve the origin stock location associated to the stock transfer *StockLocationsApi* | [**PATCHStockLocationsStockLocationId**](docs/StockLocationsApi.md#patchstocklocationsstocklocationid) | **Patch** /stock_locations/{stockLocationId} | Update a stock location *StockLocationsApi* | [**POSTStockLocations**](docs/StockLocationsApi.md#poststocklocations) | **Post** /stock_locations | Create a stock location +*StockReservationsApi* | [**DELETEStockReservationsStockReservationId**](docs/StockReservationsApi.md#deletestockreservationsstockreservationid) | **Delete** /stock_reservations/{stockReservationId} | Delete a stock reservation +*StockReservationsApi* | [**GETLineItemIdStockReservations**](docs/StockReservationsApi.md#getlineitemidstockreservations) | **Get** /line_items/{lineItemId}/stock_reservations | Retrieve the stock reservations associated to the line item +*StockReservationsApi* | [**GETOrderIdStockReservations**](docs/StockReservationsApi.md#getorderidstockreservations) | **Get** /orders/{orderId}/stock_reservations | Retrieve the stock reservations associated to the order +*StockReservationsApi* | [**GETReservedStockIdStockReservations**](docs/StockReservationsApi.md#getreservedstockidstockreservations) | **Get** /reserved_stocks/{reservedStockId}/stock_reservations | Retrieve the stock reservations associated to the reserved stock +*StockReservationsApi* | [**GETSkuIdStockReservations**](docs/StockReservationsApi.md#getskuidstockreservations) | **Get** /skus/{skuId}/stock_reservations | Retrieve the stock reservations associated to the SKU +*StockReservationsApi* | [**GETStockItemIdStockReservations**](docs/StockReservationsApi.md#getstockitemidstockreservations) | **Get** /stock_items/{stockItemId}/stock_reservations | Retrieve the stock reservations associated to the stock item +*StockReservationsApi* | [**GETStockLineItemIdStockReservation**](docs/StockReservationsApi.md#getstocklineitemidstockreservation) | **Get** /stock_line_items/{stockLineItemId}/stock_reservation | Retrieve the stock reservation associated to the stock line item +*StockReservationsApi* | [**GETStockReservations**](docs/StockReservationsApi.md#getstockreservations) | **Get** /stock_reservations | List all stock reservations +*StockReservationsApi* | [**GETStockReservationsStockReservationId**](docs/StockReservationsApi.md#getstockreservationsstockreservationid) | **Get** /stock_reservations/{stockReservationId} | Retrieve a stock reservation +*StockReservationsApi* | [**GETStockTransferIdStockReservation**](docs/StockReservationsApi.md#getstocktransferidstockreservation) | **Get** /stock_transfers/{stockTransferId}/stock_reservation | Retrieve the stock reservation associated to the stock transfer +*StockReservationsApi* | [**PATCHStockReservationsStockReservationId**](docs/StockReservationsApi.md#patchstockreservationsstockreservationid) | **Patch** /stock_reservations/{stockReservationId} | Update a stock reservation +*StockReservationsApi* | [**POSTStockReservations**](docs/StockReservationsApi.md#poststockreservations) | **Post** /stock_reservations | Create a stock reservation *StockTransfersApi* | [**DELETEStockTransfersStockTransferId**](docs/StockTransfersApi.md#deletestocktransfersstocktransferid) | **Delete** /stock_transfers/{stockTransferId} | Delete a stock transfer *StockTransfersApi* | [**GETLineItemIdStockTransfers**](docs/StockTransfersApi.md#getlineitemidstocktransfers) | **Get** /line_items/{lineItemId}/stock_transfers | Retrieve the stock transfers associated to the line item +*StockTransfersApi* | [**GETOrderIdStockTransfers**](docs/StockTransfersApi.md#getorderidstocktransfers) | **Get** /orders/{orderId}/stock_transfers | Retrieve the stock transfers associated to the order *StockTransfersApi* | [**GETShipmentIdStockTransfers**](docs/StockTransfersApi.md#getshipmentidstocktransfers) | **Get** /shipments/{shipmentId}/stock_transfers | Retrieve the stock transfers associated to the shipment *StockTransfersApi* | [**GETStockLocationIdStockTransfers**](docs/StockTransfersApi.md#getstocklocationidstocktransfers) | **Get** /stock_locations/{stockLocationId}/stock_transfers | Retrieve the stock transfers associated to the stock location +*StockTransfersApi* | [**GETStockReservationIdStockTransfer**](docs/StockTransfersApi.md#getstockreservationidstocktransfer) | **Get** /stock_reservations/{stockReservationId}/stock_transfer | Retrieve the stock transfer associated to the stock reservation *StockTransfersApi* | [**GETStockTransfers**](docs/StockTransfersApi.md#getstocktransfers) | **Get** /stock_transfers | List all stock transfers *StockTransfersApi* | [**GETStockTransfersStockTransferId**](docs/StockTransfersApi.md#getstocktransfersstocktransferid) | **Get** /stock_transfers/{stockTransferId} | Retrieve a stock transfer *StockTransfersApi* | [**PATCHStockTransfersStockTransferId**](docs/StockTransfersApi.md#patchstocktransfersstocktransferid) | **Patch** /stock_transfers/{stockTransferId} | Update a stock transfer @@ -1247,6 +1628,33 @@ Class | Method | HTTP request | Description *SubscriptionModelsApi* | [**GETSubscriptionModelsSubscriptionModelId**](docs/SubscriptionModelsApi.md#getsubscriptionmodelssubscriptionmodelid) | **Get** /subscription_models/{subscriptionModelId} | Retrieve a subscription model *SubscriptionModelsApi* | [**PATCHSubscriptionModelsSubscriptionModelId**](docs/SubscriptionModelsApi.md#patchsubscriptionmodelssubscriptionmodelid) | **Patch** /subscription_models/{subscriptionModelId} | Update a subscription model *SubscriptionModelsApi* | [**POSTSubscriptionModels**](docs/SubscriptionModelsApi.md#postsubscriptionmodels) | **Post** /subscription_models | Create a subscription model +*TagsApi* | [**DELETETagsTagId**](docs/TagsApi.md#deletetagstagid) | **Delete** /tags/{tagId} | Delete a tag +*TagsApi* | [**GETAddressIdTags**](docs/TagsApi.md#getaddressidtags) | **Get** /addresses/{addressId}/tags | Retrieve the tags associated to the address +*TagsApi* | [**GETBundleIdTags**](docs/TagsApi.md#getbundleidtags) | **Get** /bundles/{bundleId}/tags | Retrieve the tags associated to the bundle +*TagsApi* | [**GETBuyXPayYPromotionIdTags**](docs/TagsApi.md#getbuyxpayypromotionidtags) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/tags | Retrieve the tags associated to the buy x pay y promotion +*TagsApi* | [**GETCouponIdTags**](docs/TagsApi.md#getcouponidtags) | **Get** /coupons/{couponId}/tags | Retrieve the tags associated to the coupon +*TagsApi* | [**GETCustomerIdTags**](docs/TagsApi.md#getcustomeridtags) | **Get** /customers/{customerId}/tags | Retrieve the tags associated to the customer +*TagsApi* | [**GETExternalPromotionIdTags**](docs/TagsApi.md#getexternalpromotionidtags) | **Get** /external_promotions/{externalPromotionId}/tags | Retrieve the tags associated to the external promotion +*TagsApi* | [**GETFixedAmountPromotionIdTags**](docs/TagsApi.md#getfixedamountpromotionidtags) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/tags | Retrieve the tags associated to the fixed amount promotion +*TagsApi* | [**GETFixedPricePromotionIdTags**](docs/TagsApi.md#getfixedpricepromotionidtags) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/tags | Retrieve the tags associated to the fixed price promotion +*TagsApi* | [**GETFlexPromotionIdTags**](docs/TagsApi.md#getflexpromotionidtags) | **Get** /flex_promotions/{flexPromotionId}/tags | Retrieve the tags associated to the flex promotion +*TagsApi* | [**GETFreeGiftPromotionIdTags**](docs/TagsApi.md#getfreegiftpromotionidtags) | **Get** /free_gift_promotions/{freeGiftPromotionId}/tags | Retrieve the tags associated to the free gift promotion +*TagsApi* | [**GETFreeShippingPromotionIdTags**](docs/TagsApi.md#getfreeshippingpromotionidtags) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/tags | Retrieve the tags associated to the free shipping promotion +*TagsApi* | [**GETGiftCardIdTags**](docs/TagsApi.md#getgiftcardidtags) | **Get** /gift_cards/{giftCardId}/tags | Retrieve the tags associated to the gift card +*TagsApi* | [**GETLineItemIdTags**](docs/TagsApi.md#getlineitemidtags) | **Get** /line_items/{lineItemId}/tags | Retrieve the tags associated to the line item +*TagsApi* | [**GETLineItemOptionIdTags**](docs/TagsApi.md#getlineitemoptionidtags) | **Get** /line_item_options/{lineItemOptionId}/tags | Retrieve the tags associated to the line item option +*TagsApi* | [**GETOrderIdTags**](docs/TagsApi.md#getorderidtags) | **Get** /orders/{orderId}/tags | Retrieve the tags associated to the order +*TagsApi* | [**GETOrderSubscriptionIdTags**](docs/TagsApi.md#getordersubscriptionidtags) | **Get** /order_subscriptions/{orderSubscriptionId}/tags | Retrieve the tags associated to the order subscription +*TagsApi* | [**GETPercentageDiscountPromotionIdTags**](docs/TagsApi.md#getpercentagediscountpromotionidtags) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/tags | Retrieve the tags associated to the percentage discount promotion +*TagsApi* | [**GETPromotionIdTags**](docs/TagsApi.md#getpromotionidtags) | **Get** /promotions/{promotionId}/tags | Retrieve the tags associated to the promotion +*TagsApi* | [**GETReturnIdTags**](docs/TagsApi.md#getreturnidtags) | **Get** /returns/{returnId}/tags | Retrieve the tags associated to the return +*TagsApi* | [**GETShipmentIdTags**](docs/TagsApi.md#getshipmentidtags) | **Get** /shipments/{shipmentId}/tags | Retrieve the tags associated to the shipment +*TagsApi* | [**GETSkuIdTags**](docs/TagsApi.md#getskuidtags) | **Get** /skus/{skuId}/tags | Retrieve the tags associated to the SKU +*TagsApi* | [**GETSkuOptionIdTags**](docs/TagsApi.md#getskuoptionidtags) | **Get** /sku_options/{skuOptionId}/tags | Retrieve the tags associated to the SKU option +*TagsApi* | [**GETTags**](docs/TagsApi.md#gettags) | **Get** /tags | List all tags +*TagsApi* | [**GETTagsTagId**](docs/TagsApi.md#gettagstagid) | **Get** /tags/{tagId} | Retrieve a tag +*TagsApi* | [**PATCHTagsTagId**](docs/TagsApi.md#patchtagstagid) | **Patch** /tags/{tagId} | Update a tag +*TagsApi* | [**POSTTags**](docs/TagsApi.md#posttags) | **Post** /tags | Create a tag *TaxCalculatorsApi* | [**GETMarketIdTaxCalculator**](docs/TaxCalculatorsApi.md#getmarketidtaxcalculator) | **Get** /markets/{marketId}/tax_calculator | Retrieve the tax calculator associated to the market *TaxCalculatorsApi* | [**GETTaxCalculators**](docs/TaxCalculatorsApi.md#gettaxcalculators) | **Get** /tax_calculators | List all tax calculators *TaxCalculatorsApi* | [**GETTaxCalculatorsTaxCalculatorId**](docs/TaxCalculatorsApi.md#gettaxcalculatorstaxcalculatorid) | **Get** /tax_calculators/{taxCalculatorId} | Retrieve a tax calculator @@ -1270,10 +1678,110 @@ Class | Method | HTTP request | Description *TaxjarAccountsApi* | [**POSTTaxjarAccounts**](docs/TaxjarAccountsApi.md#posttaxjaraccounts) | **Post** /taxjar_accounts | Create a taxjar account *TransactionsApi* | [**GETTransactions**](docs/TransactionsApi.md#gettransactions) | **Get** /transactions | List all transactions *TransactionsApi* | [**GETTransactionsTransactionId**](docs/TransactionsApi.md#gettransactionstransactionid) | **Get** /transactions/{transactionId} | Retrieve a transaction +*VersionsApi* | [**GETAddressIdVersions**](docs/VersionsApi.md#getaddressidversions) | **Get** /addresses/{addressId}/versions | Retrieve the versions associated to the address +*VersionsApi* | [**GETAdjustmentIdVersions**](docs/VersionsApi.md#getadjustmentidversions) | **Get** /adjustments/{adjustmentId}/versions | Retrieve the versions associated to the adjustment +*VersionsApi* | [**GETAdyenGatewayIdVersions**](docs/VersionsApi.md#getadyengatewayidversions) | **Get** /adyen_gateways/{adyenGatewayId}/versions | Retrieve the versions associated to the adyen gateway +*VersionsApi* | [**GETAdyenPaymentIdVersions**](docs/VersionsApi.md#getadyenpaymentidversions) | **Get** /adyen_payments/{adyenPaymentId}/versions | Retrieve the versions associated to the adyen payment +*VersionsApi* | [**GETAuthorizationIdVersions**](docs/VersionsApi.md#getauthorizationidversions) | **Get** /authorizations/{authorizationId}/versions | Retrieve the versions associated to the authorization +*VersionsApi* | [**GETAvalaraAccountIdVersions**](docs/VersionsApi.md#getavalaraaccountidversions) | **Get** /avalara_accounts/{avalaraAccountId}/versions | Retrieve the versions associated to the avalara account +*VersionsApi* | [**GETAxerveGatewayIdVersions**](docs/VersionsApi.md#getaxervegatewayidversions) | **Get** /axerve_gateways/{axerveGatewayId}/versions | Retrieve the versions associated to the axerve gateway +*VersionsApi* | [**GETAxervePaymentIdVersions**](docs/VersionsApi.md#getaxervepaymentidversions) | **Get** /axerve_payments/{axervePaymentId}/versions | Retrieve the versions associated to the axerve payment +*VersionsApi* | [**GETBillingInfoValidationRuleIdVersions**](docs/VersionsApi.md#getbillinginfovalidationruleidversions) | **Get** /billing_info_validation_rules/{billingInfoValidationRuleId}/versions | Retrieve the versions associated to the billing info validation rule +*VersionsApi* | [**GETBraintreeGatewayIdVersions**](docs/VersionsApi.md#getbraintreegatewayidversions) | **Get** /braintree_gateways/{braintreeGatewayId}/versions | Retrieve the versions associated to the braintree gateway +*VersionsApi* | [**GETBraintreePaymentIdVersions**](docs/VersionsApi.md#getbraintreepaymentidversions) | **Get** /braintree_payments/{braintreePaymentId}/versions | Retrieve the versions associated to the braintree payment +*VersionsApi* | [**GETBundleIdVersions**](docs/VersionsApi.md#getbundleidversions) | **Get** /bundles/{bundleId}/versions | Retrieve the versions associated to the bundle +*VersionsApi* | [**GETBuyXPayYPromotionIdVersions**](docs/VersionsApi.md#getbuyxpayypromotionidversions) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/versions | Retrieve the versions associated to the buy x pay y promotion +*VersionsApi* | [**GETCaptureIdVersions**](docs/VersionsApi.md#getcaptureidversions) | **Get** /captures/{captureId}/versions | Retrieve the versions associated to the capture +*VersionsApi* | [**GETCarrierAccountIdVersions**](docs/VersionsApi.md#getcarrieraccountidversions) | **Get** /carrier_accounts/{carrierAccountId}/versions | Retrieve the versions associated to the carrier account +*VersionsApi* | [**GETCheckoutComGatewayIdVersions**](docs/VersionsApi.md#getcheckoutcomgatewayidversions) | **Get** /checkout_com_gateways/{checkoutComGatewayId}/versions | Retrieve the versions associated to the checkout.com gateway +*VersionsApi* | [**GETCheckoutComPaymentIdVersions**](docs/VersionsApi.md#getcheckoutcompaymentidversions) | **Get** /checkout_com_payments/{checkoutComPaymentId}/versions | Retrieve the versions associated to the checkout.com payment +*VersionsApi* | [**GETCleanupIdVersions**](docs/VersionsApi.md#getcleanupidversions) | **Get** /cleanups/{cleanupId}/versions | Retrieve the versions associated to the cleanup +*VersionsApi* | [**GETCouponCodesPromotionRuleIdVersions**](docs/VersionsApi.md#getcouponcodespromotionruleidversions) | **Get** /coupon_codes_promotion_rules/{couponCodesPromotionRuleId}/versions | Retrieve the versions associated to the coupon codes promotion rule +*VersionsApi* | [**GETCouponIdVersions**](docs/VersionsApi.md#getcouponidversions) | **Get** /coupons/{couponId}/versions | Retrieve the versions associated to the coupon +*VersionsApi* | [**GETCouponRecipientIdVersions**](docs/VersionsApi.md#getcouponrecipientidversions) | **Get** /coupon_recipients/{couponRecipientId}/versions | Retrieve the versions associated to the coupon recipient +*VersionsApi* | [**GETCustomPromotionRuleIdVersions**](docs/VersionsApi.md#getcustompromotionruleidversions) | **Get** /custom_promotion_rules/{customPromotionRuleId}/versions | Retrieve the versions associated to the custom promotion rule +*VersionsApi* | [**GETCustomerAddressIdVersions**](docs/VersionsApi.md#getcustomeraddressidversions) | **Get** /customer_addresses/{customerAddressId}/versions | Retrieve the versions associated to the customer address +*VersionsApi* | [**GETCustomerGroupIdVersions**](docs/VersionsApi.md#getcustomergroupidversions) | **Get** /customer_groups/{customerGroupId}/versions | Retrieve the versions associated to the customer group +*VersionsApi* | [**GETCustomerPaymentSourceIdVersions**](docs/VersionsApi.md#getcustomerpaymentsourceidversions) | **Get** /customer_payment_sources/{customerPaymentSourceId}/versions | Retrieve the versions associated to the customer payment source +*VersionsApi* | [**GETCustomerSubscriptionIdVersions**](docs/VersionsApi.md#getcustomersubscriptionidversions) | **Get** /customer_subscriptions/{customerSubscriptionId}/versions | Retrieve the versions associated to the customer subscription +*VersionsApi* | [**GETDeliveryLeadTimeIdVersions**](docs/VersionsApi.md#getdeliveryleadtimeidversions) | **Get** /delivery_lead_times/{deliveryLeadTimeId}/versions | Retrieve the versions associated to the delivery lead time +*VersionsApi* | [**GETExternalGatewayIdVersions**](docs/VersionsApi.md#getexternalgatewayidversions) | **Get** /external_gateways/{externalGatewayId}/versions | Retrieve the versions associated to the external gateway +*VersionsApi* | [**GETExternalPaymentIdVersions**](docs/VersionsApi.md#getexternalpaymentidversions) | **Get** /external_payments/{externalPaymentId}/versions | Retrieve the versions associated to the external payment +*VersionsApi* | [**GETExternalPromotionIdVersions**](docs/VersionsApi.md#getexternalpromotionidversions) | **Get** /external_promotions/{externalPromotionId}/versions | Retrieve the versions associated to the external promotion +*VersionsApi* | [**GETExternalTaxCalculatorIdVersions**](docs/VersionsApi.md#getexternaltaxcalculatoridversions) | **Get** /external_tax_calculators/{externalTaxCalculatorId}/versions | Retrieve the versions associated to the external tax calculator +*VersionsApi* | [**GETFixedAmountPromotionIdVersions**](docs/VersionsApi.md#getfixedamountpromotionidversions) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/versions | Retrieve the versions associated to the fixed amount promotion +*VersionsApi* | [**GETFixedPricePromotionIdVersions**](docs/VersionsApi.md#getfixedpricepromotionidversions) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/versions | Retrieve the versions associated to the fixed price promotion +*VersionsApi* | [**GETFlexPromotionIdVersions**](docs/VersionsApi.md#getflexpromotionidversions) | **Get** /flex_promotions/{flexPromotionId}/versions | Retrieve the versions associated to the flex promotion +*VersionsApi* | [**GETFreeGiftPromotionIdVersions**](docs/VersionsApi.md#getfreegiftpromotionidversions) | **Get** /free_gift_promotions/{freeGiftPromotionId}/versions | Retrieve the versions associated to the free gift promotion +*VersionsApi* | [**GETFreeShippingPromotionIdVersions**](docs/VersionsApi.md#getfreeshippingpromotionidversions) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/versions | Retrieve the versions associated to the free shipping promotion +*VersionsApi* | [**GETGiftCardIdVersions**](docs/VersionsApi.md#getgiftcardidversions) | **Get** /gift_cards/{giftCardId}/versions | Retrieve the versions associated to the gift card +*VersionsApi* | [**GETGiftCardRecipientIdVersions**](docs/VersionsApi.md#getgiftcardrecipientidversions) | **Get** /gift_card_recipients/{giftCardRecipientId}/versions | Retrieve the versions associated to the gift card recipient +*VersionsApi* | [**GETInStockSubscriptionIdVersions**](docs/VersionsApi.md#getinstocksubscriptionidversions) | **Get** /in_stock_subscriptions/{inStockSubscriptionId}/versions | Retrieve the versions associated to the in stock subscription +*VersionsApi* | [**GETInventoryModelIdVersions**](docs/VersionsApi.md#getinventorymodelidversions) | **Get** /inventory_models/{inventoryModelId}/versions | Retrieve the versions associated to the inventory model +*VersionsApi* | [**GETInventoryReturnLocationIdVersions**](docs/VersionsApi.md#getinventoryreturnlocationidversions) | **Get** /inventory_return_locations/{inventoryReturnLocationId}/versions | Retrieve the versions associated to the inventory return location +*VersionsApi* | [**GETInventoryStockLocationIdVersions**](docs/VersionsApi.md#getinventorystocklocationidversions) | **Get** /inventory_stock_locations/{inventoryStockLocationId}/versions | Retrieve the versions associated to the inventory stock location +*VersionsApi* | [**GETKlarnaGatewayIdVersions**](docs/VersionsApi.md#getklarnagatewayidversions) | **Get** /klarna_gateways/{klarnaGatewayId}/versions | Retrieve the versions associated to the klarna gateway +*VersionsApi* | [**GETKlarnaPaymentIdVersions**](docs/VersionsApi.md#getklarnapaymentidversions) | **Get** /klarna_payments/{klarnaPaymentId}/versions | Retrieve the versions associated to the klarna payment +*VersionsApi* | [**GETManualGatewayIdVersions**](docs/VersionsApi.md#getmanualgatewayidversions) | **Get** /manual_gateways/{manualGatewayId}/versions | Retrieve the versions associated to the manual gateway +*VersionsApi* | [**GETManualTaxCalculatorIdVersions**](docs/VersionsApi.md#getmanualtaxcalculatoridversions) | **Get** /manual_tax_calculators/{manualTaxCalculatorId}/versions | Retrieve the versions associated to the manual tax calculator +*VersionsApi* | [**GETMarketIdVersions**](docs/VersionsApi.md#getmarketidversions) | **Get** /markets/{marketId}/versions | Retrieve the versions associated to the market +*VersionsApi* | [**GETMerchantIdVersions**](docs/VersionsApi.md#getmerchantidversions) | **Get** /merchants/{merchantId}/versions | Retrieve the versions associated to the merchant +*VersionsApi* | [**GETOrderAmountPromotionRuleIdVersions**](docs/VersionsApi.md#getorderamountpromotionruleidversions) | **Get** /order_amount_promotion_rules/{orderAmountPromotionRuleId}/versions | Retrieve the versions associated to the order amount promotion rule +*VersionsApi* | [**GETOrderIdVersions**](docs/VersionsApi.md#getorderidversions) | **Get** /orders/{orderId}/versions | Retrieve the versions associated to the order +*VersionsApi* | [**GETOrderSubscriptionIdVersions**](docs/VersionsApi.md#getordersubscriptionidversions) | **Get** /order_subscriptions/{orderSubscriptionId}/versions | Retrieve the versions associated to the order subscription +*VersionsApi* | [**GETPackageIdVersions**](docs/VersionsApi.md#getpackageidversions) | **Get** /packages/{packageId}/versions | Retrieve the versions associated to the package +*VersionsApi* | [**GETParcelIdVersions**](docs/VersionsApi.md#getparcelidversions) | **Get** /parcels/{parcelId}/versions | Retrieve the versions associated to the parcel +*VersionsApi* | [**GETParcelLineItemIdVersions**](docs/VersionsApi.md#getparcellineitemidversions) | **Get** /parcel_line_items/{parcelLineItemId}/versions | Retrieve the versions associated to the parcel line item +*VersionsApi* | [**GETPaymentGatewayIdVersions**](docs/VersionsApi.md#getpaymentgatewayidversions) | **Get** /payment_gateways/{paymentGatewayId}/versions | Retrieve the versions associated to the payment gateway +*VersionsApi* | [**GETPaymentMethodIdVersions**](docs/VersionsApi.md#getpaymentmethodidversions) | **Get** /payment_methods/{paymentMethodId}/versions | Retrieve the versions associated to the payment method +*VersionsApi* | [**GETPaypalGatewayIdVersions**](docs/VersionsApi.md#getpaypalgatewayidversions) | **Get** /paypal_gateways/{paypalGatewayId}/versions | Retrieve the versions associated to the paypal gateway +*VersionsApi* | [**GETPaypalPaymentIdVersions**](docs/VersionsApi.md#getpaypalpaymentidversions) | **Get** /paypal_payments/{paypalPaymentId}/versions | Retrieve the versions associated to the paypal payment +*VersionsApi* | [**GETPercentageDiscountPromotionIdVersions**](docs/VersionsApi.md#getpercentagediscountpromotionidversions) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/versions | Retrieve the versions associated to the percentage discount promotion +*VersionsApi* | [**GETPriceFrequencyTierIdVersions**](docs/VersionsApi.md#getpricefrequencytieridversions) | **Get** /price_frequency_tiers/{priceFrequencyTierId}/versions | Retrieve the versions associated to the price frequency tier +*VersionsApi* | [**GETPriceIdVersions**](docs/VersionsApi.md#getpriceidversions) | **Get** /prices/{priceId}/versions | Retrieve the versions associated to the price +*VersionsApi* | [**GETPriceListIdVersions**](docs/VersionsApi.md#getpricelistidversions) | **Get** /price_lists/{priceListId}/versions | Retrieve the versions associated to the price list +*VersionsApi* | [**GETPriceListSchedulerIdVersions**](docs/VersionsApi.md#getpricelistscheduleridversions) | **Get** /price_list_schedulers/{priceListSchedulerId}/versions | Retrieve the versions associated to the price list scheduler +*VersionsApi* | [**GETPriceTierIdVersions**](docs/VersionsApi.md#getpricetieridversions) | **Get** /price_tiers/{priceTierId}/versions | Retrieve the versions associated to the price tier +*VersionsApi* | [**GETPriceVolumeTierIdVersions**](docs/VersionsApi.md#getpricevolumetieridversions) | **Get** /price_volume_tiers/{priceVolumeTierId}/versions | Retrieve the versions associated to the price volume tier +*VersionsApi* | [**GETPromotionIdVersions**](docs/VersionsApi.md#getpromotionidversions) | **Get** /promotions/{promotionId}/versions | Retrieve the versions associated to the promotion +*VersionsApi* | [**GETPromotionRuleIdVersions**](docs/VersionsApi.md#getpromotionruleidversions) | **Get** /promotion_rules/{promotionRuleId}/versions | Retrieve the versions associated to the promotion rule +*VersionsApi* | [**GETRefundIdVersions**](docs/VersionsApi.md#getrefundidversions) | **Get** /refunds/{refundId}/versions | Retrieve the versions associated to the refund +*VersionsApi* | [**GETReservedStockIdVersions**](docs/VersionsApi.md#getreservedstockidversions) | **Get** /reserved_stocks/{reservedStockId}/versions | Retrieve the versions associated to the reserved stock +*VersionsApi* | [**GETReturnIdVersions**](docs/VersionsApi.md#getreturnidversions) | **Get** /returns/{returnId}/versions | Retrieve the versions associated to the return +*VersionsApi* | [**GETSatispayGatewayIdVersions**](docs/VersionsApi.md#getsatispaygatewayidversions) | **Get** /satispay_gateways/{satispayGatewayId}/versions | Retrieve the versions associated to the satispay gateway +*VersionsApi* | [**GETSatispayPaymentIdVersions**](docs/VersionsApi.md#getsatispaypaymentidversions) | **Get** /satispay_payments/{satispayPaymentId}/versions | Retrieve the versions associated to the satispay payment +*VersionsApi* | [**GETShipmentIdVersions**](docs/VersionsApi.md#getshipmentidversions) | **Get** /shipments/{shipmentId}/versions | Retrieve the versions associated to the shipment +*VersionsApi* | [**GETShippingCategoryIdVersions**](docs/VersionsApi.md#getshippingcategoryidversions) | **Get** /shipping_categories/{shippingCategoryId}/versions | Retrieve the versions associated to the shipping category +*VersionsApi* | [**GETShippingMethodIdVersions**](docs/VersionsApi.md#getshippingmethodidversions) | **Get** /shipping_methods/{shippingMethodId}/versions | Retrieve the versions associated to the shipping method +*VersionsApi* | [**GETShippingMethodTierIdVersions**](docs/VersionsApi.md#getshippingmethodtieridversions) | **Get** /shipping_method_tiers/{shippingMethodTierId}/versions | Retrieve the versions associated to the shipping method tier +*VersionsApi* | [**GETShippingWeightTierIdVersions**](docs/VersionsApi.md#getshippingweighttieridversions) | **Get** /shipping_weight_tiers/{shippingWeightTierId}/versions | Retrieve the versions associated to the shipping weight tier +*VersionsApi* | [**GETShippingZoneIdVersions**](docs/VersionsApi.md#getshippingzoneidversions) | **Get** /shipping_zones/{shippingZoneId}/versions | Retrieve the versions associated to the shipping zone +*VersionsApi* | [**GETSkuIdVersions**](docs/VersionsApi.md#getskuidversions) | **Get** /skus/{skuId}/versions | Retrieve the versions associated to the SKU +*VersionsApi* | [**GETSkuListIdVersions**](docs/VersionsApi.md#getskulistidversions) | **Get** /sku_lists/{skuListId}/versions | Retrieve the versions associated to the SKU list +*VersionsApi* | [**GETSkuListItemIdVersions**](docs/VersionsApi.md#getskulistitemidversions) | **Get** /sku_list_items/{skuListItemId}/versions | Retrieve the versions associated to the SKU list item +*VersionsApi* | [**GETSkuListPromotionRuleIdVersions**](docs/VersionsApi.md#getskulistpromotionruleidversions) | **Get** /sku_list_promotion_rules/{skuListPromotionRuleId}/versions | Retrieve the versions associated to the SKU list promotion rule +*VersionsApi* | [**GETSkuOptionIdVersions**](docs/VersionsApi.md#getskuoptionidversions) | **Get** /sku_options/{skuOptionId}/versions | Retrieve the versions associated to the SKU option +*VersionsApi* | [**GETStockItemIdVersions**](docs/VersionsApi.md#getstockitemidversions) | **Get** /stock_items/{stockItemId}/versions | Retrieve the versions associated to the stock item +*VersionsApi* | [**GETStockLineItemIdVersions**](docs/VersionsApi.md#getstocklineitemidversions) | **Get** /stock_line_items/{stockLineItemId}/versions | Retrieve the versions associated to the stock line item +*VersionsApi* | [**GETStockLocationIdVersions**](docs/VersionsApi.md#getstocklocationidversions) | **Get** /stock_locations/{stockLocationId}/versions | Retrieve the versions associated to the stock location +*VersionsApi* | [**GETStockTransferIdVersions**](docs/VersionsApi.md#getstocktransferidversions) | **Get** /stock_transfers/{stockTransferId}/versions | Retrieve the versions associated to the stock transfer +*VersionsApi* | [**GETStripeGatewayIdVersions**](docs/VersionsApi.md#getstripegatewayidversions) | **Get** /stripe_gateways/{stripeGatewayId}/versions | Retrieve the versions associated to the stripe gateway +*VersionsApi* | [**GETStripePaymentIdVersions**](docs/VersionsApi.md#getstripepaymentidversions) | **Get** /stripe_payments/{stripePaymentId}/versions | Retrieve the versions associated to the stripe payment +*VersionsApi* | [**GETTaxCalculatorIdVersions**](docs/VersionsApi.md#gettaxcalculatoridversions) | **Get** /tax_calculators/{taxCalculatorId}/versions | Retrieve the versions associated to the tax calculator +*VersionsApi* | [**GETTaxCategoryIdVersions**](docs/VersionsApi.md#gettaxcategoryidversions) | **Get** /tax_categories/{taxCategoryId}/versions | Retrieve the versions associated to the tax category +*VersionsApi* | [**GETTaxRuleIdVersions**](docs/VersionsApi.md#gettaxruleidversions) | **Get** /tax_rules/{taxRuleId}/versions | Retrieve the versions associated to the tax rule +*VersionsApi* | [**GETTaxjarAccountIdVersions**](docs/VersionsApi.md#gettaxjaraccountidversions) | **Get** /taxjar_accounts/{taxjarAccountId}/versions | Retrieve the versions associated to the taxjar account +*VersionsApi* | [**GETTransactionIdVersions**](docs/VersionsApi.md#gettransactionidversions) | **Get** /transactions/{transactionId}/versions | Retrieve the versions associated to the transaction +*VersionsApi* | [**GETVersions**](docs/VersionsApi.md#getversions) | **Get** /versions | List all versions +*VersionsApi* | [**GETVersionsVersionId**](docs/VersionsApi.md#getversionsversionid) | **Get** /versions/{versionId} | Retrieve a version +*VersionsApi* | [**GETVoidIdVersions**](docs/VersionsApi.md#getvoididversions) | **Get** /voids/{voidId}/versions | Retrieve the versions associated to the void +*VersionsApi* | [**GETWebhookIdVersions**](docs/VersionsApi.md#getwebhookidversions) | **Get** /webhooks/{webhookId}/versions | Retrieve the versions associated to the webhook +*VersionsApi* | [**GETWireTransferIdVersions**](docs/VersionsApi.md#getwiretransferidversions) | **Get** /wire_transfers/{wireTransferId}/versions | Retrieve the versions associated to the wire transfer *VoidsApi* | [**GETAuthorizationIdVoids**](docs/VoidsApi.md#getauthorizationidvoids) | **Get** /authorizations/{authorizationId}/voids | Retrieve the voids associated to the authorization *VoidsApi* | [**GETOrderIdVoids**](docs/VoidsApi.md#getorderidvoids) | **Get** /orders/{orderId}/voids | Retrieve the voids associated to the order *VoidsApi* | [**GETVoids**](docs/VoidsApi.md#getvoids) | **Get** /voids | List all voids *VoidsApi* | [**GETVoidsVoidId**](docs/VoidsApi.md#getvoidsvoidid) | **Get** /voids/{voidId} | Retrieve a void +*VoidsApi* | [**PATCHVoidsVoidId**](docs/VoidsApi.md#patchvoidsvoidid) | **Patch** /voids/{voidId} | Update a void *WebhooksApi* | [**DELETEWebhooksWebhookId**](docs/WebhooksApi.md#deletewebhookswebhookid) | **Delete** /webhooks/{webhookId} | Delete a webhook *WebhooksApi* | [**GETEventCallbackIdWebhook**](docs/WebhooksApi.md#geteventcallbackidwebhook) | **Get** /event_callbacks/{eventCallbackId}/webhook | Retrieve the webhook associated to the event callback *WebhooksApi* | [**GETEventIdWebhooks**](docs/WebhooksApi.md#geteventidwebhooks) | **Get** /events/{eventId}/webhooks | Retrieve the webhooks associated to the event @@ -1295,16 +1803,24 @@ Class | Method | HTTP request | Description - [AddressCreateData](docs/AddressCreateData.md) - [AddressCreateDataRelationships](docs/AddressCreateDataRelationships.md) - [AddressCreateDataRelationshipsGeocoder](docs/AddressCreateDataRelationshipsGeocoder.md) + - [AddressCreateDataRelationshipsTags](docs/AddressCreateDataRelationshipsTags.md) - [AddressData](docs/AddressData.md) - [AddressDataRelationships](docs/AddressDataRelationships.md) + - [AddressDataRelationshipsEvents](docs/AddressDataRelationshipsEvents.md) + - [AddressDataRelationshipsEventsData](docs/AddressDataRelationshipsEventsData.md) - [AddressDataRelationshipsGeocoder](docs/AddressDataRelationshipsGeocoder.md) - [AddressDataRelationshipsGeocoderData](docs/AddressDataRelationshipsGeocoderData.md) + - [AddressDataRelationshipsTags](docs/AddressDataRelationshipsTags.md) + - [AddressDataRelationshipsTagsData](docs/AddressDataRelationshipsTagsData.md) + - [AddressDataRelationshipsVersions](docs/AddressDataRelationshipsVersions.md) + - [AddressDataRelationshipsVersionsData](docs/AddressDataRelationshipsVersionsData.md) - [AddressUpdate](docs/AddressUpdate.md) - [AddressUpdateData](docs/AddressUpdateData.md) - [Adjustment](docs/Adjustment.md) - [AdjustmentCreate](docs/AdjustmentCreate.md) - [AdjustmentCreateData](docs/AdjustmentCreateData.md) - [AdjustmentData](docs/AdjustmentData.md) + - [AdjustmentDataRelationships](docs/AdjustmentDataRelationships.md) - [AdjustmentUpdate](docs/AdjustmentUpdate.md) - [AdjustmentUpdateData](docs/AdjustmentUpdateData.md) - [AdyenGateway](docs/AdyenGateway.md) @@ -1351,10 +1867,10 @@ Class | Method | HTTP request | Description - [Authorization](docs/Authorization.md) - [AuthorizationData](docs/AuthorizationData.md) - [AuthorizationDataRelationships](docs/AuthorizationDataRelationships.md) + - [AuthorizationDataRelationshipsAttachments](docs/AuthorizationDataRelationshipsAttachments.md) + - [AuthorizationDataRelationshipsAttachmentsData](docs/AuthorizationDataRelationshipsAttachmentsData.md) - [AuthorizationDataRelationshipsCaptures](docs/AuthorizationDataRelationshipsCaptures.md) - [AuthorizationDataRelationshipsCapturesData](docs/AuthorizationDataRelationshipsCapturesData.md) - - [AuthorizationDataRelationshipsEvents](docs/AuthorizationDataRelationshipsEvents.md) - - [AuthorizationDataRelationshipsEventsData](docs/AuthorizationDataRelationshipsEventsData.md) - [AuthorizationDataRelationshipsVoids](docs/AuthorizationDataRelationshipsVoids.md) - [AuthorizationDataRelationshipsVoidsData](docs/AuthorizationDataRelationshipsVoidsData.md) - [AuthorizationUpdate](docs/AuthorizationUpdate.md) @@ -1366,8 +1882,6 @@ Class | Method | HTTP request | Description - [AvalaraAccountCreateDataRelationshipsTaxCategories](docs/AvalaraAccountCreateDataRelationshipsTaxCategories.md) - [AvalaraAccountData](docs/AvalaraAccountData.md) - [AvalaraAccountDataRelationships](docs/AvalaraAccountDataRelationships.md) - - [AvalaraAccountDataRelationshipsAttachments](docs/AvalaraAccountDataRelationshipsAttachments.md) - - [AvalaraAccountDataRelationshipsAttachmentsData](docs/AvalaraAccountDataRelationshipsAttachmentsData.md) - [AvalaraAccountDataRelationshipsMarkets](docs/AvalaraAccountDataRelationshipsMarkets.md) - [AvalaraAccountDataRelationshipsMarketsData](docs/AvalaraAccountDataRelationshipsMarketsData.md) - [AvalaraAccountDataRelationshipsTaxCategories](docs/AvalaraAccountDataRelationshipsTaxCategories.md) @@ -1440,6 +1954,32 @@ Class | Method | HTTP request | Description - [BundleDataRelationshipsSkusData](docs/BundleDataRelationshipsSkusData.md) - [BundleUpdate](docs/BundleUpdate.md) - [BundleUpdateData](docs/BundleUpdateData.md) + - [BundleUpdateDataRelationships](docs/BundleUpdateDataRelationships.md) + - [BuyXPayYPromotion](docs/BuyXPayYPromotion.md) + - [BuyXPayYPromotionCreate](docs/BuyXPayYPromotionCreate.md) + - [BuyXPayYPromotionCreateData](docs/BuyXPayYPromotionCreateData.md) + - [BuyXPayYPromotionCreateDataRelationships](docs/BuyXPayYPromotionCreateDataRelationships.md) + - [BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule](docs/BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule.md) + - [BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule](docs/BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule.md) + - [BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule](docs/BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule.md) + - [BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule](docs/BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule.md) + - [BuyXPayYPromotionData](docs/BuyXPayYPromotionData.md) + - [BuyXPayYPromotionDataRelationships](docs/BuyXPayYPromotionDataRelationships.md) + - [BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule](docs/BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule.md) + - [BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData](docs/BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData.md) + - [BuyXPayYPromotionDataRelationshipsCoupons](docs/BuyXPayYPromotionDataRelationshipsCoupons.md) + - [BuyXPayYPromotionDataRelationshipsCouponsData](docs/BuyXPayYPromotionDataRelationshipsCouponsData.md) + - [BuyXPayYPromotionDataRelationshipsCustomPromotionRule](docs/BuyXPayYPromotionDataRelationshipsCustomPromotionRule.md) + - [BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData](docs/BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData.md) + - [BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule](docs/BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule.md) + - [BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData](docs/BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData.md) + - [BuyXPayYPromotionDataRelationshipsPromotionRules](docs/BuyXPayYPromotionDataRelationshipsPromotionRules.md) + - [BuyXPayYPromotionDataRelationshipsPromotionRulesData](docs/BuyXPayYPromotionDataRelationshipsPromotionRulesData.md) + - [BuyXPayYPromotionDataRelationshipsSkuListPromotionRule](docs/BuyXPayYPromotionDataRelationshipsSkuListPromotionRule.md) + - [BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData](docs/BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData.md) + - [BuyXPayYPromotionUpdate](docs/BuyXPayYPromotionUpdate.md) + - [BuyXPayYPromotionUpdateData](docs/BuyXPayYPromotionUpdateData.md) + - [BuyXPayYPromotionUpdateDataRelationships](docs/BuyXPayYPromotionUpdateDataRelationships.md) - [Capture](docs/Capture.md) - [CaptureData](docs/CaptureData.md) - [CaptureDataRelationships](docs/CaptureDataRelationships.md) @@ -1447,10 +1987,16 @@ Class | Method | HTTP request | Description - [CaptureDataRelationshipsReferenceAuthorizationData](docs/CaptureDataRelationshipsReferenceAuthorizationData.md) - [CaptureDataRelationshipsRefunds](docs/CaptureDataRelationshipsRefunds.md) - [CaptureDataRelationshipsRefundsData](docs/CaptureDataRelationshipsRefundsData.md) + - [CaptureDataRelationshipsReturn](docs/CaptureDataRelationshipsReturn.md) + - [CaptureDataRelationshipsReturnData](docs/CaptureDataRelationshipsReturnData.md) - [CaptureUpdate](docs/CaptureUpdate.md) - [CaptureUpdateData](docs/CaptureUpdateData.md) - [CarrierAccount](docs/CarrierAccount.md) + - [CarrierAccountCreate](docs/CarrierAccountCreate.md) + - [CarrierAccountCreateData](docs/CarrierAccountCreateData.md) - [CarrierAccountData](docs/CarrierAccountData.md) + - [CarrierAccountUpdate](docs/CarrierAccountUpdate.md) + - [CarrierAccountUpdateData](docs/CarrierAccountUpdateData.md) - [CheckoutComGateway](docs/CheckoutComGateway.md) - [CheckoutComGatewayCreate](docs/CheckoutComGatewayCreate.md) - [CheckoutComGatewayCreateData](docs/CheckoutComGatewayCreateData.md) @@ -1473,6 +2019,8 @@ Class | Method | HTTP request | Description - [CleanupCreateData](docs/CleanupCreateData.md) - [CleanupData](docs/CleanupData.md) - [CleanupDataRelationships](docs/CleanupDataRelationships.md) + - [CleanupUpdate](docs/CleanupUpdate.md) + - [CleanupUpdateData](docs/CleanupUpdateData.md) - [Coupon](docs/Coupon.md) - [CouponCodesPromotionRule](docs/CouponCodesPromotionRule.md) - [CouponCodesPromotionRuleCreate](docs/CouponCodesPromotionRuleCreate.md) @@ -1482,8 +2030,6 @@ Class | Method | HTTP request | Description - [CouponCodesPromotionRuleCreateDataRelationshipsPromotion](docs/CouponCodesPromotionRuleCreateDataRelationshipsPromotion.md) - [CouponCodesPromotionRuleData](docs/CouponCodesPromotionRuleData.md) - [CouponCodesPromotionRuleDataRelationships](docs/CouponCodesPromotionRuleDataRelationships.md) - - [CouponCodesPromotionRuleDataRelationshipsCoupons](docs/CouponCodesPromotionRuleDataRelationshipsCoupons.md) - - [CouponCodesPromotionRuleDataRelationshipsCouponsData](docs/CouponCodesPromotionRuleDataRelationshipsCouponsData.md) - [CouponCodesPromotionRuleDataRelationshipsPromotion](docs/CouponCodesPromotionRuleDataRelationshipsPromotion.md) - [CouponCodesPromotionRuleDataRelationshipsPromotionData](docs/CouponCodesPromotionRuleDataRelationshipsPromotionData.md) - [CouponCodesPromotionRuleUpdate](docs/CouponCodesPromotionRuleUpdate.md) @@ -1492,11 +2038,11 @@ Class | Method | HTTP request | Description - [CouponCreate](docs/CouponCreate.md) - [CouponCreateData](docs/CouponCreateData.md) - [CouponCreateDataRelationships](docs/CouponCreateDataRelationships.md) - - [CouponCreateDataRelationshipsPromotionRule](docs/CouponCreateDataRelationshipsPromotionRule.md) + - [CouponCreateDataRelationshipsCouponRecipient](docs/CouponCreateDataRelationshipsCouponRecipient.md) - [CouponData](docs/CouponData.md) - [CouponDataRelationships](docs/CouponDataRelationships.md) - - [CouponDataRelationshipsPromotionRule](docs/CouponDataRelationshipsPromotionRule.md) - - [CouponDataRelationshipsPromotionRuleData](docs/CouponDataRelationshipsPromotionRuleData.md) + - [CouponDataRelationshipsCouponRecipient](docs/CouponDataRelationshipsCouponRecipient.md) + - [CouponDataRelationshipsCouponRecipientData](docs/CouponDataRelationshipsCouponRecipientData.md) - [CouponRecipient](docs/CouponRecipient.md) - [CouponRecipientCreate](docs/CouponRecipientCreate.md) - [CouponRecipientCreateData](docs/CouponRecipientCreateData.md) @@ -1511,6 +2057,15 @@ Class | Method | HTTP request | Description - [CouponUpdate](docs/CouponUpdate.md) - [CouponUpdateData](docs/CouponUpdateData.md) - [CouponUpdateDataRelationships](docs/CouponUpdateDataRelationships.md) + - [CustomPromotionRule](docs/CustomPromotionRule.md) + - [CustomPromotionRuleCreate](docs/CustomPromotionRuleCreate.md) + - [CustomPromotionRuleCreateData](docs/CustomPromotionRuleCreateData.md) + - [CustomPromotionRuleCreateDataRelationships](docs/CustomPromotionRuleCreateDataRelationships.md) + - [CustomPromotionRuleData](docs/CustomPromotionRuleData.md) + - [CustomPromotionRuleDataRelationships](docs/CustomPromotionRuleDataRelationships.md) + - [CustomPromotionRuleUpdate](docs/CustomPromotionRuleUpdate.md) + - [CustomPromotionRuleUpdateData](docs/CustomPromotionRuleUpdateData.md) + - [CustomPromotionRuleUpdateDataRelationships](docs/CustomPromotionRuleUpdateDataRelationships.md) - [Customer](docs/Customer.md) - [CustomerAddress](docs/CustomerAddress.md) - [CustomerAddressCreate](docs/CustomerAddressCreate.md) @@ -1538,8 +2093,6 @@ Class | Method | HTTP request | Description - [CustomerDataRelationshipsCustomerSubscriptionsData](docs/CustomerDataRelationshipsCustomerSubscriptionsData.md) - [CustomerDataRelationshipsOrderSubscriptions](docs/CustomerDataRelationshipsOrderSubscriptions.md) - [CustomerDataRelationshipsOrderSubscriptionsData](docs/CustomerDataRelationshipsOrderSubscriptionsData.md) - - [CustomerDataRelationshipsReturns](docs/CustomerDataRelationshipsReturns.md) - - [CustomerDataRelationshipsReturnsData](docs/CustomerDataRelationshipsReturnsData.md) - [CustomerGroup](docs/CustomerGroup.md) - [CustomerGroupCreate](docs/CustomerGroupCreate.md) - [CustomerGroupCreateData](docs/CustomerGroupCreateData.md) @@ -1558,6 +2111,7 @@ Class | Method | HTTP request | Description - [CustomerPaymentSourceCreate](docs/CustomerPaymentSourceCreate.md) - [CustomerPaymentSourceCreateData](docs/CustomerPaymentSourceCreateData.md) - [CustomerPaymentSourceCreateDataRelationships](docs/CustomerPaymentSourceCreateDataRelationships.md) + - [CustomerPaymentSourceCreateDataRelationshipsPaymentMethod](docs/CustomerPaymentSourceCreateDataRelationshipsPaymentMethod.md) - [CustomerPaymentSourceCreateDataRelationshipsPaymentSource](docs/CustomerPaymentSourceCreateDataRelationshipsPaymentSource.md) - [CustomerPaymentSourceData](docs/CustomerPaymentSourceData.md) - [CustomerPaymentSourceDataRelationships](docs/CustomerPaymentSourceDataRelationships.md) @@ -1570,6 +2124,7 @@ Class | Method | HTTP request | Description - [CustomerSubscriptionCreate](docs/CustomerSubscriptionCreate.md) - [CustomerSubscriptionCreateData](docs/CustomerSubscriptionCreateData.md) - [CustomerSubscriptionData](docs/CustomerSubscriptionData.md) + - [CustomerSubscriptionDataRelationships](docs/CustomerSubscriptionDataRelationships.md) - [CustomerSubscriptionUpdate](docs/CustomerSubscriptionUpdate.md) - [CustomerSubscriptionUpdateData](docs/CustomerSubscriptionUpdateData.md) - [CustomerUpdate](docs/CustomerUpdate.md) @@ -1599,10 +2154,15 @@ Class | Method | HTTP request | Description - [EventDataRelationships](docs/EventDataRelationships.md) - [EventDataRelationshipsLastEventCallbacks](docs/EventDataRelationshipsLastEventCallbacks.md) - [EventDataRelationshipsLastEventCallbacksData](docs/EventDataRelationshipsLastEventCallbacksData.md) + - [EventUpdate](docs/EventUpdate.md) + - [EventUpdateData](docs/EventUpdateData.md) - [Export](docs/Export.md) - [ExportCreate](docs/ExportCreate.md) - [ExportCreateData](docs/ExportCreateData.md) - [ExportData](docs/ExportData.md) + - [ExportDataRelationships](docs/ExportDataRelationships.md) + - [ExportUpdate](docs/ExportUpdate.md) + - [ExportUpdateData](docs/ExportUpdateData.md) - [ExternalGateway](docs/ExternalGateway.md) - [ExternalGatewayCreate](docs/ExternalGatewayCreate.md) - [ExternalGatewayCreateData](docs/ExternalGatewayCreateData.md) @@ -1622,18 +2182,7 @@ Class | Method | HTTP request | Description - [ExternalPromotion](docs/ExternalPromotion.md) - [ExternalPromotionCreate](docs/ExternalPromotionCreate.md) - [ExternalPromotionCreateData](docs/ExternalPromotionCreateData.md) - - [ExternalPromotionCreateDataRelationships](docs/ExternalPromotionCreateDataRelationships.md) - - [ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule](docs/ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule.md) - - [ExternalPromotionCreateDataRelationshipsPromotionRules](docs/ExternalPromotionCreateDataRelationshipsPromotionRules.md) - - [ExternalPromotionCreateDataRelationshipsSkuListPromotionRule](docs/ExternalPromotionCreateDataRelationshipsSkuListPromotionRule.md) - [ExternalPromotionData](docs/ExternalPromotionData.md) - - [ExternalPromotionDataRelationships](docs/ExternalPromotionDataRelationships.md) - - [ExternalPromotionDataRelationshipsOrderAmountPromotionRule](docs/ExternalPromotionDataRelationshipsOrderAmountPromotionRule.md) - - [ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData](docs/ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData.md) - - [ExternalPromotionDataRelationshipsPromotionRules](docs/ExternalPromotionDataRelationshipsPromotionRules.md) - - [ExternalPromotionDataRelationshipsPromotionRulesData](docs/ExternalPromotionDataRelationshipsPromotionRulesData.md) - - [ExternalPromotionDataRelationshipsSkuListPromotionRule](docs/ExternalPromotionDataRelationshipsSkuListPromotionRule.md) - - [ExternalPromotionDataRelationshipsSkuListPromotionRuleData](docs/ExternalPromotionDataRelationshipsSkuListPromotionRuleData.md) - [ExternalPromotionUpdate](docs/ExternalPromotionUpdate.md) - [ExternalPromotionUpdateData](docs/ExternalPromotionUpdateData.md) - [ExternalTaxCalculator](docs/ExternalTaxCalculator.md) @@ -1652,12 +2201,17 @@ Class | Method | HTTP request | Description - [FixedPricePromotion](docs/FixedPricePromotion.md) - [FixedPricePromotionCreate](docs/FixedPricePromotionCreate.md) - [FixedPricePromotionCreateData](docs/FixedPricePromotionCreateData.md) - - [FixedPricePromotionCreateDataRelationships](docs/FixedPricePromotionCreateDataRelationships.md) - [FixedPricePromotionData](docs/FixedPricePromotionData.md) - - [FixedPricePromotionDataRelationships](docs/FixedPricePromotionDataRelationships.md) - [FixedPricePromotionUpdate](docs/FixedPricePromotionUpdate.md) - [FixedPricePromotionUpdateData](docs/FixedPricePromotionUpdateData.md) - - [FixedPricePromotionUpdateDataRelationships](docs/FixedPricePromotionUpdateDataRelationships.md) + - [FlexPromotion](docs/FlexPromotion.md) + - [FlexPromotionCreate](docs/FlexPromotionCreate.md) + - [FlexPromotionCreateData](docs/FlexPromotionCreateData.md) + - [FlexPromotionCreateDataRelationships](docs/FlexPromotionCreateDataRelationships.md) + - [FlexPromotionData](docs/FlexPromotionData.md) + - [FlexPromotionDataRelationships](docs/FlexPromotionDataRelationships.md) + - [FlexPromotionUpdate](docs/FlexPromotionUpdate.md) + - [FlexPromotionUpdateData](docs/FlexPromotionUpdateData.md) - [FreeGiftPromotion](docs/FreeGiftPromotion.md) - [FreeGiftPromotionCreate](docs/FreeGiftPromotionCreate.md) - [FreeGiftPromotionCreateData](docs/FreeGiftPromotionCreateData.md) @@ -1668,6 +2222,7 @@ Class | Method | HTTP request | Description - [FreeShippingPromotionCreate](docs/FreeShippingPromotionCreate.md) - [FreeShippingPromotionCreateData](docs/FreeShippingPromotionCreateData.md) - [FreeShippingPromotionData](docs/FreeShippingPromotionData.md) + - [FreeShippingPromotionDataRelationships](docs/FreeShippingPromotionDataRelationships.md) - [FreeShippingPromotionUpdate](docs/FreeShippingPromotionUpdate.md) - [FreeShippingPromotionUpdateData](docs/FreeShippingPromotionUpdateData.md) - [GETAddresses200Response](docs/GETAddresses200Response.md) @@ -1698,10 +2253,10 @@ Class | Method | HTTP request | Description - [GETAuthorizationsAuthorizationId200ResponseData](docs/GETAuthorizationsAuthorizationId200ResponseData.md) - [GETAuthorizationsAuthorizationId200ResponseDataAttributes](docs/GETAuthorizationsAuthorizationId200ResponseDataAttributes.md) - [GETAuthorizationsAuthorizationId200ResponseDataRelationships](docs/GETAuthorizationsAuthorizationId200ResponseDataRelationships.md) + - [GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments](docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) + - [GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData](docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData.md) - [GETAuthorizationsAuthorizationId200ResponseDataRelationshipsCaptures](docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsCaptures.md) - [GETAuthorizationsAuthorizationId200ResponseDataRelationshipsCapturesData](docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsCapturesData.md) - - [GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents](docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) - - [GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData](docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData.md) - [GETAuthorizationsAuthorizationId200ResponseDataRelationshipsVoids](docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsVoids.md) - [GETAuthorizationsAuthorizationId200ResponseDataRelationshipsVoidsData](docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsVoidsData.md) - [GETAvalaraAccounts200Response](docs/GETAvalaraAccounts200Response.md) @@ -1736,6 +2291,10 @@ Class | Method | HTTP request | Description - [GETBundlesBundleId200Response](docs/GETBundlesBundleId200Response.md) - [GETBundlesBundleId200ResponseData](docs/GETBundlesBundleId200ResponseData.md) - [GETBundlesBundleId200ResponseDataAttributes](docs/GETBundlesBundleId200ResponseDataAttributes.md) + - [GETBuyXPayYPromotions200Response](docs/GETBuyXPayYPromotions200Response.md) + - [GETBuyXPayYPromotionsBuyXPayYPromotionId200Response](docs/GETBuyXPayYPromotionsBuyXPayYPromotionId200Response.md) + - [GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData](docs/GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData.md) + - [GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes](docs/GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes.md) - [GETCaptures200Response](docs/GETCaptures200Response.md) - [GETCapturesCaptureId200Response](docs/GETCapturesCaptureId200Response.md) - [GETCapturesCaptureId200ResponseData](docs/GETCapturesCaptureId200ResponseData.md) @@ -1745,6 +2304,8 @@ Class | Method | HTTP request | Description - [GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorizationData](docs/GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorizationData.md) - [GETCapturesCaptureId200ResponseDataRelationshipsRefunds](docs/GETCapturesCaptureId200ResponseDataRelationshipsRefunds.md) - [GETCapturesCaptureId200ResponseDataRelationshipsRefundsData](docs/GETCapturesCaptureId200ResponseDataRelationshipsRefundsData.md) + - [GETCapturesCaptureId200ResponseDataRelationshipsReturn](docs/GETCapturesCaptureId200ResponseDataRelationshipsReturn.md) + - [GETCapturesCaptureId200ResponseDataRelationshipsReturnData](docs/GETCapturesCaptureId200ResponseDataRelationshipsReturnData.md) - [GETCarrierAccounts200Response](docs/GETCarrierAccounts200Response.md) - [GETCarrierAccountsCarrierAccountId200Response](docs/GETCarrierAccountsCarrierAccountId200Response.md) - [GETCarrierAccountsCarrierAccountId200ResponseData](docs/GETCarrierAccountsCarrierAccountId200ResponseData.md) @@ -1764,6 +2325,7 @@ Class | Method | HTTP request | Description - [GETCouponCodesPromotionRules200Response](docs/GETCouponCodesPromotionRules200Response.md) - [GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200Response](docs/GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200Response.md) - [GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData](docs/GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData.md) + - [GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes](docs/GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes.md) - [GETCouponRecipients200Response](docs/GETCouponRecipients200Response.md) - [GETCouponRecipientsCouponRecipientId200Response](docs/GETCouponRecipientsCouponRecipientId200Response.md) - [GETCouponRecipientsCouponRecipientId200ResponseData](docs/GETCouponRecipientsCouponRecipientId200ResponseData.md) @@ -1772,6 +2334,10 @@ Class | Method | HTTP request | Description - [GETCouponsCouponId200Response](docs/GETCouponsCouponId200Response.md) - [GETCouponsCouponId200ResponseData](docs/GETCouponsCouponId200ResponseData.md) - [GETCouponsCouponId200ResponseDataAttributes](docs/GETCouponsCouponId200ResponseDataAttributes.md) + - [GETCustomPromotionRules200Response](docs/GETCustomPromotionRules200Response.md) + - [GETCustomPromotionRulesCustomPromotionRuleId200Response](docs/GETCustomPromotionRulesCustomPromotionRuleId200Response.md) + - [GETCustomPromotionRulesCustomPromotionRuleId200ResponseData](docs/GETCustomPromotionRulesCustomPromotionRuleId200ResponseData.md) + - [GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes](docs/GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes.md) - [GETCustomerAddresses200Response](docs/GETCustomerAddresses200Response.md) - [GETCustomerAddressesCustomerAddressId200Response](docs/GETCustomerAddressesCustomerAddressId200Response.md) - [GETCustomerAddressesCustomerAddressId200ResponseData](docs/GETCustomerAddressesCustomerAddressId200ResponseData.md) @@ -1844,6 +2410,10 @@ Class | Method | HTTP request | Description - [GETFixedPricePromotionsFixedPricePromotionId200Response](docs/GETFixedPricePromotionsFixedPricePromotionId200Response.md) - [GETFixedPricePromotionsFixedPricePromotionId200ResponseData](docs/GETFixedPricePromotionsFixedPricePromotionId200ResponseData.md) - [GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes](docs/GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes.md) + - [GETFlexPromotions200Response](docs/GETFlexPromotions200Response.md) + - [GETFlexPromotionsFlexPromotionId200Response](docs/GETFlexPromotionsFlexPromotionId200Response.md) + - [GETFlexPromotionsFlexPromotionId200ResponseData](docs/GETFlexPromotionsFlexPromotionId200ResponseData.md) + - [GETFlexPromotionsFlexPromotionId200ResponseDataAttributes](docs/GETFlexPromotionsFlexPromotionId200ResponseDataAttributes.md) - [GETFreeGiftPromotions200Response](docs/GETFreeGiftPromotions200Response.md) - [GETFreeGiftPromotionsFreeGiftPromotionId200Response](docs/GETFreeGiftPromotionsFreeGiftPromotionId200Response.md) - [GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData](docs/GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData.md) @@ -1901,6 +2471,10 @@ Class | Method | HTTP request | Description - [GETLineItemsLineItemId200Response](docs/GETLineItemsLineItemId200Response.md) - [GETLineItemsLineItemId200ResponseData](docs/GETLineItemsLineItemId200ResponseData.md) - [GETLineItemsLineItemId200ResponseDataAttributes](docs/GETLineItemsLineItemId200ResponseDataAttributes.md) + - [GETLinks200Response](docs/GETLinks200Response.md) + - [GETLinksLinkId200Response](docs/GETLinksLinkId200Response.md) + - [GETLinksLinkId200ResponseData](docs/GETLinksLinkId200ResponseData.md) + - [GETLinksLinkId200ResponseDataAttributes](docs/GETLinksLinkId200ResponseDataAttributes.md) - [GETManualGateways200Response](docs/GETManualGateways200Response.md) - [GETManualGatewaysManualGatewayId200Response](docs/GETManualGatewaysManualGatewayId200Response.md) - [GETManualGatewaysManualGatewayId200ResponseData](docs/GETManualGatewaysManualGatewayId200ResponseData.md) @@ -1937,9 +2511,6 @@ Class | Method | HTTP request | Description - [GETOrderSubscriptionsOrderSubscriptionId200Response](docs/GETOrderSubscriptionsOrderSubscriptionId200Response.md) - [GETOrderSubscriptionsOrderSubscriptionId200ResponseData](docs/GETOrderSubscriptionsOrderSubscriptionId200ResponseData.md) - [GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes](docs/GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes.md) - - [GETOrderValidationRules200Response](docs/GETOrderValidationRules200Response.md) - - [GETOrderValidationRulesOrderValidationRuleId200Response](docs/GETOrderValidationRulesOrderValidationRuleId200Response.md) - - [GETOrderValidationRulesOrderValidationRuleId200ResponseData](docs/GETOrderValidationRulesOrderValidationRuleId200ResponseData.md) - [GETOrders200Response](docs/GETOrders200Response.md) - [GETOrdersOrderId200Response](docs/GETOrdersOrderId200Response.md) - [GETOrdersOrderId200ResponseData](docs/GETOrdersOrderId200ResponseData.md) @@ -1966,6 +2537,10 @@ Class | Method | HTTP request | Description - [GETPaymentMethodsPaymentMethodId200Response](docs/GETPaymentMethodsPaymentMethodId200Response.md) - [GETPaymentMethodsPaymentMethodId200ResponseData](docs/GETPaymentMethodsPaymentMethodId200ResponseData.md) - [GETPaymentMethodsPaymentMethodId200ResponseDataAttributes](docs/GETPaymentMethodsPaymentMethodId200ResponseDataAttributes.md) + - [GETPaymentOptions200Response](docs/GETPaymentOptions200Response.md) + - [GETPaymentOptionsPaymentOptionId200Response](docs/GETPaymentOptionsPaymentOptionId200Response.md) + - [GETPaymentOptionsPaymentOptionId200ResponseData](docs/GETPaymentOptionsPaymentOptionId200ResponseData.md) + - [GETPaymentOptionsPaymentOptionId200ResponseDataAttributes](docs/GETPaymentOptionsPaymentOptionId200ResponseDataAttributes.md) - [GETPaypalGateways200Response](docs/GETPaypalGateways200Response.md) - [GETPaypalGatewaysPaypalGatewayId200Response](docs/GETPaypalGatewaysPaypalGatewayId200Response.md) - [GETPaypalGatewaysPaypalGatewayId200ResponseData](docs/GETPaypalGatewaysPaypalGatewayId200ResponseData.md) @@ -1981,6 +2556,10 @@ Class | Method | HTTP request | Description - [GETPriceFrequencyTiersPriceFrequencyTierId200Response](docs/GETPriceFrequencyTiersPriceFrequencyTierId200Response.md) - [GETPriceFrequencyTiersPriceFrequencyTierId200ResponseData](docs/GETPriceFrequencyTiersPriceFrequencyTierId200ResponseData.md) - [GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes](docs/GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes.md) + - [GETPriceListSchedulers200Response](docs/GETPriceListSchedulers200Response.md) + - [GETPriceListSchedulersPriceListSchedulerId200Response](docs/GETPriceListSchedulersPriceListSchedulerId200Response.md) + - [GETPriceListSchedulersPriceListSchedulerId200ResponseData](docs/GETPriceListSchedulersPriceListSchedulerId200ResponseData.md) + - [GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes](docs/GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes.md) - [GETPriceLists200Response](docs/GETPriceLists200Response.md) - [GETPriceListsPriceListId200Response](docs/GETPriceListsPriceListId200Response.md) - [GETPriceListsPriceListId200ResponseData](docs/GETPriceListsPriceListId200ResponseData.md) @@ -2014,6 +2593,20 @@ Class | Method | HTTP request | Description - [GETRefundsRefundId200ResponseDataRelationships](docs/GETRefundsRefundId200ResponseDataRelationships.md) - [GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture](docs/GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture.md) - [GETRefundsRefundId200ResponseDataRelationshipsReferenceCaptureData](docs/GETRefundsRefundId200ResponseDataRelationshipsReferenceCaptureData.md) + - [GETReservedStocks200Response](docs/GETReservedStocks200Response.md) + - [GETReservedStocksReservedStockId200Response](docs/GETReservedStocksReservedStockId200Response.md) + - [GETReservedStocksReservedStockId200ResponseData](docs/GETReservedStocksReservedStockId200ResponseData.md) + - [GETReservedStocksReservedStockId200ResponseDataAttributes](docs/GETReservedStocksReservedStockId200ResponseDataAttributes.md) + - [GETReservedStocksReservedStockId200ResponseDataRelationships](docs/GETReservedStocksReservedStockId200ResponseDataRelationships.md) + - [GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem](docs/GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem.md) + - [GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData](docs/GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData.md) + - [GETResourceErrors200Response](docs/GETResourceErrors200Response.md) + - [GETResourceErrorsResourceErrorId200Response](docs/GETResourceErrorsResourceErrorId200Response.md) + - [GETResourceErrorsResourceErrorId200ResponseData](docs/GETResourceErrorsResourceErrorId200ResponseData.md) + - [GETResourceErrorsResourceErrorId200ResponseDataAttributes](docs/GETResourceErrorsResourceErrorId200ResponseDataAttributes.md) + - [GETResourceErrorsResourceErrorId200ResponseDataRelationships](docs/GETResourceErrorsResourceErrorId200ResponseDataRelationships.md) + - [GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource](docs/GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource.md) + - [GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData](docs/GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData.md) - [GETReturnLineItems200Response](docs/GETReturnLineItems200Response.md) - [GETReturnLineItemsReturnLineItemId200Response](docs/GETReturnLineItemsReturnLineItemId200Response.md) - [GETReturnLineItemsReturnLineItemId200ResponseData](docs/GETReturnLineItemsReturnLineItemId200ResponseData.md) @@ -2034,15 +2627,6 @@ Class | Method | HTTP request | Description - [GETShipmentsShipmentId200Response](docs/GETShipmentsShipmentId200Response.md) - [GETShipmentsShipmentId200ResponseData](docs/GETShipmentsShipmentId200ResponseData.md) - [GETShipmentsShipmentId200ResponseDataAttributes](docs/GETShipmentsShipmentId200ResponseDataAttributes.md) - - [GETShipmentsShipmentId200ResponseDataRelationships](docs/GETShipmentsShipmentId200ResponseDataRelationships.md) - - [GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods](docs/GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods.md) - - [GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData](docs/GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData.md) - - [GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts](docs/GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts.md) - - [GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData](docs/GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData.md) - - [GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime](docs/GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime.md) - - [GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData](docs/GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData.md) - - [GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory](docs/GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory.md) - - [GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData](docs/GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData.md) - [GETShippingCategories200Response](docs/GETShippingCategories200Response.md) - [GETShippingCategoriesShippingCategoryId200Response](docs/GETShippingCategoriesShippingCategoryId200Response.md) - [GETShippingCategoriesShippingCategoryId200ResponseData](docs/GETShippingCategoriesShippingCategoryId200ResponseData.md) @@ -2091,13 +2675,14 @@ Class | Method | HTTP request | Description - [GETStockLineItemsStockLineItemId200Response](docs/GETStockLineItemsStockLineItemId200Response.md) - [GETStockLineItemsStockLineItemId200ResponseData](docs/GETStockLineItemsStockLineItemId200ResponseData.md) - [GETStockLineItemsStockLineItemId200ResponseDataAttributes](docs/GETStockLineItemsStockLineItemId200ResponseDataAttributes.md) - - [GETStockLineItemsStockLineItemId200ResponseDataRelationships](docs/GETStockLineItemsStockLineItemId200ResponseDataRelationships.md) - - [GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem](docs/GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem.md) - - [GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData](docs/GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData.md) - [GETStockLocations200Response](docs/GETStockLocations200Response.md) - [GETStockLocationsStockLocationId200Response](docs/GETStockLocationsStockLocationId200Response.md) - [GETStockLocationsStockLocationId200ResponseData](docs/GETStockLocationsStockLocationId200ResponseData.md) - [GETStockLocationsStockLocationId200ResponseDataAttributes](docs/GETStockLocationsStockLocationId200ResponseDataAttributes.md) + - [GETStockReservations200Response](docs/GETStockReservations200Response.md) + - [GETStockReservationsStockReservationId200Response](docs/GETStockReservationsStockReservationId200Response.md) + - [GETStockReservationsStockReservationId200ResponseData](docs/GETStockReservationsStockReservationId200ResponseData.md) + - [GETStockReservationsStockReservationId200ResponseDataAttributes](docs/GETStockReservationsStockReservationId200ResponseDataAttributes.md) - [GETStockTransfers200Response](docs/GETStockTransfers200Response.md) - [GETStockTransfersStockTransferId200Response](docs/GETStockTransfersStockTransferId200Response.md) - [GETStockTransfersStockTransferId200ResponseData](docs/GETStockTransfersStockTransferId200ResponseData.md) @@ -2114,6 +2699,10 @@ Class | Method | HTTP request | Description - [GETSubscriptionModelsSubscriptionModelId200Response](docs/GETSubscriptionModelsSubscriptionModelId200Response.md) - [GETSubscriptionModelsSubscriptionModelId200ResponseData](docs/GETSubscriptionModelsSubscriptionModelId200ResponseData.md) - [GETSubscriptionModelsSubscriptionModelId200ResponseDataAttributes](docs/GETSubscriptionModelsSubscriptionModelId200ResponseDataAttributes.md) + - [GETTags200Response](docs/GETTags200Response.md) + - [GETTagsTagId200Response](docs/GETTagsTagId200Response.md) + - [GETTagsTagId200ResponseData](docs/GETTagsTagId200ResponseData.md) + - [GETTagsTagId200ResponseDataAttributes](docs/GETTagsTagId200ResponseDataAttributes.md) - [GETTaxCalculators200Response](docs/GETTaxCalculators200Response.md) - [GETTaxCalculatorsTaxCalculatorId200Response](docs/GETTaxCalculatorsTaxCalculatorId200Response.md) - [GETTaxCalculatorsTaxCalculatorId200ResponseData](docs/GETTaxCalculatorsTaxCalculatorId200ResponseData.md) @@ -2132,6 +2721,10 @@ Class | Method | HTTP request | Description - [GETTransactionsTransactionId200Response](docs/GETTransactionsTransactionId200Response.md) - [GETTransactionsTransactionId200ResponseData](docs/GETTransactionsTransactionId200ResponseData.md) - [GETTransactionsTransactionId200ResponseDataRelationships](docs/GETTransactionsTransactionId200ResponseDataRelationships.md) + - [GETVersions200Response](docs/GETVersions200Response.md) + - [GETVersionsVersionId200Response](docs/GETVersionsVersionId200Response.md) + - [GETVersionsVersionId200ResponseData](docs/GETVersionsVersionId200ResponseData.md) + - [GETVersionsVersionId200ResponseDataAttributes](docs/GETVersionsVersionId200ResponseDataAttributes.md) - [GETVoids200Response](docs/GETVoids200Response.md) - [GETVoidsVoidId200Response](docs/GETVoidsVoidId200Response.md) - [GETVoidsVoidId200ResponseData](docs/GETVoidsVoidId200ResponseData.md) @@ -2172,6 +2765,8 @@ Class | Method | HTTP request | Description - [ImportCreate](docs/ImportCreate.md) - [ImportCreateData](docs/ImportCreateData.md) - [ImportData](docs/ImportData.md) + - [ImportUpdate](docs/ImportUpdate.md) + - [ImportUpdateData](docs/ImportUpdateData.md) - [InStockSubscription](docs/InStockSubscription.md) - [InStockSubscriptionCreate](docs/InStockSubscriptionCreate.md) - [InStockSubscriptionCreateData](docs/InStockSubscriptionCreateData.md) @@ -2235,14 +2830,24 @@ Class | Method | HTTP request | Description - [LineItemCreateDataRelationshipsItem](docs/LineItemCreateDataRelationshipsItem.md) - [LineItemData](docs/LineItemData.md) - [LineItemDataRelationships](docs/LineItemDataRelationships.md) + - [LineItemDataRelationshipsAdjustment](docs/LineItemDataRelationshipsAdjustment.md) + - [LineItemDataRelationshipsAdjustmentData](docs/LineItemDataRelationshipsAdjustmentData.md) + - [LineItemDataRelationshipsBundle](docs/LineItemDataRelationshipsBundle.md) + - [LineItemDataRelationshipsBundleData](docs/LineItemDataRelationshipsBundleData.md) + - [LineItemDataRelationshipsGiftCard](docs/LineItemDataRelationshipsGiftCard.md) + - [LineItemDataRelationshipsGiftCardData](docs/LineItemDataRelationshipsGiftCardData.md) - [LineItemDataRelationshipsItem](docs/LineItemDataRelationshipsItem.md) - [LineItemDataRelationshipsItemData](docs/LineItemDataRelationshipsItemData.md) - [LineItemDataRelationshipsLineItemOptions](docs/LineItemDataRelationshipsLineItemOptions.md) - [LineItemDataRelationshipsLineItemOptionsData](docs/LineItemDataRelationshipsLineItemOptionsData.md) - - [LineItemDataRelationshipsShipmentLineItems](docs/LineItemDataRelationshipsShipmentLineItems.md) - - [LineItemDataRelationshipsShipmentLineItemsData](docs/LineItemDataRelationshipsShipmentLineItemsData.md) + - [LineItemDataRelationshipsReturnLineItems](docs/LineItemDataRelationshipsReturnLineItems.md) + - [LineItemDataRelationshipsReturnLineItemsData](docs/LineItemDataRelationshipsReturnLineItemsData.md) + - [LineItemDataRelationshipsShipment](docs/LineItemDataRelationshipsShipment.md) + - [LineItemDataRelationshipsShipmentData](docs/LineItemDataRelationshipsShipmentData.md) - [LineItemDataRelationshipsStockLineItems](docs/LineItemDataRelationshipsStockLineItems.md) - [LineItemDataRelationshipsStockLineItemsData](docs/LineItemDataRelationshipsStockLineItemsData.md) + - [LineItemDataRelationshipsStockReservations](docs/LineItemDataRelationshipsStockReservations.md) + - [LineItemDataRelationshipsStockReservationsData](docs/LineItemDataRelationshipsStockReservationsData.md) - [LineItemDataRelationshipsStockTransfers](docs/LineItemDataRelationshipsStockTransfers.md) - [LineItemDataRelationshipsStockTransfersData](docs/LineItemDataRelationshipsStockTransfersData.md) - [LineItemOption](docs/LineItemOption.md) @@ -2262,6 +2867,18 @@ Class | Method | HTTP request | Description - [LineItemOptionUpdateDataRelationships](docs/LineItemOptionUpdateDataRelationships.md) - [LineItemUpdate](docs/LineItemUpdate.md) - [LineItemUpdateData](docs/LineItemUpdateData.md) + - [Link](docs/Link.md) + - [LinkCreate](docs/LinkCreate.md) + - [LinkCreateData](docs/LinkCreateData.md) + - [LinkCreateDataRelationships](docs/LinkCreateDataRelationships.md) + - [LinkCreateDataRelationshipsItem](docs/LinkCreateDataRelationshipsItem.md) + - [LinkData](docs/LinkData.md) + - [LinkDataRelationships](docs/LinkDataRelationships.md) + - [LinkDataRelationshipsItem](docs/LinkDataRelationshipsItem.md) + - [LinkDataRelationshipsItemData](docs/LinkDataRelationshipsItemData.md) + - [LinkUpdate](docs/LinkUpdate.md) + - [LinkUpdateData](docs/LinkUpdateData.md) + - [LinkUpdateDataRelationships](docs/LinkUpdateDataRelationships.md) - [ManualGateway](docs/ManualGateway.md) - [ManualGatewayCreate](docs/ManualGatewayCreate.md) - [ManualGatewayCreateData](docs/ManualGatewayCreateData.md) @@ -2294,6 +2911,8 @@ Class | Method | HTTP request | Description - [MarketDataRelationshipsMerchantData](docs/MarketDataRelationshipsMerchantData.md) - [MarketDataRelationshipsPriceList](docs/MarketDataRelationshipsPriceList.md) - [MarketDataRelationshipsPriceListData](docs/MarketDataRelationshipsPriceListData.md) + - [MarketDataRelationshipsPriceListSchedulers](docs/MarketDataRelationshipsPriceListSchedulers.md) + - [MarketDataRelationshipsPriceListSchedulersData](docs/MarketDataRelationshipsPriceListSchedulersData.md) - [MarketDataRelationshipsSubscriptionModel](docs/MarketDataRelationshipsSubscriptionModel.md) - [MarketDataRelationshipsSubscriptionModelData](docs/MarketDataRelationshipsSubscriptionModelData.md) - [MarketDataRelationshipsTaxCalculator](docs/MarketDataRelationshipsTaxCalculator.md) @@ -2317,12 +2936,9 @@ Class | Method | HTTP request | Description - [OrderAmountPromotionRule](docs/OrderAmountPromotionRule.md) - [OrderAmountPromotionRuleCreate](docs/OrderAmountPromotionRuleCreate.md) - [OrderAmountPromotionRuleCreateData](docs/OrderAmountPromotionRuleCreateData.md) - - [OrderAmountPromotionRuleCreateDataRelationships](docs/OrderAmountPromotionRuleCreateDataRelationships.md) - [OrderAmountPromotionRuleData](docs/OrderAmountPromotionRuleData.md) - - [OrderAmountPromotionRuleDataRelationships](docs/OrderAmountPromotionRuleDataRelationships.md) - [OrderAmountPromotionRuleUpdate](docs/OrderAmountPromotionRuleUpdate.md) - [OrderAmountPromotionRuleUpdateData](docs/OrderAmountPromotionRuleUpdateData.md) - - [OrderAmountPromotionRuleUpdateDataRelationships](docs/OrderAmountPromotionRuleUpdateDataRelationships.md) - [OrderCopy](docs/OrderCopy.md) - [OrderCopyCreate](docs/OrderCopyCreate.md) - [OrderCopyCreateData](docs/OrderCopyCreateData.md) @@ -2334,14 +2950,16 @@ Class | Method | HTTP request | Description - [OrderCreate](docs/OrderCreate.md) - [OrderCreateData](docs/OrderCreateData.md) - [OrderCreateDataRelationships](docs/OrderCreateDataRelationships.md) - - [OrderCreateDataRelationshipsPaymentMethod](docs/OrderCreateDataRelationshipsPaymentMethod.md) - [OrderData](docs/OrderData.md) - [OrderDataRelationships](docs/OrderDataRelationships.md) - - [OrderDataRelationshipsAvailableFreeBundles](docs/OrderDataRelationshipsAvailableFreeBundles.md) - - [OrderDataRelationshipsAvailableFreeBundlesData](docs/OrderDataRelationshipsAvailableFreeBundlesData.md) + - [OrderDataRelationshipsLinks](docs/OrderDataRelationshipsLinks.md) + - [OrderDataRelationshipsLinksData](docs/OrderDataRelationshipsLinksData.md) - [OrderDataRelationshipsOrderCopies](docs/OrderDataRelationshipsOrderCopies.md) - - [OrderDataRelationshipsShipments](docs/OrderDataRelationshipsShipments.md) - - [OrderDataRelationshipsShipmentsData](docs/OrderDataRelationshipsShipmentsData.md) + - [OrderDataRelationshipsOrderCopiesData](docs/OrderDataRelationshipsOrderCopiesData.md) + - [OrderDataRelationshipsPaymentOptions](docs/OrderDataRelationshipsPaymentOptions.md) + - [OrderDataRelationshipsPaymentOptionsData](docs/OrderDataRelationshipsPaymentOptionsData.md) + - [OrderDataRelationshipsResourceErrors](docs/OrderDataRelationshipsResourceErrors.md) + - [OrderDataRelationshipsResourceErrorsData](docs/OrderDataRelationshipsResourceErrorsData.md) - [OrderDataRelationshipsTransactions](docs/OrderDataRelationshipsTransactions.md) - [OrderDataRelationshipsTransactionsData](docs/OrderDataRelationshipsTransactionsData.md) - [OrderFactory](docs/OrderFactory.md) @@ -2353,8 +2971,6 @@ Class | Method | HTTP request | Description - [OrderSubscriptionCreateDataRelationships](docs/OrderSubscriptionCreateDataRelationships.md) - [OrderSubscriptionData](docs/OrderSubscriptionData.md) - [OrderSubscriptionDataRelationships](docs/OrderSubscriptionDataRelationships.md) - - [OrderSubscriptionDataRelationshipsOrderCopies](docs/OrderSubscriptionDataRelationshipsOrderCopies.md) - - [OrderSubscriptionDataRelationshipsOrderCopiesData](docs/OrderSubscriptionDataRelationshipsOrderCopiesData.md) - [OrderSubscriptionDataRelationshipsOrderFactories](docs/OrderSubscriptionDataRelationshipsOrderFactories.md) - [OrderSubscriptionDataRelationshipsOrderFactoriesData](docs/OrderSubscriptionDataRelationshipsOrderFactoriesData.md) - [OrderSubscriptionDataRelationshipsOrderSubscriptionItems](docs/OrderSubscriptionDataRelationshipsOrderSubscriptionItems.md) @@ -2365,6 +2981,8 @@ Class | Method | HTTP request | Description - [OrderSubscriptionItemCreate](docs/OrderSubscriptionItemCreate.md) - [OrderSubscriptionItemCreateData](docs/OrderSubscriptionItemCreateData.md) - [OrderSubscriptionItemCreateDataRelationships](docs/OrderSubscriptionItemCreateDataRelationships.md) + - [OrderSubscriptionItemCreateDataRelationshipsAdjustment](docs/OrderSubscriptionItemCreateDataRelationshipsAdjustment.md) + - [OrderSubscriptionItemCreateDataRelationshipsBundle](docs/OrderSubscriptionItemCreateDataRelationshipsBundle.md) - [OrderSubscriptionItemCreateDataRelationshipsItem](docs/OrderSubscriptionItemCreateDataRelationshipsItem.md) - [OrderSubscriptionItemCreateDataRelationshipsOrderSubscription](docs/OrderSubscriptionItemCreateDataRelationshipsOrderSubscription.md) - [OrderSubscriptionItemData](docs/OrderSubscriptionItemData.md) @@ -2379,8 +2997,6 @@ Class | Method | HTTP request | Description - [OrderSubscriptionUpdateDataRelationshipsCustomerPaymentSource](docs/OrderSubscriptionUpdateDataRelationshipsCustomerPaymentSource.md) - [OrderUpdate](docs/OrderUpdate.md) - [OrderUpdateData](docs/OrderUpdateData.md) - - [OrderValidationRule](docs/OrderValidationRule.md) - - [OrderValidationRuleData](docs/OrderValidationRuleData.md) - [Organization](docs/Organization.md) - [OrganizationData](docs/OrganizationData.md) - [PATCHAddressesAddressId200Response](docs/PATCHAddressesAddressId200Response.md) @@ -2425,15 +3041,23 @@ Class | Method | HTTP request | Description - [PATCHBundlesBundleId200Response](docs/PATCHBundlesBundleId200Response.md) - [PATCHBundlesBundleId200ResponseData](docs/PATCHBundlesBundleId200ResponseData.md) - [PATCHBundlesBundleId200ResponseDataAttributes](docs/PATCHBundlesBundleId200ResponseDataAttributes.md) + - [PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response](docs/PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response.md) + - [PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData](docs/PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData.md) + - [PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes](docs/PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes.md) - [PATCHCapturesCaptureId200Response](docs/PATCHCapturesCaptureId200Response.md) - [PATCHCapturesCaptureId200ResponseData](docs/PATCHCapturesCaptureId200ResponseData.md) - [PATCHCapturesCaptureId200ResponseDataAttributes](docs/PATCHCapturesCaptureId200ResponseDataAttributes.md) + - [PATCHCarrierAccountsCarrierAccountId200Response](docs/PATCHCarrierAccountsCarrierAccountId200Response.md) + - [PATCHCarrierAccountsCarrierAccountId200ResponseData](docs/PATCHCarrierAccountsCarrierAccountId200ResponseData.md) + - [PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes](docs/PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes.md) - [PATCHCheckoutComGatewaysCheckoutComGatewayId200Response](docs/PATCHCheckoutComGatewaysCheckoutComGatewayId200Response.md) - [PATCHCheckoutComGatewaysCheckoutComGatewayId200ResponseData](docs/PATCHCheckoutComGatewaysCheckoutComGatewayId200ResponseData.md) - [PATCHCheckoutComGatewaysCheckoutComGatewayId200ResponseDataAttributes](docs/PATCHCheckoutComGatewaysCheckoutComGatewayId200ResponseDataAttributes.md) - [PATCHCheckoutComPaymentsCheckoutComPaymentId200Response](docs/PATCHCheckoutComPaymentsCheckoutComPaymentId200Response.md) - [PATCHCheckoutComPaymentsCheckoutComPaymentId200ResponseData](docs/PATCHCheckoutComPaymentsCheckoutComPaymentId200ResponseData.md) - [PATCHCheckoutComPaymentsCheckoutComPaymentId200ResponseDataAttributes](docs/PATCHCheckoutComPaymentsCheckoutComPaymentId200ResponseDataAttributes.md) + - [PATCHCleanupsCleanupId200Response](docs/PATCHCleanupsCleanupId200Response.md) + - [PATCHCleanupsCleanupId200ResponseData](docs/PATCHCleanupsCleanupId200ResponseData.md) - [PATCHCouponCodesPromotionRulesCouponCodesPromotionRuleId200Response](docs/PATCHCouponCodesPromotionRulesCouponCodesPromotionRuleId200Response.md) - [PATCHCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData](docs/PATCHCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData.md) - [PATCHCouponRecipientsCouponRecipientId200Response](docs/PATCHCouponRecipientsCouponRecipientId200Response.md) @@ -2442,6 +3066,9 @@ Class | Method | HTTP request | Description - [PATCHCouponsCouponId200Response](docs/PATCHCouponsCouponId200Response.md) - [PATCHCouponsCouponId200ResponseData](docs/PATCHCouponsCouponId200ResponseData.md) - [PATCHCouponsCouponId200ResponseDataAttributes](docs/PATCHCouponsCouponId200ResponseDataAttributes.md) + - [PATCHCustomPromotionRulesCustomPromotionRuleId200Response](docs/PATCHCustomPromotionRulesCustomPromotionRuleId200Response.md) + - [PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData](docs/PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData.md) + - [PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes](docs/PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes.md) - [PATCHCustomerAddressesCustomerAddressId200Response](docs/PATCHCustomerAddressesCustomerAddressId200Response.md) - [PATCHCustomerAddressesCustomerAddressId200ResponseData](docs/PATCHCustomerAddressesCustomerAddressId200ResponseData.md) - [PATCHCustomerGroupsCustomerGroupId200Response](docs/PATCHCustomerGroupsCustomerGroupId200Response.md) @@ -2452,14 +3079,21 @@ Class | Method | HTTP request | Description - [PATCHCustomerPasswordResetsCustomerPasswordResetId200ResponseDataAttributes](docs/PATCHCustomerPasswordResetsCustomerPasswordResetId200ResponseDataAttributes.md) - [PATCHCustomerPaymentSourcesCustomerPaymentSourceId200Response](docs/PATCHCustomerPaymentSourcesCustomerPaymentSourceId200Response.md) - [PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData](docs/PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData.md) + - [PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes](docs/PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes.md) - [PATCHCustomerSubscriptionsCustomerSubscriptionId200Response](docs/PATCHCustomerSubscriptionsCustomerSubscriptionId200Response.md) - [PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData](docs/PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData.md) + - [PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes](docs/PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes.md) - [PATCHCustomersCustomerId200Response](docs/PATCHCustomersCustomerId200Response.md) - [PATCHCustomersCustomerId200ResponseData](docs/PATCHCustomersCustomerId200ResponseData.md) - [PATCHCustomersCustomerId200ResponseDataAttributes](docs/PATCHCustomersCustomerId200ResponseDataAttributes.md) - [PATCHDeliveryLeadTimesDeliveryLeadTimeId200Response](docs/PATCHDeliveryLeadTimesDeliveryLeadTimeId200Response.md) - [PATCHDeliveryLeadTimesDeliveryLeadTimeId200ResponseData](docs/PATCHDeliveryLeadTimesDeliveryLeadTimeId200ResponseData.md) - [PATCHDeliveryLeadTimesDeliveryLeadTimeId200ResponseDataAttributes](docs/PATCHDeliveryLeadTimesDeliveryLeadTimeId200ResponseDataAttributes.md) + - [PATCHEventsEventId200Response](docs/PATCHEventsEventId200Response.md) + - [PATCHEventsEventId200ResponseData](docs/PATCHEventsEventId200ResponseData.md) + - [PATCHEventsEventId200ResponseDataAttributes](docs/PATCHEventsEventId200ResponseDataAttributes.md) + - [PATCHExportsExportId200Response](docs/PATCHExportsExportId200Response.md) + - [PATCHExportsExportId200ResponseData](docs/PATCHExportsExportId200ResponseData.md) - [PATCHExternalGatewaysExternalGatewayId200Response](docs/PATCHExternalGatewaysExternalGatewayId200Response.md) - [PATCHExternalGatewaysExternalGatewayId200ResponseData](docs/PATCHExternalGatewaysExternalGatewayId200ResponseData.md) - [PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes](docs/PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes.md) @@ -2478,6 +3112,9 @@ Class | Method | HTTP request | Description - [PATCHFixedPricePromotionsFixedPricePromotionId200Response](docs/PATCHFixedPricePromotionsFixedPricePromotionId200Response.md) - [PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData](docs/PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData.md) - [PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes](docs/PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes.md) + - [PATCHFlexPromotionsFlexPromotionId200Response](docs/PATCHFlexPromotionsFlexPromotionId200Response.md) + - [PATCHFlexPromotionsFlexPromotionId200ResponseData](docs/PATCHFlexPromotionsFlexPromotionId200ResponseData.md) + - [PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes](docs/PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes.md) - [PATCHFreeGiftPromotionsFreeGiftPromotionId200Response](docs/PATCHFreeGiftPromotionsFreeGiftPromotionId200Response.md) - [PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData](docs/PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData.md) - [PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes](docs/PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes.md) @@ -2492,6 +3129,8 @@ Class | Method | HTTP request | Description - [PATCHGoogleGeocodersGoogleGeocoderId200Response](docs/PATCHGoogleGeocodersGoogleGeocoderId200Response.md) - [PATCHGoogleGeocodersGoogleGeocoderId200ResponseData](docs/PATCHGoogleGeocodersGoogleGeocoderId200ResponseData.md) - [PATCHGoogleGeocodersGoogleGeocoderId200ResponseDataAttributes](docs/PATCHGoogleGeocodersGoogleGeocoderId200ResponseDataAttributes.md) + - [PATCHImportsImportId200Response](docs/PATCHImportsImportId200Response.md) + - [PATCHImportsImportId200ResponseData](docs/PATCHImportsImportId200ResponseData.md) - [PATCHInStockSubscriptionsInStockSubscriptionId200Response](docs/PATCHInStockSubscriptionsInStockSubscriptionId200Response.md) - [PATCHInStockSubscriptionsInStockSubscriptionId200ResponseData](docs/PATCHInStockSubscriptionsInStockSubscriptionId200ResponseData.md) - [PATCHInStockSubscriptionsInStockSubscriptionId200ResponseDataAttributes](docs/PATCHInStockSubscriptionsInStockSubscriptionId200ResponseDataAttributes.md) @@ -2516,6 +3155,9 @@ Class | Method | HTTP request | Description - [PATCHLineItemsLineItemId200Response](docs/PATCHLineItemsLineItemId200Response.md) - [PATCHLineItemsLineItemId200ResponseData](docs/PATCHLineItemsLineItemId200ResponseData.md) - [PATCHLineItemsLineItemId200ResponseDataAttributes](docs/PATCHLineItemsLineItemId200ResponseDataAttributes.md) + - [PATCHLinksLinkId200Response](docs/PATCHLinksLinkId200Response.md) + - [PATCHLinksLinkId200ResponseData](docs/PATCHLinksLinkId200ResponseData.md) + - [PATCHLinksLinkId200ResponseDataAttributes](docs/PATCHLinksLinkId200ResponseDataAttributes.md) - [PATCHManualGatewaysManualGatewayId200Response](docs/PATCHManualGatewaysManualGatewayId200Response.md) - [PATCHManualGatewaysManualGatewayId200ResponseData](docs/PATCHManualGatewaysManualGatewayId200ResponseData.md) - [PATCHManualGatewaysManualGatewayId200ResponseDataAttributes](docs/PATCHManualGatewaysManualGatewayId200ResponseDataAttributes.md) @@ -2553,6 +3195,9 @@ Class | Method | HTTP request | Description - [PATCHPaymentMethodsPaymentMethodId200Response](docs/PATCHPaymentMethodsPaymentMethodId200Response.md) - [PATCHPaymentMethodsPaymentMethodId200ResponseData](docs/PATCHPaymentMethodsPaymentMethodId200ResponseData.md) - [PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes](docs/PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes.md) + - [PATCHPaymentOptionsPaymentOptionId200Response](docs/PATCHPaymentOptionsPaymentOptionId200Response.md) + - [PATCHPaymentOptionsPaymentOptionId200ResponseData](docs/PATCHPaymentOptionsPaymentOptionId200ResponseData.md) + - [PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes](docs/PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes.md) - [PATCHPaypalGatewaysPaypalGatewayId200Response](docs/PATCHPaypalGatewaysPaypalGatewayId200Response.md) - [PATCHPaypalGatewaysPaypalGatewayId200ResponseData](docs/PATCHPaypalGatewaysPaypalGatewayId200ResponseData.md) - [PATCHPaypalGatewaysPaypalGatewayId200ResponseDataAttributes](docs/PATCHPaypalGatewaysPaypalGatewayId200ResponseDataAttributes.md) @@ -2565,6 +3210,9 @@ Class | Method | HTTP request | Description - [PATCHPriceFrequencyTiersPriceFrequencyTierId200Response](docs/PATCHPriceFrequencyTiersPriceFrequencyTierId200Response.md) - [PATCHPriceFrequencyTiersPriceFrequencyTierId200ResponseData](docs/PATCHPriceFrequencyTiersPriceFrequencyTierId200ResponseData.md) - [PATCHPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes](docs/PATCHPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes.md) + - [PATCHPriceListSchedulersPriceListSchedulerId200Response](docs/PATCHPriceListSchedulersPriceListSchedulerId200Response.md) + - [PATCHPriceListSchedulersPriceListSchedulerId200ResponseData](docs/PATCHPriceListSchedulersPriceListSchedulerId200ResponseData.md) + - [PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes](docs/PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes.md) - [PATCHPriceListsPriceListId200Response](docs/PATCHPriceListsPriceListId200Response.md) - [PATCHPriceListsPriceListId200ResponseData](docs/PATCHPriceListsPriceListId200ResponseData.md) - [PATCHPriceListsPriceListId200ResponseDataAttributes](docs/PATCHPriceListsPriceListId200ResponseDataAttributes.md) @@ -2576,6 +3224,9 @@ Class | Method | HTTP request | Description - [PATCHPricesPriceId200ResponseDataAttributes](docs/PATCHPricesPriceId200ResponseDataAttributes.md) - [PATCHRecurringOrderCopiesRecurringOrderCopyId200Response](docs/PATCHRecurringOrderCopiesRecurringOrderCopyId200Response.md) - [PATCHRecurringOrderCopiesRecurringOrderCopyId200ResponseData](docs/PATCHRecurringOrderCopiesRecurringOrderCopyId200ResponseData.md) + - [PATCHRefundsRefundId200Response](docs/PATCHRefundsRefundId200Response.md) + - [PATCHRefundsRefundId200ResponseData](docs/PATCHRefundsRefundId200ResponseData.md) + - [PATCHRefundsRefundId200ResponseDataAttributes](docs/PATCHRefundsRefundId200ResponseDataAttributes.md) - [PATCHReturnLineItemsReturnLineItemId200Response](docs/PATCHReturnLineItemsReturnLineItemId200Response.md) - [PATCHReturnLineItemsReturnLineItemId200ResponseData](docs/PATCHReturnLineItemsReturnLineItemId200ResponseData.md) - [PATCHReturnLineItemsReturnLineItemId200ResponseDataAttributes](docs/PATCHReturnLineItemsReturnLineItemId200ResponseDataAttributes.md) @@ -2620,9 +3271,15 @@ Class | Method | HTTP request | Description - [PATCHStockItemsStockItemId200Response](docs/PATCHStockItemsStockItemId200Response.md) - [PATCHStockItemsStockItemId200ResponseData](docs/PATCHStockItemsStockItemId200ResponseData.md) - [PATCHStockItemsStockItemId200ResponseDataAttributes](docs/PATCHStockItemsStockItemId200ResponseDataAttributes.md) + - [PATCHStockLineItemsStockLineItemId200Response](docs/PATCHStockLineItemsStockLineItemId200Response.md) + - [PATCHStockLineItemsStockLineItemId200ResponseData](docs/PATCHStockLineItemsStockLineItemId200ResponseData.md) + - [PATCHStockLineItemsStockLineItemId200ResponseDataAttributes](docs/PATCHStockLineItemsStockLineItemId200ResponseDataAttributes.md) - [PATCHStockLocationsStockLocationId200Response](docs/PATCHStockLocationsStockLocationId200Response.md) - [PATCHStockLocationsStockLocationId200ResponseData](docs/PATCHStockLocationsStockLocationId200ResponseData.md) - [PATCHStockLocationsStockLocationId200ResponseDataAttributes](docs/PATCHStockLocationsStockLocationId200ResponseDataAttributes.md) + - [PATCHStockReservationsStockReservationId200Response](docs/PATCHStockReservationsStockReservationId200Response.md) + - [PATCHStockReservationsStockReservationId200ResponseData](docs/PATCHStockReservationsStockReservationId200ResponseData.md) + - [PATCHStockReservationsStockReservationId200ResponseDataAttributes](docs/PATCHStockReservationsStockReservationId200ResponseDataAttributes.md) - [PATCHStockTransfersStockTransferId200Response](docs/PATCHStockTransfersStockTransferId200Response.md) - [PATCHStockTransfersStockTransferId200ResponseData](docs/PATCHStockTransfersStockTransferId200ResponseData.md) - [PATCHStockTransfersStockTransferId200ResponseDataAttributes](docs/PATCHStockTransfersStockTransferId200ResponseDataAttributes.md) @@ -2635,6 +3292,9 @@ Class | Method | HTTP request | Description - [PATCHSubscriptionModelsSubscriptionModelId200Response](docs/PATCHSubscriptionModelsSubscriptionModelId200Response.md) - [PATCHSubscriptionModelsSubscriptionModelId200ResponseData](docs/PATCHSubscriptionModelsSubscriptionModelId200ResponseData.md) - [PATCHSubscriptionModelsSubscriptionModelId200ResponseDataAttributes](docs/PATCHSubscriptionModelsSubscriptionModelId200ResponseDataAttributes.md) + - [PATCHTagsTagId200Response](docs/PATCHTagsTagId200Response.md) + - [PATCHTagsTagId200ResponseData](docs/PATCHTagsTagId200ResponseData.md) + - [PATCHTagsTagId200ResponseDataAttributes](docs/PATCHTagsTagId200ResponseDataAttributes.md) - [PATCHTaxCategoriesTaxCategoryId200Response](docs/PATCHTaxCategoriesTaxCategoryId200Response.md) - [PATCHTaxCategoriesTaxCategoryId200ResponseData](docs/PATCHTaxCategoriesTaxCategoryId200ResponseData.md) - [PATCHTaxCategoriesTaxCategoryId200ResponseDataAttributes](docs/PATCHTaxCategoriesTaxCategoryId200ResponseDataAttributes.md) @@ -2644,6 +3304,8 @@ Class | Method | HTTP request | Description - [PATCHTaxjarAccountsTaxjarAccountId200Response](docs/PATCHTaxjarAccountsTaxjarAccountId200Response.md) - [PATCHTaxjarAccountsTaxjarAccountId200ResponseData](docs/PATCHTaxjarAccountsTaxjarAccountId200ResponseData.md) - [PATCHTaxjarAccountsTaxjarAccountId200ResponseDataAttributes](docs/PATCHTaxjarAccountsTaxjarAccountId200ResponseDataAttributes.md) + - [PATCHVoidsVoidId200Response](docs/PATCHVoidsVoidId200Response.md) + - [PATCHVoidsVoidId200ResponseData](docs/PATCHVoidsVoidId200ResponseData.md) - [PATCHWebhooksWebhookId200Response](docs/PATCHWebhooksWebhookId200Response.md) - [PATCHWebhooksWebhookId200ResponseData](docs/PATCHWebhooksWebhookId200ResponseData.md) - [PATCHWebhooksWebhookId200ResponseDataAttributes](docs/PATCHWebhooksWebhookId200ResponseDataAttributes.md) @@ -2654,12 +3316,19 @@ Class | Method | HTTP request | Description - [POSTAddresses201ResponseDataAttributes](docs/POSTAddresses201ResponseDataAttributes.md) - [POSTAddresses201ResponseDataLinks](docs/POSTAddresses201ResponseDataLinks.md) - [POSTAddresses201ResponseDataRelationships](docs/POSTAddresses201ResponseDataRelationships.md) + - [POSTAddresses201ResponseDataRelationshipsEvents](docs/POSTAddresses201ResponseDataRelationshipsEvents.md) + - [POSTAddresses201ResponseDataRelationshipsEventsData](docs/POSTAddresses201ResponseDataRelationshipsEventsData.md) - [POSTAddresses201ResponseDataRelationshipsGeocoder](docs/POSTAddresses201ResponseDataRelationshipsGeocoder.md) - [POSTAddresses201ResponseDataRelationshipsGeocoderData](docs/POSTAddresses201ResponseDataRelationshipsGeocoderData.md) - [POSTAddresses201ResponseDataRelationshipsGeocoderLinks](docs/POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) + - [POSTAddresses201ResponseDataRelationshipsTags](docs/POSTAddresses201ResponseDataRelationshipsTags.md) + - [POSTAddresses201ResponseDataRelationshipsTagsData](docs/POSTAddresses201ResponseDataRelationshipsTagsData.md) + - [POSTAddresses201ResponseDataRelationshipsVersions](docs/POSTAddresses201ResponseDataRelationshipsVersions.md) + - [POSTAddresses201ResponseDataRelationshipsVersionsData](docs/POSTAddresses201ResponseDataRelationshipsVersionsData.md) - [POSTAdjustments201Response](docs/POSTAdjustments201Response.md) - [POSTAdjustments201ResponseData](docs/POSTAdjustments201ResponseData.md) - [POSTAdjustments201ResponseDataAttributes](docs/POSTAdjustments201ResponseDataAttributes.md) + - [POSTAdjustments201ResponseDataRelationships](docs/POSTAdjustments201ResponseDataRelationships.md) - [POSTAdyenGateways201Response](docs/POSTAdyenGateways201Response.md) - [POSTAdyenGateways201ResponseData](docs/POSTAdyenGateways201ResponseData.md) - [POSTAdyenGateways201ResponseDataAttributes](docs/POSTAdyenGateways201ResponseDataAttributes.md) @@ -2686,8 +3355,6 @@ Class | Method | HTTP request | Description - [POSTAvalaraAccounts201ResponseData](docs/POSTAvalaraAccounts201ResponseData.md) - [POSTAvalaraAccounts201ResponseDataAttributes](docs/POSTAvalaraAccounts201ResponseDataAttributes.md) - [POSTAvalaraAccounts201ResponseDataRelationships](docs/POSTAvalaraAccounts201ResponseDataRelationships.md) - - [POSTAvalaraAccounts201ResponseDataRelationshipsAttachments](docs/POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) - - [POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData](docs/POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData.md) - [POSTAvalaraAccounts201ResponseDataRelationshipsMarkets](docs/POSTAvalaraAccounts201ResponseDataRelationshipsMarkets.md) - [POSTAvalaraAccounts201ResponseDataRelationshipsMarketsData](docs/POSTAvalaraAccounts201ResponseDataRelationshipsMarketsData.md) - [POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories](docs/POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories.md) @@ -2729,6 +3396,25 @@ Class | Method | HTTP request | Description - [POSTBundles201ResponseDataRelationshipsSkuListData](docs/POSTBundles201ResponseDataRelationshipsSkuListData.md) - [POSTBundles201ResponseDataRelationshipsSkus](docs/POSTBundles201ResponseDataRelationshipsSkus.md) - [POSTBundles201ResponseDataRelationshipsSkusData](docs/POSTBundles201ResponseDataRelationshipsSkusData.md) + - [POSTBuyXPayYPromotions201Response](docs/POSTBuyXPayYPromotions201Response.md) + - [POSTBuyXPayYPromotions201ResponseData](docs/POSTBuyXPayYPromotions201ResponseData.md) + - [POSTBuyXPayYPromotions201ResponseDataAttributes](docs/POSTBuyXPayYPromotions201ResponseDataAttributes.md) + - [POSTBuyXPayYPromotions201ResponseDataRelationships](docs/POSTBuyXPayYPromotions201ResponseDataRelationships.md) + - [POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule](docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule.md) + - [POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData](docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData.md) + - [POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons](docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons.md) + - [POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData](docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData.md) + - [POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule](docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule.md) + - [POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData](docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData.md) + - [POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule](docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule.md) + - [POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData](docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData.md) + - [POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules](docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules.md) + - [POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData](docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData.md) + - [POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule](docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule.md) + - [POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData](docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData.md) + - [POSTCarrierAccounts201Response](docs/POSTCarrierAccounts201Response.md) + - [POSTCarrierAccounts201ResponseData](docs/POSTCarrierAccounts201ResponseData.md) + - [POSTCarrierAccounts201ResponseDataAttributes](docs/POSTCarrierAccounts201ResponseDataAttributes.md) - [POSTCheckoutComGateways201Response](docs/POSTCheckoutComGateways201Response.md) - [POSTCheckoutComGateways201ResponseData](docs/POSTCheckoutComGateways201ResponseData.md) - [POSTCheckoutComGateways201ResponseDataAttributes](docs/POSTCheckoutComGateways201ResponseDataAttributes.md) @@ -2745,8 +3431,6 @@ Class | Method | HTTP request | Description - [POSTCouponCodesPromotionRules201Response](docs/POSTCouponCodesPromotionRules201Response.md) - [POSTCouponCodesPromotionRules201ResponseData](docs/POSTCouponCodesPromotionRules201ResponseData.md) - [POSTCouponCodesPromotionRules201ResponseDataRelationships](docs/POSTCouponCodesPromotionRules201ResponseDataRelationships.md) - - [POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons](docs/POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons.md) - - [POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData](docs/POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData.md) - [POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion](docs/POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion.md) - [POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotionData](docs/POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotionData.md) - [POSTCouponRecipients201Response](docs/POSTCouponRecipients201Response.md) @@ -2759,10 +3443,17 @@ Class | Method | HTTP request | Description - [POSTCoupons201ResponseData](docs/POSTCoupons201ResponseData.md) - [POSTCoupons201ResponseDataAttributes](docs/POSTCoupons201ResponseDataAttributes.md) - [POSTCoupons201ResponseDataRelationships](docs/POSTCoupons201ResponseDataRelationships.md) + - [POSTCoupons201ResponseDataRelationshipsCouponRecipient](docs/POSTCoupons201ResponseDataRelationshipsCouponRecipient.md) + - [POSTCoupons201ResponseDataRelationshipsCouponRecipientData](docs/POSTCoupons201ResponseDataRelationshipsCouponRecipientData.md) - [POSTCoupons201ResponseDataRelationshipsPromotionRule](docs/POSTCoupons201ResponseDataRelationshipsPromotionRule.md) - [POSTCoupons201ResponseDataRelationshipsPromotionRuleData](docs/POSTCoupons201ResponseDataRelationshipsPromotionRuleData.md) + - [POSTCustomPromotionRules201Response](docs/POSTCustomPromotionRules201Response.md) + - [POSTCustomPromotionRules201ResponseData](docs/POSTCustomPromotionRules201ResponseData.md) + - [POSTCustomPromotionRules201ResponseDataAttributes](docs/POSTCustomPromotionRules201ResponseDataAttributes.md) + - [POSTCustomPromotionRules201ResponseDataRelationships](docs/POSTCustomPromotionRules201ResponseDataRelationships.md) - [POSTCustomerAddresses201Response](docs/POSTCustomerAddresses201Response.md) - [POSTCustomerAddresses201ResponseData](docs/POSTCustomerAddresses201ResponseData.md) + - [POSTCustomerAddresses201ResponseDataAttributes](docs/POSTCustomerAddresses201ResponseDataAttributes.md) - [POSTCustomerAddresses201ResponseDataRelationships](docs/POSTCustomerAddresses201ResponseDataRelationships.md) - [POSTCustomerAddresses201ResponseDataRelationshipsAddress](docs/POSTCustomerAddresses201ResponseDataRelationshipsAddress.md) - [POSTCustomerAddresses201ResponseDataRelationshipsAddressData](docs/POSTCustomerAddresses201ResponseDataRelationshipsAddressData.md) @@ -2778,12 +3469,16 @@ Class | Method | HTTP request | Description - [POSTCustomerPasswordResets201ResponseDataRelationships](docs/POSTCustomerPasswordResets201ResponseDataRelationships.md) - [POSTCustomerPaymentSources201Response](docs/POSTCustomerPaymentSources201Response.md) - [POSTCustomerPaymentSources201ResponseData](docs/POSTCustomerPaymentSources201ResponseData.md) + - [POSTCustomerPaymentSources201ResponseDataAttributes](docs/POSTCustomerPaymentSources201ResponseDataAttributes.md) - [POSTCustomerPaymentSources201ResponseDataRelationships](docs/POSTCustomerPaymentSources201ResponseDataRelationships.md) + - [POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod](docs/POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod.md) + - [POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData](docs/POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData.md) - [POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentSource](docs/POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentSource.md) - [POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentSourceData](docs/POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentSourceData.md) - [POSTCustomerSubscriptions201Response](docs/POSTCustomerSubscriptions201Response.md) - [POSTCustomerSubscriptions201ResponseData](docs/POSTCustomerSubscriptions201ResponseData.md) - [POSTCustomerSubscriptions201ResponseDataAttributes](docs/POSTCustomerSubscriptions201ResponseDataAttributes.md) + - [POSTCustomerSubscriptions201ResponseDataRelationships](docs/POSTCustomerSubscriptions201ResponseDataRelationships.md) - [POSTCustomers201Response](docs/POSTCustomers201Response.md) - [POSTCustomers201ResponseData](docs/POSTCustomers201ResponseData.md) - [POSTCustomers201ResponseDataAttributes](docs/POSTCustomers201ResponseDataAttributes.md) @@ -2815,6 +3510,7 @@ Class | Method | HTTP request | Description - [POSTExports201Response](docs/POSTExports201Response.md) - [POSTExports201ResponseData](docs/POSTExports201ResponseData.md) - [POSTExports201ResponseDataAttributes](docs/POSTExports201ResponseDataAttributes.md) + - [POSTExports201ResponseDataRelationships](docs/POSTExports201ResponseDataRelationships.md) - [POSTExternalGateways201Response](docs/POSTExternalGateways201Response.md) - [POSTExternalGateways201ResponseData](docs/POSTExternalGateways201ResponseData.md) - [POSTExternalGateways201ResponseDataAttributes](docs/POSTExternalGateways201ResponseDataAttributes.md) @@ -2830,15 +3526,6 @@ Class | Method | HTTP request | Description - [POSTExternalPromotions201Response](docs/POSTExternalPromotions201Response.md) - [POSTExternalPromotions201ResponseData](docs/POSTExternalPromotions201ResponseData.md) - [POSTExternalPromotions201ResponseDataAttributes](docs/POSTExternalPromotions201ResponseDataAttributes.md) - - [POSTExternalPromotions201ResponseDataRelationships](docs/POSTExternalPromotions201ResponseDataRelationships.md) - - [POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule](docs/POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule.md) - - [POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData](docs/POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData.md) - - [POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule](docs/POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule.md) - - [POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData](docs/POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData.md) - - [POSTExternalPromotions201ResponseDataRelationshipsPromotionRules](docs/POSTExternalPromotions201ResponseDataRelationshipsPromotionRules.md) - - [POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData](docs/POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData.md) - - [POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule](docs/POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule.md) - - [POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData](docs/POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData.md) - [POSTExternalTaxCalculators201Response](docs/POSTExternalTaxCalculators201Response.md) - [POSTExternalTaxCalculators201ResponseData](docs/POSTExternalTaxCalculators201ResponseData.md) - [POSTExternalTaxCalculators201ResponseDataAttributes](docs/POSTExternalTaxCalculators201ResponseDataAttributes.md) @@ -2849,13 +3536,17 @@ Class | Method | HTTP request | Description - [POSTFixedPricePromotions201Response](docs/POSTFixedPricePromotions201Response.md) - [POSTFixedPricePromotions201ResponseData](docs/POSTFixedPricePromotions201ResponseData.md) - [POSTFixedPricePromotions201ResponseDataAttributes](docs/POSTFixedPricePromotions201ResponseDataAttributes.md) - - [POSTFixedPricePromotions201ResponseDataRelationships](docs/POSTFixedPricePromotions201ResponseDataRelationships.md) + - [POSTFlexPromotions201Response](docs/POSTFlexPromotions201Response.md) + - [POSTFlexPromotions201ResponseData](docs/POSTFlexPromotions201ResponseData.md) + - [POSTFlexPromotions201ResponseDataAttributes](docs/POSTFlexPromotions201ResponseDataAttributes.md) + - [POSTFlexPromotions201ResponseDataRelationships](docs/POSTFlexPromotions201ResponseDataRelationships.md) - [POSTFreeGiftPromotions201Response](docs/POSTFreeGiftPromotions201Response.md) - [POSTFreeGiftPromotions201ResponseData](docs/POSTFreeGiftPromotions201ResponseData.md) - [POSTFreeGiftPromotions201ResponseDataAttributes](docs/POSTFreeGiftPromotions201ResponseDataAttributes.md) - [POSTFreeShippingPromotions201Response](docs/POSTFreeShippingPromotions201Response.md) - [POSTFreeShippingPromotions201ResponseData](docs/POSTFreeShippingPromotions201ResponseData.md) - [POSTFreeShippingPromotions201ResponseDataAttributes](docs/POSTFreeShippingPromotions201ResponseDataAttributes.md) + - [POSTFreeShippingPromotions201ResponseDataRelationships](docs/POSTFreeShippingPromotions201ResponseDataRelationships.md) - [POSTGiftCardRecipients201Response](docs/POSTGiftCardRecipients201Response.md) - [POSTGiftCardRecipients201ResponseData](docs/POSTGiftCardRecipients201ResponseData.md) - [POSTGiftCards201Response](docs/POSTGiftCards201Response.md) @@ -2913,16 +3604,30 @@ Class | Method | HTTP request | Description - [POSTLineItems201ResponseData](docs/POSTLineItems201ResponseData.md) - [POSTLineItems201ResponseDataAttributes](docs/POSTLineItems201ResponseDataAttributes.md) - [POSTLineItems201ResponseDataRelationships](docs/POSTLineItems201ResponseDataRelationships.md) + - [POSTLineItems201ResponseDataRelationshipsAdjustment](docs/POSTLineItems201ResponseDataRelationshipsAdjustment.md) + - [POSTLineItems201ResponseDataRelationshipsAdjustmentData](docs/POSTLineItems201ResponseDataRelationshipsAdjustmentData.md) + - [POSTLineItems201ResponseDataRelationshipsBundle](docs/POSTLineItems201ResponseDataRelationshipsBundle.md) + - [POSTLineItems201ResponseDataRelationshipsBundleData](docs/POSTLineItems201ResponseDataRelationshipsBundleData.md) + - [POSTLineItems201ResponseDataRelationshipsGiftCard](docs/POSTLineItems201ResponseDataRelationshipsGiftCard.md) + - [POSTLineItems201ResponseDataRelationshipsGiftCardData](docs/POSTLineItems201ResponseDataRelationshipsGiftCardData.md) - [POSTLineItems201ResponseDataRelationshipsItem](docs/POSTLineItems201ResponseDataRelationshipsItem.md) - [POSTLineItems201ResponseDataRelationshipsItemData](docs/POSTLineItems201ResponseDataRelationshipsItemData.md) - [POSTLineItems201ResponseDataRelationshipsLineItemOptions](docs/POSTLineItems201ResponseDataRelationshipsLineItemOptions.md) - [POSTLineItems201ResponseDataRelationshipsLineItemOptionsData](docs/POSTLineItems201ResponseDataRelationshipsLineItemOptionsData.md) - - [POSTLineItems201ResponseDataRelationshipsShipmentLineItems](docs/POSTLineItems201ResponseDataRelationshipsShipmentLineItems.md) - - [POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData](docs/POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData.md) + - [POSTLineItems201ResponseDataRelationshipsReturnLineItems](docs/POSTLineItems201ResponseDataRelationshipsReturnLineItems.md) + - [POSTLineItems201ResponseDataRelationshipsReturnLineItemsData](docs/POSTLineItems201ResponseDataRelationshipsReturnLineItemsData.md) + - [POSTLineItems201ResponseDataRelationshipsShipment](docs/POSTLineItems201ResponseDataRelationshipsShipment.md) + - [POSTLineItems201ResponseDataRelationshipsShipmentData](docs/POSTLineItems201ResponseDataRelationshipsShipmentData.md) - [POSTLineItems201ResponseDataRelationshipsStockLineItems](docs/POSTLineItems201ResponseDataRelationshipsStockLineItems.md) - [POSTLineItems201ResponseDataRelationshipsStockLineItemsData](docs/POSTLineItems201ResponseDataRelationshipsStockLineItemsData.md) + - [POSTLineItems201ResponseDataRelationshipsStockReservations](docs/POSTLineItems201ResponseDataRelationshipsStockReservations.md) + - [POSTLineItems201ResponseDataRelationshipsStockReservationsData](docs/POSTLineItems201ResponseDataRelationshipsStockReservationsData.md) - [POSTLineItems201ResponseDataRelationshipsStockTransfers](docs/POSTLineItems201ResponseDataRelationshipsStockTransfers.md) - [POSTLineItems201ResponseDataRelationshipsStockTransfersData](docs/POSTLineItems201ResponseDataRelationshipsStockTransfersData.md) + - [POSTLinks201Response](docs/POSTLinks201Response.md) + - [POSTLinks201ResponseData](docs/POSTLinks201ResponseData.md) + - [POSTLinks201ResponseDataAttributes](docs/POSTLinks201ResponseDataAttributes.md) + - [POSTLinks201ResponseDataRelationships](docs/POSTLinks201ResponseDataRelationships.md) - [POSTManualGateways201Response](docs/POSTManualGateways201Response.md) - [POSTManualGateways201ResponseData](docs/POSTManualGateways201ResponseData.md) - [POSTManualGateways201ResponseDataAttributes](docs/POSTManualGateways201ResponseDataAttributes.md) @@ -2937,10 +3642,14 @@ Class | Method | HTTP request | Description - [POSTMarkets201ResponseData](docs/POSTMarkets201ResponseData.md) - [POSTMarkets201ResponseDataAttributes](docs/POSTMarkets201ResponseDataAttributes.md) - [POSTMarkets201ResponseDataRelationships](docs/POSTMarkets201ResponseDataRelationships.md) + - [POSTMarkets201ResponseDataRelationshipsBasePriceList](docs/POSTMarkets201ResponseDataRelationshipsBasePriceList.md) + - [POSTMarkets201ResponseDataRelationshipsBasePriceListData](docs/POSTMarkets201ResponseDataRelationshipsBasePriceListData.md) - [POSTMarkets201ResponseDataRelationshipsMerchant](docs/POSTMarkets201ResponseDataRelationshipsMerchant.md) - [POSTMarkets201ResponseDataRelationshipsMerchantData](docs/POSTMarkets201ResponseDataRelationshipsMerchantData.md) - [POSTMarkets201ResponseDataRelationshipsPriceList](docs/POSTMarkets201ResponseDataRelationshipsPriceList.md) - [POSTMarkets201ResponseDataRelationshipsPriceListData](docs/POSTMarkets201ResponseDataRelationshipsPriceListData.md) + - [POSTMarkets201ResponseDataRelationshipsPriceListSchedulers](docs/POSTMarkets201ResponseDataRelationshipsPriceListSchedulers.md) + - [POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData](docs/POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData.md) - [POSTMarkets201ResponseDataRelationshipsSubscriptionModel](docs/POSTMarkets201ResponseDataRelationshipsSubscriptionModel.md) - [POSTMarkets201ResponseDataRelationshipsSubscriptionModelData](docs/POSTMarkets201ResponseDataRelationshipsSubscriptionModelData.md) - [POSTMarkets201ResponseDataRelationshipsTaxCalculator](docs/POSTMarkets201ResponseDataRelationshipsTaxCalculator.md) @@ -2952,7 +3661,6 @@ Class | Method | HTTP request | Description - [POSTOrderAmountPromotionRules201Response](docs/POSTOrderAmountPromotionRules201Response.md) - [POSTOrderAmountPromotionRules201ResponseData](docs/POSTOrderAmountPromotionRules201ResponseData.md) - [POSTOrderAmountPromotionRules201ResponseDataAttributes](docs/POSTOrderAmountPromotionRules201ResponseDataAttributes.md) - - [POSTOrderAmountPromotionRules201ResponseDataRelationships](docs/POSTOrderAmountPromotionRules201ResponseDataRelationships.md) - [POSTOrderCopies201Response](docs/POSTOrderCopies201Response.md) - [POSTOrderCopies201ResponseData](docs/POSTOrderCopies201ResponseData.md) - [POSTOrderCopies201ResponseDataAttributes](docs/POSTOrderCopies201ResponseDataAttributes.md) @@ -2967,14 +3675,14 @@ Class | Method | HTTP request | Description - [POSTOrderSubscriptionItems201ResponseData](docs/POSTOrderSubscriptionItems201ResponseData.md) - [POSTOrderSubscriptionItems201ResponseDataAttributes](docs/POSTOrderSubscriptionItems201ResponseDataAttributes.md) - [POSTOrderSubscriptionItems201ResponseDataRelationships](docs/POSTOrderSubscriptionItems201ResponseDataRelationships.md) + - [POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem](docs/POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem.md) + - [POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData](docs/POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData.md) - [POSTOrderSubscriptions201Response](docs/POSTOrderSubscriptions201Response.md) - [POSTOrderSubscriptions201ResponseData](docs/POSTOrderSubscriptions201ResponseData.md) - [POSTOrderSubscriptions201ResponseDataAttributes](docs/POSTOrderSubscriptions201ResponseDataAttributes.md) - [POSTOrderSubscriptions201ResponseDataRelationships](docs/POSTOrderSubscriptions201ResponseDataRelationships.md) - [POSTOrderSubscriptions201ResponseDataRelationshipsCustomerPaymentSource](docs/POSTOrderSubscriptions201ResponseDataRelationshipsCustomerPaymentSource.md) - [POSTOrderSubscriptions201ResponseDataRelationshipsCustomerPaymentSourceData](docs/POSTOrderSubscriptions201ResponseDataRelationshipsCustomerPaymentSourceData.md) - - [POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies](docs/POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies.md) - - [POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData](docs/POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData.md) - [POSTOrderSubscriptions201ResponseDataRelationshipsOrderFactories](docs/POSTOrderSubscriptions201ResponseDataRelationshipsOrderFactories.md) - [POSTOrderSubscriptions201ResponseDataRelationshipsOrderFactoriesData](docs/POSTOrderSubscriptions201ResponseDataRelationshipsOrderFactoriesData.md) - [POSTOrderSubscriptions201ResponseDataRelationshipsOrderSubscriptionItems](docs/POSTOrderSubscriptions201ResponseDataRelationshipsOrderSubscriptionItems.md) @@ -2999,8 +3707,14 @@ Class | Method | HTTP request | Description - [POSTOrders201ResponseDataRelationshipsBillingAddressData](docs/POSTOrders201ResponseDataRelationshipsBillingAddressData.md) - [POSTOrders201ResponseDataRelationshipsLineItems](docs/POSTOrders201ResponseDataRelationshipsLineItems.md) - [POSTOrders201ResponseDataRelationshipsLineItemsData](docs/POSTOrders201ResponseDataRelationshipsLineItemsData.md) - - [POSTOrders201ResponseDataRelationshipsPaymentMethod](docs/POSTOrders201ResponseDataRelationshipsPaymentMethod.md) - - [POSTOrders201ResponseDataRelationshipsPaymentMethodData](docs/POSTOrders201ResponseDataRelationshipsPaymentMethodData.md) + - [POSTOrders201ResponseDataRelationshipsLinks](docs/POSTOrders201ResponseDataRelationshipsLinks.md) + - [POSTOrders201ResponseDataRelationshipsLinksData](docs/POSTOrders201ResponseDataRelationshipsLinksData.md) + - [POSTOrders201ResponseDataRelationshipsOrderCopies](docs/POSTOrders201ResponseDataRelationshipsOrderCopies.md) + - [POSTOrders201ResponseDataRelationshipsOrderCopiesData](docs/POSTOrders201ResponseDataRelationshipsOrderCopiesData.md) + - [POSTOrders201ResponseDataRelationshipsPaymentOptions](docs/POSTOrders201ResponseDataRelationshipsPaymentOptions.md) + - [POSTOrders201ResponseDataRelationshipsPaymentOptionsData](docs/POSTOrders201ResponseDataRelationshipsPaymentOptionsData.md) + - [POSTOrders201ResponseDataRelationshipsResourceErrors](docs/POSTOrders201ResponseDataRelationshipsResourceErrors.md) + - [POSTOrders201ResponseDataRelationshipsResourceErrorsData](docs/POSTOrders201ResponseDataRelationshipsResourceErrorsData.md) - [POSTOrders201ResponseDataRelationshipsShipments](docs/POSTOrders201ResponseDataRelationshipsShipments.md) - [POSTOrders201ResponseDataRelationshipsShipmentsData](docs/POSTOrders201ResponseDataRelationshipsShipmentsData.md) - [POSTOrders201ResponseDataRelationshipsShippingAddress](docs/POSTOrders201ResponseDataRelationshipsShippingAddress.md) @@ -3019,8 +3733,6 @@ Class | Method | HTTP request | Description - [POSTParcelLineItems201ResponseDataRelationships](docs/POSTParcelLineItems201ResponseDataRelationships.md) - [POSTParcelLineItems201ResponseDataRelationshipsParcel](docs/POSTParcelLineItems201ResponseDataRelationshipsParcel.md) - [POSTParcelLineItems201ResponseDataRelationshipsParcelData](docs/POSTParcelLineItems201ResponseDataRelationshipsParcelData.md) - - [POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem](docs/POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem.md) - - [POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData](docs/POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData.md) - [POSTParcelLineItems201ResponseDataRelationshipsStockLineItem](docs/POSTParcelLineItems201ResponseDataRelationshipsStockLineItem.md) - [POSTParcelLineItems201ResponseDataRelationshipsStockLineItemData](docs/POSTParcelLineItems201ResponseDataRelationshipsStockLineItemData.md) - [POSTParcels201Response](docs/POSTParcels201Response.md) @@ -3031,12 +3743,14 @@ Class | Method | HTTP request | Description - [POSTParcels201ResponseDataRelationshipsPackageData](docs/POSTParcels201ResponseDataRelationshipsPackageData.md) - [POSTParcels201ResponseDataRelationshipsParcelLineItems](docs/POSTParcels201ResponseDataRelationshipsParcelLineItems.md) - [POSTParcels201ResponseDataRelationshipsParcelLineItemsData](docs/POSTParcels201ResponseDataRelationshipsParcelLineItemsData.md) - - [POSTParcels201ResponseDataRelationshipsShipment](docs/POSTParcels201ResponseDataRelationshipsShipment.md) - - [POSTParcels201ResponseDataRelationshipsShipmentData](docs/POSTParcels201ResponseDataRelationshipsShipmentData.md) - [POSTPaymentMethods201Response](docs/POSTPaymentMethods201Response.md) - [POSTPaymentMethods201ResponseData](docs/POSTPaymentMethods201ResponseData.md) - [POSTPaymentMethods201ResponseDataAttributes](docs/POSTPaymentMethods201ResponseDataAttributes.md) - [POSTPaymentMethods201ResponseDataRelationships](docs/POSTPaymentMethods201ResponseDataRelationships.md) + - [POSTPaymentOptions201Response](docs/POSTPaymentOptions201Response.md) + - [POSTPaymentOptions201ResponseData](docs/POSTPaymentOptions201ResponseData.md) + - [POSTPaymentOptions201ResponseDataAttributes](docs/POSTPaymentOptions201ResponseDataAttributes.md) + - [POSTPaymentOptions201ResponseDataRelationships](docs/POSTPaymentOptions201ResponseDataRelationships.md) - [POSTPaypalGateways201Response](docs/POSTPaypalGateways201Response.md) - [POSTPaypalGateways201ResponseData](docs/POSTPaypalGateways201ResponseData.md) - [POSTPaypalGateways201ResponseDataAttributes](docs/POSTPaypalGateways201ResponseDataAttributes.md) @@ -3055,6 +3769,10 @@ Class | Method | HTTP request | Description - [POSTPriceFrequencyTiers201ResponseDataRelationships](docs/POSTPriceFrequencyTiers201ResponseDataRelationships.md) - [POSTPriceFrequencyTiers201ResponseDataRelationshipsPrice](docs/POSTPriceFrequencyTiers201ResponseDataRelationshipsPrice.md) - [POSTPriceFrequencyTiers201ResponseDataRelationshipsPriceData](docs/POSTPriceFrequencyTiers201ResponseDataRelationshipsPriceData.md) + - [POSTPriceListSchedulers201Response](docs/POSTPriceListSchedulers201Response.md) + - [POSTPriceListSchedulers201ResponseData](docs/POSTPriceListSchedulers201ResponseData.md) + - [POSTPriceListSchedulers201ResponseDataAttributes](docs/POSTPriceListSchedulers201ResponseDataAttributes.md) + - [POSTPriceListSchedulers201ResponseDataRelationships](docs/POSTPriceListSchedulers201ResponseDataRelationships.md) - [POSTPriceLists201Response](docs/POSTPriceLists201Response.md) - [POSTPriceLists201ResponseData](docs/POSTPriceLists201ResponseData.md) - [POSTPriceLists201ResponseDataAttributes](docs/POSTPriceLists201ResponseDataAttributes.md) @@ -3068,6 +3786,12 @@ Class | Method | HTTP request | Description - [POSTPrices201ResponseData](docs/POSTPrices201ResponseData.md) - [POSTPrices201ResponseDataAttributes](docs/POSTPrices201ResponseDataAttributes.md) - [POSTPrices201ResponseDataRelationships](docs/POSTPrices201ResponseDataRelationships.md) + - [POSTPrices201ResponseDataRelationshipsJwtCustomer](docs/POSTPrices201ResponseDataRelationshipsJwtCustomer.md) + - [POSTPrices201ResponseDataRelationshipsJwtCustomerData](docs/POSTPrices201ResponseDataRelationshipsJwtCustomerData.md) + - [POSTPrices201ResponseDataRelationshipsJwtMarkets](docs/POSTPrices201ResponseDataRelationshipsJwtMarkets.md) + - [POSTPrices201ResponseDataRelationshipsJwtMarketsData](docs/POSTPrices201ResponseDataRelationshipsJwtMarketsData.md) + - [POSTPrices201ResponseDataRelationshipsJwtStockLocations](docs/POSTPrices201ResponseDataRelationshipsJwtStockLocations.md) + - [POSTPrices201ResponseDataRelationshipsJwtStockLocationsData](docs/POSTPrices201ResponseDataRelationshipsJwtStockLocationsData.md) - [POSTPrices201ResponseDataRelationshipsPriceFrequencyTiers](docs/POSTPrices201ResponseDataRelationshipsPriceFrequencyTiers.md) - [POSTPrices201ResponseDataRelationshipsPriceFrequencyTiersData](docs/POSTPrices201ResponseDataRelationshipsPriceFrequencyTiersData.md) - [POSTPrices201ResponseDataRelationshipsPriceTiers](docs/POSTPrices201ResponseDataRelationshipsPriceTiers.md) @@ -3081,8 +3805,6 @@ Class | Method | HTTP request | Description - [POSTReturnLineItems201ResponseData](docs/POSTReturnLineItems201ResponseData.md) - [POSTReturnLineItems201ResponseDataAttributes](docs/POSTReturnLineItems201ResponseDataAttributes.md) - [POSTReturnLineItems201ResponseDataRelationships](docs/POSTReturnLineItems201ResponseDataRelationships.md) - - [POSTReturnLineItems201ResponseDataRelationshipsReturn](docs/POSTReturnLineItems201ResponseDataRelationshipsReturn.md) - - [POSTReturnLineItems201ResponseDataRelationshipsReturnData](docs/POSTReturnLineItems201ResponseDataRelationshipsReturnData.md) - [POSTReturns201Response](docs/POSTReturns201Response.md) - [POSTReturns201ResponseData](docs/POSTReturns201ResponseData.md) - [POSTReturns201ResponseDataRelationships](docs/POSTReturns201ResponseDataRelationships.md) @@ -3090,16 +3812,30 @@ Class | Method | HTTP request | Description - [POSTReturns201ResponseDataRelationshipsDestinationAddressData](docs/POSTReturns201ResponseDataRelationshipsDestinationAddressData.md) - [POSTReturns201ResponseDataRelationshipsOriginAddress](docs/POSTReturns201ResponseDataRelationshipsOriginAddress.md) - [POSTReturns201ResponseDataRelationshipsOriginAddressData](docs/POSTReturns201ResponseDataRelationshipsOriginAddressData.md) - - [POSTReturns201ResponseDataRelationshipsReturnLineItems](docs/POSTReturns201ResponseDataRelationshipsReturnLineItems.md) - - [POSTReturns201ResponseDataRelationshipsReturnLineItemsData](docs/POSTReturns201ResponseDataRelationshipsReturnLineItemsData.md) + - [POSTReturns201ResponseDataRelationshipsReferenceRefund](docs/POSTReturns201ResponseDataRelationshipsReferenceRefund.md) + - [POSTReturns201ResponseDataRelationshipsReferenceRefundData](docs/POSTReturns201ResponseDataRelationshipsReferenceRefundData.md) - [POSTSatispayGateways201Response](docs/POSTSatispayGateways201Response.md) - [POSTSatispayGateways201ResponseData](docs/POSTSatispayGateways201ResponseData.md) + - [POSTSatispayGateways201ResponseDataAttributes](docs/POSTSatispayGateways201ResponseDataAttributes.md) - [POSTSatispayGateways201ResponseDataRelationships](docs/POSTSatispayGateways201ResponseDataRelationships.md) - [POSTSatispayGateways201ResponseDataRelationshipsSatispayPayments](docs/POSTSatispayGateways201ResponseDataRelationshipsSatispayPayments.md) - [POSTSatispayGateways201ResponseDataRelationshipsSatispayPaymentsData](docs/POSTSatispayGateways201ResponseDataRelationshipsSatispayPaymentsData.md) - [POSTSatispayPayments201Response](docs/POSTSatispayPayments201Response.md) - [POSTSatispayPayments201ResponseData](docs/POSTSatispayPayments201ResponseData.md) - [POSTSatispayPayments201ResponseDataAttributes](docs/POSTSatispayPayments201ResponseDataAttributes.md) + - [POSTShipments201Response](docs/POSTShipments201Response.md) + - [POSTShipments201ResponseData](docs/POSTShipments201ResponseData.md) + - [POSTShipments201ResponseDataRelationships](docs/POSTShipments201ResponseDataRelationships.md) + - [POSTShipments201ResponseDataRelationshipsAvailableShippingMethods](docs/POSTShipments201ResponseDataRelationshipsAvailableShippingMethods.md) + - [POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData](docs/POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData.md) + - [POSTShipments201ResponseDataRelationshipsCarrierAccounts](docs/POSTShipments201ResponseDataRelationshipsCarrierAccounts.md) + - [POSTShipments201ResponseDataRelationshipsCarrierAccountsData](docs/POSTShipments201ResponseDataRelationshipsCarrierAccountsData.md) + - [POSTShipments201ResponseDataRelationshipsDeliveryLeadTime](docs/POSTShipments201ResponseDataRelationshipsDeliveryLeadTime.md) + - [POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData](docs/POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData.md) + - [POSTShipments201ResponseDataRelationshipsInventoryStockLocation](docs/POSTShipments201ResponseDataRelationshipsInventoryStockLocation.md) + - [POSTShipments201ResponseDataRelationshipsInventoryStockLocationData](docs/POSTShipments201ResponseDataRelationshipsInventoryStockLocationData.md) + - [POSTShipments201ResponseDataRelationshipsShippingCategory](docs/POSTShipments201ResponseDataRelationshipsShippingCategory.md) + - [POSTShipments201ResponseDataRelationshipsShippingCategoryData](docs/POSTShipments201ResponseDataRelationshipsShippingCategoryData.md) - [POSTShippingCategories201Response](docs/POSTShippingCategories201Response.md) - [POSTShippingCategories201ResponseData](docs/POSTShippingCategories201ResponseData.md) - [POSTShippingCategories201ResponseDataAttributes](docs/POSTShippingCategories201ResponseDataAttributes.md) @@ -3142,6 +3878,7 @@ Class | Method | HTTP request | Description - [POSTSkuOptions201Response](docs/POSTSkuOptions201Response.md) - [POSTSkuOptions201ResponseData](docs/POSTSkuOptions201ResponseData.md) - [POSTSkuOptions201ResponseDataAttributes](docs/POSTSkuOptions201ResponseDataAttributes.md) + - [POSTSkuOptions201ResponseDataRelationships](docs/POSTSkuOptions201ResponseDataRelationships.md) - [POSTSkus201Response](docs/POSTSkus201Response.md) - [POSTSkus201ResponseData](docs/POSTSkus201ResponseData.md) - [POSTSkus201ResponseDataAttributes](docs/POSTSkus201ResponseDataAttributes.md) @@ -3156,10 +3893,24 @@ Class | Method | HTTP request | Description - [POSTStockItems201ResponseData](docs/POSTStockItems201ResponseData.md) - [POSTStockItems201ResponseDataAttributes](docs/POSTStockItems201ResponseDataAttributes.md) - [POSTStockItems201ResponseDataRelationships](docs/POSTStockItems201ResponseDataRelationships.md) + - [POSTStockItems201ResponseDataRelationshipsReservedStock](docs/POSTStockItems201ResponseDataRelationshipsReservedStock.md) + - [POSTStockItems201ResponseDataRelationshipsReservedStockData](docs/POSTStockItems201ResponseDataRelationshipsReservedStockData.md) + - [POSTStockLineItems201Response](docs/POSTStockLineItems201Response.md) + - [POSTStockLineItems201ResponseData](docs/POSTStockLineItems201ResponseData.md) + - [POSTStockLineItems201ResponseDataAttributes](docs/POSTStockLineItems201ResponseDataAttributes.md) + - [POSTStockLineItems201ResponseDataRelationships](docs/POSTStockLineItems201ResponseDataRelationships.md) + - [POSTStockLineItems201ResponseDataRelationshipsStockReservation](docs/POSTStockLineItems201ResponseDataRelationshipsStockReservation.md) + - [POSTStockLineItems201ResponseDataRelationshipsStockReservationData](docs/POSTStockLineItems201ResponseDataRelationshipsStockReservationData.md) - [POSTStockLocations201Response](docs/POSTStockLocations201Response.md) - [POSTStockLocations201ResponseData](docs/POSTStockLocations201ResponseData.md) - [POSTStockLocations201ResponseDataAttributes](docs/POSTStockLocations201ResponseDataAttributes.md) - [POSTStockLocations201ResponseDataRelationships](docs/POSTStockLocations201ResponseDataRelationships.md) + - [POSTStockReservations201Response](docs/POSTStockReservations201Response.md) + - [POSTStockReservations201ResponseData](docs/POSTStockReservations201ResponseData.md) + - [POSTStockReservations201ResponseDataAttributes](docs/POSTStockReservations201ResponseDataAttributes.md) + - [POSTStockReservations201ResponseDataRelationships](docs/POSTStockReservations201ResponseDataRelationships.md) + - [POSTStockReservations201ResponseDataRelationshipsStockTransfer](docs/POSTStockReservations201ResponseDataRelationshipsStockTransfer.md) + - [POSTStockReservations201ResponseDataRelationshipsStockTransferData](docs/POSTStockReservations201ResponseDataRelationshipsStockTransferData.md) - [POSTStockTransfers201Response](docs/POSTStockTransfers201Response.md) - [POSTStockTransfers201ResponseData](docs/POSTStockTransfers201ResponseData.md) - [POSTStockTransfers201ResponseDataAttributes](docs/POSTStockTransfers201ResponseDataAttributes.md) @@ -3181,6 +3932,9 @@ Class | Method | HTTP request | Description - [POSTSubscriptionModels201ResponseData](docs/POSTSubscriptionModels201ResponseData.md) - [POSTSubscriptionModels201ResponseDataAttributes](docs/POSTSubscriptionModels201ResponseDataAttributes.md) - [POSTSubscriptionModels201ResponseDataRelationships](docs/POSTSubscriptionModels201ResponseDataRelationships.md) + - [POSTTags201Response](docs/POSTTags201Response.md) + - [POSTTags201ResponseData](docs/POSTTags201ResponseData.md) + - [POSTTags201ResponseDataAttributes](docs/POSTTags201ResponseDataAttributes.md) - [POSTTaxCategories201Response](docs/POSTTaxCategories201Response.md) - [POSTTaxCategories201ResponseData](docs/POSTTaxCategories201ResponseData.md) - [POSTTaxCategories201ResponseDataAttributes](docs/POSTTaxCategories201ResponseDataAttributes.md) @@ -3194,12 +3948,14 @@ Class | Method | HTTP request | Description - [POSTTaxjarAccounts201Response](docs/POSTTaxjarAccounts201Response.md) - [POSTTaxjarAccounts201ResponseData](docs/POSTTaxjarAccounts201ResponseData.md) - [POSTTaxjarAccounts201ResponseDataAttributes](docs/POSTTaxjarAccounts201ResponseDataAttributes.md) + - [POSTTaxjarAccounts201ResponseDataRelationships](docs/POSTTaxjarAccounts201ResponseDataRelationships.md) - [POSTWebhooks201Response](docs/POSTWebhooks201Response.md) - [POSTWebhooks201ResponseData](docs/POSTWebhooks201ResponseData.md) - [POSTWebhooks201ResponseDataAttributes](docs/POSTWebhooks201ResponseDataAttributes.md) - [POSTWebhooks201ResponseDataRelationships](docs/POSTWebhooks201ResponseDataRelationships.md) - [POSTWireTransfers201Response](docs/POSTWireTransfers201Response.md) - [POSTWireTransfers201ResponseData](docs/POSTWireTransfers201ResponseData.md) + - [POSTWireTransfers201ResponseDataRelationships](docs/POSTWireTransfers201ResponseDataRelationships.md) - [PackageCreate](docs/PackageCreate.md) - [PackageCreateData](docs/PackageCreateData.md) - [PackageCreateDataRelationships](docs/PackageCreateDataRelationships.md) @@ -3227,7 +3983,6 @@ Class | Method | HTTP request | Description - [ParcelLineItemCreateData](docs/ParcelLineItemCreateData.md) - [ParcelLineItemCreateDataRelationships](docs/ParcelLineItemCreateDataRelationships.md) - [ParcelLineItemCreateDataRelationshipsParcel](docs/ParcelLineItemCreateDataRelationshipsParcel.md) - - [ParcelLineItemCreateDataRelationshipsShipmentLineItem](docs/ParcelLineItemCreateDataRelationshipsShipmentLineItem.md) - [ParcelLineItemCreateDataRelationshipsStockLineItem](docs/ParcelLineItemCreateDataRelationshipsStockLineItem.md) - [ParcelLineItemData](docs/ParcelLineItemData.md) - [ParcelLineItemDataRelationships](docs/ParcelLineItemDataRelationships.md) @@ -3248,6 +4003,13 @@ Class | Method | HTTP request | Description - [PaymentMethodUpdate](docs/PaymentMethodUpdate.md) - [PaymentMethodUpdateData](docs/PaymentMethodUpdateData.md) - [PaymentMethodUpdateDataRelationships](docs/PaymentMethodUpdateDataRelationships.md) + - [PaymentOption](docs/PaymentOption.md) + - [PaymentOptionCreate](docs/PaymentOptionCreate.md) + - [PaymentOptionCreateData](docs/PaymentOptionCreateData.md) + - [PaymentOptionData](docs/PaymentOptionData.md) + - [PaymentOptionDataRelationships](docs/PaymentOptionDataRelationships.md) + - [PaymentOptionUpdate](docs/PaymentOptionUpdate.md) + - [PaymentOptionUpdateData](docs/PaymentOptionUpdateData.md) - [PaypalGateway](docs/PaypalGateway.md) - [PaypalGatewayCreate](docs/PaypalGatewayCreate.md) - [PaypalGatewayCreateData](docs/PaypalGatewayCreateData.md) @@ -3299,6 +4061,15 @@ Class | Method | HTTP request | Description - [PriceListCreateData](docs/PriceListCreateData.md) - [PriceListData](docs/PriceListData.md) - [PriceListDataRelationships](docs/PriceListDataRelationships.md) + - [PriceListScheduler](docs/PriceListScheduler.md) + - [PriceListSchedulerCreate](docs/PriceListSchedulerCreate.md) + - [PriceListSchedulerCreateData](docs/PriceListSchedulerCreateData.md) + - [PriceListSchedulerCreateDataRelationships](docs/PriceListSchedulerCreateDataRelationships.md) + - [PriceListSchedulerData](docs/PriceListSchedulerData.md) + - [PriceListSchedulerDataRelationships](docs/PriceListSchedulerDataRelationships.md) + - [PriceListSchedulerUpdate](docs/PriceListSchedulerUpdate.md) + - [PriceListSchedulerUpdateData](docs/PriceListSchedulerUpdateData.md) + - [PriceListSchedulerUpdateDataRelationships](docs/PriceListSchedulerUpdateDataRelationships.md) - [PriceListUpdate](docs/PriceListUpdate.md) - [PriceListUpdateData](docs/PriceListUpdateData.md) - [PriceTier](docs/PriceTier.md) @@ -3327,13 +4098,24 @@ Class | Method | HTTP request | Description - [Refund](docs/Refund.md) - [RefundData](docs/RefundData.md) - [RefundDataRelationships](docs/RefundDataRelationships.md) + - [RefundUpdate](docs/RefundUpdate.md) + - [RefundUpdateData](docs/RefundUpdateData.md) + - [ReservedStock](docs/ReservedStock.md) + - [ReservedStockData](docs/ReservedStockData.md) + - [ReservedStockDataRelationships](docs/ReservedStockDataRelationships.md) + - [ReservedStockDataRelationshipsStockItem](docs/ReservedStockDataRelationshipsStockItem.md) + - [ReservedStockDataRelationshipsStockItemData](docs/ReservedStockDataRelationshipsStockItemData.md) + - [ResourceError](docs/ResourceError.md) + - [ResourceErrorData](docs/ResourceErrorData.md) + - [ResourceErrorDataRelationships](docs/ResourceErrorDataRelationships.md) + - [ResourceErrorDataRelationshipsResource](docs/ResourceErrorDataRelationshipsResource.md) + - [ResourceErrorDataRelationshipsResourceData](docs/ResourceErrorDataRelationshipsResourceData.md) - [ReturnCreate](docs/ReturnCreate.md) - [ReturnCreateData](docs/ReturnCreateData.md) - [ReturnCreateDataRelationships](docs/ReturnCreateDataRelationships.md) + - [ReturnCreateDataRelationshipsReferenceCapture](docs/ReturnCreateDataRelationshipsReferenceCapture.md) - [ReturnData](docs/ReturnData.md) - [ReturnDataRelationships](docs/ReturnDataRelationships.md) - - [ReturnDataRelationshipsReturnLineItems](docs/ReturnDataRelationshipsReturnLineItems.md) - - [ReturnDataRelationshipsReturnLineItemsData](docs/ReturnDataRelationshipsReturnLineItemsData.md) - [ReturnLineItem](docs/ReturnLineItem.md) - [ReturnLineItemCreate](docs/ReturnLineItemCreate.md) - [ReturnLineItemCreateData](docs/ReturnLineItemCreateData.md) @@ -3345,6 +4127,7 @@ Class | Method | HTTP request | Description - [ReturnLineItemUpdateData](docs/ReturnLineItemUpdateData.md) - [ReturnUpdate](docs/ReturnUpdate.md) - [ReturnUpdateData](docs/ReturnUpdateData.md) + - [ReturnUpdateDataRelationships](docs/ReturnUpdateDataRelationships.md) - [SatispayGateway](docs/SatispayGateway.md) - [SatispayGatewayCreate](docs/SatispayGatewayCreate.md) - [SatispayGatewayCreateData](docs/SatispayGatewayCreateData.md) @@ -3363,6 +4146,11 @@ Class | Method | HTTP request | Description - [SatispayPaymentUpdate](docs/SatispayPaymentUpdate.md) - [SatispayPaymentUpdateData](docs/SatispayPaymentUpdateData.md) - [Shipment](docs/Shipment.md) + - [ShipmentCreate](docs/ShipmentCreate.md) + - [ShipmentCreateData](docs/ShipmentCreateData.md) + - [ShipmentCreateDataRelationships](docs/ShipmentCreateDataRelationships.md) + - [ShipmentCreateDataRelationshipsInventoryStockLocation](docs/ShipmentCreateDataRelationshipsInventoryStockLocation.md) + - [ShipmentCreateDataRelationshipsShippingCategory](docs/ShipmentCreateDataRelationshipsShippingCategory.md) - [ShipmentData](docs/ShipmentData.md) - [ShipmentDataRelationships](docs/ShipmentDataRelationships.md) - [ShipmentDataRelationshipsCarrierAccounts](docs/ShipmentDataRelationshipsCarrierAccounts.md) @@ -3385,7 +4173,6 @@ Class | Method | HTTP request | Description - [ShippingMethodCreate](docs/ShippingMethodCreate.md) - [ShippingMethodCreateData](docs/ShippingMethodCreateData.md) - [ShippingMethodCreateDataRelationships](docs/ShippingMethodCreateDataRelationships.md) - - [ShippingMethodCreateDataRelationshipsShippingCategory](docs/ShippingMethodCreateDataRelationshipsShippingCategory.md) - [ShippingMethodCreateDataRelationshipsShippingMethodTiers](docs/ShippingMethodCreateDataRelationshipsShippingMethodTiers.md) - [ShippingMethodCreateDataRelationshipsShippingZone](docs/ShippingMethodCreateDataRelationshipsShippingZone.md) - [ShippingMethodData](docs/ShippingMethodData.md) @@ -3408,6 +4195,7 @@ Class | Method | HTTP request | Description - [ShippingWeightTierData](docs/ShippingWeightTierData.md) - [ShippingWeightTierUpdate](docs/ShippingWeightTierUpdate.md) - [ShippingWeightTierUpdateData](docs/ShippingWeightTierUpdateData.md) + - [ShippingWeightTierUpdateDataRelationships](docs/ShippingWeightTierUpdateDataRelationships.md) - [ShippingZone](docs/ShippingZone.md) - [ShippingZoneCreate](docs/ShippingZoneCreate.md) - [ShippingZoneCreateData](docs/ShippingZoneCreateData.md) @@ -3421,8 +4209,6 @@ Class | Method | HTTP request | Description - [SkuCreateDataRelationships](docs/SkuCreateDataRelationships.md) - [SkuData](docs/SkuData.md) - [SkuDataRelationships](docs/SkuDataRelationships.md) - - [SkuDataRelationshipsStockItems](docs/SkuDataRelationshipsStockItems.md) - - [SkuDataRelationshipsStockItemsData](docs/SkuDataRelationshipsStockItemsData.md) - [SkuList](docs/SkuList.md) - [SkuListCreate](docs/SkuListCreate.md) - [SkuListCreateData](docs/SkuListCreateData.md) @@ -3452,7 +4238,9 @@ Class | Method | HTTP request | Description - [SkuOption](docs/SkuOption.md) - [SkuOptionCreate](docs/SkuOptionCreate.md) - [SkuOptionCreateData](docs/SkuOptionCreateData.md) + - [SkuOptionCreateDataRelationships](docs/SkuOptionCreateDataRelationships.md) - [SkuOptionData](docs/SkuOptionData.md) + - [SkuOptionDataRelationships](docs/SkuOptionDataRelationships.md) - [SkuOptionUpdate](docs/SkuOptionUpdate.md) - [SkuOptionUpdateData](docs/SkuOptionUpdateData.md) - [SkuUpdate](docs/SkuUpdate.md) @@ -3464,12 +4252,20 @@ Class | Method | HTTP request | Description - [StockItemCreateDataRelationships](docs/StockItemCreateDataRelationships.md) - [StockItemData](docs/StockItemData.md) - [StockItemDataRelationships](docs/StockItemDataRelationships.md) + - [StockItemDataRelationshipsReservedStock](docs/StockItemDataRelationshipsReservedStock.md) + - [StockItemDataRelationshipsReservedStockData](docs/StockItemDataRelationshipsReservedStockData.md) - [StockItemUpdate](docs/StockItemUpdate.md) - [StockItemUpdateData](docs/StockItemUpdateData.md) - [StockItemUpdateDataRelationships](docs/StockItemUpdateDataRelationships.md) - [StockLineItem](docs/StockLineItem.md) + - [StockLineItemCreate](docs/StockLineItemCreate.md) + - [StockLineItemCreateData](docs/StockLineItemCreateData.md) + - [StockLineItemCreateDataRelationships](docs/StockLineItemCreateDataRelationships.md) + - [StockLineItemCreateDataRelationshipsStockItem](docs/StockLineItemCreateDataRelationshipsStockItem.md) - [StockLineItemData](docs/StockLineItemData.md) - [StockLineItemDataRelationships](docs/StockLineItemDataRelationships.md) + - [StockLineItemUpdate](docs/StockLineItemUpdate.md) + - [StockLineItemUpdateData](docs/StockLineItemUpdateData.md) - [StockLocation](docs/StockLocation.md) - [StockLocationCreate](docs/StockLocationCreate.md) - [StockLocationCreateData](docs/StockLocationCreateData.md) @@ -3477,6 +4273,14 @@ Class | Method | HTTP request | Description - [StockLocationDataRelationships](docs/StockLocationDataRelationships.md) - [StockLocationUpdate](docs/StockLocationUpdate.md) - [StockLocationUpdateData](docs/StockLocationUpdateData.md) + - [StockReservation](docs/StockReservation.md) + - [StockReservationCreate](docs/StockReservationCreate.md) + - [StockReservationCreateData](docs/StockReservationCreateData.md) + - [StockReservationCreateDataRelationships](docs/StockReservationCreateDataRelationships.md) + - [StockReservationData](docs/StockReservationData.md) + - [StockReservationDataRelationships](docs/StockReservationDataRelationships.md) + - [StockReservationUpdate](docs/StockReservationUpdate.md) + - [StockReservationUpdateData](docs/StockReservationUpdateData.md) - [StockTransfer](docs/StockTransfer.md) - [StockTransferCreate](docs/StockTransferCreate.md) - [StockTransferCreateData](docs/StockTransferCreateData.md) @@ -3508,17 +4312,20 @@ Class | Method | HTTP request | Description - [SubscriptionModelDataRelationships](docs/SubscriptionModelDataRelationships.md) - [SubscriptionModelUpdate](docs/SubscriptionModelUpdate.md) - [SubscriptionModelUpdateData](docs/SubscriptionModelUpdateData.md) + - [Tag](docs/Tag.md) + - [TagCreate](docs/TagCreate.md) + - [TagCreateData](docs/TagCreateData.md) + - [TagData](docs/TagData.md) + - [TagUpdate](docs/TagUpdate.md) + - [TagUpdateData](docs/TagUpdateData.md) - [TaxCalculator](docs/TaxCalculator.md) - [TaxCalculatorData](docs/TaxCalculatorData.md) - [TaxCategory](docs/TaxCategory.md) - [TaxCategoryCreate](docs/TaxCategoryCreate.md) - [TaxCategoryCreateData](docs/TaxCategoryCreateData.md) - [TaxCategoryCreateDataRelationships](docs/TaxCategoryCreateDataRelationships.md) - - [TaxCategoryCreateDataRelationshipsTaxCalculator](docs/TaxCategoryCreateDataRelationshipsTaxCalculator.md) - [TaxCategoryData](docs/TaxCategoryData.md) - [TaxCategoryDataRelationships](docs/TaxCategoryDataRelationships.md) - - [TaxCategoryDataRelationshipsTaxCalculator](docs/TaxCategoryDataRelationshipsTaxCalculator.md) - - [TaxCategoryDataRelationshipsTaxCalculatorData](docs/TaxCategoryDataRelationshipsTaxCalculatorData.md) - [TaxCategoryUpdate](docs/TaxCategoryUpdate.md) - [TaxCategoryUpdateData](docs/TaxCategoryUpdateData.md) - [TaxCategoryUpdateDataRelationships](docs/TaxCategoryUpdateDataRelationships.md) @@ -3538,14 +4345,19 @@ Class | Method | HTTP request | Description - [TaxjarAccountCreate](docs/TaxjarAccountCreate.md) - [TaxjarAccountCreateData](docs/TaxjarAccountCreateData.md) - [TaxjarAccountData](docs/TaxjarAccountData.md) + - [TaxjarAccountDataRelationships](docs/TaxjarAccountDataRelationships.md) - [TaxjarAccountUpdate](docs/TaxjarAccountUpdate.md) - [TaxjarAccountUpdateData](docs/TaxjarAccountUpdateData.md) - [Transaction](docs/Transaction.md) - [TransactionData](docs/TransactionData.md) - [TransactionDataRelationships](docs/TransactionDataRelationships.md) + - [Version](docs/Version.md) + - [VersionData](docs/VersionData.md) - [Void](docs/Void.md) - [VoidData](docs/VoidData.md) - [VoidDataRelationships](docs/VoidDataRelationships.md) + - [VoidUpdate](docs/VoidUpdate.md) + - [VoidUpdateData](docs/VoidUpdateData.md) - [Webhook](docs/Webhook.md) - [WebhookCreate](docs/WebhookCreate.md) - [WebhookCreateData](docs/WebhookCreateData.md) @@ -3557,6 +4369,7 @@ Class | Method | HTTP request | Description - [WireTransferCreate](docs/WireTransferCreate.md) - [WireTransferCreateData](docs/WireTransferCreateData.md) - [WireTransferData](docs/WireTransferData.md) + - [WireTransferDataRelationships](docs/WireTransferDataRelationships.md) - [WireTransferUpdate](docs/WireTransferUpdate.md) - [WireTransferUpdateData](docs/WireTransferUpdateData.md) diff --git a/api/api/openapi.yaml b/api/api/openapi.yaml index 89b4509b..15c59458 100644 --- a/api/api/openapi.yaml +++ b/api/api/openapi.yaml @@ -6,7 +6,7 @@ info: url: https://commercelayer.io description: Headless Commerce for Global Brands. title: Commerce Layer API - version: 4.1.3 + version: 7.3.1 servers: - description: API url: "https://{your_organization_slug}.commercelayer.io/api" @@ -23,12 +23,12 @@ tags: name: addresses - description: relationship kind name: has_one +- description: relationship kind + name: has_many - description: resource type name: adjustments - description: resource type name: adyen_gateways -- description: relationship kind - name: has_many - description: resource type name: adyen_payments - description: resource type @@ -53,6 +53,8 @@ tags: name: braintree_payments - description: resource type name: bundles +- description: resource type + name: buy_x_pay_y_promotions - description: resource type name: captures - description: resource type @@ -69,6 +71,8 @@ tags: name: coupon_recipients - description: resource type name: coupons +- description: resource type + name: custom_promotion_rules - description: resource type name: customer_addresses - description: resource type @@ -101,6 +105,8 @@ tags: name: fixed_amount_promotions - description: resource type name: fixed_price_promotions +- description: resource type + name: flex_promotions - description: resource type name: free_gift_promotions - description: resource type @@ -131,6 +137,8 @@ tags: name: line_item_options - description: resource type name: line_items +- description: resource type + name: links - description: resource type name: manual_gateways - description: resource type @@ -149,8 +157,6 @@ tags: name: order_subscription_items - description: resource type name: order_subscriptions -- description: resource type - name: order_validation_rules - description: resource type name: orders - description: resource type @@ -165,6 +171,8 @@ tags: name: payment_gateways - description: resource type name: payment_methods +- description: resource type + name: payment_options - description: resource type name: paypal_gateways - description: resource type @@ -173,6 +181,8 @@ tags: name: percentage_discount_promotions - description: resource type name: price_frequency_tiers +- description: resource type + name: price_list_schedulers - description: resource type name: price_lists - description: resource type @@ -189,6 +199,10 @@ tags: name: recurring_order_copies - description: resource type name: refunds +- description: resource type + name: reserved_stocks +- description: resource type + name: resource_errors - description: resource type name: return_line_items - description: resource type @@ -225,6 +239,8 @@ tags: name: stock_line_items - description: resource type name: stock_locations +- description: resource type + name: stock_reservations - description: resource type name: stock_transfers - description: resource type @@ -233,6 +249,8 @@ tags: name: stripe_payments - description: resource type name: subscription_models +- description: resource type + name: tags - description: resource type name: tax_calculators - description: resource type @@ -243,6 +261,8 @@ tags: name: taxjar_accounts - description: resource type name: transactions +- description: resource type + name: versions - description: resource type name: voids - description: resource type @@ -368,6 +388,63 @@ paths: tags: - has_one - geocoders + /addresses/{addressId}/events: + get: + description: Retrieve the events associated to the address + operationId: GET/addressId/events + parameters: + - description: The resource's id + explode: false + in: path + name: addressId + required: true + schema: {} + style: simple + responses: + "200": + description: The events associated to the address + summary: Retrieve the events associated to the address + tags: + - has_many + - events + /addresses/{addressId}/tags: + get: + description: Retrieve the tags associated to the address + operationId: GET/addressId/tags + parameters: + - description: The resource's id + explode: false + in: path + name: addressId + required: true + schema: {} + style: simple + responses: + "200": + description: The tags associated to the address + summary: Retrieve the tags associated to the address + tags: + - has_many + - tags + /addresses/{addressId}/versions: + get: + description: Retrieve the versions associated to the address + operationId: GET/addressId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: addressId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the address + summary: Retrieve the versions associated to the address + tags: + - has_many + - versions /adjustments: get: description: List all adjustments @@ -467,6 +544,25 @@ paths: summary: Update an adjustment tags: - adjustments + /adjustments/{adjustmentId}/versions: + get: + description: Retrieve the versions associated to the adjustment + operationId: GET/adjustmentId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: adjustmentId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the adjustment + summary: Retrieve the versions associated to the adjustment + tags: + - has_many + - versions /adyen_gateways: get: description: List all adyen gateways @@ -585,6 +681,25 @@ paths: tags: - has_many - payment_methods + /adyen_gateways/{adyenGatewayId}/versions: + get: + description: Retrieve the versions associated to the adyen gateway + operationId: GET/adyenGatewayId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: adyenGatewayId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the adyen gateway + summary: Retrieve the versions associated to the adyen gateway + tags: + - has_many + - versions /adyen_gateways/{adyenGatewayId}/adyen_payments: get: description: Retrieve the adyen payments associated to the adyen gateway @@ -741,6 +856,25 @@ paths: tags: - has_one - payment_gateways + /adyen_payments/{adyenPaymentId}/versions: + get: + description: Retrieve the versions associated to the adyen payment + operationId: GET/adyenPaymentId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: adyenPaymentId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the adyen payment + summary: Retrieve the versions associated to the adyen payment + tags: + - has_many + - versions /application: get: description: Retrieve the application @@ -937,10 +1071,10 @@ paths: tags: - has_one - orders - /authorizations/{authorizationId}/captures: + /authorizations/{authorizationId}/attachments: get: - description: Retrieve the captures associated to the authorization - operationId: GET/authorizationId/captures + description: Retrieve the attachments associated to the authorization + operationId: GET/authorizationId/attachments parameters: - description: The resource's id explode: false @@ -951,15 +1085,15 @@ paths: style: simple responses: "200": - description: The captures associated to the authorization - summary: Retrieve the captures associated to the authorization + description: The attachments associated to the authorization + summary: Retrieve the attachments associated to the authorization tags: - has_many - - captures - /authorizations/{authorizationId}/voids: + - attachments + /authorizations/{authorizationId}/events: get: - description: Retrieve the voids associated to the authorization - operationId: GET/authorizationId/voids + description: Retrieve the events associated to the authorization + operationId: GET/authorizationId/events parameters: - description: The resource's id explode: false @@ -970,15 +1104,15 @@ paths: style: simple responses: "200": - description: The voids associated to the authorization - summary: Retrieve the voids associated to the authorization + description: The events associated to the authorization + summary: Retrieve the events associated to the authorization tags: - has_many - - voids - /authorizations/{authorizationId}/events: + - events + /authorizations/{authorizationId}/versions: get: - description: Retrieve the events associated to the authorization - operationId: GET/authorizationId/events + description: Retrieve the versions associated to the authorization + operationId: GET/authorizationId/versions parameters: - description: The resource's id explode: false @@ -989,11 +1123,49 @@ paths: style: simple responses: "200": - description: The events associated to the authorization - summary: Retrieve the events associated to the authorization + description: The versions associated to the authorization + summary: Retrieve the versions associated to the authorization tags: - has_many - - events + - versions + /authorizations/{authorizationId}/captures: + get: + description: Retrieve the captures associated to the authorization + operationId: GET/authorizationId/captures + parameters: + - description: The resource's id + explode: false + in: path + name: authorizationId + required: true + schema: {} + style: simple + responses: + "200": + description: The captures associated to the authorization + summary: Retrieve the captures associated to the authorization + tags: + - has_many + - captures + /authorizations/{authorizationId}/voids: + get: + description: Retrieve the voids associated to the authorization + operationId: GET/authorizationId/voids + parameters: + - description: The resource's id + explode: false + in: path + name: authorizationId + required: true + schema: {} + style: simple + responses: + "200": + description: The voids associated to the authorization + summary: Retrieve the voids associated to the authorization + tags: + - has_many + - voids /avalara_accounts: get: description: List all avalara accounts @@ -1131,6 +1303,25 @@ paths: tags: - has_many - attachments + /avalara_accounts/{avalaraAccountId}/versions: + get: + description: Retrieve the versions associated to the avalara account + operationId: GET/avalaraAccountId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: avalaraAccountId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the avalara account + summary: Retrieve the versions associated to the avalara account + tags: + - has_many + - versions /avalara_accounts/{avalaraAccountId}/tax_categories: get: description: Retrieve the tax categories associated to the avalara account @@ -1150,6 +1341,25 @@ paths: tags: - has_many - tax_categories + /avalara_accounts/{avalaraAccountId}/events: + get: + description: Retrieve the events associated to the avalara account + operationId: GET/avalaraAccountId/events + parameters: + - description: The resource's id + explode: false + in: path + name: avalaraAccountId + required: true + schema: {} + style: simple + responses: + "200": + description: The events associated to the avalara account + summary: Retrieve the events associated to the avalara account + tags: + - has_many + - events /axerve_gateways: get: description: List all axerve gateways @@ -1268,6 +1478,25 @@ paths: tags: - has_many - payment_methods + /axerve_gateways/{axerveGatewayId}/versions: + get: + description: Retrieve the versions associated to the axerve gateway + operationId: GET/axerveGatewayId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: axerveGatewayId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the axerve gateway + summary: Retrieve the versions associated to the axerve gateway + tags: + - has_many + - versions /axerve_gateways/{axerveGatewayId}/axerve_payments: get: description: Retrieve the axerve payments associated to the axerve gateway @@ -1424,6 +1653,25 @@ paths: tags: - has_one - payment_gateways + /axerve_payments/{axervePaymentId}/versions: + get: + description: Retrieve the versions associated to the axerve payment + operationId: GET/axervePaymentId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: axervePaymentId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the axerve payment + summary: Retrieve the versions associated to the axerve payment + tags: + - has_many + - versions /billing_info_validation_rules: get: description: List all billing info validation rules @@ -1563,6 +1811,26 @@ paths: tags: - has_many - attachments + /billing_info_validation_rules/{billingInfoValidationRuleId}/versions: + get: + description: Retrieve the versions associated to the billing info validation + rule + operationId: GET/billingInfoValidationRuleId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: billingInfoValidationRuleId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the billing info validation rule + summary: Retrieve the versions associated to the billing info validation rule + tags: + - has_many + - versions /bing_geocoders: get: description: List all bing geocoders @@ -1662,6 +1930,25 @@ paths: summary: Update a bing geocoder tags: - bing_geocoders + /bing_geocoders/{bingGeocoderId}/markets: + get: + description: Retrieve the markets associated to the bing geocoder + operationId: GET/bingGeocoderId/markets + parameters: + - description: The resource's id + explode: false + in: path + name: bingGeocoderId + required: true + schema: {} + style: simple + responses: + "200": + description: The markets associated to the bing geocoder + summary: Retrieve the markets associated to the bing geocoder + tags: + - has_many + - markets /bing_geocoders/{bingGeocoderId}/addresses: get: description: Retrieve the addresses associated to the bing geocoder @@ -1818,6 +2105,25 @@ paths: tags: - has_many - payment_methods + /braintree_gateways/{braintreeGatewayId}/versions: + get: + description: Retrieve the versions associated to the braintree gateway + operationId: GET/braintreeGatewayId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: braintreeGatewayId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the braintree gateway + summary: Retrieve the versions associated to the braintree gateway + tags: + - has_many + - versions /braintree_gateways/{braintreeGatewayId}/braintree_payments: get: description: Retrieve the braintree payments associated to the braintree gateway @@ -1974,6 +2280,25 @@ paths: tags: - has_one - payment_gateways + /braintree_payments/{braintreePaymentId}/versions: + get: + description: Retrieve the versions associated to the braintree payment + operationId: GET/braintreePaymentId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: braintreePaymentId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the braintree payment + summary: Retrieve the versions associated to the braintree payment + tags: + - has_many + - versions /bundles: get: description: List all bundles @@ -2149,6 +2474,399 @@ paths: tags: - has_many - attachments + /bundles/{bundleId}/events: + get: + description: Retrieve the events associated to the bundle + operationId: GET/bundleId/events + parameters: + - description: The resource's id + explode: false + in: path + name: bundleId + required: true + schema: {} + style: simple + responses: + "200": + description: The events associated to the bundle + summary: Retrieve the events associated to the bundle + tags: + - has_many + - events + /bundles/{bundleId}/tags: + get: + description: Retrieve the tags associated to the bundle + operationId: GET/bundleId/tags + parameters: + - description: The resource's id + explode: false + in: path + name: bundleId + required: true + schema: {} + style: simple + responses: + "200": + description: The tags associated to the bundle + summary: Retrieve the tags associated to the bundle + tags: + - has_many + - tags + /bundles/{bundleId}/versions: + get: + description: Retrieve the versions associated to the bundle + operationId: GET/bundleId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: bundleId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the bundle + summary: Retrieve the versions associated to the bundle + tags: + - has_many + - versions + /buy_x_pay_y_promotions: + get: + description: List all buy x pay y promotions + operationId: GET/buy_x_pay_y_promotions + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_buy_x_pay_y_promotions_200_response' + description: A list of buy x pay y promotion objects + summary: List all buy x pay y promotions + tags: + - buy_x_pay_y_promotions + post: + description: Create a buy x pay y promotion + operationId: POST/buy_x_pay_y_promotions + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/buyXPayYPromotionCreate' + required: true + responses: + "201": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response' + description: The created buy x pay y promotion object + summary: Create a buy x pay y promotion + tags: + - buy_x_pay_y_promotions + /buy_x_pay_y_promotions/{buyXPayYPromotionId}: + delete: + description: Delete a buy x pay y promotion + operationId: DELETE/buy_x_pay_y_promotions/buyXPayYPromotionId + parameters: + - description: The resource's id + explode: false + in: path + name: buyXPayYPromotionId + required: true + schema: {} + style: simple + responses: + "204": + description: No content + summary: Delete a buy x pay y promotion + tags: + - buy_x_pay_y_promotions + get: + description: Retrieve a buy x pay y promotion + operationId: GET/buy_x_pay_y_promotions/buyXPayYPromotionId + parameters: + - description: The resource's id + explode: false + in: path + name: buyXPayYPromotionId + required: true + schema: {} + style: simple + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_buy_x_pay_y_promotions_buyXPayYPromotionId_200_response' + description: The buy x pay y promotion object + summary: Retrieve a buy x pay y promotion + tags: + - buy_x_pay_y_promotions + patch: + description: Update a buy x pay y promotion + operationId: PATCH/buy_x_pay_y_promotions/buyXPayYPromotionId + parameters: + - description: The resource's id + explode: false + in: path + name: buyXPayYPromotionId + required: true + schema: {} + style: simple + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/buyXPayYPromotionUpdate' + required: true + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/PATCH_buy_x_pay_y_promotions_buyXPayYPromotionId_200_response' + description: The updated buy x pay y promotion object + summary: Update a buy x pay y promotion + tags: + - buy_x_pay_y_promotions + /buy_x_pay_y_promotions/{buyXPayYPromotionId}/market: + get: + description: Retrieve the market associated to the buy x pay y promotion + operationId: GET/buyXPayYPromotionId/market + parameters: + - description: The resource's id + explode: false + in: path + name: buyXPayYPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The market associated to the buy x pay y promotion + summary: Retrieve the market associated to the buy x pay y promotion + tags: + - has_one + - markets + /buy_x_pay_y_promotions/{buyXPayYPromotionId}/order_amount_promotion_rule: + get: + description: Retrieve the order amount promotion rule associated to the buy + x pay y promotion + operationId: GET/buyXPayYPromotionId/order_amount_promotion_rule + parameters: + - description: The resource's id + explode: false + in: path + name: buyXPayYPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The order_amount_promotion_rule associated to the buy x pay + y promotion + summary: Retrieve the order amount promotion rule associated to the buy x pay + y promotion + tags: + - has_one + - order_amount_promotion_rules + /buy_x_pay_y_promotions/{buyXPayYPromotionId}/sku_list_promotion_rule: + get: + description: Retrieve the sku list promotion rule associated to the buy x pay + y promotion + operationId: GET/buyXPayYPromotionId/sku_list_promotion_rule + parameters: + - description: The resource's id + explode: false + in: path + name: buyXPayYPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The sku_list_promotion_rule associated to the buy x pay y promotion + summary: Retrieve the sku list promotion rule associated to the buy x pay y + promotion + tags: + - has_one + - sku_list_promotion_rules + /buy_x_pay_y_promotions/{buyXPayYPromotionId}/coupon_codes_promotion_rule: + get: + description: Retrieve the coupon codes promotion rule associated to the buy + x pay y promotion + operationId: GET/buyXPayYPromotionId/coupon_codes_promotion_rule + parameters: + - description: The resource's id + explode: false + in: path + name: buyXPayYPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The coupon_codes_promotion_rule associated to the buy x pay + y promotion + summary: Retrieve the coupon codes promotion rule associated to the buy x pay + y promotion + tags: + - has_one + - coupon_codes_promotion_rules + /buy_x_pay_y_promotions/{buyXPayYPromotionId}/custom_promotion_rule: + get: + description: Retrieve the custom promotion rule associated to the buy x pay + y promotion + operationId: GET/buyXPayYPromotionId/custom_promotion_rule + parameters: + - description: The resource's id + explode: false + in: path + name: buyXPayYPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The custom_promotion_rule associated to the buy x pay y promotion + summary: Retrieve the custom promotion rule associated to the buy x pay y promotion + tags: + - has_one + - custom_promotion_rules + /buy_x_pay_y_promotions/{buyXPayYPromotionId}/sku_list: + get: + description: Retrieve the sku list associated to the buy x pay y promotion + operationId: GET/buyXPayYPromotionId/sku_list + parameters: + - description: The resource's id + explode: false + in: path + name: buyXPayYPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The sku_list associated to the buy x pay y promotion + summary: Retrieve the sku list associated to the buy x pay y promotion + tags: + - has_one + - sku_lists + /buy_x_pay_y_promotions/{buyXPayYPromotionId}/coupons: + get: + description: Retrieve the coupons associated to the buy x pay y promotion + operationId: GET/buyXPayYPromotionId/coupons + parameters: + - description: The resource's id + explode: false + in: path + name: buyXPayYPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The coupons associated to the buy x pay y promotion + summary: Retrieve the coupons associated to the buy x pay y promotion + tags: + - has_many + - coupons + /buy_x_pay_y_promotions/{buyXPayYPromotionId}/attachments: + get: + description: Retrieve the attachments associated to the buy x pay y promotion + operationId: GET/buyXPayYPromotionId/attachments + parameters: + - description: The resource's id + explode: false + in: path + name: buyXPayYPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The attachments associated to the buy x pay y promotion + summary: Retrieve the attachments associated to the buy x pay y promotion + tags: + - has_many + - attachments + /buy_x_pay_y_promotions/{buyXPayYPromotionId}/events: + get: + description: Retrieve the events associated to the buy x pay y promotion + operationId: GET/buyXPayYPromotionId/events + parameters: + - description: The resource's id + explode: false + in: path + name: buyXPayYPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The events associated to the buy x pay y promotion + summary: Retrieve the events associated to the buy x pay y promotion + tags: + - has_many + - events + /buy_x_pay_y_promotions/{buyXPayYPromotionId}/tags: + get: + description: Retrieve the tags associated to the buy x pay y promotion + operationId: GET/buyXPayYPromotionId/tags + parameters: + - description: The resource's id + explode: false + in: path + name: buyXPayYPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The tags associated to the buy x pay y promotion + summary: Retrieve the tags associated to the buy x pay y promotion + tags: + - has_many + - tags + /buy_x_pay_y_promotions/{buyXPayYPromotionId}/versions: + get: + description: Retrieve the versions associated to the buy x pay y promotion + operationId: GET/buyXPayYPromotionId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: buyXPayYPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the buy x pay y promotion + summary: Retrieve the versions associated to the buy x pay y promotion + tags: + - has_many + - versions + /buy_x_pay_y_promotions/{buyXPayYPromotionId}/skus: + get: + description: Retrieve the skus associated to the buy x pay y promotion + operationId: GET/buyXPayYPromotionId/skus + parameters: + - description: The resource's id + explode: false + in: path + name: buyXPayYPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The skus associated to the buy x pay y promotion + summary: Retrieve the skus associated to the buy x pay y promotion + tags: + - has_many + - skus /captures: get: description: List all captures @@ -2231,6 +2949,63 @@ paths: tags: - has_one - orders + /captures/{captureId}/attachments: + get: + description: Retrieve the attachments associated to the capture + operationId: GET/captureId/attachments + parameters: + - description: The resource's id + explode: false + in: path + name: captureId + required: true + schema: {} + style: simple + responses: + "200": + description: The attachments associated to the capture + summary: Retrieve the attachments associated to the capture + tags: + - has_many + - attachments + /captures/{captureId}/events: + get: + description: Retrieve the events associated to the capture + operationId: GET/captureId/events + parameters: + - description: The resource's id + explode: false + in: path + name: captureId + required: true + schema: {} + style: simple + responses: + "200": + description: The events associated to the capture + summary: Retrieve the events associated to the capture + tags: + - has_many + - events + /captures/{captureId}/versions: + get: + description: Retrieve the versions associated to the capture + operationId: GET/captureId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: captureId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the capture + summary: Retrieve the versions associated to the capture + tags: + - has_many + - versions /captures/{captureId}/reference_authorization: get: description: Retrieve the reference authorization associated to the capture @@ -2269,10 +3044,10 @@ paths: tags: - has_many - refunds - /captures/{captureId}/events: + /captures/{captureId}/return: get: - description: Retrieve the events associated to the capture - operationId: GET/captureId/events + description: Retrieve the return associated to the capture + operationId: GET/captureId/return parameters: - description: The resource's id explode: false @@ -2283,11 +3058,11 @@ paths: style: simple responses: "200": - description: The events associated to the capture - summary: Retrieve the events associated to the capture + description: The return associated to the capture + summary: Retrieve the return associated to the capture tags: - - has_many - - events + - has_one + - returns /carrier_accounts: get: description: List all carrier accounts @@ -2302,7 +3077,43 @@ paths: summary: List all carrier accounts tags: - carrier_accounts + post: + description: Create a carrier account + operationId: POST/carrier_accounts + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/carrierAccountCreate' + required: true + responses: + "201": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/POST_carrier_accounts_201_response' + description: The created carrier account object + summary: Create a carrier account + tags: + - carrier_accounts /carrier_accounts/{carrierAccountId}: + delete: + description: Delete a carrier account + operationId: DELETE/carrier_accounts/carrierAccountId + parameters: + - description: The resource's id + explode: false + in: path + name: carrierAccountId + required: true + schema: {} + style: simple + responses: + "204": + description: No content + summary: Delete a carrier account + tags: + - carrier_accounts get: description: Retrieve a carrier account operationId: GET/carrier_accounts/carrierAccountId @@ -2324,6 +3135,33 @@ paths: summary: Retrieve a carrier account tags: - carrier_accounts + patch: + description: Update a carrier account + operationId: PATCH/carrier_accounts/carrierAccountId + parameters: + - description: The resource's id + explode: false + in: path + name: carrierAccountId + required: true + schema: {} + style: simple + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/carrierAccountUpdate' + required: true + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/PATCH_carrier_accounts_carrierAccountId_200_response' + description: The updated carrier account object + summary: Update a carrier account + tags: + - carrier_accounts /carrier_accounts/{carrierAccountId}/market: get: description: Retrieve the market associated to the carrier account @@ -2362,6 +3200,25 @@ paths: tags: - has_many - attachments + /carrier_accounts/{carrierAccountId}/versions: + get: + description: Retrieve the versions associated to the carrier account + operationId: GET/carrierAccountId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: carrierAccountId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the carrier account + summary: Retrieve the versions associated to the carrier account + tags: + - has_many + - versions /checkout_com_gateways: get: description: List all checkout.com gateways @@ -2480,6 +3337,25 @@ paths: tags: - has_many - payment_methods + /checkout_com_gateways/{checkoutComGatewayId}/versions: + get: + description: Retrieve the versions associated to the checkout.com gateway + operationId: GET/checkoutComGatewayId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: checkoutComGatewayId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the checkout.com gateway + summary: Retrieve the versions associated to the checkout.com gateway + tags: + - has_many + - versions /checkout_com_gateways/{checkoutComGatewayId}/checkout_com_payments: get: description: Retrieve the checkout com payments associated to the checkout.com @@ -2637,6 +3513,25 @@ paths: tags: - has_one - payment_gateways + /checkout_com_payments/{checkoutComPaymentId}/versions: + get: + description: Retrieve the versions associated to the checkout.com payment + operationId: GET/checkoutComPaymentId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: checkoutComPaymentId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the checkout.com payment + summary: Retrieve the versions associated to the checkout.com payment + tags: + - has_many + - versions /cleanups: get: description: List all cleanups @@ -2709,6 +3604,33 @@ paths: summary: Retrieve a cleanup tags: - cleanups + patch: + description: Update a cleanup + operationId: PATCH/cleanups/cleanupId + parameters: + - description: The resource's id + explode: false + in: path + name: cleanupId + required: true + schema: {} + style: simple + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/cleanupUpdate' + required: true + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/PATCH_cleanups_cleanupId_200_response' + description: The updated cleanup object + summary: Update a cleanup + tags: + - cleanups /cleanups/{cleanupId}/events: get: description: Retrieve the events associated to the cleanup @@ -2728,6 +3650,25 @@ paths: tags: - has_many - events + /cleanups/{cleanupId}/versions: + get: + description: Retrieve the versions associated to the cleanup + operationId: GET/cleanupId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: cleanupId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the cleanup + summary: Retrieve the versions associated to the cleanup + tags: + - has_many + - versions /coupon_codes_promotion_rules: get: description: List all coupon codes promotion rules @@ -2827,6 +3768,26 @@ paths: summary: Update a coupon codes promotion rule tags: - coupon_codes_promotion_rules + /coupon_codes_promotion_rules/{couponCodesPromotionRuleId}/versions: + get: + description: Retrieve the versions associated to the coupon codes promotion + rule + operationId: GET/couponCodesPromotionRuleId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: couponCodesPromotionRuleId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the coupon codes promotion rule + summary: Retrieve the versions associated to the coupon codes promotion rule + tags: + - has_many + - versions /coupon_codes_promotion_rules/{couponCodesPromotionRuleId}/coupons: get: description: Retrieve the coupons associated to the coupon codes promotion rule @@ -2983,6 +3944,25 @@ paths: tags: - has_many - attachments + /coupon_recipients/{couponRecipientId}/versions: + get: + description: Retrieve the versions associated to the coupon recipient + operationId: GET/couponRecipientId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: couponRecipientId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the coupon recipient + summary: Retrieve the versions associated to the coupon recipient + tags: + - has_many + - versions /coupons: get: description: List all coupons @@ -3101,6 +4081,200 @@ paths: tags: - has_one - coupon_codes_promotion_rules + /coupons/{couponId}/coupon_recipient: + get: + description: Retrieve the coupon recipient associated to the coupon + operationId: GET/couponId/coupon_recipient + parameters: + - description: The resource's id + explode: false + in: path + name: couponId + required: true + schema: {} + style: simple + responses: + "200": + description: The coupon_recipient associated to the coupon + summary: Retrieve the coupon recipient associated to the coupon + tags: + - has_one + - coupon_recipients + /coupons/{couponId}/events: + get: + description: Retrieve the events associated to the coupon + operationId: GET/couponId/events + parameters: + - description: The resource's id + explode: false + in: path + name: couponId + required: true + schema: {} + style: simple + responses: + "200": + description: The events associated to the coupon + summary: Retrieve the events associated to the coupon + tags: + - has_many + - events + /coupons/{couponId}/tags: + get: + description: Retrieve the tags associated to the coupon + operationId: GET/couponId/tags + parameters: + - description: The resource's id + explode: false + in: path + name: couponId + required: true + schema: {} + style: simple + responses: + "200": + description: The tags associated to the coupon + summary: Retrieve the tags associated to the coupon + tags: + - has_many + - tags + /coupons/{couponId}/versions: + get: + description: Retrieve the versions associated to the coupon + operationId: GET/couponId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: couponId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the coupon + summary: Retrieve the versions associated to the coupon + tags: + - has_many + - versions + /custom_promotion_rules: + get: + description: List all custom promotion rules + operationId: GET/custom_promotion_rules + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_custom_promotion_rules_200_response' + description: A list of custom promotion rule objects + summary: List all custom promotion rules + tags: + - custom_promotion_rules + post: + description: Create a custom promotion rule + operationId: POST/custom_promotion_rules + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/customPromotionRuleCreate' + required: true + responses: + "201": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/POST_custom_promotion_rules_201_response' + description: The created custom promotion rule object + summary: Create a custom promotion rule + tags: + - custom_promotion_rules + /custom_promotion_rules/{customPromotionRuleId}: + delete: + description: Delete a custom promotion rule + operationId: DELETE/custom_promotion_rules/customPromotionRuleId + parameters: + - description: The resource's id + explode: false + in: path + name: customPromotionRuleId + required: true + schema: {} + style: simple + responses: + "204": + description: No content + summary: Delete a custom promotion rule + tags: + - custom_promotion_rules + get: + description: Retrieve a custom promotion rule + operationId: GET/custom_promotion_rules/customPromotionRuleId + parameters: + - description: The resource's id + explode: false + in: path + name: customPromotionRuleId + required: true + schema: {} + style: simple + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_custom_promotion_rules_customPromotionRuleId_200_response' + description: The custom promotion rule object + summary: Retrieve a custom promotion rule + tags: + - custom_promotion_rules + patch: + description: Update a custom promotion rule + operationId: PATCH/custom_promotion_rules/customPromotionRuleId + parameters: + - description: The resource's id + explode: false + in: path + name: customPromotionRuleId + required: true + schema: {} + style: simple + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/customPromotionRuleUpdate' + required: true + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/PATCH_custom_promotion_rules_customPromotionRuleId_200_response' + description: The updated custom promotion rule object + summary: Update a custom promotion rule + tags: + - custom_promotion_rules + /custom_promotion_rules/{customPromotionRuleId}/versions: + get: + description: Retrieve the versions associated to the custom promotion rule + operationId: GET/customPromotionRuleId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: customPromotionRuleId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the custom promotion rule + summary: Retrieve the versions associated to the custom promotion rule + tags: + - has_many + - versions /customer_addresses: get: description: List all customer addresses @@ -3257,6 +4431,25 @@ paths: tags: - has_many - events + /customer_addresses/{customerAddressId}/versions: + get: + description: Retrieve the versions associated to the customer address + operationId: GET/customerAddressId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: customerAddressId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the customer address + summary: Retrieve the versions associated to the customer address + tags: + - has_many + - versions /customer_groups: get: description: List all customer groups @@ -3413,6 +4606,25 @@ paths: tags: - has_many - attachments + /customer_groups/{customerGroupId}/versions: + get: + description: Retrieve the versions associated to the customer group + operationId: GET/customerGroupId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: customerGroupId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the customer group + summary: Retrieve the versions associated to the customer group + tags: + - has_many + - versions /customer_password_resets: get: description: List all customer password resets @@ -3668,6 +4880,45 @@ paths: tags: - has_one - customers + /customer_payment_sources/{customerPaymentSourceId}/payment_method: + get: + description: Retrieve the payment method associated to the customer payment + source + operationId: GET/customerPaymentSourceId/payment_method + parameters: + - description: The resource's id + explode: false + in: path + name: customerPaymentSourceId + required: true + schema: {} + style: simple + responses: + "200": + description: The payment_method associated to the customer payment source + summary: Retrieve the payment method associated to the customer payment source + tags: + - has_one + - payment_methods + /customer_payment_sources/{customerPaymentSourceId}/versions: + get: + description: Retrieve the versions associated to the customer payment source + operationId: GET/customerPaymentSourceId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: customerPaymentSourceId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the customer payment source + summary: Retrieve the versions associated to the customer payment source + tags: + - has_many + - versions /customer_subscriptions: get: description: List all customer subscriptions @@ -3805,6 +5056,25 @@ paths: tags: - has_many - events + /customer_subscriptions/{customerSubscriptionId}/versions: + get: + description: Retrieve the versions associated to the customer subscription + operationId: GET/customerSubscriptionId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: customerSubscriptionId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the customer subscription + summary: Retrieve the versions associated to the customer subscription + tags: + - has_many + - versions /customers: get: description: List all customers @@ -4094,6 +5364,25 @@ paths: tags: - has_many - events + /customers/{customerId}/tags: + get: + description: Retrieve the tags associated to the customer + operationId: GET/customerId/tags + parameters: + - description: The resource's id + explode: false + in: path + name: customerId + required: true + schema: {} + style: simple + responses: + "200": + description: The tags associated to the customer + summary: Retrieve the tags associated to the customer + tags: + - has_many + - tags /delivery_lead_times: get: description: List all delivery lead times @@ -4250,6 +5539,25 @@ paths: tags: - has_many - attachments + /delivery_lead_times/{deliveryLeadTimeId}/versions: + get: + description: Retrieve the versions associated to the delivery lead time + operationId: GET/deliveryLeadTimeId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: deliveryLeadTimeId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the delivery lead time + summary: Retrieve the versions associated to the delivery lead time + tags: + - has_many + - versions /event_callbacks: get: description: List all event callbacks @@ -4341,10 +5649,9 @@ paths: summary: Retrieve an event tags: - events - /events/{eventId}/last_event_callbacks: - get: - description: Retrieve the last event callbacks associated to the event - operationId: GET/eventId/last_event_callbacks + patch: + description: Update an event + operationId: PATCH/events/eventId parameters: - description: The resource's id explode: false @@ -4353,13 +5660,22 @@ paths: required: true schema: {} style: simple + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/eventUpdate' + required: true responses: "200": - description: The last_event_callbacks associated to the event - summary: Retrieve the last event callbacks associated to the event + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/PATCH_events_eventId_200_response' + description: The updated event object + summary: Update an event tags: - - has_many - - event_callbacks + - events /events/{eventId}/webhooks: get: description: Retrieve the webhooks associated to the event @@ -4379,6 +5695,25 @@ paths: tags: - has_many - webhooks + /events/{eventId}/last_event_callbacks: + get: + description: Retrieve the last event callbacks associated to the event + operationId: GET/eventId/last_event_callbacks + parameters: + - description: The resource's id + explode: false + in: path + name: eventId + required: true + schema: {} + style: simple + responses: + "200": + description: The last_event_callbacks associated to the event + summary: Retrieve the last event callbacks associated to the event + tags: + - has_many + - event_callbacks /exports: get: description: List all exports @@ -4451,6 +5786,33 @@ paths: summary: Retrieve an export tags: - exports + patch: + description: Update an export + operationId: PATCH/exports/exportId + parameters: + - description: The resource's id + explode: false + in: path + name: exportId + required: true + schema: {} + style: simple + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/exportUpdate' + required: true + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/PATCH_exports_exportId_200_response' + description: The updated export object + summary: Update an export + tags: + - exports /exports/{exportId}/events: get: description: Retrieve the events associated to the export @@ -4588,6 +5950,25 @@ paths: tags: - has_many - payment_methods + /external_gateways/{externalGatewayId}/versions: + get: + description: Retrieve the versions associated to the external gateway + operationId: GET/externalGatewayId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: externalGatewayId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the external gateway + summary: Retrieve the versions associated to the external gateway + tags: + - has_many + - versions /external_gateways/{externalGatewayId}/external_payments: get: description: Retrieve the external payments associated to the external gateway @@ -4763,6 +6144,25 @@ paths: tags: - has_one - customer_payment_sources + /external_payments/{externalPaymentId}/versions: + get: + description: Retrieve the versions associated to the external payment + operationId: GET/externalPaymentId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: externalPaymentId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the external payment + summary: Retrieve the versions associated to the external payment + tags: + - has_many + - versions /external_promotions: get: description: List all external promotions @@ -4945,6 +6345,63 @@ paths: tags: - has_one - coupon_codes_promotion_rules + /external_promotions/{externalPromotionId}/custom_promotion_rule: + get: + description: Retrieve the custom promotion rule associated to the external promotion + operationId: GET/externalPromotionId/custom_promotion_rule + parameters: + - description: The resource's id + explode: false + in: path + name: externalPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The custom_promotion_rule associated to the external promotion + summary: Retrieve the custom promotion rule associated to the external promotion + tags: + - has_one + - custom_promotion_rules + /external_promotions/{externalPromotionId}/sku_list: + get: + description: Retrieve the sku list associated to the external promotion + operationId: GET/externalPromotionId/sku_list + parameters: + - description: The resource's id + explode: false + in: path + name: externalPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The sku_list associated to the external promotion + summary: Retrieve the sku list associated to the external promotion + tags: + - has_one + - sku_lists + /external_promotions/{externalPromotionId}/coupons: + get: + description: Retrieve the coupons associated to the external promotion + operationId: GET/externalPromotionId/coupons + parameters: + - description: The resource's id + explode: false + in: path + name: externalPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The coupons associated to the external promotion + summary: Retrieve the coupons associated to the external promotion + tags: + - has_many + - coupons /external_promotions/{externalPromotionId}/attachments: get: description: Retrieve the attachments associated to the external promotion @@ -4983,6 +6440,63 @@ paths: tags: - has_many - events + /external_promotions/{externalPromotionId}/tags: + get: + description: Retrieve the tags associated to the external promotion + operationId: GET/externalPromotionId/tags + parameters: + - description: The resource's id + explode: false + in: path + name: externalPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The tags associated to the external promotion + summary: Retrieve the tags associated to the external promotion + tags: + - has_many + - tags + /external_promotions/{externalPromotionId}/versions: + get: + description: Retrieve the versions associated to the external promotion + operationId: GET/externalPromotionId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: externalPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the external promotion + summary: Retrieve the versions associated to the external promotion + tags: + - has_many + - versions + /external_promotions/{externalPromotionId}/skus: + get: + description: Retrieve the skus associated to the external promotion + operationId: GET/externalPromotionId/skus + parameters: + - description: The resource's id + explode: false + in: path + name: externalPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The skus associated to the external promotion + summary: Retrieve the skus associated to the external promotion + tags: + - has_many + - skus /external_tax_calculators: get: description: List all external tax calculators @@ -5120,6 +6634,25 @@ paths: tags: - has_many - attachments + /external_tax_calculators/{externalTaxCalculatorId}/versions: + get: + description: Retrieve the versions associated to the external tax calculator + operationId: GET/externalTaxCalculatorId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: externalTaxCalculatorId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the external tax calculator + summary: Retrieve the versions associated to the external tax calculator + tags: + - has_many + - versions /fixed_amount_promotions: get: description: List all fixed amount promotions @@ -5304,6 +6837,64 @@ paths: tags: - has_one - coupon_codes_promotion_rules + /fixed_amount_promotions/{fixedAmountPromotionId}/custom_promotion_rule: + get: + description: Retrieve the custom promotion rule associated to the fixed amount + promotion + operationId: GET/fixedAmountPromotionId/custom_promotion_rule + parameters: + - description: The resource's id + explode: false + in: path + name: fixedAmountPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The custom_promotion_rule associated to the fixed amount promotion + summary: Retrieve the custom promotion rule associated to the fixed amount promotion + tags: + - has_one + - custom_promotion_rules + /fixed_amount_promotions/{fixedAmountPromotionId}/sku_list: + get: + description: Retrieve the sku list associated to the fixed amount promotion + operationId: GET/fixedAmountPromotionId/sku_list + parameters: + - description: The resource's id + explode: false + in: path + name: fixedAmountPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The sku_list associated to the fixed amount promotion + summary: Retrieve the sku list associated to the fixed amount promotion + tags: + - has_one + - sku_lists + /fixed_amount_promotions/{fixedAmountPromotionId}/coupons: + get: + description: Retrieve the coupons associated to the fixed amount promotion + operationId: GET/fixedAmountPromotionId/coupons + parameters: + - description: The resource's id + explode: false + in: path + name: fixedAmountPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The coupons associated to the fixed amount promotion + summary: Retrieve the coupons associated to the fixed amount promotion + tags: + - has_many + - coupons /fixed_amount_promotions/{fixedAmountPromotionId}/attachments: get: description: Retrieve the attachments associated to the fixed amount promotion @@ -5342,6 +6933,63 @@ paths: tags: - has_many - events + /fixed_amount_promotions/{fixedAmountPromotionId}/tags: + get: + description: Retrieve the tags associated to the fixed amount promotion + operationId: GET/fixedAmountPromotionId/tags + parameters: + - description: The resource's id + explode: false + in: path + name: fixedAmountPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The tags associated to the fixed amount promotion + summary: Retrieve the tags associated to the fixed amount promotion + tags: + - has_many + - tags + /fixed_amount_promotions/{fixedAmountPromotionId}/versions: + get: + description: Retrieve the versions associated to the fixed amount promotion + operationId: GET/fixedAmountPromotionId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: fixedAmountPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the fixed amount promotion + summary: Retrieve the versions associated to the fixed amount promotion + tags: + - has_many + - versions + /fixed_amount_promotions/{fixedAmountPromotionId}/skus: + get: + description: Retrieve the skus associated to the fixed amount promotion + operationId: GET/fixedAmountPromotionId/skus + parameters: + - description: The resource's id + explode: false + in: path + name: fixedAmountPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The skus associated to the fixed amount promotion + summary: Retrieve the skus associated to the fixed amount promotion + tags: + - has_many + - skus /fixed_price_promotions: get: description: List all fixed price promotions @@ -5525,6 +7173,64 @@ paths: tags: - has_one - coupon_codes_promotion_rules + /fixed_price_promotions/{fixedPricePromotionId}/custom_promotion_rule: + get: + description: Retrieve the custom promotion rule associated to the fixed price + promotion + operationId: GET/fixedPricePromotionId/custom_promotion_rule + parameters: + - description: The resource's id + explode: false + in: path + name: fixedPricePromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The custom_promotion_rule associated to the fixed price promotion + summary: Retrieve the custom promotion rule associated to the fixed price promotion + tags: + - has_one + - custom_promotion_rules + /fixed_price_promotions/{fixedPricePromotionId}/sku_list: + get: + description: Retrieve the sku list associated to the fixed price promotion + operationId: GET/fixedPricePromotionId/sku_list + parameters: + - description: The resource's id + explode: false + in: path + name: fixedPricePromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The sku_list associated to the fixed price promotion + summary: Retrieve the sku list associated to the fixed price promotion + tags: + - has_one + - sku_lists + /fixed_price_promotions/{fixedPricePromotionId}/coupons: + get: + description: Retrieve the coupons associated to the fixed price promotion + operationId: GET/fixedPricePromotionId/coupons + parameters: + - description: The resource's id + explode: false + in: path + name: fixedPricePromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The coupons associated to the fixed price promotion + summary: Retrieve the coupons associated to the fixed price promotion + tags: + - has_many + - coupons /fixed_price_promotions/{fixedPricePromotionId}/attachments: get: description: Retrieve the attachments associated to the fixed price promotion @@ -5563,10 +7269,10 @@ paths: tags: - has_many - events - /fixed_price_promotions/{fixedPricePromotionId}/sku_list: + /fixed_price_promotions/{fixedPricePromotionId}/tags: get: - description: Retrieve the sku list associated to the fixed price promotion - operationId: GET/fixedPricePromotionId/sku_list + description: Retrieve the tags associated to the fixed price promotion + operationId: GET/fixedPricePromotionId/tags parameters: - description: The resource's id explode: false @@ -5577,11 +7283,30 @@ paths: style: simple responses: "200": - description: The sku_list associated to the fixed price promotion - summary: Retrieve the sku list associated to the fixed price promotion + description: The tags associated to the fixed price promotion + summary: Retrieve the tags associated to the fixed price promotion tags: - - has_one - - sku_lists + - has_many + - tags + /fixed_price_promotions/{fixedPricePromotionId}/versions: + get: + description: Retrieve the versions associated to the fixed price promotion + operationId: GET/fixedPricePromotionId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: fixedPricePromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the fixed price promotion + summary: Retrieve the versions associated to the fixed price promotion + tags: + - has_many + - versions /fixed_price_promotions/{fixedPricePromotionId}/skus: get: description: Retrieve the skus associated to the fixed price promotion @@ -5601,6 +7326,220 @@ paths: tags: - has_many - skus + /flex_promotions: + get: + description: List all flex promotions + operationId: GET/flex_promotions + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_flex_promotions_200_response' + description: A list of flex promotion objects + summary: List all flex promotions + tags: + - flex_promotions + post: + description: Create a flex promotion + operationId: POST/flex_promotions + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/flexPromotionCreate' + required: true + responses: + "201": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/POST_flex_promotions_201_response' + description: The created flex promotion object + summary: Create a flex promotion + tags: + - flex_promotions + /flex_promotions/{flexPromotionId}: + delete: + description: Delete a flex promotion + operationId: DELETE/flex_promotions/flexPromotionId + parameters: + - description: The resource's id + explode: false + in: path + name: flexPromotionId + required: true + schema: {} + style: simple + responses: + "204": + description: No content + summary: Delete a flex promotion + tags: + - flex_promotions + get: + description: Retrieve a flex promotion + operationId: GET/flex_promotions/flexPromotionId + parameters: + - description: The resource's id + explode: false + in: path + name: flexPromotionId + required: true + schema: {} + style: simple + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_flex_promotions_flexPromotionId_200_response' + description: The flex promotion object + summary: Retrieve a flex promotion + tags: + - flex_promotions + patch: + description: Update a flex promotion + operationId: PATCH/flex_promotions/flexPromotionId + parameters: + - description: The resource's id + explode: false + in: path + name: flexPromotionId + required: true + schema: {} + style: simple + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/flexPromotionUpdate' + required: true + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/PATCH_flex_promotions_flexPromotionId_200_response' + description: The updated flex promotion object + summary: Update a flex promotion + tags: + - flex_promotions + /flex_promotions/{flexPromotionId}/coupon_codes_promotion_rule: + get: + description: Retrieve the coupon codes promotion rule associated to the flex + promotion + operationId: GET/flexPromotionId/coupon_codes_promotion_rule + parameters: + - description: The resource's id + explode: false + in: path + name: flexPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The coupon_codes_promotion_rule associated to the flex promotion + summary: Retrieve the coupon codes promotion rule associated to the flex promotion + tags: + - has_one + - coupon_codes_promotion_rules + /flex_promotions/{flexPromotionId}/coupons: + get: + description: Retrieve the coupons associated to the flex promotion + operationId: GET/flexPromotionId/coupons + parameters: + - description: The resource's id + explode: false + in: path + name: flexPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The coupons associated to the flex promotion + summary: Retrieve the coupons associated to the flex promotion + tags: + - has_many + - coupons + /flex_promotions/{flexPromotionId}/attachments: + get: + description: Retrieve the attachments associated to the flex promotion + operationId: GET/flexPromotionId/attachments + parameters: + - description: The resource's id + explode: false + in: path + name: flexPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The attachments associated to the flex promotion + summary: Retrieve the attachments associated to the flex promotion + tags: + - has_many + - attachments + /flex_promotions/{flexPromotionId}/events: + get: + description: Retrieve the events associated to the flex promotion + operationId: GET/flexPromotionId/events + parameters: + - description: The resource's id + explode: false + in: path + name: flexPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The events associated to the flex promotion + summary: Retrieve the events associated to the flex promotion + tags: + - has_many + - events + /flex_promotions/{flexPromotionId}/tags: + get: + description: Retrieve the tags associated to the flex promotion + operationId: GET/flexPromotionId/tags + parameters: + - description: The resource's id + explode: false + in: path + name: flexPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The tags associated to the flex promotion + summary: Retrieve the tags associated to the flex promotion + tags: + - has_many + - tags + /flex_promotions/{flexPromotionId}/versions: + get: + description: Retrieve the versions associated to the flex promotion + operationId: GET/flexPromotionId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: flexPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the flex promotion + summary: Retrieve the versions associated to the flex promotion + tags: + - has_many + - versions /free_gift_promotions: get: description: List all free gift promotions @@ -5783,6 +7722,64 @@ paths: tags: - has_one - coupon_codes_promotion_rules + /free_gift_promotions/{freeGiftPromotionId}/custom_promotion_rule: + get: + description: Retrieve the custom promotion rule associated to the free gift + promotion + operationId: GET/freeGiftPromotionId/custom_promotion_rule + parameters: + - description: The resource's id + explode: false + in: path + name: freeGiftPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The custom_promotion_rule associated to the free gift promotion + summary: Retrieve the custom promotion rule associated to the free gift promotion + tags: + - has_one + - custom_promotion_rules + /free_gift_promotions/{freeGiftPromotionId}/sku_list: + get: + description: Retrieve the sku list associated to the free gift promotion + operationId: GET/freeGiftPromotionId/sku_list + parameters: + - description: The resource's id + explode: false + in: path + name: freeGiftPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The sku_list associated to the free gift promotion + summary: Retrieve the sku list associated to the free gift promotion + tags: + - has_one + - sku_lists + /free_gift_promotions/{freeGiftPromotionId}/coupons: + get: + description: Retrieve the coupons associated to the free gift promotion + operationId: GET/freeGiftPromotionId/coupons + parameters: + - description: The resource's id + explode: false + in: path + name: freeGiftPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The coupons associated to the free gift promotion + summary: Retrieve the coupons associated to the free gift promotion + tags: + - has_many + - coupons /free_gift_promotions/{freeGiftPromotionId}/attachments: get: description: Retrieve the attachments associated to the free gift promotion @@ -5821,10 +7818,10 @@ paths: tags: - has_many - events - /free_gift_promotions/{freeGiftPromotionId}/sku_list: + /free_gift_promotions/{freeGiftPromotionId}/tags: get: - description: Retrieve the sku list associated to the free gift promotion - operationId: GET/freeGiftPromotionId/sku_list + description: Retrieve the tags associated to the free gift promotion + operationId: GET/freeGiftPromotionId/tags parameters: - description: The resource's id explode: false @@ -5835,11 +7832,30 @@ paths: style: simple responses: "200": - description: The sku_list associated to the free gift promotion - summary: Retrieve the sku list associated to the free gift promotion + description: The tags associated to the free gift promotion + summary: Retrieve the tags associated to the free gift promotion tags: - - has_one - - sku_lists + - has_many + - tags + /free_gift_promotions/{freeGiftPromotionId}/versions: + get: + description: Retrieve the versions associated to the free gift promotion + operationId: GET/freeGiftPromotionId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: freeGiftPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the free gift promotion + summary: Retrieve the versions associated to the free gift promotion + tags: + - has_many + - versions /free_gift_promotions/{freeGiftPromotionId}/skus: get: description: Retrieve the skus associated to the free gift promotion @@ -6043,6 +8059,65 @@ paths: tags: - has_one - coupon_codes_promotion_rules + /free_shipping_promotions/{freeShippingPromotionId}/custom_promotion_rule: + get: + description: Retrieve the custom promotion rule associated to the free shipping + promotion + operationId: GET/freeShippingPromotionId/custom_promotion_rule + parameters: + - description: The resource's id + explode: false + in: path + name: freeShippingPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The custom_promotion_rule associated to the free shipping promotion + summary: Retrieve the custom promotion rule associated to the free shipping + promotion + tags: + - has_one + - custom_promotion_rules + /free_shipping_promotions/{freeShippingPromotionId}/sku_list: + get: + description: Retrieve the sku list associated to the free shipping promotion + operationId: GET/freeShippingPromotionId/sku_list + parameters: + - description: The resource's id + explode: false + in: path + name: freeShippingPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The sku_list associated to the free shipping promotion + summary: Retrieve the sku list associated to the free shipping promotion + tags: + - has_one + - sku_lists + /free_shipping_promotions/{freeShippingPromotionId}/coupons: + get: + description: Retrieve the coupons associated to the free shipping promotion + operationId: GET/freeShippingPromotionId/coupons + parameters: + - description: The resource's id + explode: false + in: path + name: freeShippingPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The coupons associated to the free shipping promotion + summary: Retrieve the coupons associated to the free shipping promotion + tags: + - has_many + - coupons /free_shipping_promotions/{freeShippingPromotionId}/attachments: get: description: Retrieve the attachments associated to the free shipping promotion @@ -6081,6 +8156,44 @@ paths: tags: - has_many - events + /free_shipping_promotions/{freeShippingPromotionId}/tags: + get: + description: Retrieve the tags associated to the free shipping promotion + operationId: GET/freeShippingPromotionId/tags + parameters: + - description: The resource's id + explode: false + in: path + name: freeShippingPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The tags associated to the free shipping promotion + summary: Retrieve the tags associated to the free shipping promotion + tags: + - has_many + - tags + /free_shipping_promotions/{freeShippingPromotionId}/versions: + get: + description: Retrieve the versions associated to the free shipping promotion + operationId: GET/freeShippingPromotionId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: freeShippingPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the free shipping promotion + summary: Retrieve the versions associated to the free shipping promotion + tags: + - has_many + - versions /geocoders: get: description: List all geocoders @@ -6117,6 +8230,25 @@ paths: summary: Retrieve a geocoder tags: - geocoders + /geocoders/{geocoderId}/markets: + get: + description: Retrieve the markets associated to the geocoder + operationId: GET/geocoderId/markets + parameters: + - description: The resource's id + explode: false + in: path + name: geocoderId + required: true + schema: {} + style: simple + responses: + "200": + description: The markets associated to the geocoder + summary: Retrieve the markets associated to the geocoder + tags: + - has_many + - markets /geocoders/{geocoderId}/addresses: get: description: Retrieve the addresses associated to the geocoder @@ -6292,6 +8424,25 @@ paths: tags: - has_many - attachments + /gift_card_recipients/{giftCardRecipientId}/versions: + get: + description: Retrieve the versions associated to the gift card recipient + operationId: GET/giftCardRecipientId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: giftCardRecipientId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the gift card recipient + summary: Retrieve the versions associated to the gift card recipient + tags: + - has_many + - versions /gift_cards: get: description: List all gift cards @@ -6467,6 +8618,44 @@ paths: tags: - has_many - events + /gift_cards/{giftCardId}/tags: + get: + description: Retrieve the tags associated to the gift card + operationId: GET/giftCardId/tags + parameters: + - description: The resource's id + explode: false + in: path + name: giftCardId + required: true + schema: {} + style: simple + responses: + "200": + description: The tags associated to the gift card + summary: Retrieve the tags associated to the gift card + tags: + - has_many + - tags + /gift_cards/{giftCardId}/versions: + get: + description: Retrieve the versions associated to the gift card + operationId: GET/giftCardId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: giftCardId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the gift card + summary: Retrieve the versions associated to the gift card + tags: + - has_many + - versions /google_geocoders: get: description: List all google geocoders @@ -6566,6 +8755,25 @@ paths: summary: Update a google geocoder tags: - google_geocoders + /google_geocoders/{googleGeocoderId}/markets: + get: + description: Retrieve the markets associated to the google geocoder + operationId: GET/googleGeocoderId/markets + parameters: + - description: The resource's id + explode: false + in: path + name: googleGeocoderId + required: true + schema: {} + style: simple + responses: + "200": + description: The markets associated to the google geocoder + summary: Retrieve the markets associated to the google geocoder + tags: + - has_many + - markets /google_geocoders/{googleGeocoderId}/addresses: get: description: Retrieve the addresses associated to the google geocoder @@ -6676,6 +8884,33 @@ paths: summary: Retrieve an import tags: - imports + patch: + description: Update an import + operationId: PATCH/imports/importId + parameters: + - description: The resource's id + explode: false + in: path + name: importId + required: true + schema: {} + style: simple + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/importUpdate' + required: true + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/PATCH_imports_importId_200_response' + description: The updated import object + summary: Update an import + tags: + - imports /imports/{importId}/events: get: description: Retrieve the events associated to the import @@ -6870,6 +9105,25 @@ paths: tags: - has_many - events + /in_stock_subscriptions/{inStockSubscriptionId}/versions: + get: + description: Retrieve the versions associated to the in stock subscription + operationId: GET/inStockSubscriptionId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: inStockSubscriptionId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the in stock subscription + summary: Retrieve the versions associated to the in stock subscription + tags: + - has_many + - versions /inventory_models: get: description: List all inventory models @@ -7031,6 +9285,25 @@ paths: tags: - has_many - attachments + /inventory_models/{inventoryModelId}/versions: + get: + description: Retrieve the versions associated to the inventory model + operationId: GET/inventoryModelId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: inventoryModelId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the inventory model + summary: Retrieve the versions associated to the inventory model + tags: + - has_many + - versions /inventory_return_locations: get: description: List all inventory return locations @@ -7170,6 +9443,25 @@ paths: tags: - has_one - inventory_models + /inventory_return_locations/{inventoryReturnLocationId}/versions: + get: + description: Retrieve the versions associated to the inventory return location + operationId: GET/inventoryReturnLocationId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: inventoryReturnLocationId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the inventory return location + summary: Retrieve the versions associated to the inventory return location + tags: + - has_many + - versions /inventory_stock_locations: get: description: List all inventory stock locations @@ -7308,6 +9600,25 @@ paths: tags: - has_one - inventory_models + /inventory_stock_locations/{inventoryStockLocationId}/versions: + get: + description: Retrieve the versions associated to the inventory stock location + operationId: GET/inventoryStockLocationId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: inventoryStockLocationId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the inventory stock location + summary: Retrieve the versions associated to the inventory stock location + tags: + - has_many + - versions /klarna_gateways: get: description: List all klarna gateways @@ -7426,6 +9737,25 @@ paths: tags: - has_many - payment_methods + /klarna_gateways/{klarnaGatewayId}/versions: + get: + description: Retrieve the versions associated to the klarna gateway + operationId: GET/klarnaGatewayId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: klarnaGatewayId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the klarna gateway + summary: Retrieve the versions associated to the klarna gateway + tags: + - has_many + - versions /klarna_gateways/{klarnaGatewayId}/klarna_payments: get: description: Retrieve the klarna payments associated to the klarna gateway @@ -7582,6 +9912,25 @@ paths: tags: - has_one - payment_gateways + /klarna_payments/{klarnaPaymentId}/versions: + get: + description: Retrieve the versions associated to the klarna payment + operationId: GET/klarnaPaymentId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: klarnaPaymentId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the klarna payment + summary: Retrieve the versions associated to the klarna payment + tags: + - has_many + - versions /line_item_options: get: description: List all line item options @@ -7719,6 +10068,44 @@ paths: tags: - has_one - sku_options + /line_item_options/{lineItemOptionId}/events: + get: + description: Retrieve the events associated to the line item option + operationId: GET/lineItemOptionId/events + parameters: + - description: The resource's id + explode: false + in: path + name: lineItemOptionId + required: true + schema: {} + style: simple + responses: + "200": + description: The events associated to the line item option + summary: Retrieve the events associated to the line item option + tags: + - has_many + - events + /line_item_options/{lineItemOptionId}/tags: + get: + description: Retrieve the tags associated to the line item option + operationId: GET/lineItemOptionId/tags + parameters: + - description: The resource's id + explode: false + in: path + name: lineItemOptionId + required: true + schema: {} + style: simple + responses: + "200": + description: The tags associated to the line item option + summary: Retrieve the tags associated to the line item option + tags: + - has_many + - tags /line_items: get: description: List all line items @@ -7856,6 +10243,44 @@ paths: tags: - has_many - line_item_options + /line_items/{lineItemId}/return_line_items: + get: + description: Retrieve the return line items associated to the line item + operationId: GET/lineItemId/return_line_items + parameters: + - description: The resource's id + explode: false + in: path + name: lineItemId + required: true + schema: {} + style: simple + responses: + "200": + description: The return_line_items associated to the line item + summary: Retrieve the return line items associated to the line item + tags: + - has_many + - return_line_items + /line_items/{lineItemId}/stock_reservations: + get: + description: Retrieve the stock reservations associated to the line item + operationId: GET/lineItemId/stock_reservations + parameters: + - description: The resource's id + explode: false + in: path + name: lineItemId + required: true + schema: {} + style: simple + responses: + "200": + description: The stock_reservations associated to the line item + summary: Retrieve the stock reservations associated to the line item + tags: + - has_many + - stock_reservations /line_items/{lineItemId}/stock_line_items: get: description: Retrieve the stock line items associated to the line item @@ -7894,6 +10319,162 @@ paths: tags: - has_many - stock_transfers + /line_items/{lineItemId}/events: + get: + description: Retrieve the events associated to the line item + operationId: GET/lineItemId/events + parameters: + - description: The resource's id + explode: false + in: path + name: lineItemId + required: true + schema: {} + style: simple + responses: + "200": + description: The events associated to the line item + summary: Retrieve the events associated to the line item + tags: + - has_many + - events + /line_items/{lineItemId}/tags: + get: + description: Retrieve the tags associated to the line item + operationId: GET/lineItemId/tags + parameters: + - description: The resource's id + explode: false + in: path + name: lineItemId + required: true + schema: {} + style: simple + responses: + "200": + description: The tags associated to the line item + summary: Retrieve the tags associated to the line item + tags: + - has_many + - tags + /links: + get: + description: List all links + operationId: GET/links + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_links_200_response' + description: A list of link objects + summary: List all links + tags: + - links + post: + description: Create a link + operationId: POST/links + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/linkCreate' + required: true + responses: + "201": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/POST_links_201_response' + description: The created link object + summary: Create a link + tags: + - links + /links/{linkId}: + delete: + description: Delete a link + operationId: DELETE/links/linkId + parameters: + - description: The resource's id + explode: false + in: path + name: linkId + required: true + schema: {} + style: simple + responses: + "204": + description: No content + summary: Delete a link + tags: + - links + get: + description: Retrieve a link + operationId: GET/links/linkId + parameters: + - description: The resource's id + explode: false + in: path + name: linkId + required: true + schema: {} + style: simple + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_links_linkId_200_response' + description: The link object + summary: Retrieve a link + tags: + - links + patch: + description: Update a link + operationId: PATCH/links/linkId + parameters: + - description: The resource's id + explode: false + in: path + name: linkId + required: true + schema: {} + style: simple + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/linkUpdate' + required: true + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/PATCH_links_linkId_200_response' + description: The updated link object + summary: Update a link + tags: + - links + /links/{linkId}/events: + get: + description: Retrieve the events associated to the link + operationId: GET/linkId/events + parameters: + - description: The resource's id + explode: false + in: path + name: linkId + required: true + schema: {} + style: simple + responses: + "200": + description: The events associated to the link + summary: Retrieve the events associated to the link + tags: + - has_many + - events /manual_gateways: get: description: List all manual gateways @@ -8012,6 +10593,25 @@ paths: tags: - has_many - payment_methods + /manual_gateways/{manualGatewayId}/versions: + get: + description: Retrieve the versions associated to the manual gateway + operationId: GET/manualGatewayId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: manualGatewayId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the manual gateway + summary: Retrieve the versions associated to the manual gateway + tags: + - has_many + - versions /manual_tax_calculators: get: description: List all manual tax calculators @@ -8149,6 +10749,25 @@ paths: tags: - has_many - attachments + /manual_tax_calculators/{manualTaxCalculatorId}/versions: + get: + description: Retrieve the versions associated to the manual tax calculator + operationId: GET/manualTaxCalculatorId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: manualTaxCalculatorId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the manual tax calculator + summary: Retrieve the versions associated to the manual tax calculator + tags: + - has_many + - versions /manual_tax_calculators/{manualTaxCalculatorId}/tax_rules: get: description: Retrieve the tax rules associated to the manual tax calculator @@ -8305,6 +10924,25 @@ paths: tags: - has_one - price_lists + /markets/{marketId}/base_price_list: + get: + description: Retrieve the base price list associated to the market + operationId: GET/marketId/base_price_list + parameters: + - description: The resource's id + explode: false + in: path + name: marketId + required: true + schema: {} + style: simple + responses: + "200": + description: The base_price_list associated to the market + summary: Retrieve the base price list associated to the market + tags: + - has_one + - price_lists /markets/{marketId}/inventory_model: get: description: Retrieve the inventory model associated to the market @@ -8381,6 +11019,44 @@ paths: tags: - has_one - customer_groups + /markets/{marketId}/geocoder: + get: + description: Retrieve the geocoder associated to the market + operationId: GET/marketId/geocoder + parameters: + - description: The resource's id + explode: false + in: path + name: marketId + required: true + schema: {} + style: simple + responses: + "200": + description: The geocoder associated to the market + summary: Retrieve the geocoder associated to the market + tags: + - has_one + - geocoders + /markets/{marketId}/price_list_schedulers: + get: + description: Retrieve the price list schedulers associated to the market + operationId: GET/marketId/price_list_schedulers + parameters: + - description: The resource's id + explode: false + in: path + name: marketId + required: true + schema: {} + style: simple + responses: + "200": + description: The price_list_schedulers associated to the market + summary: Retrieve the price list schedulers associated to the market + tags: + - has_many + - price_list_schedulers /markets/{marketId}/attachments: get: description: Retrieve the attachments associated to the market @@ -8400,6 +11076,25 @@ paths: tags: - has_many - attachments + /markets/{marketId}/versions: + get: + description: Retrieve the versions associated to the market + operationId: GET/marketId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: marketId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the market + summary: Retrieve the versions associated to the market + tags: + - has_many + - versions /merchants: get: description: List all merchants @@ -8537,6 +11232,25 @@ paths: tags: - has_many - attachments + /merchants/{merchantId}/versions: + get: + description: Retrieve the versions associated to the merchant + operationId: GET/merchantId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: merchantId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the merchant + summary: Retrieve the versions associated to the merchant + tags: + - has_many + - versions /order_amount_promotion_rules: get: description: List all order amount promotion rules @@ -8636,6 +11350,26 @@ paths: summary: Update an order amount promotion rule tags: - order_amount_promotion_rules + /order_amount_promotion_rules/{orderAmountPromotionRuleId}/versions: + get: + description: Retrieve the versions associated to the order amount promotion + rule + operationId: GET/orderAmountPromotionRuleId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: orderAmountPromotionRuleId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the order amount promotion rule + summary: Retrieve the versions associated to the order amount promotion rule + tags: + - has_many + - versions /order_copies: get: description: List all order copies @@ -9025,6 +11759,27 @@ paths: tags: - has_one - order_subscriptions + /order_subscription_items/{orderSubscriptionItemId}/source_line_item: + get: + description: Retrieve the source line item associated to the order subscription + item + operationId: GET/orderSubscriptionItemId/source_line_item + parameters: + - description: The resource's id + explode: false + in: path + name: orderSubscriptionItemId + required: true + schema: {} + style: simple + responses: + "200": + description: The source_line_item associated to the order subscription item + summary: Retrieve the source line item associated to the order subscription + item + tags: + - has_one + - line_items /order_subscriptions: get: description: List all order subscriptions @@ -9314,80 +12069,44 @@ paths: tags: - has_many - events - /order_validation_rules: - get: - description: List all order validation rules - operationId: GET/order_validation_rules - responses: - "200": - content: - application/vnd.api+json: - schema: - $ref: '#/components/schemas/GET_order_validation_rules_200_response' - description: A list of order validation rule objects - summary: List all order validation rules - tags: - - order_validation_rules - /order_validation_rules/{orderValidationRuleId}: - get: - description: Retrieve an order validation rule - operationId: GET/order_validation_rules/orderValidationRuleId - parameters: - - description: The resource's id - explode: false - in: path - name: orderValidationRuleId - required: true - schema: {} - style: simple - responses: - "200": - content: - application/vnd.api+json: - schema: - $ref: '#/components/schemas/GET_order_validation_rules_orderValidationRuleId_200_response' - description: The order validation rule object - summary: Retrieve an order validation rule - tags: - - order_validation_rules - /order_validation_rules/{orderValidationRuleId}/market: + /order_subscriptions/{orderSubscriptionId}/tags: get: - description: Retrieve the market associated to the order validation rule - operationId: GET/orderValidationRuleId/market + description: Retrieve the tags associated to the order subscription + operationId: GET/orderSubscriptionId/tags parameters: - description: The resource's id explode: false in: path - name: orderValidationRuleId + name: orderSubscriptionId required: true schema: {} style: simple responses: "200": - description: The market associated to the order validation rule - summary: Retrieve the market associated to the order validation rule + description: The tags associated to the order subscription + summary: Retrieve the tags associated to the order subscription tags: - - has_one - - markets - /order_validation_rules/{orderValidationRuleId}/attachments: + - has_many + - tags + /order_subscriptions/{orderSubscriptionId}/versions: get: - description: Retrieve the attachments associated to the order validation rule - operationId: GET/orderValidationRuleId/attachments + description: Retrieve the versions associated to the order subscription + operationId: GET/orderSubscriptionId/versions parameters: - description: The resource's id explode: false in: path - name: orderValidationRuleId + name: orderSubscriptionId required: true schema: {} style: simple responses: "200": - description: The attachments associated to the order validation rule - summary: Retrieve the attachments associated to the order validation rule + description: The versions associated to the order subscription + summary: Retrieve the versions associated to the order subscription tags: - has_many - - attachments + - versions /orders: get: description: List all orders @@ -9678,6 +12397,82 @@ paths: tags: - has_many - line_items + /orders/{orderId}/line_item_options: + get: + description: Retrieve the line item options associated to the order + operationId: GET/orderId/line_item_options + parameters: + - description: The resource's id + explode: false + in: path + name: orderId + required: true + schema: {} + style: simple + responses: + "200": + description: The line_item_options associated to the order + summary: Retrieve the line item options associated to the order + tags: + - has_many + - line_item_options + /orders/{orderId}/stock_reservations: + get: + description: Retrieve the stock reservations associated to the order + operationId: GET/orderId/stock_reservations + parameters: + - description: The resource's id + explode: false + in: path + name: orderId + required: true + schema: {} + style: simple + responses: + "200": + description: The stock_reservations associated to the order + summary: Retrieve the stock reservations associated to the order + tags: + - has_many + - stock_reservations + /orders/{orderId}/stock_line_items: + get: + description: Retrieve the stock line items associated to the order + operationId: GET/orderId/stock_line_items + parameters: + - description: The resource's id + explode: false + in: path + name: orderId + required: true + schema: {} + style: simple + responses: + "200": + description: The stock_line_items associated to the order + summary: Retrieve the stock line items associated to the order + tags: + - has_many + - stock_line_items + /orders/{orderId}/stock_transfers: + get: + description: Retrieve the stock transfers associated to the order + operationId: GET/orderId/stock_transfers + parameters: + - description: The resource's id + explode: false + in: path + name: orderId + required: true + schema: {} + style: simple + responses: + "200": + description: The stock_transfers associated to the order + summary: Retrieve the stock transfers associated to the order + tags: + - has_many + - stock_transfers /orders/{orderId}/shipments: get: description: Retrieve the shipments associated to the order @@ -9697,6 +12492,25 @@ paths: tags: - has_many - shipments + /orders/{orderId}/payment_options: + get: + description: Retrieve the payment options associated to the order + operationId: GET/orderId/payment_options + parameters: + - description: The resource's id + explode: false + in: path + name: orderId + required: true + schema: {} + style: simple + responses: + "200": + description: The payment_options associated to the order + summary: Retrieve the payment options associated to the order + tags: + - has_many + - payment_options /orders/{orderId}/authorizations: get: description: Retrieve the authorizations associated to the order @@ -9792,6 +12606,25 @@ paths: tags: - has_many - returns + /orders/{orderId}/order_subscription: + get: + description: Retrieve the order subscription associated to the order + operationId: GET/orderId/order_subscription + parameters: + - description: The resource's id + explode: false + in: path + name: orderId + required: true + schema: {} + style: simple + responses: + "200": + description: The order_subscription associated to the order + summary: Retrieve the order subscription associated to the order + tags: + - has_one + - order_subscriptions /orders/{orderId}/order_subscriptions: get: description: Retrieve the order subscriptions associated to the order @@ -9887,6 +12720,44 @@ paths: tags: - has_many - attachments + /orders/{orderId}/links: + get: + description: Retrieve the links associated to the order + operationId: GET/orderId/links + parameters: + - description: The resource's id + explode: false + in: path + name: orderId + required: true + schema: {} + style: simple + responses: + "200": + description: The links associated to the order + summary: Retrieve the links associated to the order + tags: + - has_many + - links + /orders/{orderId}/resource_errors: + get: + description: Retrieve the resource errors associated to the order + operationId: GET/orderId/resource_errors + parameters: + - description: The resource's id + explode: false + in: path + name: orderId + required: true + schema: {} + style: simple + responses: + "200": + description: The resource_errors associated to the order + summary: Retrieve the resource errors associated to the order + tags: + - has_many + - resource_errors /orders/{orderId}/events: get: description: Retrieve the events associated to the order @@ -9906,6 +12777,44 @@ paths: tags: - has_many - events + /orders/{orderId}/tags: + get: + description: Retrieve the tags associated to the order + operationId: GET/orderId/tags + parameters: + - description: The resource's id + explode: false + in: path + name: orderId + required: true + schema: {} + style: simple + responses: + "200": + description: The tags associated to the order + summary: Retrieve the tags associated to the order + tags: + - has_many + - tags + /orders/{orderId}/versions: + get: + description: Retrieve the versions associated to the order + operationId: GET/orderId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: orderId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the order + summary: Retrieve the versions associated to the order + tags: + - has_many + - versions /organization: get: description: Retrieve the organization @@ -10077,6 +12986,25 @@ paths: tags: - has_many - attachments + /packages/{packageId}/versions: + get: + description: Retrieve the versions associated to the package + operationId: GET/packageId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: packageId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the package + summary: Retrieve the versions associated to the package + tags: + - has_many + - versions /parcel_line_items: get: description: List all parcel line items @@ -10214,6 +13142,25 @@ paths: tags: - has_one - stock_line_items + /parcel_line_items/{parcelLineItemId}/versions: + get: + description: Retrieve the versions associated to the parcel line item + operationId: GET/parcelLineItemId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: parcelLineItemId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the parcel line item + summary: Retrieve the versions associated to the parcel line item + tags: + - has_many + - versions /parcels: get: description: List all parcels @@ -10408,6 +13355,25 @@ paths: tags: - has_many - events + /parcels/{parcelId}/versions: + get: + description: Retrieve the versions associated to the parcel + operationId: GET/parcelId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: parcelId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the parcel + summary: Retrieve the versions associated to the parcel + tags: + - has_many + - versions /payment_gateways: get: description: List all payment gateways @@ -10463,6 +13429,25 @@ paths: tags: - has_many - payment_methods + /payment_gateways/{paymentGatewayId}/versions: + get: + description: Retrieve the versions associated to the payment gateway + operationId: GET/paymentGatewayId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: paymentGatewayId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the payment gateway + summary: Retrieve the versions associated to the payment gateway + tags: + - has_many + - versions /payment_methods: get: description: List all payment methods @@ -10619,6 +13604,162 @@ paths: tags: - has_many - attachments + /payment_methods/{paymentMethodId}/versions: + get: + description: Retrieve the versions associated to the payment method + operationId: GET/paymentMethodId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: paymentMethodId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the payment method + summary: Retrieve the versions associated to the payment method + tags: + - has_many + - versions + /payment_options: + get: + description: List all payment options + operationId: GET/payment_options + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_payment_options_200_response' + description: A list of payment option objects + summary: List all payment options + tags: + - payment_options + post: + description: Create a payment option + operationId: POST/payment_options + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/paymentOptionCreate' + required: true + responses: + "201": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/POST_payment_options_201_response' + description: The created payment option object + summary: Create a payment option + tags: + - payment_options + /payment_options/{paymentOptionId}: + delete: + description: Delete a payment option + operationId: DELETE/payment_options/paymentOptionId + parameters: + - description: The resource's id + explode: false + in: path + name: paymentOptionId + required: true + schema: {} + style: simple + responses: + "204": + description: No content + summary: Delete a payment option + tags: + - payment_options + get: + description: Retrieve a payment option + operationId: GET/payment_options/paymentOptionId + parameters: + - description: The resource's id + explode: false + in: path + name: paymentOptionId + required: true + schema: {} + style: simple + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_payment_options_paymentOptionId_200_response' + description: The payment option object + summary: Retrieve a payment option + tags: + - payment_options + patch: + description: Update a payment option + operationId: PATCH/payment_options/paymentOptionId + parameters: + - description: The resource's id + explode: false + in: path + name: paymentOptionId + required: true + schema: {} + style: simple + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/paymentOptionUpdate' + required: true + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/PATCH_payment_options_paymentOptionId_200_response' + description: The updated payment option object + summary: Update a payment option + tags: + - payment_options + /payment_options/{paymentOptionId}/order: + get: + description: Retrieve the order associated to the payment option + operationId: GET/paymentOptionId/order + parameters: + - description: The resource's id + explode: false + in: path + name: paymentOptionId + required: true + schema: {} + style: simple + responses: + "200": + description: The order associated to the payment option + summary: Retrieve the order associated to the payment option + tags: + - has_one + - orders + /payment_options/{paymentOptionId}/attachments: + get: + description: Retrieve the attachments associated to the payment option + operationId: GET/paymentOptionId/attachments + parameters: + - description: The resource's id + explode: false + in: path + name: paymentOptionId + required: true + schema: {} + style: simple + responses: + "200": + description: The attachments associated to the payment option + summary: Retrieve the attachments associated to the payment option + tags: + - has_many + - attachments /paypal_gateways: get: description: List all paypal gateways @@ -10737,6 +13878,25 @@ paths: tags: - has_many - payment_methods + /paypal_gateways/{paypalGatewayId}/versions: + get: + description: Retrieve the versions associated to the paypal gateway + operationId: GET/paypalGatewayId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: paypalGatewayId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the paypal gateway + summary: Retrieve the versions associated to the paypal gateway + tags: + - has_many + - versions /paypal_gateways/{paypalGatewayId}/paypal_payments: get: description: Retrieve the paypal payments associated to the paypal gateway @@ -10893,6 +14053,25 @@ paths: tags: - has_one - payment_gateways + /paypal_payments/{paypalPaymentId}/versions: + get: + description: Retrieve the versions associated to the paypal payment + operationId: GET/paypalPaymentId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: paypalPaymentId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the paypal payment + summary: Retrieve the versions associated to the paypal payment + tags: + - has_many + - versions /percentage_discount_promotions: get: description: List all percentage discount promotions @@ -11077,6 +14256,66 @@ paths: tags: - has_one - coupon_codes_promotion_rules + /percentage_discount_promotions/{percentageDiscountPromotionId}/custom_promotion_rule: + get: + description: Retrieve the custom promotion rule associated to the percentage + discount promotion + operationId: GET/percentageDiscountPromotionId/custom_promotion_rule + parameters: + - description: The resource's id + explode: false + in: path + name: percentageDiscountPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The custom_promotion_rule associated to the percentage discount + promotion + summary: Retrieve the custom promotion rule associated to the percentage discount + promotion + tags: + - has_one + - custom_promotion_rules + /percentage_discount_promotions/{percentageDiscountPromotionId}/sku_list: + get: + description: Retrieve the sku list associated to the percentage discount promotion + operationId: GET/percentageDiscountPromotionId/sku_list + parameters: + - description: The resource's id + explode: false + in: path + name: percentageDiscountPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The sku_list associated to the percentage discount promotion + summary: Retrieve the sku list associated to the percentage discount promotion + tags: + - has_one + - sku_lists + /percentage_discount_promotions/{percentageDiscountPromotionId}/coupons: + get: + description: Retrieve the coupons associated to the percentage discount promotion + operationId: GET/percentageDiscountPromotionId/coupons + parameters: + - description: The resource's id + explode: false + in: path + name: percentageDiscountPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The coupons associated to the percentage discount promotion + summary: Retrieve the coupons associated to the percentage discount promotion + tags: + - has_many + - coupons /percentage_discount_promotions/{percentageDiscountPromotionId}/attachments: get: description: Retrieve the attachments associated to the percentage discount @@ -11116,10 +14355,10 @@ paths: tags: - has_many - events - /percentage_discount_promotions/{percentageDiscountPromotionId}/sku_list: + /percentage_discount_promotions/{percentageDiscountPromotionId}/tags: get: - description: Retrieve the sku list associated to the percentage discount promotion - operationId: GET/percentageDiscountPromotionId/sku_list + description: Retrieve the tags associated to the percentage discount promotion + operationId: GET/percentageDiscountPromotionId/tags parameters: - description: The resource's id explode: false @@ -11130,11 +14369,30 @@ paths: style: simple responses: "200": - description: The sku_list associated to the percentage discount promotion - summary: Retrieve the sku list associated to the percentage discount promotion + description: The tags associated to the percentage discount promotion + summary: Retrieve the tags associated to the percentage discount promotion tags: - - has_one - - sku_lists + - has_many + - tags + /percentage_discount_promotions/{percentageDiscountPromotionId}/versions: + get: + description: Retrieve the versions associated to the percentage discount promotion + operationId: GET/percentageDiscountPromotionId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: percentageDiscountPromotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the percentage discount promotion + summary: Retrieve the versions associated to the percentage discount promotion + tags: + - has_many + - versions /percentage_discount_promotions/{percentageDiscountPromotionId}/skus: get: description: Retrieve the skus associated to the percentage discount promotion @@ -11291,6 +14549,25 @@ paths: tags: - has_many - attachments + /price_frequency_tiers/{priceFrequencyTierId}/versions: + get: + description: Retrieve the versions associated to the price frequency tier + operationId: GET/priceFrequencyTierId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: priceFrequencyTierId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the price frequency tier + summary: Retrieve the versions associated to the price frequency tier + tags: + - has_many + - versions /price_frequency_tiers/{priceFrequencyTierId}/events: get: description: Retrieve the events associated to the price frequency tier @@ -11310,6 +14587,181 @@ paths: tags: - has_many - events + /price_list_schedulers: + get: + description: List all price list schedulers + operationId: GET/price_list_schedulers + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_price_list_schedulers_200_response' + description: A list of price list scheduler objects + summary: List all price list schedulers + tags: + - price_list_schedulers + post: + description: Create a price list scheduler + operationId: POST/price_list_schedulers + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/priceListSchedulerCreate' + required: true + responses: + "201": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/POST_price_list_schedulers_201_response' + description: The created price list scheduler object + summary: Create a price list scheduler + tags: + - price_list_schedulers + /price_list_schedulers/{priceListSchedulerId}: + delete: + description: Delete a price list scheduler + operationId: DELETE/price_list_schedulers/priceListSchedulerId + parameters: + - description: The resource's id + explode: false + in: path + name: priceListSchedulerId + required: true + schema: {} + style: simple + responses: + "204": + description: No content + summary: Delete a price list scheduler + tags: + - price_list_schedulers + get: + description: Retrieve a price list scheduler + operationId: GET/price_list_schedulers/priceListSchedulerId + parameters: + - description: The resource's id + explode: false + in: path + name: priceListSchedulerId + required: true + schema: {} + style: simple + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_price_list_schedulers_priceListSchedulerId_200_response' + description: The price list scheduler object + summary: Retrieve a price list scheduler + tags: + - price_list_schedulers + patch: + description: Update a price list scheduler + operationId: PATCH/price_list_schedulers/priceListSchedulerId + parameters: + - description: The resource's id + explode: false + in: path + name: priceListSchedulerId + required: true + schema: {} + style: simple + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/priceListSchedulerUpdate' + required: true + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/PATCH_price_list_schedulers_priceListSchedulerId_200_response' + description: The updated price list scheduler object + summary: Update a price list scheduler + tags: + - price_list_schedulers + /price_list_schedulers/{priceListSchedulerId}/market: + get: + description: Retrieve the market associated to the price list scheduler + operationId: GET/priceListSchedulerId/market + parameters: + - description: The resource's id + explode: false + in: path + name: priceListSchedulerId + required: true + schema: {} + style: simple + responses: + "200": + description: The market associated to the price list scheduler + summary: Retrieve the market associated to the price list scheduler + tags: + - has_one + - markets + /price_list_schedulers/{priceListSchedulerId}/price_list: + get: + description: Retrieve the price list associated to the price list scheduler + operationId: GET/priceListSchedulerId/price_list + parameters: + - description: The resource's id + explode: false + in: path + name: priceListSchedulerId + required: true + schema: {} + style: simple + responses: + "200": + description: The price_list associated to the price list scheduler + summary: Retrieve the price list associated to the price list scheduler + tags: + - has_one + - price_lists + /price_list_schedulers/{priceListSchedulerId}/events: + get: + description: Retrieve the events associated to the price list scheduler + operationId: GET/priceListSchedulerId/events + parameters: + - description: The resource's id + explode: false + in: path + name: priceListSchedulerId + required: true + schema: {} + style: simple + responses: + "200": + description: The events associated to the price list scheduler + summary: Retrieve the events associated to the price list scheduler + tags: + - has_many + - events + /price_list_schedulers/{priceListSchedulerId}/versions: + get: + description: Retrieve the versions associated to the price list scheduler + operationId: GET/priceListSchedulerId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: priceListSchedulerId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the price list scheduler + summary: Retrieve the versions associated to the price list scheduler + tags: + - has_many + - versions /price_lists: get: description: List all price lists @@ -11428,6 +14880,25 @@ paths: tags: - has_many - prices + /price_lists/{priceListId}/price_list_schedulers: + get: + description: Retrieve the price list schedulers associated to the price list + operationId: GET/priceListId/price_list_schedulers + parameters: + - description: The resource's id + explode: false + in: path + name: priceListId + required: true + schema: {} + style: simple + responses: + "200": + description: The price_list_schedulers associated to the price list + summary: Retrieve the price list schedulers associated to the price list + tags: + - has_many + - price_list_schedulers /price_lists/{priceListId}/attachments: get: description: Retrieve the attachments associated to the price list @@ -11447,6 +14918,25 @@ paths: tags: - has_many - attachments + /price_lists/{priceListId}/versions: + get: + description: Retrieve the versions associated to the price list + operationId: GET/priceListId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: priceListId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the price list + summary: Retrieve the versions associated to the price list + tags: + - has_many + - versions /price_tiers: get: description: List all price tiers @@ -11521,6 +15011,25 @@ paths: tags: - has_many - attachments + /price_tiers/{priceTierId}/versions: + get: + description: Retrieve the versions associated to the price tier + operationId: GET/priceTierId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: priceTierId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the price tier + summary: Retrieve the versions associated to the price tier + tags: + - has_many + - versions /price_volume_tiers: get: description: List all price volume tiers @@ -11658,6 +15167,25 @@ paths: tags: - has_many - attachments + /price_volume_tiers/{priceVolumeTierId}/versions: + get: + description: Retrieve the versions associated to the price volume tier + operationId: GET/priceVolumeTierId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: priceVolumeTierId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the price volume tier + summary: Retrieve the versions associated to the price volume tier + tags: + - has_many + - versions /price_volume_tiers/{priceVolumeTierId}/events: get: description: Retrieve the events associated to the price volume tier @@ -11890,6 +15418,82 @@ paths: tags: - has_many - attachments + /prices/{priceId}/versions: + get: + description: Retrieve the versions associated to the price + operationId: GET/priceId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: priceId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the price + summary: Retrieve the versions associated to the price + tags: + - has_many + - versions + /prices/{priceId}/jwt_customer: + get: + description: Retrieve the jwt customer associated to the price + operationId: GET/priceId/jwt_customer + parameters: + - description: The resource's id + explode: false + in: path + name: priceId + required: true + schema: {} + style: simple + responses: + "200": + description: The jwt_customer associated to the price + summary: Retrieve the jwt customer associated to the price + tags: + - has_one + - customers + /prices/{priceId}/jwt_markets: + get: + description: Retrieve the jwt markets associated to the price + operationId: GET/priceId/jwt_markets + parameters: + - description: The resource's id + explode: false + in: path + name: priceId + required: true + schema: {} + style: simple + responses: + "200": + description: The jwt_markets associated to the price + summary: Retrieve the jwt markets associated to the price + tags: + - has_many + - markets + /prices/{priceId}/jwt_stock_locations: + get: + description: Retrieve the jwt stock locations associated to the price + operationId: GET/priceId/jwt_stock_locations + parameters: + - description: The resource's id + explode: false + in: path + name: priceId + required: true + schema: {} + style: simple + responses: + "200": + description: The jwt_stock_locations associated to the price + summary: Retrieve the jwt stock locations associated to the price + tags: + - has_many + - stock_locations /promotion_rules: get: description: List all promotion rules @@ -11926,6 +15530,25 @@ paths: summary: Retrieve a promotion rule tags: - promotion_rules + /promotion_rules/{promotionRuleId}/versions: + get: + description: Retrieve the versions associated to the promotion rule + operationId: GET/promotionRuleId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: promotionRuleId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the promotion rule + summary: Retrieve the versions associated to the promotion rule + tags: + - has_many + - versions /promotions: get: description: List all promotions @@ -12038,6 +15661,63 @@ paths: tags: - has_one - coupon_codes_promotion_rules + /promotions/{promotionId}/custom_promotion_rule: + get: + description: Retrieve the custom promotion rule associated to the promotion + operationId: GET/promotionId/custom_promotion_rule + parameters: + - description: The resource's id + explode: false + in: path + name: promotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The custom_promotion_rule associated to the promotion + summary: Retrieve the custom promotion rule associated to the promotion + tags: + - has_one + - custom_promotion_rules + /promotions/{promotionId}/sku_list: + get: + description: Retrieve the sku list associated to the promotion + operationId: GET/promotionId/sku_list + parameters: + - description: The resource's id + explode: false + in: path + name: promotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The sku_list associated to the promotion + summary: Retrieve the sku list associated to the promotion + tags: + - has_one + - sku_lists + /promotions/{promotionId}/coupons: + get: + description: Retrieve the coupons associated to the promotion + operationId: GET/promotionId/coupons + parameters: + - description: The resource's id + explode: false + in: path + name: promotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The coupons associated to the promotion + summary: Retrieve the coupons associated to the promotion + tags: + - has_many + - coupons /promotions/{promotionId}/attachments: get: description: Retrieve the attachments associated to the promotion @@ -12076,6 +15756,44 @@ paths: tags: - has_many - events + /promotions/{promotionId}/tags: + get: + description: Retrieve the tags associated to the promotion + operationId: GET/promotionId/tags + parameters: + - description: The resource's id + explode: false + in: path + name: promotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The tags associated to the promotion + summary: Retrieve the tags associated to the promotion + tags: + - has_many + - tags + /promotions/{promotionId}/versions: + get: + description: Retrieve the versions associated to the promotion + operationId: GET/promotionId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: promotionId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the promotion + summary: Retrieve the versions associated to the promotion + tags: + - has_many + - versions /recurring_order_copies: get: description: List all recurring order copies @@ -12288,6 +16006,33 @@ paths: summary: Retrieve a refund tags: - refunds + patch: + description: Update a refund + operationId: PATCH/refunds/refundId + parameters: + - description: The resource's id + explode: false + in: path + name: refundId + required: true + schema: {} + style: simple + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/refundUpdate' + required: true + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/PATCH_refunds_refundId_200_response' + description: The updated refund object + summary: Update a refund + tags: + - refunds /refunds/{refundId}/order: get: description: Retrieve the order associated to the refund @@ -12307,6 +16052,63 @@ paths: tags: - has_one - orders + /refunds/{refundId}/attachments: + get: + description: Retrieve the attachments associated to the refund + operationId: GET/refundId/attachments + parameters: + - description: The resource's id + explode: false + in: path + name: refundId + required: true + schema: {} + style: simple + responses: + "200": + description: The attachments associated to the refund + summary: Retrieve the attachments associated to the refund + tags: + - has_many + - attachments + /refunds/{refundId}/events: + get: + description: Retrieve the events associated to the refund + operationId: GET/refundId/events + parameters: + - description: The resource's id + explode: false + in: path + name: refundId + required: true + schema: {} + style: simple + responses: + "200": + description: The events associated to the refund + summary: Retrieve the events associated to the refund + tags: + - has_many + - events + /refunds/{refundId}/versions: + get: + description: Retrieve the versions associated to the refund + operationId: GET/refundId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: refundId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the refund + summary: Retrieve the versions associated to the refund + tags: + - has_many + - versions /refunds/{refundId}/reference_capture: get: description: Retrieve the reference capture associated to the refund @@ -12326,10 +16128,10 @@ paths: tags: - has_one - captures - /refunds/{refundId}/events: + /refunds/{refundId}/return: get: - description: Retrieve the events associated to the refund - operationId: GET/refundId/events + description: Retrieve the return associated to the refund + operationId: GET/refundId/return parameters: - description: The resource's id explode: false @@ -12340,11 +16142,159 @@ paths: style: simple responses: "200": - description: The events associated to the refund - summary: Retrieve the events associated to the refund + description: The return associated to the refund + summary: Retrieve the return associated to the refund + tags: + - has_one + - returns + /reserved_stocks: + get: + description: List all reserved stocks + operationId: GET/reserved_stocks + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_reserved_stocks_200_response' + description: A list of reserved stock objects + summary: List all reserved stocks + tags: + - reserved_stocks + /reserved_stocks/{reservedStockId}: + get: + description: Retrieve a reserved stock + operationId: GET/reserved_stocks/reservedStockId + parameters: + - description: The resource's id + explode: false + in: path + name: reservedStockId + required: true + schema: {} + style: simple + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_reserved_stocks_reservedStockId_200_response' + description: The reserved stock object + summary: Retrieve a reserved stock + tags: + - reserved_stocks + /reserved_stocks/{reservedStockId}/stock_item: + get: + description: Retrieve the stock item associated to the reserved stock + operationId: GET/reservedStockId/stock_item + parameters: + - description: The resource's id + explode: false + in: path + name: reservedStockId + required: true + schema: {} + style: simple + responses: + "200": + description: The stock_item associated to the reserved stock + summary: Retrieve the stock item associated to the reserved stock + tags: + - has_one + - stock_items + /reserved_stocks/{reservedStockId}/sku: + get: + description: Retrieve the sku associated to the reserved stock + operationId: GET/reservedStockId/sku + parameters: + - description: The resource's id + explode: false + in: path + name: reservedStockId + required: true + schema: {} + style: simple + responses: + "200": + description: The sku associated to the reserved stock + summary: Retrieve the sku associated to the reserved stock + tags: + - has_one + - skus + /reserved_stocks/{reservedStockId}/stock_reservations: + get: + description: Retrieve the stock reservations associated to the reserved stock + operationId: GET/reservedStockId/stock_reservations + parameters: + - description: The resource's id + explode: false + in: path + name: reservedStockId + required: true + schema: {} + style: simple + responses: + "200": + description: The stock_reservations associated to the reserved stock + summary: Retrieve the stock reservations associated to the reserved stock tags: - has_many - - events + - stock_reservations + /reserved_stocks/{reservedStockId}/versions: + get: + description: Retrieve the versions associated to the reserved stock + operationId: GET/reservedStockId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: reservedStockId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the reserved stock + summary: Retrieve the versions associated to the reserved stock + tags: + - has_many + - versions + /resource_errors: + get: + description: List all resource errors + operationId: GET/resource_errors + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_resource_errors_200_response' + description: A list of resource error objects + summary: List all resource errors + tags: + - resource_errors + /resource_errors/{resourceErrorId}: + get: + description: Retrieve a resource error + operationId: GET/resource_errors/resourceErrorId + parameters: + - description: The resource's id + explode: false + in: path + name: resourceErrorId + required: true + schema: {} + style: simple + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_resource_errors_resourceErrorId_200_response' + description: The resource error object + summary: Retrieve a resource error + tags: + - resource_errors /return_line_items: get: description: List all return line items @@ -12676,6 +16626,44 @@ paths: tags: - has_one - addresses + /returns/{returnId}/reference_capture: + get: + description: Retrieve the reference capture associated to the return + operationId: GET/returnId/reference_capture + parameters: + - description: The resource's id + explode: false + in: path + name: returnId + required: true + schema: {} + style: simple + responses: + "200": + description: The reference_capture associated to the return + summary: Retrieve the reference capture associated to the return + tags: + - has_one + - captures + /returns/{returnId}/reference_refund: + get: + description: Retrieve the reference refund associated to the return + operationId: GET/returnId/reference_refund + parameters: + - description: The resource's id + explode: false + in: path + name: returnId + required: true + schema: {} + style: simple + responses: + "200": + description: The reference_refund associated to the return + summary: Retrieve the reference refund associated to the return + tags: + - has_one + - refunds /returns/{returnId}/return_line_items: get: description: Retrieve the return line items associated to the return @@ -12714,6 +16702,25 @@ paths: tags: - has_many - attachments + /returns/{returnId}/resource_errors: + get: + description: Retrieve the resource errors associated to the return + operationId: GET/returnId/resource_errors + parameters: + - description: The resource's id + explode: false + in: path + name: returnId + required: true + schema: {} + style: simple + responses: + "200": + description: The resource_errors associated to the return + summary: Retrieve the resource errors associated to the return + tags: + - has_many + - resource_errors /returns/{returnId}/events: get: description: Retrieve the events associated to the return @@ -12733,6 +16740,44 @@ paths: tags: - has_many - events + /returns/{returnId}/tags: + get: + description: Retrieve the tags associated to the return + operationId: GET/returnId/tags + parameters: + - description: The resource's id + explode: false + in: path + name: returnId + required: true + schema: {} + style: simple + responses: + "200": + description: The tags associated to the return + summary: Retrieve the tags associated to the return + tags: + - has_many + - tags + /returns/{returnId}/versions: + get: + description: Retrieve the versions associated to the return + operationId: GET/returnId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: returnId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the return + summary: Retrieve the versions associated to the return + tags: + - has_many + - versions /satispay_gateways: get: description: List all satispay gateways @@ -12851,6 +16896,25 @@ paths: tags: - has_many - payment_methods + /satispay_gateways/{satispayGatewayId}/versions: + get: + description: Retrieve the versions associated to the satispay gateway + operationId: GET/satispayGatewayId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: satispayGatewayId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the satispay gateway + summary: Retrieve the versions associated to the satispay gateway + tags: + - has_many + - versions /satispay_gateways/{satispayGatewayId}/satispay_payments: get: description: Retrieve the satispay payments associated to the satispay gateway @@ -13007,6 +17071,25 @@ paths: tags: - has_one - payment_gateways + /satispay_payments/{satispayPaymentId}/versions: + get: + description: Retrieve the versions associated to the satispay payment + operationId: GET/satispayPaymentId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: satispayPaymentId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the satispay payment + summary: Retrieve the versions associated to the satispay payment + tags: + - has_many + - versions /shipments: get: description: List all shipments @@ -13021,7 +17104,43 @@ paths: summary: List all shipments tags: - shipments + post: + description: Create a shipment + operationId: POST/shipments + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/shipmentCreate' + required: true + responses: + "201": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/POST_shipments_201_response' + description: The created shipment object + summary: Create a shipment + tags: + - shipments /shipments/{shipmentId}: + delete: + description: Delete a shipment + operationId: DELETE/shipments/shipmentId + parameters: + - description: The resource's id + explode: false + in: path + name: shipmentId + required: true + schema: {} + style: simple + responses: + "204": + description: No content + summary: Delete a shipment + tags: + - shipments get: description: Retrieve a shipment operationId: GET/shipments/shipmentId @@ -13108,6 +17227,25 @@ paths: tags: - has_one - shipping_categories + /shipments/{shipmentId}/inventory_stock_location: + get: + description: Retrieve the inventory stock location associated to the shipment + operationId: GET/shipmentId/inventory_stock_location + parameters: + - description: The resource's id + explode: false + in: path + name: shipmentId + required: true + schema: {} + style: simple + responses: + "200": + description: The inventory_stock_location associated to the shipment + summary: Retrieve the inventory stock location associated to the shipment + tags: + - has_one + - inventory_stock_locations /shipments/{shipmentId}/stock_location: get: description: Retrieve the stock location associated to the shipment @@ -13241,6 +17379,25 @@ paths: tags: - has_many - stock_transfers + /shipments/{shipmentId}/line_items: + get: + description: Retrieve the line items associated to the shipment + operationId: GET/shipmentId/line_items + parameters: + - description: The resource's id + explode: false + in: path + name: shipmentId + required: true + schema: {} + style: simple + responses: + "200": + description: The line_items associated to the shipment + summary: Retrieve the line items associated to the shipment + tags: + - has_many + - line_items /shipments/{shipmentId}/available_shipping_methods: get: description: Retrieve the available shipping methods associated to the shipment @@ -13336,6 +17493,44 @@ paths: tags: - has_many - events + /shipments/{shipmentId}/tags: + get: + description: Retrieve the tags associated to the shipment + operationId: GET/shipmentId/tags + parameters: + - description: The resource's id + explode: false + in: path + name: shipmentId + required: true + schema: {} + style: simple + responses: + "200": + description: The tags associated to the shipment + summary: Retrieve the tags associated to the shipment + tags: + - has_many + - tags + /shipments/{shipmentId}/versions: + get: + description: Retrieve the versions associated to the shipment + operationId: GET/shipmentId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: shipmentId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the shipment + summary: Retrieve the versions associated to the shipment + tags: + - has_many + - versions /shipping_categories: get: description: List all shipping categories @@ -13473,6 +17668,25 @@ paths: tags: - has_many - attachments + /shipping_categories/{shippingCategoryId}/versions: + get: + description: Retrieve the versions associated to the shipping category + operationId: GET/shippingCategoryId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: shippingCategoryId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the shipping category + summary: Retrieve the versions associated to the shipping category + tags: + - has_many + - versions /shipping_method_tiers: get: description: List all shipping method tiers @@ -13548,6 +17762,25 @@ paths: tags: - has_many - attachments + /shipping_method_tiers/{shippingMethodTierId}/versions: + get: + description: Retrieve the versions associated to the shipping method tier + operationId: GET/shippingMethodTierId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: shippingMethodTierId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the shipping method tier + summary: Retrieve the versions associated to the shipping method tier + tags: + - has_many + - versions /shipping_methods: get: description: List all shipping methods @@ -13802,6 +18035,25 @@ paths: tags: - has_many - attachments + /shipping_methods/{shippingMethodId}/versions: + get: + description: Retrieve the versions associated to the shipping method + operationId: GET/shippingMethodId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: shippingMethodId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the shipping method + summary: Retrieve the versions associated to the shipping method + tags: + - has_many + - versions /shipping_weight_tiers: get: description: List all shipping weight tiers @@ -13940,6 +18192,25 @@ paths: tags: - has_many - attachments + /shipping_weight_tiers/{shippingWeightTierId}/versions: + get: + description: Retrieve the versions associated to the shipping weight tier + operationId: GET/shippingWeightTierId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: shippingWeightTierId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the shipping weight tier + summary: Retrieve the versions associated to the shipping weight tier + tags: + - has_many + - versions /shipping_zones: get: description: List all shipping zones @@ -14058,6 +18329,25 @@ paths: tags: - has_many - attachments + /shipping_zones/{shippingZoneId}/versions: + get: + description: Retrieve the versions associated to the shipping zone + operationId: GET/shippingZoneId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: shippingZoneId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the shipping zone + summary: Retrieve the versions associated to the shipping zone + tags: + - has_many + - versions /sku_list_items: get: description: List all SKU list items @@ -14195,6 +18485,25 @@ paths: tags: - has_one - skus + /sku_list_items/{skuListItemId}/versions: + get: + description: Retrieve the versions associated to the SKU list item + operationId: GET/skuListItemId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: skuListItemId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the SKU list item + summary: Retrieve the versions associated to the SKU list item + tags: + - has_many + - versions /sku_list_promotion_rules: get: description: List all SKU list promotion rules @@ -14294,6 +18603,25 @@ paths: summary: Update a SKU list promotion rule tags: - sku_list_promotion_rules + /sku_list_promotion_rules/{skuListPromotionRuleId}/versions: + get: + description: Retrieve the versions associated to the SKU list promotion rule + operationId: GET/skuListPromotionRuleId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: skuListPromotionRuleId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the SKU list promotion rule + summary: Retrieve the versions associated to the SKU list promotion rule + tags: + - has_many + - versions /sku_list_promotion_rules/{skuListPromotionRuleId}/sku_list: get: description: Retrieve the sku list associated to the SKU list promotion rule @@ -14526,6 +18854,44 @@ paths: tags: - has_many - attachments + /sku_lists/{skuListId}/links: + get: + description: Retrieve the links associated to the SKU list + operationId: GET/skuListId/links + parameters: + - description: The resource's id + explode: false + in: path + name: skuListId + required: true + schema: {} + style: simple + responses: + "200": + description: The links associated to the SKU list + summary: Retrieve the links associated to the SKU list + tags: + - has_many + - links + /sku_lists/{skuListId}/versions: + get: + description: Retrieve the versions associated to the SKU list + operationId: GET/skuListId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: skuListId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the SKU list + summary: Retrieve the versions associated to the SKU list + tags: + - has_many + - versions /sku_options: get: description: List all SKU options @@ -14663,6 +19029,63 @@ paths: tags: - has_many - attachments + /sku_options/{skuOptionId}/events: + get: + description: Retrieve the events associated to the SKU option + operationId: GET/skuOptionId/events + parameters: + - description: The resource's id + explode: false + in: path + name: skuOptionId + required: true + schema: {} + style: simple + responses: + "200": + description: The events associated to the SKU option + summary: Retrieve the events associated to the SKU option + tags: + - has_many + - events + /sku_options/{skuOptionId}/tags: + get: + description: Retrieve the tags associated to the SKU option + operationId: GET/skuOptionId/tags + parameters: + - description: The resource's id + explode: false + in: path + name: skuOptionId + required: true + schema: {} + style: simple + responses: + "200": + description: The tags associated to the SKU option + summary: Retrieve the tags associated to the SKU option + tags: + - has_many + - tags + /sku_options/{skuOptionId}/versions: + get: + description: Retrieve the versions associated to the SKU option + operationId: GET/skuOptionId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: skuOptionId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the SKU option + summary: Retrieve the versions associated to the SKU option + tags: + - has_many + - versions /skus: get: description: List all SKUs @@ -14819,6 +19242,25 @@ paths: tags: - has_many - stock_items + /skus/{skuId}/stock_reservations: + get: + description: Retrieve the stock reservations associated to the SKU + operationId: GET/skuId/stock_reservations + parameters: + - description: The resource's id + explode: false + in: path + name: skuId + required: true + schema: {} + style: simple + responses: + "200": + description: The stock_reservations associated to the SKU + summary: Retrieve the stock reservations associated to the SKU + tags: + - has_many + - stock_reservations /skus/{skuId}/delivery_lead_times: get: description: Retrieve the delivery lead times associated to the SKU @@ -14857,6 +19299,44 @@ paths: tags: - has_many - sku_options + /skus/{skuId}/sku_list_items: + get: + description: Retrieve the sku list items associated to the SKU + operationId: GET/skuId/sku_list_items + parameters: + - description: The resource's id + explode: false + in: path + name: skuId + required: true + schema: {} + style: simple + responses: + "200": + description: The sku_list_items associated to the SKU + summary: Retrieve the sku list items associated to the SKU + tags: + - has_many + - sku_list_items + /skus/{skuId}/sku_lists: + get: + description: Retrieve the sku lists associated to the SKU + operationId: GET/skuId/sku_lists + parameters: + - description: The resource's id + explode: false + in: path + name: skuId + required: true + schema: {} + style: simple + responses: + "200": + description: The sku_lists associated to the SKU + summary: Retrieve the sku lists associated to the SKU + tags: + - has_many + - sku_lists /skus/{skuId}/attachments: get: description: Retrieve the attachments associated to the SKU @@ -14876,6 +19356,139 @@ paths: tags: - has_many - attachments + /skus/{skuId}/links: + get: + description: Retrieve the links associated to the SKU + operationId: GET/skuId/links + parameters: + - description: The resource's id + explode: false + in: path + name: skuId + required: true + schema: {} + style: simple + responses: + "200": + description: The links associated to the SKU + summary: Retrieve the links associated to the SKU + tags: + - has_many + - links + /skus/{skuId}/events: + get: + description: Retrieve the events associated to the SKU + operationId: GET/skuId/events + parameters: + - description: The resource's id + explode: false + in: path + name: skuId + required: true + schema: {} + style: simple + responses: + "200": + description: The events associated to the SKU + summary: Retrieve the events associated to the SKU + tags: + - has_many + - events + /skus/{skuId}/tags: + get: + description: Retrieve the tags associated to the SKU + operationId: GET/skuId/tags + parameters: + - description: The resource's id + explode: false + in: path + name: skuId + required: true + schema: {} + style: simple + responses: + "200": + description: The tags associated to the SKU + summary: Retrieve the tags associated to the SKU + tags: + - has_many + - tags + /skus/{skuId}/versions: + get: + description: Retrieve the versions associated to the SKU + operationId: GET/skuId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: skuId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the SKU + summary: Retrieve the versions associated to the SKU + tags: + - has_many + - versions + /skus/{skuId}/jwt_customer: + get: + description: Retrieve the jwt customer associated to the SKU + operationId: GET/skuId/jwt_customer + parameters: + - description: The resource's id + explode: false + in: path + name: skuId + required: true + schema: {} + style: simple + responses: + "200": + description: The jwt_customer associated to the SKU + summary: Retrieve the jwt customer associated to the SKU + tags: + - has_one + - customers + /skus/{skuId}/jwt_markets: + get: + description: Retrieve the jwt markets associated to the SKU + operationId: GET/skuId/jwt_markets + parameters: + - description: The resource's id + explode: false + in: path + name: skuId + required: true + schema: {} + style: simple + responses: + "200": + description: The jwt_markets associated to the SKU + summary: Retrieve the jwt markets associated to the SKU + tags: + - has_many + - markets + /skus/{skuId}/jwt_stock_locations: + get: + description: Retrieve the jwt stock locations associated to the SKU + operationId: GET/skuId/jwt_stock_locations + parameters: + - description: The resource's id + explode: false + in: path + name: skuId + required: true + schema: {} + style: simple + responses: + "200": + description: The jwt_stock_locations associated to the SKU + summary: Retrieve the jwt stock locations associated to the SKU + tags: + - has_many + - stock_locations /stock_items: get: description: List all stock items @@ -15013,6 +19626,44 @@ paths: tags: - has_one - skus + /stock_items/{stockItemId}/reserved_stock: + get: + description: Retrieve the reserved stock associated to the stock item + operationId: GET/stockItemId/reserved_stock + parameters: + - description: The resource's id + explode: false + in: path + name: stockItemId + required: true + schema: {} + style: simple + responses: + "200": + description: The reserved_stock associated to the stock item + summary: Retrieve the reserved stock associated to the stock item + tags: + - has_one + - reserved_stocks + /stock_items/{stockItemId}/stock_reservations: + get: + description: Retrieve the stock reservations associated to the stock item + operationId: GET/stockItemId/stock_reservations + parameters: + - description: The resource's id + explode: false + in: path + name: stockItemId + required: true + schema: {} + style: simple + responses: + "200": + description: The stock_reservations associated to the stock item + summary: Retrieve the stock reservations associated to the stock item + tags: + - has_many + - stock_reservations /stock_items/{stockItemId}/attachments: get: description: Retrieve the attachments associated to the stock item @@ -15032,6 +19683,25 @@ paths: tags: - has_many - attachments + /stock_items/{stockItemId}/versions: + get: + description: Retrieve the versions associated to the stock item + operationId: GET/stockItemId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: stockItemId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the stock item + summary: Retrieve the versions associated to the stock item + tags: + - has_many + - versions /stock_line_items: get: description: List all stock line items @@ -15046,7 +19716,43 @@ paths: summary: List all stock line items tags: - stock_line_items + post: + description: Create a stock line item + operationId: POST/stock_line_items + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/stockLineItemCreate' + required: true + responses: + "201": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/POST_stock_line_items_201_response' + description: The created stock line item object + summary: Create a stock line item + tags: + - stock_line_items /stock_line_items/{stockLineItemId}: + delete: + description: Delete a stock line item + operationId: DELETE/stock_line_items/stockLineItemId + parameters: + - description: The resource's id + explode: false + in: path + name: stockLineItemId + required: true + schema: {} + style: simple + responses: + "204": + description: No content + summary: Delete a stock line item + tags: + - stock_line_items get: description: Retrieve a stock line item operationId: GET/stock_line_items/stockLineItemId @@ -15068,6 +19774,33 @@ paths: summary: Retrieve a stock line item tags: - stock_line_items + patch: + description: Update a stock line item + operationId: PATCH/stock_line_items/stockLineItemId + parameters: + - description: The resource's id + explode: false + in: path + name: stockLineItemId + required: true + schema: {} + style: simple + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/stockLineItemUpdate' + required: true + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/PATCH_stock_line_items_stockLineItemId_200_response' + description: The updated stock line item object + summary: Update a stock line item + tags: + - stock_line_items /stock_line_items/{stockLineItemId}/shipment: get: description: Retrieve the shipment associated to the stock line item @@ -15125,6 +19858,63 @@ paths: tags: - has_one - stock_items + /stock_line_items/{stockLineItemId}/sku: + get: + description: Retrieve the sku associated to the stock line item + operationId: GET/stockLineItemId/sku + parameters: + - description: The resource's id + explode: false + in: path + name: stockLineItemId + required: true + schema: {} + style: simple + responses: + "200": + description: The sku associated to the stock line item + summary: Retrieve the sku associated to the stock line item + tags: + - has_one + - skus + /stock_line_items/{stockLineItemId}/stock_reservation: + get: + description: Retrieve the stock reservation associated to the stock line item + operationId: GET/stockLineItemId/stock_reservation + parameters: + - description: The resource's id + explode: false + in: path + name: stockLineItemId + required: true + schema: {} + style: simple + responses: + "200": + description: The stock_reservation associated to the stock line item + summary: Retrieve the stock reservation associated to the stock line item + tags: + - has_one + - stock_reservations + /stock_line_items/{stockLineItemId}/versions: + get: + description: Retrieve the versions associated to the stock line item + operationId: GET/stockLineItemId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: stockLineItemId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the stock line item + summary: Retrieve the versions associated to the stock line item + tags: + - has_many + - versions /stock_locations: get: description: List all stock locations @@ -15340,6 +20130,257 @@ paths: tags: - has_many - attachments + /stock_locations/{stockLocationId}/versions: + get: + description: Retrieve the versions associated to the stock location + operationId: GET/stockLocationId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: stockLocationId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the stock location + summary: Retrieve the versions associated to the stock location + tags: + - has_many + - versions + /stock_reservations: + get: + description: List all stock reservations + operationId: GET/stock_reservations + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_stock_reservations_200_response' + description: A list of stock reservation objects + summary: List all stock reservations + tags: + - stock_reservations + post: + description: Create a stock reservation + operationId: POST/stock_reservations + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/stockReservationCreate' + required: true + responses: + "201": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/POST_stock_reservations_201_response' + description: The created stock reservation object + summary: Create a stock reservation + tags: + - stock_reservations + /stock_reservations/{stockReservationId}: + delete: + description: Delete a stock reservation + operationId: DELETE/stock_reservations/stockReservationId + parameters: + - description: The resource's id + explode: false + in: path + name: stockReservationId + required: true + schema: {} + style: simple + responses: + "204": + description: No content + summary: Delete a stock reservation + tags: + - stock_reservations + get: + description: Retrieve a stock reservation + operationId: GET/stock_reservations/stockReservationId + parameters: + - description: The resource's id + explode: false + in: path + name: stockReservationId + required: true + schema: {} + style: simple + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_stock_reservations_stockReservationId_200_response' + description: The stock reservation object + summary: Retrieve a stock reservation + tags: + - stock_reservations + patch: + description: Update a stock reservation + operationId: PATCH/stock_reservations/stockReservationId + parameters: + - description: The resource's id + explode: false + in: path + name: stockReservationId + required: true + schema: {} + style: simple + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/stockReservationUpdate' + required: true + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/PATCH_stock_reservations_stockReservationId_200_response' + description: The updated stock reservation object + summary: Update a stock reservation + tags: + - stock_reservations + /stock_reservations/{stockReservationId}/line_item: + get: + description: Retrieve the line item associated to the stock reservation + operationId: GET/stockReservationId/line_item + parameters: + - description: The resource's id + explode: false + in: path + name: stockReservationId + required: true + schema: {} + style: simple + responses: + "200": + description: The line_item associated to the stock reservation + summary: Retrieve the line item associated to the stock reservation + tags: + - has_one + - line_items + /stock_reservations/{stockReservationId}/order: + get: + description: Retrieve the order associated to the stock reservation + operationId: GET/stockReservationId/order + parameters: + - description: The resource's id + explode: false + in: path + name: stockReservationId + required: true + schema: {} + style: simple + responses: + "200": + description: The order associated to the stock reservation + summary: Retrieve the order associated to the stock reservation + tags: + - has_one + - orders + /stock_reservations/{stockReservationId}/stock_line_item: + get: + description: Retrieve the stock line item associated to the stock reservation + operationId: GET/stockReservationId/stock_line_item + parameters: + - description: The resource's id + explode: false + in: path + name: stockReservationId + required: true + schema: {} + style: simple + responses: + "200": + description: The stock_line_item associated to the stock reservation + summary: Retrieve the stock line item associated to the stock reservation + tags: + - has_one + - stock_line_items + /stock_reservations/{stockReservationId}/stock_transfer: + get: + description: Retrieve the stock transfer associated to the stock reservation + operationId: GET/stockReservationId/stock_transfer + parameters: + - description: The resource's id + explode: false + in: path + name: stockReservationId + required: true + schema: {} + style: simple + responses: + "200": + description: The stock_transfer associated to the stock reservation + summary: Retrieve the stock transfer associated to the stock reservation + tags: + - has_one + - stock_transfers + /stock_reservations/{stockReservationId}/stock_item: + get: + description: Retrieve the stock item associated to the stock reservation + operationId: GET/stockReservationId/stock_item + parameters: + - description: The resource's id + explode: false + in: path + name: stockReservationId + required: true + schema: {} + style: simple + responses: + "200": + description: The stock_item associated to the stock reservation + summary: Retrieve the stock item associated to the stock reservation + tags: + - has_one + - stock_items + /stock_reservations/{stockReservationId}/reserved_stock: + get: + description: Retrieve the reserved stock associated to the stock reservation + operationId: GET/stockReservationId/reserved_stock + parameters: + - description: The resource's id + explode: false + in: path + name: stockReservationId + required: true + schema: {} + style: simple + responses: + "200": + description: The reserved_stock associated to the stock reservation + summary: Retrieve the reserved stock associated to the stock reservation + tags: + - has_one + - reserved_stocks + /stock_reservations/{stockReservationId}/sku: + get: + description: Retrieve the sku associated to the stock reservation + operationId: GET/stockReservationId/sku + parameters: + - description: The resource's id + explode: false + in: path + name: stockReservationId + required: true + schema: {} + style: simple + responses: + "200": + description: The sku associated to the stock reservation + summary: Retrieve the sku associated to the stock reservation + tags: + - has_one + - skus /stock_transfers: get: description: List all stock transfers @@ -15535,6 +20576,44 @@ paths: tags: - has_one - line_items + /stock_transfers/{stockTransferId}/stock_reservation: + get: + description: Retrieve the stock reservation associated to the stock transfer + operationId: GET/stockTransferId/stock_reservation + parameters: + - description: The resource's id + explode: false + in: path + name: stockTransferId + required: true + schema: {} + style: simple + responses: + "200": + description: The stock_reservation associated to the stock transfer + summary: Retrieve the stock reservation associated to the stock transfer + tags: + - has_one + - stock_reservations + /stock_transfers/{stockTransferId}/attachments: + get: + description: Retrieve the attachments associated to the stock transfer + operationId: GET/stockTransferId/attachments + parameters: + - description: The resource's id + explode: false + in: path + name: stockTransferId + required: true + schema: {} + style: simple + responses: + "200": + description: The attachments associated to the stock transfer + summary: Retrieve the attachments associated to the stock transfer + tags: + - has_many + - attachments /stock_transfers/{stockTransferId}/events: get: description: Retrieve the events associated to the stock transfer @@ -15554,6 +20633,25 @@ paths: tags: - has_many - events + /stock_transfers/{stockTransferId}/versions: + get: + description: Retrieve the versions associated to the stock transfer + operationId: GET/stockTransferId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: stockTransferId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the stock transfer + summary: Retrieve the versions associated to the stock transfer + tags: + - has_many + - versions /stripe_gateways: get: description: List all stripe gateways @@ -15672,6 +20770,25 @@ paths: tags: - has_many - payment_methods + /stripe_gateways/{stripeGatewayId}/versions: + get: + description: Retrieve the versions associated to the stripe gateway + operationId: GET/stripeGatewayId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: stripeGatewayId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the stripe gateway + summary: Retrieve the versions associated to the stripe gateway + tags: + - has_many + - versions /stripe_gateways/{stripeGatewayId}/stripe_payments: get: description: Retrieve the stripe payments associated to the stripe gateway @@ -15828,6 +20945,25 @@ paths: tags: - has_one - payment_gateways + /stripe_payments/{stripePaymentId}/versions: + get: + description: Retrieve the versions associated to the stripe payment + operationId: GET/stripePaymentId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: stripePaymentId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the stripe payment + summary: Retrieve the versions associated to the stripe payment + tags: + - has_many + - versions /subscription_models: get: description: List all subscription models @@ -15985,6 +21121,105 @@ paths: tags: - has_many - attachments + /tags: + get: + description: List all tags + operationId: GET/tags + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_tags_200_response' + description: A list of tag objects + summary: List all tags + tags: + - tags + post: + description: Create a tag + operationId: POST/tags + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/tagCreate' + required: true + responses: + "201": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/POST_tags_201_response' + description: The created tag object + summary: Create a tag + tags: + - tags + /tags/{tagId}: + delete: + description: Delete a tag + operationId: DELETE/tags/tagId + parameters: + - description: The resource's id + explode: false + in: path + name: tagId + required: true + schema: {} + style: simple + responses: + "204": + description: No content + summary: Delete a tag + tags: + - tags + get: + description: Retrieve a tag + operationId: GET/tags/tagId + parameters: + - description: The resource's id + explode: false + in: path + name: tagId + required: true + schema: {} + style: simple + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_tags_tagId_200_response' + description: The tag object + summary: Retrieve a tag + tags: + - tags + patch: + description: Update a tag + operationId: PATCH/tags/tagId + parameters: + - description: The resource's id + explode: false + in: path + name: tagId + required: true + schema: {} + style: simple + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/tagUpdate' + required: true + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/PATCH_tags_tagId_200_response' + description: The updated tag object + summary: Update a tag + tags: + - tags /tax_calculators: get: description: List all tax calculators @@ -16059,6 +21294,25 @@ paths: tags: - has_many - attachments + /tax_calculators/{taxCalculatorId}/versions: + get: + description: Retrieve the versions associated to the tax calculator + operationId: GET/taxCalculatorId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: taxCalculatorId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the tax calculator + summary: Retrieve the versions associated to the tax calculator + tags: + - has_many + - versions /tax_categories: get: description: List all tax categories @@ -16196,6 +21450,25 @@ paths: tags: - has_many - attachments + /tax_categories/{taxCategoryId}/versions: + get: + description: Retrieve the versions associated to the tax category + operationId: GET/taxCategoryId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: taxCategoryId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the tax category + summary: Retrieve the versions associated to the tax category + tags: + - has_many + - versions /tax_rules: get: description: List all tax rules @@ -16314,6 +21587,25 @@ paths: tags: - has_one - manual_tax_calculators + /tax_rules/{taxRuleId}/versions: + get: + description: Retrieve the versions associated to the tax rule + operationId: GET/taxRuleId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: taxRuleId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the tax rule + summary: Retrieve the versions associated to the tax rule + tags: + - has_many + - versions /taxjar_accounts: get: description: List all taxjar accounts @@ -16451,6 +21743,25 @@ paths: tags: - has_many - attachments + /taxjar_accounts/{taxjarAccountId}/versions: + get: + description: Retrieve the versions associated to the taxjar account + operationId: GET/taxjarAccountId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: taxjarAccountId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the taxjar account + summary: Retrieve the versions associated to the taxjar account + tags: + - has_many + - versions /taxjar_accounts/{taxjarAccountId}/tax_categories: get: description: Retrieve the tax categories associated to the taxjar account @@ -16525,6 +21836,99 @@ paths: tags: - has_one - orders + /transactions/{transactionId}/attachments: + get: + description: Retrieve the attachments associated to the transaction + operationId: GET/transactionId/attachments + parameters: + - description: The resource's id + explode: false + in: path + name: transactionId + required: true + schema: {} + style: simple + responses: + "200": + description: The attachments associated to the transaction + summary: Retrieve the attachments associated to the transaction + tags: + - has_many + - attachments + /transactions/{transactionId}/events: + get: + description: Retrieve the events associated to the transaction + operationId: GET/transactionId/events + parameters: + - description: The resource's id + explode: false + in: path + name: transactionId + required: true + schema: {} + style: simple + responses: + "200": + description: The events associated to the transaction + summary: Retrieve the events associated to the transaction + tags: + - has_many + - events + /transactions/{transactionId}/versions: + get: + description: Retrieve the versions associated to the transaction + operationId: GET/transactionId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: transactionId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the transaction + summary: Retrieve the versions associated to the transaction + tags: + - has_many + - versions + /versions: + get: + description: List all versions + operationId: GET/versions + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_versions_200_response' + description: A list of version objects + summary: List all versions + tags: + - versions + /versions/{versionId}: + get: + description: Retrieve a version + operationId: GET/versions/versionId + parameters: + - description: The resource's id + explode: false + in: path + name: versionId + required: true + schema: {} + style: simple + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/GET_versions_versionId_200_response' + description: The version object + summary: Retrieve a version + tags: + - versions /voids: get: description: List all voids @@ -16561,6 +21965,33 @@ paths: summary: Retrieve a void tags: - voids + patch: + description: Update a void + operationId: PATCH/voids/voidId + parameters: + - description: The resource's id + explode: false + in: path + name: voidId + required: true + schema: {} + style: simple + requestBody: + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/voidUpdate' + required: true + responses: + "200": + content: + application/vnd.api+json: + schema: + $ref: '#/components/schemas/PATCH_voids_voidId_200_response' + description: The updated void object + summary: Update a void + tags: + - voids /voids/{voidId}/order: get: description: Retrieve the order associated to the void @@ -16580,10 +22011,10 @@ paths: tags: - has_one - orders - /voids/{voidId}/reference_authorization: + /voids/{voidId}/attachments: get: - description: Retrieve the reference authorization associated to the void - operationId: GET/voidId/reference_authorization + description: Retrieve the attachments associated to the void + operationId: GET/voidId/attachments parameters: - description: The resource's id explode: false @@ -16594,11 +22025,11 @@ paths: style: simple responses: "200": - description: The reference_authorization associated to the void - summary: Retrieve the reference authorization associated to the void + description: The attachments associated to the void + summary: Retrieve the attachments associated to the void tags: - - has_one - - authorizations + - has_many + - attachments /voids/{voidId}/events: get: description: Retrieve the events associated to the void @@ -16618,6 +22049,44 @@ paths: tags: - has_many - events + /voids/{voidId}/versions: + get: + description: Retrieve the versions associated to the void + operationId: GET/voidId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: voidId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the void + summary: Retrieve the versions associated to the void + tags: + - has_many + - versions + /voids/{voidId}/reference_authorization: + get: + description: Retrieve the reference authorization associated to the void + operationId: GET/voidId/reference_authorization + parameters: + - description: The resource's id + explode: false + in: path + name: voidId + required: true + schema: {} + style: simple + responses: + "200": + description: The reference_authorization associated to the void + summary: Retrieve the reference authorization associated to the void + tags: + - has_one + - authorizations /webhooks: get: description: List all webhooks @@ -16736,6 +22205,25 @@ paths: tags: - has_many - event_callbacks + /webhooks/{webhookId}/versions: + get: + description: Retrieve the versions associated to the webhook + operationId: GET/webhookId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: webhookId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the webhook + summary: Retrieve the versions associated to the webhook + tags: + - has_many + - versions /wire_transfers: get: description: List all wire transfers @@ -16854,6 +22342,25 @@ paths: tags: - has_one - orders + /wire_transfers/{wireTransferId}/versions: + get: + description: Retrieve the versions associated to the wire transfer + operationId: GET/wireTransferId/versions + parameters: + - description: The resource's id + explode: false + in: path + name: wireTransferId + required: true + schema: {} + style: simple + responses: + "200": + description: The versions associated to the wire transfer + summary: Retrieve the versions associated to the wire transfer + tags: + - has_many + - versions components: schemas: address: @@ -17078,6 +22585,22 @@ components: $ref: '#/components/schemas/bundleUpdate_data' required: - data + buyXPayYPromotion: + properties: + data: + $ref: '#/components/schemas/buyXPayYPromotion_data' + buyXPayYPromotionCreate: + properties: + data: + $ref: '#/components/schemas/buyXPayYPromotionCreate_data' + required: + - data + buyXPayYPromotionUpdate: + properties: + data: + $ref: '#/components/schemas/buyXPayYPromotionUpdate_data' + required: + - data capture: properties: data: @@ -17092,6 +22615,18 @@ components: properties: data: $ref: '#/components/schemas/carrierAccount_data' + carrierAccountCreate: + properties: + data: + $ref: '#/components/schemas/carrierAccountCreate_data' + required: + - data + carrierAccountUpdate: + properties: + data: + $ref: '#/components/schemas/carrierAccountUpdate_data' + required: + - data checkoutComGateway: properties: data: @@ -17134,6 +22669,12 @@ components: $ref: '#/components/schemas/cleanupCreate_data' required: - data + cleanupUpdate: + properties: + data: + $ref: '#/components/schemas/cleanupUpdate_data' + required: + - data couponCodesPromotionRule: properties: data: @@ -17182,6 +22723,22 @@ components: $ref: '#/components/schemas/couponUpdate_data' required: - data + customPromotionRule: + properties: + data: + $ref: '#/components/schemas/customPromotionRule_data' + customPromotionRuleCreate: + properties: + data: + $ref: '#/components/schemas/customPromotionRuleCreate_data' + required: + - data + customPromotionRuleUpdate: + properties: + data: + $ref: '#/components/schemas/customPromotionRuleUpdate_data' + required: + - data customerAddress: properties: data: @@ -17302,6 +22859,12 @@ components: properties: data: $ref: '#/components/schemas/event_data' + eventUpdate: + properties: + data: + $ref: '#/components/schemas/eventUpdate_data' + required: + - data export: properties: data: @@ -17312,6 +22875,12 @@ components: $ref: '#/components/schemas/exportCreate_data' required: - data + exportUpdate: + properties: + data: + $ref: '#/components/schemas/exportUpdate_data' + required: + - data externalGateway: properties: data: @@ -17408,6 +22977,22 @@ components: $ref: '#/components/schemas/fixedPricePromotionUpdate_data' required: - data + flexPromotion: + properties: + data: + $ref: '#/components/schemas/flexPromotion_data' + flexPromotionCreate: + properties: + data: + $ref: '#/components/schemas/flexPromotionCreate_data' + required: + - data + flexPromotionUpdate: + properties: + data: + $ref: '#/components/schemas/flexPromotionUpdate_data' + required: + - data freeGiftPromotion: properties: data: @@ -17502,6 +23087,12 @@ components: $ref: '#/components/schemas/importCreate_data' required: - data + importUpdate: + properties: + data: + $ref: '#/components/schemas/importUpdate_data' + required: + - data inStockSubscription: properties: data: @@ -17630,6 +23221,22 @@ components: $ref: '#/components/schemas/lineItemUpdate_data' required: - data + link: + properties: + data: + $ref: '#/components/schemas/link_data' + linkCreate: + properties: + data: + $ref: '#/components/schemas/linkCreate_data' + required: + - data + linkUpdate: + properties: + data: + $ref: '#/components/schemas/linkUpdate_data' + required: + - data manualGateway: properties: data: @@ -17762,10 +23369,6 @@ components: $ref: '#/components/schemas/orderSubscriptionUpdate_data' required: - data - orderValidationRule: - properties: - data: - $ref: '#/components/schemas/orderValidationRule_data' order: properties: data: @@ -17854,6 +23457,22 @@ components: $ref: '#/components/schemas/paymentMethodUpdate_data' required: - data + paymentOption: + properties: + data: + $ref: '#/components/schemas/paymentOption_data' + paymentOptionCreate: + properties: + data: + $ref: '#/components/schemas/paymentOptionCreate_data' + required: + - data + paymentOptionUpdate: + properties: + data: + $ref: '#/components/schemas/paymentOptionUpdate_data' + required: + - data paypalGateway: properties: data: @@ -17918,6 +23537,22 @@ components: $ref: '#/components/schemas/priceFrequencyTierUpdate_data' required: - data + priceListScheduler: + properties: + data: + $ref: '#/components/schemas/priceListScheduler_data' + priceListSchedulerCreate: + properties: + data: + $ref: '#/components/schemas/priceListSchedulerCreate_data' + required: + - data + priceListSchedulerUpdate: + properties: + data: + $ref: '#/components/schemas/priceListSchedulerUpdate_data' + required: + - data priceList: properties: data: @@ -17998,6 +23633,20 @@ components: properties: data: $ref: '#/components/schemas/refund_data' + refundUpdate: + properties: + data: + $ref: '#/components/schemas/refundUpdate_data' + required: + - data + reservedStock: + properties: + data: + $ref: '#/components/schemas/reservedStock_data' + resourceError: + properties: + data: + $ref: '#/components/schemas/resourceError_data' returnLineItem: properties: data: @@ -18066,6 +23715,12 @@ components: properties: data: $ref: '#/components/schemas/shipment_data' + shipmentCreate: + properties: + data: + $ref: '#/components/schemas/shipmentCreate_data' + required: + - data shipmentUpdate: properties: data: @@ -18240,6 +23895,18 @@ components: properties: data: $ref: '#/components/schemas/stockLineItem_data' + stockLineItemCreate: + properties: + data: + $ref: '#/components/schemas/stockLineItemCreate_data' + required: + - data + stockLineItemUpdate: + properties: + data: + $ref: '#/components/schemas/stockLineItemUpdate_data' + required: + - data stockLocation: properties: data: @@ -18256,6 +23923,22 @@ components: $ref: '#/components/schemas/stockLocationUpdate_data' required: - data + stockReservation: + properties: + data: + $ref: '#/components/schemas/stockReservation_data' + stockReservationCreate: + properties: + data: + $ref: '#/components/schemas/stockReservationCreate_data' + required: + - data + stockReservationUpdate: + properties: + data: + $ref: '#/components/schemas/stockReservationUpdate_data' + required: + - data stockTransfer: properties: data: @@ -18320,6 +24003,22 @@ components: $ref: '#/components/schemas/subscriptionModelUpdate_data' required: - data + tag: + properties: + data: + $ref: '#/components/schemas/tag_data' + tagCreate: + properties: + data: + $ref: '#/components/schemas/tagCreate_data' + required: + - data + tagUpdate: + properties: + data: + $ref: '#/components/schemas/tagUpdate_data' + required: + - data taxCalculator: properties: data: @@ -18376,10 +24075,20 @@ components: properties: data: $ref: '#/components/schemas/transaction_data' + version: + properties: + data: + $ref: '#/components/schemas/version_data' void: properties: data: $ref: '#/components/schemas/void_data' + voidUpdate: + properties: + data: + $ref: '#/components/schemas/voidUpdate_data' + required: + - data webhook: properties: data: @@ -18431,40 +24140,40 @@ components: attributes: properties: business: - description: Indicates if it's a business or a personal address + description: Indicates if it's a business or a personal address. example: false nullable: true first_name: - description: Address first name (personal) + description: Address first name (personal). example: John nullable: true last_name: - description: Address last name (personal) + description: Address last name (personal). example: Smith nullable: true company: - description: Address company name (business) + description: Address company name (business). example: The Red Brand Inc. nullable: true full_name: description: Company name (business) of first name and last name - (personal) + (personal). example: John Smith nullable: true line_1: - description: "Address line 1, i.e. Street address, PO Box" + description: "Address line 1, i.e. Street address, PO Box." example: 2883 Geraldine Lane nullable: false line_2: - description: "Address line 2, i.e. Apartment, Suite, Building" + description: "Address line 2, i.e. Apartment, Suite, Building." example: Apt.23 nullable: true city: - description: Address city + description: Address city. example: New York nullable: false zip_code: - description: ZIP or postal code + description: ZIP or postal code. example: "10013" nullable: true state_code: @@ -18473,7 +24182,7 @@ components: nullable: false country_code: description: The international 2-letter country code as defined - by the ISO 3166-1 standard + by the ISO 3166-1 standard. example: US nullable: false phone: @@ -18482,13 +24191,13 @@ components: nullable: false full_address: description: "Compact description of the address location, without\ - \ the full name" + \ the full name." example: "2883 Geraldine Lane Apt.23, 10013 New York NY (US) (212)\ \ 646-338-1228" nullable: true name: description: "Compact description of the address location, including\ - \ the full name" + \ the full name." example: "John Smith, 2883 Geraldine Lane Apt.23, 10013 New York\ \ NY (US) (212) 646-338-1228" nullable: true @@ -18516,29 +24225,29 @@ components: nullable: true is_localized: description: "Indicates if the latitude and logitude are present,\ - \ either geocoded or manually updated" + \ either geocoded or manually updated." example: true nullable: true is_geocoded: - description: Indicates if the address has been successfully geocoded + description: Indicates if the address has been successfully geocoded. example: true nullable: true provider_name: - description: The geocoder provider name (either Google or Bing) + description: The geocoder provider name (either Google or Bing). example: google nullable: true map_url: - description: The map url of the geocoded address (if geocoded) + description: The map url of the geocoded address (if geocoded). example: "https://www.google.com/maps/search/?api=1&query=40.6971494,-74.2598672" nullable: true static_map_url: description: The static map image url of the geocoded address - (if geocoded) + (if geocoded). example: "https://maps.googleapis.com/maps/api/staticmap?center=40.6971494,-74.2598672&size=640x320&zoom=15" nullable: true billing_info: description: "Customer's billing information (i.e. VAT number,\ - \ codice fiscale)" + \ codice fiscale)." example: VAT ID IT02382940977 nullable: true created_at: @@ -18558,7 +24267,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -18586,6 +24295,54 @@ components: - geocoder id: description: The resource ID + events: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource ID + tags: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - tags + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_addresses_201_response_data_links: properties: self: @@ -18593,35 +24350,35 @@ components: POST_addresses_201_response_data_attributes: properties: business: - description: Indicates if it's a business or a personal address + description: Indicates if it's a business or a personal address. example: false first_name: - description: Address first name (personal) + description: Address first name (personal). example: John last_name: - description: Address last name (personal) + description: Address last name (personal). example: Smith company: - description: Address company name (business) + description: Address company name (business). example: The Red Brand Inc. line_1: - description: "Address line 1, i.e. Street address, PO Box" + description: "Address line 1, i.e. Street address, PO Box." example: 2883 Geraldine Lane line_2: - description: "Address line 2, i.e. Apartment, Suite, Building" + description: "Address line 2, i.e. Apartment, Suite, Building." example: Apt.23 city: - description: Address city + description: Address city. example: New York zip_code: - description: ZIP or postal code + description: ZIP or postal code. example: "10013" state_code: description: "State, province or region code." example: NY country_code: description: The international 2-letter country code as defined by the ISO - 3166-1 standard + 3166-1 standard. example: US phone: description: Phone number (including extension). @@ -18645,7 +24402,7 @@ components: is attached to the order's market. example: -74.2598672 billing_info: - description: "Customer's billing information (i.e. VAT number, codice fiscale)" + description: "Customer's billing information (i.e. VAT number, codice fiscale)." example: VAT ID IT02382940977 reference: description: "A string that you can use to add any external identifier to\ @@ -18654,7 +24411,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -18688,10 +24445,58 @@ components: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_data' + POST_addresses_201_response_data_relationships_events_data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource ID + POST_addresses_201_response_data_relationships_events: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events_data' + POST_addresses_201_response_data_relationships_tags_data: + properties: + type: + description: The resource's type + enum: + - tags + id: + description: The resource ID + POST_addresses_201_response_data_relationships_tags: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags_data' + POST_addresses_201_response_data_relationships_versions_data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID + POST_addresses_201_response_data_relationships_versions: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions_data' POST_addresses_201_response_data_relationships: properties: geocoder: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_addresses_201_response_data: properties: id: @@ -18714,39 +24519,39 @@ components: GET_addresses_addressId_200_response_data_attributes: properties: business: - description: Indicates if it's a business or a personal address + description: Indicates if it's a business or a personal address. example: false nullable: true first_name: - description: Address first name (personal) + description: Address first name (personal). example: John nullable: true last_name: - description: Address last name (personal) + description: Address last name (personal). example: Smith nullable: true company: - description: Address company name (business) + description: Address company name (business). example: The Red Brand Inc. nullable: true full_name: - description: Company name (business) of first name and last name (personal) + description: Company name (business) of first name and last name (personal). example: John Smith nullable: true line_1: - description: "Address line 1, i.e. Street address, PO Box" + description: "Address line 1, i.e. Street address, PO Box." example: 2883 Geraldine Lane nullable: false line_2: - description: "Address line 2, i.e. Apartment, Suite, Building" + description: "Address line 2, i.e. Apartment, Suite, Building." example: Apt.23 nullable: true city: - description: Address city + description: Address city. example: New York nullable: false zip_code: - description: ZIP or postal code + description: ZIP or postal code. example: "10013" nullable: true state_code: @@ -18755,7 +24560,7 @@ components: nullable: false country_code: description: The international 2-letter country code as defined by the ISO - 3166-1 standard + 3166-1 standard. example: US nullable: false phone: @@ -18764,12 +24569,12 @@ components: nullable: false full_address: description: "Compact description of the address location, without the full\ - \ name" + \ name." example: "2883 Geraldine Lane Apt.23, 10013 New York NY (US) (212) 646-338-1228" nullable: true name: description: "Compact description of the address location, including the\ - \ full name" + \ full name." example: "John Smith, 2883 Geraldine Lane Apt.23, 10013 New York NY (US)\ \ (212) 646-338-1228" nullable: true @@ -18797,27 +24602,27 @@ components: nullable: true is_localized: description: "Indicates if the latitude and logitude are present, either\ - \ geocoded or manually updated" + \ geocoded or manually updated." example: true nullable: true is_geocoded: - description: Indicates if the address has been successfully geocoded + description: Indicates if the address has been successfully geocoded. example: true nullable: true provider_name: - description: The geocoder provider name (either Google or Bing) + description: The geocoder provider name (either Google or Bing). example: google nullable: true map_url: - description: The map url of the geocoded address (if geocoded) + description: The map url of the geocoded address (if geocoded). example: "https://www.google.com/maps/search/?api=1&query=40.6971494,-74.2598672" nullable: true static_map_url: - description: The static map image url of the geocoded address (if geocoded) + description: The static map image url of the geocoded address (if geocoded). example: "https://maps.googleapis.com/maps/api/staticmap?center=40.6971494,-74.2598672&size=640x320&zoom=15" nullable: true billing_info: - description: "Customer's billing information (i.e. VAT number, codice fiscale)" + description: "Customer's billing information (i.e. VAT number, codice fiscale)." example: VAT ID IT02382940977 nullable: true created_at: @@ -18836,7 +24641,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -18868,35 +24673,35 @@ components: PATCH_addresses_addressId_200_response_data_attributes: properties: business: - description: Indicates if it's a business or a personal address + description: Indicates if it's a business or a personal address. example: false nullable: false first_name: - description: Address first name (personal) + description: Address first name (personal). example: John nullable: true last_name: - description: Address last name (personal) + description: Address last name (personal). example: Smith nullable: true company: - description: Address company name (business) + description: Address company name (business). example: The Red Brand Inc. nullable: true line_1: - description: "Address line 1, i.e. Street address, PO Box" + description: "Address line 1, i.e. Street address, PO Box." example: 2883 Geraldine Lane nullable: false line_2: - description: "Address line 2, i.e. Apartment, Suite, Building" + description: "Address line 2, i.e. Apartment, Suite, Building." example: Apt.23 nullable: true city: - description: Address city + description: Address city. example: New York nullable: false zip_code: - description: ZIP or postal code + description: ZIP or postal code. example: "10013" nullable: true state_code: @@ -18905,7 +24710,7 @@ components: nullable: false country_code: description: The international 2-letter country code as defined by the ISO - 3166-1 standard + 3166-1 standard. example: US nullable: false phone: @@ -18935,7 +24740,7 @@ components: example: -74.2598672 nullable: true billing_info: - description: "Customer's billing information (i.e. VAT number, codice fiscale)" + description: "Customer's billing information (i.e. VAT number, codice fiscale)." example: VAT ID IT02382940977 nullable: true reference: @@ -18946,7 +24751,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -18994,7 +24799,7 @@ components: attributes: properties: name: - description: The adjustment name + description: The adjustment name. example: Additional service nullable: false currency_code: @@ -19014,6 +24819,11 @@ components: description: "The adjustment amount, formatted." example: "€15,00" nullable: false + distribute_discount: + description: Indicates if negative adjustment amount is distributed + for tax calculation. + example: true + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -19031,7 +24841,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -19042,11 +24852,27 @@ components: foo: bar nullable: true relationships: - properties: {} + properties: + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_adjustments_201_response_data_attributes: properties: name: - description: The adjustment name + description: The adjustment name. example: Additional service currency_code: description: The international 3-letter currency code as defined by the @@ -19055,6 +24881,10 @@ components: amount_cents: description: "The adjustment amount, in cents." example: 1500 + distribute_discount: + description: Indicates if negative adjustment amount is distributed for + tax calculation. + example: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -19062,7 +24892,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -19074,6 +24904,10 @@ components: - amount_cents - currency_code - name + POST_adjustments_201_response_data_relationships: + properties: + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_adjustments_201_response_data: properties: id: @@ -19088,7 +24922,7 @@ components: attributes: $ref: '#/components/schemas/POST_adjustments_201_response_data_attributes' relationships: - properties: {} + $ref: '#/components/schemas/POST_adjustments_201_response_data_relationships' POST_adjustments_201_response: properties: data: @@ -19096,7 +24930,7 @@ components: GET_adjustments_adjustmentId_200_response_data_attributes: properties: name: - description: The adjustment name + description: The adjustment name. example: Additional service nullable: false currency_code: @@ -19116,6 +24950,11 @@ components: description: "The adjustment amount, formatted." example: "€15,00" nullable: false + distribute_discount: + description: Indicates if negative adjustment amount is distributed for + tax calculation. + example: true + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -19132,7 +24971,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -19156,7 +24995,7 @@ components: attributes: $ref: '#/components/schemas/GET_adjustments_adjustmentId_200_response_data_attributes' relationships: - properties: {} + $ref: '#/components/schemas/POST_adjustments_201_response_data_relationships' GET_adjustments_adjustmentId_200_response: properties: data: @@ -19164,7 +25003,7 @@ components: PATCH_adjustments_adjustmentId_200_response_data_attributes: properties: name: - description: The adjustment name + description: The adjustment name. example: Additional service nullable: false currency_code: @@ -19176,6 +25015,11 @@ components: description: "The adjustment amount, in cents." example: 1500 nullable: false + distribute_discount: + description: Indicates if negative adjustment amount is distributed for + tax calculation. + example: true + nullable: false reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -19184,7 +25028,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -19208,7 +25052,7 @@ components: attributes: $ref: '#/components/schemas/PATCH_adjustments_adjustmentId_200_response_data_attributes' relationships: - properties: {} + $ref: '#/components/schemas/POST_adjustments_201_response_data_relationships' PATCH_adjustments_adjustmentId_200_response: properties: data: @@ -19252,7 +25096,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -19266,9 +25110,19 @@ components: description: The prefix of the endpoint used for live transactions. example: 1797a841fbb37ca7-AdyenDemo nullable: false + api_version: + description: "The checkout API version, supported range is from\ + \ 66 to 71, default is 71." + example: 71 + nullable: true async_api: - description: Indicates if the gateway will leverage on the Adyen - notification webhooks. + description: "Indicates if the gateway will leverage on the Adyen\ + \ notification webhooks, using latest API version." + example: true + nullable: true + native_customer_payment_sources: + description: Indicates if the gateway will use the native customer + payment sources. example: true nullable: true webhook_endpoint_secret: @@ -19298,6 +25152,22 @@ components: - payment_methods id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID adyen_payments: properties: links: @@ -19326,7 +25196,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -19347,12 +25217,16 @@ components: description: The prefix of the endpoint used for live transactions. example: 1797a841fbb37ca7-AdyenDemo api_version: - description: "The checkout API version, supported range is from 66 to 68,\ - \ default is 68." - example: "68" + description: "The checkout API version, supported range is from 66 to 71,\ + \ default is 71." + example: 71 async_api: - description: Indicates if the gateway will leverage on the Adyen notification - webhooks. + description: "Indicates if the gateway will leverage on the Adyen notification\ + \ webhooks, using latest API version." + example: true + native_customer_payment_sources: + description: Indicates if the gateway will use the native customer payment + sources. example: true webhook_endpoint_secret: description: "The gateway webhook endpoint secret, generated by Adyen customer\ @@ -19395,6 +25269,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/POST_adyen_gateways_201_response_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' adyen_payments: $ref: '#/components/schemas/POST_adyen_gateways_201_response_data_relationships_adyen_payments' POST_adyen_gateways_201_response_data: @@ -19438,7 +25314,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -19452,9 +25328,19 @@ components: description: The prefix of the endpoint used for live transactions. example: 1797a841fbb37ca7-AdyenDemo nullable: false + api_version: + description: "The checkout API version, supported range is from 66 to 71,\ + \ default is 71." + example: 71 + nullable: true async_api: - description: Indicates if the gateway will leverage on the Adyen notification - webhooks. + description: "Indicates if the gateway will leverage on the Adyen notification\ + \ webhooks, using latest API version." + example: true + nullable: true + native_customer_payment_sources: + description: Indicates if the gateway will use the native customer payment + sources. example: true nullable: true webhook_endpoint_secret: @@ -19499,7 +25385,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -19523,12 +25409,18 @@ components: example: 1797a841fbb37ca7-AdyenDemo nullable: false api_version: - description: "The checkout API version, supported range is from 66 to 68,\ - \ default is 68." - example: "68" + description: "The checkout API version, supported range is from 66 to 71,\ + \ default is 71." + example: 71 + nullable: true async_api: - description: Indicates if the gateway will leverage on the Adyen notification - webhooks. + description: "Indicates if the gateway will leverage on the Adyen notification\ + \ webhooks, using latest API version." + example: true + nullable: false + native_customer_payment_sources: + description: Indicates if the gateway will use the native customer payment + sources. example: true nullable: false webhook_endpoint_secret: @@ -19607,7 +25499,7 @@ components: nullable: true payment_instrument: description: Information about the payment instrument used in - the transaction + the transaction. example: issuer: cl bank card_type: visa @@ -19629,7 +25521,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -19673,6 +25565,22 @@ components: - payment_gateway id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_adyen_payments_201_response_data_attributes: properties: reference: @@ -19682,7 +25590,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -19724,6 +25632,8 @@ components: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' payment_gateway: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_payment_gateway' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_adyen_payments_201_response_data: properties: id: @@ -19777,7 +25687,7 @@ components: example: false nullable: true payment_instrument: - description: Information about the payment instrument used in the transaction + description: Information about the payment instrument used in the transaction. example: issuer: cl bank card_type: visa @@ -19798,7 +25708,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -19849,6 +25759,7 @@ components: description: Send this attribute if you want to send additional details the payment request. example: true + nullable: false reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -19857,7 +25768,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -19925,7 +25836,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -20003,7 +25914,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -20050,7 +25961,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -20128,7 +26039,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -20180,7 +26091,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -20228,9 +26139,18 @@ components: attributes: properties: number: - description: "The transaction number, auto generated" + description: "The transaction number, auto generated." example: 42/T/001 nullable: false + type: + description: The transaction's type. + enum: + - authorizations + - voids + - captures + - refunds + example: authorizations + nullable: false currency_code: description: "The international 3-letter currency code as defined\ \ by the ISO 4217 standard, inherited from the associated order." @@ -20249,31 +26169,31 @@ components: example: "€15,00" nullable: false succeeded: - description: Indicates if the transaction is successful + description: Indicates if the transaction is successful. example: false nullable: false message: - description: The message returned by the payment gateway + description: The message returned by the payment gateway. example: Accepted nullable: true error_code: description: "The error code, if any, returned by the payment\ - \ gateway" + \ gateway." example: "00001" nullable: true error_detail: description: "The error detail, if any, returned by the payment\ - \ gateway" + \ gateway." example: Already settled nullable: true token: description: "The token identifying the transaction, returned\ - \ by the payment gateway" + \ by the payment gateway." example: xxxx-yyyy-zzzz nullable: true gateway_transaction_id: description: "The ID identifying the transaction, returned by\ - \ the payment gateway" + \ the payment gateway." example: xxxx-yyyy-zzzz nullable: true created_at: @@ -20293,7 +26213,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -20304,24 +26224,24 @@ components: foo: bar nullable: true cvv_code: - description: The CVV code returned by the payment gateway + description: The CVV code returned by the payment gateway. example: "000" nullable: true cvv_message: - description: The CVV message returned by the payment gateway + description: The CVV message returned by the payment gateway. example: validated nullable: true avs_code: - description: The AVS code returned by the payment gateway + description: The AVS code returned by the payment gateway. example: "000" nullable: true avs_message: - description: The AVS message returned by the payment gateway + description: The AVS message returned by the payment gateway. example: validated nullable: true fraud_review: description: "The fraud review message, if any, returned by the\ - \ payment gateway" + \ payment gateway." example: passed nullable: true capture_amount_cents: @@ -20378,7 +26298,7 @@ components: - order id: description: The resource ID - captures: + attachments: properties: links: properties: @@ -20391,10 +26311,10 @@ components: type: description: The resource's type enum: - - captures + - attachments id: description: The resource ID - voids: + events: properties: links: properties: @@ -20407,10 +26327,10 @@ components: type: description: The resource's type enum: - - voids + - events id: description: The resource ID - events: + versions: properties: links: properties: @@ -20423,15 +26343,56 @@ components: type: description: The resource's type enum: - - events + - versions + id: + description: The resource ID + captures: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - captures + id: + description: The resource ID + voids: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - voids id: description: The resource ID GET_authorizations_authorizationId_200_response_data_attributes: properties: number: - description: "The transaction number, auto generated" + description: "The transaction number, auto generated." example: 42/T/001 nullable: false + type: + description: The transaction's type. + enum: + - authorizations + - voids + - captures + - refunds + example: authorizations + nullable: false currency_code: description: "The international 3-letter currency code as defined by the\ \ ISO 4217 standard, inherited from the associated order." @@ -20450,29 +26411,29 @@ components: example: "€15,00" nullable: false succeeded: - description: Indicates if the transaction is successful + description: Indicates if the transaction is successful. example: false nullable: false message: - description: The message returned by the payment gateway + description: The message returned by the payment gateway. example: Accepted nullable: true error_code: - description: "The error code, if any, returned by the payment gateway" + description: "The error code, if any, returned by the payment gateway." example: "00001" nullable: true error_detail: - description: "The error detail, if any, returned by the payment gateway" + description: "The error detail, if any, returned by the payment gateway." example: Already settled nullable: true token: description: "The token identifying the transaction, returned by the payment\ - \ gateway" + \ gateway." example: xxxx-yyyy-zzzz nullable: true gateway_transaction_id: description: "The ID identifying the transaction, returned by the payment\ - \ gateway" + \ gateway." example: xxxx-yyyy-zzzz nullable: true created_at: @@ -20491,7 +26452,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -20502,24 +26463,24 @@ components: foo: bar nullable: true cvv_code: - description: The CVV code returned by the payment gateway + description: The CVV code returned by the payment gateway. example: "000" nullable: true cvv_message: - description: The CVV message returned by the payment gateway + description: The CVV message returned by the payment gateway. example: validated nullable: true avs_code: - description: The AVS code returned by the payment gateway + description: The AVS code returned by the payment gateway. example: "000" nullable: true avs_message: - description: The AVS message returned by the payment gateway + description: The AVS message returned by the payment gateway. example: validated nullable: true fraud_review: description: "The fraud review message, if any, returned by the payment\ - \ gateway" + \ gateway." example: passed nullable: true capture_amount_cents: @@ -20558,58 +26519,62 @@ components: description: "The balance to be voided, formatted." example: "€15,00" nullable: true - GET_authorizations_authorizationId_200_response_data_relationships_captures_data: + GET_authorizations_authorizationId_200_response_data_relationships_attachments_data: properties: type: description: The resource's type enum: - - captures + - attachments id: description: The resource ID - GET_authorizations_authorizationId_200_response_data_relationships_captures: + GET_authorizations_authorizationId_200_response_data_relationships_attachments: properties: links: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_captures_data' - GET_authorizations_authorizationId_200_response_data_relationships_voids_data: + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments_data' + GET_authorizations_authorizationId_200_response_data_relationships_captures_data: properties: type: description: The resource's type enum: - - voids + - captures id: description: The resource ID - GET_authorizations_authorizationId_200_response_data_relationships_voids: + GET_authorizations_authorizationId_200_response_data_relationships_captures: properties: links: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_voids_data' - GET_authorizations_authorizationId_200_response_data_relationships_events_data: + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_captures_data' + GET_authorizations_authorizationId_200_response_data_relationships_voids_data: properties: type: description: The resource's type enum: - - events + - voids id: description: The resource ID - GET_authorizations_authorizationId_200_response_data_relationships_events: + GET_authorizations_authorizationId_200_response_data_relationships_voids: properties: links: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events_data' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_voids_data' GET_authorizations_authorizationId_200_response_data_relationships: properties: order: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' + attachments: + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' captures: $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_captures' voids: $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_voids' - events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' GET_authorizations_authorizationId_200_response_data: properties: id: @@ -20631,6 +26596,15 @@ components: $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data' PATCH_authorizations_authorizationId_200_response_data_attributes: properties: + succeeded: + description: Indicates if the transaction is successful. + example: false + nullable: false + _forward: + description: Send this attribute if you want to forward a stuck transaction + to succeeded and update associated order states accordingly. + example: true + nullable: false reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -20639,7 +26613,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -20653,12 +26627,20 @@ components: description: Send this attribute if you want to create a capture for this authorization. example: true + nullable: false _capture_amount_cents: - description: "The associated capture amount, in cents." + description: Send this attribute as a value in cents if you want to overwrite + the amount to be captured. example: 500 _void: description: Send this attribute if you want to create a void for this authorization. example: true + nullable: false + _cancel: + description: Send this attribute if you want to void a succeeded authorization + of a pending order (which is left unpaid). + example: true + nullable: false PATCH_authorizations_authorizationId_200_response_data: properties: id: @@ -20700,6 +26682,15 @@ components: description: The tax calculator's internal name. example: Personal tax calculator nullable: false + type: + description: The tax calculator's type. + enum: + - avalara_accounts + - taxjar_accounts + - manual_tax_calculators + - external_tax_calculators + example: avalara_accounts + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -20717,7 +26708,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -20738,12 +26729,12 @@ components: commit_invoice: description: Indicates if the transaction will be recorded and visible on the Avalara website. - example: "true" + example: true nullable: true ddp: description: Indicates if the seller is responsible for paying/remitting the customs duty & import tax to the customs authorities. - example: "true" + example: true nullable: true relationships: properties: @@ -20779,6 +26770,22 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID tax_categories: properties: links: @@ -20795,6 +26802,22 @@ components: - tax_categories id: description: The resource ID + events: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource ID POST_avalara_accounts_201_response_data_attributes: properties: name: @@ -20807,7 +26830,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -20827,11 +26850,11 @@ components: commit_invoice: description: Indicates if the transaction will be recorded and visible on the Avalara website. - example: "true" + example: true ddp: description: Indicates if the seller is responsible for paying/remitting the customs duty & import tax to the customs authorities. - example: "true" + example: true required: - company_code - name @@ -20851,20 +26874,6 @@ components: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_markets_data' - POST_avalara_accounts_201_response_data_relationships_attachments_data: - properties: - type: - description: The resource's type - enum: - - attachments - id: - description: The resource ID - POST_avalara_accounts_201_response_data_relationships_attachments: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments_data' POST_avalara_accounts_201_response_data_relationships_tax_categories_data: properties: type: @@ -20884,9 +26893,13 @@ components: markets: $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_markets' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' tax_categories: $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_tax_categories' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' POST_avalara_accounts_201_response_data: properties: id: @@ -20912,6 +26925,15 @@ components: description: The tax calculator's internal name. example: Personal tax calculator nullable: false + type: + description: The tax calculator's type. + enum: + - avalara_accounts + - taxjar_accounts + - manual_tax_calculators + - external_tax_calculators + example: avalara_accounts + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -20928,7 +26950,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -20949,12 +26971,12 @@ components: commit_invoice: description: Indicates if the transaction will be recorded and visible on the Avalara website. - example: "true" + example: true nullable: true ddp: description: Indicates if the seller is responsible for paying/remitting the customs duty & import tax to the customs authorities. - example: "true" + example: true nullable: true GET_avalara_accounts_avalaraAccountId_200_response_data: properties: @@ -20989,7 +27011,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -21013,13 +27035,13 @@ components: commit_invoice: description: Indicates if the transaction will be recorded and visible on the Avalara website. - example: "true" - nullable: true + example: true + nullable: false ddp: description: Indicates if the seller is responsible for paying/remitting the customs duty & import tax to the customs authorities. - example: "true" - nullable: true + example: true + nullable: false PATCH_avalara_accounts_avalaraAccountId_200_response_data: properties: id: @@ -21078,7 +27100,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -21092,6 +27114,10 @@ components: description: The merchant login code. example: xxxx-yyyy-zzzz nullable: false + webhook_endpoint_url: + description: "The gateway webhook URL, generated automatically." + example: https://core.commercelayer.co/webhook_callbacks/axerve_gateways/xxxxx + nullable: true relationships: properties: payment_methods: @@ -21110,6 +27136,22 @@ components: - payment_methods id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID axerve_payments: properties: links: @@ -21138,7 +27180,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -21174,6 +27216,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/POST_adyen_gateways_201_response_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' axerve_payments: $ref: '#/components/schemas/POST_axerve_gateways_201_response_data_relationships_axerve_payments' POST_axerve_gateways_201_response_data: @@ -21217,7 +27261,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -21231,6 +27275,10 @@ components: description: The merchant login code. example: xxxx-yyyy-zzzz nullable: false + webhook_endpoint_url: + description: "The gateway webhook URL, generated automatically." + example: https://core.commercelayer.co/webhook_callbacks/axerve_gateways/xxxxx + nullable: true GET_axerve_gateways_axerveGatewayId_200_response_data: properties: id: @@ -21264,7 +27312,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -21332,27 +27380,31 @@ components: example: foo: bar nullable: true + client_ip: + description: The IP adress of the client creating the payment. + example: 213.45.120.5 + nullable: true + buyer_details: + description: The details of the buyer creating the payment. + example: + cardHolder: + email: george.harrison@gmail.com + shippingAddress: + firstName: George + nullable: true + request_token: + description: "Requires the creation of a token to represent this\ + \ payment, mandatory to use customer's wallet and order subscriptions." + example: true + nullable: true mismatched_amounts: description: Indicates if the order current amount differs form the one of the associated authorization. example: false nullable: true - intent_amount_cents: - description: "The amount of the associated payment intent, in\ - \ cents." - example: 1000 - nullable: false - intent_amount_float: - description: "The amount of the associated payment intent, float." - example: 10.0 - nullable: true - formatted_intent_amount: - description: "The amount of the associated payment intent, formatted." - example: "€10,00" - nullable: true payment_instrument: description: Information about the payment instrument used in - the transaction + the transaction. example: issuer: cl bank card_type: visa @@ -21374,7 +27426,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -21390,12 +27442,28 @@ components: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' payment_gateway: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_payment_gateway' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_axerve_payments_201_response_data_attributes: properties: return_url: description: The URL where the payer is redirected after they approve the payment. example: https://yourdomain.com/thankyou + client_ip: + description: The IP adress of the client creating the payment. + example: 213.45.120.5 + buyer_details: + description: The details of the buyer creating the payment. + example: + cardHolder: + email: george.harrison@gmail.com + shippingAddress: + firstName: George + request_token: + description: "Requires the creation of a token to represent this payment,\ + \ mandatory to use customer's wallet and order subscriptions." + example: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -21403,7 +27471,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -21448,25 +27516,30 @@ components: example: foo: bar nullable: true + client_ip: + description: The IP adress of the client creating the payment. + example: 213.45.120.5 + nullable: true + buyer_details: + description: The details of the buyer creating the payment. + example: + cardHolder: + email: george.harrison@gmail.com + shippingAddress: + firstName: George + nullable: true + request_token: + description: "Requires the creation of a token to represent this payment,\ + \ mandatory to use customer's wallet and order subscriptions." + example: true + nullable: true mismatched_amounts: description: Indicates if the order current amount differs form the one of the associated authorization. example: false nullable: true - intent_amount_cents: - description: "The amount of the associated payment intent, in cents." - example: 1000 - nullable: false - intent_amount_float: - description: "The amount of the associated payment intent, float." - example: 10.0 - nullable: true - formatted_intent_amount: - description: "The amount of the associated payment intent, formatted." - example: "€10,00" - nullable: true payment_instrument: - description: Information about the payment instrument used in the transaction + description: Information about the payment instrument used in the transaction. example: issuer: cl bank card_type: visa @@ -21487,7 +27560,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -21527,6 +27600,7 @@ components: description: Send this attribute if you want to update the payment with fresh order data. example: true + nullable: false reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -21535,7 +27609,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -21582,6 +27656,12 @@ components: description: URL attributes: properties: + type: + description: The order validation rule's type. + enum: + - billing_info_validation_rules + example: billing_info_validation_rules + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -21599,7 +27679,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -21643,6 +27723,22 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_billing_info_validation_rules_201_response_data_relationships_market_data: properties: type: @@ -21662,7 +27758,9 @@ components: market: $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships_market' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_billing_info_validation_rules_201_response_data: properties: id: @@ -21684,6 +27782,12 @@ components: $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data' GET_billing_info_validation_rules_billingInfoValidationRuleId_200_response_data_attributes: properties: + type: + description: The order validation rule's type. + enum: + - billing_info_validation_rules + example: billing_info_validation_rules + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -21700,7 +27804,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -21739,7 +27843,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -21787,9 +27891,16 @@ components: attributes: properties: name: - description: The geocoder's internal name + description: The geocoder's internal name. example: Default geocoder nullable: false + type: + description: The geocoder's type. + enum: + - google_geocoders + - bing_geocoders + example: google_geocoders + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -21807,7 +27918,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -21819,6 +27930,22 @@ components: nullable: true relationships: properties: + markets: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - markets + id: + description: The resource ID addresses: properties: links: @@ -21854,7 +27981,7 @@ components: POST_bing_geocoders_201_response_data_attributes: properties: name: - description: The geocoder's internal name + description: The geocoder's internal name. example: Default geocoder reference: description: "A string that you can use to add any external identifier to\ @@ -21863,7 +27990,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -21872,7 +27999,7 @@ components: example: foo: bar key: - description: The Bing Virtualearth key + description: The Bing Virtualearth key. example: xxxx-yyyy-zzzz required: - key @@ -21893,10 +28020,12 @@ components: $ref: '#/components/schemas/POST_bing_geocoders_201_response_data_relationships_addresses_data' POST_bing_geocoders_201_response_data_relationships: properties: + markets: + $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_markets' addresses: $ref: '#/components/schemas/POST_bing_geocoders_201_response_data_relationships_addresses' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' POST_bing_geocoders_201_response_data: properties: id: @@ -21919,9 +28048,16 @@ components: GET_bing_geocoders_bingGeocoderId_200_response_data_attributes: properties: name: - description: The geocoder's internal name + description: The geocoder's internal name. example: Default geocoder nullable: false + type: + description: The geocoder's type. + enum: + - google_geocoders + - bing_geocoders + example: google_geocoders + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -21938,7 +28074,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -21970,7 +28106,7 @@ components: PATCH_bing_geocoders_bingGeocoderId_200_response_data_attributes: properties: name: - description: The geocoder's internal name + description: The geocoder's internal name. example: Default geocoder nullable: false reference: @@ -21981,7 +28117,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -21992,7 +28128,7 @@ components: foo: bar nullable: true key: - description: The Bing Virtualearth key + description: The Bing Virtualearth key. example: xxxx-yyyy-zzzz PATCH_bing_geocoders_bingGeocoderId_200_response_data: properties: @@ -22052,7 +28188,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -22101,6 +28237,22 @@ components: - payment_methods id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID braintree_payments: properties: links: @@ -22129,7 +28281,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -22185,6 +28337,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/POST_adyen_gateways_201_response_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' braintree_payments: $ref: '#/components/schemas/POST_braintree_gateways_201_response_data_relationships_braintree_payments' POST_braintree_gateways_201_response_data: @@ -22228,7 +28382,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -22290,7 +28444,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -22386,13 +28540,13 @@ components: example: true nullable: true options: - description: "Braintree payment options: 'customer_id' and 'payment_method_token'" + description: "Braintree payment options, 'customer_id' and 'payment_method_token'." example: customer_id: "1234567890" nullable: true payment_instrument: description: Information about the payment instrument used in - the transaction + the transaction. example: issuer: cl bank card_type: visa @@ -22414,7 +28568,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -22430,6 +28584,8 @@ components: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' payment_gateway: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_payment_gateway' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_braintree_payments_201_response_data_attributes: properties: payment_id: @@ -22442,7 +28598,7 @@ components: \ in order to complete the transaction." example: true options: - description: "Braintree payment options: 'customer_id' and 'payment_method_token'" + description: "Braintree payment options, 'customer_id' and 'payment_method_token'." example: customer_id: "1234567890" reference: @@ -22452,7 +28608,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -22503,12 +28659,12 @@ components: example: true nullable: true options: - description: "Braintree payment options: 'customer_id' and 'payment_method_token'" + description: "Braintree payment options, 'customer_id' and 'payment_method_token'." example: customer_id: "1234567890" nullable: true payment_instrument: - description: Information about the payment instrument used in the transaction + description: Information about the payment instrument used in the transaction. example: issuer: cl bank card_type: visa @@ -22529,7 +28685,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -22577,7 +28733,7 @@ components: example: true nullable: false options: - description: "Braintree payment options: 'customer_id' and 'payment_method_token'" + description: "Braintree payment options, 'customer_id' and 'payment_method_token'." example: customer_id: "1234567890" nullable: true @@ -22589,7 +28745,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -22643,7 +28799,7 @@ components: nullable: false name: description: The internal name of the bundle. - example: "Black Men T-shirt (XL) with Black Cap and Socks, all\ + example: "Men's Black T-shirt (XL) with Black Cap and Socks, all\ \ with White Logo" nullable: false currency_code: @@ -22675,30 +28831,30 @@ components: description: "The bundle price amount for the associated market,\ \ in cents." example: 10000 - nullable: false + nullable: true price_amount_float: description: "The bundle price amount for the associated market,\ \ float." example: 100.0 - nullable: false + nullable: true formatted_price_amount: description: "The bundle price amount for the associated market,\ \ formatted." example: "€100,00" - nullable: false + nullable: true compare_at_amount_cents: description: "The compared price amount, in cents. Useful to display\ \ a percentage discount." example: 13000 - nullable: false + nullable: true compare_at_amount_float: description: "The compared price amount, float." example: 130.0 - nullable: false + nullable: true formatted_compare_at_amount: description: "The compared price amount, formatted." example: "€130,00" - nullable: false + nullable: true skus_count: description: The total number of SKUs in the bundle. example: 2 @@ -22720,7 +28876,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -22796,6 +28952,54 @@ components: - attachments id: description: The resource ID + events: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource ID + tags: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - tags + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_bundles_201_response_data_attributes: properties: code: @@ -22804,7 +29008,7 @@ components: example: BUNDMM000000FFFFFFXLXX name: description: The internal name of the bundle. - example: "Black Men T-shirt (XL) with Black Cap and Socks, all with White\ + example: "Men's Black T-shirt (XL) with Black Cap and Socks, all with White\ \ Logo" currency_code: description: The international 3-letter currency code as defined by the @@ -22839,7 +29043,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -22849,9 +29053,7 @@ components: foo: bar required: - code - - compare_at_amount_cents - name - - price_amount_cents POST_bundles_201_response_data_relationships_sku_list_data: properties: type: @@ -22889,7 +29091,13 @@ components: skus: $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_skus' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_bundles_201_response_data: properties: id: @@ -22918,7 +29126,7 @@ components: nullable: false name: description: The internal name of the bundle. - example: "Black Men T-shirt (XL) with Black Cap and Socks, all with White\ + example: "Men's Black T-shirt (XL) with Black Cap and Socks, all with White\ \ Logo" nullable: false currency_code: @@ -22948,28 +29156,28 @@ components: price_amount_cents: description: "The bundle price amount for the associated market, in cents." example: 10000 - nullable: false + nullable: true price_amount_float: description: "The bundle price amount for the associated market, float." example: 100.0 - nullable: false + nullable: true formatted_price_amount: description: "The bundle price amount for the associated market, formatted." example: "€100,00" - nullable: false + nullable: true compare_at_amount_cents: description: "The compared price amount, in cents. Useful to display a percentage\ \ discount." example: 13000 - nullable: false + nullable: true compare_at_amount_float: description: "The compared price amount, float." example: 130.0 - nullable: false + nullable: true formatted_compare_at_amount: description: "The compared price amount, formatted." example: "€130,00" - nullable: false + nullable: true skus_count: description: The total number of SKUs in the bundle. example: 2 @@ -22990,7 +29198,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -23028,7 +29236,7 @@ components: nullable: false name: description: The internal name of the bundle. - example: "Black Men T-shirt (XL) with Black Cap and Socks, all with White\ + example: "Men's Black T-shirt (XL) with Black Cap and Socks, all with White\ \ Logo" nullable: false currency_code: @@ -23048,20 +29256,22 @@ components: price_amount_cents: description: "The bundle price amount for the associated market, in cents." example: 10000 - nullable: false + nullable: true compare_at_amount_cents: description: "The compared price amount, in cents. Useful to display a percentage\ \ discount." example: 13000 - nullable: false + nullable: true _compute_price_amount: description: Send this attribute if you want to compute the price_amount_cents as the sum of the prices of the bundle SKUs for the market. example: true + nullable: false _compute_compare_at_amount: description: Send this attribute if you want to compute the compare_at_amount_cents as the sum of the prices of the bundle SKUs for the market. example: true + nullable: false reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -23070,7 +29280,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -23099,7 +29309,7 @@ components: properties: data: $ref: '#/components/schemas/PATCH_bundles_bundleId_200_response_data' - GET_captures_200_response: + GET_buy_x_pay_y_promotions_200_response: properties: data: items: @@ -23110,410 +29320,82 @@ components: type: description: The resource's type enum: - - captures + - buy_x_pay_y_promotions links: properties: self: description: URL attributes: properties: - number: - description: "The transaction number, auto generated" - example: 42/T/001 + name: + description: The promotion's internal name. + example: Personal promotion + nullable: false + type: + description: The promotion's type. + enum: + - percentage_discount_promotions + - free_shipping_promotions + - buy_x_pay_y_promotions + - free_gift_promotions + - fixed_price_promotions + - external_promotions + - fixed_amount_promotions + - flex_promotions + example: percentage_discount_promotions nullable: false currency_code: - description: "The international 3-letter currency code as defined\ - \ by the ISO 4217 standard, inherited from the associated order." + description: The international 3-letter currency code as defined + by the ISO 4217 standard. example: EUR - nullable: false - amount_cents: - description: "The transaction amount, in cents." - example: 1500 - nullable: false - amount_float: - description: "The transaction amount, float." - example: 15.0 - nullable: false - formatted_amount: - description: "The transaction amount, formatted." - example: "€15,00" - nullable: false - succeeded: - description: Indicates if the transaction is successful - example: false - nullable: false - message: - description: The message returned by the payment gateway - example: Accepted - nullable: true - error_code: - description: "The error code, if any, returned by the payment\ - \ gateway" - example: "00001" - nullable: true - error_detail: - description: "The error detail, if any, returned by the payment\ - \ gateway" - example: Already settled nullable: true - token: - description: "The token identifying the transaction, returned\ - \ by the payment gateway" - example: xxxx-yyyy-zzzz + exclusive: + description: "Indicates if the promotion will be applied exclusively,\ + \ based on its priority score." + example: true nullable: true - gateway_transaction_id: - description: "The ID identifying the transaction, returned by\ - \ the payment gateway" - example: xxxx-yyyy-zzzz + priority: + description: The priority assigned to the promotion (lower means + higher priority). + example: 2 nullable: true - created_at: - description: Time at which the resource was created. + starts_at: + description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z nullable: false - updated_at: - description: Time at which the resource was last updated. - example: 2018-01-01T12:00:00.000Z + expires_at: + description: The expiration date/time of this promotion (must + be after starts_at). + example: 2018-01-02T12:00:00.000Z nullable: false - reference: - description: "A string that you can use to add any external identifier\ - \ to the resource. This can be useful for integrating the resource\ - \ to an external system, like an ERP, a marketing tool, a CRM,\ - \ or whatever." - example: ANY-EXTERNAL-REFEFERNCE - nullable: true - reference_origin: - description: Any identifier of the third party system that defines - the reference code - example: ANY-EXTERNAL-REFEFERNCE-ORIGIN - nullable: true - metadata: - description: Set of key-value pairs that you can attach to the - resource. This can be useful for storing additional information - about the resource in a structured format. - example: - foo: bar - nullable: true - refund_amount_cents: - description: "The amount to be refunded, in cents." - example: 500 - nullable: true - refund_amount_float: - description: "The amount to be refunded, float." - example: 5.0 - nullable: true - formatted_refund_amount: - description: "The amount to be refunded, formatted." - example: "€5,00" - nullable: true - refund_balance_cents: - description: "The balance to be refunded, in cents." - example: 1000 - nullable: true - refund_balance_float: - description: "The balance to be refunded, float." - example: 10.0 + total_usage_limit: + description: The total number of times this promotion can be applied. + When 'null' it means promotion can be applied infinite times. + example: 5 nullable: true - formatted_refund_balance: - description: "The balance to be refunded, formatted." - example: "€10,00" + total_usage_count: + description: The number of times this promotion has been applied. + example: 2 nullable: true - relationships: - properties: - order: - properties: - links: - properties: - self: - description: URL - related: - description: URL - data: - properties: - type: - description: The resource's type - enum: - - order - id: - description: The resource ID - reference_authorization: - properties: - links: - properties: - self: - description: URL - related: - description: URL - data: - properties: - type: - description: The resource's type - enum: - - reference_authorization - id: - description: The resource ID - refunds: - properties: - links: - properties: - self: - description: URL - related: - description: URL - data: - properties: - type: - description: The resource's type - enum: - - refunds - id: - description: The resource ID - events: - properties: - links: - properties: - self: - description: URL - related: - description: URL - data: - properties: - type: - description: The resource's type - enum: - - events - id: - description: The resource ID - GET_captures_captureId_200_response_data_attributes: - properties: - number: - description: "The transaction number, auto generated" - example: 42/T/001 - nullable: false - currency_code: - description: "The international 3-letter currency code as defined by the\ - \ ISO 4217 standard, inherited from the associated order." - example: EUR - nullable: false - amount_cents: - description: "The transaction amount, in cents." - example: 1500 - nullable: false - amount_float: - description: "The transaction amount, float." - example: 15.0 - nullable: false - formatted_amount: - description: "The transaction amount, formatted." - example: "€15,00" - nullable: false - succeeded: - description: Indicates if the transaction is successful - example: false - nullable: false - message: - description: The message returned by the payment gateway - example: Accepted - nullable: true - error_code: - description: "The error code, if any, returned by the payment gateway" - example: "00001" - nullable: true - error_detail: - description: "The error detail, if any, returned by the payment gateway" - example: Already settled - nullable: true - token: - description: "The token identifying the transaction, returned by the payment\ - \ gateway" - example: xxxx-yyyy-zzzz - nullable: true - gateway_transaction_id: - description: "The ID identifying the transaction, returned by the payment\ - \ gateway" - example: xxxx-yyyy-zzzz - nullable: true - created_at: - description: Time at which the resource was created. - example: 2018-01-01T12:00:00.000Z - nullable: false - updated_at: - description: Time at which the resource was last updated. - example: 2018-01-01T12:00:00.000Z - nullable: false - reference: - description: "A string that you can use to add any external identifier to\ - \ the resource. This can be useful for integrating the resource to an\ - \ external system, like an ERP, a marketing tool, a CRM, or whatever." - example: ANY-EXTERNAL-REFEFERNCE - nullable: true - reference_origin: - description: Any identifier of the third party system that defines the reference - code - example: ANY-EXTERNAL-REFEFERNCE-ORIGIN - nullable: true - metadata: - description: Set of key-value pairs that you can attach to the resource. - This can be useful for storing additional information about the resource - in a structured format. - example: - foo: bar - nullable: true - refund_amount_cents: - description: "The amount to be refunded, in cents." - example: 500 - nullable: true - refund_amount_float: - description: "The amount to be refunded, float." - example: 5.0 - nullable: true - formatted_refund_amount: - description: "The amount to be refunded, formatted." - example: "€5,00" - nullable: true - refund_balance_cents: - description: "The balance to be refunded, in cents." - example: 1000 - nullable: true - refund_balance_float: - description: "The balance to be refunded, float." - example: 10.0 - nullable: true - formatted_refund_balance: - description: "The balance to be refunded, formatted." - example: "€10,00" - nullable: true - GET_captures_captureId_200_response_data_relationships_reference_authorization_data: - properties: - type: - description: The resource's type - enum: - - reference_authorization - id: - description: The resource ID - GET_captures_captureId_200_response_data_relationships_reference_authorization: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/GET_captures_captureId_200_response_data_relationships_reference_authorization_data' - GET_captures_captureId_200_response_data_relationships_refunds_data: - properties: - type: - description: The resource's type - enum: - - refunds - id: - description: The resource ID - GET_captures_captureId_200_response_data_relationships_refunds: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/GET_captures_captureId_200_response_data_relationships_refunds_data' - GET_captures_captureId_200_response_data_relationships: - properties: - order: - $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' - reference_authorization: - $ref: '#/components/schemas/GET_captures_captureId_200_response_data_relationships_reference_authorization' - refunds: - $ref: '#/components/schemas/GET_captures_captureId_200_response_data_relationships_refunds' - events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' - GET_captures_captureId_200_response_data: - properties: - id: - description: The resource's id - example: XGZwpOSrWL - type: - description: The resource's type - enum: - - captures - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_links' - attributes: - $ref: '#/components/schemas/GET_captures_captureId_200_response_data_attributes' - relationships: - $ref: '#/components/schemas/GET_captures_captureId_200_response_data_relationships' - GET_captures_captureId_200_response: - properties: - data: - $ref: '#/components/schemas/GET_captures_captureId_200_response_data' - PATCH_captures_captureId_200_response_data_attributes: - properties: - reference: - description: "A string that you can use to add any external identifier to\ - \ the resource. This can be useful for integrating the resource to an\ - \ external system, like an ERP, a marketing tool, a CRM, or whatever." - example: ANY-EXTERNAL-REFEFERNCE - nullable: true - reference_origin: - description: Any identifier of the third party system that defines the reference - code - example: ANY-EXTERNAL-REFEFERNCE-ORIGIN - nullable: true - metadata: - description: Set of key-value pairs that you can attach to the resource. - This can be useful for storing additional information about the resource - in a structured format. - example: - foo: bar - nullable: true - _refund: - description: Send this attribute if you want to create a refund for this - capture. - example: true - _refund_amount_cents: - description: "The associated refund amount, in cents." - example: 500 - PATCH_captures_captureId_200_response_data: - properties: - id: - description: The resource's id - example: XGZwpOSrWL - type: - description: The resource's type - enum: - - captures - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_links' - attributes: - $ref: '#/components/schemas/PATCH_captures_captureId_200_response_data_attributes' - relationships: - $ref: '#/components/schemas/GET_captures_captureId_200_response_data_relationships' - PATCH_captures_captureId_200_response: - properties: - data: - $ref: '#/components/schemas/PATCH_captures_captureId_200_response_data' - GET_carrier_accounts_200_response: - properties: - data: - items: - properties: - id: - description: The resource's id - example: XGZwpOSrWL - type: - description: The resource's type - enum: - - carrier_accounts - links: - properties: - self: - description: URL - attributes: - properties: - name: - description: The carrier account internal name. - example: UPS + active: + description: Indicates if the promotion is active (enabled and + not expired). + example: true nullable: true - easypost_type: - description: The Easypost service carrier type. - example: UPS + status: + description: "The promotion status. One of 'disabled', 'expired',\ + \ 'pending', 'active', or 'inactive'." + enum: + - disabled + - expired + - pending + - active + - inactive + example: pending nullable: true - easypost_id: - description: The Easypost internal reference ID. - example: xxxx-yyyy-zzzz + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z nullable: true created_at: description: Time at which the resource was created. @@ -23532,7 +29414,1205 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the + resource. This can be useful for storing additional information + about the resource in a structured format. + example: + foo: bar + nullable: true + x: + description: The quantity which defines the threshold for free + items (works by multiple of x). + example: 3 + nullable: false + "y": + description: "The quantity which defines how many items you get\ + \ for free, with the formula x-y." + example: 2 + nullable: false + cheapest_free: + description: "Indicates if the cheapest items are discounted,\ + \ allowing all of the SKUs in the associated list to be eligible\ + \ for counting." + example: true + nullable: true + relationships: + properties: + market: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - market + id: + description: The resource ID + promotion_rules: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - promotion_rules + id: + description: The resource ID + order_amount_promotion_rule: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - order_amount_promotion_rule + id: + description: The resource ID + sku_list_promotion_rule: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - sku_list_promotion_rule + id: + description: The resource ID + coupon_codes_promotion_rule: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - coupon_codes_promotion_rule + id: + description: The resource ID + custom_promotion_rule: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - custom_promotion_rule + id: + description: The resource ID + sku_list: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - sku_list + id: + description: The resource ID + coupons: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - coupons + id: + description: The resource ID + attachments: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - attachments + id: + description: The resource ID + events: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource ID + tags: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - tags + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID + skus: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - skus + id: + description: The resource ID + POST_buy_x_pay_y_promotions_201_response_data_attributes: + properties: + name: + description: The promotion's internal name. + example: Personal promotion + currency_code: + description: The international 3-letter currency code as defined by the + ISO 4217 standard. + example: EUR + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 + starts_at: + description: The activation date/time of this promotion. + example: 2018-01-01T12:00:00.000Z + expires_at: + description: The expiration date/time of this promotion (must be after starts_at). + example: 2018-01-02T12:00:00.000Z + total_usage_limit: + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. + example: 5 + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + x: + description: The quantity which defines the threshold for free items (works + by multiple of x). + example: 3 + "y": + description: "The quantity which defines how many items you get for free,\ + \ with the formula x-y." + example: 2 + cheapest_free: + description: "Indicates if the cheapest items are discounted, allowing all\ + \ of the SKUs in the associated list to be eligible for counting." + example: true + required: + - expires_at + - name + - starts_at + - x + - "y" + POST_buy_x_pay_y_promotions_201_response_data_relationships_promotion_rules_data: + properties: + type: + description: The resource's type + enum: + - promotion_rules + id: + description: The resource ID + POST_buy_x_pay_y_promotions_201_response_data_relationships_promotion_rules: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_promotion_rules_data' + POST_buy_x_pay_y_promotions_201_response_data_relationships_order_amount_promotion_rule_data: + properties: + type: + description: The resource's type + enum: + - order_amount_promotion_rule + id: + description: The resource ID + POST_buy_x_pay_y_promotions_201_response_data_relationships_order_amount_promotion_rule: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_order_amount_promotion_rule_data' + POST_buy_x_pay_y_promotions_201_response_data_relationships_sku_list_promotion_rule_data: + properties: + type: + description: The resource's type + enum: + - sku_list_promotion_rule + id: + description: The resource ID + POST_buy_x_pay_y_promotions_201_response_data_relationships_sku_list_promotion_rule: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_sku_list_promotion_rule_data' + POST_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule_data: + properties: + type: + description: The resource's type + enum: + - coupon_codes_promotion_rule + id: + description: The resource ID + POST_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule_data' + POST_buy_x_pay_y_promotions_201_response_data_relationships_custom_promotion_rule_data: + properties: + type: + description: The resource's type + enum: + - custom_promotion_rule + id: + description: The resource ID + POST_buy_x_pay_y_promotions_201_response_data_relationships_custom_promotion_rule: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_custom_promotion_rule_data' + POST_buy_x_pay_y_promotions_201_response_data_relationships_coupons_data: + properties: + type: + description: The resource's type + enum: + - coupons + id: + description: The resource ID + POST_buy_x_pay_y_promotions_201_response_data_relationships_coupons: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupons_data' + POST_buy_x_pay_y_promotions_201_response_data_relationships: + properties: + market: + $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships_market' + promotion_rules: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_promotion_rules' + order_amount_promotion_rule: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_order_amount_promotion_rule' + sku_list_promotion_rule: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_sku_list_promotion_rule' + coupon_codes_promotion_rule: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule' + custom_promotion_rule: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_custom_promotion_rule' + sku_list: + $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_sku_list' + coupons: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupons' + attachments: + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + skus: + $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_skus' + POST_buy_x_pay_y_promotions_201_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - buy_x_pay_y_promotions + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships' + POST_buy_x_pay_y_promotions_201_response: + properties: + data: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data' + GET_buy_x_pay_y_promotions_buyXPayYPromotionId_200_response_data_attributes: + properties: + name: + description: The promotion's internal name. + example: Personal promotion + nullable: false + type: + description: The promotion's type. + enum: + - percentage_discount_promotions + - free_shipping_promotions + - buy_x_pay_y_promotions + - free_gift_promotions + - fixed_price_promotions + - external_promotions + - fixed_amount_promotions + - flex_promotions + example: percentage_discount_promotions + nullable: false + currency_code: + description: The international 3-letter currency code as defined by the + ISO 4217 standard. + example: EUR + nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + nullable: true + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 + nullable: true + starts_at: + description: The activation date/time of this promotion. + example: 2018-01-01T12:00:00.000Z + nullable: false + expires_at: + description: The expiration date/time of this promotion (must be after starts_at). + example: 2018-01-02T12:00:00.000Z + nullable: false + total_usage_limit: + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. + example: 5 + nullable: true + total_usage_count: + description: The number of times this promotion has been applied. + example: 2 + nullable: true + active: + description: Indicates if the promotion is active (enabled and not expired). + example: true + nullable: true + status: + description: "The promotion status. One of 'disabled', 'expired', 'pending',\ + \ 'active', or 'inactive'." + enum: + - disabled + - expired + - pending + - active + - inactive + example: pending + nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + x: + description: The quantity which defines the threshold for free items (works + by multiple of x). + example: 3 + nullable: false + "y": + description: "The quantity which defines how many items you get for free,\ + \ with the formula x-y." + example: 2 + nullable: false + cheapest_free: + description: "Indicates if the cheapest items are discounted, allowing all\ + \ of the SKUs in the associated list to be eligible for counting." + example: true + nullable: true + GET_buy_x_pay_y_promotions_buyXPayYPromotionId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - buy_x_pay_y_promotions + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/GET_buy_x_pay_y_promotions_buyXPayYPromotionId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships' + GET_buy_x_pay_y_promotions_buyXPayYPromotionId_200_response: + properties: + data: + $ref: '#/components/schemas/GET_buy_x_pay_y_promotions_buyXPayYPromotionId_200_response_data' + PATCH_buy_x_pay_y_promotions_buyXPayYPromotionId_200_response_data_attributes: + properties: + name: + description: The promotion's internal name. + example: Personal promotion + nullable: false + currency_code: + description: The international 3-letter currency code as defined by the + ISO 4217 standard. + example: EUR + nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + nullable: false + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 + nullable: true + starts_at: + description: The activation date/time of this promotion. + example: 2018-01-01T12:00:00.000Z + nullable: false + expires_at: + description: The expiration date/time of this promotion (must be after starts_at). + example: 2018-01-02T12:00:00.000Z + nullable: false + total_usage_limit: + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. + example: 5 + nullable: true + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + nullable: false + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + x: + description: The quantity which defines the threshold for free items (works + by multiple of x). + example: 3 + nullable: false + "y": + description: "The quantity which defines how many items you get for free,\ + \ with the formula x-y." + example: 2 + nullable: false + cheapest_free: + description: "Indicates if the cheapest items are discounted, allowing all\ + \ of the SKUs in the associated list to be eligible for counting." + example: true + nullable: false + PATCH_buy_x_pay_y_promotions_buyXPayYPromotionId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - buy_x_pay_y_promotions + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/PATCH_buy_x_pay_y_promotions_buyXPayYPromotionId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships' + PATCH_buy_x_pay_y_promotions_buyXPayYPromotionId_200_response: + properties: + data: + $ref: '#/components/schemas/PATCH_buy_x_pay_y_promotions_buyXPayYPromotionId_200_response_data' + GET_captures_200_response: + properties: + data: + items: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - captures + links: + properties: + self: + description: URL + attributes: + properties: + number: + description: "The transaction number, auto generated." + example: 42/T/001 + nullable: false + type: + description: The transaction's type. + enum: + - authorizations + - voids + - captures + - refunds + example: authorizations + nullable: false + currency_code: + description: "The international 3-letter currency code as defined\ + \ by the ISO 4217 standard, inherited from the associated order." + example: EUR + nullable: false + amount_cents: + description: "The transaction amount, in cents." + example: 1500 + nullable: false + amount_float: + description: "The transaction amount, float." + example: 15.0 + nullable: false + formatted_amount: + description: "The transaction amount, formatted." + example: "€15,00" + nullable: false + succeeded: + description: Indicates if the transaction is successful. + example: false + nullable: false + message: + description: The message returned by the payment gateway. + example: Accepted + nullable: true + error_code: + description: "The error code, if any, returned by the payment\ + \ gateway." + example: "00001" + nullable: true + error_detail: + description: "The error detail, if any, returned by the payment\ + \ gateway." + example: Already settled + nullable: true + token: + description: "The token identifying the transaction, returned\ + \ by the payment gateway." + example: xxxx-yyyy-zzzz + nullable: true + gateway_transaction_id: + description: "The ID identifying the transaction, returned by\ + \ the payment gateway." + example: xxxx-yyyy-zzzz + nullable: true + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier\ + \ to the resource. This can be useful for integrating the resource\ + \ to an external system, like an ERP, a marketing tool, a CRM,\ + \ or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines + the reference code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the + resource. This can be useful for storing additional information + about the resource in a structured format. + example: + foo: bar + nullable: true + refund_amount_cents: + description: "The amount to be refunded, in cents." + example: 500 + nullable: true + refund_amount_float: + description: "The amount to be refunded, float." + example: 5.0 + nullable: true + formatted_refund_amount: + description: "The amount to be refunded, formatted." + example: "€5,00" + nullable: true + refund_balance_cents: + description: "The balance to be refunded, in cents." + example: 1000 + nullable: true + refund_balance_float: + description: "The balance to be refunded, float." + example: 10.0 + nullable: true + formatted_refund_balance: + description: "The balance to be refunded, formatted." + example: "€10,00" + nullable: true + relationships: + properties: + order: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - order + id: + description: The resource ID + attachments: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - attachments + id: + description: The resource ID + events: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID + reference_authorization: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - reference_authorization + id: + description: The resource ID + refunds: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - refunds + id: + description: The resource ID + return: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - return + id: + description: The resource ID + GET_captures_captureId_200_response_data_attributes: + properties: + number: + description: "The transaction number, auto generated." + example: 42/T/001 + nullable: false + type: + description: The transaction's type. + enum: + - authorizations + - voids + - captures + - refunds + example: authorizations + nullable: false + currency_code: + description: "The international 3-letter currency code as defined by the\ + \ ISO 4217 standard, inherited from the associated order." + example: EUR + nullable: false + amount_cents: + description: "The transaction amount, in cents." + example: 1500 + nullable: false + amount_float: + description: "The transaction amount, float." + example: 15.0 + nullable: false + formatted_amount: + description: "The transaction amount, formatted." + example: "€15,00" + nullable: false + succeeded: + description: Indicates if the transaction is successful. + example: false + nullable: false + message: + description: The message returned by the payment gateway. + example: Accepted + nullable: true + error_code: + description: "The error code, if any, returned by the payment gateway." + example: "00001" + nullable: true + error_detail: + description: "The error detail, if any, returned by the payment gateway." + example: Already settled + nullable: true + token: + description: "The token identifying the transaction, returned by the payment\ + \ gateway." + example: xxxx-yyyy-zzzz + nullable: true + gateway_transaction_id: + description: "The ID identifying the transaction, returned by the payment\ + \ gateway." + example: xxxx-yyyy-zzzz + nullable: true + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + refund_amount_cents: + description: "The amount to be refunded, in cents." + example: 500 + nullable: true + refund_amount_float: + description: "The amount to be refunded, float." + example: 5.0 + nullable: true + formatted_refund_amount: + description: "The amount to be refunded, formatted." + example: "€5,00" + nullable: true + refund_balance_cents: + description: "The balance to be refunded, in cents." + example: 1000 + nullable: true + refund_balance_float: + description: "The balance to be refunded, float." + example: 10.0 + nullable: true + formatted_refund_balance: + description: "The balance to be refunded, formatted." + example: "€10,00" + nullable: true + GET_captures_captureId_200_response_data_relationships_reference_authorization_data: + properties: + type: + description: The resource's type + enum: + - reference_authorization + id: + description: The resource ID + GET_captures_captureId_200_response_data_relationships_reference_authorization: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/GET_captures_captureId_200_response_data_relationships_reference_authorization_data' + GET_captures_captureId_200_response_data_relationships_refunds_data: + properties: + type: + description: The resource's type + enum: + - refunds + id: + description: The resource ID + GET_captures_captureId_200_response_data_relationships_refunds: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/GET_captures_captureId_200_response_data_relationships_refunds_data' + GET_captures_captureId_200_response_data_relationships_return_data: + properties: + type: + description: The resource's type + enum: + - return + id: + description: The resource ID + GET_captures_captureId_200_response_data_relationships_return: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/GET_captures_captureId_200_response_data_relationships_return_data' + GET_captures_captureId_200_response_data_relationships: + properties: + order: + $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' + attachments: + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + reference_authorization: + $ref: '#/components/schemas/GET_captures_captureId_200_response_data_relationships_reference_authorization' + refunds: + $ref: '#/components/schemas/GET_captures_captureId_200_response_data_relationships_refunds' + return: + $ref: '#/components/schemas/GET_captures_captureId_200_response_data_relationships_return' + GET_captures_captureId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - captures + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/GET_captures_captureId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/GET_captures_captureId_200_response_data_relationships' + GET_captures_captureId_200_response: + properties: + data: + $ref: '#/components/schemas/GET_captures_captureId_200_response_data' + PATCH_captures_captureId_200_response_data_attributes: + properties: + succeeded: + description: Indicates if the transaction is successful. + example: false + nullable: false + _forward: + description: Send this attribute if you want to forward a stuck transaction + to succeeded and update associated order states accordingly. + example: true + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + _refund: + description: Send this attribute if you want to create a refund for this + capture. + example: true + nullable: false + _refund_amount_cents: + description: Send this attribute as a value in cents if you want to overwrite + the amount to be refunded. + example: 500 + _cancel: + description: Send this attribute if you want to refund a succeeded capture + of a pending order (which is left unpaid). + example: true + nullable: false + PATCH_captures_captureId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - captures + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/PATCH_captures_captureId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/GET_captures_captureId_200_response_data_relationships' + PATCH_captures_captureId_200_response: + properties: + data: + $ref: '#/components/schemas/PATCH_captures_captureId_200_response_data' + GET_carrier_accounts_200_response: + properties: + data: + items: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - carrier_accounts + links: + properties: + self: + description: URL + attributes: + properties: + name: + description: The carrier account internal name. + example: Accurate + nullable: false + easypost_type: + description: The Easypost service carrier type. + example: AccurateAccount + nullable: false + easypost_id: + description: The Easypost internal reference ID. + example: xxxx-yyyy-zzzz + nullable: true + credentials: + description: The Easypost carrier accounts credentials fields. + example: + username: xxxx + password: secret + nullable: false + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier\ + \ to the resource. This can be useful for integrating the resource\ + \ to an external system, like an ERP, a marketing tool, a CRM,\ + \ or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -23547,21 +30627,80 @@ components: market: $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships_market' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + POST_carrier_accounts_201_response_data_attributes: + properties: + name: + description: The carrier account internal name. + example: Accurate + easypost_type: + description: The Easypost service carrier type. + example: AccurateAccount + credentials: + description: The Easypost carrier accounts credentials fields. + example: + username: xxxx + password: secret + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + required: + - credentials + - easypost_type + - name + POST_carrier_accounts_201_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - carrier_accounts + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/POST_carrier_accounts_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships' + POST_carrier_accounts_201_response: + properties: + data: + $ref: '#/components/schemas/POST_carrier_accounts_201_response_data' GET_carrier_accounts_carrierAccountId_200_response_data_attributes: properties: name: description: The carrier account internal name. - example: UPS - nullable: true + example: Accurate + nullable: false easypost_type: description: The Easypost service carrier type. - example: UPS - nullable: true + example: AccurateAccount + nullable: false easypost_id: description: The Easypost internal reference ID. example: xxxx-yyyy-zzzz nullable: true + credentials: + description: The Easypost carrier accounts credentials fields. + example: + username: xxxx + password: secret + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -23578,7 +30717,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -23607,6 +30746,59 @@ components: properties: data: $ref: '#/components/schemas/GET_carrier_accounts_carrierAccountId_200_response_data' + PATCH_carrier_accounts_carrierAccountId_200_response_data_attributes: + properties: + name: + description: The carrier account internal name. + example: Accurate + nullable: false + easypost_type: + description: The Easypost service carrier type. + example: AccurateAccount + nullable: false + credentials: + description: The Easypost carrier accounts credentials fields. + example: + username: xxxx + password: secret + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + PATCH_carrier_accounts_carrierAccountId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - carrier_accounts + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/PATCH_carrier_accounts_carrierAccountId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships' + PATCH_carrier_accounts_carrierAccountId_200_response: + properties: + data: + $ref: '#/components/schemas/PATCH_carrier_accounts_carrierAccountId_200_response_data' GET_checkout_com_gateways_200_response: properties: data: @@ -23646,7 +30838,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -23686,6 +30878,22 @@ components: - payment_methods id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID checkout_com_payments: properties: links: @@ -23714,7 +30922,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -23750,6 +30958,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/POST_adyen_gateways_201_response_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' checkout_com_payments: $ref: '#/components/schemas/POST_checkout_com_gateways_201_response_data_relationships_checkout_com_payments' POST_checkout_com_gateways_201_response_data: @@ -23793,7 +31003,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -23848,7 +31058,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -23955,7 +31165,7 @@ components: nullable: true payment_instrument: description: Information about the payment instrument used in - the transaction + the transaction. example: issuer: cl bank card_type: visa @@ -23977,7 +31187,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -23993,6 +31203,8 @@ components: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' payment_gateway: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_payment_gateway' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_checkout_com_payments_201_response_data_attributes: properties: payment_type: @@ -24017,7 +31229,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -24100,7 +31312,7 @@ components: example: false nullable: true payment_instrument: - description: Information about the payment instrument used in the transaction + description: Information about the payment instrument used in the transaction. example: issuer: cl bank card_type: visa @@ -24121,7 +31333,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -24176,10 +31388,12 @@ components: description: Send this attribute if you want to send additional details the payment request (i.e. upon 3DS check). example: true + nullable: false _refresh: description: "Send this attribute if you want to refresh all the pending\ \ transactions, can be used as webhooks fallback logic." example: true + nullable: false reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -24188,7 +31402,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -24302,7 +31516,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -24330,6 +31544,22 @@ components: - events id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_cleanups_201_response_data_attributes: properties: resource_type: @@ -24346,7 +31576,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -24359,7 +31589,9 @@ components: POST_cleanups_201_response_data_relationships: properties: events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_cleanups_201_response_data: properties: id: @@ -24447,7 +31679,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -24476,6 +31708,25 @@ components: properties: data: $ref: '#/components/schemas/GET_cleanups_cleanupId_200_response_data' + PATCH_cleanups_cleanupId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - cleanups + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/PATCH_billing_info_validation_rules_billingInfoValidationRuleId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_cleanups_201_response_data_relationships' + PATCH_cleanups_cleanupId_200_response: + properties: + data: + $ref: '#/components/schemas/PATCH_cleanups_cleanupId_200_response_data' GET_coupon_codes_promotion_rules_200_response: properties: data: @@ -24494,6 +31745,15 @@ components: description: URL attributes: properties: + type: + description: The promotion rule's type. + enum: + - order_amount_promotion_rules + - sku_list_promotion_rules + - coupon_codes_promotion_rules + - custom_promotion_rules + example: coupon_codes_promotion_rules + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -24511,7 +31771,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -24539,6 +31799,22 @@ components: - promotion id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID coupons: properties: links: @@ -24569,26 +31845,14 @@ components: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: $ref: '#/components/schemas/POST_coupon_codes_promotion_rules_201_response_data_relationships_promotion_data' - POST_coupon_codes_promotion_rules_201_response_data_relationships_coupons_data: - properties: - type: - description: The resource's type - enum: - - coupons - id: - description: The resource ID - POST_coupon_codes_promotion_rules_201_response_data_relationships_coupons: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/POST_coupon_codes_promotion_rules_201_response_data_relationships_coupons_data' POST_coupon_codes_promotion_rules_201_response_data_relationships: properties: promotion: $ref: '#/components/schemas/POST_coupon_codes_promotion_rules_201_response_data_relationships_promotion' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' coupons: - $ref: '#/components/schemas/POST_coupon_codes_promotion_rules_201_response_data_relationships_coupons' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupons' POST_coupon_codes_promotion_rules_201_response_data: properties: id: @@ -24608,6 +31872,43 @@ components: properties: data: $ref: '#/components/schemas/POST_coupon_codes_promotion_rules_201_response_data' + GET_coupon_codes_promotion_rules_couponCodesPromotionRuleId_200_response_data_attributes: + properties: + type: + description: The promotion rule's type. + enum: + - order_amount_promotion_rules + - sku_list_promotion_rules + - coupon_codes_promotion_rules + - custom_promotion_rules + example: coupon_codes_promotion_rules + nullable: false + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true GET_coupon_codes_promotion_rules_couponCodesPromotionRuleId_200_response_data: properties: id: @@ -24620,7 +31921,7 @@ components: links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/GET_billing_info_validation_rules_billingInfoValidationRuleId_200_response_data_attributes' + $ref: '#/components/schemas/GET_coupon_codes_promotion_rules_couponCodesPromotionRuleId_200_response_data_attributes' relationships: $ref: '#/components/schemas/POST_coupon_codes_promotion_rules_201_response_data_relationships' GET_coupon_codes_promotion_rules_couponCodesPromotionRuleId_200_response: @@ -24665,15 +31966,15 @@ components: attributes: properties: email: - description: The recipient email address + description: The recipient email address. example: john@example.com nullable: false first_name: - description: The recipient first name + description: The recipient first name. example: John nullable: true last_name: - description: The recipient last name + description: The recipient last name. example: Smith nullable: true created_at: @@ -24693,7 +31994,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -24737,16 +32038,32 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_coupon_recipients_201_response_data_attributes: properties: email: - description: The recipient email address + description: The recipient email address. example: john@example.com first_name: - description: The recipient first name + description: The recipient first name. example: John last_name: - description: The recipient last name + description: The recipient last name. example: Smith reference: description: "A string that you can use to add any external identifier to\ @@ -24755,7 +32072,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -24784,7 +32101,9 @@ components: customer: $ref: '#/components/schemas/POST_coupon_recipients_201_response_data_relationships_customer' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_coupon_recipients_201_response_data: properties: id: @@ -24807,15 +32126,15 @@ components: GET_coupon_recipients_couponRecipientId_200_response_data_attributes: properties: email: - description: The recipient email address + description: The recipient email address. example: john@example.com nullable: false first_name: - description: The recipient first name + description: The recipient first name. example: John nullable: true last_name: - description: The recipient last name + description: The recipient last name. example: Smith nullable: true created_at: @@ -24834,7 +32153,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -24866,15 +32185,15 @@ components: PATCH_coupon_recipients_couponRecipientId_200_response_data_attributes: properties: email: - description: The recipient email address + description: The recipient email address. example: john@example.com nullable: false first_name: - description: The recipient first name + description: The recipient first name. example: John nullable: true last_name: - description: The recipient last name + description: The recipient last name. example: Smith nullable: true reference: @@ -24885,7 +32204,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -24945,7 +32264,7 @@ components: usage_limit: description: The total number of times this coupon can be used. example: 50 - nullable: false + nullable: true usage_count: description: The number of times this coupon has been used. example: 20 @@ -24956,6 +32275,378 @@ components: \ or create the associated recipient by email." example: john@example.com nullable: true + expires_at: + description: Time at which the coupon will expire. + example: 2018-01-01T12:00:00.000Z + nullable: true + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier\ + \ to the resource. This can be useful for integrating the resource\ + \ to an external system, like an ERP, a marketing tool, a CRM,\ + \ or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines + the reference code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the + resource. This can be useful for storing additional information + about the resource in a structured format. + example: + foo: bar + nullable: true + relationships: + properties: + promotion_rule: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - promotion_rule + id: + description: The resource ID + coupon_recipient: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - coupon_recipient + id: + description: The resource ID + events: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource ID + tags: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - tags + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID + POST_coupons_201_response_data_attributes: + properties: + code: + description: "The coupon code, that uniquely identifies the coupon within\ + \ the promotion rule." + example: 04371af2-70b3-48d7-8f4e-316b374224c3 + customer_single_use: + description: Indicates if the coupon can be used just once per customer. + example: false + usage_limit: + description: The total number of times this coupon can be used. + example: 50 + recipient_email: + description: "The email address of the associated recipient. When creating\ + \ or updating a coupon, this is a shortcut to find or create the associated\ + \ recipient by email." + example: john@example.com + expires_at: + description: Time at which the coupon will expire. + example: 2018-01-01T12:00:00.000Z + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + required: + - code + POST_coupons_201_response_data_relationships_promotion_rule_data: + properties: + type: + description: The resource's type + enum: + - promotion_rule + id: + description: The resource ID + POST_coupons_201_response_data_relationships_promotion_rule: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_coupons_201_response_data_relationships_promotion_rule_data' + POST_coupons_201_response_data_relationships_coupon_recipient_data: + properties: + type: + description: The resource's type + enum: + - coupon_recipient + id: + description: The resource ID + POST_coupons_201_response_data_relationships_coupon_recipient: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_coupons_201_response_data_relationships_coupon_recipient_data' + POST_coupons_201_response_data_relationships: + properties: + promotion_rule: + $ref: '#/components/schemas/POST_coupons_201_response_data_relationships_promotion_rule' + coupon_recipient: + $ref: '#/components/schemas/POST_coupons_201_response_data_relationships_coupon_recipient' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + POST_coupons_201_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - coupons + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/POST_coupons_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_coupons_201_response_data_relationships' + POST_coupons_201_response: + properties: + data: + $ref: '#/components/schemas/POST_coupons_201_response_data' + GET_coupons_couponId_200_response_data_attributes: + properties: + code: + description: "The coupon code, that uniquely identifies the coupon within\ + \ the promotion rule." + example: 04371af2-70b3-48d7-8f4e-316b374224c3 + nullable: false + customer_single_use: + description: Indicates if the coupon can be used just once per customer. + example: false + nullable: true + usage_limit: + description: The total number of times this coupon can be used. + example: 50 + nullable: true + usage_count: + description: The number of times this coupon has been used. + example: 20 + nullable: true + recipient_email: + description: "The email address of the associated recipient. When creating\ + \ or updating a coupon, this is a shortcut to find or create the associated\ + \ recipient by email." + example: john@example.com + nullable: true + expires_at: + description: Time at which the coupon will expire. + example: 2018-01-01T12:00:00.000Z + nullable: true + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + GET_coupons_couponId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - coupons + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/GET_coupons_couponId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_coupons_201_response_data_relationships' + GET_coupons_couponId_200_response: + properties: + data: + $ref: '#/components/schemas/GET_coupons_couponId_200_response_data' + PATCH_coupons_couponId_200_response_data_attributes: + properties: + code: + description: "The coupon code, that uniquely identifies the coupon within\ + \ the promotion rule." + example: 04371af2-70b3-48d7-8f4e-316b374224c3 + nullable: false + customer_single_use: + description: Indicates if the coupon can be used just once per customer. + example: false + nullable: false + usage_limit: + description: The total number of times this coupon can be used. + example: 50 + nullable: true + recipient_email: + description: "The email address of the associated recipient. When creating\ + \ or updating a coupon, this is a shortcut to find or create the associated\ + \ recipient by email." + example: john@example.com + nullable: true + expires_at: + description: Time at which the coupon will expire. + example: 2018-01-01T12:00:00.000Z + nullable: true + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + PATCH_coupons_couponId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - coupons + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/PATCH_coupons_couponId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_coupons_201_response_data_relationships' + PATCH_coupons_couponId_200_response: + properties: + data: + $ref: '#/components/schemas/PATCH_coupons_couponId_200_response_data' + GET_custom_promotion_rules_200_response: + properties: + data: + items: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - custom_promotion_rules + links: + properties: + self: + description: URL + attributes: + properties: + type: + description: The promotion rule's type. + enum: + - order_amount_promotion_rules + - sku_list_promotion_rules + - coupon_codes_promotion_rules + - custom_promotion_rules + example: coupon_codes_promotion_rules + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -24973,7 +32664,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -24983,9 +32674,16 @@ components: example: foo: bar nullable: true + filters: + description: The filters used to trigger promotion on the matching + order and its relationships attributes. + example: + status_eq: pending + line_items_sku_code_eq: AAA + nullable: true relationships: properties: - promotion_rule: + promotion: properties: links: properties: @@ -24998,26 +32696,27 @@ components: type: description: The resource's type enum: - - promotion_rule + - promotion id: description: The resource ID - POST_coupons_201_response_data_attributes: + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID + POST_custom_promotion_rules_201_response_data_attributes: properties: - code: - description: "The coupon code, that uniquely identifies the coupon within\ - \ the promotion rule." - example: 04371af2-70b3-48d7-8f4e-316b374224c3 - customer_single_use: - description: Indicates if the coupon can be used just once per customer. - example: false - usage_limit: - description: The total number of times this coupon can be used. - example: 50 - recipient_email: - description: "The email address of the associated recipient. When creating\ - \ or updating a coupon, this is a shortcut to find or create the associated\ - \ recipient by email." - example: john@example.com reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -25025,7 +32724,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -25033,28 +32732,19 @@ components: in a structured format. example: foo: bar - required: - - code - - usage_limit - POST_coupons_201_response_data_relationships_promotion_rule_data: - properties: - type: - description: The resource's type - enum: - - promotion_rule - id: - description: The resource ID - POST_coupons_201_response_data_relationships_promotion_rule: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/POST_coupons_201_response_data_relationships_promotion_rule_data' - POST_coupons_201_response_data_relationships: + filters: + description: The filters used to trigger promotion on the matching order + and its relationships attributes. + example: + status_eq: pending + line_items_sku_code_eq: AAA + POST_custom_promotion_rules_201_response_data_relationships: properties: - promotion_rule: - $ref: '#/components/schemas/POST_coupons_201_response_data_relationships_promotion_rule' - POST_coupons_201_response_data: + promotion: + $ref: '#/components/schemas/POST_coupon_codes_promotion_rules_201_response_data_relationships_promotion' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + POST_custom_promotion_rules_201_response_data: properties: id: description: The resource's id @@ -25062,42 +32752,28 @@ components: type: description: The resource's type enum: - - coupons + - custom_promotion_rules links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/POST_coupons_201_response_data_attributes' + $ref: '#/components/schemas/POST_custom_promotion_rules_201_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_coupons_201_response_data_relationships' - POST_coupons_201_response: + $ref: '#/components/schemas/POST_custom_promotion_rules_201_response_data_relationships' + POST_custom_promotion_rules_201_response: properties: data: - $ref: '#/components/schemas/POST_coupons_201_response_data' - GET_coupons_couponId_200_response_data_attributes: + $ref: '#/components/schemas/POST_custom_promotion_rules_201_response_data' + GET_custom_promotion_rules_customPromotionRuleId_200_response_data_attributes: properties: - code: - description: "The coupon code, that uniquely identifies the coupon within\ - \ the promotion rule." - example: 04371af2-70b3-48d7-8f4e-316b374224c3 - nullable: false - customer_single_use: - description: Indicates if the coupon can be used just once per customer. - example: false - nullable: true - usage_limit: - description: The total number of times this coupon can be used. - example: 50 + type: + description: The promotion rule's type. + enum: + - order_amount_promotion_rules + - sku_list_promotion_rules + - coupon_codes_promotion_rules + - custom_promotion_rules + example: coupon_codes_promotion_rules nullable: false - usage_count: - description: The number of times this coupon has been used. - example: 20 - nullable: true - recipient_email: - description: "The email address of the associated recipient. When creating\ - \ or updating a coupon, this is a shortcut to find or create the associated\ - \ recipient by email." - example: john@example.com - nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -25114,7 +32790,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -25124,7 +32800,14 @@ components: example: foo: bar nullable: true - GET_coupons_couponId_200_response_data: + filters: + description: The filters used to trigger promotion on the matching order + and its relationships attributes. + example: + status_eq: pending + line_items_sku_code_eq: AAA + nullable: true + GET_custom_promotion_rules_customPromotionRuleId_200_response_data: properties: id: description: The resource's id @@ -25132,38 +32815,19 @@ components: type: description: The resource's type enum: - - coupons + - custom_promotion_rules links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/GET_coupons_couponId_200_response_data_attributes' + $ref: '#/components/schemas/GET_custom_promotion_rules_customPromotionRuleId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_coupons_201_response_data_relationships' - GET_coupons_couponId_200_response: + $ref: '#/components/schemas/POST_custom_promotion_rules_201_response_data_relationships' + GET_custom_promotion_rules_customPromotionRuleId_200_response: properties: data: - $ref: '#/components/schemas/GET_coupons_couponId_200_response_data' - PATCH_coupons_couponId_200_response_data_attributes: + $ref: '#/components/schemas/GET_custom_promotion_rules_customPromotionRuleId_200_response_data' + PATCH_custom_promotion_rules_customPromotionRuleId_200_response_data_attributes: properties: - code: - description: "The coupon code, that uniquely identifies the coupon within\ - \ the promotion rule." - example: 04371af2-70b3-48d7-8f4e-316b374224c3 - nullable: false - customer_single_use: - description: Indicates if the coupon can be used just once per customer. - example: false - nullable: false - usage_limit: - description: The total number of times this coupon can be used. - example: 50 - nullable: false - recipient_email: - description: "The email address of the associated recipient. When creating\ - \ or updating a coupon, this is a shortcut to find or create the associated\ - \ recipient by email." - example: john@example.com - nullable: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -25172,7 +32836,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -25182,7 +32846,14 @@ components: example: foo: bar nullable: true - PATCH_coupons_couponId_200_response_data: + filters: + description: The filters used to trigger promotion on the matching order + and its relationships attributes. + example: + status_eq: pending + line_items_sku_code_eq: AAA + nullable: true + PATCH_custom_promotion_rules_customPromotionRuleId_200_response_data: properties: id: description: The resource's id @@ -25190,17 +32861,17 @@ components: type: description: The resource's type enum: - - coupons + - custom_promotion_rules links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/PATCH_coupons_couponId_200_response_data_attributes' + $ref: '#/components/schemas/PATCH_custom_promotion_rules_customPromotionRuleId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_coupons_201_response_data_relationships' - PATCH_coupons_couponId_200_response: + $ref: '#/components/schemas/POST_custom_promotion_rules_201_response_data_relationships' + PATCH_custom_promotion_rules_customPromotionRuleId_200_response: properties: data: - $ref: '#/components/schemas/PATCH_coupons_couponId_200_response_data' + $ref: '#/components/schemas/PATCH_custom_promotion_rules_customPromotionRuleId_200_response_data' GET_customer_addresses_200_response: properties: data: @@ -25220,10 +32891,14 @@ components: attributes: properties: name: - description: Returns the associated address' name + description: Returns the associated address' name. example: "John Smith, 2883 Geraldine Lane Apt.23, 10013 New York\ \ NY (US) (212) 646-338-1228" nullable: true + customer_email: + description: The email of the customer associated to the address. + example: john@example.com + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -25241,7 +32916,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -25301,6 +32976,44 @@ components: - events id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID + POST_customer_addresses_201_response_data_attributes: + properties: + customer_email: + description: The email of the customer associated to the address. + example: john@example.com + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + required: + - customer_email POST_customer_addresses_201_response_data_relationships_address_data: properties: type: @@ -25322,7 +33035,9 @@ components: address: $ref: '#/components/schemas/POST_customer_addresses_201_response_data_relationships_address' events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_customer_addresses_201_response_data: properties: id: @@ -25335,7 +33050,7 @@ components: links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/POST_adyen_payments_201_response_data_attributes' + $ref: '#/components/schemas/POST_customer_addresses_201_response_data_attributes' relationships: $ref: '#/components/schemas/POST_customer_addresses_201_response_data_relationships' POST_customer_addresses_201_response: @@ -25345,10 +33060,14 @@ components: GET_customer_addresses_customerAddressId_200_response_data_attributes: properties: name: - description: Returns the associated address' name + description: Returns the associated address' name. example: "John Smith, 2883 Geraldine Lane Apt.23, 10013 New York NY (US)\ \ (212) 646-338-1228" nullable: true + customer_email: + description: The email of the customer associated to the address. + example: john@example.com + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -25365,7 +33084,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -25432,9 +33151,14 @@ components: attributes: properties: name: - description: The customer group's internal name + description: The customer group's internal name. example: VIP nullable: false + code: + description: A string that you can use to identify the customer + group (must be unique within the environment). + example: vip1 + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -25452,7 +33176,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -25512,11 +33236,31 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_customer_groups_201_response_data_attributes: properties: name: - description: The customer group's internal name + description: The customer group's internal name. example: VIP + code: + description: A string that you can use to identify the customer group (must + be unique within the environment). + example: vip1 reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -25524,7 +33268,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -25555,7 +33299,9 @@ components: markets: $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_markets' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_customer_groups_201_response_data: properties: id: @@ -25578,9 +33324,14 @@ components: GET_customer_groups_customerGroupId_200_response_data_attributes: properties: name: - description: The customer group's internal name + description: The customer group's internal name. example: VIP nullable: false + code: + description: A string that you can use to identify the customer group (must + be unique within the environment). + example: vip1 + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -25597,7 +33348,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -25629,9 +33380,14 @@ components: PATCH_customer_groups_customerGroupId_200_response_data_attributes: properties: name: - description: The customer group's internal name + description: The customer group's internal name. example: VIP nullable: false + code: + description: A string that you can use to identify the customer group (must + be unique within the environment). + example: vip1 + nullable: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -25640,7 +33396,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -25689,7 +33445,7 @@ components: properties: customer_email: description: The email of the customer that requires a password - reset + reset. example: john@example.com nullable: false reset_password_token: @@ -25719,7 +33475,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -25766,7 +33522,7 @@ components: POST_customer_password_resets_201_response_data_attributes: properties: customer_email: - description: The email of the customer that requires a password reset + description: The email of the customer that requires a password reset. example: john@example.com reference: description: "A string that you can use to add any external identifier to\ @@ -25775,7 +33531,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -25790,7 +33546,7 @@ components: customer: $ref: '#/components/schemas/POST_coupon_recipients_201_response_data_relationships_customer' events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' POST_customer_password_resets_201_response_data: properties: id: @@ -25813,7 +33569,7 @@ components: GET_customer_password_resets_customerPasswordResetId_200_response_data_attributes: properties: customer_email: - description: The email of the customer that requires a password reset + description: The email of the customer that requires a password reset. example: john@example.com nullable: false reset_password_token: @@ -25841,7 +33597,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -25888,7 +33644,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -25936,16 +33692,16 @@ components: attributes: properties: name: - description: Returns the associated payment source's name + description: Returns the associated payment source's name. example: XXXX-XXXX-XXXX-1111 nullable: true customer_token: description: Returns the customer gateway token stored in the - gateway + gateway. example: cus_xxxyyyzzz nullable: true payment_source_token: - description: Returns the payment source token stored in the gateway + description: Returns the payment source token stored in the gateway. example: pm_xxxyyyzzz nullable: true created_at: @@ -25965,7 +33721,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -25993,6 +33749,22 @@ components: - customer id: description: The resource ID + payment_method: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - payment_method + id: + description: The resource ID payment_source: properties: links: @@ -26009,6 +33781,59 @@ components: - payment_source id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID + POST_customer_payment_sources_201_response_data_attributes: + properties: + customer_token: + description: Returns the customer gateway token stored in the gateway. + example: cus_xxxyyyzzz + payment_source_token: + description: Returns the payment source token stored in the gateway. + example: pm_xxxyyyzzz + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + POST_customer_payment_sources_201_response_data_relationships_payment_method_data: + properties: + type: + description: The resource's type + enum: + - payment_method + id: + description: The resource ID + POST_customer_payment_sources_201_response_data_relationships_payment_method: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_customer_payment_sources_201_response_data_relationships_payment_method_data' POST_customer_payment_sources_201_response_data_relationships_payment_source_data: properties: type: @@ -26027,8 +33852,12 @@ components: properties: customer: $ref: '#/components/schemas/POST_coupon_recipients_201_response_data_relationships_customer' + payment_method: + $ref: '#/components/schemas/POST_customer_payment_sources_201_response_data_relationships_payment_method' payment_source: $ref: '#/components/schemas/POST_customer_payment_sources_201_response_data_relationships_payment_source' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_customer_payment_sources_201_response_data: properties: id: @@ -26041,7 +33870,7 @@ components: links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/POST_adyen_payments_201_response_data_attributes' + $ref: '#/components/schemas/POST_customer_payment_sources_201_response_data_attributes' relationships: $ref: '#/components/schemas/POST_customer_payment_sources_201_response_data_relationships' POST_customer_payment_sources_201_response: @@ -26051,15 +33880,15 @@ components: GET_customer_payment_sources_customerPaymentSourceId_200_response_data_attributes: properties: name: - description: Returns the associated payment source's name + description: Returns the associated payment source's name. example: XXXX-XXXX-XXXX-1111 nullable: true customer_token: - description: Returns the customer gateway token stored in the gateway + description: Returns the customer gateway token stored in the gateway. example: cus_xxxyyyzzz nullable: true payment_source_token: - description: Returns the payment source token stored in the gateway + description: Returns the payment source token stored in the gateway. example: pm_xxxyyyzzz nullable: true created_at: @@ -26078,7 +33907,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -26107,6 +33936,34 @@ components: properties: data: $ref: '#/components/schemas/GET_customer_payment_sources_customerPaymentSourceId_200_response_data' + PATCH_customer_payment_sources_customerPaymentSourceId_200_response_data_attributes: + properties: + customer_token: + description: Returns the customer gateway token stored in the gateway. + example: cus_xxxyyyzzz + nullable: true + payment_source_token: + description: Returns the payment source token stored in the gateway. + example: pm_xxxyyyzzz + nullable: true + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true PATCH_customer_payment_sources_customerPaymentSourceId_200_response_data: properties: id: @@ -26119,7 +33976,7 @@ components: links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/PATCH_billing_info_validation_rules_billingInfoValidationRuleId_200_response_data_attributes' + $ref: '#/components/schemas/PATCH_customer_payment_sources_customerPaymentSourceId_200_response_data_attributes' relationships: $ref: '#/components/schemas/POST_customer_payment_sources_201_response_data_relationships' PATCH_customer_payment_sources_customerPaymentSourceId_200_response: @@ -26145,9 +34002,16 @@ components: attributes: properties: customer_email: - description: The email of the customer that owns the subscription + description: The email of the customer that owns the subscription. example: john@example.com nullable: false + reference: + description: "A string that you can use to add any external identifier\ + \ to the resource. This can be useful for integrating the resource\ + \ to an external system, like an ERP, a marketing tool, a CRM,\ + \ or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -26156,16 +34020,9 @@ components: description: Time at which the resource was last updated. example: 2018-01-01T12:00:00.000Z nullable: false - reference: - description: "A string that you can use to add any external identifier\ - \ to the resource. This can be useful for integrating the resource\ - \ to an external system, like an ERP, a marketing tool, a CRM,\ - \ or whatever." - example: ANY-EXTERNAL-REFEFERNCE - nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -26178,13 +34035,57 @@ components: relationships: properties: customer: - $ref: '#/components/schemas/POST_coupon_recipients_201_response_data_relationships_customer' + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - customer + id: + description: The resource ID events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_customer_subscriptions_201_response_data_attributes: properties: customer_email: - description: The email of the customer that owns the subscription + description: The email of the customer that owns the subscription. example: john@example.com reference: description: "A string that you can use to add any external identifier to\ @@ -26193,7 +34094,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -26203,6 +34104,15 @@ components: foo: bar required: - customer_email + - reference + POST_customer_subscriptions_201_response_data_relationships: + properties: + customer: + $ref: '#/components/schemas/POST_coupon_recipients_201_response_data_relationships_customer' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_customer_subscriptions_201_response_data: properties: id: @@ -26217,7 +34127,7 @@ components: attributes: $ref: '#/components/schemas/POST_customer_subscriptions_201_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_customer_password_resets_201_response_data_relationships' + $ref: '#/components/schemas/POST_customer_subscriptions_201_response_data_relationships' POST_customer_subscriptions_201_response: properties: data: @@ -26225,9 +34135,15 @@ components: GET_customer_subscriptions_customerSubscriptionId_200_response_data_attributes: properties: customer_email: - description: The email of the customer that owns the subscription + description: The email of the customer that owns the subscription. example: john@example.com nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -26236,15 +34152,9 @@ components: description: Time at which the resource was last updated. example: 2018-01-01T12:00:00.000Z nullable: false - reference: - description: "A string that you can use to add any external identifier to\ - \ the resource. This can be useful for integrating the resource to an\ - \ external system, like an ERP, a marketing tool, a CRM, or whatever." - example: ANY-EXTERNAL-REFEFERNCE - nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -26268,11 +34178,31 @@ components: attributes: $ref: '#/components/schemas/GET_customer_subscriptions_customerSubscriptionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_customer_password_resets_201_response_data_relationships' + $ref: '#/components/schemas/POST_customer_subscriptions_201_response_data_relationships' GET_customer_subscriptions_customerSubscriptionId_200_response: properties: data: $ref: '#/components/schemas/GET_customer_subscriptions_customerSubscriptionId_200_response_data' + PATCH_customer_subscriptions_customerSubscriptionId_200_response_data_attributes: + properties: + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: false + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true PATCH_customer_subscriptions_customerSubscriptionId_200_response_data: properties: id: @@ -26285,9 +34215,9 @@ components: links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/PATCH_billing_info_validation_rules_billingInfoValidationRuleId_200_response_data_attributes' + $ref: '#/components/schemas/PATCH_customer_subscriptions_customerSubscriptionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_customer_password_resets_201_response_data_relationships' + $ref: '#/components/schemas/POST_customer_subscriptions_201_response_data_relationships' PATCH_customer_subscriptions_customerSubscriptionId_200_response: properties: data: @@ -26311,12 +34241,12 @@ components: attributes: properties: email: - description: The customer's email address + description: The customer's email address. example: john@example.com nullable: false status: - description: "The customer's status, one of 'prospect', 'acquired',\ - \ or 'repeat'." + description: "The customer's status. One of 'prospect' (default),\ + \ 'acquired', or 'repeat'." enum: - prospect - acquired @@ -26327,6 +34257,15 @@ components: description: Indicates if the customer has a password. example: false nullable: true + total_orders_count: + description: The total number of orders for the customer. + example: 6 + nullable: true + shopper_reference: + description: A reference to uniquely identify the shopper during + payment sessions. + example: xxx-yyy-zzz + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -26344,7 +34283,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -26516,15 +34455,35 @@ components: - events id: description: The resource ID + tags: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - tags + id: + description: The resource ID POST_customers_201_response_data_attributes: properties: email: - description: The customer's email address + description: The customer's email address. example: john@example.com password: description: The customer's password. Initiate a customer password reset flow if you need to change it. example: secret + shopper_reference: + description: A reference to uniquely identify the shopper during payment + sessions. + example: xxx-yyy-zzz reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -26532,7 +34491,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -26673,9 +34632,11 @@ components: sku_lists: $ref: '#/components/schemas/POST_customers_201_response_data_relationships_sku_lists' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' POST_customers_201_response_data: properties: id: @@ -26698,11 +34659,12 @@ components: GET_customers_customerId_200_response_data_attributes: properties: email: - description: The customer's email address + description: The customer's email address. example: john@example.com nullable: false status: - description: "The customer's status, one of 'prospect', 'acquired', or 'repeat'." + description: "The customer's status. One of 'prospect' (default), 'acquired',\ + \ or 'repeat'." enum: - prospect - acquired @@ -26713,6 +34675,15 @@ components: description: Indicates if the customer has a password. example: false nullable: true + total_orders_count: + description: The total number of orders for the customer. + example: 6 + nullable: true + shopper_reference: + description: A reference to uniquely identify the shopper during payment + sessions. + example: xxx-yyy-zzz + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -26729,7 +34700,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -26761,13 +34732,18 @@ components: PATCH_customers_customerId_200_response_data_attributes: properties: email: - description: The customer's email address + description: The customer's email address. example: john@example.com nullable: false password: description: The customer's password. Initiate a customer password reset flow if you need to change it. example: secret + shopper_reference: + description: A reference to uniquely identify the shopper during payment + sessions. + example: xxx-yyy-zzz + nullable: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -26776,7 +34752,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -26836,11 +34812,11 @@ components: example: 72 nullable: false min_days: - description: "The delivery lead minimum time, in days (rounded)" + description: "The delivery lead minimum time, in days (rounded)." example: 2 nullable: true max_days: - description: "The delivery lead maximun time, in days (rounded)" + description: "The delivery lead maximun time, in days (rounded)." example: 3 nullable: true created_at: @@ -26860,7 +34836,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -26920,6 +34896,22 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_delivery_lead_times_201_response_data_attributes: properties: min_hours: @@ -26937,7 +34929,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -26983,7 +34975,9 @@ components: shipping_method: $ref: '#/components/schemas/POST_delivery_lead_times_201_response_data_relationships_shipping_method' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_delivery_lead_times_201_response_data: properties: id: @@ -27016,11 +35010,11 @@ components: example: 72 nullable: false min_days: - description: "The delivery lead minimum time, in days (rounded)" + description: "The delivery lead minimum time, in days (rounded)." example: 2 nullable: true max_days: - description: "The delivery lead maximun time, in days (rounded)" + description: "The delivery lead maximun time, in days (rounded)." example: 3 nullable: true created_at: @@ -27039,7 +35033,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -27088,7 +35082,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -27174,7 +35168,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -27241,7 +35235,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -27327,7 +35321,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -27339,7 +35333,7 @@ components: nullable: true relationships: properties: - last_event_callbacks: + webhooks: properties: links: properties: @@ -27352,10 +35346,10 @@ components: type: description: The resource's type enum: - - last_event_callbacks + - webhooks id: description: The resource ID - webhooks: + last_event_callbacks: properties: links: properties: @@ -27368,7 +35362,7 @@ components: type: description: The resource's type enum: - - webhooks + - last_event_callbacks id: description: The resource ID GET_events_eventId_200_response_data_attributes: @@ -27393,7 +35387,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -27403,40 +35397,40 @@ components: example: foo: bar nullable: true - GET_events_eventId_200_response_data_relationships_last_event_callbacks_data: + GET_events_eventId_200_response_data_relationships_webhooks_data: properties: type: description: The resource's type enum: - - last_event_callbacks + - webhooks id: description: The resource ID - GET_events_eventId_200_response_data_relationships_last_event_callbacks: + GET_events_eventId_200_response_data_relationships_webhooks: properties: links: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: - $ref: '#/components/schemas/GET_events_eventId_200_response_data_relationships_last_event_callbacks_data' - GET_events_eventId_200_response_data_relationships_webhooks_data: + $ref: '#/components/schemas/GET_events_eventId_200_response_data_relationships_webhooks_data' + GET_events_eventId_200_response_data_relationships_last_event_callbacks_data: properties: type: description: The resource's type enum: - - webhooks + - last_event_callbacks id: description: The resource ID - GET_events_eventId_200_response_data_relationships_webhooks: + GET_events_eventId_200_response_data_relationships_last_event_callbacks: properties: links: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: - $ref: '#/components/schemas/GET_events_eventId_200_response_data_relationships_webhooks_data' + $ref: '#/components/schemas/GET_events_eventId_200_response_data_relationships_last_event_callbacks_data' GET_events_eventId_200_response_data_relationships: properties: - last_event_callbacks: - $ref: '#/components/schemas/GET_events_eventId_200_response_data_relationships_last_event_callbacks' webhooks: $ref: '#/components/schemas/GET_events_eventId_200_response_data_relationships_webhooks' + last_event_callbacks: + $ref: '#/components/schemas/GET_events_eventId_200_response_data_relationships_last_event_callbacks' GET_events_eventId_200_response_data: properties: id: @@ -27456,6 +35450,50 @@ components: properties: data: $ref: '#/components/schemas/GET_events_eventId_200_response_data' + PATCH_events_eventId_200_response_data_attributes: + properties: + _trigger: + description: Send this attribute if you want to force webhooks execution + for this event. Cannot be passed by sales channels. + example: true + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + PATCH_events_eventId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - events + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/PATCH_events_eventId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/GET_events_eventId_200_response_data_relationships' + PATCH_events_eventId_200_response: + properties: + data: + $ref: '#/components/schemas/PATCH_events_eventId_200_response_data' GET_exports_200_response: properties: data: @@ -27485,10 +35523,11 @@ components: nullable: true status: description: "The export job status. One of 'pending' (default),\ - \ 'in_progress', or 'completed'." + \ 'in_progress', 'interrupted', or 'completed'." enum: - pending - in_progress + - interrupted - completed example: in_progress nullable: false @@ -27548,7 +35587,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -27561,7 +35600,21 @@ components: relationships: properties: events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource ID POST_exports_201_response_data_attributes: properties: resource_type: @@ -27591,7 +35644,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -27601,6 +35654,10 @@ components: foo: bar required: - resource_type + POST_exports_201_response_data_relationships: + properties: + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' POST_exports_201_response_data: properties: id: @@ -27615,7 +35672,7 @@ components: attributes: $ref: '#/components/schemas/POST_exports_201_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_cleanups_201_response_data_relationships' + $ref: '#/components/schemas/POST_exports_201_response_data_relationships' POST_exports_201_response: properties: data: @@ -27632,10 +35689,11 @@ components: nullable: true status: description: "The export job status. One of 'pending' (default), 'in_progress',\ - \ or 'completed'." + \ 'interrupted', or 'completed'." enum: - pending - in_progress + - interrupted - completed example: in_progress nullable: false @@ -27693,7 +35751,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -27717,11 +35775,30 @@ components: attributes: $ref: '#/components/schemas/GET_exports_exportId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_cleanups_201_response_data_relationships' + $ref: '#/components/schemas/POST_exports_201_response_data_relationships' GET_exports_exportId_200_response: properties: data: $ref: '#/components/schemas/GET_exports_exportId_200_response_data' + PATCH_exports_exportId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - exports + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/PATCH_billing_info_validation_rules_billingInfoValidationRuleId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_exports_201_response_data_relationships' + PATCH_exports_exportId_200_response: + properties: + data: + $ref: '#/components/schemas/PATCH_exports_exportId_200_response_data' GET_external_gateways_200_response: properties: data: @@ -27761,7 +35838,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -27771,11 +35848,6 @@ components: example: foo: bar nullable: true - shared_secret: - description: The shared secret used to sign the external request - payload. - example: 1c0994cc4e996e8c6ee56a2198f66f3c - nullable: false authorize_url: description: The endpoint used by the external gateway to authorize payments. @@ -27801,6 +35873,24 @@ components: a customer payment token. example: https://external_gateway.com/token nullable: true + circuit_state: + description: "The circuit breaker state, by default it is 'closed'.\ + \ It can become 'open' once the number of consecutive failures\ + \ overlaps the specified threshold, in such case no further\ + \ calls to the failing callback are made." + example: closed + nullable: true + circuit_failure_count: + description: "The number of consecutive failures recorded by the\ + \ circuit breaker associated to this resource, will be reset\ + \ on first successful call to callback." + example: 5 + nullable: true + shared_secret: + description: The shared secret used to sign the external request + payload. + example: 1c0994cc4e996e8c6ee56a2198f66f3c + nullable: false relationships: properties: payment_methods: @@ -27819,6 +35909,22 @@ components: - payment_methods id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID external_payments: properties: links: @@ -27847,7 +35953,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -27891,6 +35997,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/POST_adyen_gateways_201_response_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' external_payments: $ref: '#/components/schemas/POST_external_gateways_201_response_data_relationships_external_payments' POST_external_gateways_201_response_data: @@ -27934,7 +36042,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -27944,10 +36052,6 @@ components: example: foo: bar nullable: true - shared_secret: - description: The shared secret used to sign the external request payload. - example: 1c0994cc4e996e8c6ee56a2198f66f3c - nullable: false authorize_url: description: The endpoint used by the external gateway to authorize payments. example: https://external_gateway.com/authorize @@ -27969,6 +36073,23 @@ components: payment token. example: https://external_gateway.com/token nullable: true + circuit_state: + description: "The circuit breaker state, by default it is 'closed'. It can\ + \ become 'open' once the number of consecutive failures overlaps the specified\ + \ threshold, in such case no further calls to the failing callback are\ + \ made." + example: closed + nullable: true + circuit_failure_count: + description: "The number of consecutive failures recorded by the circuit\ + \ breaker associated to this resource, will be reset on first successful\ + \ call to callback." + example: 5 + nullable: true + shared_secret: + description: The shared secret used to sign the external request payload. + example: 1c0994cc4e996e8c6ee56a2198f66f3c + nullable: false GET_external_gateways_externalGatewayId_200_response_data: properties: id: @@ -28002,7 +36123,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -28033,6 +36154,12 @@ components: payment token. example: https://external_gateway.com/token nullable: true + _reset_circuit: + description: Send this attribute if you want to reset the circuit breaker + associated to this resource to 'closed' state and zero failures count. + Cannot be passed by sales channels. + example: true + nullable: false PATCH_external_gateways_externalGatewayId_200_response_data: properties: id: @@ -28082,9 +36209,9 @@ components: nullable: true payment_instrument: description: Information about the payment instrument used in - the transaction + the transaction. example: - issuer_type: external_payment + issuer: cl bank card_type: visa nullable: true created_at: @@ -28104,7 +36231,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -28164,6 +36291,22 @@ components: - wallet id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_external_payments_201_response_data_attributes: properties: payment_source_token: @@ -28181,7 +36324,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -28213,6 +36356,8 @@ components: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_payment_gateway' wallet: $ref: '#/components/schemas/POST_external_payments_201_response_data_relationships_wallet' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_external_payments_201_response_data: properties: id: @@ -28245,9 +36390,9 @@ components: foo: bar nullable: true payment_instrument: - description: Information about the payment instrument used in the transaction + description: Information about the payment instrument used in the transaction. example: - issuer_type: external_payment + issuer: cl bank card_type: visa nullable: true created_at: @@ -28266,7 +36411,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -28310,7 +36455,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -28361,11 +36506,34 @@ components: description: The promotion's internal name. example: Personal promotion nullable: false + type: + description: The promotion's type. + enum: + - percentage_discount_promotions + - free_shipping_promotions + - buy_x_pay_y_promotions + - free_gift_promotions + - fixed_price_promotions + - external_promotions + - fixed_amount_promotions + - flex_promotions + example: percentage_discount_promotions + nullable: false currency_code: description: The international 3-letter currency code as defined by the ISO 4217 standard. example: EUR nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively,\ + \ based on its priority score." + example: true + nullable: true + priority: + description: The priority assigned to the promotion (lower means + higher priority). + example: 2 + nullable: true starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -28377,16 +36545,33 @@ components: nullable: false total_usage_limit: description: The total number of times this promotion can be applied. + When 'null' it means promotion can be applied infinite times. example: 5 - nullable: false + nullable: true total_usage_count: description: The number of times this promotion has been applied. example: 2 nullable: true active: - description: Indicates if the promotion is active. + description: Indicates if the promotion is active (enabled and + not expired). example: true nullable: true + status: + description: "The promotion status. One of 'disabled', 'expired',\ + \ 'pending', 'active', or 'inactive'." + enum: + - disabled + - expired + - pending + - active + - inactive + example: pending + nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -28404,7 +36589,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -28418,6 +36603,19 @@ components: description: The URL to the service that will compute the discount. example: https://external_promotion.yourbrand.com nullable: false + circuit_state: + description: "The circuit breaker state, by default it is 'closed'.\ + \ It can become 'open' once the number of consecutive failures\ + \ overlaps the specified threshold, in such case no further\ + \ calls to the failing callback are made." + example: closed + nullable: true + circuit_failure_count: + description: "The number of consecutive failures recorded by the\ + \ circuit breaker associated to this resource, will be reset\ + \ on first successful call to callback." + example: 5 + nullable: true shared_secret: description: The shared secret used to sign the external request payload. @@ -28426,117 +36624,31 @@ components: relationships: properties: market: - properties: - links: - properties: - self: - description: URL - related: - description: URL - data: - properties: - type: - description: The resource's type - enum: - - market - id: - description: The resource ID + $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships_market' promotion_rules: - properties: - links: - properties: - self: - description: URL - related: - description: URL - data: - properties: - type: - description: The resource's type - enum: - - promotion_rules - id: - description: The resource ID + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_promotion_rules' order_amount_promotion_rule: - properties: - links: - properties: - self: - description: URL - related: - description: URL - data: - properties: - type: - description: The resource's type - enum: - - order_amount_promotion_rule - id: - description: The resource ID + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_order_amount_promotion_rule' sku_list_promotion_rule: - properties: - links: - properties: - self: - description: URL - related: - description: URL - data: - properties: - type: - description: The resource's type - enum: - - sku_list_promotion_rule - id: - description: The resource ID + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_sku_list_promotion_rule' coupon_codes_promotion_rule: - properties: - links: - properties: - self: - description: URL - related: - description: URL - data: - properties: - type: - description: The resource's type - enum: - - coupon_codes_promotion_rule - id: - description: The resource ID + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule' + custom_promotion_rule: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_custom_promotion_rule' + sku_list: + $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_sku_list' + coupons: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupons' attachments: - properties: - links: - properties: - self: - description: URL - related: - description: URL - data: - properties: - type: - description: The resource's type - enum: - - attachments - id: - description: The resource ID + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' events: - properties: - links: - properties: - self: - description: URL - related: - description: URL - data: - properties: - type: - description: The resource's type - enum: - - events - id: - description: The resource ID + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + skus: + $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_skus' POST_external_promotions_201_response_data_attributes: properties: name: @@ -28546,6 +36658,14 @@ components: description: The international 3-letter currency code as defined by the ISO 4217 standard. example: EUR + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -28553,8 +36673,15 @@ components: description: The expiration date/time of this promotion (must be after starts_at). example: 2018-01-02T12:00:00.000Z total_usage_limit: - description: The total number of times this promotion can be applied. + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. example: 5 + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -28562,7 +36689,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -28578,79 +36705,6 @@ components: - name - promotion_url - starts_at - - total_usage_limit - POST_external_promotions_201_response_data_relationships_promotion_rules_data: - properties: - type: - description: The resource's type - enum: - - promotion_rules - id: - description: The resource ID - POST_external_promotions_201_response_data_relationships_promotion_rules: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_promotion_rules_data' - POST_external_promotions_201_response_data_relationships_order_amount_promotion_rule_data: - properties: - type: - description: The resource's type - enum: - - order_amount_promotion_rule - id: - description: The resource ID - POST_external_promotions_201_response_data_relationships_order_amount_promotion_rule: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_order_amount_promotion_rule_data' - POST_external_promotions_201_response_data_relationships_sku_list_promotion_rule_data: - properties: - type: - description: The resource's type - enum: - - sku_list_promotion_rule - id: - description: The resource ID - POST_external_promotions_201_response_data_relationships_sku_list_promotion_rule: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_sku_list_promotion_rule_data' - POST_external_promotions_201_response_data_relationships_coupon_codes_promotion_rule_data: - properties: - type: - description: The resource's type - enum: - - coupon_codes_promotion_rule - id: - description: The resource ID - POST_external_promotions_201_response_data_relationships_coupon_codes_promotion_rule: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_coupon_codes_promotion_rule_data' - POST_external_promotions_201_response_data_relationships: - properties: - market: - $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships_market' - promotion_rules: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_promotion_rules' - order_amount_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_order_amount_promotion_rule' - sku_list_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_sku_list_promotion_rule' - coupon_codes_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_coupon_codes_promotion_rule' - attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' - events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' POST_external_promotions_201_response_data: properties: id: @@ -28665,7 +36719,7 @@ components: attributes: $ref: '#/components/schemas/POST_external_promotions_201_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships' POST_external_promotions_201_response: properties: data: @@ -28676,11 +36730,34 @@ components: description: The promotion's internal name. example: Personal promotion nullable: false + type: + description: The promotion's type. + enum: + - percentage_discount_promotions + - free_shipping_promotions + - buy_x_pay_y_promotions + - free_gift_promotions + - fixed_price_promotions + - external_promotions + - fixed_amount_promotions + - flex_promotions + example: percentage_discount_promotions + nullable: false currency_code: description: The international 3-letter currency code as defined by the ISO 4217 standard. example: EUR nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + nullable: true + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 + nullable: true starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -28690,17 +36767,33 @@ components: example: 2018-01-02T12:00:00.000Z nullable: false total_usage_limit: - description: The total number of times this promotion can be applied. + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. example: 5 - nullable: false + nullable: true total_usage_count: description: The number of times this promotion has been applied. example: 2 nullable: true active: - description: Indicates if the promotion is active. + description: Indicates if the promotion is active (enabled and not expired). example: true nullable: true + status: + description: "The promotion status. One of 'disabled', 'expired', 'pending',\ + \ 'active', or 'inactive'." + enum: + - disabled + - expired + - pending + - active + - inactive + example: pending + nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -28717,7 +36810,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -28731,6 +36824,19 @@ components: description: The URL to the service that will compute the discount. example: https://external_promotion.yourbrand.com nullable: false + circuit_state: + description: "The circuit breaker state, by default it is 'closed'. It can\ + \ become 'open' once the number of consecutive failures overlaps the specified\ + \ threshold, in such case no further calls to the failing callback are\ + \ made." + example: closed + nullable: true + circuit_failure_count: + description: "The number of consecutive failures recorded by the circuit\ + \ breaker associated to this resource, will be reset on first successful\ + \ call to callback." + example: 5 + nullable: true shared_secret: description: The shared secret used to sign the external request payload. example: 1c0994cc4e996e8c6ee56a2198f66f3c @@ -28749,7 +36855,7 @@ components: attributes: $ref: '#/components/schemas/GET_external_promotions_externalPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships' GET_external_promotions_externalPromotionId_200_response: properties: data: @@ -28765,6 +36871,16 @@ components: ISO 4217 standard. example: EUR nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + nullable: false + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 + nullable: true starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -28774,8 +36890,17 @@ components: example: 2018-01-02T12:00:00.000Z nullable: false total_usage_limit: - description: The total number of times this promotion can be applied. + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. example: 5 + nullable: true + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + nullable: false + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true nullable: false reference: description: "A string that you can use to add any external identifier to\ @@ -28785,7 +36910,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -28799,6 +36924,12 @@ components: description: The URL to the service that will compute the discount. example: https://external_promotion.yourbrand.com nullable: false + _reset_circuit: + description: Send this attribute if you want to reset the circuit breaker + associated to this resource to 'closed' state and zero failures count. + Cannot be passed by sales channels. + example: true + nullable: false PATCH_external_promotions_externalPromotionId_200_response_data: properties: id: @@ -28813,7 +36944,7 @@ components: attributes: $ref: '#/components/schemas/PATCH_external_promotions_externalPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships' PATCH_external_promotions_externalPromotionId_200_response: properties: data: @@ -28840,6 +36971,15 @@ components: description: The tax calculator's internal name. example: Personal tax calculator nullable: false + type: + description: The tax calculator's type. + enum: + - avalara_accounts + - taxjar_accounts + - manual_tax_calculators + - external_tax_calculators + example: avalara_accounts + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -28857,7 +36997,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -28871,6 +37011,19 @@ components: description: The URL to the service that will compute the taxes. example: https://external_calculator.yourbrand.com nullable: false + circuit_state: + description: "The circuit breaker state, by default it is 'closed'.\ + \ It can become 'open' once the number of consecutive failures\ + \ overlaps the specified threshold, in such case no further\ + \ calls to the failing callback are made." + example: closed + nullable: true + circuit_failure_count: + description: "The number of consecutive failures recorded by the\ + \ circuit breaker associated to this resource, will be reset\ + \ on first successful call to callback." + example: 5 + nullable: true shared_secret: description: The shared secret used to sign the external request payload. @@ -28910,6 +37063,22 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_external_tax_calculators_201_response_data_attributes: properties: name: @@ -28922,7 +37091,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -28941,7 +37110,9 @@ components: markets: $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_markets' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_external_tax_calculators_201_response_data: properties: id: @@ -28967,6 +37138,15 @@ components: description: The tax calculator's internal name. example: Personal tax calculator nullable: false + type: + description: The tax calculator's type. + enum: + - avalara_accounts + - taxjar_accounts + - manual_tax_calculators + - external_tax_calculators + example: avalara_accounts + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -28983,7 +37163,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -28997,6 +37177,19 @@ components: description: The URL to the service that will compute the taxes. example: https://external_calculator.yourbrand.com nullable: false + circuit_state: + description: "The circuit breaker state, by default it is 'closed'. It can\ + \ become 'open' once the number of consecutive failures overlaps the specified\ + \ threshold, in such case no further calls to the failing callback are\ + \ made." + example: closed + nullable: true + circuit_failure_count: + description: "The number of consecutive failures recorded by the circuit\ + \ breaker associated to this resource, will be reset on first successful\ + \ call to callback." + example: 5 + nullable: true shared_secret: description: The shared secret used to sign the external request payload. example: 1c0994cc4e996e8c6ee56a2198f66f3c @@ -29034,7 +37227,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -29048,6 +37241,12 @@ components: description: The URL to the service that will compute the taxes. example: https://external_calculator.yourbrand.com nullable: false + _reset_circuit: + description: Send this attribute if you want to reset the circuit breaker + associated to this resource to 'closed' state and zero failures count. + Cannot be passed by sales channels. + example: true + nullable: false PATCH_external_tax_calculators_externalTaxCalculatorId_200_response_data: properties: id: @@ -29089,11 +37288,34 @@ components: description: The promotion's internal name. example: Personal promotion nullable: false + type: + description: The promotion's type. + enum: + - percentage_discount_promotions + - free_shipping_promotions + - buy_x_pay_y_promotions + - free_gift_promotions + - fixed_price_promotions + - external_promotions + - fixed_amount_promotions + - flex_promotions + example: percentage_discount_promotions + nullable: false currency_code: description: The international 3-letter currency code as defined by the ISO 4217 standard. example: EUR nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively,\ + \ based on its priority score." + example: true + nullable: true + priority: + description: The priority assigned to the promotion (lower means + higher priority). + example: 2 + nullable: true starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -29105,16 +37327,33 @@ components: nullable: false total_usage_limit: description: The total number of times this promotion can be applied. + When 'null' it means promotion can be applied infinite times. example: 5 - nullable: false + nullable: true total_usage_count: description: The number of times this promotion has been applied. example: 2 nullable: true active: - description: Indicates if the promotion is active. + description: Indicates if the promotion is active (enabled and + not expired). example: true nullable: true + status: + description: "The promotion status. One of 'disabled', 'expired',\ + \ 'pending', 'active', or 'inactive'." + enum: + - disabled + - expired + - pending + - active + - inactive + example: pending + nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -29132,7 +37371,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -29143,7 +37382,7 @@ components: foo: bar nullable: true fixed_amount_cents: - description: "The discount fixed amount to be applied, in cents" + description: "The discount fixed amount to be applied, in cents." example: 1000 nullable: false fixed_amount_float: @@ -29159,17 +37398,29 @@ components: market: $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships_market' promotion_rules: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_promotion_rules' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_promotion_rules' order_amount_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_order_amount_promotion_rule' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_order_amount_promotion_rule' sku_list_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_sku_list_promotion_rule' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_sku_list_promotion_rule' coupon_codes_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_coupon_codes_promotion_rule' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule' + custom_promotion_rule: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_custom_promotion_rule' + sku_list: + $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_sku_list' + coupons: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupons' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + skus: + $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_skus' POST_fixed_amount_promotions_201_response_data_attributes: properties: name: @@ -29179,6 +37430,14 @@ components: description: The international 3-letter currency code as defined by the ISO 4217 standard. example: EUR + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -29186,8 +37445,15 @@ components: description: The expiration date/time of this promotion (must be after starts_at). example: 2018-01-02T12:00:00.000Z total_usage_limit: - description: The total number of times this promotion can be applied. + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. example: 5 + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -29195,7 +37461,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -29204,14 +37470,13 @@ components: example: foo: bar fixed_amount_cents: - description: "The discount fixed amount to be applied, in cents" + description: "The discount fixed amount to be applied, in cents." example: 1000 required: - expires_at - fixed_amount_cents - name - starts_at - - total_usage_limit POST_fixed_amount_promotions_201_response_data: properties: id: @@ -29226,12 +37491,139 @@ components: attributes: $ref: '#/components/schemas/POST_fixed_amount_promotions_201_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships' POST_fixed_amount_promotions_201_response: properties: data: $ref: '#/components/schemas/POST_fixed_amount_promotions_201_response_data' GET_fixed_amount_promotions_fixedAmountPromotionId_200_response_data_attributes: + properties: + name: + description: The promotion's internal name. + example: Personal promotion + nullable: false + type: + description: The promotion's type. + enum: + - percentage_discount_promotions + - free_shipping_promotions + - buy_x_pay_y_promotions + - free_gift_promotions + - fixed_price_promotions + - external_promotions + - fixed_amount_promotions + - flex_promotions + example: percentage_discount_promotions + nullable: false + currency_code: + description: The international 3-letter currency code as defined by the + ISO 4217 standard. + example: EUR + nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + nullable: true + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 + nullable: true + starts_at: + description: The activation date/time of this promotion. + example: 2018-01-01T12:00:00.000Z + nullable: false + expires_at: + description: The expiration date/time of this promotion (must be after starts_at). + example: 2018-01-02T12:00:00.000Z + nullable: false + total_usage_limit: + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. + example: 5 + nullable: true + total_usage_count: + description: The number of times this promotion has been applied. + example: 2 + nullable: true + active: + description: Indicates if the promotion is active (enabled and not expired). + example: true + nullable: true + status: + description: "The promotion status. One of 'disabled', 'expired', 'pending',\ + \ 'active', or 'inactive'." + enum: + - disabled + - expired + - pending + - active + - inactive + example: pending + nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + fixed_amount_cents: + description: "The discount fixed amount to be applied, in cents." + example: 1000 + nullable: false + fixed_amount_float: + description: "The discount fixed amount to be applied, float." + example: 10.0 + nullable: true + formatted_fixed_amount: + description: "The discount fixed amount to be applied, formatted." + example: "€10,00" + nullable: true + GET_fixed_amount_promotions_fixedAmountPromotionId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - fixed_amount_promotions + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/GET_fixed_amount_promotions_fixedAmountPromotionId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships' + GET_fixed_amount_promotions_fixedAmountPromotionId_200_response: + properties: + data: + $ref: '#/components/schemas/GET_fixed_amount_promotions_fixedAmountPromotionId_200_response_data' + PATCH_fixed_amount_promotions_fixedAmountPromotionId_200_response_data_attributes: properties: name: description: The promotion's internal name. @@ -29242,6 +37634,16 @@ components: ISO 4217 standard. example: EUR nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + nullable: false + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 + nullable: true starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -29251,17 +37653,361 @@ components: example: 2018-01-02T12:00:00.000Z nullable: false total_usage_limit: - description: The total number of times this promotion can be applied. + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. + example: 5 + nullable: true + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + nullable: false + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + fixed_amount_cents: + description: "The discount fixed amount to be applied, in cents." + example: 1000 + nullable: false + PATCH_fixed_amount_promotions_fixedAmountPromotionId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - fixed_amount_promotions + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/PATCH_fixed_amount_promotions_fixedAmountPromotionId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships' + PATCH_fixed_amount_promotions_fixedAmountPromotionId_200_response: + properties: + data: + $ref: '#/components/schemas/PATCH_fixed_amount_promotions_fixedAmountPromotionId_200_response_data' + GET_fixed_price_promotions_200_response: + properties: + data: + items: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - fixed_price_promotions + links: + properties: + self: + description: URL + attributes: + properties: + name: + description: The promotion's internal name. + example: Personal promotion + nullable: false + type: + description: The promotion's type. + enum: + - percentage_discount_promotions + - free_shipping_promotions + - buy_x_pay_y_promotions + - free_gift_promotions + - fixed_price_promotions + - external_promotions + - fixed_amount_promotions + - flex_promotions + example: percentage_discount_promotions + nullable: false + currency_code: + description: The international 3-letter currency code as defined + by the ISO 4217 standard. + example: EUR + nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively,\ + \ based on its priority score." + example: true + nullable: true + priority: + description: The priority assigned to the promotion (lower means + higher priority). + example: 2 + nullable: true + starts_at: + description: The activation date/time of this promotion. + example: 2018-01-01T12:00:00.000Z + nullable: false + expires_at: + description: The expiration date/time of this promotion (must + be after starts_at). + example: 2018-01-02T12:00:00.000Z + nullable: false + total_usage_limit: + description: The total number of times this promotion can be applied. + When 'null' it means promotion can be applied infinite times. + example: 5 + nullable: true + total_usage_count: + description: The number of times this promotion has been applied. + example: 2 + nullable: true + active: + description: Indicates if the promotion is active (enabled and + not expired). + example: true + nullable: true + status: + description: "The promotion status. One of 'disabled', 'expired',\ + \ 'pending', 'active', or 'inactive'." + enum: + - disabled + - expired + - pending + - active + - inactive + example: pending + nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier\ + \ to the resource. This can be useful for integrating the resource\ + \ to an external system, like an ERP, a marketing tool, a CRM,\ + \ or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines + the reference code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the + resource. This can be useful for storing additional information + about the resource in a structured format. + example: + foo: bar + nullable: true + fixed_amount_cents: + description: "The price fixed amount to be applied on matching\ + \ SKUs, in cents." + example: 1000 + nullable: false + fixed_amount_float: + description: "The discount fixed amount to be applied, float." + example: 10.0 + nullable: true + formatted_fixed_amount: + description: "The discount fixed amount to be applied, formatted." + example: "€10,00" + nullable: true + relationships: + properties: + market: + $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships_market' + promotion_rules: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_promotion_rules' + order_amount_promotion_rule: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_order_amount_promotion_rule' + sku_list_promotion_rule: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_sku_list_promotion_rule' + coupon_codes_promotion_rule: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule' + custom_promotion_rule: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_custom_promotion_rule' + sku_list: + $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_sku_list' + coupons: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupons' + attachments: + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + skus: + $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_skus' + POST_fixed_price_promotions_201_response_data_attributes: + properties: + name: + description: The promotion's internal name. + example: Personal promotion + currency_code: + description: The international 3-letter currency code as defined by the + ISO 4217 standard. + example: EUR + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 + starts_at: + description: The activation date/time of this promotion. + example: 2018-01-01T12:00:00.000Z + expires_at: + description: The expiration date/time of this promotion (must be after starts_at). + example: 2018-01-02T12:00:00.000Z + total_usage_limit: + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. example: 5 + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + fixed_amount_cents: + description: "The price fixed amount to be applied on matching SKUs, in\ + \ cents." + example: 1000 + required: + - expires_at + - fixed_amount_cents + - name + - starts_at + POST_fixed_price_promotions_201_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - fixed_price_promotions + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/POST_fixed_price_promotions_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships' + POST_fixed_price_promotions_201_response: + properties: + data: + $ref: '#/components/schemas/POST_fixed_price_promotions_201_response_data' + GET_fixed_price_promotions_fixedPricePromotionId_200_response_data_attributes: + properties: + name: + description: The promotion's internal name. + example: Personal promotion + nullable: false + type: + description: The promotion's type. + enum: + - percentage_discount_promotions + - free_shipping_promotions + - buy_x_pay_y_promotions + - free_gift_promotions + - fixed_price_promotions + - external_promotions + - fixed_amount_promotions + - flex_promotions + example: percentage_discount_promotions + nullable: false + currency_code: + description: The international 3-letter currency code as defined by the + ISO 4217 standard. + example: EUR + nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + nullable: true + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 + nullable: true + starts_at: + description: The activation date/time of this promotion. + example: 2018-01-01T12:00:00.000Z nullable: false + expires_at: + description: The expiration date/time of this promotion (must be after starts_at). + example: 2018-01-02T12:00:00.000Z + nullable: false + total_usage_limit: + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. + example: 5 + nullable: true total_usage_count: description: The number of times this promotion has been applied. example: 2 nullable: true active: - description: Indicates if the promotion is active. + description: Indicates if the promotion is active (enabled and not expired). example: true nullable: true + status: + description: "The promotion status. One of 'disabled', 'expired', 'pending',\ + \ 'active', or 'inactive'." + enum: + - disabled + - expired + - pending + - active + - inactive + example: pending + nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -29278,7 +38024,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -29289,7 +38035,8 @@ components: foo: bar nullable: true fixed_amount_cents: - description: "The discount fixed amount to be applied, in cents" + description: "The price fixed amount to be applied on matching SKUs, in\ + \ cents." example: 1000 nullable: false fixed_amount_float: @@ -29300,7 +38047,7 @@ components: description: "The discount fixed amount to be applied, formatted." example: "€10,00" nullable: true - GET_fixed_amount_promotions_fixedAmountPromotionId_200_response_data: + GET_fixed_price_promotions_fixedPricePromotionId_200_response_data: properties: id: description: The resource's id @@ -29308,18 +38055,18 @@ components: type: description: The resource's type enum: - - fixed_amount_promotions + - fixed_price_promotions links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/GET_fixed_amount_promotions_fixedAmountPromotionId_200_response_data_attributes' + $ref: '#/components/schemas/GET_fixed_price_promotions_fixedPricePromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships' - GET_fixed_amount_promotions_fixedAmountPromotionId_200_response: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships' + GET_fixed_price_promotions_fixedPricePromotionId_200_response: properties: data: - $ref: '#/components/schemas/GET_fixed_amount_promotions_fixedAmountPromotionId_200_response_data' - PATCH_fixed_amount_promotions_fixedAmountPromotionId_200_response_data_attributes: + $ref: '#/components/schemas/GET_fixed_price_promotions_fixedPricePromotionId_200_response_data' + PATCH_fixed_price_promotions_fixedPricePromotionId_200_response_data_attributes: properties: name: description: The promotion's internal name. @@ -29330,6 +38077,16 @@ components: ISO 4217 standard. example: EUR nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + nullable: false + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 + nullable: true starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -29339,8 +38096,17 @@ components: example: 2018-01-02T12:00:00.000Z nullable: false total_usage_limit: - description: The total number of times this promotion can be applied. + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. example: 5 + nullable: true + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + nullable: false + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true nullable: false reference: description: "A string that you can use to add any external identifier to\ @@ -29350,7 +38116,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -29361,10 +38127,11 @@ components: foo: bar nullable: true fixed_amount_cents: - description: "The discount fixed amount to be applied, in cents" + description: "The price fixed amount to be applied on matching SKUs, in\ + \ cents." example: 1000 nullable: false - PATCH_fixed_amount_promotions_fixedAmountPromotionId_200_response_data: + PATCH_fixed_price_promotions_fixedPricePromotionId_200_response_data: properties: id: description: The resource's id @@ -29372,18 +38139,18 @@ components: type: description: The resource's type enum: - - fixed_amount_promotions + - fixed_price_promotions links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/PATCH_fixed_amount_promotions_fixedAmountPromotionId_200_response_data_attributes' + $ref: '#/components/schemas/PATCH_fixed_price_promotions_fixedPricePromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships' - PATCH_fixed_amount_promotions_fixedAmountPromotionId_200_response: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships' + PATCH_fixed_price_promotions_fixedPricePromotionId_200_response: properties: data: - $ref: '#/components/schemas/PATCH_fixed_amount_promotions_fixedAmountPromotionId_200_response_data' - GET_fixed_price_promotions_200_response: + $ref: '#/components/schemas/PATCH_fixed_price_promotions_fixedPricePromotionId_200_response_data' + GET_flex_promotions_200_response: properties: data: items: @@ -29394,7 +38161,7 @@ components: type: description: The resource's type enum: - - fixed_price_promotions + - flex_promotions links: properties: self: @@ -29405,10 +38172,28 @@ components: description: The promotion's internal name. example: Personal promotion nullable: false - currency_code: - description: The international 3-letter currency code as defined - by the ISO 4217 standard. - example: EUR + type: + description: The promotion's type. + enum: + - percentage_discount_promotions + - free_shipping_promotions + - buy_x_pay_y_promotions + - free_gift_promotions + - fixed_price_promotions + - external_promotions + - fixed_amount_promotions + - flex_promotions + example: percentage_discount_promotions + nullable: false + exclusive: + description: "Indicates if the promotion will be applied exclusively,\ + \ based on its priority score." + example: true + nullable: true + priority: + description: The priority assigned to the promotion (lower means + higher priority). + example: 2 nullable: true starts_at: description: The activation date/time of this promotion. @@ -29421,16 +38206,37 @@ components: nullable: false total_usage_limit: description: The total number of times this promotion can be applied. + When 'null' it means promotion can be applied infinite times. example: 5 - nullable: false + nullable: true total_usage_count: description: The number of times this promotion has been applied. example: 2 nullable: true active: - description: Indicates if the promotion is active. + description: Indicates if the promotion is active (enabled and + not expired). example: true nullable: true + status: + description: "The promotion status. One of 'disabled', 'expired',\ + \ 'pending', 'active', or 'inactive'." + enum: + - disabled + - expired + - pending + - active + - inactive + example: pending + nullable: true + rules: + description: The discount rule to be applied. + example: {} + nullable: false + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -29448,9 +38254,13 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true + rule_outcomes: + description: The rule outcomes. + example: {} + nullable: true metadata: description: Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information @@ -29458,70 +38268,9 @@ components: example: foo: bar nullable: true - fixed_amount_cents: - description: "The price fixed amount to be applied on matching\ - \ SKUs, in cents" - example: 1000 - nullable: false - fixed_amount_float: - description: "The discount fixed amount to be applied, float." - example: 10.0 - nullable: true - formatted_fixed_amount: - description: "The discount fixed amount to be applied, formatted." - example: "€10,00" - nullable: true relationships: properties: - market: - properties: - links: - properties: - self: - description: URL - related: - description: URL - data: - properties: - type: - description: The resource's type - enum: - - market - id: - description: The resource ID - promotion_rules: - properties: - links: - properties: - self: - description: URL - related: - description: URL - data: - properties: - type: - description: The resource's type - enum: - - promotion_rules - id: - description: The resource ID - order_amount_promotion_rule: - properties: - links: - properties: - self: - description: URL - related: - description: URL - data: - properties: - type: - description: The resource's type - enum: - - order_amount_promotion_rule - id: - description: The resource ID - sku_list_promotion_rule: + coupon_codes_promotion_rule: properties: links: properties: @@ -29534,10 +38283,10 @@ components: type: description: The resource's type enum: - - sku_list_promotion_rule + - coupon_codes_promotion_rule id: description: The resource ID - coupon_codes_promotion_rule: + coupons: properties: links: properties: @@ -29550,7 +38299,7 @@ components: type: description: The resource's type enum: - - coupon_codes_promotion_rule + - coupons id: description: The resource ID attachments: @@ -29585,7 +38334,7 @@ components: - events id: description: The resource ID - sku_list: + tags: properties: links: properties: @@ -29598,10 +38347,10 @@ components: type: description: The resource's type enum: - - sku_list + - tags id: description: The resource ID - skus: + versions: properties: links: properties: @@ -29614,18 +38363,22 @@ components: type: description: The resource's type enum: - - skus + - versions id: description: The resource ID - POST_fixed_price_promotions_201_response_data_attributes: + POST_flex_promotions_201_response_data_attributes: properties: name: description: The promotion's internal name. example: Personal promotion - currency_code: - description: The international 3-letter currency code as defined by the - ISO 4217 standard. - example: EUR + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -29633,8 +38386,18 @@ components: description: The expiration date/time of this promotion (must be after starts_at). example: 2018-01-02T12:00:00.000Z total_usage_limit: - description: The total number of times this promotion can be applied. + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. example: 5 + rules: + description: The discount rule to be applied. + example: {} + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -29642,7 +38405,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -29650,37 +38413,26 @@ components: in a structured format. example: foo: bar - fixed_amount_cents: - description: "The price fixed amount to be applied on matching SKUs, in\ - \ cents" - example: 1000 required: - expires_at - - fixed_amount_cents - name + - rules - starts_at - - total_usage_limit - POST_fixed_price_promotions_201_response_data_relationships: + POST_flex_promotions_201_response_data_relationships: properties: - market: - $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships_market' - promotion_rules: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_promotion_rules' - order_amount_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_order_amount_promotion_rule' - sku_list_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_sku_list_promotion_rule' coupon_codes_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_coupon_codes_promotion_rule' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule' + coupons: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupons' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' - sku_list: - $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_sku_list' - skus: - $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_skus' - POST_fixed_price_promotions_201_response_data: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + POST_flex_promotions_201_response_data: properties: id: description: The resource's id @@ -29688,27 +38440,45 @@ components: type: description: The resource's type enum: - - fixed_price_promotions + - flex_promotions links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/POST_fixed_price_promotions_201_response_data_attributes' + $ref: '#/components/schemas/POST_flex_promotions_201_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_fixed_price_promotions_201_response_data_relationships' - POST_fixed_price_promotions_201_response: + $ref: '#/components/schemas/POST_flex_promotions_201_response_data_relationships' + POST_flex_promotions_201_response: properties: data: - $ref: '#/components/schemas/POST_fixed_price_promotions_201_response_data' - GET_fixed_price_promotions_fixedPricePromotionId_200_response_data_attributes: + $ref: '#/components/schemas/POST_flex_promotions_201_response_data' + GET_flex_promotions_flexPromotionId_200_response_data_attributes: properties: name: description: The promotion's internal name. example: Personal promotion nullable: false - currency_code: - description: The international 3-letter currency code as defined by the - ISO 4217 standard. - example: EUR + type: + description: The promotion's type. + enum: + - percentage_discount_promotions + - free_shipping_promotions + - buy_x_pay_y_promotions + - free_gift_promotions + - fixed_price_promotions + - external_promotions + - fixed_amount_promotions + - flex_promotions + example: percentage_discount_promotions + nullable: false + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + nullable: true + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 nullable: true starts_at: description: The activation date/time of this promotion. @@ -29719,17 +38489,37 @@ components: example: 2018-01-02T12:00:00.000Z nullable: false total_usage_limit: - description: The total number of times this promotion can be applied. + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. example: 5 - nullable: false + nullable: true total_usage_count: description: The number of times this promotion has been applied. example: 2 nullable: true active: - description: Indicates if the promotion is active. + description: Indicates if the promotion is active (enabled and not expired). example: true nullable: true + status: + description: "The promotion status. One of 'disabled', 'expired', 'pending',\ + \ 'active', or 'inactive'." + enum: + - disabled + - expired + - pending + - active + - inactive + example: pending + nullable: true + rules: + description: The discount rule to be applied. + example: {} + nullable: false + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -29746,9 +38536,13 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true + rule_outcomes: + description: The rule outcomes. + example: {} + nullable: true metadata: description: Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource @@ -29756,20 +38550,7 @@ components: example: foo: bar nullable: true - fixed_amount_cents: - description: "The price fixed amount to be applied on matching SKUs, in\ - \ cents" - example: 1000 - nullable: false - fixed_amount_float: - description: "The discount fixed amount to be applied, float." - example: 10.0 - nullable: true - formatted_fixed_amount: - description: "The discount fixed amount to be applied, formatted." - example: "€10,00" - nullable: true - GET_fixed_price_promotions_fixedPricePromotionId_200_response_data: + GET_flex_promotions_flexPromotionId_200_response_data: properties: id: description: The resource's id @@ -29777,27 +38558,32 @@ components: type: description: The resource's type enum: - - fixed_price_promotions + - flex_promotions links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/GET_fixed_price_promotions_fixedPricePromotionId_200_response_data_attributes' + $ref: '#/components/schemas/GET_flex_promotions_flexPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_fixed_price_promotions_201_response_data_relationships' - GET_fixed_price_promotions_fixedPricePromotionId_200_response: + $ref: '#/components/schemas/POST_flex_promotions_201_response_data_relationships' + GET_flex_promotions_flexPromotionId_200_response: properties: data: - $ref: '#/components/schemas/GET_fixed_price_promotions_fixedPricePromotionId_200_response_data' - PATCH_fixed_price_promotions_fixedPricePromotionId_200_response_data_attributes: + $ref: '#/components/schemas/GET_flex_promotions_flexPromotionId_200_response_data' + PATCH_flex_promotions_flexPromotionId_200_response_data_attributes: properties: name: description: The promotion's internal name. example: Personal promotion nullable: false - currency_code: - description: The international 3-letter currency code as defined by the - ISO 4217 standard. - example: EUR + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + nullable: false + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 nullable: true starts_at: description: The activation date/time of this promotion. @@ -29808,8 +38594,21 @@ components: example: 2018-01-02T12:00:00.000Z nullable: false total_usage_limit: - description: The total number of times this promotion can be applied. + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. example: 5 + nullable: true + rules: + description: The discount rule to be applied. + example: {} + nullable: false + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + nullable: false + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true nullable: false reference: description: "A string that you can use to add any external identifier to\ @@ -29819,7 +38618,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -29829,12 +38628,7 @@ components: example: foo: bar nullable: true - fixed_amount_cents: - description: "The price fixed amount to be applied on matching SKUs, in\ - \ cents" - example: 1000 - nullable: false - PATCH_fixed_price_promotions_fixedPricePromotionId_200_response_data: + PATCH_flex_promotions_flexPromotionId_200_response_data: properties: id: description: The resource's id @@ -29842,17 +38636,17 @@ components: type: description: The resource's type enum: - - fixed_price_promotions + - flex_promotions links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/PATCH_fixed_price_promotions_fixedPricePromotionId_200_response_data_attributes' + $ref: '#/components/schemas/PATCH_flex_promotions_flexPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_fixed_price_promotions_201_response_data_relationships' - PATCH_fixed_price_promotions_fixedPricePromotionId_200_response: + $ref: '#/components/schemas/POST_flex_promotions_201_response_data_relationships' + PATCH_flex_promotions_flexPromotionId_200_response: properties: data: - $ref: '#/components/schemas/PATCH_fixed_price_promotions_fixedPricePromotionId_200_response_data' + $ref: '#/components/schemas/PATCH_flex_promotions_flexPromotionId_200_response_data' GET_free_gift_promotions_200_response: properties: data: @@ -29875,11 +38669,34 @@ components: description: The promotion's internal name. example: Personal promotion nullable: false + type: + description: The promotion's type. + enum: + - percentage_discount_promotions + - free_shipping_promotions + - buy_x_pay_y_promotions + - free_gift_promotions + - fixed_price_promotions + - external_promotions + - fixed_amount_promotions + - flex_promotions + example: percentage_discount_promotions + nullable: false currency_code: description: The international 3-letter currency code as defined by the ISO 4217 standard. example: EUR nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively,\ + \ based on its priority score." + example: true + nullable: true + priority: + description: The priority assigned to the promotion (lower means + higher priority). + example: 2 + nullable: true starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -29891,16 +38708,33 @@ components: nullable: false total_usage_limit: description: The total number of times this promotion can be applied. + When 'null' it means promotion can be applied infinite times. example: 5 - nullable: false + nullable: true total_usage_count: description: The number of times this promotion has been applied. example: 2 nullable: true active: - description: Indicates if the promotion is active. + description: Indicates if the promotion is active (enabled and + not expired). example: true nullable: true + status: + description: "The promotion status. One of 'disabled', 'expired',\ + \ 'pending', 'active', or 'inactive'." + enum: + - disabled + - expired + - pending + - active + - inactive + example: pending + nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -29918,7 +38752,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -29938,19 +38772,27 @@ components: market: $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships_market' promotion_rules: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_promotion_rules' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_promotion_rules' order_amount_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_order_amount_promotion_rule' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_order_amount_promotion_rule' sku_list_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_sku_list_promotion_rule' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_sku_list_promotion_rule' coupon_codes_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_coupon_codes_promotion_rule' - attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' - events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule' + custom_promotion_rule: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_custom_promotion_rule' sku_list: $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_sku_list' + coupons: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupons' + attachments: + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' skus: $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_skus' POST_free_gift_promotions_201_response_data_attributes: @@ -29962,6 +38804,14 @@ components: description: The international 3-letter currency code as defined by the ISO 4217 standard. example: EUR + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -29969,8 +38819,15 @@ components: description: The expiration date/time of this promotion (must be after starts_at). example: 2018-01-02T12:00:00.000Z total_usage_limit: - description: The total number of times this promotion can be applied. + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. example: 5 + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -29978,7 +38835,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -29993,7 +38850,6 @@ components: - expires_at - name - starts_at - - total_usage_limit POST_free_gift_promotions_201_response_data: properties: id: @@ -30008,7 +38864,7 @@ components: attributes: $ref: '#/components/schemas/POST_free_gift_promotions_201_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_fixed_price_promotions_201_response_data_relationships' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships' POST_free_gift_promotions_201_response: properties: data: @@ -30019,11 +38875,34 @@ components: description: The promotion's internal name. example: Personal promotion nullable: false + type: + description: The promotion's type. + enum: + - percentage_discount_promotions + - free_shipping_promotions + - buy_x_pay_y_promotions + - free_gift_promotions + - fixed_price_promotions + - external_promotions + - fixed_amount_promotions + - flex_promotions + example: percentage_discount_promotions + nullable: false currency_code: description: The international 3-letter currency code as defined by the ISO 4217 standard. example: EUR nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + nullable: true + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 + nullable: true starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -30033,17 +38912,33 @@ components: example: 2018-01-02T12:00:00.000Z nullable: false total_usage_limit: - description: The total number of times this promotion can be applied. + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. example: 5 - nullable: false + nullable: true total_usage_count: description: The number of times this promotion has been applied. example: 2 nullable: true active: - description: Indicates if the promotion is active. + description: Indicates if the promotion is active (enabled and not expired). example: true nullable: true + status: + description: "The promotion status. One of 'disabled', 'expired', 'pending',\ + \ 'active', or 'inactive'." + enum: + - disabled + - expired + - pending + - active + - inactive + example: pending + nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -30060,7 +38955,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -30088,7 +38983,7 @@ components: attributes: $ref: '#/components/schemas/GET_free_gift_promotions_freeGiftPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_fixed_price_promotions_201_response_data_relationships' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships' GET_free_gift_promotions_freeGiftPromotionId_200_response: properties: data: @@ -30104,6 +38999,16 @@ components: ISO 4217 standard. example: EUR nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + nullable: false + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 + nullable: true starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -30113,8 +39018,17 @@ components: example: 2018-01-02T12:00:00.000Z nullable: false total_usage_limit: - description: The total number of times this promotion can be applied. + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. example: 5 + nullable: true + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + nullable: false + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true nullable: false reference: description: "A string that you can use to add any external identifier to\ @@ -30124,7 +39038,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -30152,7 +39066,7 @@ components: attributes: $ref: '#/components/schemas/PATCH_free_gift_promotions_freeGiftPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_fixed_price_promotions_201_response_data_relationships' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships' PATCH_free_gift_promotions_freeGiftPromotionId_200_response: properties: data: @@ -30179,11 +39093,34 @@ components: description: The promotion's internal name. example: Personal promotion nullable: false + type: + description: The promotion's type. + enum: + - percentage_discount_promotions + - free_shipping_promotions + - buy_x_pay_y_promotions + - free_gift_promotions + - fixed_price_promotions + - external_promotions + - fixed_amount_promotions + - flex_promotions + example: percentage_discount_promotions + nullable: false currency_code: description: The international 3-letter currency code as defined by the ISO 4217 standard. example: EUR nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively,\ + \ based on its priority score." + example: true + nullable: true + priority: + description: The priority assigned to the promotion (lower means + higher priority). + example: 2 + nullable: true starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -30195,16 +39132,33 @@ components: nullable: false total_usage_limit: description: The total number of times this promotion can be applied. + When 'null' it means promotion can be applied infinite times. example: 5 - nullable: false + nullable: true total_usage_count: description: The number of times this promotion has been applied. example: 2 nullable: true active: - description: Indicates if the promotion is active. + description: Indicates if the promotion is active (enabled and + not expired). example: true nullable: true + status: + description: "The promotion status. One of 'disabled', 'expired',\ + \ 'pending', 'active', or 'inactive'." + enum: + - disabled + - expired + - pending + - active + - inactive + example: pending + nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -30222,7 +39176,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -30235,19 +39189,197 @@ components: relationships: properties: market: - $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships_market' + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - market + id: + description: The resource ID promotion_rules: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_promotion_rules' + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - promotion_rules + id: + description: The resource ID order_amount_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_order_amount_promotion_rule' + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - order_amount_promotion_rule + id: + description: The resource ID sku_list_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_sku_list_promotion_rule' + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - sku_list_promotion_rule + id: + description: The resource ID coupon_codes_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_coupon_codes_promotion_rule' + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - coupon_codes_promotion_rule + id: + description: The resource ID + custom_promotion_rule: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - custom_promotion_rule + id: + description: The resource ID + sku_list: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - sku_list + id: + description: The resource ID + coupons: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - coupons + id: + description: The resource ID attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - attachments + id: + description: The resource ID events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource ID + tags: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - tags + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_free_shipping_promotions_201_response_data_attributes: properties: name: @@ -30257,6 +39389,14 @@ components: description: The international 3-letter currency code as defined by the ISO 4217 standard. example: EUR + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -30264,8 +39404,15 @@ components: description: The expiration date/time of this promotion (must be after starts_at). example: 2018-01-02T12:00:00.000Z total_usage_limit: - description: The total number of times this promotion can be applied. + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. example: 5 + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -30273,7 +39420,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -30285,7 +39432,32 @@ components: - expires_at - name - starts_at - - total_usage_limit + POST_free_shipping_promotions_201_response_data_relationships: + properties: + market: + $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships_market' + promotion_rules: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_promotion_rules' + order_amount_promotion_rule: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_order_amount_promotion_rule' + sku_list_promotion_rule: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_sku_list_promotion_rule' + coupon_codes_promotion_rule: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule' + custom_promotion_rule: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_custom_promotion_rule' + sku_list: + $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_sku_list' + coupons: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupons' + attachments: + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_free_shipping_promotions_201_response_data: properties: id: @@ -30300,7 +39472,7 @@ components: attributes: $ref: '#/components/schemas/POST_free_shipping_promotions_201_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships' + $ref: '#/components/schemas/POST_free_shipping_promotions_201_response_data_relationships' POST_free_shipping_promotions_201_response: properties: data: @@ -30311,11 +39483,34 @@ components: description: The promotion's internal name. example: Personal promotion nullable: false + type: + description: The promotion's type. + enum: + - percentage_discount_promotions + - free_shipping_promotions + - buy_x_pay_y_promotions + - free_gift_promotions + - fixed_price_promotions + - external_promotions + - fixed_amount_promotions + - flex_promotions + example: percentage_discount_promotions + nullable: false currency_code: description: The international 3-letter currency code as defined by the ISO 4217 standard. example: EUR nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + nullable: true + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 + nullable: true starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -30325,17 +39520,33 @@ components: example: 2018-01-02T12:00:00.000Z nullable: false total_usage_limit: - description: The total number of times this promotion can be applied. + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. example: 5 - nullable: false + nullable: true total_usage_count: description: The number of times this promotion has been applied. example: 2 nullable: true active: - description: Indicates if the promotion is active. + description: Indicates if the promotion is active (enabled and not expired). example: true nullable: true + status: + description: "The promotion status. One of 'disabled', 'expired', 'pending',\ + \ 'active', or 'inactive'." + enum: + - disabled + - expired + - pending + - active + - inactive + example: pending + nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -30352,7 +39563,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -30376,7 +39587,7 @@ components: attributes: $ref: '#/components/schemas/GET_free_shipping_promotions_freeShippingPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships' + $ref: '#/components/schemas/POST_free_shipping_promotions_201_response_data_relationships' GET_free_shipping_promotions_freeShippingPromotionId_200_response: properties: data: @@ -30392,6 +39603,16 @@ components: ISO 4217 standard. example: EUR nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + nullable: false + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 + nullable: true starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -30401,8 +39622,17 @@ components: example: 2018-01-02T12:00:00.000Z nullable: false total_usage_limit: - description: The total number of times this promotion can be applied. + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. example: 5 + nullable: true + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + nullable: false + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true nullable: false reference: description: "A string that you can use to add any external identifier to\ @@ -30412,7 +39642,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -30436,7 +39666,7 @@ components: attributes: $ref: '#/components/schemas/PATCH_free_shipping_promotions_freeShippingPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships' + $ref: '#/components/schemas/POST_free_shipping_promotions_201_response_data_relationships' PATCH_free_shipping_promotions_freeShippingPromotionId_200_response: properties: data: @@ -30460,9 +39690,16 @@ components: attributes: properties: name: - description: The geocoder's internal name + description: The geocoder's internal name. example: Default geocoder nullable: false + type: + description: The geocoder's type. + enum: + - google_geocoders + - bing_geocoders + example: google_geocoders + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -30480,7 +39717,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -30492,10 +39729,12 @@ components: nullable: true relationships: properties: + markets: + $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_markets' addresses: $ref: '#/components/schemas/POST_bing_geocoders_201_response_data_relationships_addresses' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' GET_geocoders_geocoderId_200_response_data: properties: id: @@ -30534,15 +39773,15 @@ components: attributes: properties: email: - description: The recipient email address + description: The recipient email address. example: john@example.com nullable: false first_name: - description: The recipient first name + description: The recipient first name. example: John nullable: true last_name: - description: The recipient last name + description: The recipient last name. example: Smith nullable: true created_at: @@ -30562,7 +39801,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -30577,7 +39816,9 @@ components: customer: $ref: '#/components/schemas/POST_coupon_recipients_201_response_data_relationships_customer' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_gift_card_recipients_201_response_data: properties: id: @@ -30654,8 +39895,8 @@ components: attributes: properties: status: - description: "The gift card status, one of 'draft', 'inactive',\ - \ 'active', or 'redeemed'." + description: "The gift card status. One of 'draft' (default),\ + \ 'inactive', 'active', or 'redeemed'." enum: - draft - inactive @@ -30699,7 +39940,7 @@ components: nullable: false balance_max_cents: description: "The gift card balance max, in cents." - example: "100000" + example: 100000 nullable: true balance_max_float: description: "The gift card balance max, float." @@ -30713,12 +39954,23 @@ components: description: The gift card balance log. Tracks all the gift card transactions. example: - - date: 2019-12-23T12:00:00.000Z - amount_cents: -10000 - - date: 2020-02-01T12:00:00.000Z - amount_cents: 5000 + - datetime: 2019-12-23T12:00:00.000Z + balance_change_cents: -10000 + - datetime: 2020-02-01T12:00:00.000Z + balance_change_cents: 5000 items: {} nullable: false + usage_log: + description: The gift card usage log. Tracks all the gift card + usage actions by orders. + example: + eNoKkhmbNp: + - action: use + amount_cents: -1000 + balance_cents: 4000 + order_number: "11111" + datetime: 2020-02-01T12:00:00.000Z + nullable: false single_use: description: Indicates if the gift card can be used only one. example: false @@ -30727,6 +39979,11 @@ components: description: Indicates if the gift card can be recharged. example: true nullable: true + distribute_discount: + description: Indicates if redeemed gift card amount is distributed + for tax calculation. + example: true + nullable: true image_url: description: The URL of an image that represents the gift card. example: https://img.yourdomain.com/gift_cards/32db311a.png @@ -30758,7 +40015,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -30834,6 +40091,38 @@ components: - events id: description: The resource ID + tags: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - tags + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_gift_cards_201_response_data_attributes: properties: code: @@ -30848,13 +40137,17 @@ components: example: 15000 balance_max_cents: description: "The gift card balance max, in cents." - example: "100000" + example: 100000 single_use: description: Indicates if the gift card can be used only one. example: false rechargeable: description: Indicates if the gift card can be recharged. example: true + distribute_discount: + description: Indicates if redeemed gift card amount is distributed for tax + calculation. + example: true image_url: description: The URL of an image that represents the gift card. example: https://img.yourdomain.com/gift_cards/32db311a.png @@ -30873,7 +40166,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -30904,9 +40197,13 @@ components: gift_card_recipient: $ref: '#/components/schemas/POST_gift_cards_201_response_data_relationships_gift_card_recipient' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_gift_cards_201_response_data: properties: id: @@ -30929,8 +40226,8 @@ components: GET_gift_cards_giftCardId_200_response_data_attributes: properties: status: - description: "The gift card status, one of 'draft', 'inactive', 'active',\ - \ or 'redeemed'." + description: "The gift card status. One of 'draft' (default), 'inactive',\ + \ 'active', or 'redeemed'." enum: - draft - inactive @@ -30973,7 +40270,7 @@ components: nullable: false balance_max_cents: description: "The gift card balance max, in cents." - example: "100000" + example: 100000 nullable: true balance_max_float: description: "The gift card balance max, float." @@ -30986,12 +40283,23 @@ components: balance_log: description: The gift card balance log. Tracks all the gift card transactions. example: - - date: 2019-12-23T12:00:00.000Z - amount_cents: -10000 - - date: 2020-02-01T12:00:00.000Z - amount_cents: 5000 + - datetime: 2019-12-23T12:00:00.000Z + balance_change_cents: -10000 + - datetime: 2020-02-01T12:00:00.000Z + balance_change_cents: 5000 items: {} nullable: false + usage_log: + description: The gift card usage log. Tracks all the gift card usage actions + by orders. + example: + eNoKkhmbNp: + - action: use + amount_cents: -1000 + balance_cents: 4000 + order_number: "11111" + datetime: 2020-02-01T12:00:00.000Z + nullable: false single_use: description: Indicates if the gift card can be used only one. example: false @@ -31000,6 +40308,11 @@ components: description: Indicates if the gift card can be recharged. example: true nullable: true + distribute_discount: + description: Indicates if redeemed gift card amount is distributed for tax + calculation. + example: true + nullable: true image_url: description: The URL of an image that represents the gift card. example: https://img.yourdomain.com/gift_cards/32db311a.png @@ -31030,7 +40343,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -31072,7 +40385,7 @@ components: nullable: false balance_max_cents: description: "The gift card balance max, in cents." - example: "100000" + example: 100000 nullable: true single_use: description: Indicates if the gift card can be used only one. @@ -31082,6 +40395,11 @@ components: description: Indicates if the gift card can be recharged. example: true nullable: false + distribute_discount: + description: Indicates if redeemed gift card amount is distributed for tax + calculation. + example: true + nullable: false image_url: description: The URL of an image that represents the gift card. example: https://img.yourdomain.com/gift_cards/32db311a.png @@ -31100,12 +40418,15 @@ components: description: "Send this attribute if you want to confirm a draft gift card.\ \ The gift card becomes 'inactive', waiting to be activated." example: true + nullable: false _activate: description: Send this attribute if you want to activate a gift card. example: true + nullable: false _deactivate: description: Send this attribute if you want to deactivate a gift card. example: true + nullable: false _balance_change_cents: description: "The balance change, in cents. Send a negative value to reduces\ \ the card balance by the specified amount. Send a positive value to recharge\ @@ -31119,7 +40440,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -31167,9 +40488,16 @@ components: attributes: properties: name: - description: The geocoder's internal name + description: The geocoder's internal name. example: Default geocoder nullable: false + type: + description: The geocoder's type. + enum: + - google_geocoders + - bing_geocoders + example: google_geocoders + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -31187,7 +40515,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -31199,14 +40527,16 @@ components: nullable: true relationships: properties: + markets: + $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_markets' addresses: $ref: '#/components/schemas/POST_bing_geocoders_201_response_data_relationships_addresses' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' POST_google_geocoders_201_response_data_attributes: properties: name: - description: The geocoder's internal name + description: The geocoder's internal name. example: Default geocoder reference: description: "A string that you can use to add any external identifier to\ @@ -31215,7 +40545,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -31224,7 +40554,7 @@ components: example: foo: bar api_key: - description: The Google Map API key + description: The Google Map API key. example: xxxx-yyyy-zzzz required: - api_key @@ -31270,7 +40600,7 @@ components: PATCH_google_geocoders_googleGeocoderId_200_response_data_attributes: properties: name: - description: The geocoder's internal name + description: The geocoder's internal name. example: Default geocoder nullable: false reference: @@ -31281,7 +40611,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -31292,7 +40622,7 @@ components: foo: bar nullable: true api_key: - description: The Google Map API key + description: The Google Map API key. example: xxxx-yyyy-zzzz PATCH_google_geocoders_googleGeocoderId_200_response_data: properties: @@ -31335,6 +40665,11 @@ components: description: The type of resource being imported. example: skus nullable: false + format: + description: The format of the import inputs one of 'json' (default) + or 'csv'. + example: json + nullable: true parent_resource_id: description: The ID of the parent resource to be associated with imported data. @@ -31384,11 +40719,6 @@ components: description: "Indicates the number of import warnings, if any." example: 1 nullable: true - destroyed_count: - description: "Indicates the number of records that have been destroyed,\ - \ if any." - example: 99 - nullable: true processed_count: description: Indicates the number of records that have been processed (created or updated). @@ -31407,11 +40737,6 @@ components: ABC: - could not be deleted nullable: true - cleanup_records: - description: Indicates if the import should cleanup records that - are not included in the inputs array. - example: true - nullable: true attachment_url: description: "The URL the the raw inputs file, which will be generated\ \ at import start." @@ -31434,7 +40759,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -31447,7 +40772,7 @@ components: relationships: properties: events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' POST_imports_201_response_data_attributes: properties: resource_type: @@ -31470,10 +40795,6 @@ components: - code: DEF name: Bar items: {} - cleanup_records: - description: Indicates if the import should cleanup records that are not - included in the inputs array. - example: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -31481,7 +40802,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -31506,7 +40827,7 @@ components: attributes: $ref: '#/components/schemas/POST_imports_201_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_cleanups_201_response_data_relationships' + $ref: '#/components/schemas/POST_exports_201_response_data_relationships' POST_imports_201_response: properties: data: @@ -31517,6 +40838,11 @@ components: description: The type of resource being imported. example: skus nullable: false + format: + description: The format of the import inputs one of 'json' (default) or + 'csv'. + example: json + nullable: true parent_resource_id: description: The ID of the parent resource to be associated with imported data. @@ -31566,11 +40892,6 @@ components: description: "Indicates the number of import warnings, if any." example: 1 nullable: true - destroyed_count: - description: "Indicates the number of records that have been destroyed,\ - \ if any." - example: 99 - nullable: true processed_count: description: Indicates the number of records that have been processed (created or updated). @@ -31589,11 +40910,6 @@ components: ABC: - could not be deleted nullable: true - cleanup_records: - description: Indicates if the import should cleanup records that are not - included in the inputs array. - example: true - nullable: true attachment_url: description: "The URL the the raw inputs file, which will be generated at\ \ import start." @@ -31615,7 +40931,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -31639,11 +40955,30 @@ components: attributes: $ref: '#/components/schemas/GET_imports_importId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_cleanups_201_response_data_relationships' + $ref: '#/components/schemas/POST_exports_201_response_data_relationships' GET_imports_importId_200_response: properties: data: $ref: '#/components/schemas/GET_imports_importId_200_response_data' + PATCH_imports_importId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - imports + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/PATCH_billing_info_validation_rules_billingInfoValidationRuleId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_exports_201_response_data_relationships' + PATCH_imports_importId_200_response: + properties: + data: + $ref: '#/components/schemas/PATCH_imports_importId_200_response_data' GET_in_stock_subscriptions_200_response: properties: data: @@ -31664,7 +40999,7 @@ components: properties: status: description: "The subscription status. One of 'active' (default),\ - \ 'inactive', or 'notified'" + \ 'inactive', or 'notified'." enum: - active - inactive @@ -31673,11 +41008,11 @@ components: nullable: false customer_email: description: "The email of the associated customer, replace the\ - \ relationship" + \ relationship." example: john@example.com nullable: true sku_code: - description: "The code of the associated SKU, replace the relationship" + description: "The code of the associated SKU, replace the relationship." example: TSHIRTMM000000FFFFFFXLXX nullable: true stock_threshold: @@ -31702,7 +41037,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -31778,13 +41113,29 @@ components: - events id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_in_stock_subscriptions_201_response_data_attributes: properties: customer_email: - description: "The email of the associated customer, replace the relationship" + description: "The email of the associated customer, replace the relationship." example: john@example.com sku_code: - description: "The code of the associated SKU, replace the relationship" + description: "The code of the associated SKU, replace the relationship." example: TSHIRTMM000000FFFFFFXLXX stock_threshold: description: The threshold at which to trigger the back in stock notification. @@ -31796,7 +41147,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -31827,7 +41178,9 @@ components: sku: $ref: '#/components/schemas/POST_in_stock_subscriptions_201_response_data_relationships_sku' events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_in_stock_subscriptions_201_response_data: properties: id: @@ -31851,7 +41204,7 @@ components: properties: status: description: "The subscription status. One of 'active' (default), 'inactive',\ - \ or 'notified'" + \ or 'notified'." enum: - active - inactive @@ -31859,11 +41212,11 @@ components: example: active nullable: false customer_email: - description: "The email of the associated customer, replace the relationship" + description: "The email of the associated customer, replace the relationship." example: john@example.com nullable: true sku_code: - description: "The code of the associated SKU, replace the relationship" + description: "The code of the associated SKU, replace the relationship." example: TSHIRTMM000000FFFFFFXLXX nullable: true stock_threshold: @@ -31886,7 +41239,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -31918,7 +41271,7 @@ components: PATCH_in_stock_subscriptions_inStockSubscriptionId_200_response_data_attributes: properties: sku_code: - description: "The code of the associated SKU, replace the relationship" + description: "The code of the associated SKU, replace the relationship." example: TSHIRTMM000000FFFFFFXLXX nullable: true stock_threshold: @@ -31928,9 +41281,11 @@ components: _activate: description: Send this attribute if you want to activate an inactive subscription. example: true + nullable: false _deactivate: description: Send this attribute if you want to dactivate an active subscription. example: true + nullable: false reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -31939,7 +41294,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -31998,9 +41353,376 @@ components: nullable: true stock_locations_cutoff: description: The maximum number of stock locations used for inventory - computation + computation. example: 3 nullable: true + stock_reservation_cutoff: + description: The duration in seconds of the generated stock reservations. + example: 3600 + nullable: true + put_stock_transfers_on_hold: + description: Indicates if the the stock transfers must be put + on hold automatically with the associated shipment. + example: true + nullable: true + manual_stock_decrement: + description: Indicates if the the stock will be decremented manually + after the order approval. + example: true + nullable: true + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier\ + \ to the resource. This can be useful for integrating the resource\ + \ to an external system, like an ERP, a marketing tool, a CRM,\ + \ or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines + the reference code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the + resource. This can be useful for storing additional information + about the resource in a structured format. + example: + foo: bar + nullable: true + relationships: + properties: + inventory_stock_locations: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - inventory_stock_locations + id: + description: The resource ID + inventory_return_locations: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - inventory_return_locations + id: + description: The resource ID + attachments: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - attachments + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID + POST_inventory_models_201_response_data_attributes: + properties: + name: + description: The inventory model's internal name. + example: EU Inventory Model + strategy: + description: "The inventory model's shipping strategy: one between 'no_split'\ + \ (default), 'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'." + example: no_split + stock_locations_cutoff: + description: The maximum number of stock locations used for inventory computation. + example: 3 + stock_reservation_cutoff: + description: The duration in seconds of the generated stock reservations. + example: 3600 + put_stock_transfers_on_hold: + description: Indicates if the the stock transfers must be put on hold automatically + with the associated shipment. + example: true + manual_stock_decrement: + description: Indicates if the the stock will be decremented manually after + the order approval. + example: true + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + required: + - name + POST_inventory_models_201_response_data_relationships_inventory_stock_locations_data: + properties: + type: + description: The resource's type + enum: + - inventory_stock_locations + id: + description: The resource ID + POST_inventory_models_201_response_data_relationships_inventory_stock_locations: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_inventory_models_201_response_data_relationships_inventory_stock_locations_data' + POST_inventory_models_201_response_data_relationships_inventory_return_locations_data: + properties: + type: + description: The resource's type + enum: + - inventory_return_locations + id: + description: The resource ID + POST_inventory_models_201_response_data_relationships_inventory_return_locations: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_inventory_models_201_response_data_relationships_inventory_return_locations_data' + POST_inventory_models_201_response_data_relationships: + properties: + inventory_stock_locations: + $ref: '#/components/schemas/POST_inventory_models_201_response_data_relationships_inventory_stock_locations' + inventory_return_locations: + $ref: '#/components/schemas/POST_inventory_models_201_response_data_relationships_inventory_return_locations' + attachments: + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + POST_inventory_models_201_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - inventory_models + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/POST_inventory_models_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_inventory_models_201_response_data_relationships' + POST_inventory_models_201_response: + properties: + data: + $ref: '#/components/schemas/POST_inventory_models_201_response_data' + GET_inventory_models_inventoryModelId_200_response_data_attributes: + properties: + name: + description: The inventory model's internal name. + example: EU Inventory Model + nullable: false + strategy: + description: "The inventory model's shipping strategy: one between 'no_split'\ + \ (default), 'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'." + example: no_split + nullable: true + stock_locations_cutoff: + description: The maximum number of stock locations used for inventory computation. + example: 3 + nullable: true + stock_reservation_cutoff: + description: The duration in seconds of the generated stock reservations. + example: 3600 + nullable: true + put_stock_transfers_on_hold: + description: Indicates if the the stock transfers must be put on hold automatically + with the associated shipment. + example: true + nullable: true + manual_stock_decrement: + description: Indicates if the the stock will be decremented manually after + the order approval. + example: true + nullable: true + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + GET_inventory_models_inventoryModelId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - inventory_models + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/GET_inventory_models_inventoryModelId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_inventory_models_201_response_data_relationships' + GET_inventory_models_inventoryModelId_200_response: + properties: + data: + $ref: '#/components/schemas/GET_inventory_models_inventoryModelId_200_response_data' + PATCH_inventory_models_inventoryModelId_200_response_data_attributes: + properties: + name: + description: The inventory model's internal name. + example: EU Inventory Model + nullable: false + strategy: + description: "The inventory model's shipping strategy: one between 'no_split'\ + \ (default), 'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'." + example: no_split + nullable: true + stock_locations_cutoff: + description: The maximum number of stock locations used for inventory computation. + example: 3 + nullable: true + stock_reservation_cutoff: + description: The duration in seconds of the generated stock reservations. + example: 3600 + nullable: true + put_stock_transfers_on_hold: + description: Indicates if the the stock transfers must be put on hold automatically + with the associated shipment. + example: true + nullable: false + manual_stock_decrement: + description: Indicates if the the stock will be decremented manually after + the order approval. + example: true + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + PATCH_inventory_models_inventoryModelId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - inventory_models + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/PATCH_inventory_models_inventoryModelId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_inventory_models_201_response_data_relationships' + PATCH_inventory_models_inventoryModelId_200_response: + properties: + data: + $ref: '#/components/schemas/PATCH_inventory_models_inventoryModelId_200_response_data' + GET_inventory_return_locations_200_response: + properties: + data: + items: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - inventory_return_locations + links: + properties: + self: + description: URL + attributes: + properties: + priority: + description: The inventory return location priority within the + associated invetory model. + example: 1 + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -32018,7 +41740,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -32030,39 +41752,7 @@ components: nullable: true relationships: properties: - inventory_stock_locations: - properties: - links: - properties: - self: - description: URL - related: - description: URL - data: - properties: - type: - description: The resource's type - enum: - - inventory_stock_locations - id: - description: The resource ID - inventory_return_locations: - properties: - links: - properties: - self: - description: URL - related: - description: URL - data: - properties: - type: - description: The resource's type - enum: - - inventory_return_locations - id: - description: The resource ID - attachments: + stock_location: properties: links: properties: @@ -32075,258 +41765,10 @@ components: type: description: The resource's type enum: - - attachments + - stock_location id: description: The resource ID - POST_inventory_models_201_response_data_attributes: - properties: - name: - description: The inventory model's internal name. - example: EU Inventory Model - strategy: - description: "The inventory model's shipping strategy: one between 'no_split'\ - \ (default), 'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'." - example: no_split - stock_locations_cutoff: - description: The maximum number of stock locations used for inventory computation - example: 3 - reference: - description: "A string that you can use to add any external identifier to\ - \ the resource. This can be useful for integrating the resource to an\ - \ external system, like an ERP, a marketing tool, a CRM, or whatever." - example: ANY-EXTERNAL-REFEFERNCE - reference_origin: - description: Any identifier of the third party system that defines the reference - code - example: ANY-EXTERNAL-REFEFERNCE-ORIGIN - metadata: - description: Set of key-value pairs that you can attach to the resource. - This can be useful for storing additional information about the resource - in a structured format. - example: - foo: bar - required: - - name - POST_inventory_models_201_response_data_relationships_inventory_stock_locations_data: - properties: - type: - description: The resource's type - enum: - - inventory_stock_locations - id: - description: The resource ID - POST_inventory_models_201_response_data_relationships_inventory_stock_locations: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/POST_inventory_models_201_response_data_relationships_inventory_stock_locations_data' - POST_inventory_models_201_response_data_relationships_inventory_return_locations_data: - properties: - type: - description: The resource's type - enum: - - inventory_return_locations - id: - description: The resource ID - POST_inventory_models_201_response_data_relationships_inventory_return_locations: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/POST_inventory_models_201_response_data_relationships_inventory_return_locations_data' - POST_inventory_models_201_response_data_relationships: - properties: - inventory_stock_locations: - $ref: '#/components/schemas/POST_inventory_models_201_response_data_relationships_inventory_stock_locations' - inventory_return_locations: - $ref: '#/components/schemas/POST_inventory_models_201_response_data_relationships_inventory_return_locations' - attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' - POST_inventory_models_201_response_data: - properties: - id: - description: The resource's id - example: XGZwpOSrWL - type: - description: The resource's type - enum: - - inventory_models - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_links' - attributes: - $ref: '#/components/schemas/POST_inventory_models_201_response_data_attributes' - relationships: - $ref: '#/components/schemas/POST_inventory_models_201_response_data_relationships' - POST_inventory_models_201_response: - properties: - data: - $ref: '#/components/schemas/POST_inventory_models_201_response_data' - GET_inventory_models_inventoryModelId_200_response_data_attributes: - properties: - name: - description: The inventory model's internal name. - example: EU Inventory Model - nullable: false - strategy: - description: "The inventory model's shipping strategy: one between 'no_split'\ - \ (default), 'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'." - example: no_split - nullable: true - stock_locations_cutoff: - description: The maximum number of stock locations used for inventory computation - example: 3 - nullable: true - created_at: - description: Time at which the resource was created. - example: 2018-01-01T12:00:00.000Z - nullable: false - updated_at: - description: Time at which the resource was last updated. - example: 2018-01-01T12:00:00.000Z - nullable: false - reference: - description: "A string that you can use to add any external identifier to\ - \ the resource. This can be useful for integrating the resource to an\ - \ external system, like an ERP, a marketing tool, a CRM, or whatever." - example: ANY-EXTERNAL-REFEFERNCE - nullable: true - reference_origin: - description: Any identifier of the third party system that defines the reference - code - example: ANY-EXTERNAL-REFEFERNCE-ORIGIN - nullable: true - metadata: - description: Set of key-value pairs that you can attach to the resource. - This can be useful for storing additional information about the resource - in a structured format. - example: - foo: bar - nullable: true - GET_inventory_models_inventoryModelId_200_response_data: - properties: - id: - description: The resource's id - example: XGZwpOSrWL - type: - description: The resource's type - enum: - - inventory_models - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_links' - attributes: - $ref: '#/components/schemas/GET_inventory_models_inventoryModelId_200_response_data_attributes' - relationships: - $ref: '#/components/schemas/POST_inventory_models_201_response_data_relationships' - GET_inventory_models_inventoryModelId_200_response: - properties: - data: - $ref: '#/components/schemas/GET_inventory_models_inventoryModelId_200_response_data' - PATCH_inventory_models_inventoryModelId_200_response_data_attributes: - properties: - name: - description: The inventory model's internal name. - example: EU Inventory Model - nullable: false - strategy: - description: "The inventory model's shipping strategy: one between 'no_split'\ - \ (default), 'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'." - example: no_split - nullable: true - stock_locations_cutoff: - description: The maximum number of stock locations used for inventory computation - example: 3 - nullable: true - reference: - description: "A string that you can use to add any external identifier to\ - \ the resource. This can be useful for integrating the resource to an\ - \ external system, like an ERP, a marketing tool, a CRM, or whatever." - example: ANY-EXTERNAL-REFEFERNCE - nullable: true - reference_origin: - description: Any identifier of the third party system that defines the reference - code - example: ANY-EXTERNAL-REFEFERNCE-ORIGIN - nullable: true - metadata: - description: Set of key-value pairs that you can attach to the resource. - This can be useful for storing additional information about the resource - in a structured format. - example: - foo: bar - nullable: true - PATCH_inventory_models_inventoryModelId_200_response_data: - properties: - id: - description: The resource's id - example: XGZwpOSrWL - type: - description: The resource's type - enum: - - inventory_models - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_links' - attributes: - $ref: '#/components/schemas/PATCH_inventory_models_inventoryModelId_200_response_data_attributes' - relationships: - $ref: '#/components/schemas/POST_inventory_models_201_response_data_relationships' - PATCH_inventory_models_inventoryModelId_200_response: - properties: - data: - $ref: '#/components/schemas/PATCH_inventory_models_inventoryModelId_200_response_data' - GET_inventory_return_locations_200_response: - properties: - data: - items: - properties: - id: - description: The resource's id - example: XGZwpOSrWL - type: - description: The resource's type - enum: - - inventory_return_locations - links: - properties: - self: - description: URL - attributes: - properties: - priority: - description: The inventory return location priority within the - associated invetory model. - example: 1 - nullable: false - created_at: - description: Time at which the resource was created. - example: 2018-01-01T12:00:00.000Z - nullable: false - updated_at: - description: Time at which the resource was last updated. - example: 2018-01-01T12:00:00.000Z - nullable: false - reference: - description: "A string that you can use to add any external identifier\ - \ to the resource. This can be useful for integrating the resource\ - \ to an external system, like an ERP, a marketing tool, a CRM,\ - \ or whatever." - example: ANY-EXTERNAL-REFEFERNCE - nullable: true - reference_origin: - description: Any identifier of the third party system that defines - the reference code - example: ANY-EXTERNAL-REFEFERNCE-ORIGIN - nullable: true - metadata: - description: Set of key-value pairs that you can attach to the - resource. This can be useful for storing additional information - about the resource in a structured format. - example: - foo: bar - nullable: true - relationships: - properties: - stock_location: + inventory_model: properties: links: properties: @@ -32339,10 +41781,10 @@ components: type: description: The resource's type enum: - - stock_location + - inventory_model id: description: The resource ID - inventory_model: + versions: properties: links: properties: @@ -32355,7 +41797,7 @@ components: type: description: The resource's type enum: - - inventory_model + - versions id: description: The resource ID POST_inventory_return_locations_201_response_data_attributes: @@ -32371,7 +41813,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -32401,6 +41843,8 @@ components: $ref: '#/components/schemas/POST_delivery_lead_times_201_response_data_relationships_stock_location' inventory_model: $ref: '#/components/schemas/POST_inventory_return_locations_201_response_data_relationships_inventory_model' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_inventory_return_locations_201_response_data: properties: id: @@ -32443,7 +41887,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -32487,7 +41931,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -32563,7 +42007,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -32579,6 +42023,8 @@ components: $ref: '#/components/schemas/POST_delivery_lead_times_201_response_data_relationships_stock_location' inventory_model: $ref: '#/components/schemas/POST_inventory_return_locations_201_response_data_relationships_inventory_model' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_inventory_stock_locations_201_response_data_attributes: properties: priority: @@ -32598,7 +42044,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -32657,7 +42103,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -32708,7 +42154,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -32776,7 +42222,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -32804,6 +42250,22 @@ components: - payment_methods id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID klarna_payments: properties: links: @@ -32832,7 +42294,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -32872,6 +42334,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/POST_adyen_gateways_201_response_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' klarna_payments: $ref: '#/components/schemas/POST_klarna_gateways_201_response_data_relationships_klarna_payments' POST_klarna_gateways_201_response_data: @@ -32915,7 +42379,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -32958,7 +42422,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -33015,8 +42479,7 @@ components: attributes: properties: session_id: - description: "The identifier of the payment session, useful to\ - \ updated it." + description: The identifier of the payment session. example: xxxx-yyyy-zzzz nullable: true client_token: @@ -33041,25 +42504,12 @@ components: the one of the created payment intent. example: false nullable: true - intent_amount_cents: - description: "The amount of the associated payment intent, in\ - \ cents." - example: 1000 - nullable: false - intent_amount_float: - description: "The amount of the associated payment intent, float." - example: 10.0 - nullable: true - formatted_intent_amount: - description: "The amount of the associated payment intent, formatted." - example: "€10,00" - nullable: true payment_instrument: description: Information about the payment instrument used in - the transaction + the transaction. example: issuer: cl bank - issuer_type: klarna + card_type: visa nullable: true created_at: description: Time at which the resource was created. @@ -33078,7 +42528,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -33094,6 +42544,8 @@ components: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' payment_gateway: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_payment_gateway' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_klarna_payments_201_response_data: properties: id: @@ -33116,7 +42568,7 @@ components: GET_klarna_payments_klarnaPaymentId_200_response_data_attributes: properties: session_id: - description: "The identifier of the payment session, useful to updated it." + description: The identifier of the payment session. example: xxxx-yyyy-zzzz nullable: true client_token: @@ -33141,23 +42593,11 @@ components: of the created payment intent. example: false nullable: true - intent_amount_cents: - description: "The amount of the associated payment intent, in cents." - example: 1000 - nullable: false - intent_amount_float: - description: "The amount of the associated payment intent, float." - example: 10.0 - nullable: true - formatted_intent_amount: - description: "The amount of the associated payment intent, formatted." - example: "€10,00" - nullable: true payment_instrument: - description: Information about the payment instrument used in the transaction + description: Information about the payment instrument used in the transaction. example: issuer: cl bank - issuer_type: klarna + card_type: visa nullable: true created_at: description: Time at which the resource was created. @@ -33175,7 +42615,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -33215,6 +42655,7 @@ components: description: Send this attribute if you want to update the payment session with fresh order data. example: true + nullable: false reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -33223,7 +42664,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -33276,7 +42717,7 @@ components: example: Embossing nullable: true quantity: - description: The line item option's quantity + description: The line item option's quantity. example: 2 nullable: false currency_code: @@ -33288,7 +42729,8 @@ components: unit_amount_cents: description: "The unit amount of the line item option, in cents.\ \ When you add a line item option to an order, this is automatically\ - \ populated from associated SKU option's price." + \ populated from associated SKU option's price. Cannot be passed\ + \ by sales channels." example: 990 nullable: true unit_amount_float: @@ -33352,7 +42794,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -33396,6 +42838,38 @@ components: - sku_option id: description: The resource ID + events: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource ID + tags: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - tags + id: + description: The resource ID POST_line_item_options_201_response_data_attributes: properties: name: @@ -33403,8 +42877,13 @@ components: \ with the name of the associated SKU option." example: Embossing quantity: - description: The line item option's quantity + description: The line item option's quantity. example: 2 + unit_amount_cents: + description: "The unit amount of the line item option, in cents. When you\ + \ add a line item option to an order, this is automatically populated\ + \ from associated SKU option's price. Cannot be passed by sales channels." + example: 990 options: description: Set of key-value pairs that represent the selected options. example: @@ -33416,7 +42895,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -33461,6 +42940,10 @@ components: $ref: '#/components/schemas/POST_line_item_options_201_response_data_relationships_line_item' sku_option: $ref: '#/components/schemas/POST_line_item_options_201_response_data_relationships_sku_option' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' POST_line_item_options_201_response_data: properties: id: @@ -33488,7 +42971,7 @@ components: example: Embossing nullable: true quantity: - description: The line item option's quantity + description: The line item option's quantity. example: 2 nullable: false currency_code: @@ -33499,7 +42982,7 @@ components: unit_amount_cents: description: "The unit amount of the line item option, in cents. When you\ \ add a line item option to an order, this is automatically populated\ - \ from associated SKU option's price." + \ from associated SKU option's price. Cannot be passed by sales channels." example: 990 nullable: true unit_amount_float: @@ -33558,7 +43041,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -33595,9 +43078,15 @@ components: example: Embossing nullable: true quantity: - description: The line item option's quantity + description: The line item option's quantity. example: 2 nullable: false + unit_amount_cents: + description: "The unit amount of the line item option, in cents. When you\ + \ add a line item option to an order, this is automatically populated\ + \ from associated SKU option's price. Cannot be passed by sales channels." + example: 990 + nullable: true options: description: Set of key-value pairs that represent the selected options. example: @@ -33611,7 +43100,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -33670,6 +43159,13 @@ components: description: The line item quantity. example: 4 nullable: false + _external_price: + description: "When creating or updating a new line item, set this\ + \ attribute to '1' if you want to inject the unit_amount_cents\ + \ price from an external source. Any successive price computation\ + \ will be done externally, until the attribute is reset to '0'." + example: true + nullable: true currency_code: description: "The international 3-letter currency code as defined\ \ by the ISO 4217 standard, automatically inherited from the\ @@ -33678,50 +43174,65 @@ components: nullable: true unit_amount_cents: description: "The unit amount of the line item, in cents. Can\ - \ be specified without an item, otherwise is automatically populated\ - \ from the price list associated to the order's market." - example: 9900 + \ be specified only via an integration application, or when\ + \ the item is missing, otherwise is automatically computed by\ + \ using one of the available methods." + example: 10000 nullable: true unit_amount_float: description: "The unit amount of the line item, float. This can\ \ be useful to track the purchase on thrid party systems, e.g\ \ Google Analyitcs Enhanced Ecommerce." - example: 99.0 + example: 100.0 nullable: true formatted_unit_amount: description: "The unit amount of the line item, formatted. This\ \ can be useful to display the amount with currency in you views." - example: "€99,00" + example: "€100,00" + nullable: true + compare_at_amount_cents: + description: "The compared price amount, in cents. Useful to display\ + \ a percentage discount." + example: 13000 + nullable: true + compare_at_amount_float: + description: "The compared price amount, float." + example: 130.0 + nullable: true + formatted_compare_at_amount: + description: "The compared price amount, formatted." + example: "€130,00" nullable: true options_amount_cents: - description: "The options amount of the line item, in cents." - example: 990 + description: "The options amount of the line item, in cents. Cannot\ + \ be passed by sales channels." + example: 1000 nullable: true options_amount_float: description: "The options amount of the line item, float." - example: 9.9 + example: 10.0 nullable: true formatted_options_amount: description: "The options amount of the line item, formatted." - example: "€9,90" + example: "€10,00" nullable: true discount_cents: description: "The discount applied to the line item, in cents.\ \ When you apply a discount to an order, this is automatically\ \ calculated basing on the line item total_amount_cents value." - example: -900 + example: -1000 nullable: true discount_float: description: "The discount applied to the line item, float. When\ \ you apply a discount to an order, this is automatically calculated\ \ basing on the line item total_amount_cents value." - example: 9.0 + example: 10.0 nullable: true formatted_discount: description: "The discount applied to the line item, fromatted.\ \ When you apply a discount to an order, this is automatically\ \ calculated basing on the line item total_amount_cents value." - example: "€9,00" + example: "€10,00" nullable: true total_amount_cents: description: "Calculated as unit amount x quantity + options amount,\ @@ -33758,7 +43269,7 @@ components: name: description: "The name of the line item. When blank, it gets populated\ \ with the name of the associated item (if present)." - example: Black Men T-shirt with White Logo (XL) + example: Men's Black T-shirt with White Logo (XL) nullable: true image_url: description: "The image_url of the line item. When blank, it gets\ @@ -33770,8 +43281,10 @@ components: description: The discount breakdown for this line item (if calculated). example: "41": + name: 10% ALL cents: -900 weight: 0.416 + coupon_code: XXXXXXXX nullable: true tax_rate: description: The tax rate for this line item (if calculated). @@ -33798,22 +43311,26 @@ components: special_district_taxable_amount: 139.0 nullable: true item_type: - description: "The type of the associate item. Can be one of 'skus',\ - \ 'bundles', 'shipments', 'payment_methods', 'adjustments',\ - \ 'gift_cards', or a valid promotion type." + description: "The type of the associated item. One of 'skus',\ + \ 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments',\ + \ 'percentage_discount_promotions', 'free_shipping_promotions',\ + \ 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions',\ + \ 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'." enum: - skus - bundles + - gift_cards - shipments - payment_methods - adjustments - - gift_cards - percentage_discount_promotions - free_shipping_promotions + - buy_x_pay_y_promotions - free_gift_promotions - fixed_price_promotions - external_promotions - fixed_amount_promotions + - flex_promotions example: skus nullable: true frequency: @@ -33821,6 +43338,25 @@ components: be supported by existing associated subscription_model. example: monthly nullable: true + coupon_code: + description: "The coupon code, if any, used to trigger this promotion\ + \ line item. null for other line item types or if the promotion\ + \ line item wasn't triggered by a coupon." + example: SUMMERDISCOUNT + nullable: true + circuit_state: + description: "The circuit breaker state, by default it is 'closed'.\ + \ It can become 'open' once the number of consecutive failures\ + \ overlaps the specified threshold, in such case no further\ + \ calls to the failing callback are made." + example: closed + nullable: true + circuit_failure_count: + description: "The number of consecutive failures recorded by the\ + \ circuit breaker associated to this resource, will be reset\ + \ on first successful call to callback." + example: 5 + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -33838,7 +43374,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -33882,6 +43418,102 @@ components: - item id: description: The resource ID + sku: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - sku + id: + description: The resource ID + bundle: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - bundle + id: + description: The resource ID + adjustment: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - adjustment + id: + description: The resource ID + gift_card: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - gift_card + id: + description: The resource ID + shipment: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - shipment + id: + description: The resource ID + payment_method: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - payment_method + id: + description: The resource ID line_item_options: properties: links: @@ -33898,7 +43530,7 @@ components: - line_item_options id: description: The resource ID - shipment_line_items: + return_line_items: properties: links: properties: @@ -33911,7 +43543,23 @@ components: type: description: The resource's type enum: - - shipment_line_items + - return_line_items + id: + description: The resource ID + stock_reservations: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - stock_reservations id: description: The resource ID stock_line_items: @@ -33946,6 +43594,38 @@ components: - stock_transfers id: description: The resource ID + events: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource ID + tags: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - tags + id: + description: The resource ID POST_line_items_201_response_data_attributes: properties: sku_code: @@ -33960,43 +43640,58 @@ components: _external_price: description: "When creating or updating a new line item, set this attribute\ \ to '1' if you want to inject the unit_amount_cents price from an external\ - \ source." + \ source. Any successive price computation will be done externally, until\ + \ the attribute is reset to '0'." example: true _update_quantity: description: "When creating a new line item, set this attribute to '1' if\ \ you want to update the line item quantity (if present) instead of creating\ \ a new line item for the same SKU." example: true + _reserve_stock: + description: Send this attribute if you want to reserve the stock for the + line item's SKUs quantity. Stock reservations expiration depends on the + inventory model's cutoff. When used on update the existing active stock + reservations are renewed. Cannot be passed by sales channels. + example: true unit_amount_cents: description: "The unit amount of the line item, in cents. Can be specified\ - \ without an item, otherwise is automatically populated from the price\ - \ list associated to the order's market." - example: 9900 + \ only via an integration application, or when the item is missing, otherwise\ + \ is automatically computed by using one of the available methods." + example: 10000 + compare_at_amount_cents: + description: "The compared price amount, in cents. Useful to display a percentage\ + \ discount." + example: 13000 name: description: "The name of the line item. When blank, it gets populated with\ \ the name of the associated item (if present)." - example: Black Men T-shirt with White Logo (XL) + example: Men's Black T-shirt with White Logo (XL) image_url: description: "The image_url of the line item. When blank, it gets populated\ \ with the image_url of the associated item (if present, SKU only)." example: https://img.yourdomain.com/skus/xYZkjABcde.png item_type: - description: "The type of the associate item. Can be one of 'skus', 'bundles',\ - \ 'shipments', 'payment_methods', 'adjustments', 'gift_cards', or a valid\ - \ promotion type." + description: "The type of the associated item. One of 'skus', 'bundles',\ + \ 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'percentage_discount_promotions',\ + \ 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions',\ + \ 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions',\ + \ or 'flex_promotions'." enum: - skus - bundles + - gift_cards - shipments - payment_methods - adjustments - - gift_cards - percentage_discount_promotions - free_shipping_promotions + - buy_x_pay_y_promotions - free_gift_promotions - fixed_price_promotions - external_promotions - fixed_amount_promotions + - flex_promotions example: skus frequency: description: The frequency which generates a subscription. Must be supported @@ -34009,7 +43704,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -34033,6 +43728,62 @@ components: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_item_data' + POST_line_items_201_response_data_relationships_bundle_data: + properties: + type: + description: The resource's type + enum: + - bundle + id: + description: The resource ID + POST_line_items_201_response_data_relationships_bundle: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_bundle_data' + POST_line_items_201_response_data_relationships_adjustment_data: + properties: + type: + description: The resource's type + enum: + - adjustment + id: + description: The resource ID + POST_line_items_201_response_data_relationships_adjustment: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_adjustment_data' + POST_line_items_201_response_data_relationships_gift_card_data: + properties: + type: + description: The resource's type + enum: + - gift_card + id: + description: The resource ID + POST_line_items_201_response_data_relationships_gift_card: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_gift_card_data' + POST_line_items_201_response_data_relationships_shipment_data: + properties: + type: + description: The resource's type + enum: + - shipment + id: + description: The resource ID + POST_line_items_201_response_data_relationships_shipment: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_shipment_data' POST_line_items_201_response_data_relationships_line_item_options_data: properties: type: @@ -34047,20 +43798,34 @@ components: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_line_item_options_data' - POST_line_items_201_response_data_relationships_shipment_line_items_data: + POST_line_items_201_response_data_relationships_return_line_items_data: + properties: + type: + description: The resource's type + enum: + - return_line_items + id: + description: The resource ID + POST_line_items_201_response_data_relationships_return_line_items: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_return_line_items_data' + POST_line_items_201_response_data_relationships_stock_reservations_data: properties: type: description: The resource's type enum: - - shipment_line_items + - stock_reservations id: description: The resource ID - POST_line_items_201_response_data_relationships_shipment_line_items: + POST_line_items_201_response_data_relationships_stock_reservations: properties: links: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: - $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_shipment_line_items_data' + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_stock_reservations_data' POST_line_items_201_response_data_relationships_stock_line_items_data: properties: type: @@ -34095,14 +43860,32 @@ components: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' item: $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_item' + sku: + $ref: '#/components/schemas/POST_in_stock_subscriptions_201_response_data_relationships_sku' + bundle: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_bundle' + adjustment: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_adjustment' + gift_card: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_gift_card' + shipment: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_shipment' + payment_method: + $ref: '#/components/schemas/POST_customer_payment_sources_201_response_data_relationships_payment_method' line_item_options: $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_line_item_options' - shipment_line_items: - $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_shipment_line_items' + return_line_items: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_return_line_items' + stock_reservations: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_stock_reservations' stock_line_items: $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_stock_line_items' stock_transfers: $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_stock_transfers' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' POST_line_items_201_response_data: properties: id: @@ -34136,6 +43919,13 @@ components: description: The line item quantity. example: 4 nullable: false + _external_price: + description: "When creating or updating a new line item, set this attribute\ + \ to '1' if you want to inject the unit_amount_cents price from an external\ + \ source. Any successive price computation will be done externally, until\ + \ the attribute is reset to '0'." + example: true + nullable: true currency_code: description: "The international 3-letter currency code as defined by the\ \ ISO 4217 standard, automatically inherited from the order's market." @@ -34143,50 +43933,64 @@ components: nullable: true unit_amount_cents: description: "The unit amount of the line item, in cents. Can be specified\ - \ without an item, otherwise is automatically populated from the price\ - \ list associated to the order's market." - example: 9900 + \ only via an integration application, or when the item is missing, otherwise\ + \ is automatically computed by using one of the available methods." + example: 10000 nullable: true unit_amount_float: description: "The unit amount of the line item, float. This can be useful\ \ to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced\ \ Ecommerce." - example: 99.0 + example: 100.0 nullable: true formatted_unit_amount: description: "The unit amount of the line item, formatted. This can be useful\ \ to display the amount with currency in you views." - example: "€99,00" + example: "€100,00" + nullable: true + compare_at_amount_cents: + description: "The compared price amount, in cents. Useful to display a percentage\ + \ discount." + example: 13000 + nullable: true + compare_at_amount_float: + description: "The compared price amount, float." + example: 130.0 + nullable: true + formatted_compare_at_amount: + description: "The compared price amount, formatted." + example: "€130,00" nullable: true options_amount_cents: - description: "The options amount of the line item, in cents." - example: 990 + description: "The options amount of the line item, in cents. Cannot be passed\ + \ by sales channels." + example: 1000 nullable: true options_amount_float: description: "The options amount of the line item, float." - example: 9.9 + example: 10.0 nullable: true formatted_options_amount: description: "The options amount of the line item, formatted." - example: "€9,90" + example: "€10,00" nullable: true discount_cents: description: "The discount applied to the line item, in cents. When you\ \ apply a discount to an order, this is automatically calculated basing\ \ on the line item total_amount_cents value." - example: -900 + example: -1000 nullable: true discount_float: description: "The discount applied to the line item, float. When you apply\ \ a discount to an order, this is automatically calculated basing on the\ \ line item total_amount_cents value." - example: 9.0 + example: 10.0 nullable: true formatted_discount: description: "The discount applied to the line item, fromatted. When you\ \ apply a discount to an order, this is automatically calculated basing\ \ on the line item total_amount_cents value." - example: "€9,00" + example: "€10,00" nullable: true total_amount_cents: description: "Calculated as unit amount x quantity + options amount, in\ @@ -34222,7 +44026,7 @@ components: name: description: "The name of the line item. When blank, it gets populated with\ \ the name of the associated item (if present)." - example: Black Men T-shirt with White Logo (XL) + example: Men's Black T-shirt with White Logo (XL) nullable: true image_url: description: "The image_url of the line item. When blank, it gets populated\ @@ -34233,8 +44037,10 @@ components: description: The discount breakdown for this line item (if calculated). example: "41": + name: 10% ALL cents: -900 weight: 0.416 + coupon_code: XXXXXXXX nullable: true tax_rate: description: The tax rate for this line item (if calculated). @@ -34261,22 +44067,26 @@ components: special_district_taxable_amount: 139.0 nullable: true item_type: - description: "The type of the associate item. Can be one of 'skus', 'bundles',\ - \ 'shipments', 'payment_methods', 'adjustments', 'gift_cards', or a valid\ - \ promotion type." + description: "The type of the associated item. One of 'skus', 'bundles',\ + \ 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'percentage_discount_promotions',\ + \ 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions',\ + \ 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions',\ + \ or 'flex_promotions'." enum: - skus - bundles + - gift_cards - shipments - payment_methods - adjustments - - gift_cards - percentage_discount_promotions - free_shipping_promotions + - buy_x_pay_y_promotions - free_gift_promotions - fixed_price_promotions - external_promotions - fixed_amount_promotions + - flex_promotions example: skus nullable: true frequency: @@ -34284,6 +44094,25 @@ components: by existing associated subscription_model. example: monthly nullable: true + coupon_code: + description: "The coupon code, if any, used to trigger this promotion line\ + \ item. null for other line item types or if the promotion line item wasn't\ + \ triggered by a coupon." + example: SUMMERDISCOUNT + nullable: true + circuit_state: + description: "The circuit breaker state, by default it is 'closed'. It can\ + \ become 'open' once the number of consecutive failures overlaps the specified\ + \ threshold, in such case no further calls to the failing callback are\ + \ made." + example: closed + nullable: true + circuit_failure_count: + description: "The number of consecutive failures recorded by the circuit\ + \ breaker associated to this resource, will be reset on first successful\ + \ call to callback." + example: 5 + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -34300,7 +44129,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -34346,12 +44175,37 @@ components: _external_price: description: "When creating or updating a new line item, set this attribute\ \ to '1' if you want to inject the unit_amount_cents price from an external\ - \ source." + \ source. Any successive price computation will be done externally, until\ + \ the attribute is reset to '0'." example: true + nullable: false + _reserve_stock: + description: Send this attribute if you want to reserve the stock for the + line item's SKUs quantity. Stock reservations expiration depends on the + inventory model's cutoff. When used on update the existing active stock + reservations are renewed. Cannot be passed by sales channels. + example: true + nullable: false + unit_amount_cents: + description: "The unit amount of the line item, in cents. Can be specified\ + \ only via an integration application, or when the item is missing, otherwise\ + \ is automatically computed by using one of the available methods." + example: 10000 + nullable: true + compare_at_amount_cents: + description: "The compared price amount, in cents. Useful to display a percentage\ + \ discount." + example: 13000 + nullable: true + options_amount_cents: + description: "The options amount of the line item, in cents. Cannot be passed\ + \ by sales channels." + example: 1000 + nullable: true name: description: "The name of the line item. When blank, it gets populated with\ \ the name of the associated item (if present)." - example: Black Men T-shirt with White Logo (XL) + example: Men's Black T-shirt with White Logo (XL) nullable: true image_url: description: "The image_url of the line item. When blank, it gets populated\ @@ -34363,6 +44217,12 @@ components: by existing associated subscription_model. example: monthly nullable: true + _reset_circuit: + description: Send this attribute if you want to reset the circuit breaker + associated to this resource to 'closed' state and zero failures count. + Cannot be passed by sales channels. + example: true + nullable: false reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -34371,7 +44231,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -34400,6 +44260,416 @@ components: properties: data: $ref: '#/components/schemas/PATCH_line_items_lineItemId_200_response_data' + GET_links_200_response: + properties: + data: + items: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - links + links: + properties: + self: + description: URL + attributes: + properties: + name: + description: The link internal name. + example: FW SALE 2023 + nullable: false + client_id: + description: "The link application client id, used to fetch JWT." + example: xxxx-yyyy-zzzz + nullable: false + scope: + description: "The link application scope, used to fetch JWT." + example: "market:id:GhvCxsElAQ,market:id:kJhgVcxZDr" + nullable: false + starts_at: + description: The activation date/time of this link. + example: 2018-01-01T12:00:00.000Z + nullable: true + expires_at: + description: The expiration date/time of this link (must be after + starts_at). + example: 2018-01-02T12:00:00.000Z + nullable: true + active: + description: Indicates if the link is active (enabled and not + expired). + example: true + nullable: true + status: + description: "The link status. One of 'disabled', 'expired', 'pending',\ + \ or 'active'." + enum: + - disabled + - expired + - pending + - active + example: pending + nullable: true + domain: + description: The link URL second level domain. + example: commercelayer.link + nullable: true + url: + description: The link URL. + example: https://commercelayer.link/ZXUtd2VzdC0xLzE5ZjBlMGVlLTg4OGMtNDQ1Yi1iYTA0LTg3MTUxY2FjZjFmYQ + nullable: true + item_type: + description: "The type of the associated item. One of 'orders',\ + \ 'skus', or 'sku_lists'." + enum: + - orders + - skus + - sku_lists + example: orders + nullable: true + params: + description: The link params to be passed in URL the query string. + example: + param1: ABC + param2: XYZ + nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier\ + \ to the resource. This can be useful for integrating the resource\ + \ to an external system, like an ERP, a marketing tool, a CRM,\ + \ or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines + the reference code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the + resource. This can be useful for storing additional information + about the resource in a structured format. + example: + foo: bar + nullable: true + relationships: + properties: + item: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - item + id: + description: The resource ID + events: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource ID + POST_links_201_response_data_attributes: + properties: + name: + description: The link internal name. + example: FW SALE 2023 + client_id: + description: "The link application client id, used to fetch JWT." + example: xxxx-yyyy-zzzz + scope: + description: "The link application scope, used to fetch JWT." + example: "market:id:GhvCxsElAQ,market:id:kJhgVcxZDr" + starts_at: + description: The activation date/time of this link. + example: 2018-01-01T12:00:00.000Z + expires_at: + description: The expiration date/time of this link (must be after starts_at). + example: 2018-01-02T12:00:00.000Z + domain: + description: The link URL second level domain. + example: commercelayer.link + item_type: + description: "The type of the associated item. One of 'orders', 'skus',\ + \ or 'sku_lists'." + enum: + - orders + - skus + - sku_lists + example: orders + params: + description: The link params to be passed in URL the query string. + example: + param1: ABC + param2: XYZ + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + required: + - client_id + - name + - scope + POST_links_201_response_data_relationships: + properties: + item: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_item' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + POST_links_201_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - links + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/POST_links_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_links_201_response_data_relationships' + POST_links_201_response: + properties: + data: + $ref: '#/components/schemas/POST_links_201_response_data' + GET_links_linkId_200_response_data_attributes: + properties: + name: + description: The link internal name. + example: FW SALE 2023 + nullable: false + client_id: + description: "The link application client id, used to fetch JWT." + example: xxxx-yyyy-zzzz + nullable: false + scope: + description: "The link application scope, used to fetch JWT." + example: "market:id:GhvCxsElAQ,market:id:kJhgVcxZDr" + nullable: false + starts_at: + description: The activation date/time of this link. + example: 2018-01-01T12:00:00.000Z + nullable: true + expires_at: + description: The expiration date/time of this link (must be after starts_at). + example: 2018-01-02T12:00:00.000Z + nullable: true + active: + description: Indicates if the link is active (enabled and not expired). + example: true + nullable: true + status: + description: "The link status. One of 'disabled', 'expired', 'pending',\ + \ or 'active'." + enum: + - disabled + - expired + - pending + - active + example: pending + nullable: true + domain: + description: The link URL second level domain. + example: commercelayer.link + nullable: true + url: + description: The link URL. + example: https://commercelayer.link/ZXUtd2VzdC0xLzE5ZjBlMGVlLTg4OGMtNDQ1Yi1iYTA0LTg3MTUxY2FjZjFmYQ + nullable: true + item_type: + description: "The type of the associated item. One of 'orders', 'skus',\ + \ or 'sku_lists'." + enum: + - orders + - skus + - sku_lists + example: orders + nullable: true + params: + description: The link params to be passed in URL the query string. + example: + param1: ABC + param2: XYZ + nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + GET_links_linkId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - links + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/GET_links_linkId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_links_201_response_data_relationships' + GET_links_linkId_200_response: + properties: + data: + $ref: '#/components/schemas/GET_links_linkId_200_response_data' + PATCH_links_linkId_200_response_data_attributes: + properties: + name: + description: The link internal name. + example: FW SALE 2023 + nullable: false + client_id: + description: "The link application client id, used to fetch JWT." + example: xxxx-yyyy-zzzz + nullable: false + scope: + description: "The link application scope, used to fetch JWT." + example: "market:id:GhvCxsElAQ,market:id:kJhgVcxZDr" + nullable: false + starts_at: + description: The activation date/time of this link. + example: 2018-01-01T12:00:00.000Z + nullable: true + expires_at: + description: The expiration date/time of this link (must be after starts_at). + example: 2018-01-02T12:00:00.000Z + nullable: true + domain: + description: The link URL second level domain. + example: commercelayer.link + nullable: true + params: + description: The link params to be passed in URL the query string. + example: + param1: ABC + param2: XYZ + nullable: true + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + nullable: false + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + PATCH_links_linkId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - links + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/PATCH_links_linkId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_links_201_response_data_relationships' + PATCH_links_linkId_200_response: + properties: + data: + $ref: '#/components/schemas/PATCH_links_linkId_200_response_data' GET_manual_gateways_200_response: properties: data: @@ -34439,7 +44709,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -34467,6 +44737,22 @@ components: - payment_methods id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_manual_gateways_201_response_data_attributes: properties: name: @@ -34479,7 +44765,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -34493,6 +44779,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/POST_adyen_gateways_201_response_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_manual_gateways_201_response_data: properties: id: @@ -34545,7 +44833,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -34596,6 +44884,15 @@ components: description: The tax calculator's internal name. example: Personal tax calculator nullable: false + type: + description: The tax calculator's type. + enum: + - avalara_accounts + - taxjar_accounts + - manual_tax_calculators + - external_tax_calculators + example: avalara_accounts + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -34613,7 +44910,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -34657,6 +44954,22 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID tax_rules: properties: links: @@ -34685,7 +44998,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -34714,7 +45027,9 @@ components: markets: $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_markets' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' tax_rules: $ref: '#/components/schemas/POST_manual_tax_calculators_201_response_data_relationships_tax_rules' POST_manual_tax_calculators_201_response_data: @@ -34742,6 +45057,15 @@ components: description: The tax calculator's internal name. example: Personal tax calculator nullable: false + type: + description: The tax calculator's type. + enum: + - avalara_accounts + - taxjar_accounts + - manual_tax_calculators + - external_tax_calculators + example: avalara_accounts + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -34758,7 +45082,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -34801,7 +45125,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -34849,19 +45173,24 @@ components: attributes: properties: number: - description: Unique identifier for the market (numeric) + description: Unique identifier for the market (numeric). example: 1234 nullable: true name: - description: The market's internal name + description: The market's internal name. example: EU Market nullable: false + code: + description: A string that you can use to identify the market + (must be unique within the environment). + example: europe1 + nullable: true facebook_pixel_id: - description: The Facebook Pixed ID + description: The Facebook Pixed ID. example: "1234567890" nullable: true checkout_url: - description: The checkout URL for this market + description: The checkout URL for this market. example: https://checkout.yourbrand.com/:order_id nullable: true external_prices_url: @@ -34872,19 +45201,24 @@ components: description: The URL used to validate orders by an external source. example: https://external_validation.yourbrand.com nullable: true - shared_secret: - description: The shared secret used to sign the external requests - payload. - example: 1c0994cc4e996e8c6ee56a2198f66f3c - nullable: false private: description: Indicates if market belongs to a customer_group. example: true nullable: true + shipping_cost_cutoff: + description: When specified indicates the maximum number of shipping + line items with cost that will be added to an order. + example: 3 + nullable: true disabled_at: - description: Time at which the market was disabled. + description: Time at which this resource was disabled. example: 2018-01-01T12:00:00.000Z nullable: true + shared_secret: + description: The shared secret used to sign the external request + payload. + example: 1c0994cc4e996e8c6ee56a2198f66f3c + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -34902,7 +45236,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -34946,6 +45280,22 @@ components: - price_list id: description: The resource ID + base_price_list: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - base_price_list + id: + description: The resource ID inventory_model: properties: links: @@ -35010,6 +45360,38 @@ components: - customer_group id: description: The resource ID + geocoder: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - geocoder + id: + description: The resource ID + price_list_schedulers: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - price_list_schedulers + id: + description: The resource ID attachments: properties: links: @@ -35026,16 +45408,36 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_markets_201_response_data_attributes: properties: name: - description: The market's internal name + description: The market's internal name. example: EU Market + code: + description: A string that you can use to identify the market (must be unique + within the environment). + example: europe1 facebook_pixel_id: - description: The Facebook Pixed ID + description: The Facebook Pixed ID. example: "1234567890" checkout_url: - description: The checkout URL for this market + description: The checkout URL for this market. example: https://checkout.yourbrand.com/:order_id external_prices_url: description: The URL used to overwrite prices by an external source. @@ -35043,6 +45445,16 @@ components: external_order_validation_url: description: The URL used to validate orders by an external source. example: https://external_validation.yourbrand.com + shipping_cost_cutoff: + description: When specified indicates the maximum number of shipping line + items with cost that will be added to an order. + example: 3 + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -35050,7 +45462,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -35088,6 +45500,20 @@ components: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: $ref: '#/components/schemas/POST_markets_201_response_data_relationships_price_list_data' + POST_markets_201_response_data_relationships_base_price_list_data: + properties: + type: + description: The resource's type + enum: + - base_price_list + id: + description: The resource ID + POST_markets_201_response_data_relationships_base_price_list: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_markets_201_response_data_relationships_base_price_list_data' POST_markets_201_response_data_relationships_subscription_model_data: properties: type: @@ -35116,12 +45542,28 @@ components: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: $ref: '#/components/schemas/POST_markets_201_response_data_relationships_tax_calculator_data' + POST_markets_201_response_data_relationships_price_list_schedulers_data: + properties: + type: + description: The resource's type + enum: + - price_list_schedulers + id: + description: The resource ID + POST_markets_201_response_data_relationships_price_list_schedulers: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_markets_201_response_data_relationships_price_list_schedulers_data' POST_markets_201_response_data_relationships: properties: merchant: $ref: '#/components/schemas/POST_markets_201_response_data_relationships_merchant' price_list: $ref: '#/components/schemas/POST_markets_201_response_data_relationships_price_list' + base_price_list: + $ref: '#/components/schemas/POST_markets_201_response_data_relationships_base_price_list' inventory_model: $ref: '#/components/schemas/POST_inventory_return_locations_201_response_data_relationships_inventory_model' subscription_model: @@ -35130,8 +45572,14 @@ components: $ref: '#/components/schemas/POST_markets_201_response_data_relationships_tax_calculator' customer_group: $ref: '#/components/schemas/POST_customers_201_response_data_relationships_customer_group' + geocoder: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder' + price_list_schedulers: + $ref: '#/components/schemas/POST_markets_201_response_data_relationships_price_list_schedulers' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_markets_201_response_data: properties: id: @@ -35154,19 +45602,24 @@ components: GET_markets_marketId_200_response_data_attributes: properties: number: - description: Unique identifier for the market (numeric) + description: Unique identifier for the market (numeric). example: 1234 nullable: true name: - description: The market's internal name + description: The market's internal name. example: EU Market nullable: false + code: + description: A string that you can use to identify the market (must be unique + within the environment). + example: europe1 + nullable: true facebook_pixel_id: - description: The Facebook Pixed ID + description: The Facebook Pixed ID. example: "1234567890" nullable: true checkout_url: - description: The checkout URL for this market + description: The checkout URL for this market. example: https://checkout.yourbrand.com/:order_id nullable: true external_prices_url: @@ -35177,18 +45630,23 @@ components: description: The URL used to validate orders by an external source. example: https://external_validation.yourbrand.com nullable: true - shared_secret: - description: The shared secret used to sign the external requests payload. - example: 1c0994cc4e996e8c6ee56a2198f66f3c - nullable: false private: description: Indicates if market belongs to a customer_group. example: true nullable: true + shipping_cost_cutoff: + description: When specified indicates the maximum number of shipping line + items with cost that will be added to an order. + example: 3 + nullable: true disabled_at: - description: Time at which the market was disabled. + description: Time at which this resource was disabled. example: 2018-01-01T12:00:00.000Z nullable: true + shared_secret: + description: The shared secret used to sign the external request payload. + example: 1c0994cc4e996e8c6ee56a2198f66f3c + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -35205,7 +45663,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -35237,15 +45695,20 @@ components: PATCH_markets_marketId_200_response_data_attributes: properties: name: - description: The market's internal name + description: The market's internal name. example: EU Market nullable: false + code: + description: A string that you can use to identify the market (must be unique + within the environment). + example: europe1 + nullable: true facebook_pixel_id: - description: The Facebook Pixed ID + description: The Facebook Pixed ID. example: "1234567890" nullable: true checkout_url: - description: The checkout URL for this market + description: The checkout URL for this market. example: https://checkout.yourbrand.com/:order_id nullable: true external_prices_url: @@ -35256,12 +45719,17 @@ components: description: The URL used to validate orders by an external source. example: https://external_validation.yourbrand.com nullable: true + shipping_cost_cutoff: + description: When specified indicates the maximum number of shipping line + items with cost that will be added to an order. + example: 3 + nullable: true _disable: - description: Send this attribute if you want to mark the market as disabled. + description: Send this attribute if you want to mark this resource as disabled. example: true nullable: false _enable: - description: Send this attribute if you want to mark the market as enabled. + description: Send this attribute if you want to mark this resource as enabled. example: true nullable: false reference: @@ -35272,7 +45740,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -35340,7 +45808,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -35384,6 +45852,22 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_merchants_201_response_data_attributes: properties: name: @@ -35396,7 +45880,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -35411,7 +45895,9 @@ components: address: $ref: '#/components/schemas/POST_customer_addresses_201_response_data_relationships_address' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_merchants_201_response_data: properties: id: @@ -35453,7 +45939,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -35496,7 +45982,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -35543,6 +46029,15 @@ components: description: URL attributes: properties: + type: + description: The promotion rule's type. + enum: + - order_amount_promotion_rules + - sku_list_promotion_rules + - coupon_codes_promotion_rules + - custom_promotion_rules + example: coupon_codes_promotion_rules + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -35560,7 +46055,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -35585,24 +46080,17 @@ components: \ amount, formatted." example: "€10,00" nullable: true + use_subtotal: + description: "Send this attribute if you want to compare the specified\ + \ amount with order's subtotal (excluding discounts, if any)." + example: true + nullable: true relationships: properties: promotion: - properties: - links: - properties: - self: - description: URL - related: - description: URL - data: - properties: - type: - description: The resource's type - enum: - - promotion - id: - description: The resource ID + $ref: '#/components/schemas/POST_coupon_codes_promotion_rules_201_response_data_relationships_promotion' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_order_amount_promotion_rules_201_response_data_attributes: properties: reference: @@ -35612,7 +46100,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -35624,10 +46112,10 @@ components: description: "Apply the promotion only when order is over this amount, in\ \ cents." example: 1000 - POST_order_amount_promotion_rules_201_response_data_relationships: - properties: - promotion: - $ref: '#/components/schemas/POST_coupon_codes_promotion_rules_201_response_data_relationships_promotion' + use_subtotal: + description: "Send this attribute if you want to compare the specified amount\ + \ with order's subtotal (excluding discounts, if any)." + example: true POST_order_amount_promotion_rules_201_response_data: properties: id: @@ -35642,13 +46130,22 @@ components: attributes: $ref: '#/components/schemas/POST_order_amount_promotion_rules_201_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_order_amount_promotion_rules_201_response_data_relationships' + $ref: '#/components/schemas/POST_custom_promotion_rules_201_response_data_relationships' POST_order_amount_promotion_rules_201_response: properties: data: $ref: '#/components/schemas/POST_order_amount_promotion_rules_201_response_data' GET_order_amount_promotion_rules_orderAmountPromotionRuleId_200_response_data_attributes: properties: + type: + description: The promotion rule's type. + enum: + - order_amount_promotion_rules + - sku_list_promotion_rules + - coupon_codes_promotion_rules + - custom_promotion_rules + example: coupon_codes_promotion_rules + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -35665,7 +46162,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -35688,6 +46185,11 @@ components: description: "Apply the promotion only when order is over this amount, formatted." example: "€10,00" nullable: true + use_subtotal: + description: "Send this attribute if you want to compare the specified amount\ + \ with order's subtotal (excluding discounts, if any)." + example: true + nullable: true GET_order_amount_promotion_rules_orderAmountPromotionRuleId_200_response_data: properties: id: @@ -35702,7 +46204,7 @@ components: attributes: $ref: '#/components/schemas/GET_order_amount_promotion_rules_orderAmountPromotionRuleId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_order_amount_promotion_rules_201_response_data_relationships' + $ref: '#/components/schemas/POST_custom_promotion_rules_201_response_data_relationships' GET_order_amount_promotion_rules_orderAmountPromotionRuleId_200_response: properties: data: @@ -35717,7 +46219,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -35732,6 +46234,11 @@ components: \ cents." example: 1000 nullable: true + use_subtotal: + description: "Send this attribute if you want to compare the specified amount\ + \ with order's subtotal (excluding discounts, if any)." + example: true + nullable: false PATCH_order_amount_promotion_rules_orderAmountPromotionRuleId_200_response_data: properties: id: @@ -35746,7 +46253,7 @@ components: attributes: $ref: '#/components/schemas/PATCH_order_amount_promotion_rules_orderAmountPromotionRuleId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_order_amount_promotion_rules_201_response_data_relationships' + $ref: '#/components/schemas/POST_custom_promotion_rules_201_response_data_relationships' PATCH_order_amount_promotion_rules_orderAmountPromotionRuleId_200_response: properties: data: @@ -35769,6 +46276,13 @@ components: description: URL attributes: properties: + type: + description: The order factory's type. + enum: + - order_copies + - recurring_order_copies + example: recurring_order_copies + nullable: false status: description: "The order factory status. One of 'pending' (default),\ \ 'in_progress', 'failed', or 'completed'." @@ -35828,7 +46342,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -35843,6 +46357,14 @@ components: copy. example: true nullable: true + apply_promotions: + description: Indicates if promotions got applied upon copy. + example: true + nullable: true + ignore_invalid_coupon: + description: Indicates to ignore invalid coupon code during copy. + example: true + nullable: true relationships: properties: source_order: @@ -35925,7 +46447,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -35936,6 +46458,12 @@ components: cancel_source_order: description: Indicates if the source order must be cancelled upon copy. example: true + apply_promotions: + description: Indicates if promotions got applied upon copy. + example: true + ignore_invalid_coupon: + description: Indicates to ignore invalid coupon code during copy. + example: true POST_order_copies_201_response_data_relationships_source_order_data: properties: type: @@ -35985,7 +46513,7 @@ components: target_order: $ref: '#/components/schemas/POST_order_copies_201_response_data_relationships_target_order' events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' order_subscription: $ref: '#/components/schemas/POST_order_copies_201_response_data_relationships_order_subscription' POST_order_copies_201_response_data: @@ -36009,6 +46537,13 @@ components: $ref: '#/components/schemas/POST_order_copies_201_response_data' GET_order_copies_orderCopyId_200_response_data_attributes: properties: + type: + description: The order factory's type. + enum: + - order_copies + - recurring_order_copies + example: recurring_order_copies + nullable: false status: description: "The order factory status. One of 'pending' (default), 'in_progress',\ \ 'failed', or 'completed'." @@ -36066,7 +46601,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -36080,6 +46615,14 @@ components: description: Indicates if the source order must be cancelled upon copy. example: true nullable: true + apply_promotions: + description: Indicates if promotions got applied upon copy. + example: true + nullable: true + ignore_invalid_coupon: + description: Indicates to ignore invalid coupon code during copy. + example: true + nullable: true GET_order_copies_orderCopyId_200_response_data: properties: id: @@ -36136,6 +46679,13 @@ components: description: URL attributes: properties: + type: + description: The order factory's type. + enum: + - order_copies + - recurring_order_copies + example: recurring_order_copies + nullable: false status: description: "The order factory status. One of 'pending' (default),\ \ 'in_progress', 'failed', or 'completed'." @@ -36195,7 +46745,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -36257,6 +46807,13 @@ components: description: The resource ID GET_order_factories_orderFactoryId_200_response_data_attributes: properties: + type: + description: The order factory's type. + enum: + - order_copies + - recurring_order_copies + example: recurring_order_copies + nullable: false status: description: "The order factory status. One of 'pending' (default), 'in_progress',\ \ 'failed', or 'completed'." @@ -36314,7 +46871,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -36331,7 +46888,7 @@ components: target_order: $ref: '#/components/schemas/POST_order_copies_201_response_data_relationships_target_order' events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' GET_order_factories_orderFactoryId_200_response_data: properties: id: @@ -36369,6 +46926,14 @@ components: description: URL attributes: properties: + sku_code: + description: The code of the associated SKU. + example: TSHIRTMM000000FFFFFFXLXX + nullable: true + bundle_code: + description: The code of the associated bundle. + example: BUNDLEMM000000FFFFFFXLXX + nullable: true quantity: description: The subscription item quantity. example: 4 @@ -36423,7 +46988,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -36467,6 +47032,70 @@ components: - item id: description: The resource ID + sku: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - sku + id: + description: The resource ID + bundle: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - bundle + id: + description: The resource ID + adjustment: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - adjustment + id: + description: The resource ID + source_line_item: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - source_line_item + id: + description: The resource ID POST_order_subscription_items_201_response_data_attributes: properties: sku_code: @@ -36488,7 +47117,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -36498,12 +47127,34 @@ components: foo: bar required: - quantity + POST_order_subscription_items_201_response_data_relationships_source_line_item_data: + properties: + type: + description: The resource's type + enum: + - source_line_item + id: + description: The resource ID + POST_order_subscription_items_201_response_data_relationships_source_line_item: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_order_subscription_items_201_response_data_relationships_source_line_item_data' POST_order_subscription_items_201_response_data_relationships: properties: order_subscription: $ref: '#/components/schemas/POST_order_copies_201_response_data_relationships_order_subscription' item: $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_item' + sku: + $ref: '#/components/schemas/POST_in_stock_subscriptions_201_response_data_relationships_sku' + bundle: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_bundle' + adjustment: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_adjustment' + source_line_item: + $ref: '#/components/schemas/POST_order_subscription_items_201_response_data_relationships_source_line_item' POST_order_subscription_items_201_response_data: properties: id: @@ -36525,6 +47176,14 @@ components: $ref: '#/components/schemas/POST_order_subscription_items_201_response_data' GET_order_subscription_items_orderSubscriptionItemId_200_response_data_attributes: properties: + sku_code: + description: The code of the associated SKU. + example: TSHIRTMM000000FFFFFFXLXX + nullable: true + bundle_code: + description: The code of the associated bundle. + example: BUNDLEMM000000FFFFFFXLXX + nullable: true quantity: description: The subscription item quantity. example: 4 @@ -36575,7 +47234,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -36609,9 +47268,11 @@ components: sku_code: description: The code of the associated SKU. example: TSHIRTMM000000FFFFFFXLXX + nullable: true bundle_code: description: The code of the associated bundle. example: BUNDLEMM000000FFFFFFXLXX + nullable: true quantity: description: The subscription item quantity. example: 4 @@ -36628,7 +47289,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -36676,7 +47337,7 @@ components: attributes: properties: number: - description: Unique identifier for the subscription (numeric) + description: Unique identifier for the subscription (numeric). example: "1234" nullable: true status: @@ -36702,6 +47363,17 @@ components: the placed source order as its first run. example: true nullable: true + place_target_order: + description: Indicates if the subscription created orders are + automatically placed at the end of the copy. + example: true + nullable: true + renewal_alert_period: + description: Indicates the number of hours the renewal alert will + be triggered before the subscription next run. Must be included + between 1 and 720 hours. + example: 1 + nullable: true customer_email: description: "The email address of the customer, if any, associated\ \ to the source order." @@ -36716,6 +47388,10 @@ components: be after starts_at). example: 2018-01-02T12:00:00.000Z nullable: true + last_run_at: + description: The date/time of the subscription last run. + example: 2018-01-01T12:00:00.000Z + nullable: true next_run_at: description: "The date/time of the subscription next run. Can\ \ be updated but only in the future, to copy with frequency\ @@ -36736,14 +47412,6 @@ components: last run. example: true nullable: true - options: - description: "The subscription options used to create the order\ - \ (check order_factories for more information). For subscriptions\ - \ the `place_target_order` is enabled by default, specify custom\ - \ options to overwrite it." - example: - place_target_order: false - nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -36761,7 +47429,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -36885,7 +47553,7 @@ components: - order_factories id: description: The resource ID - order_copies: + recurring_order_copies: properties: links: properties: @@ -36898,10 +47566,10 @@ components: type: description: The resource's type enum: - - order_copies + - recurring_order_copies id: description: The resource ID - recurring_order_copies: + orders: properties: links: properties: @@ -36914,10 +47582,10 @@ components: type: description: The resource's type enum: - - recurring_order_copies + - orders id: description: The resource ID - orders: + events: properties: links: properties: @@ -36930,10 +47598,10 @@ components: type: description: The resource's type enum: - - orders + - events id: description: The resource ID - events: + tags: properties: links: properties: @@ -36946,7 +47614,23 @@ components: type: description: The resource's type enum: - - events + - tags + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions id: description: The resource ID POST_order_subscriptions_201_response_data_attributes: @@ -36962,6 +47646,14 @@ components: description: Indicates if the subscription will be activated considering the placed source order as its first run. example: true + place_target_order: + description: Indicates if the subscription created orders are automatically + placed at the end of the copy. + example: true + renewal_alert_period: + description: Indicates the number of hours the renewal alert will be triggered + before the subscription next run. Must be included between 1 and 720 hours. + example: 1 starts_at: description: The activation date/time of this subscription. example: 2018-01-01T12:00:00.000Z @@ -36969,12 +47661,6 @@ components: description: The expiration date/time of this subscription (must be after starts_at). example: 2018-01-02T12:00:00.000Z - options: - description: "The subscription options used to create the order (check order_factories\ - \ for more information). For subscriptions the `place_target_order` is\ - \ enabled by default, specify custom options to overwrite it." - example: - place_target_order: false reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -36982,7 +47668,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -37034,20 +47720,6 @@ components: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: $ref: '#/components/schemas/POST_order_subscriptions_201_response_data_relationships_order_factories_data' - POST_order_subscriptions_201_response_data_relationships_order_copies_data: - properties: - type: - description: The resource's type - enum: - - order_copies - id: - description: The resource ID - POST_order_subscriptions_201_response_data_relationships_order_copies: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/POST_order_subscriptions_201_response_data_relationships_order_copies_data' POST_order_subscriptions_201_response_data_relationships_recurring_order_copies_data: properties: type: @@ -37078,14 +47750,16 @@ components: $ref: '#/components/schemas/POST_order_subscriptions_201_response_data_relationships_order_subscription_items' order_factories: $ref: '#/components/schemas/POST_order_subscriptions_201_response_data_relationships_order_factories' - order_copies: - $ref: '#/components/schemas/POST_order_subscriptions_201_response_data_relationships_order_copies' recurring_order_copies: $ref: '#/components/schemas/POST_order_subscriptions_201_response_data_relationships_recurring_order_copies' orders: $ref: '#/components/schemas/POST_customers_201_response_data_relationships_orders' events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_order_subscriptions_201_response_data: properties: id: @@ -37108,7 +47782,7 @@ components: GET_order_subscriptions_orderSubscriptionId_200_response_data_attributes: properties: number: - description: Unique identifier for the subscription (numeric) + description: Unique identifier for the subscription (numeric). example: "1234" nullable: true status: @@ -37134,6 +47808,16 @@ components: the placed source order as its first run. example: true nullable: true + place_target_order: + description: Indicates if the subscription created orders are automatically + placed at the end of the copy. + example: true + nullable: true + renewal_alert_period: + description: Indicates the number of hours the renewal alert will be triggered + before the subscription next run. Must be included between 1 and 720 hours. + example: 1 + nullable: true customer_email: description: "The email address of the customer, if any, associated to the\ \ source order." @@ -37148,6 +47832,10 @@ components: starts_at). example: 2018-01-02T12:00:00.000Z nullable: true + last_run_at: + description: The date/time of the subscription last run. + example: 2018-01-01T12:00:00.000Z + nullable: true next_run_at: description: "The date/time of the subscription next run. Can be updated\ \ but only in the future, to copy with frequency changes." @@ -37165,13 +47853,6 @@ components: description: Indicates if the subscription has succeeded on its last run. example: true nullable: true - options: - description: "The subscription options used to create the order (check order_factories\ - \ for more information). For subscriptions the `place_target_order` is\ - \ enabled by default, specify custom options to overwrite it." - example: - place_target_order: false - nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -37188,7 +47869,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -37227,6 +47908,21 @@ components: \ subscription_model." example: monthly nullable: false + activate_by_source_order: + description: Indicates if the subscription will be activated considering + the placed source order as its first run. + example: true + nullable: false + place_target_order: + description: Indicates if the subscription created orders are automatically + placed at the end of the copy. + example: true + nullable: false + renewal_alert_period: + description: Indicates the number of hours the renewal alert will be triggered + before the subscription next run. Must be included between 1 and 720 hours. + example: 1 + nullable: true expires_at: description: The expiration date/time of this subscription (must be after starts_at). @@ -37241,14 +47937,22 @@ components: description: Send this attribute if you want to mark this subscription as active. example: true + nullable: false _deactivate: description: Send this attribute if you want to mark this subscription as inactive. example: true + nullable: false _cancel: description: Send this attribute if you want to mark this subscription as cancelled. example: true + nullable: false + _convert: + description: Send this attribute if you want to convert a manual subscription + to an automatic one. A subscription model is required before conversion. + example: true + nullable: false reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -37257,7 +47961,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -37286,76 +47990,6 @@ components: properties: data: $ref: '#/components/schemas/PATCH_order_subscriptions_orderSubscriptionId_200_response_data' - GET_order_validation_rules_200_response: - properties: - data: - items: - properties: - id: - description: The resource's id - example: XGZwpOSrWL - type: - description: The resource's type - enum: - - order_validation_rules - links: - properties: - self: - description: URL - attributes: - properties: - created_at: - description: Time at which the resource was created. - example: 2018-01-01T12:00:00.000Z - nullable: false - updated_at: - description: Time at which the resource was last updated. - example: 2018-01-01T12:00:00.000Z - nullable: false - reference: - description: "A string that you can use to add any external identifier\ - \ to the resource. This can be useful for integrating the resource\ - \ to an external system, like an ERP, a marketing tool, a CRM,\ - \ or whatever." - example: ANY-EXTERNAL-REFEFERNCE - nullable: true - reference_origin: - description: Any identifier of the third party system that defines - the reference code - example: ANY-EXTERNAL-REFEFERNCE-ORIGIN - nullable: true - metadata: - description: Set of key-value pairs that you can attach to the - resource. This can be useful for storing additional information - about the resource in a structured format. - example: - foo: bar - nullable: true - relationships: - properties: - market: - $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships_market' - attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' - GET_order_validation_rules_orderValidationRuleId_200_response_data: - properties: - id: - description: The resource's id - example: XGZwpOSrWL - type: - description: The resource's type - enum: - - order_validation_rules - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_links' - attributes: - $ref: '#/components/schemas/GET_billing_info_validation_rules_billingInfoValidationRuleId_200_response_data_attributes' - relationships: - $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships' - GET_order_validation_rules_orderValidationRuleId_200_response: - properties: - data: - $ref: '#/components/schemas/GET_order_validation_rules_orderValidationRuleId_200_response_data' GET_orders_200_response: properties: data: @@ -37375,8 +48009,15 @@ components: attributes: properties: number: - description: Unique identifier for the order (numeric). - example: 1234 + description: "The order identifier. Can be specified if unique\ + \ within the organization (for enterprise plans only), default\ + \ to numeric ID otherwise. Cannot be passed by sales channels." + example: "1234" + nullable: true + affiliate_code: + description: "The affiliate code, if any, the seller will transfer\ + \ commission on shop by link transactions." + example: xxxx-yyyy-zzzz nullable: true autorefresh: description: Save this attribute as 'false' if you want prevent @@ -37384,21 +48025,29 @@ components: faster). example: true nullable: true + place_async: + description: "Save this attribute as 'true' if you want perform\ + \ the place asynchronously. Payment errors, if any, will be\ + \ collected afterwards." + example: true + nullable: true status: description: "The order status. One of 'draft' (default), 'pending',\ - \ 'placed', 'approved', or 'cancelled'." + \ 'editing', 'placing', 'placed', 'approved', or 'cancelled'." enum: - draft - pending + - editing + - placing - placed - approved - cancelled example: draft nullable: false payment_status: - description: "The order's payment status. One of 'unpaid' (default),\ + description: "The order payment status. One of 'unpaid' (default),\ \ 'authorized', 'partially_authorized', 'paid', 'partially_paid',\ - \ 'voided', 'partially_voided', 'refunded', 'partially_refunded'\ + \ 'voided', 'partially_voided', 'refunded', 'partially_refunded',\ \ or 'free'." enum: - unpaid @@ -37414,7 +48063,7 @@ components: example: unpaid nullable: false fulfillment_status: - description: "The order's fulfillment status. One of 'unfulfilled'\ + description: "The order fulfillment status. One of 'unfulfilled'\ \ (default), 'in_progress', 'fulfilled', or 'not_required'." enum: - unfulfilled @@ -37464,6 +48113,20 @@ components: description: Indicates if taxes are applied to shipping costs. example: true nullable: true + payment_method_taxable: + description: Indicates if taxes are applied to payment methods + costs. + example: true + nullable: true + adjustment_taxable: + description: Indicates if taxes are applied to positive adjustments. + example: true + nullable: true + gift_card_taxable: + description: Indicates if taxes are applied to purchased gift + cards. + example: false + nullable: true requires_billing_info: description: Indicates if the billing address associated to this order requires billing info to be present. @@ -37472,14 +48135,15 @@ components: country_code: description: "The international 2-letter country code as defined\ \ by the ISO 3166-1 standard, automatically inherited from the\ - \ order's shipping address." + \ order's shipping or billing addresses." example: IT nullable: true shipping_country_code_lock: description: "The country code that you want the shipping address\ \ to be locked to. This can be useful to make sure the shipping\ \ address belongs to a given shipping country, e.g. the one\ - \ selected in a country selector page." + \ selected in a country selector page. Not relevant if order\ + \ contains only digital products." example: IT nullable: true coupon_code: @@ -37494,14 +48158,6 @@ components: \ balance to pay for the order." example: cc92c23e-967e-48b2-a323-59add603301f nullable: true - gift_card_or_coupon_code: - description: "The gift card or coupon code (at least the first\ - \ 8 characters) to be used for the order. If a gift card mathes,\ - \ it uses the gift card balance to pay for the order. Otherwise\ - \ it tries to find a valid coupon code and applies the associated\ - \ discount." - example: cc92c23e-967e-48b2-a323-59add603301f - nullable: true subtotal_amount_cents: description: "The sum of all the SKU line items total amounts,\ \ in cents." @@ -37776,6 +48432,19 @@ components: \ formatted." example: "€0,00" nullable: true + place_total_amount_cents: + description: "The total amount at place time, in cents, which\ + \ is used internally for editing." + example: 0 + nullable: true + place_total_amount_float: + description: "The total amount at place time, float." + example: 0.0 + nullable: true + formatted_place_total_amount: + description: "The total amount at place time, formatted." + example: "€0,00" + nullable: true skus_count: description: The total number of SKUs in the order's line items. This can be useful to display a preview of the customer shopping @@ -37797,6 +48466,16 @@ components: useful to monitor external tax service usage. example: 1 nullable: true + validations_count: + description: The total number of external validation performed. + This can be useful to monitor if external validation has been + triggered. + example: 1 + nullable: true + errors_count: + description: The total number of resource errors. + example: 1 + nullable: true payment_source_details: description: An object that contains the shareable details of the order's payment source. @@ -37864,17 +48543,24 @@ components: description: Time at which the resource has been archived. example: 2018-01-01T12:00:00.000Z nullable: true - expires_at: - description: Time at which an order is marked for cleanup. Any - order will start with a default expire time of 2 months. Expiration - is reset once a line item is added to the order. - example: 2018-01-01T12:00:00.000Z - nullable: true subscription_created_at: description: Time at which the order has been marked to create a subscription from its recurring line items. example: 2018-01-01T12:00:00.000Z nullable: true + circuit_state: + description: "The circuit breaker state, by default it is 'closed'.\ + \ It can become 'open' once the number of consecutive failures\ + \ overlaps the specified threshold, in such case no further\ + \ calls to the failing callback are made." + example: closed + nullable: true + circuit_failure_count: + description: "The number of consecutive failures recorded by the\ + \ circuit breaker associated to this resource, will be reset\ + \ on first successful call to callback." + example: 5 + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -37892,7 +48578,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -38080,6 +48766,70 @@ components: - line_items id: description: The resource ID + line_item_options: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - line_item_options + id: + description: The resource ID + stock_reservations: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - stock_reservations + id: + description: The resource ID + stock_line_items: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - stock_line_items + id: + description: The resource ID + stock_transfers: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - stock_transfers + id: + description: The resource ID shipments: properties: links: @@ -38096,6 +48846,22 @@ components: - shipments id: description: The resource ID + payment_options: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - payment_options + id: + description: The resource ID transactions: properties: links: @@ -38192,6 +48958,22 @@ components: - returns id: description: The resource ID + order_subscription: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - order_subscription + id: + description: The resource ID order_subscriptions: properties: links: @@ -38272,6 +49054,38 @@ components: - attachments id: description: The resource ID + links: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - links + id: + description: The resource ID + resource_errors: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - resource_errors + id: + description: The resource ID events: properties: links: @@ -38288,12 +49102,57 @@ components: - events id: description: The resource ID + tags: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - tags + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_orders_201_response_data_attributes: properties: + number: + description: "The order identifier. Can be specified if unique within the\ + \ organization (for enterprise plans only), default to numeric ID otherwise.\ + \ Cannot be passed by sales channels." + example: "1234" + affiliate_code: + description: "The affiliate code, if any, the seller will transfer commission\ + \ on shop by link transactions." + example: xxxx-yyyy-zzzz autorefresh: description: Save this attribute as 'false' if you want prevent the order to be refreshed automatically at each change (much faster). example: true + place_async: + description: "Save this attribute as 'true' if you want perform the place\ + \ asynchronously. Payment errors, if any, will be collected afterwards." + example: true guest: description: Indicates if the order has been placed as guest. example: true @@ -38312,11 +49171,23 @@ components: \ party marketing tools and CRMs. If the language is supported, the hosted\ \ checkout will be localized accordingly." example: it + freight_taxable: + description: Indicates if taxes are applied to shipping costs. + example: true + payment_method_taxable: + description: Indicates if taxes are applied to payment methods costs. + example: true + adjustment_taxable: + description: Indicates if taxes are applied to positive adjustments. + example: true + gift_card_taxable: + description: Indicates if taxes are applied to purchased gift cards. + example: false shipping_country_code_lock: description: "The country code that you want the shipping address to be\ \ locked to. This can be useful to make sure the shipping address belongs\ \ to a given shipping country, e.g. the one selected in a country selector\ - \ page." + \ page. Not relevant if order contains only digital products." example: IT coupon_code: description: "The coupon code to be used for the order. If valid, it triggers\ @@ -38327,12 +49198,6 @@ components: \ used for the order. If valid, it uses the gift card balance to pay for\ \ the order." example: cc92c23e-967e-48b2-a323-59add603301f - gift_card_or_coupon_code: - description: "The gift card or coupon code (at least the first 8 characters)\ - \ to be used for the order. If a gift card mathes, it uses the gift card\ - \ balance to pay for the order. Otherwise it tries to find a valid coupon\ - \ code and applies the associated discount." - example: cc92c23e-967e-48b2-a323-59add603301f cart_url: description: "The cart url on your site. If present, it will be used on\ \ our hosted checkout application." @@ -38356,7 +49221,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -38448,48 +49313,48 @@ components: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: $ref: '#/components/schemas/POST_orders_201_response_data_relationships_available_free_bundles_data' - POST_orders_201_response_data_relationships_payment_method_data: + POST_orders_201_response_data_relationships_line_items_data: properties: type: description: The resource's type enum: - - payment_method + - line_items id: description: The resource ID - POST_orders_201_response_data_relationships_payment_method: + POST_orders_201_response_data_relationships_line_items: properties: links: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: - $ref: '#/components/schemas/POST_orders_201_response_data_relationships_payment_method_data' - POST_orders_201_response_data_relationships_line_items_data: + $ref: '#/components/schemas/POST_orders_201_response_data_relationships_line_items_data' + POST_orders_201_response_data_relationships_shipments_data: properties: type: description: The resource's type enum: - - line_items + - shipments id: description: The resource ID - POST_orders_201_response_data_relationships_line_items: + POST_orders_201_response_data_relationships_shipments: properties: links: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: - $ref: '#/components/schemas/POST_orders_201_response_data_relationships_line_items_data' - POST_orders_201_response_data_relationships_shipments_data: + $ref: '#/components/schemas/POST_orders_201_response_data_relationships_shipments_data' + POST_orders_201_response_data_relationships_payment_options_data: properties: type: description: The resource's type enum: - - shipments + - payment_options id: description: The resource ID - POST_orders_201_response_data_relationships_shipments: + POST_orders_201_response_data_relationships_payment_options: properties: links: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: - $ref: '#/components/schemas/POST_orders_201_response_data_relationships_shipments_data' + $ref: '#/components/schemas/POST_orders_201_response_data_relationships_payment_options_data' POST_orders_201_response_data_relationships_transactions_data: properties: type: @@ -38518,6 +49383,48 @@ components: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: $ref: '#/components/schemas/POST_orders_201_response_data_relationships_authorizations_data' + POST_orders_201_response_data_relationships_order_copies_data: + properties: + type: + description: The resource's type + enum: + - order_copies + id: + description: The resource ID + POST_orders_201_response_data_relationships_order_copies: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_orders_201_response_data_relationships_order_copies_data' + POST_orders_201_response_data_relationships_links_data: + properties: + type: + description: The resource's type + enum: + - links + id: + description: The resource ID + POST_orders_201_response_data_relationships_links: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_orders_201_response_data_relationships_links_data' + POST_orders_201_response_data_relationships_resource_errors_data: + properties: + type: + description: The resource's type + enum: + - resource_errors + id: + description: The resource ID + POST_orders_201_response_data_relationships_resource_errors: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_orders_201_response_data_relationships_resource_errors_data' POST_orders_201_response_data_relationships: properties: market: @@ -38537,13 +49444,23 @@ components: available_free_bundles: $ref: '#/components/schemas/POST_orders_201_response_data_relationships_available_free_bundles' payment_method: - $ref: '#/components/schemas/POST_orders_201_response_data_relationships_payment_method' + $ref: '#/components/schemas/POST_customer_payment_sources_201_response_data_relationships_payment_method' payment_source: $ref: '#/components/schemas/POST_customer_payment_sources_201_response_data_relationships_payment_source' line_items: $ref: '#/components/schemas/POST_orders_201_response_data_relationships_line_items' + line_item_options: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_line_item_options' + stock_reservations: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_stock_reservations' + stock_line_items: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_stock_line_items' + stock_transfers: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_stock_transfers' shipments: $ref: '#/components/schemas/POST_orders_201_response_data_relationships_shipments' + payment_options: + $ref: '#/components/schemas/POST_orders_201_response_data_relationships_payment_options' transactions: $ref: '#/components/schemas/POST_orders_201_response_data_relationships_transactions' authorizations: @@ -38556,18 +49473,28 @@ components: $ref: '#/components/schemas/GET_captures_captureId_200_response_data_relationships_refunds' returns: $ref: '#/components/schemas/POST_customers_201_response_data_relationships_returns' + order_subscription: + $ref: '#/components/schemas/POST_order_copies_201_response_data_relationships_order_subscription' order_subscriptions: $ref: '#/components/schemas/POST_customers_201_response_data_relationships_order_subscriptions' order_factories: $ref: '#/components/schemas/POST_order_subscriptions_201_response_data_relationships_order_factories' order_copies: - $ref: '#/components/schemas/POST_order_subscriptions_201_response_data_relationships_order_copies' + $ref: '#/components/schemas/POST_orders_201_response_data_relationships_order_copies' recurring_order_copies: $ref: '#/components/schemas/POST_order_subscriptions_201_response_data_relationships_recurring_order_copies' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + links: + $ref: '#/components/schemas/POST_orders_201_response_data_relationships_links' + resource_errors: + $ref: '#/components/schemas/POST_orders_201_response_data_relationships_resource_errors' events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_orders_201_response_data: properties: id: @@ -38590,29 +49517,43 @@ components: GET_orders_orderId_200_response_data_attributes: properties: number: - description: Unique identifier for the order (numeric). - example: 1234 + description: "The order identifier. Can be specified if unique within the\ + \ organization (for enterprise plans only), default to numeric ID otherwise.\ + \ Cannot be passed by sales channels." + example: "1234" + nullable: true + affiliate_code: + description: "The affiliate code, if any, the seller will transfer commission\ + \ on shop by link transactions." + example: xxxx-yyyy-zzzz nullable: true autorefresh: description: Save this attribute as 'false' if you want prevent the order to be refreshed automatically at each change (much faster). example: true nullable: true + place_async: + description: "Save this attribute as 'true' if you want perform the place\ + \ asynchronously. Payment errors, if any, will be collected afterwards." + example: true + nullable: true status: - description: "The order status. One of 'draft' (default), 'pending', 'placed',\ - \ 'approved', or 'cancelled'." + description: "The order status. One of 'draft' (default), 'pending', 'editing',\ + \ 'placing', 'placed', 'approved', or 'cancelled'." enum: - draft - pending + - editing + - placing - placed - approved - cancelled example: draft nullable: false payment_status: - description: "The order's payment status. One of 'unpaid' (default), 'authorized',\ + description: "The order payment status. One of 'unpaid' (default), 'authorized',\ \ 'partially_authorized', 'paid', 'partially_paid', 'voided', 'partially_voided',\ - \ 'refunded', 'partially_refunded' or 'free'." + \ 'refunded', 'partially_refunded', or 'free'." enum: - unpaid - authorized @@ -38627,7 +49568,7 @@ components: example: unpaid nullable: false fulfillment_status: - description: "The order's fulfillment status. One of 'unfulfilled' (default),\ + description: "The order fulfillment status. One of 'unfulfilled' (default),\ \ 'in_progress', 'fulfilled', or 'not_required'." enum: - unfulfilled @@ -38675,6 +49616,18 @@ components: description: Indicates if taxes are applied to shipping costs. example: true nullable: true + payment_method_taxable: + description: Indicates if taxes are applied to payment methods costs. + example: true + nullable: true + adjustment_taxable: + description: Indicates if taxes are applied to positive adjustments. + example: true + nullable: true + gift_card_taxable: + description: Indicates if taxes are applied to purchased gift cards. + example: false + nullable: true requires_billing_info: description: Indicates if the billing address associated to this order requires billing info to be present. @@ -38683,14 +49636,14 @@ components: country_code: description: "The international 2-letter country code as defined by the\ \ ISO 3166-1 standard, automatically inherited from the order's shipping\ - \ address." + \ or billing addresses." example: IT nullable: true shipping_country_code_lock: description: "The country code that you want the shipping address to be\ \ locked to. This can be useful to make sure the shipping address belongs\ \ to a given shipping country, e.g. the one selected in a country selector\ - \ page." + \ page. Not relevant if order contains only digital products." example: IT nullable: true coupon_code: @@ -38704,13 +49657,6 @@ components: \ the order." example: cc92c23e-967e-48b2-a323-59add603301f nullable: true - gift_card_or_coupon_code: - description: "The gift card or coupon code (at least the first 8 characters)\ - \ to be used for the order. If a gift card mathes, it uses the gift card\ - \ balance to pay for the order. Otherwise it tries to find a valid coupon\ - \ code and applies the associated discount." - example: cc92c23e-967e-48b2-a323-59add603301f - nullable: true subtotal_amount_cents: description: "The sum of all the SKU line items total amounts, in cents." example: 5000 @@ -38960,6 +49906,19 @@ components: description: "The duty amount that is calculated by external services, formatted." example: "€0,00" nullable: true + place_total_amount_cents: + description: "The total amount at place time, in cents, which is used internally\ + \ for editing." + example: 0 + nullable: true + place_total_amount_float: + description: "The total amount at place time, float." + example: 0.0 + nullable: true + formatted_place_total_amount: + description: "The total amount at place time, formatted." + example: "€0,00" + nullable: true skus_count: description: The total number of SKUs in the order's line items. This can be useful to display a preview of the customer shopping cart content. @@ -38980,6 +49939,15 @@ components: monitor external tax service usage. example: 1 nullable: true + validations_count: + description: The total number of external validation performed. This can + be useful to monitor if external validation has been triggered. + example: 1 + nullable: true + errors_count: + description: The total number of resource errors. + example: 1 + nullable: true payment_source_details: description: An object that contains the shareable details of the order's payment source. @@ -39045,17 +50013,24 @@ components: description: Time at which the resource has been archived. example: 2018-01-01T12:00:00.000Z nullable: true - expires_at: - description: Time at which an order is marked for cleanup. Any order will - start with a default expire time of 2 months. Expiration is reset once - a line item is added to the order. - example: 2018-01-01T12:00:00.000Z - nullable: true subscription_created_at: description: Time at which the order has been marked to create a subscription from its recurring line items. example: 2018-01-01T12:00:00.000Z nullable: true + circuit_state: + description: "The circuit breaker state, by default it is 'closed'. It can\ + \ become 'open' once the number of consecutive failures overlaps the specified\ + \ threshold, in such case no further calls to the failing callback are\ + \ made." + example: closed + nullable: true + circuit_failure_count: + description: "The number of consecutive failures recorded by the circuit\ + \ breaker associated to this resource, will be reset on first successful\ + \ call to callback." + example: 5 + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -39072,7 +50047,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -39103,11 +50078,27 @@ components: $ref: '#/components/schemas/GET_orders_orderId_200_response_data' PATCH_orders_orderId_200_response_data_attributes: properties: + number: + description: "The order identifier. Can be specified if unique within the\ + \ organization (for enterprise plans only), default to numeric ID otherwise.\ + \ Cannot be passed by sales channels." + example: "1234" + nullable: true + affiliate_code: + description: "The affiliate code, if any, the seller will transfer commission\ + \ on shop by link transactions." + example: xxxx-yyyy-zzzz + nullable: true autorefresh: description: Save this attribute as 'false' if you want prevent the order to be refreshed automatically at each change (much faster). example: true nullable: false + place_async: + description: "Save this attribute as 'true' if you want perform the place\ + \ asynchronously. Payment errors, if any, will be collected afterwards." + example: true + nullable: false guest: description: Indicates if the order has been placed as guest. example: true @@ -39129,11 +50120,27 @@ components: \ checkout will be localized accordingly." example: it nullable: true + freight_taxable: + description: Indicates if taxes are applied to shipping costs. + example: true + nullable: false + payment_method_taxable: + description: Indicates if taxes are applied to payment methods costs. + example: true + nullable: false + adjustment_taxable: + description: Indicates if taxes are applied to positive adjustments. + example: true + nullable: false + gift_card_taxable: + description: Indicates if taxes are applied to purchased gift cards. + example: false + nullable: false shipping_country_code_lock: description: "The country code that you want the shipping address to be\ \ locked to. This can be useful to make sure the shipping address belongs\ \ to a given shipping country, e.g. the one selected in a country selector\ - \ page." + \ page. Not relevant if order contains only digital products." example: IT nullable: true coupon_code: @@ -39147,13 +50154,6 @@ components: \ the order." example: cc92c23e-967e-48b2-a323-59add603301f nullable: true - gift_card_or_coupon_code: - description: "The gift card or coupon code (at least the first 8 characters)\ - \ to be used for the order. If a gift card mathes, it uses the gift card\ - \ balance to pay for the order. Otherwise it tries to find a valid coupon\ - \ code and applies the associated discount." - example: cc92c23e-967e-48b2-a323-59add603301f - nullable: true cart_url: description: "The cart url on your site. If present, it will be used on\ \ our hosted checkout application." @@ -39177,44 +50177,70 @@ components: _archive: description: Send this attribute if you want to archive the order. example: true + nullable: false _unarchive: description: Send this attribute if you want to unarchive the order. example: true + nullable: false + _pending: + description: Send this attribute if you want to move a draft or placing + order to pending. Cannot be passed by sales channels. + example: true + nullable: false _place: description: Send this attribute if you want to place the order. example: true + nullable: false _cancel: description: Send this attribute if you want to cancel a placed order. The order's authorization will be automatically voided. example: true + nullable: false _approve: description: Send this attribute if you want to approve a placed order. + Cannot be passed by sales channels. example: true + nullable: false _approve_and_capture: description: Send this attribute if you want to approve and capture a placed - order. + order. Cannot be passed by sales channels. example: true + nullable: false _authorize: description: Send this attribute if you want to authorize the order's payment source. example: true + nullable: false _authorization_amount_cents: - description: "The authorization amount, in cents." + description: Send this attribute as a value in cents if you want to overwrite + the amount to be authorized. example: 500 _capture: description: Send this attribute if you want to capture an authorized order. + Cannot be passed by sales channels. example: true + nullable: false _refund: description: Send this attribute if you want to refund a captured order. + Cannot be passed by sales channels. example: true + nullable: false + _fulfill: + description: "Send this attribute if you want to mark as fulfilled the order\ + \ (shipments must be cancelled, shipped or delivered). Cannot be passed\ + \ by sales channels." + example: true + nullable: false _update_taxes: description: Send this attribute if you want to force tax calculation for this order (a tax calculator must be associated to the order's market). example: true + nullable: false _nullify_payment_source: description: Send this attribute if you want to nullify the payment source for this order. example: false + nullable: false _billing_address_clone_id: description: The id of the address that you want to clone to create the order's billing address. @@ -39231,42 +50257,68 @@ components: description: Send this attribute if you want the shipping address to be cloned from the order's billing address. example: true + nullable: false _billing_address_same_as_shipping: description: Send this attribute if you want the billing address to be cloned from the order's shipping address. example: true + nullable: false _commit_invoice: description: Send this attribute if you want commit the sales tax invoice to the associated tax calculator (currently supported by Avalara). example: true + nullable: false _refund_invoice: description: Send this attribute if you want refund the sales tax invoice to the associated tax calculator (currently supported by Avalara). example: true + nullable: false _save_payment_source_to_customer_wallet: description: Send this attribute if you want the order's payment source to be saved in the customer's wallet as a customer payment source. example: true + nullable: false _save_shipping_address_to_customer_address_book: description: Send this attribute if you want the order's shipping address to be saved in the customer's address book as a customer address. example: true + nullable: false _save_billing_address_to_customer_address_book: description: Send this attribute if you want the order's billing address to be saved in the customer's address book as a customer address. example: true + nullable: false _refresh: description: Send this attribute if you want to manually refresh the order. example: true + nullable: false _validate: description: Send this attribute if you want to trigger the external validation for the order. example: true + nullable: false _create_subscriptions: - description: Send this attribute if you want to create order subscriptions - from the recurring line items upon/after placing the order. Subscriptions - are generated according to associated subscription model strategy. + description: Send this attribute upon/after placing the order if you want + to create order subscriptions from the line items that have a frequency. + example: true + nullable: false + _start_editing: + description: Send this attribute if you want to edit the order after it + is placed. Remember you cannot exceed the original total amount. Cannot + be passed by sales channels. + example: true + nullable: false + _stop_editing: + description: Send this attribute to stop the editing for the order and return + back to placed status. Cannot be passed by sales channels. example: true + nullable: false + _reset_circuit: + description: Send this attribute if you want to reset the circuit breaker + associated to this resource to 'closed' state and zero failures count. + Cannot be passed by sales channels. + example: true + nullable: false reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -39275,7 +50327,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -39338,10 +50390,6 @@ components: description: The organization's primary color. example: '#C8984E' nullable: true - contrast_color: - description: The organization's contrast color. - example: '#FFFFCC' - nullable: true gtm_id: description: The organization's Google Tag Manager ID. example: GTM-5FJXX6 @@ -39350,26 +50398,161 @@ components: description: The organization's Google Tag Manager ID for test. example: GTM-5FJXX7 nullable: true - discount_disabled: - description: Indicates if organization has discount disabled. + config: + description: The organization's configuration. + example: + mfe: + default: + links: + cart: https://cart.example.com/:order_id?accessToken=:access_token + checkout: https://checkout.example.com/:order_id?accessToken=:accessToken + identity: https://example.com/login + microstore: https://example.com/microstore/?accessToken=:access_token + my_account: https://example.com/my-custom-account?accessToken=:access_token + checkout: + thankyou_page: https://example.com/thanks/:lang/:orderId + billing_countries: + - value: ES + label: Espana + - value: IT + label: Italia + - value: US + label: Unites States of America + shipping_countries: + - value: ES + label: Espana + - value: IT + label: Italia + - value: US + label: Unites States of America + billing_states: + FR: + - value: PA + label: Paris + - value: LY + label: Lyon + - value: NI + label: Nice + - value: MA + label: Marseille + - value: BO + label: Bordeaux + shipping_states: + FR: + - value: PA + label: Paris + - value: LY + label: Lyon + - value: NI + label: Nice + - value: MA + label: Marseille + - value: BO + label: Bordeaux + default_country: US + urls: + privacy: https://example.com/privacy/:lang + terms: https://example.com/terms/:lang + market:id:ZKcv13rT: + links: + cart: https://example.com/custom-cart/:order_id?accessToken=:access_token + checkout: + thankyou_page: https://example.com/thanks/:order_id + nullable: true + api_auth_redirect: + description: Enables the redirect on the new Auth API. + example: true + nullable: true + api_rules_engine: + description: Enables the rules engine for flex promotions and price list + rules. example: false nullable: true - account_disabled: - description: Indicates if organization has account disabled. + addresses_phone_required: + description: "Indicates if the phone attribute is required for addresses,\ + \ default is true." + example: true + nullable: true + orders_autorefresh_cutoff_test: + description: The maximum number line items allowed for a test order before + disabling the autorefresh option. + example: 50 + nullable: true + orders_autorefresh_cutoff_live: + description: The maximum number line items allowed for a live order before + disabling the autorefresh option. + example: 500 + nullable: true + orders_number_editable_test: + description: Enables orders number editing as a string in test (for enterprise + plans only). example: false nullable: true - acceptance_disabled: - description: Indicates if organization has acceptance disabled. + orders_number_editable_live: + description: Enables orders number editing as a string in live (for enterprise + plans only). example: false nullable: true - max_concurrent_promotions: - description: The maximum number of active concurrent promotions allowed - for your organization. + orders_number_as_reference: + description: Enables to use the order number as payment reference on supported + gateways. + example: true + nullable: true + bundles_max_items_count: + description: "The maximum number of SKUs allowed for bundles, default is\ + \ 10." example: 10 nullable: true - max_concurrent_imports: - description: The maximum number of concurrent imports allowed for your organization. - example: 30 + coupons_min_code_length: + description: "The minimum length for coupon code, default is 8." + example: 8 + nullable: true + coupons_max_code_length: + description: "The maximum length for coupon code, default is 40." + example: 40 + nullable: true + gift_cards_min_code_length: + description: "The minimum length for gift card code, default is 8." + example: 8 + nullable: true + gift_cards_max_code_length: + description: "The maximum length for gift card code, default is 40." + example: 40 + nullable: true + cleanups_max_concurrent_count: + description: "The maximum number of concurrent cleanups allowed for your\ + \ organization, default is 10." + example: 10 + nullable: true + exports_max_concurrent_count: + description: "The maximum number of concurrent exports allowed for your\ + \ organization, default is 10." + example: 10 + nullable: true + imports_max_concurrent_count: + description: "The maximum number of concurrent imports allowed for your\ + \ organization, default is 10." + example: 10 + nullable: true + promotions_max_concurrent_count: + description: "The maximum number of active concurrent promotions allowed\ + \ for your organization, default is 10." + example: 10 + nullable: true + imports_trigger_webhooks: + description: "Enables triggering of webhooks during imports, default is\ + \ false." + example: 0 + nullable: true + tax_calculators_errors: + description: "Enables raising of API errors in case of tax calculation failure,\ + \ default is false." + example: false + nullable: true + external_promotions_errors: + description: "Enables raising of API errors in case of external promotion\ + \ failure, default is false." + example: false nullable: true created_at: description: Time at which the resource was created. @@ -39387,7 +50570,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -39435,11 +50618,11 @@ components: attributes: properties: name: - description: Unique name for the package + description: Unique name for the package. example: Large (60x40x30) nullable: false code: - description: The package identifying code + description: The package identifying code. example: YYYY 2000 nullable: true length: @@ -39478,7 +50661,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -39538,13 +50721,29 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_packages_201_response_data_attributes: properties: name: - description: Unique name for the package + description: Unique name for the package. example: Large (60x40x30) code: - description: The package identifying code + description: The package identifying code. example: YYYY 2000 length: description: "The package length, used to automatically calculate the tax\ @@ -39568,7 +50767,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -39603,7 +50802,9 @@ components: parcels: $ref: '#/components/schemas/POST_packages_201_response_data_relationships_parcels' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_packages_201_response_data: properties: id: @@ -39626,11 +50827,11 @@ components: GET_packages_packageId_200_response_data_attributes: properties: name: - description: Unique name for the package + description: Unique name for the package. example: Large (60x40x30) nullable: false code: - description: The package identifying code + description: The package identifying code. example: YYYY 2000 nullable: true length: @@ -39668,7 +50869,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -39700,11 +50901,11 @@ components: PATCH_packages_packageId_200_response_data_attributes: properties: name: - description: Unique name for the package + description: Unique name for the package. example: Large (60x40x30) nullable: false code: - description: The package identifying code + description: The package identifying code. example: YYYY 2000 nullable: true length: @@ -39734,7 +50935,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -39782,16 +50983,20 @@ components: attributes: properties: sku_code: - description: The code of the SKU of the associated shipment_line_item. + description: The code of the associated SKU. example: TSHIRTMM000000FFFFFFXLXX nullable: true + bundle_code: + description: The code of the associated bundle. + example: BUNDLEMM000000FFFFFFXLXX + nullable: true quantity: description: The parcel line item quantity. example: 4 nullable: false name: description: The internal name of the associated line item. - example: Black Men T-shirt with White Logo (XL) + example: Men's Black T-shirt with White Logo (XL) nullable: false image_url: description: The image_url of the associated line item. @@ -39814,7 +51019,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -39858,7 +51063,7 @@ components: - stock_line_item id: description: The resource ID - shipment_line_item: + versions: properties: links: properties: @@ -39871,14 +51076,11 @@ components: type: description: The resource's type enum: - - shipment_line_item + - versions id: description: The resource ID POST_parcel_line_items_201_response_data_attributes: properties: - sku_code: - description: The code of the SKU of the associated shipment_line_item. - example: TSHIRTMM000000FFFFFFXLXX quantity: description: The parcel line item quantity. example: 4 @@ -39889,7 +51091,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -39927,28 +51129,14 @@ components: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: $ref: '#/components/schemas/POST_parcel_line_items_201_response_data_relationships_stock_line_item_data' - POST_parcel_line_items_201_response_data_relationships_shipment_line_item_data: - properties: - type: - description: The resource's type - enum: - - shipment_line_item - id: - description: The resource ID - POST_parcel_line_items_201_response_data_relationships_shipment_line_item: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/POST_parcel_line_items_201_response_data_relationships_shipment_line_item_data' POST_parcel_line_items_201_response_data_relationships: properties: parcel: $ref: '#/components/schemas/POST_parcel_line_items_201_response_data_relationships_parcel' stock_line_item: $ref: '#/components/schemas/POST_parcel_line_items_201_response_data_relationships_stock_line_item' - shipment_line_item: - $ref: '#/components/schemas/POST_parcel_line_items_201_response_data_relationships_shipment_line_item' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_parcel_line_items_201_response_data: properties: id: @@ -39971,16 +51159,20 @@ components: GET_parcel_line_items_parcelLineItemId_200_response_data_attributes: properties: sku_code: - description: The code of the SKU of the associated shipment_line_item. + description: The code of the associated SKU. example: TSHIRTMM000000FFFFFFXLXX nullable: true + bundle_code: + description: The code of the associated bundle. + example: BUNDLEMM000000FFFFFFXLXX + nullable: true quantity: description: The parcel line item quantity. example: 4 nullable: false name: description: The internal name of the associated line item. - example: Black Men T-shirt with White Logo (XL) + example: Men's Black T-shirt with White Logo (XL) nullable: false image_url: description: The image_url of the associated line item. @@ -40002,7 +51194,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -40069,7 +51261,7 @@ components: attributes: properties: number: - description: Unique identifier for the parcel + description: Unique identifier for the parcel. example: '#1234/S/001/P/001' nullable: true weight: @@ -40078,7 +51270,11 @@ components: example: 1000.0 nullable: false unit_of_weight: - description: "Can be one of 'gr', 'lb', or 'oz'" + description: "The unit of weight. One of 'gr', 'oz', or 'lb'." + enum: + - gr + - oz + - lb example: gr nullable: false eel_pfc: @@ -40090,9 +51286,7 @@ components: example: EEL nullable: true contents_type: - description: "The type of item you are sending. Can be one of\ - \ 'merchandise', 'gift', 'documents', 'returned_goods', 'sample',\ - \ or 'other'." + description: The type of item you are sending. example: merchandise nullable: true contents_explanation: @@ -40101,7 +51295,7 @@ components: example: "" nullable: true customs_certify: - description: Indicates if the provided information is accurate + description: Indicates if the provided information is accurate. example: false nullable: true customs_signer: @@ -40175,22 +51369,33 @@ components: tracking_details: description: "The parcel's full tracking history, automatically\ \ updated in real time by the shipping carrier." - example: "" + example: + - object: TrackingDetail + message: Pre-Shipment information received + status: pre_transit + datetime: 2018-02-27T16:02:17Z + source: DHLExpress + tracking_location: + object: TrackingLocation nullable: true carrier_weight_oz: description: The weight of the parcel as measured by the carrier - in ounces (if available) + in ounces (if available). example: "42.32" nullable: true signed_by: description: The name of the person who signed for the parcel - (if available) + (if available). example: John Smith nullable: true incoterm: description: The type of Incoterm (if available). example: EXW nullable: true + delivery_confirmation: + description: The type of delivery confirmation option upon delivery. + example: SIGNATURE + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -40208,7 +51413,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -40300,6 +51505,22 @@ components: - events id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_parcels_201_response_data_attributes: properties: weight: @@ -40307,7 +51528,11 @@ components: \ rates from the available carrier accounts." example: 1000.0 unit_of_weight: - description: "Can be one of 'gr', 'lb', or 'oz'" + description: "The unit of weight. One of 'gr', 'oz', or 'lb'." + enum: + - gr + - oz + - lb example: gr eel_pfc: description: "When shipping outside the US, you need to provide either an\ @@ -40316,15 +51541,14 @@ components: \ Value can be one of \"EEL\" o \"PFC\"." example: EEL contents_type: - description: "The type of item you are sending. Can be one of 'merchandise',\ - \ 'gift', 'documents', 'returned_goods', 'sample', or 'other'." + description: The type of item you are sending. example: merchandise contents_explanation: description: "If you specify 'other' in the 'contents_type' attribute, you\ \ must supply a brief description in this attribute." example: "" customs_certify: - description: Indicates if the provided information is accurate + description: Indicates if the provided information is accurate. example: false customs_signer: description: This is the name of the person who is certifying that the information @@ -40380,17 +51604,27 @@ components: tracking_details: description: "The parcel's full tracking history, automatically updated\ \ in real time by the shipping carrier." - example: "" + example: + - object: TrackingDetail + message: Pre-Shipment information received + status: pre_transit + datetime: 2018-02-27T16:02:17Z + source: DHLExpress + tracking_location: + object: TrackingLocation carrier_weight_oz: description: The weight of the parcel as measured by the carrier in ounces - (if available) + (if available). example: "42.32" signed_by: - description: The name of the person who signed for the parcel (if available) + description: The name of the person who signed for the parcel (if available). example: John Smith incoterm: description: The type of Incoterm (if available). example: EXW + delivery_confirmation: + description: The type of delivery confirmation option upon delivery. + example: SIGNATURE reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -40398,7 +51632,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -40409,20 +51643,6 @@ components: required: - unit_of_weight - weight - POST_parcels_201_response_data_relationships_shipment_data: - properties: - type: - description: The resource's type - enum: - - shipment - id: - description: The resource ID - POST_parcels_201_response_data_relationships_shipment: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/POST_parcels_201_response_data_relationships_shipment_data' POST_parcels_201_response_data_relationships_package_data: properties: type: @@ -40454,15 +51674,17 @@ components: POST_parcels_201_response_data_relationships: properties: shipment: - $ref: '#/components/schemas/POST_parcels_201_response_data_relationships_shipment' + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_shipment' package: $ref: '#/components/schemas/POST_parcels_201_response_data_relationships_package' parcel_line_items: $ref: '#/components/schemas/POST_parcels_201_response_data_relationships_parcel_line_items' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_parcels_201_response_data: properties: id: @@ -40485,7 +51707,7 @@ components: GET_parcels_parcelId_200_response_data_attributes: properties: number: - description: Unique identifier for the parcel + description: Unique identifier for the parcel. example: '#1234/S/001/P/001' nullable: true weight: @@ -40494,7 +51716,11 @@ components: example: 1000.0 nullable: false unit_of_weight: - description: "Can be one of 'gr', 'lb', or 'oz'" + description: "The unit of weight. One of 'gr', 'oz', or 'lb'." + enum: + - gr + - oz + - lb example: gr nullable: false eel_pfc: @@ -40505,8 +51731,7 @@ components: example: EEL nullable: true contents_type: - description: "The type of item you are sending. Can be one of 'merchandise',\ - \ 'gift', 'documents', 'returned_goods', 'sample', or 'other'." + description: The type of item you are sending. example: merchandise nullable: true contents_explanation: @@ -40515,7 +51740,7 @@ components: example: "" nullable: true customs_certify: - description: Indicates if the provided information is accurate + description: Indicates if the provided information is accurate. example: false nullable: true customs_signer: @@ -40585,21 +51810,32 @@ components: tracking_details: description: "The parcel's full tracking history, automatically updated\ \ in real time by the shipping carrier." - example: "" + example: + - object: TrackingDetail + message: Pre-Shipment information received + status: pre_transit + datetime: 2018-02-27T16:02:17Z + source: DHLExpress + tracking_location: + object: TrackingLocation nullable: true carrier_weight_oz: description: The weight of the parcel as measured by the carrier in ounces - (if available) + (if available). example: "42.32" nullable: true signed_by: - description: The name of the person who signed for the parcel (if available) + description: The name of the person who signed for the parcel (if available). example: John Smith nullable: true incoterm: description: The type of Incoterm (if available). example: EXW nullable: true + delivery_confirmation: + description: The type of delivery confirmation option upon delivery. + example: SIGNATURE + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -40616,7 +51852,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -40653,7 +51889,11 @@ components: example: 1000.0 nullable: false unit_of_weight: - description: "Can be one of 'gr', 'lb', or 'oz'" + description: "The unit of weight. One of 'gr', 'oz', or 'lb'." + enum: + - gr + - oz + - lb example: gr nullable: false eel_pfc: @@ -40664,8 +51904,7 @@ components: example: EEL nullable: true contents_type: - description: "The type of item you are sending. Can be one of 'merchandise',\ - \ 'gift', 'documents', 'returned_goods', 'sample', or 'other'." + description: The type of item you are sending. example: merchandise nullable: true contents_explanation: @@ -40674,7 +51913,7 @@ components: example: "" nullable: true customs_certify: - description: Indicates if the provided information is accurate + description: Indicates if the provided information is accurate. example: false nullable: false customs_signer: @@ -40744,21 +51983,32 @@ components: tracking_details: description: "The parcel's full tracking history, automatically updated\ \ in real time by the shipping carrier." - example: "" + example: + - object: TrackingDetail + message: Pre-Shipment information received + status: pre_transit + datetime: 2018-02-27T16:02:17Z + source: DHLExpress + tracking_location: + object: TrackingLocation nullable: true carrier_weight_oz: description: The weight of the parcel as measured by the carrier in ounces - (if available) + (if available). example: "42.32" nullable: true signed_by: - description: The name of the person who signed for the parcel (if available) + description: The name of the person who signed for the parcel (if available). example: John Smith nullable: true incoterm: description: The type of Incoterm (if available). example: EXW nullable: true + delivery_confirmation: + description: The type of delivery confirmation option upon delivery. + example: SIGNATURE + nullable: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -40767,7 +52017,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -40835,7 +52085,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -40849,6 +52099,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/POST_adyen_gateways_201_response_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' GET_payment_gateways_paymentGatewayId_200_response_data: properties: id: @@ -40886,17 +52138,29 @@ components: description: URL attributes: properties: - payment_source_type: - description: "The payment source type, can be one of: 'AdyenPayment',\ - \ 'AxervePayment', 'BraintreePayment', 'CheckoutComPayment',\ - \ 'CreditCard', 'ExternalPayment', 'KlarnaPayment', 'PaypalPayment',\ - \ 'SatispayPayment', 'StripePayment', or 'WireTransfer'." - example: StripePayment - nullable: false name: - description: "Payment source type, titleized" + description: The payment method's internal name. example: Stripe Payment nullable: true + payment_source_type: + description: "The payment source type. One of 'adyen_payments',\ + \ 'axerve_payments', 'braintree_payments', 'checkout_com_payments',\ + \ 'credit_cards', 'external_payments', 'klarna_payments', 'paypal_payments',\ + \ 'satispay_payments', 'stripe_payments', or 'wire_transfers'." + enum: + - adyen_payments + - axerve_payments + - braintree_payments + - checkout_com_payments + - credit_cards + - external_payments + - klarna_payments + - paypal_payments + - satispay_payments + - stripe_payments + - wire_transfers + example: stripe_payments + nullable: false currency_code: description: The international 3-letter currency code as defined by the ISO 4217 standard. @@ -40912,25 +52176,26 @@ components: capture before fulfillment. example: true nullable: true + auto_place: + description: Send this attribute if you want to automatically + place the order upon authorization performed asynchronously. + example: true + nullable: true auto_capture: description: Send this attribute if you want to automatically capture the payment upon authorization. example: false nullable: true - disabled_at: - description: Time at which the payment method was disabled. - example: 2018-01-01T12:00:00.000Z - nullable: true price_amount_cents: - description: "The payment method's price, in cents" + description: "The payment method's price, in cents." example: 0 nullable: false price_amount_float: - description: "The payment method's price, float" + description: "The payment method's price, float." example: 0.0 nullable: true formatted_price_amount: - description: "The payment method's price, formatted" + description: "The payment method's price, formatted." example: "€0,00" nullable: true auto_capture_max_amount_cents: @@ -40940,13 +52205,17 @@ components: example: 0 nullable: true auto_capture_max_amount_float: - description: "The automatic capture max amount, float" + description: "The automatic capture max amount, float." example: 0.0 nullable: true formatted_auto_capture_max_amount: - description: "The automatic capture max amount, formatted" + description: "The automatic capture max amount, formatted." example: "€0,00" nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -40964,7 +52233,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -41024,14 +52293,45 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_payment_methods_201_response_data_attributes: properties: + name: + description: The payment method's internal name. + example: Stripe Payment payment_source_type: - description: "The payment source type, can be one of: 'AdyenPayment', 'AxervePayment',\ - \ 'BraintreePayment', 'CheckoutComPayment', 'CreditCard', 'ExternalPayment',\ - \ 'KlarnaPayment', 'PaypalPayment', 'SatispayPayment', 'StripePayment',\ - \ or 'WireTransfer'." - example: StripePayment + description: "The payment source type. One of 'adyen_payments', 'axerve_payments',\ + \ 'braintree_payments', 'checkout_com_payments', 'credit_cards', 'external_payments',\ + \ 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments',\ + \ or 'wire_transfers'." + enum: + - adyen_payments + - axerve_payments + - braintree_payments + - checkout_com_payments + - credit_cards + - external_payments + - klarna_payments + - paypal_payments + - satispay_payments + - stripe_payments + - wire_transfers + example: stripe_payments currency_code: description: The international 3-letter currency code as defined by the ISO 4217 standard. @@ -41044,18 +52344,28 @@ components: description: Send this attribute if you want to require the payment capture before fulfillment. example: true + auto_place: + description: Send this attribute if you want to automatically place the + order upon authorization performed asynchronously. + example: true auto_capture: description: Send this attribute if you want to automatically capture the payment upon authorization. example: false price_amount_cents: - description: "The payment method's price, in cents" + description: "The payment method's price, in cents." example: 0 auto_capture_max_amount_cents: description: "Send this attribute if you want to limit automatic capture\ \ to orders for which the total amount is equal or less than the specified\ \ value, in cents." example: 0 + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -41063,7 +52373,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -41081,7 +52391,9 @@ components: payment_gateway: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_payment_gateway' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_payment_methods_201_response_data: properties: id: @@ -41103,17 +52415,29 @@ components: $ref: '#/components/schemas/POST_payment_methods_201_response_data' GET_payment_methods_paymentMethodId_200_response_data_attributes: properties: - payment_source_type: - description: "The payment source type, can be one of: 'AdyenPayment', 'AxervePayment',\ - \ 'BraintreePayment', 'CheckoutComPayment', 'CreditCard', 'ExternalPayment',\ - \ 'KlarnaPayment', 'PaypalPayment', 'SatispayPayment', 'StripePayment',\ - \ or 'WireTransfer'." - example: StripePayment - nullable: false name: - description: "Payment source type, titleized" + description: The payment method's internal name. example: Stripe Payment nullable: true + payment_source_type: + description: "The payment source type. One of 'adyen_payments', 'axerve_payments',\ + \ 'braintree_payments', 'checkout_com_payments', 'credit_cards', 'external_payments',\ + \ 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments',\ + \ or 'wire_transfers'." + enum: + - adyen_payments + - axerve_payments + - braintree_payments + - checkout_com_payments + - credit_cards + - external_payments + - klarna_payments + - paypal_payments + - satispay_payments + - stripe_payments + - wire_transfers + example: stripe_payments + nullable: false currency_code: description: The international 3-letter currency code as defined by the ISO 4217 standard. @@ -41129,25 +52453,26 @@ components: before fulfillment. example: true nullable: true + auto_place: + description: Send this attribute if you want to automatically place the + order upon authorization performed asynchronously. + example: true + nullable: true auto_capture: description: Send this attribute if you want to automatically capture the payment upon authorization. example: false nullable: true - disabled_at: - description: Time at which the payment method was disabled. - example: 2018-01-01T12:00:00.000Z - nullable: true price_amount_cents: - description: "The payment method's price, in cents" + description: "The payment method's price, in cents." example: 0 nullable: false price_amount_float: - description: "The payment method's price, float" + description: "The payment method's price, float." example: 0.0 nullable: true formatted_price_amount: - description: "The payment method's price, formatted" + description: "The payment method's price, formatted." example: "€0,00" nullable: true auto_capture_max_amount_cents: @@ -41157,13 +52482,383 @@ components: example: 0 nullable: true auto_capture_max_amount_float: - description: "The automatic capture max amount, float" + description: "The automatic capture max amount, float." example: 0.0 nullable: true formatted_auto_capture_max_amount: - description: "The automatic capture max amount, formatted" + description: "The automatic capture max amount, formatted." example: "€0,00" nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + GET_payment_methods_paymentMethodId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - payment_methods + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/GET_payment_methods_paymentMethodId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_payment_methods_201_response_data_relationships' + GET_payment_methods_paymentMethodId_200_response: + properties: + data: + $ref: '#/components/schemas/GET_payment_methods_paymentMethodId_200_response_data' + PATCH_payment_methods_paymentMethodId_200_response_data_attributes: + properties: + name: + description: The payment method's internal name. + example: Stripe Payment + nullable: true + payment_source_type: + description: "The payment source type. One of 'adyen_payments', 'axerve_payments',\ + \ 'braintree_payments', 'checkout_com_payments', 'credit_cards', 'external_payments',\ + \ 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments',\ + \ or 'wire_transfers'." + enum: + - adyen_payments + - axerve_payments + - braintree_payments + - checkout_com_payments + - credit_cards + - external_payments + - klarna_payments + - paypal_payments + - satispay_payments + - stripe_payments + - wire_transfers + example: stripe_payments + nullable: false + currency_code: + description: The international 3-letter currency code as defined by the + ISO 4217 standard. + example: EUR + nullable: true + moto: + description: "Send this attribute if you want to mark the payment as MOTO,\ + \ must be supported by payment gateway." + example: false + nullable: false + require_capture: + description: Send this attribute if you want to require the payment capture + before fulfillment. + example: true + nullable: false + auto_place: + description: Send this attribute if you want to automatically place the + order upon authorization performed asynchronously. + example: true + nullable: false + auto_capture: + description: Send this attribute if you want to automatically capture the + payment upon authorization. + example: false + nullable: false + price_amount_cents: + description: "The payment method's price, in cents." + example: 0 + nullable: false + auto_capture_max_amount_cents: + description: "Send this attribute if you want to limit automatic capture\ + \ to orders for which the total amount is equal or less than the specified\ + \ value, in cents." + example: 0 + nullable: true + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + nullable: false + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + PATCH_payment_methods_paymentMethodId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - payment_methods + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/PATCH_payment_methods_paymentMethodId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_payment_methods_201_response_data_relationships' + PATCH_payment_methods_paymentMethodId_200_response: + properties: + data: + $ref: '#/components/schemas/PATCH_payment_methods_paymentMethodId_200_response_data' + GET_payment_options_200_response: + properties: + data: + items: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - payment_options + links: + properties: + self: + description: URL + attributes: + properties: + name: + description: The payment option's name. Wehn blank is inherited + by payment source type. + example: Stripe Payment Option + nullable: true + payment_source_type: + description: "The payment source type. One of 'adyen_payments',\ + \ 'axerve_payments', 'braintree_payments', 'checkout_com_payments',\ + \ 'credit_cards', 'external_payments', 'klarna_payments', 'paypal_payments',\ + \ 'satispay_payments', 'stripe_payments', or 'wire_transfers'." + enum: + - adyen_payments + - axerve_payments + - braintree_payments + - checkout_com_payments + - credit_cards + - external_payments + - klarna_payments + - paypal_payments + - satispay_payments + - stripe_payments + - wire_transfers + example: stripe_payments + nullable: false + data: + description: The payment options data to be added to the payment + source payload. Check payment specific API for more details. + example: + application_fee_amount: 1000 + on_behalf_of: pm_xxx + nullable: false + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier\ + \ to the resource. This can be useful for integrating the resource\ + \ to an external system, like an ERP, a marketing tool, a CRM,\ + \ or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines + the reference code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the + resource. This can be useful for storing additional information + about the resource in a structured format. + example: + foo: bar + nullable: true + relationships: + properties: + order: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - order + id: + description: The resource ID + attachments: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - attachments + id: + description: The resource ID + POST_payment_options_201_response_data_attributes: + properties: + name: + description: The payment option's name. Wehn blank is inherited by payment + source type. + example: Stripe Payment Option + payment_source_type: + description: "The payment source type. One of 'adyen_payments', 'axerve_payments',\ + \ 'braintree_payments', 'checkout_com_payments', 'credit_cards', 'external_payments',\ + \ 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments',\ + \ or 'wire_transfers'." + enum: + - adyen_payments + - axerve_payments + - braintree_payments + - checkout_com_payments + - credit_cards + - external_payments + - klarna_payments + - paypal_payments + - satispay_payments + - stripe_payments + - wire_transfers + example: stripe_payments + data: + description: The payment options data to be added to the payment source + payload. Check payment specific API for more details. + example: + application_fee_amount: 1000 + on_behalf_of: pm_xxx + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + required: + - data + - payment_source_type + POST_payment_options_201_response_data_relationships: + properties: + order: + $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' + attachments: + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + POST_payment_options_201_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - payment_options + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/POST_payment_options_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_payment_options_201_response_data_relationships' + POST_payment_options_201_response: + properties: + data: + $ref: '#/components/schemas/POST_payment_options_201_response_data' + GET_payment_options_paymentOptionId_200_response_data_attributes: + properties: + name: + description: The payment option's name. Wehn blank is inherited by payment + source type. + example: Stripe Payment Option + nullable: true + payment_source_type: + description: "The payment source type. One of 'adyen_payments', 'axerve_payments',\ + \ 'braintree_payments', 'checkout_com_payments', 'credit_cards', 'external_payments',\ + \ 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments',\ + \ or 'wire_transfers'." + enum: + - adyen_payments + - axerve_payments + - braintree_payments + - checkout_com_payments + - credit_cards + - external_payments + - klarna_payments + - paypal_payments + - satispay_payments + - stripe_payments + - wire_transfers + example: stripe_payments + nullable: false + data: + description: The payment options data to be added to the payment source + payload. Check payment specific API for more details. + example: + application_fee_amount: 1000 + on_behalf_of: pm_xxx + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -41180,7 +52875,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -41190,7 +52885,7 @@ components: example: foo: bar nullable: true - GET_payment_methods_paymentMethodId_200_response_data: + GET_payment_options_paymentOptionId_200_response_data: properties: id: description: The resource's id @@ -41198,66 +52893,31 @@ components: type: description: The resource's type enum: - - payment_methods + - payment_options links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/GET_payment_methods_paymentMethodId_200_response_data_attributes' + $ref: '#/components/schemas/GET_payment_options_paymentOptionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_payment_methods_201_response_data_relationships' - GET_payment_methods_paymentMethodId_200_response: + $ref: '#/components/schemas/POST_payment_options_201_response_data_relationships' + GET_payment_options_paymentOptionId_200_response: properties: data: - $ref: '#/components/schemas/GET_payment_methods_paymentMethodId_200_response_data' - PATCH_payment_methods_paymentMethodId_200_response_data_attributes: + $ref: '#/components/schemas/GET_payment_options_paymentOptionId_200_response_data' + PATCH_payment_options_paymentOptionId_200_response_data_attributes: properties: - payment_source_type: - description: "The payment source type, can be one of: 'AdyenPayment', 'AxervePayment',\ - \ 'BraintreePayment', 'CheckoutComPayment', 'CreditCard', 'ExternalPayment',\ - \ 'KlarnaPayment', 'PaypalPayment', 'SatispayPayment', 'StripePayment',\ - \ or 'WireTransfer'." - example: StripePayment - nullable: false - currency_code: - description: The international 3-letter currency code as defined by the - ISO 4217 standard. - example: EUR + name: + description: The payment option's name. Wehn blank is inherited by payment + source type. + example: Stripe Payment Option nullable: true - moto: - description: "Send this attribute if you want to mark the payment as MOTO,\ - \ must be supported by payment gateway." - example: false - nullable: false - require_capture: - description: Send this attribute if you want to require the payment capture - before fulfillment. - example: true - nullable: false - auto_capture: - description: Send this attribute if you want to automatically capture the - payment upon authorization. - example: false - nullable: false - _disable: - description: Send this attribute if you want to mark the payment method - as disabled. - example: true - nullable: false - _enable: - description: Send this attribute if you want to mark the payment method - as enabled. - example: true - nullable: false - price_amount_cents: - description: "The payment method's price, in cents" - example: 0 + data: + description: The payment options data to be added to the payment source + payload. Check payment specific API for more details. + example: + application_fee_amount: 1000 + on_behalf_of: pm_xxx nullable: false - auto_capture_max_amount_cents: - description: "Send this attribute if you want to limit automatic capture\ - \ to orders for which the total amount is equal or less than the specified\ - \ value, in cents." - example: 0 - nullable: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -41266,7 +52926,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -41276,7 +52936,7 @@ components: example: foo: bar nullable: true - PATCH_payment_methods_paymentMethodId_200_response_data: + PATCH_payment_options_paymentOptionId_200_response_data: properties: id: description: The resource's id @@ -41284,17 +52944,17 @@ components: type: description: The resource's type enum: - - payment_methods + - payment_options links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/PATCH_payment_methods_paymentMethodId_200_response_data_attributes' + $ref: '#/components/schemas/PATCH_payment_options_paymentOptionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_payment_methods_201_response_data_relationships' - PATCH_payment_methods_paymentMethodId_200_response: + $ref: '#/components/schemas/POST_payment_options_201_response_data_relationships' + PATCH_payment_options_paymentOptionId_200_response: properties: data: - $ref: '#/components/schemas/PATCH_payment_methods_paymentMethodId_200_response_data' + $ref: '#/components/schemas/PATCH_payment_options_paymentOptionId_200_response_data' GET_paypal_gateways_200_response: properties: data: @@ -41334,7 +52994,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -41362,6 +53022,22 @@ components: - payment_methods id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID paypal_payments: properties: links: @@ -41390,7 +53066,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -41426,6 +53102,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/POST_adyen_gateways_201_response_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' paypal_payments: $ref: '#/components/schemas/POST_paypal_gateways_201_response_data_relationships_paypal_payments' POST_paypal_gateways_201_response_data: @@ -41480,7 +53158,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -41553,7 +53231,7 @@ components: example: ABCDEFGHG123456 nullable: true name: - description: The PayPal payer id (if present) + description: The PayPal payer id (if present). example: ABCDEFGHG123456 nullable: true paypal_id: @@ -41561,13 +53239,13 @@ components: example: "1234567890" nullable: true status: - description: The PayPal payment status. One of 'created' (default) - or 'approved'. + description: "The PayPal payment status. One of 'created', or\ + \ 'approved'." enum: - created - approved example: created - nullable: false + nullable: true approval_url: description: The URL the customer should be redirected to approve the payment. @@ -41578,24 +53256,12 @@ components: the one of the created payment intent. example: false nullable: true - intent_amount_cents: - description: "The amount of the associated payment intent, in\ - \ cents." - example: 1000 - nullable: false - intent_amount_float: - description: "The amount of the associated payment intent, float." - example: 10.0 - nullable: true - formatted_intent_amount: - description: "The amount of the associated payment intent, formatted." - example: "€10,00" - nullable: true payment_instrument: description: Information about the payment instrument used in - the transaction + the transaction. example: - issuer: paypal + issuer: cl bank + card_type: visa nullable: true created_at: description: Time at which the resource was created. @@ -41614,7 +53280,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -41630,6 +53296,8 @@ components: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' payment_gateway: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_payment_gateway' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_paypal_payments_201_response_data_attributes: properties: return_url: @@ -41651,7 +53319,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -41703,7 +53371,7 @@ components: example: ABCDEFGHG123456 nullable: true name: - description: The PayPal payer id (if present) + description: The PayPal payer id (if present). example: ABCDEFGHG123456 nullable: true paypal_id: @@ -41711,12 +53379,12 @@ components: example: "1234567890" nullable: true status: - description: The PayPal payment status. One of 'created' (default) or 'approved'. + description: "The PayPal payment status. One of 'created', or 'approved'." enum: - created - approved example: created - nullable: false + nullable: true approval_url: description: The URL the customer should be redirected to approve the payment. example: https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-1234567890ABCDEFGHG @@ -41726,22 +53394,11 @@ components: of the created payment intent. example: false nullable: true - intent_amount_cents: - description: "The amount of the associated payment intent, in cents." - example: 1000 - nullable: false - intent_amount_float: - description: "The amount of the associated payment intent, float." - example: 10.0 - nullable: true - formatted_intent_amount: - description: "The amount of the associated payment intent, formatted." - example: "€10,00" - nullable: true payment_instrument: - description: Information about the payment instrument used in the transaction + description: Information about the payment instrument used in the transaction. example: - issuer: paypal + issuer: cl bank + card_type: visa nullable: true created_at: description: Time at which the resource was created. @@ -41759,7 +53416,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -41802,7 +53459,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -41853,11 +53510,34 @@ components: description: The promotion's internal name. example: Personal promotion nullable: false + type: + description: The promotion's type. + enum: + - percentage_discount_promotions + - free_shipping_promotions + - buy_x_pay_y_promotions + - free_gift_promotions + - fixed_price_promotions + - external_promotions + - fixed_amount_promotions + - flex_promotions + example: percentage_discount_promotions + nullable: false currency_code: description: The international 3-letter currency code as defined by the ISO 4217 standard. example: EUR nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively,\ + \ based on its priority score." + example: true + nullable: true + priority: + description: The priority assigned to the promotion (lower means + higher priority). + example: 2 + nullable: true starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -41869,16 +53549,33 @@ components: nullable: false total_usage_limit: description: The total number of times this promotion can be applied. + When 'null' it means promotion can be applied infinite times. example: 5 - nullable: false + nullable: true total_usage_count: description: The number of times this promotion has been applied. example: 2 nullable: true active: - description: Indicates if the promotion is active. + description: Indicates if the promotion is active (enabled and + not expired). example: true nullable: true + status: + description: "The promotion status. One of 'disabled', 'expired',\ + \ 'pending', 'active', or 'inactive'." + enum: + - disabled + - expired + - pending + - active + - inactive + example: pending + nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -41896,7 +53593,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -41915,19 +53612,27 @@ components: market: $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships_market' promotion_rules: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_promotion_rules' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_promotion_rules' order_amount_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_order_amount_promotion_rule' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_order_amount_promotion_rule' sku_list_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_sku_list_promotion_rule' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_sku_list_promotion_rule' coupon_codes_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_coupon_codes_promotion_rule' - attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' - events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule' + custom_promotion_rule: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_custom_promotion_rule' sku_list: $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_sku_list' + coupons: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupons' + attachments: + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' skus: $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_skus' POST_percentage_discount_promotions_201_response_data_attributes: @@ -41939,6 +53644,14 @@ components: description: The international 3-letter currency code as defined by the ISO 4217 standard. example: EUR + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -41946,8 +53659,15 @@ components: description: The expiration date/time of this promotion (must be after starts_at). example: 2018-01-02T12:00:00.000Z total_usage_limit: - description: The total number of times this promotion can be applied. + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. example: 5 + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -41955,7 +53675,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -41971,7 +53691,6 @@ components: - name - percentage - starts_at - - total_usage_limit POST_percentage_discount_promotions_201_response_data: properties: id: @@ -41986,7 +53705,7 @@ components: attributes: $ref: '#/components/schemas/POST_percentage_discount_promotions_201_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_fixed_price_promotions_201_response_data_relationships' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships' POST_percentage_discount_promotions_201_response: properties: data: @@ -41997,11 +53716,34 @@ components: description: The promotion's internal name. example: Personal promotion nullable: false + type: + description: The promotion's type. + enum: + - percentage_discount_promotions + - free_shipping_promotions + - buy_x_pay_y_promotions + - free_gift_promotions + - fixed_price_promotions + - external_promotions + - fixed_amount_promotions + - flex_promotions + example: percentage_discount_promotions + nullable: false currency_code: description: The international 3-letter currency code as defined by the ISO 4217 standard. example: EUR nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + nullable: true + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 + nullable: true starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -42011,16 +53753,410 @@ components: example: 2018-01-02T12:00:00.000Z nullable: false total_usage_limit: - description: The total number of times this promotion can be applied. + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. example: 5 - nullable: false + nullable: true total_usage_count: description: The number of times this promotion has been applied. example: 2 nullable: true active: - description: Indicates if the promotion is active. + description: Indicates if the promotion is active (enabled and not expired). + example: true + nullable: true + status: + description: "The promotion status. One of 'disabled', 'expired', 'pending',\ + \ 'active', or 'inactive'." + enum: + - disabled + - expired + - pending + - active + - inactive + example: pending + nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + percentage: + description: The discount percentage to be applied. + example: 10 + nullable: false + GET_percentage_discount_promotions_percentageDiscountPromotionId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - percentage_discount_promotions + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/GET_percentage_discount_promotions_percentageDiscountPromotionId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships' + GET_percentage_discount_promotions_percentageDiscountPromotionId_200_response: + properties: + data: + $ref: '#/components/schemas/GET_percentage_discount_promotions_percentageDiscountPromotionId_200_response_data' + PATCH_percentage_discount_promotions_percentageDiscountPromotionId_200_response_data_attributes: + properties: + name: + description: The promotion's internal name. + example: Personal promotion + nullable: false + currency_code: + description: The international 3-letter currency code as defined by the + ISO 4217 standard. + example: EUR + nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively, based\ + \ on its priority score." + example: true + nullable: false + priority: + description: The priority assigned to the promotion (lower means higher + priority). + example: 2 + nullable: true + starts_at: + description: The activation date/time of this promotion. + example: 2018-01-01T12:00:00.000Z + nullable: false + expires_at: + description: The expiration date/time of this promotion (must be after starts_at). + example: 2018-01-02T12:00:00.000Z + nullable: false + total_usage_limit: + description: The total number of times this promotion can be applied. When + 'null' it means promotion can be applied infinite times. + example: 5 + nullable: true + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + nullable: false + _enable: + description: Send this attribute if you want to mark this resource as enabled. example: true + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + percentage: + description: The discount percentage to be applied. + example: 10 + nullable: false + PATCH_percentage_discount_promotions_percentageDiscountPromotionId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - percentage_discount_promotions + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/PATCH_percentage_discount_promotions_percentageDiscountPromotionId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships' + PATCH_percentage_discount_promotions_percentageDiscountPromotionId_200_response: + properties: + data: + $ref: '#/components/schemas/PATCH_percentage_discount_promotions_percentageDiscountPromotionId_200_response_data' + GET_price_frequency_tiers_200_response: + properties: + data: + items: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - price_frequency_tiers + links: + properties: + self: + description: URL + attributes: + properties: + name: + description: The price tier's name. + example: six pack + nullable: false + type: + description: The price tier's type. + enum: + - price_volume_tiers + - price_frequency_tiers + example: price_volume_tiers + nullable: false + up_to: + description: "The tier upper limit, expressed as the line item\ + \ frequency in days (or frequency label, ie 'monthly'). When\ + \ 'null' it means infinity (useful to have an always matching\ + \ tier)." + example: 7 + nullable: true + price_amount_cents: + description: "The price of this price tier, in cents." + example: 1000 + nullable: false + price_amount_float: + description: "The price of this price tier, float." + example: 10.0 + nullable: true + formatted_price_amount: + description: "The price of this price tier, formatted." + example: "€10,00" + nullable: true + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier\ + \ to the resource. This can be useful for integrating the resource\ + \ to an external system, like an ERP, a marketing tool, a CRM,\ + \ or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines + the reference code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the + resource. This can be useful for storing additional information + about the resource in a structured format. + example: + foo: bar + nullable: true + relationships: + properties: + price: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - price + id: + description: The resource ID + attachments: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - attachments + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID + events: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource ID + POST_price_frequency_tiers_201_response_data_attributes: + properties: + name: + description: The price tier's name. + example: six pack + up_to: + description: "The tier upper limit, expressed as the line item frequency\ + \ in days (or frequency label, ie 'monthly'). When 'null' it means infinity\ + \ (useful to have an always matching tier)." + example: 7 + price_amount_cents: + description: "The price of this price tier, in cents." + example: 1000 + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + required: + - name + - price_amount_cents + POST_price_frequency_tiers_201_response_data_relationships_price_data: + properties: + type: + description: The resource's type + enum: + - price + id: + description: The resource ID + POST_price_frequency_tiers_201_response_data_relationships_price: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_price_frequency_tiers_201_response_data_relationships_price_data' + POST_price_frequency_tiers_201_response_data_relationships: + properties: + price: + $ref: '#/components/schemas/POST_price_frequency_tiers_201_response_data_relationships_price' + attachments: + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + POST_price_frequency_tiers_201_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - price_frequency_tiers + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/POST_price_frequency_tiers_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_price_frequency_tiers_201_response_data_relationships' + POST_price_frequency_tiers_201_response: + properties: + data: + $ref: '#/components/schemas/POST_price_frequency_tiers_201_response_data' + GET_price_frequency_tiers_priceFrequencyTierId_200_response_data_attributes: + properties: + name: + description: The price tier's name. + example: six pack + nullable: false + type: + description: The price tier's type. + enum: + - price_volume_tiers + - price_frequency_tiers + example: price_volume_tiers + nullable: false + up_to: + description: "The tier upper limit, expressed as the line item frequency\ + \ in days (or frequency label, ie 'monthly'). When 'null' it means infinity\ + \ (useful to have an always matching tier)." + example: 7 + nullable: true + price_amount_cents: + description: "The price of this price tier, in cents." + example: 1000 + nullable: false + price_amount_float: + description: "The price of this price tier, float." + example: 10.0 + nullable: true + formatted_price_amount: + description: "The price of this price tier, formatted." + example: "€10,00" nullable: true created_at: description: Time at which the resource was created. @@ -42038,7 +54174,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -42048,11 +54184,7 @@ components: example: foo: bar nullable: true - percentage: - description: The discount percentage to be applied. - example: 10 - nullable: false - GET_percentage_discount_promotions_percentageDiscountPromotionId_200_response_data: + GET_price_frequency_tiers_priceFrequencyTierId_200_response_data: properties: id: description: The resource's id @@ -42060,39 +54192,32 @@ components: type: description: The resource's type enum: - - percentage_discount_promotions + - price_frequency_tiers links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/GET_percentage_discount_promotions_percentageDiscountPromotionId_200_response_data_attributes' + $ref: '#/components/schemas/GET_price_frequency_tiers_priceFrequencyTierId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_fixed_price_promotions_201_response_data_relationships' - GET_percentage_discount_promotions_percentageDiscountPromotionId_200_response: + $ref: '#/components/schemas/POST_price_frequency_tiers_201_response_data_relationships' + GET_price_frequency_tiers_priceFrequencyTierId_200_response: properties: data: - $ref: '#/components/schemas/GET_percentage_discount_promotions_percentageDiscountPromotionId_200_response_data' - PATCH_percentage_discount_promotions_percentageDiscountPromotionId_200_response_data_attributes: + $ref: '#/components/schemas/GET_price_frequency_tiers_priceFrequencyTierId_200_response_data' + PATCH_price_frequency_tiers_priceFrequencyTierId_200_response_data_attributes: properties: name: - description: The promotion's internal name. - example: Personal promotion + description: The price tier's name. + example: six pack nullable: false - currency_code: - description: The international 3-letter currency code as defined by the - ISO 4217 standard. - example: EUR + up_to: + description: "The tier upper limit, expressed as the line item frequency\ + \ in days (or frequency label, ie 'monthly'). When 'null' it means infinity\ + \ (useful to have an always matching tier)." + example: 7 nullable: true - starts_at: - description: The activation date/time of this promotion. - example: 2018-01-01T12:00:00.000Z - nullable: false - expires_at: - description: The expiration date/time of this promotion (must be after starts_at). - example: 2018-01-02T12:00:00.000Z - nullable: false - total_usage_limit: - description: The total number of times this promotion can be applied. - example: 5 + price_amount_cents: + description: "The price of this price tier, in cents." + example: 1000 nullable: false reference: description: "A string that you can use to add any external identifier to\ @@ -42102,7 +54227,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -42112,11 +54237,7 @@ components: example: foo: bar nullable: true - percentage: - description: The discount percentage to be applied. - example: 10 - nullable: false - PATCH_percentage_discount_promotions_percentageDiscountPromotionId_200_response_data: + PATCH_price_frequency_tiers_priceFrequencyTierId_200_response_data: properties: id: description: The resource's id @@ -42124,18 +54245,18 @@ components: type: description: The resource's type enum: - - percentage_discount_promotions + - price_frequency_tiers links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/PATCH_percentage_discount_promotions_percentageDiscountPromotionId_200_response_data_attributes' + $ref: '#/components/schemas/PATCH_price_frequency_tiers_priceFrequencyTierId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_fixed_price_promotions_201_response_data_relationships' - PATCH_percentage_discount_promotions_percentageDiscountPromotionId_200_response: + $ref: '#/components/schemas/POST_price_frequency_tiers_201_response_data_relationships' + PATCH_price_frequency_tiers_priceFrequencyTierId_200_response: properties: data: - $ref: '#/components/schemas/PATCH_percentage_discount_promotions_percentageDiscountPromotionId_200_response_data' - GET_price_frequency_tiers_200_response: + $ref: '#/components/schemas/PATCH_price_frequency_tiers_priceFrequencyTierId_200_response_data' + GET_price_list_schedulers_200_response: properties: data: items: @@ -42146,7 +54267,7 @@ components: type: description: The resource's type enum: - - price_frequency_tiers + - price_list_schedulers links: properties: self: @@ -42154,27 +54275,36 @@ components: attributes: properties: name: - description: The price tier's name - example: six pack + description: The price list scheduler's internal name. + example: FW SALE 2023 nullable: false - up_to: - description: "The tier upper limit, expressed as the line item\ - \ frequency in days (or frequency label, ie 'monthly'). When\ - \ 'null' it means infinity (useful to have an always matching\ - \ tier)." - example: 7 - nullable: true - price_amount_cents: - description: "The price of this price tier, in cents." - example: 1000 + starts_at: + description: The activation date/time of this price list scheduler. + example: 2018-01-01T12:00:00.000Z nullable: false - price_amount_float: - description: "The price of this price tier, float." - example: 10.0 + expires_at: + description: The expiration date/time of this price list scheduler + (must be after starts_at). + example: 2018-01-02T12:00:00.000Z + nullable: false + active: + description: Indicates if the price list scheduler is active (enabled + and not expired). + example: true nullable: true - formatted_price_amount: - description: "The price of this price tier, formatted." - example: "€10,00" + status: + description: "The price list scheduler status. One of 'disabled',\ + \ 'expired', 'pending', or 'active'." + enum: + - disabled + - expired + - pending + - active + example: pending + nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z nullable: true created_at: description: Time at which the resource was created. @@ -42193,7 +54323,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -42205,7 +54335,7 @@ components: nullable: true relationships: properties: - price: + market: properties: links: properties: @@ -42218,10 +54348,10 @@ components: type: description: The resource's type enum: - - price + - market id: description: The resource ID - attachments: + price_list: properties: links: properties: @@ -42234,7 +54364,7 @@ components: type: description: The resource's type enum: - - attachments + - price_list id: description: The resource ID events: @@ -42253,19 +54383,40 @@ components: - events id: description: The resource ID - POST_price_frequency_tiers_201_response_data_attributes: + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID + POST_price_list_schedulers_201_response_data_attributes: properties: name: - description: The price tier's name - example: six pack - up_to: - description: "The tier upper limit, expressed as the line item frequency\ - \ in days (or frequency label, ie 'monthly'). When 'null' it means infinity\ - \ (useful to have an always matching tier)." - example: 7 - price_amount_cents: - description: "The price of this price tier, in cents." - example: 1000 + description: The price list scheduler's internal name. + example: FW SALE 2023 + starts_at: + description: The activation date/time of this price list scheduler. + example: 2018-01-01T12:00:00.000Z + expires_at: + description: The expiration date/time of this price list scheduler (must + be after starts_at). + example: 2018-01-02T12:00:00.000Z + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -42273,7 +54424,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -42282,31 +54433,20 @@ components: example: foo: bar required: + - expires_at - name - - price_amount_cents - POST_price_frequency_tiers_201_response_data_relationships_price_data: - properties: - type: - description: The resource's type - enum: - - price - id: - description: The resource ID - POST_price_frequency_tiers_201_response_data_relationships_price: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/POST_price_frequency_tiers_201_response_data_relationships_price_data' - POST_price_frequency_tiers_201_response_data_relationships: + - starts_at + POST_price_list_schedulers_201_response_data_relationships: properties: - price: - $ref: '#/components/schemas/POST_price_frequency_tiers_201_response_data_relationships_price' - attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + market: + $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships_market' + price_list: + $ref: '#/components/schemas/POST_markets_201_response_data_relationships_price_list' events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' - POST_price_frequency_tiers_201_response_data: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + POST_price_list_schedulers_201_response_data: properties: id: description: The resource's id @@ -42314,40 +54454,50 @@ components: type: description: The resource's type enum: - - price_frequency_tiers + - price_list_schedulers links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/POST_price_frequency_tiers_201_response_data_attributes' + $ref: '#/components/schemas/POST_price_list_schedulers_201_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_price_frequency_tiers_201_response_data_relationships' - POST_price_frequency_tiers_201_response: + $ref: '#/components/schemas/POST_price_list_schedulers_201_response_data_relationships' + POST_price_list_schedulers_201_response: properties: data: - $ref: '#/components/schemas/POST_price_frequency_tiers_201_response_data' - GET_price_frequency_tiers_priceFrequencyTierId_200_response_data_attributes: + $ref: '#/components/schemas/POST_price_list_schedulers_201_response_data' + GET_price_list_schedulers_priceListSchedulerId_200_response_data_attributes: properties: name: - description: The price tier's name - example: six pack + description: The price list scheduler's internal name. + example: FW SALE 2023 nullable: false - up_to: - description: "The tier upper limit, expressed as the line item frequency\ - \ in days (or frequency label, ie 'monthly'). When 'null' it means infinity\ - \ (useful to have an always matching tier)." - example: 7 - nullable: true - price_amount_cents: - description: "The price of this price tier, in cents." - example: 1000 + starts_at: + description: The activation date/time of this price list scheduler. + example: 2018-01-01T12:00:00.000Z nullable: false - price_amount_float: - description: "The price of this price tier, float." - example: 10.0 + expires_at: + description: The expiration date/time of this price list scheduler (must + be after starts_at). + example: 2018-01-02T12:00:00.000Z + nullable: false + active: + description: Indicates if the price list scheduler is active (enabled and + not expired). + example: true nullable: true - formatted_price_amount: - description: "The price of this price tier, formatted." - example: "€10,00" + status: + description: "The price list scheduler status. One of 'disabled', 'expired',\ + \ 'pending', or 'active'." + enum: + - disabled + - expired + - pending + - active + example: pending + nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z nullable: true created_at: description: Time at which the resource was created. @@ -42365,7 +54515,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -42375,7 +54525,7 @@ components: example: foo: bar nullable: true - GET_price_frequency_tiers_priceFrequencyTierId_200_response_data: + GET_price_list_schedulers_priceListSchedulerId_200_response_data: properties: id: description: The resource's id @@ -42383,32 +54533,39 @@ components: type: description: The resource's type enum: - - price_frequency_tiers + - price_list_schedulers links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/GET_price_frequency_tiers_priceFrequencyTierId_200_response_data_attributes' + $ref: '#/components/schemas/GET_price_list_schedulers_priceListSchedulerId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_price_frequency_tiers_201_response_data_relationships' - GET_price_frequency_tiers_priceFrequencyTierId_200_response: + $ref: '#/components/schemas/POST_price_list_schedulers_201_response_data_relationships' + GET_price_list_schedulers_priceListSchedulerId_200_response: properties: data: - $ref: '#/components/schemas/GET_price_frequency_tiers_priceFrequencyTierId_200_response_data' - PATCH_price_frequency_tiers_priceFrequencyTierId_200_response_data_attributes: + $ref: '#/components/schemas/GET_price_list_schedulers_priceListSchedulerId_200_response_data' + PATCH_price_list_schedulers_priceListSchedulerId_200_response_data_attributes: properties: name: - description: The price tier's name - example: six pack + description: The price list scheduler's internal name. + example: FW SALE 2023 nullable: false - up_to: - description: "The tier upper limit, expressed as the line item frequency\ - \ in days (or frequency label, ie 'monthly'). When 'null' it means infinity\ - \ (useful to have an always matching tier)." - example: 7 - nullable: true - price_amount_cents: - description: "The price of this price tier, in cents." - example: 1000 + starts_at: + description: The activation date/time of this price list scheduler. + example: 2018-01-01T12:00:00.000Z + nullable: false + expires_at: + description: The expiration date/time of this price list scheduler (must + be after starts_at). + example: 2018-01-02T12:00:00.000Z + nullable: false + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + nullable: false + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true nullable: false reference: description: "A string that you can use to add any external identifier to\ @@ -42418,7 +54575,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -42428,7 +54585,7 @@ components: example: foo: bar nullable: true - PATCH_price_frequency_tiers_priceFrequencyTierId_200_response_data: + PATCH_price_list_schedulers_priceListSchedulerId_200_response_data: properties: id: description: The resource's id @@ -42436,17 +54593,17 @@ components: type: description: The resource's type enum: - - price_frequency_tiers + - price_list_schedulers links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/PATCH_price_frequency_tiers_priceFrequencyTierId_200_response_data_attributes' + $ref: '#/components/schemas/PATCH_price_list_schedulers_priceListSchedulerId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_price_frequency_tiers_201_response_data_relationships' - PATCH_price_frequency_tiers_priceFrequencyTierId_200_response: + $ref: '#/components/schemas/POST_price_list_schedulers_201_response_data_relationships' + PATCH_price_list_schedulers_priceListSchedulerId_200_response: properties: data: - $ref: '#/components/schemas/PATCH_price_frequency_tiers_priceFrequencyTierId_200_response_data' + $ref: '#/components/schemas/PATCH_price_list_schedulers_priceListSchedulerId_200_response_data' GET_price_lists_200_response: properties: data: @@ -42466,9 +54623,14 @@ components: attributes: properties: name: - description: The price list's internal name + description: The price list's internal name. example: EU Price list nullable: false + code: + description: A string that you can use to identify the price list + (must be unique within the environment). + example: europe1 + nullable: true currency_code: description: The international 3-letter currency code as defined by the ISO 4217 standard. @@ -42495,9 +54657,17 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true + rules: + description: The rules (using Rules Engine) to be applied. + example: {} + nullable: true + rule_outcomes: + description: The rule outcomes. + example: {} + nullable: true metadata: description: Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information @@ -42523,6 +54693,22 @@ components: - prices id: description: The resource ID + price_list_schedulers: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - price_list_schedulers + id: + description: The resource ID attachments: properties: links: @@ -42539,11 +54725,31 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_price_lists_201_response_data_attributes: properties: name: - description: The price list's internal name + description: The price list's internal name. example: EU Price list + code: + description: A string that you can use to identify the price list (must + be unique within the environment). + example: europe1 currency_code: description: The international 3-letter currency code as defined by the ISO 4217 standard. @@ -42558,8 +54764,11 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + rules: + description: The rules (using Rules Engine) to be applied. + example: {} metadata: description: Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource @@ -42587,8 +54796,12 @@ components: properties: prices: $ref: '#/components/schemas/POST_price_lists_201_response_data_relationships_prices' + price_list_schedulers: + $ref: '#/components/schemas/POST_markets_201_response_data_relationships_price_list_schedulers' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_price_lists_201_response_data: properties: id: @@ -42611,9 +54824,14 @@ components: GET_price_lists_priceListId_200_response_data_attributes: properties: name: - description: The price list's internal name + description: The price list's internal name. example: EU Price list nullable: false + code: + description: A string that you can use to identify the price list (must + be unique within the environment). + example: europe1 + nullable: true currency_code: description: The international 3-letter currency code as defined by the ISO 4217 standard. @@ -42639,9 +54857,17 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true + rules: + description: The rules (using Rules Engine) to be applied. + example: {} + nullable: true + rule_outcomes: + description: The rule outcomes. + example: {} + nullable: true metadata: description: Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource @@ -42671,9 +54897,14 @@ components: PATCH_price_lists_priceListId_200_response_data_attributes: properties: name: - description: The price list's internal name + description: The price list's internal name. example: EU Price list nullable: false + code: + description: A string that you can use to identify the price list (must + be unique within the environment). + example: europe1 + nullable: true currency_code: description: The international 3-letter currency code as defined by the ISO 4217 standard. @@ -42691,9 +54922,13 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true + rules: + description: The rules (using Rules Engine) to be applied. + example: {} + nullable: true metadata: description: Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource @@ -42739,9 +54974,16 @@ components: attributes: properties: name: - description: The price tier's name + description: The price tier's name. example: six pack nullable: false + type: + description: The price tier's type. + enum: + - price_volume_tiers + - price_frequency_tiers + example: price_volume_tiers + nullable: false up_to: description: The tier upper limit. When 'null' it means infinity (useful to have an always matching tier). @@ -42776,7 +55018,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -42820,12 +55062,35 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID GET_price_tiers_priceTierId_200_response_data_attributes: properties: name: - description: The price tier's name + description: The price tier's name. example: six pack nullable: false + type: + description: The price tier's type. + enum: + - price_volume_tiers + - price_frequency_tiers + example: price_volume_tiers + nullable: false up_to: description: The tier upper limit. When 'null' it means infinity (useful to have an always matching tier). @@ -42859,7 +55124,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -42874,7 +55139,9 @@ components: price: $ref: '#/components/schemas/POST_price_frequency_tiers_201_response_data_relationships_price' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' GET_price_tiers_priceTierId_200_response_data: properties: id: @@ -42913,9 +55180,16 @@ components: attributes: properties: name: - description: The price tier's name + description: The price tier's name. example: six pack nullable: false + type: + description: The price tier's type. + enum: + - price_volume_tiers + - price_frequency_tiers + example: price_volume_tiers + nullable: false up_to: description: "The tier upper limit, expressed as the line item\ \ quantity. When 'null' it means infinity (useful to have an\ @@ -42951,7 +55225,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -42966,13 +55240,15 @@ components: price: $ref: '#/components/schemas/POST_price_frequency_tiers_201_response_data_relationships_price' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' POST_price_volume_tiers_201_response_data_attributes: properties: name: - description: The price tier's name + description: The price tier's name. example: six pack up_to: description: "The tier upper limit, expressed as the line item quantity.\ @@ -42988,7 +55264,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -43021,9 +55297,16 @@ components: GET_price_volume_tiers_priceVolumeTierId_200_response_data_attributes: properties: name: - description: The price tier's name + description: The price tier's name. example: six pack nullable: false + type: + description: The price tier's type. + enum: + - price_volume_tiers + - price_frequency_tiers + example: price_volume_tiers + nullable: false up_to: description: "The tier upper limit, expressed as the line item quantity.\ \ When 'null' it means infinity (useful to have an always matching tier)." @@ -43057,7 +55340,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -43089,7 +55372,7 @@ components: PATCH_price_volume_tiers_priceVolumeTierId_200_response_data_attributes: properties: name: - description: The price tier's name + description: The price tier's name. example: six pack nullable: false up_to: @@ -43109,7 +55392,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -43177,25 +55460,35 @@ components: description: "The SKU price amount for the associated price list,\ \ float." example: 100.0 - nullable: false + nullable: true formatted_amount: description: "The SKU price amount for the associated price list,\ \ formatted." example: "€100,00" - nullable: false + nullable: true + original_amount_cents: + description: "The SKU price amount for the associated price list,\ + \ in cents before any applied rule." + example: 10000 + nullable: true + formatted_original_amount: + description: "The SKU price amount for the associated price list,\ + \ in cents before any applied rule, formatted." + example: "€100,00" + nullable: true compare_at_amount_cents: description: "The compared price amount, in cents. Useful to display\ \ a percentage discount." example: 13000 - nullable: false + nullable: true compare_at_amount_float: description: "The compared price amount, float." example: 130.0 - nullable: false + nullable: true formatted_compare_at_amount: description: "The compared price amount, formatted." example: "€130,00" - nullable: false + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -43213,9 +55506,22 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true + rules: + description: The rules (using Rules Engine) to be applied. + example: {} + nullable: true + rule_outcomes: + description: The rule outcomes. + example: {} + nullable: true + jwt_custom_claim: + description: The custom_claim attached to the current JWT (if + any). + example: {} + nullable: true metadata: description: Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information @@ -43321,6 +55627,70 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID + jwt_customer: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - jwt_customer + id: + description: The resource ID + jwt_markets: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - jwt_markets + id: + description: The resource ID + jwt_stock_locations: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - jwt_stock_locations + id: + description: The resource ID POST_prices_201_response_data_attributes: properties: sku_code: @@ -43341,8 +55711,11 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + rules: + description: The rules (using Rules Engine) to be applied. + example: {} metadata: description: Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource @@ -43351,7 +55724,6 @@ components: foo: bar required: - amount_cents - - compare_at_amount_cents POST_prices_201_response_data_relationships_price_tiers_data: properties: type: @@ -43394,6 +55766,48 @@ components: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: $ref: '#/components/schemas/POST_prices_201_response_data_relationships_price_frequency_tiers_data' + POST_prices_201_response_data_relationships_jwt_customer_data: + properties: + type: + description: The resource's type + enum: + - jwt_customer + id: + description: The resource ID + POST_prices_201_response_data_relationships_jwt_customer: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_prices_201_response_data_relationships_jwt_customer_data' + POST_prices_201_response_data_relationships_jwt_markets_data: + properties: + type: + description: The resource's type + enum: + - jwt_markets + id: + description: The resource ID + POST_prices_201_response_data_relationships_jwt_markets: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_prices_201_response_data_relationships_jwt_markets_data' + POST_prices_201_response_data_relationships_jwt_stock_locations_data: + properties: + type: + description: The resource's type + enum: + - jwt_stock_locations + id: + description: The resource ID + POST_prices_201_response_data_relationships_jwt_stock_locations: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_prices_201_response_data_relationships_jwt_stock_locations_data' POST_prices_201_response_data_relationships: properties: price_list: @@ -43407,7 +55821,15 @@ components: price_frequency_tiers: $ref: '#/components/schemas/POST_prices_201_response_data_relationships_price_frequency_tiers' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + jwt_customer: + $ref: '#/components/schemas/POST_prices_201_response_data_relationships_jwt_customer' + jwt_markets: + $ref: '#/components/schemas/POST_prices_201_response_data_relationships_jwt_markets' + jwt_stock_locations: + $ref: '#/components/schemas/POST_prices_201_response_data_relationships_jwt_stock_locations' POST_prices_201_response_data: properties: id: @@ -43446,24 +55868,34 @@ components: amount_float: description: "The SKU price amount for the associated price list, float." example: 100.0 - nullable: false + nullable: true formatted_amount: description: "The SKU price amount for the associated price list, formatted." example: "€100,00" - nullable: false + nullable: true + original_amount_cents: + description: "The SKU price amount for the associated price list, in cents\ + \ before any applied rule." + example: 10000 + nullable: true + formatted_original_amount: + description: "The SKU price amount for the associated price list, in cents\ + \ before any applied rule, formatted." + example: "€100,00" + nullable: true compare_at_amount_cents: description: "The compared price amount, in cents. Useful to display a percentage\ \ discount." example: 13000 - nullable: false + nullable: true compare_at_amount_float: description: "The compared price amount, float." example: 130.0 - nullable: false + nullable: true formatted_compare_at_amount: description: "The compared price amount, formatted." example: "€130,00" - nullable: false + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -43480,9 +55912,21 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true + rules: + description: The rules (using Rules Engine) to be applied. + example: {} + nullable: true + rule_outcomes: + description: The rule outcomes. + example: {} + nullable: true + jwt_custom_claim: + description: The custom_claim attached to the current JWT (if any). + example: {} + nullable: true metadata: description: Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource @@ -43524,7 +55968,7 @@ components: description: "The compared price amount, in cents. Useful to display a percentage\ \ discount." example: 13000 - nullable: false + nullable: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -43533,9 +55977,13 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true + rules: + description: The rules (using Rules Engine) to be applied. + example: {} + nullable: true metadata: description: Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource @@ -43580,6 +56028,15 @@ components: description: URL attributes: properties: + type: + description: The promotion rule's type. + enum: + - order_amount_promotion_rules + - sku_list_promotion_rules + - coupon_codes_promotion_rules + - custom_promotion_rules + example: coupon_codes_promotion_rules + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -43597,7 +56054,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -43611,6 +56068,8 @@ components: properties: promotion: $ref: '#/components/schemas/POST_coupon_codes_promotion_rules_201_response_data_relationships_promotion' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' GET_promotion_rules_promotionRuleId_200_response_data: properties: id: @@ -43623,9 +56082,9 @@ components: links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/GET_billing_info_validation_rules_billingInfoValidationRuleId_200_response_data_attributes' + $ref: '#/components/schemas/GET_coupon_codes_promotion_rules_couponCodesPromotionRuleId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_order_amount_promotion_rules_201_response_data_relationships' + $ref: '#/components/schemas/POST_custom_promotion_rules_201_response_data_relationships' GET_promotion_rules_promotionRuleId_200_response: properties: data: @@ -43652,11 +56111,34 @@ components: description: The promotion's internal name. example: Personal promotion nullable: false + type: + description: The promotion's type. + enum: + - percentage_discount_promotions + - free_shipping_promotions + - buy_x_pay_y_promotions + - free_gift_promotions + - fixed_price_promotions + - external_promotions + - fixed_amount_promotions + - flex_promotions + example: percentage_discount_promotions + nullable: false currency_code: description: The international 3-letter currency code as defined by the ISO 4217 standard. example: EUR nullable: true + exclusive: + description: "Indicates if the promotion will be applied exclusively,\ + \ based on its priority score." + example: true + nullable: true + priority: + description: The priority assigned to the promotion (lower means + higher priority). + example: 2 + nullable: true starts_at: description: The activation date/time of this promotion. example: 2018-01-01T12:00:00.000Z @@ -43668,16 +56150,33 @@ components: nullable: false total_usage_limit: description: The total number of times this promotion can be applied. + When 'null' it means promotion can be applied infinite times. example: 5 - nullable: false + nullable: true total_usage_count: description: The number of times this promotion has been applied. example: 2 nullable: true active: - description: Indicates if the promotion is active. + description: Indicates if the promotion is active (enabled and + not expired). example: true nullable: true + status: + description: "The promotion status. One of 'disabled', 'expired',\ + \ 'pending', 'active', or 'inactive'." + enum: + - disabled + - expired + - pending + - active + - inactive + example: pending + nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -43695,7 +56194,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -43710,17 +56209,27 @@ components: market: $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships_market' promotion_rules: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_promotion_rules' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_promotion_rules' order_amount_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_order_amount_promotion_rule' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_order_amount_promotion_rule' sku_list_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_sku_list_promotion_rule' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_sku_list_promotion_rule' coupon_codes_promotion_rule: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships_coupon_codes_promotion_rule' + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule' + custom_promotion_rule: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_custom_promotion_rule' + sku_list: + $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_sku_list' + coupons: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_relationships_coupons' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' GET_promotions_promotionId_200_response_data: properties: id: @@ -43735,7 +56244,7 @@ components: attributes: $ref: '#/components/schemas/GET_free_shipping_promotions_freeShippingPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_external_promotions_201_response_data_relationships' + $ref: '#/components/schemas/POST_free_shipping_promotions_201_response_data_relationships' GET_promotions_promotionId_200_response: properties: data: @@ -43758,6 +56267,13 @@ components: description: URL attributes: properties: + type: + description: The order factory's type. + enum: + - order_copies + - recurring_order_copies + example: recurring_order_copies + nullable: false status: description: "The order factory status. One of 'pending' (default),\ \ 'in_progress', 'failed', or 'completed'." @@ -43817,7 +56333,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -43834,7 +56350,7 @@ components: target_order: $ref: '#/components/schemas/POST_order_copies_201_response_data_relationships_target_order' events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' order_subscription: $ref: '#/components/schemas/POST_order_copies_201_response_data_relationships_order_subscription' POST_recurring_order_copies_201_response_data_attributes: @@ -43853,7 +56369,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -43937,9 +56453,18 @@ components: attributes: properties: number: - description: "The transaction number, auto generated" + description: "The transaction number, auto generated." example: 42/T/001 nullable: false + type: + description: The transaction's type. + enum: + - authorizations + - voids + - captures + - refunds + example: authorizations + nullable: false currency_code: description: "The international 3-letter currency code as defined\ \ by the ISO 4217 standard, inherited from the associated order." @@ -43958,31 +56483,31 @@ components: example: "€15,00" nullable: false succeeded: - description: Indicates if the transaction is successful + description: Indicates if the transaction is successful. example: false nullable: false message: - description: The message returned by the payment gateway + description: The message returned by the payment gateway. example: Accepted nullable: true error_code: description: "The error code, if any, returned by the payment\ - \ gateway" + \ gateway." example: "00001" nullable: true error_detail: description: "The error detail, if any, returned by the payment\ - \ gateway" + \ gateway." example: Already settled nullable: true token: description: "The token identifying the transaction, returned\ - \ by the payment gateway" + \ by the payment gateway." example: xxxx-yyyy-zzzz nullable: true gateway_transaction_id: description: "The ID identifying the transaction, returned by\ - \ the payment gateway" + \ the payment gateway." example: xxxx-yyyy-zzzz nullable: true created_at: @@ -44002,7 +56527,333 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the + resource. This can be useful for storing additional information + about the resource in a structured format. + example: + foo: bar + nullable: true + relationships: + properties: + order: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - order + id: + description: The resource ID + attachments: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - attachments + id: + description: The resource ID + events: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID + reference_capture: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - reference_capture + id: + description: The resource ID + return: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - return + id: + description: The resource ID + GET_refunds_refundId_200_response_data_attributes: + properties: + number: + description: "The transaction number, auto generated." + example: 42/T/001 + nullable: false + type: + description: The transaction's type. + enum: + - authorizations + - voids + - captures + - refunds + example: authorizations + nullable: false + currency_code: + description: "The international 3-letter currency code as defined by the\ + \ ISO 4217 standard, inherited from the associated order." + example: EUR + nullable: false + amount_cents: + description: "The transaction amount, in cents." + example: 1500 + nullable: false + amount_float: + description: "The transaction amount, float." + example: 15.0 + nullable: false + formatted_amount: + description: "The transaction amount, formatted." + example: "€15,00" + nullable: false + succeeded: + description: Indicates if the transaction is successful. + example: false + nullable: false + message: + description: The message returned by the payment gateway. + example: Accepted + nullable: true + error_code: + description: "The error code, if any, returned by the payment gateway." + example: "00001" + nullable: true + error_detail: + description: "The error detail, if any, returned by the payment gateway." + example: Already settled + nullable: true + token: + description: "The token identifying the transaction, returned by the payment\ + \ gateway." + example: xxxx-yyyy-zzzz + nullable: true + gateway_transaction_id: + description: "The ID identifying the transaction, returned by the payment\ + \ gateway." + example: xxxx-yyyy-zzzz + nullable: true + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + GET_refunds_refundId_200_response_data_relationships_reference_capture_data: + properties: + type: + description: The resource's type + enum: + - reference_capture + id: + description: The resource ID + GET_refunds_refundId_200_response_data_relationships_reference_capture: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/GET_refunds_refundId_200_response_data_relationships_reference_capture_data' + GET_refunds_refundId_200_response_data_relationships: + properties: + order: + $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' + attachments: + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + reference_capture: + $ref: '#/components/schemas/GET_refunds_refundId_200_response_data_relationships_reference_capture' + return: + $ref: '#/components/schemas/GET_captures_captureId_200_response_data_relationships_return' + GET_refunds_refundId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - refunds + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/GET_refunds_refundId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/GET_refunds_refundId_200_response_data_relationships' + GET_refunds_refundId_200_response: + properties: + data: + $ref: '#/components/schemas/GET_refunds_refundId_200_response_data' + PATCH_refunds_refundId_200_response_data_attributes: + properties: + succeeded: + description: Indicates if the transaction is successful. + example: false + nullable: false + _forward: + description: Send this attribute if you want to forward a stuck transaction + to succeeded and update associated order states accordingly. + example: true + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + PATCH_refunds_refundId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - refunds + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/PATCH_refunds_refundId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/GET_refunds_refundId_200_response_data_relationships' + PATCH_refunds_refundId_200_response: + properties: + data: + $ref: '#/components/schemas/PATCH_refunds_refundId_200_response_data' + GET_reserved_stocks_200_response: + properties: + data: + items: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - reserved_stocks + links: + properties: + self: + description: URL + attributes: + properties: + quantity: + description: The stock item reserved quantity. + example: 100 + nullable: false + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier\ + \ to the resource. This can be useful for integrating the resource\ + \ to an external system, like an ERP, a marketing tool, a CRM,\ + \ or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -44014,7 +56865,7 @@ components: nullable: true relationships: properties: - order: + stock_item: properties: links: properties: @@ -44027,10 +56878,10 @@ components: type: description: The resource's type enum: - - order + - stock_item id: description: The resource ID - reference_capture: + sku: properties: links: properties: @@ -44043,10 +56894,10 @@ components: type: description: The resource's type enum: - - reference_capture + - sku id: description: The resource ID - events: + stock_reservations: properties: links: properties: @@ -44059,58 +56910,189 @@ components: type: description: The resource's type enum: - - events + - stock_reservations id: description: The resource ID - GET_refunds_refundId_200_response_data_attributes: + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID + GET_reserved_stocks_reservedStockId_200_response_data_attributes: properties: - number: - description: "The transaction number, auto generated" - example: 42/T/001 - nullable: false - currency_code: - description: "The international 3-letter currency code as defined by the\ - \ ISO 4217 standard, inherited from the associated order." - example: EUR - nullable: false - amount_cents: - description: "The transaction amount, in cents." - example: 1500 - nullable: false - amount_float: - description: "The transaction amount, float." - example: 15.0 + quantity: + description: The stock item reserved quantity. + example: 100 nullable: false - formatted_amount: - description: "The transaction amount, formatted." - example: "€15,00" + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z nullable: false - succeeded: - description: Indicates if the transaction is successful - example: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z nullable: false - message: - description: The message returned by the payment gateway - example: Accepted - nullable: true - error_code: - description: "The error code, if any, returned by the payment gateway" - example: "00001" - nullable: true - error_detail: - description: "The error detail, if any, returned by the payment gateway" - example: Already settled + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE nullable: true - token: - description: "The token identifying the transaction, returned by the payment\ - \ gateway" - example: xxxx-yyyy-zzzz + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true - gateway_transaction_id: - description: "The ID identifying the transaction, returned by the payment\ - \ gateway" - example: xxxx-yyyy-zzzz + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar nullable: true + GET_reserved_stocks_reservedStockId_200_response_data_relationships_stock_item_data: + properties: + type: + description: The resource's type + enum: + - stock_item + id: + description: The resource ID + GET_reserved_stocks_reservedStockId_200_response_data_relationships_stock_item: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/GET_reserved_stocks_reservedStockId_200_response_data_relationships_stock_item_data' + GET_reserved_stocks_reservedStockId_200_response_data_relationships: + properties: + stock_item: + $ref: '#/components/schemas/GET_reserved_stocks_reservedStockId_200_response_data_relationships_stock_item' + sku: + $ref: '#/components/schemas/POST_in_stock_subscriptions_201_response_data_relationships_sku' + stock_reservations: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_stock_reservations' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + GET_reserved_stocks_reservedStockId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - reserved_stocks + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/GET_reserved_stocks_reservedStockId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/GET_reserved_stocks_reservedStockId_200_response_data_relationships' + GET_reserved_stocks_reservedStockId_200_response: + properties: + data: + $ref: '#/components/schemas/GET_reserved_stocks_reservedStockId_200_response_data' + GET_resource_errors_200_response: + properties: + data: + items: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - resource_errors + links: + properties: + self: + description: URL + attributes: + properties: + name: + description: The resource attribute name related to the error. + example: number + nullable: false + code: + description: The error code. + example: BLANK + nullable: false + message: + description: The error message. + example: can't be blank + nullable: false + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier\ + \ to the resource. This can be useful for integrating the resource\ + \ to an external system, like an ERP, a marketing tool, a CRM,\ + \ or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines + the reference code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the + resource. This can be useful for storing additional information + about the resource in a structured format. + example: + foo: bar + nullable: true + relationships: + properties: + resource: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - resource + id: + description: The resource ID + GET_resource_errors_resourceErrorId_200_response_data_attributes: + properties: + name: + description: The resource attribute name related to the error. + example: number + nullable: false + code: + description: The error code. + example: BLANK + nullable: false + message: + description: The error message. + example: can't be blank + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -44127,7 +57109,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -44137,29 +57119,25 @@ components: example: foo: bar nullable: true - GET_refunds_refundId_200_response_data_relationships_reference_capture_data: + GET_resource_errors_resourceErrorId_200_response_data_relationships_resource_data: properties: type: description: The resource's type enum: - - reference_capture + - resource id: description: The resource ID - GET_refunds_refundId_200_response_data_relationships_reference_capture: + GET_resource_errors_resourceErrorId_200_response_data_relationships_resource: properties: links: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: - $ref: '#/components/schemas/GET_refunds_refundId_200_response_data_relationships_reference_capture_data' - GET_refunds_refundId_200_response_data_relationships: + $ref: '#/components/schemas/GET_resource_errors_resourceErrorId_200_response_data_relationships_resource_data' + GET_resource_errors_resourceErrorId_200_response_data_relationships: properties: - order: - $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' - reference_capture: - $ref: '#/components/schemas/GET_refunds_refundId_200_response_data_relationships_reference_capture' - events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' - GET_refunds_refundId_200_response_data: + resource: + $ref: '#/components/schemas/GET_resource_errors_resourceErrorId_200_response_data_relationships_resource' + GET_resource_errors_resourceErrorId_200_response_data: properties: id: description: The resource's id @@ -44167,17 +57145,17 @@ components: type: description: The resource's type enum: - - refunds + - resource_errors links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/GET_refunds_refundId_200_response_data_attributes' + $ref: '#/components/schemas/GET_resource_errors_resourceErrorId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/GET_refunds_refundId_200_response_data_relationships' - GET_refunds_refundId_200_response: + $ref: '#/components/schemas/GET_resource_errors_resourceErrorId_200_response_data_relationships' + GET_resource_errors_resourceErrorId_200_response: properties: data: - $ref: '#/components/schemas/GET_refunds_refundId_200_response_data' + $ref: '#/components/schemas/GET_resource_errors_resourceErrorId_200_response_data' GET_return_line_items_200_response: properties: data: @@ -44204,14 +57182,34 @@ components: description: The code of the associated bundle. example: BUNDLEMM000000FFFFFFXLXX nullable: true + quantity: + description: The return line item quantity. + example: 4 + nullable: false name: description: The name of the line item. - example: Black Men T-shirt with White Logo (XL) + example: Men's Black T-shirt with White Logo (XL) nullable: true - quantity: - description: The line item quantity. - example: 4 + image_url: + description: The image_url of the associated line item. + example: https://img.yourdomain.com/skus/xYZkjABcde.png + nullable: true + total_amount_cents: + description: "Calculated as line item unit amount x returned quantity\ + \ and applied discounts, if any." + example: 8800 + nullable: true + total_amount_float: + description: "The return line item total amount, float. This can\ + \ be useful to track the purchase on thrid party systems, e.g\ + \ Google Analyitcs Enhanced Ecommerce." + example: 88.0 nullable: false + formatted_total_amount: + description: "The return line item total amount, formatted. This\ + \ can be useful to display the amount with currency in you views." + example: "€88,00" + nullable: true return_reason: description: Set of key-value pairs that you can use to add details about return reason. @@ -44239,7 +57237,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -44286,7 +57284,7 @@ components: POST_return_line_items_201_response_data_attributes: properties: quantity: - description: The line item quantity. + description: The return line item quantity. example: 4 return_reason: description: Set of key-value pairs that you can use to add details about @@ -44300,7 +57298,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -44310,24 +57308,10 @@ components: foo: bar required: - quantity - POST_return_line_items_201_response_data_relationships_return_data: - properties: - type: - description: The resource's type - enum: - - return - id: - description: The resource ID - POST_return_line_items_201_response_data_relationships_return: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/POST_return_line_items_201_response_data_relationships_return_data' POST_return_line_items_201_response_data_relationships: properties: return: - $ref: '#/components/schemas/POST_return_line_items_201_response_data_relationships_return' + $ref: '#/components/schemas/GET_captures_captureId_200_response_data_relationships_return' line_item: $ref: '#/components/schemas/POST_line_item_options_201_response_data_relationships_line_item' POST_return_line_items_201_response_data: @@ -44359,14 +57343,34 @@ components: description: The code of the associated bundle. example: BUNDLEMM000000FFFFFFXLXX nullable: true + quantity: + description: The return line item quantity. + example: 4 + nullable: false name: description: The name of the line item. - example: Black Men T-shirt with White Logo (XL) + example: Men's Black T-shirt with White Logo (XL) nullable: true - quantity: - description: The line item quantity. - example: 4 + image_url: + description: The image_url of the associated line item. + example: https://img.yourdomain.com/skus/xYZkjABcde.png + nullable: true + total_amount_cents: + description: "Calculated as line item unit amount x returned quantity and\ + \ applied discounts, if any." + example: 8800 + nullable: true + total_amount_float: + description: "The return line item total amount, float. This can be useful\ + \ to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced\ + \ Ecommerce." + example: 88.0 nullable: false + formatted_total_amount: + description: "The return line item total amount, formatted. This can be\ + \ useful to display the amount with currency in you views." + example: "€88,00" + nullable: true return_reason: description: Set of key-value pairs that you can use to add details about return reason. @@ -44393,7 +57397,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -44425,12 +57429,13 @@ components: PATCH_return_line_items_returnLineItemId_200_response_data_attributes: properties: quantity: - description: The line item quantity. + description: The return line item quantity. example: 4 nullable: false _restock: description: Send this attribute if you want to restock the line item. example: true + nullable: false return_reason: description: Set of key-value pairs that you can use to add details about return reason. @@ -44445,7 +57450,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -44493,12 +57498,13 @@ components: attributes: properties: number: - description: Unique identifier for the return + description: Unique identifier for the return. example: '#1234/R/001' nullable: true status: - description: "The return status, one of 'draft', 'requested',\ - \ 'approved', 'cancelled', 'shipped', 'rejected' or 'received'" + description: "The return status. One of 'draft' (default), 'requested',\ + \ 'approved', 'cancelled', 'shipped', 'rejected', 'received',\ + \ or 'refunded'." enum: - draft - requested @@ -44507,6 +57513,7 @@ components: - shipped - rejected - received + - refunded example: draft nullable: false customer_email: @@ -44538,10 +57545,29 @@ components: description: Time at which the return was received. example: 2018-01-01T12:00:00.000Z nullable: true + refunded_at: + description: Time at which the return was refunded. + example: 2018-01-01T12:00:00.000Z + nullable: true archived_at: description: Time at which the resource has been archived. example: 2018-01-01T12:00:00.000Z nullable: true + estimated_refund_amount_cents: + description: "The amount to be refunded, estimated by associated\ + \ return line items, in cents." + example: 500 + nullable: true + estimated_refund_amount_float: + description: "The amount to be refunded, estimated by associated\ + \ return line items, float." + example: 5.0 + nullable: true + formatted_estimated_refund_amount: + description: "The amount to be refunded, estimated by associated\ + \ return line items, formatted." + example: "€5,00" + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -44559,7 +57585,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -44651,6 +57677,38 @@ components: - destination_address id: description: The resource ID + reference_capture: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - reference_capture + id: + description: The resource ID + reference_refund: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - reference_refund + id: + description: The resource ID return_line_items: properties: links: @@ -44683,6 +57741,22 @@ components: - attachments id: description: The resource ID + resource_errors: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - resource_errors + id: + description: The resource ID events: properties: links: @@ -44699,6 +57773,38 @@ components: - events id: description: The resource ID + tags: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - tags + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_returns_201_response_data_relationships_origin_address_data: properties: type: @@ -44727,20 +57833,20 @@ components: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: $ref: '#/components/schemas/POST_returns_201_response_data_relationships_destination_address_data' - POST_returns_201_response_data_relationships_return_line_items_data: + POST_returns_201_response_data_relationships_reference_refund_data: properties: type: description: The resource's type enum: - - return_line_items + - reference_refund id: description: The resource ID - POST_returns_201_response_data_relationships_return_line_items: + POST_returns_201_response_data_relationships_reference_refund: properties: links: $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' data: - $ref: '#/components/schemas/POST_returns_201_response_data_relationships_return_line_items_data' + $ref: '#/components/schemas/POST_returns_201_response_data_relationships_reference_refund_data' POST_returns_201_response_data_relationships: properties: order: @@ -44753,12 +57859,22 @@ components: $ref: '#/components/schemas/POST_returns_201_response_data_relationships_origin_address' destination_address: $ref: '#/components/schemas/POST_returns_201_response_data_relationships_destination_address' + reference_capture: + $ref: '#/components/schemas/GET_refunds_refundId_200_response_data_relationships_reference_capture' + reference_refund: + $ref: '#/components/schemas/POST_returns_201_response_data_relationships_reference_refund' return_line_items: - $ref: '#/components/schemas/POST_returns_201_response_data_relationships_return_line_items' + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_return_line_items' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + resource_errors: + $ref: '#/components/schemas/POST_orders_201_response_data_relationships_resource_errors' events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_returns_201_response_data: properties: id: @@ -44781,12 +57897,12 @@ components: GET_returns_returnId_200_response_data_attributes: properties: number: - description: Unique identifier for the return + description: Unique identifier for the return. example: '#1234/R/001' nullable: true status: - description: "The return status, one of 'draft', 'requested', 'approved',\ - \ 'cancelled', 'shipped', 'rejected' or 'received'" + description: "The return status. One of 'draft' (default), 'requested',\ + \ 'approved', 'cancelled', 'shipped', 'rejected', 'received', or 'refunded'." enum: - draft - requested @@ -44795,6 +57911,7 @@ components: - shipped - rejected - received + - refunded example: draft nullable: false customer_email: @@ -44826,10 +57943,29 @@ components: description: Time at which the return was received. example: 2018-01-01T12:00:00.000Z nullable: true + refunded_at: + description: Time at which the return was refunded. + example: 2018-01-01T12:00:00.000Z + nullable: true archived_at: description: Time at which the resource has been archived. example: 2018-01-01T12:00:00.000Z nullable: true + estimated_refund_amount_cents: + description: "The amount to be refunded, estimated by associated return\ + \ line items, in cents." + example: 500 + nullable: true + estimated_refund_amount_float: + description: "The amount to be refunded, estimated by associated return\ + \ line items, float." + example: 5.0 + nullable: true + formatted_estimated_refund_amount: + description: "The amount to be refunded, estimated by associated return\ + \ line items, formatted." + example: "€5,00" + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -44846,7 +57982,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -44880,31 +58016,49 @@ components: _request: description: Send this attribute if you want to activate this return. example: true + nullable: false _approve: description: Send this attribute if you want to mark this return as approved. example: true + nullable: false _cancel: description: Send this attribute if you want to mark this return as cancelled. example: true + nullable: false _ship: description: Send this attribute if you want to mark this return as shipped. example: true + nullable: false _reject: description: Send this attribute if you want to mark this return as rejected. example: true + nullable: false _receive: description: Send this attribute if you want to mark this return as received. example: true + nullable: false _restock: description: Send this attribute if you want to restock all of the return line items. example: true + nullable: false _archive: description: Send this attribute if you want to archive the return. example: true + nullable: false _unarchive: description: Send this attribute if you want to unarchive the return. example: true + nullable: false + _refund: + description: Send this attribute if you want to create a refund for this + return. + example: true + nullable: false + _refund_amount_cents: + description: Send this attribute as a value in cents to specify the amount + to be refunded. + example: 500 reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -44913,7 +58067,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -44981,7 +58135,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -44991,6 +58145,15 @@ components: example: foo: bar nullable: true + token: + description: Activation code generated from the Satispay Dashboard. + example: 623ECX + nullable: false + key_id: + description: The Satispay API key auto generated basing on activation + code. + example: xxxx-yyyy-zzzz + nullable: false webhook_endpoint_url: description: "The gateway webhook URL, generated automatically." example: https://core.commercelayer.co/webhook_callbacks/satispay_gateways/xxxxx @@ -45013,6 +58176,22 @@ components: - payment_methods id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID satispay_payments: properties: links: @@ -45029,6 +58208,32 @@ components: - satispay_payments id: description: The resource ID + POST_satispay_gateways_201_response_data_attributes: + properties: + name: + description: The payment gateway's internal name. + example: US payment gateway + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + token: + description: Activation code generated from the Satispay Dashboard. + example: 623ECX + required: + - name + - token POST_satispay_gateways_201_response_data_relationships_satispay_payments_data: properties: type: @@ -45047,6 +58252,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/POST_adyen_gateways_201_response_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' satispay_payments: $ref: '#/components/schemas/POST_satispay_gateways_201_response_data_relationships_satispay_payments' POST_satispay_gateways_201_response_data: @@ -45061,7 +58268,7 @@ components: links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/POST_manual_gateways_201_response_data_attributes' + $ref: '#/components/schemas/POST_satispay_gateways_201_response_data_attributes' relationships: $ref: '#/components/schemas/POST_satispay_gateways_201_response_data_relationships' POST_satispay_gateways_201_response: @@ -45090,7 +58297,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -45100,6 +58307,14 @@ components: example: foo: bar nullable: true + token: + description: Activation code generated from the Satispay Dashboard. + example: 623ECX + nullable: false + key_id: + description: The Satispay API key auto generated basing on activation code. + example: xxxx-yyyy-zzzz + nullable: false webhook_endpoint_url: description: "The gateway webhook URL, generated automatically." example: https://core.commercelayer.co/webhook_callbacks/satispay_gateways/xxxxx @@ -45160,24 +58375,41 @@ components: description: URL attributes: properties: - token: - description: Activation code generated from the Satispay Dashboard. - example: 623ECX - nullable: true - key_id: - description: The Satispay API key auto generated basing on activation - code. - example: xxxx-yyyy-zzzz - nullable: false payment_id: description: The payment unique identifier. example: xxxx-yyyy-zzzz nullable: true + flow: + description: "The Satispay payment flow, inspect gateway API details\ + \ for more information." + example: MATCH_CODE + nullable: true + status: + description: The Satispay payment status. + example: PENDING + nullable: true redirect_url: description: The url to redirect the customer after the payment flow is completed. example: http://commercelayer.dev/satispay/redirect nullable: true + payment_url: + description: Redirect url to the payment page. + example: "https://online.satispay.com/pay/xxxx-yyyy-zzzz?redirect_url={redirect_url}" + nullable: true + payment_response: + description: "The Satispay payment response, used to fetch internal\ + \ data." + example: + foo: bar + nullable: true + payment_instrument: + description: Information about the payment instrument used in + the transaction. + example: + issuer: cl bank + card_type: visa + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -45195,7 +58427,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -45211,11 +58443,14 @@ components: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' payment_gateway: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_payment_gateway' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_satispay_payments_201_response_data_attributes: properties: - token: - description: Activation code generated from the Satispay Dashboard. - example: 623ECX + flow: + description: "The Satispay payment flow, inspect gateway API details for\ + \ more information." + example: MATCH_CODE redirect_url: description: The url to redirect the customer after the payment flow is completed. @@ -45227,7 +58462,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -45256,23 +58491,39 @@ components: $ref: '#/components/schemas/POST_satispay_payments_201_response_data' GET_satispay_payments_satispayPaymentId_200_response_data_attributes: properties: - token: - description: Activation code generated from the Satispay Dashboard. - example: 623ECX - nullable: true - key_id: - description: The Satispay API key auto generated basing on activation code. - example: xxxx-yyyy-zzzz - nullable: false payment_id: description: The payment unique identifier. example: xxxx-yyyy-zzzz nullable: true + flow: + description: "The Satispay payment flow, inspect gateway API details for\ + \ more information." + example: MATCH_CODE + nullable: true + status: + description: The Satispay payment status. + example: PENDING + nullable: true redirect_url: description: The url to redirect the customer after the payment flow is completed. example: http://commercelayer.dev/satispay/redirect nullable: true + payment_url: + description: Redirect url to the payment page. + example: "https://online.satispay.com/pay/xxxx-yyyy-zzzz?redirect_url={redirect_url}" + nullable: true + payment_response: + description: "The Satispay payment response, used to fetch internal data." + example: + foo: bar + nullable: true + payment_instrument: + description: Information about the payment instrument used in the transaction. + example: + issuer: cl bank + card_type: visa + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -45289,7 +58540,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -45329,6 +58580,7 @@ components: description: "Send this attribute if you want to refresh all the pending\ \ transactions, can be used as webhooks fallback logic." example: true + nullable: false reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -45337,7 +58589,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -45385,13 +58637,14 @@ components: attributes: properties: number: - description: Unique identifier for the shipment + description: Unique identifier for the shipment. Cannot be passed + by sales channels. example: '#1234/S/001' - nullable: true + nullable: false status: - description: "The shipment status, one of 'draft', 'upcoming',\ + description: "The shipment status. One of 'draft' (default), 'upcoming',\ \ 'cancelled', 'on_hold', 'picking', 'packing', 'ready_to_ship',\ - \ or 'shipped'" + \ 'shipped', or 'delivered'." enum: - draft - upcoming @@ -45401,6 +58654,7 @@ components: - packing - ready_to_ship - shipped + - delivered example: draft nullable: false currency_code: @@ -45483,6 +58737,26 @@ components: failed. example: 2018-01-01T12:00:00.000Z nullable: true + on_hold_at: + description: Time at which the shipment was put on hold. + example: 2018-01-01T12:00:00.000Z + nullable: true + picking_at: + description: Time at which the shipment was picking. + example: 2018-01-01T12:00:00.000Z + nullable: true + packing_at: + description: Time at which the shipment was packing. + example: 2018-01-01T12:00:00.000Z + nullable: true + ready_to_ship_at: + description: Time at which the shipment was ready to ship. + example: 2018-01-01T12:00:00.000Z + nullable: true + shipped_at: + description: Time at which the shipment was shipped. + example: 2018-01-01T12:00:00.000Z + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -45500,7 +58774,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -45544,6 +58818,22 @@ components: - shipping_category id: description: The resource ID + inventory_stock_location: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - inventory_stock_location + id: + description: The resource ID stock_location: properties: links: @@ -45624,7 +58914,7 @@ components: - delivery_lead_time id: description: The resource ID - shipment_line_items: + stock_line_items: properties: links: properties: @@ -45637,10 +58927,10 @@ components: type: description: The resource's type enum: - - shipment_line_items + - stock_line_items id: description: The resource ID - stock_line_items: + stock_transfers: properties: links: properties: @@ -45653,10 +58943,10 @@ components: type: description: The resource's type enum: - - stock_line_items + - stock_transfers id: description: The resource ID - stock_transfers: + line_items: properties: links: properties: @@ -45669,7 +58959,7 @@ components: type: description: The resource's type enum: - - stock_transfers + - line_items id: description: The resource ID available_shipping_methods: @@ -45752,15 +59042,176 @@ components: - events id: description: The resource ID + tags: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - tags + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID + POST_shipments_201_response_data_relationships_shipping_category_data: + properties: + type: + description: The resource's type + enum: + - shipping_category + id: + description: The resource ID + POST_shipments_201_response_data_relationships_shipping_category: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_shipments_201_response_data_relationships_shipping_category_data' + POST_shipments_201_response_data_relationships_inventory_stock_location_data: + properties: + type: + description: The resource's type + enum: + - inventory_stock_location + id: + description: The resource ID + POST_shipments_201_response_data_relationships_inventory_stock_location: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_shipments_201_response_data_relationships_inventory_stock_location_data' + POST_shipments_201_response_data_relationships_delivery_lead_time_data: + properties: + type: + description: The resource's type + enum: + - delivery_lead_time + id: + description: The resource ID + POST_shipments_201_response_data_relationships_delivery_lead_time: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_shipments_201_response_data_relationships_delivery_lead_time_data' + POST_shipments_201_response_data_relationships_available_shipping_methods_data: + properties: + type: + description: The resource's type + enum: + - available_shipping_methods + id: + description: The resource ID + POST_shipments_201_response_data_relationships_available_shipping_methods: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_shipments_201_response_data_relationships_available_shipping_methods_data' + POST_shipments_201_response_data_relationships_carrier_accounts_data: + properties: + type: + description: The resource's type + enum: + - carrier_accounts + id: + description: The resource ID + POST_shipments_201_response_data_relationships_carrier_accounts: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_shipments_201_response_data_relationships_carrier_accounts_data' + POST_shipments_201_response_data_relationships: + properties: + order: + $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' + shipping_category: + $ref: '#/components/schemas/POST_shipments_201_response_data_relationships_shipping_category' + inventory_stock_location: + $ref: '#/components/schemas/POST_shipments_201_response_data_relationships_inventory_stock_location' + stock_location: + $ref: '#/components/schemas/POST_delivery_lead_times_201_response_data_relationships_stock_location' + origin_address: + $ref: '#/components/schemas/POST_returns_201_response_data_relationships_origin_address' + shipping_address: + $ref: '#/components/schemas/POST_orders_201_response_data_relationships_shipping_address' + shipping_method: + $ref: '#/components/schemas/POST_delivery_lead_times_201_response_data_relationships_shipping_method' + delivery_lead_time: + $ref: '#/components/schemas/POST_shipments_201_response_data_relationships_delivery_lead_time' + stock_line_items: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_stock_line_items' + stock_transfers: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_stock_transfers' + line_items: + $ref: '#/components/schemas/POST_orders_201_response_data_relationships_line_items' + available_shipping_methods: + $ref: '#/components/schemas/POST_shipments_201_response_data_relationships_available_shipping_methods' + carrier_accounts: + $ref: '#/components/schemas/POST_shipments_201_response_data_relationships_carrier_accounts' + parcels: + $ref: '#/components/schemas/POST_packages_201_response_data_relationships_parcels' + attachments: + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + POST_shipments_201_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - shipments + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/POST_adyen_payments_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_shipments_201_response_data_relationships' + POST_shipments_201_response: + properties: + data: + $ref: '#/components/schemas/POST_shipments_201_response_data' GET_shipments_shipmentId_200_response_data_attributes: properties: number: - description: Unique identifier for the shipment + description: Unique identifier for the shipment. Cannot be passed by sales + channels. example: '#1234/S/001' - nullable: true + nullable: false status: - description: "The shipment status, one of 'draft', 'upcoming', 'cancelled',\ - \ 'on_hold', 'picking', 'packing', 'ready_to_ship', or 'shipped'" + description: "The shipment status. One of 'draft' (default), 'upcoming',\ + \ 'cancelled', 'on_hold', 'picking', 'packing', 'ready_to_ship', 'shipped',\ + \ or 'delivered'." enum: - draft - upcoming @@ -45770,6 +59221,7 @@ components: - packing - ready_to_ship - shipped + - delivered example: draft nullable: false currency_code: @@ -45846,6 +59298,26 @@ components: description: Time at which the purchasing of the shipping rate failed. example: 2018-01-01T12:00:00.000Z nullable: true + on_hold_at: + description: Time at which the shipment was put on hold. + example: 2018-01-01T12:00:00.000Z + nullable: true + picking_at: + description: Time at which the shipment was picking. + example: 2018-01-01T12:00:00.000Z + nullable: true + packing_at: + description: Time at which the shipment was packing. + example: 2018-01-01T12:00:00.000Z + nullable: true + ready_to_ship_at: + description: Time at which the shipment was ready to ship. + example: 2018-01-01T12:00:00.000Z + nullable: true + shipped_at: + description: Time at which the shipment was shipped. + example: 2018-01-01T12:00:00.000Z + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -45862,7 +59334,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -45872,94 +59344,6 @@ components: example: foo: bar nullable: true - GET_shipments_shipmentId_200_response_data_relationships_shipping_category_data: - properties: - type: - description: The resource's type - enum: - - shipping_category - id: - description: The resource ID - GET_shipments_shipmentId_200_response_data_relationships_shipping_category: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/GET_shipments_shipmentId_200_response_data_relationships_shipping_category_data' - GET_shipments_shipmentId_200_response_data_relationships_delivery_lead_time_data: - properties: - type: - description: The resource's type - enum: - - delivery_lead_time - id: - description: The resource ID - GET_shipments_shipmentId_200_response_data_relationships_delivery_lead_time: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/GET_shipments_shipmentId_200_response_data_relationships_delivery_lead_time_data' - GET_shipments_shipmentId_200_response_data_relationships_available_shipping_methods_data: - properties: - type: - description: The resource's type - enum: - - available_shipping_methods - id: - description: The resource ID - GET_shipments_shipmentId_200_response_data_relationships_available_shipping_methods: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/GET_shipments_shipmentId_200_response_data_relationships_available_shipping_methods_data' - GET_shipments_shipmentId_200_response_data_relationships_carrier_accounts_data: - properties: - type: - description: The resource's type - enum: - - carrier_accounts - id: - description: The resource ID - GET_shipments_shipmentId_200_response_data_relationships_carrier_accounts: - properties: - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' - data: - $ref: '#/components/schemas/GET_shipments_shipmentId_200_response_data_relationships_carrier_accounts_data' - GET_shipments_shipmentId_200_response_data_relationships: - properties: - order: - $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' - shipping_category: - $ref: '#/components/schemas/GET_shipments_shipmentId_200_response_data_relationships_shipping_category' - stock_location: - $ref: '#/components/schemas/POST_delivery_lead_times_201_response_data_relationships_stock_location' - origin_address: - $ref: '#/components/schemas/POST_returns_201_response_data_relationships_origin_address' - shipping_address: - $ref: '#/components/schemas/POST_orders_201_response_data_relationships_shipping_address' - shipping_method: - $ref: '#/components/schemas/POST_delivery_lead_times_201_response_data_relationships_shipping_method' - delivery_lead_time: - $ref: '#/components/schemas/GET_shipments_shipmentId_200_response_data_relationships_delivery_lead_time' - shipment_line_items: - $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_shipment_line_items' - stock_line_items: - $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_stock_line_items' - stock_transfers: - $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_stock_transfers' - available_shipping_methods: - $ref: '#/components/schemas/GET_shipments_shipmentId_200_response_data_relationships_available_shipping_methods' - carrier_accounts: - $ref: '#/components/schemas/GET_shipments_shipmentId_200_response_data_relationships_carrier_accounts' - parcels: - $ref: '#/components/schemas/POST_packages_201_response_data_relationships_parcels' - attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' - events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' GET_shipments_shipmentId_200_response_data: properties: id: @@ -45974,33 +59358,77 @@ components: attributes: $ref: '#/components/schemas/GET_shipments_shipmentId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/GET_shipments_shipmentId_200_response_data_relationships' + $ref: '#/components/schemas/POST_shipments_201_response_data_relationships' GET_shipments_shipmentId_200_response: properties: data: $ref: '#/components/schemas/GET_shipments_shipmentId_200_response_data' PATCH_shipments_shipmentId_200_response_data_attributes: properties: + number: + description: Unique identifier for the shipment. Cannot be passed by sales + channels. + example: '#1234/S/001' + nullable: false + _upcoming: + description: Send this attribute if you want to mark this shipment as upcoming. + Cannot be passed by sales channels. + example: true + nullable: false + _cancel: + description: Send this attribute if you want to mark this shipment as cancelled + (unless already shipped or delivered). Cannot be passed by sales channels. + example: true + nullable: false _on_hold: description: Send this attribute if you want to put this shipment on hold. example: true + nullable: false _picking: description: Send this attribute if you want to start picking this shipment. example: true + nullable: false _packing: description: Send this attribute if you want to start packing this shipment. example: true + nullable: false _ready_to_ship: description: Send this attribute if you want to mark this shipment as ready to ship. example: true + nullable: false _ship: description: Send this attribute if you want to mark this shipment as shipped. example: true + nullable: false + _deliver: + description: Send this attribute if you want to mark this shipment as delivered. + example: true + nullable: false + _reserve_stock: + description: Send this attribute if you want to automatically reserve the + stock for each of the associated stock line item. Can be done only when + fulfillment is in progress. Cannot be passed by sales channels. + example: true + nullable: false + _release_stock: + description: Send this attribute if you want to automatically destroy the + stock reservations for each of the associated stock line item. Can be + done only when fulfillment is in progress. Cannot be passed by sales channels. + example: true + nullable: false + _decrement_stock: + description: Send this attribute if you want to automatically decrement + and release the stock for each of the associated stock line item. Can + be done only when fulfillment is in progress. Cannot be passed by sales + channels. + example: true + nullable: false _get_rates: description: Send this attribute if you want get the shipping rates from the associated carrier accounts. example: true + nullable: false selected_rate_id: description: The selected purchase rate from the available shipping rates. example: rate_f89e4663c3ed47ee94d37763f6d21d54 @@ -46009,6 +59437,7 @@ components: description: Send this attribute if you want to purchase this shipment with the selected rate. example: true + nullable: false reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -46017,7 +59446,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -46041,7 +59470,7 @@ components: attributes: $ref: '#/components/schemas/PATCH_shipments_shipmentId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/GET_shipments_shipmentId_200_response_data_relationships' + $ref: '#/components/schemas/POST_shipments_201_response_data_relationships' PATCH_shipments_shipmentId_200_response: properties: data: @@ -46068,6 +59497,11 @@ components: description: The shipping category name. example: Merchandise nullable: false + code: + description: A string that you can use to identify the shipping + category (must be unique within the environment). + example: europe1 + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -46085,7 +59519,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -46129,11 +59563,31 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_shipping_categories_201_response_data_attributes: properties: name: description: The shipping category name. example: Merchandise + code: + description: A string that you can use to identify the shipping category + (must be unique within the environment). + example: europe1 reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -46141,7 +59595,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -46156,7 +59610,9 @@ components: skus: $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_skus' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_shipping_categories_201_response_data: properties: id: @@ -46182,6 +59638,11 @@ components: description: The shipping category name. example: Merchandise nullable: false + code: + description: A string that you can use to identify the shipping category + (must be unique within the environment). + example: europe1 + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -46198,7 +59659,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -46233,6 +59694,11 @@ components: description: The shipping category name. example: Merchandise nullable: false + code: + description: A string that you can use to identify the shipping category + (must be unique within the environment). + example: europe1 + nullable: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -46241,7 +59707,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -46289,9 +59755,15 @@ components: attributes: properties: name: - description: The shipping method tier's name + description: The shipping method tier's name. example: Light shipping under 3kg nullable: false + type: + description: The shipping method tier's type. + enum: + - shipping_weight_tiers + example: shipping_weight_tiers + nullable: false up_to: description: The tier upper limit. When 'null' it means infinity (useful to have an always matching tier). @@ -46326,7 +59798,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -46370,12 +59842,34 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID GET_shipping_method_tiers_shippingMethodTierId_200_response_data_attributes: properties: name: - description: The shipping method tier's name + description: The shipping method tier's name. example: Light shipping under 3kg nullable: false + type: + description: The shipping method tier's type. + enum: + - shipping_weight_tiers + example: shipping_weight_tiers + nullable: false up_to: description: The tier upper limit. When 'null' it means infinity (useful to have an always matching tier). @@ -46409,7 +59903,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -46424,7 +59918,9 @@ components: shipping_method: $ref: '#/components/schemas/POST_delivery_lead_times_201_response_data_relationships_shipping_method' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' GET_shipping_method_tiers_shippingMethodTierId_200_response_data: properties: id: @@ -46463,11 +59959,16 @@ components: attributes: properties: name: - description: The shipping method's name + description: The shipping method's name. example: Standard shipping nullable: false scheme: - description: "The shipping method's scheme, one of 'flat' or 'weight_tiered'." + description: "The shipping method's scheme. One of 'flat', 'weight_tiered',\ + \ or 'external'." + enum: + - flat + - weight_tiered + - external example: flat nullable: true currency_code: @@ -46475,9 +59976,9 @@ components: by the ISO 4217 standard. example: EUR nullable: true - disabled_at: - description: Time at which the shipping method was disabled. - example: 2018-01-01T12:00:00.000Z + external_prices_url: + description: The URL used to overwrite prices by an external source. + example: https://external_prices.yourbrand.com nullable: true price_amount_cents: description: "The price of this shipping method, in cents." @@ -46506,6 +60007,12 @@ components: \ this value, formatted." example: "€99,00" nullable: true + use_subtotal: + description: "Send this attribute if you want to compare the free\ + \ over amount with order's subtotal (excluding discounts, if\ + \ any)." + example: true + nullable: true price_amount_for_shipment_cents: description: "The calculated price (zero or price amount) when\ \ associated to a shipment, in cents." @@ -46532,9 +60039,30 @@ components: example: 300.0 nullable: true unit_of_weight: - description: "Can be one of 'gr', 'lb', or 'oz'" + description: "The unit of weight. One of 'gr', 'oz', or 'lb'." + enum: + - gr + - oz + - lb example: gr nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true + circuit_state: + description: "The circuit breaker state, by default it is 'closed'.\ + \ It can become 'open' once the number of consecutive failures\ + \ overlaps the specified threshold, in such case no further\ + \ calls to the failing callback are made." + example: closed + nullable: true + circuit_failure_count: + description: "The number of consecutive failures recorded by the\ + \ circuit breaker associated to this resource, will be reset\ + \ on first successful call to callback." + example: 5 + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -46552,7 +60080,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -46692,18 +60220,42 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_shipping_methods_201_response_data_attributes: properties: name: - description: The shipping method's name + description: The shipping method's name. example: Standard shipping scheme: - description: "The shipping method's scheme, one of 'flat' or 'weight_tiered'." + description: "The shipping method's scheme. One of 'flat', 'weight_tiered',\ + \ or 'external'." + enum: + - flat + - weight_tiered + - external example: flat currency_code: description: The international 3-letter currency code as defined by the ISO 4217 standard. example: EUR + external_prices_url: + description: The URL used to overwrite prices by an external source. + example: https://external_prices.yourbrand.com price_amount_cents: description: "The price of this shipping method, in cents." example: 1000 @@ -46711,6 +60263,10 @@ components: description: "Apply free shipping if the order amount is over this value,\ \ in cents." example: 9900 + use_subtotal: + description: "Send this attribute if you want to compare the free over amount\ + \ with order's subtotal (excluding discounts, if any)." + example: true min_weight: description: The minimum weight for which this shipping method is available. example: 3.0 @@ -46718,8 +60274,18 @@ components: description: The maximum weight for which this shipping method is available. example: 300.0 unit_of_weight: - description: "Can be one of 'gr', 'lb', or 'oz'" + description: "The unit of weight. One of 'gr', 'oz', or 'lb'." + enum: + - gr + - oz + - lb example: gr + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -46727,7 +60293,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -46801,7 +60367,7 @@ components: shipping_zone: $ref: '#/components/schemas/POST_shipping_methods_201_response_data_relationships_shipping_zone' shipping_category: - $ref: '#/components/schemas/GET_shipments_shipmentId_200_response_data_relationships_shipping_category' + $ref: '#/components/schemas/POST_shipments_201_response_data_relationships_shipping_category' stock_location: $ref: '#/components/schemas/POST_delivery_lead_times_201_response_data_relationships_stock_location' delivery_lead_time_for_shipment: @@ -46811,7 +60377,9 @@ components: shipping_weight_tiers: $ref: '#/components/schemas/POST_shipping_methods_201_response_data_relationships_shipping_weight_tiers' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_shipping_methods_201_response_data: properties: id: @@ -46834,11 +60402,16 @@ components: GET_shipping_methods_shippingMethodId_200_response_data_attributes: properties: name: - description: The shipping method's name + description: The shipping method's name. example: Standard shipping nullable: false scheme: - description: "The shipping method's scheme, one of 'flat' or 'weight_tiered'." + description: "The shipping method's scheme. One of 'flat', 'weight_tiered',\ + \ or 'external'." + enum: + - flat + - weight_tiered + - external example: flat nullable: true currency_code: @@ -46846,9 +60419,9 @@ components: ISO 4217 standard. example: EUR nullable: true - disabled_at: - description: Time at which the shipping method was disabled. - example: 2018-01-01T12:00:00.000Z + external_prices_url: + description: The URL used to overwrite prices by an external source. + example: https://external_prices.yourbrand.com nullable: true price_amount_cents: description: "The price of this shipping method, in cents." @@ -46877,6 +60450,11 @@ components: \ formatted." example: "€99,00" nullable: true + use_subtotal: + description: "Send this attribute if you want to compare the free over amount\ + \ with order's subtotal (excluding discounts, if any)." + example: true + nullable: true price_amount_for_shipment_cents: description: "The calculated price (zero or price amount) when associated\ \ to a shipment, in cents." @@ -46901,9 +60479,30 @@ components: example: 300.0 nullable: true unit_of_weight: - description: "Can be one of 'gr', 'lb', or 'oz'" + description: "The unit of weight. One of 'gr', 'oz', or 'lb'." + enum: + - gr + - oz + - lb example: gr nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true + circuit_state: + description: "The circuit breaker state, by default it is 'closed'. It can\ + \ become 'open' once the number of consecutive failures overlaps the specified\ + \ threshold, in such case no further calls to the failing callback are\ + \ made." + example: closed + nullable: true + circuit_failure_count: + description: "The number of consecutive failures recorded by the circuit\ + \ breaker associated to this resource, will be reset on first successful\ + \ call to callback." + example: 5 + nullable: true created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -46920,7 +60519,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -46952,11 +60551,16 @@ components: PATCH_shipping_methods_shippingMethodId_200_response_data_attributes: properties: name: - description: The shipping method's name + description: The shipping method's name. example: Standard shipping nullable: false scheme: - description: "The shipping method's scheme, one of 'flat' or 'weight_tiered'." + description: "The shipping method's scheme. One of 'flat', 'weight_tiered',\ + \ or 'external'." + enum: + - flat + - weight_tiered + - external example: flat nullable: true currency_code: @@ -46964,16 +60568,10 @@ components: ISO 4217 standard. example: EUR nullable: true - _disable: - description: Send this attribute if you want to mark the shipping method - as disabled. - example: true - nullable: false - _enable: - description: Send this attribute if you want to mark the shipping method - as enabled. - example: true - nullable: false + external_prices_url: + description: The URL used to overwrite prices by an external source. + example: https://external_prices.yourbrand.com + nullable: true price_amount_cents: description: "The price of this shipping method, in cents." example: 1000 @@ -46983,6 +60581,11 @@ components: \ in cents." example: 9900 nullable: true + use_subtotal: + description: "Send this attribute if you want to compare the free over amount\ + \ with order's subtotal (excluding discounts, if any)." + example: true + nullable: false min_weight: description: The minimum weight for which this shipping method is available. example: 3.0 @@ -46992,9 +60595,27 @@ components: example: 300.0 nullable: true unit_of_weight: - description: "Can be one of 'gr', 'lb', or 'oz'" + description: "The unit of weight. One of 'gr', 'oz', or 'lb'." + enum: + - gr + - oz + - lb example: gr nullable: true + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + nullable: false + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true + nullable: false + _reset_circuit: + description: Send this attribute if you want to reset the circuit breaker + associated to this resource to 'closed' state and zero failures count. + Cannot be passed by sales channels. + example: true + nullable: false reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -47003,7 +60624,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -47051,9 +60672,15 @@ components: attributes: properties: name: - description: The shipping method tier's name + description: The shipping method tier's name. example: Light shipping under 3kg nullable: false + type: + description: The shipping method tier's type. + enum: + - shipping_weight_tiers + example: shipping_weight_tiers + nullable: false up_to: description: The tier upper limit. When 'null' it means infinity (useful to have an always matching tier). @@ -47088,7 +60715,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -47103,11 +60730,13 @@ components: shipping_method: $ref: '#/components/schemas/POST_delivery_lead_times_201_response_data_relationships_shipping_method' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_shipping_weight_tiers_201_response_data_attributes: properties: name: - description: The shipping method tier's name + description: The shipping method tier's name. example: Light shipping under 3kg up_to: description: The tier upper limit. When 'null' it means infinity (useful @@ -47123,7 +60752,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -47175,7 +60804,7 @@ components: PATCH_shipping_weight_tiers_shippingWeightTierId_200_response_data_attributes: properties: name: - description: The shipping method tier's name + description: The shipping method tier's name. example: Light shipping under 3kg nullable: false up_to: @@ -47195,7 +60824,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -47293,7 +60922,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -47321,6 +60950,22 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_shipping_zones_201_response_data_attributes: properties: name: @@ -47357,7 +61002,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -47370,7 +61015,9 @@ components: POST_shipping_zones_201_response_data_relationships: properties: attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_shipping_zones_201_response_data: properties: id: @@ -47442,7 +61089,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -47515,7 +61162,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -47591,7 +61238,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -47635,6 +61282,22 @@ components: - sku id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_sku_list_items_201_response_data_attributes: properties: position: @@ -47653,7 +61316,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -47667,6 +61330,8 @@ components: $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_sku_list' sku: $ref: '#/components/schemas/POST_in_stock_subscriptions_201_response_data_relationships_sku' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_sku_list_items_201_response_data: properties: id: @@ -47716,7 +61381,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -47767,7 +61432,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -47814,6 +61479,15 @@ components: description: URL attributes: properties: + type: + description: The promotion rule's type. + enum: + - order_amount_promotion_rules + - sku_list_promotion_rules + - coupon_codes_promotion_rules + - custom_promotion_rules + example: coupon_codes_promotion_rules + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -47831,7 +61505,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -47871,6 +61545,22 @@ components: - promotion id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID sku_list: properties: links: @@ -47912,7 +61602,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -47933,6 +61623,8 @@ components: properties: promotion: $ref: '#/components/schemas/POST_coupon_codes_promotion_rules_201_response_data_relationships_promotion' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' sku_list: $ref: '#/components/schemas/POST_bundles_201_response_data_relationships_sku_list' skus: @@ -47958,6 +61650,15 @@ components: $ref: '#/components/schemas/POST_sku_list_promotion_rules_201_response_data' GET_sku_list_promotion_rules_skuListPromotionRuleId_200_response_data_attributes: properties: + type: + description: The promotion rule's type. + enum: + - order_amount_promotion_rules + - sku_list_promotion_rules + - coupon_codes_promotion_rules + - custom_promotion_rules + example: coupon_codes_promotion_rules + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -47974,7 +61675,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -48024,7 +61725,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -48126,7 +61827,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -48218,6 +61919,38 @@ components: - attachments id: description: The resource ID + links: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - links + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_sku_lists_201_response_data_attributes: properties: name: @@ -48243,7 +61976,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -48292,7 +62025,11 @@ components: bundles: $ref: '#/components/schemas/POST_sku_lists_201_response_data_relationships_bundles' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + links: + $ref: '#/components/schemas/POST_orders_201_response_data_relationships_links' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_sku_lists_201_response_data: properties: id: @@ -48355,7 +62092,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -48415,7 +62152,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -48463,7 +62200,7 @@ components: attributes: properties: name: - description: The SKU option's internal name + description: The SKU option's internal name. example: Embossing nullable: false currency_code: @@ -48495,7 +62232,7 @@ components: example: 48 nullable: true delay_days: - description: "The delay time, in days (rounded)" + description: "The delay time, in days (rounded)." example: 2 nullable: true sku_code_regex: @@ -48520,7 +62257,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -48533,13 +62270,89 @@ components: relationships: properties: market: - $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships_market' + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - market + id: + description: The resource ID attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - attachments + id: + description: The resource ID + events: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource ID + tags: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - tags + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_sku_options_201_response_data_attributes: properties: name: - description: The SKU option's internal name + description: The SKU option's internal name. example: Embossing currency_code: description: The international 3-letter currency code as defined by the @@ -48566,7 +62379,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -48576,6 +62389,18 @@ components: foo: bar required: - name + POST_sku_options_201_response_data_relationships: + properties: + market: + $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships_market' + attachments: + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_sku_options_201_response_data: properties: id: @@ -48590,7 +62415,7 @@ components: attributes: $ref: '#/components/schemas/POST_sku_options_201_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships' + $ref: '#/components/schemas/POST_sku_options_201_response_data_relationships' POST_sku_options_201_response: properties: data: @@ -48598,7 +62423,7 @@ components: GET_sku_options_skuOptionId_200_response_data_attributes: properties: name: - description: The SKU option's internal name + description: The SKU option's internal name. example: Embossing nullable: false currency_code: @@ -48629,7 +62454,7 @@ components: example: 48 nullable: true delay_days: - description: "The delay time, in days (rounded)" + description: "The delay time, in days (rounded)." example: 2 nullable: true sku_code_regex: @@ -48652,7 +62477,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -48676,7 +62501,7 @@ components: attributes: $ref: '#/components/schemas/GET_sku_options_skuOptionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships' + $ref: '#/components/schemas/POST_sku_options_201_response_data_relationships' GET_sku_options_skuOptionId_200_response: properties: data: @@ -48684,7 +62509,7 @@ components: PATCH_sku_options_skuOptionId_200_response_data_attributes: properties: name: - description: The SKU option's internal name + description: The SKU option's internal name. example: Embossing nullable: false currency_code: @@ -48718,7 +62543,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -48742,7 +62567,7 @@ components: attributes: $ref: '#/components/schemas/PATCH_sku_options_skuOptionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_billing_info_validation_rules_201_response_data_relationships' + $ref: '#/components/schemas/POST_sku_options_201_response_data_relationships' PATCH_sku_options_skuOptionId_200_response: properties: data: @@ -48772,7 +62597,7 @@ components: nullable: false name: description: The internal name of the SKU. - example: Black Men T-shirt with White Logo (XL) + example: Men's Black T-shirt with White Logo (XL) nullable: false description: description: An internal description of the SKU. @@ -48795,7 +62620,11 @@ components: example: 300.0 nullable: true unit_of_weight: - description: "Can be one of 'gr', 'lb', or 'oz'" + description: "The unit of weight. One of 'gr', 'oz', or 'lb'." + enum: + - gr + - oz + - lb example: gr nullable: true hs_tariff_number: @@ -48892,9 +62721,14 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true + jwt_custom_claim: + description: The custom_claim attached to the current JWT (if + any). + example: {} + nullable: true metadata: description: Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information @@ -48952,6 +62786,22 @@ components: - stock_items id: description: The resource ID + stock_reservations: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - stock_reservations + id: + description: The resource ID delivery_lead_times: properties: links: @@ -48984,6 +62834,38 @@ components: - sku_options id: description: The resource ID + sku_list_items: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - sku_list_items + id: + description: The resource ID + sku_lists: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - sku_lists + id: + description: The resource ID attachments: properties: links: @@ -49000,6 +62882,118 @@ components: - attachments id: description: The resource ID + links: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - links + id: + description: The resource ID + events: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource ID + tags: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - tags + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID + jwt_customer: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - jwt_customer + id: + description: The resource ID + jwt_markets: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - jwt_markets + id: + description: The resource ID + jwt_stock_locations: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - jwt_stock_locations + id: + description: The resource ID POST_skus_201_response_data_attributes: properties: code: @@ -49008,7 +63002,7 @@ components: example: TSHIRTMM000000FFFFFFXLXX name: description: The internal name of the SKU. - example: Black Men T-shirt with White Logo (XL) + example: Men's Black T-shirt with White Logo (XL) description: description: An internal description of the SKU. example: "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed\ @@ -49025,7 +63019,11 @@ components: \ the shipping rates." example: 300.0 unit_of_weight: - description: "Can be one of 'gr', 'lb', or 'oz'" + description: "The unit of weight. One of 'gr', 'oz', or 'lb'." + enum: + - gr + - oz + - lb example: gr hs_tariff_number: description: The Harmonized System Code used by customs to identify the @@ -49044,7 +63042,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -49100,17 +63098,37 @@ components: POST_skus_201_response_data_relationships: properties: shipping_category: - $ref: '#/components/schemas/GET_shipments_shipmentId_200_response_data_relationships_shipping_category' + $ref: '#/components/schemas/POST_shipments_201_response_data_relationships_shipping_category' prices: $ref: '#/components/schemas/POST_price_lists_201_response_data_relationships_prices' stock_items: $ref: '#/components/schemas/POST_skus_201_response_data_relationships_stock_items' + stock_reservations: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_stock_reservations' delivery_lead_times: $ref: '#/components/schemas/POST_skus_201_response_data_relationships_delivery_lead_times' sku_options: $ref: '#/components/schemas/POST_skus_201_response_data_relationships_sku_options' + sku_list_items: + $ref: '#/components/schemas/POST_sku_lists_201_response_data_relationships_sku_list_items' + sku_lists: + $ref: '#/components/schemas/POST_customers_201_response_data_relationships_sku_lists' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + links: + $ref: '#/components/schemas/POST_orders_201_response_data_relationships_links' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + tags: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_tags' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + jwt_customer: + $ref: '#/components/schemas/POST_prices_201_response_data_relationships_jwt_customer' + jwt_markets: + $ref: '#/components/schemas/POST_prices_201_response_data_relationships_jwt_markets' + jwt_stock_locations: + $ref: '#/components/schemas/POST_prices_201_response_data_relationships_jwt_stock_locations' POST_skus_201_response_data: properties: id: @@ -49139,7 +63157,7 @@ components: nullable: false name: description: The internal name of the SKU. - example: Black Men T-shirt with White Logo (XL) + example: Men's Black T-shirt with White Logo (XL) nullable: false description: description: An internal description of the SKU. @@ -49161,7 +63179,11 @@ components: example: 300.0 nullable: true unit_of_weight: - description: "Can be one of 'gr', 'lb', or 'oz'" + description: "The unit of weight. One of 'gr', 'oz', or 'lb'." + enum: + - gr + - oz + - lb example: gr nullable: true hs_tariff_number: @@ -49257,9 +63279,13 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true + jwt_custom_claim: + description: The custom_claim attached to the current JWT (if any). + example: {} + nullable: true metadata: description: Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource @@ -49295,7 +63321,7 @@ components: nullable: false name: description: The internal name of the SKU. - example: Black Men T-shirt with White Logo (XL) + example: Men's Black T-shirt with White Logo (XL) nullable: false description: description: An internal description of the SKU. @@ -49317,7 +63343,11 @@ components: example: 300.0 nullable: true unit_of_weight: - description: "Can be one of 'gr', 'lb', or 'oz'" + description: "The unit of weight. One of 'gr', 'oz', or 'lb'." + enum: + - gr + - oz + - lb example: gr nullable: true hs_tariff_number: @@ -49341,7 +63371,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -49413,7 +63443,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -49438,10 +63468,58 @@ components: type: description: The resource's type enum: - - stock_location + - stock_location + id: + description: The resource ID + sku: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - sku + id: + description: The resource ID + reserved_stock: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - reserved_stock + id: + description: The resource ID + stock_reservations: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - stock_reservations id: description: The resource ID - sku: + attachments: properties: links: properties: @@ -49454,10 +63532,10 @@ components: type: description: The resource's type enum: - - sku + - attachments id: description: The resource ID - attachments: + versions: properties: links: properties: @@ -49470,7 +63548,7 @@ components: type: description: The resource's type enum: - - attachments + - versions id: description: The resource ID POST_stock_items_201_response_data_attributes: @@ -49488,7 +63566,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -49498,14 +63576,34 @@ components: foo: bar required: - quantity + POST_stock_items_201_response_data_relationships_reserved_stock_data: + properties: + type: + description: The resource's type + enum: + - reserved_stock + id: + description: The resource ID + POST_stock_items_201_response_data_relationships_reserved_stock: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_stock_items_201_response_data_relationships_reserved_stock_data' POST_stock_items_201_response_data_relationships: properties: stock_location: $ref: '#/components/schemas/POST_delivery_lead_times_201_response_data_relationships_stock_location' sku: $ref: '#/components/schemas/POST_in_stock_subscriptions_201_response_data_relationships_sku' + reserved_stock: + $ref: '#/components/schemas/POST_stock_items_201_response_data_relationships_reserved_stock' + stock_reservations: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_stock_reservations' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_stock_items_201_response_data: properties: id: @@ -49551,7 +63649,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -49590,6 +63688,12 @@ components: description: The stock item quantity. example: 100 nullable: false + _validate: + description: "Send this attribute if you want to validate the stock item\ + \ quantity against the existing reserved stock one, returns an error in\ + \ case the former is smaller. Cannot be passed by sales channels." + example: true + nullable: false reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -49598,7 +63702,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -49674,7 +63778,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -49734,6 +63838,126 @@ components: - stock_item id: description: The resource ID + sku: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - sku + id: + description: The resource ID + stock_reservation: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - stock_reservation + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID + POST_stock_line_items_201_response_data_attributes: + properties: + sku_code: + description: The code of the associated SKU. + example: TSHIRTMM000000FFFFFFXLXX + quantity: + description: The line item quantity. + example: 4 + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + required: + - quantity + POST_stock_line_items_201_response_data_relationships_stock_reservation_data: + properties: + type: + description: The resource's type + enum: + - stock_reservation + id: + description: The resource ID + POST_stock_line_items_201_response_data_relationships_stock_reservation: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_stock_line_items_201_response_data_relationships_stock_reservation_data' + POST_stock_line_items_201_response_data_relationships: + properties: + shipment: + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_shipment' + line_item: + $ref: '#/components/schemas/POST_line_item_options_201_response_data_relationships_line_item' + stock_item: + $ref: '#/components/schemas/GET_reserved_stocks_reservedStockId_200_response_data_relationships_stock_item' + sku: + $ref: '#/components/schemas/POST_in_stock_subscriptions_201_response_data_relationships_sku' + stock_reservation: + $ref: '#/components/schemas/POST_stock_line_items_201_response_data_relationships_stock_reservation' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + POST_stock_line_items_201_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - stock_line_items + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/POST_stock_line_items_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_stock_line_items_201_response_data_relationships' + POST_stock_line_items_201_response: + properties: + data: + $ref: '#/components/schemas/POST_stock_line_items_201_response_data' GET_stock_line_items_stockLineItemId_200_response_data_attributes: properties: sku_code: @@ -49764,7 +63988,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -49774,29 +63998,72 @@ components: example: foo: bar nullable: true - GET_stock_line_items_stockLineItemId_200_response_data_relationships_stock_item_data: + GET_stock_line_items_stockLineItemId_200_response_data: properties: + id: + description: The resource's id + example: XGZwpOSrWL type: description: The resource's type enum: - - stock_item - id: - description: The resource ID - GET_stock_line_items_stockLineItemId_200_response_data_relationships_stock_item: - properties: + - stock_line_items links: - $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/GET_stock_line_items_stockLineItemId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_stock_line_items_201_response_data_relationships' + GET_stock_line_items_stockLineItemId_200_response: + properties: data: - $ref: '#/components/schemas/GET_stock_line_items_stockLineItemId_200_response_data_relationships_stock_item_data' - GET_stock_line_items_stockLineItemId_200_response_data_relationships: + $ref: '#/components/schemas/GET_stock_line_items_stockLineItemId_200_response_data' + PATCH_stock_line_items_stockLineItemId_200_response_data_attributes: properties: - shipment: - $ref: '#/components/schemas/POST_parcels_201_response_data_relationships_shipment' - line_item: - $ref: '#/components/schemas/POST_line_item_options_201_response_data_relationships_line_item' - stock_item: - $ref: '#/components/schemas/GET_stock_line_items_stockLineItemId_200_response_data_relationships_stock_item' - GET_stock_line_items_stockLineItemId_200_response_data: + sku_code: + description: The code of the associated SKU. + example: TSHIRTMM000000FFFFFFXLXX + nullable: true + quantity: + description: The line item quantity. + example: 4 + nullable: false + _reserve_stock: + description: Send this attribute if you want to automatically reserve the + stock for this stock line item. Can be done only when fulfillment is in + progress. Cannot be passed by sales channels. + example: true + nullable: false + _release_stock: + description: Send this attribute if you want to automatically destroy the + stock reservation for this stock line item. Can be done only when fulfillment + is in progress. Cannot be passed by sales channels. + example: true + nullable: false + _decrement_stock: + description: Send this attribute if you want to automatically decrement + and release the stock this stock line item. Can be done only when fulfillment + is in progress. Cannot be passed by sales channels. + example: true + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + PATCH_stock_line_items_stockLineItemId_200_response_data: properties: id: description: The resource's id @@ -49808,13 +64075,13 @@ components: links: $ref: '#/components/schemas/POST_addresses_201_response_data_links' attributes: - $ref: '#/components/schemas/GET_stock_line_items_stockLineItemId_200_response_data_attributes' + $ref: '#/components/schemas/PATCH_stock_line_items_stockLineItemId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/GET_stock_line_items_stockLineItemId_200_response_data_relationships' - GET_stock_line_items_stockLineItemId_200_response: + $ref: '#/components/schemas/POST_stock_line_items_201_response_data_relationships' + PATCH_stock_line_items_stockLineItemId_200_response: properties: data: - $ref: '#/components/schemas/GET_stock_line_items_stockLineItemId_200_response_data' + $ref: '#/components/schemas/PATCH_stock_line_items_stockLineItemId_200_response_data' GET_stock_locations_200_response: properties: data: @@ -49834,16 +64101,21 @@ components: attributes: properties: number: - description: Unique identifier for the stock location (numeric) + description: Unique identifier for the stock location (numeric). example: 1234 nullable: true name: description: The stock location's internal name. example: Primary warehouse nullable: false + code: + description: A string that you can use to identify the stock location + (must be unique within the environment). + example: europe1 + nullable: true label_format: description: "The shipping label format for this stock location.\ - \ Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG'" + \ Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG'." example: PDF nullable: true suppress_etd: @@ -49869,7 +64141,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -49977,14 +64249,34 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_stock_locations_201_response_data_attributes: properties: name: description: The stock location's internal name. example: Primary warehouse + code: + description: A string that you can use to identify the stock location (must + be unique within the environment). + example: europe1 label_format: description: "The shipping label format for this stock location. Can be\ - \ one of 'PDF', 'ZPL', 'EPL2', or 'PNG'" + \ one of 'PDF', 'ZPL', 'EPL2', or 'PNG'." example: PDF suppress_etd: description: Flag it if you want to skip the electronic invoice creation @@ -49997,7 +64289,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -50020,7 +64312,9 @@ components: stock_transfers: $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_stock_transfers' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_stock_locations_201_response_data: properties: id: @@ -50043,16 +64337,21 @@ components: GET_stock_locations_stockLocationId_200_response_data_attributes: properties: number: - description: Unique identifier for the stock location (numeric) + description: Unique identifier for the stock location (numeric). example: 1234 nullable: true name: description: The stock location's internal name. example: Primary warehouse nullable: false + code: + description: A string that you can use to identify the stock location (must + be unique within the environment). + example: europe1 + nullable: true label_format: description: "The shipping label format for this stock location. Can be\ - \ one of 'PDF', 'ZPL', 'EPL2', or 'PNG'" + \ one of 'PDF', 'ZPL', 'EPL2', or 'PNG'." example: PDF nullable: true suppress_etd: @@ -50076,7 +64375,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -50111,9 +64410,14 @@ components: description: The stock location's internal name. example: Primary warehouse nullable: false + code: + description: A string that you can use to identify the stock location (must + be unique within the environment). + example: europe1 + nullable: true label_format: description: "The shipping label format for this stock location. Can be\ - \ one of 'PDF', 'ZPL', 'EPL2', or 'PNG'" + \ one of 'PDF', 'ZPL', 'EPL2', or 'PNG'." example: PDF nullable: true suppress_etd: @@ -50129,7 +64433,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -50158,6 +64462,363 @@ components: properties: data: $ref: '#/components/schemas/PATCH_stock_locations_stockLocationId_200_response_data' + GET_stock_reservations_200_response: + properties: + data: + items: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - stock_reservations + links: + properties: + self: + description: URL + attributes: + properties: + status: + description: "The stock reservation status. One of 'draft' (default),\ + \ or 'pending'." + enum: + - draft + - pending + example: draft + nullable: false + quantity: + description: The stock reservation quantity. + example: 4 + nullable: false + expires_at: + description: The expiration date/time of this stock reservation. + example: 2018-01-02T12:00:00.000Z + nullable: false + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier\ + \ to the resource. This can be useful for integrating the resource\ + \ to an external system, like an ERP, a marketing tool, a CRM,\ + \ or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines + the reference code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the + resource. This can be useful for storing additional information + about the resource in a structured format. + example: + foo: bar + nullable: true + relationships: + properties: + line_item: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - line_item + id: + description: The resource ID + order: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - order + id: + description: The resource ID + stock_line_item: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - stock_line_item + id: + description: The resource ID + stock_transfer: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - stock_transfer + id: + description: The resource ID + stock_item: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - stock_item + id: + description: The resource ID + reserved_stock: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - reserved_stock + id: + description: The resource ID + sku: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - sku + id: + description: The resource ID + POST_stock_reservations_201_response_data_attributes: + properties: + quantity: + description: The stock reservation quantity. + example: 4 + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + required: + - quantity + POST_stock_reservations_201_response_data_relationships_stock_transfer_data: + properties: + type: + description: The resource's type + enum: + - stock_transfer + id: + description: The resource ID + POST_stock_reservations_201_response_data_relationships_stock_transfer: + properties: + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_geocoder_links' + data: + $ref: '#/components/schemas/POST_stock_reservations_201_response_data_relationships_stock_transfer_data' + POST_stock_reservations_201_response_data_relationships: + properties: + line_item: + $ref: '#/components/schemas/POST_line_item_options_201_response_data_relationships_line_item' + order: + $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' + stock_line_item: + $ref: '#/components/schemas/POST_parcel_line_items_201_response_data_relationships_stock_line_item' + stock_transfer: + $ref: '#/components/schemas/POST_stock_reservations_201_response_data_relationships_stock_transfer' + stock_item: + $ref: '#/components/schemas/GET_reserved_stocks_reservedStockId_200_response_data_relationships_stock_item' + reserved_stock: + $ref: '#/components/schemas/POST_stock_items_201_response_data_relationships_reserved_stock' + sku: + $ref: '#/components/schemas/POST_in_stock_subscriptions_201_response_data_relationships_sku' + POST_stock_reservations_201_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - stock_reservations + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/POST_stock_reservations_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_stock_reservations_201_response_data_relationships' + POST_stock_reservations_201_response: + properties: + data: + $ref: '#/components/schemas/POST_stock_reservations_201_response_data' + GET_stock_reservations_stockReservationId_200_response_data_attributes: + properties: + status: + description: "The stock reservation status. One of 'draft' (default), or\ + \ 'pending'." + enum: + - draft + - pending + example: draft + nullable: false + quantity: + description: The stock reservation quantity. + example: 4 + nullable: false + expires_at: + description: The expiration date/time of this stock reservation. + example: 2018-01-02T12:00:00.000Z + nullable: false + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + GET_stock_reservations_stockReservationId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - stock_reservations + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/GET_stock_reservations_stockReservationId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_stock_reservations_201_response_data_relationships' + GET_stock_reservations_stockReservationId_200_response: + properties: + data: + $ref: '#/components/schemas/GET_stock_reservations_stockReservationId_200_response_data' + PATCH_stock_reservations_stockReservationId_200_response_data_attributes: + properties: + quantity: + description: The stock reservation quantity. + example: 4 + nullable: false + _pending: + description: Send this attribute if you want to mark this stock reservation + as pending. + example: true + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + PATCH_stock_reservations_stockReservationId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - stock_reservations + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/PATCH_stock_reservations_stockReservationId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/POST_stock_reservations_201_response_data_relationships' + PATCH_stock_reservations_stockReservationId_200_response: + properties: + data: + $ref: '#/components/schemas/PATCH_stock_reservations_stockReservationId_200_response_data' GET_stock_transfers_200_response: properties: data: @@ -50176,16 +64837,22 @@ components: description: URL attributes: properties: + number: + description: Unique identifier for the stock transfer (numeric). + example: "1234" + nullable: true sku_code: description: The code of the associated SKU. example: TSHIRTMM000000FFFFFFXLXX nullable: true status: - description: "The stock transfer status, one of 'draft', 'upcoming',\ - \ 'picking', 'in_transit', 'completed', or 'cancelled'" + description: "The stock transfer status. One of 'draft' (default),\ + \ 'upcoming', 'on_hold', 'picking', 'in_transit', 'completed',\ + \ or 'cancelled'." enum: - draft - upcoming + - on_hold - picking - in_transit - completed @@ -50194,9 +64861,21 @@ components: nullable: false quantity: description: The stock quantity to be transferred from the origin - stock location to destination one + stock location to destination one. example: 2 nullable: false + on_hold_at: + description: Time at which the stock transfer was put on hold. + example: 2018-01-01T12:00:00.000Z + nullable: true + picking_at: + description: Time at which the stock transfer was picking. + example: 2018-01-01T12:00:00.000Z + nullable: true + in_transit_at: + description: Time at which the stock transfer was in transit. + example: 2018-01-01T12:00:00.000Z + nullable: true completed_at: description: Time at which the stock transfer was completed. example: 2018-01-01T12:00:00.000Z @@ -50222,7 +64901,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -50314,6 +64993,38 @@ components: - line_item id: description: The resource ID + stock_reservation: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - stock_reservation + id: + description: The resource ID + attachments: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - attachments + id: + description: The resource ID events: properties: links: @@ -50330,14 +65041,33 @@ components: - events id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_stock_transfers_201_response_data_attributes: properties: + number: + description: Unique identifier for the stock transfer (numeric). + example: "1234" sku_code: description: The code of the associated SKU. example: TSHIRTMM000000FFFFFFXLXX quantity: description: The stock quantity to be transferred from the origin stock - location to destination one + location to destination one. example: 2 reference: description: "A string that you can use to add any external identifier to\ @@ -50346,7 +65076,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -50393,11 +65123,17 @@ components: destination_stock_location: $ref: '#/components/schemas/POST_stock_transfers_201_response_data_relationships_destination_stock_location' shipment: - $ref: '#/components/schemas/POST_parcels_201_response_data_relationships_shipment' + $ref: '#/components/schemas/POST_line_items_201_response_data_relationships_shipment' line_item: $ref: '#/components/schemas/POST_line_item_options_201_response_data_relationships_line_item' + stock_reservation: + $ref: '#/components/schemas/POST_stock_line_items_201_response_data_relationships_stock_reservation' + attachments: + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_stock_transfers_201_response_data: properties: id: @@ -50419,16 +65155,21 @@ components: $ref: '#/components/schemas/POST_stock_transfers_201_response_data' GET_stock_transfers_stockTransferId_200_response_data_attributes: properties: + number: + description: Unique identifier for the stock transfer (numeric). + example: "1234" + nullable: true sku_code: description: The code of the associated SKU. example: TSHIRTMM000000FFFFFFXLXX nullable: true status: - description: "The stock transfer status, one of 'draft', 'upcoming', 'picking',\ - \ 'in_transit', 'completed', or 'cancelled'" + description: "The stock transfer status. One of 'draft' (default), 'upcoming',\ + \ 'on_hold', 'picking', 'in_transit', 'completed', or 'cancelled'." enum: - draft - upcoming + - on_hold - picking - in_transit - completed @@ -50437,9 +65178,21 @@ components: nullable: false quantity: description: The stock quantity to be transferred from the origin stock - location to destination one + location to destination one. example: 2 nullable: false + on_hold_at: + description: Time at which the stock transfer was put on hold. + example: 2018-01-01T12:00:00.000Z + nullable: true + picking_at: + description: Time at which the stock transfer was picking. + example: 2018-01-01T12:00:00.000Z + nullable: true + in_transit_at: + description: Time at which the stock transfer was in transit. + example: 2018-01-01T12:00:00.000Z + nullable: true completed_at: description: Time at which the stock transfer was completed. example: 2018-01-01T12:00:00.000Z @@ -50464,7 +65217,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -50495,6 +65248,10 @@ components: $ref: '#/components/schemas/GET_stock_transfers_stockTransferId_200_response_data' PATCH_stock_transfers_stockTransferId_200_response_data_attributes: properties: + number: + description: Unique identifier for the stock transfer (numeric). + example: "1234" + nullable: true sku_code: description: The code of the associated SKU. example: TSHIRTMM000000FFFFFFXLXX @@ -50503,20 +65260,30 @@ components: description: Send this attribute if you want to mark this stock transfer as upcoming. example: true + nullable: false + _on_hold: + description: Send this attribute if you want to put this stock transfer + on hold. + example: true + nullable: false _picking: description: Send this attribute if you want to start picking this stock transfer. example: true + nullable: false _in_transit: description: Send this attribute if you want to mark this stock transfer as in transit. example: true + nullable: false _complete: description: Send this attribute if you want to complete this stock transfer. example: true + nullable: false _cancel: description: Send this attribute if you want to cancel this stock transfer. example: true + nullable: false reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -50525,7 +65292,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -50593,7 +65360,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -50603,6 +65370,11 @@ components: example: foo: bar nullable: true + connected_account: + description: The account (if any) for which the funds of the PaymentIntent + are intended. + example: xxxx-yyyy-zzzz + nullable: true auto_payments: description: Indicates if the gateway will accept payment methods enabled in the Stripe dashboard. @@ -50638,6 +65410,22 @@ components: - payment_methods id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID stripe_payments: properties: links: @@ -50666,7 +65454,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -50680,6 +65468,10 @@ components: publishable_key: description: The gateway publishable API key. example: pk_live_xxxx-yyyy-zzzz + connected_account: + description: The account (if any) for which the funds of the PaymentIntent + are intended. + example: xxxx-yyyy-zzzz auto_payments: description: Indicates if the gateway will accept payment methods enabled in the Stripe dashboard. @@ -50705,6 +65497,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/POST_adyen_gateways_201_response_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' stripe_payments: $ref: '#/components/schemas/POST_stripe_gateways_201_response_data_relationships_stripe_payments' POST_stripe_gateways_201_response_data: @@ -50748,7 +65542,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -50758,6 +65552,11 @@ components: example: foo: bar nullable: true + connected_account: + description: The account (if any) for which the funds of the PaymentIntent + are intended. + example: xxxx-yyyy-zzzz + nullable: true auto_payments: description: Indicates if the gateway will accept payment methods enabled in the Stripe dashboard. @@ -50808,7 +65607,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -50818,6 +65617,11 @@ components: example: foo: bar nullable: true + connected_account: + description: The account (if any) for which the funds of the PaymentIntent + are intended. + example: xxxx-yyyy-zzzz + nullable: true auto_payments: description: Indicates if the gateway will accept payment methods enabled in the Stripe dashboard. @@ -50860,18 +65664,29 @@ components: description: URL attributes: properties: + stripe_id: + description: The Stripe payment intent ID. Required to identify + a payment session on stripe. + example: pi_1234XXX + nullable: true client_secret: description: The Stripe payment intent client secret. Required to create a charge through Stripe.js. example: pi_1234XXX_secret_5678YYY - nullable: false + nullable: true + charge_id: + description: The Stripe charge ID. Identifies money movement upon + the payment intent confirmation. + example: ch_1234XXX + nullable: true publishable_key: description: The Stripe publishable API key. example: pk_live_xxxx-yyyy-zzzz nullable: true options: description: "Stripe payment options: 'customer', 'payment_method',\ - \ etc. Check Stripe payment intent API for more details." + \ 'return_url', etc. Check Stripe payment intent API for more\ + \ details." example: customer: cus_xxx payment_method: pm_xxx @@ -50886,22 +65701,17 @@ components: the one of the created payment intent. example: false nullable: true - intent_amount_cents: - description: "The amount of the associated payment intent, in\ - \ cents." - example: 1000 - nullable: false - intent_amount_float: - description: "The amount of the associated payment intent, float." - example: 10.0 + return_url: + description: The URL to return to when a redirect payment is completed. + example: https://yourdomain.com/thankyou nullable: true - formatted_intent_amount: - description: "The amount of the associated payment intent, formatted." - example: "€10,00" + receipt_email: + description: The email address to send the receipt to. + example: john@example.com nullable: true payment_instrument: description: Information about the payment instrument used in - the transaction + the transaction. example: issuer: cl bank card_type: visa @@ -50923,7 +65733,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -50939,14 +65749,30 @@ components: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' payment_gateway: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_payment_gateway' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_stripe_payments_201_response_data_attributes: properties: + stripe_id: + description: The Stripe payment intent ID. Required to identify a payment + session on stripe. + example: pi_1234XXX + client_secret: + description: The Stripe payment intent client secret. Required to create + a charge through Stripe.js. + example: pi_1234XXX_secret_5678YYY options: - description: "Stripe payment options: 'customer', 'payment_method', etc.\ - \ Check Stripe payment intent API for more details." + description: "Stripe payment options: 'customer', 'payment_method', 'return_url',\ + \ etc. Check Stripe payment intent API for more details." example: customer: cus_xxx payment_method: pm_xxx + return_url: + description: The URL to return to when a redirect payment is completed. + example: https://yourdomain.com/thankyou + receipt_email: + description: The email address to send the receipt to. + example: john@example.com reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -50954,7 +65780,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -50983,18 +65809,28 @@ components: $ref: '#/components/schemas/POST_stripe_payments_201_response_data' GET_stripe_payments_stripePaymentId_200_response_data_attributes: properties: + stripe_id: + description: The Stripe payment intent ID. Required to identify a payment + session on stripe. + example: pi_1234XXX + nullable: true client_secret: description: The Stripe payment intent client secret. Required to create a charge through Stripe.js. example: pi_1234XXX_secret_5678YYY - nullable: false + nullable: true + charge_id: + description: The Stripe charge ID. Identifies money movement upon the payment + intent confirmation. + example: ch_1234XXX + nullable: true publishable_key: description: The Stripe publishable API key. example: pk_live_xxxx-yyyy-zzzz nullable: true options: - description: "Stripe payment options: 'customer', 'payment_method', etc.\ - \ Check Stripe payment intent API for more details." + description: "Stripe payment options: 'customer', 'payment_method', 'return_url',\ + \ etc. Check Stripe payment intent API for more details." example: customer: cus_xxx payment_method: pm_xxx @@ -51009,20 +65845,16 @@ components: of the created payment intent. example: false nullable: true - intent_amount_cents: - description: "The amount of the associated payment intent, in cents." - example: 1000 - nullable: false - intent_amount_float: - description: "The amount of the associated payment intent, float." - example: 10.0 + return_url: + description: The URL to return to when a redirect payment is completed. + example: https://yourdomain.com/thankyou nullable: true - formatted_intent_amount: - description: "The amount of the associated payment intent, formatted." - example: "€10,00" + receipt_email: + description: The email address to send the receipt to. + example: john@example.com nullable: true payment_instrument: - description: Information about the payment instrument used in the transaction + description: Information about the payment instrument used in the transaction. example: issuer: cl bank card_type: visa @@ -51043,7 +65875,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -51075,16 +65907,26 @@ components: PATCH_stripe_payments_stripePaymentId_200_response_data_attributes: properties: options: - description: "Stripe payment options: 'customer', 'payment_method', etc.\ - \ Check Stripe payment intent API for more details." + description: "Stripe payment options: 'customer', 'payment_method', 'return_url',\ + \ etc. Check Stripe payment intent API for more details." example: customer: cus_xxx payment_method: pm_xxx nullable: true + return_url: + description: The URL to return to when a redirect payment is completed. + example: https://yourdomain.com/thankyou + nullable: true + _update: + description: Send this attribute if you want to update the created payment + intent with fresh order data. + example: true + nullable: false _refresh: description: "Send this attribute if you want to refresh the payment status,\ \ can be used as webhooks fallback logic." example: true + nullable: false reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -51093,7 +65935,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -51192,7 +66034,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -51288,7 +66130,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -51306,7 +66148,7 @@ components: order_subscriptions: $ref: '#/components/schemas/POST_customers_201_response_data_relationships_order_subscriptions' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' POST_subscription_models_201_response_data: properties: id: @@ -51376,7 +66218,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -51447,7 +66289,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -51476,6 +66318,192 @@ components: properties: data: $ref: '#/components/schemas/PATCH_subscription_models_subscriptionModelId_200_response_data' + GET_tags_200_response: + properties: + data: + items: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - tags + links: + properties: + self: + description: URL + attributes: + properties: + name: + description: The tag name. + example: new_campaign + nullable: false + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier\ + \ to the resource. This can be useful for integrating the resource\ + \ to an external system, like an ERP, a marketing tool, a CRM,\ + \ or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines + the reference code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the + resource. This can be useful for storing additional information + about the resource in a structured format. + example: + foo: bar + nullable: true + relationships: + properties: {} + POST_tags_201_response_data_attributes: + properties: + name: + description: The tag name. + example: new_campaign + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + required: + - name + POST_tags_201_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - tags + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/POST_tags_201_response_data_attributes' + relationships: + properties: {} + POST_tags_201_response: + properties: + data: + $ref: '#/components/schemas/POST_tags_201_response_data' + GET_tags_tagId_200_response_data_attributes: + properties: + name: + description: The tag name. + example: new_campaign + nullable: false + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + GET_tags_tagId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - tags + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/GET_tags_tagId_200_response_data_attributes' + relationships: + properties: {} + GET_tags_tagId_200_response: + properties: + data: + $ref: '#/components/schemas/GET_tags_tagId_200_response_data' + PATCH_tags_tagId_200_response_data_attributes: + properties: + name: + description: The tag name. + example: new_campaign + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + PATCH_tags_tagId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - tags + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/PATCH_tags_tagId_200_response_data_attributes' + relationships: + properties: {} + PATCH_tags_tagId_200_response: + properties: + data: + $ref: '#/components/schemas/PATCH_tags_tagId_200_response_data' GET_tax_calculators_200_response: properties: data: @@ -51498,6 +66526,15 @@ components: description: The tax calculator's internal name. example: Personal tax calculator nullable: false + type: + description: The tax calculator's type. + enum: + - avalara_accounts + - taxjar_accounts + - manual_tax_calculators + - external_tax_calculators + example: avalara_accounts + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -51515,7 +66552,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -51530,7 +66567,9 @@ components: markets: $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_markets' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' GET_tax_calculators_taxCalculatorId_200_response_data: properties: id: @@ -51594,7 +66633,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -51654,6 +66693,22 @@ components: - attachments id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_tax_categories_201_response_data_attributes: properties: code: @@ -51670,7 +66725,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -51687,7 +66742,9 @@ components: tax_calculator: $ref: '#/components/schemas/POST_markets_201_response_data_relationships_tax_calculator' attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_tax_categories_201_response_data: properties: id: @@ -51734,7 +66791,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -51782,7 +66839,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -51906,7 +66963,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -51934,6 +66991,22 @@ components: - manual_tax_calculator id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_tax_rules_201_response_data_attributes: properties: name: @@ -51985,7 +67058,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -52013,6 +67086,8 @@ components: properties: manual_tax_calculator: $ref: '#/components/schemas/POST_tax_rules_201_response_data_relationships_manual_tax_calculator' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_tax_rules_201_response_data: properties: id: @@ -52110,7 +67185,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -52203,7 +67278,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -52254,6 +67329,15 @@ components: description: The tax calculator's internal name. example: Personal tax calculator nullable: false + type: + description: The tax calculator's type. + enum: + - avalara_accounts + - taxjar_accounts + - manual_tax_calculators + - external_tax_calculators + example: avalara_accounts + nullable: false created_at: description: Time at which the resource was created. example: 2018-01-01T12:00:00.000Z @@ -52271,7 +67355,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -52284,11 +67368,69 @@ components: relationships: properties: markets: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_markets' + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - markets + id: + description: The resource ID attachments: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_attachments' + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - attachments + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID tax_categories: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_tax_categories' + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - tax_categories + id: + description: The resource ID POST_taxjar_accounts_201_response_data_attributes: properties: name: @@ -52301,7 +67443,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -52315,6 +67457,16 @@ components: required: - api_key - name + POST_taxjar_accounts_201_response_data_relationships: + properties: + markets: + $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_markets' + attachments: + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + tax_categories: + $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships_tax_categories' POST_taxjar_accounts_201_response_data: properties: id: @@ -52329,7 +67481,7 @@ components: attributes: $ref: '#/components/schemas/POST_taxjar_accounts_201_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships' + $ref: '#/components/schemas/POST_taxjar_accounts_201_response_data_relationships' POST_taxjar_accounts_201_response: properties: data: @@ -52348,7 +67500,7 @@ components: attributes: $ref: '#/components/schemas/GET_manual_tax_calculators_manualTaxCalculatorId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships' + $ref: '#/components/schemas/POST_taxjar_accounts_201_response_data_relationships' GET_taxjar_accounts_taxjarAccountId_200_response: properties: data: @@ -52367,7 +67519,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -52394,7 +67546,7 @@ components: attributes: $ref: '#/components/schemas/PATCH_taxjar_accounts_taxjarAccountId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/POST_avalara_accounts_201_response_data_relationships' + $ref: '#/components/schemas/POST_taxjar_accounts_201_response_data_relationships' PATCH_taxjar_accounts_taxjarAccountId_200_response: properties: data: @@ -52418,9 +67570,370 @@ components: attributes: properties: number: - description: "The transaction number, auto generated" + description: "The transaction number, auto generated." + example: 42/T/001 + nullable: false + type: + description: The transaction's type. + enum: + - authorizations + - voids + - captures + - refunds + example: authorizations + nullable: false + currency_code: + description: "The international 3-letter currency code as defined\ + \ by the ISO 4217 standard, inherited from the associated order." + example: EUR + nullable: false + amount_cents: + description: "The transaction amount, in cents." + example: 1500 + nullable: false + amount_float: + description: "The transaction amount, float." + example: 15.0 + nullable: false + formatted_amount: + description: "The transaction amount, formatted." + example: "€15,00" + nullable: false + succeeded: + description: Indicates if the transaction is successful. + example: false + nullable: false + message: + description: The message returned by the payment gateway. + example: Accepted + nullable: true + error_code: + description: "The error code, if any, returned by the payment\ + \ gateway." + example: "00001" + nullable: true + error_detail: + description: "The error detail, if any, returned by the payment\ + \ gateway." + example: Already settled + nullable: true + token: + description: "The token identifying the transaction, returned\ + \ by the payment gateway." + example: xxxx-yyyy-zzzz + nullable: true + gateway_transaction_id: + description: "The ID identifying the transaction, returned by\ + \ the payment gateway." + example: xxxx-yyyy-zzzz + nullable: true + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier\ + \ to the resource. This can be useful for integrating the resource\ + \ to an external system, like an ERP, a marketing tool, a CRM,\ + \ or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines + the reference code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the + resource. This can be useful for storing additional information + about the resource in a structured format. + example: + foo: bar + nullable: true + relationships: + properties: + order: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - order + id: + description: The resource ID + attachments: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - attachments + id: + description: The resource ID + events: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID + GET_transactions_transactionId_200_response_data_relationships: + properties: + order: + $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' + attachments: + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' + GET_transactions_transactionId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - transactions + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/GET_refunds_refundId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/GET_transactions_transactionId_200_response_data_relationships' + GET_transactions_transactionId_200_response: + properties: + data: + $ref: '#/components/schemas/GET_transactions_transactionId_200_response_data' + GET_versions_200_response: + properties: + data: + items: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - versions + links: + properties: + self: + description: URL + attributes: + properties: + resource_type: + description: The type of the versioned resource. + example: orders + nullable: true + resource_id: + description: The versioned resource id. + example: PzdJhdLdYV + nullable: true + event: + description: The event which generates the version. + example: update + nullable: true + changes: + description: The object changes payload. + example: + status: + - draft + - placed + nullable: true + who: + description: Information about who triggered the change. + example: + application: + id: DNOPYiZYpn + kind: sales_channel + public: true + owner: + id: yQQrBhLBmQ + type: Customer + nullable: true + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier\ + \ to the resource. This can be useful for integrating the resource\ + \ to an external system, like an ERP, a marketing tool, a CRM,\ + \ or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines + the reference code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the + resource. This can be useful for storing additional information + about the resource in a structured format. + example: + foo: bar + nullable: true + relationships: + properties: {} + GET_versions_versionId_200_response_data_attributes: + properties: + resource_type: + description: The type of the versioned resource. + example: orders + nullable: true + resource_id: + description: The versioned resource id. + example: PzdJhdLdYV + nullable: true + event: + description: The event which generates the version. + example: update + nullable: true + changes: + description: The object changes payload. + example: + status: + - draft + - placed + nullable: true + who: + description: Information about who triggered the change. + example: + application: + id: DNOPYiZYpn + kind: sales_channel + public: true + owner: + id: yQQrBhLBmQ + type: Customer + nullable: true + created_at: + description: Time at which the resource was created. + example: 2018-01-01T12:00:00.000Z + nullable: false + updated_at: + description: Time at which the resource was last updated. + example: 2018-01-01T12:00:00.000Z + nullable: false + reference: + description: "A string that you can use to add any external identifier to\ + \ the resource. This can be useful for integrating the resource to an\ + \ external system, like an ERP, a marketing tool, a CRM, or whatever." + example: ANY-EXTERNAL-REFEFERNCE + nullable: true + reference_origin: + description: Any identifier of the third party system that defines the reference + code. + example: ANY-EXTERNAL-REFEFERNCE-ORIGIN + nullable: true + metadata: + description: Set of key-value pairs that you can attach to the resource. + This can be useful for storing additional information about the resource + in a structured format. + example: + foo: bar + nullable: true + GET_versions_versionId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - versions + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/GET_versions_versionId_200_response_data_attributes' + relationships: + properties: {} + GET_versions_versionId_200_response: + properties: + data: + $ref: '#/components/schemas/GET_versions_versionId_200_response_data' + GET_voids_200_response: + properties: + data: + items: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - voids + links: + properties: + self: + description: URL + attributes: + properties: + number: + description: "The transaction number, auto generated." example: 42/T/001 nullable: false + type: + description: The transaction's type. + enum: + - authorizations + - voids + - captures + - refunds + example: authorizations + nullable: false currency_code: description: "The international 3-letter currency code as defined\ \ by the ISO 4217 standard, inherited from the associated order." @@ -52439,31 +67952,31 @@ components: example: "€15,00" nullable: false succeeded: - description: Indicates if the transaction is successful + description: Indicates if the transaction is successful. example: false nullable: false message: - description: The message returned by the payment gateway + description: The message returned by the payment gateway. example: Accepted nullable: true error_code: description: "The error code, if any, returned by the payment\ - \ gateway" + \ gateway." example: "00001" nullable: true error_detail: description: "The error detail, if any, returned by the payment\ - \ gateway" + \ gateway." example: Already settled nullable: true token: description: "The token identifying the transaction, returned\ - \ by the payment gateway" + \ by the payment gateway." example: xxxx-yyyy-zzzz nullable: true gateway_transaction_id: description: "The ID identifying the transaction, returned by\ - \ the payment gateway" + \ the payment gateway." example: xxxx-yyyy-zzzz nullable: true created_at: @@ -52483,7 +67996,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -52511,126 +68024,7 @@ components: - order id: description: The resource ID - GET_transactions_transactionId_200_response_data_relationships: - properties: - order: - $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' - GET_transactions_transactionId_200_response_data: - properties: - id: - description: The resource's id - example: XGZwpOSrWL - type: - description: The resource's type - enum: - - transactions - links: - $ref: '#/components/schemas/POST_addresses_201_response_data_links' - attributes: - $ref: '#/components/schemas/GET_refunds_refundId_200_response_data_attributes' - relationships: - $ref: '#/components/schemas/GET_transactions_transactionId_200_response_data_relationships' - GET_transactions_transactionId_200_response: - properties: - data: - $ref: '#/components/schemas/GET_transactions_transactionId_200_response_data' - GET_voids_200_response: - properties: - data: - items: - properties: - id: - description: The resource's id - example: XGZwpOSrWL - type: - description: The resource's type - enum: - - voids - links: - properties: - self: - description: URL - attributes: - properties: - number: - description: "The transaction number, auto generated" - example: 42/T/001 - nullable: false - currency_code: - description: "The international 3-letter currency code as defined\ - \ by the ISO 4217 standard, inherited from the associated order." - example: EUR - nullable: false - amount_cents: - description: "The transaction amount, in cents." - example: 1500 - nullable: false - amount_float: - description: "The transaction amount, float." - example: 15.0 - nullable: false - formatted_amount: - description: "The transaction amount, formatted." - example: "€15,00" - nullable: false - succeeded: - description: Indicates if the transaction is successful - example: false - nullable: false - message: - description: The message returned by the payment gateway - example: Accepted - nullable: true - error_code: - description: "The error code, if any, returned by the payment\ - \ gateway" - example: "00001" - nullable: true - error_detail: - description: "The error detail, if any, returned by the payment\ - \ gateway" - example: Already settled - nullable: true - token: - description: "The token identifying the transaction, returned\ - \ by the payment gateway" - example: xxxx-yyyy-zzzz - nullable: true - gateway_transaction_id: - description: "The ID identifying the transaction, returned by\ - \ the payment gateway" - example: xxxx-yyyy-zzzz - nullable: true - created_at: - description: Time at which the resource was created. - example: 2018-01-01T12:00:00.000Z - nullable: false - updated_at: - description: Time at which the resource was last updated. - example: 2018-01-01T12:00:00.000Z - nullable: false - reference: - description: "A string that you can use to add any external identifier\ - \ to the resource. This can be useful for integrating the resource\ - \ to an external system, like an ERP, a marketing tool, a CRM,\ - \ or whatever." - example: ANY-EXTERNAL-REFEFERNCE - nullable: true - reference_origin: - description: Any identifier of the third party system that defines - the reference code - example: ANY-EXTERNAL-REFEFERNCE-ORIGIN - nullable: true - metadata: - description: Set of key-value pairs that you can attach to the - resource. This can be useful for storing additional information - about the resource in a structured format. - example: - foo: bar - nullable: true - relationships: - properties: - order: + attachments: properties: links: properties: @@ -52643,10 +68037,10 @@ components: type: description: The resource's type enum: - - order + - attachments id: description: The resource ID - reference_authorization: + events: properties: links: properties: @@ -52659,10 +68053,10 @@ components: type: description: The resource's type enum: - - reference_authorization + - events id: description: The resource ID - events: + versions: properties: links: properties: @@ -52675,17 +68069,37 @@ components: type: description: The resource's type enum: - - events + - versions + id: + description: The resource ID + reference_authorization: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - reference_authorization id: description: The resource ID GET_voids_voidId_200_response_data_relationships: properties: order: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' + attachments: + $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_attachments' + events: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_events' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' reference_authorization: $ref: '#/components/schemas/GET_captures_captureId_200_response_data_relationships_reference_authorization' - events: - $ref: '#/components/schemas/GET_authorizations_authorizationId_200_response_data_relationships_events' GET_voids_voidId_200_response_data: properties: id: @@ -52705,6 +68119,25 @@ components: properties: data: $ref: '#/components/schemas/GET_voids_voidId_200_response_data' + PATCH_voids_voidId_200_response_data: + properties: + id: + description: The resource's id + example: XGZwpOSrWL + type: + description: The resource's type + enum: + - voids + links: + $ref: '#/components/schemas/POST_addresses_201_response_data_links' + attributes: + $ref: '#/components/schemas/PATCH_refunds_refundId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/GET_voids_voidId_200_response_data_relationships' + PATCH_voids_voidId_200_response: + properties: + data: + $ref: '#/components/schemas/PATCH_voids_voidId_200_response_data' GET_webhooks_200_response: properties: data: @@ -52746,6 +68179,10 @@ components: - billing_address items: {} nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true circuit_state: description: "The circuit breaker state, by default it is 'closed'.\ \ It can become 'open' once the number of consecutive failures\ @@ -52755,7 +68192,7 @@ components: nullable: true circuit_failure_count: description: "The number of consecutive failures recorded by the\ - \ circuit breaker associated to this webhook, will be reset\ + \ circuit breaker associated to this resource, will be reset\ \ on first successful call to callback." example: 5 nullable: true @@ -52781,7 +68218,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -52809,6 +68246,22 @@ components: - last_event_callbacks id: description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID POST_webhooks_201_response_data_attributes: properties: name: @@ -52830,6 +68283,12 @@ components: - shipping_address - billing_address items: {} + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -52837,7 +68296,7 @@ components: example: ANY-EXTERNAL-REFEFERNCE reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN metadata: description: Set of key-value pairs that you can attach to the resource. @@ -52852,6 +68311,8 @@ components: properties: last_event_callbacks: $ref: '#/components/schemas/GET_events_eventId_200_response_data_relationships_last_event_callbacks' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_webhooks_201_response_data: properties: id: @@ -52896,6 +68357,10 @@ components: - billing_address items: {} nullable: true + disabled_at: + description: Time at which this resource was disabled. + example: 2018-01-01T12:00:00.000Z + nullable: true circuit_state: description: "The circuit breaker state, by default it is 'closed'. It can\ \ become 'open' once the number of consecutive failures overlaps the specified\ @@ -52905,7 +68370,7 @@ components: nullable: true circuit_failure_count: description: "The number of consecutive failures recorded by the circuit\ - \ breaker associated to this webhook, will be reset on first successful\ + \ breaker associated to this resource, will be reset on first successful\ \ call to callback." example: 5 nullable: true @@ -52929,7 +68394,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -52983,10 +68448,20 @@ components: - billing_address items: {} nullable: true + _disable: + description: Send this attribute if you want to mark this resource as disabled. + example: true + nullable: false + _enable: + description: Send this attribute if you want to mark this resource as enabled. + example: true + nullable: false _reset_circuit: description: Send this attribute if you want to reset the circuit breaker - associated to this webhook to 'closed' state and zero failures count. + associated to this resource to 'closed' state and zero failures count. + Cannot be passed by sales channels. example: true + nullable: false reference: description: "A string that you can use to add any external identifier to\ \ the resource. This can be useful for integrating the resource to an\ @@ -52995,7 +68470,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -53044,9 +68519,10 @@ components: properties: payment_instrument: description: Information about the payment instrument used in - the transaction + the transaction. example: - issuer_type: wire_transfer + issuer: cl bank + card_type: visa nullable: true created_at: description: Time at which the resource was created. @@ -53065,7 +68541,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines - the reference code + the reference code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -53078,7 +68554,43 @@ components: relationships: properties: order: - $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - order + id: + description: The resource ID + versions: + properties: + links: + properties: + self: + description: URL + related: + description: URL + data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource ID + POST_wire_transfers_201_response_data_relationships: + properties: + order: + $ref: '#/components/schemas/POST_adyen_payments_201_response_data_relationships_order' + versions: + $ref: '#/components/schemas/POST_addresses_201_response_data_relationships_versions' POST_wire_transfers_201_response_data: properties: id: @@ -53093,7 +68605,7 @@ components: attributes: $ref: '#/components/schemas/POST_adyen_payments_201_response_data_attributes' relationships: - $ref: '#/components/schemas/GET_transactions_transactionId_200_response_data_relationships' + $ref: '#/components/schemas/POST_wire_transfers_201_response_data_relationships' POST_wire_transfers_201_response: properties: data: @@ -53101,9 +68613,10 @@ components: GET_wire_transfers_wireTransferId_200_response_data_attributes: properties: payment_instrument: - description: Information about the payment instrument used in the transaction + description: Information about the payment instrument used in the transaction. example: - issuer_type: wire_transfer + issuer: cl bank + card_type: visa nullable: true created_at: description: Time at which the resource was created. @@ -53121,7 +68634,7 @@ components: nullable: true reference_origin: description: Any identifier of the third party system that defines the reference - code + code. example: ANY-EXTERNAL-REFEFERNCE-ORIGIN nullable: true metadata: @@ -53145,7 +68658,7 @@ components: attributes: $ref: '#/components/schemas/GET_wire_transfers_wireTransferId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/GET_transactions_transactionId_200_response_data_relationships' + $ref: '#/components/schemas/POST_wire_transfers_201_response_data_relationships' GET_wire_transfers_wireTransferId_200_response: properties: data: @@ -53164,7 +68677,7 @@ components: attributes: $ref: '#/components/schemas/PATCH_billing_info_validation_rules_billingInfoValidationRuleId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/GET_transactions_transactionId_200_response_data_relationships' + $ref: '#/components/schemas/POST_wire_transfers_201_response_data_relationships' PATCH_wire_transfers_wireTransferId_200_response: properties: data: @@ -53182,10 +68695,55 @@ components: properties: data: $ref: '#/components/schemas/address_data_relationships_geocoder_data' + address_data_relationships_events_data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource's id + example: XGZwpOSrWL + address_data_relationships_events: + properties: + data: + $ref: '#/components/schemas/address_data_relationships_events_data' + address_data_relationships_tags_data: + properties: + type: + description: The resource's type + enum: + - tags + id: + description: The resource's id + example: XGZwpOSrWL + address_data_relationships_tags: + properties: + data: + $ref: '#/components/schemas/address_data_relationships_tags_data' + address_data_relationships_versions_data: + properties: + type: + description: The resource's type + enum: + - versions + id: + description: The resource's id + example: XGZwpOSrWL + address_data_relationships_versions: + properties: + data: + $ref: '#/components/schemas/address_data_relationships_versions_data' address_data_relationships: properties: geocoder: $ref: '#/components/schemas/address_data_relationships_geocoder' + events: + $ref: '#/components/schemas/address_data_relationships_events' + tags: + $ref: '#/components/schemas/address_data_relationships_tags' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' address_data: properties: type: @@ -53205,10 +68763,18 @@ components: $ref: '#/components/schemas/address_data_relationships_geocoder_data' required: - data + addressCreate_data_relationships_tags: + properties: + data: + $ref: '#/components/schemas/address_data_relationships_tags_data' + required: + - data addressCreate_data_relationships: properties: geocoder: $ref: '#/components/schemas/addressCreate_data_relationships_geocoder' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' addressCreate_data: properties: type: @@ -53239,6 +68805,10 @@ components: - attributes - id - type + adjustment_data_relationships: + properties: + versions: + $ref: '#/components/schemas/address_data_relationships_versions' adjustment_data: properties: type: @@ -53248,7 +68818,7 @@ components: attributes: $ref: '#/components/schemas/GET_adjustments_adjustmentId_200_response_data_attributes' relationships: - properties: {} + $ref: '#/components/schemas/adjustment_data_relationships' required: - attributes - type @@ -53312,6 +68882,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/adyenGateway_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' adyen_payments: $ref: '#/components/schemas/adyenGateway_data_relationships_adyen_payments' adyenGateway_data: @@ -53399,6 +68971,8 @@ components: $ref: '#/components/schemas/adyenPayment_data_relationships_order' payment_gateway: $ref: '#/components/schemas/adyenPayment_data_relationships_payment_gateway' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' adyenPayment_data: properties: type: @@ -53476,71 +69050,85 @@ components: type: description: The resource's type enum: + - geocoders + - price_lists + - payment_methods + - markets + - customer_groups + - orders + - transactions + - promotions + - tax_calculators + - tax_categories + - skus + - shipping_categories - bundles + - sku_lists + - stock_items + - stock_locations + - returns - carrier_accounts - - customer_groups + - coupon_recipients - customers - delivery_lead_times - - geocoders + - shipping_methods - gift_card_recipients - gift_cards - inventory_models - - markets + - stock_transfers + - sku_options - merchants - - billing_info_validation_rules - - orders + - subscription_models + - shipments + - payment_options - packages - parcels - - payment_methods - - price_lists - prices - - promotions - - returns - - shipments - - shipping_categories - - shipping_methods + - price_tiers + - shipping_method_tiers - shipping_zones - - sku_options - - skus - - stock_items - - stock_locations - - tax_calculators - - tax_categories id: description: The resource's id example: XGZwpOSrWL attachment_data_relationships_attachable: oneOf: + - $ref: '#/components/schemas/geocoder' + - $ref: '#/components/schemas/priceList' + - $ref: '#/components/schemas/paymentMethod' + - $ref: '#/components/schemas/market' + - $ref: '#/components/schemas/customerGroup' + - $ref: '#/components/schemas/order' + - $ref: '#/components/schemas/transaction' + - $ref: '#/components/schemas/promotion' + - $ref: '#/components/schemas/taxCalculator' + - $ref: '#/components/schemas/taxCategory' + - $ref: '#/components/schemas/sku' + - $ref: '#/components/schemas/shippingCategory' - $ref: '#/components/schemas/bundle' + - $ref: '#/components/schemas/skuList' + - $ref: '#/components/schemas/stockItem' + - $ref: '#/components/schemas/stockLocation' + - $ref: '#/components/schemas/return' - $ref: '#/components/schemas/carrierAccount' - - $ref: '#/components/schemas/customerGroup' + - $ref: '#/components/schemas/couponRecipient' - $ref: '#/components/schemas/customer' - $ref: '#/components/schemas/deliveryLeadTime' - - $ref: '#/components/schemas/geocoder' + - $ref: '#/components/schemas/shippingMethod' - $ref: '#/components/schemas/giftCardRecipient' - $ref: '#/components/schemas/giftCard' - $ref: '#/components/schemas/inventoryModel' - - $ref: '#/components/schemas/market' + - $ref: '#/components/schemas/stockTransfer' + - $ref: '#/components/schemas/skuOption' - $ref: '#/components/schemas/merchant' - - $ref: '#/components/schemas/billingInfoValidationRule' - - $ref: '#/components/schemas/order' + - $ref: '#/components/schemas/subscriptionModel' + - $ref: '#/components/schemas/shipment' + - $ref: '#/components/schemas/paymentOption' - $ref: '#/components/schemas/package' - $ref: '#/components/schemas/parcel' - - $ref: '#/components/schemas/paymentMethod' - - $ref: '#/components/schemas/priceList' - $ref: '#/components/schemas/price' - - $ref: '#/components/schemas/promotion' - - $ref: '#/components/schemas/return' - - $ref: '#/components/schemas/shipment' - - $ref: '#/components/schemas/shippingCategory' - - $ref: '#/components/schemas/shippingMethod' + - $ref: '#/components/schemas/priceTier' + - $ref: '#/components/schemas/shippingMethodTier' - $ref: '#/components/schemas/shippingZone' - - $ref: '#/components/schemas/skuOption' - - $ref: '#/components/schemas/sku' - - $ref: '#/components/schemas/stockItem' - - $ref: '#/components/schemas/stockLocation' - - $ref: '#/components/schemas/taxCalculator' - - $ref: '#/components/schemas/taxCategory' properties: data: $ref: '#/components/schemas/attachment_data_relationships_attachable_data' @@ -53563,36 +69151,43 @@ components: - type attachmentCreate_data_relationships_attachable: oneOf: + - $ref: '#/components/schemas/geocoder' + - $ref: '#/components/schemas/priceList' + - $ref: '#/components/schemas/paymentMethod' + - $ref: '#/components/schemas/market' + - $ref: '#/components/schemas/customerGroup' + - $ref: '#/components/schemas/order' + - $ref: '#/components/schemas/transaction' + - $ref: '#/components/schemas/promotion' + - $ref: '#/components/schemas/taxCalculator' + - $ref: '#/components/schemas/taxCategory' + - $ref: '#/components/schemas/sku' + - $ref: '#/components/schemas/shippingCategory' - $ref: '#/components/schemas/bundle' + - $ref: '#/components/schemas/skuList' + - $ref: '#/components/schemas/stockItem' + - $ref: '#/components/schemas/stockLocation' + - $ref: '#/components/schemas/return' - $ref: '#/components/schemas/carrierAccount' - - $ref: '#/components/schemas/customerGroup' + - $ref: '#/components/schemas/couponRecipient' - $ref: '#/components/schemas/customer' - $ref: '#/components/schemas/deliveryLeadTime' - - $ref: '#/components/schemas/geocoder' + - $ref: '#/components/schemas/shippingMethod' - $ref: '#/components/schemas/giftCardRecipient' - $ref: '#/components/schemas/giftCard' - $ref: '#/components/schemas/inventoryModel' - - $ref: '#/components/schemas/market' + - $ref: '#/components/schemas/stockTransfer' + - $ref: '#/components/schemas/skuOption' - $ref: '#/components/schemas/merchant' - - $ref: '#/components/schemas/billingInfoValidationRule' - - $ref: '#/components/schemas/order' + - $ref: '#/components/schemas/subscriptionModel' + - $ref: '#/components/schemas/shipment' + - $ref: '#/components/schemas/paymentOption' - $ref: '#/components/schemas/package' - $ref: '#/components/schemas/parcel' - - $ref: '#/components/schemas/paymentMethod' - - $ref: '#/components/schemas/priceList' - $ref: '#/components/schemas/price' - - $ref: '#/components/schemas/promotion' - - $ref: '#/components/schemas/return' - - $ref: '#/components/schemas/shipment' - - $ref: '#/components/schemas/shippingCategory' - - $ref: '#/components/schemas/shippingMethod' + - $ref: '#/components/schemas/priceTier' + - $ref: '#/components/schemas/shippingMethodTier' - $ref: '#/components/schemas/shippingZone' - - $ref: '#/components/schemas/skuOption' - - $ref: '#/components/schemas/sku' - - $ref: '#/components/schemas/stockItem' - - $ref: '#/components/schemas/stockLocation' - - $ref: '#/components/schemas/taxCalculator' - - $ref: '#/components/schemas/taxCategory' properties: data: $ref: '#/components/schemas/attachment_data_relationships_attachable_data' @@ -53638,55 +69233,59 @@ components: - attributes - id - type - authorization_data_relationships_captures_data: + authorization_data_relationships_attachments_data: properties: type: description: The resource's type enum: - - captures + - attachments id: description: The resource's id example: XGZwpOSrWL - authorization_data_relationships_captures: + authorization_data_relationships_attachments: properties: data: - $ref: '#/components/schemas/authorization_data_relationships_captures_data' - authorization_data_relationships_voids_data: + $ref: '#/components/schemas/authorization_data_relationships_attachments_data' + authorization_data_relationships_captures_data: properties: type: description: The resource's type enum: - - voids + - captures id: description: The resource's id example: XGZwpOSrWL - authorization_data_relationships_voids: + authorization_data_relationships_captures: properties: data: - $ref: '#/components/schemas/authorization_data_relationships_voids_data' - authorization_data_relationships_events_data: + $ref: '#/components/schemas/authorization_data_relationships_captures_data' + authorization_data_relationships_voids_data: properties: type: description: The resource's type enum: - - events + - voids id: description: The resource's id example: XGZwpOSrWL - authorization_data_relationships_events: + authorization_data_relationships_voids: properties: data: - $ref: '#/components/schemas/authorization_data_relationships_events_data' + $ref: '#/components/schemas/authorization_data_relationships_voids_data' authorization_data_relationships: properties: order: $ref: '#/components/schemas/adyenPayment_data_relationships_order' + attachments: + $ref: '#/components/schemas/authorization_data_relationships_attachments' + events: + $ref: '#/components/schemas/address_data_relationships_events' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' captures: $ref: '#/components/schemas/authorization_data_relationships_captures' voids: $ref: '#/components/schemas/authorization_data_relationships_voids' - events: - $ref: '#/components/schemas/authorization_data_relationships_events' authorization_data: properties: type: @@ -53730,19 +69329,6 @@ components: properties: data: $ref: '#/components/schemas/avalaraAccount_data_relationships_markets_data' - avalaraAccount_data_relationships_attachments_data: - properties: - type: - description: The resource's type - enum: - - attachments - id: - description: The resource's id - example: XGZwpOSrWL - avalaraAccount_data_relationships_attachments: - properties: - data: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments_data' avalaraAccount_data_relationships_tax_categories_data: properties: type: @@ -53761,9 +69347,13 @@ components: markets: $ref: '#/components/schemas/avalaraAccount_data_relationships_markets' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' tax_categories: $ref: '#/components/schemas/avalaraAccount_data_relationships_tax_categories' + events: + $ref: '#/components/schemas/address_data_relationships_events' avalaraAccount_data: properties: type: @@ -53834,6 +69424,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/adyenGateway_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' axerve_payments: $ref: '#/components/schemas/axerveGateway_data_relationships_axerve_payments' axerveGateway_data: @@ -53937,7 +69529,9 @@ components: market: $ref: '#/components/schemas/avalaraAccount_data_relationships_markets' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' billingInfoValidationRule_data: properties: type: @@ -54012,10 +69606,12 @@ components: $ref: '#/components/schemas/bingGeocoder_data_relationships_addresses_data' bingGeocoder_data_relationships: properties: + markets: + $ref: '#/components/schemas/avalaraAccount_data_relationships_markets' addresses: $ref: '#/components/schemas/bingGeocoder_data_relationships_addresses' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' bingGeocoder_data: properties: type: @@ -54076,6 +69672,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/adyenGateway_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' braintree_payments: $ref: '#/components/schemas/braintreeGateway_data_relationships_braintree_payments' braintreeGateway_data: @@ -54209,7 +69807,13 @@ components: skus: $ref: '#/components/schemas/bundle_data_relationships_skus' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + events: + $ref: '#/components/schemas/address_data_relationships_events' + tags: + $ref: '#/components/schemas/address_data_relationships_tags' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' bundle_data: properties: type: @@ -54235,6 +69839,8 @@ components: $ref: '#/components/schemas/billingInfoValidationRuleCreate_data_relationships_market' sku_list: $ref: '#/components/schemas/bundleCreate_data_relationships_sku_list' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' required: - sku_list bundleCreate_data: @@ -54250,6 +69856,10 @@ components: required: - attributes - type + bundleUpdate_data_relationships: + properties: + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' bundleUpdate_data: properties: type: @@ -54262,7 +69872,214 @@ components: attributes: $ref: '#/components/schemas/PATCH_bundles_bundleId_200_response_data_attributes' relationships: - properties: {} + $ref: '#/components/schemas/bundleUpdate_data_relationships' + required: + - attributes + - id + - type + buyXPayYPromotion_data_relationships_promotion_rules_data: + properties: + type: + description: The resource's type + enum: + - promotion_rules + id: + description: The resource's id + example: XGZwpOSrWL + buyXPayYPromotion_data_relationships_promotion_rules: + properties: + data: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_promotion_rules_data' + buyXPayYPromotion_data_relationships_order_amount_promotion_rule_data: + properties: + type: + description: The resource's type + enum: + - order_amount_promotion_rules + id: + description: The resource's id + example: XGZwpOSrWL + buyXPayYPromotion_data_relationships_order_amount_promotion_rule: + properties: + data: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_order_amount_promotion_rule_data' + buyXPayYPromotion_data_relationships_sku_list_promotion_rule_data: + properties: + type: + description: The resource's type + enum: + - sku_list_promotion_rules + id: + description: The resource's id + example: XGZwpOSrWL + buyXPayYPromotion_data_relationships_sku_list_promotion_rule: + properties: + data: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_sku_list_promotion_rule_data' + buyXPayYPromotion_data_relationships_coupon_codes_promotion_rule_data: + properties: + type: + description: The resource's type + enum: + - coupon_codes_promotion_rules + id: + description: The resource's id + example: XGZwpOSrWL + buyXPayYPromotion_data_relationships_coupon_codes_promotion_rule: + properties: + data: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_coupon_codes_promotion_rule_data' + buyXPayYPromotion_data_relationships_custom_promotion_rule_data: + properties: + type: + description: The resource's type + enum: + - custom_promotion_rules + id: + description: The resource's id + example: XGZwpOSrWL + buyXPayYPromotion_data_relationships_custom_promotion_rule: + properties: + data: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_custom_promotion_rule_data' + buyXPayYPromotion_data_relationships_coupons_data: + properties: + type: + description: The resource's type + enum: + - coupons + id: + description: The resource's id + example: XGZwpOSrWL + buyXPayYPromotion_data_relationships_coupons: + properties: + data: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_coupons_data' + buyXPayYPromotion_data_relationships: + properties: + market: + $ref: '#/components/schemas/avalaraAccount_data_relationships_markets' + promotion_rules: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_promotion_rules' + order_amount_promotion_rule: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_order_amount_promotion_rule' + sku_list_promotion_rule: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_sku_list_promotion_rule' + coupon_codes_promotion_rule: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_coupon_codes_promotion_rule' + custom_promotion_rule: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_custom_promotion_rule' + sku_list: + $ref: '#/components/schemas/bundle_data_relationships_sku_list' + coupons: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_coupons' + attachments: + $ref: '#/components/schemas/authorization_data_relationships_attachments' + events: + $ref: '#/components/schemas/address_data_relationships_events' + tags: + $ref: '#/components/schemas/address_data_relationships_tags' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' + skus: + $ref: '#/components/schemas/bundle_data_relationships_skus' + buyXPayYPromotion_data: + properties: + type: + description: The resource's type + enum: + - buy_x_pay_y_promotions + attributes: + $ref: '#/components/schemas/GET_buy_x_pay_y_promotions_buyXPayYPromotionId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships' + required: + - attributes + - type + buyXPayYPromotionCreate_data_relationships_order_amount_promotion_rule: + properties: + data: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_order_amount_promotion_rule_data' + required: + - data + buyXPayYPromotionCreate_data_relationships_sku_list_promotion_rule: + properties: + data: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_sku_list_promotion_rule_data' + required: + - data + buyXPayYPromotionCreate_data_relationships_coupon_codes_promotion_rule: + properties: + data: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_coupon_codes_promotion_rule_data' + required: + - data + buyXPayYPromotionCreate_data_relationships_custom_promotion_rule: + properties: + data: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_custom_promotion_rule_data' + required: + - data + buyXPayYPromotionCreate_data_relationships: + properties: + market: + $ref: '#/components/schemas/billingInfoValidationRuleCreate_data_relationships_market' + order_amount_promotion_rule: + $ref: '#/components/schemas/buyXPayYPromotionCreate_data_relationships_order_amount_promotion_rule' + sku_list_promotion_rule: + $ref: '#/components/schemas/buyXPayYPromotionCreate_data_relationships_sku_list_promotion_rule' + coupon_codes_promotion_rule: + $ref: '#/components/schemas/buyXPayYPromotionCreate_data_relationships_coupon_codes_promotion_rule' + custom_promotion_rule: + $ref: '#/components/schemas/buyXPayYPromotionCreate_data_relationships_custom_promotion_rule' + sku_list: + $ref: '#/components/schemas/bundleCreate_data_relationships_sku_list' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' + required: + - sku_list + buyXPayYPromotionCreate_data: + properties: + type: + description: The resource's type + enum: + - buy_x_pay_y_promotions + attributes: + $ref: '#/components/schemas/POST_buy_x_pay_y_promotions_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/buyXPayYPromotionCreate_data_relationships' + required: + - attributes + - type + buyXPayYPromotionUpdate_data_relationships: + properties: + market: + $ref: '#/components/schemas/billingInfoValidationRuleCreate_data_relationships_market' + order_amount_promotion_rule: + $ref: '#/components/schemas/buyXPayYPromotionCreate_data_relationships_order_amount_promotion_rule' + sku_list_promotion_rule: + $ref: '#/components/schemas/buyXPayYPromotionCreate_data_relationships_sku_list_promotion_rule' + coupon_codes_promotion_rule: + $ref: '#/components/schemas/buyXPayYPromotionCreate_data_relationships_coupon_codes_promotion_rule' + custom_promotion_rule: + $ref: '#/components/schemas/buyXPayYPromotionCreate_data_relationships_custom_promotion_rule' + sku_list: + $ref: '#/components/schemas/bundleCreate_data_relationships_sku_list' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' + buyXPayYPromotionUpdate_data: + properties: + type: + description: The resource's type + enum: + - buy_x_pay_y_promotions + id: + description: The resource's id + example: XGZwpOSrWL + attributes: + $ref: '#/components/schemas/PATCH_buy_x_pay_y_promotions_buyXPayYPromotionId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/buyXPayYPromotionUpdate_data_relationships' required: - attributes - id @@ -54293,16 +70110,35 @@ components: properties: data: $ref: '#/components/schemas/capture_data_relationships_refunds_data' + capture_data_relationships_return_data: + properties: + type: + description: The resource's type + enum: + - returns + id: + description: The resource's id + example: XGZwpOSrWL + capture_data_relationships_return: + properties: + data: + $ref: '#/components/schemas/capture_data_relationships_return_data' capture_data_relationships: properties: order: $ref: '#/components/schemas/adyenPayment_data_relationships_order' + attachments: + $ref: '#/components/schemas/authorization_data_relationships_attachments' + events: + $ref: '#/components/schemas/address_data_relationships_events' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' reference_authorization: $ref: '#/components/schemas/capture_data_relationships_reference_authorization' refunds: $ref: '#/components/schemas/capture_data_relationships_refunds' - events: - $ref: '#/components/schemas/authorization_data_relationships_events' + return: + $ref: '#/components/schemas/capture_data_relationships_return' capture_data: properties: type: @@ -54346,6 +70182,36 @@ components: required: - attributes - type + carrierAccountCreate_data: + properties: + type: + description: The resource's type + enum: + - carrier_accounts + attributes: + $ref: '#/components/schemas/POST_carrier_accounts_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/billingInfoValidationRuleUpdate_data_relationships' + required: + - attributes + - type + carrierAccountUpdate_data: + properties: + type: + description: The resource's type + enum: + - carrier_accounts + id: + description: The resource's id + example: XGZwpOSrWL + attributes: + $ref: '#/components/schemas/PATCH_carrier_accounts_carrierAccountId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/billingInfoValidationRuleUpdate_data_relationships' + required: + - attributes + - id + - type checkoutComGateway_data_relationships_checkout_com_payments_data: properties: type: @@ -54363,6 +70229,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/adyenGateway_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' checkout_com_payments: $ref: '#/components/schemas/checkoutComGateway_data_relationships_checkout_com_payments' checkoutComGateway_data: @@ -54464,7 +70332,9 @@ components: cleanup_data_relationships: properties: events: - $ref: '#/components/schemas/authorization_data_relationships_events' + $ref: '#/components/schemas/address_data_relationships_events' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' cleanup_data: properties: type: @@ -54491,6 +70361,23 @@ components: required: - attributes - type + cleanupUpdate_data: + properties: + type: + description: The resource's type + enum: + - cleanups + id: + description: The resource's id + example: XGZwpOSrWL + attributes: + $ref: '#/components/schemas/PATCH_billing_info_validation_rules_billingInfoValidationRuleId_200_response_data_attributes' + relationships: + properties: {} + required: + - attributes + - id + - type couponCodesPromotionRule_data_relationships_promotion_data: properties: type: @@ -54498,10 +70385,12 @@ components: enum: - percentage_discount_promotions - free_shipping_promotions + - buy_x_pay_y_promotions - free_gift_promotions - fixed_price_promotions - external_promotions - fixed_amount_promotions + - flex_promotions id: description: The resource's id example: XGZwpOSrWL @@ -54509,32 +70398,23 @@ components: oneOf: - $ref: '#/components/schemas/percentageDiscountPromotion' - $ref: '#/components/schemas/freeShippingPromotion' + - $ref: '#/components/schemas/buyXPayYPromotion' - $ref: '#/components/schemas/freeGiftPromotion' - $ref: '#/components/schemas/fixedPricePromotion' - $ref: '#/components/schemas/externalPromotion' - $ref: '#/components/schemas/fixedAmountPromotion' + - $ref: '#/components/schemas/flexPromotion' properties: data: $ref: '#/components/schemas/couponCodesPromotionRule_data_relationships_promotion_data' - couponCodesPromotionRule_data_relationships_coupons_data: - properties: - type: - description: The resource's type - enum: - - coupons - id: - description: The resource's id - example: XGZwpOSrWL - couponCodesPromotionRule_data_relationships_coupons: - properties: - data: - $ref: '#/components/schemas/couponCodesPromotionRule_data_relationships_coupons_data' couponCodesPromotionRule_data_relationships: properties: promotion: $ref: '#/components/schemas/couponCodesPromotionRule_data_relationships_promotion' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' coupons: - $ref: '#/components/schemas/couponCodesPromotionRule_data_relationships_coupons' + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_coupons' couponCodesPromotionRule_data: properties: type: @@ -54542,7 +70422,7 @@ components: enum: - coupon_codes_promotion_rules attributes: - $ref: '#/components/schemas/GET_billing_info_validation_rules_billingInfoValidationRuleId_200_response_data_attributes' + $ref: '#/components/schemas/GET_coupon_codes_promotion_rules_couponCodesPromotionRuleId_200_response_data_attributes' relationships: $ref: '#/components/schemas/couponCodesPromotionRule_data_relationships' required: @@ -54552,10 +70432,12 @@ components: oneOf: - $ref: '#/components/schemas/percentageDiscountPromotion' - $ref: '#/components/schemas/freeShippingPromotion' + - $ref: '#/components/schemas/buyXPayYPromotion' - $ref: '#/components/schemas/freeGiftPromotion' - $ref: '#/components/schemas/fixedPricePromotion' - $ref: '#/components/schemas/externalPromotion' - $ref: '#/components/schemas/fixedAmountPromotion' + - $ref: '#/components/schemas/flexPromotion' properties: data: $ref: '#/components/schemas/couponCodesPromotionRule_data_relationships_promotion_data' @@ -54564,7 +70446,7 @@ components: couponCodesPromotionRuleCreate_data_relationships_coupons: properties: data: - $ref: '#/components/schemas/couponCodesPromotionRule_data_relationships_coupons_data' + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_coupons_data' required: - data couponCodesPromotionRuleCreate_data_relationships: @@ -54629,7 +70511,9 @@ components: customer: $ref: '#/components/schemas/couponRecipient_data_relationships_customer' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' couponRecipient_data: properties: type: @@ -54683,23 +70567,31 @@ components: - attributes - id - type - coupon_data_relationships_promotion_rule_data: + coupon_data_relationships_coupon_recipient_data: properties: type: description: The resource's type enum: - - coupon_codes_promotion_rules + - coupon_recipients id: description: The resource's id example: XGZwpOSrWL - coupon_data_relationships_promotion_rule: + coupon_data_relationships_coupon_recipient: properties: data: - $ref: '#/components/schemas/coupon_data_relationships_promotion_rule_data' + $ref: '#/components/schemas/coupon_data_relationships_coupon_recipient_data' coupon_data_relationships: properties: promotion_rule: - $ref: '#/components/schemas/coupon_data_relationships_promotion_rule' + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_coupon_codes_promotion_rule' + coupon_recipient: + $ref: '#/components/schemas/coupon_data_relationships_coupon_recipient' + events: + $ref: '#/components/schemas/address_data_relationships_events' + tags: + $ref: '#/components/schemas/address_data_relationships_tags' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' coupon_data: properties: type: @@ -54713,16 +70605,20 @@ components: required: - attributes - type - couponCreate_data_relationships_promotion_rule: + couponCreate_data_relationships_coupon_recipient: properties: data: - $ref: '#/components/schemas/coupon_data_relationships_promotion_rule_data' + $ref: '#/components/schemas/coupon_data_relationships_coupon_recipient_data' required: - data couponCreate_data_relationships: properties: promotion_rule: - $ref: '#/components/schemas/couponCreate_data_relationships_promotion_rule' + $ref: '#/components/schemas/buyXPayYPromotionCreate_data_relationships_coupon_codes_promotion_rule' + coupon_recipient: + $ref: '#/components/schemas/couponCreate_data_relationships_coupon_recipient' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' required: - promotion_rule couponCreate_data: @@ -54741,7 +70637,11 @@ components: couponUpdate_data_relationships: properties: promotion_rule: - $ref: '#/components/schemas/couponCreate_data_relationships_promotion_rule' + $ref: '#/components/schemas/buyXPayYPromotionCreate_data_relationships_coupon_codes_promotion_rule' + coupon_recipient: + $ref: '#/components/schemas/couponCreate_data_relationships_coupon_recipient' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' couponUpdate_data: properties: type: @@ -54759,6 +70659,65 @@ components: - attributes - id - type + customPromotionRule_data_relationships: + properties: + promotion: + $ref: '#/components/schemas/couponCodesPromotionRule_data_relationships_promotion' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' + customPromotionRule_data: + properties: + type: + description: The resource's type + enum: + - custom_promotion_rules + attributes: + $ref: '#/components/schemas/GET_custom_promotion_rules_customPromotionRuleId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/customPromotionRule_data_relationships' + required: + - attributes + - type + customPromotionRuleCreate_data_relationships: + properties: + promotion: + $ref: '#/components/schemas/couponCodesPromotionRuleCreate_data_relationships_promotion' + required: + - promotion + customPromotionRuleCreate_data: + properties: + type: + description: The resource's type + enum: + - custom_promotion_rules + attributes: + $ref: '#/components/schemas/POST_custom_promotion_rules_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/customPromotionRuleCreate_data_relationships' + required: + - attributes + - type + customPromotionRuleUpdate_data_relationships: + properties: + promotion: + $ref: '#/components/schemas/couponCodesPromotionRuleCreate_data_relationships_promotion' + customPromotionRuleUpdate_data: + properties: + type: + description: The resource's type + enum: + - custom_promotion_rules + id: + description: The resource's id + example: XGZwpOSrWL + attributes: + $ref: '#/components/schemas/PATCH_custom_promotion_rules_customPromotionRuleId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/customPromotionRuleUpdate_data_relationships' + required: + - attributes + - id + - type customerAddress_data_relationships: properties: customer: @@ -54766,7 +70725,9 @@ components: address: $ref: '#/components/schemas/bingGeocoder_data_relationships_addresses' events: - $ref: '#/components/schemas/authorization_data_relationships_events' + $ref: '#/components/schemas/address_data_relationships_events' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' customerAddress_data: properties: type: @@ -54802,7 +70763,7 @@ components: enum: - customer_addresses attributes: - $ref: '#/components/schemas/POST_adyen_payments_201_response_data_attributes' + $ref: '#/components/schemas/POST_customer_addresses_201_response_data_attributes' relationships: $ref: '#/components/schemas/customerAddressCreate_data_relationships' required: @@ -54838,7 +70799,9 @@ components: markets: $ref: '#/components/schemas/avalaraAccount_data_relationships_markets' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' customerGroup_data: properties: type: @@ -54887,7 +70850,7 @@ components: customer: $ref: '#/components/schemas/couponRecipient_data_relationships_customer' events: - $ref: '#/components/schemas/authorization_data_relationships_events' + $ref: '#/components/schemas/address_data_relationships_events' customerPasswordReset_data: properties: type: @@ -54968,8 +70931,12 @@ components: properties: customer: $ref: '#/components/schemas/couponRecipient_data_relationships_customer' + payment_method: + $ref: '#/components/schemas/adyenGateway_data_relationships_payment_methods' payment_source: $ref: '#/components/schemas/customerPaymentSource_data_relationships_payment_source' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' customerPaymentSource_data: properties: type: @@ -54983,6 +70950,12 @@ components: required: - attributes - type + customerPaymentSourceCreate_data_relationships_payment_method: + properties: + data: + $ref: '#/components/schemas/adyenGateway_data_relationships_payment_methods_data' + required: + - data customerPaymentSourceCreate_data_relationships_payment_source: oneOf: - $ref: '#/components/schemas/adyenPayment' @@ -55004,11 +70977,12 @@ components: properties: customer: $ref: '#/components/schemas/couponRecipientCreate_data_relationships_customer' + payment_method: + $ref: '#/components/schemas/customerPaymentSourceCreate_data_relationships_payment_method' payment_source: $ref: '#/components/schemas/customerPaymentSourceCreate_data_relationships_payment_source' required: - customer - - payment_source customerPaymentSourceCreate_data: properties: type: @@ -55016,7 +70990,7 @@ components: enum: - customer_payment_sources attributes: - $ref: '#/components/schemas/POST_adyen_payments_201_response_data_attributes' + $ref: '#/components/schemas/POST_customer_payment_sources_201_response_data_attributes' relationships: $ref: '#/components/schemas/customerPaymentSourceCreate_data_relationships' required: @@ -55026,6 +71000,8 @@ components: properties: customer: $ref: '#/components/schemas/couponRecipientCreate_data_relationships_customer' + payment_method: + $ref: '#/components/schemas/customerPaymentSourceCreate_data_relationships_payment_method' payment_source: $ref: '#/components/schemas/customerPaymentSourceCreate_data_relationships_payment_source' customerPaymentSourceUpdate_data: @@ -55038,13 +71014,21 @@ components: description: The resource's id example: XGZwpOSrWL attributes: - $ref: '#/components/schemas/PATCH_billing_info_validation_rules_billingInfoValidationRuleId_200_response_data_attributes' + $ref: '#/components/schemas/PATCH_customer_payment_sources_customerPaymentSourceId_200_response_data_attributes' relationships: $ref: '#/components/schemas/customerPaymentSourceUpdate_data_relationships' required: - attributes - id - type + customerSubscription_data_relationships: + properties: + customer: + $ref: '#/components/schemas/couponRecipient_data_relationships_customer' + events: + $ref: '#/components/schemas/address_data_relationships_events' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' customerSubscription_data: properties: type: @@ -55054,7 +71038,7 @@ components: attributes: $ref: '#/components/schemas/GET_customer_subscriptions_customerSubscriptionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/customerPasswordReset_data_relationships' + $ref: '#/components/schemas/customerSubscription_data_relationships' required: - attributes - type @@ -55081,7 +71065,7 @@ components: description: The resource's id example: XGZwpOSrWL attributes: - $ref: '#/components/schemas/PATCH_billing_info_validation_rules_billingInfoValidationRuleId_200_response_data_attributes' + $ref: '#/components/schemas/PATCH_customer_subscriptions_customerSubscriptionId_200_response_data_attributes' relationships: properties: {} required: @@ -55153,19 +71137,6 @@ components: properties: data: $ref: '#/components/schemas/customer_data_relationships_order_subscriptions_data' - customer_data_relationships_returns_data: - properties: - type: - description: The resource's type - enum: - - returns - id: - description: The resource's id - example: XGZwpOSrWL - customer_data_relationships_returns: - properties: - data: - $ref: '#/components/schemas/customer_data_relationships_returns_data' customer_data_relationships: properties: customer_group: @@ -55181,13 +71152,15 @@ components: order_subscriptions: $ref: '#/components/schemas/customer_data_relationships_order_subscriptions' returns: - $ref: '#/components/schemas/customer_data_relationships_returns' + $ref: '#/components/schemas/capture_data_relationships_return' sku_lists: $ref: '#/components/schemas/bundle_data_relationships_sku_list' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' events: - $ref: '#/components/schemas/authorization_data_relationships_events' + $ref: '#/components/schemas/address_data_relationships_events' + tags: + $ref: '#/components/schemas/address_data_relationships_tags' customer_data: properties: type: @@ -55211,6 +71184,8 @@ components: properties: customer_group: $ref: '#/components/schemas/customerCreate_data_relationships_customer_group' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' customerCreate_data: properties: type: @@ -55274,7 +71249,9 @@ components: shipping_method: $ref: '#/components/schemas/deliveryLeadTime_data_relationships_shipping_method' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' deliveryLeadTime_data: properties: type: @@ -55390,10 +71367,10 @@ components: $ref: '#/components/schemas/event_data_relationships_last_event_callbacks_data' event_data_relationships: properties: - last_event_callbacks: - $ref: '#/components/schemas/event_data_relationships_last_event_callbacks' webhooks: $ref: '#/components/schemas/eventCallback_data_relationships_webhook' + last_event_callbacks: + $ref: '#/components/schemas/event_data_relationships_last_event_callbacks' event_data: properties: type: @@ -55407,6 +71384,27 @@ components: required: - attributes - type + eventUpdate_data: + properties: + type: + description: The resource's type + enum: + - events + id: + description: The resource's id + example: XGZwpOSrWL + attributes: + $ref: '#/components/schemas/PATCH_events_eventId_200_response_data_attributes' + relationships: + properties: {} + required: + - attributes + - id + - type + export_data_relationships: + properties: + events: + $ref: '#/components/schemas/address_data_relationships_events' export_data: properties: type: @@ -55416,7 +71414,7 @@ components: attributes: $ref: '#/components/schemas/GET_exports_exportId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/cleanup_data_relationships' + $ref: '#/components/schemas/export_data_relationships' required: - attributes - type @@ -55433,6 +71431,23 @@ components: required: - attributes - type + exportUpdate_data: + properties: + type: + description: The resource's type + enum: + - exports + id: + description: The resource's id + example: XGZwpOSrWL + attributes: + $ref: '#/components/schemas/PATCH_billing_info_validation_rules_billingInfoValidationRuleId_200_response_data_attributes' + relationships: + properties: {} + required: + - attributes + - id + - type externalGateway_data_relationships_external_payments_data: properties: type: @@ -55450,6 +71465,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/adyenGateway_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' external_payments: $ref: '#/components/schemas/externalGateway_data_relationships_external_payments' externalGateway_data: @@ -55503,6 +71520,8 @@ components: $ref: '#/components/schemas/adyenPayment_data_relationships_payment_gateway' wallet: $ref: '#/components/schemas/customer_data_relationships_customer_payment_sources' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' externalPayment_data: properties: type: @@ -55546,61 +71565,6 @@ components: - attributes - id - type - externalPromotion_data_relationships_promotion_rules_data: - properties: - type: - description: The resource's type - enum: - - promotion_rules - id: - description: The resource's id - example: XGZwpOSrWL - externalPromotion_data_relationships_promotion_rules: - properties: - data: - $ref: '#/components/schemas/externalPromotion_data_relationships_promotion_rules_data' - externalPromotion_data_relationships_order_amount_promotion_rule_data: - properties: - type: - description: The resource's type - enum: - - order_amount_promotion_rules - id: - description: The resource's id - example: XGZwpOSrWL - externalPromotion_data_relationships_order_amount_promotion_rule: - properties: - data: - $ref: '#/components/schemas/externalPromotion_data_relationships_order_amount_promotion_rule_data' - externalPromotion_data_relationships_sku_list_promotion_rule_data: - properties: - type: - description: The resource's type - enum: - - sku_list_promotion_rules - id: - description: The resource's id - example: XGZwpOSrWL - externalPromotion_data_relationships_sku_list_promotion_rule: - properties: - data: - $ref: '#/components/schemas/externalPromotion_data_relationships_sku_list_promotion_rule_data' - externalPromotion_data_relationships: - properties: - market: - $ref: '#/components/schemas/avalaraAccount_data_relationships_markets' - promotion_rules: - $ref: '#/components/schemas/externalPromotion_data_relationships_promotion_rules' - order_amount_promotion_rule: - $ref: '#/components/schemas/externalPromotion_data_relationships_order_amount_promotion_rule' - sku_list_promotion_rule: - $ref: '#/components/schemas/externalPromotion_data_relationships_sku_list_promotion_rule' - coupon_codes_promotion_rule: - $ref: '#/components/schemas/coupon_data_relationships_promotion_rule' - attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' - events: - $ref: '#/components/schemas/authorization_data_relationships_events' externalPromotion_data: properties: type: @@ -55610,40 +71574,10 @@ components: attributes: $ref: '#/components/schemas/GET_external_promotions_externalPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/externalPromotion_data_relationships' + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships' required: - attributes - type - externalPromotionCreate_data_relationships_promotion_rules: - properties: - data: - $ref: '#/components/schemas/externalPromotion_data_relationships_promotion_rules_data' - required: - - data - externalPromotionCreate_data_relationships_order_amount_promotion_rule: - properties: - data: - $ref: '#/components/schemas/externalPromotion_data_relationships_order_amount_promotion_rule_data' - required: - - data - externalPromotionCreate_data_relationships_sku_list_promotion_rule: - properties: - data: - $ref: '#/components/schemas/externalPromotion_data_relationships_sku_list_promotion_rule_data' - required: - - data - externalPromotionCreate_data_relationships: - properties: - market: - $ref: '#/components/schemas/billingInfoValidationRuleCreate_data_relationships_market' - promotion_rules: - $ref: '#/components/schemas/externalPromotionCreate_data_relationships_promotion_rules' - order_amount_promotion_rule: - $ref: '#/components/schemas/externalPromotionCreate_data_relationships_order_amount_promotion_rule' - sku_list_promotion_rule: - $ref: '#/components/schemas/externalPromotionCreate_data_relationships_sku_list_promotion_rule' - coupon_codes_promotion_rule: - $ref: '#/components/schemas/couponCreate_data_relationships_promotion_rule' externalPromotionCreate_data: properties: type: @@ -55653,7 +71587,7 @@ components: attributes: $ref: '#/components/schemas/POST_external_promotions_201_response_data_attributes' relationships: - $ref: '#/components/schemas/externalPromotionCreate_data_relationships' + $ref: '#/components/schemas/buyXPayYPromotionUpdate_data_relationships' required: - attributes - type @@ -55669,7 +71603,7 @@ components: attributes: $ref: '#/components/schemas/PATCH_external_promotions_externalPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/externalPromotionCreate_data_relationships' + $ref: '#/components/schemas/buyXPayYPromotionUpdate_data_relationships' required: - attributes - id @@ -55679,7 +71613,9 @@ components: markets: $ref: '#/components/schemas/avalaraAccount_data_relationships_markets' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' externalTaxCalculator_data: properties: type: @@ -55732,7 +71668,7 @@ components: attributes: $ref: '#/components/schemas/GET_fixed_amount_promotions_fixedAmountPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/externalPromotion_data_relationships' + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships' required: - attributes - type @@ -55745,7 +71681,7 @@ components: attributes: $ref: '#/components/schemas/POST_fixed_amount_promotions_201_response_data_attributes' relationships: - $ref: '#/components/schemas/externalPromotionCreate_data_relationships' + $ref: '#/components/schemas/buyXPayYPromotionUpdate_data_relationships' required: - attributes - type @@ -55761,31 +71697,11 @@ components: attributes: $ref: '#/components/schemas/PATCH_fixed_amount_promotions_fixedAmountPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/externalPromotionCreate_data_relationships' + $ref: '#/components/schemas/buyXPayYPromotionUpdate_data_relationships' required: - attributes - id - type - fixedPricePromotion_data_relationships: - properties: - market: - $ref: '#/components/schemas/avalaraAccount_data_relationships_markets' - promotion_rules: - $ref: '#/components/schemas/externalPromotion_data_relationships_promotion_rules' - order_amount_promotion_rule: - $ref: '#/components/schemas/externalPromotion_data_relationships_order_amount_promotion_rule' - sku_list_promotion_rule: - $ref: '#/components/schemas/externalPromotion_data_relationships_sku_list_promotion_rule' - coupon_codes_promotion_rule: - $ref: '#/components/schemas/coupon_data_relationships_promotion_rule' - attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' - events: - $ref: '#/components/schemas/authorization_data_relationships_events' - sku_list: - $ref: '#/components/schemas/bundle_data_relationships_sku_list' - skus: - $ref: '#/components/schemas/bundle_data_relationships_skus' fixedPricePromotion_data: properties: type: @@ -55795,26 +71711,10 @@ components: attributes: $ref: '#/components/schemas/GET_fixed_price_promotions_fixedPricePromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/fixedPricePromotion_data_relationships' + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships' required: - attributes - type - fixedPricePromotionCreate_data_relationships: - properties: - market: - $ref: '#/components/schemas/billingInfoValidationRuleCreate_data_relationships_market' - promotion_rules: - $ref: '#/components/schemas/externalPromotionCreate_data_relationships_promotion_rules' - order_amount_promotion_rule: - $ref: '#/components/schemas/externalPromotionCreate_data_relationships_order_amount_promotion_rule' - sku_list_promotion_rule: - $ref: '#/components/schemas/externalPromotionCreate_data_relationships_sku_list_promotion_rule' - coupon_codes_promotion_rule: - $ref: '#/components/schemas/couponCreate_data_relationships_promotion_rule' - sku_list: - $ref: '#/components/schemas/bundleCreate_data_relationships_sku_list' - required: - - sku_list fixedPricePromotionCreate_data: properties: type: @@ -55824,24 +71724,10 @@ components: attributes: $ref: '#/components/schemas/POST_fixed_price_promotions_201_response_data_attributes' relationships: - $ref: '#/components/schemas/fixedPricePromotionCreate_data_relationships' + $ref: '#/components/schemas/buyXPayYPromotionCreate_data_relationships' required: - attributes - type - fixedPricePromotionUpdate_data_relationships: - properties: - market: - $ref: '#/components/schemas/billingInfoValidationRuleCreate_data_relationships_market' - promotion_rules: - $ref: '#/components/schemas/externalPromotionCreate_data_relationships_promotion_rules' - order_amount_promotion_rule: - $ref: '#/components/schemas/externalPromotionCreate_data_relationships_order_amount_promotion_rule' - sku_list_promotion_rule: - $ref: '#/components/schemas/externalPromotionCreate_data_relationships_sku_list_promotion_rule' - coupon_codes_promotion_rule: - $ref: '#/components/schemas/couponCreate_data_relationships_promotion_rule' - sku_list: - $ref: '#/components/schemas/bundleCreate_data_relationships_sku_list' fixedPricePromotionUpdate_data: properties: type: @@ -55854,7 +71740,70 @@ components: attributes: $ref: '#/components/schemas/PATCH_fixed_price_promotions_fixedPricePromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/fixedPricePromotionUpdate_data_relationships' + $ref: '#/components/schemas/buyXPayYPromotionUpdate_data_relationships' + required: + - attributes + - id + - type + flexPromotion_data_relationships: + properties: + coupon_codes_promotion_rule: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_coupon_codes_promotion_rule' + coupons: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_coupons' + attachments: + $ref: '#/components/schemas/authorization_data_relationships_attachments' + events: + $ref: '#/components/schemas/address_data_relationships_events' + tags: + $ref: '#/components/schemas/address_data_relationships_tags' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' + flexPromotion_data: + properties: + type: + description: The resource's type + enum: + - flex_promotions + attributes: + $ref: '#/components/schemas/GET_flex_promotions_flexPromotionId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/flexPromotion_data_relationships' + required: + - attributes + - type + flexPromotionCreate_data_relationships: + properties: + coupon_codes_promotion_rule: + $ref: '#/components/schemas/buyXPayYPromotionCreate_data_relationships_coupon_codes_promotion_rule' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' + flexPromotionCreate_data: + properties: + type: + description: The resource's type + enum: + - flex_promotions + attributes: + $ref: '#/components/schemas/POST_flex_promotions_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/flexPromotionCreate_data_relationships' + required: + - attributes + - type + flexPromotionUpdate_data: + properties: + type: + description: The resource's type + enum: + - flex_promotions + id: + description: The resource's id + example: XGZwpOSrWL + attributes: + $ref: '#/components/schemas/PATCH_flex_promotions_flexPromotionId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/flexPromotionCreate_data_relationships' required: - attributes - id @@ -55868,7 +71817,7 @@ components: attributes: $ref: '#/components/schemas/GET_free_gift_promotions_freeGiftPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/fixedPricePromotion_data_relationships' + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships' required: - attributes - type @@ -55881,7 +71830,7 @@ components: attributes: $ref: '#/components/schemas/POST_free_gift_promotions_201_response_data_attributes' relationships: - $ref: '#/components/schemas/fixedPricePromotionCreate_data_relationships' + $ref: '#/components/schemas/buyXPayYPromotionCreate_data_relationships' required: - attributes - type @@ -55897,11 +71846,37 @@ components: attributes: $ref: '#/components/schemas/PATCH_free_gift_promotions_freeGiftPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/fixedPricePromotionUpdate_data_relationships' + $ref: '#/components/schemas/buyXPayYPromotionUpdate_data_relationships' required: - attributes - id - type + freeShippingPromotion_data_relationships: + properties: + market: + $ref: '#/components/schemas/avalaraAccount_data_relationships_markets' + promotion_rules: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_promotion_rules' + order_amount_promotion_rule: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_order_amount_promotion_rule' + sku_list_promotion_rule: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_sku_list_promotion_rule' + coupon_codes_promotion_rule: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_coupon_codes_promotion_rule' + custom_promotion_rule: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_custom_promotion_rule' + sku_list: + $ref: '#/components/schemas/bundle_data_relationships_sku_list' + coupons: + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships_coupons' + attachments: + $ref: '#/components/schemas/authorization_data_relationships_attachments' + events: + $ref: '#/components/schemas/address_data_relationships_events' + tags: + $ref: '#/components/schemas/address_data_relationships_tags' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' freeShippingPromotion_data: properties: type: @@ -55911,7 +71886,7 @@ components: attributes: $ref: '#/components/schemas/GET_free_shipping_promotions_freeShippingPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/externalPromotion_data_relationships' + $ref: '#/components/schemas/freeShippingPromotion_data_relationships' required: - attributes - type @@ -55924,7 +71899,7 @@ components: attributes: $ref: '#/components/schemas/POST_free_shipping_promotions_201_response_data_attributes' relationships: - $ref: '#/components/schemas/externalPromotionCreate_data_relationships' + $ref: '#/components/schemas/buyXPayYPromotionUpdate_data_relationships' required: - attributes - type @@ -55940,7 +71915,7 @@ components: attributes: $ref: '#/components/schemas/PATCH_free_shipping_promotions_freeShippingPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/externalPromotionCreate_data_relationships' + $ref: '#/components/schemas/buyXPayYPromotionUpdate_data_relationships' required: - attributes - id @@ -56021,9 +71996,13 @@ components: gift_card_recipient: $ref: '#/components/schemas/giftCard_data_relationships_gift_card_recipient' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' events: - $ref: '#/components/schemas/authorization_data_relationships_events' + $ref: '#/components/schemas/address_data_relationships_events' + tags: + $ref: '#/components/schemas/address_data_relationships_tags' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' giftCard_data: properties: type: @@ -56049,6 +72028,8 @@ components: $ref: '#/components/schemas/billingInfoValidationRuleCreate_data_relationships_market' gift_card_recipient: $ref: '#/components/schemas/giftCardCreate_data_relationships_gift_card_recipient' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' giftCardCreate_data: properties: type: @@ -56131,7 +72112,7 @@ components: attributes: $ref: '#/components/schemas/GET_imports_importId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/cleanup_data_relationships' + $ref: '#/components/schemas/export_data_relationships' required: - attributes - type @@ -56148,6 +72129,23 @@ components: required: - attributes - type + importUpdate_data: + properties: + type: + description: The resource's type + enum: + - imports + id: + description: The resource's id + example: XGZwpOSrWL + attributes: + $ref: '#/components/schemas/PATCH_billing_info_validation_rules_billingInfoValidationRuleId_200_response_data_attributes' + relationships: + properties: {} + required: + - attributes + - id + - type inStockSubscription_data_relationships: properties: market: @@ -56157,7 +72155,9 @@ components: sku: $ref: '#/components/schemas/bundle_data_relationships_skus' events: - $ref: '#/components/schemas/authorization_data_relationships_events' + $ref: '#/components/schemas/address_data_relationships_events' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' inStockSubscription_data: properties: type: @@ -56260,7 +72260,9 @@ components: inventory_return_locations: $ref: '#/components/schemas/inventoryModel_data_relationships_inventory_return_locations' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' inventoryModel_data: properties: type: @@ -56323,6 +72325,8 @@ components: $ref: '#/components/schemas/deliveryLeadTime_data_relationships_stock_location' inventory_model: $ref: '#/components/schemas/inventoryReturnLocation_data_relationships_inventory_model' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' inventoryReturnLocation_data: properties: type: @@ -56447,6 +72451,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/adyenGateway_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' klarna_payments: $ref: '#/components/schemas/klarnaGateway_data_relationships_klarna_payments' klarnaGateway_data: @@ -56577,6 +72583,10 @@ components: $ref: '#/components/schemas/lineItemOption_data_relationships_line_item' sku_option: $ref: '#/components/schemas/lineItemOption_data_relationships_sku_option' + events: + $ref: '#/components/schemas/address_data_relationships_events' + tags: + $ref: '#/components/schemas/address_data_relationships_tags' lineItemOption_data: properties: type: @@ -56608,6 +72618,8 @@ components: $ref: '#/components/schemas/lineItemOptionCreate_data_relationships_line_item' sku_option: $ref: '#/components/schemas/lineItemOptionCreate_data_relationships_sku_option' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' required: - line_item - sku_option @@ -56628,6 +72640,8 @@ components: properties: sku_option: $ref: '#/components/schemas/lineItemOptionCreate_data_relationships_sku_option' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' lineItemOptionUpdate_data: properties: type: @@ -56650,34 +72664,94 @@ components: type: description: The resource's type enum: - - adjustments + - skus - bundles - - external_promotions - - fixed_amount_promotions - - free_shipping_promotions - gift_cards + - shipments - payment_methods + - adjustments - percentage_discount_promotions - - shipments - - skus + - free_shipping_promotions + - buy_x_pay_y_promotions + - free_gift_promotions + - fixed_price_promotions + - external_promotions + - fixed_amount_promotions + - flex_promotions id: description: The resource's id example: XGZwpOSrWL lineItem_data_relationships_item: oneOf: - - $ref: '#/components/schemas/adjustment' + - $ref: '#/components/schemas/sku' - $ref: '#/components/schemas/bundle' - - $ref: '#/components/schemas/externalPromotion' - - $ref: '#/components/schemas/fixedAmountPromotion' - - $ref: '#/components/schemas/freeShippingPromotion' - $ref: '#/components/schemas/giftCard' + - $ref: '#/components/schemas/shipment' - $ref: '#/components/schemas/paymentMethod' + - $ref: '#/components/schemas/adjustment' - $ref: '#/components/schemas/percentageDiscountPromotion' - - $ref: '#/components/schemas/shipment' - - $ref: '#/components/schemas/sku' + - $ref: '#/components/schemas/freeShippingPromotion' + - $ref: '#/components/schemas/buyXPayYPromotion' + - $ref: '#/components/schemas/freeGiftPromotion' + - $ref: '#/components/schemas/fixedPricePromotion' + - $ref: '#/components/schemas/externalPromotion' + - $ref: '#/components/schemas/fixedAmountPromotion' + - $ref: '#/components/schemas/flexPromotion' properties: data: $ref: '#/components/schemas/lineItem_data_relationships_item_data' + lineItem_data_relationships_bundle_data: + properties: + type: + description: The resource's type + enum: + - bundles + id: + description: The resource's id + example: XGZwpOSrWL + lineItem_data_relationships_bundle: + properties: + data: + $ref: '#/components/schemas/lineItem_data_relationships_bundle_data' + lineItem_data_relationships_adjustment_data: + properties: + type: + description: The resource's type + enum: + - adjustments + id: + description: The resource's id + example: XGZwpOSrWL + lineItem_data_relationships_adjustment: + properties: + data: + $ref: '#/components/schemas/lineItem_data_relationships_adjustment_data' + lineItem_data_relationships_gift_card_data: + properties: + type: + description: The resource's type + enum: + - gift_cards + id: + description: The resource's id + example: XGZwpOSrWL + lineItem_data_relationships_gift_card: + properties: + data: + $ref: '#/components/schemas/lineItem_data_relationships_gift_card_data' + lineItem_data_relationships_shipment_data: + properties: + type: + description: The resource's type + enum: + - shipments + id: + description: The resource's id + example: XGZwpOSrWL + lineItem_data_relationships_shipment: + properties: + data: + $ref: '#/components/schemas/lineItem_data_relationships_shipment_data' lineItem_data_relationships_line_item_options_data: properties: type: @@ -56691,20 +72765,32 @@ components: properties: data: $ref: '#/components/schemas/lineItem_data_relationships_line_item_options_data' - lineItem_data_relationships_shipment_line_items_data: + lineItem_data_relationships_return_line_items_data: properties: type: description: The resource's type enum: - - shipment_line_items + - return_line_items + id: + description: The resource's id + example: XGZwpOSrWL + lineItem_data_relationships_return_line_items: + properties: + data: + $ref: '#/components/schemas/lineItem_data_relationships_return_line_items_data' + lineItem_data_relationships_stock_reservations_data: + properties: + type: + description: The resource's type + enum: + - stock_reservations id: description: The resource's id example: XGZwpOSrWL - lineItem_data_relationships_shipment_line_items: - deprecated: true + lineItem_data_relationships_stock_reservations: properties: data: - $ref: '#/components/schemas/lineItem_data_relationships_shipment_line_items_data' + $ref: '#/components/schemas/lineItem_data_relationships_stock_reservations_data' lineItem_data_relationships_stock_line_items_data: properties: type: @@ -56737,14 +72823,32 @@ components: $ref: '#/components/schemas/adyenPayment_data_relationships_order' item: $ref: '#/components/schemas/lineItem_data_relationships_item' + sku: + $ref: '#/components/schemas/bundle_data_relationships_skus' + bundle: + $ref: '#/components/schemas/lineItem_data_relationships_bundle' + adjustment: + $ref: '#/components/schemas/lineItem_data_relationships_adjustment' + gift_card: + $ref: '#/components/schemas/lineItem_data_relationships_gift_card' + shipment: + $ref: '#/components/schemas/lineItem_data_relationships_shipment' + payment_method: + $ref: '#/components/schemas/adyenGateway_data_relationships_payment_methods' line_item_options: $ref: '#/components/schemas/lineItem_data_relationships_line_item_options' - shipment_line_items: - $ref: '#/components/schemas/lineItem_data_relationships_shipment_line_items' + return_line_items: + $ref: '#/components/schemas/lineItem_data_relationships_return_line_items' + stock_reservations: + $ref: '#/components/schemas/lineItem_data_relationships_stock_reservations' stock_line_items: $ref: '#/components/schemas/lineItem_data_relationships_stock_line_items' stock_transfers: $ref: '#/components/schemas/lineItem_data_relationships_stock_transfers' + events: + $ref: '#/components/schemas/address_data_relationships_events' + tags: + $ref: '#/components/schemas/address_data_relationships_tags' lineItem_data: properties: type: @@ -56760,16 +72864,20 @@ components: - type lineItemCreate_data_relationships_item: oneOf: - - $ref: '#/components/schemas/adjustment' + - $ref: '#/components/schemas/sku' - $ref: '#/components/schemas/bundle' - - $ref: '#/components/schemas/externalPromotion' - - $ref: '#/components/schemas/fixedAmountPromotion' - - $ref: '#/components/schemas/freeShippingPromotion' - $ref: '#/components/schemas/giftCard' + - $ref: '#/components/schemas/shipment' - $ref: '#/components/schemas/paymentMethod' + - $ref: '#/components/schemas/adjustment' - $ref: '#/components/schemas/percentageDiscountPromotion' - - $ref: '#/components/schemas/shipment' - - $ref: '#/components/schemas/sku' + - $ref: '#/components/schemas/freeShippingPromotion' + - $ref: '#/components/schemas/buyXPayYPromotion' + - $ref: '#/components/schemas/freeGiftPromotion' + - $ref: '#/components/schemas/fixedPricePromotion' + - $ref: '#/components/schemas/externalPromotion' + - $ref: '#/components/schemas/fixedAmountPromotion' + - $ref: '#/components/schemas/flexPromotion' properties: data: $ref: '#/components/schemas/lineItem_data_relationships_item_data' @@ -56781,6 +72889,8 @@ components: $ref: '#/components/schemas/adyenPaymentCreate_data_relationships_order' item: $ref: '#/components/schemas/lineItemCreate_data_relationships_item' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' required: - order lineItemCreate_data: @@ -56808,7 +72918,95 @@ components: attributes: $ref: '#/components/schemas/PATCH_line_items_lineItemId_200_response_data_attributes' relationships: - properties: {} + $ref: '#/components/schemas/bundleUpdate_data_relationships' + required: + - attributes + - id + - type + link_data_relationships_item_data: + properties: + type: + description: The resource's type + enum: + - orders + - skus + - sku_lists + id: + description: The resource's id + example: XGZwpOSrWL + link_data_relationships_item: + oneOf: + - $ref: '#/components/schemas/order' + - $ref: '#/components/schemas/sku' + - $ref: '#/components/schemas/skuList' + properties: + data: + $ref: '#/components/schemas/link_data_relationships_item_data' + link_data_relationships: + properties: + item: + $ref: '#/components/schemas/link_data_relationships_item' + events: + $ref: '#/components/schemas/address_data_relationships_events' + link_data: + properties: + type: + description: The resource's type + enum: + - links + attributes: + $ref: '#/components/schemas/GET_links_linkId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/link_data_relationships' + required: + - attributes + - type + linkCreate_data_relationships_item: + oneOf: + - $ref: '#/components/schemas/order' + - $ref: '#/components/schemas/sku' + - $ref: '#/components/schemas/skuList' + properties: + data: + $ref: '#/components/schemas/link_data_relationships_item_data' + required: + - data + linkCreate_data_relationships: + properties: + item: + $ref: '#/components/schemas/linkCreate_data_relationships_item' + required: + - item + linkCreate_data: + properties: + type: + description: The resource's type + enum: + - links + attributes: + $ref: '#/components/schemas/POST_links_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/linkCreate_data_relationships' + required: + - attributes + - type + linkUpdate_data_relationships: + properties: + item: + $ref: '#/components/schemas/linkCreate_data_relationships_item' + linkUpdate_data: + properties: + type: + description: The resource's type + enum: + - links + id: + description: The resource's id + example: XGZwpOSrWL + attributes: + $ref: '#/components/schemas/PATCH_links_linkId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/linkUpdate_data_relationships' required: - attributes - id @@ -56817,6 +73015,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/adyenGateway_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' manualGateway_data: properties: type: @@ -56878,7 +73078,9 @@ components: markets: $ref: '#/components/schemas/avalaraAccount_data_relationships_markets' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' tax_rules: $ref: '#/components/schemas/manualTaxCalculator_data_relationships_tax_rules' manualTaxCalculator_data: @@ -56978,20 +73180,43 @@ components: type: description: The resource's type enum: - - tax_calculators + - avalara_accounts + - taxjar_accounts + - manual_tax_calculators + - external_tax_calculators id: description: The resource's id example: XGZwpOSrWL market_data_relationships_tax_calculator: + oneOf: + - $ref: '#/components/schemas/avalaraAccount' + - $ref: '#/components/schemas/taxjarAccount' + - $ref: '#/components/schemas/manualTaxCalculator' + - $ref: '#/components/schemas/externalTaxCalculator' properties: data: $ref: '#/components/schemas/market_data_relationships_tax_calculator_data' + market_data_relationships_price_list_schedulers_data: + properties: + type: + description: The resource's type + enum: + - price_list_schedulers + id: + description: The resource's id + example: XGZwpOSrWL + market_data_relationships_price_list_schedulers: + properties: + data: + $ref: '#/components/schemas/market_data_relationships_price_list_schedulers_data' market_data_relationships: properties: merchant: $ref: '#/components/schemas/market_data_relationships_merchant' price_list: $ref: '#/components/schemas/market_data_relationships_price_list' + base_price_list: + $ref: '#/components/schemas/market_data_relationships_price_list' inventory_model: $ref: '#/components/schemas/inventoryReturnLocation_data_relationships_inventory_model' subscription_model: @@ -57000,8 +73225,14 @@ components: $ref: '#/components/schemas/market_data_relationships_tax_calculator' customer_group: $ref: '#/components/schemas/customer_data_relationships_customer_group' + geocoder: + $ref: '#/components/schemas/address_data_relationships_geocoder' + price_list_schedulers: + $ref: '#/components/schemas/market_data_relationships_price_list_schedulers' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' market_data: properties: type: @@ -57034,6 +73265,11 @@ components: required: - data marketCreate_data_relationships_tax_calculator: + oneOf: + - $ref: '#/components/schemas/avalaraAccount' + - $ref: '#/components/schemas/taxjarAccount' + - $ref: '#/components/schemas/manualTaxCalculator' + - $ref: '#/components/schemas/externalTaxCalculator' properties: data: $ref: '#/components/schemas/market_data_relationships_tax_calculator_data' @@ -57053,6 +73289,8 @@ components: $ref: '#/components/schemas/marketCreate_data_relationships_tax_calculator' customer_group: $ref: '#/components/schemas/customerCreate_data_relationships_customer_group' + geocoder: + $ref: '#/components/schemas/addressCreate_data_relationships_geocoder' required: - inventory_model - merchant @@ -57084,6 +73322,8 @@ components: $ref: '#/components/schemas/marketCreate_data_relationships_tax_calculator' customer_group: $ref: '#/components/schemas/customerCreate_data_relationships_customer_group' + geocoder: + $ref: '#/components/schemas/addressCreate_data_relationships_geocoder' marketUpdate_data: properties: type: @@ -57106,7 +73346,9 @@ components: address: $ref: '#/components/schemas/bingGeocoder_data_relationships_addresses' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' merchant_data: properties: type: @@ -57160,10 +73402,6 @@ components: - attributes - id - type - orderAmountPromotionRule_data_relationships: - properties: - promotion: - $ref: '#/components/schemas/couponCodesPromotionRule_data_relationships_promotion' orderAmountPromotionRule_data: properties: type: @@ -57173,16 +73411,10 @@ components: attributes: $ref: '#/components/schemas/GET_order_amount_promotion_rules_orderAmountPromotionRuleId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/orderAmountPromotionRule_data_relationships' + $ref: '#/components/schemas/customPromotionRule_data_relationships' required: - attributes - type - orderAmountPromotionRuleCreate_data_relationships: - properties: - promotion: - $ref: '#/components/schemas/couponCodesPromotionRuleCreate_data_relationships_promotion' - required: - - promotion orderAmountPromotionRuleCreate_data: properties: type: @@ -57192,14 +73424,10 @@ components: attributes: $ref: '#/components/schemas/POST_order_amount_promotion_rules_201_response_data_attributes' relationships: - $ref: '#/components/schemas/orderAmountPromotionRuleCreate_data_relationships' + $ref: '#/components/schemas/customPromotionRuleCreate_data_relationships' required: - attributes - type - orderAmountPromotionRuleUpdate_data_relationships: - properties: - promotion: - $ref: '#/components/schemas/couponCodesPromotionRuleCreate_data_relationships_promotion' orderAmountPromotionRuleUpdate_data: properties: type: @@ -57212,7 +73440,7 @@ components: attributes: $ref: '#/components/schemas/PATCH_order_amount_promotion_rules_orderAmountPromotionRuleId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/orderAmountPromotionRuleUpdate_data_relationships' + $ref: '#/components/schemas/customPromotionRuleUpdate_data_relationships' required: - attributes - id @@ -57224,7 +73452,7 @@ components: target_order: $ref: '#/components/schemas/adyenPayment_data_relationships_order' events: - $ref: '#/components/schemas/authorization_data_relationships_events' + $ref: '#/components/schemas/address_data_relationships_events' order_subscription: $ref: '#/components/schemas/customer_data_relationships_order_subscriptions' orderCopy_data: @@ -57283,7 +73511,7 @@ components: target_order: $ref: '#/components/schemas/adyenPayment_data_relationships_order' events: - $ref: '#/components/schemas/authorization_data_relationships_events' + $ref: '#/components/schemas/address_data_relationships_events' orderFactory_data: properties: type: @@ -57302,17 +73530,17 @@ components: type: description: The resource's type enum: - - adjustments - - bundles - skus + - bundles + - adjustments id: description: The resource's id example: XGZwpOSrWL orderSubscriptionItem_data_relationships_item: oneOf: - - $ref: '#/components/schemas/adjustment' - - $ref: '#/components/schemas/bundle' - $ref: '#/components/schemas/sku' + - $ref: '#/components/schemas/bundle' + - $ref: '#/components/schemas/adjustment' properties: data: $ref: '#/components/schemas/orderSubscriptionItem_data_relationships_item_data' @@ -57322,6 +73550,14 @@ components: $ref: '#/components/schemas/customer_data_relationships_order_subscriptions' item: $ref: '#/components/schemas/orderSubscriptionItem_data_relationships_item' + sku: + $ref: '#/components/schemas/bundle_data_relationships_skus' + bundle: + $ref: '#/components/schemas/lineItem_data_relationships_bundle' + adjustment: + $ref: '#/components/schemas/lineItem_data_relationships_adjustment' + source_line_item: + $ref: '#/components/schemas/lineItemOption_data_relationships_line_item' orderSubscriptionItem_data: properties: type: @@ -57343,20 +73579,38 @@ components: - data orderSubscriptionItemCreate_data_relationships_item: oneOf: - - $ref: '#/components/schemas/adjustment' - - $ref: '#/components/schemas/bundle' - $ref: '#/components/schemas/sku' + - $ref: '#/components/schemas/bundle' + - $ref: '#/components/schemas/adjustment' properties: data: $ref: '#/components/schemas/orderSubscriptionItem_data_relationships_item_data' required: - data + orderSubscriptionItemCreate_data_relationships_bundle: + properties: + data: + $ref: '#/components/schemas/lineItem_data_relationships_bundle_data' + required: + - data + orderSubscriptionItemCreate_data_relationships_adjustment: + properties: + data: + $ref: '#/components/schemas/lineItem_data_relationships_adjustment_data' + required: + - data orderSubscriptionItemCreate_data_relationships: properties: order_subscription: $ref: '#/components/schemas/orderSubscriptionItemCreate_data_relationships_order_subscription' item: $ref: '#/components/schemas/orderSubscriptionItemCreate_data_relationships_item' + sku: + $ref: '#/components/schemas/inStockSubscriptionCreate_data_relationships_sku' + bundle: + $ref: '#/components/schemas/orderSubscriptionItemCreate_data_relationships_bundle' + adjustment: + $ref: '#/components/schemas/orderSubscriptionItemCreate_data_relationships_adjustment' required: - item - order_subscription @@ -57416,20 +73670,6 @@ components: properties: data: $ref: '#/components/schemas/orderSubscription_data_relationships_order_factories_data' - orderSubscription_data_relationships_order_copies_data: - properties: - type: - description: The resource's type - enum: - - order_copies - id: - description: The resource's id - example: XGZwpOSrWL - orderSubscription_data_relationships_order_copies: - deprecated: true - properties: - data: - $ref: '#/components/schemas/orderSubscription_data_relationships_order_copies_data' orderSubscription_data_relationships_recurring_order_copies_data: properties: type: @@ -57459,14 +73699,16 @@ components: $ref: '#/components/schemas/orderSubscription_data_relationships_order_subscription_items' order_factories: $ref: '#/components/schemas/orderSubscription_data_relationships_order_factories' - order_copies: - $ref: '#/components/schemas/orderSubscription_data_relationships_order_copies' recurring_order_copies: $ref: '#/components/schemas/orderSubscription_data_relationships_recurring_order_copies' orders: $ref: '#/components/schemas/adyenPayment_data_relationships_order' events: - $ref: '#/components/schemas/authorization_data_relationships_events' + $ref: '#/components/schemas/address_data_relationships_events' + tags: + $ref: '#/components/schemas/address_data_relationships_tags' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' orderSubscription_data: properties: type: @@ -57486,6 +73728,8 @@ components: $ref: '#/components/schemas/billingInfoValidationRuleCreate_data_relationships_market' source_order: $ref: '#/components/schemas/adyenPaymentCreate_data_relationships_order' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' required: - source_order orderSubscriptionCreate_data: @@ -57511,6 +73755,8 @@ components: properties: customer_payment_source: $ref: '#/components/schemas/orderSubscriptionUpdate_data_relationships_customer_payment_source' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' orderSubscriptionUpdate_data: properties: type: @@ -57528,45 +73774,19 @@ components: - attributes - id - type - orderValidationRule_data: + order_data_relationships_payment_options_data: properties: type: description: The resource's type enum: - - order_validation_rules - attributes: - $ref: '#/components/schemas/GET_billing_info_validation_rules_billingInfoValidationRuleId_200_response_data_attributes' - relationships: - $ref: '#/components/schemas/billingInfoValidationRule_data_relationships' - required: - - attributes - - type - order_data_relationships_available_free_bundles_data: - properties: - type: - description: The resource's type - enum: - - bundles - id: - description: The resource's id - example: XGZwpOSrWL - order_data_relationships_available_free_bundles: - properties: - data: - $ref: '#/components/schemas/order_data_relationships_available_free_bundles_data' - order_data_relationships_shipments_data: - properties: - type: - description: The resource's type - enum: - - shipments + - payment_options id: description: The resource's id example: XGZwpOSrWL - order_data_relationships_shipments: + order_data_relationships_payment_options: properties: data: - $ref: '#/components/schemas/order_data_relationships_shipments_data' + $ref: '#/components/schemas/order_data_relationships_payment_options_data' order_data_relationships_transactions_data: properties: type: @@ -57588,10 +73808,45 @@ components: properties: data: $ref: '#/components/schemas/order_data_relationships_transactions_data' + order_data_relationships_order_copies_data: + properties: + type: + description: The resource's type + enum: + - order_copies + id: + description: The resource's id + example: XGZwpOSrWL order_data_relationships_order_copies: properties: data: - $ref: '#/components/schemas/orderSubscription_data_relationships_order_copies_data' + $ref: '#/components/schemas/order_data_relationships_order_copies_data' + order_data_relationships_links_data: + properties: + type: + description: The resource's type + enum: + - links + id: + description: The resource's id + example: XGZwpOSrWL + order_data_relationships_links: + properties: + data: + $ref: '#/components/schemas/order_data_relationships_links_data' + order_data_relationships_resource_errors_data: + properties: + type: + description: The resource's type + enum: + - resource_errors + id: + description: The resource's id + example: XGZwpOSrWL + order_data_relationships_resource_errors: + properties: + data: + $ref: '#/components/schemas/order_data_relationships_resource_errors_data' order_data_relationships: properties: market: @@ -57609,15 +73864,25 @@ components: available_free_skus: $ref: '#/components/schemas/bundle_data_relationships_skus' available_free_bundles: - $ref: '#/components/schemas/order_data_relationships_available_free_bundles' + $ref: '#/components/schemas/lineItem_data_relationships_bundle' payment_method: $ref: '#/components/schemas/adyenGateway_data_relationships_payment_methods' payment_source: $ref: '#/components/schemas/customerPaymentSource_data_relationships_payment_source' line_items: $ref: '#/components/schemas/lineItemOption_data_relationships_line_item' + line_item_options: + $ref: '#/components/schemas/lineItem_data_relationships_line_item_options' + stock_reservations: + $ref: '#/components/schemas/lineItem_data_relationships_stock_reservations' + stock_line_items: + $ref: '#/components/schemas/lineItem_data_relationships_stock_line_items' + stock_transfers: + $ref: '#/components/schemas/lineItem_data_relationships_stock_transfers' shipments: - $ref: '#/components/schemas/order_data_relationships_shipments' + $ref: '#/components/schemas/lineItem_data_relationships_shipment' + payment_options: + $ref: '#/components/schemas/order_data_relationships_payment_options' transactions: $ref: '#/components/schemas/order_data_relationships_transactions' authorizations: @@ -57629,7 +73894,9 @@ components: refunds: $ref: '#/components/schemas/capture_data_relationships_refunds' returns: - $ref: '#/components/schemas/customer_data_relationships_returns' + $ref: '#/components/schemas/capture_data_relationships_return' + order_subscription: + $ref: '#/components/schemas/customer_data_relationships_order_subscriptions' order_subscriptions: $ref: '#/components/schemas/customer_data_relationships_order_subscriptions' order_factories: @@ -57639,9 +73906,17 @@ components: recurring_order_copies: $ref: '#/components/schemas/orderSubscription_data_relationships_recurring_order_copies' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + links: + $ref: '#/components/schemas/order_data_relationships_links' + resource_errors: + $ref: '#/components/schemas/order_data_relationships_resource_errors' events: - $ref: '#/components/schemas/authorization_data_relationships_events' + $ref: '#/components/schemas/address_data_relationships_events' + tags: + $ref: '#/components/schemas/address_data_relationships_tags' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' order_data: properties: type: @@ -57655,12 +73930,6 @@ components: required: - attributes - type - orderCreate_data_relationships_payment_method: - properties: - data: - $ref: '#/components/schemas/adyenGateway_data_relationships_payment_methods_data' - required: - - data orderCreate_data_relationships: properties: market: @@ -57672,9 +73941,11 @@ components: billing_address: $ref: '#/components/schemas/customerAddressCreate_data_relationships_address' payment_method: - $ref: '#/components/schemas/orderCreate_data_relationships_payment_method' + $ref: '#/components/schemas/customerPaymentSourceCreate_data_relationships_payment_method' payment_source: $ref: '#/components/schemas/customerPaymentSourceCreate_data_relationships_payment_source' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' orderCreate_data: properties: type: @@ -57738,7 +74009,9 @@ components: parcels: $ref: '#/components/schemas/package_data_relationships_parcels' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' package_data: properties: type: @@ -57798,8 +74071,8 @@ components: $ref: '#/components/schemas/package_data_relationships_parcels' stock_line_item: $ref: '#/components/schemas/lineItem_data_relationships_stock_line_items' - shipment_line_item: - $ref: '#/components/schemas/lineItem_data_relationships_shipment_line_items' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' parcelLineItem_data: properties: type: @@ -57825,21 +74098,12 @@ components: $ref: '#/components/schemas/lineItem_data_relationships_stock_line_items_data' required: - data - parcelLineItemCreate_data_relationships_shipment_line_item: - deprecated: true - properties: - data: - $ref: '#/components/schemas/lineItem_data_relationships_shipment_line_items_data' - required: - - data parcelLineItemCreate_data_relationships: properties: parcel: $ref: '#/components/schemas/parcelLineItemCreate_data_relationships_parcel' stock_line_item: $ref: '#/components/schemas/parcelLineItemCreate_data_relationships_stock_line_item' - shipment_line_item: - $ref: '#/components/schemas/parcelLineItemCreate_data_relationships_shipment_line_item' required: - parcel - stock_line_item @@ -57902,15 +74166,17 @@ components: parcel_data_relationships: properties: shipment: - $ref: '#/components/schemas/order_data_relationships_shipments' + $ref: '#/components/schemas/lineItem_data_relationships_shipment' package: $ref: '#/components/schemas/parcel_data_relationships_package' parcel_line_items: $ref: '#/components/schemas/parcel_data_relationships_parcel_line_items' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' events: - $ref: '#/components/schemas/authorization_data_relationships_events' + $ref: '#/components/schemas/address_data_relationships_events' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' parcel_data: properties: type: @@ -57927,7 +74193,7 @@ components: parcelCreate_data_relationships_shipment: properties: data: - $ref: '#/components/schemas/order_data_relationships_shipments_data' + $ref: '#/components/schemas/lineItem_data_relationships_shipment_data' required: - data parcelCreate_data_relationships_package: @@ -58001,7 +74267,9 @@ components: payment_gateway: $ref: '#/components/schemas/adyenPayment_data_relationships_payment_gateway' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' paymentMethod_data: properties: type: @@ -58065,6 +74333,55 @@ components: - attributes - id - type + paymentOption_data_relationships: + properties: + order: + $ref: '#/components/schemas/adyenPayment_data_relationships_order' + attachments: + $ref: '#/components/schemas/authorization_data_relationships_attachments' + paymentOption_data: + properties: + type: + description: The resource's type + enum: + - payment_options + attributes: + $ref: '#/components/schemas/GET_payment_options_paymentOptionId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/paymentOption_data_relationships' + required: + - attributes + - type + paymentOptionCreate_data: + properties: + type: + description: The resource's type + enum: + - payment_options + attributes: + $ref: '#/components/schemas/POST_payment_options_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/adyenPaymentCreate_data_relationships' + required: + - attributes + - type + paymentOptionUpdate_data: + properties: + type: + description: The resource's type + enum: + - payment_options + id: + description: The resource's id + example: XGZwpOSrWL + attributes: + $ref: '#/components/schemas/PATCH_payment_options_paymentOptionId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/adyenPaymentUpdate_data_relationships' + required: + - attributes + - id + - type paypalGateway_data_relationships_paypal_payments_data: properties: type: @@ -58082,6 +74399,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/adyenGateway_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' paypal_payments: $ref: '#/components/schemas/paypalGateway_data_relationships_paypal_payments' paypalGateway_data: @@ -58179,7 +74498,7 @@ components: attributes: $ref: '#/components/schemas/GET_percentage_discount_promotions_percentageDiscountPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/fixedPricePromotion_data_relationships' + $ref: '#/components/schemas/buyXPayYPromotion_data_relationships' required: - attributes - type @@ -58192,7 +74511,7 @@ components: attributes: $ref: '#/components/schemas/POST_percentage_discount_promotions_201_response_data_attributes' relationships: - $ref: '#/components/schemas/fixedPricePromotionUpdate_data_relationships' + $ref: '#/components/schemas/buyXPayYPromotionUpdate_data_relationships' required: - attributes - type @@ -58208,7 +74527,7 @@ components: attributes: $ref: '#/components/schemas/PATCH_percentage_discount_promotions_percentageDiscountPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/fixedPricePromotionUpdate_data_relationships' + $ref: '#/components/schemas/buyXPayYPromotionUpdate_data_relationships' required: - attributes - id @@ -58231,9 +74550,11 @@ components: price: $ref: '#/components/schemas/priceFrequencyTier_data_relationships_price' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' events: - $ref: '#/components/schemas/authorization_data_relationships_events' + $ref: '#/components/schemas/address_data_relationships_events' priceFrequencyTier_data: properties: type: @@ -58293,12 +74614,84 @@ components: - attributes - id - type + priceListScheduler_data_relationships: + properties: + market: + $ref: '#/components/schemas/avalaraAccount_data_relationships_markets' + price_list: + $ref: '#/components/schemas/market_data_relationships_price_list' + events: + $ref: '#/components/schemas/address_data_relationships_events' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' + priceListScheduler_data: + properties: + type: + description: The resource's type + enum: + - price_list_schedulers + attributes: + $ref: '#/components/schemas/GET_price_list_schedulers_priceListSchedulerId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/priceListScheduler_data_relationships' + required: + - attributes + - type + priceListSchedulerCreate_data_relationships: + properties: + market: + $ref: '#/components/schemas/billingInfoValidationRuleCreate_data_relationships_market' + price_list: + $ref: '#/components/schemas/marketCreate_data_relationships_price_list' + required: + - market + - price_list + priceListSchedulerCreate_data: + properties: + type: + description: The resource's type + enum: + - price_list_schedulers + attributes: + $ref: '#/components/schemas/POST_price_list_schedulers_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/priceListSchedulerCreate_data_relationships' + required: + - attributes + - type + priceListSchedulerUpdate_data_relationships: + properties: + market: + $ref: '#/components/schemas/billingInfoValidationRuleCreate_data_relationships_market' + price_list: + $ref: '#/components/schemas/marketCreate_data_relationships_price_list' + priceListSchedulerUpdate_data: + properties: + type: + description: The resource's type + enum: + - price_list_schedulers + id: + description: The resource's id + example: XGZwpOSrWL + attributes: + $ref: '#/components/schemas/PATCH_price_list_schedulers_priceListSchedulerId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/priceListSchedulerUpdate_data_relationships' + required: + - attributes + - id + - type priceList_data_relationships: properties: prices: $ref: '#/components/schemas/priceFrequencyTier_data_relationships_price' + price_list_schedulers: + $ref: '#/components/schemas/market_data_relationships_price_list_schedulers' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' priceList_data: properties: type: @@ -58347,7 +74740,9 @@ components: price: $ref: '#/components/schemas/priceFrequencyTier_data_relationships_price' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' priceTier_data: properties: type: @@ -58456,7 +74851,15 @@ components: price_frequency_tiers: $ref: '#/components/schemas/price_data_relationships_price_frequency_tiers' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' + jwt_customer: + $ref: '#/components/schemas/couponRecipient_data_relationships_customer' + jwt_markets: + $ref: '#/components/schemas/avalaraAccount_data_relationships_markets' + jwt_stock_locations: + $ref: '#/components/schemas/deliveryLeadTime_data_relationships_stock_location' price_data: properties: type: @@ -58532,9 +74935,9 @@ components: enum: - promotion_rules attributes: - $ref: '#/components/schemas/GET_billing_info_validation_rules_billingInfoValidationRuleId_200_response_data_attributes' + $ref: '#/components/schemas/GET_coupon_codes_promotion_rules_couponCodesPromotionRuleId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/orderAmountPromotionRule_data_relationships' + $ref: '#/components/schemas/customPromotionRule_data_relationships' required: - attributes - type @@ -58547,7 +74950,7 @@ components: attributes: $ref: '#/components/schemas/GET_free_shipping_promotions_freeShippingPromotionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/externalPromotion_data_relationships' + $ref: '#/components/schemas/freeShippingPromotion_data_relationships' required: - attributes - type @@ -58607,10 +75010,16 @@ components: properties: order: $ref: '#/components/schemas/adyenPayment_data_relationships_order' + attachments: + $ref: '#/components/schemas/authorization_data_relationships_attachments' + events: + $ref: '#/components/schemas/address_data_relationships_events' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' reference_capture: $ref: '#/components/schemas/authorization_data_relationships_captures' - events: - $ref: '#/components/schemas/authorization_data_relationships_events' + return: + $ref: '#/components/schemas/capture_data_relationships_return' refund_data: properties: type: @@ -58624,10 +75033,97 @@ components: required: - attributes - type + refundUpdate_data: + properties: + type: + description: The resource's type + enum: + - refunds + id: + description: The resource's id + example: XGZwpOSrWL + attributes: + $ref: '#/components/schemas/PATCH_refunds_refundId_200_response_data_attributes' + relationships: + properties: {} + required: + - attributes + - id + - type + reservedStock_data_relationships_stock_item_data: + properties: + type: + description: The resource's type + enum: + - stock_items + id: + description: The resource's id + example: XGZwpOSrWL + reservedStock_data_relationships_stock_item: + properties: + data: + $ref: '#/components/schemas/reservedStock_data_relationships_stock_item_data' + reservedStock_data_relationships: + properties: + stock_item: + $ref: '#/components/schemas/reservedStock_data_relationships_stock_item' + sku: + $ref: '#/components/schemas/bundle_data_relationships_skus' + stock_reservations: + $ref: '#/components/schemas/lineItem_data_relationships_stock_reservations' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' + reservedStock_data: + properties: + type: + description: The resource's type + enum: + - reserved_stocks + attributes: + $ref: '#/components/schemas/GET_reserved_stocks_reservedStockId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/reservedStock_data_relationships' + required: + - attributes + - type + resourceError_data_relationships_resource_data: + properties: + type: + description: The resource's type + enum: + - orders + - returns + id: + description: The resource's id + example: XGZwpOSrWL + resourceError_data_relationships_resource: + oneOf: + - $ref: '#/components/schemas/order' + - $ref: '#/components/schemas/return' + properties: + data: + $ref: '#/components/schemas/resourceError_data_relationships_resource_data' + resourceError_data_relationships: + properties: + resource: + $ref: '#/components/schemas/resourceError_data_relationships_resource' + resourceError_data: + properties: + type: + description: The resource's type + enum: + - resource_errors + attributes: + $ref: '#/components/schemas/GET_resource_errors_resourceErrorId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/resourceError_data_relationships' + required: + - attributes + - type returnLineItem_data_relationships: properties: return: - $ref: '#/components/schemas/customer_data_relationships_returns' + $ref: '#/components/schemas/capture_data_relationships_return' line_item: $ref: '#/components/schemas/lineItemOption_data_relationships_line_item' returnLineItem_data: @@ -58646,7 +75142,7 @@ components: returnLineItemCreate_data_relationships_return: properties: data: - $ref: '#/components/schemas/customer_data_relationships_returns_data' + $ref: '#/components/schemas/capture_data_relationships_return_data' required: - data returnLineItemCreate_data_relationships: @@ -58688,19 +75184,6 @@ components: - attributes - id - type - return_data_relationships_return_line_items_data: - properties: - type: - description: The resource's type - enum: - - return_line_items - id: - description: The resource's id - example: XGZwpOSrWL - return_data_relationships_return_line_items: - properties: - data: - $ref: '#/components/schemas/return_data_relationships_return_line_items_data' return_data_relationships: properties: order: @@ -58713,12 +75196,22 @@ components: $ref: '#/components/schemas/bingGeocoder_data_relationships_addresses' destination_address: $ref: '#/components/schemas/bingGeocoder_data_relationships_addresses' + reference_capture: + $ref: '#/components/schemas/authorization_data_relationships_captures' + reference_refund: + $ref: '#/components/schemas/capture_data_relationships_refunds' return_line_items: - $ref: '#/components/schemas/return_data_relationships_return_line_items' + $ref: '#/components/schemas/lineItem_data_relationships_return_line_items' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + resource_errors: + $ref: '#/components/schemas/order_data_relationships_resource_errors' events: - $ref: '#/components/schemas/authorization_data_relationships_events' + $ref: '#/components/schemas/address_data_relationships_events' + tags: + $ref: '#/components/schemas/address_data_relationships_tags' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' return_data: properties: type: @@ -58732,12 +75225,22 @@ components: required: - attributes - type + returnCreate_data_relationships_reference_capture: + properties: + data: + $ref: '#/components/schemas/authorization_data_relationships_captures_data' + required: + - data returnCreate_data_relationships: properties: order: $ref: '#/components/schemas/adyenPaymentCreate_data_relationships_order' stock_location: $ref: '#/components/schemas/deliveryLeadTimeCreate_data_relationships_stock_location' + reference_capture: + $ref: '#/components/schemas/returnCreate_data_relationships_reference_capture' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' required: - order returnCreate_data: @@ -58753,6 +75256,14 @@ components: required: - attributes - type + returnUpdate_data_relationships: + properties: + stock_location: + $ref: '#/components/schemas/deliveryLeadTimeCreate_data_relationships_stock_location' + reference_capture: + $ref: '#/components/schemas/returnCreate_data_relationships_reference_capture' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' returnUpdate_data: properties: type: @@ -58765,7 +75276,7 @@ components: attributes: $ref: '#/components/schemas/PATCH_returns_returnId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/packageUpdate_data_relationships' + $ref: '#/components/schemas/returnUpdate_data_relationships' required: - attributes - id @@ -58787,6 +75298,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/adyenGateway_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' satispay_payments: $ref: '#/components/schemas/satispayGateway_data_relationships_satispay_payments' satispayGateway_data: @@ -58819,7 +75332,7 @@ components: enum: - satispay_gateways attributes: - $ref: '#/components/schemas/POST_manual_gateways_201_response_data_attributes' + $ref: '#/components/schemas/POST_satispay_gateways_201_response_data_attributes' relationships: $ref: '#/components/schemas/satispayGatewayCreate_data_relationships' required: @@ -58930,6 +75443,8 @@ components: $ref: '#/components/schemas/adyenPayment_data_relationships_order' shipping_category: $ref: '#/components/schemas/shipment_data_relationships_shipping_category' + inventory_stock_location: + $ref: '#/components/schemas/inventoryModel_data_relationships_inventory_stock_locations' stock_location: $ref: '#/components/schemas/deliveryLeadTime_data_relationships_stock_location' origin_address: @@ -58940,12 +75455,12 @@ components: $ref: '#/components/schemas/deliveryLeadTime_data_relationships_shipping_method' delivery_lead_time: $ref: '#/components/schemas/shipment_data_relationships_delivery_lead_time' - shipment_line_items: - $ref: '#/components/schemas/lineItem_data_relationships_shipment_line_items' stock_line_items: $ref: '#/components/schemas/lineItem_data_relationships_stock_line_items' stock_transfers: $ref: '#/components/schemas/lineItem_data_relationships_stock_transfers' + line_items: + $ref: '#/components/schemas/lineItemOption_data_relationships_line_item' available_shipping_methods: $ref: '#/components/schemas/deliveryLeadTime_data_relationships_shipping_method' carrier_accounts: @@ -58953,9 +75468,13 @@ components: parcels: $ref: '#/components/schemas/package_data_relationships_parcels' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' events: - $ref: '#/components/schemas/authorization_data_relationships_events' + $ref: '#/components/schemas/address_data_relationships_events' + tags: + $ref: '#/components/schemas/address_data_relationships_tags' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' shipment_data: properties: type: @@ -58969,10 +75488,60 @@ components: required: - attributes - type + shipmentCreate_data_relationships_shipping_category: + properties: + data: + $ref: '#/components/schemas/shipment_data_relationships_shipping_category_data' + required: + - data + shipmentCreate_data_relationships_inventory_stock_location: + properties: + data: + $ref: '#/components/schemas/inventoryModel_data_relationships_inventory_stock_locations_data' + required: + - data + shipmentCreate_data_relationships: + properties: + order: + $ref: '#/components/schemas/adyenPaymentCreate_data_relationships_order' + shipping_category: + $ref: '#/components/schemas/shipmentCreate_data_relationships_shipping_category' + inventory_stock_location: + $ref: '#/components/schemas/shipmentCreate_data_relationships_inventory_stock_location' + shipping_address: + $ref: '#/components/schemas/customerAddressCreate_data_relationships_address' + shipping_method: + $ref: '#/components/schemas/deliveryLeadTimeCreate_data_relationships_shipping_method' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' + required: + - inventory_stock_location + - order + shipmentCreate_data: + properties: + type: + description: The resource's type + enum: + - shipments + attributes: + $ref: '#/components/schemas/POST_adyen_payments_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/shipmentCreate_data_relationships' + required: + - attributes + - type shipmentUpdate_data_relationships: properties: + shipping_category: + $ref: '#/components/schemas/shipmentCreate_data_relationships_shipping_category' + inventory_stock_location: + $ref: '#/components/schemas/shipmentCreate_data_relationships_inventory_stock_location' + shipping_address: + $ref: '#/components/schemas/customerAddressCreate_data_relationships_address' shipping_method: $ref: '#/components/schemas/deliveryLeadTimeCreate_data_relationships_shipping_method' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' shipmentUpdate_data: properties: type: @@ -58995,7 +75564,9 @@ components: skus: $ref: '#/components/schemas/bundle_data_relationships_skus' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' shippingCategory_data: properties: type: @@ -59044,7 +75615,9 @@ components: shipping_method: $ref: '#/components/schemas/deliveryLeadTime_data_relationships_shipping_method' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' shippingMethodTier_data: properties: type: @@ -59114,7 +75687,9 @@ components: shipping_weight_tiers: $ref: '#/components/schemas/shippingMethod_data_relationships_shipping_weight_tiers' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' shippingMethod_data: properties: type: @@ -59134,12 +75709,6 @@ components: $ref: '#/components/schemas/shippingMethod_data_relationships_shipping_zone_data' required: - data - shippingMethodCreate_data_relationships_shipping_category: - properties: - data: - $ref: '#/components/schemas/shipment_data_relationships_shipping_category_data' - required: - - data shippingMethodCreate_data_relationships_shipping_method_tiers: properties: data: @@ -59153,7 +75722,7 @@ components: shipping_zone: $ref: '#/components/schemas/shippingMethodCreate_data_relationships_shipping_zone' shipping_category: - $ref: '#/components/schemas/shippingMethodCreate_data_relationships_shipping_category' + $ref: '#/components/schemas/shipmentCreate_data_relationships_shipping_category' stock_location: $ref: '#/components/schemas/deliveryLeadTimeCreate_data_relationships_stock_location' shipping_method_tiers: @@ -59220,6 +75789,10 @@ components: required: - attributes - type + shippingWeightTierUpdate_data_relationships: + properties: + shipping_method: + $ref: '#/components/schemas/deliveryLeadTimeCreate_data_relationships_shipping_method' shippingWeightTierUpdate_data: properties: type: @@ -59232,7 +75805,7 @@ components: attributes: $ref: '#/components/schemas/PATCH_shipping_weight_tiers_shippingWeightTierId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/shipmentUpdate_data_relationships' + $ref: '#/components/schemas/shippingWeightTierUpdate_data_relationships' required: - attributes - id @@ -59240,7 +75813,9 @@ components: shippingZone_data_relationships: properties: attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' shippingZone_data: properties: type: @@ -59290,6 +75865,8 @@ components: $ref: '#/components/schemas/bundle_data_relationships_sku_list' sku: $ref: '#/components/schemas/bundle_data_relationships_skus' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' skuListItem_data: properties: type: @@ -59346,6 +75923,8 @@ components: properties: promotion: $ref: '#/components/schemas/couponCodesPromotionRule_data_relationships_promotion' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' sku_list: $ref: '#/components/schemas/bundle_data_relationships_sku_list' skus: @@ -59429,9 +76008,13 @@ components: sku_list_items: $ref: '#/components/schemas/skuList_data_relationships_sku_list_items' bundles: - $ref: '#/components/schemas/order_data_relationships_available_free_bundles' + $ref: '#/components/schemas/lineItem_data_relationships_bundle' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + links: + $ref: '#/components/schemas/order_data_relationships_links' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' skuList_data: properties: type: @@ -59475,6 +76058,18 @@ components: - attributes - id - type + skuOption_data_relationships: + properties: + market: + $ref: '#/components/schemas/avalaraAccount_data_relationships_markets' + attachments: + $ref: '#/components/schemas/authorization_data_relationships_attachments' + events: + $ref: '#/components/schemas/address_data_relationships_events' + tags: + $ref: '#/components/schemas/address_data_relationships_tags' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' skuOption_data: properties: type: @@ -59484,10 +76079,16 @@ components: attributes: $ref: '#/components/schemas/GET_sku_options_skuOptionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/billingInfoValidationRule_data_relationships' + $ref: '#/components/schemas/skuOption_data_relationships' required: - attributes - type + skuOptionCreate_data_relationships: + properties: + market: + $ref: '#/components/schemas/billingInfoValidationRuleCreate_data_relationships_market' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' skuOptionCreate_data: properties: type: @@ -59497,7 +76098,7 @@ components: attributes: $ref: '#/components/schemas/POST_sku_options_201_response_data_attributes' relationships: - $ref: '#/components/schemas/billingInfoValidationRuleUpdate_data_relationships' + $ref: '#/components/schemas/skuOptionCreate_data_relationships' required: - attributes - type @@ -59513,24 +76114,11 @@ components: attributes: $ref: '#/components/schemas/PATCH_sku_options_skuOptionId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/billingInfoValidationRuleUpdate_data_relationships' + $ref: '#/components/schemas/skuOptionCreate_data_relationships' required: - attributes - id - type - sku_data_relationships_stock_items_data: - properties: - type: - description: The resource's type - enum: - - stock_items - id: - description: The resource's id - example: XGZwpOSrWL - sku_data_relationships_stock_items: - properties: - data: - $ref: '#/components/schemas/sku_data_relationships_stock_items_data' sku_data_relationships: properties: shipping_category: @@ -59538,13 +76126,33 @@ components: prices: $ref: '#/components/schemas/priceFrequencyTier_data_relationships_price' stock_items: - $ref: '#/components/schemas/sku_data_relationships_stock_items' + $ref: '#/components/schemas/reservedStock_data_relationships_stock_item' + stock_reservations: + $ref: '#/components/schemas/lineItem_data_relationships_stock_reservations' delivery_lead_times: $ref: '#/components/schemas/shipment_data_relationships_delivery_lead_time' sku_options: $ref: '#/components/schemas/lineItemOption_data_relationships_sku_option' + sku_list_items: + $ref: '#/components/schemas/skuList_data_relationships_sku_list_items' + sku_lists: + $ref: '#/components/schemas/bundle_data_relationships_sku_list' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + links: + $ref: '#/components/schemas/order_data_relationships_links' + events: + $ref: '#/components/schemas/address_data_relationships_events' + tags: + $ref: '#/components/schemas/address_data_relationships_tags' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' + jwt_customer: + $ref: '#/components/schemas/couponRecipient_data_relationships_customer' + jwt_markets: + $ref: '#/components/schemas/avalaraAccount_data_relationships_markets' + jwt_stock_locations: + $ref: '#/components/schemas/deliveryLeadTime_data_relationships_stock_location' sku_data: properties: type: @@ -59561,7 +76169,9 @@ components: skuCreate_data_relationships: properties: shipping_category: - $ref: '#/components/schemas/shippingMethodCreate_data_relationships_shipping_category' + $ref: '#/components/schemas/shipmentCreate_data_relationships_shipping_category' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' required: - shipping_category skuCreate_data: @@ -59580,7 +76190,9 @@ components: skuUpdate_data_relationships: properties: shipping_category: - $ref: '#/components/schemas/shippingMethodCreate_data_relationships_shipping_category' + $ref: '#/components/schemas/shipmentCreate_data_relationships_shipping_category' + tags: + $ref: '#/components/schemas/addressCreate_data_relationships_tags' skuUpdate_data: properties: type: @@ -59598,14 +76210,33 @@ components: - attributes - id - type + stockItem_data_relationships_reserved_stock_data: + properties: + type: + description: The resource's type + enum: + - reserved_stocks + id: + description: The resource's id + example: XGZwpOSrWL + stockItem_data_relationships_reserved_stock: + properties: + data: + $ref: '#/components/schemas/stockItem_data_relationships_reserved_stock_data' stockItem_data_relationships: properties: stock_location: $ref: '#/components/schemas/deliveryLeadTime_data_relationships_stock_location' sku: $ref: '#/components/schemas/bundle_data_relationships_skus' + reserved_stock: + $ref: '#/components/schemas/stockItem_data_relationships_reserved_stock' + stock_reservations: + $ref: '#/components/schemas/lineItem_data_relationships_stock_reservations' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' stockItem_data: properties: type: @@ -59666,11 +76297,17 @@ components: stockLineItem_data_relationships: properties: shipment: - $ref: '#/components/schemas/order_data_relationships_shipments' + $ref: '#/components/schemas/lineItem_data_relationships_shipment' line_item: $ref: '#/components/schemas/lineItemOption_data_relationships_line_item' stock_item: - $ref: '#/components/schemas/sku_data_relationships_stock_items' + $ref: '#/components/schemas/reservedStock_data_relationships_stock_item' + sku: + $ref: '#/components/schemas/bundle_data_relationships_skus' + stock_reservation: + $ref: '#/components/schemas/lineItem_data_relationships_stock_reservations' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' stockLineItem_data: properties: type: @@ -59684,6 +76321,52 @@ components: required: - attributes - type + stockLineItemCreate_data_relationships_stock_item: + properties: + data: + $ref: '#/components/schemas/reservedStock_data_relationships_stock_item_data' + required: + - data + stockLineItemCreate_data_relationships: + properties: + shipment: + $ref: '#/components/schemas/parcelCreate_data_relationships_shipment' + line_item: + $ref: '#/components/schemas/lineItemOptionCreate_data_relationships_line_item' + stock_item: + $ref: '#/components/schemas/stockLineItemCreate_data_relationships_stock_item' + sku: + $ref: '#/components/schemas/inStockSubscriptionCreate_data_relationships_sku' + stockLineItemCreate_data: + properties: + type: + description: The resource's type + enum: + - stock_line_items + attributes: + $ref: '#/components/schemas/POST_stock_line_items_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/stockLineItemCreate_data_relationships' + required: + - attributes + - type + stockLineItemUpdate_data: + properties: + type: + description: The resource's type + enum: + - stock_line_items + id: + description: The resource's id + example: XGZwpOSrWL + attributes: + $ref: '#/components/schemas/PATCH_stock_line_items_stockLineItemId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/stockLineItemCreate_data_relationships' + required: + - attributes + - id + - type stockLocation_data_relationships: properties: address: @@ -59693,11 +76376,13 @@ components: inventory_return_locations: $ref: '#/components/schemas/inventoryModel_data_relationships_inventory_return_locations' stock_items: - $ref: '#/components/schemas/sku_data_relationships_stock_items' + $ref: '#/components/schemas/reservedStock_data_relationships_stock_item' stock_transfers: $ref: '#/components/schemas/lineItem_data_relationships_stock_transfers' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' stockLocation_data: properties: type: @@ -59741,6 +76426,71 @@ components: - attributes - id - type + stockReservation_data_relationships: + properties: + line_item: + $ref: '#/components/schemas/lineItemOption_data_relationships_line_item' + order: + $ref: '#/components/schemas/adyenPayment_data_relationships_order' + stock_line_item: + $ref: '#/components/schemas/lineItem_data_relationships_stock_line_items' + stock_transfer: + $ref: '#/components/schemas/lineItem_data_relationships_stock_transfers' + stock_item: + $ref: '#/components/schemas/reservedStock_data_relationships_stock_item' + reserved_stock: + $ref: '#/components/schemas/stockItem_data_relationships_reserved_stock' + sku: + $ref: '#/components/schemas/bundle_data_relationships_skus' + stockReservation_data: + properties: + type: + description: The resource's type + enum: + - stock_reservations + attributes: + $ref: '#/components/schemas/GET_stock_reservations_stockReservationId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/stockReservation_data_relationships' + required: + - attributes + - type + stockReservationCreate_data_relationships: + properties: + stock_item: + $ref: '#/components/schemas/stockLineItemCreate_data_relationships_stock_item' + required: + - stock_item + stockReservationCreate_data: + properties: + type: + description: The resource's type + enum: + - stock_reservations + attributes: + $ref: '#/components/schemas/POST_stock_reservations_201_response_data_attributes' + relationships: + $ref: '#/components/schemas/stockReservationCreate_data_relationships' + required: + - attributes + - type + stockReservationUpdate_data: + properties: + type: + description: The resource's type + enum: + - stock_reservations + id: + description: The resource's id + example: XGZwpOSrWL + attributes: + $ref: '#/components/schemas/PATCH_stock_reservations_stockReservationId_200_response_data_attributes' + relationships: + properties: {} + required: + - attributes + - id + - type stockTransfer_data_relationships: properties: sku: @@ -59750,11 +76500,17 @@ components: destination_stock_location: $ref: '#/components/schemas/deliveryLeadTime_data_relationships_stock_location' shipment: - $ref: '#/components/schemas/order_data_relationships_shipments' + $ref: '#/components/schemas/lineItem_data_relationships_shipment' line_item: $ref: '#/components/schemas/lineItemOption_data_relationships_line_item' + stock_reservation: + $ref: '#/components/schemas/lineItem_data_relationships_stock_reservations' + attachments: + $ref: '#/components/schemas/authorization_data_relationships_attachments' events: - $ref: '#/components/schemas/authorization_data_relationships_events' + $ref: '#/components/schemas/address_data_relationships_events' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' stockTransfer_data: properties: type: @@ -59805,6 +76561,10 @@ components: $ref: '#/components/schemas/deliveryLeadTimeCreate_data_relationships_stock_location' destination_stock_location: $ref: '#/components/schemas/deliveryLeadTimeCreate_data_relationships_stock_location' + shipment: + $ref: '#/components/schemas/parcelCreate_data_relationships_shipment' + line_item: + $ref: '#/components/schemas/lineItemOptionCreate_data_relationships_line_item' stockTransferUpdate_data: properties: type: @@ -59839,6 +76599,8 @@ components: properties: payment_methods: $ref: '#/components/schemas/adyenGateway_data_relationships_payment_methods' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' stripe_payments: $ref: '#/components/schemas/stripeGateway_data_relationships_stripe_payments' stripeGateway_data: @@ -59934,7 +76696,7 @@ components: order_subscriptions: $ref: '#/components/schemas/customer_data_relationships_order_subscriptions' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' subscriptionModel_data: properties: type: @@ -59978,48 +76740,72 @@ components: - attributes - id - type - taxCalculator_data: + tag_data: properties: type: description: The resource's type enum: - - tax_calculators + - tags attributes: - $ref: '#/components/schemas/GET_manual_tax_calculators_manualTaxCalculatorId_200_response_data_attributes' + $ref: '#/components/schemas/GET_tags_tagId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/externalTaxCalculator_data_relationships' + properties: {} required: - attributes - type - taxCategory_data_relationships_tax_calculator_data: + tagCreate_data: properties: type: description: The resource's type enum: - - avalara_accounts - - taxjar_accounts - - manual_tax_calculators - - external_tax_calculators + - tags + attributes: + $ref: '#/components/schemas/POST_tags_201_response_data_attributes' + relationships: + properties: {} + required: + - attributes + - type + tagUpdate_data: + properties: + type: + description: The resource's type + enum: + - tags id: description: The resource's id example: XGZwpOSrWL - taxCategory_data_relationships_tax_calculator: - oneOf: - - $ref: '#/components/schemas/avalaraAccount' - - $ref: '#/components/schemas/taxjarAccount' - - $ref: '#/components/schemas/manualTaxCalculator' - - $ref: '#/components/schemas/externalTaxCalculator' + attributes: + $ref: '#/components/schemas/PATCH_tags_tagId_200_response_data_attributes' + relationships: + properties: {} + required: + - attributes + - id + - type + taxCalculator_data: properties: - data: - $ref: '#/components/schemas/taxCategory_data_relationships_tax_calculator_data' + type: + description: The resource's type + enum: + - tax_calculators + attributes: + $ref: '#/components/schemas/GET_manual_tax_calculators_manualTaxCalculatorId_200_response_data_attributes' + relationships: + $ref: '#/components/schemas/externalTaxCalculator_data_relationships' + required: + - attributes + - type taxCategory_data_relationships: properties: sku: $ref: '#/components/schemas/bundle_data_relationships_skus' tax_calculator: - $ref: '#/components/schemas/taxCategory_data_relationships_tax_calculator' + $ref: '#/components/schemas/market_data_relationships_tax_calculator' attachments: - $ref: '#/components/schemas/avalaraAccount_data_relationships_attachments' + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' taxCategory_data: properties: type: @@ -60033,23 +76819,12 @@ components: required: - attributes - type - taxCategoryCreate_data_relationships_tax_calculator: - oneOf: - - $ref: '#/components/schemas/avalaraAccount' - - $ref: '#/components/schemas/taxjarAccount' - - $ref: '#/components/schemas/manualTaxCalculator' - - $ref: '#/components/schemas/externalTaxCalculator' - properties: - data: - $ref: '#/components/schemas/taxCategory_data_relationships_tax_calculator_data' - required: - - data taxCategoryCreate_data_relationships: properties: sku: $ref: '#/components/schemas/inStockSubscriptionCreate_data_relationships_sku' tax_calculator: - $ref: '#/components/schemas/taxCategoryCreate_data_relationships_tax_calculator' + $ref: '#/components/schemas/marketCreate_data_relationships_tax_calculator' required: - sku - tax_calculator @@ -60104,6 +76879,8 @@ components: properties: manual_tax_calculator: $ref: '#/components/schemas/taxRule_data_relationships_manual_tax_calculator' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' taxRule_data: properties: type: @@ -60163,6 +76940,16 @@ components: - attributes - id - type + taxjarAccount_data_relationships: + properties: + markets: + $ref: '#/components/schemas/avalaraAccount_data_relationships_markets' + attachments: + $ref: '#/components/schemas/authorization_data_relationships_attachments' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' + tax_categories: + $ref: '#/components/schemas/avalaraAccount_data_relationships_tax_categories' taxjarAccount_data: properties: type: @@ -60172,7 +76959,7 @@ components: attributes: $ref: '#/components/schemas/GET_manual_tax_calculators_manualTaxCalculatorId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/avalaraAccount_data_relationships' + $ref: '#/components/schemas/taxjarAccount_data_relationships' required: - attributes - type @@ -60210,6 +76997,12 @@ components: properties: order: $ref: '#/components/schemas/adyenPayment_data_relationships_order' + attachments: + $ref: '#/components/schemas/authorization_data_relationships_attachments' + events: + $ref: '#/components/schemas/address_data_relationships_events' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' transaction_data: properties: type: @@ -60223,14 +77016,31 @@ components: required: - attributes - type + version_data: + properties: + type: + description: The resource's type + enum: + - versions + attributes: + $ref: '#/components/schemas/GET_versions_versionId_200_response_data_attributes' + relationships: + properties: {} + required: + - attributes + - type void_data_relationships: properties: order: $ref: '#/components/schemas/adyenPayment_data_relationships_order' + attachments: + $ref: '#/components/schemas/authorization_data_relationships_attachments' + events: + $ref: '#/components/schemas/address_data_relationships_events' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' reference_authorization: $ref: '#/components/schemas/capture_data_relationships_reference_authorization' - events: - $ref: '#/components/schemas/authorization_data_relationships_events' void_data: properties: type: @@ -60244,10 +77054,29 @@ components: required: - attributes - type + voidUpdate_data: + properties: + type: + description: The resource's type + enum: + - voids + id: + description: The resource's id + example: XGZwpOSrWL + attributes: + $ref: '#/components/schemas/PATCH_refunds_refundId_200_response_data_attributes' + relationships: + properties: {} + required: + - attributes + - id + - type webhook_data_relationships: properties: last_event_callbacks: $ref: '#/components/schemas/event_data_relationships_last_event_callbacks' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' webhook_data: properties: type: @@ -60291,6 +77120,12 @@ components: - attributes - id - type + wireTransfer_data_relationships: + properties: + order: + $ref: '#/components/schemas/adyenPayment_data_relationships_order' + versions: + $ref: '#/components/schemas/address_data_relationships_versions' wireTransfer_data: properties: type: @@ -60300,7 +77135,7 @@ components: attributes: $ref: '#/components/schemas/GET_wire_transfers_wireTransferId_200_response_data_attributes' relationships: - $ref: '#/components/schemas/transaction_data_relationships' + $ref: '#/components/schemas/wireTransfer_data_relationships' required: - attributes - type diff --git a/api/api_addresses.go b/api/api_addresses.go index 3a961b0e..9476f201 100644 --- a/api/api_addresses.go +++ b/api/api_addresses.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_adjustments.go b/api/api_adjustments.go index bd7b5fb5..b407d8d2 100644 --- a/api/api_adjustments.go +++ b/api/api_adjustments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_adyen_gateways.go b/api/api_adyen_gateways.go index 2fe3a5b7..4d973630 100644 --- a/api/api_adyen_gateways.go +++ b/api/api_adyen_gateways.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_adyen_payments.go b/api/api_adyen_payments.go index d321baf5..49c7eb02 100644 --- a/api/api_adyen_payments.go +++ b/api/api_adyen_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_application.go b/api/api_application.go index 6e1f6361..2e1b8696 100644 --- a/api/api_application.go +++ b/api/api_application.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_attachments.go b/api/api_attachments.go index 2e8f4d72..b9a98b3a 100644 --- a/api/api_attachments.go +++ b/api/api_attachments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -319,6 +319,98 @@ func (a *AttachmentsApiService) GETAttachmentsAttachmentIdExecute(r AttachmentsA return localVarReturnValue, localVarHTTPResponse, nil } +type AttachmentsApiGETAuthorizationIdAttachmentsRequest struct { + ctx context.Context + ApiService *AttachmentsApiService + authorizationId interface{} +} + +func (r AttachmentsApiGETAuthorizationIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAuthorizationIdAttachmentsExecute(r) +} + +/* +GETAuthorizationIdAttachments Retrieve the attachments associated to the authorization + +Retrieve the attachments associated to the authorization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param authorizationId The resource's id + @return AttachmentsApiGETAuthorizationIdAttachmentsRequest +*/ +func (a *AttachmentsApiService) GETAuthorizationIdAttachments(ctx context.Context, authorizationId interface{}) AttachmentsApiGETAuthorizationIdAttachmentsRequest { + return AttachmentsApiGETAuthorizationIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + authorizationId: authorizationId, + } +} + +// Execute executes the request +func (a *AttachmentsApiService) GETAuthorizationIdAttachmentsExecute(r AttachmentsApiGETAuthorizationIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttachmentsApiService.GETAuthorizationIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/authorizations/{authorizationId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"authorizationId"+"}", url.PathEscape(parameterValueToString(r.authorizationId, "authorizationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type AttachmentsApiGETAvalaraAccountIdAttachmentsRequest struct { ctx context.Context ApiService *AttachmentsApiService @@ -687,6 +779,190 @@ func (a *AttachmentsApiService) GETBundleIdAttachmentsExecute(r AttachmentsApiGE return localVarHTTPResponse, nil } +type AttachmentsApiGETBuyXPayYPromotionIdAttachmentsRequest struct { + ctx context.Context + ApiService *AttachmentsApiService + buyXPayYPromotionId interface{} +} + +func (r AttachmentsApiGETBuyXPayYPromotionIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdAttachmentsExecute(r) +} + +/* +GETBuyXPayYPromotionIdAttachments Retrieve the attachments associated to the buy x pay y promotion + +Retrieve the attachments associated to the buy x pay y promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param buyXPayYPromotionId The resource's id + @return AttachmentsApiGETBuyXPayYPromotionIdAttachmentsRequest +*/ +func (a *AttachmentsApiService) GETBuyXPayYPromotionIdAttachments(ctx context.Context, buyXPayYPromotionId interface{}) AttachmentsApiGETBuyXPayYPromotionIdAttachmentsRequest { + return AttachmentsApiGETBuyXPayYPromotionIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, + } +} + +// Execute executes the request +func (a *AttachmentsApiService) GETBuyXPayYPromotionIdAttachmentsExecute(r AttachmentsApiGETBuyXPayYPromotionIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttachmentsApiService.GETBuyXPayYPromotionIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type AttachmentsApiGETCaptureIdAttachmentsRequest struct { + ctx context.Context + ApiService *AttachmentsApiService + captureId interface{} +} + +func (r AttachmentsApiGETCaptureIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCaptureIdAttachmentsExecute(r) +} + +/* +GETCaptureIdAttachments Retrieve the attachments associated to the capture + +Retrieve the attachments associated to the capture + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param captureId The resource's id + @return AttachmentsApiGETCaptureIdAttachmentsRequest +*/ +func (a *AttachmentsApiService) GETCaptureIdAttachments(ctx context.Context, captureId interface{}) AttachmentsApiGETCaptureIdAttachmentsRequest { + return AttachmentsApiGETCaptureIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + captureId: captureId, + } +} + +// Execute executes the request +func (a *AttachmentsApiService) GETCaptureIdAttachmentsExecute(r AttachmentsApiGETCaptureIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttachmentsApiService.GETCaptureIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/captures/{captureId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"captureId"+"}", url.PathEscape(parameterValueToString(r.captureId, "captureId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type AttachmentsApiGETCarrierAccountIdAttachmentsRequest struct { ctx context.Context ApiService *AttachmentsApiService @@ -1515,6 +1791,98 @@ func (a *AttachmentsApiService) GETFixedPricePromotionIdAttachmentsExecute(r Att return localVarHTTPResponse, nil } +type AttachmentsApiGETFlexPromotionIdAttachmentsRequest struct { + ctx context.Context + ApiService *AttachmentsApiService + flexPromotionId interface{} +} + +func (r AttachmentsApiGETFlexPromotionIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFlexPromotionIdAttachmentsExecute(r) +} + +/* +GETFlexPromotionIdAttachments Retrieve the attachments associated to the flex promotion + +Retrieve the attachments associated to the flex promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param flexPromotionId The resource's id + @return AttachmentsApiGETFlexPromotionIdAttachmentsRequest +*/ +func (a *AttachmentsApiService) GETFlexPromotionIdAttachments(ctx context.Context, flexPromotionId interface{}) AttachmentsApiGETFlexPromotionIdAttachmentsRequest { + return AttachmentsApiGETFlexPromotionIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + flexPromotionId: flexPromotionId, + } +} + +// Execute executes the request +func (a *AttachmentsApiService) GETFlexPromotionIdAttachmentsExecute(r AttachmentsApiGETFlexPromotionIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttachmentsApiService.GETFlexPromotionIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/flex_promotions/{flexPromotionId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"flexPromotionId"+"}", url.PathEscape(parameterValueToString(r.flexPromotionId, "flexPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type AttachmentsApiGETFreeGiftPromotionIdAttachmentsRequest struct { ctx context.Context ApiService *AttachmentsApiService @@ -2527,48 +2895,48 @@ func (a *AttachmentsApiService) GETOrderIdAttachmentsExecute(r AttachmentsApiGET return localVarHTTPResponse, nil } -type AttachmentsApiGETOrderValidationRuleIdAttachmentsRequest struct { - ctx context.Context - ApiService *AttachmentsApiService - orderValidationRuleId interface{} +type AttachmentsApiGETPackageIdAttachmentsRequest struct { + ctx context.Context + ApiService *AttachmentsApiService + packageId interface{} } -func (r AttachmentsApiGETOrderValidationRuleIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderValidationRuleIdAttachmentsExecute(r) +func (r AttachmentsApiGETPackageIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPackageIdAttachmentsExecute(r) } /* -GETOrderValidationRuleIdAttachments Retrieve the attachments associated to the order validation rule +GETPackageIdAttachments Retrieve the attachments associated to the package -Retrieve the attachments associated to the order validation rule +Retrieve the attachments associated to the package @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderValidationRuleId The resource's id - @return AttachmentsApiGETOrderValidationRuleIdAttachmentsRequest + @param packageId The resource's id + @return AttachmentsApiGETPackageIdAttachmentsRequest */ -func (a *AttachmentsApiService) GETOrderValidationRuleIdAttachments(ctx context.Context, orderValidationRuleId interface{}) AttachmentsApiGETOrderValidationRuleIdAttachmentsRequest { - return AttachmentsApiGETOrderValidationRuleIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - orderValidationRuleId: orderValidationRuleId, +func (a *AttachmentsApiService) GETPackageIdAttachments(ctx context.Context, packageId interface{}) AttachmentsApiGETPackageIdAttachmentsRequest { + return AttachmentsApiGETPackageIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + packageId: packageId, } } // Execute executes the request -func (a *AttachmentsApiService) GETOrderValidationRuleIdAttachmentsExecute(r AttachmentsApiGETOrderValidationRuleIdAttachmentsRequest) (*http.Response, error) { +func (a *AttachmentsApiService) GETPackageIdAttachmentsExecute(r AttachmentsApiGETPackageIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttachmentsApiService.GETOrderValidationRuleIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttachmentsApiService.GETPackageIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_validation_rules/{orderValidationRuleId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"orderValidationRuleId"+"}", url.PathEscape(parameterValueToString(r.orderValidationRuleId, "orderValidationRuleId")), -1) + localVarPath := localBasePath + "/packages/{packageId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"packageId"+"}", url.PathEscape(parameterValueToString(r.packageId, "packageId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2619,48 +2987,48 @@ func (a *AttachmentsApiService) GETOrderValidationRuleIdAttachmentsExecute(r Att return localVarHTTPResponse, nil } -type AttachmentsApiGETPackageIdAttachmentsRequest struct { +type AttachmentsApiGETParcelIdAttachmentsRequest struct { ctx context.Context ApiService *AttachmentsApiService - packageId interface{} + parcelId interface{} } -func (r AttachmentsApiGETPackageIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPackageIdAttachmentsExecute(r) +func (r AttachmentsApiGETParcelIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETParcelIdAttachmentsExecute(r) } /* -GETPackageIdAttachments Retrieve the attachments associated to the package +GETParcelIdAttachments Retrieve the attachments associated to the parcel -Retrieve the attachments associated to the package +Retrieve the attachments associated to the parcel @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param packageId The resource's id - @return AttachmentsApiGETPackageIdAttachmentsRequest + @param parcelId The resource's id + @return AttachmentsApiGETParcelIdAttachmentsRequest */ -func (a *AttachmentsApiService) GETPackageIdAttachments(ctx context.Context, packageId interface{}) AttachmentsApiGETPackageIdAttachmentsRequest { - return AttachmentsApiGETPackageIdAttachmentsRequest{ +func (a *AttachmentsApiService) GETParcelIdAttachments(ctx context.Context, parcelId interface{}) AttachmentsApiGETParcelIdAttachmentsRequest { + return AttachmentsApiGETParcelIdAttachmentsRequest{ ApiService: a, ctx: ctx, - packageId: packageId, + parcelId: parcelId, } } // Execute executes the request -func (a *AttachmentsApiService) GETPackageIdAttachmentsExecute(r AttachmentsApiGETPackageIdAttachmentsRequest) (*http.Response, error) { +func (a *AttachmentsApiService) GETParcelIdAttachmentsExecute(r AttachmentsApiGETParcelIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttachmentsApiService.GETPackageIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttachmentsApiService.GETParcelIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/packages/{packageId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"packageId"+"}", url.PathEscape(parameterValueToString(r.packageId, "packageId")), -1) + localVarPath := localBasePath + "/parcels/{parcelId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"parcelId"+"}", url.PathEscape(parameterValueToString(r.parcelId, "parcelId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2711,48 +3079,48 @@ func (a *AttachmentsApiService) GETPackageIdAttachmentsExecute(r AttachmentsApiG return localVarHTTPResponse, nil } -type AttachmentsApiGETParcelIdAttachmentsRequest struct { - ctx context.Context - ApiService *AttachmentsApiService - parcelId interface{} +type AttachmentsApiGETPaymentMethodIdAttachmentsRequest struct { + ctx context.Context + ApiService *AttachmentsApiService + paymentMethodId interface{} } -func (r AttachmentsApiGETParcelIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETParcelIdAttachmentsExecute(r) +func (r AttachmentsApiGETPaymentMethodIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaymentMethodIdAttachmentsExecute(r) } /* -GETParcelIdAttachments Retrieve the attachments associated to the parcel +GETPaymentMethodIdAttachments Retrieve the attachments associated to the payment method -Retrieve the attachments associated to the parcel +Retrieve the attachments associated to the payment method @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param parcelId The resource's id - @return AttachmentsApiGETParcelIdAttachmentsRequest + @param paymentMethodId The resource's id + @return AttachmentsApiGETPaymentMethodIdAttachmentsRequest */ -func (a *AttachmentsApiService) GETParcelIdAttachments(ctx context.Context, parcelId interface{}) AttachmentsApiGETParcelIdAttachmentsRequest { - return AttachmentsApiGETParcelIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - parcelId: parcelId, +func (a *AttachmentsApiService) GETPaymentMethodIdAttachments(ctx context.Context, paymentMethodId interface{}) AttachmentsApiGETPaymentMethodIdAttachmentsRequest { + return AttachmentsApiGETPaymentMethodIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + paymentMethodId: paymentMethodId, } } // Execute executes the request -func (a *AttachmentsApiService) GETParcelIdAttachmentsExecute(r AttachmentsApiGETParcelIdAttachmentsRequest) (*http.Response, error) { +func (a *AttachmentsApiService) GETPaymentMethodIdAttachmentsExecute(r AttachmentsApiGETPaymentMethodIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttachmentsApiService.GETParcelIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttachmentsApiService.GETPaymentMethodIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/parcels/{parcelId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"parcelId"+"}", url.PathEscape(parameterValueToString(r.parcelId, "parcelId")), -1) + localVarPath := localBasePath + "/payment_methods/{paymentMethodId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"paymentMethodId"+"}", url.PathEscape(parameterValueToString(r.paymentMethodId, "paymentMethodId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2803,48 +3171,48 @@ func (a *AttachmentsApiService) GETParcelIdAttachmentsExecute(r AttachmentsApiGE return localVarHTTPResponse, nil } -type AttachmentsApiGETPaymentMethodIdAttachmentsRequest struct { +type AttachmentsApiGETPaymentOptionIdAttachmentsRequest struct { ctx context.Context ApiService *AttachmentsApiService - paymentMethodId interface{} + paymentOptionId interface{} } -func (r AttachmentsApiGETPaymentMethodIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPaymentMethodIdAttachmentsExecute(r) +func (r AttachmentsApiGETPaymentOptionIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaymentOptionIdAttachmentsExecute(r) } /* -GETPaymentMethodIdAttachments Retrieve the attachments associated to the payment method +GETPaymentOptionIdAttachments Retrieve the attachments associated to the payment option -Retrieve the attachments associated to the payment method +Retrieve the attachments associated to the payment option @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param paymentMethodId The resource's id - @return AttachmentsApiGETPaymentMethodIdAttachmentsRequest + @param paymentOptionId The resource's id + @return AttachmentsApiGETPaymentOptionIdAttachmentsRequest */ -func (a *AttachmentsApiService) GETPaymentMethodIdAttachments(ctx context.Context, paymentMethodId interface{}) AttachmentsApiGETPaymentMethodIdAttachmentsRequest { - return AttachmentsApiGETPaymentMethodIdAttachmentsRequest{ +func (a *AttachmentsApiService) GETPaymentOptionIdAttachments(ctx context.Context, paymentOptionId interface{}) AttachmentsApiGETPaymentOptionIdAttachmentsRequest { + return AttachmentsApiGETPaymentOptionIdAttachmentsRequest{ ApiService: a, ctx: ctx, - paymentMethodId: paymentMethodId, + paymentOptionId: paymentOptionId, } } // Execute executes the request -func (a *AttachmentsApiService) GETPaymentMethodIdAttachmentsExecute(r AttachmentsApiGETPaymentMethodIdAttachmentsRequest) (*http.Response, error) { +func (a *AttachmentsApiService) GETPaymentOptionIdAttachmentsExecute(r AttachmentsApiGETPaymentOptionIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttachmentsApiService.GETPaymentMethodIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttachmentsApiService.GETPaymentOptionIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/payment_methods/{paymentMethodId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"paymentMethodId"+"}", url.PathEscape(parameterValueToString(r.paymentMethodId, "paymentMethodId")), -1) + localVarPath := localBasePath + "/payment_options/{paymentOptionId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"paymentOptionId"+"}", url.PathEscape(parameterValueToString(r.paymentOptionId, "paymentOptionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3447,48 +3815,140 @@ func (a *AttachmentsApiService) GETPriceVolumeTierIdAttachmentsExecute(r Attachm return localVarHTTPResponse, nil } -type AttachmentsApiGETPromotionIdAttachmentsRequest struct { - ctx context.Context - ApiService *AttachmentsApiService - promotionId interface{} +type AttachmentsApiGETPromotionIdAttachmentsRequest struct { + ctx context.Context + ApiService *AttachmentsApiService + promotionId interface{} +} + +func (r AttachmentsApiGETPromotionIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionIdAttachmentsExecute(r) +} + +/* +GETPromotionIdAttachments Retrieve the attachments associated to the promotion + +Retrieve the attachments associated to the promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param promotionId The resource's id + @return AttachmentsApiGETPromotionIdAttachmentsRequest +*/ +func (a *AttachmentsApiService) GETPromotionIdAttachments(ctx context.Context, promotionId interface{}) AttachmentsApiGETPromotionIdAttachmentsRequest { + return AttachmentsApiGETPromotionIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + promotionId: promotionId, + } +} + +// Execute executes the request +func (a *AttachmentsApiService) GETPromotionIdAttachmentsExecute(r AttachmentsApiGETPromotionIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttachmentsApiService.GETPromotionIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/promotions/{promotionId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type AttachmentsApiGETRefundIdAttachmentsRequest struct { + ctx context.Context + ApiService *AttachmentsApiService + refundId interface{} } -func (r AttachmentsApiGETPromotionIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPromotionIdAttachmentsExecute(r) +func (r AttachmentsApiGETRefundIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETRefundIdAttachmentsExecute(r) } /* -GETPromotionIdAttachments Retrieve the attachments associated to the promotion +GETRefundIdAttachments Retrieve the attachments associated to the refund -Retrieve the attachments associated to the promotion +Retrieve the attachments associated to the refund @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param promotionId The resource's id - @return AttachmentsApiGETPromotionIdAttachmentsRequest + @param refundId The resource's id + @return AttachmentsApiGETRefundIdAttachmentsRequest */ -func (a *AttachmentsApiService) GETPromotionIdAttachments(ctx context.Context, promotionId interface{}) AttachmentsApiGETPromotionIdAttachmentsRequest { - return AttachmentsApiGETPromotionIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - promotionId: promotionId, +func (a *AttachmentsApiService) GETRefundIdAttachments(ctx context.Context, refundId interface{}) AttachmentsApiGETRefundIdAttachmentsRequest { + return AttachmentsApiGETRefundIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + refundId: refundId, } } // Execute executes the request -func (a *AttachmentsApiService) GETPromotionIdAttachmentsExecute(r AttachmentsApiGETPromotionIdAttachmentsRequest) (*http.Response, error) { +func (a *AttachmentsApiService) GETRefundIdAttachmentsExecute(r AttachmentsApiGETRefundIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttachmentsApiService.GETPromotionIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttachmentsApiService.GETRefundIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/promotions/{promotionId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) + localVarPath := localBasePath + "/refunds/{refundId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"refundId"+"}", url.PathEscape(parameterValueToString(r.refundId, "refundId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4643,6 +5103,98 @@ func (a *AttachmentsApiService) GETStockLocationIdAttachmentsExecute(r Attachmen return localVarHTTPResponse, nil } +type AttachmentsApiGETStockTransferIdAttachmentsRequest struct { + ctx context.Context + ApiService *AttachmentsApiService + stockTransferId interface{} +} + +func (r AttachmentsApiGETStockTransferIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockTransferIdAttachmentsExecute(r) +} + +/* +GETStockTransferIdAttachments Retrieve the attachments associated to the stock transfer + +Retrieve the attachments associated to the stock transfer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockTransferId The resource's id + @return AttachmentsApiGETStockTransferIdAttachmentsRequest +*/ +func (a *AttachmentsApiService) GETStockTransferIdAttachments(ctx context.Context, stockTransferId interface{}) AttachmentsApiGETStockTransferIdAttachmentsRequest { + return AttachmentsApiGETStockTransferIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + stockTransferId: stockTransferId, + } +} + +// Execute executes the request +func (a *AttachmentsApiService) GETStockTransferIdAttachmentsExecute(r AttachmentsApiGETStockTransferIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttachmentsApiService.GETStockTransferIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_transfers/{stockTransferId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"stockTransferId"+"}", url.PathEscape(parameterValueToString(r.stockTransferId, "stockTransferId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type AttachmentsApiGETSubscriptionModelIdAttachmentsRequest struct { ctx context.Context ApiService *AttachmentsApiService @@ -5011,6 +5563,190 @@ func (a *AttachmentsApiService) GETTaxjarAccountIdAttachmentsExecute(r Attachmen return localVarHTTPResponse, nil } +type AttachmentsApiGETTransactionIdAttachmentsRequest struct { + ctx context.Context + ApiService *AttachmentsApiService + transactionId interface{} +} + +func (r AttachmentsApiGETTransactionIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTransactionIdAttachmentsExecute(r) +} + +/* +GETTransactionIdAttachments Retrieve the attachments associated to the transaction + +Retrieve the attachments associated to the transaction + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param transactionId The resource's id + @return AttachmentsApiGETTransactionIdAttachmentsRequest +*/ +func (a *AttachmentsApiService) GETTransactionIdAttachments(ctx context.Context, transactionId interface{}) AttachmentsApiGETTransactionIdAttachmentsRequest { + return AttachmentsApiGETTransactionIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + transactionId: transactionId, + } +} + +// Execute executes the request +func (a *AttachmentsApiService) GETTransactionIdAttachmentsExecute(r AttachmentsApiGETTransactionIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttachmentsApiService.GETTransactionIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/transactions/{transactionId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"transactionId"+"}", url.PathEscape(parameterValueToString(r.transactionId, "transactionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type AttachmentsApiGETVoidIdAttachmentsRequest struct { + ctx context.Context + ApiService *AttachmentsApiService + voidId interface{} +} + +func (r AttachmentsApiGETVoidIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETVoidIdAttachmentsExecute(r) +} + +/* +GETVoidIdAttachments Retrieve the attachments associated to the void + +Retrieve the attachments associated to the void + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param voidId The resource's id + @return AttachmentsApiGETVoidIdAttachmentsRequest +*/ +func (a *AttachmentsApiService) GETVoidIdAttachments(ctx context.Context, voidId interface{}) AttachmentsApiGETVoidIdAttachmentsRequest { + return AttachmentsApiGETVoidIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + voidId: voidId, + } +} + +// Execute executes the request +func (a *AttachmentsApiService) GETVoidIdAttachmentsExecute(r AttachmentsApiGETVoidIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttachmentsApiService.GETVoidIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/voids/{voidId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"voidId"+"}", url.PathEscape(parameterValueToString(r.voidId, "voidId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type AttachmentsApiPATCHAttachmentsAttachmentIdRequest struct { ctx context.Context ApiService *AttachmentsApiService diff --git a/api/api_authorizations.go b/api/api_authorizations.go index 26eb21c3..8dd73d38 100644 --- a/api/api_authorizations.go +++ b/api/api_authorizations.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_avalara_accounts.go b/api/api_avalara_accounts.go index ddd83e11..111f978b 100644 --- a/api/api_avalara_accounts.go +++ b/api/api_avalara_accounts.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_axerve_gateways.go b/api/api_axerve_gateways.go index ae6faddd..53aa77db 100644 --- a/api/api_axerve_gateways.go +++ b/api/api_axerve_gateways.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_axerve_payments.go b/api/api_axerve_payments.go index 1356f458..b4da30b2 100644 --- a/api/api_axerve_payments.go +++ b/api/api_axerve_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_billing_info_validation_rules.go b/api/api_billing_info_validation_rules.go index d46af884..272f2725 100644 --- a/api/api_billing_info_validation_rules.go +++ b/api/api_billing_info_validation_rules.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_bing_geocoders.go b/api/api_bing_geocoders.go index cc3b5472..ea270624 100644 --- a/api/api_bing_geocoders.go +++ b/api/api_bing_geocoders.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_braintree_gateways.go b/api/api_braintree_gateways.go index 963c45b3..6ef67269 100644 --- a/api/api_braintree_gateways.go +++ b/api/api_braintree_gateways.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_braintree_payments.go b/api/api_braintree_payments.go index 2a45ddeb..f07ff9f9 100644 --- a/api/api_braintree_payments.go +++ b/api/api_braintree_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_bundles.go b/api/api_bundles.go index d8c81683..1a2791b9 100644 --- a/api/api_bundles.go +++ b/api/api_bundles.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_buy_x_pay_y_promotions.go b/api/api_buy_x_pay_y_promotions.go new file mode 100644 index 00000000..4ac7a0e6 --- /dev/null +++ b/api/api_buy_x_pay_y_promotions.go @@ -0,0 +1,546 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// BuyXPayYPromotionsApiService BuyXPayYPromotionsApi service +type BuyXPayYPromotionsApiService service + +type BuyXPayYPromotionsApiDELETEBuyXPayYPromotionsBuyXPayYPromotionIdRequest struct { + ctx context.Context + ApiService *BuyXPayYPromotionsApiService + buyXPayYPromotionId interface{} +} + +func (r BuyXPayYPromotionsApiDELETEBuyXPayYPromotionsBuyXPayYPromotionIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DELETEBuyXPayYPromotionsBuyXPayYPromotionIdExecute(r) +} + +/* +DELETEBuyXPayYPromotionsBuyXPayYPromotionId Delete a buy x pay y promotion + +Delete a buy x pay y promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param buyXPayYPromotionId The resource's id + @return BuyXPayYPromotionsApiDELETEBuyXPayYPromotionsBuyXPayYPromotionIdRequest +*/ +func (a *BuyXPayYPromotionsApiService) DELETEBuyXPayYPromotionsBuyXPayYPromotionId(ctx context.Context, buyXPayYPromotionId interface{}) BuyXPayYPromotionsApiDELETEBuyXPayYPromotionsBuyXPayYPromotionIdRequest { + return BuyXPayYPromotionsApiDELETEBuyXPayYPromotionsBuyXPayYPromotionIdRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, + } +} + +// Execute executes the request +func (a *BuyXPayYPromotionsApiService) DELETEBuyXPayYPromotionsBuyXPayYPromotionIdExecute(r BuyXPayYPromotionsApiDELETEBuyXPayYPromotionsBuyXPayYPromotionIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuyXPayYPromotionsApiService.DELETEBuyXPayYPromotionsBuyXPayYPromotionId") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type BuyXPayYPromotionsApiGETBuyXPayYPromotionsRequest struct { + ctx context.Context + ApiService *BuyXPayYPromotionsApiService +} + +func (r BuyXPayYPromotionsApiGETBuyXPayYPromotionsRequest) Execute() (*GETBuyXPayYPromotions200Response, *http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionsExecute(r) +} + +/* +GETBuyXPayYPromotions List all buy x pay y promotions + +List all buy x pay y promotions + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return BuyXPayYPromotionsApiGETBuyXPayYPromotionsRequest +*/ +func (a *BuyXPayYPromotionsApiService) GETBuyXPayYPromotions(ctx context.Context) BuyXPayYPromotionsApiGETBuyXPayYPromotionsRequest { + return BuyXPayYPromotionsApiGETBuyXPayYPromotionsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GETBuyXPayYPromotions200Response +func (a *BuyXPayYPromotionsApiService) GETBuyXPayYPromotionsExecute(r BuyXPayYPromotionsApiGETBuyXPayYPromotionsRequest) (*GETBuyXPayYPromotions200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETBuyXPayYPromotions200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuyXPayYPromotionsApiService.GETBuyXPayYPromotions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/buy_x_pay_y_promotions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type BuyXPayYPromotionsApiGETBuyXPayYPromotionsBuyXPayYPromotionIdRequest struct { + ctx context.Context + ApiService *BuyXPayYPromotionsApiService + buyXPayYPromotionId interface{} +} + +func (r BuyXPayYPromotionsApiGETBuyXPayYPromotionsBuyXPayYPromotionIdRequest) Execute() (*GETBuyXPayYPromotionsBuyXPayYPromotionId200Response, *http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionsBuyXPayYPromotionIdExecute(r) +} + +/* +GETBuyXPayYPromotionsBuyXPayYPromotionId Retrieve a buy x pay y promotion + +Retrieve a buy x pay y promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param buyXPayYPromotionId The resource's id + @return BuyXPayYPromotionsApiGETBuyXPayYPromotionsBuyXPayYPromotionIdRequest +*/ +func (a *BuyXPayYPromotionsApiService) GETBuyXPayYPromotionsBuyXPayYPromotionId(ctx context.Context, buyXPayYPromotionId interface{}) BuyXPayYPromotionsApiGETBuyXPayYPromotionsBuyXPayYPromotionIdRequest { + return BuyXPayYPromotionsApiGETBuyXPayYPromotionsBuyXPayYPromotionIdRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, + } +} + +// Execute executes the request +// +// @return GETBuyXPayYPromotionsBuyXPayYPromotionId200Response +func (a *BuyXPayYPromotionsApiService) GETBuyXPayYPromotionsBuyXPayYPromotionIdExecute(r BuyXPayYPromotionsApiGETBuyXPayYPromotionsBuyXPayYPromotionIdRequest) (*GETBuyXPayYPromotionsBuyXPayYPromotionId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETBuyXPayYPromotionsBuyXPayYPromotionId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuyXPayYPromotionsApiService.GETBuyXPayYPromotionsBuyXPayYPromotionId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type BuyXPayYPromotionsApiPATCHBuyXPayYPromotionsBuyXPayYPromotionIdRequest struct { + ctx context.Context + ApiService *BuyXPayYPromotionsApiService + buyXPayYPromotionUpdate *BuyXPayYPromotionUpdate + buyXPayYPromotionId interface{} +} + +func (r BuyXPayYPromotionsApiPATCHBuyXPayYPromotionsBuyXPayYPromotionIdRequest) BuyXPayYPromotionUpdate(buyXPayYPromotionUpdate BuyXPayYPromotionUpdate) BuyXPayYPromotionsApiPATCHBuyXPayYPromotionsBuyXPayYPromotionIdRequest { + r.buyXPayYPromotionUpdate = &buyXPayYPromotionUpdate + return r +} + +func (r BuyXPayYPromotionsApiPATCHBuyXPayYPromotionsBuyXPayYPromotionIdRequest) Execute() (*PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response, *http.Response, error) { + return r.ApiService.PATCHBuyXPayYPromotionsBuyXPayYPromotionIdExecute(r) +} + +/* +PATCHBuyXPayYPromotionsBuyXPayYPromotionId Update a buy x pay y promotion + +Update a buy x pay y promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param buyXPayYPromotionId The resource's id + @return BuyXPayYPromotionsApiPATCHBuyXPayYPromotionsBuyXPayYPromotionIdRequest +*/ +func (a *BuyXPayYPromotionsApiService) PATCHBuyXPayYPromotionsBuyXPayYPromotionId(ctx context.Context, buyXPayYPromotionId interface{}) BuyXPayYPromotionsApiPATCHBuyXPayYPromotionsBuyXPayYPromotionIdRequest { + return BuyXPayYPromotionsApiPATCHBuyXPayYPromotionsBuyXPayYPromotionIdRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, + } +} + +// Execute executes the request +// +// @return PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response +func (a *BuyXPayYPromotionsApiService) PATCHBuyXPayYPromotionsBuyXPayYPromotionIdExecute(r BuyXPayYPromotionsApiPATCHBuyXPayYPromotionsBuyXPayYPromotionIdRequest) (*PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuyXPayYPromotionsApiService.PATCHBuyXPayYPromotionsBuyXPayYPromotionId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.buyXPayYPromotionUpdate == nil { + return localVarReturnValue, nil, reportError("buyXPayYPromotionUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.buyXPayYPromotionUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type BuyXPayYPromotionsApiPOSTBuyXPayYPromotionsRequest struct { + ctx context.Context + ApiService *BuyXPayYPromotionsApiService + buyXPayYPromotionCreate *BuyXPayYPromotionCreate +} + +func (r BuyXPayYPromotionsApiPOSTBuyXPayYPromotionsRequest) BuyXPayYPromotionCreate(buyXPayYPromotionCreate BuyXPayYPromotionCreate) BuyXPayYPromotionsApiPOSTBuyXPayYPromotionsRequest { + r.buyXPayYPromotionCreate = &buyXPayYPromotionCreate + return r +} + +func (r BuyXPayYPromotionsApiPOSTBuyXPayYPromotionsRequest) Execute() (*POSTBuyXPayYPromotions201Response, *http.Response, error) { + return r.ApiService.POSTBuyXPayYPromotionsExecute(r) +} + +/* +POSTBuyXPayYPromotions Create a buy x pay y promotion + +Create a buy x pay y promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return BuyXPayYPromotionsApiPOSTBuyXPayYPromotionsRequest +*/ +func (a *BuyXPayYPromotionsApiService) POSTBuyXPayYPromotions(ctx context.Context) BuyXPayYPromotionsApiPOSTBuyXPayYPromotionsRequest { + return BuyXPayYPromotionsApiPOSTBuyXPayYPromotionsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return POSTBuyXPayYPromotions201Response +func (a *BuyXPayYPromotionsApiService) POSTBuyXPayYPromotionsExecute(r BuyXPayYPromotionsApiPOSTBuyXPayYPromotionsRequest) (*POSTBuyXPayYPromotions201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *POSTBuyXPayYPromotions201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuyXPayYPromotionsApiService.POSTBuyXPayYPromotions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/buy_x_pay_y_promotions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.buyXPayYPromotionCreate == nil { + return localVarReturnValue, nil, reportError("buyXPayYPromotionCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.buyXPayYPromotionCreate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api/api_captures.go b/api/api_captures.go index 541a93d6..b1a72b1c 100644 --- a/api/api_captures.go +++ b/api/api_captures.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -503,6 +503,98 @@ func (a *CapturesApiService) GETRefundIdReferenceCaptureExecute(r CapturesApiGET return localVarHTTPResponse, nil } +type CapturesApiGETReturnIdReferenceCaptureRequest struct { + ctx context.Context + ApiService *CapturesApiService + returnId interface{} +} + +func (r CapturesApiGETReturnIdReferenceCaptureRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnIdReferenceCaptureExecute(r) +} + +/* +GETReturnIdReferenceCapture Retrieve the reference capture associated to the return + +Retrieve the reference capture associated to the return + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param returnId The resource's id + @return CapturesApiGETReturnIdReferenceCaptureRequest +*/ +func (a *CapturesApiService) GETReturnIdReferenceCapture(ctx context.Context, returnId interface{}) CapturesApiGETReturnIdReferenceCaptureRequest { + return CapturesApiGETReturnIdReferenceCaptureRequest{ + ApiService: a, + ctx: ctx, + returnId: returnId, + } +} + +// Execute executes the request +func (a *CapturesApiService) GETReturnIdReferenceCaptureExecute(r CapturesApiGETReturnIdReferenceCaptureRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CapturesApiService.GETReturnIdReferenceCapture") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/returns/{returnId}/reference_capture" + localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type CapturesApiPATCHCapturesCaptureIdRequest struct { ctx context.Context ApiService *CapturesApiService diff --git a/api/api_carrier_accounts.go b/api/api_carrier_accounts.go index 6968aa5d..bc8381cf 100644 --- a/api/api_carrier_accounts.go +++ b/api/api_carrier_accounts.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,6 +23,98 @@ import ( // CarrierAccountsApiService CarrierAccountsApi service type CarrierAccountsApiService service +type CarrierAccountsApiDELETECarrierAccountsCarrierAccountIdRequest struct { + ctx context.Context + ApiService *CarrierAccountsApiService + carrierAccountId interface{} +} + +func (r CarrierAccountsApiDELETECarrierAccountsCarrierAccountIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DELETECarrierAccountsCarrierAccountIdExecute(r) +} + +/* +DELETECarrierAccountsCarrierAccountId Delete a carrier account + +Delete a carrier account + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param carrierAccountId The resource's id + @return CarrierAccountsApiDELETECarrierAccountsCarrierAccountIdRequest +*/ +func (a *CarrierAccountsApiService) DELETECarrierAccountsCarrierAccountId(ctx context.Context, carrierAccountId interface{}) CarrierAccountsApiDELETECarrierAccountsCarrierAccountIdRequest { + return CarrierAccountsApiDELETECarrierAccountsCarrierAccountIdRequest{ + ApiService: a, + ctx: ctx, + carrierAccountId: carrierAccountId, + } +} + +// Execute executes the request +func (a *CarrierAccountsApiService) DELETECarrierAccountsCarrierAccountIdExecute(r CarrierAccountsApiDELETECarrierAccountsCarrierAccountIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CarrierAccountsApiService.DELETECarrierAccountsCarrierAccountId") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/carrier_accounts/{carrierAccountId}" + localVarPath = strings.Replace(localVarPath, "{"+"carrierAccountId"+"}", url.PathEscape(parameterValueToString(r.carrierAccountId, "carrierAccountId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type CarrierAccountsApiGETCarrierAccountsRequest struct { ctx context.Context ApiService *CarrierAccountsApiService @@ -318,3 +410,229 @@ func (a *CarrierAccountsApiService) GETShipmentIdCarrierAccountsExecute(r Carrie return localVarHTTPResponse, nil } + +type CarrierAccountsApiPATCHCarrierAccountsCarrierAccountIdRequest struct { + ctx context.Context + ApiService *CarrierAccountsApiService + carrierAccountUpdate *CarrierAccountUpdate + carrierAccountId interface{} +} + +func (r CarrierAccountsApiPATCHCarrierAccountsCarrierAccountIdRequest) CarrierAccountUpdate(carrierAccountUpdate CarrierAccountUpdate) CarrierAccountsApiPATCHCarrierAccountsCarrierAccountIdRequest { + r.carrierAccountUpdate = &carrierAccountUpdate + return r +} + +func (r CarrierAccountsApiPATCHCarrierAccountsCarrierAccountIdRequest) Execute() (*PATCHCarrierAccountsCarrierAccountId200Response, *http.Response, error) { + return r.ApiService.PATCHCarrierAccountsCarrierAccountIdExecute(r) +} + +/* +PATCHCarrierAccountsCarrierAccountId Update a carrier account + +Update a carrier account + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param carrierAccountId The resource's id + @return CarrierAccountsApiPATCHCarrierAccountsCarrierAccountIdRequest +*/ +func (a *CarrierAccountsApiService) PATCHCarrierAccountsCarrierAccountId(ctx context.Context, carrierAccountId interface{}) CarrierAccountsApiPATCHCarrierAccountsCarrierAccountIdRequest { + return CarrierAccountsApiPATCHCarrierAccountsCarrierAccountIdRequest{ + ApiService: a, + ctx: ctx, + carrierAccountId: carrierAccountId, + } +} + +// Execute executes the request +// +// @return PATCHCarrierAccountsCarrierAccountId200Response +func (a *CarrierAccountsApiService) PATCHCarrierAccountsCarrierAccountIdExecute(r CarrierAccountsApiPATCHCarrierAccountsCarrierAccountIdRequest) (*PATCHCarrierAccountsCarrierAccountId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PATCHCarrierAccountsCarrierAccountId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CarrierAccountsApiService.PATCHCarrierAccountsCarrierAccountId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/carrier_accounts/{carrierAccountId}" + localVarPath = strings.Replace(localVarPath, "{"+"carrierAccountId"+"}", url.PathEscape(parameterValueToString(r.carrierAccountId, "carrierAccountId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.carrierAccountUpdate == nil { + return localVarReturnValue, nil, reportError("carrierAccountUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.carrierAccountUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type CarrierAccountsApiPOSTCarrierAccountsRequest struct { + ctx context.Context + ApiService *CarrierAccountsApiService + carrierAccountCreate *CarrierAccountCreate +} + +func (r CarrierAccountsApiPOSTCarrierAccountsRequest) CarrierAccountCreate(carrierAccountCreate CarrierAccountCreate) CarrierAccountsApiPOSTCarrierAccountsRequest { + r.carrierAccountCreate = &carrierAccountCreate + return r +} + +func (r CarrierAccountsApiPOSTCarrierAccountsRequest) Execute() (*POSTCarrierAccounts201Response, *http.Response, error) { + return r.ApiService.POSTCarrierAccountsExecute(r) +} + +/* +POSTCarrierAccounts Create a carrier account + +Create a carrier account + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return CarrierAccountsApiPOSTCarrierAccountsRequest +*/ +func (a *CarrierAccountsApiService) POSTCarrierAccounts(ctx context.Context) CarrierAccountsApiPOSTCarrierAccountsRequest { + return CarrierAccountsApiPOSTCarrierAccountsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return POSTCarrierAccounts201Response +func (a *CarrierAccountsApiService) POSTCarrierAccountsExecute(r CarrierAccountsApiPOSTCarrierAccountsRequest) (*POSTCarrierAccounts201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *POSTCarrierAccounts201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CarrierAccountsApiService.POSTCarrierAccounts") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/carrier_accounts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.carrierAccountCreate == nil { + return localVarReturnValue, nil, reportError("carrierAccountCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.carrierAccountCreate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api/api_checkout_com_gateways.go b/api/api_checkout_com_gateways.go index 9365fc86..da83d977 100644 --- a/api/api_checkout_com_gateways.go +++ b/api/api_checkout_com_gateways.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_checkout_com_payments.go b/api/api_checkout_com_payments.go index 0132fe56..7878544a 100644 --- a/api/api_checkout_com_payments.go +++ b/api/api_checkout_com_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_cleanups.go b/api/api_cleanups.go index 7dcc37c5..76d5c49d 100644 --- a/api/api_cleanups.go +++ b/api/api_cleanups.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -319,6 +319,121 @@ func (a *CleanupsApiService) GETCleanupsCleanupIdExecute(r CleanupsApiGETCleanup return localVarReturnValue, localVarHTTPResponse, nil } +type CleanupsApiPATCHCleanupsCleanupIdRequest struct { + ctx context.Context + ApiService *CleanupsApiService + cleanupUpdate *CleanupUpdate + cleanupId interface{} +} + +func (r CleanupsApiPATCHCleanupsCleanupIdRequest) CleanupUpdate(cleanupUpdate CleanupUpdate) CleanupsApiPATCHCleanupsCleanupIdRequest { + r.cleanupUpdate = &cleanupUpdate + return r +} + +func (r CleanupsApiPATCHCleanupsCleanupIdRequest) Execute() (*PATCHCleanupsCleanupId200Response, *http.Response, error) { + return r.ApiService.PATCHCleanupsCleanupIdExecute(r) +} + +/* +PATCHCleanupsCleanupId Update a cleanup + +Update a cleanup + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param cleanupId The resource's id + @return CleanupsApiPATCHCleanupsCleanupIdRequest +*/ +func (a *CleanupsApiService) PATCHCleanupsCleanupId(ctx context.Context, cleanupId interface{}) CleanupsApiPATCHCleanupsCleanupIdRequest { + return CleanupsApiPATCHCleanupsCleanupIdRequest{ + ApiService: a, + ctx: ctx, + cleanupId: cleanupId, + } +} + +// Execute executes the request +// +// @return PATCHCleanupsCleanupId200Response +func (a *CleanupsApiService) PATCHCleanupsCleanupIdExecute(r CleanupsApiPATCHCleanupsCleanupIdRequest) (*PATCHCleanupsCleanupId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PATCHCleanupsCleanupId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CleanupsApiService.PATCHCleanupsCleanupId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/cleanups/{cleanupId}" + localVarPath = strings.Replace(localVarPath, "{"+"cleanupId"+"}", url.PathEscape(parameterValueToString(r.cleanupId, "cleanupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.cleanupUpdate == nil { + return localVarReturnValue, nil, reportError("cleanupUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.cleanupUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type CleanupsApiPOSTCleanupsRequest struct { ctx context.Context ApiService *CleanupsApiService diff --git a/api/api_coupon_codes_promotion_rules.go b/api/api_coupon_codes_promotion_rules.go index eb768d43..8c995461 100644 --- a/api/api_coupon_codes_promotion_rules.go +++ b/api/api_coupon_codes_promotion_rules.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -115,6 +115,98 @@ func (a *CouponCodesPromotionRulesApiService) DELETECouponCodesPromotionRulesCou return localVarHTTPResponse, nil } +type CouponCodesPromotionRulesApiGETBuyXPayYPromotionIdCouponCodesPromotionRuleRequest struct { + ctx context.Context + ApiService *CouponCodesPromotionRulesApiService + buyXPayYPromotionId interface{} +} + +func (r CouponCodesPromotionRulesApiGETBuyXPayYPromotionIdCouponCodesPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdCouponCodesPromotionRuleExecute(r) +} + +/* +GETBuyXPayYPromotionIdCouponCodesPromotionRule Retrieve the coupon codes promotion rule associated to the buy x pay y promotion + +Retrieve the coupon codes promotion rule associated to the buy x pay y promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param buyXPayYPromotionId The resource's id + @return CouponCodesPromotionRulesApiGETBuyXPayYPromotionIdCouponCodesPromotionRuleRequest +*/ +func (a *CouponCodesPromotionRulesApiService) GETBuyXPayYPromotionIdCouponCodesPromotionRule(ctx context.Context, buyXPayYPromotionId interface{}) CouponCodesPromotionRulesApiGETBuyXPayYPromotionIdCouponCodesPromotionRuleRequest { + return CouponCodesPromotionRulesApiGETBuyXPayYPromotionIdCouponCodesPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, + } +} + +// Execute executes the request +func (a *CouponCodesPromotionRulesApiService) GETBuyXPayYPromotionIdCouponCodesPromotionRuleExecute(r CouponCodesPromotionRulesApiGETBuyXPayYPromotionIdCouponCodesPromotionRuleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CouponCodesPromotionRulesApiService.GETBuyXPayYPromotionIdCouponCodesPromotionRule") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/coupon_codes_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type CouponCodesPromotionRulesApiGETCouponCodesPromotionRulesRequest struct { ctx context.Context ApiService *CouponCodesPromotionRulesApiService @@ -687,6 +779,98 @@ func (a *CouponCodesPromotionRulesApiService) GETFixedPricePromotionIdCouponCode return localVarHTTPResponse, nil } +type CouponCodesPromotionRulesApiGETFlexPromotionIdCouponCodesPromotionRuleRequest struct { + ctx context.Context + ApiService *CouponCodesPromotionRulesApiService + flexPromotionId interface{} +} + +func (r CouponCodesPromotionRulesApiGETFlexPromotionIdCouponCodesPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFlexPromotionIdCouponCodesPromotionRuleExecute(r) +} + +/* +GETFlexPromotionIdCouponCodesPromotionRule Retrieve the coupon codes promotion rule associated to the flex promotion + +Retrieve the coupon codes promotion rule associated to the flex promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param flexPromotionId The resource's id + @return CouponCodesPromotionRulesApiGETFlexPromotionIdCouponCodesPromotionRuleRequest +*/ +func (a *CouponCodesPromotionRulesApiService) GETFlexPromotionIdCouponCodesPromotionRule(ctx context.Context, flexPromotionId interface{}) CouponCodesPromotionRulesApiGETFlexPromotionIdCouponCodesPromotionRuleRequest { + return CouponCodesPromotionRulesApiGETFlexPromotionIdCouponCodesPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + flexPromotionId: flexPromotionId, + } +} + +// Execute executes the request +func (a *CouponCodesPromotionRulesApiService) GETFlexPromotionIdCouponCodesPromotionRuleExecute(r CouponCodesPromotionRulesApiGETFlexPromotionIdCouponCodesPromotionRuleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CouponCodesPromotionRulesApiService.GETFlexPromotionIdCouponCodesPromotionRule") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/flex_promotions/{flexPromotionId}/coupon_codes_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"flexPromotionId"+"}", url.PathEscape(parameterValueToString(r.flexPromotionId, "flexPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type CouponCodesPromotionRulesApiGETFreeGiftPromotionIdCouponCodesPromotionRuleRequest struct { ctx context.Context ApiService *CouponCodesPromotionRulesApiService diff --git a/api/api_coupon_recipients.go b/api/api_coupon_recipients.go index 4b691b30..800f175f 100644 --- a/api/api_coupon_recipients.go +++ b/api/api_coupon_recipients.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -115,6 +115,98 @@ func (a *CouponRecipientsApiService) DELETECouponRecipientsCouponRecipientIdExec return localVarHTTPResponse, nil } +type CouponRecipientsApiGETCouponIdCouponRecipientRequest struct { + ctx context.Context + ApiService *CouponRecipientsApiService + couponId interface{} +} + +func (r CouponRecipientsApiGETCouponIdCouponRecipientRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCouponIdCouponRecipientExecute(r) +} + +/* +GETCouponIdCouponRecipient Retrieve the coupon recipient associated to the coupon + +Retrieve the coupon recipient associated to the coupon + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param couponId The resource's id + @return CouponRecipientsApiGETCouponIdCouponRecipientRequest +*/ +func (a *CouponRecipientsApiService) GETCouponIdCouponRecipient(ctx context.Context, couponId interface{}) CouponRecipientsApiGETCouponIdCouponRecipientRequest { + return CouponRecipientsApiGETCouponIdCouponRecipientRequest{ + ApiService: a, + ctx: ctx, + couponId: couponId, + } +} + +// Execute executes the request +func (a *CouponRecipientsApiService) GETCouponIdCouponRecipientExecute(r CouponRecipientsApiGETCouponIdCouponRecipientRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CouponRecipientsApiService.GETCouponIdCouponRecipient") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/coupons/{couponId}/coupon_recipient" + localVarPath = strings.Replace(localVarPath, "{"+"couponId"+"}", url.PathEscape(parameterValueToString(r.couponId, "couponId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type CouponRecipientsApiGETCouponRecipientsRequest struct { ctx context.Context ApiService *CouponRecipientsApiService diff --git a/api/api_coupons.go b/api/api_coupons.go index 0786705a..c4b3ced8 100644 --- a/api/api_coupons.go +++ b/api/api_coupons.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -115,6 +115,98 @@ func (a *CouponsApiService) DELETECouponsCouponIdExecute(r CouponsApiDELETECoupo return localVarHTTPResponse, nil } +type CouponsApiGETBuyXPayYPromotionIdCouponsRequest struct { + ctx context.Context + ApiService *CouponsApiService + buyXPayYPromotionId interface{} +} + +func (r CouponsApiGETBuyXPayYPromotionIdCouponsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdCouponsExecute(r) +} + +/* +GETBuyXPayYPromotionIdCoupons Retrieve the coupons associated to the buy x pay y promotion + +Retrieve the coupons associated to the buy x pay y promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param buyXPayYPromotionId The resource's id + @return CouponsApiGETBuyXPayYPromotionIdCouponsRequest +*/ +func (a *CouponsApiService) GETBuyXPayYPromotionIdCoupons(ctx context.Context, buyXPayYPromotionId interface{}) CouponsApiGETBuyXPayYPromotionIdCouponsRequest { + return CouponsApiGETBuyXPayYPromotionIdCouponsRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, + } +} + +// Execute executes the request +func (a *CouponsApiService) GETBuyXPayYPromotionIdCouponsExecute(r CouponsApiGETBuyXPayYPromotionIdCouponsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CouponsApiService.GETBuyXPayYPromotionIdCoupons") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/coupons" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type CouponsApiGETCouponCodesPromotionRuleIdCouponsRequest struct { ctx context.Context ApiService *CouponsApiService @@ -411,6 +503,742 @@ func (a *CouponsApiService) GETCouponsCouponIdExecute(r CouponsApiGETCouponsCoup return localVarReturnValue, localVarHTTPResponse, nil } +type CouponsApiGETExternalPromotionIdCouponsRequest struct { + ctx context.Context + ApiService *CouponsApiService + externalPromotionId interface{} +} + +func (r CouponsApiGETExternalPromotionIdCouponsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPromotionIdCouponsExecute(r) +} + +/* +GETExternalPromotionIdCoupons Retrieve the coupons associated to the external promotion + +Retrieve the coupons associated to the external promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalPromotionId The resource's id + @return CouponsApiGETExternalPromotionIdCouponsRequest +*/ +func (a *CouponsApiService) GETExternalPromotionIdCoupons(ctx context.Context, externalPromotionId interface{}) CouponsApiGETExternalPromotionIdCouponsRequest { + return CouponsApiGETExternalPromotionIdCouponsRequest{ + ApiService: a, + ctx: ctx, + externalPromotionId: externalPromotionId, + } +} + +// Execute executes the request +func (a *CouponsApiService) GETExternalPromotionIdCouponsExecute(r CouponsApiGETExternalPromotionIdCouponsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CouponsApiService.GETExternalPromotionIdCoupons") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/coupons" + localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type CouponsApiGETFixedAmountPromotionIdCouponsRequest struct { + ctx context.Context + ApiService *CouponsApiService + fixedAmountPromotionId interface{} +} + +func (r CouponsApiGETFixedAmountPromotionIdCouponsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedAmountPromotionIdCouponsExecute(r) +} + +/* +GETFixedAmountPromotionIdCoupons Retrieve the coupons associated to the fixed amount promotion + +Retrieve the coupons associated to the fixed amount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedAmountPromotionId The resource's id + @return CouponsApiGETFixedAmountPromotionIdCouponsRequest +*/ +func (a *CouponsApiService) GETFixedAmountPromotionIdCoupons(ctx context.Context, fixedAmountPromotionId interface{}) CouponsApiGETFixedAmountPromotionIdCouponsRequest { + return CouponsApiGETFixedAmountPromotionIdCouponsRequest{ + ApiService: a, + ctx: ctx, + fixedAmountPromotionId: fixedAmountPromotionId, + } +} + +// Execute executes the request +func (a *CouponsApiService) GETFixedAmountPromotionIdCouponsExecute(r CouponsApiGETFixedAmountPromotionIdCouponsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CouponsApiService.GETFixedAmountPromotionIdCoupons") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/coupons" + localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type CouponsApiGETFixedPricePromotionIdCouponsRequest struct { + ctx context.Context + ApiService *CouponsApiService + fixedPricePromotionId interface{} +} + +func (r CouponsApiGETFixedPricePromotionIdCouponsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedPricePromotionIdCouponsExecute(r) +} + +/* +GETFixedPricePromotionIdCoupons Retrieve the coupons associated to the fixed price promotion + +Retrieve the coupons associated to the fixed price promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedPricePromotionId The resource's id + @return CouponsApiGETFixedPricePromotionIdCouponsRequest +*/ +func (a *CouponsApiService) GETFixedPricePromotionIdCoupons(ctx context.Context, fixedPricePromotionId interface{}) CouponsApiGETFixedPricePromotionIdCouponsRequest { + return CouponsApiGETFixedPricePromotionIdCouponsRequest{ + ApiService: a, + ctx: ctx, + fixedPricePromotionId: fixedPricePromotionId, + } +} + +// Execute executes the request +func (a *CouponsApiService) GETFixedPricePromotionIdCouponsExecute(r CouponsApiGETFixedPricePromotionIdCouponsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CouponsApiService.GETFixedPricePromotionIdCoupons") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/coupons" + localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type CouponsApiGETFlexPromotionIdCouponsRequest struct { + ctx context.Context + ApiService *CouponsApiService + flexPromotionId interface{} +} + +func (r CouponsApiGETFlexPromotionIdCouponsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFlexPromotionIdCouponsExecute(r) +} + +/* +GETFlexPromotionIdCoupons Retrieve the coupons associated to the flex promotion + +Retrieve the coupons associated to the flex promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param flexPromotionId The resource's id + @return CouponsApiGETFlexPromotionIdCouponsRequest +*/ +func (a *CouponsApiService) GETFlexPromotionIdCoupons(ctx context.Context, flexPromotionId interface{}) CouponsApiGETFlexPromotionIdCouponsRequest { + return CouponsApiGETFlexPromotionIdCouponsRequest{ + ApiService: a, + ctx: ctx, + flexPromotionId: flexPromotionId, + } +} + +// Execute executes the request +func (a *CouponsApiService) GETFlexPromotionIdCouponsExecute(r CouponsApiGETFlexPromotionIdCouponsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CouponsApiService.GETFlexPromotionIdCoupons") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/flex_promotions/{flexPromotionId}/coupons" + localVarPath = strings.Replace(localVarPath, "{"+"flexPromotionId"+"}", url.PathEscape(parameterValueToString(r.flexPromotionId, "flexPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type CouponsApiGETFreeGiftPromotionIdCouponsRequest struct { + ctx context.Context + ApiService *CouponsApiService + freeGiftPromotionId interface{} +} + +func (r CouponsApiGETFreeGiftPromotionIdCouponsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeGiftPromotionIdCouponsExecute(r) +} + +/* +GETFreeGiftPromotionIdCoupons Retrieve the coupons associated to the free gift promotion + +Retrieve the coupons associated to the free gift promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeGiftPromotionId The resource's id + @return CouponsApiGETFreeGiftPromotionIdCouponsRequest +*/ +func (a *CouponsApiService) GETFreeGiftPromotionIdCoupons(ctx context.Context, freeGiftPromotionId interface{}) CouponsApiGETFreeGiftPromotionIdCouponsRequest { + return CouponsApiGETFreeGiftPromotionIdCouponsRequest{ + ApiService: a, + ctx: ctx, + freeGiftPromotionId: freeGiftPromotionId, + } +} + +// Execute executes the request +func (a *CouponsApiService) GETFreeGiftPromotionIdCouponsExecute(r CouponsApiGETFreeGiftPromotionIdCouponsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CouponsApiService.GETFreeGiftPromotionIdCoupons") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/coupons" + localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type CouponsApiGETFreeShippingPromotionIdCouponsRequest struct { + ctx context.Context + ApiService *CouponsApiService + freeShippingPromotionId interface{} +} + +func (r CouponsApiGETFreeShippingPromotionIdCouponsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeShippingPromotionIdCouponsExecute(r) +} + +/* +GETFreeShippingPromotionIdCoupons Retrieve the coupons associated to the free shipping promotion + +Retrieve the coupons associated to the free shipping promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeShippingPromotionId The resource's id + @return CouponsApiGETFreeShippingPromotionIdCouponsRequest +*/ +func (a *CouponsApiService) GETFreeShippingPromotionIdCoupons(ctx context.Context, freeShippingPromotionId interface{}) CouponsApiGETFreeShippingPromotionIdCouponsRequest { + return CouponsApiGETFreeShippingPromotionIdCouponsRequest{ + ApiService: a, + ctx: ctx, + freeShippingPromotionId: freeShippingPromotionId, + } +} + +// Execute executes the request +func (a *CouponsApiService) GETFreeShippingPromotionIdCouponsExecute(r CouponsApiGETFreeShippingPromotionIdCouponsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CouponsApiService.GETFreeShippingPromotionIdCoupons") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/coupons" + localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type CouponsApiGETPercentageDiscountPromotionIdCouponsRequest struct { + ctx context.Context + ApiService *CouponsApiService + percentageDiscountPromotionId interface{} +} + +func (r CouponsApiGETPercentageDiscountPromotionIdCouponsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPercentageDiscountPromotionIdCouponsExecute(r) +} + +/* +GETPercentageDiscountPromotionIdCoupons Retrieve the coupons associated to the percentage discount promotion + +Retrieve the coupons associated to the percentage discount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param percentageDiscountPromotionId The resource's id + @return CouponsApiGETPercentageDiscountPromotionIdCouponsRequest +*/ +func (a *CouponsApiService) GETPercentageDiscountPromotionIdCoupons(ctx context.Context, percentageDiscountPromotionId interface{}) CouponsApiGETPercentageDiscountPromotionIdCouponsRequest { + return CouponsApiGETPercentageDiscountPromotionIdCouponsRequest{ + ApiService: a, + ctx: ctx, + percentageDiscountPromotionId: percentageDiscountPromotionId, + } +} + +// Execute executes the request +func (a *CouponsApiService) GETPercentageDiscountPromotionIdCouponsExecute(r CouponsApiGETPercentageDiscountPromotionIdCouponsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CouponsApiService.GETPercentageDiscountPromotionIdCoupons") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/coupons" + localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type CouponsApiGETPromotionIdCouponsRequest struct { + ctx context.Context + ApiService *CouponsApiService + promotionId interface{} +} + +func (r CouponsApiGETPromotionIdCouponsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionIdCouponsExecute(r) +} + +/* +GETPromotionIdCoupons Retrieve the coupons associated to the promotion + +Retrieve the coupons associated to the promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param promotionId The resource's id + @return CouponsApiGETPromotionIdCouponsRequest +*/ +func (a *CouponsApiService) GETPromotionIdCoupons(ctx context.Context, promotionId interface{}) CouponsApiGETPromotionIdCouponsRequest { + return CouponsApiGETPromotionIdCouponsRequest{ + ApiService: a, + ctx: ctx, + promotionId: promotionId, + } +} + +// Execute executes the request +func (a *CouponsApiService) GETPromotionIdCouponsExecute(r CouponsApiGETPromotionIdCouponsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CouponsApiService.GETPromotionIdCoupons") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/promotions/{promotionId}/coupons" + localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type CouponsApiPATCHCouponsCouponIdRequest struct { ctx context.Context ApiService *CouponsApiService diff --git a/api/api_custom_promotion_rules.go b/api/api_custom_promotion_rules.go new file mode 100644 index 00000000..cff79442 --- /dev/null +++ b/api/api_custom_promotion_rules.go @@ -0,0 +1,1282 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// CustomPromotionRulesApiService CustomPromotionRulesApi service +type CustomPromotionRulesApiService service + +type CustomPromotionRulesApiDELETECustomPromotionRulesCustomPromotionRuleIdRequest struct { + ctx context.Context + ApiService *CustomPromotionRulesApiService + customPromotionRuleId interface{} +} + +func (r CustomPromotionRulesApiDELETECustomPromotionRulesCustomPromotionRuleIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DELETECustomPromotionRulesCustomPromotionRuleIdExecute(r) +} + +/* +DELETECustomPromotionRulesCustomPromotionRuleId Delete a custom promotion rule + +Delete a custom promotion rule + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customPromotionRuleId The resource's id + @return CustomPromotionRulesApiDELETECustomPromotionRulesCustomPromotionRuleIdRequest +*/ +func (a *CustomPromotionRulesApiService) DELETECustomPromotionRulesCustomPromotionRuleId(ctx context.Context, customPromotionRuleId interface{}) CustomPromotionRulesApiDELETECustomPromotionRulesCustomPromotionRuleIdRequest { + return CustomPromotionRulesApiDELETECustomPromotionRulesCustomPromotionRuleIdRequest{ + ApiService: a, + ctx: ctx, + customPromotionRuleId: customPromotionRuleId, + } +} + +// Execute executes the request +func (a *CustomPromotionRulesApiService) DELETECustomPromotionRulesCustomPromotionRuleIdExecute(r CustomPromotionRulesApiDELETECustomPromotionRulesCustomPromotionRuleIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomPromotionRulesApiService.DELETECustomPromotionRulesCustomPromotionRuleId") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/custom_promotion_rules/{customPromotionRuleId}" + localVarPath = strings.Replace(localVarPath, "{"+"customPromotionRuleId"+"}", url.PathEscape(parameterValueToString(r.customPromotionRuleId, "customPromotionRuleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type CustomPromotionRulesApiGETBuyXPayYPromotionIdCustomPromotionRuleRequest struct { + ctx context.Context + ApiService *CustomPromotionRulesApiService + buyXPayYPromotionId interface{} +} + +func (r CustomPromotionRulesApiGETBuyXPayYPromotionIdCustomPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdCustomPromotionRuleExecute(r) +} + +/* +GETBuyXPayYPromotionIdCustomPromotionRule Retrieve the custom promotion rule associated to the buy x pay y promotion + +Retrieve the custom promotion rule associated to the buy x pay y promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param buyXPayYPromotionId The resource's id + @return CustomPromotionRulesApiGETBuyXPayYPromotionIdCustomPromotionRuleRequest +*/ +func (a *CustomPromotionRulesApiService) GETBuyXPayYPromotionIdCustomPromotionRule(ctx context.Context, buyXPayYPromotionId interface{}) CustomPromotionRulesApiGETBuyXPayYPromotionIdCustomPromotionRuleRequest { + return CustomPromotionRulesApiGETBuyXPayYPromotionIdCustomPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, + } +} + +// Execute executes the request +func (a *CustomPromotionRulesApiService) GETBuyXPayYPromotionIdCustomPromotionRuleExecute(r CustomPromotionRulesApiGETBuyXPayYPromotionIdCustomPromotionRuleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomPromotionRulesApiService.GETBuyXPayYPromotionIdCustomPromotionRule") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/custom_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type CustomPromotionRulesApiGETCustomPromotionRulesRequest struct { + ctx context.Context + ApiService *CustomPromotionRulesApiService +} + +func (r CustomPromotionRulesApiGETCustomPromotionRulesRequest) Execute() (*GETCustomPromotionRules200Response, *http.Response, error) { + return r.ApiService.GETCustomPromotionRulesExecute(r) +} + +/* +GETCustomPromotionRules List all custom promotion rules + +List all custom promotion rules + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return CustomPromotionRulesApiGETCustomPromotionRulesRequest +*/ +func (a *CustomPromotionRulesApiService) GETCustomPromotionRules(ctx context.Context) CustomPromotionRulesApiGETCustomPromotionRulesRequest { + return CustomPromotionRulesApiGETCustomPromotionRulesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GETCustomPromotionRules200Response +func (a *CustomPromotionRulesApiService) GETCustomPromotionRulesExecute(r CustomPromotionRulesApiGETCustomPromotionRulesRequest) (*GETCustomPromotionRules200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETCustomPromotionRules200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomPromotionRulesApiService.GETCustomPromotionRules") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/custom_promotion_rules" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type CustomPromotionRulesApiGETCustomPromotionRulesCustomPromotionRuleIdRequest struct { + ctx context.Context + ApiService *CustomPromotionRulesApiService + customPromotionRuleId interface{} +} + +func (r CustomPromotionRulesApiGETCustomPromotionRulesCustomPromotionRuleIdRequest) Execute() (*GETCustomPromotionRulesCustomPromotionRuleId200Response, *http.Response, error) { + return r.ApiService.GETCustomPromotionRulesCustomPromotionRuleIdExecute(r) +} + +/* +GETCustomPromotionRulesCustomPromotionRuleId Retrieve a custom promotion rule + +Retrieve a custom promotion rule + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customPromotionRuleId The resource's id + @return CustomPromotionRulesApiGETCustomPromotionRulesCustomPromotionRuleIdRequest +*/ +func (a *CustomPromotionRulesApiService) GETCustomPromotionRulesCustomPromotionRuleId(ctx context.Context, customPromotionRuleId interface{}) CustomPromotionRulesApiGETCustomPromotionRulesCustomPromotionRuleIdRequest { + return CustomPromotionRulesApiGETCustomPromotionRulesCustomPromotionRuleIdRequest{ + ApiService: a, + ctx: ctx, + customPromotionRuleId: customPromotionRuleId, + } +} + +// Execute executes the request +// +// @return GETCustomPromotionRulesCustomPromotionRuleId200Response +func (a *CustomPromotionRulesApiService) GETCustomPromotionRulesCustomPromotionRuleIdExecute(r CustomPromotionRulesApiGETCustomPromotionRulesCustomPromotionRuleIdRequest) (*GETCustomPromotionRulesCustomPromotionRuleId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETCustomPromotionRulesCustomPromotionRuleId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomPromotionRulesApiService.GETCustomPromotionRulesCustomPromotionRuleId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/custom_promotion_rules/{customPromotionRuleId}" + localVarPath = strings.Replace(localVarPath, "{"+"customPromotionRuleId"+"}", url.PathEscape(parameterValueToString(r.customPromotionRuleId, "customPromotionRuleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type CustomPromotionRulesApiGETExternalPromotionIdCustomPromotionRuleRequest struct { + ctx context.Context + ApiService *CustomPromotionRulesApiService + externalPromotionId interface{} +} + +func (r CustomPromotionRulesApiGETExternalPromotionIdCustomPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPromotionIdCustomPromotionRuleExecute(r) +} + +/* +GETExternalPromotionIdCustomPromotionRule Retrieve the custom promotion rule associated to the external promotion + +Retrieve the custom promotion rule associated to the external promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalPromotionId The resource's id + @return CustomPromotionRulesApiGETExternalPromotionIdCustomPromotionRuleRequest +*/ +func (a *CustomPromotionRulesApiService) GETExternalPromotionIdCustomPromotionRule(ctx context.Context, externalPromotionId interface{}) CustomPromotionRulesApiGETExternalPromotionIdCustomPromotionRuleRequest { + return CustomPromotionRulesApiGETExternalPromotionIdCustomPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + externalPromotionId: externalPromotionId, + } +} + +// Execute executes the request +func (a *CustomPromotionRulesApiService) GETExternalPromotionIdCustomPromotionRuleExecute(r CustomPromotionRulesApiGETExternalPromotionIdCustomPromotionRuleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomPromotionRulesApiService.GETExternalPromotionIdCustomPromotionRule") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/custom_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type CustomPromotionRulesApiGETFixedAmountPromotionIdCustomPromotionRuleRequest struct { + ctx context.Context + ApiService *CustomPromotionRulesApiService + fixedAmountPromotionId interface{} +} + +func (r CustomPromotionRulesApiGETFixedAmountPromotionIdCustomPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedAmountPromotionIdCustomPromotionRuleExecute(r) +} + +/* +GETFixedAmountPromotionIdCustomPromotionRule Retrieve the custom promotion rule associated to the fixed amount promotion + +Retrieve the custom promotion rule associated to the fixed amount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedAmountPromotionId The resource's id + @return CustomPromotionRulesApiGETFixedAmountPromotionIdCustomPromotionRuleRequest +*/ +func (a *CustomPromotionRulesApiService) GETFixedAmountPromotionIdCustomPromotionRule(ctx context.Context, fixedAmountPromotionId interface{}) CustomPromotionRulesApiGETFixedAmountPromotionIdCustomPromotionRuleRequest { + return CustomPromotionRulesApiGETFixedAmountPromotionIdCustomPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + fixedAmountPromotionId: fixedAmountPromotionId, + } +} + +// Execute executes the request +func (a *CustomPromotionRulesApiService) GETFixedAmountPromotionIdCustomPromotionRuleExecute(r CustomPromotionRulesApiGETFixedAmountPromotionIdCustomPromotionRuleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomPromotionRulesApiService.GETFixedAmountPromotionIdCustomPromotionRule") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/custom_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type CustomPromotionRulesApiGETFixedPricePromotionIdCustomPromotionRuleRequest struct { + ctx context.Context + ApiService *CustomPromotionRulesApiService + fixedPricePromotionId interface{} +} + +func (r CustomPromotionRulesApiGETFixedPricePromotionIdCustomPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedPricePromotionIdCustomPromotionRuleExecute(r) +} + +/* +GETFixedPricePromotionIdCustomPromotionRule Retrieve the custom promotion rule associated to the fixed price promotion + +Retrieve the custom promotion rule associated to the fixed price promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedPricePromotionId The resource's id + @return CustomPromotionRulesApiGETFixedPricePromotionIdCustomPromotionRuleRequest +*/ +func (a *CustomPromotionRulesApiService) GETFixedPricePromotionIdCustomPromotionRule(ctx context.Context, fixedPricePromotionId interface{}) CustomPromotionRulesApiGETFixedPricePromotionIdCustomPromotionRuleRequest { + return CustomPromotionRulesApiGETFixedPricePromotionIdCustomPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + fixedPricePromotionId: fixedPricePromotionId, + } +} + +// Execute executes the request +func (a *CustomPromotionRulesApiService) GETFixedPricePromotionIdCustomPromotionRuleExecute(r CustomPromotionRulesApiGETFixedPricePromotionIdCustomPromotionRuleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomPromotionRulesApiService.GETFixedPricePromotionIdCustomPromotionRule") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/custom_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type CustomPromotionRulesApiGETFreeGiftPromotionIdCustomPromotionRuleRequest struct { + ctx context.Context + ApiService *CustomPromotionRulesApiService + freeGiftPromotionId interface{} +} + +func (r CustomPromotionRulesApiGETFreeGiftPromotionIdCustomPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeGiftPromotionIdCustomPromotionRuleExecute(r) +} + +/* +GETFreeGiftPromotionIdCustomPromotionRule Retrieve the custom promotion rule associated to the free gift promotion + +Retrieve the custom promotion rule associated to the free gift promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeGiftPromotionId The resource's id + @return CustomPromotionRulesApiGETFreeGiftPromotionIdCustomPromotionRuleRequest +*/ +func (a *CustomPromotionRulesApiService) GETFreeGiftPromotionIdCustomPromotionRule(ctx context.Context, freeGiftPromotionId interface{}) CustomPromotionRulesApiGETFreeGiftPromotionIdCustomPromotionRuleRequest { + return CustomPromotionRulesApiGETFreeGiftPromotionIdCustomPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + freeGiftPromotionId: freeGiftPromotionId, + } +} + +// Execute executes the request +func (a *CustomPromotionRulesApiService) GETFreeGiftPromotionIdCustomPromotionRuleExecute(r CustomPromotionRulesApiGETFreeGiftPromotionIdCustomPromotionRuleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomPromotionRulesApiService.GETFreeGiftPromotionIdCustomPromotionRule") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/custom_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type CustomPromotionRulesApiGETFreeShippingPromotionIdCustomPromotionRuleRequest struct { + ctx context.Context + ApiService *CustomPromotionRulesApiService + freeShippingPromotionId interface{} +} + +func (r CustomPromotionRulesApiGETFreeShippingPromotionIdCustomPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeShippingPromotionIdCustomPromotionRuleExecute(r) +} + +/* +GETFreeShippingPromotionIdCustomPromotionRule Retrieve the custom promotion rule associated to the free shipping promotion + +Retrieve the custom promotion rule associated to the free shipping promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeShippingPromotionId The resource's id + @return CustomPromotionRulesApiGETFreeShippingPromotionIdCustomPromotionRuleRequest +*/ +func (a *CustomPromotionRulesApiService) GETFreeShippingPromotionIdCustomPromotionRule(ctx context.Context, freeShippingPromotionId interface{}) CustomPromotionRulesApiGETFreeShippingPromotionIdCustomPromotionRuleRequest { + return CustomPromotionRulesApiGETFreeShippingPromotionIdCustomPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + freeShippingPromotionId: freeShippingPromotionId, + } +} + +// Execute executes the request +func (a *CustomPromotionRulesApiService) GETFreeShippingPromotionIdCustomPromotionRuleExecute(r CustomPromotionRulesApiGETFreeShippingPromotionIdCustomPromotionRuleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomPromotionRulesApiService.GETFreeShippingPromotionIdCustomPromotionRule") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/custom_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type CustomPromotionRulesApiGETPercentageDiscountPromotionIdCustomPromotionRuleRequest struct { + ctx context.Context + ApiService *CustomPromotionRulesApiService + percentageDiscountPromotionId interface{} +} + +func (r CustomPromotionRulesApiGETPercentageDiscountPromotionIdCustomPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPercentageDiscountPromotionIdCustomPromotionRuleExecute(r) +} + +/* +GETPercentageDiscountPromotionIdCustomPromotionRule Retrieve the custom promotion rule associated to the percentage discount promotion + +Retrieve the custom promotion rule associated to the percentage discount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param percentageDiscountPromotionId The resource's id + @return CustomPromotionRulesApiGETPercentageDiscountPromotionIdCustomPromotionRuleRequest +*/ +func (a *CustomPromotionRulesApiService) GETPercentageDiscountPromotionIdCustomPromotionRule(ctx context.Context, percentageDiscountPromotionId interface{}) CustomPromotionRulesApiGETPercentageDiscountPromotionIdCustomPromotionRuleRequest { + return CustomPromotionRulesApiGETPercentageDiscountPromotionIdCustomPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + percentageDiscountPromotionId: percentageDiscountPromotionId, + } +} + +// Execute executes the request +func (a *CustomPromotionRulesApiService) GETPercentageDiscountPromotionIdCustomPromotionRuleExecute(r CustomPromotionRulesApiGETPercentageDiscountPromotionIdCustomPromotionRuleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomPromotionRulesApiService.GETPercentageDiscountPromotionIdCustomPromotionRule") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/custom_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type CustomPromotionRulesApiGETPromotionIdCustomPromotionRuleRequest struct { + ctx context.Context + ApiService *CustomPromotionRulesApiService + promotionId interface{} +} + +func (r CustomPromotionRulesApiGETPromotionIdCustomPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionIdCustomPromotionRuleExecute(r) +} + +/* +GETPromotionIdCustomPromotionRule Retrieve the custom promotion rule associated to the promotion + +Retrieve the custom promotion rule associated to the promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param promotionId The resource's id + @return CustomPromotionRulesApiGETPromotionIdCustomPromotionRuleRequest +*/ +func (a *CustomPromotionRulesApiService) GETPromotionIdCustomPromotionRule(ctx context.Context, promotionId interface{}) CustomPromotionRulesApiGETPromotionIdCustomPromotionRuleRequest { + return CustomPromotionRulesApiGETPromotionIdCustomPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + promotionId: promotionId, + } +} + +// Execute executes the request +func (a *CustomPromotionRulesApiService) GETPromotionIdCustomPromotionRuleExecute(r CustomPromotionRulesApiGETPromotionIdCustomPromotionRuleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomPromotionRulesApiService.GETPromotionIdCustomPromotionRule") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/promotions/{promotionId}/custom_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type CustomPromotionRulesApiPATCHCustomPromotionRulesCustomPromotionRuleIdRequest struct { + ctx context.Context + ApiService *CustomPromotionRulesApiService + customPromotionRuleUpdate *CustomPromotionRuleUpdate + customPromotionRuleId interface{} +} + +func (r CustomPromotionRulesApiPATCHCustomPromotionRulesCustomPromotionRuleIdRequest) CustomPromotionRuleUpdate(customPromotionRuleUpdate CustomPromotionRuleUpdate) CustomPromotionRulesApiPATCHCustomPromotionRulesCustomPromotionRuleIdRequest { + r.customPromotionRuleUpdate = &customPromotionRuleUpdate + return r +} + +func (r CustomPromotionRulesApiPATCHCustomPromotionRulesCustomPromotionRuleIdRequest) Execute() (*PATCHCustomPromotionRulesCustomPromotionRuleId200Response, *http.Response, error) { + return r.ApiService.PATCHCustomPromotionRulesCustomPromotionRuleIdExecute(r) +} + +/* +PATCHCustomPromotionRulesCustomPromotionRuleId Update a custom promotion rule + +Update a custom promotion rule + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customPromotionRuleId The resource's id + @return CustomPromotionRulesApiPATCHCustomPromotionRulesCustomPromotionRuleIdRequest +*/ +func (a *CustomPromotionRulesApiService) PATCHCustomPromotionRulesCustomPromotionRuleId(ctx context.Context, customPromotionRuleId interface{}) CustomPromotionRulesApiPATCHCustomPromotionRulesCustomPromotionRuleIdRequest { + return CustomPromotionRulesApiPATCHCustomPromotionRulesCustomPromotionRuleIdRequest{ + ApiService: a, + ctx: ctx, + customPromotionRuleId: customPromotionRuleId, + } +} + +// Execute executes the request +// +// @return PATCHCustomPromotionRulesCustomPromotionRuleId200Response +func (a *CustomPromotionRulesApiService) PATCHCustomPromotionRulesCustomPromotionRuleIdExecute(r CustomPromotionRulesApiPATCHCustomPromotionRulesCustomPromotionRuleIdRequest) (*PATCHCustomPromotionRulesCustomPromotionRuleId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PATCHCustomPromotionRulesCustomPromotionRuleId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomPromotionRulesApiService.PATCHCustomPromotionRulesCustomPromotionRuleId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/custom_promotion_rules/{customPromotionRuleId}" + localVarPath = strings.Replace(localVarPath, "{"+"customPromotionRuleId"+"}", url.PathEscape(parameterValueToString(r.customPromotionRuleId, "customPromotionRuleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.customPromotionRuleUpdate == nil { + return localVarReturnValue, nil, reportError("customPromotionRuleUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.customPromotionRuleUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type CustomPromotionRulesApiPOSTCustomPromotionRulesRequest struct { + ctx context.Context + ApiService *CustomPromotionRulesApiService + customPromotionRuleCreate *CustomPromotionRuleCreate +} + +func (r CustomPromotionRulesApiPOSTCustomPromotionRulesRequest) CustomPromotionRuleCreate(customPromotionRuleCreate CustomPromotionRuleCreate) CustomPromotionRulesApiPOSTCustomPromotionRulesRequest { + r.customPromotionRuleCreate = &customPromotionRuleCreate + return r +} + +func (r CustomPromotionRulesApiPOSTCustomPromotionRulesRequest) Execute() (*POSTCustomPromotionRules201Response, *http.Response, error) { + return r.ApiService.POSTCustomPromotionRulesExecute(r) +} + +/* +POSTCustomPromotionRules Create a custom promotion rule + +Create a custom promotion rule + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return CustomPromotionRulesApiPOSTCustomPromotionRulesRequest +*/ +func (a *CustomPromotionRulesApiService) POSTCustomPromotionRules(ctx context.Context) CustomPromotionRulesApiPOSTCustomPromotionRulesRequest { + return CustomPromotionRulesApiPOSTCustomPromotionRulesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return POSTCustomPromotionRules201Response +func (a *CustomPromotionRulesApiService) POSTCustomPromotionRulesExecute(r CustomPromotionRulesApiPOSTCustomPromotionRulesRequest) (*POSTCustomPromotionRules201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *POSTCustomPromotionRules201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomPromotionRulesApiService.POSTCustomPromotionRules") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/custom_promotion_rules" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.customPromotionRuleCreate == nil { + return localVarReturnValue, nil, reportError("customPromotionRuleCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.customPromotionRuleCreate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api/api_customer_addresses.go b/api/api_customer_addresses.go index 176a9e81..50519d19 100644 --- a/api/api_customer_addresses.go +++ b/api/api_customer_addresses.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_customer_groups.go b/api/api_customer_groups.go index 10d8d388..f1a27215 100644 --- a/api/api_customer_groups.go +++ b/api/api_customer_groups.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_customer_password_resets.go b/api/api_customer_password_resets.go index f6ea507c..8f3b913e 100644 --- a/api/api_customer_password_resets.go +++ b/api/api_customer_password_resets.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_customer_payment_sources.go b/api/api_customer_payment_sources.go index c3e296ab..a9fe180c 100644 --- a/api/api_customer_payment_sources.go +++ b/api/api_customer_payment_sources.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_customer_subscriptions.go b/api/api_customer_subscriptions.go index 4b38e04e..cd4796b6 100644 --- a/api/api_customer_subscriptions.go +++ b/api/api_customer_subscriptions.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_customers.go b/api/api_customers.go index 1af5005c..9be9579f 100644 --- a/api/api_customers.go +++ b/api/api_customers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -1239,6 +1239,98 @@ func (a *CustomersApiService) GETOrderSubscriptionIdCustomerExecute(r CustomersA return localVarHTTPResponse, nil } +type CustomersApiGETPriceIdJwtCustomerRequest struct { + ctx context.Context + ApiService *CustomersApiService + priceId interface{} +} + +func (r CustomersApiGETPriceIdJwtCustomerRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceIdJwtCustomerExecute(r) +} + +/* +GETPriceIdJwtCustomer Retrieve the jwt customer associated to the price + +Retrieve the jwt customer associated to the price + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceId The resource's id + @return CustomersApiGETPriceIdJwtCustomerRequest +*/ +func (a *CustomersApiService) GETPriceIdJwtCustomer(ctx context.Context, priceId interface{}) CustomersApiGETPriceIdJwtCustomerRequest { + return CustomersApiGETPriceIdJwtCustomerRequest{ + ApiService: a, + ctx: ctx, + priceId: priceId, + } +} + +// Execute executes the request +func (a *CustomersApiService) GETPriceIdJwtCustomerExecute(r CustomersApiGETPriceIdJwtCustomerRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomersApiService.GETPriceIdJwtCustomer") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/prices/{priceId}/jwt_customer" + localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type CustomersApiGETReturnIdCustomerRequest struct { ctx context.Context ApiService *CustomersApiService @@ -1331,6 +1423,98 @@ func (a *CustomersApiService) GETReturnIdCustomerExecute(r CustomersApiGETReturn return localVarHTTPResponse, nil } +type CustomersApiGETSkuIdJwtCustomerRequest struct { + ctx context.Context + ApiService *CustomersApiService + skuId interface{} +} + +func (r CustomersApiGETSkuIdJwtCustomerRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdJwtCustomerExecute(r) +} + +/* +GETSkuIdJwtCustomer Retrieve the jwt customer associated to the SKU + +Retrieve the jwt customer associated to the SKU + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param skuId The resource's id + @return CustomersApiGETSkuIdJwtCustomerRequest +*/ +func (a *CustomersApiService) GETSkuIdJwtCustomer(ctx context.Context, skuId interface{}) CustomersApiGETSkuIdJwtCustomerRequest { + return CustomersApiGETSkuIdJwtCustomerRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, + } +} + +// Execute executes the request +func (a *CustomersApiService) GETSkuIdJwtCustomerExecute(r CustomersApiGETSkuIdJwtCustomerRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomersApiService.GETSkuIdJwtCustomer") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/skus/{skuId}/jwt_customer" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type CustomersApiGETSkuListIdCustomerRequest struct { ctx context.Context ApiService *CustomersApiService diff --git a/api/api_delivery_lead_times.go b/api/api_delivery_lead_times.go index b57fff16..eaa92854 100644 --- a/api/api_delivery_lead_times.go +++ b/api/api_delivery_lead_times.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_event_callbacks.go b/api/api_event_callbacks.go index 8ea5430e..0829e250 100644 --- a/api/api_event_callbacks.go +++ b/api/api_event_callbacks.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_events.go b/api/api_events.go index 2625f09c..84a85a1c 100644 --- a/api/api_events.go +++ b/api/api_events.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,48 +23,48 @@ import ( // EventsApiService EventsApi service type EventsApiService service -type EventsApiGETAuthorizationIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - authorizationId interface{} +type EventsApiGETAddressIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + addressId interface{} } -func (r EventsApiGETAuthorizationIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETAuthorizationIdEventsExecute(r) +func (r EventsApiGETAddressIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAddressIdEventsExecute(r) } /* -GETAuthorizationIdEvents Retrieve the events associated to the authorization +GETAddressIdEvents Retrieve the events associated to the address -Retrieve the events associated to the authorization +Retrieve the events associated to the address @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param authorizationId The resource's id - @return EventsApiGETAuthorizationIdEventsRequest + @param addressId The resource's id + @return EventsApiGETAddressIdEventsRequest */ -func (a *EventsApiService) GETAuthorizationIdEvents(ctx context.Context, authorizationId interface{}) EventsApiGETAuthorizationIdEventsRequest { - return EventsApiGETAuthorizationIdEventsRequest{ - ApiService: a, - ctx: ctx, - authorizationId: authorizationId, +func (a *EventsApiService) GETAddressIdEvents(ctx context.Context, addressId interface{}) EventsApiGETAddressIdEventsRequest { + return EventsApiGETAddressIdEventsRequest{ + ApiService: a, + ctx: ctx, + addressId: addressId, } } // Execute executes the request -func (a *EventsApiService) GETAuthorizationIdEventsExecute(r EventsApiGETAuthorizationIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETAddressIdEventsExecute(r EventsApiGETAddressIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETAuthorizationIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETAddressIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authorizations/{authorizationId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"authorizationId"+"}", url.PathEscape(parameterValueToString(r.authorizationId, "authorizationId")), -1) + localVarPath := localBasePath + "/addresses/{addressId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"addressId"+"}", url.PathEscape(parameterValueToString(r.addressId, "addressId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -115,48 +115,48 @@ func (a *EventsApiService) GETAuthorizationIdEventsExecute(r EventsApiGETAuthori return localVarHTTPResponse, nil } -type EventsApiGETCaptureIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - captureId interface{} +type EventsApiGETAuthorizationIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + authorizationId interface{} } -func (r EventsApiGETCaptureIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCaptureIdEventsExecute(r) +func (r EventsApiGETAuthorizationIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAuthorizationIdEventsExecute(r) } /* -GETCaptureIdEvents Retrieve the events associated to the capture +GETAuthorizationIdEvents Retrieve the events associated to the authorization -Retrieve the events associated to the capture +Retrieve the events associated to the authorization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param captureId The resource's id - @return EventsApiGETCaptureIdEventsRequest + @param authorizationId The resource's id + @return EventsApiGETAuthorizationIdEventsRequest */ -func (a *EventsApiService) GETCaptureIdEvents(ctx context.Context, captureId interface{}) EventsApiGETCaptureIdEventsRequest { - return EventsApiGETCaptureIdEventsRequest{ - ApiService: a, - ctx: ctx, - captureId: captureId, +func (a *EventsApiService) GETAuthorizationIdEvents(ctx context.Context, authorizationId interface{}) EventsApiGETAuthorizationIdEventsRequest { + return EventsApiGETAuthorizationIdEventsRequest{ + ApiService: a, + ctx: ctx, + authorizationId: authorizationId, } } // Execute executes the request -func (a *EventsApiService) GETCaptureIdEventsExecute(r EventsApiGETCaptureIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETAuthorizationIdEventsExecute(r EventsApiGETAuthorizationIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETCaptureIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETAuthorizationIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/captures/{captureId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"captureId"+"}", url.PathEscape(parameterValueToString(r.captureId, "captureId")), -1) + localVarPath := localBasePath + "/authorizations/{authorizationId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"authorizationId"+"}", url.PathEscape(parameterValueToString(r.authorizationId, "authorizationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -207,48 +207,48 @@ func (a *EventsApiService) GETCaptureIdEventsExecute(r EventsApiGETCaptureIdEven return localVarHTTPResponse, nil } -type EventsApiGETCleanupIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - cleanupId interface{} +type EventsApiGETAvalaraAccountIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + avalaraAccountId interface{} } -func (r EventsApiGETCleanupIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCleanupIdEventsExecute(r) +func (r EventsApiGETAvalaraAccountIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAvalaraAccountIdEventsExecute(r) } /* -GETCleanupIdEvents Retrieve the events associated to the cleanup +GETAvalaraAccountIdEvents Retrieve the events associated to the avalara account -Retrieve the events associated to the cleanup +Retrieve the events associated to the avalara account @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param cleanupId The resource's id - @return EventsApiGETCleanupIdEventsRequest + @param avalaraAccountId The resource's id + @return EventsApiGETAvalaraAccountIdEventsRequest */ -func (a *EventsApiService) GETCleanupIdEvents(ctx context.Context, cleanupId interface{}) EventsApiGETCleanupIdEventsRequest { - return EventsApiGETCleanupIdEventsRequest{ - ApiService: a, - ctx: ctx, - cleanupId: cleanupId, +func (a *EventsApiService) GETAvalaraAccountIdEvents(ctx context.Context, avalaraAccountId interface{}) EventsApiGETAvalaraAccountIdEventsRequest { + return EventsApiGETAvalaraAccountIdEventsRequest{ + ApiService: a, + ctx: ctx, + avalaraAccountId: avalaraAccountId, } } // Execute executes the request -func (a *EventsApiService) GETCleanupIdEventsExecute(r EventsApiGETCleanupIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETAvalaraAccountIdEventsExecute(r EventsApiGETAvalaraAccountIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETCleanupIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETAvalaraAccountIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/cleanups/{cleanupId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"cleanupId"+"}", url.PathEscape(parameterValueToString(r.cleanupId, "cleanupId")), -1) + localVarPath := localBasePath + "/avalara_accounts/{avalaraAccountId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"avalaraAccountId"+"}", url.PathEscape(parameterValueToString(r.avalaraAccountId, "avalaraAccountId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -299,48 +299,48 @@ func (a *EventsApiService) GETCleanupIdEventsExecute(r EventsApiGETCleanupIdEven return localVarHTTPResponse, nil } -type EventsApiGETCustomerAddressIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - customerAddressId interface{} +type EventsApiGETBundleIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + bundleId interface{} } -func (r EventsApiGETCustomerAddressIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerAddressIdEventsExecute(r) +func (r EventsApiGETBundleIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBundleIdEventsExecute(r) } /* -GETCustomerAddressIdEvents Retrieve the events associated to the customer address +GETBundleIdEvents Retrieve the events associated to the bundle -Retrieve the events associated to the customer address +Retrieve the events associated to the bundle @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerAddressId The resource's id - @return EventsApiGETCustomerAddressIdEventsRequest + @param bundleId The resource's id + @return EventsApiGETBundleIdEventsRequest */ -func (a *EventsApiService) GETCustomerAddressIdEvents(ctx context.Context, customerAddressId interface{}) EventsApiGETCustomerAddressIdEventsRequest { - return EventsApiGETCustomerAddressIdEventsRequest{ - ApiService: a, - ctx: ctx, - customerAddressId: customerAddressId, +func (a *EventsApiService) GETBundleIdEvents(ctx context.Context, bundleId interface{}) EventsApiGETBundleIdEventsRequest { + return EventsApiGETBundleIdEventsRequest{ + ApiService: a, + ctx: ctx, + bundleId: bundleId, } } // Execute executes the request -func (a *EventsApiService) GETCustomerAddressIdEventsExecute(r EventsApiGETCustomerAddressIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETBundleIdEventsExecute(r EventsApiGETBundleIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETCustomerAddressIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETBundleIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customer_addresses/{customerAddressId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"customerAddressId"+"}", url.PathEscape(parameterValueToString(r.customerAddressId, "customerAddressId")), -1) + localVarPath := localBasePath + "/bundles/{bundleId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"bundleId"+"}", url.PathEscape(parameterValueToString(r.bundleId, "bundleId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -391,48 +391,48 @@ func (a *EventsApiService) GETCustomerAddressIdEventsExecute(r EventsApiGETCusto return localVarHTTPResponse, nil } -type EventsApiGETCustomerIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - customerId interface{} +type EventsApiGETBuyXPayYPromotionIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + buyXPayYPromotionId interface{} } -func (r EventsApiGETCustomerIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerIdEventsExecute(r) +func (r EventsApiGETBuyXPayYPromotionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdEventsExecute(r) } /* -GETCustomerIdEvents Retrieve the events associated to the customer +GETBuyXPayYPromotionIdEvents Retrieve the events associated to the buy x pay y promotion -Retrieve the events associated to the customer +Retrieve the events associated to the buy x pay y promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerId The resource's id - @return EventsApiGETCustomerIdEventsRequest + @param buyXPayYPromotionId The resource's id + @return EventsApiGETBuyXPayYPromotionIdEventsRequest */ -func (a *EventsApiService) GETCustomerIdEvents(ctx context.Context, customerId interface{}) EventsApiGETCustomerIdEventsRequest { - return EventsApiGETCustomerIdEventsRequest{ - ApiService: a, - ctx: ctx, - customerId: customerId, +func (a *EventsApiService) GETBuyXPayYPromotionIdEvents(ctx context.Context, buyXPayYPromotionId interface{}) EventsApiGETBuyXPayYPromotionIdEventsRequest { + return EventsApiGETBuyXPayYPromotionIdEventsRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, } } // Execute executes the request -func (a *EventsApiService) GETCustomerIdEventsExecute(r EventsApiGETCustomerIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETBuyXPayYPromotionIdEventsExecute(r EventsApiGETBuyXPayYPromotionIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETCustomerIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETBuyXPayYPromotionIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customers/{customerId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -483,48 +483,48 @@ func (a *EventsApiService) GETCustomerIdEventsExecute(r EventsApiGETCustomerIdEv return localVarHTTPResponse, nil } -type EventsApiGETCustomerPasswordResetIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - customerPasswordResetId interface{} +type EventsApiGETCaptureIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + captureId interface{} } -func (r EventsApiGETCustomerPasswordResetIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerPasswordResetIdEventsExecute(r) +func (r EventsApiGETCaptureIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCaptureIdEventsExecute(r) } /* -GETCustomerPasswordResetIdEvents Retrieve the events associated to the customer password reset +GETCaptureIdEvents Retrieve the events associated to the capture -Retrieve the events associated to the customer password reset +Retrieve the events associated to the capture @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerPasswordResetId The resource's id - @return EventsApiGETCustomerPasswordResetIdEventsRequest + @param captureId The resource's id + @return EventsApiGETCaptureIdEventsRequest */ -func (a *EventsApiService) GETCustomerPasswordResetIdEvents(ctx context.Context, customerPasswordResetId interface{}) EventsApiGETCustomerPasswordResetIdEventsRequest { - return EventsApiGETCustomerPasswordResetIdEventsRequest{ - ApiService: a, - ctx: ctx, - customerPasswordResetId: customerPasswordResetId, +func (a *EventsApiService) GETCaptureIdEvents(ctx context.Context, captureId interface{}) EventsApiGETCaptureIdEventsRequest { + return EventsApiGETCaptureIdEventsRequest{ + ApiService: a, + ctx: ctx, + captureId: captureId, } } // Execute executes the request -func (a *EventsApiService) GETCustomerPasswordResetIdEventsExecute(r EventsApiGETCustomerPasswordResetIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETCaptureIdEventsExecute(r EventsApiGETCaptureIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETCustomerPasswordResetIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETCaptureIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customer_password_resets/{customerPasswordResetId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"customerPasswordResetId"+"}", url.PathEscape(parameterValueToString(r.customerPasswordResetId, "customerPasswordResetId")), -1) + localVarPath := localBasePath + "/captures/{captureId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"captureId"+"}", url.PathEscape(parameterValueToString(r.captureId, "captureId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -575,48 +575,48 @@ func (a *EventsApiService) GETCustomerPasswordResetIdEventsExecute(r EventsApiGE return localVarHTTPResponse, nil } -type EventsApiGETCustomerSubscriptionIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - customerSubscriptionId interface{} +type EventsApiGETCleanupIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + cleanupId interface{} } -func (r EventsApiGETCustomerSubscriptionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerSubscriptionIdEventsExecute(r) +func (r EventsApiGETCleanupIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCleanupIdEventsExecute(r) } /* -GETCustomerSubscriptionIdEvents Retrieve the events associated to the customer subscription +GETCleanupIdEvents Retrieve the events associated to the cleanup -Retrieve the events associated to the customer subscription +Retrieve the events associated to the cleanup @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerSubscriptionId The resource's id - @return EventsApiGETCustomerSubscriptionIdEventsRequest + @param cleanupId The resource's id + @return EventsApiGETCleanupIdEventsRequest */ -func (a *EventsApiService) GETCustomerSubscriptionIdEvents(ctx context.Context, customerSubscriptionId interface{}) EventsApiGETCustomerSubscriptionIdEventsRequest { - return EventsApiGETCustomerSubscriptionIdEventsRequest{ - ApiService: a, - ctx: ctx, - customerSubscriptionId: customerSubscriptionId, +func (a *EventsApiService) GETCleanupIdEvents(ctx context.Context, cleanupId interface{}) EventsApiGETCleanupIdEventsRequest { + return EventsApiGETCleanupIdEventsRequest{ + ApiService: a, + ctx: ctx, + cleanupId: cleanupId, } } // Execute executes the request -func (a *EventsApiService) GETCustomerSubscriptionIdEventsExecute(r EventsApiGETCustomerSubscriptionIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETCleanupIdEventsExecute(r EventsApiGETCleanupIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETCustomerSubscriptionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETCleanupIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customer_subscriptions/{customerSubscriptionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"customerSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.customerSubscriptionId, "customerSubscriptionId")), -1) + localVarPath := localBasePath + "/cleanups/{cleanupId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"cleanupId"+"}", url.PathEscape(parameterValueToString(r.cleanupId, "cleanupId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -667,47 +667,48 @@ func (a *EventsApiService) GETCustomerSubscriptionIdEventsExecute(r EventsApiGET return localVarHTTPResponse, nil } -type EventsApiGETEventsRequest struct { +type EventsApiGETCouponIdEventsRequest struct { ctx context.Context ApiService *EventsApiService + couponId interface{} } -func (r EventsApiGETEventsRequest) Execute() (*GETEvents200Response, *http.Response, error) { - return r.ApiService.GETEventsExecute(r) +func (r EventsApiGETCouponIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCouponIdEventsExecute(r) } /* -GETEvents List all events +GETCouponIdEvents Retrieve the events associated to the coupon -List all events +Retrieve the events associated to the coupon @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return EventsApiGETEventsRequest + @param couponId The resource's id + @return EventsApiGETCouponIdEventsRequest */ -func (a *EventsApiService) GETEvents(ctx context.Context) EventsApiGETEventsRequest { - return EventsApiGETEventsRequest{ +func (a *EventsApiService) GETCouponIdEvents(ctx context.Context, couponId interface{}) EventsApiGETCouponIdEventsRequest { + return EventsApiGETCouponIdEventsRequest{ ApiService: a, ctx: ctx, + couponId: couponId, } } // Execute executes the request -// -// @return GETEvents200Response -func (a *EventsApiService) GETEventsExecute(r EventsApiGETEventsRequest) (*GETEvents200Response, *http.Response, error) { +func (a *EventsApiService) GETCouponIdEventsExecute(r EventsApiGETCouponIdEventsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GETEvents200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETCouponIdEvents") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/events" + localVarPath := localBasePath + "/coupons/{couponId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"couponId"+"}", url.PathEscape(parameterValueToString(r.couponId, "couponId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -723,7 +724,7 @@ func (a *EventsApiService) GETEventsExecute(r EventsApiGETEventsRequest) (*GETEv } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -732,19 +733,19 @@ func (a *EventsApiService) GETEventsExecute(r EventsApiGETEventsRequest) (*GETEv } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -752,66 +753,1270 @@ func (a *EventsApiService) GETEventsExecute(r EventsApiGETEventsRequest) (*GETEv body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + return localVarHTTPResponse, nil +} - return localVarReturnValue, localVarHTTPResponse, nil +type EventsApiGETCustomerAddressIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + customerAddressId interface{} } -type EventsApiGETEventsEventIdRequest struct { - ctx context.Context - ApiService *EventsApiService - eventId interface{} +func (r EventsApiGETCustomerAddressIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerAddressIdEventsExecute(r) } -func (r EventsApiGETEventsEventIdRequest) Execute() (*GETEventsEventId200Response, *http.Response, error) { +/* +GETCustomerAddressIdEvents Retrieve the events associated to the customer address + +Retrieve the events associated to the customer address + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerAddressId The resource's id + @return EventsApiGETCustomerAddressIdEventsRequest +*/ +func (a *EventsApiService) GETCustomerAddressIdEvents(ctx context.Context, customerAddressId interface{}) EventsApiGETCustomerAddressIdEventsRequest { + return EventsApiGETCustomerAddressIdEventsRequest{ + ApiService: a, + ctx: ctx, + customerAddressId: customerAddressId, + } +} + +// Execute executes the request +func (a *EventsApiService) GETCustomerAddressIdEventsExecute(r EventsApiGETCustomerAddressIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETCustomerAddressIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customer_addresses/{customerAddressId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"customerAddressId"+"}", url.PathEscape(parameterValueToString(r.customerAddressId, "customerAddressId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type EventsApiGETCustomerIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + customerId interface{} +} + +func (r EventsApiGETCustomerIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerIdEventsExecute(r) +} + +/* +GETCustomerIdEvents Retrieve the events associated to the customer + +Retrieve the events associated to the customer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerId The resource's id + @return EventsApiGETCustomerIdEventsRequest +*/ +func (a *EventsApiService) GETCustomerIdEvents(ctx context.Context, customerId interface{}) EventsApiGETCustomerIdEventsRequest { + return EventsApiGETCustomerIdEventsRequest{ + ApiService: a, + ctx: ctx, + customerId: customerId, + } +} + +// Execute executes the request +func (a *EventsApiService) GETCustomerIdEventsExecute(r EventsApiGETCustomerIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETCustomerIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customers/{customerId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type EventsApiGETCustomerPasswordResetIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + customerPasswordResetId interface{} +} + +func (r EventsApiGETCustomerPasswordResetIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerPasswordResetIdEventsExecute(r) +} + +/* +GETCustomerPasswordResetIdEvents Retrieve the events associated to the customer password reset + +Retrieve the events associated to the customer password reset + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerPasswordResetId The resource's id + @return EventsApiGETCustomerPasswordResetIdEventsRequest +*/ +func (a *EventsApiService) GETCustomerPasswordResetIdEvents(ctx context.Context, customerPasswordResetId interface{}) EventsApiGETCustomerPasswordResetIdEventsRequest { + return EventsApiGETCustomerPasswordResetIdEventsRequest{ + ApiService: a, + ctx: ctx, + customerPasswordResetId: customerPasswordResetId, + } +} + +// Execute executes the request +func (a *EventsApiService) GETCustomerPasswordResetIdEventsExecute(r EventsApiGETCustomerPasswordResetIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETCustomerPasswordResetIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customer_password_resets/{customerPasswordResetId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"customerPasswordResetId"+"}", url.PathEscape(parameterValueToString(r.customerPasswordResetId, "customerPasswordResetId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type EventsApiGETCustomerSubscriptionIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + customerSubscriptionId interface{} +} + +func (r EventsApiGETCustomerSubscriptionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerSubscriptionIdEventsExecute(r) +} + +/* +GETCustomerSubscriptionIdEvents Retrieve the events associated to the customer subscription + +Retrieve the events associated to the customer subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerSubscriptionId The resource's id + @return EventsApiGETCustomerSubscriptionIdEventsRequest +*/ +func (a *EventsApiService) GETCustomerSubscriptionIdEvents(ctx context.Context, customerSubscriptionId interface{}) EventsApiGETCustomerSubscriptionIdEventsRequest { + return EventsApiGETCustomerSubscriptionIdEventsRequest{ + ApiService: a, + ctx: ctx, + customerSubscriptionId: customerSubscriptionId, + } +} + +// Execute executes the request +func (a *EventsApiService) GETCustomerSubscriptionIdEventsExecute(r EventsApiGETCustomerSubscriptionIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETCustomerSubscriptionIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customer_subscriptions/{customerSubscriptionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"customerSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.customerSubscriptionId, "customerSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type EventsApiGETEventsRequest struct { + ctx context.Context + ApiService *EventsApiService +} + +func (r EventsApiGETEventsRequest) Execute() (*GETEvents200Response, *http.Response, error) { + return r.ApiService.GETEventsExecute(r) +} + +/* +GETEvents List all events + +List all events + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return EventsApiGETEventsRequest +*/ +func (a *EventsApiService) GETEvents(ctx context.Context) EventsApiGETEventsRequest { + return EventsApiGETEventsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GETEvents200Response +func (a *EventsApiService) GETEventsExecute(r EventsApiGETEventsRequest) (*GETEvents200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETEvents200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETEvents") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/events" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type EventsApiGETEventsEventIdRequest struct { + ctx context.Context + ApiService *EventsApiService + eventId interface{} +} + +func (r EventsApiGETEventsEventIdRequest) Execute() (*GETEventsEventId200Response, *http.Response, error) { return r.ApiService.GETEventsEventIdExecute(r) } /* -GETEventsEventId Retrieve an event +GETEventsEventId Retrieve an event + +Retrieve an event + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param eventId The resource's id + @return EventsApiGETEventsEventIdRequest +*/ +func (a *EventsApiService) GETEventsEventId(ctx context.Context, eventId interface{}) EventsApiGETEventsEventIdRequest { + return EventsApiGETEventsEventIdRequest{ + ApiService: a, + ctx: ctx, + eventId: eventId, + } +} + +// Execute executes the request +// +// @return GETEventsEventId200Response +func (a *EventsApiService) GETEventsEventIdExecute(r EventsApiGETEventsEventIdRequest) (*GETEventsEventId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETEventsEventId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETEventsEventId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/events/{eventId}" + localVarPath = strings.Replace(localVarPath, "{"+"eventId"+"}", url.PathEscape(parameterValueToString(r.eventId, "eventId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type EventsApiGETExportIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + exportId interface{} +} + +func (r EventsApiGETExportIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExportIdEventsExecute(r) +} + +/* +GETExportIdEvents Retrieve the events associated to the export + +Retrieve the events associated to the export + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param exportId The resource's id + @return EventsApiGETExportIdEventsRequest +*/ +func (a *EventsApiService) GETExportIdEvents(ctx context.Context, exportId interface{}) EventsApiGETExportIdEventsRequest { + return EventsApiGETExportIdEventsRequest{ + ApiService: a, + ctx: ctx, + exportId: exportId, + } +} + +// Execute executes the request +func (a *EventsApiService) GETExportIdEventsExecute(r EventsApiGETExportIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETExportIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/exports/{exportId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"exportId"+"}", url.PathEscape(parameterValueToString(r.exportId, "exportId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type EventsApiGETExternalPromotionIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + externalPromotionId interface{} +} + +func (r EventsApiGETExternalPromotionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPromotionIdEventsExecute(r) +} + +/* +GETExternalPromotionIdEvents Retrieve the events associated to the external promotion + +Retrieve the events associated to the external promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalPromotionId The resource's id + @return EventsApiGETExternalPromotionIdEventsRequest +*/ +func (a *EventsApiService) GETExternalPromotionIdEvents(ctx context.Context, externalPromotionId interface{}) EventsApiGETExternalPromotionIdEventsRequest { + return EventsApiGETExternalPromotionIdEventsRequest{ + ApiService: a, + ctx: ctx, + externalPromotionId: externalPromotionId, + } +} + +// Execute executes the request +func (a *EventsApiService) GETExternalPromotionIdEventsExecute(r EventsApiGETExternalPromotionIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETExternalPromotionIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type EventsApiGETFixedAmountPromotionIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + fixedAmountPromotionId interface{} +} + +func (r EventsApiGETFixedAmountPromotionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedAmountPromotionIdEventsExecute(r) +} + +/* +GETFixedAmountPromotionIdEvents Retrieve the events associated to the fixed amount promotion + +Retrieve the events associated to the fixed amount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedAmountPromotionId The resource's id + @return EventsApiGETFixedAmountPromotionIdEventsRequest +*/ +func (a *EventsApiService) GETFixedAmountPromotionIdEvents(ctx context.Context, fixedAmountPromotionId interface{}) EventsApiGETFixedAmountPromotionIdEventsRequest { + return EventsApiGETFixedAmountPromotionIdEventsRequest{ + ApiService: a, + ctx: ctx, + fixedAmountPromotionId: fixedAmountPromotionId, + } +} + +// Execute executes the request +func (a *EventsApiService) GETFixedAmountPromotionIdEventsExecute(r EventsApiGETFixedAmountPromotionIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETFixedAmountPromotionIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type EventsApiGETFixedPricePromotionIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + fixedPricePromotionId interface{} +} + +func (r EventsApiGETFixedPricePromotionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedPricePromotionIdEventsExecute(r) +} + +/* +GETFixedPricePromotionIdEvents Retrieve the events associated to the fixed price promotion + +Retrieve the events associated to the fixed price promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedPricePromotionId The resource's id + @return EventsApiGETFixedPricePromotionIdEventsRequest +*/ +func (a *EventsApiService) GETFixedPricePromotionIdEvents(ctx context.Context, fixedPricePromotionId interface{}) EventsApiGETFixedPricePromotionIdEventsRequest { + return EventsApiGETFixedPricePromotionIdEventsRequest{ + ApiService: a, + ctx: ctx, + fixedPricePromotionId: fixedPricePromotionId, + } +} + +// Execute executes the request +func (a *EventsApiService) GETFixedPricePromotionIdEventsExecute(r EventsApiGETFixedPricePromotionIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETFixedPricePromotionIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type EventsApiGETFlexPromotionIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + flexPromotionId interface{} +} + +func (r EventsApiGETFlexPromotionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFlexPromotionIdEventsExecute(r) +} + +/* +GETFlexPromotionIdEvents Retrieve the events associated to the flex promotion + +Retrieve the events associated to the flex promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param flexPromotionId The resource's id + @return EventsApiGETFlexPromotionIdEventsRequest +*/ +func (a *EventsApiService) GETFlexPromotionIdEvents(ctx context.Context, flexPromotionId interface{}) EventsApiGETFlexPromotionIdEventsRequest { + return EventsApiGETFlexPromotionIdEventsRequest{ + ApiService: a, + ctx: ctx, + flexPromotionId: flexPromotionId, + } +} + +// Execute executes the request +func (a *EventsApiService) GETFlexPromotionIdEventsExecute(r EventsApiGETFlexPromotionIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETFlexPromotionIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/flex_promotions/{flexPromotionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"flexPromotionId"+"}", url.PathEscape(parameterValueToString(r.flexPromotionId, "flexPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type EventsApiGETFreeGiftPromotionIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + freeGiftPromotionId interface{} +} + +func (r EventsApiGETFreeGiftPromotionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeGiftPromotionIdEventsExecute(r) +} + +/* +GETFreeGiftPromotionIdEvents Retrieve the events associated to the free gift promotion + +Retrieve the events associated to the free gift promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeGiftPromotionId The resource's id + @return EventsApiGETFreeGiftPromotionIdEventsRequest +*/ +func (a *EventsApiService) GETFreeGiftPromotionIdEvents(ctx context.Context, freeGiftPromotionId interface{}) EventsApiGETFreeGiftPromotionIdEventsRequest { + return EventsApiGETFreeGiftPromotionIdEventsRequest{ + ApiService: a, + ctx: ctx, + freeGiftPromotionId: freeGiftPromotionId, + } +} + +// Execute executes the request +func (a *EventsApiService) GETFreeGiftPromotionIdEventsExecute(r EventsApiGETFreeGiftPromotionIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETFreeGiftPromotionIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type EventsApiGETFreeShippingPromotionIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + freeShippingPromotionId interface{} +} + +func (r EventsApiGETFreeShippingPromotionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeShippingPromotionIdEventsExecute(r) +} + +/* +GETFreeShippingPromotionIdEvents Retrieve the events associated to the free shipping promotion + +Retrieve the events associated to the free shipping promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeShippingPromotionId The resource's id + @return EventsApiGETFreeShippingPromotionIdEventsRequest +*/ +func (a *EventsApiService) GETFreeShippingPromotionIdEvents(ctx context.Context, freeShippingPromotionId interface{}) EventsApiGETFreeShippingPromotionIdEventsRequest { + return EventsApiGETFreeShippingPromotionIdEventsRequest{ + ApiService: a, + ctx: ctx, + freeShippingPromotionId: freeShippingPromotionId, + } +} + +// Execute executes the request +func (a *EventsApiService) GETFreeShippingPromotionIdEventsExecute(r EventsApiGETFreeShippingPromotionIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETFreeShippingPromotionIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type EventsApiGETGiftCardIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + giftCardId interface{} +} + +func (r EventsApiGETGiftCardIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGiftCardIdEventsExecute(r) +} + +/* +GETGiftCardIdEvents Retrieve the events associated to the gift card -Retrieve an event +Retrieve the events associated to the gift card @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param eventId The resource's id - @return EventsApiGETEventsEventIdRequest + @param giftCardId The resource's id + @return EventsApiGETGiftCardIdEventsRequest */ -func (a *EventsApiService) GETEventsEventId(ctx context.Context, eventId interface{}) EventsApiGETEventsEventIdRequest { - return EventsApiGETEventsEventIdRequest{ +func (a *EventsApiService) GETGiftCardIdEvents(ctx context.Context, giftCardId interface{}) EventsApiGETGiftCardIdEventsRequest { + return EventsApiGETGiftCardIdEventsRequest{ ApiService: a, ctx: ctx, - eventId: eventId, + giftCardId: giftCardId, } } // Execute executes the request -// -// @return GETEventsEventId200Response -func (a *EventsApiService) GETEventsEventIdExecute(r EventsApiGETEventsEventIdRequest) (*GETEventsEventId200Response, *http.Response, error) { +func (a *EventsApiService) GETGiftCardIdEventsExecute(r EventsApiGETGiftCardIdEventsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GETEventsEventId200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETEventsEventId") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETGiftCardIdEvents") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/events/{eventId}" - localVarPath = strings.Replace(localVarPath, "{"+"eventId"+"}", url.PathEscape(parameterValueToString(r.eventId, "eventId")), -1) + localVarPath := localBasePath + "/gift_cards/{giftCardId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"giftCardId"+"}", url.PathEscape(parameterValueToString(r.giftCardId, "giftCardId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -827,7 +2032,7 @@ func (a *EventsApiService) GETEventsEventIdExecute(r EventsApiGETEventsEventIdRe } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -836,19 +2041,19 @@ func (a *EventsApiService) GETEventsEventIdExecute(r EventsApiGETEventsEventIdRe } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -856,63 +2061,146 @@ func (a *EventsApiService) GETEventsEventIdExecute(r EventsApiGETEventsEventIdRe body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + return localVarHTTPResponse, nil +} + +type EventsApiGETImportIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + importId interface{} +} + +func (r EventsApiGETImportIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETImportIdEventsExecute(r) +} + +/* +GETImportIdEvents Retrieve the events associated to the import + +Retrieve the events associated to the import + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param importId The resource's id + @return EventsApiGETImportIdEventsRequest +*/ +func (a *EventsApiService) GETImportIdEvents(ctx context.Context, importId interface{}) EventsApiGETImportIdEventsRequest { + return EventsApiGETImportIdEventsRequest{ + ApiService: a, + ctx: ctx, + importId: importId, + } +} + +// Execute executes the request +func (a *EventsApiService) GETImportIdEventsExecute(r EventsApiGETImportIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETImportIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/imports/{importId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"importId"+"}", url.PathEscape(parameterValueToString(r.importId, "importId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { newErr := &GenericOpenAPIError{ body: localVarBody, - error: err.Error(), + error: localVarHTTPResponse.Status, } - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil + return localVarHTTPResponse, nil } -type EventsApiGETExportIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - exportId interface{} +type EventsApiGETInStockSubscriptionIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + inStockSubscriptionId interface{} } -func (r EventsApiGETExportIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETExportIdEventsExecute(r) +func (r EventsApiGETInStockSubscriptionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInStockSubscriptionIdEventsExecute(r) } /* -GETExportIdEvents Retrieve the events associated to the export +GETInStockSubscriptionIdEvents Retrieve the events associated to the in stock subscription -Retrieve the events associated to the export +Retrieve the events associated to the in stock subscription @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param exportId The resource's id - @return EventsApiGETExportIdEventsRequest + @param inStockSubscriptionId The resource's id + @return EventsApiGETInStockSubscriptionIdEventsRequest */ -func (a *EventsApiService) GETExportIdEvents(ctx context.Context, exportId interface{}) EventsApiGETExportIdEventsRequest { - return EventsApiGETExportIdEventsRequest{ - ApiService: a, - ctx: ctx, - exportId: exportId, +func (a *EventsApiService) GETInStockSubscriptionIdEvents(ctx context.Context, inStockSubscriptionId interface{}) EventsApiGETInStockSubscriptionIdEventsRequest { + return EventsApiGETInStockSubscriptionIdEventsRequest{ + ApiService: a, + ctx: ctx, + inStockSubscriptionId: inStockSubscriptionId, } } // Execute executes the request -func (a *EventsApiService) GETExportIdEventsExecute(r EventsApiGETExportIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETInStockSubscriptionIdEventsExecute(r EventsApiGETInStockSubscriptionIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETExportIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETInStockSubscriptionIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/exports/{exportId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"exportId"+"}", url.PathEscape(parameterValueToString(r.exportId, "exportId")), -1) + localVarPath := localBasePath + "/in_stock_subscriptions/{inStockSubscriptionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"inStockSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.inStockSubscriptionId, "inStockSubscriptionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -963,48 +2251,48 @@ func (a *EventsApiService) GETExportIdEventsExecute(r EventsApiGETExportIdEvents return localVarHTTPResponse, nil } -type EventsApiGETExternalPromotionIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - externalPromotionId interface{} +type EventsApiGETLineItemIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + lineItemId interface{} } -func (r EventsApiGETExternalPromotionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETExternalPromotionIdEventsExecute(r) +func (r EventsApiGETLineItemIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLineItemIdEventsExecute(r) } /* -GETExternalPromotionIdEvents Retrieve the events associated to the external promotion +GETLineItemIdEvents Retrieve the events associated to the line item -Retrieve the events associated to the external promotion +Retrieve the events associated to the line item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param externalPromotionId The resource's id - @return EventsApiGETExternalPromotionIdEventsRequest + @param lineItemId The resource's id + @return EventsApiGETLineItemIdEventsRequest */ -func (a *EventsApiService) GETExternalPromotionIdEvents(ctx context.Context, externalPromotionId interface{}) EventsApiGETExternalPromotionIdEventsRequest { - return EventsApiGETExternalPromotionIdEventsRequest{ - ApiService: a, - ctx: ctx, - externalPromotionId: externalPromotionId, +func (a *EventsApiService) GETLineItemIdEvents(ctx context.Context, lineItemId interface{}) EventsApiGETLineItemIdEventsRequest { + return EventsApiGETLineItemIdEventsRequest{ + ApiService: a, + ctx: ctx, + lineItemId: lineItemId, } } // Execute executes the request -func (a *EventsApiService) GETExternalPromotionIdEventsExecute(r EventsApiGETExternalPromotionIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETLineItemIdEventsExecute(r EventsApiGETLineItemIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETExternalPromotionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETLineItemIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + localVarPath := localBasePath + "/line_items/{lineItemId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"lineItemId"+"}", url.PathEscape(parameterValueToString(r.lineItemId, "lineItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1055,48 +2343,48 @@ func (a *EventsApiService) GETExternalPromotionIdEventsExecute(r EventsApiGETExt return localVarHTTPResponse, nil } -type EventsApiGETFixedAmountPromotionIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - fixedAmountPromotionId interface{} +type EventsApiGETLineItemOptionIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + lineItemOptionId interface{} } -func (r EventsApiGETFixedAmountPromotionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFixedAmountPromotionIdEventsExecute(r) +func (r EventsApiGETLineItemOptionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLineItemOptionIdEventsExecute(r) } /* -GETFixedAmountPromotionIdEvents Retrieve the events associated to the fixed amount promotion +GETLineItemOptionIdEvents Retrieve the events associated to the line item option -Retrieve the events associated to the fixed amount promotion +Retrieve the events associated to the line item option @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param fixedAmountPromotionId The resource's id - @return EventsApiGETFixedAmountPromotionIdEventsRequest + @param lineItemOptionId The resource's id + @return EventsApiGETLineItemOptionIdEventsRequest */ -func (a *EventsApiService) GETFixedAmountPromotionIdEvents(ctx context.Context, fixedAmountPromotionId interface{}) EventsApiGETFixedAmountPromotionIdEventsRequest { - return EventsApiGETFixedAmountPromotionIdEventsRequest{ - ApiService: a, - ctx: ctx, - fixedAmountPromotionId: fixedAmountPromotionId, +func (a *EventsApiService) GETLineItemOptionIdEvents(ctx context.Context, lineItemOptionId interface{}) EventsApiGETLineItemOptionIdEventsRequest { + return EventsApiGETLineItemOptionIdEventsRequest{ + ApiService: a, + ctx: ctx, + lineItemOptionId: lineItemOptionId, } } // Execute executes the request -func (a *EventsApiService) GETFixedAmountPromotionIdEventsExecute(r EventsApiGETFixedAmountPromotionIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETLineItemOptionIdEventsExecute(r EventsApiGETLineItemOptionIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETFixedAmountPromotionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETLineItemOptionIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + localVarPath := localBasePath + "/line_item_options/{lineItemOptionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"lineItemOptionId"+"}", url.PathEscape(parameterValueToString(r.lineItemOptionId, "lineItemOptionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1147,48 +2435,48 @@ func (a *EventsApiService) GETFixedAmountPromotionIdEventsExecute(r EventsApiGET return localVarHTTPResponse, nil } -type EventsApiGETFixedPricePromotionIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - fixedPricePromotionId interface{} +type EventsApiGETLinkIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + linkId interface{} } -func (r EventsApiGETFixedPricePromotionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFixedPricePromotionIdEventsExecute(r) +func (r EventsApiGETLinkIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLinkIdEventsExecute(r) } /* -GETFixedPricePromotionIdEvents Retrieve the events associated to the fixed price promotion +GETLinkIdEvents Retrieve the events associated to the link -Retrieve the events associated to the fixed price promotion +Retrieve the events associated to the link @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param fixedPricePromotionId The resource's id - @return EventsApiGETFixedPricePromotionIdEventsRequest + @param linkId The resource's id + @return EventsApiGETLinkIdEventsRequest */ -func (a *EventsApiService) GETFixedPricePromotionIdEvents(ctx context.Context, fixedPricePromotionId interface{}) EventsApiGETFixedPricePromotionIdEventsRequest { - return EventsApiGETFixedPricePromotionIdEventsRequest{ - ApiService: a, - ctx: ctx, - fixedPricePromotionId: fixedPricePromotionId, +func (a *EventsApiService) GETLinkIdEvents(ctx context.Context, linkId interface{}) EventsApiGETLinkIdEventsRequest { + return EventsApiGETLinkIdEventsRequest{ + ApiService: a, + ctx: ctx, + linkId: linkId, } } // Execute executes the request -func (a *EventsApiService) GETFixedPricePromotionIdEventsExecute(r EventsApiGETFixedPricePromotionIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETLinkIdEventsExecute(r EventsApiGETLinkIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETFixedPricePromotionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETLinkIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + localVarPath := localBasePath + "/links/{linkId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"linkId"+"}", url.PathEscape(parameterValueToString(r.linkId, "linkId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1239,48 +2527,48 @@ func (a *EventsApiService) GETFixedPricePromotionIdEventsExecute(r EventsApiGETF return localVarHTTPResponse, nil } -type EventsApiGETFreeGiftPromotionIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - freeGiftPromotionId interface{} +type EventsApiGETOrderCopyIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + orderCopyId interface{} } -func (r EventsApiGETFreeGiftPromotionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFreeGiftPromotionIdEventsExecute(r) +func (r EventsApiGETOrderCopyIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderCopyIdEventsExecute(r) } /* -GETFreeGiftPromotionIdEvents Retrieve the events associated to the free gift promotion +GETOrderCopyIdEvents Retrieve the events associated to the order copy -Retrieve the events associated to the free gift promotion +Retrieve the events associated to the order copy @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param freeGiftPromotionId The resource's id - @return EventsApiGETFreeGiftPromotionIdEventsRequest + @param orderCopyId The resource's id + @return EventsApiGETOrderCopyIdEventsRequest */ -func (a *EventsApiService) GETFreeGiftPromotionIdEvents(ctx context.Context, freeGiftPromotionId interface{}) EventsApiGETFreeGiftPromotionIdEventsRequest { - return EventsApiGETFreeGiftPromotionIdEventsRequest{ - ApiService: a, - ctx: ctx, - freeGiftPromotionId: freeGiftPromotionId, +func (a *EventsApiService) GETOrderCopyIdEvents(ctx context.Context, orderCopyId interface{}) EventsApiGETOrderCopyIdEventsRequest { + return EventsApiGETOrderCopyIdEventsRequest{ + ApiService: a, + ctx: ctx, + orderCopyId: orderCopyId, } } // Execute executes the request -func (a *EventsApiService) GETFreeGiftPromotionIdEventsExecute(r EventsApiGETFreeGiftPromotionIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETOrderCopyIdEventsExecute(r EventsApiGETOrderCopyIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETFreeGiftPromotionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETOrderCopyIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + localVarPath := localBasePath + "/order_copies/{orderCopyId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"orderCopyId"+"}", url.PathEscape(parameterValueToString(r.orderCopyId, "orderCopyId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1331,48 +2619,48 @@ func (a *EventsApiService) GETFreeGiftPromotionIdEventsExecute(r EventsApiGETFre return localVarHTTPResponse, nil } -type EventsApiGETFreeShippingPromotionIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - freeShippingPromotionId interface{} +type EventsApiGETOrderFactoryIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + orderFactoryId interface{} } -func (r EventsApiGETFreeShippingPromotionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFreeShippingPromotionIdEventsExecute(r) +func (r EventsApiGETOrderFactoryIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderFactoryIdEventsExecute(r) } /* -GETFreeShippingPromotionIdEvents Retrieve the events associated to the free shipping promotion +GETOrderFactoryIdEvents Retrieve the events associated to the order factory -Retrieve the events associated to the free shipping promotion +Retrieve the events associated to the order factory @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param freeShippingPromotionId The resource's id - @return EventsApiGETFreeShippingPromotionIdEventsRequest + @param orderFactoryId The resource's id + @return EventsApiGETOrderFactoryIdEventsRequest */ -func (a *EventsApiService) GETFreeShippingPromotionIdEvents(ctx context.Context, freeShippingPromotionId interface{}) EventsApiGETFreeShippingPromotionIdEventsRequest { - return EventsApiGETFreeShippingPromotionIdEventsRequest{ - ApiService: a, - ctx: ctx, - freeShippingPromotionId: freeShippingPromotionId, +func (a *EventsApiService) GETOrderFactoryIdEvents(ctx context.Context, orderFactoryId interface{}) EventsApiGETOrderFactoryIdEventsRequest { + return EventsApiGETOrderFactoryIdEventsRequest{ + ApiService: a, + ctx: ctx, + orderFactoryId: orderFactoryId, } } // Execute executes the request -func (a *EventsApiService) GETFreeShippingPromotionIdEventsExecute(r EventsApiGETFreeShippingPromotionIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETOrderFactoryIdEventsExecute(r EventsApiGETOrderFactoryIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETFreeShippingPromotionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETOrderFactoryIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + localVarPath := localBasePath + "/order_factories/{orderFactoryId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"orderFactoryId"+"}", url.PathEscape(parameterValueToString(r.orderFactoryId, "orderFactoryId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1423,48 +2711,48 @@ func (a *EventsApiService) GETFreeShippingPromotionIdEventsExecute(r EventsApiGE return localVarHTTPResponse, nil } -type EventsApiGETGiftCardIdEventsRequest struct { +type EventsApiGETOrderIdEventsRequest struct { ctx context.Context ApiService *EventsApiService - giftCardId interface{} + orderId interface{} } -func (r EventsApiGETGiftCardIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETGiftCardIdEventsExecute(r) +func (r EventsApiGETOrderIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdEventsExecute(r) } /* -GETGiftCardIdEvents Retrieve the events associated to the gift card +GETOrderIdEvents Retrieve the events associated to the order -Retrieve the events associated to the gift card +Retrieve the events associated to the order @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param giftCardId The resource's id - @return EventsApiGETGiftCardIdEventsRequest + @param orderId The resource's id + @return EventsApiGETOrderIdEventsRequest */ -func (a *EventsApiService) GETGiftCardIdEvents(ctx context.Context, giftCardId interface{}) EventsApiGETGiftCardIdEventsRequest { - return EventsApiGETGiftCardIdEventsRequest{ +func (a *EventsApiService) GETOrderIdEvents(ctx context.Context, orderId interface{}) EventsApiGETOrderIdEventsRequest { + return EventsApiGETOrderIdEventsRequest{ ApiService: a, ctx: ctx, - giftCardId: giftCardId, + orderId: orderId, } } // Execute executes the request -func (a *EventsApiService) GETGiftCardIdEventsExecute(r EventsApiGETGiftCardIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETOrderIdEventsExecute(r EventsApiGETOrderIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETGiftCardIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETOrderIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/gift_cards/{giftCardId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"giftCardId"+"}", url.PathEscape(parameterValueToString(r.giftCardId, "giftCardId")), -1) + localVarPath := localBasePath + "/orders/{orderId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1515,48 +2803,48 @@ func (a *EventsApiService) GETGiftCardIdEventsExecute(r EventsApiGETGiftCardIdEv return localVarHTTPResponse, nil } -type EventsApiGETImportIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - importId interface{} +type EventsApiGETOrderSubscriptionIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + orderSubscriptionId interface{} } -func (r EventsApiGETImportIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETImportIdEventsExecute(r) +func (r EventsApiGETOrderSubscriptionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderSubscriptionIdEventsExecute(r) } /* -GETImportIdEvents Retrieve the events associated to the import +GETOrderSubscriptionIdEvents Retrieve the events associated to the order subscription -Retrieve the events associated to the import +Retrieve the events associated to the order subscription @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param importId The resource's id - @return EventsApiGETImportIdEventsRequest + @param orderSubscriptionId The resource's id + @return EventsApiGETOrderSubscriptionIdEventsRequest */ -func (a *EventsApiService) GETImportIdEvents(ctx context.Context, importId interface{}) EventsApiGETImportIdEventsRequest { - return EventsApiGETImportIdEventsRequest{ - ApiService: a, - ctx: ctx, - importId: importId, +func (a *EventsApiService) GETOrderSubscriptionIdEvents(ctx context.Context, orderSubscriptionId interface{}) EventsApiGETOrderSubscriptionIdEventsRequest { + return EventsApiGETOrderSubscriptionIdEventsRequest{ + ApiService: a, + ctx: ctx, + orderSubscriptionId: orderSubscriptionId, } } // Execute executes the request -func (a *EventsApiService) GETImportIdEventsExecute(r EventsApiGETImportIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETOrderSubscriptionIdEventsExecute(r EventsApiGETOrderSubscriptionIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETImportIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETOrderSubscriptionIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/imports/{importId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"importId"+"}", url.PathEscape(parameterValueToString(r.importId, "importId")), -1) + localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1607,48 +2895,48 @@ func (a *EventsApiService) GETImportIdEventsExecute(r EventsApiGETImportIdEvents return localVarHTTPResponse, nil } -type EventsApiGETInStockSubscriptionIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - inStockSubscriptionId interface{} +type EventsApiGETParcelIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + parcelId interface{} } -func (r EventsApiGETInStockSubscriptionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETInStockSubscriptionIdEventsExecute(r) +func (r EventsApiGETParcelIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETParcelIdEventsExecute(r) } /* -GETInStockSubscriptionIdEvents Retrieve the events associated to the in stock subscription +GETParcelIdEvents Retrieve the events associated to the parcel -Retrieve the events associated to the in stock subscription +Retrieve the events associated to the parcel @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param inStockSubscriptionId The resource's id - @return EventsApiGETInStockSubscriptionIdEventsRequest + @param parcelId The resource's id + @return EventsApiGETParcelIdEventsRequest */ -func (a *EventsApiService) GETInStockSubscriptionIdEvents(ctx context.Context, inStockSubscriptionId interface{}) EventsApiGETInStockSubscriptionIdEventsRequest { - return EventsApiGETInStockSubscriptionIdEventsRequest{ - ApiService: a, - ctx: ctx, - inStockSubscriptionId: inStockSubscriptionId, +func (a *EventsApiService) GETParcelIdEvents(ctx context.Context, parcelId interface{}) EventsApiGETParcelIdEventsRequest { + return EventsApiGETParcelIdEventsRequest{ + ApiService: a, + ctx: ctx, + parcelId: parcelId, } } // Execute executes the request -func (a *EventsApiService) GETInStockSubscriptionIdEventsExecute(r EventsApiGETInStockSubscriptionIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETParcelIdEventsExecute(r EventsApiGETParcelIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETInStockSubscriptionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETParcelIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/in_stock_subscriptions/{inStockSubscriptionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"inStockSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.inStockSubscriptionId, "inStockSubscriptionId")), -1) + localVarPath := localBasePath + "/parcels/{parcelId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"parcelId"+"}", url.PathEscape(parameterValueToString(r.parcelId, "parcelId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1699,48 +2987,48 @@ func (a *EventsApiService) GETInStockSubscriptionIdEventsExecute(r EventsApiGETI return localVarHTTPResponse, nil } -type EventsApiGETOrderCopyIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - orderCopyId interface{} +type EventsApiGETPercentageDiscountPromotionIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + percentageDiscountPromotionId interface{} } -func (r EventsApiGETOrderCopyIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderCopyIdEventsExecute(r) +func (r EventsApiGETPercentageDiscountPromotionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPercentageDiscountPromotionIdEventsExecute(r) } /* -GETOrderCopyIdEvents Retrieve the events associated to the order copy +GETPercentageDiscountPromotionIdEvents Retrieve the events associated to the percentage discount promotion -Retrieve the events associated to the order copy +Retrieve the events associated to the percentage discount promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderCopyId The resource's id - @return EventsApiGETOrderCopyIdEventsRequest + @param percentageDiscountPromotionId The resource's id + @return EventsApiGETPercentageDiscountPromotionIdEventsRequest */ -func (a *EventsApiService) GETOrderCopyIdEvents(ctx context.Context, orderCopyId interface{}) EventsApiGETOrderCopyIdEventsRequest { - return EventsApiGETOrderCopyIdEventsRequest{ - ApiService: a, - ctx: ctx, - orderCopyId: orderCopyId, +func (a *EventsApiService) GETPercentageDiscountPromotionIdEvents(ctx context.Context, percentageDiscountPromotionId interface{}) EventsApiGETPercentageDiscountPromotionIdEventsRequest { + return EventsApiGETPercentageDiscountPromotionIdEventsRequest{ + ApiService: a, + ctx: ctx, + percentageDiscountPromotionId: percentageDiscountPromotionId, } } // Execute executes the request -func (a *EventsApiService) GETOrderCopyIdEventsExecute(r EventsApiGETOrderCopyIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETPercentageDiscountPromotionIdEventsExecute(r EventsApiGETPercentageDiscountPromotionIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETOrderCopyIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETPercentageDiscountPromotionIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_copies/{orderCopyId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"orderCopyId"+"}", url.PathEscape(parameterValueToString(r.orderCopyId, "orderCopyId")), -1) + localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1791,48 +3079,48 @@ func (a *EventsApiService) GETOrderCopyIdEventsExecute(r EventsApiGETOrderCopyId return localVarHTTPResponse, nil } -type EventsApiGETOrderFactoryIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - orderFactoryId interface{} +type EventsApiGETPriceFrequencyTierIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + priceFrequencyTierId interface{} } -func (r EventsApiGETOrderFactoryIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderFactoryIdEventsExecute(r) +func (r EventsApiGETPriceFrequencyTierIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceFrequencyTierIdEventsExecute(r) } /* -GETOrderFactoryIdEvents Retrieve the events associated to the order factory +GETPriceFrequencyTierIdEvents Retrieve the events associated to the price frequency tier -Retrieve the events associated to the order factory +Retrieve the events associated to the price frequency tier @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderFactoryId The resource's id - @return EventsApiGETOrderFactoryIdEventsRequest + @param priceFrequencyTierId The resource's id + @return EventsApiGETPriceFrequencyTierIdEventsRequest */ -func (a *EventsApiService) GETOrderFactoryIdEvents(ctx context.Context, orderFactoryId interface{}) EventsApiGETOrderFactoryIdEventsRequest { - return EventsApiGETOrderFactoryIdEventsRequest{ - ApiService: a, - ctx: ctx, - orderFactoryId: orderFactoryId, +func (a *EventsApiService) GETPriceFrequencyTierIdEvents(ctx context.Context, priceFrequencyTierId interface{}) EventsApiGETPriceFrequencyTierIdEventsRequest { + return EventsApiGETPriceFrequencyTierIdEventsRequest{ + ApiService: a, + ctx: ctx, + priceFrequencyTierId: priceFrequencyTierId, } } // Execute executes the request -func (a *EventsApiService) GETOrderFactoryIdEventsExecute(r EventsApiGETOrderFactoryIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETPriceFrequencyTierIdEventsExecute(r EventsApiGETPriceFrequencyTierIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETOrderFactoryIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETPriceFrequencyTierIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_factories/{orderFactoryId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"orderFactoryId"+"}", url.PathEscape(parameterValueToString(r.orderFactoryId, "orderFactoryId")), -1) + localVarPath := localBasePath + "/price_frequency_tiers/{priceFrequencyTierId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"priceFrequencyTierId"+"}", url.PathEscape(parameterValueToString(r.priceFrequencyTierId, "priceFrequencyTierId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1883,48 +3171,48 @@ func (a *EventsApiService) GETOrderFactoryIdEventsExecute(r EventsApiGETOrderFac return localVarHTTPResponse, nil } -type EventsApiGETOrderIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - orderId interface{} +type EventsApiGETPriceListSchedulerIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + priceListSchedulerId interface{} } -func (r EventsApiGETOrderIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdEventsExecute(r) +func (r EventsApiGETPriceListSchedulerIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceListSchedulerIdEventsExecute(r) } /* -GETOrderIdEvents Retrieve the events associated to the order +GETPriceListSchedulerIdEvents Retrieve the events associated to the price list scheduler -Retrieve the events associated to the order +Retrieve the events associated to the price list scheduler @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return EventsApiGETOrderIdEventsRequest + @param priceListSchedulerId The resource's id + @return EventsApiGETPriceListSchedulerIdEventsRequest */ -func (a *EventsApiService) GETOrderIdEvents(ctx context.Context, orderId interface{}) EventsApiGETOrderIdEventsRequest { - return EventsApiGETOrderIdEventsRequest{ - ApiService: a, - ctx: ctx, - orderId: orderId, +func (a *EventsApiService) GETPriceListSchedulerIdEvents(ctx context.Context, priceListSchedulerId interface{}) EventsApiGETPriceListSchedulerIdEventsRequest { + return EventsApiGETPriceListSchedulerIdEventsRequest{ + ApiService: a, + ctx: ctx, + priceListSchedulerId: priceListSchedulerId, } } // Execute executes the request -func (a *EventsApiService) GETOrderIdEventsExecute(r EventsApiGETOrderIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETPriceListSchedulerIdEventsExecute(r EventsApiGETPriceListSchedulerIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETOrderIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETPriceListSchedulerIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/price_list_schedulers/{priceListSchedulerId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"priceListSchedulerId"+"}", url.PathEscape(parameterValueToString(r.priceListSchedulerId, "priceListSchedulerId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1975,48 +3263,48 @@ func (a *EventsApiService) GETOrderIdEventsExecute(r EventsApiGETOrderIdEventsRe return localVarHTTPResponse, nil } -type EventsApiGETOrderSubscriptionIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - orderSubscriptionId interface{} +type EventsApiGETPriceVolumeTierIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + priceVolumeTierId interface{} } -func (r EventsApiGETOrderSubscriptionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderSubscriptionIdEventsExecute(r) +func (r EventsApiGETPriceVolumeTierIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceVolumeTierIdEventsExecute(r) } /* -GETOrderSubscriptionIdEvents Retrieve the events associated to the order subscription +GETPriceVolumeTierIdEvents Retrieve the events associated to the price volume tier -Retrieve the events associated to the order subscription +Retrieve the events associated to the price volume tier @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderSubscriptionId The resource's id - @return EventsApiGETOrderSubscriptionIdEventsRequest + @param priceVolumeTierId The resource's id + @return EventsApiGETPriceVolumeTierIdEventsRequest */ -func (a *EventsApiService) GETOrderSubscriptionIdEvents(ctx context.Context, orderSubscriptionId interface{}) EventsApiGETOrderSubscriptionIdEventsRequest { - return EventsApiGETOrderSubscriptionIdEventsRequest{ - ApiService: a, - ctx: ctx, - orderSubscriptionId: orderSubscriptionId, +func (a *EventsApiService) GETPriceVolumeTierIdEvents(ctx context.Context, priceVolumeTierId interface{}) EventsApiGETPriceVolumeTierIdEventsRequest { + return EventsApiGETPriceVolumeTierIdEventsRequest{ + ApiService: a, + ctx: ctx, + priceVolumeTierId: priceVolumeTierId, } } // Execute executes the request -func (a *EventsApiService) GETOrderSubscriptionIdEventsExecute(r EventsApiGETOrderSubscriptionIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETPriceVolumeTierIdEventsExecute(r EventsApiGETPriceVolumeTierIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETOrderSubscriptionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETPriceVolumeTierIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + localVarPath := localBasePath + "/price_volume_tiers/{priceVolumeTierId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"priceVolumeTierId"+"}", url.PathEscape(parameterValueToString(r.priceVolumeTierId, "priceVolumeTierId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2067,48 +3355,48 @@ func (a *EventsApiService) GETOrderSubscriptionIdEventsExecute(r EventsApiGETOrd return localVarHTTPResponse, nil } -type EventsApiGETParcelIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - parcelId interface{} +type EventsApiGETPromotionIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + promotionId interface{} } -func (r EventsApiGETParcelIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETParcelIdEventsExecute(r) +func (r EventsApiGETPromotionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionIdEventsExecute(r) } /* -GETParcelIdEvents Retrieve the events associated to the parcel +GETPromotionIdEvents Retrieve the events associated to the promotion -Retrieve the events associated to the parcel +Retrieve the events associated to the promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param parcelId The resource's id - @return EventsApiGETParcelIdEventsRequest + @param promotionId The resource's id + @return EventsApiGETPromotionIdEventsRequest */ -func (a *EventsApiService) GETParcelIdEvents(ctx context.Context, parcelId interface{}) EventsApiGETParcelIdEventsRequest { - return EventsApiGETParcelIdEventsRequest{ - ApiService: a, - ctx: ctx, - parcelId: parcelId, +func (a *EventsApiService) GETPromotionIdEvents(ctx context.Context, promotionId interface{}) EventsApiGETPromotionIdEventsRequest { + return EventsApiGETPromotionIdEventsRequest{ + ApiService: a, + ctx: ctx, + promotionId: promotionId, } } // Execute executes the request -func (a *EventsApiService) GETParcelIdEventsExecute(r EventsApiGETParcelIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETPromotionIdEventsExecute(r EventsApiGETPromotionIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETParcelIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETPromotionIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/parcels/{parcelId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"parcelId"+"}", url.PathEscape(parameterValueToString(r.parcelId, "parcelId")), -1) + localVarPath := localBasePath + "/promotions/{promotionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2159,48 +3447,48 @@ func (a *EventsApiService) GETParcelIdEventsExecute(r EventsApiGETParcelIdEvents return localVarHTTPResponse, nil } -type EventsApiGETPercentageDiscountPromotionIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - percentageDiscountPromotionId interface{} +type EventsApiGETRecurringOrderCopyIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + recurringOrderCopyId interface{} } -func (r EventsApiGETPercentageDiscountPromotionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPercentageDiscountPromotionIdEventsExecute(r) +func (r EventsApiGETRecurringOrderCopyIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETRecurringOrderCopyIdEventsExecute(r) } /* -GETPercentageDiscountPromotionIdEvents Retrieve the events associated to the percentage discount promotion +GETRecurringOrderCopyIdEvents Retrieve the events associated to the recurring order copy -Retrieve the events associated to the percentage discount promotion +Retrieve the events associated to the recurring order copy @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param percentageDiscountPromotionId The resource's id - @return EventsApiGETPercentageDiscountPromotionIdEventsRequest + @param recurringOrderCopyId The resource's id + @return EventsApiGETRecurringOrderCopyIdEventsRequest */ -func (a *EventsApiService) GETPercentageDiscountPromotionIdEvents(ctx context.Context, percentageDiscountPromotionId interface{}) EventsApiGETPercentageDiscountPromotionIdEventsRequest { - return EventsApiGETPercentageDiscountPromotionIdEventsRequest{ - ApiService: a, - ctx: ctx, - percentageDiscountPromotionId: percentageDiscountPromotionId, +func (a *EventsApiService) GETRecurringOrderCopyIdEvents(ctx context.Context, recurringOrderCopyId interface{}) EventsApiGETRecurringOrderCopyIdEventsRequest { + return EventsApiGETRecurringOrderCopyIdEventsRequest{ + ApiService: a, + ctx: ctx, + recurringOrderCopyId: recurringOrderCopyId, } } // Execute executes the request -func (a *EventsApiService) GETPercentageDiscountPromotionIdEventsExecute(r EventsApiGETPercentageDiscountPromotionIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETRecurringOrderCopyIdEventsExecute(r EventsApiGETRecurringOrderCopyIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETPercentageDiscountPromotionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETRecurringOrderCopyIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + localVarPath := localBasePath + "/recurring_order_copies/{recurringOrderCopyId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"recurringOrderCopyId"+"}", url.PathEscape(parameterValueToString(r.recurringOrderCopyId, "recurringOrderCopyId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2251,48 +3539,48 @@ func (a *EventsApiService) GETPercentageDiscountPromotionIdEventsExecute(r Event return localVarHTTPResponse, nil } -type EventsApiGETPriceFrequencyTierIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - priceFrequencyTierId interface{} +type EventsApiGETRefundIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + refundId interface{} } -func (r EventsApiGETPriceFrequencyTierIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPriceFrequencyTierIdEventsExecute(r) +func (r EventsApiGETRefundIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETRefundIdEventsExecute(r) } /* -GETPriceFrequencyTierIdEvents Retrieve the events associated to the price frequency tier +GETRefundIdEvents Retrieve the events associated to the refund -Retrieve the events associated to the price frequency tier +Retrieve the events associated to the refund @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param priceFrequencyTierId The resource's id - @return EventsApiGETPriceFrequencyTierIdEventsRequest + @param refundId The resource's id + @return EventsApiGETRefundIdEventsRequest */ -func (a *EventsApiService) GETPriceFrequencyTierIdEvents(ctx context.Context, priceFrequencyTierId interface{}) EventsApiGETPriceFrequencyTierIdEventsRequest { - return EventsApiGETPriceFrequencyTierIdEventsRequest{ - ApiService: a, - ctx: ctx, - priceFrequencyTierId: priceFrequencyTierId, +func (a *EventsApiService) GETRefundIdEvents(ctx context.Context, refundId interface{}) EventsApiGETRefundIdEventsRequest { + return EventsApiGETRefundIdEventsRequest{ + ApiService: a, + ctx: ctx, + refundId: refundId, } } // Execute executes the request -func (a *EventsApiService) GETPriceFrequencyTierIdEventsExecute(r EventsApiGETPriceFrequencyTierIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETRefundIdEventsExecute(r EventsApiGETRefundIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETPriceFrequencyTierIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETRefundIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/price_frequency_tiers/{priceFrequencyTierId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"priceFrequencyTierId"+"}", url.PathEscape(parameterValueToString(r.priceFrequencyTierId, "priceFrequencyTierId")), -1) + localVarPath := localBasePath + "/refunds/{refundId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"refundId"+"}", url.PathEscape(parameterValueToString(r.refundId, "refundId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2343,48 +3631,48 @@ func (a *EventsApiService) GETPriceFrequencyTierIdEventsExecute(r EventsApiGETPr return localVarHTTPResponse, nil } -type EventsApiGETPriceVolumeTierIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - priceVolumeTierId interface{} +type EventsApiGETReturnIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + returnId interface{} } -func (r EventsApiGETPriceVolumeTierIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPriceVolumeTierIdEventsExecute(r) +func (r EventsApiGETReturnIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnIdEventsExecute(r) } /* -GETPriceVolumeTierIdEvents Retrieve the events associated to the price volume tier +GETReturnIdEvents Retrieve the events associated to the return -Retrieve the events associated to the price volume tier +Retrieve the events associated to the return - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param priceVolumeTierId The resource's id - @return EventsApiGETPriceVolumeTierIdEventsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param returnId The resource's id + @return EventsApiGETReturnIdEventsRequest */ -func (a *EventsApiService) GETPriceVolumeTierIdEvents(ctx context.Context, priceVolumeTierId interface{}) EventsApiGETPriceVolumeTierIdEventsRequest { - return EventsApiGETPriceVolumeTierIdEventsRequest{ - ApiService: a, - ctx: ctx, - priceVolumeTierId: priceVolumeTierId, +func (a *EventsApiService) GETReturnIdEvents(ctx context.Context, returnId interface{}) EventsApiGETReturnIdEventsRequest { + return EventsApiGETReturnIdEventsRequest{ + ApiService: a, + ctx: ctx, + returnId: returnId, } } // Execute executes the request -func (a *EventsApiService) GETPriceVolumeTierIdEventsExecute(r EventsApiGETPriceVolumeTierIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETReturnIdEventsExecute(r EventsApiGETReturnIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETPriceVolumeTierIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETReturnIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/price_volume_tiers/{priceVolumeTierId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"priceVolumeTierId"+"}", url.PathEscape(parameterValueToString(r.priceVolumeTierId, "priceVolumeTierId")), -1) + localVarPath := localBasePath + "/returns/{returnId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2435,48 +3723,48 @@ func (a *EventsApiService) GETPriceVolumeTierIdEventsExecute(r EventsApiGETPrice return localVarHTTPResponse, nil } -type EventsApiGETPromotionIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - promotionId interface{} +type EventsApiGETShipmentIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + shipmentId interface{} } -func (r EventsApiGETPromotionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPromotionIdEventsExecute(r) +func (r EventsApiGETShipmentIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdEventsExecute(r) } /* -GETPromotionIdEvents Retrieve the events associated to the promotion +GETShipmentIdEvents Retrieve the events associated to the shipment -Retrieve the events associated to the promotion +Retrieve the events associated to the shipment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param promotionId The resource's id - @return EventsApiGETPromotionIdEventsRequest + @param shipmentId The resource's id + @return EventsApiGETShipmentIdEventsRequest */ -func (a *EventsApiService) GETPromotionIdEvents(ctx context.Context, promotionId interface{}) EventsApiGETPromotionIdEventsRequest { - return EventsApiGETPromotionIdEventsRequest{ - ApiService: a, - ctx: ctx, - promotionId: promotionId, +func (a *EventsApiService) GETShipmentIdEvents(ctx context.Context, shipmentId interface{}) EventsApiGETShipmentIdEventsRequest { + return EventsApiGETShipmentIdEventsRequest{ + ApiService: a, + ctx: ctx, + shipmentId: shipmentId, } } // Execute executes the request -func (a *EventsApiService) GETPromotionIdEventsExecute(r EventsApiGETPromotionIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETShipmentIdEventsExecute(r EventsApiGETShipmentIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETPromotionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETShipmentIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/promotions/{promotionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) + localVarPath := localBasePath + "/shipments/{shipmentId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2527,48 +3815,48 @@ func (a *EventsApiService) GETPromotionIdEventsExecute(r EventsApiGETPromotionId return localVarHTTPResponse, nil } -type EventsApiGETRecurringOrderCopyIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - recurringOrderCopyId interface{} +type EventsApiGETSkuIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + skuId interface{} } -func (r EventsApiGETRecurringOrderCopyIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETRecurringOrderCopyIdEventsExecute(r) +func (r EventsApiGETSkuIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdEventsExecute(r) } /* -GETRecurringOrderCopyIdEvents Retrieve the events associated to the recurring order copy +GETSkuIdEvents Retrieve the events associated to the SKU -Retrieve the events associated to the recurring order copy +Retrieve the events associated to the SKU @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param recurringOrderCopyId The resource's id - @return EventsApiGETRecurringOrderCopyIdEventsRequest + @param skuId The resource's id + @return EventsApiGETSkuIdEventsRequest */ -func (a *EventsApiService) GETRecurringOrderCopyIdEvents(ctx context.Context, recurringOrderCopyId interface{}) EventsApiGETRecurringOrderCopyIdEventsRequest { - return EventsApiGETRecurringOrderCopyIdEventsRequest{ - ApiService: a, - ctx: ctx, - recurringOrderCopyId: recurringOrderCopyId, +func (a *EventsApiService) GETSkuIdEvents(ctx context.Context, skuId interface{}) EventsApiGETSkuIdEventsRequest { + return EventsApiGETSkuIdEventsRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, } } // Execute executes the request -func (a *EventsApiService) GETRecurringOrderCopyIdEventsExecute(r EventsApiGETRecurringOrderCopyIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETSkuIdEventsExecute(r EventsApiGETSkuIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETRecurringOrderCopyIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETSkuIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/recurring_order_copies/{recurringOrderCopyId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"recurringOrderCopyId"+"}", url.PathEscape(parameterValueToString(r.recurringOrderCopyId, "recurringOrderCopyId")), -1) + localVarPath := localBasePath + "/skus/{skuId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2619,48 +3907,48 @@ func (a *EventsApiService) GETRecurringOrderCopyIdEventsExecute(r EventsApiGETRe return localVarHTTPResponse, nil } -type EventsApiGETRefundIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - refundId interface{} +type EventsApiGETSkuOptionIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + skuOptionId interface{} } -func (r EventsApiGETRefundIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETRefundIdEventsExecute(r) +func (r EventsApiGETSkuOptionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuOptionIdEventsExecute(r) } /* -GETRefundIdEvents Retrieve the events associated to the refund +GETSkuOptionIdEvents Retrieve the events associated to the SKU option -Retrieve the events associated to the refund +Retrieve the events associated to the SKU option @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param refundId The resource's id - @return EventsApiGETRefundIdEventsRequest + @param skuOptionId The resource's id + @return EventsApiGETSkuOptionIdEventsRequest */ -func (a *EventsApiService) GETRefundIdEvents(ctx context.Context, refundId interface{}) EventsApiGETRefundIdEventsRequest { - return EventsApiGETRefundIdEventsRequest{ - ApiService: a, - ctx: ctx, - refundId: refundId, +func (a *EventsApiService) GETSkuOptionIdEvents(ctx context.Context, skuOptionId interface{}) EventsApiGETSkuOptionIdEventsRequest { + return EventsApiGETSkuOptionIdEventsRequest{ + ApiService: a, + ctx: ctx, + skuOptionId: skuOptionId, } } // Execute executes the request -func (a *EventsApiService) GETRefundIdEventsExecute(r EventsApiGETRefundIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETSkuOptionIdEventsExecute(r EventsApiGETSkuOptionIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETRefundIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETSkuOptionIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/refunds/{refundId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"refundId"+"}", url.PathEscape(parameterValueToString(r.refundId, "refundId")), -1) + localVarPath := localBasePath + "/sku_options/{skuOptionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"skuOptionId"+"}", url.PathEscape(parameterValueToString(r.skuOptionId, "skuOptionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2711,48 +3999,48 @@ func (a *EventsApiService) GETRefundIdEventsExecute(r EventsApiGETRefundIdEvents return localVarHTTPResponse, nil } -type EventsApiGETReturnIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - returnId interface{} +type EventsApiGETStockTransferIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + stockTransferId interface{} } -func (r EventsApiGETReturnIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETReturnIdEventsExecute(r) +func (r EventsApiGETStockTransferIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockTransferIdEventsExecute(r) } /* -GETReturnIdEvents Retrieve the events associated to the return +GETStockTransferIdEvents Retrieve the events associated to the stock transfer -Retrieve the events associated to the return +Retrieve the events associated to the stock transfer @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param returnId The resource's id - @return EventsApiGETReturnIdEventsRequest + @param stockTransferId The resource's id + @return EventsApiGETStockTransferIdEventsRequest */ -func (a *EventsApiService) GETReturnIdEvents(ctx context.Context, returnId interface{}) EventsApiGETReturnIdEventsRequest { - return EventsApiGETReturnIdEventsRequest{ - ApiService: a, - ctx: ctx, - returnId: returnId, +func (a *EventsApiService) GETStockTransferIdEvents(ctx context.Context, stockTransferId interface{}) EventsApiGETStockTransferIdEventsRequest { + return EventsApiGETStockTransferIdEventsRequest{ + ApiService: a, + ctx: ctx, + stockTransferId: stockTransferId, } } // Execute executes the request -func (a *EventsApiService) GETReturnIdEventsExecute(r EventsApiGETReturnIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETStockTransferIdEventsExecute(r EventsApiGETStockTransferIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETReturnIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETStockTransferIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/returns/{returnId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) + localVarPath := localBasePath + "/stock_transfers/{stockTransferId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"stockTransferId"+"}", url.PathEscape(parameterValueToString(r.stockTransferId, "stockTransferId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2803,48 +4091,48 @@ func (a *EventsApiService) GETReturnIdEventsExecute(r EventsApiGETReturnIdEvents return localVarHTTPResponse, nil } -type EventsApiGETShipmentIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - shipmentId interface{} +type EventsApiGETTransactionIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + transactionId interface{} } -func (r EventsApiGETShipmentIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShipmentIdEventsExecute(r) +func (r EventsApiGETTransactionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTransactionIdEventsExecute(r) } /* -GETShipmentIdEvents Retrieve the events associated to the shipment +GETTransactionIdEvents Retrieve the events associated to the transaction -Retrieve the events associated to the shipment +Retrieve the events associated to the transaction @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shipmentId The resource's id - @return EventsApiGETShipmentIdEventsRequest + @param transactionId The resource's id + @return EventsApiGETTransactionIdEventsRequest */ -func (a *EventsApiService) GETShipmentIdEvents(ctx context.Context, shipmentId interface{}) EventsApiGETShipmentIdEventsRequest { - return EventsApiGETShipmentIdEventsRequest{ - ApiService: a, - ctx: ctx, - shipmentId: shipmentId, +func (a *EventsApiService) GETTransactionIdEvents(ctx context.Context, transactionId interface{}) EventsApiGETTransactionIdEventsRequest { + return EventsApiGETTransactionIdEventsRequest{ + ApiService: a, + ctx: ctx, + transactionId: transactionId, } } // Execute executes the request -func (a *EventsApiService) GETShipmentIdEventsExecute(r EventsApiGETShipmentIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETTransactionIdEventsExecute(r EventsApiGETTransactionIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETShipmentIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETTransactionIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipments/{shipmentId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + localVarPath := localBasePath + "/transactions/{transactionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"transactionId"+"}", url.PathEscape(parameterValueToString(r.transactionId, "transactionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2895,48 +4183,48 @@ func (a *EventsApiService) GETShipmentIdEventsExecute(r EventsApiGETShipmentIdEv return localVarHTTPResponse, nil } -type EventsApiGETStockTransferIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - stockTransferId interface{} +type EventsApiGETVoidIdEventsRequest struct { + ctx context.Context + ApiService *EventsApiService + voidId interface{} } -func (r EventsApiGETStockTransferIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETStockTransferIdEventsExecute(r) +func (r EventsApiGETVoidIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETVoidIdEventsExecute(r) } /* -GETStockTransferIdEvents Retrieve the events associated to the stock transfer +GETVoidIdEvents Retrieve the events associated to the void -Retrieve the events associated to the stock transfer +Retrieve the events associated to the void @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stockTransferId The resource's id - @return EventsApiGETStockTransferIdEventsRequest + @param voidId The resource's id + @return EventsApiGETVoidIdEventsRequest */ -func (a *EventsApiService) GETStockTransferIdEvents(ctx context.Context, stockTransferId interface{}) EventsApiGETStockTransferIdEventsRequest { - return EventsApiGETStockTransferIdEventsRequest{ - ApiService: a, - ctx: ctx, - stockTransferId: stockTransferId, +func (a *EventsApiService) GETVoidIdEvents(ctx context.Context, voidId interface{}) EventsApiGETVoidIdEventsRequest { + return EventsApiGETVoidIdEventsRequest{ + ApiService: a, + ctx: ctx, + voidId: voidId, } } // Execute executes the request -func (a *EventsApiService) GETStockTransferIdEventsExecute(r EventsApiGETStockTransferIdEventsRequest) (*http.Response, error) { +func (a *EventsApiService) GETVoidIdEventsExecute(r EventsApiGETVoidIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETStockTransferIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETVoidIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/stock_transfers/{stockTransferId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"stockTransferId"+"}", url.PathEscape(parameterValueToString(r.stockTransferId, "stockTransferId")), -1) + localVarPath := localBasePath + "/voids/{voidId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"voidId"+"}", url.PathEscape(parameterValueToString(r.voidId, "voidId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2987,55 +4275,67 @@ func (a *EventsApiService) GETStockTransferIdEventsExecute(r EventsApiGETStockTr return localVarHTTPResponse, nil } -type EventsApiGETVoidIdEventsRequest struct { - ctx context.Context - ApiService *EventsApiService - voidId interface{} +type EventsApiPATCHEventsEventIdRequest struct { + ctx context.Context + ApiService *EventsApiService + eventUpdate *EventUpdate + eventId interface{} } -func (r EventsApiGETVoidIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETVoidIdEventsExecute(r) +func (r EventsApiPATCHEventsEventIdRequest) EventUpdate(eventUpdate EventUpdate) EventsApiPATCHEventsEventIdRequest { + r.eventUpdate = &eventUpdate + return r +} + +func (r EventsApiPATCHEventsEventIdRequest) Execute() (*PATCHEventsEventId200Response, *http.Response, error) { + return r.ApiService.PATCHEventsEventIdExecute(r) } /* -GETVoidIdEvents Retrieve the events associated to the void +PATCHEventsEventId Update an event -Retrieve the events associated to the void +Update an event @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param voidId The resource's id - @return EventsApiGETVoidIdEventsRequest + @param eventId The resource's id + @return EventsApiPATCHEventsEventIdRequest */ -func (a *EventsApiService) GETVoidIdEvents(ctx context.Context, voidId interface{}) EventsApiGETVoidIdEventsRequest { - return EventsApiGETVoidIdEventsRequest{ +func (a *EventsApiService) PATCHEventsEventId(ctx context.Context, eventId interface{}) EventsApiPATCHEventsEventIdRequest { + return EventsApiPATCHEventsEventIdRequest{ ApiService: a, ctx: ctx, - voidId: voidId, + eventId: eventId, } } // Execute executes the request -func (a *EventsApiService) GETVoidIdEventsExecute(r EventsApiGETVoidIdEventsRequest) (*http.Response, error) { +// +// @return PATCHEventsEventId200Response +func (a *EventsApiService) PATCHEventsEventIdExecute(r EventsApiPATCHEventsEventIdRequest) (*PATCHEventsEventId200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PATCHEventsEventId200Response ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.GETVoidIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsApiService.PATCHEventsEventId") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/voids/{voidId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"voidId"+"}", url.PathEscape(parameterValueToString(r.voidId, "voidId")), -1) + localVarPath := localBasePath + "/events/{eventId}" + localVarPath = strings.Replace(localVarPath, "{"+"eventId"+"}", url.PathEscape(parameterValueToString(r.eventId, "eventId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.eventUpdate == nil { + return localVarReturnValue, nil, reportError("eventUpdate is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/vnd.api+json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -3044,28 +4344,30 @@ func (a *EventsApiService) GETVoidIdEventsExecute(r EventsApiGETVoidIdEventsRequ } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.eventUpdate req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return nil, err + return localVarReturnValue, nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -3073,8 +4375,17 @@ func (a *EventsApiService) GETVoidIdEventsExecute(r EventsApiGETVoidIdEventsRequ body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/api/api_exports.go b/api/api_exports.go index 77e03b89..2ab3c261 100644 --- a/api/api_exports.go +++ b/api/api_exports.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -319,6 +319,121 @@ func (a *ExportsApiService) GETExportsExportIdExecute(r ExportsApiGETExportsExpo return localVarReturnValue, localVarHTTPResponse, nil } +type ExportsApiPATCHExportsExportIdRequest struct { + ctx context.Context + ApiService *ExportsApiService + exportUpdate *ExportUpdate + exportId interface{} +} + +func (r ExportsApiPATCHExportsExportIdRequest) ExportUpdate(exportUpdate ExportUpdate) ExportsApiPATCHExportsExportIdRequest { + r.exportUpdate = &exportUpdate + return r +} + +func (r ExportsApiPATCHExportsExportIdRequest) Execute() (*PATCHExportsExportId200Response, *http.Response, error) { + return r.ApiService.PATCHExportsExportIdExecute(r) +} + +/* +PATCHExportsExportId Update an export + +Update an export + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param exportId The resource's id + @return ExportsApiPATCHExportsExportIdRequest +*/ +func (a *ExportsApiService) PATCHExportsExportId(ctx context.Context, exportId interface{}) ExportsApiPATCHExportsExportIdRequest { + return ExportsApiPATCHExportsExportIdRequest{ + ApiService: a, + ctx: ctx, + exportId: exportId, + } +} + +// Execute executes the request +// +// @return PATCHExportsExportId200Response +func (a *ExportsApiService) PATCHExportsExportIdExecute(r ExportsApiPATCHExportsExportIdRequest) (*PATCHExportsExportId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PATCHExportsExportId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExportsApiService.PATCHExportsExportId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/exports/{exportId}" + localVarPath = strings.Replace(localVarPath, "{"+"exportId"+"}", url.PathEscape(parameterValueToString(r.exportId, "exportId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.exportUpdate == nil { + return localVarReturnValue, nil, reportError("exportUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.exportUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ExportsApiPOSTExportsRequest struct { ctx context.Context ApiService *ExportsApiService diff --git a/api/api_external_gateways.go b/api/api_external_gateways.go index d94abb00..5e56f457 100644 --- a/api/api_external_gateways.go +++ b/api/api_external_gateways.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_external_payments.go b/api/api_external_payments.go index dece0e12..803c15cd 100644 --- a/api/api_external_payments.go +++ b/api/api_external_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_external_promotions.go b/api/api_external_promotions.go index d25840ca..f1eba178 100644 --- a/api/api_external_promotions.go +++ b/api/api_external_promotions.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_external_tax_calculators.go b/api/api_external_tax_calculators.go index 00ffed33..af3ccf72 100644 --- a/api/api_external_tax_calculators.go +++ b/api/api_external_tax_calculators.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_fixed_amount_promotions.go b/api/api_fixed_amount_promotions.go index 61f42abc..49f802c6 100644 --- a/api/api_fixed_amount_promotions.go +++ b/api/api_fixed_amount_promotions.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_fixed_price_promotions.go b/api/api_fixed_price_promotions.go index 73d166fe..dba9b51d 100644 --- a/api/api_fixed_price_promotions.go +++ b/api/api_fixed_price_promotions.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_flex_promotions.go b/api/api_flex_promotions.go new file mode 100644 index 00000000..6b949da9 --- /dev/null +++ b/api/api_flex_promotions.go @@ -0,0 +1,546 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// FlexPromotionsApiService FlexPromotionsApi service +type FlexPromotionsApiService service + +type FlexPromotionsApiDELETEFlexPromotionsFlexPromotionIdRequest struct { + ctx context.Context + ApiService *FlexPromotionsApiService + flexPromotionId interface{} +} + +func (r FlexPromotionsApiDELETEFlexPromotionsFlexPromotionIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DELETEFlexPromotionsFlexPromotionIdExecute(r) +} + +/* +DELETEFlexPromotionsFlexPromotionId Delete a flex promotion + +Delete a flex promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param flexPromotionId The resource's id + @return FlexPromotionsApiDELETEFlexPromotionsFlexPromotionIdRequest +*/ +func (a *FlexPromotionsApiService) DELETEFlexPromotionsFlexPromotionId(ctx context.Context, flexPromotionId interface{}) FlexPromotionsApiDELETEFlexPromotionsFlexPromotionIdRequest { + return FlexPromotionsApiDELETEFlexPromotionsFlexPromotionIdRequest{ + ApiService: a, + ctx: ctx, + flexPromotionId: flexPromotionId, + } +} + +// Execute executes the request +func (a *FlexPromotionsApiService) DELETEFlexPromotionsFlexPromotionIdExecute(r FlexPromotionsApiDELETEFlexPromotionsFlexPromotionIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FlexPromotionsApiService.DELETEFlexPromotionsFlexPromotionId") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/flex_promotions/{flexPromotionId}" + localVarPath = strings.Replace(localVarPath, "{"+"flexPromotionId"+"}", url.PathEscape(parameterValueToString(r.flexPromotionId, "flexPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type FlexPromotionsApiGETFlexPromotionsRequest struct { + ctx context.Context + ApiService *FlexPromotionsApiService +} + +func (r FlexPromotionsApiGETFlexPromotionsRequest) Execute() (*GETFlexPromotions200Response, *http.Response, error) { + return r.ApiService.GETFlexPromotionsExecute(r) +} + +/* +GETFlexPromotions List all flex promotions + +List all flex promotions + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return FlexPromotionsApiGETFlexPromotionsRequest +*/ +func (a *FlexPromotionsApiService) GETFlexPromotions(ctx context.Context) FlexPromotionsApiGETFlexPromotionsRequest { + return FlexPromotionsApiGETFlexPromotionsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GETFlexPromotions200Response +func (a *FlexPromotionsApiService) GETFlexPromotionsExecute(r FlexPromotionsApiGETFlexPromotionsRequest) (*GETFlexPromotions200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETFlexPromotions200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FlexPromotionsApiService.GETFlexPromotions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/flex_promotions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type FlexPromotionsApiGETFlexPromotionsFlexPromotionIdRequest struct { + ctx context.Context + ApiService *FlexPromotionsApiService + flexPromotionId interface{} +} + +func (r FlexPromotionsApiGETFlexPromotionsFlexPromotionIdRequest) Execute() (*GETFlexPromotionsFlexPromotionId200Response, *http.Response, error) { + return r.ApiService.GETFlexPromotionsFlexPromotionIdExecute(r) +} + +/* +GETFlexPromotionsFlexPromotionId Retrieve a flex promotion + +Retrieve a flex promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param flexPromotionId The resource's id + @return FlexPromotionsApiGETFlexPromotionsFlexPromotionIdRequest +*/ +func (a *FlexPromotionsApiService) GETFlexPromotionsFlexPromotionId(ctx context.Context, flexPromotionId interface{}) FlexPromotionsApiGETFlexPromotionsFlexPromotionIdRequest { + return FlexPromotionsApiGETFlexPromotionsFlexPromotionIdRequest{ + ApiService: a, + ctx: ctx, + flexPromotionId: flexPromotionId, + } +} + +// Execute executes the request +// +// @return GETFlexPromotionsFlexPromotionId200Response +func (a *FlexPromotionsApiService) GETFlexPromotionsFlexPromotionIdExecute(r FlexPromotionsApiGETFlexPromotionsFlexPromotionIdRequest) (*GETFlexPromotionsFlexPromotionId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETFlexPromotionsFlexPromotionId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FlexPromotionsApiService.GETFlexPromotionsFlexPromotionId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/flex_promotions/{flexPromotionId}" + localVarPath = strings.Replace(localVarPath, "{"+"flexPromotionId"+"}", url.PathEscape(parameterValueToString(r.flexPromotionId, "flexPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type FlexPromotionsApiPATCHFlexPromotionsFlexPromotionIdRequest struct { + ctx context.Context + ApiService *FlexPromotionsApiService + flexPromotionUpdate *FlexPromotionUpdate + flexPromotionId interface{} +} + +func (r FlexPromotionsApiPATCHFlexPromotionsFlexPromotionIdRequest) FlexPromotionUpdate(flexPromotionUpdate FlexPromotionUpdate) FlexPromotionsApiPATCHFlexPromotionsFlexPromotionIdRequest { + r.flexPromotionUpdate = &flexPromotionUpdate + return r +} + +func (r FlexPromotionsApiPATCHFlexPromotionsFlexPromotionIdRequest) Execute() (*PATCHFlexPromotionsFlexPromotionId200Response, *http.Response, error) { + return r.ApiService.PATCHFlexPromotionsFlexPromotionIdExecute(r) +} + +/* +PATCHFlexPromotionsFlexPromotionId Update a flex promotion + +Update a flex promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param flexPromotionId The resource's id + @return FlexPromotionsApiPATCHFlexPromotionsFlexPromotionIdRequest +*/ +func (a *FlexPromotionsApiService) PATCHFlexPromotionsFlexPromotionId(ctx context.Context, flexPromotionId interface{}) FlexPromotionsApiPATCHFlexPromotionsFlexPromotionIdRequest { + return FlexPromotionsApiPATCHFlexPromotionsFlexPromotionIdRequest{ + ApiService: a, + ctx: ctx, + flexPromotionId: flexPromotionId, + } +} + +// Execute executes the request +// +// @return PATCHFlexPromotionsFlexPromotionId200Response +func (a *FlexPromotionsApiService) PATCHFlexPromotionsFlexPromotionIdExecute(r FlexPromotionsApiPATCHFlexPromotionsFlexPromotionIdRequest) (*PATCHFlexPromotionsFlexPromotionId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PATCHFlexPromotionsFlexPromotionId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FlexPromotionsApiService.PATCHFlexPromotionsFlexPromotionId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/flex_promotions/{flexPromotionId}" + localVarPath = strings.Replace(localVarPath, "{"+"flexPromotionId"+"}", url.PathEscape(parameterValueToString(r.flexPromotionId, "flexPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.flexPromotionUpdate == nil { + return localVarReturnValue, nil, reportError("flexPromotionUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.flexPromotionUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type FlexPromotionsApiPOSTFlexPromotionsRequest struct { + ctx context.Context + ApiService *FlexPromotionsApiService + flexPromotionCreate *FlexPromotionCreate +} + +func (r FlexPromotionsApiPOSTFlexPromotionsRequest) FlexPromotionCreate(flexPromotionCreate FlexPromotionCreate) FlexPromotionsApiPOSTFlexPromotionsRequest { + r.flexPromotionCreate = &flexPromotionCreate + return r +} + +func (r FlexPromotionsApiPOSTFlexPromotionsRequest) Execute() (*POSTFlexPromotions201Response, *http.Response, error) { + return r.ApiService.POSTFlexPromotionsExecute(r) +} + +/* +POSTFlexPromotions Create a flex promotion + +Create a flex promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return FlexPromotionsApiPOSTFlexPromotionsRequest +*/ +func (a *FlexPromotionsApiService) POSTFlexPromotions(ctx context.Context) FlexPromotionsApiPOSTFlexPromotionsRequest { + return FlexPromotionsApiPOSTFlexPromotionsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return POSTFlexPromotions201Response +func (a *FlexPromotionsApiService) POSTFlexPromotionsExecute(r FlexPromotionsApiPOSTFlexPromotionsRequest) (*POSTFlexPromotions201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *POSTFlexPromotions201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "FlexPromotionsApiService.POSTFlexPromotions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/flex_promotions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.flexPromotionCreate == nil { + return localVarReturnValue, nil, reportError("flexPromotionCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.flexPromotionCreate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api/api_free_gift_promotions.go b/api/api_free_gift_promotions.go index 7229b41f..73dfe115 100644 --- a/api/api_free_gift_promotions.go +++ b/api/api_free_gift_promotions.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_free_shipping_promotions.go b/api/api_free_shipping_promotions.go index f3bc0a1f..00bf6687 100644 --- a/api/api_free_shipping_promotions.go +++ b/api/api_free_shipping_promotions.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_geocoders.go b/api/api_geocoders.go index 6679c57c..59d79e52 100644 --- a/api/api_geocoders.go +++ b/api/api_geocoders.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -318,3 +318,95 @@ func (a *GeocodersApiService) GETGeocodersGeocoderIdExecute(r GeocodersApiGETGeo return localVarReturnValue, localVarHTTPResponse, nil } + +type GeocodersApiGETMarketIdGeocoderRequest struct { + ctx context.Context + ApiService *GeocodersApiService + marketId interface{} +} + +func (r GeocodersApiGETMarketIdGeocoderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETMarketIdGeocoderExecute(r) +} + +/* +GETMarketIdGeocoder Retrieve the geocoder associated to the market + +Retrieve the geocoder associated to the market + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param marketId The resource's id + @return GeocodersApiGETMarketIdGeocoderRequest +*/ +func (a *GeocodersApiService) GETMarketIdGeocoder(ctx context.Context, marketId interface{}) GeocodersApiGETMarketIdGeocoderRequest { + return GeocodersApiGETMarketIdGeocoderRequest{ + ApiService: a, + ctx: ctx, + marketId: marketId, + } +} + +// Execute executes the request +func (a *GeocodersApiService) GETMarketIdGeocoderExecute(r GeocodersApiGETMarketIdGeocoderRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GeocodersApiService.GETMarketIdGeocoder") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/markets/{marketId}/geocoder" + localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/api/api_gift_card_recipients.go b/api/api_gift_card_recipients.go index 071682fd..d19f9580 100644 --- a/api/api_gift_card_recipients.go +++ b/api/api_gift_card_recipients.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_gift_cards.go b/api/api_gift_cards.go index 4e7f9e38..45195c65 100644 --- a/api/api_gift_cards.go +++ b/api/api_gift_cards.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_google_geocoders.go b/api/api_google_geocoders.go index e0b5fb39..ca63da3f 100644 --- a/api/api_google_geocoders.go +++ b/api/api_google_geocoders.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_has_many.go b/api/api_has_many.go index d6d70a55..3225c9ae 100644 --- a/api/api_has_many.go +++ b/api/api_has_many.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,48 +23,48 @@ import ( // HasManyApiService HasManyApi service type HasManyApiService service -type HasManyApiGETAdyenGatewayIdAdyenPaymentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - adyenGatewayId interface{} +type HasManyApiGETAddressIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + addressId interface{} } -func (r HasManyApiGETAdyenGatewayIdAdyenPaymentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETAdyenGatewayIdAdyenPaymentsExecute(r) +func (r HasManyApiGETAddressIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAddressIdEventsExecute(r) } /* -GETAdyenGatewayIdAdyenPayments Retrieve the adyen payments associated to the adyen gateway +GETAddressIdEvents Retrieve the events associated to the address -Retrieve the adyen payments associated to the adyen gateway +Retrieve the events associated to the address @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param adyenGatewayId The resource's id - @return HasManyApiGETAdyenGatewayIdAdyenPaymentsRequest + @param addressId The resource's id + @return HasManyApiGETAddressIdEventsRequest */ -func (a *HasManyApiService) GETAdyenGatewayIdAdyenPayments(ctx context.Context, adyenGatewayId interface{}) HasManyApiGETAdyenGatewayIdAdyenPaymentsRequest { - return HasManyApiGETAdyenGatewayIdAdyenPaymentsRequest{ - ApiService: a, - ctx: ctx, - adyenGatewayId: adyenGatewayId, +func (a *HasManyApiService) GETAddressIdEvents(ctx context.Context, addressId interface{}) HasManyApiGETAddressIdEventsRequest { + return HasManyApiGETAddressIdEventsRequest{ + ApiService: a, + ctx: ctx, + addressId: addressId, } } // Execute executes the request -func (a *HasManyApiService) GETAdyenGatewayIdAdyenPaymentsExecute(r HasManyApiGETAdyenGatewayIdAdyenPaymentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAddressIdEventsExecute(r HasManyApiGETAddressIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAdyenGatewayIdAdyenPayments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAddressIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/adyen_gateways/{adyenGatewayId}/adyen_payments" - localVarPath = strings.Replace(localVarPath, "{"+"adyenGatewayId"+"}", url.PathEscape(parameterValueToString(r.adyenGatewayId, "adyenGatewayId")), -1) + localVarPath := localBasePath + "/addresses/{addressId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"addressId"+"}", url.PathEscape(parameterValueToString(r.addressId, "addressId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -115,48 +115,48 @@ func (a *HasManyApiService) GETAdyenGatewayIdAdyenPaymentsExecute(r HasManyApiGE return localVarHTTPResponse, nil } -type HasManyApiGETAdyenGatewayIdPaymentMethodsRequest struct { - ctx context.Context - ApiService *HasManyApiService - adyenGatewayId interface{} +type HasManyApiGETAddressIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + addressId interface{} } -func (r HasManyApiGETAdyenGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETAdyenGatewayIdPaymentMethodsExecute(r) +func (r HasManyApiGETAddressIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAddressIdTagsExecute(r) } /* -GETAdyenGatewayIdPaymentMethods Retrieve the payment methods associated to the adyen gateway +GETAddressIdTags Retrieve the tags associated to the address -Retrieve the payment methods associated to the adyen gateway +Retrieve the tags associated to the address @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param adyenGatewayId The resource's id - @return HasManyApiGETAdyenGatewayIdPaymentMethodsRequest + @param addressId The resource's id + @return HasManyApiGETAddressIdTagsRequest */ -func (a *HasManyApiService) GETAdyenGatewayIdPaymentMethods(ctx context.Context, adyenGatewayId interface{}) HasManyApiGETAdyenGatewayIdPaymentMethodsRequest { - return HasManyApiGETAdyenGatewayIdPaymentMethodsRequest{ - ApiService: a, - ctx: ctx, - adyenGatewayId: adyenGatewayId, +func (a *HasManyApiService) GETAddressIdTags(ctx context.Context, addressId interface{}) HasManyApiGETAddressIdTagsRequest { + return HasManyApiGETAddressIdTagsRequest{ + ApiService: a, + ctx: ctx, + addressId: addressId, } } // Execute executes the request -func (a *HasManyApiService) GETAdyenGatewayIdPaymentMethodsExecute(r HasManyApiGETAdyenGatewayIdPaymentMethodsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAddressIdTagsExecute(r HasManyApiGETAddressIdTagsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAdyenGatewayIdPaymentMethods") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAddressIdTags") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/adyen_gateways/{adyenGatewayId}/payment_methods" - localVarPath = strings.Replace(localVarPath, "{"+"adyenGatewayId"+"}", url.PathEscape(parameterValueToString(r.adyenGatewayId, "adyenGatewayId")), -1) + localVarPath := localBasePath + "/addresses/{addressId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"addressId"+"}", url.PathEscape(parameterValueToString(r.addressId, "addressId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -207,48 +207,48 @@ func (a *HasManyApiService) GETAdyenGatewayIdPaymentMethodsExecute(r HasManyApiG return localVarHTTPResponse, nil } -type HasManyApiGETAuthorizationIdCapturesRequest struct { - ctx context.Context - ApiService *HasManyApiService - authorizationId interface{} +type HasManyApiGETAddressIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + addressId interface{} } -func (r HasManyApiGETAuthorizationIdCapturesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETAuthorizationIdCapturesExecute(r) +func (r HasManyApiGETAddressIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAddressIdVersionsExecute(r) } /* -GETAuthorizationIdCaptures Retrieve the captures associated to the authorization +GETAddressIdVersions Retrieve the versions associated to the address -Retrieve the captures associated to the authorization +Retrieve the versions associated to the address @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param authorizationId The resource's id - @return HasManyApiGETAuthorizationIdCapturesRequest + @param addressId The resource's id + @return HasManyApiGETAddressIdVersionsRequest */ -func (a *HasManyApiService) GETAuthorizationIdCaptures(ctx context.Context, authorizationId interface{}) HasManyApiGETAuthorizationIdCapturesRequest { - return HasManyApiGETAuthorizationIdCapturesRequest{ - ApiService: a, - ctx: ctx, - authorizationId: authorizationId, +func (a *HasManyApiService) GETAddressIdVersions(ctx context.Context, addressId interface{}) HasManyApiGETAddressIdVersionsRequest { + return HasManyApiGETAddressIdVersionsRequest{ + ApiService: a, + ctx: ctx, + addressId: addressId, } } // Execute executes the request -func (a *HasManyApiService) GETAuthorizationIdCapturesExecute(r HasManyApiGETAuthorizationIdCapturesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAddressIdVersionsExecute(r HasManyApiGETAddressIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAuthorizationIdCaptures") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAddressIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authorizations/{authorizationId}/captures" - localVarPath = strings.Replace(localVarPath, "{"+"authorizationId"+"}", url.PathEscape(parameterValueToString(r.authorizationId, "authorizationId")), -1) + localVarPath := localBasePath + "/addresses/{addressId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"addressId"+"}", url.PathEscape(parameterValueToString(r.addressId, "addressId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -299,48 +299,48 @@ func (a *HasManyApiService) GETAuthorizationIdCapturesExecute(r HasManyApiGETAut return localVarHTTPResponse, nil } -type HasManyApiGETAuthorizationIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - authorizationId interface{} +type HasManyApiGETAdjustmentIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + adjustmentId interface{} } -func (r HasManyApiGETAuthorizationIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETAuthorizationIdEventsExecute(r) +func (r HasManyApiGETAdjustmentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAdjustmentIdVersionsExecute(r) } /* -GETAuthorizationIdEvents Retrieve the events associated to the authorization +GETAdjustmentIdVersions Retrieve the versions associated to the adjustment -Retrieve the events associated to the authorization +Retrieve the versions associated to the adjustment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param authorizationId The resource's id - @return HasManyApiGETAuthorizationIdEventsRequest + @param adjustmentId The resource's id + @return HasManyApiGETAdjustmentIdVersionsRequest */ -func (a *HasManyApiService) GETAuthorizationIdEvents(ctx context.Context, authorizationId interface{}) HasManyApiGETAuthorizationIdEventsRequest { - return HasManyApiGETAuthorizationIdEventsRequest{ - ApiService: a, - ctx: ctx, - authorizationId: authorizationId, +func (a *HasManyApiService) GETAdjustmentIdVersions(ctx context.Context, adjustmentId interface{}) HasManyApiGETAdjustmentIdVersionsRequest { + return HasManyApiGETAdjustmentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + adjustmentId: adjustmentId, } } // Execute executes the request -func (a *HasManyApiService) GETAuthorizationIdEventsExecute(r HasManyApiGETAuthorizationIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAdjustmentIdVersionsExecute(r HasManyApiGETAdjustmentIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAuthorizationIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAdjustmentIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authorizations/{authorizationId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"authorizationId"+"}", url.PathEscape(parameterValueToString(r.authorizationId, "authorizationId")), -1) + localVarPath := localBasePath + "/adjustments/{adjustmentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"adjustmentId"+"}", url.PathEscape(parameterValueToString(r.adjustmentId, "adjustmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -391,48 +391,48 @@ func (a *HasManyApiService) GETAuthorizationIdEventsExecute(r HasManyApiGETAutho return localVarHTTPResponse, nil } -type HasManyApiGETAuthorizationIdVoidsRequest struct { - ctx context.Context - ApiService *HasManyApiService - authorizationId interface{} +type HasManyApiGETAdyenGatewayIdAdyenPaymentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + adyenGatewayId interface{} } -func (r HasManyApiGETAuthorizationIdVoidsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETAuthorizationIdVoidsExecute(r) +func (r HasManyApiGETAdyenGatewayIdAdyenPaymentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAdyenGatewayIdAdyenPaymentsExecute(r) } /* -GETAuthorizationIdVoids Retrieve the voids associated to the authorization +GETAdyenGatewayIdAdyenPayments Retrieve the adyen payments associated to the adyen gateway -Retrieve the voids associated to the authorization +Retrieve the adyen payments associated to the adyen gateway @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param authorizationId The resource's id - @return HasManyApiGETAuthorizationIdVoidsRequest + @param adyenGatewayId The resource's id + @return HasManyApiGETAdyenGatewayIdAdyenPaymentsRequest */ -func (a *HasManyApiService) GETAuthorizationIdVoids(ctx context.Context, authorizationId interface{}) HasManyApiGETAuthorizationIdVoidsRequest { - return HasManyApiGETAuthorizationIdVoidsRequest{ - ApiService: a, - ctx: ctx, - authorizationId: authorizationId, +func (a *HasManyApiService) GETAdyenGatewayIdAdyenPayments(ctx context.Context, adyenGatewayId interface{}) HasManyApiGETAdyenGatewayIdAdyenPaymentsRequest { + return HasManyApiGETAdyenGatewayIdAdyenPaymentsRequest{ + ApiService: a, + ctx: ctx, + adyenGatewayId: adyenGatewayId, } } // Execute executes the request -func (a *HasManyApiService) GETAuthorizationIdVoidsExecute(r HasManyApiGETAuthorizationIdVoidsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAdyenGatewayIdAdyenPaymentsExecute(r HasManyApiGETAdyenGatewayIdAdyenPaymentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAuthorizationIdVoids") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAdyenGatewayIdAdyenPayments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/authorizations/{authorizationId}/voids" - localVarPath = strings.Replace(localVarPath, "{"+"authorizationId"+"}", url.PathEscape(parameterValueToString(r.authorizationId, "authorizationId")), -1) + localVarPath := localBasePath + "/adyen_gateways/{adyenGatewayId}/adyen_payments" + localVarPath = strings.Replace(localVarPath, "{"+"adyenGatewayId"+"}", url.PathEscape(parameterValueToString(r.adyenGatewayId, "adyenGatewayId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -483,48 +483,48 @@ func (a *HasManyApiService) GETAuthorizationIdVoidsExecute(r HasManyApiGETAuthor return localVarHTTPResponse, nil } -type HasManyApiGETAvalaraAccountIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - avalaraAccountId interface{} +type HasManyApiGETAdyenGatewayIdPaymentMethodsRequest struct { + ctx context.Context + ApiService *HasManyApiService + adyenGatewayId interface{} } -func (r HasManyApiGETAvalaraAccountIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETAvalaraAccountIdAttachmentsExecute(r) +func (r HasManyApiGETAdyenGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAdyenGatewayIdPaymentMethodsExecute(r) } /* -GETAvalaraAccountIdAttachments Retrieve the attachments associated to the avalara account +GETAdyenGatewayIdPaymentMethods Retrieve the payment methods associated to the adyen gateway -Retrieve the attachments associated to the avalara account +Retrieve the payment methods associated to the adyen gateway @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param avalaraAccountId The resource's id - @return HasManyApiGETAvalaraAccountIdAttachmentsRequest + @param adyenGatewayId The resource's id + @return HasManyApiGETAdyenGatewayIdPaymentMethodsRequest */ -func (a *HasManyApiService) GETAvalaraAccountIdAttachments(ctx context.Context, avalaraAccountId interface{}) HasManyApiGETAvalaraAccountIdAttachmentsRequest { - return HasManyApiGETAvalaraAccountIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - avalaraAccountId: avalaraAccountId, +func (a *HasManyApiService) GETAdyenGatewayIdPaymentMethods(ctx context.Context, adyenGatewayId interface{}) HasManyApiGETAdyenGatewayIdPaymentMethodsRequest { + return HasManyApiGETAdyenGatewayIdPaymentMethodsRequest{ + ApiService: a, + ctx: ctx, + adyenGatewayId: adyenGatewayId, } } // Execute executes the request -func (a *HasManyApiService) GETAvalaraAccountIdAttachmentsExecute(r HasManyApiGETAvalaraAccountIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAdyenGatewayIdPaymentMethodsExecute(r HasManyApiGETAdyenGatewayIdPaymentMethodsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAvalaraAccountIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAdyenGatewayIdPaymentMethods") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/avalara_accounts/{avalaraAccountId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"avalaraAccountId"+"}", url.PathEscape(parameterValueToString(r.avalaraAccountId, "avalaraAccountId")), -1) + localVarPath := localBasePath + "/adyen_gateways/{adyenGatewayId}/payment_methods" + localVarPath = strings.Replace(localVarPath, "{"+"adyenGatewayId"+"}", url.PathEscape(parameterValueToString(r.adyenGatewayId, "adyenGatewayId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -575,48 +575,48 @@ func (a *HasManyApiService) GETAvalaraAccountIdAttachmentsExecute(r HasManyApiGE return localVarHTTPResponse, nil } -type HasManyApiGETAvalaraAccountIdMarketsRequest struct { - ctx context.Context - ApiService *HasManyApiService - avalaraAccountId interface{} +type HasManyApiGETAdyenGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + adyenGatewayId interface{} } -func (r HasManyApiGETAvalaraAccountIdMarketsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETAvalaraAccountIdMarketsExecute(r) +func (r HasManyApiGETAdyenGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAdyenGatewayIdVersionsExecute(r) } /* -GETAvalaraAccountIdMarkets Retrieve the markets associated to the avalara account +GETAdyenGatewayIdVersions Retrieve the versions associated to the adyen gateway -Retrieve the markets associated to the avalara account +Retrieve the versions associated to the adyen gateway @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param avalaraAccountId The resource's id - @return HasManyApiGETAvalaraAccountIdMarketsRequest + @param adyenGatewayId The resource's id + @return HasManyApiGETAdyenGatewayIdVersionsRequest */ -func (a *HasManyApiService) GETAvalaraAccountIdMarkets(ctx context.Context, avalaraAccountId interface{}) HasManyApiGETAvalaraAccountIdMarketsRequest { - return HasManyApiGETAvalaraAccountIdMarketsRequest{ - ApiService: a, - ctx: ctx, - avalaraAccountId: avalaraAccountId, +func (a *HasManyApiService) GETAdyenGatewayIdVersions(ctx context.Context, adyenGatewayId interface{}) HasManyApiGETAdyenGatewayIdVersionsRequest { + return HasManyApiGETAdyenGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + adyenGatewayId: adyenGatewayId, } } // Execute executes the request -func (a *HasManyApiService) GETAvalaraAccountIdMarketsExecute(r HasManyApiGETAvalaraAccountIdMarketsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAdyenGatewayIdVersionsExecute(r HasManyApiGETAdyenGatewayIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAvalaraAccountIdMarkets") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAdyenGatewayIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/avalara_accounts/{avalaraAccountId}/markets" - localVarPath = strings.Replace(localVarPath, "{"+"avalaraAccountId"+"}", url.PathEscape(parameterValueToString(r.avalaraAccountId, "avalaraAccountId")), -1) + localVarPath := localBasePath + "/adyen_gateways/{adyenGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"adyenGatewayId"+"}", url.PathEscape(parameterValueToString(r.adyenGatewayId, "adyenGatewayId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -667,48 +667,48 @@ func (a *HasManyApiService) GETAvalaraAccountIdMarketsExecute(r HasManyApiGETAva return localVarHTTPResponse, nil } -type HasManyApiGETAvalaraAccountIdTaxCategoriesRequest struct { - ctx context.Context - ApiService *HasManyApiService - avalaraAccountId interface{} +type HasManyApiGETAdyenPaymentIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + adyenPaymentId interface{} } -func (r HasManyApiGETAvalaraAccountIdTaxCategoriesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETAvalaraAccountIdTaxCategoriesExecute(r) +func (r HasManyApiGETAdyenPaymentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAdyenPaymentIdVersionsExecute(r) } /* -GETAvalaraAccountIdTaxCategories Retrieve the tax categories associated to the avalara account +GETAdyenPaymentIdVersions Retrieve the versions associated to the adyen payment -Retrieve the tax categories associated to the avalara account +Retrieve the versions associated to the adyen payment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param avalaraAccountId The resource's id - @return HasManyApiGETAvalaraAccountIdTaxCategoriesRequest + @param adyenPaymentId The resource's id + @return HasManyApiGETAdyenPaymentIdVersionsRequest */ -func (a *HasManyApiService) GETAvalaraAccountIdTaxCategories(ctx context.Context, avalaraAccountId interface{}) HasManyApiGETAvalaraAccountIdTaxCategoriesRequest { - return HasManyApiGETAvalaraAccountIdTaxCategoriesRequest{ - ApiService: a, - ctx: ctx, - avalaraAccountId: avalaraAccountId, +func (a *HasManyApiService) GETAdyenPaymentIdVersions(ctx context.Context, adyenPaymentId interface{}) HasManyApiGETAdyenPaymentIdVersionsRequest { + return HasManyApiGETAdyenPaymentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + adyenPaymentId: adyenPaymentId, } } // Execute executes the request -func (a *HasManyApiService) GETAvalaraAccountIdTaxCategoriesExecute(r HasManyApiGETAvalaraAccountIdTaxCategoriesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAdyenPaymentIdVersionsExecute(r HasManyApiGETAdyenPaymentIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAvalaraAccountIdTaxCategories") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAdyenPaymentIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/avalara_accounts/{avalaraAccountId}/tax_categories" - localVarPath = strings.Replace(localVarPath, "{"+"avalaraAccountId"+"}", url.PathEscape(parameterValueToString(r.avalaraAccountId, "avalaraAccountId")), -1) + localVarPath := localBasePath + "/adyen_payments/{adyenPaymentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"adyenPaymentId"+"}", url.PathEscape(parameterValueToString(r.adyenPaymentId, "adyenPaymentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -759,48 +759,48 @@ func (a *HasManyApiService) GETAvalaraAccountIdTaxCategoriesExecute(r HasManyApi return localVarHTTPResponse, nil } -type HasManyApiGETAxerveGatewayIdAxervePaymentsRequest struct { +type HasManyApiGETAuthorizationIdAttachmentsRequest struct { ctx context.Context ApiService *HasManyApiService - axerveGatewayId interface{} + authorizationId interface{} } -func (r HasManyApiGETAxerveGatewayIdAxervePaymentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETAxerveGatewayIdAxervePaymentsExecute(r) +func (r HasManyApiGETAuthorizationIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAuthorizationIdAttachmentsExecute(r) } /* -GETAxerveGatewayIdAxervePayments Retrieve the axerve payments associated to the axerve gateway +GETAuthorizationIdAttachments Retrieve the attachments associated to the authorization -Retrieve the axerve payments associated to the axerve gateway +Retrieve the attachments associated to the authorization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param axerveGatewayId The resource's id - @return HasManyApiGETAxerveGatewayIdAxervePaymentsRequest + @param authorizationId The resource's id + @return HasManyApiGETAuthorizationIdAttachmentsRequest */ -func (a *HasManyApiService) GETAxerveGatewayIdAxervePayments(ctx context.Context, axerveGatewayId interface{}) HasManyApiGETAxerveGatewayIdAxervePaymentsRequest { - return HasManyApiGETAxerveGatewayIdAxervePaymentsRequest{ +func (a *HasManyApiService) GETAuthorizationIdAttachments(ctx context.Context, authorizationId interface{}) HasManyApiGETAuthorizationIdAttachmentsRequest { + return HasManyApiGETAuthorizationIdAttachmentsRequest{ ApiService: a, ctx: ctx, - axerveGatewayId: axerveGatewayId, + authorizationId: authorizationId, } } // Execute executes the request -func (a *HasManyApiService) GETAxerveGatewayIdAxervePaymentsExecute(r HasManyApiGETAxerveGatewayIdAxervePaymentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAuthorizationIdAttachmentsExecute(r HasManyApiGETAuthorizationIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAxerveGatewayIdAxervePayments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAuthorizationIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/axerve_gateways/{axerveGatewayId}/axerve_payments" - localVarPath = strings.Replace(localVarPath, "{"+"axerveGatewayId"+"}", url.PathEscape(parameterValueToString(r.axerveGatewayId, "axerveGatewayId")), -1) + localVarPath := localBasePath + "/authorizations/{authorizationId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"authorizationId"+"}", url.PathEscape(parameterValueToString(r.authorizationId, "authorizationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -851,48 +851,48 @@ func (a *HasManyApiService) GETAxerveGatewayIdAxervePaymentsExecute(r HasManyApi return localVarHTTPResponse, nil } -type HasManyApiGETAxerveGatewayIdPaymentMethodsRequest struct { +type HasManyApiGETAuthorizationIdCapturesRequest struct { ctx context.Context ApiService *HasManyApiService - axerveGatewayId interface{} + authorizationId interface{} } -func (r HasManyApiGETAxerveGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETAxerveGatewayIdPaymentMethodsExecute(r) +func (r HasManyApiGETAuthorizationIdCapturesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAuthorizationIdCapturesExecute(r) } /* -GETAxerveGatewayIdPaymentMethods Retrieve the payment methods associated to the axerve gateway +GETAuthorizationIdCaptures Retrieve the captures associated to the authorization -Retrieve the payment methods associated to the axerve gateway +Retrieve the captures associated to the authorization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param axerveGatewayId The resource's id - @return HasManyApiGETAxerveGatewayIdPaymentMethodsRequest + @param authorizationId The resource's id + @return HasManyApiGETAuthorizationIdCapturesRequest */ -func (a *HasManyApiService) GETAxerveGatewayIdPaymentMethods(ctx context.Context, axerveGatewayId interface{}) HasManyApiGETAxerveGatewayIdPaymentMethodsRequest { - return HasManyApiGETAxerveGatewayIdPaymentMethodsRequest{ +func (a *HasManyApiService) GETAuthorizationIdCaptures(ctx context.Context, authorizationId interface{}) HasManyApiGETAuthorizationIdCapturesRequest { + return HasManyApiGETAuthorizationIdCapturesRequest{ ApiService: a, ctx: ctx, - axerveGatewayId: axerveGatewayId, + authorizationId: authorizationId, } } // Execute executes the request -func (a *HasManyApiService) GETAxerveGatewayIdPaymentMethodsExecute(r HasManyApiGETAxerveGatewayIdPaymentMethodsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAuthorizationIdCapturesExecute(r HasManyApiGETAuthorizationIdCapturesRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAxerveGatewayIdPaymentMethods") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAuthorizationIdCaptures") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/axerve_gateways/{axerveGatewayId}/payment_methods" - localVarPath = strings.Replace(localVarPath, "{"+"axerveGatewayId"+"}", url.PathEscape(parameterValueToString(r.axerveGatewayId, "axerveGatewayId")), -1) + localVarPath := localBasePath + "/authorizations/{authorizationId}/captures" + localVarPath = strings.Replace(localVarPath, "{"+"authorizationId"+"}", url.PathEscape(parameterValueToString(r.authorizationId, "authorizationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -943,48 +943,48 @@ func (a *HasManyApiService) GETAxerveGatewayIdPaymentMethodsExecute(r HasManyApi return localVarHTTPResponse, nil } -type HasManyApiGETBillingInfoValidationRuleIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - billingInfoValidationRuleId interface{} +type HasManyApiGETAuthorizationIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + authorizationId interface{} } -func (r HasManyApiGETBillingInfoValidationRuleIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETBillingInfoValidationRuleIdAttachmentsExecute(r) +func (r HasManyApiGETAuthorizationIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAuthorizationIdEventsExecute(r) } /* -GETBillingInfoValidationRuleIdAttachments Retrieve the attachments associated to the billing info validation rule +GETAuthorizationIdEvents Retrieve the events associated to the authorization -Retrieve the attachments associated to the billing info validation rule +Retrieve the events associated to the authorization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param billingInfoValidationRuleId The resource's id - @return HasManyApiGETBillingInfoValidationRuleIdAttachmentsRequest + @param authorizationId The resource's id + @return HasManyApiGETAuthorizationIdEventsRequest */ -func (a *HasManyApiService) GETBillingInfoValidationRuleIdAttachments(ctx context.Context, billingInfoValidationRuleId interface{}) HasManyApiGETBillingInfoValidationRuleIdAttachmentsRequest { - return HasManyApiGETBillingInfoValidationRuleIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - billingInfoValidationRuleId: billingInfoValidationRuleId, +func (a *HasManyApiService) GETAuthorizationIdEvents(ctx context.Context, authorizationId interface{}) HasManyApiGETAuthorizationIdEventsRequest { + return HasManyApiGETAuthorizationIdEventsRequest{ + ApiService: a, + ctx: ctx, + authorizationId: authorizationId, } } // Execute executes the request -func (a *HasManyApiService) GETBillingInfoValidationRuleIdAttachmentsExecute(r HasManyApiGETBillingInfoValidationRuleIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAuthorizationIdEventsExecute(r HasManyApiGETAuthorizationIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBillingInfoValidationRuleIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAuthorizationIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/billing_info_validation_rules/{billingInfoValidationRuleId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"billingInfoValidationRuleId"+"}", url.PathEscape(parameterValueToString(r.billingInfoValidationRuleId, "billingInfoValidationRuleId")), -1) + localVarPath := localBasePath + "/authorizations/{authorizationId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"authorizationId"+"}", url.PathEscape(parameterValueToString(r.authorizationId, "authorizationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1035,48 +1035,48 @@ func (a *HasManyApiService) GETBillingInfoValidationRuleIdAttachmentsExecute(r H return localVarHTTPResponse, nil } -type HasManyApiGETBingGeocoderIdAddressesRequest struct { - ctx context.Context - ApiService *HasManyApiService - bingGeocoderId interface{} +type HasManyApiGETAuthorizationIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + authorizationId interface{} } -func (r HasManyApiGETBingGeocoderIdAddressesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETBingGeocoderIdAddressesExecute(r) +func (r HasManyApiGETAuthorizationIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAuthorizationIdVersionsExecute(r) } /* -GETBingGeocoderIdAddresses Retrieve the addresses associated to the bing geocoder +GETAuthorizationIdVersions Retrieve the versions associated to the authorization -Retrieve the addresses associated to the bing geocoder +Retrieve the versions associated to the authorization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param bingGeocoderId The resource's id - @return HasManyApiGETBingGeocoderIdAddressesRequest + @param authorizationId The resource's id + @return HasManyApiGETAuthorizationIdVersionsRequest */ -func (a *HasManyApiService) GETBingGeocoderIdAddresses(ctx context.Context, bingGeocoderId interface{}) HasManyApiGETBingGeocoderIdAddressesRequest { - return HasManyApiGETBingGeocoderIdAddressesRequest{ - ApiService: a, - ctx: ctx, - bingGeocoderId: bingGeocoderId, +func (a *HasManyApiService) GETAuthorizationIdVersions(ctx context.Context, authorizationId interface{}) HasManyApiGETAuthorizationIdVersionsRequest { + return HasManyApiGETAuthorizationIdVersionsRequest{ + ApiService: a, + ctx: ctx, + authorizationId: authorizationId, } } // Execute executes the request -func (a *HasManyApiService) GETBingGeocoderIdAddressesExecute(r HasManyApiGETBingGeocoderIdAddressesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAuthorizationIdVersionsExecute(r HasManyApiGETAuthorizationIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBingGeocoderIdAddresses") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAuthorizationIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/bing_geocoders/{bingGeocoderId}/addresses" - localVarPath = strings.Replace(localVarPath, "{"+"bingGeocoderId"+"}", url.PathEscape(parameterValueToString(r.bingGeocoderId, "bingGeocoderId")), -1) + localVarPath := localBasePath + "/authorizations/{authorizationId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"authorizationId"+"}", url.PathEscape(parameterValueToString(r.authorizationId, "authorizationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1127,48 +1127,48 @@ func (a *HasManyApiService) GETBingGeocoderIdAddressesExecute(r HasManyApiGETBin return localVarHTTPResponse, nil } -type HasManyApiGETBingGeocoderIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - bingGeocoderId interface{} +type HasManyApiGETAuthorizationIdVoidsRequest struct { + ctx context.Context + ApiService *HasManyApiService + authorizationId interface{} } -func (r HasManyApiGETBingGeocoderIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETBingGeocoderIdAttachmentsExecute(r) +func (r HasManyApiGETAuthorizationIdVoidsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAuthorizationIdVoidsExecute(r) } /* -GETBingGeocoderIdAttachments Retrieve the attachments associated to the bing geocoder +GETAuthorizationIdVoids Retrieve the voids associated to the authorization -Retrieve the attachments associated to the bing geocoder +Retrieve the voids associated to the authorization @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param bingGeocoderId The resource's id - @return HasManyApiGETBingGeocoderIdAttachmentsRequest + @param authorizationId The resource's id + @return HasManyApiGETAuthorizationIdVoidsRequest */ -func (a *HasManyApiService) GETBingGeocoderIdAttachments(ctx context.Context, bingGeocoderId interface{}) HasManyApiGETBingGeocoderIdAttachmentsRequest { - return HasManyApiGETBingGeocoderIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - bingGeocoderId: bingGeocoderId, +func (a *HasManyApiService) GETAuthorizationIdVoids(ctx context.Context, authorizationId interface{}) HasManyApiGETAuthorizationIdVoidsRequest { + return HasManyApiGETAuthorizationIdVoidsRequest{ + ApiService: a, + ctx: ctx, + authorizationId: authorizationId, } } // Execute executes the request -func (a *HasManyApiService) GETBingGeocoderIdAttachmentsExecute(r HasManyApiGETBingGeocoderIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAuthorizationIdVoidsExecute(r HasManyApiGETAuthorizationIdVoidsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBingGeocoderIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAuthorizationIdVoids") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/bing_geocoders/{bingGeocoderId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"bingGeocoderId"+"}", url.PathEscape(parameterValueToString(r.bingGeocoderId, "bingGeocoderId")), -1) + localVarPath := localBasePath + "/authorizations/{authorizationId}/voids" + localVarPath = strings.Replace(localVarPath, "{"+"authorizationId"+"}", url.PathEscape(parameterValueToString(r.authorizationId, "authorizationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1219,48 +1219,48 @@ func (a *HasManyApiService) GETBingGeocoderIdAttachmentsExecute(r HasManyApiGETB return localVarHTTPResponse, nil } -type HasManyApiGETBraintreeGatewayIdBraintreePaymentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - braintreeGatewayId interface{} +type HasManyApiGETAvalaraAccountIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + avalaraAccountId interface{} } -func (r HasManyApiGETBraintreeGatewayIdBraintreePaymentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETBraintreeGatewayIdBraintreePaymentsExecute(r) +func (r HasManyApiGETAvalaraAccountIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAvalaraAccountIdAttachmentsExecute(r) } /* -GETBraintreeGatewayIdBraintreePayments Retrieve the braintree payments associated to the braintree gateway +GETAvalaraAccountIdAttachments Retrieve the attachments associated to the avalara account -Retrieve the braintree payments associated to the braintree gateway +Retrieve the attachments associated to the avalara account @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param braintreeGatewayId The resource's id - @return HasManyApiGETBraintreeGatewayIdBraintreePaymentsRequest + @param avalaraAccountId The resource's id + @return HasManyApiGETAvalaraAccountIdAttachmentsRequest */ -func (a *HasManyApiService) GETBraintreeGatewayIdBraintreePayments(ctx context.Context, braintreeGatewayId interface{}) HasManyApiGETBraintreeGatewayIdBraintreePaymentsRequest { - return HasManyApiGETBraintreeGatewayIdBraintreePaymentsRequest{ - ApiService: a, - ctx: ctx, - braintreeGatewayId: braintreeGatewayId, +func (a *HasManyApiService) GETAvalaraAccountIdAttachments(ctx context.Context, avalaraAccountId interface{}) HasManyApiGETAvalaraAccountIdAttachmentsRequest { + return HasManyApiGETAvalaraAccountIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + avalaraAccountId: avalaraAccountId, } } // Execute executes the request -func (a *HasManyApiService) GETBraintreeGatewayIdBraintreePaymentsExecute(r HasManyApiGETBraintreeGatewayIdBraintreePaymentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAvalaraAccountIdAttachmentsExecute(r HasManyApiGETAvalaraAccountIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBraintreeGatewayIdBraintreePayments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAvalaraAccountIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/braintree_gateways/{braintreeGatewayId}/braintree_payments" - localVarPath = strings.Replace(localVarPath, "{"+"braintreeGatewayId"+"}", url.PathEscape(parameterValueToString(r.braintreeGatewayId, "braintreeGatewayId")), -1) + localVarPath := localBasePath + "/avalara_accounts/{avalaraAccountId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"avalaraAccountId"+"}", url.PathEscape(parameterValueToString(r.avalaraAccountId, "avalaraAccountId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1311,48 +1311,48 @@ func (a *HasManyApiService) GETBraintreeGatewayIdBraintreePaymentsExecute(r HasM return localVarHTTPResponse, nil } -type HasManyApiGETBraintreeGatewayIdPaymentMethodsRequest struct { - ctx context.Context - ApiService *HasManyApiService - braintreeGatewayId interface{} +type HasManyApiGETAvalaraAccountIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + avalaraAccountId interface{} } -func (r HasManyApiGETBraintreeGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETBraintreeGatewayIdPaymentMethodsExecute(r) +func (r HasManyApiGETAvalaraAccountIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAvalaraAccountIdEventsExecute(r) } /* -GETBraintreeGatewayIdPaymentMethods Retrieve the payment methods associated to the braintree gateway +GETAvalaraAccountIdEvents Retrieve the events associated to the avalara account -Retrieve the payment methods associated to the braintree gateway +Retrieve the events associated to the avalara account @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param braintreeGatewayId The resource's id - @return HasManyApiGETBraintreeGatewayIdPaymentMethodsRequest + @param avalaraAccountId The resource's id + @return HasManyApiGETAvalaraAccountIdEventsRequest */ -func (a *HasManyApiService) GETBraintreeGatewayIdPaymentMethods(ctx context.Context, braintreeGatewayId interface{}) HasManyApiGETBraintreeGatewayIdPaymentMethodsRequest { - return HasManyApiGETBraintreeGatewayIdPaymentMethodsRequest{ - ApiService: a, - ctx: ctx, - braintreeGatewayId: braintreeGatewayId, +func (a *HasManyApiService) GETAvalaraAccountIdEvents(ctx context.Context, avalaraAccountId interface{}) HasManyApiGETAvalaraAccountIdEventsRequest { + return HasManyApiGETAvalaraAccountIdEventsRequest{ + ApiService: a, + ctx: ctx, + avalaraAccountId: avalaraAccountId, } } // Execute executes the request -func (a *HasManyApiService) GETBraintreeGatewayIdPaymentMethodsExecute(r HasManyApiGETBraintreeGatewayIdPaymentMethodsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAvalaraAccountIdEventsExecute(r HasManyApiGETAvalaraAccountIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBraintreeGatewayIdPaymentMethods") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAvalaraAccountIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/braintree_gateways/{braintreeGatewayId}/payment_methods" - localVarPath = strings.Replace(localVarPath, "{"+"braintreeGatewayId"+"}", url.PathEscape(parameterValueToString(r.braintreeGatewayId, "braintreeGatewayId")), -1) + localVarPath := localBasePath + "/avalara_accounts/{avalaraAccountId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"avalaraAccountId"+"}", url.PathEscape(parameterValueToString(r.avalaraAccountId, "avalaraAccountId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1403,48 +1403,48 @@ func (a *HasManyApiService) GETBraintreeGatewayIdPaymentMethodsExecute(r HasMany return localVarHTTPResponse, nil } -type HasManyApiGETBundleIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - bundleId interface{} +type HasManyApiGETAvalaraAccountIdMarketsRequest struct { + ctx context.Context + ApiService *HasManyApiService + avalaraAccountId interface{} } -func (r HasManyApiGETBundleIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETBundleIdAttachmentsExecute(r) +func (r HasManyApiGETAvalaraAccountIdMarketsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAvalaraAccountIdMarketsExecute(r) } /* -GETBundleIdAttachments Retrieve the attachments associated to the bundle +GETAvalaraAccountIdMarkets Retrieve the markets associated to the avalara account -Retrieve the attachments associated to the bundle +Retrieve the markets associated to the avalara account @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param bundleId The resource's id - @return HasManyApiGETBundleIdAttachmentsRequest + @param avalaraAccountId The resource's id + @return HasManyApiGETAvalaraAccountIdMarketsRequest */ -func (a *HasManyApiService) GETBundleIdAttachments(ctx context.Context, bundleId interface{}) HasManyApiGETBundleIdAttachmentsRequest { - return HasManyApiGETBundleIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - bundleId: bundleId, +func (a *HasManyApiService) GETAvalaraAccountIdMarkets(ctx context.Context, avalaraAccountId interface{}) HasManyApiGETAvalaraAccountIdMarketsRequest { + return HasManyApiGETAvalaraAccountIdMarketsRequest{ + ApiService: a, + ctx: ctx, + avalaraAccountId: avalaraAccountId, } } // Execute executes the request -func (a *HasManyApiService) GETBundleIdAttachmentsExecute(r HasManyApiGETBundleIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAvalaraAccountIdMarketsExecute(r HasManyApiGETAvalaraAccountIdMarketsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBundleIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAvalaraAccountIdMarkets") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/bundles/{bundleId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"bundleId"+"}", url.PathEscape(parameterValueToString(r.bundleId, "bundleId")), -1) + localVarPath := localBasePath + "/avalara_accounts/{avalaraAccountId}/markets" + localVarPath = strings.Replace(localVarPath, "{"+"avalaraAccountId"+"}", url.PathEscape(parameterValueToString(r.avalaraAccountId, "avalaraAccountId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1495,48 +1495,48 @@ func (a *HasManyApiService) GETBundleIdAttachmentsExecute(r HasManyApiGETBundleI return localVarHTTPResponse, nil } -type HasManyApiGETBundleIdSkusRequest struct { - ctx context.Context - ApiService *HasManyApiService - bundleId interface{} +type HasManyApiGETAvalaraAccountIdTaxCategoriesRequest struct { + ctx context.Context + ApiService *HasManyApiService + avalaraAccountId interface{} } -func (r HasManyApiGETBundleIdSkusRequest) Execute() (*http.Response, error) { - return r.ApiService.GETBundleIdSkusExecute(r) +func (r HasManyApiGETAvalaraAccountIdTaxCategoriesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAvalaraAccountIdTaxCategoriesExecute(r) } /* -GETBundleIdSkus Retrieve the skus associated to the bundle +GETAvalaraAccountIdTaxCategories Retrieve the tax categories associated to the avalara account -Retrieve the skus associated to the bundle +Retrieve the tax categories associated to the avalara account @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param bundleId The resource's id - @return HasManyApiGETBundleIdSkusRequest + @param avalaraAccountId The resource's id + @return HasManyApiGETAvalaraAccountIdTaxCategoriesRequest */ -func (a *HasManyApiService) GETBundleIdSkus(ctx context.Context, bundleId interface{}) HasManyApiGETBundleIdSkusRequest { - return HasManyApiGETBundleIdSkusRequest{ - ApiService: a, - ctx: ctx, - bundleId: bundleId, +func (a *HasManyApiService) GETAvalaraAccountIdTaxCategories(ctx context.Context, avalaraAccountId interface{}) HasManyApiGETAvalaraAccountIdTaxCategoriesRequest { + return HasManyApiGETAvalaraAccountIdTaxCategoriesRequest{ + ApiService: a, + ctx: ctx, + avalaraAccountId: avalaraAccountId, } } // Execute executes the request -func (a *HasManyApiService) GETBundleIdSkusExecute(r HasManyApiGETBundleIdSkusRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAvalaraAccountIdTaxCategoriesExecute(r HasManyApiGETAvalaraAccountIdTaxCategoriesRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBundleIdSkus") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAvalaraAccountIdTaxCategories") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/bundles/{bundleId}/skus" - localVarPath = strings.Replace(localVarPath, "{"+"bundleId"+"}", url.PathEscape(parameterValueToString(r.bundleId, "bundleId")), -1) + localVarPath := localBasePath + "/avalara_accounts/{avalaraAccountId}/tax_categories" + localVarPath = strings.Replace(localVarPath, "{"+"avalaraAccountId"+"}", url.PathEscape(parameterValueToString(r.avalaraAccountId, "avalaraAccountId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1587,48 +1587,48 @@ func (a *HasManyApiService) GETBundleIdSkusExecute(r HasManyApiGETBundleIdSkusRe return localVarHTTPResponse, nil } -type HasManyApiGETCaptureIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - captureId interface{} -} +type HasManyApiGETAvalaraAccountIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + avalaraAccountId interface{} +} -func (r HasManyApiGETCaptureIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCaptureIdEventsExecute(r) +func (r HasManyApiGETAvalaraAccountIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAvalaraAccountIdVersionsExecute(r) } /* -GETCaptureIdEvents Retrieve the events associated to the capture +GETAvalaraAccountIdVersions Retrieve the versions associated to the avalara account -Retrieve the events associated to the capture +Retrieve the versions associated to the avalara account @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param captureId The resource's id - @return HasManyApiGETCaptureIdEventsRequest + @param avalaraAccountId The resource's id + @return HasManyApiGETAvalaraAccountIdVersionsRequest */ -func (a *HasManyApiService) GETCaptureIdEvents(ctx context.Context, captureId interface{}) HasManyApiGETCaptureIdEventsRequest { - return HasManyApiGETCaptureIdEventsRequest{ - ApiService: a, - ctx: ctx, - captureId: captureId, +func (a *HasManyApiService) GETAvalaraAccountIdVersions(ctx context.Context, avalaraAccountId interface{}) HasManyApiGETAvalaraAccountIdVersionsRequest { + return HasManyApiGETAvalaraAccountIdVersionsRequest{ + ApiService: a, + ctx: ctx, + avalaraAccountId: avalaraAccountId, } } // Execute executes the request -func (a *HasManyApiService) GETCaptureIdEventsExecute(r HasManyApiGETCaptureIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAvalaraAccountIdVersionsExecute(r HasManyApiGETAvalaraAccountIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCaptureIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAvalaraAccountIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/captures/{captureId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"captureId"+"}", url.PathEscape(parameterValueToString(r.captureId, "captureId")), -1) + localVarPath := localBasePath + "/avalara_accounts/{avalaraAccountId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"avalaraAccountId"+"}", url.PathEscape(parameterValueToString(r.avalaraAccountId, "avalaraAccountId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1679,48 +1679,48 @@ func (a *HasManyApiService) GETCaptureIdEventsExecute(r HasManyApiGETCaptureIdEv return localVarHTTPResponse, nil } -type HasManyApiGETCaptureIdRefundsRequest struct { - ctx context.Context - ApiService *HasManyApiService - captureId interface{} +type HasManyApiGETAxerveGatewayIdAxervePaymentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + axerveGatewayId interface{} } -func (r HasManyApiGETCaptureIdRefundsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCaptureIdRefundsExecute(r) +func (r HasManyApiGETAxerveGatewayIdAxervePaymentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAxerveGatewayIdAxervePaymentsExecute(r) } /* -GETCaptureIdRefunds Retrieve the refunds associated to the capture +GETAxerveGatewayIdAxervePayments Retrieve the axerve payments associated to the axerve gateway -Retrieve the refunds associated to the capture +Retrieve the axerve payments associated to the axerve gateway @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param captureId The resource's id - @return HasManyApiGETCaptureIdRefundsRequest + @param axerveGatewayId The resource's id + @return HasManyApiGETAxerveGatewayIdAxervePaymentsRequest */ -func (a *HasManyApiService) GETCaptureIdRefunds(ctx context.Context, captureId interface{}) HasManyApiGETCaptureIdRefundsRequest { - return HasManyApiGETCaptureIdRefundsRequest{ - ApiService: a, - ctx: ctx, - captureId: captureId, +func (a *HasManyApiService) GETAxerveGatewayIdAxervePayments(ctx context.Context, axerveGatewayId interface{}) HasManyApiGETAxerveGatewayIdAxervePaymentsRequest { + return HasManyApiGETAxerveGatewayIdAxervePaymentsRequest{ + ApiService: a, + ctx: ctx, + axerveGatewayId: axerveGatewayId, } } // Execute executes the request -func (a *HasManyApiService) GETCaptureIdRefundsExecute(r HasManyApiGETCaptureIdRefundsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAxerveGatewayIdAxervePaymentsExecute(r HasManyApiGETAxerveGatewayIdAxervePaymentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCaptureIdRefunds") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAxerveGatewayIdAxervePayments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/captures/{captureId}/refunds" - localVarPath = strings.Replace(localVarPath, "{"+"captureId"+"}", url.PathEscape(parameterValueToString(r.captureId, "captureId")), -1) + localVarPath := localBasePath + "/axerve_gateways/{axerveGatewayId}/axerve_payments" + localVarPath = strings.Replace(localVarPath, "{"+"axerveGatewayId"+"}", url.PathEscape(parameterValueToString(r.axerveGatewayId, "axerveGatewayId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1771,48 +1771,48 @@ func (a *HasManyApiService) GETCaptureIdRefundsExecute(r HasManyApiGETCaptureIdR return localVarHTTPResponse, nil } -type HasManyApiGETCarrierAccountIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - carrierAccountId interface{} +type HasManyApiGETAxerveGatewayIdPaymentMethodsRequest struct { + ctx context.Context + ApiService *HasManyApiService + axerveGatewayId interface{} } -func (r HasManyApiGETCarrierAccountIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCarrierAccountIdAttachmentsExecute(r) +func (r HasManyApiGETAxerveGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAxerveGatewayIdPaymentMethodsExecute(r) } /* -GETCarrierAccountIdAttachments Retrieve the attachments associated to the carrier account +GETAxerveGatewayIdPaymentMethods Retrieve the payment methods associated to the axerve gateway -Retrieve the attachments associated to the carrier account +Retrieve the payment methods associated to the axerve gateway @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param carrierAccountId The resource's id - @return HasManyApiGETCarrierAccountIdAttachmentsRequest + @param axerveGatewayId The resource's id + @return HasManyApiGETAxerveGatewayIdPaymentMethodsRequest */ -func (a *HasManyApiService) GETCarrierAccountIdAttachments(ctx context.Context, carrierAccountId interface{}) HasManyApiGETCarrierAccountIdAttachmentsRequest { - return HasManyApiGETCarrierAccountIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - carrierAccountId: carrierAccountId, +func (a *HasManyApiService) GETAxerveGatewayIdPaymentMethods(ctx context.Context, axerveGatewayId interface{}) HasManyApiGETAxerveGatewayIdPaymentMethodsRequest { + return HasManyApiGETAxerveGatewayIdPaymentMethodsRequest{ + ApiService: a, + ctx: ctx, + axerveGatewayId: axerveGatewayId, } } // Execute executes the request -func (a *HasManyApiService) GETCarrierAccountIdAttachmentsExecute(r HasManyApiGETCarrierAccountIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAxerveGatewayIdPaymentMethodsExecute(r HasManyApiGETAxerveGatewayIdPaymentMethodsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCarrierAccountIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAxerveGatewayIdPaymentMethods") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/carrier_accounts/{carrierAccountId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"carrierAccountId"+"}", url.PathEscape(parameterValueToString(r.carrierAccountId, "carrierAccountId")), -1) + localVarPath := localBasePath + "/axerve_gateways/{axerveGatewayId}/payment_methods" + localVarPath = strings.Replace(localVarPath, "{"+"axerveGatewayId"+"}", url.PathEscape(parameterValueToString(r.axerveGatewayId, "axerveGatewayId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1863,48 +1863,48 @@ func (a *HasManyApiService) GETCarrierAccountIdAttachmentsExecute(r HasManyApiGE return localVarHTTPResponse, nil } -type HasManyApiGETCheckoutComGatewayIdCheckoutComPaymentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - checkoutComGatewayId interface{} +type HasManyApiGETAxerveGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + axerveGatewayId interface{} } -func (r HasManyApiGETCheckoutComGatewayIdCheckoutComPaymentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCheckoutComGatewayIdCheckoutComPaymentsExecute(r) +func (r HasManyApiGETAxerveGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAxerveGatewayIdVersionsExecute(r) } /* -GETCheckoutComGatewayIdCheckoutComPayments Retrieve the checkout com payments associated to the checkout.com gateway +GETAxerveGatewayIdVersions Retrieve the versions associated to the axerve gateway -Retrieve the checkout com payments associated to the checkout.com gateway +Retrieve the versions associated to the axerve gateway @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param checkoutComGatewayId The resource's id - @return HasManyApiGETCheckoutComGatewayIdCheckoutComPaymentsRequest + @param axerveGatewayId The resource's id + @return HasManyApiGETAxerveGatewayIdVersionsRequest */ -func (a *HasManyApiService) GETCheckoutComGatewayIdCheckoutComPayments(ctx context.Context, checkoutComGatewayId interface{}) HasManyApiGETCheckoutComGatewayIdCheckoutComPaymentsRequest { - return HasManyApiGETCheckoutComGatewayIdCheckoutComPaymentsRequest{ - ApiService: a, - ctx: ctx, - checkoutComGatewayId: checkoutComGatewayId, +func (a *HasManyApiService) GETAxerveGatewayIdVersions(ctx context.Context, axerveGatewayId interface{}) HasManyApiGETAxerveGatewayIdVersionsRequest { + return HasManyApiGETAxerveGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + axerveGatewayId: axerveGatewayId, } } // Execute executes the request -func (a *HasManyApiService) GETCheckoutComGatewayIdCheckoutComPaymentsExecute(r HasManyApiGETCheckoutComGatewayIdCheckoutComPaymentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAxerveGatewayIdVersionsExecute(r HasManyApiGETAxerveGatewayIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCheckoutComGatewayIdCheckoutComPayments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAxerveGatewayIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/checkout_com_gateways/{checkoutComGatewayId}/checkout_com_payments" - localVarPath = strings.Replace(localVarPath, "{"+"checkoutComGatewayId"+"}", url.PathEscape(parameterValueToString(r.checkoutComGatewayId, "checkoutComGatewayId")), -1) + localVarPath := localBasePath + "/axerve_gateways/{axerveGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"axerveGatewayId"+"}", url.PathEscape(parameterValueToString(r.axerveGatewayId, "axerveGatewayId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1955,48 +1955,48 @@ func (a *HasManyApiService) GETCheckoutComGatewayIdCheckoutComPaymentsExecute(r return localVarHTTPResponse, nil } -type HasManyApiGETCheckoutComGatewayIdPaymentMethodsRequest struct { - ctx context.Context - ApiService *HasManyApiService - checkoutComGatewayId interface{} +type HasManyApiGETAxervePaymentIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + axervePaymentId interface{} } -func (r HasManyApiGETCheckoutComGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCheckoutComGatewayIdPaymentMethodsExecute(r) +func (r HasManyApiGETAxervePaymentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAxervePaymentIdVersionsExecute(r) } /* -GETCheckoutComGatewayIdPaymentMethods Retrieve the payment methods associated to the checkout.com gateway +GETAxervePaymentIdVersions Retrieve the versions associated to the axerve payment -Retrieve the payment methods associated to the checkout.com gateway +Retrieve the versions associated to the axerve payment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param checkoutComGatewayId The resource's id - @return HasManyApiGETCheckoutComGatewayIdPaymentMethodsRequest + @param axervePaymentId The resource's id + @return HasManyApiGETAxervePaymentIdVersionsRequest */ -func (a *HasManyApiService) GETCheckoutComGatewayIdPaymentMethods(ctx context.Context, checkoutComGatewayId interface{}) HasManyApiGETCheckoutComGatewayIdPaymentMethodsRequest { - return HasManyApiGETCheckoutComGatewayIdPaymentMethodsRequest{ - ApiService: a, - ctx: ctx, - checkoutComGatewayId: checkoutComGatewayId, +func (a *HasManyApiService) GETAxervePaymentIdVersions(ctx context.Context, axervePaymentId interface{}) HasManyApiGETAxervePaymentIdVersionsRequest { + return HasManyApiGETAxervePaymentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + axervePaymentId: axervePaymentId, } } // Execute executes the request -func (a *HasManyApiService) GETCheckoutComGatewayIdPaymentMethodsExecute(r HasManyApiGETCheckoutComGatewayIdPaymentMethodsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETAxervePaymentIdVersionsExecute(r HasManyApiGETAxervePaymentIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCheckoutComGatewayIdPaymentMethods") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETAxervePaymentIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/checkout_com_gateways/{checkoutComGatewayId}/payment_methods" - localVarPath = strings.Replace(localVarPath, "{"+"checkoutComGatewayId"+"}", url.PathEscape(parameterValueToString(r.checkoutComGatewayId, "checkoutComGatewayId")), -1) + localVarPath := localBasePath + "/axerve_payments/{axervePaymentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"axervePaymentId"+"}", url.PathEscape(parameterValueToString(r.axervePaymentId, "axervePaymentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2047,48 +2047,48 @@ func (a *HasManyApiService) GETCheckoutComGatewayIdPaymentMethodsExecute(r HasMa return localVarHTTPResponse, nil } -type HasManyApiGETCleanupIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - cleanupId interface{} +type HasManyApiGETBillingInfoValidationRuleIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + billingInfoValidationRuleId interface{} } -func (r HasManyApiGETCleanupIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCleanupIdEventsExecute(r) +func (r HasManyApiGETBillingInfoValidationRuleIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBillingInfoValidationRuleIdAttachmentsExecute(r) } /* -GETCleanupIdEvents Retrieve the events associated to the cleanup +GETBillingInfoValidationRuleIdAttachments Retrieve the attachments associated to the billing info validation rule -Retrieve the events associated to the cleanup +Retrieve the attachments associated to the billing info validation rule @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param cleanupId The resource's id - @return HasManyApiGETCleanupIdEventsRequest + @param billingInfoValidationRuleId The resource's id + @return HasManyApiGETBillingInfoValidationRuleIdAttachmentsRequest */ -func (a *HasManyApiService) GETCleanupIdEvents(ctx context.Context, cleanupId interface{}) HasManyApiGETCleanupIdEventsRequest { - return HasManyApiGETCleanupIdEventsRequest{ - ApiService: a, - ctx: ctx, - cleanupId: cleanupId, +func (a *HasManyApiService) GETBillingInfoValidationRuleIdAttachments(ctx context.Context, billingInfoValidationRuleId interface{}) HasManyApiGETBillingInfoValidationRuleIdAttachmentsRequest { + return HasManyApiGETBillingInfoValidationRuleIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + billingInfoValidationRuleId: billingInfoValidationRuleId, } } // Execute executes the request -func (a *HasManyApiService) GETCleanupIdEventsExecute(r HasManyApiGETCleanupIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBillingInfoValidationRuleIdAttachmentsExecute(r HasManyApiGETBillingInfoValidationRuleIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCleanupIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBillingInfoValidationRuleIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/cleanups/{cleanupId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"cleanupId"+"}", url.PathEscape(parameterValueToString(r.cleanupId, "cleanupId")), -1) + localVarPath := localBasePath + "/billing_info_validation_rules/{billingInfoValidationRuleId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"billingInfoValidationRuleId"+"}", url.PathEscape(parameterValueToString(r.billingInfoValidationRuleId, "billingInfoValidationRuleId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2139,48 +2139,48 @@ func (a *HasManyApiService) GETCleanupIdEventsExecute(r HasManyApiGETCleanupIdEv return localVarHTTPResponse, nil } -type HasManyApiGETCouponCodesPromotionRuleIdCouponsRequest struct { - ctx context.Context - ApiService *HasManyApiService - couponCodesPromotionRuleId interface{} +type HasManyApiGETBillingInfoValidationRuleIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + billingInfoValidationRuleId interface{} } -func (r HasManyApiGETCouponCodesPromotionRuleIdCouponsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCouponCodesPromotionRuleIdCouponsExecute(r) +func (r HasManyApiGETBillingInfoValidationRuleIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBillingInfoValidationRuleIdVersionsExecute(r) } /* -GETCouponCodesPromotionRuleIdCoupons Retrieve the coupons associated to the coupon codes promotion rule +GETBillingInfoValidationRuleIdVersions Retrieve the versions associated to the billing info validation rule -Retrieve the coupons associated to the coupon codes promotion rule +Retrieve the versions associated to the billing info validation rule @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param couponCodesPromotionRuleId The resource's id - @return HasManyApiGETCouponCodesPromotionRuleIdCouponsRequest + @param billingInfoValidationRuleId The resource's id + @return HasManyApiGETBillingInfoValidationRuleIdVersionsRequest */ -func (a *HasManyApiService) GETCouponCodesPromotionRuleIdCoupons(ctx context.Context, couponCodesPromotionRuleId interface{}) HasManyApiGETCouponCodesPromotionRuleIdCouponsRequest { - return HasManyApiGETCouponCodesPromotionRuleIdCouponsRequest{ - ApiService: a, - ctx: ctx, - couponCodesPromotionRuleId: couponCodesPromotionRuleId, +func (a *HasManyApiService) GETBillingInfoValidationRuleIdVersions(ctx context.Context, billingInfoValidationRuleId interface{}) HasManyApiGETBillingInfoValidationRuleIdVersionsRequest { + return HasManyApiGETBillingInfoValidationRuleIdVersionsRequest{ + ApiService: a, + ctx: ctx, + billingInfoValidationRuleId: billingInfoValidationRuleId, } } // Execute executes the request -func (a *HasManyApiService) GETCouponCodesPromotionRuleIdCouponsExecute(r HasManyApiGETCouponCodesPromotionRuleIdCouponsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBillingInfoValidationRuleIdVersionsExecute(r HasManyApiGETBillingInfoValidationRuleIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCouponCodesPromotionRuleIdCoupons") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBillingInfoValidationRuleIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/coupon_codes_promotion_rules/{couponCodesPromotionRuleId}/coupons" - localVarPath = strings.Replace(localVarPath, "{"+"couponCodesPromotionRuleId"+"}", url.PathEscape(parameterValueToString(r.couponCodesPromotionRuleId, "couponCodesPromotionRuleId")), -1) + localVarPath := localBasePath + "/billing_info_validation_rules/{billingInfoValidationRuleId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"billingInfoValidationRuleId"+"}", url.PathEscape(parameterValueToString(r.billingInfoValidationRuleId, "billingInfoValidationRuleId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2231,48 +2231,48 @@ func (a *HasManyApiService) GETCouponCodesPromotionRuleIdCouponsExecute(r HasMan return localVarHTTPResponse, nil } -type HasManyApiGETCouponRecipientIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - couponRecipientId interface{} +type HasManyApiGETBingGeocoderIdAddressesRequest struct { + ctx context.Context + ApiService *HasManyApiService + bingGeocoderId interface{} } -func (r HasManyApiGETCouponRecipientIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCouponRecipientIdAttachmentsExecute(r) +func (r HasManyApiGETBingGeocoderIdAddressesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBingGeocoderIdAddressesExecute(r) } /* -GETCouponRecipientIdAttachments Retrieve the attachments associated to the coupon recipient +GETBingGeocoderIdAddresses Retrieve the addresses associated to the bing geocoder -Retrieve the attachments associated to the coupon recipient +Retrieve the addresses associated to the bing geocoder @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param couponRecipientId The resource's id - @return HasManyApiGETCouponRecipientIdAttachmentsRequest + @param bingGeocoderId The resource's id + @return HasManyApiGETBingGeocoderIdAddressesRequest */ -func (a *HasManyApiService) GETCouponRecipientIdAttachments(ctx context.Context, couponRecipientId interface{}) HasManyApiGETCouponRecipientIdAttachmentsRequest { - return HasManyApiGETCouponRecipientIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - couponRecipientId: couponRecipientId, +func (a *HasManyApiService) GETBingGeocoderIdAddresses(ctx context.Context, bingGeocoderId interface{}) HasManyApiGETBingGeocoderIdAddressesRequest { + return HasManyApiGETBingGeocoderIdAddressesRequest{ + ApiService: a, + ctx: ctx, + bingGeocoderId: bingGeocoderId, } } // Execute executes the request -func (a *HasManyApiService) GETCouponRecipientIdAttachmentsExecute(r HasManyApiGETCouponRecipientIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBingGeocoderIdAddressesExecute(r HasManyApiGETBingGeocoderIdAddressesRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCouponRecipientIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBingGeocoderIdAddresses") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/coupon_recipients/{couponRecipientId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"couponRecipientId"+"}", url.PathEscape(parameterValueToString(r.couponRecipientId, "couponRecipientId")), -1) + localVarPath := localBasePath + "/bing_geocoders/{bingGeocoderId}/addresses" + localVarPath = strings.Replace(localVarPath, "{"+"bingGeocoderId"+"}", url.PathEscape(parameterValueToString(r.bingGeocoderId, "bingGeocoderId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2323,48 +2323,48 @@ func (a *HasManyApiService) GETCouponRecipientIdAttachmentsExecute(r HasManyApiG return localVarHTTPResponse, nil } -type HasManyApiGETCustomerAddressIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - customerAddressId interface{} +type HasManyApiGETBingGeocoderIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + bingGeocoderId interface{} } -func (r HasManyApiGETCustomerAddressIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerAddressIdEventsExecute(r) +func (r HasManyApiGETBingGeocoderIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBingGeocoderIdAttachmentsExecute(r) } /* -GETCustomerAddressIdEvents Retrieve the events associated to the customer address +GETBingGeocoderIdAttachments Retrieve the attachments associated to the bing geocoder -Retrieve the events associated to the customer address +Retrieve the attachments associated to the bing geocoder @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerAddressId The resource's id - @return HasManyApiGETCustomerAddressIdEventsRequest + @param bingGeocoderId The resource's id + @return HasManyApiGETBingGeocoderIdAttachmentsRequest */ -func (a *HasManyApiService) GETCustomerAddressIdEvents(ctx context.Context, customerAddressId interface{}) HasManyApiGETCustomerAddressIdEventsRequest { - return HasManyApiGETCustomerAddressIdEventsRequest{ - ApiService: a, - ctx: ctx, - customerAddressId: customerAddressId, +func (a *HasManyApiService) GETBingGeocoderIdAttachments(ctx context.Context, bingGeocoderId interface{}) HasManyApiGETBingGeocoderIdAttachmentsRequest { + return HasManyApiGETBingGeocoderIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + bingGeocoderId: bingGeocoderId, } } // Execute executes the request -func (a *HasManyApiService) GETCustomerAddressIdEventsExecute(r HasManyApiGETCustomerAddressIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBingGeocoderIdAttachmentsExecute(r HasManyApiGETBingGeocoderIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerAddressIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBingGeocoderIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customer_addresses/{customerAddressId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"customerAddressId"+"}", url.PathEscape(parameterValueToString(r.customerAddressId, "customerAddressId")), -1) + localVarPath := localBasePath + "/bing_geocoders/{bingGeocoderId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"bingGeocoderId"+"}", url.PathEscape(parameterValueToString(r.bingGeocoderId, "bingGeocoderId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2415,48 +2415,48 @@ func (a *HasManyApiService) GETCustomerAddressIdEventsExecute(r HasManyApiGETCus return localVarHTTPResponse, nil } -type HasManyApiGETCustomerGroupIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - customerGroupId interface{} +type HasManyApiGETBingGeocoderIdMarketsRequest struct { + ctx context.Context + ApiService *HasManyApiService + bingGeocoderId interface{} } -func (r HasManyApiGETCustomerGroupIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerGroupIdAttachmentsExecute(r) +func (r HasManyApiGETBingGeocoderIdMarketsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBingGeocoderIdMarketsExecute(r) } /* -GETCustomerGroupIdAttachments Retrieve the attachments associated to the customer group +GETBingGeocoderIdMarkets Retrieve the markets associated to the bing geocoder -Retrieve the attachments associated to the customer group +Retrieve the markets associated to the bing geocoder @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerGroupId The resource's id - @return HasManyApiGETCustomerGroupIdAttachmentsRequest + @param bingGeocoderId The resource's id + @return HasManyApiGETBingGeocoderIdMarketsRequest */ -func (a *HasManyApiService) GETCustomerGroupIdAttachments(ctx context.Context, customerGroupId interface{}) HasManyApiGETCustomerGroupIdAttachmentsRequest { - return HasManyApiGETCustomerGroupIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - customerGroupId: customerGroupId, +func (a *HasManyApiService) GETBingGeocoderIdMarkets(ctx context.Context, bingGeocoderId interface{}) HasManyApiGETBingGeocoderIdMarketsRequest { + return HasManyApiGETBingGeocoderIdMarketsRequest{ + ApiService: a, + ctx: ctx, + bingGeocoderId: bingGeocoderId, } } // Execute executes the request -func (a *HasManyApiService) GETCustomerGroupIdAttachmentsExecute(r HasManyApiGETCustomerGroupIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBingGeocoderIdMarketsExecute(r HasManyApiGETBingGeocoderIdMarketsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerGroupIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBingGeocoderIdMarkets") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customer_groups/{customerGroupId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"customerGroupId"+"}", url.PathEscape(parameterValueToString(r.customerGroupId, "customerGroupId")), -1) + localVarPath := localBasePath + "/bing_geocoders/{bingGeocoderId}/markets" + localVarPath = strings.Replace(localVarPath, "{"+"bingGeocoderId"+"}", url.PathEscape(parameterValueToString(r.bingGeocoderId, "bingGeocoderId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2507,48 +2507,48 @@ func (a *HasManyApiService) GETCustomerGroupIdAttachmentsExecute(r HasManyApiGET return localVarHTTPResponse, nil } -type HasManyApiGETCustomerGroupIdCustomersRequest struct { - ctx context.Context - ApiService *HasManyApiService - customerGroupId interface{} +type HasManyApiGETBraintreeGatewayIdBraintreePaymentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + braintreeGatewayId interface{} } -func (r HasManyApiGETCustomerGroupIdCustomersRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerGroupIdCustomersExecute(r) +func (r HasManyApiGETBraintreeGatewayIdBraintreePaymentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBraintreeGatewayIdBraintreePaymentsExecute(r) } /* -GETCustomerGroupIdCustomers Retrieve the customers associated to the customer group +GETBraintreeGatewayIdBraintreePayments Retrieve the braintree payments associated to the braintree gateway -Retrieve the customers associated to the customer group +Retrieve the braintree payments associated to the braintree gateway @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerGroupId The resource's id - @return HasManyApiGETCustomerGroupIdCustomersRequest + @param braintreeGatewayId The resource's id + @return HasManyApiGETBraintreeGatewayIdBraintreePaymentsRequest */ -func (a *HasManyApiService) GETCustomerGroupIdCustomers(ctx context.Context, customerGroupId interface{}) HasManyApiGETCustomerGroupIdCustomersRequest { - return HasManyApiGETCustomerGroupIdCustomersRequest{ - ApiService: a, - ctx: ctx, - customerGroupId: customerGroupId, +func (a *HasManyApiService) GETBraintreeGatewayIdBraintreePayments(ctx context.Context, braintreeGatewayId interface{}) HasManyApiGETBraintreeGatewayIdBraintreePaymentsRequest { + return HasManyApiGETBraintreeGatewayIdBraintreePaymentsRequest{ + ApiService: a, + ctx: ctx, + braintreeGatewayId: braintreeGatewayId, } } // Execute executes the request -func (a *HasManyApiService) GETCustomerGroupIdCustomersExecute(r HasManyApiGETCustomerGroupIdCustomersRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBraintreeGatewayIdBraintreePaymentsExecute(r HasManyApiGETBraintreeGatewayIdBraintreePaymentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerGroupIdCustomers") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBraintreeGatewayIdBraintreePayments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customer_groups/{customerGroupId}/customers" - localVarPath = strings.Replace(localVarPath, "{"+"customerGroupId"+"}", url.PathEscape(parameterValueToString(r.customerGroupId, "customerGroupId")), -1) + localVarPath := localBasePath + "/braintree_gateways/{braintreeGatewayId}/braintree_payments" + localVarPath = strings.Replace(localVarPath, "{"+"braintreeGatewayId"+"}", url.PathEscape(parameterValueToString(r.braintreeGatewayId, "braintreeGatewayId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2599,48 +2599,48 @@ func (a *HasManyApiService) GETCustomerGroupIdCustomersExecute(r HasManyApiGETCu return localVarHTTPResponse, nil } -type HasManyApiGETCustomerGroupIdMarketsRequest struct { - ctx context.Context - ApiService *HasManyApiService - customerGroupId interface{} +type HasManyApiGETBraintreeGatewayIdPaymentMethodsRequest struct { + ctx context.Context + ApiService *HasManyApiService + braintreeGatewayId interface{} } -func (r HasManyApiGETCustomerGroupIdMarketsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerGroupIdMarketsExecute(r) +func (r HasManyApiGETBraintreeGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBraintreeGatewayIdPaymentMethodsExecute(r) } /* -GETCustomerGroupIdMarkets Retrieve the markets associated to the customer group +GETBraintreeGatewayIdPaymentMethods Retrieve the payment methods associated to the braintree gateway -Retrieve the markets associated to the customer group +Retrieve the payment methods associated to the braintree gateway @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerGroupId The resource's id - @return HasManyApiGETCustomerGroupIdMarketsRequest + @param braintreeGatewayId The resource's id + @return HasManyApiGETBraintreeGatewayIdPaymentMethodsRequest */ -func (a *HasManyApiService) GETCustomerGroupIdMarkets(ctx context.Context, customerGroupId interface{}) HasManyApiGETCustomerGroupIdMarketsRequest { - return HasManyApiGETCustomerGroupIdMarketsRequest{ - ApiService: a, - ctx: ctx, - customerGroupId: customerGroupId, +func (a *HasManyApiService) GETBraintreeGatewayIdPaymentMethods(ctx context.Context, braintreeGatewayId interface{}) HasManyApiGETBraintreeGatewayIdPaymentMethodsRequest { + return HasManyApiGETBraintreeGatewayIdPaymentMethodsRequest{ + ApiService: a, + ctx: ctx, + braintreeGatewayId: braintreeGatewayId, } } // Execute executes the request -func (a *HasManyApiService) GETCustomerGroupIdMarketsExecute(r HasManyApiGETCustomerGroupIdMarketsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBraintreeGatewayIdPaymentMethodsExecute(r HasManyApiGETBraintreeGatewayIdPaymentMethodsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerGroupIdMarkets") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBraintreeGatewayIdPaymentMethods") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customer_groups/{customerGroupId}/markets" - localVarPath = strings.Replace(localVarPath, "{"+"customerGroupId"+"}", url.PathEscape(parameterValueToString(r.customerGroupId, "customerGroupId")), -1) + localVarPath := localBasePath + "/braintree_gateways/{braintreeGatewayId}/payment_methods" + localVarPath = strings.Replace(localVarPath, "{"+"braintreeGatewayId"+"}", url.PathEscape(parameterValueToString(r.braintreeGatewayId, "braintreeGatewayId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2691,48 +2691,48 @@ func (a *HasManyApiService) GETCustomerGroupIdMarketsExecute(r HasManyApiGETCust return localVarHTTPResponse, nil } -type HasManyApiGETCustomerIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - customerId interface{} +type HasManyApiGETBraintreeGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + braintreeGatewayId interface{} } -func (r HasManyApiGETCustomerIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerIdAttachmentsExecute(r) +func (r HasManyApiGETBraintreeGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBraintreeGatewayIdVersionsExecute(r) } /* -GETCustomerIdAttachments Retrieve the attachments associated to the customer +GETBraintreeGatewayIdVersions Retrieve the versions associated to the braintree gateway -Retrieve the attachments associated to the customer +Retrieve the versions associated to the braintree gateway @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerId The resource's id - @return HasManyApiGETCustomerIdAttachmentsRequest + @param braintreeGatewayId The resource's id + @return HasManyApiGETBraintreeGatewayIdVersionsRequest */ -func (a *HasManyApiService) GETCustomerIdAttachments(ctx context.Context, customerId interface{}) HasManyApiGETCustomerIdAttachmentsRequest { - return HasManyApiGETCustomerIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - customerId: customerId, +func (a *HasManyApiService) GETBraintreeGatewayIdVersions(ctx context.Context, braintreeGatewayId interface{}) HasManyApiGETBraintreeGatewayIdVersionsRequest { + return HasManyApiGETBraintreeGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + braintreeGatewayId: braintreeGatewayId, } } // Execute executes the request -func (a *HasManyApiService) GETCustomerIdAttachmentsExecute(r HasManyApiGETCustomerIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBraintreeGatewayIdVersionsExecute(r HasManyApiGETBraintreeGatewayIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBraintreeGatewayIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customers/{customerId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + localVarPath := localBasePath + "/braintree_gateways/{braintreeGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"braintreeGatewayId"+"}", url.PathEscape(parameterValueToString(r.braintreeGatewayId, "braintreeGatewayId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2783,48 +2783,48 @@ func (a *HasManyApiService) GETCustomerIdAttachmentsExecute(r HasManyApiGETCusto return localVarHTTPResponse, nil } -type HasManyApiGETCustomerIdCustomerAddressesRequest struct { - ctx context.Context - ApiService *HasManyApiService - customerId interface{} +type HasManyApiGETBraintreePaymentIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + braintreePaymentId interface{} } -func (r HasManyApiGETCustomerIdCustomerAddressesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerIdCustomerAddressesExecute(r) +func (r HasManyApiGETBraintreePaymentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBraintreePaymentIdVersionsExecute(r) } /* -GETCustomerIdCustomerAddresses Retrieve the customer addresses associated to the customer +GETBraintreePaymentIdVersions Retrieve the versions associated to the braintree payment -Retrieve the customer addresses associated to the customer +Retrieve the versions associated to the braintree payment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerId The resource's id - @return HasManyApiGETCustomerIdCustomerAddressesRequest + @param braintreePaymentId The resource's id + @return HasManyApiGETBraintreePaymentIdVersionsRequest */ -func (a *HasManyApiService) GETCustomerIdCustomerAddresses(ctx context.Context, customerId interface{}) HasManyApiGETCustomerIdCustomerAddressesRequest { - return HasManyApiGETCustomerIdCustomerAddressesRequest{ - ApiService: a, - ctx: ctx, - customerId: customerId, +func (a *HasManyApiService) GETBraintreePaymentIdVersions(ctx context.Context, braintreePaymentId interface{}) HasManyApiGETBraintreePaymentIdVersionsRequest { + return HasManyApiGETBraintreePaymentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + braintreePaymentId: braintreePaymentId, } } // Execute executes the request -func (a *HasManyApiService) GETCustomerIdCustomerAddressesExecute(r HasManyApiGETCustomerIdCustomerAddressesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBraintreePaymentIdVersionsExecute(r HasManyApiGETBraintreePaymentIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerIdCustomerAddresses") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBraintreePaymentIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customers/{customerId}/customer_addresses" - localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + localVarPath := localBasePath + "/braintree_payments/{braintreePaymentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"braintreePaymentId"+"}", url.PathEscape(parameterValueToString(r.braintreePaymentId, "braintreePaymentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2875,48 +2875,48 @@ func (a *HasManyApiService) GETCustomerIdCustomerAddressesExecute(r HasManyApiGE return localVarHTTPResponse, nil } -type HasManyApiGETCustomerIdCustomerPaymentSourcesRequest struct { +type HasManyApiGETBundleIdAttachmentsRequest struct { ctx context.Context ApiService *HasManyApiService - customerId interface{} + bundleId interface{} } -func (r HasManyApiGETCustomerIdCustomerPaymentSourcesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerIdCustomerPaymentSourcesExecute(r) +func (r HasManyApiGETBundleIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBundleIdAttachmentsExecute(r) } /* -GETCustomerIdCustomerPaymentSources Retrieve the customer payment sources associated to the customer +GETBundleIdAttachments Retrieve the attachments associated to the bundle -Retrieve the customer payment sources associated to the customer +Retrieve the attachments associated to the bundle @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerId The resource's id - @return HasManyApiGETCustomerIdCustomerPaymentSourcesRequest + @param bundleId The resource's id + @return HasManyApiGETBundleIdAttachmentsRequest */ -func (a *HasManyApiService) GETCustomerIdCustomerPaymentSources(ctx context.Context, customerId interface{}) HasManyApiGETCustomerIdCustomerPaymentSourcesRequest { - return HasManyApiGETCustomerIdCustomerPaymentSourcesRequest{ +func (a *HasManyApiService) GETBundleIdAttachments(ctx context.Context, bundleId interface{}) HasManyApiGETBundleIdAttachmentsRequest { + return HasManyApiGETBundleIdAttachmentsRequest{ ApiService: a, ctx: ctx, - customerId: customerId, + bundleId: bundleId, } } // Execute executes the request -func (a *HasManyApiService) GETCustomerIdCustomerPaymentSourcesExecute(r HasManyApiGETCustomerIdCustomerPaymentSourcesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBundleIdAttachmentsExecute(r HasManyApiGETBundleIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerIdCustomerPaymentSources") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBundleIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customers/{customerId}/customer_payment_sources" - localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + localVarPath := localBasePath + "/bundles/{bundleId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"bundleId"+"}", url.PathEscape(parameterValueToString(r.bundleId, "bundleId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2967,48 +2967,48 @@ func (a *HasManyApiService) GETCustomerIdCustomerPaymentSourcesExecute(r HasMany return localVarHTTPResponse, nil } -type HasManyApiGETCustomerIdCustomerSubscriptionsRequest struct { +type HasManyApiGETBundleIdEventsRequest struct { ctx context.Context ApiService *HasManyApiService - customerId interface{} + bundleId interface{} } -func (r HasManyApiGETCustomerIdCustomerSubscriptionsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerIdCustomerSubscriptionsExecute(r) +func (r HasManyApiGETBundleIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBundleIdEventsExecute(r) } /* -GETCustomerIdCustomerSubscriptions Retrieve the customer subscriptions associated to the customer +GETBundleIdEvents Retrieve the events associated to the bundle -Retrieve the customer subscriptions associated to the customer +Retrieve the events associated to the bundle @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerId The resource's id - @return HasManyApiGETCustomerIdCustomerSubscriptionsRequest + @param bundleId The resource's id + @return HasManyApiGETBundleIdEventsRequest */ -func (a *HasManyApiService) GETCustomerIdCustomerSubscriptions(ctx context.Context, customerId interface{}) HasManyApiGETCustomerIdCustomerSubscriptionsRequest { - return HasManyApiGETCustomerIdCustomerSubscriptionsRequest{ +func (a *HasManyApiService) GETBundleIdEvents(ctx context.Context, bundleId interface{}) HasManyApiGETBundleIdEventsRequest { + return HasManyApiGETBundleIdEventsRequest{ ApiService: a, ctx: ctx, - customerId: customerId, + bundleId: bundleId, } } // Execute executes the request -func (a *HasManyApiService) GETCustomerIdCustomerSubscriptionsExecute(r HasManyApiGETCustomerIdCustomerSubscriptionsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBundleIdEventsExecute(r HasManyApiGETBundleIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerIdCustomerSubscriptions") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBundleIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customers/{customerId}/customer_subscriptions" - localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + localVarPath := localBasePath + "/bundles/{bundleId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"bundleId"+"}", url.PathEscape(parameterValueToString(r.bundleId, "bundleId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3059,48 +3059,48 @@ func (a *HasManyApiService) GETCustomerIdCustomerSubscriptionsExecute(r HasManyA return localVarHTTPResponse, nil } -type HasManyApiGETCustomerIdEventsRequest struct { +type HasManyApiGETBundleIdSkusRequest struct { ctx context.Context ApiService *HasManyApiService - customerId interface{} + bundleId interface{} } -func (r HasManyApiGETCustomerIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerIdEventsExecute(r) +func (r HasManyApiGETBundleIdSkusRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBundleIdSkusExecute(r) } /* -GETCustomerIdEvents Retrieve the events associated to the customer +GETBundleIdSkus Retrieve the skus associated to the bundle -Retrieve the events associated to the customer +Retrieve the skus associated to the bundle @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerId The resource's id - @return HasManyApiGETCustomerIdEventsRequest + @param bundleId The resource's id + @return HasManyApiGETBundleIdSkusRequest */ -func (a *HasManyApiService) GETCustomerIdEvents(ctx context.Context, customerId interface{}) HasManyApiGETCustomerIdEventsRequest { - return HasManyApiGETCustomerIdEventsRequest{ - ApiService: a, +func (a *HasManyApiService) GETBundleIdSkus(ctx context.Context, bundleId interface{}) HasManyApiGETBundleIdSkusRequest { + return HasManyApiGETBundleIdSkusRequest{ + ApiService: a, ctx: ctx, - customerId: customerId, + bundleId: bundleId, } } // Execute executes the request -func (a *HasManyApiService) GETCustomerIdEventsExecute(r HasManyApiGETCustomerIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBundleIdSkusExecute(r HasManyApiGETBundleIdSkusRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBundleIdSkus") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customers/{customerId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + localVarPath := localBasePath + "/bundles/{bundleId}/skus" + localVarPath = strings.Replace(localVarPath, "{"+"bundleId"+"}", url.PathEscape(parameterValueToString(r.bundleId, "bundleId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3151,48 +3151,48 @@ func (a *HasManyApiService) GETCustomerIdEventsExecute(r HasManyApiGETCustomerId return localVarHTTPResponse, nil } -type HasManyApiGETCustomerIdOrderSubscriptionsRequest struct { +type HasManyApiGETBundleIdTagsRequest struct { ctx context.Context ApiService *HasManyApiService - customerId interface{} + bundleId interface{} } -func (r HasManyApiGETCustomerIdOrderSubscriptionsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerIdOrderSubscriptionsExecute(r) +func (r HasManyApiGETBundleIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBundleIdTagsExecute(r) } /* -GETCustomerIdOrderSubscriptions Retrieve the order subscriptions associated to the customer +GETBundleIdTags Retrieve the tags associated to the bundle -Retrieve the order subscriptions associated to the customer +Retrieve the tags associated to the bundle @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerId The resource's id - @return HasManyApiGETCustomerIdOrderSubscriptionsRequest + @param bundleId The resource's id + @return HasManyApiGETBundleIdTagsRequest */ -func (a *HasManyApiService) GETCustomerIdOrderSubscriptions(ctx context.Context, customerId interface{}) HasManyApiGETCustomerIdOrderSubscriptionsRequest { - return HasManyApiGETCustomerIdOrderSubscriptionsRequest{ +func (a *HasManyApiService) GETBundleIdTags(ctx context.Context, bundleId interface{}) HasManyApiGETBundleIdTagsRequest { + return HasManyApiGETBundleIdTagsRequest{ ApiService: a, ctx: ctx, - customerId: customerId, + bundleId: bundleId, } } // Execute executes the request -func (a *HasManyApiService) GETCustomerIdOrderSubscriptionsExecute(r HasManyApiGETCustomerIdOrderSubscriptionsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBundleIdTagsExecute(r HasManyApiGETBundleIdTagsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerIdOrderSubscriptions") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBundleIdTags") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customers/{customerId}/order_subscriptions" - localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + localVarPath := localBasePath + "/bundles/{bundleId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"bundleId"+"}", url.PathEscape(parameterValueToString(r.bundleId, "bundleId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3243,48 +3243,48 @@ func (a *HasManyApiService) GETCustomerIdOrderSubscriptionsExecute(r HasManyApiG return localVarHTTPResponse, nil } -type HasManyApiGETCustomerIdOrdersRequest struct { +type HasManyApiGETBundleIdVersionsRequest struct { ctx context.Context ApiService *HasManyApiService - customerId interface{} + bundleId interface{} } -func (r HasManyApiGETCustomerIdOrdersRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerIdOrdersExecute(r) +func (r HasManyApiGETBundleIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBundleIdVersionsExecute(r) } /* -GETCustomerIdOrders Retrieve the orders associated to the customer +GETBundleIdVersions Retrieve the versions associated to the bundle -Retrieve the orders associated to the customer +Retrieve the versions associated to the bundle @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerId The resource's id - @return HasManyApiGETCustomerIdOrdersRequest + @param bundleId The resource's id + @return HasManyApiGETBundleIdVersionsRequest */ -func (a *HasManyApiService) GETCustomerIdOrders(ctx context.Context, customerId interface{}) HasManyApiGETCustomerIdOrdersRequest { - return HasManyApiGETCustomerIdOrdersRequest{ +func (a *HasManyApiService) GETBundleIdVersions(ctx context.Context, bundleId interface{}) HasManyApiGETBundleIdVersionsRequest { + return HasManyApiGETBundleIdVersionsRequest{ ApiService: a, ctx: ctx, - customerId: customerId, + bundleId: bundleId, } } // Execute executes the request -func (a *HasManyApiService) GETCustomerIdOrdersExecute(r HasManyApiGETCustomerIdOrdersRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBundleIdVersionsExecute(r HasManyApiGETBundleIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerIdOrders") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBundleIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customers/{customerId}/orders" - localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + localVarPath := localBasePath + "/bundles/{bundleId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"bundleId"+"}", url.PathEscape(parameterValueToString(r.bundleId, "bundleId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3335,48 +3335,48 @@ func (a *HasManyApiService) GETCustomerIdOrdersExecute(r HasManyApiGETCustomerId return localVarHTTPResponse, nil } -type HasManyApiGETCustomerIdReturnsRequest struct { - ctx context.Context - ApiService *HasManyApiService - customerId interface{} +type HasManyApiGETBuyXPayYPromotionIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + buyXPayYPromotionId interface{} } -func (r HasManyApiGETCustomerIdReturnsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerIdReturnsExecute(r) +func (r HasManyApiGETBuyXPayYPromotionIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdAttachmentsExecute(r) } /* -GETCustomerIdReturns Retrieve the returns associated to the customer +GETBuyXPayYPromotionIdAttachments Retrieve the attachments associated to the buy x pay y promotion -Retrieve the returns associated to the customer +Retrieve the attachments associated to the buy x pay y promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerId The resource's id - @return HasManyApiGETCustomerIdReturnsRequest + @param buyXPayYPromotionId The resource's id + @return HasManyApiGETBuyXPayYPromotionIdAttachmentsRequest */ -func (a *HasManyApiService) GETCustomerIdReturns(ctx context.Context, customerId interface{}) HasManyApiGETCustomerIdReturnsRequest { - return HasManyApiGETCustomerIdReturnsRequest{ - ApiService: a, - ctx: ctx, - customerId: customerId, +func (a *HasManyApiService) GETBuyXPayYPromotionIdAttachments(ctx context.Context, buyXPayYPromotionId interface{}) HasManyApiGETBuyXPayYPromotionIdAttachmentsRequest { + return HasManyApiGETBuyXPayYPromotionIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, } } // Execute executes the request -func (a *HasManyApiService) GETCustomerIdReturnsExecute(r HasManyApiGETCustomerIdReturnsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBuyXPayYPromotionIdAttachmentsExecute(r HasManyApiGETBuyXPayYPromotionIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerIdReturns") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBuyXPayYPromotionIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customers/{customerId}/returns" - localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3427,48 +3427,48 @@ func (a *HasManyApiService) GETCustomerIdReturnsExecute(r HasManyApiGETCustomerI return localVarHTTPResponse, nil } -type HasManyApiGETCustomerIdSkuListsRequest struct { - ctx context.Context - ApiService *HasManyApiService - customerId interface{} +type HasManyApiGETBuyXPayYPromotionIdCouponsRequest struct { + ctx context.Context + ApiService *HasManyApiService + buyXPayYPromotionId interface{} } -func (r HasManyApiGETCustomerIdSkuListsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerIdSkuListsExecute(r) +func (r HasManyApiGETBuyXPayYPromotionIdCouponsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdCouponsExecute(r) } /* -GETCustomerIdSkuLists Retrieve the sku lists associated to the customer +GETBuyXPayYPromotionIdCoupons Retrieve the coupons associated to the buy x pay y promotion -Retrieve the sku lists associated to the customer +Retrieve the coupons associated to the buy x pay y promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerId The resource's id - @return HasManyApiGETCustomerIdSkuListsRequest + @param buyXPayYPromotionId The resource's id + @return HasManyApiGETBuyXPayYPromotionIdCouponsRequest */ -func (a *HasManyApiService) GETCustomerIdSkuLists(ctx context.Context, customerId interface{}) HasManyApiGETCustomerIdSkuListsRequest { - return HasManyApiGETCustomerIdSkuListsRequest{ - ApiService: a, - ctx: ctx, - customerId: customerId, +func (a *HasManyApiService) GETBuyXPayYPromotionIdCoupons(ctx context.Context, buyXPayYPromotionId interface{}) HasManyApiGETBuyXPayYPromotionIdCouponsRequest { + return HasManyApiGETBuyXPayYPromotionIdCouponsRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, } } // Execute executes the request -func (a *HasManyApiService) GETCustomerIdSkuListsExecute(r HasManyApiGETCustomerIdSkuListsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBuyXPayYPromotionIdCouponsExecute(r HasManyApiGETBuyXPayYPromotionIdCouponsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerIdSkuLists") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBuyXPayYPromotionIdCoupons") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customers/{customerId}/sku_lists" - localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/coupons" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3519,48 +3519,48 @@ func (a *HasManyApiService) GETCustomerIdSkuListsExecute(r HasManyApiGETCustomer return localVarHTTPResponse, nil } -type HasManyApiGETCustomerPasswordResetIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - customerPasswordResetId interface{} +type HasManyApiGETBuyXPayYPromotionIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + buyXPayYPromotionId interface{} } -func (r HasManyApiGETCustomerPasswordResetIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerPasswordResetIdEventsExecute(r) +func (r HasManyApiGETBuyXPayYPromotionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdEventsExecute(r) } /* -GETCustomerPasswordResetIdEvents Retrieve the events associated to the customer password reset +GETBuyXPayYPromotionIdEvents Retrieve the events associated to the buy x pay y promotion -Retrieve the events associated to the customer password reset +Retrieve the events associated to the buy x pay y promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerPasswordResetId The resource's id - @return HasManyApiGETCustomerPasswordResetIdEventsRequest + @param buyXPayYPromotionId The resource's id + @return HasManyApiGETBuyXPayYPromotionIdEventsRequest */ -func (a *HasManyApiService) GETCustomerPasswordResetIdEvents(ctx context.Context, customerPasswordResetId interface{}) HasManyApiGETCustomerPasswordResetIdEventsRequest { - return HasManyApiGETCustomerPasswordResetIdEventsRequest{ - ApiService: a, - ctx: ctx, - customerPasswordResetId: customerPasswordResetId, +func (a *HasManyApiService) GETBuyXPayYPromotionIdEvents(ctx context.Context, buyXPayYPromotionId interface{}) HasManyApiGETBuyXPayYPromotionIdEventsRequest { + return HasManyApiGETBuyXPayYPromotionIdEventsRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, } } // Execute executes the request -func (a *HasManyApiService) GETCustomerPasswordResetIdEventsExecute(r HasManyApiGETCustomerPasswordResetIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBuyXPayYPromotionIdEventsExecute(r HasManyApiGETBuyXPayYPromotionIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerPasswordResetIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBuyXPayYPromotionIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customer_password_resets/{customerPasswordResetId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"customerPasswordResetId"+"}", url.PathEscape(parameterValueToString(r.customerPasswordResetId, "customerPasswordResetId")), -1) + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3611,48 +3611,48 @@ func (a *HasManyApiService) GETCustomerPasswordResetIdEventsExecute(r HasManyApi return localVarHTTPResponse, nil } -type HasManyApiGETCustomerSubscriptionIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - customerSubscriptionId interface{} +type HasManyApiGETBuyXPayYPromotionIdSkusRequest struct { + ctx context.Context + ApiService *HasManyApiService + buyXPayYPromotionId interface{} } -func (r HasManyApiGETCustomerSubscriptionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerSubscriptionIdEventsExecute(r) +func (r HasManyApiGETBuyXPayYPromotionIdSkusRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdSkusExecute(r) } /* -GETCustomerSubscriptionIdEvents Retrieve the events associated to the customer subscription +GETBuyXPayYPromotionIdSkus Retrieve the skus associated to the buy x pay y promotion -Retrieve the events associated to the customer subscription +Retrieve the skus associated to the buy x pay y promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerSubscriptionId The resource's id - @return HasManyApiGETCustomerSubscriptionIdEventsRequest + @param buyXPayYPromotionId The resource's id + @return HasManyApiGETBuyXPayYPromotionIdSkusRequest */ -func (a *HasManyApiService) GETCustomerSubscriptionIdEvents(ctx context.Context, customerSubscriptionId interface{}) HasManyApiGETCustomerSubscriptionIdEventsRequest { - return HasManyApiGETCustomerSubscriptionIdEventsRequest{ - ApiService: a, - ctx: ctx, - customerSubscriptionId: customerSubscriptionId, +func (a *HasManyApiService) GETBuyXPayYPromotionIdSkus(ctx context.Context, buyXPayYPromotionId interface{}) HasManyApiGETBuyXPayYPromotionIdSkusRequest { + return HasManyApiGETBuyXPayYPromotionIdSkusRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, } } // Execute executes the request -func (a *HasManyApiService) GETCustomerSubscriptionIdEventsExecute(r HasManyApiGETCustomerSubscriptionIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBuyXPayYPromotionIdSkusExecute(r HasManyApiGETBuyXPayYPromotionIdSkusRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerSubscriptionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBuyXPayYPromotionIdSkus") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customer_subscriptions/{customerSubscriptionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"customerSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.customerSubscriptionId, "customerSubscriptionId")), -1) + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/skus" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3703,48 +3703,48 @@ func (a *HasManyApiService) GETCustomerSubscriptionIdEventsExecute(r HasManyApiG return localVarHTTPResponse, nil } -type HasManyApiGETDeliveryLeadTimeIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - deliveryLeadTimeId interface{} +type HasManyApiGETBuyXPayYPromotionIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + buyXPayYPromotionId interface{} } -func (r HasManyApiGETDeliveryLeadTimeIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETDeliveryLeadTimeIdAttachmentsExecute(r) +func (r HasManyApiGETBuyXPayYPromotionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdTagsExecute(r) } /* -GETDeliveryLeadTimeIdAttachments Retrieve the attachments associated to the delivery lead time +GETBuyXPayYPromotionIdTags Retrieve the tags associated to the buy x pay y promotion -Retrieve the attachments associated to the delivery lead time +Retrieve the tags associated to the buy x pay y promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param deliveryLeadTimeId The resource's id - @return HasManyApiGETDeliveryLeadTimeIdAttachmentsRequest + @param buyXPayYPromotionId The resource's id + @return HasManyApiGETBuyXPayYPromotionIdTagsRequest */ -func (a *HasManyApiService) GETDeliveryLeadTimeIdAttachments(ctx context.Context, deliveryLeadTimeId interface{}) HasManyApiGETDeliveryLeadTimeIdAttachmentsRequest { - return HasManyApiGETDeliveryLeadTimeIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - deliveryLeadTimeId: deliveryLeadTimeId, +func (a *HasManyApiService) GETBuyXPayYPromotionIdTags(ctx context.Context, buyXPayYPromotionId interface{}) HasManyApiGETBuyXPayYPromotionIdTagsRequest { + return HasManyApiGETBuyXPayYPromotionIdTagsRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, } } // Execute executes the request -func (a *HasManyApiService) GETDeliveryLeadTimeIdAttachmentsExecute(r HasManyApiGETDeliveryLeadTimeIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBuyXPayYPromotionIdTagsExecute(r HasManyApiGETBuyXPayYPromotionIdTagsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETDeliveryLeadTimeIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBuyXPayYPromotionIdTags") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/delivery_lead_times/{deliveryLeadTimeId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"deliveryLeadTimeId"+"}", url.PathEscape(parameterValueToString(r.deliveryLeadTimeId, "deliveryLeadTimeId")), -1) + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3795,48 +3795,48 @@ func (a *HasManyApiService) GETDeliveryLeadTimeIdAttachmentsExecute(r HasManyApi return localVarHTTPResponse, nil } -type HasManyApiGETEventIdLastEventCallbacksRequest struct { - ctx context.Context - ApiService *HasManyApiService - eventId interface{} +type HasManyApiGETBuyXPayYPromotionIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + buyXPayYPromotionId interface{} } -func (r HasManyApiGETEventIdLastEventCallbacksRequest) Execute() (*http.Response, error) { - return r.ApiService.GETEventIdLastEventCallbacksExecute(r) +func (r HasManyApiGETBuyXPayYPromotionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdVersionsExecute(r) } /* -GETEventIdLastEventCallbacks Retrieve the last event callbacks associated to the event +GETBuyXPayYPromotionIdVersions Retrieve the versions associated to the buy x pay y promotion -Retrieve the last event callbacks associated to the event +Retrieve the versions associated to the buy x pay y promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param eventId The resource's id - @return HasManyApiGETEventIdLastEventCallbacksRequest + @param buyXPayYPromotionId The resource's id + @return HasManyApiGETBuyXPayYPromotionIdVersionsRequest */ -func (a *HasManyApiService) GETEventIdLastEventCallbacks(ctx context.Context, eventId interface{}) HasManyApiGETEventIdLastEventCallbacksRequest { - return HasManyApiGETEventIdLastEventCallbacksRequest{ - ApiService: a, - ctx: ctx, - eventId: eventId, +func (a *HasManyApiService) GETBuyXPayYPromotionIdVersions(ctx context.Context, buyXPayYPromotionId interface{}) HasManyApiGETBuyXPayYPromotionIdVersionsRequest { + return HasManyApiGETBuyXPayYPromotionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, } } // Execute executes the request -func (a *HasManyApiService) GETEventIdLastEventCallbacksExecute(r HasManyApiGETEventIdLastEventCallbacksRequest) (*http.Response, error) { +func (a *HasManyApiService) GETBuyXPayYPromotionIdVersionsExecute(r HasManyApiGETBuyXPayYPromotionIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETEventIdLastEventCallbacks") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETBuyXPayYPromotionIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/events/{eventId}/last_event_callbacks" - localVarPath = strings.Replace(localVarPath, "{"+"eventId"+"}", url.PathEscape(parameterValueToString(r.eventId, "eventId")), -1) + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3887,48 +3887,48 @@ func (a *HasManyApiService) GETEventIdLastEventCallbacksExecute(r HasManyApiGETE return localVarHTTPResponse, nil } -type HasManyApiGETEventIdWebhooksRequest struct { +type HasManyApiGETCaptureIdAttachmentsRequest struct { ctx context.Context ApiService *HasManyApiService - eventId interface{} + captureId interface{} } -func (r HasManyApiGETEventIdWebhooksRequest) Execute() (*http.Response, error) { - return r.ApiService.GETEventIdWebhooksExecute(r) +func (r HasManyApiGETCaptureIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCaptureIdAttachmentsExecute(r) } /* -GETEventIdWebhooks Retrieve the webhooks associated to the event +GETCaptureIdAttachments Retrieve the attachments associated to the capture -Retrieve the webhooks associated to the event +Retrieve the attachments associated to the capture @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param eventId The resource's id - @return HasManyApiGETEventIdWebhooksRequest + @param captureId The resource's id + @return HasManyApiGETCaptureIdAttachmentsRequest */ -func (a *HasManyApiService) GETEventIdWebhooks(ctx context.Context, eventId interface{}) HasManyApiGETEventIdWebhooksRequest { - return HasManyApiGETEventIdWebhooksRequest{ +func (a *HasManyApiService) GETCaptureIdAttachments(ctx context.Context, captureId interface{}) HasManyApiGETCaptureIdAttachmentsRequest { + return HasManyApiGETCaptureIdAttachmentsRequest{ ApiService: a, ctx: ctx, - eventId: eventId, + captureId: captureId, } } // Execute executes the request -func (a *HasManyApiService) GETEventIdWebhooksExecute(r HasManyApiGETEventIdWebhooksRequest) (*http.Response, error) { +func (a *HasManyApiService) GETCaptureIdAttachmentsExecute(r HasManyApiGETCaptureIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETEventIdWebhooks") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCaptureIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/events/{eventId}/webhooks" - localVarPath = strings.Replace(localVarPath, "{"+"eventId"+"}", url.PathEscape(parameterValueToString(r.eventId, "eventId")), -1) + localVarPath := localBasePath + "/captures/{captureId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"captureId"+"}", url.PathEscape(parameterValueToString(r.captureId, "captureId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3979,48 +3979,48 @@ func (a *HasManyApiService) GETEventIdWebhooksExecute(r HasManyApiGETEventIdWebh return localVarHTTPResponse, nil } -type HasManyApiGETExportIdEventsRequest struct { +type HasManyApiGETCaptureIdEventsRequest struct { ctx context.Context ApiService *HasManyApiService - exportId interface{} + captureId interface{} } -func (r HasManyApiGETExportIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETExportIdEventsExecute(r) +func (r HasManyApiGETCaptureIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCaptureIdEventsExecute(r) } /* -GETExportIdEvents Retrieve the events associated to the export +GETCaptureIdEvents Retrieve the events associated to the capture -Retrieve the events associated to the export +Retrieve the events associated to the capture @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param exportId The resource's id - @return HasManyApiGETExportIdEventsRequest + @param captureId The resource's id + @return HasManyApiGETCaptureIdEventsRequest */ -func (a *HasManyApiService) GETExportIdEvents(ctx context.Context, exportId interface{}) HasManyApiGETExportIdEventsRequest { - return HasManyApiGETExportIdEventsRequest{ +func (a *HasManyApiService) GETCaptureIdEvents(ctx context.Context, captureId interface{}) HasManyApiGETCaptureIdEventsRequest { + return HasManyApiGETCaptureIdEventsRequest{ ApiService: a, ctx: ctx, - exportId: exportId, + captureId: captureId, } } // Execute executes the request -func (a *HasManyApiService) GETExportIdEventsExecute(r HasManyApiGETExportIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETCaptureIdEventsExecute(r HasManyApiGETCaptureIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExportIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCaptureIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/exports/{exportId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"exportId"+"}", url.PathEscape(parameterValueToString(r.exportId, "exportId")), -1) + localVarPath := localBasePath + "/captures/{captureId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"captureId"+"}", url.PathEscape(parameterValueToString(r.captureId, "captureId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4071,48 +4071,48 @@ func (a *HasManyApiService) GETExportIdEventsExecute(r HasManyApiGETExportIdEven return localVarHTTPResponse, nil } -type HasManyApiGETExternalGatewayIdExternalPaymentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - externalGatewayId interface{} +type HasManyApiGETCaptureIdRefundsRequest struct { + ctx context.Context + ApiService *HasManyApiService + captureId interface{} } -func (r HasManyApiGETExternalGatewayIdExternalPaymentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETExternalGatewayIdExternalPaymentsExecute(r) +func (r HasManyApiGETCaptureIdRefundsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCaptureIdRefundsExecute(r) } /* -GETExternalGatewayIdExternalPayments Retrieve the external payments associated to the external gateway +GETCaptureIdRefunds Retrieve the refunds associated to the capture -Retrieve the external payments associated to the external gateway +Retrieve the refunds associated to the capture @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param externalGatewayId The resource's id - @return HasManyApiGETExternalGatewayIdExternalPaymentsRequest + @param captureId The resource's id + @return HasManyApiGETCaptureIdRefundsRequest */ -func (a *HasManyApiService) GETExternalGatewayIdExternalPayments(ctx context.Context, externalGatewayId interface{}) HasManyApiGETExternalGatewayIdExternalPaymentsRequest { - return HasManyApiGETExternalGatewayIdExternalPaymentsRequest{ - ApiService: a, - ctx: ctx, - externalGatewayId: externalGatewayId, +func (a *HasManyApiService) GETCaptureIdRefunds(ctx context.Context, captureId interface{}) HasManyApiGETCaptureIdRefundsRequest { + return HasManyApiGETCaptureIdRefundsRequest{ + ApiService: a, + ctx: ctx, + captureId: captureId, } } // Execute executes the request -func (a *HasManyApiService) GETExternalGatewayIdExternalPaymentsExecute(r HasManyApiGETExternalGatewayIdExternalPaymentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETCaptureIdRefundsExecute(r HasManyApiGETCaptureIdRefundsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExternalGatewayIdExternalPayments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCaptureIdRefunds") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/external_gateways/{externalGatewayId}/external_payments" - localVarPath = strings.Replace(localVarPath, "{"+"externalGatewayId"+"}", url.PathEscape(parameterValueToString(r.externalGatewayId, "externalGatewayId")), -1) + localVarPath := localBasePath + "/captures/{captureId}/refunds" + localVarPath = strings.Replace(localVarPath, "{"+"captureId"+"}", url.PathEscape(parameterValueToString(r.captureId, "captureId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4163,48 +4163,48 @@ func (a *HasManyApiService) GETExternalGatewayIdExternalPaymentsExecute(r HasMan return localVarHTTPResponse, nil } -type HasManyApiGETExternalGatewayIdPaymentMethodsRequest struct { - ctx context.Context - ApiService *HasManyApiService - externalGatewayId interface{} +type HasManyApiGETCaptureIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + captureId interface{} } -func (r HasManyApiGETExternalGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETExternalGatewayIdPaymentMethodsExecute(r) +func (r HasManyApiGETCaptureIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCaptureIdVersionsExecute(r) } /* -GETExternalGatewayIdPaymentMethods Retrieve the payment methods associated to the external gateway +GETCaptureIdVersions Retrieve the versions associated to the capture -Retrieve the payment methods associated to the external gateway +Retrieve the versions associated to the capture @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param externalGatewayId The resource's id - @return HasManyApiGETExternalGatewayIdPaymentMethodsRequest + @param captureId The resource's id + @return HasManyApiGETCaptureIdVersionsRequest */ -func (a *HasManyApiService) GETExternalGatewayIdPaymentMethods(ctx context.Context, externalGatewayId interface{}) HasManyApiGETExternalGatewayIdPaymentMethodsRequest { - return HasManyApiGETExternalGatewayIdPaymentMethodsRequest{ - ApiService: a, - ctx: ctx, - externalGatewayId: externalGatewayId, +func (a *HasManyApiService) GETCaptureIdVersions(ctx context.Context, captureId interface{}) HasManyApiGETCaptureIdVersionsRequest { + return HasManyApiGETCaptureIdVersionsRequest{ + ApiService: a, + ctx: ctx, + captureId: captureId, } } // Execute executes the request -func (a *HasManyApiService) GETExternalGatewayIdPaymentMethodsExecute(r HasManyApiGETExternalGatewayIdPaymentMethodsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETCaptureIdVersionsExecute(r HasManyApiGETCaptureIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExternalGatewayIdPaymentMethods") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCaptureIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/external_gateways/{externalGatewayId}/payment_methods" - localVarPath = strings.Replace(localVarPath, "{"+"externalGatewayId"+"}", url.PathEscape(parameterValueToString(r.externalGatewayId, "externalGatewayId")), -1) + localVarPath := localBasePath + "/captures/{captureId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"captureId"+"}", url.PathEscape(parameterValueToString(r.captureId, "captureId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4255,48 +4255,48 @@ func (a *HasManyApiService) GETExternalGatewayIdPaymentMethodsExecute(r HasManyA return localVarHTTPResponse, nil } -type HasManyApiGETExternalPromotionIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - externalPromotionId interface{} +type HasManyApiGETCarrierAccountIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + carrierAccountId interface{} } -func (r HasManyApiGETExternalPromotionIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETExternalPromotionIdAttachmentsExecute(r) +func (r HasManyApiGETCarrierAccountIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCarrierAccountIdAttachmentsExecute(r) } /* -GETExternalPromotionIdAttachments Retrieve the attachments associated to the external promotion +GETCarrierAccountIdAttachments Retrieve the attachments associated to the carrier account -Retrieve the attachments associated to the external promotion +Retrieve the attachments associated to the carrier account @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param externalPromotionId The resource's id - @return HasManyApiGETExternalPromotionIdAttachmentsRequest + @param carrierAccountId The resource's id + @return HasManyApiGETCarrierAccountIdAttachmentsRequest */ -func (a *HasManyApiService) GETExternalPromotionIdAttachments(ctx context.Context, externalPromotionId interface{}) HasManyApiGETExternalPromotionIdAttachmentsRequest { - return HasManyApiGETExternalPromotionIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - externalPromotionId: externalPromotionId, +func (a *HasManyApiService) GETCarrierAccountIdAttachments(ctx context.Context, carrierAccountId interface{}) HasManyApiGETCarrierAccountIdAttachmentsRequest { + return HasManyApiGETCarrierAccountIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + carrierAccountId: carrierAccountId, } } // Execute executes the request -func (a *HasManyApiService) GETExternalPromotionIdAttachmentsExecute(r HasManyApiGETExternalPromotionIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETCarrierAccountIdAttachmentsExecute(r HasManyApiGETCarrierAccountIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExternalPromotionIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCarrierAccountIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + localVarPath := localBasePath + "/carrier_accounts/{carrierAccountId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"carrierAccountId"+"}", url.PathEscape(parameterValueToString(r.carrierAccountId, "carrierAccountId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4347,48 +4347,48 @@ func (a *HasManyApiService) GETExternalPromotionIdAttachmentsExecute(r HasManyAp return localVarHTTPResponse, nil } -type HasManyApiGETExternalPromotionIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - externalPromotionId interface{} +type HasManyApiGETCarrierAccountIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + carrierAccountId interface{} } -func (r HasManyApiGETExternalPromotionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETExternalPromotionIdEventsExecute(r) +func (r HasManyApiGETCarrierAccountIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCarrierAccountIdVersionsExecute(r) } /* -GETExternalPromotionIdEvents Retrieve the events associated to the external promotion +GETCarrierAccountIdVersions Retrieve the versions associated to the carrier account -Retrieve the events associated to the external promotion +Retrieve the versions associated to the carrier account @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param externalPromotionId The resource's id - @return HasManyApiGETExternalPromotionIdEventsRequest + @param carrierAccountId The resource's id + @return HasManyApiGETCarrierAccountIdVersionsRequest */ -func (a *HasManyApiService) GETExternalPromotionIdEvents(ctx context.Context, externalPromotionId interface{}) HasManyApiGETExternalPromotionIdEventsRequest { - return HasManyApiGETExternalPromotionIdEventsRequest{ - ApiService: a, - ctx: ctx, - externalPromotionId: externalPromotionId, +func (a *HasManyApiService) GETCarrierAccountIdVersions(ctx context.Context, carrierAccountId interface{}) HasManyApiGETCarrierAccountIdVersionsRequest { + return HasManyApiGETCarrierAccountIdVersionsRequest{ + ApiService: a, + ctx: ctx, + carrierAccountId: carrierAccountId, } } // Execute executes the request -func (a *HasManyApiService) GETExternalPromotionIdEventsExecute(r HasManyApiGETExternalPromotionIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETCarrierAccountIdVersionsExecute(r HasManyApiGETCarrierAccountIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExternalPromotionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCarrierAccountIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + localVarPath := localBasePath + "/carrier_accounts/{carrierAccountId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"carrierAccountId"+"}", url.PathEscape(parameterValueToString(r.carrierAccountId, "carrierAccountId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4439,48 +4439,48 @@ func (a *HasManyApiService) GETExternalPromotionIdEventsExecute(r HasManyApiGETE return localVarHTTPResponse, nil } -type HasManyApiGETExternalTaxCalculatorIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - externalTaxCalculatorId interface{} +type HasManyApiGETCheckoutComGatewayIdCheckoutComPaymentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + checkoutComGatewayId interface{} } -func (r HasManyApiGETExternalTaxCalculatorIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETExternalTaxCalculatorIdAttachmentsExecute(r) +func (r HasManyApiGETCheckoutComGatewayIdCheckoutComPaymentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCheckoutComGatewayIdCheckoutComPaymentsExecute(r) } /* -GETExternalTaxCalculatorIdAttachments Retrieve the attachments associated to the external tax calculator +GETCheckoutComGatewayIdCheckoutComPayments Retrieve the checkout com payments associated to the checkout.com gateway -Retrieve the attachments associated to the external tax calculator +Retrieve the checkout com payments associated to the checkout.com gateway @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param externalTaxCalculatorId The resource's id - @return HasManyApiGETExternalTaxCalculatorIdAttachmentsRequest + @param checkoutComGatewayId The resource's id + @return HasManyApiGETCheckoutComGatewayIdCheckoutComPaymentsRequest */ -func (a *HasManyApiService) GETExternalTaxCalculatorIdAttachments(ctx context.Context, externalTaxCalculatorId interface{}) HasManyApiGETExternalTaxCalculatorIdAttachmentsRequest { - return HasManyApiGETExternalTaxCalculatorIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - externalTaxCalculatorId: externalTaxCalculatorId, +func (a *HasManyApiService) GETCheckoutComGatewayIdCheckoutComPayments(ctx context.Context, checkoutComGatewayId interface{}) HasManyApiGETCheckoutComGatewayIdCheckoutComPaymentsRequest { + return HasManyApiGETCheckoutComGatewayIdCheckoutComPaymentsRequest{ + ApiService: a, + ctx: ctx, + checkoutComGatewayId: checkoutComGatewayId, } } // Execute executes the request -func (a *HasManyApiService) GETExternalTaxCalculatorIdAttachmentsExecute(r HasManyApiGETExternalTaxCalculatorIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETCheckoutComGatewayIdCheckoutComPaymentsExecute(r HasManyApiGETCheckoutComGatewayIdCheckoutComPaymentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExternalTaxCalculatorIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCheckoutComGatewayIdCheckoutComPayments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/external_tax_calculators/{externalTaxCalculatorId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"externalTaxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.externalTaxCalculatorId, "externalTaxCalculatorId")), -1) + localVarPath := localBasePath + "/checkout_com_gateways/{checkoutComGatewayId}/checkout_com_payments" + localVarPath = strings.Replace(localVarPath, "{"+"checkoutComGatewayId"+"}", url.PathEscape(parameterValueToString(r.checkoutComGatewayId, "checkoutComGatewayId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4531,48 +4531,48 @@ func (a *HasManyApiService) GETExternalTaxCalculatorIdAttachmentsExecute(r HasMa return localVarHTTPResponse, nil } -type HasManyApiGETExternalTaxCalculatorIdMarketsRequest struct { - ctx context.Context - ApiService *HasManyApiService - externalTaxCalculatorId interface{} +type HasManyApiGETCheckoutComGatewayIdPaymentMethodsRequest struct { + ctx context.Context + ApiService *HasManyApiService + checkoutComGatewayId interface{} } -func (r HasManyApiGETExternalTaxCalculatorIdMarketsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETExternalTaxCalculatorIdMarketsExecute(r) +func (r HasManyApiGETCheckoutComGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCheckoutComGatewayIdPaymentMethodsExecute(r) } /* -GETExternalTaxCalculatorIdMarkets Retrieve the markets associated to the external tax calculator +GETCheckoutComGatewayIdPaymentMethods Retrieve the payment methods associated to the checkout.com gateway -Retrieve the markets associated to the external tax calculator +Retrieve the payment methods associated to the checkout.com gateway @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param externalTaxCalculatorId The resource's id - @return HasManyApiGETExternalTaxCalculatorIdMarketsRequest + @param checkoutComGatewayId The resource's id + @return HasManyApiGETCheckoutComGatewayIdPaymentMethodsRequest */ -func (a *HasManyApiService) GETExternalTaxCalculatorIdMarkets(ctx context.Context, externalTaxCalculatorId interface{}) HasManyApiGETExternalTaxCalculatorIdMarketsRequest { - return HasManyApiGETExternalTaxCalculatorIdMarketsRequest{ - ApiService: a, - ctx: ctx, - externalTaxCalculatorId: externalTaxCalculatorId, +func (a *HasManyApiService) GETCheckoutComGatewayIdPaymentMethods(ctx context.Context, checkoutComGatewayId interface{}) HasManyApiGETCheckoutComGatewayIdPaymentMethodsRequest { + return HasManyApiGETCheckoutComGatewayIdPaymentMethodsRequest{ + ApiService: a, + ctx: ctx, + checkoutComGatewayId: checkoutComGatewayId, } } // Execute executes the request -func (a *HasManyApiService) GETExternalTaxCalculatorIdMarketsExecute(r HasManyApiGETExternalTaxCalculatorIdMarketsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETCheckoutComGatewayIdPaymentMethodsExecute(r HasManyApiGETCheckoutComGatewayIdPaymentMethodsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExternalTaxCalculatorIdMarkets") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCheckoutComGatewayIdPaymentMethods") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/external_tax_calculators/{externalTaxCalculatorId}/markets" - localVarPath = strings.Replace(localVarPath, "{"+"externalTaxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.externalTaxCalculatorId, "externalTaxCalculatorId")), -1) + localVarPath := localBasePath + "/checkout_com_gateways/{checkoutComGatewayId}/payment_methods" + localVarPath = strings.Replace(localVarPath, "{"+"checkoutComGatewayId"+"}", url.PathEscape(parameterValueToString(r.checkoutComGatewayId, "checkoutComGatewayId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4623,48 +4623,48 @@ func (a *HasManyApiService) GETExternalTaxCalculatorIdMarketsExecute(r HasManyAp return localVarHTTPResponse, nil } -type HasManyApiGETFixedAmountPromotionIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - fixedAmountPromotionId interface{} +type HasManyApiGETCheckoutComGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + checkoutComGatewayId interface{} } -func (r HasManyApiGETFixedAmountPromotionIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFixedAmountPromotionIdAttachmentsExecute(r) +func (r HasManyApiGETCheckoutComGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCheckoutComGatewayIdVersionsExecute(r) } /* -GETFixedAmountPromotionIdAttachments Retrieve the attachments associated to the fixed amount promotion +GETCheckoutComGatewayIdVersions Retrieve the versions associated to the checkout.com gateway -Retrieve the attachments associated to the fixed amount promotion +Retrieve the versions associated to the checkout.com gateway @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param fixedAmountPromotionId The resource's id - @return HasManyApiGETFixedAmountPromotionIdAttachmentsRequest + @param checkoutComGatewayId The resource's id + @return HasManyApiGETCheckoutComGatewayIdVersionsRequest */ -func (a *HasManyApiService) GETFixedAmountPromotionIdAttachments(ctx context.Context, fixedAmountPromotionId interface{}) HasManyApiGETFixedAmountPromotionIdAttachmentsRequest { - return HasManyApiGETFixedAmountPromotionIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - fixedAmountPromotionId: fixedAmountPromotionId, +func (a *HasManyApiService) GETCheckoutComGatewayIdVersions(ctx context.Context, checkoutComGatewayId interface{}) HasManyApiGETCheckoutComGatewayIdVersionsRequest { + return HasManyApiGETCheckoutComGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + checkoutComGatewayId: checkoutComGatewayId, } } // Execute executes the request -func (a *HasManyApiService) GETFixedAmountPromotionIdAttachmentsExecute(r HasManyApiGETFixedAmountPromotionIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETCheckoutComGatewayIdVersionsExecute(r HasManyApiGETCheckoutComGatewayIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFixedAmountPromotionIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCheckoutComGatewayIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + localVarPath := localBasePath + "/checkout_com_gateways/{checkoutComGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"checkoutComGatewayId"+"}", url.PathEscape(parameterValueToString(r.checkoutComGatewayId, "checkoutComGatewayId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4715,48 +4715,48 @@ func (a *HasManyApiService) GETFixedAmountPromotionIdAttachmentsExecute(r HasMan return localVarHTTPResponse, nil } -type HasManyApiGETFixedAmountPromotionIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - fixedAmountPromotionId interface{} +type HasManyApiGETCheckoutComPaymentIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + checkoutComPaymentId interface{} } -func (r HasManyApiGETFixedAmountPromotionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFixedAmountPromotionIdEventsExecute(r) +func (r HasManyApiGETCheckoutComPaymentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCheckoutComPaymentIdVersionsExecute(r) } /* -GETFixedAmountPromotionIdEvents Retrieve the events associated to the fixed amount promotion +GETCheckoutComPaymentIdVersions Retrieve the versions associated to the checkout.com payment -Retrieve the events associated to the fixed amount promotion +Retrieve the versions associated to the checkout.com payment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param fixedAmountPromotionId The resource's id - @return HasManyApiGETFixedAmountPromotionIdEventsRequest + @param checkoutComPaymentId The resource's id + @return HasManyApiGETCheckoutComPaymentIdVersionsRequest */ -func (a *HasManyApiService) GETFixedAmountPromotionIdEvents(ctx context.Context, fixedAmountPromotionId interface{}) HasManyApiGETFixedAmountPromotionIdEventsRequest { - return HasManyApiGETFixedAmountPromotionIdEventsRequest{ - ApiService: a, - ctx: ctx, - fixedAmountPromotionId: fixedAmountPromotionId, +func (a *HasManyApiService) GETCheckoutComPaymentIdVersions(ctx context.Context, checkoutComPaymentId interface{}) HasManyApiGETCheckoutComPaymentIdVersionsRequest { + return HasManyApiGETCheckoutComPaymentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + checkoutComPaymentId: checkoutComPaymentId, } } // Execute executes the request -func (a *HasManyApiService) GETFixedAmountPromotionIdEventsExecute(r HasManyApiGETFixedAmountPromotionIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETCheckoutComPaymentIdVersionsExecute(r HasManyApiGETCheckoutComPaymentIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFixedAmountPromotionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCheckoutComPaymentIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + localVarPath := localBasePath + "/checkout_com_payments/{checkoutComPaymentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"checkoutComPaymentId"+"}", url.PathEscape(parameterValueToString(r.checkoutComPaymentId, "checkoutComPaymentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4807,48 +4807,48 @@ func (a *HasManyApiService) GETFixedAmountPromotionIdEventsExecute(r HasManyApiG return localVarHTTPResponse, nil } -type HasManyApiGETFixedPricePromotionIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - fixedPricePromotionId interface{} +type HasManyApiGETCleanupIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + cleanupId interface{} } -func (r HasManyApiGETFixedPricePromotionIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFixedPricePromotionIdAttachmentsExecute(r) +func (r HasManyApiGETCleanupIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCleanupIdEventsExecute(r) } /* -GETFixedPricePromotionIdAttachments Retrieve the attachments associated to the fixed price promotion +GETCleanupIdEvents Retrieve the events associated to the cleanup -Retrieve the attachments associated to the fixed price promotion +Retrieve the events associated to the cleanup @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param fixedPricePromotionId The resource's id - @return HasManyApiGETFixedPricePromotionIdAttachmentsRequest + @param cleanupId The resource's id + @return HasManyApiGETCleanupIdEventsRequest */ -func (a *HasManyApiService) GETFixedPricePromotionIdAttachments(ctx context.Context, fixedPricePromotionId interface{}) HasManyApiGETFixedPricePromotionIdAttachmentsRequest { - return HasManyApiGETFixedPricePromotionIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - fixedPricePromotionId: fixedPricePromotionId, +func (a *HasManyApiService) GETCleanupIdEvents(ctx context.Context, cleanupId interface{}) HasManyApiGETCleanupIdEventsRequest { + return HasManyApiGETCleanupIdEventsRequest{ + ApiService: a, + ctx: ctx, + cleanupId: cleanupId, } } // Execute executes the request -func (a *HasManyApiService) GETFixedPricePromotionIdAttachmentsExecute(r HasManyApiGETFixedPricePromotionIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETCleanupIdEventsExecute(r HasManyApiGETCleanupIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFixedPricePromotionIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCleanupIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + localVarPath := localBasePath + "/cleanups/{cleanupId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"cleanupId"+"}", url.PathEscape(parameterValueToString(r.cleanupId, "cleanupId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4899,48 +4899,48 @@ func (a *HasManyApiService) GETFixedPricePromotionIdAttachmentsExecute(r HasMany return localVarHTTPResponse, nil } -type HasManyApiGETFixedPricePromotionIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - fixedPricePromotionId interface{} +type HasManyApiGETCleanupIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + cleanupId interface{} } -func (r HasManyApiGETFixedPricePromotionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFixedPricePromotionIdEventsExecute(r) +func (r HasManyApiGETCleanupIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCleanupIdVersionsExecute(r) } /* -GETFixedPricePromotionIdEvents Retrieve the events associated to the fixed price promotion +GETCleanupIdVersions Retrieve the versions associated to the cleanup -Retrieve the events associated to the fixed price promotion +Retrieve the versions associated to the cleanup @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param fixedPricePromotionId The resource's id - @return HasManyApiGETFixedPricePromotionIdEventsRequest + @param cleanupId The resource's id + @return HasManyApiGETCleanupIdVersionsRequest */ -func (a *HasManyApiService) GETFixedPricePromotionIdEvents(ctx context.Context, fixedPricePromotionId interface{}) HasManyApiGETFixedPricePromotionIdEventsRequest { - return HasManyApiGETFixedPricePromotionIdEventsRequest{ - ApiService: a, - ctx: ctx, - fixedPricePromotionId: fixedPricePromotionId, +func (a *HasManyApiService) GETCleanupIdVersions(ctx context.Context, cleanupId interface{}) HasManyApiGETCleanupIdVersionsRequest { + return HasManyApiGETCleanupIdVersionsRequest{ + ApiService: a, + ctx: ctx, + cleanupId: cleanupId, } } // Execute executes the request -func (a *HasManyApiService) GETFixedPricePromotionIdEventsExecute(r HasManyApiGETFixedPricePromotionIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETCleanupIdVersionsExecute(r HasManyApiGETCleanupIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFixedPricePromotionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCleanupIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + localVarPath := localBasePath + "/cleanups/{cleanupId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"cleanupId"+"}", url.PathEscape(parameterValueToString(r.cleanupId, "cleanupId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4991,48 +4991,48 @@ func (a *HasManyApiService) GETFixedPricePromotionIdEventsExecute(r HasManyApiGE return localVarHTTPResponse, nil } -type HasManyApiGETFixedPricePromotionIdSkusRequest struct { - ctx context.Context - ApiService *HasManyApiService - fixedPricePromotionId interface{} +type HasManyApiGETCouponCodesPromotionRuleIdCouponsRequest struct { + ctx context.Context + ApiService *HasManyApiService + couponCodesPromotionRuleId interface{} } -func (r HasManyApiGETFixedPricePromotionIdSkusRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFixedPricePromotionIdSkusExecute(r) +func (r HasManyApiGETCouponCodesPromotionRuleIdCouponsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCouponCodesPromotionRuleIdCouponsExecute(r) } /* -GETFixedPricePromotionIdSkus Retrieve the skus associated to the fixed price promotion +GETCouponCodesPromotionRuleIdCoupons Retrieve the coupons associated to the coupon codes promotion rule -Retrieve the skus associated to the fixed price promotion +Retrieve the coupons associated to the coupon codes promotion rule @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param fixedPricePromotionId The resource's id - @return HasManyApiGETFixedPricePromotionIdSkusRequest + @param couponCodesPromotionRuleId The resource's id + @return HasManyApiGETCouponCodesPromotionRuleIdCouponsRequest */ -func (a *HasManyApiService) GETFixedPricePromotionIdSkus(ctx context.Context, fixedPricePromotionId interface{}) HasManyApiGETFixedPricePromotionIdSkusRequest { - return HasManyApiGETFixedPricePromotionIdSkusRequest{ - ApiService: a, - ctx: ctx, - fixedPricePromotionId: fixedPricePromotionId, +func (a *HasManyApiService) GETCouponCodesPromotionRuleIdCoupons(ctx context.Context, couponCodesPromotionRuleId interface{}) HasManyApiGETCouponCodesPromotionRuleIdCouponsRequest { + return HasManyApiGETCouponCodesPromotionRuleIdCouponsRequest{ + ApiService: a, + ctx: ctx, + couponCodesPromotionRuleId: couponCodesPromotionRuleId, } } // Execute executes the request -func (a *HasManyApiService) GETFixedPricePromotionIdSkusExecute(r HasManyApiGETFixedPricePromotionIdSkusRequest) (*http.Response, error) { +func (a *HasManyApiService) GETCouponCodesPromotionRuleIdCouponsExecute(r HasManyApiGETCouponCodesPromotionRuleIdCouponsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFixedPricePromotionIdSkus") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCouponCodesPromotionRuleIdCoupons") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/skus" - localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + localVarPath := localBasePath + "/coupon_codes_promotion_rules/{couponCodesPromotionRuleId}/coupons" + localVarPath = strings.Replace(localVarPath, "{"+"couponCodesPromotionRuleId"+"}", url.PathEscape(parameterValueToString(r.couponCodesPromotionRuleId, "couponCodesPromotionRuleId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5083,48 +5083,48 @@ func (a *HasManyApiService) GETFixedPricePromotionIdSkusExecute(r HasManyApiGETF return localVarHTTPResponse, nil } -type HasManyApiGETFreeGiftPromotionIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - freeGiftPromotionId interface{} +type HasManyApiGETCouponCodesPromotionRuleIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + couponCodesPromotionRuleId interface{} } -func (r HasManyApiGETFreeGiftPromotionIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFreeGiftPromotionIdAttachmentsExecute(r) +func (r HasManyApiGETCouponCodesPromotionRuleIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCouponCodesPromotionRuleIdVersionsExecute(r) } /* -GETFreeGiftPromotionIdAttachments Retrieve the attachments associated to the free gift promotion +GETCouponCodesPromotionRuleIdVersions Retrieve the versions associated to the coupon codes promotion rule -Retrieve the attachments associated to the free gift promotion +Retrieve the versions associated to the coupon codes promotion rule @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param freeGiftPromotionId The resource's id - @return HasManyApiGETFreeGiftPromotionIdAttachmentsRequest + @param couponCodesPromotionRuleId The resource's id + @return HasManyApiGETCouponCodesPromotionRuleIdVersionsRequest */ -func (a *HasManyApiService) GETFreeGiftPromotionIdAttachments(ctx context.Context, freeGiftPromotionId interface{}) HasManyApiGETFreeGiftPromotionIdAttachmentsRequest { - return HasManyApiGETFreeGiftPromotionIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - freeGiftPromotionId: freeGiftPromotionId, +func (a *HasManyApiService) GETCouponCodesPromotionRuleIdVersions(ctx context.Context, couponCodesPromotionRuleId interface{}) HasManyApiGETCouponCodesPromotionRuleIdVersionsRequest { + return HasManyApiGETCouponCodesPromotionRuleIdVersionsRequest{ + ApiService: a, + ctx: ctx, + couponCodesPromotionRuleId: couponCodesPromotionRuleId, } } // Execute executes the request -func (a *HasManyApiService) GETFreeGiftPromotionIdAttachmentsExecute(r HasManyApiGETFreeGiftPromotionIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETCouponCodesPromotionRuleIdVersionsExecute(r HasManyApiGETCouponCodesPromotionRuleIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFreeGiftPromotionIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCouponCodesPromotionRuleIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + localVarPath := localBasePath + "/coupon_codes_promotion_rules/{couponCodesPromotionRuleId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"couponCodesPromotionRuleId"+"}", url.PathEscape(parameterValueToString(r.couponCodesPromotionRuleId, "couponCodesPromotionRuleId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5175,48 +5175,48 @@ func (a *HasManyApiService) GETFreeGiftPromotionIdAttachmentsExecute(r HasManyAp return localVarHTTPResponse, nil } -type HasManyApiGETFreeGiftPromotionIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - freeGiftPromotionId interface{} +type HasManyApiGETCouponIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + couponId interface{} } -func (r HasManyApiGETFreeGiftPromotionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFreeGiftPromotionIdEventsExecute(r) +func (r HasManyApiGETCouponIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCouponIdEventsExecute(r) } /* -GETFreeGiftPromotionIdEvents Retrieve the events associated to the free gift promotion +GETCouponIdEvents Retrieve the events associated to the coupon -Retrieve the events associated to the free gift promotion +Retrieve the events associated to the coupon @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param freeGiftPromotionId The resource's id - @return HasManyApiGETFreeGiftPromotionIdEventsRequest + @param couponId The resource's id + @return HasManyApiGETCouponIdEventsRequest */ -func (a *HasManyApiService) GETFreeGiftPromotionIdEvents(ctx context.Context, freeGiftPromotionId interface{}) HasManyApiGETFreeGiftPromotionIdEventsRequest { - return HasManyApiGETFreeGiftPromotionIdEventsRequest{ - ApiService: a, - ctx: ctx, - freeGiftPromotionId: freeGiftPromotionId, +func (a *HasManyApiService) GETCouponIdEvents(ctx context.Context, couponId interface{}) HasManyApiGETCouponIdEventsRequest { + return HasManyApiGETCouponIdEventsRequest{ + ApiService: a, + ctx: ctx, + couponId: couponId, } } // Execute executes the request -func (a *HasManyApiService) GETFreeGiftPromotionIdEventsExecute(r HasManyApiGETFreeGiftPromotionIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETCouponIdEventsExecute(r HasManyApiGETCouponIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFreeGiftPromotionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCouponIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + localVarPath := localBasePath + "/coupons/{couponId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"couponId"+"}", url.PathEscape(parameterValueToString(r.couponId, "couponId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5267,48 +5267,48 @@ func (a *HasManyApiService) GETFreeGiftPromotionIdEventsExecute(r HasManyApiGETF return localVarHTTPResponse, nil } -type HasManyApiGETFreeGiftPromotionIdSkusRequest struct { - ctx context.Context - ApiService *HasManyApiService - freeGiftPromotionId interface{} +type HasManyApiGETCouponIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + couponId interface{} } -func (r HasManyApiGETFreeGiftPromotionIdSkusRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFreeGiftPromotionIdSkusExecute(r) +func (r HasManyApiGETCouponIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCouponIdTagsExecute(r) } /* -GETFreeGiftPromotionIdSkus Retrieve the skus associated to the free gift promotion +GETCouponIdTags Retrieve the tags associated to the coupon -Retrieve the skus associated to the free gift promotion +Retrieve the tags associated to the coupon @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param freeGiftPromotionId The resource's id - @return HasManyApiGETFreeGiftPromotionIdSkusRequest + @param couponId The resource's id + @return HasManyApiGETCouponIdTagsRequest */ -func (a *HasManyApiService) GETFreeGiftPromotionIdSkus(ctx context.Context, freeGiftPromotionId interface{}) HasManyApiGETFreeGiftPromotionIdSkusRequest { - return HasManyApiGETFreeGiftPromotionIdSkusRequest{ - ApiService: a, - ctx: ctx, - freeGiftPromotionId: freeGiftPromotionId, +func (a *HasManyApiService) GETCouponIdTags(ctx context.Context, couponId interface{}) HasManyApiGETCouponIdTagsRequest { + return HasManyApiGETCouponIdTagsRequest{ + ApiService: a, + ctx: ctx, + couponId: couponId, } } // Execute executes the request -func (a *HasManyApiService) GETFreeGiftPromotionIdSkusExecute(r HasManyApiGETFreeGiftPromotionIdSkusRequest) (*http.Response, error) { +func (a *HasManyApiService) GETCouponIdTagsExecute(r HasManyApiGETCouponIdTagsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFreeGiftPromotionIdSkus") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCouponIdTags") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/skus" - localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + localVarPath := localBasePath + "/coupons/{couponId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"couponId"+"}", url.PathEscape(parameterValueToString(r.couponId, "couponId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5359,48 +5359,48 @@ func (a *HasManyApiService) GETFreeGiftPromotionIdSkusExecute(r HasManyApiGETFre return localVarHTTPResponse, nil } -type HasManyApiGETFreeShippingPromotionIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - freeShippingPromotionId interface{} +type HasManyApiGETCouponIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + couponId interface{} } -func (r HasManyApiGETFreeShippingPromotionIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFreeShippingPromotionIdAttachmentsExecute(r) +func (r HasManyApiGETCouponIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCouponIdVersionsExecute(r) } /* -GETFreeShippingPromotionIdAttachments Retrieve the attachments associated to the free shipping promotion +GETCouponIdVersions Retrieve the versions associated to the coupon -Retrieve the attachments associated to the free shipping promotion +Retrieve the versions associated to the coupon @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param freeShippingPromotionId The resource's id - @return HasManyApiGETFreeShippingPromotionIdAttachmentsRequest + @param couponId The resource's id + @return HasManyApiGETCouponIdVersionsRequest */ -func (a *HasManyApiService) GETFreeShippingPromotionIdAttachments(ctx context.Context, freeShippingPromotionId interface{}) HasManyApiGETFreeShippingPromotionIdAttachmentsRequest { - return HasManyApiGETFreeShippingPromotionIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - freeShippingPromotionId: freeShippingPromotionId, +func (a *HasManyApiService) GETCouponIdVersions(ctx context.Context, couponId interface{}) HasManyApiGETCouponIdVersionsRequest { + return HasManyApiGETCouponIdVersionsRequest{ + ApiService: a, + ctx: ctx, + couponId: couponId, } } // Execute executes the request -func (a *HasManyApiService) GETFreeShippingPromotionIdAttachmentsExecute(r HasManyApiGETFreeShippingPromotionIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETCouponIdVersionsExecute(r HasManyApiGETCouponIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFreeShippingPromotionIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCouponIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + localVarPath := localBasePath + "/coupons/{couponId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"couponId"+"}", url.PathEscape(parameterValueToString(r.couponId, "couponId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5451,48 +5451,48 @@ func (a *HasManyApiService) GETFreeShippingPromotionIdAttachmentsExecute(r HasMa return localVarHTTPResponse, nil } -type HasManyApiGETFreeShippingPromotionIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - freeShippingPromotionId interface{} +type HasManyApiGETCouponRecipientIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + couponRecipientId interface{} } -func (r HasManyApiGETFreeShippingPromotionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFreeShippingPromotionIdEventsExecute(r) +func (r HasManyApiGETCouponRecipientIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCouponRecipientIdAttachmentsExecute(r) } /* -GETFreeShippingPromotionIdEvents Retrieve the events associated to the free shipping promotion +GETCouponRecipientIdAttachments Retrieve the attachments associated to the coupon recipient -Retrieve the events associated to the free shipping promotion +Retrieve the attachments associated to the coupon recipient @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param freeShippingPromotionId The resource's id - @return HasManyApiGETFreeShippingPromotionIdEventsRequest + @param couponRecipientId The resource's id + @return HasManyApiGETCouponRecipientIdAttachmentsRequest */ -func (a *HasManyApiService) GETFreeShippingPromotionIdEvents(ctx context.Context, freeShippingPromotionId interface{}) HasManyApiGETFreeShippingPromotionIdEventsRequest { - return HasManyApiGETFreeShippingPromotionIdEventsRequest{ - ApiService: a, - ctx: ctx, - freeShippingPromotionId: freeShippingPromotionId, +func (a *HasManyApiService) GETCouponRecipientIdAttachments(ctx context.Context, couponRecipientId interface{}) HasManyApiGETCouponRecipientIdAttachmentsRequest { + return HasManyApiGETCouponRecipientIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + couponRecipientId: couponRecipientId, } } // Execute executes the request -func (a *HasManyApiService) GETFreeShippingPromotionIdEventsExecute(r HasManyApiGETFreeShippingPromotionIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETCouponRecipientIdAttachmentsExecute(r HasManyApiGETCouponRecipientIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFreeShippingPromotionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCouponRecipientIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + localVarPath := localBasePath + "/coupon_recipients/{couponRecipientId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"couponRecipientId"+"}", url.PathEscape(parameterValueToString(r.couponRecipientId, "couponRecipientId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5543,48 +5543,48 @@ func (a *HasManyApiService) GETFreeShippingPromotionIdEventsExecute(r HasManyApi return localVarHTTPResponse, nil } -type HasManyApiGETGeocoderIdAddressesRequest struct { - ctx context.Context - ApiService *HasManyApiService - geocoderId interface{} +type HasManyApiGETCouponRecipientIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + couponRecipientId interface{} } -func (r HasManyApiGETGeocoderIdAddressesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETGeocoderIdAddressesExecute(r) +func (r HasManyApiGETCouponRecipientIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCouponRecipientIdVersionsExecute(r) } /* -GETGeocoderIdAddresses Retrieve the addresses associated to the geocoder +GETCouponRecipientIdVersions Retrieve the versions associated to the coupon recipient -Retrieve the addresses associated to the geocoder +Retrieve the versions associated to the coupon recipient @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param geocoderId The resource's id - @return HasManyApiGETGeocoderIdAddressesRequest + @param couponRecipientId The resource's id + @return HasManyApiGETCouponRecipientIdVersionsRequest */ -func (a *HasManyApiService) GETGeocoderIdAddresses(ctx context.Context, geocoderId interface{}) HasManyApiGETGeocoderIdAddressesRequest { - return HasManyApiGETGeocoderIdAddressesRequest{ - ApiService: a, - ctx: ctx, - geocoderId: geocoderId, +func (a *HasManyApiService) GETCouponRecipientIdVersions(ctx context.Context, couponRecipientId interface{}) HasManyApiGETCouponRecipientIdVersionsRequest { + return HasManyApiGETCouponRecipientIdVersionsRequest{ + ApiService: a, + ctx: ctx, + couponRecipientId: couponRecipientId, } } // Execute executes the request -func (a *HasManyApiService) GETGeocoderIdAddressesExecute(r HasManyApiGETGeocoderIdAddressesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETCouponRecipientIdVersionsExecute(r HasManyApiGETCouponRecipientIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETGeocoderIdAddresses") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCouponRecipientIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/geocoders/{geocoderId}/addresses" - localVarPath = strings.Replace(localVarPath, "{"+"geocoderId"+"}", url.PathEscape(parameterValueToString(r.geocoderId, "geocoderId")), -1) + localVarPath := localBasePath + "/coupon_recipients/{couponRecipientId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"couponRecipientId"+"}", url.PathEscape(parameterValueToString(r.couponRecipientId, "couponRecipientId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5635,48 +5635,16424 @@ func (a *HasManyApiService) GETGeocoderIdAddressesExecute(r HasManyApiGETGeocode return localVarHTTPResponse, nil } -type HasManyApiGETGeocoderIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - geocoderId interface{} +type HasManyApiGETCustomPromotionRuleIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + customPromotionRuleId interface{} } -func (r HasManyApiGETGeocoderIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETGeocoderIdAttachmentsExecute(r) +func (r HasManyApiGETCustomPromotionRuleIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomPromotionRuleIdVersionsExecute(r) } /* -GETGeocoderIdAttachments Retrieve the attachments associated to the geocoder +GETCustomPromotionRuleIdVersions Retrieve the versions associated to the custom promotion rule -Retrieve the attachments associated to the geocoder +Retrieve the versions associated to the custom promotion rule + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customPromotionRuleId The resource's id + @return HasManyApiGETCustomPromotionRuleIdVersionsRequest +*/ +func (a *HasManyApiService) GETCustomPromotionRuleIdVersions(ctx context.Context, customPromotionRuleId interface{}) HasManyApiGETCustomPromotionRuleIdVersionsRequest { + return HasManyApiGETCustomPromotionRuleIdVersionsRequest{ + ApiService: a, + ctx: ctx, + customPromotionRuleId: customPromotionRuleId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomPromotionRuleIdVersionsExecute(r HasManyApiGETCustomPromotionRuleIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomPromotionRuleIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/custom_promotion_rules/{customPromotionRuleId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"customPromotionRuleId"+"}", url.PathEscape(parameterValueToString(r.customPromotionRuleId, "customPromotionRuleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerAddressIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerAddressId interface{} +} + +func (r HasManyApiGETCustomerAddressIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerAddressIdEventsExecute(r) +} + +/* +GETCustomerAddressIdEvents Retrieve the events associated to the customer address + +Retrieve the events associated to the customer address + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerAddressId The resource's id + @return HasManyApiGETCustomerAddressIdEventsRequest +*/ +func (a *HasManyApiService) GETCustomerAddressIdEvents(ctx context.Context, customerAddressId interface{}) HasManyApiGETCustomerAddressIdEventsRequest { + return HasManyApiGETCustomerAddressIdEventsRequest{ + ApiService: a, + ctx: ctx, + customerAddressId: customerAddressId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerAddressIdEventsExecute(r HasManyApiGETCustomerAddressIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerAddressIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customer_addresses/{customerAddressId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"customerAddressId"+"}", url.PathEscape(parameterValueToString(r.customerAddressId, "customerAddressId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerAddressIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerAddressId interface{} +} + +func (r HasManyApiGETCustomerAddressIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerAddressIdVersionsExecute(r) +} + +/* +GETCustomerAddressIdVersions Retrieve the versions associated to the customer address + +Retrieve the versions associated to the customer address + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerAddressId The resource's id + @return HasManyApiGETCustomerAddressIdVersionsRequest +*/ +func (a *HasManyApiService) GETCustomerAddressIdVersions(ctx context.Context, customerAddressId interface{}) HasManyApiGETCustomerAddressIdVersionsRequest { + return HasManyApiGETCustomerAddressIdVersionsRequest{ + ApiService: a, + ctx: ctx, + customerAddressId: customerAddressId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerAddressIdVersionsExecute(r HasManyApiGETCustomerAddressIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerAddressIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customer_addresses/{customerAddressId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"customerAddressId"+"}", url.PathEscape(parameterValueToString(r.customerAddressId, "customerAddressId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerGroupIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerGroupId interface{} +} + +func (r HasManyApiGETCustomerGroupIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerGroupIdAttachmentsExecute(r) +} + +/* +GETCustomerGroupIdAttachments Retrieve the attachments associated to the customer group + +Retrieve the attachments associated to the customer group + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerGroupId The resource's id + @return HasManyApiGETCustomerGroupIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETCustomerGroupIdAttachments(ctx context.Context, customerGroupId interface{}) HasManyApiGETCustomerGroupIdAttachmentsRequest { + return HasManyApiGETCustomerGroupIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + customerGroupId: customerGroupId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerGroupIdAttachmentsExecute(r HasManyApiGETCustomerGroupIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerGroupIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customer_groups/{customerGroupId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"customerGroupId"+"}", url.PathEscape(parameterValueToString(r.customerGroupId, "customerGroupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerGroupIdCustomersRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerGroupId interface{} +} + +func (r HasManyApiGETCustomerGroupIdCustomersRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerGroupIdCustomersExecute(r) +} + +/* +GETCustomerGroupIdCustomers Retrieve the customers associated to the customer group + +Retrieve the customers associated to the customer group + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerGroupId The resource's id + @return HasManyApiGETCustomerGroupIdCustomersRequest +*/ +func (a *HasManyApiService) GETCustomerGroupIdCustomers(ctx context.Context, customerGroupId interface{}) HasManyApiGETCustomerGroupIdCustomersRequest { + return HasManyApiGETCustomerGroupIdCustomersRequest{ + ApiService: a, + ctx: ctx, + customerGroupId: customerGroupId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerGroupIdCustomersExecute(r HasManyApiGETCustomerGroupIdCustomersRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerGroupIdCustomers") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customer_groups/{customerGroupId}/customers" + localVarPath = strings.Replace(localVarPath, "{"+"customerGroupId"+"}", url.PathEscape(parameterValueToString(r.customerGroupId, "customerGroupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerGroupIdMarketsRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerGroupId interface{} +} + +func (r HasManyApiGETCustomerGroupIdMarketsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerGroupIdMarketsExecute(r) +} + +/* +GETCustomerGroupIdMarkets Retrieve the markets associated to the customer group + +Retrieve the markets associated to the customer group + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerGroupId The resource's id + @return HasManyApiGETCustomerGroupIdMarketsRequest +*/ +func (a *HasManyApiService) GETCustomerGroupIdMarkets(ctx context.Context, customerGroupId interface{}) HasManyApiGETCustomerGroupIdMarketsRequest { + return HasManyApiGETCustomerGroupIdMarketsRequest{ + ApiService: a, + ctx: ctx, + customerGroupId: customerGroupId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerGroupIdMarketsExecute(r HasManyApiGETCustomerGroupIdMarketsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerGroupIdMarkets") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customer_groups/{customerGroupId}/markets" + localVarPath = strings.Replace(localVarPath, "{"+"customerGroupId"+"}", url.PathEscape(parameterValueToString(r.customerGroupId, "customerGroupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerGroupIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerGroupId interface{} +} + +func (r HasManyApiGETCustomerGroupIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerGroupIdVersionsExecute(r) +} + +/* +GETCustomerGroupIdVersions Retrieve the versions associated to the customer group + +Retrieve the versions associated to the customer group + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerGroupId The resource's id + @return HasManyApiGETCustomerGroupIdVersionsRequest +*/ +func (a *HasManyApiService) GETCustomerGroupIdVersions(ctx context.Context, customerGroupId interface{}) HasManyApiGETCustomerGroupIdVersionsRequest { + return HasManyApiGETCustomerGroupIdVersionsRequest{ + ApiService: a, + ctx: ctx, + customerGroupId: customerGroupId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerGroupIdVersionsExecute(r HasManyApiGETCustomerGroupIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerGroupIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customer_groups/{customerGroupId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"customerGroupId"+"}", url.PathEscape(parameterValueToString(r.customerGroupId, "customerGroupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerId interface{} +} + +func (r HasManyApiGETCustomerIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerIdAttachmentsExecute(r) +} + +/* +GETCustomerIdAttachments Retrieve the attachments associated to the customer + +Retrieve the attachments associated to the customer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerId The resource's id + @return HasManyApiGETCustomerIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETCustomerIdAttachments(ctx context.Context, customerId interface{}) HasManyApiGETCustomerIdAttachmentsRequest { + return HasManyApiGETCustomerIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + customerId: customerId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerIdAttachmentsExecute(r HasManyApiGETCustomerIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customers/{customerId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerIdCustomerAddressesRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerId interface{} +} + +func (r HasManyApiGETCustomerIdCustomerAddressesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerIdCustomerAddressesExecute(r) +} + +/* +GETCustomerIdCustomerAddresses Retrieve the customer addresses associated to the customer + +Retrieve the customer addresses associated to the customer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerId The resource's id + @return HasManyApiGETCustomerIdCustomerAddressesRequest +*/ +func (a *HasManyApiService) GETCustomerIdCustomerAddresses(ctx context.Context, customerId interface{}) HasManyApiGETCustomerIdCustomerAddressesRequest { + return HasManyApiGETCustomerIdCustomerAddressesRequest{ + ApiService: a, + ctx: ctx, + customerId: customerId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerIdCustomerAddressesExecute(r HasManyApiGETCustomerIdCustomerAddressesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerIdCustomerAddresses") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customers/{customerId}/customer_addresses" + localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerIdCustomerPaymentSourcesRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerId interface{} +} + +func (r HasManyApiGETCustomerIdCustomerPaymentSourcesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerIdCustomerPaymentSourcesExecute(r) +} + +/* +GETCustomerIdCustomerPaymentSources Retrieve the customer payment sources associated to the customer + +Retrieve the customer payment sources associated to the customer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerId The resource's id + @return HasManyApiGETCustomerIdCustomerPaymentSourcesRequest +*/ +func (a *HasManyApiService) GETCustomerIdCustomerPaymentSources(ctx context.Context, customerId interface{}) HasManyApiGETCustomerIdCustomerPaymentSourcesRequest { + return HasManyApiGETCustomerIdCustomerPaymentSourcesRequest{ + ApiService: a, + ctx: ctx, + customerId: customerId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerIdCustomerPaymentSourcesExecute(r HasManyApiGETCustomerIdCustomerPaymentSourcesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerIdCustomerPaymentSources") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customers/{customerId}/customer_payment_sources" + localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerIdCustomerSubscriptionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerId interface{} +} + +func (r HasManyApiGETCustomerIdCustomerSubscriptionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerIdCustomerSubscriptionsExecute(r) +} + +/* +GETCustomerIdCustomerSubscriptions Retrieve the customer subscriptions associated to the customer + +Retrieve the customer subscriptions associated to the customer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerId The resource's id + @return HasManyApiGETCustomerIdCustomerSubscriptionsRequest +*/ +func (a *HasManyApiService) GETCustomerIdCustomerSubscriptions(ctx context.Context, customerId interface{}) HasManyApiGETCustomerIdCustomerSubscriptionsRequest { + return HasManyApiGETCustomerIdCustomerSubscriptionsRequest{ + ApiService: a, + ctx: ctx, + customerId: customerId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerIdCustomerSubscriptionsExecute(r HasManyApiGETCustomerIdCustomerSubscriptionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerIdCustomerSubscriptions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customers/{customerId}/customer_subscriptions" + localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerId interface{} +} + +func (r HasManyApiGETCustomerIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerIdEventsExecute(r) +} + +/* +GETCustomerIdEvents Retrieve the events associated to the customer + +Retrieve the events associated to the customer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerId The resource's id + @return HasManyApiGETCustomerIdEventsRequest +*/ +func (a *HasManyApiService) GETCustomerIdEvents(ctx context.Context, customerId interface{}) HasManyApiGETCustomerIdEventsRequest { + return HasManyApiGETCustomerIdEventsRequest{ + ApiService: a, + ctx: ctx, + customerId: customerId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerIdEventsExecute(r HasManyApiGETCustomerIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customers/{customerId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerIdOrderSubscriptionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerId interface{} +} + +func (r HasManyApiGETCustomerIdOrderSubscriptionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerIdOrderSubscriptionsExecute(r) +} + +/* +GETCustomerIdOrderSubscriptions Retrieve the order subscriptions associated to the customer + +Retrieve the order subscriptions associated to the customer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerId The resource's id + @return HasManyApiGETCustomerIdOrderSubscriptionsRequest +*/ +func (a *HasManyApiService) GETCustomerIdOrderSubscriptions(ctx context.Context, customerId interface{}) HasManyApiGETCustomerIdOrderSubscriptionsRequest { + return HasManyApiGETCustomerIdOrderSubscriptionsRequest{ + ApiService: a, + ctx: ctx, + customerId: customerId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerIdOrderSubscriptionsExecute(r HasManyApiGETCustomerIdOrderSubscriptionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerIdOrderSubscriptions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customers/{customerId}/order_subscriptions" + localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerIdOrdersRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerId interface{} +} + +func (r HasManyApiGETCustomerIdOrdersRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerIdOrdersExecute(r) +} + +/* +GETCustomerIdOrders Retrieve the orders associated to the customer + +Retrieve the orders associated to the customer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerId The resource's id + @return HasManyApiGETCustomerIdOrdersRequest +*/ +func (a *HasManyApiService) GETCustomerIdOrders(ctx context.Context, customerId interface{}) HasManyApiGETCustomerIdOrdersRequest { + return HasManyApiGETCustomerIdOrdersRequest{ + ApiService: a, + ctx: ctx, + customerId: customerId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerIdOrdersExecute(r HasManyApiGETCustomerIdOrdersRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerIdOrders") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customers/{customerId}/orders" + localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerIdReturnsRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerId interface{} +} + +func (r HasManyApiGETCustomerIdReturnsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerIdReturnsExecute(r) +} + +/* +GETCustomerIdReturns Retrieve the returns associated to the customer + +Retrieve the returns associated to the customer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerId The resource's id + @return HasManyApiGETCustomerIdReturnsRequest +*/ +func (a *HasManyApiService) GETCustomerIdReturns(ctx context.Context, customerId interface{}) HasManyApiGETCustomerIdReturnsRequest { + return HasManyApiGETCustomerIdReturnsRequest{ + ApiService: a, + ctx: ctx, + customerId: customerId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerIdReturnsExecute(r HasManyApiGETCustomerIdReturnsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerIdReturns") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customers/{customerId}/returns" + localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerIdSkuListsRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerId interface{} +} + +func (r HasManyApiGETCustomerIdSkuListsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerIdSkuListsExecute(r) +} + +/* +GETCustomerIdSkuLists Retrieve the sku lists associated to the customer + +Retrieve the sku lists associated to the customer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerId The resource's id + @return HasManyApiGETCustomerIdSkuListsRequest +*/ +func (a *HasManyApiService) GETCustomerIdSkuLists(ctx context.Context, customerId interface{}) HasManyApiGETCustomerIdSkuListsRequest { + return HasManyApiGETCustomerIdSkuListsRequest{ + ApiService: a, + ctx: ctx, + customerId: customerId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerIdSkuListsExecute(r HasManyApiGETCustomerIdSkuListsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerIdSkuLists") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customers/{customerId}/sku_lists" + localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerId interface{} +} + +func (r HasManyApiGETCustomerIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerIdTagsExecute(r) +} + +/* +GETCustomerIdTags Retrieve the tags associated to the customer + +Retrieve the tags associated to the customer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerId The resource's id + @return HasManyApiGETCustomerIdTagsRequest +*/ +func (a *HasManyApiService) GETCustomerIdTags(ctx context.Context, customerId interface{}) HasManyApiGETCustomerIdTagsRequest { + return HasManyApiGETCustomerIdTagsRequest{ + ApiService: a, + ctx: ctx, + customerId: customerId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerIdTagsExecute(r HasManyApiGETCustomerIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customers/{customerId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerPasswordResetIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerPasswordResetId interface{} +} + +func (r HasManyApiGETCustomerPasswordResetIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerPasswordResetIdEventsExecute(r) +} + +/* +GETCustomerPasswordResetIdEvents Retrieve the events associated to the customer password reset + +Retrieve the events associated to the customer password reset + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerPasswordResetId The resource's id + @return HasManyApiGETCustomerPasswordResetIdEventsRequest +*/ +func (a *HasManyApiService) GETCustomerPasswordResetIdEvents(ctx context.Context, customerPasswordResetId interface{}) HasManyApiGETCustomerPasswordResetIdEventsRequest { + return HasManyApiGETCustomerPasswordResetIdEventsRequest{ + ApiService: a, + ctx: ctx, + customerPasswordResetId: customerPasswordResetId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerPasswordResetIdEventsExecute(r HasManyApiGETCustomerPasswordResetIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerPasswordResetIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customer_password_resets/{customerPasswordResetId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"customerPasswordResetId"+"}", url.PathEscape(parameterValueToString(r.customerPasswordResetId, "customerPasswordResetId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerPaymentSourceIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerPaymentSourceId interface{} +} + +func (r HasManyApiGETCustomerPaymentSourceIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerPaymentSourceIdVersionsExecute(r) +} + +/* +GETCustomerPaymentSourceIdVersions Retrieve the versions associated to the customer payment source + +Retrieve the versions associated to the customer payment source + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerPaymentSourceId The resource's id + @return HasManyApiGETCustomerPaymentSourceIdVersionsRequest +*/ +func (a *HasManyApiService) GETCustomerPaymentSourceIdVersions(ctx context.Context, customerPaymentSourceId interface{}) HasManyApiGETCustomerPaymentSourceIdVersionsRequest { + return HasManyApiGETCustomerPaymentSourceIdVersionsRequest{ + ApiService: a, + ctx: ctx, + customerPaymentSourceId: customerPaymentSourceId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerPaymentSourceIdVersionsExecute(r HasManyApiGETCustomerPaymentSourceIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerPaymentSourceIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customer_payment_sources/{customerPaymentSourceId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"customerPaymentSourceId"+"}", url.PathEscape(parameterValueToString(r.customerPaymentSourceId, "customerPaymentSourceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerSubscriptionIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerSubscriptionId interface{} +} + +func (r HasManyApiGETCustomerSubscriptionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerSubscriptionIdEventsExecute(r) +} + +/* +GETCustomerSubscriptionIdEvents Retrieve the events associated to the customer subscription + +Retrieve the events associated to the customer subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerSubscriptionId The resource's id + @return HasManyApiGETCustomerSubscriptionIdEventsRequest +*/ +func (a *HasManyApiService) GETCustomerSubscriptionIdEvents(ctx context.Context, customerSubscriptionId interface{}) HasManyApiGETCustomerSubscriptionIdEventsRequest { + return HasManyApiGETCustomerSubscriptionIdEventsRequest{ + ApiService: a, + ctx: ctx, + customerSubscriptionId: customerSubscriptionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerSubscriptionIdEventsExecute(r HasManyApiGETCustomerSubscriptionIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerSubscriptionIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customer_subscriptions/{customerSubscriptionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"customerSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.customerSubscriptionId, "customerSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETCustomerSubscriptionIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + customerSubscriptionId interface{} +} + +func (r HasManyApiGETCustomerSubscriptionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerSubscriptionIdVersionsExecute(r) +} + +/* +GETCustomerSubscriptionIdVersions Retrieve the versions associated to the customer subscription + +Retrieve the versions associated to the customer subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerSubscriptionId The resource's id + @return HasManyApiGETCustomerSubscriptionIdVersionsRequest +*/ +func (a *HasManyApiService) GETCustomerSubscriptionIdVersions(ctx context.Context, customerSubscriptionId interface{}) HasManyApiGETCustomerSubscriptionIdVersionsRequest { + return HasManyApiGETCustomerSubscriptionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + customerSubscriptionId: customerSubscriptionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETCustomerSubscriptionIdVersionsExecute(r HasManyApiGETCustomerSubscriptionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETCustomerSubscriptionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customer_subscriptions/{customerSubscriptionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"customerSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.customerSubscriptionId, "customerSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETDeliveryLeadTimeIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + deliveryLeadTimeId interface{} +} + +func (r HasManyApiGETDeliveryLeadTimeIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETDeliveryLeadTimeIdAttachmentsExecute(r) +} + +/* +GETDeliveryLeadTimeIdAttachments Retrieve the attachments associated to the delivery lead time + +Retrieve the attachments associated to the delivery lead time + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deliveryLeadTimeId The resource's id + @return HasManyApiGETDeliveryLeadTimeIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETDeliveryLeadTimeIdAttachments(ctx context.Context, deliveryLeadTimeId interface{}) HasManyApiGETDeliveryLeadTimeIdAttachmentsRequest { + return HasManyApiGETDeliveryLeadTimeIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + deliveryLeadTimeId: deliveryLeadTimeId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETDeliveryLeadTimeIdAttachmentsExecute(r HasManyApiGETDeliveryLeadTimeIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETDeliveryLeadTimeIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/delivery_lead_times/{deliveryLeadTimeId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"deliveryLeadTimeId"+"}", url.PathEscape(parameterValueToString(r.deliveryLeadTimeId, "deliveryLeadTimeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETDeliveryLeadTimeIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + deliveryLeadTimeId interface{} +} + +func (r HasManyApiGETDeliveryLeadTimeIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETDeliveryLeadTimeIdVersionsExecute(r) +} + +/* +GETDeliveryLeadTimeIdVersions Retrieve the versions associated to the delivery lead time + +Retrieve the versions associated to the delivery lead time + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deliveryLeadTimeId The resource's id + @return HasManyApiGETDeliveryLeadTimeIdVersionsRequest +*/ +func (a *HasManyApiService) GETDeliveryLeadTimeIdVersions(ctx context.Context, deliveryLeadTimeId interface{}) HasManyApiGETDeliveryLeadTimeIdVersionsRequest { + return HasManyApiGETDeliveryLeadTimeIdVersionsRequest{ + ApiService: a, + ctx: ctx, + deliveryLeadTimeId: deliveryLeadTimeId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETDeliveryLeadTimeIdVersionsExecute(r HasManyApiGETDeliveryLeadTimeIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETDeliveryLeadTimeIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/delivery_lead_times/{deliveryLeadTimeId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"deliveryLeadTimeId"+"}", url.PathEscape(parameterValueToString(r.deliveryLeadTimeId, "deliveryLeadTimeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETEventIdLastEventCallbacksRequest struct { + ctx context.Context + ApiService *HasManyApiService + eventId interface{} +} + +func (r HasManyApiGETEventIdLastEventCallbacksRequest) Execute() (*http.Response, error) { + return r.ApiService.GETEventIdLastEventCallbacksExecute(r) +} + +/* +GETEventIdLastEventCallbacks Retrieve the last event callbacks associated to the event + +Retrieve the last event callbacks associated to the event + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param eventId The resource's id + @return HasManyApiGETEventIdLastEventCallbacksRequest +*/ +func (a *HasManyApiService) GETEventIdLastEventCallbacks(ctx context.Context, eventId interface{}) HasManyApiGETEventIdLastEventCallbacksRequest { + return HasManyApiGETEventIdLastEventCallbacksRequest{ + ApiService: a, + ctx: ctx, + eventId: eventId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETEventIdLastEventCallbacksExecute(r HasManyApiGETEventIdLastEventCallbacksRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETEventIdLastEventCallbacks") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/events/{eventId}/last_event_callbacks" + localVarPath = strings.Replace(localVarPath, "{"+"eventId"+"}", url.PathEscape(parameterValueToString(r.eventId, "eventId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETEventIdWebhooksRequest struct { + ctx context.Context + ApiService *HasManyApiService + eventId interface{} +} + +func (r HasManyApiGETEventIdWebhooksRequest) Execute() (*http.Response, error) { + return r.ApiService.GETEventIdWebhooksExecute(r) +} + +/* +GETEventIdWebhooks Retrieve the webhooks associated to the event + +Retrieve the webhooks associated to the event + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param eventId The resource's id + @return HasManyApiGETEventIdWebhooksRequest +*/ +func (a *HasManyApiService) GETEventIdWebhooks(ctx context.Context, eventId interface{}) HasManyApiGETEventIdWebhooksRequest { + return HasManyApiGETEventIdWebhooksRequest{ + ApiService: a, + ctx: ctx, + eventId: eventId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETEventIdWebhooksExecute(r HasManyApiGETEventIdWebhooksRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETEventIdWebhooks") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/events/{eventId}/webhooks" + localVarPath = strings.Replace(localVarPath, "{"+"eventId"+"}", url.PathEscape(parameterValueToString(r.eventId, "eventId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETExportIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + exportId interface{} +} + +func (r HasManyApiGETExportIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExportIdEventsExecute(r) +} + +/* +GETExportIdEvents Retrieve the events associated to the export + +Retrieve the events associated to the export + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param exportId The resource's id + @return HasManyApiGETExportIdEventsRequest +*/ +func (a *HasManyApiService) GETExportIdEvents(ctx context.Context, exportId interface{}) HasManyApiGETExportIdEventsRequest { + return HasManyApiGETExportIdEventsRequest{ + ApiService: a, + ctx: ctx, + exportId: exportId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETExportIdEventsExecute(r HasManyApiGETExportIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExportIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/exports/{exportId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"exportId"+"}", url.PathEscape(parameterValueToString(r.exportId, "exportId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETExternalGatewayIdExternalPaymentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + externalGatewayId interface{} +} + +func (r HasManyApiGETExternalGatewayIdExternalPaymentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalGatewayIdExternalPaymentsExecute(r) +} + +/* +GETExternalGatewayIdExternalPayments Retrieve the external payments associated to the external gateway + +Retrieve the external payments associated to the external gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalGatewayId The resource's id + @return HasManyApiGETExternalGatewayIdExternalPaymentsRequest +*/ +func (a *HasManyApiService) GETExternalGatewayIdExternalPayments(ctx context.Context, externalGatewayId interface{}) HasManyApiGETExternalGatewayIdExternalPaymentsRequest { + return HasManyApiGETExternalGatewayIdExternalPaymentsRequest{ + ApiService: a, + ctx: ctx, + externalGatewayId: externalGatewayId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETExternalGatewayIdExternalPaymentsExecute(r HasManyApiGETExternalGatewayIdExternalPaymentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExternalGatewayIdExternalPayments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_gateways/{externalGatewayId}/external_payments" + localVarPath = strings.Replace(localVarPath, "{"+"externalGatewayId"+"}", url.PathEscape(parameterValueToString(r.externalGatewayId, "externalGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETExternalGatewayIdPaymentMethodsRequest struct { + ctx context.Context + ApiService *HasManyApiService + externalGatewayId interface{} +} + +func (r HasManyApiGETExternalGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalGatewayIdPaymentMethodsExecute(r) +} + +/* +GETExternalGatewayIdPaymentMethods Retrieve the payment methods associated to the external gateway + +Retrieve the payment methods associated to the external gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalGatewayId The resource's id + @return HasManyApiGETExternalGatewayIdPaymentMethodsRequest +*/ +func (a *HasManyApiService) GETExternalGatewayIdPaymentMethods(ctx context.Context, externalGatewayId interface{}) HasManyApiGETExternalGatewayIdPaymentMethodsRequest { + return HasManyApiGETExternalGatewayIdPaymentMethodsRequest{ + ApiService: a, + ctx: ctx, + externalGatewayId: externalGatewayId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETExternalGatewayIdPaymentMethodsExecute(r HasManyApiGETExternalGatewayIdPaymentMethodsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExternalGatewayIdPaymentMethods") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_gateways/{externalGatewayId}/payment_methods" + localVarPath = strings.Replace(localVarPath, "{"+"externalGatewayId"+"}", url.PathEscape(parameterValueToString(r.externalGatewayId, "externalGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETExternalGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + externalGatewayId interface{} +} + +func (r HasManyApiGETExternalGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalGatewayIdVersionsExecute(r) +} + +/* +GETExternalGatewayIdVersions Retrieve the versions associated to the external gateway + +Retrieve the versions associated to the external gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalGatewayId The resource's id + @return HasManyApiGETExternalGatewayIdVersionsRequest +*/ +func (a *HasManyApiService) GETExternalGatewayIdVersions(ctx context.Context, externalGatewayId interface{}) HasManyApiGETExternalGatewayIdVersionsRequest { + return HasManyApiGETExternalGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + externalGatewayId: externalGatewayId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETExternalGatewayIdVersionsExecute(r HasManyApiGETExternalGatewayIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExternalGatewayIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_gateways/{externalGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"externalGatewayId"+"}", url.PathEscape(parameterValueToString(r.externalGatewayId, "externalGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETExternalPaymentIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + externalPaymentId interface{} +} + +func (r HasManyApiGETExternalPaymentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPaymentIdVersionsExecute(r) +} + +/* +GETExternalPaymentIdVersions Retrieve the versions associated to the external payment + +Retrieve the versions associated to the external payment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalPaymentId The resource's id + @return HasManyApiGETExternalPaymentIdVersionsRequest +*/ +func (a *HasManyApiService) GETExternalPaymentIdVersions(ctx context.Context, externalPaymentId interface{}) HasManyApiGETExternalPaymentIdVersionsRequest { + return HasManyApiGETExternalPaymentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + externalPaymentId: externalPaymentId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETExternalPaymentIdVersionsExecute(r HasManyApiGETExternalPaymentIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExternalPaymentIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_payments/{externalPaymentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"externalPaymentId"+"}", url.PathEscape(parameterValueToString(r.externalPaymentId, "externalPaymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETExternalPromotionIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + externalPromotionId interface{} +} + +func (r HasManyApiGETExternalPromotionIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPromotionIdAttachmentsExecute(r) +} + +/* +GETExternalPromotionIdAttachments Retrieve the attachments associated to the external promotion + +Retrieve the attachments associated to the external promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalPromotionId The resource's id + @return HasManyApiGETExternalPromotionIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETExternalPromotionIdAttachments(ctx context.Context, externalPromotionId interface{}) HasManyApiGETExternalPromotionIdAttachmentsRequest { + return HasManyApiGETExternalPromotionIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + externalPromotionId: externalPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETExternalPromotionIdAttachmentsExecute(r HasManyApiGETExternalPromotionIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExternalPromotionIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETExternalPromotionIdCouponsRequest struct { + ctx context.Context + ApiService *HasManyApiService + externalPromotionId interface{} +} + +func (r HasManyApiGETExternalPromotionIdCouponsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPromotionIdCouponsExecute(r) +} + +/* +GETExternalPromotionIdCoupons Retrieve the coupons associated to the external promotion + +Retrieve the coupons associated to the external promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalPromotionId The resource's id + @return HasManyApiGETExternalPromotionIdCouponsRequest +*/ +func (a *HasManyApiService) GETExternalPromotionIdCoupons(ctx context.Context, externalPromotionId interface{}) HasManyApiGETExternalPromotionIdCouponsRequest { + return HasManyApiGETExternalPromotionIdCouponsRequest{ + ApiService: a, + ctx: ctx, + externalPromotionId: externalPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETExternalPromotionIdCouponsExecute(r HasManyApiGETExternalPromotionIdCouponsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExternalPromotionIdCoupons") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/coupons" + localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETExternalPromotionIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + externalPromotionId interface{} +} + +func (r HasManyApiGETExternalPromotionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPromotionIdEventsExecute(r) +} + +/* +GETExternalPromotionIdEvents Retrieve the events associated to the external promotion + +Retrieve the events associated to the external promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalPromotionId The resource's id + @return HasManyApiGETExternalPromotionIdEventsRequest +*/ +func (a *HasManyApiService) GETExternalPromotionIdEvents(ctx context.Context, externalPromotionId interface{}) HasManyApiGETExternalPromotionIdEventsRequest { + return HasManyApiGETExternalPromotionIdEventsRequest{ + ApiService: a, + ctx: ctx, + externalPromotionId: externalPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETExternalPromotionIdEventsExecute(r HasManyApiGETExternalPromotionIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExternalPromotionIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETExternalPromotionIdSkusRequest struct { + ctx context.Context + ApiService *HasManyApiService + externalPromotionId interface{} +} + +func (r HasManyApiGETExternalPromotionIdSkusRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPromotionIdSkusExecute(r) +} + +/* +GETExternalPromotionIdSkus Retrieve the skus associated to the external promotion + +Retrieve the skus associated to the external promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalPromotionId The resource's id + @return HasManyApiGETExternalPromotionIdSkusRequest +*/ +func (a *HasManyApiService) GETExternalPromotionIdSkus(ctx context.Context, externalPromotionId interface{}) HasManyApiGETExternalPromotionIdSkusRequest { + return HasManyApiGETExternalPromotionIdSkusRequest{ + ApiService: a, + ctx: ctx, + externalPromotionId: externalPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETExternalPromotionIdSkusExecute(r HasManyApiGETExternalPromotionIdSkusRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExternalPromotionIdSkus") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/skus" + localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETExternalPromotionIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + externalPromotionId interface{} +} + +func (r HasManyApiGETExternalPromotionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPromotionIdTagsExecute(r) +} + +/* +GETExternalPromotionIdTags Retrieve the tags associated to the external promotion + +Retrieve the tags associated to the external promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalPromotionId The resource's id + @return HasManyApiGETExternalPromotionIdTagsRequest +*/ +func (a *HasManyApiService) GETExternalPromotionIdTags(ctx context.Context, externalPromotionId interface{}) HasManyApiGETExternalPromotionIdTagsRequest { + return HasManyApiGETExternalPromotionIdTagsRequest{ + ApiService: a, + ctx: ctx, + externalPromotionId: externalPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETExternalPromotionIdTagsExecute(r HasManyApiGETExternalPromotionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExternalPromotionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETExternalPromotionIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + externalPromotionId interface{} +} + +func (r HasManyApiGETExternalPromotionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPromotionIdVersionsExecute(r) +} + +/* +GETExternalPromotionIdVersions Retrieve the versions associated to the external promotion + +Retrieve the versions associated to the external promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalPromotionId The resource's id + @return HasManyApiGETExternalPromotionIdVersionsRequest +*/ +func (a *HasManyApiService) GETExternalPromotionIdVersions(ctx context.Context, externalPromotionId interface{}) HasManyApiGETExternalPromotionIdVersionsRequest { + return HasManyApiGETExternalPromotionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + externalPromotionId: externalPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETExternalPromotionIdVersionsExecute(r HasManyApiGETExternalPromotionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExternalPromotionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETExternalTaxCalculatorIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + externalTaxCalculatorId interface{} +} + +func (r HasManyApiGETExternalTaxCalculatorIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalTaxCalculatorIdAttachmentsExecute(r) +} + +/* +GETExternalTaxCalculatorIdAttachments Retrieve the attachments associated to the external tax calculator + +Retrieve the attachments associated to the external tax calculator + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalTaxCalculatorId The resource's id + @return HasManyApiGETExternalTaxCalculatorIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETExternalTaxCalculatorIdAttachments(ctx context.Context, externalTaxCalculatorId interface{}) HasManyApiGETExternalTaxCalculatorIdAttachmentsRequest { + return HasManyApiGETExternalTaxCalculatorIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + externalTaxCalculatorId: externalTaxCalculatorId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETExternalTaxCalculatorIdAttachmentsExecute(r HasManyApiGETExternalTaxCalculatorIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExternalTaxCalculatorIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_tax_calculators/{externalTaxCalculatorId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"externalTaxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.externalTaxCalculatorId, "externalTaxCalculatorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETExternalTaxCalculatorIdMarketsRequest struct { + ctx context.Context + ApiService *HasManyApiService + externalTaxCalculatorId interface{} +} + +func (r HasManyApiGETExternalTaxCalculatorIdMarketsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalTaxCalculatorIdMarketsExecute(r) +} + +/* +GETExternalTaxCalculatorIdMarkets Retrieve the markets associated to the external tax calculator + +Retrieve the markets associated to the external tax calculator + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalTaxCalculatorId The resource's id + @return HasManyApiGETExternalTaxCalculatorIdMarketsRequest +*/ +func (a *HasManyApiService) GETExternalTaxCalculatorIdMarkets(ctx context.Context, externalTaxCalculatorId interface{}) HasManyApiGETExternalTaxCalculatorIdMarketsRequest { + return HasManyApiGETExternalTaxCalculatorIdMarketsRequest{ + ApiService: a, + ctx: ctx, + externalTaxCalculatorId: externalTaxCalculatorId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETExternalTaxCalculatorIdMarketsExecute(r HasManyApiGETExternalTaxCalculatorIdMarketsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExternalTaxCalculatorIdMarkets") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_tax_calculators/{externalTaxCalculatorId}/markets" + localVarPath = strings.Replace(localVarPath, "{"+"externalTaxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.externalTaxCalculatorId, "externalTaxCalculatorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETExternalTaxCalculatorIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + externalTaxCalculatorId interface{} +} + +func (r HasManyApiGETExternalTaxCalculatorIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalTaxCalculatorIdVersionsExecute(r) +} + +/* +GETExternalTaxCalculatorIdVersions Retrieve the versions associated to the external tax calculator + +Retrieve the versions associated to the external tax calculator + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalTaxCalculatorId The resource's id + @return HasManyApiGETExternalTaxCalculatorIdVersionsRequest +*/ +func (a *HasManyApiService) GETExternalTaxCalculatorIdVersions(ctx context.Context, externalTaxCalculatorId interface{}) HasManyApiGETExternalTaxCalculatorIdVersionsRequest { + return HasManyApiGETExternalTaxCalculatorIdVersionsRequest{ + ApiService: a, + ctx: ctx, + externalTaxCalculatorId: externalTaxCalculatorId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETExternalTaxCalculatorIdVersionsExecute(r HasManyApiGETExternalTaxCalculatorIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETExternalTaxCalculatorIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_tax_calculators/{externalTaxCalculatorId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"externalTaxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.externalTaxCalculatorId, "externalTaxCalculatorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFixedAmountPromotionIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + fixedAmountPromotionId interface{} +} + +func (r HasManyApiGETFixedAmountPromotionIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedAmountPromotionIdAttachmentsExecute(r) +} + +/* +GETFixedAmountPromotionIdAttachments Retrieve the attachments associated to the fixed amount promotion + +Retrieve the attachments associated to the fixed amount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedAmountPromotionId The resource's id + @return HasManyApiGETFixedAmountPromotionIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETFixedAmountPromotionIdAttachments(ctx context.Context, fixedAmountPromotionId interface{}) HasManyApiGETFixedAmountPromotionIdAttachmentsRequest { + return HasManyApiGETFixedAmountPromotionIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + fixedAmountPromotionId: fixedAmountPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFixedAmountPromotionIdAttachmentsExecute(r HasManyApiGETFixedAmountPromotionIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFixedAmountPromotionIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFixedAmountPromotionIdCouponsRequest struct { + ctx context.Context + ApiService *HasManyApiService + fixedAmountPromotionId interface{} +} + +func (r HasManyApiGETFixedAmountPromotionIdCouponsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedAmountPromotionIdCouponsExecute(r) +} + +/* +GETFixedAmountPromotionIdCoupons Retrieve the coupons associated to the fixed amount promotion + +Retrieve the coupons associated to the fixed amount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedAmountPromotionId The resource's id + @return HasManyApiGETFixedAmountPromotionIdCouponsRequest +*/ +func (a *HasManyApiService) GETFixedAmountPromotionIdCoupons(ctx context.Context, fixedAmountPromotionId interface{}) HasManyApiGETFixedAmountPromotionIdCouponsRequest { + return HasManyApiGETFixedAmountPromotionIdCouponsRequest{ + ApiService: a, + ctx: ctx, + fixedAmountPromotionId: fixedAmountPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFixedAmountPromotionIdCouponsExecute(r HasManyApiGETFixedAmountPromotionIdCouponsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFixedAmountPromotionIdCoupons") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/coupons" + localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFixedAmountPromotionIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + fixedAmountPromotionId interface{} +} + +func (r HasManyApiGETFixedAmountPromotionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedAmountPromotionIdEventsExecute(r) +} + +/* +GETFixedAmountPromotionIdEvents Retrieve the events associated to the fixed amount promotion + +Retrieve the events associated to the fixed amount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedAmountPromotionId The resource's id + @return HasManyApiGETFixedAmountPromotionIdEventsRequest +*/ +func (a *HasManyApiService) GETFixedAmountPromotionIdEvents(ctx context.Context, fixedAmountPromotionId interface{}) HasManyApiGETFixedAmountPromotionIdEventsRequest { + return HasManyApiGETFixedAmountPromotionIdEventsRequest{ + ApiService: a, + ctx: ctx, + fixedAmountPromotionId: fixedAmountPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFixedAmountPromotionIdEventsExecute(r HasManyApiGETFixedAmountPromotionIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFixedAmountPromotionIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFixedAmountPromotionIdSkusRequest struct { + ctx context.Context + ApiService *HasManyApiService + fixedAmountPromotionId interface{} +} + +func (r HasManyApiGETFixedAmountPromotionIdSkusRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedAmountPromotionIdSkusExecute(r) +} + +/* +GETFixedAmountPromotionIdSkus Retrieve the skus associated to the fixed amount promotion + +Retrieve the skus associated to the fixed amount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedAmountPromotionId The resource's id + @return HasManyApiGETFixedAmountPromotionIdSkusRequest +*/ +func (a *HasManyApiService) GETFixedAmountPromotionIdSkus(ctx context.Context, fixedAmountPromotionId interface{}) HasManyApiGETFixedAmountPromotionIdSkusRequest { + return HasManyApiGETFixedAmountPromotionIdSkusRequest{ + ApiService: a, + ctx: ctx, + fixedAmountPromotionId: fixedAmountPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFixedAmountPromotionIdSkusExecute(r HasManyApiGETFixedAmountPromotionIdSkusRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFixedAmountPromotionIdSkus") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/skus" + localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFixedAmountPromotionIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + fixedAmountPromotionId interface{} +} + +func (r HasManyApiGETFixedAmountPromotionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedAmountPromotionIdTagsExecute(r) +} + +/* +GETFixedAmountPromotionIdTags Retrieve the tags associated to the fixed amount promotion + +Retrieve the tags associated to the fixed amount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedAmountPromotionId The resource's id + @return HasManyApiGETFixedAmountPromotionIdTagsRequest +*/ +func (a *HasManyApiService) GETFixedAmountPromotionIdTags(ctx context.Context, fixedAmountPromotionId interface{}) HasManyApiGETFixedAmountPromotionIdTagsRequest { + return HasManyApiGETFixedAmountPromotionIdTagsRequest{ + ApiService: a, + ctx: ctx, + fixedAmountPromotionId: fixedAmountPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFixedAmountPromotionIdTagsExecute(r HasManyApiGETFixedAmountPromotionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFixedAmountPromotionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFixedAmountPromotionIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + fixedAmountPromotionId interface{} +} + +func (r HasManyApiGETFixedAmountPromotionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedAmountPromotionIdVersionsExecute(r) +} + +/* +GETFixedAmountPromotionIdVersions Retrieve the versions associated to the fixed amount promotion + +Retrieve the versions associated to the fixed amount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedAmountPromotionId The resource's id + @return HasManyApiGETFixedAmountPromotionIdVersionsRequest +*/ +func (a *HasManyApiService) GETFixedAmountPromotionIdVersions(ctx context.Context, fixedAmountPromotionId interface{}) HasManyApiGETFixedAmountPromotionIdVersionsRequest { + return HasManyApiGETFixedAmountPromotionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + fixedAmountPromotionId: fixedAmountPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFixedAmountPromotionIdVersionsExecute(r HasManyApiGETFixedAmountPromotionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFixedAmountPromotionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFixedPricePromotionIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + fixedPricePromotionId interface{} +} + +func (r HasManyApiGETFixedPricePromotionIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedPricePromotionIdAttachmentsExecute(r) +} + +/* +GETFixedPricePromotionIdAttachments Retrieve the attachments associated to the fixed price promotion + +Retrieve the attachments associated to the fixed price promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedPricePromotionId The resource's id + @return HasManyApiGETFixedPricePromotionIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETFixedPricePromotionIdAttachments(ctx context.Context, fixedPricePromotionId interface{}) HasManyApiGETFixedPricePromotionIdAttachmentsRequest { + return HasManyApiGETFixedPricePromotionIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + fixedPricePromotionId: fixedPricePromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFixedPricePromotionIdAttachmentsExecute(r HasManyApiGETFixedPricePromotionIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFixedPricePromotionIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFixedPricePromotionIdCouponsRequest struct { + ctx context.Context + ApiService *HasManyApiService + fixedPricePromotionId interface{} +} + +func (r HasManyApiGETFixedPricePromotionIdCouponsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedPricePromotionIdCouponsExecute(r) +} + +/* +GETFixedPricePromotionIdCoupons Retrieve the coupons associated to the fixed price promotion + +Retrieve the coupons associated to the fixed price promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedPricePromotionId The resource's id + @return HasManyApiGETFixedPricePromotionIdCouponsRequest +*/ +func (a *HasManyApiService) GETFixedPricePromotionIdCoupons(ctx context.Context, fixedPricePromotionId interface{}) HasManyApiGETFixedPricePromotionIdCouponsRequest { + return HasManyApiGETFixedPricePromotionIdCouponsRequest{ + ApiService: a, + ctx: ctx, + fixedPricePromotionId: fixedPricePromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFixedPricePromotionIdCouponsExecute(r HasManyApiGETFixedPricePromotionIdCouponsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFixedPricePromotionIdCoupons") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/coupons" + localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFixedPricePromotionIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + fixedPricePromotionId interface{} +} + +func (r HasManyApiGETFixedPricePromotionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedPricePromotionIdEventsExecute(r) +} + +/* +GETFixedPricePromotionIdEvents Retrieve the events associated to the fixed price promotion + +Retrieve the events associated to the fixed price promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedPricePromotionId The resource's id + @return HasManyApiGETFixedPricePromotionIdEventsRequest +*/ +func (a *HasManyApiService) GETFixedPricePromotionIdEvents(ctx context.Context, fixedPricePromotionId interface{}) HasManyApiGETFixedPricePromotionIdEventsRequest { + return HasManyApiGETFixedPricePromotionIdEventsRequest{ + ApiService: a, + ctx: ctx, + fixedPricePromotionId: fixedPricePromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFixedPricePromotionIdEventsExecute(r HasManyApiGETFixedPricePromotionIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFixedPricePromotionIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFixedPricePromotionIdSkusRequest struct { + ctx context.Context + ApiService *HasManyApiService + fixedPricePromotionId interface{} +} + +func (r HasManyApiGETFixedPricePromotionIdSkusRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedPricePromotionIdSkusExecute(r) +} + +/* +GETFixedPricePromotionIdSkus Retrieve the skus associated to the fixed price promotion + +Retrieve the skus associated to the fixed price promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedPricePromotionId The resource's id + @return HasManyApiGETFixedPricePromotionIdSkusRequest +*/ +func (a *HasManyApiService) GETFixedPricePromotionIdSkus(ctx context.Context, fixedPricePromotionId interface{}) HasManyApiGETFixedPricePromotionIdSkusRequest { + return HasManyApiGETFixedPricePromotionIdSkusRequest{ + ApiService: a, + ctx: ctx, + fixedPricePromotionId: fixedPricePromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFixedPricePromotionIdSkusExecute(r HasManyApiGETFixedPricePromotionIdSkusRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFixedPricePromotionIdSkus") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/skus" + localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFixedPricePromotionIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + fixedPricePromotionId interface{} +} + +func (r HasManyApiGETFixedPricePromotionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedPricePromotionIdTagsExecute(r) +} + +/* +GETFixedPricePromotionIdTags Retrieve the tags associated to the fixed price promotion + +Retrieve the tags associated to the fixed price promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedPricePromotionId The resource's id + @return HasManyApiGETFixedPricePromotionIdTagsRequest +*/ +func (a *HasManyApiService) GETFixedPricePromotionIdTags(ctx context.Context, fixedPricePromotionId interface{}) HasManyApiGETFixedPricePromotionIdTagsRequest { + return HasManyApiGETFixedPricePromotionIdTagsRequest{ + ApiService: a, + ctx: ctx, + fixedPricePromotionId: fixedPricePromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFixedPricePromotionIdTagsExecute(r HasManyApiGETFixedPricePromotionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFixedPricePromotionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFixedPricePromotionIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + fixedPricePromotionId interface{} +} + +func (r HasManyApiGETFixedPricePromotionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedPricePromotionIdVersionsExecute(r) +} + +/* +GETFixedPricePromotionIdVersions Retrieve the versions associated to the fixed price promotion + +Retrieve the versions associated to the fixed price promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedPricePromotionId The resource's id + @return HasManyApiGETFixedPricePromotionIdVersionsRequest +*/ +func (a *HasManyApiService) GETFixedPricePromotionIdVersions(ctx context.Context, fixedPricePromotionId interface{}) HasManyApiGETFixedPricePromotionIdVersionsRequest { + return HasManyApiGETFixedPricePromotionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + fixedPricePromotionId: fixedPricePromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFixedPricePromotionIdVersionsExecute(r HasManyApiGETFixedPricePromotionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFixedPricePromotionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFlexPromotionIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + flexPromotionId interface{} +} + +func (r HasManyApiGETFlexPromotionIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFlexPromotionIdAttachmentsExecute(r) +} + +/* +GETFlexPromotionIdAttachments Retrieve the attachments associated to the flex promotion + +Retrieve the attachments associated to the flex promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param flexPromotionId The resource's id + @return HasManyApiGETFlexPromotionIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETFlexPromotionIdAttachments(ctx context.Context, flexPromotionId interface{}) HasManyApiGETFlexPromotionIdAttachmentsRequest { + return HasManyApiGETFlexPromotionIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + flexPromotionId: flexPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFlexPromotionIdAttachmentsExecute(r HasManyApiGETFlexPromotionIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFlexPromotionIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/flex_promotions/{flexPromotionId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"flexPromotionId"+"}", url.PathEscape(parameterValueToString(r.flexPromotionId, "flexPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFlexPromotionIdCouponsRequest struct { + ctx context.Context + ApiService *HasManyApiService + flexPromotionId interface{} +} + +func (r HasManyApiGETFlexPromotionIdCouponsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFlexPromotionIdCouponsExecute(r) +} + +/* +GETFlexPromotionIdCoupons Retrieve the coupons associated to the flex promotion + +Retrieve the coupons associated to the flex promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param flexPromotionId The resource's id + @return HasManyApiGETFlexPromotionIdCouponsRequest +*/ +func (a *HasManyApiService) GETFlexPromotionIdCoupons(ctx context.Context, flexPromotionId interface{}) HasManyApiGETFlexPromotionIdCouponsRequest { + return HasManyApiGETFlexPromotionIdCouponsRequest{ + ApiService: a, + ctx: ctx, + flexPromotionId: flexPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFlexPromotionIdCouponsExecute(r HasManyApiGETFlexPromotionIdCouponsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFlexPromotionIdCoupons") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/flex_promotions/{flexPromotionId}/coupons" + localVarPath = strings.Replace(localVarPath, "{"+"flexPromotionId"+"}", url.PathEscape(parameterValueToString(r.flexPromotionId, "flexPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFlexPromotionIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + flexPromotionId interface{} +} + +func (r HasManyApiGETFlexPromotionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFlexPromotionIdEventsExecute(r) +} + +/* +GETFlexPromotionIdEvents Retrieve the events associated to the flex promotion + +Retrieve the events associated to the flex promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param flexPromotionId The resource's id + @return HasManyApiGETFlexPromotionIdEventsRequest +*/ +func (a *HasManyApiService) GETFlexPromotionIdEvents(ctx context.Context, flexPromotionId interface{}) HasManyApiGETFlexPromotionIdEventsRequest { + return HasManyApiGETFlexPromotionIdEventsRequest{ + ApiService: a, + ctx: ctx, + flexPromotionId: flexPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFlexPromotionIdEventsExecute(r HasManyApiGETFlexPromotionIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFlexPromotionIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/flex_promotions/{flexPromotionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"flexPromotionId"+"}", url.PathEscape(parameterValueToString(r.flexPromotionId, "flexPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFlexPromotionIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + flexPromotionId interface{} +} + +func (r HasManyApiGETFlexPromotionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFlexPromotionIdTagsExecute(r) +} + +/* +GETFlexPromotionIdTags Retrieve the tags associated to the flex promotion + +Retrieve the tags associated to the flex promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param flexPromotionId The resource's id + @return HasManyApiGETFlexPromotionIdTagsRequest +*/ +func (a *HasManyApiService) GETFlexPromotionIdTags(ctx context.Context, flexPromotionId interface{}) HasManyApiGETFlexPromotionIdTagsRequest { + return HasManyApiGETFlexPromotionIdTagsRequest{ + ApiService: a, + ctx: ctx, + flexPromotionId: flexPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFlexPromotionIdTagsExecute(r HasManyApiGETFlexPromotionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFlexPromotionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/flex_promotions/{flexPromotionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"flexPromotionId"+"}", url.PathEscape(parameterValueToString(r.flexPromotionId, "flexPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFlexPromotionIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + flexPromotionId interface{} +} + +func (r HasManyApiGETFlexPromotionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFlexPromotionIdVersionsExecute(r) +} + +/* +GETFlexPromotionIdVersions Retrieve the versions associated to the flex promotion + +Retrieve the versions associated to the flex promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param flexPromotionId The resource's id + @return HasManyApiGETFlexPromotionIdVersionsRequest +*/ +func (a *HasManyApiService) GETFlexPromotionIdVersions(ctx context.Context, flexPromotionId interface{}) HasManyApiGETFlexPromotionIdVersionsRequest { + return HasManyApiGETFlexPromotionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + flexPromotionId: flexPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFlexPromotionIdVersionsExecute(r HasManyApiGETFlexPromotionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFlexPromotionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/flex_promotions/{flexPromotionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"flexPromotionId"+"}", url.PathEscape(parameterValueToString(r.flexPromotionId, "flexPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFreeGiftPromotionIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + freeGiftPromotionId interface{} +} + +func (r HasManyApiGETFreeGiftPromotionIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeGiftPromotionIdAttachmentsExecute(r) +} + +/* +GETFreeGiftPromotionIdAttachments Retrieve the attachments associated to the free gift promotion + +Retrieve the attachments associated to the free gift promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeGiftPromotionId The resource's id + @return HasManyApiGETFreeGiftPromotionIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETFreeGiftPromotionIdAttachments(ctx context.Context, freeGiftPromotionId interface{}) HasManyApiGETFreeGiftPromotionIdAttachmentsRequest { + return HasManyApiGETFreeGiftPromotionIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + freeGiftPromotionId: freeGiftPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFreeGiftPromotionIdAttachmentsExecute(r HasManyApiGETFreeGiftPromotionIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFreeGiftPromotionIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFreeGiftPromotionIdCouponsRequest struct { + ctx context.Context + ApiService *HasManyApiService + freeGiftPromotionId interface{} +} + +func (r HasManyApiGETFreeGiftPromotionIdCouponsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeGiftPromotionIdCouponsExecute(r) +} + +/* +GETFreeGiftPromotionIdCoupons Retrieve the coupons associated to the free gift promotion + +Retrieve the coupons associated to the free gift promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeGiftPromotionId The resource's id + @return HasManyApiGETFreeGiftPromotionIdCouponsRequest +*/ +func (a *HasManyApiService) GETFreeGiftPromotionIdCoupons(ctx context.Context, freeGiftPromotionId interface{}) HasManyApiGETFreeGiftPromotionIdCouponsRequest { + return HasManyApiGETFreeGiftPromotionIdCouponsRequest{ + ApiService: a, + ctx: ctx, + freeGiftPromotionId: freeGiftPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFreeGiftPromotionIdCouponsExecute(r HasManyApiGETFreeGiftPromotionIdCouponsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFreeGiftPromotionIdCoupons") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/coupons" + localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFreeGiftPromotionIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + freeGiftPromotionId interface{} +} + +func (r HasManyApiGETFreeGiftPromotionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeGiftPromotionIdEventsExecute(r) +} + +/* +GETFreeGiftPromotionIdEvents Retrieve the events associated to the free gift promotion + +Retrieve the events associated to the free gift promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeGiftPromotionId The resource's id + @return HasManyApiGETFreeGiftPromotionIdEventsRequest +*/ +func (a *HasManyApiService) GETFreeGiftPromotionIdEvents(ctx context.Context, freeGiftPromotionId interface{}) HasManyApiGETFreeGiftPromotionIdEventsRequest { + return HasManyApiGETFreeGiftPromotionIdEventsRequest{ + ApiService: a, + ctx: ctx, + freeGiftPromotionId: freeGiftPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFreeGiftPromotionIdEventsExecute(r HasManyApiGETFreeGiftPromotionIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFreeGiftPromotionIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFreeGiftPromotionIdSkusRequest struct { + ctx context.Context + ApiService *HasManyApiService + freeGiftPromotionId interface{} +} + +func (r HasManyApiGETFreeGiftPromotionIdSkusRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeGiftPromotionIdSkusExecute(r) +} + +/* +GETFreeGiftPromotionIdSkus Retrieve the skus associated to the free gift promotion + +Retrieve the skus associated to the free gift promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeGiftPromotionId The resource's id + @return HasManyApiGETFreeGiftPromotionIdSkusRequest +*/ +func (a *HasManyApiService) GETFreeGiftPromotionIdSkus(ctx context.Context, freeGiftPromotionId interface{}) HasManyApiGETFreeGiftPromotionIdSkusRequest { + return HasManyApiGETFreeGiftPromotionIdSkusRequest{ + ApiService: a, + ctx: ctx, + freeGiftPromotionId: freeGiftPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFreeGiftPromotionIdSkusExecute(r HasManyApiGETFreeGiftPromotionIdSkusRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFreeGiftPromotionIdSkus") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/skus" + localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFreeGiftPromotionIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + freeGiftPromotionId interface{} +} + +func (r HasManyApiGETFreeGiftPromotionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeGiftPromotionIdTagsExecute(r) +} + +/* +GETFreeGiftPromotionIdTags Retrieve the tags associated to the free gift promotion + +Retrieve the tags associated to the free gift promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeGiftPromotionId The resource's id + @return HasManyApiGETFreeGiftPromotionIdTagsRequest +*/ +func (a *HasManyApiService) GETFreeGiftPromotionIdTags(ctx context.Context, freeGiftPromotionId interface{}) HasManyApiGETFreeGiftPromotionIdTagsRequest { + return HasManyApiGETFreeGiftPromotionIdTagsRequest{ + ApiService: a, + ctx: ctx, + freeGiftPromotionId: freeGiftPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFreeGiftPromotionIdTagsExecute(r HasManyApiGETFreeGiftPromotionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFreeGiftPromotionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFreeGiftPromotionIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + freeGiftPromotionId interface{} +} + +func (r HasManyApiGETFreeGiftPromotionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeGiftPromotionIdVersionsExecute(r) +} + +/* +GETFreeGiftPromotionIdVersions Retrieve the versions associated to the free gift promotion + +Retrieve the versions associated to the free gift promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeGiftPromotionId The resource's id + @return HasManyApiGETFreeGiftPromotionIdVersionsRequest +*/ +func (a *HasManyApiService) GETFreeGiftPromotionIdVersions(ctx context.Context, freeGiftPromotionId interface{}) HasManyApiGETFreeGiftPromotionIdVersionsRequest { + return HasManyApiGETFreeGiftPromotionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + freeGiftPromotionId: freeGiftPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFreeGiftPromotionIdVersionsExecute(r HasManyApiGETFreeGiftPromotionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFreeGiftPromotionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFreeShippingPromotionIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + freeShippingPromotionId interface{} +} + +func (r HasManyApiGETFreeShippingPromotionIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeShippingPromotionIdAttachmentsExecute(r) +} + +/* +GETFreeShippingPromotionIdAttachments Retrieve the attachments associated to the free shipping promotion + +Retrieve the attachments associated to the free shipping promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeShippingPromotionId The resource's id + @return HasManyApiGETFreeShippingPromotionIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETFreeShippingPromotionIdAttachments(ctx context.Context, freeShippingPromotionId interface{}) HasManyApiGETFreeShippingPromotionIdAttachmentsRequest { + return HasManyApiGETFreeShippingPromotionIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + freeShippingPromotionId: freeShippingPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFreeShippingPromotionIdAttachmentsExecute(r HasManyApiGETFreeShippingPromotionIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFreeShippingPromotionIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFreeShippingPromotionIdCouponsRequest struct { + ctx context.Context + ApiService *HasManyApiService + freeShippingPromotionId interface{} +} + +func (r HasManyApiGETFreeShippingPromotionIdCouponsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeShippingPromotionIdCouponsExecute(r) +} + +/* +GETFreeShippingPromotionIdCoupons Retrieve the coupons associated to the free shipping promotion + +Retrieve the coupons associated to the free shipping promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeShippingPromotionId The resource's id + @return HasManyApiGETFreeShippingPromotionIdCouponsRequest +*/ +func (a *HasManyApiService) GETFreeShippingPromotionIdCoupons(ctx context.Context, freeShippingPromotionId interface{}) HasManyApiGETFreeShippingPromotionIdCouponsRequest { + return HasManyApiGETFreeShippingPromotionIdCouponsRequest{ + ApiService: a, + ctx: ctx, + freeShippingPromotionId: freeShippingPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFreeShippingPromotionIdCouponsExecute(r HasManyApiGETFreeShippingPromotionIdCouponsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFreeShippingPromotionIdCoupons") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/coupons" + localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFreeShippingPromotionIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + freeShippingPromotionId interface{} +} + +func (r HasManyApiGETFreeShippingPromotionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeShippingPromotionIdEventsExecute(r) +} + +/* +GETFreeShippingPromotionIdEvents Retrieve the events associated to the free shipping promotion + +Retrieve the events associated to the free shipping promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeShippingPromotionId The resource's id + @return HasManyApiGETFreeShippingPromotionIdEventsRequest +*/ +func (a *HasManyApiService) GETFreeShippingPromotionIdEvents(ctx context.Context, freeShippingPromotionId interface{}) HasManyApiGETFreeShippingPromotionIdEventsRequest { + return HasManyApiGETFreeShippingPromotionIdEventsRequest{ + ApiService: a, + ctx: ctx, + freeShippingPromotionId: freeShippingPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFreeShippingPromotionIdEventsExecute(r HasManyApiGETFreeShippingPromotionIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFreeShippingPromotionIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFreeShippingPromotionIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + freeShippingPromotionId interface{} +} + +func (r HasManyApiGETFreeShippingPromotionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeShippingPromotionIdTagsExecute(r) +} + +/* +GETFreeShippingPromotionIdTags Retrieve the tags associated to the free shipping promotion + +Retrieve the tags associated to the free shipping promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeShippingPromotionId The resource's id + @return HasManyApiGETFreeShippingPromotionIdTagsRequest +*/ +func (a *HasManyApiService) GETFreeShippingPromotionIdTags(ctx context.Context, freeShippingPromotionId interface{}) HasManyApiGETFreeShippingPromotionIdTagsRequest { + return HasManyApiGETFreeShippingPromotionIdTagsRequest{ + ApiService: a, + ctx: ctx, + freeShippingPromotionId: freeShippingPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFreeShippingPromotionIdTagsExecute(r HasManyApiGETFreeShippingPromotionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFreeShippingPromotionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETFreeShippingPromotionIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + freeShippingPromotionId interface{} +} + +func (r HasManyApiGETFreeShippingPromotionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeShippingPromotionIdVersionsExecute(r) +} + +/* +GETFreeShippingPromotionIdVersions Retrieve the versions associated to the free shipping promotion + +Retrieve the versions associated to the free shipping promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeShippingPromotionId The resource's id + @return HasManyApiGETFreeShippingPromotionIdVersionsRequest +*/ +func (a *HasManyApiService) GETFreeShippingPromotionIdVersions(ctx context.Context, freeShippingPromotionId interface{}) HasManyApiGETFreeShippingPromotionIdVersionsRequest { + return HasManyApiGETFreeShippingPromotionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + freeShippingPromotionId: freeShippingPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETFreeShippingPromotionIdVersionsExecute(r HasManyApiGETFreeShippingPromotionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETFreeShippingPromotionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETGeocoderIdAddressesRequest struct { + ctx context.Context + ApiService *HasManyApiService + geocoderId interface{} +} + +func (r HasManyApiGETGeocoderIdAddressesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGeocoderIdAddressesExecute(r) +} + +/* +GETGeocoderIdAddresses Retrieve the addresses associated to the geocoder + +Retrieve the addresses associated to the geocoder + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param geocoderId The resource's id + @return HasManyApiGETGeocoderIdAddressesRequest +*/ +func (a *HasManyApiService) GETGeocoderIdAddresses(ctx context.Context, geocoderId interface{}) HasManyApiGETGeocoderIdAddressesRequest { + return HasManyApiGETGeocoderIdAddressesRequest{ + ApiService: a, + ctx: ctx, + geocoderId: geocoderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETGeocoderIdAddressesExecute(r HasManyApiGETGeocoderIdAddressesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETGeocoderIdAddresses") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/geocoders/{geocoderId}/addresses" + localVarPath = strings.Replace(localVarPath, "{"+"geocoderId"+"}", url.PathEscape(parameterValueToString(r.geocoderId, "geocoderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETGeocoderIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + geocoderId interface{} +} + +func (r HasManyApiGETGeocoderIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGeocoderIdAttachmentsExecute(r) +} + +/* +GETGeocoderIdAttachments Retrieve the attachments associated to the geocoder + +Retrieve the attachments associated to the geocoder + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param geocoderId The resource's id + @return HasManyApiGETGeocoderIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETGeocoderIdAttachments(ctx context.Context, geocoderId interface{}) HasManyApiGETGeocoderIdAttachmentsRequest { + return HasManyApiGETGeocoderIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + geocoderId: geocoderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETGeocoderIdAttachmentsExecute(r HasManyApiGETGeocoderIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETGeocoderIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/geocoders/{geocoderId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"geocoderId"+"}", url.PathEscape(parameterValueToString(r.geocoderId, "geocoderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETGeocoderIdMarketsRequest struct { + ctx context.Context + ApiService *HasManyApiService + geocoderId interface{} +} + +func (r HasManyApiGETGeocoderIdMarketsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGeocoderIdMarketsExecute(r) +} + +/* +GETGeocoderIdMarkets Retrieve the markets associated to the geocoder + +Retrieve the markets associated to the geocoder @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param geocoderId The resource's id - @return HasManyApiGETGeocoderIdAttachmentsRequest + @return HasManyApiGETGeocoderIdMarketsRequest +*/ +func (a *HasManyApiService) GETGeocoderIdMarkets(ctx context.Context, geocoderId interface{}) HasManyApiGETGeocoderIdMarketsRequest { + return HasManyApiGETGeocoderIdMarketsRequest{ + ApiService: a, + ctx: ctx, + geocoderId: geocoderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETGeocoderIdMarketsExecute(r HasManyApiGETGeocoderIdMarketsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETGeocoderIdMarkets") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/geocoders/{geocoderId}/markets" + localVarPath = strings.Replace(localVarPath, "{"+"geocoderId"+"}", url.PathEscape(parameterValueToString(r.geocoderId, "geocoderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETGiftCardIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + giftCardId interface{} +} + +func (r HasManyApiGETGiftCardIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGiftCardIdAttachmentsExecute(r) +} + +/* +GETGiftCardIdAttachments Retrieve the attachments associated to the gift card + +Retrieve the attachments associated to the gift card + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param giftCardId The resource's id + @return HasManyApiGETGiftCardIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETGiftCardIdAttachments(ctx context.Context, giftCardId interface{}) HasManyApiGETGiftCardIdAttachmentsRequest { + return HasManyApiGETGiftCardIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + giftCardId: giftCardId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETGiftCardIdAttachmentsExecute(r HasManyApiGETGiftCardIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETGiftCardIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/gift_cards/{giftCardId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"giftCardId"+"}", url.PathEscape(parameterValueToString(r.giftCardId, "giftCardId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETGiftCardIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + giftCardId interface{} +} + +func (r HasManyApiGETGiftCardIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGiftCardIdEventsExecute(r) +} + +/* +GETGiftCardIdEvents Retrieve the events associated to the gift card + +Retrieve the events associated to the gift card + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param giftCardId The resource's id + @return HasManyApiGETGiftCardIdEventsRequest +*/ +func (a *HasManyApiService) GETGiftCardIdEvents(ctx context.Context, giftCardId interface{}) HasManyApiGETGiftCardIdEventsRequest { + return HasManyApiGETGiftCardIdEventsRequest{ + ApiService: a, + ctx: ctx, + giftCardId: giftCardId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETGiftCardIdEventsExecute(r HasManyApiGETGiftCardIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETGiftCardIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/gift_cards/{giftCardId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"giftCardId"+"}", url.PathEscape(parameterValueToString(r.giftCardId, "giftCardId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETGiftCardIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + giftCardId interface{} +} + +func (r HasManyApiGETGiftCardIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGiftCardIdTagsExecute(r) +} + +/* +GETGiftCardIdTags Retrieve the tags associated to the gift card + +Retrieve the tags associated to the gift card + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param giftCardId The resource's id + @return HasManyApiGETGiftCardIdTagsRequest +*/ +func (a *HasManyApiService) GETGiftCardIdTags(ctx context.Context, giftCardId interface{}) HasManyApiGETGiftCardIdTagsRequest { + return HasManyApiGETGiftCardIdTagsRequest{ + ApiService: a, + ctx: ctx, + giftCardId: giftCardId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETGiftCardIdTagsExecute(r HasManyApiGETGiftCardIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETGiftCardIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/gift_cards/{giftCardId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"giftCardId"+"}", url.PathEscape(parameterValueToString(r.giftCardId, "giftCardId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETGiftCardIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + giftCardId interface{} +} + +func (r HasManyApiGETGiftCardIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGiftCardIdVersionsExecute(r) +} + +/* +GETGiftCardIdVersions Retrieve the versions associated to the gift card + +Retrieve the versions associated to the gift card + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param giftCardId The resource's id + @return HasManyApiGETGiftCardIdVersionsRequest +*/ +func (a *HasManyApiService) GETGiftCardIdVersions(ctx context.Context, giftCardId interface{}) HasManyApiGETGiftCardIdVersionsRequest { + return HasManyApiGETGiftCardIdVersionsRequest{ + ApiService: a, + ctx: ctx, + giftCardId: giftCardId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETGiftCardIdVersionsExecute(r HasManyApiGETGiftCardIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETGiftCardIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/gift_cards/{giftCardId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"giftCardId"+"}", url.PathEscape(parameterValueToString(r.giftCardId, "giftCardId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETGiftCardRecipientIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + giftCardRecipientId interface{} +} + +func (r HasManyApiGETGiftCardRecipientIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGiftCardRecipientIdAttachmentsExecute(r) +} + +/* +GETGiftCardRecipientIdAttachments Retrieve the attachments associated to the gift card recipient + +Retrieve the attachments associated to the gift card recipient + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param giftCardRecipientId The resource's id + @return HasManyApiGETGiftCardRecipientIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETGiftCardRecipientIdAttachments(ctx context.Context, giftCardRecipientId interface{}) HasManyApiGETGiftCardRecipientIdAttachmentsRequest { + return HasManyApiGETGiftCardRecipientIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + giftCardRecipientId: giftCardRecipientId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETGiftCardRecipientIdAttachmentsExecute(r HasManyApiGETGiftCardRecipientIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETGiftCardRecipientIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/gift_card_recipients/{giftCardRecipientId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"giftCardRecipientId"+"}", url.PathEscape(parameterValueToString(r.giftCardRecipientId, "giftCardRecipientId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETGiftCardRecipientIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + giftCardRecipientId interface{} +} + +func (r HasManyApiGETGiftCardRecipientIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGiftCardRecipientIdVersionsExecute(r) +} + +/* +GETGiftCardRecipientIdVersions Retrieve the versions associated to the gift card recipient + +Retrieve the versions associated to the gift card recipient + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param giftCardRecipientId The resource's id + @return HasManyApiGETGiftCardRecipientIdVersionsRequest +*/ +func (a *HasManyApiService) GETGiftCardRecipientIdVersions(ctx context.Context, giftCardRecipientId interface{}) HasManyApiGETGiftCardRecipientIdVersionsRequest { + return HasManyApiGETGiftCardRecipientIdVersionsRequest{ + ApiService: a, + ctx: ctx, + giftCardRecipientId: giftCardRecipientId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETGiftCardRecipientIdVersionsExecute(r HasManyApiGETGiftCardRecipientIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETGiftCardRecipientIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/gift_card_recipients/{giftCardRecipientId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"giftCardRecipientId"+"}", url.PathEscape(parameterValueToString(r.giftCardRecipientId, "giftCardRecipientId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETGoogleGeocoderIdAddressesRequest struct { + ctx context.Context + ApiService *HasManyApiService + googleGeocoderId interface{} +} + +func (r HasManyApiGETGoogleGeocoderIdAddressesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGoogleGeocoderIdAddressesExecute(r) +} + +/* +GETGoogleGeocoderIdAddresses Retrieve the addresses associated to the google geocoder + +Retrieve the addresses associated to the google geocoder + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param googleGeocoderId The resource's id + @return HasManyApiGETGoogleGeocoderIdAddressesRequest +*/ +func (a *HasManyApiService) GETGoogleGeocoderIdAddresses(ctx context.Context, googleGeocoderId interface{}) HasManyApiGETGoogleGeocoderIdAddressesRequest { + return HasManyApiGETGoogleGeocoderIdAddressesRequest{ + ApiService: a, + ctx: ctx, + googleGeocoderId: googleGeocoderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETGoogleGeocoderIdAddressesExecute(r HasManyApiGETGoogleGeocoderIdAddressesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETGoogleGeocoderIdAddresses") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/google_geocoders/{googleGeocoderId}/addresses" + localVarPath = strings.Replace(localVarPath, "{"+"googleGeocoderId"+"}", url.PathEscape(parameterValueToString(r.googleGeocoderId, "googleGeocoderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETGoogleGeocoderIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + googleGeocoderId interface{} +} + +func (r HasManyApiGETGoogleGeocoderIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGoogleGeocoderIdAttachmentsExecute(r) +} + +/* +GETGoogleGeocoderIdAttachments Retrieve the attachments associated to the google geocoder + +Retrieve the attachments associated to the google geocoder + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param googleGeocoderId The resource's id + @return HasManyApiGETGoogleGeocoderIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETGoogleGeocoderIdAttachments(ctx context.Context, googleGeocoderId interface{}) HasManyApiGETGoogleGeocoderIdAttachmentsRequest { + return HasManyApiGETGoogleGeocoderIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + googleGeocoderId: googleGeocoderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETGoogleGeocoderIdAttachmentsExecute(r HasManyApiGETGoogleGeocoderIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETGoogleGeocoderIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/google_geocoders/{googleGeocoderId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"googleGeocoderId"+"}", url.PathEscape(parameterValueToString(r.googleGeocoderId, "googleGeocoderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETGoogleGeocoderIdMarketsRequest struct { + ctx context.Context + ApiService *HasManyApiService + googleGeocoderId interface{} +} + +func (r HasManyApiGETGoogleGeocoderIdMarketsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGoogleGeocoderIdMarketsExecute(r) +} + +/* +GETGoogleGeocoderIdMarkets Retrieve the markets associated to the google geocoder + +Retrieve the markets associated to the google geocoder + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param googleGeocoderId The resource's id + @return HasManyApiGETGoogleGeocoderIdMarketsRequest +*/ +func (a *HasManyApiService) GETGoogleGeocoderIdMarkets(ctx context.Context, googleGeocoderId interface{}) HasManyApiGETGoogleGeocoderIdMarketsRequest { + return HasManyApiGETGoogleGeocoderIdMarketsRequest{ + ApiService: a, + ctx: ctx, + googleGeocoderId: googleGeocoderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETGoogleGeocoderIdMarketsExecute(r HasManyApiGETGoogleGeocoderIdMarketsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETGoogleGeocoderIdMarkets") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/google_geocoders/{googleGeocoderId}/markets" + localVarPath = strings.Replace(localVarPath, "{"+"googleGeocoderId"+"}", url.PathEscape(parameterValueToString(r.googleGeocoderId, "googleGeocoderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETImportIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + importId interface{} +} + +func (r HasManyApiGETImportIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETImportIdEventsExecute(r) +} + +/* +GETImportIdEvents Retrieve the events associated to the import + +Retrieve the events associated to the import + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param importId The resource's id + @return HasManyApiGETImportIdEventsRequest +*/ +func (a *HasManyApiService) GETImportIdEvents(ctx context.Context, importId interface{}) HasManyApiGETImportIdEventsRequest { + return HasManyApiGETImportIdEventsRequest{ + ApiService: a, + ctx: ctx, + importId: importId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETImportIdEventsExecute(r HasManyApiGETImportIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETImportIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/imports/{importId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"importId"+"}", url.PathEscape(parameterValueToString(r.importId, "importId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETInStockSubscriptionIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + inStockSubscriptionId interface{} +} + +func (r HasManyApiGETInStockSubscriptionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInStockSubscriptionIdEventsExecute(r) +} + +/* +GETInStockSubscriptionIdEvents Retrieve the events associated to the in stock subscription + +Retrieve the events associated to the in stock subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param inStockSubscriptionId The resource's id + @return HasManyApiGETInStockSubscriptionIdEventsRequest +*/ +func (a *HasManyApiService) GETInStockSubscriptionIdEvents(ctx context.Context, inStockSubscriptionId interface{}) HasManyApiGETInStockSubscriptionIdEventsRequest { + return HasManyApiGETInStockSubscriptionIdEventsRequest{ + ApiService: a, + ctx: ctx, + inStockSubscriptionId: inStockSubscriptionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETInStockSubscriptionIdEventsExecute(r HasManyApiGETInStockSubscriptionIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETInStockSubscriptionIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/in_stock_subscriptions/{inStockSubscriptionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"inStockSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.inStockSubscriptionId, "inStockSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETInStockSubscriptionIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + inStockSubscriptionId interface{} +} + +func (r HasManyApiGETInStockSubscriptionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInStockSubscriptionIdVersionsExecute(r) +} + +/* +GETInStockSubscriptionIdVersions Retrieve the versions associated to the in stock subscription + +Retrieve the versions associated to the in stock subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param inStockSubscriptionId The resource's id + @return HasManyApiGETInStockSubscriptionIdVersionsRequest +*/ +func (a *HasManyApiService) GETInStockSubscriptionIdVersions(ctx context.Context, inStockSubscriptionId interface{}) HasManyApiGETInStockSubscriptionIdVersionsRequest { + return HasManyApiGETInStockSubscriptionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + inStockSubscriptionId: inStockSubscriptionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETInStockSubscriptionIdVersionsExecute(r HasManyApiGETInStockSubscriptionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETInStockSubscriptionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/in_stock_subscriptions/{inStockSubscriptionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"inStockSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.inStockSubscriptionId, "inStockSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETInventoryModelIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + inventoryModelId interface{} +} + +func (r HasManyApiGETInventoryModelIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInventoryModelIdAttachmentsExecute(r) +} + +/* +GETInventoryModelIdAttachments Retrieve the attachments associated to the inventory model + +Retrieve the attachments associated to the inventory model + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param inventoryModelId The resource's id + @return HasManyApiGETInventoryModelIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETInventoryModelIdAttachments(ctx context.Context, inventoryModelId interface{}) HasManyApiGETInventoryModelIdAttachmentsRequest { + return HasManyApiGETInventoryModelIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + inventoryModelId: inventoryModelId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETInventoryModelIdAttachmentsExecute(r HasManyApiGETInventoryModelIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETInventoryModelIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/inventory_models/{inventoryModelId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"inventoryModelId"+"}", url.PathEscape(parameterValueToString(r.inventoryModelId, "inventoryModelId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETInventoryModelIdInventoryReturnLocationsRequest struct { + ctx context.Context + ApiService *HasManyApiService + inventoryModelId interface{} +} + +func (r HasManyApiGETInventoryModelIdInventoryReturnLocationsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInventoryModelIdInventoryReturnLocationsExecute(r) +} + +/* +GETInventoryModelIdInventoryReturnLocations Retrieve the inventory return locations associated to the inventory model + +Retrieve the inventory return locations associated to the inventory model + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param inventoryModelId The resource's id + @return HasManyApiGETInventoryModelIdInventoryReturnLocationsRequest +*/ +func (a *HasManyApiService) GETInventoryModelIdInventoryReturnLocations(ctx context.Context, inventoryModelId interface{}) HasManyApiGETInventoryModelIdInventoryReturnLocationsRequest { + return HasManyApiGETInventoryModelIdInventoryReturnLocationsRequest{ + ApiService: a, + ctx: ctx, + inventoryModelId: inventoryModelId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETInventoryModelIdInventoryReturnLocationsExecute(r HasManyApiGETInventoryModelIdInventoryReturnLocationsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETInventoryModelIdInventoryReturnLocations") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/inventory_models/{inventoryModelId}/inventory_return_locations" + localVarPath = strings.Replace(localVarPath, "{"+"inventoryModelId"+"}", url.PathEscape(parameterValueToString(r.inventoryModelId, "inventoryModelId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETInventoryModelIdInventoryStockLocationsRequest struct { + ctx context.Context + ApiService *HasManyApiService + inventoryModelId interface{} +} + +func (r HasManyApiGETInventoryModelIdInventoryStockLocationsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInventoryModelIdInventoryStockLocationsExecute(r) +} + +/* +GETInventoryModelIdInventoryStockLocations Retrieve the inventory stock locations associated to the inventory model + +Retrieve the inventory stock locations associated to the inventory model + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param inventoryModelId The resource's id + @return HasManyApiGETInventoryModelIdInventoryStockLocationsRequest +*/ +func (a *HasManyApiService) GETInventoryModelIdInventoryStockLocations(ctx context.Context, inventoryModelId interface{}) HasManyApiGETInventoryModelIdInventoryStockLocationsRequest { + return HasManyApiGETInventoryModelIdInventoryStockLocationsRequest{ + ApiService: a, + ctx: ctx, + inventoryModelId: inventoryModelId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETInventoryModelIdInventoryStockLocationsExecute(r HasManyApiGETInventoryModelIdInventoryStockLocationsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETInventoryModelIdInventoryStockLocations") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/inventory_models/{inventoryModelId}/inventory_stock_locations" + localVarPath = strings.Replace(localVarPath, "{"+"inventoryModelId"+"}", url.PathEscape(parameterValueToString(r.inventoryModelId, "inventoryModelId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETInventoryModelIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + inventoryModelId interface{} +} + +func (r HasManyApiGETInventoryModelIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInventoryModelIdVersionsExecute(r) +} + +/* +GETInventoryModelIdVersions Retrieve the versions associated to the inventory model + +Retrieve the versions associated to the inventory model + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param inventoryModelId The resource's id + @return HasManyApiGETInventoryModelIdVersionsRequest +*/ +func (a *HasManyApiService) GETInventoryModelIdVersions(ctx context.Context, inventoryModelId interface{}) HasManyApiGETInventoryModelIdVersionsRequest { + return HasManyApiGETInventoryModelIdVersionsRequest{ + ApiService: a, + ctx: ctx, + inventoryModelId: inventoryModelId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETInventoryModelIdVersionsExecute(r HasManyApiGETInventoryModelIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETInventoryModelIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/inventory_models/{inventoryModelId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"inventoryModelId"+"}", url.PathEscape(parameterValueToString(r.inventoryModelId, "inventoryModelId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETInventoryReturnLocationIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + inventoryReturnLocationId interface{} +} + +func (r HasManyApiGETInventoryReturnLocationIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInventoryReturnLocationIdVersionsExecute(r) +} + +/* +GETInventoryReturnLocationIdVersions Retrieve the versions associated to the inventory return location + +Retrieve the versions associated to the inventory return location + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param inventoryReturnLocationId The resource's id + @return HasManyApiGETInventoryReturnLocationIdVersionsRequest +*/ +func (a *HasManyApiService) GETInventoryReturnLocationIdVersions(ctx context.Context, inventoryReturnLocationId interface{}) HasManyApiGETInventoryReturnLocationIdVersionsRequest { + return HasManyApiGETInventoryReturnLocationIdVersionsRequest{ + ApiService: a, + ctx: ctx, + inventoryReturnLocationId: inventoryReturnLocationId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETInventoryReturnLocationIdVersionsExecute(r HasManyApiGETInventoryReturnLocationIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETInventoryReturnLocationIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/inventory_return_locations/{inventoryReturnLocationId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"inventoryReturnLocationId"+"}", url.PathEscape(parameterValueToString(r.inventoryReturnLocationId, "inventoryReturnLocationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETInventoryStockLocationIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + inventoryStockLocationId interface{} +} + +func (r HasManyApiGETInventoryStockLocationIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInventoryStockLocationIdVersionsExecute(r) +} + +/* +GETInventoryStockLocationIdVersions Retrieve the versions associated to the inventory stock location + +Retrieve the versions associated to the inventory stock location + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param inventoryStockLocationId The resource's id + @return HasManyApiGETInventoryStockLocationIdVersionsRequest +*/ +func (a *HasManyApiService) GETInventoryStockLocationIdVersions(ctx context.Context, inventoryStockLocationId interface{}) HasManyApiGETInventoryStockLocationIdVersionsRequest { + return HasManyApiGETInventoryStockLocationIdVersionsRequest{ + ApiService: a, + ctx: ctx, + inventoryStockLocationId: inventoryStockLocationId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETInventoryStockLocationIdVersionsExecute(r HasManyApiGETInventoryStockLocationIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETInventoryStockLocationIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/inventory_stock_locations/{inventoryStockLocationId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"inventoryStockLocationId"+"}", url.PathEscape(parameterValueToString(r.inventoryStockLocationId, "inventoryStockLocationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETKlarnaGatewayIdKlarnaPaymentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + klarnaGatewayId interface{} +} + +func (r HasManyApiGETKlarnaGatewayIdKlarnaPaymentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETKlarnaGatewayIdKlarnaPaymentsExecute(r) +} + +/* +GETKlarnaGatewayIdKlarnaPayments Retrieve the klarna payments associated to the klarna gateway + +Retrieve the klarna payments associated to the klarna gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param klarnaGatewayId The resource's id + @return HasManyApiGETKlarnaGatewayIdKlarnaPaymentsRequest +*/ +func (a *HasManyApiService) GETKlarnaGatewayIdKlarnaPayments(ctx context.Context, klarnaGatewayId interface{}) HasManyApiGETKlarnaGatewayIdKlarnaPaymentsRequest { + return HasManyApiGETKlarnaGatewayIdKlarnaPaymentsRequest{ + ApiService: a, + ctx: ctx, + klarnaGatewayId: klarnaGatewayId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETKlarnaGatewayIdKlarnaPaymentsExecute(r HasManyApiGETKlarnaGatewayIdKlarnaPaymentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETKlarnaGatewayIdKlarnaPayments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/klarna_gateways/{klarnaGatewayId}/klarna_payments" + localVarPath = strings.Replace(localVarPath, "{"+"klarnaGatewayId"+"}", url.PathEscape(parameterValueToString(r.klarnaGatewayId, "klarnaGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETKlarnaGatewayIdPaymentMethodsRequest struct { + ctx context.Context + ApiService *HasManyApiService + klarnaGatewayId interface{} +} + +func (r HasManyApiGETKlarnaGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETKlarnaGatewayIdPaymentMethodsExecute(r) +} + +/* +GETKlarnaGatewayIdPaymentMethods Retrieve the payment methods associated to the klarna gateway + +Retrieve the payment methods associated to the klarna gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param klarnaGatewayId The resource's id + @return HasManyApiGETKlarnaGatewayIdPaymentMethodsRequest +*/ +func (a *HasManyApiService) GETKlarnaGatewayIdPaymentMethods(ctx context.Context, klarnaGatewayId interface{}) HasManyApiGETKlarnaGatewayIdPaymentMethodsRequest { + return HasManyApiGETKlarnaGatewayIdPaymentMethodsRequest{ + ApiService: a, + ctx: ctx, + klarnaGatewayId: klarnaGatewayId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETKlarnaGatewayIdPaymentMethodsExecute(r HasManyApiGETKlarnaGatewayIdPaymentMethodsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETKlarnaGatewayIdPaymentMethods") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/klarna_gateways/{klarnaGatewayId}/payment_methods" + localVarPath = strings.Replace(localVarPath, "{"+"klarnaGatewayId"+"}", url.PathEscape(parameterValueToString(r.klarnaGatewayId, "klarnaGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETKlarnaGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + klarnaGatewayId interface{} +} + +func (r HasManyApiGETKlarnaGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETKlarnaGatewayIdVersionsExecute(r) +} + +/* +GETKlarnaGatewayIdVersions Retrieve the versions associated to the klarna gateway + +Retrieve the versions associated to the klarna gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param klarnaGatewayId The resource's id + @return HasManyApiGETKlarnaGatewayIdVersionsRequest +*/ +func (a *HasManyApiService) GETKlarnaGatewayIdVersions(ctx context.Context, klarnaGatewayId interface{}) HasManyApiGETKlarnaGatewayIdVersionsRequest { + return HasManyApiGETKlarnaGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + klarnaGatewayId: klarnaGatewayId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETKlarnaGatewayIdVersionsExecute(r HasManyApiGETKlarnaGatewayIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETKlarnaGatewayIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/klarna_gateways/{klarnaGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"klarnaGatewayId"+"}", url.PathEscape(parameterValueToString(r.klarnaGatewayId, "klarnaGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETKlarnaPaymentIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + klarnaPaymentId interface{} +} + +func (r HasManyApiGETKlarnaPaymentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETKlarnaPaymentIdVersionsExecute(r) +} + +/* +GETKlarnaPaymentIdVersions Retrieve the versions associated to the klarna payment + +Retrieve the versions associated to the klarna payment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param klarnaPaymentId The resource's id + @return HasManyApiGETKlarnaPaymentIdVersionsRequest +*/ +func (a *HasManyApiService) GETKlarnaPaymentIdVersions(ctx context.Context, klarnaPaymentId interface{}) HasManyApiGETKlarnaPaymentIdVersionsRequest { + return HasManyApiGETKlarnaPaymentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + klarnaPaymentId: klarnaPaymentId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETKlarnaPaymentIdVersionsExecute(r HasManyApiGETKlarnaPaymentIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETKlarnaPaymentIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/klarna_payments/{klarnaPaymentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"klarnaPaymentId"+"}", url.PathEscape(parameterValueToString(r.klarnaPaymentId, "klarnaPaymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETLineItemIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + lineItemId interface{} +} + +func (r HasManyApiGETLineItemIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLineItemIdEventsExecute(r) +} + +/* +GETLineItemIdEvents Retrieve the events associated to the line item + +Retrieve the events associated to the line item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param lineItemId The resource's id + @return HasManyApiGETLineItemIdEventsRequest +*/ +func (a *HasManyApiService) GETLineItemIdEvents(ctx context.Context, lineItemId interface{}) HasManyApiGETLineItemIdEventsRequest { + return HasManyApiGETLineItemIdEventsRequest{ + ApiService: a, + ctx: ctx, + lineItemId: lineItemId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETLineItemIdEventsExecute(r HasManyApiGETLineItemIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETLineItemIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/line_items/{lineItemId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"lineItemId"+"}", url.PathEscape(parameterValueToString(r.lineItemId, "lineItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETLineItemIdLineItemOptionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + lineItemId interface{} +} + +func (r HasManyApiGETLineItemIdLineItemOptionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLineItemIdLineItemOptionsExecute(r) +} + +/* +GETLineItemIdLineItemOptions Retrieve the line item options associated to the line item + +Retrieve the line item options associated to the line item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param lineItemId The resource's id + @return HasManyApiGETLineItemIdLineItemOptionsRequest +*/ +func (a *HasManyApiService) GETLineItemIdLineItemOptions(ctx context.Context, lineItemId interface{}) HasManyApiGETLineItemIdLineItemOptionsRequest { + return HasManyApiGETLineItemIdLineItemOptionsRequest{ + ApiService: a, + ctx: ctx, + lineItemId: lineItemId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETLineItemIdLineItemOptionsExecute(r HasManyApiGETLineItemIdLineItemOptionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETLineItemIdLineItemOptions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/line_items/{lineItemId}/line_item_options" + localVarPath = strings.Replace(localVarPath, "{"+"lineItemId"+"}", url.PathEscape(parameterValueToString(r.lineItemId, "lineItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETLineItemIdReturnLineItemsRequest struct { + ctx context.Context + ApiService *HasManyApiService + lineItemId interface{} +} + +func (r HasManyApiGETLineItemIdReturnLineItemsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLineItemIdReturnLineItemsExecute(r) +} + +/* +GETLineItemIdReturnLineItems Retrieve the return line items associated to the line item + +Retrieve the return line items associated to the line item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param lineItemId The resource's id + @return HasManyApiGETLineItemIdReturnLineItemsRequest +*/ +func (a *HasManyApiService) GETLineItemIdReturnLineItems(ctx context.Context, lineItemId interface{}) HasManyApiGETLineItemIdReturnLineItemsRequest { + return HasManyApiGETLineItemIdReturnLineItemsRequest{ + ApiService: a, + ctx: ctx, + lineItemId: lineItemId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETLineItemIdReturnLineItemsExecute(r HasManyApiGETLineItemIdReturnLineItemsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETLineItemIdReturnLineItems") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/line_items/{lineItemId}/return_line_items" + localVarPath = strings.Replace(localVarPath, "{"+"lineItemId"+"}", url.PathEscape(parameterValueToString(r.lineItemId, "lineItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETLineItemIdStockLineItemsRequest struct { + ctx context.Context + ApiService *HasManyApiService + lineItemId interface{} +} + +func (r HasManyApiGETLineItemIdStockLineItemsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLineItemIdStockLineItemsExecute(r) +} + +/* +GETLineItemIdStockLineItems Retrieve the stock line items associated to the line item + +Retrieve the stock line items associated to the line item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param lineItemId The resource's id + @return HasManyApiGETLineItemIdStockLineItemsRequest +*/ +func (a *HasManyApiService) GETLineItemIdStockLineItems(ctx context.Context, lineItemId interface{}) HasManyApiGETLineItemIdStockLineItemsRequest { + return HasManyApiGETLineItemIdStockLineItemsRequest{ + ApiService: a, + ctx: ctx, + lineItemId: lineItemId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETLineItemIdStockLineItemsExecute(r HasManyApiGETLineItemIdStockLineItemsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETLineItemIdStockLineItems") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/line_items/{lineItemId}/stock_line_items" + localVarPath = strings.Replace(localVarPath, "{"+"lineItemId"+"}", url.PathEscape(parameterValueToString(r.lineItemId, "lineItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETLineItemIdStockReservationsRequest struct { + ctx context.Context + ApiService *HasManyApiService + lineItemId interface{} +} + +func (r HasManyApiGETLineItemIdStockReservationsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLineItemIdStockReservationsExecute(r) +} + +/* +GETLineItemIdStockReservations Retrieve the stock reservations associated to the line item + +Retrieve the stock reservations associated to the line item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param lineItemId The resource's id + @return HasManyApiGETLineItemIdStockReservationsRequest +*/ +func (a *HasManyApiService) GETLineItemIdStockReservations(ctx context.Context, lineItemId interface{}) HasManyApiGETLineItemIdStockReservationsRequest { + return HasManyApiGETLineItemIdStockReservationsRequest{ + ApiService: a, + ctx: ctx, + lineItemId: lineItemId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETLineItemIdStockReservationsExecute(r HasManyApiGETLineItemIdStockReservationsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETLineItemIdStockReservations") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/line_items/{lineItemId}/stock_reservations" + localVarPath = strings.Replace(localVarPath, "{"+"lineItemId"+"}", url.PathEscape(parameterValueToString(r.lineItemId, "lineItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETLineItemIdStockTransfersRequest struct { + ctx context.Context + ApiService *HasManyApiService + lineItemId interface{} +} + +func (r HasManyApiGETLineItemIdStockTransfersRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLineItemIdStockTransfersExecute(r) +} + +/* +GETLineItemIdStockTransfers Retrieve the stock transfers associated to the line item + +Retrieve the stock transfers associated to the line item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param lineItemId The resource's id + @return HasManyApiGETLineItemIdStockTransfersRequest +*/ +func (a *HasManyApiService) GETLineItemIdStockTransfers(ctx context.Context, lineItemId interface{}) HasManyApiGETLineItemIdStockTransfersRequest { + return HasManyApiGETLineItemIdStockTransfersRequest{ + ApiService: a, + ctx: ctx, + lineItemId: lineItemId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETLineItemIdStockTransfersExecute(r HasManyApiGETLineItemIdStockTransfersRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETLineItemIdStockTransfers") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/line_items/{lineItemId}/stock_transfers" + localVarPath = strings.Replace(localVarPath, "{"+"lineItemId"+"}", url.PathEscape(parameterValueToString(r.lineItemId, "lineItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETLineItemIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + lineItemId interface{} +} + +func (r HasManyApiGETLineItemIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLineItemIdTagsExecute(r) +} + +/* +GETLineItemIdTags Retrieve the tags associated to the line item + +Retrieve the tags associated to the line item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param lineItemId The resource's id + @return HasManyApiGETLineItemIdTagsRequest +*/ +func (a *HasManyApiService) GETLineItemIdTags(ctx context.Context, lineItemId interface{}) HasManyApiGETLineItemIdTagsRequest { + return HasManyApiGETLineItemIdTagsRequest{ + ApiService: a, + ctx: ctx, + lineItemId: lineItemId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETLineItemIdTagsExecute(r HasManyApiGETLineItemIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETLineItemIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/line_items/{lineItemId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"lineItemId"+"}", url.PathEscape(parameterValueToString(r.lineItemId, "lineItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETLineItemOptionIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + lineItemOptionId interface{} +} + +func (r HasManyApiGETLineItemOptionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLineItemOptionIdEventsExecute(r) +} + +/* +GETLineItemOptionIdEvents Retrieve the events associated to the line item option + +Retrieve the events associated to the line item option + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param lineItemOptionId The resource's id + @return HasManyApiGETLineItemOptionIdEventsRequest +*/ +func (a *HasManyApiService) GETLineItemOptionIdEvents(ctx context.Context, lineItemOptionId interface{}) HasManyApiGETLineItemOptionIdEventsRequest { + return HasManyApiGETLineItemOptionIdEventsRequest{ + ApiService: a, + ctx: ctx, + lineItemOptionId: lineItemOptionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETLineItemOptionIdEventsExecute(r HasManyApiGETLineItemOptionIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETLineItemOptionIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/line_item_options/{lineItemOptionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"lineItemOptionId"+"}", url.PathEscape(parameterValueToString(r.lineItemOptionId, "lineItemOptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETLineItemOptionIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + lineItemOptionId interface{} +} + +func (r HasManyApiGETLineItemOptionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLineItemOptionIdTagsExecute(r) +} + +/* +GETLineItemOptionIdTags Retrieve the tags associated to the line item option + +Retrieve the tags associated to the line item option + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param lineItemOptionId The resource's id + @return HasManyApiGETLineItemOptionIdTagsRequest +*/ +func (a *HasManyApiService) GETLineItemOptionIdTags(ctx context.Context, lineItemOptionId interface{}) HasManyApiGETLineItemOptionIdTagsRequest { + return HasManyApiGETLineItemOptionIdTagsRequest{ + ApiService: a, + ctx: ctx, + lineItemOptionId: lineItemOptionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETLineItemOptionIdTagsExecute(r HasManyApiGETLineItemOptionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETLineItemOptionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/line_item_options/{lineItemOptionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"lineItemOptionId"+"}", url.PathEscape(parameterValueToString(r.lineItemOptionId, "lineItemOptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETLinkIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + linkId interface{} +} + +func (r HasManyApiGETLinkIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLinkIdEventsExecute(r) +} + +/* +GETLinkIdEvents Retrieve the events associated to the link + +Retrieve the events associated to the link + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param linkId The resource's id + @return HasManyApiGETLinkIdEventsRequest +*/ +func (a *HasManyApiService) GETLinkIdEvents(ctx context.Context, linkId interface{}) HasManyApiGETLinkIdEventsRequest { + return HasManyApiGETLinkIdEventsRequest{ + ApiService: a, + ctx: ctx, + linkId: linkId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETLinkIdEventsExecute(r HasManyApiGETLinkIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETLinkIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/links/{linkId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"linkId"+"}", url.PathEscape(parameterValueToString(r.linkId, "linkId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETManualGatewayIdPaymentMethodsRequest struct { + ctx context.Context + ApiService *HasManyApiService + manualGatewayId interface{} +} + +func (r HasManyApiGETManualGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETManualGatewayIdPaymentMethodsExecute(r) +} + +/* +GETManualGatewayIdPaymentMethods Retrieve the payment methods associated to the manual gateway + +Retrieve the payment methods associated to the manual gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param manualGatewayId The resource's id + @return HasManyApiGETManualGatewayIdPaymentMethodsRequest +*/ +func (a *HasManyApiService) GETManualGatewayIdPaymentMethods(ctx context.Context, manualGatewayId interface{}) HasManyApiGETManualGatewayIdPaymentMethodsRequest { + return HasManyApiGETManualGatewayIdPaymentMethodsRequest{ + ApiService: a, + ctx: ctx, + manualGatewayId: manualGatewayId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETManualGatewayIdPaymentMethodsExecute(r HasManyApiGETManualGatewayIdPaymentMethodsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETManualGatewayIdPaymentMethods") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/manual_gateways/{manualGatewayId}/payment_methods" + localVarPath = strings.Replace(localVarPath, "{"+"manualGatewayId"+"}", url.PathEscape(parameterValueToString(r.manualGatewayId, "manualGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETManualGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + manualGatewayId interface{} +} + +func (r HasManyApiGETManualGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETManualGatewayIdVersionsExecute(r) +} + +/* +GETManualGatewayIdVersions Retrieve the versions associated to the manual gateway + +Retrieve the versions associated to the manual gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param manualGatewayId The resource's id + @return HasManyApiGETManualGatewayIdVersionsRequest +*/ +func (a *HasManyApiService) GETManualGatewayIdVersions(ctx context.Context, manualGatewayId interface{}) HasManyApiGETManualGatewayIdVersionsRequest { + return HasManyApiGETManualGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + manualGatewayId: manualGatewayId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETManualGatewayIdVersionsExecute(r HasManyApiGETManualGatewayIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETManualGatewayIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/manual_gateways/{manualGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"manualGatewayId"+"}", url.PathEscape(parameterValueToString(r.manualGatewayId, "manualGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETManualTaxCalculatorIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + manualTaxCalculatorId interface{} +} + +func (r HasManyApiGETManualTaxCalculatorIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETManualTaxCalculatorIdAttachmentsExecute(r) +} + +/* +GETManualTaxCalculatorIdAttachments Retrieve the attachments associated to the manual tax calculator + +Retrieve the attachments associated to the manual tax calculator + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param manualTaxCalculatorId The resource's id + @return HasManyApiGETManualTaxCalculatorIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETManualTaxCalculatorIdAttachments(ctx context.Context, manualTaxCalculatorId interface{}) HasManyApiGETManualTaxCalculatorIdAttachmentsRequest { + return HasManyApiGETManualTaxCalculatorIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + manualTaxCalculatorId: manualTaxCalculatorId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETManualTaxCalculatorIdAttachmentsExecute(r HasManyApiGETManualTaxCalculatorIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETManualTaxCalculatorIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/manual_tax_calculators/{manualTaxCalculatorId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"manualTaxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.manualTaxCalculatorId, "manualTaxCalculatorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETManualTaxCalculatorIdMarketsRequest struct { + ctx context.Context + ApiService *HasManyApiService + manualTaxCalculatorId interface{} +} + +func (r HasManyApiGETManualTaxCalculatorIdMarketsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETManualTaxCalculatorIdMarketsExecute(r) +} + +/* +GETManualTaxCalculatorIdMarkets Retrieve the markets associated to the manual tax calculator + +Retrieve the markets associated to the manual tax calculator + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param manualTaxCalculatorId The resource's id + @return HasManyApiGETManualTaxCalculatorIdMarketsRequest +*/ +func (a *HasManyApiService) GETManualTaxCalculatorIdMarkets(ctx context.Context, manualTaxCalculatorId interface{}) HasManyApiGETManualTaxCalculatorIdMarketsRequest { + return HasManyApiGETManualTaxCalculatorIdMarketsRequest{ + ApiService: a, + ctx: ctx, + manualTaxCalculatorId: manualTaxCalculatorId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETManualTaxCalculatorIdMarketsExecute(r HasManyApiGETManualTaxCalculatorIdMarketsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETManualTaxCalculatorIdMarkets") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/manual_tax_calculators/{manualTaxCalculatorId}/markets" + localVarPath = strings.Replace(localVarPath, "{"+"manualTaxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.manualTaxCalculatorId, "manualTaxCalculatorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETManualTaxCalculatorIdTaxRulesRequest struct { + ctx context.Context + ApiService *HasManyApiService + manualTaxCalculatorId interface{} +} + +func (r HasManyApiGETManualTaxCalculatorIdTaxRulesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETManualTaxCalculatorIdTaxRulesExecute(r) +} + +/* +GETManualTaxCalculatorIdTaxRules Retrieve the tax rules associated to the manual tax calculator + +Retrieve the tax rules associated to the manual tax calculator + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param manualTaxCalculatorId The resource's id + @return HasManyApiGETManualTaxCalculatorIdTaxRulesRequest +*/ +func (a *HasManyApiService) GETManualTaxCalculatorIdTaxRules(ctx context.Context, manualTaxCalculatorId interface{}) HasManyApiGETManualTaxCalculatorIdTaxRulesRequest { + return HasManyApiGETManualTaxCalculatorIdTaxRulesRequest{ + ApiService: a, + ctx: ctx, + manualTaxCalculatorId: manualTaxCalculatorId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETManualTaxCalculatorIdTaxRulesExecute(r HasManyApiGETManualTaxCalculatorIdTaxRulesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETManualTaxCalculatorIdTaxRules") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/manual_tax_calculators/{manualTaxCalculatorId}/tax_rules" + localVarPath = strings.Replace(localVarPath, "{"+"manualTaxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.manualTaxCalculatorId, "manualTaxCalculatorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETManualTaxCalculatorIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + manualTaxCalculatorId interface{} +} + +func (r HasManyApiGETManualTaxCalculatorIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETManualTaxCalculatorIdVersionsExecute(r) +} + +/* +GETManualTaxCalculatorIdVersions Retrieve the versions associated to the manual tax calculator + +Retrieve the versions associated to the manual tax calculator + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param manualTaxCalculatorId The resource's id + @return HasManyApiGETManualTaxCalculatorIdVersionsRequest +*/ +func (a *HasManyApiService) GETManualTaxCalculatorIdVersions(ctx context.Context, manualTaxCalculatorId interface{}) HasManyApiGETManualTaxCalculatorIdVersionsRequest { + return HasManyApiGETManualTaxCalculatorIdVersionsRequest{ + ApiService: a, + ctx: ctx, + manualTaxCalculatorId: manualTaxCalculatorId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETManualTaxCalculatorIdVersionsExecute(r HasManyApiGETManualTaxCalculatorIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETManualTaxCalculatorIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/manual_tax_calculators/{manualTaxCalculatorId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"manualTaxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.manualTaxCalculatorId, "manualTaxCalculatorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETMarketIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + marketId interface{} +} + +func (r HasManyApiGETMarketIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETMarketIdAttachmentsExecute(r) +} + +/* +GETMarketIdAttachments Retrieve the attachments associated to the market + +Retrieve the attachments associated to the market + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param marketId The resource's id + @return HasManyApiGETMarketIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETMarketIdAttachments(ctx context.Context, marketId interface{}) HasManyApiGETMarketIdAttachmentsRequest { + return HasManyApiGETMarketIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + marketId: marketId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETMarketIdAttachmentsExecute(r HasManyApiGETMarketIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETMarketIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/markets/{marketId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETMarketIdPriceListSchedulersRequest struct { + ctx context.Context + ApiService *HasManyApiService + marketId interface{} +} + +func (r HasManyApiGETMarketIdPriceListSchedulersRequest) Execute() (*http.Response, error) { + return r.ApiService.GETMarketIdPriceListSchedulersExecute(r) +} + +/* +GETMarketIdPriceListSchedulers Retrieve the price list schedulers associated to the market + +Retrieve the price list schedulers associated to the market + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param marketId The resource's id + @return HasManyApiGETMarketIdPriceListSchedulersRequest +*/ +func (a *HasManyApiService) GETMarketIdPriceListSchedulers(ctx context.Context, marketId interface{}) HasManyApiGETMarketIdPriceListSchedulersRequest { + return HasManyApiGETMarketIdPriceListSchedulersRequest{ + ApiService: a, + ctx: ctx, + marketId: marketId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETMarketIdPriceListSchedulersExecute(r HasManyApiGETMarketIdPriceListSchedulersRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETMarketIdPriceListSchedulers") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/markets/{marketId}/price_list_schedulers" + localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETMarketIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + marketId interface{} +} + +func (r HasManyApiGETMarketIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETMarketIdVersionsExecute(r) +} + +/* +GETMarketIdVersions Retrieve the versions associated to the market + +Retrieve the versions associated to the market + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param marketId The resource's id + @return HasManyApiGETMarketIdVersionsRequest +*/ +func (a *HasManyApiService) GETMarketIdVersions(ctx context.Context, marketId interface{}) HasManyApiGETMarketIdVersionsRequest { + return HasManyApiGETMarketIdVersionsRequest{ + ApiService: a, + ctx: ctx, + marketId: marketId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETMarketIdVersionsExecute(r HasManyApiGETMarketIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETMarketIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/markets/{marketId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETMerchantIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + merchantId interface{} +} + +func (r HasManyApiGETMerchantIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETMerchantIdAttachmentsExecute(r) +} + +/* +GETMerchantIdAttachments Retrieve the attachments associated to the merchant + +Retrieve the attachments associated to the merchant + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param merchantId The resource's id + @return HasManyApiGETMerchantIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETMerchantIdAttachments(ctx context.Context, merchantId interface{}) HasManyApiGETMerchantIdAttachmentsRequest { + return HasManyApiGETMerchantIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + merchantId: merchantId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETMerchantIdAttachmentsExecute(r HasManyApiGETMerchantIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETMerchantIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/merchants/{merchantId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"merchantId"+"}", url.PathEscape(parameterValueToString(r.merchantId, "merchantId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETMerchantIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + merchantId interface{} +} + +func (r HasManyApiGETMerchantIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETMerchantIdVersionsExecute(r) +} + +/* +GETMerchantIdVersions Retrieve the versions associated to the merchant + +Retrieve the versions associated to the merchant + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param merchantId The resource's id + @return HasManyApiGETMerchantIdVersionsRequest +*/ +func (a *HasManyApiService) GETMerchantIdVersions(ctx context.Context, merchantId interface{}) HasManyApiGETMerchantIdVersionsRequest { + return HasManyApiGETMerchantIdVersionsRequest{ + ApiService: a, + ctx: ctx, + merchantId: merchantId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETMerchantIdVersionsExecute(r HasManyApiGETMerchantIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETMerchantIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/merchants/{merchantId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"merchantId"+"}", url.PathEscape(parameterValueToString(r.merchantId, "merchantId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderAmountPromotionRuleIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderAmountPromotionRuleId interface{} +} + +func (r HasManyApiGETOrderAmountPromotionRuleIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderAmountPromotionRuleIdVersionsExecute(r) +} + +/* +GETOrderAmountPromotionRuleIdVersions Retrieve the versions associated to the order amount promotion rule + +Retrieve the versions associated to the order amount promotion rule + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderAmountPromotionRuleId The resource's id + @return HasManyApiGETOrderAmountPromotionRuleIdVersionsRequest +*/ +func (a *HasManyApiService) GETOrderAmountPromotionRuleIdVersions(ctx context.Context, orderAmountPromotionRuleId interface{}) HasManyApiGETOrderAmountPromotionRuleIdVersionsRequest { + return HasManyApiGETOrderAmountPromotionRuleIdVersionsRequest{ + ApiService: a, + ctx: ctx, + orderAmountPromotionRuleId: orderAmountPromotionRuleId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderAmountPromotionRuleIdVersionsExecute(r HasManyApiGETOrderAmountPromotionRuleIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderAmountPromotionRuleIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_amount_promotion_rules/{orderAmountPromotionRuleId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"orderAmountPromotionRuleId"+"}", url.PathEscape(parameterValueToString(r.orderAmountPromotionRuleId, "orderAmountPromotionRuleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderCopyIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderCopyId interface{} +} + +func (r HasManyApiGETOrderCopyIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderCopyIdEventsExecute(r) +} + +/* +GETOrderCopyIdEvents Retrieve the events associated to the order copy + +Retrieve the events associated to the order copy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderCopyId The resource's id + @return HasManyApiGETOrderCopyIdEventsRequest +*/ +func (a *HasManyApiService) GETOrderCopyIdEvents(ctx context.Context, orderCopyId interface{}) HasManyApiGETOrderCopyIdEventsRequest { + return HasManyApiGETOrderCopyIdEventsRequest{ + ApiService: a, + ctx: ctx, + orderCopyId: orderCopyId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderCopyIdEventsExecute(r HasManyApiGETOrderCopyIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderCopyIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_copies/{orderCopyId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"orderCopyId"+"}", url.PathEscape(parameterValueToString(r.orderCopyId, "orderCopyId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderFactoryIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderFactoryId interface{} +} + +func (r HasManyApiGETOrderFactoryIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderFactoryIdEventsExecute(r) +} + +/* +GETOrderFactoryIdEvents Retrieve the events associated to the order factory + +Retrieve the events associated to the order factory + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderFactoryId The resource's id + @return HasManyApiGETOrderFactoryIdEventsRequest +*/ +func (a *HasManyApiService) GETOrderFactoryIdEvents(ctx context.Context, orderFactoryId interface{}) HasManyApiGETOrderFactoryIdEventsRequest { + return HasManyApiGETOrderFactoryIdEventsRequest{ + ApiService: a, + ctx: ctx, + orderFactoryId: orderFactoryId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderFactoryIdEventsExecute(r HasManyApiGETOrderFactoryIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderFactoryIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_factories/{orderFactoryId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"orderFactoryId"+"}", url.PathEscape(parameterValueToString(r.orderFactoryId, "orderFactoryId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdAttachmentsExecute(r) +} + +/* +GETOrderIdAttachments Retrieve the attachments associated to the order + +Retrieve the attachments associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETOrderIdAttachments(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdAttachmentsRequest { + return HasManyApiGETOrderIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdAttachmentsExecute(r HasManyApiGETOrderIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdAuthorizationsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdAuthorizationsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdAuthorizationsExecute(r) +} + +/* +GETOrderIdAuthorizations Retrieve the authorizations associated to the order + +Retrieve the authorizations associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdAuthorizationsRequest +*/ +func (a *HasManyApiService) GETOrderIdAuthorizations(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdAuthorizationsRequest { + return HasManyApiGETOrderIdAuthorizationsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdAuthorizationsExecute(r HasManyApiGETOrderIdAuthorizationsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdAuthorizations") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/authorizations" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdAvailableCustomerPaymentSourcesRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdAvailableCustomerPaymentSourcesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdAvailableCustomerPaymentSourcesExecute(r) +} + +/* +GETOrderIdAvailableCustomerPaymentSources Retrieve the available customer payment sources associated to the order + +Retrieve the available customer payment sources associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdAvailableCustomerPaymentSourcesRequest +*/ +func (a *HasManyApiService) GETOrderIdAvailableCustomerPaymentSources(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdAvailableCustomerPaymentSourcesRequest { + return HasManyApiGETOrderIdAvailableCustomerPaymentSourcesRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdAvailableCustomerPaymentSourcesExecute(r HasManyApiGETOrderIdAvailableCustomerPaymentSourcesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdAvailableCustomerPaymentSources") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/available_customer_payment_sources" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdAvailableFreeBundlesRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdAvailableFreeBundlesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdAvailableFreeBundlesExecute(r) +} + +/* +GETOrderIdAvailableFreeBundles Retrieve the available free bundles associated to the order + +Retrieve the available free bundles associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdAvailableFreeBundlesRequest +*/ +func (a *HasManyApiService) GETOrderIdAvailableFreeBundles(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdAvailableFreeBundlesRequest { + return HasManyApiGETOrderIdAvailableFreeBundlesRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdAvailableFreeBundlesExecute(r HasManyApiGETOrderIdAvailableFreeBundlesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdAvailableFreeBundles") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/available_free_bundles" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdAvailableFreeSkusRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdAvailableFreeSkusRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdAvailableFreeSkusExecute(r) +} + +/* +GETOrderIdAvailableFreeSkus Retrieve the available free skus associated to the order + +Retrieve the available free skus associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdAvailableFreeSkusRequest +*/ +func (a *HasManyApiService) GETOrderIdAvailableFreeSkus(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdAvailableFreeSkusRequest { + return HasManyApiGETOrderIdAvailableFreeSkusRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdAvailableFreeSkusExecute(r HasManyApiGETOrderIdAvailableFreeSkusRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdAvailableFreeSkus") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/available_free_skus" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdAvailablePaymentMethodsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdAvailablePaymentMethodsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdAvailablePaymentMethodsExecute(r) +} + +/* +GETOrderIdAvailablePaymentMethods Retrieve the available payment methods associated to the order + +Retrieve the available payment methods associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdAvailablePaymentMethodsRequest +*/ +func (a *HasManyApiService) GETOrderIdAvailablePaymentMethods(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdAvailablePaymentMethodsRequest { + return HasManyApiGETOrderIdAvailablePaymentMethodsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdAvailablePaymentMethodsExecute(r HasManyApiGETOrderIdAvailablePaymentMethodsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdAvailablePaymentMethods") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/available_payment_methods" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdCapturesRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdCapturesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdCapturesExecute(r) +} + +/* +GETOrderIdCaptures Retrieve the captures associated to the order + +Retrieve the captures associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdCapturesRequest +*/ +func (a *HasManyApiService) GETOrderIdCaptures(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdCapturesRequest { + return HasManyApiGETOrderIdCapturesRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdCapturesExecute(r HasManyApiGETOrderIdCapturesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdCaptures") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/captures" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdEventsExecute(r) +} + +/* +GETOrderIdEvents Retrieve the events associated to the order + +Retrieve the events associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdEventsRequest +*/ +func (a *HasManyApiService) GETOrderIdEvents(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdEventsRequest { + return HasManyApiGETOrderIdEventsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdEventsExecute(r HasManyApiGETOrderIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdLineItemOptionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdLineItemOptionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdLineItemOptionsExecute(r) +} + +/* +GETOrderIdLineItemOptions Retrieve the line item options associated to the order + +Retrieve the line item options associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdLineItemOptionsRequest +*/ +func (a *HasManyApiService) GETOrderIdLineItemOptions(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdLineItemOptionsRequest { + return HasManyApiGETOrderIdLineItemOptionsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdLineItemOptionsExecute(r HasManyApiGETOrderIdLineItemOptionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdLineItemOptions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/line_item_options" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdLineItemsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdLineItemsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdLineItemsExecute(r) +} + +/* +GETOrderIdLineItems Retrieve the line items associated to the order + +Retrieve the line items associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdLineItemsRequest +*/ +func (a *HasManyApiService) GETOrderIdLineItems(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdLineItemsRequest { + return HasManyApiGETOrderIdLineItemsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdLineItemsExecute(r HasManyApiGETOrderIdLineItemsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdLineItems") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/line_items" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdLinksRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdLinksRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdLinksExecute(r) +} + +/* +GETOrderIdLinks Retrieve the links associated to the order + +Retrieve the links associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdLinksRequest +*/ +func (a *HasManyApiService) GETOrderIdLinks(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdLinksRequest { + return HasManyApiGETOrderIdLinksRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdLinksExecute(r HasManyApiGETOrderIdLinksRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdLinks") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/links" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdOrderCopiesRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdOrderCopiesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdOrderCopiesExecute(r) +} + +/* +GETOrderIdOrderCopies Retrieve the order copies associated to the order + +Retrieve the order copies associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdOrderCopiesRequest +*/ +func (a *HasManyApiService) GETOrderIdOrderCopies(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdOrderCopiesRequest { + return HasManyApiGETOrderIdOrderCopiesRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdOrderCopiesExecute(r HasManyApiGETOrderIdOrderCopiesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdOrderCopies") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/order_copies" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdOrderFactoriesRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdOrderFactoriesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdOrderFactoriesExecute(r) +} + +/* +GETOrderIdOrderFactories Retrieve the order factories associated to the order + +Retrieve the order factories associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdOrderFactoriesRequest +*/ +func (a *HasManyApiService) GETOrderIdOrderFactories(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdOrderFactoriesRequest { + return HasManyApiGETOrderIdOrderFactoriesRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdOrderFactoriesExecute(r HasManyApiGETOrderIdOrderFactoriesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdOrderFactories") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/order_factories" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdOrderSubscriptionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdOrderSubscriptionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdOrderSubscriptionsExecute(r) +} + +/* +GETOrderIdOrderSubscriptions Retrieve the order subscriptions associated to the order + +Retrieve the order subscriptions associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdOrderSubscriptionsRequest +*/ +func (a *HasManyApiService) GETOrderIdOrderSubscriptions(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdOrderSubscriptionsRequest { + return HasManyApiGETOrderIdOrderSubscriptionsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdOrderSubscriptionsExecute(r HasManyApiGETOrderIdOrderSubscriptionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdOrderSubscriptions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/order_subscriptions" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdPaymentOptionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdPaymentOptionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdPaymentOptionsExecute(r) +} + +/* +GETOrderIdPaymentOptions Retrieve the payment options associated to the order + +Retrieve the payment options associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdPaymentOptionsRequest +*/ +func (a *HasManyApiService) GETOrderIdPaymentOptions(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdPaymentOptionsRequest { + return HasManyApiGETOrderIdPaymentOptionsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdPaymentOptionsExecute(r HasManyApiGETOrderIdPaymentOptionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdPaymentOptions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/payment_options" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdRecurringOrderCopiesRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdRecurringOrderCopiesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdRecurringOrderCopiesExecute(r) +} + +/* +GETOrderIdRecurringOrderCopies Retrieve the recurring order copies associated to the order + +Retrieve the recurring order copies associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdRecurringOrderCopiesRequest +*/ +func (a *HasManyApiService) GETOrderIdRecurringOrderCopies(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdRecurringOrderCopiesRequest { + return HasManyApiGETOrderIdRecurringOrderCopiesRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdRecurringOrderCopiesExecute(r HasManyApiGETOrderIdRecurringOrderCopiesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdRecurringOrderCopies") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/recurring_order_copies" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdRefundsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdRefundsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdRefundsExecute(r) +} + +/* +GETOrderIdRefunds Retrieve the refunds associated to the order + +Retrieve the refunds associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdRefundsRequest +*/ +func (a *HasManyApiService) GETOrderIdRefunds(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdRefundsRequest { + return HasManyApiGETOrderIdRefundsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdRefundsExecute(r HasManyApiGETOrderIdRefundsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdRefunds") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/refunds" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdResourceErrorsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdResourceErrorsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdResourceErrorsExecute(r) +} + +/* +GETOrderIdResourceErrors Retrieve the resource errors associated to the order + +Retrieve the resource errors associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdResourceErrorsRequest +*/ +func (a *HasManyApiService) GETOrderIdResourceErrors(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdResourceErrorsRequest { + return HasManyApiGETOrderIdResourceErrorsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdResourceErrorsExecute(r HasManyApiGETOrderIdResourceErrorsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdResourceErrors") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/resource_errors" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdReturnsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdReturnsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdReturnsExecute(r) +} + +/* +GETOrderIdReturns Retrieve the returns associated to the order + +Retrieve the returns associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdReturnsRequest +*/ +func (a *HasManyApiService) GETOrderIdReturns(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdReturnsRequest { + return HasManyApiGETOrderIdReturnsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdReturnsExecute(r HasManyApiGETOrderIdReturnsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdReturns") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/returns" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdShipmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdShipmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdShipmentsExecute(r) +} + +/* +GETOrderIdShipments Retrieve the shipments associated to the order + +Retrieve the shipments associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdShipmentsRequest +*/ +func (a *HasManyApiService) GETOrderIdShipments(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdShipmentsRequest { + return HasManyApiGETOrderIdShipmentsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdShipmentsExecute(r HasManyApiGETOrderIdShipmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdShipments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/shipments" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdStockLineItemsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdStockLineItemsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdStockLineItemsExecute(r) +} + +/* +GETOrderIdStockLineItems Retrieve the stock line items associated to the order + +Retrieve the stock line items associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdStockLineItemsRequest +*/ +func (a *HasManyApiService) GETOrderIdStockLineItems(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdStockLineItemsRequest { + return HasManyApiGETOrderIdStockLineItemsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdStockLineItemsExecute(r HasManyApiGETOrderIdStockLineItemsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdStockLineItems") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/stock_line_items" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdStockReservationsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdStockReservationsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdStockReservationsExecute(r) +} + +/* +GETOrderIdStockReservations Retrieve the stock reservations associated to the order + +Retrieve the stock reservations associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdStockReservationsRequest +*/ +func (a *HasManyApiService) GETOrderIdStockReservations(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdStockReservationsRequest { + return HasManyApiGETOrderIdStockReservationsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdStockReservationsExecute(r HasManyApiGETOrderIdStockReservationsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdStockReservations") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/stock_reservations" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdStockTransfersRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdStockTransfersRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdStockTransfersExecute(r) +} + +/* +GETOrderIdStockTransfers Retrieve the stock transfers associated to the order + +Retrieve the stock transfers associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdStockTransfersRequest +*/ +func (a *HasManyApiService) GETOrderIdStockTransfers(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdStockTransfersRequest { + return HasManyApiGETOrderIdStockTransfersRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdStockTransfersExecute(r HasManyApiGETOrderIdStockTransfersRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdStockTransfers") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/stock_transfers" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdTagsExecute(r) +} + +/* +GETOrderIdTags Retrieve the tags associated to the order + +Retrieve the tags associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdTagsRequest +*/ +func (a *HasManyApiService) GETOrderIdTags(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdTagsRequest { + return HasManyApiGETOrderIdTagsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdTagsExecute(r HasManyApiGETOrderIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdVersionsExecute(r) +} + +/* +GETOrderIdVersions Retrieve the versions associated to the order + +Retrieve the versions associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdVersionsRequest +*/ +func (a *HasManyApiService) GETOrderIdVersions(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdVersionsRequest { + return HasManyApiGETOrderIdVersionsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdVersionsExecute(r HasManyApiGETOrderIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderIdVoidsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderId interface{} +} + +func (r HasManyApiGETOrderIdVoidsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdVoidsExecute(r) +} + +/* +GETOrderIdVoids Retrieve the voids associated to the order + +Retrieve the voids associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasManyApiGETOrderIdVoidsRequest +*/ +func (a *HasManyApiService) GETOrderIdVoids(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdVoidsRequest { + return HasManyApiGETOrderIdVoidsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderIdVoidsExecute(r HasManyApiGETOrderIdVoidsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdVoids") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/voids" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderSubscriptionIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderSubscriptionId interface{} +} + +func (r HasManyApiGETOrderSubscriptionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderSubscriptionIdEventsExecute(r) +} + +/* +GETOrderSubscriptionIdEvents Retrieve the events associated to the order subscription + +Retrieve the events associated to the order subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderSubscriptionId The resource's id + @return HasManyApiGETOrderSubscriptionIdEventsRequest +*/ +func (a *HasManyApiService) GETOrderSubscriptionIdEvents(ctx context.Context, orderSubscriptionId interface{}) HasManyApiGETOrderSubscriptionIdEventsRequest { + return HasManyApiGETOrderSubscriptionIdEventsRequest{ + ApiService: a, + ctx: ctx, + orderSubscriptionId: orderSubscriptionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderSubscriptionIdEventsExecute(r HasManyApiGETOrderSubscriptionIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderSubscriptionIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderSubscriptionIdOrderFactoriesRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderSubscriptionId interface{} +} + +func (r HasManyApiGETOrderSubscriptionIdOrderFactoriesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderSubscriptionIdOrderFactoriesExecute(r) +} + +/* +GETOrderSubscriptionIdOrderFactories Retrieve the order factories associated to the order subscription + +Retrieve the order factories associated to the order subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderSubscriptionId The resource's id + @return HasManyApiGETOrderSubscriptionIdOrderFactoriesRequest +*/ +func (a *HasManyApiService) GETOrderSubscriptionIdOrderFactories(ctx context.Context, orderSubscriptionId interface{}) HasManyApiGETOrderSubscriptionIdOrderFactoriesRequest { + return HasManyApiGETOrderSubscriptionIdOrderFactoriesRequest{ + ApiService: a, + ctx: ctx, + orderSubscriptionId: orderSubscriptionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderSubscriptionIdOrderFactoriesExecute(r HasManyApiGETOrderSubscriptionIdOrderFactoriesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderSubscriptionIdOrderFactories") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/order_factories" + localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderSubscriptionIdOrderSubscriptionItemsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderSubscriptionId interface{} +} + +func (r HasManyApiGETOrderSubscriptionIdOrderSubscriptionItemsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderSubscriptionIdOrderSubscriptionItemsExecute(r) +} + +/* +GETOrderSubscriptionIdOrderSubscriptionItems Retrieve the order subscription items associated to the order subscription + +Retrieve the order subscription items associated to the order subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderSubscriptionId The resource's id + @return HasManyApiGETOrderSubscriptionIdOrderSubscriptionItemsRequest +*/ +func (a *HasManyApiService) GETOrderSubscriptionIdOrderSubscriptionItems(ctx context.Context, orderSubscriptionId interface{}) HasManyApiGETOrderSubscriptionIdOrderSubscriptionItemsRequest { + return HasManyApiGETOrderSubscriptionIdOrderSubscriptionItemsRequest{ + ApiService: a, + ctx: ctx, + orderSubscriptionId: orderSubscriptionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderSubscriptionIdOrderSubscriptionItemsExecute(r HasManyApiGETOrderSubscriptionIdOrderSubscriptionItemsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderSubscriptionIdOrderSubscriptionItems") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/order_subscription_items" + localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderSubscriptionIdOrdersRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderSubscriptionId interface{} +} + +func (r HasManyApiGETOrderSubscriptionIdOrdersRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderSubscriptionIdOrdersExecute(r) +} + +/* +GETOrderSubscriptionIdOrders Retrieve the orders associated to the order subscription + +Retrieve the orders associated to the order subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderSubscriptionId The resource's id + @return HasManyApiGETOrderSubscriptionIdOrdersRequest +*/ +func (a *HasManyApiService) GETOrderSubscriptionIdOrders(ctx context.Context, orderSubscriptionId interface{}) HasManyApiGETOrderSubscriptionIdOrdersRequest { + return HasManyApiGETOrderSubscriptionIdOrdersRequest{ + ApiService: a, + ctx: ctx, + orderSubscriptionId: orderSubscriptionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderSubscriptionIdOrdersExecute(r HasManyApiGETOrderSubscriptionIdOrdersRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderSubscriptionIdOrders") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/orders" + localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderSubscriptionIdRecurringOrderCopiesRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderSubscriptionId interface{} +} + +func (r HasManyApiGETOrderSubscriptionIdRecurringOrderCopiesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderSubscriptionIdRecurringOrderCopiesExecute(r) +} + +/* +GETOrderSubscriptionIdRecurringOrderCopies Retrieve the recurring order copies associated to the order subscription + +Retrieve the recurring order copies associated to the order subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderSubscriptionId The resource's id + @return HasManyApiGETOrderSubscriptionIdRecurringOrderCopiesRequest +*/ +func (a *HasManyApiService) GETOrderSubscriptionIdRecurringOrderCopies(ctx context.Context, orderSubscriptionId interface{}) HasManyApiGETOrderSubscriptionIdRecurringOrderCopiesRequest { + return HasManyApiGETOrderSubscriptionIdRecurringOrderCopiesRequest{ + ApiService: a, + ctx: ctx, + orderSubscriptionId: orderSubscriptionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderSubscriptionIdRecurringOrderCopiesExecute(r HasManyApiGETOrderSubscriptionIdRecurringOrderCopiesRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderSubscriptionIdRecurringOrderCopies") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/recurring_order_copies" + localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderSubscriptionIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderSubscriptionId interface{} +} + +func (r HasManyApiGETOrderSubscriptionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderSubscriptionIdTagsExecute(r) +} + +/* +GETOrderSubscriptionIdTags Retrieve the tags associated to the order subscription + +Retrieve the tags associated to the order subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderSubscriptionId The resource's id + @return HasManyApiGETOrderSubscriptionIdTagsRequest +*/ +func (a *HasManyApiService) GETOrderSubscriptionIdTags(ctx context.Context, orderSubscriptionId interface{}) HasManyApiGETOrderSubscriptionIdTagsRequest { + return HasManyApiGETOrderSubscriptionIdTagsRequest{ + ApiService: a, + ctx: ctx, + orderSubscriptionId: orderSubscriptionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderSubscriptionIdTagsExecute(r HasManyApiGETOrderSubscriptionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderSubscriptionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETOrderSubscriptionIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + orderSubscriptionId interface{} +} + +func (r HasManyApiGETOrderSubscriptionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderSubscriptionIdVersionsExecute(r) +} + +/* +GETOrderSubscriptionIdVersions Retrieve the versions associated to the order subscription + +Retrieve the versions associated to the order subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderSubscriptionId The resource's id + @return HasManyApiGETOrderSubscriptionIdVersionsRequest +*/ +func (a *HasManyApiService) GETOrderSubscriptionIdVersions(ctx context.Context, orderSubscriptionId interface{}) HasManyApiGETOrderSubscriptionIdVersionsRequest { + return HasManyApiGETOrderSubscriptionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + orderSubscriptionId: orderSubscriptionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETOrderSubscriptionIdVersionsExecute(r HasManyApiGETOrderSubscriptionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderSubscriptionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPackageIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + packageId interface{} +} + +func (r HasManyApiGETPackageIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPackageIdAttachmentsExecute(r) +} + +/* +GETPackageIdAttachments Retrieve the attachments associated to the package + +Retrieve the attachments associated to the package + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param packageId The resource's id + @return HasManyApiGETPackageIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETPackageIdAttachments(ctx context.Context, packageId interface{}) HasManyApiGETPackageIdAttachmentsRequest { + return HasManyApiGETPackageIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + packageId: packageId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPackageIdAttachmentsExecute(r HasManyApiGETPackageIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPackageIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/packages/{packageId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"packageId"+"}", url.PathEscape(parameterValueToString(r.packageId, "packageId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPackageIdParcelsRequest struct { + ctx context.Context + ApiService *HasManyApiService + packageId interface{} +} + +func (r HasManyApiGETPackageIdParcelsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPackageIdParcelsExecute(r) +} + +/* +GETPackageIdParcels Retrieve the parcels associated to the package + +Retrieve the parcels associated to the package + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param packageId The resource's id + @return HasManyApiGETPackageIdParcelsRequest +*/ +func (a *HasManyApiService) GETPackageIdParcels(ctx context.Context, packageId interface{}) HasManyApiGETPackageIdParcelsRequest { + return HasManyApiGETPackageIdParcelsRequest{ + ApiService: a, + ctx: ctx, + packageId: packageId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPackageIdParcelsExecute(r HasManyApiGETPackageIdParcelsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPackageIdParcels") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/packages/{packageId}/parcels" + localVarPath = strings.Replace(localVarPath, "{"+"packageId"+"}", url.PathEscape(parameterValueToString(r.packageId, "packageId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPackageIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + packageId interface{} +} + +func (r HasManyApiGETPackageIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPackageIdVersionsExecute(r) +} + +/* +GETPackageIdVersions Retrieve the versions associated to the package + +Retrieve the versions associated to the package + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param packageId The resource's id + @return HasManyApiGETPackageIdVersionsRequest +*/ +func (a *HasManyApiService) GETPackageIdVersions(ctx context.Context, packageId interface{}) HasManyApiGETPackageIdVersionsRequest { + return HasManyApiGETPackageIdVersionsRequest{ + ApiService: a, + ctx: ctx, + packageId: packageId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPackageIdVersionsExecute(r HasManyApiGETPackageIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPackageIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/packages/{packageId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"packageId"+"}", url.PathEscape(parameterValueToString(r.packageId, "packageId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETParcelIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + parcelId interface{} +} + +func (r HasManyApiGETParcelIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETParcelIdAttachmentsExecute(r) +} + +/* +GETParcelIdAttachments Retrieve the attachments associated to the parcel + +Retrieve the attachments associated to the parcel + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param parcelId The resource's id + @return HasManyApiGETParcelIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETParcelIdAttachments(ctx context.Context, parcelId interface{}) HasManyApiGETParcelIdAttachmentsRequest { + return HasManyApiGETParcelIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + parcelId: parcelId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETParcelIdAttachmentsExecute(r HasManyApiGETParcelIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETParcelIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/parcels/{parcelId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"parcelId"+"}", url.PathEscape(parameterValueToString(r.parcelId, "parcelId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETParcelIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + parcelId interface{} +} + +func (r HasManyApiGETParcelIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETParcelIdEventsExecute(r) +} + +/* +GETParcelIdEvents Retrieve the events associated to the parcel + +Retrieve the events associated to the parcel + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param parcelId The resource's id + @return HasManyApiGETParcelIdEventsRequest +*/ +func (a *HasManyApiService) GETParcelIdEvents(ctx context.Context, parcelId interface{}) HasManyApiGETParcelIdEventsRequest { + return HasManyApiGETParcelIdEventsRequest{ + ApiService: a, + ctx: ctx, + parcelId: parcelId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETParcelIdEventsExecute(r HasManyApiGETParcelIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETParcelIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/parcels/{parcelId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"parcelId"+"}", url.PathEscape(parameterValueToString(r.parcelId, "parcelId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETParcelIdParcelLineItemsRequest struct { + ctx context.Context + ApiService *HasManyApiService + parcelId interface{} +} + +func (r HasManyApiGETParcelIdParcelLineItemsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETParcelIdParcelLineItemsExecute(r) +} + +/* +GETParcelIdParcelLineItems Retrieve the parcel line items associated to the parcel + +Retrieve the parcel line items associated to the parcel + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param parcelId The resource's id + @return HasManyApiGETParcelIdParcelLineItemsRequest +*/ +func (a *HasManyApiService) GETParcelIdParcelLineItems(ctx context.Context, parcelId interface{}) HasManyApiGETParcelIdParcelLineItemsRequest { + return HasManyApiGETParcelIdParcelLineItemsRequest{ + ApiService: a, + ctx: ctx, + parcelId: parcelId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETParcelIdParcelLineItemsExecute(r HasManyApiGETParcelIdParcelLineItemsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETParcelIdParcelLineItems") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/parcels/{parcelId}/parcel_line_items" + localVarPath = strings.Replace(localVarPath, "{"+"parcelId"+"}", url.PathEscape(parameterValueToString(r.parcelId, "parcelId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETParcelIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + parcelId interface{} +} + +func (r HasManyApiGETParcelIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETParcelIdVersionsExecute(r) +} + +/* +GETParcelIdVersions Retrieve the versions associated to the parcel + +Retrieve the versions associated to the parcel + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param parcelId The resource's id + @return HasManyApiGETParcelIdVersionsRequest +*/ +func (a *HasManyApiService) GETParcelIdVersions(ctx context.Context, parcelId interface{}) HasManyApiGETParcelIdVersionsRequest { + return HasManyApiGETParcelIdVersionsRequest{ + ApiService: a, + ctx: ctx, + parcelId: parcelId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETParcelIdVersionsExecute(r HasManyApiGETParcelIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETParcelIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/parcels/{parcelId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"parcelId"+"}", url.PathEscape(parameterValueToString(r.parcelId, "parcelId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETParcelLineItemIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + parcelLineItemId interface{} +} + +func (r HasManyApiGETParcelLineItemIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETParcelLineItemIdVersionsExecute(r) +} + +/* +GETParcelLineItemIdVersions Retrieve the versions associated to the parcel line item + +Retrieve the versions associated to the parcel line item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param parcelLineItemId The resource's id + @return HasManyApiGETParcelLineItemIdVersionsRequest +*/ +func (a *HasManyApiService) GETParcelLineItemIdVersions(ctx context.Context, parcelLineItemId interface{}) HasManyApiGETParcelLineItemIdVersionsRequest { + return HasManyApiGETParcelLineItemIdVersionsRequest{ + ApiService: a, + ctx: ctx, + parcelLineItemId: parcelLineItemId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETParcelLineItemIdVersionsExecute(r HasManyApiGETParcelLineItemIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETParcelLineItemIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/parcel_line_items/{parcelLineItemId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"parcelLineItemId"+"}", url.PathEscape(parameterValueToString(r.parcelLineItemId, "parcelLineItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPaymentGatewayIdPaymentMethodsRequest struct { + ctx context.Context + ApiService *HasManyApiService + paymentGatewayId interface{} +} + +func (r HasManyApiGETPaymentGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaymentGatewayIdPaymentMethodsExecute(r) +} + +/* +GETPaymentGatewayIdPaymentMethods Retrieve the payment methods associated to the payment gateway + +Retrieve the payment methods associated to the payment gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param paymentGatewayId The resource's id + @return HasManyApiGETPaymentGatewayIdPaymentMethodsRequest +*/ +func (a *HasManyApiService) GETPaymentGatewayIdPaymentMethods(ctx context.Context, paymentGatewayId interface{}) HasManyApiGETPaymentGatewayIdPaymentMethodsRequest { + return HasManyApiGETPaymentGatewayIdPaymentMethodsRequest{ + ApiService: a, + ctx: ctx, + paymentGatewayId: paymentGatewayId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPaymentGatewayIdPaymentMethodsExecute(r HasManyApiGETPaymentGatewayIdPaymentMethodsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPaymentGatewayIdPaymentMethods") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/payment_gateways/{paymentGatewayId}/payment_methods" + localVarPath = strings.Replace(localVarPath, "{"+"paymentGatewayId"+"}", url.PathEscape(parameterValueToString(r.paymentGatewayId, "paymentGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPaymentGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + paymentGatewayId interface{} +} + +func (r HasManyApiGETPaymentGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaymentGatewayIdVersionsExecute(r) +} + +/* +GETPaymentGatewayIdVersions Retrieve the versions associated to the payment gateway + +Retrieve the versions associated to the payment gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param paymentGatewayId The resource's id + @return HasManyApiGETPaymentGatewayIdVersionsRequest +*/ +func (a *HasManyApiService) GETPaymentGatewayIdVersions(ctx context.Context, paymentGatewayId interface{}) HasManyApiGETPaymentGatewayIdVersionsRequest { + return HasManyApiGETPaymentGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + paymentGatewayId: paymentGatewayId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPaymentGatewayIdVersionsExecute(r HasManyApiGETPaymentGatewayIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPaymentGatewayIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/payment_gateways/{paymentGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"paymentGatewayId"+"}", url.PathEscape(parameterValueToString(r.paymentGatewayId, "paymentGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPaymentMethodIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + paymentMethodId interface{} +} + +func (r HasManyApiGETPaymentMethodIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaymentMethodIdAttachmentsExecute(r) +} + +/* +GETPaymentMethodIdAttachments Retrieve the attachments associated to the payment method + +Retrieve the attachments associated to the payment method + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param paymentMethodId The resource's id + @return HasManyApiGETPaymentMethodIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETPaymentMethodIdAttachments(ctx context.Context, paymentMethodId interface{}) HasManyApiGETPaymentMethodIdAttachmentsRequest { + return HasManyApiGETPaymentMethodIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + paymentMethodId: paymentMethodId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPaymentMethodIdAttachmentsExecute(r HasManyApiGETPaymentMethodIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPaymentMethodIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/payment_methods/{paymentMethodId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"paymentMethodId"+"}", url.PathEscape(parameterValueToString(r.paymentMethodId, "paymentMethodId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPaymentMethodIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + paymentMethodId interface{} +} + +func (r HasManyApiGETPaymentMethodIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaymentMethodIdVersionsExecute(r) +} + +/* +GETPaymentMethodIdVersions Retrieve the versions associated to the payment method + +Retrieve the versions associated to the payment method + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param paymentMethodId The resource's id + @return HasManyApiGETPaymentMethodIdVersionsRequest +*/ +func (a *HasManyApiService) GETPaymentMethodIdVersions(ctx context.Context, paymentMethodId interface{}) HasManyApiGETPaymentMethodIdVersionsRequest { + return HasManyApiGETPaymentMethodIdVersionsRequest{ + ApiService: a, + ctx: ctx, + paymentMethodId: paymentMethodId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPaymentMethodIdVersionsExecute(r HasManyApiGETPaymentMethodIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPaymentMethodIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/payment_methods/{paymentMethodId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"paymentMethodId"+"}", url.PathEscape(parameterValueToString(r.paymentMethodId, "paymentMethodId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPaymentOptionIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + paymentOptionId interface{} +} + +func (r HasManyApiGETPaymentOptionIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaymentOptionIdAttachmentsExecute(r) +} + +/* +GETPaymentOptionIdAttachments Retrieve the attachments associated to the payment option + +Retrieve the attachments associated to the payment option + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param paymentOptionId The resource's id + @return HasManyApiGETPaymentOptionIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETPaymentOptionIdAttachments(ctx context.Context, paymentOptionId interface{}) HasManyApiGETPaymentOptionIdAttachmentsRequest { + return HasManyApiGETPaymentOptionIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + paymentOptionId: paymentOptionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPaymentOptionIdAttachmentsExecute(r HasManyApiGETPaymentOptionIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPaymentOptionIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/payment_options/{paymentOptionId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"paymentOptionId"+"}", url.PathEscape(parameterValueToString(r.paymentOptionId, "paymentOptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPaypalGatewayIdPaymentMethodsRequest struct { + ctx context.Context + ApiService *HasManyApiService + paypalGatewayId interface{} +} + +func (r HasManyApiGETPaypalGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaypalGatewayIdPaymentMethodsExecute(r) +} + +/* +GETPaypalGatewayIdPaymentMethods Retrieve the payment methods associated to the paypal gateway + +Retrieve the payment methods associated to the paypal gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param paypalGatewayId The resource's id + @return HasManyApiGETPaypalGatewayIdPaymentMethodsRequest +*/ +func (a *HasManyApiService) GETPaypalGatewayIdPaymentMethods(ctx context.Context, paypalGatewayId interface{}) HasManyApiGETPaypalGatewayIdPaymentMethodsRequest { + return HasManyApiGETPaypalGatewayIdPaymentMethodsRequest{ + ApiService: a, + ctx: ctx, + paypalGatewayId: paypalGatewayId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPaypalGatewayIdPaymentMethodsExecute(r HasManyApiGETPaypalGatewayIdPaymentMethodsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPaypalGatewayIdPaymentMethods") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/paypal_gateways/{paypalGatewayId}/payment_methods" + localVarPath = strings.Replace(localVarPath, "{"+"paypalGatewayId"+"}", url.PathEscape(parameterValueToString(r.paypalGatewayId, "paypalGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPaypalGatewayIdPaypalPaymentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + paypalGatewayId interface{} +} + +func (r HasManyApiGETPaypalGatewayIdPaypalPaymentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaypalGatewayIdPaypalPaymentsExecute(r) +} + +/* +GETPaypalGatewayIdPaypalPayments Retrieve the paypal payments associated to the paypal gateway + +Retrieve the paypal payments associated to the paypal gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param paypalGatewayId The resource's id + @return HasManyApiGETPaypalGatewayIdPaypalPaymentsRequest +*/ +func (a *HasManyApiService) GETPaypalGatewayIdPaypalPayments(ctx context.Context, paypalGatewayId interface{}) HasManyApiGETPaypalGatewayIdPaypalPaymentsRequest { + return HasManyApiGETPaypalGatewayIdPaypalPaymentsRequest{ + ApiService: a, + ctx: ctx, + paypalGatewayId: paypalGatewayId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPaypalGatewayIdPaypalPaymentsExecute(r HasManyApiGETPaypalGatewayIdPaypalPaymentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPaypalGatewayIdPaypalPayments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/paypal_gateways/{paypalGatewayId}/paypal_payments" + localVarPath = strings.Replace(localVarPath, "{"+"paypalGatewayId"+"}", url.PathEscape(parameterValueToString(r.paypalGatewayId, "paypalGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPaypalGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + paypalGatewayId interface{} +} + +func (r HasManyApiGETPaypalGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaypalGatewayIdVersionsExecute(r) +} + +/* +GETPaypalGatewayIdVersions Retrieve the versions associated to the paypal gateway + +Retrieve the versions associated to the paypal gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param paypalGatewayId The resource's id + @return HasManyApiGETPaypalGatewayIdVersionsRequest +*/ +func (a *HasManyApiService) GETPaypalGatewayIdVersions(ctx context.Context, paypalGatewayId interface{}) HasManyApiGETPaypalGatewayIdVersionsRequest { + return HasManyApiGETPaypalGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + paypalGatewayId: paypalGatewayId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPaypalGatewayIdVersionsExecute(r HasManyApiGETPaypalGatewayIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPaypalGatewayIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/paypal_gateways/{paypalGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"paypalGatewayId"+"}", url.PathEscape(parameterValueToString(r.paypalGatewayId, "paypalGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPaypalPaymentIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + paypalPaymentId interface{} +} + +func (r HasManyApiGETPaypalPaymentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaypalPaymentIdVersionsExecute(r) +} + +/* +GETPaypalPaymentIdVersions Retrieve the versions associated to the paypal payment + +Retrieve the versions associated to the paypal payment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param paypalPaymentId The resource's id + @return HasManyApiGETPaypalPaymentIdVersionsRequest +*/ +func (a *HasManyApiService) GETPaypalPaymentIdVersions(ctx context.Context, paypalPaymentId interface{}) HasManyApiGETPaypalPaymentIdVersionsRequest { + return HasManyApiGETPaypalPaymentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + paypalPaymentId: paypalPaymentId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPaypalPaymentIdVersionsExecute(r HasManyApiGETPaypalPaymentIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPaypalPaymentIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/paypal_payments/{paypalPaymentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"paypalPaymentId"+"}", url.PathEscape(parameterValueToString(r.paypalPaymentId, "paypalPaymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPercentageDiscountPromotionIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + percentageDiscountPromotionId interface{} +} + +func (r HasManyApiGETPercentageDiscountPromotionIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPercentageDiscountPromotionIdAttachmentsExecute(r) +} + +/* +GETPercentageDiscountPromotionIdAttachments Retrieve the attachments associated to the percentage discount promotion + +Retrieve the attachments associated to the percentage discount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param percentageDiscountPromotionId The resource's id + @return HasManyApiGETPercentageDiscountPromotionIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETPercentageDiscountPromotionIdAttachments(ctx context.Context, percentageDiscountPromotionId interface{}) HasManyApiGETPercentageDiscountPromotionIdAttachmentsRequest { + return HasManyApiGETPercentageDiscountPromotionIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + percentageDiscountPromotionId: percentageDiscountPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPercentageDiscountPromotionIdAttachmentsExecute(r HasManyApiGETPercentageDiscountPromotionIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPercentageDiscountPromotionIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPercentageDiscountPromotionIdCouponsRequest struct { + ctx context.Context + ApiService *HasManyApiService + percentageDiscountPromotionId interface{} +} + +func (r HasManyApiGETPercentageDiscountPromotionIdCouponsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPercentageDiscountPromotionIdCouponsExecute(r) +} + +/* +GETPercentageDiscountPromotionIdCoupons Retrieve the coupons associated to the percentage discount promotion + +Retrieve the coupons associated to the percentage discount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param percentageDiscountPromotionId The resource's id + @return HasManyApiGETPercentageDiscountPromotionIdCouponsRequest +*/ +func (a *HasManyApiService) GETPercentageDiscountPromotionIdCoupons(ctx context.Context, percentageDiscountPromotionId interface{}) HasManyApiGETPercentageDiscountPromotionIdCouponsRequest { + return HasManyApiGETPercentageDiscountPromotionIdCouponsRequest{ + ApiService: a, + ctx: ctx, + percentageDiscountPromotionId: percentageDiscountPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPercentageDiscountPromotionIdCouponsExecute(r HasManyApiGETPercentageDiscountPromotionIdCouponsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPercentageDiscountPromotionIdCoupons") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/coupons" + localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPercentageDiscountPromotionIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + percentageDiscountPromotionId interface{} +} + +func (r HasManyApiGETPercentageDiscountPromotionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPercentageDiscountPromotionIdEventsExecute(r) +} + +/* +GETPercentageDiscountPromotionIdEvents Retrieve the events associated to the percentage discount promotion + +Retrieve the events associated to the percentage discount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param percentageDiscountPromotionId The resource's id + @return HasManyApiGETPercentageDiscountPromotionIdEventsRequest +*/ +func (a *HasManyApiService) GETPercentageDiscountPromotionIdEvents(ctx context.Context, percentageDiscountPromotionId interface{}) HasManyApiGETPercentageDiscountPromotionIdEventsRequest { + return HasManyApiGETPercentageDiscountPromotionIdEventsRequest{ + ApiService: a, + ctx: ctx, + percentageDiscountPromotionId: percentageDiscountPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPercentageDiscountPromotionIdEventsExecute(r HasManyApiGETPercentageDiscountPromotionIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPercentageDiscountPromotionIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPercentageDiscountPromotionIdSkusRequest struct { + ctx context.Context + ApiService *HasManyApiService + percentageDiscountPromotionId interface{} +} + +func (r HasManyApiGETPercentageDiscountPromotionIdSkusRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPercentageDiscountPromotionIdSkusExecute(r) +} + +/* +GETPercentageDiscountPromotionIdSkus Retrieve the skus associated to the percentage discount promotion + +Retrieve the skus associated to the percentage discount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param percentageDiscountPromotionId The resource's id + @return HasManyApiGETPercentageDiscountPromotionIdSkusRequest +*/ +func (a *HasManyApiService) GETPercentageDiscountPromotionIdSkus(ctx context.Context, percentageDiscountPromotionId interface{}) HasManyApiGETPercentageDiscountPromotionIdSkusRequest { + return HasManyApiGETPercentageDiscountPromotionIdSkusRequest{ + ApiService: a, + ctx: ctx, + percentageDiscountPromotionId: percentageDiscountPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPercentageDiscountPromotionIdSkusExecute(r HasManyApiGETPercentageDiscountPromotionIdSkusRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPercentageDiscountPromotionIdSkus") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/skus" + localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPercentageDiscountPromotionIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + percentageDiscountPromotionId interface{} +} + +func (r HasManyApiGETPercentageDiscountPromotionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPercentageDiscountPromotionIdTagsExecute(r) +} + +/* +GETPercentageDiscountPromotionIdTags Retrieve the tags associated to the percentage discount promotion + +Retrieve the tags associated to the percentage discount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param percentageDiscountPromotionId The resource's id + @return HasManyApiGETPercentageDiscountPromotionIdTagsRequest +*/ +func (a *HasManyApiService) GETPercentageDiscountPromotionIdTags(ctx context.Context, percentageDiscountPromotionId interface{}) HasManyApiGETPercentageDiscountPromotionIdTagsRequest { + return HasManyApiGETPercentageDiscountPromotionIdTagsRequest{ + ApiService: a, + ctx: ctx, + percentageDiscountPromotionId: percentageDiscountPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPercentageDiscountPromotionIdTagsExecute(r HasManyApiGETPercentageDiscountPromotionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPercentageDiscountPromotionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPercentageDiscountPromotionIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + percentageDiscountPromotionId interface{} +} + +func (r HasManyApiGETPercentageDiscountPromotionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPercentageDiscountPromotionIdVersionsExecute(r) +} + +/* +GETPercentageDiscountPromotionIdVersions Retrieve the versions associated to the percentage discount promotion + +Retrieve the versions associated to the percentage discount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param percentageDiscountPromotionId The resource's id + @return HasManyApiGETPercentageDiscountPromotionIdVersionsRequest +*/ +func (a *HasManyApiService) GETPercentageDiscountPromotionIdVersions(ctx context.Context, percentageDiscountPromotionId interface{}) HasManyApiGETPercentageDiscountPromotionIdVersionsRequest { + return HasManyApiGETPercentageDiscountPromotionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + percentageDiscountPromotionId: percentageDiscountPromotionId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPercentageDiscountPromotionIdVersionsExecute(r HasManyApiGETPercentageDiscountPromotionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPercentageDiscountPromotionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPriceFrequencyTierIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + priceFrequencyTierId interface{} +} + +func (r HasManyApiGETPriceFrequencyTierIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceFrequencyTierIdAttachmentsExecute(r) +} + +/* +GETPriceFrequencyTierIdAttachments Retrieve the attachments associated to the price frequency tier + +Retrieve the attachments associated to the price frequency tier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceFrequencyTierId The resource's id + @return HasManyApiGETPriceFrequencyTierIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETPriceFrequencyTierIdAttachments(ctx context.Context, priceFrequencyTierId interface{}) HasManyApiGETPriceFrequencyTierIdAttachmentsRequest { + return HasManyApiGETPriceFrequencyTierIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + priceFrequencyTierId: priceFrequencyTierId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPriceFrequencyTierIdAttachmentsExecute(r HasManyApiGETPriceFrequencyTierIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceFrequencyTierIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/price_frequency_tiers/{priceFrequencyTierId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"priceFrequencyTierId"+"}", url.PathEscape(parameterValueToString(r.priceFrequencyTierId, "priceFrequencyTierId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPriceFrequencyTierIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + priceFrequencyTierId interface{} +} + +func (r HasManyApiGETPriceFrequencyTierIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceFrequencyTierIdEventsExecute(r) +} + +/* +GETPriceFrequencyTierIdEvents Retrieve the events associated to the price frequency tier + +Retrieve the events associated to the price frequency tier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceFrequencyTierId The resource's id + @return HasManyApiGETPriceFrequencyTierIdEventsRequest +*/ +func (a *HasManyApiService) GETPriceFrequencyTierIdEvents(ctx context.Context, priceFrequencyTierId interface{}) HasManyApiGETPriceFrequencyTierIdEventsRequest { + return HasManyApiGETPriceFrequencyTierIdEventsRequest{ + ApiService: a, + ctx: ctx, + priceFrequencyTierId: priceFrequencyTierId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPriceFrequencyTierIdEventsExecute(r HasManyApiGETPriceFrequencyTierIdEventsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceFrequencyTierIdEvents") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/price_frequency_tiers/{priceFrequencyTierId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"priceFrequencyTierId"+"}", url.PathEscape(parameterValueToString(r.priceFrequencyTierId, "priceFrequencyTierId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPriceFrequencyTierIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + priceFrequencyTierId interface{} +} + +func (r HasManyApiGETPriceFrequencyTierIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceFrequencyTierIdVersionsExecute(r) +} + +/* +GETPriceFrequencyTierIdVersions Retrieve the versions associated to the price frequency tier + +Retrieve the versions associated to the price frequency tier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceFrequencyTierId The resource's id + @return HasManyApiGETPriceFrequencyTierIdVersionsRequest +*/ +func (a *HasManyApiService) GETPriceFrequencyTierIdVersions(ctx context.Context, priceFrequencyTierId interface{}) HasManyApiGETPriceFrequencyTierIdVersionsRequest { + return HasManyApiGETPriceFrequencyTierIdVersionsRequest{ + ApiService: a, + ctx: ctx, + priceFrequencyTierId: priceFrequencyTierId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPriceFrequencyTierIdVersionsExecute(r HasManyApiGETPriceFrequencyTierIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceFrequencyTierIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/price_frequency_tiers/{priceFrequencyTierId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"priceFrequencyTierId"+"}", url.PathEscape(parameterValueToString(r.priceFrequencyTierId, "priceFrequencyTierId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPriceIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + priceId interface{} +} + +func (r HasManyApiGETPriceIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceIdAttachmentsExecute(r) +} + +/* +GETPriceIdAttachments Retrieve the attachments associated to the price + +Retrieve the attachments associated to the price + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceId The resource's id + @return HasManyApiGETPriceIdAttachmentsRequest +*/ +func (a *HasManyApiService) GETPriceIdAttachments(ctx context.Context, priceId interface{}) HasManyApiGETPriceIdAttachmentsRequest { + return HasManyApiGETPriceIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + priceId: priceId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPriceIdAttachmentsExecute(r HasManyApiGETPriceIdAttachmentsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceIdAttachments") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/prices/{priceId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPriceIdJwtMarketsRequest struct { + ctx context.Context + ApiService *HasManyApiService + priceId interface{} +} + +func (r HasManyApiGETPriceIdJwtMarketsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceIdJwtMarketsExecute(r) +} + +/* +GETPriceIdJwtMarkets Retrieve the jwt markets associated to the price + +Retrieve the jwt markets associated to the price + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceId The resource's id + @return HasManyApiGETPriceIdJwtMarketsRequest +*/ +func (a *HasManyApiService) GETPriceIdJwtMarkets(ctx context.Context, priceId interface{}) HasManyApiGETPriceIdJwtMarketsRequest { + return HasManyApiGETPriceIdJwtMarketsRequest{ + ApiService: a, + ctx: ctx, + priceId: priceId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPriceIdJwtMarketsExecute(r HasManyApiGETPriceIdJwtMarketsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceIdJwtMarkets") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/prices/{priceId}/jwt_markets" + localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPriceIdJwtStockLocationsRequest struct { + ctx context.Context + ApiService *HasManyApiService + priceId interface{} +} + +func (r HasManyApiGETPriceIdJwtStockLocationsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceIdJwtStockLocationsExecute(r) +} + +/* +GETPriceIdJwtStockLocations Retrieve the jwt stock locations associated to the price + +Retrieve the jwt stock locations associated to the price + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceId The resource's id + @return HasManyApiGETPriceIdJwtStockLocationsRequest +*/ +func (a *HasManyApiService) GETPriceIdJwtStockLocations(ctx context.Context, priceId interface{}) HasManyApiGETPriceIdJwtStockLocationsRequest { + return HasManyApiGETPriceIdJwtStockLocationsRequest{ + ApiService: a, + ctx: ctx, + priceId: priceId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPriceIdJwtStockLocationsExecute(r HasManyApiGETPriceIdJwtStockLocationsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceIdJwtStockLocations") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/prices/{priceId}/jwt_stock_locations" + localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPriceIdPriceFrequencyTiersRequest struct { + ctx context.Context + ApiService *HasManyApiService + priceId interface{} +} + +func (r HasManyApiGETPriceIdPriceFrequencyTiersRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceIdPriceFrequencyTiersExecute(r) +} + +/* +GETPriceIdPriceFrequencyTiers Retrieve the price frequency tiers associated to the price + +Retrieve the price frequency tiers associated to the price + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceId The resource's id + @return HasManyApiGETPriceIdPriceFrequencyTiersRequest */ -func (a *HasManyApiService) GETGeocoderIdAttachments(ctx context.Context, geocoderId interface{}) HasManyApiGETGeocoderIdAttachmentsRequest { - return HasManyApiGETGeocoderIdAttachmentsRequest{ +func (a *HasManyApiService) GETPriceIdPriceFrequencyTiers(ctx context.Context, priceId interface{}) HasManyApiGETPriceIdPriceFrequencyTiersRequest { + return HasManyApiGETPriceIdPriceFrequencyTiersRequest{ ApiService: a, ctx: ctx, - geocoderId: geocoderId, + priceId: priceId, } } // Execute executes the request -func (a *HasManyApiService) GETGeocoderIdAttachmentsExecute(r HasManyApiGETGeocoderIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPriceIdPriceFrequencyTiersExecute(r HasManyApiGETPriceIdPriceFrequencyTiersRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETGeocoderIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceIdPriceFrequencyTiers") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/geocoders/{geocoderId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"geocoderId"+"}", url.PathEscape(parameterValueToString(r.geocoderId, "geocoderId")), -1) + localVarPath := localBasePath + "/prices/{priceId}/price_frequency_tiers" + localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5727,48 +22103,48 @@ func (a *HasManyApiService) GETGeocoderIdAttachmentsExecute(r HasManyApiGETGeoco return localVarHTTPResponse, nil } -type HasManyApiGETGiftCardIdAttachmentsRequest struct { +type HasManyApiGETPriceIdPriceTiersRequest struct { ctx context.Context ApiService *HasManyApiService - giftCardId interface{} + priceId interface{} } -func (r HasManyApiGETGiftCardIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETGiftCardIdAttachmentsExecute(r) +func (r HasManyApiGETPriceIdPriceTiersRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceIdPriceTiersExecute(r) } /* -GETGiftCardIdAttachments Retrieve the attachments associated to the gift card +GETPriceIdPriceTiers Retrieve the price tiers associated to the price -Retrieve the attachments associated to the gift card +Retrieve the price tiers associated to the price @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param giftCardId The resource's id - @return HasManyApiGETGiftCardIdAttachmentsRequest + @param priceId The resource's id + @return HasManyApiGETPriceIdPriceTiersRequest */ -func (a *HasManyApiService) GETGiftCardIdAttachments(ctx context.Context, giftCardId interface{}) HasManyApiGETGiftCardIdAttachmentsRequest { - return HasManyApiGETGiftCardIdAttachmentsRequest{ +func (a *HasManyApiService) GETPriceIdPriceTiers(ctx context.Context, priceId interface{}) HasManyApiGETPriceIdPriceTiersRequest { + return HasManyApiGETPriceIdPriceTiersRequest{ ApiService: a, ctx: ctx, - giftCardId: giftCardId, + priceId: priceId, } } // Execute executes the request -func (a *HasManyApiService) GETGiftCardIdAttachmentsExecute(r HasManyApiGETGiftCardIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPriceIdPriceTiersExecute(r HasManyApiGETPriceIdPriceTiersRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETGiftCardIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceIdPriceTiers") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/gift_cards/{giftCardId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"giftCardId"+"}", url.PathEscape(parameterValueToString(r.giftCardId, "giftCardId")), -1) + localVarPath := localBasePath + "/prices/{priceId}/price_tiers" + localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5819,48 +22195,48 @@ func (a *HasManyApiService) GETGiftCardIdAttachmentsExecute(r HasManyApiGETGiftC return localVarHTTPResponse, nil } -type HasManyApiGETGiftCardIdEventsRequest struct { +type HasManyApiGETPriceIdPriceVolumeTiersRequest struct { ctx context.Context ApiService *HasManyApiService - giftCardId interface{} + priceId interface{} } -func (r HasManyApiGETGiftCardIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETGiftCardIdEventsExecute(r) +func (r HasManyApiGETPriceIdPriceVolumeTiersRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceIdPriceVolumeTiersExecute(r) } /* -GETGiftCardIdEvents Retrieve the events associated to the gift card +GETPriceIdPriceVolumeTiers Retrieve the price volume tiers associated to the price -Retrieve the events associated to the gift card +Retrieve the price volume tiers associated to the price @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param giftCardId The resource's id - @return HasManyApiGETGiftCardIdEventsRequest + @param priceId The resource's id + @return HasManyApiGETPriceIdPriceVolumeTiersRequest */ -func (a *HasManyApiService) GETGiftCardIdEvents(ctx context.Context, giftCardId interface{}) HasManyApiGETGiftCardIdEventsRequest { - return HasManyApiGETGiftCardIdEventsRequest{ +func (a *HasManyApiService) GETPriceIdPriceVolumeTiers(ctx context.Context, priceId interface{}) HasManyApiGETPriceIdPriceVolumeTiersRequest { + return HasManyApiGETPriceIdPriceVolumeTiersRequest{ ApiService: a, ctx: ctx, - giftCardId: giftCardId, + priceId: priceId, } } // Execute executes the request -func (a *HasManyApiService) GETGiftCardIdEventsExecute(r HasManyApiGETGiftCardIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPriceIdPriceVolumeTiersExecute(r HasManyApiGETPriceIdPriceVolumeTiersRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETGiftCardIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceIdPriceVolumeTiers") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/gift_cards/{giftCardId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"giftCardId"+"}", url.PathEscape(parameterValueToString(r.giftCardId, "giftCardId")), -1) + localVarPath := localBasePath + "/prices/{priceId}/price_volume_tiers" + localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5911,48 +22287,48 @@ func (a *HasManyApiService) GETGiftCardIdEventsExecute(r HasManyApiGETGiftCardId return localVarHTTPResponse, nil } -type HasManyApiGETGiftCardRecipientIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - giftCardRecipientId interface{} +type HasManyApiGETPriceIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + priceId interface{} } -func (r HasManyApiGETGiftCardRecipientIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETGiftCardRecipientIdAttachmentsExecute(r) +func (r HasManyApiGETPriceIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceIdVersionsExecute(r) } /* -GETGiftCardRecipientIdAttachments Retrieve the attachments associated to the gift card recipient +GETPriceIdVersions Retrieve the versions associated to the price -Retrieve the attachments associated to the gift card recipient +Retrieve the versions associated to the price @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param giftCardRecipientId The resource's id - @return HasManyApiGETGiftCardRecipientIdAttachmentsRequest + @param priceId The resource's id + @return HasManyApiGETPriceIdVersionsRequest */ -func (a *HasManyApiService) GETGiftCardRecipientIdAttachments(ctx context.Context, giftCardRecipientId interface{}) HasManyApiGETGiftCardRecipientIdAttachmentsRequest { - return HasManyApiGETGiftCardRecipientIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - giftCardRecipientId: giftCardRecipientId, +func (a *HasManyApiService) GETPriceIdVersions(ctx context.Context, priceId interface{}) HasManyApiGETPriceIdVersionsRequest { + return HasManyApiGETPriceIdVersionsRequest{ + ApiService: a, + ctx: ctx, + priceId: priceId, } } // Execute executes the request -func (a *HasManyApiService) GETGiftCardRecipientIdAttachmentsExecute(r HasManyApiGETGiftCardRecipientIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPriceIdVersionsExecute(r HasManyApiGETPriceIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETGiftCardRecipientIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/gift_card_recipients/{giftCardRecipientId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"giftCardRecipientId"+"}", url.PathEscape(parameterValueToString(r.giftCardRecipientId, "giftCardRecipientId")), -1) + localVarPath := localBasePath + "/prices/{priceId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6003,48 +22379,48 @@ func (a *HasManyApiService) GETGiftCardRecipientIdAttachmentsExecute(r HasManyAp return localVarHTTPResponse, nil } -type HasManyApiGETGoogleGeocoderIdAddressesRequest struct { - ctx context.Context - ApiService *HasManyApiService - googleGeocoderId interface{} +type HasManyApiGETPriceListIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + priceListId interface{} } -func (r HasManyApiGETGoogleGeocoderIdAddressesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETGoogleGeocoderIdAddressesExecute(r) +func (r HasManyApiGETPriceListIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceListIdAttachmentsExecute(r) } /* -GETGoogleGeocoderIdAddresses Retrieve the addresses associated to the google geocoder +GETPriceListIdAttachments Retrieve the attachments associated to the price list -Retrieve the addresses associated to the google geocoder +Retrieve the attachments associated to the price list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param googleGeocoderId The resource's id - @return HasManyApiGETGoogleGeocoderIdAddressesRequest + @param priceListId The resource's id + @return HasManyApiGETPriceListIdAttachmentsRequest */ -func (a *HasManyApiService) GETGoogleGeocoderIdAddresses(ctx context.Context, googleGeocoderId interface{}) HasManyApiGETGoogleGeocoderIdAddressesRequest { - return HasManyApiGETGoogleGeocoderIdAddressesRequest{ - ApiService: a, - ctx: ctx, - googleGeocoderId: googleGeocoderId, +func (a *HasManyApiService) GETPriceListIdAttachments(ctx context.Context, priceListId interface{}) HasManyApiGETPriceListIdAttachmentsRequest { + return HasManyApiGETPriceListIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + priceListId: priceListId, } } // Execute executes the request -func (a *HasManyApiService) GETGoogleGeocoderIdAddressesExecute(r HasManyApiGETGoogleGeocoderIdAddressesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPriceListIdAttachmentsExecute(r HasManyApiGETPriceListIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETGoogleGeocoderIdAddresses") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceListIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/google_geocoders/{googleGeocoderId}/addresses" - localVarPath = strings.Replace(localVarPath, "{"+"googleGeocoderId"+"}", url.PathEscape(parameterValueToString(r.googleGeocoderId, "googleGeocoderId")), -1) + localVarPath := localBasePath + "/price_lists/{priceListId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"priceListId"+"}", url.PathEscape(parameterValueToString(r.priceListId, "priceListId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6095,48 +22471,140 @@ func (a *HasManyApiService) GETGoogleGeocoderIdAddressesExecute(r HasManyApiGETG return localVarHTTPResponse, nil } -type HasManyApiGETGoogleGeocoderIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - googleGeocoderId interface{} +type HasManyApiGETPriceListIdPriceListSchedulersRequest struct { + ctx context.Context + ApiService *HasManyApiService + priceListId interface{} } -func (r HasManyApiGETGoogleGeocoderIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETGoogleGeocoderIdAttachmentsExecute(r) +func (r HasManyApiGETPriceListIdPriceListSchedulersRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceListIdPriceListSchedulersExecute(r) } /* -GETGoogleGeocoderIdAttachments Retrieve the attachments associated to the google geocoder +GETPriceListIdPriceListSchedulers Retrieve the price list schedulers associated to the price list -Retrieve the attachments associated to the google geocoder +Retrieve the price list schedulers associated to the price list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param googleGeocoderId The resource's id - @return HasManyApiGETGoogleGeocoderIdAttachmentsRequest + @param priceListId The resource's id + @return HasManyApiGETPriceListIdPriceListSchedulersRequest */ -func (a *HasManyApiService) GETGoogleGeocoderIdAttachments(ctx context.Context, googleGeocoderId interface{}) HasManyApiGETGoogleGeocoderIdAttachmentsRequest { - return HasManyApiGETGoogleGeocoderIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - googleGeocoderId: googleGeocoderId, +func (a *HasManyApiService) GETPriceListIdPriceListSchedulers(ctx context.Context, priceListId interface{}) HasManyApiGETPriceListIdPriceListSchedulersRequest { + return HasManyApiGETPriceListIdPriceListSchedulersRequest{ + ApiService: a, + ctx: ctx, + priceListId: priceListId, + } +} + +// Execute executes the request +func (a *HasManyApiService) GETPriceListIdPriceListSchedulersExecute(r HasManyApiGETPriceListIdPriceListSchedulersRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceListIdPriceListSchedulers") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/price_lists/{priceListId}/price_list_schedulers" + localVarPath = strings.Replace(localVarPath, "{"+"priceListId"+"}", url.PathEscape(parameterValueToString(r.priceListId, "priceListId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasManyApiGETPriceListIdPricesRequest struct { + ctx context.Context + ApiService *HasManyApiService + priceListId interface{} +} + +func (r HasManyApiGETPriceListIdPricesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceListIdPricesExecute(r) +} + +/* +GETPriceListIdPrices Retrieve the prices associated to the price list + +Retrieve the prices associated to the price list + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceListId The resource's id + @return HasManyApiGETPriceListIdPricesRequest +*/ +func (a *HasManyApiService) GETPriceListIdPrices(ctx context.Context, priceListId interface{}) HasManyApiGETPriceListIdPricesRequest { + return HasManyApiGETPriceListIdPricesRequest{ + ApiService: a, + ctx: ctx, + priceListId: priceListId, } } // Execute executes the request -func (a *HasManyApiService) GETGoogleGeocoderIdAttachmentsExecute(r HasManyApiGETGoogleGeocoderIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPriceListIdPricesExecute(r HasManyApiGETPriceListIdPricesRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETGoogleGeocoderIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceListIdPrices") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/google_geocoders/{googleGeocoderId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"googleGeocoderId"+"}", url.PathEscape(parameterValueToString(r.googleGeocoderId, "googleGeocoderId")), -1) + localVarPath := localBasePath + "/price_lists/{priceListId}/prices" + localVarPath = strings.Replace(localVarPath, "{"+"priceListId"+"}", url.PathEscape(parameterValueToString(r.priceListId, "priceListId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6187,48 +22655,48 @@ func (a *HasManyApiService) GETGoogleGeocoderIdAttachmentsExecute(r HasManyApiGE return localVarHTTPResponse, nil } -type HasManyApiGETImportIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - importId interface{} +type HasManyApiGETPriceListIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + priceListId interface{} } -func (r HasManyApiGETImportIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETImportIdEventsExecute(r) +func (r HasManyApiGETPriceListIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceListIdVersionsExecute(r) } /* -GETImportIdEvents Retrieve the events associated to the import +GETPriceListIdVersions Retrieve the versions associated to the price list -Retrieve the events associated to the import +Retrieve the versions associated to the price list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param importId The resource's id - @return HasManyApiGETImportIdEventsRequest + @param priceListId The resource's id + @return HasManyApiGETPriceListIdVersionsRequest */ -func (a *HasManyApiService) GETImportIdEvents(ctx context.Context, importId interface{}) HasManyApiGETImportIdEventsRequest { - return HasManyApiGETImportIdEventsRequest{ - ApiService: a, - ctx: ctx, - importId: importId, +func (a *HasManyApiService) GETPriceListIdVersions(ctx context.Context, priceListId interface{}) HasManyApiGETPriceListIdVersionsRequest { + return HasManyApiGETPriceListIdVersionsRequest{ + ApiService: a, + ctx: ctx, + priceListId: priceListId, } } // Execute executes the request -func (a *HasManyApiService) GETImportIdEventsExecute(r HasManyApiGETImportIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPriceListIdVersionsExecute(r HasManyApiGETPriceListIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETImportIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceListIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/imports/{importId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"importId"+"}", url.PathEscape(parameterValueToString(r.importId, "importId")), -1) + localVarPath := localBasePath + "/price_lists/{priceListId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"priceListId"+"}", url.PathEscape(parameterValueToString(r.priceListId, "priceListId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6279,48 +22747,48 @@ func (a *HasManyApiService) GETImportIdEventsExecute(r HasManyApiGETImportIdEven return localVarHTTPResponse, nil } -type HasManyApiGETInStockSubscriptionIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - inStockSubscriptionId interface{} +type HasManyApiGETPriceListSchedulerIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + priceListSchedulerId interface{} } -func (r HasManyApiGETInStockSubscriptionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETInStockSubscriptionIdEventsExecute(r) +func (r HasManyApiGETPriceListSchedulerIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceListSchedulerIdEventsExecute(r) } /* -GETInStockSubscriptionIdEvents Retrieve the events associated to the in stock subscription +GETPriceListSchedulerIdEvents Retrieve the events associated to the price list scheduler -Retrieve the events associated to the in stock subscription +Retrieve the events associated to the price list scheduler @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param inStockSubscriptionId The resource's id - @return HasManyApiGETInStockSubscriptionIdEventsRequest + @param priceListSchedulerId The resource's id + @return HasManyApiGETPriceListSchedulerIdEventsRequest */ -func (a *HasManyApiService) GETInStockSubscriptionIdEvents(ctx context.Context, inStockSubscriptionId interface{}) HasManyApiGETInStockSubscriptionIdEventsRequest { - return HasManyApiGETInStockSubscriptionIdEventsRequest{ - ApiService: a, - ctx: ctx, - inStockSubscriptionId: inStockSubscriptionId, +func (a *HasManyApiService) GETPriceListSchedulerIdEvents(ctx context.Context, priceListSchedulerId interface{}) HasManyApiGETPriceListSchedulerIdEventsRequest { + return HasManyApiGETPriceListSchedulerIdEventsRequest{ + ApiService: a, + ctx: ctx, + priceListSchedulerId: priceListSchedulerId, } } // Execute executes the request -func (a *HasManyApiService) GETInStockSubscriptionIdEventsExecute(r HasManyApiGETInStockSubscriptionIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPriceListSchedulerIdEventsExecute(r HasManyApiGETPriceListSchedulerIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETInStockSubscriptionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceListSchedulerIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/in_stock_subscriptions/{inStockSubscriptionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"inStockSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.inStockSubscriptionId, "inStockSubscriptionId")), -1) + localVarPath := localBasePath + "/price_list_schedulers/{priceListSchedulerId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"priceListSchedulerId"+"}", url.PathEscape(parameterValueToString(r.priceListSchedulerId, "priceListSchedulerId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6371,48 +22839,48 @@ func (a *HasManyApiService) GETInStockSubscriptionIdEventsExecute(r HasManyApiGE return localVarHTTPResponse, nil } -type HasManyApiGETInventoryModelIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - inventoryModelId interface{} +type HasManyApiGETPriceListSchedulerIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + priceListSchedulerId interface{} } -func (r HasManyApiGETInventoryModelIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETInventoryModelIdAttachmentsExecute(r) +func (r HasManyApiGETPriceListSchedulerIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceListSchedulerIdVersionsExecute(r) } /* -GETInventoryModelIdAttachments Retrieve the attachments associated to the inventory model +GETPriceListSchedulerIdVersions Retrieve the versions associated to the price list scheduler -Retrieve the attachments associated to the inventory model +Retrieve the versions associated to the price list scheduler @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param inventoryModelId The resource's id - @return HasManyApiGETInventoryModelIdAttachmentsRequest + @param priceListSchedulerId The resource's id + @return HasManyApiGETPriceListSchedulerIdVersionsRequest */ -func (a *HasManyApiService) GETInventoryModelIdAttachments(ctx context.Context, inventoryModelId interface{}) HasManyApiGETInventoryModelIdAttachmentsRequest { - return HasManyApiGETInventoryModelIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - inventoryModelId: inventoryModelId, +func (a *HasManyApiService) GETPriceListSchedulerIdVersions(ctx context.Context, priceListSchedulerId interface{}) HasManyApiGETPriceListSchedulerIdVersionsRequest { + return HasManyApiGETPriceListSchedulerIdVersionsRequest{ + ApiService: a, + ctx: ctx, + priceListSchedulerId: priceListSchedulerId, } } // Execute executes the request -func (a *HasManyApiService) GETInventoryModelIdAttachmentsExecute(r HasManyApiGETInventoryModelIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPriceListSchedulerIdVersionsExecute(r HasManyApiGETPriceListSchedulerIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETInventoryModelIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceListSchedulerIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/inventory_models/{inventoryModelId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"inventoryModelId"+"}", url.PathEscape(parameterValueToString(r.inventoryModelId, "inventoryModelId")), -1) + localVarPath := localBasePath + "/price_list_schedulers/{priceListSchedulerId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"priceListSchedulerId"+"}", url.PathEscape(parameterValueToString(r.priceListSchedulerId, "priceListSchedulerId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6463,48 +22931,48 @@ func (a *HasManyApiService) GETInventoryModelIdAttachmentsExecute(r HasManyApiGE return localVarHTTPResponse, nil } -type HasManyApiGETInventoryModelIdInventoryReturnLocationsRequest struct { - ctx context.Context - ApiService *HasManyApiService - inventoryModelId interface{} +type HasManyApiGETPriceTierIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + priceTierId interface{} } -func (r HasManyApiGETInventoryModelIdInventoryReturnLocationsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETInventoryModelIdInventoryReturnLocationsExecute(r) +func (r HasManyApiGETPriceTierIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceTierIdAttachmentsExecute(r) } /* -GETInventoryModelIdInventoryReturnLocations Retrieve the inventory return locations associated to the inventory model +GETPriceTierIdAttachments Retrieve the attachments associated to the price tier -Retrieve the inventory return locations associated to the inventory model +Retrieve the attachments associated to the price tier @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param inventoryModelId The resource's id - @return HasManyApiGETInventoryModelIdInventoryReturnLocationsRequest + @param priceTierId The resource's id + @return HasManyApiGETPriceTierIdAttachmentsRequest */ -func (a *HasManyApiService) GETInventoryModelIdInventoryReturnLocations(ctx context.Context, inventoryModelId interface{}) HasManyApiGETInventoryModelIdInventoryReturnLocationsRequest { - return HasManyApiGETInventoryModelIdInventoryReturnLocationsRequest{ - ApiService: a, - ctx: ctx, - inventoryModelId: inventoryModelId, +func (a *HasManyApiService) GETPriceTierIdAttachments(ctx context.Context, priceTierId interface{}) HasManyApiGETPriceTierIdAttachmentsRequest { + return HasManyApiGETPriceTierIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + priceTierId: priceTierId, } } // Execute executes the request -func (a *HasManyApiService) GETInventoryModelIdInventoryReturnLocationsExecute(r HasManyApiGETInventoryModelIdInventoryReturnLocationsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPriceTierIdAttachmentsExecute(r HasManyApiGETPriceTierIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETInventoryModelIdInventoryReturnLocations") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceTierIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/inventory_models/{inventoryModelId}/inventory_return_locations" - localVarPath = strings.Replace(localVarPath, "{"+"inventoryModelId"+"}", url.PathEscape(parameterValueToString(r.inventoryModelId, "inventoryModelId")), -1) + localVarPath := localBasePath + "/price_tiers/{priceTierId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"priceTierId"+"}", url.PathEscape(parameterValueToString(r.priceTierId, "priceTierId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6555,48 +23023,48 @@ func (a *HasManyApiService) GETInventoryModelIdInventoryReturnLocationsExecute(r return localVarHTTPResponse, nil } -type HasManyApiGETInventoryModelIdInventoryStockLocationsRequest struct { - ctx context.Context - ApiService *HasManyApiService - inventoryModelId interface{} +type HasManyApiGETPriceTierIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + priceTierId interface{} } -func (r HasManyApiGETInventoryModelIdInventoryStockLocationsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETInventoryModelIdInventoryStockLocationsExecute(r) +func (r HasManyApiGETPriceTierIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceTierIdVersionsExecute(r) } /* -GETInventoryModelIdInventoryStockLocations Retrieve the inventory stock locations associated to the inventory model +GETPriceTierIdVersions Retrieve the versions associated to the price tier -Retrieve the inventory stock locations associated to the inventory model +Retrieve the versions associated to the price tier @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param inventoryModelId The resource's id - @return HasManyApiGETInventoryModelIdInventoryStockLocationsRequest + @param priceTierId The resource's id + @return HasManyApiGETPriceTierIdVersionsRequest */ -func (a *HasManyApiService) GETInventoryModelIdInventoryStockLocations(ctx context.Context, inventoryModelId interface{}) HasManyApiGETInventoryModelIdInventoryStockLocationsRequest { - return HasManyApiGETInventoryModelIdInventoryStockLocationsRequest{ - ApiService: a, - ctx: ctx, - inventoryModelId: inventoryModelId, +func (a *HasManyApiService) GETPriceTierIdVersions(ctx context.Context, priceTierId interface{}) HasManyApiGETPriceTierIdVersionsRequest { + return HasManyApiGETPriceTierIdVersionsRequest{ + ApiService: a, + ctx: ctx, + priceTierId: priceTierId, } } // Execute executes the request -func (a *HasManyApiService) GETInventoryModelIdInventoryStockLocationsExecute(r HasManyApiGETInventoryModelIdInventoryStockLocationsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPriceTierIdVersionsExecute(r HasManyApiGETPriceTierIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETInventoryModelIdInventoryStockLocations") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceTierIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/inventory_models/{inventoryModelId}/inventory_stock_locations" - localVarPath = strings.Replace(localVarPath, "{"+"inventoryModelId"+"}", url.PathEscape(parameterValueToString(r.inventoryModelId, "inventoryModelId")), -1) + localVarPath := localBasePath + "/price_tiers/{priceTierId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"priceTierId"+"}", url.PathEscape(parameterValueToString(r.priceTierId, "priceTierId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6647,48 +23115,48 @@ func (a *HasManyApiService) GETInventoryModelIdInventoryStockLocationsExecute(r return localVarHTTPResponse, nil } -type HasManyApiGETKlarnaGatewayIdKlarnaPaymentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - klarnaGatewayId interface{} +type HasManyApiGETPriceVolumeTierIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + priceVolumeTierId interface{} } -func (r HasManyApiGETKlarnaGatewayIdKlarnaPaymentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETKlarnaGatewayIdKlarnaPaymentsExecute(r) +func (r HasManyApiGETPriceVolumeTierIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceVolumeTierIdAttachmentsExecute(r) } /* -GETKlarnaGatewayIdKlarnaPayments Retrieve the klarna payments associated to the klarna gateway +GETPriceVolumeTierIdAttachments Retrieve the attachments associated to the price volume tier -Retrieve the klarna payments associated to the klarna gateway +Retrieve the attachments associated to the price volume tier @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param klarnaGatewayId The resource's id - @return HasManyApiGETKlarnaGatewayIdKlarnaPaymentsRequest + @param priceVolumeTierId The resource's id + @return HasManyApiGETPriceVolumeTierIdAttachmentsRequest */ -func (a *HasManyApiService) GETKlarnaGatewayIdKlarnaPayments(ctx context.Context, klarnaGatewayId interface{}) HasManyApiGETKlarnaGatewayIdKlarnaPaymentsRequest { - return HasManyApiGETKlarnaGatewayIdKlarnaPaymentsRequest{ - ApiService: a, - ctx: ctx, - klarnaGatewayId: klarnaGatewayId, +func (a *HasManyApiService) GETPriceVolumeTierIdAttachments(ctx context.Context, priceVolumeTierId interface{}) HasManyApiGETPriceVolumeTierIdAttachmentsRequest { + return HasManyApiGETPriceVolumeTierIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + priceVolumeTierId: priceVolumeTierId, } } // Execute executes the request -func (a *HasManyApiService) GETKlarnaGatewayIdKlarnaPaymentsExecute(r HasManyApiGETKlarnaGatewayIdKlarnaPaymentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPriceVolumeTierIdAttachmentsExecute(r HasManyApiGETPriceVolumeTierIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETKlarnaGatewayIdKlarnaPayments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceVolumeTierIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/klarna_gateways/{klarnaGatewayId}/klarna_payments" - localVarPath = strings.Replace(localVarPath, "{"+"klarnaGatewayId"+"}", url.PathEscape(parameterValueToString(r.klarnaGatewayId, "klarnaGatewayId")), -1) + localVarPath := localBasePath + "/price_volume_tiers/{priceVolumeTierId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"priceVolumeTierId"+"}", url.PathEscape(parameterValueToString(r.priceVolumeTierId, "priceVolumeTierId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6739,48 +23207,48 @@ func (a *HasManyApiService) GETKlarnaGatewayIdKlarnaPaymentsExecute(r HasManyApi return localVarHTTPResponse, nil } -type HasManyApiGETKlarnaGatewayIdPaymentMethodsRequest struct { - ctx context.Context - ApiService *HasManyApiService - klarnaGatewayId interface{} +type HasManyApiGETPriceVolumeTierIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + priceVolumeTierId interface{} } -func (r HasManyApiGETKlarnaGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETKlarnaGatewayIdPaymentMethodsExecute(r) +func (r HasManyApiGETPriceVolumeTierIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceVolumeTierIdEventsExecute(r) } /* -GETKlarnaGatewayIdPaymentMethods Retrieve the payment methods associated to the klarna gateway +GETPriceVolumeTierIdEvents Retrieve the events associated to the price volume tier -Retrieve the payment methods associated to the klarna gateway +Retrieve the events associated to the price volume tier @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param klarnaGatewayId The resource's id - @return HasManyApiGETKlarnaGatewayIdPaymentMethodsRequest + @param priceVolumeTierId The resource's id + @return HasManyApiGETPriceVolumeTierIdEventsRequest */ -func (a *HasManyApiService) GETKlarnaGatewayIdPaymentMethods(ctx context.Context, klarnaGatewayId interface{}) HasManyApiGETKlarnaGatewayIdPaymentMethodsRequest { - return HasManyApiGETKlarnaGatewayIdPaymentMethodsRequest{ - ApiService: a, - ctx: ctx, - klarnaGatewayId: klarnaGatewayId, +func (a *HasManyApiService) GETPriceVolumeTierIdEvents(ctx context.Context, priceVolumeTierId interface{}) HasManyApiGETPriceVolumeTierIdEventsRequest { + return HasManyApiGETPriceVolumeTierIdEventsRequest{ + ApiService: a, + ctx: ctx, + priceVolumeTierId: priceVolumeTierId, } } // Execute executes the request -func (a *HasManyApiService) GETKlarnaGatewayIdPaymentMethodsExecute(r HasManyApiGETKlarnaGatewayIdPaymentMethodsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPriceVolumeTierIdEventsExecute(r HasManyApiGETPriceVolumeTierIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETKlarnaGatewayIdPaymentMethods") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceVolumeTierIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/klarna_gateways/{klarnaGatewayId}/payment_methods" - localVarPath = strings.Replace(localVarPath, "{"+"klarnaGatewayId"+"}", url.PathEscape(parameterValueToString(r.klarnaGatewayId, "klarnaGatewayId")), -1) + localVarPath := localBasePath + "/price_volume_tiers/{priceVolumeTierId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"priceVolumeTierId"+"}", url.PathEscape(parameterValueToString(r.priceVolumeTierId, "priceVolumeTierId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6831,48 +23299,48 @@ func (a *HasManyApiService) GETKlarnaGatewayIdPaymentMethodsExecute(r HasManyApi return localVarHTTPResponse, nil } -type HasManyApiGETLineItemIdLineItemOptionsRequest struct { - ctx context.Context - ApiService *HasManyApiService - lineItemId interface{} +type HasManyApiGETPriceVolumeTierIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + priceVolumeTierId interface{} } -func (r HasManyApiGETLineItemIdLineItemOptionsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETLineItemIdLineItemOptionsExecute(r) +func (r HasManyApiGETPriceVolumeTierIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceVolumeTierIdVersionsExecute(r) } /* -GETLineItemIdLineItemOptions Retrieve the line item options associated to the line item +GETPriceVolumeTierIdVersions Retrieve the versions associated to the price volume tier -Retrieve the line item options associated to the line item +Retrieve the versions associated to the price volume tier @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param lineItemId The resource's id - @return HasManyApiGETLineItemIdLineItemOptionsRequest + @param priceVolumeTierId The resource's id + @return HasManyApiGETPriceVolumeTierIdVersionsRequest */ -func (a *HasManyApiService) GETLineItemIdLineItemOptions(ctx context.Context, lineItemId interface{}) HasManyApiGETLineItemIdLineItemOptionsRequest { - return HasManyApiGETLineItemIdLineItemOptionsRequest{ - ApiService: a, - ctx: ctx, - lineItemId: lineItemId, +func (a *HasManyApiService) GETPriceVolumeTierIdVersions(ctx context.Context, priceVolumeTierId interface{}) HasManyApiGETPriceVolumeTierIdVersionsRequest { + return HasManyApiGETPriceVolumeTierIdVersionsRequest{ + ApiService: a, + ctx: ctx, + priceVolumeTierId: priceVolumeTierId, } } // Execute executes the request -func (a *HasManyApiService) GETLineItemIdLineItemOptionsExecute(r HasManyApiGETLineItemIdLineItemOptionsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPriceVolumeTierIdVersionsExecute(r HasManyApiGETPriceVolumeTierIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETLineItemIdLineItemOptions") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceVolumeTierIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/line_items/{lineItemId}/line_item_options" - localVarPath = strings.Replace(localVarPath, "{"+"lineItemId"+"}", url.PathEscape(parameterValueToString(r.lineItemId, "lineItemId")), -1) + localVarPath := localBasePath + "/price_volume_tiers/{priceVolumeTierId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"priceVolumeTierId"+"}", url.PathEscape(parameterValueToString(r.priceVolumeTierId, "priceVolumeTierId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6923,48 +23391,48 @@ func (a *HasManyApiService) GETLineItemIdLineItemOptionsExecute(r HasManyApiGETL return localVarHTTPResponse, nil } -type HasManyApiGETLineItemIdStockLineItemsRequest struct { - ctx context.Context - ApiService *HasManyApiService - lineItemId interface{} +type HasManyApiGETPromotionIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + promotionId interface{} } -func (r HasManyApiGETLineItemIdStockLineItemsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETLineItemIdStockLineItemsExecute(r) +func (r HasManyApiGETPromotionIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionIdAttachmentsExecute(r) } /* -GETLineItemIdStockLineItems Retrieve the stock line items associated to the line item +GETPromotionIdAttachments Retrieve the attachments associated to the promotion -Retrieve the stock line items associated to the line item +Retrieve the attachments associated to the promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param lineItemId The resource's id - @return HasManyApiGETLineItemIdStockLineItemsRequest + @param promotionId The resource's id + @return HasManyApiGETPromotionIdAttachmentsRequest */ -func (a *HasManyApiService) GETLineItemIdStockLineItems(ctx context.Context, lineItemId interface{}) HasManyApiGETLineItemIdStockLineItemsRequest { - return HasManyApiGETLineItemIdStockLineItemsRequest{ - ApiService: a, - ctx: ctx, - lineItemId: lineItemId, +func (a *HasManyApiService) GETPromotionIdAttachments(ctx context.Context, promotionId interface{}) HasManyApiGETPromotionIdAttachmentsRequest { + return HasManyApiGETPromotionIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + promotionId: promotionId, } } // Execute executes the request -func (a *HasManyApiService) GETLineItemIdStockLineItemsExecute(r HasManyApiGETLineItemIdStockLineItemsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPromotionIdAttachmentsExecute(r HasManyApiGETPromotionIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETLineItemIdStockLineItems") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPromotionIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/line_items/{lineItemId}/stock_line_items" - localVarPath = strings.Replace(localVarPath, "{"+"lineItemId"+"}", url.PathEscape(parameterValueToString(r.lineItemId, "lineItemId")), -1) + localVarPath := localBasePath + "/promotions/{promotionId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7015,48 +23483,48 @@ func (a *HasManyApiService) GETLineItemIdStockLineItemsExecute(r HasManyApiGETLi return localVarHTTPResponse, nil } -type HasManyApiGETLineItemIdStockTransfersRequest struct { - ctx context.Context - ApiService *HasManyApiService - lineItemId interface{} +type HasManyApiGETPromotionIdCouponsRequest struct { + ctx context.Context + ApiService *HasManyApiService + promotionId interface{} } -func (r HasManyApiGETLineItemIdStockTransfersRequest) Execute() (*http.Response, error) { - return r.ApiService.GETLineItemIdStockTransfersExecute(r) +func (r HasManyApiGETPromotionIdCouponsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionIdCouponsExecute(r) } /* -GETLineItemIdStockTransfers Retrieve the stock transfers associated to the line item +GETPromotionIdCoupons Retrieve the coupons associated to the promotion -Retrieve the stock transfers associated to the line item +Retrieve the coupons associated to the promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param lineItemId The resource's id - @return HasManyApiGETLineItemIdStockTransfersRequest + @param promotionId The resource's id + @return HasManyApiGETPromotionIdCouponsRequest */ -func (a *HasManyApiService) GETLineItemIdStockTransfers(ctx context.Context, lineItemId interface{}) HasManyApiGETLineItemIdStockTransfersRequest { - return HasManyApiGETLineItemIdStockTransfersRequest{ - ApiService: a, - ctx: ctx, - lineItemId: lineItemId, +func (a *HasManyApiService) GETPromotionIdCoupons(ctx context.Context, promotionId interface{}) HasManyApiGETPromotionIdCouponsRequest { + return HasManyApiGETPromotionIdCouponsRequest{ + ApiService: a, + ctx: ctx, + promotionId: promotionId, } } // Execute executes the request -func (a *HasManyApiService) GETLineItemIdStockTransfersExecute(r HasManyApiGETLineItemIdStockTransfersRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPromotionIdCouponsExecute(r HasManyApiGETPromotionIdCouponsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETLineItemIdStockTransfers") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPromotionIdCoupons") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/line_items/{lineItemId}/stock_transfers" - localVarPath = strings.Replace(localVarPath, "{"+"lineItemId"+"}", url.PathEscape(parameterValueToString(r.lineItemId, "lineItemId")), -1) + localVarPath := localBasePath + "/promotions/{promotionId}/coupons" + localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7107,48 +23575,48 @@ func (a *HasManyApiService) GETLineItemIdStockTransfersExecute(r HasManyApiGETLi return localVarHTTPResponse, nil } -type HasManyApiGETManualGatewayIdPaymentMethodsRequest struct { - ctx context.Context - ApiService *HasManyApiService - manualGatewayId interface{} +type HasManyApiGETPromotionIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + promotionId interface{} } -func (r HasManyApiGETManualGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETManualGatewayIdPaymentMethodsExecute(r) +func (r HasManyApiGETPromotionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionIdEventsExecute(r) } /* -GETManualGatewayIdPaymentMethods Retrieve the payment methods associated to the manual gateway +GETPromotionIdEvents Retrieve the events associated to the promotion -Retrieve the payment methods associated to the manual gateway +Retrieve the events associated to the promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param manualGatewayId The resource's id - @return HasManyApiGETManualGatewayIdPaymentMethodsRequest + @param promotionId The resource's id + @return HasManyApiGETPromotionIdEventsRequest */ -func (a *HasManyApiService) GETManualGatewayIdPaymentMethods(ctx context.Context, manualGatewayId interface{}) HasManyApiGETManualGatewayIdPaymentMethodsRequest { - return HasManyApiGETManualGatewayIdPaymentMethodsRequest{ - ApiService: a, - ctx: ctx, - manualGatewayId: manualGatewayId, +func (a *HasManyApiService) GETPromotionIdEvents(ctx context.Context, promotionId interface{}) HasManyApiGETPromotionIdEventsRequest { + return HasManyApiGETPromotionIdEventsRequest{ + ApiService: a, + ctx: ctx, + promotionId: promotionId, } } // Execute executes the request -func (a *HasManyApiService) GETManualGatewayIdPaymentMethodsExecute(r HasManyApiGETManualGatewayIdPaymentMethodsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPromotionIdEventsExecute(r HasManyApiGETPromotionIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETManualGatewayIdPaymentMethods") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPromotionIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/manual_gateways/{manualGatewayId}/payment_methods" - localVarPath = strings.Replace(localVarPath, "{"+"manualGatewayId"+"}", url.PathEscape(parameterValueToString(r.manualGatewayId, "manualGatewayId")), -1) + localVarPath := localBasePath + "/promotions/{promotionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7199,48 +23667,48 @@ func (a *HasManyApiService) GETManualGatewayIdPaymentMethodsExecute(r HasManyApi return localVarHTTPResponse, nil } -type HasManyApiGETManualTaxCalculatorIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - manualTaxCalculatorId interface{} +type HasManyApiGETPromotionIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + promotionId interface{} } -func (r HasManyApiGETManualTaxCalculatorIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETManualTaxCalculatorIdAttachmentsExecute(r) +func (r HasManyApiGETPromotionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionIdTagsExecute(r) } /* -GETManualTaxCalculatorIdAttachments Retrieve the attachments associated to the manual tax calculator +GETPromotionIdTags Retrieve the tags associated to the promotion -Retrieve the attachments associated to the manual tax calculator +Retrieve the tags associated to the promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param manualTaxCalculatorId The resource's id - @return HasManyApiGETManualTaxCalculatorIdAttachmentsRequest + @param promotionId The resource's id + @return HasManyApiGETPromotionIdTagsRequest */ -func (a *HasManyApiService) GETManualTaxCalculatorIdAttachments(ctx context.Context, manualTaxCalculatorId interface{}) HasManyApiGETManualTaxCalculatorIdAttachmentsRequest { - return HasManyApiGETManualTaxCalculatorIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - manualTaxCalculatorId: manualTaxCalculatorId, +func (a *HasManyApiService) GETPromotionIdTags(ctx context.Context, promotionId interface{}) HasManyApiGETPromotionIdTagsRequest { + return HasManyApiGETPromotionIdTagsRequest{ + ApiService: a, + ctx: ctx, + promotionId: promotionId, } } // Execute executes the request -func (a *HasManyApiService) GETManualTaxCalculatorIdAttachmentsExecute(r HasManyApiGETManualTaxCalculatorIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPromotionIdTagsExecute(r HasManyApiGETPromotionIdTagsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETManualTaxCalculatorIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPromotionIdTags") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/manual_tax_calculators/{manualTaxCalculatorId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"manualTaxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.manualTaxCalculatorId, "manualTaxCalculatorId")), -1) + localVarPath := localBasePath + "/promotions/{promotionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7291,48 +23759,48 @@ func (a *HasManyApiService) GETManualTaxCalculatorIdAttachmentsExecute(r HasMany return localVarHTTPResponse, nil } -type HasManyApiGETManualTaxCalculatorIdMarketsRequest struct { - ctx context.Context - ApiService *HasManyApiService - manualTaxCalculatorId interface{} +type HasManyApiGETPromotionIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + promotionId interface{} } -func (r HasManyApiGETManualTaxCalculatorIdMarketsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETManualTaxCalculatorIdMarketsExecute(r) +func (r HasManyApiGETPromotionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionIdVersionsExecute(r) } /* -GETManualTaxCalculatorIdMarkets Retrieve the markets associated to the manual tax calculator +GETPromotionIdVersions Retrieve the versions associated to the promotion -Retrieve the markets associated to the manual tax calculator +Retrieve the versions associated to the promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param manualTaxCalculatorId The resource's id - @return HasManyApiGETManualTaxCalculatorIdMarketsRequest + @param promotionId The resource's id + @return HasManyApiGETPromotionIdVersionsRequest */ -func (a *HasManyApiService) GETManualTaxCalculatorIdMarkets(ctx context.Context, manualTaxCalculatorId interface{}) HasManyApiGETManualTaxCalculatorIdMarketsRequest { - return HasManyApiGETManualTaxCalculatorIdMarketsRequest{ - ApiService: a, - ctx: ctx, - manualTaxCalculatorId: manualTaxCalculatorId, +func (a *HasManyApiService) GETPromotionIdVersions(ctx context.Context, promotionId interface{}) HasManyApiGETPromotionIdVersionsRequest { + return HasManyApiGETPromotionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + promotionId: promotionId, } } // Execute executes the request -func (a *HasManyApiService) GETManualTaxCalculatorIdMarketsExecute(r HasManyApiGETManualTaxCalculatorIdMarketsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPromotionIdVersionsExecute(r HasManyApiGETPromotionIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETManualTaxCalculatorIdMarkets") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPromotionIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/manual_tax_calculators/{manualTaxCalculatorId}/markets" - localVarPath = strings.Replace(localVarPath, "{"+"manualTaxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.manualTaxCalculatorId, "manualTaxCalculatorId")), -1) + localVarPath := localBasePath + "/promotions/{promotionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7383,48 +23851,48 @@ func (a *HasManyApiService) GETManualTaxCalculatorIdMarketsExecute(r HasManyApiG return localVarHTTPResponse, nil } -type HasManyApiGETManualTaxCalculatorIdTaxRulesRequest struct { - ctx context.Context - ApiService *HasManyApiService - manualTaxCalculatorId interface{} +type HasManyApiGETPromotionRuleIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + promotionRuleId interface{} } -func (r HasManyApiGETManualTaxCalculatorIdTaxRulesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETManualTaxCalculatorIdTaxRulesExecute(r) +func (r HasManyApiGETPromotionRuleIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionRuleIdVersionsExecute(r) } /* -GETManualTaxCalculatorIdTaxRules Retrieve the tax rules associated to the manual tax calculator +GETPromotionRuleIdVersions Retrieve the versions associated to the promotion rule -Retrieve the tax rules associated to the manual tax calculator +Retrieve the versions associated to the promotion rule @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param manualTaxCalculatorId The resource's id - @return HasManyApiGETManualTaxCalculatorIdTaxRulesRequest + @param promotionRuleId The resource's id + @return HasManyApiGETPromotionRuleIdVersionsRequest */ -func (a *HasManyApiService) GETManualTaxCalculatorIdTaxRules(ctx context.Context, manualTaxCalculatorId interface{}) HasManyApiGETManualTaxCalculatorIdTaxRulesRequest { - return HasManyApiGETManualTaxCalculatorIdTaxRulesRequest{ - ApiService: a, - ctx: ctx, - manualTaxCalculatorId: manualTaxCalculatorId, +func (a *HasManyApiService) GETPromotionRuleIdVersions(ctx context.Context, promotionRuleId interface{}) HasManyApiGETPromotionRuleIdVersionsRequest { + return HasManyApiGETPromotionRuleIdVersionsRequest{ + ApiService: a, + ctx: ctx, + promotionRuleId: promotionRuleId, } } // Execute executes the request -func (a *HasManyApiService) GETManualTaxCalculatorIdTaxRulesExecute(r HasManyApiGETManualTaxCalculatorIdTaxRulesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETPromotionRuleIdVersionsExecute(r HasManyApiGETPromotionRuleIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETManualTaxCalculatorIdTaxRules") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPromotionRuleIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/manual_tax_calculators/{manualTaxCalculatorId}/tax_rules" - localVarPath = strings.Replace(localVarPath, "{"+"manualTaxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.manualTaxCalculatorId, "manualTaxCalculatorId")), -1) + localVarPath := localBasePath + "/promotion_rules/{promotionRuleId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"promotionRuleId"+"}", url.PathEscape(parameterValueToString(r.promotionRuleId, "promotionRuleId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7475,48 +23943,48 @@ func (a *HasManyApiService) GETManualTaxCalculatorIdTaxRulesExecute(r HasManyApi return localVarHTTPResponse, nil } -type HasManyApiGETMarketIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - marketId interface{} +type HasManyApiGETRecurringOrderCopyIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + recurringOrderCopyId interface{} } -func (r HasManyApiGETMarketIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETMarketIdAttachmentsExecute(r) +func (r HasManyApiGETRecurringOrderCopyIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETRecurringOrderCopyIdEventsExecute(r) } /* -GETMarketIdAttachments Retrieve the attachments associated to the market +GETRecurringOrderCopyIdEvents Retrieve the events associated to the recurring order copy -Retrieve the attachments associated to the market +Retrieve the events associated to the recurring order copy @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param marketId The resource's id - @return HasManyApiGETMarketIdAttachmentsRequest + @param recurringOrderCopyId The resource's id + @return HasManyApiGETRecurringOrderCopyIdEventsRequest */ -func (a *HasManyApiService) GETMarketIdAttachments(ctx context.Context, marketId interface{}) HasManyApiGETMarketIdAttachmentsRequest { - return HasManyApiGETMarketIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - marketId: marketId, +func (a *HasManyApiService) GETRecurringOrderCopyIdEvents(ctx context.Context, recurringOrderCopyId interface{}) HasManyApiGETRecurringOrderCopyIdEventsRequest { + return HasManyApiGETRecurringOrderCopyIdEventsRequest{ + ApiService: a, + ctx: ctx, + recurringOrderCopyId: recurringOrderCopyId, } } // Execute executes the request -func (a *HasManyApiService) GETMarketIdAttachmentsExecute(r HasManyApiGETMarketIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETRecurringOrderCopyIdEventsExecute(r HasManyApiGETRecurringOrderCopyIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETMarketIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETRecurringOrderCopyIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/markets/{marketId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + localVarPath := localBasePath + "/recurring_order_copies/{recurringOrderCopyId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"recurringOrderCopyId"+"}", url.PathEscape(parameterValueToString(r.recurringOrderCopyId, "recurringOrderCopyId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7567,48 +24035,48 @@ func (a *HasManyApiService) GETMarketIdAttachmentsExecute(r HasManyApiGETMarketI return localVarHTTPResponse, nil } -type HasManyApiGETMerchantIdAttachmentsRequest struct { +type HasManyApiGETRefundIdAttachmentsRequest struct { ctx context.Context ApiService *HasManyApiService - merchantId interface{} + refundId interface{} } -func (r HasManyApiGETMerchantIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETMerchantIdAttachmentsExecute(r) +func (r HasManyApiGETRefundIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETRefundIdAttachmentsExecute(r) } /* -GETMerchantIdAttachments Retrieve the attachments associated to the merchant +GETRefundIdAttachments Retrieve the attachments associated to the refund -Retrieve the attachments associated to the merchant +Retrieve the attachments associated to the refund @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param merchantId The resource's id - @return HasManyApiGETMerchantIdAttachmentsRequest + @param refundId The resource's id + @return HasManyApiGETRefundIdAttachmentsRequest */ -func (a *HasManyApiService) GETMerchantIdAttachments(ctx context.Context, merchantId interface{}) HasManyApiGETMerchantIdAttachmentsRequest { - return HasManyApiGETMerchantIdAttachmentsRequest{ +func (a *HasManyApiService) GETRefundIdAttachments(ctx context.Context, refundId interface{}) HasManyApiGETRefundIdAttachmentsRequest { + return HasManyApiGETRefundIdAttachmentsRequest{ ApiService: a, ctx: ctx, - merchantId: merchantId, + refundId: refundId, } } // Execute executes the request -func (a *HasManyApiService) GETMerchantIdAttachmentsExecute(r HasManyApiGETMerchantIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETRefundIdAttachmentsExecute(r HasManyApiGETRefundIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETMerchantIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETRefundIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/merchants/{merchantId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"merchantId"+"}", url.PathEscape(parameterValueToString(r.merchantId, "merchantId")), -1) + localVarPath := localBasePath + "/refunds/{refundId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"refundId"+"}", url.PathEscape(parameterValueToString(r.refundId, "refundId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7659,48 +24127,48 @@ func (a *HasManyApiService) GETMerchantIdAttachmentsExecute(r HasManyApiGETMerch return localVarHTTPResponse, nil } -type HasManyApiGETOrderCopyIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - orderCopyId interface{} +type HasManyApiGETRefundIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + refundId interface{} } -func (r HasManyApiGETOrderCopyIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderCopyIdEventsExecute(r) +func (r HasManyApiGETRefundIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETRefundIdEventsExecute(r) } /* -GETOrderCopyIdEvents Retrieve the events associated to the order copy +GETRefundIdEvents Retrieve the events associated to the refund -Retrieve the events associated to the order copy +Retrieve the events associated to the refund @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderCopyId The resource's id - @return HasManyApiGETOrderCopyIdEventsRequest -*/ -func (a *HasManyApiService) GETOrderCopyIdEvents(ctx context.Context, orderCopyId interface{}) HasManyApiGETOrderCopyIdEventsRequest { - return HasManyApiGETOrderCopyIdEventsRequest{ - ApiService: a, - ctx: ctx, - orderCopyId: orderCopyId, + @param refundId The resource's id + @return HasManyApiGETRefundIdEventsRequest +*/ +func (a *HasManyApiService) GETRefundIdEvents(ctx context.Context, refundId interface{}) HasManyApiGETRefundIdEventsRequest { + return HasManyApiGETRefundIdEventsRequest{ + ApiService: a, + ctx: ctx, + refundId: refundId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderCopyIdEventsExecute(r HasManyApiGETOrderCopyIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETRefundIdEventsExecute(r HasManyApiGETRefundIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderCopyIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETRefundIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_copies/{orderCopyId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"orderCopyId"+"}", url.PathEscape(parameterValueToString(r.orderCopyId, "orderCopyId")), -1) + localVarPath := localBasePath + "/refunds/{refundId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"refundId"+"}", url.PathEscape(parameterValueToString(r.refundId, "refundId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7751,48 +24219,48 @@ func (a *HasManyApiService) GETOrderCopyIdEventsExecute(r HasManyApiGETOrderCopy return localVarHTTPResponse, nil } -type HasManyApiGETOrderFactoryIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - orderFactoryId interface{} +type HasManyApiGETRefundIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + refundId interface{} } -func (r HasManyApiGETOrderFactoryIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderFactoryIdEventsExecute(r) +func (r HasManyApiGETRefundIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETRefundIdVersionsExecute(r) } /* -GETOrderFactoryIdEvents Retrieve the events associated to the order factory +GETRefundIdVersions Retrieve the versions associated to the refund -Retrieve the events associated to the order factory +Retrieve the versions associated to the refund @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderFactoryId The resource's id - @return HasManyApiGETOrderFactoryIdEventsRequest + @param refundId The resource's id + @return HasManyApiGETRefundIdVersionsRequest */ -func (a *HasManyApiService) GETOrderFactoryIdEvents(ctx context.Context, orderFactoryId interface{}) HasManyApiGETOrderFactoryIdEventsRequest { - return HasManyApiGETOrderFactoryIdEventsRequest{ - ApiService: a, - ctx: ctx, - orderFactoryId: orderFactoryId, +func (a *HasManyApiService) GETRefundIdVersions(ctx context.Context, refundId interface{}) HasManyApiGETRefundIdVersionsRequest { + return HasManyApiGETRefundIdVersionsRequest{ + ApiService: a, + ctx: ctx, + refundId: refundId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderFactoryIdEventsExecute(r HasManyApiGETOrderFactoryIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETRefundIdVersionsExecute(r HasManyApiGETRefundIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderFactoryIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETRefundIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_factories/{orderFactoryId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"orderFactoryId"+"}", url.PathEscape(parameterValueToString(r.orderFactoryId, "orderFactoryId")), -1) + localVarPath := localBasePath + "/refunds/{refundId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"refundId"+"}", url.PathEscape(parameterValueToString(r.refundId, "refundId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7843,48 +24311,48 @@ func (a *HasManyApiService) GETOrderFactoryIdEventsExecute(r HasManyApiGETOrderF return localVarHTTPResponse, nil } -type HasManyApiGETOrderIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - orderId interface{} +type HasManyApiGETReservedStockIdStockReservationsRequest struct { + ctx context.Context + ApiService *HasManyApiService + reservedStockId interface{} } -func (r HasManyApiGETOrderIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdAttachmentsExecute(r) +func (r HasManyApiGETReservedStockIdStockReservationsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReservedStockIdStockReservationsExecute(r) } /* -GETOrderIdAttachments Retrieve the attachments associated to the order +GETReservedStockIdStockReservations Retrieve the stock reservations associated to the reserved stock -Retrieve the attachments associated to the order +Retrieve the stock reservations associated to the reserved stock @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasManyApiGETOrderIdAttachmentsRequest + @param reservedStockId The resource's id + @return HasManyApiGETReservedStockIdStockReservationsRequest */ -func (a *HasManyApiService) GETOrderIdAttachments(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdAttachmentsRequest { - return HasManyApiGETOrderIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - orderId: orderId, +func (a *HasManyApiService) GETReservedStockIdStockReservations(ctx context.Context, reservedStockId interface{}) HasManyApiGETReservedStockIdStockReservationsRequest { + return HasManyApiGETReservedStockIdStockReservationsRequest{ + ApiService: a, + ctx: ctx, + reservedStockId: reservedStockId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderIdAttachmentsExecute(r HasManyApiGETOrderIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETReservedStockIdStockReservationsExecute(r HasManyApiGETReservedStockIdStockReservationsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETReservedStockIdStockReservations") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/reserved_stocks/{reservedStockId}/stock_reservations" + localVarPath = strings.Replace(localVarPath, "{"+"reservedStockId"+"}", url.PathEscape(parameterValueToString(r.reservedStockId, "reservedStockId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7935,48 +24403,48 @@ func (a *HasManyApiService) GETOrderIdAttachmentsExecute(r HasManyApiGETOrderIdA return localVarHTTPResponse, nil } -type HasManyApiGETOrderIdAuthorizationsRequest struct { - ctx context.Context - ApiService *HasManyApiService - orderId interface{} +type HasManyApiGETReservedStockIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + reservedStockId interface{} } -func (r HasManyApiGETOrderIdAuthorizationsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdAuthorizationsExecute(r) +func (r HasManyApiGETReservedStockIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReservedStockIdVersionsExecute(r) } /* -GETOrderIdAuthorizations Retrieve the authorizations associated to the order +GETReservedStockIdVersions Retrieve the versions associated to the reserved stock -Retrieve the authorizations associated to the order +Retrieve the versions associated to the reserved stock @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasManyApiGETOrderIdAuthorizationsRequest + @param reservedStockId The resource's id + @return HasManyApiGETReservedStockIdVersionsRequest */ -func (a *HasManyApiService) GETOrderIdAuthorizations(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdAuthorizationsRequest { - return HasManyApiGETOrderIdAuthorizationsRequest{ - ApiService: a, - ctx: ctx, - orderId: orderId, +func (a *HasManyApiService) GETReservedStockIdVersions(ctx context.Context, reservedStockId interface{}) HasManyApiGETReservedStockIdVersionsRequest { + return HasManyApiGETReservedStockIdVersionsRequest{ + ApiService: a, + ctx: ctx, + reservedStockId: reservedStockId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderIdAuthorizationsExecute(r HasManyApiGETOrderIdAuthorizationsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETReservedStockIdVersionsExecute(r HasManyApiGETReservedStockIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdAuthorizations") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETReservedStockIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/authorizations" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/reserved_stocks/{reservedStockId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"reservedStockId"+"}", url.PathEscape(parameterValueToString(r.reservedStockId, "reservedStockId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8027,48 +24495,48 @@ func (a *HasManyApiService) GETOrderIdAuthorizationsExecute(r HasManyApiGETOrder return localVarHTTPResponse, nil } -type HasManyApiGETOrderIdAvailableCustomerPaymentSourcesRequest struct { +type HasManyApiGETReturnIdAttachmentsRequest struct { ctx context.Context ApiService *HasManyApiService - orderId interface{} + returnId interface{} } -func (r HasManyApiGETOrderIdAvailableCustomerPaymentSourcesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdAvailableCustomerPaymentSourcesExecute(r) +func (r HasManyApiGETReturnIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnIdAttachmentsExecute(r) } /* -GETOrderIdAvailableCustomerPaymentSources Retrieve the available customer payment sources associated to the order +GETReturnIdAttachments Retrieve the attachments associated to the return -Retrieve the available customer payment sources associated to the order +Retrieve the attachments associated to the return @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasManyApiGETOrderIdAvailableCustomerPaymentSourcesRequest + @param returnId The resource's id + @return HasManyApiGETReturnIdAttachmentsRequest */ -func (a *HasManyApiService) GETOrderIdAvailableCustomerPaymentSources(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdAvailableCustomerPaymentSourcesRequest { - return HasManyApiGETOrderIdAvailableCustomerPaymentSourcesRequest{ +func (a *HasManyApiService) GETReturnIdAttachments(ctx context.Context, returnId interface{}) HasManyApiGETReturnIdAttachmentsRequest { + return HasManyApiGETReturnIdAttachmentsRequest{ ApiService: a, ctx: ctx, - orderId: orderId, + returnId: returnId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderIdAvailableCustomerPaymentSourcesExecute(r HasManyApiGETOrderIdAvailableCustomerPaymentSourcesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETReturnIdAttachmentsExecute(r HasManyApiGETReturnIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdAvailableCustomerPaymentSources") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETReturnIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/available_customer_payment_sources" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/returns/{returnId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8119,48 +24587,48 @@ func (a *HasManyApiService) GETOrderIdAvailableCustomerPaymentSourcesExecute(r H return localVarHTTPResponse, nil } -type HasManyApiGETOrderIdAvailableFreeBundlesRequest struct { +type HasManyApiGETReturnIdEventsRequest struct { ctx context.Context ApiService *HasManyApiService - orderId interface{} + returnId interface{} } -func (r HasManyApiGETOrderIdAvailableFreeBundlesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdAvailableFreeBundlesExecute(r) +func (r HasManyApiGETReturnIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnIdEventsExecute(r) } /* -GETOrderIdAvailableFreeBundles Retrieve the available free bundles associated to the order +GETReturnIdEvents Retrieve the events associated to the return -Retrieve the available free bundles associated to the order +Retrieve the events associated to the return @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasManyApiGETOrderIdAvailableFreeBundlesRequest + @param returnId The resource's id + @return HasManyApiGETReturnIdEventsRequest */ -func (a *HasManyApiService) GETOrderIdAvailableFreeBundles(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdAvailableFreeBundlesRequest { - return HasManyApiGETOrderIdAvailableFreeBundlesRequest{ +func (a *HasManyApiService) GETReturnIdEvents(ctx context.Context, returnId interface{}) HasManyApiGETReturnIdEventsRequest { + return HasManyApiGETReturnIdEventsRequest{ ApiService: a, ctx: ctx, - orderId: orderId, + returnId: returnId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderIdAvailableFreeBundlesExecute(r HasManyApiGETOrderIdAvailableFreeBundlesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETReturnIdEventsExecute(r HasManyApiGETReturnIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdAvailableFreeBundles") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETReturnIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/available_free_bundles" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/returns/{returnId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8211,48 +24679,48 @@ func (a *HasManyApiService) GETOrderIdAvailableFreeBundlesExecute(r HasManyApiGE return localVarHTTPResponse, nil } -type HasManyApiGETOrderIdAvailableFreeSkusRequest struct { +type HasManyApiGETReturnIdResourceErrorsRequest struct { ctx context.Context ApiService *HasManyApiService - orderId interface{} + returnId interface{} } -func (r HasManyApiGETOrderIdAvailableFreeSkusRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdAvailableFreeSkusExecute(r) +func (r HasManyApiGETReturnIdResourceErrorsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnIdResourceErrorsExecute(r) } /* -GETOrderIdAvailableFreeSkus Retrieve the available free skus associated to the order +GETReturnIdResourceErrors Retrieve the resource errors associated to the return -Retrieve the available free skus associated to the order +Retrieve the resource errors associated to the return @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasManyApiGETOrderIdAvailableFreeSkusRequest + @param returnId The resource's id + @return HasManyApiGETReturnIdResourceErrorsRequest */ -func (a *HasManyApiService) GETOrderIdAvailableFreeSkus(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdAvailableFreeSkusRequest { - return HasManyApiGETOrderIdAvailableFreeSkusRequest{ +func (a *HasManyApiService) GETReturnIdResourceErrors(ctx context.Context, returnId interface{}) HasManyApiGETReturnIdResourceErrorsRequest { + return HasManyApiGETReturnIdResourceErrorsRequest{ ApiService: a, ctx: ctx, - orderId: orderId, + returnId: returnId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderIdAvailableFreeSkusExecute(r HasManyApiGETOrderIdAvailableFreeSkusRequest) (*http.Response, error) { +func (a *HasManyApiService) GETReturnIdResourceErrorsExecute(r HasManyApiGETReturnIdResourceErrorsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdAvailableFreeSkus") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETReturnIdResourceErrors") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/available_free_skus" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/returns/{returnId}/resource_errors" + localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8303,48 +24771,48 @@ func (a *HasManyApiService) GETOrderIdAvailableFreeSkusExecute(r HasManyApiGETOr return localVarHTTPResponse, nil } -type HasManyApiGETOrderIdAvailablePaymentMethodsRequest struct { +type HasManyApiGETReturnIdReturnLineItemsRequest struct { ctx context.Context ApiService *HasManyApiService - orderId interface{} + returnId interface{} } -func (r HasManyApiGETOrderIdAvailablePaymentMethodsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdAvailablePaymentMethodsExecute(r) +func (r HasManyApiGETReturnIdReturnLineItemsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnIdReturnLineItemsExecute(r) } /* -GETOrderIdAvailablePaymentMethods Retrieve the available payment methods associated to the order +GETReturnIdReturnLineItems Retrieve the return line items associated to the return -Retrieve the available payment methods associated to the order +Retrieve the return line items associated to the return @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasManyApiGETOrderIdAvailablePaymentMethodsRequest + @param returnId The resource's id + @return HasManyApiGETReturnIdReturnLineItemsRequest */ -func (a *HasManyApiService) GETOrderIdAvailablePaymentMethods(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdAvailablePaymentMethodsRequest { - return HasManyApiGETOrderIdAvailablePaymentMethodsRequest{ +func (a *HasManyApiService) GETReturnIdReturnLineItems(ctx context.Context, returnId interface{}) HasManyApiGETReturnIdReturnLineItemsRequest { + return HasManyApiGETReturnIdReturnLineItemsRequest{ ApiService: a, ctx: ctx, - orderId: orderId, + returnId: returnId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderIdAvailablePaymentMethodsExecute(r HasManyApiGETOrderIdAvailablePaymentMethodsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETReturnIdReturnLineItemsExecute(r HasManyApiGETReturnIdReturnLineItemsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdAvailablePaymentMethods") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETReturnIdReturnLineItems") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/available_payment_methods" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/returns/{returnId}/return_line_items" + localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8395,48 +24863,48 @@ func (a *HasManyApiService) GETOrderIdAvailablePaymentMethodsExecute(r HasManyAp return localVarHTTPResponse, nil } -type HasManyApiGETOrderIdCapturesRequest struct { +type HasManyApiGETReturnIdTagsRequest struct { ctx context.Context ApiService *HasManyApiService - orderId interface{} + returnId interface{} } -func (r HasManyApiGETOrderIdCapturesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdCapturesExecute(r) +func (r HasManyApiGETReturnIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnIdTagsExecute(r) } /* -GETOrderIdCaptures Retrieve the captures associated to the order +GETReturnIdTags Retrieve the tags associated to the return -Retrieve the captures associated to the order +Retrieve the tags associated to the return @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasManyApiGETOrderIdCapturesRequest + @param returnId The resource's id + @return HasManyApiGETReturnIdTagsRequest */ -func (a *HasManyApiService) GETOrderIdCaptures(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdCapturesRequest { - return HasManyApiGETOrderIdCapturesRequest{ +func (a *HasManyApiService) GETReturnIdTags(ctx context.Context, returnId interface{}) HasManyApiGETReturnIdTagsRequest { + return HasManyApiGETReturnIdTagsRequest{ ApiService: a, ctx: ctx, - orderId: orderId, + returnId: returnId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderIdCapturesExecute(r HasManyApiGETOrderIdCapturesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETReturnIdTagsExecute(r HasManyApiGETReturnIdTagsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdCaptures") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETReturnIdTags") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/captures" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/returns/{returnId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8487,48 +24955,48 @@ func (a *HasManyApiService) GETOrderIdCapturesExecute(r HasManyApiGETOrderIdCapt return localVarHTTPResponse, nil } -type HasManyApiGETOrderIdEventsRequest struct { +type HasManyApiGETReturnIdVersionsRequest struct { ctx context.Context ApiService *HasManyApiService - orderId interface{} + returnId interface{} } -func (r HasManyApiGETOrderIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdEventsExecute(r) +func (r HasManyApiGETReturnIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnIdVersionsExecute(r) } /* -GETOrderIdEvents Retrieve the events associated to the order +GETReturnIdVersions Retrieve the versions associated to the return -Retrieve the events associated to the order +Retrieve the versions associated to the return @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasManyApiGETOrderIdEventsRequest + @param returnId The resource's id + @return HasManyApiGETReturnIdVersionsRequest */ -func (a *HasManyApiService) GETOrderIdEvents(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdEventsRequest { - return HasManyApiGETOrderIdEventsRequest{ +func (a *HasManyApiService) GETReturnIdVersions(ctx context.Context, returnId interface{}) HasManyApiGETReturnIdVersionsRequest { + return HasManyApiGETReturnIdVersionsRequest{ ApiService: a, ctx: ctx, - orderId: orderId, + returnId: returnId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderIdEventsExecute(r HasManyApiGETOrderIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETReturnIdVersionsExecute(r HasManyApiGETReturnIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETReturnIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/returns/{returnId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8579,48 +25047,48 @@ func (a *HasManyApiService) GETOrderIdEventsExecute(r HasManyApiGETOrderIdEvents return localVarHTTPResponse, nil } -type HasManyApiGETOrderIdLineItemsRequest struct { - ctx context.Context - ApiService *HasManyApiService - orderId interface{} +type HasManyApiGETSatispayGatewayIdPaymentMethodsRequest struct { + ctx context.Context + ApiService *HasManyApiService + satispayGatewayId interface{} } -func (r HasManyApiGETOrderIdLineItemsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdLineItemsExecute(r) +func (r HasManyApiGETSatispayGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSatispayGatewayIdPaymentMethodsExecute(r) } /* -GETOrderIdLineItems Retrieve the line items associated to the order +GETSatispayGatewayIdPaymentMethods Retrieve the payment methods associated to the satispay gateway -Retrieve the line items associated to the order +Retrieve the payment methods associated to the satispay gateway @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasManyApiGETOrderIdLineItemsRequest + @param satispayGatewayId The resource's id + @return HasManyApiGETSatispayGatewayIdPaymentMethodsRequest */ -func (a *HasManyApiService) GETOrderIdLineItems(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdLineItemsRequest { - return HasManyApiGETOrderIdLineItemsRequest{ - ApiService: a, - ctx: ctx, - orderId: orderId, +func (a *HasManyApiService) GETSatispayGatewayIdPaymentMethods(ctx context.Context, satispayGatewayId interface{}) HasManyApiGETSatispayGatewayIdPaymentMethodsRequest { + return HasManyApiGETSatispayGatewayIdPaymentMethodsRequest{ + ApiService: a, + ctx: ctx, + satispayGatewayId: satispayGatewayId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderIdLineItemsExecute(r HasManyApiGETOrderIdLineItemsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSatispayGatewayIdPaymentMethodsExecute(r HasManyApiGETSatispayGatewayIdPaymentMethodsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdLineItems") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSatispayGatewayIdPaymentMethods") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/line_items" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/satispay_gateways/{satispayGatewayId}/payment_methods" + localVarPath = strings.Replace(localVarPath, "{"+"satispayGatewayId"+"}", url.PathEscape(parameterValueToString(r.satispayGatewayId, "satispayGatewayId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8671,48 +25139,48 @@ func (a *HasManyApiService) GETOrderIdLineItemsExecute(r HasManyApiGETOrderIdLin return localVarHTTPResponse, nil } -type HasManyApiGETOrderIdOrderCopiesRequest struct { - ctx context.Context - ApiService *HasManyApiService - orderId interface{} +type HasManyApiGETSatispayGatewayIdSatispayPaymentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + satispayGatewayId interface{} } -func (r HasManyApiGETOrderIdOrderCopiesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdOrderCopiesExecute(r) +func (r HasManyApiGETSatispayGatewayIdSatispayPaymentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSatispayGatewayIdSatispayPaymentsExecute(r) } /* -GETOrderIdOrderCopies Retrieve the order copies associated to the order +GETSatispayGatewayIdSatispayPayments Retrieve the satispay payments associated to the satispay gateway -Retrieve the order copies associated to the order +Retrieve the satispay payments associated to the satispay gateway @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasManyApiGETOrderIdOrderCopiesRequest + @param satispayGatewayId The resource's id + @return HasManyApiGETSatispayGatewayIdSatispayPaymentsRequest */ -func (a *HasManyApiService) GETOrderIdOrderCopies(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdOrderCopiesRequest { - return HasManyApiGETOrderIdOrderCopiesRequest{ - ApiService: a, - ctx: ctx, - orderId: orderId, +func (a *HasManyApiService) GETSatispayGatewayIdSatispayPayments(ctx context.Context, satispayGatewayId interface{}) HasManyApiGETSatispayGatewayIdSatispayPaymentsRequest { + return HasManyApiGETSatispayGatewayIdSatispayPaymentsRequest{ + ApiService: a, + ctx: ctx, + satispayGatewayId: satispayGatewayId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderIdOrderCopiesExecute(r HasManyApiGETOrderIdOrderCopiesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSatispayGatewayIdSatispayPaymentsExecute(r HasManyApiGETSatispayGatewayIdSatispayPaymentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdOrderCopies") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSatispayGatewayIdSatispayPayments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/order_copies" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/satispay_gateways/{satispayGatewayId}/satispay_payments" + localVarPath = strings.Replace(localVarPath, "{"+"satispayGatewayId"+"}", url.PathEscape(parameterValueToString(r.satispayGatewayId, "satispayGatewayId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8763,48 +25231,48 @@ func (a *HasManyApiService) GETOrderIdOrderCopiesExecute(r HasManyApiGETOrderIdO return localVarHTTPResponse, nil } -type HasManyApiGETOrderIdOrderFactoriesRequest struct { - ctx context.Context - ApiService *HasManyApiService - orderId interface{} +type HasManyApiGETSatispayGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + satispayGatewayId interface{} } -func (r HasManyApiGETOrderIdOrderFactoriesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdOrderFactoriesExecute(r) +func (r HasManyApiGETSatispayGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSatispayGatewayIdVersionsExecute(r) } /* -GETOrderIdOrderFactories Retrieve the order factories associated to the order +GETSatispayGatewayIdVersions Retrieve the versions associated to the satispay gateway -Retrieve the order factories associated to the order +Retrieve the versions associated to the satispay gateway @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasManyApiGETOrderIdOrderFactoriesRequest + @param satispayGatewayId The resource's id + @return HasManyApiGETSatispayGatewayIdVersionsRequest */ -func (a *HasManyApiService) GETOrderIdOrderFactories(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdOrderFactoriesRequest { - return HasManyApiGETOrderIdOrderFactoriesRequest{ - ApiService: a, - ctx: ctx, - orderId: orderId, +func (a *HasManyApiService) GETSatispayGatewayIdVersions(ctx context.Context, satispayGatewayId interface{}) HasManyApiGETSatispayGatewayIdVersionsRequest { + return HasManyApiGETSatispayGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + satispayGatewayId: satispayGatewayId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderIdOrderFactoriesExecute(r HasManyApiGETOrderIdOrderFactoriesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSatispayGatewayIdVersionsExecute(r HasManyApiGETSatispayGatewayIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdOrderFactories") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSatispayGatewayIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/order_factories" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/satispay_gateways/{satispayGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"satispayGatewayId"+"}", url.PathEscape(parameterValueToString(r.satispayGatewayId, "satispayGatewayId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8855,48 +25323,48 @@ func (a *HasManyApiService) GETOrderIdOrderFactoriesExecute(r HasManyApiGETOrder return localVarHTTPResponse, nil } -type HasManyApiGETOrderIdOrderSubscriptionsRequest struct { - ctx context.Context - ApiService *HasManyApiService - orderId interface{} +type HasManyApiGETSatispayPaymentIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + satispayPaymentId interface{} } -func (r HasManyApiGETOrderIdOrderSubscriptionsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdOrderSubscriptionsExecute(r) +func (r HasManyApiGETSatispayPaymentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSatispayPaymentIdVersionsExecute(r) } /* -GETOrderIdOrderSubscriptions Retrieve the order subscriptions associated to the order +GETSatispayPaymentIdVersions Retrieve the versions associated to the satispay payment -Retrieve the order subscriptions associated to the order +Retrieve the versions associated to the satispay payment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasManyApiGETOrderIdOrderSubscriptionsRequest + @param satispayPaymentId The resource's id + @return HasManyApiGETSatispayPaymentIdVersionsRequest */ -func (a *HasManyApiService) GETOrderIdOrderSubscriptions(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdOrderSubscriptionsRequest { - return HasManyApiGETOrderIdOrderSubscriptionsRequest{ - ApiService: a, - ctx: ctx, - orderId: orderId, +func (a *HasManyApiService) GETSatispayPaymentIdVersions(ctx context.Context, satispayPaymentId interface{}) HasManyApiGETSatispayPaymentIdVersionsRequest { + return HasManyApiGETSatispayPaymentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + satispayPaymentId: satispayPaymentId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderIdOrderSubscriptionsExecute(r HasManyApiGETOrderIdOrderSubscriptionsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSatispayPaymentIdVersionsExecute(r HasManyApiGETSatispayPaymentIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdOrderSubscriptions") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSatispayPaymentIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/order_subscriptions" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/satispay_payments/{satispayPaymentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"satispayPaymentId"+"}", url.PathEscape(parameterValueToString(r.satispayPaymentId, "satispayPaymentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8947,48 +25415,48 @@ func (a *HasManyApiService) GETOrderIdOrderSubscriptionsExecute(r HasManyApiGETO return localVarHTTPResponse, nil } -type HasManyApiGETOrderIdRecurringOrderCopiesRequest struct { +type HasManyApiGETShipmentIdAttachmentsRequest struct { ctx context.Context ApiService *HasManyApiService - orderId interface{} + shipmentId interface{} } -func (r HasManyApiGETOrderIdRecurringOrderCopiesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdRecurringOrderCopiesExecute(r) +func (r HasManyApiGETShipmentIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdAttachmentsExecute(r) } /* -GETOrderIdRecurringOrderCopies Retrieve the recurring order copies associated to the order +GETShipmentIdAttachments Retrieve the attachments associated to the shipment -Retrieve the recurring order copies associated to the order +Retrieve the attachments associated to the shipment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasManyApiGETOrderIdRecurringOrderCopiesRequest + @param shipmentId The resource's id + @return HasManyApiGETShipmentIdAttachmentsRequest */ -func (a *HasManyApiService) GETOrderIdRecurringOrderCopies(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdRecurringOrderCopiesRequest { - return HasManyApiGETOrderIdRecurringOrderCopiesRequest{ +func (a *HasManyApiService) GETShipmentIdAttachments(ctx context.Context, shipmentId interface{}) HasManyApiGETShipmentIdAttachmentsRequest { + return HasManyApiGETShipmentIdAttachmentsRequest{ ApiService: a, ctx: ctx, - orderId: orderId, + shipmentId: shipmentId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderIdRecurringOrderCopiesExecute(r HasManyApiGETOrderIdRecurringOrderCopiesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShipmentIdAttachmentsExecute(r HasManyApiGETShipmentIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdRecurringOrderCopies") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShipmentIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/recurring_order_copies" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/shipments/{shipmentId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9039,48 +25507,48 @@ func (a *HasManyApiService) GETOrderIdRecurringOrderCopiesExecute(r HasManyApiGE return localVarHTTPResponse, nil } -type HasManyApiGETOrderIdRefundsRequest struct { +type HasManyApiGETShipmentIdAvailableShippingMethodsRequest struct { ctx context.Context ApiService *HasManyApiService - orderId interface{} + shipmentId interface{} } -func (r HasManyApiGETOrderIdRefundsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdRefundsExecute(r) +func (r HasManyApiGETShipmentIdAvailableShippingMethodsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdAvailableShippingMethodsExecute(r) } /* -GETOrderIdRefunds Retrieve the refunds associated to the order +GETShipmentIdAvailableShippingMethods Retrieve the available shipping methods associated to the shipment -Retrieve the refunds associated to the order +Retrieve the available shipping methods associated to the shipment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasManyApiGETOrderIdRefundsRequest + @param shipmentId The resource's id + @return HasManyApiGETShipmentIdAvailableShippingMethodsRequest */ -func (a *HasManyApiService) GETOrderIdRefunds(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdRefundsRequest { - return HasManyApiGETOrderIdRefundsRequest{ +func (a *HasManyApiService) GETShipmentIdAvailableShippingMethods(ctx context.Context, shipmentId interface{}) HasManyApiGETShipmentIdAvailableShippingMethodsRequest { + return HasManyApiGETShipmentIdAvailableShippingMethodsRequest{ ApiService: a, ctx: ctx, - orderId: orderId, + shipmentId: shipmentId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderIdRefundsExecute(r HasManyApiGETOrderIdRefundsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShipmentIdAvailableShippingMethodsExecute(r HasManyApiGETShipmentIdAvailableShippingMethodsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdRefunds") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShipmentIdAvailableShippingMethods") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/refunds" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/shipments/{shipmentId}/available_shipping_methods" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9131,48 +25599,48 @@ func (a *HasManyApiService) GETOrderIdRefundsExecute(r HasManyApiGETOrderIdRefun return localVarHTTPResponse, nil } -type HasManyApiGETOrderIdReturnsRequest struct { +type HasManyApiGETShipmentIdCarrierAccountsRequest struct { ctx context.Context ApiService *HasManyApiService - orderId interface{} + shipmentId interface{} } -func (r HasManyApiGETOrderIdReturnsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdReturnsExecute(r) +func (r HasManyApiGETShipmentIdCarrierAccountsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdCarrierAccountsExecute(r) } /* -GETOrderIdReturns Retrieve the returns associated to the order +GETShipmentIdCarrierAccounts Retrieve the carrier accounts associated to the shipment -Retrieve the returns associated to the order +Retrieve the carrier accounts associated to the shipment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasManyApiGETOrderIdReturnsRequest + @param shipmentId The resource's id + @return HasManyApiGETShipmentIdCarrierAccountsRequest */ -func (a *HasManyApiService) GETOrderIdReturns(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdReturnsRequest { - return HasManyApiGETOrderIdReturnsRequest{ +func (a *HasManyApiService) GETShipmentIdCarrierAccounts(ctx context.Context, shipmentId interface{}) HasManyApiGETShipmentIdCarrierAccountsRequest { + return HasManyApiGETShipmentIdCarrierAccountsRequest{ ApiService: a, ctx: ctx, - orderId: orderId, + shipmentId: shipmentId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderIdReturnsExecute(r HasManyApiGETOrderIdReturnsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShipmentIdCarrierAccountsExecute(r HasManyApiGETShipmentIdCarrierAccountsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdReturns") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShipmentIdCarrierAccounts") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/returns" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/shipments/{shipmentId}/carrier_accounts" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9223,48 +25691,48 @@ func (a *HasManyApiService) GETOrderIdReturnsExecute(r HasManyApiGETOrderIdRetur return localVarHTTPResponse, nil } -type HasManyApiGETOrderIdShipmentsRequest struct { +type HasManyApiGETShipmentIdEventsRequest struct { ctx context.Context ApiService *HasManyApiService - orderId interface{} + shipmentId interface{} } -func (r HasManyApiGETOrderIdShipmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdShipmentsExecute(r) +func (r HasManyApiGETShipmentIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdEventsExecute(r) } /* -GETOrderIdShipments Retrieve the shipments associated to the order +GETShipmentIdEvents Retrieve the events associated to the shipment -Retrieve the shipments associated to the order +Retrieve the events associated to the shipment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasManyApiGETOrderIdShipmentsRequest + @param shipmentId The resource's id + @return HasManyApiGETShipmentIdEventsRequest */ -func (a *HasManyApiService) GETOrderIdShipments(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdShipmentsRequest { - return HasManyApiGETOrderIdShipmentsRequest{ +func (a *HasManyApiService) GETShipmentIdEvents(ctx context.Context, shipmentId interface{}) HasManyApiGETShipmentIdEventsRequest { + return HasManyApiGETShipmentIdEventsRequest{ ApiService: a, ctx: ctx, - orderId: orderId, + shipmentId: shipmentId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderIdShipmentsExecute(r HasManyApiGETOrderIdShipmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShipmentIdEventsExecute(r HasManyApiGETShipmentIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdShipments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShipmentIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/shipments" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/shipments/{shipmentId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9315,48 +25783,48 @@ func (a *HasManyApiService) GETOrderIdShipmentsExecute(r HasManyApiGETOrderIdShi return localVarHTTPResponse, nil } -type HasManyApiGETOrderIdVoidsRequest struct { +type HasManyApiGETShipmentIdLineItemsRequest struct { ctx context.Context ApiService *HasManyApiService - orderId interface{} + shipmentId interface{} } -func (r HasManyApiGETOrderIdVoidsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdVoidsExecute(r) +func (r HasManyApiGETShipmentIdLineItemsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdLineItemsExecute(r) } /* -GETOrderIdVoids Retrieve the voids associated to the order +GETShipmentIdLineItems Retrieve the line items associated to the shipment -Retrieve the voids associated to the order +Retrieve the line items associated to the shipment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasManyApiGETOrderIdVoidsRequest + @param shipmentId The resource's id + @return HasManyApiGETShipmentIdLineItemsRequest */ -func (a *HasManyApiService) GETOrderIdVoids(ctx context.Context, orderId interface{}) HasManyApiGETOrderIdVoidsRequest { - return HasManyApiGETOrderIdVoidsRequest{ +func (a *HasManyApiService) GETShipmentIdLineItems(ctx context.Context, shipmentId interface{}) HasManyApiGETShipmentIdLineItemsRequest { + return HasManyApiGETShipmentIdLineItemsRequest{ ApiService: a, ctx: ctx, - orderId: orderId, + shipmentId: shipmentId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderIdVoidsExecute(r HasManyApiGETOrderIdVoidsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShipmentIdLineItemsExecute(r HasManyApiGETShipmentIdLineItemsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderIdVoids") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShipmentIdLineItems") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/voids" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/shipments/{shipmentId}/line_items" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9407,48 +25875,48 @@ func (a *HasManyApiService) GETOrderIdVoidsExecute(r HasManyApiGETOrderIdVoidsRe return localVarHTTPResponse, nil } -type HasManyApiGETOrderSubscriptionIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - orderSubscriptionId interface{} +type HasManyApiGETShipmentIdParcelsRequest struct { + ctx context.Context + ApiService *HasManyApiService + shipmentId interface{} } -func (r HasManyApiGETOrderSubscriptionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderSubscriptionIdEventsExecute(r) +func (r HasManyApiGETShipmentIdParcelsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdParcelsExecute(r) } /* -GETOrderSubscriptionIdEvents Retrieve the events associated to the order subscription +GETShipmentIdParcels Retrieve the parcels associated to the shipment -Retrieve the events associated to the order subscription +Retrieve the parcels associated to the shipment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderSubscriptionId The resource's id - @return HasManyApiGETOrderSubscriptionIdEventsRequest + @param shipmentId The resource's id + @return HasManyApiGETShipmentIdParcelsRequest */ -func (a *HasManyApiService) GETOrderSubscriptionIdEvents(ctx context.Context, orderSubscriptionId interface{}) HasManyApiGETOrderSubscriptionIdEventsRequest { - return HasManyApiGETOrderSubscriptionIdEventsRequest{ - ApiService: a, - ctx: ctx, - orderSubscriptionId: orderSubscriptionId, +func (a *HasManyApiService) GETShipmentIdParcels(ctx context.Context, shipmentId interface{}) HasManyApiGETShipmentIdParcelsRequest { + return HasManyApiGETShipmentIdParcelsRequest{ + ApiService: a, + ctx: ctx, + shipmentId: shipmentId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderSubscriptionIdEventsExecute(r HasManyApiGETOrderSubscriptionIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShipmentIdParcelsExecute(r HasManyApiGETShipmentIdParcelsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderSubscriptionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShipmentIdParcels") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + localVarPath := localBasePath + "/shipments/{shipmentId}/parcels" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9499,48 +25967,48 @@ func (a *HasManyApiService) GETOrderSubscriptionIdEventsExecute(r HasManyApiGETO return localVarHTTPResponse, nil } -type HasManyApiGETOrderSubscriptionIdOrderFactoriesRequest struct { - ctx context.Context - ApiService *HasManyApiService - orderSubscriptionId interface{} +type HasManyApiGETShipmentIdStockLineItemsRequest struct { + ctx context.Context + ApiService *HasManyApiService + shipmentId interface{} } -func (r HasManyApiGETOrderSubscriptionIdOrderFactoriesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderSubscriptionIdOrderFactoriesExecute(r) +func (r HasManyApiGETShipmentIdStockLineItemsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdStockLineItemsExecute(r) } /* -GETOrderSubscriptionIdOrderFactories Retrieve the order factories associated to the order subscription +GETShipmentIdStockLineItems Retrieve the stock line items associated to the shipment -Retrieve the order factories associated to the order subscription +Retrieve the stock line items associated to the shipment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderSubscriptionId The resource's id - @return HasManyApiGETOrderSubscriptionIdOrderFactoriesRequest + @param shipmentId The resource's id + @return HasManyApiGETShipmentIdStockLineItemsRequest */ -func (a *HasManyApiService) GETOrderSubscriptionIdOrderFactories(ctx context.Context, orderSubscriptionId interface{}) HasManyApiGETOrderSubscriptionIdOrderFactoriesRequest { - return HasManyApiGETOrderSubscriptionIdOrderFactoriesRequest{ - ApiService: a, - ctx: ctx, - orderSubscriptionId: orderSubscriptionId, +func (a *HasManyApiService) GETShipmentIdStockLineItems(ctx context.Context, shipmentId interface{}) HasManyApiGETShipmentIdStockLineItemsRequest { + return HasManyApiGETShipmentIdStockLineItemsRequest{ + ApiService: a, + ctx: ctx, + shipmentId: shipmentId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderSubscriptionIdOrderFactoriesExecute(r HasManyApiGETOrderSubscriptionIdOrderFactoriesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShipmentIdStockLineItemsExecute(r HasManyApiGETShipmentIdStockLineItemsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderSubscriptionIdOrderFactories") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShipmentIdStockLineItems") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/order_factories" - localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + localVarPath := localBasePath + "/shipments/{shipmentId}/stock_line_items" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9591,48 +26059,48 @@ func (a *HasManyApiService) GETOrderSubscriptionIdOrderFactoriesExecute(r HasMan return localVarHTTPResponse, nil } -type HasManyApiGETOrderSubscriptionIdOrderSubscriptionItemsRequest struct { - ctx context.Context - ApiService *HasManyApiService - orderSubscriptionId interface{} +type HasManyApiGETShipmentIdStockTransfersRequest struct { + ctx context.Context + ApiService *HasManyApiService + shipmentId interface{} } -func (r HasManyApiGETOrderSubscriptionIdOrderSubscriptionItemsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderSubscriptionIdOrderSubscriptionItemsExecute(r) +func (r HasManyApiGETShipmentIdStockTransfersRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdStockTransfersExecute(r) } /* -GETOrderSubscriptionIdOrderSubscriptionItems Retrieve the order subscription items associated to the order subscription +GETShipmentIdStockTransfers Retrieve the stock transfers associated to the shipment -Retrieve the order subscription items associated to the order subscription +Retrieve the stock transfers associated to the shipment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderSubscriptionId The resource's id - @return HasManyApiGETOrderSubscriptionIdOrderSubscriptionItemsRequest + @param shipmentId The resource's id + @return HasManyApiGETShipmentIdStockTransfersRequest */ -func (a *HasManyApiService) GETOrderSubscriptionIdOrderSubscriptionItems(ctx context.Context, orderSubscriptionId interface{}) HasManyApiGETOrderSubscriptionIdOrderSubscriptionItemsRequest { - return HasManyApiGETOrderSubscriptionIdOrderSubscriptionItemsRequest{ - ApiService: a, - ctx: ctx, - orderSubscriptionId: orderSubscriptionId, +func (a *HasManyApiService) GETShipmentIdStockTransfers(ctx context.Context, shipmentId interface{}) HasManyApiGETShipmentIdStockTransfersRequest { + return HasManyApiGETShipmentIdStockTransfersRequest{ + ApiService: a, + ctx: ctx, + shipmentId: shipmentId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderSubscriptionIdOrderSubscriptionItemsExecute(r HasManyApiGETOrderSubscriptionIdOrderSubscriptionItemsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShipmentIdStockTransfersExecute(r HasManyApiGETShipmentIdStockTransfersRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderSubscriptionIdOrderSubscriptionItems") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShipmentIdStockTransfers") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/order_subscription_items" - localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + localVarPath := localBasePath + "/shipments/{shipmentId}/stock_transfers" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9683,48 +26151,48 @@ func (a *HasManyApiService) GETOrderSubscriptionIdOrderSubscriptionItemsExecute( return localVarHTTPResponse, nil } -type HasManyApiGETOrderSubscriptionIdOrdersRequest struct { - ctx context.Context - ApiService *HasManyApiService - orderSubscriptionId interface{} +type HasManyApiGETShipmentIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + shipmentId interface{} } -func (r HasManyApiGETOrderSubscriptionIdOrdersRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderSubscriptionIdOrdersExecute(r) +func (r HasManyApiGETShipmentIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdTagsExecute(r) } /* -GETOrderSubscriptionIdOrders Retrieve the orders associated to the order subscription +GETShipmentIdTags Retrieve the tags associated to the shipment -Retrieve the orders associated to the order subscription +Retrieve the tags associated to the shipment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderSubscriptionId The resource's id - @return HasManyApiGETOrderSubscriptionIdOrdersRequest + @param shipmentId The resource's id + @return HasManyApiGETShipmentIdTagsRequest */ -func (a *HasManyApiService) GETOrderSubscriptionIdOrders(ctx context.Context, orderSubscriptionId interface{}) HasManyApiGETOrderSubscriptionIdOrdersRequest { - return HasManyApiGETOrderSubscriptionIdOrdersRequest{ - ApiService: a, - ctx: ctx, - orderSubscriptionId: orderSubscriptionId, +func (a *HasManyApiService) GETShipmentIdTags(ctx context.Context, shipmentId interface{}) HasManyApiGETShipmentIdTagsRequest { + return HasManyApiGETShipmentIdTagsRequest{ + ApiService: a, + ctx: ctx, + shipmentId: shipmentId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderSubscriptionIdOrdersExecute(r HasManyApiGETOrderSubscriptionIdOrdersRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShipmentIdTagsExecute(r HasManyApiGETShipmentIdTagsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderSubscriptionIdOrders") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShipmentIdTags") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/orders" - localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + localVarPath := localBasePath + "/shipments/{shipmentId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9775,48 +26243,48 @@ func (a *HasManyApiService) GETOrderSubscriptionIdOrdersExecute(r HasManyApiGETO return localVarHTTPResponse, nil } -type HasManyApiGETOrderSubscriptionIdRecurringOrderCopiesRequest struct { - ctx context.Context - ApiService *HasManyApiService - orderSubscriptionId interface{} +type HasManyApiGETShipmentIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + shipmentId interface{} } -func (r HasManyApiGETOrderSubscriptionIdRecurringOrderCopiesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderSubscriptionIdRecurringOrderCopiesExecute(r) +func (r HasManyApiGETShipmentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdVersionsExecute(r) } /* -GETOrderSubscriptionIdRecurringOrderCopies Retrieve the recurring order copies associated to the order subscription +GETShipmentIdVersions Retrieve the versions associated to the shipment -Retrieve the recurring order copies associated to the order subscription +Retrieve the versions associated to the shipment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderSubscriptionId The resource's id - @return HasManyApiGETOrderSubscriptionIdRecurringOrderCopiesRequest + @param shipmentId The resource's id + @return HasManyApiGETShipmentIdVersionsRequest */ -func (a *HasManyApiService) GETOrderSubscriptionIdRecurringOrderCopies(ctx context.Context, orderSubscriptionId interface{}) HasManyApiGETOrderSubscriptionIdRecurringOrderCopiesRequest { - return HasManyApiGETOrderSubscriptionIdRecurringOrderCopiesRequest{ - ApiService: a, - ctx: ctx, - orderSubscriptionId: orderSubscriptionId, +func (a *HasManyApiService) GETShipmentIdVersions(ctx context.Context, shipmentId interface{}) HasManyApiGETShipmentIdVersionsRequest { + return HasManyApiGETShipmentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + shipmentId: shipmentId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderSubscriptionIdRecurringOrderCopiesExecute(r HasManyApiGETOrderSubscriptionIdRecurringOrderCopiesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShipmentIdVersionsExecute(r HasManyApiGETShipmentIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderSubscriptionIdRecurringOrderCopies") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShipmentIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/recurring_order_copies" - localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + localVarPath := localBasePath + "/shipments/{shipmentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9867,48 +26335,48 @@ func (a *HasManyApiService) GETOrderSubscriptionIdRecurringOrderCopiesExecute(r return localVarHTTPResponse, nil } -type HasManyApiGETOrderValidationRuleIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - orderValidationRuleId interface{} +type HasManyApiGETShippingCategoryIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + shippingCategoryId interface{} } -func (r HasManyApiGETOrderValidationRuleIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderValidationRuleIdAttachmentsExecute(r) +func (r HasManyApiGETShippingCategoryIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingCategoryIdAttachmentsExecute(r) } /* -GETOrderValidationRuleIdAttachments Retrieve the attachments associated to the order validation rule +GETShippingCategoryIdAttachments Retrieve the attachments associated to the shipping category -Retrieve the attachments associated to the order validation rule +Retrieve the attachments associated to the shipping category @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderValidationRuleId The resource's id - @return HasManyApiGETOrderValidationRuleIdAttachmentsRequest + @param shippingCategoryId The resource's id + @return HasManyApiGETShippingCategoryIdAttachmentsRequest */ -func (a *HasManyApiService) GETOrderValidationRuleIdAttachments(ctx context.Context, orderValidationRuleId interface{}) HasManyApiGETOrderValidationRuleIdAttachmentsRequest { - return HasManyApiGETOrderValidationRuleIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - orderValidationRuleId: orderValidationRuleId, +func (a *HasManyApiService) GETShippingCategoryIdAttachments(ctx context.Context, shippingCategoryId interface{}) HasManyApiGETShippingCategoryIdAttachmentsRequest { + return HasManyApiGETShippingCategoryIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + shippingCategoryId: shippingCategoryId, } } // Execute executes the request -func (a *HasManyApiService) GETOrderValidationRuleIdAttachmentsExecute(r HasManyApiGETOrderValidationRuleIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShippingCategoryIdAttachmentsExecute(r HasManyApiGETShippingCategoryIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETOrderValidationRuleIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingCategoryIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_validation_rules/{orderValidationRuleId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"orderValidationRuleId"+"}", url.PathEscape(parameterValueToString(r.orderValidationRuleId, "orderValidationRuleId")), -1) + localVarPath := localBasePath + "/shipping_categories/{shippingCategoryId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"shippingCategoryId"+"}", url.PathEscape(parameterValueToString(r.shippingCategoryId, "shippingCategoryId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9959,48 +26427,48 @@ func (a *HasManyApiService) GETOrderValidationRuleIdAttachmentsExecute(r HasMany return localVarHTTPResponse, nil } -type HasManyApiGETPackageIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - packageId interface{} +type HasManyApiGETShippingCategoryIdSkusRequest struct { + ctx context.Context + ApiService *HasManyApiService + shippingCategoryId interface{} } -func (r HasManyApiGETPackageIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPackageIdAttachmentsExecute(r) +func (r HasManyApiGETShippingCategoryIdSkusRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingCategoryIdSkusExecute(r) } /* -GETPackageIdAttachments Retrieve the attachments associated to the package +GETShippingCategoryIdSkus Retrieve the skus associated to the shipping category -Retrieve the attachments associated to the package +Retrieve the skus associated to the shipping category @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param packageId The resource's id - @return HasManyApiGETPackageIdAttachmentsRequest + @param shippingCategoryId The resource's id + @return HasManyApiGETShippingCategoryIdSkusRequest */ -func (a *HasManyApiService) GETPackageIdAttachments(ctx context.Context, packageId interface{}) HasManyApiGETPackageIdAttachmentsRequest { - return HasManyApiGETPackageIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - packageId: packageId, +func (a *HasManyApiService) GETShippingCategoryIdSkus(ctx context.Context, shippingCategoryId interface{}) HasManyApiGETShippingCategoryIdSkusRequest { + return HasManyApiGETShippingCategoryIdSkusRequest{ + ApiService: a, + ctx: ctx, + shippingCategoryId: shippingCategoryId, } } // Execute executes the request -func (a *HasManyApiService) GETPackageIdAttachmentsExecute(r HasManyApiGETPackageIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShippingCategoryIdSkusExecute(r HasManyApiGETShippingCategoryIdSkusRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPackageIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingCategoryIdSkus") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/packages/{packageId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"packageId"+"}", url.PathEscape(parameterValueToString(r.packageId, "packageId")), -1) + localVarPath := localBasePath + "/shipping_categories/{shippingCategoryId}/skus" + localVarPath = strings.Replace(localVarPath, "{"+"shippingCategoryId"+"}", url.PathEscape(parameterValueToString(r.shippingCategoryId, "shippingCategoryId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10051,48 +26519,48 @@ func (a *HasManyApiService) GETPackageIdAttachmentsExecute(r HasManyApiGETPackag return localVarHTTPResponse, nil } -type HasManyApiGETPackageIdParcelsRequest struct { - ctx context.Context - ApiService *HasManyApiService - packageId interface{} +type HasManyApiGETShippingCategoryIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + shippingCategoryId interface{} } -func (r HasManyApiGETPackageIdParcelsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPackageIdParcelsExecute(r) +func (r HasManyApiGETShippingCategoryIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingCategoryIdVersionsExecute(r) } /* -GETPackageIdParcels Retrieve the parcels associated to the package +GETShippingCategoryIdVersions Retrieve the versions associated to the shipping category -Retrieve the parcels associated to the package +Retrieve the versions associated to the shipping category @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param packageId The resource's id - @return HasManyApiGETPackageIdParcelsRequest + @param shippingCategoryId The resource's id + @return HasManyApiGETShippingCategoryIdVersionsRequest */ -func (a *HasManyApiService) GETPackageIdParcels(ctx context.Context, packageId interface{}) HasManyApiGETPackageIdParcelsRequest { - return HasManyApiGETPackageIdParcelsRequest{ - ApiService: a, - ctx: ctx, - packageId: packageId, +func (a *HasManyApiService) GETShippingCategoryIdVersions(ctx context.Context, shippingCategoryId interface{}) HasManyApiGETShippingCategoryIdVersionsRequest { + return HasManyApiGETShippingCategoryIdVersionsRequest{ + ApiService: a, + ctx: ctx, + shippingCategoryId: shippingCategoryId, } } // Execute executes the request -func (a *HasManyApiService) GETPackageIdParcelsExecute(r HasManyApiGETPackageIdParcelsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShippingCategoryIdVersionsExecute(r HasManyApiGETShippingCategoryIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPackageIdParcels") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingCategoryIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/packages/{packageId}/parcels" - localVarPath = strings.Replace(localVarPath, "{"+"packageId"+"}", url.PathEscape(parameterValueToString(r.packageId, "packageId")), -1) + localVarPath := localBasePath + "/shipping_categories/{shippingCategoryId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"shippingCategoryId"+"}", url.PathEscape(parameterValueToString(r.shippingCategoryId, "shippingCategoryId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10143,48 +26611,48 @@ func (a *HasManyApiService) GETPackageIdParcelsExecute(r HasManyApiGETPackageIdP return localVarHTTPResponse, nil } -type HasManyApiGETParcelIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - parcelId interface{} +type HasManyApiGETShippingMethodIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + shippingMethodId interface{} } -func (r HasManyApiGETParcelIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETParcelIdAttachmentsExecute(r) +func (r HasManyApiGETShippingMethodIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingMethodIdAttachmentsExecute(r) } /* -GETParcelIdAttachments Retrieve the attachments associated to the parcel +GETShippingMethodIdAttachments Retrieve the attachments associated to the shipping method -Retrieve the attachments associated to the parcel +Retrieve the attachments associated to the shipping method @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param parcelId The resource's id - @return HasManyApiGETParcelIdAttachmentsRequest + @param shippingMethodId The resource's id + @return HasManyApiGETShippingMethodIdAttachmentsRequest */ -func (a *HasManyApiService) GETParcelIdAttachments(ctx context.Context, parcelId interface{}) HasManyApiGETParcelIdAttachmentsRequest { - return HasManyApiGETParcelIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - parcelId: parcelId, +func (a *HasManyApiService) GETShippingMethodIdAttachments(ctx context.Context, shippingMethodId interface{}) HasManyApiGETShippingMethodIdAttachmentsRequest { + return HasManyApiGETShippingMethodIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + shippingMethodId: shippingMethodId, } } // Execute executes the request -func (a *HasManyApiService) GETParcelIdAttachmentsExecute(r HasManyApiGETParcelIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShippingMethodIdAttachmentsExecute(r HasManyApiGETShippingMethodIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETParcelIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingMethodIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/parcels/{parcelId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"parcelId"+"}", url.PathEscape(parameterValueToString(r.parcelId, "parcelId")), -1) + localVarPath := localBasePath + "/shipping_methods/{shippingMethodId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodId, "shippingMethodId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10235,48 +26703,48 @@ func (a *HasManyApiService) GETParcelIdAttachmentsExecute(r HasManyApiGETParcelI return localVarHTTPResponse, nil } -type HasManyApiGETParcelIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - parcelId interface{} +type HasManyApiGETShippingMethodIdShippingMethodTiersRequest struct { + ctx context.Context + ApiService *HasManyApiService + shippingMethodId interface{} } -func (r HasManyApiGETParcelIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETParcelIdEventsExecute(r) +func (r HasManyApiGETShippingMethodIdShippingMethodTiersRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingMethodIdShippingMethodTiersExecute(r) } /* -GETParcelIdEvents Retrieve the events associated to the parcel +GETShippingMethodIdShippingMethodTiers Retrieve the shipping method tiers associated to the shipping method -Retrieve the events associated to the parcel +Retrieve the shipping method tiers associated to the shipping method @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param parcelId The resource's id - @return HasManyApiGETParcelIdEventsRequest + @param shippingMethodId The resource's id + @return HasManyApiGETShippingMethodIdShippingMethodTiersRequest */ -func (a *HasManyApiService) GETParcelIdEvents(ctx context.Context, parcelId interface{}) HasManyApiGETParcelIdEventsRequest { - return HasManyApiGETParcelIdEventsRequest{ - ApiService: a, - ctx: ctx, - parcelId: parcelId, +func (a *HasManyApiService) GETShippingMethodIdShippingMethodTiers(ctx context.Context, shippingMethodId interface{}) HasManyApiGETShippingMethodIdShippingMethodTiersRequest { + return HasManyApiGETShippingMethodIdShippingMethodTiersRequest{ + ApiService: a, + ctx: ctx, + shippingMethodId: shippingMethodId, } } // Execute executes the request -func (a *HasManyApiService) GETParcelIdEventsExecute(r HasManyApiGETParcelIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShippingMethodIdShippingMethodTiersExecute(r HasManyApiGETShippingMethodIdShippingMethodTiersRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETParcelIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingMethodIdShippingMethodTiers") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/parcels/{parcelId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"parcelId"+"}", url.PathEscape(parameterValueToString(r.parcelId, "parcelId")), -1) + localVarPath := localBasePath + "/shipping_methods/{shippingMethodId}/shipping_method_tiers" + localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodId, "shippingMethodId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10327,48 +26795,48 @@ func (a *HasManyApiService) GETParcelIdEventsExecute(r HasManyApiGETParcelIdEven return localVarHTTPResponse, nil } -type HasManyApiGETParcelIdParcelLineItemsRequest struct { - ctx context.Context - ApiService *HasManyApiService - parcelId interface{} +type HasManyApiGETShippingMethodIdShippingWeightTiersRequest struct { + ctx context.Context + ApiService *HasManyApiService + shippingMethodId interface{} } -func (r HasManyApiGETParcelIdParcelLineItemsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETParcelIdParcelLineItemsExecute(r) +func (r HasManyApiGETShippingMethodIdShippingWeightTiersRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingMethodIdShippingWeightTiersExecute(r) } /* -GETParcelIdParcelLineItems Retrieve the parcel line items associated to the parcel +GETShippingMethodIdShippingWeightTiers Retrieve the shipping weight tiers associated to the shipping method -Retrieve the parcel line items associated to the parcel +Retrieve the shipping weight tiers associated to the shipping method @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param parcelId The resource's id - @return HasManyApiGETParcelIdParcelLineItemsRequest + @param shippingMethodId The resource's id + @return HasManyApiGETShippingMethodIdShippingWeightTiersRequest */ -func (a *HasManyApiService) GETParcelIdParcelLineItems(ctx context.Context, parcelId interface{}) HasManyApiGETParcelIdParcelLineItemsRequest { - return HasManyApiGETParcelIdParcelLineItemsRequest{ - ApiService: a, - ctx: ctx, - parcelId: parcelId, +func (a *HasManyApiService) GETShippingMethodIdShippingWeightTiers(ctx context.Context, shippingMethodId interface{}) HasManyApiGETShippingMethodIdShippingWeightTiersRequest { + return HasManyApiGETShippingMethodIdShippingWeightTiersRequest{ + ApiService: a, + ctx: ctx, + shippingMethodId: shippingMethodId, } } // Execute executes the request -func (a *HasManyApiService) GETParcelIdParcelLineItemsExecute(r HasManyApiGETParcelIdParcelLineItemsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShippingMethodIdShippingWeightTiersExecute(r HasManyApiGETShippingMethodIdShippingWeightTiersRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETParcelIdParcelLineItems") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingMethodIdShippingWeightTiers") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/parcels/{parcelId}/parcel_line_items" - localVarPath = strings.Replace(localVarPath, "{"+"parcelId"+"}", url.PathEscape(parameterValueToString(r.parcelId, "parcelId")), -1) + localVarPath := localBasePath + "/shipping_methods/{shippingMethodId}/shipping_weight_tiers" + localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodId, "shippingMethodId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10419,48 +26887,48 @@ func (a *HasManyApiService) GETParcelIdParcelLineItemsExecute(r HasManyApiGETPar return localVarHTTPResponse, nil } -type HasManyApiGETPaymentGatewayIdPaymentMethodsRequest struct { +type HasManyApiGETShippingMethodIdVersionsRequest struct { ctx context.Context ApiService *HasManyApiService - paymentGatewayId interface{} + shippingMethodId interface{} } -func (r HasManyApiGETPaymentGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPaymentGatewayIdPaymentMethodsExecute(r) +func (r HasManyApiGETShippingMethodIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingMethodIdVersionsExecute(r) } /* -GETPaymentGatewayIdPaymentMethods Retrieve the payment methods associated to the payment gateway +GETShippingMethodIdVersions Retrieve the versions associated to the shipping method -Retrieve the payment methods associated to the payment gateway +Retrieve the versions associated to the shipping method @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param paymentGatewayId The resource's id - @return HasManyApiGETPaymentGatewayIdPaymentMethodsRequest + @param shippingMethodId The resource's id + @return HasManyApiGETShippingMethodIdVersionsRequest */ -func (a *HasManyApiService) GETPaymentGatewayIdPaymentMethods(ctx context.Context, paymentGatewayId interface{}) HasManyApiGETPaymentGatewayIdPaymentMethodsRequest { - return HasManyApiGETPaymentGatewayIdPaymentMethodsRequest{ +func (a *HasManyApiService) GETShippingMethodIdVersions(ctx context.Context, shippingMethodId interface{}) HasManyApiGETShippingMethodIdVersionsRequest { + return HasManyApiGETShippingMethodIdVersionsRequest{ ApiService: a, ctx: ctx, - paymentGatewayId: paymentGatewayId, + shippingMethodId: shippingMethodId, } } // Execute executes the request -func (a *HasManyApiService) GETPaymentGatewayIdPaymentMethodsExecute(r HasManyApiGETPaymentGatewayIdPaymentMethodsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShippingMethodIdVersionsExecute(r HasManyApiGETShippingMethodIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPaymentGatewayIdPaymentMethods") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingMethodIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/payment_gateways/{paymentGatewayId}/payment_methods" - localVarPath = strings.Replace(localVarPath, "{"+"paymentGatewayId"+"}", url.PathEscape(parameterValueToString(r.paymentGatewayId, "paymentGatewayId")), -1) + localVarPath := localBasePath + "/shipping_methods/{shippingMethodId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodId, "shippingMethodId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10511,48 +26979,48 @@ func (a *HasManyApiService) GETPaymentGatewayIdPaymentMethodsExecute(r HasManyAp return localVarHTTPResponse, nil } -type HasManyApiGETPaymentMethodIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - paymentMethodId interface{} +type HasManyApiGETShippingMethodTierIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + shippingMethodTierId interface{} } -func (r HasManyApiGETPaymentMethodIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPaymentMethodIdAttachmentsExecute(r) +func (r HasManyApiGETShippingMethodTierIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingMethodTierIdAttachmentsExecute(r) } /* -GETPaymentMethodIdAttachments Retrieve the attachments associated to the payment method +GETShippingMethodTierIdAttachments Retrieve the attachments associated to the shipping method tier -Retrieve the attachments associated to the payment method +Retrieve the attachments associated to the shipping method tier @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param paymentMethodId The resource's id - @return HasManyApiGETPaymentMethodIdAttachmentsRequest + @param shippingMethodTierId The resource's id + @return HasManyApiGETShippingMethodTierIdAttachmentsRequest */ -func (a *HasManyApiService) GETPaymentMethodIdAttachments(ctx context.Context, paymentMethodId interface{}) HasManyApiGETPaymentMethodIdAttachmentsRequest { - return HasManyApiGETPaymentMethodIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - paymentMethodId: paymentMethodId, +func (a *HasManyApiService) GETShippingMethodTierIdAttachments(ctx context.Context, shippingMethodTierId interface{}) HasManyApiGETShippingMethodTierIdAttachmentsRequest { + return HasManyApiGETShippingMethodTierIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + shippingMethodTierId: shippingMethodTierId, } } // Execute executes the request -func (a *HasManyApiService) GETPaymentMethodIdAttachmentsExecute(r HasManyApiGETPaymentMethodIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShippingMethodTierIdAttachmentsExecute(r HasManyApiGETShippingMethodTierIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPaymentMethodIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingMethodTierIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/payment_methods/{paymentMethodId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"paymentMethodId"+"}", url.PathEscape(parameterValueToString(r.paymentMethodId, "paymentMethodId")), -1) + localVarPath := localBasePath + "/shipping_method_tiers/{shippingMethodTierId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodTierId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodTierId, "shippingMethodTierId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10603,48 +27071,48 @@ func (a *HasManyApiService) GETPaymentMethodIdAttachmentsExecute(r HasManyApiGET return localVarHTTPResponse, nil } -type HasManyApiGETPaypalGatewayIdPaymentMethodsRequest struct { - ctx context.Context - ApiService *HasManyApiService - paypalGatewayId interface{} +type HasManyApiGETShippingMethodTierIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + shippingMethodTierId interface{} } -func (r HasManyApiGETPaypalGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPaypalGatewayIdPaymentMethodsExecute(r) +func (r HasManyApiGETShippingMethodTierIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingMethodTierIdVersionsExecute(r) } /* -GETPaypalGatewayIdPaymentMethods Retrieve the payment methods associated to the paypal gateway +GETShippingMethodTierIdVersions Retrieve the versions associated to the shipping method tier -Retrieve the payment methods associated to the paypal gateway +Retrieve the versions associated to the shipping method tier @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param paypalGatewayId The resource's id - @return HasManyApiGETPaypalGatewayIdPaymentMethodsRequest + @param shippingMethodTierId The resource's id + @return HasManyApiGETShippingMethodTierIdVersionsRequest */ -func (a *HasManyApiService) GETPaypalGatewayIdPaymentMethods(ctx context.Context, paypalGatewayId interface{}) HasManyApiGETPaypalGatewayIdPaymentMethodsRequest { - return HasManyApiGETPaypalGatewayIdPaymentMethodsRequest{ - ApiService: a, - ctx: ctx, - paypalGatewayId: paypalGatewayId, +func (a *HasManyApiService) GETShippingMethodTierIdVersions(ctx context.Context, shippingMethodTierId interface{}) HasManyApiGETShippingMethodTierIdVersionsRequest { + return HasManyApiGETShippingMethodTierIdVersionsRequest{ + ApiService: a, + ctx: ctx, + shippingMethodTierId: shippingMethodTierId, } } // Execute executes the request -func (a *HasManyApiService) GETPaypalGatewayIdPaymentMethodsExecute(r HasManyApiGETPaypalGatewayIdPaymentMethodsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShippingMethodTierIdVersionsExecute(r HasManyApiGETShippingMethodTierIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPaypalGatewayIdPaymentMethods") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingMethodTierIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/paypal_gateways/{paypalGatewayId}/payment_methods" - localVarPath = strings.Replace(localVarPath, "{"+"paypalGatewayId"+"}", url.PathEscape(parameterValueToString(r.paypalGatewayId, "paypalGatewayId")), -1) + localVarPath := localBasePath + "/shipping_method_tiers/{shippingMethodTierId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodTierId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodTierId, "shippingMethodTierId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10695,48 +27163,48 @@ func (a *HasManyApiService) GETPaypalGatewayIdPaymentMethodsExecute(r HasManyApi return localVarHTTPResponse, nil } -type HasManyApiGETPaypalGatewayIdPaypalPaymentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - paypalGatewayId interface{} +type HasManyApiGETShippingWeightTierIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + shippingWeightTierId interface{} } -func (r HasManyApiGETPaypalGatewayIdPaypalPaymentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPaypalGatewayIdPaypalPaymentsExecute(r) +func (r HasManyApiGETShippingWeightTierIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingWeightTierIdAttachmentsExecute(r) } /* -GETPaypalGatewayIdPaypalPayments Retrieve the paypal payments associated to the paypal gateway +GETShippingWeightTierIdAttachments Retrieve the attachments associated to the shipping weight tier -Retrieve the paypal payments associated to the paypal gateway +Retrieve the attachments associated to the shipping weight tier @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param paypalGatewayId The resource's id - @return HasManyApiGETPaypalGatewayIdPaypalPaymentsRequest + @param shippingWeightTierId The resource's id + @return HasManyApiGETShippingWeightTierIdAttachmentsRequest */ -func (a *HasManyApiService) GETPaypalGatewayIdPaypalPayments(ctx context.Context, paypalGatewayId interface{}) HasManyApiGETPaypalGatewayIdPaypalPaymentsRequest { - return HasManyApiGETPaypalGatewayIdPaypalPaymentsRequest{ - ApiService: a, - ctx: ctx, - paypalGatewayId: paypalGatewayId, +func (a *HasManyApiService) GETShippingWeightTierIdAttachments(ctx context.Context, shippingWeightTierId interface{}) HasManyApiGETShippingWeightTierIdAttachmentsRequest { + return HasManyApiGETShippingWeightTierIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + shippingWeightTierId: shippingWeightTierId, } } // Execute executes the request -func (a *HasManyApiService) GETPaypalGatewayIdPaypalPaymentsExecute(r HasManyApiGETPaypalGatewayIdPaypalPaymentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShippingWeightTierIdAttachmentsExecute(r HasManyApiGETShippingWeightTierIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPaypalGatewayIdPaypalPayments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingWeightTierIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/paypal_gateways/{paypalGatewayId}/paypal_payments" - localVarPath = strings.Replace(localVarPath, "{"+"paypalGatewayId"+"}", url.PathEscape(parameterValueToString(r.paypalGatewayId, "paypalGatewayId")), -1) + localVarPath := localBasePath + "/shipping_weight_tiers/{shippingWeightTierId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"shippingWeightTierId"+"}", url.PathEscape(parameterValueToString(r.shippingWeightTierId, "shippingWeightTierId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10787,48 +27255,48 @@ func (a *HasManyApiService) GETPaypalGatewayIdPaypalPaymentsExecute(r HasManyApi return localVarHTTPResponse, nil } -type HasManyApiGETPercentageDiscountPromotionIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - percentageDiscountPromotionId interface{} +type HasManyApiGETShippingWeightTierIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + shippingWeightTierId interface{} } -func (r HasManyApiGETPercentageDiscountPromotionIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPercentageDiscountPromotionIdAttachmentsExecute(r) +func (r HasManyApiGETShippingWeightTierIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingWeightTierIdVersionsExecute(r) } /* -GETPercentageDiscountPromotionIdAttachments Retrieve the attachments associated to the percentage discount promotion +GETShippingWeightTierIdVersions Retrieve the versions associated to the shipping weight tier -Retrieve the attachments associated to the percentage discount promotion +Retrieve the versions associated to the shipping weight tier @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param percentageDiscountPromotionId The resource's id - @return HasManyApiGETPercentageDiscountPromotionIdAttachmentsRequest + @param shippingWeightTierId The resource's id + @return HasManyApiGETShippingWeightTierIdVersionsRequest */ -func (a *HasManyApiService) GETPercentageDiscountPromotionIdAttachments(ctx context.Context, percentageDiscountPromotionId interface{}) HasManyApiGETPercentageDiscountPromotionIdAttachmentsRequest { - return HasManyApiGETPercentageDiscountPromotionIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - percentageDiscountPromotionId: percentageDiscountPromotionId, +func (a *HasManyApiService) GETShippingWeightTierIdVersions(ctx context.Context, shippingWeightTierId interface{}) HasManyApiGETShippingWeightTierIdVersionsRequest { + return HasManyApiGETShippingWeightTierIdVersionsRequest{ + ApiService: a, + ctx: ctx, + shippingWeightTierId: shippingWeightTierId, } } // Execute executes the request -func (a *HasManyApiService) GETPercentageDiscountPromotionIdAttachmentsExecute(r HasManyApiGETPercentageDiscountPromotionIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShippingWeightTierIdVersionsExecute(r HasManyApiGETShippingWeightTierIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPercentageDiscountPromotionIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingWeightTierIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + localVarPath := localBasePath + "/shipping_weight_tiers/{shippingWeightTierId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"shippingWeightTierId"+"}", url.PathEscape(parameterValueToString(r.shippingWeightTierId, "shippingWeightTierId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10879,48 +27347,48 @@ func (a *HasManyApiService) GETPercentageDiscountPromotionIdAttachmentsExecute(r return localVarHTTPResponse, nil } -type HasManyApiGETPercentageDiscountPromotionIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - percentageDiscountPromotionId interface{} +type HasManyApiGETShippingZoneIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + shippingZoneId interface{} } -func (r HasManyApiGETPercentageDiscountPromotionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPercentageDiscountPromotionIdEventsExecute(r) +func (r HasManyApiGETShippingZoneIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingZoneIdAttachmentsExecute(r) } /* -GETPercentageDiscountPromotionIdEvents Retrieve the events associated to the percentage discount promotion +GETShippingZoneIdAttachments Retrieve the attachments associated to the shipping zone -Retrieve the events associated to the percentage discount promotion +Retrieve the attachments associated to the shipping zone @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param percentageDiscountPromotionId The resource's id - @return HasManyApiGETPercentageDiscountPromotionIdEventsRequest + @param shippingZoneId The resource's id + @return HasManyApiGETShippingZoneIdAttachmentsRequest */ -func (a *HasManyApiService) GETPercentageDiscountPromotionIdEvents(ctx context.Context, percentageDiscountPromotionId interface{}) HasManyApiGETPercentageDiscountPromotionIdEventsRequest { - return HasManyApiGETPercentageDiscountPromotionIdEventsRequest{ - ApiService: a, - ctx: ctx, - percentageDiscountPromotionId: percentageDiscountPromotionId, +func (a *HasManyApiService) GETShippingZoneIdAttachments(ctx context.Context, shippingZoneId interface{}) HasManyApiGETShippingZoneIdAttachmentsRequest { + return HasManyApiGETShippingZoneIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + shippingZoneId: shippingZoneId, } } // Execute executes the request -func (a *HasManyApiService) GETPercentageDiscountPromotionIdEventsExecute(r HasManyApiGETPercentageDiscountPromotionIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShippingZoneIdAttachmentsExecute(r HasManyApiGETShippingZoneIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPercentageDiscountPromotionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingZoneIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + localVarPath := localBasePath + "/shipping_zones/{shippingZoneId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"shippingZoneId"+"}", url.PathEscape(parameterValueToString(r.shippingZoneId, "shippingZoneId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10971,48 +27439,48 @@ func (a *HasManyApiService) GETPercentageDiscountPromotionIdEventsExecute(r HasM return localVarHTTPResponse, nil } -type HasManyApiGETPercentageDiscountPromotionIdSkusRequest struct { - ctx context.Context - ApiService *HasManyApiService - percentageDiscountPromotionId interface{} +type HasManyApiGETShippingZoneIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + shippingZoneId interface{} } -func (r HasManyApiGETPercentageDiscountPromotionIdSkusRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPercentageDiscountPromotionIdSkusExecute(r) +func (r HasManyApiGETShippingZoneIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingZoneIdVersionsExecute(r) } /* -GETPercentageDiscountPromotionIdSkus Retrieve the skus associated to the percentage discount promotion +GETShippingZoneIdVersions Retrieve the versions associated to the shipping zone -Retrieve the skus associated to the percentage discount promotion +Retrieve the versions associated to the shipping zone @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param percentageDiscountPromotionId The resource's id - @return HasManyApiGETPercentageDiscountPromotionIdSkusRequest + @param shippingZoneId The resource's id + @return HasManyApiGETShippingZoneIdVersionsRequest */ -func (a *HasManyApiService) GETPercentageDiscountPromotionIdSkus(ctx context.Context, percentageDiscountPromotionId interface{}) HasManyApiGETPercentageDiscountPromotionIdSkusRequest { - return HasManyApiGETPercentageDiscountPromotionIdSkusRequest{ - ApiService: a, - ctx: ctx, - percentageDiscountPromotionId: percentageDiscountPromotionId, +func (a *HasManyApiService) GETShippingZoneIdVersions(ctx context.Context, shippingZoneId interface{}) HasManyApiGETShippingZoneIdVersionsRequest { + return HasManyApiGETShippingZoneIdVersionsRequest{ + ApiService: a, + ctx: ctx, + shippingZoneId: shippingZoneId, } } // Execute executes the request -func (a *HasManyApiService) GETPercentageDiscountPromotionIdSkusExecute(r HasManyApiGETPercentageDiscountPromotionIdSkusRequest) (*http.Response, error) { +func (a *HasManyApiService) GETShippingZoneIdVersionsExecute(r HasManyApiGETShippingZoneIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPercentageDiscountPromotionIdSkus") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingZoneIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/skus" - localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + localVarPath := localBasePath + "/shipping_zones/{shippingZoneId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"shippingZoneId"+"}", url.PathEscape(parameterValueToString(r.shippingZoneId, "shippingZoneId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11063,48 +27531,48 @@ func (a *HasManyApiService) GETPercentageDiscountPromotionIdSkusExecute(r HasMan return localVarHTTPResponse, nil } -type HasManyApiGETPriceFrequencyTierIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - priceFrequencyTierId interface{} +type HasManyApiGETSkuIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + skuId interface{} } -func (r HasManyApiGETPriceFrequencyTierIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPriceFrequencyTierIdAttachmentsExecute(r) +func (r HasManyApiGETSkuIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdAttachmentsExecute(r) } /* -GETPriceFrequencyTierIdAttachments Retrieve the attachments associated to the price frequency tier +GETSkuIdAttachments Retrieve the attachments associated to the SKU -Retrieve the attachments associated to the price frequency tier +Retrieve the attachments associated to the SKU @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param priceFrequencyTierId The resource's id - @return HasManyApiGETPriceFrequencyTierIdAttachmentsRequest + @param skuId The resource's id + @return HasManyApiGETSkuIdAttachmentsRequest */ -func (a *HasManyApiService) GETPriceFrequencyTierIdAttachments(ctx context.Context, priceFrequencyTierId interface{}) HasManyApiGETPriceFrequencyTierIdAttachmentsRequest { - return HasManyApiGETPriceFrequencyTierIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - priceFrequencyTierId: priceFrequencyTierId, +func (a *HasManyApiService) GETSkuIdAttachments(ctx context.Context, skuId interface{}) HasManyApiGETSkuIdAttachmentsRequest { + return HasManyApiGETSkuIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, } } // Execute executes the request -func (a *HasManyApiService) GETPriceFrequencyTierIdAttachmentsExecute(r HasManyApiGETPriceFrequencyTierIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuIdAttachmentsExecute(r HasManyApiGETSkuIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceFrequencyTierIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/price_frequency_tiers/{priceFrequencyTierId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"priceFrequencyTierId"+"}", url.PathEscape(parameterValueToString(r.priceFrequencyTierId, "priceFrequencyTierId")), -1) + localVarPath := localBasePath + "/skus/{skuId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11155,48 +27623,48 @@ func (a *HasManyApiService) GETPriceFrequencyTierIdAttachmentsExecute(r HasManyA return localVarHTTPResponse, nil } -type HasManyApiGETPriceFrequencyTierIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - priceFrequencyTierId interface{} +type HasManyApiGETSkuIdDeliveryLeadTimesRequest struct { + ctx context.Context + ApiService *HasManyApiService + skuId interface{} } -func (r HasManyApiGETPriceFrequencyTierIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPriceFrequencyTierIdEventsExecute(r) +func (r HasManyApiGETSkuIdDeliveryLeadTimesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdDeliveryLeadTimesExecute(r) } /* -GETPriceFrequencyTierIdEvents Retrieve the events associated to the price frequency tier +GETSkuIdDeliveryLeadTimes Retrieve the delivery lead times associated to the SKU -Retrieve the events associated to the price frequency tier +Retrieve the delivery lead times associated to the SKU @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param priceFrequencyTierId The resource's id - @return HasManyApiGETPriceFrequencyTierIdEventsRequest + @param skuId The resource's id + @return HasManyApiGETSkuIdDeliveryLeadTimesRequest */ -func (a *HasManyApiService) GETPriceFrequencyTierIdEvents(ctx context.Context, priceFrequencyTierId interface{}) HasManyApiGETPriceFrequencyTierIdEventsRequest { - return HasManyApiGETPriceFrequencyTierIdEventsRequest{ - ApiService: a, - ctx: ctx, - priceFrequencyTierId: priceFrequencyTierId, +func (a *HasManyApiService) GETSkuIdDeliveryLeadTimes(ctx context.Context, skuId interface{}) HasManyApiGETSkuIdDeliveryLeadTimesRequest { + return HasManyApiGETSkuIdDeliveryLeadTimesRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, } } // Execute executes the request -func (a *HasManyApiService) GETPriceFrequencyTierIdEventsExecute(r HasManyApiGETPriceFrequencyTierIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuIdDeliveryLeadTimesExecute(r HasManyApiGETSkuIdDeliveryLeadTimesRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceFrequencyTierIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuIdDeliveryLeadTimes") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/price_frequency_tiers/{priceFrequencyTierId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"priceFrequencyTierId"+"}", url.PathEscape(parameterValueToString(r.priceFrequencyTierId, "priceFrequencyTierId")), -1) + localVarPath := localBasePath + "/skus/{skuId}/delivery_lead_times" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11247,48 +27715,48 @@ func (a *HasManyApiService) GETPriceFrequencyTierIdEventsExecute(r HasManyApiGET return localVarHTTPResponse, nil } -type HasManyApiGETPriceIdAttachmentsRequest struct { +type HasManyApiGETSkuIdEventsRequest struct { ctx context.Context ApiService *HasManyApiService - priceId interface{} + skuId interface{} } -func (r HasManyApiGETPriceIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPriceIdAttachmentsExecute(r) +func (r HasManyApiGETSkuIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdEventsExecute(r) } /* -GETPriceIdAttachments Retrieve the attachments associated to the price +GETSkuIdEvents Retrieve the events associated to the SKU -Retrieve the attachments associated to the price +Retrieve the events associated to the SKU @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param priceId The resource's id - @return HasManyApiGETPriceIdAttachmentsRequest + @param skuId The resource's id + @return HasManyApiGETSkuIdEventsRequest */ -func (a *HasManyApiService) GETPriceIdAttachments(ctx context.Context, priceId interface{}) HasManyApiGETPriceIdAttachmentsRequest { - return HasManyApiGETPriceIdAttachmentsRequest{ +func (a *HasManyApiService) GETSkuIdEvents(ctx context.Context, skuId interface{}) HasManyApiGETSkuIdEventsRequest { + return HasManyApiGETSkuIdEventsRequest{ ApiService: a, ctx: ctx, - priceId: priceId, + skuId: skuId, } } // Execute executes the request -func (a *HasManyApiService) GETPriceIdAttachmentsExecute(r HasManyApiGETPriceIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuIdEventsExecute(r HasManyApiGETSkuIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/prices/{priceId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) + localVarPath := localBasePath + "/skus/{skuId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11339,48 +27807,48 @@ func (a *HasManyApiService) GETPriceIdAttachmentsExecute(r HasManyApiGETPriceIdA return localVarHTTPResponse, nil } -type HasManyApiGETPriceIdPriceFrequencyTiersRequest struct { +type HasManyApiGETSkuIdJwtMarketsRequest struct { ctx context.Context ApiService *HasManyApiService - priceId interface{} + skuId interface{} } -func (r HasManyApiGETPriceIdPriceFrequencyTiersRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPriceIdPriceFrequencyTiersExecute(r) +func (r HasManyApiGETSkuIdJwtMarketsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdJwtMarketsExecute(r) } /* -GETPriceIdPriceFrequencyTiers Retrieve the price frequency tiers associated to the price +GETSkuIdJwtMarkets Retrieve the jwt markets associated to the SKU -Retrieve the price frequency tiers associated to the price +Retrieve the jwt markets associated to the SKU @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param priceId The resource's id - @return HasManyApiGETPriceIdPriceFrequencyTiersRequest + @param skuId The resource's id + @return HasManyApiGETSkuIdJwtMarketsRequest */ -func (a *HasManyApiService) GETPriceIdPriceFrequencyTiers(ctx context.Context, priceId interface{}) HasManyApiGETPriceIdPriceFrequencyTiersRequest { - return HasManyApiGETPriceIdPriceFrequencyTiersRequest{ +func (a *HasManyApiService) GETSkuIdJwtMarkets(ctx context.Context, skuId interface{}) HasManyApiGETSkuIdJwtMarketsRequest { + return HasManyApiGETSkuIdJwtMarketsRequest{ ApiService: a, ctx: ctx, - priceId: priceId, + skuId: skuId, } } // Execute executes the request -func (a *HasManyApiService) GETPriceIdPriceFrequencyTiersExecute(r HasManyApiGETPriceIdPriceFrequencyTiersRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuIdJwtMarketsExecute(r HasManyApiGETSkuIdJwtMarketsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceIdPriceFrequencyTiers") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuIdJwtMarkets") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/prices/{priceId}/price_frequency_tiers" - localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) + localVarPath := localBasePath + "/skus/{skuId}/jwt_markets" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11431,48 +27899,48 @@ func (a *HasManyApiService) GETPriceIdPriceFrequencyTiersExecute(r HasManyApiGET return localVarHTTPResponse, nil } -type HasManyApiGETPriceIdPriceTiersRequest struct { +type HasManyApiGETSkuIdJwtStockLocationsRequest struct { ctx context.Context ApiService *HasManyApiService - priceId interface{} + skuId interface{} } -func (r HasManyApiGETPriceIdPriceTiersRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPriceIdPriceTiersExecute(r) +func (r HasManyApiGETSkuIdJwtStockLocationsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdJwtStockLocationsExecute(r) } /* -GETPriceIdPriceTiers Retrieve the price tiers associated to the price +GETSkuIdJwtStockLocations Retrieve the jwt stock locations associated to the SKU -Retrieve the price tiers associated to the price +Retrieve the jwt stock locations associated to the SKU @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param priceId The resource's id - @return HasManyApiGETPriceIdPriceTiersRequest + @param skuId The resource's id + @return HasManyApiGETSkuIdJwtStockLocationsRequest */ -func (a *HasManyApiService) GETPriceIdPriceTiers(ctx context.Context, priceId interface{}) HasManyApiGETPriceIdPriceTiersRequest { - return HasManyApiGETPriceIdPriceTiersRequest{ +func (a *HasManyApiService) GETSkuIdJwtStockLocations(ctx context.Context, skuId interface{}) HasManyApiGETSkuIdJwtStockLocationsRequest { + return HasManyApiGETSkuIdJwtStockLocationsRequest{ ApiService: a, ctx: ctx, - priceId: priceId, + skuId: skuId, } } // Execute executes the request -func (a *HasManyApiService) GETPriceIdPriceTiersExecute(r HasManyApiGETPriceIdPriceTiersRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuIdJwtStockLocationsExecute(r HasManyApiGETSkuIdJwtStockLocationsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceIdPriceTiers") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuIdJwtStockLocations") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/prices/{priceId}/price_tiers" - localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) + localVarPath := localBasePath + "/skus/{skuId}/jwt_stock_locations" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11523,48 +27991,48 @@ func (a *HasManyApiService) GETPriceIdPriceTiersExecute(r HasManyApiGETPriceIdPr return localVarHTTPResponse, nil } -type HasManyApiGETPriceIdPriceVolumeTiersRequest struct { +type HasManyApiGETSkuIdLinksRequest struct { ctx context.Context ApiService *HasManyApiService - priceId interface{} + skuId interface{} } -func (r HasManyApiGETPriceIdPriceVolumeTiersRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPriceIdPriceVolumeTiersExecute(r) +func (r HasManyApiGETSkuIdLinksRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdLinksExecute(r) } /* -GETPriceIdPriceVolumeTiers Retrieve the price volume tiers associated to the price +GETSkuIdLinks Retrieve the links associated to the SKU -Retrieve the price volume tiers associated to the price +Retrieve the links associated to the SKU @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param priceId The resource's id - @return HasManyApiGETPriceIdPriceVolumeTiersRequest + @param skuId The resource's id + @return HasManyApiGETSkuIdLinksRequest */ -func (a *HasManyApiService) GETPriceIdPriceVolumeTiers(ctx context.Context, priceId interface{}) HasManyApiGETPriceIdPriceVolumeTiersRequest { - return HasManyApiGETPriceIdPriceVolumeTiersRequest{ +func (a *HasManyApiService) GETSkuIdLinks(ctx context.Context, skuId interface{}) HasManyApiGETSkuIdLinksRequest { + return HasManyApiGETSkuIdLinksRequest{ ApiService: a, ctx: ctx, - priceId: priceId, + skuId: skuId, } } // Execute executes the request -func (a *HasManyApiService) GETPriceIdPriceVolumeTiersExecute(r HasManyApiGETPriceIdPriceVolumeTiersRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuIdLinksExecute(r HasManyApiGETSkuIdLinksRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceIdPriceVolumeTiers") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuIdLinks") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/prices/{priceId}/price_volume_tiers" - localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) + localVarPath := localBasePath + "/skus/{skuId}/links" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11615,48 +28083,48 @@ func (a *HasManyApiService) GETPriceIdPriceVolumeTiersExecute(r HasManyApiGETPri return localVarHTTPResponse, nil } -type HasManyApiGETPriceListIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - priceListId interface{} +type HasManyApiGETSkuIdPricesRequest struct { + ctx context.Context + ApiService *HasManyApiService + skuId interface{} } -func (r HasManyApiGETPriceListIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPriceListIdAttachmentsExecute(r) +func (r HasManyApiGETSkuIdPricesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdPricesExecute(r) } /* -GETPriceListIdAttachments Retrieve the attachments associated to the price list +GETSkuIdPrices Retrieve the prices associated to the SKU -Retrieve the attachments associated to the price list +Retrieve the prices associated to the SKU @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param priceListId The resource's id - @return HasManyApiGETPriceListIdAttachmentsRequest + @param skuId The resource's id + @return HasManyApiGETSkuIdPricesRequest */ -func (a *HasManyApiService) GETPriceListIdAttachments(ctx context.Context, priceListId interface{}) HasManyApiGETPriceListIdAttachmentsRequest { - return HasManyApiGETPriceListIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - priceListId: priceListId, +func (a *HasManyApiService) GETSkuIdPrices(ctx context.Context, skuId interface{}) HasManyApiGETSkuIdPricesRequest { + return HasManyApiGETSkuIdPricesRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, } } // Execute executes the request -func (a *HasManyApiService) GETPriceListIdAttachmentsExecute(r HasManyApiGETPriceListIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuIdPricesExecute(r HasManyApiGETSkuIdPricesRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceListIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuIdPrices") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/price_lists/{priceListId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"priceListId"+"}", url.PathEscape(parameterValueToString(r.priceListId, "priceListId")), -1) + localVarPath := localBasePath + "/skus/{skuId}/prices" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11707,48 +28175,48 @@ func (a *HasManyApiService) GETPriceListIdAttachmentsExecute(r HasManyApiGETPric return localVarHTTPResponse, nil } -type HasManyApiGETPriceListIdPricesRequest struct { - ctx context.Context - ApiService *HasManyApiService - priceListId interface{} +type HasManyApiGETSkuIdSkuListItemsRequest struct { + ctx context.Context + ApiService *HasManyApiService + skuId interface{} } -func (r HasManyApiGETPriceListIdPricesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPriceListIdPricesExecute(r) +func (r HasManyApiGETSkuIdSkuListItemsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdSkuListItemsExecute(r) } /* -GETPriceListIdPrices Retrieve the prices associated to the price list +GETSkuIdSkuListItems Retrieve the sku list items associated to the SKU -Retrieve the prices associated to the price list +Retrieve the sku list items associated to the SKU @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param priceListId The resource's id - @return HasManyApiGETPriceListIdPricesRequest + @param skuId The resource's id + @return HasManyApiGETSkuIdSkuListItemsRequest */ -func (a *HasManyApiService) GETPriceListIdPrices(ctx context.Context, priceListId interface{}) HasManyApiGETPriceListIdPricesRequest { - return HasManyApiGETPriceListIdPricesRequest{ - ApiService: a, - ctx: ctx, - priceListId: priceListId, +func (a *HasManyApiService) GETSkuIdSkuListItems(ctx context.Context, skuId interface{}) HasManyApiGETSkuIdSkuListItemsRequest { + return HasManyApiGETSkuIdSkuListItemsRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, } } // Execute executes the request -func (a *HasManyApiService) GETPriceListIdPricesExecute(r HasManyApiGETPriceListIdPricesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuIdSkuListItemsExecute(r HasManyApiGETSkuIdSkuListItemsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceListIdPrices") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuIdSkuListItems") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/price_lists/{priceListId}/prices" - localVarPath = strings.Replace(localVarPath, "{"+"priceListId"+"}", url.PathEscape(parameterValueToString(r.priceListId, "priceListId")), -1) + localVarPath := localBasePath + "/skus/{skuId}/sku_list_items" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11799,48 +28267,48 @@ func (a *HasManyApiService) GETPriceListIdPricesExecute(r HasManyApiGETPriceList return localVarHTTPResponse, nil } -type HasManyApiGETPriceTierIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - priceTierId interface{} +type HasManyApiGETSkuIdSkuListsRequest struct { + ctx context.Context + ApiService *HasManyApiService + skuId interface{} } -func (r HasManyApiGETPriceTierIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPriceTierIdAttachmentsExecute(r) +func (r HasManyApiGETSkuIdSkuListsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdSkuListsExecute(r) } /* -GETPriceTierIdAttachments Retrieve the attachments associated to the price tier +GETSkuIdSkuLists Retrieve the sku lists associated to the SKU -Retrieve the attachments associated to the price tier +Retrieve the sku lists associated to the SKU @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param priceTierId The resource's id - @return HasManyApiGETPriceTierIdAttachmentsRequest + @param skuId The resource's id + @return HasManyApiGETSkuIdSkuListsRequest */ -func (a *HasManyApiService) GETPriceTierIdAttachments(ctx context.Context, priceTierId interface{}) HasManyApiGETPriceTierIdAttachmentsRequest { - return HasManyApiGETPriceTierIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - priceTierId: priceTierId, +func (a *HasManyApiService) GETSkuIdSkuLists(ctx context.Context, skuId interface{}) HasManyApiGETSkuIdSkuListsRequest { + return HasManyApiGETSkuIdSkuListsRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, } } // Execute executes the request -func (a *HasManyApiService) GETPriceTierIdAttachmentsExecute(r HasManyApiGETPriceTierIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuIdSkuListsExecute(r HasManyApiGETSkuIdSkuListsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceTierIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuIdSkuLists") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/price_tiers/{priceTierId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"priceTierId"+"}", url.PathEscape(parameterValueToString(r.priceTierId, "priceTierId")), -1) + localVarPath := localBasePath + "/skus/{skuId}/sku_lists" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11891,48 +28359,48 @@ func (a *HasManyApiService) GETPriceTierIdAttachmentsExecute(r HasManyApiGETPric return localVarHTTPResponse, nil } -type HasManyApiGETPriceVolumeTierIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - priceVolumeTierId interface{} +type HasManyApiGETSkuIdSkuOptionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + skuId interface{} } -func (r HasManyApiGETPriceVolumeTierIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPriceVolumeTierIdAttachmentsExecute(r) +func (r HasManyApiGETSkuIdSkuOptionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdSkuOptionsExecute(r) } /* -GETPriceVolumeTierIdAttachments Retrieve the attachments associated to the price volume tier +GETSkuIdSkuOptions Retrieve the sku options associated to the SKU -Retrieve the attachments associated to the price volume tier +Retrieve the sku options associated to the SKU @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param priceVolumeTierId The resource's id - @return HasManyApiGETPriceVolumeTierIdAttachmentsRequest + @param skuId The resource's id + @return HasManyApiGETSkuIdSkuOptionsRequest */ -func (a *HasManyApiService) GETPriceVolumeTierIdAttachments(ctx context.Context, priceVolumeTierId interface{}) HasManyApiGETPriceVolumeTierIdAttachmentsRequest { - return HasManyApiGETPriceVolumeTierIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - priceVolumeTierId: priceVolumeTierId, +func (a *HasManyApiService) GETSkuIdSkuOptions(ctx context.Context, skuId interface{}) HasManyApiGETSkuIdSkuOptionsRequest { + return HasManyApiGETSkuIdSkuOptionsRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, } } // Execute executes the request -func (a *HasManyApiService) GETPriceVolumeTierIdAttachmentsExecute(r HasManyApiGETPriceVolumeTierIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuIdSkuOptionsExecute(r HasManyApiGETSkuIdSkuOptionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceVolumeTierIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuIdSkuOptions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/price_volume_tiers/{priceVolumeTierId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"priceVolumeTierId"+"}", url.PathEscape(parameterValueToString(r.priceVolumeTierId, "priceVolumeTierId")), -1) + localVarPath := localBasePath + "/skus/{skuId}/sku_options" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11983,48 +28451,48 @@ func (a *HasManyApiService) GETPriceVolumeTierIdAttachmentsExecute(r HasManyApiG return localVarHTTPResponse, nil } -type HasManyApiGETPriceVolumeTierIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - priceVolumeTierId interface{} +type HasManyApiGETSkuIdStockItemsRequest struct { + ctx context.Context + ApiService *HasManyApiService + skuId interface{} } -func (r HasManyApiGETPriceVolumeTierIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPriceVolumeTierIdEventsExecute(r) +func (r HasManyApiGETSkuIdStockItemsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdStockItemsExecute(r) } /* -GETPriceVolumeTierIdEvents Retrieve the events associated to the price volume tier +GETSkuIdStockItems Retrieve the stock items associated to the SKU -Retrieve the events associated to the price volume tier +Retrieve the stock items associated to the SKU @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param priceVolumeTierId The resource's id - @return HasManyApiGETPriceVolumeTierIdEventsRequest + @param skuId The resource's id + @return HasManyApiGETSkuIdStockItemsRequest */ -func (a *HasManyApiService) GETPriceVolumeTierIdEvents(ctx context.Context, priceVolumeTierId interface{}) HasManyApiGETPriceVolumeTierIdEventsRequest { - return HasManyApiGETPriceVolumeTierIdEventsRequest{ - ApiService: a, - ctx: ctx, - priceVolumeTierId: priceVolumeTierId, +func (a *HasManyApiService) GETSkuIdStockItems(ctx context.Context, skuId interface{}) HasManyApiGETSkuIdStockItemsRequest { + return HasManyApiGETSkuIdStockItemsRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, } } // Execute executes the request -func (a *HasManyApiService) GETPriceVolumeTierIdEventsExecute(r HasManyApiGETPriceVolumeTierIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuIdStockItemsExecute(r HasManyApiGETSkuIdStockItemsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPriceVolumeTierIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuIdStockItems") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/price_volume_tiers/{priceVolumeTierId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"priceVolumeTierId"+"}", url.PathEscape(parameterValueToString(r.priceVolumeTierId, "priceVolumeTierId")), -1) + localVarPath := localBasePath + "/skus/{skuId}/stock_items" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12075,48 +28543,48 @@ func (a *HasManyApiService) GETPriceVolumeTierIdEventsExecute(r HasManyApiGETPri return localVarHTTPResponse, nil } -type HasManyApiGETPromotionIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - promotionId interface{} +type HasManyApiGETSkuIdStockReservationsRequest struct { + ctx context.Context + ApiService *HasManyApiService + skuId interface{} } -func (r HasManyApiGETPromotionIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPromotionIdAttachmentsExecute(r) +func (r HasManyApiGETSkuIdStockReservationsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdStockReservationsExecute(r) } /* -GETPromotionIdAttachments Retrieve the attachments associated to the promotion +GETSkuIdStockReservations Retrieve the stock reservations associated to the SKU -Retrieve the attachments associated to the promotion +Retrieve the stock reservations associated to the SKU @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param promotionId The resource's id - @return HasManyApiGETPromotionIdAttachmentsRequest + @param skuId The resource's id + @return HasManyApiGETSkuIdStockReservationsRequest */ -func (a *HasManyApiService) GETPromotionIdAttachments(ctx context.Context, promotionId interface{}) HasManyApiGETPromotionIdAttachmentsRequest { - return HasManyApiGETPromotionIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - promotionId: promotionId, +func (a *HasManyApiService) GETSkuIdStockReservations(ctx context.Context, skuId interface{}) HasManyApiGETSkuIdStockReservationsRequest { + return HasManyApiGETSkuIdStockReservationsRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, } } // Execute executes the request -func (a *HasManyApiService) GETPromotionIdAttachmentsExecute(r HasManyApiGETPromotionIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuIdStockReservationsExecute(r HasManyApiGETSkuIdStockReservationsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPromotionIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuIdStockReservations") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/promotions/{promotionId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) + localVarPath := localBasePath + "/skus/{skuId}/stock_reservations" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12167,48 +28635,48 @@ func (a *HasManyApiService) GETPromotionIdAttachmentsExecute(r HasManyApiGETProm return localVarHTTPResponse, nil } -type HasManyApiGETPromotionIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - promotionId interface{} +type HasManyApiGETSkuIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + skuId interface{} } -func (r HasManyApiGETPromotionIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPromotionIdEventsExecute(r) +func (r HasManyApiGETSkuIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdTagsExecute(r) } /* -GETPromotionIdEvents Retrieve the events associated to the promotion +GETSkuIdTags Retrieve the tags associated to the SKU -Retrieve the events associated to the promotion +Retrieve the tags associated to the SKU @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param promotionId The resource's id - @return HasManyApiGETPromotionIdEventsRequest + @param skuId The resource's id + @return HasManyApiGETSkuIdTagsRequest */ -func (a *HasManyApiService) GETPromotionIdEvents(ctx context.Context, promotionId interface{}) HasManyApiGETPromotionIdEventsRequest { - return HasManyApiGETPromotionIdEventsRequest{ - ApiService: a, - ctx: ctx, - promotionId: promotionId, +func (a *HasManyApiService) GETSkuIdTags(ctx context.Context, skuId interface{}) HasManyApiGETSkuIdTagsRequest { + return HasManyApiGETSkuIdTagsRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, } } // Execute executes the request -func (a *HasManyApiService) GETPromotionIdEventsExecute(r HasManyApiGETPromotionIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuIdTagsExecute(r HasManyApiGETSkuIdTagsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETPromotionIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuIdTags") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/promotions/{promotionId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) + localVarPath := localBasePath + "/skus/{skuId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12259,48 +28727,48 @@ func (a *HasManyApiService) GETPromotionIdEventsExecute(r HasManyApiGETPromotion return localVarHTTPResponse, nil } -type HasManyApiGETRecurringOrderCopyIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - recurringOrderCopyId interface{} +type HasManyApiGETSkuIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + skuId interface{} } -func (r HasManyApiGETRecurringOrderCopyIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETRecurringOrderCopyIdEventsExecute(r) +func (r HasManyApiGETSkuIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdVersionsExecute(r) } /* -GETRecurringOrderCopyIdEvents Retrieve the events associated to the recurring order copy +GETSkuIdVersions Retrieve the versions associated to the SKU -Retrieve the events associated to the recurring order copy +Retrieve the versions associated to the SKU @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param recurringOrderCopyId The resource's id - @return HasManyApiGETRecurringOrderCopyIdEventsRequest + @param skuId The resource's id + @return HasManyApiGETSkuIdVersionsRequest */ -func (a *HasManyApiService) GETRecurringOrderCopyIdEvents(ctx context.Context, recurringOrderCopyId interface{}) HasManyApiGETRecurringOrderCopyIdEventsRequest { - return HasManyApiGETRecurringOrderCopyIdEventsRequest{ - ApiService: a, - ctx: ctx, - recurringOrderCopyId: recurringOrderCopyId, +func (a *HasManyApiService) GETSkuIdVersions(ctx context.Context, skuId interface{}) HasManyApiGETSkuIdVersionsRequest { + return HasManyApiGETSkuIdVersionsRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, } } // Execute executes the request -func (a *HasManyApiService) GETRecurringOrderCopyIdEventsExecute(r HasManyApiGETRecurringOrderCopyIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuIdVersionsExecute(r HasManyApiGETSkuIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETRecurringOrderCopyIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/recurring_order_copies/{recurringOrderCopyId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"recurringOrderCopyId"+"}", url.PathEscape(parameterValueToString(r.recurringOrderCopyId, "recurringOrderCopyId")), -1) + localVarPath := localBasePath + "/skus/{skuId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12351,48 +28819,48 @@ func (a *HasManyApiService) GETRecurringOrderCopyIdEventsExecute(r HasManyApiGET return localVarHTTPResponse, nil } -type HasManyApiGETRefundIdEventsRequest struct { +type HasManyApiGETSkuListIdAttachmentsRequest struct { ctx context.Context ApiService *HasManyApiService - refundId interface{} + skuListId interface{} } -func (r HasManyApiGETRefundIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETRefundIdEventsExecute(r) +func (r HasManyApiGETSkuListIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuListIdAttachmentsExecute(r) } /* -GETRefundIdEvents Retrieve the events associated to the refund +GETSkuListIdAttachments Retrieve the attachments associated to the SKU list -Retrieve the events associated to the refund +Retrieve the attachments associated to the SKU list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param refundId The resource's id - @return HasManyApiGETRefundIdEventsRequest + @param skuListId The resource's id + @return HasManyApiGETSkuListIdAttachmentsRequest */ -func (a *HasManyApiService) GETRefundIdEvents(ctx context.Context, refundId interface{}) HasManyApiGETRefundIdEventsRequest { - return HasManyApiGETRefundIdEventsRequest{ +func (a *HasManyApiService) GETSkuListIdAttachments(ctx context.Context, skuListId interface{}) HasManyApiGETSkuListIdAttachmentsRequest { + return HasManyApiGETSkuListIdAttachmentsRequest{ ApiService: a, ctx: ctx, - refundId: refundId, + skuListId: skuListId, } } // Execute executes the request -func (a *HasManyApiService) GETRefundIdEventsExecute(r HasManyApiGETRefundIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuListIdAttachmentsExecute(r HasManyApiGETSkuListIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETRefundIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuListIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/refunds/{refundId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"refundId"+"}", url.PathEscape(parameterValueToString(r.refundId, "refundId")), -1) + localVarPath := localBasePath + "/sku_lists/{skuListId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"skuListId"+"}", url.PathEscape(parameterValueToString(r.skuListId, "skuListId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12443,48 +28911,48 @@ func (a *HasManyApiService) GETRefundIdEventsExecute(r HasManyApiGETRefundIdEven return localVarHTTPResponse, nil } -type HasManyApiGETReturnIdAttachmentsRequest struct { +type HasManyApiGETSkuListIdBundlesRequest struct { ctx context.Context ApiService *HasManyApiService - returnId interface{} + skuListId interface{} } -func (r HasManyApiGETReturnIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETReturnIdAttachmentsExecute(r) +func (r HasManyApiGETSkuListIdBundlesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuListIdBundlesExecute(r) } /* -GETReturnIdAttachments Retrieve the attachments associated to the return +GETSkuListIdBundles Retrieve the bundles associated to the SKU list -Retrieve the attachments associated to the return +Retrieve the bundles associated to the SKU list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param returnId The resource's id - @return HasManyApiGETReturnIdAttachmentsRequest + @param skuListId The resource's id + @return HasManyApiGETSkuListIdBundlesRequest */ -func (a *HasManyApiService) GETReturnIdAttachments(ctx context.Context, returnId interface{}) HasManyApiGETReturnIdAttachmentsRequest { - return HasManyApiGETReturnIdAttachmentsRequest{ +func (a *HasManyApiService) GETSkuListIdBundles(ctx context.Context, skuListId interface{}) HasManyApiGETSkuListIdBundlesRequest { + return HasManyApiGETSkuListIdBundlesRequest{ ApiService: a, ctx: ctx, - returnId: returnId, + skuListId: skuListId, } } // Execute executes the request -func (a *HasManyApiService) GETReturnIdAttachmentsExecute(r HasManyApiGETReturnIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuListIdBundlesExecute(r HasManyApiGETSkuListIdBundlesRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETReturnIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuListIdBundles") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/returns/{returnId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) + localVarPath := localBasePath + "/sku_lists/{skuListId}/bundles" + localVarPath = strings.Replace(localVarPath, "{"+"skuListId"+"}", url.PathEscape(parameterValueToString(r.skuListId, "skuListId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12535,48 +29003,48 @@ func (a *HasManyApiService) GETReturnIdAttachmentsExecute(r HasManyApiGETReturnI return localVarHTTPResponse, nil } -type HasManyApiGETReturnIdEventsRequest struct { +type HasManyApiGETSkuListIdLinksRequest struct { ctx context.Context ApiService *HasManyApiService - returnId interface{} + skuListId interface{} } -func (r HasManyApiGETReturnIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETReturnIdEventsExecute(r) +func (r HasManyApiGETSkuListIdLinksRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuListIdLinksExecute(r) } /* -GETReturnIdEvents Retrieve the events associated to the return +GETSkuListIdLinks Retrieve the links associated to the SKU list -Retrieve the events associated to the return +Retrieve the links associated to the SKU list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param returnId The resource's id - @return HasManyApiGETReturnIdEventsRequest + @param skuListId The resource's id + @return HasManyApiGETSkuListIdLinksRequest */ -func (a *HasManyApiService) GETReturnIdEvents(ctx context.Context, returnId interface{}) HasManyApiGETReturnIdEventsRequest { - return HasManyApiGETReturnIdEventsRequest{ +func (a *HasManyApiService) GETSkuListIdLinks(ctx context.Context, skuListId interface{}) HasManyApiGETSkuListIdLinksRequest { + return HasManyApiGETSkuListIdLinksRequest{ ApiService: a, ctx: ctx, - returnId: returnId, + skuListId: skuListId, } } // Execute executes the request -func (a *HasManyApiService) GETReturnIdEventsExecute(r HasManyApiGETReturnIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuListIdLinksExecute(r HasManyApiGETSkuListIdLinksRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETReturnIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuListIdLinks") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/returns/{returnId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) + localVarPath := localBasePath + "/sku_lists/{skuListId}/links" + localVarPath = strings.Replace(localVarPath, "{"+"skuListId"+"}", url.PathEscape(parameterValueToString(r.skuListId, "skuListId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12627,48 +29095,48 @@ func (a *HasManyApiService) GETReturnIdEventsExecute(r HasManyApiGETReturnIdEven return localVarHTTPResponse, nil } -type HasManyApiGETReturnIdReturnLineItemsRequest struct { +type HasManyApiGETSkuListIdSkuListItemsRequest struct { ctx context.Context ApiService *HasManyApiService - returnId interface{} + skuListId interface{} } -func (r HasManyApiGETReturnIdReturnLineItemsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETReturnIdReturnLineItemsExecute(r) +func (r HasManyApiGETSkuListIdSkuListItemsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuListIdSkuListItemsExecute(r) } /* -GETReturnIdReturnLineItems Retrieve the return line items associated to the return +GETSkuListIdSkuListItems Retrieve the sku list items associated to the SKU list -Retrieve the return line items associated to the return +Retrieve the sku list items associated to the SKU list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param returnId The resource's id - @return HasManyApiGETReturnIdReturnLineItemsRequest + @param skuListId The resource's id + @return HasManyApiGETSkuListIdSkuListItemsRequest */ -func (a *HasManyApiService) GETReturnIdReturnLineItems(ctx context.Context, returnId interface{}) HasManyApiGETReturnIdReturnLineItemsRequest { - return HasManyApiGETReturnIdReturnLineItemsRequest{ +func (a *HasManyApiService) GETSkuListIdSkuListItems(ctx context.Context, skuListId interface{}) HasManyApiGETSkuListIdSkuListItemsRequest { + return HasManyApiGETSkuListIdSkuListItemsRequest{ ApiService: a, ctx: ctx, - returnId: returnId, + skuListId: skuListId, } } // Execute executes the request -func (a *HasManyApiService) GETReturnIdReturnLineItemsExecute(r HasManyApiGETReturnIdReturnLineItemsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuListIdSkuListItemsExecute(r HasManyApiGETSkuListIdSkuListItemsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETReturnIdReturnLineItems") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuListIdSkuListItems") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/returns/{returnId}/return_line_items" - localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) + localVarPath := localBasePath + "/sku_lists/{skuListId}/sku_list_items" + localVarPath = strings.Replace(localVarPath, "{"+"skuListId"+"}", url.PathEscape(parameterValueToString(r.skuListId, "skuListId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12719,48 +29187,48 @@ func (a *HasManyApiService) GETReturnIdReturnLineItemsExecute(r HasManyApiGETRet return localVarHTTPResponse, nil } -type HasManyApiGETSatispayGatewayIdPaymentMethodsRequest struct { - ctx context.Context - ApiService *HasManyApiService - satispayGatewayId interface{} +type HasManyApiGETSkuListIdSkusRequest struct { + ctx context.Context + ApiService *HasManyApiService + skuListId interface{} } -func (r HasManyApiGETSatispayGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSatispayGatewayIdPaymentMethodsExecute(r) +func (r HasManyApiGETSkuListIdSkusRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuListIdSkusExecute(r) } /* -GETSatispayGatewayIdPaymentMethods Retrieve the payment methods associated to the satispay gateway +GETSkuListIdSkus Retrieve the skus associated to the SKU list -Retrieve the payment methods associated to the satispay gateway +Retrieve the skus associated to the SKU list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param satispayGatewayId The resource's id - @return HasManyApiGETSatispayGatewayIdPaymentMethodsRequest + @param skuListId The resource's id + @return HasManyApiGETSkuListIdSkusRequest */ -func (a *HasManyApiService) GETSatispayGatewayIdPaymentMethods(ctx context.Context, satispayGatewayId interface{}) HasManyApiGETSatispayGatewayIdPaymentMethodsRequest { - return HasManyApiGETSatispayGatewayIdPaymentMethodsRequest{ - ApiService: a, - ctx: ctx, - satispayGatewayId: satispayGatewayId, +func (a *HasManyApiService) GETSkuListIdSkus(ctx context.Context, skuListId interface{}) HasManyApiGETSkuListIdSkusRequest { + return HasManyApiGETSkuListIdSkusRequest{ + ApiService: a, + ctx: ctx, + skuListId: skuListId, } } // Execute executes the request -func (a *HasManyApiService) GETSatispayGatewayIdPaymentMethodsExecute(r HasManyApiGETSatispayGatewayIdPaymentMethodsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuListIdSkusExecute(r HasManyApiGETSkuListIdSkusRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSatispayGatewayIdPaymentMethods") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuListIdSkus") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/satispay_gateways/{satispayGatewayId}/payment_methods" - localVarPath = strings.Replace(localVarPath, "{"+"satispayGatewayId"+"}", url.PathEscape(parameterValueToString(r.satispayGatewayId, "satispayGatewayId")), -1) + localVarPath := localBasePath + "/sku_lists/{skuListId}/skus" + localVarPath = strings.Replace(localVarPath, "{"+"skuListId"+"}", url.PathEscape(parameterValueToString(r.skuListId, "skuListId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12811,48 +29279,48 @@ func (a *HasManyApiService) GETSatispayGatewayIdPaymentMethodsExecute(r HasManyA return localVarHTTPResponse, nil } -type HasManyApiGETSatispayGatewayIdSatispayPaymentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - satispayGatewayId interface{} +type HasManyApiGETSkuListIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + skuListId interface{} } -func (r HasManyApiGETSatispayGatewayIdSatispayPaymentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSatispayGatewayIdSatispayPaymentsExecute(r) +func (r HasManyApiGETSkuListIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuListIdVersionsExecute(r) } /* -GETSatispayGatewayIdSatispayPayments Retrieve the satispay payments associated to the satispay gateway +GETSkuListIdVersions Retrieve the versions associated to the SKU list -Retrieve the satispay payments associated to the satispay gateway +Retrieve the versions associated to the SKU list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param satispayGatewayId The resource's id - @return HasManyApiGETSatispayGatewayIdSatispayPaymentsRequest + @param skuListId The resource's id + @return HasManyApiGETSkuListIdVersionsRequest */ -func (a *HasManyApiService) GETSatispayGatewayIdSatispayPayments(ctx context.Context, satispayGatewayId interface{}) HasManyApiGETSatispayGatewayIdSatispayPaymentsRequest { - return HasManyApiGETSatispayGatewayIdSatispayPaymentsRequest{ - ApiService: a, - ctx: ctx, - satispayGatewayId: satispayGatewayId, +func (a *HasManyApiService) GETSkuListIdVersions(ctx context.Context, skuListId interface{}) HasManyApiGETSkuListIdVersionsRequest { + return HasManyApiGETSkuListIdVersionsRequest{ + ApiService: a, + ctx: ctx, + skuListId: skuListId, } } // Execute executes the request -func (a *HasManyApiService) GETSatispayGatewayIdSatispayPaymentsExecute(r HasManyApiGETSatispayGatewayIdSatispayPaymentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuListIdVersionsExecute(r HasManyApiGETSkuListIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSatispayGatewayIdSatispayPayments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuListIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/satispay_gateways/{satispayGatewayId}/satispay_payments" - localVarPath = strings.Replace(localVarPath, "{"+"satispayGatewayId"+"}", url.PathEscape(parameterValueToString(r.satispayGatewayId, "satispayGatewayId")), -1) + localVarPath := localBasePath + "/sku_lists/{skuListId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"skuListId"+"}", url.PathEscape(parameterValueToString(r.skuListId, "skuListId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12903,48 +29371,48 @@ func (a *HasManyApiService) GETSatispayGatewayIdSatispayPaymentsExecute(r HasMan return localVarHTTPResponse, nil } -type HasManyApiGETShipmentIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - shipmentId interface{} +type HasManyApiGETSkuListItemIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + skuListItemId interface{} } -func (r HasManyApiGETShipmentIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShipmentIdAttachmentsExecute(r) +func (r HasManyApiGETSkuListItemIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuListItemIdVersionsExecute(r) } /* -GETShipmentIdAttachments Retrieve the attachments associated to the shipment +GETSkuListItemIdVersions Retrieve the versions associated to the SKU list item -Retrieve the attachments associated to the shipment +Retrieve the versions associated to the SKU list item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shipmentId The resource's id - @return HasManyApiGETShipmentIdAttachmentsRequest + @param skuListItemId The resource's id + @return HasManyApiGETSkuListItemIdVersionsRequest */ -func (a *HasManyApiService) GETShipmentIdAttachments(ctx context.Context, shipmentId interface{}) HasManyApiGETShipmentIdAttachmentsRequest { - return HasManyApiGETShipmentIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - shipmentId: shipmentId, +func (a *HasManyApiService) GETSkuListItemIdVersions(ctx context.Context, skuListItemId interface{}) HasManyApiGETSkuListItemIdVersionsRequest { + return HasManyApiGETSkuListItemIdVersionsRequest{ + ApiService: a, + ctx: ctx, + skuListItemId: skuListItemId, } } // Execute executes the request -func (a *HasManyApiService) GETShipmentIdAttachmentsExecute(r HasManyApiGETShipmentIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuListItemIdVersionsExecute(r HasManyApiGETSkuListItemIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShipmentIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuListItemIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipments/{shipmentId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + localVarPath := localBasePath + "/sku_list_items/{skuListItemId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"skuListItemId"+"}", url.PathEscape(parameterValueToString(r.skuListItemId, "skuListItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12995,48 +29463,48 @@ func (a *HasManyApiService) GETShipmentIdAttachmentsExecute(r HasManyApiGETShipm return localVarHTTPResponse, nil } -type HasManyApiGETShipmentIdAvailableShippingMethodsRequest struct { - ctx context.Context - ApiService *HasManyApiService - shipmentId interface{} +type HasManyApiGETSkuListPromotionRuleIdSkusRequest struct { + ctx context.Context + ApiService *HasManyApiService + skuListPromotionRuleId interface{} } -func (r HasManyApiGETShipmentIdAvailableShippingMethodsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShipmentIdAvailableShippingMethodsExecute(r) +func (r HasManyApiGETSkuListPromotionRuleIdSkusRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuListPromotionRuleIdSkusExecute(r) } /* -GETShipmentIdAvailableShippingMethods Retrieve the available shipping methods associated to the shipment +GETSkuListPromotionRuleIdSkus Retrieve the skus associated to the SKU list promotion rule -Retrieve the available shipping methods associated to the shipment +Retrieve the skus associated to the SKU list promotion rule @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shipmentId The resource's id - @return HasManyApiGETShipmentIdAvailableShippingMethodsRequest + @param skuListPromotionRuleId The resource's id + @return HasManyApiGETSkuListPromotionRuleIdSkusRequest */ -func (a *HasManyApiService) GETShipmentIdAvailableShippingMethods(ctx context.Context, shipmentId interface{}) HasManyApiGETShipmentIdAvailableShippingMethodsRequest { - return HasManyApiGETShipmentIdAvailableShippingMethodsRequest{ - ApiService: a, - ctx: ctx, - shipmentId: shipmentId, +func (a *HasManyApiService) GETSkuListPromotionRuleIdSkus(ctx context.Context, skuListPromotionRuleId interface{}) HasManyApiGETSkuListPromotionRuleIdSkusRequest { + return HasManyApiGETSkuListPromotionRuleIdSkusRequest{ + ApiService: a, + ctx: ctx, + skuListPromotionRuleId: skuListPromotionRuleId, } } // Execute executes the request -func (a *HasManyApiService) GETShipmentIdAvailableShippingMethodsExecute(r HasManyApiGETShipmentIdAvailableShippingMethodsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuListPromotionRuleIdSkusExecute(r HasManyApiGETSkuListPromotionRuleIdSkusRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShipmentIdAvailableShippingMethods") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuListPromotionRuleIdSkus") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipments/{shipmentId}/available_shipping_methods" - localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + localVarPath := localBasePath + "/sku_list_promotion_rules/{skuListPromotionRuleId}/skus" + localVarPath = strings.Replace(localVarPath, "{"+"skuListPromotionRuleId"+"}", url.PathEscape(parameterValueToString(r.skuListPromotionRuleId, "skuListPromotionRuleId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13087,48 +29555,48 @@ func (a *HasManyApiService) GETShipmentIdAvailableShippingMethodsExecute(r HasMa return localVarHTTPResponse, nil } -type HasManyApiGETShipmentIdCarrierAccountsRequest struct { - ctx context.Context - ApiService *HasManyApiService - shipmentId interface{} +type HasManyApiGETSkuListPromotionRuleIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + skuListPromotionRuleId interface{} } -func (r HasManyApiGETShipmentIdCarrierAccountsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShipmentIdCarrierAccountsExecute(r) +func (r HasManyApiGETSkuListPromotionRuleIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuListPromotionRuleIdVersionsExecute(r) } /* -GETShipmentIdCarrierAccounts Retrieve the carrier accounts associated to the shipment +GETSkuListPromotionRuleIdVersions Retrieve the versions associated to the SKU list promotion rule -Retrieve the carrier accounts associated to the shipment +Retrieve the versions associated to the SKU list promotion rule @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shipmentId The resource's id - @return HasManyApiGETShipmentIdCarrierAccountsRequest + @param skuListPromotionRuleId The resource's id + @return HasManyApiGETSkuListPromotionRuleIdVersionsRequest */ -func (a *HasManyApiService) GETShipmentIdCarrierAccounts(ctx context.Context, shipmentId interface{}) HasManyApiGETShipmentIdCarrierAccountsRequest { - return HasManyApiGETShipmentIdCarrierAccountsRequest{ - ApiService: a, - ctx: ctx, - shipmentId: shipmentId, +func (a *HasManyApiService) GETSkuListPromotionRuleIdVersions(ctx context.Context, skuListPromotionRuleId interface{}) HasManyApiGETSkuListPromotionRuleIdVersionsRequest { + return HasManyApiGETSkuListPromotionRuleIdVersionsRequest{ + ApiService: a, + ctx: ctx, + skuListPromotionRuleId: skuListPromotionRuleId, } } // Execute executes the request -func (a *HasManyApiService) GETShipmentIdCarrierAccountsExecute(r HasManyApiGETShipmentIdCarrierAccountsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuListPromotionRuleIdVersionsExecute(r HasManyApiGETSkuListPromotionRuleIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShipmentIdCarrierAccounts") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuListPromotionRuleIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipments/{shipmentId}/carrier_accounts" - localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + localVarPath := localBasePath + "/sku_list_promotion_rules/{skuListPromotionRuleId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"skuListPromotionRuleId"+"}", url.PathEscape(parameterValueToString(r.skuListPromotionRuleId, "skuListPromotionRuleId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13179,48 +29647,48 @@ func (a *HasManyApiService) GETShipmentIdCarrierAccountsExecute(r HasManyApiGETS return localVarHTTPResponse, nil } -type HasManyApiGETShipmentIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - shipmentId interface{} +type HasManyApiGETSkuOptionIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + skuOptionId interface{} } -func (r HasManyApiGETShipmentIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShipmentIdEventsExecute(r) +func (r HasManyApiGETSkuOptionIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuOptionIdAttachmentsExecute(r) } /* -GETShipmentIdEvents Retrieve the events associated to the shipment +GETSkuOptionIdAttachments Retrieve the attachments associated to the SKU option -Retrieve the events associated to the shipment +Retrieve the attachments associated to the SKU option @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shipmentId The resource's id - @return HasManyApiGETShipmentIdEventsRequest + @param skuOptionId The resource's id + @return HasManyApiGETSkuOptionIdAttachmentsRequest */ -func (a *HasManyApiService) GETShipmentIdEvents(ctx context.Context, shipmentId interface{}) HasManyApiGETShipmentIdEventsRequest { - return HasManyApiGETShipmentIdEventsRequest{ - ApiService: a, - ctx: ctx, - shipmentId: shipmentId, +func (a *HasManyApiService) GETSkuOptionIdAttachments(ctx context.Context, skuOptionId interface{}) HasManyApiGETSkuOptionIdAttachmentsRequest { + return HasManyApiGETSkuOptionIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + skuOptionId: skuOptionId, } } // Execute executes the request -func (a *HasManyApiService) GETShipmentIdEventsExecute(r HasManyApiGETShipmentIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuOptionIdAttachmentsExecute(r HasManyApiGETSkuOptionIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShipmentIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuOptionIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipments/{shipmentId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + localVarPath := localBasePath + "/sku_options/{skuOptionId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"skuOptionId"+"}", url.PathEscape(parameterValueToString(r.skuOptionId, "skuOptionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13271,48 +29739,48 @@ func (a *HasManyApiService) GETShipmentIdEventsExecute(r HasManyApiGETShipmentId return localVarHTTPResponse, nil } -type HasManyApiGETShipmentIdParcelsRequest struct { - ctx context.Context - ApiService *HasManyApiService - shipmentId interface{} -} - -func (r HasManyApiGETShipmentIdParcelsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShipmentIdParcelsExecute(r) +type HasManyApiGETSkuOptionIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + skuOptionId interface{} +} + +func (r HasManyApiGETSkuOptionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuOptionIdEventsExecute(r) } /* -GETShipmentIdParcels Retrieve the parcels associated to the shipment +GETSkuOptionIdEvents Retrieve the events associated to the SKU option -Retrieve the parcels associated to the shipment +Retrieve the events associated to the SKU option @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shipmentId The resource's id - @return HasManyApiGETShipmentIdParcelsRequest + @param skuOptionId The resource's id + @return HasManyApiGETSkuOptionIdEventsRequest */ -func (a *HasManyApiService) GETShipmentIdParcels(ctx context.Context, shipmentId interface{}) HasManyApiGETShipmentIdParcelsRequest { - return HasManyApiGETShipmentIdParcelsRequest{ - ApiService: a, - ctx: ctx, - shipmentId: shipmentId, +func (a *HasManyApiService) GETSkuOptionIdEvents(ctx context.Context, skuOptionId interface{}) HasManyApiGETSkuOptionIdEventsRequest { + return HasManyApiGETSkuOptionIdEventsRequest{ + ApiService: a, + ctx: ctx, + skuOptionId: skuOptionId, } } // Execute executes the request -func (a *HasManyApiService) GETShipmentIdParcelsExecute(r HasManyApiGETShipmentIdParcelsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuOptionIdEventsExecute(r HasManyApiGETSkuOptionIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShipmentIdParcels") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuOptionIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipments/{shipmentId}/parcels" - localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + localVarPath := localBasePath + "/sku_options/{skuOptionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"skuOptionId"+"}", url.PathEscape(parameterValueToString(r.skuOptionId, "skuOptionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13363,48 +29831,48 @@ func (a *HasManyApiService) GETShipmentIdParcelsExecute(r HasManyApiGETShipmentI return localVarHTTPResponse, nil } -type HasManyApiGETShipmentIdStockLineItemsRequest struct { - ctx context.Context - ApiService *HasManyApiService - shipmentId interface{} +type HasManyApiGETSkuOptionIdTagsRequest struct { + ctx context.Context + ApiService *HasManyApiService + skuOptionId interface{} } -func (r HasManyApiGETShipmentIdStockLineItemsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShipmentIdStockLineItemsExecute(r) +func (r HasManyApiGETSkuOptionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuOptionIdTagsExecute(r) } /* -GETShipmentIdStockLineItems Retrieve the stock line items associated to the shipment +GETSkuOptionIdTags Retrieve the tags associated to the SKU option -Retrieve the stock line items associated to the shipment +Retrieve the tags associated to the SKU option @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shipmentId The resource's id - @return HasManyApiGETShipmentIdStockLineItemsRequest + @param skuOptionId The resource's id + @return HasManyApiGETSkuOptionIdTagsRequest */ -func (a *HasManyApiService) GETShipmentIdStockLineItems(ctx context.Context, shipmentId interface{}) HasManyApiGETShipmentIdStockLineItemsRequest { - return HasManyApiGETShipmentIdStockLineItemsRequest{ - ApiService: a, - ctx: ctx, - shipmentId: shipmentId, +func (a *HasManyApiService) GETSkuOptionIdTags(ctx context.Context, skuOptionId interface{}) HasManyApiGETSkuOptionIdTagsRequest { + return HasManyApiGETSkuOptionIdTagsRequest{ + ApiService: a, + ctx: ctx, + skuOptionId: skuOptionId, } } // Execute executes the request -func (a *HasManyApiService) GETShipmentIdStockLineItemsExecute(r HasManyApiGETShipmentIdStockLineItemsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuOptionIdTagsExecute(r HasManyApiGETSkuOptionIdTagsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShipmentIdStockLineItems") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuOptionIdTags") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipments/{shipmentId}/stock_line_items" - localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + localVarPath := localBasePath + "/sku_options/{skuOptionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"skuOptionId"+"}", url.PathEscape(parameterValueToString(r.skuOptionId, "skuOptionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13455,48 +29923,48 @@ func (a *HasManyApiService) GETShipmentIdStockLineItemsExecute(r HasManyApiGETSh return localVarHTTPResponse, nil } -type HasManyApiGETShipmentIdStockTransfersRequest struct { - ctx context.Context - ApiService *HasManyApiService - shipmentId interface{} +type HasManyApiGETSkuOptionIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + skuOptionId interface{} } -func (r HasManyApiGETShipmentIdStockTransfersRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShipmentIdStockTransfersExecute(r) +func (r HasManyApiGETSkuOptionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuOptionIdVersionsExecute(r) } /* -GETShipmentIdStockTransfers Retrieve the stock transfers associated to the shipment +GETSkuOptionIdVersions Retrieve the versions associated to the SKU option -Retrieve the stock transfers associated to the shipment +Retrieve the versions associated to the SKU option @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shipmentId The resource's id - @return HasManyApiGETShipmentIdStockTransfersRequest + @param skuOptionId The resource's id + @return HasManyApiGETSkuOptionIdVersionsRequest */ -func (a *HasManyApiService) GETShipmentIdStockTransfers(ctx context.Context, shipmentId interface{}) HasManyApiGETShipmentIdStockTransfersRequest { - return HasManyApiGETShipmentIdStockTransfersRequest{ - ApiService: a, - ctx: ctx, - shipmentId: shipmentId, +func (a *HasManyApiService) GETSkuOptionIdVersions(ctx context.Context, skuOptionId interface{}) HasManyApiGETSkuOptionIdVersionsRequest { + return HasManyApiGETSkuOptionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + skuOptionId: skuOptionId, } } // Execute executes the request -func (a *HasManyApiService) GETShipmentIdStockTransfersExecute(r HasManyApiGETShipmentIdStockTransfersRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSkuOptionIdVersionsExecute(r HasManyApiGETSkuOptionIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShipmentIdStockTransfers") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuOptionIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipments/{shipmentId}/stock_transfers" - localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + localVarPath := localBasePath + "/sku_options/{skuOptionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"skuOptionId"+"}", url.PathEscape(parameterValueToString(r.skuOptionId, "skuOptionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13547,48 +30015,48 @@ func (a *HasManyApiService) GETShipmentIdStockTransfersExecute(r HasManyApiGETSh return localVarHTTPResponse, nil } -type HasManyApiGETShippingCategoryIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - shippingCategoryId interface{} +type HasManyApiGETStockItemIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + stockItemId interface{} } -func (r HasManyApiGETShippingCategoryIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShippingCategoryIdAttachmentsExecute(r) +func (r HasManyApiGETStockItemIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockItemIdAttachmentsExecute(r) } /* -GETShippingCategoryIdAttachments Retrieve the attachments associated to the shipping category +GETStockItemIdAttachments Retrieve the attachments associated to the stock item -Retrieve the attachments associated to the shipping category +Retrieve the attachments associated to the stock item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shippingCategoryId The resource's id - @return HasManyApiGETShippingCategoryIdAttachmentsRequest + @param stockItemId The resource's id + @return HasManyApiGETStockItemIdAttachmentsRequest */ -func (a *HasManyApiService) GETShippingCategoryIdAttachments(ctx context.Context, shippingCategoryId interface{}) HasManyApiGETShippingCategoryIdAttachmentsRequest { - return HasManyApiGETShippingCategoryIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - shippingCategoryId: shippingCategoryId, +func (a *HasManyApiService) GETStockItemIdAttachments(ctx context.Context, stockItemId interface{}) HasManyApiGETStockItemIdAttachmentsRequest { + return HasManyApiGETStockItemIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + stockItemId: stockItemId, } } // Execute executes the request -func (a *HasManyApiService) GETShippingCategoryIdAttachmentsExecute(r HasManyApiGETShippingCategoryIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETStockItemIdAttachmentsExecute(r HasManyApiGETStockItemIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingCategoryIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockItemIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipping_categories/{shippingCategoryId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"shippingCategoryId"+"}", url.PathEscape(parameterValueToString(r.shippingCategoryId, "shippingCategoryId")), -1) + localVarPath := localBasePath + "/stock_items/{stockItemId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"stockItemId"+"}", url.PathEscape(parameterValueToString(r.stockItemId, "stockItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13639,48 +30107,48 @@ func (a *HasManyApiService) GETShippingCategoryIdAttachmentsExecute(r HasManyApi return localVarHTTPResponse, nil } -type HasManyApiGETShippingCategoryIdSkusRequest struct { - ctx context.Context - ApiService *HasManyApiService - shippingCategoryId interface{} +type HasManyApiGETStockItemIdStockReservationsRequest struct { + ctx context.Context + ApiService *HasManyApiService + stockItemId interface{} } -func (r HasManyApiGETShippingCategoryIdSkusRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShippingCategoryIdSkusExecute(r) +func (r HasManyApiGETStockItemIdStockReservationsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockItemIdStockReservationsExecute(r) } /* -GETShippingCategoryIdSkus Retrieve the skus associated to the shipping category +GETStockItemIdStockReservations Retrieve the stock reservations associated to the stock item -Retrieve the skus associated to the shipping category +Retrieve the stock reservations associated to the stock item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shippingCategoryId The resource's id - @return HasManyApiGETShippingCategoryIdSkusRequest + @param stockItemId The resource's id + @return HasManyApiGETStockItemIdStockReservationsRequest */ -func (a *HasManyApiService) GETShippingCategoryIdSkus(ctx context.Context, shippingCategoryId interface{}) HasManyApiGETShippingCategoryIdSkusRequest { - return HasManyApiGETShippingCategoryIdSkusRequest{ - ApiService: a, - ctx: ctx, - shippingCategoryId: shippingCategoryId, +func (a *HasManyApiService) GETStockItemIdStockReservations(ctx context.Context, stockItemId interface{}) HasManyApiGETStockItemIdStockReservationsRequest { + return HasManyApiGETStockItemIdStockReservationsRequest{ + ApiService: a, + ctx: ctx, + stockItemId: stockItemId, } } // Execute executes the request -func (a *HasManyApiService) GETShippingCategoryIdSkusExecute(r HasManyApiGETShippingCategoryIdSkusRequest) (*http.Response, error) { +func (a *HasManyApiService) GETStockItemIdStockReservationsExecute(r HasManyApiGETStockItemIdStockReservationsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingCategoryIdSkus") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockItemIdStockReservations") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipping_categories/{shippingCategoryId}/skus" - localVarPath = strings.Replace(localVarPath, "{"+"shippingCategoryId"+"}", url.PathEscape(parameterValueToString(r.shippingCategoryId, "shippingCategoryId")), -1) + localVarPath := localBasePath + "/stock_items/{stockItemId}/stock_reservations" + localVarPath = strings.Replace(localVarPath, "{"+"stockItemId"+"}", url.PathEscape(parameterValueToString(r.stockItemId, "stockItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13731,48 +30199,48 @@ func (a *HasManyApiService) GETShippingCategoryIdSkusExecute(r HasManyApiGETShip return localVarHTTPResponse, nil } -type HasManyApiGETShippingMethodIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - shippingMethodId interface{} +type HasManyApiGETStockItemIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + stockItemId interface{} } -func (r HasManyApiGETShippingMethodIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShippingMethodIdAttachmentsExecute(r) +func (r HasManyApiGETStockItemIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockItemIdVersionsExecute(r) } /* -GETShippingMethodIdAttachments Retrieve the attachments associated to the shipping method +GETStockItemIdVersions Retrieve the versions associated to the stock item -Retrieve the attachments associated to the shipping method +Retrieve the versions associated to the stock item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shippingMethodId The resource's id - @return HasManyApiGETShippingMethodIdAttachmentsRequest + @param stockItemId The resource's id + @return HasManyApiGETStockItemIdVersionsRequest */ -func (a *HasManyApiService) GETShippingMethodIdAttachments(ctx context.Context, shippingMethodId interface{}) HasManyApiGETShippingMethodIdAttachmentsRequest { - return HasManyApiGETShippingMethodIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - shippingMethodId: shippingMethodId, +func (a *HasManyApiService) GETStockItemIdVersions(ctx context.Context, stockItemId interface{}) HasManyApiGETStockItemIdVersionsRequest { + return HasManyApiGETStockItemIdVersionsRequest{ + ApiService: a, + ctx: ctx, + stockItemId: stockItemId, } } // Execute executes the request -func (a *HasManyApiService) GETShippingMethodIdAttachmentsExecute(r HasManyApiGETShippingMethodIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETStockItemIdVersionsExecute(r HasManyApiGETStockItemIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingMethodIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockItemIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipping_methods/{shippingMethodId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodId, "shippingMethodId")), -1) + localVarPath := localBasePath + "/stock_items/{stockItemId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"stockItemId"+"}", url.PathEscape(parameterValueToString(r.stockItemId, "stockItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13823,48 +30291,48 @@ func (a *HasManyApiService) GETShippingMethodIdAttachmentsExecute(r HasManyApiGE return localVarHTTPResponse, nil } -type HasManyApiGETShippingMethodIdShippingMethodTiersRequest struct { - ctx context.Context - ApiService *HasManyApiService - shippingMethodId interface{} +type HasManyApiGETStockLineItemIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + stockLineItemId interface{} } -func (r HasManyApiGETShippingMethodIdShippingMethodTiersRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShippingMethodIdShippingMethodTiersExecute(r) +func (r HasManyApiGETStockLineItemIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockLineItemIdVersionsExecute(r) } /* -GETShippingMethodIdShippingMethodTiers Retrieve the shipping method tiers associated to the shipping method +GETStockLineItemIdVersions Retrieve the versions associated to the stock line item -Retrieve the shipping method tiers associated to the shipping method +Retrieve the versions associated to the stock line item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shippingMethodId The resource's id - @return HasManyApiGETShippingMethodIdShippingMethodTiersRequest + @param stockLineItemId The resource's id + @return HasManyApiGETStockLineItemIdVersionsRequest */ -func (a *HasManyApiService) GETShippingMethodIdShippingMethodTiers(ctx context.Context, shippingMethodId interface{}) HasManyApiGETShippingMethodIdShippingMethodTiersRequest { - return HasManyApiGETShippingMethodIdShippingMethodTiersRequest{ - ApiService: a, - ctx: ctx, - shippingMethodId: shippingMethodId, +func (a *HasManyApiService) GETStockLineItemIdVersions(ctx context.Context, stockLineItemId interface{}) HasManyApiGETStockLineItemIdVersionsRequest { + return HasManyApiGETStockLineItemIdVersionsRequest{ + ApiService: a, + ctx: ctx, + stockLineItemId: stockLineItemId, } } // Execute executes the request -func (a *HasManyApiService) GETShippingMethodIdShippingMethodTiersExecute(r HasManyApiGETShippingMethodIdShippingMethodTiersRequest) (*http.Response, error) { +func (a *HasManyApiService) GETStockLineItemIdVersionsExecute(r HasManyApiGETStockLineItemIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingMethodIdShippingMethodTiers") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockLineItemIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipping_methods/{shippingMethodId}/shipping_method_tiers" - localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodId, "shippingMethodId")), -1) + localVarPath := localBasePath + "/stock_line_items/{stockLineItemId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"stockLineItemId"+"}", url.PathEscape(parameterValueToString(r.stockLineItemId, "stockLineItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13915,48 +30383,48 @@ func (a *HasManyApiService) GETShippingMethodIdShippingMethodTiersExecute(r HasM return localVarHTTPResponse, nil } -type HasManyApiGETShippingMethodIdShippingWeightTiersRequest struct { - ctx context.Context - ApiService *HasManyApiService - shippingMethodId interface{} +type HasManyApiGETStockLocationIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + stockLocationId interface{} } -func (r HasManyApiGETShippingMethodIdShippingWeightTiersRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShippingMethodIdShippingWeightTiersExecute(r) +func (r HasManyApiGETStockLocationIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockLocationIdAttachmentsExecute(r) } /* -GETShippingMethodIdShippingWeightTiers Retrieve the shipping weight tiers associated to the shipping method +GETStockLocationIdAttachments Retrieve the attachments associated to the stock location -Retrieve the shipping weight tiers associated to the shipping method +Retrieve the attachments associated to the stock location @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shippingMethodId The resource's id - @return HasManyApiGETShippingMethodIdShippingWeightTiersRequest + @param stockLocationId The resource's id + @return HasManyApiGETStockLocationIdAttachmentsRequest */ -func (a *HasManyApiService) GETShippingMethodIdShippingWeightTiers(ctx context.Context, shippingMethodId interface{}) HasManyApiGETShippingMethodIdShippingWeightTiersRequest { - return HasManyApiGETShippingMethodIdShippingWeightTiersRequest{ - ApiService: a, - ctx: ctx, - shippingMethodId: shippingMethodId, +func (a *HasManyApiService) GETStockLocationIdAttachments(ctx context.Context, stockLocationId interface{}) HasManyApiGETStockLocationIdAttachmentsRequest { + return HasManyApiGETStockLocationIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + stockLocationId: stockLocationId, } } // Execute executes the request -func (a *HasManyApiService) GETShippingMethodIdShippingWeightTiersExecute(r HasManyApiGETShippingMethodIdShippingWeightTiersRequest) (*http.Response, error) { +func (a *HasManyApiService) GETStockLocationIdAttachmentsExecute(r HasManyApiGETStockLocationIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingMethodIdShippingWeightTiers") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockLocationIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipping_methods/{shippingMethodId}/shipping_weight_tiers" - localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodId, "shippingMethodId")), -1) + localVarPath := localBasePath + "/stock_locations/{stockLocationId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"stockLocationId"+"}", url.PathEscape(parameterValueToString(r.stockLocationId, "stockLocationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -14007,48 +30475,48 @@ func (a *HasManyApiService) GETShippingMethodIdShippingWeightTiersExecute(r HasM return localVarHTTPResponse, nil } -type HasManyApiGETShippingMethodTierIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - shippingMethodTierId interface{} +type HasManyApiGETStockLocationIdInventoryReturnLocationsRequest struct { + ctx context.Context + ApiService *HasManyApiService + stockLocationId interface{} } -func (r HasManyApiGETShippingMethodTierIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShippingMethodTierIdAttachmentsExecute(r) +func (r HasManyApiGETStockLocationIdInventoryReturnLocationsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockLocationIdInventoryReturnLocationsExecute(r) } /* -GETShippingMethodTierIdAttachments Retrieve the attachments associated to the shipping method tier +GETStockLocationIdInventoryReturnLocations Retrieve the inventory return locations associated to the stock location -Retrieve the attachments associated to the shipping method tier +Retrieve the inventory return locations associated to the stock location @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shippingMethodTierId The resource's id - @return HasManyApiGETShippingMethodTierIdAttachmentsRequest -*/ -func (a *HasManyApiService) GETShippingMethodTierIdAttachments(ctx context.Context, shippingMethodTierId interface{}) HasManyApiGETShippingMethodTierIdAttachmentsRequest { - return HasManyApiGETShippingMethodTierIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - shippingMethodTierId: shippingMethodTierId, + @param stockLocationId The resource's id + @return HasManyApiGETStockLocationIdInventoryReturnLocationsRequest +*/ +func (a *HasManyApiService) GETStockLocationIdInventoryReturnLocations(ctx context.Context, stockLocationId interface{}) HasManyApiGETStockLocationIdInventoryReturnLocationsRequest { + return HasManyApiGETStockLocationIdInventoryReturnLocationsRequest{ + ApiService: a, + ctx: ctx, + stockLocationId: stockLocationId, } } // Execute executes the request -func (a *HasManyApiService) GETShippingMethodTierIdAttachmentsExecute(r HasManyApiGETShippingMethodTierIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETStockLocationIdInventoryReturnLocationsExecute(r HasManyApiGETStockLocationIdInventoryReturnLocationsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingMethodTierIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockLocationIdInventoryReturnLocations") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipping_method_tiers/{shippingMethodTierId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodTierId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodTierId, "shippingMethodTierId")), -1) + localVarPath := localBasePath + "/stock_locations/{stockLocationId}/inventory_return_locations" + localVarPath = strings.Replace(localVarPath, "{"+"stockLocationId"+"}", url.PathEscape(parameterValueToString(r.stockLocationId, "stockLocationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -14099,48 +30567,48 @@ func (a *HasManyApiService) GETShippingMethodTierIdAttachmentsExecute(r HasManyA return localVarHTTPResponse, nil } -type HasManyApiGETShippingWeightTierIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - shippingWeightTierId interface{} +type HasManyApiGETStockLocationIdInventoryStockLocationsRequest struct { + ctx context.Context + ApiService *HasManyApiService + stockLocationId interface{} } -func (r HasManyApiGETShippingWeightTierIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShippingWeightTierIdAttachmentsExecute(r) +func (r HasManyApiGETStockLocationIdInventoryStockLocationsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockLocationIdInventoryStockLocationsExecute(r) } /* -GETShippingWeightTierIdAttachments Retrieve the attachments associated to the shipping weight tier +GETStockLocationIdInventoryStockLocations Retrieve the inventory stock locations associated to the stock location -Retrieve the attachments associated to the shipping weight tier +Retrieve the inventory stock locations associated to the stock location @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shippingWeightTierId The resource's id - @return HasManyApiGETShippingWeightTierIdAttachmentsRequest + @param stockLocationId The resource's id + @return HasManyApiGETStockLocationIdInventoryStockLocationsRequest */ -func (a *HasManyApiService) GETShippingWeightTierIdAttachments(ctx context.Context, shippingWeightTierId interface{}) HasManyApiGETShippingWeightTierIdAttachmentsRequest { - return HasManyApiGETShippingWeightTierIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - shippingWeightTierId: shippingWeightTierId, +func (a *HasManyApiService) GETStockLocationIdInventoryStockLocations(ctx context.Context, stockLocationId interface{}) HasManyApiGETStockLocationIdInventoryStockLocationsRequest { + return HasManyApiGETStockLocationIdInventoryStockLocationsRequest{ + ApiService: a, + ctx: ctx, + stockLocationId: stockLocationId, } } // Execute executes the request -func (a *HasManyApiService) GETShippingWeightTierIdAttachmentsExecute(r HasManyApiGETShippingWeightTierIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETStockLocationIdInventoryStockLocationsExecute(r HasManyApiGETStockLocationIdInventoryStockLocationsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingWeightTierIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockLocationIdInventoryStockLocations") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipping_weight_tiers/{shippingWeightTierId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"shippingWeightTierId"+"}", url.PathEscape(parameterValueToString(r.shippingWeightTierId, "shippingWeightTierId")), -1) + localVarPath := localBasePath + "/stock_locations/{stockLocationId}/inventory_stock_locations" + localVarPath = strings.Replace(localVarPath, "{"+"stockLocationId"+"}", url.PathEscape(parameterValueToString(r.stockLocationId, "stockLocationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -14191,48 +30659,48 @@ func (a *HasManyApiService) GETShippingWeightTierIdAttachmentsExecute(r HasManyA return localVarHTTPResponse, nil } -type HasManyApiGETShippingZoneIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - shippingZoneId interface{} +type HasManyApiGETStockLocationIdStockItemsRequest struct { + ctx context.Context + ApiService *HasManyApiService + stockLocationId interface{} } -func (r HasManyApiGETShippingZoneIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShippingZoneIdAttachmentsExecute(r) +func (r HasManyApiGETStockLocationIdStockItemsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockLocationIdStockItemsExecute(r) } /* -GETShippingZoneIdAttachments Retrieve the attachments associated to the shipping zone +GETStockLocationIdStockItems Retrieve the stock items associated to the stock location -Retrieve the attachments associated to the shipping zone +Retrieve the stock items associated to the stock location @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shippingZoneId The resource's id - @return HasManyApiGETShippingZoneIdAttachmentsRequest + @param stockLocationId The resource's id + @return HasManyApiGETStockLocationIdStockItemsRequest */ -func (a *HasManyApiService) GETShippingZoneIdAttachments(ctx context.Context, shippingZoneId interface{}) HasManyApiGETShippingZoneIdAttachmentsRequest { - return HasManyApiGETShippingZoneIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - shippingZoneId: shippingZoneId, +func (a *HasManyApiService) GETStockLocationIdStockItems(ctx context.Context, stockLocationId interface{}) HasManyApiGETStockLocationIdStockItemsRequest { + return HasManyApiGETStockLocationIdStockItemsRequest{ + ApiService: a, + ctx: ctx, + stockLocationId: stockLocationId, } } // Execute executes the request -func (a *HasManyApiService) GETShippingZoneIdAttachmentsExecute(r HasManyApiGETShippingZoneIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETStockLocationIdStockItemsExecute(r HasManyApiGETStockLocationIdStockItemsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETShippingZoneIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockLocationIdStockItems") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipping_zones/{shippingZoneId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"shippingZoneId"+"}", url.PathEscape(parameterValueToString(r.shippingZoneId, "shippingZoneId")), -1) + localVarPath := localBasePath + "/stock_locations/{stockLocationId}/stock_items" + localVarPath = strings.Replace(localVarPath, "{"+"stockLocationId"+"}", url.PathEscape(parameterValueToString(r.stockLocationId, "stockLocationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -14283,48 +30751,48 @@ func (a *HasManyApiService) GETShippingZoneIdAttachmentsExecute(r HasManyApiGETS return localVarHTTPResponse, nil } -type HasManyApiGETSkuIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - skuId interface{} +type HasManyApiGETStockLocationIdStockTransfersRequest struct { + ctx context.Context + ApiService *HasManyApiService + stockLocationId interface{} } -func (r HasManyApiGETSkuIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSkuIdAttachmentsExecute(r) +func (r HasManyApiGETStockLocationIdStockTransfersRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockLocationIdStockTransfersExecute(r) } /* -GETSkuIdAttachments Retrieve the attachments associated to the SKU +GETStockLocationIdStockTransfers Retrieve the stock transfers associated to the stock location -Retrieve the attachments associated to the SKU +Retrieve the stock transfers associated to the stock location @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param skuId The resource's id - @return HasManyApiGETSkuIdAttachmentsRequest + @param stockLocationId The resource's id + @return HasManyApiGETStockLocationIdStockTransfersRequest */ -func (a *HasManyApiService) GETSkuIdAttachments(ctx context.Context, skuId interface{}) HasManyApiGETSkuIdAttachmentsRequest { - return HasManyApiGETSkuIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - skuId: skuId, +func (a *HasManyApiService) GETStockLocationIdStockTransfers(ctx context.Context, stockLocationId interface{}) HasManyApiGETStockLocationIdStockTransfersRequest { + return HasManyApiGETStockLocationIdStockTransfersRequest{ + ApiService: a, + ctx: ctx, + stockLocationId: stockLocationId, } } // Execute executes the request -func (a *HasManyApiService) GETSkuIdAttachmentsExecute(r HasManyApiGETSkuIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETStockLocationIdStockTransfersExecute(r HasManyApiGETStockLocationIdStockTransfersRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockLocationIdStockTransfers") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/skus/{skuId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) + localVarPath := localBasePath + "/stock_locations/{stockLocationId}/stock_transfers" + localVarPath = strings.Replace(localVarPath, "{"+"stockLocationId"+"}", url.PathEscape(parameterValueToString(r.stockLocationId, "stockLocationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -14375,48 +30843,48 @@ func (a *HasManyApiService) GETSkuIdAttachmentsExecute(r HasManyApiGETSkuIdAttac return localVarHTTPResponse, nil } -type HasManyApiGETSkuIdDeliveryLeadTimesRequest struct { - ctx context.Context - ApiService *HasManyApiService - skuId interface{} +type HasManyApiGETStockLocationIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + stockLocationId interface{} } -func (r HasManyApiGETSkuIdDeliveryLeadTimesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSkuIdDeliveryLeadTimesExecute(r) +func (r HasManyApiGETStockLocationIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockLocationIdVersionsExecute(r) } /* -GETSkuIdDeliveryLeadTimes Retrieve the delivery lead times associated to the SKU +GETStockLocationIdVersions Retrieve the versions associated to the stock location -Retrieve the delivery lead times associated to the SKU +Retrieve the versions associated to the stock location @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param skuId The resource's id - @return HasManyApiGETSkuIdDeliveryLeadTimesRequest + @param stockLocationId The resource's id + @return HasManyApiGETStockLocationIdVersionsRequest */ -func (a *HasManyApiService) GETSkuIdDeliveryLeadTimes(ctx context.Context, skuId interface{}) HasManyApiGETSkuIdDeliveryLeadTimesRequest { - return HasManyApiGETSkuIdDeliveryLeadTimesRequest{ - ApiService: a, - ctx: ctx, - skuId: skuId, +func (a *HasManyApiService) GETStockLocationIdVersions(ctx context.Context, stockLocationId interface{}) HasManyApiGETStockLocationIdVersionsRequest { + return HasManyApiGETStockLocationIdVersionsRequest{ + ApiService: a, + ctx: ctx, + stockLocationId: stockLocationId, } } // Execute executes the request -func (a *HasManyApiService) GETSkuIdDeliveryLeadTimesExecute(r HasManyApiGETSkuIdDeliveryLeadTimesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETStockLocationIdVersionsExecute(r HasManyApiGETStockLocationIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuIdDeliveryLeadTimes") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockLocationIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/skus/{skuId}/delivery_lead_times" - localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) + localVarPath := localBasePath + "/stock_locations/{stockLocationId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"stockLocationId"+"}", url.PathEscape(parameterValueToString(r.stockLocationId, "stockLocationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -14467,48 +30935,48 @@ func (a *HasManyApiService) GETSkuIdDeliveryLeadTimesExecute(r HasManyApiGETSkuI return localVarHTTPResponse, nil } -type HasManyApiGETSkuIdPricesRequest struct { - ctx context.Context - ApiService *HasManyApiService - skuId interface{} +type HasManyApiGETStockTransferIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + stockTransferId interface{} } -func (r HasManyApiGETSkuIdPricesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSkuIdPricesExecute(r) +func (r HasManyApiGETStockTransferIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockTransferIdAttachmentsExecute(r) } /* -GETSkuIdPrices Retrieve the prices associated to the SKU +GETStockTransferIdAttachments Retrieve the attachments associated to the stock transfer -Retrieve the prices associated to the SKU +Retrieve the attachments associated to the stock transfer @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param skuId The resource's id - @return HasManyApiGETSkuIdPricesRequest + @param stockTransferId The resource's id + @return HasManyApiGETStockTransferIdAttachmentsRequest */ -func (a *HasManyApiService) GETSkuIdPrices(ctx context.Context, skuId interface{}) HasManyApiGETSkuIdPricesRequest { - return HasManyApiGETSkuIdPricesRequest{ - ApiService: a, - ctx: ctx, - skuId: skuId, +func (a *HasManyApiService) GETStockTransferIdAttachments(ctx context.Context, stockTransferId interface{}) HasManyApiGETStockTransferIdAttachmentsRequest { + return HasManyApiGETStockTransferIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + stockTransferId: stockTransferId, } } // Execute executes the request -func (a *HasManyApiService) GETSkuIdPricesExecute(r HasManyApiGETSkuIdPricesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETStockTransferIdAttachmentsExecute(r HasManyApiGETStockTransferIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuIdPrices") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockTransferIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/skus/{skuId}/prices" - localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) + localVarPath := localBasePath + "/stock_transfers/{stockTransferId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"stockTransferId"+"}", url.PathEscape(parameterValueToString(r.stockTransferId, "stockTransferId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -14559,48 +31027,48 @@ func (a *HasManyApiService) GETSkuIdPricesExecute(r HasManyApiGETSkuIdPricesRequ return localVarHTTPResponse, nil } -type HasManyApiGETSkuIdSkuOptionsRequest struct { - ctx context.Context - ApiService *HasManyApiService - skuId interface{} +type HasManyApiGETStockTransferIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + stockTransferId interface{} } -func (r HasManyApiGETSkuIdSkuOptionsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSkuIdSkuOptionsExecute(r) +func (r HasManyApiGETStockTransferIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockTransferIdEventsExecute(r) } /* -GETSkuIdSkuOptions Retrieve the sku options associated to the SKU +GETStockTransferIdEvents Retrieve the events associated to the stock transfer -Retrieve the sku options associated to the SKU +Retrieve the events associated to the stock transfer @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param skuId The resource's id - @return HasManyApiGETSkuIdSkuOptionsRequest + @param stockTransferId The resource's id + @return HasManyApiGETStockTransferIdEventsRequest */ -func (a *HasManyApiService) GETSkuIdSkuOptions(ctx context.Context, skuId interface{}) HasManyApiGETSkuIdSkuOptionsRequest { - return HasManyApiGETSkuIdSkuOptionsRequest{ - ApiService: a, - ctx: ctx, - skuId: skuId, +func (a *HasManyApiService) GETStockTransferIdEvents(ctx context.Context, stockTransferId interface{}) HasManyApiGETStockTransferIdEventsRequest { + return HasManyApiGETStockTransferIdEventsRequest{ + ApiService: a, + ctx: ctx, + stockTransferId: stockTransferId, } } // Execute executes the request -func (a *HasManyApiService) GETSkuIdSkuOptionsExecute(r HasManyApiGETSkuIdSkuOptionsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETStockTransferIdEventsExecute(r HasManyApiGETStockTransferIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuIdSkuOptions") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockTransferIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/skus/{skuId}/sku_options" - localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) + localVarPath := localBasePath + "/stock_transfers/{stockTransferId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"stockTransferId"+"}", url.PathEscape(parameterValueToString(r.stockTransferId, "stockTransferId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -14651,48 +31119,48 @@ func (a *HasManyApiService) GETSkuIdSkuOptionsExecute(r HasManyApiGETSkuIdSkuOpt return localVarHTTPResponse, nil } -type HasManyApiGETSkuIdStockItemsRequest struct { - ctx context.Context - ApiService *HasManyApiService - skuId interface{} +type HasManyApiGETStockTransferIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + stockTransferId interface{} } -func (r HasManyApiGETSkuIdStockItemsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSkuIdStockItemsExecute(r) +func (r HasManyApiGETStockTransferIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockTransferIdVersionsExecute(r) } /* -GETSkuIdStockItems Retrieve the stock items associated to the SKU +GETStockTransferIdVersions Retrieve the versions associated to the stock transfer -Retrieve the stock items associated to the SKU +Retrieve the versions associated to the stock transfer @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param skuId The resource's id - @return HasManyApiGETSkuIdStockItemsRequest + @param stockTransferId The resource's id + @return HasManyApiGETStockTransferIdVersionsRequest */ -func (a *HasManyApiService) GETSkuIdStockItems(ctx context.Context, skuId interface{}) HasManyApiGETSkuIdStockItemsRequest { - return HasManyApiGETSkuIdStockItemsRequest{ - ApiService: a, - ctx: ctx, - skuId: skuId, +func (a *HasManyApiService) GETStockTransferIdVersions(ctx context.Context, stockTransferId interface{}) HasManyApiGETStockTransferIdVersionsRequest { + return HasManyApiGETStockTransferIdVersionsRequest{ + ApiService: a, + ctx: ctx, + stockTransferId: stockTransferId, } } // Execute executes the request -func (a *HasManyApiService) GETSkuIdStockItemsExecute(r HasManyApiGETSkuIdStockItemsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETStockTransferIdVersionsExecute(r HasManyApiGETStockTransferIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuIdStockItems") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockTransferIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/skus/{skuId}/stock_items" - localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) + localVarPath := localBasePath + "/stock_transfers/{stockTransferId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"stockTransferId"+"}", url.PathEscape(parameterValueToString(r.stockTransferId, "stockTransferId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -14743,48 +31211,48 @@ func (a *HasManyApiService) GETSkuIdStockItemsExecute(r HasManyApiGETSkuIdStockI return localVarHTTPResponse, nil } -type HasManyApiGETSkuListIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - skuListId interface{} +type HasManyApiGETStripeGatewayIdPaymentMethodsRequest struct { + ctx context.Context + ApiService *HasManyApiService + stripeGatewayId interface{} } -func (r HasManyApiGETSkuListIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSkuListIdAttachmentsExecute(r) +func (r HasManyApiGETStripeGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStripeGatewayIdPaymentMethodsExecute(r) } /* -GETSkuListIdAttachments Retrieve the attachments associated to the SKU list +GETStripeGatewayIdPaymentMethods Retrieve the payment methods associated to the stripe gateway -Retrieve the attachments associated to the SKU list +Retrieve the payment methods associated to the stripe gateway @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param skuListId The resource's id - @return HasManyApiGETSkuListIdAttachmentsRequest + @param stripeGatewayId The resource's id + @return HasManyApiGETStripeGatewayIdPaymentMethodsRequest */ -func (a *HasManyApiService) GETSkuListIdAttachments(ctx context.Context, skuListId interface{}) HasManyApiGETSkuListIdAttachmentsRequest { - return HasManyApiGETSkuListIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - skuListId: skuListId, +func (a *HasManyApiService) GETStripeGatewayIdPaymentMethods(ctx context.Context, stripeGatewayId interface{}) HasManyApiGETStripeGatewayIdPaymentMethodsRequest { + return HasManyApiGETStripeGatewayIdPaymentMethodsRequest{ + ApiService: a, + ctx: ctx, + stripeGatewayId: stripeGatewayId, } } // Execute executes the request -func (a *HasManyApiService) GETSkuListIdAttachmentsExecute(r HasManyApiGETSkuListIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETStripeGatewayIdPaymentMethodsExecute(r HasManyApiGETStripeGatewayIdPaymentMethodsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuListIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStripeGatewayIdPaymentMethods") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/sku_lists/{skuListId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"skuListId"+"}", url.PathEscape(parameterValueToString(r.skuListId, "skuListId")), -1) + localVarPath := localBasePath + "/stripe_gateways/{stripeGatewayId}/payment_methods" + localVarPath = strings.Replace(localVarPath, "{"+"stripeGatewayId"+"}", url.PathEscape(parameterValueToString(r.stripeGatewayId, "stripeGatewayId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -14835,48 +31303,48 @@ func (a *HasManyApiService) GETSkuListIdAttachmentsExecute(r HasManyApiGETSkuLis return localVarHTTPResponse, nil } -type HasManyApiGETSkuListIdBundlesRequest struct { - ctx context.Context - ApiService *HasManyApiService - skuListId interface{} +type HasManyApiGETStripeGatewayIdStripePaymentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + stripeGatewayId interface{} } -func (r HasManyApiGETSkuListIdBundlesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSkuListIdBundlesExecute(r) +func (r HasManyApiGETStripeGatewayIdStripePaymentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStripeGatewayIdStripePaymentsExecute(r) } /* -GETSkuListIdBundles Retrieve the bundles associated to the SKU list +GETStripeGatewayIdStripePayments Retrieve the stripe payments associated to the stripe gateway -Retrieve the bundles associated to the SKU list +Retrieve the stripe payments associated to the stripe gateway @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param skuListId The resource's id - @return HasManyApiGETSkuListIdBundlesRequest + @param stripeGatewayId The resource's id + @return HasManyApiGETStripeGatewayIdStripePaymentsRequest */ -func (a *HasManyApiService) GETSkuListIdBundles(ctx context.Context, skuListId interface{}) HasManyApiGETSkuListIdBundlesRequest { - return HasManyApiGETSkuListIdBundlesRequest{ - ApiService: a, - ctx: ctx, - skuListId: skuListId, +func (a *HasManyApiService) GETStripeGatewayIdStripePayments(ctx context.Context, stripeGatewayId interface{}) HasManyApiGETStripeGatewayIdStripePaymentsRequest { + return HasManyApiGETStripeGatewayIdStripePaymentsRequest{ + ApiService: a, + ctx: ctx, + stripeGatewayId: stripeGatewayId, } } // Execute executes the request -func (a *HasManyApiService) GETSkuListIdBundlesExecute(r HasManyApiGETSkuListIdBundlesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETStripeGatewayIdStripePaymentsExecute(r HasManyApiGETStripeGatewayIdStripePaymentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuListIdBundles") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStripeGatewayIdStripePayments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/sku_lists/{skuListId}/bundles" - localVarPath = strings.Replace(localVarPath, "{"+"skuListId"+"}", url.PathEscape(parameterValueToString(r.skuListId, "skuListId")), -1) + localVarPath := localBasePath + "/stripe_gateways/{stripeGatewayId}/stripe_payments" + localVarPath = strings.Replace(localVarPath, "{"+"stripeGatewayId"+"}", url.PathEscape(parameterValueToString(r.stripeGatewayId, "stripeGatewayId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -14927,48 +31395,48 @@ func (a *HasManyApiService) GETSkuListIdBundlesExecute(r HasManyApiGETSkuListIdB return localVarHTTPResponse, nil } -type HasManyApiGETSkuListIdSkuListItemsRequest struct { - ctx context.Context - ApiService *HasManyApiService - skuListId interface{} +type HasManyApiGETStripeGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + stripeGatewayId interface{} } -func (r HasManyApiGETSkuListIdSkuListItemsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSkuListIdSkuListItemsExecute(r) +func (r HasManyApiGETStripeGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStripeGatewayIdVersionsExecute(r) } /* -GETSkuListIdSkuListItems Retrieve the sku list items associated to the SKU list +GETStripeGatewayIdVersions Retrieve the versions associated to the stripe gateway -Retrieve the sku list items associated to the SKU list +Retrieve the versions associated to the stripe gateway @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param skuListId The resource's id - @return HasManyApiGETSkuListIdSkuListItemsRequest + @param stripeGatewayId The resource's id + @return HasManyApiGETStripeGatewayIdVersionsRequest */ -func (a *HasManyApiService) GETSkuListIdSkuListItems(ctx context.Context, skuListId interface{}) HasManyApiGETSkuListIdSkuListItemsRequest { - return HasManyApiGETSkuListIdSkuListItemsRequest{ - ApiService: a, - ctx: ctx, - skuListId: skuListId, +func (a *HasManyApiService) GETStripeGatewayIdVersions(ctx context.Context, stripeGatewayId interface{}) HasManyApiGETStripeGatewayIdVersionsRequest { + return HasManyApiGETStripeGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + stripeGatewayId: stripeGatewayId, } } // Execute executes the request -func (a *HasManyApiService) GETSkuListIdSkuListItemsExecute(r HasManyApiGETSkuListIdSkuListItemsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETStripeGatewayIdVersionsExecute(r HasManyApiGETStripeGatewayIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuListIdSkuListItems") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStripeGatewayIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/sku_lists/{skuListId}/sku_list_items" - localVarPath = strings.Replace(localVarPath, "{"+"skuListId"+"}", url.PathEscape(parameterValueToString(r.skuListId, "skuListId")), -1) + localVarPath := localBasePath + "/stripe_gateways/{stripeGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"stripeGatewayId"+"}", url.PathEscape(parameterValueToString(r.stripeGatewayId, "stripeGatewayId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -15019,48 +31487,48 @@ func (a *HasManyApiService) GETSkuListIdSkuListItemsExecute(r HasManyApiGETSkuLi return localVarHTTPResponse, nil } -type HasManyApiGETSkuListIdSkusRequest struct { - ctx context.Context - ApiService *HasManyApiService - skuListId interface{} +type HasManyApiGETStripePaymentIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + stripePaymentId interface{} } -func (r HasManyApiGETSkuListIdSkusRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSkuListIdSkusExecute(r) +func (r HasManyApiGETStripePaymentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStripePaymentIdVersionsExecute(r) } /* -GETSkuListIdSkus Retrieve the skus associated to the SKU list +GETStripePaymentIdVersions Retrieve the versions associated to the stripe payment -Retrieve the skus associated to the SKU list +Retrieve the versions associated to the stripe payment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param skuListId The resource's id - @return HasManyApiGETSkuListIdSkusRequest + @param stripePaymentId The resource's id + @return HasManyApiGETStripePaymentIdVersionsRequest */ -func (a *HasManyApiService) GETSkuListIdSkus(ctx context.Context, skuListId interface{}) HasManyApiGETSkuListIdSkusRequest { - return HasManyApiGETSkuListIdSkusRequest{ - ApiService: a, - ctx: ctx, - skuListId: skuListId, +func (a *HasManyApiService) GETStripePaymentIdVersions(ctx context.Context, stripePaymentId interface{}) HasManyApiGETStripePaymentIdVersionsRequest { + return HasManyApiGETStripePaymentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + stripePaymentId: stripePaymentId, } } // Execute executes the request -func (a *HasManyApiService) GETSkuListIdSkusExecute(r HasManyApiGETSkuListIdSkusRequest) (*http.Response, error) { +func (a *HasManyApiService) GETStripePaymentIdVersionsExecute(r HasManyApiGETStripePaymentIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuListIdSkus") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStripePaymentIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/sku_lists/{skuListId}/skus" - localVarPath = strings.Replace(localVarPath, "{"+"skuListId"+"}", url.PathEscape(parameterValueToString(r.skuListId, "skuListId")), -1) + localVarPath := localBasePath + "/stripe_payments/{stripePaymentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"stripePaymentId"+"}", url.PathEscape(parameterValueToString(r.stripePaymentId, "stripePaymentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -15111,48 +31579,48 @@ func (a *HasManyApiService) GETSkuListIdSkusExecute(r HasManyApiGETSkuListIdSkus return localVarHTTPResponse, nil } -type HasManyApiGETSkuListPromotionRuleIdSkusRequest struct { - ctx context.Context - ApiService *HasManyApiService - skuListPromotionRuleId interface{} +type HasManyApiGETSubscriptionModelIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + subscriptionModelId interface{} } -func (r HasManyApiGETSkuListPromotionRuleIdSkusRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSkuListPromotionRuleIdSkusExecute(r) +func (r HasManyApiGETSubscriptionModelIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSubscriptionModelIdAttachmentsExecute(r) } /* -GETSkuListPromotionRuleIdSkus Retrieve the skus associated to the SKU list promotion rule +GETSubscriptionModelIdAttachments Retrieve the attachments associated to the subscription model -Retrieve the skus associated to the SKU list promotion rule +Retrieve the attachments associated to the subscription model @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param skuListPromotionRuleId The resource's id - @return HasManyApiGETSkuListPromotionRuleIdSkusRequest + @param subscriptionModelId The resource's id + @return HasManyApiGETSubscriptionModelIdAttachmentsRequest */ -func (a *HasManyApiService) GETSkuListPromotionRuleIdSkus(ctx context.Context, skuListPromotionRuleId interface{}) HasManyApiGETSkuListPromotionRuleIdSkusRequest { - return HasManyApiGETSkuListPromotionRuleIdSkusRequest{ - ApiService: a, - ctx: ctx, - skuListPromotionRuleId: skuListPromotionRuleId, +func (a *HasManyApiService) GETSubscriptionModelIdAttachments(ctx context.Context, subscriptionModelId interface{}) HasManyApiGETSubscriptionModelIdAttachmentsRequest { + return HasManyApiGETSubscriptionModelIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + subscriptionModelId: subscriptionModelId, } } // Execute executes the request -func (a *HasManyApiService) GETSkuListPromotionRuleIdSkusExecute(r HasManyApiGETSkuListPromotionRuleIdSkusRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSubscriptionModelIdAttachmentsExecute(r HasManyApiGETSubscriptionModelIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuListPromotionRuleIdSkus") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSubscriptionModelIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/sku_list_promotion_rules/{skuListPromotionRuleId}/skus" - localVarPath = strings.Replace(localVarPath, "{"+"skuListPromotionRuleId"+"}", url.PathEscape(parameterValueToString(r.skuListPromotionRuleId, "skuListPromotionRuleId")), -1) + localVarPath := localBasePath + "/subscription_models/{subscriptionModelId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"subscriptionModelId"+"}", url.PathEscape(parameterValueToString(r.subscriptionModelId, "subscriptionModelId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -15203,48 +31671,48 @@ func (a *HasManyApiService) GETSkuListPromotionRuleIdSkusExecute(r HasManyApiGET return localVarHTTPResponse, nil } -type HasManyApiGETSkuOptionIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - skuOptionId interface{} +type HasManyApiGETSubscriptionModelIdMarketsRequest struct { + ctx context.Context + ApiService *HasManyApiService + subscriptionModelId interface{} } -func (r HasManyApiGETSkuOptionIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSkuOptionIdAttachmentsExecute(r) +func (r HasManyApiGETSubscriptionModelIdMarketsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSubscriptionModelIdMarketsExecute(r) } /* -GETSkuOptionIdAttachments Retrieve the attachments associated to the SKU option +GETSubscriptionModelIdMarkets Retrieve the markets associated to the subscription model -Retrieve the attachments associated to the SKU option +Retrieve the markets associated to the subscription model @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param skuOptionId The resource's id - @return HasManyApiGETSkuOptionIdAttachmentsRequest + @param subscriptionModelId The resource's id + @return HasManyApiGETSubscriptionModelIdMarketsRequest */ -func (a *HasManyApiService) GETSkuOptionIdAttachments(ctx context.Context, skuOptionId interface{}) HasManyApiGETSkuOptionIdAttachmentsRequest { - return HasManyApiGETSkuOptionIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - skuOptionId: skuOptionId, +func (a *HasManyApiService) GETSubscriptionModelIdMarkets(ctx context.Context, subscriptionModelId interface{}) HasManyApiGETSubscriptionModelIdMarketsRequest { + return HasManyApiGETSubscriptionModelIdMarketsRequest{ + ApiService: a, + ctx: ctx, + subscriptionModelId: subscriptionModelId, } } // Execute executes the request -func (a *HasManyApiService) GETSkuOptionIdAttachmentsExecute(r HasManyApiGETSkuOptionIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSubscriptionModelIdMarketsExecute(r HasManyApiGETSubscriptionModelIdMarketsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSkuOptionIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSubscriptionModelIdMarkets") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/sku_options/{skuOptionId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"skuOptionId"+"}", url.PathEscape(parameterValueToString(r.skuOptionId, "skuOptionId")), -1) + localVarPath := localBasePath + "/subscription_models/{subscriptionModelId}/markets" + localVarPath = strings.Replace(localVarPath, "{"+"subscriptionModelId"+"}", url.PathEscape(parameterValueToString(r.subscriptionModelId, "subscriptionModelId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -15295,48 +31763,48 @@ func (a *HasManyApiService) GETSkuOptionIdAttachmentsExecute(r HasManyApiGETSkuO return localVarHTTPResponse, nil } -type HasManyApiGETStockItemIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - stockItemId interface{} +type HasManyApiGETSubscriptionModelIdOrderSubscriptionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + subscriptionModelId interface{} } -func (r HasManyApiGETStockItemIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETStockItemIdAttachmentsExecute(r) +func (r HasManyApiGETSubscriptionModelIdOrderSubscriptionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSubscriptionModelIdOrderSubscriptionsExecute(r) } /* -GETStockItemIdAttachments Retrieve the attachments associated to the stock item +GETSubscriptionModelIdOrderSubscriptions Retrieve the order subscriptions associated to the subscription model -Retrieve the attachments associated to the stock item +Retrieve the order subscriptions associated to the subscription model @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stockItemId The resource's id - @return HasManyApiGETStockItemIdAttachmentsRequest + @param subscriptionModelId The resource's id + @return HasManyApiGETSubscriptionModelIdOrderSubscriptionsRequest */ -func (a *HasManyApiService) GETStockItemIdAttachments(ctx context.Context, stockItemId interface{}) HasManyApiGETStockItemIdAttachmentsRequest { - return HasManyApiGETStockItemIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - stockItemId: stockItemId, +func (a *HasManyApiService) GETSubscriptionModelIdOrderSubscriptions(ctx context.Context, subscriptionModelId interface{}) HasManyApiGETSubscriptionModelIdOrderSubscriptionsRequest { + return HasManyApiGETSubscriptionModelIdOrderSubscriptionsRequest{ + ApiService: a, + ctx: ctx, + subscriptionModelId: subscriptionModelId, } } // Execute executes the request -func (a *HasManyApiService) GETStockItemIdAttachmentsExecute(r HasManyApiGETStockItemIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETSubscriptionModelIdOrderSubscriptionsExecute(r HasManyApiGETSubscriptionModelIdOrderSubscriptionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockItemIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSubscriptionModelIdOrderSubscriptions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/stock_items/{stockItemId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"stockItemId"+"}", url.PathEscape(parameterValueToString(r.stockItemId, "stockItemId")), -1) + localVarPath := localBasePath + "/subscription_models/{subscriptionModelId}/order_subscriptions" + localVarPath = strings.Replace(localVarPath, "{"+"subscriptionModelId"+"}", url.PathEscape(parameterValueToString(r.subscriptionModelId, "subscriptionModelId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -15387,48 +31855,48 @@ func (a *HasManyApiService) GETStockItemIdAttachmentsExecute(r HasManyApiGETStoc return localVarHTTPResponse, nil } -type HasManyApiGETStockLocationIdAttachmentsRequest struct { +type HasManyApiGETTaxCalculatorIdAttachmentsRequest struct { ctx context.Context ApiService *HasManyApiService - stockLocationId interface{} + taxCalculatorId interface{} } -func (r HasManyApiGETStockLocationIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETStockLocationIdAttachmentsExecute(r) +func (r HasManyApiGETTaxCalculatorIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTaxCalculatorIdAttachmentsExecute(r) } /* -GETStockLocationIdAttachments Retrieve the attachments associated to the stock location +GETTaxCalculatorIdAttachments Retrieve the attachments associated to the tax calculator -Retrieve the attachments associated to the stock location +Retrieve the attachments associated to the tax calculator @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stockLocationId The resource's id - @return HasManyApiGETStockLocationIdAttachmentsRequest + @param taxCalculatorId The resource's id + @return HasManyApiGETTaxCalculatorIdAttachmentsRequest */ -func (a *HasManyApiService) GETStockLocationIdAttachments(ctx context.Context, stockLocationId interface{}) HasManyApiGETStockLocationIdAttachmentsRequest { - return HasManyApiGETStockLocationIdAttachmentsRequest{ +func (a *HasManyApiService) GETTaxCalculatorIdAttachments(ctx context.Context, taxCalculatorId interface{}) HasManyApiGETTaxCalculatorIdAttachmentsRequest { + return HasManyApiGETTaxCalculatorIdAttachmentsRequest{ ApiService: a, ctx: ctx, - stockLocationId: stockLocationId, + taxCalculatorId: taxCalculatorId, } } // Execute executes the request -func (a *HasManyApiService) GETStockLocationIdAttachmentsExecute(r HasManyApiGETStockLocationIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETTaxCalculatorIdAttachmentsExecute(r HasManyApiGETTaxCalculatorIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockLocationIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETTaxCalculatorIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/stock_locations/{stockLocationId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"stockLocationId"+"}", url.PathEscape(parameterValueToString(r.stockLocationId, "stockLocationId")), -1) + localVarPath := localBasePath + "/tax_calculators/{taxCalculatorId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"taxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.taxCalculatorId, "taxCalculatorId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -15479,48 +31947,48 @@ func (a *HasManyApiService) GETStockLocationIdAttachmentsExecute(r HasManyApiGET return localVarHTTPResponse, nil } -type HasManyApiGETStockLocationIdInventoryReturnLocationsRequest struct { +type HasManyApiGETTaxCalculatorIdMarketsRequest struct { ctx context.Context ApiService *HasManyApiService - stockLocationId interface{} + taxCalculatorId interface{} } -func (r HasManyApiGETStockLocationIdInventoryReturnLocationsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETStockLocationIdInventoryReturnLocationsExecute(r) +func (r HasManyApiGETTaxCalculatorIdMarketsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTaxCalculatorIdMarketsExecute(r) } /* -GETStockLocationIdInventoryReturnLocations Retrieve the inventory return locations associated to the stock location +GETTaxCalculatorIdMarkets Retrieve the markets associated to the tax calculator -Retrieve the inventory return locations associated to the stock location +Retrieve the markets associated to the tax calculator @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stockLocationId The resource's id - @return HasManyApiGETStockLocationIdInventoryReturnLocationsRequest + @param taxCalculatorId The resource's id + @return HasManyApiGETTaxCalculatorIdMarketsRequest */ -func (a *HasManyApiService) GETStockLocationIdInventoryReturnLocations(ctx context.Context, stockLocationId interface{}) HasManyApiGETStockLocationIdInventoryReturnLocationsRequest { - return HasManyApiGETStockLocationIdInventoryReturnLocationsRequest{ +func (a *HasManyApiService) GETTaxCalculatorIdMarkets(ctx context.Context, taxCalculatorId interface{}) HasManyApiGETTaxCalculatorIdMarketsRequest { + return HasManyApiGETTaxCalculatorIdMarketsRequest{ ApiService: a, ctx: ctx, - stockLocationId: stockLocationId, + taxCalculatorId: taxCalculatorId, } } // Execute executes the request -func (a *HasManyApiService) GETStockLocationIdInventoryReturnLocationsExecute(r HasManyApiGETStockLocationIdInventoryReturnLocationsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETTaxCalculatorIdMarketsExecute(r HasManyApiGETTaxCalculatorIdMarketsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockLocationIdInventoryReturnLocations") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETTaxCalculatorIdMarkets") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/stock_locations/{stockLocationId}/inventory_return_locations" - localVarPath = strings.Replace(localVarPath, "{"+"stockLocationId"+"}", url.PathEscape(parameterValueToString(r.stockLocationId, "stockLocationId")), -1) + localVarPath := localBasePath + "/tax_calculators/{taxCalculatorId}/markets" + localVarPath = strings.Replace(localVarPath, "{"+"taxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.taxCalculatorId, "taxCalculatorId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -15571,48 +32039,48 @@ func (a *HasManyApiService) GETStockLocationIdInventoryReturnLocationsExecute(r return localVarHTTPResponse, nil } -type HasManyApiGETStockLocationIdInventoryStockLocationsRequest struct { +type HasManyApiGETTaxCalculatorIdVersionsRequest struct { ctx context.Context ApiService *HasManyApiService - stockLocationId interface{} + taxCalculatorId interface{} } -func (r HasManyApiGETStockLocationIdInventoryStockLocationsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETStockLocationIdInventoryStockLocationsExecute(r) +func (r HasManyApiGETTaxCalculatorIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTaxCalculatorIdVersionsExecute(r) } /* -GETStockLocationIdInventoryStockLocations Retrieve the inventory stock locations associated to the stock location +GETTaxCalculatorIdVersions Retrieve the versions associated to the tax calculator -Retrieve the inventory stock locations associated to the stock location +Retrieve the versions associated to the tax calculator @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stockLocationId The resource's id - @return HasManyApiGETStockLocationIdInventoryStockLocationsRequest + @param taxCalculatorId The resource's id + @return HasManyApiGETTaxCalculatorIdVersionsRequest */ -func (a *HasManyApiService) GETStockLocationIdInventoryStockLocations(ctx context.Context, stockLocationId interface{}) HasManyApiGETStockLocationIdInventoryStockLocationsRequest { - return HasManyApiGETStockLocationIdInventoryStockLocationsRequest{ +func (a *HasManyApiService) GETTaxCalculatorIdVersions(ctx context.Context, taxCalculatorId interface{}) HasManyApiGETTaxCalculatorIdVersionsRequest { + return HasManyApiGETTaxCalculatorIdVersionsRequest{ ApiService: a, ctx: ctx, - stockLocationId: stockLocationId, + taxCalculatorId: taxCalculatorId, } } // Execute executes the request -func (a *HasManyApiService) GETStockLocationIdInventoryStockLocationsExecute(r HasManyApiGETStockLocationIdInventoryStockLocationsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETTaxCalculatorIdVersionsExecute(r HasManyApiGETTaxCalculatorIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockLocationIdInventoryStockLocations") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETTaxCalculatorIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/stock_locations/{stockLocationId}/inventory_stock_locations" - localVarPath = strings.Replace(localVarPath, "{"+"stockLocationId"+"}", url.PathEscape(parameterValueToString(r.stockLocationId, "stockLocationId")), -1) + localVarPath := localBasePath + "/tax_calculators/{taxCalculatorId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"taxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.taxCalculatorId, "taxCalculatorId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -15663,48 +32131,48 @@ func (a *HasManyApiService) GETStockLocationIdInventoryStockLocationsExecute(r H return localVarHTTPResponse, nil } -type HasManyApiGETStockLocationIdStockItemsRequest struct { - ctx context.Context - ApiService *HasManyApiService - stockLocationId interface{} +type HasManyApiGETTaxCategoryIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + taxCategoryId interface{} } -func (r HasManyApiGETStockLocationIdStockItemsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETStockLocationIdStockItemsExecute(r) +func (r HasManyApiGETTaxCategoryIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTaxCategoryIdAttachmentsExecute(r) } /* -GETStockLocationIdStockItems Retrieve the stock items associated to the stock location +GETTaxCategoryIdAttachments Retrieve the attachments associated to the tax category -Retrieve the stock items associated to the stock location +Retrieve the attachments associated to the tax category @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stockLocationId The resource's id - @return HasManyApiGETStockLocationIdStockItemsRequest + @param taxCategoryId The resource's id + @return HasManyApiGETTaxCategoryIdAttachmentsRequest */ -func (a *HasManyApiService) GETStockLocationIdStockItems(ctx context.Context, stockLocationId interface{}) HasManyApiGETStockLocationIdStockItemsRequest { - return HasManyApiGETStockLocationIdStockItemsRequest{ - ApiService: a, - ctx: ctx, - stockLocationId: stockLocationId, +func (a *HasManyApiService) GETTaxCategoryIdAttachments(ctx context.Context, taxCategoryId interface{}) HasManyApiGETTaxCategoryIdAttachmentsRequest { + return HasManyApiGETTaxCategoryIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + taxCategoryId: taxCategoryId, } } // Execute executes the request -func (a *HasManyApiService) GETStockLocationIdStockItemsExecute(r HasManyApiGETStockLocationIdStockItemsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETTaxCategoryIdAttachmentsExecute(r HasManyApiGETTaxCategoryIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockLocationIdStockItems") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETTaxCategoryIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/stock_locations/{stockLocationId}/stock_items" - localVarPath = strings.Replace(localVarPath, "{"+"stockLocationId"+"}", url.PathEscape(parameterValueToString(r.stockLocationId, "stockLocationId")), -1) + localVarPath := localBasePath + "/tax_categories/{taxCategoryId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"taxCategoryId"+"}", url.PathEscape(parameterValueToString(r.taxCategoryId, "taxCategoryId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -15755,48 +32223,48 @@ func (a *HasManyApiService) GETStockLocationIdStockItemsExecute(r HasManyApiGETS return localVarHTTPResponse, nil } -type HasManyApiGETStockLocationIdStockTransfersRequest struct { - ctx context.Context - ApiService *HasManyApiService - stockLocationId interface{} +type HasManyApiGETTaxCategoryIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + taxCategoryId interface{} } -func (r HasManyApiGETStockLocationIdStockTransfersRequest) Execute() (*http.Response, error) { - return r.ApiService.GETStockLocationIdStockTransfersExecute(r) +func (r HasManyApiGETTaxCategoryIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTaxCategoryIdVersionsExecute(r) } /* -GETStockLocationIdStockTransfers Retrieve the stock transfers associated to the stock location +GETTaxCategoryIdVersions Retrieve the versions associated to the tax category -Retrieve the stock transfers associated to the stock location +Retrieve the versions associated to the tax category @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stockLocationId The resource's id - @return HasManyApiGETStockLocationIdStockTransfersRequest + @param taxCategoryId The resource's id + @return HasManyApiGETTaxCategoryIdVersionsRequest */ -func (a *HasManyApiService) GETStockLocationIdStockTransfers(ctx context.Context, stockLocationId interface{}) HasManyApiGETStockLocationIdStockTransfersRequest { - return HasManyApiGETStockLocationIdStockTransfersRequest{ - ApiService: a, - ctx: ctx, - stockLocationId: stockLocationId, +func (a *HasManyApiService) GETTaxCategoryIdVersions(ctx context.Context, taxCategoryId interface{}) HasManyApiGETTaxCategoryIdVersionsRequest { + return HasManyApiGETTaxCategoryIdVersionsRequest{ + ApiService: a, + ctx: ctx, + taxCategoryId: taxCategoryId, } } // Execute executes the request -func (a *HasManyApiService) GETStockLocationIdStockTransfersExecute(r HasManyApiGETStockLocationIdStockTransfersRequest) (*http.Response, error) { +func (a *HasManyApiService) GETTaxCategoryIdVersionsExecute(r HasManyApiGETTaxCategoryIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockLocationIdStockTransfers") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETTaxCategoryIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/stock_locations/{stockLocationId}/stock_transfers" - localVarPath = strings.Replace(localVarPath, "{"+"stockLocationId"+"}", url.PathEscape(parameterValueToString(r.stockLocationId, "stockLocationId")), -1) + localVarPath := localBasePath + "/tax_categories/{taxCategoryId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"taxCategoryId"+"}", url.PathEscape(parameterValueToString(r.taxCategoryId, "taxCategoryId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -15847,48 +32315,48 @@ func (a *HasManyApiService) GETStockLocationIdStockTransfersExecute(r HasManyApi return localVarHTTPResponse, nil } -type HasManyApiGETStockTransferIdEventsRequest struct { - ctx context.Context - ApiService *HasManyApiService - stockTransferId interface{} +type HasManyApiGETTaxRuleIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + taxRuleId interface{} } -func (r HasManyApiGETStockTransferIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETStockTransferIdEventsExecute(r) +func (r HasManyApiGETTaxRuleIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTaxRuleIdVersionsExecute(r) } /* -GETStockTransferIdEvents Retrieve the events associated to the stock transfer +GETTaxRuleIdVersions Retrieve the versions associated to the tax rule -Retrieve the events associated to the stock transfer +Retrieve the versions associated to the tax rule @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stockTransferId The resource's id - @return HasManyApiGETStockTransferIdEventsRequest + @param taxRuleId The resource's id + @return HasManyApiGETTaxRuleIdVersionsRequest */ -func (a *HasManyApiService) GETStockTransferIdEvents(ctx context.Context, stockTransferId interface{}) HasManyApiGETStockTransferIdEventsRequest { - return HasManyApiGETStockTransferIdEventsRequest{ - ApiService: a, - ctx: ctx, - stockTransferId: stockTransferId, +func (a *HasManyApiService) GETTaxRuleIdVersions(ctx context.Context, taxRuleId interface{}) HasManyApiGETTaxRuleIdVersionsRequest { + return HasManyApiGETTaxRuleIdVersionsRequest{ + ApiService: a, + ctx: ctx, + taxRuleId: taxRuleId, } } // Execute executes the request -func (a *HasManyApiService) GETStockTransferIdEventsExecute(r HasManyApiGETStockTransferIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETTaxRuleIdVersionsExecute(r HasManyApiGETTaxRuleIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStockTransferIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETTaxRuleIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/stock_transfers/{stockTransferId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"stockTransferId"+"}", url.PathEscape(parameterValueToString(r.stockTransferId, "stockTransferId")), -1) + localVarPath := localBasePath + "/tax_rules/{taxRuleId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"taxRuleId"+"}", url.PathEscape(parameterValueToString(r.taxRuleId, "taxRuleId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -15939,48 +32407,48 @@ func (a *HasManyApiService) GETStockTransferIdEventsExecute(r HasManyApiGETStock return localVarHTTPResponse, nil } -type HasManyApiGETStripeGatewayIdPaymentMethodsRequest struct { +type HasManyApiGETTaxjarAccountIdAttachmentsRequest struct { ctx context.Context ApiService *HasManyApiService - stripeGatewayId interface{} + taxjarAccountId interface{} } -func (r HasManyApiGETStripeGatewayIdPaymentMethodsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETStripeGatewayIdPaymentMethodsExecute(r) +func (r HasManyApiGETTaxjarAccountIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTaxjarAccountIdAttachmentsExecute(r) } /* -GETStripeGatewayIdPaymentMethods Retrieve the payment methods associated to the stripe gateway +GETTaxjarAccountIdAttachments Retrieve the attachments associated to the taxjar account -Retrieve the payment methods associated to the stripe gateway +Retrieve the attachments associated to the taxjar account @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stripeGatewayId The resource's id - @return HasManyApiGETStripeGatewayIdPaymentMethodsRequest + @param taxjarAccountId The resource's id + @return HasManyApiGETTaxjarAccountIdAttachmentsRequest */ -func (a *HasManyApiService) GETStripeGatewayIdPaymentMethods(ctx context.Context, stripeGatewayId interface{}) HasManyApiGETStripeGatewayIdPaymentMethodsRequest { - return HasManyApiGETStripeGatewayIdPaymentMethodsRequest{ +func (a *HasManyApiService) GETTaxjarAccountIdAttachments(ctx context.Context, taxjarAccountId interface{}) HasManyApiGETTaxjarAccountIdAttachmentsRequest { + return HasManyApiGETTaxjarAccountIdAttachmentsRequest{ ApiService: a, ctx: ctx, - stripeGatewayId: stripeGatewayId, + taxjarAccountId: taxjarAccountId, } } // Execute executes the request -func (a *HasManyApiService) GETStripeGatewayIdPaymentMethodsExecute(r HasManyApiGETStripeGatewayIdPaymentMethodsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETTaxjarAccountIdAttachmentsExecute(r HasManyApiGETTaxjarAccountIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStripeGatewayIdPaymentMethods") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETTaxjarAccountIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/stripe_gateways/{stripeGatewayId}/payment_methods" - localVarPath = strings.Replace(localVarPath, "{"+"stripeGatewayId"+"}", url.PathEscape(parameterValueToString(r.stripeGatewayId, "stripeGatewayId")), -1) + localVarPath := localBasePath + "/taxjar_accounts/{taxjarAccountId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"taxjarAccountId"+"}", url.PathEscape(parameterValueToString(r.taxjarAccountId, "taxjarAccountId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -16031,48 +32499,48 @@ func (a *HasManyApiService) GETStripeGatewayIdPaymentMethodsExecute(r HasManyApi return localVarHTTPResponse, nil } -type HasManyApiGETStripeGatewayIdStripePaymentsRequest struct { +type HasManyApiGETTaxjarAccountIdMarketsRequest struct { ctx context.Context ApiService *HasManyApiService - stripeGatewayId interface{} + taxjarAccountId interface{} } -func (r HasManyApiGETStripeGatewayIdStripePaymentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETStripeGatewayIdStripePaymentsExecute(r) +func (r HasManyApiGETTaxjarAccountIdMarketsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTaxjarAccountIdMarketsExecute(r) } /* -GETStripeGatewayIdStripePayments Retrieve the stripe payments associated to the stripe gateway +GETTaxjarAccountIdMarkets Retrieve the markets associated to the taxjar account -Retrieve the stripe payments associated to the stripe gateway +Retrieve the markets associated to the taxjar account @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stripeGatewayId The resource's id - @return HasManyApiGETStripeGatewayIdStripePaymentsRequest + @param taxjarAccountId The resource's id + @return HasManyApiGETTaxjarAccountIdMarketsRequest */ -func (a *HasManyApiService) GETStripeGatewayIdStripePayments(ctx context.Context, stripeGatewayId interface{}) HasManyApiGETStripeGatewayIdStripePaymentsRequest { - return HasManyApiGETStripeGatewayIdStripePaymentsRequest{ +func (a *HasManyApiService) GETTaxjarAccountIdMarkets(ctx context.Context, taxjarAccountId interface{}) HasManyApiGETTaxjarAccountIdMarketsRequest { + return HasManyApiGETTaxjarAccountIdMarketsRequest{ ApiService: a, ctx: ctx, - stripeGatewayId: stripeGatewayId, + taxjarAccountId: taxjarAccountId, } } // Execute executes the request -func (a *HasManyApiService) GETStripeGatewayIdStripePaymentsExecute(r HasManyApiGETStripeGatewayIdStripePaymentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETTaxjarAccountIdMarketsExecute(r HasManyApiGETTaxjarAccountIdMarketsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETStripeGatewayIdStripePayments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETTaxjarAccountIdMarkets") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/stripe_gateways/{stripeGatewayId}/stripe_payments" - localVarPath = strings.Replace(localVarPath, "{"+"stripeGatewayId"+"}", url.PathEscape(parameterValueToString(r.stripeGatewayId, "stripeGatewayId")), -1) + localVarPath := localBasePath + "/taxjar_accounts/{taxjarAccountId}/markets" + localVarPath = strings.Replace(localVarPath, "{"+"taxjarAccountId"+"}", url.PathEscape(parameterValueToString(r.taxjarAccountId, "taxjarAccountId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -16123,48 +32591,48 @@ func (a *HasManyApiService) GETStripeGatewayIdStripePaymentsExecute(r HasManyApi return localVarHTTPResponse, nil } -type HasManyApiGETSubscriptionModelIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - subscriptionModelId interface{} +type HasManyApiGETTaxjarAccountIdTaxCategoriesRequest struct { + ctx context.Context + ApiService *HasManyApiService + taxjarAccountId interface{} } -func (r HasManyApiGETSubscriptionModelIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSubscriptionModelIdAttachmentsExecute(r) +func (r HasManyApiGETTaxjarAccountIdTaxCategoriesRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTaxjarAccountIdTaxCategoriesExecute(r) } /* -GETSubscriptionModelIdAttachments Retrieve the attachments associated to the subscription model +GETTaxjarAccountIdTaxCategories Retrieve the tax categories associated to the taxjar account -Retrieve the attachments associated to the subscription model +Retrieve the tax categories associated to the taxjar account @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param subscriptionModelId The resource's id - @return HasManyApiGETSubscriptionModelIdAttachmentsRequest + @param taxjarAccountId The resource's id + @return HasManyApiGETTaxjarAccountIdTaxCategoriesRequest */ -func (a *HasManyApiService) GETSubscriptionModelIdAttachments(ctx context.Context, subscriptionModelId interface{}) HasManyApiGETSubscriptionModelIdAttachmentsRequest { - return HasManyApiGETSubscriptionModelIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - subscriptionModelId: subscriptionModelId, +func (a *HasManyApiService) GETTaxjarAccountIdTaxCategories(ctx context.Context, taxjarAccountId interface{}) HasManyApiGETTaxjarAccountIdTaxCategoriesRequest { + return HasManyApiGETTaxjarAccountIdTaxCategoriesRequest{ + ApiService: a, + ctx: ctx, + taxjarAccountId: taxjarAccountId, } } // Execute executes the request -func (a *HasManyApiService) GETSubscriptionModelIdAttachmentsExecute(r HasManyApiGETSubscriptionModelIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETTaxjarAccountIdTaxCategoriesExecute(r HasManyApiGETTaxjarAccountIdTaxCategoriesRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSubscriptionModelIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETTaxjarAccountIdTaxCategories") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/subscription_models/{subscriptionModelId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"subscriptionModelId"+"}", url.PathEscape(parameterValueToString(r.subscriptionModelId, "subscriptionModelId")), -1) + localVarPath := localBasePath + "/taxjar_accounts/{taxjarAccountId}/tax_categories" + localVarPath = strings.Replace(localVarPath, "{"+"taxjarAccountId"+"}", url.PathEscape(parameterValueToString(r.taxjarAccountId, "taxjarAccountId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -16215,48 +32683,48 @@ func (a *HasManyApiService) GETSubscriptionModelIdAttachmentsExecute(r HasManyAp return localVarHTTPResponse, nil } -type HasManyApiGETSubscriptionModelIdMarketsRequest struct { - ctx context.Context - ApiService *HasManyApiService - subscriptionModelId interface{} +type HasManyApiGETTaxjarAccountIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + taxjarAccountId interface{} } -func (r HasManyApiGETSubscriptionModelIdMarketsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSubscriptionModelIdMarketsExecute(r) +func (r HasManyApiGETTaxjarAccountIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTaxjarAccountIdVersionsExecute(r) } /* -GETSubscriptionModelIdMarkets Retrieve the markets associated to the subscription model +GETTaxjarAccountIdVersions Retrieve the versions associated to the taxjar account -Retrieve the markets associated to the subscription model +Retrieve the versions associated to the taxjar account - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param subscriptionModelId The resource's id - @return HasManyApiGETSubscriptionModelIdMarketsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param taxjarAccountId The resource's id + @return HasManyApiGETTaxjarAccountIdVersionsRequest */ -func (a *HasManyApiService) GETSubscriptionModelIdMarkets(ctx context.Context, subscriptionModelId interface{}) HasManyApiGETSubscriptionModelIdMarketsRequest { - return HasManyApiGETSubscriptionModelIdMarketsRequest{ - ApiService: a, - ctx: ctx, - subscriptionModelId: subscriptionModelId, +func (a *HasManyApiService) GETTaxjarAccountIdVersions(ctx context.Context, taxjarAccountId interface{}) HasManyApiGETTaxjarAccountIdVersionsRequest { + return HasManyApiGETTaxjarAccountIdVersionsRequest{ + ApiService: a, + ctx: ctx, + taxjarAccountId: taxjarAccountId, } } // Execute executes the request -func (a *HasManyApiService) GETSubscriptionModelIdMarketsExecute(r HasManyApiGETSubscriptionModelIdMarketsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETTaxjarAccountIdVersionsExecute(r HasManyApiGETTaxjarAccountIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSubscriptionModelIdMarkets") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETTaxjarAccountIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/subscription_models/{subscriptionModelId}/markets" - localVarPath = strings.Replace(localVarPath, "{"+"subscriptionModelId"+"}", url.PathEscape(parameterValueToString(r.subscriptionModelId, "subscriptionModelId")), -1) + localVarPath := localBasePath + "/taxjar_accounts/{taxjarAccountId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"taxjarAccountId"+"}", url.PathEscape(parameterValueToString(r.taxjarAccountId, "taxjarAccountId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -16307,48 +32775,48 @@ func (a *HasManyApiService) GETSubscriptionModelIdMarketsExecute(r HasManyApiGET return localVarHTTPResponse, nil } -type HasManyApiGETSubscriptionModelIdOrderSubscriptionsRequest struct { - ctx context.Context - ApiService *HasManyApiService - subscriptionModelId interface{} +type HasManyApiGETTransactionIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + transactionId interface{} } -func (r HasManyApiGETSubscriptionModelIdOrderSubscriptionsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSubscriptionModelIdOrderSubscriptionsExecute(r) +func (r HasManyApiGETTransactionIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTransactionIdAttachmentsExecute(r) } /* -GETSubscriptionModelIdOrderSubscriptions Retrieve the order subscriptions associated to the subscription model +GETTransactionIdAttachments Retrieve the attachments associated to the transaction -Retrieve the order subscriptions associated to the subscription model +Retrieve the attachments associated to the transaction @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param subscriptionModelId The resource's id - @return HasManyApiGETSubscriptionModelIdOrderSubscriptionsRequest + @param transactionId The resource's id + @return HasManyApiGETTransactionIdAttachmentsRequest */ -func (a *HasManyApiService) GETSubscriptionModelIdOrderSubscriptions(ctx context.Context, subscriptionModelId interface{}) HasManyApiGETSubscriptionModelIdOrderSubscriptionsRequest { - return HasManyApiGETSubscriptionModelIdOrderSubscriptionsRequest{ - ApiService: a, - ctx: ctx, - subscriptionModelId: subscriptionModelId, +func (a *HasManyApiService) GETTransactionIdAttachments(ctx context.Context, transactionId interface{}) HasManyApiGETTransactionIdAttachmentsRequest { + return HasManyApiGETTransactionIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + transactionId: transactionId, } } // Execute executes the request -func (a *HasManyApiService) GETSubscriptionModelIdOrderSubscriptionsExecute(r HasManyApiGETSubscriptionModelIdOrderSubscriptionsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETTransactionIdAttachmentsExecute(r HasManyApiGETTransactionIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETSubscriptionModelIdOrderSubscriptions") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETTransactionIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/subscription_models/{subscriptionModelId}/order_subscriptions" - localVarPath = strings.Replace(localVarPath, "{"+"subscriptionModelId"+"}", url.PathEscape(parameterValueToString(r.subscriptionModelId, "subscriptionModelId")), -1) + localVarPath := localBasePath + "/transactions/{transactionId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"transactionId"+"}", url.PathEscape(parameterValueToString(r.transactionId, "transactionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -16399,48 +32867,48 @@ func (a *HasManyApiService) GETSubscriptionModelIdOrderSubscriptionsExecute(r Ha return localVarHTTPResponse, nil } -type HasManyApiGETTaxCalculatorIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - taxCalculatorId interface{} +type HasManyApiGETTransactionIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + transactionId interface{} } -func (r HasManyApiGETTaxCalculatorIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETTaxCalculatorIdAttachmentsExecute(r) +func (r HasManyApiGETTransactionIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTransactionIdEventsExecute(r) } /* -GETTaxCalculatorIdAttachments Retrieve the attachments associated to the tax calculator +GETTransactionIdEvents Retrieve the events associated to the transaction -Retrieve the attachments associated to the tax calculator +Retrieve the events associated to the transaction @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param taxCalculatorId The resource's id - @return HasManyApiGETTaxCalculatorIdAttachmentsRequest + @param transactionId The resource's id + @return HasManyApiGETTransactionIdEventsRequest */ -func (a *HasManyApiService) GETTaxCalculatorIdAttachments(ctx context.Context, taxCalculatorId interface{}) HasManyApiGETTaxCalculatorIdAttachmentsRequest { - return HasManyApiGETTaxCalculatorIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - taxCalculatorId: taxCalculatorId, +func (a *HasManyApiService) GETTransactionIdEvents(ctx context.Context, transactionId interface{}) HasManyApiGETTransactionIdEventsRequest { + return HasManyApiGETTransactionIdEventsRequest{ + ApiService: a, + ctx: ctx, + transactionId: transactionId, } } // Execute executes the request -func (a *HasManyApiService) GETTaxCalculatorIdAttachmentsExecute(r HasManyApiGETTaxCalculatorIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETTransactionIdEventsExecute(r HasManyApiGETTransactionIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETTaxCalculatorIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETTransactionIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/tax_calculators/{taxCalculatorId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"taxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.taxCalculatorId, "taxCalculatorId")), -1) + localVarPath := localBasePath + "/transactions/{transactionId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"transactionId"+"}", url.PathEscape(parameterValueToString(r.transactionId, "transactionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -16491,48 +32959,48 @@ func (a *HasManyApiService) GETTaxCalculatorIdAttachmentsExecute(r HasManyApiGET return localVarHTTPResponse, nil } -type HasManyApiGETTaxCalculatorIdMarketsRequest struct { - ctx context.Context - ApiService *HasManyApiService - taxCalculatorId interface{} +type HasManyApiGETTransactionIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + transactionId interface{} } -func (r HasManyApiGETTaxCalculatorIdMarketsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETTaxCalculatorIdMarketsExecute(r) +func (r HasManyApiGETTransactionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTransactionIdVersionsExecute(r) } /* -GETTaxCalculatorIdMarkets Retrieve the markets associated to the tax calculator +GETTransactionIdVersions Retrieve the versions associated to the transaction -Retrieve the markets associated to the tax calculator +Retrieve the versions associated to the transaction @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param taxCalculatorId The resource's id - @return HasManyApiGETTaxCalculatorIdMarketsRequest + @param transactionId The resource's id + @return HasManyApiGETTransactionIdVersionsRequest */ -func (a *HasManyApiService) GETTaxCalculatorIdMarkets(ctx context.Context, taxCalculatorId interface{}) HasManyApiGETTaxCalculatorIdMarketsRequest { - return HasManyApiGETTaxCalculatorIdMarketsRequest{ - ApiService: a, - ctx: ctx, - taxCalculatorId: taxCalculatorId, +func (a *HasManyApiService) GETTransactionIdVersions(ctx context.Context, transactionId interface{}) HasManyApiGETTransactionIdVersionsRequest { + return HasManyApiGETTransactionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + transactionId: transactionId, } } // Execute executes the request -func (a *HasManyApiService) GETTaxCalculatorIdMarketsExecute(r HasManyApiGETTaxCalculatorIdMarketsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETTransactionIdVersionsExecute(r HasManyApiGETTransactionIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETTaxCalculatorIdMarkets") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETTransactionIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/tax_calculators/{taxCalculatorId}/markets" - localVarPath = strings.Replace(localVarPath, "{"+"taxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.taxCalculatorId, "taxCalculatorId")), -1) + localVarPath := localBasePath + "/transactions/{transactionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"transactionId"+"}", url.PathEscape(parameterValueToString(r.transactionId, "transactionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -16583,48 +33051,48 @@ func (a *HasManyApiService) GETTaxCalculatorIdMarketsExecute(r HasManyApiGETTaxC return localVarHTTPResponse, nil } -type HasManyApiGETTaxCategoryIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - taxCategoryId interface{} +type HasManyApiGETVoidIdAttachmentsRequest struct { + ctx context.Context + ApiService *HasManyApiService + voidId interface{} } -func (r HasManyApiGETTaxCategoryIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETTaxCategoryIdAttachmentsExecute(r) +func (r HasManyApiGETVoidIdAttachmentsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETVoidIdAttachmentsExecute(r) } /* -GETTaxCategoryIdAttachments Retrieve the attachments associated to the tax category +GETVoidIdAttachments Retrieve the attachments associated to the void -Retrieve the attachments associated to the tax category +Retrieve the attachments associated to the void @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param taxCategoryId The resource's id - @return HasManyApiGETTaxCategoryIdAttachmentsRequest + @param voidId The resource's id + @return HasManyApiGETVoidIdAttachmentsRequest */ -func (a *HasManyApiService) GETTaxCategoryIdAttachments(ctx context.Context, taxCategoryId interface{}) HasManyApiGETTaxCategoryIdAttachmentsRequest { - return HasManyApiGETTaxCategoryIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - taxCategoryId: taxCategoryId, +func (a *HasManyApiService) GETVoidIdAttachments(ctx context.Context, voidId interface{}) HasManyApiGETVoidIdAttachmentsRequest { + return HasManyApiGETVoidIdAttachmentsRequest{ + ApiService: a, + ctx: ctx, + voidId: voidId, } } // Execute executes the request -func (a *HasManyApiService) GETTaxCategoryIdAttachmentsExecute(r HasManyApiGETTaxCategoryIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETVoidIdAttachmentsExecute(r HasManyApiGETVoidIdAttachmentsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETTaxCategoryIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETVoidIdAttachments") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/tax_categories/{taxCategoryId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"taxCategoryId"+"}", url.PathEscape(parameterValueToString(r.taxCategoryId, "taxCategoryId")), -1) + localVarPath := localBasePath + "/voids/{voidId}/attachments" + localVarPath = strings.Replace(localVarPath, "{"+"voidId"+"}", url.PathEscape(parameterValueToString(r.voidId, "voidId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -16675,48 +33143,48 @@ func (a *HasManyApiService) GETTaxCategoryIdAttachmentsExecute(r HasManyApiGETTa return localVarHTTPResponse, nil } -type HasManyApiGETTaxjarAccountIdAttachmentsRequest struct { - ctx context.Context - ApiService *HasManyApiService - taxjarAccountId interface{} +type HasManyApiGETVoidIdEventsRequest struct { + ctx context.Context + ApiService *HasManyApiService + voidId interface{} } -func (r HasManyApiGETTaxjarAccountIdAttachmentsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETTaxjarAccountIdAttachmentsExecute(r) +func (r HasManyApiGETVoidIdEventsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETVoidIdEventsExecute(r) } /* -GETTaxjarAccountIdAttachments Retrieve the attachments associated to the taxjar account +GETVoidIdEvents Retrieve the events associated to the void -Retrieve the attachments associated to the taxjar account +Retrieve the events associated to the void @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param taxjarAccountId The resource's id - @return HasManyApiGETTaxjarAccountIdAttachmentsRequest + @param voidId The resource's id + @return HasManyApiGETVoidIdEventsRequest */ -func (a *HasManyApiService) GETTaxjarAccountIdAttachments(ctx context.Context, taxjarAccountId interface{}) HasManyApiGETTaxjarAccountIdAttachmentsRequest { - return HasManyApiGETTaxjarAccountIdAttachmentsRequest{ - ApiService: a, - ctx: ctx, - taxjarAccountId: taxjarAccountId, +func (a *HasManyApiService) GETVoidIdEvents(ctx context.Context, voidId interface{}) HasManyApiGETVoidIdEventsRequest { + return HasManyApiGETVoidIdEventsRequest{ + ApiService: a, + ctx: ctx, + voidId: voidId, } } // Execute executes the request -func (a *HasManyApiService) GETTaxjarAccountIdAttachmentsExecute(r HasManyApiGETTaxjarAccountIdAttachmentsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETVoidIdEventsExecute(r HasManyApiGETVoidIdEventsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETTaxjarAccountIdAttachments") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETVoidIdEvents") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/taxjar_accounts/{taxjarAccountId}/attachments" - localVarPath = strings.Replace(localVarPath, "{"+"taxjarAccountId"+"}", url.PathEscape(parameterValueToString(r.taxjarAccountId, "taxjarAccountId")), -1) + localVarPath := localBasePath + "/voids/{voidId}/events" + localVarPath = strings.Replace(localVarPath, "{"+"voidId"+"}", url.PathEscape(parameterValueToString(r.voidId, "voidId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -16767,48 +33235,48 @@ func (a *HasManyApiService) GETTaxjarAccountIdAttachmentsExecute(r HasManyApiGET return localVarHTTPResponse, nil } -type HasManyApiGETTaxjarAccountIdMarketsRequest struct { - ctx context.Context - ApiService *HasManyApiService - taxjarAccountId interface{} +type HasManyApiGETVoidIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + voidId interface{} } -func (r HasManyApiGETTaxjarAccountIdMarketsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETTaxjarAccountIdMarketsExecute(r) +func (r HasManyApiGETVoidIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETVoidIdVersionsExecute(r) } /* -GETTaxjarAccountIdMarkets Retrieve the markets associated to the taxjar account +GETVoidIdVersions Retrieve the versions associated to the void -Retrieve the markets associated to the taxjar account +Retrieve the versions associated to the void @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param taxjarAccountId The resource's id - @return HasManyApiGETTaxjarAccountIdMarketsRequest + @param voidId The resource's id + @return HasManyApiGETVoidIdVersionsRequest */ -func (a *HasManyApiService) GETTaxjarAccountIdMarkets(ctx context.Context, taxjarAccountId interface{}) HasManyApiGETTaxjarAccountIdMarketsRequest { - return HasManyApiGETTaxjarAccountIdMarketsRequest{ - ApiService: a, - ctx: ctx, - taxjarAccountId: taxjarAccountId, +func (a *HasManyApiService) GETVoidIdVersions(ctx context.Context, voidId interface{}) HasManyApiGETVoidIdVersionsRequest { + return HasManyApiGETVoidIdVersionsRequest{ + ApiService: a, + ctx: ctx, + voidId: voidId, } } // Execute executes the request -func (a *HasManyApiService) GETTaxjarAccountIdMarketsExecute(r HasManyApiGETTaxjarAccountIdMarketsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETVoidIdVersionsExecute(r HasManyApiGETVoidIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETTaxjarAccountIdMarkets") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETVoidIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/taxjar_accounts/{taxjarAccountId}/markets" - localVarPath = strings.Replace(localVarPath, "{"+"taxjarAccountId"+"}", url.PathEscape(parameterValueToString(r.taxjarAccountId, "taxjarAccountId")), -1) + localVarPath := localBasePath + "/voids/{voidId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"voidId"+"}", url.PathEscape(parameterValueToString(r.voidId, "voidId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -16859,48 +33327,48 @@ func (a *HasManyApiService) GETTaxjarAccountIdMarketsExecute(r HasManyApiGETTaxj return localVarHTTPResponse, nil } -type HasManyApiGETTaxjarAccountIdTaxCategoriesRequest struct { - ctx context.Context - ApiService *HasManyApiService - taxjarAccountId interface{} +type HasManyApiGETWebhookIdLastEventCallbacksRequest struct { + ctx context.Context + ApiService *HasManyApiService + webhookId interface{} } -func (r HasManyApiGETTaxjarAccountIdTaxCategoriesRequest) Execute() (*http.Response, error) { - return r.ApiService.GETTaxjarAccountIdTaxCategoriesExecute(r) +func (r HasManyApiGETWebhookIdLastEventCallbacksRequest) Execute() (*http.Response, error) { + return r.ApiService.GETWebhookIdLastEventCallbacksExecute(r) } /* -GETTaxjarAccountIdTaxCategories Retrieve the tax categories associated to the taxjar account +GETWebhookIdLastEventCallbacks Retrieve the last event callbacks associated to the webhook -Retrieve the tax categories associated to the taxjar account +Retrieve the last event callbacks associated to the webhook @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param taxjarAccountId The resource's id - @return HasManyApiGETTaxjarAccountIdTaxCategoriesRequest + @param webhookId The resource's id + @return HasManyApiGETWebhookIdLastEventCallbacksRequest */ -func (a *HasManyApiService) GETTaxjarAccountIdTaxCategories(ctx context.Context, taxjarAccountId interface{}) HasManyApiGETTaxjarAccountIdTaxCategoriesRequest { - return HasManyApiGETTaxjarAccountIdTaxCategoriesRequest{ - ApiService: a, - ctx: ctx, - taxjarAccountId: taxjarAccountId, +func (a *HasManyApiService) GETWebhookIdLastEventCallbacks(ctx context.Context, webhookId interface{}) HasManyApiGETWebhookIdLastEventCallbacksRequest { + return HasManyApiGETWebhookIdLastEventCallbacksRequest{ + ApiService: a, + ctx: ctx, + webhookId: webhookId, } } // Execute executes the request -func (a *HasManyApiService) GETTaxjarAccountIdTaxCategoriesExecute(r HasManyApiGETTaxjarAccountIdTaxCategoriesRequest) (*http.Response, error) { +func (a *HasManyApiService) GETWebhookIdLastEventCallbacksExecute(r HasManyApiGETWebhookIdLastEventCallbacksRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETTaxjarAccountIdTaxCategories") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETWebhookIdLastEventCallbacks") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/taxjar_accounts/{taxjarAccountId}/tax_categories" - localVarPath = strings.Replace(localVarPath, "{"+"taxjarAccountId"+"}", url.PathEscape(parameterValueToString(r.taxjarAccountId, "taxjarAccountId")), -1) + localVarPath := localBasePath + "/webhooks/{webhookId}/last_event_callbacks" + localVarPath = strings.Replace(localVarPath, "{"+"webhookId"+"}", url.PathEscape(parameterValueToString(r.webhookId, "webhookId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -16951,48 +33419,48 @@ func (a *HasManyApiService) GETTaxjarAccountIdTaxCategoriesExecute(r HasManyApiG return localVarHTTPResponse, nil } -type HasManyApiGETVoidIdEventsRequest struct { +type HasManyApiGETWebhookIdVersionsRequest struct { ctx context.Context ApiService *HasManyApiService - voidId interface{} + webhookId interface{} } -func (r HasManyApiGETVoidIdEventsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETVoidIdEventsExecute(r) +func (r HasManyApiGETWebhookIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETWebhookIdVersionsExecute(r) } /* -GETVoidIdEvents Retrieve the events associated to the void +GETWebhookIdVersions Retrieve the versions associated to the webhook -Retrieve the events associated to the void +Retrieve the versions associated to the webhook @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param voidId The resource's id - @return HasManyApiGETVoidIdEventsRequest + @param webhookId The resource's id + @return HasManyApiGETWebhookIdVersionsRequest */ -func (a *HasManyApiService) GETVoidIdEvents(ctx context.Context, voidId interface{}) HasManyApiGETVoidIdEventsRequest { - return HasManyApiGETVoidIdEventsRequest{ +func (a *HasManyApiService) GETWebhookIdVersions(ctx context.Context, webhookId interface{}) HasManyApiGETWebhookIdVersionsRequest { + return HasManyApiGETWebhookIdVersionsRequest{ ApiService: a, ctx: ctx, - voidId: voidId, + webhookId: webhookId, } } // Execute executes the request -func (a *HasManyApiService) GETVoidIdEventsExecute(r HasManyApiGETVoidIdEventsRequest) (*http.Response, error) { +func (a *HasManyApiService) GETWebhookIdVersionsExecute(r HasManyApiGETWebhookIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETVoidIdEvents") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETWebhookIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/voids/{voidId}/events" - localVarPath = strings.Replace(localVarPath, "{"+"voidId"+"}", url.PathEscape(parameterValueToString(r.voidId, "voidId")), -1) + localVarPath := localBasePath + "/webhooks/{webhookId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"webhookId"+"}", url.PathEscape(parameterValueToString(r.webhookId, "webhookId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -17043,48 +33511,48 @@ func (a *HasManyApiService) GETVoidIdEventsExecute(r HasManyApiGETVoidIdEventsRe return localVarHTTPResponse, nil } -type HasManyApiGETWebhookIdLastEventCallbacksRequest struct { - ctx context.Context - ApiService *HasManyApiService - webhookId interface{} +type HasManyApiGETWireTransferIdVersionsRequest struct { + ctx context.Context + ApiService *HasManyApiService + wireTransferId interface{} } -func (r HasManyApiGETWebhookIdLastEventCallbacksRequest) Execute() (*http.Response, error) { - return r.ApiService.GETWebhookIdLastEventCallbacksExecute(r) +func (r HasManyApiGETWireTransferIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETWireTransferIdVersionsExecute(r) } /* -GETWebhookIdLastEventCallbacks Retrieve the last event callbacks associated to the webhook +GETWireTransferIdVersions Retrieve the versions associated to the wire transfer -Retrieve the last event callbacks associated to the webhook +Retrieve the versions associated to the wire transfer @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param webhookId The resource's id - @return HasManyApiGETWebhookIdLastEventCallbacksRequest + @param wireTransferId The resource's id + @return HasManyApiGETWireTransferIdVersionsRequest */ -func (a *HasManyApiService) GETWebhookIdLastEventCallbacks(ctx context.Context, webhookId interface{}) HasManyApiGETWebhookIdLastEventCallbacksRequest { - return HasManyApiGETWebhookIdLastEventCallbacksRequest{ - ApiService: a, - ctx: ctx, - webhookId: webhookId, +func (a *HasManyApiService) GETWireTransferIdVersions(ctx context.Context, wireTransferId interface{}) HasManyApiGETWireTransferIdVersionsRequest { + return HasManyApiGETWireTransferIdVersionsRequest{ + ApiService: a, + ctx: ctx, + wireTransferId: wireTransferId, } } // Execute executes the request -func (a *HasManyApiService) GETWebhookIdLastEventCallbacksExecute(r HasManyApiGETWebhookIdLastEventCallbacksRequest) (*http.Response, error) { +func (a *HasManyApiService) GETWireTransferIdVersionsExecute(r HasManyApiGETWireTransferIdVersionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETWebhookIdLastEventCallbacks") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasManyApiService.GETWireTransferIdVersions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/webhooks/{webhookId}/last_event_callbacks" - localVarPath = strings.Replace(localVarPath, "{"+"webhookId"+"}", url.PathEscape(parameterValueToString(r.webhookId, "webhookId")), -1) + localVarPath := localBasePath + "/wire_transfers/{wireTransferId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"wireTransferId"+"}", url.PathEscape(parameterValueToString(r.wireTransferId, "wireTransferId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} diff --git a/api/api_has_one.go b/api/api_has_one.go index 48ce301d..64b77c5f 100644 --- a/api/api_has_one.go +++ b/api/api_has_one.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -1035,48 +1035,48 @@ func (a *HasOneApiService) GETBundleIdSkuListExecute(r HasOneApiGETBundleIdSkuLi return localVarHTTPResponse, nil } -type HasOneApiGETCaptureIdOrderRequest struct { - ctx context.Context - ApiService *HasOneApiService - captureId interface{} +type HasOneApiGETBuyXPayYPromotionIdCouponCodesPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + buyXPayYPromotionId interface{} } -func (r HasOneApiGETCaptureIdOrderRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCaptureIdOrderExecute(r) +func (r HasOneApiGETBuyXPayYPromotionIdCouponCodesPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdCouponCodesPromotionRuleExecute(r) } /* -GETCaptureIdOrder Retrieve the order associated to the capture +GETBuyXPayYPromotionIdCouponCodesPromotionRule Retrieve the coupon codes promotion rule associated to the buy x pay y promotion -Retrieve the order associated to the capture +Retrieve the coupon codes promotion rule associated to the buy x pay y promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param captureId The resource's id - @return HasOneApiGETCaptureIdOrderRequest + @param buyXPayYPromotionId The resource's id + @return HasOneApiGETBuyXPayYPromotionIdCouponCodesPromotionRuleRequest */ -func (a *HasOneApiService) GETCaptureIdOrder(ctx context.Context, captureId interface{}) HasOneApiGETCaptureIdOrderRequest { - return HasOneApiGETCaptureIdOrderRequest{ - ApiService: a, - ctx: ctx, - captureId: captureId, +func (a *HasOneApiService) GETBuyXPayYPromotionIdCouponCodesPromotionRule(ctx context.Context, buyXPayYPromotionId interface{}) HasOneApiGETBuyXPayYPromotionIdCouponCodesPromotionRuleRequest { + return HasOneApiGETBuyXPayYPromotionIdCouponCodesPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETCaptureIdOrderExecute(r HasOneApiGETCaptureIdOrderRequest) (*http.Response, error) { +func (a *HasOneApiService) GETBuyXPayYPromotionIdCouponCodesPromotionRuleExecute(r HasOneApiGETBuyXPayYPromotionIdCouponCodesPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCaptureIdOrder") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETBuyXPayYPromotionIdCouponCodesPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/captures/{captureId}/order" - localVarPath = strings.Replace(localVarPath, "{"+"captureId"+"}", url.PathEscape(parameterValueToString(r.captureId, "captureId")), -1) + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/coupon_codes_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1127,48 +1127,48 @@ func (a *HasOneApiService) GETCaptureIdOrderExecute(r HasOneApiGETCaptureIdOrder return localVarHTTPResponse, nil } -type HasOneApiGETCaptureIdReferenceAuthorizationRequest struct { - ctx context.Context - ApiService *HasOneApiService - captureId interface{} +type HasOneApiGETBuyXPayYPromotionIdCustomPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + buyXPayYPromotionId interface{} } -func (r HasOneApiGETCaptureIdReferenceAuthorizationRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCaptureIdReferenceAuthorizationExecute(r) +func (r HasOneApiGETBuyXPayYPromotionIdCustomPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdCustomPromotionRuleExecute(r) } /* -GETCaptureIdReferenceAuthorization Retrieve the reference authorization associated to the capture +GETBuyXPayYPromotionIdCustomPromotionRule Retrieve the custom promotion rule associated to the buy x pay y promotion -Retrieve the reference authorization associated to the capture +Retrieve the custom promotion rule associated to the buy x pay y promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param captureId The resource's id - @return HasOneApiGETCaptureIdReferenceAuthorizationRequest + @param buyXPayYPromotionId The resource's id + @return HasOneApiGETBuyXPayYPromotionIdCustomPromotionRuleRequest */ -func (a *HasOneApiService) GETCaptureIdReferenceAuthorization(ctx context.Context, captureId interface{}) HasOneApiGETCaptureIdReferenceAuthorizationRequest { - return HasOneApiGETCaptureIdReferenceAuthorizationRequest{ - ApiService: a, - ctx: ctx, - captureId: captureId, +func (a *HasOneApiService) GETBuyXPayYPromotionIdCustomPromotionRule(ctx context.Context, buyXPayYPromotionId interface{}) HasOneApiGETBuyXPayYPromotionIdCustomPromotionRuleRequest { + return HasOneApiGETBuyXPayYPromotionIdCustomPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETCaptureIdReferenceAuthorizationExecute(r HasOneApiGETCaptureIdReferenceAuthorizationRequest) (*http.Response, error) { +func (a *HasOneApiService) GETBuyXPayYPromotionIdCustomPromotionRuleExecute(r HasOneApiGETBuyXPayYPromotionIdCustomPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCaptureIdReferenceAuthorization") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETBuyXPayYPromotionIdCustomPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/captures/{captureId}/reference_authorization" - localVarPath = strings.Replace(localVarPath, "{"+"captureId"+"}", url.PathEscape(parameterValueToString(r.captureId, "captureId")), -1) + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/custom_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1219,48 +1219,48 @@ func (a *HasOneApiService) GETCaptureIdReferenceAuthorizationExecute(r HasOneApi return localVarHTTPResponse, nil } -type HasOneApiGETCarrierAccountIdMarketRequest struct { - ctx context.Context - ApiService *HasOneApiService - carrierAccountId interface{} +type HasOneApiGETBuyXPayYPromotionIdMarketRequest struct { + ctx context.Context + ApiService *HasOneApiService + buyXPayYPromotionId interface{} } -func (r HasOneApiGETCarrierAccountIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCarrierAccountIdMarketExecute(r) +func (r HasOneApiGETBuyXPayYPromotionIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdMarketExecute(r) } /* -GETCarrierAccountIdMarket Retrieve the market associated to the carrier account +GETBuyXPayYPromotionIdMarket Retrieve the market associated to the buy x pay y promotion -Retrieve the market associated to the carrier account +Retrieve the market associated to the buy x pay y promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param carrierAccountId The resource's id - @return HasOneApiGETCarrierAccountIdMarketRequest + @param buyXPayYPromotionId The resource's id + @return HasOneApiGETBuyXPayYPromotionIdMarketRequest */ -func (a *HasOneApiService) GETCarrierAccountIdMarket(ctx context.Context, carrierAccountId interface{}) HasOneApiGETCarrierAccountIdMarketRequest { - return HasOneApiGETCarrierAccountIdMarketRequest{ - ApiService: a, - ctx: ctx, - carrierAccountId: carrierAccountId, +func (a *HasOneApiService) GETBuyXPayYPromotionIdMarket(ctx context.Context, buyXPayYPromotionId interface{}) HasOneApiGETBuyXPayYPromotionIdMarketRequest { + return HasOneApiGETBuyXPayYPromotionIdMarketRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETCarrierAccountIdMarketExecute(r HasOneApiGETCarrierAccountIdMarketRequest) (*http.Response, error) { +func (a *HasOneApiService) GETBuyXPayYPromotionIdMarketExecute(r HasOneApiGETBuyXPayYPromotionIdMarketRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCarrierAccountIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETBuyXPayYPromotionIdMarket") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/carrier_accounts/{carrierAccountId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"carrierAccountId"+"}", url.PathEscape(parameterValueToString(r.carrierAccountId, "carrierAccountId")), -1) + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1311,48 +1311,48 @@ func (a *HasOneApiService) GETCarrierAccountIdMarketExecute(r HasOneApiGETCarrie return localVarHTTPResponse, nil } -type HasOneApiGETCheckoutComPaymentIdOrderRequest struct { - ctx context.Context - ApiService *HasOneApiService - checkoutComPaymentId interface{} +type HasOneApiGETBuyXPayYPromotionIdOrderAmountPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + buyXPayYPromotionId interface{} } -func (r HasOneApiGETCheckoutComPaymentIdOrderRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCheckoutComPaymentIdOrderExecute(r) +func (r HasOneApiGETBuyXPayYPromotionIdOrderAmountPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdOrderAmountPromotionRuleExecute(r) } /* -GETCheckoutComPaymentIdOrder Retrieve the order associated to the checkout.com payment +GETBuyXPayYPromotionIdOrderAmountPromotionRule Retrieve the order amount promotion rule associated to the buy x pay y promotion -Retrieve the order associated to the checkout.com payment +Retrieve the order amount promotion rule associated to the buy x pay y promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param checkoutComPaymentId The resource's id - @return HasOneApiGETCheckoutComPaymentIdOrderRequest + @param buyXPayYPromotionId The resource's id + @return HasOneApiGETBuyXPayYPromotionIdOrderAmountPromotionRuleRequest */ -func (a *HasOneApiService) GETCheckoutComPaymentIdOrder(ctx context.Context, checkoutComPaymentId interface{}) HasOneApiGETCheckoutComPaymentIdOrderRequest { - return HasOneApiGETCheckoutComPaymentIdOrderRequest{ - ApiService: a, - ctx: ctx, - checkoutComPaymentId: checkoutComPaymentId, +func (a *HasOneApiService) GETBuyXPayYPromotionIdOrderAmountPromotionRule(ctx context.Context, buyXPayYPromotionId interface{}) HasOneApiGETBuyXPayYPromotionIdOrderAmountPromotionRuleRequest { + return HasOneApiGETBuyXPayYPromotionIdOrderAmountPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETCheckoutComPaymentIdOrderExecute(r HasOneApiGETCheckoutComPaymentIdOrderRequest) (*http.Response, error) { +func (a *HasOneApiService) GETBuyXPayYPromotionIdOrderAmountPromotionRuleExecute(r HasOneApiGETBuyXPayYPromotionIdOrderAmountPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCheckoutComPaymentIdOrder") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETBuyXPayYPromotionIdOrderAmountPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/checkout_com_payments/{checkoutComPaymentId}/order" - localVarPath = strings.Replace(localVarPath, "{"+"checkoutComPaymentId"+"}", url.PathEscape(parameterValueToString(r.checkoutComPaymentId, "checkoutComPaymentId")), -1) + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/order_amount_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1403,48 +1403,48 @@ func (a *HasOneApiService) GETCheckoutComPaymentIdOrderExecute(r HasOneApiGETChe return localVarHTTPResponse, nil } -type HasOneApiGETCheckoutComPaymentIdPaymentGatewayRequest struct { - ctx context.Context - ApiService *HasOneApiService - checkoutComPaymentId interface{} +type HasOneApiGETBuyXPayYPromotionIdSkuListRequest struct { + ctx context.Context + ApiService *HasOneApiService + buyXPayYPromotionId interface{} } -func (r HasOneApiGETCheckoutComPaymentIdPaymentGatewayRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCheckoutComPaymentIdPaymentGatewayExecute(r) +func (r HasOneApiGETBuyXPayYPromotionIdSkuListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdSkuListExecute(r) } /* -GETCheckoutComPaymentIdPaymentGateway Retrieve the payment gateway associated to the checkout.com payment +GETBuyXPayYPromotionIdSkuList Retrieve the sku list associated to the buy x pay y promotion -Retrieve the payment gateway associated to the checkout.com payment +Retrieve the sku list associated to the buy x pay y promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param checkoutComPaymentId The resource's id - @return HasOneApiGETCheckoutComPaymentIdPaymentGatewayRequest + @param buyXPayYPromotionId The resource's id + @return HasOneApiGETBuyXPayYPromotionIdSkuListRequest */ -func (a *HasOneApiService) GETCheckoutComPaymentIdPaymentGateway(ctx context.Context, checkoutComPaymentId interface{}) HasOneApiGETCheckoutComPaymentIdPaymentGatewayRequest { - return HasOneApiGETCheckoutComPaymentIdPaymentGatewayRequest{ - ApiService: a, - ctx: ctx, - checkoutComPaymentId: checkoutComPaymentId, +func (a *HasOneApiService) GETBuyXPayYPromotionIdSkuList(ctx context.Context, buyXPayYPromotionId interface{}) HasOneApiGETBuyXPayYPromotionIdSkuListRequest { + return HasOneApiGETBuyXPayYPromotionIdSkuListRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETCheckoutComPaymentIdPaymentGatewayExecute(r HasOneApiGETCheckoutComPaymentIdPaymentGatewayRequest) (*http.Response, error) { +func (a *HasOneApiService) GETBuyXPayYPromotionIdSkuListExecute(r HasOneApiGETBuyXPayYPromotionIdSkuListRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCheckoutComPaymentIdPaymentGateway") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETBuyXPayYPromotionIdSkuList") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/checkout_com_payments/{checkoutComPaymentId}/payment_gateway" - localVarPath = strings.Replace(localVarPath, "{"+"checkoutComPaymentId"+"}", url.PathEscape(parameterValueToString(r.checkoutComPaymentId, "checkoutComPaymentId")), -1) + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/sku_list" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1495,48 +1495,48 @@ func (a *HasOneApiService) GETCheckoutComPaymentIdPaymentGatewayExecute(r HasOne return localVarHTTPResponse, nil } -type HasOneApiGETCouponIdPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - couponId interface{} +type HasOneApiGETBuyXPayYPromotionIdSkuListPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + buyXPayYPromotionId interface{} } -func (r HasOneApiGETCouponIdPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCouponIdPromotionRuleExecute(r) +func (r HasOneApiGETBuyXPayYPromotionIdSkuListPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdSkuListPromotionRuleExecute(r) } /* -GETCouponIdPromotionRule Retrieve the promotion rule associated to the coupon +GETBuyXPayYPromotionIdSkuListPromotionRule Retrieve the sku list promotion rule associated to the buy x pay y promotion -Retrieve the promotion rule associated to the coupon +Retrieve the sku list promotion rule associated to the buy x pay y promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param couponId The resource's id - @return HasOneApiGETCouponIdPromotionRuleRequest + @param buyXPayYPromotionId The resource's id + @return HasOneApiGETBuyXPayYPromotionIdSkuListPromotionRuleRequest */ -func (a *HasOneApiService) GETCouponIdPromotionRule(ctx context.Context, couponId interface{}) HasOneApiGETCouponIdPromotionRuleRequest { - return HasOneApiGETCouponIdPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - couponId: couponId, +func (a *HasOneApiService) GETBuyXPayYPromotionIdSkuListPromotionRule(ctx context.Context, buyXPayYPromotionId interface{}) HasOneApiGETBuyXPayYPromotionIdSkuListPromotionRuleRequest { + return HasOneApiGETBuyXPayYPromotionIdSkuListPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETCouponIdPromotionRuleExecute(r HasOneApiGETCouponIdPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETBuyXPayYPromotionIdSkuListPromotionRuleExecute(r HasOneApiGETBuyXPayYPromotionIdSkuListPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCouponIdPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETBuyXPayYPromotionIdSkuListPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/coupons/{couponId}/promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"couponId"+"}", url.PathEscape(parameterValueToString(r.couponId, "couponId")), -1) + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/sku_list_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1587,48 +1587,48 @@ func (a *HasOneApiService) GETCouponIdPromotionRuleExecute(r HasOneApiGETCouponI return localVarHTTPResponse, nil } -type HasOneApiGETCouponRecipientIdCustomerRequest struct { - ctx context.Context - ApiService *HasOneApiService - couponRecipientId interface{} +type HasOneApiGETCaptureIdOrderRequest struct { + ctx context.Context + ApiService *HasOneApiService + captureId interface{} } -func (r HasOneApiGETCouponRecipientIdCustomerRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCouponRecipientIdCustomerExecute(r) +func (r HasOneApiGETCaptureIdOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCaptureIdOrderExecute(r) } /* -GETCouponRecipientIdCustomer Retrieve the customer associated to the coupon recipient +GETCaptureIdOrder Retrieve the order associated to the capture -Retrieve the customer associated to the coupon recipient +Retrieve the order associated to the capture @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param couponRecipientId The resource's id - @return HasOneApiGETCouponRecipientIdCustomerRequest + @param captureId The resource's id + @return HasOneApiGETCaptureIdOrderRequest */ -func (a *HasOneApiService) GETCouponRecipientIdCustomer(ctx context.Context, couponRecipientId interface{}) HasOneApiGETCouponRecipientIdCustomerRequest { - return HasOneApiGETCouponRecipientIdCustomerRequest{ - ApiService: a, - ctx: ctx, - couponRecipientId: couponRecipientId, +func (a *HasOneApiService) GETCaptureIdOrder(ctx context.Context, captureId interface{}) HasOneApiGETCaptureIdOrderRequest { + return HasOneApiGETCaptureIdOrderRequest{ + ApiService: a, + ctx: ctx, + captureId: captureId, } } // Execute executes the request -func (a *HasOneApiService) GETCouponRecipientIdCustomerExecute(r HasOneApiGETCouponRecipientIdCustomerRequest) (*http.Response, error) { +func (a *HasOneApiService) GETCaptureIdOrderExecute(r HasOneApiGETCaptureIdOrderRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCouponRecipientIdCustomer") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCaptureIdOrder") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/coupon_recipients/{couponRecipientId}/customer" - localVarPath = strings.Replace(localVarPath, "{"+"couponRecipientId"+"}", url.PathEscape(parameterValueToString(r.couponRecipientId, "couponRecipientId")), -1) + localVarPath := localBasePath + "/captures/{captureId}/order" + localVarPath = strings.Replace(localVarPath, "{"+"captureId"+"}", url.PathEscape(parameterValueToString(r.captureId, "captureId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1679,48 +1679,48 @@ func (a *HasOneApiService) GETCouponRecipientIdCustomerExecute(r HasOneApiGETCou return localVarHTTPResponse, nil } -type HasOneApiGETCustomerAddressIdAddressRequest struct { - ctx context.Context - ApiService *HasOneApiService - customerAddressId interface{} +type HasOneApiGETCaptureIdReferenceAuthorizationRequest struct { + ctx context.Context + ApiService *HasOneApiService + captureId interface{} } -func (r HasOneApiGETCustomerAddressIdAddressRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerAddressIdAddressExecute(r) +func (r HasOneApiGETCaptureIdReferenceAuthorizationRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCaptureIdReferenceAuthorizationExecute(r) } /* -GETCustomerAddressIdAddress Retrieve the address associated to the customer address +GETCaptureIdReferenceAuthorization Retrieve the reference authorization associated to the capture -Retrieve the address associated to the customer address +Retrieve the reference authorization associated to the capture @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerAddressId The resource's id - @return HasOneApiGETCustomerAddressIdAddressRequest + @param captureId The resource's id + @return HasOneApiGETCaptureIdReferenceAuthorizationRequest */ -func (a *HasOneApiService) GETCustomerAddressIdAddress(ctx context.Context, customerAddressId interface{}) HasOneApiGETCustomerAddressIdAddressRequest { - return HasOneApiGETCustomerAddressIdAddressRequest{ - ApiService: a, - ctx: ctx, - customerAddressId: customerAddressId, +func (a *HasOneApiService) GETCaptureIdReferenceAuthorization(ctx context.Context, captureId interface{}) HasOneApiGETCaptureIdReferenceAuthorizationRequest { + return HasOneApiGETCaptureIdReferenceAuthorizationRequest{ + ApiService: a, + ctx: ctx, + captureId: captureId, } } // Execute executes the request -func (a *HasOneApiService) GETCustomerAddressIdAddressExecute(r HasOneApiGETCustomerAddressIdAddressRequest) (*http.Response, error) { +func (a *HasOneApiService) GETCaptureIdReferenceAuthorizationExecute(r HasOneApiGETCaptureIdReferenceAuthorizationRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCustomerAddressIdAddress") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCaptureIdReferenceAuthorization") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customer_addresses/{customerAddressId}/address" - localVarPath = strings.Replace(localVarPath, "{"+"customerAddressId"+"}", url.PathEscape(parameterValueToString(r.customerAddressId, "customerAddressId")), -1) + localVarPath := localBasePath + "/captures/{captureId}/reference_authorization" + localVarPath = strings.Replace(localVarPath, "{"+"captureId"+"}", url.PathEscape(parameterValueToString(r.captureId, "captureId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1771,48 +1771,48 @@ func (a *HasOneApiService) GETCustomerAddressIdAddressExecute(r HasOneApiGETCust return localVarHTTPResponse, nil } -type HasOneApiGETCustomerAddressIdCustomerRequest struct { - ctx context.Context - ApiService *HasOneApiService - customerAddressId interface{} +type HasOneApiGETCaptureIdReturnRequest struct { + ctx context.Context + ApiService *HasOneApiService + captureId interface{} } -func (r HasOneApiGETCustomerAddressIdCustomerRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerAddressIdCustomerExecute(r) +func (r HasOneApiGETCaptureIdReturnRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCaptureIdReturnExecute(r) } /* -GETCustomerAddressIdCustomer Retrieve the customer associated to the customer address +GETCaptureIdReturn Retrieve the return associated to the capture -Retrieve the customer associated to the customer address +Retrieve the return associated to the capture @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerAddressId The resource's id - @return HasOneApiGETCustomerAddressIdCustomerRequest + @param captureId The resource's id + @return HasOneApiGETCaptureIdReturnRequest */ -func (a *HasOneApiService) GETCustomerAddressIdCustomer(ctx context.Context, customerAddressId interface{}) HasOneApiGETCustomerAddressIdCustomerRequest { - return HasOneApiGETCustomerAddressIdCustomerRequest{ - ApiService: a, - ctx: ctx, - customerAddressId: customerAddressId, +func (a *HasOneApiService) GETCaptureIdReturn(ctx context.Context, captureId interface{}) HasOneApiGETCaptureIdReturnRequest { + return HasOneApiGETCaptureIdReturnRequest{ + ApiService: a, + ctx: ctx, + captureId: captureId, } } // Execute executes the request -func (a *HasOneApiService) GETCustomerAddressIdCustomerExecute(r HasOneApiGETCustomerAddressIdCustomerRequest) (*http.Response, error) { +func (a *HasOneApiService) GETCaptureIdReturnExecute(r HasOneApiGETCaptureIdReturnRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCustomerAddressIdCustomer") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCaptureIdReturn") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customer_addresses/{customerAddressId}/customer" - localVarPath = strings.Replace(localVarPath, "{"+"customerAddressId"+"}", url.PathEscape(parameterValueToString(r.customerAddressId, "customerAddressId")), -1) + localVarPath := localBasePath + "/captures/{captureId}/return" + localVarPath = strings.Replace(localVarPath, "{"+"captureId"+"}", url.PathEscape(parameterValueToString(r.captureId, "captureId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1863,48 +1863,48 @@ func (a *HasOneApiService) GETCustomerAddressIdCustomerExecute(r HasOneApiGETCus return localVarHTTPResponse, nil } -type HasOneApiGETCustomerIdCustomerGroupRequest struct { - ctx context.Context - ApiService *HasOneApiService - customerId interface{} +type HasOneApiGETCarrierAccountIdMarketRequest struct { + ctx context.Context + ApiService *HasOneApiService + carrierAccountId interface{} } -func (r HasOneApiGETCustomerIdCustomerGroupRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerIdCustomerGroupExecute(r) +func (r HasOneApiGETCarrierAccountIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCarrierAccountIdMarketExecute(r) } /* -GETCustomerIdCustomerGroup Retrieve the customer group associated to the customer +GETCarrierAccountIdMarket Retrieve the market associated to the carrier account -Retrieve the customer group associated to the customer +Retrieve the market associated to the carrier account @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerId The resource's id - @return HasOneApiGETCustomerIdCustomerGroupRequest + @param carrierAccountId The resource's id + @return HasOneApiGETCarrierAccountIdMarketRequest */ -func (a *HasOneApiService) GETCustomerIdCustomerGroup(ctx context.Context, customerId interface{}) HasOneApiGETCustomerIdCustomerGroupRequest { - return HasOneApiGETCustomerIdCustomerGroupRequest{ - ApiService: a, - ctx: ctx, - customerId: customerId, +func (a *HasOneApiService) GETCarrierAccountIdMarket(ctx context.Context, carrierAccountId interface{}) HasOneApiGETCarrierAccountIdMarketRequest { + return HasOneApiGETCarrierAccountIdMarketRequest{ + ApiService: a, + ctx: ctx, + carrierAccountId: carrierAccountId, } } // Execute executes the request -func (a *HasOneApiService) GETCustomerIdCustomerGroupExecute(r HasOneApiGETCustomerIdCustomerGroupRequest) (*http.Response, error) { +func (a *HasOneApiService) GETCarrierAccountIdMarketExecute(r HasOneApiGETCarrierAccountIdMarketRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCustomerIdCustomerGroup") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCarrierAccountIdMarket") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customers/{customerId}/customer_group" - localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + localVarPath := localBasePath + "/carrier_accounts/{carrierAccountId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"carrierAccountId"+"}", url.PathEscape(parameterValueToString(r.carrierAccountId, "carrierAccountId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1955,48 +1955,48 @@ func (a *HasOneApiService) GETCustomerIdCustomerGroupExecute(r HasOneApiGETCusto return localVarHTTPResponse, nil } -type HasOneApiGETCustomerPasswordResetIdCustomerRequest struct { - ctx context.Context - ApiService *HasOneApiService - customerPasswordResetId interface{} +type HasOneApiGETCheckoutComPaymentIdOrderRequest struct { + ctx context.Context + ApiService *HasOneApiService + checkoutComPaymentId interface{} } -func (r HasOneApiGETCustomerPasswordResetIdCustomerRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerPasswordResetIdCustomerExecute(r) +func (r HasOneApiGETCheckoutComPaymentIdOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCheckoutComPaymentIdOrderExecute(r) } /* -GETCustomerPasswordResetIdCustomer Retrieve the customer associated to the customer password reset +GETCheckoutComPaymentIdOrder Retrieve the order associated to the checkout.com payment -Retrieve the customer associated to the customer password reset +Retrieve the order associated to the checkout.com payment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerPasswordResetId The resource's id - @return HasOneApiGETCustomerPasswordResetIdCustomerRequest + @param checkoutComPaymentId The resource's id + @return HasOneApiGETCheckoutComPaymentIdOrderRequest */ -func (a *HasOneApiService) GETCustomerPasswordResetIdCustomer(ctx context.Context, customerPasswordResetId interface{}) HasOneApiGETCustomerPasswordResetIdCustomerRequest { - return HasOneApiGETCustomerPasswordResetIdCustomerRequest{ - ApiService: a, - ctx: ctx, - customerPasswordResetId: customerPasswordResetId, +func (a *HasOneApiService) GETCheckoutComPaymentIdOrder(ctx context.Context, checkoutComPaymentId interface{}) HasOneApiGETCheckoutComPaymentIdOrderRequest { + return HasOneApiGETCheckoutComPaymentIdOrderRequest{ + ApiService: a, + ctx: ctx, + checkoutComPaymentId: checkoutComPaymentId, } } // Execute executes the request -func (a *HasOneApiService) GETCustomerPasswordResetIdCustomerExecute(r HasOneApiGETCustomerPasswordResetIdCustomerRequest) (*http.Response, error) { +func (a *HasOneApiService) GETCheckoutComPaymentIdOrderExecute(r HasOneApiGETCheckoutComPaymentIdOrderRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCustomerPasswordResetIdCustomer") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCheckoutComPaymentIdOrder") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customer_password_resets/{customerPasswordResetId}/customer" - localVarPath = strings.Replace(localVarPath, "{"+"customerPasswordResetId"+"}", url.PathEscape(parameterValueToString(r.customerPasswordResetId, "customerPasswordResetId")), -1) + localVarPath := localBasePath + "/checkout_com_payments/{checkoutComPaymentId}/order" + localVarPath = strings.Replace(localVarPath, "{"+"checkoutComPaymentId"+"}", url.PathEscape(parameterValueToString(r.checkoutComPaymentId, "checkoutComPaymentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2047,48 +2047,48 @@ func (a *HasOneApiService) GETCustomerPasswordResetIdCustomerExecute(r HasOneApi return localVarHTTPResponse, nil } -type HasOneApiGETCustomerPaymentSourceIdCustomerRequest struct { - ctx context.Context - ApiService *HasOneApiService - customerPaymentSourceId interface{} +type HasOneApiGETCheckoutComPaymentIdPaymentGatewayRequest struct { + ctx context.Context + ApiService *HasOneApiService + checkoutComPaymentId interface{} } -func (r HasOneApiGETCustomerPaymentSourceIdCustomerRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerPaymentSourceIdCustomerExecute(r) +func (r HasOneApiGETCheckoutComPaymentIdPaymentGatewayRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCheckoutComPaymentIdPaymentGatewayExecute(r) } /* -GETCustomerPaymentSourceIdCustomer Retrieve the customer associated to the customer payment source +GETCheckoutComPaymentIdPaymentGateway Retrieve the payment gateway associated to the checkout.com payment -Retrieve the customer associated to the customer payment source +Retrieve the payment gateway associated to the checkout.com payment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerPaymentSourceId The resource's id - @return HasOneApiGETCustomerPaymentSourceIdCustomerRequest + @param checkoutComPaymentId The resource's id + @return HasOneApiGETCheckoutComPaymentIdPaymentGatewayRequest */ -func (a *HasOneApiService) GETCustomerPaymentSourceIdCustomer(ctx context.Context, customerPaymentSourceId interface{}) HasOneApiGETCustomerPaymentSourceIdCustomerRequest { - return HasOneApiGETCustomerPaymentSourceIdCustomerRequest{ - ApiService: a, - ctx: ctx, - customerPaymentSourceId: customerPaymentSourceId, +func (a *HasOneApiService) GETCheckoutComPaymentIdPaymentGateway(ctx context.Context, checkoutComPaymentId interface{}) HasOneApiGETCheckoutComPaymentIdPaymentGatewayRequest { + return HasOneApiGETCheckoutComPaymentIdPaymentGatewayRequest{ + ApiService: a, + ctx: ctx, + checkoutComPaymentId: checkoutComPaymentId, } } // Execute executes the request -func (a *HasOneApiService) GETCustomerPaymentSourceIdCustomerExecute(r HasOneApiGETCustomerPaymentSourceIdCustomerRequest) (*http.Response, error) { +func (a *HasOneApiService) GETCheckoutComPaymentIdPaymentGatewayExecute(r HasOneApiGETCheckoutComPaymentIdPaymentGatewayRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCustomerPaymentSourceIdCustomer") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCheckoutComPaymentIdPaymentGateway") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customer_payment_sources/{customerPaymentSourceId}/customer" - localVarPath = strings.Replace(localVarPath, "{"+"customerPaymentSourceId"+"}", url.PathEscape(parameterValueToString(r.customerPaymentSourceId, "customerPaymentSourceId")), -1) + localVarPath := localBasePath + "/checkout_com_payments/{checkoutComPaymentId}/payment_gateway" + localVarPath = strings.Replace(localVarPath, "{"+"checkoutComPaymentId"+"}", url.PathEscape(parameterValueToString(r.checkoutComPaymentId, "checkoutComPaymentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2139,48 +2139,48 @@ func (a *HasOneApiService) GETCustomerPaymentSourceIdCustomerExecute(r HasOneApi return localVarHTTPResponse, nil } -type HasOneApiGETCustomerSubscriptionIdCustomerRequest struct { - ctx context.Context - ApiService *HasOneApiService - customerSubscriptionId interface{} +type HasOneApiGETCouponIdCouponRecipientRequest struct { + ctx context.Context + ApiService *HasOneApiService + couponId interface{} } -func (r HasOneApiGETCustomerSubscriptionIdCustomerRequest) Execute() (*http.Response, error) { - return r.ApiService.GETCustomerSubscriptionIdCustomerExecute(r) +func (r HasOneApiGETCouponIdCouponRecipientRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCouponIdCouponRecipientExecute(r) } /* -GETCustomerSubscriptionIdCustomer Retrieve the customer associated to the customer subscription +GETCouponIdCouponRecipient Retrieve the coupon recipient associated to the coupon -Retrieve the customer associated to the customer subscription +Retrieve the coupon recipient associated to the coupon @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customerSubscriptionId The resource's id - @return HasOneApiGETCustomerSubscriptionIdCustomerRequest + @param couponId The resource's id + @return HasOneApiGETCouponIdCouponRecipientRequest */ -func (a *HasOneApiService) GETCustomerSubscriptionIdCustomer(ctx context.Context, customerSubscriptionId interface{}) HasOneApiGETCustomerSubscriptionIdCustomerRequest { - return HasOneApiGETCustomerSubscriptionIdCustomerRequest{ - ApiService: a, - ctx: ctx, - customerSubscriptionId: customerSubscriptionId, +func (a *HasOneApiService) GETCouponIdCouponRecipient(ctx context.Context, couponId interface{}) HasOneApiGETCouponIdCouponRecipientRequest { + return HasOneApiGETCouponIdCouponRecipientRequest{ + ApiService: a, + ctx: ctx, + couponId: couponId, } } // Execute executes the request -func (a *HasOneApiService) GETCustomerSubscriptionIdCustomerExecute(r HasOneApiGETCustomerSubscriptionIdCustomerRequest) (*http.Response, error) { +func (a *HasOneApiService) GETCouponIdCouponRecipientExecute(r HasOneApiGETCouponIdCouponRecipientRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCustomerSubscriptionIdCustomer") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCouponIdCouponRecipient") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/customer_subscriptions/{customerSubscriptionId}/customer" - localVarPath = strings.Replace(localVarPath, "{"+"customerSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.customerSubscriptionId, "customerSubscriptionId")), -1) + localVarPath := localBasePath + "/coupons/{couponId}/coupon_recipient" + localVarPath = strings.Replace(localVarPath, "{"+"couponId"+"}", url.PathEscape(parameterValueToString(r.couponId, "couponId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2231,48 +2231,48 @@ func (a *HasOneApiService) GETCustomerSubscriptionIdCustomerExecute(r HasOneApiG return localVarHTTPResponse, nil } -type HasOneApiGETDeliveryLeadTimeIdShippingMethodRequest struct { - ctx context.Context - ApiService *HasOneApiService - deliveryLeadTimeId interface{} +type HasOneApiGETCouponIdPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + couponId interface{} } -func (r HasOneApiGETDeliveryLeadTimeIdShippingMethodRequest) Execute() (*http.Response, error) { - return r.ApiService.GETDeliveryLeadTimeIdShippingMethodExecute(r) +func (r HasOneApiGETCouponIdPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCouponIdPromotionRuleExecute(r) } /* -GETDeliveryLeadTimeIdShippingMethod Retrieve the shipping method associated to the delivery lead time +GETCouponIdPromotionRule Retrieve the promotion rule associated to the coupon -Retrieve the shipping method associated to the delivery lead time +Retrieve the promotion rule associated to the coupon @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param deliveryLeadTimeId The resource's id - @return HasOneApiGETDeliveryLeadTimeIdShippingMethodRequest + @param couponId The resource's id + @return HasOneApiGETCouponIdPromotionRuleRequest */ -func (a *HasOneApiService) GETDeliveryLeadTimeIdShippingMethod(ctx context.Context, deliveryLeadTimeId interface{}) HasOneApiGETDeliveryLeadTimeIdShippingMethodRequest { - return HasOneApiGETDeliveryLeadTimeIdShippingMethodRequest{ - ApiService: a, - ctx: ctx, - deliveryLeadTimeId: deliveryLeadTimeId, +func (a *HasOneApiService) GETCouponIdPromotionRule(ctx context.Context, couponId interface{}) HasOneApiGETCouponIdPromotionRuleRequest { + return HasOneApiGETCouponIdPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + couponId: couponId, } } // Execute executes the request -func (a *HasOneApiService) GETDeliveryLeadTimeIdShippingMethodExecute(r HasOneApiGETDeliveryLeadTimeIdShippingMethodRequest) (*http.Response, error) { +func (a *HasOneApiService) GETCouponIdPromotionRuleExecute(r HasOneApiGETCouponIdPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETDeliveryLeadTimeIdShippingMethod") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCouponIdPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/delivery_lead_times/{deliveryLeadTimeId}/shipping_method" - localVarPath = strings.Replace(localVarPath, "{"+"deliveryLeadTimeId"+"}", url.PathEscape(parameterValueToString(r.deliveryLeadTimeId, "deliveryLeadTimeId")), -1) + localVarPath := localBasePath + "/coupons/{couponId}/promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"couponId"+"}", url.PathEscape(parameterValueToString(r.couponId, "couponId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2323,48 +2323,48 @@ func (a *HasOneApiService) GETDeliveryLeadTimeIdShippingMethodExecute(r HasOneAp return localVarHTTPResponse, nil } -type HasOneApiGETDeliveryLeadTimeIdStockLocationRequest struct { - ctx context.Context - ApiService *HasOneApiService - deliveryLeadTimeId interface{} +type HasOneApiGETCouponRecipientIdCustomerRequest struct { + ctx context.Context + ApiService *HasOneApiService + couponRecipientId interface{} } -func (r HasOneApiGETDeliveryLeadTimeIdStockLocationRequest) Execute() (*http.Response, error) { - return r.ApiService.GETDeliveryLeadTimeIdStockLocationExecute(r) +func (r HasOneApiGETCouponRecipientIdCustomerRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCouponRecipientIdCustomerExecute(r) } /* -GETDeliveryLeadTimeIdStockLocation Retrieve the stock location associated to the delivery lead time +GETCouponRecipientIdCustomer Retrieve the customer associated to the coupon recipient -Retrieve the stock location associated to the delivery lead time +Retrieve the customer associated to the coupon recipient @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param deliveryLeadTimeId The resource's id - @return HasOneApiGETDeliveryLeadTimeIdStockLocationRequest + @param couponRecipientId The resource's id + @return HasOneApiGETCouponRecipientIdCustomerRequest */ -func (a *HasOneApiService) GETDeliveryLeadTimeIdStockLocation(ctx context.Context, deliveryLeadTimeId interface{}) HasOneApiGETDeliveryLeadTimeIdStockLocationRequest { - return HasOneApiGETDeliveryLeadTimeIdStockLocationRequest{ - ApiService: a, - ctx: ctx, - deliveryLeadTimeId: deliveryLeadTimeId, +func (a *HasOneApiService) GETCouponRecipientIdCustomer(ctx context.Context, couponRecipientId interface{}) HasOneApiGETCouponRecipientIdCustomerRequest { + return HasOneApiGETCouponRecipientIdCustomerRequest{ + ApiService: a, + ctx: ctx, + couponRecipientId: couponRecipientId, } } // Execute executes the request -func (a *HasOneApiService) GETDeliveryLeadTimeIdStockLocationExecute(r HasOneApiGETDeliveryLeadTimeIdStockLocationRequest) (*http.Response, error) { +func (a *HasOneApiService) GETCouponRecipientIdCustomerExecute(r HasOneApiGETCouponRecipientIdCustomerRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETDeliveryLeadTimeIdStockLocation") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCouponRecipientIdCustomer") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/delivery_lead_times/{deliveryLeadTimeId}/stock_location" - localVarPath = strings.Replace(localVarPath, "{"+"deliveryLeadTimeId"+"}", url.PathEscape(parameterValueToString(r.deliveryLeadTimeId, "deliveryLeadTimeId")), -1) + localVarPath := localBasePath + "/coupon_recipients/{couponRecipientId}/customer" + localVarPath = strings.Replace(localVarPath, "{"+"couponRecipientId"+"}", url.PathEscape(parameterValueToString(r.couponRecipientId, "couponRecipientId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2415,48 +2415,48 @@ func (a *HasOneApiService) GETDeliveryLeadTimeIdStockLocationExecute(r HasOneApi return localVarHTTPResponse, nil } -type HasOneApiGETEventCallbackIdWebhookRequest struct { - ctx context.Context - ApiService *HasOneApiService - eventCallbackId interface{} +type HasOneApiGETCustomerAddressIdAddressRequest struct { + ctx context.Context + ApiService *HasOneApiService + customerAddressId interface{} } -func (r HasOneApiGETEventCallbackIdWebhookRequest) Execute() (*http.Response, error) { - return r.ApiService.GETEventCallbackIdWebhookExecute(r) +func (r HasOneApiGETCustomerAddressIdAddressRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerAddressIdAddressExecute(r) } /* -GETEventCallbackIdWebhook Retrieve the webhook associated to the event callback +GETCustomerAddressIdAddress Retrieve the address associated to the customer address -Retrieve the webhook associated to the event callback +Retrieve the address associated to the customer address @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param eventCallbackId The resource's id - @return HasOneApiGETEventCallbackIdWebhookRequest + @param customerAddressId The resource's id + @return HasOneApiGETCustomerAddressIdAddressRequest */ -func (a *HasOneApiService) GETEventCallbackIdWebhook(ctx context.Context, eventCallbackId interface{}) HasOneApiGETEventCallbackIdWebhookRequest { - return HasOneApiGETEventCallbackIdWebhookRequest{ - ApiService: a, - ctx: ctx, - eventCallbackId: eventCallbackId, +func (a *HasOneApiService) GETCustomerAddressIdAddress(ctx context.Context, customerAddressId interface{}) HasOneApiGETCustomerAddressIdAddressRequest { + return HasOneApiGETCustomerAddressIdAddressRequest{ + ApiService: a, + ctx: ctx, + customerAddressId: customerAddressId, } } // Execute executes the request -func (a *HasOneApiService) GETEventCallbackIdWebhookExecute(r HasOneApiGETEventCallbackIdWebhookRequest) (*http.Response, error) { +func (a *HasOneApiService) GETCustomerAddressIdAddressExecute(r HasOneApiGETCustomerAddressIdAddressRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETEventCallbackIdWebhook") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCustomerAddressIdAddress") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/event_callbacks/{eventCallbackId}/webhook" - localVarPath = strings.Replace(localVarPath, "{"+"eventCallbackId"+"}", url.PathEscape(parameterValueToString(r.eventCallbackId, "eventCallbackId")), -1) + localVarPath := localBasePath + "/customer_addresses/{customerAddressId}/address" + localVarPath = strings.Replace(localVarPath, "{"+"customerAddressId"+"}", url.PathEscape(parameterValueToString(r.customerAddressId, "customerAddressId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2507,48 +2507,48 @@ func (a *HasOneApiService) GETEventCallbackIdWebhookExecute(r HasOneApiGETEventC return localVarHTTPResponse, nil } -type HasOneApiGETExternalPaymentIdOrderRequest struct { +type HasOneApiGETCustomerAddressIdCustomerRequest struct { ctx context.Context ApiService *HasOneApiService - externalPaymentId interface{} + customerAddressId interface{} } -func (r HasOneApiGETExternalPaymentIdOrderRequest) Execute() (*http.Response, error) { - return r.ApiService.GETExternalPaymentIdOrderExecute(r) +func (r HasOneApiGETCustomerAddressIdCustomerRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerAddressIdCustomerExecute(r) } /* -GETExternalPaymentIdOrder Retrieve the order associated to the external payment +GETCustomerAddressIdCustomer Retrieve the customer associated to the customer address -Retrieve the order associated to the external payment +Retrieve the customer associated to the customer address @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param externalPaymentId The resource's id - @return HasOneApiGETExternalPaymentIdOrderRequest + @param customerAddressId The resource's id + @return HasOneApiGETCustomerAddressIdCustomerRequest */ -func (a *HasOneApiService) GETExternalPaymentIdOrder(ctx context.Context, externalPaymentId interface{}) HasOneApiGETExternalPaymentIdOrderRequest { - return HasOneApiGETExternalPaymentIdOrderRequest{ +func (a *HasOneApiService) GETCustomerAddressIdCustomer(ctx context.Context, customerAddressId interface{}) HasOneApiGETCustomerAddressIdCustomerRequest { + return HasOneApiGETCustomerAddressIdCustomerRequest{ ApiService: a, ctx: ctx, - externalPaymentId: externalPaymentId, + customerAddressId: customerAddressId, } } // Execute executes the request -func (a *HasOneApiService) GETExternalPaymentIdOrderExecute(r HasOneApiGETExternalPaymentIdOrderRequest) (*http.Response, error) { +func (a *HasOneApiService) GETCustomerAddressIdCustomerExecute(r HasOneApiGETCustomerAddressIdCustomerRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETExternalPaymentIdOrder") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCustomerAddressIdCustomer") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/external_payments/{externalPaymentId}/order" - localVarPath = strings.Replace(localVarPath, "{"+"externalPaymentId"+"}", url.PathEscape(parameterValueToString(r.externalPaymentId, "externalPaymentId")), -1) + localVarPath := localBasePath + "/customer_addresses/{customerAddressId}/customer" + localVarPath = strings.Replace(localVarPath, "{"+"customerAddressId"+"}", url.PathEscape(parameterValueToString(r.customerAddressId, "customerAddressId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2599,48 +2599,48 @@ func (a *HasOneApiService) GETExternalPaymentIdOrderExecute(r HasOneApiGETExtern return localVarHTTPResponse, nil } -type HasOneApiGETExternalPaymentIdPaymentGatewayRequest struct { - ctx context.Context - ApiService *HasOneApiService - externalPaymentId interface{} +type HasOneApiGETCustomerIdCustomerGroupRequest struct { + ctx context.Context + ApiService *HasOneApiService + customerId interface{} } -func (r HasOneApiGETExternalPaymentIdPaymentGatewayRequest) Execute() (*http.Response, error) { - return r.ApiService.GETExternalPaymentIdPaymentGatewayExecute(r) +func (r HasOneApiGETCustomerIdCustomerGroupRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerIdCustomerGroupExecute(r) } /* -GETExternalPaymentIdPaymentGateway Retrieve the payment gateway associated to the external payment +GETCustomerIdCustomerGroup Retrieve the customer group associated to the customer -Retrieve the payment gateway associated to the external payment +Retrieve the customer group associated to the customer @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param externalPaymentId The resource's id - @return HasOneApiGETExternalPaymentIdPaymentGatewayRequest + @param customerId The resource's id + @return HasOneApiGETCustomerIdCustomerGroupRequest */ -func (a *HasOneApiService) GETExternalPaymentIdPaymentGateway(ctx context.Context, externalPaymentId interface{}) HasOneApiGETExternalPaymentIdPaymentGatewayRequest { - return HasOneApiGETExternalPaymentIdPaymentGatewayRequest{ - ApiService: a, - ctx: ctx, - externalPaymentId: externalPaymentId, +func (a *HasOneApiService) GETCustomerIdCustomerGroup(ctx context.Context, customerId interface{}) HasOneApiGETCustomerIdCustomerGroupRequest { + return HasOneApiGETCustomerIdCustomerGroupRequest{ + ApiService: a, + ctx: ctx, + customerId: customerId, } } // Execute executes the request -func (a *HasOneApiService) GETExternalPaymentIdPaymentGatewayExecute(r HasOneApiGETExternalPaymentIdPaymentGatewayRequest) (*http.Response, error) { +func (a *HasOneApiService) GETCustomerIdCustomerGroupExecute(r HasOneApiGETCustomerIdCustomerGroupRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETExternalPaymentIdPaymentGateway") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCustomerIdCustomerGroup") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/external_payments/{externalPaymentId}/payment_gateway" - localVarPath = strings.Replace(localVarPath, "{"+"externalPaymentId"+"}", url.PathEscape(parameterValueToString(r.externalPaymentId, "externalPaymentId")), -1) + localVarPath := localBasePath + "/customers/{customerId}/customer_group" + localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2691,48 +2691,48 @@ func (a *HasOneApiService) GETExternalPaymentIdPaymentGatewayExecute(r HasOneApi return localVarHTTPResponse, nil } -type HasOneApiGETExternalPaymentIdWalletRequest struct { - ctx context.Context - ApiService *HasOneApiService - externalPaymentId interface{} +type HasOneApiGETCustomerPasswordResetIdCustomerRequest struct { + ctx context.Context + ApiService *HasOneApiService + customerPasswordResetId interface{} } -func (r HasOneApiGETExternalPaymentIdWalletRequest) Execute() (*http.Response, error) { - return r.ApiService.GETExternalPaymentIdWalletExecute(r) +func (r HasOneApiGETCustomerPasswordResetIdCustomerRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerPasswordResetIdCustomerExecute(r) } /* -GETExternalPaymentIdWallet Retrieve the wallet associated to the external payment +GETCustomerPasswordResetIdCustomer Retrieve the customer associated to the customer password reset -Retrieve the wallet associated to the external payment +Retrieve the customer associated to the customer password reset @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param externalPaymentId The resource's id - @return HasOneApiGETExternalPaymentIdWalletRequest + @param customerPasswordResetId The resource's id + @return HasOneApiGETCustomerPasswordResetIdCustomerRequest */ -func (a *HasOneApiService) GETExternalPaymentIdWallet(ctx context.Context, externalPaymentId interface{}) HasOneApiGETExternalPaymentIdWalletRequest { - return HasOneApiGETExternalPaymentIdWalletRequest{ - ApiService: a, - ctx: ctx, - externalPaymentId: externalPaymentId, +func (a *HasOneApiService) GETCustomerPasswordResetIdCustomer(ctx context.Context, customerPasswordResetId interface{}) HasOneApiGETCustomerPasswordResetIdCustomerRequest { + return HasOneApiGETCustomerPasswordResetIdCustomerRequest{ + ApiService: a, + ctx: ctx, + customerPasswordResetId: customerPasswordResetId, } } // Execute executes the request -func (a *HasOneApiService) GETExternalPaymentIdWalletExecute(r HasOneApiGETExternalPaymentIdWalletRequest) (*http.Response, error) { +func (a *HasOneApiService) GETCustomerPasswordResetIdCustomerExecute(r HasOneApiGETCustomerPasswordResetIdCustomerRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETExternalPaymentIdWallet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCustomerPasswordResetIdCustomer") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/external_payments/{externalPaymentId}/wallet" - localVarPath = strings.Replace(localVarPath, "{"+"externalPaymentId"+"}", url.PathEscape(parameterValueToString(r.externalPaymentId, "externalPaymentId")), -1) + localVarPath := localBasePath + "/customer_password_resets/{customerPasswordResetId}/customer" + localVarPath = strings.Replace(localVarPath, "{"+"customerPasswordResetId"+"}", url.PathEscape(parameterValueToString(r.customerPasswordResetId, "customerPasswordResetId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2783,48 +2783,48 @@ func (a *HasOneApiService) GETExternalPaymentIdWalletExecute(r HasOneApiGETExter return localVarHTTPResponse, nil } -type HasOneApiGETExternalPromotionIdCouponCodesPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - externalPromotionId interface{} +type HasOneApiGETCustomerPaymentSourceIdCustomerRequest struct { + ctx context.Context + ApiService *HasOneApiService + customerPaymentSourceId interface{} } -func (r HasOneApiGETExternalPromotionIdCouponCodesPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETExternalPromotionIdCouponCodesPromotionRuleExecute(r) +func (r HasOneApiGETCustomerPaymentSourceIdCustomerRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerPaymentSourceIdCustomerExecute(r) } /* -GETExternalPromotionIdCouponCodesPromotionRule Retrieve the coupon codes promotion rule associated to the external promotion +GETCustomerPaymentSourceIdCustomer Retrieve the customer associated to the customer payment source -Retrieve the coupon codes promotion rule associated to the external promotion +Retrieve the customer associated to the customer payment source @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param externalPromotionId The resource's id - @return HasOneApiGETExternalPromotionIdCouponCodesPromotionRuleRequest + @param customerPaymentSourceId The resource's id + @return HasOneApiGETCustomerPaymentSourceIdCustomerRequest */ -func (a *HasOneApiService) GETExternalPromotionIdCouponCodesPromotionRule(ctx context.Context, externalPromotionId interface{}) HasOneApiGETExternalPromotionIdCouponCodesPromotionRuleRequest { - return HasOneApiGETExternalPromotionIdCouponCodesPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - externalPromotionId: externalPromotionId, +func (a *HasOneApiService) GETCustomerPaymentSourceIdCustomer(ctx context.Context, customerPaymentSourceId interface{}) HasOneApiGETCustomerPaymentSourceIdCustomerRequest { + return HasOneApiGETCustomerPaymentSourceIdCustomerRequest{ + ApiService: a, + ctx: ctx, + customerPaymentSourceId: customerPaymentSourceId, } } // Execute executes the request -func (a *HasOneApiService) GETExternalPromotionIdCouponCodesPromotionRuleExecute(r HasOneApiGETExternalPromotionIdCouponCodesPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETCustomerPaymentSourceIdCustomerExecute(r HasOneApiGETCustomerPaymentSourceIdCustomerRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETExternalPromotionIdCouponCodesPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCustomerPaymentSourceIdCustomer") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/coupon_codes_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + localVarPath := localBasePath + "/customer_payment_sources/{customerPaymentSourceId}/customer" + localVarPath = strings.Replace(localVarPath, "{"+"customerPaymentSourceId"+"}", url.PathEscape(parameterValueToString(r.customerPaymentSourceId, "customerPaymentSourceId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2875,48 +2875,48 @@ func (a *HasOneApiService) GETExternalPromotionIdCouponCodesPromotionRuleExecute return localVarHTTPResponse, nil } -type HasOneApiGETExternalPromotionIdMarketRequest struct { - ctx context.Context - ApiService *HasOneApiService - externalPromotionId interface{} +type HasOneApiGETCustomerPaymentSourceIdPaymentMethodRequest struct { + ctx context.Context + ApiService *HasOneApiService + customerPaymentSourceId interface{} } -func (r HasOneApiGETExternalPromotionIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETExternalPromotionIdMarketExecute(r) +func (r HasOneApiGETCustomerPaymentSourceIdPaymentMethodRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerPaymentSourceIdPaymentMethodExecute(r) } /* -GETExternalPromotionIdMarket Retrieve the market associated to the external promotion +GETCustomerPaymentSourceIdPaymentMethod Retrieve the payment method associated to the customer payment source -Retrieve the market associated to the external promotion +Retrieve the payment method associated to the customer payment source @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param externalPromotionId The resource's id - @return HasOneApiGETExternalPromotionIdMarketRequest + @param customerPaymentSourceId The resource's id + @return HasOneApiGETCustomerPaymentSourceIdPaymentMethodRequest */ -func (a *HasOneApiService) GETExternalPromotionIdMarket(ctx context.Context, externalPromotionId interface{}) HasOneApiGETExternalPromotionIdMarketRequest { - return HasOneApiGETExternalPromotionIdMarketRequest{ - ApiService: a, - ctx: ctx, - externalPromotionId: externalPromotionId, +func (a *HasOneApiService) GETCustomerPaymentSourceIdPaymentMethod(ctx context.Context, customerPaymentSourceId interface{}) HasOneApiGETCustomerPaymentSourceIdPaymentMethodRequest { + return HasOneApiGETCustomerPaymentSourceIdPaymentMethodRequest{ + ApiService: a, + ctx: ctx, + customerPaymentSourceId: customerPaymentSourceId, } } // Execute executes the request -func (a *HasOneApiService) GETExternalPromotionIdMarketExecute(r HasOneApiGETExternalPromotionIdMarketRequest) (*http.Response, error) { +func (a *HasOneApiService) GETCustomerPaymentSourceIdPaymentMethodExecute(r HasOneApiGETCustomerPaymentSourceIdPaymentMethodRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETExternalPromotionIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCustomerPaymentSourceIdPaymentMethod") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + localVarPath := localBasePath + "/customer_payment_sources/{customerPaymentSourceId}/payment_method" + localVarPath = strings.Replace(localVarPath, "{"+"customerPaymentSourceId"+"}", url.PathEscape(parameterValueToString(r.customerPaymentSourceId, "customerPaymentSourceId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2967,48 +2967,48 @@ func (a *HasOneApiService) GETExternalPromotionIdMarketExecute(r HasOneApiGETExt return localVarHTTPResponse, nil } -type HasOneApiGETExternalPromotionIdOrderAmountPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - externalPromotionId interface{} +type HasOneApiGETCustomerSubscriptionIdCustomerRequest struct { + ctx context.Context + ApiService *HasOneApiService + customerSubscriptionId interface{} } -func (r HasOneApiGETExternalPromotionIdOrderAmountPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETExternalPromotionIdOrderAmountPromotionRuleExecute(r) +func (r HasOneApiGETCustomerSubscriptionIdCustomerRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerSubscriptionIdCustomerExecute(r) } /* -GETExternalPromotionIdOrderAmountPromotionRule Retrieve the order amount promotion rule associated to the external promotion +GETCustomerSubscriptionIdCustomer Retrieve the customer associated to the customer subscription -Retrieve the order amount promotion rule associated to the external promotion +Retrieve the customer associated to the customer subscription @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param externalPromotionId The resource's id - @return HasOneApiGETExternalPromotionIdOrderAmountPromotionRuleRequest + @param customerSubscriptionId The resource's id + @return HasOneApiGETCustomerSubscriptionIdCustomerRequest */ -func (a *HasOneApiService) GETExternalPromotionIdOrderAmountPromotionRule(ctx context.Context, externalPromotionId interface{}) HasOneApiGETExternalPromotionIdOrderAmountPromotionRuleRequest { - return HasOneApiGETExternalPromotionIdOrderAmountPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - externalPromotionId: externalPromotionId, +func (a *HasOneApiService) GETCustomerSubscriptionIdCustomer(ctx context.Context, customerSubscriptionId interface{}) HasOneApiGETCustomerSubscriptionIdCustomerRequest { + return HasOneApiGETCustomerSubscriptionIdCustomerRequest{ + ApiService: a, + ctx: ctx, + customerSubscriptionId: customerSubscriptionId, } } // Execute executes the request -func (a *HasOneApiService) GETExternalPromotionIdOrderAmountPromotionRuleExecute(r HasOneApiGETExternalPromotionIdOrderAmountPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETCustomerSubscriptionIdCustomerExecute(r HasOneApiGETCustomerSubscriptionIdCustomerRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETExternalPromotionIdOrderAmountPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETCustomerSubscriptionIdCustomer") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/order_amount_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + localVarPath := localBasePath + "/customer_subscriptions/{customerSubscriptionId}/customer" + localVarPath = strings.Replace(localVarPath, "{"+"customerSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.customerSubscriptionId, "customerSubscriptionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3059,48 +3059,48 @@ func (a *HasOneApiService) GETExternalPromotionIdOrderAmountPromotionRuleExecute return localVarHTTPResponse, nil } -type HasOneApiGETExternalPromotionIdSkuListPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - externalPromotionId interface{} +type HasOneApiGETDeliveryLeadTimeIdShippingMethodRequest struct { + ctx context.Context + ApiService *HasOneApiService + deliveryLeadTimeId interface{} } -func (r HasOneApiGETExternalPromotionIdSkuListPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETExternalPromotionIdSkuListPromotionRuleExecute(r) +func (r HasOneApiGETDeliveryLeadTimeIdShippingMethodRequest) Execute() (*http.Response, error) { + return r.ApiService.GETDeliveryLeadTimeIdShippingMethodExecute(r) } /* -GETExternalPromotionIdSkuListPromotionRule Retrieve the sku list promotion rule associated to the external promotion +GETDeliveryLeadTimeIdShippingMethod Retrieve the shipping method associated to the delivery lead time -Retrieve the sku list promotion rule associated to the external promotion +Retrieve the shipping method associated to the delivery lead time @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param externalPromotionId The resource's id - @return HasOneApiGETExternalPromotionIdSkuListPromotionRuleRequest + @param deliveryLeadTimeId The resource's id + @return HasOneApiGETDeliveryLeadTimeIdShippingMethodRequest */ -func (a *HasOneApiService) GETExternalPromotionIdSkuListPromotionRule(ctx context.Context, externalPromotionId interface{}) HasOneApiGETExternalPromotionIdSkuListPromotionRuleRequest { - return HasOneApiGETExternalPromotionIdSkuListPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - externalPromotionId: externalPromotionId, +func (a *HasOneApiService) GETDeliveryLeadTimeIdShippingMethod(ctx context.Context, deliveryLeadTimeId interface{}) HasOneApiGETDeliveryLeadTimeIdShippingMethodRequest { + return HasOneApiGETDeliveryLeadTimeIdShippingMethodRequest{ + ApiService: a, + ctx: ctx, + deliveryLeadTimeId: deliveryLeadTimeId, } } // Execute executes the request -func (a *HasOneApiService) GETExternalPromotionIdSkuListPromotionRuleExecute(r HasOneApiGETExternalPromotionIdSkuListPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETDeliveryLeadTimeIdShippingMethodExecute(r HasOneApiGETDeliveryLeadTimeIdShippingMethodRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETExternalPromotionIdSkuListPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETDeliveryLeadTimeIdShippingMethod") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/sku_list_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + localVarPath := localBasePath + "/delivery_lead_times/{deliveryLeadTimeId}/shipping_method" + localVarPath = strings.Replace(localVarPath, "{"+"deliveryLeadTimeId"+"}", url.PathEscape(parameterValueToString(r.deliveryLeadTimeId, "deliveryLeadTimeId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3151,48 +3151,48 @@ func (a *HasOneApiService) GETExternalPromotionIdSkuListPromotionRuleExecute(r H return localVarHTTPResponse, nil } -type HasOneApiGETFixedAmountPromotionIdCouponCodesPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - fixedAmountPromotionId interface{} +type HasOneApiGETDeliveryLeadTimeIdStockLocationRequest struct { + ctx context.Context + ApiService *HasOneApiService + deliveryLeadTimeId interface{} } -func (r HasOneApiGETFixedAmountPromotionIdCouponCodesPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFixedAmountPromotionIdCouponCodesPromotionRuleExecute(r) +func (r HasOneApiGETDeliveryLeadTimeIdStockLocationRequest) Execute() (*http.Response, error) { + return r.ApiService.GETDeliveryLeadTimeIdStockLocationExecute(r) } /* -GETFixedAmountPromotionIdCouponCodesPromotionRule Retrieve the coupon codes promotion rule associated to the fixed amount promotion +GETDeliveryLeadTimeIdStockLocation Retrieve the stock location associated to the delivery lead time -Retrieve the coupon codes promotion rule associated to the fixed amount promotion +Retrieve the stock location associated to the delivery lead time @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param fixedAmountPromotionId The resource's id - @return HasOneApiGETFixedAmountPromotionIdCouponCodesPromotionRuleRequest + @param deliveryLeadTimeId The resource's id + @return HasOneApiGETDeliveryLeadTimeIdStockLocationRequest */ -func (a *HasOneApiService) GETFixedAmountPromotionIdCouponCodesPromotionRule(ctx context.Context, fixedAmountPromotionId interface{}) HasOneApiGETFixedAmountPromotionIdCouponCodesPromotionRuleRequest { - return HasOneApiGETFixedAmountPromotionIdCouponCodesPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - fixedAmountPromotionId: fixedAmountPromotionId, +func (a *HasOneApiService) GETDeliveryLeadTimeIdStockLocation(ctx context.Context, deliveryLeadTimeId interface{}) HasOneApiGETDeliveryLeadTimeIdStockLocationRequest { + return HasOneApiGETDeliveryLeadTimeIdStockLocationRequest{ + ApiService: a, + ctx: ctx, + deliveryLeadTimeId: deliveryLeadTimeId, } } // Execute executes the request -func (a *HasOneApiService) GETFixedAmountPromotionIdCouponCodesPromotionRuleExecute(r HasOneApiGETFixedAmountPromotionIdCouponCodesPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETDeliveryLeadTimeIdStockLocationExecute(r HasOneApiGETDeliveryLeadTimeIdStockLocationRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedAmountPromotionIdCouponCodesPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETDeliveryLeadTimeIdStockLocation") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/coupon_codes_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + localVarPath := localBasePath + "/delivery_lead_times/{deliveryLeadTimeId}/stock_location" + localVarPath = strings.Replace(localVarPath, "{"+"deliveryLeadTimeId"+"}", url.PathEscape(parameterValueToString(r.deliveryLeadTimeId, "deliveryLeadTimeId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3243,48 +3243,48 @@ func (a *HasOneApiService) GETFixedAmountPromotionIdCouponCodesPromotionRuleExec return localVarHTTPResponse, nil } -type HasOneApiGETFixedAmountPromotionIdMarketRequest struct { - ctx context.Context - ApiService *HasOneApiService - fixedAmountPromotionId interface{} +type HasOneApiGETEventCallbackIdWebhookRequest struct { + ctx context.Context + ApiService *HasOneApiService + eventCallbackId interface{} } -func (r HasOneApiGETFixedAmountPromotionIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFixedAmountPromotionIdMarketExecute(r) +func (r HasOneApiGETEventCallbackIdWebhookRequest) Execute() (*http.Response, error) { + return r.ApiService.GETEventCallbackIdWebhookExecute(r) } /* -GETFixedAmountPromotionIdMarket Retrieve the market associated to the fixed amount promotion +GETEventCallbackIdWebhook Retrieve the webhook associated to the event callback -Retrieve the market associated to the fixed amount promotion +Retrieve the webhook associated to the event callback @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param fixedAmountPromotionId The resource's id - @return HasOneApiGETFixedAmountPromotionIdMarketRequest + @param eventCallbackId The resource's id + @return HasOneApiGETEventCallbackIdWebhookRequest */ -func (a *HasOneApiService) GETFixedAmountPromotionIdMarket(ctx context.Context, fixedAmountPromotionId interface{}) HasOneApiGETFixedAmountPromotionIdMarketRequest { - return HasOneApiGETFixedAmountPromotionIdMarketRequest{ - ApiService: a, - ctx: ctx, - fixedAmountPromotionId: fixedAmountPromotionId, +func (a *HasOneApiService) GETEventCallbackIdWebhook(ctx context.Context, eventCallbackId interface{}) HasOneApiGETEventCallbackIdWebhookRequest { + return HasOneApiGETEventCallbackIdWebhookRequest{ + ApiService: a, + ctx: ctx, + eventCallbackId: eventCallbackId, } } // Execute executes the request -func (a *HasOneApiService) GETFixedAmountPromotionIdMarketExecute(r HasOneApiGETFixedAmountPromotionIdMarketRequest) (*http.Response, error) { +func (a *HasOneApiService) GETEventCallbackIdWebhookExecute(r HasOneApiGETEventCallbackIdWebhookRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedAmountPromotionIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETEventCallbackIdWebhook") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + localVarPath := localBasePath + "/event_callbacks/{eventCallbackId}/webhook" + localVarPath = strings.Replace(localVarPath, "{"+"eventCallbackId"+"}", url.PathEscape(parameterValueToString(r.eventCallbackId, "eventCallbackId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3335,48 +3335,48 @@ func (a *HasOneApiService) GETFixedAmountPromotionIdMarketExecute(r HasOneApiGET return localVarHTTPResponse, nil } -type HasOneApiGETFixedAmountPromotionIdOrderAmountPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - fixedAmountPromotionId interface{} +type HasOneApiGETExternalPaymentIdOrderRequest struct { + ctx context.Context + ApiService *HasOneApiService + externalPaymentId interface{} } -func (r HasOneApiGETFixedAmountPromotionIdOrderAmountPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFixedAmountPromotionIdOrderAmountPromotionRuleExecute(r) +func (r HasOneApiGETExternalPaymentIdOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPaymentIdOrderExecute(r) } /* -GETFixedAmountPromotionIdOrderAmountPromotionRule Retrieve the order amount promotion rule associated to the fixed amount promotion +GETExternalPaymentIdOrder Retrieve the order associated to the external payment -Retrieve the order amount promotion rule associated to the fixed amount promotion +Retrieve the order associated to the external payment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param fixedAmountPromotionId The resource's id - @return HasOneApiGETFixedAmountPromotionIdOrderAmountPromotionRuleRequest + @param externalPaymentId The resource's id + @return HasOneApiGETExternalPaymentIdOrderRequest */ -func (a *HasOneApiService) GETFixedAmountPromotionIdOrderAmountPromotionRule(ctx context.Context, fixedAmountPromotionId interface{}) HasOneApiGETFixedAmountPromotionIdOrderAmountPromotionRuleRequest { - return HasOneApiGETFixedAmountPromotionIdOrderAmountPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - fixedAmountPromotionId: fixedAmountPromotionId, +func (a *HasOneApiService) GETExternalPaymentIdOrder(ctx context.Context, externalPaymentId interface{}) HasOneApiGETExternalPaymentIdOrderRequest { + return HasOneApiGETExternalPaymentIdOrderRequest{ + ApiService: a, + ctx: ctx, + externalPaymentId: externalPaymentId, } } // Execute executes the request -func (a *HasOneApiService) GETFixedAmountPromotionIdOrderAmountPromotionRuleExecute(r HasOneApiGETFixedAmountPromotionIdOrderAmountPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETExternalPaymentIdOrderExecute(r HasOneApiGETExternalPaymentIdOrderRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedAmountPromotionIdOrderAmountPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETExternalPaymentIdOrder") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/order_amount_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + localVarPath := localBasePath + "/external_payments/{externalPaymentId}/order" + localVarPath = strings.Replace(localVarPath, "{"+"externalPaymentId"+"}", url.PathEscape(parameterValueToString(r.externalPaymentId, "externalPaymentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3427,48 +3427,48 @@ func (a *HasOneApiService) GETFixedAmountPromotionIdOrderAmountPromotionRuleExec return localVarHTTPResponse, nil } -type HasOneApiGETFixedAmountPromotionIdSkuListPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - fixedAmountPromotionId interface{} +type HasOneApiGETExternalPaymentIdPaymentGatewayRequest struct { + ctx context.Context + ApiService *HasOneApiService + externalPaymentId interface{} } -func (r HasOneApiGETFixedAmountPromotionIdSkuListPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFixedAmountPromotionIdSkuListPromotionRuleExecute(r) +func (r HasOneApiGETExternalPaymentIdPaymentGatewayRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPaymentIdPaymentGatewayExecute(r) } /* -GETFixedAmountPromotionIdSkuListPromotionRule Retrieve the sku list promotion rule associated to the fixed amount promotion +GETExternalPaymentIdPaymentGateway Retrieve the payment gateway associated to the external payment -Retrieve the sku list promotion rule associated to the fixed amount promotion +Retrieve the payment gateway associated to the external payment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param fixedAmountPromotionId The resource's id - @return HasOneApiGETFixedAmountPromotionIdSkuListPromotionRuleRequest + @param externalPaymentId The resource's id + @return HasOneApiGETExternalPaymentIdPaymentGatewayRequest */ -func (a *HasOneApiService) GETFixedAmountPromotionIdSkuListPromotionRule(ctx context.Context, fixedAmountPromotionId interface{}) HasOneApiGETFixedAmountPromotionIdSkuListPromotionRuleRequest { - return HasOneApiGETFixedAmountPromotionIdSkuListPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - fixedAmountPromotionId: fixedAmountPromotionId, +func (a *HasOneApiService) GETExternalPaymentIdPaymentGateway(ctx context.Context, externalPaymentId interface{}) HasOneApiGETExternalPaymentIdPaymentGatewayRequest { + return HasOneApiGETExternalPaymentIdPaymentGatewayRequest{ + ApiService: a, + ctx: ctx, + externalPaymentId: externalPaymentId, } } // Execute executes the request -func (a *HasOneApiService) GETFixedAmountPromotionIdSkuListPromotionRuleExecute(r HasOneApiGETFixedAmountPromotionIdSkuListPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETExternalPaymentIdPaymentGatewayExecute(r HasOneApiGETExternalPaymentIdPaymentGatewayRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedAmountPromotionIdSkuListPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETExternalPaymentIdPaymentGateway") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/sku_list_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + localVarPath := localBasePath + "/external_payments/{externalPaymentId}/payment_gateway" + localVarPath = strings.Replace(localVarPath, "{"+"externalPaymentId"+"}", url.PathEscape(parameterValueToString(r.externalPaymentId, "externalPaymentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3519,48 +3519,48 @@ func (a *HasOneApiService) GETFixedAmountPromotionIdSkuListPromotionRuleExecute( return localVarHTTPResponse, nil } -type HasOneApiGETFixedPricePromotionIdCouponCodesPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - fixedPricePromotionId interface{} +type HasOneApiGETExternalPaymentIdWalletRequest struct { + ctx context.Context + ApiService *HasOneApiService + externalPaymentId interface{} } -func (r HasOneApiGETFixedPricePromotionIdCouponCodesPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFixedPricePromotionIdCouponCodesPromotionRuleExecute(r) +func (r HasOneApiGETExternalPaymentIdWalletRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPaymentIdWalletExecute(r) } /* -GETFixedPricePromotionIdCouponCodesPromotionRule Retrieve the coupon codes promotion rule associated to the fixed price promotion +GETExternalPaymentIdWallet Retrieve the wallet associated to the external payment -Retrieve the coupon codes promotion rule associated to the fixed price promotion +Retrieve the wallet associated to the external payment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param fixedPricePromotionId The resource's id - @return HasOneApiGETFixedPricePromotionIdCouponCodesPromotionRuleRequest + @param externalPaymentId The resource's id + @return HasOneApiGETExternalPaymentIdWalletRequest */ -func (a *HasOneApiService) GETFixedPricePromotionIdCouponCodesPromotionRule(ctx context.Context, fixedPricePromotionId interface{}) HasOneApiGETFixedPricePromotionIdCouponCodesPromotionRuleRequest { - return HasOneApiGETFixedPricePromotionIdCouponCodesPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - fixedPricePromotionId: fixedPricePromotionId, +func (a *HasOneApiService) GETExternalPaymentIdWallet(ctx context.Context, externalPaymentId interface{}) HasOneApiGETExternalPaymentIdWalletRequest { + return HasOneApiGETExternalPaymentIdWalletRequest{ + ApiService: a, + ctx: ctx, + externalPaymentId: externalPaymentId, } } // Execute executes the request -func (a *HasOneApiService) GETFixedPricePromotionIdCouponCodesPromotionRuleExecute(r HasOneApiGETFixedPricePromotionIdCouponCodesPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETExternalPaymentIdWalletExecute(r HasOneApiGETExternalPaymentIdWalletRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedPricePromotionIdCouponCodesPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETExternalPaymentIdWallet") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/coupon_codes_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + localVarPath := localBasePath + "/external_payments/{externalPaymentId}/wallet" + localVarPath = strings.Replace(localVarPath, "{"+"externalPaymentId"+"}", url.PathEscape(parameterValueToString(r.externalPaymentId, "externalPaymentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3611,48 +3611,48 @@ func (a *HasOneApiService) GETFixedPricePromotionIdCouponCodesPromotionRuleExecu return localVarHTTPResponse, nil } -type HasOneApiGETFixedPricePromotionIdMarketRequest struct { - ctx context.Context - ApiService *HasOneApiService - fixedPricePromotionId interface{} +type HasOneApiGETExternalPromotionIdCouponCodesPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + externalPromotionId interface{} } -func (r HasOneApiGETFixedPricePromotionIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFixedPricePromotionIdMarketExecute(r) +func (r HasOneApiGETExternalPromotionIdCouponCodesPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPromotionIdCouponCodesPromotionRuleExecute(r) } /* -GETFixedPricePromotionIdMarket Retrieve the market associated to the fixed price promotion +GETExternalPromotionIdCouponCodesPromotionRule Retrieve the coupon codes promotion rule associated to the external promotion -Retrieve the market associated to the fixed price promotion +Retrieve the coupon codes promotion rule associated to the external promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param fixedPricePromotionId The resource's id - @return HasOneApiGETFixedPricePromotionIdMarketRequest + @param externalPromotionId The resource's id + @return HasOneApiGETExternalPromotionIdCouponCodesPromotionRuleRequest */ -func (a *HasOneApiService) GETFixedPricePromotionIdMarket(ctx context.Context, fixedPricePromotionId interface{}) HasOneApiGETFixedPricePromotionIdMarketRequest { - return HasOneApiGETFixedPricePromotionIdMarketRequest{ - ApiService: a, - ctx: ctx, - fixedPricePromotionId: fixedPricePromotionId, +func (a *HasOneApiService) GETExternalPromotionIdCouponCodesPromotionRule(ctx context.Context, externalPromotionId interface{}) HasOneApiGETExternalPromotionIdCouponCodesPromotionRuleRequest { + return HasOneApiGETExternalPromotionIdCouponCodesPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + externalPromotionId: externalPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETFixedPricePromotionIdMarketExecute(r HasOneApiGETFixedPricePromotionIdMarketRequest) (*http.Response, error) { +func (a *HasOneApiService) GETExternalPromotionIdCouponCodesPromotionRuleExecute(r HasOneApiGETExternalPromotionIdCouponCodesPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedPricePromotionIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETExternalPromotionIdCouponCodesPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/coupon_codes_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3703,48 +3703,48 @@ func (a *HasOneApiService) GETFixedPricePromotionIdMarketExecute(r HasOneApiGETF return localVarHTTPResponse, nil } -type HasOneApiGETFixedPricePromotionIdOrderAmountPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - fixedPricePromotionId interface{} +type HasOneApiGETExternalPromotionIdCustomPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + externalPromotionId interface{} } -func (r HasOneApiGETFixedPricePromotionIdOrderAmountPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFixedPricePromotionIdOrderAmountPromotionRuleExecute(r) +func (r HasOneApiGETExternalPromotionIdCustomPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPromotionIdCustomPromotionRuleExecute(r) } /* -GETFixedPricePromotionIdOrderAmountPromotionRule Retrieve the order amount promotion rule associated to the fixed price promotion +GETExternalPromotionIdCustomPromotionRule Retrieve the custom promotion rule associated to the external promotion -Retrieve the order amount promotion rule associated to the fixed price promotion +Retrieve the custom promotion rule associated to the external promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param fixedPricePromotionId The resource's id - @return HasOneApiGETFixedPricePromotionIdOrderAmountPromotionRuleRequest + @param externalPromotionId The resource's id + @return HasOneApiGETExternalPromotionIdCustomPromotionRuleRequest */ -func (a *HasOneApiService) GETFixedPricePromotionIdOrderAmountPromotionRule(ctx context.Context, fixedPricePromotionId interface{}) HasOneApiGETFixedPricePromotionIdOrderAmountPromotionRuleRequest { - return HasOneApiGETFixedPricePromotionIdOrderAmountPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - fixedPricePromotionId: fixedPricePromotionId, +func (a *HasOneApiService) GETExternalPromotionIdCustomPromotionRule(ctx context.Context, externalPromotionId interface{}) HasOneApiGETExternalPromotionIdCustomPromotionRuleRequest { + return HasOneApiGETExternalPromotionIdCustomPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + externalPromotionId: externalPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETFixedPricePromotionIdOrderAmountPromotionRuleExecute(r HasOneApiGETFixedPricePromotionIdOrderAmountPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETExternalPromotionIdCustomPromotionRuleExecute(r HasOneApiGETExternalPromotionIdCustomPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedPricePromotionIdOrderAmountPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETExternalPromotionIdCustomPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/order_amount_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/custom_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3795,48 +3795,48 @@ func (a *HasOneApiService) GETFixedPricePromotionIdOrderAmountPromotionRuleExecu return localVarHTTPResponse, nil } -type HasOneApiGETFixedPricePromotionIdSkuListRequest struct { - ctx context.Context - ApiService *HasOneApiService - fixedPricePromotionId interface{} +type HasOneApiGETExternalPromotionIdMarketRequest struct { + ctx context.Context + ApiService *HasOneApiService + externalPromotionId interface{} } -func (r HasOneApiGETFixedPricePromotionIdSkuListRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFixedPricePromotionIdSkuListExecute(r) +func (r HasOneApiGETExternalPromotionIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPromotionIdMarketExecute(r) } /* -GETFixedPricePromotionIdSkuList Retrieve the sku list associated to the fixed price promotion +GETExternalPromotionIdMarket Retrieve the market associated to the external promotion -Retrieve the sku list associated to the fixed price promotion +Retrieve the market associated to the external promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param fixedPricePromotionId The resource's id - @return HasOneApiGETFixedPricePromotionIdSkuListRequest + @param externalPromotionId The resource's id + @return HasOneApiGETExternalPromotionIdMarketRequest */ -func (a *HasOneApiService) GETFixedPricePromotionIdSkuList(ctx context.Context, fixedPricePromotionId interface{}) HasOneApiGETFixedPricePromotionIdSkuListRequest { - return HasOneApiGETFixedPricePromotionIdSkuListRequest{ - ApiService: a, - ctx: ctx, - fixedPricePromotionId: fixedPricePromotionId, - } +func (a *HasOneApiService) GETExternalPromotionIdMarket(ctx context.Context, externalPromotionId interface{}) HasOneApiGETExternalPromotionIdMarketRequest { + return HasOneApiGETExternalPromotionIdMarketRequest{ + ApiService: a, + ctx: ctx, + externalPromotionId: externalPromotionId, + } } // Execute executes the request -func (a *HasOneApiService) GETFixedPricePromotionIdSkuListExecute(r HasOneApiGETFixedPricePromotionIdSkuListRequest) (*http.Response, error) { +func (a *HasOneApiService) GETExternalPromotionIdMarketExecute(r HasOneApiGETExternalPromotionIdMarketRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedPricePromotionIdSkuList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETExternalPromotionIdMarket") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/sku_list" - localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3887,48 +3887,48 @@ func (a *HasOneApiService) GETFixedPricePromotionIdSkuListExecute(r HasOneApiGET return localVarHTTPResponse, nil } -type HasOneApiGETFixedPricePromotionIdSkuListPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - fixedPricePromotionId interface{} +type HasOneApiGETExternalPromotionIdOrderAmountPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + externalPromotionId interface{} } -func (r HasOneApiGETFixedPricePromotionIdSkuListPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFixedPricePromotionIdSkuListPromotionRuleExecute(r) +func (r HasOneApiGETExternalPromotionIdOrderAmountPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPromotionIdOrderAmountPromotionRuleExecute(r) } /* -GETFixedPricePromotionIdSkuListPromotionRule Retrieve the sku list promotion rule associated to the fixed price promotion +GETExternalPromotionIdOrderAmountPromotionRule Retrieve the order amount promotion rule associated to the external promotion -Retrieve the sku list promotion rule associated to the fixed price promotion +Retrieve the order amount promotion rule associated to the external promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param fixedPricePromotionId The resource's id - @return HasOneApiGETFixedPricePromotionIdSkuListPromotionRuleRequest + @param externalPromotionId The resource's id + @return HasOneApiGETExternalPromotionIdOrderAmountPromotionRuleRequest */ -func (a *HasOneApiService) GETFixedPricePromotionIdSkuListPromotionRule(ctx context.Context, fixedPricePromotionId interface{}) HasOneApiGETFixedPricePromotionIdSkuListPromotionRuleRequest { - return HasOneApiGETFixedPricePromotionIdSkuListPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - fixedPricePromotionId: fixedPricePromotionId, +func (a *HasOneApiService) GETExternalPromotionIdOrderAmountPromotionRule(ctx context.Context, externalPromotionId interface{}) HasOneApiGETExternalPromotionIdOrderAmountPromotionRuleRequest { + return HasOneApiGETExternalPromotionIdOrderAmountPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + externalPromotionId: externalPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETFixedPricePromotionIdSkuListPromotionRuleExecute(r HasOneApiGETFixedPricePromotionIdSkuListPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETExternalPromotionIdOrderAmountPromotionRuleExecute(r HasOneApiGETExternalPromotionIdOrderAmountPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedPricePromotionIdSkuListPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETExternalPromotionIdOrderAmountPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/sku_list_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/order_amount_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3979,48 +3979,48 @@ func (a *HasOneApiService) GETFixedPricePromotionIdSkuListPromotionRuleExecute(r return localVarHTTPResponse, nil } -type HasOneApiGETFreeGiftPromotionIdCouponCodesPromotionRuleRequest struct { +type HasOneApiGETExternalPromotionIdSkuListRequest struct { ctx context.Context ApiService *HasOneApiService - freeGiftPromotionId interface{} + externalPromotionId interface{} } -func (r HasOneApiGETFreeGiftPromotionIdCouponCodesPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFreeGiftPromotionIdCouponCodesPromotionRuleExecute(r) +func (r HasOneApiGETExternalPromotionIdSkuListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPromotionIdSkuListExecute(r) } /* -GETFreeGiftPromotionIdCouponCodesPromotionRule Retrieve the coupon codes promotion rule associated to the free gift promotion +GETExternalPromotionIdSkuList Retrieve the sku list associated to the external promotion -Retrieve the coupon codes promotion rule associated to the free gift promotion +Retrieve the sku list associated to the external promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param freeGiftPromotionId The resource's id - @return HasOneApiGETFreeGiftPromotionIdCouponCodesPromotionRuleRequest + @param externalPromotionId The resource's id + @return HasOneApiGETExternalPromotionIdSkuListRequest */ -func (a *HasOneApiService) GETFreeGiftPromotionIdCouponCodesPromotionRule(ctx context.Context, freeGiftPromotionId interface{}) HasOneApiGETFreeGiftPromotionIdCouponCodesPromotionRuleRequest { - return HasOneApiGETFreeGiftPromotionIdCouponCodesPromotionRuleRequest{ +func (a *HasOneApiService) GETExternalPromotionIdSkuList(ctx context.Context, externalPromotionId interface{}) HasOneApiGETExternalPromotionIdSkuListRequest { + return HasOneApiGETExternalPromotionIdSkuListRequest{ ApiService: a, ctx: ctx, - freeGiftPromotionId: freeGiftPromotionId, + externalPromotionId: externalPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETFreeGiftPromotionIdCouponCodesPromotionRuleExecute(r HasOneApiGETFreeGiftPromotionIdCouponCodesPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETExternalPromotionIdSkuListExecute(r HasOneApiGETExternalPromotionIdSkuListRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeGiftPromotionIdCouponCodesPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETExternalPromotionIdSkuList") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/coupon_codes_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/sku_list" + localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4071,48 +4071,48 @@ func (a *HasOneApiService) GETFreeGiftPromotionIdCouponCodesPromotionRuleExecute return localVarHTTPResponse, nil } -type HasOneApiGETFreeGiftPromotionIdMarketRequest struct { +type HasOneApiGETExternalPromotionIdSkuListPromotionRuleRequest struct { ctx context.Context ApiService *HasOneApiService - freeGiftPromotionId interface{} + externalPromotionId interface{} } -func (r HasOneApiGETFreeGiftPromotionIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFreeGiftPromotionIdMarketExecute(r) +func (r HasOneApiGETExternalPromotionIdSkuListPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPromotionIdSkuListPromotionRuleExecute(r) } /* -GETFreeGiftPromotionIdMarket Retrieve the market associated to the free gift promotion +GETExternalPromotionIdSkuListPromotionRule Retrieve the sku list promotion rule associated to the external promotion -Retrieve the market associated to the free gift promotion +Retrieve the sku list promotion rule associated to the external promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param freeGiftPromotionId The resource's id - @return HasOneApiGETFreeGiftPromotionIdMarketRequest + @param externalPromotionId The resource's id + @return HasOneApiGETExternalPromotionIdSkuListPromotionRuleRequest */ -func (a *HasOneApiService) GETFreeGiftPromotionIdMarket(ctx context.Context, freeGiftPromotionId interface{}) HasOneApiGETFreeGiftPromotionIdMarketRequest { - return HasOneApiGETFreeGiftPromotionIdMarketRequest{ +func (a *HasOneApiService) GETExternalPromotionIdSkuListPromotionRule(ctx context.Context, externalPromotionId interface{}) HasOneApiGETExternalPromotionIdSkuListPromotionRuleRequest { + return HasOneApiGETExternalPromotionIdSkuListPromotionRuleRequest{ ApiService: a, ctx: ctx, - freeGiftPromotionId: freeGiftPromotionId, + externalPromotionId: externalPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETFreeGiftPromotionIdMarketExecute(r HasOneApiGETFreeGiftPromotionIdMarketRequest) (*http.Response, error) { +func (a *HasOneApiService) GETExternalPromotionIdSkuListPromotionRuleExecute(r HasOneApiGETExternalPromotionIdSkuListPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeGiftPromotionIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETExternalPromotionIdSkuListPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/sku_list_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4163,48 +4163,48 @@ func (a *HasOneApiService) GETFreeGiftPromotionIdMarketExecute(r HasOneApiGETFre return localVarHTTPResponse, nil } -type HasOneApiGETFreeGiftPromotionIdOrderAmountPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - freeGiftPromotionId interface{} +type HasOneApiGETFixedAmountPromotionIdCouponCodesPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + fixedAmountPromotionId interface{} } -func (r HasOneApiGETFreeGiftPromotionIdOrderAmountPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFreeGiftPromotionIdOrderAmountPromotionRuleExecute(r) +func (r HasOneApiGETFixedAmountPromotionIdCouponCodesPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedAmountPromotionIdCouponCodesPromotionRuleExecute(r) } /* -GETFreeGiftPromotionIdOrderAmountPromotionRule Retrieve the order amount promotion rule associated to the free gift promotion +GETFixedAmountPromotionIdCouponCodesPromotionRule Retrieve the coupon codes promotion rule associated to the fixed amount promotion -Retrieve the order amount promotion rule associated to the free gift promotion +Retrieve the coupon codes promotion rule associated to the fixed amount promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param freeGiftPromotionId The resource's id - @return HasOneApiGETFreeGiftPromotionIdOrderAmountPromotionRuleRequest + @param fixedAmountPromotionId The resource's id + @return HasOneApiGETFixedAmountPromotionIdCouponCodesPromotionRuleRequest */ -func (a *HasOneApiService) GETFreeGiftPromotionIdOrderAmountPromotionRule(ctx context.Context, freeGiftPromotionId interface{}) HasOneApiGETFreeGiftPromotionIdOrderAmountPromotionRuleRequest { - return HasOneApiGETFreeGiftPromotionIdOrderAmountPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - freeGiftPromotionId: freeGiftPromotionId, +func (a *HasOneApiService) GETFixedAmountPromotionIdCouponCodesPromotionRule(ctx context.Context, fixedAmountPromotionId interface{}) HasOneApiGETFixedAmountPromotionIdCouponCodesPromotionRuleRequest { + return HasOneApiGETFixedAmountPromotionIdCouponCodesPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + fixedAmountPromotionId: fixedAmountPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETFreeGiftPromotionIdOrderAmountPromotionRuleExecute(r HasOneApiGETFreeGiftPromotionIdOrderAmountPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETFixedAmountPromotionIdCouponCodesPromotionRuleExecute(r HasOneApiGETFixedAmountPromotionIdCouponCodesPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeGiftPromotionIdOrderAmountPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedAmountPromotionIdCouponCodesPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/order_amount_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/coupon_codes_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4255,48 +4255,48 @@ func (a *HasOneApiService) GETFreeGiftPromotionIdOrderAmountPromotionRuleExecute return localVarHTTPResponse, nil } -type HasOneApiGETFreeGiftPromotionIdSkuListRequest struct { - ctx context.Context - ApiService *HasOneApiService - freeGiftPromotionId interface{} +type HasOneApiGETFixedAmountPromotionIdCustomPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + fixedAmountPromotionId interface{} } -func (r HasOneApiGETFreeGiftPromotionIdSkuListRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFreeGiftPromotionIdSkuListExecute(r) +func (r HasOneApiGETFixedAmountPromotionIdCustomPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedAmountPromotionIdCustomPromotionRuleExecute(r) } /* -GETFreeGiftPromotionIdSkuList Retrieve the sku list associated to the free gift promotion +GETFixedAmountPromotionIdCustomPromotionRule Retrieve the custom promotion rule associated to the fixed amount promotion -Retrieve the sku list associated to the free gift promotion +Retrieve the custom promotion rule associated to the fixed amount promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param freeGiftPromotionId The resource's id - @return HasOneApiGETFreeGiftPromotionIdSkuListRequest + @param fixedAmountPromotionId The resource's id + @return HasOneApiGETFixedAmountPromotionIdCustomPromotionRuleRequest */ -func (a *HasOneApiService) GETFreeGiftPromotionIdSkuList(ctx context.Context, freeGiftPromotionId interface{}) HasOneApiGETFreeGiftPromotionIdSkuListRequest { - return HasOneApiGETFreeGiftPromotionIdSkuListRequest{ - ApiService: a, - ctx: ctx, - freeGiftPromotionId: freeGiftPromotionId, +func (a *HasOneApiService) GETFixedAmountPromotionIdCustomPromotionRule(ctx context.Context, fixedAmountPromotionId interface{}) HasOneApiGETFixedAmountPromotionIdCustomPromotionRuleRequest { + return HasOneApiGETFixedAmountPromotionIdCustomPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + fixedAmountPromotionId: fixedAmountPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETFreeGiftPromotionIdSkuListExecute(r HasOneApiGETFreeGiftPromotionIdSkuListRequest) (*http.Response, error) { +func (a *HasOneApiService) GETFixedAmountPromotionIdCustomPromotionRuleExecute(r HasOneApiGETFixedAmountPromotionIdCustomPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeGiftPromotionIdSkuList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedAmountPromotionIdCustomPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/sku_list" - localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/custom_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4347,48 +4347,48 @@ func (a *HasOneApiService) GETFreeGiftPromotionIdSkuListExecute(r HasOneApiGETFr return localVarHTTPResponse, nil } -type HasOneApiGETFreeGiftPromotionIdSkuListPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - freeGiftPromotionId interface{} +type HasOneApiGETFixedAmountPromotionIdMarketRequest struct { + ctx context.Context + ApiService *HasOneApiService + fixedAmountPromotionId interface{} } -func (r HasOneApiGETFreeGiftPromotionIdSkuListPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFreeGiftPromotionIdSkuListPromotionRuleExecute(r) +func (r HasOneApiGETFixedAmountPromotionIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedAmountPromotionIdMarketExecute(r) } /* -GETFreeGiftPromotionIdSkuListPromotionRule Retrieve the sku list promotion rule associated to the free gift promotion +GETFixedAmountPromotionIdMarket Retrieve the market associated to the fixed amount promotion -Retrieve the sku list promotion rule associated to the free gift promotion +Retrieve the market associated to the fixed amount promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param freeGiftPromotionId The resource's id - @return HasOneApiGETFreeGiftPromotionIdSkuListPromotionRuleRequest + @param fixedAmountPromotionId The resource's id + @return HasOneApiGETFixedAmountPromotionIdMarketRequest */ -func (a *HasOneApiService) GETFreeGiftPromotionIdSkuListPromotionRule(ctx context.Context, freeGiftPromotionId interface{}) HasOneApiGETFreeGiftPromotionIdSkuListPromotionRuleRequest { - return HasOneApiGETFreeGiftPromotionIdSkuListPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - freeGiftPromotionId: freeGiftPromotionId, +func (a *HasOneApiService) GETFixedAmountPromotionIdMarket(ctx context.Context, fixedAmountPromotionId interface{}) HasOneApiGETFixedAmountPromotionIdMarketRequest { + return HasOneApiGETFixedAmountPromotionIdMarketRequest{ + ApiService: a, + ctx: ctx, + fixedAmountPromotionId: fixedAmountPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETFreeGiftPromotionIdSkuListPromotionRuleExecute(r HasOneApiGETFreeGiftPromotionIdSkuListPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETFixedAmountPromotionIdMarketExecute(r HasOneApiGETFixedAmountPromotionIdMarketRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeGiftPromotionIdSkuListPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedAmountPromotionIdMarket") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/sku_list_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4439,48 +4439,48 @@ func (a *HasOneApiService) GETFreeGiftPromotionIdSkuListPromotionRuleExecute(r H return localVarHTTPResponse, nil } -type HasOneApiGETFreeShippingPromotionIdCouponCodesPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - freeShippingPromotionId interface{} +type HasOneApiGETFixedAmountPromotionIdOrderAmountPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + fixedAmountPromotionId interface{} } -func (r HasOneApiGETFreeShippingPromotionIdCouponCodesPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFreeShippingPromotionIdCouponCodesPromotionRuleExecute(r) +func (r HasOneApiGETFixedAmountPromotionIdOrderAmountPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedAmountPromotionIdOrderAmountPromotionRuleExecute(r) } /* -GETFreeShippingPromotionIdCouponCodesPromotionRule Retrieve the coupon codes promotion rule associated to the free shipping promotion +GETFixedAmountPromotionIdOrderAmountPromotionRule Retrieve the order amount promotion rule associated to the fixed amount promotion -Retrieve the coupon codes promotion rule associated to the free shipping promotion +Retrieve the order amount promotion rule associated to the fixed amount promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param freeShippingPromotionId The resource's id - @return HasOneApiGETFreeShippingPromotionIdCouponCodesPromotionRuleRequest + @param fixedAmountPromotionId The resource's id + @return HasOneApiGETFixedAmountPromotionIdOrderAmountPromotionRuleRequest */ -func (a *HasOneApiService) GETFreeShippingPromotionIdCouponCodesPromotionRule(ctx context.Context, freeShippingPromotionId interface{}) HasOneApiGETFreeShippingPromotionIdCouponCodesPromotionRuleRequest { - return HasOneApiGETFreeShippingPromotionIdCouponCodesPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - freeShippingPromotionId: freeShippingPromotionId, +func (a *HasOneApiService) GETFixedAmountPromotionIdOrderAmountPromotionRule(ctx context.Context, fixedAmountPromotionId interface{}) HasOneApiGETFixedAmountPromotionIdOrderAmountPromotionRuleRequest { + return HasOneApiGETFixedAmountPromotionIdOrderAmountPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + fixedAmountPromotionId: fixedAmountPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETFreeShippingPromotionIdCouponCodesPromotionRuleExecute(r HasOneApiGETFreeShippingPromotionIdCouponCodesPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETFixedAmountPromotionIdOrderAmountPromotionRuleExecute(r HasOneApiGETFixedAmountPromotionIdOrderAmountPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeShippingPromotionIdCouponCodesPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedAmountPromotionIdOrderAmountPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/coupon_codes_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/order_amount_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4531,48 +4531,48 @@ func (a *HasOneApiService) GETFreeShippingPromotionIdCouponCodesPromotionRuleExe return localVarHTTPResponse, nil } -type HasOneApiGETFreeShippingPromotionIdMarketRequest struct { - ctx context.Context - ApiService *HasOneApiService - freeShippingPromotionId interface{} +type HasOneApiGETFixedAmountPromotionIdSkuListRequest struct { + ctx context.Context + ApiService *HasOneApiService + fixedAmountPromotionId interface{} } -func (r HasOneApiGETFreeShippingPromotionIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFreeShippingPromotionIdMarketExecute(r) +func (r HasOneApiGETFixedAmountPromotionIdSkuListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedAmountPromotionIdSkuListExecute(r) } /* -GETFreeShippingPromotionIdMarket Retrieve the market associated to the free shipping promotion +GETFixedAmountPromotionIdSkuList Retrieve the sku list associated to the fixed amount promotion -Retrieve the market associated to the free shipping promotion +Retrieve the sku list associated to the fixed amount promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param freeShippingPromotionId The resource's id - @return HasOneApiGETFreeShippingPromotionIdMarketRequest + @param fixedAmountPromotionId The resource's id + @return HasOneApiGETFixedAmountPromotionIdSkuListRequest */ -func (a *HasOneApiService) GETFreeShippingPromotionIdMarket(ctx context.Context, freeShippingPromotionId interface{}) HasOneApiGETFreeShippingPromotionIdMarketRequest { - return HasOneApiGETFreeShippingPromotionIdMarketRequest{ - ApiService: a, - ctx: ctx, - freeShippingPromotionId: freeShippingPromotionId, +func (a *HasOneApiService) GETFixedAmountPromotionIdSkuList(ctx context.Context, fixedAmountPromotionId interface{}) HasOneApiGETFixedAmountPromotionIdSkuListRequest { + return HasOneApiGETFixedAmountPromotionIdSkuListRequest{ + ApiService: a, + ctx: ctx, + fixedAmountPromotionId: fixedAmountPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETFreeShippingPromotionIdMarketExecute(r HasOneApiGETFreeShippingPromotionIdMarketRequest) (*http.Response, error) { +func (a *HasOneApiService) GETFixedAmountPromotionIdSkuListExecute(r HasOneApiGETFixedAmountPromotionIdSkuListRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeShippingPromotionIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedAmountPromotionIdSkuList") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/sku_list" + localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4623,48 +4623,48 @@ func (a *HasOneApiService) GETFreeShippingPromotionIdMarketExecute(r HasOneApiGE return localVarHTTPResponse, nil } -type HasOneApiGETFreeShippingPromotionIdOrderAmountPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - freeShippingPromotionId interface{} +type HasOneApiGETFixedAmountPromotionIdSkuListPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + fixedAmountPromotionId interface{} } -func (r HasOneApiGETFreeShippingPromotionIdOrderAmountPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFreeShippingPromotionIdOrderAmountPromotionRuleExecute(r) +func (r HasOneApiGETFixedAmountPromotionIdSkuListPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedAmountPromotionIdSkuListPromotionRuleExecute(r) } /* -GETFreeShippingPromotionIdOrderAmountPromotionRule Retrieve the order amount promotion rule associated to the free shipping promotion +GETFixedAmountPromotionIdSkuListPromotionRule Retrieve the sku list promotion rule associated to the fixed amount promotion -Retrieve the order amount promotion rule associated to the free shipping promotion +Retrieve the sku list promotion rule associated to the fixed amount promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param freeShippingPromotionId The resource's id - @return HasOneApiGETFreeShippingPromotionIdOrderAmountPromotionRuleRequest + @param fixedAmountPromotionId The resource's id + @return HasOneApiGETFixedAmountPromotionIdSkuListPromotionRuleRequest */ -func (a *HasOneApiService) GETFreeShippingPromotionIdOrderAmountPromotionRule(ctx context.Context, freeShippingPromotionId interface{}) HasOneApiGETFreeShippingPromotionIdOrderAmountPromotionRuleRequest { - return HasOneApiGETFreeShippingPromotionIdOrderAmountPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - freeShippingPromotionId: freeShippingPromotionId, +func (a *HasOneApiService) GETFixedAmountPromotionIdSkuListPromotionRule(ctx context.Context, fixedAmountPromotionId interface{}) HasOneApiGETFixedAmountPromotionIdSkuListPromotionRuleRequest { + return HasOneApiGETFixedAmountPromotionIdSkuListPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + fixedAmountPromotionId: fixedAmountPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETFreeShippingPromotionIdOrderAmountPromotionRuleExecute(r HasOneApiGETFreeShippingPromotionIdOrderAmountPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETFixedAmountPromotionIdSkuListPromotionRuleExecute(r HasOneApiGETFixedAmountPromotionIdSkuListPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeShippingPromotionIdOrderAmountPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedAmountPromotionIdSkuListPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/order_amount_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/sku_list_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4715,48 +4715,48 @@ func (a *HasOneApiService) GETFreeShippingPromotionIdOrderAmountPromotionRuleExe return localVarHTTPResponse, nil } -type HasOneApiGETFreeShippingPromotionIdSkuListPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - freeShippingPromotionId interface{} +type HasOneApiGETFixedPricePromotionIdCouponCodesPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + fixedPricePromotionId interface{} } -func (r HasOneApiGETFreeShippingPromotionIdSkuListPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETFreeShippingPromotionIdSkuListPromotionRuleExecute(r) +func (r HasOneApiGETFixedPricePromotionIdCouponCodesPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedPricePromotionIdCouponCodesPromotionRuleExecute(r) } /* -GETFreeShippingPromotionIdSkuListPromotionRule Retrieve the sku list promotion rule associated to the free shipping promotion +GETFixedPricePromotionIdCouponCodesPromotionRule Retrieve the coupon codes promotion rule associated to the fixed price promotion -Retrieve the sku list promotion rule associated to the free shipping promotion +Retrieve the coupon codes promotion rule associated to the fixed price promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param freeShippingPromotionId The resource's id - @return HasOneApiGETFreeShippingPromotionIdSkuListPromotionRuleRequest + @param fixedPricePromotionId The resource's id + @return HasOneApiGETFixedPricePromotionIdCouponCodesPromotionRuleRequest */ -func (a *HasOneApiService) GETFreeShippingPromotionIdSkuListPromotionRule(ctx context.Context, freeShippingPromotionId interface{}) HasOneApiGETFreeShippingPromotionIdSkuListPromotionRuleRequest { - return HasOneApiGETFreeShippingPromotionIdSkuListPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - freeShippingPromotionId: freeShippingPromotionId, +func (a *HasOneApiService) GETFixedPricePromotionIdCouponCodesPromotionRule(ctx context.Context, fixedPricePromotionId interface{}) HasOneApiGETFixedPricePromotionIdCouponCodesPromotionRuleRequest { + return HasOneApiGETFixedPricePromotionIdCouponCodesPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + fixedPricePromotionId: fixedPricePromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETFreeShippingPromotionIdSkuListPromotionRuleExecute(r HasOneApiGETFreeShippingPromotionIdSkuListPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETFixedPricePromotionIdCouponCodesPromotionRuleExecute(r HasOneApiGETFixedPricePromotionIdCouponCodesPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeShippingPromotionIdSkuListPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedPricePromotionIdCouponCodesPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/sku_list_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/coupon_codes_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4807,48 +4807,48 @@ func (a *HasOneApiService) GETFreeShippingPromotionIdSkuListPromotionRuleExecute return localVarHTTPResponse, nil } -type HasOneApiGETGiftCardIdGiftCardRecipientRequest struct { - ctx context.Context - ApiService *HasOneApiService - giftCardId interface{} +type HasOneApiGETFixedPricePromotionIdCustomPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + fixedPricePromotionId interface{} } -func (r HasOneApiGETGiftCardIdGiftCardRecipientRequest) Execute() (*http.Response, error) { - return r.ApiService.GETGiftCardIdGiftCardRecipientExecute(r) +func (r HasOneApiGETFixedPricePromotionIdCustomPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedPricePromotionIdCustomPromotionRuleExecute(r) } /* -GETGiftCardIdGiftCardRecipient Retrieve the gift card recipient associated to the gift card +GETFixedPricePromotionIdCustomPromotionRule Retrieve the custom promotion rule associated to the fixed price promotion -Retrieve the gift card recipient associated to the gift card +Retrieve the custom promotion rule associated to the fixed price promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param giftCardId The resource's id - @return HasOneApiGETGiftCardIdGiftCardRecipientRequest + @param fixedPricePromotionId The resource's id + @return HasOneApiGETFixedPricePromotionIdCustomPromotionRuleRequest */ -func (a *HasOneApiService) GETGiftCardIdGiftCardRecipient(ctx context.Context, giftCardId interface{}) HasOneApiGETGiftCardIdGiftCardRecipientRequest { - return HasOneApiGETGiftCardIdGiftCardRecipientRequest{ - ApiService: a, - ctx: ctx, - giftCardId: giftCardId, +func (a *HasOneApiService) GETFixedPricePromotionIdCustomPromotionRule(ctx context.Context, fixedPricePromotionId interface{}) HasOneApiGETFixedPricePromotionIdCustomPromotionRuleRequest { + return HasOneApiGETFixedPricePromotionIdCustomPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + fixedPricePromotionId: fixedPricePromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETGiftCardIdGiftCardRecipientExecute(r HasOneApiGETGiftCardIdGiftCardRecipientRequest) (*http.Response, error) { +func (a *HasOneApiService) GETFixedPricePromotionIdCustomPromotionRuleExecute(r HasOneApiGETFixedPricePromotionIdCustomPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETGiftCardIdGiftCardRecipient") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedPricePromotionIdCustomPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/gift_cards/{giftCardId}/gift_card_recipient" - localVarPath = strings.Replace(localVarPath, "{"+"giftCardId"+"}", url.PathEscape(parameterValueToString(r.giftCardId, "giftCardId")), -1) + localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/custom_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4899,48 +4899,48 @@ func (a *HasOneApiService) GETGiftCardIdGiftCardRecipientExecute(r HasOneApiGETG return localVarHTTPResponse, nil } -type HasOneApiGETGiftCardIdMarketRequest struct { - ctx context.Context - ApiService *HasOneApiService - giftCardId interface{} +type HasOneApiGETFixedPricePromotionIdMarketRequest struct { + ctx context.Context + ApiService *HasOneApiService + fixedPricePromotionId interface{} } -func (r HasOneApiGETGiftCardIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETGiftCardIdMarketExecute(r) +func (r HasOneApiGETFixedPricePromotionIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedPricePromotionIdMarketExecute(r) } /* -GETGiftCardIdMarket Retrieve the market associated to the gift card +GETFixedPricePromotionIdMarket Retrieve the market associated to the fixed price promotion -Retrieve the market associated to the gift card +Retrieve the market associated to the fixed price promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param giftCardId The resource's id - @return HasOneApiGETGiftCardIdMarketRequest + @param fixedPricePromotionId The resource's id + @return HasOneApiGETFixedPricePromotionIdMarketRequest */ -func (a *HasOneApiService) GETGiftCardIdMarket(ctx context.Context, giftCardId interface{}) HasOneApiGETGiftCardIdMarketRequest { - return HasOneApiGETGiftCardIdMarketRequest{ - ApiService: a, - ctx: ctx, - giftCardId: giftCardId, +func (a *HasOneApiService) GETFixedPricePromotionIdMarket(ctx context.Context, fixedPricePromotionId interface{}) HasOneApiGETFixedPricePromotionIdMarketRequest { + return HasOneApiGETFixedPricePromotionIdMarketRequest{ + ApiService: a, + ctx: ctx, + fixedPricePromotionId: fixedPricePromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETGiftCardIdMarketExecute(r HasOneApiGETGiftCardIdMarketRequest) (*http.Response, error) { +func (a *HasOneApiService) GETFixedPricePromotionIdMarketExecute(r HasOneApiGETFixedPricePromotionIdMarketRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETGiftCardIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedPricePromotionIdMarket") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/gift_cards/{giftCardId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"giftCardId"+"}", url.PathEscape(parameterValueToString(r.giftCardId, "giftCardId")), -1) + localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -4991,48 +4991,48 @@ func (a *HasOneApiService) GETGiftCardIdMarketExecute(r HasOneApiGETGiftCardIdMa return localVarHTTPResponse, nil } -type HasOneApiGETGiftCardRecipientIdCustomerRequest struct { - ctx context.Context - ApiService *HasOneApiService - giftCardRecipientId interface{} +type HasOneApiGETFixedPricePromotionIdOrderAmountPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + fixedPricePromotionId interface{} } -func (r HasOneApiGETGiftCardRecipientIdCustomerRequest) Execute() (*http.Response, error) { - return r.ApiService.GETGiftCardRecipientIdCustomerExecute(r) +func (r HasOneApiGETFixedPricePromotionIdOrderAmountPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedPricePromotionIdOrderAmountPromotionRuleExecute(r) } /* -GETGiftCardRecipientIdCustomer Retrieve the customer associated to the gift card recipient +GETFixedPricePromotionIdOrderAmountPromotionRule Retrieve the order amount promotion rule associated to the fixed price promotion -Retrieve the customer associated to the gift card recipient +Retrieve the order amount promotion rule associated to the fixed price promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param giftCardRecipientId The resource's id - @return HasOneApiGETGiftCardRecipientIdCustomerRequest + @param fixedPricePromotionId The resource's id + @return HasOneApiGETFixedPricePromotionIdOrderAmountPromotionRuleRequest */ -func (a *HasOneApiService) GETGiftCardRecipientIdCustomer(ctx context.Context, giftCardRecipientId interface{}) HasOneApiGETGiftCardRecipientIdCustomerRequest { - return HasOneApiGETGiftCardRecipientIdCustomerRequest{ - ApiService: a, - ctx: ctx, - giftCardRecipientId: giftCardRecipientId, +func (a *HasOneApiService) GETFixedPricePromotionIdOrderAmountPromotionRule(ctx context.Context, fixedPricePromotionId interface{}) HasOneApiGETFixedPricePromotionIdOrderAmountPromotionRuleRequest { + return HasOneApiGETFixedPricePromotionIdOrderAmountPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + fixedPricePromotionId: fixedPricePromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETGiftCardRecipientIdCustomerExecute(r HasOneApiGETGiftCardRecipientIdCustomerRequest) (*http.Response, error) { +func (a *HasOneApiService) GETFixedPricePromotionIdOrderAmountPromotionRuleExecute(r HasOneApiGETFixedPricePromotionIdOrderAmountPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETGiftCardRecipientIdCustomer") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedPricePromotionIdOrderAmountPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/gift_card_recipients/{giftCardRecipientId}/customer" - localVarPath = strings.Replace(localVarPath, "{"+"giftCardRecipientId"+"}", url.PathEscape(parameterValueToString(r.giftCardRecipientId, "giftCardRecipientId")), -1) + localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/order_amount_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5083,48 +5083,48 @@ func (a *HasOneApiService) GETGiftCardRecipientIdCustomerExecute(r HasOneApiGETG return localVarHTTPResponse, nil } -type HasOneApiGETInStockSubscriptionIdCustomerRequest struct { +type HasOneApiGETFixedPricePromotionIdSkuListRequest struct { ctx context.Context ApiService *HasOneApiService - inStockSubscriptionId interface{} + fixedPricePromotionId interface{} } -func (r HasOneApiGETInStockSubscriptionIdCustomerRequest) Execute() (*http.Response, error) { - return r.ApiService.GETInStockSubscriptionIdCustomerExecute(r) +func (r HasOneApiGETFixedPricePromotionIdSkuListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedPricePromotionIdSkuListExecute(r) } /* -GETInStockSubscriptionIdCustomer Retrieve the customer associated to the in stock subscription +GETFixedPricePromotionIdSkuList Retrieve the sku list associated to the fixed price promotion -Retrieve the customer associated to the in stock subscription +Retrieve the sku list associated to the fixed price promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param inStockSubscriptionId The resource's id - @return HasOneApiGETInStockSubscriptionIdCustomerRequest + @param fixedPricePromotionId The resource's id + @return HasOneApiGETFixedPricePromotionIdSkuListRequest */ -func (a *HasOneApiService) GETInStockSubscriptionIdCustomer(ctx context.Context, inStockSubscriptionId interface{}) HasOneApiGETInStockSubscriptionIdCustomerRequest { - return HasOneApiGETInStockSubscriptionIdCustomerRequest{ +func (a *HasOneApiService) GETFixedPricePromotionIdSkuList(ctx context.Context, fixedPricePromotionId interface{}) HasOneApiGETFixedPricePromotionIdSkuListRequest { + return HasOneApiGETFixedPricePromotionIdSkuListRequest{ ApiService: a, ctx: ctx, - inStockSubscriptionId: inStockSubscriptionId, + fixedPricePromotionId: fixedPricePromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETInStockSubscriptionIdCustomerExecute(r HasOneApiGETInStockSubscriptionIdCustomerRequest) (*http.Response, error) { +func (a *HasOneApiService) GETFixedPricePromotionIdSkuListExecute(r HasOneApiGETFixedPricePromotionIdSkuListRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETInStockSubscriptionIdCustomer") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedPricePromotionIdSkuList") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/in_stock_subscriptions/{inStockSubscriptionId}/customer" - localVarPath = strings.Replace(localVarPath, "{"+"inStockSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.inStockSubscriptionId, "inStockSubscriptionId")), -1) + localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/sku_list" + localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5175,48 +5175,48 @@ func (a *HasOneApiService) GETInStockSubscriptionIdCustomerExecute(r HasOneApiGE return localVarHTTPResponse, nil } -type HasOneApiGETInStockSubscriptionIdMarketRequest struct { +type HasOneApiGETFixedPricePromotionIdSkuListPromotionRuleRequest struct { ctx context.Context ApiService *HasOneApiService - inStockSubscriptionId interface{} + fixedPricePromotionId interface{} } -func (r HasOneApiGETInStockSubscriptionIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETInStockSubscriptionIdMarketExecute(r) +func (r HasOneApiGETFixedPricePromotionIdSkuListPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedPricePromotionIdSkuListPromotionRuleExecute(r) } /* -GETInStockSubscriptionIdMarket Retrieve the market associated to the in stock subscription +GETFixedPricePromotionIdSkuListPromotionRule Retrieve the sku list promotion rule associated to the fixed price promotion -Retrieve the market associated to the in stock subscription +Retrieve the sku list promotion rule associated to the fixed price promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param inStockSubscriptionId The resource's id - @return HasOneApiGETInStockSubscriptionIdMarketRequest + @param fixedPricePromotionId The resource's id + @return HasOneApiGETFixedPricePromotionIdSkuListPromotionRuleRequest */ -func (a *HasOneApiService) GETInStockSubscriptionIdMarket(ctx context.Context, inStockSubscriptionId interface{}) HasOneApiGETInStockSubscriptionIdMarketRequest { - return HasOneApiGETInStockSubscriptionIdMarketRequest{ +func (a *HasOneApiService) GETFixedPricePromotionIdSkuListPromotionRule(ctx context.Context, fixedPricePromotionId interface{}) HasOneApiGETFixedPricePromotionIdSkuListPromotionRuleRequest { + return HasOneApiGETFixedPricePromotionIdSkuListPromotionRuleRequest{ ApiService: a, ctx: ctx, - inStockSubscriptionId: inStockSubscriptionId, + fixedPricePromotionId: fixedPricePromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETInStockSubscriptionIdMarketExecute(r HasOneApiGETInStockSubscriptionIdMarketRequest) (*http.Response, error) { +func (a *HasOneApiService) GETFixedPricePromotionIdSkuListPromotionRuleExecute(r HasOneApiGETFixedPricePromotionIdSkuListPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETInStockSubscriptionIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFixedPricePromotionIdSkuListPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/in_stock_subscriptions/{inStockSubscriptionId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"inStockSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.inStockSubscriptionId, "inStockSubscriptionId")), -1) + localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/sku_list_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5267,48 +5267,48 @@ func (a *HasOneApiService) GETInStockSubscriptionIdMarketExecute(r HasOneApiGETI return localVarHTTPResponse, nil } -type HasOneApiGETInStockSubscriptionIdSkuRequest struct { - ctx context.Context - ApiService *HasOneApiService - inStockSubscriptionId interface{} +type HasOneApiGETFlexPromotionIdCouponCodesPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + flexPromotionId interface{} } -func (r HasOneApiGETInStockSubscriptionIdSkuRequest) Execute() (*http.Response, error) { - return r.ApiService.GETInStockSubscriptionIdSkuExecute(r) +func (r HasOneApiGETFlexPromotionIdCouponCodesPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFlexPromotionIdCouponCodesPromotionRuleExecute(r) } /* -GETInStockSubscriptionIdSku Retrieve the sku associated to the in stock subscription +GETFlexPromotionIdCouponCodesPromotionRule Retrieve the coupon codes promotion rule associated to the flex promotion -Retrieve the sku associated to the in stock subscription +Retrieve the coupon codes promotion rule associated to the flex promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param inStockSubscriptionId The resource's id - @return HasOneApiGETInStockSubscriptionIdSkuRequest + @param flexPromotionId The resource's id + @return HasOneApiGETFlexPromotionIdCouponCodesPromotionRuleRequest */ -func (a *HasOneApiService) GETInStockSubscriptionIdSku(ctx context.Context, inStockSubscriptionId interface{}) HasOneApiGETInStockSubscriptionIdSkuRequest { - return HasOneApiGETInStockSubscriptionIdSkuRequest{ - ApiService: a, - ctx: ctx, - inStockSubscriptionId: inStockSubscriptionId, +func (a *HasOneApiService) GETFlexPromotionIdCouponCodesPromotionRule(ctx context.Context, flexPromotionId interface{}) HasOneApiGETFlexPromotionIdCouponCodesPromotionRuleRequest { + return HasOneApiGETFlexPromotionIdCouponCodesPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + flexPromotionId: flexPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETInStockSubscriptionIdSkuExecute(r HasOneApiGETInStockSubscriptionIdSkuRequest) (*http.Response, error) { +func (a *HasOneApiService) GETFlexPromotionIdCouponCodesPromotionRuleExecute(r HasOneApiGETFlexPromotionIdCouponCodesPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETInStockSubscriptionIdSku") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFlexPromotionIdCouponCodesPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/in_stock_subscriptions/{inStockSubscriptionId}/sku" - localVarPath = strings.Replace(localVarPath, "{"+"inStockSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.inStockSubscriptionId, "inStockSubscriptionId")), -1) + localVarPath := localBasePath + "/flex_promotions/{flexPromotionId}/coupon_codes_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"flexPromotionId"+"}", url.PathEscape(parameterValueToString(r.flexPromotionId, "flexPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5359,48 +5359,48 @@ func (a *HasOneApiService) GETInStockSubscriptionIdSkuExecute(r HasOneApiGETInSt return localVarHTTPResponse, nil } -type HasOneApiGETInventoryReturnLocationIdInventoryModelRequest struct { - ctx context.Context - ApiService *HasOneApiService - inventoryReturnLocationId interface{} +type HasOneApiGETFreeGiftPromotionIdCouponCodesPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + freeGiftPromotionId interface{} } -func (r HasOneApiGETInventoryReturnLocationIdInventoryModelRequest) Execute() (*http.Response, error) { - return r.ApiService.GETInventoryReturnLocationIdInventoryModelExecute(r) +func (r HasOneApiGETFreeGiftPromotionIdCouponCodesPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeGiftPromotionIdCouponCodesPromotionRuleExecute(r) } /* -GETInventoryReturnLocationIdInventoryModel Retrieve the inventory model associated to the inventory return location +GETFreeGiftPromotionIdCouponCodesPromotionRule Retrieve the coupon codes promotion rule associated to the free gift promotion -Retrieve the inventory model associated to the inventory return location +Retrieve the coupon codes promotion rule associated to the free gift promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param inventoryReturnLocationId The resource's id - @return HasOneApiGETInventoryReturnLocationIdInventoryModelRequest + @param freeGiftPromotionId The resource's id + @return HasOneApiGETFreeGiftPromotionIdCouponCodesPromotionRuleRequest */ -func (a *HasOneApiService) GETInventoryReturnLocationIdInventoryModel(ctx context.Context, inventoryReturnLocationId interface{}) HasOneApiGETInventoryReturnLocationIdInventoryModelRequest { - return HasOneApiGETInventoryReturnLocationIdInventoryModelRequest{ - ApiService: a, - ctx: ctx, - inventoryReturnLocationId: inventoryReturnLocationId, +func (a *HasOneApiService) GETFreeGiftPromotionIdCouponCodesPromotionRule(ctx context.Context, freeGiftPromotionId interface{}) HasOneApiGETFreeGiftPromotionIdCouponCodesPromotionRuleRequest { + return HasOneApiGETFreeGiftPromotionIdCouponCodesPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + freeGiftPromotionId: freeGiftPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETInventoryReturnLocationIdInventoryModelExecute(r HasOneApiGETInventoryReturnLocationIdInventoryModelRequest) (*http.Response, error) { +func (a *HasOneApiService) GETFreeGiftPromotionIdCouponCodesPromotionRuleExecute(r HasOneApiGETFreeGiftPromotionIdCouponCodesPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETInventoryReturnLocationIdInventoryModel") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeGiftPromotionIdCouponCodesPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/inventory_return_locations/{inventoryReturnLocationId}/inventory_model" - localVarPath = strings.Replace(localVarPath, "{"+"inventoryReturnLocationId"+"}", url.PathEscape(parameterValueToString(r.inventoryReturnLocationId, "inventoryReturnLocationId")), -1) + localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/coupon_codes_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5451,48 +5451,48 @@ func (a *HasOneApiService) GETInventoryReturnLocationIdInventoryModelExecute(r H return localVarHTTPResponse, nil } -type HasOneApiGETInventoryReturnLocationIdStockLocationRequest struct { - ctx context.Context - ApiService *HasOneApiService - inventoryReturnLocationId interface{} +type HasOneApiGETFreeGiftPromotionIdCustomPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + freeGiftPromotionId interface{} } -func (r HasOneApiGETInventoryReturnLocationIdStockLocationRequest) Execute() (*http.Response, error) { - return r.ApiService.GETInventoryReturnLocationIdStockLocationExecute(r) +func (r HasOneApiGETFreeGiftPromotionIdCustomPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeGiftPromotionIdCustomPromotionRuleExecute(r) } /* -GETInventoryReturnLocationIdStockLocation Retrieve the stock location associated to the inventory return location +GETFreeGiftPromotionIdCustomPromotionRule Retrieve the custom promotion rule associated to the free gift promotion -Retrieve the stock location associated to the inventory return location +Retrieve the custom promotion rule associated to the free gift promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param inventoryReturnLocationId The resource's id - @return HasOneApiGETInventoryReturnLocationIdStockLocationRequest + @param freeGiftPromotionId The resource's id + @return HasOneApiGETFreeGiftPromotionIdCustomPromotionRuleRequest */ -func (a *HasOneApiService) GETInventoryReturnLocationIdStockLocation(ctx context.Context, inventoryReturnLocationId interface{}) HasOneApiGETInventoryReturnLocationIdStockLocationRequest { - return HasOneApiGETInventoryReturnLocationIdStockLocationRequest{ - ApiService: a, - ctx: ctx, - inventoryReturnLocationId: inventoryReturnLocationId, +func (a *HasOneApiService) GETFreeGiftPromotionIdCustomPromotionRule(ctx context.Context, freeGiftPromotionId interface{}) HasOneApiGETFreeGiftPromotionIdCustomPromotionRuleRequest { + return HasOneApiGETFreeGiftPromotionIdCustomPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + freeGiftPromotionId: freeGiftPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETInventoryReturnLocationIdStockLocationExecute(r HasOneApiGETInventoryReturnLocationIdStockLocationRequest) (*http.Response, error) { +func (a *HasOneApiService) GETFreeGiftPromotionIdCustomPromotionRuleExecute(r HasOneApiGETFreeGiftPromotionIdCustomPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETInventoryReturnLocationIdStockLocation") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeGiftPromotionIdCustomPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/inventory_return_locations/{inventoryReturnLocationId}/stock_location" - localVarPath = strings.Replace(localVarPath, "{"+"inventoryReturnLocationId"+"}", url.PathEscape(parameterValueToString(r.inventoryReturnLocationId, "inventoryReturnLocationId")), -1) + localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/custom_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5543,48 +5543,48 @@ func (a *HasOneApiService) GETInventoryReturnLocationIdStockLocationExecute(r Ha return localVarHTTPResponse, nil } -type HasOneApiGETInventoryStockLocationIdInventoryModelRequest struct { - ctx context.Context - ApiService *HasOneApiService - inventoryStockLocationId interface{} +type HasOneApiGETFreeGiftPromotionIdMarketRequest struct { + ctx context.Context + ApiService *HasOneApiService + freeGiftPromotionId interface{} } -func (r HasOneApiGETInventoryStockLocationIdInventoryModelRequest) Execute() (*http.Response, error) { - return r.ApiService.GETInventoryStockLocationIdInventoryModelExecute(r) +func (r HasOneApiGETFreeGiftPromotionIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeGiftPromotionIdMarketExecute(r) } /* -GETInventoryStockLocationIdInventoryModel Retrieve the inventory model associated to the inventory stock location +GETFreeGiftPromotionIdMarket Retrieve the market associated to the free gift promotion -Retrieve the inventory model associated to the inventory stock location +Retrieve the market associated to the free gift promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param inventoryStockLocationId The resource's id - @return HasOneApiGETInventoryStockLocationIdInventoryModelRequest + @param freeGiftPromotionId The resource's id + @return HasOneApiGETFreeGiftPromotionIdMarketRequest */ -func (a *HasOneApiService) GETInventoryStockLocationIdInventoryModel(ctx context.Context, inventoryStockLocationId interface{}) HasOneApiGETInventoryStockLocationIdInventoryModelRequest { - return HasOneApiGETInventoryStockLocationIdInventoryModelRequest{ - ApiService: a, - ctx: ctx, - inventoryStockLocationId: inventoryStockLocationId, +func (a *HasOneApiService) GETFreeGiftPromotionIdMarket(ctx context.Context, freeGiftPromotionId interface{}) HasOneApiGETFreeGiftPromotionIdMarketRequest { + return HasOneApiGETFreeGiftPromotionIdMarketRequest{ + ApiService: a, + ctx: ctx, + freeGiftPromotionId: freeGiftPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETInventoryStockLocationIdInventoryModelExecute(r HasOneApiGETInventoryStockLocationIdInventoryModelRequest) (*http.Response, error) { +func (a *HasOneApiService) GETFreeGiftPromotionIdMarketExecute(r HasOneApiGETFreeGiftPromotionIdMarketRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETInventoryStockLocationIdInventoryModel") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeGiftPromotionIdMarket") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/inventory_stock_locations/{inventoryStockLocationId}/inventory_model" - localVarPath = strings.Replace(localVarPath, "{"+"inventoryStockLocationId"+"}", url.PathEscape(parameterValueToString(r.inventoryStockLocationId, "inventoryStockLocationId")), -1) + localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5635,48 +5635,48 @@ func (a *HasOneApiService) GETInventoryStockLocationIdInventoryModelExecute(r Ha return localVarHTTPResponse, nil } -type HasOneApiGETInventoryStockLocationIdStockLocationRequest struct { - ctx context.Context - ApiService *HasOneApiService - inventoryStockLocationId interface{} +type HasOneApiGETFreeGiftPromotionIdOrderAmountPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + freeGiftPromotionId interface{} } -func (r HasOneApiGETInventoryStockLocationIdStockLocationRequest) Execute() (*http.Response, error) { - return r.ApiService.GETInventoryStockLocationIdStockLocationExecute(r) +func (r HasOneApiGETFreeGiftPromotionIdOrderAmountPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeGiftPromotionIdOrderAmountPromotionRuleExecute(r) } /* -GETInventoryStockLocationIdStockLocation Retrieve the stock location associated to the inventory stock location +GETFreeGiftPromotionIdOrderAmountPromotionRule Retrieve the order amount promotion rule associated to the free gift promotion -Retrieve the stock location associated to the inventory stock location +Retrieve the order amount promotion rule associated to the free gift promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param inventoryStockLocationId The resource's id - @return HasOneApiGETInventoryStockLocationIdStockLocationRequest + @param freeGiftPromotionId The resource's id + @return HasOneApiGETFreeGiftPromotionIdOrderAmountPromotionRuleRequest */ -func (a *HasOneApiService) GETInventoryStockLocationIdStockLocation(ctx context.Context, inventoryStockLocationId interface{}) HasOneApiGETInventoryStockLocationIdStockLocationRequest { - return HasOneApiGETInventoryStockLocationIdStockLocationRequest{ - ApiService: a, - ctx: ctx, - inventoryStockLocationId: inventoryStockLocationId, +func (a *HasOneApiService) GETFreeGiftPromotionIdOrderAmountPromotionRule(ctx context.Context, freeGiftPromotionId interface{}) HasOneApiGETFreeGiftPromotionIdOrderAmountPromotionRuleRequest { + return HasOneApiGETFreeGiftPromotionIdOrderAmountPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + freeGiftPromotionId: freeGiftPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETInventoryStockLocationIdStockLocationExecute(r HasOneApiGETInventoryStockLocationIdStockLocationRequest) (*http.Response, error) { +func (a *HasOneApiService) GETFreeGiftPromotionIdOrderAmountPromotionRuleExecute(r HasOneApiGETFreeGiftPromotionIdOrderAmountPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETInventoryStockLocationIdStockLocation") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeGiftPromotionIdOrderAmountPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/inventory_stock_locations/{inventoryStockLocationId}/stock_location" - localVarPath = strings.Replace(localVarPath, "{"+"inventoryStockLocationId"+"}", url.PathEscape(parameterValueToString(r.inventoryStockLocationId, "inventoryStockLocationId")), -1) + localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/order_amount_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5727,48 +5727,48 @@ func (a *HasOneApiService) GETInventoryStockLocationIdStockLocationExecute(r Has return localVarHTTPResponse, nil } -type HasOneApiGETKlarnaPaymentIdOrderRequest struct { - ctx context.Context - ApiService *HasOneApiService - klarnaPaymentId interface{} +type HasOneApiGETFreeGiftPromotionIdSkuListRequest struct { + ctx context.Context + ApiService *HasOneApiService + freeGiftPromotionId interface{} } -func (r HasOneApiGETKlarnaPaymentIdOrderRequest) Execute() (*http.Response, error) { - return r.ApiService.GETKlarnaPaymentIdOrderExecute(r) +func (r HasOneApiGETFreeGiftPromotionIdSkuListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeGiftPromotionIdSkuListExecute(r) } /* -GETKlarnaPaymentIdOrder Retrieve the order associated to the klarna payment +GETFreeGiftPromotionIdSkuList Retrieve the sku list associated to the free gift promotion -Retrieve the order associated to the klarna payment +Retrieve the sku list associated to the free gift promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param klarnaPaymentId The resource's id - @return HasOneApiGETKlarnaPaymentIdOrderRequest + @param freeGiftPromotionId The resource's id + @return HasOneApiGETFreeGiftPromotionIdSkuListRequest */ -func (a *HasOneApiService) GETKlarnaPaymentIdOrder(ctx context.Context, klarnaPaymentId interface{}) HasOneApiGETKlarnaPaymentIdOrderRequest { - return HasOneApiGETKlarnaPaymentIdOrderRequest{ - ApiService: a, - ctx: ctx, - klarnaPaymentId: klarnaPaymentId, +func (a *HasOneApiService) GETFreeGiftPromotionIdSkuList(ctx context.Context, freeGiftPromotionId interface{}) HasOneApiGETFreeGiftPromotionIdSkuListRequest { + return HasOneApiGETFreeGiftPromotionIdSkuListRequest{ + ApiService: a, + ctx: ctx, + freeGiftPromotionId: freeGiftPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETKlarnaPaymentIdOrderExecute(r HasOneApiGETKlarnaPaymentIdOrderRequest) (*http.Response, error) { +func (a *HasOneApiService) GETFreeGiftPromotionIdSkuListExecute(r HasOneApiGETFreeGiftPromotionIdSkuListRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETKlarnaPaymentIdOrder") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeGiftPromotionIdSkuList") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/klarna_payments/{klarnaPaymentId}/order" - localVarPath = strings.Replace(localVarPath, "{"+"klarnaPaymentId"+"}", url.PathEscape(parameterValueToString(r.klarnaPaymentId, "klarnaPaymentId")), -1) + localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/sku_list" + localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5819,48 +5819,4188 @@ func (a *HasOneApiService) GETKlarnaPaymentIdOrderExecute(r HasOneApiGETKlarnaPa return localVarHTTPResponse, nil } -type HasOneApiGETKlarnaPaymentIdPaymentGatewayRequest struct { - ctx context.Context - ApiService *HasOneApiService - klarnaPaymentId interface{} +type HasOneApiGETFreeGiftPromotionIdSkuListPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + freeGiftPromotionId interface{} +} + +func (r HasOneApiGETFreeGiftPromotionIdSkuListPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeGiftPromotionIdSkuListPromotionRuleExecute(r) +} + +/* +GETFreeGiftPromotionIdSkuListPromotionRule Retrieve the sku list promotion rule associated to the free gift promotion + +Retrieve the sku list promotion rule associated to the free gift promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeGiftPromotionId The resource's id + @return HasOneApiGETFreeGiftPromotionIdSkuListPromotionRuleRequest +*/ +func (a *HasOneApiService) GETFreeGiftPromotionIdSkuListPromotionRule(ctx context.Context, freeGiftPromotionId interface{}) HasOneApiGETFreeGiftPromotionIdSkuListPromotionRuleRequest { + return HasOneApiGETFreeGiftPromotionIdSkuListPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + freeGiftPromotionId: freeGiftPromotionId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETFreeGiftPromotionIdSkuListPromotionRuleExecute(r HasOneApiGETFreeGiftPromotionIdSkuListPromotionRuleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeGiftPromotionIdSkuListPromotionRule") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/sku_list_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETFreeShippingPromotionIdCouponCodesPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + freeShippingPromotionId interface{} +} + +func (r HasOneApiGETFreeShippingPromotionIdCouponCodesPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeShippingPromotionIdCouponCodesPromotionRuleExecute(r) +} + +/* +GETFreeShippingPromotionIdCouponCodesPromotionRule Retrieve the coupon codes promotion rule associated to the free shipping promotion + +Retrieve the coupon codes promotion rule associated to the free shipping promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeShippingPromotionId The resource's id + @return HasOneApiGETFreeShippingPromotionIdCouponCodesPromotionRuleRequest +*/ +func (a *HasOneApiService) GETFreeShippingPromotionIdCouponCodesPromotionRule(ctx context.Context, freeShippingPromotionId interface{}) HasOneApiGETFreeShippingPromotionIdCouponCodesPromotionRuleRequest { + return HasOneApiGETFreeShippingPromotionIdCouponCodesPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + freeShippingPromotionId: freeShippingPromotionId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETFreeShippingPromotionIdCouponCodesPromotionRuleExecute(r HasOneApiGETFreeShippingPromotionIdCouponCodesPromotionRuleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeShippingPromotionIdCouponCodesPromotionRule") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/coupon_codes_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETFreeShippingPromotionIdCustomPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + freeShippingPromotionId interface{} +} + +func (r HasOneApiGETFreeShippingPromotionIdCustomPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeShippingPromotionIdCustomPromotionRuleExecute(r) +} + +/* +GETFreeShippingPromotionIdCustomPromotionRule Retrieve the custom promotion rule associated to the free shipping promotion + +Retrieve the custom promotion rule associated to the free shipping promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeShippingPromotionId The resource's id + @return HasOneApiGETFreeShippingPromotionIdCustomPromotionRuleRequest +*/ +func (a *HasOneApiService) GETFreeShippingPromotionIdCustomPromotionRule(ctx context.Context, freeShippingPromotionId interface{}) HasOneApiGETFreeShippingPromotionIdCustomPromotionRuleRequest { + return HasOneApiGETFreeShippingPromotionIdCustomPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + freeShippingPromotionId: freeShippingPromotionId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETFreeShippingPromotionIdCustomPromotionRuleExecute(r HasOneApiGETFreeShippingPromotionIdCustomPromotionRuleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeShippingPromotionIdCustomPromotionRule") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/custom_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETFreeShippingPromotionIdMarketRequest struct { + ctx context.Context + ApiService *HasOneApiService + freeShippingPromotionId interface{} +} + +func (r HasOneApiGETFreeShippingPromotionIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeShippingPromotionIdMarketExecute(r) +} + +/* +GETFreeShippingPromotionIdMarket Retrieve the market associated to the free shipping promotion + +Retrieve the market associated to the free shipping promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeShippingPromotionId The resource's id + @return HasOneApiGETFreeShippingPromotionIdMarketRequest +*/ +func (a *HasOneApiService) GETFreeShippingPromotionIdMarket(ctx context.Context, freeShippingPromotionId interface{}) HasOneApiGETFreeShippingPromotionIdMarketRequest { + return HasOneApiGETFreeShippingPromotionIdMarketRequest{ + ApiService: a, + ctx: ctx, + freeShippingPromotionId: freeShippingPromotionId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETFreeShippingPromotionIdMarketExecute(r HasOneApiGETFreeShippingPromotionIdMarketRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeShippingPromotionIdMarket") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETFreeShippingPromotionIdOrderAmountPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + freeShippingPromotionId interface{} +} + +func (r HasOneApiGETFreeShippingPromotionIdOrderAmountPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeShippingPromotionIdOrderAmountPromotionRuleExecute(r) +} + +/* +GETFreeShippingPromotionIdOrderAmountPromotionRule Retrieve the order amount promotion rule associated to the free shipping promotion + +Retrieve the order amount promotion rule associated to the free shipping promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeShippingPromotionId The resource's id + @return HasOneApiGETFreeShippingPromotionIdOrderAmountPromotionRuleRequest +*/ +func (a *HasOneApiService) GETFreeShippingPromotionIdOrderAmountPromotionRule(ctx context.Context, freeShippingPromotionId interface{}) HasOneApiGETFreeShippingPromotionIdOrderAmountPromotionRuleRequest { + return HasOneApiGETFreeShippingPromotionIdOrderAmountPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + freeShippingPromotionId: freeShippingPromotionId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETFreeShippingPromotionIdOrderAmountPromotionRuleExecute(r HasOneApiGETFreeShippingPromotionIdOrderAmountPromotionRuleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeShippingPromotionIdOrderAmountPromotionRule") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/order_amount_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETFreeShippingPromotionIdSkuListRequest struct { + ctx context.Context + ApiService *HasOneApiService + freeShippingPromotionId interface{} +} + +func (r HasOneApiGETFreeShippingPromotionIdSkuListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeShippingPromotionIdSkuListExecute(r) +} + +/* +GETFreeShippingPromotionIdSkuList Retrieve the sku list associated to the free shipping promotion + +Retrieve the sku list associated to the free shipping promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeShippingPromotionId The resource's id + @return HasOneApiGETFreeShippingPromotionIdSkuListRequest +*/ +func (a *HasOneApiService) GETFreeShippingPromotionIdSkuList(ctx context.Context, freeShippingPromotionId interface{}) HasOneApiGETFreeShippingPromotionIdSkuListRequest { + return HasOneApiGETFreeShippingPromotionIdSkuListRequest{ + ApiService: a, + ctx: ctx, + freeShippingPromotionId: freeShippingPromotionId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETFreeShippingPromotionIdSkuListExecute(r HasOneApiGETFreeShippingPromotionIdSkuListRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeShippingPromotionIdSkuList") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/sku_list" + localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETFreeShippingPromotionIdSkuListPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + freeShippingPromotionId interface{} +} + +func (r HasOneApiGETFreeShippingPromotionIdSkuListPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeShippingPromotionIdSkuListPromotionRuleExecute(r) +} + +/* +GETFreeShippingPromotionIdSkuListPromotionRule Retrieve the sku list promotion rule associated to the free shipping promotion + +Retrieve the sku list promotion rule associated to the free shipping promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeShippingPromotionId The resource's id + @return HasOneApiGETFreeShippingPromotionIdSkuListPromotionRuleRequest +*/ +func (a *HasOneApiService) GETFreeShippingPromotionIdSkuListPromotionRule(ctx context.Context, freeShippingPromotionId interface{}) HasOneApiGETFreeShippingPromotionIdSkuListPromotionRuleRequest { + return HasOneApiGETFreeShippingPromotionIdSkuListPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + freeShippingPromotionId: freeShippingPromotionId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETFreeShippingPromotionIdSkuListPromotionRuleExecute(r HasOneApiGETFreeShippingPromotionIdSkuListPromotionRuleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETFreeShippingPromotionIdSkuListPromotionRule") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/sku_list_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETGiftCardIdGiftCardRecipientRequest struct { + ctx context.Context + ApiService *HasOneApiService + giftCardId interface{} +} + +func (r HasOneApiGETGiftCardIdGiftCardRecipientRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGiftCardIdGiftCardRecipientExecute(r) +} + +/* +GETGiftCardIdGiftCardRecipient Retrieve the gift card recipient associated to the gift card + +Retrieve the gift card recipient associated to the gift card + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param giftCardId The resource's id + @return HasOneApiGETGiftCardIdGiftCardRecipientRequest +*/ +func (a *HasOneApiService) GETGiftCardIdGiftCardRecipient(ctx context.Context, giftCardId interface{}) HasOneApiGETGiftCardIdGiftCardRecipientRequest { + return HasOneApiGETGiftCardIdGiftCardRecipientRequest{ + ApiService: a, + ctx: ctx, + giftCardId: giftCardId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETGiftCardIdGiftCardRecipientExecute(r HasOneApiGETGiftCardIdGiftCardRecipientRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETGiftCardIdGiftCardRecipient") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/gift_cards/{giftCardId}/gift_card_recipient" + localVarPath = strings.Replace(localVarPath, "{"+"giftCardId"+"}", url.PathEscape(parameterValueToString(r.giftCardId, "giftCardId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETGiftCardIdMarketRequest struct { + ctx context.Context + ApiService *HasOneApiService + giftCardId interface{} +} + +func (r HasOneApiGETGiftCardIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGiftCardIdMarketExecute(r) +} + +/* +GETGiftCardIdMarket Retrieve the market associated to the gift card + +Retrieve the market associated to the gift card + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param giftCardId The resource's id + @return HasOneApiGETGiftCardIdMarketRequest +*/ +func (a *HasOneApiService) GETGiftCardIdMarket(ctx context.Context, giftCardId interface{}) HasOneApiGETGiftCardIdMarketRequest { + return HasOneApiGETGiftCardIdMarketRequest{ + ApiService: a, + ctx: ctx, + giftCardId: giftCardId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETGiftCardIdMarketExecute(r HasOneApiGETGiftCardIdMarketRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETGiftCardIdMarket") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/gift_cards/{giftCardId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"giftCardId"+"}", url.PathEscape(parameterValueToString(r.giftCardId, "giftCardId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETGiftCardRecipientIdCustomerRequest struct { + ctx context.Context + ApiService *HasOneApiService + giftCardRecipientId interface{} +} + +func (r HasOneApiGETGiftCardRecipientIdCustomerRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGiftCardRecipientIdCustomerExecute(r) +} + +/* +GETGiftCardRecipientIdCustomer Retrieve the customer associated to the gift card recipient + +Retrieve the customer associated to the gift card recipient + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param giftCardRecipientId The resource's id + @return HasOneApiGETGiftCardRecipientIdCustomerRequest +*/ +func (a *HasOneApiService) GETGiftCardRecipientIdCustomer(ctx context.Context, giftCardRecipientId interface{}) HasOneApiGETGiftCardRecipientIdCustomerRequest { + return HasOneApiGETGiftCardRecipientIdCustomerRequest{ + ApiService: a, + ctx: ctx, + giftCardRecipientId: giftCardRecipientId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETGiftCardRecipientIdCustomerExecute(r HasOneApiGETGiftCardRecipientIdCustomerRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETGiftCardRecipientIdCustomer") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/gift_card_recipients/{giftCardRecipientId}/customer" + localVarPath = strings.Replace(localVarPath, "{"+"giftCardRecipientId"+"}", url.PathEscape(parameterValueToString(r.giftCardRecipientId, "giftCardRecipientId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETInStockSubscriptionIdCustomerRequest struct { + ctx context.Context + ApiService *HasOneApiService + inStockSubscriptionId interface{} +} + +func (r HasOneApiGETInStockSubscriptionIdCustomerRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInStockSubscriptionIdCustomerExecute(r) +} + +/* +GETInStockSubscriptionIdCustomer Retrieve the customer associated to the in stock subscription + +Retrieve the customer associated to the in stock subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param inStockSubscriptionId The resource's id + @return HasOneApiGETInStockSubscriptionIdCustomerRequest +*/ +func (a *HasOneApiService) GETInStockSubscriptionIdCustomer(ctx context.Context, inStockSubscriptionId interface{}) HasOneApiGETInStockSubscriptionIdCustomerRequest { + return HasOneApiGETInStockSubscriptionIdCustomerRequest{ + ApiService: a, + ctx: ctx, + inStockSubscriptionId: inStockSubscriptionId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETInStockSubscriptionIdCustomerExecute(r HasOneApiGETInStockSubscriptionIdCustomerRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETInStockSubscriptionIdCustomer") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/in_stock_subscriptions/{inStockSubscriptionId}/customer" + localVarPath = strings.Replace(localVarPath, "{"+"inStockSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.inStockSubscriptionId, "inStockSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETInStockSubscriptionIdMarketRequest struct { + ctx context.Context + ApiService *HasOneApiService + inStockSubscriptionId interface{} +} + +func (r HasOneApiGETInStockSubscriptionIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInStockSubscriptionIdMarketExecute(r) +} + +/* +GETInStockSubscriptionIdMarket Retrieve the market associated to the in stock subscription + +Retrieve the market associated to the in stock subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param inStockSubscriptionId The resource's id + @return HasOneApiGETInStockSubscriptionIdMarketRequest +*/ +func (a *HasOneApiService) GETInStockSubscriptionIdMarket(ctx context.Context, inStockSubscriptionId interface{}) HasOneApiGETInStockSubscriptionIdMarketRequest { + return HasOneApiGETInStockSubscriptionIdMarketRequest{ + ApiService: a, + ctx: ctx, + inStockSubscriptionId: inStockSubscriptionId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETInStockSubscriptionIdMarketExecute(r HasOneApiGETInStockSubscriptionIdMarketRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETInStockSubscriptionIdMarket") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/in_stock_subscriptions/{inStockSubscriptionId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"inStockSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.inStockSubscriptionId, "inStockSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETInStockSubscriptionIdSkuRequest struct { + ctx context.Context + ApiService *HasOneApiService + inStockSubscriptionId interface{} +} + +func (r HasOneApiGETInStockSubscriptionIdSkuRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInStockSubscriptionIdSkuExecute(r) +} + +/* +GETInStockSubscriptionIdSku Retrieve the sku associated to the in stock subscription + +Retrieve the sku associated to the in stock subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param inStockSubscriptionId The resource's id + @return HasOneApiGETInStockSubscriptionIdSkuRequest +*/ +func (a *HasOneApiService) GETInStockSubscriptionIdSku(ctx context.Context, inStockSubscriptionId interface{}) HasOneApiGETInStockSubscriptionIdSkuRequest { + return HasOneApiGETInStockSubscriptionIdSkuRequest{ + ApiService: a, + ctx: ctx, + inStockSubscriptionId: inStockSubscriptionId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETInStockSubscriptionIdSkuExecute(r HasOneApiGETInStockSubscriptionIdSkuRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETInStockSubscriptionIdSku") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/in_stock_subscriptions/{inStockSubscriptionId}/sku" + localVarPath = strings.Replace(localVarPath, "{"+"inStockSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.inStockSubscriptionId, "inStockSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETInventoryReturnLocationIdInventoryModelRequest struct { + ctx context.Context + ApiService *HasOneApiService + inventoryReturnLocationId interface{} +} + +func (r HasOneApiGETInventoryReturnLocationIdInventoryModelRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInventoryReturnLocationIdInventoryModelExecute(r) +} + +/* +GETInventoryReturnLocationIdInventoryModel Retrieve the inventory model associated to the inventory return location + +Retrieve the inventory model associated to the inventory return location + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param inventoryReturnLocationId The resource's id + @return HasOneApiGETInventoryReturnLocationIdInventoryModelRequest +*/ +func (a *HasOneApiService) GETInventoryReturnLocationIdInventoryModel(ctx context.Context, inventoryReturnLocationId interface{}) HasOneApiGETInventoryReturnLocationIdInventoryModelRequest { + return HasOneApiGETInventoryReturnLocationIdInventoryModelRequest{ + ApiService: a, + ctx: ctx, + inventoryReturnLocationId: inventoryReturnLocationId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETInventoryReturnLocationIdInventoryModelExecute(r HasOneApiGETInventoryReturnLocationIdInventoryModelRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETInventoryReturnLocationIdInventoryModel") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/inventory_return_locations/{inventoryReturnLocationId}/inventory_model" + localVarPath = strings.Replace(localVarPath, "{"+"inventoryReturnLocationId"+"}", url.PathEscape(parameterValueToString(r.inventoryReturnLocationId, "inventoryReturnLocationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETInventoryReturnLocationIdStockLocationRequest struct { + ctx context.Context + ApiService *HasOneApiService + inventoryReturnLocationId interface{} +} + +func (r HasOneApiGETInventoryReturnLocationIdStockLocationRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInventoryReturnLocationIdStockLocationExecute(r) +} + +/* +GETInventoryReturnLocationIdStockLocation Retrieve the stock location associated to the inventory return location + +Retrieve the stock location associated to the inventory return location + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param inventoryReturnLocationId The resource's id + @return HasOneApiGETInventoryReturnLocationIdStockLocationRequest +*/ +func (a *HasOneApiService) GETInventoryReturnLocationIdStockLocation(ctx context.Context, inventoryReturnLocationId interface{}) HasOneApiGETInventoryReturnLocationIdStockLocationRequest { + return HasOneApiGETInventoryReturnLocationIdStockLocationRequest{ + ApiService: a, + ctx: ctx, + inventoryReturnLocationId: inventoryReturnLocationId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETInventoryReturnLocationIdStockLocationExecute(r HasOneApiGETInventoryReturnLocationIdStockLocationRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETInventoryReturnLocationIdStockLocation") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/inventory_return_locations/{inventoryReturnLocationId}/stock_location" + localVarPath = strings.Replace(localVarPath, "{"+"inventoryReturnLocationId"+"}", url.PathEscape(parameterValueToString(r.inventoryReturnLocationId, "inventoryReturnLocationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETInventoryStockLocationIdInventoryModelRequest struct { + ctx context.Context + ApiService *HasOneApiService + inventoryStockLocationId interface{} +} + +func (r HasOneApiGETInventoryStockLocationIdInventoryModelRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInventoryStockLocationIdInventoryModelExecute(r) +} + +/* +GETInventoryStockLocationIdInventoryModel Retrieve the inventory model associated to the inventory stock location + +Retrieve the inventory model associated to the inventory stock location + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param inventoryStockLocationId The resource's id + @return HasOneApiGETInventoryStockLocationIdInventoryModelRequest +*/ +func (a *HasOneApiService) GETInventoryStockLocationIdInventoryModel(ctx context.Context, inventoryStockLocationId interface{}) HasOneApiGETInventoryStockLocationIdInventoryModelRequest { + return HasOneApiGETInventoryStockLocationIdInventoryModelRequest{ + ApiService: a, + ctx: ctx, + inventoryStockLocationId: inventoryStockLocationId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETInventoryStockLocationIdInventoryModelExecute(r HasOneApiGETInventoryStockLocationIdInventoryModelRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETInventoryStockLocationIdInventoryModel") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/inventory_stock_locations/{inventoryStockLocationId}/inventory_model" + localVarPath = strings.Replace(localVarPath, "{"+"inventoryStockLocationId"+"}", url.PathEscape(parameterValueToString(r.inventoryStockLocationId, "inventoryStockLocationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETInventoryStockLocationIdStockLocationRequest struct { + ctx context.Context + ApiService *HasOneApiService + inventoryStockLocationId interface{} +} + +func (r HasOneApiGETInventoryStockLocationIdStockLocationRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInventoryStockLocationIdStockLocationExecute(r) +} + +/* +GETInventoryStockLocationIdStockLocation Retrieve the stock location associated to the inventory stock location + +Retrieve the stock location associated to the inventory stock location + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param inventoryStockLocationId The resource's id + @return HasOneApiGETInventoryStockLocationIdStockLocationRequest +*/ +func (a *HasOneApiService) GETInventoryStockLocationIdStockLocation(ctx context.Context, inventoryStockLocationId interface{}) HasOneApiGETInventoryStockLocationIdStockLocationRequest { + return HasOneApiGETInventoryStockLocationIdStockLocationRequest{ + ApiService: a, + ctx: ctx, + inventoryStockLocationId: inventoryStockLocationId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETInventoryStockLocationIdStockLocationExecute(r HasOneApiGETInventoryStockLocationIdStockLocationRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETInventoryStockLocationIdStockLocation") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/inventory_stock_locations/{inventoryStockLocationId}/stock_location" + localVarPath = strings.Replace(localVarPath, "{"+"inventoryStockLocationId"+"}", url.PathEscape(parameterValueToString(r.inventoryStockLocationId, "inventoryStockLocationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETKlarnaPaymentIdOrderRequest struct { + ctx context.Context + ApiService *HasOneApiService + klarnaPaymentId interface{} +} + +func (r HasOneApiGETKlarnaPaymentIdOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETKlarnaPaymentIdOrderExecute(r) +} + +/* +GETKlarnaPaymentIdOrder Retrieve the order associated to the klarna payment + +Retrieve the order associated to the klarna payment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param klarnaPaymentId The resource's id + @return HasOneApiGETKlarnaPaymentIdOrderRequest +*/ +func (a *HasOneApiService) GETKlarnaPaymentIdOrder(ctx context.Context, klarnaPaymentId interface{}) HasOneApiGETKlarnaPaymentIdOrderRequest { + return HasOneApiGETKlarnaPaymentIdOrderRequest{ + ApiService: a, + ctx: ctx, + klarnaPaymentId: klarnaPaymentId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETKlarnaPaymentIdOrderExecute(r HasOneApiGETKlarnaPaymentIdOrderRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETKlarnaPaymentIdOrder") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/klarna_payments/{klarnaPaymentId}/order" + localVarPath = strings.Replace(localVarPath, "{"+"klarnaPaymentId"+"}", url.PathEscape(parameterValueToString(r.klarnaPaymentId, "klarnaPaymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETKlarnaPaymentIdPaymentGatewayRequest struct { + ctx context.Context + ApiService *HasOneApiService + klarnaPaymentId interface{} +} + +func (r HasOneApiGETKlarnaPaymentIdPaymentGatewayRequest) Execute() (*http.Response, error) { + return r.ApiService.GETKlarnaPaymentIdPaymentGatewayExecute(r) +} + +/* +GETKlarnaPaymentIdPaymentGateway Retrieve the payment gateway associated to the klarna payment + +Retrieve the payment gateway associated to the klarna payment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param klarnaPaymentId The resource's id + @return HasOneApiGETKlarnaPaymentIdPaymentGatewayRequest +*/ +func (a *HasOneApiService) GETKlarnaPaymentIdPaymentGateway(ctx context.Context, klarnaPaymentId interface{}) HasOneApiGETKlarnaPaymentIdPaymentGatewayRequest { + return HasOneApiGETKlarnaPaymentIdPaymentGatewayRequest{ + ApiService: a, + ctx: ctx, + klarnaPaymentId: klarnaPaymentId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETKlarnaPaymentIdPaymentGatewayExecute(r HasOneApiGETKlarnaPaymentIdPaymentGatewayRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETKlarnaPaymentIdPaymentGateway") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/klarna_payments/{klarnaPaymentId}/payment_gateway" + localVarPath = strings.Replace(localVarPath, "{"+"klarnaPaymentId"+"}", url.PathEscape(parameterValueToString(r.klarnaPaymentId, "klarnaPaymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETLineItemIdOrderRequest struct { + ctx context.Context + ApiService *HasOneApiService + lineItemId interface{} +} + +func (r HasOneApiGETLineItemIdOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLineItemIdOrderExecute(r) +} + +/* +GETLineItemIdOrder Retrieve the order associated to the line item + +Retrieve the order associated to the line item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param lineItemId The resource's id + @return HasOneApiGETLineItemIdOrderRequest +*/ +func (a *HasOneApiService) GETLineItemIdOrder(ctx context.Context, lineItemId interface{}) HasOneApiGETLineItemIdOrderRequest { + return HasOneApiGETLineItemIdOrderRequest{ + ApiService: a, + ctx: ctx, + lineItemId: lineItemId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETLineItemIdOrderExecute(r HasOneApiGETLineItemIdOrderRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETLineItemIdOrder") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/line_items/{lineItemId}/order" + localVarPath = strings.Replace(localVarPath, "{"+"lineItemId"+"}", url.PathEscape(parameterValueToString(r.lineItemId, "lineItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETLineItemOptionIdLineItemRequest struct { + ctx context.Context + ApiService *HasOneApiService + lineItemOptionId interface{} +} + +func (r HasOneApiGETLineItemOptionIdLineItemRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLineItemOptionIdLineItemExecute(r) +} + +/* +GETLineItemOptionIdLineItem Retrieve the line item associated to the line item option + +Retrieve the line item associated to the line item option + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param lineItemOptionId The resource's id + @return HasOneApiGETLineItemOptionIdLineItemRequest +*/ +func (a *HasOneApiService) GETLineItemOptionIdLineItem(ctx context.Context, lineItemOptionId interface{}) HasOneApiGETLineItemOptionIdLineItemRequest { + return HasOneApiGETLineItemOptionIdLineItemRequest{ + ApiService: a, + ctx: ctx, + lineItemOptionId: lineItemOptionId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETLineItemOptionIdLineItemExecute(r HasOneApiGETLineItemOptionIdLineItemRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETLineItemOptionIdLineItem") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/line_item_options/{lineItemOptionId}/line_item" + localVarPath = strings.Replace(localVarPath, "{"+"lineItemOptionId"+"}", url.PathEscape(parameterValueToString(r.lineItemOptionId, "lineItemOptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETLineItemOptionIdSkuOptionRequest struct { + ctx context.Context + ApiService *HasOneApiService + lineItemOptionId interface{} +} + +func (r HasOneApiGETLineItemOptionIdSkuOptionRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLineItemOptionIdSkuOptionExecute(r) +} + +/* +GETLineItemOptionIdSkuOption Retrieve the sku option associated to the line item option + +Retrieve the sku option associated to the line item option + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param lineItemOptionId The resource's id + @return HasOneApiGETLineItemOptionIdSkuOptionRequest +*/ +func (a *HasOneApiService) GETLineItemOptionIdSkuOption(ctx context.Context, lineItemOptionId interface{}) HasOneApiGETLineItemOptionIdSkuOptionRequest { + return HasOneApiGETLineItemOptionIdSkuOptionRequest{ + ApiService: a, + ctx: ctx, + lineItemOptionId: lineItemOptionId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETLineItemOptionIdSkuOptionExecute(r HasOneApiGETLineItemOptionIdSkuOptionRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETLineItemOptionIdSkuOption") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/line_item_options/{lineItemOptionId}/sku_option" + localVarPath = strings.Replace(localVarPath, "{"+"lineItemOptionId"+"}", url.PathEscape(parameterValueToString(r.lineItemOptionId, "lineItemOptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETMarketIdBasePriceListRequest struct { + ctx context.Context + ApiService *HasOneApiService + marketId interface{} +} + +func (r HasOneApiGETMarketIdBasePriceListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETMarketIdBasePriceListExecute(r) +} + +/* +GETMarketIdBasePriceList Retrieve the base price list associated to the market + +Retrieve the base price list associated to the market + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param marketId The resource's id + @return HasOneApiGETMarketIdBasePriceListRequest +*/ +func (a *HasOneApiService) GETMarketIdBasePriceList(ctx context.Context, marketId interface{}) HasOneApiGETMarketIdBasePriceListRequest { + return HasOneApiGETMarketIdBasePriceListRequest{ + ApiService: a, + ctx: ctx, + marketId: marketId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETMarketIdBasePriceListExecute(r HasOneApiGETMarketIdBasePriceListRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETMarketIdBasePriceList") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/markets/{marketId}/base_price_list" + localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETMarketIdCustomerGroupRequest struct { + ctx context.Context + ApiService *HasOneApiService + marketId interface{} +} + +func (r HasOneApiGETMarketIdCustomerGroupRequest) Execute() (*http.Response, error) { + return r.ApiService.GETMarketIdCustomerGroupExecute(r) +} + +/* +GETMarketIdCustomerGroup Retrieve the customer group associated to the market + +Retrieve the customer group associated to the market + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param marketId The resource's id + @return HasOneApiGETMarketIdCustomerGroupRequest +*/ +func (a *HasOneApiService) GETMarketIdCustomerGroup(ctx context.Context, marketId interface{}) HasOneApiGETMarketIdCustomerGroupRequest { + return HasOneApiGETMarketIdCustomerGroupRequest{ + ApiService: a, + ctx: ctx, + marketId: marketId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETMarketIdCustomerGroupExecute(r HasOneApiGETMarketIdCustomerGroupRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETMarketIdCustomerGroup") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/markets/{marketId}/customer_group" + localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETMarketIdGeocoderRequest struct { + ctx context.Context + ApiService *HasOneApiService + marketId interface{} +} + +func (r HasOneApiGETMarketIdGeocoderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETMarketIdGeocoderExecute(r) +} + +/* +GETMarketIdGeocoder Retrieve the geocoder associated to the market + +Retrieve the geocoder associated to the market + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param marketId The resource's id + @return HasOneApiGETMarketIdGeocoderRequest +*/ +func (a *HasOneApiService) GETMarketIdGeocoder(ctx context.Context, marketId interface{}) HasOneApiGETMarketIdGeocoderRequest { + return HasOneApiGETMarketIdGeocoderRequest{ + ApiService: a, + ctx: ctx, + marketId: marketId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETMarketIdGeocoderExecute(r HasOneApiGETMarketIdGeocoderRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETMarketIdGeocoder") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/markets/{marketId}/geocoder" + localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETMarketIdInventoryModelRequest struct { + ctx context.Context + ApiService *HasOneApiService + marketId interface{} +} + +func (r HasOneApiGETMarketIdInventoryModelRequest) Execute() (*http.Response, error) { + return r.ApiService.GETMarketIdInventoryModelExecute(r) +} + +/* +GETMarketIdInventoryModel Retrieve the inventory model associated to the market + +Retrieve the inventory model associated to the market + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param marketId The resource's id + @return HasOneApiGETMarketIdInventoryModelRequest +*/ +func (a *HasOneApiService) GETMarketIdInventoryModel(ctx context.Context, marketId interface{}) HasOneApiGETMarketIdInventoryModelRequest { + return HasOneApiGETMarketIdInventoryModelRequest{ + ApiService: a, + ctx: ctx, + marketId: marketId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETMarketIdInventoryModelExecute(r HasOneApiGETMarketIdInventoryModelRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETMarketIdInventoryModel") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/markets/{marketId}/inventory_model" + localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETMarketIdMerchantRequest struct { + ctx context.Context + ApiService *HasOneApiService + marketId interface{} +} + +func (r HasOneApiGETMarketIdMerchantRequest) Execute() (*http.Response, error) { + return r.ApiService.GETMarketIdMerchantExecute(r) +} + +/* +GETMarketIdMerchant Retrieve the merchant associated to the market + +Retrieve the merchant associated to the market + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param marketId The resource's id + @return HasOneApiGETMarketIdMerchantRequest +*/ +func (a *HasOneApiService) GETMarketIdMerchant(ctx context.Context, marketId interface{}) HasOneApiGETMarketIdMerchantRequest { + return HasOneApiGETMarketIdMerchantRequest{ + ApiService: a, + ctx: ctx, + marketId: marketId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETMarketIdMerchantExecute(r HasOneApiGETMarketIdMerchantRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETMarketIdMerchant") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/markets/{marketId}/merchant" + localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETMarketIdPriceListRequest struct { + ctx context.Context + ApiService *HasOneApiService + marketId interface{} +} + +func (r HasOneApiGETMarketIdPriceListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETMarketIdPriceListExecute(r) +} + +/* +GETMarketIdPriceList Retrieve the price list associated to the market + +Retrieve the price list associated to the market + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param marketId The resource's id + @return HasOneApiGETMarketIdPriceListRequest +*/ +func (a *HasOneApiService) GETMarketIdPriceList(ctx context.Context, marketId interface{}) HasOneApiGETMarketIdPriceListRequest { + return HasOneApiGETMarketIdPriceListRequest{ + ApiService: a, + ctx: ctx, + marketId: marketId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETMarketIdPriceListExecute(r HasOneApiGETMarketIdPriceListRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETMarketIdPriceList") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/markets/{marketId}/price_list" + localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETMarketIdSubscriptionModelRequest struct { + ctx context.Context + ApiService *HasOneApiService + marketId interface{} +} + +func (r HasOneApiGETMarketIdSubscriptionModelRequest) Execute() (*http.Response, error) { + return r.ApiService.GETMarketIdSubscriptionModelExecute(r) +} + +/* +GETMarketIdSubscriptionModel Retrieve the subscription model associated to the market + +Retrieve the subscription model associated to the market + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param marketId The resource's id + @return HasOneApiGETMarketIdSubscriptionModelRequest +*/ +func (a *HasOneApiService) GETMarketIdSubscriptionModel(ctx context.Context, marketId interface{}) HasOneApiGETMarketIdSubscriptionModelRequest { + return HasOneApiGETMarketIdSubscriptionModelRequest{ + ApiService: a, + ctx: ctx, + marketId: marketId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETMarketIdSubscriptionModelExecute(r HasOneApiGETMarketIdSubscriptionModelRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETMarketIdSubscriptionModel") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/markets/{marketId}/subscription_model" + localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETMarketIdTaxCalculatorRequest struct { + ctx context.Context + ApiService *HasOneApiService + marketId interface{} +} + +func (r HasOneApiGETMarketIdTaxCalculatorRequest) Execute() (*http.Response, error) { + return r.ApiService.GETMarketIdTaxCalculatorExecute(r) +} + +/* +GETMarketIdTaxCalculator Retrieve the tax calculator associated to the market + +Retrieve the tax calculator associated to the market + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param marketId The resource's id + @return HasOneApiGETMarketIdTaxCalculatorRequest +*/ +func (a *HasOneApiService) GETMarketIdTaxCalculator(ctx context.Context, marketId interface{}) HasOneApiGETMarketIdTaxCalculatorRequest { + return HasOneApiGETMarketIdTaxCalculatorRequest{ + ApiService: a, + ctx: ctx, + marketId: marketId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETMarketIdTaxCalculatorExecute(r HasOneApiGETMarketIdTaxCalculatorRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETMarketIdTaxCalculator") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/markets/{marketId}/tax_calculator" + localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETMerchantIdAddressRequest struct { + ctx context.Context + ApiService *HasOneApiService + merchantId interface{} +} + +func (r HasOneApiGETMerchantIdAddressRequest) Execute() (*http.Response, error) { + return r.ApiService.GETMerchantIdAddressExecute(r) +} + +/* +GETMerchantIdAddress Retrieve the address associated to the merchant + +Retrieve the address associated to the merchant + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param merchantId The resource's id + @return HasOneApiGETMerchantIdAddressRequest +*/ +func (a *HasOneApiService) GETMerchantIdAddress(ctx context.Context, merchantId interface{}) HasOneApiGETMerchantIdAddressRequest { + return HasOneApiGETMerchantIdAddressRequest{ + ApiService: a, + ctx: ctx, + merchantId: merchantId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETMerchantIdAddressExecute(r HasOneApiGETMerchantIdAddressRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETMerchantIdAddress") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/merchants/{merchantId}/address" + localVarPath = strings.Replace(localVarPath, "{"+"merchantId"+"}", url.PathEscape(parameterValueToString(r.merchantId, "merchantId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETOrderCopyIdOrderSubscriptionRequest struct { + ctx context.Context + ApiService *HasOneApiService + orderCopyId interface{} +} + +func (r HasOneApiGETOrderCopyIdOrderSubscriptionRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderCopyIdOrderSubscriptionExecute(r) +} + +/* +GETOrderCopyIdOrderSubscription Retrieve the order subscription associated to the order copy + +Retrieve the order subscription associated to the order copy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderCopyId The resource's id + @return HasOneApiGETOrderCopyIdOrderSubscriptionRequest +*/ +func (a *HasOneApiService) GETOrderCopyIdOrderSubscription(ctx context.Context, orderCopyId interface{}) HasOneApiGETOrderCopyIdOrderSubscriptionRequest { + return HasOneApiGETOrderCopyIdOrderSubscriptionRequest{ + ApiService: a, + ctx: ctx, + orderCopyId: orderCopyId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETOrderCopyIdOrderSubscriptionExecute(r HasOneApiGETOrderCopyIdOrderSubscriptionRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderCopyIdOrderSubscription") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_copies/{orderCopyId}/order_subscription" + localVarPath = strings.Replace(localVarPath, "{"+"orderCopyId"+"}", url.PathEscape(parameterValueToString(r.orderCopyId, "orderCopyId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETOrderCopyIdSourceOrderRequest struct { + ctx context.Context + ApiService *HasOneApiService + orderCopyId interface{} +} + +func (r HasOneApiGETOrderCopyIdSourceOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderCopyIdSourceOrderExecute(r) +} + +/* +GETOrderCopyIdSourceOrder Retrieve the source order associated to the order copy + +Retrieve the source order associated to the order copy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderCopyId The resource's id + @return HasOneApiGETOrderCopyIdSourceOrderRequest +*/ +func (a *HasOneApiService) GETOrderCopyIdSourceOrder(ctx context.Context, orderCopyId interface{}) HasOneApiGETOrderCopyIdSourceOrderRequest { + return HasOneApiGETOrderCopyIdSourceOrderRequest{ + ApiService: a, + ctx: ctx, + orderCopyId: orderCopyId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETOrderCopyIdSourceOrderExecute(r HasOneApiGETOrderCopyIdSourceOrderRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderCopyIdSourceOrder") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_copies/{orderCopyId}/source_order" + localVarPath = strings.Replace(localVarPath, "{"+"orderCopyId"+"}", url.PathEscape(parameterValueToString(r.orderCopyId, "orderCopyId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETOrderCopyIdTargetOrderRequest struct { + ctx context.Context + ApiService *HasOneApiService + orderCopyId interface{} +} + +func (r HasOneApiGETOrderCopyIdTargetOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderCopyIdTargetOrderExecute(r) +} + +/* +GETOrderCopyIdTargetOrder Retrieve the target order associated to the order copy + +Retrieve the target order associated to the order copy + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderCopyId The resource's id + @return HasOneApiGETOrderCopyIdTargetOrderRequest +*/ +func (a *HasOneApiService) GETOrderCopyIdTargetOrder(ctx context.Context, orderCopyId interface{}) HasOneApiGETOrderCopyIdTargetOrderRequest { + return HasOneApiGETOrderCopyIdTargetOrderRequest{ + ApiService: a, + ctx: ctx, + orderCopyId: orderCopyId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETOrderCopyIdTargetOrderExecute(r HasOneApiGETOrderCopyIdTargetOrderRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderCopyIdTargetOrder") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_copies/{orderCopyId}/target_order" + localVarPath = strings.Replace(localVarPath, "{"+"orderCopyId"+"}", url.PathEscape(parameterValueToString(r.orderCopyId, "orderCopyId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETOrderFactoryIdSourceOrderRequest struct { + ctx context.Context + ApiService *HasOneApiService + orderFactoryId interface{} +} + +func (r HasOneApiGETOrderFactoryIdSourceOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderFactoryIdSourceOrderExecute(r) +} + +/* +GETOrderFactoryIdSourceOrder Retrieve the source order associated to the order factory + +Retrieve the source order associated to the order factory + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderFactoryId The resource's id + @return HasOneApiGETOrderFactoryIdSourceOrderRequest +*/ +func (a *HasOneApiService) GETOrderFactoryIdSourceOrder(ctx context.Context, orderFactoryId interface{}) HasOneApiGETOrderFactoryIdSourceOrderRequest { + return HasOneApiGETOrderFactoryIdSourceOrderRequest{ + ApiService: a, + ctx: ctx, + orderFactoryId: orderFactoryId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETOrderFactoryIdSourceOrderExecute(r HasOneApiGETOrderFactoryIdSourceOrderRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderFactoryIdSourceOrder") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_factories/{orderFactoryId}/source_order" + localVarPath = strings.Replace(localVarPath, "{"+"orderFactoryId"+"}", url.PathEscape(parameterValueToString(r.orderFactoryId, "orderFactoryId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETOrderFactoryIdTargetOrderRequest struct { + ctx context.Context + ApiService *HasOneApiService + orderFactoryId interface{} +} + +func (r HasOneApiGETOrderFactoryIdTargetOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderFactoryIdTargetOrderExecute(r) +} + +/* +GETOrderFactoryIdTargetOrder Retrieve the target order associated to the order factory + +Retrieve the target order associated to the order factory + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderFactoryId The resource's id + @return HasOneApiGETOrderFactoryIdTargetOrderRequest +*/ +func (a *HasOneApiService) GETOrderFactoryIdTargetOrder(ctx context.Context, orderFactoryId interface{}) HasOneApiGETOrderFactoryIdTargetOrderRequest { + return HasOneApiGETOrderFactoryIdTargetOrderRequest{ + ApiService: a, + ctx: ctx, + orderFactoryId: orderFactoryId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETOrderFactoryIdTargetOrderExecute(r HasOneApiGETOrderFactoryIdTargetOrderRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderFactoryIdTargetOrder") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_factories/{orderFactoryId}/target_order" + localVarPath = strings.Replace(localVarPath, "{"+"orderFactoryId"+"}", url.PathEscape(parameterValueToString(r.orderFactoryId, "orderFactoryId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETOrderIdBillingAddressRequest struct { + ctx context.Context + ApiService *HasOneApiService + orderId interface{} +} + +func (r HasOneApiGETOrderIdBillingAddressRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdBillingAddressExecute(r) +} + +/* +GETOrderIdBillingAddress Retrieve the billing address associated to the order + +Retrieve the billing address associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasOneApiGETOrderIdBillingAddressRequest +*/ +func (a *HasOneApiService) GETOrderIdBillingAddress(ctx context.Context, orderId interface{}) HasOneApiGETOrderIdBillingAddressRequest { + return HasOneApiGETOrderIdBillingAddressRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETOrderIdBillingAddressExecute(r HasOneApiGETOrderIdBillingAddressRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderIdBillingAddress") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/billing_address" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETOrderIdCustomerRequest struct { + ctx context.Context + ApiService *HasOneApiService + orderId interface{} +} + +func (r HasOneApiGETOrderIdCustomerRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdCustomerExecute(r) +} + +/* +GETOrderIdCustomer Retrieve the customer associated to the order + +Retrieve the customer associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasOneApiGETOrderIdCustomerRequest +*/ +func (a *HasOneApiService) GETOrderIdCustomer(ctx context.Context, orderId interface{}) HasOneApiGETOrderIdCustomerRequest { + return HasOneApiGETOrderIdCustomerRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETOrderIdCustomerExecute(r HasOneApiGETOrderIdCustomerRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderIdCustomer") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/customer" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETOrderIdMarketRequest struct { + ctx context.Context + ApiService *HasOneApiService + orderId interface{} +} + +func (r HasOneApiGETOrderIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdMarketExecute(r) +} + +/* +GETOrderIdMarket Retrieve the market associated to the order + +Retrieve the market associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasOneApiGETOrderIdMarketRequest +*/ +func (a *HasOneApiService) GETOrderIdMarket(ctx context.Context, orderId interface{}) HasOneApiGETOrderIdMarketRequest { + return HasOneApiGETOrderIdMarketRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETOrderIdMarketExecute(r HasOneApiGETOrderIdMarketRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderIdMarket") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETOrderIdOrderSubscriptionRequest struct { + ctx context.Context + ApiService *HasOneApiService + orderId interface{} +} + +func (r HasOneApiGETOrderIdOrderSubscriptionRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdOrderSubscriptionExecute(r) +} + +/* +GETOrderIdOrderSubscription Retrieve the order subscription associated to the order + +Retrieve the order subscription associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasOneApiGETOrderIdOrderSubscriptionRequest +*/ +func (a *HasOneApiService) GETOrderIdOrderSubscription(ctx context.Context, orderId interface{}) HasOneApiGETOrderIdOrderSubscriptionRequest { + return HasOneApiGETOrderIdOrderSubscriptionRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETOrderIdOrderSubscriptionExecute(r HasOneApiGETOrderIdOrderSubscriptionRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderIdOrderSubscription") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/order_subscription" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETOrderIdPaymentMethodRequest struct { + ctx context.Context + ApiService *HasOneApiService + orderId interface{} +} + +func (r HasOneApiGETOrderIdPaymentMethodRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdPaymentMethodExecute(r) +} + +/* +GETOrderIdPaymentMethod Retrieve the payment method associated to the order + +Retrieve the payment method associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasOneApiGETOrderIdPaymentMethodRequest +*/ +func (a *HasOneApiService) GETOrderIdPaymentMethod(ctx context.Context, orderId interface{}) HasOneApiGETOrderIdPaymentMethodRequest { + return HasOneApiGETOrderIdPaymentMethodRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETOrderIdPaymentMethodExecute(r HasOneApiGETOrderIdPaymentMethodRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderIdPaymentMethod") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/payment_method" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETOrderIdShippingAddressRequest struct { + ctx context.Context + ApiService *HasOneApiService + orderId interface{} +} + +func (r HasOneApiGETOrderIdShippingAddressRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdShippingAddressExecute(r) +} + +/* +GETOrderIdShippingAddress Retrieve the shipping address associated to the order + +Retrieve the shipping address associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return HasOneApiGETOrderIdShippingAddressRequest +*/ +func (a *HasOneApiService) GETOrderIdShippingAddress(ctx context.Context, orderId interface{}) HasOneApiGETOrderIdShippingAddressRequest { + return HasOneApiGETOrderIdShippingAddressRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETOrderIdShippingAddressExecute(r HasOneApiGETOrderIdShippingAddressRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderIdShippingAddress") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/shipping_address" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETOrderSubscriptionIdCustomerRequest struct { + ctx context.Context + ApiService *HasOneApiService + orderSubscriptionId interface{} +} + +func (r HasOneApiGETOrderSubscriptionIdCustomerRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderSubscriptionIdCustomerExecute(r) +} + +/* +GETOrderSubscriptionIdCustomer Retrieve the customer associated to the order subscription + +Retrieve the customer associated to the order subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderSubscriptionId The resource's id + @return HasOneApiGETOrderSubscriptionIdCustomerRequest +*/ +func (a *HasOneApiService) GETOrderSubscriptionIdCustomer(ctx context.Context, orderSubscriptionId interface{}) HasOneApiGETOrderSubscriptionIdCustomerRequest { + return HasOneApiGETOrderSubscriptionIdCustomerRequest{ + ApiService: a, + ctx: ctx, + orderSubscriptionId: orderSubscriptionId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETOrderSubscriptionIdCustomerExecute(r HasOneApiGETOrderSubscriptionIdCustomerRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderSubscriptionIdCustomer") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/customer" + localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETOrderSubscriptionIdCustomerPaymentSourceRequest struct { + ctx context.Context + ApiService *HasOneApiService + orderSubscriptionId interface{} +} + +func (r HasOneApiGETOrderSubscriptionIdCustomerPaymentSourceRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderSubscriptionIdCustomerPaymentSourceExecute(r) +} + +/* +GETOrderSubscriptionIdCustomerPaymentSource Retrieve the customer payment source associated to the order subscription + +Retrieve the customer payment source associated to the order subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderSubscriptionId The resource's id + @return HasOneApiGETOrderSubscriptionIdCustomerPaymentSourceRequest +*/ +func (a *HasOneApiService) GETOrderSubscriptionIdCustomerPaymentSource(ctx context.Context, orderSubscriptionId interface{}) HasOneApiGETOrderSubscriptionIdCustomerPaymentSourceRequest { + return HasOneApiGETOrderSubscriptionIdCustomerPaymentSourceRequest{ + ApiService: a, + ctx: ctx, + orderSubscriptionId: orderSubscriptionId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETOrderSubscriptionIdCustomerPaymentSourceExecute(r HasOneApiGETOrderSubscriptionIdCustomerPaymentSourceRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderSubscriptionIdCustomerPaymentSource") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/customer_payment_source" + localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type HasOneApiGETOrderSubscriptionIdMarketRequest struct { + ctx context.Context + ApiService *HasOneApiService + orderSubscriptionId interface{} +} + +func (r HasOneApiGETOrderSubscriptionIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderSubscriptionIdMarketExecute(r) +} + +/* +GETOrderSubscriptionIdMarket Retrieve the market associated to the order subscription + +Retrieve the market associated to the order subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderSubscriptionId The resource's id + @return HasOneApiGETOrderSubscriptionIdMarketRequest +*/ +func (a *HasOneApiService) GETOrderSubscriptionIdMarket(ctx context.Context, orderSubscriptionId interface{}) HasOneApiGETOrderSubscriptionIdMarketRequest { + return HasOneApiGETOrderSubscriptionIdMarketRequest{ + ApiService: a, + ctx: ctx, + orderSubscriptionId: orderSubscriptionId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETOrderSubscriptionIdMarketExecute(r HasOneApiGETOrderSubscriptionIdMarketRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderSubscriptionIdMarket") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil } -func (r HasOneApiGETKlarnaPaymentIdPaymentGatewayRequest) Execute() (*http.Response, error) { - return r.ApiService.GETKlarnaPaymentIdPaymentGatewayExecute(r) +type HasOneApiGETOrderSubscriptionIdSourceOrderRequest struct { + ctx context.Context + ApiService *HasOneApiService + orderSubscriptionId interface{} +} + +func (r HasOneApiGETOrderSubscriptionIdSourceOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderSubscriptionIdSourceOrderExecute(r) } /* -GETKlarnaPaymentIdPaymentGateway Retrieve the payment gateway associated to the klarna payment +GETOrderSubscriptionIdSourceOrder Retrieve the source order associated to the order subscription -Retrieve the payment gateway associated to the klarna payment +Retrieve the source order associated to the order subscription @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param klarnaPaymentId The resource's id - @return HasOneApiGETKlarnaPaymentIdPaymentGatewayRequest + @param orderSubscriptionId The resource's id + @return HasOneApiGETOrderSubscriptionIdSourceOrderRequest */ -func (a *HasOneApiService) GETKlarnaPaymentIdPaymentGateway(ctx context.Context, klarnaPaymentId interface{}) HasOneApiGETKlarnaPaymentIdPaymentGatewayRequest { - return HasOneApiGETKlarnaPaymentIdPaymentGatewayRequest{ - ApiService: a, - ctx: ctx, - klarnaPaymentId: klarnaPaymentId, +func (a *HasOneApiService) GETOrderSubscriptionIdSourceOrder(ctx context.Context, orderSubscriptionId interface{}) HasOneApiGETOrderSubscriptionIdSourceOrderRequest { + return HasOneApiGETOrderSubscriptionIdSourceOrderRequest{ + ApiService: a, + ctx: ctx, + orderSubscriptionId: orderSubscriptionId, } } // Execute executes the request -func (a *HasOneApiService) GETKlarnaPaymentIdPaymentGatewayExecute(r HasOneApiGETKlarnaPaymentIdPaymentGatewayRequest) (*http.Response, error) { +func (a *HasOneApiService) GETOrderSubscriptionIdSourceOrderExecute(r HasOneApiGETOrderSubscriptionIdSourceOrderRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETKlarnaPaymentIdPaymentGateway") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderSubscriptionIdSourceOrder") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/klarna_payments/{klarnaPaymentId}/payment_gateway" - localVarPath = strings.Replace(localVarPath, "{"+"klarnaPaymentId"+"}", url.PathEscape(parameterValueToString(r.klarnaPaymentId, "klarnaPaymentId")), -1) + localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/source_order" + localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -5911,48 +10051,48 @@ func (a *HasOneApiService) GETKlarnaPaymentIdPaymentGatewayExecute(r HasOneApiGE return localVarHTTPResponse, nil } -type HasOneApiGETLineItemIdOrderRequest struct { - ctx context.Context - ApiService *HasOneApiService - lineItemId interface{} +type HasOneApiGETOrderSubscriptionIdSubscriptionModelRequest struct { + ctx context.Context + ApiService *HasOneApiService + orderSubscriptionId interface{} } -func (r HasOneApiGETLineItemIdOrderRequest) Execute() (*http.Response, error) { - return r.ApiService.GETLineItemIdOrderExecute(r) +func (r HasOneApiGETOrderSubscriptionIdSubscriptionModelRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderSubscriptionIdSubscriptionModelExecute(r) } /* -GETLineItemIdOrder Retrieve the order associated to the line item +GETOrderSubscriptionIdSubscriptionModel Retrieve the subscription model associated to the order subscription -Retrieve the order associated to the line item +Retrieve the subscription model associated to the order subscription @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param lineItemId The resource's id - @return HasOneApiGETLineItemIdOrderRequest + @param orderSubscriptionId The resource's id + @return HasOneApiGETOrderSubscriptionIdSubscriptionModelRequest */ -func (a *HasOneApiService) GETLineItemIdOrder(ctx context.Context, lineItemId interface{}) HasOneApiGETLineItemIdOrderRequest { - return HasOneApiGETLineItemIdOrderRequest{ - ApiService: a, - ctx: ctx, - lineItemId: lineItemId, +func (a *HasOneApiService) GETOrderSubscriptionIdSubscriptionModel(ctx context.Context, orderSubscriptionId interface{}) HasOneApiGETOrderSubscriptionIdSubscriptionModelRequest { + return HasOneApiGETOrderSubscriptionIdSubscriptionModelRequest{ + ApiService: a, + ctx: ctx, + orderSubscriptionId: orderSubscriptionId, } } // Execute executes the request -func (a *HasOneApiService) GETLineItemIdOrderExecute(r HasOneApiGETLineItemIdOrderRequest) (*http.Response, error) { +func (a *HasOneApiService) GETOrderSubscriptionIdSubscriptionModelExecute(r HasOneApiGETOrderSubscriptionIdSubscriptionModelRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETLineItemIdOrder") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderSubscriptionIdSubscriptionModel") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/line_items/{lineItemId}/order" - localVarPath = strings.Replace(localVarPath, "{"+"lineItemId"+"}", url.PathEscape(parameterValueToString(r.lineItemId, "lineItemId")), -1) + localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/subscription_model" + localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6003,48 +10143,48 @@ func (a *HasOneApiService) GETLineItemIdOrderExecute(r HasOneApiGETLineItemIdOrd return localVarHTTPResponse, nil } -type HasOneApiGETLineItemOptionIdLineItemRequest struct { - ctx context.Context - ApiService *HasOneApiService - lineItemOptionId interface{} +type HasOneApiGETOrderSubscriptionItemIdOrderSubscriptionRequest struct { + ctx context.Context + ApiService *HasOneApiService + orderSubscriptionItemId interface{} } -func (r HasOneApiGETLineItemOptionIdLineItemRequest) Execute() (*http.Response, error) { - return r.ApiService.GETLineItemOptionIdLineItemExecute(r) +func (r HasOneApiGETOrderSubscriptionItemIdOrderSubscriptionRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderSubscriptionItemIdOrderSubscriptionExecute(r) } /* -GETLineItemOptionIdLineItem Retrieve the line item associated to the line item option +GETOrderSubscriptionItemIdOrderSubscription Retrieve the order subscription associated to the order subscription item -Retrieve the line item associated to the line item option +Retrieve the order subscription associated to the order subscription item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param lineItemOptionId The resource's id - @return HasOneApiGETLineItemOptionIdLineItemRequest + @param orderSubscriptionItemId The resource's id + @return HasOneApiGETOrderSubscriptionItemIdOrderSubscriptionRequest */ -func (a *HasOneApiService) GETLineItemOptionIdLineItem(ctx context.Context, lineItemOptionId interface{}) HasOneApiGETLineItemOptionIdLineItemRequest { - return HasOneApiGETLineItemOptionIdLineItemRequest{ - ApiService: a, - ctx: ctx, - lineItemOptionId: lineItemOptionId, +func (a *HasOneApiService) GETOrderSubscriptionItemIdOrderSubscription(ctx context.Context, orderSubscriptionItemId interface{}) HasOneApiGETOrderSubscriptionItemIdOrderSubscriptionRequest { + return HasOneApiGETOrderSubscriptionItemIdOrderSubscriptionRequest{ + ApiService: a, + ctx: ctx, + orderSubscriptionItemId: orderSubscriptionItemId, } } // Execute executes the request -func (a *HasOneApiService) GETLineItemOptionIdLineItemExecute(r HasOneApiGETLineItemOptionIdLineItemRequest) (*http.Response, error) { +func (a *HasOneApiService) GETOrderSubscriptionItemIdOrderSubscriptionExecute(r HasOneApiGETOrderSubscriptionItemIdOrderSubscriptionRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETLineItemOptionIdLineItem") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderSubscriptionItemIdOrderSubscription") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/line_item_options/{lineItemOptionId}/line_item" - localVarPath = strings.Replace(localVarPath, "{"+"lineItemOptionId"+"}", url.PathEscape(parameterValueToString(r.lineItemOptionId, "lineItemOptionId")), -1) + localVarPath := localBasePath + "/order_subscription_items/{orderSubscriptionItemId}/order_subscription" + localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionItemId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionItemId, "orderSubscriptionItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6095,48 +10235,48 @@ func (a *HasOneApiService) GETLineItemOptionIdLineItemExecute(r HasOneApiGETLine return localVarHTTPResponse, nil } -type HasOneApiGETLineItemOptionIdSkuOptionRequest struct { - ctx context.Context - ApiService *HasOneApiService - lineItemOptionId interface{} +type HasOneApiGETOrderSubscriptionItemIdSourceLineItemRequest struct { + ctx context.Context + ApiService *HasOneApiService + orderSubscriptionItemId interface{} } -func (r HasOneApiGETLineItemOptionIdSkuOptionRequest) Execute() (*http.Response, error) { - return r.ApiService.GETLineItemOptionIdSkuOptionExecute(r) +func (r HasOneApiGETOrderSubscriptionItemIdSourceLineItemRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderSubscriptionItemIdSourceLineItemExecute(r) } /* -GETLineItemOptionIdSkuOption Retrieve the sku option associated to the line item option +GETOrderSubscriptionItemIdSourceLineItem Retrieve the source line item associated to the order subscription item -Retrieve the sku option associated to the line item option +Retrieve the source line item associated to the order subscription item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param lineItemOptionId The resource's id - @return HasOneApiGETLineItemOptionIdSkuOptionRequest + @param orderSubscriptionItemId The resource's id + @return HasOneApiGETOrderSubscriptionItemIdSourceLineItemRequest */ -func (a *HasOneApiService) GETLineItemOptionIdSkuOption(ctx context.Context, lineItemOptionId interface{}) HasOneApiGETLineItemOptionIdSkuOptionRequest { - return HasOneApiGETLineItemOptionIdSkuOptionRequest{ - ApiService: a, - ctx: ctx, - lineItemOptionId: lineItemOptionId, +func (a *HasOneApiService) GETOrderSubscriptionItemIdSourceLineItem(ctx context.Context, orderSubscriptionItemId interface{}) HasOneApiGETOrderSubscriptionItemIdSourceLineItemRequest { + return HasOneApiGETOrderSubscriptionItemIdSourceLineItemRequest{ + ApiService: a, + ctx: ctx, + orderSubscriptionItemId: orderSubscriptionItemId, } } // Execute executes the request -func (a *HasOneApiService) GETLineItemOptionIdSkuOptionExecute(r HasOneApiGETLineItemOptionIdSkuOptionRequest) (*http.Response, error) { +func (a *HasOneApiService) GETOrderSubscriptionItemIdSourceLineItemExecute(r HasOneApiGETOrderSubscriptionItemIdSourceLineItemRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETLineItemOptionIdSkuOption") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderSubscriptionItemIdSourceLineItem") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/line_item_options/{lineItemOptionId}/sku_option" - localVarPath = strings.Replace(localVarPath, "{"+"lineItemOptionId"+"}", url.PathEscape(parameterValueToString(r.lineItemOptionId, "lineItemOptionId")), -1) + localVarPath := localBasePath + "/order_subscription_items/{orderSubscriptionItemId}/source_line_item" + localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionItemId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionItemId, "orderSubscriptionItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6187,48 +10327,48 @@ func (a *HasOneApiService) GETLineItemOptionIdSkuOptionExecute(r HasOneApiGETLin return localVarHTTPResponse, nil } -type HasOneApiGETMarketIdCustomerGroupRequest struct { +type HasOneApiGETPackageIdStockLocationRequest struct { ctx context.Context ApiService *HasOneApiService - marketId interface{} + packageId interface{} } -func (r HasOneApiGETMarketIdCustomerGroupRequest) Execute() (*http.Response, error) { - return r.ApiService.GETMarketIdCustomerGroupExecute(r) +func (r HasOneApiGETPackageIdStockLocationRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPackageIdStockLocationExecute(r) } /* -GETMarketIdCustomerGroup Retrieve the customer group associated to the market +GETPackageIdStockLocation Retrieve the stock location associated to the package -Retrieve the customer group associated to the market +Retrieve the stock location associated to the package @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param marketId The resource's id - @return HasOneApiGETMarketIdCustomerGroupRequest + @param packageId The resource's id + @return HasOneApiGETPackageIdStockLocationRequest */ -func (a *HasOneApiService) GETMarketIdCustomerGroup(ctx context.Context, marketId interface{}) HasOneApiGETMarketIdCustomerGroupRequest { - return HasOneApiGETMarketIdCustomerGroupRequest{ +func (a *HasOneApiService) GETPackageIdStockLocation(ctx context.Context, packageId interface{}) HasOneApiGETPackageIdStockLocationRequest { + return HasOneApiGETPackageIdStockLocationRequest{ ApiService: a, ctx: ctx, - marketId: marketId, + packageId: packageId, } } // Execute executes the request -func (a *HasOneApiService) GETMarketIdCustomerGroupExecute(r HasOneApiGETMarketIdCustomerGroupRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPackageIdStockLocationExecute(r HasOneApiGETPackageIdStockLocationRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETMarketIdCustomerGroup") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPackageIdStockLocation") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/markets/{marketId}/customer_group" - localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + localVarPath := localBasePath + "/packages/{packageId}/stock_location" + localVarPath = strings.Replace(localVarPath, "{"+"packageId"+"}", url.PathEscape(parameterValueToString(r.packageId, "packageId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6279,48 +10419,48 @@ func (a *HasOneApiService) GETMarketIdCustomerGroupExecute(r HasOneApiGETMarketI return localVarHTTPResponse, nil } -type HasOneApiGETMarketIdInventoryModelRequest struct { +type HasOneApiGETParcelIdPackageRequest struct { ctx context.Context ApiService *HasOneApiService - marketId interface{} + parcelId interface{} } -func (r HasOneApiGETMarketIdInventoryModelRequest) Execute() (*http.Response, error) { - return r.ApiService.GETMarketIdInventoryModelExecute(r) +func (r HasOneApiGETParcelIdPackageRequest) Execute() (*http.Response, error) { + return r.ApiService.GETParcelIdPackageExecute(r) } /* -GETMarketIdInventoryModel Retrieve the inventory model associated to the market +GETParcelIdPackage Retrieve the package associated to the parcel -Retrieve the inventory model associated to the market +Retrieve the package associated to the parcel @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param marketId The resource's id - @return HasOneApiGETMarketIdInventoryModelRequest + @param parcelId The resource's id + @return HasOneApiGETParcelIdPackageRequest */ -func (a *HasOneApiService) GETMarketIdInventoryModel(ctx context.Context, marketId interface{}) HasOneApiGETMarketIdInventoryModelRequest { - return HasOneApiGETMarketIdInventoryModelRequest{ +func (a *HasOneApiService) GETParcelIdPackage(ctx context.Context, parcelId interface{}) HasOneApiGETParcelIdPackageRequest { + return HasOneApiGETParcelIdPackageRequest{ ApiService: a, ctx: ctx, - marketId: marketId, + parcelId: parcelId, } } // Execute executes the request -func (a *HasOneApiService) GETMarketIdInventoryModelExecute(r HasOneApiGETMarketIdInventoryModelRequest) (*http.Response, error) { +func (a *HasOneApiService) GETParcelIdPackageExecute(r HasOneApiGETParcelIdPackageRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETMarketIdInventoryModel") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETParcelIdPackage") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/markets/{marketId}/inventory_model" - localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + localVarPath := localBasePath + "/parcels/{parcelId}/package" + localVarPath = strings.Replace(localVarPath, "{"+"parcelId"+"}", url.PathEscape(parameterValueToString(r.parcelId, "parcelId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6371,48 +10511,48 @@ func (a *HasOneApiService) GETMarketIdInventoryModelExecute(r HasOneApiGETMarket return localVarHTTPResponse, nil } -type HasOneApiGETMarketIdMerchantRequest struct { +type HasOneApiGETParcelIdShipmentRequest struct { ctx context.Context ApiService *HasOneApiService - marketId interface{} + parcelId interface{} } -func (r HasOneApiGETMarketIdMerchantRequest) Execute() (*http.Response, error) { - return r.ApiService.GETMarketIdMerchantExecute(r) +func (r HasOneApiGETParcelIdShipmentRequest) Execute() (*http.Response, error) { + return r.ApiService.GETParcelIdShipmentExecute(r) } /* -GETMarketIdMerchant Retrieve the merchant associated to the market +GETParcelIdShipment Retrieve the shipment associated to the parcel -Retrieve the merchant associated to the market +Retrieve the shipment associated to the parcel @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param marketId The resource's id - @return HasOneApiGETMarketIdMerchantRequest + @param parcelId The resource's id + @return HasOneApiGETParcelIdShipmentRequest */ -func (a *HasOneApiService) GETMarketIdMerchant(ctx context.Context, marketId interface{}) HasOneApiGETMarketIdMerchantRequest { - return HasOneApiGETMarketIdMerchantRequest{ +func (a *HasOneApiService) GETParcelIdShipment(ctx context.Context, parcelId interface{}) HasOneApiGETParcelIdShipmentRequest { + return HasOneApiGETParcelIdShipmentRequest{ ApiService: a, ctx: ctx, - marketId: marketId, + parcelId: parcelId, } } // Execute executes the request -func (a *HasOneApiService) GETMarketIdMerchantExecute(r HasOneApiGETMarketIdMerchantRequest) (*http.Response, error) { +func (a *HasOneApiService) GETParcelIdShipmentExecute(r HasOneApiGETParcelIdShipmentRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETMarketIdMerchant") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETParcelIdShipment") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/markets/{marketId}/merchant" - localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + localVarPath := localBasePath + "/parcels/{parcelId}/shipment" + localVarPath = strings.Replace(localVarPath, "{"+"parcelId"+"}", url.PathEscape(parameterValueToString(r.parcelId, "parcelId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6463,48 +10603,48 @@ func (a *HasOneApiService) GETMarketIdMerchantExecute(r HasOneApiGETMarketIdMerc return localVarHTTPResponse, nil } -type HasOneApiGETMarketIdPriceListRequest struct { - ctx context.Context - ApiService *HasOneApiService - marketId interface{} +type HasOneApiGETParcelLineItemIdParcelRequest struct { + ctx context.Context + ApiService *HasOneApiService + parcelLineItemId interface{} } -func (r HasOneApiGETMarketIdPriceListRequest) Execute() (*http.Response, error) { - return r.ApiService.GETMarketIdPriceListExecute(r) +func (r HasOneApiGETParcelLineItemIdParcelRequest) Execute() (*http.Response, error) { + return r.ApiService.GETParcelLineItemIdParcelExecute(r) } /* -GETMarketIdPriceList Retrieve the price list associated to the market +GETParcelLineItemIdParcel Retrieve the parcel associated to the parcel line item -Retrieve the price list associated to the market +Retrieve the parcel associated to the parcel line item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param marketId The resource's id - @return HasOneApiGETMarketIdPriceListRequest + @param parcelLineItemId The resource's id + @return HasOneApiGETParcelLineItemIdParcelRequest */ -func (a *HasOneApiService) GETMarketIdPriceList(ctx context.Context, marketId interface{}) HasOneApiGETMarketIdPriceListRequest { - return HasOneApiGETMarketIdPriceListRequest{ - ApiService: a, - ctx: ctx, - marketId: marketId, +func (a *HasOneApiService) GETParcelLineItemIdParcel(ctx context.Context, parcelLineItemId interface{}) HasOneApiGETParcelLineItemIdParcelRequest { + return HasOneApiGETParcelLineItemIdParcelRequest{ + ApiService: a, + ctx: ctx, + parcelLineItemId: parcelLineItemId, } } // Execute executes the request -func (a *HasOneApiService) GETMarketIdPriceListExecute(r HasOneApiGETMarketIdPriceListRequest) (*http.Response, error) { +func (a *HasOneApiService) GETParcelLineItemIdParcelExecute(r HasOneApiGETParcelLineItemIdParcelRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETMarketIdPriceList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETParcelLineItemIdParcel") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/markets/{marketId}/price_list" - localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + localVarPath := localBasePath + "/parcel_line_items/{parcelLineItemId}/parcel" + localVarPath = strings.Replace(localVarPath, "{"+"parcelLineItemId"+"}", url.PathEscape(parameterValueToString(r.parcelLineItemId, "parcelLineItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6555,48 +10695,48 @@ func (a *HasOneApiService) GETMarketIdPriceListExecute(r HasOneApiGETMarketIdPri return localVarHTTPResponse, nil } -type HasOneApiGETMarketIdSubscriptionModelRequest struct { - ctx context.Context - ApiService *HasOneApiService - marketId interface{} +type HasOneApiGETParcelLineItemIdStockLineItemRequest struct { + ctx context.Context + ApiService *HasOneApiService + parcelLineItemId interface{} } -func (r HasOneApiGETMarketIdSubscriptionModelRequest) Execute() (*http.Response, error) { - return r.ApiService.GETMarketIdSubscriptionModelExecute(r) +func (r HasOneApiGETParcelLineItemIdStockLineItemRequest) Execute() (*http.Response, error) { + return r.ApiService.GETParcelLineItemIdStockLineItemExecute(r) } /* -GETMarketIdSubscriptionModel Retrieve the subscription model associated to the market +GETParcelLineItemIdStockLineItem Retrieve the stock line item associated to the parcel line item -Retrieve the subscription model associated to the market +Retrieve the stock line item associated to the parcel line item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param marketId The resource's id - @return HasOneApiGETMarketIdSubscriptionModelRequest + @param parcelLineItemId The resource's id + @return HasOneApiGETParcelLineItemIdStockLineItemRequest */ -func (a *HasOneApiService) GETMarketIdSubscriptionModel(ctx context.Context, marketId interface{}) HasOneApiGETMarketIdSubscriptionModelRequest { - return HasOneApiGETMarketIdSubscriptionModelRequest{ - ApiService: a, - ctx: ctx, - marketId: marketId, +func (a *HasOneApiService) GETParcelLineItemIdStockLineItem(ctx context.Context, parcelLineItemId interface{}) HasOneApiGETParcelLineItemIdStockLineItemRequest { + return HasOneApiGETParcelLineItemIdStockLineItemRequest{ + ApiService: a, + ctx: ctx, + parcelLineItemId: parcelLineItemId, } } // Execute executes the request -func (a *HasOneApiService) GETMarketIdSubscriptionModelExecute(r HasOneApiGETMarketIdSubscriptionModelRequest) (*http.Response, error) { +func (a *HasOneApiService) GETParcelLineItemIdStockLineItemExecute(r HasOneApiGETParcelLineItemIdStockLineItemRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETMarketIdSubscriptionModel") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETParcelLineItemIdStockLineItem") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/markets/{marketId}/subscription_model" - localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + localVarPath := localBasePath + "/parcel_line_items/{parcelLineItemId}/stock_line_item" + localVarPath = strings.Replace(localVarPath, "{"+"parcelLineItemId"+"}", url.PathEscape(parameterValueToString(r.parcelLineItemId, "parcelLineItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6647,48 +10787,48 @@ func (a *HasOneApiService) GETMarketIdSubscriptionModelExecute(r HasOneApiGETMar return localVarHTTPResponse, nil } -type HasOneApiGETMarketIdTaxCalculatorRequest struct { - ctx context.Context - ApiService *HasOneApiService - marketId interface{} +type HasOneApiGETPaymentMethodIdMarketRequest struct { + ctx context.Context + ApiService *HasOneApiService + paymentMethodId interface{} } -func (r HasOneApiGETMarketIdTaxCalculatorRequest) Execute() (*http.Response, error) { - return r.ApiService.GETMarketIdTaxCalculatorExecute(r) +func (r HasOneApiGETPaymentMethodIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaymentMethodIdMarketExecute(r) } /* -GETMarketIdTaxCalculator Retrieve the tax calculator associated to the market +GETPaymentMethodIdMarket Retrieve the market associated to the payment method -Retrieve the tax calculator associated to the market +Retrieve the market associated to the payment method @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param marketId The resource's id - @return HasOneApiGETMarketIdTaxCalculatorRequest + @param paymentMethodId The resource's id + @return HasOneApiGETPaymentMethodIdMarketRequest */ -func (a *HasOneApiService) GETMarketIdTaxCalculator(ctx context.Context, marketId interface{}) HasOneApiGETMarketIdTaxCalculatorRequest { - return HasOneApiGETMarketIdTaxCalculatorRequest{ - ApiService: a, - ctx: ctx, - marketId: marketId, +func (a *HasOneApiService) GETPaymentMethodIdMarket(ctx context.Context, paymentMethodId interface{}) HasOneApiGETPaymentMethodIdMarketRequest { + return HasOneApiGETPaymentMethodIdMarketRequest{ + ApiService: a, + ctx: ctx, + paymentMethodId: paymentMethodId, } } // Execute executes the request -func (a *HasOneApiService) GETMarketIdTaxCalculatorExecute(r HasOneApiGETMarketIdTaxCalculatorRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPaymentMethodIdMarketExecute(r HasOneApiGETPaymentMethodIdMarketRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETMarketIdTaxCalculator") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPaymentMethodIdMarket") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/markets/{marketId}/tax_calculator" - localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + localVarPath := localBasePath + "/payment_methods/{paymentMethodId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"paymentMethodId"+"}", url.PathEscape(parameterValueToString(r.paymentMethodId, "paymentMethodId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6739,48 +10879,48 @@ func (a *HasOneApiService) GETMarketIdTaxCalculatorExecute(r HasOneApiGETMarketI return localVarHTTPResponse, nil } -type HasOneApiGETMerchantIdAddressRequest struct { - ctx context.Context - ApiService *HasOneApiService - merchantId interface{} +type HasOneApiGETPaymentMethodIdPaymentGatewayRequest struct { + ctx context.Context + ApiService *HasOneApiService + paymentMethodId interface{} } -func (r HasOneApiGETMerchantIdAddressRequest) Execute() (*http.Response, error) { - return r.ApiService.GETMerchantIdAddressExecute(r) +func (r HasOneApiGETPaymentMethodIdPaymentGatewayRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaymentMethodIdPaymentGatewayExecute(r) } /* -GETMerchantIdAddress Retrieve the address associated to the merchant +GETPaymentMethodIdPaymentGateway Retrieve the payment gateway associated to the payment method -Retrieve the address associated to the merchant +Retrieve the payment gateway associated to the payment method @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param merchantId The resource's id - @return HasOneApiGETMerchantIdAddressRequest + @param paymentMethodId The resource's id + @return HasOneApiGETPaymentMethodIdPaymentGatewayRequest */ -func (a *HasOneApiService) GETMerchantIdAddress(ctx context.Context, merchantId interface{}) HasOneApiGETMerchantIdAddressRequest { - return HasOneApiGETMerchantIdAddressRequest{ - ApiService: a, - ctx: ctx, - merchantId: merchantId, +func (a *HasOneApiService) GETPaymentMethodIdPaymentGateway(ctx context.Context, paymentMethodId interface{}) HasOneApiGETPaymentMethodIdPaymentGatewayRequest { + return HasOneApiGETPaymentMethodIdPaymentGatewayRequest{ + ApiService: a, + ctx: ctx, + paymentMethodId: paymentMethodId, } } // Execute executes the request -func (a *HasOneApiService) GETMerchantIdAddressExecute(r HasOneApiGETMerchantIdAddressRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPaymentMethodIdPaymentGatewayExecute(r HasOneApiGETPaymentMethodIdPaymentGatewayRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETMerchantIdAddress") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPaymentMethodIdPaymentGateway") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/merchants/{merchantId}/address" - localVarPath = strings.Replace(localVarPath, "{"+"merchantId"+"}", url.PathEscape(parameterValueToString(r.merchantId, "merchantId")), -1) + localVarPath := localBasePath + "/payment_methods/{paymentMethodId}/payment_gateway" + localVarPath = strings.Replace(localVarPath, "{"+"paymentMethodId"+"}", url.PathEscape(parameterValueToString(r.paymentMethodId, "paymentMethodId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6831,48 +10971,48 @@ func (a *HasOneApiService) GETMerchantIdAddressExecute(r HasOneApiGETMerchantIdA return localVarHTTPResponse, nil } -type HasOneApiGETOrderCopyIdOrderSubscriptionRequest struct { - ctx context.Context - ApiService *HasOneApiService - orderCopyId interface{} +type HasOneApiGETPaymentOptionIdOrderRequest struct { + ctx context.Context + ApiService *HasOneApiService + paymentOptionId interface{} } -func (r HasOneApiGETOrderCopyIdOrderSubscriptionRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderCopyIdOrderSubscriptionExecute(r) +func (r HasOneApiGETPaymentOptionIdOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaymentOptionIdOrderExecute(r) } /* -GETOrderCopyIdOrderSubscription Retrieve the order subscription associated to the order copy +GETPaymentOptionIdOrder Retrieve the order associated to the payment option -Retrieve the order subscription associated to the order copy +Retrieve the order associated to the payment option @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderCopyId The resource's id - @return HasOneApiGETOrderCopyIdOrderSubscriptionRequest + @param paymentOptionId The resource's id + @return HasOneApiGETPaymentOptionIdOrderRequest */ -func (a *HasOneApiService) GETOrderCopyIdOrderSubscription(ctx context.Context, orderCopyId interface{}) HasOneApiGETOrderCopyIdOrderSubscriptionRequest { - return HasOneApiGETOrderCopyIdOrderSubscriptionRequest{ - ApiService: a, - ctx: ctx, - orderCopyId: orderCopyId, +func (a *HasOneApiService) GETPaymentOptionIdOrder(ctx context.Context, paymentOptionId interface{}) HasOneApiGETPaymentOptionIdOrderRequest { + return HasOneApiGETPaymentOptionIdOrderRequest{ + ApiService: a, + ctx: ctx, + paymentOptionId: paymentOptionId, } } // Execute executes the request -func (a *HasOneApiService) GETOrderCopyIdOrderSubscriptionExecute(r HasOneApiGETOrderCopyIdOrderSubscriptionRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPaymentOptionIdOrderExecute(r HasOneApiGETPaymentOptionIdOrderRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderCopyIdOrderSubscription") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPaymentOptionIdOrder") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_copies/{orderCopyId}/order_subscription" - localVarPath = strings.Replace(localVarPath, "{"+"orderCopyId"+"}", url.PathEscape(parameterValueToString(r.orderCopyId, "orderCopyId")), -1) + localVarPath := localBasePath + "/payment_options/{paymentOptionId}/order" + localVarPath = strings.Replace(localVarPath, "{"+"paymentOptionId"+"}", url.PathEscape(parameterValueToString(r.paymentOptionId, "paymentOptionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -6923,48 +11063,48 @@ func (a *HasOneApiService) GETOrderCopyIdOrderSubscriptionExecute(r HasOneApiGET return localVarHTTPResponse, nil } -type HasOneApiGETOrderCopyIdSourceOrderRequest struct { - ctx context.Context - ApiService *HasOneApiService - orderCopyId interface{} +type HasOneApiGETPaypalPaymentIdOrderRequest struct { + ctx context.Context + ApiService *HasOneApiService + paypalPaymentId interface{} } -func (r HasOneApiGETOrderCopyIdSourceOrderRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderCopyIdSourceOrderExecute(r) +func (r HasOneApiGETPaypalPaymentIdOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaypalPaymentIdOrderExecute(r) } /* -GETOrderCopyIdSourceOrder Retrieve the source order associated to the order copy +GETPaypalPaymentIdOrder Retrieve the order associated to the paypal payment -Retrieve the source order associated to the order copy +Retrieve the order associated to the paypal payment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderCopyId The resource's id - @return HasOneApiGETOrderCopyIdSourceOrderRequest + @param paypalPaymentId The resource's id + @return HasOneApiGETPaypalPaymentIdOrderRequest */ -func (a *HasOneApiService) GETOrderCopyIdSourceOrder(ctx context.Context, orderCopyId interface{}) HasOneApiGETOrderCopyIdSourceOrderRequest { - return HasOneApiGETOrderCopyIdSourceOrderRequest{ - ApiService: a, - ctx: ctx, - orderCopyId: orderCopyId, +func (a *HasOneApiService) GETPaypalPaymentIdOrder(ctx context.Context, paypalPaymentId interface{}) HasOneApiGETPaypalPaymentIdOrderRequest { + return HasOneApiGETPaypalPaymentIdOrderRequest{ + ApiService: a, + ctx: ctx, + paypalPaymentId: paypalPaymentId, } } // Execute executes the request -func (a *HasOneApiService) GETOrderCopyIdSourceOrderExecute(r HasOneApiGETOrderCopyIdSourceOrderRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPaypalPaymentIdOrderExecute(r HasOneApiGETPaypalPaymentIdOrderRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderCopyIdSourceOrder") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPaypalPaymentIdOrder") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_copies/{orderCopyId}/source_order" - localVarPath = strings.Replace(localVarPath, "{"+"orderCopyId"+"}", url.PathEscape(parameterValueToString(r.orderCopyId, "orderCopyId")), -1) + localVarPath := localBasePath + "/paypal_payments/{paypalPaymentId}/order" + localVarPath = strings.Replace(localVarPath, "{"+"paypalPaymentId"+"}", url.PathEscape(parameterValueToString(r.paypalPaymentId, "paypalPaymentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7015,48 +11155,48 @@ func (a *HasOneApiService) GETOrderCopyIdSourceOrderExecute(r HasOneApiGETOrderC return localVarHTTPResponse, nil } -type HasOneApiGETOrderCopyIdTargetOrderRequest struct { - ctx context.Context - ApiService *HasOneApiService - orderCopyId interface{} +type HasOneApiGETPaypalPaymentIdPaymentGatewayRequest struct { + ctx context.Context + ApiService *HasOneApiService + paypalPaymentId interface{} } -func (r HasOneApiGETOrderCopyIdTargetOrderRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderCopyIdTargetOrderExecute(r) +func (r HasOneApiGETPaypalPaymentIdPaymentGatewayRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaypalPaymentIdPaymentGatewayExecute(r) } /* -GETOrderCopyIdTargetOrder Retrieve the target order associated to the order copy +GETPaypalPaymentIdPaymentGateway Retrieve the payment gateway associated to the paypal payment -Retrieve the target order associated to the order copy +Retrieve the payment gateway associated to the paypal payment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderCopyId The resource's id - @return HasOneApiGETOrderCopyIdTargetOrderRequest + @param paypalPaymentId The resource's id + @return HasOneApiGETPaypalPaymentIdPaymentGatewayRequest */ -func (a *HasOneApiService) GETOrderCopyIdTargetOrder(ctx context.Context, orderCopyId interface{}) HasOneApiGETOrderCopyIdTargetOrderRequest { - return HasOneApiGETOrderCopyIdTargetOrderRequest{ - ApiService: a, - ctx: ctx, - orderCopyId: orderCopyId, +func (a *HasOneApiService) GETPaypalPaymentIdPaymentGateway(ctx context.Context, paypalPaymentId interface{}) HasOneApiGETPaypalPaymentIdPaymentGatewayRequest { + return HasOneApiGETPaypalPaymentIdPaymentGatewayRequest{ + ApiService: a, + ctx: ctx, + paypalPaymentId: paypalPaymentId, } } // Execute executes the request -func (a *HasOneApiService) GETOrderCopyIdTargetOrderExecute(r HasOneApiGETOrderCopyIdTargetOrderRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPaypalPaymentIdPaymentGatewayExecute(r HasOneApiGETPaypalPaymentIdPaymentGatewayRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderCopyIdTargetOrder") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPaypalPaymentIdPaymentGateway") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_copies/{orderCopyId}/target_order" - localVarPath = strings.Replace(localVarPath, "{"+"orderCopyId"+"}", url.PathEscape(parameterValueToString(r.orderCopyId, "orderCopyId")), -1) + localVarPath := localBasePath + "/paypal_payments/{paypalPaymentId}/payment_gateway" + localVarPath = strings.Replace(localVarPath, "{"+"paypalPaymentId"+"}", url.PathEscape(parameterValueToString(r.paypalPaymentId, "paypalPaymentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7107,48 +11247,48 @@ func (a *HasOneApiService) GETOrderCopyIdTargetOrderExecute(r HasOneApiGETOrderC return localVarHTTPResponse, nil } -type HasOneApiGETOrderFactoryIdSourceOrderRequest struct { - ctx context.Context - ApiService *HasOneApiService - orderFactoryId interface{} +type HasOneApiGETPercentageDiscountPromotionIdCouponCodesPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + percentageDiscountPromotionId interface{} } -func (r HasOneApiGETOrderFactoryIdSourceOrderRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderFactoryIdSourceOrderExecute(r) +func (r HasOneApiGETPercentageDiscountPromotionIdCouponCodesPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPercentageDiscountPromotionIdCouponCodesPromotionRuleExecute(r) } /* -GETOrderFactoryIdSourceOrder Retrieve the source order associated to the order factory +GETPercentageDiscountPromotionIdCouponCodesPromotionRule Retrieve the coupon codes promotion rule associated to the percentage discount promotion -Retrieve the source order associated to the order factory +Retrieve the coupon codes promotion rule associated to the percentage discount promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderFactoryId The resource's id - @return HasOneApiGETOrderFactoryIdSourceOrderRequest + @param percentageDiscountPromotionId The resource's id + @return HasOneApiGETPercentageDiscountPromotionIdCouponCodesPromotionRuleRequest */ -func (a *HasOneApiService) GETOrderFactoryIdSourceOrder(ctx context.Context, orderFactoryId interface{}) HasOneApiGETOrderFactoryIdSourceOrderRequest { - return HasOneApiGETOrderFactoryIdSourceOrderRequest{ - ApiService: a, - ctx: ctx, - orderFactoryId: orderFactoryId, +func (a *HasOneApiService) GETPercentageDiscountPromotionIdCouponCodesPromotionRule(ctx context.Context, percentageDiscountPromotionId interface{}) HasOneApiGETPercentageDiscountPromotionIdCouponCodesPromotionRuleRequest { + return HasOneApiGETPercentageDiscountPromotionIdCouponCodesPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + percentageDiscountPromotionId: percentageDiscountPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETOrderFactoryIdSourceOrderExecute(r HasOneApiGETOrderFactoryIdSourceOrderRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPercentageDiscountPromotionIdCouponCodesPromotionRuleExecute(r HasOneApiGETPercentageDiscountPromotionIdCouponCodesPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderFactoryIdSourceOrder") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPercentageDiscountPromotionIdCouponCodesPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_factories/{orderFactoryId}/source_order" - localVarPath = strings.Replace(localVarPath, "{"+"orderFactoryId"+"}", url.PathEscape(parameterValueToString(r.orderFactoryId, "orderFactoryId")), -1) + localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/coupon_codes_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7199,48 +11339,48 @@ func (a *HasOneApiService) GETOrderFactoryIdSourceOrderExecute(r HasOneApiGETOrd return localVarHTTPResponse, nil } -type HasOneApiGETOrderFactoryIdTargetOrderRequest struct { - ctx context.Context - ApiService *HasOneApiService - orderFactoryId interface{} +type HasOneApiGETPercentageDiscountPromotionIdCustomPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + percentageDiscountPromotionId interface{} } -func (r HasOneApiGETOrderFactoryIdTargetOrderRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderFactoryIdTargetOrderExecute(r) +func (r HasOneApiGETPercentageDiscountPromotionIdCustomPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPercentageDiscountPromotionIdCustomPromotionRuleExecute(r) } /* -GETOrderFactoryIdTargetOrder Retrieve the target order associated to the order factory +GETPercentageDiscountPromotionIdCustomPromotionRule Retrieve the custom promotion rule associated to the percentage discount promotion -Retrieve the target order associated to the order factory +Retrieve the custom promotion rule associated to the percentage discount promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderFactoryId The resource's id - @return HasOneApiGETOrderFactoryIdTargetOrderRequest + @param percentageDiscountPromotionId The resource's id + @return HasOneApiGETPercentageDiscountPromotionIdCustomPromotionRuleRequest */ -func (a *HasOneApiService) GETOrderFactoryIdTargetOrder(ctx context.Context, orderFactoryId interface{}) HasOneApiGETOrderFactoryIdTargetOrderRequest { - return HasOneApiGETOrderFactoryIdTargetOrderRequest{ - ApiService: a, - ctx: ctx, - orderFactoryId: orderFactoryId, +func (a *HasOneApiService) GETPercentageDiscountPromotionIdCustomPromotionRule(ctx context.Context, percentageDiscountPromotionId interface{}) HasOneApiGETPercentageDiscountPromotionIdCustomPromotionRuleRequest { + return HasOneApiGETPercentageDiscountPromotionIdCustomPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + percentageDiscountPromotionId: percentageDiscountPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETOrderFactoryIdTargetOrderExecute(r HasOneApiGETOrderFactoryIdTargetOrderRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPercentageDiscountPromotionIdCustomPromotionRuleExecute(r HasOneApiGETPercentageDiscountPromotionIdCustomPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderFactoryIdTargetOrder") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPercentageDiscountPromotionIdCustomPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_factories/{orderFactoryId}/target_order" - localVarPath = strings.Replace(localVarPath, "{"+"orderFactoryId"+"}", url.PathEscape(parameterValueToString(r.orderFactoryId, "orderFactoryId")), -1) + localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/custom_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7291,48 +11431,48 @@ func (a *HasOneApiService) GETOrderFactoryIdTargetOrderExecute(r HasOneApiGETOrd return localVarHTTPResponse, nil } -type HasOneApiGETOrderIdBillingAddressRequest struct { - ctx context.Context - ApiService *HasOneApiService - orderId interface{} +type HasOneApiGETPercentageDiscountPromotionIdMarketRequest struct { + ctx context.Context + ApiService *HasOneApiService + percentageDiscountPromotionId interface{} } -func (r HasOneApiGETOrderIdBillingAddressRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdBillingAddressExecute(r) +func (r HasOneApiGETPercentageDiscountPromotionIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPercentageDiscountPromotionIdMarketExecute(r) } /* -GETOrderIdBillingAddress Retrieve the billing address associated to the order +GETPercentageDiscountPromotionIdMarket Retrieve the market associated to the percentage discount promotion -Retrieve the billing address associated to the order +Retrieve the market associated to the percentage discount promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasOneApiGETOrderIdBillingAddressRequest + @param percentageDiscountPromotionId The resource's id + @return HasOneApiGETPercentageDiscountPromotionIdMarketRequest */ -func (a *HasOneApiService) GETOrderIdBillingAddress(ctx context.Context, orderId interface{}) HasOneApiGETOrderIdBillingAddressRequest { - return HasOneApiGETOrderIdBillingAddressRequest{ - ApiService: a, - ctx: ctx, - orderId: orderId, +func (a *HasOneApiService) GETPercentageDiscountPromotionIdMarket(ctx context.Context, percentageDiscountPromotionId interface{}) HasOneApiGETPercentageDiscountPromotionIdMarketRequest { + return HasOneApiGETPercentageDiscountPromotionIdMarketRequest{ + ApiService: a, + ctx: ctx, + percentageDiscountPromotionId: percentageDiscountPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETOrderIdBillingAddressExecute(r HasOneApiGETOrderIdBillingAddressRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPercentageDiscountPromotionIdMarketExecute(r HasOneApiGETPercentageDiscountPromotionIdMarketRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderIdBillingAddress") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPercentageDiscountPromotionIdMarket") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/billing_address" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7383,48 +11523,48 @@ func (a *HasOneApiService) GETOrderIdBillingAddressExecute(r HasOneApiGETOrderId return localVarHTTPResponse, nil } -type HasOneApiGETOrderIdCustomerRequest struct { - ctx context.Context - ApiService *HasOneApiService - orderId interface{} +type HasOneApiGETPercentageDiscountPromotionIdOrderAmountPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + percentageDiscountPromotionId interface{} } -func (r HasOneApiGETOrderIdCustomerRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdCustomerExecute(r) +func (r HasOneApiGETPercentageDiscountPromotionIdOrderAmountPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPercentageDiscountPromotionIdOrderAmountPromotionRuleExecute(r) } /* -GETOrderIdCustomer Retrieve the customer associated to the order +GETPercentageDiscountPromotionIdOrderAmountPromotionRule Retrieve the order amount promotion rule associated to the percentage discount promotion -Retrieve the customer associated to the order +Retrieve the order amount promotion rule associated to the percentage discount promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasOneApiGETOrderIdCustomerRequest + @param percentageDiscountPromotionId The resource's id + @return HasOneApiGETPercentageDiscountPromotionIdOrderAmountPromotionRuleRequest */ -func (a *HasOneApiService) GETOrderIdCustomer(ctx context.Context, orderId interface{}) HasOneApiGETOrderIdCustomerRequest { - return HasOneApiGETOrderIdCustomerRequest{ - ApiService: a, - ctx: ctx, - orderId: orderId, +func (a *HasOneApiService) GETPercentageDiscountPromotionIdOrderAmountPromotionRule(ctx context.Context, percentageDiscountPromotionId interface{}) HasOneApiGETPercentageDiscountPromotionIdOrderAmountPromotionRuleRequest { + return HasOneApiGETPercentageDiscountPromotionIdOrderAmountPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + percentageDiscountPromotionId: percentageDiscountPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETOrderIdCustomerExecute(r HasOneApiGETOrderIdCustomerRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPercentageDiscountPromotionIdOrderAmountPromotionRuleExecute(r HasOneApiGETPercentageDiscountPromotionIdOrderAmountPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderIdCustomer") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPercentageDiscountPromotionIdOrderAmountPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/customer" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/order_amount_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7475,48 +11615,48 @@ func (a *HasOneApiService) GETOrderIdCustomerExecute(r HasOneApiGETOrderIdCustom return localVarHTTPResponse, nil } -type HasOneApiGETOrderIdMarketRequest struct { - ctx context.Context - ApiService *HasOneApiService - orderId interface{} +type HasOneApiGETPercentageDiscountPromotionIdSkuListRequest struct { + ctx context.Context + ApiService *HasOneApiService + percentageDiscountPromotionId interface{} } -func (r HasOneApiGETOrderIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdMarketExecute(r) +func (r HasOneApiGETPercentageDiscountPromotionIdSkuListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPercentageDiscountPromotionIdSkuListExecute(r) } /* -GETOrderIdMarket Retrieve the market associated to the order +GETPercentageDiscountPromotionIdSkuList Retrieve the sku list associated to the percentage discount promotion -Retrieve the market associated to the order +Retrieve the sku list associated to the percentage discount promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasOneApiGETOrderIdMarketRequest + @param percentageDiscountPromotionId The resource's id + @return HasOneApiGETPercentageDiscountPromotionIdSkuListRequest */ -func (a *HasOneApiService) GETOrderIdMarket(ctx context.Context, orderId interface{}) HasOneApiGETOrderIdMarketRequest { - return HasOneApiGETOrderIdMarketRequest{ - ApiService: a, - ctx: ctx, - orderId: orderId, +func (a *HasOneApiService) GETPercentageDiscountPromotionIdSkuList(ctx context.Context, percentageDiscountPromotionId interface{}) HasOneApiGETPercentageDiscountPromotionIdSkuListRequest { + return HasOneApiGETPercentageDiscountPromotionIdSkuListRequest{ + ApiService: a, + ctx: ctx, + percentageDiscountPromotionId: percentageDiscountPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETOrderIdMarketExecute(r HasOneApiGETOrderIdMarketRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPercentageDiscountPromotionIdSkuListExecute(r HasOneApiGETPercentageDiscountPromotionIdSkuListRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPercentageDiscountPromotionIdSkuList") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/sku_list" + localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7567,48 +11707,48 @@ func (a *HasOneApiService) GETOrderIdMarketExecute(r HasOneApiGETOrderIdMarketRe return localVarHTTPResponse, nil } -type HasOneApiGETOrderIdPaymentMethodRequest struct { - ctx context.Context - ApiService *HasOneApiService - orderId interface{} +type HasOneApiGETPercentageDiscountPromotionIdSkuListPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + percentageDiscountPromotionId interface{} } -func (r HasOneApiGETOrderIdPaymentMethodRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdPaymentMethodExecute(r) +func (r HasOneApiGETPercentageDiscountPromotionIdSkuListPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPercentageDiscountPromotionIdSkuListPromotionRuleExecute(r) } /* -GETOrderIdPaymentMethod Retrieve the payment method associated to the order +GETPercentageDiscountPromotionIdSkuListPromotionRule Retrieve the sku list promotion rule associated to the percentage discount promotion -Retrieve the payment method associated to the order +Retrieve the sku list promotion rule associated to the percentage discount promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasOneApiGETOrderIdPaymentMethodRequest + @param percentageDiscountPromotionId The resource's id + @return HasOneApiGETPercentageDiscountPromotionIdSkuListPromotionRuleRequest */ -func (a *HasOneApiService) GETOrderIdPaymentMethod(ctx context.Context, orderId interface{}) HasOneApiGETOrderIdPaymentMethodRequest { - return HasOneApiGETOrderIdPaymentMethodRequest{ - ApiService: a, - ctx: ctx, - orderId: orderId, +func (a *HasOneApiService) GETPercentageDiscountPromotionIdSkuListPromotionRule(ctx context.Context, percentageDiscountPromotionId interface{}) HasOneApiGETPercentageDiscountPromotionIdSkuListPromotionRuleRequest { + return HasOneApiGETPercentageDiscountPromotionIdSkuListPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + percentageDiscountPromotionId: percentageDiscountPromotionId, } } // Execute executes the request -func (a *HasOneApiService) GETOrderIdPaymentMethodExecute(r HasOneApiGETOrderIdPaymentMethodRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPercentageDiscountPromotionIdSkuListPromotionRuleExecute(r HasOneApiGETPercentageDiscountPromotionIdSkuListPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderIdPaymentMethod") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPercentageDiscountPromotionIdSkuListPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/payment_method" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/sku_list_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7659,48 +11799,48 @@ func (a *HasOneApiService) GETOrderIdPaymentMethodExecute(r HasOneApiGETOrderIdP return localVarHTTPResponse, nil } -type HasOneApiGETOrderIdShippingAddressRequest struct { - ctx context.Context - ApiService *HasOneApiService - orderId interface{} +type HasOneApiGETPriceFrequencyTierIdPriceRequest struct { + ctx context.Context + ApiService *HasOneApiService + priceFrequencyTierId interface{} } -func (r HasOneApiGETOrderIdShippingAddressRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderIdShippingAddressExecute(r) +func (r HasOneApiGETPriceFrequencyTierIdPriceRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceFrequencyTierIdPriceExecute(r) } /* -GETOrderIdShippingAddress Retrieve the shipping address associated to the order +GETPriceFrequencyTierIdPrice Retrieve the price associated to the price frequency tier -Retrieve the shipping address associated to the order +Retrieve the price associated to the price frequency tier @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderId The resource's id - @return HasOneApiGETOrderIdShippingAddressRequest + @param priceFrequencyTierId The resource's id + @return HasOneApiGETPriceFrequencyTierIdPriceRequest */ -func (a *HasOneApiService) GETOrderIdShippingAddress(ctx context.Context, orderId interface{}) HasOneApiGETOrderIdShippingAddressRequest { - return HasOneApiGETOrderIdShippingAddressRequest{ - ApiService: a, - ctx: ctx, - orderId: orderId, +func (a *HasOneApiService) GETPriceFrequencyTierIdPrice(ctx context.Context, priceFrequencyTierId interface{}) HasOneApiGETPriceFrequencyTierIdPriceRequest { + return HasOneApiGETPriceFrequencyTierIdPriceRequest{ + ApiService: a, + ctx: ctx, + priceFrequencyTierId: priceFrequencyTierId, } } // Execute executes the request -func (a *HasOneApiService) GETOrderIdShippingAddressExecute(r HasOneApiGETOrderIdShippingAddressRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPriceFrequencyTierIdPriceExecute(r HasOneApiGETPriceFrequencyTierIdPriceRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderIdShippingAddress") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPriceFrequencyTierIdPrice") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/orders/{orderId}/shipping_address" - localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + localVarPath := localBasePath + "/price_frequency_tiers/{priceFrequencyTierId}/price" + localVarPath = strings.Replace(localVarPath, "{"+"priceFrequencyTierId"+"}", url.PathEscape(parameterValueToString(r.priceFrequencyTierId, "priceFrequencyTierId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7751,48 +11891,48 @@ func (a *HasOneApiService) GETOrderIdShippingAddressExecute(r HasOneApiGETOrderI return localVarHTTPResponse, nil } -type HasOneApiGETOrderSubscriptionIdCustomerRequest struct { - ctx context.Context - ApiService *HasOneApiService - orderSubscriptionId interface{} +type HasOneApiGETPriceIdJwtCustomerRequest struct { + ctx context.Context + ApiService *HasOneApiService + priceId interface{} } -func (r HasOneApiGETOrderSubscriptionIdCustomerRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderSubscriptionIdCustomerExecute(r) +func (r HasOneApiGETPriceIdJwtCustomerRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceIdJwtCustomerExecute(r) } /* -GETOrderSubscriptionIdCustomer Retrieve the customer associated to the order subscription +GETPriceIdJwtCustomer Retrieve the jwt customer associated to the price -Retrieve the customer associated to the order subscription +Retrieve the jwt customer associated to the price @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderSubscriptionId The resource's id - @return HasOneApiGETOrderSubscriptionIdCustomerRequest + @param priceId The resource's id + @return HasOneApiGETPriceIdJwtCustomerRequest */ -func (a *HasOneApiService) GETOrderSubscriptionIdCustomer(ctx context.Context, orderSubscriptionId interface{}) HasOneApiGETOrderSubscriptionIdCustomerRequest { - return HasOneApiGETOrderSubscriptionIdCustomerRequest{ - ApiService: a, - ctx: ctx, - orderSubscriptionId: orderSubscriptionId, +func (a *HasOneApiService) GETPriceIdJwtCustomer(ctx context.Context, priceId interface{}) HasOneApiGETPriceIdJwtCustomerRequest { + return HasOneApiGETPriceIdJwtCustomerRequest{ + ApiService: a, + ctx: ctx, + priceId: priceId, } } // Execute executes the request -func (a *HasOneApiService) GETOrderSubscriptionIdCustomerExecute(r HasOneApiGETOrderSubscriptionIdCustomerRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPriceIdJwtCustomerExecute(r HasOneApiGETPriceIdJwtCustomerRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderSubscriptionIdCustomer") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPriceIdJwtCustomer") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/customer" - localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + localVarPath := localBasePath + "/prices/{priceId}/jwt_customer" + localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7842,49 +11982,49 @@ func (a *HasOneApiService) GETOrderSubscriptionIdCustomerExecute(r HasOneApiGETO return localVarHTTPResponse, nil } - -type HasOneApiGETOrderSubscriptionIdCustomerPaymentSourceRequest struct { - ctx context.Context - ApiService *HasOneApiService - orderSubscriptionId interface{} + +type HasOneApiGETPriceIdPriceListRequest struct { + ctx context.Context + ApiService *HasOneApiService + priceId interface{} } -func (r HasOneApiGETOrderSubscriptionIdCustomerPaymentSourceRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderSubscriptionIdCustomerPaymentSourceExecute(r) +func (r HasOneApiGETPriceIdPriceListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceIdPriceListExecute(r) } /* -GETOrderSubscriptionIdCustomerPaymentSource Retrieve the customer payment source associated to the order subscription +GETPriceIdPriceList Retrieve the price list associated to the price -Retrieve the customer payment source associated to the order subscription +Retrieve the price list associated to the price @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderSubscriptionId The resource's id - @return HasOneApiGETOrderSubscriptionIdCustomerPaymentSourceRequest + @param priceId The resource's id + @return HasOneApiGETPriceIdPriceListRequest */ -func (a *HasOneApiService) GETOrderSubscriptionIdCustomerPaymentSource(ctx context.Context, orderSubscriptionId interface{}) HasOneApiGETOrderSubscriptionIdCustomerPaymentSourceRequest { - return HasOneApiGETOrderSubscriptionIdCustomerPaymentSourceRequest{ - ApiService: a, - ctx: ctx, - orderSubscriptionId: orderSubscriptionId, +func (a *HasOneApiService) GETPriceIdPriceList(ctx context.Context, priceId interface{}) HasOneApiGETPriceIdPriceListRequest { + return HasOneApiGETPriceIdPriceListRequest{ + ApiService: a, + ctx: ctx, + priceId: priceId, } } // Execute executes the request -func (a *HasOneApiService) GETOrderSubscriptionIdCustomerPaymentSourceExecute(r HasOneApiGETOrderSubscriptionIdCustomerPaymentSourceRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPriceIdPriceListExecute(r HasOneApiGETPriceIdPriceListRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderSubscriptionIdCustomerPaymentSource") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPriceIdPriceList") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/customer_payment_source" - localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + localVarPath := localBasePath + "/prices/{priceId}/price_list" + localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -7935,48 +12075,48 @@ func (a *HasOneApiService) GETOrderSubscriptionIdCustomerPaymentSourceExecute(r return localVarHTTPResponse, nil } -type HasOneApiGETOrderSubscriptionIdMarketRequest struct { - ctx context.Context - ApiService *HasOneApiService - orderSubscriptionId interface{} +type HasOneApiGETPriceIdSkuRequest struct { + ctx context.Context + ApiService *HasOneApiService + priceId interface{} } -func (r HasOneApiGETOrderSubscriptionIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderSubscriptionIdMarketExecute(r) +func (r HasOneApiGETPriceIdSkuRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceIdSkuExecute(r) } /* -GETOrderSubscriptionIdMarket Retrieve the market associated to the order subscription +GETPriceIdSku Retrieve the sku associated to the price -Retrieve the market associated to the order subscription +Retrieve the sku associated to the price @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderSubscriptionId The resource's id - @return HasOneApiGETOrderSubscriptionIdMarketRequest + @param priceId The resource's id + @return HasOneApiGETPriceIdSkuRequest */ -func (a *HasOneApiService) GETOrderSubscriptionIdMarket(ctx context.Context, orderSubscriptionId interface{}) HasOneApiGETOrderSubscriptionIdMarketRequest { - return HasOneApiGETOrderSubscriptionIdMarketRequest{ - ApiService: a, - ctx: ctx, - orderSubscriptionId: orderSubscriptionId, +func (a *HasOneApiService) GETPriceIdSku(ctx context.Context, priceId interface{}) HasOneApiGETPriceIdSkuRequest { + return HasOneApiGETPriceIdSkuRequest{ + ApiService: a, + ctx: ctx, + priceId: priceId, } } // Execute executes the request -func (a *HasOneApiService) GETOrderSubscriptionIdMarketExecute(r HasOneApiGETOrderSubscriptionIdMarketRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPriceIdSkuExecute(r HasOneApiGETPriceIdSkuRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderSubscriptionIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPriceIdSku") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + localVarPath := localBasePath + "/prices/{priceId}/sku" + localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8027,48 +12167,48 @@ func (a *HasOneApiService) GETOrderSubscriptionIdMarketExecute(r HasOneApiGETOrd return localVarHTTPResponse, nil } -type HasOneApiGETOrderSubscriptionIdSourceOrderRequest struct { - ctx context.Context - ApiService *HasOneApiService - orderSubscriptionId interface{} +type HasOneApiGETPriceListSchedulerIdMarketRequest struct { + ctx context.Context + ApiService *HasOneApiService + priceListSchedulerId interface{} } -func (r HasOneApiGETOrderSubscriptionIdSourceOrderRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderSubscriptionIdSourceOrderExecute(r) +func (r HasOneApiGETPriceListSchedulerIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceListSchedulerIdMarketExecute(r) } /* -GETOrderSubscriptionIdSourceOrder Retrieve the source order associated to the order subscription +GETPriceListSchedulerIdMarket Retrieve the market associated to the price list scheduler -Retrieve the source order associated to the order subscription +Retrieve the market associated to the price list scheduler @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderSubscriptionId The resource's id - @return HasOneApiGETOrderSubscriptionIdSourceOrderRequest + @param priceListSchedulerId The resource's id + @return HasOneApiGETPriceListSchedulerIdMarketRequest */ -func (a *HasOneApiService) GETOrderSubscriptionIdSourceOrder(ctx context.Context, orderSubscriptionId interface{}) HasOneApiGETOrderSubscriptionIdSourceOrderRequest { - return HasOneApiGETOrderSubscriptionIdSourceOrderRequest{ - ApiService: a, - ctx: ctx, - orderSubscriptionId: orderSubscriptionId, +func (a *HasOneApiService) GETPriceListSchedulerIdMarket(ctx context.Context, priceListSchedulerId interface{}) HasOneApiGETPriceListSchedulerIdMarketRequest { + return HasOneApiGETPriceListSchedulerIdMarketRequest{ + ApiService: a, + ctx: ctx, + priceListSchedulerId: priceListSchedulerId, } } // Execute executes the request -func (a *HasOneApiService) GETOrderSubscriptionIdSourceOrderExecute(r HasOneApiGETOrderSubscriptionIdSourceOrderRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPriceListSchedulerIdMarketExecute(r HasOneApiGETPriceListSchedulerIdMarketRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderSubscriptionIdSourceOrder") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPriceListSchedulerIdMarket") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/source_order" - localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + localVarPath := localBasePath + "/price_list_schedulers/{priceListSchedulerId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"priceListSchedulerId"+"}", url.PathEscape(parameterValueToString(r.priceListSchedulerId, "priceListSchedulerId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8119,48 +12259,48 @@ func (a *HasOneApiService) GETOrderSubscriptionIdSourceOrderExecute(r HasOneApiG return localVarHTTPResponse, nil } -type HasOneApiGETOrderSubscriptionIdSubscriptionModelRequest struct { - ctx context.Context - ApiService *HasOneApiService - orderSubscriptionId interface{} +type HasOneApiGETPriceListSchedulerIdPriceListRequest struct { + ctx context.Context + ApiService *HasOneApiService + priceListSchedulerId interface{} } -func (r HasOneApiGETOrderSubscriptionIdSubscriptionModelRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderSubscriptionIdSubscriptionModelExecute(r) +func (r HasOneApiGETPriceListSchedulerIdPriceListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceListSchedulerIdPriceListExecute(r) } /* -GETOrderSubscriptionIdSubscriptionModel Retrieve the subscription model associated to the order subscription +GETPriceListSchedulerIdPriceList Retrieve the price list associated to the price list scheduler -Retrieve the subscription model associated to the order subscription +Retrieve the price list associated to the price list scheduler @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderSubscriptionId The resource's id - @return HasOneApiGETOrderSubscriptionIdSubscriptionModelRequest + @param priceListSchedulerId The resource's id + @return HasOneApiGETPriceListSchedulerIdPriceListRequest */ -func (a *HasOneApiService) GETOrderSubscriptionIdSubscriptionModel(ctx context.Context, orderSubscriptionId interface{}) HasOneApiGETOrderSubscriptionIdSubscriptionModelRequest { - return HasOneApiGETOrderSubscriptionIdSubscriptionModelRequest{ - ApiService: a, - ctx: ctx, - orderSubscriptionId: orderSubscriptionId, +func (a *HasOneApiService) GETPriceListSchedulerIdPriceList(ctx context.Context, priceListSchedulerId interface{}) HasOneApiGETPriceListSchedulerIdPriceListRequest { + return HasOneApiGETPriceListSchedulerIdPriceListRequest{ + ApiService: a, + ctx: ctx, + priceListSchedulerId: priceListSchedulerId, } } // Execute executes the request -func (a *HasOneApiService) GETOrderSubscriptionIdSubscriptionModelExecute(r HasOneApiGETOrderSubscriptionIdSubscriptionModelRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPriceListSchedulerIdPriceListExecute(r HasOneApiGETPriceListSchedulerIdPriceListRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderSubscriptionIdSubscriptionModel") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPriceListSchedulerIdPriceList") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/subscription_model" - localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + localVarPath := localBasePath + "/price_list_schedulers/{priceListSchedulerId}/price_list" + localVarPath = strings.Replace(localVarPath, "{"+"priceListSchedulerId"+"}", url.PathEscape(parameterValueToString(r.priceListSchedulerId, "priceListSchedulerId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8211,48 +12351,48 @@ func (a *HasOneApiService) GETOrderSubscriptionIdSubscriptionModelExecute(r HasO return localVarHTTPResponse, nil } -type HasOneApiGETOrderSubscriptionItemIdOrderSubscriptionRequest struct { - ctx context.Context - ApiService *HasOneApiService - orderSubscriptionItemId interface{} +type HasOneApiGETPriceTierIdPriceRequest struct { + ctx context.Context + ApiService *HasOneApiService + priceTierId interface{} } -func (r HasOneApiGETOrderSubscriptionItemIdOrderSubscriptionRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderSubscriptionItemIdOrderSubscriptionExecute(r) +func (r HasOneApiGETPriceTierIdPriceRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceTierIdPriceExecute(r) } /* -GETOrderSubscriptionItemIdOrderSubscription Retrieve the order subscription associated to the order subscription item +GETPriceTierIdPrice Retrieve the price associated to the price tier -Retrieve the order subscription associated to the order subscription item +Retrieve the price associated to the price tier @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderSubscriptionItemId The resource's id - @return HasOneApiGETOrderSubscriptionItemIdOrderSubscriptionRequest + @param priceTierId The resource's id + @return HasOneApiGETPriceTierIdPriceRequest */ -func (a *HasOneApiService) GETOrderSubscriptionItemIdOrderSubscription(ctx context.Context, orderSubscriptionItemId interface{}) HasOneApiGETOrderSubscriptionItemIdOrderSubscriptionRequest { - return HasOneApiGETOrderSubscriptionItemIdOrderSubscriptionRequest{ - ApiService: a, - ctx: ctx, - orderSubscriptionItemId: orderSubscriptionItemId, +func (a *HasOneApiService) GETPriceTierIdPrice(ctx context.Context, priceTierId interface{}) HasOneApiGETPriceTierIdPriceRequest { + return HasOneApiGETPriceTierIdPriceRequest{ + ApiService: a, + ctx: ctx, + priceTierId: priceTierId, } } // Execute executes the request -func (a *HasOneApiService) GETOrderSubscriptionItemIdOrderSubscriptionExecute(r HasOneApiGETOrderSubscriptionItemIdOrderSubscriptionRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPriceTierIdPriceExecute(r HasOneApiGETPriceTierIdPriceRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderSubscriptionItemIdOrderSubscription") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPriceTierIdPrice") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_subscription_items/{orderSubscriptionItemId}/order_subscription" - localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionItemId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionItemId, "orderSubscriptionItemId")), -1) + localVarPath := localBasePath + "/price_tiers/{priceTierId}/price" + localVarPath = strings.Replace(localVarPath, "{"+"priceTierId"+"}", url.PathEscape(parameterValueToString(r.priceTierId, "priceTierId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8303,48 +12443,48 @@ func (a *HasOneApiService) GETOrderSubscriptionItemIdOrderSubscriptionExecute(r return localVarHTTPResponse, nil } -type HasOneApiGETOrderValidationRuleIdMarketRequest struct { - ctx context.Context - ApiService *HasOneApiService - orderValidationRuleId interface{} +type HasOneApiGETPriceVolumeTierIdPriceRequest struct { + ctx context.Context + ApiService *HasOneApiService + priceVolumeTierId interface{} } -func (r HasOneApiGETOrderValidationRuleIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderValidationRuleIdMarketExecute(r) +func (r HasOneApiGETPriceVolumeTierIdPriceRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceVolumeTierIdPriceExecute(r) } /* -GETOrderValidationRuleIdMarket Retrieve the market associated to the order validation rule +GETPriceVolumeTierIdPrice Retrieve the price associated to the price volume tier -Retrieve the market associated to the order validation rule +Retrieve the price associated to the price volume tier @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderValidationRuleId The resource's id - @return HasOneApiGETOrderValidationRuleIdMarketRequest + @param priceVolumeTierId The resource's id + @return HasOneApiGETPriceVolumeTierIdPriceRequest */ -func (a *HasOneApiService) GETOrderValidationRuleIdMarket(ctx context.Context, orderValidationRuleId interface{}) HasOneApiGETOrderValidationRuleIdMarketRequest { - return HasOneApiGETOrderValidationRuleIdMarketRequest{ - ApiService: a, - ctx: ctx, - orderValidationRuleId: orderValidationRuleId, +func (a *HasOneApiService) GETPriceVolumeTierIdPrice(ctx context.Context, priceVolumeTierId interface{}) HasOneApiGETPriceVolumeTierIdPriceRequest { + return HasOneApiGETPriceVolumeTierIdPriceRequest{ + ApiService: a, + ctx: ctx, + priceVolumeTierId: priceVolumeTierId, } } // Execute executes the request -func (a *HasOneApiService) GETOrderValidationRuleIdMarketExecute(r HasOneApiGETOrderValidationRuleIdMarketRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPriceVolumeTierIdPriceExecute(r HasOneApiGETPriceVolumeTierIdPriceRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETOrderValidationRuleIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPriceVolumeTierIdPrice") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_validation_rules/{orderValidationRuleId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"orderValidationRuleId"+"}", url.PathEscape(parameterValueToString(r.orderValidationRuleId, "orderValidationRuleId")), -1) + localVarPath := localBasePath + "/price_volume_tiers/{priceVolumeTierId}/price" + localVarPath = strings.Replace(localVarPath, "{"+"priceVolumeTierId"+"}", url.PathEscape(parameterValueToString(r.priceVolumeTierId, "priceVolumeTierId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8395,48 +12535,48 @@ func (a *HasOneApiService) GETOrderValidationRuleIdMarketExecute(r HasOneApiGETO return localVarHTTPResponse, nil } -type HasOneApiGETPackageIdStockLocationRequest struct { - ctx context.Context - ApiService *HasOneApiService - packageId interface{} +type HasOneApiGETPromotionIdCouponCodesPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + promotionId interface{} } -func (r HasOneApiGETPackageIdStockLocationRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPackageIdStockLocationExecute(r) +func (r HasOneApiGETPromotionIdCouponCodesPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionIdCouponCodesPromotionRuleExecute(r) } /* -GETPackageIdStockLocation Retrieve the stock location associated to the package +GETPromotionIdCouponCodesPromotionRule Retrieve the coupon codes promotion rule associated to the promotion -Retrieve the stock location associated to the package +Retrieve the coupon codes promotion rule associated to the promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param packageId The resource's id - @return HasOneApiGETPackageIdStockLocationRequest + @param promotionId The resource's id + @return HasOneApiGETPromotionIdCouponCodesPromotionRuleRequest */ -func (a *HasOneApiService) GETPackageIdStockLocation(ctx context.Context, packageId interface{}) HasOneApiGETPackageIdStockLocationRequest { - return HasOneApiGETPackageIdStockLocationRequest{ - ApiService: a, - ctx: ctx, - packageId: packageId, +func (a *HasOneApiService) GETPromotionIdCouponCodesPromotionRule(ctx context.Context, promotionId interface{}) HasOneApiGETPromotionIdCouponCodesPromotionRuleRequest { + return HasOneApiGETPromotionIdCouponCodesPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + promotionId: promotionId, } } // Execute executes the request -func (a *HasOneApiService) GETPackageIdStockLocationExecute(r HasOneApiGETPackageIdStockLocationRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPromotionIdCouponCodesPromotionRuleExecute(r HasOneApiGETPromotionIdCouponCodesPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPackageIdStockLocation") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPromotionIdCouponCodesPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/packages/{packageId}/stock_location" - localVarPath = strings.Replace(localVarPath, "{"+"packageId"+"}", url.PathEscape(parameterValueToString(r.packageId, "packageId")), -1) + localVarPath := localBasePath + "/promotions/{promotionId}/coupon_codes_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8487,48 +12627,48 @@ func (a *HasOneApiService) GETPackageIdStockLocationExecute(r HasOneApiGETPackag return localVarHTTPResponse, nil } -type HasOneApiGETParcelIdPackageRequest struct { - ctx context.Context - ApiService *HasOneApiService - parcelId interface{} +type HasOneApiGETPromotionIdCustomPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + promotionId interface{} } -func (r HasOneApiGETParcelIdPackageRequest) Execute() (*http.Response, error) { - return r.ApiService.GETParcelIdPackageExecute(r) +func (r HasOneApiGETPromotionIdCustomPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionIdCustomPromotionRuleExecute(r) } /* -GETParcelIdPackage Retrieve the package associated to the parcel +GETPromotionIdCustomPromotionRule Retrieve the custom promotion rule associated to the promotion -Retrieve the package associated to the parcel +Retrieve the custom promotion rule associated to the promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param parcelId The resource's id - @return HasOneApiGETParcelIdPackageRequest + @param promotionId The resource's id + @return HasOneApiGETPromotionIdCustomPromotionRuleRequest */ -func (a *HasOneApiService) GETParcelIdPackage(ctx context.Context, parcelId interface{}) HasOneApiGETParcelIdPackageRequest { - return HasOneApiGETParcelIdPackageRequest{ - ApiService: a, - ctx: ctx, - parcelId: parcelId, +func (a *HasOneApiService) GETPromotionIdCustomPromotionRule(ctx context.Context, promotionId interface{}) HasOneApiGETPromotionIdCustomPromotionRuleRequest { + return HasOneApiGETPromotionIdCustomPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + promotionId: promotionId, } } // Execute executes the request -func (a *HasOneApiService) GETParcelIdPackageExecute(r HasOneApiGETParcelIdPackageRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPromotionIdCustomPromotionRuleExecute(r HasOneApiGETPromotionIdCustomPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETParcelIdPackage") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPromotionIdCustomPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/parcels/{parcelId}/package" - localVarPath = strings.Replace(localVarPath, "{"+"parcelId"+"}", url.PathEscape(parameterValueToString(r.parcelId, "parcelId")), -1) + localVarPath := localBasePath + "/promotions/{promotionId}/custom_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8579,48 +12719,48 @@ func (a *HasOneApiService) GETParcelIdPackageExecute(r HasOneApiGETParcelIdPacka return localVarHTTPResponse, nil } -type HasOneApiGETParcelIdShipmentRequest struct { - ctx context.Context - ApiService *HasOneApiService - parcelId interface{} +type HasOneApiGETPromotionIdMarketRequest struct { + ctx context.Context + ApiService *HasOneApiService + promotionId interface{} } - -func (r HasOneApiGETParcelIdShipmentRequest) Execute() (*http.Response, error) { - return r.ApiService.GETParcelIdShipmentExecute(r) + +func (r HasOneApiGETPromotionIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionIdMarketExecute(r) } /* -GETParcelIdShipment Retrieve the shipment associated to the parcel +GETPromotionIdMarket Retrieve the market associated to the promotion -Retrieve the shipment associated to the parcel +Retrieve the market associated to the promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param parcelId The resource's id - @return HasOneApiGETParcelIdShipmentRequest + @param promotionId The resource's id + @return HasOneApiGETPromotionIdMarketRequest */ -func (a *HasOneApiService) GETParcelIdShipment(ctx context.Context, parcelId interface{}) HasOneApiGETParcelIdShipmentRequest { - return HasOneApiGETParcelIdShipmentRequest{ - ApiService: a, - ctx: ctx, - parcelId: parcelId, +func (a *HasOneApiService) GETPromotionIdMarket(ctx context.Context, promotionId interface{}) HasOneApiGETPromotionIdMarketRequest { + return HasOneApiGETPromotionIdMarketRequest{ + ApiService: a, + ctx: ctx, + promotionId: promotionId, } } // Execute executes the request -func (a *HasOneApiService) GETParcelIdShipmentExecute(r HasOneApiGETParcelIdShipmentRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPromotionIdMarketExecute(r HasOneApiGETPromotionIdMarketRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETParcelIdShipment") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPromotionIdMarket") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/parcels/{parcelId}/shipment" - localVarPath = strings.Replace(localVarPath, "{"+"parcelId"+"}", url.PathEscape(parameterValueToString(r.parcelId, "parcelId")), -1) + localVarPath := localBasePath + "/promotions/{promotionId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8671,48 +12811,48 @@ func (a *HasOneApiService) GETParcelIdShipmentExecute(r HasOneApiGETParcelIdShip return localVarHTTPResponse, nil } -type HasOneApiGETParcelLineItemIdParcelRequest struct { - ctx context.Context - ApiService *HasOneApiService - parcelLineItemId interface{} +type HasOneApiGETPromotionIdOrderAmountPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + promotionId interface{} } -func (r HasOneApiGETParcelLineItemIdParcelRequest) Execute() (*http.Response, error) { - return r.ApiService.GETParcelLineItemIdParcelExecute(r) +func (r HasOneApiGETPromotionIdOrderAmountPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionIdOrderAmountPromotionRuleExecute(r) } /* -GETParcelLineItemIdParcel Retrieve the parcel associated to the parcel line item +GETPromotionIdOrderAmountPromotionRule Retrieve the order amount promotion rule associated to the promotion -Retrieve the parcel associated to the parcel line item +Retrieve the order amount promotion rule associated to the promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param parcelLineItemId The resource's id - @return HasOneApiGETParcelLineItemIdParcelRequest + @param promotionId The resource's id + @return HasOneApiGETPromotionIdOrderAmountPromotionRuleRequest */ -func (a *HasOneApiService) GETParcelLineItemIdParcel(ctx context.Context, parcelLineItemId interface{}) HasOneApiGETParcelLineItemIdParcelRequest { - return HasOneApiGETParcelLineItemIdParcelRequest{ - ApiService: a, - ctx: ctx, - parcelLineItemId: parcelLineItemId, +func (a *HasOneApiService) GETPromotionIdOrderAmountPromotionRule(ctx context.Context, promotionId interface{}) HasOneApiGETPromotionIdOrderAmountPromotionRuleRequest { + return HasOneApiGETPromotionIdOrderAmountPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + promotionId: promotionId, } } // Execute executes the request -func (a *HasOneApiService) GETParcelLineItemIdParcelExecute(r HasOneApiGETParcelLineItemIdParcelRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPromotionIdOrderAmountPromotionRuleExecute(r HasOneApiGETPromotionIdOrderAmountPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETParcelLineItemIdParcel") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPromotionIdOrderAmountPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/parcel_line_items/{parcelLineItemId}/parcel" - localVarPath = strings.Replace(localVarPath, "{"+"parcelLineItemId"+"}", url.PathEscape(parameterValueToString(r.parcelLineItemId, "parcelLineItemId")), -1) + localVarPath := localBasePath + "/promotions/{promotionId}/order_amount_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8763,48 +12903,48 @@ func (a *HasOneApiService) GETParcelLineItemIdParcelExecute(r HasOneApiGETParcel return localVarHTTPResponse, nil } -type HasOneApiGETParcelLineItemIdStockLineItemRequest struct { - ctx context.Context - ApiService *HasOneApiService - parcelLineItemId interface{} +type HasOneApiGETPromotionIdSkuListRequest struct { + ctx context.Context + ApiService *HasOneApiService + promotionId interface{} } -func (r HasOneApiGETParcelLineItemIdStockLineItemRequest) Execute() (*http.Response, error) { - return r.ApiService.GETParcelLineItemIdStockLineItemExecute(r) +func (r HasOneApiGETPromotionIdSkuListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionIdSkuListExecute(r) } /* -GETParcelLineItemIdStockLineItem Retrieve the stock line item associated to the parcel line item +GETPromotionIdSkuList Retrieve the sku list associated to the promotion -Retrieve the stock line item associated to the parcel line item +Retrieve the sku list associated to the promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param parcelLineItemId The resource's id - @return HasOneApiGETParcelLineItemIdStockLineItemRequest + @param promotionId The resource's id + @return HasOneApiGETPromotionIdSkuListRequest */ -func (a *HasOneApiService) GETParcelLineItemIdStockLineItem(ctx context.Context, parcelLineItemId interface{}) HasOneApiGETParcelLineItemIdStockLineItemRequest { - return HasOneApiGETParcelLineItemIdStockLineItemRequest{ - ApiService: a, - ctx: ctx, - parcelLineItemId: parcelLineItemId, +func (a *HasOneApiService) GETPromotionIdSkuList(ctx context.Context, promotionId interface{}) HasOneApiGETPromotionIdSkuListRequest { + return HasOneApiGETPromotionIdSkuListRequest{ + ApiService: a, + ctx: ctx, + promotionId: promotionId, } } // Execute executes the request -func (a *HasOneApiService) GETParcelLineItemIdStockLineItemExecute(r HasOneApiGETParcelLineItemIdStockLineItemRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPromotionIdSkuListExecute(r HasOneApiGETPromotionIdSkuListRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETParcelLineItemIdStockLineItem") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPromotionIdSkuList") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/parcel_line_items/{parcelLineItemId}/stock_line_item" - localVarPath = strings.Replace(localVarPath, "{"+"parcelLineItemId"+"}", url.PathEscape(parameterValueToString(r.parcelLineItemId, "parcelLineItemId")), -1) + localVarPath := localBasePath + "/promotions/{promotionId}/sku_list" + localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8855,48 +12995,48 @@ func (a *HasOneApiService) GETParcelLineItemIdStockLineItemExecute(r HasOneApiGE return localVarHTTPResponse, nil } -type HasOneApiGETPaymentMethodIdMarketRequest struct { - ctx context.Context - ApiService *HasOneApiService - paymentMethodId interface{} +type HasOneApiGETPromotionIdSkuListPromotionRuleRequest struct { + ctx context.Context + ApiService *HasOneApiService + promotionId interface{} } -func (r HasOneApiGETPaymentMethodIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPaymentMethodIdMarketExecute(r) +func (r HasOneApiGETPromotionIdSkuListPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionIdSkuListPromotionRuleExecute(r) } /* -GETPaymentMethodIdMarket Retrieve the market associated to the payment method +GETPromotionIdSkuListPromotionRule Retrieve the sku list promotion rule associated to the promotion -Retrieve the market associated to the payment method +Retrieve the sku list promotion rule associated to the promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param paymentMethodId The resource's id - @return HasOneApiGETPaymentMethodIdMarketRequest + @param promotionId The resource's id + @return HasOneApiGETPromotionIdSkuListPromotionRuleRequest */ -func (a *HasOneApiService) GETPaymentMethodIdMarket(ctx context.Context, paymentMethodId interface{}) HasOneApiGETPaymentMethodIdMarketRequest { - return HasOneApiGETPaymentMethodIdMarketRequest{ - ApiService: a, - ctx: ctx, - paymentMethodId: paymentMethodId, +func (a *HasOneApiService) GETPromotionIdSkuListPromotionRule(ctx context.Context, promotionId interface{}) HasOneApiGETPromotionIdSkuListPromotionRuleRequest { + return HasOneApiGETPromotionIdSkuListPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + promotionId: promotionId, } } // Execute executes the request -func (a *HasOneApiService) GETPaymentMethodIdMarketExecute(r HasOneApiGETPaymentMethodIdMarketRequest) (*http.Response, error) { +func (a *HasOneApiService) GETPromotionIdSkuListPromotionRuleExecute(r HasOneApiGETPromotionIdSkuListPromotionRuleRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPaymentMethodIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPromotionIdSkuListPromotionRule") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/payment_methods/{paymentMethodId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"paymentMethodId"+"}", url.PathEscape(parameterValueToString(r.paymentMethodId, "paymentMethodId")), -1) + localVarPath := localBasePath + "/promotions/{promotionId}/sku_list_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -8947,48 +13087,48 @@ func (a *HasOneApiService) GETPaymentMethodIdMarketExecute(r HasOneApiGETPayment return localVarHTTPResponse, nil } -type HasOneApiGETPaymentMethodIdPaymentGatewayRequest struct { - ctx context.Context - ApiService *HasOneApiService - paymentMethodId interface{} +type HasOneApiGETRecurringOrderCopyIdOrderSubscriptionRequest struct { + ctx context.Context + ApiService *HasOneApiService + recurringOrderCopyId interface{} } -func (r HasOneApiGETPaymentMethodIdPaymentGatewayRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPaymentMethodIdPaymentGatewayExecute(r) +func (r HasOneApiGETRecurringOrderCopyIdOrderSubscriptionRequest) Execute() (*http.Response, error) { + return r.ApiService.GETRecurringOrderCopyIdOrderSubscriptionExecute(r) } /* -GETPaymentMethodIdPaymentGateway Retrieve the payment gateway associated to the payment method +GETRecurringOrderCopyIdOrderSubscription Retrieve the order subscription associated to the recurring order copy -Retrieve the payment gateway associated to the payment method +Retrieve the order subscription associated to the recurring order copy @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param paymentMethodId The resource's id - @return HasOneApiGETPaymentMethodIdPaymentGatewayRequest + @param recurringOrderCopyId The resource's id + @return HasOneApiGETRecurringOrderCopyIdOrderSubscriptionRequest */ -func (a *HasOneApiService) GETPaymentMethodIdPaymentGateway(ctx context.Context, paymentMethodId interface{}) HasOneApiGETPaymentMethodIdPaymentGatewayRequest { - return HasOneApiGETPaymentMethodIdPaymentGatewayRequest{ - ApiService: a, - ctx: ctx, - paymentMethodId: paymentMethodId, +func (a *HasOneApiService) GETRecurringOrderCopyIdOrderSubscription(ctx context.Context, recurringOrderCopyId interface{}) HasOneApiGETRecurringOrderCopyIdOrderSubscriptionRequest { + return HasOneApiGETRecurringOrderCopyIdOrderSubscriptionRequest{ + ApiService: a, + ctx: ctx, + recurringOrderCopyId: recurringOrderCopyId, } } // Execute executes the request -func (a *HasOneApiService) GETPaymentMethodIdPaymentGatewayExecute(r HasOneApiGETPaymentMethodIdPaymentGatewayRequest) (*http.Response, error) { +func (a *HasOneApiService) GETRecurringOrderCopyIdOrderSubscriptionExecute(r HasOneApiGETRecurringOrderCopyIdOrderSubscriptionRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPaymentMethodIdPaymentGateway") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETRecurringOrderCopyIdOrderSubscription") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/payment_methods/{paymentMethodId}/payment_gateway" - localVarPath = strings.Replace(localVarPath, "{"+"paymentMethodId"+"}", url.PathEscape(parameterValueToString(r.paymentMethodId, "paymentMethodId")), -1) + localVarPath := localBasePath + "/recurring_order_copies/{recurringOrderCopyId}/order_subscription" + localVarPath = strings.Replace(localVarPath, "{"+"recurringOrderCopyId"+"}", url.PathEscape(parameterValueToString(r.recurringOrderCopyId, "recurringOrderCopyId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9039,48 +13179,48 @@ func (a *HasOneApiService) GETPaymentMethodIdPaymentGatewayExecute(r HasOneApiGE return localVarHTTPResponse, nil } -type HasOneApiGETPaypalPaymentIdOrderRequest struct { - ctx context.Context - ApiService *HasOneApiService - paypalPaymentId interface{} +type HasOneApiGETRecurringOrderCopyIdSourceOrderRequest struct { + ctx context.Context + ApiService *HasOneApiService + recurringOrderCopyId interface{} } -func (r HasOneApiGETPaypalPaymentIdOrderRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPaypalPaymentIdOrderExecute(r) +func (r HasOneApiGETRecurringOrderCopyIdSourceOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETRecurringOrderCopyIdSourceOrderExecute(r) } /* -GETPaypalPaymentIdOrder Retrieve the order associated to the paypal payment +GETRecurringOrderCopyIdSourceOrder Retrieve the source order associated to the recurring order copy -Retrieve the order associated to the paypal payment +Retrieve the source order associated to the recurring order copy @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param paypalPaymentId The resource's id - @return HasOneApiGETPaypalPaymentIdOrderRequest + @param recurringOrderCopyId The resource's id + @return HasOneApiGETRecurringOrderCopyIdSourceOrderRequest */ -func (a *HasOneApiService) GETPaypalPaymentIdOrder(ctx context.Context, paypalPaymentId interface{}) HasOneApiGETPaypalPaymentIdOrderRequest { - return HasOneApiGETPaypalPaymentIdOrderRequest{ - ApiService: a, - ctx: ctx, - paypalPaymentId: paypalPaymentId, +func (a *HasOneApiService) GETRecurringOrderCopyIdSourceOrder(ctx context.Context, recurringOrderCopyId interface{}) HasOneApiGETRecurringOrderCopyIdSourceOrderRequest { + return HasOneApiGETRecurringOrderCopyIdSourceOrderRequest{ + ApiService: a, + ctx: ctx, + recurringOrderCopyId: recurringOrderCopyId, } } // Execute executes the request -func (a *HasOneApiService) GETPaypalPaymentIdOrderExecute(r HasOneApiGETPaypalPaymentIdOrderRequest) (*http.Response, error) { +func (a *HasOneApiService) GETRecurringOrderCopyIdSourceOrderExecute(r HasOneApiGETRecurringOrderCopyIdSourceOrderRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPaypalPaymentIdOrder") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETRecurringOrderCopyIdSourceOrder") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/paypal_payments/{paypalPaymentId}/order" - localVarPath = strings.Replace(localVarPath, "{"+"paypalPaymentId"+"}", url.PathEscape(parameterValueToString(r.paypalPaymentId, "paypalPaymentId")), -1) + localVarPath := localBasePath + "/recurring_order_copies/{recurringOrderCopyId}/source_order" + localVarPath = strings.Replace(localVarPath, "{"+"recurringOrderCopyId"+"}", url.PathEscape(parameterValueToString(r.recurringOrderCopyId, "recurringOrderCopyId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9131,48 +13271,48 @@ func (a *HasOneApiService) GETPaypalPaymentIdOrderExecute(r HasOneApiGETPaypalPa return localVarHTTPResponse, nil } -type HasOneApiGETPaypalPaymentIdPaymentGatewayRequest struct { - ctx context.Context - ApiService *HasOneApiService - paypalPaymentId interface{} +type HasOneApiGETRecurringOrderCopyIdTargetOrderRequest struct { + ctx context.Context + ApiService *HasOneApiService + recurringOrderCopyId interface{} } -func (r HasOneApiGETPaypalPaymentIdPaymentGatewayRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPaypalPaymentIdPaymentGatewayExecute(r) +func (r HasOneApiGETRecurringOrderCopyIdTargetOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETRecurringOrderCopyIdTargetOrderExecute(r) } /* -GETPaypalPaymentIdPaymentGateway Retrieve the payment gateway associated to the paypal payment +GETRecurringOrderCopyIdTargetOrder Retrieve the target order associated to the recurring order copy -Retrieve the payment gateway associated to the paypal payment +Retrieve the target order associated to the recurring order copy @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param paypalPaymentId The resource's id - @return HasOneApiGETPaypalPaymentIdPaymentGatewayRequest + @param recurringOrderCopyId The resource's id + @return HasOneApiGETRecurringOrderCopyIdTargetOrderRequest */ -func (a *HasOneApiService) GETPaypalPaymentIdPaymentGateway(ctx context.Context, paypalPaymentId interface{}) HasOneApiGETPaypalPaymentIdPaymentGatewayRequest { - return HasOneApiGETPaypalPaymentIdPaymentGatewayRequest{ - ApiService: a, - ctx: ctx, - paypalPaymentId: paypalPaymentId, +func (a *HasOneApiService) GETRecurringOrderCopyIdTargetOrder(ctx context.Context, recurringOrderCopyId interface{}) HasOneApiGETRecurringOrderCopyIdTargetOrderRequest { + return HasOneApiGETRecurringOrderCopyIdTargetOrderRequest{ + ApiService: a, + ctx: ctx, + recurringOrderCopyId: recurringOrderCopyId, } } // Execute executes the request -func (a *HasOneApiService) GETPaypalPaymentIdPaymentGatewayExecute(r HasOneApiGETPaypalPaymentIdPaymentGatewayRequest) (*http.Response, error) { +func (a *HasOneApiService) GETRecurringOrderCopyIdTargetOrderExecute(r HasOneApiGETRecurringOrderCopyIdTargetOrderRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPaypalPaymentIdPaymentGateway") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETRecurringOrderCopyIdTargetOrder") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/paypal_payments/{paypalPaymentId}/payment_gateway" - localVarPath = strings.Replace(localVarPath, "{"+"paypalPaymentId"+"}", url.PathEscape(parameterValueToString(r.paypalPaymentId, "paypalPaymentId")), -1) + localVarPath := localBasePath + "/recurring_order_copies/{recurringOrderCopyId}/target_order" + localVarPath = strings.Replace(localVarPath, "{"+"recurringOrderCopyId"+"}", url.PathEscape(parameterValueToString(r.recurringOrderCopyId, "recurringOrderCopyId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9223,48 +13363,48 @@ func (a *HasOneApiService) GETPaypalPaymentIdPaymentGatewayExecute(r HasOneApiGE return localVarHTTPResponse, nil } -type HasOneApiGETPercentageDiscountPromotionIdCouponCodesPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - percentageDiscountPromotionId interface{} +type HasOneApiGETRefundIdOrderRequest struct { + ctx context.Context + ApiService *HasOneApiService + refundId interface{} } -func (r HasOneApiGETPercentageDiscountPromotionIdCouponCodesPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPercentageDiscountPromotionIdCouponCodesPromotionRuleExecute(r) +func (r HasOneApiGETRefundIdOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETRefundIdOrderExecute(r) } /* -GETPercentageDiscountPromotionIdCouponCodesPromotionRule Retrieve the coupon codes promotion rule associated to the percentage discount promotion +GETRefundIdOrder Retrieve the order associated to the refund -Retrieve the coupon codes promotion rule associated to the percentage discount promotion +Retrieve the order associated to the refund @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param percentageDiscountPromotionId The resource's id - @return HasOneApiGETPercentageDiscountPromotionIdCouponCodesPromotionRuleRequest + @param refundId The resource's id + @return HasOneApiGETRefundIdOrderRequest */ -func (a *HasOneApiService) GETPercentageDiscountPromotionIdCouponCodesPromotionRule(ctx context.Context, percentageDiscountPromotionId interface{}) HasOneApiGETPercentageDiscountPromotionIdCouponCodesPromotionRuleRequest { - return HasOneApiGETPercentageDiscountPromotionIdCouponCodesPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - percentageDiscountPromotionId: percentageDiscountPromotionId, +func (a *HasOneApiService) GETRefundIdOrder(ctx context.Context, refundId interface{}) HasOneApiGETRefundIdOrderRequest { + return HasOneApiGETRefundIdOrderRequest{ + ApiService: a, + ctx: ctx, + refundId: refundId, } } // Execute executes the request -func (a *HasOneApiService) GETPercentageDiscountPromotionIdCouponCodesPromotionRuleExecute(r HasOneApiGETPercentageDiscountPromotionIdCouponCodesPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETRefundIdOrderExecute(r HasOneApiGETRefundIdOrderRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPercentageDiscountPromotionIdCouponCodesPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETRefundIdOrder") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/coupon_codes_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + localVarPath := localBasePath + "/refunds/{refundId}/order" + localVarPath = strings.Replace(localVarPath, "{"+"refundId"+"}", url.PathEscape(parameterValueToString(r.refundId, "refundId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9315,48 +13455,48 @@ func (a *HasOneApiService) GETPercentageDiscountPromotionIdCouponCodesPromotionR return localVarHTTPResponse, nil } -type HasOneApiGETPercentageDiscountPromotionIdMarketRequest struct { - ctx context.Context - ApiService *HasOneApiService - percentageDiscountPromotionId interface{} +type HasOneApiGETRefundIdReferenceCaptureRequest struct { + ctx context.Context + ApiService *HasOneApiService + refundId interface{} } -func (r HasOneApiGETPercentageDiscountPromotionIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPercentageDiscountPromotionIdMarketExecute(r) +func (r HasOneApiGETRefundIdReferenceCaptureRequest) Execute() (*http.Response, error) { + return r.ApiService.GETRefundIdReferenceCaptureExecute(r) } /* -GETPercentageDiscountPromotionIdMarket Retrieve the market associated to the percentage discount promotion +GETRefundIdReferenceCapture Retrieve the reference capture associated to the refund -Retrieve the market associated to the percentage discount promotion +Retrieve the reference capture associated to the refund @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param percentageDiscountPromotionId The resource's id - @return HasOneApiGETPercentageDiscountPromotionIdMarketRequest + @param refundId The resource's id + @return HasOneApiGETRefundIdReferenceCaptureRequest */ -func (a *HasOneApiService) GETPercentageDiscountPromotionIdMarket(ctx context.Context, percentageDiscountPromotionId interface{}) HasOneApiGETPercentageDiscountPromotionIdMarketRequest { - return HasOneApiGETPercentageDiscountPromotionIdMarketRequest{ - ApiService: a, - ctx: ctx, - percentageDiscountPromotionId: percentageDiscountPromotionId, +func (a *HasOneApiService) GETRefundIdReferenceCapture(ctx context.Context, refundId interface{}) HasOneApiGETRefundIdReferenceCaptureRequest { + return HasOneApiGETRefundIdReferenceCaptureRequest{ + ApiService: a, + ctx: ctx, + refundId: refundId, } } // Execute executes the request -func (a *HasOneApiService) GETPercentageDiscountPromotionIdMarketExecute(r HasOneApiGETPercentageDiscountPromotionIdMarketRequest) (*http.Response, error) { +func (a *HasOneApiService) GETRefundIdReferenceCaptureExecute(r HasOneApiGETRefundIdReferenceCaptureRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPercentageDiscountPromotionIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETRefundIdReferenceCapture") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + localVarPath := localBasePath + "/refunds/{refundId}/reference_capture" + localVarPath = strings.Replace(localVarPath, "{"+"refundId"+"}", url.PathEscape(parameterValueToString(r.refundId, "refundId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9407,48 +13547,48 @@ func (a *HasOneApiService) GETPercentageDiscountPromotionIdMarketExecute(r HasOn return localVarHTTPResponse, nil } -type HasOneApiGETPercentageDiscountPromotionIdOrderAmountPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - percentageDiscountPromotionId interface{} +type HasOneApiGETRefundIdReturnRequest struct { + ctx context.Context + ApiService *HasOneApiService + refundId interface{} } -func (r HasOneApiGETPercentageDiscountPromotionIdOrderAmountPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPercentageDiscountPromotionIdOrderAmountPromotionRuleExecute(r) +func (r HasOneApiGETRefundIdReturnRequest) Execute() (*http.Response, error) { + return r.ApiService.GETRefundIdReturnExecute(r) } /* -GETPercentageDiscountPromotionIdOrderAmountPromotionRule Retrieve the order amount promotion rule associated to the percentage discount promotion +GETRefundIdReturn Retrieve the return associated to the refund -Retrieve the order amount promotion rule associated to the percentage discount promotion +Retrieve the return associated to the refund @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param percentageDiscountPromotionId The resource's id - @return HasOneApiGETPercentageDiscountPromotionIdOrderAmountPromotionRuleRequest + @param refundId The resource's id + @return HasOneApiGETRefundIdReturnRequest */ -func (a *HasOneApiService) GETPercentageDiscountPromotionIdOrderAmountPromotionRule(ctx context.Context, percentageDiscountPromotionId interface{}) HasOneApiGETPercentageDiscountPromotionIdOrderAmountPromotionRuleRequest { - return HasOneApiGETPercentageDiscountPromotionIdOrderAmountPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - percentageDiscountPromotionId: percentageDiscountPromotionId, +func (a *HasOneApiService) GETRefundIdReturn(ctx context.Context, refundId interface{}) HasOneApiGETRefundIdReturnRequest { + return HasOneApiGETRefundIdReturnRequest{ + ApiService: a, + ctx: ctx, + refundId: refundId, } } // Execute executes the request -func (a *HasOneApiService) GETPercentageDiscountPromotionIdOrderAmountPromotionRuleExecute(r HasOneApiGETPercentageDiscountPromotionIdOrderAmountPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETRefundIdReturnExecute(r HasOneApiGETRefundIdReturnRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPercentageDiscountPromotionIdOrderAmountPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETRefundIdReturn") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/order_amount_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + localVarPath := localBasePath + "/refunds/{refundId}/return" + localVarPath = strings.Replace(localVarPath, "{"+"refundId"+"}", url.PathEscape(parameterValueToString(r.refundId, "refundId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9499,48 +13639,48 @@ func (a *HasOneApiService) GETPercentageDiscountPromotionIdOrderAmountPromotionR return localVarHTTPResponse, nil } -type HasOneApiGETPercentageDiscountPromotionIdSkuListRequest struct { - ctx context.Context - ApiService *HasOneApiService - percentageDiscountPromotionId interface{} +type HasOneApiGETReservedStockIdSkuRequest struct { + ctx context.Context + ApiService *HasOneApiService + reservedStockId interface{} } -func (r HasOneApiGETPercentageDiscountPromotionIdSkuListRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPercentageDiscountPromotionIdSkuListExecute(r) +func (r HasOneApiGETReservedStockIdSkuRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReservedStockIdSkuExecute(r) } /* -GETPercentageDiscountPromotionIdSkuList Retrieve the sku list associated to the percentage discount promotion +GETReservedStockIdSku Retrieve the sku associated to the reserved stock -Retrieve the sku list associated to the percentage discount promotion +Retrieve the sku associated to the reserved stock @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param percentageDiscountPromotionId The resource's id - @return HasOneApiGETPercentageDiscountPromotionIdSkuListRequest + @param reservedStockId The resource's id + @return HasOneApiGETReservedStockIdSkuRequest */ -func (a *HasOneApiService) GETPercentageDiscountPromotionIdSkuList(ctx context.Context, percentageDiscountPromotionId interface{}) HasOneApiGETPercentageDiscountPromotionIdSkuListRequest { - return HasOneApiGETPercentageDiscountPromotionIdSkuListRequest{ - ApiService: a, - ctx: ctx, - percentageDiscountPromotionId: percentageDiscountPromotionId, +func (a *HasOneApiService) GETReservedStockIdSku(ctx context.Context, reservedStockId interface{}) HasOneApiGETReservedStockIdSkuRequest { + return HasOneApiGETReservedStockIdSkuRequest{ + ApiService: a, + ctx: ctx, + reservedStockId: reservedStockId, } } // Execute executes the request -func (a *HasOneApiService) GETPercentageDiscountPromotionIdSkuListExecute(r HasOneApiGETPercentageDiscountPromotionIdSkuListRequest) (*http.Response, error) { +func (a *HasOneApiService) GETReservedStockIdSkuExecute(r HasOneApiGETReservedStockIdSkuRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPercentageDiscountPromotionIdSkuList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETReservedStockIdSku") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/sku_list" - localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + localVarPath := localBasePath + "/reserved_stocks/{reservedStockId}/sku" + localVarPath = strings.Replace(localVarPath, "{"+"reservedStockId"+"}", url.PathEscape(parameterValueToString(r.reservedStockId, "reservedStockId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9591,48 +13731,48 @@ func (a *HasOneApiService) GETPercentageDiscountPromotionIdSkuListExecute(r HasO return localVarHTTPResponse, nil } -type HasOneApiGETPercentageDiscountPromotionIdSkuListPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - percentageDiscountPromotionId interface{} +type HasOneApiGETReservedStockIdStockItemRequest struct { + ctx context.Context + ApiService *HasOneApiService + reservedStockId interface{} } -func (r HasOneApiGETPercentageDiscountPromotionIdSkuListPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPercentageDiscountPromotionIdSkuListPromotionRuleExecute(r) +func (r HasOneApiGETReservedStockIdStockItemRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReservedStockIdStockItemExecute(r) } /* -GETPercentageDiscountPromotionIdSkuListPromotionRule Retrieve the sku list promotion rule associated to the percentage discount promotion +GETReservedStockIdStockItem Retrieve the stock item associated to the reserved stock -Retrieve the sku list promotion rule associated to the percentage discount promotion +Retrieve the stock item associated to the reserved stock @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param percentageDiscountPromotionId The resource's id - @return HasOneApiGETPercentageDiscountPromotionIdSkuListPromotionRuleRequest + @param reservedStockId The resource's id + @return HasOneApiGETReservedStockIdStockItemRequest */ -func (a *HasOneApiService) GETPercentageDiscountPromotionIdSkuListPromotionRule(ctx context.Context, percentageDiscountPromotionId interface{}) HasOneApiGETPercentageDiscountPromotionIdSkuListPromotionRuleRequest { - return HasOneApiGETPercentageDiscountPromotionIdSkuListPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - percentageDiscountPromotionId: percentageDiscountPromotionId, +func (a *HasOneApiService) GETReservedStockIdStockItem(ctx context.Context, reservedStockId interface{}) HasOneApiGETReservedStockIdStockItemRequest { + return HasOneApiGETReservedStockIdStockItemRequest{ + ApiService: a, + ctx: ctx, + reservedStockId: reservedStockId, } } // Execute executes the request -func (a *HasOneApiService) GETPercentageDiscountPromotionIdSkuListPromotionRuleExecute(r HasOneApiGETPercentageDiscountPromotionIdSkuListPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETReservedStockIdStockItemExecute(r HasOneApiGETReservedStockIdStockItemRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPercentageDiscountPromotionIdSkuListPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETReservedStockIdStockItem") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/sku_list_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + localVarPath := localBasePath + "/reserved_stocks/{reservedStockId}/stock_item" + localVarPath = strings.Replace(localVarPath, "{"+"reservedStockId"+"}", url.PathEscape(parameterValueToString(r.reservedStockId, "reservedStockId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9683,48 +13823,48 @@ func (a *HasOneApiService) GETPercentageDiscountPromotionIdSkuListPromotionRuleE return localVarHTTPResponse, nil } -type HasOneApiGETPriceFrequencyTierIdPriceRequest struct { - ctx context.Context - ApiService *HasOneApiService - priceFrequencyTierId interface{} +type HasOneApiGETReturnIdCustomerRequest struct { + ctx context.Context + ApiService *HasOneApiService + returnId interface{} } -func (r HasOneApiGETPriceFrequencyTierIdPriceRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPriceFrequencyTierIdPriceExecute(r) +func (r HasOneApiGETReturnIdCustomerRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnIdCustomerExecute(r) } /* -GETPriceFrequencyTierIdPrice Retrieve the price associated to the price frequency tier +GETReturnIdCustomer Retrieve the customer associated to the return -Retrieve the price associated to the price frequency tier +Retrieve the customer associated to the return @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param priceFrequencyTierId The resource's id - @return HasOneApiGETPriceFrequencyTierIdPriceRequest + @param returnId The resource's id + @return HasOneApiGETReturnIdCustomerRequest */ -func (a *HasOneApiService) GETPriceFrequencyTierIdPrice(ctx context.Context, priceFrequencyTierId interface{}) HasOneApiGETPriceFrequencyTierIdPriceRequest { - return HasOneApiGETPriceFrequencyTierIdPriceRequest{ - ApiService: a, - ctx: ctx, - priceFrequencyTierId: priceFrequencyTierId, +func (a *HasOneApiService) GETReturnIdCustomer(ctx context.Context, returnId interface{}) HasOneApiGETReturnIdCustomerRequest { + return HasOneApiGETReturnIdCustomerRequest{ + ApiService: a, + ctx: ctx, + returnId: returnId, } } // Execute executes the request -func (a *HasOneApiService) GETPriceFrequencyTierIdPriceExecute(r HasOneApiGETPriceFrequencyTierIdPriceRequest) (*http.Response, error) { +func (a *HasOneApiService) GETReturnIdCustomerExecute(r HasOneApiGETReturnIdCustomerRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPriceFrequencyTierIdPrice") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETReturnIdCustomer") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/price_frequency_tiers/{priceFrequencyTierId}/price" - localVarPath = strings.Replace(localVarPath, "{"+"priceFrequencyTierId"+"}", url.PathEscape(parameterValueToString(r.priceFrequencyTierId, "priceFrequencyTierId")), -1) + localVarPath := localBasePath + "/returns/{returnId}/customer" + localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9775,48 +13915,48 @@ func (a *HasOneApiService) GETPriceFrequencyTierIdPriceExecute(r HasOneApiGETPri return localVarHTTPResponse, nil } -type HasOneApiGETPriceIdPriceListRequest struct { +type HasOneApiGETReturnIdDestinationAddressRequest struct { ctx context.Context ApiService *HasOneApiService - priceId interface{} + returnId interface{} } -func (r HasOneApiGETPriceIdPriceListRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPriceIdPriceListExecute(r) +func (r HasOneApiGETReturnIdDestinationAddressRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnIdDestinationAddressExecute(r) } /* -GETPriceIdPriceList Retrieve the price list associated to the price +GETReturnIdDestinationAddress Retrieve the destination address associated to the return -Retrieve the price list associated to the price +Retrieve the destination address associated to the return @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param priceId The resource's id - @return HasOneApiGETPriceIdPriceListRequest + @param returnId The resource's id + @return HasOneApiGETReturnIdDestinationAddressRequest */ -func (a *HasOneApiService) GETPriceIdPriceList(ctx context.Context, priceId interface{}) HasOneApiGETPriceIdPriceListRequest { - return HasOneApiGETPriceIdPriceListRequest{ +func (a *HasOneApiService) GETReturnIdDestinationAddress(ctx context.Context, returnId interface{}) HasOneApiGETReturnIdDestinationAddressRequest { + return HasOneApiGETReturnIdDestinationAddressRequest{ ApiService: a, ctx: ctx, - priceId: priceId, + returnId: returnId, } } // Execute executes the request -func (a *HasOneApiService) GETPriceIdPriceListExecute(r HasOneApiGETPriceIdPriceListRequest) (*http.Response, error) { +func (a *HasOneApiService) GETReturnIdDestinationAddressExecute(r HasOneApiGETReturnIdDestinationAddressRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPriceIdPriceList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETReturnIdDestinationAddress") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/prices/{priceId}/price_list" - localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) + localVarPath := localBasePath + "/returns/{returnId}/destination_address" + localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9867,48 +14007,48 @@ func (a *HasOneApiService) GETPriceIdPriceListExecute(r HasOneApiGETPriceIdPrice return localVarHTTPResponse, nil } -type HasOneApiGETPriceIdSkuRequest struct { +type HasOneApiGETReturnIdOrderRequest struct { ctx context.Context ApiService *HasOneApiService - priceId interface{} + returnId interface{} } -func (r HasOneApiGETPriceIdSkuRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPriceIdSkuExecute(r) +func (r HasOneApiGETReturnIdOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnIdOrderExecute(r) } /* -GETPriceIdSku Retrieve the sku associated to the price +GETReturnIdOrder Retrieve the order associated to the return -Retrieve the sku associated to the price +Retrieve the order associated to the return @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param priceId The resource's id - @return HasOneApiGETPriceIdSkuRequest + @param returnId The resource's id + @return HasOneApiGETReturnIdOrderRequest */ -func (a *HasOneApiService) GETPriceIdSku(ctx context.Context, priceId interface{}) HasOneApiGETPriceIdSkuRequest { - return HasOneApiGETPriceIdSkuRequest{ +func (a *HasOneApiService) GETReturnIdOrder(ctx context.Context, returnId interface{}) HasOneApiGETReturnIdOrderRequest { + return HasOneApiGETReturnIdOrderRequest{ ApiService: a, ctx: ctx, - priceId: priceId, + returnId: returnId, } } // Execute executes the request -func (a *HasOneApiService) GETPriceIdSkuExecute(r HasOneApiGETPriceIdSkuRequest) (*http.Response, error) { +func (a *HasOneApiService) GETReturnIdOrderExecute(r HasOneApiGETReturnIdOrderRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPriceIdSku") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETReturnIdOrder") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/prices/{priceId}/sku" - localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) + localVarPath := localBasePath + "/returns/{returnId}/order" + localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -9959,48 +14099,48 @@ func (a *HasOneApiService) GETPriceIdSkuExecute(r HasOneApiGETPriceIdSkuRequest) return localVarHTTPResponse, nil } -type HasOneApiGETPriceTierIdPriceRequest struct { - ctx context.Context - ApiService *HasOneApiService - priceTierId interface{} +type HasOneApiGETReturnIdOriginAddressRequest struct { + ctx context.Context + ApiService *HasOneApiService + returnId interface{} } -func (r HasOneApiGETPriceTierIdPriceRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPriceTierIdPriceExecute(r) +func (r HasOneApiGETReturnIdOriginAddressRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnIdOriginAddressExecute(r) } /* -GETPriceTierIdPrice Retrieve the price associated to the price tier +GETReturnIdOriginAddress Retrieve the origin address associated to the return -Retrieve the price associated to the price tier +Retrieve the origin address associated to the return - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param priceTierId The resource's id - @return HasOneApiGETPriceTierIdPriceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param returnId The resource's id + @return HasOneApiGETReturnIdOriginAddressRequest */ -func (a *HasOneApiService) GETPriceTierIdPrice(ctx context.Context, priceTierId interface{}) HasOneApiGETPriceTierIdPriceRequest { - return HasOneApiGETPriceTierIdPriceRequest{ - ApiService: a, - ctx: ctx, - priceTierId: priceTierId, +func (a *HasOneApiService) GETReturnIdOriginAddress(ctx context.Context, returnId interface{}) HasOneApiGETReturnIdOriginAddressRequest { + return HasOneApiGETReturnIdOriginAddressRequest{ + ApiService: a, + ctx: ctx, + returnId: returnId, } } // Execute executes the request -func (a *HasOneApiService) GETPriceTierIdPriceExecute(r HasOneApiGETPriceTierIdPriceRequest) (*http.Response, error) { +func (a *HasOneApiService) GETReturnIdOriginAddressExecute(r HasOneApiGETReturnIdOriginAddressRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPriceTierIdPrice") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETReturnIdOriginAddress") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/price_tiers/{priceTierId}/price" - localVarPath = strings.Replace(localVarPath, "{"+"priceTierId"+"}", url.PathEscape(parameterValueToString(r.priceTierId, "priceTierId")), -1) + localVarPath := localBasePath + "/returns/{returnId}/origin_address" + localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10051,48 +14191,48 @@ func (a *HasOneApiService) GETPriceTierIdPriceExecute(r HasOneApiGETPriceTierIdP return localVarHTTPResponse, nil } -type HasOneApiGETPriceVolumeTierIdPriceRequest struct { - ctx context.Context - ApiService *HasOneApiService - priceVolumeTierId interface{} +type HasOneApiGETReturnIdReferenceCaptureRequest struct { + ctx context.Context + ApiService *HasOneApiService + returnId interface{} } -func (r HasOneApiGETPriceVolumeTierIdPriceRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPriceVolumeTierIdPriceExecute(r) +func (r HasOneApiGETReturnIdReferenceCaptureRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnIdReferenceCaptureExecute(r) } /* -GETPriceVolumeTierIdPrice Retrieve the price associated to the price volume tier +GETReturnIdReferenceCapture Retrieve the reference capture associated to the return -Retrieve the price associated to the price volume tier +Retrieve the reference capture associated to the return @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param priceVolumeTierId The resource's id - @return HasOneApiGETPriceVolumeTierIdPriceRequest + @param returnId The resource's id + @return HasOneApiGETReturnIdReferenceCaptureRequest */ -func (a *HasOneApiService) GETPriceVolumeTierIdPrice(ctx context.Context, priceVolumeTierId interface{}) HasOneApiGETPriceVolumeTierIdPriceRequest { - return HasOneApiGETPriceVolumeTierIdPriceRequest{ - ApiService: a, - ctx: ctx, - priceVolumeTierId: priceVolumeTierId, +func (a *HasOneApiService) GETReturnIdReferenceCapture(ctx context.Context, returnId interface{}) HasOneApiGETReturnIdReferenceCaptureRequest { + return HasOneApiGETReturnIdReferenceCaptureRequest{ + ApiService: a, + ctx: ctx, + returnId: returnId, } } // Execute executes the request -func (a *HasOneApiService) GETPriceVolumeTierIdPriceExecute(r HasOneApiGETPriceVolumeTierIdPriceRequest) (*http.Response, error) { +func (a *HasOneApiService) GETReturnIdReferenceCaptureExecute(r HasOneApiGETReturnIdReferenceCaptureRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPriceVolumeTierIdPrice") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETReturnIdReferenceCapture") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/price_volume_tiers/{priceVolumeTierId}/price" - localVarPath = strings.Replace(localVarPath, "{"+"priceVolumeTierId"+"}", url.PathEscape(parameterValueToString(r.priceVolumeTierId, "priceVolumeTierId")), -1) + localVarPath := localBasePath + "/returns/{returnId}/reference_capture" + localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10143,48 +14283,48 @@ func (a *HasOneApiService) GETPriceVolumeTierIdPriceExecute(r HasOneApiGETPriceV return localVarHTTPResponse, nil } -type HasOneApiGETPromotionIdCouponCodesPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - promotionId interface{} +type HasOneApiGETReturnIdReferenceRefundRequest struct { + ctx context.Context + ApiService *HasOneApiService + returnId interface{} } -func (r HasOneApiGETPromotionIdCouponCodesPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPromotionIdCouponCodesPromotionRuleExecute(r) +func (r HasOneApiGETReturnIdReferenceRefundRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnIdReferenceRefundExecute(r) } /* -GETPromotionIdCouponCodesPromotionRule Retrieve the coupon codes promotion rule associated to the promotion +GETReturnIdReferenceRefund Retrieve the reference refund associated to the return -Retrieve the coupon codes promotion rule associated to the promotion +Retrieve the reference refund associated to the return @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param promotionId The resource's id - @return HasOneApiGETPromotionIdCouponCodesPromotionRuleRequest + @param returnId The resource's id + @return HasOneApiGETReturnIdReferenceRefundRequest */ -func (a *HasOneApiService) GETPromotionIdCouponCodesPromotionRule(ctx context.Context, promotionId interface{}) HasOneApiGETPromotionIdCouponCodesPromotionRuleRequest { - return HasOneApiGETPromotionIdCouponCodesPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - promotionId: promotionId, +func (a *HasOneApiService) GETReturnIdReferenceRefund(ctx context.Context, returnId interface{}) HasOneApiGETReturnIdReferenceRefundRequest { + return HasOneApiGETReturnIdReferenceRefundRequest{ + ApiService: a, + ctx: ctx, + returnId: returnId, } } // Execute executes the request -func (a *HasOneApiService) GETPromotionIdCouponCodesPromotionRuleExecute(r HasOneApiGETPromotionIdCouponCodesPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETReturnIdReferenceRefundExecute(r HasOneApiGETReturnIdReferenceRefundRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPromotionIdCouponCodesPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETReturnIdReferenceRefund") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/promotions/{promotionId}/coupon_codes_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) + localVarPath := localBasePath + "/returns/{returnId}/reference_refund" + localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10235,48 +14375,48 @@ func (a *HasOneApiService) GETPromotionIdCouponCodesPromotionRuleExecute(r HasOn return localVarHTTPResponse, nil } -type HasOneApiGETPromotionIdMarketRequest struct { - ctx context.Context - ApiService *HasOneApiService - promotionId interface{} +type HasOneApiGETReturnIdStockLocationRequest struct { + ctx context.Context + ApiService *HasOneApiService + returnId interface{} } -func (r HasOneApiGETPromotionIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPromotionIdMarketExecute(r) +func (r HasOneApiGETReturnIdStockLocationRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnIdStockLocationExecute(r) } /* -GETPromotionIdMarket Retrieve the market associated to the promotion +GETReturnIdStockLocation Retrieve the stock location associated to the return -Retrieve the market associated to the promotion +Retrieve the stock location associated to the return @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param promotionId The resource's id - @return HasOneApiGETPromotionIdMarketRequest + @param returnId The resource's id + @return HasOneApiGETReturnIdStockLocationRequest */ -func (a *HasOneApiService) GETPromotionIdMarket(ctx context.Context, promotionId interface{}) HasOneApiGETPromotionIdMarketRequest { - return HasOneApiGETPromotionIdMarketRequest{ - ApiService: a, - ctx: ctx, - promotionId: promotionId, +func (a *HasOneApiService) GETReturnIdStockLocation(ctx context.Context, returnId interface{}) HasOneApiGETReturnIdStockLocationRequest { + return HasOneApiGETReturnIdStockLocationRequest{ + ApiService: a, + ctx: ctx, + returnId: returnId, } } // Execute executes the request -func (a *HasOneApiService) GETPromotionIdMarketExecute(r HasOneApiGETPromotionIdMarketRequest) (*http.Response, error) { +func (a *HasOneApiService) GETReturnIdStockLocationExecute(r HasOneApiGETReturnIdStockLocationRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPromotionIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETReturnIdStockLocation") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/promotions/{promotionId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) + localVarPath := localBasePath + "/returns/{returnId}/stock_location" + localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10327,48 +14467,48 @@ func (a *HasOneApiService) GETPromotionIdMarketExecute(r HasOneApiGETPromotionId return localVarHTTPResponse, nil } -type HasOneApiGETPromotionIdOrderAmountPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - promotionId interface{} +type HasOneApiGETReturnLineItemIdLineItemRequest struct { + ctx context.Context + ApiService *HasOneApiService + returnLineItemId interface{} } -func (r HasOneApiGETPromotionIdOrderAmountPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPromotionIdOrderAmountPromotionRuleExecute(r) +func (r HasOneApiGETReturnLineItemIdLineItemRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnLineItemIdLineItemExecute(r) } /* -GETPromotionIdOrderAmountPromotionRule Retrieve the order amount promotion rule associated to the promotion +GETReturnLineItemIdLineItem Retrieve the line item associated to the return line item -Retrieve the order amount promotion rule associated to the promotion +Retrieve the line item associated to the return line item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param promotionId The resource's id - @return HasOneApiGETPromotionIdOrderAmountPromotionRuleRequest + @param returnLineItemId The resource's id + @return HasOneApiGETReturnLineItemIdLineItemRequest */ -func (a *HasOneApiService) GETPromotionIdOrderAmountPromotionRule(ctx context.Context, promotionId interface{}) HasOneApiGETPromotionIdOrderAmountPromotionRuleRequest { - return HasOneApiGETPromotionIdOrderAmountPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - promotionId: promotionId, +func (a *HasOneApiService) GETReturnLineItemIdLineItem(ctx context.Context, returnLineItemId interface{}) HasOneApiGETReturnLineItemIdLineItemRequest { + return HasOneApiGETReturnLineItemIdLineItemRequest{ + ApiService: a, + ctx: ctx, + returnLineItemId: returnLineItemId, } } // Execute executes the request -func (a *HasOneApiService) GETPromotionIdOrderAmountPromotionRuleExecute(r HasOneApiGETPromotionIdOrderAmountPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETReturnLineItemIdLineItemExecute(r HasOneApiGETReturnLineItemIdLineItemRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPromotionIdOrderAmountPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETReturnLineItemIdLineItem") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/promotions/{promotionId}/order_amount_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) + localVarPath := localBasePath + "/return_line_items/{returnLineItemId}/line_item" + localVarPath = strings.Replace(localVarPath, "{"+"returnLineItemId"+"}", url.PathEscape(parameterValueToString(r.returnLineItemId, "returnLineItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10419,48 +14559,48 @@ func (a *HasOneApiService) GETPromotionIdOrderAmountPromotionRuleExecute(r HasOn return localVarHTTPResponse, nil } -type HasOneApiGETPromotionIdSkuListPromotionRuleRequest struct { - ctx context.Context - ApiService *HasOneApiService - promotionId interface{} +type HasOneApiGETReturnLineItemIdReturnRequest struct { + ctx context.Context + ApiService *HasOneApiService + returnLineItemId interface{} } -func (r HasOneApiGETPromotionIdSkuListPromotionRuleRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPromotionIdSkuListPromotionRuleExecute(r) +func (r HasOneApiGETReturnLineItemIdReturnRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnLineItemIdReturnExecute(r) } /* -GETPromotionIdSkuListPromotionRule Retrieve the sku list promotion rule associated to the promotion +GETReturnLineItemIdReturn Retrieve the return associated to the return line item -Retrieve the sku list promotion rule associated to the promotion +Retrieve the return associated to the return line item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param promotionId The resource's id - @return HasOneApiGETPromotionIdSkuListPromotionRuleRequest + @param returnLineItemId The resource's id + @return HasOneApiGETReturnLineItemIdReturnRequest */ -func (a *HasOneApiService) GETPromotionIdSkuListPromotionRule(ctx context.Context, promotionId interface{}) HasOneApiGETPromotionIdSkuListPromotionRuleRequest { - return HasOneApiGETPromotionIdSkuListPromotionRuleRequest{ - ApiService: a, - ctx: ctx, - promotionId: promotionId, +func (a *HasOneApiService) GETReturnLineItemIdReturn(ctx context.Context, returnLineItemId interface{}) HasOneApiGETReturnLineItemIdReturnRequest { + return HasOneApiGETReturnLineItemIdReturnRequest{ + ApiService: a, + ctx: ctx, + returnLineItemId: returnLineItemId, } } // Execute executes the request -func (a *HasOneApiService) GETPromotionIdSkuListPromotionRuleExecute(r HasOneApiGETPromotionIdSkuListPromotionRuleRequest) (*http.Response, error) { +func (a *HasOneApiService) GETReturnLineItemIdReturnExecute(r HasOneApiGETReturnLineItemIdReturnRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETPromotionIdSkuListPromotionRule") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETReturnLineItemIdReturn") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/promotions/{promotionId}/sku_list_promotion_rule" - localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) + localVarPath := localBasePath + "/return_line_items/{returnLineItemId}/return" + localVarPath = strings.Replace(localVarPath, "{"+"returnLineItemId"+"}", url.PathEscape(parameterValueToString(r.returnLineItemId, "returnLineItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10511,48 +14651,48 @@ func (a *HasOneApiService) GETPromotionIdSkuListPromotionRuleExecute(r HasOneApi return localVarHTTPResponse, nil } -type HasOneApiGETRecurringOrderCopyIdOrderSubscriptionRequest struct { - ctx context.Context - ApiService *HasOneApiService - recurringOrderCopyId interface{} +type HasOneApiGETSatispayPaymentIdOrderRequest struct { + ctx context.Context + ApiService *HasOneApiService + satispayPaymentId interface{} } -func (r HasOneApiGETRecurringOrderCopyIdOrderSubscriptionRequest) Execute() (*http.Response, error) { - return r.ApiService.GETRecurringOrderCopyIdOrderSubscriptionExecute(r) +func (r HasOneApiGETSatispayPaymentIdOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSatispayPaymentIdOrderExecute(r) } /* -GETRecurringOrderCopyIdOrderSubscription Retrieve the order subscription associated to the recurring order copy +GETSatispayPaymentIdOrder Retrieve the order associated to the satispay payment -Retrieve the order subscription associated to the recurring order copy +Retrieve the order associated to the satispay payment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param recurringOrderCopyId The resource's id - @return HasOneApiGETRecurringOrderCopyIdOrderSubscriptionRequest + @param satispayPaymentId The resource's id + @return HasOneApiGETSatispayPaymentIdOrderRequest */ -func (a *HasOneApiService) GETRecurringOrderCopyIdOrderSubscription(ctx context.Context, recurringOrderCopyId interface{}) HasOneApiGETRecurringOrderCopyIdOrderSubscriptionRequest { - return HasOneApiGETRecurringOrderCopyIdOrderSubscriptionRequest{ - ApiService: a, - ctx: ctx, - recurringOrderCopyId: recurringOrderCopyId, +func (a *HasOneApiService) GETSatispayPaymentIdOrder(ctx context.Context, satispayPaymentId interface{}) HasOneApiGETSatispayPaymentIdOrderRequest { + return HasOneApiGETSatispayPaymentIdOrderRequest{ + ApiService: a, + ctx: ctx, + satispayPaymentId: satispayPaymentId, } } // Execute executes the request -func (a *HasOneApiService) GETRecurringOrderCopyIdOrderSubscriptionExecute(r HasOneApiGETRecurringOrderCopyIdOrderSubscriptionRequest) (*http.Response, error) { +func (a *HasOneApiService) GETSatispayPaymentIdOrderExecute(r HasOneApiGETSatispayPaymentIdOrderRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETRecurringOrderCopyIdOrderSubscription") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETSatispayPaymentIdOrder") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/recurring_order_copies/{recurringOrderCopyId}/order_subscription" - localVarPath = strings.Replace(localVarPath, "{"+"recurringOrderCopyId"+"}", url.PathEscape(parameterValueToString(r.recurringOrderCopyId, "recurringOrderCopyId")), -1) + localVarPath := localBasePath + "/satispay_payments/{satispayPaymentId}/order" + localVarPath = strings.Replace(localVarPath, "{"+"satispayPaymentId"+"}", url.PathEscape(parameterValueToString(r.satispayPaymentId, "satispayPaymentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10603,48 +14743,48 @@ func (a *HasOneApiService) GETRecurringOrderCopyIdOrderSubscriptionExecute(r Has return localVarHTTPResponse, nil } -type HasOneApiGETRecurringOrderCopyIdSourceOrderRequest struct { - ctx context.Context - ApiService *HasOneApiService - recurringOrderCopyId interface{} +type HasOneApiGETSatispayPaymentIdPaymentGatewayRequest struct { + ctx context.Context + ApiService *HasOneApiService + satispayPaymentId interface{} } -func (r HasOneApiGETRecurringOrderCopyIdSourceOrderRequest) Execute() (*http.Response, error) { - return r.ApiService.GETRecurringOrderCopyIdSourceOrderExecute(r) +func (r HasOneApiGETSatispayPaymentIdPaymentGatewayRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSatispayPaymentIdPaymentGatewayExecute(r) } /* -GETRecurringOrderCopyIdSourceOrder Retrieve the source order associated to the recurring order copy +GETSatispayPaymentIdPaymentGateway Retrieve the payment gateway associated to the satispay payment -Retrieve the source order associated to the recurring order copy +Retrieve the payment gateway associated to the satispay payment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param recurringOrderCopyId The resource's id - @return HasOneApiGETRecurringOrderCopyIdSourceOrderRequest + @param satispayPaymentId The resource's id + @return HasOneApiGETSatispayPaymentIdPaymentGatewayRequest */ -func (a *HasOneApiService) GETRecurringOrderCopyIdSourceOrder(ctx context.Context, recurringOrderCopyId interface{}) HasOneApiGETRecurringOrderCopyIdSourceOrderRequest { - return HasOneApiGETRecurringOrderCopyIdSourceOrderRequest{ - ApiService: a, - ctx: ctx, - recurringOrderCopyId: recurringOrderCopyId, +func (a *HasOneApiService) GETSatispayPaymentIdPaymentGateway(ctx context.Context, satispayPaymentId interface{}) HasOneApiGETSatispayPaymentIdPaymentGatewayRequest { + return HasOneApiGETSatispayPaymentIdPaymentGatewayRequest{ + ApiService: a, + ctx: ctx, + satispayPaymentId: satispayPaymentId, } } // Execute executes the request -func (a *HasOneApiService) GETRecurringOrderCopyIdSourceOrderExecute(r HasOneApiGETRecurringOrderCopyIdSourceOrderRequest) (*http.Response, error) { +func (a *HasOneApiService) GETSatispayPaymentIdPaymentGatewayExecute(r HasOneApiGETSatispayPaymentIdPaymentGatewayRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETRecurringOrderCopyIdSourceOrder") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETSatispayPaymentIdPaymentGateway") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/recurring_order_copies/{recurringOrderCopyId}/source_order" - localVarPath = strings.Replace(localVarPath, "{"+"recurringOrderCopyId"+"}", url.PathEscape(parameterValueToString(r.recurringOrderCopyId, "recurringOrderCopyId")), -1) + localVarPath := localBasePath + "/satispay_payments/{satispayPaymentId}/payment_gateway" + localVarPath = strings.Replace(localVarPath, "{"+"satispayPaymentId"+"}", url.PathEscape(parameterValueToString(r.satispayPaymentId, "satispayPaymentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10695,48 +14835,48 @@ func (a *HasOneApiService) GETRecurringOrderCopyIdSourceOrderExecute(r HasOneApi return localVarHTTPResponse, nil } -type HasOneApiGETRecurringOrderCopyIdTargetOrderRequest struct { - ctx context.Context - ApiService *HasOneApiService - recurringOrderCopyId interface{} +type HasOneApiGETShipmentIdDeliveryLeadTimeRequest struct { + ctx context.Context + ApiService *HasOneApiService + shipmentId interface{} } -func (r HasOneApiGETRecurringOrderCopyIdTargetOrderRequest) Execute() (*http.Response, error) { - return r.ApiService.GETRecurringOrderCopyIdTargetOrderExecute(r) +func (r HasOneApiGETShipmentIdDeliveryLeadTimeRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdDeliveryLeadTimeExecute(r) } /* -GETRecurringOrderCopyIdTargetOrder Retrieve the target order associated to the recurring order copy +GETShipmentIdDeliveryLeadTime Retrieve the delivery lead time associated to the shipment -Retrieve the target order associated to the recurring order copy +Retrieve the delivery lead time associated to the shipment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param recurringOrderCopyId The resource's id - @return HasOneApiGETRecurringOrderCopyIdTargetOrderRequest + @param shipmentId The resource's id + @return HasOneApiGETShipmentIdDeliveryLeadTimeRequest */ -func (a *HasOneApiService) GETRecurringOrderCopyIdTargetOrder(ctx context.Context, recurringOrderCopyId interface{}) HasOneApiGETRecurringOrderCopyIdTargetOrderRequest { - return HasOneApiGETRecurringOrderCopyIdTargetOrderRequest{ - ApiService: a, - ctx: ctx, - recurringOrderCopyId: recurringOrderCopyId, +func (a *HasOneApiService) GETShipmentIdDeliveryLeadTime(ctx context.Context, shipmentId interface{}) HasOneApiGETShipmentIdDeliveryLeadTimeRequest { + return HasOneApiGETShipmentIdDeliveryLeadTimeRequest{ + ApiService: a, + ctx: ctx, + shipmentId: shipmentId, } } // Execute executes the request -func (a *HasOneApiService) GETRecurringOrderCopyIdTargetOrderExecute(r HasOneApiGETRecurringOrderCopyIdTargetOrderRequest) (*http.Response, error) { +func (a *HasOneApiService) GETShipmentIdDeliveryLeadTimeExecute(r HasOneApiGETShipmentIdDeliveryLeadTimeRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETRecurringOrderCopyIdTargetOrder") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShipmentIdDeliveryLeadTime") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/recurring_order_copies/{recurringOrderCopyId}/target_order" - localVarPath = strings.Replace(localVarPath, "{"+"recurringOrderCopyId"+"}", url.PathEscape(parameterValueToString(r.recurringOrderCopyId, "recurringOrderCopyId")), -1) + localVarPath := localBasePath + "/shipments/{shipmentId}/delivery_lead_time" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10787,48 +14927,48 @@ func (a *HasOneApiService) GETRecurringOrderCopyIdTargetOrderExecute(r HasOneApi return localVarHTTPResponse, nil } -type HasOneApiGETRefundIdOrderRequest struct { +type HasOneApiGETShipmentIdInventoryStockLocationRequest struct { ctx context.Context ApiService *HasOneApiService - refundId interface{} + shipmentId interface{} } -func (r HasOneApiGETRefundIdOrderRequest) Execute() (*http.Response, error) { - return r.ApiService.GETRefundIdOrderExecute(r) +func (r HasOneApiGETShipmentIdInventoryStockLocationRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdInventoryStockLocationExecute(r) } /* -GETRefundIdOrder Retrieve the order associated to the refund +GETShipmentIdInventoryStockLocation Retrieve the inventory stock location associated to the shipment -Retrieve the order associated to the refund +Retrieve the inventory stock location associated to the shipment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param refundId The resource's id - @return HasOneApiGETRefundIdOrderRequest + @param shipmentId The resource's id + @return HasOneApiGETShipmentIdInventoryStockLocationRequest */ -func (a *HasOneApiService) GETRefundIdOrder(ctx context.Context, refundId interface{}) HasOneApiGETRefundIdOrderRequest { - return HasOneApiGETRefundIdOrderRequest{ +func (a *HasOneApiService) GETShipmentIdInventoryStockLocation(ctx context.Context, shipmentId interface{}) HasOneApiGETShipmentIdInventoryStockLocationRequest { + return HasOneApiGETShipmentIdInventoryStockLocationRequest{ ApiService: a, ctx: ctx, - refundId: refundId, + shipmentId: shipmentId, } } // Execute executes the request -func (a *HasOneApiService) GETRefundIdOrderExecute(r HasOneApiGETRefundIdOrderRequest) (*http.Response, error) { +func (a *HasOneApiService) GETShipmentIdInventoryStockLocationExecute(r HasOneApiGETShipmentIdInventoryStockLocationRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETRefundIdOrder") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShipmentIdInventoryStockLocation") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/refunds/{refundId}/order" - localVarPath = strings.Replace(localVarPath, "{"+"refundId"+"}", url.PathEscape(parameterValueToString(r.refundId, "refundId")), -1) + localVarPath := localBasePath + "/shipments/{shipmentId}/inventory_stock_location" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10879,48 +15019,48 @@ func (a *HasOneApiService) GETRefundIdOrderExecute(r HasOneApiGETRefundIdOrderRe return localVarHTTPResponse, nil } -type HasOneApiGETRefundIdReferenceCaptureRequest struct { +type HasOneApiGETShipmentIdOrderRequest struct { ctx context.Context ApiService *HasOneApiService - refundId interface{} + shipmentId interface{} } -func (r HasOneApiGETRefundIdReferenceCaptureRequest) Execute() (*http.Response, error) { - return r.ApiService.GETRefundIdReferenceCaptureExecute(r) +func (r HasOneApiGETShipmentIdOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdOrderExecute(r) } /* -GETRefundIdReferenceCapture Retrieve the reference capture associated to the refund +GETShipmentIdOrder Retrieve the order associated to the shipment -Retrieve the reference capture associated to the refund +Retrieve the order associated to the shipment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param refundId The resource's id - @return HasOneApiGETRefundIdReferenceCaptureRequest + @param shipmentId The resource's id + @return HasOneApiGETShipmentIdOrderRequest */ -func (a *HasOneApiService) GETRefundIdReferenceCapture(ctx context.Context, refundId interface{}) HasOneApiGETRefundIdReferenceCaptureRequest { - return HasOneApiGETRefundIdReferenceCaptureRequest{ +func (a *HasOneApiService) GETShipmentIdOrder(ctx context.Context, shipmentId interface{}) HasOneApiGETShipmentIdOrderRequest { + return HasOneApiGETShipmentIdOrderRequest{ ApiService: a, ctx: ctx, - refundId: refundId, + shipmentId: shipmentId, } } // Execute executes the request -func (a *HasOneApiService) GETRefundIdReferenceCaptureExecute(r HasOneApiGETRefundIdReferenceCaptureRequest) (*http.Response, error) { +func (a *HasOneApiService) GETShipmentIdOrderExecute(r HasOneApiGETShipmentIdOrderRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETRefundIdReferenceCapture") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShipmentIdOrder") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/refunds/{refundId}/reference_capture" - localVarPath = strings.Replace(localVarPath, "{"+"refundId"+"}", url.PathEscape(parameterValueToString(r.refundId, "refundId")), -1) + localVarPath := localBasePath + "/shipments/{shipmentId}/order" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -10971,48 +15111,48 @@ func (a *HasOneApiService) GETRefundIdReferenceCaptureExecute(r HasOneApiGETRefu return localVarHTTPResponse, nil } -type HasOneApiGETReturnIdCustomerRequest struct { +type HasOneApiGETShipmentIdOriginAddressRequest struct { ctx context.Context ApiService *HasOneApiService - returnId interface{} + shipmentId interface{} } -func (r HasOneApiGETReturnIdCustomerRequest) Execute() (*http.Response, error) { - return r.ApiService.GETReturnIdCustomerExecute(r) +func (r HasOneApiGETShipmentIdOriginAddressRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdOriginAddressExecute(r) } /* -GETReturnIdCustomer Retrieve the customer associated to the return +GETShipmentIdOriginAddress Retrieve the origin address associated to the shipment -Retrieve the customer associated to the return +Retrieve the origin address associated to the shipment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param returnId The resource's id - @return HasOneApiGETReturnIdCustomerRequest + @param shipmentId The resource's id + @return HasOneApiGETShipmentIdOriginAddressRequest */ -func (a *HasOneApiService) GETReturnIdCustomer(ctx context.Context, returnId interface{}) HasOneApiGETReturnIdCustomerRequest { - return HasOneApiGETReturnIdCustomerRequest{ +func (a *HasOneApiService) GETShipmentIdOriginAddress(ctx context.Context, shipmentId interface{}) HasOneApiGETShipmentIdOriginAddressRequest { + return HasOneApiGETShipmentIdOriginAddressRequest{ ApiService: a, ctx: ctx, - returnId: returnId, + shipmentId: shipmentId, } } // Execute executes the request -func (a *HasOneApiService) GETReturnIdCustomerExecute(r HasOneApiGETReturnIdCustomerRequest) (*http.Response, error) { +func (a *HasOneApiService) GETShipmentIdOriginAddressExecute(r HasOneApiGETShipmentIdOriginAddressRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETReturnIdCustomer") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShipmentIdOriginAddress") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/returns/{returnId}/customer" - localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) + localVarPath := localBasePath + "/shipments/{shipmentId}/origin_address" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11063,48 +15203,48 @@ func (a *HasOneApiService) GETReturnIdCustomerExecute(r HasOneApiGETReturnIdCust return localVarHTTPResponse, nil } -type HasOneApiGETReturnIdDestinationAddressRequest struct { +type HasOneApiGETShipmentIdShippingAddressRequest struct { ctx context.Context ApiService *HasOneApiService - returnId interface{} + shipmentId interface{} } -func (r HasOneApiGETReturnIdDestinationAddressRequest) Execute() (*http.Response, error) { - return r.ApiService.GETReturnIdDestinationAddressExecute(r) +func (r HasOneApiGETShipmentIdShippingAddressRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdShippingAddressExecute(r) } /* -GETReturnIdDestinationAddress Retrieve the destination address associated to the return +GETShipmentIdShippingAddress Retrieve the shipping address associated to the shipment -Retrieve the destination address associated to the return +Retrieve the shipping address associated to the shipment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param returnId The resource's id - @return HasOneApiGETReturnIdDestinationAddressRequest + @param shipmentId The resource's id + @return HasOneApiGETShipmentIdShippingAddressRequest */ -func (a *HasOneApiService) GETReturnIdDestinationAddress(ctx context.Context, returnId interface{}) HasOneApiGETReturnIdDestinationAddressRequest { - return HasOneApiGETReturnIdDestinationAddressRequest{ +func (a *HasOneApiService) GETShipmentIdShippingAddress(ctx context.Context, shipmentId interface{}) HasOneApiGETShipmentIdShippingAddressRequest { + return HasOneApiGETShipmentIdShippingAddressRequest{ ApiService: a, ctx: ctx, - returnId: returnId, + shipmentId: shipmentId, } } // Execute executes the request -func (a *HasOneApiService) GETReturnIdDestinationAddressExecute(r HasOneApiGETReturnIdDestinationAddressRequest) (*http.Response, error) { +func (a *HasOneApiService) GETShipmentIdShippingAddressExecute(r HasOneApiGETShipmentIdShippingAddressRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETReturnIdDestinationAddress") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShipmentIdShippingAddress") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/returns/{returnId}/destination_address" - localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) + localVarPath := localBasePath + "/shipments/{shipmentId}/shipping_address" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11155,48 +15295,48 @@ func (a *HasOneApiService) GETReturnIdDestinationAddressExecute(r HasOneApiGETRe return localVarHTTPResponse, nil } -type HasOneApiGETReturnIdOrderRequest struct { +type HasOneApiGETShipmentIdShippingCategoryRequest struct { ctx context.Context ApiService *HasOneApiService - returnId interface{} + shipmentId interface{} } -func (r HasOneApiGETReturnIdOrderRequest) Execute() (*http.Response, error) { - return r.ApiService.GETReturnIdOrderExecute(r) +func (r HasOneApiGETShipmentIdShippingCategoryRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdShippingCategoryExecute(r) } /* -GETReturnIdOrder Retrieve the order associated to the return +GETShipmentIdShippingCategory Retrieve the shipping category associated to the shipment -Retrieve the order associated to the return +Retrieve the shipping category associated to the shipment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param returnId The resource's id - @return HasOneApiGETReturnIdOrderRequest + @param shipmentId The resource's id + @return HasOneApiGETShipmentIdShippingCategoryRequest */ -func (a *HasOneApiService) GETReturnIdOrder(ctx context.Context, returnId interface{}) HasOneApiGETReturnIdOrderRequest { - return HasOneApiGETReturnIdOrderRequest{ +func (a *HasOneApiService) GETShipmentIdShippingCategory(ctx context.Context, shipmentId interface{}) HasOneApiGETShipmentIdShippingCategoryRequest { + return HasOneApiGETShipmentIdShippingCategoryRequest{ ApiService: a, ctx: ctx, - returnId: returnId, + shipmentId: shipmentId, } } // Execute executes the request -func (a *HasOneApiService) GETReturnIdOrderExecute(r HasOneApiGETReturnIdOrderRequest) (*http.Response, error) { +func (a *HasOneApiService) GETShipmentIdShippingCategoryExecute(r HasOneApiGETShipmentIdShippingCategoryRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETReturnIdOrder") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShipmentIdShippingCategory") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/returns/{returnId}/order" - localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) + localVarPath := localBasePath + "/shipments/{shipmentId}/shipping_category" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11247,48 +15387,48 @@ func (a *HasOneApiService) GETReturnIdOrderExecute(r HasOneApiGETReturnIdOrderRe return localVarHTTPResponse, nil } -type HasOneApiGETReturnIdOriginAddressRequest struct { +type HasOneApiGETShipmentIdShippingMethodRequest struct { ctx context.Context ApiService *HasOneApiService - returnId interface{} + shipmentId interface{} } -func (r HasOneApiGETReturnIdOriginAddressRequest) Execute() (*http.Response, error) { - return r.ApiService.GETReturnIdOriginAddressExecute(r) +func (r HasOneApiGETShipmentIdShippingMethodRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdShippingMethodExecute(r) } /* -GETReturnIdOriginAddress Retrieve the origin address associated to the return +GETShipmentIdShippingMethod Retrieve the shipping method associated to the shipment -Retrieve the origin address associated to the return +Retrieve the shipping method associated to the shipment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param returnId The resource's id - @return HasOneApiGETReturnIdOriginAddressRequest + @param shipmentId The resource's id + @return HasOneApiGETShipmentIdShippingMethodRequest */ -func (a *HasOneApiService) GETReturnIdOriginAddress(ctx context.Context, returnId interface{}) HasOneApiGETReturnIdOriginAddressRequest { - return HasOneApiGETReturnIdOriginAddressRequest{ +func (a *HasOneApiService) GETShipmentIdShippingMethod(ctx context.Context, shipmentId interface{}) HasOneApiGETShipmentIdShippingMethodRequest { + return HasOneApiGETShipmentIdShippingMethodRequest{ ApiService: a, ctx: ctx, - returnId: returnId, + shipmentId: shipmentId, } } // Execute executes the request -func (a *HasOneApiService) GETReturnIdOriginAddressExecute(r HasOneApiGETReturnIdOriginAddressRequest) (*http.Response, error) { +func (a *HasOneApiService) GETShipmentIdShippingMethodExecute(r HasOneApiGETShipmentIdShippingMethodRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETReturnIdOriginAddress") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShipmentIdShippingMethod") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/returns/{returnId}/origin_address" - localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) + localVarPath := localBasePath + "/shipments/{shipmentId}/shipping_method" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11339,48 +15479,48 @@ func (a *HasOneApiService) GETReturnIdOriginAddressExecute(r HasOneApiGETReturnI return localVarHTTPResponse, nil } -type HasOneApiGETReturnIdStockLocationRequest struct { +type HasOneApiGETShipmentIdStockLocationRequest struct { ctx context.Context ApiService *HasOneApiService - returnId interface{} + shipmentId interface{} } -func (r HasOneApiGETReturnIdStockLocationRequest) Execute() (*http.Response, error) { - return r.ApiService.GETReturnIdStockLocationExecute(r) +func (r HasOneApiGETShipmentIdStockLocationRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdStockLocationExecute(r) } /* -GETReturnIdStockLocation Retrieve the stock location associated to the return +GETShipmentIdStockLocation Retrieve the stock location associated to the shipment -Retrieve the stock location associated to the return +Retrieve the stock location associated to the shipment @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param returnId The resource's id - @return HasOneApiGETReturnIdStockLocationRequest + @param shipmentId The resource's id + @return HasOneApiGETShipmentIdStockLocationRequest */ -func (a *HasOneApiService) GETReturnIdStockLocation(ctx context.Context, returnId interface{}) HasOneApiGETReturnIdStockLocationRequest { - return HasOneApiGETReturnIdStockLocationRequest{ +func (a *HasOneApiService) GETShipmentIdStockLocation(ctx context.Context, shipmentId interface{}) HasOneApiGETShipmentIdStockLocationRequest { + return HasOneApiGETShipmentIdStockLocationRequest{ ApiService: a, ctx: ctx, - returnId: returnId, + shipmentId: shipmentId, } } // Execute executes the request -func (a *HasOneApiService) GETReturnIdStockLocationExecute(r HasOneApiGETReturnIdStockLocationRequest) (*http.Response, error) { +func (a *HasOneApiService) GETShipmentIdStockLocationExecute(r HasOneApiGETShipmentIdStockLocationRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETReturnIdStockLocation") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShipmentIdStockLocation") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/returns/{returnId}/stock_location" - localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) + localVarPath := localBasePath + "/shipments/{shipmentId}/stock_location" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11431,48 +15571,48 @@ func (a *HasOneApiService) GETReturnIdStockLocationExecute(r HasOneApiGETReturnI return localVarHTTPResponse, nil } -type HasOneApiGETReturnLineItemIdLineItemRequest struct { +type HasOneApiGETShippingMethodIdDeliveryLeadTimeForShipmentRequest struct { ctx context.Context ApiService *HasOneApiService - returnLineItemId interface{} + shippingMethodId interface{} } -func (r HasOneApiGETReturnLineItemIdLineItemRequest) Execute() (*http.Response, error) { - return r.ApiService.GETReturnLineItemIdLineItemExecute(r) +func (r HasOneApiGETShippingMethodIdDeliveryLeadTimeForShipmentRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingMethodIdDeliveryLeadTimeForShipmentExecute(r) } /* -GETReturnLineItemIdLineItem Retrieve the line item associated to the return line item +GETShippingMethodIdDeliveryLeadTimeForShipment Retrieve the delivery lead time for shipment associated to the shipping method -Retrieve the line item associated to the return line item +Retrieve the delivery lead time for shipment associated to the shipping method @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param returnLineItemId The resource's id - @return HasOneApiGETReturnLineItemIdLineItemRequest + @param shippingMethodId The resource's id + @return HasOneApiGETShippingMethodIdDeliveryLeadTimeForShipmentRequest */ -func (a *HasOneApiService) GETReturnLineItemIdLineItem(ctx context.Context, returnLineItemId interface{}) HasOneApiGETReturnLineItemIdLineItemRequest { - return HasOneApiGETReturnLineItemIdLineItemRequest{ +func (a *HasOneApiService) GETShippingMethodIdDeliveryLeadTimeForShipment(ctx context.Context, shippingMethodId interface{}) HasOneApiGETShippingMethodIdDeliveryLeadTimeForShipmentRequest { + return HasOneApiGETShippingMethodIdDeliveryLeadTimeForShipmentRequest{ ApiService: a, ctx: ctx, - returnLineItemId: returnLineItemId, + shippingMethodId: shippingMethodId, } } // Execute executes the request -func (a *HasOneApiService) GETReturnLineItemIdLineItemExecute(r HasOneApiGETReturnLineItemIdLineItemRequest) (*http.Response, error) { +func (a *HasOneApiService) GETShippingMethodIdDeliveryLeadTimeForShipmentExecute(r HasOneApiGETShippingMethodIdDeliveryLeadTimeForShipmentRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETReturnLineItemIdLineItem") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShippingMethodIdDeliveryLeadTimeForShipment") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/return_line_items/{returnLineItemId}/line_item" - localVarPath = strings.Replace(localVarPath, "{"+"returnLineItemId"+"}", url.PathEscape(parameterValueToString(r.returnLineItemId, "returnLineItemId")), -1) + localVarPath := localBasePath + "/shipping_methods/{shippingMethodId}/delivery_lead_time_for_shipment" + localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodId, "shippingMethodId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11523,48 +15663,48 @@ func (a *HasOneApiService) GETReturnLineItemIdLineItemExecute(r HasOneApiGETRetu return localVarHTTPResponse, nil } -type HasOneApiGETReturnLineItemIdReturnRequest struct { +type HasOneApiGETShippingMethodIdMarketRequest struct { ctx context.Context ApiService *HasOneApiService - returnLineItemId interface{} + shippingMethodId interface{} } -func (r HasOneApiGETReturnLineItemIdReturnRequest) Execute() (*http.Response, error) { - return r.ApiService.GETReturnLineItemIdReturnExecute(r) +func (r HasOneApiGETShippingMethodIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingMethodIdMarketExecute(r) } /* -GETReturnLineItemIdReturn Retrieve the return associated to the return line item +GETShippingMethodIdMarket Retrieve the market associated to the shipping method -Retrieve the return associated to the return line item +Retrieve the market associated to the shipping method @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param returnLineItemId The resource's id - @return HasOneApiGETReturnLineItemIdReturnRequest + @param shippingMethodId The resource's id + @return HasOneApiGETShippingMethodIdMarketRequest */ -func (a *HasOneApiService) GETReturnLineItemIdReturn(ctx context.Context, returnLineItemId interface{}) HasOneApiGETReturnLineItemIdReturnRequest { - return HasOneApiGETReturnLineItemIdReturnRequest{ +func (a *HasOneApiService) GETShippingMethodIdMarket(ctx context.Context, shippingMethodId interface{}) HasOneApiGETShippingMethodIdMarketRequest { + return HasOneApiGETShippingMethodIdMarketRequest{ ApiService: a, ctx: ctx, - returnLineItemId: returnLineItemId, + shippingMethodId: shippingMethodId, } } // Execute executes the request -func (a *HasOneApiService) GETReturnLineItemIdReturnExecute(r HasOneApiGETReturnLineItemIdReturnRequest) (*http.Response, error) { +func (a *HasOneApiService) GETShippingMethodIdMarketExecute(r HasOneApiGETShippingMethodIdMarketRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETReturnLineItemIdReturn") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShippingMethodIdMarket") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/return_line_items/{returnLineItemId}/return" - localVarPath = strings.Replace(localVarPath, "{"+"returnLineItemId"+"}", url.PathEscape(parameterValueToString(r.returnLineItemId, "returnLineItemId")), -1) + localVarPath := localBasePath + "/shipping_methods/{shippingMethodId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodId, "shippingMethodId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11615,48 +15755,48 @@ func (a *HasOneApiService) GETReturnLineItemIdReturnExecute(r HasOneApiGETReturn return localVarHTTPResponse, nil } -type HasOneApiGETSatispayPaymentIdOrderRequest struct { - ctx context.Context - ApiService *HasOneApiService - satispayPaymentId interface{} +type HasOneApiGETShippingMethodIdShippingCategoryRequest struct { + ctx context.Context + ApiService *HasOneApiService + shippingMethodId interface{} } -func (r HasOneApiGETSatispayPaymentIdOrderRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSatispayPaymentIdOrderExecute(r) +func (r HasOneApiGETShippingMethodIdShippingCategoryRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingMethodIdShippingCategoryExecute(r) } /* -GETSatispayPaymentIdOrder Retrieve the order associated to the satispay payment +GETShippingMethodIdShippingCategory Retrieve the shipping category associated to the shipping method -Retrieve the order associated to the satispay payment +Retrieve the shipping category associated to the shipping method @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param satispayPaymentId The resource's id - @return HasOneApiGETSatispayPaymentIdOrderRequest + @param shippingMethodId The resource's id + @return HasOneApiGETShippingMethodIdShippingCategoryRequest */ -func (a *HasOneApiService) GETSatispayPaymentIdOrder(ctx context.Context, satispayPaymentId interface{}) HasOneApiGETSatispayPaymentIdOrderRequest { - return HasOneApiGETSatispayPaymentIdOrderRequest{ - ApiService: a, - ctx: ctx, - satispayPaymentId: satispayPaymentId, +func (a *HasOneApiService) GETShippingMethodIdShippingCategory(ctx context.Context, shippingMethodId interface{}) HasOneApiGETShippingMethodIdShippingCategoryRequest { + return HasOneApiGETShippingMethodIdShippingCategoryRequest{ + ApiService: a, + ctx: ctx, + shippingMethodId: shippingMethodId, } } // Execute executes the request -func (a *HasOneApiService) GETSatispayPaymentIdOrderExecute(r HasOneApiGETSatispayPaymentIdOrderRequest) (*http.Response, error) { +func (a *HasOneApiService) GETShippingMethodIdShippingCategoryExecute(r HasOneApiGETShippingMethodIdShippingCategoryRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETSatispayPaymentIdOrder") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShippingMethodIdShippingCategory") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/satispay_payments/{satispayPaymentId}/order" - localVarPath = strings.Replace(localVarPath, "{"+"satispayPaymentId"+"}", url.PathEscape(parameterValueToString(r.satispayPaymentId, "satispayPaymentId")), -1) + localVarPath := localBasePath + "/shipping_methods/{shippingMethodId}/shipping_category" + localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodId, "shippingMethodId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11707,48 +15847,48 @@ func (a *HasOneApiService) GETSatispayPaymentIdOrderExecute(r HasOneApiGETSatisp return localVarHTTPResponse, nil } -type HasOneApiGETSatispayPaymentIdPaymentGatewayRequest struct { - ctx context.Context - ApiService *HasOneApiService - satispayPaymentId interface{} +type HasOneApiGETShippingMethodIdShippingZoneRequest struct { + ctx context.Context + ApiService *HasOneApiService + shippingMethodId interface{} } -func (r HasOneApiGETSatispayPaymentIdPaymentGatewayRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSatispayPaymentIdPaymentGatewayExecute(r) +func (r HasOneApiGETShippingMethodIdShippingZoneRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingMethodIdShippingZoneExecute(r) } /* -GETSatispayPaymentIdPaymentGateway Retrieve the payment gateway associated to the satispay payment +GETShippingMethodIdShippingZone Retrieve the shipping zone associated to the shipping method -Retrieve the payment gateway associated to the satispay payment +Retrieve the shipping zone associated to the shipping method @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param satispayPaymentId The resource's id - @return HasOneApiGETSatispayPaymentIdPaymentGatewayRequest + @param shippingMethodId The resource's id + @return HasOneApiGETShippingMethodIdShippingZoneRequest */ -func (a *HasOneApiService) GETSatispayPaymentIdPaymentGateway(ctx context.Context, satispayPaymentId interface{}) HasOneApiGETSatispayPaymentIdPaymentGatewayRequest { - return HasOneApiGETSatispayPaymentIdPaymentGatewayRequest{ - ApiService: a, - ctx: ctx, - satispayPaymentId: satispayPaymentId, +func (a *HasOneApiService) GETShippingMethodIdShippingZone(ctx context.Context, shippingMethodId interface{}) HasOneApiGETShippingMethodIdShippingZoneRequest { + return HasOneApiGETShippingMethodIdShippingZoneRequest{ + ApiService: a, + ctx: ctx, + shippingMethodId: shippingMethodId, } } // Execute executes the request -func (a *HasOneApiService) GETSatispayPaymentIdPaymentGatewayExecute(r HasOneApiGETSatispayPaymentIdPaymentGatewayRequest) (*http.Response, error) { +func (a *HasOneApiService) GETShippingMethodIdShippingZoneExecute(r HasOneApiGETShippingMethodIdShippingZoneRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETSatispayPaymentIdPaymentGateway") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShippingMethodIdShippingZone") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/satispay_payments/{satispayPaymentId}/payment_gateway" - localVarPath = strings.Replace(localVarPath, "{"+"satispayPaymentId"+"}", url.PathEscape(parameterValueToString(r.satispayPaymentId, "satispayPaymentId")), -1) + localVarPath := localBasePath + "/shipping_methods/{shippingMethodId}/shipping_zone" + localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodId, "shippingMethodId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11799,48 +15939,48 @@ func (a *HasOneApiService) GETSatispayPaymentIdPaymentGatewayExecute(r HasOneApi return localVarHTTPResponse, nil } -type HasOneApiGETShipmentIdDeliveryLeadTimeRequest struct { - ctx context.Context - ApiService *HasOneApiService - shipmentId interface{} +type HasOneApiGETShippingMethodIdStockLocationRequest struct { + ctx context.Context + ApiService *HasOneApiService + shippingMethodId interface{} } -func (r HasOneApiGETShipmentIdDeliveryLeadTimeRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShipmentIdDeliveryLeadTimeExecute(r) +func (r HasOneApiGETShippingMethodIdStockLocationRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingMethodIdStockLocationExecute(r) } /* -GETShipmentIdDeliveryLeadTime Retrieve the delivery lead time associated to the shipment +GETShippingMethodIdStockLocation Retrieve the stock location associated to the shipping method -Retrieve the delivery lead time associated to the shipment +Retrieve the stock location associated to the shipping method @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shipmentId The resource's id - @return HasOneApiGETShipmentIdDeliveryLeadTimeRequest + @param shippingMethodId The resource's id + @return HasOneApiGETShippingMethodIdStockLocationRequest */ -func (a *HasOneApiService) GETShipmentIdDeliveryLeadTime(ctx context.Context, shipmentId interface{}) HasOneApiGETShipmentIdDeliveryLeadTimeRequest { - return HasOneApiGETShipmentIdDeliveryLeadTimeRequest{ - ApiService: a, - ctx: ctx, - shipmentId: shipmentId, +func (a *HasOneApiService) GETShippingMethodIdStockLocation(ctx context.Context, shippingMethodId interface{}) HasOneApiGETShippingMethodIdStockLocationRequest { + return HasOneApiGETShippingMethodIdStockLocationRequest{ + ApiService: a, + ctx: ctx, + shippingMethodId: shippingMethodId, } } // Execute executes the request -func (a *HasOneApiService) GETShipmentIdDeliveryLeadTimeExecute(r HasOneApiGETShipmentIdDeliveryLeadTimeRequest) (*http.Response, error) { +func (a *HasOneApiService) GETShippingMethodIdStockLocationExecute(r HasOneApiGETShippingMethodIdStockLocationRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShipmentIdDeliveryLeadTime") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShippingMethodIdStockLocation") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipments/{shipmentId}/delivery_lead_time" - localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + localVarPath := localBasePath + "/shipping_methods/{shippingMethodId}/stock_location" + localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodId, "shippingMethodId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11891,48 +16031,48 @@ func (a *HasOneApiService) GETShipmentIdDeliveryLeadTimeExecute(r HasOneApiGETSh return localVarHTTPResponse, nil } -type HasOneApiGETShipmentIdOrderRequest struct { - ctx context.Context - ApiService *HasOneApiService - shipmentId interface{} +type HasOneApiGETShippingMethodTierIdShippingMethodRequest struct { + ctx context.Context + ApiService *HasOneApiService + shippingMethodTierId interface{} } -func (r HasOneApiGETShipmentIdOrderRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShipmentIdOrderExecute(r) +func (r HasOneApiGETShippingMethodTierIdShippingMethodRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingMethodTierIdShippingMethodExecute(r) } /* -GETShipmentIdOrder Retrieve the order associated to the shipment +GETShippingMethodTierIdShippingMethod Retrieve the shipping method associated to the shipping method tier -Retrieve the order associated to the shipment +Retrieve the shipping method associated to the shipping method tier @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shipmentId The resource's id - @return HasOneApiGETShipmentIdOrderRequest + @param shippingMethodTierId The resource's id + @return HasOneApiGETShippingMethodTierIdShippingMethodRequest */ -func (a *HasOneApiService) GETShipmentIdOrder(ctx context.Context, shipmentId interface{}) HasOneApiGETShipmentIdOrderRequest { - return HasOneApiGETShipmentIdOrderRequest{ - ApiService: a, - ctx: ctx, - shipmentId: shipmentId, +func (a *HasOneApiService) GETShippingMethodTierIdShippingMethod(ctx context.Context, shippingMethodTierId interface{}) HasOneApiGETShippingMethodTierIdShippingMethodRequest { + return HasOneApiGETShippingMethodTierIdShippingMethodRequest{ + ApiService: a, + ctx: ctx, + shippingMethodTierId: shippingMethodTierId, } } // Execute executes the request -func (a *HasOneApiService) GETShipmentIdOrderExecute(r HasOneApiGETShipmentIdOrderRequest) (*http.Response, error) { +func (a *HasOneApiService) GETShippingMethodTierIdShippingMethodExecute(r HasOneApiGETShippingMethodTierIdShippingMethodRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShipmentIdOrder") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShippingMethodTierIdShippingMethod") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipments/{shipmentId}/order" - localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + localVarPath := localBasePath + "/shipping_method_tiers/{shippingMethodTierId}/shipping_method" + localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodTierId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodTierId, "shippingMethodTierId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -11983,48 +16123,48 @@ func (a *HasOneApiService) GETShipmentIdOrderExecute(r HasOneApiGETShipmentIdOrd return localVarHTTPResponse, nil } -type HasOneApiGETShipmentIdOriginAddressRequest struct { - ctx context.Context - ApiService *HasOneApiService - shipmentId interface{} +type HasOneApiGETShippingWeightTierIdShippingMethodRequest struct { + ctx context.Context + ApiService *HasOneApiService + shippingWeightTierId interface{} } -func (r HasOneApiGETShipmentIdOriginAddressRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShipmentIdOriginAddressExecute(r) +func (r HasOneApiGETShippingWeightTierIdShippingMethodRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingWeightTierIdShippingMethodExecute(r) } /* -GETShipmentIdOriginAddress Retrieve the origin address associated to the shipment +GETShippingWeightTierIdShippingMethod Retrieve the shipping method associated to the shipping weight tier -Retrieve the origin address associated to the shipment +Retrieve the shipping method associated to the shipping weight tier @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shipmentId The resource's id - @return HasOneApiGETShipmentIdOriginAddressRequest + @param shippingWeightTierId The resource's id + @return HasOneApiGETShippingWeightTierIdShippingMethodRequest */ -func (a *HasOneApiService) GETShipmentIdOriginAddress(ctx context.Context, shipmentId interface{}) HasOneApiGETShipmentIdOriginAddressRequest { - return HasOneApiGETShipmentIdOriginAddressRequest{ - ApiService: a, - ctx: ctx, - shipmentId: shipmentId, +func (a *HasOneApiService) GETShippingWeightTierIdShippingMethod(ctx context.Context, shippingWeightTierId interface{}) HasOneApiGETShippingWeightTierIdShippingMethodRequest { + return HasOneApiGETShippingWeightTierIdShippingMethodRequest{ + ApiService: a, + ctx: ctx, + shippingWeightTierId: shippingWeightTierId, } } // Execute executes the request -func (a *HasOneApiService) GETShipmentIdOriginAddressExecute(r HasOneApiGETShipmentIdOriginAddressRequest) (*http.Response, error) { +func (a *HasOneApiService) GETShippingWeightTierIdShippingMethodExecute(r HasOneApiGETShippingWeightTierIdShippingMethodRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShipmentIdOriginAddress") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShippingWeightTierIdShippingMethod") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipments/{shipmentId}/origin_address" - localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + localVarPath := localBasePath + "/shipping_weight_tiers/{shippingWeightTierId}/shipping_method" + localVarPath = strings.Replace(localVarPath, "{"+"shippingWeightTierId"+"}", url.PathEscape(parameterValueToString(r.shippingWeightTierId, "shippingWeightTierId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12075,48 +16215,48 @@ func (a *HasOneApiService) GETShipmentIdOriginAddressExecute(r HasOneApiGETShipm return localVarHTTPResponse, nil } -type HasOneApiGETShipmentIdShippingAddressRequest struct { +type HasOneApiGETSkuIdJwtCustomerRequest struct { ctx context.Context ApiService *HasOneApiService - shipmentId interface{} + skuId interface{} } -func (r HasOneApiGETShipmentIdShippingAddressRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShipmentIdShippingAddressExecute(r) +func (r HasOneApiGETSkuIdJwtCustomerRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdJwtCustomerExecute(r) } /* -GETShipmentIdShippingAddress Retrieve the shipping address associated to the shipment +GETSkuIdJwtCustomer Retrieve the jwt customer associated to the SKU -Retrieve the shipping address associated to the shipment +Retrieve the jwt customer associated to the SKU @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shipmentId The resource's id - @return HasOneApiGETShipmentIdShippingAddressRequest + @param skuId The resource's id + @return HasOneApiGETSkuIdJwtCustomerRequest */ -func (a *HasOneApiService) GETShipmentIdShippingAddress(ctx context.Context, shipmentId interface{}) HasOneApiGETShipmentIdShippingAddressRequest { - return HasOneApiGETShipmentIdShippingAddressRequest{ +func (a *HasOneApiService) GETSkuIdJwtCustomer(ctx context.Context, skuId interface{}) HasOneApiGETSkuIdJwtCustomerRequest { + return HasOneApiGETSkuIdJwtCustomerRequest{ ApiService: a, ctx: ctx, - shipmentId: shipmentId, + skuId: skuId, } } // Execute executes the request -func (a *HasOneApiService) GETShipmentIdShippingAddressExecute(r HasOneApiGETShipmentIdShippingAddressRequest) (*http.Response, error) { +func (a *HasOneApiService) GETSkuIdJwtCustomerExecute(r HasOneApiGETSkuIdJwtCustomerRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShipmentIdShippingAddress") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETSkuIdJwtCustomer") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipments/{shipmentId}/shipping_address" - localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + localVarPath := localBasePath + "/skus/{skuId}/jwt_customer" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12167,48 +16307,48 @@ func (a *HasOneApiService) GETShipmentIdShippingAddressExecute(r HasOneApiGETShi return localVarHTTPResponse, nil } -type HasOneApiGETShipmentIdShippingCategoryRequest struct { +type HasOneApiGETSkuIdShippingCategoryRequest struct { ctx context.Context ApiService *HasOneApiService - shipmentId interface{} + skuId interface{} } -func (r HasOneApiGETShipmentIdShippingCategoryRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShipmentIdShippingCategoryExecute(r) +func (r HasOneApiGETSkuIdShippingCategoryRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdShippingCategoryExecute(r) } /* -GETShipmentIdShippingCategory Retrieve the shipping category associated to the shipment +GETSkuIdShippingCategory Retrieve the shipping category associated to the SKU -Retrieve the shipping category associated to the shipment +Retrieve the shipping category associated to the SKU @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shipmentId The resource's id - @return HasOneApiGETShipmentIdShippingCategoryRequest + @param skuId The resource's id + @return HasOneApiGETSkuIdShippingCategoryRequest */ -func (a *HasOneApiService) GETShipmentIdShippingCategory(ctx context.Context, shipmentId interface{}) HasOneApiGETShipmentIdShippingCategoryRequest { - return HasOneApiGETShipmentIdShippingCategoryRequest{ +func (a *HasOneApiService) GETSkuIdShippingCategory(ctx context.Context, skuId interface{}) HasOneApiGETSkuIdShippingCategoryRequest { + return HasOneApiGETSkuIdShippingCategoryRequest{ ApiService: a, ctx: ctx, - shipmentId: shipmentId, + skuId: skuId, } } // Execute executes the request -func (a *HasOneApiService) GETShipmentIdShippingCategoryExecute(r HasOneApiGETShipmentIdShippingCategoryRequest) (*http.Response, error) { +func (a *HasOneApiService) GETSkuIdShippingCategoryExecute(r HasOneApiGETSkuIdShippingCategoryRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShipmentIdShippingCategory") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETSkuIdShippingCategory") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipments/{shipmentId}/shipping_category" - localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + localVarPath := localBasePath + "/skus/{skuId}/shipping_category" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12259,48 +16399,48 @@ func (a *HasOneApiService) GETShipmentIdShippingCategoryExecute(r HasOneApiGETSh return localVarHTTPResponse, nil } -type HasOneApiGETShipmentIdShippingMethodRequest struct { +type HasOneApiGETSkuListIdCustomerRequest struct { ctx context.Context ApiService *HasOneApiService - shipmentId interface{} + skuListId interface{} } -func (r HasOneApiGETShipmentIdShippingMethodRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShipmentIdShippingMethodExecute(r) +func (r HasOneApiGETSkuListIdCustomerRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuListIdCustomerExecute(r) } /* -GETShipmentIdShippingMethod Retrieve the shipping method associated to the shipment +GETSkuListIdCustomer Retrieve the customer associated to the SKU list -Retrieve the shipping method associated to the shipment +Retrieve the customer associated to the SKU list @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shipmentId The resource's id - @return HasOneApiGETShipmentIdShippingMethodRequest + @param skuListId The resource's id + @return HasOneApiGETSkuListIdCustomerRequest */ -func (a *HasOneApiService) GETShipmentIdShippingMethod(ctx context.Context, shipmentId interface{}) HasOneApiGETShipmentIdShippingMethodRequest { - return HasOneApiGETShipmentIdShippingMethodRequest{ +func (a *HasOneApiService) GETSkuListIdCustomer(ctx context.Context, skuListId interface{}) HasOneApiGETSkuListIdCustomerRequest { + return HasOneApiGETSkuListIdCustomerRequest{ ApiService: a, ctx: ctx, - shipmentId: shipmentId, + skuListId: skuListId, } } // Execute executes the request -func (a *HasOneApiService) GETShipmentIdShippingMethodExecute(r HasOneApiGETShipmentIdShippingMethodRequest) (*http.Response, error) { +func (a *HasOneApiService) GETSkuListIdCustomerExecute(r HasOneApiGETSkuListIdCustomerRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShipmentIdShippingMethod") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETSkuListIdCustomer") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipments/{shipmentId}/shipping_method" - localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + localVarPath := localBasePath + "/sku_lists/{skuListId}/customer" + localVarPath = strings.Replace(localVarPath, "{"+"skuListId"+"}", url.PathEscape(parameterValueToString(r.skuListId, "skuListId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12351,48 +16491,48 @@ func (a *HasOneApiService) GETShipmentIdShippingMethodExecute(r HasOneApiGETShip return localVarHTTPResponse, nil } -type HasOneApiGETShipmentIdStockLocationRequest struct { - ctx context.Context - ApiService *HasOneApiService - shipmentId interface{} +type HasOneApiGETSkuListItemIdSkuRequest struct { + ctx context.Context + ApiService *HasOneApiService + skuListItemId interface{} } -func (r HasOneApiGETShipmentIdStockLocationRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShipmentIdStockLocationExecute(r) +func (r HasOneApiGETSkuListItemIdSkuRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuListItemIdSkuExecute(r) } /* -GETShipmentIdStockLocation Retrieve the stock location associated to the shipment +GETSkuListItemIdSku Retrieve the sku associated to the SKU list item -Retrieve the stock location associated to the shipment +Retrieve the sku associated to the SKU list item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shipmentId The resource's id - @return HasOneApiGETShipmentIdStockLocationRequest + @param skuListItemId The resource's id + @return HasOneApiGETSkuListItemIdSkuRequest */ -func (a *HasOneApiService) GETShipmentIdStockLocation(ctx context.Context, shipmentId interface{}) HasOneApiGETShipmentIdStockLocationRequest { - return HasOneApiGETShipmentIdStockLocationRequest{ - ApiService: a, - ctx: ctx, - shipmentId: shipmentId, +func (a *HasOneApiService) GETSkuListItemIdSku(ctx context.Context, skuListItemId interface{}) HasOneApiGETSkuListItemIdSkuRequest { + return HasOneApiGETSkuListItemIdSkuRequest{ + ApiService: a, + ctx: ctx, + skuListItemId: skuListItemId, } } // Execute executes the request -func (a *HasOneApiService) GETShipmentIdStockLocationExecute(r HasOneApiGETShipmentIdStockLocationRequest) (*http.Response, error) { +func (a *HasOneApiService) GETSkuListItemIdSkuExecute(r HasOneApiGETSkuListItemIdSkuRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShipmentIdStockLocation") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETSkuListItemIdSku") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipments/{shipmentId}/stock_location" - localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + localVarPath := localBasePath + "/sku_list_items/{skuListItemId}/sku" + localVarPath = strings.Replace(localVarPath, "{"+"skuListItemId"+"}", url.PathEscape(parameterValueToString(r.skuListItemId, "skuListItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12443,48 +16583,48 @@ func (a *HasOneApiService) GETShipmentIdStockLocationExecute(r HasOneApiGETShipm return localVarHTTPResponse, nil } -type HasOneApiGETShippingMethodIdDeliveryLeadTimeForShipmentRequest struct { - ctx context.Context - ApiService *HasOneApiService - shippingMethodId interface{} +type HasOneApiGETSkuListItemIdSkuListRequest struct { + ctx context.Context + ApiService *HasOneApiService + skuListItemId interface{} } -func (r HasOneApiGETShippingMethodIdDeliveryLeadTimeForShipmentRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShippingMethodIdDeliveryLeadTimeForShipmentExecute(r) +func (r HasOneApiGETSkuListItemIdSkuListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuListItemIdSkuListExecute(r) } /* -GETShippingMethodIdDeliveryLeadTimeForShipment Retrieve the delivery lead time for shipment associated to the shipping method +GETSkuListItemIdSkuList Retrieve the sku list associated to the SKU list item -Retrieve the delivery lead time for shipment associated to the shipping method +Retrieve the sku list associated to the SKU list item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shippingMethodId The resource's id - @return HasOneApiGETShippingMethodIdDeliveryLeadTimeForShipmentRequest + @param skuListItemId The resource's id + @return HasOneApiGETSkuListItemIdSkuListRequest */ -func (a *HasOneApiService) GETShippingMethodIdDeliveryLeadTimeForShipment(ctx context.Context, shippingMethodId interface{}) HasOneApiGETShippingMethodIdDeliveryLeadTimeForShipmentRequest { - return HasOneApiGETShippingMethodIdDeliveryLeadTimeForShipmentRequest{ - ApiService: a, - ctx: ctx, - shippingMethodId: shippingMethodId, +func (a *HasOneApiService) GETSkuListItemIdSkuList(ctx context.Context, skuListItemId interface{}) HasOneApiGETSkuListItemIdSkuListRequest { + return HasOneApiGETSkuListItemIdSkuListRequest{ + ApiService: a, + ctx: ctx, + skuListItemId: skuListItemId, } } // Execute executes the request -func (a *HasOneApiService) GETShippingMethodIdDeliveryLeadTimeForShipmentExecute(r HasOneApiGETShippingMethodIdDeliveryLeadTimeForShipmentRequest) (*http.Response, error) { +func (a *HasOneApiService) GETSkuListItemIdSkuListExecute(r HasOneApiGETSkuListItemIdSkuListRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShippingMethodIdDeliveryLeadTimeForShipment") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETSkuListItemIdSkuList") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipping_methods/{shippingMethodId}/delivery_lead_time_for_shipment" - localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodId, "shippingMethodId")), -1) + localVarPath := localBasePath + "/sku_list_items/{skuListItemId}/sku_list" + localVarPath = strings.Replace(localVarPath, "{"+"skuListItemId"+"}", url.PathEscape(parameterValueToString(r.skuListItemId, "skuListItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12535,48 +16675,48 @@ func (a *HasOneApiService) GETShippingMethodIdDeliveryLeadTimeForShipmentExecute return localVarHTTPResponse, nil } -type HasOneApiGETShippingMethodIdMarketRequest struct { - ctx context.Context - ApiService *HasOneApiService - shippingMethodId interface{} +type HasOneApiGETSkuListPromotionRuleIdSkuListRequest struct { + ctx context.Context + ApiService *HasOneApiService + skuListPromotionRuleId interface{} } -func (r HasOneApiGETShippingMethodIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShippingMethodIdMarketExecute(r) +func (r HasOneApiGETSkuListPromotionRuleIdSkuListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuListPromotionRuleIdSkuListExecute(r) } /* -GETShippingMethodIdMarket Retrieve the market associated to the shipping method +GETSkuListPromotionRuleIdSkuList Retrieve the sku list associated to the SKU list promotion rule -Retrieve the market associated to the shipping method +Retrieve the sku list associated to the SKU list promotion rule @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shippingMethodId The resource's id - @return HasOneApiGETShippingMethodIdMarketRequest + @param skuListPromotionRuleId The resource's id + @return HasOneApiGETSkuListPromotionRuleIdSkuListRequest */ -func (a *HasOneApiService) GETShippingMethodIdMarket(ctx context.Context, shippingMethodId interface{}) HasOneApiGETShippingMethodIdMarketRequest { - return HasOneApiGETShippingMethodIdMarketRequest{ - ApiService: a, - ctx: ctx, - shippingMethodId: shippingMethodId, +func (a *HasOneApiService) GETSkuListPromotionRuleIdSkuList(ctx context.Context, skuListPromotionRuleId interface{}) HasOneApiGETSkuListPromotionRuleIdSkuListRequest { + return HasOneApiGETSkuListPromotionRuleIdSkuListRequest{ + ApiService: a, + ctx: ctx, + skuListPromotionRuleId: skuListPromotionRuleId, } } // Execute executes the request -func (a *HasOneApiService) GETShippingMethodIdMarketExecute(r HasOneApiGETShippingMethodIdMarketRequest) (*http.Response, error) { +func (a *HasOneApiService) GETSkuListPromotionRuleIdSkuListExecute(r HasOneApiGETSkuListPromotionRuleIdSkuListRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShippingMethodIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETSkuListPromotionRuleIdSkuList") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipping_methods/{shippingMethodId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodId, "shippingMethodId")), -1) + localVarPath := localBasePath + "/sku_list_promotion_rules/{skuListPromotionRuleId}/sku_list" + localVarPath = strings.Replace(localVarPath, "{"+"skuListPromotionRuleId"+"}", url.PathEscape(parameterValueToString(r.skuListPromotionRuleId, "skuListPromotionRuleId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12627,48 +16767,48 @@ func (a *HasOneApiService) GETShippingMethodIdMarketExecute(r HasOneApiGETShippi return localVarHTTPResponse, nil } -type HasOneApiGETShippingMethodIdShippingCategoryRequest struct { - ctx context.Context - ApiService *HasOneApiService - shippingMethodId interface{} +type HasOneApiGETSkuOptionIdMarketRequest struct { + ctx context.Context + ApiService *HasOneApiService + skuOptionId interface{} } -func (r HasOneApiGETShippingMethodIdShippingCategoryRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShippingMethodIdShippingCategoryExecute(r) +func (r HasOneApiGETSkuOptionIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuOptionIdMarketExecute(r) } /* -GETShippingMethodIdShippingCategory Retrieve the shipping category associated to the shipping method +GETSkuOptionIdMarket Retrieve the market associated to the SKU option -Retrieve the shipping category associated to the shipping method +Retrieve the market associated to the SKU option @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shippingMethodId The resource's id - @return HasOneApiGETShippingMethodIdShippingCategoryRequest + @param skuOptionId The resource's id + @return HasOneApiGETSkuOptionIdMarketRequest */ -func (a *HasOneApiService) GETShippingMethodIdShippingCategory(ctx context.Context, shippingMethodId interface{}) HasOneApiGETShippingMethodIdShippingCategoryRequest { - return HasOneApiGETShippingMethodIdShippingCategoryRequest{ - ApiService: a, - ctx: ctx, - shippingMethodId: shippingMethodId, +func (a *HasOneApiService) GETSkuOptionIdMarket(ctx context.Context, skuOptionId interface{}) HasOneApiGETSkuOptionIdMarketRequest { + return HasOneApiGETSkuOptionIdMarketRequest{ + ApiService: a, + ctx: ctx, + skuOptionId: skuOptionId, } } // Execute executes the request -func (a *HasOneApiService) GETShippingMethodIdShippingCategoryExecute(r HasOneApiGETShippingMethodIdShippingCategoryRequest) (*http.Response, error) { +func (a *HasOneApiService) GETSkuOptionIdMarketExecute(r HasOneApiGETSkuOptionIdMarketRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShippingMethodIdShippingCategory") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETSkuOptionIdMarket") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipping_methods/{shippingMethodId}/shipping_category" - localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodId, "shippingMethodId")), -1) + localVarPath := localBasePath + "/sku_options/{skuOptionId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"skuOptionId"+"}", url.PathEscape(parameterValueToString(r.skuOptionId, "skuOptionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12719,48 +16859,48 @@ func (a *HasOneApiService) GETShippingMethodIdShippingCategoryExecute(r HasOneAp return localVarHTTPResponse, nil } -type HasOneApiGETShippingMethodIdShippingZoneRequest struct { - ctx context.Context - ApiService *HasOneApiService - shippingMethodId interface{} +type HasOneApiGETStockItemIdReservedStockRequest struct { + ctx context.Context + ApiService *HasOneApiService + stockItemId interface{} } -func (r HasOneApiGETShippingMethodIdShippingZoneRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShippingMethodIdShippingZoneExecute(r) +func (r HasOneApiGETStockItemIdReservedStockRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockItemIdReservedStockExecute(r) } /* -GETShippingMethodIdShippingZone Retrieve the shipping zone associated to the shipping method +GETStockItemIdReservedStock Retrieve the reserved stock associated to the stock item -Retrieve the shipping zone associated to the shipping method +Retrieve the reserved stock associated to the stock item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shippingMethodId The resource's id - @return HasOneApiGETShippingMethodIdShippingZoneRequest + @param stockItemId The resource's id + @return HasOneApiGETStockItemIdReservedStockRequest */ -func (a *HasOneApiService) GETShippingMethodIdShippingZone(ctx context.Context, shippingMethodId interface{}) HasOneApiGETShippingMethodIdShippingZoneRequest { - return HasOneApiGETShippingMethodIdShippingZoneRequest{ - ApiService: a, - ctx: ctx, - shippingMethodId: shippingMethodId, +func (a *HasOneApiService) GETStockItemIdReservedStock(ctx context.Context, stockItemId interface{}) HasOneApiGETStockItemIdReservedStockRequest { + return HasOneApiGETStockItemIdReservedStockRequest{ + ApiService: a, + ctx: ctx, + stockItemId: stockItemId, } } // Execute executes the request -func (a *HasOneApiService) GETShippingMethodIdShippingZoneExecute(r HasOneApiGETShippingMethodIdShippingZoneRequest) (*http.Response, error) { +func (a *HasOneApiService) GETStockItemIdReservedStockExecute(r HasOneApiGETStockItemIdReservedStockRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShippingMethodIdShippingZone") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockItemIdReservedStock") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipping_methods/{shippingMethodId}/shipping_zone" - localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodId, "shippingMethodId")), -1) + localVarPath := localBasePath + "/stock_items/{stockItemId}/reserved_stock" + localVarPath = strings.Replace(localVarPath, "{"+"stockItemId"+"}", url.PathEscape(parameterValueToString(r.stockItemId, "stockItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12811,48 +16951,48 @@ func (a *HasOneApiService) GETShippingMethodIdShippingZoneExecute(r HasOneApiGET return localVarHTTPResponse, nil } -type HasOneApiGETShippingMethodIdStockLocationRequest struct { - ctx context.Context - ApiService *HasOneApiService - shippingMethodId interface{} +type HasOneApiGETStockItemIdSkuRequest struct { + ctx context.Context + ApiService *HasOneApiService + stockItemId interface{} } -func (r HasOneApiGETShippingMethodIdStockLocationRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShippingMethodIdStockLocationExecute(r) +func (r HasOneApiGETStockItemIdSkuRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockItemIdSkuExecute(r) } /* -GETShippingMethodIdStockLocation Retrieve the stock location associated to the shipping method +GETStockItemIdSku Retrieve the sku associated to the stock item -Retrieve the stock location associated to the shipping method +Retrieve the sku associated to the stock item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shippingMethodId The resource's id - @return HasOneApiGETShippingMethodIdStockLocationRequest + @param stockItemId The resource's id + @return HasOneApiGETStockItemIdSkuRequest */ -func (a *HasOneApiService) GETShippingMethodIdStockLocation(ctx context.Context, shippingMethodId interface{}) HasOneApiGETShippingMethodIdStockLocationRequest { - return HasOneApiGETShippingMethodIdStockLocationRequest{ - ApiService: a, - ctx: ctx, - shippingMethodId: shippingMethodId, +func (a *HasOneApiService) GETStockItemIdSku(ctx context.Context, stockItemId interface{}) HasOneApiGETStockItemIdSkuRequest { + return HasOneApiGETStockItemIdSkuRequest{ + ApiService: a, + ctx: ctx, + stockItemId: stockItemId, } } // Execute executes the request -func (a *HasOneApiService) GETShippingMethodIdStockLocationExecute(r HasOneApiGETShippingMethodIdStockLocationRequest) (*http.Response, error) { +func (a *HasOneApiService) GETStockItemIdSkuExecute(r HasOneApiGETStockItemIdSkuRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShippingMethodIdStockLocation") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockItemIdSku") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipping_methods/{shippingMethodId}/stock_location" - localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodId, "shippingMethodId")), -1) + localVarPath := localBasePath + "/stock_items/{stockItemId}/sku" + localVarPath = strings.Replace(localVarPath, "{"+"stockItemId"+"}", url.PathEscape(parameterValueToString(r.stockItemId, "stockItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12903,48 +17043,48 @@ func (a *HasOneApiService) GETShippingMethodIdStockLocationExecute(r HasOneApiGE return localVarHTTPResponse, nil } -type HasOneApiGETShippingMethodTierIdShippingMethodRequest struct { - ctx context.Context - ApiService *HasOneApiService - shippingMethodTierId interface{} +type HasOneApiGETStockItemIdStockLocationRequest struct { + ctx context.Context + ApiService *HasOneApiService + stockItemId interface{} } -func (r HasOneApiGETShippingMethodTierIdShippingMethodRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShippingMethodTierIdShippingMethodExecute(r) +func (r HasOneApiGETStockItemIdStockLocationRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockItemIdStockLocationExecute(r) } /* -GETShippingMethodTierIdShippingMethod Retrieve the shipping method associated to the shipping method tier +GETStockItemIdStockLocation Retrieve the stock location associated to the stock item -Retrieve the shipping method associated to the shipping method tier +Retrieve the stock location associated to the stock item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shippingMethodTierId The resource's id - @return HasOneApiGETShippingMethodTierIdShippingMethodRequest + @param stockItemId The resource's id + @return HasOneApiGETStockItemIdStockLocationRequest */ -func (a *HasOneApiService) GETShippingMethodTierIdShippingMethod(ctx context.Context, shippingMethodTierId interface{}) HasOneApiGETShippingMethodTierIdShippingMethodRequest { - return HasOneApiGETShippingMethodTierIdShippingMethodRequest{ - ApiService: a, - ctx: ctx, - shippingMethodTierId: shippingMethodTierId, +func (a *HasOneApiService) GETStockItemIdStockLocation(ctx context.Context, stockItemId interface{}) HasOneApiGETStockItemIdStockLocationRequest { + return HasOneApiGETStockItemIdStockLocationRequest{ + ApiService: a, + ctx: ctx, + stockItemId: stockItemId, } } // Execute executes the request -func (a *HasOneApiService) GETShippingMethodTierIdShippingMethodExecute(r HasOneApiGETShippingMethodTierIdShippingMethodRequest) (*http.Response, error) { +func (a *HasOneApiService) GETStockItemIdStockLocationExecute(r HasOneApiGETStockItemIdStockLocationRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShippingMethodTierIdShippingMethod") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockItemIdStockLocation") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipping_method_tiers/{shippingMethodTierId}/shipping_method" - localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodTierId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodTierId, "shippingMethodTierId")), -1) + localVarPath := localBasePath + "/stock_items/{stockItemId}/stock_location" + localVarPath = strings.Replace(localVarPath, "{"+"stockItemId"+"}", url.PathEscape(parameterValueToString(r.stockItemId, "stockItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -12995,48 +17135,48 @@ func (a *HasOneApiService) GETShippingMethodTierIdShippingMethodExecute(r HasOne return localVarHTTPResponse, nil } -type HasOneApiGETShippingWeightTierIdShippingMethodRequest struct { - ctx context.Context - ApiService *HasOneApiService - shippingWeightTierId interface{} +type HasOneApiGETStockLineItemIdLineItemRequest struct { + ctx context.Context + ApiService *HasOneApiService + stockLineItemId interface{} } -func (r HasOneApiGETShippingWeightTierIdShippingMethodRequest) Execute() (*http.Response, error) { - return r.ApiService.GETShippingWeightTierIdShippingMethodExecute(r) +func (r HasOneApiGETStockLineItemIdLineItemRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockLineItemIdLineItemExecute(r) } /* -GETShippingWeightTierIdShippingMethod Retrieve the shipping method associated to the shipping weight tier +GETStockLineItemIdLineItem Retrieve the line item associated to the stock line item -Retrieve the shipping method associated to the shipping weight tier +Retrieve the line item associated to the stock line item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param shippingWeightTierId The resource's id - @return HasOneApiGETShippingWeightTierIdShippingMethodRequest + @param stockLineItemId The resource's id + @return HasOneApiGETStockLineItemIdLineItemRequest */ -func (a *HasOneApiService) GETShippingWeightTierIdShippingMethod(ctx context.Context, shippingWeightTierId interface{}) HasOneApiGETShippingWeightTierIdShippingMethodRequest { - return HasOneApiGETShippingWeightTierIdShippingMethodRequest{ - ApiService: a, - ctx: ctx, - shippingWeightTierId: shippingWeightTierId, +func (a *HasOneApiService) GETStockLineItemIdLineItem(ctx context.Context, stockLineItemId interface{}) HasOneApiGETStockLineItemIdLineItemRequest { + return HasOneApiGETStockLineItemIdLineItemRequest{ + ApiService: a, + ctx: ctx, + stockLineItemId: stockLineItemId, } } // Execute executes the request -func (a *HasOneApiService) GETShippingWeightTierIdShippingMethodExecute(r HasOneApiGETShippingWeightTierIdShippingMethodRequest) (*http.Response, error) { +func (a *HasOneApiService) GETStockLineItemIdLineItemExecute(r HasOneApiGETStockLineItemIdLineItemRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETShippingWeightTierIdShippingMethod") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockLineItemIdLineItem") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/shipping_weight_tiers/{shippingWeightTierId}/shipping_method" - localVarPath = strings.Replace(localVarPath, "{"+"shippingWeightTierId"+"}", url.PathEscape(parameterValueToString(r.shippingWeightTierId, "shippingWeightTierId")), -1) + localVarPath := localBasePath + "/stock_line_items/{stockLineItemId}/line_item" + localVarPath = strings.Replace(localVarPath, "{"+"stockLineItemId"+"}", url.PathEscape(parameterValueToString(r.stockLineItemId, "stockLineItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13087,48 +17227,48 @@ func (a *HasOneApiService) GETShippingWeightTierIdShippingMethodExecute(r HasOne return localVarHTTPResponse, nil } -type HasOneApiGETSkuIdShippingCategoryRequest struct { - ctx context.Context - ApiService *HasOneApiService - skuId interface{} +type HasOneApiGETStockLineItemIdShipmentRequest struct { + ctx context.Context + ApiService *HasOneApiService + stockLineItemId interface{} } -func (r HasOneApiGETSkuIdShippingCategoryRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSkuIdShippingCategoryExecute(r) +func (r HasOneApiGETStockLineItemIdShipmentRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockLineItemIdShipmentExecute(r) } /* -GETSkuIdShippingCategory Retrieve the shipping category associated to the SKU +GETStockLineItemIdShipment Retrieve the shipment associated to the stock line item -Retrieve the shipping category associated to the SKU +Retrieve the shipment associated to the stock line item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param skuId The resource's id - @return HasOneApiGETSkuIdShippingCategoryRequest + @param stockLineItemId The resource's id + @return HasOneApiGETStockLineItemIdShipmentRequest */ -func (a *HasOneApiService) GETSkuIdShippingCategory(ctx context.Context, skuId interface{}) HasOneApiGETSkuIdShippingCategoryRequest { - return HasOneApiGETSkuIdShippingCategoryRequest{ - ApiService: a, - ctx: ctx, - skuId: skuId, +func (a *HasOneApiService) GETStockLineItemIdShipment(ctx context.Context, stockLineItemId interface{}) HasOneApiGETStockLineItemIdShipmentRequest { + return HasOneApiGETStockLineItemIdShipmentRequest{ + ApiService: a, + ctx: ctx, + stockLineItemId: stockLineItemId, } } // Execute executes the request -func (a *HasOneApiService) GETSkuIdShippingCategoryExecute(r HasOneApiGETSkuIdShippingCategoryRequest) (*http.Response, error) { +func (a *HasOneApiService) GETStockLineItemIdShipmentExecute(r HasOneApiGETStockLineItemIdShipmentRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETSkuIdShippingCategory") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockLineItemIdShipment") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/skus/{skuId}/shipping_category" - localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) + localVarPath := localBasePath + "/stock_line_items/{stockLineItemId}/shipment" + localVarPath = strings.Replace(localVarPath, "{"+"stockLineItemId"+"}", url.PathEscape(parameterValueToString(r.stockLineItemId, "stockLineItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13179,48 +17319,48 @@ func (a *HasOneApiService) GETSkuIdShippingCategoryExecute(r HasOneApiGETSkuIdSh return localVarHTTPResponse, nil } -type HasOneApiGETSkuListIdCustomerRequest struct { - ctx context.Context - ApiService *HasOneApiService - skuListId interface{} +type HasOneApiGETStockLineItemIdSkuRequest struct { + ctx context.Context + ApiService *HasOneApiService + stockLineItemId interface{} } -func (r HasOneApiGETSkuListIdCustomerRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSkuListIdCustomerExecute(r) +func (r HasOneApiGETStockLineItemIdSkuRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockLineItemIdSkuExecute(r) } /* -GETSkuListIdCustomer Retrieve the customer associated to the SKU list +GETStockLineItemIdSku Retrieve the sku associated to the stock line item -Retrieve the customer associated to the SKU list +Retrieve the sku associated to the stock line item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param skuListId The resource's id - @return HasOneApiGETSkuListIdCustomerRequest + @param stockLineItemId The resource's id + @return HasOneApiGETStockLineItemIdSkuRequest */ -func (a *HasOneApiService) GETSkuListIdCustomer(ctx context.Context, skuListId interface{}) HasOneApiGETSkuListIdCustomerRequest { - return HasOneApiGETSkuListIdCustomerRequest{ - ApiService: a, - ctx: ctx, - skuListId: skuListId, +func (a *HasOneApiService) GETStockLineItemIdSku(ctx context.Context, stockLineItemId interface{}) HasOneApiGETStockLineItemIdSkuRequest { + return HasOneApiGETStockLineItemIdSkuRequest{ + ApiService: a, + ctx: ctx, + stockLineItemId: stockLineItemId, } } // Execute executes the request -func (a *HasOneApiService) GETSkuListIdCustomerExecute(r HasOneApiGETSkuListIdCustomerRequest) (*http.Response, error) { +func (a *HasOneApiService) GETStockLineItemIdSkuExecute(r HasOneApiGETStockLineItemIdSkuRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETSkuListIdCustomer") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockLineItemIdSku") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/sku_lists/{skuListId}/customer" - localVarPath = strings.Replace(localVarPath, "{"+"skuListId"+"}", url.PathEscape(parameterValueToString(r.skuListId, "skuListId")), -1) + localVarPath := localBasePath + "/stock_line_items/{stockLineItemId}/sku" + localVarPath = strings.Replace(localVarPath, "{"+"stockLineItemId"+"}", url.PathEscape(parameterValueToString(r.stockLineItemId, "stockLineItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13271,48 +17411,48 @@ func (a *HasOneApiService) GETSkuListIdCustomerExecute(r HasOneApiGETSkuListIdCu return localVarHTTPResponse, nil } -type HasOneApiGETSkuListItemIdSkuRequest struct { - ctx context.Context - ApiService *HasOneApiService - skuListItemId interface{} +type HasOneApiGETStockLineItemIdStockItemRequest struct { + ctx context.Context + ApiService *HasOneApiService + stockLineItemId interface{} } -func (r HasOneApiGETSkuListItemIdSkuRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSkuListItemIdSkuExecute(r) +func (r HasOneApiGETStockLineItemIdStockItemRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockLineItemIdStockItemExecute(r) } /* -GETSkuListItemIdSku Retrieve the sku associated to the SKU list item +GETStockLineItemIdStockItem Retrieve the stock item associated to the stock line item -Retrieve the sku associated to the SKU list item +Retrieve the stock item associated to the stock line item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param skuListItemId The resource's id - @return HasOneApiGETSkuListItemIdSkuRequest + @param stockLineItemId The resource's id + @return HasOneApiGETStockLineItemIdStockItemRequest */ -func (a *HasOneApiService) GETSkuListItemIdSku(ctx context.Context, skuListItemId interface{}) HasOneApiGETSkuListItemIdSkuRequest { - return HasOneApiGETSkuListItemIdSkuRequest{ - ApiService: a, - ctx: ctx, - skuListItemId: skuListItemId, +func (a *HasOneApiService) GETStockLineItemIdStockItem(ctx context.Context, stockLineItemId interface{}) HasOneApiGETStockLineItemIdStockItemRequest { + return HasOneApiGETStockLineItemIdStockItemRequest{ + ApiService: a, + ctx: ctx, + stockLineItemId: stockLineItemId, } } // Execute executes the request -func (a *HasOneApiService) GETSkuListItemIdSkuExecute(r HasOneApiGETSkuListItemIdSkuRequest) (*http.Response, error) { +func (a *HasOneApiService) GETStockLineItemIdStockItemExecute(r HasOneApiGETStockLineItemIdStockItemRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETSkuListItemIdSku") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockLineItemIdStockItem") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/sku_list_items/{skuListItemId}/sku" - localVarPath = strings.Replace(localVarPath, "{"+"skuListItemId"+"}", url.PathEscape(parameterValueToString(r.skuListItemId, "skuListItemId")), -1) + localVarPath := localBasePath + "/stock_line_items/{stockLineItemId}/stock_item" + localVarPath = strings.Replace(localVarPath, "{"+"stockLineItemId"+"}", url.PathEscape(parameterValueToString(r.stockLineItemId, "stockLineItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13363,48 +17503,48 @@ func (a *HasOneApiService) GETSkuListItemIdSkuExecute(r HasOneApiGETSkuListItemI return localVarHTTPResponse, nil } -type HasOneApiGETSkuListItemIdSkuListRequest struct { - ctx context.Context - ApiService *HasOneApiService - skuListItemId interface{} +type HasOneApiGETStockLineItemIdStockReservationRequest struct { + ctx context.Context + ApiService *HasOneApiService + stockLineItemId interface{} } -func (r HasOneApiGETSkuListItemIdSkuListRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSkuListItemIdSkuListExecute(r) +func (r HasOneApiGETStockLineItemIdStockReservationRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockLineItemIdStockReservationExecute(r) } /* -GETSkuListItemIdSkuList Retrieve the sku list associated to the SKU list item +GETStockLineItemIdStockReservation Retrieve the stock reservation associated to the stock line item -Retrieve the sku list associated to the SKU list item +Retrieve the stock reservation associated to the stock line item @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param skuListItemId The resource's id - @return HasOneApiGETSkuListItemIdSkuListRequest + @param stockLineItemId The resource's id + @return HasOneApiGETStockLineItemIdStockReservationRequest */ -func (a *HasOneApiService) GETSkuListItemIdSkuList(ctx context.Context, skuListItemId interface{}) HasOneApiGETSkuListItemIdSkuListRequest { - return HasOneApiGETSkuListItemIdSkuListRequest{ - ApiService: a, - ctx: ctx, - skuListItemId: skuListItemId, +func (a *HasOneApiService) GETStockLineItemIdStockReservation(ctx context.Context, stockLineItemId interface{}) HasOneApiGETStockLineItemIdStockReservationRequest { + return HasOneApiGETStockLineItemIdStockReservationRequest{ + ApiService: a, + ctx: ctx, + stockLineItemId: stockLineItemId, } } // Execute executes the request -func (a *HasOneApiService) GETSkuListItemIdSkuListExecute(r HasOneApiGETSkuListItemIdSkuListRequest) (*http.Response, error) { +func (a *HasOneApiService) GETStockLineItemIdStockReservationExecute(r HasOneApiGETStockLineItemIdStockReservationRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETSkuListItemIdSkuList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockLineItemIdStockReservation") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/sku_list_items/{skuListItemId}/sku_list" - localVarPath = strings.Replace(localVarPath, "{"+"skuListItemId"+"}", url.PathEscape(parameterValueToString(r.skuListItemId, "skuListItemId")), -1) + localVarPath := localBasePath + "/stock_line_items/{stockLineItemId}/stock_reservation" + localVarPath = strings.Replace(localVarPath, "{"+"stockLineItemId"+"}", url.PathEscape(parameterValueToString(r.stockLineItemId, "stockLineItemId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13455,48 +17595,48 @@ func (a *HasOneApiService) GETSkuListItemIdSkuListExecute(r HasOneApiGETSkuListI return localVarHTTPResponse, nil } -type HasOneApiGETSkuListPromotionRuleIdSkuListRequest struct { - ctx context.Context - ApiService *HasOneApiService - skuListPromotionRuleId interface{} +type HasOneApiGETStockLocationIdAddressRequest struct { + ctx context.Context + ApiService *HasOneApiService + stockLocationId interface{} } -func (r HasOneApiGETSkuListPromotionRuleIdSkuListRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSkuListPromotionRuleIdSkuListExecute(r) +func (r HasOneApiGETStockLocationIdAddressRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockLocationIdAddressExecute(r) } /* -GETSkuListPromotionRuleIdSkuList Retrieve the sku list associated to the SKU list promotion rule +GETStockLocationIdAddress Retrieve the address associated to the stock location -Retrieve the sku list associated to the SKU list promotion rule +Retrieve the address associated to the stock location @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param skuListPromotionRuleId The resource's id - @return HasOneApiGETSkuListPromotionRuleIdSkuListRequest -*/ -func (a *HasOneApiService) GETSkuListPromotionRuleIdSkuList(ctx context.Context, skuListPromotionRuleId interface{}) HasOneApiGETSkuListPromotionRuleIdSkuListRequest { - return HasOneApiGETSkuListPromotionRuleIdSkuListRequest{ - ApiService: a, - ctx: ctx, - skuListPromotionRuleId: skuListPromotionRuleId, + @param stockLocationId The resource's id + @return HasOneApiGETStockLocationIdAddressRequest +*/ +func (a *HasOneApiService) GETStockLocationIdAddress(ctx context.Context, stockLocationId interface{}) HasOneApiGETStockLocationIdAddressRequest { + return HasOneApiGETStockLocationIdAddressRequest{ + ApiService: a, + ctx: ctx, + stockLocationId: stockLocationId, } } // Execute executes the request -func (a *HasOneApiService) GETSkuListPromotionRuleIdSkuListExecute(r HasOneApiGETSkuListPromotionRuleIdSkuListRequest) (*http.Response, error) { +func (a *HasOneApiService) GETStockLocationIdAddressExecute(r HasOneApiGETStockLocationIdAddressRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETSkuListPromotionRuleIdSkuList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockLocationIdAddress") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/sku_list_promotion_rules/{skuListPromotionRuleId}/sku_list" - localVarPath = strings.Replace(localVarPath, "{"+"skuListPromotionRuleId"+"}", url.PathEscape(parameterValueToString(r.skuListPromotionRuleId, "skuListPromotionRuleId")), -1) + localVarPath := localBasePath + "/stock_locations/{stockLocationId}/address" + localVarPath = strings.Replace(localVarPath, "{"+"stockLocationId"+"}", url.PathEscape(parameterValueToString(r.stockLocationId, "stockLocationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13547,48 +17687,48 @@ func (a *HasOneApiService) GETSkuListPromotionRuleIdSkuListExecute(r HasOneApiGE return localVarHTTPResponse, nil } -type HasOneApiGETSkuOptionIdMarketRequest struct { - ctx context.Context - ApiService *HasOneApiService - skuOptionId interface{} +type HasOneApiGETStockReservationIdLineItemRequest struct { + ctx context.Context + ApiService *HasOneApiService + stockReservationId interface{} } -func (r HasOneApiGETSkuOptionIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETSkuOptionIdMarketExecute(r) +func (r HasOneApiGETStockReservationIdLineItemRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockReservationIdLineItemExecute(r) } /* -GETSkuOptionIdMarket Retrieve the market associated to the SKU option +GETStockReservationIdLineItem Retrieve the line item associated to the stock reservation -Retrieve the market associated to the SKU option +Retrieve the line item associated to the stock reservation @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param skuOptionId The resource's id - @return HasOneApiGETSkuOptionIdMarketRequest + @param stockReservationId The resource's id + @return HasOneApiGETStockReservationIdLineItemRequest */ -func (a *HasOneApiService) GETSkuOptionIdMarket(ctx context.Context, skuOptionId interface{}) HasOneApiGETSkuOptionIdMarketRequest { - return HasOneApiGETSkuOptionIdMarketRequest{ - ApiService: a, - ctx: ctx, - skuOptionId: skuOptionId, +func (a *HasOneApiService) GETStockReservationIdLineItem(ctx context.Context, stockReservationId interface{}) HasOneApiGETStockReservationIdLineItemRequest { + return HasOneApiGETStockReservationIdLineItemRequest{ + ApiService: a, + ctx: ctx, + stockReservationId: stockReservationId, } } // Execute executes the request -func (a *HasOneApiService) GETSkuOptionIdMarketExecute(r HasOneApiGETSkuOptionIdMarketRequest) (*http.Response, error) { +func (a *HasOneApiService) GETStockReservationIdLineItemExecute(r HasOneApiGETStockReservationIdLineItemRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETSkuOptionIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockReservationIdLineItem") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/sku_options/{skuOptionId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"skuOptionId"+"}", url.PathEscape(parameterValueToString(r.skuOptionId, "skuOptionId")), -1) + localVarPath := localBasePath + "/stock_reservations/{stockReservationId}/line_item" + localVarPath = strings.Replace(localVarPath, "{"+"stockReservationId"+"}", url.PathEscape(parameterValueToString(r.stockReservationId, "stockReservationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13639,48 +17779,48 @@ func (a *HasOneApiService) GETSkuOptionIdMarketExecute(r HasOneApiGETSkuOptionId return localVarHTTPResponse, nil } -type HasOneApiGETStockItemIdSkuRequest struct { - ctx context.Context - ApiService *HasOneApiService - stockItemId interface{} +type HasOneApiGETStockReservationIdOrderRequest struct { + ctx context.Context + ApiService *HasOneApiService + stockReservationId interface{} } -func (r HasOneApiGETStockItemIdSkuRequest) Execute() (*http.Response, error) { - return r.ApiService.GETStockItemIdSkuExecute(r) +func (r HasOneApiGETStockReservationIdOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockReservationIdOrderExecute(r) } /* -GETStockItemIdSku Retrieve the sku associated to the stock item +GETStockReservationIdOrder Retrieve the order associated to the stock reservation -Retrieve the sku associated to the stock item +Retrieve the order associated to the stock reservation @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stockItemId The resource's id - @return HasOneApiGETStockItemIdSkuRequest + @param stockReservationId The resource's id + @return HasOneApiGETStockReservationIdOrderRequest */ -func (a *HasOneApiService) GETStockItemIdSku(ctx context.Context, stockItemId interface{}) HasOneApiGETStockItemIdSkuRequest { - return HasOneApiGETStockItemIdSkuRequest{ - ApiService: a, - ctx: ctx, - stockItemId: stockItemId, +func (a *HasOneApiService) GETStockReservationIdOrder(ctx context.Context, stockReservationId interface{}) HasOneApiGETStockReservationIdOrderRequest { + return HasOneApiGETStockReservationIdOrderRequest{ + ApiService: a, + ctx: ctx, + stockReservationId: stockReservationId, } } // Execute executes the request -func (a *HasOneApiService) GETStockItemIdSkuExecute(r HasOneApiGETStockItemIdSkuRequest) (*http.Response, error) { +func (a *HasOneApiService) GETStockReservationIdOrderExecute(r HasOneApiGETStockReservationIdOrderRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockItemIdSku") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockReservationIdOrder") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/stock_items/{stockItemId}/sku" - localVarPath = strings.Replace(localVarPath, "{"+"stockItemId"+"}", url.PathEscape(parameterValueToString(r.stockItemId, "stockItemId")), -1) + localVarPath := localBasePath + "/stock_reservations/{stockReservationId}/order" + localVarPath = strings.Replace(localVarPath, "{"+"stockReservationId"+"}", url.PathEscape(parameterValueToString(r.stockReservationId, "stockReservationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13731,48 +17871,48 @@ func (a *HasOneApiService) GETStockItemIdSkuExecute(r HasOneApiGETStockItemIdSku return localVarHTTPResponse, nil } -type HasOneApiGETStockItemIdStockLocationRequest struct { - ctx context.Context - ApiService *HasOneApiService - stockItemId interface{} +type HasOneApiGETStockReservationIdReservedStockRequest struct { + ctx context.Context + ApiService *HasOneApiService + stockReservationId interface{} } -func (r HasOneApiGETStockItemIdStockLocationRequest) Execute() (*http.Response, error) { - return r.ApiService.GETStockItemIdStockLocationExecute(r) +func (r HasOneApiGETStockReservationIdReservedStockRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockReservationIdReservedStockExecute(r) } /* -GETStockItemIdStockLocation Retrieve the stock location associated to the stock item +GETStockReservationIdReservedStock Retrieve the reserved stock associated to the stock reservation -Retrieve the stock location associated to the stock item +Retrieve the reserved stock associated to the stock reservation @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stockItemId The resource's id - @return HasOneApiGETStockItemIdStockLocationRequest + @param stockReservationId The resource's id + @return HasOneApiGETStockReservationIdReservedStockRequest */ -func (a *HasOneApiService) GETStockItemIdStockLocation(ctx context.Context, stockItemId interface{}) HasOneApiGETStockItemIdStockLocationRequest { - return HasOneApiGETStockItemIdStockLocationRequest{ - ApiService: a, - ctx: ctx, - stockItemId: stockItemId, +func (a *HasOneApiService) GETStockReservationIdReservedStock(ctx context.Context, stockReservationId interface{}) HasOneApiGETStockReservationIdReservedStockRequest { + return HasOneApiGETStockReservationIdReservedStockRequest{ + ApiService: a, + ctx: ctx, + stockReservationId: stockReservationId, } } // Execute executes the request -func (a *HasOneApiService) GETStockItemIdStockLocationExecute(r HasOneApiGETStockItemIdStockLocationRequest) (*http.Response, error) { +func (a *HasOneApiService) GETStockReservationIdReservedStockExecute(r HasOneApiGETStockReservationIdReservedStockRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockItemIdStockLocation") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockReservationIdReservedStock") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/stock_items/{stockItemId}/stock_location" - localVarPath = strings.Replace(localVarPath, "{"+"stockItemId"+"}", url.PathEscape(parameterValueToString(r.stockItemId, "stockItemId")), -1) + localVarPath := localBasePath + "/stock_reservations/{stockReservationId}/reserved_stock" + localVarPath = strings.Replace(localVarPath, "{"+"stockReservationId"+"}", url.PathEscape(parameterValueToString(r.stockReservationId, "stockReservationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13823,48 +17963,48 @@ func (a *HasOneApiService) GETStockItemIdStockLocationExecute(r HasOneApiGETStoc return localVarHTTPResponse, nil } -type HasOneApiGETStockLineItemIdLineItemRequest struct { - ctx context.Context - ApiService *HasOneApiService - stockLineItemId interface{} +type HasOneApiGETStockReservationIdSkuRequest struct { + ctx context.Context + ApiService *HasOneApiService + stockReservationId interface{} } -func (r HasOneApiGETStockLineItemIdLineItemRequest) Execute() (*http.Response, error) { - return r.ApiService.GETStockLineItemIdLineItemExecute(r) +func (r HasOneApiGETStockReservationIdSkuRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockReservationIdSkuExecute(r) } /* -GETStockLineItemIdLineItem Retrieve the line item associated to the stock line item +GETStockReservationIdSku Retrieve the sku associated to the stock reservation -Retrieve the line item associated to the stock line item +Retrieve the sku associated to the stock reservation @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stockLineItemId The resource's id - @return HasOneApiGETStockLineItemIdLineItemRequest + @param stockReservationId The resource's id + @return HasOneApiGETStockReservationIdSkuRequest */ -func (a *HasOneApiService) GETStockLineItemIdLineItem(ctx context.Context, stockLineItemId interface{}) HasOneApiGETStockLineItemIdLineItemRequest { - return HasOneApiGETStockLineItemIdLineItemRequest{ - ApiService: a, - ctx: ctx, - stockLineItemId: stockLineItemId, +func (a *HasOneApiService) GETStockReservationIdSku(ctx context.Context, stockReservationId interface{}) HasOneApiGETStockReservationIdSkuRequest { + return HasOneApiGETStockReservationIdSkuRequest{ + ApiService: a, + ctx: ctx, + stockReservationId: stockReservationId, } } // Execute executes the request -func (a *HasOneApiService) GETStockLineItemIdLineItemExecute(r HasOneApiGETStockLineItemIdLineItemRequest) (*http.Response, error) { +func (a *HasOneApiService) GETStockReservationIdSkuExecute(r HasOneApiGETStockReservationIdSkuRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockLineItemIdLineItem") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockReservationIdSku") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/stock_line_items/{stockLineItemId}/line_item" - localVarPath = strings.Replace(localVarPath, "{"+"stockLineItemId"+"}", url.PathEscape(parameterValueToString(r.stockLineItemId, "stockLineItemId")), -1) + localVarPath := localBasePath + "/stock_reservations/{stockReservationId}/sku" + localVarPath = strings.Replace(localVarPath, "{"+"stockReservationId"+"}", url.PathEscape(parameterValueToString(r.stockReservationId, "stockReservationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -13915,48 +18055,48 @@ func (a *HasOneApiService) GETStockLineItemIdLineItemExecute(r HasOneApiGETStock return localVarHTTPResponse, nil } -type HasOneApiGETStockLineItemIdShipmentRequest struct { - ctx context.Context - ApiService *HasOneApiService - stockLineItemId interface{} +type HasOneApiGETStockReservationIdStockItemRequest struct { + ctx context.Context + ApiService *HasOneApiService + stockReservationId interface{} } -func (r HasOneApiGETStockLineItemIdShipmentRequest) Execute() (*http.Response, error) { - return r.ApiService.GETStockLineItemIdShipmentExecute(r) +func (r HasOneApiGETStockReservationIdStockItemRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockReservationIdStockItemExecute(r) } /* -GETStockLineItemIdShipment Retrieve the shipment associated to the stock line item +GETStockReservationIdStockItem Retrieve the stock item associated to the stock reservation -Retrieve the shipment associated to the stock line item +Retrieve the stock item associated to the stock reservation @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stockLineItemId The resource's id - @return HasOneApiGETStockLineItemIdShipmentRequest + @param stockReservationId The resource's id + @return HasOneApiGETStockReservationIdStockItemRequest */ -func (a *HasOneApiService) GETStockLineItemIdShipment(ctx context.Context, stockLineItemId interface{}) HasOneApiGETStockLineItemIdShipmentRequest { - return HasOneApiGETStockLineItemIdShipmentRequest{ - ApiService: a, - ctx: ctx, - stockLineItemId: stockLineItemId, +func (a *HasOneApiService) GETStockReservationIdStockItem(ctx context.Context, stockReservationId interface{}) HasOneApiGETStockReservationIdStockItemRequest { + return HasOneApiGETStockReservationIdStockItemRequest{ + ApiService: a, + ctx: ctx, + stockReservationId: stockReservationId, } } // Execute executes the request -func (a *HasOneApiService) GETStockLineItemIdShipmentExecute(r HasOneApiGETStockLineItemIdShipmentRequest) (*http.Response, error) { +func (a *HasOneApiService) GETStockReservationIdStockItemExecute(r HasOneApiGETStockReservationIdStockItemRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockLineItemIdShipment") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockReservationIdStockItem") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/stock_line_items/{stockLineItemId}/shipment" - localVarPath = strings.Replace(localVarPath, "{"+"stockLineItemId"+"}", url.PathEscape(parameterValueToString(r.stockLineItemId, "stockLineItemId")), -1) + localVarPath := localBasePath + "/stock_reservations/{stockReservationId}/stock_item" + localVarPath = strings.Replace(localVarPath, "{"+"stockReservationId"+"}", url.PathEscape(parameterValueToString(r.stockReservationId, "stockReservationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -14007,48 +18147,48 @@ func (a *HasOneApiService) GETStockLineItemIdShipmentExecute(r HasOneApiGETStock return localVarHTTPResponse, nil } -type HasOneApiGETStockLineItemIdStockItemRequest struct { - ctx context.Context - ApiService *HasOneApiService - stockLineItemId interface{} +type HasOneApiGETStockReservationIdStockLineItemRequest struct { + ctx context.Context + ApiService *HasOneApiService + stockReservationId interface{} } -func (r HasOneApiGETStockLineItemIdStockItemRequest) Execute() (*http.Response, error) { - return r.ApiService.GETStockLineItemIdStockItemExecute(r) +func (r HasOneApiGETStockReservationIdStockLineItemRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockReservationIdStockLineItemExecute(r) } /* -GETStockLineItemIdStockItem Retrieve the stock item associated to the stock line item +GETStockReservationIdStockLineItem Retrieve the stock line item associated to the stock reservation -Retrieve the stock item associated to the stock line item +Retrieve the stock line item associated to the stock reservation @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stockLineItemId The resource's id - @return HasOneApiGETStockLineItemIdStockItemRequest + @param stockReservationId The resource's id + @return HasOneApiGETStockReservationIdStockLineItemRequest */ -func (a *HasOneApiService) GETStockLineItemIdStockItem(ctx context.Context, stockLineItemId interface{}) HasOneApiGETStockLineItemIdStockItemRequest { - return HasOneApiGETStockLineItemIdStockItemRequest{ - ApiService: a, - ctx: ctx, - stockLineItemId: stockLineItemId, +func (a *HasOneApiService) GETStockReservationIdStockLineItem(ctx context.Context, stockReservationId interface{}) HasOneApiGETStockReservationIdStockLineItemRequest { + return HasOneApiGETStockReservationIdStockLineItemRequest{ + ApiService: a, + ctx: ctx, + stockReservationId: stockReservationId, } } // Execute executes the request -func (a *HasOneApiService) GETStockLineItemIdStockItemExecute(r HasOneApiGETStockLineItemIdStockItemRequest) (*http.Response, error) { +func (a *HasOneApiService) GETStockReservationIdStockLineItemExecute(r HasOneApiGETStockReservationIdStockLineItemRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockLineItemIdStockItem") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockReservationIdStockLineItem") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/stock_line_items/{stockLineItemId}/stock_item" - localVarPath = strings.Replace(localVarPath, "{"+"stockLineItemId"+"}", url.PathEscape(parameterValueToString(r.stockLineItemId, "stockLineItemId")), -1) + localVarPath := localBasePath + "/stock_reservations/{stockReservationId}/stock_line_item" + localVarPath = strings.Replace(localVarPath, "{"+"stockReservationId"+"}", url.PathEscape(parameterValueToString(r.stockReservationId, "stockReservationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -14099,48 +18239,48 @@ func (a *HasOneApiService) GETStockLineItemIdStockItemExecute(r HasOneApiGETStoc return localVarHTTPResponse, nil } -type HasOneApiGETStockLocationIdAddressRequest struct { - ctx context.Context - ApiService *HasOneApiService - stockLocationId interface{} +type HasOneApiGETStockReservationIdStockTransferRequest struct { + ctx context.Context + ApiService *HasOneApiService + stockReservationId interface{} } -func (r HasOneApiGETStockLocationIdAddressRequest) Execute() (*http.Response, error) { - return r.ApiService.GETStockLocationIdAddressExecute(r) +func (r HasOneApiGETStockReservationIdStockTransferRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockReservationIdStockTransferExecute(r) } /* -GETStockLocationIdAddress Retrieve the address associated to the stock location +GETStockReservationIdStockTransfer Retrieve the stock transfer associated to the stock reservation -Retrieve the address associated to the stock location +Retrieve the stock transfer associated to the stock reservation @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param stockLocationId The resource's id - @return HasOneApiGETStockLocationIdAddressRequest + @param stockReservationId The resource's id + @return HasOneApiGETStockReservationIdStockTransferRequest */ -func (a *HasOneApiService) GETStockLocationIdAddress(ctx context.Context, stockLocationId interface{}) HasOneApiGETStockLocationIdAddressRequest { - return HasOneApiGETStockLocationIdAddressRequest{ - ApiService: a, - ctx: ctx, - stockLocationId: stockLocationId, +func (a *HasOneApiService) GETStockReservationIdStockTransfer(ctx context.Context, stockReservationId interface{}) HasOneApiGETStockReservationIdStockTransferRequest { + return HasOneApiGETStockReservationIdStockTransferRequest{ + ApiService: a, + ctx: ctx, + stockReservationId: stockReservationId, } } // Execute executes the request -func (a *HasOneApiService) GETStockLocationIdAddressExecute(r HasOneApiGETStockLocationIdAddressRequest) (*http.Response, error) { +func (a *HasOneApiService) GETStockReservationIdStockTransferExecute(r HasOneApiGETStockReservationIdStockTransferRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockLocationIdAddress") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockReservationIdStockTransfer") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/stock_locations/{stockLocationId}/address" - localVarPath = strings.Replace(localVarPath, "{"+"stockLocationId"+"}", url.PathEscape(parameterValueToString(r.stockLocationId, "stockLocationId")), -1) + localVarPath := localBasePath + "/stock_reservations/{stockReservationId}/stock_transfer" + localVarPath = strings.Replace(localVarPath, "{"+"stockReservationId"+"}", url.PathEscape(parameterValueToString(r.stockReservationId, "stockReservationId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -14651,6 +18791,98 @@ func (a *HasOneApiService) GETStockTransferIdSkuExecute(r HasOneApiGETStockTrans return localVarHTTPResponse, nil } +type HasOneApiGETStockTransferIdStockReservationRequest struct { + ctx context.Context + ApiService *HasOneApiService + stockTransferId interface{} +} + +func (r HasOneApiGETStockTransferIdStockReservationRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockTransferIdStockReservationExecute(r) +} + +/* +GETStockTransferIdStockReservation Retrieve the stock reservation associated to the stock transfer + +Retrieve the stock reservation associated to the stock transfer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockTransferId The resource's id + @return HasOneApiGETStockTransferIdStockReservationRequest +*/ +func (a *HasOneApiService) GETStockTransferIdStockReservation(ctx context.Context, stockTransferId interface{}) HasOneApiGETStockTransferIdStockReservationRequest { + return HasOneApiGETStockTransferIdStockReservationRequest{ + ApiService: a, + ctx: ctx, + stockTransferId: stockTransferId, + } +} + +// Execute executes the request +func (a *HasOneApiService) GETStockTransferIdStockReservationExecute(r HasOneApiGETStockTransferIdStockReservationRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HasOneApiService.GETStockTransferIdStockReservation") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_transfers/{stockTransferId}/stock_reservation" + localVarPath = strings.Replace(localVarPath, "{"+"stockTransferId"+"}", url.PathEscape(parameterValueToString(r.stockTransferId, "stockTransferId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type HasOneApiGETStripePaymentIdOrderRequest struct { ctx context.Context ApiService *HasOneApiService diff --git a/api/api_imports.go b/api/api_imports.go index 922e1c24..da314444 100644 --- a/api/api_imports.go +++ b/api/api_imports.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -319,6 +319,121 @@ func (a *ImportsApiService) GETImportsImportIdExecute(r ImportsApiGETImportsImpo return localVarReturnValue, localVarHTTPResponse, nil } +type ImportsApiPATCHImportsImportIdRequest struct { + ctx context.Context + ApiService *ImportsApiService + importUpdate *ImportUpdate + importId interface{} +} + +func (r ImportsApiPATCHImportsImportIdRequest) ImportUpdate(importUpdate ImportUpdate) ImportsApiPATCHImportsImportIdRequest { + r.importUpdate = &importUpdate + return r +} + +func (r ImportsApiPATCHImportsImportIdRequest) Execute() (*PATCHImportsImportId200Response, *http.Response, error) { + return r.ApiService.PATCHImportsImportIdExecute(r) +} + +/* +PATCHImportsImportId Update an import + +Update an import + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param importId The resource's id + @return ImportsApiPATCHImportsImportIdRequest +*/ +func (a *ImportsApiService) PATCHImportsImportId(ctx context.Context, importId interface{}) ImportsApiPATCHImportsImportIdRequest { + return ImportsApiPATCHImportsImportIdRequest{ + ApiService: a, + ctx: ctx, + importId: importId, + } +} + +// Execute executes the request +// +// @return PATCHImportsImportId200Response +func (a *ImportsApiService) PATCHImportsImportIdExecute(r ImportsApiPATCHImportsImportIdRequest) (*PATCHImportsImportId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PATCHImportsImportId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ImportsApiService.PATCHImportsImportId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/imports/{importId}" + localVarPath = strings.Replace(localVarPath, "{"+"importId"+"}", url.PathEscape(parameterValueToString(r.importId, "importId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.importUpdate == nil { + return localVarReturnValue, nil, reportError("importUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.importUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ImportsApiPOSTImportsRequest struct { ctx context.Context ApiService *ImportsApiService diff --git a/api/api_in_stock_subscriptions.go b/api/api_in_stock_subscriptions.go index 972d1d6a..9e5a2861 100644 --- a/api/api_in_stock_subscriptions.go +++ b/api/api_in_stock_subscriptions.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_inventory_models.go b/api/api_inventory_models.go index 6c2dd31b..0bf24b40 100644 --- a/api/api_inventory_models.go +++ b/api/api_inventory_models.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_inventory_return_locations.go b/api/api_inventory_return_locations.go index 2c1f8f4f..c0b1ac6f 100644 --- a/api/api_inventory_return_locations.go +++ b/api/api_inventory_return_locations.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_inventory_stock_locations.go b/api/api_inventory_stock_locations.go index 094bb8ba..dd8e220d 100644 --- a/api/api_inventory_stock_locations.go +++ b/api/api_inventory_stock_locations.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -411,6 +411,98 @@ func (a *InventoryStockLocationsApiService) GETInventoryStockLocationsInventoryS return localVarReturnValue, localVarHTTPResponse, nil } +type InventoryStockLocationsApiGETShipmentIdInventoryStockLocationRequest struct { + ctx context.Context + ApiService *InventoryStockLocationsApiService + shipmentId interface{} +} + +func (r InventoryStockLocationsApiGETShipmentIdInventoryStockLocationRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdInventoryStockLocationExecute(r) +} + +/* +GETShipmentIdInventoryStockLocation Retrieve the inventory stock location associated to the shipment + +Retrieve the inventory stock location associated to the shipment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param shipmentId The resource's id + @return InventoryStockLocationsApiGETShipmentIdInventoryStockLocationRequest +*/ +func (a *InventoryStockLocationsApiService) GETShipmentIdInventoryStockLocation(ctx context.Context, shipmentId interface{}) InventoryStockLocationsApiGETShipmentIdInventoryStockLocationRequest { + return InventoryStockLocationsApiGETShipmentIdInventoryStockLocationRequest{ + ApiService: a, + ctx: ctx, + shipmentId: shipmentId, + } +} + +// Execute executes the request +func (a *InventoryStockLocationsApiService) GETShipmentIdInventoryStockLocationExecute(r InventoryStockLocationsApiGETShipmentIdInventoryStockLocationRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InventoryStockLocationsApiService.GETShipmentIdInventoryStockLocation") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/shipments/{shipmentId}/inventory_stock_location" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type InventoryStockLocationsApiGETStockLocationIdInventoryStockLocationsRequest struct { ctx context.Context ApiService *InventoryStockLocationsApiService diff --git a/api/api_klarna_gateways.go b/api/api_klarna_gateways.go index 8a5cf590..75fee661 100644 --- a/api/api_klarna_gateways.go +++ b/api/api_klarna_gateways.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_klarna_payments.go b/api/api_klarna_payments.go index 431cc588..173736c6 100644 --- a/api/api_klarna_payments.go +++ b/api/api_klarna_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_line_item_options.go b/api/api_line_item_options.go index 5712c8f4..5045fa93 100644 --- a/api/api_line_item_options.go +++ b/api/api_line_item_options.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -411,6 +411,98 @@ func (a *LineItemOptionsApiService) GETLineItemOptionsLineItemOptionIdExecute(r return localVarReturnValue, localVarHTTPResponse, nil } +type LineItemOptionsApiGETOrderIdLineItemOptionsRequest struct { + ctx context.Context + ApiService *LineItemOptionsApiService + orderId interface{} +} + +func (r LineItemOptionsApiGETOrderIdLineItemOptionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdLineItemOptionsExecute(r) +} + +/* +GETOrderIdLineItemOptions Retrieve the line item options associated to the order + +Retrieve the line item options associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return LineItemOptionsApiGETOrderIdLineItemOptionsRequest +*/ +func (a *LineItemOptionsApiService) GETOrderIdLineItemOptions(ctx context.Context, orderId interface{}) LineItemOptionsApiGETOrderIdLineItemOptionsRequest { + return LineItemOptionsApiGETOrderIdLineItemOptionsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *LineItemOptionsApiService) GETOrderIdLineItemOptionsExecute(r LineItemOptionsApiGETOrderIdLineItemOptionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LineItemOptionsApiService.GETOrderIdLineItemOptions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/line_item_options" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type LineItemOptionsApiPATCHLineItemOptionsLineItemOptionIdRequest struct { ctx context.Context ApiService *LineItemOptionsApiService diff --git a/api/api_line_items.go b/api/api_line_items.go index 7d422360..7dc94b27 100644 --- a/api/api_line_items.go +++ b/api/api_line_items.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -503,6 +503,98 @@ func (a *LineItemsApiService) GETOrderIdLineItemsExecute(r LineItemsApiGETOrderI return localVarHTTPResponse, nil } +type LineItemsApiGETOrderSubscriptionItemIdSourceLineItemRequest struct { + ctx context.Context + ApiService *LineItemsApiService + orderSubscriptionItemId interface{} +} + +func (r LineItemsApiGETOrderSubscriptionItemIdSourceLineItemRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderSubscriptionItemIdSourceLineItemExecute(r) +} + +/* +GETOrderSubscriptionItemIdSourceLineItem Retrieve the source line item associated to the order subscription item + +Retrieve the source line item associated to the order subscription item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderSubscriptionItemId The resource's id + @return LineItemsApiGETOrderSubscriptionItemIdSourceLineItemRequest +*/ +func (a *LineItemsApiService) GETOrderSubscriptionItemIdSourceLineItem(ctx context.Context, orderSubscriptionItemId interface{}) LineItemsApiGETOrderSubscriptionItemIdSourceLineItemRequest { + return LineItemsApiGETOrderSubscriptionItemIdSourceLineItemRequest{ + ApiService: a, + ctx: ctx, + orderSubscriptionItemId: orderSubscriptionItemId, + } +} + +// Execute executes the request +func (a *LineItemsApiService) GETOrderSubscriptionItemIdSourceLineItemExecute(r LineItemsApiGETOrderSubscriptionItemIdSourceLineItemRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LineItemsApiService.GETOrderSubscriptionItemIdSourceLineItem") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_subscription_items/{orderSubscriptionItemId}/source_line_item" + localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionItemId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionItemId, "orderSubscriptionItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type LineItemsApiGETReturnLineItemIdLineItemRequest struct { ctx context.Context ApiService *LineItemsApiService @@ -595,6 +687,98 @@ func (a *LineItemsApiService) GETReturnLineItemIdLineItemExecute(r LineItemsApiG return localVarHTTPResponse, nil } +type LineItemsApiGETShipmentIdLineItemsRequest struct { + ctx context.Context + ApiService *LineItemsApiService + shipmentId interface{} +} + +func (r LineItemsApiGETShipmentIdLineItemsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdLineItemsExecute(r) +} + +/* +GETShipmentIdLineItems Retrieve the line items associated to the shipment + +Retrieve the line items associated to the shipment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param shipmentId The resource's id + @return LineItemsApiGETShipmentIdLineItemsRequest +*/ +func (a *LineItemsApiService) GETShipmentIdLineItems(ctx context.Context, shipmentId interface{}) LineItemsApiGETShipmentIdLineItemsRequest { + return LineItemsApiGETShipmentIdLineItemsRequest{ + ApiService: a, + ctx: ctx, + shipmentId: shipmentId, + } +} + +// Execute executes the request +func (a *LineItemsApiService) GETShipmentIdLineItemsExecute(r LineItemsApiGETShipmentIdLineItemsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LineItemsApiService.GETShipmentIdLineItems") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/shipments/{shipmentId}/line_items" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type LineItemsApiGETStockLineItemIdLineItemRequest struct { ctx context.Context ApiService *LineItemsApiService @@ -687,6 +871,98 @@ func (a *LineItemsApiService) GETStockLineItemIdLineItemExecute(r LineItemsApiGE return localVarHTTPResponse, nil } +type LineItemsApiGETStockReservationIdLineItemRequest struct { + ctx context.Context + ApiService *LineItemsApiService + stockReservationId interface{} +} + +func (r LineItemsApiGETStockReservationIdLineItemRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockReservationIdLineItemExecute(r) +} + +/* +GETStockReservationIdLineItem Retrieve the line item associated to the stock reservation + +Retrieve the line item associated to the stock reservation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockReservationId The resource's id + @return LineItemsApiGETStockReservationIdLineItemRequest +*/ +func (a *LineItemsApiService) GETStockReservationIdLineItem(ctx context.Context, stockReservationId interface{}) LineItemsApiGETStockReservationIdLineItemRequest { + return LineItemsApiGETStockReservationIdLineItemRequest{ + ApiService: a, + ctx: ctx, + stockReservationId: stockReservationId, + } +} + +// Execute executes the request +func (a *LineItemsApiService) GETStockReservationIdLineItemExecute(r LineItemsApiGETStockReservationIdLineItemRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LineItemsApiService.GETStockReservationIdLineItem") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_reservations/{stockReservationId}/line_item" + localVarPath = strings.Replace(localVarPath, "{"+"stockReservationId"+"}", url.PathEscape(parameterValueToString(r.stockReservationId, "stockReservationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type LineItemsApiGETStockTransferIdLineItemRequest struct { ctx context.Context ApiService *LineItemsApiService diff --git a/api/api_links.go b/api/api_links.go new file mode 100644 index 00000000..09c7b93f --- /dev/null +++ b/api/api_links.go @@ -0,0 +1,822 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// LinksApiService LinksApi service +type LinksApiService service + +type LinksApiDELETELinksLinkIdRequest struct { + ctx context.Context + ApiService *LinksApiService + linkId interface{} +} + +func (r LinksApiDELETELinksLinkIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DELETELinksLinkIdExecute(r) +} + +/* +DELETELinksLinkId Delete a link + +Delete a link + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param linkId The resource's id + @return LinksApiDELETELinksLinkIdRequest +*/ +func (a *LinksApiService) DELETELinksLinkId(ctx context.Context, linkId interface{}) LinksApiDELETELinksLinkIdRequest { + return LinksApiDELETELinksLinkIdRequest{ + ApiService: a, + ctx: ctx, + linkId: linkId, + } +} + +// Execute executes the request +func (a *LinksApiService) DELETELinksLinkIdExecute(r LinksApiDELETELinksLinkIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LinksApiService.DELETELinksLinkId") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/links/{linkId}" + localVarPath = strings.Replace(localVarPath, "{"+"linkId"+"}", url.PathEscape(parameterValueToString(r.linkId, "linkId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type LinksApiGETLinksRequest struct { + ctx context.Context + ApiService *LinksApiService +} + +func (r LinksApiGETLinksRequest) Execute() (*GETLinks200Response, *http.Response, error) { + return r.ApiService.GETLinksExecute(r) +} + +/* +GETLinks List all links + +List all links + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return LinksApiGETLinksRequest +*/ +func (a *LinksApiService) GETLinks(ctx context.Context) LinksApiGETLinksRequest { + return LinksApiGETLinksRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GETLinks200Response +func (a *LinksApiService) GETLinksExecute(r LinksApiGETLinksRequest) (*GETLinks200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETLinks200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LinksApiService.GETLinks") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/links" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type LinksApiGETLinksLinkIdRequest struct { + ctx context.Context + ApiService *LinksApiService + linkId interface{} +} + +func (r LinksApiGETLinksLinkIdRequest) Execute() (*GETLinksLinkId200Response, *http.Response, error) { + return r.ApiService.GETLinksLinkIdExecute(r) +} + +/* +GETLinksLinkId Retrieve a link + +Retrieve a link + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param linkId The resource's id + @return LinksApiGETLinksLinkIdRequest +*/ +func (a *LinksApiService) GETLinksLinkId(ctx context.Context, linkId interface{}) LinksApiGETLinksLinkIdRequest { + return LinksApiGETLinksLinkIdRequest{ + ApiService: a, + ctx: ctx, + linkId: linkId, + } +} + +// Execute executes the request +// +// @return GETLinksLinkId200Response +func (a *LinksApiService) GETLinksLinkIdExecute(r LinksApiGETLinksLinkIdRequest) (*GETLinksLinkId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETLinksLinkId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LinksApiService.GETLinksLinkId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/links/{linkId}" + localVarPath = strings.Replace(localVarPath, "{"+"linkId"+"}", url.PathEscape(parameterValueToString(r.linkId, "linkId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type LinksApiGETOrderIdLinksRequest struct { + ctx context.Context + ApiService *LinksApiService + orderId interface{} +} + +func (r LinksApiGETOrderIdLinksRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdLinksExecute(r) +} + +/* +GETOrderIdLinks Retrieve the links associated to the order + +Retrieve the links associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return LinksApiGETOrderIdLinksRequest +*/ +func (a *LinksApiService) GETOrderIdLinks(ctx context.Context, orderId interface{}) LinksApiGETOrderIdLinksRequest { + return LinksApiGETOrderIdLinksRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *LinksApiService) GETOrderIdLinksExecute(r LinksApiGETOrderIdLinksRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LinksApiService.GETOrderIdLinks") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/links" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type LinksApiGETSkuIdLinksRequest struct { + ctx context.Context + ApiService *LinksApiService + skuId interface{} +} + +func (r LinksApiGETSkuIdLinksRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdLinksExecute(r) +} + +/* +GETSkuIdLinks Retrieve the links associated to the SKU + +Retrieve the links associated to the SKU + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param skuId The resource's id + @return LinksApiGETSkuIdLinksRequest +*/ +func (a *LinksApiService) GETSkuIdLinks(ctx context.Context, skuId interface{}) LinksApiGETSkuIdLinksRequest { + return LinksApiGETSkuIdLinksRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, + } +} + +// Execute executes the request +func (a *LinksApiService) GETSkuIdLinksExecute(r LinksApiGETSkuIdLinksRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LinksApiService.GETSkuIdLinks") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/skus/{skuId}/links" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type LinksApiGETSkuListIdLinksRequest struct { + ctx context.Context + ApiService *LinksApiService + skuListId interface{} +} + +func (r LinksApiGETSkuListIdLinksRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuListIdLinksExecute(r) +} + +/* +GETSkuListIdLinks Retrieve the links associated to the SKU list + +Retrieve the links associated to the SKU list + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param skuListId The resource's id + @return LinksApiGETSkuListIdLinksRequest +*/ +func (a *LinksApiService) GETSkuListIdLinks(ctx context.Context, skuListId interface{}) LinksApiGETSkuListIdLinksRequest { + return LinksApiGETSkuListIdLinksRequest{ + ApiService: a, + ctx: ctx, + skuListId: skuListId, + } +} + +// Execute executes the request +func (a *LinksApiService) GETSkuListIdLinksExecute(r LinksApiGETSkuListIdLinksRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LinksApiService.GETSkuListIdLinks") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/sku_lists/{skuListId}/links" + localVarPath = strings.Replace(localVarPath, "{"+"skuListId"+"}", url.PathEscape(parameterValueToString(r.skuListId, "skuListId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type LinksApiPATCHLinksLinkIdRequest struct { + ctx context.Context + ApiService *LinksApiService + linkUpdate *LinkUpdate + linkId interface{} +} + +func (r LinksApiPATCHLinksLinkIdRequest) LinkUpdate(linkUpdate LinkUpdate) LinksApiPATCHLinksLinkIdRequest { + r.linkUpdate = &linkUpdate + return r +} + +func (r LinksApiPATCHLinksLinkIdRequest) Execute() (*PATCHLinksLinkId200Response, *http.Response, error) { + return r.ApiService.PATCHLinksLinkIdExecute(r) +} + +/* +PATCHLinksLinkId Update a link + +Update a link + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param linkId The resource's id + @return LinksApiPATCHLinksLinkIdRequest +*/ +func (a *LinksApiService) PATCHLinksLinkId(ctx context.Context, linkId interface{}) LinksApiPATCHLinksLinkIdRequest { + return LinksApiPATCHLinksLinkIdRequest{ + ApiService: a, + ctx: ctx, + linkId: linkId, + } +} + +// Execute executes the request +// +// @return PATCHLinksLinkId200Response +func (a *LinksApiService) PATCHLinksLinkIdExecute(r LinksApiPATCHLinksLinkIdRequest) (*PATCHLinksLinkId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PATCHLinksLinkId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LinksApiService.PATCHLinksLinkId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/links/{linkId}" + localVarPath = strings.Replace(localVarPath, "{"+"linkId"+"}", url.PathEscape(parameterValueToString(r.linkId, "linkId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.linkUpdate == nil { + return localVarReturnValue, nil, reportError("linkUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.linkUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type LinksApiPOSTLinksRequest struct { + ctx context.Context + ApiService *LinksApiService + linkCreate *LinkCreate +} + +func (r LinksApiPOSTLinksRequest) LinkCreate(linkCreate LinkCreate) LinksApiPOSTLinksRequest { + r.linkCreate = &linkCreate + return r +} + +func (r LinksApiPOSTLinksRequest) Execute() (*POSTLinks201Response, *http.Response, error) { + return r.ApiService.POSTLinksExecute(r) +} + +/* +POSTLinks Create a link + +Create a link + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return LinksApiPOSTLinksRequest +*/ +func (a *LinksApiService) POSTLinks(ctx context.Context) LinksApiPOSTLinksRequest { + return LinksApiPOSTLinksRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return POSTLinks201Response +func (a *LinksApiService) POSTLinksExecute(r LinksApiPOSTLinksRequest) (*POSTLinks201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *POSTLinks201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LinksApiService.POSTLinks") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/links" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.linkCreate == nil { + return localVarReturnValue, nil, reportError("linkCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.linkCreate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api/api_manual_gateways.go b/api/api_manual_gateways.go index efbc6c1f..13406dbd 100644 --- a/api/api_manual_gateways.go +++ b/api/api_manual_gateways.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_manual_tax_calculators.go b/api/api_manual_tax_calculators.go index faecaf44..44a37c40 100644 --- a/api/api_manual_tax_calculators.go +++ b/api/api_manual_tax_calculators.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_markets.go b/api/api_markets.go index 0d0a19ed..b51c4a18 100644 --- a/api/api_markets.go +++ b/api/api_markets.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -299,6 +299,98 @@ func (a *MarketsApiService) GETBillingInfoValidationRuleIdMarketExecute(r Market return localVarHTTPResponse, nil } +type MarketsApiGETBingGeocoderIdMarketsRequest struct { + ctx context.Context + ApiService *MarketsApiService + bingGeocoderId interface{} +} + +func (r MarketsApiGETBingGeocoderIdMarketsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBingGeocoderIdMarketsExecute(r) +} + +/* +GETBingGeocoderIdMarkets Retrieve the markets associated to the bing geocoder + +Retrieve the markets associated to the bing geocoder + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param bingGeocoderId The resource's id + @return MarketsApiGETBingGeocoderIdMarketsRequest +*/ +func (a *MarketsApiService) GETBingGeocoderIdMarkets(ctx context.Context, bingGeocoderId interface{}) MarketsApiGETBingGeocoderIdMarketsRequest { + return MarketsApiGETBingGeocoderIdMarketsRequest{ + ApiService: a, + ctx: ctx, + bingGeocoderId: bingGeocoderId, + } +} + +// Execute executes the request +func (a *MarketsApiService) GETBingGeocoderIdMarketsExecute(r MarketsApiGETBingGeocoderIdMarketsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarketsApiService.GETBingGeocoderIdMarkets") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/bing_geocoders/{bingGeocoderId}/markets" + localVarPath = strings.Replace(localVarPath, "{"+"bingGeocoderId"+"}", url.PathEscape(parameterValueToString(r.bingGeocoderId, "bingGeocoderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type MarketsApiGETBundleIdMarketRequest struct { ctx context.Context ApiService *MarketsApiService @@ -391,6 +483,98 @@ func (a *MarketsApiService) GETBundleIdMarketExecute(r MarketsApiGETBundleIdMark return localVarHTTPResponse, nil } +type MarketsApiGETBuyXPayYPromotionIdMarketRequest struct { + ctx context.Context + ApiService *MarketsApiService + buyXPayYPromotionId interface{} +} + +func (r MarketsApiGETBuyXPayYPromotionIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdMarketExecute(r) +} + +/* +GETBuyXPayYPromotionIdMarket Retrieve the market associated to the buy x pay y promotion + +Retrieve the market associated to the buy x pay y promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param buyXPayYPromotionId The resource's id + @return MarketsApiGETBuyXPayYPromotionIdMarketRequest +*/ +func (a *MarketsApiService) GETBuyXPayYPromotionIdMarket(ctx context.Context, buyXPayYPromotionId interface{}) MarketsApiGETBuyXPayYPromotionIdMarketRequest { + return MarketsApiGETBuyXPayYPromotionIdMarketRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, + } +} + +// Execute executes the request +func (a *MarketsApiService) GETBuyXPayYPromotionIdMarketExecute(r MarketsApiGETBuyXPayYPromotionIdMarketRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarketsApiService.GETBuyXPayYPromotionIdMarket") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type MarketsApiGETCarrierAccountIdMarketRequest struct { ctx context.Context ApiService *MarketsApiService @@ -1127,48 +1311,48 @@ func (a *MarketsApiService) GETFreeShippingPromotionIdMarketExecute(r MarketsApi return localVarHTTPResponse, nil } -type MarketsApiGETGiftCardIdMarketRequest struct { +type MarketsApiGETGeocoderIdMarketsRequest struct { ctx context.Context ApiService *MarketsApiService - giftCardId interface{} + geocoderId interface{} } -func (r MarketsApiGETGiftCardIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETGiftCardIdMarketExecute(r) +func (r MarketsApiGETGeocoderIdMarketsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGeocoderIdMarketsExecute(r) } /* -GETGiftCardIdMarket Retrieve the market associated to the gift card +GETGeocoderIdMarkets Retrieve the markets associated to the geocoder -Retrieve the market associated to the gift card +Retrieve the markets associated to the geocoder @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param giftCardId The resource's id - @return MarketsApiGETGiftCardIdMarketRequest + @param geocoderId The resource's id + @return MarketsApiGETGeocoderIdMarketsRequest */ -func (a *MarketsApiService) GETGiftCardIdMarket(ctx context.Context, giftCardId interface{}) MarketsApiGETGiftCardIdMarketRequest { - return MarketsApiGETGiftCardIdMarketRequest{ +func (a *MarketsApiService) GETGeocoderIdMarkets(ctx context.Context, geocoderId interface{}) MarketsApiGETGeocoderIdMarketsRequest { + return MarketsApiGETGeocoderIdMarketsRequest{ ApiService: a, ctx: ctx, - giftCardId: giftCardId, + geocoderId: geocoderId, } } // Execute executes the request -func (a *MarketsApiService) GETGiftCardIdMarketExecute(r MarketsApiGETGiftCardIdMarketRequest) (*http.Response, error) { +func (a *MarketsApiService) GETGeocoderIdMarketsExecute(r MarketsApiGETGeocoderIdMarketsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarketsApiService.GETGiftCardIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarketsApiService.GETGeocoderIdMarkets") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/gift_cards/{giftCardId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"giftCardId"+"}", url.PathEscape(parameterValueToString(r.giftCardId, "giftCardId")), -1) + localVarPath := localBasePath + "/geocoders/{geocoderId}/markets" + localVarPath = strings.Replace(localVarPath, "{"+"geocoderId"+"}", url.PathEscape(parameterValueToString(r.geocoderId, "geocoderId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1219,48 +1403,48 @@ func (a *MarketsApiService) GETGiftCardIdMarketExecute(r MarketsApiGETGiftCardId return localVarHTTPResponse, nil } -type MarketsApiGETInStockSubscriptionIdMarketRequest struct { - ctx context.Context - ApiService *MarketsApiService - inStockSubscriptionId interface{} +type MarketsApiGETGiftCardIdMarketRequest struct { + ctx context.Context + ApiService *MarketsApiService + giftCardId interface{} } -func (r MarketsApiGETInStockSubscriptionIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETInStockSubscriptionIdMarketExecute(r) +func (r MarketsApiGETGiftCardIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGiftCardIdMarketExecute(r) } /* -GETInStockSubscriptionIdMarket Retrieve the market associated to the in stock subscription +GETGiftCardIdMarket Retrieve the market associated to the gift card -Retrieve the market associated to the in stock subscription +Retrieve the market associated to the gift card @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param inStockSubscriptionId The resource's id - @return MarketsApiGETInStockSubscriptionIdMarketRequest + @param giftCardId The resource's id + @return MarketsApiGETGiftCardIdMarketRequest */ -func (a *MarketsApiService) GETInStockSubscriptionIdMarket(ctx context.Context, inStockSubscriptionId interface{}) MarketsApiGETInStockSubscriptionIdMarketRequest { - return MarketsApiGETInStockSubscriptionIdMarketRequest{ - ApiService: a, - ctx: ctx, - inStockSubscriptionId: inStockSubscriptionId, +func (a *MarketsApiService) GETGiftCardIdMarket(ctx context.Context, giftCardId interface{}) MarketsApiGETGiftCardIdMarketRequest { + return MarketsApiGETGiftCardIdMarketRequest{ + ApiService: a, + ctx: ctx, + giftCardId: giftCardId, } } // Execute executes the request -func (a *MarketsApiService) GETInStockSubscriptionIdMarketExecute(r MarketsApiGETInStockSubscriptionIdMarketRequest) (*http.Response, error) { +func (a *MarketsApiService) GETGiftCardIdMarketExecute(r MarketsApiGETGiftCardIdMarketRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarketsApiService.GETInStockSubscriptionIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarketsApiService.GETGiftCardIdMarket") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/in_stock_subscriptions/{inStockSubscriptionId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"inStockSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.inStockSubscriptionId, "inStockSubscriptionId")), -1) + localVarPath := localBasePath + "/gift_cards/{giftCardId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"giftCardId"+"}", url.PathEscape(parameterValueToString(r.giftCardId, "giftCardId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1311,48 +1495,48 @@ func (a *MarketsApiService) GETInStockSubscriptionIdMarketExecute(r MarketsApiGE return localVarHTTPResponse, nil } -type MarketsApiGETManualTaxCalculatorIdMarketsRequest struct { - ctx context.Context - ApiService *MarketsApiService - manualTaxCalculatorId interface{} +type MarketsApiGETGoogleGeocoderIdMarketsRequest struct { + ctx context.Context + ApiService *MarketsApiService + googleGeocoderId interface{} } -func (r MarketsApiGETManualTaxCalculatorIdMarketsRequest) Execute() (*http.Response, error) { - return r.ApiService.GETManualTaxCalculatorIdMarketsExecute(r) +func (r MarketsApiGETGoogleGeocoderIdMarketsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGoogleGeocoderIdMarketsExecute(r) } /* -GETManualTaxCalculatorIdMarkets Retrieve the markets associated to the manual tax calculator +GETGoogleGeocoderIdMarkets Retrieve the markets associated to the google geocoder -Retrieve the markets associated to the manual tax calculator +Retrieve the markets associated to the google geocoder @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param manualTaxCalculatorId The resource's id - @return MarketsApiGETManualTaxCalculatorIdMarketsRequest + @param googleGeocoderId The resource's id + @return MarketsApiGETGoogleGeocoderIdMarketsRequest */ -func (a *MarketsApiService) GETManualTaxCalculatorIdMarkets(ctx context.Context, manualTaxCalculatorId interface{}) MarketsApiGETManualTaxCalculatorIdMarketsRequest { - return MarketsApiGETManualTaxCalculatorIdMarketsRequest{ - ApiService: a, - ctx: ctx, - manualTaxCalculatorId: manualTaxCalculatorId, +func (a *MarketsApiService) GETGoogleGeocoderIdMarkets(ctx context.Context, googleGeocoderId interface{}) MarketsApiGETGoogleGeocoderIdMarketsRequest { + return MarketsApiGETGoogleGeocoderIdMarketsRequest{ + ApiService: a, + ctx: ctx, + googleGeocoderId: googleGeocoderId, } } // Execute executes the request -func (a *MarketsApiService) GETManualTaxCalculatorIdMarketsExecute(r MarketsApiGETManualTaxCalculatorIdMarketsRequest) (*http.Response, error) { +func (a *MarketsApiService) GETGoogleGeocoderIdMarketsExecute(r MarketsApiGETGoogleGeocoderIdMarketsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarketsApiService.GETManualTaxCalculatorIdMarkets") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarketsApiService.GETGoogleGeocoderIdMarkets") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/manual_tax_calculators/{manualTaxCalculatorId}/markets" - localVarPath = strings.Replace(localVarPath, "{"+"manualTaxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.manualTaxCalculatorId, "manualTaxCalculatorId")), -1) + localVarPath := localBasePath + "/google_geocoders/{googleGeocoderId}/markets" + localVarPath = strings.Replace(localVarPath, "{"+"googleGeocoderId"+"}", url.PathEscape(parameterValueToString(r.googleGeocoderId, "googleGeocoderId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1403,34 +1587,218 @@ func (a *MarketsApiService) GETManualTaxCalculatorIdMarketsExecute(r MarketsApiG return localVarHTTPResponse, nil } -type MarketsApiGETMarketsRequest struct { - ctx context.Context - ApiService *MarketsApiService +type MarketsApiGETInStockSubscriptionIdMarketRequest struct { + ctx context.Context + ApiService *MarketsApiService + inStockSubscriptionId interface{} } -func (r MarketsApiGETMarketsRequest) Execute() (*GETMarkets200Response, *http.Response, error) { - return r.ApiService.GETMarketsExecute(r) +func (r MarketsApiGETInStockSubscriptionIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInStockSubscriptionIdMarketExecute(r) } /* -GETMarkets List all markets +GETInStockSubscriptionIdMarket Retrieve the market associated to the in stock subscription -List all markets +Retrieve the market associated to the in stock subscription @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return MarketsApiGETMarketsRequest + @param inStockSubscriptionId The resource's id + @return MarketsApiGETInStockSubscriptionIdMarketRequest */ -func (a *MarketsApiService) GETMarkets(ctx context.Context) MarketsApiGETMarketsRequest { - return MarketsApiGETMarketsRequest{ - ApiService: a, - ctx: ctx, +func (a *MarketsApiService) GETInStockSubscriptionIdMarket(ctx context.Context, inStockSubscriptionId interface{}) MarketsApiGETInStockSubscriptionIdMarketRequest { + return MarketsApiGETInStockSubscriptionIdMarketRequest{ + ApiService: a, + ctx: ctx, + inStockSubscriptionId: inStockSubscriptionId, } } // Execute executes the request -// -// @return GETMarkets200Response -func (a *MarketsApiService) GETMarketsExecute(r MarketsApiGETMarketsRequest) (*GETMarkets200Response, *http.Response, error) { +func (a *MarketsApiService) GETInStockSubscriptionIdMarketExecute(r MarketsApiGETInStockSubscriptionIdMarketRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarketsApiService.GETInStockSubscriptionIdMarket") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/in_stock_subscriptions/{inStockSubscriptionId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"inStockSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.inStockSubscriptionId, "inStockSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type MarketsApiGETManualTaxCalculatorIdMarketsRequest struct { + ctx context.Context + ApiService *MarketsApiService + manualTaxCalculatorId interface{} +} + +func (r MarketsApiGETManualTaxCalculatorIdMarketsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETManualTaxCalculatorIdMarketsExecute(r) +} + +/* +GETManualTaxCalculatorIdMarkets Retrieve the markets associated to the manual tax calculator + +Retrieve the markets associated to the manual tax calculator + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param manualTaxCalculatorId The resource's id + @return MarketsApiGETManualTaxCalculatorIdMarketsRequest +*/ +func (a *MarketsApiService) GETManualTaxCalculatorIdMarkets(ctx context.Context, manualTaxCalculatorId interface{}) MarketsApiGETManualTaxCalculatorIdMarketsRequest { + return MarketsApiGETManualTaxCalculatorIdMarketsRequest{ + ApiService: a, + ctx: ctx, + manualTaxCalculatorId: manualTaxCalculatorId, + } +} + +// Execute executes the request +func (a *MarketsApiService) GETManualTaxCalculatorIdMarketsExecute(r MarketsApiGETManualTaxCalculatorIdMarketsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarketsApiService.GETManualTaxCalculatorIdMarkets") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/manual_tax_calculators/{manualTaxCalculatorId}/markets" + localVarPath = strings.Replace(localVarPath, "{"+"manualTaxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.manualTaxCalculatorId, "manualTaxCalculatorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type MarketsApiGETMarketsRequest struct { + ctx context.Context + ApiService *MarketsApiService +} + +func (r MarketsApiGETMarketsRequest) Execute() (*GETMarkets200Response, *http.Response, error) { + return r.ApiService.GETMarketsExecute(r) +} + +/* +GETMarkets List all markets + +List all markets + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return MarketsApiGETMarketsRequest +*/ +func (a *MarketsApiService) GETMarkets(ctx context.Context) MarketsApiGETMarketsRequest { + return MarketsApiGETMarketsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GETMarkets200Response +func (a *MarketsApiService) GETMarketsExecute(r MarketsApiGETMarketsRequest) (*GETMarkets200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1791,48 +2159,48 @@ func (a *MarketsApiService) GETOrderSubscriptionIdMarketExecute(r MarketsApiGETO return localVarHTTPResponse, nil } -type MarketsApiGETOrderValidationRuleIdMarketRequest struct { - ctx context.Context - ApiService *MarketsApiService - orderValidationRuleId interface{} +type MarketsApiGETPaymentMethodIdMarketRequest struct { + ctx context.Context + ApiService *MarketsApiService + paymentMethodId interface{} } -func (r MarketsApiGETOrderValidationRuleIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETOrderValidationRuleIdMarketExecute(r) +func (r MarketsApiGETPaymentMethodIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaymentMethodIdMarketExecute(r) } /* -GETOrderValidationRuleIdMarket Retrieve the market associated to the order validation rule +GETPaymentMethodIdMarket Retrieve the market associated to the payment method -Retrieve the market associated to the order validation rule +Retrieve the market associated to the payment method @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderValidationRuleId The resource's id - @return MarketsApiGETOrderValidationRuleIdMarketRequest + @param paymentMethodId The resource's id + @return MarketsApiGETPaymentMethodIdMarketRequest */ -func (a *MarketsApiService) GETOrderValidationRuleIdMarket(ctx context.Context, orderValidationRuleId interface{}) MarketsApiGETOrderValidationRuleIdMarketRequest { - return MarketsApiGETOrderValidationRuleIdMarketRequest{ - ApiService: a, - ctx: ctx, - orderValidationRuleId: orderValidationRuleId, +func (a *MarketsApiService) GETPaymentMethodIdMarket(ctx context.Context, paymentMethodId interface{}) MarketsApiGETPaymentMethodIdMarketRequest { + return MarketsApiGETPaymentMethodIdMarketRequest{ + ApiService: a, + ctx: ctx, + paymentMethodId: paymentMethodId, } } // Execute executes the request -func (a *MarketsApiService) GETOrderValidationRuleIdMarketExecute(r MarketsApiGETOrderValidationRuleIdMarketRequest) (*http.Response, error) { +func (a *MarketsApiService) GETPaymentMethodIdMarketExecute(r MarketsApiGETPaymentMethodIdMarketRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarketsApiService.GETOrderValidationRuleIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarketsApiService.GETPaymentMethodIdMarket") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/order_validation_rules/{orderValidationRuleId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"orderValidationRuleId"+"}", url.PathEscape(parameterValueToString(r.orderValidationRuleId, "orderValidationRuleId")), -1) + localVarPath := localBasePath + "/payment_methods/{paymentMethodId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"paymentMethodId"+"}", url.PathEscape(parameterValueToString(r.paymentMethodId, "paymentMethodId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1883,48 +2251,48 @@ func (a *MarketsApiService) GETOrderValidationRuleIdMarketExecute(r MarketsApiGE return localVarHTTPResponse, nil } -type MarketsApiGETPaymentMethodIdMarketRequest struct { - ctx context.Context - ApiService *MarketsApiService - paymentMethodId interface{} +type MarketsApiGETPercentageDiscountPromotionIdMarketRequest struct { + ctx context.Context + ApiService *MarketsApiService + percentageDiscountPromotionId interface{} } -func (r MarketsApiGETPaymentMethodIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPaymentMethodIdMarketExecute(r) +func (r MarketsApiGETPercentageDiscountPromotionIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPercentageDiscountPromotionIdMarketExecute(r) } /* -GETPaymentMethodIdMarket Retrieve the market associated to the payment method +GETPercentageDiscountPromotionIdMarket Retrieve the market associated to the percentage discount promotion -Retrieve the market associated to the payment method +Retrieve the market associated to the percentage discount promotion @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param paymentMethodId The resource's id - @return MarketsApiGETPaymentMethodIdMarketRequest + @param percentageDiscountPromotionId The resource's id + @return MarketsApiGETPercentageDiscountPromotionIdMarketRequest */ -func (a *MarketsApiService) GETPaymentMethodIdMarket(ctx context.Context, paymentMethodId interface{}) MarketsApiGETPaymentMethodIdMarketRequest { - return MarketsApiGETPaymentMethodIdMarketRequest{ - ApiService: a, - ctx: ctx, - paymentMethodId: paymentMethodId, +func (a *MarketsApiService) GETPercentageDiscountPromotionIdMarket(ctx context.Context, percentageDiscountPromotionId interface{}) MarketsApiGETPercentageDiscountPromotionIdMarketRequest { + return MarketsApiGETPercentageDiscountPromotionIdMarketRequest{ + ApiService: a, + ctx: ctx, + percentageDiscountPromotionId: percentageDiscountPromotionId, } } // Execute executes the request -func (a *MarketsApiService) GETPaymentMethodIdMarketExecute(r MarketsApiGETPaymentMethodIdMarketRequest) (*http.Response, error) { +func (a *MarketsApiService) GETPercentageDiscountPromotionIdMarketExecute(r MarketsApiGETPercentageDiscountPromotionIdMarketRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarketsApiService.GETPaymentMethodIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarketsApiService.GETPercentageDiscountPromotionIdMarket") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/payment_methods/{paymentMethodId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"paymentMethodId"+"}", url.PathEscape(parameterValueToString(r.paymentMethodId, "paymentMethodId")), -1) + localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1975,48 +2343,140 @@ func (a *MarketsApiService) GETPaymentMethodIdMarketExecute(r MarketsApiGETPayme return localVarHTTPResponse, nil } -type MarketsApiGETPercentageDiscountPromotionIdMarketRequest struct { - ctx context.Context - ApiService *MarketsApiService - percentageDiscountPromotionId interface{} +type MarketsApiGETPriceIdJwtMarketsRequest struct { + ctx context.Context + ApiService *MarketsApiService + priceId interface{} } -func (r MarketsApiGETPercentageDiscountPromotionIdMarketRequest) Execute() (*http.Response, error) { - return r.ApiService.GETPercentageDiscountPromotionIdMarketExecute(r) +func (r MarketsApiGETPriceIdJwtMarketsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceIdJwtMarketsExecute(r) } /* -GETPercentageDiscountPromotionIdMarket Retrieve the market associated to the percentage discount promotion +GETPriceIdJwtMarkets Retrieve the jwt markets associated to the price -Retrieve the market associated to the percentage discount promotion +Retrieve the jwt markets associated to the price @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param percentageDiscountPromotionId The resource's id - @return MarketsApiGETPercentageDiscountPromotionIdMarketRequest + @param priceId The resource's id + @return MarketsApiGETPriceIdJwtMarketsRequest */ -func (a *MarketsApiService) GETPercentageDiscountPromotionIdMarket(ctx context.Context, percentageDiscountPromotionId interface{}) MarketsApiGETPercentageDiscountPromotionIdMarketRequest { - return MarketsApiGETPercentageDiscountPromotionIdMarketRequest{ - ApiService: a, - ctx: ctx, - percentageDiscountPromotionId: percentageDiscountPromotionId, +func (a *MarketsApiService) GETPriceIdJwtMarkets(ctx context.Context, priceId interface{}) MarketsApiGETPriceIdJwtMarketsRequest { + return MarketsApiGETPriceIdJwtMarketsRequest{ + ApiService: a, + ctx: ctx, + priceId: priceId, } } // Execute executes the request -func (a *MarketsApiService) GETPercentageDiscountPromotionIdMarketExecute(r MarketsApiGETPercentageDiscountPromotionIdMarketRequest) (*http.Response, error) { +func (a *MarketsApiService) GETPriceIdJwtMarketsExecute(r MarketsApiGETPriceIdJwtMarketsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarketsApiService.GETPercentageDiscountPromotionIdMarket") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarketsApiService.GETPriceIdJwtMarkets") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/market" - localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + localVarPath := localBasePath + "/prices/{priceId}/jwt_markets" + localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type MarketsApiGETPriceListSchedulerIdMarketRequest struct { + ctx context.Context + ApiService *MarketsApiService + priceListSchedulerId interface{} +} + +func (r MarketsApiGETPriceListSchedulerIdMarketRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceListSchedulerIdMarketExecute(r) +} + +/* +GETPriceListSchedulerIdMarket Retrieve the market associated to the price list scheduler + +Retrieve the market associated to the price list scheduler + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceListSchedulerId The resource's id + @return MarketsApiGETPriceListSchedulerIdMarketRequest +*/ +func (a *MarketsApiService) GETPriceListSchedulerIdMarket(ctx context.Context, priceListSchedulerId interface{}) MarketsApiGETPriceListSchedulerIdMarketRequest { + return MarketsApiGETPriceListSchedulerIdMarketRequest{ + ApiService: a, + ctx: ctx, + priceListSchedulerId: priceListSchedulerId, + } +} + +// Execute executes the request +func (a *MarketsApiService) GETPriceListSchedulerIdMarketExecute(r MarketsApiGETPriceListSchedulerIdMarketRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarketsApiService.GETPriceListSchedulerIdMarket") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/price_list_schedulers/{priceListSchedulerId}/market" + localVarPath = strings.Replace(localVarPath, "{"+"priceListSchedulerId"+"}", url.PathEscape(parameterValueToString(r.priceListSchedulerId, "priceListSchedulerId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2251,6 +2711,98 @@ func (a *MarketsApiService) GETShippingMethodIdMarketExecute(r MarketsApiGETShip return localVarHTTPResponse, nil } +type MarketsApiGETSkuIdJwtMarketsRequest struct { + ctx context.Context + ApiService *MarketsApiService + skuId interface{} +} + +func (r MarketsApiGETSkuIdJwtMarketsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdJwtMarketsExecute(r) +} + +/* +GETSkuIdJwtMarkets Retrieve the jwt markets associated to the SKU + +Retrieve the jwt markets associated to the SKU + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param skuId The resource's id + @return MarketsApiGETSkuIdJwtMarketsRequest +*/ +func (a *MarketsApiService) GETSkuIdJwtMarkets(ctx context.Context, skuId interface{}) MarketsApiGETSkuIdJwtMarketsRequest { + return MarketsApiGETSkuIdJwtMarketsRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, + } +} + +// Execute executes the request +func (a *MarketsApiService) GETSkuIdJwtMarketsExecute(r MarketsApiGETSkuIdJwtMarketsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MarketsApiService.GETSkuIdJwtMarkets") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/skus/{skuId}/jwt_markets" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type MarketsApiGETSkuOptionIdMarketRequest struct { ctx context.Context ApiService *MarketsApiService diff --git a/api/api_merchants.go b/api/api_merchants.go index 2902f94c..be6dd3a6 100644 --- a/api/api_merchants.go +++ b/api/api_merchants.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_order_amount_promotion_rules.go b/api/api_order_amount_promotion_rules.go index a2321dd1..4565e442 100644 --- a/api/api_order_amount_promotion_rules.go +++ b/api/api_order_amount_promotion_rules.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -115,6 +115,98 @@ func (a *OrderAmountPromotionRulesApiService) DELETEOrderAmountPromotionRulesOrd return localVarHTTPResponse, nil } +type OrderAmountPromotionRulesApiGETBuyXPayYPromotionIdOrderAmountPromotionRuleRequest struct { + ctx context.Context + ApiService *OrderAmountPromotionRulesApiService + buyXPayYPromotionId interface{} +} + +func (r OrderAmountPromotionRulesApiGETBuyXPayYPromotionIdOrderAmountPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdOrderAmountPromotionRuleExecute(r) +} + +/* +GETBuyXPayYPromotionIdOrderAmountPromotionRule Retrieve the order amount promotion rule associated to the buy x pay y promotion + +Retrieve the order amount promotion rule associated to the buy x pay y promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param buyXPayYPromotionId The resource's id + @return OrderAmountPromotionRulesApiGETBuyXPayYPromotionIdOrderAmountPromotionRuleRequest +*/ +func (a *OrderAmountPromotionRulesApiService) GETBuyXPayYPromotionIdOrderAmountPromotionRule(ctx context.Context, buyXPayYPromotionId interface{}) OrderAmountPromotionRulesApiGETBuyXPayYPromotionIdOrderAmountPromotionRuleRequest { + return OrderAmountPromotionRulesApiGETBuyXPayYPromotionIdOrderAmountPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, + } +} + +// Execute executes the request +func (a *OrderAmountPromotionRulesApiService) GETBuyXPayYPromotionIdOrderAmountPromotionRuleExecute(r OrderAmountPromotionRulesApiGETBuyXPayYPromotionIdOrderAmountPromotionRuleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrderAmountPromotionRulesApiService.GETBuyXPayYPromotionIdOrderAmountPromotionRule") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/order_amount_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type OrderAmountPromotionRulesApiGETExternalPromotionIdOrderAmountPromotionRuleRequest struct { ctx context.Context ApiService *OrderAmountPromotionRulesApiService diff --git a/api/api_order_copies.go b/api/api_order_copies.go index ad26d938..e8c7fc2e 100644 --- a/api/api_order_copies.go +++ b/api/api_order_copies.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_order_factories.go b/api/api_order_factories.go index f2e28877..c163d47a 100644 --- a/api/api_order_factories.go +++ b/api/api_order_factories.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_order_subscription_items.go b/api/api_order_subscription_items.go index 1155e0d4..e79657db 100644 --- a/api/api_order_subscription_items.go +++ b/api/api_order_subscription_items.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_order_subscriptions.go b/api/api_order_subscriptions.go index 13cbab5f..2fc3e04c 100644 --- a/api/api_order_subscriptions.go +++ b/api/api_order_subscriptions.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -299,6 +299,98 @@ func (a *OrderSubscriptionsApiService) GETOrderCopyIdOrderSubscriptionExecute(r return localVarHTTPResponse, nil } +type OrderSubscriptionsApiGETOrderIdOrderSubscriptionRequest struct { + ctx context.Context + ApiService *OrderSubscriptionsApiService + orderId interface{} +} + +func (r OrderSubscriptionsApiGETOrderIdOrderSubscriptionRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdOrderSubscriptionExecute(r) +} + +/* +GETOrderIdOrderSubscription Retrieve the order subscription associated to the order + +Retrieve the order subscription associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return OrderSubscriptionsApiGETOrderIdOrderSubscriptionRequest +*/ +func (a *OrderSubscriptionsApiService) GETOrderIdOrderSubscription(ctx context.Context, orderId interface{}) OrderSubscriptionsApiGETOrderIdOrderSubscriptionRequest { + return OrderSubscriptionsApiGETOrderIdOrderSubscriptionRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *OrderSubscriptionsApiService) GETOrderIdOrderSubscriptionExecute(r OrderSubscriptionsApiGETOrderIdOrderSubscriptionRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrderSubscriptionsApiService.GETOrderIdOrderSubscription") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/order_subscription" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type OrderSubscriptionsApiGETOrderIdOrderSubscriptionsRequest struct { ctx context.Context ApiService *OrderSubscriptionsApiService diff --git a/api/api_order_validation_rules.go b/api/api_order_validation_rules.go deleted file mode 100644 index daf0ad30..00000000 --- a/api/api_order_validation_rules.go +++ /dev/null @@ -1,228 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" - "strings" -) - -// OrderValidationRulesApiService OrderValidationRulesApi service -type OrderValidationRulesApiService service - -type OrderValidationRulesApiGETOrderValidationRulesRequest struct { - ctx context.Context - ApiService *OrderValidationRulesApiService -} - -func (r OrderValidationRulesApiGETOrderValidationRulesRequest) Execute() (*GETOrderValidationRules200Response, *http.Response, error) { - return r.ApiService.GETOrderValidationRulesExecute(r) -} - -/* -GETOrderValidationRules List all order validation rules - -List all order validation rules - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OrderValidationRulesApiGETOrderValidationRulesRequest -*/ -func (a *OrderValidationRulesApiService) GETOrderValidationRules(ctx context.Context) OrderValidationRulesApiGETOrderValidationRulesRequest { - return OrderValidationRulesApiGETOrderValidationRulesRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return GETOrderValidationRules200Response -func (a *OrderValidationRulesApiService) GETOrderValidationRulesExecute(r OrderValidationRulesApiGETOrderValidationRulesRequest) (*GETOrderValidationRules200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GETOrderValidationRules200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrderValidationRulesApiService.GETOrderValidationRules") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/order_validation_rules" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type OrderValidationRulesApiGETOrderValidationRulesOrderValidationRuleIdRequest struct { - ctx context.Context - ApiService *OrderValidationRulesApiService - orderValidationRuleId interface{} -} - -func (r OrderValidationRulesApiGETOrderValidationRulesOrderValidationRuleIdRequest) Execute() (*GETOrderValidationRulesOrderValidationRuleId200Response, *http.Response, error) { - return r.ApiService.GETOrderValidationRulesOrderValidationRuleIdExecute(r) -} - -/* -GETOrderValidationRulesOrderValidationRuleId Retrieve an order validation rule - -Retrieve an order validation rule - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param orderValidationRuleId The resource's id - @return OrderValidationRulesApiGETOrderValidationRulesOrderValidationRuleIdRequest -*/ -func (a *OrderValidationRulesApiService) GETOrderValidationRulesOrderValidationRuleId(ctx context.Context, orderValidationRuleId interface{}) OrderValidationRulesApiGETOrderValidationRulesOrderValidationRuleIdRequest { - return OrderValidationRulesApiGETOrderValidationRulesOrderValidationRuleIdRequest{ - ApiService: a, - ctx: ctx, - orderValidationRuleId: orderValidationRuleId, - } -} - -// Execute executes the request -// -// @return GETOrderValidationRulesOrderValidationRuleId200Response -func (a *OrderValidationRulesApiService) GETOrderValidationRulesOrderValidationRuleIdExecute(r OrderValidationRulesApiGETOrderValidationRulesOrderValidationRuleIdRequest) (*GETOrderValidationRulesOrderValidationRuleId200Response, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GETOrderValidationRulesOrderValidationRuleId200Response - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrderValidationRulesApiService.GETOrderValidationRulesOrderValidationRuleId") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/order_validation_rules/{orderValidationRuleId}" - localVarPath = strings.Replace(localVarPath, "{"+"orderValidationRuleId"+"}", url.PathEscape(parameterValueToString(r.orderValidationRuleId, "orderValidationRuleId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/api/api_orders.go b/api/api_orders.go index 8240ceeb..a1ef1c3a 100644 --- a/api/api_orders.go +++ b/api/api_orders.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -1791,6 +1791,98 @@ func (a *OrdersApiService) GETOrdersOrderIdExecute(r OrdersApiGETOrdersOrderIdRe return localVarReturnValue, localVarHTTPResponse, nil } +type OrdersApiGETPaymentOptionIdOrderRequest struct { + ctx context.Context + ApiService *OrdersApiService + paymentOptionId interface{} +} + +func (r OrdersApiGETPaymentOptionIdOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaymentOptionIdOrderExecute(r) +} + +/* +GETPaymentOptionIdOrder Retrieve the order associated to the payment option + +Retrieve the order associated to the payment option + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param paymentOptionId The resource's id + @return OrdersApiGETPaymentOptionIdOrderRequest +*/ +func (a *OrdersApiService) GETPaymentOptionIdOrder(ctx context.Context, paymentOptionId interface{}) OrdersApiGETPaymentOptionIdOrderRequest { + return OrdersApiGETPaymentOptionIdOrderRequest{ + ApiService: a, + ctx: ctx, + paymentOptionId: paymentOptionId, + } +} + +// Execute executes the request +func (a *OrdersApiService) GETPaymentOptionIdOrderExecute(r OrdersApiGETPaymentOptionIdOrderRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrdersApiService.GETPaymentOptionIdOrder") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/payment_options/{paymentOptionId}/order" + localVarPath = strings.Replace(localVarPath, "{"+"paymentOptionId"+"}", url.PathEscape(parameterValueToString(r.paymentOptionId, "paymentOptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type OrdersApiGETPaypalPaymentIdOrderRequest struct { ctx context.Context ApiService *OrdersApiService @@ -2435,6 +2527,98 @@ func (a *OrdersApiService) GETShipmentIdOrderExecute(r OrdersApiGETShipmentIdOrd return localVarHTTPResponse, nil } +type OrdersApiGETStockReservationIdOrderRequest struct { + ctx context.Context + ApiService *OrdersApiService + stockReservationId interface{} +} + +func (r OrdersApiGETStockReservationIdOrderRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockReservationIdOrderExecute(r) +} + +/* +GETStockReservationIdOrder Retrieve the order associated to the stock reservation + +Retrieve the order associated to the stock reservation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockReservationId The resource's id + @return OrdersApiGETStockReservationIdOrderRequest +*/ +func (a *OrdersApiService) GETStockReservationIdOrder(ctx context.Context, stockReservationId interface{}) OrdersApiGETStockReservationIdOrderRequest { + return OrdersApiGETStockReservationIdOrderRequest{ + ApiService: a, + ctx: ctx, + stockReservationId: stockReservationId, + } +} + +// Execute executes the request +func (a *OrdersApiService) GETStockReservationIdOrderExecute(r OrdersApiGETStockReservationIdOrderRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrdersApiService.GETStockReservationIdOrder") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_reservations/{stockReservationId}/order" + localVarPath = strings.Replace(localVarPath, "{"+"stockReservationId"+"}", url.PathEscape(parameterValueToString(r.stockReservationId, "stockReservationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type OrdersApiGETStripePaymentIdOrderRequest struct { ctx context.Context ApiService *OrdersApiService diff --git a/api/api_organization.go b/api/api_organization.go index 063ad404..c4e4bd91 100644 --- a/api/api_organization.go +++ b/api/api_organization.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_packages.go b/api/api_packages.go index 0ae58179..118dab66 100644 --- a/api/api_packages.go +++ b/api/api_packages.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_parcel_line_items.go b/api/api_parcel_line_items.go index 69a8b603..b19de8ea 100644 --- a/api/api_parcel_line_items.go +++ b/api/api_parcel_line_items.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_parcels.go b/api/api_parcels.go index 9600d874..aef97624 100644 --- a/api/api_parcels.go +++ b/api/api_parcels.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_payment_gateways.go b/api/api_payment_gateways.go index 716b4b66..7af91795 100644 --- a/api/api_payment_gateways.go +++ b/api/api_payment_gateways.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_payment_methods.go b/api/api_payment_methods.go index 0e96c78c..69605b52 100644 --- a/api/api_payment_methods.go +++ b/api/api_payment_methods.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -483,6 +483,98 @@ func (a *PaymentMethodsApiService) GETCheckoutComGatewayIdPaymentMethodsExecute( return localVarHTTPResponse, nil } +type PaymentMethodsApiGETCustomerPaymentSourceIdPaymentMethodRequest struct { + ctx context.Context + ApiService *PaymentMethodsApiService + customerPaymentSourceId interface{} +} + +func (r PaymentMethodsApiGETCustomerPaymentSourceIdPaymentMethodRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerPaymentSourceIdPaymentMethodExecute(r) +} + +/* +GETCustomerPaymentSourceIdPaymentMethod Retrieve the payment method associated to the customer payment source + +Retrieve the payment method associated to the customer payment source + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerPaymentSourceId The resource's id + @return PaymentMethodsApiGETCustomerPaymentSourceIdPaymentMethodRequest +*/ +func (a *PaymentMethodsApiService) GETCustomerPaymentSourceIdPaymentMethod(ctx context.Context, customerPaymentSourceId interface{}) PaymentMethodsApiGETCustomerPaymentSourceIdPaymentMethodRequest { + return PaymentMethodsApiGETCustomerPaymentSourceIdPaymentMethodRequest{ + ApiService: a, + ctx: ctx, + customerPaymentSourceId: customerPaymentSourceId, + } +} + +// Execute executes the request +func (a *PaymentMethodsApiService) GETCustomerPaymentSourceIdPaymentMethodExecute(r PaymentMethodsApiGETCustomerPaymentSourceIdPaymentMethodRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PaymentMethodsApiService.GETCustomerPaymentSourceIdPaymentMethod") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customer_payment_sources/{customerPaymentSourceId}/payment_method" + localVarPath = strings.Replace(localVarPath, "{"+"customerPaymentSourceId"+"}", url.PathEscape(parameterValueToString(r.customerPaymentSourceId, "customerPaymentSourceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type PaymentMethodsApiGETExternalGatewayIdPaymentMethodsRequest struct { ctx context.Context ApiService *PaymentMethodsApiService diff --git a/api/api_payment_options.go b/api/api_payment_options.go new file mode 100644 index 00000000..fad6aa60 --- /dev/null +++ b/api/api_payment_options.go @@ -0,0 +1,638 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// PaymentOptionsApiService PaymentOptionsApi service +type PaymentOptionsApiService service + +type PaymentOptionsApiDELETEPaymentOptionsPaymentOptionIdRequest struct { + ctx context.Context + ApiService *PaymentOptionsApiService + paymentOptionId interface{} +} + +func (r PaymentOptionsApiDELETEPaymentOptionsPaymentOptionIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DELETEPaymentOptionsPaymentOptionIdExecute(r) +} + +/* +DELETEPaymentOptionsPaymentOptionId Delete a payment option + +Delete a payment option + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param paymentOptionId The resource's id + @return PaymentOptionsApiDELETEPaymentOptionsPaymentOptionIdRequest +*/ +func (a *PaymentOptionsApiService) DELETEPaymentOptionsPaymentOptionId(ctx context.Context, paymentOptionId interface{}) PaymentOptionsApiDELETEPaymentOptionsPaymentOptionIdRequest { + return PaymentOptionsApiDELETEPaymentOptionsPaymentOptionIdRequest{ + ApiService: a, + ctx: ctx, + paymentOptionId: paymentOptionId, + } +} + +// Execute executes the request +func (a *PaymentOptionsApiService) DELETEPaymentOptionsPaymentOptionIdExecute(r PaymentOptionsApiDELETEPaymentOptionsPaymentOptionIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PaymentOptionsApiService.DELETEPaymentOptionsPaymentOptionId") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/payment_options/{paymentOptionId}" + localVarPath = strings.Replace(localVarPath, "{"+"paymentOptionId"+"}", url.PathEscape(parameterValueToString(r.paymentOptionId, "paymentOptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type PaymentOptionsApiGETOrderIdPaymentOptionsRequest struct { + ctx context.Context + ApiService *PaymentOptionsApiService + orderId interface{} +} + +func (r PaymentOptionsApiGETOrderIdPaymentOptionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdPaymentOptionsExecute(r) +} + +/* +GETOrderIdPaymentOptions Retrieve the payment options associated to the order + +Retrieve the payment options associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return PaymentOptionsApiGETOrderIdPaymentOptionsRequest +*/ +func (a *PaymentOptionsApiService) GETOrderIdPaymentOptions(ctx context.Context, orderId interface{}) PaymentOptionsApiGETOrderIdPaymentOptionsRequest { + return PaymentOptionsApiGETOrderIdPaymentOptionsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *PaymentOptionsApiService) GETOrderIdPaymentOptionsExecute(r PaymentOptionsApiGETOrderIdPaymentOptionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PaymentOptionsApiService.GETOrderIdPaymentOptions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/payment_options" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type PaymentOptionsApiGETPaymentOptionsRequest struct { + ctx context.Context + ApiService *PaymentOptionsApiService +} + +func (r PaymentOptionsApiGETPaymentOptionsRequest) Execute() (*GETPaymentOptions200Response, *http.Response, error) { + return r.ApiService.GETPaymentOptionsExecute(r) +} + +/* +GETPaymentOptions List all payment options + +List all payment options + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return PaymentOptionsApiGETPaymentOptionsRequest +*/ +func (a *PaymentOptionsApiService) GETPaymentOptions(ctx context.Context) PaymentOptionsApiGETPaymentOptionsRequest { + return PaymentOptionsApiGETPaymentOptionsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GETPaymentOptions200Response +func (a *PaymentOptionsApiService) GETPaymentOptionsExecute(r PaymentOptionsApiGETPaymentOptionsRequest) (*GETPaymentOptions200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETPaymentOptions200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PaymentOptionsApiService.GETPaymentOptions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/payment_options" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type PaymentOptionsApiGETPaymentOptionsPaymentOptionIdRequest struct { + ctx context.Context + ApiService *PaymentOptionsApiService + paymentOptionId interface{} +} + +func (r PaymentOptionsApiGETPaymentOptionsPaymentOptionIdRequest) Execute() (*GETPaymentOptionsPaymentOptionId200Response, *http.Response, error) { + return r.ApiService.GETPaymentOptionsPaymentOptionIdExecute(r) +} + +/* +GETPaymentOptionsPaymentOptionId Retrieve a payment option + +Retrieve a payment option + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param paymentOptionId The resource's id + @return PaymentOptionsApiGETPaymentOptionsPaymentOptionIdRequest +*/ +func (a *PaymentOptionsApiService) GETPaymentOptionsPaymentOptionId(ctx context.Context, paymentOptionId interface{}) PaymentOptionsApiGETPaymentOptionsPaymentOptionIdRequest { + return PaymentOptionsApiGETPaymentOptionsPaymentOptionIdRequest{ + ApiService: a, + ctx: ctx, + paymentOptionId: paymentOptionId, + } +} + +// Execute executes the request +// +// @return GETPaymentOptionsPaymentOptionId200Response +func (a *PaymentOptionsApiService) GETPaymentOptionsPaymentOptionIdExecute(r PaymentOptionsApiGETPaymentOptionsPaymentOptionIdRequest) (*GETPaymentOptionsPaymentOptionId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETPaymentOptionsPaymentOptionId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PaymentOptionsApiService.GETPaymentOptionsPaymentOptionId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/payment_options/{paymentOptionId}" + localVarPath = strings.Replace(localVarPath, "{"+"paymentOptionId"+"}", url.PathEscape(parameterValueToString(r.paymentOptionId, "paymentOptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type PaymentOptionsApiPATCHPaymentOptionsPaymentOptionIdRequest struct { + ctx context.Context + ApiService *PaymentOptionsApiService + paymentOptionUpdate *PaymentOptionUpdate + paymentOptionId interface{} +} + +func (r PaymentOptionsApiPATCHPaymentOptionsPaymentOptionIdRequest) PaymentOptionUpdate(paymentOptionUpdate PaymentOptionUpdate) PaymentOptionsApiPATCHPaymentOptionsPaymentOptionIdRequest { + r.paymentOptionUpdate = &paymentOptionUpdate + return r +} + +func (r PaymentOptionsApiPATCHPaymentOptionsPaymentOptionIdRequest) Execute() (*PATCHPaymentOptionsPaymentOptionId200Response, *http.Response, error) { + return r.ApiService.PATCHPaymentOptionsPaymentOptionIdExecute(r) +} + +/* +PATCHPaymentOptionsPaymentOptionId Update a payment option + +Update a payment option + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param paymentOptionId The resource's id + @return PaymentOptionsApiPATCHPaymentOptionsPaymentOptionIdRequest +*/ +func (a *PaymentOptionsApiService) PATCHPaymentOptionsPaymentOptionId(ctx context.Context, paymentOptionId interface{}) PaymentOptionsApiPATCHPaymentOptionsPaymentOptionIdRequest { + return PaymentOptionsApiPATCHPaymentOptionsPaymentOptionIdRequest{ + ApiService: a, + ctx: ctx, + paymentOptionId: paymentOptionId, + } +} + +// Execute executes the request +// +// @return PATCHPaymentOptionsPaymentOptionId200Response +func (a *PaymentOptionsApiService) PATCHPaymentOptionsPaymentOptionIdExecute(r PaymentOptionsApiPATCHPaymentOptionsPaymentOptionIdRequest) (*PATCHPaymentOptionsPaymentOptionId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PATCHPaymentOptionsPaymentOptionId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PaymentOptionsApiService.PATCHPaymentOptionsPaymentOptionId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/payment_options/{paymentOptionId}" + localVarPath = strings.Replace(localVarPath, "{"+"paymentOptionId"+"}", url.PathEscape(parameterValueToString(r.paymentOptionId, "paymentOptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.paymentOptionUpdate == nil { + return localVarReturnValue, nil, reportError("paymentOptionUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.paymentOptionUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type PaymentOptionsApiPOSTPaymentOptionsRequest struct { + ctx context.Context + ApiService *PaymentOptionsApiService + paymentOptionCreate *PaymentOptionCreate +} + +func (r PaymentOptionsApiPOSTPaymentOptionsRequest) PaymentOptionCreate(paymentOptionCreate PaymentOptionCreate) PaymentOptionsApiPOSTPaymentOptionsRequest { + r.paymentOptionCreate = &paymentOptionCreate + return r +} + +func (r PaymentOptionsApiPOSTPaymentOptionsRequest) Execute() (*POSTPaymentOptions201Response, *http.Response, error) { + return r.ApiService.POSTPaymentOptionsExecute(r) +} + +/* +POSTPaymentOptions Create a payment option + +Create a payment option + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return PaymentOptionsApiPOSTPaymentOptionsRequest +*/ +func (a *PaymentOptionsApiService) POSTPaymentOptions(ctx context.Context) PaymentOptionsApiPOSTPaymentOptionsRequest { + return PaymentOptionsApiPOSTPaymentOptionsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return POSTPaymentOptions201Response +func (a *PaymentOptionsApiService) POSTPaymentOptionsExecute(r PaymentOptionsApiPOSTPaymentOptionsRequest) (*POSTPaymentOptions201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *POSTPaymentOptions201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PaymentOptionsApiService.POSTPaymentOptions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/payment_options" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.paymentOptionCreate == nil { + return localVarReturnValue, nil, reportError("paymentOptionCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.paymentOptionCreate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api/api_paypal_gateways.go b/api/api_paypal_gateways.go index 5ff76cbf..7d8bfaa2 100644 --- a/api/api_paypal_gateways.go +++ b/api/api_paypal_gateways.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_paypal_payments.go b/api/api_paypal_payments.go index d5750534..a34568f2 100644 --- a/api/api_paypal_payments.go +++ b/api/api_paypal_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_percentage_discount_promotions.go b/api/api_percentage_discount_promotions.go index 69750557..c0831714 100644 --- a/api/api_percentage_discount_promotions.go +++ b/api/api_percentage_discount_promotions.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_price_frequency_tiers.go b/api/api_price_frequency_tiers.go index 9c0f1117..ed6ab414 100644 --- a/api/api_price_frequency_tiers.go +++ b/api/api_price_frequency_tiers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_price_list_schedulers.go b/api/api_price_list_schedulers.go new file mode 100644 index 00000000..dcacd4ec --- /dev/null +++ b/api/api_price_list_schedulers.go @@ -0,0 +1,730 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// PriceListSchedulersApiService PriceListSchedulersApi service +type PriceListSchedulersApiService service + +type PriceListSchedulersApiDELETEPriceListSchedulersPriceListSchedulerIdRequest struct { + ctx context.Context + ApiService *PriceListSchedulersApiService + priceListSchedulerId interface{} +} + +func (r PriceListSchedulersApiDELETEPriceListSchedulersPriceListSchedulerIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DELETEPriceListSchedulersPriceListSchedulerIdExecute(r) +} + +/* +DELETEPriceListSchedulersPriceListSchedulerId Delete a price list scheduler + +Delete a price list scheduler + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceListSchedulerId The resource's id + @return PriceListSchedulersApiDELETEPriceListSchedulersPriceListSchedulerIdRequest +*/ +func (a *PriceListSchedulersApiService) DELETEPriceListSchedulersPriceListSchedulerId(ctx context.Context, priceListSchedulerId interface{}) PriceListSchedulersApiDELETEPriceListSchedulersPriceListSchedulerIdRequest { + return PriceListSchedulersApiDELETEPriceListSchedulersPriceListSchedulerIdRequest{ + ApiService: a, + ctx: ctx, + priceListSchedulerId: priceListSchedulerId, + } +} + +// Execute executes the request +func (a *PriceListSchedulersApiService) DELETEPriceListSchedulersPriceListSchedulerIdExecute(r PriceListSchedulersApiDELETEPriceListSchedulersPriceListSchedulerIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PriceListSchedulersApiService.DELETEPriceListSchedulersPriceListSchedulerId") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/price_list_schedulers/{priceListSchedulerId}" + localVarPath = strings.Replace(localVarPath, "{"+"priceListSchedulerId"+"}", url.PathEscape(parameterValueToString(r.priceListSchedulerId, "priceListSchedulerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type PriceListSchedulersApiGETMarketIdPriceListSchedulersRequest struct { + ctx context.Context + ApiService *PriceListSchedulersApiService + marketId interface{} +} + +func (r PriceListSchedulersApiGETMarketIdPriceListSchedulersRequest) Execute() (*http.Response, error) { + return r.ApiService.GETMarketIdPriceListSchedulersExecute(r) +} + +/* +GETMarketIdPriceListSchedulers Retrieve the price list schedulers associated to the market + +Retrieve the price list schedulers associated to the market + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param marketId The resource's id + @return PriceListSchedulersApiGETMarketIdPriceListSchedulersRequest +*/ +func (a *PriceListSchedulersApiService) GETMarketIdPriceListSchedulers(ctx context.Context, marketId interface{}) PriceListSchedulersApiGETMarketIdPriceListSchedulersRequest { + return PriceListSchedulersApiGETMarketIdPriceListSchedulersRequest{ + ApiService: a, + ctx: ctx, + marketId: marketId, + } +} + +// Execute executes the request +func (a *PriceListSchedulersApiService) GETMarketIdPriceListSchedulersExecute(r PriceListSchedulersApiGETMarketIdPriceListSchedulersRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PriceListSchedulersApiService.GETMarketIdPriceListSchedulers") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/markets/{marketId}/price_list_schedulers" + localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type PriceListSchedulersApiGETPriceListIdPriceListSchedulersRequest struct { + ctx context.Context + ApiService *PriceListSchedulersApiService + priceListId interface{} +} + +func (r PriceListSchedulersApiGETPriceListIdPriceListSchedulersRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceListIdPriceListSchedulersExecute(r) +} + +/* +GETPriceListIdPriceListSchedulers Retrieve the price list schedulers associated to the price list + +Retrieve the price list schedulers associated to the price list + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceListId The resource's id + @return PriceListSchedulersApiGETPriceListIdPriceListSchedulersRequest +*/ +func (a *PriceListSchedulersApiService) GETPriceListIdPriceListSchedulers(ctx context.Context, priceListId interface{}) PriceListSchedulersApiGETPriceListIdPriceListSchedulersRequest { + return PriceListSchedulersApiGETPriceListIdPriceListSchedulersRequest{ + ApiService: a, + ctx: ctx, + priceListId: priceListId, + } +} + +// Execute executes the request +func (a *PriceListSchedulersApiService) GETPriceListIdPriceListSchedulersExecute(r PriceListSchedulersApiGETPriceListIdPriceListSchedulersRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PriceListSchedulersApiService.GETPriceListIdPriceListSchedulers") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/price_lists/{priceListId}/price_list_schedulers" + localVarPath = strings.Replace(localVarPath, "{"+"priceListId"+"}", url.PathEscape(parameterValueToString(r.priceListId, "priceListId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type PriceListSchedulersApiGETPriceListSchedulersRequest struct { + ctx context.Context + ApiService *PriceListSchedulersApiService +} + +func (r PriceListSchedulersApiGETPriceListSchedulersRequest) Execute() (*GETPriceListSchedulers200Response, *http.Response, error) { + return r.ApiService.GETPriceListSchedulersExecute(r) +} + +/* +GETPriceListSchedulers List all price list schedulers + +List all price list schedulers + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return PriceListSchedulersApiGETPriceListSchedulersRequest +*/ +func (a *PriceListSchedulersApiService) GETPriceListSchedulers(ctx context.Context) PriceListSchedulersApiGETPriceListSchedulersRequest { + return PriceListSchedulersApiGETPriceListSchedulersRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GETPriceListSchedulers200Response +func (a *PriceListSchedulersApiService) GETPriceListSchedulersExecute(r PriceListSchedulersApiGETPriceListSchedulersRequest) (*GETPriceListSchedulers200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETPriceListSchedulers200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PriceListSchedulersApiService.GETPriceListSchedulers") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/price_list_schedulers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type PriceListSchedulersApiGETPriceListSchedulersPriceListSchedulerIdRequest struct { + ctx context.Context + ApiService *PriceListSchedulersApiService + priceListSchedulerId interface{} +} + +func (r PriceListSchedulersApiGETPriceListSchedulersPriceListSchedulerIdRequest) Execute() (*GETPriceListSchedulersPriceListSchedulerId200Response, *http.Response, error) { + return r.ApiService.GETPriceListSchedulersPriceListSchedulerIdExecute(r) +} + +/* +GETPriceListSchedulersPriceListSchedulerId Retrieve a price list scheduler + +Retrieve a price list scheduler + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceListSchedulerId The resource's id + @return PriceListSchedulersApiGETPriceListSchedulersPriceListSchedulerIdRequest +*/ +func (a *PriceListSchedulersApiService) GETPriceListSchedulersPriceListSchedulerId(ctx context.Context, priceListSchedulerId interface{}) PriceListSchedulersApiGETPriceListSchedulersPriceListSchedulerIdRequest { + return PriceListSchedulersApiGETPriceListSchedulersPriceListSchedulerIdRequest{ + ApiService: a, + ctx: ctx, + priceListSchedulerId: priceListSchedulerId, + } +} + +// Execute executes the request +// +// @return GETPriceListSchedulersPriceListSchedulerId200Response +func (a *PriceListSchedulersApiService) GETPriceListSchedulersPriceListSchedulerIdExecute(r PriceListSchedulersApiGETPriceListSchedulersPriceListSchedulerIdRequest) (*GETPriceListSchedulersPriceListSchedulerId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETPriceListSchedulersPriceListSchedulerId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PriceListSchedulersApiService.GETPriceListSchedulersPriceListSchedulerId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/price_list_schedulers/{priceListSchedulerId}" + localVarPath = strings.Replace(localVarPath, "{"+"priceListSchedulerId"+"}", url.PathEscape(parameterValueToString(r.priceListSchedulerId, "priceListSchedulerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type PriceListSchedulersApiPATCHPriceListSchedulersPriceListSchedulerIdRequest struct { + ctx context.Context + ApiService *PriceListSchedulersApiService + priceListSchedulerUpdate *PriceListSchedulerUpdate + priceListSchedulerId interface{} +} + +func (r PriceListSchedulersApiPATCHPriceListSchedulersPriceListSchedulerIdRequest) PriceListSchedulerUpdate(priceListSchedulerUpdate PriceListSchedulerUpdate) PriceListSchedulersApiPATCHPriceListSchedulersPriceListSchedulerIdRequest { + r.priceListSchedulerUpdate = &priceListSchedulerUpdate + return r +} + +func (r PriceListSchedulersApiPATCHPriceListSchedulersPriceListSchedulerIdRequest) Execute() (*PATCHPriceListSchedulersPriceListSchedulerId200Response, *http.Response, error) { + return r.ApiService.PATCHPriceListSchedulersPriceListSchedulerIdExecute(r) +} + +/* +PATCHPriceListSchedulersPriceListSchedulerId Update a price list scheduler + +Update a price list scheduler + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceListSchedulerId The resource's id + @return PriceListSchedulersApiPATCHPriceListSchedulersPriceListSchedulerIdRequest +*/ +func (a *PriceListSchedulersApiService) PATCHPriceListSchedulersPriceListSchedulerId(ctx context.Context, priceListSchedulerId interface{}) PriceListSchedulersApiPATCHPriceListSchedulersPriceListSchedulerIdRequest { + return PriceListSchedulersApiPATCHPriceListSchedulersPriceListSchedulerIdRequest{ + ApiService: a, + ctx: ctx, + priceListSchedulerId: priceListSchedulerId, + } +} + +// Execute executes the request +// +// @return PATCHPriceListSchedulersPriceListSchedulerId200Response +func (a *PriceListSchedulersApiService) PATCHPriceListSchedulersPriceListSchedulerIdExecute(r PriceListSchedulersApiPATCHPriceListSchedulersPriceListSchedulerIdRequest) (*PATCHPriceListSchedulersPriceListSchedulerId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PATCHPriceListSchedulersPriceListSchedulerId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PriceListSchedulersApiService.PATCHPriceListSchedulersPriceListSchedulerId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/price_list_schedulers/{priceListSchedulerId}" + localVarPath = strings.Replace(localVarPath, "{"+"priceListSchedulerId"+"}", url.PathEscape(parameterValueToString(r.priceListSchedulerId, "priceListSchedulerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.priceListSchedulerUpdate == nil { + return localVarReturnValue, nil, reportError("priceListSchedulerUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.priceListSchedulerUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type PriceListSchedulersApiPOSTPriceListSchedulersRequest struct { + ctx context.Context + ApiService *PriceListSchedulersApiService + priceListSchedulerCreate *PriceListSchedulerCreate +} + +func (r PriceListSchedulersApiPOSTPriceListSchedulersRequest) PriceListSchedulerCreate(priceListSchedulerCreate PriceListSchedulerCreate) PriceListSchedulersApiPOSTPriceListSchedulersRequest { + r.priceListSchedulerCreate = &priceListSchedulerCreate + return r +} + +func (r PriceListSchedulersApiPOSTPriceListSchedulersRequest) Execute() (*POSTPriceListSchedulers201Response, *http.Response, error) { + return r.ApiService.POSTPriceListSchedulersExecute(r) +} + +/* +POSTPriceListSchedulers Create a price list scheduler + +Create a price list scheduler + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return PriceListSchedulersApiPOSTPriceListSchedulersRequest +*/ +func (a *PriceListSchedulersApiService) POSTPriceListSchedulers(ctx context.Context) PriceListSchedulersApiPOSTPriceListSchedulersRequest { + return PriceListSchedulersApiPOSTPriceListSchedulersRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return POSTPriceListSchedulers201Response +func (a *PriceListSchedulersApiService) POSTPriceListSchedulersExecute(r PriceListSchedulersApiPOSTPriceListSchedulersRequest) (*POSTPriceListSchedulers201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *POSTPriceListSchedulers201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PriceListSchedulersApiService.POSTPriceListSchedulers") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/price_list_schedulers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.priceListSchedulerCreate == nil { + return localVarReturnValue, nil, reportError("priceListSchedulerCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.priceListSchedulerCreate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api/api_price_lists.go b/api/api_price_lists.go index 805d5ad2..66e2dfd1 100644 --- a/api/api_price_lists.go +++ b/api/api_price_lists.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -115,6 +115,98 @@ func (a *PriceListsApiService) DELETEPriceListsPriceListIdExecute(r PriceListsAp return localVarHTTPResponse, nil } +type PriceListsApiGETMarketIdBasePriceListRequest struct { + ctx context.Context + ApiService *PriceListsApiService + marketId interface{} +} + +func (r PriceListsApiGETMarketIdBasePriceListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETMarketIdBasePriceListExecute(r) +} + +/* +GETMarketIdBasePriceList Retrieve the base price list associated to the market + +Retrieve the base price list associated to the market + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param marketId The resource's id + @return PriceListsApiGETMarketIdBasePriceListRequest +*/ +func (a *PriceListsApiService) GETMarketIdBasePriceList(ctx context.Context, marketId interface{}) PriceListsApiGETMarketIdBasePriceListRequest { + return PriceListsApiGETMarketIdBasePriceListRequest{ + ApiService: a, + ctx: ctx, + marketId: marketId, + } +} + +// Execute executes the request +func (a *PriceListsApiService) GETMarketIdBasePriceListExecute(r PriceListsApiGETMarketIdBasePriceListRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PriceListsApiService.GETMarketIdBasePriceList") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/markets/{marketId}/base_price_list" + localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type PriceListsApiGETMarketIdPriceListRequest struct { ctx context.Context ApiService *PriceListsApiService @@ -299,6 +391,98 @@ func (a *PriceListsApiService) GETPriceIdPriceListExecute(r PriceListsApiGETPric return localVarHTTPResponse, nil } +type PriceListsApiGETPriceListSchedulerIdPriceListRequest struct { + ctx context.Context + ApiService *PriceListsApiService + priceListSchedulerId interface{} +} + +func (r PriceListsApiGETPriceListSchedulerIdPriceListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceListSchedulerIdPriceListExecute(r) +} + +/* +GETPriceListSchedulerIdPriceList Retrieve the price list associated to the price list scheduler + +Retrieve the price list associated to the price list scheduler + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceListSchedulerId The resource's id + @return PriceListsApiGETPriceListSchedulerIdPriceListRequest +*/ +func (a *PriceListsApiService) GETPriceListSchedulerIdPriceList(ctx context.Context, priceListSchedulerId interface{}) PriceListsApiGETPriceListSchedulerIdPriceListRequest { + return PriceListsApiGETPriceListSchedulerIdPriceListRequest{ + ApiService: a, + ctx: ctx, + priceListSchedulerId: priceListSchedulerId, + } +} + +// Execute executes the request +func (a *PriceListsApiService) GETPriceListSchedulerIdPriceListExecute(r PriceListsApiGETPriceListSchedulerIdPriceListRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PriceListsApiService.GETPriceListSchedulerIdPriceList") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/price_list_schedulers/{priceListSchedulerId}/price_list" + localVarPath = strings.Replace(localVarPath, "{"+"priceListSchedulerId"+"}", url.PathEscape(parameterValueToString(r.priceListSchedulerId, "priceListSchedulerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type PriceListsApiGETPriceListsRequest struct { ctx context.Context ApiService *PriceListsApiService diff --git a/api/api_price_tiers.go b/api/api_price_tiers.go index 77f3dc14..37ef0b32 100644 --- a/api/api_price_tiers.go +++ b/api/api_price_tiers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_price_volume_tiers.go b/api/api_price_volume_tiers.go index cad390cd..08bf3063 100644 --- a/api/api_price_volume_tiers.go +++ b/api/api_price_volume_tiers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_prices.go b/api/api_prices.go index 817845b2..22f550e0 100644 --- a/api/api_prices.go +++ b/api/api_prices.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_promotion_rules.go b/api/api_promotion_rules.go index 9ac91c8c..955ae457 100644 --- a/api/api_promotion_rules.go +++ b/api/api_promotion_rules.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_promotions.go b/api/api_promotions.go index 3863327c..72f2a707 100644 --- a/api/api_promotions.go +++ b/api/api_promotions.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_recurring_order_copies.go b/api/api_recurring_order_copies.go index f3a0cee2..f88bcf02 100644 --- a/api/api_recurring_order_copies.go +++ b/api/api_recurring_order_copies.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_refunds.go b/api/api_refunds.go index 2c9b99d8..b384a8b3 100644 --- a/api/api_refunds.go +++ b/api/api_refunds.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -410,3 +410,210 @@ func (a *RefundsApiService) GETRefundsRefundIdExecute(r RefundsApiGETRefundsRefu return localVarReturnValue, localVarHTTPResponse, nil } + +type RefundsApiGETReturnIdReferenceRefundRequest struct { + ctx context.Context + ApiService *RefundsApiService + returnId interface{} +} + +func (r RefundsApiGETReturnIdReferenceRefundRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnIdReferenceRefundExecute(r) +} + +/* +GETReturnIdReferenceRefund Retrieve the reference refund associated to the return + +Retrieve the reference refund associated to the return + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param returnId The resource's id + @return RefundsApiGETReturnIdReferenceRefundRequest +*/ +func (a *RefundsApiService) GETReturnIdReferenceRefund(ctx context.Context, returnId interface{}) RefundsApiGETReturnIdReferenceRefundRequest { + return RefundsApiGETReturnIdReferenceRefundRequest{ + ApiService: a, + ctx: ctx, + returnId: returnId, + } +} + +// Execute executes the request +func (a *RefundsApiService) GETReturnIdReferenceRefundExecute(r RefundsApiGETReturnIdReferenceRefundRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RefundsApiService.GETReturnIdReferenceRefund") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/returns/{returnId}/reference_refund" + localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type RefundsApiPATCHRefundsRefundIdRequest struct { + ctx context.Context + ApiService *RefundsApiService + refundUpdate *RefundUpdate + refundId interface{} +} + +func (r RefundsApiPATCHRefundsRefundIdRequest) RefundUpdate(refundUpdate RefundUpdate) RefundsApiPATCHRefundsRefundIdRequest { + r.refundUpdate = &refundUpdate + return r +} + +func (r RefundsApiPATCHRefundsRefundIdRequest) Execute() (*PATCHRefundsRefundId200Response, *http.Response, error) { + return r.ApiService.PATCHRefundsRefundIdExecute(r) +} + +/* +PATCHRefundsRefundId Update a refund + +Update a refund + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param refundId The resource's id + @return RefundsApiPATCHRefundsRefundIdRequest +*/ +func (a *RefundsApiService) PATCHRefundsRefundId(ctx context.Context, refundId interface{}) RefundsApiPATCHRefundsRefundIdRequest { + return RefundsApiPATCHRefundsRefundIdRequest{ + ApiService: a, + ctx: ctx, + refundId: refundId, + } +} + +// Execute executes the request +// +// @return PATCHRefundsRefundId200Response +func (a *RefundsApiService) PATCHRefundsRefundIdExecute(r RefundsApiPATCHRefundsRefundIdRequest) (*PATCHRefundsRefundId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PATCHRefundsRefundId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RefundsApiService.PATCHRefundsRefundId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/refunds/{refundId}" + localVarPath = strings.Replace(localVarPath, "{"+"refundId"+"}", url.PathEscape(parameterValueToString(r.refundId, "refundId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.refundUpdate == nil { + return localVarReturnValue, nil, reportError("refundUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.refundUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api/api_reserved_stocks.go b/api/api_reserved_stocks.go new file mode 100644 index 00000000..397774ab --- /dev/null +++ b/api/api_reserved_stocks.go @@ -0,0 +1,412 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// ReservedStocksApiService ReservedStocksApi service +type ReservedStocksApiService service + +type ReservedStocksApiGETReservedStocksRequest struct { + ctx context.Context + ApiService *ReservedStocksApiService +} + +func (r ReservedStocksApiGETReservedStocksRequest) Execute() (*GETReservedStocks200Response, *http.Response, error) { + return r.ApiService.GETReservedStocksExecute(r) +} + +/* +GETReservedStocks List all reserved stocks + +List all reserved stocks + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ReservedStocksApiGETReservedStocksRequest +*/ +func (a *ReservedStocksApiService) GETReservedStocks(ctx context.Context) ReservedStocksApiGETReservedStocksRequest { + return ReservedStocksApiGETReservedStocksRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GETReservedStocks200Response +func (a *ReservedStocksApiService) GETReservedStocksExecute(r ReservedStocksApiGETReservedStocksRequest) (*GETReservedStocks200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETReservedStocks200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReservedStocksApiService.GETReservedStocks") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/reserved_stocks" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ReservedStocksApiGETReservedStocksReservedStockIdRequest struct { + ctx context.Context + ApiService *ReservedStocksApiService + reservedStockId interface{} +} + +func (r ReservedStocksApiGETReservedStocksReservedStockIdRequest) Execute() (*GETReservedStocksReservedStockId200Response, *http.Response, error) { + return r.ApiService.GETReservedStocksReservedStockIdExecute(r) +} + +/* +GETReservedStocksReservedStockId Retrieve a reserved stock + +Retrieve a reserved stock + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param reservedStockId The resource's id + @return ReservedStocksApiGETReservedStocksReservedStockIdRequest +*/ +func (a *ReservedStocksApiService) GETReservedStocksReservedStockId(ctx context.Context, reservedStockId interface{}) ReservedStocksApiGETReservedStocksReservedStockIdRequest { + return ReservedStocksApiGETReservedStocksReservedStockIdRequest{ + ApiService: a, + ctx: ctx, + reservedStockId: reservedStockId, + } +} + +// Execute executes the request +// +// @return GETReservedStocksReservedStockId200Response +func (a *ReservedStocksApiService) GETReservedStocksReservedStockIdExecute(r ReservedStocksApiGETReservedStocksReservedStockIdRequest) (*GETReservedStocksReservedStockId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETReservedStocksReservedStockId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReservedStocksApiService.GETReservedStocksReservedStockId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/reserved_stocks/{reservedStockId}" + localVarPath = strings.Replace(localVarPath, "{"+"reservedStockId"+"}", url.PathEscape(parameterValueToString(r.reservedStockId, "reservedStockId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ReservedStocksApiGETStockItemIdReservedStockRequest struct { + ctx context.Context + ApiService *ReservedStocksApiService + stockItemId interface{} +} + +func (r ReservedStocksApiGETStockItemIdReservedStockRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockItemIdReservedStockExecute(r) +} + +/* +GETStockItemIdReservedStock Retrieve the reserved stock associated to the stock item + +Retrieve the reserved stock associated to the stock item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockItemId The resource's id + @return ReservedStocksApiGETStockItemIdReservedStockRequest +*/ +func (a *ReservedStocksApiService) GETStockItemIdReservedStock(ctx context.Context, stockItemId interface{}) ReservedStocksApiGETStockItemIdReservedStockRequest { + return ReservedStocksApiGETStockItemIdReservedStockRequest{ + ApiService: a, + ctx: ctx, + stockItemId: stockItemId, + } +} + +// Execute executes the request +func (a *ReservedStocksApiService) GETStockItemIdReservedStockExecute(r ReservedStocksApiGETStockItemIdReservedStockRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReservedStocksApiService.GETStockItemIdReservedStock") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_items/{stockItemId}/reserved_stock" + localVarPath = strings.Replace(localVarPath, "{"+"stockItemId"+"}", url.PathEscape(parameterValueToString(r.stockItemId, "stockItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ReservedStocksApiGETStockReservationIdReservedStockRequest struct { + ctx context.Context + ApiService *ReservedStocksApiService + stockReservationId interface{} +} + +func (r ReservedStocksApiGETStockReservationIdReservedStockRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockReservationIdReservedStockExecute(r) +} + +/* +GETStockReservationIdReservedStock Retrieve the reserved stock associated to the stock reservation + +Retrieve the reserved stock associated to the stock reservation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockReservationId The resource's id + @return ReservedStocksApiGETStockReservationIdReservedStockRequest +*/ +func (a *ReservedStocksApiService) GETStockReservationIdReservedStock(ctx context.Context, stockReservationId interface{}) ReservedStocksApiGETStockReservationIdReservedStockRequest { + return ReservedStocksApiGETStockReservationIdReservedStockRequest{ + ApiService: a, + ctx: ctx, + stockReservationId: stockReservationId, + } +} + +// Execute executes the request +func (a *ReservedStocksApiService) GETStockReservationIdReservedStockExecute(r ReservedStocksApiGETStockReservationIdReservedStockRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReservedStocksApiService.GETStockReservationIdReservedStock") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_reservations/{stockReservationId}/reserved_stock" + localVarPath = strings.Replace(localVarPath, "{"+"stockReservationId"+"}", url.PathEscape(parameterValueToString(r.stockReservationId, "stockReservationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/api/api_resource_errors.go b/api/api_resource_errors.go new file mode 100644 index 00000000..dcf39b2b --- /dev/null +++ b/api/api_resource_errors.go @@ -0,0 +1,412 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// ResourceErrorsApiService ResourceErrorsApi service +type ResourceErrorsApiService service + +type ResourceErrorsApiGETOrderIdResourceErrorsRequest struct { + ctx context.Context + ApiService *ResourceErrorsApiService + orderId interface{} +} + +func (r ResourceErrorsApiGETOrderIdResourceErrorsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdResourceErrorsExecute(r) +} + +/* +GETOrderIdResourceErrors Retrieve the resource errors associated to the order + +Retrieve the resource errors associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return ResourceErrorsApiGETOrderIdResourceErrorsRequest +*/ +func (a *ResourceErrorsApiService) GETOrderIdResourceErrors(ctx context.Context, orderId interface{}) ResourceErrorsApiGETOrderIdResourceErrorsRequest { + return ResourceErrorsApiGETOrderIdResourceErrorsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *ResourceErrorsApiService) GETOrderIdResourceErrorsExecute(r ResourceErrorsApiGETOrderIdResourceErrorsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceErrorsApiService.GETOrderIdResourceErrors") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/resource_errors" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ResourceErrorsApiGETResourceErrorsRequest struct { + ctx context.Context + ApiService *ResourceErrorsApiService +} + +func (r ResourceErrorsApiGETResourceErrorsRequest) Execute() (*GETResourceErrors200Response, *http.Response, error) { + return r.ApiService.GETResourceErrorsExecute(r) +} + +/* +GETResourceErrors List all resource errors + +List all resource errors + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ResourceErrorsApiGETResourceErrorsRequest +*/ +func (a *ResourceErrorsApiService) GETResourceErrors(ctx context.Context) ResourceErrorsApiGETResourceErrorsRequest { + return ResourceErrorsApiGETResourceErrorsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GETResourceErrors200Response +func (a *ResourceErrorsApiService) GETResourceErrorsExecute(r ResourceErrorsApiGETResourceErrorsRequest) (*GETResourceErrors200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETResourceErrors200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceErrorsApiService.GETResourceErrors") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resource_errors" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ResourceErrorsApiGETResourceErrorsResourceErrorIdRequest struct { + ctx context.Context + ApiService *ResourceErrorsApiService + resourceErrorId interface{} +} + +func (r ResourceErrorsApiGETResourceErrorsResourceErrorIdRequest) Execute() (*GETResourceErrorsResourceErrorId200Response, *http.Response, error) { + return r.ApiService.GETResourceErrorsResourceErrorIdExecute(r) +} + +/* +GETResourceErrorsResourceErrorId Retrieve a resource error + +Retrieve a resource error + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param resourceErrorId The resource's id + @return ResourceErrorsApiGETResourceErrorsResourceErrorIdRequest +*/ +func (a *ResourceErrorsApiService) GETResourceErrorsResourceErrorId(ctx context.Context, resourceErrorId interface{}) ResourceErrorsApiGETResourceErrorsResourceErrorIdRequest { + return ResourceErrorsApiGETResourceErrorsResourceErrorIdRequest{ + ApiService: a, + ctx: ctx, + resourceErrorId: resourceErrorId, + } +} + +// Execute executes the request +// +// @return GETResourceErrorsResourceErrorId200Response +func (a *ResourceErrorsApiService) GETResourceErrorsResourceErrorIdExecute(r ResourceErrorsApiGETResourceErrorsResourceErrorIdRequest) (*GETResourceErrorsResourceErrorId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETResourceErrorsResourceErrorId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceErrorsApiService.GETResourceErrorsResourceErrorId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resource_errors/{resourceErrorId}" + localVarPath = strings.Replace(localVarPath, "{"+"resourceErrorId"+"}", url.PathEscape(parameterValueToString(r.resourceErrorId, "resourceErrorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ResourceErrorsApiGETReturnIdResourceErrorsRequest struct { + ctx context.Context + ApiService *ResourceErrorsApiService + returnId interface{} +} + +func (r ResourceErrorsApiGETReturnIdResourceErrorsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnIdResourceErrorsExecute(r) +} + +/* +GETReturnIdResourceErrors Retrieve the resource errors associated to the return + +Retrieve the resource errors associated to the return + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param returnId The resource's id + @return ResourceErrorsApiGETReturnIdResourceErrorsRequest +*/ +func (a *ResourceErrorsApiService) GETReturnIdResourceErrors(ctx context.Context, returnId interface{}) ResourceErrorsApiGETReturnIdResourceErrorsRequest { + return ResourceErrorsApiGETReturnIdResourceErrorsRequest{ + ApiService: a, + ctx: ctx, + returnId: returnId, + } +} + +// Execute executes the request +func (a *ResourceErrorsApiService) GETReturnIdResourceErrorsExecute(r ResourceErrorsApiGETReturnIdResourceErrorsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourceErrorsApiService.GETReturnIdResourceErrors") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/returns/{returnId}/resource_errors" + localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/api/api_return_line_items.go b/api/api_return_line_items.go index f4d707d0..292666cf 100644 --- a/api/api_return_line_items.go +++ b/api/api_return_line_items.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -115,6 +115,98 @@ func (a *ReturnLineItemsApiService) DELETEReturnLineItemsReturnLineItemIdExecute return localVarHTTPResponse, nil } +type ReturnLineItemsApiGETLineItemIdReturnLineItemsRequest struct { + ctx context.Context + ApiService *ReturnLineItemsApiService + lineItemId interface{} +} + +func (r ReturnLineItemsApiGETLineItemIdReturnLineItemsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLineItemIdReturnLineItemsExecute(r) +} + +/* +GETLineItemIdReturnLineItems Retrieve the return line items associated to the line item + +Retrieve the return line items associated to the line item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param lineItemId The resource's id + @return ReturnLineItemsApiGETLineItemIdReturnLineItemsRequest +*/ +func (a *ReturnLineItemsApiService) GETLineItemIdReturnLineItems(ctx context.Context, lineItemId interface{}) ReturnLineItemsApiGETLineItemIdReturnLineItemsRequest { + return ReturnLineItemsApiGETLineItemIdReturnLineItemsRequest{ + ApiService: a, + ctx: ctx, + lineItemId: lineItemId, + } +} + +// Execute executes the request +func (a *ReturnLineItemsApiService) GETLineItemIdReturnLineItemsExecute(r ReturnLineItemsApiGETLineItemIdReturnLineItemsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReturnLineItemsApiService.GETLineItemIdReturnLineItems") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/line_items/{lineItemId}/return_line_items" + localVarPath = strings.Replace(localVarPath, "{"+"lineItemId"+"}", url.PathEscape(parameterValueToString(r.lineItemId, "lineItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type ReturnLineItemsApiGETReturnIdReturnLineItemsRequest struct { ctx context.Context ApiService *ReturnLineItemsApiService diff --git a/api/api_returns.go b/api/api_returns.go index 8142d4d5..e13c111d 100644 --- a/api/api_returns.go +++ b/api/api_returns.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -115,6 +115,98 @@ func (a *ReturnsApiService) DELETEReturnsReturnIdExecute(r ReturnsApiDELETERetur return localVarHTTPResponse, nil } +type ReturnsApiGETCaptureIdReturnRequest struct { + ctx context.Context + ApiService *ReturnsApiService + captureId interface{} +} + +func (r ReturnsApiGETCaptureIdReturnRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCaptureIdReturnExecute(r) +} + +/* +GETCaptureIdReturn Retrieve the return associated to the capture + +Retrieve the return associated to the capture + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param captureId The resource's id + @return ReturnsApiGETCaptureIdReturnRequest +*/ +func (a *ReturnsApiService) GETCaptureIdReturn(ctx context.Context, captureId interface{}) ReturnsApiGETCaptureIdReturnRequest { + return ReturnsApiGETCaptureIdReturnRequest{ + ApiService: a, + ctx: ctx, + captureId: captureId, + } +} + +// Execute executes the request +func (a *ReturnsApiService) GETCaptureIdReturnExecute(r ReturnsApiGETCaptureIdReturnRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReturnsApiService.GETCaptureIdReturn") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/captures/{captureId}/return" + localVarPath = strings.Replace(localVarPath, "{"+"captureId"+"}", url.PathEscape(parameterValueToString(r.captureId, "captureId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type ReturnsApiGETCustomerIdReturnsRequest struct { ctx context.Context ApiService *ReturnsApiService @@ -299,6 +391,98 @@ func (a *ReturnsApiService) GETOrderIdReturnsExecute(r ReturnsApiGETOrderIdRetur return localVarHTTPResponse, nil } +type ReturnsApiGETRefundIdReturnRequest struct { + ctx context.Context + ApiService *ReturnsApiService + refundId interface{} +} + +func (r ReturnsApiGETRefundIdReturnRequest) Execute() (*http.Response, error) { + return r.ApiService.GETRefundIdReturnExecute(r) +} + +/* +GETRefundIdReturn Retrieve the return associated to the refund + +Retrieve the return associated to the refund + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param refundId The resource's id + @return ReturnsApiGETRefundIdReturnRequest +*/ +func (a *ReturnsApiService) GETRefundIdReturn(ctx context.Context, refundId interface{}) ReturnsApiGETRefundIdReturnRequest { + return ReturnsApiGETRefundIdReturnRequest{ + ApiService: a, + ctx: ctx, + refundId: refundId, + } +} + +// Execute executes the request +func (a *ReturnsApiService) GETRefundIdReturnExecute(r ReturnsApiGETRefundIdReturnRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReturnsApiService.GETRefundIdReturn") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/refunds/{refundId}/return" + localVarPath = strings.Replace(localVarPath, "{"+"refundId"+"}", url.PathEscape(parameterValueToString(r.refundId, "refundId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type ReturnsApiGETReturnLineItemIdReturnRequest struct { ctx context.Context ApiService *ReturnsApiService diff --git a/api/api_satispay_gateways.go b/api/api_satispay_gateways.go index 23e2901b..bcd706c1 100644 --- a/api/api_satispay_gateways.go +++ b/api/api_satispay_gateways.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_satispay_payments.go b/api/api_satispay_payments.go index 0b9ab15a..5c39d742 100644 --- a/api/api_satispay_payments.go +++ b/api/api_satispay_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_shipments.go b/api/api_shipments.go index b491dc18..957c0590 100644 --- a/api/api_shipments.go +++ b/api/api_shipments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,6 +23,98 @@ import ( // ShipmentsApiService ShipmentsApi service type ShipmentsApiService service +type ShipmentsApiDELETEShipmentsShipmentIdRequest struct { + ctx context.Context + ApiService *ShipmentsApiService + shipmentId interface{} +} + +func (r ShipmentsApiDELETEShipmentsShipmentIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DELETEShipmentsShipmentIdExecute(r) +} + +/* +DELETEShipmentsShipmentId Delete a shipment + +Delete a shipment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param shipmentId The resource's id + @return ShipmentsApiDELETEShipmentsShipmentIdRequest +*/ +func (a *ShipmentsApiService) DELETEShipmentsShipmentId(ctx context.Context, shipmentId interface{}) ShipmentsApiDELETEShipmentsShipmentIdRequest { + return ShipmentsApiDELETEShipmentsShipmentIdRequest{ + ApiService: a, + ctx: ctx, + shipmentId: shipmentId, + } +} + +// Execute executes the request +func (a *ShipmentsApiService) DELETEShipmentsShipmentIdExecute(r ShipmentsApiDELETEShipmentsShipmentIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ShipmentsApiService.DELETEShipmentsShipmentId") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/shipments/{shipmentId}" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type ShipmentsApiGETOrderIdShipmentsRequest struct { ctx context.Context ApiService *ShipmentsApiService @@ -709,3 +801,114 @@ func (a *ShipmentsApiService) PATCHShipmentsShipmentIdExecute(r ShipmentsApiPATC return localVarReturnValue, localVarHTTPResponse, nil } + +type ShipmentsApiPOSTShipmentsRequest struct { + ctx context.Context + ApiService *ShipmentsApiService + shipmentCreate *ShipmentCreate +} + +func (r ShipmentsApiPOSTShipmentsRequest) ShipmentCreate(shipmentCreate ShipmentCreate) ShipmentsApiPOSTShipmentsRequest { + r.shipmentCreate = &shipmentCreate + return r +} + +func (r ShipmentsApiPOSTShipmentsRequest) Execute() (*POSTShipments201Response, *http.Response, error) { + return r.ApiService.POSTShipmentsExecute(r) +} + +/* +POSTShipments Create a shipment + +Create a shipment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ShipmentsApiPOSTShipmentsRequest +*/ +func (a *ShipmentsApiService) POSTShipments(ctx context.Context) ShipmentsApiPOSTShipmentsRequest { + return ShipmentsApiPOSTShipmentsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return POSTShipments201Response +func (a *ShipmentsApiService) POSTShipmentsExecute(r ShipmentsApiPOSTShipmentsRequest) (*POSTShipments201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *POSTShipments201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ShipmentsApiService.POSTShipments") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/shipments" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.shipmentCreate == nil { + return localVarReturnValue, nil, reportError("shipmentCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.shipmentCreate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api/api_shipping_categories.go b/api/api_shipping_categories.go index d3cdb603..8b8f5113 100644 --- a/api/api_shipping_categories.go +++ b/api/api_shipping_categories.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_shipping_method_tiers.go b/api/api_shipping_method_tiers.go index c9f057a0..05c43439 100644 --- a/api/api_shipping_method_tiers.go +++ b/api/api_shipping_method_tiers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_shipping_methods.go b/api/api_shipping_methods.go index b1ca2159..54d582a2 100644 --- a/api/api_shipping_methods.go +++ b/api/api_shipping_methods.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_shipping_weight_tiers.go b/api/api_shipping_weight_tiers.go index 3a478b03..fc503217 100644 --- a/api/api_shipping_weight_tiers.go +++ b/api/api_shipping_weight_tiers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_shipping_zones.go b/api/api_shipping_zones.go index 0d40cc4d..ac9febea 100644 --- a/api/api_shipping_zones.go +++ b/api/api_shipping_zones.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_singleton.go b/api/api_singleton.go index df539fac..e7bece9a 100644 --- a/api/api_singleton.go +++ b/api/api_singleton.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_sku_list_items.go b/api/api_sku_list_items.go index 1f1ffabc..22aca7bb 100644 --- a/api/api_sku_list_items.go +++ b/api/api_sku_list_items.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -115,6 +115,98 @@ func (a *SkuListItemsApiService) DELETESkuListItemsSkuListItemIdExecute(r SkuLis return localVarHTTPResponse, nil } +type SkuListItemsApiGETSkuIdSkuListItemsRequest struct { + ctx context.Context + ApiService *SkuListItemsApiService + skuId interface{} +} + +func (r SkuListItemsApiGETSkuIdSkuListItemsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdSkuListItemsExecute(r) +} + +/* +GETSkuIdSkuListItems Retrieve the sku list items associated to the SKU + +Retrieve the sku list items associated to the SKU + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param skuId The resource's id + @return SkuListItemsApiGETSkuIdSkuListItemsRequest +*/ +func (a *SkuListItemsApiService) GETSkuIdSkuListItems(ctx context.Context, skuId interface{}) SkuListItemsApiGETSkuIdSkuListItemsRequest { + return SkuListItemsApiGETSkuIdSkuListItemsRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, + } +} + +// Execute executes the request +func (a *SkuListItemsApiService) GETSkuIdSkuListItemsExecute(r SkuListItemsApiGETSkuIdSkuListItemsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkuListItemsApiService.GETSkuIdSkuListItems") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/skus/{skuId}/sku_list_items" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type SkuListItemsApiGETSkuListIdSkuListItemsRequest struct { ctx context.Context ApiService *SkuListItemsApiService diff --git a/api/api_sku_list_promotion_rules.go b/api/api_sku_list_promotion_rules.go index 25d34088..1c1cead8 100644 --- a/api/api_sku_list_promotion_rules.go +++ b/api/api_sku_list_promotion_rules.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -115,6 +115,98 @@ func (a *SkuListPromotionRulesApiService) DELETESkuListPromotionRulesSkuListProm return localVarHTTPResponse, nil } +type SkuListPromotionRulesApiGETBuyXPayYPromotionIdSkuListPromotionRuleRequest struct { + ctx context.Context + ApiService *SkuListPromotionRulesApiService + buyXPayYPromotionId interface{} +} + +func (r SkuListPromotionRulesApiGETBuyXPayYPromotionIdSkuListPromotionRuleRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdSkuListPromotionRuleExecute(r) +} + +/* +GETBuyXPayYPromotionIdSkuListPromotionRule Retrieve the sku list promotion rule associated to the buy x pay y promotion + +Retrieve the sku list promotion rule associated to the buy x pay y promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param buyXPayYPromotionId The resource's id + @return SkuListPromotionRulesApiGETBuyXPayYPromotionIdSkuListPromotionRuleRequest +*/ +func (a *SkuListPromotionRulesApiService) GETBuyXPayYPromotionIdSkuListPromotionRule(ctx context.Context, buyXPayYPromotionId interface{}) SkuListPromotionRulesApiGETBuyXPayYPromotionIdSkuListPromotionRuleRequest { + return SkuListPromotionRulesApiGETBuyXPayYPromotionIdSkuListPromotionRuleRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, + } +} + +// Execute executes the request +func (a *SkuListPromotionRulesApiService) GETBuyXPayYPromotionIdSkuListPromotionRuleExecute(r SkuListPromotionRulesApiGETBuyXPayYPromotionIdSkuListPromotionRuleRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkuListPromotionRulesApiService.GETBuyXPayYPromotionIdSkuListPromotionRule") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/sku_list_promotion_rule" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type SkuListPromotionRulesApiGETExternalPromotionIdSkuListPromotionRuleRequest struct { ctx context.Context ApiService *SkuListPromotionRulesApiService diff --git a/api/api_sku_lists.go b/api/api_sku_lists.go index f9b96521..34eb0c75 100644 --- a/api/api_sku_lists.go +++ b/api/api_sku_lists.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -207,6 +207,98 @@ func (a *SkuListsApiService) GETBundleIdSkuListExecute(r SkuListsApiGETBundleIdS return localVarHTTPResponse, nil } +type SkuListsApiGETBuyXPayYPromotionIdSkuListRequest struct { + ctx context.Context + ApiService *SkuListsApiService + buyXPayYPromotionId interface{} +} + +func (r SkuListsApiGETBuyXPayYPromotionIdSkuListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdSkuListExecute(r) +} + +/* +GETBuyXPayYPromotionIdSkuList Retrieve the sku list associated to the buy x pay y promotion + +Retrieve the sku list associated to the buy x pay y promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param buyXPayYPromotionId The resource's id + @return SkuListsApiGETBuyXPayYPromotionIdSkuListRequest +*/ +func (a *SkuListsApiService) GETBuyXPayYPromotionIdSkuList(ctx context.Context, buyXPayYPromotionId interface{}) SkuListsApiGETBuyXPayYPromotionIdSkuListRequest { + return SkuListsApiGETBuyXPayYPromotionIdSkuListRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, + } +} + +// Execute executes the request +func (a *SkuListsApiService) GETBuyXPayYPromotionIdSkuListExecute(r SkuListsApiGETBuyXPayYPromotionIdSkuListRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkuListsApiService.GETBuyXPayYPromotionIdSkuList") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/sku_list" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type SkuListsApiGETCustomerIdSkuListsRequest struct { ctx context.Context ApiService *SkuListsApiService @@ -299,6 +391,190 @@ func (a *SkuListsApiService) GETCustomerIdSkuListsExecute(r SkuListsApiGETCustom return localVarHTTPResponse, nil } +type SkuListsApiGETExternalPromotionIdSkuListRequest struct { + ctx context.Context + ApiService *SkuListsApiService + externalPromotionId interface{} +} + +func (r SkuListsApiGETExternalPromotionIdSkuListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPromotionIdSkuListExecute(r) +} + +/* +GETExternalPromotionIdSkuList Retrieve the sku list associated to the external promotion + +Retrieve the sku list associated to the external promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalPromotionId The resource's id + @return SkuListsApiGETExternalPromotionIdSkuListRequest +*/ +func (a *SkuListsApiService) GETExternalPromotionIdSkuList(ctx context.Context, externalPromotionId interface{}) SkuListsApiGETExternalPromotionIdSkuListRequest { + return SkuListsApiGETExternalPromotionIdSkuListRequest{ + ApiService: a, + ctx: ctx, + externalPromotionId: externalPromotionId, + } +} + +// Execute executes the request +func (a *SkuListsApiService) GETExternalPromotionIdSkuListExecute(r SkuListsApiGETExternalPromotionIdSkuListRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkuListsApiService.GETExternalPromotionIdSkuList") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/sku_list" + localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type SkuListsApiGETFixedAmountPromotionIdSkuListRequest struct { + ctx context.Context + ApiService *SkuListsApiService + fixedAmountPromotionId interface{} +} + +func (r SkuListsApiGETFixedAmountPromotionIdSkuListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedAmountPromotionIdSkuListExecute(r) +} + +/* +GETFixedAmountPromotionIdSkuList Retrieve the sku list associated to the fixed amount promotion + +Retrieve the sku list associated to the fixed amount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedAmountPromotionId The resource's id + @return SkuListsApiGETFixedAmountPromotionIdSkuListRequest +*/ +func (a *SkuListsApiService) GETFixedAmountPromotionIdSkuList(ctx context.Context, fixedAmountPromotionId interface{}) SkuListsApiGETFixedAmountPromotionIdSkuListRequest { + return SkuListsApiGETFixedAmountPromotionIdSkuListRequest{ + ApiService: a, + ctx: ctx, + fixedAmountPromotionId: fixedAmountPromotionId, + } +} + +// Execute executes the request +func (a *SkuListsApiService) GETFixedAmountPromotionIdSkuListExecute(r SkuListsApiGETFixedAmountPromotionIdSkuListRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkuListsApiService.GETFixedAmountPromotionIdSkuList") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/sku_list" + localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type SkuListsApiGETFixedPricePromotionIdSkuListRequest struct { ctx context.Context ApiService *SkuListsApiService @@ -483,6 +759,98 @@ func (a *SkuListsApiService) GETFreeGiftPromotionIdSkuListExecute(r SkuListsApiG return localVarHTTPResponse, nil } +type SkuListsApiGETFreeShippingPromotionIdSkuListRequest struct { + ctx context.Context + ApiService *SkuListsApiService + freeShippingPromotionId interface{} +} + +func (r SkuListsApiGETFreeShippingPromotionIdSkuListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeShippingPromotionIdSkuListExecute(r) +} + +/* +GETFreeShippingPromotionIdSkuList Retrieve the sku list associated to the free shipping promotion + +Retrieve the sku list associated to the free shipping promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeShippingPromotionId The resource's id + @return SkuListsApiGETFreeShippingPromotionIdSkuListRequest +*/ +func (a *SkuListsApiService) GETFreeShippingPromotionIdSkuList(ctx context.Context, freeShippingPromotionId interface{}) SkuListsApiGETFreeShippingPromotionIdSkuListRequest { + return SkuListsApiGETFreeShippingPromotionIdSkuListRequest{ + ApiService: a, + ctx: ctx, + freeShippingPromotionId: freeShippingPromotionId, + } +} + +// Execute executes the request +func (a *SkuListsApiService) GETFreeShippingPromotionIdSkuListExecute(r SkuListsApiGETFreeShippingPromotionIdSkuListRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkuListsApiService.GETFreeShippingPromotionIdSkuList") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/sku_list" + localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type SkuListsApiGETPercentageDiscountPromotionIdSkuListRequest struct { ctx context.Context ApiService *SkuListsApiService @@ -575,6 +943,190 @@ func (a *SkuListsApiService) GETPercentageDiscountPromotionIdSkuListExecute(r Sk return localVarHTTPResponse, nil } +type SkuListsApiGETPromotionIdSkuListRequest struct { + ctx context.Context + ApiService *SkuListsApiService + promotionId interface{} +} + +func (r SkuListsApiGETPromotionIdSkuListRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionIdSkuListExecute(r) +} + +/* +GETPromotionIdSkuList Retrieve the sku list associated to the promotion + +Retrieve the sku list associated to the promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param promotionId The resource's id + @return SkuListsApiGETPromotionIdSkuListRequest +*/ +func (a *SkuListsApiService) GETPromotionIdSkuList(ctx context.Context, promotionId interface{}) SkuListsApiGETPromotionIdSkuListRequest { + return SkuListsApiGETPromotionIdSkuListRequest{ + ApiService: a, + ctx: ctx, + promotionId: promotionId, + } +} + +// Execute executes the request +func (a *SkuListsApiService) GETPromotionIdSkuListExecute(r SkuListsApiGETPromotionIdSkuListRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkuListsApiService.GETPromotionIdSkuList") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/promotions/{promotionId}/sku_list" + localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type SkuListsApiGETSkuIdSkuListsRequest struct { + ctx context.Context + ApiService *SkuListsApiService + skuId interface{} +} + +func (r SkuListsApiGETSkuIdSkuListsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdSkuListsExecute(r) +} + +/* +GETSkuIdSkuLists Retrieve the sku lists associated to the SKU + +Retrieve the sku lists associated to the SKU + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param skuId The resource's id + @return SkuListsApiGETSkuIdSkuListsRequest +*/ +func (a *SkuListsApiService) GETSkuIdSkuLists(ctx context.Context, skuId interface{}) SkuListsApiGETSkuIdSkuListsRequest { + return SkuListsApiGETSkuIdSkuListsRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, + } +} + +// Execute executes the request +func (a *SkuListsApiService) GETSkuIdSkuListsExecute(r SkuListsApiGETSkuIdSkuListsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkuListsApiService.GETSkuIdSkuLists") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/skus/{skuId}/sku_lists" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type SkuListsApiGETSkuListItemIdSkuListRequest struct { ctx context.Context ApiService *SkuListsApiService diff --git a/api/api_sku_options.go b/api/api_sku_options.go index d731d75a..e874fe3d 100644 --- a/api/api_sku_options.go +++ b/api/api_sku_options.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_skus.go b/api/api_skus.go index e861d921..3e7522f7 100644 --- a/api/api_skus.go +++ b/api/api_skus.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -207,6 +207,282 @@ func (a *SkusApiService) GETBundleIdSkusExecute(r SkusApiGETBundleIdSkusRequest) return localVarHTTPResponse, nil } +type SkusApiGETBuyXPayYPromotionIdSkusRequest struct { + ctx context.Context + ApiService *SkusApiService + buyXPayYPromotionId interface{} +} + +func (r SkusApiGETBuyXPayYPromotionIdSkusRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdSkusExecute(r) +} + +/* +GETBuyXPayYPromotionIdSkus Retrieve the skus associated to the buy x pay y promotion + +Retrieve the skus associated to the buy x pay y promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param buyXPayYPromotionId The resource's id + @return SkusApiGETBuyXPayYPromotionIdSkusRequest +*/ +func (a *SkusApiService) GETBuyXPayYPromotionIdSkus(ctx context.Context, buyXPayYPromotionId interface{}) SkusApiGETBuyXPayYPromotionIdSkusRequest { + return SkusApiGETBuyXPayYPromotionIdSkusRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, + } +} + +// Execute executes the request +func (a *SkusApiService) GETBuyXPayYPromotionIdSkusExecute(r SkusApiGETBuyXPayYPromotionIdSkusRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkusApiService.GETBuyXPayYPromotionIdSkus") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/skus" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type SkusApiGETExternalPromotionIdSkusRequest struct { + ctx context.Context + ApiService *SkusApiService + externalPromotionId interface{} +} + +func (r SkusApiGETExternalPromotionIdSkusRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPromotionIdSkusExecute(r) +} + +/* +GETExternalPromotionIdSkus Retrieve the skus associated to the external promotion + +Retrieve the skus associated to the external promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalPromotionId The resource's id + @return SkusApiGETExternalPromotionIdSkusRequest +*/ +func (a *SkusApiService) GETExternalPromotionIdSkus(ctx context.Context, externalPromotionId interface{}) SkusApiGETExternalPromotionIdSkusRequest { + return SkusApiGETExternalPromotionIdSkusRequest{ + ApiService: a, + ctx: ctx, + externalPromotionId: externalPromotionId, + } +} + +// Execute executes the request +func (a *SkusApiService) GETExternalPromotionIdSkusExecute(r SkusApiGETExternalPromotionIdSkusRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkusApiService.GETExternalPromotionIdSkus") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/skus" + localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type SkusApiGETFixedAmountPromotionIdSkusRequest struct { + ctx context.Context + ApiService *SkusApiService + fixedAmountPromotionId interface{} +} + +func (r SkusApiGETFixedAmountPromotionIdSkusRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedAmountPromotionIdSkusExecute(r) +} + +/* +GETFixedAmountPromotionIdSkus Retrieve the skus associated to the fixed amount promotion + +Retrieve the skus associated to the fixed amount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedAmountPromotionId The resource's id + @return SkusApiGETFixedAmountPromotionIdSkusRequest +*/ +func (a *SkusApiService) GETFixedAmountPromotionIdSkus(ctx context.Context, fixedAmountPromotionId interface{}) SkusApiGETFixedAmountPromotionIdSkusRequest { + return SkusApiGETFixedAmountPromotionIdSkusRequest{ + ApiService: a, + ctx: ctx, + fixedAmountPromotionId: fixedAmountPromotionId, + } +} + +// Execute executes the request +func (a *SkusApiService) GETFixedAmountPromotionIdSkusExecute(r SkusApiGETFixedAmountPromotionIdSkusRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkusApiService.GETFixedAmountPromotionIdSkus") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/skus" + localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type SkusApiGETFixedPricePromotionIdSkusRequest struct { ctx context.Context ApiService *SkusApiService @@ -759,6 +1035,98 @@ func (a *SkusApiService) GETPriceIdSkuExecute(r SkusApiGETPriceIdSkuRequest) (*h return localVarHTTPResponse, nil } +type SkusApiGETReservedStockIdSkuRequest struct { + ctx context.Context + ApiService *SkusApiService + reservedStockId interface{} +} + +func (r SkusApiGETReservedStockIdSkuRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReservedStockIdSkuExecute(r) +} + +/* +GETReservedStockIdSku Retrieve the sku associated to the reserved stock + +Retrieve the sku associated to the reserved stock + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param reservedStockId The resource's id + @return SkusApiGETReservedStockIdSkuRequest +*/ +func (a *SkusApiService) GETReservedStockIdSku(ctx context.Context, reservedStockId interface{}) SkusApiGETReservedStockIdSkuRequest { + return SkusApiGETReservedStockIdSkuRequest{ + ApiService: a, + ctx: ctx, + reservedStockId: reservedStockId, + } +} + +// Execute executes the request +func (a *SkusApiService) GETReservedStockIdSkuExecute(r SkusApiGETReservedStockIdSkuRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkusApiService.GETReservedStockIdSku") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/reserved_stocks/{reservedStockId}/sku" + localVarPath = strings.Replace(localVarPath, "{"+"reservedStockId"+"}", url.PathEscape(parameterValueToString(r.reservedStockId, "reservedStockId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type SkusApiGETShippingCategoryIdSkusRequest struct { ctx context.Context ApiService *SkusApiService @@ -1423,6 +1791,190 @@ func (a *SkusApiService) GETStockItemIdSkuExecute(r SkusApiGETStockItemIdSkuRequ return localVarHTTPResponse, nil } +type SkusApiGETStockLineItemIdSkuRequest struct { + ctx context.Context + ApiService *SkusApiService + stockLineItemId interface{} +} + +func (r SkusApiGETStockLineItemIdSkuRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockLineItemIdSkuExecute(r) +} + +/* +GETStockLineItemIdSku Retrieve the sku associated to the stock line item + +Retrieve the sku associated to the stock line item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockLineItemId The resource's id + @return SkusApiGETStockLineItemIdSkuRequest +*/ +func (a *SkusApiService) GETStockLineItemIdSku(ctx context.Context, stockLineItemId interface{}) SkusApiGETStockLineItemIdSkuRequest { + return SkusApiGETStockLineItemIdSkuRequest{ + ApiService: a, + ctx: ctx, + stockLineItemId: stockLineItemId, + } +} + +// Execute executes the request +func (a *SkusApiService) GETStockLineItemIdSkuExecute(r SkusApiGETStockLineItemIdSkuRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkusApiService.GETStockLineItemIdSku") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_line_items/{stockLineItemId}/sku" + localVarPath = strings.Replace(localVarPath, "{"+"stockLineItemId"+"}", url.PathEscape(parameterValueToString(r.stockLineItemId, "stockLineItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type SkusApiGETStockReservationIdSkuRequest struct { + ctx context.Context + ApiService *SkusApiService + stockReservationId interface{} +} + +func (r SkusApiGETStockReservationIdSkuRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockReservationIdSkuExecute(r) +} + +/* +GETStockReservationIdSku Retrieve the sku associated to the stock reservation + +Retrieve the sku associated to the stock reservation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockReservationId The resource's id + @return SkusApiGETStockReservationIdSkuRequest +*/ +func (a *SkusApiService) GETStockReservationIdSku(ctx context.Context, stockReservationId interface{}) SkusApiGETStockReservationIdSkuRequest { + return SkusApiGETStockReservationIdSkuRequest{ + ApiService: a, + ctx: ctx, + stockReservationId: stockReservationId, + } +} + +// Execute executes the request +func (a *SkusApiService) GETStockReservationIdSkuExecute(r SkusApiGETStockReservationIdSkuRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkusApiService.GETStockReservationIdSku") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_reservations/{stockReservationId}/sku" + localVarPath = strings.Replace(localVarPath, "{"+"stockReservationId"+"}", url.PathEscape(parameterValueToString(r.stockReservationId, "stockReservationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type SkusApiGETStockTransferIdSkuRequest struct { ctx context.Context ApiService *SkusApiService diff --git a/api/api_stock_items.go b/api/api_stock_items.go index 2eea4b2b..799361af 100644 --- a/api/api_stock_items.go +++ b/api/api_stock_items.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -115,6 +115,98 @@ func (a *StockItemsApiService) DELETEStockItemsStockItemIdExecute(r StockItemsAp return localVarHTTPResponse, nil } +type StockItemsApiGETReservedStockIdStockItemRequest struct { + ctx context.Context + ApiService *StockItemsApiService + reservedStockId interface{} +} + +func (r StockItemsApiGETReservedStockIdStockItemRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReservedStockIdStockItemExecute(r) +} + +/* +GETReservedStockIdStockItem Retrieve the stock item associated to the reserved stock + +Retrieve the stock item associated to the reserved stock + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param reservedStockId The resource's id + @return StockItemsApiGETReservedStockIdStockItemRequest +*/ +func (a *StockItemsApiService) GETReservedStockIdStockItem(ctx context.Context, reservedStockId interface{}) StockItemsApiGETReservedStockIdStockItemRequest { + return StockItemsApiGETReservedStockIdStockItemRequest{ + ApiService: a, + ctx: ctx, + reservedStockId: reservedStockId, + } +} + +// Execute executes the request +func (a *StockItemsApiService) GETReservedStockIdStockItemExecute(r StockItemsApiGETReservedStockIdStockItemRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockItemsApiService.GETReservedStockIdStockItem") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/reserved_stocks/{reservedStockId}/stock_item" + localVarPath = strings.Replace(localVarPath, "{"+"reservedStockId"+"}", url.PathEscape(parameterValueToString(r.reservedStockId, "reservedStockId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type StockItemsApiGETSkuIdStockItemsRequest struct { ctx context.Context ApiService *StockItemsApiService @@ -595,6 +687,98 @@ func (a *StockItemsApiService) GETStockLocationIdStockItemsExecute(r StockItemsA return localVarHTTPResponse, nil } +type StockItemsApiGETStockReservationIdStockItemRequest struct { + ctx context.Context + ApiService *StockItemsApiService + stockReservationId interface{} +} + +func (r StockItemsApiGETStockReservationIdStockItemRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockReservationIdStockItemExecute(r) +} + +/* +GETStockReservationIdStockItem Retrieve the stock item associated to the stock reservation + +Retrieve the stock item associated to the stock reservation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockReservationId The resource's id + @return StockItemsApiGETStockReservationIdStockItemRequest +*/ +func (a *StockItemsApiService) GETStockReservationIdStockItem(ctx context.Context, stockReservationId interface{}) StockItemsApiGETStockReservationIdStockItemRequest { + return StockItemsApiGETStockReservationIdStockItemRequest{ + ApiService: a, + ctx: ctx, + stockReservationId: stockReservationId, + } +} + +// Execute executes the request +func (a *StockItemsApiService) GETStockReservationIdStockItemExecute(r StockItemsApiGETStockReservationIdStockItemRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockItemsApiService.GETStockReservationIdStockItem") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_reservations/{stockReservationId}/stock_item" + localVarPath = strings.Replace(localVarPath, "{"+"stockReservationId"+"}", url.PathEscape(parameterValueToString(r.stockReservationId, "stockReservationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type StockItemsApiPATCHStockItemsStockItemIdRequest struct { ctx context.Context ApiService *StockItemsApiService diff --git a/api/api_stock_line_items.go b/api/api_stock_line_items.go index f5bd8255..958b8789 100644 --- a/api/api_stock_line_items.go +++ b/api/api_stock_line_items.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,6 +23,98 @@ import ( // StockLineItemsApiService StockLineItemsApi service type StockLineItemsApiService service +type StockLineItemsApiDELETEStockLineItemsStockLineItemIdRequest struct { + ctx context.Context + ApiService *StockLineItemsApiService + stockLineItemId interface{} +} + +func (r StockLineItemsApiDELETEStockLineItemsStockLineItemIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DELETEStockLineItemsStockLineItemIdExecute(r) +} + +/* +DELETEStockLineItemsStockLineItemId Delete a stock line item + +Delete a stock line item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockLineItemId The resource's id + @return StockLineItemsApiDELETEStockLineItemsStockLineItemIdRequest +*/ +func (a *StockLineItemsApiService) DELETEStockLineItemsStockLineItemId(ctx context.Context, stockLineItemId interface{}) StockLineItemsApiDELETEStockLineItemsStockLineItemIdRequest { + return StockLineItemsApiDELETEStockLineItemsStockLineItemIdRequest{ + ApiService: a, + ctx: ctx, + stockLineItemId: stockLineItemId, + } +} + +// Execute executes the request +func (a *StockLineItemsApiService) DELETEStockLineItemsStockLineItemIdExecute(r StockLineItemsApiDELETEStockLineItemsStockLineItemIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockLineItemsApiService.DELETEStockLineItemsStockLineItemId") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_line_items/{stockLineItemId}" + localVarPath = strings.Replace(localVarPath, "{"+"stockLineItemId"+"}", url.PathEscape(parameterValueToString(r.stockLineItemId, "stockLineItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type StockLineItemsApiGETLineItemIdStockLineItemsRequest struct { ctx context.Context ApiService *StockLineItemsApiService @@ -115,6 +207,98 @@ func (a *StockLineItemsApiService) GETLineItemIdStockLineItemsExecute(r StockLin return localVarHTTPResponse, nil } +type StockLineItemsApiGETOrderIdStockLineItemsRequest struct { + ctx context.Context + ApiService *StockLineItemsApiService + orderId interface{} +} + +func (r StockLineItemsApiGETOrderIdStockLineItemsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdStockLineItemsExecute(r) +} + +/* +GETOrderIdStockLineItems Retrieve the stock line items associated to the order + +Retrieve the stock line items associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return StockLineItemsApiGETOrderIdStockLineItemsRequest +*/ +func (a *StockLineItemsApiService) GETOrderIdStockLineItems(ctx context.Context, orderId interface{}) StockLineItemsApiGETOrderIdStockLineItemsRequest { + return StockLineItemsApiGETOrderIdStockLineItemsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *StockLineItemsApiService) GETOrderIdStockLineItemsExecute(r StockLineItemsApiGETOrderIdStockLineItemsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockLineItemsApiService.GETOrderIdStockLineItems") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/stock_line_items" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type StockLineItemsApiGETParcelLineItemIdStockLineItemRequest struct { ctx context.Context ApiService *StockLineItemsApiService @@ -502,3 +686,321 @@ func (a *StockLineItemsApiService) GETStockLineItemsStockLineItemIdExecute(r Sto return localVarReturnValue, localVarHTTPResponse, nil } + +type StockLineItemsApiGETStockReservationIdStockLineItemRequest struct { + ctx context.Context + ApiService *StockLineItemsApiService + stockReservationId interface{} +} + +func (r StockLineItemsApiGETStockReservationIdStockLineItemRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockReservationIdStockLineItemExecute(r) +} + +/* +GETStockReservationIdStockLineItem Retrieve the stock line item associated to the stock reservation + +Retrieve the stock line item associated to the stock reservation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockReservationId The resource's id + @return StockLineItemsApiGETStockReservationIdStockLineItemRequest +*/ +func (a *StockLineItemsApiService) GETStockReservationIdStockLineItem(ctx context.Context, stockReservationId interface{}) StockLineItemsApiGETStockReservationIdStockLineItemRequest { + return StockLineItemsApiGETStockReservationIdStockLineItemRequest{ + ApiService: a, + ctx: ctx, + stockReservationId: stockReservationId, + } +} + +// Execute executes the request +func (a *StockLineItemsApiService) GETStockReservationIdStockLineItemExecute(r StockLineItemsApiGETStockReservationIdStockLineItemRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockLineItemsApiService.GETStockReservationIdStockLineItem") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_reservations/{stockReservationId}/stock_line_item" + localVarPath = strings.Replace(localVarPath, "{"+"stockReservationId"+"}", url.PathEscape(parameterValueToString(r.stockReservationId, "stockReservationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type StockLineItemsApiPATCHStockLineItemsStockLineItemIdRequest struct { + ctx context.Context + ApiService *StockLineItemsApiService + stockLineItemUpdate *StockLineItemUpdate + stockLineItemId interface{} +} + +func (r StockLineItemsApiPATCHStockLineItemsStockLineItemIdRequest) StockLineItemUpdate(stockLineItemUpdate StockLineItemUpdate) StockLineItemsApiPATCHStockLineItemsStockLineItemIdRequest { + r.stockLineItemUpdate = &stockLineItemUpdate + return r +} + +func (r StockLineItemsApiPATCHStockLineItemsStockLineItemIdRequest) Execute() (*PATCHStockLineItemsStockLineItemId200Response, *http.Response, error) { + return r.ApiService.PATCHStockLineItemsStockLineItemIdExecute(r) +} + +/* +PATCHStockLineItemsStockLineItemId Update a stock line item + +Update a stock line item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockLineItemId The resource's id + @return StockLineItemsApiPATCHStockLineItemsStockLineItemIdRequest +*/ +func (a *StockLineItemsApiService) PATCHStockLineItemsStockLineItemId(ctx context.Context, stockLineItemId interface{}) StockLineItemsApiPATCHStockLineItemsStockLineItemIdRequest { + return StockLineItemsApiPATCHStockLineItemsStockLineItemIdRequest{ + ApiService: a, + ctx: ctx, + stockLineItemId: stockLineItemId, + } +} + +// Execute executes the request +// +// @return PATCHStockLineItemsStockLineItemId200Response +func (a *StockLineItemsApiService) PATCHStockLineItemsStockLineItemIdExecute(r StockLineItemsApiPATCHStockLineItemsStockLineItemIdRequest) (*PATCHStockLineItemsStockLineItemId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PATCHStockLineItemsStockLineItemId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockLineItemsApiService.PATCHStockLineItemsStockLineItemId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_line_items/{stockLineItemId}" + localVarPath = strings.Replace(localVarPath, "{"+"stockLineItemId"+"}", url.PathEscape(parameterValueToString(r.stockLineItemId, "stockLineItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.stockLineItemUpdate == nil { + return localVarReturnValue, nil, reportError("stockLineItemUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.stockLineItemUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type StockLineItemsApiPOSTStockLineItemsRequest struct { + ctx context.Context + ApiService *StockLineItemsApiService + stockLineItemCreate *StockLineItemCreate +} + +func (r StockLineItemsApiPOSTStockLineItemsRequest) StockLineItemCreate(stockLineItemCreate StockLineItemCreate) StockLineItemsApiPOSTStockLineItemsRequest { + r.stockLineItemCreate = &stockLineItemCreate + return r +} + +func (r StockLineItemsApiPOSTStockLineItemsRequest) Execute() (*POSTStockLineItems201Response, *http.Response, error) { + return r.ApiService.POSTStockLineItemsExecute(r) +} + +/* +POSTStockLineItems Create a stock line item + +Create a stock line item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return StockLineItemsApiPOSTStockLineItemsRequest +*/ +func (a *StockLineItemsApiService) POSTStockLineItems(ctx context.Context) StockLineItemsApiPOSTStockLineItemsRequest { + return StockLineItemsApiPOSTStockLineItemsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return POSTStockLineItems201Response +func (a *StockLineItemsApiService) POSTStockLineItemsExecute(r StockLineItemsApiPOSTStockLineItemsRequest) (*POSTStockLineItems201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *POSTStockLineItems201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockLineItemsApiService.POSTStockLineItems") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_line_items" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.stockLineItemCreate == nil { + return localVarReturnValue, nil, reportError("stockLineItemCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.stockLineItemCreate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api/api_stock_locations.go b/api/api_stock_locations.go index 502fe26a..dafc706f 100644 --- a/api/api_stock_locations.go +++ b/api/api_stock_locations.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -483,6 +483,98 @@ func (a *StockLocationsApiService) GETPackageIdStockLocationExecute(r StockLocat return localVarHTTPResponse, nil } +type StockLocationsApiGETPriceIdJwtStockLocationsRequest struct { + ctx context.Context + ApiService *StockLocationsApiService + priceId interface{} +} + +func (r StockLocationsApiGETPriceIdJwtStockLocationsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceIdJwtStockLocationsExecute(r) +} + +/* +GETPriceIdJwtStockLocations Retrieve the jwt stock locations associated to the price + +Retrieve the jwt stock locations associated to the price + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceId The resource's id + @return StockLocationsApiGETPriceIdJwtStockLocationsRequest +*/ +func (a *StockLocationsApiService) GETPriceIdJwtStockLocations(ctx context.Context, priceId interface{}) StockLocationsApiGETPriceIdJwtStockLocationsRequest { + return StockLocationsApiGETPriceIdJwtStockLocationsRequest{ + ApiService: a, + ctx: ctx, + priceId: priceId, + } +} + +// Execute executes the request +func (a *StockLocationsApiService) GETPriceIdJwtStockLocationsExecute(r StockLocationsApiGETPriceIdJwtStockLocationsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockLocationsApiService.GETPriceIdJwtStockLocations") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/prices/{priceId}/jwt_stock_locations" + localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type StockLocationsApiGETReturnIdStockLocationRequest struct { ctx context.Context ApiService *StockLocationsApiService @@ -759,6 +851,98 @@ func (a *StockLocationsApiService) GETShippingMethodIdStockLocationExecute(r Sto return localVarHTTPResponse, nil } +type StockLocationsApiGETSkuIdJwtStockLocationsRequest struct { + ctx context.Context + ApiService *StockLocationsApiService + skuId interface{} +} + +func (r StockLocationsApiGETSkuIdJwtStockLocationsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdJwtStockLocationsExecute(r) +} + +/* +GETSkuIdJwtStockLocations Retrieve the jwt stock locations associated to the SKU + +Retrieve the jwt stock locations associated to the SKU + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param skuId The resource's id + @return StockLocationsApiGETSkuIdJwtStockLocationsRequest +*/ +func (a *StockLocationsApiService) GETSkuIdJwtStockLocations(ctx context.Context, skuId interface{}) StockLocationsApiGETSkuIdJwtStockLocationsRequest { + return StockLocationsApiGETSkuIdJwtStockLocationsRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, + } +} + +// Execute executes the request +func (a *StockLocationsApiService) GETSkuIdJwtStockLocationsExecute(r StockLocationsApiGETSkuIdJwtStockLocationsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockLocationsApiService.GETSkuIdJwtStockLocations") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/skus/{skuId}/jwt_stock_locations" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type StockLocationsApiGETStockItemIdStockLocationRequest struct { ctx context.Context ApiService *StockLocationsApiService diff --git a/api/api_stock_reservations.go b/api/api_stock_reservations.go new file mode 100644 index 00000000..bbbd08ed --- /dev/null +++ b/api/api_stock_reservations.go @@ -0,0 +1,1190 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// StockReservationsApiService StockReservationsApi service +type StockReservationsApiService service + +type StockReservationsApiDELETEStockReservationsStockReservationIdRequest struct { + ctx context.Context + ApiService *StockReservationsApiService + stockReservationId interface{} +} + +func (r StockReservationsApiDELETEStockReservationsStockReservationIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DELETEStockReservationsStockReservationIdExecute(r) +} + +/* +DELETEStockReservationsStockReservationId Delete a stock reservation + +Delete a stock reservation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockReservationId The resource's id + @return StockReservationsApiDELETEStockReservationsStockReservationIdRequest +*/ +func (a *StockReservationsApiService) DELETEStockReservationsStockReservationId(ctx context.Context, stockReservationId interface{}) StockReservationsApiDELETEStockReservationsStockReservationIdRequest { + return StockReservationsApiDELETEStockReservationsStockReservationIdRequest{ + ApiService: a, + ctx: ctx, + stockReservationId: stockReservationId, + } +} + +// Execute executes the request +func (a *StockReservationsApiService) DELETEStockReservationsStockReservationIdExecute(r StockReservationsApiDELETEStockReservationsStockReservationIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockReservationsApiService.DELETEStockReservationsStockReservationId") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_reservations/{stockReservationId}" + localVarPath = strings.Replace(localVarPath, "{"+"stockReservationId"+"}", url.PathEscape(parameterValueToString(r.stockReservationId, "stockReservationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type StockReservationsApiGETLineItemIdStockReservationsRequest struct { + ctx context.Context + ApiService *StockReservationsApiService + lineItemId interface{} +} + +func (r StockReservationsApiGETLineItemIdStockReservationsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLineItemIdStockReservationsExecute(r) +} + +/* +GETLineItemIdStockReservations Retrieve the stock reservations associated to the line item + +Retrieve the stock reservations associated to the line item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param lineItemId The resource's id + @return StockReservationsApiGETLineItemIdStockReservationsRequest +*/ +func (a *StockReservationsApiService) GETLineItemIdStockReservations(ctx context.Context, lineItemId interface{}) StockReservationsApiGETLineItemIdStockReservationsRequest { + return StockReservationsApiGETLineItemIdStockReservationsRequest{ + ApiService: a, + ctx: ctx, + lineItemId: lineItemId, + } +} + +// Execute executes the request +func (a *StockReservationsApiService) GETLineItemIdStockReservationsExecute(r StockReservationsApiGETLineItemIdStockReservationsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockReservationsApiService.GETLineItemIdStockReservations") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/line_items/{lineItemId}/stock_reservations" + localVarPath = strings.Replace(localVarPath, "{"+"lineItemId"+"}", url.PathEscape(parameterValueToString(r.lineItemId, "lineItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type StockReservationsApiGETOrderIdStockReservationsRequest struct { + ctx context.Context + ApiService *StockReservationsApiService + orderId interface{} +} + +func (r StockReservationsApiGETOrderIdStockReservationsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdStockReservationsExecute(r) +} + +/* +GETOrderIdStockReservations Retrieve the stock reservations associated to the order + +Retrieve the stock reservations associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return StockReservationsApiGETOrderIdStockReservationsRequest +*/ +func (a *StockReservationsApiService) GETOrderIdStockReservations(ctx context.Context, orderId interface{}) StockReservationsApiGETOrderIdStockReservationsRequest { + return StockReservationsApiGETOrderIdStockReservationsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *StockReservationsApiService) GETOrderIdStockReservationsExecute(r StockReservationsApiGETOrderIdStockReservationsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockReservationsApiService.GETOrderIdStockReservations") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/stock_reservations" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type StockReservationsApiGETReservedStockIdStockReservationsRequest struct { + ctx context.Context + ApiService *StockReservationsApiService + reservedStockId interface{} +} + +func (r StockReservationsApiGETReservedStockIdStockReservationsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReservedStockIdStockReservationsExecute(r) +} + +/* +GETReservedStockIdStockReservations Retrieve the stock reservations associated to the reserved stock + +Retrieve the stock reservations associated to the reserved stock + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param reservedStockId The resource's id + @return StockReservationsApiGETReservedStockIdStockReservationsRequest +*/ +func (a *StockReservationsApiService) GETReservedStockIdStockReservations(ctx context.Context, reservedStockId interface{}) StockReservationsApiGETReservedStockIdStockReservationsRequest { + return StockReservationsApiGETReservedStockIdStockReservationsRequest{ + ApiService: a, + ctx: ctx, + reservedStockId: reservedStockId, + } +} + +// Execute executes the request +func (a *StockReservationsApiService) GETReservedStockIdStockReservationsExecute(r StockReservationsApiGETReservedStockIdStockReservationsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockReservationsApiService.GETReservedStockIdStockReservations") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/reserved_stocks/{reservedStockId}/stock_reservations" + localVarPath = strings.Replace(localVarPath, "{"+"reservedStockId"+"}", url.PathEscape(parameterValueToString(r.reservedStockId, "reservedStockId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type StockReservationsApiGETSkuIdStockReservationsRequest struct { + ctx context.Context + ApiService *StockReservationsApiService + skuId interface{} +} + +func (r StockReservationsApiGETSkuIdStockReservationsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdStockReservationsExecute(r) +} + +/* +GETSkuIdStockReservations Retrieve the stock reservations associated to the SKU + +Retrieve the stock reservations associated to the SKU + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param skuId The resource's id + @return StockReservationsApiGETSkuIdStockReservationsRequest +*/ +func (a *StockReservationsApiService) GETSkuIdStockReservations(ctx context.Context, skuId interface{}) StockReservationsApiGETSkuIdStockReservationsRequest { + return StockReservationsApiGETSkuIdStockReservationsRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, + } +} + +// Execute executes the request +func (a *StockReservationsApiService) GETSkuIdStockReservationsExecute(r StockReservationsApiGETSkuIdStockReservationsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockReservationsApiService.GETSkuIdStockReservations") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/skus/{skuId}/stock_reservations" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type StockReservationsApiGETStockItemIdStockReservationsRequest struct { + ctx context.Context + ApiService *StockReservationsApiService + stockItemId interface{} +} + +func (r StockReservationsApiGETStockItemIdStockReservationsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockItemIdStockReservationsExecute(r) +} + +/* +GETStockItemIdStockReservations Retrieve the stock reservations associated to the stock item + +Retrieve the stock reservations associated to the stock item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockItemId The resource's id + @return StockReservationsApiGETStockItemIdStockReservationsRequest +*/ +func (a *StockReservationsApiService) GETStockItemIdStockReservations(ctx context.Context, stockItemId interface{}) StockReservationsApiGETStockItemIdStockReservationsRequest { + return StockReservationsApiGETStockItemIdStockReservationsRequest{ + ApiService: a, + ctx: ctx, + stockItemId: stockItemId, + } +} + +// Execute executes the request +func (a *StockReservationsApiService) GETStockItemIdStockReservationsExecute(r StockReservationsApiGETStockItemIdStockReservationsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockReservationsApiService.GETStockItemIdStockReservations") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_items/{stockItemId}/stock_reservations" + localVarPath = strings.Replace(localVarPath, "{"+"stockItemId"+"}", url.PathEscape(parameterValueToString(r.stockItemId, "stockItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type StockReservationsApiGETStockLineItemIdStockReservationRequest struct { + ctx context.Context + ApiService *StockReservationsApiService + stockLineItemId interface{} +} + +func (r StockReservationsApiGETStockLineItemIdStockReservationRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockLineItemIdStockReservationExecute(r) +} + +/* +GETStockLineItemIdStockReservation Retrieve the stock reservation associated to the stock line item + +Retrieve the stock reservation associated to the stock line item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockLineItemId The resource's id + @return StockReservationsApiGETStockLineItemIdStockReservationRequest +*/ +func (a *StockReservationsApiService) GETStockLineItemIdStockReservation(ctx context.Context, stockLineItemId interface{}) StockReservationsApiGETStockLineItemIdStockReservationRequest { + return StockReservationsApiGETStockLineItemIdStockReservationRequest{ + ApiService: a, + ctx: ctx, + stockLineItemId: stockLineItemId, + } +} + +// Execute executes the request +func (a *StockReservationsApiService) GETStockLineItemIdStockReservationExecute(r StockReservationsApiGETStockLineItemIdStockReservationRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockReservationsApiService.GETStockLineItemIdStockReservation") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_line_items/{stockLineItemId}/stock_reservation" + localVarPath = strings.Replace(localVarPath, "{"+"stockLineItemId"+"}", url.PathEscape(parameterValueToString(r.stockLineItemId, "stockLineItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type StockReservationsApiGETStockReservationsRequest struct { + ctx context.Context + ApiService *StockReservationsApiService +} + +func (r StockReservationsApiGETStockReservationsRequest) Execute() (*GETStockReservations200Response, *http.Response, error) { + return r.ApiService.GETStockReservationsExecute(r) +} + +/* +GETStockReservations List all stock reservations + +List all stock reservations + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return StockReservationsApiGETStockReservationsRequest +*/ +func (a *StockReservationsApiService) GETStockReservations(ctx context.Context) StockReservationsApiGETStockReservationsRequest { + return StockReservationsApiGETStockReservationsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GETStockReservations200Response +func (a *StockReservationsApiService) GETStockReservationsExecute(r StockReservationsApiGETStockReservationsRequest) (*GETStockReservations200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETStockReservations200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockReservationsApiService.GETStockReservations") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_reservations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type StockReservationsApiGETStockReservationsStockReservationIdRequest struct { + ctx context.Context + ApiService *StockReservationsApiService + stockReservationId interface{} +} + +func (r StockReservationsApiGETStockReservationsStockReservationIdRequest) Execute() (*GETStockReservationsStockReservationId200Response, *http.Response, error) { + return r.ApiService.GETStockReservationsStockReservationIdExecute(r) +} + +/* +GETStockReservationsStockReservationId Retrieve a stock reservation + +Retrieve a stock reservation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockReservationId The resource's id + @return StockReservationsApiGETStockReservationsStockReservationIdRequest +*/ +func (a *StockReservationsApiService) GETStockReservationsStockReservationId(ctx context.Context, stockReservationId interface{}) StockReservationsApiGETStockReservationsStockReservationIdRequest { + return StockReservationsApiGETStockReservationsStockReservationIdRequest{ + ApiService: a, + ctx: ctx, + stockReservationId: stockReservationId, + } +} + +// Execute executes the request +// +// @return GETStockReservationsStockReservationId200Response +func (a *StockReservationsApiService) GETStockReservationsStockReservationIdExecute(r StockReservationsApiGETStockReservationsStockReservationIdRequest) (*GETStockReservationsStockReservationId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETStockReservationsStockReservationId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockReservationsApiService.GETStockReservationsStockReservationId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_reservations/{stockReservationId}" + localVarPath = strings.Replace(localVarPath, "{"+"stockReservationId"+"}", url.PathEscape(parameterValueToString(r.stockReservationId, "stockReservationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type StockReservationsApiGETStockTransferIdStockReservationRequest struct { + ctx context.Context + ApiService *StockReservationsApiService + stockTransferId interface{} +} + +func (r StockReservationsApiGETStockTransferIdStockReservationRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockTransferIdStockReservationExecute(r) +} + +/* +GETStockTransferIdStockReservation Retrieve the stock reservation associated to the stock transfer + +Retrieve the stock reservation associated to the stock transfer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockTransferId The resource's id + @return StockReservationsApiGETStockTransferIdStockReservationRequest +*/ +func (a *StockReservationsApiService) GETStockTransferIdStockReservation(ctx context.Context, stockTransferId interface{}) StockReservationsApiGETStockTransferIdStockReservationRequest { + return StockReservationsApiGETStockTransferIdStockReservationRequest{ + ApiService: a, + ctx: ctx, + stockTransferId: stockTransferId, + } +} + +// Execute executes the request +func (a *StockReservationsApiService) GETStockTransferIdStockReservationExecute(r StockReservationsApiGETStockTransferIdStockReservationRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockReservationsApiService.GETStockTransferIdStockReservation") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_transfers/{stockTransferId}/stock_reservation" + localVarPath = strings.Replace(localVarPath, "{"+"stockTransferId"+"}", url.PathEscape(parameterValueToString(r.stockTransferId, "stockTransferId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type StockReservationsApiPATCHStockReservationsStockReservationIdRequest struct { + ctx context.Context + ApiService *StockReservationsApiService + stockReservationUpdate *StockReservationUpdate + stockReservationId interface{} +} + +func (r StockReservationsApiPATCHStockReservationsStockReservationIdRequest) StockReservationUpdate(stockReservationUpdate StockReservationUpdate) StockReservationsApiPATCHStockReservationsStockReservationIdRequest { + r.stockReservationUpdate = &stockReservationUpdate + return r +} + +func (r StockReservationsApiPATCHStockReservationsStockReservationIdRequest) Execute() (*PATCHStockReservationsStockReservationId200Response, *http.Response, error) { + return r.ApiService.PATCHStockReservationsStockReservationIdExecute(r) +} + +/* +PATCHStockReservationsStockReservationId Update a stock reservation + +Update a stock reservation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockReservationId The resource's id + @return StockReservationsApiPATCHStockReservationsStockReservationIdRequest +*/ +func (a *StockReservationsApiService) PATCHStockReservationsStockReservationId(ctx context.Context, stockReservationId interface{}) StockReservationsApiPATCHStockReservationsStockReservationIdRequest { + return StockReservationsApiPATCHStockReservationsStockReservationIdRequest{ + ApiService: a, + ctx: ctx, + stockReservationId: stockReservationId, + } +} + +// Execute executes the request +// +// @return PATCHStockReservationsStockReservationId200Response +func (a *StockReservationsApiService) PATCHStockReservationsStockReservationIdExecute(r StockReservationsApiPATCHStockReservationsStockReservationIdRequest) (*PATCHStockReservationsStockReservationId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PATCHStockReservationsStockReservationId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockReservationsApiService.PATCHStockReservationsStockReservationId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_reservations/{stockReservationId}" + localVarPath = strings.Replace(localVarPath, "{"+"stockReservationId"+"}", url.PathEscape(parameterValueToString(r.stockReservationId, "stockReservationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.stockReservationUpdate == nil { + return localVarReturnValue, nil, reportError("stockReservationUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.stockReservationUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type StockReservationsApiPOSTStockReservationsRequest struct { + ctx context.Context + ApiService *StockReservationsApiService + stockReservationCreate *StockReservationCreate +} + +func (r StockReservationsApiPOSTStockReservationsRequest) StockReservationCreate(stockReservationCreate StockReservationCreate) StockReservationsApiPOSTStockReservationsRequest { + r.stockReservationCreate = &stockReservationCreate + return r +} + +func (r StockReservationsApiPOSTStockReservationsRequest) Execute() (*POSTStockReservations201Response, *http.Response, error) { + return r.ApiService.POSTStockReservationsExecute(r) +} + +/* +POSTStockReservations Create a stock reservation + +Create a stock reservation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return StockReservationsApiPOSTStockReservationsRequest +*/ +func (a *StockReservationsApiService) POSTStockReservations(ctx context.Context) StockReservationsApiPOSTStockReservationsRequest { + return StockReservationsApiPOSTStockReservationsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return POSTStockReservations201Response +func (a *StockReservationsApiService) POSTStockReservationsExecute(r StockReservationsApiPOSTStockReservationsRequest) (*POSTStockReservations201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *POSTStockReservations201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockReservationsApiService.POSTStockReservations") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_reservations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.stockReservationCreate == nil { + return localVarReturnValue, nil, reportError("stockReservationCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.stockReservationCreate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api/api_stock_transfers.go b/api/api_stock_transfers.go index 46a17e88..06ed5d34 100644 --- a/api/api_stock_transfers.go +++ b/api/api_stock_transfers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -207,6 +207,98 @@ func (a *StockTransfersApiService) GETLineItemIdStockTransfersExecute(r StockTra return localVarHTTPResponse, nil } +type StockTransfersApiGETOrderIdStockTransfersRequest struct { + ctx context.Context + ApiService *StockTransfersApiService + orderId interface{} +} + +func (r StockTransfersApiGETOrderIdStockTransfersRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdStockTransfersExecute(r) +} + +/* +GETOrderIdStockTransfers Retrieve the stock transfers associated to the order + +Retrieve the stock transfers associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return StockTransfersApiGETOrderIdStockTransfersRequest +*/ +func (a *StockTransfersApiService) GETOrderIdStockTransfers(ctx context.Context, orderId interface{}) StockTransfersApiGETOrderIdStockTransfersRequest { + return StockTransfersApiGETOrderIdStockTransfersRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *StockTransfersApiService) GETOrderIdStockTransfersExecute(r StockTransfersApiGETOrderIdStockTransfersRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockTransfersApiService.GETOrderIdStockTransfers") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/stock_transfers" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type StockTransfersApiGETShipmentIdStockTransfersRequest struct { ctx context.Context ApiService *StockTransfersApiService @@ -391,6 +483,98 @@ func (a *StockTransfersApiService) GETStockLocationIdStockTransfersExecute(r Sto return localVarHTTPResponse, nil } +type StockTransfersApiGETStockReservationIdStockTransferRequest struct { + ctx context.Context + ApiService *StockTransfersApiService + stockReservationId interface{} +} + +func (r StockTransfersApiGETStockReservationIdStockTransferRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockReservationIdStockTransferExecute(r) +} + +/* +GETStockReservationIdStockTransfer Retrieve the stock transfer associated to the stock reservation + +Retrieve the stock transfer associated to the stock reservation + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockReservationId The resource's id + @return StockTransfersApiGETStockReservationIdStockTransferRequest +*/ +func (a *StockTransfersApiService) GETStockReservationIdStockTransfer(ctx context.Context, stockReservationId interface{}) StockTransfersApiGETStockReservationIdStockTransferRequest { + return StockTransfersApiGETStockReservationIdStockTransferRequest{ + ApiService: a, + ctx: ctx, + stockReservationId: stockReservationId, + } +} + +// Execute executes the request +func (a *StockTransfersApiService) GETStockReservationIdStockTransferExecute(r StockTransfersApiGETStockReservationIdStockTransferRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StockTransfersApiService.GETStockReservationIdStockTransfer") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_reservations/{stockReservationId}/stock_transfer" + localVarPath = strings.Replace(localVarPath, "{"+"stockReservationId"+"}", url.PathEscape(parameterValueToString(r.stockReservationId, "stockReservationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + type StockTransfersApiGETStockTransfersRequest struct { ctx context.Context ApiService *StockTransfersApiService diff --git a/api/api_stripe_gateways.go b/api/api_stripe_gateways.go index cc93ae58..57586e3d 100644 --- a/api/api_stripe_gateways.go +++ b/api/api_stripe_gateways.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_stripe_payments.go b/api/api_stripe_payments.go index 92185a33..5bd2335b 100644 --- a/api/api_stripe_payments.go +++ b/api/api_stripe_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_subscription_models.go b/api/api_subscription_models.go index b81e3970..d76e57f9 100644 --- a/api/api_subscription_models.go +++ b/api/api_subscription_models.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_tags.go b/api/api_tags.go new file mode 100644 index 00000000..49761be0 --- /dev/null +++ b/api/api_tags.go @@ -0,0 +1,2570 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// TagsApiService TagsApi service +type TagsApiService service + +type TagsApiDELETETagsTagIdRequest struct { + ctx context.Context + ApiService *TagsApiService + tagId interface{} +} + +func (r TagsApiDELETETagsTagIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DELETETagsTagIdExecute(r) +} + +/* +DELETETagsTagId Delete a tag + +Delete a tag + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tagId The resource's id + @return TagsApiDELETETagsTagIdRequest +*/ +func (a *TagsApiService) DELETETagsTagId(ctx context.Context, tagId interface{}) TagsApiDELETETagsTagIdRequest { + return TagsApiDELETETagsTagIdRequest{ + ApiService: a, + ctx: ctx, + tagId: tagId, + } +} + +// Execute executes the request +func (a *TagsApiService) DELETETagsTagIdExecute(r TagsApiDELETETagsTagIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.DELETETagsTagId") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/tags/{tagId}" + localVarPath = strings.Replace(localVarPath, "{"+"tagId"+"}", url.PathEscape(parameterValueToString(r.tagId, "tagId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETAddressIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + addressId interface{} +} + +func (r TagsApiGETAddressIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAddressIdTagsExecute(r) +} + +/* +GETAddressIdTags Retrieve the tags associated to the address + +Retrieve the tags associated to the address + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param addressId The resource's id + @return TagsApiGETAddressIdTagsRequest +*/ +func (a *TagsApiService) GETAddressIdTags(ctx context.Context, addressId interface{}) TagsApiGETAddressIdTagsRequest { + return TagsApiGETAddressIdTagsRequest{ + ApiService: a, + ctx: ctx, + addressId: addressId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETAddressIdTagsExecute(r TagsApiGETAddressIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETAddressIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/addresses/{addressId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"addressId"+"}", url.PathEscape(parameterValueToString(r.addressId, "addressId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETBundleIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + bundleId interface{} +} + +func (r TagsApiGETBundleIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBundleIdTagsExecute(r) +} + +/* +GETBundleIdTags Retrieve the tags associated to the bundle + +Retrieve the tags associated to the bundle + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param bundleId The resource's id + @return TagsApiGETBundleIdTagsRequest +*/ +func (a *TagsApiService) GETBundleIdTags(ctx context.Context, bundleId interface{}) TagsApiGETBundleIdTagsRequest { + return TagsApiGETBundleIdTagsRequest{ + ApiService: a, + ctx: ctx, + bundleId: bundleId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETBundleIdTagsExecute(r TagsApiGETBundleIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETBundleIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/bundles/{bundleId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"bundleId"+"}", url.PathEscape(parameterValueToString(r.bundleId, "bundleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETBuyXPayYPromotionIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + buyXPayYPromotionId interface{} +} + +func (r TagsApiGETBuyXPayYPromotionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdTagsExecute(r) +} + +/* +GETBuyXPayYPromotionIdTags Retrieve the tags associated to the buy x pay y promotion + +Retrieve the tags associated to the buy x pay y promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param buyXPayYPromotionId The resource's id + @return TagsApiGETBuyXPayYPromotionIdTagsRequest +*/ +func (a *TagsApiService) GETBuyXPayYPromotionIdTags(ctx context.Context, buyXPayYPromotionId interface{}) TagsApiGETBuyXPayYPromotionIdTagsRequest { + return TagsApiGETBuyXPayYPromotionIdTagsRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETBuyXPayYPromotionIdTagsExecute(r TagsApiGETBuyXPayYPromotionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETBuyXPayYPromotionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETCouponIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + couponId interface{} +} + +func (r TagsApiGETCouponIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCouponIdTagsExecute(r) +} + +/* +GETCouponIdTags Retrieve the tags associated to the coupon + +Retrieve the tags associated to the coupon + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param couponId The resource's id + @return TagsApiGETCouponIdTagsRequest +*/ +func (a *TagsApiService) GETCouponIdTags(ctx context.Context, couponId interface{}) TagsApiGETCouponIdTagsRequest { + return TagsApiGETCouponIdTagsRequest{ + ApiService: a, + ctx: ctx, + couponId: couponId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETCouponIdTagsExecute(r TagsApiGETCouponIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETCouponIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/coupons/{couponId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"couponId"+"}", url.PathEscape(parameterValueToString(r.couponId, "couponId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETCustomerIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + customerId interface{} +} + +func (r TagsApiGETCustomerIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerIdTagsExecute(r) +} + +/* +GETCustomerIdTags Retrieve the tags associated to the customer + +Retrieve the tags associated to the customer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerId The resource's id + @return TagsApiGETCustomerIdTagsRequest +*/ +func (a *TagsApiService) GETCustomerIdTags(ctx context.Context, customerId interface{}) TagsApiGETCustomerIdTagsRequest { + return TagsApiGETCustomerIdTagsRequest{ + ApiService: a, + ctx: ctx, + customerId: customerId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETCustomerIdTagsExecute(r TagsApiGETCustomerIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETCustomerIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customers/{customerId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"customerId"+"}", url.PathEscape(parameterValueToString(r.customerId, "customerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETExternalPromotionIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + externalPromotionId interface{} +} + +func (r TagsApiGETExternalPromotionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPromotionIdTagsExecute(r) +} + +/* +GETExternalPromotionIdTags Retrieve the tags associated to the external promotion + +Retrieve the tags associated to the external promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalPromotionId The resource's id + @return TagsApiGETExternalPromotionIdTagsRequest +*/ +func (a *TagsApiService) GETExternalPromotionIdTags(ctx context.Context, externalPromotionId interface{}) TagsApiGETExternalPromotionIdTagsRequest { + return TagsApiGETExternalPromotionIdTagsRequest{ + ApiService: a, + ctx: ctx, + externalPromotionId: externalPromotionId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETExternalPromotionIdTagsExecute(r TagsApiGETExternalPromotionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETExternalPromotionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETFixedAmountPromotionIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + fixedAmountPromotionId interface{} +} + +func (r TagsApiGETFixedAmountPromotionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedAmountPromotionIdTagsExecute(r) +} + +/* +GETFixedAmountPromotionIdTags Retrieve the tags associated to the fixed amount promotion + +Retrieve the tags associated to the fixed amount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedAmountPromotionId The resource's id + @return TagsApiGETFixedAmountPromotionIdTagsRequest +*/ +func (a *TagsApiService) GETFixedAmountPromotionIdTags(ctx context.Context, fixedAmountPromotionId interface{}) TagsApiGETFixedAmountPromotionIdTagsRequest { + return TagsApiGETFixedAmountPromotionIdTagsRequest{ + ApiService: a, + ctx: ctx, + fixedAmountPromotionId: fixedAmountPromotionId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETFixedAmountPromotionIdTagsExecute(r TagsApiGETFixedAmountPromotionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETFixedAmountPromotionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETFixedPricePromotionIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + fixedPricePromotionId interface{} +} + +func (r TagsApiGETFixedPricePromotionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedPricePromotionIdTagsExecute(r) +} + +/* +GETFixedPricePromotionIdTags Retrieve the tags associated to the fixed price promotion + +Retrieve the tags associated to the fixed price promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedPricePromotionId The resource's id + @return TagsApiGETFixedPricePromotionIdTagsRequest +*/ +func (a *TagsApiService) GETFixedPricePromotionIdTags(ctx context.Context, fixedPricePromotionId interface{}) TagsApiGETFixedPricePromotionIdTagsRequest { + return TagsApiGETFixedPricePromotionIdTagsRequest{ + ApiService: a, + ctx: ctx, + fixedPricePromotionId: fixedPricePromotionId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETFixedPricePromotionIdTagsExecute(r TagsApiGETFixedPricePromotionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETFixedPricePromotionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETFlexPromotionIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + flexPromotionId interface{} +} + +func (r TagsApiGETFlexPromotionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFlexPromotionIdTagsExecute(r) +} + +/* +GETFlexPromotionIdTags Retrieve the tags associated to the flex promotion + +Retrieve the tags associated to the flex promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param flexPromotionId The resource's id + @return TagsApiGETFlexPromotionIdTagsRequest +*/ +func (a *TagsApiService) GETFlexPromotionIdTags(ctx context.Context, flexPromotionId interface{}) TagsApiGETFlexPromotionIdTagsRequest { + return TagsApiGETFlexPromotionIdTagsRequest{ + ApiService: a, + ctx: ctx, + flexPromotionId: flexPromotionId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETFlexPromotionIdTagsExecute(r TagsApiGETFlexPromotionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETFlexPromotionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/flex_promotions/{flexPromotionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"flexPromotionId"+"}", url.PathEscape(parameterValueToString(r.flexPromotionId, "flexPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETFreeGiftPromotionIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + freeGiftPromotionId interface{} +} + +func (r TagsApiGETFreeGiftPromotionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeGiftPromotionIdTagsExecute(r) +} + +/* +GETFreeGiftPromotionIdTags Retrieve the tags associated to the free gift promotion + +Retrieve the tags associated to the free gift promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeGiftPromotionId The resource's id + @return TagsApiGETFreeGiftPromotionIdTagsRequest +*/ +func (a *TagsApiService) GETFreeGiftPromotionIdTags(ctx context.Context, freeGiftPromotionId interface{}) TagsApiGETFreeGiftPromotionIdTagsRequest { + return TagsApiGETFreeGiftPromotionIdTagsRequest{ + ApiService: a, + ctx: ctx, + freeGiftPromotionId: freeGiftPromotionId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETFreeGiftPromotionIdTagsExecute(r TagsApiGETFreeGiftPromotionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETFreeGiftPromotionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETFreeShippingPromotionIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + freeShippingPromotionId interface{} +} + +func (r TagsApiGETFreeShippingPromotionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeShippingPromotionIdTagsExecute(r) +} + +/* +GETFreeShippingPromotionIdTags Retrieve the tags associated to the free shipping promotion + +Retrieve the tags associated to the free shipping promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeShippingPromotionId The resource's id + @return TagsApiGETFreeShippingPromotionIdTagsRequest +*/ +func (a *TagsApiService) GETFreeShippingPromotionIdTags(ctx context.Context, freeShippingPromotionId interface{}) TagsApiGETFreeShippingPromotionIdTagsRequest { + return TagsApiGETFreeShippingPromotionIdTagsRequest{ + ApiService: a, + ctx: ctx, + freeShippingPromotionId: freeShippingPromotionId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETFreeShippingPromotionIdTagsExecute(r TagsApiGETFreeShippingPromotionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETFreeShippingPromotionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETGiftCardIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + giftCardId interface{} +} + +func (r TagsApiGETGiftCardIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGiftCardIdTagsExecute(r) +} + +/* +GETGiftCardIdTags Retrieve the tags associated to the gift card + +Retrieve the tags associated to the gift card + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param giftCardId The resource's id + @return TagsApiGETGiftCardIdTagsRequest +*/ +func (a *TagsApiService) GETGiftCardIdTags(ctx context.Context, giftCardId interface{}) TagsApiGETGiftCardIdTagsRequest { + return TagsApiGETGiftCardIdTagsRequest{ + ApiService: a, + ctx: ctx, + giftCardId: giftCardId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETGiftCardIdTagsExecute(r TagsApiGETGiftCardIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETGiftCardIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/gift_cards/{giftCardId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"giftCardId"+"}", url.PathEscape(parameterValueToString(r.giftCardId, "giftCardId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETLineItemIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + lineItemId interface{} +} + +func (r TagsApiGETLineItemIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLineItemIdTagsExecute(r) +} + +/* +GETLineItemIdTags Retrieve the tags associated to the line item + +Retrieve the tags associated to the line item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param lineItemId The resource's id + @return TagsApiGETLineItemIdTagsRequest +*/ +func (a *TagsApiService) GETLineItemIdTags(ctx context.Context, lineItemId interface{}) TagsApiGETLineItemIdTagsRequest { + return TagsApiGETLineItemIdTagsRequest{ + ApiService: a, + ctx: ctx, + lineItemId: lineItemId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETLineItemIdTagsExecute(r TagsApiGETLineItemIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETLineItemIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/line_items/{lineItemId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"lineItemId"+"}", url.PathEscape(parameterValueToString(r.lineItemId, "lineItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETLineItemOptionIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + lineItemOptionId interface{} +} + +func (r TagsApiGETLineItemOptionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETLineItemOptionIdTagsExecute(r) +} + +/* +GETLineItemOptionIdTags Retrieve the tags associated to the line item option + +Retrieve the tags associated to the line item option + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param lineItemOptionId The resource's id + @return TagsApiGETLineItemOptionIdTagsRequest +*/ +func (a *TagsApiService) GETLineItemOptionIdTags(ctx context.Context, lineItemOptionId interface{}) TagsApiGETLineItemOptionIdTagsRequest { + return TagsApiGETLineItemOptionIdTagsRequest{ + ApiService: a, + ctx: ctx, + lineItemOptionId: lineItemOptionId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETLineItemOptionIdTagsExecute(r TagsApiGETLineItemOptionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETLineItemOptionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/line_item_options/{lineItemOptionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"lineItemOptionId"+"}", url.PathEscape(parameterValueToString(r.lineItemOptionId, "lineItemOptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETOrderIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + orderId interface{} +} + +func (r TagsApiGETOrderIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdTagsExecute(r) +} + +/* +GETOrderIdTags Retrieve the tags associated to the order + +Retrieve the tags associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return TagsApiGETOrderIdTagsRequest +*/ +func (a *TagsApiService) GETOrderIdTags(ctx context.Context, orderId interface{}) TagsApiGETOrderIdTagsRequest { + return TagsApiGETOrderIdTagsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETOrderIdTagsExecute(r TagsApiGETOrderIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETOrderIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETOrderSubscriptionIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + orderSubscriptionId interface{} +} + +func (r TagsApiGETOrderSubscriptionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderSubscriptionIdTagsExecute(r) +} + +/* +GETOrderSubscriptionIdTags Retrieve the tags associated to the order subscription + +Retrieve the tags associated to the order subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderSubscriptionId The resource's id + @return TagsApiGETOrderSubscriptionIdTagsRequest +*/ +func (a *TagsApiService) GETOrderSubscriptionIdTags(ctx context.Context, orderSubscriptionId interface{}) TagsApiGETOrderSubscriptionIdTagsRequest { + return TagsApiGETOrderSubscriptionIdTagsRequest{ + ApiService: a, + ctx: ctx, + orderSubscriptionId: orderSubscriptionId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETOrderSubscriptionIdTagsExecute(r TagsApiGETOrderSubscriptionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETOrderSubscriptionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETPercentageDiscountPromotionIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + percentageDiscountPromotionId interface{} +} + +func (r TagsApiGETPercentageDiscountPromotionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPercentageDiscountPromotionIdTagsExecute(r) +} + +/* +GETPercentageDiscountPromotionIdTags Retrieve the tags associated to the percentage discount promotion + +Retrieve the tags associated to the percentage discount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param percentageDiscountPromotionId The resource's id + @return TagsApiGETPercentageDiscountPromotionIdTagsRequest +*/ +func (a *TagsApiService) GETPercentageDiscountPromotionIdTags(ctx context.Context, percentageDiscountPromotionId interface{}) TagsApiGETPercentageDiscountPromotionIdTagsRequest { + return TagsApiGETPercentageDiscountPromotionIdTagsRequest{ + ApiService: a, + ctx: ctx, + percentageDiscountPromotionId: percentageDiscountPromotionId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETPercentageDiscountPromotionIdTagsExecute(r TagsApiGETPercentageDiscountPromotionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETPercentageDiscountPromotionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETPromotionIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + promotionId interface{} +} + +func (r TagsApiGETPromotionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionIdTagsExecute(r) +} + +/* +GETPromotionIdTags Retrieve the tags associated to the promotion + +Retrieve the tags associated to the promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param promotionId The resource's id + @return TagsApiGETPromotionIdTagsRequest +*/ +func (a *TagsApiService) GETPromotionIdTags(ctx context.Context, promotionId interface{}) TagsApiGETPromotionIdTagsRequest { + return TagsApiGETPromotionIdTagsRequest{ + ApiService: a, + ctx: ctx, + promotionId: promotionId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETPromotionIdTagsExecute(r TagsApiGETPromotionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETPromotionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/promotions/{promotionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETReturnIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + returnId interface{} +} + +func (r TagsApiGETReturnIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnIdTagsExecute(r) +} + +/* +GETReturnIdTags Retrieve the tags associated to the return + +Retrieve the tags associated to the return + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param returnId The resource's id + @return TagsApiGETReturnIdTagsRequest +*/ +func (a *TagsApiService) GETReturnIdTags(ctx context.Context, returnId interface{}) TagsApiGETReturnIdTagsRequest { + return TagsApiGETReturnIdTagsRequest{ + ApiService: a, + ctx: ctx, + returnId: returnId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETReturnIdTagsExecute(r TagsApiGETReturnIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETReturnIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/returns/{returnId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETShipmentIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + shipmentId interface{} +} + +func (r TagsApiGETShipmentIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdTagsExecute(r) +} + +/* +GETShipmentIdTags Retrieve the tags associated to the shipment + +Retrieve the tags associated to the shipment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param shipmentId The resource's id + @return TagsApiGETShipmentIdTagsRequest +*/ +func (a *TagsApiService) GETShipmentIdTags(ctx context.Context, shipmentId interface{}) TagsApiGETShipmentIdTagsRequest { + return TagsApiGETShipmentIdTagsRequest{ + ApiService: a, + ctx: ctx, + shipmentId: shipmentId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETShipmentIdTagsExecute(r TagsApiGETShipmentIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETShipmentIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/shipments/{shipmentId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETSkuIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + skuId interface{} +} + +func (r TagsApiGETSkuIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdTagsExecute(r) +} + +/* +GETSkuIdTags Retrieve the tags associated to the SKU + +Retrieve the tags associated to the SKU + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param skuId The resource's id + @return TagsApiGETSkuIdTagsRequest +*/ +func (a *TagsApiService) GETSkuIdTags(ctx context.Context, skuId interface{}) TagsApiGETSkuIdTagsRequest { + return TagsApiGETSkuIdTagsRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETSkuIdTagsExecute(r TagsApiGETSkuIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETSkuIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/skus/{skuId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETSkuOptionIdTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + skuOptionId interface{} +} + +func (r TagsApiGETSkuOptionIdTagsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuOptionIdTagsExecute(r) +} + +/* +GETSkuOptionIdTags Retrieve the tags associated to the SKU option + +Retrieve the tags associated to the SKU option + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param skuOptionId The resource's id + @return TagsApiGETSkuOptionIdTagsRequest +*/ +func (a *TagsApiService) GETSkuOptionIdTags(ctx context.Context, skuOptionId interface{}) TagsApiGETSkuOptionIdTagsRequest { + return TagsApiGETSkuOptionIdTagsRequest{ + ApiService: a, + ctx: ctx, + skuOptionId: skuOptionId, + } +} + +// Execute executes the request +func (a *TagsApiService) GETSkuOptionIdTagsExecute(r TagsApiGETSkuOptionIdTagsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETSkuOptionIdTags") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/sku_options/{skuOptionId}/tags" + localVarPath = strings.Replace(localVarPath, "{"+"skuOptionId"+"}", url.PathEscape(parameterValueToString(r.skuOptionId, "skuOptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type TagsApiGETTagsRequest struct { + ctx context.Context + ApiService *TagsApiService +} + +func (r TagsApiGETTagsRequest) Execute() (*GETTags200Response, *http.Response, error) { + return r.ApiService.GETTagsExecute(r) +} + +/* +GETTags List all tags + +List all tags + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return TagsApiGETTagsRequest +*/ +func (a *TagsApiService) GETTags(ctx context.Context) TagsApiGETTagsRequest { + return TagsApiGETTagsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GETTags200Response +func (a *TagsApiService) GETTagsExecute(r TagsApiGETTagsRequest) (*GETTags200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETTags200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETTags") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/tags" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type TagsApiGETTagsTagIdRequest struct { + ctx context.Context + ApiService *TagsApiService + tagId interface{} +} + +func (r TagsApiGETTagsTagIdRequest) Execute() (*GETTagsTagId200Response, *http.Response, error) { + return r.ApiService.GETTagsTagIdExecute(r) +} + +/* +GETTagsTagId Retrieve a tag + +Retrieve a tag + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tagId The resource's id + @return TagsApiGETTagsTagIdRequest +*/ +func (a *TagsApiService) GETTagsTagId(ctx context.Context, tagId interface{}) TagsApiGETTagsTagIdRequest { + return TagsApiGETTagsTagIdRequest{ + ApiService: a, + ctx: ctx, + tagId: tagId, + } +} + +// Execute executes the request +// +// @return GETTagsTagId200Response +func (a *TagsApiService) GETTagsTagIdExecute(r TagsApiGETTagsTagIdRequest) (*GETTagsTagId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETTagsTagId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.GETTagsTagId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/tags/{tagId}" + localVarPath = strings.Replace(localVarPath, "{"+"tagId"+"}", url.PathEscape(parameterValueToString(r.tagId, "tagId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type TagsApiPATCHTagsTagIdRequest struct { + ctx context.Context + ApiService *TagsApiService + tagUpdate *TagUpdate + tagId interface{} +} + +func (r TagsApiPATCHTagsTagIdRequest) TagUpdate(tagUpdate TagUpdate) TagsApiPATCHTagsTagIdRequest { + r.tagUpdate = &tagUpdate + return r +} + +func (r TagsApiPATCHTagsTagIdRequest) Execute() (*PATCHTagsTagId200Response, *http.Response, error) { + return r.ApiService.PATCHTagsTagIdExecute(r) +} + +/* +PATCHTagsTagId Update a tag + +Update a tag + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tagId The resource's id + @return TagsApiPATCHTagsTagIdRequest +*/ +func (a *TagsApiService) PATCHTagsTagId(ctx context.Context, tagId interface{}) TagsApiPATCHTagsTagIdRequest { + return TagsApiPATCHTagsTagIdRequest{ + ApiService: a, + ctx: ctx, + tagId: tagId, + } +} + +// Execute executes the request +// +// @return PATCHTagsTagId200Response +func (a *TagsApiService) PATCHTagsTagIdExecute(r TagsApiPATCHTagsTagIdRequest) (*PATCHTagsTagId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PATCHTagsTagId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.PATCHTagsTagId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/tags/{tagId}" + localVarPath = strings.Replace(localVarPath, "{"+"tagId"+"}", url.PathEscape(parameterValueToString(r.tagId, "tagId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.tagUpdate == nil { + return localVarReturnValue, nil, reportError("tagUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.tagUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type TagsApiPOSTTagsRequest struct { + ctx context.Context + ApiService *TagsApiService + tagCreate *TagCreate +} + +func (r TagsApiPOSTTagsRequest) TagCreate(tagCreate TagCreate) TagsApiPOSTTagsRequest { + r.tagCreate = &tagCreate + return r +} + +func (r TagsApiPOSTTagsRequest) Execute() (*POSTTags201Response, *http.Response, error) { + return r.ApiService.POSTTagsExecute(r) +} + +/* +POSTTags Create a tag + +Create a tag + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return TagsApiPOSTTagsRequest +*/ +func (a *TagsApiService) POSTTags(ctx context.Context) TagsApiPOSTTagsRequest { + return TagsApiPOSTTagsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return POSTTags201Response +func (a *TagsApiService) POSTTagsExecute(r TagsApiPOSTTagsRequest) (*POSTTags201Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *POSTTags201Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsApiService.POSTTags") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/tags" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.tagCreate == nil { + return localVarReturnValue, nil, reportError("tagCreate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.tagCreate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api/api_tax_calculators.go b/api/api_tax_calculators.go index 2966f387..a11886cb 100644 --- a/api/api_tax_calculators.go +++ b/api/api_tax_calculators.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_tax_categories.go b/api/api_tax_categories.go index db48f0d6..5ef113e8 100644 --- a/api/api_tax_categories.go +++ b/api/api_tax_categories.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_tax_rules.go b/api/api_tax_rules.go index 63064faf..dec486a2 100644 --- a/api/api_tax_rules.go +++ b/api/api_tax_rules.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_taxjar_accounts.go b/api/api_taxjar_accounts.go index 80e17949..55cda4a8 100644 --- a/api/api_taxjar_accounts.go +++ b/api/api_taxjar_accounts.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_transactions.go b/api/api_transactions.go index 2ec58310..d9b2e7af 100644 --- a/api/api_transactions.go +++ b/api/api_transactions.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_versions.go b/api/api_versions.go new file mode 100644 index 00000000..a75af4eb --- /dev/null +++ b/api/api_versions.go @@ -0,0 +1,9152 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + +// VersionsApiService VersionsApi service +type VersionsApiService service + +type VersionsApiGETAddressIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + addressId interface{} +} + +func (r VersionsApiGETAddressIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAddressIdVersionsExecute(r) +} + +/* +GETAddressIdVersions Retrieve the versions associated to the address + +Retrieve the versions associated to the address + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param addressId The resource's id + @return VersionsApiGETAddressIdVersionsRequest +*/ +func (a *VersionsApiService) GETAddressIdVersions(ctx context.Context, addressId interface{}) VersionsApiGETAddressIdVersionsRequest { + return VersionsApiGETAddressIdVersionsRequest{ + ApiService: a, + ctx: ctx, + addressId: addressId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETAddressIdVersionsExecute(r VersionsApiGETAddressIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETAddressIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/addresses/{addressId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"addressId"+"}", url.PathEscape(parameterValueToString(r.addressId, "addressId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETAdjustmentIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + adjustmentId interface{} +} + +func (r VersionsApiGETAdjustmentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAdjustmentIdVersionsExecute(r) +} + +/* +GETAdjustmentIdVersions Retrieve the versions associated to the adjustment + +Retrieve the versions associated to the adjustment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param adjustmentId The resource's id + @return VersionsApiGETAdjustmentIdVersionsRequest +*/ +func (a *VersionsApiService) GETAdjustmentIdVersions(ctx context.Context, adjustmentId interface{}) VersionsApiGETAdjustmentIdVersionsRequest { + return VersionsApiGETAdjustmentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + adjustmentId: adjustmentId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETAdjustmentIdVersionsExecute(r VersionsApiGETAdjustmentIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETAdjustmentIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/adjustments/{adjustmentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"adjustmentId"+"}", url.PathEscape(parameterValueToString(r.adjustmentId, "adjustmentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETAdyenGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + adyenGatewayId interface{} +} + +func (r VersionsApiGETAdyenGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAdyenGatewayIdVersionsExecute(r) +} + +/* +GETAdyenGatewayIdVersions Retrieve the versions associated to the adyen gateway + +Retrieve the versions associated to the adyen gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param adyenGatewayId The resource's id + @return VersionsApiGETAdyenGatewayIdVersionsRequest +*/ +func (a *VersionsApiService) GETAdyenGatewayIdVersions(ctx context.Context, adyenGatewayId interface{}) VersionsApiGETAdyenGatewayIdVersionsRequest { + return VersionsApiGETAdyenGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + adyenGatewayId: adyenGatewayId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETAdyenGatewayIdVersionsExecute(r VersionsApiGETAdyenGatewayIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETAdyenGatewayIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/adyen_gateways/{adyenGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"adyenGatewayId"+"}", url.PathEscape(parameterValueToString(r.adyenGatewayId, "adyenGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETAdyenPaymentIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + adyenPaymentId interface{} +} + +func (r VersionsApiGETAdyenPaymentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAdyenPaymentIdVersionsExecute(r) +} + +/* +GETAdyenPaymentIdVersions Retrieve the versions associated to the adyen payment + +Retrieve the versions associated to the adyen payment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param adyenPaymentId The resource's id + @return VersionsApiGETAdyenPaymentIdVersionsRequest +*/ +func (a *VersionsApiService) GETAdyenPaymentIdVersions(ctx context.Context, adyenPaymentId interface{}) VersionsApiGETAdyenPaymentIdVersionsRequest { + return VersionsApiGETAdyenPaymentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + adyenPaymentId: adyenPaymentId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETAdyenPaymentIdVersionsExecute(r VersionsApiGETAdyenPaymentIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETAdyenPaymentIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/adyen_payments/{adyenPaymentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"adyenPaymentId"+"}", url.PathEscape(parameterValueToString(r.adyenPaymentId, "adyenPaymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETAuthorizationIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + authorizationId interface{} +} + +func (r VersionsApiGETAuthorizationIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAuthorizationIdVersionsExecute(r) +} + +/* +GETAuthorizationIdVersions Retrieve the versions associated to the authorization + +Retrieve the versions associated to the authorization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param authorizationId The resource's id + @return VersionsApiGETAuthorizationIdVersionsRequest +*/ +func (a *VersionsApiService) GETAuthorizationIdVersions(ctx context.Context, authorizationId interface{}) VersionsApiGETAuthorizationIdVersionsRequest { + return VersionsApiGETAuthorizationIdVersionsRequest{ + ApiService: a, + ctx: ctx, + authorizationId: authorizationId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETAuthorizationIdVersionsExecute(r VersionsApiGETAuthorizationIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETAuthorizationIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/authorizations/{authorizationId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"authorizationId"+"}", url.PathEscape(parameterValueToString(r.authorizationId, "authorizationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETAvalaraAccountIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + avalaraAccountId interface{} +} + +func (r VersionsApiGETAvalaraAccountIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAvalaraAccountIdVersionsExecute(r) +} + +/* +GETAvalaraAccountIdVersions Retrieve the versions associated to the avalara account + +Retrieve the versions associated to the avalara account + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param avalaraAccountId The resource's id + @return VersionsApiGETAvalaraAccountIdVersionsRequest +*/ +func (a *VersionsApiService) GETAvalaraAccountIdVersions(ctx context.Context, avalaraAccountId interface{}) VersionsApiGETAvalaraAccountIdVersionsRequest { + return VersionsApiGETAvalaraAccountIdVersionsRequest{ + ApiService: a, + ctx: ctx, + avalaraAccountId: avalaraAccountId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETAvalaraAccountIdVersionsExecute(r VersionsApiGETAvalaraAccountIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETAvalaraAccountIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/avalara_accounts/{avalaraAccountId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"avalaraAccountId"+"}", url.PathEscape(parameterValueToString(r.avalaraAccountId, "avalaraAccountId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETAxerveGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + axerveGatewayId interface{} +} + +func (r VersionsApiGETAxerveGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAxerveGatewayIdVersionsExecute(r) +} + +/* +GETAxerveGatewayIdVersions Retrieve the versions associated to the axerve gateway + +Retrieve the versions associated to the axerve gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param axerveGatewayId The resource's id + @return VersionsApiGETAxerveGatewayIdVersionsRequest +*/ +func (a *VersionsApiService) GETAxerveGatewayIdVersions(ctx context.Context, axerveGatewayId interface{}) VersionsApiGETAxerveGatewayIdVersionsRequest { + return VersionsApiGETAxerveGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + axerveGatewayId: axerveGatewayId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETAxerveGatewayIdVersionsExecute(r VersionsApiGETAxerveGatewayIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETAxerveGatewayIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/axerve_gateways/{axerveGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"axerveGatewayId"+"}", url.PathEscape(parameterValueToString(r.axerveGatewayId, "axerveGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETAxervePaymentIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + axervePaymentId interface{} +} + +func (r VersionsApiGETAxervePaymentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETAxervePaymentIdVersionsExecute(r) +} + +/* +GETAxervePaymentIdVersions Retrieve the versions associated to the axerve payment + +Retrieve the versions associated to the axerve payment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param axervePaymentId The resource's id + @return VersionsApiGETAxervePaymentIdVersionsRequest +*/ +func (a *VersionsApiService) GETAxervePaymentIdVersions(ctx context.Context, axervePaymentId interface{}) VersionsApiGETAxervePaymentIdVersionsRequest { + return VersionsApiGETAxervePaymentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + axervePaymentId: axervePaymentId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETAxervePaymentIdVersionsExecute(r VersionsApiGETAxervePaymentIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETAxervePaymentIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/axerve_payments/{axervePaymentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"axervePaymentId"+"}", url.PathEscape(parameterValueToString(r.axervePaymentId, "axervePaymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETBillingInfoValidationRuleIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + billingInfoValidationRuleId interface{} +} + +func (r VersionsApiGETBillingInfoValidationRuleIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBillingInfoValidationRuleIdVersionsExecute(r) +} + +/* +GETBillingInfoValidationRuleIdVersions Retrieve the versions associated to the billing info validation rule + +Retrieve the versions associated to the billing info validation rule + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param billingInfoValidationRuleId The resource's id + @return VersionsApiGETBillingInfoValidationRuleIdVersionsRequest +*/ +func (a *VersionsApiService) GETBillingInfoValidationRuleIdVersions(ctx context.Context, billingInfoValidationRuleId interface{}) VersionsApiGETBillingInfoValidationRuleIdVersionsRequest { + return VersionsApiGETBillingInfoValidationRuleIdVersionsRequest{ + ApiService: a, + ctx: ctx, + billingInfoValidationRuleId: billingInfoValidationRuleId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETBillingInfoValidationRuleIdVersionsExecute(r VersionsApiGETBillingInfoValidationRuleIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETBillingInfoValidationRuleIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/billing_info_validation_rules/{billingInfoValidationRuleId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"billingInfoValidationRuleId"+"}", url.PathEscape(parameterValueToString(r.billingInfoValidationRuleId, "billingInfoValidationRuleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETBraintreeGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + braintreeGatewayId interface{} +} + +func (r VersionsApiGETBraintreeGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBraintreeGatewayIdVersionsExecute(r) +} + +/* +GETBraintreeGatewayIdVersions Retrieve the versions associated to the braintree gateway + +Retrieve the versions associated to the braintree gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param braintreeGatewayId The resource's id + @return VersionsApiGETBraintreeGatewayIdVersionsRequest +*/ +func (a *VersionsApiService) GETBraintreeGatewayIdVersions(ctx context.Context, braintreeGatewayId interface{}) VersionsApiGETBraintreeGatewayIdVersionsRequest { + return VersionsApiGETBraintreeGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + braintreeGatewayId: braintreeGatewayId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETBraintreeGatewayIdVersionsExecute(r VersionsApiGETBraintreeGatewayIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETBraintreeGatewayIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/braintree_gateways/{braintreeGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"braintreeGatewayId"+"}", url.PathEscape(parameterValueToString(r.braintreeGatewayId, "braintreeGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETBraintreePaymentIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + braintreePaymentId interface{} +} + +func (r VersionsApiGETBraintreePaymentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBraintreePaymentIdVersionsExecute(r) +} + +/* +GETBraintreePaymentIdVersions Retrieve the versions associated to the braintree payment + +Retrieve the versions associated to the braintree payment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param braintreePaymentId The resource's id + @return VersionsApiGETBraintreePaymentIdVersionsRequest +*/ +func (a *VersionsApiService) GETBraintreePaymentIdVersions(ctx context.Context, braintreePaymentId interface{}) VersionsApiGETBraintreePaymentIdVersionsRequest { + return VersionsApiGETBraintreePaymentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + braintreePaymentId: braintreePaymentId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETBraintreePaymentIdVersionsExecute(r VersionsApiGETBraintreePaymentIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETBraintreePaymentIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/braintree_payments/{braintreePaymentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"braintreePaymentId"+"}", url.PathEscape(parameterValueToString(r.braintreePaymentId, "braintreePaymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETBundleIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + bundleId interface{} +} + +func (r VersionsApiGETBundleIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBundleIdVersionsExecute(r) +} + +/* +GETBundleIdVersions Retrieve the versions associated to the bundle + +Retrieve the versions associated to the bundle + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param bundleId The resource's id + @return VersionsApiGETBundleIdVersionsRequest +*/ +func (a *VersionsApiService) GETBundleIdVersions(ctx context.Context, bundleId interface{}) VersionsApiGETBundleIdVersionsRequest { + return VersionsApiGETBundleIdVersionsRequest{ + ApiService: a, + ctx: ctx, + bundleId: bundleId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETBundleIdVersionsExecute(r VersionsApiGETBundleIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETBundleIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/bundles/{bundleId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"bundleId"+"}", url.PathEscape(parameterValueToString(r.bundleId, "bundleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETBuyXPayYPromotionIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + buyXPayYPromotionId interface{} +} + +func (r VersionsApiGETBuyXPayYPromotionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETBuyXPayYPromotionIdVersionsExecute(r) +} + +/* +GETBuyXPayYPromotionIdVersions Retrieve the versions associated to the buy x pay y promotion + +Retrieve the versions associated to the buy x pay y promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param buyXPayYPromotionId The resource's id + @return VersionsApiGETBuyXPayYPromotionIdVersionsRequest +*/ +func (a *VersionsApiService) GETBuyXPayYPromotionIdVersions(ctx context.Context, buyXPayYPromotionId interface{}) VersionsApiGETBuyXPayYPromotionIdVersionsRequest { + return VersionsApiGETBuyXPayYPromotionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + buyXPayYPromotionId: buyXPayYPromotionId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETBuyXPayYPromotionIdVersionsExecute(r VersionsApiGETBuyXPayYPromotionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETBuyXPayYPromotionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/buy_x_pay_y_promotions/{buyXPayYPromotionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"buyXPayYPromotionId"+"}", url.PathEscape(parameterValueToString(r.buyXPayYPromotionId, "buyXPayYPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETCaptureIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + captureId interface{} +} + +func (r VersionsApiGETCaptureIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCaptureIdVersionsExecute(r) +} + +/* +GETCaptureIdVersions Retrieve the versions associated to the capture + +Retrieve the versions associated to the capture + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param captureId The resource's id + @return VersionsApiGETCaptureIdVersionsRequest +*/ +func (a *VersionsApiService) GETCaptureIdVersions(ctx context.Context, captureId interface{}) VersionsApiGETCaptureIdVersionsRequest { + return VersionsApiGETCaptureIdVersionsRequest{ + ApiService: a, + ctx: ctx, + captureId: captureId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETCaptureIdVersionsExecute(r VersionsApiGETCaptureIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETCaptureIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/captures/{captureId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"captureId"+"}", url.PathEscape(parameterValueToString(r.captureId, "captureId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETCarrierAccountIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + carrierAccountId interface{} +} + +func (r VersionsApiGETCarrierAccountIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCarrierAccountIdVersionsExecute(r) +} + +/* +GETCarrierAccountIdVersions Retrieve the versions associated to the carrier account + +Retrieve the versions associated to the carrier account + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param carrierAccountId The resource's id + @return VersionsApiGETCarrierAccountIdVersionsRequest +*/ +func (a *VersionsApiService) GETCarrierAccountIdVersions(ctx context.Context, carrierAccountId interface{}) VersionsApiGETCarrierAccountIdVersionsRequest { + return VersionsApiGETCarrierAccountIdVersionsRequest{ + ApiService: a, + ctx: ctx, + carrierAccountId: carrierAccountId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETCarrierAccountIdVersionsExecute(r VersionsApiGETCarrierAccountIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETCarrierAccountIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/carrier_accounts/{carrierAccountId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"carrierAccountId"+"}", url.PathEscape(parameterValueToString(r.carrierAccountId, "carrierAccountId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETCheckoutComGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + checkoutComGatewayId interface{} +} + +func (r VersionsApiGETCheckoutComGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCheckoutComGatewayIdVersionsExecute(r) +} + +/* +GETCheckoutComGatewayIdVersions Retrieve the versions associated to the checkout.com gateway + +Retrieve the versions associated to the checkout.com gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param checkoutComGatewayId The resource's id + @return VersionsApiGETCheckoutComGatewayIdVersionsRequest +*/ +func (a *VersionsApiService) GETCheckoutComGatewayIdVersions(ctx context.Context, checkoutComGatewayId interface{}) VersionsApiGETCheckoutComGatewayIdVersionsRequest { + return VersionsApiGETCheckoutComGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + checkoutComGatewayId: checkoutComGatewayId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETCheckoutComGatewayIdVersionsExecute(r VersionsApiGETCheckoutComGatewayIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETCheckoutComGatewayIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/checkout_com_gateways/{checkoutComGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"checkoutComGatewayId"+"}", url.PathEscape(parameterValueToString(r.checkoutComGatewayId, "checkoutComGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETCheckoutComPaymentIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + checkoutComPaymentId interface{} +} + +func (r VersionsApiGETCheckoutComPaymentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCheckoutComPaymentIdVersionsExecute(r) +} + +/* +GETCheckoutComPaymentIdVersions Retrieve the versions associated to the checkout.com payment + +Retrieve the versions associated to the checkout.com payment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param checkoutComPaymentId The resource's id + @return VersionsApiGETCheckoutComPaymentIdVersionsRequest +*/ +func (a *VersionsApiService) GETCheckoutComPaymentIdVersions(ctx context.Context, checkoutComPaymentId interface{}) VersionsApiGETCheckoutComPaymentIdVersionsRequest { + return VersionsApiGETCheckoutComPaymentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + checkoutComPaymentId: checkoutComPaymentId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETCheckoutComPaymentIdVersionsExecute(r VersionsApiGETCheckoutComPaymentIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETCheckoutComPaymentIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/checkout_com_payments/{checkoutComPaymentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"checkoutComPaymentId"+"}", url.PathEscape(parameterValueToString(r.checkoutComPaymentId, "checkoutComPaymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETCleanupIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + cleanupId interface{} +} + +func (r VersionsApiGETCleanupIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCleanupIdVersionsExecute(r) +} + +/* +GETCleanupIdVersions Retrieve the versions associated to the cleanup + +Retrieve the versions associated to the cleanup + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param cleanupId The resource's id + @return VersionsApiGETCleanupIdVersionsRequest +*/ +func (a *VersionsApiService) GETCleanupIdVersions(ctx context.Context, cleanupId interface{}) VersionsApiGETCleanupIdVersionsRequest { + return VersionsApiGETCleanupIdVersionsRequest{ + ApiService: a, + ctx: ctx, + cleanupId: cleanupId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETCleanupIdVersionsExecute(r VersionsApiGETCleanupIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETCleanupIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/cleanups/{cleanupId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"cleanupId"+"}", url.PathEscape(parameterValueToString(r.cleanupId, "cleanupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETCouponCodesPromotionRuleIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + couponCodesPromotionRuleId interface{} +} + +func (r VersionsApiGETCouponCodesPromotionRuleIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCouponCodesPromotionRuleIdVersionsExecute(r) +} + +/* +GETCouponCodesPromotionRuleIdVersions Retrieve the versions associated to the coupon codes promotion rule + +Retrieve the versions associated to the coupon codes promotion rule + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param couponCodesPromotionRuleId The resource's id + @return VersionsApiGETCouponCodesPromotionRuleIdVersionsRequest +*/ +func (a *VersionsApiService) GETCouponCodesPromotionRuleIdVersions(ctx context.Context, couponCodesPromotionRuleId interface{}) VersionsApiGETCouponCodesPromotionRuleIdVersionsRequest { + return VersionsApiGETCouponCodesPromotionRuleIdVersionsRequest{ + ApiService: a, + ctx: ctx, + couponCodesPromotionRuleId: couponCodesPromotionRuleId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETCouponCodesPromotionRuleIdVersionsExecute(r VersionsApiGETCouponCodesPromotionRuleIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETCouponCodesPromotionRuleIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/coupon_codes_promotion_rules/{couponCodesPromotionRuleId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"couponCodesPromotionRuleId"+"}", url.PathEscape(parameterValueToString(r.couponCodesPromotionRuleId, "couponCodesPromotionRuleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETCouponIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + couponId interface{} +} + +func (r VersionsApiGETCouponIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCouponIdVersionsExecute(r) +} + +/* +GETCouponIdVersions Retrieve the versions associated to the coupon + +Retrieve the versions associated to the coupon + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param couponId The resource's id + @return VersionsApiGETCouponIdVersionsRequest +*/ +func (a *VersionsApiService) GETCouponIdVersions(ctx context.Context, couponId interface{}) VersionsApiGETCouponIdVersionsRequest { + return VersionsApiGETCouponIdVersionsRequest{ + ApiService: a, + ctx: ctx, + couponId: couponId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETCouponIdVersionsExecute(r VersionsApiGETCouponIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETCouponIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/coupons/{couponId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"couponId"+"}", url.PathEscape(parameterValueToString(r.couponId, "couponId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETCouponRecipientIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + couponRecipientId interface{} +} + +func (r VersionsApiGETCouponRecipientIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCouponRecipientIdVersionsExecute(r) +} + +/* +GETCouponRecipientIdVersions Retrieve the versions associated to the coupon recipient + +Retrieve the versions associated to the coupon recipient + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param couponRecipientId The resource's id + @return VersionsApiGETCouponRecipientIdVersionsRequest +*/ +func (a *VersionsApiService) GETCouponRecipientIdVersions(ctx context.Context, couponRecipientId interface{}) VersionsApiGETCouponRecipientIdVersionsRequest { + return VersionsApiGETCouponRecipientIdVersionsRequest{ + ApiService: a, + ctx: ctx, + couponRecipientId: couponRecipientId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETCouponRecipientIdVersionsExecute(r VersionsApiGETCouponRecipientIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETCouponRecipientIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/coupon_recipients/{couponRecipientId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"couponRecipientId"+"}", url.PathEscape(parameterValueToString(r.couponRecipientId, "couponRecipientId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETCustomPromotionRuleIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + customPromotionRuleId interface{} +} + +func (r VersionsApiGETCustomPromotionRuleIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomPromotionRuleIdVersionsExecute(r) +} + +/* +GETCustomPromotionRuleIdVersions Retrieve the versions associated to the custom promotion rule + +Retrieve the versions associated to the custom promotion rule + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customPromotionRuleId The resource's id + @return VersionsApiGETCustomPromotionRuleIdVersionsRequest +*/ +func (a *VersionsApiService) GETCustomPromotionRuleIdVersions(ctx context.Context, customPromotionRuleId interface{}) VersionsApiGETCustomPromotionRuleIdVersionsRequest { + return VersionsApiGETCustomPromotionRuleIdVersionsRequest{ + ApiService: a, + ctx: ctx, + customPromotionRuleId: customPromotionRuleId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETCustomPromotionRuleIdVersionsExecute(r VersionsApiGETCustomPromotionRuleIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETCustomPromotionRuleIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/custom_promotion_rules/{customPromotionRuleId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"customPromotionRuleId"+"}", url.PathEscape(parameterValueToString(r.customPromotionRuleId, "customPromotionRuleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETCustomerAddressIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + customerAddressId interface{} +} + +func (r VersionsApiGETCustomerAddressIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerAddressIdVersionsExecute(r) +} + +/* +GETCustomerAddressIdVersions Retrieve the versions associated to the customer address + +Retrieve the versions associated to the customer address + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerAddressId The resource's id + @return VersionsApiGETCustomerAddressIdVersionsRequest +*/ +func (a *VersionsApiService) GETCustomerAddressIdVersions(ctx context.Context, customerAddressId interface{}) VersionsApiGETCustomerAddressIdVersionsRequest { + return VersionsApiGETCustomerAddressIdVersionsRequest{ + ApiService: a, + ctx: ctx, + customerAddressId: customerAddressId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETCustomerAddressIdVersionsExecute(r VersionsApiGETCustomerAddressIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETCustomerAddressIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customer_addresses/{customerAddressId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"customerAddressId"+"}", url.PathEscape(parameterValueToString(r.customerAddressId, "customerAddressId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETCustomerGroupIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + customerGroupId interface{} +} + +func (r VersionsApiGETCustomerGroupIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerGroupIdVersionsExecute(r) +} + +/* +GETCustomerGroupIdVersions Retrieve the versions associated to the customer group + +Retrieve the versions associated to the customer group + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerGroupId The resource's id + @return VersionsApiGETCustomerGroupIdVersionsRequest +*/ +func (a *VersionsApiService) GETCustomerGroupIdVersions(ctx context.Context, customerGroupId interface{}) VersionsApiGETCustomerGroupIdVersionsRequest { + return VersionsApiGETCustomerGroupIdVersionsRequest{ + ApiService: a, + ctx: ctx, + customerGroupId: customerGroupId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETCustomerGroupIdVersionsExecute(r VersionsApiGETCustomerGroupIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETCustomerGroupIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customer_groups/{customerGroupId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"customerGroupId"+"}", url.PathEscape(parameterValueToString(r.customerGroupId, "customerGroupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETCustomerPaymentSourceIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + customerPaymentSourceId interface{} +} + +func (r VersionsApiGETCustomerPaymentSourceIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerPaymentSourceIdVersionsExecute(r) +} + +/* +GETCustomerPaymentSourceIdVersions Retrieve the versions associated to the customer payment source + +Retrieve the versions associated to the customer payment source + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerPaymentSourceId The resource's id + @return VersionsApiGETCustomerPaymentSourceIdVersionsRequest +*/ +func (a *VersionsApiService) GETCustomerPaymentSourceIdVersions(ctx context.Context, customerPaymentSourceId interface{}) VersionsApiGETCustomerPaymentSourceIdVersionsRequest { + return VersionsApiGETCustomerPaymentSourceIdVersionsRequest{ + ApiService: a, + ctx: ctx, + customerPaymentSourceId: customerPaymentSourceId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETCustomerPaymentSourceIdVersionsExecute(r VersionsApiGETCustomerPaymentSourceIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETCustomerPaymentSourceIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customer_payment_sources/{customerPaymentSourceId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"customerPaymentSourceId"+"}", url.PathEscape(parameterValueToString(r.customerPaymentSourceId, "customerPaymentSourceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETCustomerSubscriptionIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + customerSubscriptionId interface{} +} + +func (r VersionsApiGETCustomerSubscriptionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETCustomerSubscriptionIdVersionsExecute(r) +} + +/* +GETCustomerSubscriptionIdVersions Retrieve the versions associated to the customer subscription + +Retrieve the versions associated to the customer subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customerSubscriptionId The resource's id + @return VersionsApiGETCustomerSubscriptionIdVersionsRequest +*/ +func (a *VersionsApiService) GETCustomerSubscriptionIdVersions(ctx context.Context, customerSubscriptionId interface{}) VersionsApiGETCustomerSubscriptionIdVersionsRequest { + return VersionsApiGETCustomerSubscriptionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + customerSubscriptionId: customerSubscriptionId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETCustomerSubscriptionIdVersionsExecute(r VersionsApiGETCustomerSubscriptionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETCustomerSubscriptionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/customer_subscriptions/{customerSubscriptionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"customerSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.customerSubscriptionId, "customerSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETDeliveryLeadTimeIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + deliveryLeadTimeId interface{} +} + +func (r VersionsApiGETDeliveryLeadTimeIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETDeliveryLeadTimeIdVersionsExecute(r) +} + +/* +GETDeliveryLeadTimeIdVersions Retrieve the versions associated to the delivery lead time + +Retrieve the versions associated to the delivery lead time + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param deliveryLeadTimeId The resource's id + @return VersionsApiGETDeliveryLeadTimeIdVersionsRequest +*/ +func (a *VersionsApiService) GETDeliveryLeadTimeIdVersions(ctx context.Context, deliveryLeadTimeId interface{}) VersionsApiGETDeliveryLeadTimeIdVersionsRequest { + return VersionsApiGETDeliveryLeadTimeIdVersionsRequest{ + ApiService: a, + ctx: ctx, + deliveryLeadTimeId: deliveryLeadTimeId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETDeliveryLeadTimeIdVersionsExecute(r VersionsApiGETDeliveryLeadTimeIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETDeliveryLeadTimeIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/delivery_lead_times/{deliveryLeadTimeId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"deliveryLeadTimeId"+"}", url.PathEscape(parameterValueToString(r.deliveryLeadTimeId, "deliveryLeadTimeId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETExternalGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + externalGatewayId interface{} +} + +func (r VersionsApiGETExternalGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalGatewayIdVersionsExecute(r) +} + +/* +GETExternalGatewayIdVersions Retrieve the versions associated to the external gateway + +Retrieve the versions associated to the external gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalGatewayId The resource's id + @return VersionsApiGETExternalGatewayIdVersionsRequest +*/ +func (a *VersionsApiService) GETExternalGatewayIdVersions(ctx context.Context, externalGatewayId interface{}) VersionsApiGETExternalGatewayIdVersionsRequest { + return VersionsApiGETExternalGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + externalGatewayId: externalGatewayId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETExternalGatewayIdVersionsExecute(r VersionsApiGETExternalGatewayIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETExternalGatewayIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_gateways/{externalGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"externalGatewayId"+"}", url.PathEscape(parameterValueToString(r.externalGatewayId, "externalGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETExternalPaymentIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + externalPaymentId interface{} +} + +func (r VersionsApiGETExternalPaymentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPaymentIdVersionsExecute(r) +} + +/* +GETExternalPaymentIdVersions Retrieve the versions associated to the external payment + +Retrieve the versions associated to the external payment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalPaymentId The resource's id + @return VersionsApiGETExternalPaymentIdVersionsRequest +*/ +func (a *VersionsApiService) GETExternalPaymentIdVersions(ctx context.Context, externalPaymentId interface{}) VersionsApiGETExternalPaymentIdVersionsRequest { + return VersionsApiGETExternalPaymentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + externalPaymentId: externalPaymentId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETExternalPaymentIdVersionsExecute(r VersionsApiGETExternalPaymentIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETExternalPaymentIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_payments/{externalPaymentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"externalPaymentId"+"}", url.PathEscape(parameterValueToString(r.externalPaymentId, "externalPaymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETExternalPromotionIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + externalPromotionId interface{} +} + +func (r VersionsApiGETExternalPromotionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalPromotionIdVersionsExecute(r) +} + +/* +GETExternalPromotionIdVersions Retrieve the versions associated to the external promotion + +Retrieve the versions associated to the external promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalPromotionId The resource's id + @return VersionsApiGETExternalPromotionIdVersionsRequest +*/ +func (a *VersionsApiService) GETExternalPromotionIdVersions(ctx context.Context, externalPromotionId interface{}) VersionsApiGETExternalPromotionIdVersionsRequest { + return VersionsApiGETExternalPromotionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + externalPromotionId: externalPromotionId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETExternalPromotionIdVersionsExecute(r VersionsApiGETExternalPromotionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETExternalPromotionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_promotions/{externalPromotionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"externalPromotionId"+"}", url.PathEscape(parameterValueToString(r.externalPromotionId, "externalPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETExternalTaxCalculatorIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + externalTaxCalculatorId interface{} +} + +func (r VersionsApiGETExternalTaxCalculatorIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETExternalTaxCalculatorIdVersionsExecute(r) +} + +/* +GETExternalTaxCalculatorIdVersions Retrieve the versions associated to the external tax calculator + +Retrieve the versions associated to the external tax calculator + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param externalTaxCalculatorId The resource's id + @return VersionsApiGETExternalTaxCalculatorIdVersionsRequest +*/ +func (a *VersionsApiService) GETExternalTaxCalculatorIdVersions(ctx context.Context, externalTaxCalculatorId interface{}) VersionsApiGETExternalTaxCalculatorIdVersionsRequest { + return VersionsApiGETExternalTaxCalculatorIdVersionsRequest{ + ApiService: a, + ctx: ctx, + externalTaxCalculatorId: externalTaxCalculatorId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETExternalTaxCalculatorIdVersionsExecute(r VersionsApiGETExternalTaxCalculatorIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETExternalTaxCalculatorIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/external_tax_calculators/{externalTaxCalculatorId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"externalTaxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.externalTaxCalculatorId, "externalTaxCalculatorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETFixedAmountPromotionIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + fixedAmountPromotionId interface{} +} + +func (r VersionsApiGETFixedAmountPromotionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedAmountPromotionIdVersionsExecute(r) +} + +/* +GETFixedAmountPromotionIdVersions Retrieve the versions associated to the fixed amount promotion + +Retrieve the versions associated to the fixed amount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedAmountPromotionId The resource's id + @return VersionsApiGETFixedAmountPromotionIdVersionsRequest +*/ +func (a *VersionsApiService) GETFixedAmountPromotionIdVersions(ctx context.Context, fixedAmountPromotionId interface{}) VersionsApiGETFixedAmountPromotionIdVersionsRequest { + return VersionsApiGETFixedAmountPromotionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + fixedAmountPromotionId: fixedAmountPromotionId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETFixedAmountPromotionIdVersionsExecute(r VersionsApiGETFixedAmountPromotionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETFixedAmountPromotionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_amount_promotions/{fixedAmountPromotionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"fixedAmountPromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedAmountPromotionId, "fixedAmountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETFixedPricePromotionIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + fixedPricePromotionId interface{} +} + +func (r VersionsApiGETFixedPricePromotionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFixedPricePromotionIdVersionsExecute(r) +} + +/* +GETFixedPricePromotionIdVersions Retrieve the versions associated to the fixed price promotion + +Retrieve the versions associated to the fixed price promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param fixedPricePromotionId The resource's id + @return VersionsApiGETFixedPricePromotionIdVersionsRequest +*/ +func (a *VersionsApiService) GETFixedPricePromotionIdVersions(ctx context.Context, fixedPricePromotionId interface{}) VersionsApiGETFixedPricePromotionIdVersionsRequest { + return VersionsApiGETFixedPricePromotionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + fixedPricePromotionId: fixedPricePromotionId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETFixedPricePromotionIdVersionsExecute(r VersionsApiGETFixedPricePromotionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETFixedPricePromotionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/fixed_price_promotions/{fixedPricePromotionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"fixedPricePromotionId"+"}", url.PathEscape(parameterValueToString(r.fixedPricePromotionId, "fixedPricePromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETFlexPromotionIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + flexPromotionId interface{} +} + +func (r VersionsApiGETFlexPromotionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFlexPromotionIdVersionsExecute(r) +} + +/* +GETFlexPromotionIdVersions Retrieve the versions associated to the flex promotion + +Retrieve the versions associated to the flex promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param flexPromotionId The resource's id + @return VersionsApiGETFlexPromotionIdVersionsRequest +*/ +func (a *VersionsApiService) GETFlexPromotionIdVersions(ctx context.Context, flexPromotionId interface{}) VersionsApiGETFlexPromotionIdVersionsRequest { + return VersionsApiGETFlexPromotionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + flexPromotionId: flexPromotionId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETFlexPromotionIdVersionsExecute(r VersionsApiGETFlexPromotionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETFlexPromotionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/flex_promotions/{flexPromotionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"flexPromotionId"+"}", url.PathEscape(parameterValueToString(r.flexPromotionId, "flexPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETFreeGiftPromotionIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + freeGiftPromotionId interface{} +} + +func (r VersionsApiGETFreeGiftPromotionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeGiftPromotionIdVersionsExecute(r) +} + +/* +GETFreeGiftPromotionIdVersions Retrieve the versions associated to the free gift promotion + +Retrieve the versions associated to the free gift promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeGiftPromotionId The resource's id + @return VersionsApiGETFreeGiftPromotionIdVersionsRequest +*/ +func (a *VersionsApiService) GETFreeGiftPromotionIdVersions(ctx context.Context, freeGiftPromotionId interface{}) VersionsApiGETFreeGiftPromotionIdVersionsRequest { + return VersionsApiGETFreeGiftPromotionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + freeGiftPromotionId: freeGiftPromotionId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETFreeGiftPromotionIdVersionsExecute(r VersionsApiGETFreeGiftPromotionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETFreeGiftPromotionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_gift_promotions/{freeGiftPromotionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"freeGiftPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeGiftPromotionId, "freeGiftPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETFreeShippingPromotionIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + freeShippingPromotionId interface{} +} + +func (r VersionsApiGETFreeShippingPromotionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETFreeShippingPromotionIdVersionsExecute(r) +} + +/* +GETFreeShippingPromotionIdVersions Retrieve the versions associated to the free shipping promotion + +Retrieve the versions associated to the free shipping promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param freeShippingPromotionId The resource's id + @return VersionsApiGETFreeShippingPromotionIdVersionsRequest +*/ +func (a *VersionsApiService) GETFreeShippingPromotionIdVersions(ctx context.Context, freeShippingPromotionId interface{}) VersionsApiGETFreeShippingPromotionIdVersionsRequest { + return VersionsApiGETFreeShippingPromotionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + freeShippingPromotionId: freeShippingPromotionId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETFreeShippingPromotionIdVersionsExecute(r VersionsApiGETFreeShippingPromotionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETFreeShippingPromotionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/free_shipping_promotions/{freeShippingPromotionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"freeShippingPromotionId"+"}", url.PathEscape(parameterValueToString(r.freeShippingPromotionId, "freeShippingPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETGiftCardIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + giftCardId interface{} +} + +func (r VersionsApiGETGiftCardIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGiftCardIdVersionsExecute(r) +} + +/* +GETGiftCardIdVersions Retrieve the versions associated to the gift card + +Retrieve the versions associated to the gift card + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param giftCardId The resource's id + @return VersionsApiGETGiftCardIdVersionsRequest +*/ +func (a *VersionsApiService) GETGiftCardIdVersions(ctx context.Context, giftCardId interface{}) VersionsApiGETGiftCardIdVersionsRequest { + return VersionsApiGETGiftCardIdVersionsRequest{ + ApiService: a, + ctx: ctx, + giftCardId: giftCardId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETGiftCardIdVersionsExecute(r VersionsApiGETGiftCardIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETGiftCardIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/gift_cards/{giftCardId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"giftCardId"+"}", url.PathEscape(parameterValueToString(r.giftCardId, "giftCardId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETGiftCardRecipientIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + giftCardRecipientId interface{} +} + +func (r VersionsApiGETGiftCardRecipientIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETGiftCardRecipientIdVersionsExecute(r) +} + +/* +GETGiftCardRecipientIdVersions Retrieve the versions associated to the gift card recipient + +Retrieve the versions associated to the gift card recipient + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param giftCardRecipientId The resource's id + @return VersionsApiGETGiftCardRecipientIdVersionsRequest +*/ +func (a *VersionsApiService) GETGiftCardRecipientIdVersions(ctx context.Context, giftCardRecipientId interface{}) VersionsApiGETGiftCardRecipientIdVersionsRequest { + return VersionsApiGETGiftCardRecipientIdVersionsRequest{ + ApiService: a, + ctx: ctx, + giftCardRecipientId: giftCardRecipientId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETGiftCardRecipientIdVersionsExecute(r VersionsApiGETGiftCardRecipientIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETGiftCardRecipientIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/gift_card_recipients/{giftCardRecipientId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"giftCardRecipientId"+"}", url.PathEscape(parameterValueToString(r.giftCardRecipientId, "giftCardRecipientId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETInStockSubscriptionIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + inStockSubscriptionId interface{} +} + +func (r VersionsApiGETInStockSubscriptionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInStockSubscriptionIdVersionsExecute(r) +} + +/* +GETInStockSubscriptionIdVersions Retrieve the versions associated to the in stock subscription + +Retrieve the versions associated to the in stock subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param inStockSubscriptionId The resource's id + @return VersionsApiGETInStockSubscriptionIdVersionsRequest +*/ +func (a *VersionsApiService) GETInStockSubscriptionIdVersions(ctx context.Context, inStockSubscriptionId interface{}) VersionsApiGETInStockSubscriptionIdVersionsRequest { + return VersionsApiGETInStockSubscriptionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + inStockSubscriptionId: inStockSubscriptionId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETInStockSubscriptionIdVersionsExecute(r VersionsApiGETInStockSubscriptionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETInStockSubscriptionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/in_stock_subscriptions/{inStockSubscriptionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"inStockSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.inStockSubscriptionId, "inStockSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETInventoryModelIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + inventoryModelId interface{} +} + +func (r VersionsApiGETInventoryModelIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInventoryModelIdVersionsExecute(r) +} + +/* +GETInventoryModelIdVersions Retrieve the versions associated to the inventory model + +Retrieve the versions associated to the inventory model + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param inventoryModelId The resource's id + @return VersionsApiGETInventoryModelIdVersionsRequest +*/ +func (a *VersionsApiService) GETInventoryModelIdVersions(ctx context.Context, inventoryModelId interface{}) VersionsApiGETInventoryModelIdVersionsRequest { + return VersionsApiGETInventoryModelIdVersionsRequest{ + ApiService: a, + ctx: ctx, + inventoryModelId: inventoryModelId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETInventoryModelIdVersionsExecute(r VersionsApiGETInventoryModelIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETInventoryModelIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/inventory_models/{inventoryModelId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"inventoryModelId"+"}", url.PathEscape(parameterValueToString(r.inventoryModelId, "inventoryModelId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETInventoryReturnLocationIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + inventoryReturnLocationId interface{} +} + +func (r VersionsApiGETInventoryReturnLocationIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInventoryReturnLocationIdVersionsExecute(r) +} + +/* +GETInventoryReturnLocationIdVersions Retrieve the versions associated to the inventory return location + +Retrieve the versions associated to the inventory return location + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param inventoryReturnLocationId The resource's id + @return VersionsApiGETInventoryReturnLocationIdVersionsRequest +*/ +func (a *VersionsApiService) GETInventoryReturnLocationIdVersions(ctx context.Context, inventoryReturnLocationId interface{}) VersionsApiGETInventoryReturnLocationIdVersionsRequest { + return VersionsApiGETInventoryReturnLocationIdVersionsRequest{ + ApiService: a, + ctx: ctx, + inventoryReturnLocationId: inventoryReturnLocationId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETInventoryReturnLocationIdVersionsExecute(r VersionsApiGETInventoryReturnLocationIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETInventoryReturnLocationIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/inventory_return_locations/{inventoryReturnLocationId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"inventoryReturnLocationId"+"}", url.PathEscape(parameterValueToString(r.inventoryReturnLocationId, "inventoryReturnLocationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETInventoryStockLocationIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + inventoryStockLocationId interface{} +} + +func (r VersionsApiGETInventoryStockLocationIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETInventoryStockLocationIdVersionsExecute(r) +} + +/* +GETInventoryStockLocationIdVersions Retrieve the versions associated to the inventory stock location + +Retrieve the versions associated to the inventory stock location + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param inventoryStockLocationId The resource's id + @return VersionsApiGETInventoryStockLocationIdVersionsRequest +*/ +func (a *VersionsApiService) GETInventoryStockLocationIdVersions(ctx context.Context, inventoryStockLocationId interface{}) VersionsApiGETInventoryStockLocationIdVersionsRequest { + return VersionsApiGETInventoryStockLocationIdVersionsRequest{ + ApiService: a, + ctx: ctx, + inventoryStockLocationId: inventoryStockLocationId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETInventoryStockLocationIdVersionsExecute(r VersionsApiGETInventoryStockLocationIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETInventoryStockLocationIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/inventory_stock_locations/{inventoryStockLocationId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"inventoryStockLocationId"+"}", url.PathEscape(parameterValueToString(r.inventoryStockLocationId, "inventoryStockLocationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETKlarnaGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + klarnaGatewayId interface{} +} + +func (r VersionsApiGETKlarnaGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETKlarnaGatewayIdVersionsExecute(r) +} + +/* +GETKlarnaGatewayIdVersions Retrieve the versions associated to the klarna gateway + +Retrieve the versions associated to the klarna gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param klarnaGatewayId The resource's id + @return VersionsApiGETKlarnaGatewayIdVersionsRequest +*/ +func (a *VersionsApiService) GETKlarnaGatewayIdVersions(ctx context.Context, klarnaGatewayId interface{}) VersionsApiGETKlarnaGatewayIdVersionsRequest { + return VersionsApiGETKlarnaGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + klarnaGatewayId: klarnaGatewayId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETKlarnaGatewayIdVersionsExecute(r VersionsApiGETKlarnaGatewayIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETKlarnaGatewayIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/klarna_gateways/{klarnaGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"klarnaGatewayId"+"}", url.PathEscape(parameterValueToString(r.klarnaGatewayId, "klarnaGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETKlarnaPaymentIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + klarnaPaymentId interface{} +} + +func (r VersionsApiGETKlarnaPaymentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETKlarnaPaymentIdVersionsExecute(r) +} + +/* +GETKlarnaPaymentIdVersions Retrieve the versions associated to the klarna payment + +Retrieve the versions associated to the klarna payment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param klarnaPaymentId The resource's id + @return VersionsApiGETKlarnaPaymentIdVersionsRequest +*/ +func (a *VersionsApiService) GETKlarnaPaymentIdVersions(ctx context.Context, klarnaPaymentId interface{}) VersionsApiGETKlarnaPaymentIdVersionsRequest { + return VersionsApiGETKlarnaPaymentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + klarnaPaymentId: klarnaPaymentId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETKlarnaPaymentIdVersionsExecute(r VersionsApiGETKlarnaPaymentIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETKlarnaPaymentIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/klarna_payments/{klarnaPaymentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"klarnaPaymentId"+"}", url.PathEscape(parameterValueToString(r.klarnaPaymentId, "klarnaPaymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETManualGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + manualGatewayId interface{} +} + +func (r VersionsApiGETManualGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETManualGatewayIdVersionsExecute(r) +} + +/* +GETManualGatewayIdVersions Retrieve the versions associated to the manual gateway + +Retrieve the versions associated to the manual gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param manualGatewayId The resource's id + @return VersionsApiGETManualGatewayIdVersionsRequest +*/ +func (a *VersionsApiService) GETManualGatewayIdVersions(ctx context.Context, manualGatewayId interface{}) VersionsApiGETManualGatewayIdVersionsRequest { + return VersionsApiGETManualGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + manualGatewayId: manualGatewayId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETManualGatewayIdVersionsExecute(r VersionsApiGETManualGatewayIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETManualGatewayIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/manual_gateways/{manualGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"manualGatewayId"+"}", url.PathEscape(parameterValueToString(r.manualGatewayId, "manualGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETManualTaxCalculatorIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + manualTaxCalculatorId interface{} +} + +func (r VersionsApiGETManualTaxCalculatorIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETManualTaxCalculatorIdVersionsExecute(r) +} + +/* +GETManualTaxCalculatorIdVersions Retrieve the versions associated to the manual tax calculator + +Retrieve the versions associated to the manual tax calculator + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param manualTaxCalculatorId The resource's id + @return VersionsApiGETManualTaxCalculatorIdVersionsRequest +*/ +func (a *VersionsApiService) GETManualTaxCalculatorIdVersions(ctx context.Context, manualTaxCalculatorId interface{}) VersionsApiGETManualTaxCalculatorIdVersionsRequest { + return VersionsApiGETManualTaxCalculatorIdVersionsRequest{ + ApiService: a, + ctx: ctx, + manualTaxCalculatorId: manualTaxCalculatorId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETManualTaxCalculatorIdVersionsExecute(r VersionsApiGETManualTaxCalculatorIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETManualTaxCalculatorIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/manual_tax_calculators/{manualTaxCalculatorId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"manualTaxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.manualTaxCalculatorId, "manualTaxCalculatorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETMarketIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + marketId interface{} +} + +func (r VersionsApiGETMarketIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETMarketIdVersionsExecute(r) +} + +/* +GETMarketIdVersions Retrieve the versions associated to the market + +Retrieve the versions associated to the market + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param marketId The resource's id + @return VersionsApiGETMarketIdVersionsRequest +*/ +func (a *VersionsApiService) GETMarketIdVersions(ctx context.Context, marketId interface{}) VersionsApiGETMarketIdVersionsRequest { + return VersionsApiGETMarketIdVersionsRequest{ + ApiService: a, + ctx: ctx, + marketId: marketId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETMarketIdVersionsExecute(r VersionsApiGETMarketIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETMarketIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/markets/{marketId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"marketId"+"}", url.PathEscape(parameterValueToString(r.marketId, "marketId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETMerchantIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + merchantId interface{} +} + +func (r VersionsApiGETMerchantIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETMerchantIdVersionsExecute(r) +} + +/* +GETMerchantIdVersions Retrieve the versions associated to the merchant + +Retrieve the versions associated to the merchant + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param merchantId The resource's id + @return VersionsApiGETMerchantIdVersionsRequest +*/ +func (a *VersionsApiService) GETMerchantIdVersions(ctx context.Context, merchantId interface{}) VersionsApiGETMerchantIdVersionsRequest { + return VersionsApiGETMerchantIdVersionsRequest{ + ApiService: a, + ctx: ctx, + merchantId: merchantId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETMerchantIdVersionsExecute(r VersionsApiGETMerchantIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETMerchantIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/merchants/{merchantId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"merchantId"+"}", url.PathEscape(parameterValueToString(r.merchantId, "merchantId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETOrderAmountPromotionRuleIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + orderAmountPromotionRuleId interface{} +} + +func (r VersionsApiGETOrderAmountPromotionRuleIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderAmountPromotionRuleIdVersionsExecute(r) +} + +/* +GETOrderAmountPromotionRuleIdVersions Retrieve the versions associated to the order amount promotion rule + +Retrieve the versions associated to the order amount promotion rule + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderAmountPromotionRuleId The resource's id + @return VersionsApiGETOrderAmountPromotionRuleIdVersionsRequest +*/ +func (a *VersionsApiService) GETOrderAmountPromotionRuleIdVersions(ctx context.Context, orderAmountPromotionRuleId interface{}) VersionsApiGETOrderAmountPromotionRuleIdVersionsRequest { + return VersionsApiGETOrderAmountPromotionRuleIdVersionsRequest{ + ApiService: a, + ctx: ctx, + orderAmountPromotionRuleId: orderAmountPromotionRuleId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETOrderAmountPromotionRuleIdVersionsExecute(r VersionsApiGETOrderAmountPromotionRuleIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETOrderAmountPromotionRuleIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_amount_promotion_rules/{orderAmountPromotionRuleId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"orderAmountPromotionRuleId"+"}", url.PathEscape(parameterValueToString(r.orderAmountPromotionRuleId, "orderAmountPromotionRuleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETOrderIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + orderId interface{} +} + +func (r VersionsApiGETOrderIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderIdVersionsExecute(r) +} + +/* +GETOrderIdVersions Retrieve the versions associated to the order + +Retrieve the versions associated to the order + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId The resource's id + @return VersionsApiGETOrderIdVersionsRequest +*/ +func (a *VersionsApiService) GETOrderIdVersions(ctx context.Context, orderId interface{}) VersionsApiGETOrderIdVersionsRequest { + return VersionsApiGETOrderIdVersionsRequest{ + ApiService: a, + ctx: ctx, + orderId: orderId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETOrderIdVersionsExecute(r VersionsApiGETOrderIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETOrderIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/orders/{orderId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"orderId"+"}", url.PathEscape(parameterValueToString(r.orderId, "orderId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETOrderSubscriptionIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + orderSubscriptionId interface{} +} + +func (r VersionsApiGETOrderSubscriptionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETOrderSubscriptionIdVersionsExecute(r) +} + +/* +GETOrderSubscriptionIdVersions Retrieve the versions associated to the order subscription + +Retrieve the versions associated to the order subscription + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderSubscriptionId The resource's id + @return VersionsApiGETOrderSubscriptionIdVersionsRequest +*/ +func (a *VersionsApiService) GETOrderSubscriptionIdVersions(ctx context.Context, orderSubscriptionId interface{}) VersionsApiGETOrderSubscriptionIdVersionsRequest { + return VersionsApiGETOrderSubscriptionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + orderSubscriptionId: orderSubscriptionId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETOrderSubscriptionIdVersionsExecute(r VersionsApiGETOrderSubscriptionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETOrderSubscriptionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/order_subscriptions/{orderSubscriptionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"orderSubscriptionId"+"}", url.PathEscape(parameterValueToString(r.orderSubscriptionId, "orderSubscriptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETPackageIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + packageId interface{} +} + +func (r VersionsApiGETPackageIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPackageIdVersionsExecute(r) +} + +/* +GETPackageIdVersions Retrieve the versions associated to the package + +Retrieve the versions associated to the package + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param packageId The resource's id + @return VersionsApiGETPackageIdVersionsRequest +*/ +func (a *VersionsApiService) GETPackageIdVersions(ctx context.Context, packageId interface{}) VersionsApiGETPackageIdVersionsRequest { + return VersionsApiGETPackageIdVersionsRequest{ + ApiService: a, + ctx: ctx, + packageId: packageId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETPackageIdVersionsExecute(r VersionsApiGETPackageIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETPackageIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/packages/{packageId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"packageId"+"}", url.PathEscape(parameterValueToString(r.packageId, "packageId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETParcelIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + parcelId interface{} +} + +func (r VersionsApiGETParcelIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETParcelIdVersionsExecute(r) +} + +/* +GETParcelIdVersions Retrieve the versions associated to the parcel + +Retrieve the versions associated to the parcel + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param parcelId The resource's id + @return VersionsApiGETParcelIdVersionsRequest +*/ +func (a *VersionsApiService) GETParcelIdVersions(ctx context.Context, parcelId interface{}) VersionsApiGETParcelIdVersionsRequest { + return VersionsApiGETParcelIdVersionsRequest{ + ApiService: a, + ctx: ctx, + parcelId: parcelId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETParcelIdVersionsExecute(r VersionsApiGETParcelIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETParcelIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/parcels/{parcelId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"parcelId"+"}", url.PathEscape(parameterValueToString(r.parcelId, "parcelId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETParcelLineItemIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + parcelLineItemId interface{} +} + +func (r VersionsApiGETParcelLineItemIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETParcelLineItemIdVersionsExecute(r) +} + +/* +GETParcelLineItemIdVersions Retrieve the versions associated to the parcel line item + +Retrieve the versions associated to the parcel line item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param parcelLineItemId The resource's id + @return VersionsApiGETParcelLineItemIdVersionsRequest +*/ +func (a *VersionsApiService) GETParcelLineItemIdVersions(ctx context.Context, parcelLineItemId interface{}) VersionsApiGETParcelLineItemIdVersionsRequest { + return VersionsApiGETParcelLineItemIdVersionsRequest{ + ApiService: a, + ctx: ctx, + parcelLineItemId: parcelLineItemId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETParcelLineItemIdVersionsExecute(r VersionsApiGETParcelLineItemIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETParcelLineItemIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/parcel_line_items/{parcelLineItemId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"parcelLineItemId"+"}", url.PathEscape(parameterValueToString(r.parcelLineItemId, "parcelLineItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETPaymentGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + paymentGatewayId interface{} +} + +func (r VersionsApiGETPaymentGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaymentGatewayIdVersionsExecute(r) +} + +/* +GETPaymentGatewayIdVersions Retrieve the versions associated to the payment gateway + +Retrieve the versions associated to the payment gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param paymentGatewayId The resource's id + @return VersionsApiGETPaymentGatewayIdVersionsRequest +*/ +func (a *VersionsApiService) GETPaymentGatewayIdVersions(ctx context.Context, paymentGatewayId interface{}) VersionsApiGETPaymentGatewayIdVersionsRequest { + return VersionsApiGETPaymentGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + paymentGatewayId: paymentGatewayId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETPaymentGatewayIdVersionsExecute(r VersionsApiGETPaymentGatewayIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETPaymentGatewayIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/payment_gateways/{paymentGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"paymentGatewayId"+"}", url.PathEscape(parameterValueToString(r.paymentGatewayId, "paymentGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETPaymentMethodIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + paymentMethodId interface{} +} + +func (r VersionsApiGETPaymentMethodIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaymentMethodIdVersionsExecute(r) +} + +/* +GETPaymentMethodIdVersions Retrieve the versions associated to the payment method + +Retrieve the versions associated to the payment method + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param paymentMethodId The resource's id + @return VersionsApiGETPaymentMethodIdVersionsRequest +*/ +func (a *VersionsApiService) GETPaymentMethodIdVersions(ctx context.Context, paymentMethodId interface{}) VersionsApiGETPaymentMethodIdVersionsRequest { + return VersionsApiGETPaymentMethodIdVersionsRequest{ + ApiService: a, + ctx: ctx, + paymentMethodId: paymentMethodId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETPaymentMethodIdVersionsExecute(r VersionsApiGETPaymentMethodIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETPaymentMethodIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/payment_methods/{paymentMethodId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"paymentMethodId"+"}", url.PathEscape(parameterValueToString(r.paymentMethodId, "paymentMethodId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETPaypalGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + paypalGatewayId interface{} +} + +func (r VersionsApiGETPaypalGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaypalGatewayIdVersionsExecute(r) +} + +/* +GETPaypalGatewayIdVersions Retrieve the versions associated to the paypal gateway + +Retrieve the versions associated to the paypal gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param paypalGatewayId The resource's id + @return VersionsApiGETPaypalGatewayIdVersionsRequest +*/ +func (a *VersionsApiService) GETPaypalGatewayIdVersions(ctx context.Context, paypalGatewayId interface{}) VersionsApiGETPaypalGatewayIdVersionsRequest { + return VersionsApiGETPaypalGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + paypalGatewayId: paypalGatewayId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETPaypalGatewayIdVersionsExecute(r VersionsApiGETPaypalGatewayIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETPaypalGatewayIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/paypal_gateways/{paypalGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"paypalGatewayId"+"}", url.PathEscape(parameterValueToString(r.paypalGatewayId, "paypalGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETPaypalPaymentIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + paypalPaymentId interface{} +} + +func (r VersionsApiGETPaypalPaymentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPaypalPaymentIdVersionsExecute(r) +} + +/* +GETPaypalPaymentIdVersions Retrieve the versions associated to the paypal payment + +Retrieve the versions associated to the paypal payment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param paypalPaymentId The resource's id + @return VersionsApiGETPaypalPaymentIdVersionsRequest +*/ +func (a *VersionsApiService) GETPaypalPaymentIdVersions(ctx context.Context, paypalPaymentId interface{}) VersionsApiGETPaypalPaymentIdVersionsRequest { + return VersionsApiGETPaypalPaymentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + paypalPaymentId: paypalPaymentId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETPaypalPaymentIdVersionsExecute(r VersionsApiGETPaypalPaymentIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETPaypalPaymentIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/paypal_payments/{paypalPaymentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"paypalPaymentId"+"}", url.PathEscape(parameterValueToString(r.paypalPaymentId, "paypalPaymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETPercentageDiscountPromotionIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + percentageDiscountPromotionId interface{} +} + +func (r VersionsApiGETPercentageDiscountPromotionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPercentageDiscountPromotionIdVersionsExecute(r) +} + +/* +GETPercentageDiscountPromotionIdVersions Retrieve the versions associated to the percentage discount promotion + +Retrieve the versions associated to the percentage discount promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param percentageDiscountPromotionId The resource's id + @return VersionsApiGETPercentageDiscountPromotionIdVersionsRequest +*/ +func (a *VersionsApiService) GETPercentageDiscountPromotionIdVersions(ctx context.Context, percentageDiscountPromotionId interface{}) VersionsApiGETPercentageDiscountPromotionIdVersionsRequest { + return VersionsApiGETPercentageDiscountPromotionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + percentageDiscountPromotionId: percentageDiscountPromotionId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETPercentageDiscountPromotionIdVersionsExecute(r VersionsApiGETPercentageDiscountPromotionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETPercentageDiscountPromotionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/percentage_discount_promotions/{percentageDiscountPromotionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"percentageDiscountPromotionId"+"}", url.PathEscape(parameterValueToString(r.percentageDiscountPromotionId, "percentageDiscountPromotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETPriceFrequencyTierIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + priceFrequencyTierId interface{} +} + +func (r VersionsApiGETPriceFrequencyTierIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceFrequencyTierIdVersionsExecute(r) +} + +/* +GETPriceFrequencyTierIdVersions Retrieve the versions associated to the price frequency tier + +Retrieve the versions associated to the price frequency tier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceFrequencyTierId The resource's id + @return VersionsApiGETPriceFrequencyTierIdVersionsRequest +*/ +func (a *VersionsApiService) GETPriceFrequencyTierIdVersions(ctx context.Context, priceFrequencyTierId interface{}) VersionsApiGETPriceFrequencyTierIdVersionsRequest { + return VersionsApiGETPriceFrequencyTierIdVersionsRequest{ + ApiService: a, + ctx: ctx, + priceFrequencyTierId: priceFrequencyTierId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETPriceFrequencyTierIdVersionsExecute(r VersionsApiGETPriceFrequencyTierIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETPriceFrequencyTierIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/price_frequency_tiers/{priceFrequencyTierId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"priceFrequencyTierId"+"}", url.PathEscape(parameterValueToString(r.priceFrequencyTierId, "priceFrequencyTierId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETPriceIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + priceId interface{} +} + +func (r VersionsApiGETPriceIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceIdVersionsExecute(r) +} + +/* +GETPriceIdVersions Retrieve the versions associated to the price + +Retrieve the versions associated to the price + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceId The resource's id + @return VersionsApiGETPriceIdVersionsRequest +*/ +func (a *VersionsApiService) GETPriceIdVersions(ctx context.Context, priceId interface{}) VersionsApiGETPriceIdVersionsRequest { + return VersionsApiGETPriceIdVersionsRequest{ + ApiService: a, + ctx: ctx, + priceId: priceId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETPriceIdVersionsExecute(r VersionsApiGETPriceIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETPriceIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/prices/{priceId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"priceId"+"}", url.PathEscape(parameterValueToString(r.priceId, "priceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETPriceListIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + priceListId interface{} +} + +func (r VersionsApiGETPriceListIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceListIdVersionsExecute(r) +} + +/* +GETPriceListIdVersions Retrieve the versions associated to the price list + +Retrieve the versions associated to the price list + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceListId The resource's id + @return VersionsApiGETPriceListIdVersionsRequest +*/ +func (a *VersionsApiService) GETPriceListIdVersions(ctx context.Context, priceListId interface{}) VersionsApiGETPriceListIdVersionsRequest { + return VersionsApiGETPriceListIdVersionsRequest{ + ApiService: a, + ctx: ctx, + priceListId: priceListId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETPriceListIdVersionsExecute(r VersionsApiGETPriceListIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETPriceListIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/price_lists/{priceListId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"priceListId"+"}", url.PathEscape(parameterValueToString(r.priceListId, "priceListId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETPriceListSchedulerIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + priceListSchedulerId interface{} +} + +func (r VersionsApiGETPriceListSchedulerIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceListSchedulerIdVersionsExecute(r) +} + +/* +GETPriceListSchedulerIdVersions Retrieve the versions associated to the price list scheduler + +Retrieve the versions associated to the price list scheduler + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceListSchedulerId The resource's id + @return VersionsApiGETPriceListSchedulerIdVersionsRequest +*/ +func (a *VersionsApiService) GETPriceListSchedulerIdVersions(ctx context.Context, priceListSchedulerId interface{}) VersionsApiGETPriceListSchedulerIdVersionsRequest { + return VersionsApiGETPriceListSchedulerIdVersionsRequest{ + ApiService: a, + ctx: ctx, + priceListSchedulerId: priceListSchedulerId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETPriceListSchedulerIdVersionsExecute(r VersionsApiGETPriceListSchedulerIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETPriceListSchedulerIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/price_list_schedulers/{priceListSchedulerId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"priceListSchedulerId"+"}", url.PathEscape(parameterValueToString(r.priceListSchedulerId, "priceListSchedulerId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETPriceTierIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + priceTierId interface{} +} + +func (r VersionsApiGETPriceTierIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceTierIdVersionsExecute(r) +} + +/* +GETPriceTierIdVersions Retrieve the versions associated to the price tier + +Retrieve the versions associated to the price tier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceTierId The resource's id + @return VersionsApiGETPriceTierIdVersionsRequest +*/ +func (a *VersionsApiService) GETPriceTierIdVersions(ctx context.Context, priceTierId interface{}) VersionsApiGETPriceTierIdVersionsRequest { + return VersionsApiGETPriceTierIdVersionsRequest{ + ApiService: a, + ctx: ctx, + priceTierId: priceTierId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETPriceTierIdVersionsExecute(r VersionsApiGETPriceTierIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETPriceTierIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/price_tiers/{priceTierId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"priceTierId"+"}", url.PathEscape(parameterValueToString(r.priceTierId, "priceTierId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETPriceVolumeTierIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + priceVolumeTierId interface{} +} + +func (r VersionsApiGETPriceVolumeTierIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPriceVolumeTierIdVersionsExecute(r) +} + +/* +GETPriceVolumeTierIdVersions Retrieve the versions associated to the price volume tier + +Retrieve the versions associated to the price volume tier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param priceVolumeTierId The resource's id + @return VersionsApiGETPriceVolumeTierIdVersionsRequest +*/ +func (a *VersionsApiService) GETPriceVolumeTierIdVersions(ctx context.Context, priceVolumeTierId interface{}) VersionsApiGETPriceVolumeTierIdVersionsRequest { + return VersionsApiGETPriceVolumeTierIdVersionsRequest{ + ApiService: a, + ctx: ctx, + priceVolumeTierId: priceVolumeTierId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETPriceVolumeTierIdVersionsExecute(r VersionsApiGETPriceVolumeTierIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETPriceVolumeTierIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/price_volume_tiers/{priceVolumeTierId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"priceVolumeTierId"+"}", url.PathEscape(parameterValueToString(r.priceVolumeTierId, "priceVolumeTierId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETPromotionIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + promotionId interface{} +} + +func (r VersionsApiGETPromotionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionIdVersionsExecute(r) +} + +/* +GETPromotionIdVersions Retrieve the versions associated to the promotion + +Retrieve the versions associated to the promotion + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param promotionId The resource's id + @return VersionsApiGETPromotionIdVersionsRequest +*/ +func (a *VersionsApiService) GETPromotionIdVersions(ctx context.Context, promotionId interface{}) VersionsApiGETPromotionIdVersionsRequest { + return VersionsApiGETPromotionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + promotionId: promotionId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETPromotionIdVersionsExecute(r VersionsApiGETPromotionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETPromotionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/promotions/{promotionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"promotionId"+"}", url.PathEscape(parameterValueToString(r.promotionId, "promotionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETPromotionRuleIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + promotionRuleId interface{} +} + +func (r VersionsApiGETPromotionRuleIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETPromotionRuleIdVersionsExecute(r) +} + +/* +GETPromotionRuleIdVersions Retrieve the versions associated to the promotion rule + +Retrieve the versions associated to the promotion rule + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param promotionRuleId The resource's id + @return VersionsApiGETPromotionRuleIdVersionsRequest +*/ +func (a *VersionsApiService) GETPromotionRuleIdVersions(ctx context.Context, promotionRuleId interface{}) VersionsApiGETPromotionRuleIdVersionsRequest { + return VersionsApiGETPromotionRuleIdVersionsRequest{ + ApiService: a, + ctx: ctx, + promotionRuleId: promotionRuleId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETPromotionRuleIdVersionsExecute(r VersionsApiGETPromotionRuleIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETPromotionRuleIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/promotion_rules/{promotionRuleId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"promotionRuleId"+"}", url.PathEscape(parameterValueToString(r.promotionRuleId, "promotionRuleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETRefundIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + refundId interface{} +} + +func (r VersionsApiGETRefundIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETRefundIdVersionsExecute(r) +} + +/* +GETRefundIdVersions Retrieve the versions associated to the refund + +Retrieve the versions associated to the refund + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param refundId The resource's id + @return VersionsApiGETRefundIdVersionsRequest +*/ +func (a *VersionsApiService) GETRefundIdVersions(ctx context.Context, refundId interface{}) VersionsApiGETRefundIdVersionsRequest { + return VersionsApiGETRefundIdVersionsRequest{ + ApiService: a, + ctx: ctx, + refundId: refundId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETRefundIdVersionsExecute(r VersionsApiGETRefundIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETRefundIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/refunds/{refundId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"refundId"+"}", url.PathEscape(parameterValueToString(r.refundId, "refundId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETReservedStockIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + reservedStockId interface{} +} + +func (r VersionsApiGETReservedStockIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReservedStockIdVersionsExecute(r) +} + +/* +GETReservedStockIdVersions Retrieve the versions associated to the reserved stock + +Retrieve the versions associated to the reserved stock + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param reservedStockId The resource's id + @return VersionsApiGETReservedStockIdVersionsRequest +*/ +func (a *VersionsApiService) GETReservedStockIdVersions(ctx context.Context, reservedStockId interface{}) VersionsApiGETReservedStockIdVersionsRequest { + return VersionsApiGETReservedStockIdVersionsRequest{ + ApiService: a, + ctx: ctx, + reservedStockId: reservedStockId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETReservedStockIdVersionsExecute(r VersionsApiGETReservedStockIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETReservedStockIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/reserved_stocks/{reservedStockId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"reservedStockId"+"}", url.PathEscape(parameterValueToString(r.reservedStockId, "reservedStockId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETReturnIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + returnId interface{} +} + +func (r VersionsApiGETReturnIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETReturnIdVersionsExecute(r) +} + +/* +GETReturnIdVersions Retrieve the versions associated to the return + +Retrieve the versions associated to the return + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param returnId The resource's id + @return VersionsApiGETReturnIdVersionsRequest +*/ +func (a *VersionsApiService) GETReturnIdVersions(ctx context.Context, returnId interface{}) VersionsApiGETReturnIdVersionsRequest { + return VersionsApiGETReturnIdVersionsRequest{ + ApiService: a, + ctx: ctx, + returnId: returnId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETReturnIdVersionsExecute(r VersionsApiGETReturnIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETReturnIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/returns/{returnId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"returnId"+"}", url.PathEscape(parameterValueToString(r.returnId, "returnId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETSatispayGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + satispayGatewayId interface{} +} + +func (r VersionsApiGETSatispayGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSatispayGatewayIdVersionsExecute(r) +} + +/* +GETSatispayGatewayIdVersions Retrieve the versions associated to the satispay gateway + +Retrieve the versions associated to the satispay gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param satispayGatewayId The resource's id + @return VersionsApiGETSatispayGatewayIdVersionsRequest +*/ +func (a *VersionsApiService) GETSatispayGatewayIdVersions(ctx context.Context, satispayGatewayId interface{}) VersionsApiGETSatispayGatewayIdVersionsRequest { + return VersionsApiGETSatispayGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + satispayGatewayId: satispayGatewayId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETSatispayGatewayIdVersionsExecute(r VersionsApiGETSatispayGatewayIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETSatispayGatewayIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/satispay_gateways/{satispayGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"satispayGatewayId"+"}", url.PathEscape(parameterValueToString(r.satispayGatewayId, "satispayGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETSatispayPaymentIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + satispayPaymentId interface{} +} + +func (r VersionsApiGETSatispayPaymentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSatispayPaymentIdVersionsExecute(r) +} + +/* +GETSatispayPaymentIdVersions Retrieve the versions associated to the satispay payment + +Retrieve the versions associated to the satispay payment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param satispayPaymentId The resource's id + @return VersionsApiGETSatispayPaymentIdVersionsRequest +*/ +func (a *VersionsApiService) GETSatispayPaymentIdVersions(ctx context.Context, satispayPaymentId interface{}) VersionsApiGETSatispayPaymentIdVersionsRequest { + return VersionsApiGETSatispayPaymentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + satispayPaymentId: satispayPaymentId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETSatispayPaymentIdVersionsExecute(r VersionsApiGETSatispayPaymentIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETSatispayPaymentIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/satispay_payments/{satispayPaymentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"satispayPaymentId"+"}", url.PathEscape(parameterValueToString(r.satispayPaymentId, "satispayPaymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETShipmentIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + shipmentId interface{} +} + +func (r VersionsApiGETShipmentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShipmentIdVersionsExecute(r) +} + +/* +GETShipmentIdVersions Retrieve the versions associated to the shipment + +Retrieve the versions associated to the shipment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param shipmentId The resource's id + @return VersionsApiGETShipmentIdVersionsRequest +*/ +func (a *VersionsApiService) GETShipmentIdVersions(ctx context.Context, shipmentId interface{}) VersionsApiGETShipmentIdVersionsRequest { + return VersionsApiGETShipmentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + shipmentId: shipmentId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETShipmentIdVersionsExecute(r VersionsApiGETShipmentIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETShipmentIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/shipments/{shipmentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"shipmentId"+"}", url.PathEscape(parameterValueToString(r.shipmentId, "shipmentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETShippingCategoryIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + shippingCategoryId interface{} +} + +func (r VersionsApiGETShippingCategoryIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingCategoryIdVersionsExecute(r) +} + +/* +GETShippingCategoryIdVersions Retrieve the versions associated to the shipping category + +Retrieve the versions associated to the shipping category + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param shippingCategoryId The resource's id + @return VersionsApiGETShippingCategoryIdVersionsRequest +*/ +func (a *VersionsApiService) GETShippingCategoryIdVersions(ctx context.Context, shippingCategoryId interface{}) VersionsApiGETShippingCategoryIdVersionsRequest { + return VersionsApiGETShippingCategoryIdVersionsRequest{ + ApiService: a, + ctx: ctx, + shippingCategoryId: shippingCategoryId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETShippingCategoryIdVersionsExecute(r VersionsApiGETShippingCategoryIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETShippingCategoryIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/shipping_categories/{shippingCategoryId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"shippingCategoryId"+"}", url.PathEscape(parameterValueToString(r.shippingCategoryId, "shippingCategoryId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETShippingMethodIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + shippingMethodId interface{} +} + +func (r VersionsApiGETShippingMethodIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingMethodIdVersionsExecute(r) +} + +/* +GETShippingMethodIdVersions Retrieve the versions associated to the shipping method + +Retrieve the versions associated to the shipping method + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param shippingMethodId The resource's id + @return VersionsApiGETShippingMethodIdVersionsRequest +*/ +func (a *VersionsApiService) GETShippingMethodIdVersions(ctx context.Context, shippingMethodId interface{}) VersionsApiGETShippingMethodIdVersionsRequest { + return VersionsApiGETShippingMethodIdVersionsRequest{ + ApiService: a, + ctx: ctx, + shippingMethodId: shippingMethodId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETShippingMethodIdVersionsExecute(r VersionsApiGETShippingMethodIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETShippingMethodIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/shipping_methods/{shippingMethodId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodId, "shippingMethodId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETShippingMethodTierIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + shippingMethodTierId interface{} +} + +func (r VersionsApiGETShippingMethodTierIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingMethodTierIdVersionsExecute(r) +} + +/* +GETShippingMethodTierIdVersions Retrieve the versions associated to the shipping method tier + +Retrieve the versions associated to the shipping method tier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param shippingMethodTierId The resource's id + @return VersionsApiGETShippingMethodTierIdVersionsRequest +*/ +func (a *VersionsApiService) GETShippingMethodTierIdVersions(ctx context.Context, shippingMethodTierId interface{}) VersionsApiGETShippingMethodTierIdVersionsRequest { + return VersionsApiGETShippingMethodTierIdVersionsRequest{ + ApiService: a, + ctx: ctx, + shippingMethodTierId: shippingMethodTierId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETShippingMethodTierIdVersionsExecute(r VersionsApiGETShippingMethodTierIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETShippingMethodTierIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/shipping_method_tiers/{shippingMethodTierId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"shippingMethodTierId"+"}", url.PathEscape(parameterValueToString(r.shippingMethodTierId, "shippingMethodTierId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETShippingWeightTierIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + shippingWeightTierId interface{} +} + +func (r VersionsApiGETShippingWeightTierIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingWeightTierIdVersionsExecute(r) +} + +/* +GETShippingWeightTierIdVersions Retrieve the versions associated to the shipping weight tier + +Retrieve the versions associated to the shipping weight tier + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param shippingWeightTierId The resource's id + @return VersionsApiGETShippingWeightTierIdVersionsRequest +*/ +func (a *VersionsApiService) GETShippingWeightTierIdVersions(ctx context.Context, shippingWeightTierId interface{}) VersionsApiGETShippingWeightTierIdVersionsRequest { + return VersionsApiGETShippingWeightTierIdVersionsRequest{ + ApiService: a, + ctx: ctx, + shippingWeightTierId: shippingWeightTierId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETShippingWeightTierIdVersionsExecute(r VersionsApiGETShippingWeightTierIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETShippingWeightTierIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/shipping_weight_tiers/{shippingWeightTierId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"shippingWeightTierId"+"}", url.PathEscape(parameterValueToString(r.shippingWeightTierId, "shippingWeightTierId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETShippingZoneIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + shippingZoneId interface{} +} + +func (r VersionsApiGETShippingZoneIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETShippingZoneIdVersionsExecute(r) +} + +/* +GETShippingZoneIdVersions Retrieve the versions associated to the shipping zone + +Retrieve the versions associated to the shipping zone + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param shippingZoneId The resource's id + @return VersionsApiGETShippingZoneIdVersionsRequest +*/ +func (a *VersionsApiService) GETShippingZoneIdVersions(ctx context.Context, shippingZoneId interface{}) VersionsApiGETShippingZoneIdVersionsRequest { + return VersionsApiGETShippingZoneIdVersionsRequest{ + ApiService: a, + ctx: ctx, + shippingZoneId: shippingZoneId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETShippingZoneIdVersionsExecute(r VersionsApiGETShippingZoneIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETShippingZoneIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/shipping_zones/{shippingZoneId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"shippingZoneId"+"}", url.PathEscape(parameterValueToString(r.shippingZoneId, "shippingZoneId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETSkuIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + skuId interface{} +} + +func (r VersionsApiGETSkuIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuIdVersionsExecute(r) +} + +/* +GETSkuIdVersions Retrieve the versions associated to the SKU + +Retrieve the versions associated to the SKU + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param skuId The resource's id + @return VersionsApiGETSkuIdVersionsRequest +*/ +func (a *VersionsApiService) GETSkuIdVersions(ctx context.Context, skuId interface{}) VersionsApiGETSkuIdVersionsRequest { + return VersionsApiGETSkuIdVersionsRequest{ + ApiService: a, + ctx: ctx, + skuId: skuId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETSkuIdVersionsExecute(r VersionsApiGETSkuIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETSkuIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/skus/{skuId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"skuId"+"}", url.PathEscape(parameterValueToString(r.skuId, "skuId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETSkuListIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + skuListId interface{} +} + +func (r VersionsApiGETSkuListIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuListIdVersionsExecute(r) +} + +/* +GETSkuListIdVersions Retrieve the versions associated to the SKU list + +Retrieve the versions associated to the SKU list + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param skuListId The resource's id + @return VersionsApiGETSkuListIdVersionsRequest +*/ +func (a *VersionsApiService) GETSkuListIdVersions(ctx context.Context, skuListId interface{}) VersionsApiGETSkuListIdVersionsRequest { + return VersionsApiGETSkuListIdVersionsRequest{ + ApiService: a, + ctx: ctx, + skuListId: skuListId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETSkuListIdVersionsExecute(r VersionsApiGETSkuListIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETSkuListIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/sku_lists/{skuListId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"skuListId"+"}", url.PathEscape(parameterValueToString(r.skuListId, "skuListId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETSkuListItemIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + skuListItemId interface{} +} + +func (r VersionsApiGETSkuListItemIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuListItemIdVersionsExecute(r) +} + +/* +GETSkuListItemIdVersions Retrieve the versions associated to the SKU list item + +Retrieve the versions associated to the SKU list item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param skuListItemId The resource's id + @return VersionsApiGETSkuListItemIdVersionsRequest +*/ +func (a *VersionsApiService) GETSkuListItemIdVersions(ctx context.Context, skuListItemId interface{}) VersionsApiGETSkuListItemIdVersionsRequest { + return VersionsApiGETSkuListItemIdVersionsRequest{ + ApiService: a, + ctx: ctx, + skuListItemId: skuListItemId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETSkuListItemIdVersionsExecute(r VersionsApiGETSkuListItemIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETSkuListItemIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/sku_list_items/{skuListItemId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"skuListItemId"+"}", url.PathEscape(parameterValueToString(r.skuListItemId, "skuListItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETSkuListPromotionRuleIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + skuListPromotionRuleId interface{} +} + +func (r VersionsApiGETSkuListPromotionRuleIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuListPromotionRuleIdVersionsExecute(r) +} + +/* +GETSkuListPromotionRuleIdVersions Retrieve the versions associated to the SKU list promotion rule + +Retrieve the versions associated to the SKU list promotion rule + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param skuListPromotionRuleId The resource's id + @return VersionsApiGETSkuListPromotionRuleIdVersionsRequest +*/ +func (a *VersionsApiService) GETSkuListPromotionRuleIdVersions(ctx context.Context, skuListPromotionRuleId interface{}) VersionsApiGETSkuListPromotionRuleIdVersionsRequest { + return VersionsApiGETSkuListPromotionRuleIdVersionsRequest{ + ApiService: a, + ctx: ctx, + skuListPromotionRuleId: skuListPromotionRuleId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETSkuListPromotionRuleIdVersionsExecute(r VersionsApiGETSkuListPromotionRuleIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETSkuListPromotionRuleIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/sku_list_promotion_rules/{skuListPromotionRuleId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"skuListPromotionRuleId"+"}", url.PathEscape(parameterValueToString(r.skuListPromotionRuleId, "skuListPromotionRuleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETSkuOptionIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + skuOptionId interface{} +} + +func (r VersionsApiGETSkuOptionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETSkuOptionIdVersionsExecute(r) +} + +/* +GETSkuOptionIdVersions Retrieve the versions associated to the SKU option + +Retrieve the versions associated to the SKU option + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param skuOptionId The resource's id + @return VersionsApiGETSkuOptionIdVersionsRequest +*/ +func (a *VersionsApiService) GETSkuOptionIdVersions(ctx context.Context, skuOptionId interface{}) VersionsApiGETSkuOptionIdVersionsRequest { + return VersionsApiGETSkuOptionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + skuOptionId: skuOptionId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETSkuOptionIdVersionsExecute(r VersionsApiGETSkuOptionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETSkuOptionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/sku_options/{skuOptionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"skuOptionId"+"}", url.PathEscape(parameterValueToString(r.skuOptionId, "skuOptionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETStockItemIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + stockItemId interface{} +} + +func (r VersionsApiGETStockItemIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockItemIdVersionsExecute(r) +} + +/* +GETStockItemIdVersions Retrieve the versions associated to the stock item + +Retrieve the versions associated to the stock item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockItemId The resource's id + @return VersionsApiGETStockItemIdVersionsRequest +*/ +func (a *VersionsApiService) GETStockItemIdVersions(ctx context.Context, stockItemId interface{}) VersionsApiGETStockItemIdVersionsRequest { + return VersionsApiGETStockItemIdVersionsRequest{ + ApiService: a, + ctx: ctx, + stockItemId: stockItemId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETStockItemIdVersionsExecute(r VersionsApiGETStockItemIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETStockItemIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_items/{stockItemId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"stockItemId"+"}", url.PathEscape(parameterValueToString(r.stockItemId, "stockItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETStockLineItemIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + stockLineItemId interface{} +} + +func (r VersionsApiGETStockLineItemIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockLineItemIdVersionsExecute(r) +} + +/* +GETStockLineItemIdVersions Retrieve the versions associated to the stock line item + +Retrieve the versions associated to the stock line item + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockLineItemId The resource's id + @return VersionsApiGETStockLineItemIdVersionsRequest +*/ +func (a *VersionsApiService) GETStockLineItemIdVersions(ctx context.Context, stockLineItemId interface{}) VersionsApiGETStockLineItemIdVersionsRequest { + return VersionsApiGETStockLineItemIdVersionsRequest{ + ApiService: a, + ctx: ctx, + stockLineItemId: stockLineItemId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETStockLineItemIdVersionsExecute(r VersionsApiGETStockLineItemIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETStockLineItemIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_line_items/{stockLineItemId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"stockLineItemId"+"}", url.PathEscape(parameterValueToString(r.stockLineItemId, "stockLineItemId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETStockLocationIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + stockLocationId interface{} +} + +func (r VersionsApiGETStockLocationIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockLocationIdVersionsExecute(r) +} + +/* +GETStockLocationIdVersions Retrieve the versions associated to the stock location + +Retrieve the versions associated to the stock location + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockLocationId The resource's id + @return VersionsApiGETStockLocationIdVersionsRequest +*/ +func (a *VersionsApiService) GETStockLocationIdVersions(ctx context.Context, stockLocationId interface{}) VersionsApiGETStockLocationIdVersionsRequest { + return VersionsApiGETStockLocationIdVersionsRequest{ + ApiService: a, + ctx: ctx, + stockLocationId: stockLocationId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETStockLocationIdVersionsExecute(r VersionsApiGETStockLocationIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETStockLocationIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_locations/{stockLocationId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"stockLocationId"+"}", url.PathEscape(parameterValueToString(r.stockLocationId, "stockLocationId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETStockTransferIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + stockTransferId interface{} +} + +func (r VersionsApiGETStockTransferIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStockTransferIdVersionsExecute(r) +} + +/* +GETStockTransferIdVersions Retrieve the versions associated to the stock transfer + +Retrieve the versions associated to the stock transfer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stockTransferId The resource's id + @return VersionsApiGETStockTransferIdVersionsRequest +*/ +func (a *VersionsApiService) GETStockTransferIdVersions(ctx context.Context, stockTransferId interface{}) VersionsApiGETStockTransferIdVersionsRequest { + return VersionsApiGETStockTransferIdVersionsRequest{ + ApiService: a, + ctx: ctx, + stockTransferId: stockTransferId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETStockTransferIdVersionsExecute(r VersionsApiGETStockTransferIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETStockTransferIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stock_transfers/{stockTransferId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"stockTransferId"+"}", url.PathEscape(parameterValueToString(r.stockTransferId, "stockTransferId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETStripeGatewayIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + stripeGatewayId interface{} +} + +func (r VersionsApiGETStripeGatewayIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStripeGatewayIdVersionsExecute(r) +} + +/* +GETStripeGatewayIdVersions Retrieve the versions associated to the stripe gateway + +Retrieve the versions associated to the stripe gateway + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stripeGatewayId The resource's id + @return VersionsApiGETStripeGatewayIdVersionsRequest +*/ +func (a *VersionsApiService) GETStripeGatewayIdVersions(ctx context.Context, stripeGatewayId interface{}) VersionsApiGETStripeGatewayIdVersionsRequest { + return VersionsApiGETStripeGatewayIdVersionsRequest{ + ApiService: a, + ctx: ctx, + stripeGatewayId: stripeGatewayId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETStripeGatewayIdVersionsExecute(r VersionsApiGETStripeGatewayIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETStripeGatewayIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stripe_gateways/{stripeGatewayId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"stripeGatewayId"+"}", url.PathEscape(parameterValueToString(r.stripeGatewayId, "stripeGatewayId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETStripePaymentIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + stripePaymentId interface{} +} + +func (r VersionsApiGETStripePaymentIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETStripePaymentIdVersionsExecute(r) +} + +/* +GETStripePaymentIdVersions Retrieve the versions associated to the stripe payment + +Retrieve the versions associated to the stripe payment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param stripePaymentId The resource's id + @return VersionsApiGETStripePaymentIdVersionsRequest +*/ +func (a *VersionsApiService) GETStripePaymentIdVersions(ctx context.Context, stripePaymentId interface{}) VersionsApiGETStripePaymentIdVersionsRequest { + return VersionsApiGETStripePaymentIdVersionsRequest{ + ApiService: a, + ctx: ctx, + stripePaymentId: stripePaymentId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETStripePaymentIdVersionsExecute(r VersionsApiGETStripePaymentIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETStripePaymentIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/stripe_payments/{stripePaymentId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"stripePaymentId"+"}", url.PathEscape(parameterValueToString(r.stripePaymentId, "stripePaymentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETTaxCalculatorIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + taxCalculatorId interface{} +} + +func (r VersionsApiGETTaxCalculatorIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTaxCalculatorIdVersionsExecute(r) +} + +/* +GETTaxCalculatorIdVersions Retrieve the versions associated to the tax calculator + +Retrieve the versions associated to the tax calculator + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param taxCalculatorId The resource's id + @return VersionsApiGETTaxCalculatorIdVersionsRequest +*/ +func (a *VersionsApiService) GETTaxCalculatorIdVersions(ctx context.Context, taxCalculatorId interface{}) VersionsApiGETTaxCalculatorIdVersionsRequest { + return VersionsApiGETTaxCalculatorIdVersionsRequest{ + ApiService: a, + ctx: ctx, + taxCalculatorId: taxCalculatorId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETTaxCalculatorIdVersionsExecute(r VersionsApiGETTaxCalculatorIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETTaxCalculatorIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/tax_calculators/{taxCalculatorId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"taxCalculatorId"+"}", url.PathEscape(parameterValueToString(r.taxCalculatorId, "taxCalculatorId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETTaxCategoryIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + taxCategoryId interface{} +} + +func (r VersionsApiGETTaxCategoryIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTaxCategoryIdVersionsExecute(r) +} + +/* +GETTaxCategoryIdVersions Retrieve the versions associated to the tax category + +Retrieve the versions associated to the tax category + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param taxCategoryId The resource's id + @return VersionsApiGETTaxCategoryIdVersionsRequest +*/ +func (a *VersionsApiService) GETTaxCategoryIdVersions(ctx context.Context, taxCategoryId interface{}) VersionsApiGETTaxCategoryIdVersionsRequest { + return VersionsApiGETTaxCategoryIdVersionsRequest{ + ApiService: a, + ctx: ctx, + taxCategoryId: taxCategoryId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETTaxCategoryIdVersionsExecute(r VersionsApiGETTaxCategoryIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETTaxCategoryIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/tax_categories/{taxCategoryId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"taxCategoryId"+"}", url.PathEscape(parameterValueToString(r.taxCategoryId, "taxCategoryId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETTaxRuleIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + taxRuleId interface{} +} + +func (r VersionsApiGETTaxRuleIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTaxRuleIdVersionsExecute(r) +} + +/* +GETTaxRuleIdVersions Retrieve the versions associated to the tax rule + +Retrieve the versions associated to the tax rule + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param taxRuleId The resource's id + @return VersionsApiGETTaxRuleIdVersionsRequest +*/ +func (a *VersionsApiService) GETTaxRuleIdVersions(ctx context.Context, taxRuleId interface{}) VersionsApiGETTaxRuleIdVersionsRequest { + return VersionsApiGETTaxRuleIdVersionsRequest{ + ApiService: a, + ctx: ctx, + taxRuleId: taxRuleId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETTaxRuleIdVersionsExecute(r VersionsApiGETTaxRuleIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETTaxRuleIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/tax_rules/{taxRuleId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"taxRuleId"+"}", url.PathEscape(parameterValueToString(r.taxRuleId, "taxRuleId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETTaxjarAccountIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + taxjarAccountId interface{} +} + +func (r VersionsApiGETTaxjarAccountIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTaxjarAccountIdVersionsExecute(r) +} + +/* +GETTaxjarAccountIdVersions Retrieve the versions associated to the taxjar account + +Retrieve the versions associated to the taxjar account + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param taxjarAccountId The resource's id + @return VersionsApiGETTaxjarAccountIdVersionsRequest +*/ +func (a *VersionsApiService) GETTaxjarAccountIdVersions(ctx context.Context, taxjarAccountId interface{}) VersionsApiGETTaxjarAccountIdVersionsRequest { + return VersionsApiGETTaxjarAccountIdVersionsRequest{ + ApiService: a, + ctx: ctx, + taxjarAccountId: taxjarAccountId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETTaxjarAccountIdVersionsExecute(r VersionsApiGETTaxjarAccountIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETTaxjarAccountIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/taxjar_accounts/{taxjarAccountId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"taxjarAccountId"+"}", url.PathEscape(parameterValueToString(r.taxjarAccountId, "taxjarAccountId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETTransactionIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + transactionId interface{} +} + +func (r VersionsApiGETTransactionIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETTransactionIdVersionsExecute(r) +} + +/* +GETTransactionIdVersions Retrieve the versions associated to the transaction + +Retrieve the versions associated to the transaction + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param transactionId The resource's id + @return VersionsApiGETTransactionIdVersionsRequest +*/ +func (a *VersionsApiService) GETTransactionIdVersions(ctx context.Context, transactionId interface{}) VersionsApiGETTransactionIdVersionsRequest { + return VersionsApiGETTransactionIdVersionsRequest{ + ApiService: a, + ctx: ctx, + transactionId: transactionId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETTransactionIdVersionsExecute(r VersionsApiGETTransactionIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETTransactionIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/transactions/{transactionId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"transactionId"+"}", url.PathEscape(parameterValueToString(r.transactionId, "transactionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService +} + +func (r VersionsApiGETVersionsRequest) Execute() (*GETVersions200Response, *http.Response, error) { + return r.ApiService.GETVersionsExecute(r) +} + +/* +GETVersions List all versions + +List all versions + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return VersionsApiGETVersionsRequest +*/ +func (a *VersionsApiService) GETVersions(ctx context.Context) VersionsApiGETVersionsRequest { + return VersionsApiGETVersionsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return GETVersions200Response +func (a *VersionsApiService) GETVersionsExecute(r VersionsApiGETVersionsRequest) (*GETVersions200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETVersions200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETVersions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/versions" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type VersionsApiGETVersionsVersionIdRequest struct { + ctx context.Context + ApiService *VersionsApiService + versionId interface{} +} + +func (r VersionsApiGETVersionsVersionIdRequest) Execute() (*GETVersionsVersionId200Response, *http.Response, error) { + return r.ApiService.GETVersionsVersionIdExecute(r) +} + +/* +GETVersionsVersionId Retrieve a version + +Retrieve a version + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param versionId The resource's id + @return VersionsApiGETVersionsVersionIdRequest +*/ +func (a *VersionsApiService) GETVersionsVersionId(ctx context.Context, versionId interface{}) VersionsApiGETVersionsVersionIdRequest { + return VersionsApiGETVersionsVersionIdRequest{ + ApiService: a, + ctx: ctx, + versionId: versionId, + } +} + +// Execute executes the request +// +// @return GETVersionsVersionId200Response +func (a *VersionsApiService) GETVersionsVersionIdExecute(r VersionsApiGETVersionsVersionIdRequest) (*GETVersionsVersionId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GETVersionsVersionId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETVersionsVersionId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/versions/{versionId}" + localVarPath = strings.Replace(localVarPath, "{"+"versionId"+"}", url.PathEscape(parameterValueToString(r.versionId, "versionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type VersionsApiGETVoidIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + voidId interface{} +} + +func (r VersionsApiGETVoidIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETVoidIdVersionsExecute(r) +} + +/* +GETVoidIdVersions Retrieve the versions associated to the void + +Retrieve the versions associated to the void + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param voidId The resource's id + @return VersionsApiGETVoidIdVersionsRequest +*/ +func (a *VersionsApiService) GETVoidIdVersions(ctx context.Context, voidId interface{}) VersionsApiGETVoidIdVersionsRequest { + return VersionsApiGETVoidIdVersionsRequest{ + ApiService: a, + ctx: ctx, + voidId: voidId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETVoidIdVersionsExecute(r VersionsApiGETVoidIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETVoidIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/voids/{voidId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"voidId"+"}", url.PathEscape(parameterValueToString(r.voidId, "voidId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETWebhookIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + webhookId interface{} +} + +func (r VersionsApiGETWebhookIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETWebhookIdVersionsExecute(r) +} + +/* +GETWebhookIdVersions Retrieve the versions associated to the webhook + +Retrieve the versions associated to the webhook + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param webhookId The resource's id + @return VersionsApiGETWebhookIdVersionsRequest +*/ +func (a *VersionsApiService) GETWebhookIdVersions(ctx context.Context, webhookId interface{}) VersionsApiGETWebhookIdVersionsRequest { + return VersionsApiGETWebhookIdVersionsRequest{ + ApiService: a, + ctx: ctx, + webhookId: webhookId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETWebhookIdVersionsExecute(r VersionsApiGETWebhookIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETWebhookIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/webhooks/{webhookId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"webhookId"+"}", url.PathEscape(parameterValueToString(r.webhookId, "webhookId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type VersionsApiGETWireTransferIdVersionsRequest struct { + ctx context.Context + ApiService *VersionsApiService + wireTransferId interface{} +} + +func (r VersionsApiGETWireTransferIdVersionsRequest) Execute() (*http.Response, error) { + return r.ApiService.GETWireTransferIdVersionsExecute(r) +} + +/* +GETWireTransferIdVersions Retrieve the versions associated to the wire transfer + +Retrieve the versions associated to the wire transfer + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param wireTransferId The resource's id + @return VersionsApiGETWireTransferIdVersionsRequest +*/ +func (a *VersionsApiService) GETWireTransferIdVersions(ctx context.Context, wireTransferId interface{}) VersionsApiGETWireTransferIdVersionsRequest { + return VersionsApiGETWireTransferIdVersionsRequest{ + ApiService: a, + ctx: ctx, + wireTransferId: wireTransferId, + } +} + +// Execute executes the request +func (a *VersionsApiService) GETWireTransferIdVersionsExecute(r VersionsApiGETWireTransferIdVersionsRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VersionsApiService.GETWireTransferIdVersions") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/wire_transfers/{wireTransferId}/versions" + localVarPath = strings.Replace(localVarPath, "{"+"wireTransferId"+"}", url.PathEscape(parameterValueToString(r.wireTransferId, "wireTransferId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/api/api_voids.go b/api/api_voids.go index a2ed9f8a..ce279b9b 100644 --- a/api/api_voids.go +++ b/api/api_voids.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -410,3 +410,118 @@ func (a *VoidsApiService) GETVoidsVoidIdExecute(r VoidsApiGETVoidsVoidIdRequest) return localVarReturnValue, localVarHTTPResponse, nil } + +type VoidsApiPATCHVoidsVoidIdRequest struct { + ctx context.Context + ApiService *VoidsApiService + voidUpdate *VoidUpdate + voidId interface{} +} + +func (r VoidsApiPATCHVoidsVoidIdRequest) VoidUpdate(voidUpdate VoidUpdate) VoidsApiPATCHVoidsVoidIdRequest { + r.voidUpdate = &voidUpdate + return r +} + +func (r VoidsApiPATCHVoidsVoidIdRequest) Execute() (*PATCHVoidsVoidId200Response, *http.Response, error) { + return r.ApiService.PATCHVoidsVoidIdExecute(r) +} + +/* +PATCHVoidsVoidId Update a void + +Update a void + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param voidId The resource's id + @return VoidsApiPATCHVoidsVoidIdRequest +*/ +func (a *VoidsApiService) PATCHVoidsVoidId(ctx context.Context, voidId interface{}) VoidsApiPATCHVoidsVoidIdRequest { + return VoidsApiPATCHVoidsVoidIdRequest{ + ApiService: a, + ctx: ctx, + voidId: voidId, + } +} + +// Execute executes the request +// +// @return PATCHVoidsVoidId200Response +func (a *VoidsApiService) PATCHVoidsVoidIdExecute(r VoidsApiPATCHVoidsVoidIdRequest) (*PATCHVoidsVoidId200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PATCHVoidsVoidId200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VoidsApiService.PATCHVoidsVoidId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/voids/{voidId}" + localVarPath = strings.Replace(localVarPath, "{"+"voidId"+"}", url.PathEscape(parameterValueToString(r.voidId, "voidId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.voidUpdate == nil { + return localVarReturnValue, nil, reportError("voidUpdate is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/vnd.api+json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/vnd.api+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.voidUpdate + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api/api_webhooks.go b/api/api_webhooks.go index 85ff2e83..9af1ce83 100644 --- a/api/api_webhooks.go +++ b/api/api_webhooks.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/api_wire_transfers.go b/api/api_wire_transfers.go index f657ad94..18258a4e 100644 --- a/api/api_wire_transfers.go +++ b/api/api_wire_transfers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/client.go b/api/client.go index 3d074e06..25c7d4a3 100644 --- a/api/client.go +++ b/api/client.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -41,7 +41,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the Commerce Layer API API v4.1.3 +// APIClient manages communication with the Commerce Layer API API v7.3.1 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -79,6 +79,8 @@ type APIClient struct { BundlesApi *BundlesApiService + BuyXPayYPromotionsApi *BuyXPayYPromotionsApiService + CapturesApi *CapturesApiService CarrierAccountsApi *CarrierAccountsApiService @@ -95,6 +97,8 @@ type APIClient struct { CouponsApi *CouponsApiService + CustomPromotionRulesApi *CustomPromotionRulesApiService + CustomerAddressesApi *CustomerAddressesApiService CustomerGroupsApi *CustomerGroupsApiService @@ -127,6 +131,8 @@ type APIClient struct { FixedPricePromotionsApi *FixedPricePromotionsApiService + FlexPromotionsApi *FlexPromotionsApiService + FreeGiftPromotionsApi *FreeGiftPromotionsApiService FreeShippingPromotionsApi *FreeShippingPromotionsApiService @@ -161,6 +167,8 @@ type APIClient struct { LineItemsApi *LineItemsApiService + LinksApi *LinksApiService + ManualGatewaysApi *ManualGatewaysApiService ManualTaxCalculatorsApi *ManualTaxCalculatorsApiService @@ -179,8 +187,6 @@ type APIClient struct { OrderSubscriptionsApi *OrderSubscriptionsApiService - OrderValidationRulesApi *OrderValidationRulesApiService - OrdersApi *OrdersApiService OrganizationApi *OrganizationApiService @@ -195,6 +201,8 @@ type APIClient struct { PaymentMethodsApi *PaymentMethodsApiService + PaymentOptionsApi *PaymentOptionsApiService + PaypalGatewaysApi *PaypalGatewaysApiService PaypalPaymentsApi *PaypalPaymentsApiService @@ -203,6 +211,8 @@ type APIClient struct { PriceFrequencyTiersApi *PriceFrequencyTiersApiService + PriceListSchedulersApi *PriceListSchedulersApiService + PriceListsApi *PriceListsApiService PriceTiersApi *PriceTiersApiService @@ -219,6 +229,10 @@ type APIClient struct { RefundsApi *RefundsApiService + ReservedStocksApi *ReservedStocksApiService + + ResourceErrorsApi *ResourceErrorsApiService + ReturnLineItemsApi *ReturnLineItemsApiService ReturnsApi *ReturnsApiService @@ -257,6 +271,8 @@ type APIClient struct { StockLocationsApi *StockLocationsApiService + StockReservationsApi *StockReservationsApiService + StockTransfersApi *StockTransfersApiService StripeGatewaysApi *StripeGatewaysApiService @@ -265,6 +281,8 @@ type APIClient struct { SubscriptionModelsApi *SubscriptionModelsApiService + TagsApi *TagsApiService + TaxCalculatorsApi *TaxCalculatorsApiService TaxCategoriesApi *TaxCategoriesApiService @@ -275,6 +293,8 @@ type APIClient struct { TransactionsApi *TransactionsApiService + VersionsApi *VersionsApiService + VoidsApi *VoidsApiService WebhooksApi *WebhooksApiService @@ -313,6 +333,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.BraintreeGatewaysApi = (*BraintreeGatewaysApiService)(&c.common) c.BraintreePaymentsApi = (*BraintreePaymentsApiService)(&c.common) c.BundlesApi = (*BundlesApiService)(&c.common) + c.BuyXPayYPromotionsApi = (*BuyXPayYPromotionsApiService)(&c.common) c.CapturesApi = (*CapturesApiService)(&c.common) c.CarrierAccountsApi = (*CarrierAccountsApiService)(&c.common) c.CheckoutComGatewaysApi = (*CheckoutComGatewaysApiService)(&c.common) @@ -321,6 +342,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.CouponCodesPromotionRulesApi = (*CouponCodesPromotionRulesApiService)(&c.common) c.CouponRecipientsApi = (*CouponRecipientsApiService)(&c.common) c.CouponsApi = (*CouponsApiService)(&c.common) + c.CustomPromotionRulesApi = (*CustomPromotionRulesApiService)(&c.common) c.CustomerAddressesApi = (*CustomerAddressesApiService)(&c.common) c.CustomerGroupsApi = (*CustomerGroupsApiService)(&c.common) c.CustomerPasswordResetsApi = (*CustomerPasswordResetsApiService)(&c.common) @@ -337,6 +359,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.ExternalTaxCalculatorsApi = (*ExternalTaxCalculatorsApiService)(&c.common) c.FixedAmountPromotionsApi = (*FixedAmountPromotionsApiService)(&c.common) c.FixedPricePromotionsApi = (*FixedPricePromotionsApiService)(&c.common) + c.FlexPromotionsApi = (*FlexPromotionsApiService)(&c.common) c.FreeGiftPromotionsApi = (*FreeGiftPromotionsApiService)(&c.common) c.FreeShippingPromotionsApi = (*FreeShippingPromotionsApiService)(&c.common) c.GeocodersApi = (*GeocodersApiService)(&c.common) @@ -354,6 +377,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.KlarnaPaymentsApi = (*KlarnaPaymentsApiService)(&c.common) c.LineItemOptionsApi = (*LineItemOptionsApiService)(&c.common) c.LineItemsApi = (*LineItemsApiService)(&c.common) + c.LinksApi = (*LinksApiService)(&c.common) c.ManualGatewaysApi = (*ManualGatewaysApiService)(&c.common) c.ManualTaxCalculatorsApi = (*ManualTaxCalculatorsApiService)(&c.common) c.MarketsApi = (*MarketsApiService)(&c.common) @@ -363,7 +387,6 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.OrderFactoriesApi = (*OrderFactoriesApiService)(&c.common) c.OrderSubscriptionItemsApi = (*OrderSubscriptionItemsApiService)(&c.common) c.OrderSubscriptionsApi = (*OrderSubscriptionsApiService)(&c.common) - c.OrderValidationRulesApi = (*OrderValidationRulesApiService)(&c.common) c.OrdersApi = (*OrdersApiService)(&c.common) c.OrganizationApi = (*OrganizationApiService)(&c.common) c.PackagesApi = (*PackagesApiService)(&c.common) @@ -371,10 +394,12 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.ParcelsApi = (*ParcelsApiService)(&c.common) c.PaymentGatewaysApi = (*PaymentGatewaysApiService)(&c.common) c.PaymentMethodsApi = (*PaymentMethodsApiService)(&c.common) + c.PaymentOptionsApi = (*PaymentOptionsApiService)(&c.common) c.PaypalGatewaysApi = (*PaypalGatewaysApiService)(&c.common) c.PaypalPaymentsApi = (*PaypalPaymentsApiService)(&c.common) c.PercentageDiscountPromotionsApi = (*PercentageDiscountPromotionsApiService)(&c.common) c.PriceFrequencyTiersApi = (*PriceFrequencyTiersApiService)(&c.common) + c.PriceListSchedulersApi = (*PriceListSchedulersApiService)(&c.common) c.PriceListsApi = (*PriceListsApiService)(&c.common) c.PriceTiersApi = (*PriceTiersApiService)(&c.common) c.PriceVolumeTiersApi = (*PriceVolumeTiersApiService)(&c.common) @@ -383,6 +408,8 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.PromotionsApi = (*PromotionsApiService)(&c.common) c.RecurringOrderCopiesApi = (*RecurringOrderCopiesApiService)(&c.common) c.RefundsApi = (*RefundsApiService)(&c.common) + c.ReservedStocksApi = (*ReservedStocksApiService)(&c.common) + c.ResourceErrorsApi = (*ResourceErrorsApiService)(&c.common) c.ReturnLineItemsApi = (*ReturnLineItemsApiService)(&c.common) c.ReturnsApi = (*ReturnsApiService)(&c.common) c.SatispayGatewaysApi = (*SatispayGatewaysApiService)(&c.common) @@ -402,15 +429,18 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.StockItemsApi = (*StockItemsApiService)(&c.common) c.StockLineItemsApi = (*StockLineItemsApiService)(&c.common) c.StockLocationsApi = (*StockLocationsApiService)(&c.common) + c.StockReservationsApi = (*StockReservationsApiService)(&c.common) c.StockTransfersApi = (*StockTransfersApiService)(&c.common) c.StripeGatewaysApi = (*StripeGatewaysApiService)(&c.common) c.StripePaymentsApi = (*StripePaymentsApiService)(&c.common) c.SubscriptionModelsApi = (*SubscriptionModelsApiService)(&c.common) + c.TagsApi = (*TagsApiService)(&c.common) c.TaxCalculatorsApi = (*TaxCalculatorsApiService)(&c.common) c.TaxCategoriesApi = (*TaxCategoriesApiService)(&c.common) c.TaxRulesApi = (*TaxRulesApiService)(&c.common) c.TaxjarAccountsApi = (*TaxjarAccountsApiService)(&c.common) c.TransactionsApi = (*TransactionsApiService)(&c.common) + c.VersionsApi = (*VersionsApiService)(&c.common) c.VoidsApi = (*VoidsApiService)(&c.common) c.WebhooksApi = (*WebhooksApiService)(&c.common) c.WireTransfersApi = (*WireTransfersApiService)(&c.common) diff --git a/api/configuration.go b/api/configuration.go index 2c078260..ea7337b7 100644 --- a/api/configuration.go +++ b/api/configuration.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/docs/AddressCreateDataRelationships.md b/api/docs/AddressCreateDataRelationships.md index 4e708c1b..cdf1e058 100644 --- a/api/docs/AddressCreateDataRelationships.md +++ b/api/docs/AddressCreateDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Geocoder** | Pointer to [**AddressCreateDataRelationshipsGeocoder**](AddressCreateDataRelationshipsGeocoder.md) | | [optional] +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] ## Methods @@ -50,6 +51,31 @@ SetGeocoder sets Geocoder field to given value. HasGeocoder returns a boolean if a field has been set. +### GetTags + +`func (o *AddressCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *AddressCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *AddressCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *AddressCreateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/AddressCreateDataRelationshipsTags.md b/api/docs/AddressCreateDataRelationshipsTags.md new file mode 100644 index 00000000..8a2eaa22 --- /dev/null +++ b/api/docs/AddressCreateDataRelationshipsTags.md @@ -0,0 +1,51 @@ +# AddressCreateDataRelationshipsTags + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AddressDataRelationshipsTagsData**](AddressDataRelationshipsTagsData.md) | | + +## Methods + +### NewAddressCreateDataRelationshipsTags + +`func NewAddressCreateDataRelationshipsTags(data AddressDataRelationshipsTagsData, ) *AddressCreateDataRelationshipsTags` + +NewAddressCreateDataRelationshipsTags instantiates a new AddressCreateDataRelationshipsTags object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAddressCreateDataRelationshipsTagsWithDefaults + +`func NewAddressCreateDataRelationshipsTagsWithDefaults() *AddressCreateDataRelationshipsTags` + +NewAddressCreateDataRelationshipsTagsWithDefaults instantiates a new AddressCreateDataRelationshipsTags object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *AddressCreateDataRelationshipsTags) GetData() AddressDataRelationshipsTagsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AddressCreateDataRelationshipsTags) GetDataOk() (*AddressDataRelationshipsTagsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AddressCreateDataRelationshipsTags) SetData(v AddressDataRelationshipsTagsData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/AddressDataRelationships.md b/api/docs/AddressDataRelationships.md index 00b9d35c..dac4e7e1 100644 --- a/api/docs/AddressDataRelationships.md +++ b/api/docs/AddressDataRelationships.md @@ -5,6 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Geocoder** | Pointer to [**AddressDataRelationshipsGeocoder**](AddressDataRelationshipsGeocoder.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**AddressDataRelationshipsTags**](AddressDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -50,6 +53,81 @@ SetGeocoder sets Geocoder field to given value. HasGeocoder returns a boolean if a field has been set. +### GetEvents + +`func (o *AddressDataRelationships) GetEvents() AddressDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *AddressDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *AddressDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *AddressDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *AddressDataRelationships) GetTags() AddressDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *AddressDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *AddressDataRelationships) SetTags(v AddressDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *AddressDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *AddressDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *AddressDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *AddressDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *AddressDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/SkuDataRelationshipsStockItems.md b/api/docs/AddressDataRelationshipsEvents.md similarity index 53% rename from api/docs/SkuDataRelationshipsStockItems.md rename to api/docs/AddressDataRelationshipsEvents.md index 7ac80fc9..a3c519eb 100644 --- a/api/docs/SkuDataRelationshipsStockItems.md +++ b/api/docs/AddressDataRelationshipsEvents.md @@ -1,52 +1,52 @@ -# SkuDataRelationshipsStockItems +# AddressDataRelationshipsEvents ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | Pointer to [**SkuDataRelationshipsStockItemsData**](SkuDataRelationshipsStockItemsData.md) | | [optional] +**Data** | Pointer to [**AddressDataRelationshipsEventsData**](AddressDataRelationshipsEventsData.md) | | [optional] ## Methods -### NewSkuDataRelationshipsStockItems +### NewAddressDataRelationshipsEvents -`func NewSkuDataRelationshipsStockItems() *SkuDataRelationshipsStockItems` +`func NewAddressDataRelationshipsEvents() *AddressDataRelationshipsEvents` -NewSkuDataRelationshipsStockItems instantiates a new SkuDataRelationshipsStockItems object +NewAddressDataRelationshipsEvents instantiates a new AddressDataRelationshipsEvents object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewSkuDataRelationshipsStockItemsWithDefaults +### NewAddressDataRelationshipsEventsWithDefaults -`func NewSkuDataRelationshipsStockItemsWithDefaults() *SkuDataRelationshipsStockItems` +`func NewAddressDataRelationshipsEventsWithDefaults() *AddressDataRelationshipsEvents` -NewSkuDataRelationshipsStockItemsWithDefaults instantiates a new SkuDataRelationshipsStockItems object +NewAddressDataRelationshipsEventsWithDefaults instantiates a new AddressDataRelationshipsEvents object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetData -`func (o *SkuDataRelationshipsStockItems) GetData() SkuDataRelationshipsStockItemsData` +`func (o *AddressDataRelationshipsEvents) GetData() AddressDataRelationshipsEventsData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *SkuDataRelationshipsStockItems) GetDataOk() (*SkuDataRelationshipsStockItemsData, bool)` +`func (o *AddressDataRelationshipsEvents) GetDataOk() (*AddressDataRelationshipsEventsData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *SkuDataRelationshipsStockItems) SetData(v SkuDataRelationshipsStockItemsData)` +`func (o *AddressDataRelationshipsEvents) SetData(v AddressDataRelationshipsEventsData)` SetData sets Data field to given value. ### HasData -`func (o *SkuDataRelationshipsStockItems) HasData() bool` +`func (o *AddressDataRelationshipsEvents) HasData() bool` HasData returns a boolean if a field has been set. diff --git a/api/docs/AddressDataRelationshipsEventsData.md b/api/docs/AddressDataRelationshipsEventsData.md new file mode 100644 index 00000000..3fad1409 --- /dev/null +++ b/api/docs/AddressDataRelationshipsEventsData.md @@ -0,0 +1,102 @@ +# AddressDataRelationshipsEventsData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource's id | [optional] + +## Methods + +### NewAddressDataRelationshipsEventsData + +`func NewAddressDataRelationshipsEventsData() *AddressDataRelationshipsEventsData` + +NewAddressDataRelationshipsEventsData instantiates a new AddressDataRelationshipsEventsData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAddressDataRelationshipsEventsDataWithDefaults + +`func NewAddressDataRelationshipsEventsDataWithDefaults() *AddressDataRelationshipsEventsData` + +NewAddressDataRelationshipsEventsDataWithDefaults instantiates a new AddressDataRelationshipsEventsData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *AddressDataRelationshipsEventsData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AddressDataRelationshipsEventsData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AddressDataRelationshipsEventsData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *AddressDataRelationshipsEventsData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *AddressDataRelationshipsEventsData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *AddressDataRelationshipsEventsData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *AddressDataRelationshipsEventsData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AddressDataRelationshipsEventsData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AddressDataRelationshipsEventsData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *AddressDataRelationshipsEventsData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *AddressDataRelationshipsEventsData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *AddressDataRelationshipsEventsData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/OrderDataRelationshipsShipments.md b/api/docs/AddressDataRelationshipsTags.md similarity index 51% rename from api/docs/OrderDataRelationshipsShipments.md rename to api/docs/AddressDataRelationshipsTags.md index acbdb83c..4fb942ae 100644 --- a/api/docs/OrderDataRelationshipsShipments.md +++ b/api/docs/AddressDataRelationshipsTags.md @@ -1,52 +1,52 @@ -# OrderDataRelationshipsShipments +# AddressDataRelationshipsTags ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | Pointer to [**OrderDataRelationshipsShipmentsData**](OrderDataRelationshipsShipmentsData.md) | | [optional] +**Data** | Pointer to [**AddressDataRelationshipsTagsData**](AddressDataRelationshipsTagsData.md) | | [optional] ## Methods -### NewOrderDataRelationshipsShipments +### NewAddressDataRelationshipsTags -`func NewOrderDataRelationshipsShipments() *OrderDataRelationshipsShipments` +`func NewAddressDataRelationshipsTags() *AddressDataRelationshipsTags` -NewOrderDataRelationshipsShipments instantiates a new OrderDataRelationshipsShipments object +NewAddressDataRelationshipsTags instantiates a new AddressDataRelationshipsTags object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewOrderDataRelationshipsShipmentsWithDefaults +### NewAddressDataRelationshipsTagsWithDefaults -`func NewOrderDataRelationshipsShipmentsWithDefaults() *OrderDataRelationshipsShipments` +`func NewAddressDataRelationshipsTagsWithDefaults() *AddressDataRelationshipsTags` -NewOrderDataRelationshipsShipmentsWithDefaults instantiates a new OrderDataRelationshipsShipments object +NewAddressDataRelationshipsTagsWithDefaults instantiates a new AddressDataRelationshipsTags object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetData -`func (o *OrderDataRelationshipsShipments) GetData() OrderDataRelationshipsShipmentsData` +`func (o *AddressDataRelationshipsTags) GetData() AddressDataRelationshipsTagsData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *OrderDataRelationshipsShipments) GetDataOk() (*OrderDataRelationshipsShipmentsData, bool)` +`func (o *AddressDataRelationshipsTags) GetDataOk() (*AddressDataRelationshipsTagsData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *OrderDataRelationshipsShipments) SetData(v OrderDataRelationshipsShipmentsData)` +`func (o *AddressDataRelationshipsTags) SetData(v AddressDataRelationshipsTagsData)` SetData sets Data field to given value. ### HasData -`func (o *OrderDataRelationshipsShipments) HasData() bool` +`func (o *AddressDataRelationshipsTags) HasData() bool` HasData returns a boolean if a field has been set. diff --git a/api/docs/AddressDataRelationshipsTagsData.md b/api/docs/AddressDataRelationshipsTagsData.md new file mode 100644 index 00000000..e2d7c9d7 --- /dev/null +++ b/api/docs/AddressDataRelationshipsTagsData.md @@ -0,0 +1,102 @@ +# AddressDataRelationshipsTagsData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource's id | [optional] + +## Methods + +### NewAddressDataRelationshipsTagsData + +`func NewAddressDataRelationshipsTagsData() *AddressDataRelationshipsTagsData` + +NewAddressDataRelationshipsTagsData instantiates a new AddressDataRelationshipsTagsData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAddressDataRelationshipsTagsDataWithDefaults + +`func NewAddressDataRelationshipsTagsDataWithDefaults() *AddressDataRelationshipsTagsData` + +NewAddressDataRelationshipsTagsDataWithDefaults instantiates a new AddressDataRelationshipsTagsData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *AddressDataRelationshipsTagsData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AddressDataRelationshipsTagsData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *AddressDataRelationshipsTagsData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *AddressDataRelationshipsTagsData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *AddressDataRelationshipsTagsData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *AddressDataRelationshipsTagsData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *AddressDataRelationshipsTagsData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AddressDataRelationshipsTagsData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AddressDataRelationshipsTagsData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *AddressDataRelationshipsTagsData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *AddressDataRelationshipsTagsData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *AddressDataRelationshipsTagsData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/CustomerDataRelationshipsReturns.md b/api/docs/AddressDataRelationshipsVersions.md similarity index 51% rename from api/docs/CustomerDataRelationshipsReturns.md rename to api/docs/AddressDataRelationshipsVersions.md index 815bf53b..dce29d2d 100644 --- a/api/docs/CustomerDataRelationshipsReturns.md +++ b/api/docs/AddressDataRelationshipsVersions.md @@ -1,52 +1,52 @@ -# CustomerDataRelationshipsReturns +# AddressDataRelationshipsVersions ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | Pointer to [**CustomerDataRelationshipsReturnsData**](CustomerDataRelationshipsReturnsData.md) | | [optional] +**Data** | Pointer to [**AddressDataRelationshipsVersionsData**](AddressDataRelationshipsVersionsData.md) | | [optional] ## Methods -### NewCustomerDataRelationshipsReturns +### NewAddressDataRelationshipsVersions -`func NewCustomerDataRelationshipsReturns() *CustomerDataRelationshipsReturns` +`func NewAddressDataRelationshipsVersions() *AddressDataRelationshipsVersions` -NewCustomerDataRelationshipsReturns instantiates a new CustomerDataRelationshipsReturns object +NewAddressDataRelationshipsVersions instantiates a new AddressDataRelationshipsVersions object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewCustomerDataRelationshipsReturnsWithDefaults +### NewAddressDataRelationshipsVersionsWithDefaults -`func NewCustomerDataRelationshipsReturnsWithDefaults() *CustomerDataRelationshipsReturns` +`func NewAddressDataRelationshipsVersionsWithDefaults() *AddressDataRelationshipsVersions` -NewCustomerDataRelationshipsReturnsWithDefaults instantiates a new CustomerDataRelationshipsReturns object +NewAddressDataRelationshipsVersionsWithDefaults instantiates a new AddressDataRelationshipsVersions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetData -`func (o *CustomerDataRelationshipsReturns) GetData() CustomerDataRelationshipsReturnsData` +`func (o *AddressDataRelationshipsVersions) GetData() AddressDataRelationshipsVersionsData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *CustomerDataRelationshipsReturns) GetDataOk() (*CustomerDataRelationshipsReturnsData, bool)` +`func (o *AddressDataRelationshipsVersions) GetDataOk() (*AddressDataRelationshipsVersionsData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *CustomerDataRelationshipsReturns) SetData(v CustomerDataRelationshipsReturnsData)` +`func (o *AddressDataRelationshipsVersions) SetData(v AddressDataRelationshipsVersionsData)` SetData sets Data field to given value. ### HasData -`func (o *CustomerDataRelationshipsReturns) HasData() bool` +`func (o *AddressDataRelationshipsVersions) HasData() bool` HasData returns a boolean if a field has been set. diff --git a/api/docs/CustomerDataRelationshipsReturnsData.md b/api/docs/AddressDataRelationshipsVersionsData.md similarity index 59% rename from api/docs/CustomerDataRelationshipsReturnsData.md rename to api/docs/AddressDataRelationshipsVersionsData.md index a453753c..74ca93f8 100644 --- a/api/docs/CustomerDataRelationshipsReturnsData.md +++ b/api/docs/AddressDataRelationshipsVersionsData.md @@ -1,4 +1,4 @@ -# CustomerDataRelationshipsReturnsData +# AddressDataRelationshipsVersionsData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewCustomerDataRelationshipsReturnsData +### NewAddressDataRelationshipsVersionsData -`func NewCustomerDataRelationshipsReturnsData() *CustomerDataRelationshipsReturnsData` +`func NewAddressDataRelationshipsVersionsData() *AddressDataRelationshipsVersionsData` -NewCustomerDataRelationshipsReturnsData instantiates a new CustomerDataRelationshipsReturnsData object +NewAddressDataRelationshipsVersionsData instantiates a new AddressDataRelationshipsVersionsData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewCustomerDataRelationshipsReturnsDataWithDefaults +### NewAddressDataRelationshipsVersionsDataWithDefaults -`func NewCustomerDataRelationshipsReturnsDataWithDefaults() *CustomerDataRelationshipsReturnsData` +`func NewAddressDataRelationshipsVersionsDataWithDefaults() *AddressDataRelationshipsVersionsData` -NewCustomerDataRelationshipsReturnsDataWithDefaults instantiates a new CustomerDataRelationshipsReturnsData object +NewAddressDataRelationshipsVersionsDataWithDefaults instantiates a new AddressDataRelationshipsVersionsData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *CustomerDataRelationshipsReturnsData) GetType() interface{}` +`func (o *AddressDataRelationshipsVersionsData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *CustomerDataRelationshipsReturnsData) GetTypeOk() (*interface{}, bool)` +`func (o *AddressDataRelationshipsVersionsData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *CustomerDataRelationshipsReturnsData) SetType(v interface{})` +`func (o *AddressDataRelationshipsVersionsData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *CustomerDataRelationshipsReturnsData) HasType() bool` +`func (o *AddressDataRelationshipsVersionsData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *CustomerDataRelationshipsReturnsData) SetTypeNil(b bool)` +`func (o *AddressDataRelationshipsVersionsData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *CustomerDataRelationshipsReturnsData) UnsetType()` +`func (o *AddressDataRelationshipsVersionsData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *CustomerDataRelationshipsReturnsData) GetId() interface{}` +`func (o *AddressDataRelationshipsVersionsData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *CustomerDataRelationshipsReturnsData) GetIdOk() (*interface{}, bool)` +`func (o *AddressDataRelationshipsVersionsData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *CustomerDataRelationshipsReturnsData) SetId(v interface{})` +`func (o *AddressDataRelationshipsVersionsData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *CustomerDataRelationshipsReturnsData) HasId() bool` +`func (o *AddressDataRelationshipsVersionsData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *CustomerDataRelationshipsReturnsData) SetIdNil(b bool)` +`func (o *AddressDataRelationshipsVersionsData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *CustomerDataRelationshipsReturnsData) UnsetId()` +`func (o *AddressDataRelationshipsVersionsData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/AdjustmentData.md b/api/docs/AdjustmentData.md index 39a74070..d3b8d51e 100644 --- a/api/docs/AdjustmentData.md +++ b/api/docs/AdjustmentData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**GETAdjustmentsAdjustmentId200ResponseDataAttributes**](GETAdjustmentsAdjustmentId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to **interface{}** | | [optional] +**Relationships** | Pointer to [**AdjustmentDataRelationships**](AdjustmentDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *AdjustmentData) GetRelationships() interface{}` +`func (o *AdjustmentData) GetRelationships() AdjustmentDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *AdjustmentData) GetRelationshipsOk() (*interface{}, bool)` +`func (o *AdjustmentData) GetRelationshipsOk() (*AdjustmentDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *AdjustmentData) SetRelationships(v interface{})` +`func (o *AdjustmentData) SetRelationships(v AdjustmentDataRelationships)` SetRelationships sets Relationships field to given value. @@ -102,16 +102,6 @@ SetRelationships sets Relationships field to given value. HasRelationships returns a boolean if a field has been set. -### SetRelationshipsNil - -`func (o *AdjustmentData) SetRelationshipsNil(b bool)` - - SetRelationshipsNil sets the value for Relationships to be an explicit nil - -### UnsetRelationships -`func (o *AdjustmentData) UnsetRelationships()` - -UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/AdjustmentDataRelationships.md b/api/docs/AdjustmentDataRelationships.md new file mode 100644 index 00000000..8cdd6269 --- /dev/null +++ b/api/docs/AdjustmentDataRelationships.md @@ -0,0 +1,56 @@ +# AdjustmentDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewAdjustmentDataRelationships + +`func NewAdjustmentDataRelationships() *AdjustmentDataRelationships` + +NewAdjustmentDataRelationships instantiates a new AdjustmentDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAdjustmentDataRelationshipsWithDefaults + +`func NewAdjustmentDataRelationshipsWithDefaults() *AdjustmentDataRelationships` + +NewAdjustmentDataRelationshipsWithDefaults instantiates a new AdjustmentDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetVersions + +`func (o *AdjustmentDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *AdjustmentDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *AdjustmentDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *AdjustmentDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/AdyenGatewayDataRelationships.md b/api/docs/AdyenGatewayDataRelationships.md index aade6b09..889519a0 100644 --- a/api/docs/AdyenGatewayDataRelationships.md +++ b/api/docs/AdyenGatewayDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**AdyenGatewayDataRelationshipsPaymentMethods**](AdyenGatewayDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] **AdyenPayments** | Pointer to [**AdyenGatewayDataRelationshipsAdyenPayments**](AdyenGatewayDataRelationshipsAdyenPayments.md) | | [optional] ## Methods @@ -51,6 +52,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *AdyenGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *AdyenGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *AdyenGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *AdyenGatewayDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetAdyenPayments `func (o *AdyenGatewayDataRelationships) GetAdyenPayments() AdyenGatewayDataRelationshipsAdyenPayments` diff --git a/api/docs/AdyenPaymentDataRelationships.md b/api/docs/AdyenPaymentDataRelationships.md index c1850041..e924d5d5 100644 --- a/api/docs/AdyenPaymentDataRelationships.md +++ b/api/docs/AdyenPaymentDataRelationships.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Order** | Pointer to [**AdyenPaymentDataRelationshipsOrder**](AdyenPaymentDataRelationshipsOrder.md) | | [optional] **PaymentGateway** | Pointer to [**AdyenPaymentDataRelationshipsPaymentGateway**](AdyenPaymentDataRelationshipsPaymentGateway.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -76,6 +77,31 @@ SetPaymentGateway sets PaymentGateway field to given value. HasPaymentGateway returns a boolean if a field has been set. +### GetVersions + +`func (o *AdyenPaymentDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *AdyenPaymentDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *AdyenPaymentDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *AdyenPaymentDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/AttachmentsApi.md b/api/docs/AttachmentsApi.md index a85937d6..b0f16a85 100644 --- a/api/docs/AttachmentsApi.md +++ b/api/docs/AttachmentsApi.md @@ -7,10 +7,13 @@ Method | HTTP request | Description [**DELETEAttachmentsAttachmentId**](AttachmentsApi.md#DELETEAttachmentsAttachmentId) | **Delete** /attachments/{attachmentId} | Delete an attachment [**GETAttachments**](AttachmentsApi.md#GETAttachments) | **Get** /attachments | List all attachments [**GETAttachmentsAttachmentId**](AttachmentsApi.md#GETAttachmentsAttachmentId) | **Get** /attachments/{attachmentId} | Retrieve an attachment +[**GETAuthorizationIdAttachments**](AttachmentsApi.md#GETAuthorizationIdAttachments) | **Get** /authorizations/{authorizationId}/attachments | Retrieve the attachments associated to the authorization [**GETAvalaraAccountIdAttachments**](AttachmentsApi.md#GETAvalaraAccountIdAttachments) | **Get** /avalara_accounts/{avalaraAccountId}/attachments | Retrieve the attachments associated to the avalara account [**GETBillingInfoValidationRuleIdAttachments**](AttachmentsApi.md#GETBillingInfoValidationRuleIdAttachments) | **Get** /billing_info_validation_rules/{billingInfoValidationRuleId}/attachments | Retrieve the attachments associated to the billing info validation rule [**GETBingGeocoderIdAttachments**](AttachmentsApi.md#GETBingGeocoderIdAttachments) | **Get** /bing_geocoders/{bingGeocoderId}/attachments | Retrieve the attachments associated to the bing geocoder [**GETBundleIdAttachments**](AttachmentsApi.md#GETBundleIdAttachments) | **Get** /bundles/{bundleId}/attachments | Retrieve the attachments associated to the bundle +[**GETBuyXPayYPromotionIdAttachments**](AttachmentsApi.md#GETBuyXPayYPromotionIdAttachments) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/attachments | Retrieve the attachments associated to the buy x pay y promotion +[**GETCaptureIdAttachments**](AttachmentsApi.md#GETCaptureIdAttachments) | **Get** /captures/{captureId}/attachments | Retrieve the attachments associated to the capture [**GETCarrierAccountIdAttachments**](AttachmentsApi.md#GETCarrierAccountIdAttachments) | **Get** /carrier_accounts/{carrierAccountId}/attachments | Retrieve the attachments associated to the carrier account [**GETCouponRecipientIdAttachments**](AttachmentsApi.md#GETCouponRecipientIdAttachments) | **Get** /coupon_recipients/{couponRecipientId}/attachments | Retrieve the attachments associated to the coupon recipient [**GETCustomerGroupIdAttachments**](AttachmentsApi.md#GETCustomerGroupIdAttachments) | **Get** /customer_groups/{customerGroupId}/attachments | Retrieve the attachments associated to the customer group @@ -20,6 +23,7 @@ Method | HTTP request | Description [**GETExternalTaxCalculatorIdAttachments**](AttachmentsApi.md#GETExternalTaxCalculatorIdAttachments) | **Get** /external_tax_calculators/{externalTaxCalculatorId}/attachments | Retrieve the attachments associated to the external tax calculator [**GETFixedAmountPromotionIdAttachments**](AttachmentsApi.md#GETFixedAmountPromotionIdAttachments) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/attachments | Retrieve the attachments associated to the fixed amount promotion [**GETFixedPricePromotionIdAttachments**](AttachmentsApi.md#GETFixedPricePromotionIdAttachments) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/attachments | Retrieve the attachments associated to the fixed price promotion +[**GETFlexPromotionIdAttachments**](AttachmentsApi.md#GETFlexPromotionIdAttachments) | **Get** /flex_promotions/{flexPromotionId}/attachments | Retrieve the attachments associated to the flex promotion [**GETFreeGiftPromotionIdAttachments**](AttachmentsApi.md#GETFreeGiftPromotionIdAttachments) | **Get** /free_gift_promotions/{freeGiftPromotionId}/attachments | Retrieve the attachments associated to the free gift promotion [**GETFreeShippingPromotionIdAttachments**](AttachmentsApi.md#GETFreeShippingPromotionIdAttachments) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/attachments | Retrieve the attachments associated to the free shipping promotion [**GETGeocoderIdAttachments**](AttachmentsApi.md#GETGeocoderIdAttachments) | **Get** /geocoders/{geocoderId}/attachments | Retrieve the attachments associated to the geocoder @@ -31,10 +35,10 @@ Method | HTTP request | Description [**GETMarketIdAttachments**](AttachmentsApi.md#GETMarketIdAttachments) | **Get** /markets/{marketId}/attachments | Retrieve the attachments associated to the market [**GETMerchantIdAttachments**](AttachmentsApi.md#GETMerchantIdAttachments) | **Get** /merchants/{merchantId}/attachments | Retrieve the attachments associated to the merchant [**GETOrderIdAttachments**](AttachmentsApi.md#GETOrderIdAttachments) | **Get** /orders/{orderId}/attachments | Retrieve the attachments associated to the order -[**GETOrderValidationRuleIdAttachments**](AttachmentsApi.md#GETOrderValidationRuleIdAttachments) | **Get** /order_validation_rules/{orderValidationRuleId}/attachments | Retrieve the attachments associated to the order validation rule [**GETPackageIdAttachments**](AttachmentsApi.md#GETPackageIdAttachments) | **Get** /packages/{packageId}/attachments | Retrieve the attachments associated to the package [**GETParcelIdAttachments**](AttachmentsApi.md#GETParcelIdAttachments) | **Get** /parcels/{parcelId}/attachments | Retrieve the attachments associated to the parcel [**GETPaymentMethodIdAttachments**](AttachmentsApi.md#GETPaymentMethodIdAttachments) | **Get** /payment_methods/{paymentMethodId}/attachments | Retrieve the attachments associated to the payment method +[**GETPaymentOptionIdAttachments**](AttachmentsApi.md#GETPaymentOptionIdAttachments) | **Get** /payment_options/{paymentOptionId}/attachments | Retrieve the attachments associated to the payment option [**GETPercentageDiscountPromotionIdAttachments**](AttachmentsApi.md#GETPercentageDiscountPromotionIdAttachments) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/attachments | Retrieve the attachments associated to the percentage discount promotion [**GETPriceFrequencyTierIdAttachments**](AttachmentsApi.md#GETPriceFrequencyTierIdAttachments) | **Get** /price_frequency_tiers/{priceFrequencyTierId}/attachments | Retrieve the attachments associated to the price frequency tier [**GETPriceIdAttachments**](AttachmentsApi.md#GETPriceIdAttachments) | **Get** /prices/{priceId}/attachments | Retrieve the attachments associated to the price @@ -42,6 +46,7 @@ Method | HTTP request | Description [**GETPriceTierIdAttachments**](AttachmentsApi.md#GETPriceTierIdAttachments) | **Get** /price_tiers/{priceTierId}/attachments | Retrieve the attachments associated to the price tier [**GETPriceVolumeTierIdAttachments**](AttachmentsApi.md#GETPriceVolumeTierIdAttachments) | **Get** /price_volume_tiers/{priceVolumeTierId}/attachments | Retrieve the attachments associated to the price volume tier [**GETPromotionIdAttachments**](AttachmentsApi.md#GETPromotionIdAttachments) | **Get** /promotions/{promotionId}/attachments | Retrieve the attachments associated to the promotion +[**GETRefundIdAttachments**](AttachmentsApi.md#GETRefundIdAttachments) | **Get** /refunds/{refundId}/attachments | Retrieve the attachments associated to the refund [**GETReturnIdAttachments**](AttachmentsApi.md#GETReturnIdAttachments) | **Get** /returns/{returnId}/attachments | Retrieve the attachments associated to the return [**GETShipmentIdAttachments**](AttachmentsApi.md#GETShipmentIdAttachments) | **Get** /shipments/{shipmentId}/attachments | Retrieve the attachments associated to the shipment [**GETShippingCategoryIdAttachments**](AttachmentsApi.md#GETShippingCategoryIdAttachments) | **Get** /shipping_categories/{shippingCategoryId}/attachments | Retrieve the attachments associated to the shipping category @@ -54,10 +59,13 @@ Method | HTTP request | Description [**GETSkuOptionIdAttachments**](AttachmentsApi.md#GETSkuOptionIdAttachments) | **Get** /sku_options/{skuOptionId}/attachments | Retrieve the attachments associated to the SKU option [**GETStockItemIdAttachments**](AttachmentsApi.md#GETStockItemIdAttachments) | **Get** /stock_items/{stockItemId}/attachments | Retrieve the attachments associated to the stock item [**GETStockLocationIdAttachments**](AttachmentsApi.md#GETStockLocationIdAttachments) | **Get** /stock_locations/{stockLocationId}/attachments | Retrieve the attachments associated to the stock location +[**GETStockTransferIdAttachments**](AttachmentsApi.md#GETStockTransferIdAttachments) | **Get** /stock_transfers/{stockTransferId}/attachments | Retrieve the attachments associated to the stock transfer [**GETSubscriptionModelIdAttachments**](AttachmentsApi.md#GETSubscriptionModelIdAttachments) | **Get** /subscription_models/{subscriptionModelId}/attachments | Retrieve the attachments associated to the subscription model [**GETTaxCalculatorIdAttachments**](AttachmentsApi.md#GETTaxCalculatorIdAttachments) | **Get** /tax_calculators/{taxCalculatorId}/attachments | Retrieve the attachments associated to the tax calculator [**GETTaxCategoryIdAttachments**](AttachmentsApi.md#GETTaxCategoryIdAttachments) | **Get** /tax_categories/{taxCategoryId}/attachments | Retrieve the attachments associated to the tax category [**GETTaxjarAccountIdAttachments**](AttachmentsApi.md#GETTaxjarAccountIdAttachments) | **Get** /taxjar_accounts/{taxjarAccountId}/attachments | Retrieve the attachments associated to the taxjar account +[**GETTransactionIdAttachments**](AttachmentsApi.md#GETTransactionIdAttachments) | **Get** /transactions/{transactionId}/attachments | Retrieve the attachments associated to the transaction +[**GETVoidIdAttachments**](AttachmentsApi.md#GETVoidIdAttachments) | **Get** /voids/{voidId}/attachments | Retrieve the attachments associated to the void [**PATCHAttachmentsAttachmentId**](AttachmentsApi.md#PATCHAttachmentsAttachmentId) | **Patch** /attachments/{attachmentId} | Update an attachment [**POSTAttachments**](AttachmentsApi.md#POSTAttachments) | **Post** /attachments | Create an attachment @@ -262,6 +270,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETAuthorizationIdAttachments + +> GETAuthorizationIdAttachments(ctx, authorizationId).Execute() + +Retrieve the attachments associated to the authorization + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + authorizationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AttachmentsApi.GETAuthorizationIdAttachments(context.Background(), authorizationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AttachmentsApi.GETAuthorizationIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**authorizationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETAuthorizationIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETAvalaraAccountIdAttachments > GETAvalaraAccountIdAttachments(ctx, avalaraAccountId).Execute() @@ -534,6 +610,142 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETBuyXPayYPromotionIdAttachments + +> GETBuyXPayYPromotionIdAttachments(ctx, buyXPayYPromotionId).Execute() + +Retrieve the attachments associated to the buy x pay y promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + buyXPayYPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AttachmentsApi.GETBuyXPayYPromotionIdAttachments(context.Background(), buyXPayYPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AttachmentsApi.GETBuyXPayYPromotionIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCaptureIdAttachments + +> GETCaptureIdAttachments(ctx, captureId).Execute() + +Retrieve the attachments associated to the capture + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + captureId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AttachmentsApi.GETCaptureIdAttachments(context.Background(), captureId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AttachmentsApi.GETCaptureIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**captureId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCaptureIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETCarrierAccountIdAttachments > GETCarrierAccountIdAttachments(ctx, carrierAccountId).Execute() @@ -1146,6 +1358,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETFlexPromotionIdAttachments + +> GETFlexPromotionIdAttachments(ctx, flexPromotionId).Execute() + +Retrieve the attachments associated to the flex promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + flexPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AttachmentsApi.GETFlexPromotionIdAttachments(context.Background(), flexPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AttachmentsApi.GETFlexPromotionIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flexPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFlexPromotionIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETFreeGiftPromotionIdAttachments > GETFreeGiftPromotionIdAttachments(ctx, freeGiftPromotionId).Execute() @@ -1894,11 +2174,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderValidationRuleIdAttachments +## GETPackageIdAttachments -> GETOrderValidationRuleIdAttachments(ctx, orderValidationRuleId).Execute() +> GETPackageIdAttachments(ctx, packageId).Execute() -Retrieve the attachments associated to the order validation rule +Retrieve the attachments associated to the package @@ -1915,13 +2195,13 @@ import ( ) func main() { - orderValidationRuleId := TODO // interface{} | The resource's id + packageId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.AttachmentsApi.GETOrderValidationRuleIdAttachments(context.Background(), orderValidationRuleId).Execute() + r, err := apiClient.AttachmentsApi.GETPackageIdAttachments(context.Background(), packageId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AttachmentsApi.GETOrderValidationRuleIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AttachmentsApi.GETPackageIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1933,11 +2213,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderValidationRuleId** | [**interface{}**](.md) | The resource's id | +**packageId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderValidationRuleIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPackageIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1962,11 +2242,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPackageIdAttachments +## GETParcelIdAttachments -> GETPackageIdAttachments(ctx, packageId).Execute() +> GETParcelIdAttachments(ctx, parcelId).Execute() -Retrieve the attachments associated to the package +Retrieve the attachments associated to the parcel @@ -1983,13 +2263,13 @@ import ( ) func main() { - packageId := TODO // interface{} | The resource's id + parcelId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.AttachmentsApi.GETPackageIdAttachments(context.Background(), packageId).Execute() + r, err := apiClient.AttachmentsApi.GETParcelIdAttachments(context.Background(), parcelId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AttachmentsApi.GETPackageIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AttachmentsApi.GETParcelIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2001,11 +2281,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**packageId** | [**interface{}**](.md) | The resource's id | +**parcelId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPackageIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETParcelIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2030,11 +2310,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETParcelIdAttachments +## GETPaymentMethodIdAttachments -> GETParcelIdAttachments(ctx, parcelId).Execute() +> GETPaymentMethodIdAttachments(ctx, paymentMethodId).Execute() -Retrieve the attachments associated to the parcel +Retrieve the attachments associated to the payment method @@ -2051,13 +2331,13 @@ import ( ) func main() { - parcelId := TODO // interface{} | The resource's id + paymentMethodId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.AttachmentsApi.GETParcelIdAttachments(context.Background(), parcelId).Execute() + r, err := apiClient.AttachmentsApi.GETPaymentMethodIdAttachments(context.Background(), paymentMethodId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AttachmentsApi.GETParcelIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AttachmentsApi.GETPaymentMethodIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2069,11 +2349,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**parcelId** | [**interface{}**](.md) | The resource's id | +**paymentMethodId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETParcelIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPaymentMethodIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2098,11 +2378,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPaymentMethodIdAttachments +## GETPaymentOptionIdAttachments -> GETPaymentMethodIdAttachments(ctx, paymentMethodId).Execute() +> GETPaymentOptionIdAttachments(ctx, paymentOptionId).Execute() -Retrieve the attachments associated to the payment method +Retrieve the attachments associated to the payment option @@ -2119,13 +2399,13 @@ import ( ) func main() { - paymentMethodId := TODO // interface{} | The resource's id + paymentOptionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.AttachmentsApi.GETPaymentMethodIdAttachments(context.Background(), paymentMethodId).Execute() + r, err := apiClient.AttachmentsApi.GETPaymentOptionIdAttachments(context.Background(), paymentOptionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AttachmentsApi.GETPaymentMethodIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `AttachmentsApi.GETPaymentOptionIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2137,11 +2417,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**paymentMethodId** | [**interface{}**](.md) | The resource's id | +**paymentOptionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPaymentMethodIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPaymentOptionIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2642,6 +2922,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETRefundIdAttachments + +> GETRefundIdAttachments(ctx, refundId).Execute() + +Retrieve the attachments associated to the refund + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + refundId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AttachmentsApi.GETRefundIdAttachments(context.Background(), refundId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AttachmentsApi.GETRefundIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**refundId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETRefundIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETReturnIdAttachments > GETReturnIdAttachments(ctx, returnId).Execute() @@ -3458,6 +3806,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETStockTransferIdAttachments + +> GETStockTransferIdAttachments(ctx, stockTransferId).Execute() + +Retrieve the attachments associated to the stock transfer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockTransferId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AttachmentsApi.GETStockTransferIdAttachments(context.Background(), stockTransferId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AttachmentsApi.GETStockTransferIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockTransferId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStockTransferIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETSubscriptionModelIdAttachments > GETSubscriptionModelIdAttachments(ctx, subscriptionModelId).Execute() @@ -3730,6 +4146,142 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETTransactionIdAttachments + +> GETTransactionIdAttachments(ctx, transactionId).Execute() + +Retrieve the attachments associated to the transaction + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + transactionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AttachmentsApi.GETTransactionIdAttachments(context.Background(), transactionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AttachmentsApi.GETTransactionIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**transactionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETTransactionIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETVoidIdAttachments + +> GETVoidIdAttachments(ctx, voidId).Execute() + +Retrieve the attachments associated to the void + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + voidId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AttachmentsApi.GETVoidIdAttachments(context.Background(), voidId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AttachmentsApi.GETVoidIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**voidId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETVoidIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## PATCHAttachmentsAttachmentId > PATCHAttachmentsAttachmentId200Response PATCHAttachmentsAttachmentId(ctx, attachmentId).AttachmentUpdate(attachmentUpdate).Execute() diff --git a/api/docs/AuthorizationDataRelationships.md b/api/docs/AuthorizationDataRelationships.md index ad581f90..1c0ddbe4 100644 --- a/api/docs/AuthorizationDataRelationships.md +++ b/api/docs/AuthorizationDataRelationships.md @@ -5,9 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Order** | Pointer to [**AdyenPaymentDataRelationshipsOrder**](AdyenPaymentDataRelationshipsOrder.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] **Captures** | Pointer to [**AuthorizationDataRelationshipsCaptures**](AuthorizationDataRelationshipsCaptures.md) | | [optional] **Voids** | Pointer to [**AuthorizationDataRelationshipsVoids**](AuthorizationDataRelationshipsVoids.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] ## Methods @@ -53,6 +55,81 @@ SetOrder sets Order field to given value. HasOrder returns a boolean if a field has been set. +### GetAttachments + +`func (o *AuthorizationDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *AuthorizationDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *AuthorizationDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *AuthorizationDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + +### GetEvents + +`func (o *AuthorizationDataRelationships) GetEvents() AddressDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *AuthorizationDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *AuthorizationDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *AuthorizationDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetVersions + +`func (o *AuthorizationDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *AuthorizationDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *AuthorizationDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *AuthorizationDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetCaptures `func (o *AuthorizationDataRelationships) GetCaptures() AuthorizationDataRelationshipsCaptures` @@ -103,31 +180,6 @@ SetVoids sets Voids field to given value. HasVoids returns a boolean if a field has been set. -### GetEvents - -`func (o *AuthorizationDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` - -GetEvents returns the Events field if non-nil, zero value otherwise. - -### GetEventsOk - -`func (o *AuthorizationDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` - -GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEvents - -`func (o *AuthorizationDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` - -SetEvents sets Events field to given value. - -### HasEvents - -`func (o *AuthorizationDataRelationships) HasEvents() bool` - -HasEvents returns a boolean if a field has been set. - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/AuthorizationDataRelationshipsAttachments.md b/api/docs/AuthorizationDataRelationshipsAttachments.md new file mode 100644 index 00000000..ba1ecdd8 --- /dev/null +++ b/api/docs/AuthorizationDataRelationshipsAttachments.md @@ -0,0 +1,56 @@ +# AuthorizationDataRelationshipsAttachments + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**AuthorizationDataRelationshipsAttachmentsData**](AuthorizationDataRelationshipsAttachmentsData.md) | | [optional] + +## Methods + +### NewAuthorizationDataRelationshipsAttachments + +`func NewAuthorizationDataRelationshipsAttachments() *AuthorizationDataRelationshipsAttachments` + +NewAuthorizationDataRelationshipsAttachments instantiates a new AuthorizationDataRelationshipsAttachments object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAuthorizationDataRelationshipsAttachmentsWithDefaults + +`func NewAuthorizationDataRelationshipsAttachmentsWithDefaults() *AuthorizationDataRelationshipsAttachments` + +NewAuthorizationDataRelationshipsAttachmentsWithDefaults instantiates a new AuthorizationDataRelationshipsAttachments object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *AuthorizationDataRelationshipsAttachments) GetData() AuthorizationDataRelationshipsAttachmentsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *AuthorizationDataRelationshipsAttachments) GetDataOk() (*AuthorizationDataRelationshipsAttachmentsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *AuthorizationDataRelationshipsAttachments) SetData(v AuthorizationDataRelationshipsAttachmentsData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *AuthorizationDataRelationshipsAttachments) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/TaxCategoryDataRelationshipsTaxCalculatorData.md b/api/docs/AuthorizationDataRelationshipsAttachmentsData.md similarity index 58% rename from api/docs/TaxCategoryDataRelationshipsTaxCalculatorData.md rename to api/docs/AuthorizationDataRelationshipsAttachmentsData.md index 474bb734..a634c4c8 100644 --- a/api/docs/TaxCategoryDataRelationshipsTaxCalculatorData.md +++ b/api/docs/AuthorizationDataRelationshipsAttachmentsData.md @@ -1,4 +1,4 @@ -# TaxCategoryDataRelationshipsTaxCalculatorData +# AuthorizationDataRelationshipsAttachmentsData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewTaxCategoryDataRelationshipsTaxCalculatorData +### NewAuthorizationDataRelationshipsAttachmentsData -`func NewTaxCategoryDataRelationshipsTaxCalculatorData() *TaxCategoryDataRelationshipsTaxCalculatorData` +`func NewAuthorizationDataRelationshipsAttachmentsData() *AuthorizationDataRelationshipsAttachmentsData` -NewTaxCategoryDataRelationshipsTaxCalculatorData instantiates a new TaxCategoryDataRelationshipsTaxCalculatorData object +NewAuthorizationDataRelationshipsAttachmentsData instantiates a new AuthorizationDataRelationshipsAttachmentsData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewTaxCategoryDataRelationshipsTaxCalculatorDataWithDefaults +### NewAuthorizationDataRelationshipsAttachmentsDataWithDefaults -`func NewTaxCategoryDataRelationshipsTaxCalculatorDataWithDefaults() *TaxCategoryDataRelationshipsTaxCalculatorData` +`func NewAuthorizationDataRelationshipsAttachmentsDataWithDefaults() *AuthorizationDataRelationshipsAttachmentsData` -NewTaxCategoryDataRelationshipsTaxCalculatorDataWithDefaults instantiates a new TaxCategoryDataRelationshipsTaxCalculatorData object +NewAuthorizationDataRelationshipsAttachmentsDataWithDefaults instantiates a new AuthorizationDataRelationshipsAttachmentsData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *TaxCategoryDataRelationshipsTaxCalculatorData) GetType() interface{}` +`func (o *AuthorizationDataRelationshipsAttachmentsData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *TaxCategoryDataRelationshipsTaxCalculatorData) GetTypeOk() (*interface{}, bool)` +`func (o *AuthorizationDataRelationshipsAttachmentsData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *TaxCategoryDataRelationshipsTaxCalculatorData) SetType(v interface{})` +`func (o *AuthorizationDataRelationshipsAttachmentsData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *TaxCategoryDataRelationshipsTaxCalculatorData) HasType() bool` +`func (o *AuthorizationDataRelationshipsAttachmentsData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *TaxCategoryDataRelationshipsTaxCalculatorData) SetTypeNil(b bool)` +`func (o *AuthorizationDataRelationshipsAttachmentsData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *TaxCategoryDataRelationshipsTaxCalculatorData) UnsetType()` +`func (o *AuthorizationDataRelationshipsAttachmentsData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *TaxCategoryDataRelationshipsTaxCalculatorData) GetId() interface{}` +`func (o *AuthorizationDataRelationshipsAttachmentsData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *TaxCategoryDataRelationshipsTaxCalculatorData) GetIdOk() (*interface{}, bool)` +`func (o *AuthorizationDataRelationshipsAttachmentsData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *TaxCategoryDataRelationshipsTaxCalculatorData) SetId(v interface{})` +`func (o *AuthorizationDataRelationshipsAttachmentsData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *TaxCategoryDataRelationshipsTaxCalculatorData) HasId() bool` +`func (o *AuthorizationDataRelationshipsAttachmentsData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *TaxCategoryDataRelationshipsTaxCalculatorData) SetIdNil(b bool)` +`func (o *AuthorizationDataRelationshipsAttachmentsData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *TaxCategoryDataRelationshipsTaxCalculatorData) UnsetId()` +`func (o *AuthorizationDataRelationshipsAttachmentsData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/AvalaraAccountDataRelationships.md b/api/docs/AvalaraAccountDataRelationships.md index 0c6d96e7..29f40f55 100644 --- a/api/docs/AvalaraAccountDataRelationships.md +++ b/api/docs/AvalaraAccountDataRelationships.md @@ -5,8 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Markets** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] **TaxCategories** | Pointer to [**AvalaraAccountDataRelationshipsTaxCategories**](AvalaraAccountDataRelationshipsTaxCategories.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] ## Methods @@ -54,20 +56,20 @@ HasMarkets returns a boolean if a field has been set. ### GetAttachments -`func (o *AvalaraAccountDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *AvalaraAccountDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *AvalaraAccountDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *AvalaraAccountDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *AvalaraAccountDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *AvalaraAccountDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -77,6 +79,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *AvalaraAccountDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *AvalaraAccountDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *AvalaraAccountDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *AvalaraAccountDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetTaxCategories `func (o *AvalaraAccountDataRelationships) GetTaxCategories() AvalaraAccountDataRelationshipsTaxCategories` @@ -102,6 +129,31 @@ SetTaxCategories sets TaxCategories field to given value. HasTaxCategories returns a boolean if a field has been set. +### GetEvents + +`func (o *AvalaraAccountDataRelationships) GetEvents() AddressDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *AvalaraAccountDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *AvalaraAccountDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *AvalaraAccountDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/AvalaraAccountDataRelationshipsAttachments.md b/api/docs/AvalaraAccountDataRelationshipsAttachments.md deleted file mode 100644 index 216fa9b6..00000000 --- a/api/docs/AvalaraAccountDataRelationshipsAttachments.md +++ /dev/null @@ -1,56 +0,0 @@ -# AvalaraAccountDataRelationshipsAttachments - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | Pointer to [**AvalaraAccountDataRelationshipsAttachmentsData**](AvalaraAccountDataRelationshipsAttachmentsData.md) | | [optional] - -## Methods - -### NewAvalaraAccountDataRelationshipsAttachments - -`func NewAvalaraAccountDataRelationshipsAttachments() *AvalaraAccountDataRelationshipsAttachments` - -NewAvalaraAccountDataRelationshipsAttachments instantiates a new AvalaraAccountDataRelationshipsAttachments object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAvalaraAccountDataRelationshipsAttachmentsWithDefaults - -`func NewAvalaraAccountDataRelationshipsAttachmentsWithDefaults() *AvalaraAccountDataRelationshipsAttachments` - -NewAvalaraAccountDataRelationshipsAttachmentsWithDefaults instantiates a new AvalaraAccountDataRelationshipsAttachments object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *AvalaraAccountDataRelationshipsAttachments) GetData() AvalaraAccountDataRelationshipsAttachmentsData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *AvalaraAccountDataRelationshipsAttachments) GetDataOk() (*AvalaraAccountDataRelationshipsAttachmentsData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *AvalaraAccountDataRelationshipsAttachments) SetData(v AvalaraAccountDataRelationshipsAttachmentsData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *AvalaraAccountDataRelationshipsAttachments) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/AxerveGatewayDataRelationships.md b/api/docs/AxerveGatewayDataRelationships.md index a980cc0f..eb795e59 100644 --- a/api/docs/AxerveGatewayDataRelationships.md +++ b/api/docs/AxerveGatewayDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**AdyenGatewayDataRelationshipsPaymentMethods**](AdyenGatewayDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] **AxervePayments** | Pointer to [**AxerveGatewayDataRelationshipsAxervePayments**](AxerveGatewayDataRelationshipsAxervePayments.md) | | [optional] ## Methods @@ -51,6 +52,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *AxerveGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *AxerveGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *AxerveGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *AxerveGatewayDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetAxervePayments `func (o *AxerveGatewayDataRelationships) GetAxervePayments() AxerveGatewayDataRelationshipsAxervePayments` diff --git a/api/docs/BillingInfoValidationRuleDataRelationships.md b/api/docs/BillingInfoValidationRuleDataRelationships.md index 369d3bfb..39b50d98 100644 --- a/api/docs/BillingInfoValidationRuleDataRelationships.md +++ b/api/docs/BillingInfoValidationRuleDataRelationships.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Market** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -53,20 +54,20 @@ HasMarket returns a boolean if a field has been set. ### GetAttachments -`func (o *BillingInfoValidationRuleDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *BillingInfoValidationRuleDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *BillingInfoValidationRuleDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *BillingInfoValidationRuleDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *BillingInfoValidationRuleDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *BillingInfoValidationRuleDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -76,6 +77,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *BillingInfoValidationRuleDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *BillingInfoValidationRuleDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *BillingInfoValidationRuleDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *BillingInfoValidationRuleDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/BingGeocoderDataRelationships.md b/api/docs/BingGeocoderDataRelationships.md index e01352e4..e8e7e119 100644 --- a/api/docs/BingGeocoderDataRelationships.md +++ b/api/docs/BingGeocoderDataRelationships.md @@ -4,8 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Markets** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] **Addresses** | Pointer to [**BingGeocoderDataRelationshipsAddresses**](BingGeocoderDataRelationshipsAddresses.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] ## Methods @@ -26,6 +27,31 @@ NewBingGeocoderDataRelationshipsWithDefaults instantiates a new BingGeocoderData This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetMarkets + +`func (o *BingGeocoderDataRelationships) GetMarkets() AvalaraAccountDataRelationshipsMarkets` + +GetMarkets returns the Markets field if non-nil, zero value otherwise. + +### GetMarketsOk + +`func (o *BingGeocoderDataRelationships) GetMarketsOk() (*AvalaraAccountDataRelationshipsMarkets, bool)` + +GetMarketsOk returns a tuple with the Markets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkets + +`func (o *BingGeocoderDataRelationships) SetMarkets(v AvalaraAccountDataRelationshipsMarkets)` + +SetMarkets sets Markets field to given value. + +### HasMarkets + +`func (o *BingGeocoderDataRelationships) HasMarkets() bool` + +HasMarkets returns a boolean if a field has been set. + ### GetAddresses `func (o *BingGeocoderDataRelationships) GetAddresses() BingGeocoderDataRelationshipsAddresses` @@ -53,20 +79,20 @@ HasAddresses returns a boolean if a field has been set. ### GetAttachments -`func (o *BingGeocoderDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *BingGeocoderDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *BingGeocoderDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *BingGeocoderDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *BingGeocoderDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *BingGeocoderDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. diff --git a/api/docs/BraintreeGatewayDataRelationships.md b/api/docs/BraintreeGatewayDataRelationships.md index f87cba68..dd783570 100644 --- a/api/docs/BraintreeGatewayDataRelationships.md +++ b/api/docs/BraintreeGatewayDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**AdyenGatewayDataRelationshipsPaymentMethods**](AdyenGatewayDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] **BraintreePayments** | Pointer to [**BraintreeGatewayDataRelationshipsBraintreePayments**](BraintreeGatewayDataRelationshipsBraintreePayments.md) | | [optional] ## Methods @@ -51,6 +52,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *BraintreeGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *BraintreeGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *BraintreeGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *BraintreeGatewayDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetBraintreePayments `func (o *BraintreeGatewayDataRelationships) GetBraintreePayments() BraintreeGatewayDataRelationshipsBraintreePayments` diff --git a/api/docs/BundleCreateDataRelationships.md b/api/docs/BundleCreateDataRelationships.md index b406e614..2a728c31 100644 --- a/api/docs/BundleCreateDataRelationships.md +++ b/api/docs/BundleCreateDataRelationships.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Market** | Pointer to [**BillingInfoValidationRuleCreateDataRelationshipsMarket**](BillingInfoValidationRuleCreateDataRelationshipsMarket.md) | | [optional] **SkuList** | [**BundleCreateDataRelationshipsSkuList**](BundleCreateDataRelationshipsSkuList.md) | | +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] ## Methods @@ -71,6 +72,31 @@ and a boolean to check if the value has been set. SetSkuList sets SkuList field to given value. +### GetTags + +`func (o *BundleCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *BundleCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *BundleCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *BundleCreateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/BundleDataRelationships.md b/api/docs/BundleDataRelationships.md index a0c49b6b..3d92ebc3 100644 --- a/api/docs/BundleDataRelationships.md +++ b/api/docs/BundleDataRelationships.md @@ -7,7 +7,10 @@ Name | Type | Description | Notes **Market** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] **SkuList** | Pointer to [**BundleDataRelationshipsSkuList**](BundleDataRelationshipsSkuList.md) | | [optional] **Skus** | Pointer to [**BundleDataRelationshipsSkus**](BundleDataRelationshipsSkus.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**AddressDataRelationshipsTags**](AddressDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -105,20 +108,20 @@ HasSkus returns a boolean if a field has been set. ### GetAttachments -`func (o *BundleDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *BundleDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *BundleDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *BundleDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *BundleDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *BundleDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -128,6 +131,81 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetEvents + +`func (o *BundleDataRelationships) GetEvents() AddressDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *BundleDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *BundleDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *BundleDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *BundleDataRelationships) GetTags() AddressDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *BundleDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *BundleDataRelationships) SetTags(v AddressDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *BundleDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *BundleDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *BundleDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *BundleDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *BundleDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/BundleUpdateData.md b/api/docs/BundleUpdateData.md index ba654fbc..159ea438 100644 --- a/api/docs/BundleUpdateData.md +++ b/api/docs/BundleUpdateData.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Type** | **interface{}** | The resource's type | **Id** | **interface{}** | The resource's id | **Attributes** | [**PATCHBundlesBundleId200ResponseDataAttributes**](PATCHBundlesBundleId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to **interface{}** | | [optional] +**Relationships** | Pointer to [**BundleUpdateDataRelationships**](BundleUpdateDataRelationships.md) | | [optional] ## Methods @@ -110,20 +110,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *BundleUpdateData) GetRelationships() interface{}` +`func (o *BundleUpdateData) GetRelationships() BundleUpdateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *BundleUpdateData) GetRelationshipsOk() (*interface{}, bool)` +`func (o *BundleUpdateData) GetRelationshipsOk() (*BundleUpdateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *BundleUpdateData) SetRelationships(v interface{})` +`func (o *BundleUpdateData) SetRelationships(v BundleUpdateDataRelationships)` SetRelationships sets Relationships field to given value. @@ -133,16 +133,6 @@ SetRelationships sets Relationships field to given value. HasRelationships returns a boolean if a field has been set. -### SetRelationshipsNil - -`func (o *BundleUpdateData) SetRelationshipsNil(b bool)` - - SetRelationshipsNil sets the value for Relationships to be an explicit nil - -### UnsetRelationships -`func (o *BundleUpdateData) UnsetRelationships()` - -UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/BundleUpdateDataRelationships.md b/api/docs/BundleUpdateDataRelationships.md new file mode 100644 index 00000000..03c89bde --- /dev/null +++ b/api/docs/BundleUpdateDataRelationships.md @@ -0,0 +1,56 @@ +# BundleUpdateDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] + +## Methods + +### NewBundleUpdateDataRelationships + +`func NewBundleUpdateDataRelationships() *BundleUpdateDataRelationships` + +NewBundleUpdateDataRelationships instantiates a new BundleUpdateDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBundleUpdateDataRelationshipsWithDefaults + +`func NewBundleUpdateDataRelationshipsWithDefaults() *BundleUpdateDataRelationships` + +NewBundleUpdateDataRelationshipsWithDefaults instantiates a new BundleUpdateDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTags + +`func (o *BundleUpdateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *BundleUpdateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *BundleUpdateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *BundleUpdateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/BundlesApi.md b/api/docs/BundlesApi.md index a3dcc2b7..cb9dd1ac 100644 --- a/api/docs/BundlesApi.md +++ b/api/docs/BundlesApi.md @@ -442,7 +442,7 @@ import ( ) func main() { - bundleCreate := *openapiclient.NewBundleCreate(*openapiclient.NewBundleCreateData(interface{}(123), *openapiclient.NewPOSTBundles201ResponseDataAttributes(interface{}(BUNDMM000000FFFFFFXLXX), interface{}(Black Men T-shirt (XL) with Black Cap and Socks, all with White Logo), interface{}(10000), interface{}(13000)))) // BundleCreate | + bundleCreate := *openapiclient.NewBundleCreate(*openapiclient.NewBundleCreateData(interface{}(123), *openapiclient.NewPOSTBundles201ResponseDataAttributes(interface{}(BUNDMM000000FFFFFFXLXX), interface{}(Men's Black T-shirt (XL) with Black Cap and Socks, all with White Logo)))) // BundleCreate | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/api/docs/BuyXPayYPromotion.md b/api/docs/BuyXPayYPromotion.md new file mode 100644 index 00000000..4e8e1cea --- /dev/null +++ b/api/docs/BuyXPayYPromotion.md @@ -0,0 +1,56 @@ +# BuyXPayYPromotion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**BuyXPayYPromotionData**](BuyXPayYPromotionData.md) | | [optional] + +## Methods + +### NewBuyXPayYPromotion + +`func NewBuyXPayYPromotion() *BuyXPayYPromotion` + +NewBuyXPayYPromotion instantiates a new BuyXPayYPromotion object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionWithDefaults + +`func NewBuyXPayYPromotionWithDefaults() *BuyXPayYPromotion` + +NewBuyXPayYPromotionWithDefaults instantiates a new BuyXPayYPromotion object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *BuyXPayYPromotion) GetData() BuyXPayYPromotionData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *BuyXPayYPromotion) GetDataOk() (*BuyXPayYPromotionData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *BuyXPayYPromotion) SetData(v BuyXPayYPromotionData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *BuyXPayYPromotion) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/BuyXPayYPromotionCreate.md b/api/docs/BuyXPayYPromotionCreate.md new file mode 100644 index 00000000..a7d6270b --- /dev/null +++ b/api/docs/BuyXPayYPromotionCreate.md @@ -0,0 +1,51 @@ +# BuyXPayYPromotionCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BuyXPayYPromotionCreateData**](BuyXPayYPromotionCreateData.md) | | + +## Methods + +### NewBuyXPayYPromotionCreate + +`func NewBuyXPayYPromotionCreate(data BuyXPayYPromotionCreateData, ) *BuyXPayYPromotionCreate` + +NewBuyXPayYPromotionCreate instantiates a new BuyXPayYPromotionCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionCreateWithDefaults + +`func NewBuyXPayYPromotionCreateWithDefaults() *BuyXPayYPromotionCreate` + +NewBuyXPayYPromotionCreateWithDefaults instantiates a new BuyXPayYPromotionCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *BuyXPayYPromotionCreate) GetData() BuyXPayYPromotionCreateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *BuyXPayYPromotionCreate) GetDataOk() (*BuyXPayYPromotionCreateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *BuyXPayYPromotionCreate) SetData(v BuyXPayYPromotionCreateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/BuyXPayYPromotionCreateData.md b/api/docs/BuyXPayYPromotionCreateData.md new file mode 100644 index 00000000..6473c346 --- /dev/null +++ b/api/docs/BuyXPayYPromotionCreateData.md @@ -0,0 +1,108 @@ +# BuyXPayYPromotionCreateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**POSTBuyXPayYPromotions201ResponseDataAttributes**](POSTBuyXPayYPromotions201ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**BuyXPayYPromotionCreateDataRelationships**](BuyXPayYPromotionCreateDataRelationships.md) | | [optional] + +## Methods + +### NewBuyXPayYPromotionCreateData + +`func NewBuyXPayYPromotionCreateData(type_ interface{}, attributes POSTBuyXPayYPromotions201ResponseDataAttributes, ) *BuyXPayYPromotionCreateData` + +NewBuyXPayYPromotionCreateData instantiates a new BuyXPayYPromotionCreateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionCreateDataWithDefaults + +`func NewBuyXPayYPromotionCreateDataWithDefaults() *BuyXPayYPromotionCreateData` + +NewBuyXPayYPromotionCreateDataWithDefaults instantiates a new BuyXPayYPromotionCreateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *BuyXPayYPromotionCreateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *BuyXPayYPromotionCreateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *BuyXPayYPromotionCreateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *BuyXPayYPromotionCreateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *BuyXPayYPromotionCreateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *BuyXPayYPromotionCreateData) GetAttributes() POSTBuyXPayYPromotions201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *BuyXPayYPromotionCreateData) GetAttributesOk() (*POSTBuyXPayYPromotions201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *BuyXPayYPromotionCreateData) SetAttributes(v POSTBuyXPayYPromotions201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *BuyXPayYPromotionCreateData) GetRelationships() BuyXPayYPromotionCreateDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *BuyXPayYPromotionCreateData) GetRelationshipsOk() (*BuyXPayYPromotionCreateDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *BuyXPayYPromotionCreateData) SetRelationships(v BuyXPayYPromotionCreateDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *BuyXPayYPromotionCreateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/BuyXPayYPromotionCreateDataRelationships.md b/api/docs/BuyXPayYPromotionCreateDataRelationships.md new file mode 100644 index 00000000..658ea88c --- /dev/null +++ b/api/docs/BuyXPayYPromotionCreateDataRelationships.md @@ -0,0 +1,207 @@ +# BuyXPayYPromotionCreateDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Market** | Pointer to [**BillingInfoValidationRuleCreateDataRelationshipsMarket**](BillingInfoValidationRuleCreateDataRelationshipsMarket.md) | | [optional] +**OrderAmountPromotionRule** | Pointer to [**BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule**](BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule.md) | | [optional] +**SkuListPromotionRule** | Pointer to [**BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule**](BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule.md) | | [optional] +**CouponCodesPromotionRule** | Pointer to [**BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule**](BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule.md) | | [optional] +**CustomPromotionRule** | Pointer to [**BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule**](BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule.md) | | [optional] +**SkuList** | [**BundleCreateDataRelationshipsSkuList**](BundleCreateDataRelationshipsSkuList.md) | | +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] + +## Methods + +### NewBuyXPayYPromotionCreateDataRelationships + +`func NewBuyXPayYPromotionCreateDataRelationships(skuList BundleCreateDataRelationshipsSkuList, ) *BuyXPayYPromotionCreateDataRelationships` + +NewBuyXPayYPromotionCreateDataRelationships instantiates a new BuyXPayYPromotionCreateDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionCreateDataRelationshipsWithDefaults + +`func NewBuyXPayYPromotionCreateDataRelationshipsWithDefaults() *BuyXPayYPromotionCreateDataRelationships` + +NewBuyXPayYPromotionCreateDataRelationshipsWithDefaults instantiates a new BuyXPayYPromotionCreateDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMarket + +`func (o *BuyXPayYPromotionCreateDataRelationships) GetMarket() BillingInfoValidationRuleCreateDataRelationshipsMarket` + +GetMarket returns the Market field if non-nil, zero value otherwise. + +### GetMarketOk + +`func (o *BuyXPayYPromotionCreateDataRelationships) GetMarketOk() (*BillingInfoValidationRuleCreateDataRelationshipsMarket, bool)` + +GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarket + +`func (o *BuyXPayYPromotionCreateDataRelationships) SetMarket(v BillingInfoValidationRuleCreateDataRelationshipsMarket)` + +SetMarket sets Market field to given value. + +### HasMarket + +`func (o *BuyXPayYPromotionCreateDataRelationships) HasMarket() bool` + +HasMarket returns a boolean if a field has been set. + +### GetOrderAmountPromotionRule + +`func (o *BuyXPayYPromotionCreateDataRelationships) GetOrderAmountPromotionRule() BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule` + +GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field if non-nil, zero value otherwise. + +### GetOrderAmountPromotionRuleOk + +`func (o *BuyXPayYPromotionCreateDataRelationships) GetOrderAmountPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule, bool)` + +GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderAmountPromotionRule + +`func (o *BuyXPayYPromotionCreateDataRelationships) SetOrderAmountPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule)` + +SetOrderAmountPromotionRule sets OrderAmountPromotionRule field to given value. + +### HasOrderAmountPromotionRule + +`func (o *BuyXPayYPromotionCreateDataRelationships) HasOrderAmountPromotionRule() bool` + +HasOrderAmountPromotionRule returns a boolean if a field has been set. + +### GetSkuListPromotionRule + +`func (o *BuyXPayYPromotionCreateDataRelationships) GetSkuListPromotionRule() BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule` + +GetSkuListPromotionRule returns the SkuListPromotionRule field if non-nil, zero value otherwise. + +### GetSkuListPromotionRuleOk + +`func (o *BuyXPayYPromotionCreateDataRelationships) GetSkuListPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule, bool)` + +GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuListPromotionRule + +`func (o *BuyXPayYPromotionCreateDataRelationships) SetSkuListPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule)` + +SetSkuListPromotionRule sets SkuListPromotionRule field to given value. + +### HasSkuListPromotionRule + +`func (o *BuyXPayYPromotionCreateDataRelationships) HasSkuListPromotionRule() bool` + +HasSkuListPromotionRule returns a boolean if a field has been set. + +### GetCouponCodesPromotionRule + +`func (o *BuyXPayYPromotionCreateDataRelationships) GetCouponCodesPromotionRule() BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule` + +GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field if non-nil, zero value otherwise. + +### GetCouponCodesPromotionRuleOk + +`func (o *BuyXPayYPromotionCreateDataRelationships) GetCouponCodesPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule, bool)` + +GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCouponCodesPromotionRule + +`func (o *BuyXPayYPromotionCreateDataRelationships) SetCouponCodesPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule)` + +SetCouponCodesPromotionRule sets CouponCodesPromotionRule field to given value. + +### HasCouponCodesPromotionRule + +`func (o *BuyXPayYPromotionCreateDataRelationships) HasCouponCodesPromotionRule() bool` + +HasCouponCodesPromotionRule returns a boolean if a field has been set. + +### GetCustomPromotionRule + +`func (o *BuyXPayYPromotionCreateDataRelationships) GetCustomPromotionRule() BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule` + +GetCustomPromotionRule returns the CustomPromotionRule field if non-nil, zero value otherwise. + +### GetCustomPromotionRuleOk + +`func (o *BuyXPayYPromotionCreateDataRelationships) GetCustomPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule, bool)` + +GetCustomPromotionRuleOk returns a tuple with the CustomPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomPromotionRule + +`func (o *BuyXPayYPromotionCreateDataRelationships) SetCustomPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule)` + +SetCustomPromotionRule sets CustomPromotionRule field to given value. + +### HasCustomPromotionRule + +`func (o *BuyXPayYPromotionCreateDataRelationships) HasCustomPromotionRule() bool` + +HasCustomPromotionRule returns a boolean if a field has been set. + +### GetSkuList + +`func (o *BuyXPayYPromotionCreateDataRelationships) GetSkuList() BundleCreateDataRelationshipsSkuList` + +GetSkuList returns the SkuList field if non-nil, zero value otherwise. + +### GetSkuListOk + +`func (o *BuyXPayYPromotionCreateDataRelationships) GetSkuListOk() (*BundleCreateDataRelationshipsSkuList, bool)` + +GetSkuListOk returns a tuple with the SkuList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuList + +`func (o *BuyXPayYPromotionCreateDataRelationships) SetSkuList(v BundleCreateDataRelationshipsSkuList)` + +SetSkuList sets SkuList field to given value. + + +### GetTags + +`func (o *BuyXPayYPromotionCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *BuyXPayYPromotionCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *BuyXPayYPromotionCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *BuyXPayYPromotionCreateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule.md b/api/docs/BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule.md new file mode 100644 index 00000000..4f29693d --- /dev/null +++ b/api/docs/BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule.md @@ -0,0 +1,51 @@ +# BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData**](BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData.md) | | + +## Methods + +### NewBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule + +`func NewBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule(data BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData, ) *BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule` + +NewBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule instantiates a new BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRuleWithDefaults + +`func NewBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRuleWithDefaults() *BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule` + +NewBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRuleWithDefaults instantiates a new BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) GetData() BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) GetDataOk() (*BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) SetData(v BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule.md b/api/docs/BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule.md new file mode 100644 index 00000000..a1f27d72 --- /dev/null +++ b/api/docs/BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule.md @@ -0,0 +1,51 @@ +# BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData**](BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData.md) | | + +## Methods + +### NewBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule + +`func NewBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule(data BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData, ) *BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule` + +NewBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule instantiates a new BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRuleWithDefaults + +`func NewBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRuleWithDefaults() *BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule` + +NewBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRuleWithDefaults instantiates a new BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule) GetData() BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule) GetDataOk() (*BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule) SetData(v BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule.md b/api/docs/BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule.md new file mode 100644 index 00000000..8cf1c568 --- /dev/null +++ b/api/docs/BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule.md @@ -0,0 +1,51 @@ +# BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData**](BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData.md) | | + +## Methods + +### NewBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule + +`func NewBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule(data BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData, ) *BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule` + +NewBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule instantiates a new BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRuleWithDefaults + +`func NewBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRuleWithDefaults() *BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule` + +NewBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRuleWithDefaults instantiates a new BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule) GetData() BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule) GetDataOk() (*BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule) SetData(v BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule.md b/api/docs/BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule.md new file mode 100644 index 00000000..f9f4ae8a --- /dev/null +++ b/api/docs/BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule.md @@ -0,0 +1,51 @@ +# BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData**](BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData.md) | | + +## Methods + +### NewBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule + +`func NewBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule(data BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData, ) *BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule` + +NewBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule instantiates a new BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRuleWithDefaults + +`func NewBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRuleWithDefaults() *BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule` + +NewBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRuleWithDefaults instantiates a new BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule) GetData() BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule) GetDataOk() (*BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule) SetData(v BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/BuyXPayYPromotionData.md b/api/docs/BuyXPayYPromotionData.md new file mode 100644 index 00000000..2a160b56 --- /dev/null +++ b/api/docs/BuyXPayYPromotionData.md @@ -0,0 +1,108 @@ +# BuyXPayYPromotionData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes**](GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**BuyXPayYPromotionDataRelationships**](BuyXPayYPromotionDataRelationships.md) | | [optional] + +## Methods + +### NewBuyXPayYPromotionData + +`func NewBuyXPayYPromotionData(type_ interface{}, attributes GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes, ) *BuyXPayYPromotionData` + +NewBuyXPayYPromotionData instantiates a new BuyXPayYPromotionData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionDataWithDefaults + +`func NewBuyXPayYPromotionDataWithDefaults() *BuyXPayYPromotionData` + +NewBuyXPayYPromotionDataWithDefaults instantiates a new BuyXPayYPromotionData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *BuyXPayYPromotionData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *BuyXPayYPromotionData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *BuyXPayYPromotionData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *BuyXPayYPromotionData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *BuyXPayYPromotionData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *BuyXPayYPromotionData) GetAttributes() GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *BuyXPayYPromotionData) GetAttributesOk() (*GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *BuyXPayYPromotionData) SetAttributes(v GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *BuyXPayYPromotionData) GetRelationships() BuyXPayYPromotionDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *BuyXPayYPromotionData) GetRelationshipsOk() (*BuyXPayYPromotionDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *BuyXPayYPromotionData) SetRelationships(v BuyXPayYPromotionDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *BuyXPayYPromotionData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/BuyXPayYPromotionDataRelationships.md b/api/docs/BuyXPayYPromotionDataRelationships.md new file mode 100644 index 00000000..ecc9a3a2 --- /dev/null +++ b/api/docs/BuyXPayYPromotionDataRelationships.md @@ -0,0 +1,368 @@ +# BuyXPayYPromotionDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Market** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] +**PromotionRules** | Pointer to [**BuyXPayYPromotionDataRelationshipsPromotionRules**](BuyXPayYPromotionDataRelationshipsPromotionRules.md) | | [optional] +**OrderAmountPromotionRule** | Pointer to [**BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule**](BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule.md) | | [optional] +**SkuListPromotionRule** | Pointer to [**BuyXPayYPromotionDataRelationshipsSkuListPromotionRule**](BuyXPayYPromotionDataRelationshipsSkuListPromotionRule.md) | | [optional] +**CouponCodesPromotionRule** | Pointer to [**BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule**](BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule.md) | | [optional] +**CustomPromotionRule** | Pointer to [**BuyXPayYPromotionDataRelationshipsCustomPromotionRule**](BuyXPayYPromotionDataRelationshipsCustomPromotionRule.md) | | [optional] +**SkuList** | Pointer to [**BundleDataRelationshipsSkuList**](BundleDataRelationshipsSkuList.md) | | [optional] +**Coupons** | Pointer to [**BuyXPayYPromotionDataRelationshipsCoupons**](BuyXPayYPromotionDataRelationshipsCoupons.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**AddressDataRelationshipsTags**](AddressDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] +**Skus** | Pointer to [**BundleDataRelationshipsSkus**](BundleDataRelationshipsSkus.md) | | [optional] + +## Methods + +### NewBuyXPayYPromotionDataRelationships + +`func NewBuyXPayYPromotionDataRelationships() *BuyXPayYPromotionDataRelationships` + +NewBuyXPayYPromotionDataRelationships instantiates a new BuyXPayYPromotionDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionDataRelationshipsWithDefaults + +`func NewBuyXPayYPromotionDataRelationshipsWithDefaults() *BuyXPayYPromotionDataRelationships` + +NewBuyXPayYPromotionDataRelationshipsWithDefaults instantiates a new BuyXPayYPromotionDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMarket + +`func (o *BuyXPayYPromotionDataRelationships) GetMarket() AvalaraAccountDataRelationshipsMarkets` + +GetMarket returns the Market field if non-nil, zero value otherwise. + +### GetMarketOk + +`func (o *BuyXPayYPromotionDataRelationships) GetMarketOk() (*AvalaraAccountDataRelationshipsMarkets, bool)` + +GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarket + +`func (o *BuyXPayYPromotionDataRelationships) SetMarket(v AvalaraAccountDataRelationshipsMarkets)` + +SetMarket sets Market field to given value. + +### HasMarket + +`func (o *BuyXPayYPromotionDataRelationships) HasMarket() bool` + +HasMarket returns a boolean if a field has been set. + +### GetPromotionRules + +`func (o *BuyXPayYPromotionDataRelationships) GetPromotionRules() BuyXPayYPromotionDataRelationshipsPromotionRules` + +GetPromotionRules returns the PromotionRules field if non-nil, zero value otherwise. + +### GetPromotionRulesOk + +`func (o *BuyXPayYPromotionDataRelationships) GetPromotionRulesOk() (*BuyXPayYPromotionDataRelationshipsPromotionRules, bool)` + +GetPromotionRulesOk returns a tuple with the PromotionRules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPromotionRules + +`func (o *BuyXPayYPromotionDataRelationships) SetPromotionRules(v BuyXPayYPromotionDataRelationshipsPromotionRules)` + +SetPromotionRules sets PromotionRules field to given value. + +### HasPromotionRules + +`func (o *BuyXPayYPromotionDataRelationships) HasPromotionRules() bool` + +HasPromotionRules returns a boolean if a field has been set. + +### GetOrderAmountPromotionRule + +`func (o *BuyXPayYPromotionDataRelationships) GetOrderAmountPromotionRule() BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule` + +GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field if non-nil, zero value otherwise. + +### GetOrderAmountPromotionRuleOk + +`func (o *BuyXPayYPromotionDataRelationships) GetOrderAmountPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule, bool)` + +GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderAmountPromotionRule + +`func (o *BuyXPayYPromotionDataRelationships) SetOrderAmountPromotionRule(v BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule)` + +SetOrderAmountPromotionRule sets OrderAmountPromotionRule field to given value. + +### HasOrderAmountPromotionRule + +`func (o *BuyXPayYPromotionDataRelationships) HasOrderAmountPromotionRule() bool` + +HasOrderAmountPromotionRule returns a boolean if a field has been set. + +### GetSkuListPromotionRule + +`func (o *BuyXPayYPromotionDataRelationships) GetSkuListPromotionRule() BuyXPayYPromotionDataRelationshipsSkuListPromotionRule` + +GetSkuListPromotionRule returns the SkuListPromotionRule field if non-nil, zero value otherwise. + +### GetSkuListPromotionRuleOk + +`func (o *BuyXPayYPromotionDataRelationships) GetSkuListPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsSkuListPromotionRule, bool)` + +GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuListPromotionRule + +`func (o *BuyXPayYPromotionDataRelationships) SetSkuListPromotionRule(v BuyXPayYPromotionDataRelationshipsSkuListPromotionRule)` + +SetSkuListPromotionRule sets SkuListPromotionRule field to given value. + +### HasSkuListPromotionRule + +`func (o *BuyXPayYPromotionDataRelationships) HasSkuListPromotionRule() bool` + +HasSkuListPromotionRule returns a boolean if a field has been set. + +### GetCouponCodesPromotionRule + +`func (o *BuyXPayYPromotionDataRelationships) GetCouponCodesPromotionRule() BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule` + +GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field if non-nil, zero value otherwise. + +### GetCouponCodesPromotionRuleOk + +`func (o *BuyXPayYPromotionDataRelationships) GetCouponCodesPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule, bool)` + +GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCouponCodesPromotionRule + +`func (o *BuyXPayYPromotionDataRelationships) SetCouponCodesPromotionRule(v BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule)` + +SetCouponCodesPromotionRule sets CouponCodesPromotionRule field to given value. + +### HasCouponCodesPromotionRule + +`func (o *BuyXPayYPromotionDataRelationships) HasCouponCodesPromotionRule() bool` + +HasCouponCodesPromotionRule returns a boolean if a field has been set. + +### GetCustomPromotionRule + +`func (o *BuyXPayYPromotionDataRelationships) GetCustomPromotionRule() BuyXPayYPromotionDataRelationshipsCustomPromotionRule` + +GetCustomPromotionRule returns the CustomPromotionRule field if non-nil, zero value otherwise. + +### GetCustomPromotionRuleOk + +`func (o *BuyXPayYPromotionDataRelationships) GetCustomPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsCustomPromotionRule, bool)` + +GetCustomPromotionRuleOk returns a tuple with the CustomPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomPromotionRule + +`func (o *BuyXPayYPromotionDataRelationships) SetCustomPromotionRule(v BuyXPayYPromotionDataRelationshipsCustomPromotionRule)` + +SetCustomPromotionRule sets CustomPromotionRule field to given value. + +### HasCustomPromotionRule + +`func (o *BuyXPayYPromotionDataRelationships) HasCustomPromotionRule() bool` + +HasCustomPromotionRule returns a boolean if a field has been set. + +### GetSkuList + +`func (o *BuyXPayYPromotionDataRelationships) GetSkuList() BundleDataRelationshipsSkuList` + +GetSkuList returns the SkuList field if non-nil, zero value otherwise. + +### GetSkuListOk + +`func (o *BuyXPayYPromotionDataRelationships) GetSkuListOk() (*BundleDataRelationshipsSkuList, bool)` + +GetSkuListOk returns a tuple with the SkuList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuList + +`func (o *BuyXPayYPromotionDataRelationships) SetSkuList(v BundleDataRelationshipsSkuList)` + +SetSkuList sets SkuList field to given value. + +### HasSkuList + +`func (o *BuyXPayYPromotionDataRelationships) HasSkuList() bool` + +HasSkuList returns a boolean if a field has been set. + +### GetCoupons + +`func (o *BuyXPayYPromotionDataRelationships) GetCoupons() BuyXPayYPromotionDataRelationshipsCoupons` + +GetCoupons returns the Coupons field if non-nil, zero value otherwise. + +### GetCouponsOk + +`func (o *BuyXPayYPromotionDataRelationships) GetCouponsOk() (*BuyXPayYPromotionDataRelationshipsCoupons, bool)` + +GetCouponsOk returns a tuple with the Coupons field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCoupons + +`func (o *BuyXPayYPromotionDataRelationships) SetCoupons(v BuyXPayYPromotionDataRelationshipsCoupons)` + +SetCoupons sets Coupons field to given value. + +### HasCoupons + +`func (o *BuyXPayYPromotionDataRelationships) HasCoupons() bool` + +HasCoupons returns a boolean if a field has been set. + +### GetAttachments + +`func (o *BuyXPayYPromotionDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *BuyXPayYPromotionDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *BuyXPayYPromotionDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *BuyXPayYPromotionDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + +### GetEvents + +`func (o *BuyXPayYPromotionDataRelationships) GetEvents() AddressDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *BuyXPayYPromotionDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *BuyXPayYPromotionDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *BuyXPayYPromotionDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *BuyXPayYPromotionDataRelationships) GetTags() AddressDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *BuyXPayYPromotionDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *BuyXPayYPromotionDataRelationships) SetTags(v AddressDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *BuyXPayYPromotionDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *BuyXPayYPromotionDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *BuyXPayYPromotionDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *BuyXPayYPromotionDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *BuyXPayYPromotionDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + +### GetSkus + +`func (o *BuyXPayYPromotionDataRelationships) GetSkus() BundleDataRelationshipsSkus` + +GetSkus returns the Skus field if non-nil, zero value otherwise. + +### GetSkusOk + +`func (o *BuyXPayYPromotionDataRelationships) GetSkusOk() (*BundleDataRelationshipsSkus, bool)` + +GetSkusOk returns a tuple with the Skus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkus + +`func (o *BuyXPayYPromotionDataRelationships) SetSkus(v BundleDataRelationshipsSkus)` + +SetSkus sets Skus field to given value. + +### HasSkus + +`func (o *BuyXPayYPromotionDataRelationships) HasSkus() bool` + +HasSkus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule.md b/api/docs/BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule.md new file mode 100644 index 00000000..30d7cc84 --- /dev/null +++ b/api/docs/BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule.md @@ -0,0 +1,56 @@ +# BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData**](BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData.md) | | [optional] + +## Methods + +### NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule + +`func NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule() *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule` + +NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule instantiates a new BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleWithDefaults + +`func NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleWithDefaults() *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule` + +NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) GetData() BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) GetDataOk() (*BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) SetData(v BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData.md b/api/docs/BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData.md new file mode 100644 index 00000000..4ec984ca --- /dev/null +++ b/api/docs/BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData.md @@ -0,0 +1,102 @@ +# BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource's id | [optional] + +## Methods + +### NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData + +`func NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData() *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData` + +NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData instantiates a new BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleDataWithDefaults + +`func NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleDataWithDefaults() *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData` + +NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleDataWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/BuyXPayYPromotionDataRelationshipsCoupons.md b/api/docs/BuyXPayYPromotionDataRelationshipsCoupons.md new file mode 100644 index 00000000..2217287a --- /dev/null +++ b/api/docs/BuyXPayYPromotionDataRelationshipsCoupons.md @@ -0,0 +1,56 @@ +# BuyXPayYPromotionDataRelationshipsCoupons + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**BuyXPayYPromotionDataRelationshipsCouponsData**](BuyXPayYPromotionDataRelationshipsCouponsData.md) | | [optional] + +## Methods + +### NewBuyXPayYPromotionDataRelationshipsCoupons + +`func NewBuyXPayYPromotionDataRelationshipsCoupons() *BuyXPayYPromotionDataRelationshipsCoupons` + +NewBuyXPayYPromotionDataRelationshipsCoupons instantiates a new BuyXPayYPromotionDataRelationshipsCoupons object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionDataRelationshipsCouponsWithDefaults + +`func NewBuyXPayYPromotionDataRelationshipsCouponsWithDefaults() *BuyXPayYPromotionDataRelationshipsCoupons` + +NewBuyXPayYPromotionDataRelationshipsCouponsWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsCoupons object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *BuyXPayYPromotionDataRelationshipsCoupons) GetData() BuyXPayYPromotionDataRelationshipsCouponsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *BuyXPayYPromotionDataRelationshipsCoupons) GetDataOk() (*BuyXPayYPromotionDataRelationshipsCouponsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *BuyXPayYPromotionDataRelationshipsCoupons) SetData(v BuyXPayYPromotionDataRelationshipsCouponsData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *BuyXPayYPromotionDataRelationshipsCoupons) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/BuyXPayYPromotionDataRelationshipsCouponsData.md b/api/docs/BuyXPayYPromotionDataRelationshipsCouponsData.md new file mode 100644 index 00000000..6769e658 --- /dev/null +++ b/api/docs/BuyXPayYPromotionDataRelationshipsCouponsData.md @@ -0,0 +1,102 @@ +# BuyXPayYPromotionDataRelationshipsCouponsData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource's id | [optional] + +## Methods + +### NewBuyXPayYPromotionDataRelationshipsCouponsData + +`func NewBuyXPayYPromotionDataRelationshipsCouponsData() *BuyXPayYPromotionDataRelationshipsCouponsData` + +NewBuyXPayYPromotionDataRelationshipsCouponsData instantiates a new BuyXPayYPromotionDataRelationshipsCouponsData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionDataRelationshipsCouponsDataWithDefaults + +`func NewBuyXPayYPromotionDataRelationshipsCouponsDataWithDefaults() *BuyXPayYPromotionDataRelationshipsCouponsData` + +NewBuyXPayYPromotionDataRelationshipsCouponsDataWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsCouponsData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *BuyXPayYPromotionDataRelationshipsCouponsData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *BuyXPayYPromotionDataRelationshipsCouponsData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *BuyXPayYPromotionDataRelationshipsCouponsData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *BuyXPayYPromotionDataRelationshipsCouponsData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *BuyXPayYPromotionDataRelationshipsCouponsData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *BuyXPayYPromotionDataRelationshipsCouponsData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *BuyXPayYPromotionDataRelationshipsCouponsData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BuyXPayYPromotionDataRelationshipsCouponsData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BuyXPayYPromotionDataRelationshipsCouponsData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *BuyXPayYPromotionDataRelationshipsCouponsData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *BuyXPayYPromotionDataRelationshipsCouponsData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *BuyXPayYPromotionDataRelationshipsCouponsData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/BuyXPayYPromotionDataRelationshipsCustomPromotionRule.md b/api/docs/BuyXPayYPromotionDataRelationshipsCustomPromotionRule.md new file mode 100644 index 00000000..ddc3e5e0 --- /dev/null +++ b/api/docs/BuyXPayYPromotionDataRelationshipsCustomPromotionRule.md @@ -0,0 +1,56 @@ +# BuyXPayYPromotionDataRelationshipsCustomPromotionRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData**](BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData.md) | | [optional] + +## Methods + +### NewBuyXPayYPromotionDataRelationshipsCustomPromotionRule + +`func NewBuyXPayYPromotionDataRelationshipsCustomPromotionRule() *BuyXPayYPromotionDataRelationshipsCustomPromotionRule` + +NewBuyXPayYPromotionDataRelationshipsCustomPromotionRule instantiates a new BuyXPayYPromotionDataRelationshipsCustomPromotionRule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionDataRelationshipsCustomPromotionRuleWithDefaults + +`func NewBuyXPayYPromotionDataRelationshipsCustomPromotionRuleWithDefaults() *BuyXPayYPromotionDataRelationshipsCustomPromotionRule` + +NewBuyXPayYPromotionDataRelationshipsCustomPromotionRuleWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsCustomPromotionRule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRule) GetData() BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRule) GetDataOk() (*BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRule) SetData(v BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRule) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTReturnLineItems201ResponseDataRelationshipsReturnData.md b/api/docs/BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData.md similarity index 56% rename from api/docs/POSTReturnLineItems201ResponseDataRelationshipsReturnData.md rename to api/docs/BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData.md index fb6d1d45..54178382 100644 --- a/api/docs/POSTReturnLineItems201ResponseDataRelationshipsReturnData.md +++ b/api/docs/BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData.md @@ -1,99 +1,99 @@ -# POSTReturnLineItems201ResponseDataRelationshipsReturnData +# BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | Pointer to **interface{}** | The resource's type | [optional] -**Id** | Pointer to **interface{}** | The resource ID | [optional] +**Id** | Pointer to **interface{}** | The resource's id | [optional] ## Methods -### NewPOSTReturnLineItems201ResponseDataRelationshipsReturnData +### NewBuyXPayYPromotionDataRelationshipsCustomPromotionRuleData -`func NewPOSTReturnLineItems201ResponseDataRelationshipsReturnData() *POSTReturnLineItems201ResponseDataRelationshipsReturnData` +`func NewBuyXPayYPromotionDataRelationshipsCustomPromotionRuleData() *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData` -NewPOSTReturnLineItems201ResponseDataRelationshipsReturnData instantiates a new POSTReturnLineItems201ResponseDataRelationshipsReturnData object +NewBuyXPayYPromotionDataRelationshipsCustomPromotionRuleData instantiates a new BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPOSTReturnLineItems201ResponseDataRelationshipsReturnDataWithDefaults +### NewBuyXPayYPromotionDataRelationshipsCustomPromotionRuleDataWithDefaults -`func NewPOSTReturnLineItems201ResponseDataRelationshipsReturnDataWithDefaults() *POSTReturnLineItems201ResponseDataRelationshipsReturnData` +`func NewBuyXPayYPromotionDataRelationshipsCustomPromotionRuleDataWithDefaults() *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData` -NewPOSTReturnLineItems201ResponseDataRelationshipsReturnDataWithDefaults instantiates a new POSTReturnLineItems201ResponseDataRelationshipsReturnData object +NewBuyXPayYPromotionDataRelationshipsCustomPromotionRuleDataWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) GetType() interface{}` +`func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) GetTypeOk() (*interface{}, bool)` +`func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) SetType(v interface{})` +`func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) HasType() bool` +`func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) SetTypeNil(b bool)` +`func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) UnsetType()` +`func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) GetId() interface{}` +`func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) GetIdOk() (*interface{}, bool)` +`func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) SetId(v interface{})` +`func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) HasId() bool` +`func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) SetIdNil(b bool)` +`func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) UnsetId()` +`func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule.md b/api/docs/BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule.md new file mode 100644 index 00000000..b3ab135c --- /dev/null +++ b/api/docs/BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule.md @@ -0,0 +1,56 @@ +# BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData**](BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData.md) | | [optional] + +## Methods + +### NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule + +`func NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule() *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule` + +NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule instantiates a new BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleWithDefaults + +`func NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleWithDefaults() *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule` + +NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) GetData() BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) GetDataOk() (*BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) SetData(v BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData.md b/api/docs/BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData.md similarity index 61% rename from api/docs/ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData.md rename to api/docs/BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData.md index 3af4ded8..3a59e9d2 100644 --- a/api/docs/ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData.md +++ b/api/docs/BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData.md @@ -1,4 +1,4 @@ -# ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData +# BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewExternalPromotionDataRelationshipsOrderAmountPromotionRuleData +### NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData -`func NewExternalPromotionDataRelationshipsOrderAmountPromotionRuleData() *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData` +`func NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData() *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData` -NewExternalPromotionDataRelationshipsOrderAmountPromotionRuleData instantiates a new ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData object +NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData instantiates a new BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewExternalPromotionDataRelationshipsOrderAmountPromotionRuleDataWithDefaults +### NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleDataWithDefaults -`func NewExternalPromotionDataRelationshipsOrderAmountPromotionRuleDataWithDefaults() *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData` +`func NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleDataWithDefaults() *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData` -NewExternalPromotionDataRelationshipsOrderAmountPromotionRuleDataWithDefaults instantiates a new ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData object +NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleDataWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) GetType() interface{}` +`func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) GetTypeOk() (*interface{}, bool)` +`func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) SetType(v interface{})` +`func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) HasType() bool` +`func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) SetTypeNil(b bool)` +`func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) UnsetType()` +`func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) GetId() interface{}` +`func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) GetIdOk() (*interface{}, bool)` +`func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) SetId(v interface{})` +`func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) HasId() bool` +`func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) SetIdNil(b bool)` +`func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) UnsetId()` +`func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/BuyXPayYPromotionDataRelationshipsPromotionRules.md b/api/docs/BuyXPayYPromotionDataRelationshipsPromotionRules.md new file mode 100644 index 00000000..e7c73c53 --- /dev/null +++ b/api/docs/BuyXPayYPromotionDataRelationshipsPromotionRules.md @@ -0,0 +1,56 @@ +# BuyXPayYPromotionDataRelationshipsPromotionRules + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**BuyXPayYPromotionDataRelationshipsPromotionRulesData**](BuyXPayYPromotionDataRelationshipsPromotionRulesData.md) | | [optional] + +## Methods + +### NewBuyXPayYPromotionDataRelationshipsPromotionRules + +`func NewBuyXPayYPromotionDataRelationshipsPromotionRules() *BuyXPayYPromotionDataRelationshipsPromotionRules` + +NewBuyXPayYPromotionDataRelationshipsPromotionRules instantiates a new BuyXPayYPromotionDataRelationshipsPromotionRules object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionDataRelationshipsPromotionRulesWithDefaults + +`func NewBuyXPayYPromotionDataRelationshipsPromotionRulesWithDefaults() *BuyXPayYPromotionDataRelationshipsPromotionRules` + +NewBuyXPayYPromotionDataRelationshipsPromotionRulesWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsPromotionRules object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *BuyXPayYPromotionDataRelationshipsPromotionRules) GetData() BuyXPayYPromotionDataRelationshipsPromotionRulesData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *BuyXPayYPromotionDataRelationshipsPromotionRules) GetDataOk() (*BuyXPayYPromotionDataRelationshipsPromotionRulesData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *BuyXPayYPromotionDataRelationshipsPromotionRules) SetData(v BuyXPayYPromotionDataRelationshipsPromotionRulesData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *BuyXPayYPromotionDataRelationshipsPromotionRules) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ExternalPromotionDataRelationshipsPromotionRulesData.md b/api/docs/BuyXPayYPromotionDataRelationshipsPromotionRulesData.md similarity index 59% rename from api/docs/ExternalPromotionDataRelationshipsPromotionRulesData.md rename to api/docs/BuyXPayYPromotionDataRelationshipsPromotionRulesData.md index 3475c34f..cc00ce9e 100644 --- a/api/docs/ExternalPromotionDataRelationshipsPromotionRulesData.md +++ b/api/docs/BuyXPayYPromotionDataRelationshipsPromotionRulesData.md @@ -1,4 +1,4 @@ -# ExternalPromotionDataRelationshipsPromotionRulesData +# BuyXPayYPromotionDataRelationshipsPromotionRulesData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewExternalPromotionDataRelationshipsPromotionRulesData +### NewBuyXPayYPromotionDataRelationshipsPromotionRulesData -`func NewExternalPromotionDataRelationshipsPromotionRulesData() *ExternalPromotionDataRelationshipsPromotionRulesData` +`func NewBuyXPayYPromotionDataRelationshipsPromotionRulesData() *BuyXPayYPromotionDataRelationshipsPromotionRulesData` -NewExternalPromotionDataRelationshipsPromotionRulesData instantiates a new ExternalPromotionDataRelationshipsPromotionRulesData object +NewBuyXPayYPromotionDataRelationshipsPromotionRulesData instantiates a new BuyXPayYPromotionDataRelationshipsPromotionRulesData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewExternalPromotionDataRelationshipsPromotionRulesDataWithDefaults +### NewBuyXPayYPromotionDataRelationshipsPromotionRulesDataWithDefaults -`func NewExternalPromotionDataRelationshipsPromotionRulesDataWithDefaults() *ExternalPromotionDataRelationshipsPromotionRulesData` +`func NewBuyXPayYPromotionDataRelationshipsPromotionRulesDataWithDefaults() *BuyXPayYPromotionDataRelationshipsPromotionRulesData` -NewExternalPromotionDataRelationshipsPromotionRulesDataWithDefaults instantiates a new ExternalPromotionDataRelationshipsPromotionRulesData object +NewBuyXPayYPromotionDataRelationshipsPromotionRulesDataWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsPromotionRulesData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *ExternalPromotionDataRelationshipsPromotionRulesData) GetType() interface{}` +`func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *ExternalPromotionDataRelationshipsPromotionRulesData) GetTypeOk() (*interface{}, bool)` +`func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *ExternalPromotionDataRelationshipsPromotionRulesData) SetType(v interface{})` +`func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *ExternalPromotionDataRelationshipsPromotionRulesData) HasType() bool` +`func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *ExternalPromotionDataRelationshipsPromotionRulesData) SetTypeNil(b bool)` +`func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *ExternalPromotionDataRelationshipsPromotionRulesData) UnsetType()` +`func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *ExternalPromotionDataRelationshipsPromotionRulesData) GetId() interface{}` +`func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *ExternalPromotionDataRelationshipsPromotionRulesData) GetIdOk() (*interface{}, bool)` +`func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *ExternalPromotionDataRelationshipsPromotionRulesData) SetId(v interface{})` +`func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *ExternalPromotionDataRelationshipsPromotionRulesData) HasId() bool` +`func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *ExternalPromotionDataRelationshipsPromotionRulesData) SetIdNil(b bool)` +`func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *ExternalPromotionDataRelationshipsPromotionRulesData) UnsetId()` +`func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/BuyXPayYPromotionDataRelationshipsSkuListPromotionRule.md b/api/docs/BuyXPayYPromotionDataRelationshipsSkuListPromotionRule.md new file mode 100644 index 00000000..ed43b974 --- /dev/null +++ b/api/docs/BuyXPayYPromotionDataRelationshipsSkuListPromotionRule.md @@ -0,0 +1,56 @@ +# BuyXPayYPromotionDataRelationshipsSkuListPromotionRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData**](BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData.md) | | [optional] + +## Methods + +### NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRule + +`func NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRule() *BuyXPayYPromotionDataRelationshipsSkuListPromotionRule` + +NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRule instantiates a new BuyXPayYPromotionDataRelationshipsSkuListPromotionRule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleWithDefaults + +`func NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleWithDefaults() *BuyXPayYPromotionDataRelationshipsSkuListPromotionRule` + +NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsSkuListPromotionRule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRule) GetData() BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRule) GetDataOk() (*BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRule) SetData(v BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRule) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ExternalPromotionDataRelationshipsSkuListPromotionRuleData.md b/api/docs/BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData.md similarity index 60% rename from api/docs/ExternalPromotionDataRelationshipsSkuListPromotionRuleData.md rename to api/docs/BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData.md index bbab871c..73bc939c 100644 --- a/api/docs/ExternalPromotionDataRelationshipsSkuListPromotionRuleData.md +++ b/api/docs/BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData.md @@ -1,4 +1,4 @@ -# ExternalPromotionDataRelationshipsSkuListPromotionRuleData +# BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewExternalPromotionDataRelationshipsSkuListPromotionRuleData +### NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData -`func NewExternalPromotionDataRelationshipsSkuListPromotionRuleData() *ExternalPromotionDataRelationshipsSkuListPromotionRuleData` +`func NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData() *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData` -NewExternalPromotionDataRelationshipsSkuListPromotionRuleData instantiates a new ExternalPromotionDataRelationshipsSkuListPromotionRuleData object +NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData instantiates a new BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewExternalPromotionDataRelationshipsSkuListPromotionRuleDataWithDefaults +### NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleDataWithDefaults -`func NewExternalPromotionDataRelationshipsSkuListPromotionRuleDataWithDefaults() *ExternalPromotionDataRelationshipsSkuListPromotionRuleData` +`func NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleDataWithDefaults() *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData` -NewExternalPromotionDataRelationshipsSkuListPromotionRuleDataWithDefaults instantiates a new ExternalPromotionDataRelationshipsSkuListPromotionRuleData object +NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleDataWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) GetType() interface{}` +`func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) GetTypeOk() (*interface{}, bool)` +`func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) SetType(v interface{})` +`func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) HasType() bool` +`func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) SetTypeNil(b bool)` +`func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) UnsetType()` +`func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) GetId() interface{}` +`func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) GetIdOk() (*interface{}, bool)` +`func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) SetId(v interface{})` +`func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) HasId() bool` +`func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) SetIdNil(b bool)` +`func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) UnsetId()` +`func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/BuyXPayYPromotionUpdate.md b/api/docs/BuyXPayYPromotionUpdate.md new file mode 100644 index 00000000..639e8275 --- /dev/null +++ b/api/docs/BuyXPayYPromotionUpdate.md @@ -0,0 +1,51 @@ +# BuyXPayYPromotionUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**BuyXPayYPromotionUpdateData**](BuyXPayYPromotionUpdateData.md) | | + +## Methods + +### NewBuyXPayYPromotionUpdate + +`func NewBuyXPayYPromotionUpdate(data BuyXPayYPromotionUpdateData, ) *BuyXPayYPromotionUpdate` + +NewBuyXPayYPromotionUpdate instantiates a new BuyXPayYPromotionUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionUpdateWithDefaults + +`func NewBuyXPayYPromotionUpdateWithDefaults() *BuyXPayYPromotionUpdate` + +NewBuyXPayYPromotionUpdateWithDefaults instantiates a new BuyXPayYPromotionUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *BuyXPayYPromotionUpdate) GetData() BuyXPayYPromotionUpdateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *BuyXPayYPromotionUpdate) GetDataOk() (*BuyXPayYPromotionUpdateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *BuyXPayYPromotionUpdate) SetData(v BuyXPayYPromotionUpdateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/BuyXPayYPromotionUpdateData.md b/api/docs/BuyXPayYPromotionUpdateData.md new file mode 100644 index 00000000..0e80c54b --- /dev/null +++ b/api/docs/BuyXPayYPromotionUpdateData.md @@ -0,0 +1,139 @@ +# BuyXPayYPromotionUpdateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Id** | **interface{}** | The resource's id | +**Attributes** | [**PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes**](PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**BuyXPayYPromotionUpdateDataRelationships**](BuyXPayYPromotionUpdateDataRelationships.md) | | [optional] + +## Methods + +### NewBuyXPayYPromotionUpdateData + +`func NewBuyXPayYPromotionUpdateData(type_ interface{}, id interface{}, attributes PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes, ) *BuyXPayYPromotionUpdateData` + +NewBuyXPayYPromotionUpdateData instantiates a new BuyXPayYPromotionUpdateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionUpdateDataWithDefaults + +`func NewBuyXPayYPromotionUpdateDataWithDefaults() *BuyXPayYPromotionUpdateData` + +NewBuyXPayYPromotionUpdateDataWithDefaults instantiates a new BuyXPayYPromotionUpdateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *BuyXPayYPromotionUpdateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *BuyXPayYPromotionUpdateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *BuyXPayYPromotionUpdateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *BuyXPayYPromotionUpdateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *BuyXPayYPromotionUpdateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *BuyXPayYPromotionUpdateData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BuyXPayYPromotionUpdateData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BuyXPayYPromotionUpdateData) SetId(v interface{})` + +SetId sets Id field to given value. + + +### SetIdNil + +`func (o *BuyXPayYPromotionUpdateData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *BuyXPayYPromotionUpdateData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetAttributes + +`func (o *BuyXPayYPromotionUpdateData) GetAttributes() PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *BuyXPayYPromotionUpdateData) GetAttributesOk() (*PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *BuyXPayYPromotionUpdateData) SetAttributes(v PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *BuyXPayYPromotionUpdateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *BuyXPayYPromotionUpdateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *BuyXPayYPromotionUpdateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *BuyXPayYPromotionUpdateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/BuyXPayYPromotionUpdateDataRelationships.md b/api/docs/BuyXPayYPromotionUpdateDataRelationships.md new file mode 100644 index 00000000..4301ceb6 --- /dev/null +++ b/api/docs/BuyXPayYPromotionUpdateDataRelationships.md @@ -0,0 +1,212 @@ +# BuyXPayYPromotionUpdateDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Market** | Pointer to [**BillingInfoValidationRuleCreateDataRelationshipsMarket**](BillingInfoValidationRuleCreateDataRelationshipsMarket.md) | | [optional] +**OrderAmountPromotionRule** | Pointer to [**BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule**](BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule.md) | | [optional] +**SkuListPromotionRule** | Pointer to [**BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule**](BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule.md) | | [optional] +**CouponCodesPromotionRule** | Pointer to [**BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule**](BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule.md) | | [optional] +**CustomPromotionRule** | Pointer to [**BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule**](BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule.md) | | [optional] +**SkuList** | Pointer to [**BundleCreateDataRelationshipsSkuList**](BundleCreateDataRelationshipsSkuList.md) | | [optional] +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] + +## Methods + +### NewBuyXPayYPromotionUpdateDataRelationships + +`func NewBuyXPayYPromotionUpdateDataRelationships() *BuyXPayYPromotionUpdateDataRelationships` + +NewBuyXPayYPromotionUpdateDataRelationships instantiates a new BuyXPayYPromotionUpdateDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBuyXPayYPromotionUpdateDataRelationshipsWithDefaults + +`func NewBuyXPayYPromotionUpdateDataRelationshipsWithDefaults() *BuyXPayYPromotionUpdateDataRelationships` + +NewBuyXPayYPromotionUpdateDataRelationshipsWithDefaults instantiates a new BuyXPayYPromotionUpdateDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMarket + +`func (o *BuyXPayYPromotionUpdateDataRelationships) GetMarket() BillingInfoValidationRuleCreateDataRelationshipsMarket` + +GetMarket returns the Market field if non-nil, zero value otherwise. + +### GetMarketOk + +`func (o *BuyXPayYPromotionUpdateDataRelationships) GetMarketOk() (*BillingInfoValidationRuleCreateDataRelationshipsMarket, bool)` + +GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarket + +`func (o *BuyXPayYPromotionUpdateDataRelationships) SetMarket(v BillingInfoValidationRuleCreateDataRelationshipsMarket)` + +SetMarket sets Market field to given value. + +### HasMarket + +`func (o *BuyXPayYPromotionUpdateDataRelationships) HasMarket() bool` + +HasMarket returns a boolean if a field has been set. + +### GetOrderAmountPromotionRule + +`func (o *BuyXPayYPromotionUpdateDataRelationships) GetOrderAmountPromotionRule() BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule` + +GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field if non-nil, zero value otherwise. + +### GetOrderAmountPromotionRuleOk + +`func (o *BuyXPayYPromotionUpdateDataRelationships) GetOrderAmountPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule, bool)` + +GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderAmountPromotionRule + +`func (o *BuyXPayYPromotionUpdateDataRelationships) SetOrderAmountPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule)` + +SetOrderAmountPromotionRule sets OrderAmountPromotionRule field to given value. + +### HasOrderAmountPromotionRule + +`func (o *BuyXPayYPromotionUpdateDataRelationships) HasOrderAmountPromotionRule() bool` + +HasOrderAmountPromotionRule returns a boolean if a field has been set. + +### GetSkuListPromotionRule + +`func (o *BuyXPayYPromotionUpdateDataRelationships) GetSkuListPromotionRule() BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule` + +GetSkuListPromotionRule returns the SkuListPromotionRule field if non-nil, zero value otherwise. + +### GetSkuListPromotionRuleOk + +`func (o *BuyXPayYPromotionUpdateDataRelationships) GetSkuListPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule, bool)` + +GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuListPromotionRule + +`func (o *BuyXPayYPromotionUpdateDataRelationships) SetSkuListPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule)` + +SetSkuListPromotionRule sets SkuListPromotionRule field to given value. + +### HasSkuListPromotionRule + +`func (o *BuyXPayYPromotionUpdateDataRelationships) HasSkuListPromotionRule() bool` + +HasSkuListPromotionRule returns a boolean if a field has been set. + +### GetCouponCodesPromotionRule + +`func (o *BuyXPayYPromotionUpdateDataRelationships) GetCouponCodesPromotionRule() BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule` + +GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field if non-nil, zero value otherwise. + +### GetCouponCodesPromotionRuleOk + +`func (o *BuyXPayYPromotionUpdateDataRelationships) GetCouponCodesPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule, bool)` + +GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCouponCodesPromotionRule + +`func (o *BuyXPayYPromotionUpdateDataRelationships) SetCouponCodesPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule)` + +SetCouponCodesPromotionRule sets CouponCodesPromotionRule field to given value. + +### HasCouponCodesPromotionRule + +`func (o *BuyXPayYPromotionUpdateDataRelationships) HasCouponCodesPromotionRule() bool` + +HasCouponCodesPromotionRule returns a boolean if a field has been set. + +### GetCustomPromotionRule + +`func (o *BuyXPayYPromotionUpdateDataRelationships) GetCustomPromotionRule() BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule` + +GetCustomPromotionRule returns the CustomPromotionRule field if non-nil, zero value otherwise. + +### GetCustomPromotionRuleOk + +`func (o *BuyXPayYPromotionUpdateDataRelationships) GetCustomPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule, bool)` + +GetCustomPromotionRuleOk returns a tuple with the CustomPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomPromotionRule + +`func (o *BuyXPayYPromotionUpdateDataRelationships) SetCustomPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule)` + +SetCustomPromotionRule sets CustomPromotionRule field to given value. + +### HasCustomPromotionRule + +`func (o *BuyXPayYPromotionUpdateDataRelationships) HasCustomPromotionRule() bool` + +HasCustomPromotionRule returns a boolean if a field has been set. + +### GetSkuList + +`func (o *BuyXPayYPromotionUpdateDataRelationships) GetSkuList() BundleCreateDataRelationshipsSkuList` + +GetSkuList returns the SkuList field if non-nil, zero value otherwise. + +### GetSkuListOk + +`func (o *BuyXPayYPromotionUpdateDataRelationships) GetSkuListOk() (*BundleCreateDataRelationshipsSkuList, bool)` + +GetSkuListOk returns a tuple with the SkuList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuList + +`func (o *BuyXPayYPromotionUpdateDataRelationships) SetSkuList(v BundleCreateDataRelationshipsSkuList)` + +SetSkuList sets SkuList field to given value. + +### HasSkuList + +`func (o *BuyXPayYPromotionUpdateDataRelationships) HasSkuList() bool` + +HasSkuList returns a boolean if a field has been set. + +### GetTags + +`func (o *BuyXPayYPromotionUpdateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *BuyXPayYPromotionUpdateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *BuyXPayYPromotionUpdateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *BuyXPayYPromotionUpdateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/BuyXPayYPromotionsApi.md b/api/docs/BuyXPayYPromotionsApi.md new file mode 100644 index 00000000..d4d9c67a --- /dev/null +++ b/api/docs/BuyXPayYPromotionsApi.md @@ -0,0 +1,350 @@ +# \BuyXPayYPromotionsApi + +All URIs are relative to *https://.commercelayer.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DELETEBuyXPayYPromotionsBuyXPayYPromotionId**](BuyXPayYPromotionsApi.md#DELETEBuyXPayYPromotionsBuyXPayYPromotionId) | **Delete** /buy_x_pay_y_promotions/{buyXPayYPromotionId} | Delete a buy x pay y promotion +[**GETBuyXPayYPromotions**](BuyXPayYPromotionsApi.md#GETBuyXPayYPromotions) | **Get** /buy_x_pay_y_promotions | List all buy x pay y promotions +[**GETBuyXPayYPromotionsBuyXPayYPromotionId**](BuyXPayYPromotionsApi.md#GETBuyXPayYPromotionsBuyXPayYPromotionId) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId} | Retrieve a buy x pay y promotion +[**PATCHBuyXPayYPromotionsBuyXPayYPromotionId**](BuyXPayYPromotionsApi.md#PATCHBuyXPayYPromotionsBuyXPayYPromotionId) | **Patch** /buy_x_pay_y_promotions/{buyXPayYPromotionId} | Update a buy x pay y promotion +[**POSTBuyXPayYPromotions**](BuyXPayYPromotionsApi.md#POSTBuyXPayYPromotions) | **Post** /buy_x_pay_y_promotions | Create a buy x pay y promotion + + + +## DELETEBuyXPayYPromotionsBuyXPayYPromotionId + +> DELETEBuyXPayYPromotionsBuyXPayYPromotionId(ctx, buyXPayYPromotionId).Execute() + +Delete a buy x pay y promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + buyXPayYPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.BuyXPayYPromotionsApi.DELETEBuyXPayYPromotionsBuyXPayYPromotionId(context.Background(), buyXPayYPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuyXPayYPromotionsApi.DELETEBuyXPayYPromotionsBuyXPayYPromotionId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDELETEBuyXPayYPromotionsBuyXPayYPromotionIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETBuyXPayYPromotions + +> GETBuyXPayYPromotions200Response GETBuyXPayYPromotions(ctx).Execute() + +List all buy x pay y promotions + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuyXPayYPromotionsApi.GETBuyXPayYPromotions(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuyXPayYPromotionsApi.GETBuyXPayYPromotions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETBuyXPayYPromotions`: GETBuyXPayYPromotions200Response + fmt.Fprintf(os.Stdout, "Response from `BuyXPayYPromotionsApi.GETBuyXPayYPromotions`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionsRequest struct via the builder pattern + + +### Return type + +[**GETBuyXPayYPromotions200Response**](GETBuyXPayYPromotions200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETBuyXPayYPromotionsBuyXPayYPromotionId + +> GETBuyXPayYPromotionsBuyXPayYPromotionId200Response GETBuyXPayYPromotionsBuyXPayYPromotionId(ctx, buyXPayYPromotionId).Execute() + +Retrieve a buy x pay y promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + buyXPayYPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuyXPayYPromotionsApi.GETBuyXPayYPromotionsBuyXPayYPromotionId(context.Background(), buyXPayYPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuyXPayYPromotionsApi.GETBuyXPayYPromotionsBuyXPayYPromotionId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETBuyXPayYPromotionsBuyXPayYPromotionId`: GETBuyXPayYPromotionsBuyXPayYPromotionId200Response + fmt.Fprintf(os.Stdout, "Response from `BuyXPayYPromotionsApi.GETBuyXPayYPromotionsBuyXPayYPromotionId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionsBuyXPayYPromotionIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**GETBuyXPayYPromotionsBuyXPayYPromotionId200Response**](GETBuyXPayYPromotionsBuyXPayYPromotionId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PATCHBuyXPayYPromotionsBuyXPayYPromotionId + +> PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response PATCHBuyXPayYPromotionsBuyXPayYPromotionId(ctx, buyXPayYPromotionId).BuyXPayYPromotionUpdate(buyXPayYPromotionUpdate).Execute() + +Update a buy x pay y promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + buyXPayYPromotionUpdate := *openapiclient.NewBuyXPayYPromotionUpdate(*openapiclient.NewBuyXPayYPromotionUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes())) // BuyXPayYPromotionUpdate | + buyXPayYPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuyXPayYPromotionsApi.PATCHBuyXPayYPromotionsBuyXPayYPromotionId(context.Background(), buyXPayYPromotionId).BuyXPayYPromotionUpdate(buyXPayYPromotionUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuyXPayYPromotionsApi.PATCHBuyXPayYPromotionsBuyXPayYPromotionId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PATCHBuyXPayYPromotionsBuyXPayYPromotionId`: PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response + fmt.Fprintf(os.Stdout, "Response from `BuyXPayYPromotionsApi.PATCHBuyXPayYPromotionsBuyXPayYPromotionId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPATCHBuyXPayYPromotionsBuyXPayYPromotionIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **buyXPayYPromotionUpdate** | [**BuyXPayYPromotionUpdate**](BuyXPayYPromotionUpdate.md) | | + + +### Return type + +[**PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response**](PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## POSTBuyXPayYPromotions + +> POSTBuyXPayYPromotions201Response POSTBuyXPayYPromotions(ctx).BuyXPayYPromotionCreate(buyXPayYPromotionCreate).Execute() + +Create a buy x pay y promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + buyXPayYPromotionCreate := *openapiclient.NewBuyXPayYPromotionCreate(*openapiclient.NewBuyXPayYPromotionCreateData(interface{}(123), *openapiclient.NewPOSTBuyXPayYPromotions201ResponseDataAttributes(interface{}(Personal promotion), interface{}(2018-01-01T12:00:00.000Z), interface{}(2018-01-02T12:00:00.000Z), interface{}(3), interface{}(2)))) // BuyXPayYPromotionCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuyXPayYPromotionsApi.POSTBuyXPayYPromotions(context.Background()).BuyXPayYPromotionCreate(buyXPayYPromotionCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuyXPayYPromotionsApi.POSTBuyXPayYPromotions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `POSTBuyXPayYPromotions`: POSTBuyXPayYPromotions201Response + fmt.Fprintf(os.Stdout, "Response from `BuyXPayYPromotionsApi.POSTBuyXPayYPromotions`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPOSTBuyXPayYPromotionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **buyXPayYPromotionCreate** | [**BuyXPayYPromotionCreate**](BuyXPayYPromotionCreate.md) | | + +### Return type + +[**POSTBuyXPayYPromotions201Response**](POSTBuyXPayYPromotions201Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/api/docs/CaptureDataRelationships.md b/api/docs/CaptureDataRelationships.md index 547bd81a..16e621ab 100644 --- a/api/docs/CaptureDataRelationships.md +++ b/api/docs/CaptureDataRelationships.md @@ -5,9 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Order** | Pointer to [**AdyenPaymentDataRelationshipsOrder**](AdyenPaymentDataRelationshipsOrder.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] **ReferenceAuthorization** | Pointer to [**CaptureDataRelationshipsReferenceAuthorization**](CaptureDataRelationshipsReferenceAuthorization.md) | | [optional] **Refunds** | Pointer to [**CaptureDataRelationshipsRefunds**](CaptureDataRelationshipsRefunds.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] +**Return** | Pointer to [**CaptureDataRelationshipsReturn**](CaptureDataRelationshipsReturn.md) | | [optional] ## Methods @@ -53,6 +56,81 @@ SetOrder sets Order field to given value. HasOrder returns a boolean if a field has been set. +### GetAttachments + +`func (o *CaptureDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *CaptureDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *CaptureDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *CaptureDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + +### GetEvents + +`func (o *CaptureDataRelationships) GetEvents() AddressDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *CaptureDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *CaptureDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *CaptureDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetVersions + +`func (o *CaptureDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *CaptureDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *CaptureDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *CaptureDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetReferenceAuthorization `func (o *CaptureDataRelationships) GetReferenceAuthorization() CaptureDataRelationshipsReferenceAuthorization` @@ -103,30 +181,30 @@ SetRefunds sets Refunds field to given value. HasRefunds returns a boolean if a field has been set. -### GetEvents +### GetReturn -`func (o *CaptureDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` +`func (o *CaptureDataRelationships) GetReturn() CaptureDataRelationshipsReturn` -GetEvents returns the Events field if non-nil, zero value otherwise. +GetReturn returns the Return field if non-nil, zero value otherwise. -### GetEventsOk +### GetReturnOk -`func (o *CaptureDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` +`func (o *CaptureDataRelationships) GetReturnOk() (*CaptureDataRelationshipsReturn, bool)` -GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +GetReturnOk returns a tuple with the Return field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetEvents +### SetReturn -`func (o *CaptureDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` +`func (o *CaptureDataRelationships) SetReturn(v CaptureDataRelationshipsReturn)` -SetEvents sets Events field to given value. +SetReturn sets Return field to given value. -### HasEvents +### HasReturn -`func (o *CaptureDataRelationships) HasEvents() bool` +`func (o *CaptureDataRelationships) HasReturn() bool` -HasEvents returns a boolean if a field has been set. +HasReturn returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/CaptureDataRelationshipsReturn.md b/api/docs/CaptureDataRelationshipsReturn.md new file mode 100644 index 00000000..f425f416 --- /dev/null +++ b/api/docs/CaptureDataRelationshipsReturn.md @@ -0,0 +1,56 @@ +# CaptureDataRelationshipsReturn + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**CaptureDataRelationshipsReturnData**](CaptureDataRelationshipsReturnData.md) | | [optional] + +## Methods + +### NewCaptureDataRelationshipsReturn + +`func NewCaptureDataRelationshipsReturn() *CaptureDataRelationshipsReturn` + +NewCaptureDataRelationshipsReturn instantiates a new CaptureDataRelationshipsReturn object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCaptureDataRelationshipsReturnWithDefaults + +`func NewCaptureDataRelationshipsReturnWithDefaults() *CaptureDataRelationshipsReturn` + +NewCaptureDataRelationshipsReturnWithDefaults instantiates a new CaptureDataRelationshipsReturn object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *CaptureDataRelationshipsReturn) GetData() CaptureDataRelationshipsReturnData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *CaptureDataRelationshipsReturn) GetDataOk() (*CaptureDataRelationshipsReturnData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *CaptureDataRelationshipsReturn) SetData(v CaptureDataRelationshipsReturnData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *CaptureDataRelationshipsReturn) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/SkuDataRelationshipsStockItemsData.md b/api/docs/CaptureDataRelationshipsReturnData.md similarity index 61% rename from api/docs/SkuDataRelationshipsStockItemsData.md rename to api/docs/CaptureDataRelationshipsReturnData.md index 994135ae..23359071 100644 --- a/api/docs/SkuDataRelationshipsStockItemsData.md +++ b/api/docs/CaptureDataRelationshipsReturnData.md @@ -1,4 +1,4 @@ -# SkuDataRelationshipsStockItemsData +# CaptureDataRelationshipsReturnData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewSkuDataRelationshipsStockItemsData +### NewCaptureDataRelationshipsReturnData -`func NewSkuDataRelationshipsStockItemsData() *SkuDataRelationshipsStockItemsData` +`func NewCaptureDataRelationshipsReturnData() *CaptureDataRelationshipsReturnData` -NewSkuDataRelationshipsStockItemsData instantiates a new SkuDataRelationshipsStockItemsData object +NewCaptureDataRelationshipsReturnData instantiates a new CaptureDataRelationshipsReturnData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewSkuDataRelationshipsStockItemsDataWithDefaults +### NewCaptureDataRelationshipsReturnDataWithDefaults -`func NewSkuDataRelationshipsStockItemsDataWithDefaults() *SkuDataRelationshipsStockItemsData` +`func NewCaptureDataRelationshipsReturnDataWithDefaults() *CaptureDataRelationshipsReturnData` -NewSkuDataRelationshipsStockItemsDataWithDefaults instantiates a new SkuDataRelationshipsStockItemsData object +NewCaptureDataRelationshipsReturnDataWithDefaults instantiates a new CaptureDataRelationshipsReturnData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *SkuDataRelationshipsStockItemsData) GetType() interface{}` +`func (o *CaptureDataRelationshipsReturnData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *SkuDataRelationshipsStockItemsData) GetTypeOk() (*interface{}, bool)` +`func (o *CaptureDataRelationshipsReturnData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *SkuDataRelationshipsStockItemsData) SetType(v interface{})` +`func (o *CaptureDataRelationshipsReturnData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *SkuDataRelationshipsStockItemsData) HasType() bool` +`func (o *CaptureDataRelationshipsReturnData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *SkuDataRelationshipsStockItemsData) SetTypeNil(b bool)` +`func (o *CaptureDataRelationshipsReturnData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *SkuDataRelationshipsStockItemsData) UnsetType()` +`func (o *CaptureDataRelationshipsReturnData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *SkuDataRelationshipsStockItemsData) GetId() interface{}` +`func (o *CaptureDataRelationshipsReturnData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *SkuDataRelationshipsStockItemsData) GetIdOk() (*interface{}, bool)` +`func (o *CaptureDataRelationshipsReturnData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *SkuDataRelationshipsStockItemsData) SetId(v interface{})` +`func (o *CaptureDataRelationshipsReturnData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *SkuDataRelationshipsStockItemsData) HasId() bool` +`func (o *CaptureDataRelationshipsReturnData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *SkuDataRelationshipsStockItemsData) SetIdNil(b bool)` +`func (o *CaptureDataRelationshipsReturnData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *SkuDataRelationshipsStockItemsData) UnsetId()` +`func (o *CaptureDataRelationshipsReturnData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/CapturesApi.md b/api/docs/CapturesApi.md index 2ccd28dd..010d4a01 100644 --- a/api/docs/CapturesApi.md +++ b/api/docs/CapturesApi.md @@ -9,6 +9,7 @@ Method | HTTP request | Description [**GETCapturesCaptureId**](CapturesApi.md#GETCapturesCaptureId) | **Get** /captures/{captureId} | Retrieve a capture [**GETOrderIdCaptures**](CapturesApi.md#GETOrderIdCaptures) | **Get** /orders/{orderId}/captures | Retrieve the captures associated to the order [**GETRefundIdReferenceCapture**](CapturesApi.md#GETRefundIdReferenceCapture) | **Get** /refunds/{refundId}/reference_capture | Retrieve the reference capture associated to the refund +[**GETReturnIdReferenceCapture**](CapturesApi.md#GETReturnIdReferenceCapture) | **Get** /returns/{returnId}/reference_capture | Retrieve the reference capture associated to the return [**PATCHCapturesCaptureId**](CapturesApi.md#PATCHCapturesCaptureId) | **Patch** /captures/{captureId} | Update a capture @@ -348,6 +349,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETReturnIdReferenceCapture + +> GETReturnIdReferenceCapture(ctx, returnId).Execute() + +Retrieve the reference capture associated to the return + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + returnId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CapturesApi.GETReturnIdReferenceCapture(context.Background(), returnId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CapturesApi.GETReturnIdReferenceCapture``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**returnId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETReturnIdReferenceCaptureRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## PATCHCapturesCaptureId > PATCHCapturesCaptureId200Response PATCHCapturesCaptureId(ctx, captureId).CaptureUpdate(captureUpdate).Execute() diff --git a/api/docs/CarrierAccountCreate.md b/api/docs/CarrierAccountCreate.md new file mode 100644 index 00000000..96c2640b --- /dev/null +++ b/api/docs/CarrierAccountCreate.md @@ -0,0 +1,51 @@ +# CarrierAccountCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**CarrierAccountCreateData**](CarrierAccountCreateData.md) | | + +## Methods + +### NewCarrierAccountCreate + +`func NewCarrierAccountCreate(data CarrierAccountCreateData, ) *CarrierAccountCreate` + +NewCarrierAccountCreate instantiates a new CarrierAccountCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCarrierAccountCreateWithDefaults + +`func NewCarrierAccountCreateWithDefaults() *CarrierAccountCreate` + +NewCarrierAccountCreateWithDefaults instantiates a new CarrierAccountCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *CarrierAccountCreate) GetData() CarrierAccountCreateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *CarrierAccountCreate) GetDataOk() (*CarrierAccountCreateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *CarrierAccountCreate) SetData(v CarrierAccountCreateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/CarrierAccountCreateData.md b/api/docs/CarrierAccountCreateData.md new file mode 100644 index 00000000..c6701aba --- /dev/null +++ b/api/docs/CarrierAccountCreateData.md @@ -0,0 +1,108 @@ +# CarrierAccountCreateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**POSTCarrierAccounts201ResponseDataAttributes**](POSTCarrierAccounts201ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**BillingInfoValidationRuleUpdateDataRelationships**](BillingInfoValidationRuleUpdateDataRelationships.md) | | [optional] + +## Methods + +### NewCarrierAccountCreateData + +`func NewCarrierAccountCreateData(type_ interface{}, attributes POSTCarrierAccounts201ResponseDataAttributes, ) *CarrierAccountCreateData` + +NewCarrierAccountCreateData instantiates a new CarrierAccountCreateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCarrierAccountCreateDataWithDefaults + +`func NewCarrierAccountCreateDataWithDefaults() *CarrierAccountCreateData` + +NewCarrierAccountCreateDataWithDefaults instantiates a new CarrierAccountCreateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *CarrierAccountCreateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CarrierAccountCreateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CarrierAccountCreateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *CarrierAccountCreateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *CarrierAccountCreateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *CarrierAccountCreateData) GetAttributes() POSTCarrierAccounts201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *CarrierAccountCreateData) GetAttributesOk() (*POSTCarrierAccounts201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *CarrierAccountCreateData) SetAttributes(v POSTCarrierAccounts201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *CarrierAccountCreateData) GetRelationships() BillingInfoValidationRuleUpdateDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *CarrierAccountCreateData) GetRelationshipsOk() (*BillingInfoValidationRuleUpdateDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *CarrierAccountCreateData) SetRelationships(v BillingInfoValidationRuleUpdateDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *CarrierAccountCreateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/CarrierAccountUpdate.md b/api/docs/CarrierAccountUpdate.md new file mode 100644 index 00000000..7d5da95b --- /dev/null +++ b/api/docs/CarrierAccountUpdate.md @@ -0,0 +1,51 @@ +# CarrierAccountUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**CarrierAccountUpdateData**](CarrierAccountUpdateData.md) | | + +## Methods + +### NewCarrierAccountUpdate + +`func NewCarrierAccountUpdate(data CarrierAccountUpdateData, ) *CarrierAccountUpdate` + +NewCarrierAccountUpdate instantiates a new CarrierAccountUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCarrierAccountUpdateWithDefaults + +`func NewCarrierAccountUpdateWithDefaults() *CarrierAccountUpdate` + +NewCarrierAccountUpdateWithDefaults instantiates a new CarrierAccountUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *CarrierAccountUpdate) GetData() CarrierAccountUpdateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *CarrierAccountUpdate) GetDataOk() (*CarrierAccountUpdateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *CarrierAccountUpdate) SetData(v CarrierAccountUpdateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/CarrierAccountUpdateData.md b/api/docs/CarrierAccountUpdateData.md new file mode 100644 index 00000000..61316764 --- /dev/null +++ b/api/docs/CarrierAccountUpdateData.md @@ -0,0 +1,139 @@ +# CarrierAccountUpdateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Id** | **interface{}** | The resource's id | +**Attributes** | [**PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes**](PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**BillingInfoValidationRuleUpdateDataRelationships**](BillingInfoValidationRuleUpdateDataRelationships.md) | | [optional] + +## Methods + +### NewCarrierAccountUpdateData + +`func NewCarrierAccountUpdateData(type_ interface{}, id interface{}, attributes PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes, ) *CarrierAccountUpdateData` + +NewCarrierAccountUpdateData instantiates a new CarrierAccountUpdateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCarrierAccountUpdateDataWithDefaults + +`func NewCarrierAccountUpdateDataWithDefaults() *CarrierAccountUpdateData` + +NewCarrierAccountUpdateDataWithDefaults instantiates a new CarrierAccountUpdateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *CarrierAccountUpdateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CarrierAccountUpdateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CarrierAccountUpdateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *CarrierAccountUpdateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *CarrierAccountUpdateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *CarrierAccountUpdateData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CarrierAccountUpdateData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CarrierAccountUpdateData) SetId(v interface{})` + +SetId sets Id field to given value. + + +### SetIdNil + +`func (o *CarrierAccountUpdateData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *CarrierAccountUpdateData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetAttributes + +`func (o *CarrierAccountUpdateData) GetAttributes() PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *CarrierAccountUpdateData) GetAttributesOk() (*PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *CarrierAccountUpdateData) SetAttributes(v PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *CarrierAccountUpdateData) GetRelationships() BillingInfoValidationRuleUpdateDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *CarrierAccountUpdateData) GetRelationshipsOk() (*BillingInfoValidationRuleUpdateDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *CarrierAccountUpdateData) SetRelationships(v BillingInfoValidationRuleUpdateDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *CarrierAccountUpdateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/CarrierAccountsApi.md b/api/docs/CarrierAccountsApi.md index 5e315f4e..5d63809a 100644 --- a/api/docs/CarrierAccountsApi.md +++ b/api/docs/CarrierAccountsApi.md @@ -4,12 +4,83 @@ All URIs are relative to *https://.commercelayer.io/api* Method | HTTP request | Description ------------- | ------------- | ------------- +[**DELETECarrierAccountsCarrierAccountId**](CarrierAccountsApi.md#DELETECarrierAccountsCarrierAccountId) | **Delete** /carrier_accounts/{carrierAccountId} | Delete a carrier account [**GETCarrierAccounts**](CarrierAccountsApi.md#GETCarrierAccounts) | **Get** /carrier_accounts | List all carrier accounts [**GETCarrierAccountsCarrierAccountId**](CarrierAccountsApi.md#GETCarrierAccountsCarrierAccountId) | **Get** /carrier_accounts/{carrierAccountId} | Retrieve a carrier account [**GETShipmentIdCarrierAccounts**](CarrierAccountsApi.md#GETShipmentIdCarrierAccounts) | **Get** /shipments/{shipmentId}/carrier_accounts | Retrieve the carrier accounts associated to the shipment +[**PATCHCarrierAccountsCarrierAccountId**](CarrierAccountsApi.md#PATCHCarrierAccountsCarrierAccountId) | **Patch** /carrier_accounts/{carrierAccountId} | Update a carrier account +[**POSTCarrierAccounts**](CarrierAccountsApi.md#POSTCarrierAccounts) | **Post** /carrier_accounts | Create a carrier account +## DELETECarrierAccountsCarrierAccountId + +> DELETECarrierAccountsCarrierAccountId(ctx, carrierAccountId).Execute() + +Delete a carrier account + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + carrierAccountId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CarrierAccountsApi.DELETECarrierAccountsCarrierAccountId(context.Background(), carrierAccountId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CarrierAccountsApi.DELETECarrierAccountsCarrierAccountId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**carrierAccountId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDELETECarrierAccountsCarrierAccountIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETCarrierAccounts > GETCarrierAccounts200Response GETCarrierAccounts(ctx).Execute() @@ -208,3 +279,141 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## PATCHCarrierAccountsCarrierAccountId + +> PATCHCarrierAccountsCarrierAccountId200Response PATCHCarrierAccountsCarrierAccountId(ctx, carrierAccountId).CarrierAccountUpdate(carrierAccountUpdate).Execute() + +Update a carrier account + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + carrierAccountUpdate := *openapiclient.NewCarrierAccountUpdate(*openapiclient.NewCarrierAccountUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes())) // CarrierAccountUpdate | + carrierAccountId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CarrierAccountsApi.PATCHCarrierAccountsCarrierAccountId(context.Background(), carrierAccountId).CarrierAccountUpdate(carrierAccountUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CarrierAccountsApi.PATCHCarrierAccountsCarrierAccountId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PATCHCarrierAccountsCarrierAccountId`: PATCHCarrierAccountsCarrierAccountId200Response + fmt.Fprintf(os.Stdout, "Response from `CarrierAccountsApi.PATCHCarrierAccountsCarrierAccountId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**carrierAccountId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPATCHCarrierAccountsCarrierAccountIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **carrierAccountUpdate** | [**CarrierAccountUpdate**](CarrierAccountUpdate.md) | | + + +### Return type + +[**PATCHCarrierAccountsCarrierAccountId200Response**](PATCHCarrierAccountsCarrierAccountId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## POSTCarrierAccounts + +> POSTCarrierAccounts201Response POSTCarrierAccounts(ctx).CarrierAccountCreate(carrierAccountCreate).Execute() + +Create a carrier account + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + carrierAccountCreate := *openapiclient.NewCarrierAccountCreate(*openapiclient.NewCarrierAccountCreateData(interface{}(123), *openapiclient.NewPOSTCarrierAccounts201ResponseDataAttributes(interface{}(Accurate), interface{}(AccurateAccount), interface{}({username=xxxx, password=secret})))) // CarrierAccountCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CarrierAccountsApi.POSTCarrierAccounts(context.Background()).CarrierAccountCreate(carrierAccountCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CarrierAccountsApi.POSTCarrierAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `POSTCarrierAccounts`: POSTCarrierAccounts201Response + fmt.Fprintf(os.Stdout, "Response from `CarrierAccountsApi.POSTCarrierAccounts`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPOSTCarrierAccountsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **carrierAccountCreate** | [**CarrierAccountCreate**](CarrierAccountCreate.md) | | + +### Return type + +[**POSTCarrierAccounts201Response**](POSTCarrierAccounts201Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/api/docs/CheckoutComGatewayDataRelationships.md b/api/docs/CheckoutComGatewayDataRelationships.md index 3c8075d4..659d5fb6 100644 --- a/api/docs/CheckoutComGatewayDataRelationships.md +++ b/api/docs/CheckoutComGatewayDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**AdyenGatewayDataRelationshipsPaymentMethods**](AdyenGatewayDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] **CheckoutComPayments** | Pointer to [**CheckoutComGatewayDataRelationshipsCheckoutComPayments**](CheckoutComGatewayDataRelationshipsCheckoutComPayments.md) | | [optional] ## Methods @@ -51,6 +52,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *CheckoutComGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *CheckoutComGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *CheckoutComGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *CheckoutComGatewayDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetCheckoutComPayments `func (o *CheckoutComGatewayDataRelationships) GetCheckoutComPayments() CheckoutComGatewayDataRelationshipsCheckoutComPayments` diff --git a/api/docs/CleanupDataRelationships.md b/api/docs/CleanupDataRelationships.md index 20090ad8..d3a01318 100644 --- a/api/docs/CleanupDataRelationships.md +++ b/api/docs/CleanupDataRelationships.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -27,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetEvents -`func (o *CleanupDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` +`func (o *CleanupDataRelationships) GetEvents() AddressDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *CleanupDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` +`func (o *CleanupDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *CleanupDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` +`func (o *CleanupDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -50,6 +51,31 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetVersions + +`func (o *CleanupDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *CleanupDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *CleanupDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *CleanupDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/CleanupUpdate.md b/api/docs/CleanupUpdate.md new file mode 100644 index 00000000..6608a6f3 --- /dev/null +++ b/api/docs/CleanupUpdate.md @@ -0,0 +1,51 @@ +# CleanupUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**CleanupUpdateData**](CleanupUpdateData.md) | | + +## Methods + +### NewCleanupUpdate + +`func NewCleanupUpdate(data CleanupUpdateData, ) *CleanupUpdate` + +NewCleanupUpdate instantiates a new CleanupUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCleanupUpdateWithDefaults + +`func NewCleanupUpdateWithDefaults() *CleanupUpdate` + +NewCleanupUpdateWithDefaults instantiates a new CleanupUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *CleanupUpdate) GetData() CleanupUpdateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *CleanupUpdate) GetDataOk() (*CleanupUpdateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *CleanupUpdate) SetData(v CleanupUpdateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/CleanupUpdateData.md b/api/docs/CleanupUpdateData.md new file mode 100644 index 00000000..f4f9fb73 --- /dev/null +++ b/api/docs/CleanupUpdateData.md @@ -0,0 +1,149 @@ +# CleanupUpdateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Id** | **interface{}** | The resource's id | +**Attributes** | [**PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes**](PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewCleanupUpdateData + +`func NewCleanupUpdateData(type_ interface{}, id interface{}, attributes PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, ) *CleanupUpdateData` + +NewCleanupUpdateData instantiates a new CleanupUpdateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCleanupUpdateDataWithDefaults + +`func NewCleanupUpdateDataWithDefaults() *CleanupUpdateData` + +NewCleanupUpdateDataWithDefaults instantiates a new CleanupUpdateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *CleanupUpdateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CleanupUpdateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CleanupUpdateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *CleanupUpdateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *CleanupUpdateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *CleanupUpdateData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CleanupUpdateData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CleanupUpdateData) SetId(v interface{})` + +SetId sets Id field to given value. + + +### SetIdNil + +`func (o *CleanupUpdateData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *CleanupUpdateData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetAttributes + +`func (o *CleanupUpdateData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *CleanupUpdateData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *CleanupUpdateData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *CleanupUpdateData) GetRelationships() interface{}` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *CleanupUpdateData) GetRelationshipsOk() (*interface{}, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *CleanupUpdateData) SetRelationships(v interface{})` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *CleanupUpdateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### SetRelationshipsNil + +`func (o *CleanupUpdateData) SetRelationshipsNil(b bool)` + + SetRelationshipsNil sets the value for Relationships to be an explicit nil + +### UnsetRelationships +`func (o *CleanupUpdateData) UnsetRelationships()` + +UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/CleanupsApi.md b/api/docs/CleanupsApi.md index 03ad3b19..8501acf5 100644 --- a/api/docs/CleanupsApi.md +++ b/api/docs/CleanupsApi.md @@ -7,6 +7,7 @@ Method | HTTP request | Description [**DELETECleanupsCleanupId**](CleanupsApi.md#DELETECleanupsCleanupId) | **Delete** /cleanups/{cleanupId} | Delete a cleanup [**GETCleanups**](CleanupsApi.md#GETCleanups) | **Get** /cleanups | List all cleanups [**GETCleanupsCleanupId**](CleanupsApi.md#GETCleanupsCleanupId) | **Get** /cleanups/{cleanupId} | Retrieve a cleanup +[**PATCHCleanupsCleanupId**](CleanupsApi.md#PATCHCleanupsCleanupId) | **Patch** /cleanups/{cleanupId} | Update a cleanup [**POSTCleanups**](CleanupsApi.md#POSTCleanups) | **Post** /cleanups | Create a cleanup @@ -210,6 +211,78 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## PATCHCleanupsCleanupId + +> PATCHCleanupsCleanupId200Response PATCHCleanupsCleanupId(ctx, cleanupId).CleanupUpdate(cleanupUpdate).Execute() + +Update a cleanup + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + cleanupUpdate := *openapiclient.NewCleanupUpdate(*openapiclient.NewCleanupUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes())) // CleanupUpdate | + cleanupId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CleanupsApi.PATCHCleanupsCleanupId(context.Background(), cleanupId).CleanupUpdate(cleanupUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CleanupsApi.PATCHCleanupsCleanupId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PATCHCleanupsCleanupId`: PATCHCleanupsCleanupId200Response + fmt.Fprintf(os.Stdout, "Response from `CleanupsApi.PATCHCleanupsCleanupId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**cleanupId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPATCHCleanupsCleanupIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cleanupUpdate** | [**CleanupUpdate**](CleanupUpdate.md) | | + + +### Return type + +[**PATCHCleanupsCleanupId200Response**](PATCHCleanupsCleanupId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## POSTCleanups > POSTCleanups201Response POSTCleanups(ctx).CleanupCreate(cleanupCreate).Execute() diff --git a/api/docs/CouponCodesPromotionRuleCreateDataRelationshipsCoupons.md b/api/docs/CouponCodesPromotionRuleCreateDataRelationshipsCoupons.md index d3732c75..52d7f1f0 100644 --- a/api/docs/CouponCodesPromotionRuleCreateDataRelationshipsCoupons.md +++ b/api/docs/CouponCodesPromotionRuleCreateDataRelationshipsCoupons.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | [**CouponCodesPromotionRuleDataRelationshipsCouponsData**](CouponCodesPromotionRuleDataRelationshipsCouponsData.md) | | +**Data** | [**BuyXPayYPromotionDataRelationshipsCouponsData**](BuyXPayYPromotionDataRelationshipsCouponsData.md) | | ## Methods ### NewCouponCodesPromotionRuleCreateDataRelationshipsCoupons -`func NewCouponCodesPromotionRuleCreateDataRelationshipsCoupons(data CouponCodesPromotionRuleDataRelationshipsCouponsData, ) *CouponCodesPromotionRuleCreateDataRelationshipsCoupons` +`func NewCouponCodesPromotionRuleCreateDataRelationshipsCoupons(data BuyXPayYPromotionDataRelationshipsCouponsData, ) *CouponCodesPromotionRuleCreateDataRelationshipsCoupons` NewCouponCodesPromotionRuleCreateDataRelationshipsCoupons instantiates a new CouponCodesPromotionRuleCreateDataRelationshipsCoupons object This constructor will assign default values to properties that have it defined, @@ -27,20 +27,20 @@ but it doesn't guarantee that properties required by API are set ### GetData -`func (o *CouponCodesPromotionRuleCreateDataRelationshipsCoupons) GetData() CouponCodesPromotionRuleDataRelationshipsCouponsData` +`func (o *CouponCodesPromotionRuleCreateDataRelationshipsCoupons) GetData() BuyXPayYPromotionDataRelationshipsCouponsData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *CouponCodesPromotionRuleCreateDataRelationshipsCoupons) GetDataOk() (*CouponCodesPromotionRuleDataRelationshipsCouponsData, bool)` +`func (o *CouponCodesPromotionRuleCreateDataRelationshipsCoupons) GetDataOk() (*BuyXPayYPromotionDataRelationshipsCouponsData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *CouponCodesPromotionRuleCreateDataRelationshipsCoupons) SetData(v CouponCodesPromotionRuleDataRelationshipsCouponsData)` +`func (o *CouponCodesPromotionRuleCreateDataRelationshipsCoupons) SetData(v BuyXPayYPromotionDataRelationshipsCouponsData)` SetData sets Data field to given value. diff --git a/api/docs/CouponCodesPromotionRuleData.md b/api/docs/CouponCodesPromotionRuleData.md index 66299ac8..85f95f60 100644 --- a/api/docs/CouponCodesPromotionRuleData.md +++ b/api/docs/CouponCodesPromotionRuleData.md @@ -5,14 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | -**Attributes** | [**GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes**](GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md) | | +**Attributes** | [**GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes**](GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes.md) | | **Relationships** | Pointer to [**CouponCodesPromotionRuleDataRelationships**](CouponCodesPromotionRuleDataRelationships.md) | | [optional] ## Methods ### NewCouponCodesPromotionRuleData -`func NewCouponCodesPromotionRuleData(type_ interface{}, attributes GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, ) *CouponCodesPromotionRuleData` +`func NewCouponCodesPromotionRuleData(type_ interface{}, attributes GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes, ) *CouponCodesPromotionRuleData` NewCouponCodesPromotionRuleData instantiates a new CouponCodesPromotionRuleData object This constructor will assign default values to properties that have it defined, @@ -59,20 +59,20 @@ SetType sets Type field to given value. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetAttributes -`func (o *CouponCodesPromotionRuleData) GetAttributes() GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes` +`func (o *CouponCodesPromotionRuleData) GetAttributes() GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *CouponCodesPromotionRuleData) GetAttributesOk() (*GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool)` +`func (o *CouponCodesPromotionRuleData) GetAttributesOk() (*GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *CouponCodesPromotionRuleData) SetAttributes(v GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes)` +`func (o *CouponCodesPromotionRuleData) SetAttributes(v GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes)` SetAttributes sets Attributes field to given value. diff --git a/api/docs/CouponCodesPromotionRuleDataRelationships.md b/api/docs/CouponCodesPromotionRuleDataRelationships.md index 42111c4d..4e7c4499 100644 --- a/api/docs/CouponCodesPromotionRuleDataRelationships.md +++ b/api/docs/CouponCodesPromotionRuleDataRelationships.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Promotion** | Pointer to [**CouponCodesPromotionRuleDataRelationshipsPromotion**](CouponCodesPromotionRuleDataRelationshipsPromotion.md) | | [optional] -**Coupons** | Pointer to [**CouponCodesPromotionRuleDataRelationshipsCoupons**](CouponCodesPromotionRuleDataRelationshipsCoupons.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] +**Coupons** | Pointer to [**BuyXPayYPromotionDataRelationshipsCoupons**](BuyXPayYPromotionDataRelationshipsCoupons.md) | | [optional] ## Methods @@ -51,22 +52,47 @@ SetPromotion sets Promotion field to given value. HasPromotion returns a boolean if a field has been set. +### GetVersions + +`func (o *CouponCodesPromotionRuleDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *CouponCodesPromotionRuleDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *CouponCodesPromotionRuleDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *CouponCodesPromotionRuleDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetCoupons -`func (o *CouponCodesPromotionRuleDataRelationships) GetCoupons() CouponCodesPromotionRuleDataRelationshipsCoupons` +`func (o *CouponCodesPromotionRuleDataRelationships) GetCoupons() BuyXPayYPromotionDataRelationshipsCoupons` GetCoupons returns the Coupons field if non-nil, zero value otherwise. ### GetCouponsOk -`func (o *CouponCodesPromotionRuleDataRelationships) GetCouponsOk() (*CouponCodesPromotionRuleDataRelationshipsCoupons, bool)` +`func (o *CouponCodesPromotionRuleDataRelationships) GetCouponsOk() (*BuyXPayYPromotionDataRelationshipsCoupons, bool)` GetCouponsOk returns a tuple with the Coupons field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCoupons -`func (o *CouponCodesPromotionRuleDataRelationships) SetCoupons(v CouponCodesPromotionRuleDataRelationshipsCoupons)` +`func (o *CouponCodesPromotionRuleDataRelationships) SetCoupons(v BuyXPayYPromotionDataRelationshipsCoupons)` SetCoupons sets Coupons field to given value. diff --git a/api/docs/CouponCodesPromotionRuleDataRelationshipsCoupons.md b/api/docs/CouponCodesPromotionRuleDataRelationshipsCoupons.md deleted file mode 100644 index 0f2c857e..00000000 --- a/api/docs/CouponCodesPromotionRuleDataRelationshipsCoupons.md +++ /dev/null @@ -1,56 +0,0 @@ -# CouponCodesPromotionRuleDataRelationshipsCoupons - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | Pointer to [**CouponCodesPromotionRuleDataRelationshipsCouponsData**](CouponCodesPromotionRuleDataRelationshipsCouponsData.md) | | [optional] - -## Methods - -### NewCouponCodesPromotionRuleDataRelationshipsCoupons - -`func NewCouponCodesPromotionRuleDataRelationshipsCoupons() *CouponCodesPromotionRuleDataRelationshipsCoupons` - -NewCouponCodesPromotionRuleDataRelationshipsCoupons instantiates a new CouponCodesPromotionRuleDataRelationshipsCoupons object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCouponCodesPromotionRuleDataRelationshipsCouponsWithDefaults - -`func NewCouponCodesPromotionRuleDataRelationshipsCouponsWithDefaults() *CouponCodesPromotionRuleDataRelationshipsCoupons` - -NewCouponCodesPromotionRuleDataRelationshipsCouponsWithDefaults instantiates a new CouponCodesPromotionRuleDataRelationshipsCoupons object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *CouponCodesPromotionRuleDataRelationshipsCoupons) GetData() CouponCodesPromotionRuleDataRelationshipsCouponsData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *CouponCodesPromotionRuleDataRelationshipsCoupons) GetDataOk() (*CouponCodesPromotionRuleDataRelationshipsCouponsData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *CouponCodesPromotionRuleDataRelationshipsCoupons) SetData(v CouponCodesPromotionRuleDataRelationshipsCouponsData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *CouponCodesPromotionRuleDataRelationshipsCoupons) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/CouponCodesPromotionRulesApi.md b/api/docs/CouponCodesPromotionRulesApi.md index dcc68a33..77ce209f 100644 --- a/api/docs/CouponCodesPromotionRulesApi.md +++ b/api/docs/CouponCodesPromotionRulesApi.md @@ -5,12 +5,14 @@ All URIs are relative to *https://.commercelayer.io/api* Method | HTTP request | Description ------------- | ------------- | ------------- [**DELETECouponCodesPromotionRulesCouponCodesPromotionRuleId**](CouponCodesPromotionRulesApi.md#DELETECouponCodesPromotionRulesCouponCodesPromotionRuleId) | **Delete** /coupon_codes_promotion_rules/{couponCodesPromotionRuleId} | Delete a coupon codes promotion rule +[**GETBuyXPayYPromotionIdCouponCodesPromotionRule**](CouponCodesPromotionRulesApi.md#GETBuyXPayYPromotionIdCouponCodesPromotionRule) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the buy x pay y promotion [**GETCouponCodesPromotionRules**](CouponCodesPromotionRulesApi.md#GETCouponCodesPromotionRules) | **Get** /coupon_codes_promotion_rules | List all coupon codes promotion rules [**GETCouponCodesPromotionRulesCouponCodesPromotionRuleId**](CouponCodesPromotionRulesApi.md#GETCouponCodesPromotionRulesCouponCodesPromotionRuleId) | **Get** /coupon_codes_promotion_rules/{couponCodesPromotionRuleId} | Retrieve a coupon codes promotion rule [**GETCouponIdPromotionRule**](CouponCodesPromotionRulesApi.md#GETCouponIdPromotionRule) | **Get** /coupons/{couponId}/promotion_rule | Retrieve the promotion rule associated to the coupon [**GETExternalPromotionIdCouponCodesPromotionRule**](CouponCodesPromotionRulesApi.md#GETExternalPromotionIdCouponCodesPromotionRule) | **Get** /external_promotions/{externalPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the external promotion [**GETFixedAmountPromotionIdCouponCodesPromotionRule**](CouponCodesPromotionRulesApi.md#GETFixedAmountPromotionIdCouponCodesPromotionRule) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the fixed amount promotion [**GETFixedPricePromotionIdCouponCodesPromotionRule**](CouponCodesPromotionRulesApi.md#GETFixedPricePromotionIdCouponCodesPromotionRule) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the fixed price promotion +[**GETFlexPromotionIdCouponCodesPromotionRule**](CouponCodesPromotionRulesApi.md#GETFlexPromotionIdCouponCodesPromotionRule) | **Get** /flex_promotions/{flexPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the flex promotion [**GETFreeGiftPromotionIdCouponCodesPromotionRule**](CouponCodesPromotionRulesApi.md#GETFreeGiftPromotionIdCouponCodesPromotionRule) | **Get** /free_gift_promotions/{freeGiftPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the free gift promotion [**GETFreeShippingPromotionIdCouponCodesPromotionRule**](CouponCodesPromotionRulesApi.md#GETFreeShippingPromotionIdCouponCodesPromotionRule) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the free shipping promotion [**GETPercentageDiscountPromotionIdCouponCodesPromotionRule**](CouponCodesPromotionRulesApi.md#GETPercentageDiscountPromotionIdCouponCodesPromotionRule) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the percentage discount promotion @@ -88,6 +90,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETBuyXPayYPromotionIdCouponCodesPromotionRule + +> GETBuyXPayYPromotionIdCouponCodesPromotionRule(ctx, buyXPayYPromotionId).Execute() + +Retrieve the coupon codes promotion rule associated to the buy x pay y promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + buyXPayYPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CouponCodesPromotionRulesApi.GETBuyXPayYPromotionIdCouponCodesPromotionRule(context.Background(), buyXPayYPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CouponCodesPromotionRulesApi.GETBuyXPayYPromotionIdCouponCodesPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdCouponCodesPromotionRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETCouponCodesPromotionRules > GETCouponCodesPromotionRules200Response GETCouponCodesPromotionRules(ctx).Execute() @@ -491,6 +561,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETFlexPromotionIdCouponCodesPromotionRule + +> GETFlexPromotionIdCouponCodesPromotionRule(ctx, flexPromotionId).Execute() + +Retrieve the coupon codes promotion rule associated to the flex promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + flexPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CouponCodesPromotionRulesApi.GETFlexPromotionIdCouponCodesPromotionRule(context.Background(), flexPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CouponCodesPromotionRulesApi.GETFlexPromotionIdCouponCodesPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flexPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFlexPromotionIdCouponCodesPromotionRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETFreeGiftPromotionIdCouponCodesPromotionRule > GETFreeGiftPromotionIdCouponCodesPromotionRule(ctx, freeGiftPromotionId).Execute() diff --git a/api/docs/CouponCreateDataRelationships.md b/api/docs/CouponCreateDataRelationships.md index 56f3452f..e1454bf9 100644 --- a/api/docs/CouponCreateDataRelationships.md +++ b/api/docs/CouponCreateDataRelationships.md @@ -4,13 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PromotionRule** | [**CouponCreateDataRelationshipsPromotionRule**](CouponCreateDataRelationshipsPromotionRule.md) | | +**PromotionRule** | [**BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule**](BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule.md) | | +**CouponRecipient** | Pointer to [**CouponCreateDataRelationshipsCouponRecipient**](CouponCreateDataRelationshipsCouponRecipient.md) | | [optional] +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] ## Methods ### NewCouponCreateDataRelationships -`func NewCouponCreateDataRelationships(promotionRule CouponCreateDataRelationshipsPromotionRule, ) *CouponCreateDataRelationships` +`func NewCouponCreateDataRelationships(promotionRule BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule, ) *CouponCreateDataRelationships` NewCouponCreateDataRelationships instantiates a new CouponCreateDataRelationships object This constructor will assign default values to properties that have it defined, @@ -27,24 +29,74 @@ but it doesn't guarantee that properties required by API are set ### GetPromotionRule -`func (o *CouponCreateDataRelationships) GetPromotionRule() CouponCreateDataRelationshipsPromotionRule` +`func (o *CouponCreateDataRelationships) GetPromotionRule() BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule` GetPromotionRule returns the PromotionRule field if non-nil, zero value otherwise. ### GetPromotionRuleOk -`func (o *CouponCreateDataRelationships) GetPromotionRuleOk() (*CouponCreateDataRelationshipsPromotionRule, bool)` +`func (o *CouponCreateDataRelationships) GetPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule, bool)` GetPromotionRuleOk returns a tuple with the PromotionRule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPromotionRule -`func (o *CouponCreateDataRelationships) SetPromotionRule(v CouponCreateDataRelationshipsPromotionRule)` +`func (o *CouponCreateDataRelationships) SetPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule)` SetPromotionRule sets PromotionRule field to given value. +### GetCouponRecipient + +`func (o *CouponCreateDataRelationships) GetCouponRecipient() CouponCreateDataRelationshipsCouponRecipient` + +GetCouponRecipient returns the CouponRecipient field if non-nil, zero value otherwise. + +### GetCouponRecipientOk + +`func (o *CouponCreateDataRelationships) GetCouponRecipientOk() (*CouponCreateDataRelationshipsCouponRecipient, bool)` + +GetCouponRecipientOk returns a tuple with the CouponRecipient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCouponRecipient + +`func (o *CouponCreateDataRelationships) SetCouponRecipient(v CouponCreateDataRelationshipsCouponRecipient)` + +SetCouponRecipient sets CouponRecipient field to given value. + +### HasCouponRecipient + +`func (o *CouponCreateDataRelationships) HasCouponRecipient() bool` + +HasCouponRecipient returns a boolean if a field has been set. + +### GetTags + +`func (o *CouponCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CouponCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CouponCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CouponCreateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/CouponCreateDataRelationshipsCouponRecipient.md b/api/docs/CouponCreateDataRelationshipsCouponRecipient.md new file mode 100644 index 00000000..37b9a4ac --- /dev/null +++ b/api/docs/CouponCreateDataRelationshipsCouponRecipient.md @@ -0,0 +1,51 @@ +# CouponCreateDataRelationshipsCouponRecipient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**CouponDataRelationshipsCouponRecipientData**](CouponDataRelationshipsCouponRecipientData.md) | | + +## Methods + +### NewCouponCreateDataRelationshipsCouponRecipient + +`func NewCouponCreateDataRelationshipsCouponRecipient(data CouponDataRelationshipsCouponRecipientData, ) *CouponCreateDataRelationshipsCouponRecipient` + +NewCouponCreateDataRelationshipsCouponRecipient instantiates a new CouponCreateDataRelationshipsCouponRecipient object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCouponCreateDataRelationshipsCouponRecipientWithDefaults + +`func NewCouponCreateDataRelationshipsCouponRecipientWithDefaults() *CouponCreateDataRelationshipsCouponRecipient` + +NewCouponCreateDataRelationshipsCouponRecipientWithDefaults instantiates a new CouponCreateDataRelationshipsCouponRecipient object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *CouponCreateDataRelationshipsCouponRecipient) GetData() CouponDataRelationshipsCouponRecipientData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *CouponCreateDataRelationshipsCouponRecipient) GetDataOk() (*CouponDataRelationshipsCouponRecipientData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *CouponCreateDataRelationshipsCouponRecipient) SetData(v CouponDataRelationshipsCouponRecipientData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/CouponCreateDataRelationshipsPromotionRule.md b/api/docs/CouponCreateDataRelationshipsPromotionRule.md deleted file mode 100644 index e46377a5..00000000 --- a/api/docs/CouponCreateDataRelationshipsPromotionRule.md +++ /dev/null @@ -1,51 +0,0 @@ -# CouponCreateDataRelationshipsPromotionRule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**CouponDataRelationshipsPromotionRuleData**](CouponDataRelationshipsPromotionRuleData.md) | | - -## Methods - -### NewCouponCreateDataRelationshipsPromotionRule - -`func NewCouponCreateDataRelationshipsPromotionRule(data CouponDataRelationshipsPromotionRuleData, ) *CouponCreateDataRelationshipsPromotionRule` - -NewCouponCreateDataRelationshipsPromotionRule instantiates a new CouponCreateDataRelationshipsPromotionRule object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCouponCreateDataRelationshipsPromotionRuleWithDefaults - -`func NewCouponCreateDataRelationshipsPromotionRuleWithDefaults() *CouponCreateDataRelationshipsPromotionRule` - -NewCouponCreateDataRelationshipsPromotionRuleWithDefaults instantiates a new CouponCreateDataRelationshipsPromotionRule object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *CouponCreateDataRelationshipsPromotionRule) GetData() CouponDataRelationshipsPromotionRuleData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *CouponCreateDataRelationshipsPromotionRule) GetDataOk() (*CouponDataRelationshipsPromotionRuleData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *CouponCreateDataRelationshipsPromotionRule) SetData(v CouponDataRelationshipsPromotionRuleData)` - -SetData sets Data field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/CouponDataRelationships.md b/api/docs/CouponDataRelationships.md index e3f743b8..5495e915 100644 --- a/api/docs/CouponDataRelationships.md +++ b/api/docs/CouponDataRelationships.md @@ -4,7 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PromotionRule** | Pointer to [**CouponDataRelationshipsPromotionRule**](CouponDataRelationshipsPromotionRule.md) | | [optional] +**PromotionRule** | Pointer to [**BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule**](BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule.md) | | [optional] +**CouponRecipient** | Pointer to [**CouponDataRelationshipsCouponRecipient**](CouponDataRelationshipsCouponRecipient.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**AddressDataRelationshipsTags**](AddressDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -27,20 +31,20 @@ but it doesn't guarantee that properties required by API are set ### GetPromotionRule -`func (o *CouponDataRelationships) GetPromotionRule() CouponDataRelationshipsPromotionRule` +`func (o *CouponDataRelationships) GetPromotionRule() BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule` GetPromotionRule returns the PromotionRule field if non-nil, zero value otherwise. ### GetPromotionRuleOk -`func (o *CouponDataRelationships) GetPromotionRuleOk() (*CouponDataRelationshipsPromotionRule, bool)` +`func (o *CouponDataRelationships) GetPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule, bool)` GetPromotionRuleOk returns a tuple with the PromotionRule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPromotionRule -`func (o *CouponDataRelationships) SetPromotionRule(v CouponDataRelationshipsPromotionRule)` +`func (o *CouponDataRelationships) SetPromotionRule(v BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule)` SetPromotionRule sets PromotionRule field to given value. @@ -50,6 +54,106 @@ SetPromotionRule sets PromotionRule field to given value. HasPromotionRule returns a boolean if a field has been set. +### GetCouponRecipient + +`func (o *CouponDataRelationships) GetCouponRecipient() CouponDataRelationshipsCouponRecipient` + +GetCouponRecipient returns the CouponRecipient field if non-nil, zero value otherwise. + +### GetCouponRecipientOk + +`func (o *CouponDataRelationships) GetCouponRecipientOk() (*CouponDataRelationshipsCouponRecipient, bool)` + +GetCouponRecipientOk returns a tuple with the CouponRecipient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCouponRecipient + +`func (o *CouponDataRelationships) SetCouponRecipient(v CouponDataRelationshipsCouponRecipient)` + +SetCouponRecipient sets CouponRecipient field to given value. + +### HasCouponRecipient + +`func (o *CouponDataRelationships) HasCouponRecipient() bool` + +HasCouponRecipient returns a boolean if a field has been set. + +### GetEvents + +`func (o *CouponDataRelationships) GetEvents() AddressDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *CouponDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *CouponDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *CouponDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *CouponDataRelationships) GetTags() AddressDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CouponDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CouponDataRelationships) SetTags(v AddressDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CouponDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *CouponDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *CouponDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *CouponDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *CouponDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/CouponDataRelationshipsCouponRecipient.md b/api/docs/CouponDataRelationshipsCouponRecipient.md new file mode 100644 index 00000000..24daa38e --- /dev/null +++ b/api/docs/CouponDataRelationshipsCouponRecipient.md @@ -0,0 +1,56 @@ +# CouponDataRelationshipsCouponRecipient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**CouponDataRelationshipsCouponRecipientData**](CouponDataRelationshipsCouponRecipientData.md) | | [optional] + +## Methods + +### NewCouponDataRelationshipsCouponRecipient + +`func NewCouponDataRelationshipsCouponRecipient() *CouponDataRelationshipsCouponRecipient` + +NewCouponDataRelationshipsCouponRecipient instantiates a new CouponDataRelationshipsCouponRecipient object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCouponDataRelationshipsCouponRecipientWithDefaults + +`func NewCouponDataRelationshipsCouponRecipientWithDefaults() *CouponDataRelationshipsCouponRecipient` + +NewCouponDataRelationshipsCouponRecipientWithDefaults instantiates a new CouponDataRelationshipsCouponRecipient object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *CouponDataRelationshipsCouponRecipient) GetData() CouponDataRelationshipsCouponRecipientData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *CouponDataRelationshipsCouponRecipient) GetDataOk() (*CouponDataRelationshipsCouponRecipientData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *CouponDataRelationshipsCouponRecipient) SetData(v CouponDataRelationshipsCouponRecipientData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *CouponDataRelationshipsCouponRecipient) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ReturnDataRelationshipsReturnLineItemsData.md b/api/docs/CouponDataRelationshipsCouponRecipientData.md similarity index 58% rename from api/docs/ReturnDataRelationshipsReturnLineItemsData.md rename to api/docs/CouponDataRelationshipsCouponRecipientData.md index 856b48b1..fd96360e 100644 --- a/api/docs/ReturnDataRelationshipsReturnLineItemsData.md +++ b/api/docs/CouponDataRelationshipsCouponRecipientData.md @@ -1,4 +1,4 @@ -# ReturnDataRelationshipsReturnLineItemsData +# CouponDataRelationshipsCouponRecipientData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewReturnDataRelationshipsReturnLineItemsData +### NewCouponDataRelationshipsCouponRecipientData -`func NewReturnDataRelationshipsReturnLineItemsData() *ReturnDataRelationshipsReturnLineItemsData` +`func NewCouponDataRelationshipsCouponRecipientData() *CouponDataRelationshipsCouponRecipientData` -NewReturnDataRelationshipsReturnLineItemsData instantiates a new ReturnDataRelationshipsReturnLineItemsData object +NewCouponDataRelationshipsCouponRecipientData instantiates a new CouponDataRelationshipsCouponRecipientData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewReturnDataRelationshipsReturnLineItemsDataWithDefaults +### NewCouponDataRelationshipsCouponRecipientDataWithDefaults -`func NewReturnDataRelationshipsReturnLineItemsDataWithDefaults() *ReturnDataRelationshipsReturnLineItemsData` +`func NewCouponDataRelationshipsCouponRecipientDataWithDefaults() *CouponDataRelationshipsCouponRecipientData` -NewReturnDataRelationshipsReturnLineItemsDataWithDefaults instantiates a new ReturnDataRelationshipsReturnLineItemsData object +NewCouponDataRelationshipsCouponRecipientDataWithDefaults instantiates a new CouponDataRelationshipsCouponRecipientData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *ReturnDataRelationshipsReturnLineItemsData) GetType() interface{}` +`func (o *CouponDataRelationshipsCouponRecipientData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *ReturnDataRelationshipsReturnLineItemsData) GetTypeOk() (*interface{}, bool)` +`func (o *CouponDataRelationshipsCouponRecipientData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *ReturnDataRelationshipsReturnLineItemsData) SetType(v interface{})` +`func (o *CouponDataRelationshipsCouponRecipientData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *ReturnDataRelationshipsReturnLineItemsData) HasType() bool` +`func (o *CouponDataRelationshipsCouponRecipientData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *ReturnDataRelationshipsReturnLineItemsData) SetTypeNil(b bool)` +`func (o *CouponDataRelationshipsCouponRecipientData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *ReturnDataRelationshipsReturnLineItemsData) UnsetType()` +`func (o *CouponDataRelationshipsCouponRecipientData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *ReturnDataRelationshipsReturnLineItemsData) GetId() interface{}` +`func (o *CouponDataRelationshipsCouponRecipientData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *ReturnDataRelationshipsReturnLineItemsData) GetIdOk() (*interface{}, bool)` +`func (o *CouponDataRelationshipsCouponRecipientData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *ReturnDataRelationshipsReturnLineItemsData) SetId(v interface{})` +`func (o *CouponDataRelationshipsCouponRecipientData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *ReturnDataRelationshipsReturnLineItemsData) HasId() bool` +`func (o *CouponDataRelationshipsCouponRecipientData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *ReturnDataRelationshipsReturnLineItemsData) SetIdNil(b bool)` +`func (o *CouponDataRelationshipsCouponRecipientData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *ReturnDataRelationshipsReturnLineItemsData) UnsetId()` +`func (o *CouponDataRelationshipsCouponRecipientData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/CouponDataRelationshipsPromotionRule.md b/api/docs/CouponDataRelationshipsPromotionRule.md deleted file mode 100644 index 6a78a177..00000000 --- a/api/docs/CouponDataRelationshipsPromotionRule.md +++ /dev/null @@ -1,56 +0,0 @@ -# CouponDataRelationshipsPromotionRule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | Pointer to [**CouponDataRelationshipsPromotionRuleData**](CouponDataRelationshipsPromotionRuleData.md) | | [optional] - -## Methods - -### NewCouponDataRelationshipsPromotionRule - -`func NewCouponDataRelationshipsPromotionRule() *CouponDataRelationshipsPromotionRule` - -NewCouponDataRelationshipsPromotionRule instantiates a new CouponDataRelationshipsPromotionRule object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCouponDataRelationshipsPromotionRuleWithDefaults - -`func NewCouponDataRelationshipsPromotionRuleWithDefaults() *CouponDataRelationshipsPromotionRule` - -NewCouponDataRelationshipsPromotionRuleWithDefaults instantiates a new CouponDataRelationshipsPromotionRule object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *CouponDataRelationshipsPromotionRule) GetData() CouponDataRelationshipsPromotionRuleData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *CouponDataRelationshipsPromotionRule) GetDataOk() (*CouponDataRelationshipsPromotionRuleData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *CouponDataRelationshipsPromotionRule) SetData(v CouponDataRelationshipsPromotionRuleData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *CouponDataRelationshipsPromotionRule) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/CouponRecipientDataRelationships.md b/api/docs/CouponRecipientDataRelationships.md index cfca7afb..11ab32e9 100644 --- a/api/docs/CouponRecipientDataRelationships.md +++ b/api/docs/CouponRecipientDataRelationships.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Customer** | Pointer to [**CouponRecipientDataRelationshipsCustomer**](CouponRecipientDataRelationshipsCustomer.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -53,20 +54,20 @@ HasCustomer returns a boolean if a field has been set. ### GetAttachments -`func (o *CouponRecipientDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *CouponRecipientDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *CouponRecipientDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *CouponRecipientDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *CouponRecipientDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *CouponRecipientDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -76,6 +77,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *CouponRecipientDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *CouponRecipientDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *CouponRecipientDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *CouponRecipientDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/CouponRecipientsApi.md b/api/docs/CouponRecipientsApi.md index b59b234a..8c15e845 100644 --- a/api/docs/CouponRecipientsApi.md +++ b/api/docs/CouponRecipientsApi.md @@ -5,6 +5,7 @@ All URIs are relative to *https://.commercelayer.io/api* Method | HTTP request | Description ------------- | ------------- | ------------- [**DELETECouponRecipientsCouponRecipientId**](CouponRecipientsApi.md#DELETECouponRecipientsCouponRecipientId) | **Delete** /coupon_recipients/{couponRecipientId} | Delete a coupon recipient +[**GETCouponIdCouponRecipient**](CouponRecipientsApi.md#GETCouponIdCouponRecipient) | **Get** /coupons/{couponId}/coupon_recipient | Retrieve the coupon recipient associated to the coupon [**GETCouponRecipients**](CouponRecipientsApi.md#GETCouponRecipients) | **Get** /coupon_recipients | List all coupon recipients [**GETCouponRecipientsCouponRecipientId**](CouponRecipientsApi.md#GETCouponRecipientsCouponRecipientId) | **Get** /coupon_recipients/{couponRecipientId} | Retrieve a coupon recipient [**PATCHCouponRecipientsCouponRecipientId**](CouponRecipientsApi.md#PATCHCouponRecipientsCouponRecipientId) | **Patch** /coupon_recipients/{couponRecipientId} | Update a coupon recipient @@ -80,6 +81,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETCouponIdCouponRecipient + +> GETCouponIdCouponRecipient(ctx, couponId).Execute() + +Retrieve the coupon recipient associated to the coupon + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + couponId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CouponRecipientsApi.GETCouponIdCouponRecipient(context.Background(), couponId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CouponRecipientsApi.GETCouponIdCouponRecipient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**couponId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCouponIdCouponRecipientRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETCouponRecipients > GETCouponRecipients200Response GETCouponRecipients(ctx).Execute() diff --git a/api/docs/CouponUpdateDataRelationships.md b/api/docs/CouponUpdateDataRelationships.md index 2cca6a21..a7058225 100644 --- a/api/docs/CouponUpdateDataRelationships.md +++ b/api/docs/CouponUpdateDataRelationships.md @@ -4,7 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PromotionRule** | Pointer to [**CouponCreateDataRelationshipsPromotionRule**](CouponCreateDataRelationshipsPromotionRule.md) | | [optional] +**PromotionRule** | Pointer to [**BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule**](BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule.md) | | [optional] +**CouponRecipient** | Pointer to [**CouponCreateDataRelationshipsCouponRecipient**](CouponCreateDataRelationshipsCouponRecipient.md) | | [optional] +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] ## Methods @@ -27,20 +29,20 @@ but it doesn't guarantee that properties required by API are set ### GetPromotionRule -`func (o *CouponUpdateDataRelationships) GetPromotionRule() CouponCreateDataRelationshipsPromotionRule` +`func (o *CouponUpdateDataRelationships) GetPromotionRule() BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule` GetPromotionRule returns the PromotionRule field if non-nil, zero value otherwise. ### GetPromotionRuleOk -`func (o *CouponUpdateDataRelationships) GetPromotionRuleOk() (*CouponCreateDataRelationshipsPromotionRule, bool)` +`func (o *CouponUpdateDataRelationships) GetPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule, bool)` GetPromotionRuleOk returns a tuple with the PromotionRule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPromotionRule -`func (o *CouponUpdateDataRelationships) SetPromotionRule(v CouponCreateDataRelationshipsPromotionRule)` +`func (o *CouponUpdateDataRelationships) SetPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule)` SetPromotionRule sets PromotionRule field to given value. @@ -50,6 +52,56 @@ SetPromotionRule sets PromotionRule field to given value. HasPromotionRule returns a boolean if a field has been set. +### GetCouponRecipient + +`func (o *CouponUpdateDataRelationships) GetCouponRecipient() CouponCreateDataRelationshipsCouponRecipient` + +GetCouponRecipient returns the CouponRecipient field if non-nil, zero value otherwise. + +### GetCouponRecipientOk + +`func (o *CouponUpdateDataRelationships) GetCouponRecipientOk() (*CouponCreateDataRelationshipsCouponRecipient, bool)` + +GetCouponRecipientOk returns a tuple with the CouponRecipient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCouponRecipient + +`func (o *CouponUpdateDataRelationships) SetCouponRecipient(v CouponCreateDataRelationshipsCouponRecipient)` + +SetCouponRecipient sets CouponRecipient field to given value. + +### HasCouponRecipient + +`func (o *CouponUpdateDataRelationships) HasCouponRecipient() bool` + +HasCouponRecipient returns a boolean if a field has been set. + +### GetTags + +`func (o *CouponUpdateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CouponUpdateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CouponUpdateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CouponUpdateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/CouponsApi.md b/api/docs/CouponsApi.md index 89d962b6..724c7c4f 100644 --- a/api/docs/CouponsApi.md +++ b/api/docs/CouponsApi.md @@ -5,9 +5,18 @@ All URIs are relative to *https://.commercelayer.io/api* Method | HTTP request | Description ------------- | ------------- | ------------- [**DELETECouponsCouponId**](CouponsApi.md#DELETECouponsCouponId) | **Delete** /coupons/{couponId} | Delete a coupon +[**GETBuyXPayYPromotionIdCoupons**](CouponsApi.md#GETBuyXPayYPromotionIdCoupons) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/coupons | Retrieve the coupons associated to the buy x pay y promotion [**GETCouponCodesPromotionRuleIdCoupons**](CouponsApi.md#GETCouponCodesPromotionRuleIdCoupons) | **Get** /coupon_codes_promotion_rules/{couponCodesPromotionRuleId}/coupons | Retrieve the coupons associated to the coupon codes promotion rule [**GETCoupons**](CouponsApi.md#GETCoupons) | **Get** /coupons | List all coupons [**GETCouponsCouponId**](CouponsApi.md#GETCouponsCouponId) | **Get** /coupons/{couponId} | Retrieve a coupon +[**GETExternalPromotionIdCoupons**](CouponsApi.md#GETExternalPromotionIdCoupons) | **Get** /external_promotions/{externalPromotionId}/coupons | Retrieve the coupons associated to the external promotion +[**GETFixedAmountPromotionIdCoupons**](CouponsApi.md#GETFixedAmountPromotionIdCoupons) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/coupons | Retrieve the coupons associated to the fixed amount promotion +[**GETFixedPricePromotionIdCoupons**](CouponsApi.md#GETFixedPricePromotionIdCoupons) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/coupons | Retrieve the coupons associated to the fixed price promotion +[**GETFlexPromotionIdCoupons**](CouponsApi.md#GETFlexPromotionIdCoupons) | **Get** /flex_promotions/{flexPromotionId}/coupons | Retrieve the coupons associated to the flex promotion +[**GETFreeGiftPromotionIdCoupons**](CouponsApi.md#GETFreeGiftPromotionIdCoupons) | **Get** /free_gift_promotions/{freeGiftPromotionId}/coupons | Retrieve the coupons associated to the free gift promotion +[**GETFreeShippingPromotionIdCoupons**](CouponsApi.md#GETFreeShippingPromotionIdCoupons) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/coupons | Retrieve the coupons associated to the free shipping promotion +[**GETPercentageDiscountPromotionIdCoupons**](CouponsApi.md#GETPercentageDiscountPromotionIdCoupons) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/coupons | Retrieve the coupons associated to the percentage discount promotion +[**GETPromotionIdCoupons**](CouponsApi.md#GETPromotionIdCoupons) | **Get** /promotions/{promotionId}/coupons | Retrieve the coupons associated to the promotion [**PATCHCouponsCouponId**](CouponsApi.md#PATCHCouponsCouponId) | **Patch** /coupons/{couponId} | Update a coupon [**POSTCoupons**](CouponsApi.md#POSTCoupons) | **Post** /coupons | Create a coupon @@ -81,6 +90,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETBuyXPayYPromotionIdCoupons + +> GETBuyXPayYPromotionIdCoupons(ctx, buyXPayYPromotionId).Execute() + +Retrieve the coupons associated to the buy x pay y promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + buyXPayYPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CouponsApi.GETBuyXPayYPromotionIdCoupons(context.Background(), buyXPayYPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CouponsApi.GETBuyXPayYPromotionIdCoupons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdCouponsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETCouponCodesPromotionRuleIdCoupons > GETCouponCodesPromotionRuleIdCoupons(ctx, couponCodesPromotionRuleId).Execute() @@ -280,6 +357,550 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETExternalPromotionIdCoupons + +> GETExternalPromotionIdCoupons(ctx, externalPromotionId).Execute() + +Retrieve the coupons associated to the external promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CouponsApi.GETExternalPromotionIdCoupons(context.Background(), externalPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CouponsApi.GETExternalPromotionIdCoupons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalPromotionIdCouponsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedAmountPromotionIdCoupons + +> GETFixedAmountPromotionIdCoupons(ctx, fixedAmountPromotionId).Execute() + +Retrieve the coupons associated to the fixed amount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedAmountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CouponsApi.GETFixedAmountPromotionIdCoupons(context.Background(), fixedAmountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CouponsApi.GETFixedAmountPromotionIdCoupons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdCouponsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedPricePromotionIdCoupons + +> GETFixedPricePromotionIdCoupons(ctx, fixedPricePromotionId).Execute() + +Retrieve the coupons associated to the fixed price promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedPricePromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CouponsApi.GETFixedPricePromotionIdCoupons(context.Background(), fixedPricePromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CouponsApi.GETFixedPricePromotionIdCoupons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdCouponsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFlexPromotionIdCoupons + +> GETFlexPromotionIdCoupons(ctx, flexPromotionId).Execute() + +Retrieve the coupons associated to the flex promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + flexPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CouponsApi.GETFlexPromotionIdCoupons(context.Background(), flexPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CouponsApi.GETFlexPromotionIdCoupons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flexPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFlexPromotionIdCouponsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeGiftPromotionIdCoupons + +> GETFreeGiftPromotionIdCoupons(ctx, freeGiftPromotionId).Execute() + +Retrieve the coupons associated to the free gift promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeGiftPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CouponsApi.GETFreeGiftPromotionIdCoupons(context.Background(), freeGiftPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CouponsApi.GETFreeGiftPromotionIdCoupons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdCouponsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeShippingPromotionIdCoupons + +> GETFreeShippingPromotionIdCoupons(ctx, freeShippingPromotionId).Execute() + +Retrieve the coupons associated to the free shipping promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeShippingPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CouponsApi.GETFreeShippingPromotionIdCoupons(context.Background(), freeShippingPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CouponsApi.GETFreeShippingPromotionIdCoupons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdCouponsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPercentageDiscountPromotionIdCoupons + +> GETPercentageDiscountPromotionIdCoupons(ctx, percentageDiscountPromotionId).Execute() + +Retrieve the coupons associated to the percentage discount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + percentageDiscountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CouponsApi.GETPercentageDiscountPromotionIdCoupons(context.Background(), percentageDiscountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CouponsApi.GETPercentageDiscountPromotionIdCoupons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdCouponsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPromotionIdCoupons + +> GETPromotionIdCoupons(ctx, promotionId).Execute() + +Retrieve the coupons associated to the promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + promotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CouponsApi.GETPromotionIdCoupons(context.Background(), promotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CouponsApi.GETPromotionIdCoupons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**promotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPromotionIdCouponsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## PATCHCouponsCouponId > PATCHCouponsCouponId200Response PATCHCouponsCouponId(ctx, couponId).CouponUpdate(couponUpdate).Execute() @@ -373,7 +994,7 @@ import ( ) func main() { - couponCreate := *openapiclient.NewCouponCreate(*openapiclient.NewCouponCreateData(interface{}(123), *openapiclient.NewPOSTCoupons201ResponseDataAttributes(interface{}(04371af2-70b3-48d7-8f4e-316b374224c3), interface{}(50)))) // CouponCreate | + couponCreate := *openapiclient.NewCouponCreate(*openapiclient.NewCouponCreateData(interface{}(123), *openapiclient.NewPOSTCoupons201ResponseDataAttributes(interface{}(04371af2-70b3-48d7-8f4e-316b374224c3)))) // CouponCreate | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/api/docs/OrderValidationRule.md b/api/docs/CustomPromotionRule.md similarity index 62% rename from api/docs/OrderValidationRule.md rename to api/docs/CustomPromotionRule.md index fe1b61dc..46494673 100644 --- a/api/docs/OrderValidationRule.md +++ b/api/docs/CustomPromotionRule.md @@ -1,52 +1,52 @@ -# OrderValidationRule +# CustomPromotionRule ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | Pointer to [**OrderValidationRuleData**](OrderValidationRuleData.md) | | [optional] +**Data** | Pointer to [**CustomPromotionRuleData**](CustomPromotionRuleData.md) | | [optional] ## Methods -### NewOrderValidationRule +### NewCustomPromotionRule -`func NewOrderValidationRule() *OrderValidationRule` +`func NewCustomPromotionRule() *CustomPromotionRule` -NewOrderValidationRule instantiates a new OrderValidationRule object +NewCustomPromotionRule instantiates a new CustomPromotionRule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewOrderValidationRuleWithDefaults +### NewCustomPromotionRuleWithDefaults -`func NewOrderValidationRuleWithDefaults() *OrderValidationRule` +`func NewCustomPromotionRuleWithDefaults() *CustomPromotionRule` -NewOrderValidationRuleWithDefaults instantiates a new OrderValidationRule object +NewCustomPromotionRuleWithDefaults instantiates a new CustomPromotionRule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetData -`func (o *OrderValidationRule) GetData() OrderValidationRuleData` +`func (o *CustomPromotionRule) GetData() CustomPromotionRuleData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *OrderValidationRule) GetDataOk() (*OrderValidationRuleData, bool)` +`func (o *CustomPromotionRule) GetDataOk() (*CustomPromotionRuleData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *OrderValidationRule) SetData(v OrderValidationRuleData)` +`func (o *CustomPromotionRule) SetData(v CustomPromotionRuleData)` SetData sets Data field to given value. ### HasData -`func (o *OrderValidationRule) HasData() bool` +`func (o *CustomPromotionRule) HasData() bool` HasData returns a boolean if a field has been set. diff --git a/api/docs/CustomPromotionRuleCreate.md b/api/docs/CustomPromotionRuleCreate.md new file mode 100644 index 00000000..67b9ca2e --- /dev/null +++ b/api/docs/CustomPromotionRuleCreate.md @@ -0,0 +1,51 @@ +# CustomPromotionRuleCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**CustomPromotionRuleCreateData**](CustomPromotionRuleCreateData.md) | | + +## Methods + +### NewCustomPromotionRuleCreate + +`func NewCustomPromotionRuleCreate(data CustomPromotionRuleCreateData, ) *CustomPromotionRuleCreate` + +NewCustomPromotionRuleCreate instantiates a new CustomPromotionRuleCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCustomPromotionRuleCreateWithDefaults + +`func NewCustomPromotionRuleCreateWithDefaults() *CustomPromotionRuleCreate` + +NewCustomPromotionRuleCreateWithDefaults instantiates a new CustomPromotionRuleCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *CustomPromotionRuleCreate) GetData() CustomPromotionRuleCreateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *CustomPromotionRuleCreate) GetDataOk() (*CustomPromotionRuleCreateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *CustomPromotionRuleCreate) SetData(v CustomPromotionRuleCreateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/CustomPromotionRuleCreateData.md b/api/docs/CustomPromotionRuleCreateData.md new file mode 100644 index 00000000..75e296d9 --- /dev/null +++ b/api/docs/CustomPromotionRuleCreateData.md @@ -0,0 +1,108 @@ +# CustomPromotionRuleCreateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**POSTCustomPromotionRules201ResponseDataAttributes**](POSTCustomPromotionRules201ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**CustomPromotionRuleCreateDataRelationships**](CustomPromotionRuleCreateDataRelationships.md) | | [optional] + +## Methods + +### NewCustomPromotionRuleCreateData + +`func NewCustomPromotionRuleCreateData(type_ interface{}, attributes POSTCustomPromotionRules201ResponseDataAttributes, ) *CustomPromotionRuleCreateData` + +NewCustomPromotionRuleCreateData instantiates a new CustomPromotionRuleCreateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCustomPromotionRuleCreateDataWithDefaults + +`func NewCustomPromotionRuleCreateDataWithDefaults() *CustomPromotionRuleCreateData` + +NewCustomPromotionRuleCreateDataWithDefaults instantiates a new CustomPromotionRuleCreateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *CustomPromotionRuleCreateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CustomPromotionRuleCreateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CustomPromotionRuleCreateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *CustomPromotionRuleCreateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *CustomPromotionRuleCreateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *CustomPromotionRuleCreateData) GetAttributes() POSTCustomPromotionRules201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *CustomPromotionRuleCreateData) GetAttributesOk() (*POSTCustomPromotionRules201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *CustomPromotionRuleCreateData) SetAttributes(v POSTCustomPromotionRules201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *CustomPromotionRuleCreateData) GetRelationships() CustomPromotionRuleCreateDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *CustomPromotionRuleCreateData) GetRelationshipsOk() (*CustomPromotionRuleCreateDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *CustomPromotionRuleCreateData) SetRelationships(v CustomPromotionRuleCreateDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *CustomPromotionRuleCreateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/CustomPromotionRuleCreateDataRelationships.md b/api/docs/CustomPromotionRuleCreateDataRelationships.md new file mode 100644 index 00000000..c2fc2688 --- /dev/null +++ b/api/docs/CustomPromotionRuleCreateDataRelationships.md @@ -0,0 +1,51 @@ +# CustomPromotionRuleCreateDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Promotion** | [**CouponCodesPromotionRuleCreateDataRelationshipsPromotion**](CouponCodesPromotionRuleCreateDataRelationshipsPromotion.md) | | + +## Methods + +### NewCustomPromotionRuleCreateDataRelationships + +`func NewCustomPromotionRuleCreateDataRelationships(promotion CouponCodesPromotionRuleCreateDataRelationshipsPromotion, ) *CustomPromotionRuleCreateDataRelationships` + +NewCustomPromotionRuleCreateDataRelationships instantiates a new CustomPromotionRuleCreateDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCustomPromotionRuleCreateDataRelationshipsWithDefaults + +`func NewCustomPromotionRuleCreateDataRelationshipsWithDefaults() *CustomPromotionRuleCreateDataRelationships` + +NewCustomPromotionRuleCreateDataRelationshipsWithDefaults instantiates a new CustomPromotionRuleCreateDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPromotion + +`func (o *CustomPromotionRuleCreateDataRelationships) GetPromotion() CouponCodesPromotionRuleCreateDataRelationshipsPromotion` + +GetPromotion returns the Promotion field if non-nil, zero value otherwise. + +### GetPromotionOk + +`func (o *CustomPromotionRuleCreateDataRelationships) GetPromotionOk() (*CouponCodesPromotionRuleCreateDataRelationshipsPromotion, bool)` + +GetPromotionOk returns a tuple with the Promotion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPromotion + +`func (o *CustomPromotionRuleCreateDataRelationships) SetPromotion(v CouponCodesPromotionRuleCreateDataRelationshipsPromotion)` + +SetPromotion sets Promotion field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/OrderValidationRuleData.md b/api/docs/CustomPromotionRuleData.md similarity index 51% rename from api/docs/OrderValidationRuleData.md rename to api/docs/CustomPromotionRuleData.md index f11805ea..e44eae0b 100644 --- a/api/docs/OrderValidationRuleData.md +++ b/api/docs/CustomPromotionRuleData.md @@ -1,104 +1,104 @@ -# OrderValidationRuleData +# CustomPromotionRuleData ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | -**Attributes** | [**GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes**](GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**BillingInfoValidationRuleDataRelationships**](BillingInfoValidationRuleDataRelationships.md) | | [optional] +**Attributes** | [**GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes**](GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**CustomPromotionRuleDataRelationships**](CustomPromotionRuleDataRelationships.md) | | [optional] ## Methods -### NewOrderValidationRuleData +### NewCustomPromotionRuleData -`func NewOrderValidationRuleData(type_ interface{}, attributes GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, ) *OrderValidationRuleData` +`func NewCustomPromotionRuleData(type_ interface{}, attributes GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes, ) *CustomPromotionRuleData` -NewOrderValidationRuleData instantiates a new OrderValidationRuleData object +NewCustomPromotionRuleData instantiates a new CustomPromotionRuleData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewOrderValidationRuleDataWithDefaults +### NewCustomPromotionRuleDataWithDefaults -`func NewOrderValidationRuleDataWithDefaults() *OrderValidationRuleData` +`func NewCustomPromotionRuleDataWithDefaults() *CustomPromotionRuleData` -NewOrderValidationRuleDataWithDefaults instantiates a new OrderValidationRuleData object +NewCustomPromotionRuleDataWithDefaults instantiates a new CustomPromotionRuleData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *OrderValidationRuleData) GetType() interface{}` +`func (o *CustomPromotionRuleData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *OrderValidationRuleData) GetTypeOk() (*interface{}, bool)` +`func (o *CustomPromotionRuleData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *OrderValidationRuleData) SetType(v interface{})` +`func (o *CustomPromotionRuleData) SetType(v interface{})` SetType sets Type field to given value. ### SetTypeNil -`func (o *OrderValidationRuleData) SetTypeNil(b bool)` +`func (o *CustomPromotionRuleData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *OrderValidationRuleData) UnsetType()` +`func (o *CustomPromotionRuleData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetAttributes -`func (o *OrderValidationRuleData) GetAttributes() GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes` +`func (o *CustomPromotionRuleData) GetAttributes() GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *OrderValidationRuleData) GetAttributesOk() (*GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool)` +`func (o *CustomPromotionRuleData) GetAttributesOk() (*GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *OrderValidationRuleData) SetAttributes(v GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes)` +`func (o *CustomPromotionRuleData) SetAttributes(v GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes)` SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *OrderValidationRuleData) GetRelationships() BillingInfoValidationRuleDataRelationships` +`func (o *CustomPromotionRuleData) GetRelationships() CustomPromotionRuleDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *OrderValidationRuleData) GetRelationshipsOk() (*BillingInfoValidationRuleDataRelationships, bool)` +`func (o *CustomPromotionRuleData) GetRelationshipsOk() (*CustomPromotionRuleDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *OrderValidationRuleData) SetRelationships(v BillingInfoValidationRuleDataRelationships)` +`func (o *CustomPromotionRuleData) SetRelationships(v CustomPromotionRuleDataRelationships)` SetRelationships sets Relationships field to given value. ### HasRelationships -`func (o *OrderValidationRuleData) HasRelationships() bool` +`func (o *CustomPromotionRuleData) HasRelationships() bool` HasRelationships returns a boolean if a field has been set. diff --git a/api/docs/CustomPromotionRuleDataRelationships.md b/api/docs/CustomPromotionRuleDataRelationships.md new file mode 100644 index 00000000..21004031 --- /dev/null +++ b/api/docs/CustomPromotionRuleDataRelationships.md @@ -0,0 +1,82 @@ +# CustomPromotionRuleDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Promotion** | Pointer to [**CouponCodesPromotionRuleDataRelationshipsPromotion**](CouponCodesPromotionRuleDataRelationshipsPromotion.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewCustomPromotionRuleDataRelationships + +`func NewCustomPromotionRuleDataRelationships() *CustomPromotionRuleDataRelationships` + +NewCustomPromotionRuleDataRelationships instantiates a new CustomPromotionRuleDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCustomPromotionRuleDataRelationshipsWithDefaults + +`func NewCustomPromotionRuleDataRelationshipsWithDefaults() *CustomPromotionRuleDataRelationships` + +NewCustomPromotionRuleDataRelationshipsWithDefaults instantiates a new CustomPromotionRuleDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPromotion + +`func (o *CustomPromotionRuleDataRelationships) GetPromotion() CouponCodesPromotionRuleDataRelationshipsPromotion` + +GetPromotion returns the Promotion field if non-nil, zero value otherwise. + +### GetPromotionOk + +`func (o *CustomPromotionRuleDataRelationships) GetPromotionOk() (*CouponCodesPromotionRuleDataRelationshipsPromotion, bool)` + +GetPromotionOk returns a tuple with the Promotion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPromotion + +`func (o *CustomPromotionRuleDataRelationships) SetPromotion(v CouponCodesPromotionRuleDataRelationshipsPromotion)` + +SetPromotion sets Promotion field to given value. + +### HasPromotion + +`func (o *CustomPromotionRuleDataRelationships) HasPromotion() bool` + +HasPromotion returns a boolean if a field has been set. + +### GetVersions + +`func (o *CustomPromotionRuleDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *CustomPromotionRuleDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *CustomPromotionRuleDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *CustomPromotionRuleDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/CustomPromotionRuleUpdate.md b/api/docs/CustomPromotionRuleUpdate.md new file mode 100644 index 00000000..0deee38a --- /dev/null +++ b/api/docs/CustomPromotionRuleUpdate.md @@ -0,0 +1,51 @@ +# CustomPromotionRuleUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**CustomPromotionRuleUpdateData**](CustomPromotionRuleUpdateData.md) | | + +## Methods + +### NewCustomPromotionRuleUpdate + +`func NewCustomPromotionRuleUpdate(data CustomPromotionRuleUpdateData, ) *CustomPromotionRuleUpdate` + +NewCustomPromotionRuleUpdate instantiates a new CustomPromotionRuleUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCustomPromotionRuleUpdateWithDefaults + +`func NewCustomPromotionRuleUpdateWithDefaults() *CustomPromotionRuleUpdate` + +NewCustomPromotionRuleUpdateWithDefaults instantiates a new CustomPromotionRuleUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *CustomPromotionRuleUpdate) GetData() CustomPromotionRuleUpdateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *CustomPromotionRuleUpdate) GetDataOk() (*CustomPromotionRuleUpdateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *CustomPromotionRuleUpdate) SetData(v CustomPromotionRuleUpdateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/CustomPromotionRuleUpdateData.md b/api/docs/CustomPromotionRuleUpdateData.md new file mode 100644 index 00000000..145a34b7 --- /dev/null +++ b/api/docs/CustomPromotionRuleUpdateData.md @@ -0,0 +1,139 @@ +# CustomPromotionRuleUpdateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Id** | **interface{}** | The resource's id | +**Attributes** | [**PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes**](PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**CustomPromotionRuleUpdateDataRelationships**](CustomPromotionRuleUpdateDataRelationships.md) | | [optional] + +## Methods + +### NewCustomPromotionRuleUpdateData + +`func NewCustomPromotionRuleUpdateData(type_ interface{}, id interface{}, attributes PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes, ) *CustomPromotionRuleUpdateData` + +NewCustomPromotionRuleUpdateData instantiates a new CustomPromotionRuleUpdateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCustomPromotionRuleUpdateDataWithDefaults + +`func NewCustomPromotionRuleUpdateDataWithDefaults() *CustomPromotionRuleUpdateData` + +NewCustomPromotionRuleUpdateDataWithDefaults instantiates a new CustomPromotionRuleUpdateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *CustomPromotionRuleUpdateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CustomPromotionRuleUpdateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CustomPromotionRuleUpdateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *CustomPromotionRuleUpdateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *CustomPromotionRuleUpdateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *CustomPromotionRuleUpdateData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CustomPromotionRuleUpdateData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CustomPromotionRuleUpdateData) SetId(v interface{})` + +SetId sets Id field to given value. + + +### SetIdNil + +`func (o *CustomPromotionRuleUpdateData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *CustomPromotionRuleUpdateData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetAttributes + +`func (o *CustomPromotionRuleUpdateData) GetAttributes() PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *CustomPromotionRuleUpdateData) GetAttributesOk() (*PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *CustomPromotionRuleUpdateData) SetAttributes(v PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *CustomPromotionRuleUpdateData) GetRelationships() CustomPromotionRuleUpdateDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *CustomPromotionRuleUpdateData) GetRelationshipsOk() (*CustomPromotionRuleUpdateDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *CustomPromotionRuleUpdateData) SetRelationships(v CustomPromotionRuleUpdateDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *CustomPromotionRuleUpdateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/OrderAmountPromotionRuleUpdateDataRelationships.md b/api/docs/CustomPromotionRuleUpdateDataRelationships.md similarity index 51% rename from api/docs/OrderAmountPromotionRuleUpdateDataRelationships.md rename to api/docs/CustomPromotionRuleUpdateDataRelationships.md index e07044ce..90d17124 100644 --- a/api/docs/OrderAmountPromotionRuleUpdateDataRelationships.md +++ b/api/docs/CustomPromotionRuleUpdateDataRelationships.md @@ -1,4 +1,4 @@ -# OrderAmountPromotionRuleUpdateDataRelationships +# CustomPromotionRuleUpdateDataRelationships ## Properties @@ -8,45 +8,45 @@ Name | Type | Description | Notes ## Methods -### NewOrderAmountPromotionRuleUpdateDataRelationships +### NewCustomPromotionRuleUpdateDataRelationships -`func NewOrderAmountPromotionRuleUpdateDataRelationships() *OrderAmountPromotionRuleUpdateDataRelationships` +`func NewCustomPromotionRuleUpdateDataRelationships() *CustomPromotionRuleUpdateDataRelationships` -NewOrderAmountPromotionRuleUpdateDataRelationships instantiates a new OrderAmountPromotionRuleUpdateDataRelationships object +NewCustomPromotionRuleUpdateDataRelationships instantiates a new CustomPromotionRuleUpdateDataRelationships object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewOrderAmountPromotionRuleUpdateDataRelationshipsWithDefaults +### NewCustomPromotionRuleUpdateDataRelationshipsWithDefaults -`func NewOrderAmountPromotionRuleUpdateDataRelationshipsWithDefaults() *OrderAmountPromotionRuleUpdateDataRelationships` +`func NewCustomPromotionRuleUpdateDataRelationshipsWithDefaults() *CustomPromotionRuleUpdateDataRelationships` -NewOrderAmountPromotionRuleUpdateDataRelationshipsWithDefaults instantiates a new OrderAmountPromotionRuleUpdateDataRelationships object +NewCustomPromotionRuleUpdateDataRelationshipsWithDefaults instantiates a new CustomPromotionRuleUpdateDataRelationships object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetPromotion -`func (o *OrderAmountPromotionRuleUpdateDataRelationships) GetPromotion() CouponCodesPromotionRuleCreateDataRelationshipsPromotion` +`func (o *CustomPromotionRuleUpdateDataRelationships) GetPromotion() CouponCodesPromotionRuleCreateDataRelationshipsPromotion` GetPromotion returns the Promotion field if non-nil, zero value otherwise. ### GetPromotionOk -`func (o *OrderAmountPromotionRuleUpdateDataRelationships) GetPromotionOk() (*CouponCodesPromotionRuleCreateDataRelationshipsPromotion, bool)` +`func (o *CustomPromotionRuleUpdateDataRelationships) GetPromotionOk() (*CouponCodesPromotionRuleCreateDataRelationshipsPromotion, bool)` GetPromotionOk returns a tuple with the Promotion field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPromotion -`func (o *OrderAmountPromotionRuleUpdateDataRelationships) SetPromotion(v CouponCodesPromotionRuleCreateDataRelationshipsPromotion)` +`func (o *CustomPromotionRuleUpdateDataRelationships) SetPromotion(v CouponCodesPromotionRuleCreateDataRelationshipsPromotion)` SetPromotion sets Promotion field to given value. ### HasPromotion -`func (o *OrderAmountPromotionRuleUpdateDataRelationships) HasPromotion() bool` +`func (o *CustomPromotionRuleUpdateDataRelationships) HasPromotion() bool` HasPromotion returns a boolean if a field has been set. diff --git a/api/docs/CustomPromotionRulesApi.md b/api/docs/CustomPromotionRulesApi.md new file mode 100644 index 00000000..473e9fca --- /dev/null +++ b/api/docs/CustomPromotionRulesApi.md @@ -0,0 +1,902 @@ +# \CustomPromotionRulesApi + +All URIs are relative to *https://.commercelayer.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DELETECustomPromotionRulesCustomPromotionRuleId**](CustomPromotionRulesApi.md#DELETECustomPromotionRulesCustomPromotionRuleId) | **Delete** /custom_promotion_rules/{customPromotionRuleId} | Delete a custom promotion rule +[**GETBuyXPayYPromotionIdCustomPromotionRule**](CustomPromotionRulesApi.md#GETBuyXPayYPromotionIdCustomPromotionRule) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the buy x pay y promotion +[**GETCustomPromotionRules**](CustomPromotionRulesApi.md#GETCustomPromotionRules) | **Get** /custom_promotion_rules | List all custom promotion rules +[**GETCustomPromotionRulesCustomPromotionRuleId**](CustomPromotionRulesApi.md#GETCustomPromotionRulesCustomPromotionRuleId) | **Get** /custom_promotion_rules/{customPromotionRuleId} | Retrieve a custom promotion rule +[**GETExternalPromotionIdCustomPromotionRule**](CustomPromotionRulesApi.md#GETExternalPromotionIdCustomPromotionRule) | **Get** /external_promotions/{externalPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the external promotion +[**GETFixedAmountPromotionIdCustomPromotionRule**](CustomPromotionRulesApi.md#GETFixedAmountPromotionIdCustomPromotionRule) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the fixed amount promotion +[**GETFixedPricePromotionIdCustomPromotionRule**](CustomPromotionRulesApi.md#GETFixedPricePromotionIdCustomPromotionRule) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the fixed price promotion +[**GETFreeGiftPromotionIdCustomPromotionRule**](CustomPromotionRulesApi.md#GETFreeGiftPromotionIdCustomPromotionRule) | **Get** /free_gift_promotions/{freeGiftPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the free gift promotion +[**GETFreeShippingPromotionIdCustomPromotionRule**](CustomPromotionRulesApi.md#GETFreeShippingPromotionIdCustomPromotionRule) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the free shipping promotion +[**GETPercentageDiscountPromotionIdCustomPromotionRule**](CustomPromotionRulesApi.md#GETPercentageDiscountPromotionIdCustomPromotionRule) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the percentage discount promotion +[**GETPromotionIdCustomPromotionRule**](CustomPromotionRulesApi.md#GETPromotionIdCustomPromotionRule) | **Get** /promotions/{promotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the promotion +[**PATCHCustomPromotionRulesCustomPromotionRuleId**](CustomPromotionRulesApi.md#PATCHCustomPromotionRulesCustomPromotionRuleId) | **Patch** /custom_promotion_rules/{customPromotionRuleId} | Update a custom promotion rule +[**POSTCustomPromotionRules**](CustomPromotionRulesApi.md#POSTCustomPromotionRules) | **Post** /custom_promotion_rules | Create a custom promotion rule + + + +## DELETECustomPromotionRulesCustomPromotionRuleId + +> DELETECustomPromotionRulesCustomPromotionRuleId(ctx, customPromotionRuleId).Execute() + +Delete a custom promotion rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customPromotionRuleId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CustomPromotionRulesApi.DELETECustomPromotionRulesCustomPromotionRuleId(context.Background(), customPromotionRuleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPromotionRulesApi.DELETECustomPromotionRulesCustomPromotionRuleId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customPromotionRuleId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDELETECustomPromotionRulesCustomPromotionRuleIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETBuyXPayYPromotionIdCustomPromotionRule + +> GETBuyXPayYPromotionIdCustomPromotionRule(ctx, buyXPayYPromotionId).Execute() + +Retrieve the custom promotion rule associated to the buy x pay y promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + buyXPayYPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CustomPromotionRulesApi.GETBuyXPayYPromotionIdCustomPromotionRule(context.Background(), buyXPayYPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPromotionRulesApi.GETBuyXPayYPromotionIdCustomPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdCustomPromotionRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomPromotionRules + +> GETCustomPromotionRules200Response GETCustomPromotionRules(ctx).Execute() + +List all custom promotion rules + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomPromotionRulesApi.GETCustomPromotionRules(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPromotionRulesApi.GETCustomPromotionRules``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETCustomPromotionRules`: GETCustomPromotionRules200Response + fmt.Fprintf(os.Stdout, "Response from `CustomPromotionRulesApi.GETCustomPromotionRules`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomPromotionRulesRequest struct via the builder pattern + + +### Return type + +[**GETCustomPromotionRules200Response**](GETCustomPromotionRules200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomPromotionRulesCustomPromotionRuleId + +> GETCustomPromotionRulesCustomPromotionRuleId200Response GETCustomPromotionRulesCustomPromotionRuleId(ctx, customPromotionRuleId).Execute() + +Retrieve a custom promotion rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customPromotionRuleId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomPromotionRulesApi.GETCustomPromotionRulesCustomPromotionRuleId(context.Background(), customPromotionRuleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPromotionRulesApi.GETCustomPromotionRulesCustomPromotionRuleId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETCustomPromotionRulesCustomPromotionRuleId`: GETCustomPromotionRulesCustomPromotionRuleId200Response + fmt.Fprintf(os.Stdout, "Response from `CustomPromotionRulesApi.GETCustomPromotionRulesCustomPromotionRuleId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customPromotionRuleId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomPromotionRulesCustomPromotionRuleIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**GETCustomPromotionRulesCustomPromotionRuleId200Response**](GETCustomPromotionRulesCustomPromotionRuleId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalPromotionIdCustomPromotionRule + +> GETExternalPromotionIdCustomPromotionRule(ctx, externalPromotionId).Execute() + +Retrieve the custom promotion rule associated to the external promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CustomPromotionRulesApi.GETExternalPromotionIdCustomPromotionRule(context.Background(), externalPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPromotionRulesApi.GETExternalPromotionIdCustomPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalPromotionIdCustomPromotionRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedAmountPromotionIdCustomPromotionRule + +> GETFixedAmountPromotionIdCustomPromotionRule(ctx, fixedAmountPromotionId).Execute() + +Retrieve the custom promotion rule associated to the fixed amount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedAmountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CustomPromotionRulesApi.GETFixedAmountPromotionIdCustomPromotionRule(context.Background(), fixedAmountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPromotionRulesApi.GETFixedAmountPromotionIdCustomPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdCustomPromotionRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedPricePromotionIdCustomPromotionRule + +> GETFixedPricePromotionIdCustomPromotionRule(ctx, fixedPricePromotionId).Execute() + +Retrieve the custom promotion rule associated to the fixed price promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedPricePromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CustomPromotionRulesApi.GETFixedPricePromotionIdCustomPromotionRule(context.Background(), fixedPricePromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPromotionRulesApi.GETFixedPricePromotionIdCustomPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdCustomPromotionRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeGiftPromotionIdCustomPromotionRule + +> GETFreeGiftPromotionIdCustomPromotionRule(ctx, freeGiftPromotionId).Execute() + +Retrieve the custom promotion rule associated to the free gift promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeGiftPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CustomPromotionRulesApi.GETFreeGiftPromotionIdCustomPromotionRule(context.Background(), freeGiftPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPromotionRulesApi.GETFreeGiftPromotionIdCustomPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdCustomPromotionRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeShippingPromotionIdCustomPromotionRule + +> GETFreeShippingPromotionIdCustomPromotionRule(ctx, freeShippingPromotionId).Execute() + +Retrieve the custom promotion rule associated to the free shipping promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeShippingPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CustomPromotionRulesApi.GETFreeShippingPromotionIdCustomPromotionRule(context.Background(), freeShippingPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPromotionRulesApi.GETFreeShippingPromotionIdCustomPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdCustomPromotionRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPercentageDiscountPromotionIdCustomPromotionRule + +> GETPercentageDiscountPromotionIdCustomPromotionRule(ctx, percentageDiscountPromotionId).Execute() + +Retrieve the custom promotion rule associated to the percentage discount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + percentageDiscountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CustomPromotionRulesApi.GETPercentageDiscountPromotionIdCustomPromotionRule(context.Background(), percentageDiscountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPromotionRulesApi.GETPercentageDiscountPromotionIdCustomPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdCustomPromotionRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPromotionIdCustomPromotionRule + +> GETPromotionIdCustomPromotionRule(ctx, promotionId).Execute() + +Retrieve the custom promotion rule associated to the promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + promotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CustomPromotionRulesApi.GETPromotionIdCustomPromotionRule(context.Background(), promotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPromotionRulesApi.GETPromotionIdCustomPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**promotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPromotionIdCustomPromotionRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PATCHCustomPromotionRulesCustomPromotionRuleId + +> PATCHCustomPromotionRulesCustomPromotionRuleId200Response PATCHCustomPromotionRulesCustomPromotionRuleId(ctx, customPromotionRuleId).CustomPromotionRuleUpdate(customPromotionRuleUpdate).Execute() + +Update a custom promotion rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customPromotionRuleUpdate := *openapiclient.NewCustomPromotionRuleUpdate(*openapiclient.NewCustomPromotionRuleUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes())) // CustomPromotionRuleUpdate | + customPromotionRuleId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomPromotionRulesApi.PATCHCustomPromotionRulesCustomPromotionRuleId(context.Background(), customPromotionRuleId).CustomPromotionRuleUpdate(customPromotionRuleUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPromotionRulesApi.PATCHCustomPromotionRulesCustomPromotionRuleId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PATCHCustomPromotionRulesCustomPromotionRuleId`: PATCHCustomPromotionRulesCustomPromotionRuleId200Response + fmt.Fprintf(os.Stdout, "Response from `CustomPromotionRulesApi.PATCHCustomPromotionRulesCustomPromotionRuleId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customPromotionRuleId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPATCHCustomPromotionRulesCustomPromotionRuleIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customPromotionRuleUpdate** | [**CustomPromotionRuleUpdate**](CustomPromotionRuleUpdate.md) | | + + +### Return type + +[**PATCHCustomPromotionRulesCustomPromotionRuleId200Response**](PATCHCustomPromotionRulesCustomPromotionRuleId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## POSTCustomPromotionRules + +> POSTCustomPromotionRules201Response POSTCustomPromotionRules(ctx).CustomPromotionRuleCreate(customPromotionRuleCreate).Execute() + +Create a custom promotion rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customPromotionRuleCreate := *openapiclient.NewCustomPromotionRuleCreate(*openapiclient.NewCustomPromotionRuleCreateData(interface{}(123), *openapiclient.NewPOSTCustomPromotionRules201ResponseDataAttributes())) // CustomPromotionRuleCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CustomPromotionRulesApi.POSTCustomPromotionRules(context.Background()).CustomPromotionRuleCreate(customPromotionRuleCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomPromotionRulesApi.POSTCustomPromotionRules``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `POSTCustomPromotionRules`: POSTCustomPromotionRules201Response + fmt.Fprintf(os.Stdout, "Response from `CustomPromotionRulesApi.POSTCustomPromotionRules`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPOSTCustomPromotionRulesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customPromotionRuleCreate** | [**CustomPromotionRuleCreate**](CustomPromotionRuleCreate.md) | | + +### Return type + +[**POSTCustomPromotionRules201Response**](POSTCustomPromotionRules201Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/api/docs/CustomerAddressCreateData.md b/api/docs/CustomerAddressCreateData.md index 4ba093ea..13776879 100644 --- a/api/docs/CustomerAddressCreateData.md +++ b/api/docs/CustomerAddressCreateData.md @@ -5,14 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | -**Attributes** | [**POSTAdyenPayments201ResponseDataAttributes**](POSTAdyenPayments201ResponseDataAttributes.md) | | +**Attributes** | [**POSTCustomerAddresses201ResponseDataAttributes**](POSTCustomerAddresses201ResponseDataAttributes.md) | | **Relationships** | Pointer to [**CustomerAddressCreateDataRelationships**](CustomerAddressCreateDataRelationships.md) | | [optional] ## Methods ### NewCustomerAddressCreateData -`func NewCustomerAddressCreateData(type_ interface{}, attributes POSTAdyenPayments201ResponseDataAttributes, ) *CustomerAddressCreateData` +`func NewCustomerAddressCreateData(type_ interface{}, attributes POSTCustomerAddresses201ResponseDataAttributes, ) *CustomerAddressCreateData` NewCustomerAddressCreateData instantiates a new CustomerAddressCreateData object This constructor will assign default values to properties that have it defined, @@ -59,20 +59,20 @@ SetType sets Type field to given value. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetAttributes -`func (o *CustomerAddressCreateData) GetAttributes() POSTAdyenPayments201ResponseDataAttributes` +`func (o *CustomerAddressCreateData) GetAttributes() POSTCustomerAddresses201ResponseDataAttributes` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *CustomerAddressCreateData) GetAttributesOk() (*POSTAdyenPayments201ResponseDataAttributes, bool)` +`func (o *CustomerAddressCreateData) GetAttributesOk() (*POSTCustomerAddresses201ResponseDataAttributes, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *CustomerAddressCreateData) SetAttributes(v POSTAdyenPayments201ResponseDataAttributes)` +`func (o *CustomerAddressCreateData) SetAttributes(v POSTCustomerAddresses201ResponseDataAttributes)` SetAttributes sets Attributes field to given value. diff --git a/api/docs/CustomerAddressDataRelationships.md b/api/docs/CustomerAddressDataRelationships.md index b2e822af..5a91e4e4 100644 --- a/api/docs/CustomerAddressDataRelationships.md +++ b/api/docs/CustomerAddressDataRelationships.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Customer** | Pointer to [**CouponRecipientDataRelationshipsCustomer**](CouponRecipientDataRelationshipsCustomer.md) | | [optional] **Address** | Pointer to [**BingGeocoderDataRelationshipsAddresses**](BingGeocoderDataRelationshipsAddresses.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -79,20 +80,20 @@ HasAddress returns a boolean if a field has been set. ### GetEvents -`func (o *CustomerAddressDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` +`func (o *CustomerAddressDataRelationships) GetEvents() AddressDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *CustomerAddressDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` +`func (o *CustomerAddressDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *CustomerAddressDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` +`func (o *CustomerAddressDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -102,6 +103,31 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetVersions + +`func (o *CustomerAddressDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *CustomerAddressDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *CustomerAddressDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *CustomerAddressDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/CustomerAddressesApi.md b/api/docs/CustomerAddressesApi.md index 97ea2576..c574576a 100644 --- a/api/docs/CustomerAddressesApi.md +++ b/api/docs/CustomerAddressesApi.md @@ -373,7 +373,7 @@ import ( ) func main() { - customerAddressCreate := *openapiclient.NewCustomerAddressCreate(*openapiclient.NewCustomerAddressCreateData(interface{}(123), *openapiclient.NewPOSTAdyenPayments201ResponseDataAttributes())) // CustomerAddressCreate | + customerAddressCreate := *openapiclient.NewCustomerAddressCreate(*openapiclient.NewCustomerAddressCreateData(interface{}(123), *openapiclient.NewPOSTCustomerAddresses201ResponseDataAttributes(interface{}(john@example.com)))) // CustomerAddressCreate | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/api/docs/CustomerCreateDataRelationships.md b/api/docs/CustomerCreateDataRelationships.md index 740124b8..da01dfda 100644 --- a/api/docs/CustomerCreateDataRelationships.md +++ b/api/docs/CustomerCreateDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CustomerGroup** | Pointer to [**CustomerCreateDataRelationshipsCustomerGroup**](CustomerCreateDataRelationshipsCustomerGroup.md) | | [optional] +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] ## Methods @@ -50,6 +51,31 @@ SetCustomerGroup sets CustomerGroup field to given value. HasCustomerGroup returns a boolean if a field has been set. +### GetTags + +`func (o *CustomerCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CustomerCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CustomerCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CustomerCreateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/CustomerDataRelationships.md b/api/docs/CustomerDataRelationships.md index 606df497..31f2aceb 100644 --- a/api/docs/CustomerDataRelationships.md +++ b/api/docs/CustomerDataRelationships.md @@ -10,10 +10,11 @@ Name | Type | Description | Notes **CustomerSubscriptions** | Pointer to [**CustomerDataRelationshipsCustomerSubscriptions**](CustomerDataRelationshipsCustomerSubscriptions.md) | | [optional] **Orders** | Pointer to [**AdyenPaymentDataRelationshipsOrder**](AdyenPaymentDataRelationshipsOrder.md) | | [optional] **OrderSubscriptions** | Pointer to [**CustomerDataRelationshipsOrderSubscriptions**](CustomerDataRelationshipsOrderSubscriptions.md) | | [optional] -**Returns** | Pointer to [**CustomerDataRelationshipsReturns**](CustomerDataRelationshipsReturns.md) | | [optional] +**Returns** | Pointer to [**CaptureDataRelationshipsReturn**](CaptureDataRelationshipsReturn.md) | | [optional] **SkuLists** | Pointer to [**BundleDataRelationshipsSkuList**](BundleDataRelationshipsSkuList.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**AddressDataRelationshipsTags**](AddressDataRelationshipsTags.md) | | [optional] ## Methods @@ -186,20 +187,20 @@ HasOrderSubscriptions returns a boolean if a field has been set. ### GetReturns -`func (o *CustomerDataRelationships) GetReturns() CustomerDataRelationshipsReturns` +`func (o *CustomerDataRelationships) GetReturns() CaptureDataRelationshipsReturn` GetReturns returns the Returns field if non-nil, zero value otherwise. ### GetReturnsOk -`func (o *CustomerDataRelationships) GetReturnsOk() (*CustomerDataRelationshipsReturns, bool)` +`func (o *CustomerDataRelationships) GetReturnsOk() (*CaptureDataRelationshipsReturn, bool)` GetReturnsOk returns a tuple with the Returns field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetReturns -`func (o *CustomerDataRelationships) SetReturns(v CustomerDataRelationshipsReturns)` +`func (o *CustomerDataRelationships) SetReturns(v CaptureDataRelationshipsReturn)` SetReturns sets Returns field to given value. @@ -236,20 +237,20 @@ HasSkuLists returns a boolean if a field has been set. ### GetAttachments -`func (o *CustomerDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *CustomerDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *CustomerDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *CustomerDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *CustomerDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *CustomerDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -261,20 +262,20 @@ HasAttachments returns a boolean if a field has been set. ### GetEvents -`func (o *CustomerDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` +`func (o *CustomerDataRelationships) GetEvents() AddressDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *CustomerDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` +`func (o *CustomerDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *CustomerDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` +`func (o *CustomerDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -284,6 +285,31 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetTags + +`func (o *CustomerDataRelationships) GetTags() AddressDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CustomerDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CustomerDataRelationships) SetTags(v AddressDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CustomerDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/CustomerGroupDataRelationships.md b/api/docs/CustomerGroupDataRelationships.md index 9fd22440..134f6ef2 100644 --- a/api/docs/CustomerGroupDataRelationships.md +++ b/api/docs/CustomerGroupDataRelationships.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Customers** | Pointer to [**CouponRecipientDataRelationshipsCustomer**](CouponRecipientDataRelationshipsCustomer.md) | | [optional] **Markets** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -79,20 +80,20 @@ HasMarkets returns a boolean if a field has been set. ### GetAttachments -`func (o *CustomerGroupDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *CustomerGroupDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *CustomerGroupDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *CustomerGroupDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *CustomerGroupDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *CustomerGroupDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -102,6 +103,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *CustomerGroupDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *CustomerGroupDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *CustomerGroupDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *CustomerGroupDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/CustomerPasswordResetDataRelationships.md b/api/docs/CustomerPasswordResetDataRelationships.md index 46c61e6b..99b8983a 100644 --- a/api/docs/CustomerPasswordResetDataRelationships.md +++ b/api/docs/CustomerPasswordResetDataRelationships.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Customer** | Pointer to [**CouponRecipientDataRelationshipsCustomer**](CouponRecipientDataRelationshipsCustomer.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] ## Methods @@ -53,20 +53,20 @@ HasCustomer returns a boolean if a field has been set. ### GetEvents -`func (o *CustomerPasswordResetDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` +`func (o *CustomerPasswordResetDataRelationships) GetEvents() AddressDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *CustomerPasswordResetDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` +`func (o *CustomerPasswordResetDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *CustomerPasswordResetDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` +`func (o *CustomerPasswordResetDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` SetEvents sets Events field to given value. diff --git a/api/docs/CustomerPaymentSourceCreateData.md b/api/docs/CustomerPaymentSourceCreateData.md index 923454d8..10dbda05 100644 --- a/api/docs/CustomerPaymentSourceCreateData.md +++ b/api/docs/CustomerPaymentSourceCreateData.md @@ -5,14 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | -**Attributes** | [**POSTAdyenPayments201ResponseDataAttributes**](POSTAdyenPayments201ResponseDataAttributes.md) | | +**Attributes** | [**POSTCustomerPaymentSources201ResponseDataAttributes**](POSTCustomerPaymentSources201ResponseDataAttributes.md) | | **Relationships** | Pointer to [**CustomerPaymentSourceCreateDataRelationships**](CustomerPaymentSourceCreateDataRelationships.md) | | [optional] ## Methods ### NewCustomerPaymentSourceCreateData -`func NewCustomerPaymentSourceCreateData(type_ interface{}, attributes POSTAdyenPayments201ResponseDataAttributes, ) *CustomerPaymentSourceCreateData` +`func NewCustomerPaymentSourceCreateData(type_ interface{}, attributes POSTCustomerPaymentSources201ResponseDataAttributes, ) *CustomerPaymentSourceCreateData` NewCustomerPaymentSourceCreateData instantiates a new CustomerPaymentSourceCreateData object This constructor will assign default values to properties that have it defined, @@ -59,20 +59,20 @@ SetType sets Type field to given value. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetAttributes -`func (o *CustomerPaymentSourceCreateData) GetAttributes() POSTAdyenPayments201ResponseDataAttributes` +`func (o *CustomerPaymentSourceCreateData) GetAttributes() POSTCustomerPaymentSources201ResponseDataAttributes` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *CustomerPaymentSourceCreateData) GetAttributesOk() (*POSTAdyenPayments201ResponseDataAttributes, bool)` +`func (o *CustomerPaymentSourceCreateData) GetAttributesOk() (*POSTCustomerPaymentSources201ResponseDataAttributes, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *CustomerPaymentSourceCreateData) SetAttributes(v POSTAdyenPayments201ResponseDataAttributes)` +`func (o *CustomerPaymentSourceCreateData) SetAttributes(v POSTCustomerPaymentSources201ResponseDataAttributes)` SetAttributes sets Attributes field to given value. diff --git a/api/docs/CustomerPaymentSourceCreateDataRelationships.md b/api/docs/CustomerPaymentSourceCreateDataRelationships.md index 709c7a30..ca7bb548 100644 --- a/api/docs/CustomerPaymentSourceCreateDataRelationships.md +++ b/api/docs/CustomerPaymentSourceCreateDataRelationships.md @@ -5,13 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Customer** | [**CouponRecipientCreateDataRelationshipsCustomer**](CouponRecipientCreateDataRelationshipsCustomer.md) | | -**PaymentSource** | [**CustomerPaymentSourceCreateDataRelationshipsPaymentSource**](CustomerPaymentSourceCreateDataRelationshipsPaymentSource.md) | | +**PaymentMethod** | Pointer to [**CustomerPaymentSourceCreateDataRelationshipsPaymentMethod**](CustomerPaymentSourceCreateDataRelationshipsPaymentMethod.md) | | [optional] +**PaymentSource** | Pointer to [**CustomerPaymentSourceCreateDataRelationshipsPaymentSource**](CustomerPaymentSourceCreateDataRelationshipsPaymentSource.md) | | [optional] ## Methods ### NewCustomerPaymentSourceCreateDataRelationships -`func NewCustomerPaymentSourceCreateDataRelationships(customer CouponRecipientCreateDataRelationshipsCustomer, paymentSource CustomerPaymentSourceCreateDataRelationshipsPaymentSource, ) *CustomerPaymentSourceCreateDataRelationships` +`func NewCustomerPaymentSourceCreateDataRelationships(customer CouponRecipientCreateDataRelationshipsCustomer, ) *CustomerPaymentSourceCreateDataRelationships` NewCustomerPaymentSourceCreateDataRelationships instantiates a new CustomerPaymentSourceCreateDataRelationships object This constructor will assign default values to properties that have it defined, @@ -46,6 +47,31 @@ and a boolean to check if the value has been set. SetCustomer sets Customer field to given value. +### GetPaymentMethod + +`func (o *CustomerPaymentSourceCreateDataRelationships) GetPaymentMethod() CustomerPaymentSourceCreateDataRelationshipsPaymentMethod` + +GetPaymentMethod returns the PaymentMethod field if non-nil, zero value otherwise. + +### GetPaymentMethodOk + +`func (o *CustomerPaymentSourceCreateDataRelationships) GetPaymentMethodOk() (*CustomerPaymentSourceCreateDataRelationshipsPaymentMethod, bool)` + +GetPaymentMethodOk returns a tuple with the PaymentMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentMethod + +`func (o *CustomerPaymentSourceCreateDataRelationships) SetPaymentMethod(v CustomerPaymentSourceCreateDataRelationshipsPaymentMethod)` + +SetPaymentMethod sets PaymentMethod field to given value. + +### HasPaymentMethod + +`func (o *CustomerPaymentSourceCreateDataRelationships) HasPaymentMethod() bool` + +HasPaymentMethod returns a boolean if a field has been set. + ### GetPaymentSource `func (o *CustomerPaymentSourceCreateDataRelationships) GetPaymentSource() CustomerPaymentSourceCreateDataRelationshipsPaymentSource` @@ -65,6 +91,11 @@ and a boolean to check if the value has been set. SetPaymentSource sets PaymentSource field to given value. +### HasPaymentSource + +`func (o *CustomerPaymentSourceCreateDataRelationships) HasPaymentSource() bool` + +HasPaymentSource returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/CustomerPaymentSourceCreateDataRelationshipsPaymentMethod.md b/api/docs/CustomerPaymentSourceCreateDataRelationshipsPaymentMethod.md new file mode 100644 index 00000000..3d296e3a --- /dev/null +++ b/api/docs/CustomerPaymentSourceCreateDataRelationshipsPaymentMethod.md @@ -0,0 +1,51 @@ +# CustomerPaymentSourceCreateDataRelationshipsPaymentMethod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AdyenGatewayDataRelationshipsPaymentMethodsData**](AdyenGatewayDataRelationshipsPaymentMethodsData.md) | | + +## Methods + +### NewCustomerPaymentSourceCreateDataRelationshipsPaymentMethod + +`func NewCustomerPaymentSourceCreateDataRelationshipsPaymentMethod(data AdyenGatewayDataRelationshipsPaymentMethodsData, ) *CustomerPaymentSourceCreateDataRelationshipsPaymentMethod` + +NewCustomerPaymentSourceCreateDataRelationshipsPaymentMethod instantiates a new CustomerPaymentSourceCreateDataRelationshipsPaymentMethod object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCustomerPaymentSourceCreateDataRelationshipsPaymentMethodWithDefaults + +`func NewCustomerPaymentSourceCreateDataRelationshipsPaymentMethodWithDefaults() *CustomerPaymentSourceCreateDataRelationshipsPaymentMethod` + +NewCustomerPaymentSourceCreateDataRelationshipsPaymentMethodWithDefaults instantiates a new CustomerPaymentSourceCreateDataRelationshipsPaymentMethod object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *CustomerPaymentSourceCreateDataRelationshipsPaymentMethod) GetData() AdyenGatewayDataRelationshipsPaymentMethodsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *CustomerPaymentSourceCreateDataRelationshipsPaymentMethod) GetDataOk() (*AdyenGatewayDataRelationshipsPaymentMethodsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *CustomerPaymentSourceCreateDataRelationshipsPaymentMethod) SetData(v AdyenGatewayDataRelationshipsPaymentMethodsData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/CustomerPaymentSourceDataRelationships.md b/api/docs/CustomerPaymentSourceDataRelationships.md index 8b1f6343..a561a72d 100644 --- a/api/docs/CustomerPaymentSourceDataRelationships.md +++ b/api/docs/CustomerPaymentSourceDataRelationships.md @@ -5,7 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Customer** | Pointer to [**CouponRecipientDataRelationshipsCustomer**](CouponRecipientDataRelationshipsCustomer.md) | | [optional] +**PaymentMethod** | Pointer to [**AdyenGatewayDataRelationshipsPaymentMethods**](AdyenGatewayDataRelationshipsPaymentMethods.md) | | [optional] **PaymentSource** | Pointer to [**CustomerPaymentSourceDataRelationshipsPaymentSource**](CustomerPaymentSourceDataRelationshipsPaymentSource.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -51,6 +53,31 @@ SetCustomer sets Customer field to given value. HasCustomer returns a boolean if a field has been set. +### GetPaymentMethod + +`func (o *CustomerPaymentSourceDataRelationships) GetPaymentMethod() AdyenGatewayDataRelationshipsPaymentMethods` + +GetPaymentMethod returns the PaymentMethod field if non-nil, zero value otherwise. + +### GetPaymentMethodOk + +`func (o *CustomerPaymentSourceDataRelationships) GetPaymentMethodOk() (*AdyenGatewayDataRelationshipsPaymentMethods, bool)` + +GetPaymentMethodOk returns a tuple with the PaymentMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentMethod + +`func (o *CustomerPaymentSourceDataRelationships) SetPaymentMethod(v AdyenGatewayDataRelationshipsPaymentMethods)` + +SetPaymentMethod sets PaymentMethod field to given value. + +### HasPaymentMethod + +`func (o *CustomerPaymentSourceDataRelationships) HasPaymentMethod() bool` + +HasPaymentMethod returns a boolean if a field has been set. + ### GetPaymentSource `func (o *CustomerPaymentSourceDataRelationships) GetPaymentSource() CustomerPaymentSourceDataRelationshipsPaymentSource` @@ -76,6 +103,31 @@ SetPaymentSource sets PaymentSource field to given value. HasPaymentSource returns a boolean if a field has been set. +### GetVersions + +`func (o *CustomerPaymentSourceDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *CustomerPaymentSourceDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *CustomerPaymentSourceDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *CustomerPaymentSourceDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/CustomerPaymentSourceUpdateData.md b/api/docs/CustomerPaymentSourceUpdateData.md index 89404d09..7f26c03d 100644 --- a/api/docs/CustomerPaymentSourceUpdateData.md +++ b/api/docs/CustomerPaymentSourceUpdateData.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Id** | **interface{}** | The resource's id | -**Attributes** | [**PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes**](PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md) | | +**Attributes** | [**PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes**](PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes.md) | | **Relationships** | Pointer to [**CustomerPaymentSourceUpdateDataRelationships**](CustomerPaymentSourceUpdateDataRelationships.md) | | [optional] ## Methods ### NewCustomerPaymentSourceUpdateData -`func NewCustomerPaymentSourceUpdateData(type_ interface{}, id interface{}, attributes PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, ) *CustomerPaymentSourceUpdateData` +`func NewCustomerPaymentSourceUpdateData(type_ interface{}, id interface{}, attributes PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes, ) *CustomerPaymentSourceUpdateData` NewCustomerPaymentSourceUpdateData instantiates a new CustomerPaymentSourceUpdateData object This constructor will assign default values to properties that have it defined, @@ -90,20 +90,20 @@ SetId sets Id field to given value. UnsetId ensures that no value is present for Id, not even an explicit nil ### GetAttributes -`func (o *CustomerPaymentSourceUpdateData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes` +`func (o *CustomerPaymentSourceUpdateData) GetAttributes() PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *CustomerPaymentSourceUpdateData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool)` +`func (o *CustomerPaymentSourceUpdateData) GetAttributesOk() (*PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *CustomerPaymentSourceUpdateData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes)` +`func (o *CustomerPaymentSourceUpdateData) SetAttributes(v PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes)` SetAttributes sets Attributes field to given value. diff --git a/api/docs/CustomerPaymentSourceUpdateDataRelationships.md b/api/docs/CustomerPaymentSourceUpdateDataRelationships.md index b3c7c7ca..289d5bc4 100644 --- a/api/docs/CustomerPaymentSourceUpdateDataRelationships.md +++ b/api/docs/CustomerPaymentSourceUpdateDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Customer** | Pointer to [**CouponRecipientCreateDataRelationshipsCustomer**](CouponRecipientCreateDataRelationshipsCustomer.md) | | [optional] +**PaymentMethod** | Pointer to [**CustomerPaymentSourceCreateDataRelationshipsPaymentMethod**](CustomerPaymentSourceCreateDataRelationshipsPaymentMethod.md) | | [optional] **PaymentSource** | Pointer to [**CustomerPaymentSourceCreateDataRelationshipsPaymentSource**](CustomerPaymentSourceCreateDataRelationshipsPaymentSource.md) | | [optional] ## Methods @@ -51,6 +52,31 @@ SetCustomer sets Customer field to given value. HasCustomer returns a boolean if a field has been set. +### GetPaymentMethod + +`func (o *CustomerPaymentSourceUpdateDataRelationships) GetPaymentMethod() CustomerPaymentSourceCreateDataRelationshipsPaymentMethod` + +GetPaymentMethod returns the PaymentMethod field if non-nil, zero value otherwise. + +### GetPaymentMethodOk + +`func (o *CustomerPaymentSourceUpdateDataRelationships) GetPaymentMethodOk() (*CustomerPaymentSourceCreateDataRelationshipsPaymentMethod, bool)` + +GetPaymentMethodOk returns a tuple with the PaymentMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentMethod + +`func (o *CustomerPaymentSourceUpdateDataRelationships) SetPaymentMethod(v CustomerPaymentSourceCreateDataRelationshipsPaymentMethod)` + +SetPaymentMethod sets PaymentMethod field to given value. + +### HasPaymentMethod + +`func (o *CustomerPaymentSourceUpdateDataRelationships) HasPaymentMethod() bool` + +HasPaymentMethod returns a boolean if a field has been set. + ### GetPaymentSource `func (o *CustomerPaymentSourceUpdateDataRelationships) GetPaymentSource() CustomerPaymentSourceCreateDataRelationshipsPaymentSource` diff --git a/api/docs/CustomerPaymentSourcesApi.md b/api/docs/CustomerPaymentSourcesApi.md index 82a98eb8..07d7a2a2 100644 --- a/api/docs/CustomerPaymentSourcesApi.md +++ b/api/docs/CustomerPaymentSourcesApi.md @@ -508,7 +508,7 @@ import ( ) func main() { - customerPaymentSourceUpdate := *openapiclient.NewCustomerPaymentSourceUpdate(*openapiclient.NewCustomerPaymentSourceUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes())) // CustomerPaymentSourceUpdate | + customerPaymentSourceUpdate := *openapiclient.NewCustomerPaymentSourceUpdate(*openapiclient.NewCustomerPaymentSourceUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes())) // CustomerPaymentSourceUpdate | customerPaymentSourceId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() @@ -580,7 +580,7 @@ import ( ) func main() { - customerPaymentSourceCreate := *openapiclient.NewCustomerPaymentSourceCreate(*openapiclient.NewCustomerPaymentSourceCreateData(interface{}(123), *openapiclient.NewPOSTAdyenPayments201ResponseDataAttributes())) // CustomerPaymentSourceCreate | + customerPaymentSourceCreate := *openapiclient.NewCustomerPaymentSourceCreate(*openapiclient.NewCustomerPaymentSourceCreateData(interface{}(123), *openapiclient.NewPOSTCustomerPaymentSources201ResponseDataAttributes())) // CustomerPaymentSourceCreate | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/api/docs/CustomerSubscriptionData.md b/api/docs/CustomerSubscriptionData.md index d7ec7820..25cb82fa 100644 --- a/api/docs/CustomerSubscriptionData.md +++ b/api/docs/CustomerSubscriptionData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes**](GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**CustomerPasswordResetDataRelationships**](CustomerPasswordResetDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**CustomerSubscriptionDataRelationships**](CustomerSubscriptionDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *CustomerSubscriptionData) GetRelationships() CustomerPasswordResetDataRelationships` +`func (o *CustomerSubscriptionData) GetRelationships() CustomerSubscriptionDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *CustomerSubscriptionData) GetRelationshipsOk() (*CustomerPasswordResetDataRelationships, bool)` +`func (o *CustomerSubscriptionData) GetRelationshipsOk() (*CustomerSubscriptionDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *CustomerSubscriptionData) SetRelationships(v CustomerPasswordResetDataRelationships)` +`func (o *CustomerSubscriptionData) SetRelationships(v CustomerSubscriptionDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/CustomerSubscriptionDataRelationships.md b/api/docs/CustomerSubscriptionDataRelationships.md new file mode 100644 index 00000000..92fc2f88 --- /dev/null +++ b/api/docs/CustomerSubscriptionDataRelationships.md @@ -0,0 +1,108 @@ +# CustomerSubscriptionDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Customer** | Pointer to [**CouponRecipientDataRelationshipsCustomer**](CouponRecipientDataRelationshipsCustomer.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewCustomerSubscriptionDataRelationships + +`func NewCustomerSubscriptionDataRelationships() *CustomerSubscriptionDataRelationships` + +NewCustomerSubscriptionDataRelationships instantiates a new CustomerSubscriptionDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCustomerSubscriptionDataRelationshipsWithDefaults + +`func NewCustomerSubscriptionDataRelationshipsWithDefaults() *CustomerSubscriptionDataRelationships` + +NewCustomerSubscriptionDataRelationshipsWithDefaults instantiates a new CustomerSubscriptionDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCustomer + +`func (o *CustomerSubscriptionDataRelationships) GetCustomer() CouponRecipientDataRelationshipsCustomer` + +GetCustomer returns the Customer field if non-nil, zero value otherwise. + +### GetCustomerOk + +`func (o *CustomerSubscriptionDataRelationships) GetCustomerOk() (*CouponRecipientDataRelationshipsCustomer, bool)` + +GetCustomerOk returns a tuple with the Customer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomer + +`func (o *CustomerSubscriptionDataRelationships) SetCustomer(v CouponRecipientDataRelationshipsCustomer)` + +SetCustomer sets Customer field to given value. + +### HasCustomer + +`func (o *CustomerSubscriptionDataRelationships) HasCustomer() bool` + +HasCustomer returns a boolean if a field has been set. + +### GetEvents + +`func (o *CustomerSubscriptionDataRelationships) GetEvents() AddressDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *CustomerSubscriptionDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *CustomerSubscriptionDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *CustomerSubscriptionDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetVersions + +`func (o *CustomerSubscriptionDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *CustomerSubscriptionDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *CustomerSubscriptionDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *CustomerSubscriptionDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/CustomerSubscriptionUpdateData.md b/api/docs/CustomerSubscriptionUpdateData.md index ef3381b2..a054734b 100644 --- a/api/docs/CustomerSubscriptionUpdateData.md +++ b/api/docs/CustomerSubscriptionUpdateData.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Id** | **interface{}** | The resource's id | -**Attributes** | [**PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes**](PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md) | | +**Attributes** | [**PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes**](PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes.md) | | **Relationships** | Pointer to **interface{}** | | [optional] ## Methods ### NewCustomerSubscriptionUpdateData -`func NewCustomerSubscriptionUpdateData(type_ interface{}, id interface{}, attributes PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, ) *CustomerSubscriptionUpdateData` +`func NewCustomerSubscriptionUpdateData(type_ interface{}, id interface{}, attributes PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes, ) *CustomerSubscriptionUpdateData` NewCustomerSubscriptionUpdateData instantiates a new CustomerSubscriptionUpdateData object This constructor will assign default values to properties that have it defined, @@ -90,20 +90,20 @@ SetId sets Id field to given value. UnsetId ensures that no value is present for Id, not even an explicit nil ### GetAttributes -`func (o *CustomerSubscriptionUpdateData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes` +`func (o *CustomerSubscriptionUpdateData) GetAttributes() PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *CustomerSubscriptionUpdateData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool)` +`func (o *CustomerSubscriptionUpdateData) GetAttributesOk() (*PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *CustomerSubscriptionUpdateData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes)` +`func (o *CustomerSubscriptionUpdateData) SetAttributes(v PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes)` SetAttributes sets Attributes field to given value. diff --git a/api/docs/CustomerSubscriptionsApi.md b/api/docs/CustomerSubscriptionsApi.md index fc951895..2dc9bcb2 100644 --- a/api/docs/CustomerSubscriptionsApi.md +++ b/api/docs/CustomerSubscriptionsApi.md @@ -301,7 +301,7 @@ import ( ) func main() { - customerSubscriptionUpdate := *openapiclient.NewCustomerSubscriptionUpdate(*openapiclient.NewCustomerSubscriptionUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes())) // CustomerSubscriptionUpdate | + customerSubscriptionUpdate := *openapiclient.NewCustomerSubscriptionUpdate(*openapiclient.NewCustomerSubscriptionUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes())) // CustomerSubscriptionUpdate | customerSubscriptionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() @@ -373,7 +373,7 @@ import ( ) func main() { - customerSubscriptionCreate := *openapiclient.NewCustomerSubscriptionCreate(*openapiclient.NewCustomerSubscriptionCreateData(interface{}(123), *openapiclient.NewPOSTCustomerSubscriptions201ResponseDataAttributes(interface{}(john@example.com)))) // CustomerSubscriptionCreate | + customerSubscriptionCreate := *openapiclient.NewCustomerSubscriptionCreate(*openapiclient.NewCustomerSubscriptionCreateData(interface{}(123), *openapiclient.NewPOSTCustomerSubscriptions201ResponseDataAttributes(interface{}(john@example.com), interface{}(ANY-EXTERNAL-REFEFERNCE)))) // CustomerSubscriptionCreate | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/api/docs/CustomersApi.md b/api/docs/CustomersApi.md index 34562567..4348752f 100644 --- a/api/docs/CustomersApi.md +++ b/api/docs/CustomersApi.md @@ -17,7 +17,9 @@ Method | HTTP request | Description [**GETInStockSubscriptionIdCustomer**](CustomersApi.md#GETInStockSubscriptionIdCustomer) | **Get** /in_stock_subscriptions/{inStockSubscriptionId}/customer | Retrieve the customer associated to the in stock subscription [**GETOrderIdCustomer**](CustomersApi.md#GETOrderIdCustomer) | **Get** /orders/{orderId}/customer | Retrieve the customer associated to the order [**GETOrderSubscriptionIdCustomer**](CustomersApi.md#GETOrderSubscriptionIdCustomer) | **Get** /order_subscriptions/{orderSubscriptionId}/customer | Retrieve the customer associated to the order subscription +[**GETPriceIdJwtCustomer**](CustomersApi.md#GETPriceIdJwtCustomer) | **Get** /prices/{priceId}/jwt_customer | Retrieve the jwt customer associated to the price [**GETReturnIdCustomer**](CustomersApi.md#GETReturnIdCustomer) | **Get** /returns/{returnId}/customer | Retrieve the customer associated to the return +[**GETSkuIdJwtCustomer**](CustomersApi.md#GETSkuIdJwtCustomer) | **Get** /skus/{skuId}/jwt_customer | Retrieve the jwt customer associated to the SKU [**GETSkuListIdCustomer**](CustomersApi.md#GETSkuListIdCustomer) | **Get** /sku_lists/{skuListId}/customer | Retrieve the customer associated to the SKU list [**PATCHCustomersCustomerId**](CustomersApi.md#PATCHCustomersCustomerId) | **Patch** /customers/{customerId} | Update a customer [**POSTCustomers**](CustomersApi.md#POSTCustomers) | **Post** /customers | Create a customer @@ -903,6 +905,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETPriceIdJwtCustomer + +> GETPriceIdJwtCustomer(ctx, priceId).Execute() + +Retrieve the jwt customer associated to the price + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CustomersApi.GETPriceIdJwtCustomer(context.Background(), priceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomersApi.GETPriceIdJwtCustomer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceIdJwtCustomerRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETReturnIdCustomer > GETReturnIdCustomer(ctx, returnId).Execute() @@ -971,6 +1041,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETSkuIdJwtCustomer + +> GETSkuIdJwtCustomer(ctx, skuId).Execute() + +Retrieve the jwt customer associated to the SKU + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + skuId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CustomersApi.GETSkuIdJwtCustomer(context.Background(), skuId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CustomersApi.GETSkuIdJwtCustomer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**skuId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETSkuIdJwtCustomerRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETSkuListIdCustomer > GETSkuListIdCustomer(ctx, skuListId).Execute() diff --git a/api/docs/DeliveryLeadTimeDataRelationships.md b/api/docs/DeliveryLeadTimeDataRelationships.md index 97a872c0..3fb6fb9b 100644 --- a/api/docs/DeliveryLeadTimeDataRelationships.md +++ b/api/docs/DeliveryLeadTimeDataRelationships.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StockLocation** | Pointer to [**DeliveryLeadTimeDataRelationshipsStockLocation**](DeliveryLeadTimeDataRelationshipsStockLocation.md) | | [optional] **ShippingMethod** | Pointer to [**DeliveryLeadTimeDataRelationshipsShippingMethod**](DeliveryLeadTimeDataRelationshipsShippingMethod.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -79,20 +80,20 @@ HasShippingMethod returns a boolean if a field has been set. ### GetAttachments -`func (o *DeliveryLeadTimeDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *DeliveryLeadTimeDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *DeliveryLeadTimeDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *DeliveryLeadTimeDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *DeliveryLeadTimeDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *DeliveryLeadTimeDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -102,6 +103,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *DeliveryLeadTimeDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *DeliveryLeadTimeDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *DeliveryLeadTimeDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *DeliveryLeadTimeDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/EventDataRelationships.md b/api/docs/EventDataRelationships.md index f1682b5c..33e92234 100644 --- a/api/docs/EventDataRelationships.md +++ b/api/docs/EventDataRelationships.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LastEventCallbacks** | Pointer to [**EventDataRelationshipsLastEventCallbacks**](EventDataRelationshipsLastEventCallbacks.md) | | [optional] **Webhooks** | Pointer to [**EventCallbackDataRelationshipsWebhook**](EventCallbackDataRelationshipsWebhook.md) | | [optional] +**LastEventCallbacks** | Pointer to [**EventDataRelationshipsLastEventCallbacks**](EventDataRelationshipsLastEventCallbacks.md) | | [optional] ## Methods @@ -26,55 +26,55 @@ NewEventDataRelationshipsWithDefaults instantiates a new EventDataRelationships This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetLastEventCallbacks +### GetWebhooks -`func (o *EventDataRelationships) GetLastEventCallbacks() EventDataRelationshipsLastEventCallbacks` +`func (o *EventDataRelationships) GetWebhooks() EventCallbackDataRelationshipsWebhook` -GetLastEventCallbacks returns the LastEventCallbacks field if non-nil, zero value otherwise. +GetWebhooks returns the Webhooks field if non-nil, zero value otherwise. -### GetLastEventCallbacksOk +### GetWebhooksOk -`func (o *EventDataRelationships) GetLastEventCallbacksOk() (*EventDataRelationshipsLastEventCallbacks, bool)` +`func (o *EventDataRelationships) GetWebhooksOk() (*EventCallbackDataRelationshipsWebhook, bool)` -GetLastEventCallbacksOk returns a tuple with the LastEventCallbacks field if it's non-nil, zero value otherwise +GetWebhooksOk returns a tuple with the Webhooks field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetLastEventCallbacks +### SetWebhooks -`func (o *EventDataRelationships) SetLastEventCallbacks(v EventDataRelationshipsLastEventCallbacks)` +`func (o *EventDataRelationships) SetWebhooks(v EventCallbackDataRelationshipsWebhook)` -SetLastEventCallbacks sets LastEventCallbacks field to given value. +SetWebhooks sets Webhooks field to given value. -### HasLastEventCallbacks +### HasWebhooks -`func (o *EventDataRelationships) HasLastEventCallbacks() bool` +`func (o *EventDataRelationships) HasWebhooks() bool` -HasLastEventCallbacks returns a boolean if a field has been set. +HasWebhooks returns a boolean if a field has been set. -### GetWebhooks +### GetLastEventCallbacks -`func (o *EventDataRelationships) GetWebhooks() EventCallbackDataRelationshipsWebhook` +`func (o *EventDataRelationships) GetLastEventCallbacks() EventDataRelationshipsLastEventCallbacks` -GetWebhooks returns the Webhooks field if non-nil, zero value otherwise. +GetLastEventCallbacks returns the LastEventCallbacks field if non-nil, zero value otherwise. -### GetWebhooksOk +### GetLastEventCallbacksOk -`func (o *EventDataRelationships) GetWebhooksOk() (*EventCallbackDataRelationshipsWebhook, bool)` +`func (o *EventDataRelationships) GetLastEventCallbacksOk() (*EventDataRelationshipsLastEventCallbacks, bool)` -GetWebhooksOk returns a tuple with the Webhooks field if it's non-nil, zero value otherwise +GetLastEventCallbacksOk returns a tuple with the LastEventCallbacks field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetWebhooks +### SetLastEventCallbacks -`func (o *EventDataRelationships) SetWebhooks(v EventCallbackDataRelationshipsWebhook)` +`func (o *EventDataRelationships) SetLastEventCallbacks(v EventDataRelationshipsLastEventCallbacks)` -SetWebhooks sets Webhooks field to given value. +SetLastEventCallbacks sets LastEventCallbacks field to given value. -### HasWebhooks +### HasLastEventCallbacks -`func (o *EventDataRelationships) HasWebhooks() bool` +`func (o *EventDataRelationships) HasLastEventCallbacks() bool` -HasWebhooks returns a boolean if a field has been set. +HasLastEventCallbacks returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/EventUpdate.md b/api/docs/EventUpdate.md new file mode 100644 index 00000000..2c1379e5 --- /dev/null +++ b/api/docs/EventUpdate.md @@ -0,0 +1,51 @@ +# EventUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**EventUpdateData**](EventUpdateData.md) | | + +## Methods + +### NewEventUpdate + +`func NewEventUpdate(data EventUpdateData, ) *EventUpdate` + +NewEventUpdate instantiates a new EventUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEventUpdateWithDefaults + +`func NewEventUpdateWithDefaults() *EventUpdate` + +NewEventUpdateWithDefaults instantiates a new EventUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *EventUpdate) GetData() EventUpdateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *EventUpdate) GetDataOk() (*EventUpdateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *EventUpdate) SetData(v EventUpdateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/EventUpdateData.md b/api/docs/EventUpdateData.md new file mode 100644 index 00000000..0c22e44f --- /dev/null +++ b/api/docs/EventUpdateData.md @@ -0,0 +1,149 @@ +# EventUpdateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Id** | **interface{}** | The resource's id | +**Attributes** | [**PATCHEventsEventId200ResponseDataAttributes**](PATCHEventsEventId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewEventUpdateData + +`func NewEventUpdateData(type_ interface{}, id interface{}, attributes PATCHEventsEventId200ResponseDataAttributes, ) *EventUpdateData` + +NewEventUpdateData instantiates a new EventUpdateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewEventUpdateDataWithDefaults + +`func NewEventUpdateDataWithDefaults() *EventUpdateData` + +NewEventUpdateDataWithDefaults instantiates a new EventUpdateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *EventUpdateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *EventUpdateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *EventUpdateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *EventUpdateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *EventUpdateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *EventUpdateData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *EventUpdateData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *EventUpdateData) SetId(v interface{})` + +SetId sets Id field to given value. + + +### SetIdNil + +`func (o *EventUpdateData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *EventUpdateData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetAttributes + +`func (o *EventUpdateData) GetAttributes() PATCHEventsEventId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *EventUpdateData) GetAttributesOk() (*PATCHEventsEventId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *EventUpdateData) SetAttributes(v PATCHEventsEventId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *EventUpdateData) GetRelationships() interface{}` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *EventUpdateData) GetRelationshipsOk() (*interface{}, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *EventUpdateData) SetRelationships(v interface{})` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *EventUpdateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### SetRelationshipsNil + +`func (o *EventUpdateData) SetRelationshipsNil(b bool)` + + SetRelationshipsNil sets the value for Relationships to be an explicit nil + +### UnsetRelationships +`func (o *EventUpdateData) UnsetRelationships()` + +UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/EventsApi.md b/api/docs/EventsApi.md index 79c460a5..3d65e43a 100644 --- a/api/docs/EventsApi.md +++ b/api/docs/EventsApi.md @@ -4,9 +4,14 @@ All URIs are relative to *https://.commercelayer.io/api* Method | HTTP request | Description ------------- | ------------- | ------------- +[**GETAddressIdEvents**](EventsApi.md#GETAddressIdEvents) | **Get** /addresses/{addressId}/events | Retrieve the events associated to the address [**GETAuthorizationIdEvents**](EventsApi.md#GETAuthorizationIdEvents) | **Get** /authorizations/{authorizationId}/events | Retrieve the events associated to the authorization +[**GETAvalaraAccountIdEvents**](EventsApi.md#GETAvalaraAccountIdEvents) | **Get** /avalara_accounts/{avalaraAccountId}/events | Retrieve the events associated to the avalara account +[**GETBundleIdEvents**](EventsApi.md#GETBundleIdEvents) | **Get** /bundles/{bundleId}/events | Retrieve the events associated to the bundle +[**GETBuyXPayYPromotionIdEvents**](EventsApi.md#GETBuyXPayYPromotionIdEvents) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/events | Retrieve the events associated to the buy x pay y promotion [**GETCaptureIdEvents**](EventsApi.md#GETCaptureIdEvents) | **Get** /captures/{captureId}/events | Retrieve the events associated to the capture [**GETCleanupIdEvents**](EventsApi.md#GETCleanupIdEvents) | **Get** /cleanups/{cleanupId}/events | Retrieve the events associated to the cleanup +[**GETCouponIdEvents**](EventsApi.md#GETCouponIdEvents) | **Get** /coupons/{couponId}/events | Retrieve the events associated to the coupon [**GETCustomerAddressIdEvents**](EventsApi.md#GETCustomerAddressIdEvents) | **Get** /customer_addresses/{customerAddressId}/events | Retrieve the events associated to the customer address [**GETCustomerIdEvents**](EventsApi.md#GETCustomerIdEvents) | **Get** /customers/{customerId}/events | Retrieve the events associated to the customer [**GETCustomerPasswordResetIdEvents**](EventsApi.md#GETCustomerPasswordResetIdEvents) | **Get** /customer_password_resets/{customerPasswordResetId}/events | Retrieve the events associated to the customer password reset @@ -17,11 +22,15 @@ Method | HTTP request | Description [**GETExternalPromotionIdEvents**](EventsApi.md#GETExternalPromotionIdEvents) | **Get** /external_promotions/{externalPromotionId}/events | Retrieve the events associated to the external promotion [**GETFixedAmountPromotionIdEvents**](EventsApi.md#GETFixedAmountPromotionIdEvents) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/events | Retrieve the events associated to the fixed amount promotion [**GETFixedPricePromotionIdEvents**](EventsApi.md#GETFixedPricePromotionIdEvents) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/events | Retrieve the events associated to the fixed price promotion +[**GETFlexPromotionIdEvents**](EventsApi.md#GETFlexPromotionIdEvents) | **Get** /flex_promotions/{flexPromotionId}/events | Retrieve the events associated to the flex promotion [**GETFreeGiftPromotionIdEvents**](EventsApi.md#GETFreeGiftPromotionIdEvents) | **Get** /free_gift_promotions/{freeGiftPromotionId}/events | Retrieve the events associated to the free gift promotion [**GETFreeShippingPromotionIdEvents**](EventsApi.md#GETFreeShippingPromotionIdEvents) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/events | Retrieve the events associated to the free shipping promotion [**GETGiftCardIdEvents**](EventsApi.md#GETGiftCardIdEvents) | **Get** /gift_cards/{giftCardId}/events | Retrieve the events associated to the gift card [**GETImportIdEvents**](EventsApi.md#GETImportIdEvents) | **Get** /imports/{importId}/events | Retrieve the events associated to the import [**GETInStockSubscriptionIdEvents**](EventsApi.md#GETInStockSubscriptionIdEvents) | **Get** /in_stock_subscriptions/{inStockSubscriptionId}/events | Retrieve the events associated to the in stock subscription +[**GETLineItemIdEvents**](EventsApi.md#GETLineItemIdEvents) | **Get** /line_items/{lineItemId}/events | Retrieve the events associated to the line item +[**GETLineItemOptionIdEvents**](EventsApi.md#GETLineItemOptionIdEvents) | **Get** /line_item_options/{lineItemOptionId}/events | Retrieve the events associated to the line item option +[**GETLinkIdEvents**](EventsApi.md#GETLinkIdEvents) | **Get** /links/{linkId}/events | Retrieve the events associated to the link [**GETOrderCopyIdEvents**](EventsApi.md#GETOrderCopyIdEvents) | **Get** /order_copies/{orderCopyId}/events | Retrieve the events associated to the order copy [**GETOrderFactoryIdEvents**](EventsApi.md#GETOrderFactoryIdEvents) | **Get** /order_factories/{orderFactoryId}/events | Retrieve the events associated to the order factory [**GETOrderIdEvents**](EventsApi.md#GETOrderIdEvents) | **Get** /orders/{orderId}/events | Retrieve the events associated to the order @@ -29,22 +38,974 @@ Method | HTTP request | Description [**GETParcelIdEvents**](EventsApi.md#GETParcelIdEvents) | **Get** /parcels/{parcelId}/events | Retrieve the events associated to the parcel [**GETPercentageDiscountPromotionIdEvents**](EventsApi.md#GETPercentageDiscountPromotionIdEvents) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/events | Retrieve the events associated to the percentage discount promotion [**GETPriceFrequencyTierIdEvents**](EventsApi.md#GETPriceFrequencyTierIdEvents) | **Get** /price_frequency_tiers/{priceFrequencyTierId}/events | Retrieve the events associated to the price frequency tier +[**GETPriceListSchedulerIdEvents**](EventsApi.md#GETPriceListSchedulerIdEvents) | **Get** /price_list_schedulers/{priceListSchedulerId}/events | Retrieve the events associated to the price list scheduler [**GETPriceVolumeTierIdEvents**](EventsApi.md#GETPriceVolumeTierIdEvents) | **Get** /price_volume_tiers/{priceVolumeTierId}/events | Retrieve the events associated to the price volume tier [**GETPromotionIdEvents**](EventsApi.md#GETPromotionIdEvents) | **Get** /promotions/{promotionId}/events | Retrieve the events associated to the promotion [**GETRecurringOrderCopyIdEvents**](EventsApi.md#GETRecurringOrderCopyIdEvents) | **Get** /recurring_order_copies/{recurringOrderCopyId}/events | Retrieve the events associated to the recurring order copy [**GETRefundIdEvents**](EventsApi.md#GETRefundIdEvents) | **Get** /refunds/{refundId}/events | Retrieve the events associated to the refund [**GETReturnIdEvents**](EventsApi.md#GETReturnIdEvents) | **Get** /returns/{returnId}/events | Retrieve the events associated to the return [**GETShipmentIdEvents**](EventsApi.md#GETShipmentIdEvents) | **Get** /shipments/{shipmentId}/events | Retrieve the events associated to the shipment +[**GETSkuIdEvents**](EventsApi.md#GETSkuIdEvents) | **Get** /skus/{skuId}/events | Retrieve the events associated to the SKU +[**GETSkuOptionIdEvents**](EventsApi.md#GETSkuOptionIdEvents) | **Get** /sku_options/{skuOptionId}/events | Retrieve the events associated to the SKU option [**GETStockTransferIdEvents**](EventsApi.md#GETStockTransferIdEvents) | **Get** /stock_transfers/{stockTransferId}/events | Retrieve the events associated to the stock transfer +[**GETTransactionIdEvents**](EventsApi.md#GETTransactionIdEvents) | **Get** /transactions/{transactionId}/events | Retrieve the events associated to the transaction [**GETVoidIdEvents**](EventsApi.md#GETVoidIdEvents) | **Get** /voids/{voidId}/events | Retrieve the events associated to the void +[**PATCHEventsEventId**](EventsApi.md#PATCHEventsEventId) | **Patch** /events/{eventId} | Update an event +## GETAddressIdEvents + +> GETAddressIdEvents(ctx, addressId).Execute() + +Retrieve the events associated to the address + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + addressId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.EventsApi.GETAddressIdEvents(context.Background(), addressId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETAddressIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**addressId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETAddressIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETAuthorizationIdEvents -> GETAuthorizationIdEvents(ctx, authorizationId).Execute() +> GETAuthorizationIdEvents(ctx, authorizationId).Execute() + +Retrieve the events associated to the authorization + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + authorizationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.EventsApi.GETAuthorizationIdEvents(context.Background(), authorizationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETAuthorizationIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**authorizationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETAuthorizationIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETAvalaraAccountIdEvents + +> GETAvalaraAccountIdEvents(ctx, avalaraAccountId).Execute() + +Retrieve the events associated to the avalara account + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + avalaraAccountId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.EventsApi.GETAvalaraAccountIdEvents(context.Background(), avalaraAccountId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETAvalaraAccountIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**avalaraAccountId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETAvalaraAccountIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETBundleIdEvents + +> GETBundleIdEvents(ctx, bundleId).Execute() + +Retrieve the events associated to the bundle + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + bundleId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.EventsApi.GETBundleIdEvents(context.Background(), bundleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETBundleIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**bundleId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBundleIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETBuyXPayYPromotionIdEvents + +> GETBuyXPayYPromotionIdEvents(ctx, buyXPayYPromotionId).Execute() + +Retrieve the events associated to the buy x pay y promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + buyXPayYPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.EventsApi.GETBuyXPayYPromotionIdEvents(context.Background(), buyXPayYPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETBuyXPayYPromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCaptureIdEvents + +> GETCaptureIdEvents(ctx, captureId).Execute() + +Retrieve the events associated to the capture + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + captureId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.EventsApi.GETCaptureIdEvents(context.Background(), captureId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETCaptureIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**captureId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCaptureIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCleanupIdEvents + +> GETCleanupIdEvents(ctx, cleanupId).Execute() + +Retrieve the events associated to the cleanup + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + cleanupId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.EventsApi.GETCleanupIdEvents(context.Background(), cleanupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETCleanupIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**cleanupId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCleanupIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCouponIdEvents + +> GETCouponIdEvents(ctx, couponId).Execute() + +Retrieve the events associated to the coupon + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + couponId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.EventsApi.GETCouponIdEvents(context.Background(), couponId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETCouponIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**couponId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCouponIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerAddressIdEvents + +> GETCustomerAddressIdEvents(ctx, customerAddressId).Execute() + +Retrieve the events associated to the customer address + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerAddressId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.EventsApi.GETCustomerAddressIdEvents(context.Background(), customerAddressId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETCustomerAddressIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerAddressId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerAddressIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerIdEvents + +> GETCustomerIdEvents(ctx, customerId).Execute() + +Retrieve the events associated to the customer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.EventsApi.GETCustomerIdEvents(context.Background(), customerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETCustomerIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerPasswordResetIdEvents + +> GETCustomerPasswordResetIdEvents(ctx, customerPasswordResetId).Execute() + +Retrieve the events associated to the customer password reset + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerPasswordResetId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.EventsApi.GETCustomerPasswordResetIdEvents(context.Background(), customerPasswordResetId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETCustomerPasswordResetIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerPasswordResetId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerPasswordResetIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerSubscriptionIdEvents + +> GETCustomerSubscriptionIdEvents(ctx, customerSubscriptionId).Execute() + +Retrieve the events associated to the customer subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.EventsApi.GETCustomerSubscriptionIdEvents(context.Background(), customerSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETCustomerSubscriptionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerSubscriptionIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETEvents + +> GETEvents200Response GETEvents(ctx).Execute() + +List all events + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EventsApi.GETEvents(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETEvents`: GETEvents200Response + fmt.Fprintf(os.Stdout, "Response from `EventsApi.GETEvents`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETEventsRequest struct via the builder pattern + + +### Return type + +[**GETEvents200Response**](GETEvents200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETEventsEventId + +> GETEventsEventId200Response GETEventsEventId(ctx, eventId).Execute() + +Retrieve an event + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + eventId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EventsApi.GETEventsEventId(context.Background(), eventId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETEventsEventId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETEventsEventId`: GETEventsEventId200Response + fmt.Fprintf(os.Stdout, "Response from `EventsApi.GETEventsEventId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**eventId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters -Retrieve the events associated to the authorization +Other parameters are passed through a pointer to a apiGETEventsEventIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**GETEventsEventId200Response**](GETEventsEventId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExportIdEvents + +> GETExportIdEvents(ctx, exportId).Execute() + +Retrieve the events associated to the export @@ -61,13 +1022,13 @@ import ( ) func main() { - authorizationId := TODO // interface{} | The resource's id + exportId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETAuthorizationIdEvents(context.Background(), authorizationId).Execute() + r, err := apiClient.EventsApi.GETExportIdEvents(context.Background(), exportId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETAuthorizationIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETExportIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -79,11 +1040,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**authorizationId** | [**interface{}**](.md) | The resource's id | +**exportId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETAuthorizationIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETExportIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -108,11 +1069,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCaptureIdEvents +## GETExternalPromotionIdEvents -> GETCaptureIdEvents(ctx, captureId).Execute() +> GETExternalPromotionIdEvents(ctx, externalPromotionId).Execute() -Retrieve the events associated to the capture +Retrieve the events associated to the external promotion @@ -129,13 +1090,13 @@ import ( ) func main() { - captureId := TODO // interface{} | The resource's id + externalPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETCaptureIdEvents(context.Background(), captureId).Execute() + r, err := apiClient.EventsApi.GETExternalPromotionIdEvents(context.Background(), externalPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETCaptureIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETExternalPromotionIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -147,11 +1108,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**captureId** | [**interface{}**](.md) | The resource's id | +**externalPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCaptureIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETExternalPromotionIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -176,11 +1137,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCleanupIdEvents +## GETFixedAmountPromotionIdEvents -> GETCleanupIdEvents(ctx, cleanupId).Execute() +> GETFixedAmountPromotionIdEvents(ctx, fixedAmountPromotionId).Execute() -Retrieve the events associated to the cleanup +Retrieve the events associated to the fixed amount promotion @@ -197,13 +1158,13 @@ import ( ) func main() { - cleanupId := TODO // interface{} | The resource's id + fixedAmountPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETCleanupIdEvents(context.Background(), cleanupId).Execute() + r, err := apiClient.EventsApi.GETFixedAmountPromotionIdEvents(context.Background(), fixedAmountPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETCleanupIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETFixedAmountPromotionIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -215,11 +1176,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**cleanupId** | [**interface{}**](.md) | The resource's id | +**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCleanupIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -244,11 +1205,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerAddressIdEvents +## GETFixedPricePromotionIdEvents -> GETCustomerAddressIdEvents(ctx, customerAddressId).Execute() +> GETFixedPricePromotionIdEvents(ctx, fixedPricePromotionId).Execute() -Retrieve the events associated to the customer address +Retrieve the events associated to the fixed price promotion @@ -265,13 +1226,13 @@ import ( ) func main() { - customerAddressId := TODO // interface{} | The resource's id + fixedPricePromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETCustomerAddressIdEvents(context.Background(), customerAddressId).Execute() + r, err := apiClient.EventsApi.GETFixedPricePromotionIdEvents(context.Background(), fixedPricePromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETCustomerAddressIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETFixedPricePromotionIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -283,11 +1244,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerAddressId** | [**interface{}**](.md) | The resource's id | +**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerAddressIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -312,11 +1273,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerIdEvents +## GETFlexPromotionIdEvents -> GETCustomerIdEvents(ctx, customerId).Execute() +> GETFlexPromotionIdEvents(ctx, flexPromotionId).Execute() -Retrieve the events associated to the customer +Retrieve the events associated to the flex promotion @@ -333,13 +1294,13 @@ import ( ) func main() { - customerId := TODO // interface{} | The resource's id + flexPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETCustomerIdEvents(context.Background(), customerId).Execute() + r, err := apiClient.EventsApi.GETFlexPromotionIdEvents(context.Background(), flexPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETCustomerIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETFlexPromotionIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -351,11 +1312,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerId** | [**interface{}**](.md) | The resource's id | +**flexPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFlexPromotionIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -380,11 +1341,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerPasswordResetIdEvents +## GETFreeGiftPromotionIdEvents -> GETCustomerPasswordResetIdEvents(ctx, customerPasswordResetId).Execute() +> GETFreeGiftPromotionIdEvents(ctx, freeGiftPromotionId).Execute() -Retrieve the events associated to the customer password reset +Retrieve the events associated to the free gift promotion @@ -401,13 +1362,13 @@ import ( ) func main() { - customerPasswordResetId := TODO // interface{} | The resource's id + freeGiftPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETCustomerPasswordResetIdEvents(context.Background(), customerPasswordResetId).Execute() + r, err := apiClient.EventsApi.GETFreeGiftPromotionIdEvents(context.Background(), freeGiftPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETCustomerPasswordResetIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETFreeGiftPromotionIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -419,11 +1380,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerPasswordResetId** | [**interface{}**](.md) | The resource's id | +**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerPasswordResetIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -448,11 +1409,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerSubscriptionIdEvents +## GETFreeShippingPromotionIdEvents -> GETCustomerSubscriptionIdEvents(ctx, customerSubscriptionId).Execute() +> GETFreeShippingPromotionIdEvents(ctx, freeShippingPromotionId).Execute() -Retrieve the events associated to the customer subscription +Retrieve the events associated to the free shipping promotion @@ -469,13 +1430,13 @@ import ( ) func main() { - customerSubscriptionId := TODO // interface{} | The resource's id + freeShippingPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETCustomerSubscriptionIdEvents(context.Background(), customerSubscriptionId).Execute() + r, err := apiClient.EventsApi.GETFreeShippingPromotionIdEvents(context.Background(), freeShippingPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETCustomerSubscriptionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETFreeShippingPromotionIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -487,11 +1448,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerSubscriptionId** | [**interface{}**](.md) | The resource's id | +**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerSubscriptionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -516,11 +1477,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETEvents +## GETGiftCardIdEvents -> GETEvents200Response GETEvents(ctx).Execute() +> GETGiftCardIdEvents(ctx, giftCardId).Execute() -List all events +Retrieve the events associated to the gift card @@ -537,31 +1498,38 @@ import ( ) func main() { + giftCardId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.EventsApi.GETEvents(context.Background()).Execute() + r, err := apiClient.EventsApi.GETGiftCardIdEvents(context.Background(), giftCardId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETGiftCardIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GETEvents`: GETEvents200Response - fmt.Fprintf(os.Stdout, "Response from `EventsApi.GETEvents`: %v\n", resp) } ``` ### Path Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**giftCardId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETGiftCardIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- ### Return type -[**GETEvents200Response**](GETEvents200Response.md) + (empty response body) ### Authorization @@ -570,18 +1538,18 @@ Other parameters are passed through a pointer to a apiGETEventsRequest struct vi ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/vnd.api+json +- **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## GETEventsEventId +## GETImportIdEvents -> GETEventsEventId200Response GETEventsEventId(ctx, eventId).Execute() +> GETImportIdEvents(ctx, importId).Execute() -Retrieve an event +Retrieve the events associated to the import @@ -598,17 +1566,15 @@ import ( ) func main() { - eventId := TODO // interface{} | The resource's id + importId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.EventsApi.GETEventsEventId(context.Background(), eventId).Execute() + r, err := apiClient.EventsApi.GETImportIdEvents(context.Background(), importId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETEventsEventId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETImportIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GETEventsEventId`: GETEventsEventId200Response - fmt.Fprintf(os.Stdout, "Response from `EventsApi.GETEventsEventId`: %v\n", resp) } ``` @@ -618,11 +1584,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**eventId** | [**interface{}**](.md) | The resource's id | +**importId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETEventsEventIdRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETImportIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -631,7 +1597,7 @@ Name | Type | Description | Notes ### Return type -[**GETEventsEventId200Response**](GETEventsEventId200Response.md) + (empty response body) ### Authorization @@ -640,18 +1606,18 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/vnd.api+json +- **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## GETExportIdEvents +## GETInStockSubscriptionIdEvents -> GETExportIdEvents(ctx, exportId).Execute() +> GETInStockSubscriptionIdEvents(ctx, inStockSubscriptionId).Execute() -Retrieve the events associated to the export +Retrieve the events associated to the in stock subscription @@ -668,13 +1634,13 @@ import ( ) func main() { - exportId := TODO // interface{} | The resource's id + inStockSubscriptionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETExportIdEvents(context.Background(), exportId).Execute() + r, err := apiClient.EventsApi.GETInStockSubscriptionIdEvents(context.Background(), inStockSubscriptionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETExportIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETInStockSubscriptionIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -686,11 +1652,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**exportId** | [**interface{}**](.md) | The resource's id | +**inStockSubscriptionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETExportIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETInStockSubscriptionIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -715,11 +1681,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETExternalPromotionIdEvents +## GETLineItemIdEvents -> GETExternalPromotionIdEvents(ctx, externalPromotionId).Execute() +> GETLineItemIdEvents(ctx, lineItemId).Execute() -Retrieve the events associated to the external promotion +Retrieve the events associated to the line item @@ -736,13 +1702,13 @@ import ( ) func main() { - externalPromotionId := TODO // interface{} | The resource's id + lineItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETExternalPromotionIdEvents(context.Background(), externalPromotionId).Execute() + r, err := apiClient.EventsApi.GETLineItemIdEvents(context.Background(), lineItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETExternalPromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETLineItemIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -754,11 +1720,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**externalPromotionId** | [**interface{}**](.md) | The resource's id | +**lineItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETExternalPromotionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETLineItemIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -783,11 +1749,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFixedAmountPromotionIdEvents +## GETLineItemOptionIdEvents -> GETFixedAmountPromotionIdEvents(ctx, fixedAmountPromotionId).Execute() +> GETLineItemOptionIdEvents(ctx, lineItemOptionId).Execute() -Retrieve the events associated to the fixed amount promotion +Retrieve the events associated to the line item option @@ -804,13 +1770,13 @@ import ( ) func main() { - fixedAmountPromotionId := TODO // interface{} | The resource's id + lineItemOptionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETFixedAmountPromotionIdEvents(context.Background(), fixedAmountPromotionId).Execute() + r, err := apiClient.EventsApi.GETLineItemOptionIdEvents(context.Background(), lineItemOptionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETFixedAmountPromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETLineItemOptionIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -822,11 +1788,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | +**lineItemOptionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETLineItemOptionIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -851,11 +1817,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFixedPricePromotionIdEvents +## GETLinkIdEvents -> GETFixedPricePromotionIdEvents(ctx, fixedPricePromotionId).Execute() +> GETLinkIdEvents(ctx, linkId).Execute() -Retrieve the events associated to the fixed price promotion +Retrieve the events associated to the link @@ -872,13 +1838,13 @@ import ( ) func main() { - fixedPricePromotionId := TODO // interface{} | The resource's id + linkId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETFixedPricePromotionIdEvents(context.Background(), fixedPricePromotionId).Execute() + r, err := apiClient.EventsApi.GETLinkIdEvents(context.Background(), linkId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETFixedPricePromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETLinkIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -890,11 +1856,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | +**linkId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETLinkIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -919,11 +1885,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFreeGiftPromotionIdEvents +## GETOrderCopyIdEvents -> GETFreeGiftPromotionIdEvents(ctx, freeGiftPromotionId).Execute() +> GETOrderCopyIdEvents(ctx, orderCopyId).Execute() -Retrieve the events associated to the free gift promotion +Retrieve the events associated to the order copy @@ -940,13 +1906,13 @@ import ( ) func main() { - freeGiftPromotionId := TODO // interface{} | The resource's id + orderCopyId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETFreeGiftPromotionIdEvents(context.Background(), freeGiftPromotionId).Execute() + r, err := apiClient.EventsApi.GETOrderCopyIdEvents(context.Background(), orderCopyId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETFreeGiftPromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETOrderCopyIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -958,11 +1924,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | +**orderCopyId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETOrderCopyIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -987,11 +1953,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFreeShippingPromotionIdEvents +## GETOrderFactoryIdEvents -> GETFreeShippingPromotionIdEvents(ctx, freeShippingPromotionId).Execute() +> GETOrderFactoryIdEvents(ctx, orderFactoryId).Execute() -Retrieve the events associated to the free shipping promotion +Retrieve the events associated to the order factory @@ -1008,13 +1974,13 @@ import ( ) func main() { - freeShippingPromotionId := TODO // interface{} | The resource's id + orderFactoryId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETFreeShippingPromotionIdEvents(context.Background(), freeShippingPromotionId).Execute() + r, err := apiClient.EventsApi.GETOrderFactoryIdEvents(context.Background(), orderFactoryId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETFreeShippingPromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETOrderFactoryIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1026,11 +1992,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | +**orderFactoryId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETOrderFactoryIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1055,11 +2021,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETGiftCardIdEvents +## GETOrderIdEvents -> GETGiftCardIdEvents(ctx, giftCardId).Execute() +> GETOrderIdEvents(ctx, orderId).Execute() -Retrieve the events associated to the gift card +Retrieve the events associated to the order @@ -1076,13 +2042,13 @@ import ( ) func main() { - giftCardId := TODO // interface{} | The resource's id + orderId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETGiftCardIdEvents(context.Background(), giftCardId).Execute() + r, err := apiClient.EventsApi.GETOrderIdEvents(context.Background(), orderId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETGiftCardIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETOrderIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1094,11 +2060,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**giftCardId** | [**interface{}**](.md) | The resource's id | +**orderId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETGiftCardIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETOrderIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1123,11 +2089,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETImportIdEvents +## GETOrderSubscriptionIdEvents -> GETImportIdEvents(ctx, importId).Execute() +> GETOrderSubscriptionIdEvents(ctx, orderSubscriptionId).Execute() -Retrieve the events associated to the import +Retrieve the events associated to the order subscription @@ -1144,13 +2110,13 @@ import ( ) func main() { - importId := TODO // interface{} | The resource's id + orderSubscriptionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETImportIdEvents(context.Background(), importId).Execute() + r, err := apiClient.EventsApi.GETOrderSubscriptionIdEvents(context.Background(), orderSubscriptionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETImportIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETOrderSubscriptionIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1162,11 +2128,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**importId** | [**interface{}**](.md) | The resource's id | +**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETImportIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1191,11 +2157,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETInStockSubscriptionIdEvents +## GETParcelIdEvents -> GETInStockSubscriptionIdEvents(ctx, inStockSubscriptionId).Execute() +> GETParcelIdEvents(ctx, parcelId).Execute() -Retrieve the events associated to the in stock subscription +Retrieve the events associated to the parcel @@ -1212,13 +2178,13 @@ import ( ) func main() { - inStockSubscriptionId := TODO // interface{} | The resource's id + parcelId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETInStockSubscriptionIdEvents(context.Background(), inStockSubscriptionId).Execute() + r, err := apiClient.EventsApi.GETParcelIdEvents(context.Background(), parcelId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETInStockSubscriptionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETParcelIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1230,11 +2196,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**inStockSubscriptionId** | [**interface{}**](.md) | The resource's id | +**parcelId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETInStockSubscriptionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETParcelIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1259,11 +2225,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderCopyIdEvents +## GETPercentageDiscountPromotionIdEvents -> GETOrderCopyIdEvents(ctx, orderCopyId).Execute() +> GETPercentageDiscountPromotionIdEvents(ctx, percentageDiscountPromotionId).Execute() -Retrieve the events associated to the order copy +Retrieve the events associated to the percentage discount promotion @@ -1280,13 +2246,13 @@ import ( ) func main() { - orderCopyId := TODO // interface{} | The resource's id + percentageDiscountPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETOrderCopyIdEvents(context.Background(), orderCopyId).Execute() + r, err := apiClient.EventsApi.GETPercentageDiscountPromotionIdEvents(context.Background(), percentageDiscountPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETOrderCopyIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETPercentageDiscountPromotionIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1298,11 +2264,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderCopyId** | [**interface{}**](.md) | The resource's id | +**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderCopyIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1327,11 +2293,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderFactoryIdEvents +## GETPriceFrequencyTierIdEvents -> GETOrderFactoryIdEvents(ctx, orderFactoryId).Execute() +> GETPriceFrequencyTierIdEvents(ctx, priceFrequencyTierId).Execute() -Retrieve the events associated to the order factory +Retrieve the events associated to the price frequency tier @@ -1348,13 +2314,13 @@ import ( ) func main() { - orderFactoryId := TODO // interface{} | The resource's id + priceFrequencyTierId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETOrderFactoryIdEvents(context.Background(), orderFactoryId).Execute() + r, err := apiClient.EventsApi.GETPriceFrequencyTierIdEvents(context.Background(), priceFrequencyTierId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETOrderFactoryIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETPriceFrequencyTierIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1366,11 +2332,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderFactoryId** | [**interface{}**](.md) | The resource's id | +**priceFrequencyTierId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderFactoryIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceFrequencyTierIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1395,11 +2361,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdEvents +## GETPriceListSchedulerIdEvents -> GETOrderIdEvents(ctx, orderId).Execute() +> GETPriceListSchedulerIdEvents(ctx, priceListSchedulerId).Execute() -Retrieve the events associated to the order +Retrieve the events associated to the price list scheduler @@ -1416,13 +2382,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + priceListSchedulerId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETOrderIdEvents(context.Background(), orderId).Execute() + r, err := apiClient.EventsApi.GETPriceListSchedulerIdEvents(context.Background(), priceListSchedulerId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETOrderIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETPriceListSchedulerIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1434,11 +2400,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**priceListSchedulerId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceListSchedulerIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1463,11 +2429,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderSubscriptionIdEvents +## GETPriceVolumeTierIdEvents -> GETOrderSubscriptionIdEvents(ctx, orderSubscriptionId).Execute() +> GETPriceVolumeTierIdEvents(ctx, priceVolumeTierId).Execute() -Retrieve the events associated to the order subscription +Retrieve the events associated to the price volume tier @@ -1484,13 +2450,13 @@ import ( ) func main() { - orderSubscriptionId := TODO // interface{} | The resource's id + priceVolumeTierId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETOrderSubscriptionIdEvents(context.Background(), orderSubscriptionId).Execute() + r, err := apiClient.EventsApi.GETPriceVolumeTierIdEvents(context.Background(), priceVolumeTierId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETOrderSubscriptionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETPriceVolumeTierIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1502,11 +2468,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | +**priceVolumeTierId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceVolumeTierIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1531,11 +2497,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETParcelIdEvents +## GETPromotionIdEvents -> GETParcelIdEvents(ctx, parcelId).Execute() +> GETPromotionIdEvents(ctx, promotionId).Execute() -Retrieve the events associated to the parcel +Retrieve the events associated to the promotion @@ -1552,13 +2518,13 @@ import ( ) func main() { - parcelId := TODO // interface{} | The resource's id + promotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETParcelIdEvents(context.Background(), parcelId).Execute() + r, err := apiClient.EventsApi.GETPromotionIdEvents(context.Background(), promotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETParcelIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETPromotionIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1570,11 +2536,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**parcelId** | [**interface{}**](.md) | The resource's id | +**promotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETParcelIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPromotionIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1599,11 +2565,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPercentageDiscountPromotionIdEvents +## GETRecurringOrderCopyIdEvents -> GETPercentageDiscountPromotionIdEvents(ctx, percentageDiscountPromotionId).Execute() +> GETRecurringOrderCopyIdEvents(ctx, recurringOrderCopyId).Execute() -Retrieve the events associated to the percentage discount promotion +Retrieve the events associated to the recurring order copy @@ -1620,13 +2586,13 @@ import ( ) func main() { - percentageDiscountPromotionId := TODO // interface{} | The resource's id + recurringOrderCopyId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETPercentageDiscountPromotionIdEvents(context.Background(), percentageDiscountPromotionId).Execute() + r, err := apiClient.EventsApi.GETRecurringOrderCopyIdEvents(context.Background(), recurringOrderCopyId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETPercentageDiscountPromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETRecurringOrderCopyIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1638,11 +2604,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | +**recurringOrderCopyId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETRecurringOrderCopyIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1667,11 +2633,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPriceFrequencyTierIdEvents +## GETRefundIdEvents -> GETPriceFrequencyTierIdEvents(ctx, priceFrequencyTierId).Execute() +> GETRefundIdEvents(ctx, refundId).Execute() -Retrieve the events associated to the price frequency tier +Retrieve the events associated to the refund @@ -1688,13 +2654,13 @@ import ( ) func main() { - priceFrequencyTierId := TODO // interface{} | The resource's id + refundId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETPriceFrequencyTierIdEvents(context.Background(), priceFrequencyTierId).Execute() + r, err := apiClient.EventsApi.GETRefundIdEvents(context.Background(), refundId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETPriceFrequencyTierIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETRefundIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1706,11 +2672,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**priceFrequencyTierId** | [**interface{}**](.md) | The resource's id | +**refundId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPriceFrequencyTierIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETRefundIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1735,11 +2701,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPriceVolumeTierIdEvents +## GETReturnIdEvents -> GETPriceVolumeTierIdEvents(ctx, priceVolumeTierId).Execute() +> GETReturnIdEvents(ctx, returnId).Execute() -Retrieve the events associated to the price volume tier +Retrieve the events associated to the return @@ -1756,13 +2722,13 @@ import ( ) func main() { - priceVolumeTierId := TODO // interface{} | The resource's id + returnId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETPriceVolumeTierIdEvents(context.Background(), priceVolumeTierId).Execute() + r, err := apiClient.EventsApi.GETReturnIdEvents(context.Background(), returnId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETPriceVolumeTierIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETReturnIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1774,11 +2740,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**priceVolumeTierId** | [**interface{}**](.md) | The resource's id | +**returnId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPriceVolumeTierIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReturnIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1803,11 +2769,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPromotionIdEvents +## GETShipmentIdEvents -> GETPromotionIdEvents(ctx, promotionId).Execute() +> GETShipmentIdEvents(ctx, shipmentId).Execute() -Retrieve the events associated to the promotion +Retrieve the events associated to the shipment @@ -1824,13 +2790,13 @@ import ( ) func main() { - promotionId := TODO // interface{} | The resource's id + shipmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETPromotionIdEvents(context.Background(), promotionId).Execute() + r, err := apiClient.EventsApi.GETShipmentIdEvents(context.Background(), shipmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETPromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETShipmentIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1842,11 +2808,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**promotionId** | [**interface{}**](.md) | The resource's id | +**shipmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPromotionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShipmentIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1871,11 +2837,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETRecurringOrderCopyIdEvents +## GETSkuIdEvents -> GETRecurringOrderCopyIdEvents(ctx, recurringOrderCopyId).Execute() +> GETSkuIdEvents(ctx, skuId).Execute() -Retrieve the events associated to the recurring order copy +Retrieve the events associated to the SKU @@ -1892,13 +2858,13 @@ import ( ) func main() { - recurringOrderCopyId := TODO // interface{} | The resource's id + skuId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETRecurringOrderCopyIdEvents(context.Background(), recurringOrderCopyId).Execute() + r, err := apiClient.EventsApi.GETSkuIdEvents(context.Background(), skuId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETRecurringOrderCopyIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETSkuIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1910,11 +2876,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**recurringOrderCopyId** | [**interface{}**](.md) | The resource's id | +**skuId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETRecurringOrderCopyIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1939,11 +2905,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETRefundIdEvents +## GETSkuOptionIdEvents -> GETRefundIdEvents(ctx, refundId).Execute() +> GETSkuOptionIdEvents(ctx, skuOptionId).Execute() -Retrieve the events associated to the refund +Retrieve the events associated to the SKU option @@ -1960,13 +2926,13 @@ import ( ) func main() { - refundId := TODO // interface{} | The resource's id + skuOptionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETRefundIdEvents(context.Background(), refundId).Execute() + r, err := apiClient.EventsApi.GETSkuOptionIdEvents(context.Background(), skuOptionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETRefundIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETSkuOptionIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1978,11 +2944,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**refundId** | [**interface{}**](.md) | The resource's id | +**skuOptionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETRefundIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuOptionIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2007,11 +2973,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETReturnIdEvents +## GETStockTransferIdEvents -> GETReturnIdEvents(ctx, returnId).Execute() +> GETStockTransferIdEvents(ctx, stockTransferId).Execute() -Retrieve the events associated to the return +Retrieve the events associated to the stock transfer @@ -2028,13 +2994,13 @@ import ( ) func main() { - returnId := TODO // interface{} | The resource's id + stockTransferId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETReturnIdEvents(context.Background(), returnId).Execute() + r, err := apiClient.EventsApi.GETStockTransferIdEvents(context.Background(), stockTransferId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETReturnIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETStockTransferIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2046,11 +3012,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**returnId** | [**interface{}**](.md) | The resource's id | +**stockTransferId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETReturnIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockTransferIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2075,11 +3041,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShipmentIdEvents +## GETTransactionIdEvents -> GETShipmentIdEvents(ctx, shipmentId).Execute() +> GETTransactionIdEvents(ctx, transactionId).Execute() -Retrieve the events associated to the shipment +Retrieve the events associated to the transaction @@ -2096,13 +3062,13 @@ import ( ) func main() { - shipmentId := TODO // interface{} | The resource's id + transactionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETShipmentIdEvents(context.Background(), shipmentId).Execute() + r, err := apiClient.EventsApi.GETTransactionIdEvents(context.Background(), transactionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETShipmentIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETTransactionIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2114,11 +3080,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shipmentId** | [**interface{}**](.md) | The resource's id | +**transactionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShipmentIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETTransactionIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2143,11 +3109,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStockTransferIdEvents +## GETVoidIdEvents -> GETStockTransferIdEvents(ctx, stockTransferId).Execute() +> GETVoidIdEvents(ctx, voidId).Execute() -Retrieve the events associated to the stock transfer +Retrieve the events associated to the void @@ -2164,13 +3130,13 @@ import ( ) func main() { - stockTransferId := TODO // interface{} | The resource's id + voidId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETStockTransferIdEvents(context.Background(), stockTransferId).Execute() + r, err := apiClient.EventsApi.GETVoidIdEvents(context.Background(), voidId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETStockTransferIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETVoidIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2182,11 +3148,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**stockTransferId** | [**interface{}**](.md) | The resource's id | +**voidId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETStockTransferIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETVoidIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2211,11 +3177,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETVoidIdEvents +## PATCHEventsEventId -> GETVoidIdEvents(ctx, voidId).Execute() +> PATCHEventsEventId200Response PATCHEventsEventId(ctx, eventId).EventUpdate(eventUpdate).Execute() -Retrieve the events associated to the void +Update an event @@ -2232,15 +3198,18 @@ import ( ) func main() { - voidId := TODO // interface{} | The resource's id + eventUpdate := *openapiclient.NewEventUpdate(*openapiclient.NewEventUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHEventsEventId200ResponseDataAttributes())) // EventUpdate | + eventId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.EventsApi.GETVoidIdEvents(context.Background(), voidId).Execute() + resp, r, err := apiClient.EventsApi.PATCHEventsEventId(context.Background(), eventId).EventUpdate(eventUpdate).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.GETVoidIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `EventsApi.PATCHEventsEventId``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } + // response from `PATCHEventsEventId`: PATCHEventsEventId200Response + fmt.Fprintf(os.Stdout, "Response from `EventsApi.PATCHEventsEventId`: %v\n", resp) } ``` @@ -2250,20 +3219,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**voidId** | [**interface{}**](.md) | The resource's id | +**eventId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETVoidIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiPATCHEventsEventIdRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **eventUpdate** | [**EventUpdate**](EventUpdate.md) | | ### Return type - (empty response body) +[**PATCHEventsEventId200Response**](PATCHEventsEventId200Response.md) ### Authorization @@ -2271,8 +3241,8 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: Not defined +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) diff --git a/api/docs/ExportData.md b/api/docs/ExportData.md index 9c31f8c6..5f09d980 100644 --- a/api/docs/ExportData.md +++ b/api/docs/ExportData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**GETExportsExportId200ResponseDataAttributes**](GETExportsExportId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**CleanupDataRelationships**](CleanupDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**ExportDataRelationships**](ExportDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *ExportData) GetRelationships() CleanupDataRelationships` +`func (o *ExportData) GetRelationships() ExportDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *ExportData) GetRelationshipsOk() (*CleanupDataRelationships, bool)` +`func (o *ExportData) GetRelationshipsOk() (*ExportDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *ExportData) SetRelationships(v CleanupDataRelationships)` +`func (o *ExportData) SetRelationships(v ExportDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/ExportDataRelationships.md b/api/docs/ExportDataRelationships.md new file mode 100644 index 00000000..9b32e80a --- /dev/null +++ b/api/docs/ExportDataRelationships.md @@ -0,0 +1,56 @@ +# ExportDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] + +## Methods + +### NewExportDataRelationships + +`func NewExportDataRelationships() *ExportDataRelationships` + +NewExportDataRelationships instantiates a new ExportDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewExportDataRelationshipsWithDefaults + +`func NewExportDataRelationshipsWithDefaults() *ExportDataRelationships` + +NewExportDataRelationshipsWithDefaults instantiates a new ExportDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEvents + +`func (o *ExportDataRelationships) GetEvents() AddressDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *ExportDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *ExportDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *ExportDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ExportUpdate.md b/api/docs/ExportUpdate.md new file mode 100644 index 00000000..a3a603e1 --- /dev/null +++ b/api/docs/ExportUpdate.md @@ -0,0 +1,51 @@ +# ExportUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ExportUpdateData**](ExportUpdateData.md) | | + +## Methods + +### NewExportUpdate + +`func NewExportUpdate(data ExportUpdateData, ) *ExportUpdate` + +NewExportUpdate instantiates a new ExportUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewExportUpdateWithDefaults + +`func NewExportUpdateWithDefaults() *ExportUpdate` + +NewExportUpdateWithDefaults instantiates a new ExportUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *ExportUpdate) GetData() ExportUpdateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ExportUpdate) GetDataOk() (*ExportUpdateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ExportUpdate) SetData(v ExportUpdateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ExportUpdateData.md b/api/docs/ExportUpdateData.md new file mode 100644 index 00000000..9ae0ca75 --- /dev/null +++ b/api/docs/ExportUpdateData.md @@ -0,0 +1,149 @@ +# ExportUpdateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Id** | **interface{}** | The resource's id | +**Attributes** | [**PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes**](PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewExportUpdateData + +`func NewExportUpdateData(type_ interface{}, id interface{}, attributes PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, ) *ExportUpdateData` + +NewExportUpdateData instantiates a new ExportUpdateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewExportUpdateDataWithDefaults + +`func NewExportUpdateDataWithDefaults() *ExportUpdateData` + +NewExportUpdateDataWithDefaults instantiates a new ExportUpdateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ExportUpdateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ExportUpdateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ExportUpdateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *ExportUpdateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *ExportUpdateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *ExportUpdateData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ExportUpdateData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ExportUpdateData) SetId(v interface{})` + +SetId sets Id field to given value. + + +### SetIdNil + +`func (o *ExportUpdateData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *ExportUpdateData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetAttributes + +`func (o *ExportUpdateData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *ExportUpdateData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *ExportUpdateData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *ExportUpdateData) GetRelationships() interface{}` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *ExportUpdateData) GetRelationshipsOk() (*interface{}, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *ExportUpdateData) SetRelationships(v interface{})` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *ExportUpdateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### SetRelationshipsNil + +`func (o *ExportUpdateData) SetRelationshipsNil(b bool)` + + SetRelationshipsNil sets the value for Relationships to be an explicit nil + +### UnsetRelationships +`func (o *ExportUpdateData) UnsetRelationships()` + +UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ExportsApi.md b/api/docs/ExportsApi.md index 772c1d74..1d7121e9 100644 --- a/api/docs/ExportsApi.md +++ b/api/docs/ExportsApi.md @@ -7,6 +7,7 @@ Method | HTTP request | Description [**DELETEExportsExportId**](ExportsApi.md#DELETEExportsExportId) | **Delete** /exports/{exportId} | Delete an export [**GETExports**](ExportsApi.md#GETExports) | **Get** /exports | List all exports [**GETExportsExportId**](ExportsApi.md#GETExportsExportId) | **Get** /exports/{exportId} | Retrieve an export +[**PATCHExportsExportId**](ExportsApi.md#PATCHExportsExportId) | **Patch** /exports/{exportId} | Update an export [**POSTExports**](ExportsApi.md#POSTExports) | **Post** /exports | Create an export @@ -210,6 +211,78 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## PATCHExportsExportId + +> PATCHExportsExportId200Response PATCHExportsExportId(ctx, exportId).ExportUpdate(exportUpdate).Execute() + +Update an export + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + exportUpdate := *openapiclient.NewExportUpdate(*openapiclient.NewExportUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes())) // ExportUpdate | + exportId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExportsApi.PATCHExportsExportId(context.Background(), exportId).ExportUpdate(exportUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExportsApi.PATCHExportsExportId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PATCHExportsExportId`: PATCHExportsExportId200Response + fmt.Fprintf(os.Stdout, "Response from `ExportsApi.PATCHExportsExportId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**exportId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPATCHExportsExportIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **exportUpdate** | [**ExportUpdate**](ExportUpdate.md) | | + + +### Return type + +[**PATCHExportsExportId200Response**](PATCHExportsExportId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## POSTExports > POSTExports201Response POSTExports(ctx).ExportCreate(exportCreate).Execute() diff --git a/api/docs/ExternalGatewayDataRelationships.md b/api/docs/ExternalGatewayDataRelationships.md index a2a9af07..b4ca1802 100644 --- a/api/docs/ExternalGatewayDataRelationships.md +++ b/api/docs/ExternalGatewayDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**AdyenGatewayDataRelationshipsPaymentMethods**](AdyenGatewayDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] **ExternalPayments** | Pointer to [**ExternalGatewayDataRelationshipsExternalPayments**](ExternalGatewayDataRelationshipsExternalPayments.md) | | [optional] ## Methods @@ -51,6 +52,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *ExternalGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *ExternalGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *ExternalGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *ExternalGatewayDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetExternalPayments `func (o *ExternalGatewayDataRelationships) GetExternalPayments() ExternalGatewayDataRelationshipsExternalPayments` diff --git a/api/docs/ExternalPaymentDataRelationships.md b/api/docs/ExternalPaymentDataRelationships.md index 1fabea7a..86d72081 100644 --- a/api/docs/ExternalPaymentDataRelationships.md +++ b/api/docs/ExternalPaymentDataRelationships.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **Order** | Pointer to [**AdyenPaymentDataRelationshipsOrder**](AdyenPaymentDataRelationshipsOrder.md) | | [optional] **PaymentGateway** | Pointer to [**AdyenPaymentDataRelationshipsPaymentGateway**](AdyenPaymentDataRelationshipsPaymentGateway.md) | | [optional] **Wallet** | Pointer to [**CustomerDataRelationshipsCustomerPaymentSources**](CustomerDataRelationshipsCustomerPaymentSources.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -102,6 +103,31 @@ SetWallet sets Wallet field to given value. HasWallet returns a boolean if a field has been set. +### GetVersions + +`func (o *ExternalPaymentDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *ExternalPaymentDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *ExternalPaymentDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *ExternalPaymentDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/ExternalPromotionCreateData.md b/api/docs/ExternalPromotionCreateData.md index c4d68b43..351f6f29 100644 --- a/api/docs/ExternalPromotionCreateData.md +++ b/api/docs/ExternalPromotionCreateData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**POSTExternalPromotions201ResponseDataAttributes**](POSTExternalPromotions201ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**ExternalPromotionCreateDataRelationships**](ExternalPromotionCreateDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**BuyXPayYPromotionUpdateDataRelationships**](BuyXPayYPromotionUpdateDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *ExternalPromotionCreateData) GetRelationships() ExternalPromotionCreateDataRelationships` +`func (o *ExternalPromotionCreateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *ExternalPromotionCreateData) GetRelationshipsOk() (*ExternalPromotionCreateDataRelationships, bool)` +`func (o *ExternalPromotionCreateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *ExternalPromotionCreateData) SetRelationships(v ExternalPromotionCreateDataRelationships)` +`func (o *ExternalPromotionCreateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/ExternalPromotionCreateDataRelationships.md b/api/docs/ExternalPromotionCreateDataRelationships.md deleted file mode 100644 index 8ca04f7f..00000000 --- a/api/docs/ExternalPromotionCreateDataRelationships.md +++ /dev/null @@ -1,160 +0,0 @@ -# ExternalPromotionCreateDataRelationships - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Market** | Pointer to [**BillingInfoValidationRuleCreateDataRelationshipsMarket**](BillingInfoValidationRuleCreateDataRelationshipsMarket.md) | | [optional] -**PromotionRules** | Pointer to [**ExternalPromotionCreateDataRelationshipsPromotionRules**](ExternalPromotionCreateDataRelationshipsPromotionRules.md) | | [optional] -**OrderAmountPromotionRule** | Pointer to [**ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule**](ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule.md) | | [optional] -**SkuListPromotionRule** | Pointer to [**ExternalPromotionCreateDataRelationshipsSkuListPromotionRule**](ExternalPromotionCreateDataRelationshipsSkuListPromotionRule.md) | | [optional] -**CouponCodesPromotionRule** | Pointer to [**CouponCreateDataRelationshipsPromotionRule**](CouponCreateDataRelationshipsPromotionRule.md) | | [optional] - -## Methods - -### NewExternalPromotionCreateDataRelationships - -`func NewExternalPromotionCreateDataRelationships() *ExternalPromotionCreateDataRelationships` - -NewExternalPromotionCreateDataRelationships instantiates a new ExternalPromotionCreateDataRelationships object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewExternalPromotionCreateDataRelationshipsWithDefaults - -`func NewExternalPromotionCreateDataRelationshipsWithDefaults() *ExternalPromotionCreateDataRelationships` - -NewExternalPromotionCreateDataRelationshipsWithDefaults instantiates a new ExternalPromotionCreateDataRelationships object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMarket - -`func (o *ExternalPromotionCreateDataRelationships) GetMarket() BillingInfoValidationRuleCreateDataRelationshipsMarket` - -GetMarket returns the Market field if non-nil, zero value otherwise. - -### GetMarketOk - -`func (o *ExternalPromotionCreateDataRelationships) GetMarketOk() (*BillingInfoValidationRuleCreateDataRelationshipsMarket, bool)` - -GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMarket - -`func (o *ExternalPromotionCreateDataRelationships) SetMarket(v BillingInfoValidationRuleCreateDataRelationshipsMarket)` - -SetMarket sets Market field to given value. - -### HasMarket - -`func (o *ExternalPromotionCreateDataRelationships) HasMarket() bool` - -HasMarket returns a boolean if a field has been set. - -### GetPromotionRules - -`func (o *ExternalPromotionCreateDataRelationships) GetPromotionRules() ExternalPromotionCreateDataRelationshipsPromotionRules` - -GetPromotionRules returns the PromotionRules field if non-nil, zero value otherwise. - -### GetPromotionRulesOk - -`func (o *ExternalPromotionCreateDataRelationships) GetPromotionRulesOk() (*ExternalPromotionCreateDataRelationshipsPromotionRules, bool)` - -GetPromotionRulesOk returns a tuple with the PromotionRules field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPromotionRules - -`func (o *ExternalPromotionCreateDataRelationships) SetPromotionRules(v ExternalPromotionCreateDataRelationshipsPromotionRules)` - -SetPromotionRules sets PromotionRules field to given value. - -### HasPromotionRules - -`func (o *ExternalPromotionCreateDataRelationships) HasPromotionRules() bool` - -HasPromotionRules returns a boolean if a field has been set. - -### GetOrderAmountPromotionRule - -`func (o *ExternalPromotionCreateDataRelationships) GetOrderAmountPromotionRule() ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule` - -GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field if non-nil, zero value otherwise. - -### GetOrderAmountPromotionRuleOk - -`func (o *ExternalPromotionCreateDataRelationships) GetOrderAmountPromotionRuleOk() (*ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule, bool)` - -GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderAmountPromotionRule - -`func (o *ExternalPromotionCreateDataRelationships) SetOrderAmountPromotionRule(v ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule)` - -SetOrderAmountPromotionRule sets OrderAmountPromotionRule field to given value. - -### HasOrderAmountPromotionRule - -`func (o *ExternalPromotionCreateDataRelationships) HasOrderAmountPromotionRule() bool` - -HasOrderAmountPromotionRule returns a boolean if a field has been set. - -### GetSkuListPromotionRule - -`func (o *ExternalPromotionCreateDataRelationships) GetSkuListPromotionRule() ExternalPromotionCreateDataRelationshipsSkuListPromotionRule` - -GetSkuListPromotionRule returns the SkuListPromotionRule field if non-nil, zero value otherwise. - -### GetSkuListPromotionRuleOk - -`func (o *ExternalPromotionCreateDataRelationships) GetSkuListPromotionRuleOk() (*ExternalPromotionCreateDataRelationshipsSkuListPromotionRule, bool)` - -GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSkuListPromotionRule - -`func (o *ExternalPromotionCreateDataRelationships) SetSkuListPromotionRule(v ExternalPromotionCreateDataRelationshipsSkuListPromotionRule)` - -SetSkuListPromotionRule sets SkuListPromotionRule field to given value. - -### HasSkuListPromotionRule - -`func (o *ExternalPromotionCreateDataRelationships) HasSkuListPromotionRule() bool` - -HasSkuListPromotionRule returns a boolean if a field has been set. - -### GetCouponCodesPromotionRule - -`func (o *ExternalPromotionCreateDataRelationships) GetCouponCodesPromotionRule() CouponCreateDataRelationshipsPromotionRule` - -GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field if non-nil, zero value otherwise. - -### GetCouponCodesPromotionRuleOk - -`func (o *ExternalPromotionCreateDataRelationships) GetCouponCodesPromotionRuleOk() (*CouponCreateDataRelationshipsPromotionRule, bool)` - -GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCouponCodesPromotionRule - -`func (o *ExternalPromotionCreateDataRelationships) SetCouponCodesPromotionRule(v CouponCreateDataRelationshipsPromotionRule)` - -SetCouponCodesPromotionRule sets CouponCodesPromotionRule field to given value. - -### HasCouponCodesPromotionRule - -`func (o *ExternalPromotionCreateDataRelationships) HasCouponCodesPromotionRule() bool` - -HasCouponCodesPromotionRule returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule.md b/api/docs/ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule.md deleted file mode 100644 index f5deb23a..00000000 --- a/api/docs/ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule.md +++ /dev/null @@ -1,51 +0,0 @@ -# ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData**](ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData.md) | | - -## Methods - -### NewExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule - -`func NewExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule(data ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData, ) *ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule` - -NewExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule instantiates a new ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewExternalPromotionCreateDataRelationshipsOrderAmountPromotionRuleWithDefaults - -`func NewExternalPromotionCreateDataRelationshipsOrderAmountPromotionRuleWithDefaults() *ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule` - -NewExternalPromotionCreateDataRelationshipsOrderAmountPromotionRuleWithDefaults instantiates a new ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule) GetData() ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule) GetDataOk() (*ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule) SetData(v ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData)` - -SetData sets Data field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/ExternalPromotionCreateDataRelationshipsPromotionRules.md b/api/docs/ExternalPromotionCreateDataRelationshipsPromotionRules.md deleted file mode 100644 index e557cd93..00000000 --- a/api/docs/ExternalPromotionCreateDataRelationshipsPromotionRules.md +++ /dev/null @@ -1,51 +0,0 @@ -# ExternalPromotionCreateDataRelationshipsPromotionRules - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**ExternalPromotionDataRelationshipsPromotionRulesData**](ExternalPromotionDataRelationshipsPromotionRulesData.md) | | - -## Methods - -### NewExternalPromotionCreateDataRelationshipsPromotionRules - -`func NewExternalPromotionCreateDataRelationshipsPromotionRules(data ExternalPromotionDataRelationshipsPromotionRulesData, ) *ExternalPromotionCreateDataRelationshipsPromotionRules` - -NewExternalPromotionCreateDataRelationshipsPromotionRules instantiates a new ExternalPromotionCreateDataRelationshipsPromotionRules object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewExternalPromotionCreateDataRelationshipsPromotionRulesWithDefaults - -`func NewExternalPromotionCreateDataRelationshipsPromotionRulesWithDefaults() *ExternalPromotionCreateDataRelationshipsPromotionRules` - -NewExternalPromotionCreateDataRelationshipsPromotionRulesWithDefaults instantiates a new ExternalPromotionCreateDataRelationshipsPromotionRules object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *ExternalPromotionCreateDataRelationshipsPromotionRules) GetData() ExternalPromotionDataRelationshipsPromotionRulesData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ExternalPromotionCreateDataRelationshipsPromotionRules) GetDataOk() (*ExternalPromotionDataRelationshipsPromotionRulesData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ExternalPromotionCreateDataRelationshipsPromotionRules) SetData(v ExternalPromotionDataRelationshipsPromotionRulesData)` - -SetData sets Data field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/ExternalPromotionCreateDataRelationshipsSkuListPromotionRule.md b/api/docs/ExternalPromotionCreateDataRelationshipsSkuListPromotionRule.md deleted file mode 100644 index db5f4471..00000000 --- a/api/docs/ExternalPromotionCreateDataRelationshipsSkuListPromotionRule.md +++ /dev/null @@ -1,51 +0,0 @@ -# ExternalPromotionCreateDataRelationshipsSkuListPromotionRule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**ExternalPromotionDataRelationshipsSkuListPromotionRuleData**](ExternalPromotionDataRelationshipsSkuListPromotionRuleData.md) | | - -## Methods - -### NewExternalPromotionCreateDataRelationshipsSkuListPromotionRule - -`func NewExternalPromotionCreateDataRelationshipsSkuListPromotionRule(data ExternalPromotionDataRelationshipsSkuListPromotionRuleData, ) *ExternalPromotionCreateDataRelationshipsSkuListPromotionRule` - -NewExternalPromotionCreateDataRelationshipsSkuListPromotionRule instantiates a new ExternalPromotionCreateDataRelationshipsSkuListPromotionRule object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewExternalPromotionCreateDataRelationshipsSkuListPromotionRuleWithDefaults - -`func NewExternalPromotionCreateDataRelationshipsSkuListPromotionRuleWithDefaults() *ExternalPromotionCreateDataRelationshipsSkuListPromotionRule` - -NewExternalPromotionCreateDataRelationshipsSkuListPromotionRuleWithDefaults instantiates a new ExternalPromotionCreateDataRelationshipsSkuListPromotionRule object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *ExternalPromotionCreateDataRelationshipsSkuListPromotionRule) GetData() ExternalPromotionDataRelationshipsSkuListPromotionRuleData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ExternalPromotionCreateDataRelationshipsSkuListPromotionRule) GetDataOk() (*ExternalPromotionDataRelationshipsSkuListPromotionRuleData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ExternalPromotionCreateDataRelationshipsSkuListPromotionRule) SetData(v ExternalPromotionDataRelationshipsSkuListPromotionRuleData)` - -SetData sets Data field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/ExternalPromotionData.md b/api/docs/ExternalPromotionData.md index 9f0b0cab..8b0d5fd1 100644 --- a/api/docs/ExternalPromotionData.md +++ b/api/docs/ExternalPromotionData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**GETExternalPromotionsExternalPromotionId200ResponseDataAttributes**](GETExternalPromotionsExternalPromotionId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**ExternalPromotionDataRelationships**](ExternalPromotionDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**BuyXPayYPromotionDataRelationships**](BuyXPayYPromotionDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *ExternalPromotionData) GetRelationships() ExternalPromotionDataRelationships` +`func (o *ExternalPromotionData) GetRelationships() BuyXPayYPromotionDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *ExternalPromotionData) GetRelationshipsOk() (*ExternalPromotionDataRelationships, bool)` +`func (o *ExternalPromotionData) GetRelationshipsOk() (*BuyXPayYPromotionDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *ExternalPromotionData) SetRelationships(v ExternalPromotionDataRelationships)` +`func (o *ExternalPromotionData) SetRelationships(v BuyXPayYPromotionDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/ExternalPromotionDataRelationships.md b/api/docs/ExternalPromotionDataRelationships.md deleted file mode 100644 index 71f890ad..00000000 --- a/api/docs/ExternalPromotionDataRelationships.md +++ /dev/null @@ -1,212 +0,0 @@ -# ExternalPromotionDataRelationships - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Market** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] -**PromotionRules** | Pointer to [**ExternalPromotionDataRelationshipsPromotionRules**](ExternalPromotionDataRelationshipsPromotionRules.md) | | [optional] -**OrderAmountPromotionRule** | Pointer to [**ExternalPromotionDataRelationshipsOrderAmountPromotionRule**](ExternalPromotionDataRelationshipsOrderAmountPromotionRule.md) | | [optional] -**SkuListPromotionRule** | Pointer to [**ExternalPromotionDataRelationshipsSkuListPromotionRule**](ExternalPromotionDataRelationshipsSkuListPromotionRule.md) | | [optional] -**CouponCodesPromotionRule** | Pointer to [**CouponDataRelationshipsPromotionRule**](CouponDataRelationshipsPromotionRule.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] - -## Methods - -### NewExternalPromotionDataRelationships - -`func NewExternalPromotionDataRelationships() *ExternalPromotionDataRelationships` - -NewExternalPromotionDataRelationships instantiates a new ExternalPromotionDataRelationships object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewExternalPromotionDataRelationshipsWithDefaults - -`func NewExternalPromotionDataRelationshipsWithDefaults() *ExternalPromotionDataRelationships` - -NewExternalPromotionDataRelationshipsWithDefaults instantiates a new ExternalPromotionDataRelationships object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMarket - -`func (o *ExternalPromotionDataRelationships) GetMarket() AvalaraAccountDataRelationshipsMarkets` - -GetMarket returns the Market field if non-nil, zero value otherwise. - -### GetMarketOk - -`func (o *ExternalPromotionDataRelationships) GetMarketOk() (*AvalaraAccountDataRelationshipsMarkets, bool)` - -GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMarket - -`func (o *ExternalPromotionDataRelationships) SetMarket(v AvalaraAccountDataRelationshipsMarkets)` - -SetMarket sets Market field to given value. - -### HasMarket - -`func (o *ExternalPromotionDataRelationships) HasMarket() bool` - -HasMarket returns a boolean if a field has been set. - -### GetPromotionRules - -`func (o *ExternalPromotionDataRelationships) GetPromotionRules() ExternalPromotionDataRelationshipsPromotionRules` - -GetPromotionRules returns the PromotionRules field if non-nil, zero value otherwise. - -### GetPromotionRulesOk - -`func (o *ExternalPromotionDataRelationships) GetPromotionRulesOk() (*ExternalPromotionDataRelationshipsPromotionRules, bool)` - -GetPromotionRulesOk returns a tuple with the PromotionRules field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPromotionRules - -`func (o *ExternalPromotionDataRelationships) SetPromotionRules(v ExternalPromotionDataRelationshipsPromotionRules)` - -SetPromotionRules sets PromotionRules field to given value. - -### HasPromotionRules - -`func (o *ExternalPromotionDataRelationships) HasPromotionRules() bool` - -HasPromotionRules returns a boolean if a field has been set. - -### GetOrderAmountPromotionRule - -`func (o *ExternalPromotionDataRelationships) GetOrderAmountPromotionRule() ExternalPromotionDataRelationshipsOrderAmountPromotionRule` - -GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field if non-nil, zero value otherwise. - -### GetOrderAmountPromotionRuleOk - -`func (o *ExternalPromotionDataRelationships) GetOrderAmountPromotionRuleOk() (*ExternalPromotionDataRelationshipsOrderAmountPromotionRule, bool)` - -GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderAmountPromotionRule - -`func (o *ExternalPromotionDataRelationships) SetOrderAmountPromotionRule(v ExternalPromotionDataRelationshipsOrderAmountPromotionRule)` - -SetOrderAmountPromotionRule sets OrderAmountPromotionRule field to given value. - -### HasOrderAmountPromotionRule - -`func (o *ExternalPromotionDataRelationships) HasOrderAmountPromotionRule() bool` - -HasOrderAmountPromotionRule returns a boolean if a field has been set. - -### GetSkuListPromotionRule - -`func (o *ExternalPromotionDataRelationships) GetSkuListPromotionRule() ExternalPromotionDataRelationshipsSkuListPromotionRule` - -GetSkuListPromotionRule returns the SkuListPromotionRule field if non-nil, zero value otherwise. - -### GetSkuListPromotionRuleOk - -`func (o *ExternalPromotionDataRelationships) GetSkuListPromotionRuleOk() (*ExternalPromotionDataRelationshipsSkuListPromotionRule, bool)` - -GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSkuListPromotionRule - -`func (o *ExternalPromotionDataRelationships) SetSkuListPromotionRule(v ExternalPromotionDataRelationshipsSkuListPromotionRule)` - -SetSkuListPromotionRule sets SkuListPromotionRule field to given value. - -### HasSkuListPromotionRule - -`func (o *ExternalPromotionDataRelationships) HasSkuListPromotionRule() bool` - -HasSkuListPromotionRule returns a boolean if a field has been set. - -### GetCouponCodesPromotionRule - -`func (o *ExternalPromotionDataRelationships) GetCouponCodesPromotionRule() CouponDataRelationshipsPromotionRule` - -GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field if non-nil, zero value otherwise. - -### GetCouponCodesPromotionRuleOk - -`func (o *ExternalPromotionDataRelationships) GetCouponCodesPromotionRuleOk() (*CouponDataRelationshipsPromotionRule, bool)` - -GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCouponCodesPromotionRule - -`func (o *ExternalPromotionDataRelationships) SetCouponCodesPromotionRule(v CouponDataRelationshipsPromotionRule)` - -SetCouponCodesPromotionRule sets CouponCodesPromotionRule field to given value. - -### HasCouponCodesPromotionRule - -`func (o *ExternalPromotionDataRelationships) HasCouponCodesPromotionRule() bool` - -HasCouponCodesPromotionRule returns a boolean if a field has been set. - -### GetAttachments - -`func (o *ExternalPromotionDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` - -GetAttachments returns the Attachments field if non-nil, zero value otherwise. - -### GetAttachmentsOk - -`func (o *ExternalPromotionDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` - -GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttachments - -`func (o *ExternalPromotionDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` - -SetAttachments sets Attachments field to given value. - -### HasAttachments - -`func (o *ExternalPromotionDataRelationships) HasAttachments() bool` - -HasAttachments returns a boolean if a field has been set. - -### GetEvents - -`func (o *ExternalPromotionDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` - -GetEvents returns the Events field if non-nil, zero value otherwise. - -### GetEventsOk - -`func (o *ExternalPromotionDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` - -GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEvents - -`func (o *ExternalPromotionDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` - -SetEvents sets Events field to given value. - -### HasEvents - -`func (o *ExternalPromotionDataRelationships) HasEvents() bool` - -HasEvents returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/ExternalPromotionDataRelationshipsOrderAmountPromotionRule.md b/api/docs/ExternalPromotionDataRelationshipsOrderAmountPromotionRule.md deleted file mode 100644 index 4a377180..00000000 --- a/api/docs/ExternalPromotionDataRelationshipsOrderAmountPromotionRule.md +++ /dev/null @@ -1,56 +0,0 @@ -# ExternalPromotionDataRelationshipsOrderAmountPromotionRule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | Pointer to [**ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData**](ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData.md) | | [optional] - -## Methods - -### NewExternalPromotionDataRelationshipsOrderAmountPromotionRule - -`func NewExternalPromotionDataRelationshipsOrderAmountPromotionRule() *ExternalPromotionDataRelationshipsOrderAmountPromotionRule` - -NewExternalPromotionDataRelationshipsOrderAmountPromotionRule instantiates a new ExternalPromotionDataRelationshipsOrderAmountPromotionRule object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewExternalPromotionDataRelationshipsOrderAmountPromotionRuleWithDefaults - -`func NewExternalPromotionDataRelationshipsOrderAmountPromotionRuleWithDefaults() *ExternalPromotionDataRelationshipsOrderAmountPromotionRule` - -NewExternalPromotionDataRelationshipsOrderAmountPromotionRuleWithDefaults instantiates a new ExternalPromotionDataRelationshipsOrderAmountPromotionRule object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRule) GetData() ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRule) GetDataOk() (*ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRule) SetData(v ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRule) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/ExternalPromotionDataRelationshipsPromotionRules.md b/api/docs/ExternalPromotionDataRelationshipsPromotionRules.md deleted file mode 100644 index bb4b8586..00000000 --- a/api/docs/ExternalPromotionDataRelationshipsPromotionRules.md +++ /dev/null @@ -1,56 +0,0 @@ -# ExternalPromotionDataRelationshipsPromotionRules - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | Pointer to [**ExternalPromotionDataRelationshipsPromotionRulesData**](ExternalPromotionDataRelationshipsPromotionRulesData.md) | | [optional] - -## Methods - -### NewExternalPromotionDataRelationshipsPromotionRules - -`func NewExternalPromotionDataRelationshipsPromotionRules() *ExternalPromotionDataRelationshipsPromotionRules` - -NewExternalPromotionDataRelationshipsPromotionRules instantiates a new ExternalPromotionDataRelationshipsPromotionRules object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewExternalPromotionDataRelationshipsPromotionRulesWithDefaults - -`func NewExternalPromotionDataRelationshipsPromotionRulesWithDefaults() *ExternalPromotionDataRelationshipsPromotionRules` - -NewExternalPromotionDataRelationshipsPromotionRulesWithDefaults instantiates a new ExternalPromotionDataRelationshipsPromotionRules object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *ExternalPromotionDataRelationshipsPromotionRules) GetData() ExternalPromotionDataRelationshipsPromotionRulesData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ExternalPromotionDataRelationshipsPromotionRules) GetDataOk() (*ExternalPromotionDataRelationshipsPromotionRulesData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ExternalPromotionDataRelationshipsPromotionRules) SetData(v ExternalPromotionDataRelationshipsPromotionRulesData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ExternalPromotionDataRelationshipsPromotionRules) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/ExternalPromotionDataRelationshipsSkuListPromotionRule.md b/api/docs/ExternalPromotionDataRelationshipsSkuListPromotionRule.md deleted file mode 100644 index d56b1ee1..00000000 --- a/api/docs/ExternalPromotionDataRelationshipsSkuListPromotionRule.md +++ /dev/null @@ -1,56 +0,0 @@ -# ExternalPromotionDataRelationshipsSkuListPromotionRule - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | Pointer to [**ExternalPromotionDataRelationshipsSkuListPromotionRuleData**](ExternalPromotionDataRelationshipsSkuListPromotionRuleData.md) | | [optional] - -## Methods - -### NewExternalPromotionDataRelationshipsSkuListPromotionRule - -`func NewExternalPromotionDataRelationshipsSkuListPromotionRule() *ExternalPromotionDataRelationshipsSkuListPromotionRule` - -NewExternalPromotionDataRelationshipsSkuListPromotionRule instantiates a new ExternalPromotionDataRelationshipsSkuListPromotionRule object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewExternalPromotionDataRelationshipsSkuListPromotionRuleWithDefaults - -`func NewExternalPromotionDataRelationshipsSkuListPromotionRuleWithDefaults() *ExternalPromotionDataRelationshipsSkuListPromotionRule` - -NewExternalPromotionDataRelationshipsSkuListPromotionRuleWithDefaults instantiates a new ExternalPromotionDataRelationshipsSkuListPromotionRule object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *ExternalPromotionDataRelationshipsSkuListPromotionRule) GetData() ExternalPromotionDataRelationshipsSkuListPromotionRuleData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ExternalPromotionDataRelationshipsSkuListPromotionRule) GetDataOk() (*ExternalPromotionDataRelationshipsSkuListPromotionRuleData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ExternalPromotionDataRelationshipsSkuListPromotionRule) SetData(v ExternalPromotionDataRelationshipsSkuListPromotionRuleData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ExternalPromotionDataRelationshipsSkuListPromotionRule) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/ExternalPromotionUpdateData.md b/api/docs/ExternalPromotionUpdateData.md index d3ae27d5..08beeeaa 100644 --- a/api/docs/ExternalPromotionUpdateData.md +++ b/api/docs/ExternalPromotionUpdateData.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Type** | **interface{}** | The resource's type | **Id** | **interface{}** | The resource's id | **Attributes** | [**PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes**](PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**ExternalPromotionCreateDataRelationships**](ExternalPromotionCreateDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**BuyXPayYPromotionUpdateDataRelationships**](BuyXPayYPromotionUpdateDataRelationships.md) | | [optional] ## Methods @@ -110,20 +110,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *ExternalPromotionUpdateData) GetRelationships() ExternalPromotionCreateDataRelationships` +`func (o *ExternalPromotionUpdateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *ExternalPromotionUpdateData) GetRelationshipsOk() (*ExternalPromotionCreateDataRelationships, bool)` +`func (o *ExternalPromotionUpdateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *ExternalPromotionUpdateData) SetRelationships(v ExternalPromotionCreateDataRelationships)` +`func (o *ExternalPromotionUpdateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/ExternalPromotionsApi.md b/api/docs/ExternalPromotionsApi.md index e158ee80..4d24ea5f 100644 --- a/api/docs/ExternalPromotionsApi.md +++ b/api/docs/ExternalPromotionsApi.md @@ -304,7 +304,7 @@ import ( ) func main() { - externalPromotionCreate := *openapiclient.NewExternalPromotionCreate(*openapiclient.NewExternalPromotionCreateData(interface{}(123), *openapiclient.NewPOSTExternalPromotions201ResponseDataAttributes(interface{}(Personal promotion), interface{}(2018-01-01T12:00:00.000Z), interface{}(2018-01-02T12:00:00.000Z), interface{}(5), interface{}(https://external_promotion.yourbrand.com)))) // ExternalPromotionCreate | + externalPromotionCreate := *openapiclient.NewExternalPromotionCreate(*openapiclient.NewExternalPromotionCreateData(interface{}(123), *openapiclient.NewPOSTExternalPromotions201ResponseDataAttributes(interface{}(Personal promotion), interface{}(2018-01-01T12:00:00.000Z), interface{}(2018-01-02T12:00:00.000Z), interface{}(https://external_promotion.yourbrand.com)))) // ExternalPromotionCreate | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/api/docs/ExternalTaxCalculatorDataRelationships.md b/api/docs/ExternalTaxCalculatorDataRelationships.md index c86182d0..02418ba7 100644 --- a/api/docs/ExternalTaxCalculatorDataRelationships.md +++ b/api/docs/ExternalTaxCalculatorDataRelationships.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Markets** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -53,20 +54,20 @@ HasMarkets returns a boolean if a field has been set. ### GetAttachments -`func (o *ExternalTaxCalculatorDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *ExternalTaxCalculatorDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *ExternalTaxCalculatorDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *ExternalTaxCalculatorDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *ExternalTaxCalculatorDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *ExternalTaxCalculatorDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -76,6 +77,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *ExternalTaxCalculatorDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *ExternalTaxCalculatorDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *ExternalTaxCalculatorDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *ExternalTaxCalculatorDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/FixedAmountPromotionCreateData.md b/api/docs/FixedAmountPromotionCreateData.md index cd5fba87..8e9c5ef8 100644 --- a/api/docs/FixedAmountPromotionCreateData.md +++ b/api/docs/FixedAmountPromotionCreateData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**POSTFixedAmountPromotions201ResponseDataAttributes**](POSTFixedAmountPromotions201ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**ExternalPromotionCreateDataRelationships**](ExternalPromotionCreateDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**BuyXPayYPromotionUpdateDataRelationships**](BuyXPayYPromotionUpdateDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *FixedAmountPromotionCreateData) GetRelationships() ExternalPromotionCreateDataRelationships` +`func (o *FixedAmountPromotionCreateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *FixedAmountPromotionCreateData) GetRelationshipsOk() (*ExternalPromotionCreateDataRelationships, bool)` +`func (o *FixedAmountPromotionCreateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *FixedAmountPromotionCreateData) SetRelationships(v ExternalPromotionCreateDataRelationships)` +`func (o *FixedAmountPromotionCreateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/FixedAmountPromotionData.md b/api/docs/FixedAmountPromotionData.md index ee64cf35..61e1f95a 100644 --- a/api/docs/FixedAmountPromotionData.md +++ b/api/docs/FixedAmountPromotionData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes**](GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**ExternalPromotionDataRelationships**](ExternalPromotionDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**BuyXPayYPromotionDataRelationships**](BuyXPayYPromotionDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *FixedAmountPromotionData) GetRelationships() ExternalPromotionDataRelationships` +`func (o *FixedAmountPromotionData) GetRelationships() BuyXPayYPromotionDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *FixedAmountPromotionData) GetRelationshipsOk() (*ExternalPromotionDataRelationships, bool)` +`func (o *FixedAmountPromotionData) GetRelationshipsOk() (*BuyXPayYPromotionDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *FixedAmountPromotionData) SetRelationships(v ExternalPromotionDataRelationships)` +`func (o *FixedAmountPromotionData) SetRelationships(v BuyXPayYPromotionDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/FixedAmountPromotionUpdateData.md b/api/docs/FixedAmountPromotionUpdateData.md index d4e64d5f..0e63fa44 100644 --- a/api/docs/FixedAmountPromotionUpdateData.md +++ b/api/docs/FixedAmountPromotionUpdateData.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Type** | **interface{}** | The resource's type | **Id** | **interface{}** | The resource's id | **Attributes** | [**PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes**](PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**ExternalPromotionCreateDataRelationships**](ExternalPromotionCreateDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**BuyXPayYPromotionUpdateDataRelationships**](BuyXPayYPromotionUpdateDataRelationships.md) | | [optional] ## Methods @@ -110,20 +110,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *FixedAmountPromotionUpdateData) GetRelationships() ExternalPromotionCreateDataRelationships` +`func (o *FixedAmountPromotionUpdateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *FixedAmountPromotionUpdateData) GetRelationshipsOk() (*ExternalPromotionCreateDataRelationships, bool)` +`func (o *FixedAmountPromotionUpdateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *FixedAmountPromotionUpdateData) SetRelationships(v ExternalPromotionCreateDataRelationships)` +`func (o *FixedAmountPromotionUpdateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/FixedAmountPromotionsApi.md b/api/docs/FixedAmountPromotionsApi.md index fdac8263..6d3847cd 100644 --- a/api/docs/FixedAmountPromotionsApi.md +++ b/api/docs/FixedAmountPromotionsApi.md @@ -304,7 +304,7 @@ import ( ) func main() { - fixedAmountPromotionCreate := *openapiclient.NewFixedAmountPromotionCreate(*openapiclient.NewFixedAmountPromotionCreateData(interface{}(123), *openapiclient.NewPOSTFixedAmountPromotions201ResponseDataAttributes(interface{}(Personal promotion), interface{}(2018-01-01T12:00:00.000Z), interface{}(2018-01-02T12:00:00.000Z), interface{}(5), interface{}(1000)))) // FixedAmountPromotionCreate | + fixedAmountPromotionCreate := *openapiclient.NewFixedAmountPromotionCreate(*openapiclient.NewFixedAmountPromotionCreateData(interface{}(123), *openapiclient.NewPOSTFixedAmountPromotions201ResponseDataAttributes(interface{}(Personal promotion), interface{}(2018-01-01T12:00:00.000Z), interface{}(2018-01-02T12:00:00.000Z), interface{}(1000)))) // FixedAmountPromotionCreate | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/api/docs/FixedPricePromotionCreateData.md b/api/docs/FixedPricePromotionCreateData.md index ec0410a5..4d15331d 100644 --- a/api/docs/FixedPricePromotionCreateData.md +++ b/api/docs/FixedPricePromotionCreateData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**POSTFixedPricePromotions201ResponseDataAttributes**](POSTFixedPricePromotions201ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**FixedPricePromotionCreateDataRelationships**](FixedPricePromotionCreateDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**BuyXPayYPromotionCreateDataRelationships**](BuyXPayYPromotionCreateDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *FixedPricePromotionCreateData) GetRelationships() FixedPricePromotionCreateDataRelationships` +`func (o *FixedPricePromotionCreateData) GetRelationships() BuyXPayYPromotionCreateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *FixedPricePromotionCreateData) GetRelationshipsOk() (*FixedPricePromotionCreateDataRelationships, bool)` +`func (o *FixedPricePromotionCreateData) GetRelationshipsOk() (*BuyXPayYPromotionCreateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *FixedPricePromotionCreateData) SetRelationships(v FixedPricePromotionCreateDataRelationships)` +`func (o *FixedPricePromotionCreateData) SetRelationships(v BuyXPayYPromotionCreateDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/FixedPricePromotionCreateDataRelationships.md b/api/docs/FixedPricePromotionCreateDataRelationships.md deleted file mode 100644 index fa487ff7..00000000 --- a/api/docs/FixedPricePromotionCreateDataRelationships.md +++ /dev/null @@ -1,181 +0,0 @@ -# FixedPricePromotionCreateDataRelationships - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Market** | Pointer to [**BillingInfoValidationRuleCreateDataRelationshipsMarket**](BillingInfoValidationRuleCreateDataRelationshipsMarket.md) | | [optional] -**PromotionRules** | Pointer to [**ExternalPromotionCreateDataRelationshipsPromotionRules**](ExternalPromotionCreateDataRelationshipsPromotionRules.md) | | [optional] -**OrderAmountPromotionRule** | Pointer to [**ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule**](ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule.md) | | [optional] -**SkuListPromotionRule** | Pointer to [**ExternalPromotionCreateDataRelationshipsSkuListPromotionRule**](ExternalPromotionCreateDataRelationshipsSkuListPromotionRule.md) | | [optional] -**CouponCodesPromotionRule** | Pointer to [**CouponCreateDataRelationshipsPromotionRule**](CouponCreateDataRelationshipsPromotionRule.md) | | [optional] -**SkuList** | [**BundleCreateDataRelationshipsSkuList**](BundleCreateDataRelationshipsSkuList.md) | | - -## Methods - -### NewFixedPricePromotionCreateDataRelationships - -`func NewFixedPricePromotionCreateDataRelationships(skuList BundleCreateDataRelationshipsSkuList, ) *FixedPricePromotionCreateDataRelationships` - -NewFixedPricePromotionCreateDataRelationships instantiates a new FixedPricePromotionCreateDataRelationships object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewFixedPricePromotionCreateDataRelationshipsWithDefaults - -`func NewFixedPricePromotionCreateDataRelationshipsWithDefaults() *FixedPricePromotionCreateDataRelationships` - -NewFixedPricePromotionCreateDataRelationshipsWithDefaults instantiates a new FixedPricePromotionCreateDataRelationships object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMarket - -`func (o *FixedPricePromotionCreateDataRelationships) GetMarket() BillingInfoValidationRuleCreateDataRelationshipsMarket` - -GetMarket returns the Market field if non-nil, zero value otherwise. - -### GetMarketOk - -`func (o *FixedPricePromotionCreateDataRelationships) GetMarketOk() (*BillingInfoValidationRuleCreateDataRelationshipsMarket, bool)` - -GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMarket - -`func (o *FixedPricePromotionCreateDataRelationships) SetMarket(v BillingInfoValidationRuleCreateDataRelationshipsMarket)` - -SetMarket sets Market field to given value. - -### HasMarket - -`func (o *FixedPricePromotionCreateDataRelationships) HasMarket() bool` - -HasMarket returns a boolean if a field has been set. - -### GetPromotionRules - -`func (o *FixedPricePromotionCreateDataRelationships) GetPromotionRules() ExternalPromotionCreateDataRelationshipsPromotionRules` - -GetPromotionRules returns the PromotionRules field if non-nil, zero value otherwise. - -### GetPromotionRulesOk - -`func (o *FixedPricePromotionCreateDataRelationships) GetPromotionRulesOk() (*ExternalPromotionCreateDataRelationshipsPromotionRules, bool)` - -GetPromotionRulesOk returns a tuple with the PromotionRules field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPromotionRules - -`func (o *FixedPricePromotionCreateDataRelationships) SetPromotionRules(v ExternalPromotionCreateDataRelationshipsPromotionRules)` - -SetPromotionRules sets PromotionRules field to given value. - -### HasPromotionRules - -`func (o *FixedPricePromotionCreateDataRelationships) HasPromotionRules() bool` - -HasPromotionRules returns a boolean if a field has been set. - -### GetOrderAmountPromotionRule - -`func (o *FixedPricePromotionCreateDataRelationships) GetOrderAmountPromotionRule() ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule` - -GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field if non-nil, zero value otherwise. - -### GetOrderAmountPromotionRuleOk - -`func (o *FixedPricePromotionCreateDataRelationships) GetOrderAmountPromotionRuleOk() (*ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule, bool)` - -GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderAmountPromotionRule - -`func (o *FixedPricePromotionCreateDataRelationships) SetOrderAmountPromotionRule(v ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule)` - -SetOrderAmountPromotionRule sets OrderAmountPromotionRule field to given value. - -### HasOrderAmountPromotionRule - -`func (o *FixedPricePromotionCreateDataRelationships) HasOrderAmountPromotionRule() bool` - -HasOrderAmountPromotionRule returns a boolean if a field has been set. - -### GetSkuListPromotionRule - -`func (o *FixedPricePromotionCreateDataRelationships) GetSkuListPromotionRule() ExternalPromotionCreateDataRelationshipsSkuListPromotionRule` - -GetSkuListPromotionRule returns the SkuListPromotionRule field if non-nil, zero value otherwise. - -### GetSkuListPromotionRuleOk - -`func (o *FixedPricePromotionCreateDataRelationships) GetSkuListPromotionRuleOk() (*ExternalPromotionCreateDataRelationshipsSkuListPromotionRule, bool)` - -GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSkuListPromotionRule - -`func (o *FixedPricePromotionCreateDataRelationships) SetSkuListPromotionRule(v ExternalPromotionCreateDataRelationshipsSkuListPromotionRule)` - -SetSkuListPromotionRule sets SkuListPromotionRule field to given value. - -### HasSkuListPromotionRule - -`func (o *FixedPricePromotionCreateDataRelationships) HasSkuListPromotionRule() bool` - -HasSkuListPromotionRule returns a boolean if a field has been set. - -### GetCouponCodesPromotionRule - -`func (o *FixedPricePromotionCreateDataRelationships) GetCouponCodesPromotionRule() CouponCreateDataRelationshipsPromotionRule` - -GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field if non-nil, zero value otherwise. - -### GetCouponCodesPromotionRuleOk - -`func (o *FixedPricePromotionCreateDataRelationships) GetCouponCodesPromotionRuleOk() (*CouponCreateDataRelationshipsPromotionRule, bool)` - -GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCouponCodesPromotionRule - -`func (o *FixedPricePromotionCreateDataRelationships) SetCouponCodesPromotionRule(v CouponCreateDataRelationshipsPromotionRule)` - -SetCouponCodesPromotionRule sets CouponCodesPromotionRule field to given value. - -### HasCouponCodesPromotionRule - -`func (o *FixedPricePromotionCreateDataRelationships) HasCouponCodesPromotionRule() bool` - -HasCouponCodesPromotionRule returns a boolean if a field has been set. - -### GetSkuList - -`func (o *FixedPricePromotionCreateDataRelationships) GetSkuList() BundleCreateDataRelationshipsSkuList` - -GetSkuList returns the SkuList field if non-nil, zero value otherwise. - -### GetSkuListOk - -`func (o *FixedPricePromotionCreateDataRelationships) GetSkuListOk() (*BundleCreateDataRelationshipsSkuList, bool)` - -GetSkuListOk returns a tuple with the SkuList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSkuList - -`func (o *FixedPricePromotionCreateDataRelationships) SetSkuList(v BundleCreateDataRelationshipsSkuList)` - -SetSkuList sets SkuList field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/FixedPricePromotionData.md b/api/docs/FixedPricePromotionData.md index 89ec6c7a..d232e531 100644 --- a/api/docs/FixedPricePromotionData.md +++ b/api/docs/FixedPricePromotionData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes**](GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**FixedPricePromotionDataRelationships**](FixedPricePromotionDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**BuyXPayYPromotionDataRelationships**](BuyXPayYPromotionDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *FixedPricePromotionData) GetRelationships() FixedPricePromotionDataRelationships` +`func (o *FixedPricePromotionData) GetRelationships() BuyXPayYPromotionDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *FixedPricePromotionData) GetRelationshipsOk() (*FixedPricePromotionDataRelationships, bool)` +`func (o *FixedPricePromotionData) GetRelationshipsOk() (*BuyXPayYPromotionDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *FixedPricePromotionData) SetRelationships(v FixedPricePromotionDataRelationships)` +`func (o *FixedPricePromotionData) SetRelationships(v BuyXPayYPromotionDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/FixedPricePromotionDataRelationships.md b/api/docs/FixedPricePromotionDataRelationships.md deleted file mode 100644 index cfd49184..00000000 --- a/api/docs/FixedPricePromotionDataRelationships.md +++ /dev/null @@ -1,264 +0,0 @@ -# FixedPricePromotionDataRelationships - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Market** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] -**PromotionRules** | Pointer to [**ExternalPromotionDataRelationshipsPromotionRules**](ExternalPromotionDataRelationshipsPromotionRules.md) | | [optional] -**OrderAmountPromotionRule** | Pointer to [**ExternalPromotionDataRelationshipsOrderAmountPromotionRule**](ExternalPromotionDataRelationshipsOrderAmountPromotionRule.md) | | [optional] -**SkuListPromotionRule** | Pointer to [**ExternalPromotionDataRelationshipsSkuListPromotionRule**](ExternalPromotionDataRelationshipsSkuListPromotionRule.md) | | [optional] -**CouponCodesPromotionRule** | Pointer to [**CouponDataRelationshipsPromotionRule**](CouponDataRelationshipsPromotionRule.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] -**SkuList** | Pointer to [**BundleDataRelationshipsSkuList**](BundleDataRelationshipsSkuList.md) | | [optional] -**Skus** | Pointer to [**BundleDataRelationshipsSkus**](BundleDataRelationshipsSkus.md) | | [optional] - -## Methods - -### NewFixedPricePromotionDataRelationships - -`func NewFixedPricePromotionDataRelationships() *FixedPricePromotionDataRelationships` - -NewFixedPricePromotionDataRelationships instantiates a new FixedPricePromotionDataRelationships object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewFixedPricePromotionDataRelationshipsWithDefaults - -`func NewFixedPricePromotionDataRelationshipsWithDefaults() *FixedPricePromotionDataRelationships` - -NewFixedPricePromotionDataRelationshipsWithDefaults instantiates a new FixedPricePromotionDataRelationships object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMarket - -`func (o *FixedPricePromotionDataRelationships) GetMarket() AvalaraAccountDataRelationshipsMarkets` - -GetMarket returns the Market field if non-nil, zero value otherwise. - -### GetMarketOk - -`func (o *FixedPricePromotionDataRelationships) GetMarketOk() (*AvalaraAccountDataRelationshipsMarkets, bool)` - -GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMarket - -`func (o *FixedPricePromotionDataRelationships) SetMarket(v AvalaraAccountDataRelationshipsMarkets)` - -SetMarket sets Market field to given value. - -### HasMarket - -`func (o *FixedPricePromotionDataRelationships) HasMarket() bool` - -HasMarket returns a boolean if a field has been set. - -### GetPromotionRules - -`func (o *FixedPricePromotionDataRelationships) GetPromotionRules() ExternalPromotionDataRelationshipsPromotionRules` - -GetPromotionRules returns the PromotionRules field if non-nil, zero value otherwise. - -### GetPromotionRulesOk - -`func (o *FixedPricePromotionDataRelationships) GetPromotionRulesOk() (*ExternalPromotionDataRelationshipsPromotionRules, bool)` - -GetPromotionRulesOk returns a tuple with the PromotionRules field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPromotionRules - -`func (o *FixedPricePromotionDataRelationships) SetPromotionRules(v ExternalPromotionDataRelationshipsPromotionRules)` - -SetPromotionRules sets PromotionRules field to given value. - -### HasPromotionRules - -`func (o *FixedPricePromotionDataRelationships) HasPromotionRules() bool` - -HasPromotionRules returns a boolean if a field has been set. - -### GetOrderAmountPromotionRule - -`func (o *FixedPricePromotionDataRelationships) GetOrderAmountPromotionRule() ExternalPromotionDataRelationshipsOrderAmountPromotionRule` - -GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field if non-nil, zero value otherwise. - -### GetOrderAmountPromotionRuleOk - -`func (o *FixedPricePromotionDataRelationships) GetOrderAmountPromotionRuleOk() (*ExternalPromotionDataRelationshipsOrderAmountPromotionRule, bool)` - -GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderAmountPromotionRule - -`func (o *FixedPricePromotionDataRelationships) SetOrderAmountPromotionRule(v ExternalPromotionDataRelationshipsOrderAmountPromotionRule)` - -SetOrderAmountPromotionRule sets OrderAmountPromotionRule field to given value. - -### HasOrderAmountPromotionRule - -`func (o *FixedPricePromotionDataRelationships) HasOrderAmountPromotionRule() bool` - -HasOrderAmountPromotionRule returns a boolean if a field has been set. - -### GetSkuListPromotionRule - -`func (o *FixedPricePromotionDataRelationships) GetSkuListPromotionRule() ExternalPromotionDataRelationshipsSkuListPromotionRule` - -GetSkuListPromotionRule returns the SkuListPromotionRule field if non-nil, zero value otherwise. - -### GetSkuListPromotionRuleOk - -`func (o *FixedPricePromotionDataRelationships) GetSkuListPromotionRuleOk() (*ExternalPromotionDataRelationshipsSkuListPromotionRule, bool)` - -GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSkuListPromotionRule - -`func (o *FixedPricePromotionDataRelationships) SetSkuListPromotionRule(v ExternalPromotionDataRelationshipsSkuListPromotionRule)` - -SetSkuListPromotionRule sets SkuListPromotionRule field to given value. - -### HasSkuListPromotionRule - -`func (o *FixedPricePromotionDataRelationships) HasSkuListPromotionRule() bool` - -HasSkuListPromotionRule returns a boolean if a field has been set. - -### GetCouponCodesPromotionRule - -`func (o *FixedPricePromotionDataRelationships) GetCouponCodesPromotionRule() CouponDataRelationshipsPromotionRule` - -GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field if non-nil, zero value otherwise. - -### GetCouponCodesPromotionRuleOk - -`func (o *FixedPricePromotionDataRelationships) GetCouponCodesPromotionRuleOk() (*CouponDataRelationshipsPromotionRule, bool)` - -GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCouponCodesPromotionRule - -`func (o *FixedPricePromotionDataRelationships) SetCouponCodesPromotionRule(v CouponDataRelationshipsPromotionRule)` - -SetCouponCodesPromotionRule sets CouponCodesPromotionRule field to given value. - -### HasCouponCodesPromotionRule - -`func (o *FixedPricePromotionDataRelationships) HasCouponCodesPromotionRule() bool` - -HasCouponCodesPromotionRule returns a boolean if a field has been set. - -### GetAttachments - -`func (o *FixedPricePromotionDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` - -GetAttachments returns the Attachments field if non-nil, zero value otherwise. - -### GetAttachmentsOk - -`func (o *FixedPricePromotionDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` - -GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttachments - -`func (o *FixedPricePromotionDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` - -SetAttachments sets Attachments field to given value. - -### HasAttachments - -`func (o *FixedPricePromotionDataRelationships) HasAttachments() bool` - -HasAttachments returns a boolean if a field has been set. - -### GetEvents - -`func (o *FixedPricePromotionDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` - -GetEvents returns the Events field if non-nil, zero value otherwise. - -### GetEventsOk - -`func (o *FixedPricePromotionDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` - -GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEvents - -`func (o *FixedPricePromotionDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` - -SetEvents sets Events field to given value. - -### HasEvents - -`func (o *FixedPricePromotionDataRelationships) HasEvents() bool` - -HasEvents returns a boolean if a field has been set. - -### GetSkuList - -`func (o *FixedPricePromotionDataRelationships) GetSkuList() BundleDataRelationshipsSkuList` - -GetSkuList returns the SkuList field if non-nil, zero value otherwise. - -### GetSkuListOk - -`func (o *FixedPricePromotionDataRelationships) GetSkuListOk() (*BundleDataRelationshipsSkuList, bool)` - -GetSkuListOk returns a tuple with the SkuList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSkuList - -`func (o *FixedPricePromotionDataRelationships) SetSkuList(v BundleDataRelationshipsSkuList)` - -SetSkuList sets SkuList field to given value. - -### HasSkuList - -`func (o *FixedPricePromotionDataRelationships) HasSkuList() bool` - -HasSkuList returns a boolean if a field has been set. - -### GetSkus - -`func (o *FixedPricePromotionDataRelationships) GetSkus() BundleDataRelationshipsSkus` - -GetSkus returns the Skus field if non-nil, zero value otherwise. - -### GetSkusOk - -`func (o *FixedPricePromotionDataRelationships) GetSkusOk() (*BundleDataRelationshipsSkus, bool)` - -GetSkusOk returns a tuple with the Skus field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSkus - -`func (o *FixedPricePromotionDataRelationships) SetSkus(v BundleDataRelationshipsSkus)` - -SetSkus sets Skus field to given value. - -### HasSkus - -`func (o *FixedPricePromotionDataRelationships) HasSkus() bool` - -HasSkus returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/FixedPricePromotionUpdateData.md b/api/docs/FixedPricePromotionUpdateData.md index cb7a3e0c..f5dde5ad 100644 --- a/api/docs/FixedPricePromotionUpdateData.md +++ b/api/docs/FixedPricePromotionUpdateData.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Type** | **interface{}** | The resource's type | **Id** | **interface{}** | The resource's id | **Attributes** | [**PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes**](PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**FixedPricePromotionUpdateDataRelationships**](FixedPricePromotionUpdateDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**BuyXPayYPromotionUpdateDataRelationships**](BuyXPayYPromotionUpdateDataRelationships.md) | | [optional] ## Methods @@ -110,20 +110,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *FixedPricePromotionUpdateData) GetRelationships() FixedPricePromotionUpdateDataRelationships` +`func (o *FixedPricePromotionUpdateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *FixedPricePromotionUpdateData) GetRelationshipsOk() (*FixedPricePromotionUpdateDataRelationships, bool)` +`func (o *FixedPricePromotionUpdateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *FixedPricePromotionUpdateData) SetRelationships(v FixedPricePromotionUpdateDataRelationships)` +`func (o *FixedPricePromotionUpdateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/FixedPricePromotionUpdateDataRelationships.md b/api/docs/FixedPricePromotionUpdateDataRelationships.md deleted file mode 100644 index 0025dc6e..00000000 --- a/api/docs/FixedPricePromotionUpdateDataRelationships.md +++ /dev/null @@ -1,186 +0,0 @@ -# FixedPricePromotionUpdateDataRelationships - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Market** | Pointer to [**BillingInfoValidationRuleCreateDataRelationshipsMarket**](BillingInfoValidationRuleCreateDataRelationshipsMarket.md) | | [optional] -**PromotionRules** | Pointer to [**ExternalPromotionCreateDataRelationshipsPromotionRules**](ExternalPromotionCreateDataRelationshipsPromotionRules.md) | | [optional] -**OrderAmountPromotionRule** | Pointer to [**ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule**](ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule.md) | | [optional] -**SkuListPromotionRule** | Pointer to [**ExternalPromotionCreateDataRelationshipsSkuListPromotionRule**](ExternalPromotionCreateDataRelationshipsSkuListPromotionRule.md) | | [optional] -**CouponCodesPromotionRule** | Pointer to [**CouponCreateDataRelationshipsPromotionRule**](CouponCreateDataRelationshipsPromotionRule.md) | | [optional] -**SkuList** | Pointer to [**BundleCreateDataRelationshipsSkuList**](BundleCreateDataRelationshipsSkuList.md) | | [optional] - -## Methods - -### NewFixedPricePromotionUpdateDataRelationships - -`func NewFixedPricePromotionUpdateDataRelationships() *FixedPricePromotionUpdateDataRelationships` - -NewFixedPricePromotionUpdateDataRelationships instantiates a new FixedPricePromotionUpdateDataRelationships object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewFixedPricePromotionUpdateDataRelationshipsWithDefaults - -`func NewFixedPricePromotionUpdateDataRelationshipsWithDefaults() *FixedPricePromotionUpdateDataRelationships` - -NewFixedPricePromotionUpdateDataRelationshipsWithDefaults instantiates a new FixedPricePromotionUpdateDataRelationships object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMarket - -`func (o *FixedPricePromotionUpdateDataRelationships) GetMarket() BillingInfoValidationRuleCreateDataRelationshipsMarket` - -GetMarket returns the Market field if non-nil, zero value otherwise. - -### GetMarketOk - -`func (o *FixedPricePromotionUpdateDataRelationships) GetMarketOk() (*BillingInfoValidationRuleCreateDataRelationshipsMarket, bool)` - -GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMarket - -`func (o *FixedPricePromotionUpdateDataRelationships) SetMarket(v BillingInfoValidationRuleCreateDataRelationshipsMarket)` - -SetMarket sets Market field to given value. - -### HasMarket - -`func (o *FixedPricePromotionUpdateDataRelationships) HasMarket() bool` - -HasMarket returns a boolean if a field has been set. - -### GetPromotionRules - -`func (o *FixedPricePromotionUpdateDataRelationships) GetPromotionRules() ExternalPromotionCreateDataRelationshipsPromotionRules` - -GetPromotionRules returns the PromotionRules field if non-nil, zero value otherwise. - -### GetPromotionRulesOk - -`func (o *FixedPricePromotionUpdateDataRelationships) GetPromotionRulesOk() (*ExternalPromotionCreateDataRelationshipsPromotionRules, bool)` - -GetPromotionRulesOk returns a tuple with the PromotionRules field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPromotionRules - -`func (o *FixedPricePromotionUpdateDataRelationships) SetPromotionRules(v ExternalPromotionCreateDataRelationshipsPromotionRules)` - -SetPromotionRules sets PromotionRules field to given value. - -### HasPromotionRules - -`func (o *FixedPricePromotionUpdateDataRelationships) HasPromotionRules() bool` - -HasPromotionRules returns a boolean if a field has been set. - -### GetOrderAmountPromotionRule - -`func (o *FixedPricePromotionUpdateDataRelationships) GetOrderAmountPromotionRule() ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule` - -GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field if non-nil, zero value otherwise. - -### GetOrderAmountPromotionRuleOk - -`func (o *FixedPricePromotionUpdateDataRelationships) GetOrderAmountPromotionRuleOk() (*ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule, bool)` - -GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderAmountPromotionRule - -`func (o *FixedPricePromotionUpdateDataRelationships) SetOrderAmountPromotionRule(v ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule)` - -SetOrderAmountPromotionRule sets OrderAmountPromotionRule field to given value. - -### HasOrderAmountPromotionRule - -`func (o *FixedPricePromotionUpdateDataRelationships) HasOrderAmountPromotionRule() bool` - -HasOrderAmountPromotionRule returns a boolean if a field has been set. - -### GetSkuListPromotionRule - -`func (o *FixedPricePromotionUpdateDataRelationships) GetSkuListPromotionRule() ExternalPromotionCreateDataRelationshipsSkuListPromotionRule` - -GetSkuListPromotionRule returns the SkuListPromotionRule field if non-nil, zero value otherwise. - -### GetSkuListPromotionRuleOk - -`func (o *FixedPricePromotionUpdateDataRelationships) GetSkuListPromotionRuleOk() (*ExternalPromotionCreateDataRelationshipsSkuListPromotionRule, bool)` - -GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSkuListPromotionRule - -`func (o *FixedPricePromotionUpdateDataRelationships) SetSkuListPromotionRule(v ExternalPromotionCreateDataRelationshipsSkuListPromotionRule)` - -SetSkuListPromotionRule sets SkuListPromotionRule field to given value. - -### HasSkuListPromotionRule - -`func (o *FixedPricePromotionUpdateDataRelationships) HasSkuListPromotionRule() bool` - -HasSkuListPromotionRule returns a boolean if a field has been set. - -### GetCouponCodesPromotionRule - -`func (o *FixedPricePromotionUpdateDataRelationships) GetCouponCodesPromotionRule() CouponCreateDataRelationshipsPromotionRule` - -GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field if non-nil, zero value otherwise. - -### GetCouponCodesPromotionRuleOk - -`func (o *FixedPricePromotionUpdateDataRelationships) GetCouponCodesPromotionRuleOk() (*CouponCreateDataRelationshipsPromotionRule, bool)` - -GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCouponCodesPromotionRule - -`func (o *FixedPricePromotionUpdateDataRelationships) SetCouponCodesPromotionRule(v CouponCreateDataRelationshipsPromotionRule)` - -SetCouponCodesPromotionRule sets CouponCodesPromotionRule field to given value. - -### HasCouponCodesPromotionRule - -`func (o *FixedPricePromotionUpdateDataRelationships) HasCouponCodesPromotionRule() bool` - -HasCouponCodesPromotionRule returns a boolean if a field has been set. - -### GetSkuList - -`func (o *FixedPricePromotionUpdateDataRelationships) GetSkuList() BundleCreateDataRelationshipsSkuList` - -GetSkuList returns the SkuList field if non-nil, zero value otherwise. - -### GetSkuListOk - -`func (o *FixedPricePromotionUpdateDataRelationships) GetSkuListOk() (*BundleCreateDataRelationshipsSkuList, bool)` - -GetSkuListOk returns a tuple with the SkuList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSkuList - -`func (o *FixedPricePromotionUpdateDataRelationships) SetSkuList(v BundleCreateDataRelationshipsSkuList)` - -SetSkuList sets SkuList field to given value. - -### HasSkuList - -`func (o *FixedPricePromotionUpdateDataRelationships) HasSkuList() bool` - -HasSkuList returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/FixedPricePromotionsApi.md b/api/docs/FixedPricePromotionsApi.md index 66b84363..351e33e0 100644 --- a/api/docs/FixedPricePromotionsApi.md +++ b/api/docs/FixedPricePromotionsApi.md @@ -304,7 +304,7 @@ import ( ) func main() { - fixedPricePromotionCreate := *openapiclient.NewFixedPricePromotionCreate(*openapiclient.NewFixedPricePromotionCreateData(interface{}(123), *openapiclient.NewPOSTFixedPricePromotions201ResponseDataAttributes(interface{}(Personal promotion), interface{}(2018-01-01T12:00:00.000Z), interface{}(2018-01-02T12:00:00.000Z), interface{}(5), interface{}(1000)))) // FixedPricePromotionCreate | + fixedPricePromotionCreate := *openapiclient.NewFixedPricePromotionCreate(*openapiclient.NewFixedPricePromotionCreateData(interface{}(123), *openapiclient.NewPOSTFixedPricePromotions201ResponseDataAttributes(interface{}(Personal promotion), interface{}(2018-01-01T12:00:00.000Z), interface{}(2018-01-02T12:00:00.000Z), interface{}(1000)))) // FixedPricePromotionCreate | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/api/docs/FlexPromotion.md b/api/docs/FlexPromotion.md new file mode 100644 index 00000000..06bc41c0 --- /dev/null +++ b/api/docs/FlexPromotion.md @@ -0,0 +1,56 @@ +# FlexPromotion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**FlexPromotionData**](FlexPromotionData.md) | | [optional] + +## Methods + +### NewFlexPromotion + +`func NewFlexPromotion() *FlexPromotion` + +NewFlexPromotion instantiates a new FlexPromotion object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewFlexPromotionWithDefaults + +`func NewFlexPromotionWithDefaults() *FlexPromotion` + +NewFlexPromotionWithDefaults instantiates a new FlexPromotion object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *FlexPromotion) GetData() FlexPromotionData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *FlexPromotion) GetDataOk() (*FlexPromotionData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *FlexPromotion) SetData(v FlexPromotionData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *FlexPromotion) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/FlexPromotionCreate.md b/api/docs/FlexPromotionCreate.md new file mode 100644 index 00000000..d0ecc711 --- /dev/null +++ b/api/docs/FlexPromotionCreate.md @@ -0,0 +1,51 @@ +# FlexPromotionCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**FlexPromotionCreateData**](FlexPromotionCreateData.md) | | + +## Methods + +### NewFlexPromotionCreate + +`func NewFlexPromotionCreate(data FlexPromotionCreateData, ) *FlexPromotionCreate` + +NewFlexPromotionCreate instantiates a new FlexPromotionCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewFlexPromotionCreateWithDefaults + +`func NewFlexPromotionCreateWithDefaults() *FlexPromotionCreate` + +NewFlexPromotionCreateWithDefaults instantiates a new FlexPromotionCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *FlexPromotionCreate) GetData() FlexPromotionCreateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *FlexPromotionCreate) GetDataOk() (*FlexPromotionCreateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *FlexPromotionCreate) SetData(v FlexPromotionCreateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/FlexPromotionCreateData.md b/api/docs/FlexPromotionCreateData.md new file mode 100644 index 00000000..adc12383 --- /dev/null +++ b/api/docs/FlexPromotionCreateData.md @@ -0,0 +1,108 @@ +# FlexPromotionCreateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**POSTFlexPromotions201ResponseDataAttributes**](POSTFlexPromotions201ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**FlexPromotionCreateDataRelationships**](FlexPromotionCreateDataRelationships.md) | | [optional] + +## Methods + +### NewFlexPromotionCreateData + +`func NewFlexPromotionCreateData(type_ interface{}, attributes POSTFlexPromotions201ResponseDataAttributes, ) *FlexPromotionCreateData` + +NewFlexPromotionCreateData instantiates a new FlexPromotionCreateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewFlexPromotionCreateDataWithDefaults + +`func NewFlexPromotionCreateDataWithDefaults() *FlexPromotionCreateData` + +NewFlexPromotionCreateDataWithDefaults instantiates a new FlexPromotionCreateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *FlexPromotionCreateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *FlexPromotionCreateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *FlexPromotionCreateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *FlexPromotionCreateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *FlexPromotionCreateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *FlexPromotionCreateData) GetAttributes() POSTFlexPromotions201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *FlexPromotionCreateData) GetAttributesOk() (*POSTFlexPromotions201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *FlexPromotionCreateData) SetAttributes(v POSTFlexPromotions201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *FlexPromotionCreateData) GetRelationships() FlexPromotionCreateDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *FlexPromotionCreateData) GetRelationshipsOk() (*FlexPromotionCreateDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *FlexPromotionCreateData) SetRelationships(v FlexPromotionCreateDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *FlexPromotionCreateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/FlexPromotionCreateDataRelationships.md b/api/docs/FlexPromotionCreateDataRelationships.md new file mode 100644 index 00000000..6ca2eb0a --- /dev/null +++ b/api/docs/FlexPromotionCreateDataRelationships.md @@ -0,0 +1,82 @@ +# FlexPromotionCreateDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CouponCodesPromotionRule** | Pointer to [**BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule**](BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule.md) | | [optional] +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] + +## Methods + +### NewFlexPromotionCreateDataRelationships + +`func NewFlexPromotionCreateDataRelationships() *FlexPromotionCreateDataRelationships` + +NewFlexPromotionCreateDataRelationships instantiates a new FlexPromotionCreateDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewFlexPromotionCreateDataRelationshipsWithDefaults + +`func NewFlexPromotionCreateDataRelationshipsWithDefaults() *FlexPromotionCreateDataRelationships` + +NewFlexPromotionCreateDataRelationshipsWithDefaults instantiates a new FlexPromotionCreateDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCouponCodesPromotionRule + +`func (o *FlexPromotionCreateDataRelationships) GetCouponCodesPromotionRule() BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule` + +GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field if non-nil, zero value otherwise. + +### GetCouponCodesPromotionRuleOk + +`func (o *FlexPromotionCreateDataRelationships) GetCouponCodesPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule, bool)` + +GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCouponCodesPromotionRule + +`func (o *FlexPromotionCreateDataRelationships) SetCouponCodesPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule)` + +SetCouponCodesPromotionRule sets CouponCodesPromotionRule field to given value. + +### HasCouponCodesPromotionRule + +`func (o *FlexPromotionCreateDataRelationships) HasCouponCodesPromotionRule() bool` + +HasCouponCodesPromotionRule returns a boolean if a field has been set. + +### GetTags + +`func (o *FlexPromotionCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *FlexPromotionCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *FlexPromotionCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *FlexPromotionCreateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/FlexPromotionData.md b/api/docs/FlexPromotionData.md new file mode 100644 index 00000000..f37fb178 --- /dev/null +++ b/api/docs/FlexPromotionData.md @@ -0,0 +1,108 @@ +# FlexPromotionData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**GETFlexPromotionsFlexPromotionId200ResponseDataAttributes**](GETFlexPromotionsFlexPromotionId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**FlexPromotionDataRelationships**](FlexPromotionDataRelationships.md) | | [optional] + +## Methods + +### NewFlexPromotionData + +`func NewFlexPromotionData(type_ interface{}, attributes GETFlexPromotionsFlexPromotionId200ResponseDataAttributes, ) *FlexPromotionData` + +NewFlexPromotionData instantiates a new FlexPromotionData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewFlexPromotionDataWithDefaults + +`func NewFlexPromotionDataWithDefaults() *FlexPromotionData` + +NewFlexPromotionDataWithDefaults instantiates a new FlexPromotionData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *FlexPromotionData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *FlexPromotionData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *FlexPromotionData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *FlexPromotionData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *FlexPromotionData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *FlexPromotionData) GetAttributes() GETFlexPromotionsFlexPromotionId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *FlexPromotionData) GetAttributesOk() (*GETFlexPromotionsFlexPromotionId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *FlexPromotionData) SetAttributes(v GETFlexPromotionsFlexPromotionId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *FlexPromotionData) GetRelationships() FlexPromotionDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *FlexPromotionData) GetRelationshipsOk() (*FlexPromotionDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *FlexPromotionData) SetRelationships(v FlexPromotionDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *FlexPromotionData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/FlexPromotionDataRelationships.md b/api/docs/FlexPromotionDataRelationships.md new file mode 100644 index 00000000..0777b3d1 --- /dev/null +++ b/api/docs/FlexPromotionDataRelationships.md @@ -0,0 +1,186 @@ +# FlexPromotionDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CouponCodesPromotionRule** | Pointer to [**BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule**](BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule.md) | | [optional] +**Coupons** | Pointer to [**BuyXPayYPromotionDataRelationshipsCoupons**](BuyXPayYPromotionDataRelationshipsCoupons.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**AddressDataRelationshipsTags**](AddressDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewFlexPromotionDataRelationships + +`func NewFlexPromotionDataRelationships() *FlexPromotionDataRelationships` + +NewFlexPromotionDataRelationships instantiates a new FlexPromotionDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewFlexPromotionDataRelationshipsWithDefaults + +`func NewFlexPromotionDataRelationshipsWithDefaults() *FlexPromotionDataRelationships` + +NewFlexPromotionDataRelationshipsWithDefaults instantiates a new FlexPromotionDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCouponCodesPromotionRule + +`func (o *FlexPromotionDataRelationships) GetCouponCodesPromotionRule() BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule` + +GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field if non-nil, zero value otherwise. + +### GetCouponCodesPromotionRuleOk + +`func (o *FlexPromotionDataRelationships) GetCouponCodesPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule, bool)` + +GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCouponCodesPromotionRule + +`func (o *FlexPromotionDataRelationships) SetCouponCodesPromotionRule(v BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule)` + +SetCouponCodesPromotionRule sets CouponCodesPromotionRule field to given value. + +### HasCouponCodesPromotionRule + +`func (o *FlexPromotionDataRelationships) HasCouponCodesPromotionRule() bool` + +HasCouponCodesPromotionRule returns a boolean if a field has been set. + +### GetCoupons + +`func (o *FlexPromotionDataRelationships) GetCoupons() BuyXPayYPromotionDataRelationshipsCoupons` + +GetCoupons returns the Coupons field if non-nil, zero value otherwise. + +### GetCouponsOk + +`func (o *FlexPromotionDataRelationships) GetCouponsOk() (*BuyXPayYPromotionDataRelationshipsCoupons, bool)` + +GetCouponsOk returns a tuple with the Coupons field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCoupons + +`func (o *FlexPromotionDataRelationships) SetCoupons(v BuyXPayYPromotionDataRelationshipsCoupons)` + +SetCoupons sets Coupons field to given value. + +### HasCoupons + +`func (o *FlexPromotionDataRelationships) HasCoupons() bool` + +HasCoupons returns a boolean if a field has been set. + +### GetAttachments + +`func (o *FlexPromotionDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *FlexPromotionDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *FlexPromotionDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *FlexPromotionDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + +### GetEvents + +`func (o *FlexPromotionDataRelationships) GetEvents() AddressDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *FlexPromotionDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *FlexPromotionDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *FlexPromotionDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *FlexPromotionDataRelationships) GetTags() AddressDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *FlexPromotionDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *FlexPromotionDataRelationships) SetTags(v AddressDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *FlexPromotionDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *FlexPromotionDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *FlexPromotionDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *FlexPromotionDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *FlexPromotionDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/FlexPromotionUpdate.md b/api/docs/FlexPromotionUpdate.md new file mode 100644 index 00000000..961bc040 --- /dev/null +++ b/api/docs/FlexPromotionUpdate.md @@ -0,0 +1,51 @@ +# FlexPromotionUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**FlexPromotionUpdateData**](FlexPromotionUpdateData.md) | | + +## Methods + +### NewFlexPromotionUpdate + +`func NewFlexPromotionUpdate(data FlexPromotionUpdateData, ) *FlexPromotionUpdate` + +NewFlexPromotionUpdate instantiates a new FlexPromotionUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewFlexPromotionUpdateWithDefaults + +`func NewFlexPromotionUpdateWithDefaults() *FlexPromotionUpdate` + +NewFlexPromotionUpdateWithDefaults instantiates a new FlexPromotionUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *FlexPromotionUpdate) GetData() FlexPromotionUpdateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *FlexPromotionUpdate) GetDataOk() (*FlexPromotionUpdateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *FlexPromotionUpdate) SetData(v FlexPromotionUpdateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/FlexPromotionUpdateData.md b/api/docs/FlexPromotionUpdateData.md new file mode 100644 index 00000000..392ce989 --- /dev/null +++ b/api/docs/FlexPromotionUpdateData.md @@ -0,0 +1,139 @@ +# FlexPromotionUpdateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Id** | **interface{}** | The resource's id | +**Attributes** | [**PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes**](PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**FlexPromotionCreateDataRelationships**](FlexPromotionCreateDataRelationships.md) | | [optional] + +## Methods + +### NewFlexPromotionUpdateData + +`func NewFlexPromotionUpdateData(type_ interface{}, id interface{}, attributes PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes, ) *FlexPromotionUpdateData` + +NewFlexPromotionUpdateData instantiates a new FlexPromotionUpdateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewFlexPromotionUpdateDataWithDefaults + +`func NewFlexPromotionUpdateDataWithDefaults() *FlexPromotionUpdateData` + +NewFlexPromotionUpdateDataWithDefaults instantiates a new FlexPromotionUpdateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *FlexPromotionUpdateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *FlexPromotionUpdateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *FlexPromotionUpdateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *FlexPromotionUpdateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *FlexPromotionUpdateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *FlexPromotionUpdateData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *FlexPromotionUpdateData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *FlexPromotionUpdateData) SetId(v interface{})` + +SetId sets Id field to given value. + + +### SetIdNil + +`func (o *FlexPromotionUpdateData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *FlexPromotionUpdateData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetAttributes + +`func (o *FlexPromotionUpdateData) GetAttributes() PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *FlexPromotionUpdateData) GetAttributesOk() (*PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *FlexPromotionUpdateData) SetAttributes(v PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *FlexPromotionUpdateData) GetRelationships() FlexPromotionCreateDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *FlexPromotionUpdateData) GetRelationshipsOk() (*FlexPromotionCreateDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *FlexPromotionUpdateData) SetRelationships(v FlexPromotionCreateDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *FlexPromotionUpdateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/FlexPromotionsApi.md b/api/docs/FlexPromotionsApi.md new file mode 100644 index 00000000..475f299d --- /dev/null +++ b/api/docs/FlexPromotionsApi.md @@ -0,0 +1,350 @@ +# \FlexPromotionsApi + +All URIs are relative to *https://.commercelayer.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DELETEFlexPromotionsFlexPromotionId**](FlexPromotionsApi.md#DELETEFlexPromotionsFlexPromotionId) | **Delete** /flex_promotions/{flexPromotionId} | Delete a flex promotion +[**GETFlexPromotions**](FlexPromotionsApi.md#GETFlexPromotions) | **Get** /flex_promotions | List all flex promotions +[**GETFlexPromotionsFlexPromotionId**](FlexPromotionsApi.md#GETFlexPromotionsFlexPromotionId) | **Get** /flex_promotions/{flexPromotionId} | Retrieve a flex promotion +[**PATCHFlexPromotionsFlexPromotionId**](FlexPromotionsApi.md#PATCHFlexPromotionsFlexPromotionId) | **Patch** /flex_promotions/{flexPromotionId} | Update a flex promotion +[**POSTFlexPromotions**](FlexPromotionsApi.md#POSTFlexPromotions) | **Post** /flex_promotions | Create a flex promotion + + + +## DELETEFlexPromotionsFlexPromotionId + +> DELETEFlexPromotionsFlexPromotionId(ctx, flexPromotionId).Execute() + +Delete a flex promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + flexPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.FlexPromotionsApi.DELETEFlexPromotionsFlexPromotionId(context.Background(), flexPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `FlexPromotionsApi.DELETEFlexPromotionsFlexPromotionId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flexPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDELETEFlexPromotionsFlexPromotionIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFlexPromotions + +> GETFlexPromotions200Response GETFlexPromotions(ctx).Execute() + +List all flex promotions + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.FlexPromotionsApi.GETFlexPromotions(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `FlexPromotionsApi.GETFlexPromotions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETFlexPromotions`: GETFlexPromotions200Response + fmt.Fprintf(os.Stdout, "Response from `FlexPromotionsApi.GETFlexPromotions`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFlexPromotionsRequest struct via the builder pattern + + +### Return type + +[**GETFlexPromotions200Response**](GETFlexPromotions200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFlexPromotionsFlexPromotionId + +> GETFlexPromotionsFlexPromotionId200Response GETFlexPromotionsFlexPromotionId(ctx, flexPromotionId).Execute() + +Retrieve a flex promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + flexPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.FlexPromotionsApi.GETFlexPromotionsFlexPromotionId(context.Background(), flexPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `FlexPromotionsApi.GETFlexPromotionsFlexPromotionId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETFlexPromotionsFlexPromotionId`: GETFlexPromotionsFlexPromotionId200Response + fmt.Fprintf(os.Stdout, "Response from `FlexPromotionsApi.GETFlexPromotionsFlexPromotionId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flexPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFlexPromotionsFlexPromotionIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**GETFlexPromotionsFlexPromotionId200Response**](GETFlexPromotionsFlexPromotionId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PATCHFlexPromotionsFlexPromotionId + +> PATCHFlexPromotionsFlexPromotionId200Response PATCHFlexPromotionsFlexPromotionId(ctx, flexPromotionId).FlexPromotionUpdate(flexPromotionUpdate).Execute() + +Update a flex promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + flexPromotionUpdate := *openapiclient.NewFlexPromotionUpdate(*openapiclient.NewFlexPromotionUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes())) // FlexPromotionUpdate | + flexPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.FlexPromotionsApi.PATCHFlexPromotionsFlexPromotionId(context.Background(), flexPromotionId).FlexPromotionUpdate(flexPromotionUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `FlexPromotionsApi.PATCHFlexPromotionsFlexPromotionId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PATCHFlexPromotionsFlexPromotionId`: PATCHFlexPromotionsFlexPromotionId200Response + fmt.Fprintf(os.Stdout, "Response from `FlexPromotionsApi.PATCHFlexPromotionsFlexPromotionId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flexPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPATCHFlexPromotionsFlexPromotionIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **flexPromotionUpdate** | [**FlexPromotionUpdate**](FlexPromotionUpdate.md) | | + + +### Return type + +[**PATCHFlexPromotionsFlexPromotionId200Response**](PATCHFlexPromotionsFlexPromotionId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## POSTFlexPromotions + +> POSTFlexPromotions201Response POSTFlexPromotions(ctx).FlexPromotionCreate(flexPromotionCreate).Execute() + +Create a flex promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + flexPromotionCreate := *openapiclient.NewFlexPromotionCreate(*openapiclient.NewFlexPromotionCreateData(interface{}(123), *openapiclient.NewPOSTFlexPromotions201ResponseDataAttributes(interface{}(Personal promotion), interface{}(2018-01-01T12:00:00.000Z), interface{}(2018-01-02T12:00:00.000Z), interface{}({})))) // FlexPromotionCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.FlexPromotionsApi.POSTFlexPromotions(context.Background()).FlexPromotionCreate(flexPromotionCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `FlexPromotionsApi.POSTFlexPromotions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `POSTFlexPromotions`: POSTFlexPromotions201Response + fmt.Fprintf(os.Stdout, "Response from `FlexPromotionsApi.POSTFlexPromotions`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPOSTFlexPromotionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **flexPromotionCreate** | [**FlexPromotionCreate**](FlexPromotionCreate.md) | | + +### Return type + +[**POSTFlexPromotions201Response**](POSTFlexPromotions201Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/api/docs/FreeGiftPromotionCreateData.md b/api/docs/FreeGiftPromotionCreateData.md index 451b55a2..5bff5c88 100644 --- a/api/docs/FreeGiftPromotionCreateData.md +++ b/api/docs/FreeGiftPromotionCreateData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**POSTFreeGiftPromotions201ResponseDataAttributes**](POSTFreeGiftPromotions201ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**FixedPricePromotionCreateDataRelationships**](FixedPricePromotionCreateDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**BuyXPayYPromotionCreateDataRelationships**](BuyXPayYPromotionCreateDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *FreeGiftPromotionCreateData) GetRelationships() FixedPricePromotionCreateDataRelationships` +`func (o *FreeGiftPromotionCreateData) GetRelationships() BuyXPayYPromotionCreateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *FreeGiftPromotionCreateData) GetRelationshipsOk() (*FixedPricePromotionCreateDataRelationships, bool)` +`func (o *FreeGiftPromotionCreateData) GetRelationshipsOk() (*BuyXPayYPromotionCreateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *FreeGiftPromotionCreateData) SetRelationships(v FixedPricePromotionCreateDataRelationships)` +`func (o *FreeGiftPromotionCreateData) SetRelationships(v BuyXPayYPromotionCreateDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/FreeGiftPromotionData.md b/api/docs/FreeGiftPromotionData.md index 6c5ba90a..e12794c3 100644 --- a/api/docs/FreeGiftPromotionData.md +++ b/api/docs/FreeGiftPromotionData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes**](GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**FixedPricePromotionDataRelationships**](FixedPricePromotionDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**BuyXPayYPromotionDataRelationships**](BuyXPayYPromotionDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *FreeGiftPromotionData) GetRelationships() FixedPricePromotionDataRelationships` +`func (o *FreeGiftPromotionData) GetRelationships() BuyXPayYPromotionDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *FreeGiftPromotionData) GetRelationshipsOk() (*FixedPricePromotionDataRelationships, bool)` +`func (o *FreeGiftPromotionData) GetRelationshipsOk() (*BuyXPayYPromotionDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *FreeGiftPromotionData) SetRelationships(v FixedPricePromotionDataRelationships)` +`func (o *FreeGiftPromotionData) SetRelationships(v BuyXPayYPromotionDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/FreeGiftPromotionUpdateData.md b/api/docs/FreeGiftPromotionUpdateData.md index d9ffe0c6..41908239 100644 --- a/api/docs/FreeGiftPromotionUpdateData.md +++ b/api/docs/FreeGiftPromotionUpdateData.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Type** | **interface{}** | The resource's type | **Id** | **interface{}** | The resource's id | **Attributes** | [**PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes**](PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**FixedPricePromotionUpdateDataRelationships**](FixedPricePromotionUpdateDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**BuyXPayYPromotionUpdateDataRelationships**](BuyXPayYPromotionUpdateDataRelationships.md) | | [optional] ## Methods @@ -110,20 +110,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *FreeGiftPromotionUpdateData) GetRelationships() FixedPricePromotionUpdateDataRelationships` +`func (o *FreeGiftPromotionUpdateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *FreeGiftPromotionUpdateData) GetRelationshipsOk() (*FixedPricePromotionUpdateDataRelationships, bool)` +`func (o *FreeGiftPromotionUpdateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *FreeGiftPromotionUpdateData) SetRelationships(v FixedPricePromotionUpdateDataRelationships)` +`func (o *FreeGiftPromotionUpdateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/FreeGiftPromotionsApi.md b/api/docs/FreeGiftPromotionsApi.md index e6e74cb1..da6519c8 100644 --- a/api/docs/FreeGiftPromotionsApi.md +++ b/api/docs/FreeGiftPromotionsApi.md @@ -304,7 +304,7 @@ import ( ) func main() { - freeGiftPromotionCreate := *openapiclient.NewFreeGiftPromotionCreate(*openapiclient.NewFreeGiftPromotionCreateData(interface{}(123), *openapiclient.NewPOSTFreeGiftPromotions201ResponseDataAttributes(interface{}(Personal promotion), interface{}(2018-01-01T12:00:00.000Z), interface{}(2018-01-02T12:00:00.000Z), interface{}(5)))) // FreeGiftPromotionCreate | + freeGiftPromotionCreate := *openapiclient.NewFreeGiftPromotionCreate(*openapiclient.NewFreeGiftPromotionCreateData(interface{}(123), *openapiclient.NewPOSTFreeGiftPromotions201ResponseDataAttributes(interface{}(Personal promotion), interface{}(2018-01-01T12:00:00.000Z), interface{}(2018-01-02T12:00:00.000Z)))) // FreeGiftPromotionCreate | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/api/docs/FreeShippingPromotionCreateData.md b/api/docs/FreeShippingPromotionCreateData.md index 41657a90..1888eb66 100644 --- a/api/docs/FreeShippingPromotionCreateData.md +++ b/api/docs/FreeShippingPromotionCreateData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**POSTFreeShippingPromotions201ResponseDataAttributes**](POSTFreeShippingPromotions201ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**ExternalPromotionCreateDataRelationships**](ExternalPromotionCreateDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**BuyXPayYPromotionUpdateDataRelationships**](BuyXPayYPromotionUpdateDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *FreeShippingPromotionCreateData) GetRelationships() ExternalPromotionCreateDataRelationships` +`func (o *FreeShippingPromotionCreateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *FreeShippingPromotionCreateData) GetRelationshipsOk() (*ExternalPromotionCreateDataRelationships, bool)` +`func (o *FreeShippingPromotionCreateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *FreeShippingPromotionCreateData) SetRelationships(v ExternalPromotionCreateDataRelationships)` +`func (o *FreeShippingPromotionCreateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/FreeShippingPromotionData.md b/api/docs/FreeShippingPromotionData.md index 421575e8..26ab9b95 100644 --- a/api/docs/FreeShippingPromotionData.md +++ b/api/docs/FreeShippingPromotionData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes**](GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**ExternalPromotionDataRelationships**](ExternalPromotionDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**FreeShippingPromotionDataRelationships**](FreeShippingPromotionDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *FreeShippingPromotionData) GetRelationships() ExternalPromotionDataRelationships` +`func (o *FreeShippingPromotionData) GetRelationships() FreeShippingPromotionDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *FreeShippingPromotionData) GetRelationshipsOk() (*ExternalPromotionDataRelationships, bool)` +`func (o *FreeShippingPromotionData) GetRelationshipsOk() (*FreeShippingPromotionDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *FreeShippingPromotionData) SetRelationships(v ExternalPromotionDataRelationships)` +`func (o *FreeShippingPromotionData) SetRelationships(v FreeShippingPromotionDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/FreeShippingPromotionDataRelationships.md b/api/docs/FreeShippingPromotionDataRelationships.md new file mode 100644 index 00000000..04add83e --- /dev/null +++ b/api/docs/FreeShippingPromotionDataRelationships.md @@ -0,0 +1,342 @@ +# FreeShippingPromotionDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Market** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] +**PromotionRules** | Pointer to [**BuyXPayYPromotionDataRelationshipsPromotionRules**](BuyXPayYPromotionDataRelationshipsPromotionRules.md) | | [optional] +**OrderAmountPromotionRule** | Pointer to [**BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule**](BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule.md) | | [optional] +**SkuListPromotionRule** | Pointer to [**BuyXPayYPromotionDataRelationshipsSkuListPromotionRule**](BuyXPayYPromotionDataRelationshipsSkuListPromotionRule.md) | | [optional] +**CouponCodesPromotionRule** | Pointer to [**BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule**](BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule.md) | | [optional] +**CustomPromotionRule** | Pointer to [**BuyXPayYPromotionDataRelationshipsCustomPromotionRule**](BuyXPayYPromotionDataRelationshipsCustomPromotionRule.md) | | [optional] +**SkuList** | Pointer to [**BundleDataRelationshipsSkuList**](BundleDataRelationshipsSkuList.md) | | [optional] +**Coupons** | Pointer to [**BuyXPayYPromotionDataRelationshipsCoupons**](BuyXPayYPromotionDataRelationshipsCoupons.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**AddressDataRelationshipsTags**](AddressDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewFreeShippingPromotionDataRelationships + +`func NewFreeShippingPromotionDataRelationships() *FreeShippingPromotionDataRelationships` + +NewFreeShippingPromotionDataRelationships instantiates a new FreeShippingPromotionDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewFreeShippingPromotionDataRelationshipsWithDefaults + +`func NewFreeShippingPromotionDataRelationshipsWithDefaults() *FreeShippingPromotionDataRelationships` + +NewFreeShippingPromotionDataRelationshipsWithDefaults instantiates a new FreeShippingPromotionDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMarket + +`func (o *FreeShippingPromotionDataRelationships) GetMarket() AvalaraAccountDataRelationshipsMarkets` + +GetMarket returns the Market field if non-nil, zero value otherwise. + +### GetMarketOk + +`func (o *FreeShippingPromotionDataRelationships) GetMarketOk() (*AvalaraAccountDataRelationshipsMarkets, bool)` + +GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarket + +`func (o *FreeShippingPromotionDataRelationships) SetMarket(v AvalaraAccountDataRelationshipsMarkets)` + +SetMarket sets Market field to given value. + +### HasMarket + +`func (o *FreeShippingPromotionDataRelationships) HasMarket() bool` + +HasMarket returns a boolean if a field has been set. + +### GetPromotionRules + +`func (o *FreeShippingPromotionDataRelationships) GetPromotionRules() BuyXPayYPromotionDataRelationshipsPromotionRules` + +GetPromotionRules returns the PromotionRules field if non-nil, zero value otherwise. + +### GetPromotionRulesOk + +`func (o *FreeShippingPromotionDataRelationships) GetPromotionRulesOk() (*BuyXPayYPromotionDataRelationshipsPromotionRules, bool)` + +GetPromotionRulesOk returns a tuple with the PromotionRules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPromotionRules + +`func (o *FreeShippingPromotionDataRelationships) SetPromotionRules(v BuyXPayYPromotionDataRelationshipsPromotionRules)` + +SetPromotionRules sets PromotionRules field to given value. + +### HasPromotionRules + +`func (o *FreeShippingPromotionDataRelationships) HasPromotionRules() bool` + +HasPromotionRules returns a boolean if a field has been set. + +### GetOrderAmountPromotionRule + +`func (o *FreeShippingPromotionDataRelationships) GetOrderAmountPromotionRule() BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule` + +GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field if non-nil, zero value otherwise. + +### GetOrderAmountPromotionRuleOk + +`func (o *FreeShippingPromotionDataRelationships) GetOrderAmountPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule, bool)` + +GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderAmountPromotionRule + +`func (o *FreeShippingPromotionDataRelationships) SetOrderAmountPromotionRule(v BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule)` + +SetOrderAmountPromotionRule sets OrderAmountPromotionRule field to given value. + +### HasOrderAmountPromotionRule + +`func (o *FreeShippingPromotionDataRelationships) HasOrderAmountPromotionRule() bool` + +HasOrderAmountPromotionRule returns a boolean if a field has been set. + +### GetSkuListPromotionRule + +`func (o *FreeShippingPromotionDataRelationships) GetSkuListPromotionRule() BuyXPayYPromotionDataRelationshipsSkuListPromotionRule` + +GetSkuListPromotionRule returns the SkuListPromotionRule field if non-nil, zero value otherwise. + +### GetSkuListPromotionRuleOk + +`func (o *FreeShippingPromotionDataRelationships) GetSkuListPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsSkuListPromotionRule, bool)` + +GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuListPromotionRule + +`func (o *FreeShippingPromotionDataRelationships) SetSkuListPromotionRule(v BuyXPayYPromotionDataRelationshipsSkuListPromotionRule)` + +SetSkuListPromotionRule sets SkuListPromotionRule field to given value. + +### HasSkuListPromotionRule + +`func (o *FreeShippingPromotionDataRelationships) HasSkuListPromotionRule() bool` + +HasSkuListPromotionRule returns a boolean if a field has been set. + +### GetCouponCodesPromotionRule + +`func (o *FreeShippingPromotionDataRelationships) GetCouponCodesPromotionRule() BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule` + +GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field if non-nil, zero value otherwise. + +### GetCouponCodesPromotionRuleOk + +`func (o *FreeShippingPromotionDataRelationships) GetCouponCodesPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule, bool)` + +GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCouponCodesPromotionRule + +`func (o *FreeShippingPromotionDataRelationships) SetCouponCodesPromotionRule(v BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule)` + +SetCouponCodesPromotionRule sets CouponCodesPromotionRule field to given value. + +### HasCouponCodesPromotionRule + +`func (o *FreeShippingPromotionDataRelationships) HasCouponCodesPromotionRule() bool` + +HasCouponCodesPromotionRule returns a boolean if a field has been set. + +### GetCustomPromotionRule + +`func (o *FreeShippingPromotionDataRelationships) GetCustomPromotionRule() BuyXPayYPromotionDataRelationshipsCustomPromotionRule` + +GetCustomPromotionRule returns the CustomPromotionRule field if non-nil, zero value otherwise. + +### GetCustomPromotionRuleOk + +`func (o *FreeShippingPromotionDataRelationships) GetCustomPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsCustomPromotionRule, bool)` + +GetCustomPromotionRuleOk returns a tuple with the CustomPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomPromotionRule + +`func (o *FreeShippingPromotionDataRelationships) SetCustomPromotionRule(v BuyXPayYPromotionDataRelationshipsCustomPromotionRule)` + +SetCustomPromotionRule sets CustomPromotionRule field to given value. + +### HasCustomPromotionRule + +`func (o *FreeShippingPromotionDataRelationships) HasCustomPromotionRule() bool` + +HasCustomPromotionRule returns a boolean if a field has been set. + +### GetSkuList + +`func (o *FreeShippingPromotionDataRelationships) GetSkuList() BundleDataRelationshipsSkuList` + +GetSkuList returns the SkuList field if non-nil, zero value otherwise. + +### GetSkuListOk + +`func (o *FreeShippingPromotionDataRelationships) GetSkuListOk() (*BundleDataRelationshipsSkuList, bool)` + +GetSkuListOk returns a tuple with the SkuList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuList + +`func (o *FreeShippingPromotionDataRelationships) SetSkuList(v BundleDataRelationshipsSkuList)` + +SetSkuList sets SkuList field to given value. + +### HasSkuList + +`func (o *FreeShippingPromotionDataRelationships) HasSkuList() bool` + +HasSkuList returns a boolean if a field has been set. + +### GetCoupons + +`func (o *FreeShippingPromotionDataRelationships) GetCoupons() BuyXPayYPromotionDataRelationshipsCoupons` + +GetCoupons returns the Coupons field if non-nil, zero value otherwise. + +### GetCouponsOk + +`func (o *FreeShippingPromotionDataRelationships) GetCouponsOk() (*BuyXPayYPromotionDataRelationshipsCoupons, bool)` + +GetCouponsOk returns a tuple with the Coupons field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCoupons + +`func (o *FreeShippingPromotionDataRelationships) SetCoupons(v BuyXPayYPromotionDataRelationshipsCoupons)` + +SetCoupons sets Coupons field to given value. + +### HasCoupons + +`func (o *FreeShippingPromotionDataRelationships) HasCoupons() bool` + +HasCoupons returns a boolean if a field has been set. + +### GetAttachments + +`func (o *FreeShippingPromotionDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *FreeShippingPromotionDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *FreeShippingPromotionDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *FreeShippingPromotionDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + +### GetEvents + +`func (o *FreeShippingPromotionDataRelationships) GetEvents() AddressDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *FreeShippingPromotionDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *FreeShippingPromotionDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *FreeShippingPromotionDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *FreeShippingPromotionDataRelationships) GetTags() AddressDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *FreeShippingPromotionDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *FreeShippingPromotionDataRelationships) SetTags(v AddressDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *FreeShippingPromotionDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *FreeShippingPromotionDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *FreeShippingPromotionDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *FreeShippingPromotionDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *FreeShippingPromotionDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/FreeShippingPromotionUpdateData.md b/api/docs/FreeShippingPromotionUpdateData.md index b3230bec..13bf59db 100644 --- a/api/docs/FreeShippingPromotionUpdateData.md +++ b/api/docs/FreeShippingPromotionUpdateData.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Type** | **interface{}** | The resource's type | **Id** | **interface{}** | The resource's id | **Attributes** | [**PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes**](PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**ExternalPromotionCreateDataRelationships**](ExternalPromotionCreateDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**BuyXPayYPromotionUpdateDataRelationships**](BuyXPayYPromotionUpdateDataRelationships.md) | | [optional] ## Methods @@ -110,20 +110,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *FreeShippingPromotionUpdateData) GetRelationships() ExternalPromotionCreateDataRelationships` +`func (o *FreeShippingPromotionUpdateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *FreeShippingPromotionUpdateData) GetRelationshipsOk() (*ExternalPromotionCreateDataRelationships, bool)` +`func (o *FreeShippingPromotionUpdateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *FreeShippingPromotionUpdateData) SetRelationships(v ExternalPromotionCreateDataRelationships)` +`func (o *FreeShippingPromotionUpdateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/FreeShippingPromotionsApi.md b/api/docs/FreeShippingPromotionsApi.md index 41d2e141..db3d2be3 100644 --- a/api/docs/FreeShippingPromotionsApi.md +++ b/api/docs/FreeShippingPromotionsApi.md @@ -304,7 +304,7 @@ import ( ) func main() { - freeShippingPromotionCreate := *openapiclient.NewFreeShippingPromotionCreate(*openapiclient.NewFreeShippingPromotionCreateData(interface{}(123), *openapiclient.NewPOSTFreeShippingPromotions201ResponseDataAttributes(interface{}(Personal promotion), interface{}(2018-01-01T12:00:00.000Z), interface{}(2018-01-02T12:00:00.000Z), interface{}(5)))) // FreeShippingPromotionCreate | + freeShippingPromotionCreate := *openapiclient.NewFreeShippingPromotionCreate(*openapiclient.NewFreeShippingPromotionCreateData(interface{}(123), *openapiclient.NewPOSTFreeShippingPromotions201ResponseDataAttributes(interface{}(Personal promotion), interface{}(2018-01-01T12:00:00.000Z), interface{}(2018-01-02T12:00:00.000Z)))) // FreeShippingPromotionCreate | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/api/docs/GETAddressesAddressId200ResponseDataAttributes.md b/api/docs/GETAddressesAddressId200ResponseDataAttributes.md index b6ea4ea0..5bfe48c4 100644 --- a/api/docs/GETAddressesAddressId200ResponseDataAttributes.md +++ b/api/docs/GETAddressesAddressId200ResponseDataAttributes.md @@ -4,34 +4,34 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Business** | Pointer to **interface{}** | Indicates if it's a business or a personal address | [optional] -**FirstName** | Pointer to **interface{}** | Address first name (personal) | [optional] -**LastName** | Pointer to **interface{}** | Address last name (personal) | [optional] -**Company** | Pointer to **interface{}** | Address company name (business) | [optional] -**FullName** | Pointer to **interface{}** | Company name (business) of first name and last name (personal) | [optional] -**Line1** | Pointer to **interface{}** | Address line 1, i.e. Street address, PO Box | [optional] -**Line2** | Pointer to **interface{}** | Address line 2, i.e. Apartment, Suite, Building | [optional] -**City** | Pointer to **interface{}** | Address city | [optional] -**ZipCode** | Pointer to **interface{}** | ZIP or postal code | [optional] +**Business** | Pointer to **interface{}** | Indicates if it's a business or a personal address. | [optional] +**FirstName** | Pointer to **interface{}** | Address first name (personal). | [optional] +**LastName** | Pointer to **interface{}** | Address last name (personal). | [optional] +**Company** | Pointer to **interface{}** | Address company name (business). | [optional] +**FullName** | Pointer to **interface{}** | Company name (business) of first name and last name (personal). | [optional] +**Line1** | Pointer to **interface{}** | Address line 1, i.e. Street address, PO Box. | [optional] +**Line2** | Pointer to **interface{}** | Address line 2, i.e. Apartment, Suite, Building. | [optional] +**City** | Pointer to **interface{}** | Address city. | [optional] +**ZipCode** | Pointer to **interface{}** | ZIP or postal code. | [optional] **StateCode** | Pointer to **interface{}** | State, province or region code. | [optional] -**CountryCode** | Pointer to **interface{}** | The international 2-letter country code as defined by the ISO 3166-1 standard | [optional] +**CountryCode** | Pointer to **interface{}** | The international 2-letter country code as defined by the ISO 3166-1 standard. | [optional] **Phone** | Pointer to **interface{}** | Phone number (including extension). | [optional] -**FullAddress** | Pointer to **interface{}** | Compact description of the address location, without the full name | [optional] -**Name** | Pointer to **interface{}** | Compact description of the address location, including the full name | [optional] +**FullAddress** | Pointer to **interface{}** | Compact description of the address location, without the full name. | [optional] +**Name** | Pointer to **interface{}** | Compact description of the address location, including the full name. | [optional] **Email** | Pointer to **interface{}** | Email address. | [optional] **Notes** | Pointer to **interface{}** | A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions. | [optional] **Lat** | Pointer to **interface{}** | The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market. | [optional] **Lng** | Pointer to **interface{}** | The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market. | [optional] -**IsLocalized** | Pointer to **interface{}** | Indicates if the latitude and logitude are present, either geocoded or manually updated | [optional] -**IsGeocoded** | Pointer to **interface{}** | Indicates if the address has been successfully geocoded | [optional] -**ProviderName** | Pointer to **interface{}** | The geocoder provider name (either Google or Bing) | [optional] -**MapUrl** | Pointer to **interface{}** | The map url of the geocoded address (if geocoded) | [optional] -**StaticMapUrl** | Pointer to **interface{}** | The static map image url of the geocoded address (if geocoded) | [optional] -**BillingInfo** | Pointer to **interface{}** | Customer's billing information (i.e. VAT number, codice fiscale) | [optional] +**IsLocalized** | Pointer to **interface{}** | Indicates if the latitude and logitude are present, either geocoded or manually updated. | [optional] +**IsGeocoded** | Pointer to **interface{}** | Indicates if the address has been successfully geocoded. | [optional] +**ProviderName** | Pointer to **interface{}** | The geocoder provider name (either Google or Bing). | [optional] +**MapUrl** | Pointer to **interface{}** | The map url of the geocoded address (if geocoded). | [optional] +**StaticMapUrl** | Pointer to **interface{}** | The static map image url of the geocoded address (if geocoded). | [optional] +**BillingInfo** | Pointer to **interface{}** | Customer's billing information (i.e. VAT number, codice fiscale). | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETAdjustmentsAdjustmentId200ResponseData.md b/api/docs/GETAdjustmentsAdjustmentId200ResponseData.md index 134f1bee..566c38dd 100644 --- a/api/docs/GETAdjustmentsAdjustmentId200ResponseData.md +++ b/api/docs/GETAdjustmentsAdjustmentId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**GETAdjustmentsAdjustmentId200ResponseDataAttributes**](GETAdjustmentsAdjustmentId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to **interface{}** | | [optional] +**Relationships** | Pointer to [**POSTAdjustments201ResponseDataRelationships**](POSTAdjustments201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *GETAdjustmentsAdjustmentId200ResponseData) GetRelationships() interface{}` +`func (o *GETAdjustmentsAdjustmentId200ResponseData) GetRelationships() POSTAdjustments201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *GETAdjustmentsAdjustmentId200ResponseData) GetRelationshipsOk() (*interface{}, bool)` +`func (o *GETAdjustmentsAdjustmentId200ResponseData) GetRelationshipsOk() (*POSTAdjustments201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *GETAdjustmentsAdjustmentId200ResponseData) SetRelationships(v interface{})` +`func (o *GETAdjustmentsAdjustmentId200ResponseData) SetRelationships(v POSTAdjustments201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. @@ -174,16 +174,6 @@ SetRelationships sets Relationships field to given value. HasRelationships returns a boolean if a field has been set. -### SetRelationshipsNil - -`func (o *GETAdjustmentsAdjustmentId200ResponseData) SetRelationshipsNil(b bool)` - - SetRelationshipsNil sets the value for Relationships to be an explicit nil - -### UnsetRelationships -`func (o *GETAdjustmentsAdjustmentId200ResponseData) UnsetRelationships()` - -UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/GETAdjustmentsAdjustmentId200ResponseDataAttributes.md b/api/docs/GETAdjustmentsAdjustmentId200ResponseDataAttributes.md index 064c2977..c3e9aad4 100644 --- a/api/docs/GETAdjustmentsAdjustmentId200ResponseDataAttributes.md +++ b/api/docs/GETAdjustmentsAdjustmentId200ResponseDataAttributes.md @@ -4,15 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The adjustment name | [optional] +**Name** | Pointer to **interface{}** | The adjustment name. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] **AmountCents** | Pointer to **interface{}** | The adjustment amount, in cents. | [optional] **AmountFloat** | Pointer to **interface{}** | The adjustment amount, float. | [optional] **FormattedAmount** | Pointer to **interface{}** | The adjustment amount, formatted. | [optional] +**DistributeDiscount** | Pointer to **interface{}** | Indicates if negative adjustment amount is distributed for tax calculation. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -209,6 +210,41 @@ HasFormattedAmount returns a boolean if a field has been set. `func (o *GETAdjustmentsAdjustmentId200ResponseDataAttributes) UnsetFormattedAmount()` UnsetFormattedAmount ensures that no value is present for FormattedAmount, not even an explicit nil +### GetDistributeDiscount + +`func (o *GETAdjustmentsAdjustmentId200ResponseDataAttributes) GetDistributeDiscount() interface{}` + +GetDistributeDiscount returns the DistributeDiscount field if non-nil, zero value otherwise. + +### GetDistributeDiscountOk + +`func (o *GETAdjustmentsAdjustmentId200ResponseDataAttributes) GetDistributeDiscountOk() (*interface{}, bool)` + +GetDistributeDiscountOk returns a tuple with the DistributeDiscount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistributeDiscount + +`func (o *GETAdjustmentsAdjustmentId200ResponseDataAttributes) SetDistributeDiscount(v interface{})` + +SetDistributeDiscount sets DistributeDiscount field to given value. + +### HasDistributeDiscount + +`func (o *GETAdjustmentsAdjustmentId200ResponseDataAttributes) HasDistributeDiscount() bool` + +HasDistributeDiscount returns a boolean if a field has been set. + +### SetDistributeDiscountNil + +`func (o *GETAdjustmentsAdjustmentId200ResponseDataAttributes) SetDistributeDiscountNil(b bool)` + + SetDistributeDiscountNil sets the value for DistributeDiscount to be an explicit nil + +### UnsetDistributeDiscount +`func (o *GETAdjustmentsAdjustmentId200ResponseDataAttributes) UnsetDistributeDiscount()` + +UnsetDistributeDiscount ensures that no value is present for DistributeDiscount, not even an explicit nil ### GetCreatedAt `func (o *GETAdjustmentsAdjustmentId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes.md b/api/docs/GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes.md index 96b063cc..4c5d72ea 100644 --- a/api/docs/GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes.md +++ b/api/docs/GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes.md @@ -8,10 +8,12 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **LiveUrlPrefix** | Pointer to **interface{}** | The prefix of the endpoint used for live transactions. | [optional] -**AsyncApi** | Pointer to **interface{}** | Indicates if the gateway will leverage on the Adyen notification webhooks. | [optional] +**ApiVersion** | Pointer to **interface{}** | The checkout API version, supported range is from 66 to 71, default is 71. | [optional] +**AsyncApi** | Pointer to **interface{}** | Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version. | [optional] +**NativeCustomerPaymentSources** | Pointer to **interface{}** | Indicates if the gateway will use the native customer payment sources. | [optional] **WebhookEndpointSecret** | Pointer to **interface{}** | The gateway webhook endpoint secret, generated by Adyen customer area. | [optional] **WebhookEndpointUrl** | Pointer to **interface{}** | The gateway webhook URL, generated automatically. | [optional] @@ -279,6 +281,41 @@ HasLiveUrlPrefix returns a boolean if a field has been set. `func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) UnsetLiveUrlPrefix()` UnsetLiveUrlPrefix ensures that no value is present for LiveUrlPrefix, not even an explicit nil +### GetApiVersion + +`func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) GetApiVersion() interface{}` + +GetApiVersion returns the ApiVersion field if non-nil, zero value otherwise. + +### GetApiVersionOk + +`func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) GetApiVersionOk() (*interface{}, bool)` + +GetApiVersionOk returns a tuple with the ApiVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiVersion + +`func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) SetApiVersion(v interface{})` + +SetApiVersion sets ApiVersion field to given value. + +### HasApiVersion + +`func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) HasApiVersion() bool` + +HasApiVersion returns a boolean if a field has been set. + +### SetApiVersionNil + +`func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) SetApiVersionNil(b bool)` + + SetApiVersionNil sets the value for ApiVersion to be an explicit nil + +### UnsetApiVersion +`func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) UnsetApiVersion()` + +UnsetApiVersion ensures that no value is present for ApiVersion, not even an explicit nil ### GetAsyncApi `func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) GetAsyncApi() interface{}` @@ -314,6 +351,41 @@ HasAsyncApi returns a boolean if a field has been set. `func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) UnsetAsyncApi()` UnsetAsyncApi ensures that no value is present for AsyncApi, not even an explicit nil +### GetNativeCustomerPaymentSources + +`func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) GetNativeCustomerPaymentSources() interface{}` + +GetNativeCustomerPaymentSources returns the NativeCustomerPaymentSources field if non-nil, zero value otherwise. + +### GetNativeCustomerPaymentSourcesOk + +`func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) GetNativeCustomerPaymentSourcesOk() (*interface{}, bool)` + +GetNativeCustomerPaymentSourcesOk returns a tuple with the NativeCustomerPaymentSources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNativeCustomerPaymentSources + +`func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) SetNativeCustomerPaymentSources(v interface{})` + +SetNativeCustomerPaymentSources sets NativeCustomerPaymentSources field to given value. + +### HasNativeCustomerPaymentSources + +`func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) HasNativeCustomerPaymentSources() bool` + +HasNativeCustomerPaymentSources returns a boolean if a field has been set. + +### SetNativeCustomerPaymentSourcesNil + +`func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) SetNativeCustomerPaymentSourcesNil(b bool)` + + SetNativeCustomerPaymentSourcesNil sets the value for NativeCustomerPaymentSources to be an explicit nil + +### UnsetNativeCustomerPaymentSources +`func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) UnsetNativeCustomerPaymentSources()` + +UnsetNativeCustomerPaymentSources ensures that no value is present for NativeCustomerPaymentSources, not even an explicit nil ### GetWebhookEndpointSecret `func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) GetWebhookEndpointSecret() interface{}` diff --git a/api/docs/GETAdyenPaymentsAdyenPaymentId200ResponseDataAttributes.md b/api/docs/GETAdyenPaymentsAdyenPaymentId200ResponseDataAttributes.md index 9f302271..751bd341 100644 --- a/api/docs/GETAdyenPaymentsAdyenPaymentId200ResponseDataAttributes.md +++ b/api/docs/GETAdyenPaymentsAdyenPaymentId200ResponseDataAttributes.md @@ -10,11 +10,11 @@ Name | Type | Description | Notes **PaymentRequestDetails** | Pointer to **interface{}** | The Adyen additional details request data, collected by client. | [optional] **PaymentResponse** | Pointer to **interface{}** | The Adyen payment response, used by client (includes 'resultCode' and 'action'). | [optional] **MismatchedAmounts** | Pointer to **interface{}** | Indicates if the order current amount differs form the one of the associated authorization. | [optional] -**PaymentInstrument** | Pointer to **interface{}** | Information about the payment instrument used in the transaction | [optional] +**PaymentInstrument** | Pointer to **interface{}** | Information about the payment instrument used in the transaction. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETApplicationApplicationId200ResponseDataAttributes.md b/api/docs/GETApplicationApplicationId200ResponseDataAttributes.md index 3b612316..46f6e0d6 100644 --- a/api/docs/GETApplicationApplicationId200ResponseDataAttributes.md +++ b/api/docs/GETApplicationApplicationId200ResponseDataAttributes.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETAttachmentsAttachmentId200ResponseDataAttributes.md b/api/docs/GETAttachmentsAttachmentId200ResponseDataAttributes.md index 6dbb1d2c..deccdd20 100644 --- a/api/docs/GETAttachmentsAttachmentId200ResponseDataAttributes.md +++ b/api/docs/GETAttachmentsAttachmentId200ResponseDataAttributes.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETAuthorizationsAuthorizationId200ResponseDataAttributes.md b/api/docs/GETAuthorizationsAuthorizationId200ResponseDataAttributes.md index 5f66e479..fa62e287 100644 --- a/api/docs/GETAuthorizationsAuthorizationId200ResponseDataAttributes.md +++ b/api/docs/GETAuthorizationsAuthorizationId200ResponseDataAttributes.md @@ -4,27 +4,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | Pointer to **interface{}** | The transaction number, auto generated | [optional] +**Number** | Pointer to **interface{}** | The transaction number, auto generated. | [optional] +**Type** | Pointer to **interface{}** | The transaction's type. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order. | [optional] **AmountCents** | Pointer to **interface{}** | The transaction amount, in cents. | [optional] **AmountFloat** | Pointer to **interface{}** | The transaction amount, float. | [optional] **FormattedAmount** | Pointer to **interface{}** | The transaction amount, formatted. | [optional] -**Succeeded** | Pointer to **interface{}** | Indicates if the transaction is successful | [optional] -**Message** | Pointer to **interface{}** | The message returned by the payment gateway | [optional] -**ErrorCode** | Pointer to **interface{}** | The error code, if any, returned by the payment gateway | [optional] -**ErrorDetail** | Pointer to **interface{}** | The error detail, if any, returned by the payment gateway | [optional] -**Token** | Pointer to **interface{}** | The token identifying the transaction, returned by the payment gateway | [optional] -**GatewayTransactionId** | Pointer to **interface{}** | The ID identifying the transaction, returned by the payment gateway | [optional] +**Succeeded** | Pointer to **interface{}** | Indicates if the transaction is successful. | [optional] +**Message** | Pointer to **interface{}** | The message returned by the payment gateway. | [optional] +**ErrorCode** | Pointer to **interface{}** | The error code, if any, returned by the payment gateway. | [optional] +**ErrorDetail** | Pointer to **interface{}** | The error detail, if any, returned by the payment gateway. | [optional] +**Token** | Pointer to **interface{}** | The token identifying the transaction, returned by the payment gateway. | [optional] +**GatewayTransactionId** | Pointer to **interface{}** | The ID identifying the transaction, returned by the payment gateway. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] -**CvvCode** | Pointer to **interface{}** | The CVV code returned by the payment gateway | [optional] -**CvvMessage** | Pointer to **interface{}** | The CVV message returned by the payment gateway | [optional] -**AvsCode** | Pointer to **interface{}** | The AVS code returned by the payment gateway | [optional] -**AvsMessage** | Pointer to **interface{}** | The AVS message returned by the payment gateway | [optional] -**FraudReview** | Pointer to **interface{}** | The fraud review message, if any, returned by the payment gateway | [optional] +**CvvCode** | Pointer to **interface{}** | The CVV code returned by the payment gateway. | [optional] +**CvvMessage** | Pointer to **interface{}** | The CVV message returned by the payment gateway. | [optional] +**AvsCode** | Pointer to **interface{}** | The AVS code returned by the payment gateway. | [optional] +**AvsMessage** | Pointer to **interface{}** | The AVS message returned by the payment gateway. | [optional] +**FraudReview** | Pointer to **interface{}** | The fraud review message, if any, returned by the payment gateway. | [optional] **CaptureAmountCents** | Pointer to **interface{}** | The amount to be captured, in cents. | [optional] **CaptureAmountFloat** | Pointer to **interface{}** | The amount to be captured, float. | [optional] **FormattedCaptureAmount** | Pointer to **interface{}** | The amount to be captured, formatted. | [optional] @@ -89,6 +90,41 @@ HasNumber returns a boolean if a field has been set. `func (o *GETAuthorizationsAuthorizationId200ResponseDataAttributes) UnsetNumber()` UnsetNumber ensures that no value is present for Number, not even an explicit nil +### GetType + +`func (o *GETAuthorizationsAuthorizationId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETAuthorizationsAuthorizationId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETAuthorizationsAuthorizationId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETAuthorizationsAuthorizationId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETAuthorizationsAuthorizationId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETAuthorizationsAuthorizationId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetCurrencyCode `func (o *GETAuthorizationsAuthorizationId200ResponseDataAttributes) GetCurrencyCode() interface{}` diff --git a/api/docs/GETAuthorizationsAuthorizationId200ResponseDataRelationships.md b/api/docs/GETAuthorizationsAuthorizationId200ResponseDataRelationships.md index d159138e..ea231946 100644 --- a/api/docs/GETAuthorizationsAuthorizationId200ResponseDataRelationships.md +++ b/api/docs/GETAuthorizationsAuthorizationId200ResponseDataRelationships.md @@ -5,9 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Order** | Pointer to [**POSTAdyenPayments201ResponseDataRelationshipsOrder**](POSTAdyenPayments201ResponseDataRelationshipsOrder.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] **Captures** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsCaptures**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsCaptures.md) | | [optional] **Voids** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsVoids**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsVoids.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] ## Methods @@ -53,6 +55,81 @@ SetOrder sets Order field to given value. HasOrder returns a boolean if a field has been set. +### GetAttachments + +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + +### GetEvents + +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetVersions + +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetCaptures `func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) GetCaptures() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsCaptures` @@ -103,31 +180,6 @@ SetVoids sets Voids field to given value. HasVoids returns a boolean if a field has been set. -### GetEvents - -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` - -GetEvents returns the Events field if non-nil, zero value otherwise. - -### GetEventsOk - -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` - -GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEvents - -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` - -SetEvents sets Events field to given value. - -### HasEvents - -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) HasEvents() bool` - -HasEvents returns a boolean if a field has been set. - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md b/api/docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md similarity index 61% rename from api/docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md rename to api/docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md index 9d9d4085..b0b15542 100644 --- a/api/docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md +++ b/api/docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md @@ -1,78 +1,78 @@ -# GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents +# GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] -**Data** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData.md) | | [optional] +**Data** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData.md) | | [optional] ## Methods -### NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents +### NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments -`func NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` +`func NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` -NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents instantiates a new GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents object +NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments instantiates a new GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsWithDefaults +### NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsWithDefaults -`func NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsWithDefaults() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` +`func NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsWithDefaults() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` -NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsWithDefaults instantiates a new GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents object +NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsWithDefaults instantiates a new GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetLinks -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` GetLinks returns the Links field if non-nil, zero value otherwise. ### GetLinksOk -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLinks -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` SetLinks sets Links field to given value. ### HasLinks -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) HasLinks() bool` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) HasLinks() bool` HasLinks returns a boolean if a field has been set. ### GetData -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) GetData() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) GetData() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) GetDataOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData, bool)` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) GetDataOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) SetData(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData)` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) SetData(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData)` SetData sets Data field to given value. ### HasData -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) HasData() bool` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) HasData() bool` HasData returns a boolean if a field has been set. diff --git a/api/docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData.md b/api/docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData.md similarity index 69% rename from api/docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData.md rename to api/docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData.md index 585c20e4..212de843 100644 --- a/api/docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData.md +++ b/api/docs/GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData.md @@ -1,4 +1,4 @@ -# GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData +# GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData +### NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData -`func NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData` +`func NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData` -NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData instantiates a new GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData object +NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData instantiates a new GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsDataWithDefaults +### NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsDataWithDefaults -`func NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsDataWithDefaults() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData` +`func NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsDataWithDefaults() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData` -NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsDataWithDefaults instantiates a new GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData object +NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsDataWithDefaults instantiates a new GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) GetType() interface{}` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) GetTypeOk() (*interface{}, bool)` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) SetType(v interface{})` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) HasType() bool` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) SetTypeNil(b bool)` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) UnsetType()` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) GetId() interface{}` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) GetIdOk() (*interface{}, bool)` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) SetId(v interface{})` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) HasId() bool` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) SetIdNil(b bool)` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) UnsetId()` +`func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes.md b/api/docs/GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes.md index 57c98308..311d336f 100644 --- a/api/docs/GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes.md +++ b/api/docs/GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes.md @@ -5,10 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The tax calculator's internal name. | [optional] +**Type** | Pointer to **interface{}** | The tax calculator's type. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **Username** | Pointer to **interface{}** | The Avalara account username. | [optional] **CompanyCode** | Pointer to **interface{}** | The Avalara company code. | [optional] @@ -69,6 +70,41 @@ HasName returns a boolean if a field has been set. `func (o *GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetType + +`func (o *GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetCreatedAt `func (o *GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes.md b/api/docs/GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes.md index 18b2f515..73ca451f 100644 --- a/api/docs/GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes.md +++ b/api/docs/GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes.md @@ -8,9 +8,10 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **Login** | Pointer to **interface{}** | The merchant login code. | [optional] +**WebhookEndpointUrl** | Pointer to **interface{}** | The gateway webhook URL, generated automatically. | [optional] ## Methods @@ -276,6 +277,41 @@ HasLogin returns a boolean if a field has been set. `func (o *GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes) UnsetLogin()` UnsetLogin ensures that no value is present for Login, not even an explicit nil +### GetWebhookEndpointUrl + +`func (o *GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes) GetWebhookEndpointUrl() interface{}` + +GetWebhookEndpointUrl returns the WebhookEndpointUrl field if non-nil, zero value otherwise. + +### GetWebhookEndpointUrlOk + +`func (o *GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes) GetWebhookEndpointUrlOk() (*interface{}, bool)` + +GetWebhookEndpointUrlOk returns a tuple with the WebhookEndpointUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebhookEndpointUrl + +`func (o *GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes) SetWebhookEndpointUrl(v interface{})` + +SetWebhookEndpointUrl sets WebhookEndpointUrl field to given value. + +### HasWebhookEndpointUrl + +`func (o *GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes) HasWebhookEndpointUrl() bool` + +HasWebhookEndpointUrl returns a boolean if a field has been set. + +### SetWebhookEndpointUrlNil + +`func (o *GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes) SetWebhookEndpointUrlNil(b bool)` + + SetWebhookEndpointUrlNil sets the value for WebhookEndpointUrl to be an explicit nil + +### UnsetWebhookEndpointUrl +`func (o *GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes) UnsetWebhookEndpointUrl()` + +UnsetWebhookEndpointUrl ensures that no value is present for WebhookEndpointUrl, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/GETAxervePaymentsAxervePaymentId200ResponseDataAttributes.md b/api/docs/GETAxervePaymentsAxervePaymentId200ResponseDataAttributes.md index 947950c5..25eaf8ee 100644 --- a/api/docs/GETAxervePaymentsAxervePaymentId200ResponseDataAttributes.md +++ b/api/docs/GETAxervePaymentsAxervePaymentId200ResponseDataAttributes.md @@ -7,15 +7,15 @@ Name | Type | Description | Notes **Login** | Pointer to **interface{}** | The merchant login code. | [optional] **ReturnUrl** | Pointer to **interface{}** | The URL where the payer is redirected after they approve the payment. | [optional] **PaymentRequestData** | Pointer to **interface{}** | The Axerve payment request data, collected by client. | [optional] +**ClientIp** | Pointer to **interface{}** | The IP adress of the client creating the payment. | [optional] +**BuyerDetails** | Pointer to **interface{}** | The details of the buyer creating the payment. | [optional] +**RequestToken** | Pointer to **interface{}** | Requires the creation of a token to represent this payment, mandatory to use customer's wallet and order subscriptions. | [optional] **MismatchedAmounts** | Pointer to **interface{}** | Indicates if the order current amount differs form the one of the associated authorization. | [optional] -**IntentAmountCents** | Pointer to **interface{}** | The amount of the associated payment intent, in cents. | [optional] -**IntentAmountFloat** | Pointer to **interface{}** | The amount of the associated payment intent, float. | [optional] -**FormattedIntentAmount** | Pointer to **interface{}** | The amount of the associated payment intent, formatted. | [optional] -**PaymentInstrument** | Pointer to **interface{}** | Information about the payment instrument used in the transaction | [optional] +**PaymentInstrument** | Pointer to **interface{}** | Information about the payment instrument used in the transaction. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -142,146 +142,146 @@ HasPaymentRequestData returns a boolean if a field has been set. `func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) UnsetPaymentRequestData()` UnsetPaymentRequestData ensures that no value is present for PaymentRequestData, not even an explicit nil -### GetMismatchedAmounts +### GetClientIp -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetMismatchedAmounts() interface{}` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetClientIp() interface{}` -GetMismatchedAmounts returns the MismatchedAmounts field if non-nil, zero value otherwise. +GetClientIp returns the ClientIp field if non-nil, zero value otherwise. -### GetMismatchedAmountsOk +### GetClientIpOk -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetMismatchedAmountsOk() (*interface{}, bool)` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetClientIpOk() (*interface{}, bool)` -GetMismatchedAmountsOk returns a tuple with the MismatchedAmounts field if it's non-nil, zero value otherwise +GetClientIpOk returns a tuple with the ClientIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetMismatchedAmounts +### SetClientIp -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetMismatchedAmounts(v interface{})` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetClientIp(v interface{})` -SetMismatchedAmounts sets MismatchedAmounts field to given value. +SetClientIp sets ClientIp field to given value. -### HasMismatchedAmounts +### HasClientIp -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) HasMismatchedAmounts() bool` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) HasClientIp() bool` -HasMismatchedAmounts returns a boolean if a field has been set. +HasClientIp returns a boolean if a field has been set. -### SetMismatchedAmountsNil +### SetClientIpNil -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetMismatchedAmountsNil(b bool)` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetClientIpNil(b bool)` - SetMismatchedAmountsNil sets the value for MismatchedAmounts to be an explicit nil + SetClientIpNil sets the value for ClientIp to be an explicit nil -### UnsetMismatchedAmounts -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) UnsetMismatchedAmounts()` +### UnsetClientIp +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) UnsetClientIp()` -UnsetMismatchedAmounts ensures that no value is present for MismatchedAmounts, not even an explicit nil -### GetIntentAmountCents +UnsetClientIp ensures that no value is present for ClientIp, not even an explicit nil +### GetBuyerDetails -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetIntentAmountCents() interface{}` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetBuyerDetails() interface{}` -GetIntentAmountCents returns the IntentAmountCents field if non-nil, zero value otherwise. +GetBuyerDetails returns the BuyerDetails field if non-nil, zero value otherwise. -### GetIntentAmountCentsOk +### GetBuyerDetailsOk -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetIntentAmountCentsOk() (*interface{}, bool)` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetBuyerDetailsOk() (*interface{}, bool)` -GetIntentAmountCentsOk returns a tuple with the IntentAmountCents field if it's non-nil, zero value otherwise +GetBuyerDetailsOk returns a tuple with the BuyerDetails field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIntentAmountCents +### SetBuyerDetails -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetIntentAmountCents(v interface{})` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetBuyerDetails(v interface{})` -SetIntentAmountCents sets IntentAmountCents field to given value. +SetBuyerDetails sets BuyerDetails field to given value. -### HasIntentAmountCents +### HasBuyerDetails -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) HasIntentAmountCents() bool` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) HasBuyerDetails() bool` -HasIntentAmountCents returns a boolean if a field has been set. +HasBuyerDetails returns a boolean if a field has been set. -### SetIntentAmountCentsNil +### SetBuyerDetailsNil -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetIntentAmountCentsNil(b bool)` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetBuyerDetailsNil(b bool)` - SetIntentAmountCentsNil sets the value for IntentAmountCents to be an explicit nil + SetBuyerDetailsNil sets the value for BuyerDetails to be an explicit nil -### UnsetIntentAmountCents -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) UnsetIntentAmountCents()` +### UnsetBuyerDetails +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) UnsetBuyerDetails()` -UnsetIntentAmountCents ensures that no value is present for IntentAmountCents, not even an explicit nil -### GetIntentAmountFloat +UnsetBuyerDetails ensures that no value is present for BuyerDetails, not even an explicit nil +### GetRequestToken -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetIntentAmountFloat() interface{}` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetRequestToken() interface{}` -GetIntentAmountFloat returns the IntentAmountFloat field if non-nil, zero value otherwise. +GetRequestToken returns the RequestToken field if non-nil, zero value otherwise. -### GetIntentAmountFloatOk +### GetRequestTokenOk -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetIntentAmountFloatOk() (*interface{}, bool)` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetRequestTokenOk() (*interface{}, bool)` -GetIntentAmountFloatOk returns a tuple with the IntentAmountFloat field if it's non-nil, zero value otherwise +GetRequestTokenOk returns a tuple with the RequestToken field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIntentAmountFloat +### SetRequestToken -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetIntentAmountFloat(v interface{})` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetRequestToken(v interface{})` -SetIntentAmountFloat sets IntentAmountFloat field to given value. +SetRequestToken sets RequestToken field to given value. -### HasIntentAmountFloat +### HasRequestToken -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) HasIntentAmountFloat() bool` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) HasRequestToken() bool` -HasIntentAmountFloat returns a boolean if a field has been set. +HasRequestToken returns a boolean if a field has been set. -### SetIntentAmountFloatNil +### SetRequestTokenNil -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetIntentAmountFloatNil(b bool)` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetRequestTokenNil(b bool)` - SetIntentAmountFloatNil sets the value for IntentAmountFloat to be an explicit nil + SetRequestTokenNil sets the value for RequestToken to be an explicit nil -### UnsetIntentAmountFloat -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) UnsetIntentAmountFloat()` +### UnsetRequestToken +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) UnsetRequestToken()` -UnsetIntentAmountFloat ensures that no value is present for IntentAmountFloat, not even an explicit nil -### GetFormattedIntentAmount +UnsetRequestToken ensures that no value is present for RequestToken, not even an explicit nil +### GetMismatchedAmounts -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetFormattedIntentAmount() interface{}` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetMismatchedAmounts() interface{}` -GetFormattedIntentAmount returns the FormattedIntentAmount field if non-nil, zero value otherwise. +GetMismatchedAmounts returns the MismatchedAmounts field if non-nil, zero value otherwise. -### GetFormattedIntentAmountOk +### GetMismatchedAmountsOk -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetFormattedIntentAmountOk() (*interface{}, bool)` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetMismatchedAmountsOk() (*interface{}, bool)` -GetFormattedIntentAmountOk returns a tuple with the FormattedIntentAmount field if it's non-nil, zero value otherwise +GetMismatchedAmountsOk returns a tuple with the MismatchedAmounts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetFormattedIntentAmount +### SetMismatchedAmounts -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetFormattedIntentAmount(v interface{})` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetMismatchedAmounts(v interface{})` -SetFormattedIntentAmount sets FormattedIntentAmount field to given value. +SetMismatchedAmounts sets MismatchedAmounts field to given value. -### HasFormattedIntentAmount +### HasMismatchedAmounts -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) HasFormattedIntentAmount() bool` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) HasMismatchedAmounts() bool` -HasFormattedIntentAmount returns a boolean if a field has been set. +HasMismatchedAmounts returns a boolean if a field has been set. -### SetFormattedIntentAmountNil +### SetMismatchedAmountsNil -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetFormattedIntentAmountNil(b bool)` +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetMismatchedAmountsNil(b bool)` - SetFormattedIntentAmountNil sets the value for FormattedIntentAmount to be an explicit nil + SetMismatchedAmountsNil sets the value for MismatchedAmounts to be an explicit nil -### UnsetFormattedIntentAmount -`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) UnsetFormattedIntentAmount()` +### UnsetMismatchedAmounts +`func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) UnsetMismatchedAmounts()` -UnsetFormattedIntentAmount ensures that no value is present for FormattedIntentAmount, not even an explicit nil +UnsetMismatchedAmounts ensures that no value is present for MismatchedAmounts, not even an explicit nil ### GetPaymentInstrument `func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetPaymentInstrument() interface{}` diff --git a/api/docs/GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md b/api/docs/GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md index dcd3128f..73754964 100644 --- a/api/docs/GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md +++ b/api/docs/GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md @@ -4,10 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The order validation rule's type. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -29,6 +30,41 @@ NewGETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttrib This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetType + +`func (o *GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetCreatedAt `func (o *GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETBingGeocodersBingGeocoderId200ResponseDataAttributes.md b/api/docs/GETBingGeocodersBingGeocoderId200ResponseDataAttributes.md index 3ce33b7d..337091d2 100644 --- a/api/docs/GETBingGeocodersBingGeocoderId200ResponseDataAttributes.md +++ b/api/docs/GETBingGeocodersBingGeocoderId200ResponseDataAttributes.md @@ -4,11 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The geocoder's internal name | [optional] +**Name** | Pointer to **interface{}** | The geocoder's internal name. | [optional] +**Type** | Pointer to **interface{}** | The geocoder's type. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -65,6 +66,41 @@ HasName returns a boolean if a field has been set. `func (o *GETBingGeocodersBingGeocoderId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetType + +`func (o *GETBingGeocodersBingGeocoderId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETBingGeocodersBingGeocoderId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETBingGeocodersBingGeocoderId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETBingGeocodersBingGeocoderId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETBingGeocodersBingGeocoderId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETBingGeocodersBingGeocoderId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetCreatedAt `func (o *GETBingGeocodersBingGeocoderId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETBraintreeGatewaysBraintreeGatewayId200ResponseDataAttributes.md b/api/docs/GETBraintreeGatewaysBraintreeGatewayId200ResponseDataAttributes.md index d2be6a79..4f02cc53 100644 --- a/api/docs/GETBraintreeGatewaysBraintreeGatewayId200ResponseDataAttributes.md +++ b/api/docs/GETBraintreeGatewaysBraintreeGatewayId200ResponseDataAttributes.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **DescriptorName** | Pointer to **interface{}** | The dynamic descriptor name. Must be composed by business name (3, 7 or 12 chars), an asterisk (*) and the product name (18, 14 or 9 chars), for a total length of 22 chars. | [optional] **DescriptorPhone** | Pointer to **interface{}** | The dynamic descriptor phone number. Must be 10-14 characters and can only contain numbers, dashes, parentheses and periods. | [optional] diff --git a/api/docs/GETBraintreePaymentsBraintreePaymentId200ResponseDataAttributes.md b/api/docs/GETBraintreePaymentsBraintreePaymentId200ResponseDataAttributes.md index cce1a691..422caac7 100644 --- a/api/docs/GETBraintreePaymentsBraintreePaymentId200ResponseDataAttributes.md +++ b/api/docs/GETBraintreePaymentsBraintreePaymentId200ResponseDataAttributes.md @@ -8,12 +8,12 @@ Name | Type | Description | Notes **PaymentMethodNonce** | Pointer to **interface{}** | The Braintree payment method nonce. Sent by the Braintree JS SDK. | [optional] **PaymentId** | Pointer to **interface{}** | The Braintree payment ID used by local payment and sent by the Braintree JS SDK. | [optional] **Local** | Pointer to **interface{}** | Indicates if the payment is local, in such case Braintree will trigger a webhook call passing the \"payment_id\" and \"payment_method_nonce\" in order to complete the transaction. | [optional] -**Options** | Pointer to **interface{}** | Braintree payment options: 'customer_id' and 'payment_method_token' | [optional] -**PaymentInstrument** | Pointer to **interface{}** | Information about the payment instrument used in the transaction | [optional] +**Options** | Pointer to **interface{}** | Braintree payment options, 'customer_id' and 'payment_method_token'. | [optional] +**PaymentInstrument** | Pointer to **interface{}** | Information about the payment instrument used in the transaction. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETBundlesBundleId200ResponseDataAttributes.md b/api/docs/GETBundlesBundleId200ResponseDataAttributes.md index 44729c1d..1cf38a04 100644 --- a/api/docs/GETBundlesBundleId200ResponseDataAttributes.md +++ b/api/docs/GETBundlesBundleId200ResponseDataAttributes.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETBuyXPayYPromotions200Response.md b/api/docs/GETBuyXPayYPromotions200Response.md new file mode 100644 index 00000000..fee90dc1 --- /dev/null +++ b/api/docs/GETBuyXPayYPromotions200Response.md @@ -0,0 +1,66 @@ +# GETBuyXPayYPromotions200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewGETBuyXPayYPromotions200Response + +`func NewGETBuyXPayYPromotions200Response() *GETBuyXPayYPromotions200Response` + +NewGETBuyXPayYPromotions200Response instantiates a new GETBuyXPayYPromotions200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETBuyXPayYPromotions200ResponseWithDefaults + +`func NewGETBuyXPayYPromotions200ResponseWithDefaults() *GETBuyXPayYPromotions200Response` + +NewGETBuyXPayYPromotions200ResponseWithDefaults instantiates a new GETBuyXPayYPromotions200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETBuyXPayYPromotions200Response) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETBuyXPayYPromotions200Response) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETBuyXPayYPromotions200Response) SetData(v interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETBuyXPayYPromotions200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *GETBuyXPayYPromotions200Response) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *GETBuyXPayYPromotions200Response) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETBuyXPayYPromotionsBuyXPayYPromotionId200Response.md b/api/docs/GETBuyXPayYPromotionsBuyXPayYPromotionId200Response.md new file mode 100644 index 00000000..40573a5c --- /dev/null +++ b/api/docs/GETBuyXPayYPromotionsBuyXPayYPromotionId200Response.md @@ -0,0 +1,56 @@ +# GETBuyXPayYPromotionsBuyXPayYPromotionId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData**](GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData.md) | | [optional] + +## Methods + +### NewGETBuyXPayYPromotionsBuyXPayYPromotionId200Response + +`func NewGETBuyXPayYPromotionsBuyXPayYPromotionId200Response() *GETBuyXPayYPromotionsBuyXPayYPromotionId200Response` + +NewGETBuyXPayYPromotionsBuyXPayYPromotionId200Response instantiates a new GETBuyXPayYPromotionsBuyXPayYPromotionId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseWithDefaults + +`func NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseWithDefaults() *GETBuyXPayYPromotionsBuyXPayYPromotionId200Response` + +NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseWithDefaults instantiates a new GETBuyXPayYPromotionsBuyXPayYPromotionId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200Response) GetData() GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200Response) GetDataOk() (*GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200Response) SetData(v GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData.md b/api/docs/GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData.md new file mode 100644 index 00000000..b851a7ec --- /dev/null +++ b/api/docs/GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData.md @@ -0,0 +1,180 @@ +# GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes**](GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationships**](POSTBuyXPayYPromotions201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData + +`func NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData() *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData` + +NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData instantiates a new GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataWithDefaults + +`func NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataWithDefaults() *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData` + +NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataWithDefaults instantiates a new GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetAttributes() GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetAttributesOk() (*GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetAttributes(v GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes.md b/api/docs/GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes.md new file mode 100644 index 00000000..ed37e5be --- /dev/null +++ b/api/docs/GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes.md @@ -0,0 +1,750 @@ +# GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **interface{}** | The promotion's internal name. | [optional] +**Type** | Pointer to **interface{}** | The promotion's type. | [optional] +**CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] +**StartsAt** | Pointer to **interface{}** | The activation date/time of this promotion. | [optional] +**ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this promotion (must be after starts_at). | [optional] +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] +**TotalUsageCount** | Pointer to **interface{}** | The number of times this promotion has been applied. | [optional] +**Active** | Pointer to **interface{}** | Indicates if the promotion is active (enabled and not expired). | [optional] +**Status** | Pointer to **interface{}** | The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. | [optional] +**DisabledAt** | Pointer to **interface{}** | Time at which this resource was disabled. | [optional] +**CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] +**UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] +**X** | Pointer to **interface{}** | The quantity which defines the threshold for free items (works by multiple of x). | [optional] +**Y** | Pointer to **interface{}** | The quantity which defines how many items you get for free, with the formula x-y. | [optional] +**CheapestFree** | Pointer to **interface{}** | Indicates if the cheapest items are discounted, allowing all of the SKUs in the associated list to be eligible for counting. | [optional] + +## Methods + +### NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes + +`func NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes() *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes` + +NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes instantiates a new GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributesWithDefaults + +`func NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributesWithDefaults() *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes` + +NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributesWithDefaults instantiates a new GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + +### HasName + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetType + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetCurrencyCode + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCurrencyCode() interface{}` + +GetCurrencyCode returns the CurrencyCode field if non-nil, zero value otherwise. + +### GetCurrencyCodeOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCurrencyCodeOk() (*interface{}, bool)` + +GetCurrencyCodeOk returns a tuple with the CurrencyCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrencyCode + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetCurrencyCode(v interface{})` + +SetCurrencyCode sets CurrencyCode field to given value. + +### HasCurrencyCode + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasCurrencyCode() bool` + +HasCurrencyCode returns a boolean if a field has been set. + +### SetCurrencyCodeNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetCurrencyCodeNil(b bool)` + + SetCurrencyCodeNil sets the value for CurrencyCode to be an explicit nil + +### UnsetCurrencyCode +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetCurrencyCode()` + +UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil +### GetStartsAt + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetStartsAt() interface{}` + +GetStartsAt returns the StartsAt field if non-nil, zero value otherwise. + +### GetStartsAtOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool)` + +GetStartsAtOk returns a tuple with the StartsAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartsAt + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetStartsAt(v interface{})` + +SetStartsAt sets StartsAt field to given value. + +### HasStartsAt + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasStartsAt() bool` + +HasStartsAt returns a boolean if a field has been set. + +### SetStartsAtNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetStartsAtNil(b bool)` + + SetStartsAtNil sets the value for StartsAt to be an explicit nil + +### UnsetStartsAt +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetStartsAt()` + +UnsetStartsAt ensures that no value is present for StartsAt, not even an explicit nil +### GetExpiresAt + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetExpiresAt() interface{}` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetExpiresAt(v interface{})` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetTotalUsageLimit + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetTotalUsageLimit() interface{}` + +GetTotalUsageLimit returns the TotalUsageLimit field if non-nil, zero value otherwise. + +### GetTotalUsageLimitOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetTotalUsageLimitOk() (*interface{}, bool)` + +GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalUsageLimit + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetTotalUsageLimit(v interface{})` + +SetTotalUsageLimit sets TotalUsageLimit field to given value. + +### HasTotalUsageLimit + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasTotalUsageLimit() bool` + +HasTotalUsageLimit returns a boolean if a field has been set. + +### SetTotalUsageLimitNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetTotalUsageLimitNil(b bool)` + + SetTotalUsageLimitNil sets the value for TotalUsageLimit to be an explicit nil + +### UnsetTotalUsageLimit +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetTotalUsageLimit()` + +UnsetTotalUsageLimit ensures that no value is present for TotalUsageLimit, not even an explicit nil +### GetTotalUsageCount + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetTotalUsageCount() interface{}` + +GetTotalUsageCount returns the TotalUsageCount field if non-nil, zero value otherwise. + +### GetTotalUsageCountOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetTotalUsageCountOk() (*interface{}, bool)` + +GetTotalUsageCountOk returns a tuple with the TotalUsageCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalUsageCount + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetTotalUsageCount(v interface{})` + +SetTotalUsageCount sets TotalUsageCount field to given value. + +### HasTotalUsageCount + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasTotalUsageCount() bool` + +HasTotalUsageCount returns a boolean if a field has been set. + +### SetTotalUsageCountNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetTotalUsageCountNil(b bool)` + + SetTotalUsageCountNil sets the value for TotalUsageCount to be an explicit nil + +### UnsetTotalUsageCount +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetTotalUsageCount()` + +UnsetTotalUsageCount ensures that no value is present for TotalUsageCount, not even an explicit nil +### GetActive + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetActive() interface{}` + +GetActive returns the Active field if non-nil, zero value otherwise. + +### GetActiveOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetActiveOk() (*interface{}, bool)` + +GetActiveOk returns a tuple with the Active field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActive + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetActive(v interface{})` + +SetActive sets Active field to given value. + +### HasActive + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasActive() bool` + +HasActive returns a boolean if a field has been set. + +### SetActiveNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetActiveNil(b bool)` + + SetActiveNil sets the value for Active to be an explicit nil + +### UnsetActive +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetActive()` + +UnsetActive ensures that no value is present for Active, not even an explicit nil +### GetStatus + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetStatus() interface{}` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetStatus(v interface{})` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### SetStatusNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetStatusNil(b bool)` + + SetStatusNil sets the value for Status to be an explicit nil + +### UnsetStatus +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetStatus()` + +UnsetStatus ensures that no value is present for Status, not even an explicit nil +### GetDisabledAt + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetDisabledAt() interface{}` + +GetDisabledAt returns the DisabledAt field if non-nil, zero value otherwise. + +### GetDisabledAtOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool)` + +GetDisabledAtOk returns a tuple with the DisabledAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabledAt + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetDisabledAt(v interface{})` + +SetDisabledAt sets DisabledAt field to given value. + +### HasDisabledAt + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasDisabledAt() bool` + +HasDisabledAt returns a boolean if a field has been set. + +### SetDisabledAtNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetDisabledAtNil(b bool)` + + SetDisabledAtNil sets the value for DisabledAt to be an explicit nil + +### UnsetDisabledAt +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetDisabledAt()` + +UnsetDisabledAt ensures that no value is present for DisabledAt, not even an explicit nil +### GetCreatedAt + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCreatedAt() interface{}` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetCreatedAt(v interface{})` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### SetCreatedAtNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetCreatedAtNil(b bool)` + + SetCreatedAtNil sets the value for CreatedAt to be an explicit nil + +### UnsetCreatedAt +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetCreatedAt()` + +UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil +### GetUpdatedAt + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetUpdatedAt() interface{}` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetUpdatedAt(v interface{})` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### SetUpdatedAtNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetUpdatedAtNil(b bool)` + + SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil + +### UnsetUpdatedAt +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetUpdatedAt()` + +UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil +### GetReference + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil +### GetX + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetX() interface{}` + +GetX returns the X field if non-nil, zero value otherwise. + +### GetXOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetXOk() (*interface{}, bool)` + +GetXOk returns a tuple with the X field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetX + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetX(v interface{})` + +SetX sets X field to given value. + +### HasX + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasX() bool` + +HasX returns a boolean if a field has been set. + +### SetXNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetXNil(b bool)` + + SetXNil sets the value for X to be an explicit nil + +### UnsetX +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetX()` + +UnsetX ensures that no value is present for X, not even an explicit nil +### GetY + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetY() interface{}` + +GetY returns the Y field if non-nil, zero value otherwise. + +### GetYOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetYOk() (*interface{}, bool)` + +GetYOk returns a tuple with the Y field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetY + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetY(v interface{})` + +SetY sets Y field to given value. + +### HasY + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasY() bool` + +HasY returns a boolean if a field has been set. + +### SetYNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetYNil(b bool)` + + SetYNil sets the value for Y to be an explicit nil + +### UnsetY +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetY()` + +UnsetY ensures that no value is present for Y, not even an explicit nil +### GetCheapestFree + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCheapestFree() interface{}` + +GetCheapestFree returns the CheapestFree field if non-nil, zero value otherwise. + +### GetCheapestFreeOk + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCheapestFreeOk() (*interface{}, bool)` + +GetCheapestFreeOk returns a tuple with the CheapestFree field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCheapestFree + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetCheapestFree(v interface{})` + +SetCheapestFree sets CheapestFree field to given value. + +### HasCheapestFree + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasCheapestFree() bool` + +HasCheapestFree returns a boolean if a field has been set. + +### SetCheapestFreeNil + +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetCheapestFreeNil(b bool)` + + SetCheapestFreeNil sets the value for CheapestFree to be an explicit nil + +### UnsetCheapestFree +`func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetCheapestFree()` + +UnsetCheapestFree ensures that no value is present for CheapestFree, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETCapturesCaptureId200ResponseDataAttributes.md b/api/docs/GETCapturesCaptureId200ResponseDataAttributes.md index 1a21a7eb..167be3f2 100644 --- a/api/docs/GETCapturesCaptureId200ResponseDataAttributes.md +++ b/api/docs/GETCapturesCaptureId200ResponseDataAttributes.md @@ -4,21 +4,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | Pointer to **interface{}** | The transaction number, auto generated | [optional] +**Number** | Pointer to **interface{}** | The transaction number, auto generated. | [optional] +**Type** | Pointer to **interface{}** | The transaction's type. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order. | [optional] **AmountCents** | Pointer to **interface{}** | The transaction amount, in cents. | [optional] **AmountFloat** | Pointer to **interface{}** | The transaction amount, float. | [optional] **FormattedAmount** | Pointer to **interface{}** | The transaction amount, formatted. | [optional] -**Succeeded** | Pointer to **interface{}** | Indicates if the transaction is successful | [optional] -**Message** | Pointer to **interface{}** | The message returned by the payment gateway | [optional] -**ErrorCode** | Pointer to **interface{}** | The error code, if any, returned by the payment gateway | [optional] -**ErrorDetail** | Pointer to **interface{}** | The error detail, if any, returned by the payment gateway | [optional] -**Token** | Pointer to **interface{}** | The token identifying the transaction, returned by the payment gateway | [optional] -**GatewayTransactionId** | Pointer to **interface{}** | The ID identifying the transaction, returned by the payment gateway | [optional] +**Succeeded** | Pointer to **interface{}** | Indicates if the transaction is successful. | [optional] +**Message** | Pointer to **interface{}** | The message returned by the payment gateway. | [optional] +**ErrorCode** | Pointer to **interface{}** | The error code, if any, returned by the payment gateway. | [optional] +**ErrorDetail** | Pointer to **interface{}** | The error detail, if any, returned by the payment gateway. | [optional] +**Token** | Pointer to **interface{}** | The token identifying the transaction, returned by the payment gateway. | [optional] +**GatewayTransactionId** | Pointer to **interface{}** | The ID identifying the transaction, returned by the payment gateway. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **RefundAmountCents** | Pointer to **interface{}** | The amount to be refunded, in cents. | [optional] **RefundAmountFloat** | Pointer to **interface{}** | The amount to be refunded, float. | [optional] @@ -81,6 +82,41 @@ HasNumber returns a boolean if a field has been set. `func (o *GETCapturesCaptureId200ResponseDataAttributes) UnsetNumber()` UnsetNumber ensures that no value is present for Number, not even an explicit nil +### GetType + +`func (o *GETCapturesCaptureId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETCapturesCaptureId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETCapturesCaptureId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETCapturesCaptureId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETCapturesCaptureId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETCapturesCaptureId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetCurrencyCode `func (o *GETCapturesCaptureId200ResponseDataAttributes) GetCurrencyCode() interface{}` diff --git a/api/docs/GETCapturesCaptureId200ResponseDataRelationships.md b/api/docs/GETCapturesCaptureId200ResponseDataRelationships.md index 593e30fd..b957dba4 100644 --- a/api/docs/GETCapturesCaptureId200ResponseDataRelationships.md +++ b/api/docs/GETCapturesCaptureId200ResponseDataRelationships.md @@ -5,9 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Order** | Pointer to [**POSTAdyenPayments201ResponseDataRelationshipsOrder**](POSTAdyenPayments201ResponseDataRelationshipsOrder.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] **ReferenceAuthorization** | Pointer to [**GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization**](GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization.md) | | [optional] **Refunds** | Pointer to [**GETCapturesCaptureId200ResponseDataRelationshipsRefunds**](GETCapturesCaptureId200ResponseDataRelationshipsRefunds.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] +**Return** | Pointer to [**GETCapturesCaptureId200ResponseDataRelationshipsReturn**](GETCapturesCaptureId200ResponseDataRelationshipsReturn.md) | | [optional] ## Methods @@ -53,6 +56,81 @@ SetOrder sets Order field to given value. HasOrder returns a boolean if a field has been set. +### GetAttachments + +`func (o *GETCapturesCaptureId200ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *GETCapturesCaptureId200ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *GETCapturesCaptureId200ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *GETCapturesCaptureId200ResponseDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + +### GetEvents + +`func (o *GETCapturesCaptureId200ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *GETCapturesCaptureId200ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *GETCapturesCaptureId200ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *GETCapturesCaptureId200ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetVersions + +`func (o *GETCapturesCaptureId200ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *GETCapturesCaptureId200ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *GETCapturesCaptureId200ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *GETCapturesCaptureId200ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetReferenceAuthorization `func (o *GETCapturesCaptureId200ResponseDataRelationships) GetReferenceAuthorization() GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization` @@ -103,30 +181,30 @@ SetRefunds sets Refunds field to given value. HasRefunds returns a boolean if a field has been set. -### GetEvents +### GetReturn -`func (o *GETCapturesCaptureId200ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` +`func (o *GETCapturesCaptureId200ResponseDataRelationships) GetReturn() GETCapturesCaptureId200ResponseDataRelationshipsReturn` -GetEvents returns the Events field if non-nil, zero value otherwise. +GetReturn returns the Return field if non-nil, zero value otherwise. -### GetEventsOk +### GetReturnOk -`func (o *GETCapturesCaptureId200ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` +`func (o *GETCapturesCaptureId200ResponseDataRelationships) GetReturnOk() (*GETCapturesCaptureId200ResponseDataRelationshipsReturn, bool)` -GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +GetReturnOk returns a tuple with the Return field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetEvents +### SetReturn -`func (o *GETCapturesCaptureId200ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` +`func (o *GETCapturesCaptureId200ResponseDataRelationships) SetReturn(v GETCapturesCaptureId200ResponseDataRelationshipsReturn)` -SetEvents sets Events field to given value. +SetReturn sets Return field to given value. -### HasEvents +### HasReturn -`func (o *GETCapturesCaptureId200ResponseDataRelationships) HasEvents() bool` +`func (o *GETCapturesCaptureId200ResponseDataRelationships) HasReturn() bool` -HasEvents returns a boolean if a field has been set. +HasReturn returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/GETCapturesCaptureId200ResponseDataRelationshipsReturn.md b/api/docs/GETCapturesCaptureId200ResponseDataRelationshipsReturn.md new file mode 100644 index 00000000..c114844a --- /dev/null +++ b/api/docs/GETCapturesCaptureId200ResponseDataRelationshipsReturn.md @@ -0,0 +1,82 @@ +# GETCapturesCaptureId200ResponseDataRelationshipsReturn + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**GETCapturesCaptureId200ResponseDataRelationshipsReturnData**](GETCapturesCaptureId200ResponseDataRelationshipsReturnData.md) | | [optional] + +## Methods + +### NewGETCapturesCaptureId200ResponseDataRelationshipsReturn + +`func NewGETCapturesCaptureId200ResponseDataRelationshipsReturn() *GETCapturesCaptureId200ResponseDataRelationshipsReturn` + +NewGETCapturesCaptureId200ResponseDataRelationshipsReturn instantiates a new GETCapturesCaptureId200ResponseDataRelationshipsReturn object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETCapturesCaptureId200ResponseDataRelationshipsReturnWithDefaults + +`func NewGETCapturesCaptureId200ResponseDataRelationshipsReturnWithDefaults() *GETCapturesCaptureId200ResponseDataRelationshipsReturn` + +NewGETCapturesCaptureId200ResponseDataRelationshipsReturnWithDefaults instantiates a new GETCapturesCaptureId200ResponseDataRelationshipsReturn object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturn) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturn) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturn) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturn) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturn) GetData() GETCapturesCaptureId200ResponseDataRelationshipsReturnData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturn) GetDataOk() (*GETCapturesCaptureId200ResponseDataRelationshipsReturnData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturn) SetData(v GETCapturesCaptureId200ResponseDataRelationshipsReturnData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturn) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETCapturesCaptureId200ResponseDataRelationshipsReturnData.md b/api/docs/GETCapturesCaptureId200ResponseDataRelationshipsReturnData.md new file mode 100644 index 00000000..ecea4a72 --- /dev/null +++ b/api/docs/GETCapturesCaptureId200ResponseDataRelationshipsReturnData.md @@ -0,0 +1,102 @@ +# GETCapturesCaptureId200ResponseDataRelationshipsReturnData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewGETCapturesCaptureId200ResponseDataRelationshipsReturnData + +`func NewGETCapturesCaptureId200ResponseDataRelationshipsReturnData() *GETCapturesCaptureId200ResponseDataRelationshipsReturnData` + +NewGETCapturesCaptureId200ResponseDataRelationshipsReturnData instantiates a new GETCapturesCaptureId200ResponseDataRelationshipsReturnData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETCapturesCaptureId200ResponseDataRelationshipsReturnDataWithDefaults + +`func NewGETCapturesCaptureId200ResponseDataRelationshipsReturnDataWithDefaults() *GETCapturesCaptureId200ResponseDataRelationshipsReturnData` + +NewGETCapturesCaptureId200ResponseDataRelationshipsReturnDataWithDefaults instantiates a new GETCapturesCaptureId200ResponseDataRelationshipsReturnData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETCarrierAccountsCarrierAccountId200ResponseDataAttributes.md b/api/docs/GETCarrierAccountsCarrierAccountId200ResponseDataAttributes.md index 73ec0697..fb867e4b 100644 --- a/api/docs/GETCarrierAccountsCarrierAccountId200ResponseDataAttributes.md +++ b/api/docs/GETCarrierAccountsCarrierAccountId200ResponseDataAttributes.md @@ -7,10 +7,11 @@ Name | Type | Description | Notes **Name** | Pointer to **interface{}** | The carrier account internal name. | [optional] **EasypostType** | Pointer to **interface{}** | The Easypost service carrier type. | [optional] **EasypostId** | Pointer to **interface{}** | The Easypost internal reference ID. | [optional] +**Credentials** | Pointer to **interface{}** | The Easypost carrier accounts credentials fields. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -137,6 +138,41 @@ HasEasypostId returns a boolean if a field has been set. `func (o *GETCarrierAccountsCarrierAccountId200ResponseDataAttributes) UnsetEasypostId()` UnsetEasypostId ensures that no value is present for EasypostId, not even an explicit nil +### GetCredentials + +`func (o *GETCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetCredentials() interface{}` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *GETCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetCredentialsOk() (*interface{}, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *GETCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetCredentials(v interface{})` + +SetCredentials sets Credentials field to given value. + +### HasCredentials + +`func (o *GETCarrierAccountsCarrierAccountId200ResponseDataAttributes) HasCredentials() bool` + +HasCredentials returns a boolean if a field has been set. + +### SetCredentialsNil + +`func (o *GETCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetCredentialsNil(b bool)` + + SetCredentialsNil sets the value for Credentials to be an explicit nil + +### UnsetCredentials +`func (o *GETCarrierAccountsCarrierAccountId200ResponseDataAttributes) UnsetCredentials()` + +UnsetCredentials ensures that no value is present for Credentials, not even an explicit nil ### GetCreatedAt `func (o *GETCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETCheckoutComGatewaysCheckoutComGatewayId200ResponseDataAttributes.md b/api/docs/GETCheckoutComGatewaysCheckoutComGatewayId200ResponseDataAttributes.md index 8d4075c7..f8a6eeb6 100644 --- a/api/docs/GETCheckoutComGatewaysCheckoutComGatewayId200ResponseDataAttributes.md +++ b/api/docs/GETCheckoutComGatewaysCheckoutComGatewayId200ResponseDataAttributes.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **WebhookEndpointId** | Pointer to **interface{}** | The gateway webhook endpoint ID, generated automatically. | [optional] **WebhookEndpointSecret** | Pointer to **interface{}** | The gateway webhook endpoint secret, generated automatically. | [optional] diff --git a/api/docs/GETCheckoutComPaymentsCheckoutComPaymentId200ResponseDataAttributes.md b/api/docs/GETCheckoutComPaymentsCheckoutComPaymentId200ResponseDataAttributes.md index da551a2f..5f85b764 100644 --- a/api/docs/GETCheckoutComPaymentsCheckoutComPaymentId200ResponseDataAttributes.md +++ b/api/docs/GETCheckoutComPaymentsCheckoutComPaymentId200ResponseDataAttributes.md @@ -15,11 +15,11 @@ Name | Type | Description | Notes **RedirectUri** | Pointer to **interface{}** | The URI that the customer should be redirected to in order to complete the payment. | [optional] **PaymentResponse** | Pointer to **interface{}** | The Checkout.com payment response, used to fetch internal data. | [optional] **MismatchedAmounts** | Pointer to **interface{}** | Indicates if the order current amount differs form the one of the associated authorization. | [optional] -**PaymentInstrument** | Pointer to **interface{}** | Information about the payment instrument used in the transaction | [optional] +**PaymentInstrument** | Pointer to **interface{}** | Information about the payment instrument used in the transaction. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETCleanupsCleanupId200ResponseDataAttributes.md b/api/docs/GETCleanupsCleanupId200ResponseDataAttributes.md index 14d378eb..d2e71e3b 100644 --- a/api/docs/GETCleanupsCleanupId200ResponseDataAttributes.md +++ b/api/docs/GETCleanupsCleanupId200ResponseDataAttributes.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData.md b/api/docs/GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData.md index 57964201..26795fba 100644 --- a/api/docs/GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData.md +++ b/api/docs/GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | Pointer to **interface{}** | The resource's id | [optional] **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] -**Attributes** | Pointer to [**GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes**](GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md) | | [optional] +**Attributes** | Pointer to [**GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes**](GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes.md) | | [optional] **Relationships** | Pointer to [**POSTCouponCodesPromotionRules201ResponseDataRelationships**](POSTCouponCodesPromotionRules201ResponseDataRelationships.md) | | [optional] ## Methods @@ -126,20 +126,20 @@ HasLinks returns a boolean if a field has been set. ### GetAttributes -`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData) GetAttributes() GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes` +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData) GetAttributes() GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData) GetAttributesOk() (*GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool)` +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData) GetAttributesOk() (*GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData) SetAttributes(v GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes)` +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData) SetAttributes(v GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes)` SetAttributes sets Attributes field to given value. diff --git a/api/docs/GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes.md b/api/docs/GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes.md new file mode 100644 index 00000000..894c7793 --- /dev/null +++ b/api/docs/GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes.md @@ -0,0 +1,246 @@ +# GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The promotion rule's type. | [optional] +**CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] +**UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes + +`func NewGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes() *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes` + +NewGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes instantiates a new GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributesWithDefaults + +`func NewGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributesWithDefaults() *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes` + +NewGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributesWithDefaults instantiates a new GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetCreatedAt + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetCreatedAt() interface{}` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) SetCreatedAt(v interface{})` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### SetCreatedAtNil + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) SetCreatedAtNil(b bool)` + + SetCreatedAtNil sets the value for CreatedAt to be an explicit nil + +### UnsetCreatedAt +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) UnsetCreatedAt()` + +UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil +### GetUpdatedAt + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetUpdatedAt() interface{}` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) SetUpdatedAt(v interface{})` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### SetUpdatedAtNil + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) SetUpdatedAtNil(b bool)` + + SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil + +### UnsetUpdatedAt +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) UnsetUpdatedAt()` + +UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil +### GetReference + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETCouponRecipientsCouponRecipientId200ResponseDataAttributes.md b/api/docs/GETCouponRecipientsCouponRecipientId200ResponseDataAttributes.md index be6eacaf..65ec360c 100644 --- a/api/docs/GETCouponRecipientsCouponRecipientId200ResponseDataAttributes.md +++ b/api/docs/GETCouponRecipientsCouponRecipientId200ResponseDataAttributes.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Email** | Pointer to **interface{}** | The recipient email address | [optional] -**FirstName** | Pointer to **interface{}** | The recipient first name | [optional] -**LastName** | Pointer to **interface{}** | The recipient last name | [optional] +**Email** | Pointer to **interface{}** | The recipient email address. | [optional] +**FirstName** | Pointer to **interface{}** | The recipient first name. | [optional] +**LastName** | Pointer to **interface{}** | The recipient last name. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETCouponsCouponId200ResponseDataAttributes.md b/api/docs/GETCouponsCouponId200ResponseDataAttributes.md index b0d67891..1f62dd7e 100644 --- a/api/docs/GETCouponsCouponId200ResponseDataAttributes.md +++ b/api/docs/GETCouponsCouponId200ResponseDataAttributes.md @@ -9,10 +9,11 @@ Name | Type | Description | Notes **UsageLimit** | Pointer to **interface{}** | The total number of times this coupon can be used. | [optional] **UsageCount** | Pointer to **interface{}** | The number of times this coupon has been used. | [optional] **RecipientEmail** | Pointer to **interface{}** | The email address of the associated recipient. When creating or updating a coupon, this is a shortcut to find or create the associated recipient by email. | [optional] +**ExpiresAt** | Pointer to **interface{}** | Time at which the coupon will expire. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -209,6 +210,41 @@ HasRecipientEmail returns a boolean if a field has been set. `func (o *GETCouponsCouponId200ResponseDataAttributes) UnsetRecipientEmail()` UnsetRecipientEmail ensures that no value is present for RecipientEmail, not even an explicit nil +### GetExpiresAt + +`func (o *GETCouponsCouponId200ResponseDataAttributes) GetExpiresAt() interface{}` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *GETCouponsCouponId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *GETCouponsCouponId200ResponseDataAttributes) SetExpiresAt(v interface{})` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *GETCouponsCouponId200ResponseDataAttributes) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *GETCouponsCouponId200ResponseDataAttributes) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *GETCouponsCouponId200ResponseDataAttributes) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil ### GetCreatedAt `func (o *GETCouponsCouponId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETOrderValidationRules200Response.md b/api/docs/GETCustomPromotionRules200Response.md similarity index 59% rename from api/docs/GETOrderValidationRules200Response.md rename to api/docs/GETCustomPromotionRules200Response.md index d7036554..bbf18ca4 100644 --- a/api/docs/GETOrderValidationRules200Response.md +++ b/api/docs/GETCustomPromotionRules200Response.md @@ -1,4 +1,4 @@ -# GETOrderValidationRules200Response +# GETCustomPromotionRules200Response ## Properties @@ -8,56 +8,56 @@ Name | Type | Description | Notes ## Methods -### NewGETOrderValidationRules200Response +### NewGETCustomPromotionRules200Response -`func NewGETOrderValidationRules200Response() *GETOrderValidationRules200Response` +`func NewGETCustomPromotionRules200Response() *GETCustomPromotionRules200Response` -NewGETOrderValidationRules200Response instantiates a new GETOrderValidationRules200Response object +NewGETCustomPromotionRules200Response instantiates a new GETCustomPromotionRules200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewGETOrderValidationRules200ResponseWithDefaults +### NewGETCustomPromotionRules200ResponseWithDefaults -`func NewGETOrderValidationRules200ResponseWithDefaults() *GETOrderValidationRules200Response` +`func NewGETCustomPromotionRules200ResponseWithDefaults() *GETCustomPromotionRules200Response` -NewGETOrderValidationRules200ResponseWithDefaults instantiates a new GETOrderValidationRules200Response object +NewGETCustomPromotionRules200ResponseWithDefaults instantiates a new GETCustomPromotionRules200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetData -`func (o *GETOrderValidationRules200Response) GetData() interface{}` +`func (o *GETCustomPromotionRules200Response) GetData() interface{}` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *GETOrderValidationRules200Response) GetDataOk() (*interface{}, bool)` +`func (o *GETCustomPromotionRules200Response) GetDataOk() (*interface{}, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *GETOrderValidationRules200Response) SetData(v interface{})` +`func (o *GETCustomPromotionRules200Response) SetData(v interface{})` SetData sets Data field to given value. ### HasData -`func (o *GETOrderValidationRules200Response) HasData() bool` +`func (o *GETCustomPromotionRules200Response) HasData() bool` HasData returns a boolean if a field has been set. ### SetDataNil -`func (o *GETOrderValidationRules200Response) SetDataNil(b bool)` +`func (o *GETCustomPromotionRules200Response) SetDataNil(b bool)` SetDataNil sets the value for Data to be an explicit nil ### UnsetData -`func (o *GETOrderValidationRules200Response) UnsetData()` +`func (o *GETCustomPromotionRules200Response) UnsetData()` UnsetData ensures that no value is present for Data, not even an explicit nil diff --git a/api/docs/GETCustomPromotionRulesCustomPromotionRuleId200Response.md b/api/docs/GETCustomPromotionRulesCustomPromotionRuleId200Response.md new file mode 100644 index 00000000..f193aed5 --- /dev/null +++ b/api/docs/GETCustomPromotionRulesCustomPromotionRuleId200Response.md @@ -0,0 +1,56 @@ +# GETCustomPromotionRulesCustomPromotionRuleId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**GETCustomPromotionRulesCustomPromotionRuleId200ResponseData**](GETCustomPromotionRulesCustomPromotionRuleId200ResponseData.md) | | [optional] + +## Methods + +### NewGETCustomPromotionRulesCustomPromotionRuleId200Response + +`func NewGETCustomPromotionRulesCustomPromotionRuleId200Response() *GETCustomPromotionRulesCustomPromotionRuleId200Response` + +NewGETCustomPromotionRulesCustomPromotionRuleId200Response instantiates a new GETCustomPromotionRulesCustomPromotionRuleId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseWithDefaults + +`func NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseWithDefaults() *GETCustomPromotionRulesCustomPromotionRuleId200Response` + +NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseWithDefaults instantiates a new GETCustomPromotionRulesCustomPromotionRuleId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200Response) GetData() GETCustomPromotionRulesCustomPromotionRuleId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200Response) GetDataOk() (*GETCustomPromotionRulesCustomPromotionRuleId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200Response) SetData(v GETCustomPromotionRulesCustomPromotionRuleId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETOrderValidationRulesOrderValidationRuleId200ResponseData.md b/api/docs/GETCustomPromotionRulesCustomPromotionRuleId200ResponseData.md similarity index 54% rename from api/docs/GETOrderValidationRulesOrderValidationRuleId200ResponseData.md rename to api/docs/GETCustomPromotionRulesCustomPromotionRuleId200ResponseData.md index a194ff59..7a57e196 100644 --- a/api/docs/GETOrderValidationRulesOrderValidationRuleId200ResponseData.md +++ b/api/docs/GETCustomPromotionRulesCustomPromotionRuleId200ResponseData.md @@ -1,4 +1,4 @@ -# GETOrderValidationRulesOrderValidationRuleId200ResponseData +# GETCustomPromotionRulesCustomPromotionRuleId200ResponseData ## Properties @@ -7,170 +7,170 @@ Name | Type | Description | Notes **Id** | Pointer to **interface{}** | The resource's id | [optional] **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] -**Attributes** | Pointer to [**GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes**](GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTBillingInfoValidationRules201ResponseDataRelationships**](POSTBillingInfoValidationRules201ResponseDataRelationships.md) | | [optional] +**Attributes** | Pointer to [**GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes**](GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTCustomPromotionRules201ResponseDataRelationships**](POSTCustomPromotionRules201ResponseDataRelationships.md) | | [optional] ## Methods -### NewGETOrderValidationRulesOrderValidationRuleId200ResponseData +### NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseData -`func NewGETOrderValidationRulesOrderValidationRuleId200ResponseData() *GETOrderValidationRulesOrderValidationRuleId200ResponseData` +`func NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseData() *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData` -NewGETOrderValidationRulesOrderValidationRuleId200ResponseData instantiates a new GETOrderValidationRulesOrderValidationRuleId200ResponseData object +NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseData instantiates a new GETCustomPromotionRulesCustomPromotionRuleId200ResponseData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewGETOrderValidationRulesOrderValidationRuleId200ResponseDataWithDefaults +### NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataWithDefaults -`func NewGETOrderValidationRulesOrderValidationRuleId200ResponseDataWithDefaults() *GETOrderValidationRulesOrderValidationRuleId200ResponseData` +`func NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataWithDefaults() *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData` -NewGETOrderValidationRulesOrderValidationRuleId200ResponseDataWithDefaults instantiates a new GETOrderValidationRulesOrderValidationRuleId200ResponseData object +NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataWithDefaults instantiates a new GETCustomPromotionRulesCustomPromotionRuleId200ResponseData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetId -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetId() interface{}` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetIdOk() (*interface{}, bool)` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) SetId(v interface{})` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) HasId() bool` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) SetIdNil(b bool)` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) UnsetId()` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil ### GetType -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetType() interface{}` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetTypeOk() (*interface{}, bool)` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) SetType(v interface{})` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) HasType() bool` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) SetTypeNil(b bool)` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) UnsetType()` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetLinks -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` GetLinks returns the Links field if non-nil, zero value otherwise. ### GetLinksOk -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLinks -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` SetLinks sets Links field to given value. ### HasLinks -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) HasLinks() bool` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasLinks() bool` HasLinks returns a boolean if a field has been set. ### GetAttributes -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetAttributes() GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetAttributes() GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetAttributesOk() (*GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool)` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetAttributesOk() (*GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) SetAttributes(v GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes)` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetAttributes(v GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes)` SetAttributes sets Attributes field to given value. ### HasAttributes -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) HasAttributes() bool` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasAttributes() bool` HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetRelationships() POSTBillingInfoValidationRules201ResponseDataRelationships` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetRelationships() POSTCustomPromotionRules201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetRelationshipsOk() (*POSTBillingInfoValidationRules201ResponseDataRelationships, bool)` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetRelationshipsOk() (*POSTCustomPromotionRules201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) SetRelationships(v POSTBillingInfoValidationRules201ResponseDataRelationships)` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetRelationships(v POSTCustomPromotionRules201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. ### HasRelationships -`func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) HasRelationships() bool` +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasRelationships() bool` HasRelationships returns a boolean if a field has been set. diff --git a/api/docs/GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes.md b/api/docs/GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes.md new file mode 100644 index 00000000..d931330d --- /dev/null +++ b/api/docs/GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes.md @@ -0,0 +1,282 @@ +# GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The promotion rule's type. | [optional] +**CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] +**UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] +**Filters** | Pointer to **interface{}** | The filters used to trigger promotion on the matching order and its relationships attributes. | [optional] + +## Methods + +### NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes + +`func NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes() *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes` + +NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes instantiates a new GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributesWithDefaults + +`func NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributesWithDefaults() *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes` + +NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributesWithDefaults instantiates a new GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetCreatedAt + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetCreatedAt() interface{}` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetCreatedAt(v interface{})` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### SetCreatedAtNil + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetCreatedAtNil(b bool)` + + SetCreatedAtNil sets the value for CreatedAt to be an explicit nil + +### UnsetCreatedAt +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) UnsetCreatedAt()` + +UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil +### GetUpdatedAt + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetUpdatedAt() interface{}` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetUpdatedAt(v interface{})` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### SetUpdatedAtNil + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetUpdatedAtNil(b bool)` + + SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil + +### UnsetUpdatedAt +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) UnsetUpdatedAt()` + +UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil +### GetReference + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil +### GetFilters + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetFilters() interface{}` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetFiltersOk() (*interface{}, bool)` + +GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilters + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetFilters(v interface{})` + +SetFilters sets Filters field to given value. + +### HasFilters + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasFilters() bool` + +HasFilters returns a boolean if a field has been set. + +### SetFiltersNil + +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetFiltersNil(b bool)` + + SetFiltersNil sets the value for Filters to be an explicit nil + +### UnsetFilters +`func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) UnsetFilters()` + +UnsetFilters ensures that no value is present for Filters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETCustomerAddressesCustomerAddressId200ResponseDataAttributes.md b/api/docs/GETCustomerAddressesCustomerAddressId200ResponseDataAttributes.md index 072d78c9..982fd22f 100644 --- a/api/docs/GETCustomerAddressesCustomerAddressId200ResponseDataAttributes.md +++ b/api/docs/GETCustomerAddressesCustomerAddressId200ResponseDataAttributes.md @@ -4,11 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | Returns the associated address' name | [optional] +**Name** | Pointer to **interface{}** | Returns the associated address' name. | [optional] +**CustomerEmail** | Pointer to **interface{}** | The email of the customer associated to the address. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -65,6 +66,41 @@ HasName returns a boolean if a field has been set. `func (o *GETCustomerAddressesCustomerAddressId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCustomerEmail + +`func (o *GETCustomerAddressesCustomerAddressId200ResponseDataAttributes) GetCustomerEmail() interface{}` + +GetCustomerEmail returns the CustomerEmail field if non-nil, zero value otherwise. + +### GetCustomerEmailOk + +`func (o *GETCustomerAddressesCustomerAddressId200ResponseDataAttributes) GetCustomerEmailOk() (*interface{}, bool)` + +GetCustomerEmailOk returns a tuple with the CustomerEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomerEmail + +`func (o *GETCustomerAddressesCustomerAddressId200ResponseDataAttributes) SetCustomerEmail(v interface{})` + +SetCustomerEmail sets CustomerEmail field to given value. + +### HasCustomerEmail + +`func (o *GETCustomerAddressesCustomerAddressId200ResponseDataAttributes) HasCustomerEmail() bool` + +HasCustomerEmail returns a boolean if a field has been set. + +### SetCustomerEmailNil + +`func (o *GETCustomerAddressesCustomerAddressId200ResponseDataAttributes) SetCustomerEmailNil(b bool)` + + SetCustomerEmailNil sets the value for CustomerEmail to be an explicit nil + +### UnsetCustomerEmail +`func (o *GETCustomerAddressesCustomerAddressId200ResponseDataAttributes) UnsetCustomerEmail()` + +UnsetCustomerEmail ensures that no value is present for CustomerEmail, not even an explicit nil ### GetCreatedAt `func (o *GETCustomerAddressesCustomerAddressId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETCustomerGroupsCustomerGroupId200ResponseDataAttributes.md b/api/docs/GETCustomerGroupsCustomerGroupId200ResponseDataAttributes.md index 53c4cbcf..55361f85 100644 --- a/api/docs/GETCustomerGroupsCustomerGroupId200ResponseDataAttributes.md +++ b/api/docs/GETCustomerGroupsCustomerGroupId200ResponseDataAttributes.md @@ -4,11 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The customer group's internal name | [optional] +**Name** | Pointer to **interface{}** | The customer group's internal name. | [optional] +**Code** | Pointer to **interface{}** | A string that you can use to identify the customer group (must be unique within the environment). | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -65,6 +66,41 @@ HasName returns a boolean if a field has been set. `func (o *GETCustomerGroupsCustomerGroupId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCode + +`func (o *GETCustomerGroupsCustomerGroupId200ResponseDataAttributes) GetCode() interface{}` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *GETCustomerGroupsCustomerGroupId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *GETCustomerGroupsCustomerGroupId200ResponseDataAttributes) SetCode(v interface{})` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *GETCustomerGroupsCustomerGroupId200ResponseDataAttributes) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### SetCodeNil + +`func (o *GETCustomerGroupsCustomerGroupId200ResponseDataAttributes) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *GETCustomerGroupsCustomerGroupId200ResponseDataAttributes) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil ### GetCreatedAt `func (o *GETCustomerGroupsCustomerGroupId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETCustomerPasswordResetsCustomerPasswordResetId200ResponseDataAttributes.md b/api/docs/GETCustomerPasswordResetsCustomerPasswordResetId200ResponseDataAttributes.md index 10b4268b..ed061f91 100644 --- a/api/docs/GETCustomerPasswordResetsCustomerPasswordResetId200ResponseDataAttributes.md +++ b/api/docs/GETCustomerPasswordResetsCustomerPasswordResetId200ResponseDataAttributes.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CustomerEmail** | Pointer to **interface{}** | The email of the customer that requires a password reset | [optional] +**CustomerEmail** | Pointer to **interface{}** | The email of the customer that requires a password reset. | [optional] **ResetPasswordToken** | Pointer to **interface{}** | Automatically generated on create. Send its value as the '_reset_password_token' argument when updating the customer password. | [optional] **ResetPasswordAt** | Pointer to **interface{}** | Time at which the password was reset. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes.md b/api/docs/GETCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes.md index 7546a4d6..43a34db0 100644 --- a/api/docs/GETCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes.md +++ b/api/docs/GETCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | Returns the associated payment source's name | [optional] -**CustomerToken** | Pointer to **interface{}** | Returns the customer gateway token stored in the gateway | [optional] -**PaymentSourceToken** | Pointer to **interface{}** | Returns the payment source token stored in the gateway | [optional] +**Name** | Pointer to **interface{}** | Returns the associated payment source's name. | [optional] +**CustomerToken** | Pointer to **interface{}** | Returns the customer gateway token stored in the gateway. | [optional] +**PaymentSourceToken** | Pointer to **interface{}** | Returns the payment source token stored in the gateway. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData.md b/api/docs/GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData.md index bce00ba7..187333e0 100644 --- a/api/docs/GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData.md +++ b/api/docs/GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes**](GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTCustomerPasswordResets201ResponseDataRelationships**](POSTCustomerPasswordResets201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTCustomerSubscriptions201ResponseDataRelationships**](POSTCustomerSubscriptions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetRelationships() POSTCustomerPasswordResets201ResponseDataRelationships` +`func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetRelationships() POSTCustomerSubscriptions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetRelationshipsOk() (*POSTCustomerPasswordResets201ResponseDataRelationships, bool)` +`func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetRelationshipsOk() (*POSTCustomerSubscriptions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData) SetRelationships(v POSTCustomerPasswordResets201ResponseDataRelationships)` +`func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData) SetRelationships(v POSTCustomerSubscriptions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes.md b/api/docs/GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes.md index 32ec7251..5df8c355 100644 --- a/api/docs/GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes.md +++ b/api/docs/GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CustomerEmail** | Pointer to **interface{}** | The email of the customer that owns the subscription | [optional] +**CustomerEmail** | Pointer to **interface{}** | The email of the customer that owns the subscription. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] -**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -65,6 +65,41 @@ HasCustomerEmail returns a boolean if a field has been set. `func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) UnsetCustomerEmail()` UnsetCustomerEmail ensures that no value is present for CustomerEmail, not even an explicit nil +### GetReference + +`func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil ### GetCreatedAt `func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetCreatedAt() interface{}` @@ -135,41 +170,6 @@ HasUpdatedAt returns a boolean if a field has been set. `func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) UnsetUpdatedAt()` UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil -### GetReference - -`func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetReference() interface{}` - -GetReference returns the Reference field if non-nil, zero value otherwise. - -### GetReferenceOk - -`func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` - -GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetReference - -`func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) SetReference(v interface{})` - -SetReference sets Reference field to given value. - -### HasReference - -`func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) HasReference() bool` - -HasReference returns a boolean if a field has been set. - -### SetReferenceNil - -`func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) SetReferenceNil(b bool)` - - SetReferenceNil sets the value for Reference to be an explicit nil - -### UnsetReference -`func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) UnsetReference()` - -UnsetReference ensures that no value is present for Reference, not even an explicit nil ### GetReferenceOrigin `func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetReferenceOrigin() interface{}` diff --git a/api/docs/GETCustomersCustomerId200ResponseDataAttributes.md b/api/docs/GETCustomersCustomerId200ResponseDataAttributes.md index 1ca586c1..e4ccf881 100644 --- a/api/docs/GETCustomersCustomerId200ResponseDataAttributes.md +++ b/api/docs/GETCustomersCustomerId200ResponseDataAttributes.md @@ -4,13 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Email** | Pointer to **interface{}** | The customer's email address | [optional] -**Status** | Pointer to **interface{}** | The customer's status, one of 'prospect', 'acquired', or 'repeat'. | [optional] +**Email** | Pointer to **interface{}** | The customer's email address. | [optional] +**Status** | Pointer to **interface{}** | The customer's status. One of 'prospect' (default), 'acquired', or 'repeat'. | [optional] **HasPassword** | Pointer to **interface{}** | Indicates if the customer has a password. | [optional] +**TotalOrdersCount** | Pointer to **interface{}** | The total number of orders for the customer. | [optional] +**ShopperReference** | Pointer to **interface{}** | A reference to uniquely identify the shopper during payment sessions. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -137,6 +139,76 @@ HasHasPassword returns a boolean if a field has been set. `func (o *GETCustomersCustomerId200ResponseDataAttributes) UnsetHasPassword()` UnsetHasPassword ensures that no value is present for HasPassword, not even an explicit nil +### GetTotalOrdersCount + +`func (o *GETCustomersCustomerId200ResponseDataAttributes) GetTotalOrdersCount() interface{}` + +GetTotalOrdersCount returns the TotalOrdersCount field if non-nil, zero value otherwise. + +### GetTotalOrdersCountOk + +`func (o *GETCustomersCustomerId200ResponseDataAttributes) GetTotalOrdersCountOk() (*interface{}, bool)` + +GetTotalOrdersCountOk returns a tuple with the TotalOrdersCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalOrdersCount + +`func (o *GETCustomersCustomerId200ResponseDataAttributes) SetTotalOrdersCount(v interface{})` + +SetTotalOrdersCount sets TotalOrdersCount field to given value. + +### HasTotalOrdersCount + +`func (o *GETCustomersCustomerId200ResponseDataAttributes) HasTotalOrdersCount() bool` + +HasTotalOrdersCount returns a boolean if a field has been set. + +### SetTotalOrdersCountNil + +`func (o *GETCustomersCustomerId200ResponseDataAttributes) SetTotalOrdersCountNil(b bool)` + + SetTotalOrdersCountNil sets the value for TotalOrdersCount to be an explicit nil + +### UnsetTotalOrdersCount +`func (o *GETCustomersCustomerId200ResponseDataAttributes) UnsetTotalOrdersCount()` + +UnsetTotalOrdersCount ensures that no value is present for TotalOrdersCount, not even an explicit nil +### GetShopperReference + +`func (o *GETCustomersCustomerId200ResponseDataAttributes) GetShopperReference() interface{}` + +GetShopperReference returns the ShopperReference field if non-nil, zero value otherwise. + +### GetShopperReferenceOk + +`func (o *GETCustomersCustomerId200ResponseDataAttributes) GetShopperReferenceOk() (*interface{}, bool)` + +GetShopperReferenceOk returns a tuple with the ShopperReference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShopperReference + +`func (o *GETCustomersCustomerId200ResponseDataAttributes) SetShopperReference(v interface{})` + +SetShopperReference sets ShopperReference field to given value. + +### HasShopperReference + +`func (o *GETCustomersCustomerId200ResponseDataAttributes) HasShopperReference() bool` + +HasShopperReference returns a boolean if a field has been set. + +### SetShopperReferenceNil + +`func (o *GETCustomersCustomerId200ResponseDataAttributes) SetShopperReferenceNil(b bool)` + + SetShopperReferenceNil sets the value for ShopperReference to be an explicit nil + +### UnsetShopperReference +`func (o *GETCustomersCustomerId200ResponseDataAttributes) UnsetShopperReference()` + +UnsetShopperReference ensures that no value is present for ShopperReference, not even an explicit nil ### GetCreatedAt `func (o *GETCustomersCustomerId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETDeliveryLeadTimesDeliveryLeadTimeId200ResponseDataAttributes.md b/api/docs/GETDeliveryLeadTimesDeliveryLeadTimeId200ResponseDataAttributes.md index 58846dc1..1caddc7a 100644 --- a/api/docs/GETDeliveryLeadTimesDeliveryLeadTimeId200ResponseDataAttributes.md +++ b/api/docs/GETDeliveryLeadTimesDeliveryLeadTimeId200ResponseDataAttributes.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MinHours** | Pointer to **interface{}** | The delivery lead minimum time (in hours) when shipping from the associated stock location with the associated shipping method. | [optional] **MaxHours** | Pointer to **interface{}** | The delivery lead maximun time (in hours) when shipping from the associated stock location with the associated shipping method. | [optional] -**MinDays** | Pointer to **interface{}** | The delivery lead minimum time, in days (rounded) | [optional] -**MaxDays** | Pointer to **interface{}** | The delivery lead maximun time, in days (rounded) | [optional] +**MinDays** | Pointer to **interface{}** | The delivery lead minimum time, in days (rounded). | [optional] +**MaxDays** | Pointer to **interface{}** | The delivery lead maximun time, in days (rounded). | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETEventCallbacksEventCallbackId200ResponseDataAttributes.md b/api/docs/GETEventCallbacksEventCallbackId200ResponseDataAttributes.md index 33f0b271..52f2c5da 100644 --- a/api/docs/GETEventCallbacksEventCallbackId200ResponseDataAttributes.md +++ b/api/docs/GETEventCallbacksEventCallbackId200ResponseDataAttributes.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETEventsEventId200ResponseDataAttributes.md b/api/docs/GETEventsEventId200ResponseDataAttributes.md index 9f3c7a05..f29bb01f 100644 --- a/api/docs/GETEventsEventId200ResponseDataAttributes.md +++ b/api/docs/GETEventsEventId200ResponseDataAttributes.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETEventsEventId200ResponseDataRelationships.md b/api/docs/GETEventsEventId200ResponseDataRelationships.md index 0065432d..02fba680 100644 --- a/api/docs/GETEventsEventId200ResponseDataRelationships.md +++ b/api/docs/GETEventsEventId200ResponseDataRelationships.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LastEventCallbacks** | Pointer to [**GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks**](GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks.md) | | [optional] **Webhooks** | Pointer to [**GETEventsEventId200ResponseDataRelationshipsWebhooks**](GETEventsEventId200ResponseDataRelationshipsWebhooks.md) | | [optional] +**LastEventCallbacks** | Pointer to [**GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks**](GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks.md) | | [optional] ## Methods @@ -26,55 +26,55 @@ NewGETEventsEventId200ResponseDataRelationshipsWithDefaults instantiates a new G This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetLastEventCallbacks +### GetWebhooks -`func (o *GETEventsEventId200ResponseDataRelationships) GetLastEventCallbacks() GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks` +`func (o *GETEventsEventId200ResponseDataRelationships) GetWebhooks() GETEventsEventId200ResponseDataRelationshipsWebhooks` -GetLastEventCallbacks returns the LastEventCallbacks field if non-nil, zero value otherwise. +GetWebhooks returns the Webhooks field if non-nil, zero value otherwise. -### GetLastEventCallbacksOk +### GetWebhooksOk -`func (o *GETEventsEventId200ResponseDataRelationships) GetLastEventCallbacksOk() (*GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks, bool)` +`func (o *GETEventsEventId200ResponseDataRelationships) GetWebhooksOk() (*GETEventsEventId200ResponseDataRelationshipsWebhooks, bool)` -GetLastEventCallbacksOk returns a tuple with the LastEventCallbacks field if it's non-nil, zero value otherwise +GetWebhooksOk returns a tuple with the Webhooks field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetLastEventCallbacks +### SetWebhooks -`func (o *GETEventsEventId200ResponseDataRelationships) SetLastEventCallbacks(v GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks)` +`func (o *GETEventsEventId200ResponseDataRelationships) SetWebhooks(v GETEventsEventId200ResponseDataRelationshipsWebhooks)` -SetLastEventCallbacks sets LastEventCallbacks field to given value. +SetWebhooks sets Webhooks field to given value. -### HasLastEventCallbacks +### HasWebhooks -`func (o *GETEventsEventId200ResponseDataRelationships) HasLastEventCallbacks() bool` +`func (o *GETEventsEventId200ResponseDataRelationships) HasWebhooks() bool` -HasLastEventCallbacks returns a boolean if a field has been set. +HasWebhooks returns a boolean if a field has been set. -### GetWebhooks +### GetLastEventCallbacks -`func (o *GETEventsEventId200ResponseDataRelationships) GetWebhooks() GETEventsEventId200ResponseDataRelationshipsWebhooks` +`func (o *GETEventsEventId200ResponseDataRelationships) GetLastEventCallbacks() GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks` -GetWebhooks returns the Webhooks field if non-nil, zero value otherwise. +GetLastEventCallbacks returns the LastEventCallbacks field if non-nil, zero value otherwise. -### GetWebhooksOk +### GetLastEventCallbacksOk -`func (o *GETEventsEventId200ResponseDataRelationships) GetWebhooksOk() (*GETEventsEventId200ResponseDataRelationshipsWebhooks, bool)` +`func (o *GETEventsEventId200ResponseDataRelationships) GetLastEventCallbacksOk() (*GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks, bool)` -GetWebhooksOk returns a tuple with the Webhooks field if it's non-nil, zero value otherwise +GetLastEventCallbacksOk returns a tuple with the LastEventCallbacks field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetWebhooks +### SetLastEventCallbacks -`func (o *GETEventsEventId200ResponseDataRelationships) SetWebhooks(v GETEventsEventId200ResponseDataRelationshipsWebhooks)` +`func (o *GETEventsEventId200ResponseDataRelationships) SetLastEventCallbacks(v GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks)` -SetWebhooks sets Webhooks field to given value. +SetLastEventCallbacks sets LastEventCallbacks field to given value. -### HasWebhooks +### HasLastEventCallbacks -`func (o *GETEventsEventId200ResponseDataRelationships) HasWebhooks() bool` +`func (o *GETEventsEventId200ResponseDataRelationships) HasLastEventCallbacks() bool` -HasWebhooks returns a boolean if a field has been set. +HasLastEventCallbacks returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/GETExportsExportId200ResponseData.md b/api/docs/GETExportsExportId200ResponseData.md index 7aa22d1c..8083f1bd 100644 --- a/api/docs/GETExportsExportId200ResponseData.md +++ b/api/docs/GETExportsExportId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**GETExportsExportId200ResponseDataAttributes**](GETExportsExportId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTCleanups201ResponseDataRelationships**](POSTCleanups201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTExports201ResponseDataRelationships**](POSTExports201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *GETExportsExportId200ResponseData) GetRelationships() POSTCleanups201ResponseDataRelationships` +`func (o *GETExportsExportId200ResponseData) GetRelationships() POSTExports201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *GETExportsExportId200ResponseData) GetRelationshipsOk() (*POSTCleanups201ResponseDataRelationships, bool)` +`func (o *GETExportsExportId200ResponseData) GetRelationshipsOk() (*POSTExports201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *GETExportsExportId200ResponseData) SetRelationships(v POSTCleanups201ResponseDataRelationships)` +`func (o *GETExportsExportId200ResponseData) SetRelationships(v POSTExports201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/GETExportsExportId200ResponseDataAttributes.md b/api/docs/GETExportsExportId200ResponseDataAttributes.md index 45e9972e..c55e8232 100644 --- a/api/docs/GETExportsExportId200ResponseDataAttributes.md +++ b/api/docs/GETExportsExportId200ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ResourceType** | Pointer to **interface{}** | The type of resource being exported. | [optional] **Format** | Pointer to **interface{}** | The format of the export one of 'json' (default) or 'csv'. | [optional] -**Status** | Pointer to **interface{}** | The export job status. One of 'pending' (default), 'in_progress', or 'completed'. | [optional] +**Status** | Pointer to **interface{}** | The export job status. One of 'pending' (default), 'in_progress', 'interrupted', or 'completed'. | [optional] **Includes** | Pointer to **interface{}** | List of related resources that should be included in the export. | [optional] **Filters** | Pointer to **interface{}** | The filters used to select the records to be exported. | [optional] **DryData** | Pointer to **interface{}** | Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset. | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETExternalGatewaysExternalGatewayId200ResponseDataAttributes.md b/api/docs/GETExternalGatewaysExternalGatewayId200ResponseDataAttributes.md index 9461e9f3..32433fba 100644 --- a/api/docs/GETExternalGatewaysExternalGatewayId200ResponseDataAttributes.md +++ b/api/docs/GETExternalGatewaysExternalGatewayId200ResponseDataAttributes.md @@ -8,14 +8,16 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] -**SharedSecret** | Pointer to **interface{}** | The shared secret used to sign the external request payload. | [optional] **AuthorizeUrl** | Pointer to **interface{}** | The endpoint used by the external gateway to authorize payments. | [optional] **CaptureUrl** | Pointer to **interface{}** | The endpoint used by the external gateway to capture payments. | [optional] **VoidUrl** | Pointer to **interface{}** | The endpoint used by the external gateway to void payments. | [optional] **RefundUrl** | Pointer to **interface{}** | The endpoint used by the external gateway to refund payments. | [optional] **TokenUrl** | Pointer to **interface{}** | The endpoint used by the external gateway to create a customer payment token. | [optional] +**CircuitState** | Pointer to **interface{}** | The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. | [optional] +**CircuitFailureCount** | Pointer to **interface{}** | The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. | [optional] +**SharedSecret** | Pointer to **interface{}** | The shared secret used to sign the external request payload. | [optional] ## Methods @@ -246,41 +248,6 @@ HasMetadata returns a boolean if a field has been set. `func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) UnsetMetadata()` UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil -### GetSharedSecret - -`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetSharedSecret() interface{}` - -GetSharedSecret returns the SharedSecret field if non-nil, zero value otherwise. - -### GetSharedSecretOk - -`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetSharedSecretOk() (*interface{}, bool)` - -GetSharedSecretOk returns a tuple with the SharedSecret field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSharedSecret - -`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) SetSharedSecret(v interface{})` - -SetSharedSecret sets SharedSecret field to given value. - -### HasSharedSecret - -`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) HasSharedSecret() bool` - -HasSharedSecret returns a boolean if a field has been set. - -### SetSharedSecretNil - -`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) SetSharedSecretNil(b bool)` - - SetSharedSecretNil sets the value for SharedSecret to be an explicit nil - -### UnsetSharedSecret -`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) UnsetSharedSecret()` - -UnsetSharedSecret ensures that no value is present for SharedSecret, not even an explicit nil ### GetAuthorizeUrl `func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetAuthorizeUrl() interface{}` @@ -456,6 +423,111 @@ HasTokenUrl returns a boolean if a field has been set. `func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) UnsetTokenUrl()` UnsetTokenUrl ensures that no value is present for TokenUrl, not even an explicit nil +### GetCircuitState + +`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetCircuitState() interface{}` + +GetCircuitState returns the CircuitState field if non-nil, zero value otherwise. + +### GetCircuitStateOk + +`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetCircuitStateOk() (*interface{}, bool)` + +GetCircuitStateOk returns a tuple with the CircuitState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitState + +`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) SetCircuitState(v interface{})` + +SetCircuitState sets CircuitState field to given value. + +### HasCircuitState + +`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) HasCircuitState() bool` + +HasCircuitState returns a boolean if a field has been set. + +### SetCircuitStateNil + +`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) SetCircuitStateNil(b bool)` + + SetCircuitStateNil sets the value for CircuitState to be an explicit nil + +### UnsetCircuitState +`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) UnsetCircuitState()` + +UnsetCircuitState ensures that no value is present for CircuitState, not even an explicit nil +### GetCircuitFailureCount + +`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetCircuitFailureCount() interface{}` + +GetCircuitFailureCount returns the CircuitFailureCount field if non-nil, zero value otherwise. + +### GetCircuitFailureCountOk + +`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetCircuitFailureCountOk() (*interface{}, bool)` + +GetCircuitFailureCountOk returns a tuple with the CircuitFailureCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitFailureCount + +`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) SetCircuitFailureCount(v interface{})` + +SetCircuitFailureCount sets CircuitFailureCount field to given value. + +### HasCircuitFailureCount + +`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) HasCircuitFailureCount() bool` + +HasCircuitFailureCount returns a boolean if a field has been set. + +### SetCircuitFailureCountNil + +`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) SetCircuitFailureCountNil(b bool)` + + SetCircuitFailureCountNil sets the value for CircuitFailureCount to be an explicit nil + +### UnsetCircuitFailureCount +`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) UnsetCircuitFailureCount()` + +UnsetCircuitFailureCount ensures that no value is present for CircuitFailureCount, not even an explicit nil +### GetSharedSecret + +`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetSharedSecret() interface{}` + +GetSharedSecret returns the SharedSecret field if non-nil, zero value otherwise. + +### GetSharedSecretOk + +`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetSharedSecretOk() (*interface{}, bool)` + +GetSharedSecretOk returns a tuple with the SharedSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharedSecret + +`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) SetSharedSecret(v interface{})` + +SetSharedSecret sets SharedSecret field to given value. + +### HasSharedSecret + +`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) HasSharedSecret() bool` + +HasSharedSecret returns a boolean if a field has been set. + +### SetSharedSecretNil + +`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) SetSharedSecretNil(b bool)` + + SetSharedSecretNil sets the value for SharedSecret to be an explicit nil + +### UnsetSharedSecret +`func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) UnsetSharedSecret()` + +UnsetSharedSecret ensures that no value is present for SharedSecret, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/GETExternalPaymentsExternalPaymentId200ResponseDataAttributes.md b/api/docs/GETExternalPaymentsExternalPaymentId200ResponseDataAttributes.md index 7d41aa4d..06ea3512 100644 --- a/api/docs/GETExternalPaymentsExternalPaymentId200ResponseDataAttributes.md +++ b/api/docs/GETExternalPaymentsExternalPaymentId200ResponseDataAttributes.md @@ -6,11 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentSourceToken** | Pointer to **interface{}** | The payment source token, as generated by the external gateway SDK. Credit Card numbers are rejected. | [optional] **Options** | Pointer to **interface{}** | External payment options. | [optional] -**PaymentInstrument** | Pointer to **interface{}** | Information about the payment instrument used in the transaction | [optional] +**PaymentInstrument** | Pointer to **interface{}** | Information about the payment instrument used in the transaction. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETExternalPromotionsExternalPromotionId200ResponseData.md b/api/docs/GETExternalPromotionsExternalPromotionId200ResponseData.md index 54d1b5ab..226fb5f9 100644 --- a/api/docs/GETExternalPromotionsExternalPromotionId200ResponseData.md +++ b/api/docs/GETExternalPromotionsExternalPromotionId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**GETExternalPromotionsExternalPromotionId200ResponseDataAttributes**](GETExternalPromotionsExternalPromotionId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTExternalPromotions201ResponseDataRelationships**](POSTExternalPromotions201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationships**](POSTBuyXPayYPromotions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *GETExternalPromotionsExternalPromotionId200ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships` +`func (o *GETExternalPromotionsExternalPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *GETExternalPromotionsExternalPromotionId200ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool)` +`func (o *GETExternalPromotionsExternalPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *GETExternalPromotionsExternalPromotionId200ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships)` +`func (o *GETExternalPromotionsExternalPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/GETExternalPromotionsExternalPromotionId200ResponseDataAttributes.md b/api/docs/GETExternalPromotionsExternalPromotionId200ResponseDataAttributes.md index f45259d0..caf67719 100644 --- a/api/docs/GETExternalPromotionsExternalPromotionId200ResponseDataAttributes.md +++ b/api/docs/GETExternalPromotionsExternalPromotionId200ResponseDataAttributes.md @@ -5,18 +5,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The promotion's internal name. | [optional] +**Type** | Pointer to **interface{}** | The promotion's type. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] **StartsAt** | Pointer to **interface{}** | The activation date/time of this promotion. | [optional] **ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this promotion (must be after starts_at). | [optional] -**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. | [optional] +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] **TotalUsageCount** | Pointer to **interface{}** | The number of times this promotion has been applied. | [optional] -**Active** | Pointer to **interface{}** | Indicates if the promotion is active. | [optional] +**Active** | Pointer to **interface{}** | Indicates if the promotion is active (enabled and not expired). | [optional] +**Status** | Pointer to **interface{}** | The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. | [optional] +**DisabledAt** | Pointer to **interface{}** | Time at which this resource was disabled. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **PromotionUrl** | Pointer to **interface{}** | The URL to the service that will compute the discount. | [optional] +**CircuitState** | Pointer to **interface{}** | The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. | [optional] +**CircuitFailureCount** | Pointer to **interface{}** | The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. | [optional] **SharedSecret** | Pointer to **interface{}** | The shared secret used to sign the external request payload. | [optional] ## Methods @@ -73,6 +80,41 @@ HasName returns a boolean if a field has been set. `func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetType + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetCurrencyCode `func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetCurrencyCode() interface{}` @@ -108,6 +150,76 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetStartsAt `func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetStartsAt() interface{}` @@ -283,6 +395,76 @@ HasActive returns a boolean if a field has been set. `func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) UnsetActive()` UnsetActive ensures that no value is present for Active, not even an explicit nil +### GetStatus + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetStatus() interface{}` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetStatus(v interface{})` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### SetStatusNil + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetStatusNil(b bool)` + + SetStatusNil sets the value for Status to be an explicit nil + +### UnsetStatus +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) UnsetStatus()` + +UnsetStatus ensures that no value is present for Status, not even an explicit nil +### GetDisabledAt + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetDisabledAt() interface{}` + +GetDisabledAt returns the DisabledAt field if non-nil, zero value otherwise. + +### GetDisabledAtOk + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool)` + +GetDisabledAtOk returns a tuple with the DisabledAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabledAt + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetDisabledAt(v interface{})` + +SetDisabledAt sets DisabledAt field to given value. + +### HasDisabledAt + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasDisabledAt() bool` + +HasDisabledAt returns a boolean if a field has been set. + +### SetDisabledAtNil + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetDisabledAtNil(b bool)` + + SetDisabledAtNil sets the value for DisabledAt to be an explicit nil + +### UnsetDisabledAt +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) UnsetDisabledAt()` + +UnsetDisabledAt ensures that no value is present for DisabledAt, not even an explicit nil ### GetCreatedAt `func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetCreatedAt() interface{}` @@ -493,6 +675,76 @@ HasPromotionUrl returns a boolean if a field has been set. `func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) UnsetPromotionUrl()` UnsetPromotionUrl ensures that no value is present for PromotionUrl, not even an explicit nil +### GetCircuitState + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetCircuitState() interface{}` + +GetCircuitState returns the CircuitState field if non-nil, zero value otherwise. + +### GetCircuitStateOk + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetCircuitStateOk() (*interface{}, bool)` + +GetCircuitStateOk returns a tuple with the CircuitState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitState + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetCircuitState(v interface{})` + +SetCircuitState sets CircuitState field to given value. + +### HasCircuitState + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasCircuitState() bool` + +HasCircuitState returns a boolean if a field has been set. + +### SetCircuitStateNil + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetCircuitStateNil(b bool)` + + SetCircuitStateNil sets the value for CircuitState to be an explicit nil + +### UnsetCircuitState +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) UnsetCircuitState()` + +UnsetCircuitState ensures that no value is present for CircuitState, not even an explicit nil +### GetCircuitFailureCount + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetCircuitFailureCount() interface{}` + +GetCircuitFailureCount returns the CircuitFailureCount field if non-nil, zero value otherwise. + +### GetCircuitFailureCountOk + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetCircuitFailureCountOk() (*interface{}, bool)` + +GetCircuitFailureCountOk returns a tuple with the CircuitFailureCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitFailureCount + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetCircuitFailureCount(v interface{})` + +SetCircuitFailureCount sets CircuitFailureCount field to given value. + +### HasCircuitFailureCount + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasCircuitFailureCount() bool` + +HasCircuitFailureCount returns a boolean if a field has been set. + +### SetCircuitFailureCountNil + +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetCircuitFailureCountNil(b bool)` + + SetCircuitFailureCountNil sets the value for CircuitFailureCount to be an explicit nil + +### UnsetCircuitFailureCount +`func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) UnsetCircuitFailureCount()` + +UnsetCircuitFailureCount ensures that no value is present for CircuitFailureCount, not even an explicit nil ### GetSharedSecret `func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetSharedSecret() interface{}` diff --git a/api/docs/GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes.md b/api/docs/GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes.md index 226c718a..2c52c7b1 100644 --- a/api/docs/GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes.md +++ b/api/docs/GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes.md @@ -5,12 +5,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The tax calculator's internal name. | [optional] +**Type** | Pointer to **interface{}** | The tax calculator's type. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **TaxCalculatorUrl** | Pointer to **interface{}** | The URL to the service that will compute the taxes. | [optional] +**CircuitState** | Pointer to **interface{}** | The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. | [optional] +**CircuitFailureCount** | Pointer to **interface{}** | The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. | [optional] **SharedSecret** | Pointer to **interface{}** | The shared secret used to sign the external request payload. | [optional] ## Methods @@ -67,6 +70,41 @@ HasName returns a boolean if a field has been set. `func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetType + +`func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetCreatedAt `func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetCreatedAt() interface{}` @@ -277,6 +315,76 @@ HasTaxCalculatorUrl returns a boolean if a field has been set. `func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) UnsetTaxCalculatorUrl()` UnsetTaxCalculatorUrl ensures that no value is present for TaxCalculatorUrl, not even an explicit nil +### GetCircuitState + +`func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetCircuitState() interface{}` + +GetCircuitState returns the CircuitState field if non-nil, zero value otherwise. + +### GetCircuitStateOk + +`func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetCircuitStateOk() (*interface{}, bool)` + +GetCircuitStateOk returns a tuple with the CircuitState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitState + +`func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) SetCircuitState(v interface{})` + +SetCircuitState sets CircuitState field to given value. + +### HasCircuitState + +`func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) HasCircuitState() bool` + +HasCircuitState returns a boolean if a field has been set. + +### SetCircuitStateNil + +`func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) SetCircuitStateNil(b bool)` + + SetCircuitStateNil sets the value for CircuitState to be an explicit nil + +### UnsetCircuitState +`func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) UnsetCircuitState()` + +UnsetCircuitState ensures that no value is present for CircuitState, not even an explicit nil +### GetCircuitFailureCount + +`func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetCircuitFailureCount() interface{}` + +GetCircuitFailureCount returns the CircuitFailureCount field if non-nil, zero value otherwise. + +### GetCircuitFailureCountOk + +`func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetCircuitFailureCountOk() (*interface{}, bool)` + +GetCircuitFailureCountOk returns a tuple with the CircuitFailureCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitFailureCount + +`func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) SetCircuitFailureCount(v interface{})` + +SetCircuitFailureCount sets CircuitFailureCount field to given value. + +### HasCircuitFailureCount + +`func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) HasCircuitFailureCount() bool` + +HasCircuitFailureCount returns a boolean if a field has been set. + +### SetCircuitFailureCountNil + +`func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) SetCircuitFailureCountNil(b bool)` + + SetCircuitFailureCountNil sets the value for CircuitFailureCount to be an explicit nil + +### UnsetCircuitFailureCount +`func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) UnsetCircuitFailureCount()` + +UnsetCircuitFailureCount ensures that no value is present for CircuitFailureCount, not even an explicit nil ### GetSharedSecret `func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetSharedSecret() interface{}` diff --git a/api/docs/GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData.md b/api/docs/GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData.md index a35373b7..cfc485b2 100644 --- a/api/docs/GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData.md +++ b/api/docs/GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes**](GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTExternalPromotions201ResponseDataRelationships**](POSTExternalPromotions201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationships**](POSTBuyXPayYPromotions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships` +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool)` +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships)` +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes.md b/api/docs/GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes.md index 38bbb354..ca2973b8 100644 --- a/api/docs/GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes.md +++ b/api/docs/GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes.md @@ -5,18 +5,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The promotion's internal name. | [optional] +**Type** | Pointer to **interface{}** | The promotion's type. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] **StartsAt** | Pointer to **interface{}** | The activation date/time of this promotion. | [optional] **ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this promotion (must be after starts_at). | [optional] -**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. | [optional] +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] **TotalUsageCount** | Pointer to **interface{}** | The number of times this promotion has been applied. | [optional] -**Active** | Pointer to **interface{}** | Indicates if the promotion is active. | [optional] +**Active** | Pointer to **interface{}** | Indicates if the promotion is active (enabled and not expired). | [optional] +**Status** | Pointer to **interface{}** | The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. | [optional] +**DisabledAt** | Pointer to **interface{}** | Time at which this resource was disabled. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] -**FixedAmountCents** | Pointer to **interface{}** | The discount fixed amount to be applied, in cents | [optional] +**FixedAmountCents** | Pointer to **interface{}** | The discount fixed amount to be applied, in cents. | [optional] **FixedAmountFloat** | Pointer to **interface{}** | The discount fixed amount to be applied, float. | [optional] **FormattedFixedAmount** | Pointer to **interface{}** | The discount fixed amount to be applied, formatted. | [optional] @@ -74,6 +79,41 @@ HasName returns a boolean if a field has been set. `func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetType + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetCurrencyCode `func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetCurrencyCode() interface{}` @@ -109,6 +149,76 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetStartsAt `func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetStartsAt() interface{}` @@ -284,6 +394,76 @@ HasActive returns a boolean if a field has been set. `func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) UnsetActive()` UnsetActive ensures that no value is present for Active, not even an explicit nil +### GetStatus + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetStatus() interface{}` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetStatus(v interface{})` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### SetStatusNil + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetStatusNil(b bool)` + + SetStatusNil sets the value for Status to be an explicit nil + +### UnsetStatus +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) UnsetStatus()` + +UnsetStatus ensures that no value is present for Status, not even an explicit nil +### GetDisabledAt + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetDisabledAt() interface{}` + +GetDisabledAt returns the DisabledAt field if non-nil, zero value otherwise. + +### GetDisabledAtOk + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool)` + +GetDisabledAtOk returns a tuple with the DisabledAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabledAt + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetDisabledAt(v interface{})` + +SetDisabledAt sets DisabledAt field to given value. + +### HasDisabledAt + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) HasDisabledAt() bool` + +HasDisabledAt returns a boolean if a field has been set. + +### SetDisabledAtNil + +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetDisabledAtNil(b bool)` + + SetDisabledAtNil sets the value for DisabledAt to be an explicit nil + +### UnsetDisabledAt +`func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) UnsetDisabledAt()` + +UnsetDisabledAt ensures that no value is present for DisabledAt, not even an explicit nil ### GetCreatedAt `func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETFixedPricePromotionsFixedPricePromotionId200ResponseData.md b/api/docs/GETFixedPricePromotionsFixedPricePromotionId200ResponseData.md index 1d5ff924..bbda1599 100644 --- a/api/docs/GETFixedPricePromotionsFixedPricePromotionId200ResponseData.md +++ b/api/docs/GETFixedPricePromotionsFixedPricePromotionId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes**](GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTFixedPricePromotions201ResponseDataRelationships**](POSTFixedPricePromotions201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationships**](POSTBuyXPayYPromotions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseData) GetRelationships() POSTFixedPricePromotions201ResponseDataRelationships` +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseData) GetRelationshipsOk() (*POSTFixedPricePromotions201ResponseDataRelationships, bool)` +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseData) SetRelationships(v POSTFixedPricePromotions201ResponseDataRelationships)` +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes.md b/api/docs/GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes.md index 72d1530a..f8df1872 100644 --- a/api/docs/GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes.md +++ b/api/docs/GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes.md @@ -5,18 +5,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The promotion's internal name. | [optional] +**Type** | Pointer to **interface{}** | The promotion's type. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] **StartsAt** | Pointer to **interface{}** | The activation date/time of this promotion. | [optional] **ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this promotion (must be after starts_at). | [optional] -**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. | [optional] +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] **TotalUsageCount** | Pointer to **interface{}** | The number of times this promotion has been applied. | [optional] -**Active** | Pointer to **interface{}** | Indicates if the promotion is active. | [optional] +**Active** | Pointer to **interface{}** | Indicates if the promotion is active (enabled and not expired). | [optional] +**Status** | Pointer to **interface{}** | The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. | [optional] +**DisabledAt** | Pointer to **interface{}** | Time at which this resource was disabled. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] -**FixedAmountCents** | Pointer to **interface{}** | The price fixed amount to be applied on matching SKUs, in cents | [optional] +**FixedAmountCents** | Pointer to **interface{}** | The price fixed amount to be applied on matching SKUs, in cents. | [optional] **FixedAmountFloat** | Pointer to **interface{}** | The discount fixed amount to be applied, float. | [optional] **FormattedFixedAmount** | Pointer to **interface{}** | The discount fixed amount to be applied, formatted. | [optional] @@ -74,6 +79,41 @@ HasName returns a boolean if a field has been set. `func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetType + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetCurrencyCode `func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetCurrencyCode() interface{}` @@ -109,6 +149,76 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetStartsAt `func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetStartsAt() interface{}` @@ -284,6 +394,76 @@ HasActive returns a boolean if a field has been set. `func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) UnsetActive()` UnsetActive ensures that no value is present for Active, not even an explicit nil +### GetStatus + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetStatus() interface{}` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetStatus(v interface{})` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### SetStatusNil + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetStatusNil(b bool)` + + SetStatusNil sets the value for Status to be an explicit nil + +### UnsetStatus +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) UnsetStatus()` + +UnsetStatus ensures that no value is present for Status, not even an explicit nil +### GetDisabledAt + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetDisabledAt() interface{}` + +GetDisabledAt returns the DisabledAt field if non-nil, zero value otherwise. + +### GetDisabledAtOk + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool)` + +GetDisabledAtOk returns a tuple with the DisabledAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabledAt + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetDisabledAt(v interface{})` + +SetDisabledAt sets DisabledAt field to given value. + +### HasDisabledAt + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) HasDisabledAt() bool` + +HasDisabledAt returns a boolean if a field has been set. + +### SetDisabledAtNil + +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetDisabledAtNil(b bool)` + + SetDisabledAtNil sets the value for DisabledAt to be an explicit nil + +### UnsetDisabledAt +`func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) UnsetDisabledAt()` + +UnsetDisabledAt ensures that no value is present for DisabledAt, not even an explicit nil ### GetCreatedAt `func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETFlexPromotions200Response.md b/api/docs/GETFlexPromotions200Response.md new file mode 100644 index 00000000..fd10c431 --- /dev/null +++ b/api/docs/GETFlexPromotions200Response.md @@ -0,0 +1,66 @@ +# GETFlexPromotions200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewGETFlexPromotions200Response + +`func NewGETFlexPromotions200Response() *GETFlexPromotions200Response` + +NewGETFlexPromotions200Response instantiates a new GETFlexPromotions200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETFlexPromotions200ResponseWithDefaults + +`func NewGETFlexPromotions200ResponseWithDefaults() *GETFlexPromotions200Response` + +NewGETFlexPromotions200ResponseWithDefaults instantiates a new GETFlexPromotions200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETFlexPromotions200Response) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETFlexPromotions200Response) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETFlexPromotions200Response) SetData(v interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETFlexPromotions200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *GETFlexPromotions200Response) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *GETFlexPromotions200Response) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETFlexPromotionsFlexPromotionId200Response.md b/api/docs/GETFlexPromotionsFlexPromotionId200Response.md new file mode 100644 index 00000000..662ac42a --- /dev/null +++ b/api/docs/GETFlexPromotionsFlexPromotionId200Response.md @@ -0,0 +1,56 @@ +# GETFlexPromotionsFlexPromotionId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**GETFlexPromotionsFlexPromotionId200ResponseData**](GETFlexPromotionsFlexPromotionId200ResponseData.md) | | [optional] + +## Methods + +### NewGETFlexPromotionsFlexPromotionId200Response + +`func NewGETFlexPromotionsFlexPromotionId200Response() *GETFlexPromotionsFlexPromotionId200Response` + +NewGETFlexPromotionsFlexPromotionId200Response instantiates a new GETFlexPromotionsFlexPromotionId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETFlexPromotionsFlexPromotionId200ResponseWithDefaults + +`func NewGETFlexPromotionsFlexPromotionId200ResponseWithDefaults() *GETFlexPromotionsFlexPromotionId200Response` + +NewGETFlexPromotionsFlexPromotionId200ResponseWithDefaults instantiates a new GETFlexPromotionsFlexPromotionId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETFlexPromotionsFlexPromotionId200Response) GetData() GETFlexPromotionsFlexPromotionId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETFlexPromotionsFlexPromotionId200Response) GetDataOk() (*GETFlexPromotionsFlexPromotionId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETFlexPromotionsFlexPromotionId200Response) SetData(v GETFlexPromotionsFlexPromotionId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETFlexPromotionsFlexPromotionId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETFlexPromotionsFlexPromotionId200ResponseData.md b/api/docs/GETFlexPromotionsFlexPromotionId200ResponseData.md new file mode 100644 index 00000000..2c1faf30 --- /dev/null +++ b/api/docs/GETFlexPromotionsFlexPromotionId200ResponseData.md @@ -0,0 +1,180 @@ +# GETFlexPromotionsFlexPromotionId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**GETFlexPromotionsFlexPromotionId200ResponseDataAttributes**](GETFlexPromotionsFlexPromotionId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTFlexPromotions201ResponseDataRelationships**](POSTFlexPromotions201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewGETFlexPromotionsFlexPromotionId200ResponseData + +`func NewGETFlexPromotionsFlexPromotionId200ResponseData() *GETFlexPromotionsFlexPromotionId200ResponseData` + +NewGETFlexPromotionsFlexPromotionId200ResponseData instantiates a new GETFlexPromotionsFlexPromotionId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETFlexPromotionsFlexPromotionId200ResponseDataWithDefaults + +`func NewGETFlexPromotionsFlexPromotionId200ResponseDataWithDefaults() *GETFlexPromotionsFlexPromotionId200ResponseData` + +NewGETFlexPromotionsFlexPromotionId200ResponseDataWithDefaults instantiates a new GETFlexPromotionsFlexPromotionId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetAttributes() GETFlexPromotionsFlexPromotionId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetAttributesOk() (*GETFlexPromotionsFlexPromotionId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) SetAttributes(v GETFlexPromotionsFlexPromotionId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetRelationships() POSTFlexPromotions201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetRelationshipsOk() (*POSTFlexPromotions201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) SetRelationships(v POSTFlexPromotions201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETFlexPromotionsFlexPromotionId200ResponseDataAttributes.md b/api/docs/GETFlexPromotionsFlexPromotionId200ResponseDataAttributes.md new file mode 100644 index 00000000..67832104 --- /dev/null +++ b/api/docs/GETFlexPromotionsFlexPromotionId200ResponseDataAttributes.md @@ -0,0 +1,678 @@ +# GETFlexPromotionsFlexPromotionId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **interface{}** | The promotion's internal name. | [optional] +**Type** | Pointer to **interface{}** | The promotion's type. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] +**StartsAt** | Pointer to **interface{}** | The activation date/time of this promotion. | [optional] +**ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this promotion (must be after starts_at). | [optional] +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] +**TotalUsageCount** | Pointer to **interface{}** | The number of times this promotion has been applied. | [optional] +**Active** | Pointer to **interface{}** | Indicates if the promotion is active (enabled and not expired). | [optional] +**Status** | Pointer to **interface{}** | The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. | [optional] +**Rules** | Pointer to **interface{}** | The discount rule to be applied. | [optional] +**DisabledAt** | Pointer to **interface{}** | Time at which this resource was disabled. | [optional] +**CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] +**UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**RuleOutcomes** | Pointer to **interface{}** | The rule outcomes. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewGETFlexPromotionsFlexPromotionId200ResponseDataAttributes + +`func NewGETFlexPromotionsFlexPromotionId200ResponseDataAttributes() *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes` + +NewGETFlexPromotionsFlexPromotionId200ResponseDataAttributes instantiates a new GETFlexPromotionsFlexPromotionId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETFlexPromotionsFlexPromotionId200ResponseDataAttributesWithDefaults + +`func NewGETFlexPromotionsFlexPromotionId200ResponseDataAttributesWithDefaults() *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes` + +NewGETFlexPromotionsFlexPromotionId200ResponseDataAttributesWithDefaults instantiates a new GETFlexPromotionsFlexPromotionId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + +### HasName + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetType + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetExclusive + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil +### GetStartsAt + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetStartsAt() interface{}` + +GetStartsAt returns the StartsAt field if non-nil, zero value otherwise. + +### GetStartsAtOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool)` + +GetStartsAtOk returns a tuple with the StartsAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartsAt + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetStartsAt(v interface{})` + +SetStartsAt sets StartsAt field to given value. + +### HasStartsAt + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasStartsAt() bool` + +HasStartsAt returns a boolean if a field has been set. + +### SetStartsAtNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetStartsAtNil(b bool)` + + SetStartsAtNil sets the value for StartsAt to be an explicit nil + +### UnsetStartsAt +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetStartsAt()` + +UnsetStartsAt ensures that no value is present for StartsAt, not even an explicit nil +### GetExpiresAt + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetExpiresAt() interface{}` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetExpiresAt(v interface{})` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetTotalUsageLimit + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetTotalUsageLimit() interface{}` + +GetTotalUsageLimit returns the TotalUsageLimit field if non-nil, zero value otherwise. + +### GetTotalUsageLimitOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetTotalUsageLimitOk() (*interface{}, bool)` + +GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalUsageLimit + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetTotalUsageLimit(v interface{})` + +SetTotalUsageLimit sets TotalUsageLimit field to given value. + +### HasTotalUsageLimit + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasTotalUsageLimit() bool` + +HasTotalUsageLimit returns a boolean if a field has been set. + +### SetTotalUsageLimitNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetTotalUsageLimitNil(b bool)` + + SetTotalUsageLimitNil sets the value for TotalUsageLimit to be an explicit nil + +### UnsetTotalUsageLimit +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetTotalUsageLimit()` + +UnsetTotalUsageLimit ensures that no value is present for TotalUsageLimit, not even an explicit nil +### GetTotalUsageCount + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetTotalUsageCount() interface{}` + +GetTotalUsageCount returns the TotalUsageCount field if non-nil, zero value otherwise. + +### GetTotalUsageCountOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetTotalUsageCountOk() (*interface{}, bool)` + +GetTotalUsageCountOk returns a tuple with the TotalUsageCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalUsageCount + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetTotalUsageCount(v interface{})` + +SetTotalUsageCount sets TotalUsageCount field to given value. + +### HasTotalUsageCount + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasTotalUsageCount() bool` + +HasTotalUsageCount returns a boolean if a field has been set. + +### SetTotalUsageCountNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetTotalUsageCountNil(b bool)` + + SetTotalUsageCountNil sets the value for TotalUsageCount to be an explicit nil + +### UnsetTotalUsageCount +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetTotalUsageCount()` + +UnsetTotalUsageCount ensures that no value is present for TotalUsageCount, not even an explicit nil +### GetActive + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetActive() interface{}` + +GetActive returns the Active field if non-nil, zero value otherwise. + +### GetActiveOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetActiveOk() (*interface{}, bool)` + +GetActiveOk returns a tuple with the Active field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActive + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetActive(v interface{})` + +SetActive sets Active field to given value. + +### HasActive + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasActive() bool` + +HasActive returns a boolean if a field has been set. + +### SetActiveNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetActiveNil(b bool)` + + SetActiveNil sets the value for Active to be an explicit nil + +### UnsetActive +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetActive()` + +UnsetActive ensures that no value is present for Active, not even an explicit nil +### GetStatus + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetStatus() interface{}` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetStatus(v interface{})` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### SetStatusNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetStatusNil(b bool)` + + SetStatusNil sets the value for Status to be an explicit nil + +### UnsetStatus +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetStatus()` + +UnsetStatus ensures that no value is present for Status, not even an explicit nil +### GetRules + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetRules() interface{}` + +GetRules returns the Rules field if non-nil, zero value otherwise. + +### GetRulesOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetRulesOk() (*interface{}, bool)` + +GetRulesOk returns a tuple with the Rules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRules + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetRules(v interface{})` + +SetRules sets Rules field to given value. + +### HasRules + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasRules() bool` + +HasRules returns a boolean if a field has been set. + +### SetRulesNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetRulesNil(b bool)` + + SetRulesNil sets the value for Rules to be an explicit nil + +### UnsetRules +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetRules()` + +UnsetRules ensures that no value is present for Rules, not even an explicit nil +### GetDisabledAt + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetDisabledAt() interface{}` + +GetDisabledAt returns the DisabledAt field if non-nil, zero value otherwise. + +### GetDisabledAtOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool)` + +GetDisabledAtOk returns a tuple with the DisabledAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabledAt + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetDisabledAt(v interface{})` + +SetDisabledAt sets DisabledAt field to given value. + +### HasDisabledAt + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasDisabledAt() bool` + +HasDisabledAt returns a boolean if a field has been set. + +### SetDisabledAtNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetDisabledAtNil(b bool)` + + SetDisabledAtNil sets the value for DisabledAt to be an explicit nil + +### UnsetDisabledAt +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetDisabledAt()` + +UnsetDisabledAt ensures that no value is present for DisabledAt, not even an explicit nil +### GetCreatedAt + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetCreatedAt() interface{}` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetCreatedAt(v interface{})` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### SetCreatedAtNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetCreatedAtNil(b bool)` + + SetCreatedAtNil sets the value for CreatedAt to be an explicit nil + +### UnsetCreatedAt +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetCreatedAt()` + +UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil +### GetUpdatedAt + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetUpdatedAt() interface{}` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetUpdatedAt(v interface{})` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### SetUpdatedAtNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetUpdatedAtNil(b bool)` + + SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil + +### UnsetUpdatedAt +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetUpdatedAt()` + +UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil +### GetReference + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetRuleOutcomes + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetRuleOutcomes() interface{}` + +GetRuleOutcomes returns the RuleOutcomes field if non-nil, zero value otherwise. + +### GetRuleOutcomesOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetRuleOutcomesOk() (*interface{}, bool)` + +GetRuleOutcomesOk returns a tuple with the RuleOutcomes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuleOutcomes + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetRuleOutcomes(v interface{})` + +SetRuleOutcomes sets RuleOutcomes field to given value. + +### HasRuleOutcomes + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasRuleOutcomes() bool` + +HasRuleOutcomes returns a boolean if a field has been set. + +### SetRuleOutcomesNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetRuleOutcomesNil(b bool)` + + SetRuleOutcomesNil sets the value for RuleOutcomes to be an explicit nil + +### UnsetRuleOutcomes +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetRuleOutcomes()` + +UnsetRuleOutcomes ensures that no value is present for RuleOutcomes, not even an explicit nil +### GetMetadata + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData.md b/api/docs/GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData.md index ef232d85..3b028079 100644 --- a/api/docs/GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData.md +++ b/api/docs/GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes**](GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTFixedPricePromotions201ResponseDataRelationships**](POSTFixedPricePromotions201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationships**](POSTBuyXPayYPromotions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData) GetRelationships() POSTFixedPricePromotions201ResponseDataRelationships` +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData) GetRelationshipsOk() (*POSTFixedPricePromotions201ResponseDataRelationships, bool)` +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData) SetRelationships(v POSTFixedPricePromotions201ResponseDataRelationships)` +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes.md b/api/docs/GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes.md index 22a3551e..080cf9cf 100644 --- a/api/docs/GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes.md +++ b/api/docs/GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes.md @@ -5,16 +5,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The promotion's internal name. | [optional] +**Type** | Pointer to **interface{}** | The promotion's type. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] **StartsAt** | Pointer to **interface{}** | The activation date/time of this promotion. | [optional] **ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this promotion (must be after starts_at). | [optional] -**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. | [optional] +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] **TotalUsageCount** | Pointer to **interface{}** | The number of times this promotion has been applied. | [optional] -**Active** | Pointer to **interface{}** | Indicates if the promotion is active. | [optional] +**Active** | Pointer to **interface{}** | Indicates if the promotion is active (enabled and not expired). | [optional] +**Status** | Pointer to **interface{}** | The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. | [optional] +**DisabledAt** | Pointer to **interface{}** | Time at which this resource was disabled. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **MaxQuantity** | Pointer to **interface{}** | The max quantity of free gifts globally applicable by the promotion. | [optional] @@ -72,6 +77,41 @@ HasName returns a boolean if a field has been set. `func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetType + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetCurrencyCode `func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetCurrencyCode() interface{}` @@ -107,6 +147,76 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetStartsAt `func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetStartsAt() interface{}` @@ -282,6 +392,76 @@ HasActive returns a boolean if a field has been set. `func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) UnsetActive()` UnsetActive ensures that no value is present for Active, not even an explicit nil +### GetStatus + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetStatus() interface{}` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetStatus(v interface{})` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### SetStatusNil + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetStatusNil(b bool)` + + SetStatusNil sets the value for Status to be an explicit nil + +### UnsetStatus +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) UnsetStatus()` + +UnsetStatus ensures that no value is present for Status, not even an explicit nil +### GetDisabledAt + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetDisabledAt() interface{}` + +GetDisabledAt returns the DisabledAt field if non-nil, zero value otherwise. + +### GetDisabledAtOk + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool)` + +GetDisabledAtOk returns a tuple with the DisabledAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabledAt + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetDisabledAt(v interface{})` + +SetDisabledAt sets DisabledAt field to given value. + +### HasDisabledAt + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) HasDisabledAt() bool` + +HasDisabledAt returns a boolean if a field has been set. + +### SetDisabledAtNil + +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetDisabledAtNil(b bool)` + + SetDisabledAtNil sets the value for DisabledAt to be an explicit nil + +### UnsetDisabledAt +`func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) UnsetDisabledAt()` + +UnsetDisabledAt ensures that no value is present for DisabledAt, not even an explicit nil ### GetCreatedAt `func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData.md b/api/docs/GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData.md index 5dd0bad7..9e3be528 100644 --- a/api/docs/GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData.md +++ b/api/docs/GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes**](GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTExternalPromotions201ResponseDataRelationships**](POSTExternalPromotions201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTFreeShippingPromotions201ResponseDataRelationships**](POSTFreeShippingPromotions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships` +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData) GetRelationships() POSTFreeShippingPromotions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool)` +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData) GetRelationshipsOk() (*POSTFreeShippingPromotions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships)` +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData) SetRelationships(v POSTFreeShippingPromotions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes.md b/api/docs/GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes.md index d942aec2..585044a3 100644 --- a/api/docs/GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes.md +++ b/api/docs/GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes.md @@ -5,16 +5,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The promotion's internal name. | [optional] +**Type** | Pointer to **interface{}** | The promotion's type. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] **StartsAt** | Pointer to **interface{}** | The activation date/time of this promotion. | [optional] **ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this promotion (must be after starts_at). | [optional] -**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. | [optional] +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] **TotalUsageCount** | Pointer to **interface{}** | The number of times this promotion has been applied. | [optional] -**Active** | Pointer to **interface{}** | Indicates if the promotion is active. | [optional] +**Active** | Pointer to **interface{}** | Indicates if the promotion is active (enabled and not expired). | [optional] +**Status** | Pointer to **interface{}** | The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. | [optional] +**DisabledAt** | Pointer to **interface{}** | Time at which this resource was disabled. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -71,6 +76,41 @@ HasName returns a boolean if a field has been set. `func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetType + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetCurrencyCode `func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetCurrencyCode() interface{}` @@ -106,6 +146,76 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetStartsAt `func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetStartsAt() interface{}` @@ -281,6 +391,76 @@ HasActive returns a boolean if a field has been set. `func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) UnsetActive()` UnsetActive ensures that no value is present for Active, not even an explicit nil +### GetStatus + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetStatus() interface{}` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetStatus(v interface{})` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### SetStatusNil + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetStatusNil(b bool)` + + SetStatusNil sets the value for Status to be an explicit nil + +### UnsetStatus +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) UnsetStatus()` + +UnsetStatus ensures that no value is present for Status, not even an explicit nil +### GetDisabledAt + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetDisabledAt() interface{}` + +GetDisabledAt returns the DisabledAt field if non-nil, zero value otherwise. + +### GetDisabledAtOk + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool)` + +GetDisabledAtOk returns a tuple with the DisabledAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabledAt + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetDisabledAt(v interface{})` + +SetDisabledAt sets DisabledAt field to given value. + +### HasDisabledAt + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) HasDisabledAt() bool` + +HasDisabledAt returns a boolean if a field has been set. + +### SetDisabledAtNil + +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetDisabledAtNil(b bool)` + + SetDisabledAtNil sets the value for DisabledAt to be an explicit nil + +### UnsetDisabledAt +`func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) UnsetDisabledAt()` + +UnsetDisabledAt ensures that no value is present for DisabledAt, not even an explicit nil ### GetCreatedAt `func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETGiftCardsGiftCardId200ResponseDataAttributes.md b/api/docs/GETGiftCardsGiftCardId200ResponseDataAttributes.md index 3beff24a..1b1a586d 100644 --- a/api/docs/GETGiftCardsGiftCardId200ResponseDataAttributes.md +++ b/api/docs/GETGiftCardsGiftCardId200ResponseDataAttributes.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | Pointer to **interface{}** | The gift card status, one of 'draft', 'inactive', 'active', or 'redeemed'. | [optional] +**Status** | Pointer to **interface{}** | The gift card status. One of 'draft' (default), 'inactive', 'active', or 'redeemed'. | [optional] **Code** | Pointer to **interface{}** | The gift card code UUID. If not set, it's automatically generated. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] **InitialBalanceCents** | Pointer to **interface{}** | The gift card initial balance, in cents. | [optional] @@ -17,15 +17,17 @@ Name | Type | Description | Notes **BalanceMaxFloat** | Pointer to **interface{}** | The gift card balance max, float. | [optional] **FormattedBalanceMax** | Pointer to **interface{}** | The gift card balance max, formatted. | [optional] **BalanceLog** | Pointer to **interface{}** | The gift card balance log. Tracks all the gift card transactions. | [optional] +**UsageLog** | Pointer to **interface{}** | The gift card usage log. Tracks all the gift card usage actions by orders. | [optional] **SingleUse** | Pointer to **interface{}** | Indicates if the gift card can be used only one. | [optional] **Rechargeable** | Pointer to **interface{}** | Indicates if the gift card can be recharged. | [optional] +**DistributeDiscount** | Pointer to **interface{}** | Indicates if redeemed gift card amount is distributed for tax calculation. | [optional] **ImageUrl** | Pointer to **interface{}** | The URL of an image that represents the gift card. | [optional] **ExpiresAt** | Pointer to **interface{}** | Time at which the gift card will expire. | [optional] **RecipientEmail** | Pointer to **interface{}** | The email address of the associated recipient. When creating or updating a gift card, this is a shortcut to find or create the associated recipient by email. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -502,6 +504,41 @@ HasBalanceLog returns a boolean if a field has been set. `func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) UnsetBalanceLog()` UnsetBalanceLog ensures that no value is present for BalanceLog, not even an explicit nil +### GetUsageLog + +`func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) GetUsageLog() interface{}` + +GetUsageLog returns the UsageLog field if non-nil, zero value otherwise. + +### GetUsageLogOk + +`func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) GetUsageLogOk() (*interface{}, bool)` + +GetUsageLogOk returns a tuple with the UsageLog field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsageLog + +`func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) SetUsageLog(v interface{})` + +SetUsageLog sets UsageLog field to given value. + +### HasUsageLog + +`func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) HasUsageLog() bool` + +HasUsageLog returns a boolean if a field has been set. + +### SetUsageLogNil + +`func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) SetUsageLogNil(b bool)` + + SetUsageLogNil sets the value for UsageLog to be an explicit nil + +### UnsetUsageLog +`func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) UnsetUsageLog()` + +UnsetUsageLog ensures that no value is present for UsageLog, not even an explicit nil ### GetSingleUse `func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) GetSingleUse() interface{}` @@ -572,6 +609,41 @@ HasRechargeable returns a boolean if a field has been set. `func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) UnsetRechargeable()` UnsetRechargeable ensures that no value is present for Rechargeable, not even an explicit nil +### GetDistributeDiscount + +`func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) GetDistributeDiscount() interface{}` + +GetDistributeDiscount returns the DistributeDiscount field if non-nil, zero value otherwise. + +### GetDistributeDiscountOk + +`func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) GetDistributeDiscountOk() (*interface{}, bool)` + +GetDistributeDiscountOk returns a tuple with the DistributeDiscount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistributeDiscount + +`func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) SetDistributeDiscount(v interface{})` + +SetDistributeDiscount sets DistributeDiscount field to given value. + +### HasDistributeDiscount + +`func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) HasDistributeDiscount() bool` + +HasDistributeDiscount returns a boolean if a field has been set. + +### SetDistributeDiscountNil + +`func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) SetDistributeDiscountNil(b bool)` + + SetDistributeDiscountNil sets the value for DistributeDiscount to be an explicit nil + +### UnsetDistributeDiscount +`func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) UnsetDistributeDiscount()` + +UnsetDistributeDiscount ensures that no value is present for DistributeDiscount, not even an explicit nil ### GetImageUrl `func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) GetImageUrl() interface{}` diff --git a/api/docs/GETImportsImportId200ResponseData.md b/api/docs/GETImportsImportId200ResponseData.md index 9ce336b9..48a0d332 100644 --- a/api/docs/GETImportsImportId200ResponseData.md +++ b/api/docs/GETImportsImportId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**GETImportsImportId200ResponseDataAttributes**](GETImportsImportId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTCleanups201ResponseDataRelationships**](POSTCleanups201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTExports201ResponseDataRelationships**](POSTExports201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *GETImportsImportId200ResponseData) GetRelationships() POSTCleanups201ResponseDataRelationships` +`func (o *GETImportsImportId200ResponseData) GetRelationships() POSTExports201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *GETImportsImportId200ResponseData) GetRelationshipsOk() (*POSTCleanups201ResponseDataRelationships, bool)` +`func (o *GETImportsImportId200ResponseData) GetRelationshipsOk() (*POSTExports201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *GETImportsImportId200ResponseData) SetRelationships(v POSTCleanups201ResponseDataRelationships)` +`func (o *GETImportsImportId200ResponseData) SetRelationships(v POSTExports201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/GETImportsImportId200ResponseDataAttributes.md b/api/docs/GETImportsImportId200ResponseDataAttributes.md index 7038ad48..19c6f0bd 100644 --- a/api/docs/GETImportsImportId200ResponseDataAttributes.md +++ b/api/docs/GETImportsImportId200ResponseDataAttributes.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ResourceType** | Pointer to **interface{}** | The type of resource being imported. | [optional] +**Format** | Pointer to **interface{}** | The format of the import inputs one of 'json' (default) or 'csv'. | [optional] **ParentResourceId** | Pointer to **interface{}** | The ID of the parent resource to be associated with imported data. | [optional] **Status** | Pointer to **interface{}** | The import job status. One of 'pending' (default), 'in_progress', 'interrupted', or 'completed'. | [optional] **StartedAt** | Pointer to **interface{}** | Time at which the import was started. | [optional] @@ -14,16 +15,14 @@ Name | Type | Description | Notes **InputsSize** | Pointer to **interface{}** | Indicates the size of the objects to be imported. | [optional] **ErrorsCount** | Pointer to **interface{}** | Indicates the number of import errors, if any. | [optional] **WarningsCount** | Pointer to **interface{}** | Indicates the number of import warnings, if any. | [optional] -**DestroyedCount** | Pointer to **interface{}** | Indicates the number of records that have been destroyed, if any. | [optional] **ProcessedCount** | Pointer to **interface{}** | Indicates the number of records that have been processed (created or updated). | [optional] **ErrorsLog** | Pointer to **interface{}** | Contains the import errors, if any. | [optional] **WarningsLog** | Pointer to **interface{}** | Contains the import warnings, if any. | [optional] -**CleanupRecords** | Pointer to **interface{}** | Indicates if the import should cleanup records that are not included in the inputs array. | [optional] **AttachmentUrl** | Pointer to **interface{}** | The URL the the raw inputs file, which will be generated at import start. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -80,6 +79,41 @@ HasResourceType returns a boolean if a field has been set. `func (o *GETImportsImportId200ResponseDataAttributes) UnsetResourceType()` UnsetResourceType ensures that no value is present for ResourceType, not even an explicit nil +### GetFormat + +`func (o *GETImportsImportId200ResponseDataAttributes) GetFormat() interface{}` + +GetFormat returns the Format field if non-nil, zero value otherwise. + +### GetFormatOk + +`func (o *GETImportsImportId200ResponseDataAttributes) GetFormatOk() (*interface{}, bool)` + +GetFormatOk returns a tuple with the Format field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormat + +`func (o *GETImportsImportId200ResponseDataAttributes) SetFormat(v interface{})` + +SetFormat sets Format field to given value. + +### HasFormat + +`func (o *GETImportsImportId200ResponseDataAttributes) HasFormat() bool` + +HasFormat returns a boolean if a field has been set. + +### SetFormatNil + +`func (o *GETImportsImportId200ResponseDataAttributes) SetFormatNil(b bool)` + + SetFormatNil sets the value for Format to be an explicit nil + +### UnsetFormat +`func (o *GETImportsImportId200ResponseDataAttributes) UnsetFormat()` + +UnsetFormat ensures that no value is present for Format, not even an explicit nil ### GetParentResourceId `func (o *GETImportsImportId200ResponseDataAttributes) GetParentResourceId() interface{}` @@ -395,41 +429,6 @@ HasWarningsCount returns a boolean if a field has been set. `func (o *GETImportsImportId200ResponseDataAttributes) UnsetWarningsCount()` UnsetWarningsCount ensures that no value is present for WarningsCount, not even an explicit nil -### GetDestroyedCount - -`func (o *GETImportsImportId200ResponseDataAttributes) GetDestroyedCount() interface{}` - -GetDestroyedCount returns the DestroyedCount field if non-nil, zero value otherwise. - -### GetDestroyedCountOk - -`func (o *GETImportsImportId200ResponseDataAttributes) GetDestroyedCountOk() (*interface{}, bool)` - -GetDestroyedCountOk returns a tuple with the DestroyedCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDestroyedCount - -`func (o *GETImportsImportId200ResponseDataAttributes) SetDestroyedCount(v interface{})` - -SetDestroyedCount sets DestroyedCount field to given value. - -### HasDestroyedCount - -`func (o *GETImportsImportId200ResponseDataAttributes) HasDestroyedCount() bool` - -HasDestroyedCount returns a boolean if a field has been set. - -### SetDestroyedCountNil - -`func (o *GETImportsImportId200ResponseDataAttributes) SetDestroyedCountNil(b bool)` - - SetDestroyedCountNil sets the value for DestroyedCount to be an explicit nil - -### UnsetDestroyedCount -`func (o *GETImportsImportId200ResponseDataAttributes) UnsetDestroyedCount()` - -UnsetDestroyedCount ensures that no value is present for DestroyedCount, not even an explicit nil ### GetProcessedCount `func (o *GETImportsImportId200ResponseDataAttributes) GetProcessedCount() interface{}` @@ -535,41 +534,6 @@ HasWarningsLog returns a boolean if a field has been set. `func (o *GETImportsImportId200ResponseDataAttributes) UnsetWarningsLog()` UnsetWarningsLog ensures that no value is present for WarningsLog, not even an explicit nil -### GetCleanupRecords - -`func (o *GETImportsImportId200ResponseDataAttributes) GetCleanupRecords() interface{}` - -GetCleanupRecords returns the CleanupRecords field if non-nil, zero value otherwise. - -### GetCleanupRecordsOk - -`func (o *GETImportsImportId200ResponseDataAttributes) GetCleanupRecordsOk() (*interface{}, bool)` - -GetCleanupRecordsOk returns a tuple with the CleanupRecords field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCleanupRecords - -`func (o *GETImportsImportId200ResponseDataAttributes) SetCleanupRecords(v interface{})` - -SetCleanupRecords sets CleanupRecords field to given value. - -### HasCleanupRecords - -`func (o *GETImportsImportId200ResponseDataAttributes) HasCleanupRecords() bool` - -HasCleanupRecords returns a boolean if a field has been set. - -### SetCleanupRecordsNil - -`func (o *GETImportsImportId200ResponseDataAttributes) SetCleanupRecordsNil(b bool)` - - SetCleanupRecordsNil sets the value for CleanupRecords to be an explicit nil - -### UnsetCleanupRecords -`func (o *GETImportsImportId200ResponseDataAttributes) UnsetCleanupRecords()` - -UnsetCleanupRecords ensures that no value is present for CleanupRecords, not even an explicit nil ### GetAttachmentUrl `func (o *GETImportsImportId200ResponseDataAttributes) GetAttachmentUrl() interface{}` diff --git a/api/docs/GETInStockSubscriptionsInStockSubscriptionId200ResponseDataAttributes.md b/api/docs/GETInStockSubscriptionsInStockSubscriptionId200ResponseDataAttributes.md index 6774db08..86635acb 100644 --- a/api/docs/GETInStockSubscriptionsInStockSubscriptionId200ResponseDataAttributes.md +++ b/api/docs/GETInStockSubscriptionsInStockSubscriptionId200ResponseDataAttributes.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Status** | Pointer to **interface{}** | The subscription status. One of 'active' (default), 'inactive', or 'notified' | [optional] -**CustomerEmail** | Pointer to **interface{}** | The email of the associated customer, replace the relationship | [optional] -**SkuCode** | Pointer to **interface{}** | The code of the associated SKU, replace the relationship | [optional] +**Status** | Pointer to **interface{}** | The subscription status. One of 'active' (default), 'inactive', or 'notified'. | [optional] +**CustomerEmail** | Pointer to **interface{}** | The email of the associated customer, replace the relationship. | [optional] +**SkuCode** | Pointer to **interface{}** | The code of the associated SKU, replace the relationship. | [optional] **StockThreshold** | Pointer to **interface{}** | The threshold at which to trigger the back in stock notification. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETInventoryModelsInventoryModelId200ResponseDataAttributes.md b/api/docs/GETInventoryModelsInventoryModelId200ResponseDataAttributes.md index 96e0eb01..ab64c659 100644 --- a/api/docs/GETInventoryModelsInventoryModelId200ResponseDataAttributes.md +++ b/api/docs/GETInventoryModelsInventoryModelId200ResponseDataAttributes.md @@ -6,11 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The inventory model's internal name. | [optional] **Strategy** | Pointer to **interface{}** | The inventory model's shipping strategy: one between 'no_split' (default), 'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'. | [optional] -**StockLocationsCutoff** | Pointer to **interface{}** | The maximum number of stock locations used for inventory computation | [optional] +**StockLocationsCutoff** | Pointer to **interface{}** | The maximum number of stock locations used for inventory computation. | [optional] +**StockReservationCutoff** | Pointer to **interface{}** | The duration in seconds of the generated stock reservations. | [optional] +**PutStockTransfersOnHold** | Pointer to **interface{}** | Indicates if the the stock transfers must be put on hold automatically with the associated shipment. | [optional] +**ManualStockDecrement** | Pointer to **interface{}** | Indicates if the the stock will be decremented manually after the order approval. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -137,6 +140,111 @@ HasStockLocationsCutoff returns a boolean if a field has been set. `func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) UnsetStockLocationsCutoff()` UnsetStockLocationsCutoff ensures that no value is present for StockLocationsCutoff, not even an explicit nil +### GetStockReservationCutoff + +`func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) GetStockReservationCutoff() interface{}` + +GetStockReservationCutoff returns the StockReservationCutoff field if non-nil, zero value otherwise. + +### GetStockReservationCutoffOk + +`func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) GetStockReservationCutoffOk() (*interface{}, bool)` + +GetStockReservationCutoffOk returns a tuple with the StockReservationCutoff field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockReservationCutoff + +`func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) SetStockReservationCutoff(v interface{})` + +SetStockReservationCutoff sets StockReservationCutoff field to given value. + +### HasStockReservationCutoff + +`func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) HasStockReservationCutoff() bool` + +HasStockReservationCutoff returns a boolean if a field has been set. + +### SetStockReservationCutoffNil + +`func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) SetStockReservationCutoffNil(b bool)` + + SetStockReservationCutoffNil sets the value for StockReservationCutoff to be an explicit nil + +### UnsetStockReservationCutoff +`func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) UnsetStockReservationCutoff()` + +UnsetStockReservationCutoff ensures that no value is present for StockReservationCutoff, not even an explicit nil +### GetPutStockTransfersOnHold + +`func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) GetPutStockTransfersOnHold() interface{}` + +GetPutStockTransfersOnHold returns the PutStockTransfersOnHold field if non-nil, zero value otherwise. + +### GetPutStockTransfersOnHoldOk + +`func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) GetPutStockTransfersOnHoldOk() (*interface{}, bool)` + +GetPutStockTransfersOnHoldOk returns a tuple with the PutStockTransfersOnHold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPutStockTransfersOnHold + +`func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) SetPutStockTransfersOnHold(v interface{})` + +SetPutStockTransfersOnHold sets PutStockTransfersOnHold field to given value. + +### HasPutStockTransfersOnHold + +`func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) HasPutStockTransfersOnHold() bool` + +HasPutStockTransfersOnHold returns a boolean if a field has been set. + +### SetPutStockTransfersOnHoldNil + +`func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) SetPutStockTransfersOnHoldNil(b bool)` + + SetPutStockTransfersOnHoldNil sets the value for PutStockTransfersOnHold to be an explicit nil + +### UnsetPutStockTransfersOnHold +`func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) UnsetPutStockTransfersOnHold()` + +UnsetPutStockTransfersOnHold ensures that no value is present for PutStockTransfersOnHold, not even an explicit nil +### GetManualStockDecrement + +`func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) GetManualStockDecrement() interface{}` + +GetManualStockDecrement returns the ManualStockDecrement field if non-nil, zero value otherwise. + +### GetManualStockDecrementOk + +`func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) GetManualStockDecrementOk() (*interface{}, bool)` + +GetManualStockDecrementOk returns a tuple with the ManualStockDecrement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManualStockDecrement + +`func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) SetManualStockDecrement(v interface{})` + +SetManualStockDecrement sets ManualStockDecrement field to given value. + +### HasManualStockDecrement + +`func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) HasManualStockDecrement() bool` + +HasManualStockDecrement returns a boolean if a field has been set. + +### SetManualStockDecrementNil + +`func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) SetManualStockDecrementNil(b bool)` + + SetManualStockDecrementNil sets the value for ManualStockDecrement to be an explicit nil + +### UnsetManualStockDecrement +`func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) UnsetManualStockDecrement()` + +UnsetManualStockDecrement ensures that no value is present for ManualStockDecrement, not even an explicit nil ### GetCreatedAt `func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETInventoryReturnLocationsInventoryReturnLocationId200ResponseDataAttributes.md b/api/docs/GETInventoryReturnLocationsInventoryReturnLocationId200ResponseDataAttributes.md index 085846c5..9d2b1728 100644 --- a/api/docs/GETInventoryReturnLocationsInventoryReturnLocationId200ResponseDataAttributes.md +++ b/api/docs/GETInventoryReturnLocationsInventoryReturnLocationId200ResponseDataAttributes.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETInventoryStockLocationsInventoryStockLocationId200ResponseDataAttributes.md b/api/docs/GETInventoryStockLocationsInventoryStockLocationId200ResponseDataAttributes.md index 9143b007..e633c37e 100644 --- a/api/docs/GETInventoryStockLocationsInventoryStockLocationId200ResponseDataAttributes.md +++ b/api/docs/GETInventoryStockLocationsInventoryStockLocationId200ResponseDataAttributes.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETKlarnaGatewaysKlarnaGatewayId200ResponseDataAttributes.md b/api/docs/GETKlarnaGatewaysKlarnaGatewayId200ResponseDataAttributes.md index 53deb65e..dc0bd95b 100644 --- a/api/docs/GETKlarnaGatewaysKlarnaGatewayId200ResponseDataAttributes.md +++ b/api/docs/GETKlarnaGatewaysKlarnaGatewayId200ResponseDataAttributes.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes.md b/api/docs/GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes.md index 54cad95b..a326d263 100644 --- a/api/docs/GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes.md +++ b/api/docs/GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes.md @@ -4,19 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SessionId** | Pointer to **interface{}** | The identifier of the payment session, useful to updated it. | [optional] +**SessionId** | Pointer to **interface{}** | The identifier of the payment session. | [optional] **ClientToken** | Pointer to **interface{}** | The public token linked to your API credential. Available upon session creation. | [optional] **PaymentMethods** | Pointer to **interface{}** | The merchant available payment methods for the assoiated order. Available upon session creation. | [optional] **AuthToken** | Pointer to **interface{}** | The token returned by a successful client authorization, mandatory to place the order. | [optional] **MismatchedAmounts** | Pointer to **interface{}** | Indicates if the order current amount differs form the one of the created payment intent. | [optional] -**IntentAmountCents** | Pointer to **interface{}** | The amount of the associated payment intent, in cents. | [optional] -**IntentAmountFloat** | Pointer to **interface{}** | The amount of the associated payment intent, float. | [optional] -**FormattedIntentAmount** | Pointer to **interface{}** | The amount of the associated payment intent, formatted. | [optional] -**PaymentInstrument** | Pointer to **interface{}** | Information about the payment instrument used in the transaction | [optional] +**PaymentInstrument** | Pointer to **interface{}** | Information about the payment instrument used in the transaction. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -213,111 +210,6 @@ HasMismatchedAmounts returns a boolean if a field has been set. `func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) UnsetMismatchedAmounts()` UnsetMismatchedAmounts ensures that no value is present for MismatchedAmounts, not even an explicit nil -### GetIntentAmountCents - -`func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) GetIntentAmountCents() interface{}` - -GetIntentAmountCents returns the IntentAmountCents field if non-nil, zero value otherwise. - -### GetIntentAmountCentsOk - -`func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) GetIntentAmountCentsOk() (*interface{}, bool)` - -GetIntentAmountCentsOk returns a tuple with the IntentAmountCents field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIntentAmountCents - -`func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) SetIntentAmountCents(v interface{})` - -SetIntentAmountCents sets IntentAmountCents field to given value. - -### HasIntentAmountCents - -`func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) HasIntentAmountCents() bool` - -HasIntentAmountCents returns a boolean if a field has been set. - -### SetIntentAmountCentsNil - -`func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) SetIntentAmountCentsNil(b bool)` - - SetIntentAmountCentsNil sets the value for IntentAmountCents to be an explicit nil - -### UnsetIntentAmountCents -`func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) UnsetIntentAmountCents()` - -UnsetIntentAmountCents ensures that no value is present for IntentAmountCents, not even an explicit nil -### GetIntentAmountFloat - -`func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) GetIntentAmountFloat() interface{}` - -GetIntentAmountFloat returns the IntentAmountFloat field if non-nil, zero value otherwise. - -### GetIntentAmountFloatOk - -`func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) GetIntentAmountFloatOk() (*interface{}, bool)` - -GetIntentAmountFloatOk returns a tuple with the IntentAmountFloat field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIntentAmountFloat - -`func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) SetIntentAmountFloat(v interface{})` - -SetIntentAmountFloat sets IntentAmountFloat field to given value. - -### HasIntentAmountFloat - -`func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) HasIntentAmountFloat() bool` - -HasIntentAmountFloat returns a boolean if a field has been set. - -### SetIntentAmountFloatNil - -`func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) SetIntentAmountFloatNil(b bool)` - - SetIntentAmountFloatNil sets the value for IntentAmountFloat to be an explicit nil - -### UnsetIntentAmountFloat -`func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) UnsetIntentAmountFloat()` - -UnsetIntentAmountFloat ensures that no value is present for IntentAmountFloat, not even an explicit nil -### GetFormattedIntentAmount - -`func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) GetFormattedIntentAmount() interface{}` - -GetFormattedIntentAmount returns the FormattedIntentAmount field if non-nil, zero value otherwise. - -### GetFormattedIntentAmountOk - -`func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) GetFormattedIntentAmountOk() (*interface{}, bool)` - -GetFormattedIntentAmountOk returns a tuple with the FormattedIntentAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFormattedIntentAmount - -`func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) SetFormattedIntentAmount(v interface{})` - -SetFormattedIntentAmount sets FormattedIntentAmount field to given value. - -### HasFormattedIntentAmount - -`func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) HasFormattedIntentAmount() bool` - -HasFormattedIntentAmount returns a boolean if a field has been set. - -### SetFormattedIntentAmountNil - -`func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) SetFormattedIntentAmountNil(b bool)` - - SetFormattedIntentAmountNil sets the value for FormattedIntentAmount to be an explicit nil - -### UnsetFormattedIntentAmount -`func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) UnsetFormattedIntentAmount()` - -UnsetFormattedIntentAmount ensures that no value is present for FormattedIntentAmount, not even an explicit nil ### GetPaymentInstrument `func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) GetPaymentInstrument() interface{}` diff --git a/api/docs/GETLineItemOptionsLineItemOptionId200ResponseDataAttributes.md b/api/docs/GETLineItemOptionsLineItemOptionId200ResponseDataAttributes.md index 1c9fc88e..a30368cd 100644 --- a/api/docs/GETLineItemOptionsLineItemOptionId200ResponseDataAttributes.md +++ b/api/docs/GETLineItemOptionsLineItemOptionId200ResponseDataAttributes.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The name of the line item option. When blank, it gets populated with the name of the associated SKU option. | [optional] -**Quantity** | Pointer to **interface{}** | The line item option's quantity | [optional] +**Quantity** | Pointer to **interface{}** | The line item option's quantity. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the order's market. | [optional] -**UnitAmountCents** | Pointer to **interface{}** | The unit amount of the line item option, in cents. When you add a line item option to an order, this is automatically populated from associated SKU option's price. | [optional] +**UnitAmountCents** | Pointer to **interface{}** | The unit amount of the line item option, in cents. When you add a line item option to an order, this is automatically populated from associated SKU option's price. Cannot be passed by sales channels. | [optional] **UnitAmountFloat** | Pointer to **interface{}** | The unit amount of the line item option, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce. | [optional] **FormattedUnitAmount** | Pointer to **interface{}** | The unit amount of the line item option, formatted. This can be useful to display the amount with currency in you views. | [optional] **TotalAmountCents** | Pointer to **interface{}** | The unit amount x quantity, in cents. | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETLineItemsLineItemId200ResponseDataAttributes.md b/api/docs/GETLineItemsLineItemId200ResponseDataAttributes.md index 5baa6f7c..70e6fca9 100644 --- a/api/docs/GETLineItemsLineItemId200ResponseDataAttributes.md +++ b/api/docs/GETLineItemsLineItemId200ResponseDataAttributes.md @@ -7,11 +7,15 @@ Name | Type | Description | Notes **SkuCode** | Pointer to **interface{}** | The code of the associated SKU. | [optional] **BundleCode** | Pointer to **interface{}** | The code of the associated bundle. | [optional] **Quantity** | Pointer to **interface{}** | The line item quantity. | [optional] +**ExternalPrice** | Pointer to **interface{}** | When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the order's market. | [optional] -**UnitAmountCents** | Pointer to **interface{}** | The unit amount of the line item, in cents. Can be specified without an item, otherwise is automatically populated from the price list associated to the order's market. | [optional] +**UnitAmountCents** | Pointer to **interface{}** | The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. | [optional] **UnitAmountFloat** | Pointer to **interface{}** | The unit amount of the line item, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce. | [optional] **FormattedUnitAmount** | Pointer to **interface{}** | The unit amount of the line item, formatted. This can be useful to display the amount with currency in you views. | [optional] -**OptionsAmountCents** | Pointer to **interface{}** | The options amount of the line item, in cents. | [optional] +**CompareAtAmountCents** | Pointer to **interface{}** | The compared price amount, in cents. Useful to display a percentage discount. | [optional] +**CompareAtAmountFloat** | Pointer to **interface{}** | The compared price amount, float. | [optional] +**FormattedCompareAtAmount** | Pointer to **interface{}** | The compared price amount, formatted. | [optional] +**OptionsAmountCents** | Pointer to **interface{}** | The options amount of the line item, in cents. Cannot be passed by sales channels. | [optional] **OptionsAmountFloat** | Pointer to **interface{}** | The options amount of the line item, float. | [optional] **FormattedOptionsAmount** | Pointer to **interface{}** | The options amount of the line item, formatted. | [optional] **DiscountCents** | Pointer to **interface{}** | The discount applied to the line item, in cents. When you apply a discount to an order, this is automatically calculated basing on the line item total_amount_cents value. | [optional] @@ -28,12 +32,15 @@ Name | Type | Description | Notes **DiscountBreakdown** | Pointer to **interface{}** | The discount breakdown for this line item (if calculated). | [optional] **TaxRate** | Pointer to **interface{}** | The tax rate for this line item (if calculated). | [optional] **TaxBreakdown** | Pointer to **interface{}** | The tax breakdown for this line item (if calculated). | [optional] -**ItemType** | Pointer to **interface{}** | The type of the associate item. Can be one of 'skus', 'bundles', 'shipments', 'payment_methods', 'adjustments', 'gift_cards', or a valid promotion type. | [optional] +**ItemType** | Pointer to **interface{}** | The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'. | [optional] **Frequency** | Pointer to **interface{}** | The frequency which generates a subscription. Must be supported by existing associated subscription_model. | [optional] +**CouponCode** | Pointer to **interface{}** | The coupon code, if any, used to trigger this promotion line item. null for other line item types or if the promotion line item wasn't triggered by a coupon. | [optional] +**CircuitState** | Pointer to **interface{}** | The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. | [optional] +**CircuitFailureCount** | Pointer to **interface{}** | The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -160,6 +167,41 @@ HasQuantity returns a boolean if a field has been set. `func (o *GETLineItemsLineItemId200ResponseDataAttributes) UnsetQuantity()` UnsetQuantity ensures that no value is present for Quantity, not even an explicit nil +### GetExternalPrice + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetExternalPrice() interface{}` + +GetExternalPrice returns the ExternalPrice field if non-nil, zero value otherwise. + +### GetExternalPriceOk + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetExternalPriceOk() (*interface{}, bool)` + +GetExternalPriceOk returns a tuple with the ExternalPrice field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalPrice + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetExternalPrice(v interface{})` + +SetExternalPrice sets ExternalPrice field to given value. + +### HasExternalPrice + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) HasExternalPrice() bool` + +HasExternalPrice returns a boolean if a field has been set. + +### SetExternalPriceNil + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetExternalPriceNil(b bool)` + + SetExternalPriceNil sets the value for ExternalPrice to be an explicit nil + +### UnsetExternalPrice +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) UnsetExternalPrice()` + +UnsetExternalPrice ensures that no value is present for ExternalPrice, not even an explicit nil ### GetCurrencyCode `func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCurrencyCode() interface{}` @@ -300,6 +342,111 @@ HasFormattedUnitAmount returns a boolean if a field has been set. `func (o *GETLineItemsLineItemId200ResponseDataAttributes) UnsetFormattedUnitAmount()` UnsetFormattedUnitAmount ensures that no value is present for FormattedUnitAmount, not even an explicit nil +### GetCompareAtAmountCents + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCompareAtAmountCents() interface{}` + +GetCompareAtAmountCents returns the CompareAtAmountCents field if non-nil, zero value otherwise. + +### GetCompareAtAmountCentsOk + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCompareAtAmountCentsOk() (*interface{}, bool)` + +GetCompareAtAmountCentsOk returns a tuple with the CompareAtAmountCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompareAtAmountCents + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetCompareAtAmountCents(v interface{})` + +SetCompareAtAmountCents sets CompareAtAmountCents field to given value. + +### HasCompareAtAmountCents + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) HasCompareAtAmountCents() bool` + +HasCompareAtAmountCents returns a boolean if a field has been set. + +### SetCompareAtAmountCentsNil + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetCompareAtAmountCentsNil(b bool)` + + SetCompareAtAmountCentsNil sets the value for CompareAtAmountCents to be an explicit nil + +### UnsetCompareAtAmountCents +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) UnsetCompareAtAmountCents()` + +UnsetCompareAtAmountCents ensures that no value is present for CompareAtAmountCents, not even an explicit nil +### GetCompareAtAmountFloat + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCompareAtAmountFloat() interface{}` + +GetCompareAtAmountFloat returns the CompareAtAmountFloat field if non-nil, zero value otherwise. + +### GetCompareAtAmountFloatOk + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCompareAtAmountFloatOk() (*interface{}, bool)` + +GetCompareAtAmountFloatOk returns a tuple with the CompareAtAmountFloat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompareAtAmountFloat + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetCompareAtAmountFloat(v interface{})` + +SetCompareAtAmountFloat sets CompareAtAmountFloat field to given value. + +### HasCompareAtAmountFloat + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) HasCompareAtAmountFloat() bool` + +HasCompareAtAmountFloat returns a boolean if a field has been set. + +### SetCompareAtAmountFloatNil + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetCompareAtAmountFloatNil(b bool)` + + SetCompareAtAmountFloatNil sets the value for CompareAtAmountFloat to be an explicit nil + +### UnsetCompareAtAmountFloat +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) UnsetCompareAtAmountFloat()` + +UnsetCompareAtAmountFloat ensures that no value is present for CompareAtAmountFloat, not even an explicit nil +### GetFormattedCompareAtAmount + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetFormattedCompareAtAmount() interface{}` + +GetFormattedCompareAtAmount returns the FormattedCompareAtAmount field if non-nil, zero value otherwise. + +### GetFormattedCompareAtAmountOk + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetFormattedCompareAtAmountOk() (*interface{}, bool)` + +GetFormattedCompareAtAmountOk returns a tuple with the FormattedCompareAtAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormattedCompareAtAmount + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetFormattedCompareAtAmount(v interface{})` + +SetFormattedCompareAtAmount sets FormattedCompareAtAmount field to given value. + +### HasFormattedCompareAtAmount + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) HasFormattedCompareAtAmount() bool` + +HasFormattedCompareAtAmount returns a boolean if a field has been set. + +### SetFormattedCompareAtAmountNil + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetFormattedCompareAtAmountNil(b bool)` + + SetFormattedCompareAtAmountNil sets the value for FormattedCompareAtAmount to be an explicit nil + +### UnsetFormattedCompareAtAmount +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) UnsetFormattedCompareAtAmount()` + +UnsetFormattedCompareAtAmount ensures that no value is present for FormattedCompareAtAmount, not even an explicit nil ### GetOptionsAmountCents `func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetOptionsAmountCents() interface{}` @@ -965,6 +1112,111 @@ HasFrequency returns a boolean if a field has been set. `func (o *GETLineItemsLineItemId200ResponseDataAttributes) UnsetFrequency()` UnsetFrequency ensures that no value is present for Frequency, not even an explicit nil +### GetCouponCode + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCouponCode() interface{}` + +GetCouponCode returns the CouponCode field if non-nil, zero value otherwise. + +### GetCouponCodeOk + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCouponCodeOk() (*interface{}, bool)` + +GetCouponCodeOk returns a tuple with the CouponCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCouponCode + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetCouponCode(v interface{})` + +SetCouponCode sets CouponCode field to given value. + +### HasCouponCode + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) HasCouponCode() bool` + +HasCouponCode returns a boolean if a field has been set. + +### SetCouponCodeNil + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetCouponCodeNil(b bool)` + + SetCouponCodeNil sets the value for CouponCode to be an explicit nil + +### UnsetCouponCode +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) UnsetCouponCode()` + +UnsetCouponCode ensures that no value is present for CouponCode, not even an explicit nil +### GetCircuitState + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCircuitState() interface{}` + +GetCircuitState returns the CircuitState field if non-nil, zero value otherwise. + +### GetCircuitStateOk + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCircuitStateOk() (*interface{}, bool)` + +GetCircuitStateOk returns a tuple with the CircuitState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitState + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetCircuitState(v interface{})` + +SetCircuitState sets CircuitState field to given value. + +### HasCircuitState + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) HasCircuitState() bool` + +HasCircuitState returns a boolean if a field has been set. + +### SetCircuitStateNil + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetCircuitStateNil(b bool)` + + SetCircuitStateNil sets the value for CircuitState to be an explicit nil + +### UnsetCircuitState +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) UnsetCircuitState()` + +UnsetCircuitState ensures that no value is present for CircuitState, not even an explicit nil +### GetCircuitFailureCount + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCircuitFailureCount() interface{}` + +GetCircuitFailureCount returns the CircuitFailureCount field if non-nil, zero value otherwise. + +### GetCircuitFailureCountOk + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCircuitFailureCountOk() (*interface{}, bool)` + +GetCircuitFailureCountOk returns a tuple with the CircuitFailureCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitFailureCount + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetCircuitFailureCount(v interface{})` + +SetCircuitFailureCount sets CircuitFailureCount field to given value. + +### HasCircuitFailureCount + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) HasCircuitFailureCount() bool` + +HasCircuitFailureCount returns a boolean if a field has been set. + +### SetCircuitFailureCountNil + +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetCircuitFailureCountNil(b bool)` + + SetCircuitFailureCountNil sets the value for CircuitFailureCount to be an explicit nil + +### UnsetCircuitFailureCount +`func (o *GETLineItemsLineItemId200ResponseDataAttributes) UnsetCircuitFailureCount()` + +UnsetCircuitFailureCount ensures that no value is present for CircuitFailureCount, not even an explicit nil ### GetCreatedAt `func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETLinks200Response.md b/api/docs/GETLinks200Response.md new file mode 100644 index 00000000..ed2ed1c5 --- /dev/null +++ b/api/docs/GETLinks200Response.md @@ -0,0 +1,66 @@ +# GETLinks200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewGETLinks200Response + +`func NewGETLinks200Response() *GETLinks200Response` + +NewGETLinks200Response instantiates a new GETLinks200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETLinks200ResponseWithDefaults + +`func NewGETLinks200ResponseWithDefaults() *GETLinks200Response` + +NewGETLinks200ResponseWithDefaults instantiates a new GETLinks200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETLinks200Response) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETLinks200Response) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETLinks200Response) SetData(v interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETLinks200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *GETLinks200Response) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *GETLinks200Response) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETLinksLinkId200Response.md b/api/docs/GETLinksLinkId200Response.md new file mode 100644 index 00000000..9d0e52b5 --- /dev/null +++ b/api/docs/GETLinksLinkId200Response.md @@ -0,0 +1,56 @@ +# GETLinksLinkId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**GETLinksLinkId200ResponseData**](GETLinksLinkId200ResponseData.md) | | [optional] + +## Methods + +### NewGETLinksLinkId200Response + +`func NewGETLinksLinkId200Response() *GETLinksLinkId200Response` + +NewGETLinksLinkId200Response instantiates a new GETLinksLinkId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETLinksLinkId200ResponseWithDefaults + +`func NewGETLinksLinkId200ResponseWithDefaults() *GETLinksLinkId200Response` + +NewGETLinksLinkId200ResponseWithDefaults instantiates a new GETLinksLinkId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETLinksLinkId200Response) GetData() GETLinksLinkId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETLinksLinkId200Response) GetDataOk() (*GETLinksLinkId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETLinksLinkId200Response) SetData(v GETLinksLinkId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETLinksLinkId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETLinksLinkId200ResponseData.md b/api/docs/GETLinksLinkId200ResponseData.md new file mode 100644 index 00000000..56049b10 --- /dev/null +++ b/api/docs/GETLinksLinkId200ResponseData.md @@ -0,0 +1,180 @@ +# GETLinksLinkId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**GETLinksLinkId200ResponseDataAttributes**](GETLinksLinkId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTLinks201ResponseDataRelationships**](POSTLinks201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewGETLinksLinkId200ResponseData + +`func NewGETLinksLinkId200ResponseData() *GETLinksLinkId200ResponseData` + +NewGETLinksLinkId200ResponseData instantiates a new GETLinksLinkId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETLinksLinkId200ResponseDataWithDefaults + +`func NewGETLinksLinkId200ResponseDataWithDefaults() *GETLinksLinkId200ResponseData` + +NewGETLinksLinkId200ResponseDataWithDefaults instantiates a new GETLinksLinkId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *GETLinksLinkId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GETLinksLinkId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *GETLinksLinkId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *GETLinksLinkId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *GETLinksLinkId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *GETLinksLinkId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *GETLinksLinkId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETLinksLinkId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETLinksLinkId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETLinksLinkId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETLinksLinkId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETLinksLinkId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *GETLinksLinkId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *GETLinksLinkId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *GETLinksLinkId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *GETLinksLinkId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *GETLinksLinkId200ResponseData) GetAttributes() GETLinksLinkId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *GETLinksLinkId200ResponseData) GetAttributesOk() (*GETLinksLinkId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *GETLinksLinkId200ResponseData) SetAttributes(v GETLinksLinkId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *GETLinksLinkId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *GETLinksLinkId200ResponseData) GetRelationships() POSTLinks201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *GETLinksLinkId200ResponseData) GetRelationshipsOk() (*POSTLinks201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *GETLinksLinkId200ResponseData) SetRelationships(v POSTLinks201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *GETLinksLinkId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETLinksLinkId200ResponseDataAttributes.md b/api/docs/GETLinksLinkId200ResponseDataAttributes.md new file mode 100644 index 00000000..2dd3eacb --- /dev/null +++ b/api/docs/GETLinksLinkId200ResponseDataAttributes.md @@ -0,0 +1,642 @@ +# GETLinksLinkId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **interface{}** | The link internal name. | [optional] +**ClientId** | Pointer to **interface{}** | The link application client id, used to fetch JWT. | [optional] +**Scope** | Pointer to **interface{}** | The link application scope, used to fetch JWT. | [optional] +**StartsAt** | Pointer to **interface{}** | The activation date/time of this link. | [optional] +**ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this link (must be after starts_at). | [optional] +**Active** | Pointer to **interface{}** | Indicates if the link is active (enabled and not expired). | [optional] +**Status** | Pointer to **interface{}** | The link status. One of 'disabled', 'expired', 'pending', or 'active'. | [optional] +**Domain** | Pointer to **interface{}** | The link URL second level domain. | [optional] +**Url** | Pointer to **interface{}** | The link URL. | [optional] +**ItemType** | Pointer to **interface{}** | The type of the associated item. One of 'orders', 'skus', or 'sku_lists'. | [optional] +**Params** | Pointer to **interface{}** | The link params to be passed in URL the query string. | [optional] +**DisabledAt** | Pointer to **interface{}** | Time at which this resource was disabled. | [optional] +**CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] +**UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewGETLinksLinkId200ResponseDataAttributes + +`func NewGETLinksLinkId200ResponseDataAttributes() *GETLinksLinkId200ResponseDataAttributes` + +NewGETLinksLinkId200ResponseDataAttributes instantiates a new GETLinksLinkId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETLinksLinkId200ResponseDataAttributesWithDefaults + +`func NewGETLinksLinkId200ResponseDataAttributesWithDefaults() *GETLinksLinkId200ResponseDataAttributes` + +NewGETLinksLinkId200ResponseDataAttributesWithDefaults instantiates a new GETLinksLinkId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + +### HasName + +`func (o *GETLinksLinkId200ResponseDataAttributes) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *GETLinksLinkId200ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetClientId + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetClientId() interface{}` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetClientIdOk() (*interface{}, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetClientId(v interface{})` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *GETLinksLinkId200ResponseDataAttributes) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### SetClientIdNil + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetClientIdNil(b bool)` + + SetClientIdNil sets the value for ClientId to be an explicit nil + +### UnsetClientId +`func (o *GETLinksLinkId200ResponseDataAttributes) UnsetClientId()` + +UnsetClientId ensures that no value is present for ClientId, not even an explicit nil +### GetScope + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetScope() interface{}` + +GetScope returns the Scope field if non-nil, zero value otherwise. + +### GetScopeOk + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetScopeOk() (*interface{}, bool)` + +GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScope + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetScope(v interface{})` + +SetScope sets Scope field to given value. + +### HasScope + +`func (o *GETLinksLinkId200ResponseDataAttributes) HasScope() bool` + +HasScope returns a boolean if a field has been set. + +### SetScopeNil + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetScopeNil(b bool)` + + SetScopeNil sets the value for Scope to be an explicit nil + +### UnsetScope +`func (o *GETLinksLinkId200ResponseDataAttributes) UnsetScope()` + +UnsetScope ensures that no value is present for Scope, not even an explicit nil +### GetStartsAt + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetStartsAt() interface{}` + +GetStartsAt returns the StartsAt field if non-nil, zero value otherwise. + +### GetStartsAtOk + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool)` + +GetStartsAtOk returns a tuple with the StartsAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartsAt + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetStartsAt(v interface{})` + +SetStartsAt sets StartsAt field to given value. + +### HasStartsAt + +`func (o *GETLinksLinkId200ResponseDataAttributes) HasStartsAt() bool` + +HasStartsAt returns a boolean if a field has been set. + +### SetStartsAtNil + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetStartsAtNil(b bool)` + + SetStartsAtNil sets the value for StartsAt to be an explicit nil + +### UnsetStartsAt +`func (o *GETLinksLinkId200ResponseDataAttributes) UnsetStartsAt()` + +UnsetStartsAt ensures that no value is present for StartsAt, not even an explicit nil +### GetExpiresAt + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetExpiresAt() interface{}` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetExpiresAt(v interface{})` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *GETLinksLinkId200ResponseDataAttributes) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *GETLinksLinkId200ResponseDataAttributes) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetActive + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetActive() interface{}` + +GetActive returns the Active field if non-nil, zero value otherwise. + +### GetActiveOk + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetActiveOk() (*interface{}, bool)` + +GetActiveOk returns a tuple with the Active field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActive + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetActive(v interface{})` + +SetActive sets Active field to given value. + +### HasActive + +`func (o *GETLinksLinkId200ResponseDataAttributes) HasActive() bool` + +HasActive returns a boolean if a field has been set. + +### SetActiveNil + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetActiveNil(b bool)` + + SetActiveNil sets the value for Active to be an explicit nil + +### UnsetActive +`func (o *GETLinksLinkId200ResponseDataAttributes) UnsetActive()` + +UnsetActive ensures that no value is present for Active, not even an explicit nil +### GetStatus + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetStatus() interface{}` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetStatus(v interface{})` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GETLinksLinkId200ResponseDataAttributes) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### SetStatusNil + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetStatusNil(b bool)` + + SetStatusNil sets the value for Status to be an explicit nil + +### UnsetStatus +`func (o *GETLinksLinkId200ResponseDataAttributes) UnsetStatus()` + +UnsetStatus ensures that no value is present for Status, not even an explicit nil +### GetDomain + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetDomain() interface{}` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetDomainOk() (*interface{}, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetDomain(v interface{})` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *GETLinksLinkId200ResponseDataAttributes) HasDomain() bool` + +HasDomain returns a boolean if a field has been set. + +### SetDomainNil + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetDomainNil(b bool)` + + SetDomainNil sets the value for Domain to be an explicit nil + +### UnsetDomain +`func (o *GETLinksLinkId200ResponseDataAttributes) UnsetDomain()` + +UnsetDomain ensures that no value is present for Domain, not even an explicit nil +### GetUrl + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetUrl() interface{}` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetUrlOk() (*interface{}, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetUrl(v interface{})` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *GETLinksLinkId200ResponseDataAttributes) HasUrl() bool` + +HasUrl returns a boolean if a field has been set. + +### SetUrlNil + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetUrlNil(b bool)` + + SetUrlNil sets the value for Url to be an explicit nil + +### UnsetUrl +`func (o *GETLinksLinkId200ResponseDataAttributes) UnsetUrl()` + +UnsetUrl ensures that no value is present for Url, not even an explicit nil +### GetItemType + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetItemType() interface{}` + +GetItemType returns the ItemType field if non-nil, zero value otherwise. + +### GetItemTypeOk + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetItemTypeOk() (*interface{}, bool)` + +GetItemTypeOk returns a tuple with the ItemType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItemType + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetItemType(v interface{})` + +SetItemType sets ItemType field to given value. + +### HasItemType + +`func (o *GETLinksLinkId200ResponseDataAttributes) HasItemType() bool` + +HasItemType returns a boolean if a field has been set. + +### SetItemTypeNil + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetItemTypeNil(b bool)` + + SetItemTypeNil sets the value for ItemType to be an explicit nil + +### UnsetItemType +`func (o *GETLinksLinkId200ResponseDataAttributes) UnsetItemType()` + +UnsetItemType ensures that no value is present for ItemType, not even an explicit nil +### GetParams + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetParams() interface{}` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetParamsOk() (*interface{}, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetParams(v interface{})` + +SetParams sets Params field to given value. + +### HasParams + +`func (o *GETLinksLinkId200ResponseDataAttributes) HasParams() bool` + +HasParams returns a boolean if a field has been set. + +### SetParamsNil + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetParamsNil(b bool)` + + SetParamsNil sets the value for Params to be an explicit nil + +### UnsetParams +`func (o *GETLinksLinkId200ResponseDataAttributes) UnsetParams()` + +UnsetParams ensures that no value is present for Params, not even an explicit nil +### GetDisabledAt + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetDisabledAt() interface{}` + +GetDisabledAt returns the DisabledAt field if non-nil, zero value otherwise. + +### GetDisabledAtOk + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool)` + +GetDisabledAtOk returns a tuple with the DisabledAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabledAt + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetDisabledAt(v interface{})` + +SetDisabledAt sets DisabledAt field to given value. + +### HasDisabledAt + +`func (o *GETLinksLinkId200ResponseDataAttributes) HasDisabledAt() bool` + +HasDisabledAt returns a boolean if a field has been set. + +### SetDisabledAtNil + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetDisabledAtNil(b bool)` + + SetDisabledAtNil sets the value for DisabledAt to be an explicit nil + +### UnsetDisabledAt +`func (o *GETLinksLinkId200ResponseDataAttributes) UnsetDisabledAt()` + +UnsetDisabledAt ensures that no value is present for DisabledAt, not even an explicit nil +### GetCreatedAt + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetCreatedAt() interface{}` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetCreatedAt(v interface{})` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *GETLinksLinkId200ResponseDataAttributes) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### SetCreatedAtNil + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetCreatedAtNil(b bool)` + + SetCreatedAtNil sets the value for CreatedAt to be an explicit nil + +### UnsetCreatedAt +`func (o *GETLinksLinkId200ResponseDataAttributes) UnsetCreatedAt()` + +UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil +### GetUpdatedAt + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetUpdatedAt() interface{}` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetUpdatedAt(v interface{})` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *GETLinksLinkId200ResponseDataAttributes) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### SetUpdatedAtNil + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetUpdatedAtNil(b bool)` + + SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil + +### UnsetUpdatedAt +`func (o *GETLinksLinkId200ResponseDataAttributes) UnsetUpdatedAt()` + +UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil +### GetReference + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *GETLinksLinkId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *GETLinksLinkId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *GETLinksLinkId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *GETLinksLinkId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *GETLinksLinkId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *GETLinksLinkId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *GETLinksLinkId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *GETLinksLinkId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes.md b/api/docs/GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes.md index d59ab352..68c7467b 100644 --- a/api/docs/GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes.md +++ b/api/docs/GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes.md @@ -5,10 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The tax calculator's internal name. | [optional] +**Type** | Pointer to **interface{}** | The tax calculator's type. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -65,6 +66,41 @@ HasName returns a boolean if a field has been set. `func (o *GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetType + +`func (o *GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetCreatedAt `func (o *GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETMarketsMarketId200ResponseDataAttributes.md b/api/docs/GETMarketsMarketId200ResponseDataAttributes.md index 32d31323..87fcc589 100644 --- a/api/docs/GETMarketsMarketId200ResponseDataAttributes.md +++ b/api/docs/GETMarketsMarketId200ResponseDataAttributes.md @@ -4,19 +4,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | Pointer to **interface{}** | Unique identifier for the market (numeric) | [optional] -**Name** | Pointer to **interface{}** | The market's internal name | [optional] -**FacebookPixelId** | Pointer to **interface{}** | The Facebook Pixed ID | [optional] -**CheckoutUrl** | Pointer to **interface{}** | The checkout URL for this market | [optional] +**Number** | Pointer to **interface{}** | Unique identifier for the market (numeric). | [optional] +**Name** | Pointer to **interface{}** | The market's internal name. | [optional] +**Code** | Pointer to **interface{}** | A string that you can use to identify the market (must be unique within the environment). | [optional] +**FacebookPixelId** | Pointer to **interface{}** | The Facebook Pixed ID. | [optional] +**CheckoutUrl** | Pointer to **interface{}** | The checkout URL for this market. | [optional] **ExternalPricesUrl** | Pointer to **interface{}** | The URL used to overwrite prices by an external source. | [optional] **ExternalOrderValidationUrl** | Pointer to **interface{}** | The URL used to validate orders by an external source. | [optional] -**SharedSecret** | Pointer to **interface{}** | The shared secret used to sign the external requests payload. | [optional] **Private** | Pointer to **interface{}** | Indicates if market belongs to a customer_group. | [optional] -**DisabledAt** | Pointer to **interface{}** | Time at which the market was disabled. | [optional] +**ShippingCostCutoff** | Pointer to **interface{}** | When specified indicates the maximum number of shipping line items with cost that will be added to an order. | [optional] +**DisabledAt** | Pointer to **interface{}** | Time at which this resource was disabled. | [optional] +**SharedSecret** | Pointer to **interface{}** | The shared secret used to sign the external request payload. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -108,6 +110,41 @@ HasName returns a boolean if a field has been set. `func (o *GETMarketsMarketId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCode + +`func (o *GETMarketsMarketId200ResponseDataAttributes) GetCode() interface{}` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *GETMarketsMarketId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *GETMarketsMarketId200ResponseDataAttributes) SetCode(v interface{})` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *GETMarketsMarketId200ResponseDataAttributes) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### SetCodeNil + +`func (o *GETMarketsMarketId200ResponseDataAttributes) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *GETMarketsMarketId200ResponseDataAttributes) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil ### GetFacebookPixelId `func (o *GETMarketsMarketId200ResponseDataAttributes) GetFacebookPixelId() interface{}` @@ -248,41 +285,6 @@ HasExternalOrderValidationUrl returns a boolean if a field has been set. `func (o *GETMarketsMarketId200ResponseDataAttributes) UnsetExternalOrderValidationUrl()` UnsetExternalOrderValidationUrl ensures that no value is present for ExternalOrderValidationUrl, not even an explicit nil -### GetSharedSecret - -`func (o *GETMarketsMarketId200ResponseDataAttributes) GetSharedSecret() interface{}` - -GetSharedSecret returns the SharedSecret field if non-nil, zero value otherwise. - -### GetSharedSecretOk - -`func (o *GETMarketsMarketId200ResponseDataAttributes) GetSharedSecretOk() (*interface{}, bool)` - -GetSharedSecretOk returns a tuple with the SharedSecret field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSharedSecret - -`func (o *GETMarketsMarketId200ResponseDataAttributes) SetSharedSecret(v interface{})` - -SetSharedSecret sets SharedSecret field to given value. - -### HasSharedSecret - -`func (o *GETMarketsMarketId200ResponseDataAttributes) HasSharedSecret() bool` - -HasSharedSecret returns a boolean if a field has been set. - -### SetSharedSecretNil - -`func (o *GETMarketsMarketId200ResponseDataAttributes) SetSharedSecretNil(b bool)` - - SetSharedSecretNil sets the value for SharedSecret to be an explicit nil - -### UnsetSharedSecret -`func (o *GETMarketsMarketId200ResponseDataAttributes) UnsetSharedSecret()` - -UnsetSharedSecret ensures that no value is present for SharedSecret, not even an explicit nil ### GetPrivate `func (o *GETMarketsMarketId200ResponseDataAttributes) GetPrivate() interface{}` @@ -318,6 +320,41 @@ HasPrivate returns a boolean if a field has been set. `func (o *GETMarketsMarketId200ResponseDataAttributes) UnsetPrivate()` UnsetPrivate ensures that no value is present for Private, not even an explicit nil +### GetShippingCostCutoff + +`func (o *GETMarketsMarketId200ResponseDataAttributes) GetShippingCostCutoff() interface{}` + +GetShippingCostCutoff returns the ShippingCostCutoff field if non-nil, zero value otherwise. + +### GetShippingCostCutoffOk + +`func (o *GETMarketsMarketId200ResponseDataAttributes) GetShippingCostCutoffOk() (*interface{}, bool)` + +GetShippingCostCutoffOk returns a tuple with the ShippingCostCutoff field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingCostCutoff + +`func (o *GETMarketsMarketId200ResponseDataAttributes) SetShippingCostCutoff(v interface{})` + +SetShippingCostCutoff sets ShippingCostCutoff field to given value. + +### HasShippingCostCutoff + +`func (o *GETMarketsMarketId200ResponseDataAttributes) HasShippingCostCutoff() bool` + +HasShippingCostCutoff returns a boolean if a field has been set. + +### SetShippingCostCutoffNil + +`func (o *GETMarketsMarketId200ResponseDataAttributes) SetShippingCostCutoffNil(b bool)` + + SetShippingCostCutoffNil sets the value for ShippingCostCutoff to be an explicit nil + +### UnsetShippingCostCutoff +`func (o *GETMarketsMarketId200ResponseDataAttributes) UnsetShippingCostCutoff()` + +UnsetShippingCostCutoff ensures that no value is present for ShippingCostCutoff, not even an explicit nil ### GetDisabledAt `func (o *GETMarketsMarketId200ResponseDataAttributes) GetDisabledAt() interface{}` @@ -353,6 +390,41 @@ HasDisabledAt returns a boolean if a field has been set. `func (o *GETMarketsMarketId200ResponseDataAttributes) UnsetDisabledAt()` UnsetDisabledAt ensures that no value is present for DisabledAt, not even an explicit nil +### GetSharedSecret + +`func (o *GETMarketsMarketId200ResponseDataAttributes) GetSharedSecret() interface{}` + +GetSharedSecret returns the SharedSecret field if non-nil, zero value otherwise. + +### GetSharedSecretOk + +`func (o *GETMarketsMarketId200ResponseDataAttributes) GetSharedSecretOk() (*interface{}, bool)` + +GetSharedSecretOk returns a tuple with the SharedSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharedSecret + +`func (o *GETMarketsMarketId200ResponseDataAttributes) SetSharedSecret(v interface{})` + +SetSharedSecret sets SharedSecret field to given value. + +### HasSharedSecret + +`func (o *GETMarketsMarketId200ResponseDataAttributes) HasSharedSecret() bool` + +HasSharedSecret returns a boolean if a field has been set. + +### SetSharedSecretNil + +`func (o *GETMarketsMarketId200ResponseDataAttributes) SetSharedSecretNil(b bool)` + + SetSharedSecretNil sets the value for SharedSecret to be an explicit nil + +### UnsetSharedSecret +`func (o *GETMarketsMarketId200ResponseDataAttributes) UnsetSharedSecret()` + +UnsetSharedSecret ensures that no value is present for SharedSecret, not even an explicit nil ### GetCreatedAt `func (o *GETMarketsMarketId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETMerchantsMerchantId200ResponseDataAttributes.md b/api/docs/GETMerchantsMerchantId200ResponseDataAttributes.md index 047204ab..f3952ff6 100644 --- a/api/docs/GETMerchantsMerchantId200ResponseDataAttributes.md +++ b/api/docs/GETMerchantsMerchantId200ResponseDataAttributes.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData.md b/api/docs/GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData.md index 25e64b55..7e28e36e 100644 --- a/api/docs/GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData.md +++ b/api/docs/GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes**](GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTOrderAmountPromotionRules201ResponseDataRelationships**](POSTOrderAmountPromotionRules201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTCustomPromotionRules201ResponseDataRelationships**](POSTCustomPromotionRules201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) GetRelationships() POSTOrderAmountPromotionRules201ResponseDataRelationships` +`func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) GetRelationships() POSTCustomPromotionRules201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) GetRelationshipsOk() (*POSTOrderAmountPromotionRules201ResponseDataRelationships, bool)` +`func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) GetRelationshipsOk() (*POSTCustomPromotionRules201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) SetRelationships(v POSTOrderAmountPromotionRules201ResponseDataRelationships)` +`func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) SetRelationships(v POSTCustomPromotionRules201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes.md b/api/docs/GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes.md index 0a36e07f..1e80a9e6 100644 --- a/api/docs/GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes.md +++ b/api/docs/GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The promotion rule's type. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **OrderAmountCents** | Pointer to **interface{}** | Apply the promotion only when order is over this amount, in cents. | [optional] **OrderAmountFloat** | Pointer to **interface{}** | Apply the promotion only when order is over this amount, float. | [optional] **FormattedOrderAmount** | Pointer to **interface{}** | Apply the promotion only when order is over this amount, formatted. | [optional] +**UseSubtotal** | Pointer to **interface{}** | Send this attribute if you want to compare the specified amount with order's subtotal (excluding discounts, if any). | [optional] ## Methods @@ -32,6 +34,41 @@ NewGETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttribut This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetType + +`func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetCreatedAt `func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) GetCreatedAt() interface{}` @@ -312,6 +349,41 @@ HasFormattedOrderAmount returns a boolean if a field has been set. `func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) UnsetFormattedOrderAmount()` UnsetFormattedOrderAmount ensures that no value is present for FormattedOrderAmount, not even an explicit nil +### GetUseSubtotal + +`func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) GetUseSubtotal() interface{}` + +GetUseSubtotal returns the UseSubtotal field if non-nil, zero value otherwise. + +### GetUseSubtotalOk + +`func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) GetUseSubtotalOk() (*interface{}, bool)` + +GetUseSubtotalOk returns a tuple with the UseSubtotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseSubtotal + +`func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) SetUseSubtotal(v interface{})` + +SetUseSubtotal sets UseSubtotal field to given value. + +### HasUseSubtotal + +`func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) HasUseSubtotal() bool` + +HasUseSubtotal returns a boolean if a field has been set. + +### SetUseSubtotalNil + +`func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) SetUseSubtotalNil(b bool)` + + SetUseSubtotalNil sets the value for UseSubtotal to be an explicit nil + +### UnsetUseSubtotal +`func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) UnsetUseSubtotal()` + +UnsetUseSubtotal ensures that no value is present for UseSubtotal, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/GETOrderCopiesOrderCopyId200ResponseDataAttributes.md b/api/docs/GETOrderCopiesOrderCopyId200ResponseDataAttributes.md index ceff7742..c8a7bddd 100644 --- a/api/docs/GETOrderCopiesOrderCopyId200ResponseDataAttributes.md +++ b/api/docs/GETOrderCopiesOrderCopyId200ResponseDataAttributes.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The order factory's type. | [optional] **Status** | Pointer to **interface{}** | The order factory status. One of 'pending' (default), 'in_progress', 'failed', or 'completed'. | [optional] **StartedAt** | Pointer to **interface{}** | Time at which the order copy was started. | [optional] **CompletedAt** | Pointer to **interface{}** | Time at which the order copy was completed. | [optional] @@ -15,9 +16,11 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **CancelSourceOrder** | Pointer to **interface{}** | Indicates if the source order must be cancelled upon copy. | [optional] +**ApplyPromotions** | Pointer to **interface{}** | Indicates if promotions got applied upon copy. | [optional] +**IgnoreInvalidCoupon** | Pointer to **interface{}** | Indicates to ignore invalid coupon code during copy. | [optional] ## Methods @@ -38,6 +41,41 @@ NewGETOrderCopiesOrderCopyId200ResponseDataAttributesWithDefaults instantiates a This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetType + +`func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetStatus `func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) GetStatus() interface{}` @@ -528,6 +566,76 @@ HasCancelSourceOrder returns a boolean if a field has been set. `func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) UnsetCancelSourceOrder()` UnsetCancelSourceOrder ensures that no value is present for CancelSourceOrder, not even an explicit nil +### GetApplyPromotions + +`func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) GetApplyPromotions() interface{}` + +GetApplyPromotions returns the ApplyPromotions field if non-nil, zero value otherwise. + +### GetApplyPromotionsOk + +`func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) GetApplyPromotionsOk() (*interface{}, bool)` + +GetApplyPromotionsOk returns a tuple with the ApplyPromotions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplyPromotions + +`func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) SetApplyPromotions(v interface{})` + +SetApplyPromotions sets ApplyPromotions field to given value. + +### HasApplyPromotions + +`func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) HasApplyPromotions() bool` + +HasApplyPromotions returns a boolean if a field has been set. + +### SetApplyPromotionsNil + +`func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) SetApplyPromotionsNil(b bool)` + + SetApplyPromotionsNil sets the value for ApplyPromotions to be an explicit nil + +### UnsetApplyPromotions +`func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) UnsetApplyPromotions()` + +UnsetApplyPromotions ensures that no value is present for ApplyPromotions, not even an explicit nil +### GetIgnoreInvalidCoupon + +`func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) GetIgnoreInvalidCoupon() interface{}` + +GetIgnoreInvalidCoupon returns the IgnoreInvalidCoupon field if non-nil, zero value otherwise. + +### GetIgnoreInvalidCouponOk + +`func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) GetIgnoreInvalidCouponOk() (*interface{}, bool)` + +GetIgnoreInvalidCouponOk returns a tuple with the IgnoreInvalidCoupon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIgnoreInvalidCoupon + +`func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) SetIgnoreInvalidCoupon(v interface{})` + +SetIgnoreInvalidCoupon sets IgnoreInvalidCoupon field to given value. + +### HasIgnoreInvalidCoupon + +`func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) HasIgnoreInvalidCoupon() bool` + +HasIgnoreInvalidCoupon returns a boolean if a field has been set. + +### SetIgnoreInvalidCouponNil + +`func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) SetIgnoreInvalidCouponNil(b bool)` + + SetIgnoreInvalidCouponNil sets the value for IgnoreInvalidCoupon to be an explicit nil + +### UnsetIgnoreInvalidCoupon +`func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) UnsetIgnoreInvalidCoupon()` + +UnsetIgnoreInvalidCoupon ensures that no value is present for IgnoreInvalidCoupon, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/GETOrderFactoriesOrderFactoryId200ResponseDataAttributes.md b/api/docs/GETOrderFactoriesOrderFactoryId200ResponseDataAttributes.md index 147e9501..f49d3f74 100644 --- a/api/docs/GETOrderFactoriesOrderFactoryId200ResponseDataAttributes.md +++ b/api/docs/GETOrderFactoriesOrderFactoryId200ResponseDataAttributes.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The order factory's type. | [optional] **Status** | Pointer to **interface{}** | The order factory status. One of 'pending' (default), 'in_progress', 'failed', or 'completed'. | [optional] **StartedAt** | Pointer to **interface{}** | Time at which the order copy was started. | [optional] **CompletedAt** | Pointer to **interface{}** | Time at which the order copy was completed. | [optional] @@ -15,7 +16,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -37,6 +38,41 @@ NewGETOrderFactoriesOrderFactoryId200ResponseDataAttributesWithDefaults instanti This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetType + +`func (o *GETOrderFactoriesOrderFactoryId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETOrderFactoriesOrderFactoryId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETOrderFactoriesOrderFactoryId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETOrderFactoriesOrderFactoryId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETOrderFactoriesOrderFactoryId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETOrderFactoriesOrderFactoryId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetStatus `func (o *GETOrderFactoriesOrderFactoryId200ResponseDataAttributes) GetStatus() interface{}` diff --git a/api/docs/GETOrderFactoriesOrderFactoryId200ResponseDataRelationships.md b/api/docs/GETOrderFactoriesOrderFactoryId200ResponseDataRelationships.md index f49bf885..53ffc6d9 100644 --- a/api/docs/GETOrderFactoriesOrderFactoryId200ResponseDataRelationships.md +++ b/api/docs/GETOrderFactoriesOrderFactoryId200ResponseDataRelationships.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SourceOrder** | Pointer to [**POSTOrderCopies201ResponseDataRelationshipsSourceOrder**](POSTOrderCopies201ResponseDataRelationshipsSourceOrder.md) | | [optional] **TargetOrder** | Pointer to [**POSTOrderCopies201ResponseDataRelationshipsTargetOrder**](POSTOrderCopies201ResponseDataRelationshipsTargetOrder.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ HasTargetOrder returns a boolean if a field has been set. ### GetEvents -`func (o *GETOrderFactoriesOrderFactoryId200ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` +`func (o *GETOrderFactoriesOrderFactoryId200ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *GETOrderFactoriesOrderFactoryId200ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` +`func (o *GETOrderFactoriesOrderFactoryId200ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *GETOrderFactoriesOrderFactoryId200ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` +`func (o *GETOrderFactoriesOrderFactoryId200ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` SetEvents sets Events field to given value. diff --git a/api/docs/GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes.md b/api/docs/GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes.md index b91188eb..84d5d2ec 100644 --- a/api/docs/GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes.md +++ b/api/docs/GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**SkuCode** | Pointer to **interface{}** | The code of the associated SKU. | [optional] +**BundleCode** | Pointer to **interface{}** | The code of the associated bundle. | [optional] **Quantity** | Pointer to **interface{}** | The subscription item quantity. | [optional] **UnitAmountCents** | Pointer to **interface{}** | The unit amount of the subscription item, in cents. | [optional] **UnitAmountFloat** | Pointer to **interface{}** | The unit amount of the subscription item, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce. | [optional] @@ -14,7 +16,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -36,6 +38,76 @@ NewGETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributesWith This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetSkuCode + +`func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) GetSkuCode() interface{}` + +GetSkuCode returns the SkuCode field if non-nil, zero value otherwise. + +### GetSkuCodeOk + +`func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) GetSkuCodeOk() (*interface{}, bool)` + +GetSkuCodeOk returns a tuple with the SkuCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuCode + +`func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) SetSkuCode(v interface{})` + +SetSkuCode sets SkuCode field to given value. + +### HasSkuCode + +`func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) HasSkuCode() bool` + +HasSkuCode returns a boolean if a field has been set. + +### SetSkuCodeNil + +`func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) SetSkuCodeNil(b bool)` + + SetSkuCodeNil sets the value for SkuCode to be an explicit nil + +### UnsetSkuCode +`func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) UnsetSkuCode()` + +UnsetSkuCode ensures that no value is present for SkuCode, not even an explicit nil +### GetBundleCode + +`func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) GetBundleCode() interface{}` + +GetBundleCode returns the BundleCode field if non-nil, zero value otherwise. + +### GetBundleCodeOk + +`func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) GetBundleCodeOk() (*interface{}, bool)` + +GetBundleCodeOk returns a tuple with the BundleCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBundleCode + +`func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) SetBundleCode(v interface{})` + +SetBundleCode sets BundleCode field to given value. + +### HasBundleCode + +`func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) HasBundleCode() bool` + +HasBundleCode returns a boolean if a field has been set. + +### SetBundleCodeNil + +`func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) SetBundleCodeNil(b bool)` + + SetBundleCodeNil sets the value for BundleCode to be an explicit nil + +### UnsetBundleCode +`func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) UnsetBundleCode()` + +UnsetBundleCode ensures that no value is present for BundleCode, not even an explicit nil ### GetQuantity `func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) GetQuantity() interface{}` diff --git a/api/docs/GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes.md b/api/docs/GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes.md index b73456f9..759bdf1f 100644 --- a/api/docs/GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes.md +++ b/api/docs/GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes.md @@ -4,22 +4,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | Pointer to **interface{}** | Unique identifier for the subscription (numeric) | [optional] +**Number** | Pointer to **interface{}** | Unique identifier for the subscription (numeric). | [optional] **Status** | Pointer to **interface{}** | The subscription status. One of 'draft' (default), 'inactive', 'active', or 'cancelled'. | [optional] **Frequency** | Pointer to **interface{}** | The frequency of the subscription. Use one of the supported within 'hourly', 'daily', 'weekly', 'monthly', 'two-month', 'three-month', 'four-month', 'six-month', 'yearly', or provide your custom crontab expression (min unit is hour). Must be supported by existing associated subscription_model. | [optional] **ActivateBySourceOrder** | Pointer to **interface{}** | Indicates if the subscription will be activated considering the placed source order as its first run. | [optional] +**PlaceTargetOrder** | Pointer to **interface{}** | Indicates if the subscription created orders are automatically placed at the end of the copy. | [optional] +**RenewalAlertPeriod** | Pointer to **interface{}** | Indicates the number of hours the renewal alert will be triggered before the subscription next run. Must be included between 1 and 720 hours. | [optional] **CustomerEmail** | Pointer to **interface{}** | The email address of the customer, if any, associated to the source order. | [optional] **StartsAt** | Pointer to **interface{}** | The activation date/time of this subscription. | [optional] **ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this subscription (must be after starts_at). | [optional] +**LastRunAt** | Pointer to **interface{}** | The date/time of the subscription last run. | [optional] **NextRunAt** | Pointer to **interface{}** | The date/time of the subscription next run. Can be updated but only in the future, to copy with frequency changes. | [optional] **Occurrencies** | Pointer to **interface{}** | The number of times this subscription has run. | [optional] **ErrorsCount** | Pointer to **interface{}** | Indicates the number of subscription errors, if any. | [optional] **SucceededOnLastRun** | Pointer to **interface{}** | Indicates if the subscription has succeeded on its last run. | [optional] -**Options** | Pointer to **interface{}** | The subscription options used to create the order (check order_factories for more information). For subscriptions the `place_target_order` is enabled by default, specify custom options to overwrite it. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -181,6 +183,76 @@ HasActivateBySourceOrder returns a boolean if a field has been set. `func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) UnsetActivateBySourceOrder()` UnsetActivateBySourceOrder ensures that no value is present for ActivateBySourceOrder, not even an explicit nil +### GetPlaceTargetOrder + +`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetPlaceTargetOrder() interface{}` + +GetPlaceTargetOrder returns the PlaceTargetOrder field if non-nil, zero value otherwise. + +### GetPlaceTargetOrderOk + +`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetPlaceTargetOrderOk() (*interface{}, bool)` + +GetPlaceTargetOrderOk returns a tuple with the PlaceTargetOrder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlaceTargetOrder + +`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetPlaceTargetOrder(v interface{})` + +SetPlaceTargetOrder sets PlaceTargetOrder field to given value. + +### HasPlaceTargetOrder + +`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) HasPlaceTargetOrder() bool` + +HasPlaceTargetOrder returns a boolean if a field has been set. + +### SetPlaceTargetOrderNil + +`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetPlaceTargetOrderNil(b bool)` + + SetPlaceTargetOrderNil sets the value for PlaceTargetOrder to be an explicit nil + +### UnsetPlaceTargetOrder +`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) UnsetPlaceTargetOrder()` + +UnsetPlaceTargetOrder ensures that no value is present for PlaceTargetOrder, not even an explicit nil +### GetRenewalAlertPeriod + +`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetRenewalAlertPeriod() interface{}` + +GetRenewalAlertPeriod returns the RenewalAlertPeriod field if non-nil, zero value otherwise. + +### GetRenewalAlertPeriodOk + +`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetRenewalAlertPeriodOk() (*interface{}, bool)` + +GetRenewalAlertPeriodOk returns a tuple with the RenewalAlertPeriod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRenewalAlertPeriod + +`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetRenewalAlertPeriod(v interface{})` + +SetRenewalAlertPeriod sets RenewalAlertPeriod field to given value. + +### HasRenewalAlertPeriod + +`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) HasRenewalAlertPeriod() bool` + +HasRenewalAlertPeriod returns a boolean if a field has been set. + +### SetRenewalAlertPeriodNil + +`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetRenewalAlertPeriodNil(b bool)` + + SetRenewalAlertPeriodNil sets the value for RenewalAlertPeriod to be an explicit nil + +### UnsetRenewalAlertPeriod +`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) UnsetRenewalAlertPeriod()` + +UnsetRenewalAlertPeriod ensures that no value is present for RenewalAlertPeriod, not even an explicit nil ### GetCustomerEmail `func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetCustomerEmail() interface{}` @@ -286,6 +358,41 @@ HasExpiresAt returns a boolean if a field has been set. `func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) UnsetExpiresAt()` UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetLastRunAt + +`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetLastRunAt() interface{}` + +GetLastRunAt returns the LastRunAt field if non-nil, zero value otherwise. + +### GetLastRunAtOk + +`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetLastRunAtOk() (*interface{}, bool)` + +GetLastRunAtOk returns a tuple with the LastRunAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastRunAt + +`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetLastRunAt(v interface{})` + +SetLastRunAt sets LastRunAt field to given value. + +### HasLastRunAt + +`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) HasLastRunAt() bool` + +HasLastRunAt returns a boolean if a field has been set. + +### SetLastRunAtNil + +`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetLastRunAtNil(b bool)` + + SetLastRunAtNil sets the value for LastRunAt to be an explicit nil + +### UnsetLastRunAt +`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) UnsetLastRunAt()` + +UnsetLastRunAt ensures that no value is present for LastRunAt, not even an explicit nil ### GetNextRunAt `func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetNextRunAt() interface{}` @@ -426,41 +533,6 @@ HasSucceededOnLastRun returns a boolean if a field has been set. `func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) UnsetSucceededOnLastRun()` UnsetSucceededOnLastRun ensures that no value is present for SucceededOnLastRun, not even an explicit nil -### GetOptions - -`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetOptions() interface{}` - -GetOptions returns the Options field if non-nil, zero value otherwise. - -### GetOptionsOk - -`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetOptionsOk() (*interface{}, bool)` - -GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOptions - -`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetOptions(v interface{})` - -SetOptions sets Options field to given value. - -### HasOptions - -`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) HasOptions() bool` - -HasOptions returns a boolean if a field has been set. - -### SetOptionsNil - -`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetOptionsNil(b bool)` - - SetOptionsNil sets the value for Options to be an explicit nil - -### UnsetOptions -`func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) UnsetOptions()` - -UnsetOptions ensures that no value is present for Options, not even an explicit nil ### GetCreatedAt `func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETOrderValidationRulesOrderValidationRuleId200Response.md b/api/docs/GETOrderValidationRulesOrderValidationRuleId200Response.md deleted file mode 100644 index 756fde22..00000000 --- a/api/docs/GETOrderValidationRulesOrderValidationRuleId200Response.md +++ /dev/null @@ -1,56 +0,0 @@ -# GETOrderValidationRulesOrderValidationRuleId200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | Pointer to [**GETOrderValidationRulesOrderValidationRuleId200ResponseData**](GETOrderValidationRulesOrderValidationRuleId200ResponseData.md) | | [optional] - -## Methods - -### NewGETOrderValidationRulesOrderValidationRuleId200Response - -`func NewGETOrderValidationRulesOrderValidationRuleId200Response() *GETOrderValidationRulesOrderValidationRuleId200Response` - -NewGETOrderValidationRulesOrderValidationRuleId200Response instantiates a new GETOrderValidationRulesOrderValidationRuleId200Response object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGETOrderValidationRulesOrderValidationRuleId200ResponseWithDefaults - -`func NewGETOrderValidationRulesOrderValidationRuleId200ResponseWithDefaults() *GETOrderValidationRulesOrderValidationRuleId200Response` - -NewGETOrderValidationRulesOrderValidationRuleId200ResponseWithDefaults instantiates a new GETOrderValidationRulesOrderValidationRuleId200Response object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *GETOrderValidationRulesOrderValidationRuleId200Response) GetData() GETOrderValidationRulesOrderValidationRuleId200ResponseData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *GETOrderValidationRulesOrderValidationRuleId200Response) GetDataOk() (*GETOrderValidationRulesOrderValidationRuleId200ResponseData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *GETOrderValidationRulesOrderValidationRuleId200Response) SetData(v GETOrderValidationRulesOrderValidationRuleId200ResponseData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *GETOrderValidationRulesOrderValidationRuleId200Response) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/GETOrdersOrderId200ResponseDataAttributes.md b/api/docs/GETOrdersOrderId200ResponseDataAttributes.md index 44b0e56c..a2932ece 100644 --- a/api/docs/GETOrdersOrderId200ResponseDataAttributes.md +++ b/api/docs/GETOrdersOrderId200ResponseDataAttributes.md @@ -4,11 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | Pointer to **interface{}** | Unique identifier for the order (numeric). | [optional] +**Number** | Pointer to **interface{}** | The order identifier. Can be specified if unique within the organization (for enterprise plans only), default to numeric ID otherwise. Cannot be passed by sales channels. | [optional] +**AffiliateCode** | Pointer to **interface{}** | The affiliate code, if any, the seller will transfer commission on shop by link transactions. | [optional] **Autorefresh** | Pointer to **interface{}** | Save this attribute as 'false' if you want prevent the order to be refreshed automatically at each change (much faster). | [optional] -**Status** | Pointer to **interface{}** | The order status. One of 'draft' (default), 'pending', 'placed', 'approved', or 'cancelled'. | [optional] -**PaymentStatus** | Pointer to **interface{}** | The order's payment status. One of 'unpaid' (default), 'authorized', 'partially_authorized', 'paid', 'partially_paid', 'voided', 'partially_voided', 'refunded', 'partially_refunded' or 'free'. | [optional] -**FulfillmentStatus** | Pointer to **interface{}** | The order's fulfillment status. One of 'unfulfilled' (default), 'in_progress', 'fulfilled', or 'not_required'. | [optional] +**PlaceAsync** | Pointer to **interface{}** | Save this attribute as 'true' if you want perform the place asynchronously. Payment errors, if any, will be collected afterwards. | [optional] +**Status** | Pointer to **interface{}** | The order status. One of 'draft' (default), 'pending', 'editing', 'placing', 'placed', 'approved', or 'cancelled'. | [optional] +**PaymentStatus** | Pointer to **interface{}** | The order payment status. One of 'unpaid' (default), 'authorized', 'partially_authorized', 'paid', 'partially_paid', 'voided', 'partially_voided', 'refunded', 'partially_refunded', or 'free'. | [optional] +**FulfillmentStatus** | Pointer to **interface{}** | The order fulfillment status. One of 'unfulfilled' (default), 'in_progress', 'fulfilled', or 'not_required'. | [optional] **Guest** | Pointer to **interface{}** | Indicates if the order has been placed as guest. | [optional] **Editable** | Pointer to **interface{}** | Indicates if the order can be edited. | [optional] **CustomerEmail** | Pointer to **interface{}** | The email address of the associated customer. When creating or updating an order, this is a shortcut to find or create the associated customer by email. | [optional] @@ -17,12 +19,14 @@ Name | Type | Description | Notes **TaxIncluded** | Pointer to **interface{}** | Indicates if taxes are included in the order amounts, automatically inherited from the order's price list. | [optional] **TaxRate** | Pointer to **interface{}** | The tax rate for this order (if calculated). | [optional] **FreightTaxable** | Pointer to **interface{}** | Indicates if taxes are applied to shipping costs. | [optional] +**PaymentMethodTaxable** | Pointer to **interface{}** | Indicates if taxes are applied to payment methods costs. | [optional] +**AdjustmentTaxable** | Pointer to **interface{}** | Indicates if taxes are applied to positive adjustments. | [optional] +**GiftCardTaxable** | Pointer to **interface{}** | Indicates if taxes are applied to purchased gift cards. | [optional] **RequiresBillingInfo** | Pointer to **interface{}** | Indicates if the billing address associated to this order requires billing info to be present. | [optional] -**CountryCode** | Pointer to **interface{}** | The international 2-letter country code as defined by the ISO 3166-1 standard, automatically inherited from the order's shipping address. | [optional] -**ShippingCountryCodeLock** | Pointer to **interface{}** | The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. | [optional] +**CountryCode** | Pointer to **interface{}** | The international 2-letter country code as defined by the ISO 3166-1 standard, automatically inherited from the order's shipping or billing addresses. | [optional] +**ShippingCountryCodeLock** | Pointer to **interface{}** | The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. Not relevant if order contains only digital products. | [optional] **CouponCode** | Pointer to **interface{}** | The coupon code to be used for the order. If valid, it triggers a promotion adding a discount line item to the order. | [optional] **GiftCardCode** | Pointer to **interface{}** | The gift card code (at least the first 8 characters) to be used for the order. If valid, it uses the gift card balance to pay for the order. | [optional] -**GiftCardOrCouponCode** | Pointer to **interface{}** | The gift card or coupon code (at least the first 8 characters) to be used for the order. If a gift card mathes, it uses the gift card balance to pay for the order. Otherwise it tries to find a valid coupon code and applies the associated discount. | [optional] **SubtotalAmountCents** | Pointer to **interface{}** | The sum of all the SKU line items total amounts, in cents. | [optional] **SubtotalAmountFloat** | Pointer to **interface{}** | The sum of all the SKU line items total amounts, float. | [optional] **FormattedSubtotalAmount** | Pointer to **interface{}** | The sum of all the SKU line items total amounts, formatted. | [optional] @@ -83,10 +87,15 @@ Name | Type | Description | Notes **DutyAmountCents** | Pointer to **interface{}** | The duty amount that is calculated by external services, in cents. | [optional] **DutyAmountFloat** | Pointer to **interface{}** | The duty amount that is calculated by external services, float. | [optional] **FormattedDutyAmount** | Pointer to **interface{}** | The duty amount that is calculated by external services, formatted. | [optional] +**PlaceTotalAmountCents** | Pointer to **interface{}** | The total amount at place time, in cents, which is used internally for editing. | [optional] +**PlaceTotalAmountFloat** | Pointer to **interface{}** | The total amount at place time, float. | [optional] +**FormattedPlaceTotalAmount** | Pointer to **interface{}** | The total amount at place time, formatted. | [optional] **SkusCount** | Pointer to **interface{}** | The total number of SKUs in the order's line items. This can be useful to display a preview of the customer shopping cart content. | [optional] **LineItemOptionsCount** | Pointer to **interface{}** | The total number of line item options. This can be useful to display a preview of the customer shopping cart content. | [optional] **ShipmentsCount** | Pointer to **interface{}** | The total number of shipments. This can be useful to manage the shipping method(s) selection during checkout. | [optional] **TaxCalculationsCount** | Pointer to **interface{}** | The total number of tax calculations. This can be useful to monitor external tax service usage. | [optional] +**ValidationsCount** | Pointer to **interface{}** | The total number of external validation performed. This can be useful to monitor if external validation has been triggered. | [optional] +**ErrorsCount** | Pointer to **interface{}** | The total number of resource errors. | [optional] **PaymentSourceDetails** | Pointer to **interface{}** | An object that contains the shareable details of the order's payment source. | [optional] **Token** | Pointer to **interface{}** | A unique token that can be shared more securely instead of the order's id. | [optional] **CartUrl** | Pointer to **interface{}** | The cart url on your site. If present, it will be used on our hosted checkout application. | [optional] @@ -101,12 +110,13 @@ Name | Type | Description | Notes **FulfillmentUpdatedAt** | Pointer to **interface{}** | Time at which the order's fulfillment status was last updated. | [optional] **RefreshedAt** | Pointer to **interface{}** | Last time at which an order was manually refreshed. | [optional] **ArchivedAt** | Pointer to **interface{}** | Time at which the resource has been archived. | [optional] -**ExpiresAt** | Pointer to **interface{}** | Time at which an order is marked for cleanup. Any order will start with a default expire time of 2 months. Expiration is reset once a line item is added to the order. | [optional] **SubscriptionCreatedAt** | Pointer to **interface{}** | Time at which the order has been marked to create a subscription from its recurring line items. | [optional] +**CircuitState** | Pointer to **interface{}** | The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. | [optional] +**CircuitFailureCount** | Pointer to **interface{}** | The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -163,6 +173,41 @@ HasNumber returns a boolean if a field has been set. `func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetNumber()` UnsetNumber ensures that no value is present for Number, not even an explicit nil +### GetAffiliateCode + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetAffiliateCode() interface{}` + +GetAffiliateCode returns the AffiliateCode field if non-nil, zero value otherwise. + +### GetAffiliateCodeOk + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetAffiliateCodeOk() (*interface{}, bool)` + +GetAffiliateCodeOk returns a tuple with the AffiliateCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAffiliateCode + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetAffiliateCode(v interface{})` + +SetAffiliateCode sets AffiliateCode field to given value. + +### HasAffiliateCode + +`func (o *GETOrdersOrderId200ResponseDataAttributes) HasAffiliateCode() bool` + +HasAffiliateCode returns a boolean if a field has been set. + +### SetAffiliateCodeNil + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetAffiliateCodeNil(b bool)` + + SetAffiliateCodeNil sets the value for AffiliateCode to be an explicit nil + +### UnsetAffiliateCode +`func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetAffiliateCode()` + +UnsetAffiliateCode ensures that no value is present for AffiliateCode, not even an explicit nil ### GetAutorefresh `func (o *GETOrdersOrderId200ResponseDataAttributes) GetAutorefresh() interface{}` @@ -198,6 +243,41 @@ HasAutorefresh returns a boolean if a field has been set. `func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetAutorefresh()` UnsetAutorefresh ensures that no value is present for Autorefresh, not even an explicit nil +### GetPlaceAsync + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetPlaceAsync() interface{}` + +GetPlaceAsync returns the PlaceAsync field if non-nil, zero value otherwise. + +### GetPlaceAsyncOk + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetPlaceAsyncOk() (*interface{}, bool)` + +GetPlaceAsyncOk returns a tuple with the PlaceAsync field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlaceAsync + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetPlaceAsync(v interface{})` + +SetPlaceAsync sets PlaceAsync field to given value. + +### HasPlaceAsync + +`func (o *GETOrdersOrderId200ResponseDataAttributes) HasPlaceAsync() bool` + +HasPlaceAsync returns a boolean if a field has been set. + +### SetPlaceAsyncNil + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetPlaceAsyncNil(b bool)` + + SetPlaceAsyncNil sets the value for PlaceAsync to be an explicit nil + +### UnsetPlaceAsync +`func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetPlaceAsync()` + +UnsetPlaceAsync ensures that no value is present for PlaceAsync, not even an explicit nil ### GetStatus `func (o *GETOrdersOrderId200ResponseDataAttributes) GetStatus() interface{}` @@ -583,6 +663,111 @@ HasFreightTaxable returns a boolean if a field has been set. `func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetFreightTaxable()` UnsetFreightTaxable ensures that no value is present for FreightTaxable, not even an explicit nil +### GetPaymentMethodTaxable + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetPaymentMethodTaxable() interface{}` + +GetPaymentMethodTaxable returns the PaymentMethodTaxable field if non-nil, zero value otherwise. + +### GetPaymentMethodTaxableOk + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetPaymentMethodTaxableOk() (*interface{}, bool)` + +GetPaymentMethodTaxableOk returns a tuple with the PaymentMethodTaxable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentMethodTaxable + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetPaymentMethodTaxable(v interface{})` + +SetPaymentMethodTaxable sets PaymentMethodTaxable field to given value. + +### HasPaymentMethodTaxable + +`func (o *GETOrdersOrderId200ResponseDataAttributes) HasPaymentMethodTaxable() bool` + +HasPaymentMethodTaxable returns a boolean if a field has been set. + +### SetPaymentMethodTaxableNil + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetPaymentMethodTaxableNil(b bool)` + + SetPaymentMethodTaxableNil sets the value for PaymentMethodTaxable to be an explicit nil + +### UnsetPaymentMethodTaxable +`func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetPaymentMethodTaxable()` + +UnsetPaymentMethodTaxable ensures that no value is present for PaymentMethodTaxable, not even an explicit nil +### GetAdjustmentTaxable + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetAdjustmentTaxable() interface{}` + +GetAdjustmentTaxable returns the AdjustmentTaxable field if non-nil, zero value otherwise. + +### GetAdjustmentTaxableOk + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetAdjustmentTaxableOk() (*interface{}, bool)` + +GetAdjustmentTaxableOk returns a tuple with the AdjustmentTaxable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdjustmentTaxable + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetAdjustmentTaxable(v interface{})` + +SetAdjustmentTaxable sets AdjustmentTaxable field to given value. + +### HasAdjustmentTaxable + +`func (o *GETOrdersOrderId200ResponseDataAttributes) HasAdjustmentTaxable() bool` + +HasAdjustmentTaxable returns a boolean if a field has been set. + +### SetAdjustmentTaxableNil + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetAdjustmentTaxableNil(b bool)` + + SetAdjustmentTaxableNil sets the value for AdjustmentTaxable to be an explicit nil + +### UnsetAdjustmentTaxable +`func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetAdjustmentTaxable()` + +UnsetAdjustmentTaxable ensures that no value is present for AdjustmentTaxable, not even an explicit nil +### GetGiftCardTaxable + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetGiftCardTaxable() interface{}` + +GetGiftCardTaxable returns the GiftCardTaxable field if non-nil, zero value otherwise. + +### GetGiftCardTaxableOk + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetGiftCardTaxableOk() (*interface{}, bool)` + +GetGiftCardTaxableOk returns a tuple with the GiftCardTaxable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGiftCardTaxable + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetGiftCardTaxable(v interface{})` + +SetGiftCardTaxable sets GiftCardTaxable field to given value. + +### HasGiftCardTaxable + +`func (o *GETOrdersOrderId200ResponseDataAttributes) HasGiftCardTaxable() bool` + +HasGiftCardTaxable returns a boolean if a field has been set. + +### SetGiftCardTaxableNil + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetGiftCardTaxableNil(b bool)` + + SetGiftCardTaxableNil sets the value for GiftCardTaxable to be an explicit nil + +### UnsetGiftCardTaxable +`func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetGiftCardTaxable()` + +UnsetGiftCardTaxable ensures that no value is present for GiftCardTaxable, not even an explicit nil ### GetRequiresBillingInfo `func (o *GETOrdersOrderId200ResponseDataAttributes) GetRequiresBillingInfo() interface{}` @@ -758,41 +943,6 @@ HasGiftCardCode returns a boolean if a field has been set. `func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetGiftCardCode()` UnsetGiftCardCode ensures that no value is present for GiftCardCode, not even an explicit nil -### GetGiftCardOrCouponCode - -`func (o *GETOrdersOrderId200ResponseDataAttributes) GetGiftCardOrCouponCode() interface{}` - -GetGiftCardOrCouponCode returns the GiftCardOrCouponCode field if non-nil, zero value otherwise. - -### GetGiftCardOrCouponCodeOk - -`func (o *GETOrdersOrderId200ResponseDataAttributes) GetGiftCardOrCouponCodeOk() (*interface{}, bool)` - -GetGiftCardOrCouponCodeOk returns a tuple with the GiftCardOrCouponCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGiftCardOrCouponCode - -`func (o *GETOrdersOrderId200ResponseDataAttributes) SetGiftCardOrCouponCode(v interface{})` - -SetGiftCardOrCouponCode sets GiftCardOrCouponCode field to given value. - -### HasGiftCardOrCouponCode - -`func (o *GETOrdersOrderId200ResponseDataAttributes) HasGiftCardOrCouponCode() bool` - -HasGiftCardOrCouponCode returns a boolean if a field has been set. - -### SetGiftCardOrCouponCodeNil - -`func (o *GETOrdersOrderId200ResponseDataAttributes) SetGiftCardOrCouponCodeNil(b bool)` - - SetGiftCardOrCouponCodeNil sets the value for GiftCardOrCouponCode to be an explicit nil - -### UnsetGiftCardOrCouponCode -`func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetGiftCardOrCouponCode()` - -UnsetGiftCardOrCouponCode ensures that no value is present for GiftCardOrCouponCode, not even an explicit nil ### GetSubtotalAmountCents `func (o *GETOrdersOrderId200ResponseDataAttributes) GetSubtotalAmountCents() interface{}` @@ -2893,6 +3043,111 @@ HasFormattedDutyAmount returns a boolean if a field has been set. `func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetFormattedDutyAmount()` UnsetFormattedDutyAmount ensures that no value is present for FormattedDutyAmount, not even an explicit nil +### GetPlaceTotalAmountCents + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetPlaceTotalAmountCents() interface{}` + +GetPlaceTotalAmountCents returns the PlaceTotalAmountCents field if non-nil, zero value otherwise. + +### GetPlaceTotalAmountCentsOk + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetPlaceTotalAmountCentsOk() (*interface{}, bool)` + +GetPlaceTotalAmountCentsOk returns a tuple with the PlaceTotalAmountCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlaceTotalAmountCents + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetPlaceTotalAmountCents(v interface{})` + +SetPlaceTotalAmountCents sets PlaceTotalAmountCents field to given value. + +### HasPlaceTotalAmountCents + +`func (o *GETOrdersOrderId200ResponseDataAttributes) HasPlaceTotalAmountCents() bool` + +HasPlaceTotalAmountCents returns a boolean if a field has been set. + +### SetPlaceTotalAmountCentsNil + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetPlaceTotalAmountCentsNil(b bool)` + + SetPlaceTotalAmountCentsNil sets the value for PlaceTotalAmountCents to be an explicit nil + +### UnsetPlaceTotalAmountCents +`func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetPlaceTotalAmountCents()` + +UnsetPlaceTotalAmountCents ensures that no value is present for PlaceTotalAmountCents, not even an explicit nil +### GetPlaceTotalAmountFloat + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetPlaceTotalAmountFloat() interface{}` + +GetPlaceTotalAmountFloat returns the PlaceTotalAmountFloat field if non-nil, zero value otherwise. + +### GetPlaceTotalAmountFloatOk + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetPlaceTotalAmountFloatOk() (*interface{}, bool)` + +GetPlaceTotalAmountFloatOk returns a tuple with the PlaceTotalAmountFloat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlaceTotalAmountFloat + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetPlaceTotalAmountFloat(v interface{})` + +SetPlaceTotalAmountFloat sets PlaceTotalAmountFloat field to given value. + +### HasPlaceTotalAmountFloat + +`func (o *GETOrdersOrderId200ResponseDataAttributes) HasPlaceTotalAmountFloat() bool` + +HasPlaceTotalAmountFloat returns a boolean if a field has been set. + +### SetPlaceTotalAmountFloatNil + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetPlaceTotalAmountFloatNil(b bool)` + + SetPlaceTotalAmountFloatNil sets the value for PlaceTotalAmountFloat to be an explicit nil + +### UnsetPlaceTotalAmountFloat +`func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetPlaceTotalAmountFloat()` + +UnsetPlaceTotalAmountFloat ensures that no value is present for PlaceTotalAmountFloat, not even an explicit nil +### GetFormattedPlaceTotalAmount + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetFormattedPlaceTotalAmount() interface{}` + +GetFormattedPlaceTotalAmount returns the FormattedPlaceTotalAmount field if non-nil, zero value otherwise. + +### GetFormattedPlaceTotalAmountOk + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetFormattedPlaceTotalAmountOk() (*interface{}, bool)` + +GetFormattedPlaceTotalAmountOk returns a tuple with the FormattedPlaceTotalAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormattedPlaceTotalAmount + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetFormattedPlaceTotalAmount(v interface{})` + +SetFormattedPlaceTotalAmount sets FormattedPlaceTotalAmount field to given value. + +### HasFormattedPlaceTotalAmount + +`func (o *GETOrdersOrderId200ResponseDataAttributes) HasFormattedPlaceTotalAmount() bool` + +HasFormattedPlaceTotalAmount returns a boolean if a field has been set. + +### SetFormattedPlaceTotalAmountNil + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetFormattedPlaceTotalAmountNil(b bool)` + + SetFormattedPlaceTotalAmountNil sets the value for FormattedPlaceTotalAmount to be an explicit nil + +### UnsetFormattedPlaceTotalAmount +`func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetFormattedPlaceTotalAmount()` + +UnsetFormattedPlaceTotalAmount ensures that no value is present for FormattedPlaceTotalAmount, not even an explicit nil ### GetSkusCount `func (o *GETOrdersOrderId200ResponseDataAttributes) GetSkusCount() interface{}` @@ -3033,6 +3288,76 @@ HasTaxCalculationsCount returns a boolean if a field has been set. `func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetTaxCalculationsCount()` UnsetTaxCalculationsCount ensures that no value is present for TaxCalculationsCount, not even an explicit nil +### GetValidationsCount + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetValidationsCount() interface{}` + +GetValidationsCount returns the ValidationsCount field if non-nil, zero value otherwise. + +### GetValidationsCountOk + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetValidationsCountOk() (*interface{}, bool)` + +GetValidationsCountOk returns a tuple with the ValidationsCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidationsCount + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetValidationsCount(v interface{})` + +SetValidationsCount sets ValidationsCount field to given value. + +### HasValidationsCount + +`func (o *GETOrdersOrderId200ResponseDataAttributes) HasValidationsCount() bool` + +HasValidationsCount returns a boolean if a field has been set. + +### SetValidationsCountNil + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetValidationsCountNil(b bool)` + + SetValidationsCountNil sets the value for ValidationsCount to be an explicit nil + +### UnsetValidationsCount +`func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetValidationsCount()` + +UnsetValidationsCount ensures that no value is present for ValidationsCount, not even an explicit nil +### GetErrorsCount + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetErrorsCount() interface{}` + +GetErrorsCount returns the ErrorsCount field if non-nil, zero value otherwise. + +### GetErrorsCountOk + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetErrorsCountOk() (*interface{}, bool)` + +GetErrorsCountOk returns a tuple with the ErrorsCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorsCount + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetErrorsCount(v interface{})` + +SetErrorsCount sets ErrorsCount field to given value. + +### HasErrorsCount + +`func (o *GETOrdersOrderId200ResponseDataAttributes) HasErrorsCount() bool` + +HasErrorsCount returns a boolean if a field has been set. + +### SetErrorsCountNil + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetErrorsCountNil(b bool)` + + SetErrorsCountNil sets the value for ErrorsCount to be an explicit nil + +### UnsetErrorsCount +`func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetErrorsCount()` + +UnsetErrorsCount ensures that no value is present for ErrorsCount, not even an explicit nil ### GetPaymentSourceDetails `func (o *GETOrdersOrderId200ResponseDataAttributes) GetPaymentSourceDetails() interface{}` @@ -3523,41 +3848,6 @@ HasArchivedAt returns a boolean if a field has been set. `func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetArchivedAt()` UnsetArchivedAt ensures that no value is present for ArchivedAt, not even an explicit nil -### GetExpiresAt - -`func (o *GETOrdersOrderId200ResponseDataAttributes) GetExpiresAt() interface{}` - -GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. - -### GetExpiresAtOk - -`func (o *GETOrdersOrderId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool)` - -GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExpiresAt - -`func (o *GETOrdersOrderId200ResponseDataAttributes) SetExpiresAt(v interface{})` - -SetExpiresAt sets ExpiresAt field to given value. - -### HasExpiresAt - -`func (o *GETOrdersOrderId200ResponseDataAttributes) HasExpiresAt() bool` - -HasExpiresAt returns a boolean if a field has been set. - -### SetExpiresAtNil - -`func (o *GETOrdersOrderId200ResponseDataAttributes) SetExpiresAtNil(b bool)` - - SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil - -### UnsetExpiresAt -`func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetExpiresAt()` - -UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil ### GetSubscriptionCreatedAt `func (o *GETOrdersOrderId200ResponseDataAttributes) GetSubscriptionCreatedAt() interface{}` @@ -3593,6 +3883,76 @@ HasSubscriptionCreatedAt returns a boolean if a field has been set. `func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetSubscriptionCreatedAt()` UnsetSubscriptionCreatedAt ensures that no value is present for SubscriptionCreatedAt, not even an explicit nil +### GetCircuitState + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetCircuitState() interface{}` + +GetCircuitState returns the CircuitState field if non-nil, zero value otherwise. + +### GetCircuitStateOk + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetCircuitStateOk() (*interface{}, bool)` + +GetCircuitStateOk returns a tuple with the CircuitState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitState + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetCircuitState(v interface{})` + +SetCircuitState sets CircuitState field to given value. + +### HasCircuitState + +`func (o *GETOrdersOrderId200ResponseDataAttributes) HasCircuitState() bool` + +HasCircuitState returns a boolean if a field has been set. + +### SetCircuitStateNil + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetCircuitStateNil(b bool)` + + SetCircuitStateNil sets the value for CircuitState to be an explicit nil + +### UnsetCircuitState +`func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetCircuitState()` + +UnsetCircuitState ensures that no value is present for CircuitState, not even an explicit nil +### GetCircuitFailureCount + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetCircuitFailureCount() interface{}` + +GetCircuitFailureCount returns the CircuitFailureCount field if non-nil, zero value otherwise. + +### GetCircuitFailureCountOk + +`func (o *GETOrdersOrderId200ResponseDataAttributes) GetCircuitFailureCountOk() (*interface{}, bool)` + +GetCircuitFailureCountOk returns a tuple with the CircuitFailureCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitFailureCount + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetCircuitFailureCount(v interface{})` + +SetCircuitFailureCount sets CircuitFailureCount field to given value. + +### HasCircuitFailureCount + +`func (o *GETOrdersOrderId200ResponseDataAttributes) HasCircuitFailureCount() bool` + +HasCircuitFailureCount returns a boolean if a field has been set. + +### SetCircuitFailureCountNil + +`func (o *GETOrdersOrderId200ResponseDataAttributes) SetCircuitFailureCountNil(b bool)` + + SetCircuitFailureCountNil sets the value for CircuitFailureCount to be an explicit nil + +### UnsetCircuitFailureCount +`func (o *GETOrdersOrderId200ResponseDataAttributes) UnsetCircuitFailureCount()` + +UnsetCircuitFailureCount ensures that no value is present for CircuitFailureCount, not even an explicit nil ### GetCreatedAt `func (o *GETOrdersOrderId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETOrganizationOrganizationId200ResponseDataAttributes.md b/api/docs/GETOrganizationOrganizationId200ResponseDataAttributes.md index c1cfa8eb..a1f56e83 100644 --- a/api/docs/GETOrganizationOrganizationId200ResponseDataAttributes.md +++ b/api/docs/GETOrganizationOrganizationId200ResponseDataAttributes.md @@ -12,18 +12,33 @@ Name | Type | Description | Notes **LogoUrl** | Pointer to **interface{}** | The URL to the organization's logo. | [optional] **FaviconUrl** | Pointer to **interface{}** | The URL to the organization's favicon. | [optional] **PrimaryColor** | Pointer to **interface{}** | The organization's primary color. | [optional] -**ContrastColor** | Pointer to **interface{}** | The organization's contrast color. | [optional] **GtmId** | Pointer to **interface{}** | The organization's Google Tag Manager ID. | [optional] **GtmIdTest** | Pointer to **interface{}** | The organization's Google Tag Manager ID for test. | [optional] -**DiscountDisabled** | Pointer to **interface{}** | Indicates if organization has discount disabled. | [optional] -**AccountDisabled** | Pointer to **interface{}** | Indicates if organization has account disabled. | [optional] -**AcceptanceDisabled** | Pointer to **interface{}** | Indicates if organization has acceptance disabled. | [optional] -**MaxConcurrentPromotions** | Pointer to **interface{}** | The maximum number of active concurrent promotions allowed for your organization. | [optional] -**MaxConcurrentImports** | Pointer to **interface{}** | The maximum number of concurrent imports allowed for your organization. | [optional] +**Config** | Pointer to **interface{}** | The organization's configuration. | [optional] +**ApiAuthRedirect** | Pointer to **interface{}** | Enables the redirect on the new Auth API. | [optional] +**ApiRulesEngine** | Pointer to **interface{}** | Enables the rules engine for flex promotions and price list rules. | [optional] +**AddressesPhoneRequired** | Pointer to **interface{}** | Indicates if the phone attribute is required for addresses, default is true. | [optional] +**OrdersAutorefreshCutoffTest** | Pointer to **interface{}** | The maximum number line items allowed for a test order before disabling the autorefresh option. | [optional] +**OrdersAutorefreshCutoffLive** | Pointer to **interface{}** | The maximum number line items allowed for a live order before disabling the autorefresh option. | [optional] +**OrdersNumberEditableTest** | Pointer to **interface{}** | Enables orders number editing as a string in test (for enterprise plans only). | [optional] +**OrdersNumberEditableLive** | Pointer to **interface{}** | Enables orders number editing as a string in live (for enterprise plans only). | [optional] +**OrdersNumberAsReference** | Pointer to **interface{}** | Enables to use the order number as payment reference on supported gateways. | [optional] +**BundlesMaxItemsCount** | Pointer to **interface{}** | The maximum number of SKUs allowed for bundles, default is 10. | [optional] +**CouponsMinCodeLength** | Pointer to **interface{}** | The minimum length for coupon code, default is 8. | [optional] +**CouponsMaxCodeLength** | Pointer to **interface{}** | The maximum length for coupon code, default is 40. | [optional] +**GiftCardsMinCodeLength** | Pointer to **interface{}** | The minimum length for gift card code, default is 8. | [optional] +**GiftCardsMaxCodeLength** | Pointer to **interface{}** | The maximum length for gift card code, default is 40. | [optional] +**CleanupsMaxConcurrentCount** | Pointer to **interface{}** | The maximum number of concurrent cleanups allowed for your organization, default is 10. | [optional] +**ExportsMaxConcurrentCount** | Pointer to **interface{}** | The maximum number of concurrent exports allowed for your organization, default is 10. | [optional] +**ImportsMaxConcurrentCount** | Pointer to **interface{}** | The maximum number of concurrent imports allowed for your organization, default is 10. | [optional] +**PromotionsMaxConcurrentCount** | Pointer to **interface{}** | The maximum number of active concurrent promotions allowed for your organization, default is 10. | [optional] +**ImportsTriggerWebhooks** | Pointer to **interface{}** | Enables triggering of webhooks during imports, default is false. | [optional] +**TaxCalculatorsErrors** | Pointer to **interface{}** | Enables raising of API errors in case of tax calculation failure, default is false. | [optional] +**ExternalPromotionsErrors** | Pointer to **interface{}** | Enables raising of API errors in case of external promotion failure, default is false. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -325,41 +340,6 @@ HasPrimaryColor returns a boolean if a field has been set. `func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetPrimaryColor()` UnsetPrimaryColor ensures that no value is present for PrimaryColor, not even an explicit nil -### GetContrastColor - -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetContrastColor() interface{}` - -GetContrastColor returns the ContrastColor field if non-nil, zero value otherwise. - -### GetContrastColorOk - -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetContrastColorOk() (*interface{}, bool)` - -GetContrastColorOk returns a tuple with the ContrastColor field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetContrastColor - -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetContrastColor(v interface{})` - -SetContrastColor sets ContrastColor field to given value. - -### HasContrastColor - -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasContrastColor() bool` - -HasContrastColor returns a boolean if a field has been set. - -### SetContrastColorNil - -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetContrastColorNil(b bool)` - - SetContrastColorNil sets the value for ContrastColor to be an explicit nil - -### UnsetContrastColor -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetContrastColor()` - -UnsetContrastColor ensures that no value is present for ContrastColor, not even an explicit nil ### GetGtmId `func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetGtmId() interface{}` @@ -430,181 +410,741 @@ HasGtmIdTest returns a boolean if a field has been set. `func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetGtmIdTest()` UnsetGtmIdTest ensures that no value is present for GtmIdTest, not even an explicit nil -### GetDiscountDisabled +### GetConfig + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetConfig() interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetConfigOk() (*interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetConfig(v interface{})` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + +### SetConfigNil + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetConfigNil(b bool)` + + SetConfigNil sets the value for Config to be an explicit nil + +### UnsetConfig +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetConfig()` + +UnsetConfig ensures that no value is present for Config, not even an explicit nil +### GetApiAuthRedirect + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetApiAuthRedirect() interface{}` + +GetApiAuthRedirect returns the ApiAuthRedirect field if non-nil, zero value otherwise. + +### GetApiAuthRedirectOk + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetApiAuthRedirectOk() (*interface{}, bool)` + +GetApiAuthRedirectOk returns a tuple with the ApiAuthRedirect field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiAuthRedirect + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetApiAuthRedirect(v interface{})` + +SetApiAuthRedirect sets ApiAuthRedirect field to given value. + +### HasApiAuthRedirect + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasApiAuthRedirect() bool` + +HasApiAuthRedirect returns a boolean if a field has been set. + +### SetApiAuthRedirectNil + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetApiAuthRedirectNil(b bool)` + + SetApiAuthRedirectNil sets the value for ApiAuthRedirect to be an explicit nil + +### UnsetApiAuthRedirect +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetApiAuthRedirect()` + +UnsetApiAuthRedirect ensures that no value is present for ApiAuthRedirect, not even an explicit nil +### GetApiRulesEngine + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetApiRulesEngine() interface{}` + +GetApiRulesEngine returns the ApiRulesEngine field if non-nil, zero value otherwise. + +### GetApiRulesEngineOk + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetApiRulesEngineOk() (*interface{}, bool)` + +GetApiRulesEngineOk returns a tuple with the ApiRulesEngine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiRulesEngine + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetApiRulesEngine(v interface{})` + +SetApiRulesEngine sets ApiRulesEngine field to given value. + +### HasApiRulesEngine + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasApiRulesEngine() bool` + +HasApiRulesEngine returns a boolean if a field has been set. + +### SetApiRulesEngineNil + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetApiRulesEngineNil(b bool)` + + SetApiRulesEngineNil sets the value for ApiRulesEngine to be an explicit nil + +### UnsetApiRulesEngine +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetApiRulesEngine()` + +UnsetApiRulesEngine ensures that no value is present for ApiRulesEngine, not even an explicit nil +### GetAddressesPhoneRequired + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetAddressesPhoneRequired() interface{}` + +GetAddressesPhoneRequired returns the AddressesPhoneRequired field if non-nil, zero value otherwise. + +### GetAddressesPhoneRequiredOk + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetAddressesPhoneRequiredOk() (*interface{}, bool)` + +GetAddressesPhoneRequiredOk returns a tuple with the AddressesPhoneRequired field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddressesPhoneRequired + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetAddressesPhoneRequired(v interface{})` + +SetAddressesPhoneRequired sets AddressesPhoneRequired field to given value. + +### HasAddressesPhoneRequired + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasAddressesPhoneRequired() bool` + +HasAddressesPhoneRequired returns a boolean if a field has been set. + +### SetAddressesPhoneRequiredNil + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetAddressesPhoneRequiredNil(b bool)` + + SetAddressesPhoneRequiredNil sets the value for AddressesPhoneRequired to be an explicit nil + +### UnsetAddressesPhoneRequired +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetAddressesPhoneRequired()` + +UnsetAddressesPhoneRequired ensures that no value is present for AddressesPhoneRequired, not even an explicit nil +### GetOrdersAutorefreshCutoffTest + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersAutorefreshCutoffTest() interface{}` + +GetOrdersAutorefreshCutoffTest returns the OrdersAutorefreshCutoffTest field if non-nil, zero value otherwise. + +### GetOrdersAutorefreshCutoffTestOk + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersAutorefreshCutoffTestOk() (*interface{}, bool)` + +GetOrdersAutorefreshCutoffTestOk returns a tuple with the OrdersAutorefreshCutoffTest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrdersAutorefreshCutoffTest + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetOrdersAutorefreshCutoffTest(v interface{})` + +SetOrdersAutorefreshCutoffTest sets OrdersAutorefreshCutoffTest field to given value. + +### HasOrdersAutorefreshCutoffTest + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasOrdersAutorefreshCutoffTest() bool` + +HasOrdersAutorefreshCutoffTest returns a boolean if a field has been set. + +### SetOrdersAutorefreshCutoffTestNil + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetOrdersAutorefreshCutoffTestNil(b bool)` + + SetOrdersAutorefreshCutoffTestNil sets the value for OrdersAutorefreshCutoffTest to be an explicit nil + +### UnsetOrdersAutorefreshCutoffTest +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetOrdersAutorefreshCutoffTest()` + +UnsetOrdersAutorefreshCutoffTest ensures that no value is present for OrdersAutorefreshCutoffTest, not even an explicit nil +### GetOrdersAutorefreshCutoffLive + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersAutorefreshCutoffLive() interface{}` + +GetOrdersAutorefreshCutoffLive returns the OrdersAutorefreshCutoffLive field if non-nil, zero value otherwise. + +### GetOrdersAutorefreshCutoffLiveOk + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersAutorefreshCutoffLiveOk() (*interface{}, bool)` + +GetOrdersAutorefreshCutoffLiveOk returns a tuple with the OrdersAutorefreshCutoffLive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrdersAutorefreshCutoffLive + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetOrdersAutorefreshCutoffLive(v interface{})` + +SetOrdersAutorefreshCutoffLive sets OrdersAutorefreshCutoffLive field to given value. + +### HasOrdersAutorefreshCutoffLive + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasOrdersAutorefreshCutoffLive() bool` + +HasOrdersAutorefreshCutoffLive returns a boolean if a field has been set. + +### SetOrdersAutorefreshCutoffLiveNil + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetOrdersAutorefreshCutoffLiveNil(b bool)` + + SetOrdersAutorefreshCutoffLiveNil sets the value for OrdersAutorefreshCutoffLive to be an explicit nil + +### UnsetOrdersAutorefreshCutoffLive +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetOrdersAutorefreshCutoffLive()` + +UnsetOrdersAutorefreshCutoffLive ensures that no value is present for OrdersAutorefreshCutoffLive, not even an explicit nil +### GetOrdersNumberEditableTest + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersNumberEditableTest() interface{}` + +GetOrdersNumberEditableTest returns the OrdersNumberEditableTest field if non-nil, zero value otherwise. + +### GetOrdersNumberEditableTestOk + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersNumberEditableTestOk() (*interface{}, bool)` + +GetOrdersNumberEditableTestOk returns a tuple with the OrdersNumberEditableTest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrdersNumberEditableTest + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetOrdersNumberEditableTest(v interface{})` + +SetOrdersNumberEditableTest sets OrdersNumberEditableTest field to given value. + +### HasOrdersNumberEditableTest + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasOrdersNumberEditableTest() bool` + +HasOrdersNumberEditableTest returns a boolean if a field has been set. + +### SetOrdersNumberEditableTestNil + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetOrdersNumberEditableTestNil(b bool)` + + SetOrdersNumberEditableTestNil sets the value for OrdersNumberEditableTest to be an explicit nil + +### UnsetOrdersNumberEditableTest +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetOrdersNumberEditableTest()` + +UnsetOrdersNumberEditableTest ensures that no value is present for OrdersNumberEditableTest, not even an explicit nil +### GetOrdersNumberEditableLive + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersNumberEditableLive() interface{}` + +GetOrdersNumberEditableLive returns the OrdersNumberEditableLive field if non-nil, zero value otherwise. + +### GetOrdersNumberEditableLiveOk + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersNumberEditableLiveOk() (*interface{}, bool)` + +GetOrdersNumberEditableLiveOk returns a tuple with the OrdersNumberEditableLive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrdersNumberEditableLive + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetOrdersNumberEditableLive(v interface{})` + +SetOrdersNumberEditableLive sets OrdersNumberEditableLive field to given value. + +### HasOrdersNumberEditableLive + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasOrdersNumberEditableLive() bool` + +HasOrdersNumberEditableLive returns a boolean if a field has been set. + +### SetOrdersNumberEditableLiveNil + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetOrdersNumberEditableLiveNil(b bool)` + + SetOrdersNumberEditableLiveNil sets the value for OrdersNumberEditableLive to be an explicit nil + +### UnsetOrdersNumberEditableLive +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetOrdersNumberEditableLive()` + +UnsetOrdersNumberEditableLive ensures that no value is present for OrdersNumberEditableLive, not even an explicit nil +### GetOrdersNumberAsReference + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersNumberAsReference() interface{}` + +GetOrdersNumberAsReference returns the OrdersNumberAsReference field if non-nil, zero value otherwise. + +### GetOrdersNumberAsReferenceOk + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersNumberAsReferenceOk() (*interface{}, bool)` + +GetOrdersNumberAsReferenceOk returns a tuple with the OrdersNumberAsReference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrdersNumberAsReference + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetOrdersNumberAsReference(v interface{})` + +SetOrdersNumberAsReference sets OrdersNumberAsReference field to given value. + +### HasOrdersNumberAsReference + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasOrdersNumberAsReference() bool` + +HasOrdersNumberAsReference returns a boolean if a field has been set. + +### SetOrdersNumberAsReferenceNil + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetOrdersNumberAsReferenceNil(b bool)` + + SetOrdersNumberAsReferenceNil sets the value for OrdersNumberAsReference to be an explicit nil + +### UnsetOrdersNumberAsReference +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetOrdersNumberAsReference()` + +UnsetOrdersNumberAsReference ensures that no value is present for OrdersNumberAsReference, not even an explicit nil +### GetBundlesMaxItemsCount + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetBundlesMaxItemsCount() interface{}` + +GetBundlesMaxItemsCount returns the BundlesMaxItemsCount field if non-nil, zero value otherwise. + +### GetBundlesMaxItemsCountOk + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetBundlesMaxItemsCountOk() (*interface{}, bool)` + +GetBundlesMaxItemsCountOk returns a tuple with the BundlesMaxItemsCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBundlesMaxItemsCount + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetBundlesMaxItemsCount(v interface{})` + +SetBundlesMaxItemsCount sets BundlesMaxItemsCount field to given value. + +### HasBundlesMaxItemsCount + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasBundlesMaxItemsCount() bool` + +HasBundlesMaxItemsCount returns a boolean if a field has been set. + +### SetBundlesMaxItemsCountNil + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetBundlesMaxItemsCountNil(b bool)` + + SetBundlesMaxItemsCountNil sets the value for BundlesMaxItemsCount to be an explicit nil + +### UnsetBundlesMaxItemsCount +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetBundlesMaxItemsCount()` + +UnsetBundlesMaxItemsCount ensures that no value is present for BundlesMaxItemsCount, not even an explicit nil +### GetCouponsMinCodeLength + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetCouponsMinCodeLength() interface{}` + +GetCouponsMinCodeLength returns the CouponsMinCodeLength field if non-nil, zero value otherwise. + +### GetCouponsMinCodeLengthOk + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetCouponsMinCodeLengthOk() (*interface{}, bool)` + +GetCouponsMinCodeLengthOk returns a tuple with the CouponsMinCodeLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCouponsMinCodeLength + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetCouponsMinCodeLength(v interface{})` + +SetCouponsMinCodeLength sets CouponsMinCodeLength field to given value. + +### HasCouponsMinCodeLength + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasCouponsMinCodeLength() bool` + +HasCouponsMinCodeLength returns a boolean if a field has been set. + +### SetCouponsMinCodeLengthNil + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetCouponsMinCodeLengthNil(b bool)` + + SetCouponsMinCodeLengthNil sets the value for CouponsMinCodeLength to be an explicit nil + +### UnsetCouponsMinCodeLength +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetCouponsMinCodeLength()` + +UnsetCouponsMinCodeLength ensures that no value is present for CouponsMinCodeLength, not even an explicit nil +### GetCouponsMaxCodeLength + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetCouponsMaxCodeLength() interface{}` + +GetCouponsMaxCodeLength returns the CouponsMaxCodeLength field if non-nil, zero value otherwise. + +### GetCouponsMaxCodeLengthOk + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetCouponsMaxCodeLengthOk() (*interface{}, bool)` + +GetCouponsMaxCodeLengthOk returns a tuple with the CouponsMaxCodeLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCouponsMaxCodeLength + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetCouponsMaxCodeLength(v interface{})` + +SetCouponsMaxCodeLength sets CouponsMaxCodeLength field to given value. + +### HasCouponsMaxCodeLength + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasCouponsMaxCodeLength() bool` + +HasCouponsMaxCodeLength returns a boolean if a field has been set. + +### SetCouponsMaxCodeLengthNil + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetCouponsMaxCodeLengthNil(b bool)` + + SetCouponsMaxCodeLengthNil sets the value for CouponsMaxCodeLength to be an explicit nil + +### UnsetCouponsMaxCodeLength +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetCouponsMaxCodeLength()` + +UnsetCouponsMaxCodeLength ensures that no value is present for CouponsMaxCodeLength, not even an explicit nil +### GetGiftCardsMinCodeLength + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetGiftCardsMinCodeLength() interface{}` + +GetGiftCardsMinCodeLength returns the GiftCardsMinCodeLength field if non-nil, zero value otherwise. + +### GetGiftCardsMinCodeLengthOk + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetGiftCardsMinCodeLengthOk() (*interface{}, bool)` + +GetGiftCardsMinCodeLengthOk returns a tuple with the GiftCardsMinCodeLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGiftCardsMinCodeLength + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetGiftCardsMinCodeLength(v interface{})` + +SetGiftCardsMinCodeLength sets GiftCardsMinCodeLength field to given value. + +### HasGiftCardsMinCodeLength + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasGiftCardsMinCodeLength() bool` + +HasGiftCardsMinCodeLength returns a boolean if a field has been set. + +### SetGiftCardsMinCodeLengthNil + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetGiftCardsMinCodeLengthNil(b bool)` + + SetGiftCardsMinCodeLengthNil sets the value for GiftCardsMinCodeLength to be an explicit nil + +### UnsetGiftCardsMinCodeLength +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetGiftCardsMinCodeLength()` + +UnsetGiftCardsMinCodeLength ensures that no value is present for GiftCardsMinCodeLength, not even an explicit nil +### GetGiftCardsMaxCodeLength + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetGiftCardsMaxCodeLength() interface{}` + +GetGiftCardsMaxCodeLength returns the GiftCardsMaxCodeLength field if non-nil, zero value otherwise. + +### GetGiftCardsMaxCodeLengthOk + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetGiftCardsMaxCodeLengthOk() (*interface{}, bool)` + +GetGiftCardsMaxCodeLengthOk returns a tuple with the GiftCardsMaxCodeLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGiftCardsMaxCodeLength + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetGiftCardsMaxCodeLength(v interface{})` + +SetGiftCardsMaxCodeLength sets GiftCardsMaxCodeLength field to given value. + +### HasGiftCardsMaxCodeLength + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasGiftCardsMaxCodeLength() bool` + +HasGiftCardsMaxCodeLength returns a boolean if a field has been set. + +### SetGiftCardsMaxCodeLengthNil + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetGiftCardsMaxCodeLengthNil(b bool)` + + SetGiftCardsMaxCodeLengthNil sets the value for GiftCardsMaxCodeLength to be an explicit nil + +### UnsetGiftCardsMaxCodeLength +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetGiftCardsMaxCodeLength()` + +UnsetGiftCardsMaxCodeLength ensures that no value is present for GiftCardsMaxCodeLength, not even an explicit nil +### GetCleanupsMaxConcurrentCount + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetCleanupsMaxConcurrentCount() interface{}` + +GetCleanupsMaxConcurrentCount returns the CleanupsMaxConcurrentCount field if non-nil, zero value otherwise. + +### GetCleanupsMaxConcurrentCountOk + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetCleanupsMaxConcurrentCountOk() (*interface{}, bool)` + +GetCleanupsMaxConcurrentCountOk returns a tuple with the CleanupsMaxConcurrentCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCleanupsMaxConcurrentCount + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetCleanupsMaxConcurrentCount(v interface{})` + +SetCleanupsMaxConcurrentCount sets CleanupsMaxConcurrentCount field to given value. + +### HasCleanupsMaxConcurrentCount + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasCleanupsMaxConcurrentCount() bool` + +HasCleanupsMaxConcurrentCount returns a boolean if a field has been set. + +### SetCleanupsMaxConcurrentCountNil + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetCleanupsMaxConcurrentCountNil(b bool)` + + SetCleanupsMaxConcurrentCountNil sets the value for CleanupsMaxConcurrentCount to be an explicit nil + +### UnsetCleanupsMaxConcurrentCount +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetCleanupsMaxConcurrentCount()` + +UnsetCleanupsMaxConcurrentCount ensures that no value is present for CleanupsMaxConcurrentCount, not even an explicit nil +### GetExportsMaxConcurrentCount + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetExportsMaxConcurrentCount() interface{}` + +GetExportsMaxConcurrentCount returns the ExportsMaxConcurrentCount field if non-nil, zero value otherwise. + +### GetExportsMaxConcurrentCountOk + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetExportsMaxConcurrentCountOk() (*interface{}, bool)` + +GetExportsMaxConcurrentCountOk returns a tuple with the ExportsMaxConcurrentCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExportsMaxConcurrentCount + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetExportsMaxConcurrentCount(v interface{})` + +SetExportsMaxConcurrentCount sets ExportsMaxConcurrentCount field to given value. + +### HasExportsMaxConcurrentCount + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasExportsMaxConcurrentCount() bool` + +HasExportsMaxConcurrentCount returns a boolean if a field has been set. + +### SetExportsMaxConcurrentCountNil + +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetExportsMaxConcurrentCountNil(b bool)` + + SetExportsMaxConcurrentCountNil sets the value for ExportsMaxConcurrentCount to be an explicit nil + +### UnsetExportsMaxConcurrentCount +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetExportsMaxConcurrentCount()` + +UnsetExportsMaxConcurrentCount ensures that no value is present for ExportsMaxConcurrentCount, not even an explicit nil +### GetImportsMaxConcurrentCount -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetDiscountDisabled() interface{}` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetImportsMaxConcurrentCount() interface{}` -GetDiscountDisabled returns the DiscountDisabled field if non-nil, zero value otherwise. +GetImportsMaxConcurrentCount returns the ImportsMaxConcurrentCount field if non-nil, zero value otherwise. -### GetDiscountDisabledOk +### GetImportsMaxConcurrentCountOk -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetDiscountDisabledOk() (*interface{}, bool)` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetImportsMaxConcurrentCountOk() (*interface{}, bool)` -GetDiscountDisabledOk returns a tuple with the DiscountDisabled field if it's non-nil, zero value otherwise +GetImportsMaxConcurrentCountOk returns a tuple with the ImportsMaxConcurrentCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDiscountDisabled +### SetImportsMaxConcurrentCount -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetDiscountDisabled(v interface{})` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetImportsMaxConcurrentCount(v interface{})` -SetDiscountDisabled sets DiscountDisabled field to given value. +SetImportsMaxConcurrentCount sets ImportsMaxConcurrentCount field to given value. -### HasDiscountDisabled +### HasImportsMaxConcurrentCount -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasDiscountDisabled() bool` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasImportsMaxConcurrentCount() bool` -HasDiscountDisabled returns a boolean if a field has been set. +HasImportsMaxConcurrentCount returns a boolean if a field has been set. -### SetDiscountDisabledNil +### SetImportsMaxConcurrentCountNil -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetDiscountDisabledNil(b bool)` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetImportsMaxConcurrentCountNil(b bool)` - SetDiscountDisabledNil sets the value for DiscountDisabled to be an explicit nil + SetImportsMaxConcurrentCountNil sets the value for ImportsMaxConcurrentCount to be an explicit nil -### UnsetDiscountDisabled -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetDiscountDisabled()` +### UnsetImportsMaxConcurrentCount +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetImportsMaxConcurrentCount()` -UnsetDiscountDisabled ensures that no value is present for DiscountDisabled, not even an explicit nil -### GetAccountDisabled +UnsetImportsMaxConcurrentCount ensures that no value is present for ImportsMaxConcurrentCount, not even an explicit nil +### GetPromotionsMaxConcurrentCount -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetAccountDisabled() interface{}` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetPromotionsMaxConcurrentCount() interface{}` -GetAccountDisabled returns the AccountDisabled field if non-nil, zero value otherwise. +GetPromotionsMaxConcurrentCount returns the PromotionsMaxConcurrentCount field if non-nil, zero value otherwise. -### GetAccountDisabledOk +### GetPromotionsMaxConcurrentCountOk -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetAccountDisabledOk() (*interface{}, bool)` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetPromotionsMaxConcurrentCountOk() (*interface{}, bool)` -GetAccountDisabledOk returns a tuple with the AccountDisabled field if it's non-nil, zero value otherwise +GetPromotionsMaxConcurrentCountOk returns a tuple with the PromotionsMaxConcurrentCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetAccountDisabled +### SetPromotionsMaxConcurrentCount -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetAccountDisabled(v interface{})` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetPromotionsMaxConcurrentCount(v interface{})` -SetAccountDisabled sets AccountDisabled field to given value. +SetPromotionsMaxConcurrentCount sets PromotionsMaxConcurrentCount field to given value. -### HasAccountDisabled +### HasPromotionsMaxConcurrentCount -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasAccountDisabled() bool` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasPromotionsMaxConcurrentCount() bool` -HasAccountDisabled returns a boolean if a field has been set. +HasPromotionsMaxConcurrentCount returns a boolean if a field has been set. -### SetAccountDisabledNil +### SetPromotionsMaxConcurrentCountNil -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetAccountDisabledNil(b bool)` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetPromotionsMaxConcurrentCountNil(b bool)` - SetAccountDisabledNil sets the value for AccountDisabled to be an explicit nil + SetPromotionsMaxConcurrentCountNil sets the value for PromotionsMaxConcurrentCount to be an explicit nil -### UnsetAccountDisabled -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetAccountDisabled()` +### UnsetPromotionsMaxConcurrentCount +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetPromotionsMaxConcurrentCount()` -UnsetAccountDisabled ensures that no value is present for AccountDisabled, not even an explicit nil -### GetAcceptanceDisabled +UnsetPromotionsMaxConcurrentCount ensures that no value is present for PromotionsMaxConcurrentCount, not even an explicit nil +### GetImportsTriggerWebhooks -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetAcceptanceDisabled() interface{}` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetImportsTriggerWebhooks() interface{}` -GetAcceptanceDisabled returns the AcceptanceDisabled field if non-nil, zero value otherwise. +GetImportsTriggerWebhooks returns the ImportsTriggerWebhooks field if non-nil, zero value otherwise. -### GetAcceptanceDisabledOk +### GetImportsTriggerWebhooksOk -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetAcceptanceDisabledOk() (*interface{}, bool)` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetImportsTriggerWebhooksOk() (*interface{}, bool)` -GetAcceptanceDisabledOk returns a tuple with the AcceptanceDisabled field if it's non-nil, zero value otherwise +GetImportsTriggerWebhooksOk returns a tuple with the ImportsTriggerWebhooks field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetAcceptanceDisabled +### SetImportsTriggerWebhooks -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetAcceptanceDisabled(v interface{})` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetImportsTriggerWebhooks(v interface{})` -SetAcceptanceDisabled sets AcceptanceDisabled field to given value. +SetImportsTriggerWebhooks sets ImportsTriggerWebhooks field to given value. -### HasAcceptanceDisabled +### HasImportsTriggerWebhooks -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasAcceptanceDisabled() bool` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasImportsTriggerWebhooks() bool` -HasAcceptanceDisabled returns a boolean if a field has been set. +HasImportsTriggerWebhooks returns a boolean if a field has been set. -### SetAcceptanceDisabledNil +### SetImportsTriggerWebhooksNil -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetAcceptanceDisabledNil(b bool)` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetImportsTriggerWebhooksNil(b bool)` - SetAcceptanceDisabledNil sets the value for AcceptanceDisabled to be an explicit nil + SetImportsTriggerWebhooksNil sets the value for ImportsTriggerWebhooks to be an explicit nil -### UnsetAcceptanceDisabled -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetAcceptanceDisabled()` +### UnsetImportsTriggerWebhooks +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetImportsTriggerWebhooks()` -UnsetAcceptanceDisabled ensures that no value is present for AcceptanceDisabled, not even an explicit nil -### GetMaxConcurrentPromotions +UnsetImportsTriggerWebhooks ensures that no value is present for ImportsTriggerWebhooks, not even an explicit nil +### GetTaxCalculatorsErrors -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetMaxConcurrentPromotions() interface{}` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetTaxCalculatorsErrors() interface{}` -GetMaxConcurrentPromotions returns the MaxConcurrentPromotions field if non-nil, zero value otherwise. +GetTaxCalculatorsErrors returns the TaxCalculatorsErrors field if non-nil, zero value otherwise. -### GetMaxConcurrentPromotionsOk +### GetTaxCalculatorsErrorsOk -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetMaxConcurrentPromotionsOk() (*interface{}, bool)` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetTaxCalculatorsErrorsOk() (*interface{}, bool)` -GetMaxConcurrentPromotionsOk returns a tuple with the MaxConcurrentPromotions field if it's non-nil, zero value otherwise +GetTaxCalculatorsErrorsOk returns a tuple with the TaxCalculatorsErrors field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetMaxConcurrentPromotions +### SetTaxCalculatorsErrors -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetMaxConcurrentPromotions(v interface{})` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetTaxCalculatorsErrors(v interface{})` -SetMaxConcurrentPromotions sets MaxConcurrentPromotions field to given value. +SetTaxCalculatorsErrors sets TaxCalculatorsErrors field to given value. -### HasMaxConcurrentPromotions +### HasTaxCalculatorsErrors -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasMaxConcurrentPromotions() bool` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasTaxCalculatorsErrors() bool` -HasMaxConcurrentPromotions returns a boolean if a field has been set. +HasTaxCalculatorsErrors returns a boolean if a field has been set. -### SetMaxConcurrentPromotionsNil +### SetTaxCalculatorsErrorsNil -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetMaxConcurrentPromotionsNil(b bool)` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetTaxCalculatorsErrorsNil(b bool)` - SetMaxConcurrentPromotionsNil sets the value for MaxConcurrentPromotions to be an explicit nil + SetTaxCalculatorsErrorsNil sets the value for TaxCalculatorsErrors to be an explicit nil -### UnsetMaxConcurrentPromotions -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetMaxConcurrentPromotions()` +### UnsetTaxCalculatorsErrors +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetTaxCalculatorsErrors()` -UnsetMaxConcurrentPromotions ensures that no value is present for MaxConcurrentPromotions, not even an explicit nil -### GetMaxConcurrentImports +UnsetTaxCalculatorsErrors ensures that no value is present for TaxCalculatorsErrors, not even an explicit nil +### GetExternalPromotionsErrors -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetMaxConcurrentImports() interface{}` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetExternalPromotionsErrors() interface{}` -GetMaxConcurrentImports returns the MaxConcurrentImports field if non-nil, zero value otherwise. +GetExternalPromotionsErrors returns the ExternalPromotionsErrors field if non-nil, zero value otherwise. -### GetMaxConcurrentImportsOk +### GetExternalPromotionsErrorsOk -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetMaxConcurrentImportsOk() (*interface{}, bool)` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetExternalPromotionsErrorsOk() (*interface{}, bool)` -GetMaxConcurrentImportsOk returns a tuple with the MaxConcurrentImports field if it's non-nil, zero value otherwise +GetExternalPromotionsErrorsOk returns a tuple with the ExternalPromotionsErrors field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetMaxConcurrentImports +### SetExternalPromotionsErrors -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetMaxConcurrentImports(v interface{})` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetExternalPromotionsErrors(v interface{})` -SetMaxConcurrentImports sets MaxConcurrentImports field to given value. +SetExternalPromotionsErrors sets ExternalPromotionsErrors field to given value. -### HasMaxConcurrentImports +### HasExternalPromotionsErrors -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasMaxConcurrentImports() bool` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasExternalPromotionsErrors() bool` -HasMaxConcurrentImports returns a boolean if a field has been set. +HasExternalPromotionsErrors returns a boolean if a field has been set. -### SetMaxConcurrentImportsNil +### SetExternalPromotionsErrorsNil -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetMaxConcurrentImportsNil(b bool)` +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetExternalPromotionsErrorsNil(b bool)` - SetMaxConcurrentImportsNil sets the value for MaxConcurrentImports to be an explicit nil + SetExternalPromotionsErrorsNil sets the value for ExternalPromotionsErrors to be an explicit nil -### UnsetMaxConcurrentImports -`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetMaxConcurrentImports()` +### UnsetExternalPromotionsErrors +`func (o *GETOrganizationOrganizationId200ResponseDataAttributes) UnsetExternalPromotionsErrors()` -UnsetMaxConcurrentImports ensures that no value is present for MaxConcurrentImports, not even an explicit nil +UnsetExternalPromotionsErrors ensures that no value is present for ExternalPromotionsErrors, not even an explicit nil ### GetCreatedAt `func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETPackagesPackageId200ResponseDataAttributes.md b/api/docs/GETPackagesPackageId200ResponseDataAttributes.md index 1ad42120..04c809c5 100644 --- a/api/docs/GETPackagesPackageId200ResponseDataAttributes.md +++ b/api/docs/GETPackagesPackageId200ResponseDataAttributes.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | Unique name for the package | [optional] -**Code** | Pointer to **interface{}** | The package identifying code | [optional] +**Name** | Pointer to **interface{}** | Unique name for the package. | [optional] +**Code** | Pointer to **interface{}** | The package identifying code. | [optional] **Length** | Pointer to **interface{}** | The package length, used to automatically calculate the tax rates from the available carrier accounts. | [optional] **Width** | Pointer to **interface{}** | The package width, used to automatically calculate the tax rates from the available carrier accounts. | [optional] **Height** | Pointer to **interface{}** | The package height, used to automatically calculate the tax rates from the available carrier accounts. | [optional] @@ -13,7 +13,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETParcelLineItemsParcelLineItemId200ResponseDataAttributes.md b/api/docs/GETParcelLineItemsParcelLineItemId200ResponseDataAttributes.md index 5149c5ac..ad7d1d29 100644 --- a/api/docs/GETParcelLineItemsParcelLineItemId200ResponseDataAttributes.md +++ b/api/docs/GETParcelLineItemsParcelLineItemId200ResponseDataAttributes.md @@ -4,14 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SkuCode** | Pointer to **interface{}** | The code of the SKU of the associated shipment_line_item. | [optional] +**SkuCode** | Pointer to **interface{}** | The code of the associated SKU. | [optional] +**BundleCode** | Pointer to **interface{}** | The code of the associated bundle. | [optional] **Quantity** | Pointer to **interface{}** | The parcel line item quantity. | [optional] **Name** | Pointer to **interface{}** | The internal name of the associated line item. | [optional] **ImageUrl** | Pointer to **interface{}** | The image_url of the associated line item. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -68,6 +69,41 @@ HasSkuCode returns a boolean if a field has been set. `func (o *GETParcelLineItemsParcelLineItemId200ResponseDataAttributes) UnsetSkuCode()` UnsetSkuCode ensures that no value is present for SkuCode, not even an explicit nil +### GetBundleCode + +`func (o *GETParcelLineItemsParcelLineItemId200ResponseDataAttributes) GetBundleCode() interface{}` + +GetBundleCode returns the BundleCode field if non-nil, zero value otherwise. + +### GetBundleCodeOk + +`func (o *GETParcelLineItemsParcelLineItemId200ResponseDataAttributes) GetBundleCodeOk() (*interface{}, bool)` + +GetBundleCodeOk returns a tuple with the BundleCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBundleCode + +`func (o *GETParcelLineItemsParcelLineItemId200ResponseDataAttributes) SetBundleCode(v interface{})` + +SetBundleCode sets BundleCode field to given value. + +### HasBundleCode + +`func (o *GETParcelLineItemsParcelLineItemId200ResponseDataAttributes) HasBundleCode() bool` + +HasBundleCode returns a boolean if a field has been set. + +### SetBundleCodeNil + +`func (o *GETParcelLineItemsParcelLineItemId200ResponseDataAttributes) SetBundleCodeNil(b bool)` + + SetBundleCodeNil sets the value for BundleCode to be an explicit nil + +### UnsetBundleCode +`func (o *GETParcelLineItemsParcelLineItemId200ResponseDataAttributes) UnsetBundleCode()` + +UnsetBundleCode ensures that no value is present for BundleCode, not even an explicit nil ### GetQuantity `func (o *GETParcelLineItemsParcelLineItemId200ResponseDataAttributes) GetQuantity() interface{}` diff --git a/api/docs/GETParcelsParcelId200ResponseDataAttributes.md b/api/docs/GETParcelsParcelId200ResponseDataAttributes.md index 7a2a7dfd..821e704d 100644 --- a/api/docs/GETParcelsParcelId200ResponseDataAttributes.md +++ b/api/docs/GETParcelsParcelId200ResponseDataAttributes.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | Pointer to **interface{}** | Unique identifier for the parcel | [optional] +**Number** | Pointer to **interface{}** | Unique identifier for the parcel. | [optional] **Weight** | Pointer to **interface{}** | The parcel weight, used to automatically calculate the tax rates from the available carrier accounts. | [optional] -**UnitOfWeight** | Pointer to **interface{}** | Can be one of 'gr', 'lb', or 'oz' | [optional] +**UnitOfWeight** | Pointer to **interface{}** | The unit of weight. One of 'gr', 'oz', or 'lb'. | [optional] **EelPfc** | Pointer to **interface{}** | When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\". | [optional] -**ContentsType** | Pointer to **interface{}** | The type of item you are sending. Can be one of 'merchandise', 'gift', 'documents', 'returned_goods', 'sample', or 'other'. | [optional] +**ContentsType** | Pointer to **interface{}** | The type of item you are sending. | [optional] **ContentsExplanation** | Pointer to **interface{}** | If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute. | [optional] -**CustomsCertify** | Pointer to **interface{}** | Indicates if the provided information is accurate | [optional] +**CustomsCertify** | Pointer to **interface{}** | Indicates if the provided information is accurate. | [optional] **CustomsSigner** | Pointer to **interface{}** | This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this. | [optional] **NonDeliveryOption** | Pointer to **interface{}** | In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered. | [optional] **RestrictionType** | Pointer to **interface{}** | Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'. | [optional] @@ -25,13 +25,14 @@ Name | Type | Description | Notes **TrackingStatusDetail** | Pointer to **interface{}** | Additional information about the tracking status, automatically updated in real time by the shipping carrier. | [optional] **TrackingStatusUpdatedAt** | Pointer to **interface{}** | Time at which the parcel's tracking status was last updated. | [optional] **TrackingDetails** | Pointer to **interface{}** | The parcel's full tracking history, automatically updated in real time by the shipping carrier. | [optional] -**CarrierWeightOz** | Pointer to **interface{}** | The weight of the parcel as measured by the carrier in ounces (if available) | [optional] -**SignedBy** | Pointer to **interface{}** | The name of the person who signed for the parcel (if available) | [optional] +**CarrierWeightOz** | Pointer to **interface{}** | The weight of the parcel as measured by the carrier in ounces (if available). | [optional] +**SignedBy** | Pointer to **interface{}** | The name of the person who signed for the parcel (if available). | [optional] **Incoterm** | Pointer to **interface{}** | The type of Incoterm (if available). | [optional] +**DeliveryConfirmation** | Pointer to **interface{}** | The type of delivery confirmation option upon delivery. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -893,6 +894,41 @@ HasIncoterm returns a boolean if a field has been set. `func (o *GETParcelsParcelId200ResponseDataAttributes) UnsetIncoterm()` UnsetIncoterm ensures that no value is present for Incoterm, not even an explicit nil +### GetDeliveryConfirmation + +`func (o *GETParcelsParcelId200ResponseDataAttributes) GetDeliveryConfirmation() interface{}` + +GetDeliveryConfirmation returns the DeliveryConfirmation field if non-nil, zero value otherwise. + +### GetDeliveryConfirmationOk + +`func (o *GETParcelsParcelId200ResponseDataAttributes) GetDeliveryConfirmationOk() (*interface{}, bool)` + +GetDeliveryConfirmationOk returns a tuple with the DeliveryConfirmation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeliveryConfirmation + +`func (o *GETParcelsParcelId200ResponseDataAttributes) SetDeliveryConfirmation(v interface{})` + +SetDeliveryConfirmation sets DeliveryConfirmation field to given value. + +### HasDeliveryConfirmation + +`func (o *GETParcelsParcelId200ResponseDataAttributes) HasDeliveryConfirmation() bool` + +HasDeliveryConfirmation returns a boolean if a field has been set. + +### SetDeliveryConfirmationNil + +`func (o *GETParcelsParcelId200ResponseDataAttributes) SetDeliveryConfirmationNil(b bool)` + + SetDeliveryConfirmationNil sets the value for DeliveryConfirmation to be an explicit nil + +### UnsetDeliveryConfirmation +`func (o *GETParcelsParcelId200ResponseDataAttributes) UnsetDeliveryConfirmation()` + +UnsetDeliveryConfirmation ensures that no value is present for DeliveryConfirmation, not even an explicit nil ### GetCreatedAt `func (o *GETParcelsParcelId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETPaymentMethodsPaymentMethodId200ResponseDataAttributes.md b/api/docs/GETPaymentMethodsPaymentMethodId200ResponseDataAttributes.md index 308808ae..569af20a 100644 --- a/api/docs/GETPaymentMethodsPaymentMethodId200ResponseDataAttributes.md +++ b/api/docs/GETPaymentMethodsPaymentMethodId200ResponseDataAttributes.md @@ -4,23 +4,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PaymentSourceType** | Pointer to **interface{}** | The payment source type, can be one of: 'AdyenPayment', 'AxervePayment', 'BraintreePayment', 'CheckoutComPayment', 'CreditCard', 'ExternalPayment', 'KlarnaPayment', 'PaypalPayment', 'SatispayPayment', 'StripePayment', or 'WireTransfer'. | [optional] -**Name** | Pointer to **interface{}** | Payment source type, titleized | [optional] +**Name** | Pointer to **interface{}** | The payment method's internal name. | [optional] +**PaymentSourceType** | Pointer to **interface{}** | The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'credit_cards', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] **Moto** | Pointer to **interface{}** | Send this attribute if you want to mark the payment as MOTO, must be supported by payment gateway. | [optional] **RequireCapture** | Pointer to **interface{}** | Send this attribute if you want to require the payment capture before fulfillment. | [optional] +**AutoPlace** | Pointer to **interface{}** | Send this attribute if you want to automatically place the order upon authorization performed asynchronously. | [optional] **AutoCapture** | Pointer to **interface{}** | Send this attribute if you want to automatically capture the payment upon authorization. | [optional] -**DisabledAt** | Pointer to **interface{}** | Time at which the payment method was disabled. | [optional] -**PriceAmountCents** | Pointer to **interface{}** | The payment method's price, in cents | [optional] -**PriceAmountFloat** | Pointer to **interface{}** | The payment method's price, float | [optional] -**FormattedPriceAmount** | Pointer to **interface{}** | The payment method's price, formatted | [optional] +**PriceAmountCents** | Pointer to **interface{}** | The payment method's price, in cents. | [optional] +**PriceAmountFloat** | Pointer to **interface{}** | The payment method's price, float. | [optional] +**FormattedPriceAmount** | Pointer to **interface{}** | The payment method's price, formatted. | [optional] **AutoCaptureMaxAmountCents** | Pointer to **interface{}** | Send this attribute if you want to limit automatic capture to orders for which the total amount is equal or less than the specified value, in cents. | [optional] -**AutoCaptureMaxAmountFloat** | Pointer to **interface{}** | The automatic capture max amount, float | [optional] -**FormattedAutoCaptureMaxAmount** | Pointer to **interface{}** | The automatic capture max amount, formatted | [optional] +**AutoCaptureMaxAmountFloat** | Pointer to **interface{}** | The automatic capture max amount, float. | [optional] +**FormattedAutoCaptureMaxAmount** | Pointer to **interface{}** | The automatic capture max amount, formatted. | [optional] +**DisabledAt** | Pointer to **interface{}** | Time at which this resource was disabled. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -42,41 +43,6 @@ NewGETPaymentMethodsPaymentMethodId200ResponseDataAttributesWithDefaults instant This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetPaymentSourceType - -`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetPaymentSourceType() interface{}` - -GetPaymentSourceType returns the PaymentSourceType field if non-nil, zero value otherwise. - -### GetPaymentSourceTypeOk - -`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetPaymentSourceTypeOk() (*interface{}, bool)` - -GetPaymentSourceTypeOk returns a tuple with the PaymentSourceType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPaymentSourceType - -`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetPaymentSourceType(v interface{})` - -SetPaymentSourceType sets PaymentSourceType field to given value. - -### HasPaymentSourceType - -`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasPaymentSourceType() bool` - -HasPaymentSourceType returns a boolean if a field has been set. - -### SetPaymentSourceTypeNil - -`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetPaymentSourceTypeNil(b bool)` - - SetPaymentSourceTypeNil sets the value for PaymentSourceType to be an explicit nil - -### UnsetPaymentSourceType -`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) UnsetPaymentSourceType()` - -UnsetPaymentSourceType ensures that no value is present for PaymentSourceType, not even an explicit nil ### GetName `func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetName() interface{}` @@ -112,6 +78,41 @@ HasName returns a boolean if a field has been set. `func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetPaymentSourceType + +`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetPaymentSourceType() interface{}` + +GetPaymentSourceType returns the PaymentSourceType field if non-nil, zero value otherwise. + +### GetPaymentSourceTypeOk + +`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetPaymentSourceTypeOk() (*interface{}, bool)` + +GetPaymentSourceTypeOk returns a tuple with the PaymentSourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentSourceType + +`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetPaymentSourceType(v interface{})` + +SetPaymentSourceType sets PaymentSourceType field to given value. + +### HasPaymentSourceType + +`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasPaymentSourceType() bool` + +HasPaymentSourceType returns a boolean if a field has been set. + +### SetPaymentSourceTypeNil + +`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetPaymentSourceTypeNil(b bool)` + + SetPaymentSourceTypeNil sets the value for PaymentSourceType to be an explicit nil + +### UnsetPaymentSourceType +`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) UnsetPaymentSourceType()` + +UnsetPaymentSourceType ensures that no value is present for PaymentSourceType, not even an explicit nil ### GetCurrencyCode `func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetCurrencyCode() interface{}` @@ -217,6 +218,41 @@ HasRequireCapture returns a boolean if a field has been set. `func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) UnsetRequireCapture()` UnsetRequireCapture ensures that no value is present for RequireCapture, not even an explicit nil +### GetAutoPlace + +`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetAutoPlace() interface{}` + +GetAutoPlace returns the AutoPlace field if non-nil, zero value otherwise. + +### GetAutoPlaceOk + +`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetAutoPlaceOk() (*interface{}, bool)` + +GetAutoPlaceOk returns a tuple with the AutoPlace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoPlace + +`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetAutoPlace(v interface{})` + +SetAutoPlace sets AutoPlace field to given value. + +### HasAutoPlace + +`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasAutoPlace() bool` + +HasAutoPlace returns a boolean if a field has been set. + +### SetAutoPlaceNil + +`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetAutoPlaceNil(b bool)` + + SetAutoPlaceNil sets the value for AutoPlace to be an explicit nil + +### UnsetAutoPlace +`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) UnsetAutoPlace()` + +UnsetAutoPlace ensures that no value is present for AutoPlace, not even an explicit nil ### GetAutoCapture `func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetAutoCapture() interface{}` @@ -252,41 +288,6 @@ HasAutoCapture returns a boolean if a field has been set. `func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) UnsetAutoCapture()` UnsetAutoCapture ensures that no value is present for AutoCapture, not even an explicit nil -### GetDisabledAt - -`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetDisabledAt() interface{}` - -GetDisabledAt returns the DisabledAt field if non-nil, zero value otherwise. - -### GetDisabledAtOk - -`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool)` - -GetDisabledAtOk returns a tuple with the DisabledAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisabledAt - -`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetDisabledAt(v interface{})` - -SetDisabledAt sets DisabledAt field to given value. - -### HasDisabledAt - -`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasDisabledAt() bool` - -HasDisabledAt returns a boolean if a field has been set. - -### SetDisabledAtNil - -`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetDisabledAtNil(b bool)` - - SetDisabledAtNil sets the value for DisabledAt to be an explicit nil - -### UnsetDisabledAt -`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) UnsetDisabledAt()` - -UnsetDisabledAt ensures that no value is present for DisabledAt, not even an explicit nil ### GetPriceAmountCents `func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetPriceAmountCents() interface{}` @@ -497,6 +498,41 @@ HasFormattedAutoCaptureMaxAmount returns a boolean if a field has been set. `func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) UnsetFormattedAutoCaptureMaxAmount()` UnsetFormattedAutoCaptureMaxAmount ensures that no value is present for FormattedAutoCaptureMaxAmount, not even an explicit nil +### GetDisabledAt + +`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetDisabledAt() interface{}` + +GetDisabledAt returns the DisabledAt field if non-nil, zero value otherwise. + +### GetDisabledAtOk + +`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool)` + +GetDisabledAtOk returns a tuple with the DisabledAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabledAt + +`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetDisabledAt(v interface{})` + +SetDisabledAt sets DisabledAt field to given value. + +### HasDisabledAt + +`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasDisabledAt() bool` + +HasDisabledAt returns a boolean if a field has been set. + +### SetDisabledAtNil + +`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetDisabledAtNil(b bool)` + + SetDisabledAtNil sets the value for DisabledAt to be an explicit nil + +### UnsetDisabledAt +`func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) UnsetDisabledAt()` + +UnsetDisabledAt ensures that no value is present for DisabledAt, not even an explicit nil ### GetCreatedAt `func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETPaymentOptions200Response.md b/api/docs/GETPaymentOptions200Response.md new file mode 100644 index 00000000..77cf98ef --- /dev/null +++ b/api/docs/GETPaymentOptions200Response.md @@ -0,0 +1,66 @@ +# GETPaymentOptions200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewGETPaymentOptions200Response + +`func NewGETPaymentOptions200Response() *GETPaymentOptions200Response` + +NewGETPaymentOptions200Response instantiates a new GETPaymentOptions200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETPaymentOptions200ResponseWithDefaults + +`func NewGETPaymentOptions200ResponseWithDefaults() *GETPaymentOptions200Response` + +NewGETPaymentOptions200ResponseWithDefaults instantiates a new GETPaymentOptions200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETPaymentOptions200Response) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETPaymentOptions200Response) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETPaymentOptions200Response) SetData(v interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETPaymentOptions200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *GETPaymentOptions200Response) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *GETPaymentOptions200Response) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETPaymentOptionsPaymentOptionId200Response.md b/api/docs/GETPaymentOptionsPaymentOptionId200Response.md new file mode 100644 index 00000000..8ce67bcb --- /dev/null +++ b/api/docs/GETPaymentOptionsPaymentOptionId200Response.md @@ -0,0 +1,56 @@ +# GETPaymentOptionsPaymentOptionId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**GETPaymentOptionsPaymentOptionId200ResponseData**](GETPaymentOptionsPaymentOptionId200ResponseData.md) | | [optional] + +## Methods + +### NewGETPaymentOptionsPaymentOptionId200Response + +`func NewGETPaymentOptionsPaymentOptionId200Response() *GETPaymentOptionsPaymentOptionId200Response` + +NewGETPaymentOptionsPaymentOptionId200Response instantiates a new GETPaymentOptionsPaymentOptionId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETPaymentOptionsPaymentOptionId200ResponseWithDefaults + +`func NewGETPaymentOptionsPaymentOptionId200ResponseWithDefaults() *GETPaymentOptionsPaymentOptionId200Response` + +NewGETPaymentOptionsPaymentOptionId200ResponseWithDefaults instantiates a new GETPaymentOptionsPaymentOptionId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETPaymentOptionsPaymentOptionId200Response) GetData() GETPaymentOptionsPaymentOptionId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETPaymentOptionsPaymentOptionId200Response) GetDataOk() (*GETPaymentOptionsPaymentOptionId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETPaymentOptionsPaymentOptionId200Response) SetData(v GETPaymentOptionsPaymentOptionId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETPaymentOptionsPaymentOptionId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETPaymentOptionsPaymentOptionId200ResponseData.md b/api/docs/GETPaymentOptionsPaymentOptionId200ResponseData.md new file mode 100644 index 00000000..694951b8 --- /dev/null +++ b/api/docs/GETPaymentOptionsPaymentOptionId200ResponseData.md @@ -0,0 +1,180 @@ +# GETPaymentOptionsPaymentOptionId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**GETPaymentOptionsPaymentOptionId200ResponseDataAttributes**](GETPaymentOptionsPaymentOptionId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTPaymentOptions201ResponseDataRelationships**](POSTPaymentOptions201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewGETPaymentOptionsPaymentOptionId200ResponseData + +`func NewGETPaymentOptionsPaymentOptionId200ResponseData() *GETPaymentOptionsPaymentOptionId200ResponseData` + +NewGETPaymentOptionsPaymentOptionId200ResponseData instantiates a new GETPaymentOptionsPaymentOptionId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETPaymentOptionsPaymentOptionId200ResponseDataWithDefaults + +`func NewGETPaymentOptionsPaymentOptionId200ResponseDataWithDefaults() *GETPaymentOptionsPaymentOptionId200ResponseData` + +NewGETPaymentOptionsPaymentOptionId200ResponseDataWithDefaults instantiates a new GETPaymentOptionsPaymentOptionId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetAttributes() GETPaymentOptionsPaymentOptionId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetAttributesOk() (*GETPaymentOptionsPaymentOptionId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) SetAttributes(v GETPaymentOptionsPaymentOptionId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetRelationships() POSTPaymentOptions201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetRelationshipsOk() (*POSTPaymentOptions201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) SetRelationships(v POSTPaymentOptions201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETPaymentOptionsPaymentOptionId200ResponseDataAttributes.md b/api/docs/GETPaymentOptionsPaymentOptionId200ResponseDataAttributes.md new file mode 100644 index 00000000..b2d81aa2 --- /dev/null +++ b/api/docs/GETPaymentOptionsPaymentOptionId200ResponseDataAttributes.md @@ -0,0 +1,318 @@ +# GETPaymentOptionsPaymentOptionId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **interface{}** | The payment option's name. Wehn blank is inherited by payment source type. | [optional] +**PaymentSourceType** | Pointer to **interface{}** | The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'credit_cards', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'. | [optional] +**Data** | Pointer to **interface{}** | The payment options data to be added to the payment source payload. Check payment specific API for more details. | [optional] +**CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] +**UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewGETPaymentOptionsPaymentOptionId200ResponseDataAttributes + +`func NewGETPaymentOptionsPaymentOptionId200ResponseDataAttributes() *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes` + +NewGETPaymentOptionsPaymentOptionId200ResponseDataAttributes instantiates a new GETPaymentOptionsPaymentOptionId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETPaymentOptionsPaymentOptionId200ResponseDataAttributesWithDefaults + +`func NewGETPaymentOptionsPaymentOptionId200ResponseDataAttributesWithDefaults() *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes` + +NewGETPaymentOptionsPaymentOptionId200ResponseDataAttributesWithDefaults instantiates a new GETPaymentOptionsPaymentOptionId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + +### HasName + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetPaymentSourceType + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetPaymentSourceType() interface{}` + +GetPaymentSourceType returns the PaymentSourceType field if non-nil, zero value otherwise. + +### GetPaymentSourceTypeOk + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetPaymentSourceTypeOk() (*interface{}, bool)` + +GetPaymentSourceTypeOk returns a tuple with the PaymentSourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentSourceType + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetPaymentSourceType(v interface{})` + +SetPaymentSourceType sets PaymentSourceType field to given value. + +### HasPaymentSourceType + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasPaymentSourceType() bool` + +HasPaymentSourceType returns a boolean if a field has been set. + +### SetPaymentSourceTypeNil + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetPaymentSourceTypeNil(b bool)` + + SetPaymentSourceTypeNil sets the value for PaymentSourceType to be an explicit nil + +### UnsetPaymentSourceType +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) UnsetPaymentSourceType()` + +UnsetPaymentSourceType ensures that no value is present for PaymentSourceType, not even an explicit nil +### GetData + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetData(v interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil +### GetCreatedAt + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetCreatedAt() interface{}` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetCreatedAt(v interface{})` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### SetCreatedAtNil + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetCreatedAtNil(b bool)` + + SetCreatedAtNil sets the value for CreatedAt to be an explicit nil + +### UnsetCreatedAt +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) UnsetCreatedAt()` + +UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil +### GetUpdatedAt + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetUpdatedAt() interface{}` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetUpdatedAt(v interface{})` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### SetUpdatedAtNil + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetUpdatedAtNil(b bool)` + + SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil + +### UnsetUpdatedAt +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) UnsetUpdatedAt()` + +UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil +### GetReference + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes.md b/api/docs/GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes.md index 21f7c193..cb3b6242 100644 --- a/api/docs/GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes.md +++ b/api/docs/GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes.md @@ -8,19 +8,16 @@ Name | Type | Description | Notes **CancelUrl** | Pointer to **interface{}** | The URL where the payer is redirected after they cancel the payment. | [optional] **NoteToPayer** | Pointer to **interface{}** | A free-form field that you can use to send a note to the payer on PayPal. | [optional] **PaypalPayerId** | Pointer to **interface{}** | The id of the payer that PayPal passes in the return_url. | [optional] -**Name** | Pointer to **interface{}** | The PayPal payer id (if present) | [optional] +**Name** | Pointer to **interface{}** | The PayPal payer id (if present). | [optional] **PaypalId** | Pointer to **interface{}** | The id of the PayPal payment object. | [optional] -**Status** | Pointer to **interface{}** | The PayPal payment status. One of 'created' (default) or 'approved'. | [optional] +**Status** | Pointer to **interface{}** | The PayPal payment status. One of 'created', or 'approved'. | [optional] **ApprovalUrl** | Pointer to **interface{}** | The URL the customer should be redirected to approve the payment. | [optional] **MismatchedAmounts** | Pointer to **interface{}** | Indicates if the order current amount differs form the one of the created payment intent. | [optional] -**IntentAmountCents** | Pointer to **interface{}** | The amount of the associated payment intent, in cents. | [optional] -**IntentAmountFloat** | Pointer to **interface{}** | The amount of the associated payment intent, float. | [optional] -**FormattedIntentAmount** | Pointer to **interface{}** | The amount of the associated payment intent, formatted. | [optional] -**PaymentInstrument** | Pointer to **interface{}** | Information about the payment instrument used in the transaction | [optional] +**PaymentInstrument** | Pointer to **interface{}** | Information about the payment instrument used in the transaction. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -357,111 +354,6 @@ HasMismatchedAmounts returns a boolean if a field has been set. `func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) UnsetMismatchedAmounts()` UnsetMismatchedAmounts ensures that no value is present for MismatchedAmounts, not even an explicit nil -### GetIntentAmountCents - -`func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) GetIntentAmountCents() interface{}` - -GetIntentAmountCents returns the IntentAmountCents field if non-nil, zero value otherwise. - -### GetIntentAmountCentsOk - -`func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) GetIntentAmountCentsOk() (*interface{}, bool)` - -GetIntentAmountCentsOk returns a tuple with the IntentAmountCents field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIntentAmountCents - -`func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) SetIntentAmountCents(v interface{})` - -SetIntentAmountCents sets IntentAmountCents field to given value. - -### HasIntentAmountCents - -`func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) HasIntentAmountCents() bool` - -HasIntentAmountCents returns a boolean if a field has been set. - -### SetIntentAmountCentsNil - -`func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) SetIntentAmountCentsNil(b bool)` - - SetIntentAmountCentsNil sets the value for IntentAmountCents to be an explicit nil - -### UnsetIntentAmountCents -`func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) UnsetIntentAmountCents()` - -UnsetIntentAmountCents ensures that no value is present for IntentAmountCents, not even an explicit nil -### GetIntentAmountFloat - -`func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) GetIntentAmountFloat() interface{}` - -GetIntentAmountFloat returns the IntentAmountFloat field if non-nil, zero value otherwise. - -### GetIntentAmountFloatOk - -`func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) GetIntentAmountFloatOk() (*interface{}, bool)` - -GetIntentAmountFloatOk returns a tuple with the IntentAmountFloat field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIntentAmountFloat - -`func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) SetIntentAmountFloat(v interface{})` - -SetIntentAmountFloat sets IntentAmountFloat field to given value. - -### HasIntentAmountFloat - -`func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) HasIntentAmountFloat() bool` - -HasIntentAmountFloat returns a boolean if a field has been set. - -### SetIntentAmountFloatNil - -`func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) SetIntentAmountFloatNil(b bool)` - - SetIntentAmountFloatNil sets the value for IntentAmountFloat to be an explicit nil - -### UnsetIntentAmountFloat -`func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) UnsetIntentAmountFloat()` - -UnsetIntentAmountFloat ensures that no value is present for IntentAmountFloat, not even an explicit nil -### GetFormattedIntentAmount - -`func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) GetFormattedIntentAmount() interface{}` - -GetFormattedIntentAmount returns the FormattedIntentAmount field if non-nil, zero value otherwise. - -### GetFormattedIntentAmountOk - -`func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) GetFormattedIntentAmountOk() (*interface{}, bool)` - -GetFormattedIntentAmountOk returns a tuple with the FormattedIntentAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFormattedIntentAmount - -`func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) SetFormattedIntentAmount(v interface{})` - -SetFormattedIntentAmount sets FormattedIntentAmount field to given value. - -### HasFormattedIntentAmount - -`func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) HasFormattedIntentAmount() bool` - -HasFormattedIntentAmount returns a boolean if a field has been set. - -### SetFormattedIntentAmountNil - -`func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) SetFormattedIntentAmountNil(b bool)` - - SetFormattedIntentAmountNil sets the value for FormattedIntentAmount to be an explicit nil - -### UnsetFormattedIntentAmount -`func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) UnsetFormattedIntentAmount()` - -UnsetFormattedIntentAmount ensures that no value is present for FormattedIntentAmount, not even an explicit nil ### GetPaymentInstrument `func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) GetPaymentInstrument() interface{}` diff --git a/api/docs/GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData.md b/api/docs/GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData.md index 0820232a..a7c1e54c 100644 --- a/api/docs/GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData.md +++ b/api/docs/GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes**](GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTFixedPricePromotions201ResponseDataRelationships**](POSTFixedPricePromotions201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationships**](POSTBuyXPayYPromotions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) GetRelationships() POSTFixedPricePromotions201ResponseDataRelationships` +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) GetRelationshipsOk() (*POSTFixedPricePromotions201ResponseDataRelationships, bool)` +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) SetRelationships(v POSTFixedPricePromotions201ResponseDataRelationships)` +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes.md b/api/docs/GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes.md index 9007cfc4..a7b8ca3c 100644 --- a/api/docs/GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes.md +++ b/api/docs/GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes.md @@ -5,16 +5,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The promotion's internal name. | [optional] +**Type** | Pointer to **interface{}** | The promotion's type. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] **StartsAt** | Pointer to **interface{}** | The activation date/time of this promotion. | [optional] **ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this promotion (must be after starts_at). | [optional] -**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. | [optional] +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] **TotalUsageCount** | Pointer to **interface{}** | The number of times this promotion has been applied. | [optional] -**Active** | Pointer to **interface{}** | Indicates if the promotion is active. | [optional] +**Active** | Pointer to **interface{}** | Indicates if the promotion is active (enabled and not expired). | [optional] +**Status** | Pointer to **interface{}** | The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. | [optional] +**DisabledAt** | Pointer to **interface{}** | Time at which this resource was disabled. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **Percentage** | Pointer to **interface{}** | The discount percentage to be applied. | [optional] @@ -72,6 +77,41 @@ HasName returns a boolean if a field has been set. `func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetType + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetCurrencyCode `func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetCurrencyCode() interface{}` @@ -107,6 +147,76 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetStartsAt `func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetStartsAt() interface{}` @@ -282,6 +392,76 @@ HasActive returns a boolean if a field has been set. `func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) UnsetActive()` UnsetActive ensures that no value is present for Active, not even an explicit nil +### GetStatus + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetStatus() interface{}` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetStatus(v interface{})` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### SetStatusNil + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetStatusNil(b bool)` + + SetStatusNil sets the value for Status to be an explicit nil + +### UnsetStatus +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) UnsetStatus()` + +UnsetStatus ensures that no value is present for Status, not even an explicit nil +### GetDisabledAt + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetDisabledAt() interface{}` + +GetDisabledAt returns the DisabledAt field if non-nil, zero value otherwise. + +### GetDisabledAtOk + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool)` + +GetDisabledAtOk returns a tuple with the DisabledAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabledAt + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetDisabledAt(v interface{})` + +SetDisabledAt sets DisabledAt field to given value. + +### HasDisabledAt + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) HasDisabledAt() bool` + +HasDisabledAt returns a boolean if a field has been set. + +### SetDisabledAtNil + +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetDisabledAtNil(b bool)` + + SetDisabledAtNil sets the value for DisabledAt to be an explicit nil + +### UnsetDisabledAt +`func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) UnsetDisabledAt()` + +UnsetDisabledAt ensures that no value is present for DisabledAt, not even an explicit nil ### GetCreatedAt `func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes.md b/api/docs/GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes.md index 13b165a7..23dfdb4c 100644 --- a/api/docs/GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes.md +++ b/api/docs/GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The price tier's name | [optional] +**Name** | Pointer to **interface{}** | The price tier's name. | [optional] +**Type** | Pointer to **interface{}** | The price tier's type. | [optional] **UpTo** | Pointer to **interface{}** | The tier upper limit, expressed as the line item frequency in days (or frequency label, ie 'monthly'). When 'null' it means infinity (useful to have an always matching tier). | [optional] **PriceAmountCents** | Pointer to **interface{}** | The price of this price tier, in cents. | [optional] **PriceAmountFloat** | Pointer to **interface{}** | The price of this price tier, float. | [optional] @@ -12,7 +13,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -69,6 +70,41 @@ HasName returns a boolean if a field has been set. `func (o *GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetType + +`func (o *GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetUpTo `func (o *GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes) GetUpTo() interface{}` diff --git a/api/docs/AuthorizationDataRelationshipsEvents.md b/api/docs/GETPriceListSchedulers200Response.md similarity index 50% rename from api/docs/AuthorizationDataRelationshipsEvents.md rename to api/docs/GETPriceListSchedulers200Response.md index 9cb86423..97b31cef 100644 --- a/api/docs/AuthorizationDataRelationshipsEvents.md +++ b/api/docs/GETPriceListSchedulers200Response.md @@ -1,55 +1,65 @@ -# AuthorizationDataRelationshipsEvents +# GETPriceListSchedulers200Response ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | Pointer to [**AuthorizationDataRelationshipsEventsData**](AuthorizationDataRelationshipsEventsData.md) | | [optional] +**Data** | Pointer to **interface{}** | | [optional] ## Methods -### NewAuthorizationDataRelationshipsEvents +### NewGETPriceListSchedulers200Response -`func NewAuthorizationDataRelationshipsEvents() *AuthorizationDataRelationshipsEvents` +`func NewGETPriceListSchedulers200Response() *GETPriceListSchedulers200Response` -NewAuthorizationDataRelationshipsEvents instantiates a new AuthorizationDataRelationshipsEvents object +NewGETPriceListSchedulers200Response instantiates a new GETPriceListSchedulers200Response object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewAuthorizationDataRelationshipsEventsWithDefaults +### NewGETPriceListSchedulers200ResponseWithDefaults -`func NewAuthorizationDataRelationshipsEventsWithDefaults() *AuthorizationDataRelationshipsEvents` +`func NewGETPriceListSchedulers200ResponseWithDefaults() *GETPriceListSchedulers200Response` -NewAuthorizationDataRelationshipsEventsWithDefaults instantiates a new AuthorizationDataRelationshipsEvents object +NewGETPriceListSchedulers200ResponseWithDefaults instantiates a new GETPriceListSchedulers200Response object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetData -`func (o *AuthorizationDataRelationshipsEvents) GetData() AuthorizationDataRelationshipsEventsData` +`func (o *GETPriceListSchedulers200Response) GetData() interface{}` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *AuthorizationDataRelationshipsEvents) GetDataOk() (*AuthorizationDataRelationshipsEventsData, bool)` +`func (o *GETPriceListSchedulers200Response) GetDataOk() (*interface{}, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *AuthorizationDataRelationshipsEvents) SetData(v AuthorizationDataRelationshipsEventsData)` +`func (o *GETPriceListSchedulers200Response) SetData(v interface{})` SetData sets Data field to given value. ### HasData -`func (o *AuthorizationDataRelationshipsEvents) HasData() bool` +`func (o *GETPriceListSchedulers200Response) HasData() bool` HasData returns a boolean if a field has been set. +### SetDataNil + +`func (o *GETPriceListSchedulers200Response) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *GETPriceListSchedulers200Response) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/GETPriceListSchedulersPriceListSchedulerId200Response.md b/api/docs/GETPriceListSchedulersPriceListSchedulerId200Response.md new file mode 100644 index 00000000..6879dd19 --- /dev/null +++ b/api/docs/GETPriceListSchedulersPriceListSchedulerId200Response.md @@ -0,0 +1,56 @@ +# GETPriceListSchedulersPriceListSchedulerId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**GETPriceListSchedulersPriceListSchedulerId200ResponseData**](GETPriceListSchedulersPriceListSchedulerId200ResponseData.md) | | [optional] + +## Methods + +### NewGETPriceListSchedulersPriceListSchedulerId200Response + +`func NewGETPriceListSchedulersPriceListSchedulerId200Response() *GETPriceListSchedulersPriceListSchedulerId200Response` + +NewGETPriceListSchedulersPriceListSchedulerId200Response instantiates a new GETPriceListSchedulersPriceListSchedulerId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETPriceListSchedulersPriceListSchedulerId200ResponseWithDefaults + +`func NewGETPriceListSchedulersPriceListSchedulerId200ResponseWithDefaults() *GETPriceListSchedulersPriceListSchedulerId200Response` + +NewGETPriceListSchedulersPriceListSchedulerId200ResponseWithDefaults instantiates a new GETPriceListSchedulersPriceListSchedulerId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETPriceListSchedulersPriceListSchedulerId200Response) GetData() GETPriceListSchedulersPriceListSchedulerId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETPriceListSchedulersPriceListSchedulerId200Response) GetDataOk() (*GETPriceListSchedulersPriceListSchedulerId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETPriceListSchedulersPriceListSchedulerId200Response) SetData(v GETPriceListSchedulersPriceListSchedulerId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETPriceListSchedulersPriceListSchedulerId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETPriceListSchedulersPriceListSchedulerId200ResponseData.md b/api/docs/GETPriceListSchedulersPriceListSchedulerId200ResponseData.md new file mode 100644 index 00000000..16effbb8 --- /dev/null +++ b/api/docs/GETPriceListSchedulersPriceListSchedulerId200ResponseData.md @@ -0,0 +1,180 @@ +# GETPriceListSchedulersPriceListSchedulerId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes**](GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTPriceListSchedulers201ResponseDataRelationships**](POSTPriceListSchedulers201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewGETPriceListSchedulersPriceListSchedulerId200ResponseData + +`func NewGETPriceListSchedulersPriceListSchedulerId200ResponseData() *GETPriceListSchedulersPriceListSchedulerId200ResponseData` + +NewGETPriceListSchedulersPriceListSchedulerId200ResponseData instantiates a new GETPriceListSchedulersPriceListSchedulerId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETPriceListSchedulersPriceListSchedulerId200ResponseDataWithDefaults + +`func NewGETPriceListSchedulersPriceListSchedulerId200ResponseDataWithDefaults() *GETPriceListSchedulersPriceListSchedulerId200ResponseData` + +NewGETPriceListSchedulersPriceListSchedulerId200ResponseDataWithDefaults instantiates a new GETPriceListSchedulersPriceListSchedulerId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetAttributes() GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetAttributesOk() (*GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) SetAttributes(v GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetRelationships() POSTPriceListSchedulers201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetRelationshipsOk() (*POSTPriceListSchedulers201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) SetRelationships(v POSTPriceListSchedulers201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes.md b/api/docs/GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes.md new file mode 100644 index 00000000..33854b23 --- /dev/null +++ b/api/docs/GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes.md @@ -0,0 +1,426 @@ +# GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **interface{}** | The price list scheduler's internal name. | [optional] +**StartsAt** | Pointer to **interface{}** | The activation date/time of this price list scheduler. | [optional] +**ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this price list scheduler (must be after starts_at). | [optional] +**Active** | Pointer to **interface{}** | Indicates if the price list scheduler is active (enabled and not expired). | [optional] +**Status** | Pointer to **interface{}** | The price list scheduler status. One of 'disabled', 'expired', 'pending', or 'active'. | [optional] +**DisabledAt** | Pointer to **interface{}** | Time at which this resource was disabled. | [optional] +**CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] +**UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes + +`func NewGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes() *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes` + +NewGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes instantiates a new GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributesWithDefaults + +`func NewGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributesWithDefaults() *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes` + +NewGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributesWithDefaults instantiates a new GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + +### HasName + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetStartsAt + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetStartsAt() interface{}` + +GetStartsAt returns the StartsAt field if non-nil, zero value otherwise. + +### GetStartsAtOk + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool)` + +GetStartsAtOk returns a tuple with the StartsAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartsAt + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetStartsAt(v interface{})` + +SetStartsAt sets StartsAt field to given value. + +### HasStartsAt + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasStartsAt() bool` + +HasStartsAt returns a boolean if a field has been set. + +### SetStartsAtNil + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetStartsAtNil(b bool)` + + SetStartsAtNil sets the value for StartsAt to be an explicit nil + +### UnsetStartsAt +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnsetStartsAt()` + +UnsetStartsAt ensures that no value is present for StartsAt, not even an explicit nil +### GetExpiresAt + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetExpiresAt() interface{}` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetExpiresAt(v interface{})` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetActive + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetActive() interface{}` + +GetActive returns the Active field if non-nil, zero value otherwise. + +### GetActiveOk + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetActiveOk() (*interface{}, bool)` + +GetActiveOk returns a tuple with the Active field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActive + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetActive(v interface{})` + +SetActive sets Active field to given value. + +### HasActive + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasActive() bool` + +HasActive returns a boolean if a field has been set. + +### SetActiveNil + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetActiveNil(b bool)` + + SetActiveNil sets the value for Active to be an explicit nil + +### UnsetActive +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnsetActive()` + +UnsetActive ensures that no value is present for Active, not even an explicit nil +### GetStatus + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetStatus() interface{}` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetStatus(v interface{})` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### SetStatusNil + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetStatusNil(b bool)` + + SetStatusNil sets the value for Status to be an explicit nil + +### UnsetStatus +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnsetStatus()` + +UnsetStatus ensures that no value is present for Status, not even an explicit nil +### GetDisabledAt + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetDisabledAt() interface{}` + +GetDisabledAt returns the DisabledAt field if non-nil, zero value otherwise. + +### GetDisabledAtOk + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool)` + +GetDisabledAtOk returns a tuple with the DisabledAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabledAt + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetDisabledAt(v interface{})` + +SetDisabledAt sets DisabledAt field to given value. + +### HasDisabledAt + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasDisabledAt() bool` + +HasDisabledAt returns a boolean if a field has been set. + +### SetDisabledAtNil + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetDisabledAtNil(b bool)` + + SetDisabledAtNil sets the value for DisabledAt to be an explicit nil + +### UnsetDisabledAt +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnsetDisabledAt()` + +UnsetDisabledAt ensures that no value is present for DisabledAt, not even an explicit nil +### GetCreatedAt + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetCreatedAt() interface{}` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetCreatedAt(v interface{})` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### SetCreatedAtNil + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetCreatedAtNil(b bool)` + + SetCreatedAtNil sets the value for CreatedAt to be an explicit nil + +### UnsetCreatedAt +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnsetCreatedAt()` + +UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil +### GetUpdatedAt + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetUpdatedAt() interface{}` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetUpdatedAt(v interface{})` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### SetUpdatedAtNil + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetUpdatedAtNil(b bool)` + + SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil + +### UnsetUpdatedAt +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnsetUpdatedAt()` + +UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil +### GetReference + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETPriceListsPriceListId200ResponseDataAttributes.md b/api/docs/GETPriceListsPriceListId200ResponseDataAttributes.md index 7a4dc2bc..d1dba97b 100644 --- a/api/docs/GETPriceListsPriceListId200ResponseDataAttributes.md +++ b/api/docs/GETPriceListsPriceListId200ResponseDataAttributes.md @@ -4,13 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The price list's internal name | [optional] +**Name** | Pointer to **interface{}** | The price list's internal name. | [optional] +**Code** | Pointer to **interface{}** | A string that you can use to identify the price list (must be unique within the environment). | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] **TaxIncluded** | Pointer to **interface{}** | Indicates if the associated prices include taxes. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Rules** | Pointer to **interface{}** | The rules (using Rules Engine) to be applied. | [optional] +**RuleOutcomes** | Pointer to **interface{}** | The rule outcomes. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -67,6 +70,41 @@ HasName returns a boolean if a field has been set. `func (o *GETPriceListsPriceListId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCode + +`func (o *GETPriceListsPriceListId200ResponseDataAttributes) GetCode() interface{}` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *GETPriceListsPriceListId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *GETPriceListsPriceListId200ResponseDataAttributes) SetCode(v interface{})` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *GETPriceListsPriceListId200ResponseDataAttributes) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### SetCodeNil + +`func (o *GETPriceListsPriceListId200ResponseDataAttributes) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *GETPriceListsPriceListId200ResponseDataAttributes) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil ### GetCurrencyCode `func (o *GETPriceListsPriceListId200ResponseDataAttributes) GetCurrencyCode() interface{}` @@ -277,6 +315,76 @@ HasReferenceOrigin returns a boolean if a field has been set. `func (o *GETPriceListsPriceListId200ResponseDataAttributes) UnsetReferenceOrigin()` UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetRules + +`func (o *GETPriceListsPriceListId200ResponseDataAttributes) GetRules() interface{}` + +GetRules returns the Rules field if non-nil, zero value otherwise. + +### GetRulesOk + +`func (o *GETPriceListsPriceListId200ResponseDataAttributes) GetRulesOk() (*interface{}, bool)` + +GetRulesOk returns a tuple with the Rules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRules + +`func (o *GETPriceListsPriceListId200ResponseDataAttributes) SetRules(v interface{})` + +SetRules sets Rules field to given value. + +### HasRules + +`func (o *GETPriceListsPriceListId200ResponseDataAttributes) HasRules() bool` + +HasRules returns a boolean if a field has been set. + +### SetRulesNil + +`func (o *GETPriceListsPriceListId200ResponseDataAttributes) SetRulesNil(b bool)` + + SetRulesNil sets the value for Rules to be an explicit nil + +### UnsetRules +`func (o *GETPriceListsPriceListId200ResponseDataAttributes) UnsetRules()` + +UnsetRules ensures that no value is present for Rules, not even an explicit nil +### GetRuleOutcomes + +`func (o *GETPriceListsPriceListId200ResponseDataAttributes) GetRuleOutcomes() interface{}` + +GetRuleOutcomes returns the RuleOutcomes field if non-nil, zero value otherwise. + +### GetRuleOutcomesOk + +`func (o *GETPriceListsPriceListId200ResponseDataAttributes) GetRuleOutcomesOk() (*interface{}, bool)` + +GetRuleOutcomesOk returns a tuple with the RuleOutcomes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuleOutcomes + +`func (o *GETPriceListsPriceListId200ResponseDataAttributes) SetRuleOutcomes(v interface{})` + +SetRuleOutcomes sets RuleOutcomes field to given value. + +### HasRuleOutcomes + +`func (o *GETPriceListsPriceListId200ResponseDataAttributes) HasRuleOutcomes() bool` + +HasRuleOutcomes returns a boolean if a field has been set. + +### SetRuleOutcomesNil + +`func (o *GETPriceListsPriceListId200ResponseDataAttributes) SetRuleOutcomesNil(b bool)` + + SetRuleOutcomesNil sets the value for RuleOutcomes to be an explicit nil + +### UnsetRuleOutcomes +`func (o *GETPriceListsPriceListId200ResponseDataAttributes) UnsetRuleOutcomes()` + +UnsetRuleOutcomes ensures that no value is present for RuleOutcomes, not even an explicit nil ### GetMetadata `func (o *GETPriceListsPriceListId200ResponseDataAttributes) GetMetadata() interface{}` diff --git a/api/docs/GETPriceTiersPriceTierId200ResponseDataAttributes.md b/api/docs/GETPriceTiersPriceTierId200ResponseDataAttributes.md index aa21ad78..ecc998b8 100644 --- a/api/docs/GETPriceTiersPriceTierId200ResponseDataAttributes.md +++ b/api/docs/GETPriceTiersPriceTierId200ResponseDataAttributes.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The price tier's name | [optional] +**Name** | Pointer to **interface{}** | The price tier's name. | [optional] +**Type** | Pointer to **interface{}** | The price tier's type. | [optional] **UpTo** | Pointer to **interface{}** | The tier upper limit. When 'null' it means infinity (useful to have an always matching tier). | [optional] **PriceAmountCents** | Pointer to **interface{}** | The price of this price tier, in cents. | [optional] **PriceAmountFloat** | Pointer to **interface{}** | The price of this price tier, float. | [optional] @@ -12,7 +13,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -69,6 +70,41 @@ HasName returns a boolean if a field has been set. `func (o *GETPriceTiersPriceTierId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetType + +`func (o *GETPriceTiersPriceTierId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETPriceTiersPriceTierId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETPriceTiersPriceTierId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETPriceTiersPriceTierId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETPriceTiersPriceTierId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETPriceTiersPriceTierId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetUpTo `func (o *GETPriceTiersPriceTierId200ResponseDataAttributes) GetUpTo() interface{}` diff --git a/api/docs/GETPriceTiersPriceTierId200ResponseDataRelationships.md b/api/docs/GETPriceTiersPriceTierId200ResponseDataRelationships.md index f888ef87..5c5b7be7 100644 --- a/api/docs/GETPriceTiersPriceTierId200ResponseDataRelationships.md +++ b/api/docs/GETPriceTiersPriceTierId200ResponseDataRelationships.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Price** | Pointer to [**POSTPriceFrequencyTiers201ResponseDataRelationshipsPrice**](POSTPriceFrequencyTiers201ResponseDataRelationshipsPrice.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -53,20 +54,20 @@ HasPrice returns a boolean if a field has been set. ### GetAttachments -`func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -76,6 +77,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes.md b/api/docs/GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes.md index ff493898..a8692f55 100644 --- a/api/docs/GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes.md +++ b/api/docs/GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The price tier's name | [optional] +**Name** | Pointer to **interface{}** | The price tier's name. | [optional] +**Type** | Pointer to **interface{}** | The price tier's type. | [optional] **UpTo** | Pointer to **interface{}** | The tier upper limit, expressed as the line item quantity. When 'null' it means infinity (useful to have an always matching tier). | [optional] **PriceAmountCents** | Pointer to **interface{}** | The price of this price tier, in cents. | [optional] **PriceAmountFloat** | Pointer to **interface{}** | The price of this price tier, float. | [optional] @@ -12,7 +13,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -69,6 +70,41 @@ HasName returns a boolean if a field has been set. `func (o *GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetType + +`func (o *GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetUpTo `func (o *GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes) GetUpTo() interface{}` diff --git a/api/docs/GETPricesPriceId200ResponseDataAttributes.md b/api/docs/GETPricesPriceId200ResponseDataAttributes.md index 63e96f64..6df2db05 100644 --- a/api/docs/GETPricesPriceId200ResponseDataAttributes.md +++ b/api/docs/GETPricesPriceId200ResponseDataAttributes.md @@ -9,13 +9,18 @@ Name | Type | Description | Notes **AmountCents** | Pointer to **interface{}** | The SKU price amount for the associated price list, in cents. | [optional] **AmountFloat** | Pointer to **interface{}** | The SKU price amount for the associated price list, float. | [optional] **FormattedAmount** | Pointer to **interface{}** | The SKU price amount for the associated price list, formatted. | [optional] +**OriginalAmountCents** | Pointer to **interface{}** | The SKU price amount for the associated price list, in cents before any applied rule. | [optional] +**FormattedOriginalAmount** | Pointer to **interface{}** | The SKU price amount for the associated price list, in cents before any applied rule, formatted. | [optional] **CompareAtAmountCents** | Pointer to **interface{}** | The compared price amount, in cents. Useful to display a percentage discount. | [optional] **CompareAtAmountFloat** | Pointer to **interface{}** | The compared price amount, float. | [optional] **FormattedCompareAtAmount** | Pointer to **interface{}** | The compared price amount, formatted. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Rules** | Pointer to **interface{}** | The rules (using Rules Engine) to be applied. | [optional] +**RuleOutcomes** | Pointer to **interface{}** | The rule outcomes. | [optional] +**JwtCustomClaim** | Pointer to **interface{}** | The custom_claim attached to the current JWT (if any). | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -212,6 +217,76 @@ HasFormattedAmount returns a boolean if a field has been set. `func (o *GETPricesPriceId200ResponseDataAttributes) UnsetFormattedAmount()` UnsetFormattedAmount ensures that no value is present for FormattedAmount, not even an explicit nil +### GetOriginalAmountCents + +`func (o *GETPricesPriceId200ResponseDataAttributes) GetOriginalAmountCents() interface{}` + +GetOriginalAmountCents returns the OriginalAmountCents field if non-nil, zero value otherwise. + +### GetOriginalAmountCentsOk + +`func (o *GETPricesPriceId200ResponseDataAttributes) GetOriginalAmountCentsOk() (*interface{}, bool)` + +GetOriginalAmountCentsOk returns a tuple with the OriginalAmountCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginalAmountCents + +`func (o *GETPricesPriceId200ResponseDataAttributes) SetOriginalAmountCents(v interface{})` + +SetOriginalAmountCents sets OriginalAmountCents field to given value. + +### HasOriginalAmountCents + +`func (o *GETPricesPriceId200ResponseDataAttributes) HasOriginalAmountCents() bool` + +HasOriginalAmountCents returns a boolean if a field has been set. + +### SetOriginalAmountCentsNil + +`func (o *GETPricesPriceId200ResponseDataAttributes) SetOriginalAmountCentsNil(b bool)` + + SetOriginalAmountCentsNil sets the value for OriginalAmountCents to be an explicit nil + +### UnsetOriginalAmountCents +`func (o *GETPricesPriceId200ResponseDataAttributes) UnsetOriginalAmountCents()` + +UnsetOriginalAmountCents ensures that no value is present for OriginalAmountCents, not even an explicit nil +### GetFormattedOriginalAmount + +`func (o *GETPricesPriceId200ResponseDataAttributes) GetFormattedOriginalAmount() interface{}` + +GetFormattedOriginalAmount returns the FormattedOriginalAmount field if non-nil, zero value otherwise. + +### GetFormattedOriginalAmountOk + +`func (o *GETPricesPriceId200ResponseDataAttributes) GetFormattedOriginalAmountOk() (*interface{}, bool)` + +GetFormattedOriginalAmountOk returns a tuple with the FormattedOriginalAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormattedOriginalAmount + +`func (o *GETPricesPriceId200ResponseDataAttributes) SetFormattedOriginalAmount(v interface{})` + +SetFormattedOriginalAmount sets FormattedOriginalAmount field to given value. + +### HasFormattedOriginalAmount + +`func (o *GETPricesPriceId200ResponseDataAttributes) HasFormattedOriginalAmount() bool` + +HasFormattedOriginalAmount returns a boolean if a field has been set. + +### SetFormattedOriginalAmountNil + +`func (o *GETPricesPriceId200ResponseDataAttributes) SetFormattedOriginalAmountNil(b bool)` + + SetFormattedOriginalAmountNil sets the value for FormattedOriginalAmount to be an explicit nil + +### UnsetFormattedOriginalAmount +`func (o *GETPricesPriceId200ResponseDataAttributes) UnsetFormattedOriginalAmount()` + +UnsetFormattedOriginalAmount ensures that no value is present for FormattedOriginalAmount, not even an explicit nil ### GetCompareAtAmountCents `func (o *GETPricesPriceId200ResponseDataAttributes) GetCompareAtAmountCents() interface{}` @@ -457,6 +532,111 @@ HasReferenceOrigin returns a boolean if a field has been set. `func (o *GETPricesPriceId200ResponseDataAttributes) UnsetReferenceOrigin()` UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetRules + +`func (o *GETPricesPriceId200ResponseDataAttributes) GetRules() interface{}` + +GetRules returns the Rules field if non-nil, zero value otherwise. + +### GetRulesOk + +`func (o *GETPricesPriceId200ResponseDataAttributes) GetRulesOk() (*interface{}, bool)` + +GetRulesOk returns a tuple with the Rules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRules + +`func (o *GETPricesPriceId200ResponseDataAttributes) SetRules(v interface{})` + +SetRules sets Rules field to given value. + +### HasRules + +`func (o *GETPricesPriceId200ResponseDataAttributes) HasRules() bool` + +HasRules returns a boolean if a field has been set. + +### SetRulesNil + +`func (o *GETPricesPriceId200ResponseDataAttributes) SetRulesNil(b bool)` + + SetRulesNil sets the value for Rules to be an explicit nil + +### UnsetRules +`func (o *GETPricesPriceId200ResponseDataAttributes) UnsetRules()` + +UnsetRules ensures that no value is present for Rules, not even an explicit nil +### GetRuleOutcomes + +`func (o *GETPricesPriceId200ResponseDataAttributes) GetRuleOutcomes() interface{}` + +GetRuleOutcomes returns the RuleOutcomes field if non-nil, zero value otherwise. + +### GetRuleOutcomesOk + +`func (o *GETPricesPriceId200ResponseDataAttributes) GetRuleOutcomesOk() (*interface{}, bool)` + +GetRuleOutcomesOk returns a tuple with the RuleOutcomes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuleOutcomes + +`func (o *GETPricesPriceId200ResponseDataAttributes) SetRuleOutcomes(v interface{})` + +SetRuleOutcomes sets RuleOutcomes field to given value. + +### HasRuleOutcomes + +`func (o *GETPricesPriceId200ResponseDataAttributes) HasRuleOutcomes() bool` + +HasRuleOutcomes returns a boolean if a field has been set. + +### SetRuleOutcomesNil + +`func (o *GETPricesPriceId200ResponseDataAttributes) SetRuleOutcomesNil(b bool)` + + SetRuleOutcomesNil sets the value for RuleOutcomes to be an explicit nil + +### UnsetRuleOutcomes +`func (o *GETPricesPriceId200ResponseDataAttributes) UnsetRuleOutcomes()` + +UnsetRuleOutcomes ensures that no value is present for RuleOutcomes, not even an explicit nil +### GetJwtCustomClaim + +`func (o *GETPricesPriceId200ResponseDataAttributes) GetJwtCustomClaim() interface{}` + +GetJwtCustomClaim returns the JwtCustomClaim field if non-nil, zero value otherwise. + +### GetJwtCustomClaimOk + +`func (o *GETPricesPriceId200ResponseDataAttributes) GetJwtCustomClaimOk() (*interface{}, bool)` + +GetJwtCustomClaimOk returns a tuple with the JwtCustomClaim field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtCustomClaim + +`func (o *GETPricesPriceId200ResponseDataAttributes) SetJwtCustomClaim(v interface{})` + +SetJwtCustomClaim sets JwtCustomClaim field to given value. + +### HasJwtCustomClaim + +`func (o *GETPricesPriceId200ResponseDataAttributes) HasJwtCustomClaim() bool` + +HasJwtCustomClaim returns a boolean if a field has been set. + +### SetJwtCustomClaimNil + +`func (o *GETPricesPriceId200ResponseDataAttributes) SetJwtCustomClaimNil(b bool)` + + SetJwtCustomClaimNil sets the value for JwtCustomClaim to be an explicit nil + +### UnsetJwtCustomClaim +`func (o *GETPricesPriceId200ResponseDataAttributes) UnsetJwtCustomClaim()` + +UnsetJwtCustomClaim ensures that no value is present for JwtCustomClaim, not even an explicit nil ### GetMetadata `func (o *GETPricesPriceId200ResponseDataAttributes) GetMetadata() interface{}` diff --git a/api/docs/GETPromotionRulesPromotionRuleId200ResponseData.md b/api/docs/GETPromotionRulesPromotionRuleId200ResponseData.md index f290c859..079de021 100644 --- a/api/docs/GETPromotionRulesPromotionRuleId200ResponseData.md +++ b/api/docs/GETPromotionRulesPromotionRuleId200ResponseData.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Id** | Pointer to **interface{}** | The resource's id | [optional] **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] -**Attributes** | Pointer to [**GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes**](GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTOrderAmountPromotionRules201ResponseDataRelationships**](POSTOrderAmountPromotionRules201ResponseDataRelationships.md) | | [optional] +**Attributes** | Pointer to [**GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes**](GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTCustomPromotionRules201ResponseDataRelationships**](POSTCustomPromotionRules201ResponseDataRelationships.md) | | [optional] ## Methods @@ -126,20 +126,20 @@ HasLinks returns a boolean if a field has been set. ### GetAttributes -`func (o *GETPromotionRulesPromotionRuleId200ResponseData) GetAttributes() GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes` +`func (o *GETPromotionRulesPromotionRuleId200ResponseData) GetAttributes() GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *GETPromotionRulesPromotionRuleId200ResponseData) GetAttributesOk() (*GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool)` +`func (o *GETPromotionRulesPromotionRuleId200ResponseData) GetAttributesOk() (*GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *GETPromotionRulesPromotionRuleId200ResponseData) SetAttributes(v GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes)` +`func (o *GETPromotionRulesPromotionRuleId200ResponseData) SetAttributes(v GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes)` SetAttributes sets Attributes field to given value. @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *GETPromotionRulesPromotionRuleId200ResponseData) GetRelationships() POSTOrderAmountPromotionRules201ResponseDataRelationships` +`func (o *GETPromotionRulesPromotionRuleId200ResponseData) GetRelationships() POSTCustomPromotionRules201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *GETPromotionRulesPromotionRuleId200ResponseData) GetRelationshipsOk() (*POSTOrderAmountPromotionRules201ResponseDataRelationships, bool)` +`func (o *GETPromotionRulesPromotionRuleId200ResponseData) GetRelationshipsOk() (*POSTCustomPromotionRules201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *GETPromotionRulesPromotionRuleId200ResponseData) SetRelationships(v POSTOrderAmountPromotionRules201ResponseDataRelationships)` +`func (o *GETPromotionRulesPromotionRuleId200ResponseData) SetRelationships(v POSTCustomPromotionRules201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/GETPromotionsPromotionId200ResponseData.md b/api/docs/GETPromotionsPromotionId200ResponseData.md index 5955c8aa..fe7c6b30 100644 --- a/api/docs/GETPromotionsPromotionId200ResponseData.md +++ b/api/docs/GETPromotionsPromotionId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes**](GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTExternalPromotions201ResponseDataRelationships**](POSTExternalPromotions201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTFreeShippingPromotions201ResponseDataRelationships**](POSTFreeShippingPromotions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *GETPromotionsPromotionId200ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships` +`func (o *GETPromotionsPromotionId200ResponseData) GetRelationships() POSTFreeShippingPromotions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *GETPromotionsPromotionId200ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool)` +`func (o *GETPromotionsPromotionId200ResponseData) GetRelationshipsOk() (*POSTFreeShippingPromotions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *GETPromotionsPromotionId200ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships)` +`func (o *GETPromotionsPromotionId200ResponseData) SetRelationships(v POSTFreeShippingPromotions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/GETRefundsRefundId200ResponseDataAttributes.md b/api/docs/GETRefundsRefundId200ResponseDataAttributes.md index 74668099..ccd21121 100644 --- a/api/docs/GETRefundsRefundId200ResponseDataAttributes.md +++ b/api/docs/GETRefundsRefundId200ResponseDataAttributes.md @@ -4,21 +4,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | Pointer to **interface{}** | The transaction number, auto generated | [optional] +**Number** | Pointer to **interface{}** | The transaction number, auto generated. | [optional] +**Type** | Pointer to **interface{}** | The transaction's type. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order. | [optional] **AmountCents** | Pointer to **interface{}** | The transaction amount, in cents. | [optional] **AmountFloat** | Pointer to **interface{}** | The transaction amount, float. | [optional] **FormattedAmount** | Pointer to **interface{}** | The transaction amount, formatted. | [optional] -**Succeeded** | Pointer to **interface{}** | Indicates if the transaction is successful | [optional] -**Message** | Pointer to **interface{}** | The message returned by the payment gateway | [optional] -**ErrorCode** | Pointer to **interface{}** | The error code, if any, returned by the payment gateway | [optional] -**ErrorDetail** | Pointer to **interface{}** | The error detail, if any, returned by the payment gateway | [optional] -**Token** | Pointer to **interface{}** | The token identifying the transaction, returned by the payment gateway | [optional] -**GatewayTransactionId** | Pointer to **interface{}** | The ID identifying the transaction, returned by the payment gateway | [optional] +**Succeeded** | Pointer to **interface{}** | Indicates if the transaction is successful. | [optional] +**Message** | Pointer to **interface{}** | The message returned by the payment gateway. | [optional] +**ErrorCode** | Pointer to **interface{}** | The error code, if any, returned by the payment gateway. | [optional] +**ErrorDetail** | Pointer to **interface{}** | The error detail, if any, returned by the payment gateway. | [optional] +**Token** | Pointer to **interface{}** | The token identifying the transaction, returned by the payment gateway. | [optional] +**GatewayTransactionId** | Pointer to **interface{}** | The ID identifying the transaction, returned by the payment gateway. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -75,6 +76,41 @@ HasNumber returns a boolean if a field has been set. `func (o *GETRefundsRefundId200ResponseDataAttributes) UnsetNumber()` UnsetNumber ensures that no value is present for Number, not even an explicit nil +### GetType + +`func (o *GETRefundsRefundId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETRefundsRefundId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETRefundsRefundId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETRefundsRefundId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETRefundsRefundId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETRefundsRefundId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetCurrencyCode `func (o *GETRefundsRefundId200ResponseDataAttributes) GetCurrencyCode() interface{}` diff --git a/api/docs/GETRefundsRefundId200ResponseDataRelationships.md b/api/docs/GETRefundsRefundId200ResponseDataRelationships.md index d9daa176..91a0b6b0 100644 --- a/api/docs/GETRefundsRefundId200ResponseDataRelationships.md +++ b/api/docs/GETRefundsRefundId200ResponseDataRelationships.md @@ -5,8 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Order** | Pointer to [**POSTAdyenPayments201ResponseDataRelationshipsOrder**](POSTAdyenPayments201ResponseDataRelationshipsOrder.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] **ReferenceCapture** | Pointer to [**GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture**](GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] +**Return** | Pointer to [**GETCapturesCaptureId200ResponseDataRelationshipsReturn**](GETCapturesCaptureId200ResponseDataRelationshipsReturn.md) | | [optional] ## Methods @@ -52,6 +55,81 @@ SetOrder sets Order field to given value. HasOrder returns a boolean if a field has been set. +### GetAttachments + +`func (o *GETRefundsRefundId200ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *GETRefundsRefundId200ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *GETRefundsRefundId200ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *GETRefundsRefundId200ResponseDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + +### GetEvents + +`func (o *GETRefundsRefundId200ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *GETRefundsRefundId200ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *GETRefundsRefundId200ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *GETRefundsRefundId200ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetVersions + +`func (o *GETRefundsRefundId200ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *GETRefundsRefundId200ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *GETRefundsRefundId200ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *GETRefundsRefundId200ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetReferenceCapture `func (o *GETRefundsRefundId200ResponseDataRelationships) GetReferenceCapture() GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture` @@ -77,30 +155,30 @@ SetReferenceCapture sets ReferenceCapture field to given value. HasReferenceCapture returns a boolean if a field has been set. -### GetEvents +### GetReturn -`func (o *GETRefundsRefundId200ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` +`func (o *GETRefundsRefundId200ResponseDataRelationships) GetReturn() GETCapturesCaptureId200ResponseDataRelationshipsReturn` -GetEvents returns the Events field if non-nil, zero value otherwise. +GetReturn returns the Return field if non-nil, zero value otherwise. -### GetEventsOk +### GetReturnOk -`func (o *GETRefundsRefundId200ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` +`func (o *GETRefundsRefundId200ResponseDataRelationships) GetReturnOk() (*GETCapturesCaptureId200ResponseDataRelationshipsReturn, bool)` -GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +GetReturnOk returns a tuple with the Return field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetEvents +### SetReturn -`func (o *GETRefundsRefundId200ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` +`func (o *GETRefundsRefundId200ResponseDataRelationships) SetReturn(v GETCapturesCaptureId200ResponseDataRelationshipsReturn)` -SetEvents sets Events field to given value. +SetReturn sets Return field to given value. -### HasEvents +### HasReturn -`func (o *GETRefundsRefundId200ResponseDataRelationships) HasEvents() bool` +`func (o *GETRefundsRefundId200ResponseDataRelationships) HasReturn() bool` -HasEvents returns a boolean if a field has been set. +HasReturn returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/GETReservedStocks200Response.md b/api/docs/GETReservedStocks200Response.md new file mode 100644 index 00000000..c7f0bafd --- /dev/null +++ b/api/docs/GETReservedStocks200Response.md @@ -0,0 +1,66 @@ +# GETReservedStocks200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewGETReservedStocks200Response + +`func NewGETReservedStocks200Response() *GETReservedStocks200Response` + +NewGETReservedStocks200Response instantiates a new GETReservedStocks200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETReservedStocks200ResponseWithDefaults + +`func NewGETReservedStocks200ResponseWithDefaults() *GETReservedStocks200Response` + +NewGETReservedStocks200ResponseWithDefaults instantiates a new GETReservedStocks200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETReservedStocks200Response) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETReservedStocks200Response) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETReservedStocks200Response) SetData(v interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETReservedStocks200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *GETReservedStocks200Response) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *GETReservedStocks200Response) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETReservedStocksReservedStockId200Response.md b/api/docs/GETReservedStocksReservedStockId200Response.md new file mode 100644 index 00000000..febd803e --- /dev/null +++ b/api/docs/GETReservedStocksReservedStockId200Response.md @@ -0,0 +1,56 @@ +# GETReservedStocksReservedStockId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**GETReservedStocksReservedStockId200ResponseData**](GETReservedStocksReservedStockId200ResponseData.md) | | [optional] + +## Methods + +### NewGETReservedStocksReservedStockId200Response + +`func NewGETReservedStocksReservedStockId200Response() *GETReservedStocksReservedStockId200Response` + +NewGETReservedStocksReservedStockId200Response instantiates a new GETReservedStocksReservedStockId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETReservedStocksReservedStockId200ResponseWithDefaults + +`func NewGETReservedStocksReservedStockId200ResponseWithDefaults() *GETReservedStocksReservedStockId200Response` + +NewGETReservedStocksReservedStockId200ResponseWithDefaults instantiates a new GETReservedStocksReservedStockId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETReservedStocksReservedStockId200Response) GetData() GETReservedStocksReservedStockId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETReservedStocksReservedStockId200Response) GetDataOk() (*GETReservedStocksReservedStockId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETReservedStocksReservedStockId200Response) SetData(v GETReservedStocksReservedStockId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETReservedStocksReservedStockId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETReservedStocksReservedStockId200ResponseData.md b/api/docs/GETReservedStocksReservedStockId200ResponseData.md new file mode 100644 index 00000000..21ebaf62 --- /dev/null +++ b/api/docs/GETReservedStocksReservedStockId200ResponseData.md @@ -0,0 +1,180 @@ +# GETReservedStocksReservedStockId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**GETReservedStocksReservedStockId200ResponseDataAttributes**](GETReservedStocksReservedStockId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**GETReservedStocksReservedStockId200ResponseDataRelationships**](GETReservedStocksReservedStockId200ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewGETReservedStocksReservedStockId200ResponseData + +`func NewGETReservedStocksReservedStockId200ResponseData() *GETReservedStocksReservedStockId200ResponseData` + +NewGETReservedStocksReservedStockId200ResponseData instantiates a new GETReservedStocksReservedStockId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETReservedStocksReservedStockId200ResponseDataWithDefaults + +`func NewGETReservedStocksReservedStockId200ResponseDataWithDefaults() *GETReservedStocksReservedStockId200ResponseData` + +NewGETReservedStocksReservedStockId200ResponseDataWithDefaults instantiates a new GETReservedStocksReservedStockId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *GETReservedStocksReservedStockId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GETReservedStocksReservedStockId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *GETReservedStocksReservedStockId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *GETReservedStocksReservedStockId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *GETReservedStocksReservedStockId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *GETReservedStocksReservedStockId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *GETReservedStocksReservedStockId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETReservedStocksReservedStockId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETReservedStocksReservedStockId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETReservedStocksReservedStockId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETReservedStocksReservedStockId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETReservedStocksReservedStockId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *GETReservedStocksReservedStockId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *GETReservedStocksReservedStockId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *GETReservedStocksReservedStockId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *GETReservedStocksReservedStockId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *GETReservedStocksReservedStockId200ResponseData) GetAttributes() GETReservedStocksReservedStockId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *GETReservedStocksReservedStockId200ResponseData) GetAttributesOk() (*GETReservedStocksReservedStockId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *GETReservedStocksReservedStockId200ResponseData) SetAttributes(v GETReservedStocksReservedStockId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *GETReservedStocksReservedStockId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *GETReservedStocksReservedStockId200ResponseData) GetRelationships() GETReservedStocksReservedStockId200ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *GETReservedStocksReservedStockId200ResponseData) GetRelationshipsOk() (*GETReservedStocksReservedStockId200ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *GETReservedStocksReservedStockId200ResponseData) SetRelationships(v GETReservedStocksReservedStockId200ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *GETReservedStocksReservedStockId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETReservedStocksReservedStockId200ResponseDataAttributes.md b/api/docs/GETReservedStocksReservedStockId200ResponseDataAttributes.md new file mode 100644 index 00000000..c3695b86 --- /dev/null +++ b/api/docs/GETReservedStocksReservedStockId200ResponseDataAttributes.md @@ -0,0 +1,246 @@ +# GETReservedStocksReservedStockId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Quantity** | Pointer to **interface{}** | The stock item reserved quantity. | [optional] +**CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] +**UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewGETReservedStocksReservedStockId200ResponseDataAttributes + +`func NewGETReservedStocksReservedStockId200ResponseDataAttributes() *GETReservedStocksReservedStockId200ResponseDataAttributes` + +NewGETReservedStocksReservedStockId200ResponseDataAttributes instantiates a new GETReservedStocksReservedStockId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETReservedStocksReservedStockId200ResponseDataAttributesWithDefaults + +`func NewGETReservedStocksReservedStockId200ResponseDataAttributesWithDefaults() *GETReservedStocksReservedStockId200ResponseDataAttributes` + +NewGETReservedStocksReservedStockId200ResponseDataAttributesWithDefaults instantiates a new GETReservedStocksReservedStockId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQuantity + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetQuantity() interface{}` + +GetQuantity returns the Quantity field if non-nil, zero value otherwise. + +### GetQuantityOk + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetQuantityOk() (*interface{}, bool)` + +GetQuantityOk returns a tuple with the Quantity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuantity + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) SetQuantity(v interface{})` + +SetQuantity sets Quantity field to given value. + +### HasQuantity + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) HasQuantity() bool` + +HasQuantity returns a boolean if a field has been set. + +### SetQuantityNil + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) SetQuantityNil(b bool)` + + SetQuantityNil sets the value for Quantity to be an explicit nil + +### UnsetQuantity +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) UnsetQuantity()` + +UnsetQuantity ensures that no value is present for Quantity, not even an explicit nil +### GetCreatedAt + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetCreatedAt() interface{}` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) SetCreatedAt(v interface{})` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### SetCreatedAtNil + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) SetCreatedAtNil(b bool)` + + SetCreatedAtNil sets the value for CreatedAt to be an explicit nil + +### UnsetCreatedAt +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) UnsetCreatedAt()` + +UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil +### GetUpdatedAt + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetUpdatedAt() interface{}` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) SetUpdatedAt(v interface{})` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### SetUpdatedAtNil + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) SetUpdatedAtNil(b bool)` + + SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil + +### UnsetUpdatedAt +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) UnsetUpdatedAt()` + +UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil +### GetReference + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETReservedStocksReservedStockId200ResponseDataRelationships.md b/api/docs/GETReservedStocksReservedStockId200ResponseDataRelationships.md new file mode 100644 index 00000000..f8bd6acd --- /dev/null +++ b/api/docs/GETReservedStocksReservedStockId200ResponseDataRelationships.md @@ -0,0 +1,134 @@ +# GETReservedStocksReservedStockId200ResponseDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StockItem** | Pointer to [**GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem**](GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem.md) | | [optional] +**Sku** | Pointer to [**POSTInStockSubscriptions201ResponseDataRelationshipsSku**](POSTInStockSubscriptions201ResponseDataRelationshipsSku.md) | | [optional] +**StockReservations** | Pointer to [**POSTLineItems201ResponseDataRelationshipsStockReservations**](POSTLineItems201ResponseDataRelationshipsStockReservations.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewGETReservedStocksReservedStockId200ResponseDataRelationships + +`func NewGETReservedStocksReservedStockId200ResponseDataRelationships() *GETReservedStocksReservedStockId200ResponseDataRelationships` + +NewGETReservedStocksReservedStockId200ResponseDataRelationships instantiates a new GETReservedStocksReservedStockId200ResponseDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETReservedStocksReservedStockId200ResponseDataRelationshipsWithDefaults + +`func NewGETReservedStocksReservedStockId200ResponseDataRelationshipsWithDefaults() *GETReservedStocksReservedStockId200ResponseDataRelationships` + +NewGETReservedStocksReservedStockId200ResponseDataRelationshipsWithDefaults instantiates a new GETReservedStocksReservedStockId200ResponseDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStockItem + +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) GetStockItem() GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem` + +GetStockItem returns the StockItem field if non-nil, zero value otherwise. + +### GetStockItemOk + +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) GetStockItemOk() (*GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem, bool)` + +GetStockItemOk returns a tuple with the StockItem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockItem + +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) SetStockItem(v GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem)` + +SetStockItem sets StockItem field to given value. + +### HasStockItem + +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) HasStockItem() bool` + +HasStockItem returns a boolean if a field has been set. + +### GetSku + +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) GetSku() POSTInStockSubscriptions201ResponseDataRelationshipsSku` + +GetSku returns the Sku field if non-nil, zero value otherwise. + +### GetSkuOk + +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) GetSkuOk() (*POSTInStockSubscriptions201ResponseDataRelationshipsSku, bool)` + +GetSkuOk returns a tuple with the Sku field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSku + +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) SetSku(v POSTInStockSubscriptions201ResponseDataRelationshipsSku)` + +SetSku sets Sku field to given value. + +### HasSku + +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) HasSku() bool` + +HasSku returns a boolean if a field has been set. + +### GetStockReservations + +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) GetStockReservations() POSTLineItems201ResponseDataRelationshipsStockReservations` + +GetStockReservations returns the StockReservations field if non-nil, zero value otherwise. + +### GetStockReservationsOk + +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) GetStockReservationsOk() (*POSTLineItems201ResponseDataRelationshipsStockReservations, bool)` + +GetStockReservationsOk returns a tuple with the StockReservations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockReservations + +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) SetStockReservations(v POSTLineItems201ResponseDataRelationshipsStockReservations)` + +SetStockReservations sets StockReservations field to given value. + +### HasStockReservations + +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) HasStockReservations() bool` + +HasStockReservations returns a boolean if a field has been set. + +### GetVersions + +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem.md b/api/docs/GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem.md similarity index 56% rename from api/docs/GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem.md rename to api/docs/GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem.md index 51f59bff..b141571c 100644 --- a/api/docs/GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem.md +++ b/api/docs/GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem.md @@ -1,78 +1,78 @@ -# GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem +# GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] -**Data** | Pointer to [**GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData**](GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData.md) | | [optional] +**Data** | Pointer to [**GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData**](GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData.md) | | [optional] ## Methods -### NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem +### NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem -`func NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem() *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem` +`func NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem() *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem` -NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem instantiates a new GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem object +NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem instantiates a new GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemWithDefaults +### NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemWithDefaults -`func NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemWithDefaults() *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem` +`func NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemWithDefaults() *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem` -NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemWithDefaults instantiates a new GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem object +NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemWithDefaults instantiates a new GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetLinks -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` GetLinks returns the Links field if non-nil, zero value otherwise. ### GetLinksOk -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLinks -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` SetLinks sets Links field to given value. ### HasLinks -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) HasLinks() bool` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) HasLinks() bool` HasLinks returns a boolean if a field has been set. ### GetData -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) GetData() GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) GetData() GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) GetDataOk() (*GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData, bool)` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) GetDataOk() (*GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) SetData(v GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData)` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) SetData(v GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData)` SetData sets Data field to given value. ### HasData -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) HasData() bool` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) HasData() bool` HasData returns a boolean if a field has been set. diff --git a/api/docs/GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData.md b/api/docs/GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData.md similarity index 61% rename from api/docs/GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData.md rename to api/docs/GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData.md index 41981cf1..17fdf58d 100644 --- a/api/docs/GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData.md +++ b/api/docs/GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData.md @@ -1,4 +1,4 @@ -# GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData +# GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData +### NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData -`func NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData() *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData` +`func NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData() *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData` -NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData instantiates a new GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData object +NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData instantiates a new GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemDataWithDefaults +### NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemDataWithDefaults -`func NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemDataWithDefaults() *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData` +`func NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemDataWithDefaults() *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData` -NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemDataWithDefaults instantiates a new GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData object +NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemDataWithDefaults instantiates a new GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) GetType() interface{}` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) GetTypeOk() (*interface{}, bool)` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) SetType(v interface{})` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) HasType() bool` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) SetTypeNil(b bool)` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) UnsetType()` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) GetId() interface{}` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) GetIdOk() (*interface{}, bool)` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) SetId(v interface{})` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) HasId() bool` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) SetIdNil(b bool)` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) UnsetId()` +`func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/GETResourceErrors200Response.md b/api/docs/GETResourceErrors200Response.md new file mode 100644 index 00000000..27018d66 --- /dev/null +++ b/api/docs/GETResourceErrors200Response.md @@ -0,0 +1,66 @@ +# GETResourceErrors200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewGETResourceErrors200Response + +`func NewGETResourceErrors200Response() *GETResourceErrors200Response` + +NewGETResourceErrors200Response instantiates a new GETResourceErrors200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETResourceErrors200ResponseWithDefaults + +`func NewGETResourceErrors200ResponseWithDefaults() *GETResourceErrors200Response` + +NewGETResourceErrors200ResponseWithDefaults instantiates a new GETResourceErrors200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETResourceErrors200Response) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETResourceErrors200Response) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETResourceErrors200Response) SetData(v interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETResourceErrors200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *GETResourceErrors200Response) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *GETResourceErrors200Response) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETResourceErrorsResourceErrorId200Response.md b/api/docs/GETResourceErrorsResourceErrorId200Response.md new file mode 100644 index 00000000..c6b51574 --- /dev/null +++ b/api/docs/GETResourceErrorsResourceErrorId200Response.md @@ -0,0 +1,56 @@ +# GETResourceErrorsResourceErrorId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**GETResourceErrorsResourceErrorId200ResponseData**](GETResourceErrorsResourceErrorId200ResponseData.md) | | [optional] + +## Methods + +### NewGETResourceErrorsResourceErrorId200Response + +`func NewGETResourceErrorsResourceErrorId200Response() *GETResourceErrorsResourceErrorId200Response` + +NewGETResourceErrorsResourceErrorId200Response instantiates a new GETResourceErrorsResourceErrorId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETResourceErrorsResourceErrorId200ResponseWithDefaults + +`func NewGETResourceErrorsResourceErrorId200ResponseWithDefaults() *GETResourceErrorsResourceErrorId200Response` + +NewGETResourceErrorsResourceErrorId200ResponseWithDefaults instantiates a new GETResourceErrorsResourceErrorId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETResourceErrorsResourceErrorId200Response) GetData() GETResourceErrorsResourceErrorId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETResourceErrorsResourceErrorId200Response) GetDataOk() (*GETResourceErrorsResourceErrorId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETResourceErrorsResourceErrorId200Response) SetData(v GETResourceErrorsResourceErrorId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETResourceErrorsResourceErrorId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETResourceErrorsResourceErrorId200ResponseData.md b/api/docs/GETResourceErrorsResourceErrorId200ResponseData.md new file mode 100644 index 00000000..2e70a6db --- /dev/null +++ b/api/docs/GETResourceErrorsResourceErrorId200ResponseData.md @@ -0,0 +1,180 @@ +# GETResourceErrorsResourceErrorId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**GETResourceErrorsResourceErrorId200ResponseDataAttributes**](GETResourceErrorsResourceErrorId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**GETResourceErrorsResourceErrorId200ResponseDataRelationships**](GETResourceErrorsResourceErrorId200ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewGETResourceErrorsResourceErrorId200ResponseData + +`func NewGETResourceErrorsResourceErrorId200ResponseData() *GETResourceErrorsResourceErrorId200ResponseData` + +NewGETResourceErrorsResourceErrorId200ResponseData instantiates a new GETResourceErrorsResourceErrorId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETResourceErrorsResourceErrorId200ResponseDataWithDefaults + +`func NewGETResourceErrorsResourceErrorId200ResponseDataWithDefaults() *GETResourceErrorsResourceErrorId200ResponseData` + +NewGETResourceErrorsResourceErrorId200ResponseDataWithDefaults instantiates a new GETResourceErrorsResourceErrorId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *GETResourceErrorsResourceErrorId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETResourceErrorsResourceErrorId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) GetAttributes() GETResourceErrorsResourceErrorId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) GetAttributesOk() (*GETResourceErrorsResourceErrorId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) SetAttributes(v GETResourceErrorsResourceErrorId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) GetRelationships() GETResourceErrorsResourceErrorId200ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) GetRelationshipsOk() (*GETResourceErrorsResourceErrorId200ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) SetRelationships(v GETResourceErrorsResourceErrorId200ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *GETResourceErrorsResourceErrorId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETResourceErrorsResourceErrorId200ResponseDataAttributes.md b/api/docs/GETResourceErrorsResourceErrorId200ResponseDataAttributes.md new file mode 100644 index 00000000..40e23ea8 --- /dev/null +++ b/api/docs/GETResourceErrorsResourceErrorId200ResponseDataAttributes.md @@ -0,0 +1,318 @@ +# GETResourceErrorsResourceErrorId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **interface{}** | The resource attribute name related to the error. | [optional] +**Code** | Pointer to **interface{}** | The error code. | [optional] +**Message** | Pointer to **interface{}** | The error message. | [optional] +**CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] +**UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewGETResourceErrorsResourceErrorId200ResponseDataAttributes + +`func NewGETResourceErrorsResourceErrorId200ResponseDataAttributes() *GETResourceErrorsResourceErrorId200ResponseDataAttributes` + +NewGETResourceErrorsResourceErrorId200ResponseDataAttributes instantiates a new GETResourceErrorsResourceErrorId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETResourceErrorsResourceErrorId200ResponseDataAttributesWithDefaults + +`func NewGETResourceErrorsResourceErrorId200ResponseDataAttributesWithDefaults() *GETResourceErrorsResourceErrorId200ResponseDataAttributes` + +NewGETResourceErrorsResourceErrorId200ResponseDataAttributesWithDefaults instantiates a new GETResourceErrorsResourceErrorId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + +### HasName + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCode + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetCode() interface{}` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetCode(v interface{})` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### SetCodeNil + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil +### GetMessage + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetMessage() interface{}` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetMessageOk() (*interface{}, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetMessage(v interface{})` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### SetMessageNil + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetMessageNil(b bool)` + + SetMessageNil sets the value for Message to be an explicit nil + +### UnsetMessage +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) UnsetMessage()` + +UnsetMessage ensures that no value is present for Message, not even an explicit nil +### GetCreatedAt + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetCreatedAt() interface{}` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetCreatedAt(v interface{})` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### SetCreatedAtNil + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetCreatedAtNil(b bool)` + + SetCreatedAtNil sets the value for CreatedAt to be an explicit nil + +### UnsetCreatedAt +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) UnsetCreatedAt()` + +UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil +### GetUpdatedAt + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetUpdatedAt() interface{}` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetUpdatedAt(v interface{})` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### SetUpdatedAtNil + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetUpdatedAtNil(b bool)` + + SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil + +### UnsetUpdatedAt +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) UnsetUpdatedAt()` + +UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil +### GetReference + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETResourceErrorsResourceErrorId200ResponseDataRelationships.md b/api/docs/GETResourceErrorsResourceErrorId200ResponseDataRelationships.md new file mode 100644 index 00000000..4492d62f --- /dev/null +++ b/api/docs/GETResourceErrorsResourceErrorId200ResponseDataRelationships.md @@ -0,0 +1,56 @@ +# GETResourceErrorsResourceErrorId200ResponseDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Resource** | Pointer to [**GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource**](GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource.md) | | [optional] + +## Methods + +### NewGETResourceErrorsResourceErrorId200ResponseDataRelationships + +`func NewGETResourceErrorsResourceErrorId200ResponseDataRelationships() *GETResourceErrorsResourceErrorId200ResponseDataRelationships` + +NewGETResourceErrorsResourceErrorId200ResponseDataRelationships instantiates a new GETResourceErrorsResourceErrorId200ResponseDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsWithDefaults + +`func NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsWithDefaults() *GETResourceErrorsResourceErrorId200ResponseDataRelationships` + +NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsWithDefaults instantiates a new GETResourceErrorsResourceErrorId200ResponseDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResource + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationships) GetResource() GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource` + +GetResource returns the Resource field if non-nil, zero value otherwise. + +### GetResourceOk + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationships) GetResourceOk() (*GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource, bool)` + +GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResource + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationships) SetResource(v GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource)` + +SetResource sets Resource field to given value. + +### HasResource + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationships) HasResource() bool` + +HasResource returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource.md b/api/docs/GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource.md new file mode 100644 index 00000000..e5280a53 --- /dev/null +++ b/api/docs/GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource.md @@ -0,0 +1,82 @@ +# GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData**](GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData.md) | | [optional] + +## Methods + +### NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource + +`func NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource() *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource` + +NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource instantiates a new GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceWithDefaults + +`func NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceWithDefaults() *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource` + +NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceWithDefaults instantiates a new GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) GetData() GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) GetDataOk() (*GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) SetData(v GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData.md b/api/docs/GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData.md new file mode 100644 index 00000000..154a47a9 --- /dev/null +++ b/api/docs/GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData.md @@ -0,0 +1,102 @@ +# GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData + +`func NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData() *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData` + +NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData instantiates a new GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceDataWithDefaults + +`func NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceDataWithDefaults() *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData` + +NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceDataWithDefaults instantiates a new GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETReturnLineItemsReturnLineItemId200ResponseDataAttributes.md b/api/docs/GETReturnLineItemsReturnLineItemId200ResponseDataAttributes.md index 8eacaf91..bd6ee421 100644 --- a/api/docs/GETReturnLineItemsReturnLineItemId200ResponseDataAttributes.md +++ b/api/docs/GETReturnLineItemsReturnLineItemId200ResponseDataAttributes.md @@ -6,14 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SkuCode** | Pointer to **interface{}** | The code of the associated SKU. | [optional] **BundleCode** | Pointer to **interface{}** | The code of the associated bundle. | [optional] +**Quantity** | Pointer to **interface{}** | The return line item quantity. | [optional] **Name** | Pointer to **interface{}** | The name of the line item. | [optional] -**Quantity** | Pointer to **interface{}** | The line item quantity. | [optional] +**ImageUrl** | Pointer to **interface{}** | The image_url of the associated line item. | [optional] +**TotalAmountCents** | Pointer to **interface{}** | Calculated as line item unit amount x returned quantity and applied discounts, if any. | [optional] +**TotalAmountFloat** | Pointer to **interface{}** | The return line item total amount, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce. | [optional] +**FormattedTotalAmount** | Pointer to **interface{}** | The return line item total amount, formatted. This can be useful to display the amount with currency in you views. | [optional] **ReturnReason** | Pointer to **interface{}** | Set of key-value pairs that you can use to add details about return reason. | [optional] **RestockedAt** | Pointer to **interface{}** | Time at which the return line item was restocked. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -105,6 +109,41 @@ HasBundleCode returns a boolean if a field has been set. `func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) UnsetBundleCode()` UnsetBundleCode ensures that no value is present for BundleCode, not even an explicit nil +### GetQuantity + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetQuantity() interface{}` + +GetQuantity returns the Quantity field if non-nil, zero value otherwise. + +### GetQuantityOk + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetQuantityOk() (*interface{}, bool)` + +GetQuantityOk returns a tuple with the Quantity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuantity + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetQuantity(v interface{})` + +SetQuantity sets Quantity field to given value. + +### HasQuantity + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) HasQuantity() bool` + +HasQuantity returns a boolean if a field has been set. + +### SetQuantityNil + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetQuantityNil(b bool)` + + SetQuantityNil sets the value for Quantity to be an explicit nil + +### UnsetQuantity +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) UnsetQuantity()` + +UnsetQuantity ensures that no value is present for Quantity, not even an explicit nil ### GetName `func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetName() interface{}` @@ -140,41 +179,146 @@ HasName returns a boolean if a field has been set. `func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil -### GetQuantity +### GetImageUrl -`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetQuantity() interface{}` +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetImageUrl() interface{}` -GetQuantity returns the Quantity field if non-nil, zero value otherwise. +GetImageUrl returns the ImageUrl field if non-nil, zero value otherwise. -### GetQuantityOk +### GetImageUrlOk -`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetQuantityOk() (*interface{}, bool)` +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetImageUrlOk() (*interface{}, bool)` -GetQuantityOk returns a tuple with the Quantity field if it's non-nil, zero value otherwise +GetImageUrlOk returns a tuple with the ImageUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetQuantity +### SetImageUrl -`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetQuantity(v interface{})` +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetImageUrl(v interface{})` -SetQuantity sets Quantity field to given value. +SetImageUrl sets ImageUrl field to given value. -### HasQuantity +### HasImageUrl -`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) HasQuantity() bool` +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) HasImageUrl() bool` -HasQuantity returns a boolean if a field has been set. +HasImageUrl returns a boolean if a field has been set. -### SetQuantityNil +### SetImageUrlNil -`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetQuantityNil(b bool)` +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetImageUrlNil(b bool)` - SetQuantityNil sets the value for Quantity to be an explicit nil + SetImageUrlNil sets the value for ImageUrl to be an explicit nil -### UnsetQuantity -`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) UnsetQuantity()` +### UnsetImageUrl +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) UnsetImageUrl()` -UnsetQuantity ensures that no value is present for Quantity, not even an explicit nil +UnsetImageUrl ensures that no value is present for ImageUrl, not even an explicit nil +### GetTotalAmountCents + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetTotalAmountCents() interface{}` + +GetTotalAmountCents returns the TotalAmountCents field if non-nil, zero value otherwise. + +### GetTotalAmountCentsOk + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetTotalAmountCentsOk() (*interface{}, bool)` + +GetTotalAmountCentsOk returns a tuple with the TotalAmountCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalAmountCents + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetTotalAmountCents(v interface{})` + +SetTotalAmountCents sets TotalAmountCents field to given value. + +### HasTotalAmountCents + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) HasTotalAmountCents() bool` + +HasTotalAmountCents returns a boolean if a field has been set. + +### SetTotalAmountCentsNil + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetTotalAmountCentsNil(b bool)` + + SetTotalAmountCentsNil sets the value for TotalAmountCents to be an explicit nil + +### UnsetTotalAmountCents +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) UnsetTotalAmountCents()` + +UnsetTotalAmountCents ensures that no value is present for TotalAmountCents, not even an explicit nil +### GetTotalAmountFloat + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetTotalAmountFloat() interface{}` + +GetTotalAmountFloat returns the TotalAmountFloat field if non-nil, zero value otherwise. + +### GetTotalAmountFloatOk + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetTotalAmountFloatOk() (*interface{}, bool)` + +GetTotalAmountFloatOk returns a tuple with the TotalAmountFloat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalAmountFloat + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetTotalAmountFloat(v interface{})` + +SetTotalAmountFloat sets TotalAmountFloat field to given value. + +### HasTotalAmountFloat + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) HasTotalAmountFloat() bool` + +HasTotalAmountFloat returns a boolean if a field has been set. + +### SetTotalAmountFloatNil + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetTotalAmountFloatNil(b bool)` + + SetTotalAmountFloatNil sets the value for TotalAmountFloat to be an explicit nil + +### UnsetTotalAmountFloat +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) UnsetTotalAmountFloat()` + +UnsetTotalAmountFloat ensures that no value is present for TotalAmountFloat, not even an explicit nil +### GetFormattedTotalAmount + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetFormattedTotalAmount() interface{}` + +GetFormattedTotalAmount returns the FormattedTotalAmount field if non-nil, zero value otherwise. + +### GetFormattedTotalAmountOk + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetFormattedTotalAmountOk() (*interface{}, bool)` + +GetFormattedTotalAmountOk returns a tuple with the FormattedTotalAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormattedTotalAmount + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetFormattedTotalAmount(v interface{})` + +SetFormattedTotalAmount sets FormattedTotalAmount field to given value. + +### HasFormattedTotalAmount + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) HasFormattedTotalAmount() bool` + +HasFormattedTotalAmount returns a boolean if a field has been set. + +### SetFormattedTotalAmountNil + +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetFormattedTotalAmountNil(b bool)` + + SetFormattedTotalAmountNil sets the value for FormattedTotalAmount to be an explicit nil + +### UnsetFormattedTotalAmount +`func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) UnsetFormattedTotalAmount()` + +UnsetFormattedTotalAmount ensures that no value is present for FormattedTotalAmount, not even an explicit nil ### GetReturnReason `func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetReturnReason() interface{}` diff --git a/api/docs/GETReturnsReturnId200ResponseDataAttributes.md b/api/docs/GETReturnsReturnId200ResponseDataAttributes.md index d380c986..2881a43e 100644 --- a/api/docs/GETReturnsReturnId200ResponseDataAttributes.md +++ b/api/docs/GETReturnsReturnId200ResponseDataAttributes.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | Pointer to **interface{}** | Unique identifier for the return | [optional] -**Status** | Pointer to **interface{}** | The return status, one of 'draft', 'requested', 'approved', 'cancelled', 'shipped', 'rejected' or 'received' | [optional] +**Number** | Pointer to **interface{}** | Unique identifier for the return. | [optional] +**Status** | Pointer to **interface{}** | The return status. One of 'draft' (default), 'requested', 'approved', 'cancelled', 'shipped', 'rejected', 'received', or 'refunded'. | [optional] **CustomerEmail** | Pointer to **interface{}** | The email address of the associated customer. | [optional] **SkusCount** | Pointer to **interface{}** | The total number of SKUs in the return's line items. This can be useful to display a preview of the return content. | [optional] **ApprovedAt** | Pointer to **interface{}** | Time at which the return was approved. | [optional] @@ -13,11 +13,15 @@ Name | Type | Description | Notes **ShippedAt** | Pointer to **interface{}** | Time at which the return was shipped. | [optional] **RejectedAt** | Pointer to **interface{}** | Time at which the return was rejected. | [optional] **ReceivedAt** | Pointer to **interface{}** | Time at which the return was received. | [optional] +**RefundedAt** | Pointer to **interface{}** | Time at which the return was refunded. | [optional] **ArchivedAt** | Pointer to **interface{}** | Time at which the resource has been archived. | [optional] +**EstimatedRefundAmountCents** | Pointer to **interface{}** | The amount to be refunded, estimated by associated return line items, in cents. | [optional] +**EstimatedRefundAmountFloat** | Pointer to **interface{}** | The amount to be refunded, estimated by associated return line items, float. | [optional] +**FormattedEstimatedRefundAmount** | Pointer to **interface{}** | The amount to be refunded, estimated by associated return line items, formatted. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -354,6 +358,41 @@ HasReceivedAt returns a boolean if a field has been set. `func (o *GETReturnsReturnId200ResponseDataAttributes) UnsetReceivedAt()` UnsetReceivedAt ensures that no value is present for ReceivedAt, not even an explicit nil +### GetRefundedAt + +`func (o *GETReturnsReturnId200ResponseDataAttributes) GetRefundedAt() interface{}` + +GetRefundedAt returns the RefundedAt field if non-nil, zero value otherwise. + +### GetRefundedAtOk + +`func (o *GETReturnsReturnId200ResponseDataAttributes) GetRefundedAtOk() (*interface{}, bool)` + +GetRefundedAtOk returns a tuple with the RefundedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRefundedAt + +`func (o *GETReturnsReturnId200ResponseDataAttributes) SetRefundedAt(v interface{})` + +SetRefundedAt sets RefundedAt field to given value. + +### HasRefundedAt + +`func (o *GETReturnsReturnId200ResponseDataAttributes) HasRefundedAt() bool` + +HasRefundedAt returns a boolean if a field has been set. + +### SetRefundedAtNil + +`func (o *GETReturnsReturnId200ResponseDataAttributes) SetRefundedAtNil(b bool)` + + SetRefundedAtNil sets the value for RefundedAt to be an explicit nil + +### UnsetRefundedAt +`func (o *GETReturnsReturnId200ResponseDataAttributes) UnsetRefundedAt()` + +UnsetRefundedAt ensures that no value is present for RefundedAt, not even an explicit nil ### GetArchivedAt `func (o *GETReturnsReturnId200ResponseDataAttributes) GetArchivedAt() interface{}` @@ -389,6 +428,111 @@ HasArchivedAt returns a boolean if a field has been set. `func (o *GETReturnsReturnId200ResponseDataAttributes) UnsetArchivedAt()` UnsetArchivedAt ensures that no value is present for ArchivedAt, not even an explicit nil +### GetEstimatedRefundAmountCents + +`func (o *GETReturnsReturnId200ResponseDataAttributes) GetEstimatedRefundAmountCents() interface{}` + +GetEstimatedRefundAmountCents returns the EstimatedRefundAmountCents field if non-nil, zero value otherwise. + +### GetEstimatedRefundAmountCentsOk + +`func (o *GETReturnsReturnId200ResponseDataAttributes) GetEstimatedRefundAmountCentsOk() (*interface{}, bool)` + +GetEstimatedRefundAmountCentsOk returns a tuple with the EstimatedRefundAmountCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEstimatedRefundAmountCents + +`func (o *GETReturnsReturnId200ResponseDataAttributes) SetEstimatedRefundAmountCents(v interface{})` + +SetEstimatedRefundAmountCents sets EstimatedRefundAmountCents field to given value. + +### HasEstimatedRefundAmountCents + +`func (o *GETReturnsReturnId200ResponseDataAttributes) HasEstimatedRefundAmountCents() bool` + +HasEstimatedRefundAmountCents returns a boolean if a field has been set. + +### SetEstimatedRefundAmountCentsNil + +`func (o *GETReturnsReturnId200ResponseDataAttributes) SetEstimatedRefundAmountCentsNil(b bool)` + + SetEstimatedRefundAmountCentsNil sets the value for EstimatedRefundAmountCents to be an explicit nil + +### UnsetEstimatedRefundAmountCents +`func (o *GETReturnsReturnId200ResponseDataAttributes) UnsetEstimatedRefundAmountCents()` + +UnsetEstimatedRefundAmountCents ensures that no value is present for EstimatedRefundAmountCents, not even an explicit nil +### GetEstimatedRefundAmountFloat + +`func (o *GETReturnsReturnId200ResponseDataAttributes) GetEstimatedRefundAmountFloat() interface{}` + +GetEstimatedRefundAmountFloat returns the EstimatedRefundAmountFloat field if non-nil, zero value otherwise. + +### GetEstimatedRefundAmountFloatOk + +`func (o *GETReturnsReturnId200ResponseDataAttributes) GetEstimatedRefundAmountFloatOk() (*interface{}, bool)` + +GetEstimatedRefundAmountFloatOk returns a tuple with the EstimatedRefundAmountFloat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEstimatedRefundAmountFloat + +`func (o *GETReturnsReturnId200ResponseDataAttributes) SetEstimatedRefundAmountFloat(v interface{})` + +SetEstimatedRefundAmountFloat sets EstimatedRefundAmountFloat field to given value. + +### HasEstimatedRefundAmountFloat + +`func (o *GETReturnsReturnId200ResponseDataAttributes) HasEstimatedRefundAmountFloat() bool` + +HasEstimatedRefundAmountFloat returns a boolean if a field has been set. + +### SetEstimatedRefundAmountFloatNil + +`func (o *GETReturnsReturnId200ResponseDataAttributes) SetEstimatedRefundAmountFloatNil(b bool)` + + SetEstimatedRefundAmountFloatNil sets the value for EstimatedRefundAmountFloat to be an explicit nil + +### UnsetEstimatedRefundAmountFloat +`func (o *GETReturnsReturnId200ResponseDataAttributes) UnsetEstimatedRefundAmountFloat()` + +UnsetEstimatedRefundAmountFloat ensures that no value is present for EstimatedRefundAmountFloat, not even an explicit nil +### GetFormattedEstimatedRefundAmount + +`func (o *GETReturnsReturnId200ResponseDataAttributes) GetFormattedEstimatedRefundAmount() interface{}` + +GetFormattedEstimatedRefundAmount returns the FormattedEstimatedRefundAmount field if non-nil, zero value otherwise. + +### GetFormattedEstimatedRefundAmountOk + +`func (o *GETReturnsReturnId200ResponseDataAttributes) GetFormattedEstimatedRefundAmountOk() (*interface{}, bool)` + +GetFormattedEstimatedRefundAmountOk returns a tuple with the FormattedEstimatedRefundAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormattedEstimatedRefundAmount + +`func (o *GETReturnsReturnId200ResponseDataAttributes) SetFormattedEstimatedRefundAmount(v interface{})` + +SetFormattedEstimatedRefundAmount sets FormattedEstimatedRefundAmount field to given value. + +### HasFormattedEstimatedRefundAmount + +`func (o *GETReturnsReturnId200ResponseDataAttributes) HasFormattedEstimatedRefundAmount() bool` + +HasFormattedEstimatedRefundAmount returns a boolean if a field has been set. + +### SetFormattedEstimatedRefundAmountNil + +`func (o *GETReturnsReturnId200ResponseDataAttributes) SetFormattedEstimatedRefundAmountNil(b bool)` + + SetFormattedEstimatedRefundAmountNil sets the value for FormattedEstimatedRefundAmount to be an explicit nil + +### UnsetFormattedEstimatedRefundAmount +`func (o *GETReturnsReturnId200ResponseDataAttributes) UnsetFormattedEstimatedRefundAmount()` + +UnsetFormattedEstimatedRefundAmount ensures that no value is present for FormattedEstimatedRefundAmount, not even an explicit nil ### GetCreatedAt `func (o *GETReturnsReturnId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes.md b/api/docs/GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes.md index 641a3dea..dad00b0a 100644 --- a/api/docs/GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes.md +++ b/api/docs/GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes.md @@ -8,8 +8,10 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] +**Token** | Pointer to **interface{}** | Activation code generated from the Satispay Dashboard. | [optional] +**KeyId** | Pointer to **interface{}** | The Satispay API key auto generated basing on activation code. | [optional] **WebhookEndpointUrl** | Pointer to **interface{}** | The gateway webhook URL, generated automatically. | [optional] ## Methods @@ -241,6 +243,76 @@ HasMetadata returns a boolean if a field has been set. `func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) UnsetMetadata()` UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil +### GetToken + +`func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) GetToken() interface{}` + +GetToken returns the Token field if non-nil, zero value otherwise. + +### GetTokenOk + +`func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) GetTokenOk() (*interface{}, bool)` + +GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToken + +`func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) SetToken(v interface{})` + +SetToken sets Token field to given value. + +### HasToken + +`func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) HasToken() bool` + +HasToken returns a boolean if a field has been set. + +### SetTokenNil + +`func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) SetTokenNil(b bool)` + + SetTokenNil sets the value for Token to be an explicit nil + +### UnsetToken +`func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) UnsetToken()` + +UnsetToken ensures that no value is present for Token, not even an explicit nil +### GetKeyId + +`func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) GetKeyId() interface{}` + +GetKeyId returns the KeyId field if non-nil, zero value otherwise. + +### GetKeyIdOk + +`func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) GetKeyIdOk() (*interface{}, bool)` + +GetKeyIdOk returns a tuple with the KeyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyId + +`func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) SetKeyId(v interface{})` + +SetKeyId sets KeyId field to given value. + +### HasKeyId + +`func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) HasKeyId() bool` + +HasKeyId returns a boolean if a field has been set. + +### SetKeyIdNil + +`func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) SetKeyIdNil(b bool)` + + SetKeyIdNil sets the value for KeyId to be an explicit nil + +### UnsetKeyId +`func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) UnsetKeyId()` + +UnsetKeyId ensures that no value is present for KeyId, not even an explicit nil ### GetWebhookEndpointUrl `func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) GetWebhookEndpointUrl() interface{}` diff --git a/api/docs/GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes.md b/api/docs/GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes.md index 9fdf4639..3d9c64de 100644 --- a/api/docs/GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes.md +++ b/api/docs/GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes.md @@ -4,14 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Token** | Pointer to **interface{}** | Activation code generated from the Satispay Dashboard. | [optional] -**KeyId** | Pointer to **interface{}** | The Satispay API key auto generated basing on activation code. | [optional] **PaymentId** | Pointer to **interface{}** | The payment unique identifier. | [optional] +**Flow** | Pointer to **interface{}** | The Satispay payment flow, inspect gateway API details for more information. | [optional] +**Status** | Pointer to **interface{}** | The Satispay payment status. | [optional] **RedirectUrl** | Pointer to **interface{}** | The url to redirect the customer after the payment flow is completed. | [optional] +**PaymentUrl** | Pointer to **interface{}** | Redirect url to the payment page. | [optional] +**PaymentResponse** | Pointer to **interface{}** | The Satispay payment response, used to fetch internal data. | [optional] +**PaymentInstrument** | Pointer to **interface{}** | Information about the payment instrument used in the transaction. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -33,111 +36,111 @@ NewGETSatispayPaymentsSatispayPaymentId200ResponseDataAttributesWithDefaults ins This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetToken +### GetPaymentId -`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetToken() interface{}` +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentId() interface{}` -GetToken returns the Token field if non-nil, zero value otherwise. +GetPaymentId returns the PaymentId field if non-nil, zero value otherwise. -### GetTokenOk +### GetPaymentIdOk -`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetTokenOk() (*interface{}, bool)` +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentIdOk() (*interface{}, bool)` -GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise +GetPaymentIdOk returns a tuple with the PaymentId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetToken +### SetPaymentId -`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetToken(v interface{})` +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetPaymentId(v interface{})` -SetToken sets Token field to given value. +SetPaymentId sets PaymentId field to given value. -### HasToken +### HasPaymentId -`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) HasToken() bool` +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) HasPaymentId() bool` -HasToken returns a boolean if a field has been set. +HasPaymentId returns a boolean if a field has been set. -### SetTokenNil +### SetPaymentIdNil -`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetTokenNil(b bool)` +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetPaymentIdNil(b bool)` - SetTokenNil sets the value for Token to be an explicit nil + SetPaymentIdNil sets the value for PaymentId to be an explicit nil -### UnsetToken -`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) UnsetToken()` +### UnsetPaymentId +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) UnsetPaymentId()` -UnsetToken ensures that no value is present for Token, not even an explicit nil -### GetKeyId +UnsetPaymentId ensures that no value is present for PaymentId, not even an explicit nil +### GetFlow -`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetKeyId() interface{}` +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetFlow() interface{}` -GetKeyId returns the KeyId field if non-nil, zero value otherwise. +GetFlow returns the Flow field if non-nil, zero value otherwise. -### GetKeyIdOk +### GetFlowOk -`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetKeyIdOk() (*interface{}, bool)` +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetFlowOk() (*interface{}, bool)` -GetKeyIdOk returns a tuple with the KeyId field if it's non-nil, zero value otherwise +GetFlowOk returns a tuple with the Flow field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetKeyId +### SetFlow -`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetKeyId(v interface{})` +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetFlow(v interface{})` -SetKeyId sets KeyId field to given value. +SetFlow sets Flow field to given value. -### HasKeyId +### HasFlow -`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) HasKeyId() bool` +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) HasFlow() bool` -HasKeyId returns a boolean if a field has been set. +HasFlow returns a boolean if a field has been set. -### SetKeyIdNil +### SetFlowNil -`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetKeyIdNil(b bool)` +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetFlowNil(b bool)` - SetKeyIdNil sets the value for KeyId to be an explicit nil + SetFlowNil sets the value for Flow to be an explicit nil -### UnsetKeyId -`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) UnsetKeyId()` +### UnsetFlow +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) UnsetFlow()` -UnsetKeyId ensures that no value is present for KeyId, not even an explicit nil -### GetPaymentId +UnsetFlow ensures that no value is present for Flow, not even an explicit nil +### GetStatus -`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentId() interface{}` +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetStatus() interface{}` -GetPaymentId returns the PaymentId field if non-nil, zero value otherwise. +GetStatus returns the Status field if non-nil, zero value otherwise. -### GetPaymentIdOk +### GetStatusOk -`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentIdOk() (*interface{}, bool)` +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool)` -GetPaymentIdOk returns a tuple with the PaymentId field if it's non-nil, zero value otherwise +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetPaymentId +### SetStatus -`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetPaymentId(v interface{})` +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetStatus(v interface{})` -SetPaymentId sets PaymentId field to given value. +SetStatus sets Status field to given value. -### HasPaymentId +### HasStatus -`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) HasPaymentId() bool` +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) HasStatus() bool` -HasPaymentId returns a boolean if a field has been set. +HasStatus returns a boolean if a field has been set. -### SetPaymentIdNil +### SetStatusNil -`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetPaymentIdNil(b bool)` +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetStatusNil(b bool)` - SetPaymentIdNil sets the value for PaymentId to be an explicit nil + SetStatusNil sets the value for Status to be an explicit nil -### UnsetPaymentId -`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) UnsetPaymentId()` +### UnsetStatus +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) UnsetStatus()` -UnsetPaymentId ensures that no value is present for PaymentId, not even an explicit nil +UnsetStatus ensures that no value is present for Status, not even an explicit nil ### GetRedirectUrl `func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetRedirectUrl() interface{}` @@ -173,6 +176,111 @@ HasRedirectUrl returns a boolean if a field has been set. `func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) UnsetRedirectUrl()` UnsetRedirectUrl ensures that no value is present for RedirectUrl, not even an explicit nil +### GetPaymentUrl + +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentUrl() interface{}` + +GetPaymentUrl returns the PaymentUrl field if non-nil, zero value otherwise. + +### GetPaymentUrlOk + +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentUrlOk() (*interface{}, bool)` + +GetPaymentUrlOk returns a tuple with the PaymentUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentUrl + +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetPaymentUrl(v interface{})` + +SetPaymentUrl sets PaymentUrl field to given value. + +### HasPaymentUrl + +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) HasPaymentUrl() bool` + +HasPaymentUrl returns a boolean if a field has been set. + +### SetPaymentUrlNil + +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetPaymentUrlNil(b bool)` + + SetPaymentUrlNil sets the value for PaymentUrl to be an explicit nil + +### UnsetPaymentUrl +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) UnsetPaymentUrl()` + +UnsetPaymentUrl ensures that no value is present for PaymentUrl, not even an explicit nil +### GetPaymentResponse + +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentResponse() interface{}` + +GetPaymentResponse returns the PaymentResponse field if non-nil, zero value otherwise. + +### GetPaymentResponseOk + +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentResponseOk() (*interface{}, bool)` + +GetPaymentResponseOk returns a tuple with the PaymentResponse field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentResponse + +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetPaymentResponse(v interface{})` + +SetPaymentResponse sets PaymentResponse field to given value. + +### HasPaymentResponse + +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) HasPaymentResponse() bool` + +HasPaymentResponse returns a boolean if a field has been set. + +### SetPaymentResponseNil + +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetPaymentResponseNil(b bool)` + + SetPaymentResponseNil sets the value for PaymentResponse to be an explicit nil + +### UnsetPaymentResponse +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) UnsetPaymentResponse()` + +UnsetPaymentResponse ensures that no value is present for PaymentResponse, not even an explicit nil +### GetPaymentInstrument + +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentInstrument() interface{}` + +GetPaymentInstrument returns the PaymentInstrument field if non-nil, zero value otherwise. + +### GetPaymentInstrumentOk + +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentInstrumentOk() (*interface{}, bool)` + +GetPaymentInstrumentOk returns a tuple with the PaymentInstrument field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentInstrument + +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetPaymentInstrument(v interface{})` + +SetPaymentInstrument sets PaymentInstrument field to given value. + +### HasPaymentInstrument + +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) HasPaymentInstrument() bool` + +HasPaymentInstrument returns a boolean if a field has been set. + +### SetPaymentInstrumentNil + +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetPaymentInstrumentNil(b bool)` + + SetPaymentInstrumentNil sets the value for PaymentInstrument to be an explicit nil + +### UnsetPaymentInstrument +`func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) UnsetPaymentInstrument()` + +UnsetPaymentInstrument ensures that no value is present for PaymentInstrument, not even an explicit nil ### GetCreatedAt `func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETShipmentsShipmentId200ResponseData.md b/api/docs/GETShipmentsShipmentId200ResponseData.md index b0324e7b..91c34fea 100644 --- a/api/docs/GETShipmentsShipmentId200ResponseData.md +++ b/api/docs/GETShipmentsShipmentId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**GETShipmentsShipmentId200ResponseDataAttributes**](GETShipmentsShipmentId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**GETShipmentsShipmentId200ResponseDataRelationships**](GETShipmentsShipmentId200ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTShipments201ResponseDataRelationships**](POSTShipments201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *GETShipmentsShipmentId200ResponseData) GetRelationships() GETShipmentsShipmentId200ResponseDataRelationships` +`func (o *GETShipmentsShipmentId200ResponseData) GetRelationships() POSTShipments201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *GETShipmentsShipmentId200ResponseData) GetRelationshipsOk() (*GETShipmentsShipmentId200ResponseDataRelationships, bool)` +`func (o *GETShipmentsShipmentId200ResponseData) GetRelationshipsOk() (*POSTShipments201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *GETShipmentsShipmentId200ResponseData) SetRelationships(v GETShipmentsShipmentId200ResponseDataRelationships)` +`func (o *GETShipmentsShipmentId200ResponseData) SetRelationships(v POSTShipments201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/GETShipmentsShipmentId200ResponseDataAttributes.md b/api/docs/GETShipmentsShipmentId200ResponseDataAttributes.md index e761bb2d..c73096a3 100644 --- a/api/docs/GETShipmentsShipmentId200ResponseDataAttributes.md +++ b/api/docs/GETShipmentsShipmentId200ResponseDataAttributes.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | Pointer to **interface{}** | Unique identifier for the shipment | [optional] -**Status** | Pointer to **interface{}** | The shipment status, one of 'draft', 'upcoming', 'cancelled', 'on_hold', 'picking', 'packing', 'ready_to_ship', or 'shipped' | [optional] +**Number** | Pointer to **interface{}** | Unique identifier for the shipment. Cannot be passed by sales channels. | [optional] +**Status** | Pointer to **interface{}** | The shipment status. One of 'draft' (default), 'upcoming', 'cancelled', 'on_hold', 'picking', 'packing', 'ready_to_ship', 'shipped', or 'delivered'. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the associated order. | [optional] **CostAmountCents** | Pointer to **interface{}** | The cost of this shipment from the selected carrier account, in cents. | [optional] **CostAmountFloat** | Pointer to **interface{}** | The cost of this shipment from the selected carrier account, float. | [optional] @@ -21,10 +21,15 @@ Name | Type | Description | Notes **PurchaseStartedAt** | Pointer to **interface{}** | Time at which the purchasing of the shipping rate started. | [optional] **PurchaseCompletedAt** | Pointer to **interface{}** | Time at which the purchasing of the shipping rate completed. | [optional] **PurchaseFailedAt** | Pointer to **interface{}** | Time at which the purchasing of the shipping rate failed. | [optional] +**OnHoldAt** | Pointer to **interface{}** | Time at which the shipment was put on hold. | [optional] +**PickingAt** | Pointer to **interface{}** | Time at which the shipment was picking. | [optional] +**PackingAt** | Pointer to **interface{}** | Time at which the shipment was packing. | [optional] +**ReadyToShipAt** | Pointer to **interface{}** | Time at which the shipment was ready to ship. | [optional] +**ShippedAt** | Pointer to **interface{}** | Time at which the shipment was shipped. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -641,6 +646,181 @@ HasPurchaseFailedAt returns a boolean if a field has been set. `func (o *GETShipmentsShipmentId200ResponseDataAttributes) UnsetPurchaseFailedAt()` UnsetPurchaseFailedAt ensures that no value is present for PurchaseFailedAt, not even an explicit nil +### GetOnHoldAt + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetOnHoldAt() interface{}` + +GetOnHoldAt returns the OnHoldAt field if non-nil, zero value otherwise. + +### GetOnHoldAtOk + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetOnHoldAtOk() (*interface{}, bool)` + +GetOnHoldAtOk returns a tuple with the OnHoldAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOnHoldAt + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) SetOnHoldAt(v interface{})` + +SetOnHoldAt sets OnHoldAt field to given value. + +### HasOnHoldAt + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) HasOnHoldAt() bool` + +HasOnHoldAt returns a boolean if a field has been set. + +### SetOnHoldAtNil + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) SetOnHoldAtNil(b bool)` + + SetOnHoldAtNil sets the value for OnHoldAt to be an explicit nil + +### UnsetOnHoldAt +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) UnsetOnHoldAt()` + +UnsetOnHoldAt ensures that no value is present for OnHoldAt, not even an explicit nil +### GetPickingAt + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetPickingAt() interface{}` + +GetPickingAt returns the PickingAt field if non-nil, zero value otherwise. + +### GetPickingAtOk + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetPickingAtOk() (*interface{}, bool)` + +GetPickingAtOk returns a tuple with the PickingAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPickingAt + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) SetPickingAt(v interface{})` + +SetPickingAt sets PickingAt field to given value. + +### HasPickingAt + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) HasPickingAt() bool` + +HasPickingAt returns a boolean if a field has been set. + +### SetPickingAtNil + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) SetPickingAtNil(b bool)` + + SetPickingAtNil sets the value for PickingAt to be an explicit nil + +### UnsetPickingAt +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) UnsetPickingAt()` + +UnsetPickingAt ensures that no value is present for PickingAt, not even an explicit nil +### GetPackingAt + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetPackingAt() interface{}` + +GetPackingAt returns the PackingAt field if non-nil, zero value otherwise. + +### GetPackingAtOk + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetPackingAtOk() (*interface{}, bool)` + +GetPackingAtOk returns a tuple with the PackingAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackingAt + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) SetPackingAt(v interface{})` + +SetPackingAt sets PackingAt field to given value. + +### HasPackingAt + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) HasPackingAt() bool` + +HasPackingAt returns a boolean if a field has been set. + +### SetPackingAtNil + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) SetPackingAtNil(b bool)` + + SetPackingAtNil sets the value for PackingAt to be an explicit nil + +### UnsetPackingAt +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) UnsetPackingAt()` + +UnsetPackingAt ensures that no value is present for PackingAt, not even an explicit nil +### GetReadyToShipAt + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetReadyToShipAt() interface{}` + +GetReadyToShipAt returns the ReadyToShipAt field if non-nil, zero value otherwise. + +### GetReadyToShipAtOk + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetReadyToShipAtOk() (*interface{}, bool)` + +GetReadyToShipAtOk returns a tuple with the ReadyToShipAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadyToShipAt + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) SetReadyToShipAt(v interface{})` + +SetReadyToShipAt sets ReadyToShipAt field to given value. + +### HasReadyToShipAt + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) HasReadyToShipAt() bool` + +HasReadyToShipAt returns a boolean if a field has been set. + +### SetReadyToShipAtNil + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) SetReadyToShipAtNil(b bool)` + + SetReadyToShipAtNil sets the value for ReadyToShipAt to be an explicit nil + +### UnsetReadyToShipAt +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) UnsetReadyToShipAt()` + +UnsetReadyToShipAt ensures that no value is present for ReadyToShipAt, not even an explicit nil +### GetShippedAt + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetShippedAt() interface{}` + +GetShippedAt returns the ShippedAt field if non-nil, zero value otherwise. + +### GetShippedAtOk + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetShippedAtOk() (*interface{}, bool)` + +GetShippedAtOk returns a tuple with the ShippedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippedAt + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) SetShippedAt(v interface{})` + +SetShippedAt sets ShippedAt field to given value. + +### HasShippedAt + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) HasShippedAt() bool` + +HasShippedAt returns a boolean if a field has been set. + +### SetShippedAtNil + +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) SetShippedAtNil(b bool)` + + SetShippedAtNil sets the value for ShippedAt to be an explicit nil + +### UnsetShippedAt +`func (o *GETShipmentsShipmentId200ResponseDataAttributes) UnsetShippedAt()` + +UnsetShippedAt ensures that no value is present for ShippedAt, not even an explicit nil ### GetCreatedAt `func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETShipmentsShipmentId200ResponseDataRelationships.md b/api/docs/GETShipmentsShipmentId200ResponseDataRelationships.md deleted file mode 100644 index fd6e0650..00000000 --- a/api/docs/GETShipmentsShipmentId200ResponseDataRelationships.md +++ /dev/null @@ -1,420 +0,0 @@ -# GETShipmentsShipmentId200ResponseDataRelationships - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Order** | Pointer to [**POSTAdyenPayments201ResponseDataRelationshipsOrder**](POSTAdyenPayments201ResponseDataRelationshipsOrder.md) | | [optional] -**ShippingCategory** | Pointer to [**GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory**](GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory.md) | | [optional] -**StockLocation** | Pointer to [**POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation**](POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation.md) | | [optional] -**OriginAddress** | Pointer to [**POSTReturns201ResponseDataRelationshipsOriginAddress**](POSTReturns201ResponseDataRelationshipsOriginAddress.md) | | [optional] -**ShippingAddress** | Pointer to [**POSTOrders201ResponseDataRelationshipsShippingAddress**](POSTOrders201ResponseDataRelationshipsShippingAddress.md) | | [optional] -**ShippingMethod** | Pointer to [**POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod**](POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod.md) | | [optional] -**DeliveryLeadTime** | Pointer to [**GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime**](GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime.md) | | [optional] -**ShipmentLineItems** | Pointer to [**POSTLineItems201ResponseDataRelationshipsShipmentLineItems**](POSTLineItems201ResponseDataRelationshipsShipmentLineItems.md) | | [optional] -**StockLineItems** | Pointer to [**POSTLineItems201ResponseDataRelationshipsStockLineItems**](POSTLineItems201ResponseDataRelationshipsStockLineItems.md) | | [optional] -**StockTransfers** | Pointer to [**POSTLineItems201ResponseDataRelationshipsStockTransfers**](POSTLineItems201ResponseDataRelationshipsStockTransfers.md) | | [optional] -**AvailableShippingMethods** | Pointer to [**GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods**](GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods.md) | | [optional] -**CarrierAccounts** | Pointer to [**GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts**](GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts.md) | | [optional] -**Parcels** | Pointer to [**POSTPackages201ResponseDataRelationshipsParcels**](POSTPackages201ResponseDataRelationshipsParcels.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] - -## Methods - -### NewGETShipmentsShipmentId200ResponseDataRelationships - -`func NewGETShipmentsShipmentId200ResponseDataRelationships() *GETShipmentsShipmentId200ResponseDataRelationships` - -NewGETShipmentsShipmentId200ResponseDataRelationships instantiates a new GETShipmentsShipmentId200ResponseDataRelationships object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGETShipmentsShipmentId200ResponseDataRelationshipsWithDefaults - -`func NewGETShipmentsShipmentId200ResponseDataRelationshipsWithDefaults() *GETShipmentsShipmentId200ResponseDataRelationships` - -NewGETShipmentsShipmentId200ResponseDataRelationshipsWithDefaults instantiates a new GETShipmentsShipmentId200ResponseDataRelationships object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetOrder - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetOrder() POSTAdyenPayments201ResponseDataRelationshipsOrder` - -GetOrder returns the Order field if non-nil, zero value otherwise. - -### GetOrderOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetOrderOk() (*POSTAdyenPayments201ResponseDataRelationshipsOrder, bool)` - -GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrder - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetOrder(v POSTAdyenPayments201ResponseDataRelationshipsOrder)` - -SetOrder sets Order field to given value. - -### HasOrder - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasOrder() bool` - -HasOrder returns a boolean if a field has been set. - -### GetShippingCategory - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetShippingCategory() GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory` - -GetShippingCategory returns the ShippingCategory field if non-nil, zero value otherwise. - -### GetShippingCategoryOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetShippingCategoryOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory, bool)` - -GetShippingCategoryOk returns a tuple with the ShippingCategory field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetShippingCategory - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetShippingCategory(v GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory)` - -SetShippingCategory sets ShippingCategory field to given value. - -### HasShippingCategory - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasShippingCategory() bool` - -HasShippingCategory returns a boolean if a field has been set. - -### GetStockLocation - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetStockLocation() POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation` - -GetStockLocation returns the StockLocation field if non-nil, zero value otherwise. - -### GetStockLocationOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetStockLocationOk() (*POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation, bool)` - -GetStockLocationOk returns a tuple with the StockLocation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStockLocation - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetStockLocation(v POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation)` - -SetStockLocation sets StockLocation field to given value. - -### HasStockLocation - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasStockLocation() bool` - -HasStockLocation returns a boolean if a field has been set. - -### GetOriginAddress - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetOriginAddress() POSTReturns201ResponseDataRelationshipsOriginAddress` - -GetOriginAddress returns the OriginAddress field if non-nil, zero value otherwise. - -### GetOriginAddressOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetOriginAddressOk() (*POSTReturns201ResponseDataRelationshipsOriginAddress, bool)` - -GetOriginAddressOk returns a tuple with the OriginAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOriginAddress - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetOriginAddress(v POSTReturns201ResponseDataRelationshipsOriginAddress)` - -SetOriginAddress sets OriginAddress field to given value. - -### HasOriginAddress - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasOriginAddress() bool` - -HasOriginAddress returns a boolean if a field has been set. - -### GetShippingAddress - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetShippingAddress() POSTOrders201ResponseDataRelationshipsShippingAddress` - -GetShippingAddress returns the ShippingAddress field if non-nil, zero value otherwise. - -### GetShippingAddressOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetShippingAddressOk() (*POSTOrders201ResponseDataRelationshipsShippingAddress, bool)` - -GetShippingAddressOk returns a tuple with the ShippingAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetShippingAddress - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetShippingAddress(v POSTOrders201ResponseDataRelationshipsShippingAddress)` - -SetShippingAddress sets ShippingAddress field to given value. - -### HasShippingAddress - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasShippingAddress() bool` - -HasShippingAddress returns a boolean if a field has been set. - -### GetShippingMethod - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetShippingMethod() POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod` - -GetShippingMethod returns the ShippingMethod field if non-nil, zero value otherwise. - -### GetShippingMethodOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetShippingMethodOk() (*POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod, bool)` - -GetShippingMethodOk returns a tuple with the ShippingMethod field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetShippingMethod - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetShippingMethod(v POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod)` - -SetShippingMethod sets ShippingMethod field to given value. - -### HasShippingMethod - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasShippingMethod() bool` - -HasShippingMethod returns a boolean if a field has been set. - -### GetDeliveryLeadTime - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetDeliveryLeadTime() GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime` - -GetDeliveryLeadTime returns the DeliveryLeadTime field if non-nil, zero value otherwise. - -### GetDeliveryLeadTimeOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetDeliveryLeadTimeOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime, bool)` - -GetDeliveryLeadTimeOk returns a tuple with the DeliveryLeadTime field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeliveryLeadTime - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetDeliveryLeadTime(v GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime)` - -SetDeliveryLeadTime sets DeliveryLeadTime field to given value. - -### HasDeliveryLeadTime - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasDeliveryLeadTime() bool` - -HasDeliveryLeadTime returns a boolean if a field has been set. - -### GetShipmentLineItems - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetShipmentLineItems() POSTLineItems201ResponseDataRelationshipsShipmentLineItems` - -GetShipmentLineItems returns the ShipmentLineItems field if non-nil, zero value otherwise. - -### GetShipmentLineItemsOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetShipmentLineItemsOk() (*POSTLineItems201ResponseDataRelationshipsShipmentLineItems, bool)` - -GetShipmentLineItemsOk returns a tuple with the ShipmentLineItems field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetShipmentLineItems - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetShipmentLineItems(v POSTLineItems201ResponseDataRelationshipsShipmentLineItems)` - -SetShipmentLineItems sets ShipmentLineItems field to given value. - -### HasShipmentLineItems - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasShipmentLineItems() bool` - -HasShipmentLineItems returns a boolean if a field has been set. - -### GetStockLineItems - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetStockLineItems() POSTLineItems201ResponseDataRelationshipsStockLineItems` - -GetStockLineItems returns the StockLineItems field if non-nil, zero value otherwise. - -### GetStockLineItemsOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetStockLineItemsOk() (*POSTLineItems201ResponseDataRelationshipsStockLineItems, bool)` - -GetStockLineItemsOk returns a tuple with the StockLineItems field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStockLineItems - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetStockLineItems(v POSTLineItems201ResponseDataRelationshipsStockLineItems)` - -SetStockLineItems sets StockLineItems field to given value. - -### HasStockLineItems - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasStockLineItems() bool` - -HasStockLineItems returns a boolean if a field has been set. - -### GetStockTransfers - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetStockTransfers() POSTLineItems201ResponseDataRelationshipsStockTransfers` - -GetStockTransfers returns the StockTransfers field if non-nil, zero value otherwise. - -### GetStockTransfersOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetStockTransfersOk() (*POSTLineItems201ResponseDataRelationshipsStockTransfers, bool)` - -GetStockTransfersOk returns a tuple with the StockTransfers field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStockTransfers - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetStockTransfers(v POSTLineItems201ResponseDataRelationshipsStockTransfers)` - -SetStockTransfers sets StockTransfers field to given value. - -### HasStockTransfers - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasStockTransfers() bool` - -HasStockTransfers returns a boolean if a field has been set. - -### GetAvailableShippingMethods - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetAvailableShippingMethods() GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods` - -GetAvailableShippingMethods returns the AvailableShippingMethods field if non-nil, zero value otherwise. - -### GetAvailableShippingMethodsOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetAvailableShippingMethodsOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods, bool)` - -GetAvailableShippingMethodsOk returns a tuple with the AvailableShippingMethods field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAvailableShippingMethods - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetAvailableShippingMethods(v GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods)` - -SetAvailableShippingMethods sets AvailableShippingMethods field to given value. - -### HasAvailableShippingMethods - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasAvailableShippingMethods() bool` - -HasAvailableShippingMethods returns a boolean if a field has been set. - -### GetCarrierAccounts - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetCarrierAccounts() GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts` - -GetCarrierAccounts returns the CarrierAccounts field if non-nil, zero value otherwise. - -### GetCarrierAccountsOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetCarrierAccountsOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts, bool)` - -GetCarrierAccountsOk returns a tuple with the CarrierAccounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCarrierAccounts - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetCarrierAccounts(v GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts)` - -SetCarrierAccounts sets CarrierAccounts field to given value. - -### HasCarrierAccounts - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasCarrierAccounts() bool` - -HasCarrierAccounts returns a boolean if a field has been set. - -### GetParcels - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetParcels() POSTPackages201ResponseDataRelationshipsParcels` - -GetParcels returns the Parcels field if non-nil, zero value otherwise. - -### GetParcelsOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetParcelsOk() (*POSTPackages201ResponseDataRelationshipsParcels, bool)` - -GetParcelsOk returns a tuple with the Parcels field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetParcels - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetParcels(v POSTPackages201ResponseDataRelationshipsParcels)` - -SetParcels sets Parcels field to given value. - -### HasParcels - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasParcels() bool` - -HasParcels returns a boolean if a field has been set. - -### GetAttachments - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` - -GetAttachments returns the Attachments field if non-nil, zero value otherwise. - -### GetAttachmentsOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` - -GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttachments - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` - -SetAttachments sets Attachments field to given value. - -### HasAttachments - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasAttachments() bool` - -HasAttachments returns a boolean if a field has been set. - -### GetEvents - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` - -GetEvents returns the Events field if non-nil, zero value otherwise. - -### GetEventsOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` - -GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEvents - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` - -SetEvents sets Events field to given value. - -### HasEvents - -`func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasEvents() bool` - -HasEvents returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods.md b/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods.md deleted file mode 100644 index 0cf17a8d..00000000 --- a/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods.md +++ /dev/null @@ -1,82 +0,0 @@ -# GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] -**Data** | Pointer to [**GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData**](GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData.md) | | [optional] - -## Methods - -### NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods - -`func NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods() *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods` - -NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsWithDefaults - -`func NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsWithDefaults() *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods` - -NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsWithDefaults instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetLinks - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - -### GetData - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) GetData() GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) GetDataOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) SetData(v GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData.md b/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData.md deleted file mode 100644 index 5547498b..00000000 --- a/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData.md +++ /dev/null @@ -1,102 +0,0 @@ -# GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | Pointer to **interface{}** | The resource's type | [optional] -**Id** | Pointer to **interface{}** | The resource ID | [optional] - -## Methods - -### NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData - -`func NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData() *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData` - -NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsDataWithDefaults - -`func NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsDataWithDefaults() *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData` - -NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsDataWithDefaults instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) GetType() interface{}` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) GetTypeOk() (*interface{}, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) SetType(v interface{})` - -SetType sets Type field to given value. - -### HasType - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) HasType() bool` - -HasType returns a boolean if a field has been set. - -### SetTypeNil - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) SetTypeNil(b bool)` - - SetTypeNil sets the value for Type to be an explicit nil - -### UnsetType -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) UnsetType()` - -UnsetType ensures that no value is present for Type, not even an explicit nil -### GetId - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) GetId() interface{}` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) GetIdOk() (*interface{}, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) SetId(v interface{})` - -SetId sets Id field to given value. - -### HasId - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) HasId() bool` - -HasId returns a boolean if a field has been set. - -### SetIdNil - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) SetIdNil(b bool)` - - SetIdNil sets the value for Id to be an explicit nil - -### UnsetId -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) UnsetId()` - -UnsetId ensures that no value is present for Id, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts.md b/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts.md deleted file mode 100644 index 194256fc..00000000 --- a/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts.md +++ /dev/null @@ -1,82 +0,0 @@ -# GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] -**Data** | Pointer to [**GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData**](GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData.md) | | [optional] - -## Methods - -### NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts - -`func NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts() *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts` - -NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsWithDefaults - -`func NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsWithDefaults() *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts` - -NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsWithDefaults instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetLinks - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - -### GetData - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) GetData() GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) GetDataOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) SetData(v GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData.md b/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData.md deleted file mode 100644 index 4ae4cad9..00000000 --- a/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData.md +++ /dev/null @@ -1,102 +0,0 @@ -# GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | Pointer to **interface{}** | The resource's type | [optional] -**Id** | Pointer to **interface{}** | The resource ID | [optional] - -## Methods - -### NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData - -`func NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData() *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData` - -NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsDataWithDefaults - -`func NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsDataWithDefaults() *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData` - -NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsDataWithDefaults instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) GetType() interface{}` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) GetTypeOk() (*interface{}, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) SetType(v interface{})` - -SetType sets Type field to given value. - -### HasType - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) HasType() bool` - -HasType returns a boolean if a field has been set. - -### SetTypeNil - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) SetTypeNil(b bool)` - - SetTypeNil sets the value for Type to be an explicit nil - -### UnsetType -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) UnsetType()` - -UnsetType ensures that no value is present for Type, not even an explicit nil -### GetId - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) GetId() interface{}` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) GetIdOk() (*interface{}, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) SetId(v interface{})` - -SetId sets Id field to given value. - -### HasId - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) HasId() bool` - -HasId returns a boolean if a field has been set. - -### SetIdNil - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) SetIdNil(b bool)` - - SetIdNil sets the value for Id to be an explicit nil - -### UnsetId -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) UnsetId()` - -UnsetId ensures that no value is present for Id, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime.md b/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime.md deleted file mode 100644 index a95d3d7d..00000000 --- a/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime.md +++ /dev/null @@ -1,82 +0,0 @@ -# GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] -**Data** | Pointer to [**GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData**](GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData.md) | | [optional] - -## Methods - -### NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime - -`func NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime() *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime` - -NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeWithDefaults - -`func NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeWithDefaults() *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime` - -NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeWithDefaults instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetLinks - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - -### GetData - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) GetData() GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) GetDataOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) SetData(v GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData.md b/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData.md deleted file mode 100644 index 1bda7a70..00000000 --- a/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData.md +++ /dev/null @@ -1,102 +0,0 @@ -# GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | Pointer to **interface{}** | The resource's type | [optional] -**Id** | Pointer to **interface{}** | The resource ID | [optional] - -## Methods - -### NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData - -`func NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData() *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData` - -NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeDataWithDefaults - -`func NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeDataWithDefaults() *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData` - -NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeDataWithDefaults instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) GetType() interface{}` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) GetTypeOk() (*interface{}, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) SetType(v interface{})` - -SetType sets Type field to given value. - -### HasType - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) HasType() bool` - -HasType returns a boolean if a field has been set. - -### SetTypeNil - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) SetTypeNil(b bool)` - - SetTypeNil sets the value for Type to be an explicit nil - -### UnsetType -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) UnsetType()` - -UnsetType ensures that no value is present for Type, not even an explicit nil -### GetId - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) GetId() interface{}` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) GetIdOk() (*interface{}, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) SetId(v interface{})` - -SetId sets Id field to given value. - -### HasId - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) HasId() bool` - -HasId returns a boolean if a field has been set. - -### SetIdNil - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) SetIdNil(b bool)` - - SetIdNil sets the value for Id to be an explicit nil - -### UnsetId -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) UnsetId()` - -UnsetId ensures that no value is present for Id, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory.md b/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory.md deleted file mode 100644 index d12ed6bd..00000000 --- a/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory.md +++ /dev/null @@ -1,82 +0,0 @@ -# GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] -**Data** | Pointer to [**GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData**](GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData.md) | | [optional] - -## Methods - -### NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory - -`func NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory() *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory` - -NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryWithDefaults - -`func NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryWithDefaults() *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory` - -NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryWithDefaults instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetLinks - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - -### GetData - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) GetData() GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) GetDataOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) SetData(v GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData.md b/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData.md deleted file mode 100644 index b1ce4a8f..00000000 --- a/api/docs/GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData.md +++ /dev/null @@ -1,102 +0,0 @@ -# GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | Pointer to **interface{}** | The resource's type | [optional] -**Id** | Pointer to **interface{}** | The resource ID | [optional] - -## Methods - -### NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData - -`func NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData() *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData` - -NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryDataWithDefaults - -`func NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryDataWithDefaults() *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData` - -NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryDataWithDefaults instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) GetType() interface{}` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) GetTypeOk() (*interface{}, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) SetType(v interface{})` - -SetType sets Type field to given value. - -### HasType - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) HasType() bool` - -HasType returns a boolean if a field has been set. - -### SetTypeNil - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) SetTypeNil(b bool)` - - SetTypeNil sets the value for Type to be an explicit nil - -### UnsetType -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) UnsetType()` - -UnsetType ensures that no value is present for Type, not even an explicit nil -### GetId - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) GetId() interface{}` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) GetIdOk() (*interface{}, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) SetId(v interface{})` - -SetId sets Id field to given value. - -### HasId - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) HasId() bool` - -HasId returns a boolean if a field has been set. - -### SetIdNil - -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) SetIdNil(b bool)` - - SetIdNil sets the value for Id to be an explicit nil - -### UnsetId -`func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) UnsetId()` - -UnsetId ensures that no value is present for Id, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/GETShippingCategoriesShippingCategoryId200ResponseDataAttributes.md b/api/docs/GETShippingCategoriesShippingCategoryId200ResponseDataAttributes.md index eceff917..5c7b0250 100644 --- a/api/docs/GETShippingCategoriesShippingCategoryId200ResponseDataAttributes.md +++ b/api/docs/GETShippingCategoriesShippingCategoryId200ResponseDataAttributes.md @@ -5,10 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The shipping category name. | [optional] +**Code** | Pointer to **interface{}** | A string that you can use to identify the shipping category (must be unique within the environment). | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -65,6 +66,41 @@ HasName returns a boolean if a field has been set. `func (o *GETShippingCategoriesShippingCategoryId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCode + +`func (o *GETShippingCategoriesShippingCategoryId200ResponseDataAttributes) GetCode() interface{}` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *GETShippingCategoriesShippingCategoryId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *GETShippingCategoriesShippingCategoryId200ResponseDataAttributes) SetCode(v interface{})` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *GETShippingCategoriesShippingCategoryId200ResponseDataAttributes) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### SetCodeNil + +`func (o *GETShippingCategoriesShippingCategoryId200ResponseDataAttributes) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *GETShippingCategoriesShippingCategoryId200ResponseDataAttributes) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil ### GetCreatedAt `func (o *GETShippingCategoriesShippingCategoryId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes.md b/api/docs/GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes.md index 268e62dd..5b870eb1 100644 --- a/api/docs/GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes.md +++ b/api/docs/GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The shipping method tier's name | [optional] +**Name** | Pointer to **interface{}** | The shipping method tier's name. | [optional] +**Type** | Pointer to **interface{}** | The shipping method tier's type. | [optional] **UpTo** | Pointer to **interface{}** | The tier upper limit. When 'null' it means infinity (useful to have an always matching tier). | [optional] **PriceAmountCents** | Pointer to **interface{}** | The price of this shipping method tier, in cents. | [optional] **PriceAmountFloat** | Pointer to **interface{}** | The price of this shipping method tier, float. | [optional] @@ -12,7 +13,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -69,6 +70,41 @@ HasName returns a boolean if a field has been set. `func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetType + +`func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetUpTo `func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes) GetUpTo() interface{}` diff --git a/api/docs/GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships.md b/api/docs/GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships.md index 835fdf9c..defded7b 100644 --- a/api/docs/GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships.md +++ b/api/docs/GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ShippingMethod** | Pointer to [**POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod**](POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -53,20 +54,20 @@ HasShippingMethod returns a boolean if a field has been set. ### GetAttachments -`func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -76,6 +77,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/GETShippingMethodsShippingMethodId200ResponseDataAttributes.md b/api/docs/GETShippingMethodsShippingMethodId200ResponseDataAttributes.md index 877012a7..92afd044 100644 --- a/api/docs/GETShippingMethodsShippingMethodId200ResponseDataAttributes.md +++ b/api/docs/GETShippingMethodsShippingMethodId200ResponseDataAttributes.md @@ -4,26 +4,30 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The shipping method's name | [optional] -**Scheme** | Pointer to **interface{}** | The shipping method's scheme, one of 'flat' or 'weight_tiered'. | [optional] +**Name** | Pointer to **interface{}** | The shipping method's name. | [optional] +**Scheme** | Pointer to **interface{}** | The shipping method's scheme. One of 'flat', 'weight_tiered', or 'external'. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] -**DisabledAt** | Pointer to **interface{}** | Time at which the shipping method was disabled. | [optional] +**ExternalPricesUrl** | Pointer to **interface{}** | The URL used to overwrite prices by an external source. | [optional] **PriceAmountCents** | Pointer to **interface{}** | The price of this shipping method, in cents. | [optional] **PriceAmountFloat** | Pointer to **interface{}** | The price of this shipping method, float. | [optional] **FormattedPriceAmount** | Pointer to **interface{}** | The price of this shipping method, formatted. | [optional] **FreeOverAmountCents** | Pointer to **interface{}** | Apply free shipping if the order amount is over this value, in cents. | [optional] **FreeOverAmountFloat** | Pointer to **interface{}** | Apply free shipping if the order amount is over this value, float. | [optional] **FormattedFreeOverAmount** | Pointer to **interface{}** | Apply free shipping if the order amount is over this value, formatted. | [optional] +**UseSubtotal** | Pointer to **interface{}** | Send this attribute if you want to compare the free over amount with order's subtotal (excluding discounts, if any). | [optional] **PriceAmountForShipmentCents** | Pointer to **interface{}** | The calculated price (zero or price amount) when associated to a shipment, in cents. | [optional] **PriceAmountForShipmentFloat** | Pointer to **interface{}** | The calculated price (zero or price amount) when associated to a shipment, float. | [optional] **FormattedPriceAmountForShipment** | Pointer to **interface{}** | The calculated price (zero or price amount) when associated to a shipment, formatted. | [optional] **MinWeight** | Pointer to **interface{}** | The minimum weight for which this shipping method is available. | [optional] **MaxWeight** | Pointer to **interface{}** | The maximum weight for which this shipping method is available. | [optional] -**UnitOfWeight** | Pointer to **interface{}** | Can be one of 'gr', 'lb', or 'oz' | [optional] +**UnitOfWeight** | Pointer to **interface{}** | The unit of weight. One of 'gr', 'oz', or 'lb'. | [optional] +**DisabledAt** | Pointer to **interface{}** | Time at which this resource was disabled. | [optional] +**CircuitState** | Pointer to **interface{}** | The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. | [optional] +**CircuitFailureCount** | Pointer to **interface{}** | The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -150,41 +154,41 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil -### GetDisabledAt +### GetExternalPricesUrl -`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetDisabledAt() interface{}` +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetExternalPricesUrl() interface{}` -GetDisabledAt returns the DisabledAt field if non-nil, zero value otherwise. +GetExternalPricesUrl returns the ExternalPricesUrl field if non-nil, zero value otherwise. -### GetDisabledAtOk +### GetExternalPricesUrlOk -`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool)` +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetExternalPricesUrlOk() (*interface{}, bool)` -GetDisabledAtOk returns a tuple with the DisabledAt field if it's non-nil, zero value otherwise +GetExternalPricesUrlOk returns a tuple with the ExternalPricesUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDisabledAt +### SetExternalPricesUrl -`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetDisabledAt(v interface{})` +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetExternalPricesUrl(v interface{})` -SetDisabledAt sets DisabledAt field to given value. +SetExternalPricesUrl sets ExternalPricesUrl field to given value. -### HasDisabledAt +### HasExternalPricesUrl -`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) HasDisabledAt() bool` +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) HasExternalPricesUrl() bool` -HasDisabledAt returns a boolean if a field has been set. +HasExternalPricesUrl returns a boolean if a field has been set. -### SetDisabledAtNil +### SetExternalPricesUrlNil -`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetDisabledAtNil(b bool)` +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetExternalPricesUrlNil(b bool)` - SetDisabledAtNil sets the value for DisabledAt to be an explicit nil + SetExternalPricesUrlNil sets the value for ExternalPricesUrl to be an explicit nil -### UnsetDisabledAt -`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) UnsetDisabledAt()` +### UnsetExternalPricesUrl +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) UnsetExternalPricesUrl()` -UnsetDisabledAt ensures that no value is present for DisabledAt, not even an explicit nil +UnsetExternalPricesUrl ensures that no value is present for ExternalPricesUrl, not even an explicit nil ### GetPriceAmountCents `func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetPriceAmountCents() interface{}` @@ -395,6 +399,41 @@ HasFormattedFreeOverAmount returns a boolean if a field has been set. `func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) UnsetFormattedFreeOverAmount()` UnsetFormattedFreeOverAmount ensures that no value is present for FormattedFreeOverAmount, not even an explicit nil +### GetUseSubtotal + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetUseSubtotal() interface{}` + +GetUseSubtotal returns the UseSubtotal field if non-nil, zero value otherwise. + +### GetUseSubtotalOk + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetUseSubtotalOk() (*interface{}, bool)` + +GetUseSubtotalOk returns a tuple with the UseSubtotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseSubtotal + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetUseSubtotal(v interface{})` + +SetUseSubtotal sets UseSubtotal field to given value. + +### HasUseSubtotal + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) HasUseSubtotal() bool` + +HasUseSubtotal returns a boolean if a field has been set. + +### SetUseSubtotalNil + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetUseSubtotalNil(b bool)` + + SetUseSubtotalNil sets the value for UseSubtotal to be an explicit nil + +### UnsetUseSubtotal +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) UnsetUseSubtotal()` + +UnsetUseSubtotal ensures that no value is present for UseSubtotal, not even an explicit nil ### GetPriceAmountForShipmentCents `func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetPriceAmountForShipmentCents() interface{}` @@ -605,6 +644,111 @@ HasUnitOfWeight returns a boolean if a field has been set. `func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) UnsetUnitOfWeight()` UnsetUnitOfWeight ensures that no value is present for UnitOfWeight, not even an explicit nil +### GetDisabledAt + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetDisabledAt() interface{}` + +GetDisabledAt returns the DisabledAt field if non-nil, zero value otherwise. + +### GetDisabledAtOk + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool)` + +GetDisabledAtOk returns a tuple with the DisabledAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabledAt + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetDisabledAt(v interface{})` + +SetDisabledAt sets DisabledAt field to given value. + +### HasDisabledAt + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) HasDisabledAt() bool` + +HasDisabledAt returns a boolean if a field has been set. + +### SetDisabledAtNil + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetDisabledAtNil(b bool)` + + SetDisabledAtNil sets the value for DisabledAt to be an explicit nil + +### UnsetDisabledAt +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) UnsetDisabledAt()` + +UnsetDisabledAt ensures that no value is present for DisabledAt, not even an explicit nil +### GetCircuitState + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetCircuitState() interface{}` + +GetCircuitState returns the CircuitState field if non-nil, zero value otherwise. + +### GetCircuitStateOk + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetCircuitStateOk() (*interface{}, bool)` + +GetCircuitStateOk returns a tuple with the CircuitState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitState + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetCircuitState(v interface{})` + +SetCircuitState sets CircuitState field to given value. + +### HasCircuitState + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) HasCircuitState() bool` + +HasCircuitState returns a boolean if a field has been set. + +### SetCircuitStateNil + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetCircuitStateNil(b bool)` + + SetCircuitStateNil sets the value for CircuitState to be an explicit nil + +### UnsetCircuitState +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) UnsetCircuitState()` + +UnsetCircuitState ensures that no value is present for CircuitState, not even an explicit nil +### GetCircuitFailureCount + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetCircuitFailureCount() interface{}` + +GetCircuitFailureCount returns the CircuitFailureCount field if non-nil, zero value otherwise. + +### GetCircuitFailureCountOk + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetCircuitFailureCountOk() (*interface{}, bool)` + +GetCircuitFailureCountOk returns a tuple with the CircuitFailureCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitFailureCount + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetCircuitFailureCount(v interface{})` + +SetCircuitFailureCount sets CircuitFailureCount field to given value. + +### HasCircuitFailureCount + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) HasCircuitFailureCount() bool` + +HasCircuitFailureCount returns a boolean if a field has been set. + +### SetCircuitFailureCountNil + +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetCircuitFailureCountNil(b bool)` + + SetCircuitFailureCountNil sets the value for CircuitFailureCount to be an explicit nil + +### UnsetCircuitFailureCount +`func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) UnsetCircuitFailureCount()` + +UnsetCircuitFailureCount ensures that no value is present for CircuitFailureCount, not even an explicit nil ### GetCreatedAt `func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETShippingZonesShippingZoneId200ResponseDataAttributes.md b/api/docs/GETShippingZonesShippingZoneId200ResponseDataAttributes.md index 3c63f67b..a3094a39 100644 --- a/api/docs/GETShippingZonesShippingZoneId200ResponseDataAttributes.md +++ b/api/docs/GETShippingZonesShippingZoneId200ResponseDataAttributes.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETSkuListItemsSkuListItemId200ResponseDataAttributes.md b/api/docs/GETSkuListItemsSkuListItemId200ResponseDataAttributes.md index 2347eb1a..fec66071 100644 --- a/api/docs/GETSkuListItemsSkuListItemId200ResponseDataAttributes.md +++ b/api/docs/GETSkuListItemsSkuListItemId200ResponseDataAttributes.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes.md b/api/docs/GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes.md index f7fd9d62..ae839598 100644 --- a/api/docs/GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes.md +++ b/api/docs/GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes.md @@ -4,10 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The promotion rule's type. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **AllSkus** | Pointer to **interface{}** | Indicates if the rule is activated only when all of the SKUs of the list is also part of the order. | [optional] **MinQuantity** | Pointer to **interface{}** | The min quantity of SKUs of the list that must be also part of the order. If positive, overwrites the 'all_skus' option. When the SKU list is manual, its items quantities are honoured. | [optional] @@ -31,6 +32,41 @@ NewGETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributesWithDe This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetType + +`func (o *GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil ### GetCreatedAt `func (o *GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes) GetCreatedAt() interface{}` diff --git a/api/docs/GETSkuListsSkuListId200ResponseDataAttributes.md b/api/docs/GETSkuListsSkuListId200ResponseDataAttributes.md index 8f528a1e..11c4c170 100644 --- a/api/docs/GETSkuListsSkuListId200ResponseDataAttributes.md +++ b/api/docs/GETSkuListsSkuListId200ResponseDataAttributes.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETSkuOptionsSkuOptionId200ResponseData.md b/api/docs/GETSkuOptionsSkuOptionId200ResponseData.md index 9034412a..cd50d1a3 100644 --- a/api/docs/GETSkuOptionsSkuOptionId200ResponseData.md +++ b/api/docs/GETSkuOptionsSkuOptionId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**GETSkuOptionsSkuOptionId200ResponseDataAttributes**](GETSkuOptionsSkuOptionId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTBillingInfoValidationRules201ResponseDataRelationships**](POSTBillingInfoValidationRules201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTSkuOptions201ResponseDataRelationships**](POSTSkuOptions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *GETSkuOptionsSkuOptionId200ResponseData) GetRelationships() POSTBillingInfoValidationRules201ResponseDataRelationships` +`func (o *GETSkuOptionsSkuOptionId200ResponseData) GetRelationships() POSTSkuOptions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *GETSkuOptionsSkuOptionId200ResponseData) GetRelationshipsOk() (*POSTBillingInfoValidationRules201ResponseDataRelationships, bool)` +`func (o *GETSkuOptionsSkuOptionId200ResponseData) GetRelationshipsOk() (*POSTSkuOptions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *GETSkuOptionsSkuOptionId200ResponseData) SetRelationships(v POSTBillingInfoValidationRules201ResponseDataRelationships)` +`func (o *GETSkuOptionsSkuOptionId200ResponseData) SetRelationships(v POSTSkuOptions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/GETSkuOptionsSkuOptionId200ResponseDataAttributes.md b/api/docs/GETSkuOptionsSkuOptionId200ResponseDataAttributes.md index 73dce475..28f50564 100644 --- a/api/docs/GETSkuOptionsSkuOptionId200ResponseDataAttributes.md +++ b/api/docs/GETSkuOptionsSkuOptionId200ResponseDataAttributes.md @@ -4,19 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The SKU option's internal name | [optional] +**Name** | Pointer to **interface{}** | The SKU option's internal name. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] **Description** | Pointer to **interface{}** | An internal description of the SKU option. | [optional] **PriceAmountCents** | Pointer to **interface{}** | The price of this shipping method, in cents. | [optional] **PriceAmountFloat** | Pointer to **interface{}** | The price of this shipping method, float. | [optional] **FormattedPriceAmount** | Pointer to **interface{}** | The price of this shipping method, formatted. | [optional] **DelayHours** | Pointer to **interface{}** | The delay time (in hours) that should be added to the delivery lead time when this option is purchased. | [optional] -**DelayDays** | Pointer to **interface{}** | The delay time, in days (rounded) | [optional] +**DelayDays** | Pointer to **interface{}** | The delay time, in days (rounded). | [optional] **SkuCodeRegex** | Pointer to **interface{}** | The regex that will be evaluated to match the SKU codes. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETSkusSkuId200ResponseDataAttributes.md b/api/docs/GETSkusSkuId200ResponseDataAttributes.md index ba3e95f1..c6c586a7 100644 --- a/api/docs/GETSkusSkuId200ResponseDataAttributes.md +++ b/api/docs/GETSkusSkuId200ResponseDataAttributes.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **ImageUrl** | Pointer to **interface{}** | The URL of an image that represents the SKU. | [optional] **PiecesPerPack** | Pointer to **interface{}** | The number of pieces that compose the SKU. This is useful to describe sets and bundles. | [optional] **Weight** | Pointer to **interface{}** | The weight of the SKU. If present, it will be used to calculate the shipping rates. | [optional] -**UnitOfWeight** | Pointer to **interface{}** | Can be one of 'gr', 'lb', or 'oz' | [optional] +**UnitOfWeight** | Pointer to **interface{}** | The unit of weight. One of 'gr', 'oz', or 'lb'. | [optional] **HsTariffNumber** | Pointer to **interface{}** | The Harmonized System Code used by customs to identify the products shipped across international borders. | [optional] **DoNotShip** | Pointer to **interface{}** | Indicates if the SKU doesn't generate shipments. | [optional] **DoNotTrack** | Pointer to **interface{}** | Indicates if the SKU doesn't track the stock inventory. | [optional] @@ -18,7 +18,8 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**JwtCustomClaim** | Pointer to **interface{}** | The custom_claim attached to the current JWT (if any). | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -565,6 +566,41 @@ HasReferenceOrigin returns a boolean if a field has been set. `func (o *GETSkusSkuId200ResponseDataAttributes) UnsetReferenceOrigin()` UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetJwtCustomClaim + +`func (o *GETSkusSkuId200ResponseDataAttributes) GetJwtCustomClaim() interface{}` + +GetJwtCustomClaim returns the JwtCustomClaim field if non-nil, zero value otherwise. + +### GetJwtCustomClaimOk + +`func (o *GETSkusSkuId200ResponseDataAttributes) GetJwtCustomClaimOk() (*interface{}, bool)` + +GetJwtCustomClaimOk returns a tuple with the JwtCustomClaim field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtCustomClaim + +`func (o *GETSkusSkuId200ResponseDataAttributes) SetJwtCustomClaim(v interface{})` + +SetJwtCustomClaim sets JwtCustomClaim field to given value. + +### HasJwtCustomClaim + +`func (o *GETSkusSkuId200ResponseDataAttributes) HasJwtCustomClaim() bool` + +HasJwtCustomClaim returns a boolean if a field has been set. + +### SetJwtCustomClaimNil + +`func (o *GETSkusSkuId200ResponseDataAttributes) SetJwtCustomClaimNil(b bool)` + + SetJwtCustomClaimNil sets the value for JwtCustomClaim to be an explicit nil + +### UnsetJwtCustomClaim +`func (o *GETSkusSkuId200ResponseDataAttributes) UnsetJwtCustomClaim()` + +UnsetJwtCustomClaim ensures that no value is present for JwtCustomClaim, not even an explicit nil ### GetMetadata `func (o *GETSkusSkuId200ResponseDataAttributes) GetMetadata() interface{}` diff --git a/api/docs/GETStockItemsStockItemId200ResponseDataAttributes.md b/api/docs/GETStockItemsStockItemId200ResponseDataAttributes.md index 8153fc14..0ccaeca5 100644 --- a/api/docs/GETStockItemsStockItemId200ResponseDataAttributes.md +++ b/api/docs/GETStockItemsStockItemId200ResponseDataAttributes.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETStockLineItemsStockLineItemId200ResponseData.md b/api/docs/GETStockLineItemsStockLineItemId200ResponseData.md index 3f75f77a..779ab4fa 100644 --- a/api/docs/GETStockLineItemsStockLineItemId200ResponseData.md +++ b/api/docs/GETStockLineItemsStockLineItemId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**GETStockLineItemsStockLineItemId200ResponseDataAttributes**](GETStockLineItemsStockLineItemId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**GETStockLineItemsStockLineItemId200ResponseDataRelationships**](GETStockLineItemsStockLineItemId200ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTStockLineItems201ResponseDataRelationships**](POSTStockLineItems201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *GETStockLineItemsStockLineItemId200ResponseData) GetRelationships() GETStockLineItemsStockLineItemId200ResponseDataRelationships` +`func (o *GETStockLineItemsStockLineItemId200ResponseData) GetRelationships() POSTStockLineItems201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *GETStockLineItemsStockLineItemId200ResponseData) GetRelationshipsOk() (*GETStockLineItemsStockLineItemId200ResponseDataRelationships, bool)` +`func (o *GETStockLineItemsStockLineItemId200ResponseData) GetRelationshipsOk() (*POSTStockLineItems201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *GETStockLineItemsStockLineItemId200ResponseData) SetRelationships(v GETStockLineItemsStockLineItemId200ResponseDataRelationships)` +`func (o *GETStockLineItemsStockLineItemId200ResponseData) SetRelationships(v POSTStockLineItems201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/GETStockLineItemsStockLineItemId200ResponseDataAttributes.md b/api/docs/GETStockLineItemsStockLineItemId200ResponseDataAttributes.md index 9b52e4d4..5bfdbaf1 100644 --- a/api/docs/GETStockLineItemsStockLineItemId200ResponseDataAttributes.md +++ b/api/docs/GETStockLineItemsStockLineItemId200ResponseDataAttributes.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETStockLineItemsStockLineItemId200ResponseDataRelationships.md b/api/docs/GETStockLineItemsStockLineItemId200ResponseDataRelationships.md deleted file mode 100644 index 804191ae..00000000 --- a/api/docs/GETStockLineItemsStockLineItemId200ResponseDataRelationships.md +++ /dev/null @@ -1,108 +0,0 @@ -# GETStockLineItemsStockLineItemId200ResponseDataRelationships - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Shipment** | Pointer to [**POSTParcels201ResponseDataRelationshipsShipment**](POSTParcels201ResponseDataRelationshipsShipment.md) | | [optional] -**LineItem** | Pointer to [**POSTLineItemOptions201ResponseDataRelationshipsLineItem**](POSTLineItemOptions201ResponseDataRelationshipsLineItem.md) | | [optional] -**StockItem** | Pointer to [**GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem**](GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem.md) | | [optional] - -## Methods - -### NewGETStockLineItemsStockLineItemId200ResponseDataRelationships - -`func NewGETStockLineItemsStockLineItemId200ResponseDataRelationships() *GETStockLineItemsStockLineItemId200ResponseDataRelationships` - -NewGETStockLineItemsStockLineItemId200ResponseDataRelationships instantiates a new GETStockLineItemsStockLineItemId200ResponseDataRelationships object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsWithDefaults - -`func NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsWithDefaults() *GETStockLineItemsStockLineItemId200ResponseDataRelationships` - -NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsWithDefaults instantiates a new GETStockLineItemsStockLineItemId200ResponseDataRelationships object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetShipment - -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) GetShipment() POSTParcels201ResponseDataRelationshipsShipment` - -GetShipment returns the Shipment field if non-nil, zero value otherwise. - -### GetShipmentOk - -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) GetShipmentOk() (*POSTParcels201ResponseDataRelationshipsShipment, bool)` - -GetShipmentOk returns a tuple with the Shipment field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetShipment - -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) SetShipment(v POSTParcels201ResponseDataRelationshipsShipment)` - -SetShipment sets Shipment field to given value. - -### HasShipment - -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) HasShipment() bool` - -HasShipment returns a boolean if a field has been set. - -### GetLineItem - -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) GetLineItem() POSTLineItemOptions201ResponseDataRelationshipsLineItem` - -GetLineItem returns the LineItem field if non-nil, zero value otherwise. - -### GetLineItemOk - -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) GetLineItemOk() (*POSTLineItemOptions201ResponseDataRelationshipsLineItem, bool)` - -GetLineItemOk returns a tuple with the LineItem field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLineItem - -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) SetLineItem(v POSTLineItemOptions201ResponseDataRelationshipsLineItem)` - -SetLineItem sets LineItem field to given value. - -### HasLineItem - -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) HasLineItem() bool` - -HasLineItem returns a boolean if a field has been set. - -### GetStockItem - -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) GetStockItem() GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem` - -GetStockItem returns the StockItem field if non-nil, zero value otherwise. - -### GetStockItemOk - -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) GetStockItemOk() (*GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem, bool)` - -GetStockItemOk returns a tuple with the StockItem field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStockItem - -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) SetStockItem(v GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem)` - -SetStockItem sets StockItem field to given value. - -### HasStockItem - -`func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) HasStockItem() bool` - -HasStockItem returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/GETStockLocationsStockLocationId200ResponseDataAttributes.md b/api/docs/GETStockLocationsStockLocationId200ResponseDataAttributes.md index e40cccb1..6bd0eac0 100644 --- a/api/docs/GETStockLocationsStockLocationId200ResponseDataAttributes.md +++ b/api/docs/GETStockLocationsStockLocationId200ResponseDataAttributes.md @@ -4,14 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | Pointer to **interface{}** | Unique identifier for the stock location (numeric) | [optional] +**Number** | Pointer to **interface{}** | Unique identifier for the stock location (numeric). | [optional] **Name** | Pointer to **interface{}** | The stock location's internal name. | [optional] -**LabelFormat** | Pointer to **interface{}** | The shipping label format for this stock location. Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG' | [optional] +**Code** | Pointer to **interface{}** | A string that you can use to identify the stock location (must be unique within the environment). | [optional] +**LabelFormat** | Pointer to **interface{}** | The shipping label format for this stock location. Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG'. | [optional] **SuppressEtd** | Pointer to **interface{}** | Flag it if you want to skip the electronic invoice creation when generating the customs info for this stock location shipments. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -103,6 +104,41 @@ HasName returns a boolean if a field has been set. `func (o *GETStockLocationsStockLocationId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCode + +`func (o *GETStockLocationsStockLocationId200ResponseDataAttributes) GetCode() interface{}` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *GETStockLocationsStockLocationId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *GETStockLocationsStockLocationId200ResponseDataAttributes) SetCode(v interface{})` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *GETStockLocationsStockLocationId200ResponseDataAttributes) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### SetCodeNil + +`func (o *GETStockLocationsStockLocationId200ResponseDataAttributes) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *GETStockLocationsStockLocationId200ResponseDataAttributes) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil ### GetLabelFormat `func (o *GETStockLocationsStockLocationId200ResponseDataAttributes) GetLabelFormat() interface{}` diff --git a/api/docs/GETStockReservations200Response.md b/api/docs/GETStockReservations200Response.md new file mode 100644 index 00000000..cfb2d7b7 --- /dev/null +++ b/api/docs/GETStockReservations200Response.md @@ -0,0 +1,66 @@ +# GETStockReservations200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewGETStockReservations200Response + +`func NewGETStockReservations200Response() *GETStockReservations200Response` + +NewGETStockReservations200Response instantiates a new GETStockReservations200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETStockReservations200ResponseWithDefaults + +`func NewGETStockReservations200ResponseWithDefaults() *GETStockReservations200Response` + +NewGETStockReservations200ResponseWithDefaults instantiates a new GETStockReservations200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETStockReservations200Response) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETStockReservations200Response) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETStockReservations200Response) SetData(v interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETStockReservations200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *GETStockReservations200Response) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *GETStockReservations200Response) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETStockReservationsStockReservationId200Response.md b/api/docs/GETStockReservationsStockReservationId200Response.md new file mode 100644 index 00000000..095de05a --- /dev/null +++ b/api/docs/GETStockReservationsStockReservationId200Response.md @@ -0,0 +1,56 @@ +# GETStockReservationsStockReservationId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**GETStockReservationsStockReservationId200ResponseData**](GETStockReservationsStockReservationId200ResponseData.md) | | [optional] + +## Methods + +### NewGETStockReservationsStockReservationId200Response + +`func NewGETStockReservationsStockReservationId200Response() *GETStockReservationsStockReservationId200Response` + +NewGETStockReservationsStockReservationId200Response instantiates a new GETStockReservationsStockReservationId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETStockReservationsStockReservationId200ResponseWithDefaults + +`func NewGETStockReservationsStockReservationId200ResponseWithDefaults() *GETStockReservationsStockReservationId200Response` + +NewGETStockReservationsStockReservationId200ResponseWithDefaults instantiates a new GETStockReservationsStockReservationId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETStockReservationsStockReservationId200Response) GetData() GETStockReservationsStockReservationId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETStockReservationsStockReservationId200Response) GetDataOk() (*GETStockReservationsStockReservationId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETStockReservationsStockReservationId200Response) SetData(v GETStockReservationsStockReservationId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETStockReservationsStockReservationId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETStockReservationsStockReservationId200ResponseData.md b/api/docs/GETStockReservationsStockReservationId200ResponseData.md new file mode 100644 index 00000000..6d0ee8be --- /dev/null +++ b/api/docs/GETStockReservationsStockReservationId200ResponseData.md @@ -0,0 +1,180 @@ +# GETStockReservationsStockReservationId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**GETStockReservationsStockReservationId200ResponseDataAttributes**](GETStockReservationsStockReservationId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTStockReservations201ResponseDataRelationships**](POSTStockReservations201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewGETStockReservationsStockReservationId200ResponseData + +`func NewGETStockReservationsStockReservationId200ResponseData() *GETStockReservationsStockReservationId200ResponseData` + +NewGETStockReservationsStockReservationId200ResponseData instantiates a new GETStockReservationsStockReservationId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETStockReservationsStockReservationId200ResponseDataWithDefaults + +`func NewGETStockReservationsStockReservationId200ResponseDataWithDefaults() *GETStockReservationsStockReservationId200ResponseData` + +NewGETStockReservationsStockReservationId200ResponseDataWithDefaults instantiates a new GETStockReservationsStockReservationId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *GETStockReservationsStockReservationId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GETStockReservationsStockReservationId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *GETStockReservationsStockReservationId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *GETStockReservationsStockReservationId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *GETStockReservationsStockReservationId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *GETStockReservationsStockReservationId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *GETStockReservationsStockReservationId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETStockReservationsStockReservationId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETStockReservationsStockReservationId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETStockReservationsStockReservationId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETStockReservationsStockReservationId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETStockReservationsStockReservationId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *GETStockReservationsStockReservationId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *GETStockReservationsStockReservationId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *GETStockReservationsStockReservationId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *GETStockReservationsStockReservationId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *GETStockReservationsStockReservationId200ResponseData) GetAttributes() GETStockReservationsStockReservationId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *GETStockReservationsStockReservationId200ResponseData) GetAttributesOk() (*GETStockReservationsStockReservationId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *GETStockReservationsStockReservationId200ResponseData) SetAttributes(v GETStockReservationsStockReservationId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *GETStockReservationsStockReservationId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *GETStockReservationsStockReservationId200ResponseData) GetRelationships() POSTStockReservations201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *GETStockReservationsStockReservationId200ResponseData) GetRelationshipsOk() (*POSTStockReservations201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *GETStockReservationsStockReservationId200ResponseData) SetRelationships(v POSTStockReservations201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *GETStockReservationsStockReservationId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETStockReservationsStockReservationId200ResponseDataAttributes.md b/api/docs/GETStockReservationsStockReservationId200ResponseDataAttributes.md new file mode 100644 index 00000000..08101397 --- /dev/null +++ b/api/docs/GETStockReservationsStockReservationId200ResponseDataAttributes.md @@ -0,0 +1,318 @@ +# GETStockReservationsStockReservationId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | Pointer to **interface{}** | The stock reservation status. One of 'draft' (default), or 'pending'. | [optional] +**Quantity** | Pointer to **interface{}** | The stock reservation quantity. | [optional] +**ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this stock reservation. | [optional] +**CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] +**UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewGETStockReservationsStockReservationId200ResponseDataAttributes + +`func NewGETStockReservationsStockReservationId200ResponseDataAttributes() *GETStockReservationsStockReservationId200ResponseDataAttributes` + +NewGETStockReservationsStockReservationId200ResponseDataAttributes instantiates a new GETStockReservationsStockReservationId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETStockReservationsStockReservationId200ResponseDataAttributesWithDefaults + +`func NewGETStockReservationsStockReservationId200ResponseDataAttributesWithDefaults() *GETStockReservationsStockReservationId200ResponseDataAttributes` + +NewGETStockReservationsStockReservationId200ResponseDataAttributesWithDefaults instantiates a new GETStockReservationsStockReservationId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetStatus() interface{}` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetStatus(v interface{})` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### SetStatusNil + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetStatusNil(b bool)` + + SetStatusNil sets the value for Status to be an explicit nil + +### UnsetStatus +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) UnsetStatus()` + +UnsetStatus ensures that no value is present for Status, not even an explicit nil +### GetQuantity + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetQuantity() interface{}` + +GetQuantity returns the Quantity field if non-nil, zero value otherwise. + +### GetQuantityOk + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetQuantityOk() (*interface{}, bool)` + +GetQuantityOk returns a tuple with the Quantity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuantity + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetQuantity(v interface{})` + +SetQuantity sets Quantity field to given value. + +### HasQuantity + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) HasQuantity() bool` + +HasQuantity returns a boolean if a field has been set. + +### SetQuantityNil + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetQuantityNil(b bool)` + + SetQuantityNil sets the value for Quantity to be an explicit nil + +### UnsetQuantity +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) UnsetQuantity()` + +UnsetQuantity ensures that no value is present for Quantity, not even an explicit nil +### GetExpiresAt + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetExpiresAt() interface{}` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetExpiresAt(v interface{})` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetCreatedAt + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetCreatedAt() interface{}` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetCreatedAt(v interface{})` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### SetCreatedAtNil + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetCreatedAtNil(b bool)` + + SetCreatedAtNil sets the value for CreatedAt to be an explicit nil + +### UnsetCreatedAt +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) UnsetCreatedAt()` + +UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil +### GetUpdatedAt + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetUpdatedAt() interface{}` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetUpdatedAt(v interface{})` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### SetUpdatedAtNil + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetUpdatedAtNil(b bool)` + + SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil + +### UnsetUpdatedAt +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) UnsetUpdatedAt()` + +UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil +### GetReference + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETStockTransfersStockTransferId200ResponseDataAttributes.md b/api/docs/GETStockTransfersStockTransferId200ResponseDataAttributes.md index 50358975..3cf49dee 100644 --- a/api/docs/GETStockTransfersStockTransferId200ResponseDataAttributes.md +++ b/api/docs/GETStockTransfersStockTransferId200ResponseDataAttributes.md @@ -4,15 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Number** | Pointer to **interface{}** | Unique identifier for the stock transfer (numeric). | [optional] **SkuCode** | Pointer to **interface{}** | The code of the associated SKU. | [optional] -**Status** | Pointer to **interface{}** | The stock transfer status, one of 'draft', 'upcoming', 'picking', 'in_transit', 'completed', or 'cancelled' | [optional] -**Quantity** | Pointer to **interface{}** | The stock quantity to be transferred from the origin stock location to destination one | [optional] +**Status** | Pointer to **interface{}** | The stock transfer status. One of 'draft' (default), 'upcoming', 'on_hold', 'picking', 'in_transit', 'completed', or 'cancelled'. | [optional] +**Quantity** | Pointer to **interface{}** | The stock quantity to be transferred from the origin stock location to destination one. | [optional] +**OnHoldAt** | Pointer to **interface{}** | Time at which the stock transfer was put on hold. | [optional] +**PickingAt** | Pointer to **interface{}** | Time at which the stock transfer was picking. | [optional] +**InTransitAt** | Pointer to **interface{}** | Time at which the stock transfer was in transit. | [optional] **CompletedAt** | Pointer to **interface{}** | Time at which the stock transfer was completed. | [optional] **CancelledAt** | Pointer to **interface{}** | Time at which the stock transfer was cancelled. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -34,6 +38,41 @@ NewGETStockTransfersStockTransferId200ResponseDataAttributesWithDefaults instant This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetNumber + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetNumber() interface{}` + +GetNumber returns the Number field if non-nil, zero value otherwise. + +### GetNumberOk + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetNumberOk() (*interface{}, bool)` + +GetNumberOk returns a tuple with the Number field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumber + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) SetNumber(v interface{})` + +SetNumber sets Number field to given value. + +### HasNumber + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) HasNumber() bool` + +HasNumber returns a boolean if a field has been set. + +### SetNumberNil + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) SetNumberNil(b bool)` + + SetNumberNil sets the value for Number to be an explicit nil + +### UnsetNumber +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) UnsetNumber()` + +UnsetNumber ensures that no value is present for Number, not even an explicit nil ### GetSkuCode `func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetSkuCode() interface{}` @@ -139,6 +178,111 @@ HasQuantity returns a boolean if a field has been set. `func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) UnsetQuantity()` UnsetQuantity ensures that no value is present for Quantity, not even an explicit nil +### GetOnHoldAt + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetOnHoldAt() interface{}` + +GetOnHoldAt returns the OnHoldAt field if non-nil, zero value otherwise. + +### GetOnHoldAtOk + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetOnHoldAtOk() (*interface{}, bool)` + +GetOnHoldAtOk returns a tuple with the OnHoldAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOnHoldAt + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) SetOnHoldAt(v interface{})` + +SetOnHoldAt sets OnHoldAt field to given value. + +### HasOnHoldAt + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) HasOnHoldAt() bool` + +HasOnHoldAt returns a boolean if a field has been set. + +### SetOnHoldAtNil + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) SetOnHoldAtNil(b bool)` + + SetOnHoldAtNil sets the value for OnHoldAt to be an explicit nil + +### UnsetOnHoldAt +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) UnsetOnHoldAt()` + +UnsetOnHoldAt ensures that no value is present for OnHoldAt, not even an explicit nil +### GetPickingAt + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetPickingAt() interface{}` + +GetPickingAt returns the PickingAt field if non-nil, zero value otherwise. + +### GetPickingAtOk + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetPickingAtOk() (*interface{}, bool)` + +GetPickingAtOk returns a tuple with the PickingAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPickingAt + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) SetPickingAt(v interface{})` + +SetPickingAt sets PickingAt field to given value. + +### HasPickingAt + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) HasPickingAt() bool` + +HasPickingAt returns a boolean if a field has been set. + +### SetPickingAtNil + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) SetPickingAtNil(b bool)` + + SetPickingAtNil sets the value for PickingAt to be an explicit nil + +### UnsetPickingAt +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) UnsetPickingAt()` + +UnsetPickingAt ensures that no value is present for PickingAt, not even an explicit nil +### GetInTransitAt + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetInTransitAt() interface{}` + +GetInTransitAt returns the InTransitAt field if non-nil, zero value otherwise. + +### GetInTransitAtOk + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetInTransitAtOk() (*interface{}, bool)` + +GetInTransitAtOk returns a tuple with the InTransitAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInTransitAt + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) SetInTransitAt(v interface{})` + +SetInTransitAt sets InTransitAt field to given value. + +### HasInTransitAt + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) HasInTransitAt() bool` + +HasInTransitAt returns a boolean if a field has been set. + +### SetInTransitAtNil + +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) SetInTransitAtNil(b bool)` + + SetInTransitAtNil sets the value for InTransitAt to be an explicit nil + +### UnsetInTransitAt +`func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) UnsetInTransitAt()` + +UnsetInTransitAt ensures that no value is present for InTransitAt, not even an explicit nil ### GetCompletedAt `func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetCompletedAt() interface{}` diff --git a/api/docs/GETStripeGatewaysStripeGatewayId200ResponseDataAttributes.md b/api/docs/GETStripeGatewaysStripeGatewayId200ResponseDataAttributes.md index d2219b5b..e7859589 100644 --- a/api/docs/GETStripeGatewaysStripeGatewayId200ResponseDataAttributes.md +++ b/api/docs/GETStripeGatewaysStripeGatewayId200ResponseDataAttributes.md @@ -8,8 +8,9 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] +**ConnectedAccount** | Pointer to **interface{}** | The account (if any) for which the funds of the PaymentIntent are intended. | [optional] **AutoPayments** | Pointer to **interface{}** | Indicates if the gateway will accept payment methods enabled in the Stripe dashboard. | [optional] **WebhookEndpointId** | Pointer to **interface{}** | The gateway webhook endpoint ID, generated automatically. | [optional] **WebhookEndpointSecret** | Pointer to **interface{}** | The gateway webhook endpoint secret, generated automatically. | [optional] @@ -244,6 +245,41 @@ HasMetadata returns a boolean if a field has been set. `func (o *GETStripeGatewaysStripeGatewayId200ResponseDataAttributes) UnsetMetadata()` UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil +### GetConnectedAccount + +`func (o *GETStripeGatewaysStripeGatewayId200ResponseDataAttributes) GetConnectedAccount() interface{}` + +GetConnectedAccount returns the ConnectedAccount field if non-nil, zero value otherwise. + +### GetConnectedAccountOk + +`func (o *GETStripeGatewaysStripeGatewayId200ResponseDataAttributes) GetConnectedAccountOk() (*interface{}, bool)` + +GetConnectedAccountOk returns a tuple with the ConnectedAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedAccount + +`func (o *GETStripeGatewaysStripeGatewayId200ResponseDataAttributes) SetConnectedAccount(v interface{})` + +SetConnectedAccount sets ConnectedAccount field to given value. + +### HasConnectedAccount + +`func (o *GETStripeGatewaysStripeGatewayId200ResponseDataAttributes) HasConnectedAccount() bool` + +HasConnectedAccount returns a boolean if a field has been set. + +### SetConnectedAccountNil + +`func (o *GETStripeGatewaysStripeGatewayId200ResponseDataAttributes) SetConnectedAccountNil(b bool)` + + SetConnectedAccountNil sets the value for ConnectedAccount to be an explicit nil + +### UnsetConnectedAccount +`func (o *GETStripeGatewaysStripeGatewayId200ResponseDataAttributes) UnsetConnectedAccount()` + +UnsetConnectedAccount ensures that no value is present for ConnectedAccount, not even an explicit nil ### GetAutoPayments `func (o *GETStripeGatewaysStripeGatewayId200ResponseDataAttributes) GetAutoPayments() interface{}` diff --git a/api/docs/GETStripePaymentsStripePaymentId200ResponseDataAttributes.md b/api/docs/GETStripePaymentsStripePaymentId200ResponseDataAttributes.md index 5e097501..795add02 100644 --- a/api/docs/GETStripePaymentsStripePaymentId200ResponseDataAttributes.md +++ b/api/docs/GETStripePaymentsStripePaymentId200ResponseDataAttributes.md @@ -4,19 +4,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**StripeId** | Pointer to **interface{}** | The Stripe payment intent ID. Required to identify a payment session on stripe. | [optional] **ClientSecret** | Pointer to **interface{}** | The Stripe payment intent client secret. Required to create a charge through Stripe.js. | [optional] +**ChargeId** | Pointer to **interface{}** | The Stripe charge ID. Identifies money movement upon the payment intent confirmation. | [optional] **PublishableKey** | Pointer to **interface{}** | The Stripe publishable API key. | [optional] -**Options** | Pointer to **interface{}** | Stripe payment options: 'customer', 'payment_method', etc. Check Stripe payment intent API for more details. | [optional] +**Options** | Pointer to **interface{}** | Stripe payment options: 'customer', 'payment_method', 'return_url', etc. Check Stripe payment intent API for more details. | [optional] **PaymentMethod** | Pointer to **interface{}** | Stripe 'payment_method', set by webhook. | [optional] **MismatchedAmounts** | Pointer to **interface{}** | Indicates if the order current amount differs form the one of the created payment intent. | [optional] -**IntentAmountCents** | Pointer to **interface{}** | The amount of the associated payment intent, in cents. | [optional] -**IntentAmountFloat** | Pointer to **interface{}** | The amount of the associated payment intent, float. | [optional] -**FormattedIntentAmount** | Pointer to **interface{}** | The amount of the associated payment intent, formatted. | [optional] -**PaymentInstrument** | Pointer to **interface{}** | Information about the payment instrument used in the transaction | [optional] +**ReturnUrl** | Pointer to **interface{}** | The URL to return to when a redirect payment is completed. | [optional] +**ReceiptEmail** | Pointer to **interface{}** | The email address to send the receipt to. | [optional] +**PaymentInstrument** | Pointer to **interface{}** | Information about the payment instrument used in the transaction. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -38,6 +39,41 @@ NewGETStripePaymentsStripePaymentId200ResponseDataAttributesWithDefaults instant This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetStripeId + +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetStripeId() interface{}` + +GetStripeId returns the StripeId field if non-nil, zero value otherwise. + +### GetStripeIdOk + +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetStripeIdOk() (*interface{}, bool)` + +GetStripeIdOk returns a tuple with the StripeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStripeId + +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetStripeId(v interface{})` + +SetStripeId sets StripeId field to given value. + +### HasStripeId + +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) HasStripeId() bool` + +HasStripeId returns a boolean if a field has been set. + +### SetStripeIdNil + +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetStripeIdNil(b bool)` + + SetStripeIdNil sets the value for StripeId to be an explicit nil + +### UnsetStripeId +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) UnsetStripeId()` + +UnsetStripeId ensures that no value is present for StripeId, not even an explicit nil ### GetClientSecret `func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetClientSecret() interface{}` @@ -73,6 +109,41 @@ HasClientSecret returns a boolean if a field has been set. `func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) UnsetClientSecret()` UnsetClientSecret ensures that no value is present for ClientSecret, not even an explicit nil +### GetChargeId + +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetChargeId() interface{}` + +GetChargeId returns the ChargeId field if non-nil, zero value otherwise. + +### GetChargeIdOk + +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetChargeIdOk() (*interface{}, bool)` + +GetChargeIdOk returns a tuple with the ChargeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChargeId + +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetChargeId(v interface{})` + +SetChargeId sets ChargeId field to given value. + +### HasChargeId + +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) HasChargeId() bool` + +HasChargeId returns a boolean if a field has been set. + +### SetChargeIdNil + +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetChargeIdNil(b bool)` + + SetChargeIdNil sets the value for ChargeId to be an explicit nil + +### UnsetChargeId +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) UnsetChargeId()` + +UnsetChargeId ensures that no value is present for ChargeId, not even an explicit nil ### GetPublishableKey `func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetPublishableKey() interface{}` @@ -213,111 +284,76 @@ HasMismatchedAmounts returns a boolean if a field has been set. `func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) UnsetMismatchedAmounts()` UnsetMismatchedAmounts ensures that no value is present for MismatchedAmounts, not even an explicit nil -### GetIntentAmountCents - -`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetIntentAmountCents() interface{}` - -GetIntentAmountCents returns the IntentAmountCents field if non-nil, zero value otherwise. - -### GetIntentAmountCentsOk - -`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetIntentAmountCentsOk() (*interface{}, bool)` - -GetIntentAmountCentsOk returns a tuple with the IntentAmountCents field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIntentAmountCents - -`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetIntentAmountCents(v interface{})` - -SetIntentAmountCents sets IntentAmountCents field to given value. - -### HasIntentAmountCents - -`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) HasIntentAmountCents() bool` - -HasIntentAmountCents returns a boolean if a field has been set. - -### SetIntentAmountCentsNil - -`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetIntentAmountCentsNil(b bool)` - - SetIntentAmountCentsNil sets the value for IntentAmountCents to be an explicit nil - -### UnsetIntentAmountCents -`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) UnsetIntentAmountCents()` - -UnsetIntentAmountCents ensures that no value is present for IntentAmountCents, not even an explicit nil -### GetIntentAmountFloat +### GetReturnUrl -`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetIntentAmountFloat() interface{}` +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetReturnUrl() interface{}` -GetIntentAmountFloat returns the IntentAmountFloat field if non-nil, zero value otherwise. +GetReturnUrl returns the ReturnUrl field if non-nil, zero value otherwise. -### GetIntentAmountFloatOk +### GetReturnUrlOk -`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetIntentAmountFloatOk() (*interface{}, bool)` +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetReturnUrlOk() (*interface{}, bool)` -GetIntentAmountFloatOk returns a tuple with the IntentAmountFloat field if it's non-nil, zero value otherwise +GetReturnUrlOk returns a tuple with the ReturnUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetIntentAmountFloat +### SetReturnUrl -`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetIntentAmountFloat(v interface{})` +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetReturnUrl(v interface{})` -SetIntentAmountFloat sets IntentAmountFloat field to given value. +SetReturnUrl sets ReturnUrl field to given value. -### HasIntentAmountFloat +### HasReturnUrl -`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) HasIntentAmountFloat() bool` +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) HasReturnUrl() bool` -HasIntentAmountFloat returns a boolean if a field has been set. +HasReturnUrl returns a boolean if a field has been set. -### SetIntentAmountFloatNil +### SetReturnUrlNil -`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetIntentAmountFloatNil(b bool)` +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetReturnUrlNil(b bool)` - SetIntentAmountFloatNil sets the value for IntentAmountFloat to be an explicit nil + SetReturnUrlNil sets the value for ReturnUrl to be an explicit nil -### UnsetIntentAmountFloat -`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) UnsetIntentAmountFloat()` +### UnsetReturnUrl +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) UnsetReturnUrl()` -UnsetIntentAmountFloat ensures that no value is present for IntentAmountFloat, not even an explicit nil -### GetFormattedIntentAmount +UnsetReturnUrl ensures that no value is present for ReturnUrl, not even an explicit nil +### GetReceiptEmail -`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetFormattedIntentAmount() interface{}` +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetReceiptEmail() interface{}` -GetFormattedIntentAmount returns the FormattedIntentAmount field if non-nil, zero value otherwise. +GetReceiptEmail returns the ReceiptEmail field if non-nil, zero value otherwise. -### GetFormattedIntentAmountOk +### GetReceiptEmailOk -`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetFormattedIntentAmountOk() (*interface{}, bool)` +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetReceiptEmailOk() (*interface{}, bool)` -GetFormattedIntentAmountOk returns a tuple with the FormattedIntentAmount field if it's non-nil, zero value otherwise +GetReceiptEmailOk returns a tuple with the ReceiptEmail field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetFormattedIntentAmount +### SetReceiptEmail -`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetFormattedIntentAmount(v interface{})` +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetReceiptEmail(v interface{})` -SetFormattedIntentAmount sets FormattedIntentAmount field to given value. +SetReceiptEmail sets ReceiptEmail field to given value. -### HasFormattedIntentAmount +### HasReceiptEmail -`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) HasFormattedIntentAmount() bool` +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) HasReceiptEmail() bool` -HasFormattedIntentAmount returns a boolean if a field has been set. +HasReceiptEmail returns a boolean if a field has been set. -### SetFormattedIntentAmountNil +### SetReceiptEmailNil -`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetFormattedIntentAmountNil(b bool)` +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetReceiptEmailNil(b bool)` - SetFormattedIntentAmountNil sets the value for FormattedIntentAmount to be an explicit nil + SetReceiptEmailNil sets the value for ReceiptEmail to be an explicit nil -### UnsetFormattedIntentAmount -`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) UnsetFormattedIntentAmount()` +### UnsetReceiptEmail +`func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) UnsetReceiptEmail()` -UnsetFormattedIntentAmount ensures that no value is present for FormattedIntentAmount, not even an explicit nil +UnsetReceiptEmail ensures that no value is present for ReceiptEmail, not even an explicit nil ### GetPaymentInstrument `func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetPaymentInstrument() interface{}` diff --git a/api/docs/GETSubscriptionModelsSubscriptionModelId200ResponseDataAttributes.md b/api/docs/GETSubscriptionModelsSubscriptionModelId200ResponseDataAttributes.md index af498d0a..804ddc0e 100644 --- a/api/docs/GETSubscriptionModelsSubscriptionModelId200ResponseDataAttributes.md +++ b/api/docs/GETSubscriptionModelsSubscriptionModelId200ResponseDataAttributes.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETTags200Response.md b/api/docs/GETTags200Response.md new file mode 100644 index 00000000..8f76e14d --- /dev/null +++ b/api/docs/GETTags200Response.md @@ -0,0 +1,66 @@ +# GETTags200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewGETTags200Response + +`func NewGETTags200Response() *GETTags200Response` + +NewGETTags200Response instantiates a new GETTags200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETTags200ResponseWithDefaults + +`func NewGETTags200ResponseWithDefaults() *GETTags200Response` + +NewGETTags200ResponseWithDefaults instantiates a new GETTags200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETTags200Response) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETTags200Response) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETTags200Response) SetData(v interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETTags200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *GETTags200Response) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *GETTags200Response) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETTagsTagId200Response.md b/api/docs/GETTagsTagId200Response.md new file mode 100644 index 00000000..8a285891 --- /dev/null +++ b/api/docs/GETTagsTagId200Response.md @@ -0,0 +1,56 @@ +# GETTagsTagId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**GETTagsTagId200ResponseData**](GETTagsTagId200ResponseData.md) | | [optional] + +## Methods + +### NewGETTagsTagId200Response + +`func NewGETTagsTagId200Response() *GETTagsTagId200Response` + +NewGETTagsTagId200Response instantiates a new GETTagsTagId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETTagsTagId200ResponseWithDefaults + +`func NewGETTagsTagId200ResponseWithDefaults() *GETTagsTagId200Response` + +NewGETTagsTagId200ResponseWithDefaults instantiates a new GETTagsTagId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETTagsTagId200Response) GetData() GETTagsTagId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETTagsTagId200Response) GetDataOk() (*GETTagsTagId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETTagsTagId200Response) SetData(v GETTagsTagId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETTagsTagId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETTagsTagId200ResponseData.md b/api/docs/GETTagsTagId200ResponseData.md new file mode 100644 index 00000000..e822b255 --- /dev/null +++ b/api/docs/GETTagsTagId200ResponseData.md @@ -0,0 +1,190 @@ +# GETTagsTagId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**GETTagsTagId200ResponseDataAttributes**](GETTagsTagId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewGETTagsTagId200ResponseData + +`func NewGETTagsTagId200ResponseData() *GETTagsTagId200ResponseData` + +NewGETTagsTagId200ResponseData instantiates a new GETTagsTagId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETTagsTagId200ResponseDataWithDefaults + +`func NewGETTagsTagId200ResponseDataWithDefaults() *GETTagsTagId200ResponseData` + +NewGETTagsTagId200ResponseDataWithDefaults instantiates a new GETTagsTagId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *GETTagsTagId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GETTagsTagId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *GETTagsTagId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *GETTagsTagId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *GETTagsTagId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *GETTagsTagId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *GETTagsTagId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETTagsTagId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETTagsTagId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETTagsTagId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETTagsTagId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETTagsTagId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *GETTagsTagId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *GETTagsTagId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *GETTagsTagId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *GETTagsTagId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *GETTagsTagId200ResponseData) GetAttributes() GETTagsTagId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *GETTagsTagId200ResponseData) GetAttributesOk() (*GETTagsTagId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *GETTagsTagId200ResponseData) SetAttributes(v GETTagsTagId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *GETTagsTagId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *GETTagsTagId200ResponseData) GetRelationships() interface{}` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *GETTagsTagId200ResponseData) GetRelationshipsOk() (*interface{}, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *GETTagsTagId200ResponseData) SetRelationships(v interface{})` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *GETTagsTagId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### SetRelationshipsNil + +`func (o *GETTagsTagId200ResponseData) SetRelationshipsNil(b bool)` + + SetRelationshipsNil sets the value for Relationships to be an explicit nil + +### UnsetRelationships +`func (o *GETTagsTagId200ResponseData) UnsetRelationships()` + +UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETTagsTagId200ResponseDataAttributes.md b/api/docs/GETTagsTagId200ResponseDataAttributes.md new file mode 100644 index 00000000..4ebdcd91 --- /dev/null +++ b/api/docs/GETTagsTagId200ResponseDataAttributes.md @@ -0,0 +1,246 @@ +# GETTagsTagId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **interface{}** | The tag name. | [optional] +**CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] +**UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewGETTagsTagId200ResponseDataAttributes + +`func NewGETTagsTagId200ResponseDataAttributes() *GETTagsTagId200ResponseDataAttributes` + +NewGETTagsTagId200ResponseDataAttributes instantiates a new GETTagsTagId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETTagsTagId200ResponseDataAttributesWithDefaults + +`func NewGETTagsTagId200ResponseDataAttributesWithDefaults() *GETTagsTagId200ResponseDataAttributes` + +NewGETTagsTagId200ResponseDataAttributesWithDefaults instantiates a new GETTagsTagId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *GETTagsTagId200ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *GETTagsTagId200ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *GETTagsTagId200ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + +### HasName + +`func (o *GETTagsTagId200ResponseDataAttributes) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *GETTagsTagId200ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *GETTagsTagId200ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCreatedAt + +`func (o *GETTagsTagId200ResponseDataAttributes) GetCreatedAt() interface{}` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *GETTagsTagId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *GETTagsTagId200ResponseDataAttributes) SetCreatedAt(v interface{})` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *GETTagsTagId200ResponseDataAttributes) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### SetCreatedAtNil + +`func (o *GETTagsTagId200ResponseDataAttributes) SetCreatedAtNil(b bool)` + + SetCreatedAtNil sets the value for CreatedAt to be an explicit nil + +### UnsetCreatedAt +`func (o *GETTagsTagId200ResponseDataAttributes) UnsetCreatedAt()` + +UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil +### GetUpdatedAt + +`func (o *GETTagsTagId200ResponseDataAttributes) GetUpdatedAt() interface{}` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *GETTagsTagId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *GETTagsTagId200ResponseDataAttributes) SetUpdatedAt(v interface{})` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *GETTagsTagId200ResponseDataAttributes) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### SetUpdatedAtNil + +`func (o *GETTagsTagId200ResponseDataAttributes) SetUpdatedAtNil(b bool)` + + SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil + +### UnsetUpdatedAt +`func (o *GETTagsTagId200ResponseDataAttributes) UnsetUpdatedAt()` + +UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil +### GetReference + +`func (o *GETTagsTagId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *GETTagsTagId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *GETTagsTagId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *GETTagsTagId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *GETTagsTagId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *GETTagsTagId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *GETTagsTagId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *GETTagsTagId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *GETTagsTagId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *GETTagsTagId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *GETTagsTagId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *GETTagsTagId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *GETTagsTagId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *GETTagsTagId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *GETTagsTagId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *GETTagsTagId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *GETTagsTagId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *GETTagsTagId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETTaxCategoriesTaxCategoryId200ResponseDataAttributes.md b/api/docs/GETTaxCategoriesTaxCategoryId200ResponseDataAttributes.md index d2abbcfe..b7125c77 100644 --- a/api/docs/GETTaxCategoriesTaxCategoryId200ResponseDataAttributes.md +++ b/api/docs/GETTaxCategoriesTaxCategoryId200ResponseDataAttributes.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETTaxRulesTaxRuleId200ResponseDataAttributes.md b/api/docs/GETTaxRulesTaxRuleId200ResponseDataAttributes.md index 6b4cc0f3..ce00a1c4 100644 --- a/api/docs/GETTaxRulesTaxRuleId200ResponseDataAttributes.md +++ b/api/docs/GETTaxRulesTaxRuleId200ResponseDataAttributes.md @@ -20,7 +20,7 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GETTaxjarAccountsTaxjarAccountId200ResponseData.md b/api/docs/GETTaxjarAccountsTaxjarAccountId200ResponseData.md index 6879f987..cef25928 100644 --- a/api/docs/GETTaxjarAccountsTaxjarAccountId200ResponseData.md +++ b/api/docs/GETTaxjarAccountsTaxjarAccountId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes**](GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationships**](POSTAvalaraAccounts201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTTaxjarAccounts201ResponseDataRelationships**](POSTTaxjarAccounts201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *GETTaxjarAccountsTaxjarAccountId200ResponseData) GetRelationships() POSTAvalaraAccounts201ResponseDataRelationships` +`func (o *GETTaxjarAccountsTaxjarAccountId200ResponseData) GetRelationships() POSTTaxjarAccounts201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *GETTaxjarAccountsTaxjarAccountId200ResponseData) GetRelationshipsOk() (*POSTAvalaraAccounts201ResponseDataRelationships, bool)` +`func (o *GETTaxjarAccountsTaxjarAccountId200ResponseData) GetRelationshipsOk() (*POSTTaxjarAccounts201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *GETTaxjarAccountsTaxjarAccountId200ResponseData) SetRelationships(v POSTAvalaraAccounts201ResponseDataRelationships)` +`func (o *GETTaxjarAccountsTaxjarAccountId200ResponseData) SetRelationships(v POSTTaxjarAccounts201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/GETTransactionsTransactionId200ResponseDataRelationships.md b/api/docs/GETTransactionsTransactionId200ResponseDataRelationships.md index 6e5ce86b..61cc5799 100644 --- a/api/docs/GETTransactionsTransactionId200ResponseDataRelationships.md +++ b/api/docs/GETTransactionsTransactionId200ResponseDataRelationships.md @@ -5,6 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Order** | Pointer to [**POSTAdyenPayments201ResponseDataRelationshipsOrder**](POSTAdyenPayments201ResponseDataRelationshipsOrder.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -50,6 +53,81 @@ SetOrder sets Order field to given value. HasOrder returns a boolean if a field has been set. +### GetAttachments + +`func (o *GETTransactionsTransactionId200ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *GETTransactionsTransactionId200ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *GETTransactionsTransactionId200ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *GETTransactionsTransactionId200ResponseDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + +### GetEvents + +`func (o *GETTransactionsTransactionId200ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *GETTransactionsTransactionId200ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *GETTransactionsTransactionId200ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *GETTransactionsTransactionId200ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetVersions + +`func (o *GETTransactionsTransactionId200ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *GETTransactionsTransactionId200ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *GETTransactionsTransactionId200ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *GETTransactionsTransactionId200ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/GETVersions200Response.md b/api/docs/GETVersions200Response.md new file mode 100644 index 00000000..29eb444e --- /dev/null +++ b/api/docs/GETVersions200Response.md @@ -0,0 +1,66 @@ +# GETVersions200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewGETVersions200Response + +`func NewGETVersions200Response() *GETVersions200Response` + +NewGETVersions200Response instantiates a new GETVersions200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETVersions200ResponseWithDefaults + +`func NewGETVersions200ResponseWithDefaults() *GETVersions200Response` + +NewGETVersions200ResponseWithDefaults instantiates a new GETVersions200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETVersions200Response) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETVersions200Response) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETVersions200Response) SetData(v interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETVersions200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *GETVersions200Response) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *GETVersions200Response) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETVersionsVersionId200Response.md b/api/docs/GETVersionsVersionId200Response.md new file mode 100644 index 00000000..258d164d --- /dev/null +++ b/api/docs/GETVersionsVersionId200Response.md @@ -0,0 +1,56 @@ +# GETVersionsVersionId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**GETVersionsVersionId200ResponseData**](GETVersionsVersionId200ResponseData.md) | | [optional] + +## Methods + +### NewGETVersionsVersionId200Response + +`func NewGETVersionsVersionId200Response() *GETVersionsVersionId200Response` + +NewGETVersionsVersionId200Response instantiates a new GETVersionsVersionId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETVersionsVersionId200ResponseWithDefaults + +`func NewGETVersionsVersionId200ResponseWithDefaults() *GETVersionsVersionId200Response` + +NewGETVersionsVersionId200ResponseWithDefaults instantiates a new GETVersionsVersionId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *GETVersionsVersionId200Response) GetData() GETVersionsVersionId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GETVersionsVersionId200Response) GetDataOk() (*GETVersionsVersionId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GETVersionsVersionId200Response) SetData(v GETVersionsVersionId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *GETVersionsVersionId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETVersionsVersionId200ResponseData.md b/api/docs/GETVersionsVersionId200ResponseData.md new file mode 100644 index 00000000..b7cf78b5 --- /dev/null +++ b/api/docs/GETVersionsVersionId200ResponseData.md @@ -0,0 +1,190 @@ +# GETVersionsVersionId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**GETVersionsVersionId200ResponseDataAttributes**](GETVersionsVersionId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewGETVersionsVersionId200ResponseData + +`func NewGETVersionsVersionId200ResponseData() *GETVersionsVersionId200ResponseData` + +NewGETVersionsVersionId200ResponseData instantiates a new GETVersionsVersionId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETVersionsVersionId200ResponseDataWithDefaults + +`func NewGETVersionsVersionId200ResponseDataWithDefaults() *GETVersionsVersionId200ResponseData` + +NewGETVersionsVersionId200ResponseDataWithDefaults instantiates a new GETVersionsVersionId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *GETVersionsVersionId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *GETVersionsVersionId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *GETVersionsVersionId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *GETVersionsVersionId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *GETVersionsVersionId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *GETVersionsVersionId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *GETVersionsVersionId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *GETVersionsVersionId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *GETVersionsVersionId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *GETVersionsVersionId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *GETVersionsVersionId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *GETVersionsVersionId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *GETVersionsVersionId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *GETVersionsVersionId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *GETVersionsVersionId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *GETVersionsVersionId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *GETVersionsVersionId200ResponseData) GetAttributes() GETVersionsVersionId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *GETVersionsVersionId200ResponseData) GetAttributesOk() (*GETVersionsVersionId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *GETVersionsVersionId200ResponseData) SetAttributes(v GETVersionsVersionId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *GETVersionsVersionId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *GETVersionsVersionId200ResponseData) GetRelationships() interface{}` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *GETVersionsVersionId200ResponseData) GetRelationshipsOk() (*interface{}, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *GETVersionsVersionId200ResponseData) SetRelationships(v interface{})` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *GETVersionsVersionId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### SetRelationshipsNil + +`func (o *GETVersionsVersionId200ResponseData) SetRelationshipsNil(b bool)` + + SetRelationshipsNil sets the value for Relationships to be an explicit nil + +### UnsetRelationships +`func (o *GETVersionsVersionId200ResponseData) UnsetRelationships()` + +UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETVersionsVersionId200ResponseDataAttributes.md b/api/docs/GETVersionsVersionId200ResponseDataAttributes.md new file mode 100644 index 00000000..522148d4 --- /dev/null +++ b/api/docs/GETVersionsVersionId200ResponseDataAttributes.md @@ -0,0 +1,390 @@ +# GETVersionsVersionId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceType** | Pointer to **interface{}** | The type of the versioned resource. | [optional] +**ResourceId** | Pointer to **interface{}** | The versioned resource id. | [optional] +**Event** | Pointer to **interface{}** | The event which generates the version. | [optional] +**Changes** | Pointer to **interface{}** | The object changes payload. | [optional] +**Who** | Pointer to **interface{}** | Information about who triggered the change. | [optional] +**CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] +**UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewGETVersionsVersionId200ResponseDataAttributes + +`func NewGETVersionsVersionId200ResponseDataAttributes() *GETVersionsVersionId200ResponseDataAttributes` + +NewGETVersionsVersionId200ResponseDataAttributes instantiates a new GETVersionsVersionId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGETVersionsVersionId200ResponseDataAttributesWithDefaults + +`func NewGETVersionsVersionId200ResponseDataAttributesWithDefaults() *GETVersionsVersionId200ResponseDataAttributes` + +NewGETVersionsVersionId200ResponseDataAttributesWithDefaults instantiates a new GETVersionsVersionId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResourceType + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetResourceType() interface{}` + +GetResourceType returns the ResourceType field if non-nil, zero value otherwise. + +### GetResourceTypeOk + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetResourceTypeOk() (*interface{}, bool)` + +GetResourceTypeOk returns a tuple with the ResourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceType + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetResourceType(v interface{})` + +SetResourceType sets ResourceType field to given value. + +### HasResourceType + +`func (o *GETVersionsVersionId200ResponseDataAttributes) HasResourceType() bool` + +HasResourceType returns a boolean if a field has been set. + +### SetResourceTypeNil + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetResourceTypeNil(b bool)` + + SetResourceTypeNil sets the value for ResourceType to be an explicit nil + +### UnsetResourceType +`func (o *GETVersionsVersionId200ResponseDataAttributes) UnsetResourceType()` + +UnsetResourceType ensures that no value is present for ResourceType, not even an explicit nil +### GetResourceId + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetResourceId() interface{}` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetResourceIdOk() (*interface{}, bool)` + +GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceId + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetResourceId(v interface{})` + +SetResourceId sets ResourceId field to given value. + +### HasResourceId + +`func (o *GETVersionsVersionId200ResponseDataAttributes) HasResourceId() bool` + +HasResourceId returns a boolean if a field has been set. + +### SetResourceIdNil + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetResourceIdNil(b bool)` + + SetResourceIdNil sets the value for ResourceId to be an explicit nil + +### UnsetResourceId +`func (o *GETVersionsVersionId200ResponseDataAttributes) UnsetResourceId()` + +UnsetResourceId ensures that no value is present for ResourceId, not even an explicit nil +### GetEvent + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetEvent() interface{}` + +GetEvent returns the Event field if non-nil, zero value otherwise. + +### GetEventOk + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetEventOk() (*interface{}, bool)` + +GetEventOk returns a tuple with the Event field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvent + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetEvent(v interface{})` + +SetEvent sets Event field to given value. + +### HasEvent + +`func (o *GETVersionsVersionId200ResponseDataAttributes) HasEvent() bool` + +HasEvent returns a boolean if a field has been set. + +### SetEventNil + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetEventNil(b bool)` + + SetEventNil sets the value for Event to be an explicit nil + +### UnsetEvent +`func (o *GETVersionsVersionId200ResponseDataAttributes) UnsetEvent()` + +UnsetEvent ensures that no value is present for Event, not even an explicit nil +### GetChanges + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetChanges() interface{}` + +GetChanges returns the Changes field if non-nil, zero value otherwise. + +### GetChangesOk + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetChangesOk() (*interface{}, bool)` + +GetChangesOk returns a tuple with the Changes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChanges + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetChanges(v interface{})` + +SetChanges sets Changes field to given value. + +### HasChanges + +`func (o *GETVersionsVersionId200ResponseDataAttributes) HasChanges() bool` + +HasChanges returns a boolean if a field has been set. + +### SetChangesNil + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetChangesNil(b bool)` + + SetChangesNil sets the value for Changes to be an explicit nil + +### UnsetChanges +`func (o *GETVersionsVersionId200ResponseDataAttributes) UnsetChanges()` + +UnsetChanges ensures that no value is present for Changes, not even an explicit nil +### GetWho + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetWho() interface{}` + +GetWho returns the Who field if non-nil, zero value otherwise. + +### GetWhoOk + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetWhoOk() (*interface{}, bool)` + +GetWhoOk returns a tuple with the Who field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWho + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetWho(v interface{})` + +SetWho sets Who field to given value. + +### HasWho + +`func (o *GETVersionsVersionId200ResponseDataAttributes) HasWho() bool` + +HasWho returns a boolean if a field has been set. + +### SetWhoNil + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetWhoNil(b bool)` + + SetWhoNil sets the value for Who to be an explicit nil + +### UnsetWho +`func (o *GETVersionsVersionId200ResponseDataAttributes) UnsetWho()` + +UnsetWho ensures that no value is present for Who, not even an explicit nil +### GetCreatedAt + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetCreatedAt() interface{}` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetCreatedAt(v interface{})` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *GETVersionsVersionId200ResponseDataAttributes) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### SetCreatedAtNil + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetCreatedAtNil(b bool)` + + SetCreatedAtNil sets the value for CreatedAt to be an explicit nil + +### UnsetCreatedAt +`func (o *GETVersionsVersionId200ResponseDataAttributes) UnsetCreatedAt()` + +UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil +### GetUpdatedAt + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetUpdatedAt() interface{}` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetUpdatedAt(v interface{})` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *GETVersionsVersionId200ResponseDataAttributes) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### SetUpdatedAtNil + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetUpdatedAtNil(b bool)` + + SetUpdatedAtNil sets the value for UpdatedAt to be an explicit nil + +### UnsetUpdatedAt +`func (o *GETVersionsVersionId200ResponseDataAttributes) UnsetUpdatedAt()` + +UnsetUpdatedAt ensures that no value is present for UpdatedAt, not even an explicit nil +### GetReference + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *GETVersionsVersionId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *GETVersionsVersionId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *GETVersionsVersionId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *GETVersionsVersionId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *GETVersionsVersionId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *GETVersionsVersionId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *GETVersionsVersionId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *GETVersionsVersionId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/GETVoidsVoidId200ResponseDataRelationships.md b/api/docs/GETVoidsVoidId200ResponseDataRelationships.md index aa4be6ab..94a84c13 100644 --- a/api/docs/GETVoidsVoidId200ResponseDataRelationships.md +++ b/api/docs/GETVoidsVoidId200ResponseDataRelationships.md @@ -5,8 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Order** | Pointer to [**POSTAdyenPayments201ResponseDataRelationshipsOrder**](POSTAdyenPayments201ResponseDataRelationshipsOrder.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] **ReferenceAuthorization** | Pointer to [**GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization**](GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] ## Methods @@ -52,47 +54,47 @@ SetOrder sets Order field to given value. HasOrder returns a boolean if a field has been set. -### GetReferenceAuthorization +### GetAttachments -`func (o *GETVoidsVoidId200ResponseDataRelationships) GetReferenceAuthorization() GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization` +`func (o *GETVoidsVoidId200ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` -GetReferenceAuthorization returns the ReferenceAuthorization field if non-nil, zero value otherwise. +GetAttachments returns the Attachments field if non-nil, zero value otherwise. -### GetReferenceAuthorizationOk +### GetAttachmentsOk -`func (o *GETVoidsVoidId200ResponseDataRelationships) GetReferenceAuthorizationOk() (*GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization, bool)` +`func (o *GETVoidsVoidId200ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` -GetReferenceAuthorizationOk returns a tuple with the ReferenceAuthorization field if it's non-nil, zero value otherwise +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetReferenceAuthorization +### SetAttachments -`func (o *GETVoidsVoidId200ResponseDataRelationships) SetReferenceAuthorization(v GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization)` +`func (o *GETVoidsVoidId200ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` -SetReferenceAuthorization sets ReferenceAuthorization field to given value. +SetAttachments sets Attachments field to given value. -### HasReferenceAuthorization +### HasAttachments -`func (o *GETVoidsVoidId200ResponseDataRelationships) HasReferenceAuthorization() bool` +`func (o *GETVoidsVoidId200ResponseDataRelationships) HasAttachments() bool` -HasReferenceAuthorization returns a boolean if a field has been set. +HasAttachments returns a boolean if a field has been set. ### GetEvents -`func (o *GETVoidsVoidId200ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` +`func (o *GETVoidsVoidId200ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *GETVoidsVoidId200ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` +`func (o *GETVoidsVoidId200ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *GETVoidsVoidId200ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` +`func (o *GETVoidsVoidId200ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -102,6 +104,56 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetVersions + +`func (o *GETVoidsVoidId200ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *GETVoidsVoidId200ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *GETVoidsVoidId200ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *GETVoidsVoidId200ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + +### GetReferenceAuthorization + +`func (o *GETVoidsVoidId200ResponseDataRelationships) GetReferenceAuthorization() GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization` + +GetReferenceAuthorization returns the ReferenceAuthorization field if non-nil, zero value otherwise. + +### GetReferenceAuthorizationOk + +`func (o *GETVoidsVoidId200ResponseDataRelationships) GetReferenceAuthorizationOk() (*GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization, bool)` + +GetReferenceAuthorizationOk returns a tuple with the ReferenceAuthorization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceAuthorization + +`func (o *GETVoidsVoidId200ResponseDataRelationships) SetReferenceAuthorization(v GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization)` + +SetReferenceAuthorization sets ReferenceAuthorization field to given value. + +### HasReferenceAuthorization + +`func (o *GETVoidsVoidId200ResponseDataRelationships) HasReferenceAuthorization() bool` + +HasReferenceAuthorization returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/GETWebhooksWebhookId200ResponseDataAttributes.md b/api/docs/GETWebhooksWebhookId200ResponseDataAttributes.md index 72cef7b7..42f60bff 100644 --- a/api/docs/GETWebhooksWebhookId200ResponseDataAttributes.md +++ b/api/docs/GETWebhooksWebhookId200ResponseDataAttributes.md @@ -8,13 +8,14 @@ Name | Type | Description | Notes **Topic** | Pointer to **interface{}** | The identifier of the resource/event that will trigger the webhook. | [optional] **CallbackUrl** | Pointer to **interface{}** | URI where the webhook subscription should send the POST request when the event occurs. | [optional] **IncludeResources** | Pointer to **interface{}** | List of related resources that should be included in the webhook body. | [optional] +**DisabledAt** | Pointer to **interface{}** | Time at which this resource was disabled. | [optional] **CircuitState** | Pointer to **interface{}** | The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. | [optional] -**CircuitFailureCount** | Pointer to **interface{}** | The number of consecutive failures recorded by the circuit breaker associated to this webhook, will be reset on first successful call to callback. | [optional] +**CircuitFailureCount** | Pointer to **interface{}** | The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. | [optional] **SharedSecret** | Pointer to **interface{}** | The shared secret used to sign the external request payload. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -176,6 +177,41 @@ HasIncludeResources returns a boolean if a field has been set. `func (o *GETWebhooksWebhookId200ResponseDataAttributes) UnsetIncludeResources()` UnsetIncludeResources ensures that no value is present for IncludeResources, not even an explicit nil +### GetDisabledAt + +`func (o *GETWebhooksWebhookId200ResponseDataAttributes) GetDisabledAt() interface{}` + +GetDisabledAt returns the DisabledAt field if non-nil, zero value otherwise. + +### GetDisabledAtOk + +`func (o *GETWebhooksWebhookId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool)` + +GetDisabledAtOk returns a tuple with the DisabledAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisabledAt + +`func (o *GETWebhooksWebhookId200ResponseDataAttributes) SetDisabledAt(v interface{})` + +SetDisabledAt sets DisabledAt field to given value. + +### HasDisabledAt + +`func (o *GETWebhooksWebhookId200ResponseDataAttributes) HasDisabledAt() bool` + +HasDisabledAt returns a boolean if a field has been set. + +### SetDisabledAtNil + +`func (o *GETWebhooksWebhookId200ResponseDataAttributes) SetDisabledAtNil(b bool)` + + SetDisabledAtNil sets the value for DisabledAt to be an explicit nil + +### UnsetDisabledAt +`func (o *GETWebhooksWebhookId200ResponseDataAttributes) UnsetDisabledAt()` + +UnsetDisabledAt ensures that no value is present for DisabledAt, not even an explicit nil ### GetCircuitState `func (o *GETWebhooksWebhookId200ResponseDataAttributes) GetCircuitState() interface{}` diff --git a/api/docs/GETWireTransfersWireTransferId200ResponseData.md b/api/docs/GETWireTransfersWireTransferId200ResponseData.md index 3b0c2b70..fbd689df 100644 --- a/api/docs/GETWireTransfersWireTransferId200ResponseData.md +++ b/api/docs/GETWireTransfersWireTransferId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**GETWireTransfersWireTransferId200ResponseDataAttributes**](GETWireTransfersWireTransferId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**GETTransactionsTransactionId200ResponseDataRelationships**](GETTransactionsTransactionId200ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTWireTransfers201ResponseDataRelationships**](POSTWireTransfers201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *GETWireTransfersWireTransferId200ResponseData) GetRelationships() GETTransactionsTransactionId200ResponseDataRelationships` +`func (o *GETWireTransfersWireTransferId200ResponseData) GetRelationships() POSTWireTransfers201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *GETWireTransfersWireTransferId200ResponseData) GetRelationshipsOk() (*GETTransactionsTransactionId200ResponseDataRelationships, bool)` +`func (o *GETWireTransfersWireTransferId200ResponseData) GetRelationshipsOk() (*POSTWireTransfers201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *GETWireTransfersWireTransferId200ResponseData) SetRelationships(v GETTransactionsTransactionId200ResponseDataRelationships)` +`func (o *GETWireTransfersWireTransferId200ResponseData) SetRelationships(v POSTWireTransfers201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/GETWireTransfersWireTransferId200ResponseDataAttributes.md b/api/docs/GETWireTransfersWireTransferId200ResponseDataAttributes.md index 14c9e46d..9081d22b 100644 --- a/api/docs/GETWireTransfersWireTransferId200ResponseDataAttributes.md +++ b/api/docs/GETWireTransfersWireTransferId200ResponseDataAttributes.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PaymentInstrument** | Pointer to **interface{}** | Information about the payment instrument used in the transaction | [optional] +**PaymentInstrument** | Pointer to **interface{}** | Information about the payment instrument used in the transaction. | [optional] **CreatedAt** | Pointer to **interface{}** | Time at which the resource was created. | [optional] **UpdatedAt** | Pointer to **interface{}** | Time at which the resource was last updated. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/GeocodersApi.md b/api/docs/GeocodersApi.md index fdb9728e..bda1f12e 100644 --- a/api/docs/GeocodersApi.md +++ b/api/docs/GeocodersApi.md @@ -7,6 +7,7 @@ Method | HTTP request | Description [**GETAddressIdGeocoder**](GeocodersApi.md#GETAddressIdGeocoder) | **Get** /addresses/{addressId}/geocoder | Retrieve the geocoder associated to the address [**GETGeocoders**](GeocodersApi.md#GETGeocoders) | **Get** /geocoders | List all geocoders [**GETGeocodersGeocoderId**](GeocodersApi.md#GETGeocodersGeocoderId) | **Get** /geocoders/{geocoderId} | Retrieve a geocoder +[**GETMarketIdGeocoder**](GeocodersApi.md#GETMarketIdGeocoder) | **Get** /markets/{marketId}/geocoder | Retrieve the geocoder associated to the market @@ -208,3 +209,71 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## GETMarketIdGeocoder + +> GETMarketIdGeocoder(ctx, marketId).Execute() + +Retrieve the geocoder associated to the market + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + marketId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.GeocodersApi.GETMarketIdGeocoder(context.Background(), marketId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GeocodersApi.GETMarketIdGeocoder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**marketId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETMarketIdGeocoderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/api/docs/GiftCardCreateDataRelationships.md b/api/docs/GiftCardCreateDataRelationships.md index d123b00f..c9da879e 100644 --- a/api/docs/GiftCardCreateDataRelationships.md +++ b/api/docs/GiftCardCreateDataRelationships.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Market** | Pointer to [**BillingInfoValidationRuleCreateDataRelationshipsMarket**](BillingInfoValidationRuleCreateDataRelationshipsMarket.md) | | [optional] **GiftCardRecipient** | Pointer to [**GiftCardCreateDataRelationshipsGiftCardRecipient**](GiftCardCreateDataRelationshipsGiftCardRecipient.md) | | [optional] +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] ## Methods @@ -76,6 +77,31 @@ SetGiftCardRecipient sets GiftCardRecipient field to given value. HasGiftCardRecipient returns a boolean if a field has been set. +### GetTags + +`func (o *GiftCardCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *GiftCardCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *GiftCardCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *GiftCardCreateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/GiftCardDataRelationships.md b/api/docs/GiftCardDataRelationships.md index 6cf113b4..c5f0ca2a 100644 --- a/api/docs/GiftCardDataRelationships.md +++ b/api/docs/GiftCardDataRelationships.md @@ -6,8 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Market** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] **GiftCardRecipient** | Pointer to [**GiftCardDataRelationshipsGiftCardRecipient**](GiftCardDataRelationshipsGiftCardRecipient.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**AddressDataRelationshipsTags**](AddressDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -80,20 +82,20 @@ HasGiftCardRecipient returns a boolean if a field has been set. ### GetAttachments -`func (o *GiftCardDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *GiftCardDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *GiftCardDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *GiftCardDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *GiftCardDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *GiftCardDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -105,20 +107,20 @@ HasAttachments returns a boolean if a field has been set. ### GetEvents -`func (o *GiftCardDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` +`func (o *GiftCardDataRelationships) GetEvents() AddressDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *GiftCardDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` +`func (o *GiftCardDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *GiftCardDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` +`func (o *GiftCardDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -128,6 +130,56 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetTags + +`func (o *GiftCardDataRelationships) GetTags() AddressDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *GiftCardDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *GiftCardDataRelationships) SetTags(v AddressDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *GiftCardDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *GiftCardDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *GiftCardDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *GiftCardDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *GiftCardDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/HasManyApi.md b/api/docs/HasManyApi.md index 829958dc..ad9d387d 100644 --- a/api/docs/HasManyApi.md +++ b/api/docs/HasManyApi.md @@ -4,35 +4,74 @@ All URIs are relative to *https://.commercelayer.io/api* Method | HTTP request | Description ------------- | ------------- | ------------- +[**GETAddressIdEvents**](HasManyApi.md#GETAddressIdEvents) | **Get** /addresses/{addressId}/events | Retrieve the events associated to the address +[**GETAddressIdTags**](HasManyApi.md#GETAddressIdTags) | **Get** /addresses/{addressId}/tags | Retrieve the tags associated to the address +[**GETAddressIdVersions**](HasManyApi.md#GETAddressIdVersions) | **Get** /addresses/{addressId}/versions | Retrieve the versions associated to the address +[**GETAdjustmentIdVersions**](HasManyApi.md#GETAdjustmentIdVersions) | **Get** /adjustments/{adjustmentId}/versions | Retrieve the versions associated to the adjustment [**GETAdyenGatewayIdAdyenPayments**](HasManyApi.md#GETAdyenGatewayIdAdyenPayments) | **Get** /adyen_gateways/{adyenGatewayId}/adyen_payments | Retrieve the adyen payments associated to the adyen gateway [**GETAdyenGatewayIdPaymentMethods**](HasManyApi.md#GETAdyenGatewayIdPaymentMethods) | **Get** /adyen_gateways/{adyenGatewayId}/payment_methods | Retrieve the payment methods associated to the adyen gateway +[**GETAdyenGatewayIdVersions**](HasManyApi.md#GETAdyenGatewayIdVersions) | **Get** /adyen_gateways/{adyenGatewayId}/versions | Retrieve the versions associated to the adyen gateway +[**GETAdyenPaymentIdVersions**](HasManyApi.md#GETAdyenPaymentIdVersions) | **Get** /adyen_payments/{adyenPaymentId}/versions | Retrieve the versions associated to the adyen payment +[**GETAuthorizationIdAttachments**](HasManyApi.md#GETAuthorizationIdAttachments) | **Get** /authorizations/{authorizationId}/attachments | Retrieve the attachments associated to the authorization [**GETAuthorizationIdCaptures**](HasManyApi.md#GETAuthorizationIdCaptures) | **Get** /authorizations/{authorizationId}/captures | Retrieve the captures associated to the authorization [**GETAuthorizationIdEvents**](HasManyApi.md#GETAuthorizationIdEvents) | **Get** /authorizations/{authorizationId}/events | Retrieve the events associated to the authorization +[**GETAuthorizationIdVersions**](HasManyApi.md#GETAuthorizationIdVersions) | **Get** /authorizations/{authorizationId}/versions | Retrieve the versions associated to the authorization [**GETAuthorizationIdVoids**](HasManyApi.md#GETAuthorizationIdVoids) | **Get** /authorizations/{authorizationId}/voids | Retrieve the voids associated to the authorization [**GETAvalaraAccountIdAttachments**](HasManyApi.md#GETAvalaraAccountIdAttachments) | **Get** /avalara_accounts/{avalaraAccountId}/attachments | Retrieve the attachments associated to the avalara account +[**GETAvalaraAccountIdEvents**](HasManyApi.md#GETAvalaraAccountIdEvents) | **Get** /avalara_accounts/{avalaraAccountId}/events | Retrieve the events associated to the avalara account [**GETAvalaraAccountIdMarkets**](HasManyApi.md#GETAvalaraAccountIdMarkets) | **Get** /avalara_accounts/{avalaraAccountId}/markets | Retrieve the markets associated to the avalara account [**GETAvalaraAccountIdTaxCategories**](HasManyApi.md#GETAvalaraAccountIdTaxCategories) | **Get** /avalara_accounts/{avalaraAccountId}/tax_categories | Retrieve the tax categories associated to the avalara account +[**GETAvalaraAccountIdVersions**](HasManyApi.md#GETAvalaraAccountIdVersions) | **Get** /avalara_accounts/{avalaraAccountId}/versions | Retrieve the versions associated to the avalara account [**GETAxerveGatewayIdAxervePayments**](HasManyApi.md#GETAxerveGatewayIdAxervePayments) | **Get** /axerve_gateways/{axerveGatewayId}/axerve_payments | Retrieve the axerve payments associated to the axerve gateway [**GETAxerveGatewayIdPaymentMethods**](HasManyApi.md#GETAxerveGatewayIdPaymentMethods) | **Get** /axerve_gateways/{axerveGatewayId}/payment_methods | Retrieve the payment methods associated to the axerve gateway +[**GETAxerveGatewayIdVersions**](HasManyApi.md#GETAxerveGatewayIdVersions) | **Get** /axerve_gateways/{axerveGatewayId}/versions | Retrieve the versions associated to the axerve gateway +[**GETAxervePaymentIdVersions**](HasManyApi.md#GETAxervePaymentIdVersions) | **Get** /axerve_payments/{axervePaymentId}/versions | Retrieve the versions associated to the axerve payment [**GETBillingInfoValidationRuleIdAttachments**](HasManyApi.md#GETBillingInfoValidationRuleIdAttachments) | **Get** /billing_info_validation_rules/{billingInfoValidationRuleId}/attachments | Retrieve the attachments associated to the billing info validation rule +[**GETBillingInfoValidationRuleIdVersions**](HasManyApi.md#GETBillingInfoValidationRuleIdVersions) | **Get** /billing_info_validation_rules/{billingInfoValidationRuleId}/versions | Retrieve the versions associated to the billing info validation rule [**GETBingGeocoderIdAddresses**](HasManyApi.md#GETBingGeocoderIdAddresses) | **Get** /bing_geocoders/{bingGeocoderId}/addresses | Retrieve the addresses associated to the bing geocoder [**GETBingGeocoderIdAttachments**](HasManyApi.md#GETBingGeocoderIdAttachments) | **Get** /bing_geocoders/{bingGeocoderId}/attachments | Retrieve the attachments associated to the bing geocoder +[**GETBingGeocoderIdMarkets**](HasManyApi.md#GETBingGeocoderIdMarkets) | **Get** /bing_geocoders/{bingGeocoderId}/markets | Retrieve the markets associated to the bing geocoder [**GETBraintreeGatewayIdBraintreePayments**](HasManyApi.md#GETBraintreeGatewayIdBraintreePayments) | **Get** /braintree_gateways/{braintreeGatewayId}/braintree_payments | Retrieve the braintree payments associated to the braintree gateway [**GETBraintreeGatewayIdPaymentMethods**](HasManyApi.md#GETBraintreeGatewayIdPaymentMethods) | **Get** /braintree_gateways/{braintreeGatewayId}/payment_methods | Retrieve the payment methods associated to the braintree gateway +[**GETBraintreeGatewayIdVersions**](HasManyApi.md#GETBraintreeGatewayIdVersions) | **Get** /braintree_gateways/{braintreeGatewayId}/versions | Retrieve the versions associated to the braintree gateway +[**GETBraintreePaymentIdVersions**](HasManyApi.md#GETBraintreePaymentIdVersions) | **Get** /braintree_payments/{braintreePaymentId}/versions | Retrieve the versions associated to the braintree payment [**GETBundleIdAttachments**](HasManyApi.md#GETBundleIdAttachments) | **Get** /bundles/{bundleId}/attachments | Retrieve the attachments associated to the bundle +[**GETBundleIdEvents**](HasManyApi.md#GETBundleIdEvents) | **Get** /bundles/{bundleId}/events | Retrieve the events associated to the bundle [**GETBundleIdSkus**](HasManyApi.md#GETBundleIdSkus) | **Get** /bundles/{bundleId}/skus | Retrieve the skus associated to the bundle +[**GETBundleIdTags**](HasManyApi.md#GETBundleIdTags) | **Get** /bundles/{bundleId}/tags | Retrieve the tags associated to the bundle +[**GETBundleIdVersions**](HasManyApi.md#GETBundleIdVersions) | **Get** /bundles/{bundleId}/versions | Retrieve the versions associated to the bundle +[**GETBuyXPayYPromotionIdAttachments**](HasManyApi.md#GETBuyXPayYPromotionIdAttachments) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/attachments | Retrieve the attachments associated to the buy x pay y promotion +[**GETBuyXPayYPromotionIdCoupons**](HasManyApi.md#GETBuyXPayYPromotionIdCoupons) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/coupons | Retrieve the coupons associated to the buy x pay y promotion +[**GETBuyXPayYPromotionIdEvents**](HasManyApi.md#GETBuyXPayYPromotionIdEvents) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/events | Retrieve the events associated to the buy x pay y promotion +[**GETBuyXPayYPromotionIdSkus**](HasManyApi.md#GETBuyXPayYPromotionIdSkus) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/skus | Retrieve the skus associated to the buy x pay y promotion +[**GETBuyXPayYPromotionIdTags**](HasManyApi.md#GETBuyXPayYPromotionIdTags) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/tags | Retrieve the tags associated to the buy x pay y promotion +[**GETBuyXPayYPromotionIdVersions**](HasManyApi.md#GETBuyXPayYPromotionIdVersions) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/versions | Retrieve the versions associated to the buy x pay y promotion +[**GETCaptureIdAttachments**](HasManyApi.md#GETCaptureIdAttachments) | **Get** /captures/{captureId}/attachments | Retrieve the attachments associated to the capture [**GETCaptureIdEvents**](HasManyApi.md#GETCaptureIdEvents) | **Get** /captures/{captureId}/events | Retrieve the events associated to the capture [**GETCaptureIdRefunds**](HasManyApi.md#GETCaptureIdRefunds) | **Get** /captures/{captureId}/refunds | Retrieve the refunds associated to the capture +[**GETCaptureIdVersions**](HasManyApi.md#GETCaptureIdVersions) | **Get** /captures/{captureId}/versions | Retrieve the versions associated to the capture [**GETCarrierAccountIdAttachments**](HasManyApi.md#GETCarrierAccountIdAttachments) | **Get** /carrier_accounts/{carrierAccountId}/attachments | Retrieve the attachments associated to the carrier account +[**GETCarrierAccountIdVersions**](HasManyApi.md#GETCarrierAccountIdVersions) | **Get** /carrier_accounts/{carrierAccountId}/versions | Retrieve the versions associated to the carrier account [**GETCheckoutComGatewayIdCheckoutComPayments**](HasManyApi.md#GETCheckoutComGatewayIdCheckoutComPayments) | **Get** /checkout_com_gateways/{checkoutComGatewayId}/checkout_com_payments | Retrieve the checkout com payments associated to the checkout.com gateway [**GETCheckoutComGatewayIdPaymentMethods**](HasManyApi.md#GETCheckoutComGatewayIdPaymentMethods) | **Get** /checkout_com_gateways/{checkoutComGatewayId}/payment_methods | Retrieve the payment methods associated to the checkout.com gateway +[**GETCheckoutComGatewayIdVersions**](HasManyApi.md#GETCheckoutComGatewayIdVersions) | **Get** /checkout_com_gateways/{checkoutComGatewayId}/versions | Retrieve the versions associated to the checkout.com gateway +[**GETCheckoutComPaymentIdVersions**](HasManyApi.md#GETCheckoutComPaymentIdVersions) | **Get** /checkout_com_payments/{checkoutComPaymentId}/versions | Retrieve the versions associated to the checkout.com payment [**GETCleanupIdEvents**](HasManyApi.md#GETCleanupIdEvents) | **Get** /cleanups/{cleanupId}/events | Retrieve the events associated to the cleanup +[**GETCleanupIdVersions**](HasManyApi.md#GETCleanupIdVersions) | **Get** /cleanups/{cleanupId}/versions | Retrieve the versions associated to the cleanup [**GETCouponCodesPromotionRuleIdCoupons**](HasManyApi.md#GETCouponCodesPromotionRuleIdCoupons) | **Get** /coupon_codes_promotion_rules/{couponCodesPromotionRuleId}/coupons | Retrieve the coupons associated to the coupon codes promotion rule +[**GETCouponCodesPromotionRuleIdVersions**](HasManyApi.md#GETCouponCodesPromotionRuleIdVersions) | **Get** /coupon_codes_promotion_rules/{couponCodesPromotionRuleId}/versions | Retrieve the versions associated to the coupon codes promotion rule +[**GETCouponIdEvents**](HasManyApi.md#GETCouponIdEvents) | **Get** /coupons/{couponId}/events | Retrieve the events associated to the coupon +[**GETCouponIdTags**](HasManyApi.md#GETCouponIdTags) | **Get** /coupons/{couponId}/tags | Retrieve the tags associated to the coupon +[**GETCouponIdVersions**](HasManyApi.md#GETCouponIdVersions) | **Get** /coupons/{couponId}/versions | Retrieve the versions associated to the coupon [**GETCouponRecipientIdAttachments**](HasManyApi.md#GETCouponRecipientIdAttachments) | **Get** /coupon_recipients/{couponRecipientId}/attachments | Retrieve the attachments associated to the coupon recipient +[**GETCouponRecipientIdVersions**](HasManyApi.md#GETCouponRecipientIdVersions) | **Get** /coupon_recipients/{couponRecipientId}/versions | Retrieve the versions associated to the coupon recipient +[**GETCustomPromotionRuleIdVersions**](HasManyApi.md#GETCustomPromotionRuleIdVersions) | **Get** /custom_promotion_rules/{customPromotionRuleId}/versions | Retrieve the versions associated to the custom promotion rule [**GETCustomerAddressIdEvents**](HasManyApi.md#GETCustomerAddressIdEvents) | **Get** /customer_addresses/{customerAddressId}/events | Retrieve the events associated to the customer address +[**GETCustomerAddressIdVersions**](HasManyApi.md#GETCustomerAddressIdVersions) | **Get** /customer_addresses/{customerAddressId}/versions | Retrieve the versions associated to the customer address [**GETCustomerGroupIdAttachments**](HasManyApi.md#GETCustomerGroupIdAttachments) | **Get** /customer_groups/{customerGroupId}/attachments | Retrieve the attachments associated to the customer group [**GETCustomerGroupIdCustomers**](HasManyApi.md#GETCustomerGroupIdCustomers) | **Get** /customer_groups/{customerGroupId}/customers | Retrieve the customers associated to the customer group [**GETCustomerGroupIdMarkets**](HasManyApi.md#GETCustomerGroupIdMarkets) | **Get** /customer_groups/{customerGroupId}/markets | Retrieve the markets associated to the customer group +[**GETCustomerGroupIdVersions**](HasManyApi.md#GETCustomerGroupIdVersions) | **Get** /customer_groups/{customerGroupId}/versions | Retrieve the versions associated to the customer group [**GETCustomerIdAttachments**](HasManyApi.md#GETCustomerIdAttachments) | **Get** /customers/{customerId}/attachments | Retrieve the attachments associated to the customer [**GETCustomerIdCustomerAddresses**](HasManyApi.md#GETCustomerIdCustomerAddresses) | **Get** /customers/{customerId}/customer_addresses | Retrieve the customer addresses associated to the customer [**GETCustomerIdCustomerPaymentSources**](HasManyApi.md#GETCustomerIdCustomerPaymentSources) | **Get** /customers/{customerId}/customer_payment_sources | Retrieve the customer payment sources associated to the customer @@ -42,51 +81,104 @@ Method | HTTP request | Description [**GETCustomerIdOrders**](HasManyApi.md#GETCustomerIdOrders) | **Get** /customers/{customerId}/orders | Retrieve the orders associated to the customer [**GETCustomerIdReturns**](HasManyApi.md#GETCustomerIdReturns) | **Get** /customers/{customerId}/returns | Retrieve the returns associated to the customer [**GETCustomerIdSkuLists**](HasManyApi.md#GETCustomerIdSkuLists) | **Get** /customers/{customerId}/sku_lists | Retrieve the sku lists associated to the customer +[**GETCustomerIdTags**](HasManyApi.md#GETCustomerIdTags) | **Get** /customers/{customerId}/tags | Retrieve the tags associated to the customer [**GETCustomerPasswordResetIdEvents**](HasManyApi.md#GETCustomerPasswordResetIdEvents) | **Get** /customer_password_resets/{customerPasswordResetId}/events | Retrieve the events associated to the customer password reset +[**GETCustomerPaymentSourceIdVersions**](HasManyApi.md#GETCustomerPaymentSourceIdVersions) | **Get** /customer_payment_sources/{customerPaymentSourceId}/versions | Retrieve the versions associated to the customer payment source [**GETCustomerSubscriptionIdEvents**](HasManyApi.md#GETCustomerSubscriptionIdEvents) | **Get** /customer_subscriptions/{customerSubscriptionId}/events | Retrieve the events associated to the customer subscription +[**GETCustomerSubscriptionIdVersions**](HasManyApi.md#GETCustomerSubscriptionIdVersions) | **Get** /customer_subscriptions/{customerSubscriptionId}/versions | Retrieve the versions associated to the customer subscription [**GETDeliveryLeadTimeIdAttachments**](HasManyApi.md#GETDeliveryLeadTimeIdAttachments) | **Get** /delivery_lead_times/{deliveryLeadTimeId}/attachments | Retrieve the attachments associated to the delivery lead time +[**GETDeliveryLeadTimeIdVersions**](HasManyApi.md#GETDeliveryLeadTimeIdVersions) | **Get** /delivery_lead_times/{deliveryLeadTimeId}/versions | Retrieve the versions associated to the delivery lead time [**GETEventIdLastEventCallbacks**](HasManyApi.md#GETEventIdLastEventCallbacks) | **Get** /events/{eventId}/last_event_callbacks | Retrieve the last event callbacks associated to the event [**GETEventIdWebhooks**](HasManyApi.md#GETEventIdWebhooks) | **Get** /events/{eventId}/webhooks | Retrieve the webhooks associated to the event [**GETExportIdEvents**](HasManyApi.md#GETExportIdEvents) | **Get** /exports/{exportId}/events | Retrieve the events associated to the export [**GETExternalGatewayIdExternalPayments**](HasManyApi.md#GETExternalGatewayIdExternalPayments) | **Get** /external_gateways/{externalGatewayId}/external_payments | Retrieve the external payments associated to the external gateway [**GETExternalGatewayIdPaymentMethods**](HasManyApi.md#GETExternalGatewayIdPaymentMethods) | **Get** /external_gateways/{externalGatewayId}/payment_methods | Retrieve the payment methods associated to the external gateway +[**GETExternalGatewayIdVersions**](HasManyApi.md#GETExternalGatewayIdVersions) | **Get** /external_gateways/{externalGatewayId}/versions | Retrieve the versions associated to the external gateway +[**GETExternalPaymentIdVersions**](HasManyApi.md#GETExternalPaymentIdVersions) | **Get** /external_payments/{externalPaymentId}/versions | Retrieve the versions associated to the external payment [**GETExternalPromotionIdAttachments**](HasManyApi.md#GETExternalPromotionIdAttachments) | **Get** /external_promotions/{externalPromotionId}/attachments | Retrieve the attachments associated to the external promotion +[**GETExternalPromotionIdCoupons**](HasManyApi.md#GETExternalPromotionIdCoupons) | **Get** /external_promotions/{externalPromotionId}/coupons | Retrieve the coupons associated to the external promotion [**GETExternalPromotionIdEvents**](HasManyApi.md#GETExternalPromotionIdEvents) | **Get** /external_promotions/{externalPromotionId}/events | Retrieve the events associated to the external promotion +[**GETExternalPromotionIdSkus**](HasManyApi.md#GETExternalPromotionIdSkus) | **Get** /external_promotions/{externalPromotionId}/skus | Retrieve the skus associated to the external promotion +[**GETExternalPromotionIdTags**](HasManyApi.md#GETExternalPromotionIdTags) | **Get** /external_promotions/{externalPromotionId}/tags | Retrieve the tags associated to the external promotion +[**GETExternalPromotionIdVersions**](HasManyApi.md#GETExternalPromotionIdVersions) | **Get** /external_promotions/{externalPromotionId}/versions | Retrieve the versions associated to the external promotion [**GETExternalTaxCalculatorIdAttachments**](HasManyApi.md#GETExternalTaxCalculatorIdAttachments) | **Get** /external_tax_calculators/{externalTaxCalculatorId}/attachments | Retrieve the attachments associated to the external tax calculator [**GETExternalTaxCalculatorIdMarkets**](HasManyApi.md#GETExternalTaxCalculatorIdMarkets) | **Get** /external_tax_calculators/{externalTaxCalculatorId}/markets | Retrieve the markets associated to the external tax calculator +[**GETExternalTaxCalculatorIdVersions**](HasManyApi.md#GETExternalTaxCalculatorIdVersions) | **Get** /external_tax_calculators/{externalTaxCalculatorId}/versions | Retrieve the versions associated to the external tax calculator [**GETFixedAmountPromotionIdAttachments**](HasManyApi.md#GETFixedAmountPromotionIdAttachments) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/attachments | Retrieve the attachments associated to the fixed amount promotion +[**GETFixedAmountPromotionIdCoupons**](HasManyApi.md#GETFixedAmountPromotionIdCoupons) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/coupons | Retrieve the coupons associated to the fixed amount promotion [**GETFixedAmountPromotionIdEvents**](HasManyApi.md#GETFixedAmountPromotionIdEvents) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/events | Retrieve the events associated to the fixed amount promotion +[**GETFixedAmountPromotionIdSkus**](HasManyApi.md#GETFixedAmountPromotionIdSkus) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/skus | Retrieve the skus associated to the fixed amount promotion +[**GETFixedAmountPromotionIdTags**](HasManyApi.md#GETFixedAmountPromotionIdTags) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/tags | Retrieve the tags associated to the fixed amount promotion +[**GETFixedAmountPromotionIdVersions**](HasManyApi.md#GETFixedAmountPromotionIdVersions) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/versions | Retrieve the versions associated to the fixed amount promotion [**GETFixedPricePromotionIdAttachments**](HasManyApi.md#GETFixedPricePromotionIdAttachments) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/attachments | Retrieve the attachments associated to the fixed price promotion +[**GETFixedPricePromotionIdCoupons**](HasManyApi.md#GETFixedPricePromotionIdCoupons) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/coupons | Retrieve the coupons associated to the fixed price promotion [**GETFixedPricePromotionIdEvents**](HasManyApi.md#GETFixedPricePromotionIdEvents) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/events | Retrieve the events associated to the fixed price promotion [**GETFixedPricePromotionIdSkus**](HasManyApi.md#GETFixedPricePromotionIdSkus) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/skus | Retrieve the skus associated to the fixed price promotion +[**GETFixedPricePromotionIdTags**](HasManyApi.md#GETFixedPricePromotionIdTags) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/tags | Retrieve the tags associated to the fixed price promotion +[**GETFixedPricePromotionIdVersions**](HasManyApi.md#GETFixedPricePromotionIdVersions) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/versions | Retrieve the versions associated to the fixed price promotion +[**GETFlexPromotionIdAttachments**](HasManyApi.md#GETFlexPromotionIdAttachments) | **Get** /flex_promotions/{flexPromotionId}/attachments | Retrieve the attachments associated to the flex promotion +[**GETFlexPromotionIdCoupons**](HasManyApi.md#GETFlexPromotionIdCoupons) | **Get** /flex_promotions/{flexPromotionId}/coupons | Retrieve the coupons associated to the flex promotion +[**GETFlexPromotionIdEvents**](HasManyApi.md#GETFlexPromotionIdEvents) | **Get** /flex_promotions/{flexPromotionId}/events | Retrieve the events associated to the flex promotion +[**GETFlexPromotionIdTags**](HasManyApi.md#GETFlexPromotionIdTags) | **Get** /flex_promotions/{flexPromotionId}/tags | Retrieve the tags associated to the flex promotion +[**GETFlexPromotionIdVersions**](HasManyApi.md#GETFlexPromotionIdVersions) | **Get** /flex_promotions/{flexPromotionId}/versions | Retrieve the versions associated to the flex promotion [**GETFreeGiftPromotionIdAttachments**](HasManyApi.md#GETFreeGiftPromotionIdAttachments) | **Get** /free_gift_promotions/{freeGiftPromotionId}/attachments | Retrieve the attachments associated to the free gift promotion +[**GETFreeGiftPromotionIdCoupons**](HasManyApi.md#GETFreeGiftPromotionIdCoupons) | **Get** /free_gift_promotions/{freeGiftPromotionId}/coupons | Retrieve the coupons associated to the free gift promotion [**GETFreeGiftPromotionIdEvents**](HasManyApi.md#GETFreeGiftPromotionIdEvents) | **Get** /free_gift_promotions/{freeGiftPromotionId}/events | Retrieve the events associated to the free gift promotion [**GETFreeGiftPromotionIdSkus**](HasManyApi.md#GETFreeGiftPromotionIdSkus) | **Get** /free_gift_promotions/{freeGiftPromotionId}/skus | Retrieve the skus associated to the free gift promotion +[**GETFreeGiftPromotionIdTags**](HasManyApi.md#GETFreeGiftPromotionIdTags) | **Get** /free_gift_promotions/{freeGiftPromotionId}/tags | Retrieve the tags associated to the free gift promotion +[**GETFreeGiftPromotionIdVersions**](HasManyApi.md#GETFreeGiftPromotionIdVersions) | **Get** /free_gift_promotions/{freeGiftPromotionId}/versions | Retrieve the versions associated to the free gift promotion [**GETFreeShippingPromotionIdAttachments**](HasManyApi.md#GETFreeShippingPromotionIdAttachments) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/attachments | Retrieve the attachments associated to the free shipping promotion +[**GETFreeShippingPromotionIdCoupons**](HasManyApi.md#GETFreeShippingPromotionIdCoupons) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/coupons | Retrieve the coupons associated to the free shipping promotion [**GETFreeShippingPromotionIdEvents**](HasManyApi.md#GETFreeShippingPromotionIdEvents) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/events | Retrieve the events associated to the free shipping promotion +[**GETFreeShippingPromotionIdTags**](HasManyApi.md#GETFreeShippingPromotionIdTags) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/tags | Retrieve the tags associated to the free shipping promotion +[**GETFreeShippingPromotionIdVersions**](HasManyApi.md#GETFreeShippingPromotionIdVersions) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/versions | Retrieve the versions associated to the free shipping promotion [**GETGeocoderIdAddresses**](HasManyApi.md#GETGeocoderIdAddresses) | **Get** /geocoders/{geocoderId}/addresses | Retrieve the addresses associated to the geocoder [**GETGeocoderIdAttachments**](HasManyApi.md#GETGeocoderIdAttachments) | **Get** /geocoders/{geocoderId}/attachments | Retrieve the attachments associated to the geocoder +[**GETGeocoderIdMarkets**](HasManyApi.md#GETGeocoderIdMarkets) | **Get** /geocoders/{geocoderId}/markets | Retrieve the markets associated to the geocoder [**GETGiftCardIdAttachments**](HasManyApi.md#GETGiftCardIdAttachments) | **Get** /gift_cards/{giftCardId}/attachments | Retrieve the attachments associated to the gift card [**GETGiftCardIdEvents**](HasManyApi.md#GETGiftCardIdEvents) | **Get** /gift_cards/{giftCardId}/events | Retrieve the events associated to the gift card +[**GETGiftCardIdTags**](HasManyApi.md#GETGiftCardIdTags) | **Get** /gift_cards/{giftCardId}/tags | Retrieve the tags associated to the gift card +[**GETGiftCardIdVersions**](HasManyApi.md#GETGiftCardIdVersions) | **Get** /gift_cards/{giftCardId}/versions | Retrieve the versions associated to the gift card [**GETGiftCardRecipientIdAttachments**](HasManyApi.md#GETGiftCardRecipientIdAttachments) | **Get** /gift_card_recipients/{giftCardRecipientId}/attachments | Retrieve the attachments associated to the gift card recipient +[**GETGiftCardRecipientIdVersions**](HasManyApi.md#GETGiftCardRecipientIdVersions) | **Get** /gift_card_recipients/{giftCardRecipientId}/versions | Retrieve the versions associated to the gift card recipient [**GETGoogleGeocoderIdAddresses**](HasManyApi.md#GETGoogleGeocoderIdAddresses) | **Get** /google_geocoders/{googleGeocoderId}/addresses | Retrieve the addresses associated to the google geocoder [**GETGoogleGeocoderIdAttachments**](HasManyApi.md#GETGoogleGeocoderIdAttachments) | **Get** /google_geocoders/{googleGeocoderId}/attachments | Retrieve the attachments associated to the google geocoder +[**GETGoogleGeocoderIdMarkets**](HasManyApi.md#GETGoogleGeocoderIdMarkets) | **Get** /google_geocoders/{googleGeocoderId}/markets | Retrieve the markets associated to the google geocoder [**GETImportIdEvents**](HasManyApi.md#GETImportIdEvents) | **Get** /imports/{importId}/events | Retrieve the events associated to the import [**GETInStockSubscriptionIdEvents**](HasManyApi.md#GETInStockSubscriptionIdEvents) | **Get** /in_stock_subscriptions/{inStockSubscriptionId}/events | Retrieve the events associated to the in stock subscription +[**GETInStockSubscriptionIdVersions**](HasManyApi.md#GETInStockSubscriptionIdVersions) | **Get** /in_stock_subscriptions/{inStockSubscriptionId}/versions | Retrieve the versions associated to the in stock subscription [**GETInventoryModelIdAttachments**](HasManyApi.md#GETInventoryModelIdAttachments) | **Get** /inventory_models/{inventoryModelId}/attachments | Retrieve the attachments associated to the inventory model [**GETInventoryModelIdInventoryReturnLocations**](HasManyApi.md#GETInventoryModelIdInventoryReturnLocations) | **Get** /inventory_models/{inventoryModelId}/inventory_return_locations | Retrieve the inventory return locations associated to the inventory model [**GETInventoryModelIdInventoryStockLocations**](HasManyApi.md#GETInventoryModelIdInventoryStockLocations) | **Get** /inventory_models/{inventoryModelId}/inventory_stock_locations | Retrieve the inventory stock locations associated to the inventory model +[**GETInventoryModelIdVersions**](HasManyApi.md#GETInventoryModelIdVersions) | **Get** /inventory_models/{inventoryModelId}/versions | Retrieve the versions associated to the inventory model +[**GETInventoryReturnLocationIdVersions**](HasManyApi.md#GETInventoryReturnLocationIdVersions) | **Get** /inventory_return_locations/{inventoryReturnLocationId}/versions | Retrieve the versions associated to the inventory return location +[**GETInventoryStockLocationIdVersions**](HasManyApi.md#GETInventoryStockLocationIdVersions) | **Get** /inventory_stock_locations/{inventoryStockLocationId}/versions | Retrieve the versions associated to the inventory stock location [**GETKlarnaGatewayIdKlarnaPayments**](HasManyApi.md#GETKlarnaGatewayIdKlarnaPayments) | **Get** /klarna_gateways/{klarnaGatewayId}/klarna_payments | Retrieve the klarna payments associated to the klarna gateway [**GETKlarnaGatewayIdPaymentMethods**](HasManyApi.md#GETKlarnaGatewayIdPaymentMethods) | **Get** /klarna_gateways/{klarnaGatewayId}/payment_methods | Retrieve the payment methods associated to the klarna gateway +[**GETKlarnaGatewayIdVersions**](HasManyApi.md#GETKlarnaGatewayIdVersions) | **Get** /klarna_gateways/{klarnaGatewayId}/versions | Retrieve the versions associated to the klarna gateway +[**GETKlarnaPaymentIdVersions**](HasManyApi.md#GETKlarnaPaymentIdVersions) | **Get** /klarna_payments/{klarnaPaymentId}/versions | Retrieve the versions associated to the klarna payment +[**GETLineItemIdEvents**](HasManyApi.md#GETLineItemIdEvents) | **Get** /line_items/{lineItemId}/events | Retrieve the events associated to the line item [**GETLineItemIdLineItemOptions**](HasManyApi.md#GETLineItemIdLineItemOptions) | **Get** /line_items/{lineItemId}/line_item_options | Retrieve the line item options associated to the line item +[**GETLineItemIdReturnLineItems**](HasManyApi.md#GETLineItemIdReturnLineItems) | **Get** /line_items/{lineItemId}/return_line_items | Retrieve the return line items associated to the line item [**GETLineItemIdStockLineItems**](HasManyApi.md#GETLineItemIdStockLineItems) | **Get** /line_items/{lineItemId}/stock_line_items | Retrieve the stock line items associated to the line item +[**GETLineItemIdStockReservations**](HasManyApi.md#GETLineItemIdStockReservations) | **Get** /line_items/{lineItemId}/stock_reservations | Retrieve the stock reservations associated to the line item [**GETLineItemIdStockTransfers**](HasManyApi.md#GETLineItemIdStockTransfers) | **Get** /line_items/{lineItemId}/stock_transfers | Retrieve the stock transfers associated to the line item +[**GETLineItemIdTags**](HasManyApi.md#GETLineItemIdTags) | **Get** /line_items/{lineItemId}/tags | Retrieve the tags associated to the line item +[**GETLineItemOptionIdEvents**](HasManyApi.md#GETLineItemOptionIdEvents) | **Get** /line_item_options/{lineItemOptionId}/events | Retrieve the events associated to the line item option +[**GETLineItemOptionIdTags**](HasManyApi.md#GETLineItemOptionIdTags) | **Get** /line_item_options/{lineItemOptionId}/tags | Retrieve the tags associated to the line item option +[**GETLinkIdEvents**](HasManyApi.md#GETLinkIdEvents) | **Get** /links/{linkId}/events | Retrieve the events associated to the link [**GETManualGatewayIdPaymentMethods**](HasManyApi.md#GETManualGatewayIdPaymentMethods) | **Get** /manual_gateways/{manualGatewayId}/payment_methods | Retrieve the payment methods associated to the manual gateway +[**GETManualGatewayIdVersions**](HasManyApi.md#GETManualGatewayIdVersions) | **Get** /manual_gateways/{manualGatewayId}/versions | Retrieve the versions associated to the manual gateway [**GETManualTaxCalculatorIdAttachments**](HasManyApi.md#GETManualTaxCalculatorIdAttachments) | **Get** /manual_tax_calculators/{manualTaxCalculatorId}/attachments | Retrieve the attachments associated to the manual tax calculator [**GETManualTaxCalculatorIdMarkets**](HasManyApi.md#GETManualTaxCalculatorIdMarkets) | **Get** /manual_tax_calculators/{manualTaxCalculatorId}/markets | Retrieve the markets associated to the manual tax calculator [**GETManualTaxCalculatorIdTaxRules**](HasManyApi.md#GETManualTaxCalculatorIdTaxRules) | **Get** /manual_tax_calculators/{manualTaxCalculatorId}/tax_rules | Retrieve the tax rules associated to the manual tax calculator +[**GETManualTaxCalculatorIdVersions**](HasManyApi.md#GETManualTaxCalculatorIdVersions) | **Get** /manual_tax_calculators/{manualTaxCalculatorId}/versions | Retrieve the versions associated to the manual tax calculator [**GETMarketIdAttachments**](HasManyApi.md#GETMarketIdAttachments) | **Get** /markets/{marketId}/attachments | Retrieve the attachments associated to the market +[**GETMarketIdPriceListSchedulers**](HasManyApi.md#GETMarketIdPriceListSchedulers) | **Get** /markets/{marketId}/price_list_schedulers | Retrieve the price list schedulers associated to the market +[**GETMarketIdVersions**](HasManyApi.md#GETMarketIdVersions) | **Get** /markets/{marketId}/versions | Retrieve the versions associated to the market [**GETMerchantIdAttachments**](HasManyApi.md#GETMerchantIdAttachments) | **Get** /merchants/{merchantId}/attachments | Retrieve the attachments associated to the merchant +[**GETMerchantIdVersions**](HasManyApi.md#GETMerchantIdVersions) | **Get** /merchants/{merchantId}/versions | Retrieve the versions associated to the merchant +[**GETOrderAmountPromotionRuleIdVersions**](HasManyApi.md#GETOrderAmountPromotionRuleIdVersions) | **Get** /order_amount_promotion_rules/{orderAmountPromotionRuleId}/versions | Retrieve the versions associated to the order amount promotion rule [**GETOrderCopyIdEvents**](HasManyApi.md#GETOrderCopyIdEvents) | **Get** /order_copies/{orderCopyId}/events | Retrieve the events associated to the order copy [**GETOrderFactoryIdEvents**](HasManyApi.md#GETOrderFactoryIdEvents) | **Get** /order_factories/{orderFactoryId}/events | Retrieve the events associated to the order factory [**GETOrderIdAttachments**](HasManyApi.md#GETOrderIdAttachments) | **Get** /orders/{orderId}/attachments | Retrieve the attachments associated to the order @@ -97,107 +189,194 @@ Method | HTTP request | Description [**GETOrderIdAvailablePaymentMethods**](HasManyApi.md#GETOrderIdAvailablePaymentMethods) | **Get** /orders/{orderId}/available_payment_methods | Retrieve the available payment methods associated to the order [**GETOrderIdCaptures**](HasManyApi.md#GETOrderIdCaptures) | **Get** /orders/{orderId}/captures | Retrieve the captures associated to the order [**GETOrderIdEvents**](HasManyApi.md#GETOrderIdEvents) | **Get** /orders/{orderId}/events | Retrieve the events associated to the order +[**GETOrderIdLineItemOptions**](HasManyApi.md#GETOrderIdLineItemOptions) | **Get** /orders/{orderId}/line_item_options | Retrieve the line item options associated to the order [**GETOrderIdLineItems**](HasManyApi.md#GETOrderIdLineItems) | **Get** /orders/{orderId}/line_items | Retrieve the line items associated to the order +[**GETOrderIdLinks**](HasManyApi.md#GETOrderIdLinks) | **Get** /orders/{orderId}/links | Retrieve the links associated to the order [**GETOrderIdOrderCopies**](HasManyApi.md#GETOrderIdOrderCopies) | **Get** /orders/{orderId}/order_copies | Retrieve the order copies associated to the order [**GETOrderIdOrderFactories**](HasManyApi.md#GETOrderIdOrderFactories) | **Get** /orders/{orderId}/order_factories | Retrieve the order factories associated to the order [**GETOrderIdOrderSubscriptions**](HasManyApi.md#GETOrderIdOrderSubscriptions) | **Get** /orders/{orderId}/order_subscriptions | Retrieve the order subscriptions associated to the order +[**GETOrderIdPaymentOptions**](HasManyApi.md#GETOrderIdPaymentOptions) | **Get** /orders/{orderId}/payment_options | Retrieve the payment options associated to the order [**GETOrderIdRecurringOrderCopies**](HasManyApi.md#GETOrderIdRecurringOrderCopies) | **Get** /orders/{orderId}/recurring_order_copies | Retrieve the recurring order copies associated to the order [**GETOrderIdRefunds**](HasManyApi.md#GETOrderIdRefunds) | **Get** /orders/{orderId}/refunds | Retrieve the refunds associated to the order +[**GETOrderIdResourceErrors**](HasManyApi.md#GETOrderIdResourceErrors) | **Get** /orders/{orderId}/resource_errors | Retrieve the resource errors associated to the order [**GETOrderIdReturns**](HasManyApi.md#GETOrderIdReturns) | **Get** /orders/{orderId}/returns | Retrieve the returns associated to the order [**GETOrderIdShipments**](HasManyApi.md#GETOrderIdShipments) | **Get** /orders/{orderId}/shipments | Retrieve the shipments associated to the order +[**GETOrderIdStockLineItems**](HasManyApi.md#GETOrderIdStockLineItems) | **Get** /orders/{orderId}/stock_line_items | Retrieve the stock line items associated to the order +[**GETOrderIdStockReservations**](HasManyApi.md#GETOrderIdStockReservations) | **Get** /orders/{orderId}/stock_reservations | Retrieve the stock reservations associated to the order +[**GETOrderIdStockTransfers**](HasManyApi.md#GETOrderIdStockTransfers) | **Get** /orders/{orderId}/stock_transfers | Retrieve the stock transfers associated to the order +[**GETOrderIdTags**](HasManyApi.md#GETOrderIdTags) | **Get** /orders/{orderId}/tags | Retrieve the tags associated to the order +[**GETOrderIdVersions**](HasManyApi.md#GETOrderIdVersions) | **Get** /orders/{orderId}/versions | Retrieve the versions associated to the order [**GETOrderIdVoids**](HasManyApi.md#GETOrderIdVoids) | **Get** /orders/{orderId}/voids | Retrieve the voids associated to the order [**GETOrderSubscriptionIdEvents**](HasManyApi.md#GETOrderSubscriptionIdEvents) | **Get** /order_subscriptions/{orderSubscriptionId}/events | Retrieve the events associated to the order subscription [**GETOrderSubscriptionIdOrderFactories**](HasManyApi.md#GETOrderSubscriptionIdOrderFactories) | **Get** /order_subscriptions/{orderSubscriptionId}/order_factories | Retrieve the order factories associated to the order subscription [**GETOrderSubscriptionIdOrderSubscriptionItems**](HasManyApi.md#GETOrderSubscriptionIdOrderSubscriptionItems) | **Get** /order_subscriptions/{orderSubscriptionId}/order_subscription_items | Retrieve the order subscription items associated to the order subscription [**GETOrderSubscriptionIdOrders**](HasManyApi.md#GETOrderSubscriptionIdOrders) | **Get** /order_subscriptions/{orderSubscriptionId}/orders | Retrieve the orders associated to the order subscription [**GETOrderSubscriptionIdRecurringOrderCopies**](HasManyApi.md#GETOrderSubscriptionIdRecurringOrderCopies) | **Get** /order_subscriptions/{orderSubscriptionId}/recurring_order_copies | Retrieve the recurring order copies associated to the order subscription -[**GETOrderValidationRuleIdAttachments**](HasManyApi.md#GETOrderValidationRuleIdAttachments) | **Get** /order_validation_rules/{orderValidationRuleId}/attachments | Retrieve the attachments associated to the order validation rule +[**GETOrderSubscriptionIdTags**](HasManyApi.md#GETOrderSubscriptionIdTags) | **Get** /order_subscriptions/{orderSubscriptionId}/tags | Retrieve the tags associated to the order subscription +[**GETOrderSubscriptionIdVersions**](HasManyApi.md#GETOrderSubscriptionIdVersions) | **Get** /order_subscriptions/{orderSubscriptionId}/versions | Retrieve the versions associated to the order subscription [**GETPackageIdAttachments**](HasManyApi.md#GETPackageIdAttachments) | **Get** /packages/{packageId}/attachments | Retrieve the attachments associated to the package [**GETPackageIdParcels**](HasManyApi.md#GETPackageIdParcels) | **Get** /packages/{packageId}/parcels | Retrieve the parcels associated to the package +[**GETPackageIdVersions**](HasManyApi.md#GETPackageIdVersions) | **Get** /packages/{packageId}/versions | Retrieve the versions associated to the package [**GETParcelIdAttachments**](HasManyApi.md#GETParcelIdAttachments) | **Get** /parcels/{parcelId}/attachments | Retrieve the attachments associated to the parcel [**GETParcelIdEvents**](HasManyApi.md#GETParcelIdEvents) | **Get** /parcels/{parcelId}/events | Retrieve the events associated to the parcel [**GETParcelIdParcelLineItems**](HasManyApi.md#GETParcelIdParcelLineItems) | **Get** /parcels/{parcelId}/parcel_line_items | Retrieve the parcel line items associated to the parcel +[**GETParcelIdVersions**](HasManyApi.md#GETParcelIdVersions) | **Get** /parcels/{parcelId}/versions | Retrieve the versions associated to the parcel +[**GETParcelLineItemIdVersions**](HasManyApi.md#GETParcelLineItemIdVersions) | **Get** /parcel_line_items/{parcelLineItemId}/versions | Retrieve the versions associated to the parcel line item [**GETPaymentGatewayIdPaymentMethods**](HasManyApi.md#GETPaymentGatewayIdPaymentMethods) | **Get** /payment_gateways/{paymentGatewayId}/payment_methods | Retrieve the payment methods associated to the payment gateway +[**GETPaymentGatewayIdVersions**](HasManyApi.md#GETPaymentGatewayIdVersions) | **Get** /payment_gateways/{paymentGatewayId}/versions | Retrieve the versions associated to the payment gateway [**GETPaymentMethodIdAttachments**](HasManyApi.md#GETPaymentMethodIdAttachments) | **Get** /payment_methods/{paymentMethodId}/attachments | Retrieve the attachments associated to the payment method +[**GETPaymentMethodIdVersions**](HasManyApi.md#GETPaymentMethodIdVersions) | **Get** /payment_methods/{paymentMethodId}/versions | Retrieve the versions associated to the payment method +[**GETPaymentOptionIdAttachments**](HasManyApi.md#GETPaymentOptionIdAttachments) | **Get** /payment_options/{paymentOptionId}/attachments | Retrieve the attachments associated to the payment option [**GETPaypalGatewayIdPaymentMethods**](HasManyApi.md#GETPaypalGatewayIdPaymentMethods) | **Get** /paypal_gateways/{paypalGatewayId}/payment_methods | Retrieve the payment methods associated to the paypal gateway [**GETPaypalGatewayIdPaypalPayments**](HasManyApi.md#GETPaypalGatewayIdPaypalPayments) | **Get** /paypal_gateways/{paypalGatewayId}/paypal_payments | Retrieve the paypal payments associated to the paypal gateway +[**GETPaypalGatewayIdVersions**](HasManyApi.md#GETPaypalGatewayIdVersions) | **Get** /paypal_gateways/{paypalGatewayId}/versions | Retrieve the versions associated to the paypal gateway +[**GETPaypalPaymentIdVersions**](HasManyApi.md#GETPaypalPaymentIdVersions) | **Get** /paypal_payments/{paypalPaymentId}/versions | Retrieve the versions associated to the paypal payment [**GETPercentageDiscountPromotionIdAttachments**](HasManyApi.md#GETPercentageDiscountPromotionIdAttachments) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/attachments | Retrieve the attachments associated to the percentage discount promotion +[**GETPercentageDiscountPromotionIdCoupons**](HasManyApi.md#GETPercentageDiscountPromotionIdCoupons) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/coupons | Retrieve the coupons associated to the percentage discount promotion [**GETPercentageDiscountPromotionIdEvents**](HasManyApi.md#GETPercentageDiscountPromotionIdEvents) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/events | Retrieve the events associated to the percentage discount promotion [**GETPercentageDiscountPromotionIdSkus**](HasManyApi.md#GETPercentageDiscountPromotionIdSkus) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/skus | Retrieve the skus associated to the percentage discount promotion +[**GETPercentageDiscountPromotionIdTags**](HasManyApi.md#GETPercentageDiscountPromotionIdTags) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/tags | Retrieve the tags associated to the percentage discount promotion +[**GETPercentageDiscountPromotionIdVersions**](HasManyApi.md#GETPercentageDiscountPromotionIdVersions) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/versions | Retrieve the versions associated to the percentage discount promotion [**GETPriceFrequencyTierIdAttachments**](HasManyApi.md#GETPriceFrequencyTierIdAttachments) | **Get** /price_frequency_tiers/{priceFrequencyTierId}/attachments | Retrieve the attachments associated to the price frequency tier [**GETPriceFrequencyTierIdEvents**](HasManyApi.md#GETPriceFrequencyTierIdEvents) | **Get** /price_frequency_tiers/{priceFrequencyTierId}/events | Retrieve the events associated to the price frequency tier +[**GETPriceFrequencyTierIdVersions**](HasManyApi.md#GETPriceFrequencyTierIdVersions) | **Get** /price_frequency_tiers/{priceFrequencyTierId}/versions | Retrieve the versions associated to the price frequency tier [**GETPriceIdAttachments**](HasManyApi.md#GETPriceIdAttachments) | **Get** /prices/{priceId}/attachments | Retrieve the attachments associated to the price +[**GETPriceIdJwtMarkets**](HasManyApi.md#GETPriceIdJwtMarkets) | **Get** /prices/{priceId}/jwt_markets | Retrieve the jwt markets associated to the price +[**GETPriceIdJwtStockLocations**](HasManyApi.md#GETPriceIdJwtStockLocations) | **Get** /prices/{priceId}/jwt_stock_locations | Retrieve the jwt stock locations associated to the price [**GETPriceIdPriceFrequencyTiers**](HasManyApi.md#GETPriceIdPriceFrequencyTiers) | **Get** /prices/{priceId}/price_frequency_tiers | Retrieve the price frequency tiers associated to the price [**GETPriceIdPriceTiers**](HasManyApi.md#GETPriceIdPriceTiers) | **Get** /prices/{priceId}/price_tiers | Retrieve the price tiers associated to the price [**GETPriceIdPriceVolumeTiers**](HasManyApi.md#GETPriceIdPriceVolumeTiers) | **Get** /prices/{priceId}/price_volume_tiers | Retrieve the price volume tiers associated to the price +[**GETPriceIdVersions**](HasManyApi.md#GETPriceIdVersions) | **Get** /prices/{priceId}/versions | Retrieve the versions associated to the price [**GETPriceListIdAttachments**](HasManyApi.md#GETPriceListIdAttachments) | **Get** /price_lists/{priceListId}/attachments | Retrieve the attachments associated to the price list +[**GETPriceListIdPriceListSchedulers**](HasManyApi.md#GETPriceListIdPriceListSchedulers) | **Get** /price_lists/{priceListId}/price_list_schedulers | Retrieve the price list schedulers associated to the price list [**GETPriceListIdPrices**](HasManyApi.md#GETPriceListIdPrices) | **Get** /price_lists/{priceListId}/prices | Retrieve the prices associated to the price list +[**GETPriceListIdVersions**](HasManyApi.md#GETPriceListIdVersions) | **Get** /price_lists/{priceListId}/versions | Retrieve the versions associated to the price list +[**GETPriceListSchedulerIdEvents**](HasManyApi.md#GETPriceListSchedulerIdEvents) | **Get** /price_list_schedulers/{priceListSchedulerId}/events | Retrieve the events associated to the price list scheduler +[**GETPriceListSchedulerIdVersions**](HasManyApi.md#GETPriceListSchedulerIdVersions) | **Get** /price_list_schedulers/{priceListSchedulerId}/versions | Retrieve the versions associated to the price list scheduler [**GETPriceTierIdAttachments**](HasManyApi.md#GETPriceTierIdAttachments) | **Get** /price_tiers/{priceTierId}/attachments | Retrieve the attachments associated to the price tier +[**GETPriceTierIdVersions**](HasManyApi.md#GETPriceTierIdVersions) | **Get** /price_tiers/{priceTierId}/versions | Retrieve the versions associated to the price tier [**GETPriceVolumeTierIdAttachments**](HasManyApi.md#GETPriceVolumeTierIdAttachments) | **Get** /price_volume_tiers/{priceVolumeTierId}/attachments | Retrieve the attachments associated to the price volume tier [**GETPriceVolumeTierIdEvents**](HasManyApi.md#GETPriceVolumeTierIdEvents) | **Get** /price_volume_tiers/{priceVolumeTierId}/events | Retrieve the events associated to the price volume tier +[**GETPriceVolumeTierIdVersions**](HasManyApi.md#GETPriceVolumeTierIdVersions) | **Get** /price_volume_tiers/{priceVolumeTierId}/versions | Retrieve the versions associated to the price volume tier [**GETPromotionIdAttachments**](HasManyApi.md#GETPromotionIdAttachments) | **Get** /promotions/{promotionId}/attachments | Retrieve the attachments associated to the promotion +[**GETPromotionIdCoupons**](HasManyApi.md#GETPromotionIdCoupons) | **Get** /promotions/{promotionId}/coupons | Retrieve the coupons associated to the promotion [**GETPromotionIdEvents**](HasManyApi.md#GETPromotionIdEvents) | **Get** /promotions/{promotionId}/events | Retrieve the events associated to the promotion +[**GETPromotionIdTags**](HasManyApi.md#GETPromotionIdTags) | **Get** /promotions/{promotionId}/tags | Retrieve the tags associated to the promotion +[**GETPromotionIdVersions**](HasManyApi.md#GETPromotionIdVersions) | **Get** /promotions/{promotionId}/versions | Retrieve the versions associated to the promotion +[**GETPromotionRuleIdVersions**](HasManyApi.md#GETPromotionRuleIdVersions) | **Get** /promotion_rules/{promotionRuleId}/versions | Retrieve the versions associated to the promotion rule [**GETRecurringOrderCopyIdEvents**](HasManyApi.md#GETRecurringOrderCopyIdEvents) | **Get** /recurring_order_copies/{recurringOrderCopyId}/events | Retrieve the events associated to the recurring order copy +[**GETRefundIdAttachments**](HasManyApi.md#GETRefundIdAttachments) | **Get** /refunds/{refundId}/attachments | Retrieve the attachments associated to the refund [**GETRefundIdEvents**](HasManyApi.md#GETRefundIdEvents) | **Get** /refunds/{refundId}/events | Retrieve the events associated to the refund +[**GETRefundIdVersions**](HasManyApi.md#GETRefundIdVersions) | **Get** /refunds/{refundId}/versions | Retrieve the versions associated to the refund +[**GETReservedStockIdStockReservations**](HasManyApi.md#GETReservedStockIdStockReservations) | **Get** /reserved_stocks/{reservedStockId}/stock_reservations | Retrieve the stock reservations associated to the reserved stock +[**GETReservedStockIdVersions**](HasManyApi.md#GETReservedStockIdVersions) | **Get** /reserved_stocks/{reservedStockId}/versions | Retrieve the versions associated to the reserved stock [**GETReturnIdAttachments**](HasManyApi.md#GETReturnIdAttachments) | **Get** /returns/{returnId}/attachments | Retrieve the attachments associated to the return [**GETReturnIdEvents**](HasManyApi.md#GETReturnIdEvents) | **Get** /returns/{returnId}/events | Retrieve the events associated to the return +[**GETReturnIdResourceErrors**](HasManyApi.md#GETReturnIdResourceErrors) | **Get** /returns/{returnId}/resource_errors | Retrieve the resource errors associated to the return [**GETReturnIdReturnLineItems**](HasManyApi.md#GETReturnIdReturnLineItems) | **Get** /returns/{returnId}/return_line_items | Retrieve the return line items associated to the return +[**GETReturnIdTags**](HasManyApi.md#GETReturnIdTags) | **Get** /returns/{returnId}/tags | Retrieve the tags associated to the return +[**GETReturnIdVersions**](HasManyApi.md#GETReturnIdVersions) | **Get** /returns/{returnId}/versions | Retrieve the versions associated to the return [**GETSatispayGatewayIdPaymentMethods**](HasManyApi.md#GETSatispayGatewayIdPaymentMethods) | **Get** /satispay_gateways/{satispayGatewayId}/payment_methods | Retrieve the payment methods associated to the satispay gateway [**GETSatispayGatewayIdSatispayPayments**](HasManyApi.md#GETSatispayGatewayIdSatispayPayments) | **Get** /satispay_gateways/{satispayGatewayId}/satispay_payments | Retrieve the satispay payments associated to the satispay gateway +[**GETSatispayGatewayIdVersions**](HasManyApi.md#GETSatispayGatewayIdVersions) | **Get** /satispay_gateways/{satispayGatewayId}/versions | Retrieve the versions associated to the satispay gateway +[**GETSatispayPaymentIdVersions**](HasManyApi.md#GETSatispayPaymentIdVersions) | **Get** /satispay_payments/{satispayPaymentId}/versions | Retrieve the versions associated to the satispay payment [**GETShipmentIdAttachments**](HasManyApi.md#GETShipmentIdAttachments) | **Get** /shipments/{shipmentId}/attachments | Retrieve the attachments associated to the shipment [**GETShipmentIdAvailableShippingMethods**](HasManyApi.md#GETShipmentIdAvailableShippingMethods) | **Get** /shipments/{shipmentId}/available_shipping_methods | Retrieve the available shipping methods associated to the shipment [**GETShipmentIdCarrierAccounts**](HasManyApi.md#GETShipmentIdCarrierAccounts) | **Get** /shipments/{shipmentId}/carrier_accounts | Retrieve the carrier accounts associated to the shipment [**GETShipmentIdEvents**](HasManyApi.md#GETShipmentIdEvents) | **Get** /shipments/{shipmentId}/events | Retrieve the events associated to the shipment +[**GETShipmentIdLineItems**](HasManyApi.md#GETShipmentIdLineItems) | **Get** /shipments/{shipmentId}/line_items | Retrieve the line items associated to the shipment [**GETShipmentIdParcels**](HasManyApi.md#GETShipmentIdParcels) | **Get** /shipments/{shipmentId}/parcels | Retrieve the parcels associated to the shipment [**GETShipmentIdStockLineItems**](HasManyApi.md#GETShipmentIdStockLineItems) | **Get** /shipments/{shipmentId}/stock_line_items | Retrieve the stock line items associated to the shipment [**GETShipmentIdStockTransfers**](HasManyApi.md#GETShipmentIdStockTransfers) | **Get** /shipments/{shipmentId}/stock_transfers | Retrieve the stock transfers associated to the shipment +[**GETShipmentIdTags**](HasManyApi.md#GETShipmentIdTags) | **Get** /shipments/{shipmentId}/tags | Retrieve the tags associated to the shipment +[**GETShipmentIdVersions**](HasManyApi.md#GETShipmentIdVersions) | **Get** /shipments/{shipmentId}/versions | Retrieve the versions associated to the shipment [**GETShippingCategoryIdAttachments**](HasManyApi.md#GETShippingCategoryIdAttachments) | **Get** /shipping_categories/{shippingCategoryId}/attachments | Retrieve the attachments associated to the shipping category [**GETShippingCategoryIdSkus**](HasManyApi.md#GETShippingCategoryIdSkus) | **Get** /shipping_categories/{shippingCategoryId}/skus | Retrieve the skus associated to the shipping category +[**GETShippingCategoryIdVersions**](HasManyApi.md#GETShippingCategoryIdVersions) | **Get** /shipping_categories/{shippingCategoryId}/versions | Retrieve the versions associated to the shipping category [**GETShippingMethodIdAttachments**](HasManyApi.md#GETShippingMethodIdAttachments) | **Get** /shipping_methods/{shippingMethodId}/attachments | Retrieve the attachments associated to the shipping method [**GETShippingMethodIdShippingMethodTiers**](HasManyApi.md#GETShippingMethodIdShippingMethodTiers) | **Get** /shipping_methods/{shippingMethodId}/shipping_method_tiers | Retrieve the shipping method tiers associated to the shipping method [**GETShippingMethodIdShippingWeightTiers**](HasManyApi.md#GETShippingMethodIdShippingWeightTiers) | **Get** /shipping_methods/{shippingMethodId}/shipping_weight_tiers | Retrieve the shipping weight tiers associated to the shipping method +[**GETShippingMethodIdVersions**](HasManyApi.md#GETShippingMethodIdVersions) | **Get** /shipping_methods/{shippingMethodId}/versions | Retrieve the versions associated to the shipping method [**GETShippingMethodTierIdAttachments**](HasManyApi.md#GETShippingMethodTierIdAttachments) | **Get** /shipping_method_tiers/{shippingMethodTierId}/attachments | Retrieve the attachments associated to the shipping method tier +[**GETShippingMethodTierIdVersions**](HasManyApi.md#GETShippingMethodTierIdVersions) | **Get** /shipping_method_tiers/{shippingMethodTierId}/versions | Retrieve the versions associated to the shipping method tier [**GETShippingWeightTierIdAttachments**](HasManyApi.md#GETShippingWeightTierIdAttachments) | **Get** /shipping_weight_tiers/{shippingWeightTierId}/attachments | Retrieve the attachments associated to the shipping weight tier +[**GETShippingWeightTierIdVersions**](HasManyApi.md#GETShippingWeightTierIdVersions) | **Get** /shipping_weight_tiers/{shippingWeightTierId}/versions | Retrieve the versions associated to the shipping weight tier [**GETShippingZoneIdAttachments**](HasManyApi.md#GETShippingZoneIdAttachments) | **Get** /shipping_zones/{shippingZoneId}/attachments | Retrieve the attachments associated to the shipping zone +[**GETShippingZoneIdVersions**](HasManyApi.md#GETShippingZoneIdVersions) | **Get** /shipping_zones/{shippingZoneId}/versions | Retrieve the versions associated to the shipping zone [**GETSkuIdAttachments**](HasManyApi.md#GETSkuIdAttachments) | **Get** /skus/{skuId}/attachments | Retrieve the attachments associated to the SKU [**GETSkuIdDeliveryLeadTimes**](HasManyApi.md#GETSkuIdDeliveryLeadTimes) | **Get** /skus/{skuId}/delivery_lead_times | Retrieve the delivery lead times associated to the SKU +[**GETSkuIdEvents**](HasManyApi.md#GETSkuIdEvents) | **Get** /skus/{skuId}/events | Retrieve the events associated to the SKU +[**GETSkuIdJwtMarkets**](HasManyApi.md#GETSkuIdJwtMarkets) | **Get** /skus/{skuId}/jwt_markets | Retrieve the jwt markets associated to the SKU +[**GETSkuIdJwtStockLocations**](HasManyApi.md#GETSkuIdJwtStockLocations) | **Get** /skus/{skuId}/jwt_stock_locations | Retrieve the jwt stock locations associated to the SKU +[**GETSkuIdLinks**](HasManyApi.md#GETSkuIdLinks) | **Get** /skus/{skuId}/links | Retrieve the links associated to the SKU [**GETSkuIdPrices**](HasManyApi.md#GETSkuIdPrices) | **Get** /skus/{skuId}/prices | Retrieve the prices associated to the SKU +[**GETSkuIdSkuListItems**](HasManyApi.md#GETSkuIdSkuListItems) | **Get** /skus/{skuId}/sku_list_items | Retrieve the sku list items associated to the SKU +[**GETSkuIdSkuLists**](HasManyApi.md#GETSkuIdSkuLists) | **Get** /skus/{skuId}/sku_lists | Retrieve the sku lists associated to the SKU [**GETSkuIdSkuOptions**](HasManyApi.md#GETSkuIdSkuOptions) | **Get** /skus/{skuId}/sku_options | Retrieve the sku options associated to the SKU [**GETSkuIdStockItems**](HasManyApi.md#GETSkuIdStockItems) | **Get** /skus/{skuId}/stock_items | Retrieve the stock items associated to the SKU +[**GETSkuIdStockReservations**](HasManyApi.md#GETSkuIdStockReservations) | **Get** /skus/{skuId}/stock_reservations | Retrieve the stock reservations associated to the SKU +[**GETSkuIdTags**](HasManyApi.md#GETSkuIdTags) | **Get** /skus/{skuId}/tags | Retrieve the tags associated to the SKU +[**GETSkuIdVersions**](HasManyApi.md#GETSkuIdVersions) | **Get** /skus/{skuId}/versions | Retrieve the versions associated to the SKU [**GETSkuListIdAttachments**](HasManyApi.md#GETSkuListIdAttachments) | **Get** /sku_lists/{skuListId}/attachments | Retrieve the attachments associated to the SKU list [**GETSkuListIdBundles**](HasManyApi.md#GETSkuListIdBundles) | **Get** /sku_lists/{skuListId}/bundles | Retrieve the bundles associated to the SKU list +[**GETSkuListIdLinks**](HasManyApi.md#GETSkuListIdLinks) | **Get** /sku_lists/{skuListId}/links | Retrieve the links associated to the SKU list [**GETSkuListIdSkuListItems**](HasManyApi.md#GETSkuListIdSkuListItems) | **Get** /sku_lists/{skuListId}/sku_list_items | Retrieve the sku list items associated to the SKU list [**GETSkuListIdSkus**](HasManyApi.md#GETSkuListIdSkus) | **Get** /sku_lists/{skuListId}/skus | Retrieve the skus associated to the SKU list +[**GETSkuListIdVersions**](HasManyApi.md#GETSkuListIdVersions) | **Get** /sku_lists/{skuListId}/versions | Retrieve the versions associated to the SKU list +[**GETSkuListItemIdVersions**](HasManyApi.md#GETSkuListItemIdVersions) | **Get** /sku_list_items/{skuListItemId}/versions | Retrieve the versions associated to the SKU list item [**GETSkuListPromotionRuleIdSkus**](HasManyApi.md#GETSkuListPromotionRuleIdSkus) | **Get** /sku_list_promotion_rules/{skuListPromotionRuleId}/skus | Retrieve the skus associated to the SKU list promotion rule +[**GETSkuListPromotionRuleIdVersions**](HasManyApi.md#GETSkuListPromotionRuleIdVersions) | **Get** /sku_list_promotion_rules/{skuListPromotionRuleId}/versions | Retrieve the versions associated to the SKU list promotion rule [**GETSkuOptionIdAttachments**](HasManyApi.md#GETSkuOptionIdAttachments) | **Get** /sku_options/{skuOptionId}/attachments | Retrieve the attachments associated to the SKU option +[**GETSkuOptionIdEvents**](HasManyApi.md#GETSkuOptionIdEvents) | **Get** /sku_options/{skuOptionId}/events | Retrieve the events associated to the SKU option +[**GETSkuOptionIdTags**](HasManyApi.md#GETSkuOptionIdTags) | **Get** /sku_options/{skuOptionId}/tags | Retrieve the tags associated to the SKU option +[**GETSkuOptionIdVersions**](HasManyApi.md#GETSkuOptionIdVersions) | **Get** /sku_options/{skuOptionId}/versions | Retrieve the versions associated to the SKU option [**GETStockItemIdAttachments**](HasManyApi.md#GETStockItemIdAttachments) | **Get** /stock_items/{stockItemId}/attachments | Retrieve the attachments associated to the stock item +[**GETStockItemIdStockReservations**](HasManyApi.md#GETStockItemIdStockReservations) | **Get** /stock_items/{stockItemId}/stock_reservations | Retrieve the stock reservations associated to the stock item +[**GETStockItemIdVersions**](HasManyApi.md#GETStockItemIdVersions) | **Get** /stock_items/{stockItemId}/versions | Retrieve the versions associated to the stock item +[**GETStockLineItemIdVersions**](HasManyApi.md#GETStockLineItemIdVersions) | **Get** /stock_line_items/{stockLineItemId}/versions | Retrieve the versions associated to the stock line item [**GETStockLocationIdAttachments**](HasManyApi.md#GETStockLocationIdAttachments) | **Get** /stock_locations/{stockLocationId}/attachments | Retrieve the attachments associated to the stock location [**GETStockLocationIdInventoryReturnLocations**](HasManyApi.md#GETStockLocationIdInventoryReturnLocations) | **Get** /stock_locations/{stockLocationId}/inventory_return_locations | Retrieve the inventory return locations associated to the stock location [**GETStockLocationIdInventoryStockLocations**](HasManyApi.md#GETStockLocationIdInventoryStockLocations) | **Get** /stock_locations/{stockLocationId}/inventory_stock_locations | Retrieve the inventory stock locations associated to the stock location [**GETStockLocationIdStockItems**](HasManyApi.md#GETStockLocationIdStockItems) | **Get** /stock_locations/{stockLocationId}/stock_items | Retrieve the stock items associated to the stock location [**GETStockLocationIdStockTransfers**](HasManyApi.md#GETStockLocationIdStockTransfers) | **Get** /stock_locations/{stockLocationId}/stock_transfers | Retrieve the stock transfers associated to the stock location +[**GETStockLocationIdVersions**](HasManyApi.md#GETStockLocationIdVersions) | **Get** /stock_locations/{stockLocationId}/versions | Retrieve the versions associated to the stock location +[**GETStockTransferIdAttachments**](HasManyApi.md#GETStockTransferIdAttachments) | **Get** /stock_transfers/{stockTransferId}/attachments | Retrieve the attachments associated to the stock transfer [**GETStockTransferIdEvents**](HasManyApi.md#GETStockTransferIdEvents) | **Get** /stock_transfers/{stockTransferId}/events | Retrieve the events associated to the stock transfer +[**GETStockTransferIdVersions**](HasManyApi.md#GETStockTransferIdVersions) | **Get** /stock_transfers/{stockTransferId}/versions | Retrieve the versions associated to the stock transfer [**GETStripeGatewayIdPaymentMethods**](HasManyApi.md#GETStripeGatewayIdPaymentMethods) | **Get** /stripe_gateways/{stripeGatewayId}/payment_methods | Retrieve the payment methods associated to the stripe gateway [**GETStripeGatewayIdStripePayments**](HasManyApi.md#GETStripeGatewayIdStripePayments) | **Get** /stripe_gateways/{stripeGatewayId}/stripe_payments | Retrieve the stripe payments associated to the stripe gateway +[**GETStripeGatewayIdVersions**](HasManyApi.md#GETStripeGatewayIdVersions) | **Get** /stripe_gateways/{stripeGatewayId}/versions | Retrieve the versions associated to the stripe gateway +[**GETStripePaymentIdVersions**](HasManyApi.md#GETStripePaymentIdVersions) | **Get** /stripe_payments/{stripePaymentId}/versions | Retrieve the versions associated to the stripe payment [**GETSubscriptionModelIdAttachments**](HasManyApi.md#GETSubscriptionModelIdAttachments) | **Get** /subscription_models/{subscriptionModelId}/attachments | Retrieve the attachments associated to the subscription model [**GETSubscriptionModelIdMarkets**](HasManyApi.md#GETSubscriptionModelIdMarkets) | **Get** /subscription_models/{subscriptionModelId}/markets | Retrieve the markets associated to the subscription model [**GETSubscriptionModelIdOrderSubscriptions**](HasManyApi.md#GETSubscriptionModelIdOrderSubscriptions) | **Get** /subscription_models/{subscriptionModelId}/order_subscriptions | Retrieve the order subscriptions associated to the subscription model [**GETTaxCalculatorIdAttachments**](HasManyApi.md#GETTaxCalculatorIdAttachments) | **Get** /tax_calculators/{taxCalculatorId}/attachments | Retrieve the attachments associated to the tax calculator [**GETTaxCalculatorIdMarkets**](HasManyApi.md#GETTaxCalculatorIdMarkets) | **Get** /tax_calculators/{taxCalculatorId}/markets | Retrieve the markets associated to the tax calculator +[**GETTaxCalculatorIdVersions**](HasManyApi.md#GETTaxCalculatorIdVersions) | **Get** /tax_calculators/{taxCalculatorId}/versions | Retrieve the versions associated to the tax calculator [**GETTaxCategoryIdAttachments**](HasManyApi.md#GETTaxCategoryIdAttachments) | **Get** /tax_categories/{taxCategoryId}/attachments | Retrieve the attachments associated to the tax category +[**GETTaxCategoryIdVersions**](HasManyApi.md#GETTaxCategoryIdVersions) | **Get** /tax_categories/{taxCategoryId}/versions | Retrieve the versions associated to the tax category +[**GETTaxRuleIdVersions**](HasManyApi.md#GETTaxRuleIdVersions) | **Get** /tax_rules/{taxRuleId}/versions | Retrieve the versions associated to the tax rule [**GETTaxjarAccountIdAttachments**](HasManyApi.md#GETTaxjarAccountIdAttachments) | **Get** /taxjar_accounts/{taxjarAccountId}/attachments | Retrieve the attachments associated to the taxjar account [**GETTaxjarAccountIdMarkets**](HasManyApi.md#GETTaxjarAccountIdMarkets) | **Get** /taxjar_accounts/{taxjarAccountId}/markets | Retrieve the markets associated to the taxjar account [**GETTaxjarAccountIdTaxCategories**](HasManyApi.md#GETTaxjarAccountIdTaxCategories) | **Get** /taxjar_accounts/{taxjarAccountId}/tax_categories | Retrieve the tax categories associated to the taxjar account +[**GETTaxjarAccountIdVersions**](HasManyApi.md#GETTaxjarAccountIdVersions) | **Get** /taxjar_accounts/{taxjarAccountId}/versions | Retrieve the versions associated to the taxjar account +[**GETTransactionIdAttachments**](HasManyApi.md#GETTransactionIdAttachments) | **Get** /transactions/{transactionId}/attachments | Retrieve the attachments associated to the transaction +[**GETTransactionIdEvents**](HasManyApi.md#GETTransactionIdEvents) | **Get** /transactions/{transactionId}/events | Retrieve the events associated to the transaction +[**GETTransactionIdVersions**](HasManyApi.md#GETTransactionIdVersions) | **Get** /transactions/{transactionId}/versions | Retrieve the versions associated to the transaction +[**GETVoidIdAttachments**](HasManyApi.md#GETVoidIdAttachments) | **Get** /voids/{voidId}/attachments | Retrieve the attachments associated to the void [**GETVoidIdEvents**](HasManyApi.md#GETVoidIdEvents) | **Get** /voids/{voidId}/events | Retrieve the events associated to the void +[**GETVoidIdVersions**](HasManyApi.md#GETVoidIdVersions) | **Get** /voids/{voidId}/versions | Retrieve the versions associated to the void [**GETWebhookIdLastEventCallbacks**](HasManyApi.md#GETWebhookIdLastEventCallbacks) | **Get** /webhooks/{webhookId}/last_event_callbacks | Retrieve the last event callbacks associated to the webhook +[**GETWebhookIdVersions**](HasManyApi.md#GETWebhookIdVersions) | **Get** /webhooks/{webhookId}/versions | Retrieve the versions associated to the webhook +[**GETWireTransferIdVersions**](HasManyApi.md#GETWireTransferIdVersions) | **Get** /wire_transfers/{wireTransferId}/versions | Retrieve the versions associated to the wire transfer -## GETAdyenGatewayIdAdyenPayments +## GETAddressIdEvents -> GETAdyenGatewayIdAdyenPayments(ctx, adyenGatewayId).Execute() +> GETAddressIdEvents(ctx, addressId).Execute() -Retrieve the adyen payments associated to the adyen gateway +Retrieve the events associated to the address @@ -214,13 +393,13 @@ import ( ) func main() { - adyenGatewayId := TODO // interface{} | The resource's id + addressId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETAdyenGatewayIdAdyenPayments(context.Background(), adyenGatewayId).Execute() + r, err := apiClient.HasManyApi.GETAddressIdEvents(context.Background(), addressId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAdyenGatewayIdAdyenPayments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAddressIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -232,11 +411,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**adyenGatewayId** | [**interface{}**](.md) | The resource's id | +**addressId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETAdyenGatewayIdAdyenPaymentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAddressIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -261,11 +440,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETAdyenGatewayIdPaymentMethods +## GETAddressIdTags -> GETAdyenGatewayIdPaymentMethods(ctx, adyenGatewayId).Execute() +> GETAddressIdTags(ctx, addressId).Execute() -Retrieve the payment methods associated to the adyen gateway +Retrieve the tags associated to the address @@ -282,13 +461,13 @@ import ( ) func main() { - adyenGatewayId := TODO // interface{} | The resource's id + addressId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETAdyenGatewayIdPaymentMethods(context.Background(), adyenGatewayId).Execute() + r, err := apiClient.HasManyApi.GETAddressIdTags(context.Background(), addressId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAdyenGatewayIdPaymentMethods``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAddressIdTags``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -300,11 +479,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**adyenGatewayId** | [**interface{}**](.md) | The resource's id | +**addressId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETAdyenGatewayIdPaymentMethodsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAddressIdTagsRequest struct via the builder pattern Name | Type | Description | Notes @@ -329,11 +508,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETAuthorizationIdCaptures +## GETAddressIdVersions -> GETAuthorizationIdCaptures(ctx, authorizationId).Execute() +> GETAddressIdVersions(ctx, addressId).Execute() -Retrieve the captures associated to the authorization +Retrieve the versions associated to the address @@ -350,13 +529,13 @@ import ( ) func main() { - authorizationId := TODO // interface{} | The resource's id + addressId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETAuthorizationIdCaptures(context.Background(), authorizationId).Execute() + r, err := apiClient.HasManyApi.GETAddressIdVersions(context.Background(), addressId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAuthorizationIdCaptures``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAddressIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -368,11 +547,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**authorizationId** | [**interface{}**](.md) | The resource's id | +**addressId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETAuthorizationIdCapturesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAddressIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -397,11 +576,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETAuthorizationIdEvents +## GETAdjustmentIdVersions -> GETAuthorizationIdEvents(ctx, authorizationId).Execute() +> GETAdjustmentIdVersions(ctx, adjustmentId).Execute() -Retrieve the events associated to the authorization +Retrieve the versions associated to the adjustment @@ -418,13 +597,13 @@ import ( ) func main() { - authorizationId := TODO // interface{} | The resource's id + adjustmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETAuthorizationIdEvents(context.Background(), authorizationId).Execute() + r, err := apiClient.HasManyApi.GETAdjustmentIdVersions(context.Background(), adjustmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAuthorizationIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAdjustmentIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -436,11 +615,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**authorizationId** | [**interface{}**](.md) | The resource's id | +**adjustmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETAuthorizationIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAdjustmentIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -465,11 +644,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETAuthorizationIdVoids +## GETAdyenGatewayIdAdyenPayments -> GETAuthorizationIdVoids(ctx, authorizationId).Execute() +> GETAdyenGatewayIdAdyenPayments(ctx, adyenGatewayId).Execute() -Retrieve the voids associated to the authorization +Retrieve the adyen payments associated to the adyen gateway @@ -486,13 +665,13 @@ import ( ) func main() { - authorizationId := TODO // interface{} | The resource's id + adyenGatewayId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETAuthorizationIdVoids(context.Background(), authorizationId).Execute() + r, err := apiClient.HasManyApi.GETAdyenGatewayIdAdyenPayments(context.Background(), adyenGatewayId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAuthorizationIdVoids``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAdyenGatewayIdAdyenPayments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -504,11 +683,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**authorizationId** | [**interface{}**](.md) | The resource's id | +**adyenGatewayId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETAuthorizationIdVoidsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAdyenGatewayIdAdyenPaymentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -533,11 +712,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETAvalaraAccountIdAttachments +## GETAdyenGatewayIdPaymentMethods -> GETAvalaraAccountIdAttachments(ctx, avalaraAccountId).Execute() +> GETAdyenGatewayIdPaymentMethods(ctx, adyenGatewayId).Execute() -Retrieve the attachments associated to the avalara account +Retrieve the payment methods associated to the adyen gateway @@ -554,13 +733,13 @@ import ( ) func main() { - avalaraAccountId := TODO // interface{} | The resource's id + adyenGatewayId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETAvalaraAccountIdAttachments(context.Background(), avalaraAccountId).Execute() + r, err := apiClient.HasManyApi.GETAdyenGatewayIdPaymentMethods(context.Background(), adyenGatewayId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAvalaraAccountIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAdyenGatewayIdPaymentMethods``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -572,11 +751,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**avalaraAccountId** | [**interface{}**](.md) | The resource's id | +**adyenGatewayId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETAvalaraAccountIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAdyenGatewayIdPaymentMethodsRequest struct via the builder pattern Name | Type | Description | Notes @@ -601,11 +780,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETAvalaraAccountIdMarkets +## GETAdyenGatewayIdVersions -> GETAvalaraAccountIdMarkets(ctx, avalaraAccountId).Execute() +> GETAdyenGatewayIdVersions(ctx, adyenGatewayId).Execute() -Retrieve the markets associated to the avalara account +Retrieve the versions associated to the adyen gateway @@ -622,13 +801,13 @@ import ( ) func main() { - avalaraAccountId := TODO // interface{} | The resource's id + adyenGatewayId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETAvalaraAccountIdMarkets(context.Background(), avalaraAccountId).Execute() + r, err := apiClient.HasManyApi.GETAdyenGatewayIdVersions(context.Background(), adyenGatewayId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAvalaraAccountIdMarkets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAdyenGatewayIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -640,11 +819,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**avalaraAccountId** | [**interface{}**](.md) | The resource's id | +**adyenGatewayId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETAvalaraAccountIdMarketsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAdyenGatewayIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -669,11 +848,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETAvalaraAccountIdTaxCategories +## GETAdyenPaymentIdVersions -> GETAvalaraAccountIdTaxCategories(ctx, avalaraAccountId).Execute() +> GETAdyenPaymentIdVersions(ctx, adyenPaymentId).Execute() -Retrieve the tax categories associated to the avalara account +Retrieve the versions associated to the adyen payment @@ -690,13 +869,13 @@ import ( ) func main() { - avalaraAccountId := TODO // interface{} | The resource's id + adyenPaymentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETAvalaraAccountIdTaxCategories(context.Background(), avalaraAccountId).Execute() + r, err := apiClient.HasManyApi.GETAdyenPaymentIdVersions(context.Background(), adyenPaymentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAvalaraAccountIdTaxCategories``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAdyenPaymentIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -708,11 +887,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**avalaraAccountId** | [**interface{}**](.md) | The resource's id | +**adyenPaymentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETAvalaraAccountIdTaxCategoriesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAdyenPaymentIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -737,11 +916,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETAxerveGatewayIdAxervePayments +## GETAuthorizationIdAttachments -> GETAxerveGatewayIdAxervePayments(ctx, axerveGatewayId).Execute() +> GETAuthorizationIdAttachments(ctx, authorizationId).Execute() -Retrieve the axerve payments associated to the axerve gateway +Retrieve the attachments associated to the authorization @@ -758,13 +937,13 @@ import ( ) func main() { - axerveGatewayId := TODO // interface{} | The resource's id + authorizationId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETAxerveGatewayIdAxervePayments(context.Background(), axerveGatewayId).Execute() + r, err := apiClient.HasManyApi.GETAuthorizationIdAttachments(context.Background(), authorizationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAxerveGatewayIdAxervePayments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAuthorizationIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -776,11 +955,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**axerveGatewayId** | [**interface{}**](.md) | The resource's id | +**authorizationId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETAxerveGatewayIdAxervePaymentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAuthorizationIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -805,11 +984,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETAxerveGatewayIdPaymentMethods +## GETAuthorizationIdCaptures -> GETAxerveGatewayIdPaymentMethods(ctx, axerveGatewayId).Execute() +> GETAuthorizationIdCaptures(ctx, authorizationId).Execute() -Retrieve the payment methods associated to the axerve gateway +Retrieve the captures associated to the authorization @@ -826,13 +1005,13 @@ import ( ) func main() { - axerveGatewayId := TODO // interface{} | The resource's id + authorizationId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETAxerveGatewayIdPaymentMethods(context.Background(), axerveGatewayId).Execute() + r, err := apiClient.HasManyApi.GETAuthorizationIdCaptures(context.Background(), authorizationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAxerveGatewayIdPaymentMethods``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAuthorizationIdCaptures``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -844,11 +1023,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**axerveGatewayId** | [**interface{}**](.md) | The resource's id | +**authorizationId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETAxerveGatewayIdPaymentMethodsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAuthorizationIdCapturesRequest struct via the builder pattern Name | Type | Description | Notes @@ -873,11 +1052,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETBillingInfoValidationRuleIdAttachments +## GETAuthorizationIdEvents -> GETBillingInfoValidationRuleIdAttachments(ctx, billingInfoValidationRuleId).Execute() +> GETAuthorizationIdEvents(ctx, authorizationId).Execute() -Retrieve the attachments associated to the billing info validation rule +Retrieve the events associated to the authorization @@ -894,13 +1073,13 @@ import ( ) func main() { - billingInfoValidationRuleId := TODO // interface{} | The resource's id + authorizationId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETBillingInfoValidationRuleIdAttachments(context.Background(), billingInfoValidationRuleId).Execute() + r, err := apiClient.HasManyApi.GETAuthorizationIdEvents(context.Background(), authorizationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBillingInfoValidationRuleIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAuthorizationIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -912,11 +1091,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**billingInfoValidationRuleId** | [**interface{}**](.md) | The resource's id | +**authorizationId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETBillingInfoValidationRuleIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAuthorizationIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -941,11 +1120,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETBingGeocoderIdAddresses +## GETAuthorizationIdVersions -> GETBingGeocoderIdAddresses(ctx, bingGeocoderId).Execute() +> GETAuthorizationIdVersions(ctx, authorizationId).Execute() -Retrieve the addresses associated to the bing geocoder +Retrieve the versions associated to the authorization @@ -962,13 +1141,13 @@ import ( ) func main() { - bingGeocoderId := TODO // interface{} | The resource's id + authorizationId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETBingGeocoderIdAddresses(context.Background(), bingGeocoderId).Execute() + r, err := apiClient.HasManyApi.GETAuthorizationIdVersions(context.Background(), authorizationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBingGeocoderIdAddresses``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAuthorizationIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -980,11 +1159,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**bingGeocoderId** | [**interface{}**](.md) | The resource's id | +**authorizationId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETBingGeocoderIdAddressesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAuthorizationIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1009,11 +1188,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETBingGeocoderIdAttachments +## GETAuthorizationIdVoids -> GETBingGeocoderIdAttachments(ctx, bingGeocoderId).Execute() +> GETAuthorizationIdVoids(ctx, authorizationId).Execute() -Retrieve the attachments associated to the bing geocoder +Retrieve the voids associated to the authorization @@ -1030,13 +1209,13 @@ import ( ) func main() { - bingGeocoderId := TODO // interface{} | The resource's id + authorizationId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETBingGeocoderIdAttachments(context.Background(), bingGeocoderId).Execute() + r, err := apiClient.HasManyApi.GETAuthorizationIdVoids(context.Background(), authorizationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBingGeocoderIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAuthorizationIdVoids``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1048,11 +1227,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**bingGeocoderId** | [**interface{}**](.md) | The resource's id | +**authorizationId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETBingGeocoderIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAuthorizationIdVoidsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1077,11 +1256,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETBraintreeGatewayIdBraintreePayments +## GETAvalaraAccountIdAttachments -> GETBraintreeGatewayIdBraintreePayments(ctx, braintreeGatewayId).Execute() +> GETAvalaraAccountIdAttachments(ctx, avalaraAccountId).Execute() -Retrieve the braintree payments associated to the braintree gateway +Retrieve the attachments associated to the avalara account @@ -1098,13 +1277,13 @@ import ( ) func main() { - braintreeGatewayId := TODO // interface{} | The resource's id + avalaraAccountId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETBraintreeGatewayIdBraintreePayments(context.Background(), braintreeGatewayId).Execute() + r, err := apiClient.HasManyApi.GETAvalaraAccountIdAttachments(context.Background(), avalaraAccountId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBraintreeGatewayIdBraintreePayments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAvalaraAccountIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1116,11 +1295,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**braintreeGatewayId** | [**interface{}**](.md) | The resource's id | +**avalaraAccountId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETBraintreeGatewayIdBraintreePaymentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAvalaraAccountIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1145,11 +1324,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETBraintreeGatewayIdPaymentMethods +## GETAvalaraAccountIdEvents -> GETBraintreeGatewayIdPaymentMethods(ctx, braintreeGatewayId).Execute() +> GETAvalaraAccountIdEvents(ctx, avalaraAccountId).Execute() -Retrieve the payment methods associated to the braintree gateway +Retrieve the events associated to the avalara account @@ -1166,13 +1345,13 @@ import ( ) func main() { - braintreeGatewayId := TODO // interface{} | The resource's id + avalaraAccountId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETBraintreeGatewayIdPaymentMethods(context.Background(), braintreeGatewayId).Execute() + r, err := apiClient.HasManyApi.GETAvalaraAccountIdEvents(context.Background(), avalaraAccountId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBraintreeGatewayIdPaymentMethods``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAvalaraAccountIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1184,11 +1363,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**braintreeGatewayId** | [**interface{}**](.md) | The resource's id | +**avalaraAccountId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETBraintreeGatewayIdPaymentMethodsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAvalaraAccountIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1213,11 +1392,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETBundleIdAttachments +## GETAvalaraAccountIdMarkets -> GETBundleIdAttachments(ctx, bundleId).Execute() +> GETAvalaraAccountIdMarkets(ctx, avalaraAccountId).Execute() -Retrieve the attachments associated to the bundle +Retrieve the markets associated to the avalara account @@ -1234,13 +1413,13 @@ import ( ) func main() { - bundleId := TODO // interface{} | The resource's id + avalaraAccountId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETBundleIdAttachments(context.Background(), bundleId).Execute() + r, err := apiClient.HasManyApi.GETAvalaraAccountIdMarkets(context.Background(), avalaraAccountId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBundleIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAvalaraAccountIdMarkets``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1252,11 +1431,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**bundleId** | [**interface{}**](.md) | The resource's id | +**avalaraAccountId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETBundleIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAvalaraAccountIdMarketsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1281,11 +1460,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETBundleIdSkus +## GETAvalaraAccountIdTaxCategories -> GETBundleIdSkus(ctx, bundleId).Execute() +> GETAvalaraAccountIdTaxCategories(ctx, avalaraAccountId).Execute() -Retrieve the skus associated to the bundle +Retrieve the tax categories associated to the avalara account @@ -1302,13 +1481,13 @@ import ( ) func main() { - bundleId := TODO // interface{} | The resource's id + avalaraAccountId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETBundleIdSkus(context.Background(), bundleId).Execute() + r, err := apiClient.HasManyApi.GETAvalaraAccountIdTaxCategories(context.Background(), avalaraAccountId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBundleIdSkus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAvalaraAccountIdTaxCategories``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1320,11 +1499,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**bundleId** | [**interface{}**](.md) | The resource's id | +**avalaraAccountId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETBundleIdSkusRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAvalaraAccountIdTaxCategoriesRequest struct via the builder pattern Name | Type | Description | Notes @@ -1349,11 +1528,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCaptureIdEvents +## GETAvalaraAccountIdVersions -> GETCaptureIdEvents(ctx, captureId).Execute() +> GETAvalaraAccountIdVersions(ctx, avalaraAccountId).Execute() -Retrieve the events associated to the capture +Retrieve the versions associated to the avalara account @@ -1370,13 +1549,13 @@ import ( ) func main() { - captureId := TODO // interface{} | The resource's id + avalaraAccountId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCaptureIdEvents(context.Background(), captureId).Execute() + r, err := apiClient.HasManyApi.GETAvalaraAccountIdVersions(context.Background(), avalaraAccountId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCaptureIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAvalaraAccountIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1388,11 +1567,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**captureId** | [**interface{}**](.md) | The resource's id | +**avalaraAccountId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCaptureIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAvalaraAccountIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1417,11 +1596,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCaptureIdRefunds +## GETAxerveGatewayIdAxervePayments -> GETCaptureIdRefunds(ctx, captureId).Execute() +> GETAxerveGatewayIdAxervePayments(ctx, axerveGatewayId).Execute() -Retrieve the refunds associated to the capture +Retrieve the axerve payments associated to the axerve gateway @@ -1438,13 +1617,13 @@ import ( ) func main() { - captureId := TODO // interface{} | The resource's id + axerveGatewayId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCaptureIdRefunds(context.Background(), captureId).Execute() + r, err := apiClient.HasManyApi.GETAxerveGatewayIdAxervePayments(context.Background(), axerveGatewayId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCaptureIdRefunds``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAxerveGatewayIdAxervePayments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1456,11 +1635,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**captureId** | [**interface{}**](.md) | The resource's id | +**axerveGatewayId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCaptureIdRefundsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAxerveGatewayIdAxervePaymentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1485,11 +1664,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCarrierAccountIdAttachments +## GETAxerveGatewayIdPaymentMethods -> GETCarrierAccountIdAttachments(ctx, carrierAccountId).Execute() +> GETAxerveGatewayIdPaymentMethods(ctx, axerveGatewayId).Execute() -Retrieve the attachments associated to the carrier account +Retrieve the payment methods associated to the axerve gateway @@ -1506,13 +1685,13 @@ import ( ) func main() { - carrierAccountId := TODO // interface{} | The resource's id + axerveGatewayId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCarrierAccountIdAttachments(context.Background(), carrierAccountId).Execute() + r, err := apiClient.HasManyApi.GETAxerveGatewayIdPaymentMethods(context.Background(), axerveGatewayId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCarrierAccountIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAxerveGatewayIdPaymentMethods``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1524,11 +1703,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**carrierAccountId** | [**interface{}**](.md) | The resource's id | +**axerveGatewayId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCarrierAccountIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAxerveGatewayIdPaymentMethodsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1553,11 +1732,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCheckoutComGatewayIdCheckoutComPayments +## GETAxerveGatewayIdVersions -> GETCheckoutComGatewayIdCheckoutComPayments(ctx, checkoutComGatewayId).Execute() +> GETAxerveGatewayIdVersions(ctx, axerveGatewayId).Execute() -Retrieve the checkout com payments associated to the checkout.com gateway +Retrieve the versions associated to the axerve gateway @@ -1574,13 +1753,13 @@ import ( ) func main() { - checkoutComGatewayId := TODO // interface{} | The resource's id + axerveGatewayId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCheckoutComGatewayIdCheckoutComPayments(context.Background(), checkoutComGatewayId).Execute() + r, err := apiClient.HasManyApi.GETAxerveGatewayIdVersions(context.Background(), axerveGatewayId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCheckoutComGatewayIdCheckoutComPayments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAxerveGatewayIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1592,11 +1771,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**checkoutComGatewayId** | [**interface{}**](.md) | The resource's id | +**axerveGatewayId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCheckoutComGatewayIdCheckoutComPaymentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAxerveGatewayIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1621,11 +1800,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCheckoutComGatewayIdPaymentMethods +## GETAxervePaymentIdVersions -> GETCheckoutComGatewayIdPaymentMethods(ctx, checkoutComGatewayId).Execute() +> GETAxervePaymentIdVersions(ctx, axervePaymentId).Execute() -Retrieve the payment methods associated to the checkout.com gateway +Retrieve the versions associated to the axerve payment @@ -1642,13 +1821,13 @@ import ( ) func main() { - checkoutComGatewayId := TODO // interface{} | The resource's id + axervePaymentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCheckoutComGatewayIdPaymentMethods(context.Background(), checkoutComGatewayId).Execute() + r, err := apiClient.HasManyApi.GETAxervePaymentIdVersions(context.Background(), axervePaymentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCheckoutComGatewayIdPaymentMethods``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETAxervePaymentIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1660,11 +1839,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**checkoutComGatewayId** | [**interface{}**](.md) | The resource's id | +**axervePaymentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCheckoutComGatewayIdPaymentMethodsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETAxervePaymentIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1689,11 +1868,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCleanupIdEvents +## GETBillingInfoValidationRuleIdAttachments -> GETCleanupIdEvents(ctx, cleanupId).Execute() +> GETBillingInfoValidationRuleIdAttachments(ctx, billingInfoValidationRuleId).Execute() -Retrieve the events associated to the cleanup +Retrieve the attachments associated to the billing info validation rule @@ -1710,13 +1889,13 @@ import ( ) func main() { - cleanupId := TODO // interface{} | The resource's id + billingInfoValidationRuleId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCleanupIdEvents(context.Background(), cleanupId).Execute() + r, err := apiClient.HasManyApi.GETBillingInfoValidationRuleIdAttachments(context.Background(), billingInfoValidationRuleId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCleanupIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBillingInfoValidationRuleIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1728,11 +1907,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**cleanupId** | [**interface{}**](.md) | The resource's id | +**billingInfoValidationRuleId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCleanupIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBillingInfoValidationRuleIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1757,11 +1936,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCouponCodesPromotionRuleIdCoupons +## GETBillingInfoValidationRuleIdVersions -> GETCouponCodesPromotionRuleIdCoupons(ctx, couponCodesPromotionRuleId).Execute() +> GETBillingInfoValidationRuleIdVersions(ctx, billingInfoValidationRuleId).Execute() -Retrieve the coupons associated to the coupon codes promotion rule +Retrieve the versions associated to the billing info validation rule @@ -1778,13 +1957,13 @@ import ( ) func main() { - couponCodesPromotionRuleId := TODO // interface{} | The resource's id + billingInfoValidationRuleId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCouponCodesPromotionRuleIdCoupons(context.Background(), couponCodesPromotionRuleId).Execute() + r, err := apiClient.HasManyApi.GETBillingInfoValidationRuleIdVersions(context.Background(), billingInfoValidationRuleId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCouponCodesPromotionRuleIdCoupons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBillingInfoValidationRuleIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1796,11 +1975,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**couponCodesPromotionRuleId** | [**interface{}**](.md) | The resource's id | +**billingInfoValidationRuleId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCouponCodesPromotionRuleIdCouponsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBillingInfoValidationRuleIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1825,11 +2004,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCouponRecipientIdAttachments +## GETBingGeocoderIdAddresses -> GETCouponRecipientIdAttachments(ctx, couponRecipientId).Execute() +> GETBingGeocoderIdAddresses(ctx, bingGeocoderId).Execute() -Retrieve the attachments associated to the coupon recipient +Retrieve the addresses associated to the bing geocoder @@ -1846,13 +2025,13 @@ import ( ) func main() { - couponRecipientId := TODO // interface{} | The resource's id + bingGeocoderId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCouponRecipientIdAttachments(context.Background(), couponRecipientId).Execute() + r, err := apiClient.HasManyApi.GETBingGeocoderIdAddresses(context.Background(), bingGeocoderId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCouponRecipientIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBingGeocoderIdAddresses``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1864,11 +2043,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**couponRecipientId** | [**interface{}**](.md) | The resource's id | +**bingGeocoderId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCouponRecipientIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBingGeocoderIdAddressesRequest struct via the builder pattern Name | Type | Description | Notes @@ -1893,11 +2072,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerAddressIdEvents +## GETBingGeocoderIdAttachments -> GETCustomerAddressIdEvents(ctx, customerAddressId).Execute() +> GETBingGeocoderIdAttachments(ctx, bingGeocoderId).Execute() -Retrieve the events associated to the customer address +Retrieve the attachments associated to the bing geocoder @@ -1914,13 +2093,13 @@ import ( ) func main() { - customerAddressId := TODO // interface{} | The resource's id + bingGeocoderId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCustomerAddressIdEvents(context.Background(), customerAddressId).Execute() + r, err := apiClient.HasManyApi.GETBingGeocoderIdAttachments(context.Background(), bingGeocoderId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerAddressIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBingGeocoderIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1932,11 +2111,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerAddressId** | [**interface{}**](.md) | The resource's id | +**bingGeocoderId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerAddressIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBingGeocoderIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -1961,11 +2140,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerGroupIdAttachments +## GETBingGeocoderIdMarkets -> GETCustomerGroupIdAttachments(ctx, customerGroupId).Execute() +> GETBingGeocoderIdMarkets(ctx, bingGeocoderId).Execute() -Retrieve the attachments associated to the customer group +Retrieve the markets associated to the bing geocoder @@ -1982,13 +2161,13 @@ import ( ) func main() { - customerGroupId := TODO // interface{} | The resource's id + bingGeocoderId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCustomerGroupIdAttachments(context.Background(), customerGroupId).Execute() + r, err := apiClient.HasManyApi.GETBingGeocoderIdMarkets(context.Background(), bingGeocoderId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerGroupIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBingGeocoderIdMarkets``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2000,11 +2179,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerGroupId** | [**interface{}**](.md) | The resource's id | +**bingGeocoderId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerGroupIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBingGeocoderIdMarketsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2029,11 +2208,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerGroupIdCustomers +## GETBraintreeGatewayIdBraintreePayments -> GETCustomerGroupIdCustomers(ctx, customerGroupId).Execute() +> GETBraintreeGatewayIdBraintreePayments(ctx, braintreeGatewayId).Execute() -Retrieve the customers associated to the customer group +Retrieve the braintree payments associated to the braintree gateway @@ -2050,13 +2229,13 @@ import ( ) func main() { - customerGroupId := TODO // interface{} | The resource's id + braintreeGatewayId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCustomerGroupIdCustomers(context.Background(), customerGroupId).Execute() + r, err := apiClient.HasManyApi.GETBraintreeGatewayIdBraintreePayments(context.Background(), braintreeGatewayId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerGroupIdCustomers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBraintreeGatewayIdBraintreePayments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2068,11 +2247,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerGroupId** | [**interface{}**](.md) | The resource's id | +**braintreeGatewayId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerGroupIdCustomersRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBraintreeGatewayIdBraintreePaymentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2097,11 +2276,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerGroupIdMarkets +## GETBraintreeGatewayIdPaymentMethods -> GETCustomerGroupIdMarkets(ctx, customerGroupId).Execute() +> GETBraintreeGatewayIdPaymentMethods(ctx, braintreeGatewayId).Execute() -Retrieve the markets associated to the customer group +Retrieve the payment methods associated to the braintree gateway @@ -2118,13 +2297,13 @@ import ( ) func main() { - customerGroupId := TODO // interface{} | The resource's id + braintreeGatewayId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCustomerGroupIdMarkets(context.Background(), customerGroupId).Execute() + r, err := apiClient.HasManyApi.GETBraintreeGatewayIdPaymentMethods(context.Background(), braintreeGatewayId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerGroupIdMarkets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBraintreeGatewayIdPaymentMethods``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2136,11 +2315,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerGroupId** | [**interface{}**](.md) | The resource's id | +**braintreeGatewayId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerGroupIdMarketsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBraintreeGatewayIdPaymentMethodsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2165,11 +2344,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerIdAttachments +## GETBraintreeGatewayIdVersions -> GETCustomerIdAttachments(ctx, customerId).Execute() +> GETBraintreeGatewayIdVersions(ctx, braintreeGatewayId).Execute() -Retrieve the attachments associated to the customer +Retrieve the versions associated to the braintree gateway @@ -2186,13 +2365,13 @@ import ( ) func main() { - customerId := TODO // interface{} | The resource's id + braintreeGatewayId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCustomerIdAttachments(context.Background(), customerId).Execute() + r, err := apiClient.HasManyApi.GETBraintreeGatewayIdVersions(context.Background(), braintreeGatewayId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBraintreeGatewayIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2204,11 +2383,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerId** | [**interface{}**](.md) | The resource's id | +**braintreeGatewayId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBraintreeGatewayIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2233,11 +2412,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerIdCustomerAddresses +## GETBraintreePaymentIdVersions -> GETCustomerIdCustomerAddresses(ctx, customerId).Execute() +> GETBraintreePaymentIdVersions(ctx, braintreePaymentId).Execute() -Retrieve the customer addresses associated to the customer +Retrieve the versions associated to the braintree payment @@ -2254,13 +2433,13 @@ import ( ) func main() { - customerId := TODO // interface{} | The resource's id + braintreePaymentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCustomerIdCustomerAddresses(context.Background(), customerId).Execute() + r, err := apiClient.HasManyApi.GETBraintreePaymentIdVersions(context.Background(), braintreePaymentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerIdCustomerAddresses``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBraintreePaymentIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2272,11 +2451,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerId** | [**interface{}**](.md) | The resource's id | +**braintreePaymentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerIdCustomerAddressesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBraintreePaymentIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2301,11 +2480,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerIdCustomerPaymentSources +## GETBundleIdAttachments -> GETCustomerIdCustomerPaymentSources(ctx, customerId).Execute() +> GETBundleIdAttachments(ctx, bundleId).Execute() -Retrieve the customer payment sources associated to the customer +Retrieve the attachments associated to the bundle @@ -2322,13 +2501,13 @@ import ( ) func main() { - customerId := TODO // interface{} | The resource's id + bundleId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCustomerIdCustomerPaymentSources(context.Background(), customerId).Execute() + r, err := apiClient.HasManyApi.GETBundleIdAttachments(context.Background(), bundleId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerIdCustomerPaymentSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBundleIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2340,11 +2519,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerId** | [**interface{}**](.md) | The resource's id | +**bundleId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerIdCustomerPaymentSourcesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBundleIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2369,11 +2548,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerIdCustomerSubscriptions +## GETBundleIdEvents -> GETCustomerIdCustomerSubscriptions(ctx, customerId).Execute() +> GETBundleIdEvents(ctx, bundleId).Execute() -Retrieve the customer subscriptions associated to the customer +Retrieve the events associated to the bundle @@ -2390,13 +2569,13 @@ import ( ) func main() { - customerId := TODO // interface{} | The resource's id + bundleId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCustomerIdCustomerSubscriptions(context.Background(), customerId).Execute() + r, err := apiClient.HasManyApi.GETBundleIdEvents(context.Background(), bundleId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerIdCustomerSubscriptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBundleIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2408,11 +2587,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerId** | [**interface{}**](.md) | The resource's id | +**bundleId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerIdCustomerSubscriptionsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBundleIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2437,11 +2616,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerIdEvents +## GETBundleIdSkus -> GETCustomerIdEvents(ctx, customerId).Execute() +> GETBundleIdSkus(ctx, bundleId).Execute() -Retrieve the events associated to the customer +Retrieve the skus associated to the bundle @@ -2458,13 +2637,13 @@ import ( ) func main() { - customerId := TODO // interface{} | The resource's id + bundleId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCustomerIdEvents(context.Background(), customerId).Execute() + r, err := apiClient.HasManyApi.GETBundleIdSkus(context.Background(), bundleId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBundleIdSkus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2476,11 +2655,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerId** | [**interface{}**](.md) | The resource's id | +**bundleId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBundleIdSkusRequest struct via the builder pattern Name | Type | Description | Notes @@ -2505,11 +2684,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerIdOrderSubscriptions +## GETBundleIdTags -> GETCustomerIdOrderSubscriptions(ctx, customerId).Execute() +> GETBundleIdTags(ctx, bundleId).Execute() -Retrieve the order subscriptions associated to the customer +Retrieve the tags associated to the bundle @@ -2526,13 +2705,13 @@ import ( ) func main() { - customerId := TODO // interface{} | The resource's id + bundleId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCustomerIdOrderSubscriptions(context.Background(), customerId).Execute() + r, err := apiClient.HasManyApi.GETBundleIdTags(context.Background(), bundleId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerIdOrderSubscriptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBundleIdTags``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2544,11 +2723,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerId** | [**interface{}**](.md) | The resource's id | +**bundleId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerIdOrderSubscriptionsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBundleIdTagsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2573,11 +2752,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerIdOrders +## GETBundleIdVersions -> GETCustomerIdOrders(ctx, customerId).Execute() +> GETBundleIdVersions(ctx, bundleId).Execute() -Retrieve the orders associated to the customer +Retrieve the versions associated to the bundle @@ -2594,13 +2773,13 @@ import ( ) func main() { - customerId := TODO // interface{} | The resource's id + bundleId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCustomerIdOrders(context.Background(), customerId).Execute() + r, err := apiClient.HasManyApi.GETBundleIdVersions(context.Background(), bundleId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerIdOrders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBundleIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2612,11 +2791,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerId** | [**interface{}**](.md) | The resource's id | +**bundleId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerIdOrdersRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBundleIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2641,11 +2820,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerIdReturns +## GETBuyXPayYPromotionIdAttachments -> GETCustomerIdReturns(ctx, customerId).Execute() +> GETBuyXPayYPromotionIdAttachments(ctx, buyXPayYPromotionId).Execute() -Retrieve the returns associated to the customer +Retrieve the attachments associated to the buy x pay y promotion @@ -2662,13 +2841,13 @@ import ( ) func main() { - customerId := TODO // interface{} | The resource's id + buyXPayYPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCustomerIdReturns(context.Background(), customerId).Execute() + r, err := apiClient.HasManyApi.GETBuyXPayYPromotionIdAttachments(context.Background(), buyXPayYPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerIdReturns``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBuyXPayYPromotionIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2680,11 +2859,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerId** | [**interface{}**](.md) | The resource's id | +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerIdReturnsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2709,11 +2888,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerIdSkuLists +## GETBuyXPayYPromotionIdCoupons -> GETCustomerIdSkuLists(ctx, customerId).Execute() +> GETBuyXPayYPromotionIdCoupons(ctx, buyXPayYPromotionId).Execute() -Retrieve the sku lists associated to the customer +Retrieve the coupons associated to the buy x pay y promotion @@ -2730,13 +2909,13 @@ import ( ) func main() { - customerId := TODO // interface{} | The resource's id + buyXPayYPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCustomerIdSkuLists(context.Background(), customerId).Execute() + r, err := apiClient.HasManyApi.GETBuyXPayYPromotionIdCoupons(context.Background(), buyXPayYPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerIdSkuLists``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBuyXPayYPromotionIdCoupons``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2748,11 +2927,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerId** | [**interface{}**](.md) | The resource's id | +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerIdSkuListsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdCouponsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2777,11 +2956,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerPasswordResetIdEvents +## GETBuyXPayYPromotionIdEvents -> GETCustomerPasswordResetIdEvents(ctx, customerPasswordResetId).Execute() +> GETBuyXPayYPromotionIdEvents(ctx, buyXPayYPromotionId).Execute() -Retrieve the events associated to the customer password reset +Retrieve the events associated to the buy x pay y promotion @@ -2798,13 +2977,13 @@ import ( ) func main() { - customerPasswordResetId := TODO // interface{} | The resource's id + buyXPayYPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCustomerPasswordResetIdEvents(context.Background(), customerPasswordResetId).Execute() + r, err := apiClient.HasManyApi.GETBuyXPayYPromotionIdEvents(context.Background(), buyXPayYPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerPasswordResetIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBuyXPayYPromotionIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2816,11 +2995,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerPasswordResetId** | [**interface{}**](.md) | The resource's id | +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerPasswordResetIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2845,11 +3024,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerSubscriptionIdEvents +## GETBuyXPayYPromotionIdSkus -> GETCustomerSubscriptionIdEvents(ctx, customerSubscriptionId).Execute() +> GETBuyXPayYPromotionIdSkus(ctx, buyXPayYPromotionId).Execute() -Retrieve the events associated to the customer subscription +Retrieve the skus associated to the buy x pay y promotion @@ -2866,13 +3045,13 @@ import ( ) func main() { - customerSubscriptionId := TODO // interface{} | The resource's id + buyXPayYPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETCustomerSubscriptionIdEvents(context.Background(), customerSubscriptionId).Execute() + r, err := apiClient.HasManyApi.GETBuyXPayYPromotionIdSkus(context.Background(), buyXPayYPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerSubscriptionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBuyXPayYPromotionIdSkus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2884,11 +3063,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerSubscriptionId** | [**interface{}**](.md) | The resource's id | +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerSubscriptionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdSkusRequest struct via the builder pattern Name | Type | Description | Notes @@ -2913,11 +3092,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETDeliveryLeadTimeIdAttachments +## GETBuyXPayYPromotionIdTags -> GETDeliveryLeadTimeIdAttachments(ctx, deliveryLeadTimeId).Execute() +> GETBuyXPayYPromotionIdTags(ctx, buyXPayYPromotionId).Execute() -Retrieve the attachments associated to the delivery lead time +Retrieve the tags associated to the buy x pay y promotion @@ -2934,13 +3113,13 @@ import ( ) func main() { - deliveryLeadTimeId := TODO // interface{} | The resource's id + buyXPayYPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETDeliveryLeadTimeIdAttachments(context.Background(), deliveryLeadTimeId).Execute() + r, err := apiClient.HasManyApi.GETBuyXPayYPromotionIdTags(context.Background(), buyXPayYPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETDeliveryLeadTimeIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBuyXPayYPromotionIdTags``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2952,11 +3131,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**deliveryLeadTimeId** | [**interface{}**](.md) | The resource's id | +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETDeliveryLeadTimeIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdTagsRequest struct via the builder pattern Name | Type | Description | Notes @@ -2981,11 +3160,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETEventIdLastEventCallbacks +## GETBuyXPayYPromotionIdVersions -> GETEventIdLastEventCallbacks(ctx, eventId).Execute() +> GETBuyXPayYPromotionIdVersions(ctx, buyXPayYPromotionId).Execute() -Retrieve the last event callbacks associated to the event +Retrieve the versions associated to the buy x pay y promotion @@ -3002,13 +3181,13 @@ import ( ) func main() { - eventId := TODO // interface{} | The resource's id + buyXPayYPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETEventIdLastEventCallbacks(context.Background(), eventId).Execute() + r, err := apiClient.HasManyApi.GETBuyXPayYPromotionIdVersions(context.Background(), buyXPayYPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETEventIdLastEventCallbacks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETBuyXPayYPromotionIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3020,11 +3199,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**eventId** | [**interface{}**](.md) | The resource's id | +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETEventIdLastEventCallbacksRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -3049,11 +3228,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETEventIdWebhooks +## GETCaptureIdAttachments -> GETEventIdWebhooks(ctx, eventId).Execute() +> GETCaptureIdAttachments(ctx, captureId).Execute() -Retrieve the webhooks associated to the event +Retrieve the attachments associated to the capture @@ -3070,13 +3249,13 @@ import ( ) func main() { - eventId := TODO // interface{} | The resource's id + captureId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETEventIdWebhooks(context.Background(), eventId).Execute() + r, err := apiClient.HasManyApi.GETCaptureIdAttachments(context.Background(), captureId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETEventIdWebhooks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCaptureIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3088,11 +3267,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**eventId** | [**interface{}**](.md) | The resource's id | +**captureId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETEventIdWebhooksRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCaptureIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -3117,11 +3296,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETExportIdEvents +## GETCaptureIdEvents -> GETExportIdEvents(ctx, exportId).Execute() +> GETCaptureIdEvents(ctx, captureId).Execute() -Retrieve the events associated to the export +Retrieve the events associated to the capture @@ -3138,13 +3317,13 @@ import ( ) func main() { - exportId := TODO // interface{} | The resource's id + captureId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETExportIdEvents(context.Background(), exportId).Execute() + r, err := apiClient.HasManyApi.GETCaptureIdEvents(context.Background(), captureId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExportIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCaptureIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3156,11 +3335,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**exportId** | [**interface{}**](.md) | The resource's id | +**captureId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETExportIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCaptureIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -3185,11 +3364,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETExternalGatewayIdExternalPayments +## GETCaptureIdRefunds -> GETExternalGatewayIdExternalPayments(ctx, externalGatewayId).Execute() +> GETCaptureIdRefunds(ctx, captureId).Execute() -Retrieve the external payments associated to the external gateway +Retrieve the refunds associated to the capture @@ -3206,13 +3385,13 @@ import ( ) func main() { - externalGatewayId := TODO // interface{} | The resource's id + captureId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETExternalGatewayIdExternalPayments(context.Background(), externalGatewayId).Execute() + r, err := apiClient.HasManyApi.GETCaptureIdRefunds(context.Background(), captureId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExternalGatewayIdExternalPayments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCaptureIdRefunds``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3224,11 +3403,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**externalGatewayId** | [**interface{}**](.md) | The resource's id | +**captureId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETExternalGatewayIdExternalPaymentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCaptureIdRefundsRequest struct via the builder pattern Name | Type | Description | Notes @@ -3253,11 +3432,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETExternalGatewayIdPaymentMethods +## GETCaptureIdVersions -> GETExternalGatewayIdPaymentMethods(ctx, externalGatewayId).Execute() +> GETCaptureIdVersions(ctx, captureId).Execute() -Retrieve the payment methods associated to the external gateway +Retrieve the versions associated to the capture @@ -3274,13 +3453,13 @@ import ( ) func main() { - externalGatewayId := TODO // interface{} | The resource's id + captureId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETExternalGatewayIdPaymentMethods(context.Background(), externalGatewayId).Execute() + r, err := apiClient.HasManyApi.GETCaptureIdVersions(context.Background(), captureId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExternalGatewayIdPaymentMethods``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCaptureIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3292,11 +3471,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**externalGatewayId** | [**interface{}**](.md) | The resource's id | +**captureId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETExternalGatewayIdPaymentMethodsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCaptureIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -3321,11 +3500,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETExternalPromotionIdAttachments +## GETCarrierAccountIdAttachments -> GETExternalPromotionIdAttachments(ctx, externalPromotionId).Execute() +> GETCarrierAccountIdAttachments(ctx, carrierAccountId).Execute() -Retrieve the attachments associated to the external promotion +Retrieve the attachments associated to the carrier account @@ -3342,13 +3521,13 @@ import ( ) func main() { - externalPromotionId := TODO // interface{} | The resource's id + carrierAccountId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETExternalPromotionIdAttachments(context.Background(), externalPromotionId).Execute() + r, err := apiClient.HasManyApi.GETCarrierAccountIdAttachments(context.Background(), carrierAccountId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExternalPromotionIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCarrierAccountIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3360,11 +3539,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**externalPromotionId** | [**interface{}**](.md) | The resource's id | +**carrierAccountId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETExternalPromotionIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCarrierAccountIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -3389,11 +3568,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETExternalPromotionIdEvents +## GETCarrierAccountIdVersions -> GETExternalPromotionIdEvents(ctx, externalPromotionId).Execute() +> GETCarrierAccountIdVersions(ctx, carrierAccountId).Execute() -Retrieve the events associated to the external promotion +Retrieve the versions associated to the carrier account @@ -3410,13 +3589,13 @@ import ( ) func main() { - externalPromotionId := TODO // interface{} | The resource's id + carrierAccountId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETExternalPromotionIdEvents(context.Background(), externalPromotionId).Execute() + r, err := apiClient.HasManyApi.GETCarrierAccountIdVersions(context.Background(), carrierAccountId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExternalPromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCarrierAccountIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3428,11 +3607,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**externalPromotionId** | [**interface{}**](.md) | The resource's id | +**carrierAccountId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETExternalPromotionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCarrierAccountIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -3457,11 +3636,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETExternalTaxCalculatorIdAttachments +## GETCheckoutComGatewayIdCheckoutComPayments -> GETExternalTaxCalculatorIdAttachments(ctx, externalTaxCalculatorId).Execute() +> GETCheckoutComGatewayIdCheckoutComPayments(ctx, checkoutComGatewayId).Execute() -Retrieve the attachments associated to the external tax calculator +Retrieve the checkout com payments associated to the checkout.com gateway @@ -3478,13 +3657,13 @@ import ( ) func main() { - externalTaxCalculatorId := TODO // interface{} | The resource's id + checkoutComGatewayId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETExternalTaxCalculatorIdAttachments(context.Background(), externalTaxCalculatorId).Execute() + r, err := apiClient.HasManyApi.GETCheckoutComGatewayIdCheckoutComPayments(context.Background(), checkoutComGatewayId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExternalTaxCalculatorIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCheckoutComGatewayIdCheckoutComPayments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3496,11 +3675,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**externalTaxCalculatorId** | [**interface{}**](.md) | The resource's id | +**checkoutComGatewayId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETExternalTaxCalculatorIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCheckoutComGatewayIdCheckoutComPaymentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -3525,11 +3704,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETExternalTaxCalculatorIdMarkets +## GETCheckoutComGatewayIdPaymentMethods -> GETExternalTaxCalculatorIdMarkets(ctx, externalTaxCalculatorId).Execute() +> GETCheckoutComGatewayIdPaymentMethods(ctx, checkoutComGatewayId).Execute() -Retrieve the markets associated to the external tax calculator +Retrieve the payment methods associated to the checkout.com gateway @@ -3546,13 +3725,13 @@ import ( ) func main() { - externalTaxCalculatorId := TODO // interface{} | The resource's id + checkoutComGatewayId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETExternalTaxCalculatorIdMarkets(context.Background(), externalTaxCalculatorId).Execute() + r, err := apiClient.HasManyApi.GETCheckoutComGatewayIdPaymentMethods(context.Background(), checkoutComGatewayId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExternalTaxCalculatorIdMarkets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCheckoutComGatewayIdPaymentMethods``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3564,11 +3743,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**externalTaxCalculatorId** | [**interface{}**](.md) | The resource's id | +**checkoutComGatewayId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETExternalTaxCalculatorIdMarketsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCheckoutComGatewayIdPaymentMethodsRequest struct via the builder pattern Name | Type | Description | Notes @@ -3593,11 +3772,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFixedAmountPromotionIdAttachments +## GETCheckoutComGatewayIdVersions -> GETFixedAmountPromotionIdAttachments(ctx, fixedAmountPromotionId).Execute() +> GETCheckoutComGatewayIdVersions(ctx, checkoutComGatewayId).Execute() -Retrieve the attachments associated to the fixed amount promotion +Retrieve the versions associated to the checkout.com gateway @@ -3614,13 +3793,13 @@ import ( ) func main() { - fixedAmountPromotionId := TODO // interface{} | The resource's id + checkoutComGatewayId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETFixedAmountPromotionIdAttachments(context.Background(), fixedAmountPromotionId).Execute() + r, err := apiClient.HasManyApi.GETCheckoutComGatewayIdVersions(context.Background(), checkoutComGatewayId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFixedAmountPromotionIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCheckoutComGatewayIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3632,11 +3811,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | +**checkoutComGatewayId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCheckoutComGatewayIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -3661,11 +3840,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFixedAmountPromotionIdEvents +## GETCheckoutComPaymentIdVersions -> GETFixedAmountPromotionIdEvents(ctx, fixedAmountPromotionId).Execute() +> GETCheckoutComPaymentIdVersions(ctx, checkoutComPaymentId).Execute() -Retrieve the events associated to the fixed amount promotion +Retrieve the versions associated to the checkout.com payment @@ -3682,13 +3861,13 @@ import ( ) func main() { - fixedAmountPromotionId := TODO // interface{} | The resource's id + checkoutComPaymentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETFixedAmountPromotionIdEvents(context.Background(), fixedAmountPromotionId).Execute() + r, err := apiClient.HasManyApi.GETCheckoutComPaymentIdVersions(context.Background(), checkoutComPaymentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFixedAmountPromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCheckoutComPaymentIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3700,11 +3879,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | +**checkoutComPaymentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCheckoutComPaymentIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -3729,11 +3908,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFixedPricePromotionIdAttachments +## GETCleanupIdEvents -> GETFixedPricePromotionIdAttachments(ctx, fixedPricePromotionId).Execute() +> GETCleanupIdEvents(ctx, cleanupId).Execute() -Retrieve the attachments associated to the fixed price promotion +Retrieve the events associated to the cleanup @@ -3750,13 +3929,13 @@ import ( ) func main() { - fixedPricePromotionId := TODO // interface{} | The resource's id + cleanupId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETFixedPricePromotionIdAttachments(context.Background(), fixedPricePromotionId).Execute() + r, err := apiClient.HasManyApi.GETCleanupIdEvents(context.Background(), cleanupId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFixedPricePromotionIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCleanupIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3768,11 +3947,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | +**cleanupId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCleanupIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -3797,11 +3976,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFixedPricePromotionIdEvents +## GETCleanupIdVersions -> GETFixedPricePromotionIdEvents(ctx, fixedPricePromotionId).Execute() +> GETCleanupIdVersions(ctx, cleanupId).Execute() -Retrieve the events associated to the fixed price promotion +Retrieve the versions associated to the cleanup @@ -3818,13 +3997,13 @@ import ( ) func main() { - fixedPricePromotionId := TODO // interface{} | The resource's id + cleanupId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETFixedPricePromotionIdEvents(context.Background(), fixedPricePromotionId).Execute() + r, err := apiClient.HasManyApi.GETCleanupIdVersions(context.Background(), cleanupId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFixedPricePromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCleanupIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3836,11 +4015,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | +**cleanupId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCleanupIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -3865,11 +4044,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFixedPricePromotionIdSkus +## GETCouponCodesPromotionRuleIdCoupons -> GETFixedPricePromotionIdSkus(ctx, fixedPricePromotionId).Execute() +> GETCouponCodesPromotionRuleIdCoupons(ctx, couponCodesPromotionRuleId).Execute() -Retrieve the skus associated to the fixed price promotion +Retrieve the coupons associated to the coupon codes promotion rule @@ -3886,13 +4065,13 @@ import ( ) func main() { - fixedPricePromotionId := TODO // interface{} | The resource's id + couponCodesPromotionRuleId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETFixedPricePromotionIdSkus(context.Background(), fixedPricePromotionId).Execute() + r, err := apiClient.HasManyApi.GETCouponCodesPromotionRuleIdCoupons(context.Background(), couponCodesPromotionRuleId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFixedPricePromotionIdSkus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCouponCodesPromotionRuleIdCoupons``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3904,11 +4083,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | +**couponCodesPromotionRuleId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdSkusRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCouponCodesPromotionRuleIdCouponsRequest struct via the builder pattern Name | Type | Description | Notes @@ -3933,11 +4112,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFreeGiftPromotionIdAttachments +## GETCouponCodesPromotionRuleIdVersions -> GETFreeGiftPromotionIdAttachments(ctx, freeGiftPromotionId).Execute() +> GETCouponCodesPromotionRuleIdVersions(ctx, couponCodesPromotionRuleId).Execute() -Retrieve the attachments associated to the free gift promotion +Retrieve the versions associated to the coupon codes promotion rule @@ -3954,13 +4133,13 @@ import ( ) func main() { - freeGiftPromotionId := TODO // interface{} | The resource's id + couponCodesPromotionRuleId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETFreeGiftPromotionIdAttachments(context.Background(), freeGiftPromotionId).Execute() + r, err := apiClient.HasManyApi.GETCouponCodesPromotionRuleIdVersions(context.Background(), couponCodesPromotionRuleId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFreeGiftPromotionIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCouponCodesPromotionRuleIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3972,11 +4151,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | +**couponCodesPromotionRuleId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCouponCodesPromotionRuleIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -4001,11 +4180,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFreeGiftPromotionIdEvents +## GETCouponIdEvents -> GETFreeGiftPromotionIdEvents(ctx, freeGiftPromotionId).Execute() +> GETCouponIdEvents(ctx, couponId).Execute() -Retrieve the events associated to the free gift promotion +Retrieve the events associated to the coupon @@ -4022,13 +4201,13 @@ import ( ) func main() { - freeGiftPromotionId := TODO // interface{} | The resource's id + couponId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETFreeGiftPromotionIdEvents(context.Background(), freeGiftPromotionId).Execute() + r, err := apiClient.HasManyApi.GETCouponIdEvents(context.Background(), couponId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFreeGiftPromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCouponIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4040,11 +4219,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | +**couponId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCouponIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -4069,11 +4248,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFreeGiftPromotionIdSkus +## GETCouponIdTags -> GETFreeGiftPromotionIdSkus(ctx, freeGiftPromotionId).Execute() +> GETCouponIdTags(ctx, couponId).Execute() -Retrieve the skus associated to the free gift promotion +Retrieve the tags associated to the coupon @@ -4090,13 +4269,13 @@ import ( ) func main() { - freeGiftPromotionId := TODO // interface{} | The resource's id + couponId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETFreeGiftPromotionIdSkus(context.Background(), freeGiftPromotionId).Execute() + r, err := apiClient.HasManyApi.GETCouponIdTags(context.Background(), couponId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFreeGiftPromotionIdSkus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCouponIdTags``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4108,11 +4287,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | +**couponId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdSkusRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCouponIdTagsRequest struct via the builder pattern Name | Type | Description | Notes @@ -4137,11 +4316,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFreeShippingPromotionIdAttachments +## GETCouponIdVersions -> GETFreeShippingPromotionIdAttachments(ctx, freeShippingPromotionId).Execute() +> GETCouponIdVersions(ctx, couponId).Execute() -Retrieve the attachments associated to the free shipping promotion +Retrieve the versions associated to the coupon @@ -4158,13 +4337,13 @@ import ( ) func main() { - freeShippingPromotionId := TODO // interface{} | The resource's id + couponId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETFreeShippingPromotionIdAttachments(context.Background(), freeShippingPromotionId).Execute() + r, err := apiClient.HasManyApi.GETCouponIdVersions(context.Background(), couponId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFreeShippingPromotionIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCouponIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4176,11 +4355,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | +**couponId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCouponIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -4205,11 +4384,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFreeShippingPromotionIdEvents +## GETCouponRecipientIdAttachments -> GETFreeShippingPromotionIdEvents(ctx, freeShippingPromotionId).Execute() +> GETCouponRecipientIdAttachments(ctx, couponRecipientId).Execute() -Retrieve the events associated to the free shipping promotion +Retrieve the attachments associated to the coupon recipient @@ -4226,13 +4405,13 @@ import ( ) func main() { - freeShippingPromotionId := TODO // interface{} | The resource's id + couponRecipientId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETFreeShippingPromotionIdEvents(context.Background(), freeShippingPromotionId).Execute() + r, err := apiClient.HasManyApi.GETCouponRecipientIdAttachments(context.Background(), couponRecipientId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFreeShippingPromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCouponRecipientIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4244,11 +4423,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | +**couponRecipientId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCouponRecipientIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -4273,11 +4452,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETGeocoderIdAddresses +## GETCouponRecipientIdVersions -> GETGeocoderIdAddresses(ctx, geocoderId).Execute() +> GETCouponRecipientIdVersions(ctx, couponRecipientId).Execute() -Retrieve the addresses associated to the geocoder +Retrieve the versions associated to the coupon recipient @@ -4294,13 +4473,13 @@ import ( ) func main() { - geocoderId := TODO // interface{} | The resource's id + couponRecipientId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETGeocoderIdAddresses(context.Background(), geocoderId).Execute() + r, err := apiClient.HasManyApi.GETCouponRecipientIdVersions(context.Background(), couponRecipientId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETGeocoderIdAddresses``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCouponRecipientIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4312,11 +4491,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**geocoderId** | [**interface{}**](.md) | The resource's id | +**couponRecipientId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETGeocoderIdAddressesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCouponRecipientIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -4341,11 +4520,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETGeocoderIdAttachments +## GETCustomPromotionRuleIdVersions -> GETGeocoderIdAttachments(ctx, geocoderId).Execute() +> GETCustomPromotionRuleIdVersions(ctx, customPromotionRuleId).Execute() -Retrieve the attachments associated to the geocoder +Retrieve the versions associated to the custom promotion rule @@ -4362,13 +4541,13 @@ import ( ) func main() { - geocoderId := TODO // interface{} | The resource's id + customPromotionRuleId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETGeocoderIdAttachments(context.Background(), geocoderId).Execute() + r, err := apiClient.HasManyApi.GETCustomPromotionRuleIdVersions(context.Background(), customPromotionRuleId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETGeocoderIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomPromotionRuleIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4380,11 +4559,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**geocoderId** | [**interface{}**](.md) | The resource's id | +**customPromotionRuleId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETGeocoderIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCustomPromotionRuleIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -4409,11 +4588,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETGiftCardIdAttachments +## GETCustomerAddressIdEvents -> GETGiftCardIdAttachments(ctx, giftCardId).Execute() +> GETCustomerAddressIdEvents(ctx, customerAddressId).Execute() -Retrieve the attachments associated to the gift card +Retrieve the events associated to the customer address @@ -4430,13 +4609,13 @@ import ( ) func main() { - giftCardId := TODO // interface{} | The resource's id + customerAddressId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETGiftCardIdAttachments(context.Background(), giftCardId).Execute() + r, err := apiClient.HasManyApi.GETCustomerAddressIdEvents(context.Background(), customerAddressId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETGiftCardIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerAddressIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4448,11 +4627,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**giftCardId** | [**interface{}**](.md) | The resource's id | +**customerAddressId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETGiftCardIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCustomerAddressIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -4477,11 +4656,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETGiftCardIdEvents +## GETCustomerAddressIdVersions -> GETGiftCardIdEvents(ctx, giftCardId).Execute() +> GETCustomerAddressIdVersions(ctx, customerAddressId).Execute() -Retrieve the events associated to the gift card +Retrieve the versions associated to the customer address @@ -4498,13 +4677,13 @@ import ( ) func main() { - giftCardId := TODO // interface{} | The resource's id + customerAddressId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETGiftCardIdEvents(context.Background(), giftCardId).Execute() + r, err := apiClient.HasManyApi.GETCustomerAddressIdVersions(context.Background(), customerAddressId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETGiftCardIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerAddressIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4516,11 +4695,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**giftCardId** | [**interface{}**](.md) | The resource's id | +**customerAddressId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETGiftCardIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCustomerAddressIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -4545,11 +4724,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETGiftCardRecipientIdAttachments +## GETCustomerGroupIdAttachments -> GETGiftCardRecipientIdAttachments(ctx, giftCardRecipientId).Execute() +> GETCustomerGroupIdAttachments(ctx, customerGroupId).Execute() -Retrieve the attachments associated to the gift card recipient +Retrieve the attachments associated to the customer group @@ -4566,13 +4745,12185 @@ import ( ) func main() { - giftCardRecipientId := TODO // interface{} | The resource's id + customerGroupId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETCustomerGroupIdAttachments(context.Background(), customerGroupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerGroupIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerGroupId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerGroupIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerGroupIdCustomers + +> GETCustomerGroupIdCustomers(ctx, customerGroupId).Execute() + +Retrieve the customers associated to the customer group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerGroupId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETCustomerGroupIdCustomers(context.Background(), customerGroupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerGroupIdCustomers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerGroupId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerGroupIdCustomersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerGroupIdMarkets + +> GETCustomerGroupIdMarkets(ctx, customerGroupId).Execute() + +Retrieve the markets associated to the customer group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerGroupId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETCustomerGroupIdMarkets(context.Background(), customerGroupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerGroupIdMarkets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerGroupId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerGroupIdMarketsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerGroupIdVersions + +> GETCustomerGroupIdVersions(ctx, customerGroupId).Execute() + +Retrieve the versions associated to the customer group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerGroupId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETCustomerGroupIdVersions(context.Background(), customerGroupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerGroupIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerGroupId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerGroupIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerIdAttachments + +> GETCustomerIdAttachments(ctx, customerId).Execute() + +Retrieve the attachments associated to the customer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETCustomerIdAttachments(context.Background(), customerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerIdCustomerAddresses + +> GETCustomerIdCustomerAddresses(ctx, customerId).Execute() + +Retrieve the customer addresses associated to the customer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETCustomerIdCustomerAddresses(context.Background(), customerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerIdCustomerAddresses``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerIdCustomerAddressesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerIdCustomerPaymentSources + +> GETCustomerIdCustomerPaymentSources(ctx, customerId).Execute() + +Retrieve the customer payment sources associated to the customer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETCustomerIdCustomerPaymentSources(context.Background(), customerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerIdCustomerPaymentSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerIdCustomerPaymentSourcesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerIdCustomerSubscriptions + +> GETCustomerIdCustomerSubscriptions(ctx, customerId).Execute() + +Retrieve the customer subscriptions associated to the customer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETCustomerIdCustomerSubscriptions(context.Background(), customerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerIdCustomerSubscriptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerIdCustomerSubscriptionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerIdEvents + +> GETCustomerIdEvents(ctx, customerId).Execute() + +Retrieve the events associated to the customer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETCustomerIdEvents(context.Background(), customerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerIdOrderSubscriptions + +> GETCustomerIdOrderSubscriptions(ctx, customerId).Execute() + +Retrieve the order subscriptions associated to the customer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETCustomerIdOrderSubscriptions(context.Background(), customerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerIdOrderSubscriptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerIdOrderSubscriptionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerIdOrders + +> GETCustomerIdOrders(ctx, customerId).Execute() + +Retrieve the orders associated to the customer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETCustomerIdOrders(context.Background(), customerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerIdOrders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerIdOrdersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerIdReturns + +> GETCustomerIdReturns(ctx, customerId).Execute() + +Retrieve the returns associated to the customer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETCustomerIdReturns(context.Background(), customerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerIdReturns``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerIdReturnsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerIdSkuLists + +> GETCustomerIdSkuLists(ctx, customerId).Execute() + +Retrieve the sku lists associated to the customer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETCustomerIdSkuLists(context.Background(), customerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerIdSkuLists``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerIdSkuListsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerIdTags + +> GETCustomerIdTags(ctx, customerId).Execute() + +Retrieve the tags associated to the customer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETCustomerIdTags(context.Background(), customerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerPasswordResetIdEvents + +> GETCustomerPasswordResetIdEvents(ctx, customerPasswordResetId).Execute() + +Retrieve the events associated to the customer password reset + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerPasswordResetId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETCustomerPasswordResetIdEvents(context.Background(), customerPasswordResetId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerPasswordResetIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerPasswordResetId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerPasswordResetIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerPaymentSourceIdVersions + +> GETCustomerPaymentSourceIdVersions(ctx, customerPaymentSourceId).Execute() + +Retrieve the versions associated to the customer payment source + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerPaymentSourceId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETCustomerPaymentSourceIdVersions(context.Background(), customerPaymentSourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerPaymentSourceIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerPaymentSourceId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerPaymentSourceIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerSubscriptionIdEvents + +> GETCustomerSubscriptionIdEvents(ctx, customerSubscriptionId).Execute() + +Retrieve the events associated to the customer subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETCustomerSubscriptionIdEvents(context.Background(), customerSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerSubscriptionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerSubscriptionIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerSubscriptionIdVersions + +> GETCustomerSubscriptionIdVersions(ctx, customerSubscriptionId).Execute() + +Retrieve the versions associated to the customer subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETCustomerSubscriptionIdVersions(context.Background(), customerSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETCustomerSubscriptionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerSubscriptionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETDeliveryLeadTimeIdAttachments + +> GETDeliveryLeadTimeIdAttachments(ctx, deliveryLeadTimeId).Execute() + +Retrieve the attachments associated to the delivery lead time + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + deliveryLeadTimeId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETDeliveryLeadTimeIdAttachments(context.Background(), deliveryLeadTimeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETDeliveryLeadTimeIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**deliveryLeadTimeId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETDeliveryLeadTimeIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETDeliveryLeadTimeIdVersions + +> GETDeliveryLeadTimeIdVersions(ctx, deliveryLeadTimeId).Execute() + +Retrieve the versions associated to the delivery lead time + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + deliveryLeadTimeId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETDeliveryLeadTimeIdVersions(context.Background(), deliveryLeadTimeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETDeliveryLeadTimeIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**deliveryLeadTimeId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETDeliveryLeadTimeIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETEventIdLastEventCallbacks + +> GETEventIdLastEventCallbacks(ctx, eventId).Execute() + +Retrieve the last event callbacks associated to the event + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + eventId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETEventIdLastEventCallbacks(context.Background(), eventId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETEventIdLastEventCallbacks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**eventId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETEventIdLastEventCallbacksRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETEventIdWebhooks + +> GETEventIdWebhooks(ctx, eventId).Execute() + +Retrieve the webhooks associated to the event + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + eventId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETEventIdWebhooks(context.Background(), eventId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETEventIdWebhooks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**eventId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETEventIdWebhooksRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExportIdEvents + +> GETExportIdEvents(ctx, exportId).Execute() + +Retrieve the events associated to the export + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + exportId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETExportIdEvents(context.Background(), exportId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExportIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**exportId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExportIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalGatewayIdExternalPayments + +> GETExternalGatewayIdExternalPayments(ctx, externalGatewayId).Execute() + +Retrieve the external payments associated to the external gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETExternalGatewayIdExternalPayments(context.Background(), externalGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExternalGatewayIdExternalPayments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalGatewayIdExternalPaymentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalGatewayIdPaymentMethods + +> GETExternalGatewayIdPaymentMethods(ctx, externalGatewayId).Execute() + +Retrieve the payment methods associated to the external gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETExternalGatewayIdPaymentMethods(context.Background(), externalGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExternalGatewayIdPaymentMethods``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalGatewayIdPaymentMethodsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalGatewayIdVersions + +> GETExternalGatewayIdVersions(ctx, externalGatewayId).Execute() + +Retrieve the versions associated to the external gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETExternalGatewayIdVersions(context.Background(), externalGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExternalGatewayIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalGatewayIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalPaymentIdVersions + +> GETExternalPaymentIdVersions(ctx, externalPaymentId).Execute() + +Retrieve the versions associated to the external payment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalPaymentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETExternalPaymentIdVersions(context.Background(), externalPaymentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExternalPaymentIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalPaymentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalPaymentIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalPromotionIdAttachments + +> GETExternalPromotionIdAttachments(ctx, externalPromotionId).Execute() + +Retrieve the attachments associated to the external promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETExternalPromotionIdAttachments(context.Background(), externalPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExternalPromotionIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalPromotionIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalPromotionIdCoupons + +> GETExternalPromotionIdCoupons(ctx, externalPromotionId).Execute() + +Retrieve the coupons associated to the external promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETExternalPromotionIdCoupons(context.Background(), externalPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExternalPromotionIdCoupons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalPromotionIdCouponsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalPromotionIdEvents + +> GETExternalPromotionIdEvents(ctx, externalPromotionId).Execute() + +Retrieve the events associated to the external promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETExternalPromotionIdEvents(context.Background(), externalPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExternalPromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalPromotionIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalPromotionIdSkus + +> GETExternalPromotionIdSkus(ctx, externalPromotionId).Execute() + +Retrieve the skus associated to the external promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETExternalPromotionIdSkus(context.Background(), externalPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExternalPromotionIdSkus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalPromotionIdSkusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalPromotionIdTags + +> GETExternalPromotionIdTags(ctx, externalPromotionId).Execute() + +Retrieve the tags associated to the external promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETExternalPromotionIdTags(context.Background(), externalPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExternalPromotionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalPromotionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalPromotionIdVersions + +> GETExternalPromotionIdVersions(ctx, externalPromotionId).Execute() + +Retrieve the versions associated to the external promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETExternalPromotionIdVersions(context.Background(), externalPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExternalPromotionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalPromotionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalTaxCalculatorIdAttachments + +> GETExternalTaxCalculatorIdAttachments(ctx, externalTaxCalculatorId).Execute() + +Retrieve the attachments associated to the external tax calculator + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalTaxCalculatorId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETExternalTaxCalculatorIdAttachments(context.Background(), externalTaxCalculatorId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExternalTaxCalculatorIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalTaxCalculatorId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalTaxCalculatorIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalTaxCalculatorIdMarkets + +> GETExternalTaxCalculatorIdMarkets(ctx, externalTaxCalculatorId).Execute() + +Retrieve the markets associated to the external tax calculator + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalTaxCalculatorId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETExternalTaxCalculatorIdMarkets(context.Background(), externalTaxCalculatorId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExternalTaxCalculatorIdMarkets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalTaxCalculatorId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalTaxCalculatorIdMarketsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalTaxCalculatorIdVersions + +> GETExternalTaxCalculatorIdVersions(ctx, externalTaxCalculatorId).Execute() + +Retrieve the versions associated to the external tax calculator + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalTaxCalculatorId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETExternalTaxCalculatorIdVersions(context.Background(), externalTaxCalculatorId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETExternalTaxCalculatorIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalTaxCalculatorId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalTaxCalculatorIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedAmountPromotionIdAttachments + +> GETFixedAmountPromotionIdAttachments(ctx, fixedAmountPromotionId).Execute() + +Retrieve the attachments associated to the fixed amount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedAmountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFixedAmountPromotionIdAttachments(context.Background(), fixedAmountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFixedAmountPromotionIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedAmountPromotionIdCoupons + +> GETFixedAmountPromotionIdCoupons(ctx, fixedAmountPromotionId).Execute() + +Retrieve the coupons associated to the fixed amount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedAmountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFixedAmountPromotionIdCoupons(context.Background(), fixedAmountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFixedAmountPromotionIdCoupons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdCouponsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedAmountPromotionIdEvents + +> GETFixedAmountPromotionIdEvents(ctx, fixedAmountPromotionId).Execute() + +Retrieve the events associated to the fixed amount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedAmountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFixedAmountPromotionIdEvents(context.Background(), fixedAmountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFixedAmountPromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedAmountPromotionIdSkus + +> GETFixedAmountPromotionIdSkus(ctx, fixedAmountPromotionId).Execute() + +Retrieve the skus associated to the fixed amount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedAmountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFixedAmountPromotionIdSkus(context.Background(), fixedAmountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFixedAmountPromotionIdSkus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdSkusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedAmountPromotionIdTags + +> GETFixedAmountPromotionIdTags(ctx, fixedAmountPromotionId).Execute() + +Retrieve the tags associated to the fixed amount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedAmountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFixedAmountPromotionIdTags(context.Background(), fixedAmountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFixedAmountPromotionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedAmountPromotionIdVersions + +> GETFixedAmountPromotionIdVersions(ctx, fixedAmountPromotionId).Execute() + +Retrieve the versions associated to the fixed amount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedAmountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFixedAmountPromotionIdVersions(context.Background(), fixedAmountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFixedAmountPromotionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedPricePromotionIdAttachments + +> GETFixedPricePromotionIdAttachments(ctx, fixedPricePromotionId).Execute() + +Retrieve the attachments associated to the fixed price promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedPricePromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFixedPricePromotionIdAttachments(context.Background(), fixedPricePromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFixedPricePromotionIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedPricePromotionIdCoupons + +> GETFixedPricePromotionIdCoupons(ctx, fixedPricePromotionId).Execute() + +Retrieve the coupons associated to the fixed price promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedPricePromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFixedPricePromotionIdCoupons(context.Background(), fixedPricePromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFixedPricePromotionIdCoupons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdCouponsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedPricePromotionIdEvents + +> GETFixedPricePromotionIdEvents(ctx, fixedPricePromotionId).Execute() + +Retrieve the events associated to the fixed price promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedPricePromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFixedPricePromotionIdEvents(context.Background(), fixedPricePromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFixedPricePromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedPricePromotionIdSkus + +> GETFixedPricePromotionIdSkus(ctx, fixedPricePromotionId).Execute() + +Retrieve the skus associated to the fixed price promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedPricePromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFixedPricePromotionIdSkus(context.Background(), fixedPricePromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFixedPricePromotionIdSkus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdSkusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedPricePromotionIdTags + +> GETFixedPricePromotionIdTags(ctx, fixedPricePromotionId).Execute() + +Retrieve the tags associated to the fixed price promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedPricePromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFixedPricePromotionIdTags(context.Background(), fixedPricePromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFixedPricePromotionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedPricePromotionIdVersions + +> GETFixedPricePromotionIdVersions(ctx, fixedPricePromotionId).Execute() + +Retrieve the versions associated to the fixed price promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedPricePromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFixedPricePromotionIdVersions(context.Background(), fixedPricePromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFixedPricePromotionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFlexPromotionIdAttachments + +> GETFlexPromotionIdAttachments(ctx, flexPromotionId).Execute() + +Retrieve the attachments associated to the flex promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + flexPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFlexPromotionIdAttachments(context.Background(), flexPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFlexPromotionIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flexPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFlexPromotionIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFlexPromotionIdCoupons + +> GETFlexPromotionIdCoupons(ctx, flexPromotionId).Execute() + +Retrieve the coupons associated to the flex promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + flexPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFlexPromotionIdCoupons(context.Background(), flexPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFlexPromotionIdCoupons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flexPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFlexPromotionIdCouponsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFlexPromotionIdEvents + +> GETFlexPromotionIdEvents(ctx, flexPromotionId).Execute() + +Retrieve the events associated to the flex promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + flexPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFlexPromotionIdEvents(context.Background(), flexPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFlexPromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flexPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFlexPromotionIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFlexPromotionIdTags + +> GETFlexPromotionIdTags(ctx, flexPromotionId).Execute() + +Retrieve the tags associated to the flex promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + flexPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFlexPromotionIdTags(context.Background(), flexPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFlexPromotionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flexPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFlexPromotionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFlexPromotionIdVersions + +> GETFlexPromotionIdVersions(ctx, flexPromotionId).Execute() + +Retrieve the versions associated to the flex promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + flexPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFlexPromotionIdVersions(context.Background(), flexPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFlexPromotionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flexPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFlexPromotionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeGiftPromotionIdAttachments + +> GETFreeGiftPromotionIdAttachments(ctx, freeGiftPromotionId).Execute() + +Retrieve the attachments associated to the free gift promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeGiftPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFreeGiftPromotionIdAttachments(context.Background(), freeGiftPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFreeGiftPromotionIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeGiftPromotionIdCoupons + +> GETFreeGiftPromotionIdCoupons(ctx, freeGiftPromotionId).Execute() + +Retrieve the coupons associated to the free gift promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeGiftPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFreeGiftPromotionIdCoupons(context.Background(), freeGiftPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFreeGiftPromotionIdCoupons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdCouponsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeGiftPromotionIdEvents + +> GETFreeGiftPromotionIdEvents(ctx, freeGiftPromotionId).Execute() + +Retrieve the events associated to the free gift promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeGiftPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFreeGiftPromotionIdEvents(context.Background(), freeGiftPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFreeGiftPromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeGiftPromotionIdSkus + +> GETFreeGiftPromotionIdSkus(ctx, freeGiftPromotionId).Execute() + +Retrieve the skus associated to the free gift promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeGiftPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFreeGiftPromotionIdSkus(context.Background(), freeGiftPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFreeGiftPromotionIdSkus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdSkusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeGiftPromotionIdTags + +> GETFreeGiftPromotionIdTags(ctx, freeGiftPromotionId).Execute() + +Retrieve the tags associated to the free gift promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeGiftPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFreeGiftPromotionIdTags(context.Background(), freeGiftPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFreeGiftPromotionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeGiftPromotionIdVersions + +> GETFreeGiftPromotionIdVersions(ctx, freeGiftPromotionId).Execute() + +Retrieve the versions associated to the free gift promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeGiftPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFreeGiftPromotionIdVersions(context.Background(), freeGiftPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFreeGiftPromotionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeShippingPromotionIdAttachments + +> GETFreeShippingPromotionIdAttachments(ctx, freeShippingPromotionId).Execute() + +Retrieve the attachments associated to the free shipping promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeShippingPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFreeShippingPromotionIdAttachments(context.Background(), freeShippingPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFreeShippingPromotionIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeShippingPromotionIdCoupons + +> GETFreeShippingPromotionIdCoupons(ctx, freeShippingPromotionId).Execute() + +Retrieve the coupons associated to the free shipping promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeShippingPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFreeShippingPromotionIdCoupons(context.Background(), freeShippingPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFreeShippingPromotionIdCoupons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdCouponsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeShippingPromotionIdEvents + +> GETFreeShippingPromotionIdEvents(ctx, freeShippingPromotionId).Execute() + +Retrieve the events associated to the free shipping promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeShippingPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFreeShippingPromotionIdEvents(context.Background(), freeShippingPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFreeShippingPromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeShippingPromotionIdTags + +> GETFreeShippingPromotionIdTags(ctx, freeShippingPromotionId).Execute() + +Retrieve the tags associated to the free shipping promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeShippingPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFreeShippingPromotionIdTags(context.Background(), freeShippingPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFreeShippingPromotionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeShippingPromotionIdVersions + +> GETFreeShippingPromotionIdVersions(ctx, freeShippingPromotionId).Execute() + +Retrieve the versions associated to the free shipping promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeShippingPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETFreeShippingPromotionIdVersions(context.Background(), freeShippingPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETFreeShippingPromotionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETGeocoderIdAddresses + +> GETGeocoderIdAddresses(ctx, geocoderId).Execute() + +Retrieve the addresses associated to the geocoder + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + geocoderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETGeocoderIdAddresses(context.Background(), geocoderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETGeocoderIdAddresses``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**geocoderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGeocoderIdAddressesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETGeocoderIdAttachments + +> GETGeocoderIdAttachments(ctx, geocoderId).Execute() + +Retrieve the attachments associated to the geocoder + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + geocoderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETGeocoderIdAttachments(context.Background(), geocoderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETGeocoderIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**geocoderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGeocoderIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETGeocoderIdMarkets + +> GETGeocoderIdMarkets(ctx, geocoderId).Execute() + +Retrieve the markets associated to the geocoder + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + geocoderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETGeocoderIdMarkets(context.Background(), geocoderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETGeocoderIdMarkets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**geocoderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGeocoderIdMarketsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETGiftCardIdAttachments + +> GETGiftCardIdAttachments(ctx, giftCardId).Execute() + +Retrieve the attachments associated to the gift card + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + giftCardId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETGiftCardIdAttachments(context.Background(), giftCardId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETGiftCardIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**giftCardId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGiftCardIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETGiftCardIdEvents + +> GETGiftCardIdEvents(ctx, giftCardId).Execute() + +Retrieve the events associated to the gift card + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + giftCardId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETGiftCardIdEvents(context.Background(), giftCardId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETGiftCardIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**giftCardId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGiftCardIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETGiftCardIdTags + +> GETGiftCardIdTags(ctx, giftCardId).Execute() + +Retrieve the tags associated to the gift card + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + giftCardId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETGiftCardIdTags(context.Background(), giftCardId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETGiftCardIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**giftCardId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGiftCardIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETGiftCardIdVersions + +> GETGiftCardIdVersions(ctx, giftCardId).Execute() + +Retrieve the versions associated to the gift card + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + giftCardId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETGiftCardIdVersions(context.Background(), giftCardId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETGiftCardIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**giftCardId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGiftCardIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETGiftCardRecipientIdAttachments + +> GETGiftCardRecipientIdAttachments(ctx, giftCardRecipientId).Execute() + +Retrieve the attachments associated to the gift card recipient + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + giftCardRecipientId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) r, err := apiClient.HasManyApi.GETGiftCardRecipientIdAttachments(context.Background(), giftCardRecipientId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETGiftCardRecipientIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETGiftCardRecipientIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**giftCardRecipientId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGiftCardRecipientIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETGiftCardRecipientIdVersions + +> GETGiftCardRecipientIdVersions(ctx, giftCardRecipientId).Execute() + +Retrieve the versions associated to the gift card recipient + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + giftCardRecipientId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETGiftCardRecipientIdVersions(context.Background(), giftCardRecipientId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETGiftCardRecipientIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**giftCardRecipientId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGiftCardRecipientIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETGoogleGeocoderIdAddresses + +> GETGoogleGeocoderIdAddresses(ctx, googleGeocoderId).Execute() + +Retrieve the addresses associated to the google geocoder + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + googleGeocoderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETGoogleGeocoderIdAddresses(context.Background(), googleGeocoderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETGoogleGeocoderIdAddresses``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**googleGeocoderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGoogleGeocoderIdAddressesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETGoogleGeocoderIdAttachments + +> GETGoogleGeocoderIdAttachments(ctx, googleGeocoderId).Execute() + +Retrieve the attachments associated to the google geocoder + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + googleGeocoderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETGoogleGeocoderIdAttachments(context.Background(), googleGeocoderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETGoogleGeocoderIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**googleGeocoderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGoogleGeocoderIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETGoogleGeocoderIdMarkets + +> GETGoogleGeocoderIdMarkets(ctx, googleGeocoderId).Execute() + +Retrieve the markets associated to the google geocoder + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + googleGeocoderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETGoogleGeocoderIdMarkets(context.Background(), googleGeocoderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETGoogleGeocoderIdMarkets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**googleGeocoderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGoogleGeocoderIdMarketsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETImportIdEvents + +> GETImportIdEvents(ctx, importId).Execute() + +Retrieve the events associated to the import + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + importId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETImportIdEvents(context.Background(), importId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETImportIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**importId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETImportIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETInStockSubscriptionIdEvents + +> GETInStockSubscriptionIdEvents(ctx, inStockSubscriptionId).Execute() + +Retrieve the events associated to the in stock subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + inStockSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETInStockSubscriptionIdEvents(context.Background(), inStockSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETInStockSubscriptionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**inStockSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETInStockSubscriptionIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETInStockSubscriptionIdVersions + +> GETInStockSubscriptionIdVersions(ctx, inStockSubscriptionId).Execute() + +Retrieve the versions associated to the in stock subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + inStockSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETInStockSubscriptionIdVersions(context.Background(), inStockSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETInStockSubscriptionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**inStockSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETInStockSubscriptionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETInventoryModelIdAttachments + +> GETInventoryModelIdAttachments(ctx, inventoryModelId).Execute() + +Retrieve the attachments associated to the inventory model + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + inventoryModelId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETInventoryModelIdAttachments(context.Background(), inventoryModelId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETInventoryModelIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**inventoryModelId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETInventoryModelIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETInventoryModelIdInventoryReturnLocations + +> GETInventoryModelIdInventoryReturnLocations(ctx, inventoryModelId).Execute() + +Retrieve the inventory return locations associated to the inventory model + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + inventoryModelId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETInventoryModelIdInventoryReturnLocations(context.Background(), inventoryModelId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETInventoryModelIdInventoryReturnLocations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**inventoryModelId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETInventoryModelIdInventoryReturnLocationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETInventoryModelIdInventoryStockLocations + +> GETInventoryModelIdInventoryStockLocations(ctx, inventoryModelId).Execute() + +Retrieve the inventory stock locations associated to the inventory model + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + inventoryModelId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETInventoryModelIdInventoryStockLocations(context.Background(), inventoryModelId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETInventoryModelIdInventoryStockLocations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**inventoryModelId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETInventoryModelIdInventoryStockLocationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETInventoryModelIdVersions + +> GETInventoryModelIdVersions(ctx, inventoryModelId).Execute() + +Retrieve the versions associated to the inventory model + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + inventoryModelId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETInventoryModelIdVersions(context.Background(), inventoryModelId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETInventoryModelIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**inventoryModelId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETInventoryModelIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETInventoryReturnLocationIdVersions + +> GETInventoryReturnLocationIdVersions(ctx, inventoryReturnLocationId).Execute() + +Retrieve the versions associated to the inventory return location + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + inventoryReturnLocationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETInventoryReturnLocationIdVersions(context.Background(), inventoryReturnLocationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETInventoryReturnLocationIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**inventoryReturnLocationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETInventoryReturnLocationIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETInventoryStockLocationIdVersions + +> GETInventoryStockLocationIdVersions(ctx, inventoryStockLocationId).Execute() + +Retrieve the versions associated to the inventory stock location + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + inventoryStockLocationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETInventoryStockLocationIdVersions(context.Background(), inventoryStockLocationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETInventoryStockLocationIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**inventoryStockLocationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETInventoryStockLocationIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETKlarnaGatewayIdKlarnaPayments + +> GETKlarnaGatewayIdKlarnaPayments(ctx, klarnaGatewayId).Execute() + +Retrieve the klarna payments associated to the klarna gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + klarnaGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETKlarnaGatewayIdKlarnaPayments(context.Background(), klarnaGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETKlarnaGatewayIdKlarnaPayments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**klarnaGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETKlarnaGatewayIdKlarnaPaymentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETKlarnaGatewayIdPaymentMethods + +> GETKlarnaGatewayIdPaymentMethods(ctx, klarnaGatewayId).Execute() + +Retrieve the payment methods associated to the klarna gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + klarnaGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETKlarnaGatewayIdPaymentMethods(context.Background(), klarnaGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETKlarnaGatewayIdPaymentMethods``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**klarnaGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETKlarnaGatewayIdPaymentMethodsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETKlarnaGatewayIdVersions + +> GETKlarnaGatewayIdVersions(ctx, klarnaGatewayId).Execute() + +Retrieve the versions associated to the klarna gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + klarnaGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETKlarnaGatewayIdVersions(context.Background(), klarnaGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETKlarnaGatewayIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**klarnaGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETKlarnaGatewayIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETKlarnaPaymentIdVersions + +> GETKlarnaPaymentIdVersions(ctx, klarnaPaymentId).Execute() + +Retrieve the versions associated to the klarna payment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + klarnaPaymentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETKlarnaPaymentIdVersions(context.Background(), klarnaPaymentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETKlarnaPaymentIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**klarnaPaymentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETKlarnaPaymentIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETLineItemIdEvents + +> GETLineItemIdEvents(ctx, lineItemId).Execute() + +Retrieve the events associated to the line item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + lineItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETLineItemIdEvents(context.Background(), lineItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETLineItemIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**lineItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETLineItemIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETLineItemIdLineItemOptions + +> GETLineItemIdLineItemOptions(ctx, lineItemId).Execute() + +Retrieve the line item options associated to the line item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + lineItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETLineItemIdLineItemOptions(context.Background(), lineItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETLineItemIdLineItemOptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**lineItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETLineItemIdLineItemOptionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETLineItemIdReturnLineItems + +> GETLineItemIdReturnLineItems(ctx, lineItemId).Execute() + +Retrieve the return line items associated to the line item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + lineItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETLineItemIdReturnLineItems(context.Background(), lineItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETLineItemIdReturnLineItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**lineItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETLineItemIdReturnLineItemsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETLineItemIdStockLineItems + +> GETLineItemIdStockLineItems(ctx, lineItemId).Execute() + +Retrieve the stock line items associated to the line item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + lineItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETLineItemIdStockLineItems(context.Background(), lineItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETLineItemIdStockLineItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**lineItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETLineItemIdStockLineItemsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETLineItemIdStockReservations + +> GETLineItemIdStockReservations(ctx, lineItemId).Execute() + +Retrieve the stock reservations associated to the line item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + lineItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETLineItemIdStockReservations(context.Background(), lineItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETLineItemIdStockReservations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**lineItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETLineItemIdStockReservationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETLineItemIdStockTransfers + +> GETLineItemIdStockTransfers(ctx, lineItemId).Execute() + +Retrieve the stock transfers associated to the line item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + lineItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETLineItemIdStockTransfers(context.Background(), lineItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETLineItemIdStockTransfers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**lineItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETLineItemIdStockTransfersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETLineItemIdTags + +> GETLineItemIdTags(ctx, lineItemId).Execute() + +Retrieve the tags associated to the line item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + lineItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETLineItemIdTags(context.Background(), lineItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETLineItemIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**lineItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETLineItemIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETLineItemOptionIdEvents + +> GETLineItemOptionIdEvents(ctx, lineItemOptionId).Execute() + +Retrieve the events associated to the line item option + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + lineItemOptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETLineItemOptionIdEvents(context.Background(), lineItemOptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETLineItemOptionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**lineItemOptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETLineItemOptionIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETLineItemOptionIdTags + +> GETLineItemOptionIdTags(ctx, lineItemOptionId).Execute() + +Retrieve the tags associated to the line item option + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + lineItemOptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETLineItemOptionIdTags(context.Background(), lineItemOptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETLineItemOptionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**lineItemOptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETLineItemOptionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETLinkIdEvents + +> GETLinkIdEvents(ctx, linkId).Execute() + +Retrieve the events associated to the link + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + linkId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETLinkIdEvents(context.Background(), linkId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETLinkIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**linkId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETLinkIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETManualGatewayIdPaymentMethods + +> GETManualGatewayIdPaymentMethods(ctx, manualGatewayId).Execute() + +Retrieve the payment methods associated to the manual gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + manualGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETManualGatewayIdPaymentMethods(context.Background(), manualGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETManualGatewayIdPaymentMethods``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**manualGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETManualGatewayIdPaymentMethodsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETManualGatewayIdVersions + +> GETManualGatewayIdVersions(ctx, manualGatewayId).Execute() + +Retrieve the versions associated to the manual gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + manualGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETManualGatewayIdVersions(context.Background(), manualGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETManualGatewayIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**manualGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETManualGatewayIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETManualTaxCalculatorIdAttachments + +> GETManualTaxCalculatorIdAttachments(ctx, manualTaxCalculatorId).Execute() + +Retrieve the attachments associated to the manual tax calculator + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + manualTaxCalculatorId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETManualTaxCalculatorIdAttachments(context.Background(), manualTaxCalculatorId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETManualTaxCalculatorIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**manualTaxCalculatorId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETManualTaxCalculatorIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETManualTaxCalculatorIdMarkets + +> GETManualTaxCalculatorIdMarkets(ctx, manualTaxCalculatorId).Execute() + +Retrieve the markets associated to the manual tax calculator + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + manualTaxCalculatorId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETManualTaxCalculatorIdMarkets(context.Background(), manualTaxCalculatorId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETManualTaxCalculatorIdMarkets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**manualTaxCalculatorId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETManualTaxCalculatorIdMarketsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETManualTaxCalculatorIdTaxRules + +> GETManualTaxCalculatorIdTaxRules(ctx, manualTaxCalculatorId).Execute() + +Retrieve the tax rules associated to the manual tax calculator + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + manualTaxCalculatorId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETManualTaxCalculatorIdTaxRules(context.Background(), manualTaxCalculatorId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETManualTaxCalculatorIdTaxRules``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**manualTaxCalculatorId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETManualTaxCalculatorIdTaxRulesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETManualTaxCalculatorIdVersions + +> GETManualTaxCalculatorIdVersions(ctx, manualTaxCalculatorId).Execute() + +Retrieve the versions associated to the manual tax calculator + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + manualTaxCalculatorId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETManualTaxCalculatorIdVersions(context.Background(), manualTaxCalculatorId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETManualTaxCalculatorIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**manualTaxCalculatorId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETManualTaxCalculatorIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETMarketIdAttachments + +> GETMarketIdAttachments(ctx, marketId).Execute() + +Retrieve the attachments associated to the market + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + marketId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETMarketIdAttachments(context.Background(), marketId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETMarketIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**marketId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETMarketIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETMarketIdPriceListSchedulers + +> GETMarketIdPriceListSchedulers(ctx, marketId).Execute() + +Retrieve the price list schedulers associated to the market + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + marketId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETMarketIdPriceListSchedulers(context.Background(), marketId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETMarketIdPriceListSchedulers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**marketId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETMarketIdPriceListSchedulersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETMarketIdVersions + +> GETMarketIdVersions(ctx, marketId).Execute() + +Retrieve the versions associated to the market + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + marketId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETMarketIdVersions(context.Background(), marketId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETMarketIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**marketId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETMarketIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETMerchantIdAttachments + +> GETMerchantIdAttachments(ctx, merchantId).Execute() + +Retrieve the attachments associated to the merchant + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + merchantId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETMerchantIdAttachments(context.Background(), merchantId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETMerchantIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**merchantId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETMerchantIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETMerchantIdVersions + +> GETMerchantIdVersions(ctx, merchantId).Execute() + +Retrieve the versions associated to the merchant + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + merchantId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETMerchantIdVersions(context.Background(), merchantId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETMerchantIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**merchantId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETMerchantIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderAmountPromotionRuleIdVersions + +> GETOrderAmountPromotionRuleIdVersions(ctx, orderAmountPromotionRuleId).Execute() + +Retrieve the versions associated to the order amount promotion rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderAmountPromotionRuleId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderAmountPromotionRuleIdVersions(context.Background(), orderAmountPromotionRuleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderAmountPromotionRuleIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderAmountPromotionRuleId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderAmountPromotionRuleIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderCopyIdEvents + +> GETOrderCopyIdEvents(ctx, orderCopyId).Execute() + +Retrieve the events associated to the order copy + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderCopyId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderCopyIdEvents(context.Background(), orderCopyId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderCopyIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderCopyId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderCopyIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderFactoryIdEvents + +> GETOrderFactoryIdEvents(ctx, orderFactoryId).Execute() + +Retrieve the events associated to the order factory + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderFactoryId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderFactoryIdEvents(context.Background(), orderFactoryId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderFactoryIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderFactoryId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderFactoryIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdAttachments + +> GETOrderIdAttachments(ctx, orderId).Execute() + +Retrieve the attachments associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdAttachments(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdAuthorizations + +> GETOrderIdAuthorizations(ctx, orderId).Execute() + +Retrieve the authorizations associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdAuthorizations(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdAuthorizations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdAuthorizationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdAvailableCustomerPaymentSources + +> GETOrderIdAvailableCustomerPaymentSources(ctx, orderId).Execute() + +Retrieve the available customer payment sources associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdAvailableCustomerPaymentSources(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdAvailableCustomerPaymentSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdAvailableCustomerPaymentSourcesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdAvailableFreeBundles + +> GETOrderIdAvailableFreeBundles(ctx, orderId).Execute() + +Retrieve the available free bundles associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdAvailableFreeBundles(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdAvailableFreeBundles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdAvailableFreeBundlesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdAvailableFreeSkus + +> GETOrderIdAvailableFreeSkus(ctx, orderId).Execute() + +Retrieve the available free skus associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdAvailableFreeSkus(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdAvailableFreeSkus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdAvailableFreeSkusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdAvailablePaymentMethods + +> GETOrderIdAvailablePaymentMethods(ctx, orderId).Execute() + +Retrieve the available payment methods associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdAvailablePaymentMethods(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdAvailablePaymentMethods``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdAvailablePaymentMethodsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdCaptures + +> GETOrderIdCaptures(ctx, orderId).Execute() + +Retrieve the captures associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdCaptures(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdCaptures``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdCapturesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdEvents + +> GETOrderIdEvents(ctx, orderId).Execute() + +Retrieve the events associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdEvents(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdLineItemOptions + +> GETOrderIdLineItemOptions(ctx, orderId).Execute() + +Retrieve the line item options associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdLineItemOptions(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdLineItemOptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdLineItemOptionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdLineItems + +> GETOrderIdLineItems(ctx, orderId).Execute() + +Retrieve the line items associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdLineItems(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdLineItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdLineItemsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdLinks + +> GETOrderIdLinks(ctx, orderId).Execute() + +Retrieve the links associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdLinks(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdLinks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdLinksRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdOrderCopies + +> GETOrderIdOrderCopies(ctx, orderId).Execute() + +Retrieve the order copies associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdOrderCopies(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdOrderCopies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdOrderCopiesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdOrderFactories + +> GETOrderIdOrderFactories(ctx, orderId).Execute() + +Retrieve the order factories associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdOrderFactories(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdOrderFactories``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdOrderFactoriesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdOrderSubscriptions + +> GETOrderIdOrderSubscriptions(ctx, orderId).Execute() + +Retrieve the order subscriptions associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdOrderSubscriptions(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdOrderSubscriptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdOrderSubscriptionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdPaymentOptions + +> GETOrderIdPaymentOptions(ctx, orderId).Execute() + +Retrieve the payment options associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdPaymentOptions(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdPaymentOptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdPaymentOptionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdRecurringOrderCopies + +> GETOrderIdRecurringOrderCopies(ctx, orderId).Execute() + +Retrieve the recurring order copies associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdRecurringOrderCopies(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdRecurringOrderCopies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdRecurringOrderCopiesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdRefunds + +> GETOrderIdRefunds(ctx, orderId).Execute() + +Retrieve the refunds associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdRefunds(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdRefunds``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdRefundsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdResourceErrors + +> GETOrderIdResourceErrors(ctx, orderId).Execute() + +Retrieve the resource errors associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdResourceErrors(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdResourceErrors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdResourceErrorsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdReturns + +> GETOrderIdReturns(ctx, orderId).Execute() + +Retrieve the returns associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdReturns(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdReturns``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdReturnsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdShipments + +> GETOrderIdShipments(ctx, orderId).Execute() + +Retrieve the shipments associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdShipments(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdShipments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdShipmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdStockLineItems + +> GETOrderIdStockLineItems(ctx, orderId).Execute() + +Retrieve the stock line items associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdStockLineItems(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdStockLineItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdStockLineItemsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdStockReservations + +> GETOrderIdStockReservations(ctx, orderId).Execute() + +Retrieve the stock reservations associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdStockReservations(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdStockReservations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdStockReservationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdStockTransfers + +> GETOrderIdStockTransfers(ctx, orderId).Execute() + +Retrieve the stock transfers associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdStockTransfers(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdStockTransfers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdStockTransfersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdTags + +> GETOrderIdTags(ctx, orderId).Execute() + +Retrieve the tags associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdTags(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdVersions + +> GETOrderIdVersions(ctx, orderId).Execute() + +Retrieve the versions associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdVersions(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdVoids + +> GETOrderIdVoids(ctx, orderId).Execute() + +Retrieve the voids associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderIdVoids(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdVoids``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdVoidsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderSubscriptionIdEvents + +> GETOrderSubscriptionIdEvents(ctx, orderSubscriptionId).Execute() + +Retrieve the events associated to the order subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderSubscriptionIdEvents(context.Background(), orderSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderSubscriptionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderSubscriptionIdOrderFactories + +> GETOrderSubscriptionIdOrderFactories(ctx, orderSubscriptionId).Execute() + +Retrieve the order factories associated to the order subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderSubscriptionIdOrderFactories(context.Background(), orderSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderSubscriptionIdOrderFactories``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdOrderFactoriesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderSubscriptionIdOrderSubscriptionItems + +> GETOrderSubscriptionIdOrderSubscriptionItems(ctx, orderSubscriptionId).Execute() + +Retrieve the order subscription items associated to the order subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderSubscriptionIdOrderSubscriptionItems(context.Background(), orderSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderSubscriptionIdOrderSubscriptionItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdOrderSubscriptionItemsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderSubscriptionIdOrders + +> GETOrderSubscriptionIdOrders(ctx, orderSubscriptionId).Execute() + +Retrieve the orders associated to the order subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderSubscriptionIdOrders(context.Background(), orderSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderSubscriptionIdOrders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdOrdersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderSubscriptionIdRecurringOrderCopies + +> GETOrderSubscriptionIdRecurringOrderCopies(ctx, orderSubscriptionId).Execute() + +Retrieve the recurring order copies associated to the order subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderSubscriptionIdRecurringOrderCopies(context.Background(), orderSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderSubscriptionIdRecurringOrderCopies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdRecurringOrderCopiesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderSubscriptionIdTags + +> GETOrderSubscriptionIdTags(ctx, orderSubscriptionId).Execute() + +Retrieve the tags associated to the order subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderSubscriptionIdTags(context.Background(), orderSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderSubscriptionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderSubscriptionIdVersions + +> GETOrderSubscriptionIdVersions(ctx, orderSubscriptionId).Execute() + +Retrieve the versions associated to the order subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETOrderSubscriptionIdVersions(context.Background(), orderSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderSubscriptionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPackageIdAttachments + +> GETPackageIdAttachments(ctx, packageId).Execute() + +Retrieve the attachments associated to the package + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + packageId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPackageIdAttachments(context.Background(), packageId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPackageIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**packageId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPackageIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPackageIdParcels + +> GETPackageIdParcels(ctx, packageId).Execute() + +Retrieve the parcels associated to the package + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + packageId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPackageIdParcels(context.Background(), packageId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPackageIdParcels``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**packageId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPackageIdParcelsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPackageIdVersions + +> GETPackageIdVersions(ctx, packageId).Execute() + +Retrieve the versions associated to the package + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + packageId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPackageIdVersions(context.Background(), packageId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPackageIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**packageId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPackageIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETParcelIdAttachments + +> GETParcelIdAttachments(ctx, parcelId).Execute() + +Retrieve the attachments associated to the parcel + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + parcelId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETParcelIdAttachments(context.Background(), parcelId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETParcelIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**parcelId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETParcelIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETParcelIdEvents + +> GETParcelIdEvents(ctx, parcelId).Execute() + +Retrieve the events associated to the parcel + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + parcelId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETParcelIdEvents(context.Background(), parcelId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETParcelIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**parcelId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETParcelIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETParcelIdParcelLineItems + +> GETParcelIdParcelLineItems(ctx, parcelId).Execute() + +Retrieve the parcel line items associated to the parcel + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + parcelId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETParcelIdParcelLineItems(context.Background(), parcelId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETParcelIdParcelLineItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**parcelId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETParcelIdParcelLineItemsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETParcelIdVersions + +> GETParcelIdVersions(ctx, parcelId).Execute() + +Retrieve the versions associated to the parcel + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + parcelId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETParcelIdVersions(context.Background(), parcelId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETParcelIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**parcelId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETParcelIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETParcelLineItemIdVersions + +> GETParcelLineItemIdVersions(ctx, parcelLineItemId).Execute() + +Retrieve the versions associated to the parcel line item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + parcelLineItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETParcelLineItemIdVersions(context.Background(), parcelLineItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETParcelLineItemIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**parcelLineItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETParcelLineItemIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPaymentGatewayIdPaymentMethods + +> GETPaymentGatewayIdPaymentMethods(ctx, paymentGatewayId).Execute() + +Retrieve the payment methods associated to the payment gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + paymentGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPaymentGatewayIdPaymentMethods(context.Background(), paymentGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPaymentGatewayIdPaymentMethods``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**paymentGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPaymentGatewayIdPaymentMethodsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPaymentGatewayIdVersions + +> GETPaymentGatewayIdVersions(ctx, paymentGatewayId).Execute() + +Retrieve the versions associated to the payment gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + paymentGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPaymentGatewayIdVersions(context.Background(), paymentGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPaymentGatewayIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**paymentGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPaymentGatewayIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPaymentMethodIdAttachments + +> GETPaymentMethodIdAttachments(ctx, paymentMethodId).Execute() + +Retrieve the attachments associated to the payment method + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + paymentMethodId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPaymentMethodIdAttachments(context.Background(), paymentMethodId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPaymentMethodIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**paymentMethodId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPaymentMethodIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPaymentMethodIdVersions + +> GETPaymentMethodIdVersions(ctx, paymentMethodId).Execute() + +Retrieve the versions associated to the payment method + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + paymentMethodId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPaymentMethodIdVersions(context.Background(), paymentMethodId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPaymentMethodIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**paymentMethodId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPaymentMethodIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPaymentOptionIdAttachments + +> GETPaymentOptionIdAttachments(ctx, paymentOptionId).Execute() + +Retrieve the attachments associated to the payment option + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + paymentOptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPaymentOptionIdAttachments(context.Background(), paymentOptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPaymentOptionIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**paymentOptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPaymentOptionIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPaypalGatewayIdPaymentMethods + +> GETPaypalGatewayIdPaymentMethods(ctx, paypalGatewayId).Execute() + +Retrieve the payment methods associated to the paypal gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + paypalGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPaypalGatewayIdPaymentMethods(context.Background(), paypalGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPaypalGatewayIdPaymentMethods``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**paypalGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPaypalGatewayIdPaymentMethodsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPaypalGatewayIdPaypalPayments + +> GETPaypalGatewayIdPaypalPayments(ctx, paypalGatewayId).Execute() + +Retrieve the paypal payments associated to the paypal gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + paypalGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPaypalGatewayIdPaypalPayments(context.Background(), paypalGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPaypalGatewayIdPaypalPayments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**paypalGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPaypalGatewayIdPaypalPaymentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPaypalGatewayIdVersions + +> GETPaypalGatewayIdVersions(ctx, paypalGatewayId).Execute() + +Retrieve the versions associated to the paypal gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + paypalGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPaypalGatewayIdVersions(context.Background(), paypalGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPaypalGatewayIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**paypalGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPaypalGatewayIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPaypalPaymentIdVersions + +> GETPaypalPaymentIdVersions(ctx, paypalPaymentId).Execute() + +Retrieve the versions associated to the paypal payment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + paypalPaymentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPaypalPaymentIdVersions(context.Background(), paypalPaymentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPaypalPaymentIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**paypalPaymentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPaypalPaymentIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPercentageDiscountPromotionIdAttachments + +> GETPercentageDiscountPromotionIdAttachments(ctx, percentageDiscountPromotionId).Execute() + +Retrieve the attachments associated to the percentage discount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + percentageDiscountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPercentageDiscountPromotionIdAttachments(context.Background(), percentageDiscountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPercentageDiscountPromotionIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPercentageDiscountPromotionIdCoupons + +> GETPercentageDiscountPromotionIdCoupons(ctx, percentageDiscountPromotionId).Execute() + +Retrieve the coupons associated to the percentage discount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + percentageDiscountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPercentageDiscountPromotionIdCoupons(context.Background(), percentageDiscountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPercentageDiscountPromotionIdCoupons``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdCouponsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPercentageDiscountPromotionIdEvents + +> GETPercentageDiscountPromotionIdEvents(ctx, percentageDiscountPromotionId).Execute() + +Retrieve the events associated to the percentage discount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + percentageDiscountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPercentageDiscountPromotionIdEvents(context.Background(), percentageDiscountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPercentageDiscountPromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPercentageDiscountPromotionIdSkus + +> GETPercentageDiscountPromotionIdSkus(ctx, percentageDiscountPromotionId).Execute() + +Retrieve the skus associated to the percentage discount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + percentageDiscountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPercentageDiscountPromotionIdSkus(context.Background(), percentageDiscountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPercentageDiscountPromotionIdSkus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdSkusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPercentageDiscountPromotionIdTags + +> GETPercentageDiscountPromotionIdTags(ctx, percentageDiscountPromotionId).Execute() + +Retrieve the tags associated to the percentage discount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + percentageDiscountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPercentageDiscountPromotionIdTags(context.Background(), percentageDiscountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPercentageDiscountPromotionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPercentageDiscountPromotionIdVersions + +> GETPercentageDiscountPromotionIdVersions(ctx, percentageDiscountPromotionId).Execute() + +Retrieve the versions associated to the percentage discount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + percentageDiscountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPercentageDiscountPromotionIdVersions(context.Background(), percentageDiscountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPercentageDiscountPromotionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceFrequencyTierIdAttachments + +> GETPriceFrequencyTierIdAttachments(ctx, priceFrequencyTierId).Execute() + +Retrieve the attachments associated to the price frequency tier + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceFrequencyTierId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPriceFrequencyTierIdAttachments(context.Background(), priceFrequencyTierId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceFrequencyTierIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceFrequencyTierId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceFrequencyTierIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceFrequencyTierIdEvents + +> GETPriceFrequencyTierIdEvents(ctx, priceFrequencyTierId).Execute() + +Retrieve the events associated to the price frequency tier + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceFrequencyTierId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPriceFrequencyTierIdEvents(context.Background(), priceFrequencyTierId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceFrequencyTierIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceFrequencyTierId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceFrequencyTierIdEventsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceFrequencyTierIdVersions + +> GETPriceFrequencyTierIdVersions(ctx, priceFrequencyTierId).Execute() + +Retrieve the versions associated to the price frequency tier + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceFrequencyTierId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPriceFrequencyTierIdVersions(context.Background(), priceFrequencyTierId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceFrequencyTierIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceFrequencyTierId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceFrequencyTierIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceIdAttachments + +> GETPriceIdAttachments(ctx, priceId).Execute() + +Retrieve the attachments associated to the price + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPriceIdAttachments(context.Background(), priceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceIdAttachmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceIdJwtMarkets + +> GETPriceIdJwtMarkets(ctx, priceId).Execute() + +Retrieve the jwt markets associated to the price + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPriceIdJwtMarkets(context.Background(), priceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceIdJwtMarkets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceIdJwtMarketsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceIdJwtStockLocations + +> GETPriceIdJwtStockLocations(ctx, priceId).Execute() + +Retrieve the jwt stock locations associated to the price + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPriceIdJwtStockLocations(context.Background(), priceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceIdJwtStockLocations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceIdJwtStockLocationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceIdPriceFrequencyTiers + +> GETPriceIdPriceFrequencyTiers(ctx, priceId).Execute() + +Retrieve the price frequency tiers associated to the price + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPriceIdPriceFrequencyTiers(context.Background(), priceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceIdPriceFrequencyTiers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceIdPriceFrequencyTiersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceIdPriceTiers + +> GETPriceIdPriceTiers(ctx, priceId).Execute() + +Retrieve the price tiers associated to the price + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPriceIdPriceTiers(context.Background(), priceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceIdPriceTiers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceIdPriceTiersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceIdPriceVolumeTiers + +> GETPriceIdPriceVolumeTiers(ctx, priceId).Execute() + +Retrieve the price volume tiers associated to the price + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPriceIdPriceVolumeTiers(context.Background(), priceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceIdPriceVolumeTiers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceIdPriceVolumeTiersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceIdVersions + +> GETPriceIdVersions(ctx, priceId).Execute() + +Retrieve the versions associated to the price + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPriceIdVersions(context.Background(), priceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceListIdAttachments + +> GETPriceListIdAttachments(ctx, priceListId).Execute() + +Retrieve the attachments associated to the price list + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceListId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasManyApi.GETPriceListIdAttachments(context.Background(), priceListId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceListIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4584,11 +16935,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**giftCardRecipientId** | [**interface{}**](.md) | The resource's id | +**priceListId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETGiftCardRecipientIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceListIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -4613,11 +16964,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETGoogleGeocoderIdAddresses +## GETPriceListIdPriceListSchedulers -> GETGoogleGeocoderIdAddresses(ctx, googleGeocoderId).Execute() +> GETPriceListIdPriceListSchedulers(ctx, priceListId).Execute() -Retrieve the addresses associated to the google geocoder +Retrieve the price list schedulers associated to the price list @@ -4634,13 +16985,13 @@ import ( ) func main() { - googleGeocoderId := TODO // interface{} | The resource's id + priceListId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETGoogleGeocoderIdAddresses(context.Background(), googleGeocoderId).Execute() + r, err := apiClient.HasManyApi.GETPriceListIdPriceListSchedulers(context.Background(), priceListId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETGoogleGeocoderIdAddresses``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceListIdPriceListSchedulers``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4652,11 +17003,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**googleGeocoderId** | [**interface{}**](.md) | The resource's id | +**priceListId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETGoogleGeocoderIdAddressesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceListIdPriceListSchedulersRequest struct via the builder pattern Name | Type | Description | Notes @@ -4681,11 +17032,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETGoogleGeocoderIdAttachments +## GETPriceListIdPrices -> GETGoogleGeocoderIdAttachments(ctx, googleGeocoderId).Execute() +> GETPriceListIdPrices(ctx, priceListId).Execute() -Retrieve the attachments associated to the google geocoder +Retrieve the prices associated to the price list @@ -4702,13 +17053,13 @@ import ( ) func main() { - googleGeocoderId := TODO // interface{} | The resource's id + priceListId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETGoogleGeocoderIdAttachments(context.Background(), googleGeocoderId).Execute() + r, err := apiClient.HasManyApi.GETPriceListIdPrices(context.Background(), priceListId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETGoogleGeocoderIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceListIdPrices``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4720,11 +17071,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**googleGeocoderId** | [**interface{}**](.md) | The resource's id | +**priceListId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETGoogleGeocoderIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceListIdPricesRequest struct via the builder pattern Name | Type | Description | Notes @@ -4749,11 +17100,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETImportIdEvents +## GETPriceListIdVersions -> GETImportIdEvents(ctx, importId).Execute() +> GETPriceListIdVersions(ctx, priceListId).Execute() -Retrieve the events associated to the import +Retrieve the versions associated to the price list @@ -4770,13 +17121,13 @@ import ( ) func main() { - importId := TODO // interface{} | The resource's id + priceListId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETImportIdEvents(context.Background(), importId).Execute() + r, err := apiClient.HasManyApi.GETPriceListIdVersions(context.Background(), priceListId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETImportIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceListIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4788,11 +17139,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**importId** | [**interface{}**](.md) | The resource's id | +**priceListId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETImportIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceListIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -4817,11 +17168,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETInStockSubscriptionIdEvents +## GETPriceListSchedulerIdEvents -> GETInStockSubscriptionIdEvents(ctx, inStockSubscriptionId).Execute() +> GETPriceListSchedulerIdEvents(ctx, priceListSchedulerId).Execute() -Retrieve the events associated to the in stock subscription +Retrieve the events associated to the price list scheduler @@ -4838,13 +17189,13 @@ import ( ) func main() { - inStockSubscriptionId := TODO // interface{} | The resource's id + priceListSchedulerId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETInStockSubscriptionIdEvents(context.Background(), inStockSubscriptionId).Execute() + r, err := apiClient.HasManyApi.GETPriceListSchedulerIdEvents(context.Background(), priceListSchedulerId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETInStockSubscriptionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceListSchedulerIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4856,11 +17207,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**inStockSubscriptionId** | [**interface{}**](.md) | The resource's id | +**priceListSchedulerId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETInStockSubscriptionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceListSchedulerIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -4885,11 +17236,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETInventoryModelIdAttachments +## GETPriceListSchedulerIdVersions -> GETInventoryModelIdAttachments(ctx, inventoryModelId).Execute() +> GETPriceListSchedulerIdVersions(ctx, priceListSchedulerId).Execute() -Retrieve the attachments associated to the inventory model +Retrieve the versions associated to the price list scheduler @@ -4906,13 +17257,13 @@ import ( ) func main() { - inventoryModelId := TODO // interface{} | The resource's id + priceListSchedulerId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETInventoryModelIdAttachments(context.Background(), inventoryModelId).Execute() + r, err := apiClient.HasManyApi.GETPriceListSchedulerIdVersions(context.Background(), priceListSchedulerId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETInventoryModelIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceListSchedulerIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4924,11 +17275,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**inventoryModelId** | [**interface{}**](.md) | The resource's id | +**priceListSchedulerId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETInventoryModelIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceListSchedulerIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -4953,11 +17304,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETInventoryModelIdInventoryReturnLocations +## GETPriceTierIdAttachments -> GETInventoryModelIdInventoryReturnLocations(ctx, inventoryModelId).Execute() +> GETPriceTierIdAttachments(ctx, priceTierId).Execute() -Retrieve the inventory return locations associated to the inventory model +Retrieve the attachments associated to the price tier @@ -4974,13 +17325,13 @@ import ( ) func main() { - inventoryModelId := TODO // interface{} | The resource's id + priceTierId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETInventoryModelIdInventoryReturnLocations(context.Background(), inventoryModelId).Execute() + r, err := apiClient.HasManyApi.GETPriceTierIdAttachments(context.Background(), priceTierId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETInventoryModelIdInventoryReturnLocations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceTierIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4992,11 +17343,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**inventoryModelId** | [**interface{}**](.md) | The resource's id | +**priceTierId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETInventoryModelIdInventoryReturnLocationsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceTierIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -5021,11 +17372,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETInventoryModelIdInventoryStockLocations +## GETPriceTierIdVersions -> GETInventoryModelIdInventoryStockLocations(ctx, inventoryModelId).Execute() +> GETPriceTierIdVersions(ctx, priceTierId).Execute() -Retrieve the inventory stock locations associated to the inventory model +Retrieve the versions associated to the price tier @@ -5042,13 +17393,13 @@ import ( ) func main() { - inventoryModelId := TODO // interface{} | The resource's id + priceTierId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETInventoryModelIdInventoryStockLocations(context.Background(), inventoryModelId).Execute() + r, err := apiClient.HasManyApi.GETPriceTierIdVersions(context.Background(), priceTierId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETInventoryModelIdInventoryStockLocations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceTierIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5060,11 +17411,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**inventoryModelId** | [**interface{}**](.md) | The resource's id | +**priceTierId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETInventoryModelIdInventoryStockLocationsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceTierIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -5089,11 +17440,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETKlarnaGatewayIdKlarnaPayments +## GETPriceVolumeTierIdAttachments -> GETKlarnaGatewayIdKlarnaPayments(ctx, klarnaGatewayId).Execute() +> GETPriceVolumeTierIdAttachments(ctx, priceVolumeTierId).Execute() -Retrieve the klarna payments associated to the klarna gateway +Retrieve the attachments associated to the price volume tier @@ -5110,13 +17461,13 @@ import ( ) func main() { - klarnaGatewayId := TODO // interface{} | The resource's id + priceVolumeTierId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETKlarnaGatewayIdKlarnaPayments(context.Background(), klarnaGatewayId).Execute() + r, err := apiClient.HasManyApi.GETPriceVolumeTierIdAttachments(context.Background(), priceVolumeTierId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETKlarnaGatewayIdKlarnaPayments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceVolumeTierIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5128,11 +17479,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**klarnaGatewayId** | [**interface{}**](.md) | The resource's id | +**priceVolumeTierId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETKlarnaGatewayIdKlarnaPaymentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceVolumeTierIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -5157,11 +17508,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETKlarnaGatewayIdPaymentMethods +## GETPriceVolumeTierIdEvents -> GETKlarnaGatewayIdPaymentMethods(ctx, klarnaGatewayId).Execute() +> GETPriceVolumeTierIdEvents(ctx, priceVolumeTierId).Execute() -Retrieve the payment methods associated to the klarna gateway +Retrieve the events associated to the price volume tier @@ -5178,13 +17529,13 @@ import ( ) func main() { - klarnaGatewayId := TODO // interface{} | The resource's id + priceVolumeTierId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETKlarnaGatewayIdPaymentMethods(context.Background(), klarnaGatewayId).Execute() + r, err := apiClient.HasManyApi.GETPriceVolumeTierIdEvents(context.Background(), priceVolumeTierId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETKlarnaGatewayIdPaymentMethods``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceVolumeTierIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5196,11 +17547,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**klarnaGatewayId** | [**interface{}**](.md) | The resource's id | +**priceVolumeTierId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETKlarnaGatewayIdPaymentMethodsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceVolumeTierIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -5225,11 +17576,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETLineItemIdLineItemOptions +## GETPriceVolumeTierIdVersions -> GETLineItemIdLineItemOptions(ctx, lineItemId).Execute() +> GETPriceVolumeTierIdVersions(ctx, priceVolumeTierId).Execute() -Retrieve the line item options associated to the line item +Retrieve the versions associated to the price volume tier @@ -5246,13 +17597,13 @@ import ( ) func main() { - lineItemId := TODO // interface{} | The resource's id + priceVolumeTierId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETLineItemIdLineItemOptions(context.Background(), lineItemId).Execute() + r, err := apiClient.HasManyApi.GETPriceVolumeTierIdVersions(context.Background(), priceVolumeTierId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETLineItemIdLineItemOptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceVolumeTierIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5264,11 +17615,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**lineItemId** | [**interface{}**](.md) | The resource's id | +**priceVolumeTierId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETLineItemIdLineItemOptionsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceVolumeTierIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -5293,11 +17644,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETLineItemIdStockLineItems +## GETPromotionIdAttachments -> GETLineItemIdStockLineItems(ctx, lineItemId).Execute() +> GETPromotionIdAttachments(ctx, promotionId).Execute() -Retrieve the stock line items associated to the line item +Retrieve the attachments associated to the promotion @@ -5314,13 +17665,13 @@ import ( ) func main() { - lineItemId := TODO // interface{} | The resource's id + promotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETLineItemIdStockLineItems(context.Background(), lineItemId).Execute() + r, err := apiClient.HasManyApi.GETPromotionIdAttachments(context.Background(), promotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETLineItemIdStockLineItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPromotionIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5332,11 +17683,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**lineItemId** | [**interface{}**](.md) | The resource's id | +**promotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETLineItemIdStockLineItemsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPromotionIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -5361,11 +17712,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETLineItemIdStockTransfers +## GETPromotionIdCoupons -> GETLineItemIdStockTransfers(ctx, lineItemId).Execute() +> GETPromotionIdCoupons(ctx, promotionId).Execute() -Retrieve the stock transfers associated to the line item +Retrieve the coupons associated to the promotion @@ -5382,13 +17733,13 @@ import ( ) func main() { - lineItemId := TODO // interface{} | The resource's id + promotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETLineItemIdStockTransfers(context.Background(), lineItemId).Execute() + r, err := apiClient.HasManyApi.GETPromotionIdCoupons(context.Background(), promotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETLineItemIdStockTransfers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPromotionIdCoupons``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5400,11 +17751,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**lineItemId** | [**interface{}**](.md) | The resource's id | +**promotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETLineItemIdStockTransfersRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPromotionIdCouponsRequest struct via the builder pattern Name | Type | Description | Notes @@ -5429,11 +17780,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETManualGatewayIdPaymentMethods +## GETPromotionIdEvents -> GETManualGatewayIdPaymentMethods(ctx, manualGatewayId).Execute() +> GETPromotionIdEvents(ctx, promotionId).Execute() -Retrieve the payment methods associated to the manual gateway +Retrieve the events associated to the promotion @@ -5450,13 +17801,13 @@ import ( ) func main() { - manualGatewayId := TODO // interface{} | The resource's id + promotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETManualGatewayIdPaymentMethods(context.Background(), manualGatewayId).Execute() + r, err := apiClient.HasManyApi.GETPromotionIdEvents(context.Background(), promotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETManualGatewayIdPaymentMethods``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPromotionIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5468,11 +17819,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**manualGatewayId** | [**interface{}**](.md) | The resource's id | +**promotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETManualGatewayIdPaymentMethodsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPromotionIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -5497,11 +17848,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETManualTaxCalculatorIdAttachments +## GETPromotionIdTags -> GETManualTaxCalculatorIdAttachments(ctx, manualTaxCalculatorId).Execute() +> GETPromotionIdTags(ctx, promotionId).Execute() -Retrieve the attachments associated to the manual tax calculator +Retrieve the tags associated to the promotion @@ -5518,13 +17869,13 @@ import ( ) func main() { - manualTaxCalculatorId := TODO // interface{} | The resource's id + promotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETManualTaxCalculatorIdAttachments(context.Background(), manualTaxCalculatorId).Execute() + r, err := apiClient.HasManyApi.GETPromotionIdTags(context.Background(), promotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETManualTaxCalculatorIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPromotionIdTags``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5536,11 +17887,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**manualTaxCalculatorId** | [**interface{}**](.md) | The resource's id | +**promotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETManualTaxCalculatorIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPromotionIdTagsRequest struct via the builder pattern Name | Type | Description | Notes @@ -5565,11 +17916,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETManualTaxCalculatorIdMarkets +## GETPromotionIdVersions -> GETManualTaxCalculatorIdMarkets(ctx, manualTaxCalculatorId).Execute() +> GETPromotionIdVersions(ctx, promotionId).Execute() -Retrieve the markets associated to the manual tax calculator +Retrieve the versions associated to the promotion @@ -5586,13 +17937,13 @@ import ( ) func main() { - manualTaxCalculatorId := TODO // interface{} | The resource's id + promotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETManualTaxCalculatorIdMarkets(context.Background(), manualTaxCalculatorId).Execute() + r, err := apiClient.HasManyApi.GETPromotionIdVersions(context.Background(), promotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETManualTaxCalculatorIdMarkets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPromotionIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5604,11 +17955,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**manualTaxCalculatorId** | [**interface{}**](.md) | The resource's id | +**promotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETManualTaxCalculatorIdMarketsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPromotionIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -5633,11 +17984,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETManualTaxCalculatorIdTaxRules +## GETPromotionRuleIdVersions -> GETManualTaxCalculatorIdTaxRules(ctx, manualTaxCalculatorId).Execute() +> GETPromotionRuleIdVersions(ctx, promotionRuleId).Execute() -Retrieve the tax rules associated to the manual tax calculator +Retrieve the versions associated to the promotion rule @@ -5654,13 +18005,13 @@ import ( ) func main() { - manualTaxCalculatorId := TODO // interface{} | The resource's id + promotionRuleId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETManualTaxCalculatorIdTaxRules(context.Background(), manualTaxCalculatorId).Execute() + r, err := apiClient.HasManyApi.GETPromotionRuleIdVersions(context.Background(), promotionRuleId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETManualTaxCalculatorIdTaxRules``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPromotionRuleIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5672,11 +18023,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**manualTaxCalculatorId** | [**interface{}**](.md) | The resource's id | +**promotionRuleId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETManualTaxCalculatorIdTaxRulesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPromotionRuleIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -5701,11 +18052,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETMarketIdAttachments +## GETRecurringOrderCopyIdEvents -> GETMarketIdAttachments(ctx, marketId).Execute() +> GETRecurringOrderCopyIdEvents(ctx, recurringOrderCopyId).Execute() -Retrieve the attachments associated to the market +Retrieve the events associated to the recurring order copy @@ -5722,13 +18073,13 @@ import ( ) func main() { - marketId := TODO // interface{} | The resource's id + recurringOrderCopyId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETMarketIdAttachments(context.Background(), marketId).Execute() + r, err := apiClient.HasManyApi.GETRecurringOrderCopyIdEvents(context.Background(), recurringOrderCopyId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETMarketIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETRecurringOrderCopyIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5740,11 +18091,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**marketId** | [**interface{}**](.md) | The resource's id | +**recurringOrderCopyId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETMarketIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETRecurringOrderCopyIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -5769,11 +18120,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETMerchantIdAttachments +## GETRefundIdAttachments -> GETMerchantIdAttachments(ctx, merchantId).Execute() +> GETRefundIdAttachments(ctx, refundId).Execute() -Retrieve the attachments associated to the merchant +Retrieve the attachments associated to the refund @@ -5790,13 +18141,13 @@ import ( ) func main() { - merchantId := TODO // interface{} | The resource's id + refundId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETMerchantIdAttachments(context.Background(), merchantId).Execute() + r, err := apiClient.HasManyApi.GETRefundIdAttachments(context.Background(), refundId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETMerchantIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETRefundIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5808,11 +18159,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**merchantId** | [**interface{}**](.md) | The resource's id | +**refundId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETMerchantIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETRefundIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -5837,11 +18188,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderCopyIdEvents +## GETRefundIdEvents -> GETOrderCopyIdEvents(ctx, orderCopyId).Execute() +> GETRefundIdEvents(ctx, refundId).Execute() -Retrieve the events associated to the order copy +Retrieve the events associated to the refund @@ -5858,13 +18209,13 @@ import ( ) func main() { - orderCopyId := TODO // interface{} | The resource's id + refundId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderCopyIdEvents(context.Background(), orderCopyId).Execute() + r, err := apiClient.HasManyApi.GETRefundIdEvents(context.Background(), refundId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderCopyIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETRefundIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5876,11 +18227,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderCopyId** | [**interface{}**](.md) | The resource's id | +**refundId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderCopyIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETRefundIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -5905,11 +18256,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderFactoryIdEvents +## GETRefundIdVersions -> GETOrderFactoryIdEvents(ctx, orderFactoryId).Execute() +> GETRefundIdVersions(ctx, refundId).Execute() -Retrieve the events associated to the order factory +Retrieve the versions associated to the refund @@ -5926,13 +18277,13 @@ import ( ) func main() { - orderFactoryId := TODO // interface{} | The resource's id + refundId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderFactoryIdEvents(context.Background(), orderFactoryId).Execute() + r, err := apiClient.HasManyApi.GETRefundIdVersions(context.Background(), refundId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderFactoryIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETRefundIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5944,11 +18295,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderFactoryId** | [**interface{}**](.md) | The resource's id | +**refundId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderFactoryIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETRefundIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -5973,11 +18324,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdAttachments +## GETReservedStockIdStockReservations -> GETOrderIdAttachments(ctx, orderId).Execute() +> GETReservedStockIdStockReservations(ctx, reservedStockId).Execute() -Retrieve the attachments associated to the order +Retrieve the stock reservations associated to the reserved stock @@ -5994,13 +18345,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + reservedStockId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderIdAttachments(context.Background(), orderId).Execute() + r, err := apiClient.HasManyApi.GETReservedStockIdStockReservations(context.Background(), reservedStockId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETReservedStockIdStockReservations``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6012,11 +18363,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**reservedStockId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReservedStockIdStockReservationsRequest struct via the builder pattern Name | Type | Description | Notes @@ -6041,11 +18392,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdAuthorizations +## GETReservedStockIdVersions -> GETOrderIdAuthorizations(ctx, orderId).Execute() +> GETReservedStockIdVersions(ctx, reservedStockId).Execute() -Retrieve the authorizations associated to the order +Retrieve the versions associated to the reserved stock @@ -6062,13 +18413,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + reservedStockId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderIdAuthorizations(context.Background(), orderId).Execute() + r, err := apiClient.HasManyApi.GETReservedStockIdVersions(context.Background(), reservedStockId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdAuthorizations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETReservedStockIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6080,11 +18431,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**reservedStockId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdAuthorizationsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReservedStockIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -6109,11 +18460,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdAvailableCustomerPaymentSources +## GETReturnIdAttachments -> GETOrderIdAvailableCustomerPaymentSources(ctx, orderId).Execute() +> GETReturnIdAttachments(ctx, returnId).Execute() -Retrieve the available customer payment sources associated to the order +Retrieve the attachments associated to the return @@ -6130,13 +18481,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + returnId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderIdAvailableCustomerPaymentSources(context.Background(), orderId).Execute() + r, err := apiClient.HasManyApi.GETReturnIdAttachments(context.Background(), returnId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdAvailableCustomerPaymentSources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETReturnIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6148,11 +18499,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**returnId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdAvailableCustomerPaymentSourcesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReturnIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -6177,11 +18528,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdAvailableFreeBundles +## GETReturnIdEvents -> GETOrderIdAvailableFreeBundles(ctx, orderId).Execute() +> GETReturnIdEvents(ctx, returnId).Execute() -Retrieve the available free bundles associated to the order +Retrieve the events associated to the return @@ -6198,13 +18549,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + returnId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderIdAvailableFreeBundles(context.Background(), orderId).Execute() + r, err := apiClient.HasManyApi.GETReturnIdEvents(context.Background(), returnId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdAvailableFreeBundles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETReturnIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6216,11 +18567,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**returnId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdAvailableFreeBundlesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReturnIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -6245,11 +18596,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdAvailableFreeSkus +## GETReturnIdResourceErrors -> GETOrderIdAvailableFreeSkus(ctx, orderId).Execute() +> GETReturnIdResourceErrors(ctx, returnId).Execute() -Retrieve the available free skus associated to the order +Retrieve the resource errors associated to the return @@ -6266,13 +18617,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + returnId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderIdAvailableFreeSkus(context.Background(), orderId).Execute() + r, err := apiClient.HasManyApi.GETReturnIdResourceErrors(context.Background(), returnId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdAvailableFreeSkus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETReturnIdResourceErrors``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6284,11 +18635,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**returnId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdAvailableFreeSkusRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReturnIdResourceErrorsRequest struct via the builder pattern Name | Type | Description | Notes @@ -6313,11 +18664,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdAvailablePaymentMethods +## GETReturnIdReturnLineItems -> GETOrderIdAvailablePaymentMethods(ctx, orderId).Execute() +> GETReturnIdReturnLineItems(ctx, returnId).Execute() -Retrieve the available payment methods associated to the order +Retrieve the return line items associated to the return @@ -6334,13 +18685,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + returnId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderIdAvailablePaymentMethods(context.Background(), orderId).Execute() + r, err := apiClient.HasManyApi.GETReturnIdReturnLineItems(context.Background(), returnId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdAvailablePaymentMethods``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETReturnIdReturnLineItems``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6352,11 +18703,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**returnId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdAvailablePaymentMethodsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReturnIdReturnLineItemsRequest struct via the builder pattern Name | Type | Description | Notes @@ -6381,11 +18732,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdCaptures +## GETReturnIdTags -> GETOrderIdCaptures(ctx, orderId).Execute() +> GETReturnIdTags(ctx, returnId).Execute() -Retrieve the captures associated to the order +Retrieve the tags associated to the return @@ -6402,13 +18753,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + returnId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderIdCaptures(context.Background(), orderId).Execute() + r, err := apiClient.HasManyApi.GETReturnIdTags(context.Background(), returnId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdCaptures``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETReturnIdTags``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6420,11 +18771,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**returnId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdCapturesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReturnIdTagsRequest struct via the builder pattern Name | Type | Description | Notes @@ -6449,11 +18800,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdEvents +## GETReturnIdVersions -> GETOrderIdEvents(ctx, orderId).Execute() +> GETReturnIdVersions(ctx, returnId).Execute() -Retrieve the events associated to the order +Retrieve the versions associated to the return @@ -6470,13 +18821,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + returnId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderIdEvents(context.Background(), orderId).Execute() + r, err := apiClient.HasManyApi.GETReturnIdVersions(context.Background(), returnId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETReturnIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6488,11 +18839,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**returnId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReturnIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -6517,11 +18868,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdLineItems +## GETSatispayGatewayIdPaymentMethods -> GETOrderIdLineItems(ctx, orderId).Execute() +> GETSatispayGatewayIdPaymentMethods(ctx, satispayGatewayId).Execute() -Retrieve the line items associated to the order +Retrieve the payment methods associated to the satispay gateway @@ -6538,13 +18889,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + satispayGatewayId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderIdLineItems(context.Background(), orderId).Execute() + r, err := apiClient.HasManyApi.GETSatispayGatewayIdPaymentMethods(context.Background(), satispayGatewayId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdLineItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSatispayGatewayIdPaymentMethods``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6556,11 +18907,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**satispayGatewayId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdLineItemsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSatispayGatewayIdPaymentMethodsRequest struct via the builder pattern Name | Type | Description | Notes @@ -6585,11 +18936,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdOrderCopies +## GETSatispayGatewayIdSatispayPayments -> GETOrderIdOrderCopies(ctx, orderId).Execute() +> GETSatispayGatewayIdSatispayPayments(ctx, satispayGatewayId).Execute() -Retrieve the order copies associated to the order +Retrieve the satispay payments associated to the satispay gateway @@ -6606,13 +18957,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + satispayGatewayId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderIdOrderCopies(context.Background(), orderId).Execute() + r, err := apiClient.HasManyApi.GETSatispayGatewayIdSatispayPayments(context.Background(), satispayGatewayId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdOrderCopies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSatispayGatewayIdSatispayPayments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6624,11 +18975,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**satispayGatewayId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdOrderCopiesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSatispayGatewayIdSatispayPaymentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -6653,11 +19004,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdOrderFactories +## GETSatispayGatewayIdVersions -> GETOrderIdOrderFactories(ctx, orderId).Execute() +> GETSatispayGatewayIdVersions(ctx, satispayGatewayId).Execute() -Retrieve the order factories associated to the order +Retrieve the versions associated to the satispay gateway @@ -6674,13 +19025,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + satispayGatewayId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderIdOrderFactories(context.Background(), orderId).Execute() + r, err := apiClient.HasManyApi.GETSatispayGatewayIdVersions(context.Background(), satispayGatewayId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdOrderFactories``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSatispayGatewayIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6692,11 +19043,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**satispayGatewayId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdOrderFactoriesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSatispayGatewayIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -6721,11 +19072,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdOrderSubscriptions +## GETSatispayPaymentIdVersions -> GETOrderIdOrderSubscriptions(ctx, orderId).Execute() +> GETSatispayPaymentIdVersions(ctx, satispayPaymentId).Execute() -Retrieve the order subscriptions associated to the order +Retrieve the versions associated to the satispay payment @@ -6742,13 +19093,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + satispayPaymentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderIdOrderSubscriptions(context.Background(), orderId).Execute() + r, err := apiClient.HasManyApi.GETSatispayPaymentIdVersions(context.Background(), satispayPaymentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdOrderSubscriptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSatispayPaymentIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6760,11 +19111,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**satispayPaymentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdOrderSubscriptionsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSatispayPaymentIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -6789,11 +19140,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdRecurringOrderCopies +## GETShipmentIdAttachments -> GETOrderIdRecurringOrderCopies(ctx, orderId).Execute() +> GETShipmentIdAttachments(ctx, shipmentId).Execute() -Retrieve the recurring order copies associated to the order +Retrieve the attachments associated to the shipment @@ -6810,13 +19161,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + shipmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderIdRecurringOrderCopies(context.Background(), orderId).Execute() + r, err := apiClient.HasManyApi.GETShipmentIdAttachments(context.Background(), shipmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdRecurringOrderCopies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShipmentIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6828,11 +19179,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**shipmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdRecurringOrderCopiesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShipmentIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -6857,11 +19208,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdRefunds +## GETShipmentIdAvailableShippingMethods -> GETOrderIdRefunds(ctx, orderId).Execute() +> GETShipmentIdAvailableShippingMethods(ctx, shipmentId).Execute() -Retrieve the refunds associated to the order +Retrieve the available shipping methods associated to the shipment @@ -6878,13 +19229,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + shipmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderIdRefunds(context.Background(), orderId).Execute() + r, err := apiClient.HasManyApi.GETShipmentIdAvailableShippingMethods(context.Background(), shipmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdRefunds``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShipmentIdAvailableShippingMethods``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6896,11 +19247,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**shipmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdRefundsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShipmentIdAvailableShippingMethodsRequest struct via the builder pattern Name | Type | Description | Notes @@ -6925,11 +19276,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdReturns +## GETShipmentIdCarrierAccounts -> GETOrderIdReturns(ctx, orderId).Execute() +> GETShipmentIdCarrierAccounts(ctx, shipmentId).Execute() -Retrieve the returns associated to the order +Retrieve the carrier accounts associated to the shipment @@ -6946,13 +19297,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + shipmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderIdReturns(context.Background(), orderId).Execute() + r, err := apiClient.HasManyApi.GETShipmentIdCarrierAccounts(context.Background(), shipmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdReturns``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShipmentIdCarrierAccounts``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6964,11 +19315,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**shipmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdReturnsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShipmentIdCarrierAccountsRequest struct via the builder pattern Name | Type | Description | Notes @@ -6993,11 +19344,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdShipments +## GETShipmentIdEvents -> GETOrderIdShipments(ctx, orderId).Execute() +> GETShipmentIdEvents(ctx, shipmentId).Execute() -Retrieve the shipments associated to the order +Retrieve the events associated to the shipment @@ -7014,13 +19365,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + shipmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderIdShipments(context.Background(), orderId).Execute() + r, err := apiClient.HasManyApi.GETShipmentIdEvents(context.Background(), shipmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdShipments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShipmentIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7032,11 +19383,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**shipmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdShipmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShipmentIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -7061,11 +19412,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdVoids +## GETShipmentIdLineItems -> GETOrderIdVoids(ctx, orderId).Execute() +> GETShipmentIdLineItems(ctx, shipmentId).Execute() -Retrieve the voids associated to the order +Retrieve the line items associated to the shipment @@ -7082,13 +19433,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + shipmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderIdVoids(context.Background(), orderId).Execute() + r, err := apiClient.HasManyApi.GETShipmentIdLineItems(context.Background(), shipmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderIdVoids``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShipmentIdLineItems``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7100,11 +19451,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**shipmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdVoidsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShipmentIdLineItemsRequest struct via the builder pattern Name | Type | Description | Notes @@ -7129,11 +19480,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderSubscriptionIdEvents +## GETShipmentIdParcels -> GETOrderSubscriptionIdEvents(ctx, orderSubscriptionId).Execute() +> GETShipmentIdParcels(ctx, shipmentId).Execute() -Retrieve the events associated to the order subscription +Retrieve the parcels associated to the shipment @@ -7150,13 +19501,13 @@ import ( ) func main() { - orderSubscriptionId := TODO // interface{} | The resource's id + shipmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderSubscriptionIdEvents(context.Background(), orderSubscriptionId).Execute() + r, err := apiClient.HasManyApi.GETShipmentIdParcels(context.Background(), shipmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderSubscriptionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShipmentIdParcels``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7168,11 +19519,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | +**shipmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShipmentIdParcelsRequest struct via the builder pattern Name | Type | Description | Notes @@ -7197,11 +19548,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderSubscriptionIdOrderFactories +## GETShipmentIdStockLineItems -> GETOrderSubscriptionIdOrderFactories(ctx, orderSubscriptionId).Execute() +> GETShipmentIdStockLineItems(ctx, shipmentId).Execute() -Retrieve the order factories associated to the order subscription +Retrieve the stock line items associated to the shipment @@ -7218,13 +19569,13 @@ import ( ) func main() { - orderSubscriptionId := TODO // interface{} | The resource's id + shipmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderSubscriptionIdOrderFactories(context.Background(), orderSubscriptionId).Execute() + r, err := apiClient.HasManyApi.GETShipmentIdStockLineItems(context.Background(), shipmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderSubscriptionIdOrderFactories``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShipmentIdStockLineItems``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7236,11 +19587,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | +**shipmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdOrderFactoriesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShipmentIdStockLineItemsRequest struct via the builder pattern Name | Type | Description | Notes @@ -7265,11 +19616,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderSubscriptionIdOrderSubscriptionItems +## GETShipmentIdStockTransfers -> GETOrderSubscriptionIdOrderSubscriptionItems(ctx, orderSubscriptionId).Execute() +> GETShipmentIdStockTransfers(ctx, shipmentId).Execute() -Retrieve the order subscription items associated to the order subscription +Retrieve the stock transfers associated to the shipment @@ -7286,13 +19637,13 @@ import ( ) func main() { - orderSubscriptionId := TODO // interface{} | The resource's id + shipmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderSubscriptionIdOrderSubscriptionItems(context.Background(), orderSubscriptionId).Execute() + r, err := apiClient.HasManyApi.GETShipmentIdStockTransfers(context.Background(), shipmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderSubscriptionIdOrderSubscriptionItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShipmentIdStockTransfers``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7304,11 +19655,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | +**shipmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdOrderSubscriptionItemsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShipmentIdStockTransfersRequest struct via the builder pattern Name | Type | Description | Notes @@ -7333,11 +19684,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderSubscriptionIdOrders +## GETShipmentIdTags -> GETOrderSubscriptionIdOrders(ctx, orderSubscriptionId).Execute() +> GETShipmentIdTags(ctx, shipmentId).Execute() -Retrieve the orders associated to the order subscription +Retrieve the tags associated to the shipment @@ -7354,13 +19705,13 @@ import ( ) func main() { - orderSubscriptionId := TODO // interface{} | The resource's id + shipmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderSubscriptionIdOrders(context.Background(), orderSubscriptionId).Execute() + r, err := apiClient.HasManyApi.GETShipmentIdTags(context.Background(), shipmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderSubscriptionIdOrders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShipmentIdTags``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7372,11 +19723,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | +**shipmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdOrdersRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShipmentIdTagsRequest struct via the builder pattern Name | Type | Description | Notes @@ -7401,11 +19752,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderSubscriptionIdRecurringOrderCopies +## GETShipmentIdVersions -> GETOrderSubscriptionIdRecurringOrderCopies(ctx, orderSubscriptionId).Execute() +> GETShipmentIdVersions(ctx, shipmentId).Execute() -Retrieve the recurring order copies associated to the order subscription +Retrieve the versions associated to the shipment @@ -7422,13 +19773,13 @@ import ( ) func main() { - orderSubscriptionId := TODO // interface{} | The resource's id + shipmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderSubscriptionIdRecurringOrderCopies(context.Background(), orderSubscriptionId).Execute() + r, err := apiClient.HasManyApi.GETShipmentIdVersions(context.Background(), shipmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderSubscriptionIdRecurringOrderCopies``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShipmentIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7440,11 +19791,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | +**shipmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdRecurringOrderCopiesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShipmentIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -7469,11 +19820,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderValidationRuleIdAttachments +## GETShippingCategoryIdAttachments -> GETOrderValidationRuleIdAttachments(ctx, orderValidationRuleId).Execute() +> GETShippingCategoryIdAttachments(ctx, shippingCategoryId).Execute() -Retrieve the attachments associated to the order validation rule +Retrieve the attachments associated to the shipping category @@ -7490,13 +19841,13 @@ import ( ) func main() { - orderValidationRuleId := TODO // interface{} | The resource's id + shippingCategoryId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETOrderValidationRuleIdAttachments(context.Background(), orderValidationRuleId).Execute() + r, err := apiClient.HasManyApi.GETShippingCategoryIdAttachments(context.Background(), shippingCategoryId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETOrderValidationRuleIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingCategoryIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7508,11 +19859,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderValidationRuleId** | [**interface{}**](.md) | The resource's id | +**shippingCategoryId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderValidationRuleIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingCategoryIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -7537,11 +19888,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPackageIdAttachments +## GETShippingCategoryIdSkus -> GETPackageIdAttachments(ctx, packageId).Execute() +> GETShippingCategoryIdSkus(ctx, shippingCategoryId).Execute() -Retrieve the attachments associated to the package +Retrieve the skus associated to the shipping category @@ -7558,13 +19909,13 @@ import ( ) func main() { - packageId := TODO // interface{} | The resource's id + shippingCategoryId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPackageIdAttachments(context.Background(), packageId).Execute() + r, err := apiClient.HasManyApi.GETShippingCategoryIdSkus(context.Background(), shippingCategoryId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPackageIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingCategoryIdSkus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7576,11 +19927,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**packageId** | [**interface{}**](.md) | The resource's id | +**shippingCategoryId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPackageIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingCategoryIdSkusRequest struct via the builder pattern Name | Type | Description | Notes @@ -7605,11 +19956,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPackageIdParcels +## GETShippingCategoryIdVersions -> GETPackageIdParcels(ctx, packageId).Execute() +> GETShippingCategoryIdVersions(ctx, shippingCategoryId).Execute() -Retrieve the parcels associated to the package +Retrieve the versions associated to the shipping category @@ -7626,13 +19977,13 @@ import ( ) func main() { - packageId := TODO // interface{} | The resource's id + shippingCategoryId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPackageIdParcels(context.Background(), packageId).Execute() + r, err := apiClient.HasManyApi.GETShippingCategoryIdVersions(context.Background(), shippingCategoryId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPackageIdParcels``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingCategoryIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7644,11 +19995,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**packageId** | [**interface{}**](.md) | The resource's id | +**shippingCategoryId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPackageIdParcelsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingCategoryIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -7673,11 +20024,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETParcelIdAttachments +## GETShippingMethodIdAttachments -> GETParcelIdAttachments(ctx, parcelId).Execute() +> GETShippingMethodIdAttachments(ctx, shippingMethodId).Execute() -Retrieve the attachments associated to the parcel +Retrieve the attachments associated to the shipping method @@ -7694,13 +20045,13 @@ import ( ) func main() { - parcelId := TODO // interface{} | The resource's id + shippingMethodId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETParcelIdAttachments(context.Background(), parcelId).Execute() + r, err := apiClient.HasManyApi.GETShippingMethodIdAttachments(context.Background(), shippingMethodId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETParcelIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingMethodIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7712,11 +20063,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**parcelId** | [**interface{}**](.md) | The resource's id | +**shippingMethodId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETParcelIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingMethodIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -7741,11 +20092,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETParcelIdEvents +## GETShippingMethodIdShippingMethodTiers -> GETParcelIdEvents(ctx, parcelId).Execute() +> GETShippingMethodIdShippingMethodTiers(ctx, shippingMethodId).Execute() -Retrieve the events associated to the parcel +Retrieve the shipping method tiers associated to the shipping method @@ -7762,13 +20113,13 @@ import ( ) func main() { - parcelId := TODO // interface{} | The resource's id + shippingMethodId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETParcelIdEvents(context.Background(), parcelId).Execute() + r, err := apiClient.HasManyApi.GETShippingMethodIdShippingMethodTiers(context.Background(), shippingMethodId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETParcelIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingMethodIdShippingMethodTiers``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7780,11 +20131,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**parcelId** | [**interface{}**](.md) | The resource's id | +**shippingMethodId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETParcelIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingMethodIdShippingMethodTiersRequest struct via the builder pattern Name | Type | Description | Notes @@ -7809,11 +20160,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETParcelIdParcelLineItems +## GETShippingMethodIdShippingWeightTiers -> GETParcelIdParcelLineItems(ctx, parcelId).Execute() +> GETShippingMethodIdShippingWeightTiers(ctx, shippingMethodId).Execute() -Retrieve the parcel line items associated to the parcel +Retrieve the shipping weight tiers associated to the shipping method @@ -7830,13 +20181,13 @@ import ( ) func main() { - parcelId := TODO // interface{} | The resource's id + shippingMethodId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETParcelIdParcelLineItems(context.Background(), parcelId).Execute() + r, err := apiClient.HasManyApi.GETShippingMethodIdShippingWeightTiers(context.Background(), shippingMethodId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETParcelIdParcelLineItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingMethodIdShippingWeightTiers``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7848,11 +20199,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**parcelId** | [**interface{}**](.md) | The resource's id | +**shippingMethodId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETParcelIdParcelLineItemsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingMethodIdShippingWeightTiersRequest struct via the builder pattern Name | Type | Description | Notes @@ -7877,11 +20228,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPaymentGatewayIdPaymentMethods +## GETShippingMethodIdVersions -> GETPaymentGatewayIdPaymentMethods(ctx, paymentGatewayId).Execute() +> GETShippingMethodIdVersions(ctx, shippingMethodId).Execute() -Retrieve the payment methods associated to the payment gateway +Retrieve the versions associated to the shipping method @@ -7898,13 +20249,13 @@ import ( ) func main() { - paymentGatewayId := TODO // interface{} | The resource's id + shippingMethodId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPaymentGatewayIdPaymentMethods(context.Background(), paymentGatewayId).Execute() + r, err := apiClient.HasManyApi.GETShippingMethodIdVersions(context.Background(), shippingMethodId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPaymentGatewayIdPaymentMethods``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingMethodIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7916,11 +20267,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**paymentGatewayId** | [**interface{}**](.md) | The resource's id | +**shippingMethodId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPaymentGatewayIdPaymentMethodsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingMethodIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -7945,11 +20296,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPaymentMethodIdAttachments +## GETShippingMethodTierIdAttachments -> GETPaymentMethodIdAttachments(ctx, paymentMethodId).Execute() +> GETShippingMethodTierIdAttachments(ctx, shippingMethodTierId).Execute() -Retrieve the attachments associated to the payment method +Retrieve the attachments associated to the shipping method tier @@ -7966,13 +20317,13 @@ import ( ) func main() { - paymentMethodId := TODO // interface{} | The resource's id + shippingMethodTierId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPaymentMethodIdAttachments(context.Background(), paymentMethodId).Execute() + r, err := apiClient.HasManyApi.GETShippingMethodTierIdAttachments(context.Background(), shippingMethodTierId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPaymentMethodIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingMethodTierIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7984,11 +20335,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**paymentMethodId** | [**interface{}**](.md) | The resource's id | +**shippingMethodTierId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPaymentMethodIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingMethodTierIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -8013,11 +20364,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPaypalGatewayIdPaymentMethods +## GETShippingMethodTierIdVersions -> GETPaypalGatewayIdPaymentMethods(ctx, paypalGatewayId).Execute() +> GETShippingMethodTierIdVersions(ctx, shippingMethodTierId).Execute() -Retrieve the payment methods associated to the paypal gateway +Retrieve the versions associated to the shipping method tier @@ -8034,13 +20385,13 @@ import ( ) func main() { - paypalGatewayId := TODO // interface{} | The resource's id + shippingMethodTierId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPaypalGatewayIdPaymentMethods(context.Background(), paypalGatewayId).Execute() + r, err := apiClient.HasManyApi.GETShippingMethodTierIdVersions(context.Background(), shippingMethodTierId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPaypalGatewayIdPaymentMethods``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingMethodTierIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8052,11 +20403,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**paypalGatewayId** | [**interface{}**](.md) | The resource's id | +**shippingMethodTierId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPaypalGatewayIdPaymentMethodsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingMethodTierIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -8081,11 +20432,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPaypalGatewayIdPaypalPayments +## GETShippingWeightTierIdAttachments -> GETPaypalGatewayIdPaypalPayments(ctx, paypalGatewayId).Execute() +> GETShippingWeightTierIdAttachments(ctx, shippingWeightTierId).Execute() -Retrieve the paypal payments associated to the paypal gateway +Retrieve the attachments associated to the shipping weight tier @@ -8102,13 +20453,13 @@ import ( ) func main() { - paypalGatewayId := TODO // interface{} | The resource's id + shippingWeightTierId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPaypalGatewayIdPaypalPayments(context.Background(), paypalGatewayId).Execute() + r, err := apiClient.HasManyApi.GETShippingWeightTierIdAttachments(context.Background(), shippingWeightTierId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPaypalGatewayIdPaypalPayments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingWeightTierIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8120,11 +20471,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**paypalGatewayId** | [**interface{}**](.md) | The resource's id | +**shippingWeightTierId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPaypalGatewayIdPaypalPaymentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingWeightTierIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -8149,11 +20500,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPercentageDiscountPromotionIdAttachments +## GETShippingWeightTierIdVersions -> GETPercentageDiscountPromotionIdAttachments(ctx, percentageDiscountPromotionId).Execute() +> GETShippingWeightTierIdVersions(ctx, shippingWeightTierId).Execute() -Retrieve the attachments associated to the percentage discount promotion +Retrieve the versions associated to the shipping weight tier @@ -8170,13 +20521,13 @@ import ( ) func main() { - percentageDiscountPromotionId := TODO // interface{} | The resource's id + shippingWeightTierId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPercentageDiscountPromotionIdAttachments(context.Background(), percentageDiscountPromotionId).Execute() + r, err := apiClient.HasManyApi.GETShippingWeightTierIdVersions(context.Background(), shippingWeightTierId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPercentageDiscountPromotionIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingWeightTierIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8188,11 +20539,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | +**shippingWeightTierId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingWeightTierIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -8217,11 +20568,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPercentageDiscountPromotionIdEvents +## GETShippingZoneIdAttachments -> GETPercentageDiscountPromotionIdEvents(ctx, percentageDiscountPromotionId).Execute() +> GETShippingZoneIdAttachments(ctx, shippingZoneId).Execute() -Retrieve the events associated to the percentage discount promotion +Retrieve the attachments associated to the shipping zone @@ -8238,13 +20589,13 @@ import ( ) func main() { - percentageDiscountPromotionId := TODO // interface{} | The resource's id + shippingZoneId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPercentageDiscountPromotionIdEvents(context.Background(), percentageDiscountPromotionId).Execute() + r, err := apiClient.HasManyApi.GETShippingZoneIdAttachments(context.Background(), shippingZoneId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPercentageDiscountPromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingZoneIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8256,11 +20607,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | +**shippingZoneId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingZoneIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -8285,11 +20636,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPercentageDiscountPromotionIdSkus +## GETShippingZoneIdVersions -> GETPercentageDiscountPromotionIdSkus(ctx, percentageDiscountPromotionId).Execute() +> GETShippingZoneIdVersions(ctx, shippingZoneId).Execute() -Retrieve the skus associated to the percentage discount promotion +Retrieve the versions associated to the shipping zone @@ -8306,13 +20657,13 @@ import ( ) func main() { - percentageDiscountPromotionId := TODO // interface{} | The resource's id + shippingZoneId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPercentageDiscountPromotionIdSkus(context.Background(), percentageDiscountPromotionId).Execute() + r, err := apiClient.HasManyApi.GETShippingZoneIdVersions(context.Background(), shippingZoneId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPercentageDiscountPromotionIdSkus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingZoneIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8324,11 +20675,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | +**shippingZoneId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdSkusRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingZoneIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -8353,11 +20704,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPriceFrequencyTierIdAttachments +## GETSkuIdAttachments -> GETPriceFrequencyTierIdAttachments(ctx, priceFrequencyTierId).Execute() +> GETSkuIdAttachments(ctx, skuId).Execute() -Retrieve the attachments associated to the price frequency tier +Retrieve the attachments associated to the SKU @@ -8374,13 +20725,13 @@ import ( ) func main() { - priceFrequencyTierId := TODO // interface{} | The resource's id + skuId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPriceFrequencyTierIdAttachments(context.Background(), priceFrequencyTierId).Execute() + r, err := apiClient.HasManyApi.GETSkuIdAttachments(context.Background(), skuId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceFrequencyTierIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8392,11 +20743,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**priceFrequencyTierId** | [**interface{}**](.md) | The resource's id | +**skuId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPriceFrequencyTierIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -8421,11 +20772,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPriceFrequencyTierIdEvents +## GETSkuIdDeliveryLeadTimes -> GETPriceFrequencyTierIdEvents(ctx, priceFrequencyTierId).Execute() +> GETSkuIdDeliveryLeadTimes(ctx, skuId).Execute() -Retrieve the events associated to the price frequency tier +Retrieve the delivery lead times associated to the SKU @@ -8442,13 +20793,13 @@ import ( ) func main() { - priceFrequencyTierId := TODO // interface{} | The resource's id + skuId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPriceFrequencyTierIdEvents(context.Background(), priceFrequencyTierId).Execute() + r, err := apiClient.HasManyApi.GETSkuIdDeliveryLeadTimes(context.Background(), skuId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceFrequencyTierIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuIdDeliveryLeadTimes``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8460,11 +20811,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**priceFrequencyTierId** | [**interface{}**](.md) | The resource's id | +**skuId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPriceFrequencyTierIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuIdDeliveryLeadTimesRequest struct via the builder pattern Name | Type | Description | Notes @@ -8489,11 +20840,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPriceIdAttachments +## GETSkuIdEvents -> GETPriceIdAttachments(ctx, priceId).Execute() +> GETSkuIdEvents(ctx, skuId).Execute() -Retrieve the attachments associated to the price +Retrieve the events associated to the SKU @@ -8510,13 +20861,13 @@ import ( ) func main() { - priceId := TODO // interface{} | The resource's id + skuId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPriceIdAttachments(context.Background(), priceId).Execute() + r, err := apiClient.HasManyApi.GETSkuIdEvents(context.Background(), skuId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8528,11 +20879,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**priceId** | [**interface{}**](.md) | The resource's id | +**skuId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPriceIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -8557,11 +20908,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPriceIdPriceFrequencyTiers +## GETSkuIdJwtMarkets -> GETPriceIdPriceFrequencyTiers(ctx, priceId).Execute() +> GETSkuIdJwtMarkets(ctx, skuId).Execute() -Retrieve the price frequency tiers associated to the price +Retrieve the jwt markets associated to the SKU @@ -8578,13 +20929,13 @@ import ( ) func main() { - priceId := TODO // interface{} | The resource's id + skuId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPriceIdPriceFrequencyTiers(context.Background(), priceId).Execute() + r, err := apiClient.HasManyApi.GETSkuIdJwtMarkets(context.Background(), skuId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceIdPriceFrequencyTiers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuIdJwtMarkets``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8596,11 +20947,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**priceId** | [**interface{}**](.md) | The resource's id | +**skuId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPriceIdPriceFrequencyTiersRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuIdJwtMarketsRequest struct via the builder pattern Name | Type | Description | Notes @@ -8625,11 +20976,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPriceIdPriceTiers +## GETSkuIdJwtStockLocations -> GETPriceIdPriceTiers(ctx, priceId).Execute() +> GETSkuIdJwtStockLocations(ctx, skuId).Execute() -Retrieve the price tiers associated to the price +Retrieve the jwt stock locations associated to the SKU @@ -8646,13 +20997,13 @@ import ( ) func main() { - priceId := TODO // interface{} | The resource's id + skuId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPriceIdPriceTiers(context.Background(), priceId).Execute() + r, err := apiClient.HasManyApi.GETSkuIdJwtStockLocations(context.Background(), skuId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceIdPriceTiers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuIdJwtStockLocations``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8664,11 +21015,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**priceId** | [**interface{}**](.md) | The resource's id | +**skuId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPriceIdPriceTiersRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuIdJwtStockLocationsRequest struct via the builder pattern Name | Type | Description | Notes @@ -8693,11 +21044,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPriceIdPriceVolumeTiers +## GETSkuIdLinks -> GETPriceIdPriceVolumeTiers(ctx, priceId).Execute() +> GETSkuIdLinks(ctx, skuId).Execute() -Retrieve the price volume tiers associated to the price +Retrieve the links associated to the SKU @@ -8714,13 +21065,13 @@ import ( ) func main() { - priceId := TODO // interface{} | The resource's id + skuId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPriceIdPriceVolumeTiers(context.Background(), priceId).Execute() + r, err := apiClient.HasManyApi.GETSkuIdLinks(context.Background(), skuId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceIdPriceVolumeTiers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuIdLinks``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8732,11 +21083,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**priceId** | [**interface{}**](.md) | The resource's id | +**skuId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPriceIdPriceVolumeTiersRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuIdLinksRequest struct via the builder pattern Name | Type | Description | Notes @@ -8761,11 +21112,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPriceListIdAttachments +## GETSkuIdPrices -> GETPriceListIdAttachments(ctx, priceListId).Execute() +> GETSkuIdPrices(ctx, skuId).Execute() -Retrieve the attachments associated to the price list +Retrieve the prices associated to the SKU @@ -8782,13 +21133,13 @@ import ( ) func main() { - priceListId := TODO // interface{} | The resource's id + skuId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPriceListIdAttachments(context.Background(), priceListId).Execute() + r, err := apiClient.HasManyApi.GETSkuIdPrices(context.Background(), skuId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceListIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuIdPrices``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8800,11 +21151,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**priceListId** | [**interface{}**](.md) | The resource's id | +**skuId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPriceListIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuIdPricesRequest struct via the builder pattern Name | Type | Description | Notes @@ -8829,11 +21180,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPriceListIdPrices +## GETSkuIdSkuListItems -> GETPriceListIdPrices(ctx, priceListId).Execute() +> GETSkuIdSkuListItems(ctx, skuId).Execute() -Retrieve the prices associated to the price list +Retrieve the sku list items associated to the SKU @@ -8850,13 +21201,13 @@ import ( ) func main() { - priceListId := TODO // interface{} | The resource's id + skuId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPriceListIdPrices(context.Background(), priceListId).Execute() + r, err := apiClient.HasManyApi.GETSkuIdSkuListItems(context.Background(), skuId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceListIdPrices``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuIdSkuListItems``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8868,11 +21219,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**priceListId** | [**interface{}**](.md) | The resource's id | +**skuId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPriceListIdPricesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuIdSkuListItemsRequest struct via the builder pattern Name | Type | Description | Notes @@ -8897,11 +21248,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPriceTierIdAttachments +## GETSkuIdSkuLists -> GETPriceTierIdAttachments(ctx, priceTierId).Execute() +> GETSkuIdSkuLists(ctx, skuId).Execute() -Retrieve the attachments associated to the price tier +Retrieve the sku lists associated to the SKU @@ -8918,13 +21269,13 @@ import ( ) func main() { - priceTierId := TODO // interface{} | The resource's id + skuId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPriceTierIdAttachments(context.Background(), priceTierId).Execute() + r, err := apiClient.HasManyApi.GETSkuIdSkuLists(context.Background(), skuId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceTierIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuIdSkuLists``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8936,11 +21287,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**priceTierId** | [**interface{}**](.md) | The resource's id | +**skuId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPriceTierIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuIdSkuListsRequest struct via the builder pattern Name | Type | Description | Notes @@ -8965,11 +21316,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPriceVolumeTierIdAttachments +## GETSkuIdSkuOptions -> GETPriceVolumeTierIdAttachments(ctx, priceVolumeTierId).Execute() +> GETSkuIdSkuOptions(ctx, skuId).Execute() -Retrieve the attachments associated to the price volume tier +Retrieve the sku options associated to the SKU @@ -8986,13 +21337,13 @@ import ( ) func main() { - priceVolumeTierId := TODO // interface{} | The resource's id + skuId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPriceVolumeTierIdAttachments(context.Background(), priceVolumeTierId).Execute() + r, err := apiClient.HasManyApi.GETSkuIdSkuOptions(context.Background(), skuId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceVolumeTierIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuIdSkuOptions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9004,11 +21355,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**priceVolumeTierId** | [**interface{}**](.md) | The resource's id | +**skuId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPriceVolumeTierIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuIdSkuOptionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -9033,11 +21384,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPriceVolumeTierIdEvents +## GETSkuIdStockItems -> GETPriceVolumeTierIdEvents(ctx, priceVolumeTierId).Execute() +> GETSkuIdStockItems(ctx, skuId).Execute() -Retrieve the events associated to the price volume tier +Retrieve the stock items associated to the SKU @@ -9054,13 +21405,13 @@ import ( ) func main() { - priceVolumeTierId := TODO // interface{} | The resource's id + skuId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPriceVolumeTierIdEvents(context.Background(), priceVolumeTierId).Execute() + r, err := apiClient.HasManyApi.GETSkuIdStockItems(context.Background(), skuId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPriceVolumeTierIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuIdStockItems``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9072,11 +21423,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**priceVolumeTierId** | [**interface{}**](.md) | The resource's id | +**skuId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPriceVolumeTierIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuIdStockItemsRequest struct via the builder pattern Name | Type | Description | Notes @@ -9101,11 +21452,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPromotionIdAttachments +## GETSkuIdStockReservations -> GETPromotionIdAttachments(ctx, promotionId).Execute() +> GETSkuIdStockReservations(ctx, skuId).Execute() -Retrieve the attachments associated to the promotion +Retrieve the stock reservations associated to the SKU @@ -9122,13 +21473,13 @@ import ( ) func main() { - promotionId := TODO // interface{} | The resource's id + skuId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPromotionIdAttachments(context.Background(), promotionId).Execute() + r, err := apiClient.HasManyApi.GETSkuIdStockReservations(context.Background(), skuId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPromotionIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuIdStockReservations``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9140,11 +21491,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**promotionId** | [**interface{}**](.md) | The resource's id | +**skuId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPromotionIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuIdStockReservationsRequest struct via the builder pattern Name | Type | Description | Notes @@ -9169,11 +21520,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPromotionIdEvents +## GETSkuIdTags -> GETPromotionIdEvents(ctx, promotionId).Execute() +> GETSkuIdTags(ctx, skuId).Execute() -Retrieve the events associated to the promotion +Retrieve the tags associated to the SKU @@ -9190,13 +21541,13 @@ import ( ) func main() { - promotionId := TODO // interface{} | The resource's id + skuId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETPromotionIdEvents(context.Background(), promotionId).Execute() + r, err := apiClient.HasManyApi.GETSkuIdTags(context.Background(), skuId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETPromotionIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuIdTags``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9208,11 +21559,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**promotionId** | [**interface{}**](.md) | The resource's id | +**skuId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPromotionIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuIdTagsRequest struct via the builder pattern Name | Type | Description | Notes @@ -9237,11 +21588,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETRecurringOrderCopyIdEvents +## GETSkuIdVersions -> GETRecurringOrderCopyIdEvents(ctx, recurringOrderCopyId).Execute() +> GETSkuIdVersions(ctx, skuId).Execute() -Retrieve the events associated to the recurring order copy +Retrieve the versions associated to the SKU @@ -9258,13 +21609,13 @@ import ( ) func main() { - recurringOrderCopyId := TODO // interface{} | The resource's id + skuId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETRecurringOrderCopyIdEvents(context.Background(), recurringOrderCopyId).Execute() + r, err := apiClient.HasManyApi.GETSkuIdVersions(context.Background(), skuId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETRecurringOrderCopyIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9276,11 +21627,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**recurringOrderCopyId** | [**interface{}**](.md) | The resource's id | +**skuId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETRecurringOrderCopyIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -9305,11 +21656,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETRefundIdEvents +## GETSkuListIdAttachments -> GETRefundIdEvents(ctx, refundId).Execute() +> GETSkuListIdAttachments(ctx, skuListId).Execute() -Retrieve the events associated to the refund +Retrieve the attachments associated to the SKU list @@ -9326,13 +21677,13 @@ import ( ) func main() { - refundId := TODO // interface{} | The resource's id + skuListId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETRefundIdEvents(context.Background(), refundId).Execute() + r, err := apiClient.HasManyApi.GETSkuListIdAttachments(context.Background(), skuListId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETRefundIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuListIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9344,11 +21695,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**refundId** | [**interface{}**](.md) | The resource's id | +**skuListId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETRefundIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuListIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -9373,11 +21724,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETReturnIdAttachments +## GETSkuListIdBundles -> GETReturnIdAttachments(ctx, returnId).Execute() +> GETSkuListIdBundles(ctx, skuListId).Execute() -Retrieve the attachments associated to the return +Retrieve the bundles associated to the SKU list @@ -9394,13 +21745,13 @@ import ( ) func main() { - returnId := TODO // interface{} | The resource's id + skuListId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETReturnIdAttachments(context.Background(), returnId).Execute() + r, err := apiClient.HasManyApi.GETSkuListIdBundles(context.Background(), skuListId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETReturnIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuListIdBundles``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9412,11 +21763,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**returnId** | [**interface{}**](.md) | The resource's id | +**skuListId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETReturnIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuListIdBundlesRequest struct via the builder pattern Name | Type | Description | Notes @@ -9441,11 +21792,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETReturnIdEvents +## GETSkuListIdLinks -> GETReturnIdEvents(ctx, returnId).Execute() +> GETSkuListIdLinks(ctx, skuListId).Execute() -Retrieve the events associated to the return +Retrieve the links associated to the SKU list @@ -9462,13 +21813,13 @@ import ( ) func main() { - returnId := TODO // interface{} | The resource's id + skuListId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETReturnIdEvents(context.Background(), returnId).Execute() + r, err := apiClient.HasManyApi.GETSkuListIdLinks(context.Background(), skuListId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETReturnIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuListIdLinks``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9480,11 +21831,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**returnId** | [**interface{}**](.md) | The resource's id | +**skuListId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETReturnIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuListIdLinksRequest struct via the builder pattern Name | Type | Description | Notes @@ -9509,11 +21860,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETReturnIdReturnLineItems +## GETSkuListIdSkuListItems -> GETReturnIdReturnLineItems(ctx, returnId).Execute() +> GETSkuListIdSkuListItems(ctx, skuListId).Execute() -Retrieve the return line items associated to the return +Retrieve the sku list items associated to the SKU list @@ -9530,13 +21881,13 @@ import ( ) func main() { - returnId := TODO // interface{} | The resource's id + skuListId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETReturnIdReturnLineItems(context.Background(), returnId).Execute() + r, err := apiClient.HasManyApi.GETSkuListIdSkuListItems(context.Background(), skuListId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETReturnIdReturnLineItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuListIdSkuListItems``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9548,11 +21899,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**returnId** | [**interface{}**](.md) | The resource's id | +**skuListId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETReturnIdReturnLineItemsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuListIdSkuListItemsRequest struct via the builder pattern Name | Type | Description | Notes @@ -9577,11 +21928,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSatispayGatewayIdPaymentMethods +## GETSkuListIdSkus -> GETSatispayGatewayIdPaymentMethods(ctx, satispayGatewayId).Execute() +> GETSkuListIdSkus(ctx, skuListId).Execute() -Retrieve the payment methods associated to the satispay gateway +Retrieve the skus associated to the SKU list @@ -9598,13 +21949,13 @@ import ( ) func main() { - satispayGatewayId := TODO // interface{} | The resource's id + skuListId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETSatispayGatewayIdPaymentMethods(context.Background(), satispayGatewayId).Execute() + r, err := apiClient.HasManyApi.GETSkuListIdSkus(context.Background(), skuListId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSatispayGatewayIdPaymentMethods``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuListIdSkus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9616,11 +21967,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**satispayGatewayId** | [**interface{}**](.md) | The resource's id | +**skuListId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSatispayGatewayIdPaymentMethodsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuListIdSkusRequest struct via the builder pattern Name | Type | Description | Notes @@ -9645,11 +21996,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSatispayGatewayIdSatispayPayments +## GETSkuListIdVersions -> GETSatispayGatewayIdSatispayPayments(ctx, satispayGatewayId).Execute() +> GETSkuListIdVersions(ctx, skuListId).Execute() -Retrieve the satispay payments associated to the satispay gateway +Retrieve the versions associated to the SKU list @@ -9666,13 +22017,13 @@ import ( ) func main() { - satispayGatewayId := TODO // interface{} | The resource's id + skuListId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETSatispayGatewayIdSatispayPayments(context.Background(), satispayGatewayId).Execute() + r, err := apiClient.HasManyApi.GETSkuListIdVersions(context.Background(), skuListId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSatispayGatewayIdSatispayPayments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuListIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9684,11 +22035,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**satispayGatewayId** | [**interface{}**](.md) | The resource's id | +**skuListId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSatispayGatewayIdSatispayPaymentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuListIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -9713,11 +22064,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShipmentIdAttachments +## GETSkuListItemIdVersions -> GETShipmentIdAttachments(ctx, shipmentId).Execute() +> GETSkuListItemIdVersions(ctx, skuListItemId).Execute() -Retrieve the attachments associated to the shipment +Retrieve the versions associated to the SKU list item @@ -9734,13 +22085,13 @@ import ( ) func main() { - shipmentId := TODO // interface{} | The resource's id + skuListItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETShipmentIdAttachments(context.Background(), shipmentId).Execute() + r, err := apiClient.HasManyApi.GETSkuListItemIdVersions(context.Background(), skuListItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShipmentIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuListItemIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9752,11 +22103,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shipmentId** | [**interface{}**](.md) | The resource's id | +**skuListItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShipmentIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuListItemIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -9781,11 +22132,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShipmentIdAvailableShippingMethods +## GETSkuListPromotionRuleIdSkus -> GETShipmentIdAvailableShippingMethods(ctx, shipmentId).Execute() +> GETSkuListPromotionRuleIdSkus(ctx, skuListPromotionRuleId).Execute() -Retrieve the available shipping methods associated to the shipment +Retrieve the skus associated to the SKU list promotion rule @@ -9802,13 +22153,13 @@ import ( ) func main() { - shipmentId := TODO // interface{} | The resource's id + skuListPromotionRuleId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETShipmentIdAvailableShippingMethods(context.Background(), shipmentId).Execute() + r, err := apiClient.HasManyApi.GETSkuListPromotionRuleIdSkus(context.Background(), skuListPromotionRuleId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShipmentIdAvailableShippingMethods``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuListPromotionRuleIdSkus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9820,11 +22171,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shipmentId** | [**interface{}**](.md) | The resource's id | +**skuListPromotionRuleId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShipmentIdAvailableShippingMethodsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuListPromotionRuleIdSkusRequest struct via the builder pattern Name | Type | Description | Notes @@ -9849,11 +22200,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShipmentIdCarrierAccounts +## GETSkuListPromotionRuleIdVersions -> GETShipmentIdCarrierAccounts(ctx, shipmentId).Execute() +> GETSkuListPromotionRuleIdVersions(ctx, skuListPromotionRuleId).Execute() -Retrieve the carrier accounts associated to the shipment +Retrieve the versions associated to the SKU list promotion rule @@ -9870,13 +22221,13 @@ import ( ) func main() { - shipmentId := TODO // interface{} | The resource's id + skuListPromotionRuleId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETShipmentIdCarrierAccounts(context.Background(), shipmentId).Execute() + r, err := apiClient.HasManyApi.GETSkuListPromotionRuleIdVersions(context.Background(), skuListPromotionRuleId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShipmentIdCarrierAccounts``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuListPromotionRuleIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9888,11 +22239,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shipmentId** | [**interface{}**](.md) | The resource's id | +**skuListPromotionRuleId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShipmentIdCarrierAccountsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuListPromotionRuleIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -9917,11 +22268,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShipmentIdEvents +## GETSkuOptionIdAttachments -> GETShipmentIdEvents(ctx, shipmentId).Execute() +> GETSkuOptionIdAttachments(ctx, skuOptionId).Execute() -Retrieve the events associated to the shipment +Retrieve the attachments associated to the SKU option @@ -9938,13 +22289,13 @@ import ( ) func main() { - shipmentId := TODO // interface{} | The resource's id + skuOptionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETShipmentIdEvents(context.Background(), shipmentId).Execute() + r, err := apiClient.HasManyApi.GETSkuOptionIdAttachments(context.Background(), skuOptionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShipmentIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuOptionIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9956,11 +22307,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shipmentId** | [**interface{}**](.md) | The resource's id | +**skuOptionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShipmentIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuOptionIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -9985,11 +22336,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShipmentIdParcels +## GETSkuOptionIdEvents -> GETShipmentIdParcels(ctx, shipmentId).Execute() +> GETSkuOptionIdEvents(ctx, skuOptionId).Execute() -Retrieve the parcels associated to the shipment +Retrieve the events associated to the SKU option @@ -10006,13 +22357,13 @@ import ( ) func main() { - shipmentId := TODO // interface{} | The resource's id + skuOptionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETShipmentIdParcels(context.Background(), shipmentId).Execute() + r, err := apiClient.HasManyApi.GETSkuOptionIdEvents(context.Background(), skuOptionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShipmentIdParcels``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuOptionIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10024,11 +22375,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shipmentId** | [**interface{}**](.md) | The resource's id | +**skuOptionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShipmentIdParcelsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuOptionIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -10053,11 +22404,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShipmentIdStockLineItems +## GETSkuOptionIdTags -> GETShipmentIdStockLineItems(ctx, shipmentId).Execute() +> GETSkuOptionIdTags(ctx, skuOptionId).Execute() -Retrieve the stock line items associated to the shipment +Retrieve the tags associated to the SKU option @@ -10074,13 +22425,13 @@ import ( ) func main() { - shipmentId := TODO // interface{} | The resource's id + skuOptionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETShipmentIdStockLineItems(context.Background(), shipmentId).Execute() + r, err := apiClient.HasManyApi.GETSkuOptionIdTags(context.Background(), skuOptionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShipmentIdStockLineItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuOptionIdTags``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10092,11 +22443,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shipmentId** | [**interface{}**](.md) | The resource's id | +**skuOptionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShipmentIdStockLineItemsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuOptionIdTagsRequest struct via the builder pattern Name | Type | Description | Notes @@ -10121,11 +22472,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShipmentIdStockTransfers +## GETSkuOptionIdVersions -> GETShipmentIdStockTransfers(ctx, shipmentId).Execute() +> GETSkuOptionIdVersions(ctx, skuOptionId).Execute() -Retrieve the stock transfers associated to the shipment +Retrieve the versions associated to the SKU option @@ -10142,13 +22493,13 @@ import ( ) func main() { - shipmentId := TODO // interface{} | The resource's id + skuOptionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETShipmentIdStockTransfers(context.Background(), shipmentId).Execute() + r, err := apiClient.HasManyApi.GETSkuOptionIdVersions(context.Background(), skuOptionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShipmentIdStockTransfers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuOptionIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10160,11 +22511,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shipmentId** | [**interface{}**](.md) | The resource's id | +**skuOptionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShipmentIdStockTransfersRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuOptionIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -10189,11 +22540,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShippingCategoryIdAttachments +## GETStockItemIdAttachments -> GETShippingCategoryIdAttachments(ctx, shippingCategoryId).Execute() +> GETStockItemIdAttachments(ctx, stockItemId).Execute() -Retrieve the attachments associated to the shipping category +Retrieve the attachments associated to the stock item @@ -10210,13 +22561,13 @@ import ( ) func main() { - shippingCategoryId := TODO // interface{} | The resource's id + stockItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETShippingCategoryIdAttachments(context.Background(), shippingCategoryId).Execute() + r, err := apiClient.HasManyApi.GETStockItemIdAttachments(context.Background(), stockItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingCategoryIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockItemIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10228,11 +22579,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shippingCategoryId** | [**interface{}**](.md) | The resource's id | +**stockItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShippingCategoryIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockItemIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -10257,11 +22608,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShippingCategoryIdSkus +## GETStockItemIdStockReservations -> GETShippingCategoryIdSkus(ctx, shippingCategoryId).Execute() +> GETStockItemIdStockReservations(ctx, stockItemId).Execute() -Retrieve the skus associated to the shipping category +Retrieve the stock reservations associated to the stock item @@ -10278,13 +22629,13 @@ import ( ) func main() { - shippingCategoryId := TODO // interface{} | The resource's id + stockItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETShippingCategoryIdSkus(context.Background(), shippingCategoryId).Execute() + r, err := apiClient.HasManyApi.GETStockItemIdStockReservations(context.Background(), stockItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingCategoryIdSkus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockItemIdStockReservations``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10296,11 +22647,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shippingCategoryId** | [**interface{}**](.md) | The resource's id | +**stockItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShippingCategoryIdSkusRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockItemIdStockReservationsRequest struct via the builder pattern Name | Type | Description | Notes @@ -10325,11 +22676,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShippingMethodIdAttachments +## GETStockItemIdVersions -> GETShippingMethodIdAttachments(ctx, shippingMethodId).Execute() +> GETStockItemIdVersions(ctx, stockItemId).Execute() -Retrieve the attachments associated to the shipping method +Retrieve the versions associated to the stock item @@ -10346,13 +22697,13 @@ import ( ) func main() { - shippingMethodId := TODO // interface{} | The resource's id + stockItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETShippingMethodIdAttachments(context.Background(), shippingMethodId).Execute() + r, err := apiClient.HasManyApi.GETStockItemIdVersions(context.Background(), stockItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingMethodIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockItemIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10364,11 +22715,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shippingMethodId** | [**interface{}**](.md) | The resource's id | +**stockItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShippingMethodIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockItemIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -10393,11 +22744,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShippingMethodIdShippingMethodTiers +## GETStockLineItemIdVersions -> GETShippingMethodIdShippingMethodTiers(ctx, shippingMethodId).Execute() +> GETStockLineItemIdVersions(ctx, stockLineItemId).Execute() -Retrieve the shipping method tiers associated to the shipping method +Retrieve the versions associated to the stock line item @@ -10414,13 +22765,13 @@ import ( ) func main() { - shippingMethodId := TODO // interface{} | The resource's id + stockLineItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETShippingMethodIdShippingMethodTiers(context.Background(), shippingMethodId).Execute() + r, err := apiClient.HasManyApi.GETStockLineItemIdVersions(context.Background(), stockLineItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingMethodIdShippingMethodTiers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockLineItemIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10432,11 +22783,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shippingMethodId** | [**interface{}**](.md) | The resource's id | +**stockLineItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShippingMethodIdShippingMethodTiersRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockLineItemIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -10461,11 +22812,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShippingMethodIdShippingWeightTiers +## GETStockLocationIdAttachments -> GETShippingMethodIdShippingWeightTiers(ctx, shippingMethodId).Execute() +> GETStockLocationIdAttachments(ctx, stockLocationId).Execute() -Retrieve the shipping weight tiers associated to the shipping method +Retrieve the attachments associated to the stock location @@ -10482,13 +22833,13 @@ import ( ) func main() { - shippingMethodId := TODO // interface{} | The resource's id + stockLocationId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETShippingMethodIdShippingWeightTiers(context.Background(), shippingMethodId).Execute() + r, err := apiClient.HasManyApi.GETStockLocationIdAttachments(context.Background(), stockLocationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingMethodIdShippingWeightTiers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockLocationIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10500,11 +22851,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shippingMethodId** | [**interface{}**](.md) | The resource's id | +**stockLocationId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShippingMethodIdShippingWeightTiersRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockLocationIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -10529,11 +22880,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShippingMethodTierIdAttachments +## GETStockLocationIdInventoryReturnLocations -> GETShippingMethodTierIdAttachments(ctx, shippingMethodTierId).Execute() +> GETStockLocationIdInventoryReturnLocations(ctx, stockLocationId).Execute() -Retrieve the attachments associated to the shipping method tier +Retrieve the inventory return locations associated to the stock location @@ -10550,13 +22901,13 @@ import ( ) func main() { - shippingMethodTierId := TODO // interface{} | The resource's id + stockLocationId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETShippingMethodTierIdAttachments(context.Background(), shippingMethodTierId).Execute() + r, err := apiClient.HasManyApi.GETStockLocationIdInventoryReturnLocations(context.Background(), stockLocationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingMethodTierIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockLocationIdInventoryReturnLocations``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10568,11 +22919,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shippingMethodTierId** | [**interface{}**](.md) | The resource's id | +**stockLocationId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShippingMethodTierIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockLocationIdInventoryReturnLocationsRequest struct via the builder pattern Name | Type | Description | Notes @@ -10597,11 +22948,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShippingWeightTierIdAttachments +## GETStockLocationIdInventoryStockLocations -> GETShippingWeightTierIdAttachments(ctx, shippingWeightTierId).Execute() +> GETStockLocationIdInventoryStockLocations(ctx, stockLocationId).Execute() -Retrieve the attachments associated to the shipping weight tier +Retrieve the inventory stock locations associated to the stock location @@ -10618,13 +22969,13 @@ import ( ) func main() { - shippingWeightTierId := TODO // interface{} | The resource's id + stockLocationId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETShippingWeightTierIdAttachments(context.Background(), shippingWeightTierId).Execute() + r, err := apiClient.HasManyApi.GETStockLocationIdInventoryStockLocations(context.Background(), stockLocationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingWeightTierIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockLocationIdInventoryStockLocations``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10636,11 +22987,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shippingWeightTierId** | [**interface{}**](.md) | The resource's id | +**stockLocationId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShippingWeightTierIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockLocationIdInventoryStockLocationsRequest struct via the builder pattern Name | Type | Description | Notes @@ -10665,11 +23016,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShippingZoneIdAttachments +## GETStockLocationIdStockItems -> GETShippingZoneIdAttachments(ctx, shippingZoneId).Execute() +> GETStockLocationIdStockItems(ctx, stockLocationId).Execute() -Retrieve the attachments associated to the shipping zone +Retrieve the stock items associated to the stock location @@ -10686,13 +23037,13 @@ import ( ) func main() { - shippingZoneId := TODO // interface{} | The resource's id + stockLocationId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETShippingZoneIdAttachments(context.Background(), shippingZoneId).Execute() + r, err := apiClient.HasManyApi.GETStockLocationIdStockItems(context.Background(), stockLocationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETShippingZoneIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockLocationIdStockItems``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10704,11 +23055,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shippingZoneId** | [**interface{}**](.md) | The resource's id | +**stockLocationId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShippingZoneIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockLocationIdStockItemsRequest struct via the builder pattern Name | Type | Description | Notes @@ -10733,11 +23084,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSkuIdAttachments +## GETStockLocationIdStockTransfers -> GETSkuIdAttachments(ctx, skuId).Execute() +> GETStockLocationIdStockTransfers(ctx, stockLocationId).Execute() -Retrieve the attachments associated to the SKU +Retrieve the stock transfers associated to the stock location @@ -10754,13 +23105,13 @@ import ( ) func main() { - skuId := TODO // interface{} | The resource's id + stockLocationId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETSkuIdAttachments(context.Background(), skuId).Execute() + r, err := apiClient.HasManyApi.GETStockLocationIdStockTransfers(context.Background(), stockLocationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockLocationIdStockTransfers``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10772,11 +23123,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**skuId** | [**interface{}**](.md) | The resource's id | +**stockLocationId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSkuIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockLocationIdStockTransfersRequest struct via the builder pattern Name | Type | Description | Notes @@ -10801,11 +23152,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSkuIdDeliveryLeadTimes +## GETStockLocationIdVersions -> GETSkuIdDeliveryLeadTimes(ctx, skuId).Execute() +> GETStockLocationIdVersions(ctx, stockLocationId).Execute() -Retrieve the delivery lead times associated to the SKU +Retrieve the versions associated to the stock location @@ -10822,13 +23173,13 @@ import ( ) func main() { - skuId := TODO // interface{} | The resource's id + stockLocationId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETSkuIdDeliveryLeadTimes(context.Background(), skuId).Execute() + r, err := apiClient.HasManyApi.GETStockLocationIdVersions(context.Background(), stockLocationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuIdDeliveryLeadTimes``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockLocationIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10840,11 +23191,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**skuId** | [**interface{}**](.md) | The resource's id | +**stockLocationId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSkuIdDeliveryLeadTimesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockLocationIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -10869,11 +23220,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSkuIdPrices +## GETStockTransferIdAttachments -> GETSkuIdPrices(ctx, skuId).Execute() +> GETStockTransferIdAttachments(ctx, stockTransferId).Execute() -Retrieve the prices associated to the SKU +Retrieve the attachments associated to the stock transfer @@ -10890,13 +23241,13 @@ import ( ) func main() { - skuId := TODO // interface{} | The resource's id + stockTransferId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETSkuIdPrices(context.Background(), skuId).Execute() + r, err := apiClient.HasManyApi.GETStockTransferIdAttachments(context.Background(), stockTransferId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuIdPrices``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockTransferIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10908,11 +23259,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**skuId** | [**interface{}**](.md) | The resource's id | +**stockTransferId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSkuIdPricesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockTransferIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -10937,11 +23288,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSkuIdSkuOptions +## GETStockTransferIdEvents -> GETSkuIdSkuOptions(ctx, skuId).Execute() +> GETStockTransferIdEvents(ctx, stockTransferId).Execute() -Retrieve the sku options associated to the SKU +Retrieve the events associated to the stock transfer @@ -10958,13 +23309,13 @@ import ( ) func main() { - skuId := TODO // interface{} | The resource's id + stockTransferId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETSkuIdSkuOptions(context.Background(), skuId).Execute() + r, err := apiClient.HasManyApi.GETStockTransferIdEvents(context.Background(), stockTransferId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuIdSkuOptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockTransferIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10976,11 +23327,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**skuId** | [**interface{}**](.md) | The resource's id | +**stockTransferId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSkuIdSkuOptionsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockTransferIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -11005,11 +23356,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSkuIdStockItems +## GETStockTransferIdVersions -> GETSkuIdStockItems(ctx, skuId).Execute() +> GETStockTransferIdVersions(ctx, stockTransferId).Execute() -Retrieve the stock items associated to the SKU +Retrieve the versions associated to the stock transfer @@ -11026,13 +23377,13 @@ import ( ) func main() { - skuId := TODO // interface{} | The resource's id + stockTransferId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETSkuIdStockItems(context.Background(), skuId).Execute() + r, err := apiClient.HasManyApi.GETStockTransferIdVersions(context.Background(), stockTransferId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuIdStockItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockTransferIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11044,11 +23395,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**skuId** | [**interface{}**](.md) | The resource's id | +**stockTransferId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSkuIdStockItemsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockTransferIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -11073,11 +23424,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSkuListIdAttachments +## GETStripeGatewayIdPaymentMethods -> GETSkuListIdAttachments(ctx, skuListId).Execute() +> GETStripeGatewayIdPaymentMethods(ctx, stripeGatewayId).Execute() -Retrieve the attachments associated to the SKU list +Retrieve the payment methods associated to the stripe gateway @@ -11094,13 +23445,13 @@ import ( ) func main() { - skuListId := TODO // interface{} | The resource's id + stripeGatewayId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETSkuListIdAttachments(context.Background(), skuListId).Execute() + r, err := apiClient.HasManyApi.GETStripeGatewayIdPaymentMethods(context.Background(), stripeGatewayId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuListIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStripeGatewayIdPaymentMethods``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11112,11 +23463,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**skuListId** | [**interface{}**](.md) | The resource's id | +**stripeGatewayId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSkuListIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStripeGatewayIdPaymentMethodsRequest struct via the builder pattern Name | Type | Description | Notes @@ -11141,11 +23492,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSkuListIdBundles +## GETStripeGatewayIdStripePayments -> GETSkuListIdBundles(ctx, skuListId).Execute() +> GETStripeGatewayIdStripePayments(ctx, stripeGatewayId).Execute() -Retrieve the bundles associated to the SKU list +Retrieve the stripe payments associated to the stripe gateway @@ -11162,13 +23513,13 @@ import ( ) func main() { - skuListId := TODO // interface{} | The resource's id + stripeGatewayId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETSkuListIdBundles(context.Background(), skuListId).Execute() + r, err := apiClient.HasManyApi.GETStripeGatewayIdStripePayments(context.Background(), stripeGatewayId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuListIdBundles``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStripeGatewayIdStripePayments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11180,11 +23531,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**skuListId** | [**interface{}**](.md) | The resource's id | +**stripeGatewayId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSkuListIdBundlesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStripeGatewayIdStripePaymentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -11209,11 +23560,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSkuListIdSkuListItems +## GETStripeGatewayIdVersions -> GETSkuListIdSkuListItems(ctx, skuListId).Execute() +> GETStripeGatewayIdVersions(ctx, stripeGatewayId).Execute() -Retrieve the sku list items associated to the SKU list +Retrieve the versions associated to the stripe gateway @@ -11230,13 +23581,13 @@ import ( ) func main() { - skuListId := TODO // interface{} | The resource's id + stripeGatewayId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETSkuListIdSkuListItems(context.Background(), skuListId).Execute() + r, err := apiClient.HasManyApi.GETStripeGatewayIdVersions(context.Background(), stripeGatewayId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuListIdSkuListItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStripeGatewayIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11248,11 +23599,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**skuListId** | [**interface{}**](.md) | The resource's id | +**stripeGatewayId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSkuListIdSkuListItemsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStripeGatewayIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -11277,11 +23628,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSkuListIdSkus +## GETStripePaymentIdVersions -> GETSkuListIdSkus(ctx, skuListId).Execute() +> GETStripePaymentIdVersions(ctx, stripePaymentId).Execute() -Retrieve the skus associated to the SKU list +Retrieve the versions associated to the stripe payment @@ -11298,13 +23649,13 @@ import ( ) func main() { - skuListId := TODO // interface{} | The resource's id + stripePaymentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETSkuListIdSkus(context.Background(), skuListId).Execute() + r, err := apiClient.HasManyApi.GETStripePaymentIdVersions(context.Background(), stripePaymentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuListIdSkus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStripePaymentIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11316,11 +23667,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**skuListId** | [**interface{}**](.md) | The resource's id | +**stripePaymentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSkuListIdSkusRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStripePaymentIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -11345,11 +23696,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSkuListPromotionRuleIdSkus +## GETSubscriptionModelIdAttachments -> GETSkuListPromotionRuleIdSkus(ctx, skuListPromotionRuleId).Execute() +> GETSubscriptionModelIdAttachments(ctx, subscriptionModelId).Execute() -Retrieve the skus associated to the SKU list promotion rule +Retrieve the attachments associated to the subscription model @@ -11366,13 +23717,13 @@ import ( ) func main() { - skuListPromotionRuleId := TODO // interface{} | The resource's id + subscriptionModelId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETSkuListPromotionRuleIdSkus(context.Background(), skuListPromotionRuleId).Execute() + r, err := apiClient.HasManyApi.GETSubscriptionModelIdAttachments(context.Background(), subscriptionModelId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuListPromotionRuleIdSkus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSubscriptionModelIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11384,11 +23735,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**skuListPromotionRuleId** | [**interface{}**](.md) | The resource's id | +**subscriptionModelId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSkuListPromotionRuleIdSkusRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSubscriptionModelIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -11413,11 +23764,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSkuOptionIdAttachments +## GETSubscriptionModelIdMarkets -> GETSkuOptionIdAttachments(ctx, skuOptionId).Execute() +> GETSubscriptionModelIdMarkets(ctx, subscriptionModelId).Execute() -Retrieve the attachments associated to the SKU option +Retrieve the markets associated to the subscription model @@ -11434,13 +23785,13 @@ import ( ) func main() { - skuOptionId := TODO // interface{} | The resource's id + subscriptionModelId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETSkuOptionIdAttachments(context.Background(), skuOptionId).Execute() + r, err := apiClient.HasManyApi.GETSubscriptionModelIdMarkets(context.Background(), subscriptionModelId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSkuOptionIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSubscriptionModelIdMarkets``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11452,11 +23803,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**skuOptionId** | [**interface{}**](.md) | The resource's id | +**subscriptionModelId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSkuOptionIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSubscriptionModelIdMarketsRequest struct via the builder pattern Name | Type | Description | Notes @@ -11481,11 +23832,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStockItemIdAttachments +## GETSubscriptionModelIdOrderSubscriptions -> GETStockItemIdAttachments(ctx, stockItemId).Execute() +> GETSubscriptionModelIdOrderSubscriptions(ctx, subscriptionModelId).Execute() -Retrieve the attachments associated to the stock item +Retrieve the order subscriptions associated to the subscription model @@ -11502,13 +23853,13 @@ import ( ) func main() { - stockItemId := TODO // interface{} | The resource's id + subscriptionModelId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETStockItemIdAttachments(context.Background(), stockItemId).Execute() + r, err := apiClient.HasManyApi.GETSubscriptionModelIdOrderSubscriptions(context.Background(), subscriptionModelId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockItemIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSubscriptionModelIdOrderSubscriptions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11520,11 +23871,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**stockItemId** | [**interface{}**](.md) | The resource's id | +**subscriptionModelId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETStockItemIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSubscriptionModelIdOrderSubscriptionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -11549,11 +23900,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStockLocationIdAttachments +## GETTaxCalculatorIdAttachments -> GETStockLocationIdAttachments(ctx, stockLocationId).Execute() +> GETTaxCalculatorIdAttachments(ctx, taxCalculatorId).Execute() -Retrieve the attachments associated to the stock location +Retrieve the attachments associated to the tax calculator @@ -11570,13 +23921,13 @@ import ( ) func main() { - stockLocationId := TODO // interface{} | The resource's id + taxCalculatorId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETStockLocationIdAttachments(context.Background(), stockLocationId).Execute() + r, err := apiClient.HasManyApi.GETTaxCalculatorIdAttachments(context.Background(), taxCalculatorId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockLocationIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETTaxCalculatorIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11588,11 +23939,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**stockLocationId** | [**interface{}**](.md) | The resource's id | +**taxCalculatorId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETStockLocationIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETTaxCalculatorIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -11617,11 +23968,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStockLocationIdInventoryReturnLocations +## GETTaxCalculatorIdMarkets -> GETStockLocationIdInventoryReturnLocations(ctx, stockLocationId).Execute() +> GETTaxCalculatorIdMarkets(ctx, taxCalculatorId).Execute() -Retrieve the inventory return locations associated to the stock location +Retrieve the markets associated to the tax calculator @@ -11638,13 +23989,13 @@ import ( ) func main() { - stockLocationId := TODO // interface{} | The resource's id + taxCalculatorId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETStockLocationIdInventoryReturnLocations(context.Background(), stockLocationId).Execute() + r, err := apiClient.HasManyApi.GETTaxCalculatorIdMarkets(context.Background(), taxCalculatorId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockLocationIdInventoryReturnLocations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETTaxCalculatorIdMarkets``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11656,11 +24007,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**stockLocationId** | [**interface{}**](.md) | The resource's id | +**taxCalculatorId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETStockLocationIdInventoryReturnLocationsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETTaxCalculatorIdMarketsRequest struct via the builder pattern Name | Type | Description | Notes @@ -11685,11 +24036,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStockLocationIdInventoryStockLocations +## GETTaxCalculatorIdVersions -> GETStockLocationIdInventoryStockLocations(ctx, stockLocationId).Execute() +> GETTaxCalculatorIdVersions(ctx, taxCalculatorId).Execute() -Retrieve the inventory stock locations associated to the stock location +Retrieve the versions associated to the tax calculator @@ -11706,13 +24057,13 @@ import ( ) func main() { - stockLocationId := TODO // interface{} | The resource's id + taxCalculatorId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETStockLocationIdInventoryStockLocations(context.Background(), stockLocationId).Execute() + r, err := apiClient.HasManyApi.GETTaxCalculatorIdVersions(context.Background(), taxCalculatorId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockLocationIdInventoryStockLocations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETTaxCalculatorIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11724,11 +24075,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**stockLocationId** | [**interface{}**](.md) | The resource's id | +**taxCalculatorId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETStockLocationIdInventoryStockLocationsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETTaxCalculatorIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -11753,11 +24104,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStockLocationIdStockItems +## GETTaxCategoryIdAttachments -> GETStockLocationIdStockItems(ctx, stockLocationId).Execute() +> GETTaxCategoryIdAttachments(ctx, taxCategoryId).Execute() -Retrieve the stock items associated to the stock location +Retrieve the attachments associated to the tax category @@ -11774,13 +24125,13 @@ import ( ) func main() { - stockLocationId := TODO // interface{} | The resource's id + taxCategoryId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETStockLocationIdStockItems(context.Background(), stockLocationId).Execute() + r, err := apiClient.HasManyApi.GETTaxCategoryIdAttachments(context.Background(), taxCategoryId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockLocationIdStockItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETTaxCategoryIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11792,11 +24143,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**stockLocationId** | [**interface{}**](.md) | The resource's id | +**taxCategoryId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETStockLocationIdStockItemsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETTaxCategoryIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -11821,11 +24172,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStockLocationIdStockTransfers +## GETTaxCategoryIdVersions -> GETStockLocationIdStockTransfers(ctx, stockLocationId).Execute() +> GETTaxCategoryIdVersions(ctx, taxCategoryId).Execute() -Retrieve the stock transfers associated to the stock location +Retrieve the versions associated to the tax category @@ -11842,13 +24193,13 @@ import ( ) func main() { - stockLocationId := TODO // interface{} | The resource's id + taxCategoryId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETStockLocationIdStockTransfers(context.Background(), stockLocationId).Execute() + r, err := apiClient.HasManyApi.GETTaxCategoryIdVersions(context.Background(), taxCategoryId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockLocationIdStockTransfers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETTaxCategoryIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11860,11 +24211,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**stockLocationId** | [**interface{}**](.md) | The resource's id | +**taxCategoryId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETStockLocationIdStockTransfersRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETTaxCategoryIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -11889,11 +24240,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStockTransferIdEvents +## GETTaxRuleIdVersions -> GETStockTransferIdEvents(ctx, stockTransferId).Execute() +> GETTaxRuleIdVersions(ctx, taxRuleId).Execute() -Retrieve the events associated to the stock transfer +Retrieve the versions associated to the tax rule @@ -11910,13 +24261,13 @@ import ( ) func main() { - stockTransferId := TODO // interface{} | The resource's id + taxRuleId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETStockTransferIdEvents(context.Background(), stockTransferId).Execute() + r, err := apiClient.HasManyApi.GETTaxRuleIdVersions(context.Background(), taxRuleId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStockTransferIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETTaxRuleIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11928,11 +24279,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**stockTransferId** | [**interface{}**](.md) | The resource's id | +**taxRuleId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETStockTransferIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETTaxRuleIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -11957,11 +24308,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStripeGatewayIdPaymentMethods +## GETTaxjarAccountIdAttachments -> GETStripeGatewayIdPaymentMethods(ctx, stripeGatewayId).Execute() +> GETTaxjarAccountIdAttachments(ctx, taxjarAccountId).Execute() -Retrieve the payment methods associated to the stripe gateway +Retrieve the attachments associated to the taxjar account @@ -11978,13 +24329,13 @@ import ( ) func main() { - stripeGatewayId := TODO // interface{} | The resource's id + taxjarAccountId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETStripeGatewayIdPaymentMethods(context.Background(), stripeGatewayId).Execute() + r, err := apiClient.HasManyApi.GETTaxjarAccountIdAttachments(context.Background(), taxjarAccountId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStripeGatewayIdPaymentMethods``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETTaxjarAccountIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11996,11 +24347,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**stripeGatewayId** | [**interface{}**](.md) | The resource's id | +**taxjarAccountId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETStripeGatewayIdPaymentMethodsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETTaxjarAccountIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -12025,11 +24376,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStripeGatewayIdStripePayments +## GETTaxjarAccountIdMarkets -> GETStripeGatewayIdStripePayments(ctx, stripeGatewayId).Execute() +> GETTaxjarAccountIdMarkets(ctx, taxjarAccountId).Execute() -Retrieve the stripe payments associated to the stripe gateway +Retrieve the markets associated to the taxjar account @@ -12046,13 +24397,13 @@ import ( ) func main() { - stripeGatewayId := TODO // interface{} | The resource's id + taxjarAccountId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETStripeGatewayIdStripePayments(context.Background(), stripeGatewayId).Execute() + r, err := apiClient.HasManyApi.GETTaxjarAccountIdMarkets(context.Background(), taxjarAccountId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETStripeGatewayIdStripePayments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETTaxjarAccountIdMarkets``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -12064,11 +24415,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**stripeGatewayId** | [**interface{}**](.md) | The resource's id | +**taxjarAccountId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETStripeGatewayIdStripePaymentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETTaxjarAccountIdMarketsRequest struct via the builder pattern Name | Type | Description | Notes @@ -12093,11 +24444,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSubscriptionModelIdAttachments +## GETTaxjarAccountIdTaxCategories -> GETSubscriptionModelIdAttachments(ctx, subscriptionModelId).Execute() +> GETTaxjarAccountIdTaxCategories(ctx, taxjarAccountId).Execute() -Retrieve the attachments associated to the subscription model +Retrieve the tax categories associated to the taxjar account @@ -12114,13 +24465,13 @@ import ( ) func main() { - subscriptionModelId := TODO // interface{} | The resource's id + taxjarAccountId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETSubscriptionModelIdAttachments(context.Background(), subscriptionModelId).Execute() + r, err := apiClient.HasManyApi.GETTaxjarAccountIdTaxCategories(context.Background(), taxjarAccountId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSubscriptionModelIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETTaxjarAccountIdTaxCategories``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -12132,11 +24483,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**subscriptionModelId** | [**interface{}**](.md) | The resource's id | +**taxjarAccountId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSubscriptionModelIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETTaxjarAccountIdTaxCategoriesRequest struct via the builder pattern Name | Type | Description | Notes @@ -12161,11 +24512,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSubscriptionModelIdMarkets +## GETTaxjarAccountIdVersions -> GETSubscriptionModelIdMarkets(ctx, subscriptionModelId).Execute() +> GETTaxjarAccountIdVersions(ctx, taxjarAccountId).Execute() -Retrieve the markets associated to the subscription model +Retrieve the versions associated to the taxjar account @@ -12182,13 +24533,13 @@ import ( ) func main() { - subscriptionModelId := TODO // interface{} | The resource's id + taxjarAccountId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETSubscriptionModelIdMarkets(context.Background(), subscriptionModelId).Execute() + r, err := apiClient.HasManyApi.GETTaxjarAccountIdVersions(context.Background(), taxjarAccountId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSubscriptionModelIdMarkets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETTaxjarAccountIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -12200,11 +24551,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**subscriptionModelId** | [**interface{}**](.md) | The resource's id | +**taxjarAccountId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSubscriptionModelIdMarketsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETTaxjarAccountIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -12229,11 +24580,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSubscriptionModelIdOrderSubscriptions +## GETTransactionIdAttachments -> GETSubscriptionModelIdOrderSubscriptions(ctx, subscriptionModelId).Execute() +> GETTransactionIdAttachments(ctx, transactionId).Execute() -Retrieve the order subscriptions associated to the subscription model +Retrieve the attachments associated to the transaction @@ -12250,13 +24601,13 @@ import ( ) func main() { - subscriptionModelId := TODO // interface{} | The resource's id + transactionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETSubscriptionModelIdOrderSubscriptions(context.Background(), subscriptionModelId).Execute() + r, err := apiClient.HasManyApi.GETTransactionIdAttachments(context.Background(), transactionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETSubscriptionModelIdOrderSubscriptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETTransactionIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -12268,11 +24619,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**subscriptionModelId** | [**interface{}**](.md) | The resource's id | +**transactionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSubscriptionModelIdOrderSubscriptionsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETTransactionIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -12297,11 +24648,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETTaxCalculatorIdAttachments +## GETTransactionIdEvents -> GETTaxCalculatorIdAttachments(ctx, taxCalculatorId).Execute() +> GETTransactionIdEvents(ctx, transactionId).Execute() -Retrieve the attachments associated to the tax calculator +Retrieve the events associated to the transaction @@ -12318,13 +24669,13 @@ import ( ) func main() { - taxCalculatorId := TODO // interface{} | The resource's id + transactionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETTaxCalculatorIdAttachments(context.Background(), taxCalculatorId).Execute() + r, err := apiClient.HasManyApi.GETTransactionIdEvents(context.Background(), transactionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETTaxCalculatorIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETTransactionIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -12336,11 +24687,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**taxCalculatorId** | [**interface{}**](.md) | The resource's id | +**transactionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETTaxCalculatorIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETTransactionIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -12365,11 +24716,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETTaxCalculatorIdMarkets +## GETTransactionIdVersions -> GETTaxCalculatorIdMarkets(ctx, taxCalculatorId).Execute() +> GETTransactionIdVersions(ctx, transactionId).Execute() -Retrieve the markets associated to the tax calculator +Retrieve the versions associated to the transaction @@ -12386,13 +24737,13 @@ import ( ) func main() { - taxCalculatorId := TODO // interface{} | The resource's id + transactionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETTaxCalculatorIdMarkets(context.Background(), taxCalculatorId).Execute() + r, err := apiClient.HasManyApi.GETTransactionIdVersions(context.Background(), transactionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETTaxCalculatorIdMarkets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETTransactionIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -12404,11 +24755,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**taxCalculatorId** | [**interface{}**](.md) | The resource's id | +**transactionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETTaxCalculatorIdMarketsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETTransactionIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -12433,11 +24784,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETTaxCategoryIdAttachments +## GETVoidIdAttachments -> GETTaxCategoryIdAttachments(ctx, taxCategoryId).Execute() +> GETVoidIdAttachments(ctx, voidId).Execute() -Retrieve the attachments associated to the tax category +Retrieve the attachments associated to the void @@ -12454,13 +24805,13 @@ import ( ) func main() { - taxCategoryId := TODO // interface{} | The resource's id + voidId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETTaxCategoryIdAttachments(context.Background(), taxCategoryId).Execute() + r, err := apiClient.HasManyApi.GETVoidIdAttachments(context.Background(), voidId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETTaxCategoryIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETVoidIdAttachments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -12472,11 +24823,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**taxCategoryId** | [**interface{}**](.md) | The resource's id | +**voidId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETTaxCategoryIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETVoidIdAttachmentsRequest struct via the builder pattern Name | Type | Description | Notes @@ -12501,11 +24852,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETTaxjarAccountIdAttachments +## GETVoidIdEvents -> GETTaxjarAccountIdAttachments(ctx, taxjarAccountId).Execute() +> GETVoidIdEvents(ctx, voidId).Execute() -Retrieve the attachments associated to the taxjar account +Retrieve the events associated to the void @@ -12522,13 +24873,13 @@ import ( ) func main() { - taxjarAccountId := TODO // interface{} | The resource's id + voidId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETTaxjarAccountIdAttachments(context.Background(), taxjarAccountId).Execute() + r, err := apiClient.HasManyApi.GETVoidIdEvents(context.Background(), voidId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETTaxjarAccountIdAttachments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETVoidIdEvents``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -12540,11 +24891,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**taxjarAccountId** | [**interface{}**](.md) | The resource's id | +**voidId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETTaxjarAccountIdAttachmentsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETVoidIdEventsRequest struct via the builder pattern Name | Type | Description | Notes @@ -12569,11 +24920,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETTaxjarAccountIdMarkets +## GETVoidIdVersions -> GETTaxjarAccountIdMarkets(ctx, taxjarAccountId).Execute() +> GETVoidIdVersions(ctx, voidId).Execute() -Retrieve the markets associated to the taxjar account +Retrieve the versions associated to the void @@ -12590,13 +24941,13 @@ import ( ) func main() { - taxjarAccountId := TODO // interface{} | The resource's id + voidId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETTaxjarAccountIdMarkets(context.Background(), taxjarAccountId).Execute() + r, err := apiClient.HasManyApi.GETVoidIdVersions(context.Background(), voidId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETTaxjarAccountIdMarkets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETVoidIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -12608,11 +24959,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**taxjarAccountId** | [**interface{}**](.md) | The resource's id | +**voidId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETTaxjarAccountIdMarketsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETVoidIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -12637,11 +24988,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETTaxjarAccountIdTaxCategories +## GETWebhookIdLastEventCallbacks -> GETTaxjarAccountIdTaxCategories(ctx, taxjarAccountId).Execute() +> GETWebhookIdLastEventCallbacks(ctx, webhookId).Execute() -Retrieve the tax categories associated to the taxjar account +Retrieve the last event callbacks associated to the webhook @@ -12658,13 +25009,13 @@ import ( ) func main() { - taxjarAccountId := TODO // interface{} | The resource's id + webhookId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETTaxjarAccountIdTaxCategories(context.Background(), taxjarAccountId).Execute() + r, err := apiClient.HasManyApi.GETWebhookIdLastEventCallbacks(context.Background(), webhookId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETTaxjarAccountIdTaxCategories``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETWebhookIdLastEventCallbacks``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -12676,11 +25027,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**taxjarAccountId** | [**interface{}**](.md) | The resource's id | +**webhookId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETTaxjarAccountIdTaxCategoriesRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETWebhookIdLastEventCallbacksRequest struct via the builder pattern Name | Type | Description | Notes @@ -12705,11 +25056,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETVoidIdEvents +## GETWebhookIdVersions -> GETVoidIdEvents(ctx, voidId).Execute() +> GETWebhookIdVersions(ctx, webhookId).Execute() -Retrieve the events associated to the void +Retrieve the versions associated to the webhook @@ -12726,13 +25077,13 @@ import ( ) func main() { - voidId := TODO // interface{} | The resource's id + webhookId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETVoidIdEvents(context.Background(), voidId).Execute() + r, err := apiClient.HasManyApi.GETWebhookIdVersions(context.Background(), webhookId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETVoidIdEvents``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETWebhookIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -12744,11 +25095,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**voidId** | [**interface{}**](.md) | The resource's id | +**webhookId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETVoidIdEventsRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETWebhookIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes @@ -12773,11 +25124,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETWebhookIdLastEventCallbacks +## GETWireTransferIdVersions -> GETWebhookIdLastEventCallbacks(ctx, webhookId).Execute() +> GETWireTransferIdVersions(ctx, wireTransferId).Execute() -Retrieve the last event callbacks associated to the webhook +Retrieve the versions associated to the wire transfer @@ -12794,13 +25145,13 @@ import ( ) func main() { - webhookId := TODO // interface{} | The resource's id + wireTransferId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasManyApi.GETWebhookIdLastEventCallbacks(context.Background(), webhookId).Execute() + r, err := apiClient.HasManyApi.GETWireTransferIdVersions(context.Background(), wireTransferId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETWebhookIdLastEventCallbacks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasManyApi.GETWireTransferIdVersions``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -12812,11 +25163,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**webhookId** | [**interface{}**](.md) | The resource's id | +**wireTransferId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETWebhookIdLastEventCallbacksRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETWireTransferIdVersionsRequest struct via the builder pattern Name | Type | Description | Notes diff --git a/api/docs/HasOneApi.md b/api/docs/HasOneApi.md index eda0dc16..cb5d2a7d 100644 --- a/api/docs/HasOneApi.md +++ b/api/docs/HasOneApi.md @@ -15,11 +15,19 @@ Method | HTTP request | Description [**GETBraintreePaymentIdPaymentGateway**](HasOneApi.md#GETBraintreePaymentIdPaymentGateway) | **Get** /braintree_payments/{braintreePaymentId}/payment_gateway | Retrieve the payment gateway associated to the braintree payment [**GETBundleIdMarket**](HasOneApi.md#GETBundleIdMarket) | **Get** /bundles/{bundleId}/market | Retrieve the market associated to the bundle [**GETBundleIdSkuList**](HasOneApi.md#GETBundleIdSkuList) | **Get** /bundles/{bundleId}/sku_list | Retrieve the sku list associated to the bundle +[**GETBuyXPayYPromotionIdCouponCodesPromotionRule**](HasOneApi.md#GETBuyXPayYPromotionIdCouponCodesPromotionRule) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the buy x pay y promotion +[**GETBuyXPayYPromotionIdCustomPromotionRule**](HasOneApi.md#GETBuyXPayYPromotionIdCustomPromotionRule) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the buy x pay y promotion +[**GETBuyXPayYPromotionIdMarket**](HasOneApi.md#GETBuyXPayYPromotionIdMarket) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/market | Retrieve the market associated to the buy x pay y promotion +[**GETBuyXPayYPromotionIdOrderAmountPromotionRule**](HasOneApi.md#GETBuyXPayYPromotionIdOrderAmountPromotionRule) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the buy x pay y promotion +[**GETBuyXPayYPromotionIdSkuList**](HasOneApi.md#GETBuyXPayYPromotionIdSkuList) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/sku_list | Retrieve the sku list associated to the buy x pay y promotion +[**GETBuyXPayYPromotionIdSkuListPromotionRule**](HasOneApi.md#GETBuyXPayYPromotionIdSkuListPromotionRule) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the buy x pay y promotion [**GETCaptureIdOrder**](HasOneApi.md#GETCaptureIdOrder) | **Get** /captures/{captureId}/order | Retrieve the order associated to the capture [**GETCaptureIdReferenceAuthorization**](HasOneApi.md#GETCaptureIdReferenceAuthorization) | **Get** /captures/{captureId}/reference_authorization | Retrieve the reference authorization associated to the capture +[**GETCaptureIdReturn**](HasOneApi.md#GETCaptureIdReturn) | **Get** /captures/{captureId}/return | Retrieve the return associated to the capture [**GETCarrierAccountIdMarket**](HasOneApi.md#GETCarrierAccountIdMarket) | **Get** /carrier_accounts/{carrierAccountId}/market | Retrieve the market associated to the carrier account [**GETCheckoutComPaymentIdOrder**](HasOneApi.md#GETCheckoutComPaymentIdOrder) | **Get** /checkout_com_payments/{checkoutComPaymentId}/order | Retrieve the order associated to the checkout.com payment [**GETCheckoutComPaymentIdPaymentGateway**](HasOneApi.md#GETCheckoutComPaymentIdPaymentGateway) | **Get** /checkout_com_payments/{checkoutComPaymentId}/payment_gateway | Retrieve the payment gateway associated to the checkout.com payment +[**GETCouponIdCouponRecipient**](HasOneApi.md#GETCouponIdCouponRecipient) | **Get** /coupons/{couponId}/coupon_recipient | Retrieve the coupon recipient associated to the coupon [**GETCouponIdPromotionRule**](HasOneApi.md#GETCouponIdPromotionRule) | **Get** /coupons/{couponId}/promotion_rule | Retrieve the promotion rule associated to the coupon [**GETCouponRecipientIdCustomer**](HasOneApi.md#GETCouponRecipientIdCustomer) | **Get** /coupon_recipients/{couponRecipientId}/customer | Retrieve the customer associated to the coupon recipient [**GETCustomerAddressIdAddress**](HasOneApi.md#GETCustomerAddressIdAddress) | **Get** /customer_addresses/{customerAddressId}/address | Retrieve the address associated to the customer address @@ -27,6 +35,7 @@ Method | HTTP request | Description [**GETCustomerIdCustomerGroup**](HasOneApi.md#GETCustomerIdCustomerGroup) | **Get** /customers/{customerId}/customer_group | Retrieve the customer group associated to the customer [**GETCustomerPasswordResetIdCustomer**](HasOneApi.md#GETCustomerPasswordResetIdCustomer) | **Get** /customer_password_resets/{customerPasswordResetId}/customer | Retrieve the customer associated to the customer password reset [**GETCustomerPaymentSourceIdCustomer**](HasOneApi.md#GETCustomerPaymentSourceIdCustomer) | **Get** /customer_payment_sources/{customerPaymentSourceId}/customer | Retrieve the customer associated to the customer payment source +[**GETCustomerPaymentSourceIdPaymentMethod**](HasOneApi.md#GETCustomerPaymentSourceIdPaymentMethod) | **Get** /customer_payment_sources/{customerPaymentSourceId}/payment_method | Retrieve the payment method associated to the customer payment source [**GETCustomerSubscriptionIdCustomer**](HasOneApi.md#GETCustomerSubscriptionIdCustomer) | **Get** /customer_subscriptions/{customerSubscriptionId}/customer | Retrieve the customer associated to the customer subscription [**GETDeliveryLeadTimeIdShippingMethod**](HasOneApi.md#GETDeliveryLeadTimeIdShippingMethod) | **Get** /delivery_lead_times/{deliveryLeadTimeId}/shipping_method | Retrieve the shipping method associated to the delivery lead time [**GETDeliveryLeadTimeIdStockLocation**](HasOneApi.md#GETDeliveryLeadTimeIdStockLocation) | **Get** /delivery_lead_times/{deliveryLeadTimeId}/stock_location | Retrieve the stock location associated to the delivery lead time @@ -35,26 +44,35 @@ Method | HTTP request | Description [**GETExternalPaymentIdPaymentGateway**](HasOneApi.md#GETExternalPaymentIdPaymentGateway) | **Get** /external_payments/{externalPaymentId}/payment_gateway | Retrieve the payment gateway associated to the external payment [**GETExternalPaymentIdWallet**](HasOneApi.md#GETExternalPaymentIdWallet) | **Get** /external_payments/{externalPaymentId}/wallet | Retrieve the wallet associated to the external payment [**GETExternalPromotionIdCouponCodesPromotionRule**](HasOneApi.md#GETExternalPromotionIdCouponCodesPromotionRule) | **Get** /external_promotions/{externalPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the external promotion +[**GETExternalPromotionIdCustomPromotionRule**](HasOneApi.md#GETExternalPromotionIdCustomPromotionRule) | **Get** /external_promotions/{externalPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the external promotion [**GETExternalPromotionIdMarket**](HasOneApi.md#GETExternalPromotionIdMarket) | **Get** /external_promotions/{externalPromotionId}/market | Retrieve the market associated to the external promotion [**GETExternalPromotionIdOrderAmountPromotionRule**](HasOneApi.md#GETExternalPromotionIdOrderAmountPromotionRule) | **Get** /external_promotions/{externalPromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the external promotion +[**GETExternalPromotionIdSkuList**](HasOneApi.md#GETExternalPromotionIdSkuList) | **Get** /external_promotions/{externalPromotionId}/sku_list | Retrieve the sku list associated to the external promotion [**GETExternalPromotionIdSkuListPromotionRule**](HasOneApi.md#GETExternalPromotionIdSkuListPromotionRule) | **Get** /external_promotions/{externalPromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the external promotion [**GETFixedAmountPromotionIdCouponCodesPromotionRule**](HasOneApi.md#GETFixedAmountPromotionIdCouponCodesPromotionRule) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the fixed amount promotion +[**GETFixedAmountPromotionIdCustomPromotionRule**](HasOneApi.md#GETFixedAmountPromotionIdCustomPromotionRule) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the fixed amount promotion [**GETFixedAmountPromotionIdMarket**](HasOneApi.md#GETFixedAmountPromotionIdMarket) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/market | Retrieve the market associated to the fixed amount promotion [**GETFixedAmountPromotionIdOrderAmountPromotionRule**](HasOneApi.md#GETFixedAmountPromotionIdOrderAmountPromotionRule) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the fixed amount promotion +[**GETFixedAmountPromotionIdSkuList**](HasOneApi.md#GETFixedAmountPromotionIdSkuList) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/sku_list | Retrieve the sku list associated to the fixed amount promotion [**GETFixedAmountPromotionIdSkuListPromotionRule**](HasOneApi.md#GETFixedAmountPromotionIdSkuListPromotionRule) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the fixed amount promotion [**GETFixedPricePromotionIdCouponCodesPromotionRule**](HasOneApi.md#GETFixedPricePromotionIdCouponCodesPromotionRule) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the fixed price promotion +[**GETFixedPricePromotionIdCustomPromotionRule**](HasOneApi.md#GETFixedPricePromotionIdCustomPromotionRule) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the fixed price promotion [**GETFixedPricePromotionIdMarket**](HasOneApi.md#GETFixedPricePromotionIdMarket) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/market | Retrieve the market associated to the fixed price promotion [**GETFixedPricePromotionIdOrderAmountPromotionRule**](HasOneApi.md#GETFixedPricePromotionIdOrderAmountPromotionRule) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the fixed price promotion [**GETFixedPricePromotionIdSkuList**](HasOneApi.md#GETFixedPricePromotionIdSkuList) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/sku_list | Retrieve the sku list associated to the fixed price promotion [**GETFixedPricePromotionIdSkuListPromotionRule**](HasOneApi.md#GETFixedPricePromotionIdSkuListPromotionRule) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the fixed price promotion +[**GETFlexPromotionIdCouponCodesPromotionRule**](HasOneApi.md#GETFlexPromotionIdCouponCodesPromotionRule) | **Get** /flex_promotions/{flexPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the flex promotion [**GETFreeGiftPromotionIdCouponCodesPromotionRule**](HasOneApi.md#GETFreeGiftPromotionIdCouponCodesPromotionRule) | **Get** /free_gift_promotions/{freeGiftPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the free gift promotion +[**GETFreeGiftPromotionIdCustomPromotionRule**](HasOneApi.md#GETFreeGiftPromotionIdCustomPromotionRule) | **Get** /free_gift_promotions/{freeGiftPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the free gift promotion [**GETFreeGiftPromotionIdMarket**](HasOneApi.md#GETFreeGiftPromotionIdMarket) | **Get** /free_gift_promotions/{freeGiftPromotionId}/market | Retrieve the market associated to the free gift promotion [**GETFreeGiftPromotionIdOrderAmountPromotionRule**](HasOneApi.md#GETFreeGiftPromotionIdOrderAmountPromotionRule) | **Get** /free_gift_promotions/{freeGiftPromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the free gift promotion [**GETFreeGiftPromotionIdSkuList**](HasOneApi.md#GETFreeGiftPromotionIdSkuList) | **Get** /free_gift_promotions/{freeGiftPromotionId}/sku_list | Retrieve the sku list associated to the free gift promotion [**GETFreeGiftPromotionIdSkuListPromotionRule**](HasOneApi.md#GETFreeGiftPromotionIdSkuListPromotionRule) | **Get** /free_gift_promotions/{freeGiftPromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the free gift promotion [**GETFreeShippingPromotionIdCouponCodesPromotionRule**](HasOneApi.md#GETFreeShippingPromotionIdCouponCodesPromotionRule) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the free shipping promotion +[**GETFreeShippingPromotionIdCustomPromotionRule**](HasOneApi.md#GETFreeShippingPromotionIdCustomPromotionRule) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the free shipping promotion [**GETFreeShippingPromotionIdMarket**](HasOneApi.md#GETFreeShippingPromotionIdMarket) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/market | Retrieve the market associated to the free shipping promotion [**GETFreeShippingPromotionIdOrderAmountPromotionRule**](HasOneApi.md#GETFreeShippingPromotionIdOrderAmountPromotionRule) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the free shipping promotion +[**GETFreeShippingPromotionIdSkuList**](HasOneApi.md#GETFreeShippingPromotionIdSkuList) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/sku_list | Retrieve the sku list associated to the free shipping promotion [**GETFreeShippingPromotionIdSkuListPromotionRule**](HasOneApi.md#GETFreeShippingPromotionIdSkuListPromotionRule) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the free shipping promotion [**GETGiftCardIdGiftCardRecipient**](HasOneApi.md#GETGiftCardIdGiftCardRecipient) | **Get** /gift_cards/{giftCardId}/gift_card_recipient | Retrieve the gift card recipient associated to the gift card [**GETGiftCardIdMarket**](HasOneApi.md#GETGiftCardIdMarket) | **Get** /gift_cards/{giftCardId}/market | Retrieve the market associated to the gift card @@ -71,7 +89,9 @@ Method | HTTP request | Description [**GETLineItemIdOrder**](HasOneApi.md#GETLineItemIdOrder) | **Get** /line_items/{lineItemId}/order | Retrieve the order associated to the line item [**GETLineItemOptionIdLineItem**](HasOneApi.md#GETLineItemOptionIdLineItem) | **Get** /line_item_options/{lineItemOptionId}/line_item | Retrieve the line item associated to the line item option [**GETLineItemOptionIdSkuOption**](HasOneApi.md#GETLineItemOptionIdSkuOption) | **Get** /line_item_options/{lineItemOptionId}/sku_option | Retrieve the sku option associated to the line item option +[**GETMarketIdBasePriceList**](HasOneApi.md#GETMarketIdBasePriceList) | **Get** /markets/{marketId}/base_price_list | Retrieve the base price list associated to the market [**GETMarketIdCustomerGroup**](HasOneApi.md#GETMarketIdCustomerGroup) | **Get** /markets/{marketId}/customer_group | Retrieve the customer group associated to the market +[**GETMarketIdGeocoder**](HasOneApi.md#GETMarketIdGeocoder) | **Get** /markets/{marketId}/geocoder | Retrieve the geocoder associated to the market [**GETMarketIdInventoryModel**](HasOneApi.md#GETMarketIdInventoryModel) | **Get** /markets/{marketId}/inventory_model | Retrieve the inventory model associated to the market [**GETMarketIdMerchant**](HasOneApi.md#GETMarketIdMerchant) | **Get** /markets/{marketId}/merchant | Retrieve the merchant associated to the market [**GETMarketIdPriceList**](HasOneApi.md#GETMarketIdPriceList) | **Get** /markets/{marketId}/price_list | Retrieve the price list associated to the market @@ -86,6 +106,7 @@ Method | HTTP request | Description [**GETOrderIdBillingAddress**](HasOneApi.md#GETOrderIdBillingAddress) | **Get** /orders/{orderId}/billing_address | Retrieve the billing address associated to the order [**GETOrderIdCustomer**](HasOneApi.md#GETOrderIdCustomer) | **Get** /orders/{orderId}/customer | Retrieve the customer associated to the order [**GETOrderIdMarket**](HasOneApi.md#GETOrderIdMarket) | **Get** /orders/{orderId}/market | Retrieve the market associated to the order +[**GETOrderIdOrderSubscription**](HasOneApi.md#GETOrderIdOrderSubscription) | **Get** /orders/{orderId}/order_subscription | Retrieve the order subscription associated to the order [**GETOrderIdPaymentMethod**](HasOneApi.md#GETOrderIdPaymentMethod) | **Get** /orders/{orderId}/payment_method | Retrieve the payment method associated to the order [**GETOrderIdShippingAddress**](HasOneApi.md#GETOrderIdShippingAddress) | **Get** /orders/{orderId}/shipping_address | Retrieve the shipping address associated to the order [**GETOrderSubscriptionIdCustomer**](HasOneApi.md#GETOrderSubscriptionIdCustomer) | **Get** /order_subscriptions/{orderSubscriptionId}/customer | Retrieve the customer associated to the order subscription @@ -94,7 +115,7 @@ Method | HTTP request | Description [**GETOrderSubscriptionIdSourceOrder**](HasOneApi.md#GETOrderSubscriptionIdSourceOrder) | **Get** /order_subscriptions/{orderSubscriptionId}/source_order | Retrieve the source order associated to the order subscription [**GETOrderSubscriptionIdSubscriptionModel**](HasOneApi.md#GETOrderSubscriptionIdSubscriptionModel) | **Get** /order_subscriptions/{orderSubscriptionId}/subscription_model | Retrieve the subscription model associated to the order subscription [**GETOrderSubscriptionItemIdOrderSubscription**](HasOneApi.md#GETOrderSubscriptionItemIdOrderSubscription) | **Get** /order_subscription_items/{orderSubscriptionItemId}/order_subscription | Retrieve the order subscription associated to the order subscription item -[**GETOrderValidationRuleIdMarket**](HasOneApi.md#GETOrderValidationRuleIdMarket) | **Get** /order_validation_rules/{orderValidationRuleId}/market | Retrieve the market associated to the order validation rule +[**GETOrderSubscriptionItemIdSourceLineItem**](HasOneApi.md#GETOrderSubscriptionItemIdSourceLineItem) | **Get** /order_subscription_items/{orderSubscriptionItemId}/source_line_item | Retrieve the source line item associated to the order subscription item [**GETPackageIdStockLocation**](HasOneApi.md#GETPackageIdStockLocation) | **Get** /packages/{packageId}/stock_location | Retrieve the stock location associated to the package [**GETParcelIdPackage**](HasOneApi.md#GETParcelIdPackage) | **Get** /parcels/{parcelId}/package | Retrieve the package associated to the parcel [**GETParcelIdShipment**](HasOneApi.md#GETParcelIdShipment) | **Get** /parcels/{parcelId}/shipment | Retrieve the shipment associated to the parcel @@ -102,37 +123,50 @@ Method | HTTP request | Description [**GETParcelLineItemIdStockLineItem**](HasOneApi.md#GETParcelLineItemIdStockLineItem) | **Get** /parcel_line_items/{parcelLineItemId}/stock_line_item | Retrieve the stock line item associated to the parcel line item [**GETPaymentMethodIdMarket**](HasOneApi.md#GETPaymentMethodIdMarket) | **Get** /payment_methods/{paymentMethodId}/market | Retrieve the market associated to the payment method [**GETPaymentMethodIdPaymentGateway**](HasOneApi.md#GETPaymentMethodIdPaymentGateway) | **Get** /payment_methods/{paymentMethodId}/payment_gateway | Retrieve the payment gateway associated to the payment method +[**GETPaymentOptionIdOrder**](HasOneApi.md#GETPaymentOptionIdOrder) | **Get** /payment_options/{paymentOptionId}/order | Retrieve the order associated to the payment option [**GETPaypalPaymentIdOrder**](HasOneApi.md#GETPaypalPaymentIdOrder) | **Get** /paypal_payments/{paypalPaymentId}/order | Retrieve the order associated to the paypal payment [**GETPaypalPaymentIdPaymentGateway**](HasOneApi.md#GETPaypalPaymentIdPaymentGateway) | **Get** /paypal_payments/{paypalPaymentId}/payment_gateway | Retrieve the payment gateway associated to the paypal payment [**GETPercentageDiscountPromotionIdCouponCodesPromotionRule**](HasOneApi.md#GETPercentageDiscountPromotionIdCouponCodesPromotionRule) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the percentage discount promotion +[**GETPercentageDiscountPromotionIdCustomPromotionRule**](HasOneApi.md#GETPercentageDiscountPromotionIdCustomPromotionRule) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the percentage discount promotion [**GETPercentageDiscountPromotionIdMarket**](HasOneApi.md#GETPercentageDiscountPromotionIdMarket) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/market | Retrieve the market associated to the percentage discount promotion [**GETPercentageDiscountPromotionIdOrderAmountPromotionRule**](HasOneApi.md#GETPercentageDiscountPromotionIdOrderAmountPromotionRule) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the percentage discount promotion [**GETPercentageDiscountPromotionIdSkuList**](HasOneApi.md#GETPercentageDiscountPromotionIdSkuList) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/sku_list | Retrieve the sku list associated to the percentage discount promotion [**GETPercentageDiscountPromotionIdSkuListPromotionRule**](HasOneApi.md#GETPercentageDiscountPromotionIdSkuListPromotionRule) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the percentage discount promotion [**GETPriceFrequencyTierIdPrice**](HasOneApi.md#GETPriceFrequencyTierIdPrice) | **Get** /price_frequency_tiers/{priceFrequencyTierId}/price | Retrieve the price associated to the price frequency tier +[**GETPriceIdJwtCustomer**](HasOneApi.md#GETPriceIdJwtCustomer) | **Get** /prices/{priceId}/jwt_customer | Retrieve the jwt customer associated to the price [**GETPriceIdPriceList**](HasOneApi.md#GETPriceIdPriceList) | **Get** /prices/{priceId}/price_list | Retrieve the price list associated to the price [**GETPriceIdSku**](HasOneApi.md#GETPriceIdSku) | **Get** /prices/{priceId}/sku | Retrieve the sku associated to the price +[**GETPriceListSchedulerIdMarket**](HasOneApi.md#GETPriceListSchedulerIdMarket) | **Get** /price_list_schedulers/{priceListSchedulerId}/market | Retrieve the market associated to the price list scheduler +[**GETPriceListSchedulerIdPriceList**](HasOneApi.md#GETPriceListSchedulerIdPriceList) | **Get** /price_list_schedulers/{priceListSchedulerId}/price_list | Retrieve the price list associated to the price list scheduler [**GETPriceTierIdPrice**](HasOneApi.md#GETPriceTierIdPrice) | **Get** /price_tiers/{priceTierId}/price | Retrieve the price associated to the price tier [**GETPriceVolumeTierIdPrice**](HasOneApi.md#GETPriceVolumeTierIdPrice) | **Get** /price_volume_tiers/{priceVolumeTierId}/price | Retrieve the price associated to the price volume tier [**GETPromotionIdCouponCodesPromotionRule**](HasOneApi.md#GETPromotionIdCouponCodesPromotionRule) | **Get** /promotions/{promotionId}/coupon_codes_promotion_rule | Retrieve the coupon codes promotion rule associated to the promotion +[**GETPromotionIdCustomPromotionRule**](HasOneApi.md#GETPromotionIdCustomPromotionRule) | **Get** /promotions/{promotionId}/custom_promotion_rule | Retrieve the custom promotion rule associated to the promotion [**GETPromotionIdMarket**](HasOneApi.md#GETPromotionIdMarket) | **Get** /promotions/{promotionId}/market | Retrieve the market associated to the promotion [**GETPromotionIdOrderAmountPromotionRule**](HasOneApi.md#GETPromotionIdOrderAmountPromotionRule) | **Get** /promotions/{promotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the promotion +[**GETPromotionIdSkuList**](HasOneApi.md#GETPromotionIdSkuList) | **Get** /promotions/{promotionId}/sku_list | Retrieve the sku list associated to the promotion [**GETPromotionIdSkuListPromotionRule**](HasOneApi.md#GETPromotionIdSkuListPromotionRule) | **Get** /promotions/{promotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the promotion [**GETRecurringOrderCopyIdOrderSubscription**](HasOneApi.md#GETRecurringOrderCopyIdOrderSubscription) | **Get** /recurring_order_copies/{recurringOrderCopyId}/order_subscription | Retrieve the order subscription associated to the recurring order copy [**GETRecurringOrderCopyIdSourceOrder**](HasOneApi.md#GETRecurringOrderCopyIdSourceOrder) | **Get** /recurring_order_copies/{recurringOrderCopyId}/source_order | Retrieve the source order associated to the recurring order copy [**GETRecurringOrderCopyIdTargetOrder**](HasOneApi.md#GETRecurringOrderCopyIdTargetOrder) | **Get** /recurring_order_copies/{recurringOrderCopyId}/target_order | Retrieve the target order associated to the recurring order copy [**GETRefundIdOrder**](HasOneApi.md#GETRefundIdOrder) | **Get** /refunds/{refundId}/order | Retrieve the order associated to the refund [**GETRefundIdReferenceCapture**](HasOneApi.md#GETRefundIdReferenceCapture) | **Get** /refunds/{refundId}/reference_capture | Retrieve the reference capture associated to the refund +[**GETRefundIdReturn**](HasOneApi.md#GETRefundIdReturn) | **Get** /refunds/{refundId}/return | Retrieve the return associated to the refund +[**GETReservedStockIdSku**](HasOneApi.md#GETReservedStockIdSku) | **Get** /reserved_stocks/{reservedStockId}/sku | Retrieve the sku associated to the reserved stock +[**GETReservedStockIdStockItem**](HasOneApi.md#GETReservedStockIdStockItem) | **Get** /reserved_stocks/{reservedStockId}/stock_item | Retrieve the stock item associated to the reserved stock [**GETReturnIdCustomer**](HasOneApi.md#GETReturnIdCustomer) | **Get** /returns/{returnId}/customer | Retrieve the customer associated to the return [**GETReturnIdDestinationAddress**](HasOneApi.md#GETReturnIdDestinationAddress) | **Get** /returns/{returnId}/destination_address | Retrieve the destination address associated to the return [**GETReturnIdOrder**](HasOneApi.md#GETReturnIdOrder) | **Get** /returns/{returnId}/order | Retrieve the order associated to the return [**GETReturnIdOriginAddress**](HasOneApi.md#GETReturnIdOriginAddress) | **Get** /returns/{returnId}/origin_address | Retrieve the origin address associated to the return +[**GETReturnIdReferenceCapture**](HasOneApi.md#GETReturnIdReferenceCapture) | **Get** /returns/{returnId}/reference_capture | Retrieve the reference capture associated to the return +[**GETReturnIdReferenceRefund**](HasOneApi.md#GETReturnIdReferenceRefund) | **Get** /returns/{returnId}/reference_refund | Retrieve the reference refund associated to the return [**GETReturnIdStockLocation**](HasOneApi.md#GETReturnIdStockLocation) | **Get** /returns/{returnId}/stock_location | Retrieve the stock location associated to the return [**GETReturnLineItemIdLineItem**](HasOneApi.md#GETReturnLineItemIdLineItem) | **Get** /return_line_items/{returnLineItemId}/line_item | Retrieve the line item associated to the return line item [**GETReturnLineItemIdReturn**](HasOneApi.md#GETReturnLineItemIdReturn) | **Get** /return_line_items/{returnLineItemId}/return | Retrieve the return associated to the return line item [**GETSatispayPaymentIdOrder**](HasOneApi.md#GETSatispayPaymentIdOrder) | **Get** /satispay_payments/{satispayPaymentId}/order | Retrieve the order associated to the satispay payment [**GETSatispayPaymentIdPaymentGateway**](HasOneApi.md#GETSatispayPaymentIdPaymentGateway) | **Get** /satispay_payments/{satispayPaymentId}/payment_gateway | Retrieve the payment gateway associated to the satispay payment [**GETShipmentIdDeliveryLeadTime**](HasOneApi.md#GETShipmentIdDeliveryLeadTime) | **Get** /shipments/{shipmentId}/delivery_lead_time | Retrieve the delivery lead time associated to the shipment +[**GETShipmentIdInventoryStockLocation**](HasOneApi.md#GETShipmentIdInventoryStockLocation) | **Get** /shipments/{shipmentId}/inventory_stock_location | Retrieve the inventory stock location associated to the shipment [**GETShipmentIdOrder**](HasOneApi.md#GETShipmentIdOrder) | **Get** /shipments/{shipmentId}/order | Retrieve the order associated to the shipment [**GETShipmentIdOriginAddress**](HasOneApi.md#GETShipmentIdOriginAddress) | **Get** /shipments/{shipmentId}/origin_address | Retrieve the origin address associated to the shipment [**GETShipmentIdShippingAddress**](HasOneApi.md#GETShipmentIdShippingAddress) | **Get** /shipments/{shipmentId}/shipping_address | Retrieve the shipping address associated to the shipment @@ -146,23 +180,35 @@ Method | HTTP request | Description [**GETShippingMethodIdStockLocation**](HasOneApi.md#GETShippingMethodIdStockLocation) | **Get** /shipping_methods/{shippingMethodId}/stock_location | Retrieve the stock location associated to the shipping method [**GETShippingMethodTierIdShippingMethod**](HasOneApi.md#GETShippingMethodTierIdShippingMethod) | **Get** /shipping_method_tiers/{shippingMethodTierId}/shipping_method | Retrieve the shipping method associated to the shipping method tier [**GETShippingWeightTierIdShippingMethod**](HasOneApi.md#GETShippingWeightTierIdShippingMethod) | **Get** /shipping_weight_tiers/{shippingWeightTierId}/shipping_method | Retrieve the shipping method associated to the shipping weight tier +[**GETSkuIdJwtCustomer**](HasOneApi.md#GETSkuIdJwtCustomer) | **Get** /skus/{skuId}/jwt_customer | Retrieve the jwt customer associated to the SKU [**GETSkuIdShippingCategory**](HasOneApi.md#GETSkuIdShippingCategory) | **Get** /skus/{skuId}/shipping_category | Retrieve the shipping category associated to the SKU [**GETSkuListIdCustomer**](HasOneApi.md#GETSkuListIdCustomer) | **Get** /sku_lists/{skuListId}/customer | Retrieve the customer associated to the SKU list [**GETSkuListItemIdSku**](HasOneApi.md#GETSkuListItemIdSku) | **Get** /sku_list_items/{skuListItemId}/sku | Retrieve the sku associated to the SKU list item [**GETSkuListItemIdSkuList**](HasOneApi.md#GETSkuListItemIdSkuList) | **Get** /sku_list_items/{skuListItemId}/sku_list | Retrieve the sku list associated to the SKU list item [**GETSkuListPromotionRuleIdSkuList**](HasOneApi.md#GETSkuListPromotionRuleIdSkuList) | **Get** /sku_list_promotion_rules/{skuListPromotionRuleId}/sku_list | Retrieve the sku list associated to the SKU list promotion rule [**GETSkuOptionIdMarket**](HasOneApi.md#GETSkuOptionIdMarket) | **Get** /sku_options/{skuOptionId}/market | Retrieve the market associated to the SKU option +[**GETStockItemIdReservedStock**](HasOneApi.md#GETStockItemIdReservedStock) | **Get** /stock_items/{stockItemId}/reserved_stock | Retrieve the reserved stock associated to the stock item [**GETStockItemIdSku**](HasOneApi.md#GETStockItemIdSku) | **Get** /stock_items/{stockItemId}/sku | Retrieve the sku associated to the stock item [**GETStockItemIdStockLocation**](HasOneApi.md#GETStockItemIdStockLocation) | **Get** /stock_items/{stockItemId}/stock_location | Retrieve the stock location associated to the stock item [**GETStockLineItemIdLineItem**](HasOneApi.md#GETStockLineItemIdLineItem) | **Get** /stock_line_items/{stockLineItemId}/line_item | Retrieve the line item associated to the stock line item [**GETStockLineItemIdShipment**](HasOneApi.md#GETStockLineItemIdShipment) | **Get** /stock_line_items/{stockLineItemId}/shipment | Retrieve the shipment associated to the stock line item +[**GETStockLineItemIdSku**](HasOneApi.md#GETStockLineItemIdSku) | **Get** /stock_line_items/{stockLineItemId}/sku | Retrieve the sku associated to the stock line item [**GETStockLineItemIdStockItem**](HasOneApi.md#GETStockLineItemIdStockItem) | **Get** /stock_line_items/{stockLineItemId}/stock_item | Retrieve the stock item associated to the stock line item +[**GETStockLineItemIdStockReservation**](HasOneApi.md#GETStockLineItemIdStockReservation) | **Get** /stock_line_items/{stockLineItemId}/stock_reservation | Retrieve the stock reservation associated to the stock line item [**GETStockLocationIdAddress**](HasOneApi.md#GETStockLocationIdAddress) | **Get** /stock_locations/{stockLocationId}/address | Retrieve the address associated to the stock location +[**GETStockReservationIdLineItem**](HasOneApi.md#GETStockReservationIdLineItem) | **Get** /stock_reservations/{stockReservationId}/line_item | Retrieve the line item associated to the stock reservation +[**GETStockReservationIdOrder**](HasOneApi.md#GETStockReservationIdOrder) | **Get** /stock_reservations/{stockReservationId}/order | Retrieve the order associated to the stock reservation +[**GETStockReservationIdReservedStock**](HasOneApi.md#GETStockReservationIdReservedStock) | **Get** /stock_reservations/{stockReservationId}/reserved_stock | Retrieve the reserved stock associated to the stock reservation +[**GETStockReservationIdSku**](HasOneApi.md#GETStockReservationIdSku) | **Get** /stock_reservations/{stockReservationId}/sku | Retrieve the sku associated to the stock reservation +[**GETStockReservationIdStockItem**](HasOneApi.md#GETStockReservationIdStockItem) | **Get** /stock_reservations/{stockReservationId}/stock_item | Retrieve the stock item associated to the stock reservation +[**GETStockReservationIdStockLineItem**](HasOneApi.md#GETStockReservationIdStockLineItem) | **Get** /stock_reservations/{stockReservationId}/stock_line_item | Retrieve the stock line item associated to the stock reservation +[**GETStockReservationIdStockTransfer**](HasOneApi.md#GETStockReservationIdStockTransfer) | **Get** /stock_reservations/{stockReservationId}/stock_transfer | Retrieve the stock transfer associated to the stock reservation [**GETStockTransferIdDestinationStockLocation**](HasOneApi.md#GETStockTransferIdDestinationStockLocation) | **Get** /stock_transfers/{stockTransferId}/destination_stock_location | Retrieve the destination stock location associated to the stock transfer [**GETStockTransferIdLineItem**](HasOneApi.md#GETStockTransferIdLineItem) | **Get** /stock_transfers/{stockTransferId}/line_item | Retrieve the line item associated to the stock transfer [**GETStockTransferIdOriginStockLocation**](HasOneApi.md#GETStockTransferIdOriginStockLocation) | **Get** /stock_transfers/{stockTransferId}/origin_stock_location | Retrieve the origin stock location associated to the stock transfer [**GETStockTransferIdShipment**](HasOneApi.md#GETStockTransferIdShipment) | **Get** /stock_transfers/{stockTransferId}/shipment | Retrieve the shipment associated to the stock transfer [**GETStockTransferIdSku**](HasOneApi.md#GETStockTransferIdSku) | **Get** /stock_transfers/{stockTransferId}/sku | Retrieve the sku associated to the stock transfer +[**GETStockTransferIdStockReservation**](HasOneApi.md#GETStockTransferIdStockReservation) | **Get** /stock_transfers/{stockTransferId}/stock_reservation | Retrieve the stock reservation associated to the stock transfer [**GETStripePaymentIdOrder**](HasOneApi.md#GETStripePaymentIdOrder) | **Get** /stripe_payments/{stripePaymentId}/order | Retrieve the order associated to the stripe payment [**GETStripePaymentIdPaymentGateway**](HasOneApi.md#GETStripePaymentIdPaymentGateway) | **Get** /stripe_payments/{stripePaymentId}/payment_gateway | Retrieve the payment gateway associated to the stripe payment [**GETTaxCategoryIdSku**](HasOneApi.md#GETTaxCategoryIdSku) | **Get** /tax_categories/{taxCategoryId}/sku | Retrieve the sku associated to the tax category @@ -922,11 +968,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCaptureIdOrder +## GETBuyXPayYPromotionIdCouponCodesPromotionRule -> GETCaptureIdOrder(ctx, captureId).Execute() +> GETBuyXPayYPromotionIdCouponCodesPromotionRule(ctx, buyXPayYPromotionId).Execute() -Retrieve the order associated to the capture +Retrieve the coupon codes promotion rule associated to the buy x pay y promotion @@ -943,13 +989,13 @@ import ( ) func main() { - captureId := TODO // interface{} | The resource's id + buyXPayYPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETCaptureIdOrder(context.Background(), captureId).Execute() + r, err := apiClient.HasOneApi.GETBuyXPayYPromotionIdCouponCodesPromotionRule(context.Background(), buyXPayYPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCaptureIdOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETBuyXPayYPromotionIdCouponCodesPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -961,11 +1007,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**captureId** | [**interface{}**](.md) | The resource's id | +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCaptureIdOrderRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdCouponCodesPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -990,11 +1036,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCaptureIdReferenceAuthorization +## GETBuyXPayYPromotionIdCustomPromotionRule -> GETCaptureIdReferenceAuthorization(ctx, captureId).Execute() +> GETBuyXPayYPromotionIdCustomPromotionRule(ctx, buyXPayYPromotionId).Execute() -Retrieve the reference authorization associated to the capture +Retrieve the custom promotion rule associated to the buy x pay y promotion @@ -1011,13 +1057,13 @@ import ( ) func main() { - captureId := TODO // interface{} | The resource's id + buyXPayYPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETCaptureIdReferenceAuthorization(context.Background(), captureId).Execute() + r, err := apiClient.HasOneApi.GETBuyXPayYPromotionIdCustomPromotionRule(context.Background(), buyXPayYPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCaptureIdReferenceAuthorization``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETBuyXPayYPromotionIdCustomPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1029,11 +1075,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**captureId** | [**interface{}**](.md) | The resource's id | +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCaptureIdReferenceAuthorizationRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdCustomPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -1058,11 +1104,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCarrierAccountIdMarket +## GETBuyXPayYPromotionIdMarket -> GETCarrierAccountIdMarket(ctx, carrierAccountId).Execute() +> GETBuyXPayYPromotionIdMarket(ctx, buyXPayYPromotionId).Execute() -Retrieve the market associated to the carrier account +Retrieve the market associated to the buy x pay y promotion @@ -1079,13 +1125,13 @@ import ( ) func main() { - carrierAccountId := TODO // interface{} | The resource's id + buyXPayYPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETCarrierAccountIdMarket(context.Background(), carrierAccountId).Execute() + r, err := apiClient.HasOneApi.GETBuyXPayYPromotionIdMarket(context.Background(), buyXPayYPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCarrierAccountIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETBuyXPayYPromotionIdMarket``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1097,11 +1143,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**carrierAccountId** | [**interface{}**](.md) | The resource's id | +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCarrierAccountIdMarketRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdMarketRequest struct via the builder pattern Name | Type | Description | Notes @@ -1126,11 +1172,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCheckoutComPaymentIdOrder +## GETBuyXPayYPromotionIdOrderAmountPromotionRule -> GETCheckoutComPaymentIdOrder(ctx, checkoutComPaymentId).Execute() +> GETBuyXPayYPromotionIdOrderAmountPromotionRule(ctx, buyXPayYPromotionId).Execute() -Retrieve the order associated to the checkout.com payment +Retrieve the order amount promotion rule associated to the buy x pay y promotion @@ -1147,13 +1193,13 @@ import ( ) func main() { - checkoutComPaymentId := TODO // interface{} | The resource's id + buyXPayYPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETCheckoutComPaymentIdOrder(context.Background(), checkoutComPaymentId).Execute() + r, err := apiClient.HasOneApi.GETBuyXPayYPromotionIdOrderAmountPromotionRule(context.Background(), buyXPayYPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCheckoutComPaymentIdOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETBuyXPayYPromotionIdOrderAmountPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1165,11 +1211,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**checkoutComPaymentId** | [**interface{}**](.md) | The resource's id | +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCheckoutComPaymentIdOrderRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdOrderAmountPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -1194,11 +1240,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCheckoutComPaymentIdPaymentGateway +## GETBuyXPayYPromotionIdSkuList -> GETCheckoutComPaymentIdPaymentGateway(ctx, checkoutComPaymentId).Execute() +> GETBuyXPayYPromotionIdSkuList(ctx, buyXPayYPromotionId).Execute() -Retrieve the payment gateway associated to the checkout.com payment +Retrieve the sku list associated to the buy x pay y promotion @@ -1215,13 +1261,13 @@ import ( ) func main() { - checkoutComPaymentId := TODO // interface{} | The resource's id + buyXPayYPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETCheckoutComPaymentIdPaymentGateway(context.Background(), checkoutComPaymentId).Execute() + r, err := apiClient.HasOneApi.GETBuyXPayYPromotionIdSkuList(context.Background(), buyXPayYPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCheckoutComPaymentIdPaymentGateway``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETBuyXPayYPromotionIdSkuList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1233,11 +1279,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**checkoutComPaymentId** | [**interface{}**](.md) | The resource's id | +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCheckoutComPaymentIdPaymentGatewayRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdSkuListRequest struct via the builder pattern Name | Type | Description | Notes @@ -1262,11 +1308,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCouponIdPromotionRule +## GETBuyXPayYPromotionIdSkuListPromotionRule -> GETCouponIdPromotionRule(ctx, couponId).Execute() +> GETBuyXPayYPromotionIdSkuListPromotionRule(ctx, buyXPayYPromotionId).Execute() -Retrieve the promotion rule associated to the coupon +Retrieve the sku list promotion rule associated to the buy x pay y promotion @@ -1283,13 +1329,13 @@ import ( ) func main() { - couponId := TODO // interface{} | The resource's id + buyXPayYPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETCouponIdPromotionRule(context.Background(), couponId).Execute() + r, err := apiClient.HasOneApi.GETBuyXPayYPromotionIdSkuListPromotionRule(context.Background(), buyXPayYPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCouponIdPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETBuyXPayYPromotionIdSkuListPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1301,11 +1347,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**couponId** | [**interface{}**](.md) | The resource's id | +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCouponIdPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdSkuListPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -1330,11 +1376,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCouponRecipientIdCustomer +## GETCaptureIdOrder -> GETCouponRecipientIdCustomer(ctx, couponRecipientId).Execute() +> GETCaptureIdOrder(ctx, captureId).Execute() -Retrieve the customer associated to the coupon recipient +Retrieve the order associated to the capture @@ -1351,13 +1397,13 @@ import ( ) func main() { - couponRecipientId := TODO // interface{} | The resource's id + captureId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETCouponRecipientIdCustomer(context.Background(), couponRecipientId).Execute() + r, err := apiClient.HasOneApi.GETCaptureIdOrder(context.Background(), captureId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCouponRecipientIdCustomer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCaptureIdOrder``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1369,11 +1415,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**couponRecipientId** | [**interface{}**](.md) | The resource's id | +**captureId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCouponRecipientIdCustomerRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCaptureIdOrderRequest struct via the builder pattern Name | Type | Description | Notes @@ -1398,11 +1444,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerAddressIdAddress +## GETCaptureIdReferenceAuthorization -> GETCustomerAddressIdAddress(ctx, customerAddressId).Execute() +> GETCaptureIdReferenceAuthorization(ctx, captureId).Execute() -Retrieve the address associated to the customer address +Retrieve the reference authorization associated to the capture @@ -1419,13 +1465,13 @@ import ( ) func main() { - customerAddressId := TODO // interface{} | The resource's id + captureId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETCustomerAddressIdAddress(context.Background(), customerAddressId).Execute() + r, err := apiClient.HasOneApi.GETCaptureIdReferenceAuthorization(context.Background(), captureId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCustomerAddressIdAddress``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCaptureIdReferenceAuthorization``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1437,11 +1483,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerAddressId** | [**interface{}**](.md) | The resource's id | +**captureId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerAddressIdAddressRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCaptureIdReferenceAuthorizationRequest struct via the builder pattern Name | Type | Description | Notes @@ -1466,11 +1512,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerAddressIdCustomer +## GETCaptureIdReturn -> GETCustomerAddressIdCustomer(ctx, customerAddressId).Execute() +> GETCaptureIdReturn(ctx, captureId).Execute() -Retrieve the customer associated to the customer address +Retrieve the return associated to the capture @@ -1487,13 +1533,13 @@ import ( ) func main() { - customerAddressId := TODO // interface{} | The resource's id + captureId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETCustomerAddressIdCustomer(context.Background(), customerAddressId).Execute() + r, err := apiClient.HasOneApi.GETCaptureIdReturn(context.Background(), captureId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCustomerAddressIdCustomer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCaptureIdReturn``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1505,11 +1551,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerAddressId** | [**interface{}**](.md) | The resource's id | +**captureId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerAddressIdCustomerRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCaptureIdReturnRequest struct via the builder pattern Name | Type | Description | Notes @@ -1534,11 +1580,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerIdCustomerGroup +## GETCarrierAccountIdMarket -> GETCustomerIdCustomerGroup(ctx, customerId).Execute() +> GETCarrierAccountIdMarket(ctx, carrierAccountId).Execute() -Retrieve the customer group associated to the customer +Retrieve the market associated to the carrier account @@ -1555,13 +1601,13 @@ import ( ) func main() { - customerId := TODO // interface{} | The resource's id + carrierAccountId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETCustomerIdCustomerGroup(context.Background(), customerId).Execute() + r, err := apiClient.HasOneApi.GETCarrierAccountIdMarket(context.Background(), carrierAccountId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCustomerIdCustomerGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCarrierAccountIdMarket``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1573,11 +1619,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerId** | [**interface{}**](.md) | The resource's id | +**carrierAccountId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerIdCustomerGroupRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCarrierAccountIdMarketRequest struct via the builder pattern Name | Type | Description | Notes @@ -1602,11 +1648,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerPasswordResetIdCustomer +## GETCheckoutComPaymentIdOrder -> GETCustomerPasswordResetIdCustomer(ctx, customerPasswordResetId).Execute() +> GETCheckoutComPaymentIdOrder(ctx, checkoutComPaymentId).Execute() -Retrieve the customer associated to the customer password reset +Retrieve the order associated to the checkout.com payment @@ -1623,13 +1669,13 @@ import ( ) func main() { - customerPasswordResetId := TODO // interface{} | The resource's id + checkoutComPaymentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETCustomerPasswordResetIdCustomer(context.Background(), customerPasswordResetId).Execute() + r, err := apiClient.HasOneApi.GETCheckoutComPaymentIdOrder(context.Background(), checkoutComPaymentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCustomerPasswordResetIdCustomer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCheckoutComPaymentIdOrder``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1641,11 +1687,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerPasswordResetId** | [**interface{}**](.md) | The resource's id | +**checkoutComPaymentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerPasswordResetIdCustomerRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCheckoutComPaymentIdOrderRequest struct via the builder pattern Name | Type | Description | Notes @@ -1670,11 +1716,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerPaymentSourceIdCustomer +## GETCheckoutComPaymentIdPaymentGateway -> GETCustomerPaymentSourceIdCustomer(ctx, customerPaymentSourceId).Execute() +> GETCheckoutComPaymentIdPaymentGateway(ctx, checkoutComPaymentId).Execute() -Retrieve the customer associated to the customer payment source +Retrieve the payment gateway associated to the checkout.com payment @@ -1691,13 +1737,13 @@ import ( ) func main() { - customerPaymentSourceId := TODO // interface{} | The resource's id + checkoutComPaymentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETCustomerPaymentSourceIdCustomer(context.Background(), customerPaymentSourceId).Execute() + r, err := apiClient.HasOneApi.GETCheckoutComPaymentIdPaymentGateway(context.Background(), checkoutComPaymentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCustomerPaymentSourceIdCustomer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCheckoutComPaymentIdPaymentGateway``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1709,11 +1755,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerPaymentSourceId** | [**interface{}**](.md) | The resource's id | +**checkoutComPaymentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerPaymentSourceIdCustomerRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCheckoutComPaymentIdPaymentGatewayRequest struct via the builder pattern Name | Type | Description | Notes @@ -1738,11 +1784,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETCustomerSubscriptionIdCustomer +## GETCouponIdCouponRecipient -> GETCustomerSubscriptionIdCustomer(ctx, customerSubscriptionId).Execute() +> GETCouponIdCouponRecipient(ctx, couponId).Execute() -Retrieve the customer associated to the customer subscription +Retrieve the coupon recipient associated to the coupon @@ -1759,13 +1805,13 @@ import ( ) func main() { - customerSubscriptionId := TODO // interface{} | The resource's id + couponId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETCustomerSubscriptionIdCustomer(context.Background(), customerSubscriptionId).Execute() + r, err := apiClient.HasOneApi.GETCouponIdCouponRecipient(context.Background(), couponId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCustomerSubscriptionIdCustomer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCouponIdCouponRecipient``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1777,11 +1823,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**customerSubscriptionId** | [**interface{}**](.md) | The resource's id | +**couponId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETCustomerSubscriptionIdCustomerRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCouponIdCouponRecipientRequest struct via the builder pattern Name | Type | Description | Notes @@ -1806,11 +1852,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETDeliveryLeadTimeIdShippingMethod +## GETCouponIdPromotionRule -> GETDeliveryLeadTimeIdShippingMethod(ctx, deliveryLeadTimeId).Execute() +> GETCouponIdPromotionRule(ctx, couponId).Execute() -Retrieve the shipping method associated to the delivery lead time +Retrieve the promotion rule associated to the coupon @@ -1827,13 +1873,13 @@ import ( ) func main() { - deliveryLeadTimeId := TODO // interface{} | The resource's id + couponId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETDeliveryLeadTimeIdShippingMethod(context.Background(), deliveryLeadTimeId).Execute() + r, err := apiClient.HasOneApi.GETCouponIdPromotionRule(context.Background(), couponId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETDeliveryLeadTimeIdShippingMethod``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCouponIdPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1845,11 +1891,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**deliveryLeadTimeId** | [**interface{}**](.md) | The resource's id | +**couponId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETDeliveryLeadTimeIdShippingMethodRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCouponIdPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -1874,11 +1920,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETDeliveryLeadTimeIdStockLocation +## GETCouponRecipientIdCustomer -> GETDeliveryLeadTimeIdStockLocation(ctx, deliveryLeadTimeId).Execute() +> GETCouponRecipientIdCustomer(ctx, couponRecipientId).Execute() -Retrieve the stock location associated to the delivery lead time +Retrieve the customer associated to the coupon recipient @@ -1895,13 +1941,13 @@ import ( ) func main() { - deliveryLeadTimeId := TODO // interface{} | The resource's id + couponRecipientId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETDeliveryLeadTimeIdStockLocation(context.Background(), deliveryLeadTimeId).Execute() + r, err := apiClient.HasOneApi.GETCouponRecipientIdCustomer(context.Background(), couponRecipientId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETDeliveryLeadTimeIdStockLocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCouponRecipientIdCustomer``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1913,11 +1959,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**deliveryLeadTimeId** | [**interface{}**](.md) | The resource's id | +**couponRecipientId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETDeliveryLeadTimeIdStockLocationRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCouponRecipientIdCustomerRequest struct via the builder pattern Name | Type | Description | Notes @@ -1942,11 +1988,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETEventCallbackIdWebhook +## GETCustomerAddressIdAddress -> GETEventCallbackIdWebhook(ctx, eventCallbackId).Execute() +> GETCustomerAddressIdAddress(ctx, customerAddressId).Execute() -Retrieve the webhook associated to the event callback +Retrieve the address associated to the customer address @@ -1963,13 +2009,13 @@ import ( ) func main() { - eventCallbackId := TODO // interface{} | The resource's id + customerAddressId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETEventCallbackIdWebhook(context.Background(), eventCallbackId).Execute() + r, err := apiClient.HasOneApi.GETCustomerAddressIdAddress(context.Background(), customerAddressId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETEventCallbackIdWebhook``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCustomerAddressIdAddress``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1981,11 +2027,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**eventCallbackId** | [**interface{}**](.md) | The resource's id | +**customerAddressId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETEventCallbackIdWebhookRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCustomerAddressIdAddressRequest struct via the builder pattern Name | Type | Description | Notes @@ -2010,11 +2056,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETExternalPaymentIdOrder +## GETCustomerAddressIdCustomer -> GETExternalPaymentIdOrder(ctx, externalPaymentId).Execute() +> GETCustomerAddressIdCustomer(ctx, customerAddressId).Execute() -Retrieve the order associated to the external payment +Retrieve the customer associated to the customer address @@ -2031,13 +2077,13 @@ import ( ) func main() { - externalPaymentId := TODO // interface{} | The resource's id + customerAddressId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETExternalPaymentIdOrder(context.Background(), externalPaymentId).Execute() + r, err := apiClient.HasOneApi.GETCustomerAddressIdCustomer(context.Background(), customerAddressId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETExternalPaymentIdOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCustomerAddressIdCustomer``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2049,11 +2095,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**externalPaymentId** | [**interface{}**](.md) | The resource's id | +**customerAddressId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETExternalPaymentIdOrderRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCustomerAddressIdCustomerRequest struct via the builder pattern Name | Type | Description | Notes @@ -2078,11 +2124,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETExternalPaymentIdPaymentGateway +## GETCustomerIdCustomerGroup -> GETExternalPaymentIdPaymentGateway(ctx, externalPaymentId).Execute() +> GETCustomerIdCustomerGroup(ctx, customerId).Execute() -Retrieve the payment gateway associated to the external payment +Retrieve the customer group associated to the customer @@ -2099,13 +2145,13 @@ import ( ) func main() { - externalPaymentId := TODO // interface{} | The resource's id + customerId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETExternalPaymentIdPaymentGateway(context.Background(), externalPaymentId).Execute() + r, err := apiClient.HasOneApi.GETCustomerIdCustomerGroup(context.Background(), customerId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETExternalPaymentIdPaymentGateway``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCustomerIdCustomerGroup``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2117,11 +2163,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**externalPaymentId** | [**interface{}**](.md) | The resource's id | +**customerId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETExternalPaymentIdPaymentGatewayRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCustomerIdCustomerGroupRequest struct via the builder pattern Name | Type | Description | Notes @@ -2146,11 +2192,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETExternalPaymentIdWallet +## GETCustomerPasswordResetIdCustomer -> GETExternalPaymentIdWallet(ctx, externalPaymentId).Execute() +> GETCustomerPasswordResetIdCustomer(ctx, customerPasswordResetId).Execute() -Retrieve the wallet associated to the external payment +Retrieve the customer associated to the customer password reset @@ -2167,13 +2213,13 @@ import ( ) func main() { - externalPaymentId := TODO // interface{} | The resource's id + customerPasswordResetId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETExternalPaymentIdWallet(context.Background(), externalPaymentId).Execute() + r, err := apiClient.HasOneApi.GETCustomerPasswordResetIdCustomer(context.Background(), customerPasswordResetId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETExternalPaymentIdWallet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCustomerPasswordResetIdCustomer``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2185,11 +2231,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**externalPaymentId** | [**interface{}**](.md) | The resource's id | +**customerPasswordResetId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETExternalPaymentIdWalletRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCustomerPasswordResetIdCustomerRequest struct via the builder pattern Name | Type | Description | Notes @@ -2214,11 +2260,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETExternalPromotionIdCouponCodesPromotionRule +## GETCustomerPaymentSourceIdCustomer -> GETExternalPromotionIdCouponCodesPromotionRule(ctx, externalPromotionId).Execute() +> GETCustomerPaymentSourceIdCustomer(ctx, customerPaymentSourceId).Execute() -Retrieve the coupon codes promotion rule associated to the external promotion +Retrieve the customer associated to the customer payment source @@ -2235,13 +2281,13 @@ import ( ) func main() { - externalPromotionId := TODO // interface{} | The resource's id + customerPaymentSourceId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETExternalPromotionIdCouponCodesPromotionRule(context.Background(), externalPromotionId).Execute() + r, err := apiClient.HasOneApi.GETCustomerPaymentSourceIdCustomer(context.Background(), customerPaymentSourceId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETExternalPromotionIdCouponCodesPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCustomerPaymentSourceIdCustomer``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2253,11 +2299,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**externalPromotionId** | [**interface{}**](.md) | The resource's id | +**customerPaymentSourceId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETExternalPromotionIdCouponCodesPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCustomerPaymentSourceIdCustomerRequest struct via the builder pattern Name | Type | Description | Notes @@ -2282,11 +2328,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETExternalPromotionIdMarket +## GETCustomerPaymentSourceIdPaymentMethod -> GETExternalPromotionIdMarket(ctx, externalPromotionId).Execute() +> GETCustomerPaymentSourceIdPaymentMethod(ctx, customerPaymentSourceId).Execute() -Retrieve the market associated to the external promotion +Retrieve the payment method associated to the customer payment source @@ -2303,13 +2349,13 @@ import ( ) func main() { - externalPromotionId := TODO // interface{} | The resource's id + customerPaymentSourceId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETExternalPromotionIdMarket(context.Background(), externalPromotionId).Execute() + r, err := apiClient.HasOneApi.GETCustomerPaymentSourceIdPaymentMethod(context.Background(), customerPaymentSourceId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETExternalPromotionIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCustomerPaymentSourceIdPaymentMethod``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2321,11 +2367,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**externalPromotionId** | [**interface{}**](.md) | The resource's id | +**customerPaymentSourceId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETExternalPromotionIdMarketRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCustomerPaymentSourceIdPaymentMethodRequest struct via the builder pattern Name | Type | Description | Notes @@ -2350,11 +2396,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETExternalPromotionIdOrderAmountPromotionRule +## GETCustomerSubscriptionIdCustomer -> GETExternalPromotionIdOrderAmountPromotionRule(ctx, externalPromotionId).Execute() +> GETCustomerSubscriptionIdCustomer(ctx, customerSubscriptionId).Execute() -Retrieve the order amount promotion rule associated to the external promotion +Retrieve the customer associated to the customer subscription @@ -2371,13 +2417,13 @@ import ( ) func main() { - externalPromotionId := TODO // interface{} | The resource's id + customerSubscriptionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETExternalPromotionIdOrderAmountPromotionRule(context.Background(), externalPromotionId).Execute() + r, err := apiClient.HasOneApi.GETCustomerSubscriptionIdCustomer(context.Background(), customerSubscriptionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETExternalPromotionIdOrderAmountPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETCustomerSubscriptionIdCustomer``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2389,11 +2435,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**externalPromotionId** | [**interface{}**](.md) | The resource's id | +**customerSubscriptionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETExternalPromotionIdOrderAmountPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETCustomerSubscriptionIdCustomerRequest struct via the builder pattern Name | Type | Description | Notes @@ -2418,11 +2464,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETExternalPromotionIdSkuListPromotionRule +## GETDeliveryLeadTimeIdShippingMethod -> GETExternalPromotionIdSkuListPromotionRule(ctx, externalPromotionId).Execute() +> GETDeliveryLeadTimeIdShippingMethod(ctx, deliveryLeadTimeId).Execute() -Retrieve the sku list promotion rule associated to the external promotion +Retrieve the shipping method associated to the delivery lead time @@ -2439,13 +2485,13 @@ import ( ) func main() { - externalPromotionId := TODO // interface{} | The resource's id + deliveryLeadTimeId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETExternalPromotionIdSkuListPromotionRule(context.Background(), externalPromotionId).Execute() + r, err := apiClient.HasOneApi.GETDeliveryLeadTimeIdShippingMethod(context.Background(), deliveryLeadTimeId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETExternalPromotionIdSkuListPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETDeliveryLeadTimeIdShippingMethod``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2457,11 +2503,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**externalPromotionId** | [**interface{}**](.md) | The resource's id | +**deliveryLeadTimeId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETExternalPromotionIdSkuListPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETDeliveryLeadTimeIdShippingMethodRequest struct via the builder pattern Name | Type | Description | Notes @@ -2486,11 +2532,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFixedAmountPromotionIdCouponCodesPromotionRule +## GETDeliveryLeadTimeIdStockLocation -> GETFixedAmountPromotionIdCouponCodesPromotionRule(ctx, fixedAmountPromotionId).Execute() +> GETDeliveryLeadTimeIdStockLocation(ctx, deliveryLeadTimeId).Execute() -Retrieve the coupon codes promotion rule associated to the fixed amount promotion +Retrieve the stock location associated to the delivery lead time @@ -2507,13 +2553,13 @@ import ( ) func main() { - fixedAmountPromotionId := TODO // interface{} | The resource's id + deliveryLeadTimeId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETFixedAmountPromotionIdCouponCodesPromotionRule(context.Background(), fixedAmountPromotionId).Execute() + r, err := apiClient.HasOneApi.GETDeliveryLeadTimeIdStockLocation(context.Background(), deliveryLeadTimeId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedAmountPromotionIdCouponCodesPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETDeliveryLeadTimeIdStockLocation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2525,11 +2571,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | +**deliveryLeadTimeId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdCouponCodesPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETDeliveryLeadTimeIdStockLocationRequest struct via the builder pattern Name | Type | Description | Notes @@ -2554,11 +2600,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFixedAmountPromotionIdMarket +## GETEventCallbackIdWebhook -> GETFixedAmountPromotionIdMarket(ctx, fixedAmountPromotionId).Execute() +> GETEventCallbackIdWebhook(ctx, eventCallbackId).Execute() -Retrieve the market associated to the fixed amount promotion +Retrieve the webhook associated to the event callback @@ -2575,13 +2621,13 @@ import ( ) func main() { - fixedAmountPromotionId := TODO // interface{} | The resource's id + eventCallbackId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETFixedAmountPromotionIdMarket(context.Background(), fixedAmountPromotionId).Execute() + r, err := apiClient.HasOneApi.GETEventCallbackIdWebhook(context.Background(), eventCallbackId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedAmountPromotionIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETEventCallbackIdWebhook``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2593,11 +2639,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | +**eventCallbackId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdMarketRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETEventCallbackIdWebhookRequest struct via the builder pattern Name | Type | Description | Notes @@ -2622,11 +2668,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFixedAmountPromotionIdOrderAmountPromotionRule +## GETExternalPaymentIdOrder -> GETFixedAmountPromotionIdOrderAmountPromotionRule(ctx, fixedAmountPromotionId).Execute() +> GETExternalPaymentIdOrder(ctx, externalPaymentId).Execute() -Retrieve the order amount promotion rule associated to the fixed amount promotion +Retrieve the order associated to the external payment @@ -2643,13 +2689,13 @@ import ( ) func main() { - fixedAmountPromotionId := TODO // interface{} | The resource's id + externalPaymentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETFixedAmountPromotionIdOrderAmountPromotionRule(context.Background(), fixedAmountPromotionId).Execute() + r, err := apiClient.HasOneApi.GETExternalPaymentIdOrder(context.Background(), externalPaymentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedAmountPromotionIdOrderAmountPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETExternalPaymentIdOrder``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2661,11 +2707,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | +**externalPaymentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdOrderAmountPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETExternalPaymentIdOrderRequest struct via the builder pattern Name | Type | Description | Notes @@ -2690,11 +2736,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFixedAmountPromotionIdSkuListPromotionRule +## GETExternalPaymentIdPaymentGateway -> GETFixedAmountPromotionIdSkuListPromotionRule(ctx, fixedAmountPromotionId).Execute() +> GETExternalPaymentIdPaymentGateway(ctx, externalPaymentId).Execute() -Retrieve the sku list promotion rule associated to the fixed amount promotion +Retrieve the payment gateway associated to the external payment @@ -2711,13 +2757,13 @@ import ( ) func main() { - fixedAmountPromotionId := TODO // interface{} | The resource's id + externalPaymentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETFixedAmountPromotionIdSkuListPromotionRule(context.Background(), fixedAmountPromotionId).Execute() + r, err := apiClient.HasOneApi.GETExternalPaymentIdPaymentGateway(context.Background(), externalPaymentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedAmountPromotionIdSkuListPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETExternalPaymentIdPaymentGateway``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2729,11 +2775,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | +**externalPaymentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdSkuListPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETExternalPaymentIdPaymentGatewayRequest struct via the builder pattern Name | Type | Description | Notes @@ -2758,11 +2804,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFixedPricePromotionIdCouponCodesPromotionRule +## GETExternalPaymentIdWallet -> GETFixedPricePromotionIdCouponCodesPromotionRule(ctx, fixedPricePromotionId).Execute() +> GETExternalPaymentIdWallet(ctx, externalPaymentId).Execute() -Retrieve the coupon codes promotion rule associated to the fixed price promotion +Retrieve the wallet associated to the external payment @@ -2779,13 +2825,13 @@ import ( ) func main() { - fixedPricePromotionId := TODO // interface{} | The resource's id + externalPaymentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETFixedPricePromotionIdCouponCodesPromotionRule(context.Background(), fixedPricePromotionId).Execute() + r, err := apiClient.HasOneApi.GETExternalPaymentIdWallet(context.Background(), externalPaymentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedPricePromotionIdCouponCodesPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETExternalPaymentIdWallet``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2797,11 +2843,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | +**externalPaymentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdCouponCodesPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETExternalPaymentIdWalletRequest struct via the builder pattern Name | Type | Description | Notes @@ -2826,11 +2872,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFixedPricePromotionIdMarket +## GETExternalPromotionIdCouponCodesPromotionRule -> GETFixedPricePromotionIdMarket(ctx, fixedPricePromotionId).Execute() +> GETExternalPromotionIdCouponCodesPromotionRule(ctx, externalPromotionId).Execute() -Retrieve the market associated to the fixed price promotion +Retrieve the coupon codes promotion rule associated to the external promotion @@ -2847,13 +2893,13 @@ import ( ) func main() { - fixedPricePromotionId := TODO // interface{} | The resource's id + externalPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETFixedPricePromotionIdMarket(context.Background(), fixedPricePromotionId).Execute() + r, err := apiClient.HasOneApi.GETExternalPromotionIdCouponCodesPromotionRule(context.Background(), externalPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedPricePromotionIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETExternalPromotionIdCouponCodesPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2865,11 +2911,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | +**externalPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdMarketRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETExternalPromotionIdCouponCodesPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -2894,11 +2940,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFixedPricePromotionIdOrderAmountPromotionRule +## GETExternalPromotionIdCustomPromotionRule -> GETFixedPricePromotionIdOrderAmountPromotionRule(ctx, fixedPricePromotionId).Execute() +> GETExternalPromotionIdCustomPromotionRule(ctx, externalPromotionId).Execute() -Retrieve the order amount promotion rule associated to the fixed price promotion +Retrieve the custom promotion rule associated to the external promotion @@ -2915,13 +2961,13 @@ import ( ) func main() { - fixedPricePromotionId := TODO // interface{} | The resource's id + externalPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETFixedPricePromotionIdOrderAmountPromotionRule(context.Background(), fixedPricePromotionId).Execute() + r, err := apiClient.HasOneApi.GETExternalPromotionIdCustomPromotionRule(context.Background(), externalPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedPricePromotionIdOrderAmountPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETExternalPromotionIdCustomPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2933,11 +2979,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | +**externalPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdOrderAmountPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETExternalPromotionIdCustomPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -2962,11 +3008,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFixedPricePromotionIdSkuList +## GETExternalPromotionIdMarket -> GETFixedPricePromotionIdSkuList(ctx, fixedPricePromotionId).Execute() +> GETExternalPromotionIdMarket(ctx, externalPromotionId).Execute() -Retrieve the sku list associated to the fixed price promotion +Retrieve the market associated to the external promotion @@ -2983,13 +3029,13 @@ import ( ) func main() { - fixedPricePromotionId := TODO // interface{} | The resource's id + externalPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETFixedPricePromotionIdSkuList(context.Background(), fixedPricePromotionId).Execute() + r, err := apiClient.HasOneApi.GETExternalPromotionIdMarket(context.Background(), externalPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedPricePromotionIdSkuList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETExternalPromotionIdMarket``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3001,11 +3047,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | +**externalPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdSkuListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETExternalPromotionIdMarketRequest struct via the builder pattern Name | Type | Description | Notes @@ -3030,11 +3076,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFixedPricePromotionIdSkuListPromotionRule +## GETExternalPromotionIdOrderAmountPromotionRule -> GETFixedPricePromotionIdSkuListPromotionRule(ctx, fixedPricePromotionId).Execute() +> GETExternalPromotionIdOrderAmountPromotionRule(ctx, externalPromotionId).Execute() -Retrieve the sku list promotion rule associated to the fixed price promotion +Retrieve the order amount promotion rule associated to the external promotion @@ -3051,13 +3097,13 @@ import ( ) func main() { - fixedPricePromotionId := TODO // interface{} | The resource's id + externalPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETFixedPricePromotionIdSkuListPromotionRule(context.Background(), fixedPricePromotionId).Execute() + r, err := apiClient.HasOneApi.GETExternalPromotionIdOrderAmountPromotionRule(context.Background(), externalPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedPricePromotionIdSkuListPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETExternalPromotionIdOrderAmountPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3069,11 +3115,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | +**externalPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdSkuListPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETExternalPromotionIdOrderAmountPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -3098,11 +3144,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFreeGiftPromotionIdCouponCodesPromotionRule +## GETExternalPromotionIdSkuList -> GETFreeGiftPromotionIdCouponCodesPromotionRule(ctx, freeGiftPromotionId).Execute() +> GETExternalPromotionIdSkuList(ctx, externalPromotionId).Execute() -Retrieve the coupon codes promotion rule associated to the free gift promotion +Retrieve the sku list associated to the external promotion @@ -3119,13 +3165,13 @@ import ( ) func main() { - freeGiftPromotionId := TODO // interface{} | The resource's id + externalPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETFreeGiftPromotionIdCouponCodesPromotionRule(context.Background(), freeGiftPromotionId).Execute() + r, err := apiClient.HasOneApi.GETExternalPromotionIdSkuList(context.Background(), externalPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeGiftPromotionIdCouponCodesPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETExternalPromotionIdSkuList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3137,11 +3183,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | +**externalPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdCouponCodesPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETExternalPromotionIdSkuListRequest struct via the builder pattern Name | Type | Description | Notes @@ -3166,11 +3212,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFreeGiftPromotionIdMarket +## GETExternalPromotionIdSkuListPromotionRule -> GETFreeGiftPromotionIdMarket(ctx, freeGiftPromotionId).Execute() +> GETExternalPromotionIdSkuListPromotionRule(ctx, externalPromotionId).Execute() -Retrieve the market associated to the free gift promotion +Retrieve the sku list promotion rule associated to the external promotion @@ -3187,13 +3233,13 @@ import ( ) func main() { - freeGiftPromotionId := TODO // interface{} | The resource's id + externalPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETFreeGiftPromotionIdMarket(context.Background(), freeGiftPromotionId).Execute() + r, err := apiClient.HasOneApi.GETExternalPromotionIdSkuListPromotionRule(context.Background(), externalPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeGiftPromotionIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETExternalPromotionIdSkuListPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3205,11 +3251,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | +**externalPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdMarketRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETExternalPromotionIdSkuListPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -3234,11 +3280,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFreeGiftPromotionIdOrderAmountPromotionRule +## GETFixedAmountPromotionIdCouponCodesPromotionRule -> GETFreeGiftPromotionIdOrderAmountPromotionRule(ctx, freeGiftPromotionId).Execute() +> GETFixedAmountPromotionIdCouponCodesPromotionRule(ctx, fixedAmountPromotionId).Execute() -Retrieve the order amount promotion rule associated to the free gift promotion +Retrieve the coupon codes promotion rule associated to the fixed amount promotion @@ -3255,13 +3301,13 @@ import ( ) func main() { - freeGiftPromotionId := TODO // interface{} | The resource's id + fixedAmountPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETFreeGiftPromotionIdOrderAmountPromotionRule(context.Background(), freeGiftPromotionId).Execute() + r, err := apiClient.HasOneApi.GETFixedAmountPromotionIdCouponCodesPromotionRule(context.Background(), fixedAmountPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeGiftPromotionIdOrderAmountPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedAmountPromotionIdCouponCodesPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3273,11 +3319,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | +**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdOrderAmountPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdCouponCodesPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -3302,11 +3348,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFreeGiftPromotionIdSkuList +## GETFixedAmountPromotionIdCustomPromotionRule -> GETFreeGiftPromotionIdSkuList(ctx, freeGiftPromotionId).Execute() +> GETFixedAmountPromotionIdCustomPromotionRule(ctx, fixedAmountPromotionId).Execute() -Retrieve the sku list associated to the free gift promotion +Retrieve the custom promotion rule associated to the fixed amount promotion @@ -3323,13 +3369,13 @@ import ( ) func main() { - freeGiftPromotionId := TODO // interface{} | The resource's id + fixedAmountPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETFreeGiftPromotionIdSkuList(context.Background(), freeGiftPromotionId).Execute() + r, err := apiClient.HasOneApi.GETFixedAmountPromotionIdCustomPromotionRule(context.Background(), fixedAmountPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeGiftPromotionIdSkuList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedAmountPromotionIdCustomPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3341,11 +3387,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | +**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdSkuListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdCustomPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -3370,11 +3416,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFreeGiftPromotionIdSkuListPromotionRule +## GETFixedAmountPromotionIdMarket -> GETFreeGiftPromotionIdSkuListPromotionRule(ctx, freeGiftPromotionId).Execute() +> GETFixedAmountPromotionIdMarket(ctx, fixedAmountPromotionId).Execute() -Retrieve the sku list promotion rule associated to the free gift promotion +Retrieve the market associated to the fixed amount promotion @@ -3391,13 +3437,13 @@ import ( ) func main() { - freeGiftPromotionId := TODO // interface{} | The resource's id + fixedAmountPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETFreeGiftPromotionIdSkuListPromotionRule(context.Background(), freeGiftPromotionId).Execute() + r, err := apiClient.HasOneApi.GETFixedAmountPromotionIdMarket(context.Background(), fixedAmountPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeGiftPromotionIdSkuListPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedAmountPromotionIdMarket``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3409,11 +3455,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | +**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdSkuListPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdMarketRequest struct via the builder pattern Name | Type | Description | Notes @@ -3438,11 +3484,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFreeShippingPromotionIdCouponCodesPromotionRule +## GETFixedAmountPromotionIdOrderAmountPromotionRule -> GETFreeShippingPromotionIdCouponCodesPromotionRule(ctx, freeShippingPromotionId).Execute() +> GETFixedAmountPromotionIdOrderAmountPromotionRule(ctx, fixedAmountPromotionId).Execute() -Retrieve the coupon codes promotion rule associated to the free shipping promotion +Retrieve the order amount promotion rule associated to the fixed amount promotion @@ -3459,13 +3505,13 @@ import ( ) func main() { - freeShippingPromotionId := TODO // interface{} | The resource's id + fixedAmountPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETFreeShippingPromotionIdCouponCodesPromotionRule(context.Background(), freeShippingPromotionId).Execute() + r, err := apiClient.HasOneApi.GETFixedAmountPromotionIdOrderAmountPromotionRule(context.Background(), fixedAmountPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeShippingPromotionIdCouponCodesPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedAmountPromotionIdOrderAmountPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3477,11 +3523,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | +**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdCouponCodesPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdOrderAmountPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -3506,11 +3552,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFreeShippingPromotionIdMarket +## GETFixedAmountPromotionIdSkuList -> GETFreeShippingPromotionIdMarket(ctx, freeShippingPromotionId).Execute() +> GETFixedAmountPromotionIdSkuList(ctx, fixedAmountPromotionId).Execute() -Retrieve the market associated to the free shipping promotion +Retrieve the sku list associated to the fixed amount promotion @@ -3527,13 +3573,13 @@ import ( ) func main() { - freeShippingPromotionId := TODO // interface{} | The resource's id + fixedAmountPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETFreeShippingPromotionIdMarket(context.Background(), freeShippingPromotionId).Execute() + r, err := apiClient.HasOneApi.GETFixedAmountPromotionIdSkuList(context.Background(), fixedAmountPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeShippingPromotionIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedAmountPromotionIdSkuList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3545,11 +3591,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | +**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdMarketRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdSkuListRequest struct via the builder pattern Name | Type | Description | Notes @@ -3574,11 +3620,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFreeShippingPromotionIdOrderAmountPromotionRule +## GETFixedAmountPromotionIdSkuListPromotionRule -> GETFreeShippingPromotionIdOrderAmountPromotionRule(ctx, freeShippingPromotionId).Execute() +> GETFixedAmountPromotionIdSkuListPromotionRule(ctx, fixedAmountPromotionId).Execute() -Retrieve the order amount promotion rule associated to the free shipping promotion +Retrieve the sku list promotion rule associated to the fixed amount promotion @@ -3595,13 +3641,13 @@ import ( ) func main() { - freeShippingPromotionId := TODO // interface{} | The resource's id + fixedAmountPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETFreeShippingPromotionIdOrderAmountPromotionRule(context.Background(), freeShippingPromotionId).Execute() + r, err := apiClient.HasOneApi.GETFixedAmountPromotionIdSkuListPromotionRule(context.Background(), fixedAmountPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeShippingPromotionIdOrderAmountPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedAmountPromotionIdSkuListPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3613,11 +3659,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | +**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdOrderAmountPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdSkuListPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -3642,11 +3688,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETFreeShippingPromotionIdSkuListPromotionRule +## GETFixedPricePromotionIdCouponCodesPromotionRule -> GETFreeShippingPromotionIdSkuListPromotionRule(ctx, freeShippingPromotionId).Execute() +> GETFixedPricePromotionIdCouponCodesPromotionRule(ctx, fixedPricePromotionId).Execute() -Retrieve the sku list promotion rule associated to the free shipping promotion +Retrieve the coupon codes promotion rule associated to the fixed price promotion @@ -3663,13 +3709,13 @@ import ( ) func main() { - freeShippingPromotionId := TODO // interface{} | The resource's id + fixedPricePromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETFreeShippingPromotionIdSkuListPromotionRule(context.Background(), freeShippingPromotionId).Execute() + r, err := apiClient.HasOneApi.GETFixedPricePromotionIdCouponCodesPromotionRule(context.Background(), fixedPricePromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeShippingPromotionIdSkuListPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedPricePromotionIdCouponCodesPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3681,11 +3727,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | +**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdSkuListPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdCouponCodesPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -3710,11 +3756,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETGiftCardIdGiftCardRecipient +## GETFixedPricePromotionIdCustomPromotionRule -> GETGiftCardIdGiftCardRecipient(ctx, giftCardId).Execute() +> GETFixedPricePromotionIdCustomPromotionRule(ctx, fixedPricePromotionId).Execute() -Retrieve the gift card recipient associated to the gift card +Retrieve the custom promotion rule associated to the fixed price promotion @@ -3731,13 +3777,13 @@ import ( ) func main() { - giftCardId := TODO // interface{} | The resource's id + fixedPricePromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETGiftCardIdGiftCardRecipient(context.Background(), giftCardId).Execute() + r, err := apiClient.HasOneApi.GETFixedPricePromotionIdCustomPromotionRule(context.Background(), fixedPricePromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETGiftCardIdGiftCardRecipient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedPricePromotionIdCustomPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3749,11 +3795,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**giftCardId** | [**interface{}**](.md) | The resource's id | +**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETGiftCardIdGiftCardRecipientRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdCustomPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -3778,11 +3824,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETGiftCardIdMarket +## GETFixedPricePromotionIdMarket -> GETGiftCardIdMarket(ctx, giftCardId).Execute() +> GETFixedPricePromotionIdMarket(ctx, fixedPricePromotionId).Execute() -Retrieve the market associated to the gift card +Retrieve the market associated to the fixed price promotion @@ -3799,13 +3845,13 @@ import ( ) func main() { - giftCardId := TODO // interface{} | The resource's id + fixedPricePromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETGiftCardIdMarket(context.Background(), giftCardId).Execute() + r, err := apiClient.HasOneApi.GETFixedPricePromotionIdMarket(context.Background(), fixedPricePromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETGiftCardIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedPricePromotionIdMarket``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3817,11 +3863,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**giftCardId** | [**interface{}**](.md) | The resource's id | +**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETGiftCardIdMarketRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdMarketRequest struct via the builder pattern Name | Type | Description | Notes @@ -3846,11 +3892,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETGiftCardRecipientIdCustomer +## GETFixedPricePromotionIdOrderAmountPromotionRule -> GETGiftCardRecipientIdCustomer(ctx, giftCardRecipientId).Execute() +> GETFixedPricePromotionIdOrderAmountPromotionRule(ctx, fixedPricePromotionId).Execute() -Retrieve the customer associated to the gift card recipient +Retrieve the order amount promotion rule associated to the fixed price promotion @@ -3867,13 +3913,13 @@ import ( ) func main() { - giftCardRecipientId := TODO // interface{} | The resource's id + fixedPricePromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETGiftCardRecipientIdCustomer(context.Background(), giftCardRecipientId).Execute() + r, err := apiClient.HasOneApi.GETFixedPricePromotionIdOrderAmountPromotionRule(context.Background(), fixedPricePromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETGiftCardRecipientIdCustomer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedPricePromotionIdOrderAmountPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3885,11 +3931,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**giftCardRecipientId** | [**interface{}**](.md) | The resource's id | +**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETGiftCardRecipientIdCustomerRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdOrderAmountPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -3914,11 +3960,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETInStockSubscriptionIdCustomer +## GETFixedPricePromotionIdSkuList -> GETInStockSubscriptionIdCustomer(ctx, inStockSubscriptionId).Execute() +> GETFixedPricePromotionIdSkuList(ctx, fixedPricePromotionId).Execute() -Retrieve the customer associated to the in stock subscription +Retrieve the sku list associated to the fixed price promotion @@ -3935,13 +3981,13 @@ import ( ) func main() { - inStockSubscriptionId := TODO // interface{} | The resource's id + fixedPricePromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETInStockSubscriptionIdCustomer(context.Background(), inStockSubscriptionId).Execute() + r, err := apiClient.HasOneApi.GETFixedPricePromotionIdSkuList(context.Background(), fixedPricePromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETInStockSubscriptionIdCustomer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedPricePromotionIdSkuList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3953,11 +3999,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**inStockSubscriptionId** | [**interface{}**](.md) | The resource's id | +**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETInStockSubscriptionIdCustomerRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdSkuListRequest struct via the builder pattern Name | Type | Description | Notes @@ -3982,11 +4028,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETInStockSubscriptionIdMarket +## GETFixedPricePromotionIdSkuListPromotionRule -> GETInStockSubscriptionIdMarket(ctx, inStockSubscriptionId).Execute() +> GETFixedPricePromotionIdSkuListPromotionRule(ctx, fixedPricePromotionId).Execute() -Retrieve the market associated to the in stock subscription +Retrieve the sku list promotion rule associated to the fixed price promotion @@ -4003,13 +4049,13 @@ import ( ) func main() { - inStockSubscriptionId := TODO // interface{} | The resource's id + fixedPricePromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETInStockSubscriptionIdMarket(context.Background(), inStockSubscriptionId).Execute() + r, err := apiClient.HasOneApi.GETFixedPricePromotionIdSkuListPromotionRule(context.Background(), fixedPricePromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETInStockSubscriptionIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFixedPricePromotionIdSkuListPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4021,11 +4067,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**inStockSubscriptionId** | [**interface{}**](.md) | The resource's id | +**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETInStockSubscriptionIdMarketRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdSkuListPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -4050,11 +4096,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETInStockSubscriptionIdSku +## GETFlexPromotionIdCouponCodesPromotionRule -> GETInStockSubscriptionIdSku(ctx, inStockSubscriptionId).Execute() +> GETFlexPromotionIdCouponCodesPromotionRule(ctx, flexPromotionId).Execute() -Retrieve the sku associated to the in stock subscription +Retrieve the coupon codes promotion rule associated to the flex promotion @@ -4071,13 +4117,13 @@ import ( ) func main() { - inStockSubscriptionId := TODO // interface{} | The resource's id + flexPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETInStockSubscriptionIdSku(context.Background(), inStockSubscriptionId).Execute() + r, err := apiClient.HasOneApi.GETFlexPromotionIdCouponCodesPromotionRule(context.Background(), flexPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETInStockSubscriptionIdSku``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFlexPromotionIdCouponCodesPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4089,11 +4135,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**inStockSubscriptionId** | [**interface{}**](.md) | The resource's id | +**flexPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETInStockSubscriptionIdSkuRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFlexPromotionIdCouponCodesPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -4118,11 +4164,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETInventoryReturnLocationIdInventoryModel +## GETFreeGiftPromotionIdCouponCodesPromotionRule -> GETInventoryReturnLocationIdInventoryModel(ctx, inventoryReturnLocationId).Execute() +> GETFreeGiftPromotionIdCouponCodesPromotionRule(ctx, freeGiftPromotionId).Execute() -Retrieve the inventory model associated to the inventory return location +Retrieve the coupon codes promotion rule associated to the free gift promotion @@ -4139,13 +4185,13 @@ import ( ) func main() { - inventoryReturnLocationId := TODO // interface{} | The resource's id + freeGiftPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETInventoryReturnLocationIdInventoryModel(context.Background(), inventoryReturnLocationId).Execute() + r, err := apiClient.HasOneApi.GETFreeGiftPromotionIdCouponCodesPromotionRule(context.Background(), freeGiftPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETInventoryReturnLocationIdInventoryModel``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeGiftPromotionIdCouponCodesPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4157,11 +4203,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**inventoryReturnLocationId** | [**interface{}**](.md) | The resource's id | +**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETInventoryReturnLocationIdInventoryModelRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdCouponCodesPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -4186,11 +4232,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETInventoryReturnLocationIdStockLocation +## GETFreeGiftPromotionIdCustomPromotionRule -> GETInventoryReturnLocationIdStockLocation(ctx, inventoryReturnLocationId).Execute() +> GETFreeGiftPromotionIdCustomPromotionRule(ctx, freeGiftPromotionId).Execute() -Retrieve the stock location associated to the inventory return location +Retrieve the custom promotion rule associated to the free gift promotion @@ -4207,13 +4253,13 @@ import ( ) func main() { - inventoryReturnLocationId := TODO // interface{} | The resource's id + freeGiftPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETInventoryReturnLocationIdStockLocation(context.Background(), inventoryReturnLocationId).Execute() + r, err := apiClient.HasOneApi.GETFreeGiftPromotionIdCustomPromotionRule(context.Background(), freeGiftPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETInventoryReturnLocationIdStockLocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeGiftPromotionIdCustomPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4225,11 +4271,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**inventoryReturnLocationId** | [**interface{}**](.md) | The resource's id | +**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETInventoryReturnLocationIdStockLocationRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdCustomPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -4254,11 +4300,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETInventoryStockLocationIdInventoryModel +## GETFreeGiftPromotionIdMarket -> GETInventoryStockLocationIdInventoryModel(ctx, inventoryStockLocationId).Execute() +> GETFreeGiftPromotionIdMarket(ctx, freeGiftPromotionId).Execute() -Retrieve the inventory model associated to the inventory stock location +Retrieve the market associated to the free gift promotion @@ -4275,13 +4321,13 @@ import ( ) func main() { - inventoryStockLocationId := TODO // interface{} | The resource's id + freeGiftPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETInventoryStockLocationIdInventoryModel(context.Background(), inventoryStockLocationId).Execute() + r, err := apiClient.HasOneApi.GETFreeGiftPromotionIdMarket(context.Background(), freeGiftPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETInventoryStockLocationIdInventoryModel``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeGiftPromotionIdMarket``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4293,11 +4339,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**inventoryStockLocationId** | [**interface{}**](.md) | The resource's id | +**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETInventoryStockLocationIdInventoryModelRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdMarketRequest struct via the builder pattern Name | Type | Description | Notes @@ -4322,11 +4368,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETInventoryStockLocationIdStockLocation +## GETFreeGiftPromotionIdOrderAmountPromotionRule -> GETInventoryStockLocationIdStockLocation(ctx, inventoryStockLocationId).Execute() +> GETFreeGiftPromotionIdOrderAmountPromotionRule(ctx, freeGiftPromotionId).Execute() -Retrieve the stock location associated to the inventory stock location +Retrieve the order amount promotion rule associated to the free gift promotion @@ -4343,13 +4389,13 @@ import ( ) func main() { - inventoryStockLocationId := TODO // interface{} | The resource's id + freeGiftPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETInventoryStockLocationIdStockLocation(context.Background(), inventoryStockLocationId).Execute() + r, err := apiClient.HasOneApi.GETFreeGiftPromotionIdOrderAmountPromotionRule(context.Background(), freeGiftPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETInventoryStockLocationIdStockLocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeGiftPromotionIdOrderAmountPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4361,11 +4407,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**inventoryStockLocationId** | [**interface{}**](.md) | The resource's id | +**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETInventoryStockLocationIdStockLocationRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdOrderAmountPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -4390,11 +4436,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETKlarnaPaymentIdOrder +## GETFreeGiftPromotionIdSkuList -> GETKlarnaPaymentIdOrder(ctx, klarnaPaymentId).Execute() +> GETFreeGiftPromotionIdSkuList(ctx, freeGiftPromotionId).Execute() -Retrieve the order associated to the klarna payment +Retrieve the sku list associated to the free gift promotion @@ -4411,13 +4457,13 @@ import ( ) func main() { - klarnaPaymentId := TODO // interface{} | The resource's id + freeGiftPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETKlarnaPaymentIdOrder(context.Background(), klarnaPaymentId).Execute() + r, err := apiClient.HasOneApi.GETFreeGiftPromotionIdSkuList(context.Background(), freeGiftPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETKlarnaPaymentIdOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeGiftPromotionIdSkuList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4429,11 +4475,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**klarnaPaymentId** | [**interface{}**](.md) | The resource's id | +**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETKlarnaPaymentIdOrderRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdSkuListRequest struct via the builder pattern Name | Type | Description | Notes @@ -4458,11 +4504,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETKlarnaPaymentIdPaymentGateway +## GETFreeGiftPromotionIdSkuListPromotionRule -> GETKlarnaPaymentIdPaymentGateway(ctx, klarnaPaymentId).Execute() +> GETFreeGiftPromotionIdSkuListPromotionRule(ctx, freeGiftPromotionId).Execute() -Retrieve the payment gateway associated to the klarna payment +Retrieve the sku list promotion rule associated to the free gift promotion @@ -4479,13 +4525,13 @@ import ( ) func main() { - klarnaPaymentId := TODO // interface{} | The resource's id + freeGiftPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETKlarnaPaymentIdPaymentGateway(context.Background(), klarnaPaymentId).Execute() + r, err := apiClient.HasOneApi.GETFreeGiftPromotionIdSkuListPromotionRule(context.Background(), freeGiftPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETKlarnaPaymentIdPaymentGateway``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeGiftPromotionIdSkuListPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4497,11 +4543,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**klarnaPaymentId** | [**interface{}**](.md) | The resource's id | +**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETKlarnaPaymentIdPaymentGatewayRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdSkuListPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -4526,11 +4572,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETLineItemIdOrder +## GETFreeShippingPromotionIdCouponCodesPromotionRule -> GETLineItemIdOrder(ctx, lineItemId).Execute() +> GETFreeShippingPromotionIdCouponCodesPromotionRule(ctx, freeShippingPromotionId).Execute() -Retrieve the order associated to the line item +Retrieve the coupon codes promotion rule associated to the free shipping promotion @@ -4547,13 +4593,13 @@ import ( ) func main() { - lineItemId := TODO // interface{} | The resource's id + freeShippingPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETLineItemIdOrder(context.Background(), lineItemId).Execute() + r, err := apiClient.HasOneApi.GETFreeShippingPromotionIdCouponCodesPromotionRule(context.Background(), freeShippingPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETLineItemIdOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeShippingPromotionIdCouponCodesPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4565,11 +4611,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**lineItemId** | [**interface{}**](.md) | The resource's id | +**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETLineItemIdOrderRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdCouponCodesPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -4594,11 +4640,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETLineItemOptionIdLineItem +## GETFreeShippingPromotionIdCustomPromotionRule -> GETLineItemOptionIdLineItem(ctx, lineItemOptionId).Execute() +> GETFreeShippingPromotionIdCustomPromotionRule(ctx, freeShippingPromotionId).Execute() -Retrieve the line item associated to the line item option +Retrieve the custom promotion rule associated to the free shipping promotion @@ -4615,13 +4661,13 @@ import ( ) func main() { - lineItemOptionId := TODO // interface{} | The resource's id + freeShippingPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETLineItemOptionIdLineItem(context.Background(), lineItemOptionId).Execute() + r, err := apiClient.HasOneApi.GETFreeShippingPromotionIdCustomPromotionRule(context.Background(), freeShippingPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETLineItemOptionIdLineItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeShippingPromotionIdCustomPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4633,11 +4679,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**lineItemOptionId** | [**interface{}**](.md) | The resource's id | +**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETLineItemOptionIdLineItemRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdCustomPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -4662,9 +4708,1233 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETLineItemOptionIdSkuOption +## GETFreeShippingPromotionIdMarket -> GETLineItemOptionIdSkuOption(ctx, lineItemOptionId).Execute() +> GETFreeShippingPromotionIdMarket(ctx, freeShippingPromotionId).Execute() + +Retrieve the market associated to the free shipping promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeShippingPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETFreeShippingPromotionIdMarket(context.Background(), freeShippingPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeShippingPromotionIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdMarketRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeShippingPromotionIdOrderAmountPromotionRule + +> GETFreeShippingPromotionIdOrderAmountPromotionRule(ctx, freeShippingPromotionId).Execute() + +Retrieve the order amount promotion rule associated to the free shipping promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeShippingPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETFreeShippingPromotionIdOrderAmountPromotionRule(context.Background(), freeShippingPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeShippingPromotionIdOrderAmountPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdOrderAmountPromotionRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeShippingPromotionIdSkuList + +> GETFreeShippingPromotionIdSkuList(ctx, freeShippingPromotionId).Execute() + +Retrieve the sku list associated to the free shipping promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeShippingPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETFreeShippingPromotionIdSkuList(context.Background(), freeShippingPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeShippingPromotionIdSkuList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdSkuListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeShippingPromotionIdSkuListPromotionRule + +> GETFreeShippingPromotionIdSkuListPromotionRule(ctx, freeShippingPromotionId).Execute() + +Retrieve the sku list promotion rule associated to the free shipping promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeShippingPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETFreeShippingPromotionIdSkuListPromotionRule(context.Background(), freeShippingPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETFreeShippingPromotionIdSkuListPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdSkuListPromotionRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETGiftCardIdGiftCardRecipient + +> GETGiftCardIdGiftCardRecipient(ctx, giftCardId).Execute() + +Retrieve the gift card recipient associated to the gift card + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + giftCardId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETGiftCardIdGiftCardRecipient(context.Background(), giftCardId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETGiftCardIdGiftCardRecipient``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**giftCardId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGiftCardIdGiftCardRecipientRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETGiftCardIdMarket + +> GETGiftCardIdMarket(ctx, giftCardId).Execute() + +Retrieve the market associated to the gift card + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + giftCardId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETGiftCardIdMarket(context.Background(), giftCardId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETGiftCardIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**giftCardId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGiftCardIdMarketRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETGiftCardRecipientIdCustomer + +> GETGiftCardRecipientIdCustomer(ctx, giftCardRecipientId).Execute() + +Retrieve the customer associated to the gift card recipient + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + giftCardRecipientId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETGiftCardRecipientIdCustomer(context.Background(), giftCardRecipientId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETGiftCardRecipientIdCustomer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**giftCardRecipientId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGiftCardRecipientIdCustomerRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETInStockSubscriptionIdCustomer + +> GETInStockSubscriptionIdCustomer(ctx, inStockSubscriptionId).Execute() + +Retrieve the customer associated to the in stock subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + inStockSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETInStockSubscriptionIdCustomer(context.Background(), inStockSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETInStockSubscriptionIdCustomer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**inStockSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETInStockSubscriptionIdCustomerRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETInStockSubscriptionIdMarket + +> GETInStockSubscriptionIdMarket(ctx, inStockSubscriptionId).Execute() + +Retrieve the market associated to the in stock subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + inStockSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETInStockSubscriptionIdMarket(context.Background(), inStockSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETInStockSubscriptionIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**inStockSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETInStockSubscriptionIdMarketRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETInStockSubscriptionIdSku + +> GETInStockSubscriptionIdSku(ctx, inStockSubscriptionId).Execute() + +Retrieve the sku associated to the in stock subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + inStockSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETInStockSubscriptionIdSku(context.Background(), inStockSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETInStockSubscriptionIdSku``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**inStockSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETInStockSubscriptionIdSkuRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETInventoryReturnLocationIdInventoryModel + +> GETInventoryReturnLocationIdInventoryModel(ctx, inventoryReturnLocationId).Execute() + +Retrieve the inventory model associated to the inventory return location + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + inventoryReturnLocationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETInventoryReturnLocationIdInventoryModel(context.Background(), inventoryReturnLocationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETInventoryReturnLocationIdInventoryModel``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**inventoryReturnLocationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETInventoryReturnLocationIdInventoryModelRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETInventoryReturnLocationIdStockLocation + +> GETInventoryReturnLocationIdStockLocation(ctx, inventoryReturnLocationId).Execute() + +Retrieve the stock location associated to the inventory return location + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + inventoryReturnLocationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETInventoryReturnLocationIdStockLocation(context.Background(), inventoryReturnLocationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETInventoryReturnLocationIdStockLocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**inventoryReturnLocationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETInventoryReturnLocationIdStockLocationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETInventoryStockLocationIdInventoryModel + +> GETInventoryStockLocationIdInventoryModel(ctx, inventoryStockLocationId).Execute() + +Retrieve the inventory model associated to the inventory stock location + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + inventoryStockLocationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETInventoryStockLocationIdInventoryModel(context.Background(), inventoryStockLocationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETInventoryStockLocationIdInventoryModel``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**inventoryStockLocationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETInventoryStockLocationIdInventoryModelRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETInventoryStockLocationIdStockLocation + +> GETInventoryStockLocationIdStockLocation(ctx, inventoryStockLocationId).Execute() + +Retrieve the stock location associated to the inventory stock location + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + inventoryStockLocationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETInventoryStockLocationIdStockLocation(context.Background(), inventoryStockLocationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETInventoryStockLocationIdStockLocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**inventoryStockLocationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETInventoryStockLocationIdStockLocationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETKlarnaPaymentIdOrder + +> GETKlarnaPaymentIdOrder(ctx, klarnaPaymentId).Execute() + +Retrieve the order associated to the klarna payment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + klarnaPaymentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETKlarnaPaymentIdOrder(context.Background(), klarnaPaymentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETKlarnaPaymentIdOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**klarnaPaymentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETKlarnaPaymentIdOrderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETKlarnaPaymentIdPaymentGateway + +> GETKlarnaPaymentIdPaymentGateway(ctx, klarnaPaymentId).Execute() + +Retrieve the payment gateway associated to the klarna payment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + klarnaPaymentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETKlarnaPaymentIdPaymentGateway(context.Background(), klarnaPaymentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETKlarnaPaymentIdPaymentGateway``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**klarnaPaymentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETKlarnaPaymentIdPaymentGatewayRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETLineItemIdOrder + +> GETLineItemIdOrder(ctx, lineItemId).Execute() + +Retrieve the order associated to the line item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + lineItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETLineItemIdOrder(context.Background(), lineItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETLineItemIdOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**lineItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETLineItemIdOrderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETLineItemOptionIdLineItem + +> GETLineItemOptionIdLineItem(ctx, lineItemOptionId).Execute() + +Retrieve the line item associated to the line item option + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + lineItemOptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETLineItemOptionIdLineItem(context.Background(), lineItemOptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETLineItemOptionIdLineItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**lineItemOptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETLineItemOptionIdLineItemRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETLineItemOptionIdSkuOption + +> GETLineItemOptionIdSkuOption(ctx, lineItemOptionId).Execute() Retrieve the sku option associated to the line item option @@ -4683,13 +5953,1917 @@ import ( ) func main() { - lineItemOptionId := TODO // interface{} | The resource's id + lineItemOptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETLineItemOptionIdSkuOption(context.Background(), lineItemOptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETLineItemOptionIdSkuOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**lineItemOptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETLineItemOptionIdSkuOptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETMarketIdBasePriceList + +> GETMarketIdBasePriceList(ctx, marketId).Execute() + +Retrieve the base price list associated to the market + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + marketId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETMarketIdBasePriceList(context.Background(), marketId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETMarketIdBasePriceList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**marketId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETMarketIdBasePriceListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETMarketIdCustomerGroup + +> GETMarketIdCustomerGroup(ctx, marketId).Execute() + +Retrieve the customer group associated to the market + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + marketId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETMarketIdCustomerGroup(context.Background(), marketId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETMarketIdCustomerGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**marketId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETMarketIdCustomerGroupRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETMarketIdGeocoder + +> GETMarketIdGeocoder(ctx, marketId).Execute() + +Retrieve the geocoder associated to the market + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + marketId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETMarketIdGeocoder(context.Background(), marketId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETMarketIdGeocoder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**marketId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETMarketIdGeocoderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETMarketIdInventoryModel + +> GETMarketIdInventoryModel(ctx, marketId).Execute() + +Retrieve the inventory model associated to the market + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + marketId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETMarketIdInventoryModel(context.Background(), marketId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETMarketIdInventoryModel``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**marketId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETMarketIdInventoryModelRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETMarketIdMerchant + +> GETMarketIdMerchant(ctx, marketId).Execute() + +Retrieve the merchant associated to the market + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + marketId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETMarketIdMerchant(context.Background(), marketId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETMarketIdMerchant``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**marketId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETMarketIdMerchantRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETMarketIdPriceList + +> GETMarketIdPriceList(ctx, marketId).Execute() + +Retrieve the price list associated to the market + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + marketId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETMarketIdPriceList(context.Background(), marketId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETMarketIdPriceList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**marketId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETMarketIdPriceListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETMarketIdSubscriptionModel + +> GETMarketIdSubscriptionModel(ctx, marketId).Execute() + +Retrieve the subscription model associated to the market + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + marketId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETMarketIdSubscriptionModel(context.Background(), marketId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETMarketIdSubscriptionModel``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**marketId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETMarketIdSubscriptionModelRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETMarketIdTaxCalculator + +> GETMarketIdTaxCalculator(ctx, marketId).Execute() + +Retrieve the tax calculator associated to the market + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + marketId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETMarketIdTaxCalculator(context.Background(), marketId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETMarketIdTaxCalculator``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**marketId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETMarketIdTaxCalculatorRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETMerchantIdAddress + +> GETMerchantIdAddress(ctx, merchantId).Execute() + +Retrieve the address associated to the merchant + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + merchantId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETMerchantIdAddress(context.Background(), merchantId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETMerchantIdAddress``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**merchantId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETMerchantIdAddressRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderCopyIdOrderSubscription + +> GETOrderCopyIdOrderSubscription(ctx, orderCopyId).Execute() + +Retrieve the order subscription associated to the order copy + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderCopyId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETOrderCopyIdOrderSubscription(context.Background(), orderCopyId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderCopyIdOrderSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderCopyId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderCopyIdOrderSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderCopyIdSourceOrder + +> GETOrderCopyIdSourceOrder(ctx, orderCopyId).Execute() + +Retrieve the source order associated to the order copy + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderCopyId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETOrderCopyIdSourceOrder(context.Background(), orderCopyId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderCopyIdSourceOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderCopyId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderCopyIdSourceOrderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderCopyIdTargetOrder + +> GETOrderCopyIdTargetOrder(ctx, orderCopyId).Execute() + +Retrieve the target order associated to the order copy + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderCopyId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETOrderCopyIdTargetOrder(context.Background(), orderCopyId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderCopyIdTargetOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderCopyId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderCopyIdTargetOrderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderFactoryIdSourceOrder + +> GETOrderFactoryIdSourceOrder(ctx, orderFactoryId).Execute() + +Retrieve the source order associated to the order factory + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderFactoryId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETOrderFactoryIdSourceOrder(context.Background(), orderFactoryId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderFactoryIdSourceOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderFactoryId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderFactoryIdSourceOrderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderFactoryIdTargetOrder + +> GETOrderFactoryIdTargetOrder(ctx, orderFactoryId).Execute() + +Retrieve the target order associated to the order factory + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderFactoryId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETOrderFactoryIdTargetOrder(context.Background(), orderFactoryId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderFactoryIdTargetOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderFactoryId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderFactoryIdTargetOrderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdBillingAddress + +> GETOrderIdBillingAddress(ctx, orderId).Execute() + +Retrieve the billing address associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETOrderIdBillingAddress(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderIdBillingAddress``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdBillingAddressRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdCustomer + +> GETOrderIdCustomer(ctx, orderId).Execute() + +Retrieve the customer associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETOrderIdCustomer(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderIdCustomer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdCustomerRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdMarket + +> GETOrderIdMarket(ctx, orderId).Execute() + +Retrieve the market associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETOrderIdMarket(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdMarketRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdOrderSubscription + +> GETOrderIdOrderSubscription(ctx, orderId).Execute() + +Retrieve the order subscription associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETOrderIdOrderSubscription(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderIdOrderSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdOrderSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdPaymentMethod + +> GETOrderIdPaymentMethod(ctx, orderId).Execute() + +Retrieve the payment method associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETOrderIdPaymentMethod(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderIdPaymentMethod``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdPaymentMethodRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdShippingAddress + +> GETOrderIdShippingAddress(ctx, orderId).Execute() + +Retrieve the shipping address associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETOrderIdShippingAddress(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderIdShippingAddress``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdShippingAddressRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderSubscriptionIdCustomer + +> GETOrderSubscriptionIdCustomer(ctx, orderSubscriptionId).Execute() + +Retrieve the customer associated to the order subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETOrderSubscriptionIdCustomer(context.Background(), orderSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderSubscriptionIdCustomer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdCustomerRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderSubscriptionIdCustomerPaymentSource + +> GETOrderSubscriptionIdCustomerPaymentSource(ctx, orderSubscriptionId).Execute() + +Retrieve the customer payment source associated to the order subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETOrderSubscriptionIdCustomerPaymentSource(context.Background(), orderSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderSubscriptionIdCustomerPaymentSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdCustomerPaymentSourceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderSubscriptionIdMarket + +> GETOrderSubscriptionIdMarket(ctx, orderSubscriptionId).Execute() + +Retrieve the market associated to the order subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETOrderSubscriptionIdMarket(context.Background(), orderSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderSubscriptionIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdMarketRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderSubscriptionIdSourceOrder + +> GETOrderSubscriptionIdSourceOrder(ctx, orderSubscriptionId).Execute() + +Retrieve the source order associated to the order subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETOrderSubscriptionIdSourceOrder(context.Background(), orderSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderSubscriptionIdSourceOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdSourceOrderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderSubscriptionIdSubscriptionModel + +> GETOrderSubscriptionIdSubscriptionModel(ctx, orderSubscriptionId).Execute() + +Retrieve the subscription model associated to the order subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETOrderSubscriptionIdSubscriptionModel(context.Background(), orderSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderSubscriptionIdSubscriptionModel``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdSubscriptionModelRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderSubscriptionItemIdOrderSubscription + +> GETOrderSubscriptionItemIdOrderSubscription(ctx, orderSubscriptionItemId).Execute() + +Retrieve the order subscription associated to the order subscription item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderSubscriptionItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETOrderSubscriptionItemIdOrderSubscription(context.Background(), orderSubscriptionItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderSubscriptionItemIdOrderSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderSubscriptionItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderSubscriptionItemIdOrderSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderSubscriptionItemIdSourceLineItem + +> GETOrderSubscriptionItemIdSourceLineItem(ctx, orderSubscriptionItemId).Execute() + +Retrieve the source line item associated to the order subscription item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderSubscriptionItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.HasOneApi.GETOrderSubscriptionItemIdSourceLineItem(context.Background(), orderSubscriptionItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderSubscriptionItemIdSourceLineItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderSubscriptionItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderSubscriptionItemIdSourceLineItemRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPackageIdStockLocation + +> GETPackageIdStockLocation(ctx, packageId).Execute() + +Retrieve the stock location associated to the package + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + packageId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETLineItemOptionIdSkuOption(context.Background(), lineItemOptionId).Execute() + r, err := apiClient.HasOneApi.GETPackageIdStockLocation(context.Background(), packageId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETLineItemOptionIdSkuOption``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPackageIdStockLocation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4701,11 +7875,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**lineItemOptionId** | [**interface{}**](.md) | The resource's id | +**packageId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETLineItemOptionIdSkuOptionRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPackageIdStockLocationRequest struct via the builder pattern Name | Type | Description | Notes @@ -4730,11 +7904,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETMarketIdCustomerGroup +## GETParcelIdPackage -> GETMarketIdCustomerGroup(ctx, marketId).Execute() +> GETParcelIdPackage(ctx, parcelId).Execute() -Retrieve the customer group associated to the market +Retrieve the package associated to the parcel @@ -4751,13 +7925,13 @@ import ( ) func main() { - marketId := TODO // interface{} | The resource's id + parcelId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETMarketIdCustomerGroup(context.Background(), marketId).Execute() + r, err := apiClient.HasOneApi.GETParcelIdPackage(context.Background(), parcelId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETMarketIdCustomerGroup``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETParcelIdPackage``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4769,11 +7943,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**marketId** | [**interface{}**](.md) | The resource's id | +**parcelId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETMarketIdCustomerGroupRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETParcelIdPackageRequest struct via the builder pattern Name | Type | Description | Notes @@ -4798,11 +7972,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETMarketIdInventoryModel +## GETParcelIdShipment -> GETMarketIdInventoryModel(ctx, marketId).Execute() +> GETParcelIdShipment(ctx, parcelId).Execute() -Retrieve the inventory model associated to the market +Retrieve the shipment associated to the parcel @@ -4819,13 +7993,13 @@ import ( ) func main() { - marketId := TODO // interface{} | The resource's id + parcelId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETMarketIdInventoryModel(context.Background(), marketId).Execute() + r, err := apiClient.HasOneApi.GETParcelIdShipment(context.Background(), parcelId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETMarketIdInventoryModel``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETParcelIdShipment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4837,11 +8011,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**marketId** | [**interface{}**](.md) | The resource's id | +**parcelId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETMarketIdInventoryModelRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETParcelIdShipmentRequest struct via the builder pattern Name | Type | Description | Notes @@ -4866,11 +8040,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETMarketIdMerchant +## GETParcelLineItemIdParcel -> GETMarketIdMerchant(ctx, marketId).Execute() +> GETParcelLineItemIdParcel(ctx, parcelLineItemId).Execute() -Retrieve the merchant associated to the market +Retrieve the parcel associated to the parcel line item @@ -4887,13 +8061,13 @@ import ( ) func main() { - marketId := TODO // interface{} | The resource's id + parcelLineItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETMarketIdMerchant(context.Background(), marketId).Execute() + r, err := apiClient.HasOneApi.GETParcelLineItemIdParcel(context.Background(), parcelLineItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETMarketIdMerchant``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETParcelLineItemIdParcel``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4905,11 +8079,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**marketId** | [**interface{}**](.md) | The resource's id | +**parcelLineItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETMarketIdMerchantRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETParcelLineItemIdParcelRequest struct via the builder pattern Name | Type | Description | Notes @@ -4934,11 +8108,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETMarketIdPriceList +## GETParcelLineItemIdStockLineItem -> GETMarketIdPriceList(ctx, marketId).Execute() +> GETParcelLineItemIdStockLineItem(ctx, parcelLineItemId).Execute() -Retrieve the price list associated to the market +Retrieve the stock line item associated to the parcel line item @@ -4955,13 +8129,13 @@ import ( ) func main() { - marketId := TODO // interface{} | The resource's id + parcelLineItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETMarketIdPriceList(context.Background(), marketId).Execute() + r, err := apiClient.HasOneApi.GETParcelLineItemIdStockLineItem(context.Background(), parcelLineItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETMarketIdPriceList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETParcelLineItemIdStockLineItem``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4973,11 +8147,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**marketId** | [**interface{}**](.md) | The resource's id | +**parcelLineItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETMarketIdPriceListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETParcelLineItemIdStockLineItemRequest struct via the builder pattern Name | Type | Description | Notes @@ -5002,11 +8176,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETMarketIdSubscriptionModel +## GETPaymentMethodIdMarket -> GETMarketIdSubscriptionModel(ctx, marketId).Execute() +> GETPaymentMethodIdMarket(ctx, paymentMethodId).Execute() -Retrieve the subscription model associated to the market +Retrieve the market associated to the payment method @@ -5023,13 +8197,13 @@ import ( ) func main() { - marketId := TODO // interface{} | The resource's id + paymentMethodId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETMarketIdSubscriptionModel(context.Background(), marketId).Execute() + r, err := apiClient.HasOneApi.GETPaymentMethodIdMarket(context.Background(), paymentMethodId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETMarketIdSubscriptionModel``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPaymentMethodIdMarket``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5041,11 +8215,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**marketId** | [**interface{}**](.md) | The resource's id | +**paymentMethodId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETMarketIdSubscriptionModelRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPaymentMethodIdMarketRequest struct via the builder pattern Name | Type | Description | Notes @@ -5070,11 +8244,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETMarketIdTaxCalculator +## GETPaymentMethodIdPaymentGateway -> GETMarketIdTaxCalculator(ctx, marketId).Execute() +> GETPaymentMethodIdPaymentGateway(ctx, paymentMethodId).Execute() -Retrieve the tax calculator associated to the market +Retrieve the payment gateway associated to the payment method @@ -5091,13 +8265,13 @@ import ( ) func main() { - marketId := TODO // interface{} | The resource's id + paymentMethodId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETMarketIdTaxCalculator(context.Background(), marketId).Execute() + r, err := apiClient.HasOneApi.GETPaymentMethodIdPaymentGateway(context.Background(), paymentMethodId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETMarketIdTaxCalculator``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPaymentMethodIdPaymentGateway``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5109,11 +8283,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**marketId** | [**interface{}**](.md) | The resource's id | +**paymentMethodId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETMarketIdTaxCalculatorRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPaymentMethodIdPaymentGatewayRequest struct via the builder pattern Name | Type | Description | Notes @@ -5138,11 +8312,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETMerchantIdAddress +## GETPaymentOptionIdOrder -> GETMerchantIdAddress(ctx, merchantId).Execute() +> GETPaymentOptionIdOrder(ctx, paymentOptionId).Execute() -Retrieve the address associated to the merchant +Retrieve the order associated to the payment option @@ -5159,13 +8333,13 @@ import ( ) func main() { - merchantId := TODO // interface{} | The resource's id + paymentOptionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETMerchantIdAddress(context.Background(), merchantId).Execute() + r, err := apiClient.HasOneApi.GETPaymentOptionIdOrder(context.Background(), paymentOptionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETMerchantIdAddress``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPaymentOptionIdOrder``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5177,11 +8351,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**merchantId** | [**interface{}**](.md) | The resource's id | +**paymentOptionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETMerchantIdAddressRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPaymentOptionIdOrderRequest struct via the builder pattern Name | Type | Description | Notes @@ -5206,11 +8380,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderCopyIdOrderSubscription +## GETPaypalPaymentIdOrder -> GETOrderCopyIdOrderSubscription(ctx, orderCopyId).Execute() +> GETPaypalPaymentIdOrder(ctx, paypalPaymentId).Execute() -Retrieve the order subscription associated to the order copy +Retrieve the order associated to the paypal payment @@ -5227,13 +8401,13 @@ import ( ) func main() { - orderCopyId := TODO // interface{} | The resource's id + paypalPaymentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETOrderCopyIdOrderSubscription(context.Background(), orderCopyId).Execute() + r, err := apiClient.HasOneApi.GETPaypalPaymentIdOrder(context.Background(), paypalPaymentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderCopyIdOrderSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPaypalPaymentIdOrder``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5245,11 +8419,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderCopyId** | [**interface{}**](.md) | The resource's id | +**paypalPaymentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderCopyIdOrderSubscriptionRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPaypalPaymentIdOrderRequest struct via the builder pattern Name | Type | Description | Notes @@ -5274,11 +8448,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderCopyIdSourceOrder +## GETPaypalPaymentIdPaymentGateway -> GETOrderCopyIdSourceOrder(ctx, orderCopyId).Execute() +> GETPaypalPaymentIdPaymentGateway(ctx, paypalPaymentId).Execute() -Retrieve the source order associated to the order copy +Retrieve the payment gateway associated to the paypal payment @@ -5295,13 +8469,13 @@ import ( ) func main() { - orderCopyId := TODO // interface{} | The resource's id + paypalPaymentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETOrderCopyIdSourceOrder(context.Background(), orderCopyId).Execute() + r, err := apiClient.HasOneApi.GETPaypalPaymentIdPaymentGateway(context.Background(), paypalPaymentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderCopyIdSourceOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPaypalPaymentIdPaymentGateway``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5313,11 +8487,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderCopyId** | [**interface{}**](.md) | The resource's id | +**paypalPaymentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderCopyIdSourceOrderRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPaypalPaymentIdPaymentGatewayRequest struct via the builder pattern Name | Type | Description | Notes @@ -5342,11 +8516,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderCopyIdTargetOrder +## GETPercentageDiscountPromotionIdCouponCodesPromotionRule -> GETOrderCopyIdTargetOrder(ctx, orderCopyId).Execute() +> GETPercentageDiscountPromotionIdCouponCodesPromotionRule(ctx, percentageDiscountPromotionId).Execute() -Retrieve the target order associated to the order copy +Retrieve the coupon codes promotion rule associated to the percentage discount promotion @@ -5363,13 +8537,13 @@ import ( ) func main() { - orderCopyId := TODO // interface{} | The resource's id + percentageDiscountPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETOrderCopyIdTargetOrder(context.Background(), orderCopyId).Execute() + r, err := apiClient.HasOneApi.GETPercentageDiscountPromotionIdCouponCodesPromotionRule(context.Background(), percentageDiscountPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderCopyIdTargetOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPercentageDiscountPromotionIdCouponCodesPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5381,11 +8555,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderCopyId** | [**interface{}**](.md) | The resource's id | +**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderCopyIdTargetOrderRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdCouponCodesPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -5410,11 +8584,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderFactoryIdSourceOrder +## GETPercentageDiscountPromotionIdCustomPromotionRule -> GETOrderFactoryIdSourceOrder(ctx, orderFactoryId).Execute() +> GETPercentageDiscountPromotionIdCustomPromotionRule(ctx, percentageDiscountPromotionId).Execute() -Retrieve the source order associated to the order factory +Retrieve the custom promotion rule associated to the percentage discount promotion @@ -5431,13 +8605,13 @@ import ( ) func main() { - orderFactoryId := TODO // interface{} | The resource's id + percentageDiscountPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETOrderFactoryIdSourceOrder(context.Background(), orderFactoryId).Execute() + r, err := apiClient.HasOneApi.GETPercentageDiscountPromotionIdCustomPromotionRule(context.Background(), percentageDiscountPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderFactoryIdSourceOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPercentageDiscountPromotionIdCustomPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5449,11 +8623,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderFactoryId** | [**interface{}**](.md) | The resource's id | +**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderFactoryIdSourceOrderRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdCustomPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -5478,11 +8652,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderFactoryIdTargetOrder +## GETPercentageDiscountPromotionIdMarket -> GETOrderFactoryIdTargetOrder(ctx, orderFactoryId).Execute() +> GETPercentageDiscountPromotionIdMarket(ctx, percentageDiscountPromotionId).Execute() -Retrieve the target order associated to the order factory +Retrieve the market associated to the percentage discount promotion @@ -5499,13 +8673,13 @@ import ( ) func main() { - orderFactoryId := TODO // interface{} | The resource's id + percentageDiscountPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETOrderFactoryIdTargetOrder(context.Background(), orderFactoryId).Execute() + r, err := apiClient.HasOneApi.GETPercentageDiscountPromotionIdMarket(context.Background(), percentageDiscountPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderFactoryIdTargetOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPercentageDiscountPromotionIdMarket``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5517,11 +8691,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderFactoryId** | [**interface{}**](.md) | The resource's id | +**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderFactoryIdTargetOrderRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdMarketRequest struct via the builder pattern Name | Type | Description | Notes @@ -5546,11 +8720,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdBillingAddress +## GETPercentageDiscountPromotionIdOrderAmountPromotionRule -> GETOrderIdBillingAddress(ctx, orderId).Execute() +> GETPercentageDiscountPromotionIdOrderAmountPromotionRule(ctx, percentageDiscountPromotionId).Execute() -Retrieve the billing address associated to the order +Retrieve the order amount promotion rule associated to the percentage discount promotion @@ -5567,13 +8741,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + percentageDiscountPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETOrderIdBillingAddress(context.Background(), orderId).Execute() + r, err := apiClient.HasOneApi.GETPercentageDiscountPromotionIdOrderAmountPromotionRule(context.Background(), percentageDiscountPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderIdBillingAddress``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPercentageDiscountPromotionIdOrderAmountPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5585,11 +8759,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdBillingAddressRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdOrderAmountPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -5614,11 +8788,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdCustomer +## GETPercentageDiscountPromotionIdSkuList -> GETOrderIdCustomer(ctx, orderId).Execute() +> GETPercentageDiscountPromotionIdSkuList(ctx, percentageDiscountPromotionId).Execute() -Retrieve the customer associated to the order +Retrieve the sku list associated to the percentage discount promotion @@ -5635,13 +8809,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + percentageDiscountPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETOrderIdCustomer(context.Background(), orderId).Execute() + r, err := apiClient.HasOneApi.GETPercentageDiscountPromotionIdSkuList(context.Background(), percentageDiscountPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderIdCustomer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPercentageDiscountPromotionIdSkuList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5653,11 +8827,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdCustomerRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdSkuListRequest struct via the builder pattern Name | Type | Description | Notes @@ -5682,11 +8856,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdMarket +## GETPercentageDiscountPromotionIdSkuListPromotionRule -> GETOrderIdMarket(ctx, orderId).Execute() +> GETPercentageDiscountPromotionIdSkuListPromotionRule(ctx, percentageDiscountPromotionId).Execute() -Retrieve the market associated to the order +Retrieve the sku list promotion rule associated to the percentage discount promotion @@ -5703,13 +8877,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + percentageDiscountPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETOrderIdMarket(context.Background(), orderId).Execute() + r, err := apiClient.HasOneApi.GETPercentageDiscountPromotionIdSkuListPromotionRule(context.Background(), percentageDiscountPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPercentageDiscountPromotionIdSkuListPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5721,11 +8895,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdMarketRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdSkuListPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -5750,11 +8924,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdPaymentMethod +## GETPriceFrequencyTierIdPrice -> GETOrderIdPaymentMethod(ctx, orderId).Execute() +> GETPriceFrequencyTierIdPrice(ctx, priceFrequencyTierId).Execute() -Retrieve the payment method associated to the order +Retrieve the price associated to the price frequency tier @@ -5771,13 +8945,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + priceFrequencyTierId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETOrderIdPaymentMethod(context.Background(), orderId).Execute() + r, err := apiClient.HasOneApi.GETPriceFrequencyTierIdPrice(context.Background(), priceFrequencyTierId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderIdPaymentMethod``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPriceFrequencyTierIdPrice``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5789,11 +8963,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**priceFrequencyTierId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdPaymentMethodRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceFrequencyTierIdPriceRequest struct via the builder pattern Name | Type | Description | Notes @@ -5818,11 +8992,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderIdShippingAddress +## GETPriceIdJwtCustomer -> GETOrderIdShippingAddress(ctx, orderId).Execute() +> GETPriceIdJwtCustomer(ctx, priceId).Execute() -Retrieve the shipping address associated to the order +Retrieve the jwt customer associated to the price @@ -5839,13 +9013,13 @@ import ( ) func main() { - orderId := TODO // interface{} | The resource's id + priceId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETOrderIdShippingAddress(context.Background(), orderId).Execute() + r, err := apiClient.HasOneApi.GETPriceIdJwtCustomer(context.Background(), priceId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderIdShippingAddress``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPriceIdJwtCustomer``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5857,11 +9031,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderId** | [**interface{}**](.md) | The resource's id | +**priceId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderIdShippingAddressRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceIdJwtCustomerRequest struct via the builder pattern Name | Type | Description | Notes @@ -5886,11 +9060,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderSubscriptionIdCustomer +## GETPriceIdPriceList -> GETOrderSubscriptionIdCustomer(ctx, orderSubscriptionId).Execute() +> GETPriceIdPriceList(ctx, priceId).Execute() -Retrieve the customer associated to the order subscription +Retrieve the price list associated to the price @@ -5907,13 +9081,13 @@ import ( ) func main() { - orderSubscriptionId := TODO // interface{} | The resource's id + priceId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETOrderSubscriptionIdCustomer(context.Background(), orderSubscriptionId).Execute() + r, err := apiClient.HasOneApi.GETPriceIdPriceList(context.Background(), priceId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderSubscriptionIdCustomer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPriceIdPriceList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5925,11 +9099,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | +**priceId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdCustomerRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceIdPriceListRequest struct via the builder pattern Name | Type | Description | Notes @@ -5954,11 +9128,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderSubscriptionIdCustomerPaymentSource +## GETPriceIdSku -> GETOrderSubscriptionIdCustomerPaymentSource(ctx, orderSubscriptionId).Execute() +> GETPriceIdSku(ctx, priceId).Execute() -Retrieve the customer payment source associated to the order subscription +Retrieve the sku associated to the price @@ -5975,13 +9149,13 @@ import ( ) func main() { - orderSubscriptionId := TODO // interface{} | The resource's id + priceId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETOrderSubscriptionIdCustomerPaymentSource(context.Background(), orderSubscriptionId).Execute() + r, err := apiClient.HasOneApi.GETPriceIdSku(context.Background(), priceId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderSubscriptionIdCustomerPaymentSource``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPriceIdSku``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5993,11 +9167,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | +**priceId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdCustomerPaymentSourceRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceIdSkuRequest struct via the builder pattern Name | Type | Description | Notes @@ -6022,11 +9196,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderSubscriptionIdMarket +## GETPriceListSchedulerIdMarket -> GETOrderSubscriptionIdMarket(ctx, orderSubscriptionId).Execute() +> GETPriceListSchedulerIdMarket(ctx, priceListSchedulerId).Execute() -Retrieve the market associated to the order subscription +Retrieve the market associated to the price list scheduler @@ -6043,13 +9217,13 @@ import ( ) func main() { - orderSubscriptionId := TODO // interface{} | The resource's id + priceListSchedulerId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETOrderSubscriptionIdMarket(context.Background(), orderSubscriptionId).Execute() + r, err := apiClient.HasOneApi.GETPriceListSchedulerIdMarket(context.Background(), priceListSchedulerId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderSubscriptionIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPriceListSchedulerIdMarket``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6061,11 +9235,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | +**priceListSchedulerId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdMarketRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceListSchedulerIdMarketRequest struct via the builder pattern Name | Type | Description | Notes @@ -6090,11 +9264,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderSubscriptionIdSourceOrder +## GETPriceListSchedulerIdPriceList -> GETOrderSubscriptionIdSourceOrder(ctx, orderSubscriptionId).Execute() +> GETPriceListSchedulerIdPriceList(ctx, priceListSchedulerId).Execute() -Retrieve the source order associated to the order subscription +Retrieve the price list associated to the price list scheduler @@ -6111,13 +9285,13 @@ import ( ) func main() { - orderSubscriptionId := TODO // interface{} | The resource's id + priceListSchedulerId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETOrderSubscriptionIdSourceOrder(context.Background(), orderSubscriptionId).Execute() + r, err := apiClient.HasOneApi.GETPriceListSchedulerIdPriceList(context.Background(), priceListSchedulerId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderSubscriptionIdSourceOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPriceListSchedulerIdPriceList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6129,11 +9303,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | +**priceListSchedulerId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdSourceOrderRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceListSchedulerIdPriceListRequest struct via the builder pattern Name | Type | Description | Notes @@ -6158,11 +9332,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderSubscriptionIdSubscriptionModel +## GETPriceTierIdPrice -> GETOrderSubscriptionIdSubscriptionModel(ctx, orderSubscriptionId).Execute() +> GETPriceTierIdPrice(ctx, priceTierId).Execute() -Retrieve the subscription model associated to the order subscription +Retrieve the price associated to the price tier @@ -6179,13 +9353,13 @@ import ( ) func main() { - orderSubscriptionId := TODO // interface{} | The resource's id + priceTierId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETOrderSubscriptionIdSubscriptionModel(context.Background(), orderSubscriptionId).Execute() + r, err := apiClient.HasOneApi.GETPriceTierIdPrice(context.Background(), priceTierId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderSubscriptionIdSubscriptionModel``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPriceTierIdPrice``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6197,11 +9371,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | +**priceTierId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdSubscriptionModelRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceTierIdPriceRequest struct via the builder pattern Name | Type | Description | Notes @@ -6226,11 +9400,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderSubscriptionItemIdOrderSubscription +## GETPriceVolumeTierIdPrice -> GETOrderSubscriptionItemIdOrderSubscription(ctx, orderSubscriptionItemId).Execute() +> GETPriceVolumeTierIdPrice(ctx, priceVolumeTierId).Execute() -Retrieve the order subscription associated to the order subscription item +Retrieve the price associated to the price volume tier @@ -6247,13 +9421,13 @@ import ( ) func main() { - orderSubscriptionItemId := TODO // interface{} | The resource's id + priceVolumeTierId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETOrderSubscriptionItemIdOrderSubscription(context.Background(), orderSubscriptionItemId).Execute() + r, err := apiClient.HasOneApi.GETPriceVolumeTierIdPrice(context.Background(), priceVolumeTierId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderSubscriptionItemIdOrderSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPriceVolumeTierIdPrice``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6265,11 +9439,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderSubscriptionItemId** | [**interface{}**](.md) | The resource's id | +**priceVolumeTierId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderSubscriptionItemIdOrderSubscriptionRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceVolumeTierIdPriceRequest struct via the builder pattern Name | Type | Description | Notes @@ -6294,11 +9468,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderValidationRuleIdMarket +## GETPromotionIdCouponCodesPromotionRule -> GETOrderValidationRuleIdMarket(ctx, orderValidationRuleId).Execute() +> GETPromotionIdCouponCodesPromotionRule(ctx, promotionId).Execute() -Retrieve the market associated to the order validation rule +Retrieve the coupon codes promotion rule associated to the promotion @@ -6315,13 +9489,13 @@ import ( ) func main() { - orderValidationRuleId := TODO // interface{} | The resource's id + promotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETOrderValidationRuleIdMarket(context.Background(), orderValidationRuleId).Execute() + r, err := apiClient.HasOneApi.GETPromotionIdCouponCodesPromotionRule(context.Background(), promotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETOrderValidationRuleIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPromotionIdCouponCodesPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6333,11 +9507,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderValidationRuleId** | [**interface{}**](.md) | The resource's id | +**promotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderValidationRuleIdMarketRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPromotionIdCouponCodesPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -6362,11 +9536,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPackageIdStockLocation +## GETPromotionIdCustomPromotionRule -> GETPackageIdStockLocation(ctx, packageId).Execute() +> GETPromotionIdCustomPromotionRule(ctx, promotionId).Execute() -Retrieve the stock location associated to the package +Retrieve the custom promotion rule associated to the promotion @@ -6383,13 +9557,13 @@ import ( ) func main() { - packageId := TODO // interface{} | The resource's id + promotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETPackageIdStockLocation(context.Background(), packageId).Execute() + r, err := apiClient.HasOneApi.GETPromotionIdCustomPromotionRule(context.Background(), promotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPackageIdStockLocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPromotionIdCustomPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6401,11 +9575,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**packageId** | [**interface{}**](.md) | The resource's id | +**promotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPackageIdStockLocationRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPromotionIdCustomPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -6430,11 +9604,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETParcelIdPackage +## GETPromotionIdMarket -> GETParcelIdPackage(ctx, parcelId).Execute() +> GETPromotionIdMarket(ctx, promotionId).Execute() -Retrieve the package associated to the parcel +Retrieve the market associated to the promotion @@ -6451,13 +9625,13 @@ import ( ) func main() { - parcelId := TODO // interface{} | The resource's id + promotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETParcelIdPackage(context.Background(), parcelId).Execute() + r, err := apiClient.HasOneApi.GETPromotionIdMarket(context.Background(), promotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETParcelIdPackage``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPromotionIdMarket``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6469,11 +9643,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**parcelId** | [**interface{}**](.md) | The resource's id | +**promotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETParcelIdPackageRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPromotionIdMarketRequest struct via the builder pattern Name | Type | Description | Notes @@ -6498,11 +9672,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETParcelIdShipment +## GETPromotionIdOrderAmountPromotionRule -> GETParcelIdShipment(ctx, parcelId).Execute() +> GETPromotionIdOrderAmountPromotionRule(ctx, promotionId).Execute() -Retrieve the shipment associated to the parcel +Retrieve the order amount promotion rule associated to the promotion @@ -6519,13 +9693,13 @@ import ( ) func main() { - parcelId := TODO // interface{} | The resource's id + promotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETParcelIdShipment(context.Background(), parcelId).Execute() + r, err := apiClient.HasOneApi.GETPromotionIdOrderAmountPromotionRule(context.Background(), promotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETParcelIdShipment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPromotionIdOrderAmountPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6537,11 +9711,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**parcelId** | [**interface{}**](.md) | The resource's id | +**promotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETParcelIdShipmentRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPromotionIdOrderAmountPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -6566,11 +9740,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETParcelLineItemIdParcel +## GETPromotionIdSkuList -> GETParcelLineItemIdParcel(ctx, parcelLineItemId).Execute() +> GETPromotionIdSkuList(ctx, promotionId).Execute() -Retrieve the parcel associated to the parcel line item +Retrieve the sku list associated to the promotion @@ -6587,13 +9761,13 @@ import ( ) func main() { - parcelLineItemId := TODO // interface{} | The resource's id + promotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETParcelLineItemIdParcel(context.Background(), parcelLineItemId).Execute() + r, err := apiClient.HasOneApi.GETPromotionIdSkuList(context.Background(), promotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETParcelLineItemIdParcel``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPromotionIdSkuList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6605,11 +9779,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**parcelLineItemId** | [**interface{}**](.md) | The resource's id | +**promotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETParcelLineItemIdParcelRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPromotionIdSkuListRequest struct via the builder pattern Name | Type | Description | Notes @@ -6634,11 +9808,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETParcelLineItemIdStockLineItem +## GETPromotionIdSkuListPromotionRule -> GETParcelLineItemIdStockLineItem(ctx, parcelLineItemId).Execute() +> GETPromotionIdSkuListPromotionRule(ctx, promotionId).Execute() -Retrieve the stock line item associated to the parcel line item +Retrieve the sku list promotion rule associated to the promotion @@ -6655,13 +9829,13 @@ import ( ) func main() { - parcelLineItemId := TODO // interface{} | The resource's id + promotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETParcelLineItemIdStockLineItem(context.Background(), parcelLineItemId).Execute() + r, err := apiClient.HasOneApi.GETPromotionIdSkuListPromotionRule(context.Background(), promotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETParcelLineItemIdStockLineItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPromotionIdSkuListPromotionRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6673,11 +9847,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**parcelLineItemId** | [**interface{}**](.md) | The resource's id | +**promotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETParcelLineItemIdStockLineItemRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPromotionIdSkuListPromotionRuleRequest struct via the builder pattern Name | Type | Description | Notes @@ -6702,11 +9876,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPaymentMethodIdMarket +## GETRecurringOrderCopyIdOrderSubscription -> GETPaymentMethodIdMarket(ctx, paymentMethodId).Execute() +> GETRecurringOrderCopyIdOrderSubscription(ctx, recurringOrderCopyId).Execute() -Retrieve the market associated to the payment method +Retrieve the order subscription associated to the recurring order copy @@ -6723,13 +9897,13 @@ import ( ) func main() { - paymentMethodId := TODO // interface{} | The resource's id + recurringOrderCopyId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETPaymentMethodIdMarket(context.Background(), paymentMethodId).Execute() + r, err := apiClient.HasOneApi.GETRecurringOrderCopyIdOrderSubscription(context.Background(), recurringOrderCopyId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPaymentMethodIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETRecurringOrderCopyIdOrderSubscription``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6741,11 +9915,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**paymentMethodId** | [**interface{}**](.md) | The resource's id | +**recurringOrderCopyId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPaymentMethodIdMarketRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETRecurringOrderCopyIdOrderSubscriptionRequest struct via the builder pattern Name | Type | Description | Notes @@ -6770,11 +9944,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPaymentMethodIdPaymentGateway +## GETRecurringOrderCopyIdSourceOrder -> GETPaymentMethodIdPaymentGateway(ctx, paymentMethodId).Execute() +> GETRecurringOrderCopyIdSourceOrder(ctx, recurringOrderCopyId).Execute() -Retrieve the payment gateway associated to the payment method +Retrieve the source order associated to the recurring order copy @@ -6791,13 +9965,13 @@ import ( ) func main() { - paymentMethodId := TODO // interface{} | The resource's id + recurringOrderCopyId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETPaymentMethodIdPaymentGateway(context.Background(), paymentMethodId).Execute() + r, err := apiClient.HasOneApi.GETRecurringOrderCopyIdSourceOrder(context.Background(), recurringOrderCopyId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPaymentMethodIdPaymentGateway``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETRecurringOrderCopyIdSourceOrder``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6809,11 +9983,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**paymentMethodId** | [**interface{}**](.md) | The resource's id | +**recurringOrderCopyId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPaymentMethodIdPaymentGatewayRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETRecurringOrderCopyIdSourceOrderRequest struct via the builder pattern Name | Type | Description | Notes @@ -6838,11 +10012,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPaypalPaymentIdOrder +## GETRecurringOrderCopyIdTargetOrder -> GETPaypalPaymentIdOrder(ctx, paypalPaymentId).Execute() +> GETRecurringOrderCopyIdTargetOrder(ctx, recurringOrderCopyId).Execute() -Retrieve the order associated to the paypal payment +Retrieve the target order associated to the recurring order copy @@ -6859,13 +10033,13 @@ import ( ) func main() { - paypalPaymentId := TODO // interface{} | The resource's id + recurringOrderCopyId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETPaypalPaymentIdOrder(context.Background(), paypalPaymentId).Execute() + r, err := apiClient.HasOneApi.GETRecurringOrderCopyIdTargetOrder(context.Background(), recurringOrderCopyId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPaypalPaymentIdOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETRecurringOrderCopyIdTargetOrder``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6877,11 +10051,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**paypalPaymentId** | [**interface{}**](.md) | The resource's id | +**recurringOrderCopyId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPaypalPaymentIdOrderRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETRecurringOrderCopyIdTargetOrderRequest struct via the builder pattern Name | Type | Description | Notes @@ -6906,11 +10080,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPaypalPaymentIdPaymentGateway +## GETRefundIdOrder -> GETPaypalPaymentIdPaymentGateway(ctx, paypalPaymentId).Execute() +> GETRefundIdOrder(ctx, refundId).Execute() -Retrieve the payment gateway associated to the paypal payment +Retrieve the order associated to the refund @@ -6927,13 +10101,13 @@ import ( ) func main() { - paypalPaymentId := TODO // interface{} | The resource's id + refundId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETPaypalPaymentIdPaymentGateway(context.Background(), paypalPaymentId).Execute() + r, err := apiClient.HasOneApi.GETRefundIdOrder(context.Background(), refundId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPaypalPaymentIdPaymentGateway``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETRefundIdOrder``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6945,11 +10119,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**paypalPaymentId** | [**interface{}**](.md) | The resource's id | +**refundId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPaypalPaymentIdPaymentGatewayRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETRefundIdOrderRequest struct via the builder pattern Name | Type | Description | Notes @@ -6974,11 +10148,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPercentageDiscountPromotionIdCouponCodesPromotionRule +## GETRefundIdReferenceCapture -> GETPercentageDiscountPromotionIdCouponCodesPromotionRule(ctx, percentageDiscountPromotionId).Execute() +> GETRefundIdReferenceCapture(ctx, refundId).Execute() -Retrieve the coupon codes promotion rule associated to the percentage discount promotion +Retrieve the reference capture associated to the refund @@ -6995,13 +10169,13 @@ import ( ) func main() { - percentageDiscountPromotionId := TODO // interface{} | The resource's id + refundId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETPercentageDiscountPromotionIdCouponCodesPromotionRule(context.Background(), percentageDiscountPromotionId).Execute() + r, err := apiClient.HasOneApi.GETRefundIdReferenceCapture(context.Background(), refundId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPercentageDiscountPromotionIdCouponCodesPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETRefundIdReferenceCapture``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7013,11 +10187,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | +**refundId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdCouponCodesPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETRefundIdReferenceCaptureRequest struct via the builder pattern Name | Type | Description | Notes @@ -7042,11 +10216,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPercentageDiscountPromotionIdMarket +## GETRefundIdReturn -> GETPercentageDiscountPromotionIdMarket(ctx, percentageDiscountPromotionId).Execute() +> GETRefundIdReturn(ctx, refundId).Execute() -Retrieve the market associated to the percentage discount promotion +Retrieve the return associated to the refund @@ -7063,13 +10237,13 @@ import ( ) func main() { - percentageDiscountPromotionId := TODO // interface{} | The resource's id + refundId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETPercentageDiscountPromotionIdMarket(context.Background(), percentageDiscountPromotionId).Execute() + r, err := apiClient.HasOneApi.GETRefundIdReturn(context.Background(), refundId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPercentageDiscountPromotionIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETRefundIdReturn``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7081,11 +10255,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | +**refundId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdMarketRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETRefundIdReturnRequest struct via the builder pattern Name | Type | Description | Notes @@ -7110,11 +10284,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPercentageDiscountPromotionIdOrderAmountPromotionRule +## GETReservedStockIdSku -> GETPercentageDiscountPromotionIdOrderAmountPromotionRule(ctx, percentageDiscountPromotionId).Execute() +> GETReservedStockIdSku(ctx, reservedStockId).Execute() -Retrieve the order amount promotion rule associated to the percentage discount promotion +Retrieve the sku associated to the reserved stock @@ -7131,13 +10305,13 @@ import ( ) func main() { - percentageDiscountPromotionId := TODO // interface{} | The resource's id + reservedStockId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETPercentageDiscountPromotionIdOrderAmountPromotionRule(context.Background(), percentageDiscountPromotionId).Execute() + r, err := apiClient.HasOneApi.GETReservedStockIdSku(context.Background(), reservedStockId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPercentageDiscountPromotionIdOrderAmountPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETReservedStockIdSku``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7149,11 +10323,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | +**reservedStockId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdOrderAmountPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReservedStockIdSkuRequest struct via the builder pattern Name | Type | Description | Notes @@ -7178,11 +10352,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPercentageDiscountPromotionIdSkuList +## GETReservedStockIdStockItem -> GETPercentageDiscountPromotionIdSkuList(ctx, percentageDiscountPromotionId).Execute() +> GETReservedStockIdStockItem(ctx, reservedStockId).Execute() -Retrieve the sku list associated to the percentage discount promotion +Retrieve the stock item associated to the reserved stock @@ -7199,13 +10373,13 @@ import ( ) func main() { - percentageDiscountPromotionId := TODO // interface{} | The resource's id + reservedStockId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETPercentageDiscountPromotionIdSkuList(context.Background(), percentageDiscountPromotionId).Execute() + r, err := apiClient.HasOneApi.GETReservedStockIdStockItem(context.Background(), reservedStockId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPercentageDiscountPromotionIdSkuList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETReservedStockIdStockItem``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7217,11 +10391,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | +**reservedStockId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdSkuListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReservedStockIdStockItemRequest struct via the builder pattern Name | Type | Description | Notes @@ -7246,11 +10420,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPercentageDiscountPromotionIdSkuListPromotionRule +## GETReturnIdCustomer -> GETPercentageDiscountPromotionIdSkuListPromotionRule(ctx, percentageDiscountPromotionId).Execute() +> GETReturnIdCustomer(ctx, returnId).Execute() -Retrieve the sku list promotion rule associated to the percentage discount promotion +Retrieve the customer associated to the return @@ -7267,13 +10441,13 @@ import ( ) func main() { - percentageDiscountPromotionId := TODO // interface{} | The resource's id + returnId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETPercentageDiscountPromotionIdSkuListPromotionRule(context.Background(), percentageDiscountPromotionId).Execute() + r, err := apiClient.HasOneApi.GETReturnIdCustomer(context.Background(), returnId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPercentageDiscountPromotionIdSkuListPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETReturnIdCustomer``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7285,11 +10459,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | +**returnId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdSkuListPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReturnIdCustomerRequest struct via the builder pattern Name | Type | Description | Notes @@ -7314,11 +10488,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPriceFrequencyTierIdPrice +## GETReturnIdDestinationAddress -> GETPriceFrequencyTierIdPrice(ctx, priceFrequencyTierId).Execute() +> GETReturnIdDestinationAddress(ctx, returnId).Execute() -Retrieve the price associated to the price frequency tier +Retrieve the destination address associated to the return @@ -7335,13 +10509,13 @@ import ( ) func main() { - priceFrequencyTierId := TODO // interface{} | The resource's id + returnId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETPriceFrequencyTierIdPrice(context.Background(), priceFrequencyTierId).Execute() + r, err := apiClient.HasOneApi.GETReturnIdDestinationAddress(context.Background(), returnId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPriceFrequencyTierIdPrice``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETReturnIdDestinationAddress``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7353,11 +10527,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**priceFrequencyTierId** | [**interface{}**](.md) | The resource's id | +**returnId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPriceFrequencyTierIdPriceRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReturnIdDestinationAddressRequest struct via the builder pattern Name | Type | Description | Notes @@ -7382,11 +10556,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPriceIdPriceList +## GETReturnIdOrder -> GETPriceIdPriceList(ctx, priceId).Execute() +> GETReturnIdOrder(ctx, returnId).Execute() -Retrieve the price list associated to the price +Retrieve the order associated to the return @@ -7403,13 +10577,13 @@ import ( ) func main() { - priceId := TODO // interface{} | The resource's id + returnId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETPriceIdPriceList(context.Background(), priceId).Execute() + r, err := apiClient.HasOneApi.GETReturnIdOrder(context.Background(), returnId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPriceIdPriceList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETReturnIdOrder``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7421,11 +10595,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**priceId** | [**interface{}**](.md) | The resource's id | +**returnId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPriceIdPriceListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReturnIdOrderRequest struct via the builder pattern Name | Type | Description | Notes @@ -7450,11 +10624,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPriceIdSku +## GETReturnIdOriginAddress -> GETPriceIdSku(ctx, priceId).Execute() +> GETReturnIdOriginAddress(ctx, returnId).Execute() -Retrieve the sku associated to the price +Retrieve the origin address associated to the return @@ -7471,13 +10645,13 @@ import ( ) func main() { - priceId := TODO // interface{} | The resource's id + returnId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETPriceIdSku(context.Background(), priceId).Execute() + r, err := apiClient.HasOneApi.GETReturnIdOriginAddress(context.Background(), returnId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPriceIdSku``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETReturnIdOriginAddress``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7489,11 +10663,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**priceId** | [**interface{}**](.md) | The resource's id | +**returnId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPriceIdSkuRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReturnIdOriginAddressRequest struct via the builder pattern Name | Type | Description | Notes @@ -7518,11 +10692,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPriceTierIdPrice +## GETReturnIdReferenceCapture -> GETPriceTierIdPrice(ctx, priceTierId).Execute() +> GETReturnIdReferenceCapture(ctx, returnId).Execute() -Retrieve the price associated to the price tier +Retrieve the reference capture associated to the return @@ -7539,13 +10713,13 @@ import ( ) func main() { - priceTierId := TODO // interface{} | The resource's id + returnId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETPriceTierIdPrice(context.Background(), priceTierId).Execute() + r, err := apiClient.HasOneApi.GETReturnIdReferenceCapture(context.Background(), returnId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPriceTierIdPrice``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETReturnIdReferenceCapture``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7557,11 +10731,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**priceTierId** | [**interface{}**](.md) | The resource's id | +**returnId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPriceTierIdPriceRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReturnIdReferenceCaptureRequest struct via the builder pattern Name | Type | Description | Notes @@ -7586,11 +10760,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPriceVolumeTierIdPrice +## GETReturnIdReferenceRefund -> GETPriceVolumeTierIdPrice(ctx, priceVolumeTierId).Execute() +> GETReturnIdReferenceRefund(ctx, returnId).Execute() -Retrieve the price associated to the price volume tier +Retrieve the reference refund associated to the return @@ -7607,13 +10781,13 @@ import ( ) func main() { - priceVolumeTierId := TODO // interface{} | The resource's id + returnId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETPriceVolumeTierIdPrice(context.Background(), priceVolumeTierId).Execute() + r, err := apiClient.HasOneApi.GETReturnIdReferenceRefund(context.Background(), returnId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPriceVolumeTierIdPrice``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETReturnIdReferenceRefund``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7625,11 +10799,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**priceVolumeTierId** | [**interface{}**](.md) | The resource's id | +**returnId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPriceVolumeTierIdPriceRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReturnIdReferenceRefundRequest struct via the builder pattern Name | Type | Description | Notes @@ -7654,11 +10828,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPromotionIdCouponCodesPromotionRule +## GETReturnIdStockLocation -> GETPromotionIdCouponCodesPromotionRule(ctx, promotionId).Execute() +> GETReturnIdStockLocation(ctx, returnId).Execute() -Retrieve the coupon codes promotion rule associated to the promotion +Retrieve the stock location associated to the return @@ -7675,13 +10849,13 @@ import ( ) func main() { - promotionId := TODO // interface{} | The resource's id + returnId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETPromotionIdCouponCodesPromotionRule(context.Background(), promotionId).Execute() + r, err := apiClient.HasOneApi.GETReturnIdStockLocation(context.Background(), returnId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPromotionIdCouponCodesPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETReturnIdStockLocation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7693,11 +10867,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**promotionId** | [**interface{}**](.md) | The resource's id | +**returnId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPromotionIdCouponCodesPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReturnIdStockLocationRequest struct via the builder pattern Name | Type | Description | Notes @@ -7722,11 +10896,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPromotionIdMarket +## GETReturnLineItemIdLineItem -> GETPromotionIdMarket(ctx, promotionId).Execute() +> GETReturnLineItemIdLineItem(ctx, returnLineItemId).Execute() -Retrieve the market associated to the promotion +Retrieve the line item associated to the return line item @@ -7743,13 +10917,13 @@ import ( ) func main() { - promotionId := TODO // interface{} | The resource's id + returnLineItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETPromotionIdMarket(context.Background(), promotionId).Execute() + r, err := apiClient.HasOneApi.GETReturnLineItemIdLineItem(context.Background(), returnLineItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPromotionIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETReturnLineItemIdLineItem``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7761,11 +10935,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**promotionId** | [**interface{}**](.md) | The resource's id | +**returnLineItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPromotionIdMarketRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReturnLineItemIdLineItemRequest struct via the builder pattern Name | Type | Description | Notes @@ -7790,11 +10964,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPromotionIdOrderAmountPromotionRule +## GETReturnLineItemIdReturn -> GETPromotionIdOrderAmountPromotionRule(ctx, promotionId).Execute() +> GETReturnLineItemIdReturn(ctx, returnLineItemId).Execute() -Retrieve the order amount promotion rule associated to the promotion +Retrieve the return associated to the return line item @@ -7811,13 +10985,13 @@ import ( ) func main() { - promotionId := TODO // interface{} | The resource's id + returnLineItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETPromotionIdOrderAmountPromotionRule(context.Background(), promotionId).Execute() + r, err := apiClient.HasOneApi.GETReturnLineItemIdReturn(context.Background(), returnLineItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPromotionIdOrderAmountPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETReturnLineItemIdReturn``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7829,11 +11003,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**promotionId** | [**interface{}**](.md) | The resource's id | +**returnLineItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPromotionIdOrderAmountPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETReturnLineItemIdReturnRequest struct via the builder pattern Name | Type | Description | Notes @@ -7858,11 +11032,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPromotionIdSkuListPromotionRule +## GETSatispayPaymentIdOrder -> GETPromotionIdSkuListPromotionRule(ctx, promotionId).Execute() +> GETSatispayPaymentIdOrder(ctx, satispayPaymentId).Execute() -Retrieve the sku list promotion rule associated to the promotion +Retrieve the order associated to the satispay payment @@ -7879,13 +11053,13 @@ import ( ) func main() { - promotionId := TODO // interface{} | The resource's id + satispayPaymentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETPromotionIdSkuListPromotionRule(context.Background(), promotionId).Execute() + r, err := apiClient.HasOneApi.GETSatispayPaymentIdOrder(context.Background(), satispayPaymentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETPromotionIdSkuListPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETSatispayPaymentIdOrder``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7897,11 +11071,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**promotionId** | [**interface{}**](.md) | The resource's id | +**satispayPaymentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPromotionIdSkuListPromotionRuleRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSatispayPaymentIdOrderRequest struct via the builder pattern Name | Type | Description | Notes @@ -7926,11 +11100,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETRecurringOrderCopyIdOrderSubscription +## GETSatispayPaymentIdPaymentGateway -> GETRecurringOrderCopyIdOrderSubscription(ctx, recurringOrderCopyId).Execute() +> GETSatispayPaymentIdPaymentGateway(ctx, satispayPaymentId).Execute() -Retrieve the order subscription associated to the recurring order copy +Retrieve the payment gateway associated to the satispay payment @@ -7947,13 +11121,13 @@ import ( ) func main() { - recurringOrderCopyId := TODO // interface{} | The resource's id + satispayPaymentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETRecurringOrderCopyIdOrderSubscription(context.Background(), recurringOrderCopyId).Execute() + r, err := apiClient.HasOneApi.GETSatispayPaymentIdPaymentGateway(context.Background(), satispayPaymentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETRecurringOrderCopyIdOrderSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETSatispayPaymentIdPaymentGateway``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7965,11 +11139,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**recurringOrderCopyId** | [**interface{}**](.md) | The resource's id | +**satispayPaymentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETRecurringOrderCopyIdOrderSubscriptionRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSatispayPaymentIdPaymentGatewayRequest struct via the builder pattern Name | Type | Description | Notes @@ -7994,11 +11168,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETRecurringOrderCopyIdSourceOrder +## GETShipmentIdDeliveryLeadTime -> GETRecurringOrderCopyIdSourceOrder(ctx, recurringOrderCopyId).Execute() +> GETShipmentIdDeliveryLeadTime(ctx, shipmentId).Execute() -Retrieve the source order associated to the recurring order copy +Retrieve the delivery lead time associated to the shipment @@ -8015,13 +11189,13 @@ import ( ) func main() { - recurringOrderCopyId := TODO // interface{} | The resource's id + shipmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETRecurringOrderCopyIdSourceOrder(context.Background(), recurringOrderCopyId).Execute() + r, err := apiClient.HasOneApi.GETShipmentIdDeliveryLeadTime(context.Background(), shipmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETRecurringOrderCopyIdSourceOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShipmentIdDeliveryLeadTime``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8033,11 +11207,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**recurringOrderCopyId** | [**interface{}**](.md) | The resource's id | +**shipmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETRecurringOrderCopyIdSourceOrderRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShipmentIdDeliveryLeadTimeRequest struct via the builder pattern Name | Type | Description | Notes @@ -8062,11 +11236,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETRecurringOrderCopyIdTargetOrder +## GETShipmentIdInventoryStockLocation -> GETRecurringOrderCopyIdTargetOrder(ctx, recurringOrderCopyId).Execute() +> GETShipmentIdInventoryStockLocation(ctx, shipmentId).Execute() -Retrieve the target order associated to the recurring order copy +Retrieve the inventory stock location associated to the shipment @@ -8083,13 +11257,13 @@ import ( ) func main() { - recurringOrderCopyId := TODO // interface{} | The resource's id + shipmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETRecurringOrderCopyIdTargetOrder(context.Background(), recurringOrderCopyId).Execute() + r, err := apiClient.HasOneApi.GETShipmentIdInventoryStockLocation(context.Background(), shipmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETRecurringOrderCopyIdTargetOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShipmentIdInventoryStockLocation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8101,11 +11275,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**recurringOrderCopyId** | [**interface{}**](.md) | The resource's id | +**shipmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETRecurringOrderCopyIdTargetOrderRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShipmentIdInventoryStockLocationRequest struct via the builder pattern Name | Type | Description | Notes @@ -8130,11 +11304,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETRefundIdOrder +## GETShipmentIdOrder -> GETRefundIdOrder(ctx, refundId).Execute() +> GETShipmentIdOrder(ctx, shipmentId).Execute() -Retrieve the order associated to the refund +Retrieve the order associated to the shipment @@ -8151,13 +11325,13 @@ import ( ) func main() { - refundId := TODO // interface{} | The resource's id + shipmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETRefundIdOrder(context.Background(), refundId).Execute() + r, err := apiClient.HasOneApi.GETShipmentIdOrder(context.Background(), shipmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETRefundIdOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShipmentIdOrder``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8169,11 +11343,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**refundId** | [**interface{}**](.md) | The resource's id | +**shipmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETRefundIdOrderRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShipmentIdOrderRequest struct via the builder pattern Name | Type | Description | Notes @@ -8198,11 +11372,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETRefundIdReferenceCapture +## GETShipmentIdOriginAddress -> GETRefundIdReferenceCapture(ctx, refundId).Execute() +> GETShipmentIdOriginAddress(ctx, shipmentId).Execute() -Retrieve the reference capture associated to the refund +Retrieve the origin address associated to the shipment @@ -8219,13 +11393,13 @@ import ( ) func main() { - refundId := TODO // interface{} | The resource's id + shipmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETRefundIdReferenceCapture(context.Background(), refundId).Execute() + r, err := apiClient.HasOneApi.GETShipmentIdOriginAddress(context.Background(), shipmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETRefundIdReferenceCapture``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShipmentIdOriginAddress``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8237,11 +11411,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**refundId** | [**interface{}**](.md) | The resource's id | +**shipmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETRefundIdReferenceCaptureRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShipmentIdOriginAddressRequest struct via the builder pattern Name | Type | Description | Notes @@ -8266,11 +11440,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETReturnIdCustomer +## GETShipmentIdShippingAddress -> GETReturnIdCustomer(ctx, returnId).Execute() +> GETShipmentIdShippingAddress(ctx, shipmentId).Execute() -Retrieve the customer associated to the return +Retrieve the shipping address associated to the shipment @@ -8287,13 +11461,13 @@ import ( ) func main() { - returnId := TODO // interface{} | The resource's id + shipmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETReturnIdCustomer(context.Background(), returnId).Execute() + r, err := apiClient.HasOneApi.GETShipmentIdShippingAddress(context.Background(), shipmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETReturnIdCustomer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShipmentIdShippingAddress``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8305,11 +11479,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**returnId** | [**interface{}**](.md) | The resource's id | +**shipmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETReturnIdCustomerRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShipmentIdShippingAddressRequest struct via the builder pattern Name | Type | Description | Notes @@ -8334,11 +11508,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETReturnIdDestinationAddress +## GETShipmentIdShippingCategory -> GETReturnIdDestinationAddress(ctx, returnId).Execute() +> GETShipmentIdShippingCategory(ctx, shipmentId).Execute() -Retrieve the destination address associated to the return +Retrieve the shipping category associated to the shipment @@ -8355,13 +11529,13 @@ import ( ) func main() { - returnId := TODO // interface{} | The resource's id + shipmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETReturnIdDestinationAddress(context.Background(), returnId).Execute() + r, err := apiClient.HasOneApi.GETShipmentIdShippingCategory(context.Background(), shipmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETReturnIdDestinationAddress``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShipmentIdShippingCategory``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8373,11 +11547,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**returnId** | [**interface{}**](.md) | The resource's id | +**shipmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETReturnIdDestinationAddressRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShipmentIdShippingCategoryRequest struct via the builder pattern Name | Type | Description | Notes @@ -8402,11 +11576,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETReturnIdOrder +## GETShipmentIdShippingMethod -> GETReturnIdOrder(ctx, returnId).Execute() +> GETShipmentIdShippingMethod(ctx, shipmentId).Execute() -Retrieve the order associated to the return +Retrieve the shipping method associated to the shipment @@ -8423,13 +11597,13 @@ import ( ) func main() { - returnId := TODO // interface{} | The resource's id + shipmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETReturnIdOrder(context.Background(), returnId).Execute() + r, err := apiClient.HasOneApi.GETShipmentIdShippingMethod(context.Background(), shipmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETReturnIdOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShipmentIdShippingMethod``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8441,11 +11615,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**returnId** | [**interface{}**](.md) | The resource's id | +**shipmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETReturnIdOrderRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShipmentIdShippingMethodRequest struct via the builder pattern Name | Type | Description | Notes @@ -8470,11 +11644,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETReturnIdOriginAddress +## GETShipmentIdStockLocation -> GETReturnIdOriginAddress(ctx, returnId).Execute() +> GETShipmentIdStockLocation(ctx, shipmentId).Execute() -Retrieve the origin address associated to the return +Retrieve the stock location associated to the shipment @@ -8491,13 +11665,13 @@ import ( ) func main() { - returnId := TODO // interface{} | The resource's id + shipmentId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETReturnIdOriginAddress(context.Background(), returnId).Execute() + r, err := apiClient.HasOneApi.GETShipmentIdStockLocation(context.Background(), shipmentId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETReturnIdOriginAddress``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShipmentIdStockLocation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8509,11 +11683,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**returnId** | [**interface{}**](.md) | The resource's id | +**shipmentId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETReturnIdOriginAddressRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShipmentIdStockLocationRequest struct via the builder pattern Name | Type | Description | Notes @@ -8538,11 +11712,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETReturnIdStockLocation +## GETShippingMethodIdDeliveryLeadTimeForShipment -> GETReturnIdStockLocation(ctx, returnId).Execute() +> GETShippingMethodIdDeliveryLeadTimeForShipment(ctx, shippingMethodId).Execute() -Retrieve the stock location associated to the return +Retrieve the delivery lead time for shipment associated to the shipping method @@ -8559,13 +11733,13 @@ import ( ) func main() { - returnId := TODO // interface{} | The resource's id + shippingMethodId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETReturnIdStockLocation(context.Background(), returnId).Execute() + r, err := apiClient.HasOneApi.GETShippingMethodIdDeliveryLeadTimeForShipment(context.Background(), shippingMethodId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETReturnIdStockLocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShippingMethodIdDeliveryLeadTimeForShipment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8577,11 +11751,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**returnId** | [**interface{}**](.md) | The resource's id | +**shippingMethodId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETReturnIdStockLocationRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingMethodIdDeliveryLeadTimeForShipmentRequest struct via the builder pattern Name | Type | Description | Notes @@ -8606,11 +11780,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETReturnLineItemIdLineItem +## GETShippingMethodIdMarket -> GETReturnLineItemIdLineItem(ctx, returnLineItemId).Execute() +> GETShippingMethodIdMarket(ctx, shippingMethodId).Execute() -Retrieve the line item associated to the return line item +Retrieve the market associated to the shipping method @@ -8627,13 +11801,13 @@ import ( ) func main() { - returnLineItemId := TODO // interface{} | The resource's id + shippingMethodId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETReturnLineItemIdLineItem(context.Background(), returnLineItemId).Execute() + r, err := apiClient.HasOneApi.GETShippingMethodIdMarket(context.Background(), shippingMethodId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETReturnLineItemIdLineItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShippingMethodIdMarket``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8645,11 +11819,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**returnLineItemId** | [**interface{}**](.md) | The resource's id | +**shippingMethodId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETReturnLineItemIdLineItemRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingMethodIdMarketRequest struct via the builder pattern Name | Type | Description | Notes @@ -8674,11 +11848,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETReturnLineItemIdReturn +## GETShippingMethodIdShippingCategory -> GETReturnLineItemIdReturn(ctx, returnLineItemId).Execute() +> GETShippingMethodIdShippingCategory(ctx, shippingMethodId).Execute() -Retrieve the return associated to the return line item +Retrieve the shipping category associated to the shipping method @@ -8695,13 +11869,13 @@ import ( ) func main() { - returnLineItemId := TODO // interface{} | The resource's id + shippingMethodId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETReturnLineItemIdReturn(context.Background(), returnLineItemId).Execute() + r, err := apiClient.HasOneApi.GETShippingMethodIdShippingCategory(context.Background(), shippingMethodId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETReturnLineItemIdReturn``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShippingMethodIdShippingCategory``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8713,11 +11887,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**returnLineItemId** | [**interface{}**](.md) | The resource's id | +**shippingMethodId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETReturnLineItemIdReturnRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingMethodIdShippingCategoryRequest struct via the builder pattern Name | Type | Description | Notes @@ -8742,11 +11916,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSatispayPaymentIdOrder +## GETShippingMethodIdShippingZone -> GETSatispayPaymentIdOrder(ctx, satispayPaymentId).Execute() +> GETShippingMethodIdShippingZone(ctx, shippingMethodId).Execute() -Retrieve the order associated to the satispay payment +Retrieve the shipping zone associated to the shipping method @@ -8763,13 +11937,13 @@ import ( ) func main() { - satispayPaymentId := TODO // interface{} | The resource's id + shippingMethodId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETSatispayPaymentIdOrder(context.Background(), satispayPaymentId).Execute() + r, err := apiClient.HasOneApi.GETShippingMethodIdShippingZone(context.Background(), shippingMethodId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETSatispayPaymentIdOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShippingMethodIdShippingZone``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8781,11 +11955,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**satispayPaymentId** | [**interface{}**](.md) | The resource's id | +**shippingMethodId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSatispayPaymentIdOrderRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingMethodIdShippingZoneRequest struct via the builder pattern Name | Type | Description | Notes @@ -8810,11 +11984,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSatispayPaymentIdPaymentGateway +## GETShippingMethodIdStockLocation -> GETSatispayPaymentIdPaymentGateway(ctx, satispayPaymentId).Execute() +> GETShippingMethodIdStockLocation(ctx, shippingMethodId).Execute() -Retrieve the payment gateway associated to the satispay payment +Retrieve the stock location associated to the shipping method @@ -8831,13 +12005,13 @@ import ( ) func main() { - satispayPaymentId := TODO // interface{} | The resource's id + shippingMethodId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETSatispayPaymentIdPaymentGateway(context.Background(), satispayPaymentId).Execute() + r, err := apiClient.HasOneApi.GETShippingMethodIdStockLocation(context.Background(), shippingMethodId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETSatispayPaymentIdPaymentGateway``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShippingMethodIdStockLocation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8849,11 +12023,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**satispayPaymentId** | [**interface{}**](.md) | The resource's id | +**shippingMethodId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSatispayPaymentIdPaymentGatewayRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingMethodIdStockLocationRequest struct via the builder pattern Name | Type | Description | Notes @@ -8878,11 +12052,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShipmentIdDeliveryLeadTime +## GETShippingMethodTierIdShippingMethod -> GETShipmentIdDeliveryLeadTime(ctx, shipmentId).Execute() +> GETShippingMethodTierIdShippingMethod(ctx, shippingMethodTierId).Execute() -Retrieve the delivery lead time associated to the shipment +Retrieve the shipping method associated to the shipping method tier @@ -8899,13 +12073,13 @@ import ( ) func main() { - shipmentId := TODO // interface{} | The resource's id + shippingMethodTierId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETShipmentIdDeliveryLeadTime(context.Background(), shipmentId).Execute() + r, err := apiClient.HasOneApi.GETShippingMethodTierIdShippingMethod(context.Background(), shippingMethodTierId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShipmentIdDeliveryLeadTime``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShippingMethodTierIdShippingMethod``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8917,11 +12091,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shipmentId** | [**interface{}**](.md) | The resource's id | +**shippingMethodTierId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShipmentIdDeliveryLeadTimeRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingMethodTierIdShippingMethodRequest struct via the builder pattern Name | Type | Description | Notes @@ -8946,11 +12120,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShipmentIdOrder +## GETShippingWeightTierIdShippingMethod -> GETShipmentIdOrder(ctx, shipmentId).Execute() +> GETShippingWeightTierIdShippingMethod(ctx, shippingWeightTierId).Execute() -Retrieve the order associated to the shipment +Retrieve the shipping method associated to the shipping weight tier @@ -8967,13 +12141,13 @@ import ( ) func main() { - shipmentId := TODO // interface{} | The resource's id + shippingWeightTierId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETShipmentIdOrder(context.Background(), shipmentId).Execute() + r, err := apiClient.HasOneApi.GETShippingWeightTierIdShippingMethod(context.Background(), shippingWeightTierId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShipmentIdOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShippingWeightTierIdShippingMethod``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8985,11 +12159,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shipmentId** | [**interface{}**](.md) | The resource's id | +**shippingWeightTierId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShipmentIdOrderRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETShippingWeightTierIdShippingMethodRequest struct via the builder pattern Name | Type | Description | Notes @@ -9014,11 +12188,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShipmentIdOriginAddress +## GETSkuIdJwtCustomer -> GETShipmentIdOriginAddress(ctx, shipmentId).Execute() +> GETSkuIdJwtCustomer(ctx, skuId).Execute() -Retrieve the origin address associated to the shipment +Retrieve the jwt customer associated to the SKU @@ -9035,13 +12209,13 @@ import ( ) func main() { - shipmentId := TODO // interface{} | The resource's id + skuId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETShipmentIdOriginAddress(context.Background(), shipmentId).Execute() + r, err := apiClient.HasOneApi.GETSkuIdJwtCustomer(context.Background(), skuId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShipmentIdOriginAddress``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETSkuIdJwtCustomer``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9053,11 +12227,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shipmentId** | [**interface{}**](.md) | The resource's id | +**skuId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShipmentIdOriginAddressRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuIdJwtCustomerRequest struct via the builder pattern Name | Type | Description | Notes @@ -9082,11 +12256,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShipmentIdShippingAddress +## GETSkuIdShippingCategory -> GETShipmentIdShippingAddress(ctx, shipmentId).Execute() +> GETSkuIdShippingCategory(ctx, skuId).Execute() -Retrieve the shipping address associated to the shipment +Retrieve the shipping category associated to the SKU @@ -9103,13 +12277,13 @@ import ( ) func main() { - shipmentId := TODO // interface{} | The resource's id + skuId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETShipmentIdShippingAddress(context.Background(), shipmentId).Execute() + r, err := apiClient.HasOneApi.GETSkuIdShippingCategory(context.Background(), skuId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShipmentIdShippingAddress``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETSkuIdShippingCategory``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9121,11 +12295,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shipmentId** | [**interface{}**](.md) | The resource's id | +**skuId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShipmentIdShippingAddressRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuIdShippingCategoryRequest struct via the builder pattern Name | Type | Description | Notes @@ -9150,11 +12324,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShipmentIdShippingCategory +## GETSkuListIdCustomer -> GETShipmentIdShippingCategory(ctx, shipmentId).Execute() +> GETSkuListIdCustomer(ctx, skuListId).Execute() -Retrieve the shipping category associated to the shipment +Retrieve the customer associated to the SKU list @@ -9171,13 +12345,13 @@ import ( ) func main() { - shipmentId := TODO // interface{} | The resource's id + skuListId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETShipmentIdShippingCategory(context.Background(), shipmentId).Execute() + r, err := apiClient.HasOneApi.GETSkuListIdCustomer(context.Background(), skuListId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShipmentIdShippingCategory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETSkuListIdCustomer``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9189,11 +12363,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shipmentId** | [**interface{}**](.md) | The resource's id | +**skuListId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShipmentIdShippingCategoryRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuListIdCustomerRequest struct via the builder pattern Name | Type | Description | Notes @@ -9218,11 +12392,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShipmentIdShippingMethod +## GETSkuListItemIdSku -> GETShipmentIdShippingMethod(ctx, shipmentId).Execute() +> GETSkuListItemIdSku(ctx, skuListItemId).Execute() -Retrieve the shipping method associated to the shipment +Retrieve the sku associated to the SKU list item @@ -9239,13 +12413,13 @@ import ( ) func main() { - shipmentId := TODO // interface{} | The resource's id + skuListItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETShipmentIdShippingMethod(context.Background(), shipmentId).Execute() + r, err := apiClient.HasOneApi.GETSkuListItemIdSku(context.Background(), skuListItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShipmentIdShippingMethod``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETSkuListItemIdSku``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9257,11 +12431,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shipmentId** | [**interface{}**](.md) | The resource's id | +**skuListItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShipmentIdShippingMethodRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuListItemIdSkuRequest struct via the builder pattern Name | Type | Description | Notes @@ -9286,11 +12460,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShipmentIdStockLocation +## GETSkuListItemIdSkuList -> GETShipmentIdStockLocation(ctx, shipmentId).Execute() +> GETSkuListItemIdSkuList(ctx, skuListItemId).Execute() -Retrieve the stock location associated to the shipment +Retrieve the sku list associated to the SKU list item @@ -9307,13 +12481,13 @@ import ( ) func main() { - shipmentId := TODO // interface{} | The resource's id + skuListItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETShipmentIdStockLocation(context.Background(), shipmentId).Execute() + r, err := apiClient.HasOneApi.GETSkuListItemIdSkuList(context.Background(), skuListItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShipmentIdStockLocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETSkuListItemIdSkuList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9325,11 +12499,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shipmentId** | [**interface{}**](.md) | The resource's id | +**skuListItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShipmentIdStockLocationRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuListItemIdSkuListRequest struct via the builder pattern Name | Type | Description | Notes @@ -9354,11 +12528,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShippingMethodIdDeliveryLeadTimeForShipment +## GETSkuListPromotionRuleIdSkuList -> GETShippingMethodIdDeliveryLeadTimeForShipment(ctx, shippingMethodId).Execute() +> GETSkuListPromotionRuleIdSkuList(ctx, skuListPromotionRuleId).Execute() -Retrieve the delivery lead time for shipment associated to the shipping method +Retrieve the sku list associated to the SKU list promotion rule @@ -9375,13 +12549,13 @@ import ( ) func main() { - shippingMethodId := TODO // interface{} | The resource's id + skuListPromotionRuleId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETShippingMethodIdDeliveryLeadTimeForShipment(context.Background(), shippingMethodId).Execute() + r, err := apiClient.HasOneApi.GETSkuListPromotionRuleIdSkuList(context.Background(), skuListPromotionRuleId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShippingMethodIdDeliveryLeadTimeForShipment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETSkuListPromotionRuleIdSkuList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9393,11 +12567,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shippingMethodId** | [**interface{}**](.md) | The resource's id | +**skuListPromotionRuleId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShippingMethodIdDeliveryLeadTimeForShipmentRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuListPromotionRuleIdSkuListRequest struct via the builder pattern Name | Type | Description | Notes @@ -9422,11 +12596,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShippingMethodIdMarket +## GETSkuOptionIdMarket -> GETShippingMethodIdMarket(ctx, shippingMethodId).Execute() +> GETSkuOptionIdMarket(ctx, skuOptionId).Execute() -Retrieve the market associated to the shipping method +Retrieve the market associated to the SKU option @@ -9443,13 +12617,13 @@ import ( ) func main() { - shippingMethodId := TODO // interface{} | The resource's id + skuOptionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETShippingMethodIdMarket(context.Background(), shippingMethodId).Execute() + r, err := apiClient.HasOneApi.GETSkuOptionIdMarket(context.Background(), skuOptionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShippingMethodIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETSkuOptionIdMarket``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9461,11 +12635,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shippingMethodId** | [**interface{}**](.md) | The resource's id | +**skuOptionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShippingMethodIdMarketRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETSkuOptionIdMarketRequest struct via the builder pattern Name | Type | Description | Notes @@ -9490,11 +12664,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShippingMethodIdShippingCategory +## GETStockItemIdReservedStock -> GETShippingMethodIdShippingCategory(ctx, shippingMethodId).Execute() +> GETStockItemIdReservedStock(ctx, stockItemId).Execute() -Retrieve the shipping category associated to the shipping method +Retrieve the reserved stock associated to the stock item @@ -9511,13 +12685,13 @@ import ( ) func main() { - shippingMethodId := TODO // interface{} | The resource's id + stockItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETShippingMethodIdShippingCategory(context.Background(), shippingMethodId).Execute() + r, err := apiClient.HasOneApi.GETStockItemIdReservedStock(context.Background(), stockItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShippingMethodIdShippingCategory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockItemIdReservedStock``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9529,11 +12703,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shippingMethodId** | [**interface{}**](.md) | The resource's id | +**stockItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShippingMethodIdShippingCategoryRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockItemIdReservedStockRequest struct via the builder pattern Name | Type | Description | Notes @@ -9558,11 +12732,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShippingMethodIdShippingZone +## GETStockItemIdSku -> GETShippingMethodIdShippingZone(ctx, shippingMethodId).Execute() +> GETStockItemIdSku(ctx, stockItemId).Execute() -Retrieve the shipping zone associated to the shipping method +Retrieve the sku associated to the stock item @@ -9579,13 +12753,13 @@ import ( ) func main() { - shippingMethodId := TODO // interface{} | The resource's id + stockItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETShippingMethodIdShippingZone(context.Background(), shippingMethodId).Execute() + r, err := apiClient.HasOneApi.GETStockItemIdSku(context.Background(), stockItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShippingMethodIdShippingZone``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockItemIdSku``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9597,11 +12771,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shippingMethodId** | [**interface{}**](.md) | The resource's id | +**stockItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShippingMethodIdShippingZoneRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockItemIdSkuRequest struct via the builder pattern Name | Type | Description | Notes @@ -9626,11 +12800,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShippingMethodIdStockLocation +## GETStockItemIdStockLocation -> GETShippingMethodIdStockLocation(ctx, shippingMethodId).Execute() +> GETStockItemIdStockLocation(ctx, stockItemId).Execute() -Retrieve the stock location associated to the shipping method +Retrieve the stock location associated to the stock item @@ -9647,13 +12821,13 @@ import ( ) func main() { - shippingMethodId := TODO // interface{} | The resource's id + stockItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETShippingMethodIdStockLocation(context.Background(), shippingMethodId).Execute() + r, err := apiClient.HasOneApi.GETStockItemIdStockLocation(context.Background(), stockItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShippingMethodIdStockLocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockItemIdStockLocation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9665,11 +12839,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shippingMethodId** | [**interface{}**](.md) | The resource's id | +**stockItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShippingMethodIdStockLocationRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockItemIdStockLocationRequest struct via the builder pattern Name | Type | Description | Notes @@ -9694,11 +12868,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShippingMethodTierIdShippingMethod +## GETStockLineItemIdLineItem -> GETShippingMethodTierIdShippingMethod(ctx, shippingMethodTierId).Execute() +> GETStockLineItemIdLineItem(ctx, stockLineItemId).Execute() -Retrieve the shipping method associated to the shipping method tier +Retrieve the line item associated to the stock line item @@ -9715,13 +12889,13 @@ import ( ) func main() { - shippingMethodTierId := TODO // interface{} | The resource's id + stockLineItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETShippingMethodTierIdShippingMethod(context.Background(), shippingMethodTierId).Execute() + r, err := apiClient.HasOneApi.GETStockLineItemIdLineItem(context.Background(), stockLineItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShippingMethodTierIdShippingMethod``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockLineItemIdLineItem``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9733,11 +12907,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shippingMethodTierId** | [**interface{}**](.md) | The resource's id | +**stockLineItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShippingMethodTierIdShippingMethodRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockLineItemIdLineItemRequest struct via the builder pattern Name | Type | Description | Notes @@ -9762,11 +12936,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETShippingWeightTierIdShippingMethod +## GETStockLineItemIdShipment -> GETShippingWeightTierIdShippingMethod(ctx, shippingWeightTierId).Execute() +> GETStockLineItemIdShipment(ctx, stockLineItemId).Execute() -Retrieve the shipping method associated to the shipping weight tier +Retrieve the shipment associated to the stock line item @@ -9783,13 +12957,13 @@ import ( ) func main() { - shippingWeightTierId := TODO // interface{} | The resource's id + stockLineItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETShippingWeightTierIdShippingMethod(context.Background(), shippingWeightTierId).Execute() + r, err := apiClient.HasOneApi.GETStockLineItemIdShipment(context.Background(), stockLineItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETShippingWeightTierIdShippingMethod``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockLineItemIdShipment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9801,11 +12975,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**shippingWeightTierId** | [**interface{}**](.md) | The resource's id | +**stockLineItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETShippingWeightTierIdShippingMethodRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockLineItemIdShipmentRequest struct via the builder pattern Name | Type | Description | Notes @@ -9830,11 +13004,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSkuIdShippingCategory +## GETStockLineItemIdSku -> GETSkuIdShippingCategory(ctx, skuId).Execute() +> GETStockLineItemIdSku(ctx, stockLineItemId).Execute() -Retrieve the shipping category associated to the SKU +Retrieve the sku associated to the stock line item @@ -9851,13 +13025,13 @@ import ( ) func main() { - skuId := TODO // interface{} | The resource's id + stockLineItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETSkuIdShippingCategory(context.Background(), skuId).Execute() + r, err := apiClient.HasOneApi.GETStockLineItemIdSku(context.Background(), stockLineItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETSkuIdShippingCategory``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockLineItemIdSku``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9869,11 +13043,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**skuId** | [**interface{}**](.md) | The resource's id | +**stockLineItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSkuIdShippingCategoryRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockLineItemIdSkuRequest struct via the builder pattern Name | Type | Description | Notes @@ -9898,11 +13072,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSkuListIdCustomer +## GETStockLineItemIdStockItem -> GETSkuListIdCustomer(ctx, skuListId).Execute() +> GETStockLineItemIdStockItem(ctx, stockLineItemId).Execute() -Retrieve the customer associated to the SKU list +Retrieve the stock item associated to the stock line item @@ -9919,13 +13093,13 @@ import ( ) func main() { - skuListId := TODO // interface{} | The resource's id + stockLineItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETSkuListIdCustomer(context.Background(), skuListId).Execute() + r, err := apiClient.HasOneApi.GETStockLineItemIdStockItem(context.Background(), stockLineItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETSkuListIdCustomer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockLineItemIdStockItem``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9937,11 +13111,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**skuListId** | [**interface{}**](.md) | The resource's id | +**stockLineItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSkuListIdCustomerRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockLineItemIdStockItemRequest struct via the builder pattern Name | Type | Description | Notes @@ -9966,11 +13140,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSkuListItemIdSku +## GETStockLineItemIdStockReservation -> GETSkuListItemIdSku(ctx, skuListItemId).Execute() +> GETStockLineItemIdStockReservation(ctx, stockLineItemId).Execute() -Retrieve the sku associated to the SKU list item +Retrieve the stock reservation associated to the stock line item @@ -9987,13 +13161,13 @@ import ( ) func main() { - skuListItemId := TODO // interface{} | The resource's id + stockLineItemId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETSkuListItemIdSku(context.Background(), skuListItemId).Execute() + r, err := apiClient.HasOneApi.GETStockLineItemIdStockReservation(context.Background(), stockLineItemId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETSkuListItemIdSku``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockLineItemIdStockReservation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10005,11 +13179,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**skuListItemId** | [**interface{}**](.md) | The resource's id | +**stockLineItemId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSkuListItemIdSkuRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockLineItemIdStockReservationRequest struct via the builder pattern Name | Type | Description | Notes @@ -10034,11 +13208,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSkuListItemIdSkuList +## GETStockLocationIdAddress -> GETSkuListItemIdSkuList(ctx, skuListItemId).Execute() +> GETStockLocationIdAddress(ctx, stockLocationId).Execute() -Retrieve the sku list associated to the SKU list item +Retrieve the address associated to the stock location @@ -10055,13 +13229,13 @@ import ( ) func main() { - skuListItemId := TODO // interface{} | The resource's id + stockLocationId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETSkuListItemIdSkuList(context.Background(), skuListItemId).Execute() + r, err := apiClient.HasOneApi.GETStockLocationIdAddress(context.Background(), stockLocationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETSkuListItemIdSkuList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockLocationIdAddress``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10073,11 +13247,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**skuListItemId** | [**interface{}**](.md) | The resource's id | +**stockLocationId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSkuListItemIdSkuListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockLocationIdAddressRequest struct via the builder pattern Name | Type | Description | Notes @@ -10102,11 +13276,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSkuListPromotionRuleIdSkuList +## GETStockReservationIdLineItem -> GETSkuListPromotionRuleIdSkuList(ctx, skuListPromotionRuleId).Execute() +> GETStockReservationIdLineItem(ctx, stockReservationId).Execute() -Retrieve the sku list associated to the SKU list promotion rule +Retrieve the line item associated to the stock reservation @@ -10123,13 +13297,13 @@ import ( ) func main() { - skuListPromotionRuleId := TODO // interface{} | The resource's id + stockReservationId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETSkuListPromotionRuleIdSkuList(context.Background(), skuListPromotionRuleId).Execute() + r, err := apiClient.HasOneApi.GETStockReservationIdLineItem(context.Background(), stockReservationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETSkuListPromotionRuleIdSkuList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockReservationIdLineItem``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10141,11 +13315,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**skuListPromotionRuleId** | [**interface{}**](.md) | The resource's id | +**stockReservationId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSkuListPromotionRuleIdSkuListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockReservationIdLineItemRequest struct via the builder pattern Name | Type | Description | Notes @@ -10170,11 +13344,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETSkuOptionIdMarket +## GETStockReservationIdOrder -> GETSkuOptionIdMarket(ctx, skuOptionId).Execute() +> GETStockReservationIdOrder(ctx, stockReservationId).Execute() -Retrieve the market associated to the SKU option +Retrieve the order associated to the stock reservation @@ -10191,13 +13365,13 @@ import ( ) func main() { - skuOptionId := TODO // interface{} | The resource's id + stockReservationId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETSkuOptionIdMarket(context.Background(), skuOptionId).Execute() + r, err := apiClient.HasOneApi.GETStockReservationIdOrder(context.Background(), stockReservationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETSkuOptionIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockReservationIdOrder``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10209,11 +13383,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**skuOptionId** | [**interface{}**](.md) | The resource's id | +**stockReservationId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETSkuOptionIdMarketRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockReservationIdOrderRequest struct via the builder pattern Name | Type | Description | Notes @@ -10238,11 +13412,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStockItemIdSku +## GETStockReservationIdReservedStock -> GETStockItemIdSku(ctx, stockItemId).Execute() +> GETStockReservationIdReservedStock(ctx, stockReservationId).Execute() -Retrieve the sku associated to the stock item +Retrieve the reserved stock associated to the stock reservation @@ -10259,13 +13433,13 @@ import ( ) func main() { - stockItemId := TODO // interface{} | The resource's id + stockReservationId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETStockItemIdSku(context.Background(), stockItemId).Execute() + r, err := apiClient.HasOneApi.GETStockReservationIdReservedStock(context.Background(), stockReservationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockItemIdSku``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockReservationIdReservedStock``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10277,11 +13451,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**stockItemId** | [**interface{}**](.md) | The resource's id | +**stockReservationId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETStockItemIdSkuRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockReservationIdReservedStockRequest struct via the builder pattern Name | Type | Description | Notes @@ -10306,11 +13480,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStockItemIdStockLocation +## GETStockReservationIdSku -> GETStockItemIdStockLocation(ctx, stockItemId).Execute() +> GETStockReservationIdSku(ctx, stockReservationId).Execute() -Retrieve the stock location associated to the stock item +Retrieve the sku associated to the stock reservation @@ -10327,13 +13501,13 @@ import ( ) func main() { - stockItemId := TODO // interface{} | The resource's id + stockReservationId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETStockItemIdStockLocation(context.Background(), stockItemId).Execute() + r, err := apiClient.HasOneApi.GETStockReservationIdSku(context.Background(), stockReservationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockItemIdStockLocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockReservationIdSku``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10345,11 +13519,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**stockItemId** | [**interface{}**](.md) | The resource's id | +**stockReservationId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETStockItemIdStockLocationRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockReservationIdSkuRequest struct via the builder pattern Name | Type | Description | Notes @@ -10374,11 +13548,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStockLineItemIdLineItem +## GETStockReservationIdStockItem -> GETStockLineItemIdLineItem(ctx, stockLineItemId).Execute() +> GETStockReservationIdStockItem(ctx, stockReservationId).Execute() -Retrieve the line item associated to the stock line item +Retrieve the stock item associated to the stock reservation @@ -10395,13 +13569,13 @@ import ( ) func main() { - stockLineItemId := TODO // interface{} | The resource's id + stockReservationId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETStockLineItemIdLineItem(context.Background(), stockLineItemId).Execute() + r, err := apiClient.HasOneApi.GETStockReservationIdStockItem(context.Background(), stockReservationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockLineItemIdLineItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockReservationIdStockItem``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10413,11 +13587,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**stockLineItemId** | [**interface{}**](.md) | The resource's id | +**stockReservationId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETStockLineItemIdLineItemRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockReservationIdStockItemRequest struct via the builder pattern Name | Type | Description | Notes @@ -10442,11 +13616,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStockLineItemIdShipment +## GETStockReservationIdStockLineItem -> GETStockLineItemIdShipment(ctx, stockLineItemId).Execute() +> GETStockReservationIdStockLineItem(ctx, stockReservationId).Execute() -Retrieve the shipment associated to the stock line item +Retrieve the stock line item associated to the stock reservation @@ -10463,13 +13637,13 @@ import ( ) func main() { - stockLineItemId := TODO // interface{} | The resource's id + stockReservationId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETStockLineItemIdShipment(context.Background(), stockLineItemId).Execute() + r, err := apiClient.HasOneApi.GETStockReservationIdStockLineItem(context.Background(), stockReservationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockLineItemIdShipment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockReservationIdStockLineItem``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10481,11 +13655,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**stockLineItemId** | [**interface{}**](.md) | The resource's id | +**stockReservationId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETStockLineItemIdShipmentRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockReservationIdStockLineItemRequest struct via the builder pattern Name | Type | Description | Notes @@ -10510,11 +13684,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStockLineItemIdStockItem +## GETStockReservationIdStockTransfer -> GETStockLineItemIdStockItem(ctx, stockLineItemId).Execute() +> GETStockReservationIdStockTransfer(ctx, stockReservationId).Execute() -Retrieve the stock item associated to the stock line item +Retrieve the stock transfer associated to the stock reservation @@ -10531,13 +13705,13 @@ import ( ) func main() { - stockLineItemId := TODO // interface{} | The resource's id + stockReservationId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETStockLineItemIdStockItem(context.Background(), stockLineItemId).Execute() + r, err := apiClient.HasOneApi.GETStockReservationIdStockTransfer(context.Background(), stockReservationId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockLineItemIdStockItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockReservationIdStockTransfer``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10549,11 +13723,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**stockLineItemId** | [**interface{}**](.md) | The resource's id | +**stockReservationId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETStockLineItemIdStockItemRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockReservationIdStockTransferRequest struct via the builder pattern Name | Type | Description | Notes @@ -10578,11 +13752,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStockLocationIdAddress +## GETStockTransferIdDestinationStockLocation -> GETStockLocationIdAddress(ctx, stockLocationId).Execute() +> GETStockTransferIdDestinationStockLocation(ctx, stockTransferId).Execute() -Retrieve the address associated to the stock location +Retrieve the destination stock location associated to the stock transfer @@ -10599,13 +13773,13 @@ import ( ) func main() { - stockLocationId := TODO // interface{} | The resource's id + stockTransferId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETStockLocationIdAddress(context.Background(), stockLocationId).Execute() + r, err := apiClient.HasOneApi.GETStockTransferIdDestinationStockLocation(context.Background(), stockTransferId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockLocationIdAddress``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockTransferIdDestinationStockLocation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10617,11 +13791,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**stockLocationId** | [**interface{}**](.md) | The resource's id | +**stockTransferId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETStockLocationIdAddressRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockTransferIdDestinationStockLocationRequest struct via the builder pattern Name | Type | Description | Notes @@ -10646,11 +13820,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStockTransferIdDestinationStockLocation +## GETStockTransferIdLineItem -> GETStockTransferIdDestinationStockLocation(ctx, stockTransferId).Execute() +> GETStockTransferIdLineItem(ctx, stockTransferId).Execute() -Retrieve the destination stock location associated to the stock transfer +Retrieve the line item associated to the stock transfer @@ -10671,9 +13845,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETStockTransferIdDestinationStockLocation(context.Background(), stockTransferId).Execute() + r, err := apiClient.HasOneApi.GETStockTransferIdLineItem(context.Background(), stockTransferId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockTransferIdDestinationStockLocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockTransferIdLineItem``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10689,7 +13863,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiGETStockTransferIdDestinationStockLocationRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockTransferIdLineItemRequest struct via the builder pattern Name | Type | Description | Notes @@ -10714,11 +13888,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStockTransferIdLineItem +## GETStockTransferIdOriginStockLocation -> GETStockTransferIdLineItem(ctx, stockTransferId).Execute() +> GETStockTransferIdOriginStockLocation(ctx, stockTransferId).Execute() -Retrieve the line item associated to the stock transfer +Retrieve the origin stock location associated to the stock transfer @@ -10739,9 +13913,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETStockTransferIdLineItem(context.Background(), stockTransferId).Execute() + r, err := apiClient.HasOneApi.GETStockTransferIdOriginStockLocation(context.Background(), stockTransferId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockTransferIdLineItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockTransferIdOriginStockLocation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10757,7 +13931,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiGETStockTransferIdLineItemRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockTransferIdOriginStockLocationRequest struct via the builder pattern Name | Type | Description | Notes @@ -10782,11 +13956,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStockTransferIdOriginStockLocation +## GETStockTransferIdShipment -> GETStockTransferIdOriginStockLocation(ctx, stockTransferId).Execute() +> GETStockTransferIdShipment(ctx, stockTransferId).Execute() -Retrieve the origin stock location associated to the stock transfer +Retrieve the shipment associated to the stock transfer @@ -10807,9 +13981,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETStockTransferIdOriginStockLocation(context.Background(), stockTransferId).Execute() + r, err := apiClient.HasOneApi.GETStockTransferIdShipment(context.Background(), stockTransferId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockTransferIdOriginStockLocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockTransferIdShipment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10825,7 +13999,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiGETStockTransferIdOriginStockLocationRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockTransferIdShipmentRequest struct via the builder pattern Name | Type | Description | Notes @@ -10850,11 +14024,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStockTransferIdShipment +## GETStockTransferIdSku -> GETStockTransferIdShipment(ctx, stockTransferId).Execute() +> GETStockTransferIdSku(ctx, stockTransferId).Execute() -Retrieve the shipment associated to the stock transfer +Retrieve the sku associated to the stock transfer @@ -10875,9 +14049,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETStockTransferIdShipment(context.Background(), stockTransferId).Execute() + r, err := apiClient.HasOneApi.GETStockTransferIdSku(context.Background(), stockTransferId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockTransferIdShipment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockTransferIdSku``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10893,7 +14067,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiGETStockTransferIdShipmentRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockTransferIdSkuRequest struct via the builder pattern Name | Type | Description | Notes @@ -10918,11 +14092,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETStockTransferIdSku +## GETStockTransferIdStockReservation -> GETStockTransferIdSku(ctx, stockTransferId).Execute() +> GETStockTransferIdStockReservation(ctx, stockTransferId).Execute() -Retrieve the sku associated to the stock transfer +Retrieve the stock reservation associated to the stock transfer @@ -10943,9 +14117,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.HasOneApi.GETStockTransferIdSku(context.Background(), stockTransferId).Execute() + r, err := apiClient.HasOneApi.GETStockTransferIdStockReservation(context.Background(), stockTransferId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockTransferIdSku``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `HasOneApi.GETStockTransferIdStockReservation``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10961,7 +14135,7 @@ Name | Type | Description | Notes ### Other Parameters -Other parameters are passed through a pointer to a apiGETStockTransferIdSkuRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETStockTransferIdStockReservationRequest struct via the builder pattern Name | Type | Description | Notes diff --git a/api/docs/ImportData.md b/api/docs/ImportData.md index f244a292..c4dbbe13 100644 --- a/api/docs/ImportData.md +++ b/api/docs/ImportData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**GETImportsImportId200ResponseDataAttributes**](GETImportsImportId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**CleanupDataRelationships**](CleanupDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**ExportDataRelationships**](ExportDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *ImportData) GetRelationships() CleanupDataRelationships` +`func (o *ImportData) GetRelationships() ExportDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *ImportData) GetRelationshipsOk() (*CleanupDataRelationships, bool)` +`func (o *ImportData) GetRelationshipsOk() (*ExportDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *ImportData) SetRelationships(v CleanupDataRelationships)` +`func (o *ImportData) SetRelationships(v ExportDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/ImportUpdate.md b/api/docs/ImportUpdate.md new file mode 100644 index 00000000..b05ca4bb --- /dev/null +++ b/api/docs/ImportUpdate.md @@ -0,0 +1,51 @@ +# ImportUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ImportUpdateData**](ImportUpdateData.md) | | + +## Methods + +### NewImportUpdate + +`func NewImportUpdate(data ImportUpdateData, ) *ImportUpdate` + +NewImportUpdate instantiates a new ImportUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewImportUpdateWithDefaults + +`func NewImportUpdateWithDefaults() *ImportUpdate` + +NewImportUpdateWithDefaults instantiates a new ImportUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *ImportUpdate) GetData() ImportUpdateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ImportUpdate) GetDataOk() (*ImportUpdateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ImportUpdate) SetData(v ImportUpdateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ImportUpdateData.md b/api/docs/ImportUpdateData.md new file mode 100644 index 00000000..373dea98 --- /dev/null +++ b/api/docs/ImportUpdateData.md @@ -0,0 +1,149 @@ +# ImportUpdateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Id** | **interface{}** | The resource's id | +**Attributes** | [**PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes**](PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewImportUpdateData + +`func NewImportUpdateData(type_ interface{}, id interface{}, attributes PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, ) *ImportUpdateData` + +NewImportUpdateData instantiates a new ImportUpdateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewImportUpdateDataWithDefaults + +`func NewImportUpdateDataWithDefaults() *ImportUpdateData` + +NewImportUpdateDataWithDefaults instantiates a new ImportUpdateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ImportUpdateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ImportUpdateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ImportUpdateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *ImportUpdateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *ImportUpdateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *ImportUpdateData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ImportUpdateData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ImportUpdateData) SetId(v interface{})` + +SetId sets Id field to given value. + + +### SetIdNil + +`func (o *ImportUpdateData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *ImportUpdateData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetAttributes + +`func (o *ImportUpdateData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *ImportUpdateData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *ImportUpdateData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *ImportUpdateData) GetRelationships() interface{}` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *ImportUpdateData) GetRelationshipsOk() (*interface{}, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *ImportUpdateData) SetRelationships(v interface{})` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *ImportUpdateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### SetRelationshipsNil + +`func (o *ImportUpdateData) SetRelationshipsNil(b bool)` + + SetRelationshipsNil sets the value for Relationships to be an explicit nil + +### UnsetRelationships +`func (o *ImportUpdateData) UnsetRelationships()` + +UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ImportsApi.md b/api/docs/ImportsApi.md index f05c684b..b23b15b6 100644 --- a/api/docs/ImportsApi.md +++ b/api/docs/ImportsApi.md @@ -7,6 +7,7 @@ Method | HTTP request | Description [**DELETEImportsImportId**](ImportsApi.md#DELETEImportsImportId) | **Delete** /imports/{importId} | Delete an import [**GETImports**](ImportsApi.md#GETImports) | **Get** /imports | List all imports [**GETImportsImportId**](ImportsApi.md#GETImportsImportId) | **Get** /imports/{importId} | Retrieve an import +[**PATCHImportsImportId**](ImportsApi.md#PATCHImportsImportId) | **Patch** /imports/{importId} | Update an import [**POSTImports**](ImportsApi.md#POSTImports) | **Post** /imports | Create an import @@ -210,6 +211,78 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## PATCHImportsImportId + +> PATCHImportsImportId200Response PATCHImportsImportId(ctx, importId).ImportUpdate(importUpdate).Execute() + +Update an import + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + importUpdate := *openapiclient.NewImportUpdate(*openapiclient.NewImportUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes())) // ImportUpdate | + importId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ImportsApi.PATCHImportsImportId(context.Background(), importId).ImportUpdate(importUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ImportsApi.PATCHImportsImportId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PATCHImportsImportId`: PATCHImportsImportId200Response + fmt.Fprintf(os.Stdout, "Response from `ImportsApi.PATCHImportsImportId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**importId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPATCHImportsImportIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **importUpdate** | [**ImportUpdate**](ImportUpdate.md) | | + + +### Return type + +[**PATCHImportsImportId200Response**](PATCHImportsImportId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## POSTImports > POSTImports201Response POSTImports(ctx).ImportCreate(importCreate).Execute() diff --git a/api/docs/InStockSubscriptionDataRelationships.md b/api/docs/InStockSubscriptionDataRelationships.md index dfeb5271..f27d5bea 100644 --- a/api/docs/InStockSubscriptionDataRelationships.md +++ b/api/docs/InStockSubscriptionDataRelationships.md @@ -7,7 +7,8 @@ Name | Type | Description | Notes **Market** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] **Customer** | Pointer to [**CouponRecipientDataRelationshipsCustomer**](CouponRecipientDataRelationshipsCustomer.md) | | [optional] **Sku** | Pointer to [**BundleDataRelationshipsSkus**](BundleDataRelationshipsSkus.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -105,20 +106,20 @@ HasSku returns a boolean if a field has been set. ### GetEvents -`func (o *InStockSubscriptionDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` +`func (o *InStockSubscriptionDataRelationships) GetEvents() AddressDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *InStockSubscriptionDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` +`func (o *InStockSubscriptionDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *InStockSubscriptionDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` +`func (o *InStockSubscriptionDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -128,6 +129,31 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetVersions + +`func (o *InStockSubscriptionDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *InStockSubscriptionDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *InStockSubscriptionDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *InStockSubscriptionDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/InventoryModelDataRelationships.md b/api/docs/InventoryModelDataRelationships.md index 533b135f..085f66d9 100644 --- a/api/docs/InventoryModelDataRelationships.md +++ b/api/docs/InventoryModelDataRelationships.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **InventoryStockLocations** | Pointer to [**InventoryModelDataRelationshipsInventoryStockLocations**](InventoryModelDataRelationshipsInventoryStockLocations.md) | | [optional] **InventoryReturnLocations** | Pointer to [**InventoryModelDataRelationshipsInventoryReturnLocations**](InventoryModelDataRelationshipsInventoryReturnLocations.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -79,20 +80,20 @@ HasInventoryReturnLocations returns a boolean if a field has been set. ### GetAttachments -`func (o *InventoryModelDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *InventoryModelDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *InventoryModelDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *InventoryModelDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *InventoryModelDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *InventoryModelDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -102,6 +103,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *InventoryModelDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *InventoryModelDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *InventoryModelDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *InventoryModelDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/InventoryReturnLocationDataRelationships.md b/api/docs/InventoryReturnLocationDataRelationships.md index aa919379..63cf6147 100644 --- a/api/docs/InventoryReturnLocationDataRelationships.md +++ b/api/docs/InventoryReturnLocationDataRelationships.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StockLocation** | Pointer to [**DeliveryLeadTimeDataRelationshipsStockLocation**](DeliveryLeadTimeDataRelationshipsStockLocation.md) | | [optional] **InventoryModel** | Pointer to [**InventoryReturnLocationDataRelationshipsInventoryModel**](InventoryReturnLocationDataRelationshipsInventoryModel.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -76,6 +77,31 @@ SetInventoryModel sets InventoryModel field to given value. HasInventoryModel returns a boolean if a field has been set. +### GetVersions + +`func (o *InventoryReturnLocationDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *InventoryReturnLocationDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *InventoryReturnLocationDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *InventoryReturnLocationDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/InventoryStockLocationsApi.md b/api/docs/InventoryStockLocationsApi.md index b865d3f9..7abb0e43 100644 --- a/api/docs/InventoryStockLocationsApi.md +++ b/api/docs/InventoryStockLocationsApi.md @@ -8,6 +8,7 @@ Method | HTTP request | Description [**GETInventoryModelIdInventoryStockLocations**](InventoryStockLocationsApi.md#GETInventoryModelIdInventoryStockLocations) | **Get** /inventory_models/{inventoryModelId}/inventory_stock_locations | Retrieve the inventory stock locations associated to the inventory model [**GETInventoryStockLocations**](InventoryStockLocationsApi.md#GETInventoryStockLocations) | **Get** /inventory_stock_locations | List all inventory stock locations [**GETInventoryStockLocationsInventoryStockLocationId**](InventoryStockLocationsApi.md#GETInventoryStockLocationsInventoryStockLocationId) | **Get** /inventory_stock_locations/{inventoryStockLocationId} | Retrieve an inventory stock location +[**GETShipmentIdInventoryStockLocation**](InventoryStockLocationsApi.md#GETShipmentIdInventoryStockLocation) | **Get** /shipments/{shipmentId}/inventory_stock_location | Retrieve the inventory stock location associated to the shipment [**GETStockLocationIdInventoryStockLocations**](InventoryStockLocationsApi.md#GETStockLocationIdInventoryStockLocations) | **Get** /stock_locations/{stockLocationId}/inventory_stock_locations | Retrieve the inventory stock locations associated to the stock location [**PATCHInventoryStockLocationsInventoryStockLocationId**](InventoryStockLocationsApi.md#PATCHInventoryStockLocationsInventoryStockLocationId) | **Patch** /inventory_stock_locations/{inventoryStockLocationId} | Update an inventory stock location [**POSTInventoryStockLocations**](InventoryStockLocationsApi.md#POSTInventoryStockLocations) | **Post** /inventory_stock_locations | Create an inventory stock location @@ -281,6 +282,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETShipmentIdInventoryStockLocation + +> GETShipmentIdInventoryStockLocation(ctx, shipmentId).Execute() + +Retrieve the inventory stock location associated to the shipment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + shipmentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.InventoryStockLocationsApi.GETShipmentIdInventoryStockLocation(context.Background(), shipmentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `InventoryStockLocationsApi.GETShipmentIdInventoryStockLocation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**shipmentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETShipmentIdInventoryStockLocationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETStockLocationIdInventoryStockLocations > GETStockLocationIdInventoryStockLocations(ctx, stockLocationId).Execute() diff --git a/api/docs/KlarnaGatewayDataRelationships.md b/api/docs/KlarnaGatewayDataRelationships.md index dfca0fbc..5183885e 100644 --- a/api/docs/KlarnaGatewayDataRelationships.md +++ b/api/docs/KlarnaGatewayDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**AdyenGatewayDataRelationshipsPaymentMethods**](AdyenGatewayDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] **KlarnaPayments** | Pointer to [**KlarnaGatewayDataRelationshipsKlarnaPayments**](KlarnaGatewayDataRelationshipsKlarnaPayments.md) | | [optional] ## Methods @@ -51,6 +52,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *KlarnaGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *KlarnaGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *KlarnaGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *KlarnaGatewayDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetKlarnaPayments `func (o *KlarnaGatewayDataRelationships) GetKlarnaPayments() KlarnaGatewayDataRelationshipsKlarnaPayments` diff --git a/api/docs/LineItemCreateDataRelationships.md b/api/docs/LineItemCreateDataRelationships.md index e65d56d5..3960c9b2 100644 --- a/api/docs/LineItemCreateDataRelationships.md +++ b/api/docs/LineItemCreateDataRelationships.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Order** | [**AdyenPaymentCreateDataRelationshipsOrder**](AdyenPaymentCreateDataRelationshipsOrder.md) | | **Item** | Pointer to [**LineItemCreateDataRelationshipsItem**](LineItemCreateDataRelationshipsItem.md) | | [optional] +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] ## Methods @@ -71,6 +72,31 @@ SetItem sets Item field to given value. HasItem returns a boolean if a field has been set. +### GetTags + +`func (o *LineItemCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *LineItemCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *LineItemCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *LineItemCreateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/LineItemDataRelationships.md b/api/docs/LineItemDataRelationships.md index 528fa780..e57cf649 100644 --- a/api/docs/LineItemDataRelationships.md +++ b/api/docs/LineItemDataRelationships.md @@ -6,10 +6,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Order** | Pointer to [**AdyenPaymentDataRelationshipsOrder**](AdyenPaymentDataRelationshipsOrder.md) | | [optional] **Item** | Pointer to [**LineItemDataRelationshipsItem**](LineItemDataRelationshipsItem.md) | | [optional] +**Sku** | Pointer to [**BundleDataRelationshipsSkus**](BundleDataRelationshipsSkus.md) | | [optional] +**Bundle** | Pointer to [**LineItemDataRelationshipsBundle**](LineItemDataRelationshipsBundle.md) | | [optional] +**Adjustment** | Pointer to [**LineItemDataRelationshipsAdjustment**](LineItemDataRelationshipsAdjustment.md) | | [optional] +**GiftCard** | Pointer to [**LineItemDataRelationshipsGiftCard**](LineItemDataRelationshipsGiftCard.md) | | [optional] +**Shipment** | Pointer to [**LineItemDataRelationshipsShipment**](LineItemDataRelationshipsShipment.md) | | [optional] +**PaymentMethod** | Pointer to [**AdyenGatewayDataRelationshipsPaymentMethods**](AdyenGatewayDataRelationshipsPaymentMethods.md) | | [optional] **LineItemOptions** | Pointer to [**LineItemDataRelationshipsLineItemOptions**](LineItemDataRelationshipsLineItemOptions.md) | | [optional] -**ShipmentLineItems** | Pointer to [**LineItemDataRelationshipsShipmentLineItems**](LineItemDataRelationshipsShipmentLineItems.md) | | [optional] +**ReturnLineItems** | Pointer to [**LineItemDataRelationshipsReturnLineItems**](LineItemDataRelationshipsReturnLineItems.md) | | [optional] +**StockReservations** | Pointer to [**LineItemDataRelationshipsStockReservations**](LineItemDataRelationshipsStockReservations.md) | | [optional] **StockLineItems** | Pointer to [**LineItemDataRelationshipsStockLineItems**](LineItemDataRelationshipsStockLineItems.md) | | [optional] **StockTransfers** | Pointer to [**LineItemDataRelationshipsStockTransfers**](LineItemDataRelationshipsStockTransfers.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**AddressDataRelationshipsTags**](AddressDataRelationshipsTags.md) | | [optional] ## Methods @@ -80,6 +89,156 @@ SetItem sets Item field to given value. HasItem returns a boolean if a field has been set. +### GetSku + +`func (o *LineItemDataRelationships) GetSku() BundleDataRelationshipsSkus` + +GetSku returns the Sku field if non-nil, zero value otherwise. + +### GetSkuOk + +`func (o *LineItemDataRelationships) GetSkuOk() (*BundleDataRelationshipsSkus, bool)` + +GetSkuOk returns a tuple with the Sku field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSku + +`func (o *LineItemDataRelationships) SetSku(v BundleDataRelationshipsSkus)` + +SetSku sets Sku field to given value. + +### HasSku + +`func (o *LineItemDataRelationships) HasSku() bool` + +HasSku returns a boolean if a field has been set. + +### GetBundle + +`func (o *LineItemDataRelationships) GetBundle() LineItemDataRelationshipsBundle` + +GetBundle returns the Bundle field if non-nil, zero value otherwise. + +### GetBundleOk + +`func (o *LineItemDataRelationships) GetBundleOk() (*LineItemDataRelationshipsBundle, bool)` + +GetBundleOk returns a tuple with the Bundle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBundle + +`func (o *LineItemDataRelationships) SetBundle(v LineItemDataRelationshipsBundle)` + +SetBundle sets Bundle field to given value. + +### HasBundle + +`func (o *LineItemDataRelationships) HasBundle() bool` + +HasBundle returns a boolean if a field has been set. + +### GetAdjustment + +`func (o *LineItemDataRelationships) GetAdjustment() LineItemDataRelationshipsAdjustment` + +GetAdjustment returns the Adjustment field if non-nil, zero value otherwise. + +### GetAdjustmentOk + +`func (o *LineItemDataRelationships) GetAdjustmentOk() (*LineItemDataRelationshipsAdjustment, bool)` + +GetAdjustmentOk returns a tuple with the Adjustment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdjustment + +`func (o *LineItemDataRelationships) SetAdjustment(v LineItemDataRelationshipsAdjustment)` + +SetAdjustment sets Adjustment field to given value. + +### HasAdjustment + +`func (o *LineItemDataRelationships) HasAdjustment() bool` + +HasAdjustment returns a boolean if a field has been set. + +### GetGiftCard + +`func (o *LineItemDataRelationships) GetGiftCard() LineItemDataRelationshipsGiftCard` + +GetGiftCard returns the GiftCard field if non-nil, zero value otherwise. + +### GetGiftCardOk + +`func (o *LineItemDataRelationships) GetGiftCardOk() (*LineItemDataRelationshipsGiftCard, bool)` + +GetGiftCardOk returns a tuple with the GiftCard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGiftCard + +`func (o *LineItemDataRelationships) SetGiftCard(v LineItemDataRelationshipsGiftCard)` + +SetGiftCard sets GiftCard field to given value. + +### HasGiftCard + +`func (o *LineItemDataRelationships) HasGiftCard() bool` + +HasGiftCard returns a boolean if a field has been set. + +### GetShipment + +`func (o *LineItemDataRelationships) GetShipment() LineItemDataRelationshipsShipment` + +GetShipment returns the Shipment field if non-nil, zero value otherwise. + +### GetShipmentOk + +`func (o *LineItemDataRelationships) GetShipmentOk() (*LineItemDataRelationshipsShipment, bool)` + +GetShipmentOk returns a tuple with the Shipment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShipment + +`func (o *LineItemDataRelationships) SetShipment(v LineItemDataRelationshipsShipment)` + +SetShipment sets Shipment field to given value. + +### HasShipment + +`func (o *LineItemDataRelationships) HasShipment() bool` + +HasShipment returns a boolean if a field has been set. + +### GetPaymentMethod + +`func (o *LineItemDataRelationships) GetPaymentMethod() AdyenGatewayDataRelationshipsPaymentMethods` + +GetPaymentMethod returns the PaymentMethod field if non-nil, zero value otherwise. + +### GetPaymentMethodOk + +`func (o *LineItemDataRelationships) GetPaymentMethodOk() (*AdyenGatewayDataRelationshipsPaymentMethods, bool)` + +GetPaymentMethodOk returns a tuple with the PaymentMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentMethod + +`func (o *LineItemDataRelationships) SetPaymentMethod(v AdyenGatewayDataRelationshipsPaymentMethods)` + +SetPaymentMethod sets PaymentMethod field to given value. + +### HasPaymentMethod + +`func (o *LineItemDataRelationships) HasPaymentMethod() bool` + +HasPaymentMethod returns a boolean if a field has been set. + ### GetLineItemOptions `func (o *LineItemDataRelationships) GetLineItemOptions() LineItemDataRelationshipsLineItemOptions` @@ -105,30 +264,55 @@ SetLineItemOptions sets LineItemOptions field to given value. HasLineItemOptions returns a boolean if a field has been set. -### GetShipmentLineItems +### GetReturnLineItems + +`func (o *LineItemDataRelationships) GetReturnLineItems() LineItemDataRelationshipsReturnLineItems` + +GetReturnLineItems returns the ReturnLineItems field if non-nil, zero value otherwise. + +### GetReturnLineItemsOk + +`func (o *LineItemDataRelationships) GetReturnLineItemsOk() (*LineItemDataRelationshipsReturnLineItems, bool)` + +GetReturnLineItemsOk returns a tuple with the ReturnLineItems field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLineItems + +`func (o *LineItemDataRelationships) SetReturnLineItems(v LineItemDataRelationshipsReturnLineItems)` + +SetReturnLineItems sets ReturnLineItems field to given value. + +### HasReturnLineItems -`func (o *LineItemDataRelationships) GetShipmentLineItems() LineItemDataRelationshipsShipmentLineItems` +`func (o *LineItemDataRelationships) HasReturnLineItems() bool` -GetShipmentLineItems returns the ShipmentLineItems field if non-nil, zero value otherwise. +HasReturnLineItems returns a boolean if a field has been set. -### GetShipmentLineItemsOk +### GetStockReservations -`func (o *LineItemDataRelationships) GetShipmentLineItemsOk() (*LineItemDataRelationshipsShipmentLineItems, bool)` +`func (o *LineItemDataRelationships) GetStockReservations() LineItemDataRelationshipsStockReservations` -GetShipmentLineItemsOk returns a tuple with the ShipmentLineItems field if it's non-nil, zero value otherwise +GetStockReservations returns the StockReservations field if non-nil, zero value otherwise. + +### GetStockReservationsOk + +`func (o *LineItemDataRelationships) GetStockReservationsOk() (*LineItemDataRelationshipsStockReservations, bool)` + +GetStockReservationsOk returns a tuple with the StockReservations field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetShipmentLineItems +### SetStockReservations -`func (o *LineItemDataRelationships) SetShipmentLineItems(v LineItemDataRelationshipsShipmentLineItems)` +`func (o *LineItemDataRelationships) SetStockReservations(v LineItemDataRelationshipsStockReservations)` -SetShipmentLineItems sets ShipmentLineItems field to given value. +SetStockReservations sets StockReservations field to given value. -### HasShipmentLineItems +### HasStockReservations -`func (o *LineItemDataRelationships) HasShipmentLineItems() bool` +`func (o *LineItemDataRelationships) HasStockReservations() bool` -HasShipmentLineItems returns a boolean if a field has been set. +HasStockReservations returns a boolean if a field has been set. ### GetStockLineItems @@ -180,6 +364,56 @@ SetStockTransfers sets StockTransfers field to given value. HasStockTransfers returns a boolean if a field has been set. +### GetEvents + +`func (o *LineItemDataRelationships) GetEvents() AddressDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *LineItemDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *LineItemDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *LineItemDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *LineItemDataRelationships) GetTags() AddressDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *LineItemDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *LineItemDataRelationships) SetTags(v AddressDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *LineItemDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/LineItemDataRelationshipsAdjustment.md b/api/docs/LineItemDataRelationshipsAdjustment.md new file mode 100644 index 00000000..bf1ececa --- /dev/null +++ b/api/docs/LineItemDataRelationshipsAdjustment.md @@ -0,0 +1,56 @@ +# LineItemDataRelationshipsAdjustment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**LineItemDataRelationshipsAdjustmentData**](LineItemDataRelationshipsAdjustmentData.md) | | [optional] + +## Methods + +### NewLineItemDataRelationshipsAdjustment + +`func NewLineItemDataRelationshipsAdjustment() *LineItemDataRelationshipsAdjustment` + +NewLineItemDataRelationshipsAdjustment instantiates a new LineItemDataRelationshipsAdjustment object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLineItemDataRelationshipsAdjustmentWithDefaults + +`func NewLineItemDataRelationshipsAdjustmentWithDefaults() *LineItemDataRelationshipsAdjustment` + +NewLineItemDataRelationshipsAdjustmentWithDefaults instantiates a new LineItemDataRelationshipsAdjustment object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *LineItemDataRelationshipsAdjustment) GetData() LineItemDataRelationshipsAdjustmentData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *LineItemDataRelationshipsAdjustment) GetDataOk() (*LineItemDataRelationshipsAdjustmentData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *LineItemDataRelationshipsAdjustment) SetData(v LineItemDataRelationshipsAdjustmentData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *LineItemDataRelationshipsAdjustment) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/LineItemDataRelationshipsAdjustmentData.md b/api/docs/LineItemDataRelationshipsAdjustmentData.md new file mode 100644 index 00000000..6ecc17a1 --- /dev/null +++ b/api/docs/LineItemDataRelationshipsAdjustmentData.md @@ -0,0 +1,102 @@ +# LineItemDataRelationshipsAdjustmentData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource's id | [optional] + +## Methods + +### NewLineItemDataRelationshipsAdjustmentData + +`func NewLineItemDataRelationshipsAdjustmentData() *LineItemDataRelationshipsAdjustmentData` + +NewLineItemDataRelationshipsAdjustmentData instantiates a new LineItemDataRelationshipsAdjustmentData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLineItemDataRelationshipsAdjustmentDataWithDefaults + +`func NewLineItemDataRelationshipsAdjustmentDataWithDefaults() *LineItemDataRelationshipsAdjustmentData` + +NewLineItemDataRelationshipsAdjustmentDataWithDefaults instantiates a new LineItemDataRelationshipsAdjustmentData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *LineItemDataRelationshipsAdjustmentData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *LineItemDataRelationshipsAdjustmentData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *LineItemDataRelationshipsAdjustmentData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *LineItemDataRelationshipsAdjustmentData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *LineItemDataRelationshipsAdjustmentData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *LineItemDataRelationshipsAdjustmentData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *LineItemDataRelationshipsAdjustmentData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *LineItemDataRelationshipsAdjustmentData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *LineItemDataRelationshipsAdjustmentData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *LineItemDataRelationshipsAdjustmentData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *LineItemDataRelationshipsAdjustmentData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *LineItemDataRelationshipsAdjustmentData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/LineItemDataRelationshipsBundle.md b/api/docs/LineItemDataRelationshipsBundle.md new file mode 100644 index 00000000..dd081864 --- /dev/null +++ b/api/docs/LineItemDataRelationshipsBundle.md @@ -0,0 +1,56 @@ +# LineItemDataRelationshipsBundle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**LineItemDataRelationshipsBundleData**](LineItemDataRelationshipsBundleData.md) | | [optional] + +## Methods + +### NewLineItemDataRelationshipsBundle + +`func NewLineItemDataRelationshipsBundle() *LineItemDataRelationshipsBundle` + +NewLineItemDataRelationshipsBundle instantiates a new LineItemDataRelationshipsBundle object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLineItemDataRelationshipsBundleWithDefaults + +`func NewLineItemDataRelationshipsBundleWithDefaults() *LineItemDataRelationshipsBundle` + +NewLineItemDataRelationshipsBundleWithDefaults instantiates a new LineItemDataRelationshipsBundle object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *LineItemDataRelationshipsBundle) GetData() LineItemDataRelationshipsBundleData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *LineItemDataRelationshipsBundle) GetDataOk() (*LineItemDataRelationshipsBundleData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *LineItemDataRelationshipsBundle) SetData(v LineItemDataRelationshipsBundleData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *LineItemDataRelationshipsBundle) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/OrderDataRelationshipsShipmentsData.md b/api/docs/LineItemDataRelationshipsBundleData.md similarity index 59% rename from api/docs/OrderDataRelationshipsShipmentsData.md rename to api/docs/LineItemDataRelationshipsBundleData.md index cdc1b1d9..437fe1ab 100644 --- a/api/docs/OrderDataRelationshipsShipmentsData.md +++ b/api/docs/LineItemDataRelationshipsBundleData.md @@ -1,4 +1,4 @@ -# OrderDataRelationshipsShipmentsData +# LineItemDataRelationshipsBundleData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewOrderDataRelationshipsShipmentsData +### NewLineItemDataRelationshipsBundleData -`func NewOrderDataRelationshipsShipmentsData() *OrderDataRelationshipsShipmentsData` +`func NewLineItemDataRelationshipsBundleData() *LineItemDataRelationshipsBundleData` -NewOrderDataRelationshipsShipmentsData instantiates a new OrderDataRelationshipsShipmentsData object +NewLineItemDataRelationshipsBundleData instantiates a new LineItemDataRelationshipsBundleData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewOrderDataRelationshipsShipmentsDataWithDefaults +### NewLineItemDataRelationshipsBundleDataWithDefaults -`func NewOrderDataRelationshipsShipmentsDataWithDefaults() *OrderDataRelationshipsShipmentsData` +`func NewLineItemDataRelationshipsBundleDataWithDefaults() *LineItemDataRelationshipsBundleData` -NewOrderDataRelationshipsShipmentsDataWithDefaults instantiates a new OrderDataRelationshipsShipmentsData object +NewLineItemDataRelationshipsBundleDataWithDefaults instantiates a new LineItemDataRelationshipsBundleData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *OrderDataRelationshipsShipmentsData) GetType() interface{}` +`func (o *LineItemDataRelationshipsBundleData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *OrderDataRelationshipsShipmentsData) GetTypeOk() (*interface{}, bool)` +`func (o *LineItemDataRelationshipsBundleData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *OrderDataRelationshipsShipmentsData) SetType(v interface{})` +`func (o *LineItemDataRelationshipsBundleData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *OrderDataRelationshipsShipmentsData) HasType() bool` +`func (o *LineItemDataRelationshipsBundleData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *OrderDataRelationshipsShipmentsData) SetTypeNil(b bool)` +`func (o *LineItemDataRelationshipsBundleData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *OrderDataRelationshipsShipmentsData) UnsetType()` +`func (o *LineItemDataRelationshipsBundleData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *OrderDataRelationshipsShipmentsData) GetId() interface{}` +`func (o *LineItemDataRelationshipsBundleData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *OrderDataRelationshipsShipmentsData) GetIdOk() (*interface{}, bool)` +`func (o *LineItemDataRelationshipsBundleData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *OrderDataRelationshipsShipmentsData) SetId(v interface{})` +`func (o *LineItemDataRelationshipsBundleData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *OrderDataRelationshipsShipmentsData) HasId() bool` +`func (o *LineItemDataRelationshipsBundleData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *OrderDataRelationshipsShipmentsData) SetIdNil(b bool)` +`func (o *LineItemDataRelationshipsBundleData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *OrderDataRelationshipsShipmentsData) UnsetId()` +`func (o *LineItemDataRelationshipsBundleData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/LineItemDataRelationshipsGiftCard.md b/api/docs/LineItemDataRelationshipsGiftCard.md new file mode 100644 index 00000000..aff7e2f6 --- /dev/null +++ b/api/docs/LineItemDataRelationshipsGiftCard.md @@ -0,0 +1,56 @@ +# LineItemDataRelationshipsGiftCard + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**LineItemDataRelationshipsGiftCardData**](LineItemDataRelationshipsGiftCardData.md) | | [optional] + +## Methods + +### NewLineItemDataRelationshipsGiftCard + +`func NewLineItemDataRelationshipsGiftCard() *LineItemDataRelationshipsGiftCard` + +NewLineItemDataRelationshipsGiftCard instantiates a new LineItemDataRelationshipsGiftCard object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLineItemDataRelationshipsGiftCardWithDefaults + +`func NewLineItemDataRelationshipsGiftCardWithDefaults() *LineItemDataRelationshipsGiftCard` + +NewLineItemDataRelationshipsGiftCardWithDefaults instantiates a new LineItemDataRelationshipsGiftCard object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *LineItemDataRelationshipsGiftCard) GetData() LineItemDataRelationshipsGiftCardData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *LineItemDataRelationshipsGiftCard) GetDataOk() (*LineItemDataRelationshipsGiftCardData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *LineItemDataRelationshipsGiftCard) SetData(v LineItemDataRelationshipsGiftCardData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *LineItemDataRelationshipsGiftCard) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/LineItemDataRelationshipsGiftCardData.md b/api/docs/LineItemDataRelationshipsGiftCardData.md new file mode 100644 index 00000000..0b9a4a3d --- /dev/null +++ b/api/docs/LineItemDataRelationshipsGiftCardData.md @@ -0,0 +1,102 @@ +# LineItemDataRelationshipsGiftCardData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource's id | [optional] + +## Methods + +### NewLineItemDataRelationshipsGiftCardData + +`func NewLineItemDataRelationshipsGiftCardData() *LineItemDataRelationshipsGiftCardData` + +NewLineItemDataRelationshipsGiftCardData instantiates a new LineItemDataRelationshipsGiftCardData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLineItemDataRelationshipsGiftCardDataWithDefaults + +`func NewLineItemDataRelationshipsGiftCardDataWithDefaults() *LineItemDataRelationshipsGiftCardData` + +NewLineItemDataRelationshipsGiftCardDataWithDefaults instantiates a new LineItemDataRelationshipsGiftCardData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *LineItemDataRelationshipsGiftCardData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *LineItemDataRelationshipsGiftCardData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *LineItemDataRelationshipsGiftCardData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *LineItemDataRelationshipsGiftCardData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *LineItemDataRelationshipsGiftCardData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *LineItemDataRelationshipsGiftCardData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *LineItemDataRelationshipsGiftCardData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *LineItemDataRelationshipsGiftCardData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *LineItemDataRelationshipsGiftCardData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *LineItemDataRelationshipsGiftCardData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *LineItemDataRelationshipsGiftCardData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *LineItemDataRelationshipsGiftCardData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/LineItemDataRelationshipsReturnLineItems.md b/api/docs/LineItemDataRelationshipsReturnLineItems.md new file mode 100644 index 00000000..925ffd93 --- /dev/null +++ b/api/docs/LineItemDataRelationshipsReturnLineItems.md @@ -0,0 +1,56 @@ +# LineItemDataRelationshipsReturnLineItems + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**LineItemDataRelationshipsReturnLineItemsData**](LineItemDataRelationshipsReturnLineItemsData.md) | | [optional] + +## Methods + +### NewLineItemDataRelationshipsReturnLineItems + +`func NewLineItemDataRelationshipsReturnLineItems() *LineItemDataRelationshipsReturnLineItems` + +NewLineItemDataRelationshipsReturnLineItems instantiates a new LineItemDataRelationshipsReturnLineItems object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLineItemDataRelationshipsReturnLineItemsWithDefaults + +`func NewLineItemDataRelationshipsReturnLineItemsWithDefaults() *LineItemDataRelationshipsReturnLineItems` + +NewLineItemDataRelationshipsReturnLineItemsWithDefaults instantiates a new LineItemDataRelationshipsReturnLineItems object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *LineItemDataRelationshipsReturnLineItems) GetData() LineItemDataRelationshipsReturnLineItemsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *LineItemDataRelationshipsReturnLineItems) GetDataOk() (*LineItemDataRelationshipsReturnLineItemsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *LineItemDataRelationshipsReturnLineItems) SetData(v LineItemDataRelationshipsReturnLineItemsData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *LineItemDataRelationshipsReturnLineItems) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/OrderDataRelationshipsAvailableFreeBundlesData.md b/api/docs/LineItemDataRelationshipsReturnLineItemsData.md similarity index 55% rename from api/docs/OrderDataRelationshipsAvailableFreeBundlesData.md rename to api/docs/LineItemDataRelationshipsReturnLineItemsData.md index 552e96d7..b8255186 100644 --- a/api/docs/OrderDataRelationshipsAvailableFreeBundlesData.md +++ b/api/docs/LineItemDataRelationshipsReturnLineItemsData.md @@ -1,4 +1,4 @@ -# OrderDataRelationshipsAvailableFreeBundlesData +# LineItemDataRelationshipsReturnLineItemsData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewOrderDataRelationshipsAvailableFreeBundlesData +### NewLineItemDataRelationshipsReturnLineItemsData -`func NewOrderDataRelationshipsAvailableFreeBundlesData() *OrderDataRelationshipsAvailableFreeBundlesData` +`func NewLineItemDataRelationshipsReturnLineItemsData() *LineItemDataRelationshipsReturnLineItemsData` -NewOrderDataRelationshipsAvailableFreeBundlesData instantiates a new OrderDataRelationshipsAvailableFreeBundlesData object +NewLineItemDataRelationshipsReturnLineItemsData instantiates a new LineItemDataRelationshipsReturnLineItemsData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewOrderDataRelationshipsAvailableFreeBundlesDataWithDefaults +### NewLineItemDataRelationshipsReturnLineItemsDataWithDefaults -`func NewOrderDataRelationshipsAvailableFreeBundlesDataWithDefaults() *OrderDataRelationshipsAvailableFreeBundlesData` +`func NewLineItemDataRelationshipsReturnLineItemsDataWithDefaults() *LineItemDataRelationshipsReturnLineItemsData` -NewOrderDataRelationshipsAvailableFreeBundlesDataWithDefaults instantiates a new OrderDataRelationshipsAvailableFreeBundlesData object +NewLineItemDataRelationshipsReturnLineItemsDataWithDefaults instantiates a new LineItemDataRelationshipsReturnLineItemsData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *OrderDataRelationshipsAvailableFreeBundlesData) GetType() interface{}` +`func (o *LineItemDataRelationshipsReturnLineItemsData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *OrderDataRelationshipsAvailableFreeBundlesData) GetTypeOk() (*interface{}, bool)` +`func (o *LineItemDataRelationshipsReturnLineItemsData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *OrderDataRelationshipsAvailableFreeBundlesData) SetType(v interface{})` +`func (o *LineItemDataRelationshipsReturnLineItemsData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *OrderDataRelationshipsAvailableFreeBundlesData) HasType() bool` +`func (o *LineItemDataRelationshipsReturnLineItemsData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *OrderDataRelationshipsAvailableFreeBundlesData) SetTypeNil(b bool)` +`func (o *LineItemDataRelationshipsReturnLineItemsData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *OrderDataRelationshipsAvailableFreeBundlesData) UnsetType()` +`func (o *LineItemDataRelationshipsReturnLineItemsData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *OrderDataRelationshipsAvailableFreeBundlesData) GetId() interface{}` +`func (o *LineItemDataRelationshipsReturnLineItemsData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *OrderDataRelationshipsAvailableFreeBundlesData) GetIdOk() (*interface{}, bool)` +`func (o *LineItemDataRelationshipsReturnLineItemsData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *OrderDataRelationshipsAvailableFreeBundlesData) SetId(v interface{})` +`func (o *LineItemDataRelationshipsReturnLineItemsData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *OrderDataRelationshipsAvailableFreeBundlesData) HasId() bool` +`func (o *LineItemDataRelationshipsReturnLineItemsData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *OrderDataRelationshipsAvailableFreeBundlesData) SetIdNil(b bool)` +`func (o *LineItemDataRelationshipsReturnLineItemsData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *OrderDataRelationshipsAvailableFreeBundlesData) UnsetId()` +`func (o *LineItemDataRelationshipsReturnLineItemsData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/LineItemDataRelationshipsShipment.md b/api/docs/LineItemDataRelationshipsShipment.md new file mode 100644 index 00000000..cba6196b --- /dev/null +++ b/api/docs/LineItemDataRelationshipsShipment.md @@ -0,0 +1,56 @@ +# LineItemDataRelationshipsShipment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**LineItemDataRelationshipsShipmentData**](LineItemDataRelationshipsShipmentData.md) | | [optional] + +## Methods + +### NewLineItemDataRelationshipsShipment + +`func NewLineItemDataRelationshipsShipment() *LineItemDataRelationshipsShipment` + +NewLineItemDataRelationshipsShipment instantiates a new LineItemDataRelationshipsShipment object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLineItemDataRelationshipsShipmentWithDefaults + +`func NewLineItemDataRelationshipsShipmentWithDefaults() *LineItemDataRelationshipsShipment` + +NewLineItemDataRelationshipsShipmentWithDefaults instantiates a new LineItemDataRelationshipsShipment object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *LineItemDataRelationshipsShipment) GetData() LineItemDataRelationshipsShipmentData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *LineItemDataRelationshipsShipment) GetDataOk() (*LineItemDataRelationshipsShipmentData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *LineItemDataRelationshipsShipment) SetData(v LineItemDataRelationshipsShipmentData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *LineItemDataRelationshipsShipment) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/LineItemDataRelationshipsShipmentData.md b/api/docs/LineItemDataRelationshipsShipmentData.md new file mode 100644 index 00000000..1770d90c --- /dev/null +++ b/api/docs/LineItemDataRelationshipsShipmentData.md @@ -0,0 +1,102 @@ +# LineItemDataRelationshipsShipmentData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource's id | [optional] + +## Methods + +### NewLineItemDataRelationshipsShipmentData + +`func NewLineItemDataRelationshipsShipmentData() *LineItemDataRelationshipsShipmentData` + +NewLineItemDataRelationshipsShipmentData instantiates a new LineItemDataRelationshipsShipmentData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLineItemDataRelationshipsShipmentDataWithDefaults + +`func NewLineItemDataRelationshipsShipmentDataWithDefaults() *LineItemDataRelationshipsShipmentData` + +NewLineItemDataRelationshipsShipmentDataWithDefaults instantiates a new LineItemDataRelationshipsShipmentData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *LineItemDataRelationshipsShipmentData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *LineItemDataRelationshipsShipmentData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *LineItemDataRelationshipsShipmentData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *LineItemDataRelationshipsShipmentData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *LineItemDataRelationshipsShipmentData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *LineItemDataRelationshipsShipmentData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *LineItemDataRelationshipsShipmentData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *LineItemDataRelationshipsShipmentData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *LineItemDataRelationshipsShipmentData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *LineItemDataRelationshipsShipmentData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *LineItemDataRelationshipsShipmentData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *LineItemDataRelationshipsShipmentData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/LineItemDataRelationshipsShipmentLineItems.md b/api/docs/LineItemDataRelationshipsShipmentLineItems.md deleted file mode 100644 index 8069a4bf..00000000 --- a/api/docs/LineItemDataRelationshipsShipmentLineItems.md +++ /dev/null @@ -1,56 +0,0 @@ -# LineItemDataRelationshipsShipmentLineItems - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | Pointer to [**LineItemDataRelationshipsShipmentLineItemsData**](LineItemDataRelationshipsShipmentLineItemsData.md) | | [optional] - -## Methods - -### NewLineItemDataRelationshipsShipmentLineItems - -`func NewLineItemDataRelationshipsShipmentLineItems() *LineItemDataRelationshipsShipmentLineItems` - -NewLineItemDataRelationshipsShipmentLineItems instantiates a new LineItemDataRelationshipsShipmentLineItems object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewLineItemDataRelationshipsShipmentLineItemsWithDefaults - -`func NewLineItemDataRelationshipsShipmentLineItemsWithDefaults() *LineItemDataRelationshipsShipmentLineItems` - -NewLineItemDataRelationshipsShipmentLineItemsWithDefaults instantiates a new LineItemDataRelationshipsShipmentLineItems object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *LineItemDataRelationshipsShipmentLineItems) GetData() LineItemDataRelationshipsShipmentLineItemsData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *LineItemDataRelationshipsShipmentLineItems) GetDataOk() (*LineItemDataRelationshipsShipmentLineItemsData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *LineItemDataRelationshipsShipmentLineItems) SetData(v LineItemDataRelationshipsShipmentLineItemsData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *LineItemDataRelationshipsShipmentLineItems) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/LineItemDataRelationshipsStockReservations.md b/api/docs/LineItemDataRelationshipsStockReservations.md new file mode 100644 index 00000000..9f1868f2 --- /dev/null +++ b/api/docs/LineItemDataRelationshipsStockReservations.md @@ -0,0 +1,56 @@ +# LineItemDataRelationshipsStockReservations + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**LineItemDataRelationshipsStockReservationsData**](LineItemDataRelationshipsStockReservationsData.md) | | [optional] + +## Methods + +### NewLineItemDataRelationshipsStockReservations + +`func NewLineItemDataRelationshipsStockReservations() *LineItemDataRelationshipsStockReservations` + +NewLineItemDataRelationshipsStockReservations instantiates a new LineItemDataRelationshipsStockReservations object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLineItemDataRelationshipsStockReservationsWithDefaults + +`func NewLineItemDataRelationshipsStockReservationsWithDefaults() *LineItemDataRelationshipsStockReservations` + +NewLineItemDataRelationshipsStockReservationsWithDefaults instantiates a new LineItemDataRelationshipsStockReservations object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *LineItemDataRelationshipsStockReservations) GetData() LineItemDataRelationshipsStockReservationsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *LineItemDataRelationshipsStockReservations) GetDataOk() (*LineItemDataRelationshipsStockReservationsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *LineItemDataRelationshipsStockReservations) SetData(v LineItemDataRelationshipsStockReservationsData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *LineItemDataRelationshipsStockReservations) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/AvalaraAccountDataRelationshipsAttachmentsData.md b/api/docs/LineItemDataRelationshipsStockReservationsData.md similarity index 58% rename from api/docs/AvalaraAccountDataRelationshipsAttachmentsData.md rename to api/docs/LineItemDataRelationshipsStockReservationsData.md index 69732b9b..28173ba3 100644 --- a/api/docs/AvalaraAccountDataRelationshipsAttachmentsData.md +++ b/api/docs/LineItemDataRelationshipsStockReservationsData.md @@ -1,4 +1,4 @@ -# AvalaraAccountDataRelationshipsAttachmentsData +# LineItemDataRelationshipsStockReservationsData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewAvalaraAccountDataRelationshipsAttachmentsData +### NewLineItemDataRelationshipsStockReservationsData -`func NewAvalaraAccountDataRelationshipsAttachmentsData() *AvalaraAccountDataRelationshipsAttachmentsData` +`func NewLineItemDataRelationshipsStockReservationsData() *LineItemDataRelationshipsStockReservationsData` -NewAvalaraAccountDataRelationshipsAttachmentsData instantiates a new AvalaraAccountDataRelationshipsAttachmentsData object +NewLineItemDataRelationshipsStockReservationsData instantiates a new LineItemDataRelationshipsStockReservationsData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewAvalaraAccountDataRelationshipsAttachmentsDataWithDefaults +### NewLineItemDataRelationshipsStockReservationsDataWithDefaults -`func NewAvalaraAccountDataRelationshipsAttachmentsDataWithDefaults() *AvalaraAccountDataRelationshipsAttachmentsData` +`func NewLineItemDataRelationshipsStockReservationsDataWithDefaults() *LineItemDataRelationshipsStockReservationsData` -NewAvalaraAccountDataRelationshipsAttachmentsDataWithDefaults instantiates a new AvalaraAccountDataRelationshipsAttachmentsData object +NewLineItemDataRelationshipsStockReservationsDataWithDefaults instantiates a new LineItemDataRelationshipsStockReservationsData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *AvalaraAccountDataRelationshipsAttachmentsData) GetType() interface{}` +`func (o *LineItemDataRelationshipsStockReservationsData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *AvalaraAccountDataRelationshipsAttachmentsData) GetTypeOk() (*interface{}, bool)` +`func (o *LineItemDataRelationshipsStockReservationsData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *AvalaraAccountDataRelationshipsAttachmentsData) SetType(v interface{})` +`func (o *LineItemDataRelationshipsStockReservationsData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *AvalaraAccountDataRelationshipsAttachmentsData) HasType() bool` +`func (o *LineItemDataRelationshipsStockReservationsData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *AvalaraAccountDataRelationshipsAttachmentsData) SetTypeNil(b bool)` +`func (o *LineItemDataRelationshipsStockReservationsData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *AvalaraAccountDataRelationshipsAttachmentsData) UnsetType()` +`func (o *LineItemDataRelationshipsStockReservationsData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *AvalaraAccountDataRelationshipsAttachmentsData) GetId() interface{}` +`func (o *LineItemDataRelationshipsStockReservationsData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *AvalaraAccountDataRelationshipsAttachmentsData) GetIdOk() (*interface{}, bool)` +`func (o *LineItemDataRelationshipsStockReservationsData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *AvalaraAccountDataRelationshipsAttachmentsData) SetId(v interface{})` +`func (o *LineItemDataRelationshipsStockReservationsData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *AvalaraAccountDataRelationshipsAttachmentsData) HasId() bool` +`func (o *LineItemDataRelationshipsStockReservationsData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *AvalaraAccountDataRelationshipsAttachmentsData) SetIdNil(b bool)` +`func (o *LineItemDataRelationshipsStockReservationsData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *AvalaraAccountDataRelationshipsAttachmentsData) UnsetId()` +`func (o *LineItemDataRelationshipsStockReservationsData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/LineItemOptionCreateDataRelationships.md b/api/docs/LineItemOptionCreateDataRelationships.md index f3cf5306..9cacfe7f 100644 --- a/api/docs/LineItemOptionCreateDataRelationships.md +++ b/api/docs/LineItemOptionCreateDataRelationships.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LineItem** | [**LineItemOptionCreateDataRelationshipsLineItem**](LineItemOptionCreateDataRelationshipsLineItem.md) | | **SkuOption** | [**LineItemOptionCreateDataRelationshipsSkuOption**](LineItemOptionCreateDataRelationshipsSkuOption.md) | | +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] ## Methods @@ -66,6 +67,31 @@ and a boolean to check if the value has been set. SetSkuOption sets SkuOption field to given value. +### GetTags + +`func (o *LineItemOptionCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *LineItemOptionCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *LineItemOptionCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *LineItemOptionCreateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/LineItemOptionDataRelationships.md b/api/docs/LineItemOptionDataRelationships.md index 9c97f56b..db290282 100644 --- a/api/docs/LineItemOptionDataRelationships.md +++ b/api/docs/LineItemOptionDataRelationships.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LineItem** | Pointer to [**LineItemOptionDataRelationshipsLineItem**](LineItemOptionDataRelationshipsLineItem.md) | | [optional] **SkuOption** | Pointer to [**LineItemOptionDataRelationshipsSkuOption**](LineItemOptionDataRelationshipsSkuOption.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**AddressDataRelationshipsTags**](AddressDataRelationshipsTags.md) | | [optional] ## Methods @@ -76,6 +78,56 @@ SetSkuOption sets SkuOption field to given value. HasSkuOption returns a boolean if a field has been set. +### GetEvents + +`func (o *LineItemOptionDataRelationships) GetEvents() AddressDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *LineItemOptionDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *LineItemOptionDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *LineItemOptionDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *LineItemOptionDataRelationships) GetTags() AddressDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *LineItemOptionDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *LineItemOptionDataRelationships) SetTags(v AddressDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *LineItemOptionDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/LineItemOptionUpdateDataRelationships.md b/api/docs/LineItemOptionUpdateDataRelationships.md index eb4db8ce..c295c560 100644 --- a/api/docs/LineItemOptionUpdateDataRelationships.md +++ b/api/docs/LineItemOptionUpdateDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SkuOption** | Pointer to [**LineItemOptionCreateDataRelationshipsSkuOption**](LineItemOptionCreateDataRelationshipsSkuOption.md) | | [optional] +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] ## Methods @@ -50,6 +51,31 @@ SetSkuOption sets SkuOption field to given value. HasSkuOption returns a boolean if a field has been set. +### GetTags + +`func (o *LineItemOptionUpdateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *LineItemOptionUpdateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *LineItemOptionUpdateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *LineItemOptionUpdateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/LineItemOptionsApi.md b/api/docs/LineItemOptionsApi.md index 26296df9..90de9151 100644 --- a/api/docs/LineItemOptionsApi.md +++ b/api/docs/LineItemOptionsApi.md @@ -8,6 +8,7 @@ Method | HTTP request | Description [**GETLineItemIdLineItemOptions**](LineItemOptionsApi.md#GETLineItemIdLineItemOptions) | **Get** /line_items/{lineItemId}/line_item_options | Retrieve the line item options associated to the line item [**GETLineItemOptions**](LineItemOptionsApi.md#GETLineItemOptions) | **Get** /line_item_options | List all line item options [**GETLineItemOptionsLineItemOptionId**](LineItemOptionsApi.md#GETLineItemOptionsLineItemOptionId) | **Get** /line_item_options/{lineItemOptionId} | Retrieve a line item option +[**GETOrderIdLineItemOptions**](LineItemOptionsApi.md#GETOrderIdLineItemOptions) | **Get** /orders/{orderId}/line_item_options | Retrieve the line item options associated to the order [**PATCHLineItemOptionsLineItemOptionId**](LineItemOptionsApi.md#PATCHLineItemOptionsLineItemOptionId) | **Patch** /line_item_options/{lineItemOptionId} | Update a line item option [**POSTLineItemOptions**](LineItemOptionsApi.md#POSTLineItemOptions) | **Post** /line_item_options | Create a line item option @@ -280,6 +281,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETOrderIdLineItemOptions + +> GETOrderIdLineItemOptions(ctx, orderId).Execute() + +Retrieve the line item options associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.LineItemOptionsApi.GETOrderIdLineItemOptions(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LineItemOptionsApi.GETOrderIdLineItemOptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdLineItemOptionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## PATCHLineItemOptionsLineItemOptionId > PATCHLineItemOptionsLineItemOptionId200Response PATCHLineItemOptionsLineItemOptionId(ctx, lineItemOptionId).LineItemOptionUpdate(lineItemOptionUpdate).Execute() diff --git a/api/docs/LineItemUpdateData.md b/api/docs/LineItemUpdateData.md index bd2f3454..d71c1915 100644 --- a/api/docs/LineItemUpdateData.md +++ b/api/docs/LineItemUpdateData.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Type** | **interface{}** | The resource's type | **Id** | **interface{}** | The resource's id | **Attributes** | [**PATCHLineItemsLineItemId200ResponseDataAttributes**](PATCHLineItemsLineItemId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to **interface{}** | | [optional] +**Relationships** | Pointer to [**BundleUpdateDataRelationships**](BundleUpdateDataRelationships.md) | | [optional] ## Methods @@ -110,20 +110,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *LineItemUpdateData) GetRelationships() interface{}` +`func (o *LineItemUpdateData) GetRelationships() BundleUpdateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *LineItemUpdateData) GetRelationshipsOk() (*interface{}, bool)` +`func (o *LineItemUpdateData) GetRelationshipsOk() (*BundleUpdateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *LineItemUpdateData) SetRelationships(v interface{})` +`func (o *LineItemUpdateData) SetRelationships(v BundleUpdateDataRelationships)` SetRelationships sets Relationships field to given value. @@ -133,16 +133,6 @@ SetRelationships sets Relationships field to given value. HasRelationships returns a boolean if a field has been set. -### SetRelationshipsNil - -`func (o *LineItemUpdateData) SetRelationshipsNil(b bool)` - - SetRelationshipsNil sets the value for Relationships to be an explicit nil - -### UnsetRelationships -`func (o *LineItemUpdateData) UnsetRelationships()` - -UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/LineItemsApi.md b/api/docs/LineItemsApi.md index 7648143f..67fb004e 100644 --- a/api/docs/LineItemsApi.md +++ b/api/docs/LineItemsApi.md @@ -9,8 +9,11 @@ Method | HTTP request | Description [**GETLineItems**](LineItemsApi.md#GETLineItems) | **Get** /line_items | List all line items [**GETLineItemsLineItemId**](LineItemsApi.md#GETLineItemsLineItemId) | **Get** /line_items/{lineItemId} | Retrieve a line item [**GETOrderIdLineItems**](LineItemsApi.md#GETOrderIdLineItems) | **Get** /orders/{orderId}/line_items | Retrieve the line items associated to the order +[**GETOrderSubscriptionItemIdSourceLineItem**](LineItemsApi.md#GETOrderSubscriptionItemIdSourceLineItem) | **Get** /order_subscription_items/{orderSubscriptionItemId}/source_line_item | Retrieve the source line item associated to the order subscription item [**GETReturnLineItemIdLineItem**](LineItemsApi.md#GETReturnLineItemIdLineItem) | **Get** /return_line_items/{returnLineItemId}/line_item | Retrieve the line item associated to the return line item +[**GETShipmentIdLineItems**](LineItemsApi.md#GETShipmentIdLineItems) | **Get** /shipments/{shipmentId}/line_items | Retrieve the line items associated to the shipment [**GETStockLineItemIdLineItem**](LineItemsApi.md#GETStockLineItemIdLineItem) | **Get** /stock_line_items/{stockLineItemId}/line_item | Retrieve the line item associated to the stock line item +[**GETStockReservationIdLineItem**](LineItemsApi.md#GETStockReservationIdLineItem) | **Get** /stock_reservations/{stockReservationId}/line_item | Retrieve the line item associated to the stock reservation [**GETStockTransferIdLineItem**](LineItemsApi.md#GETStockTransferIdLineItem) | **Get** /stock_transfers/{stockTransferId}/line_item | Retrieve the line item associated to the stock transfer [**PATCHLineItemsLineItemId**](LineItemsApi.md#PATCHLineItemsLineItemId) | **Patch** /line_items/{lineItemId} | Update a line item [**POSTLineItems**](LineItemsApi.md#POSTLineItems) | **Post** /line_items | Create a line item @@ -352,6 +355,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETOrderSubscriptionItemIdSourceLineItem + +> GETOrderSubscriptionItemIdSourceLineItem(ctx, orderSubscriptionItemId).Execute() + +Retrieve the source line item associated to the order subscription item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderSubscriptionItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.LineItemsApi.GETOrderSubscriptionItemIdSourceLineItem(context.Background(), orderSubscriptionItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LineItemsApi.GETOrderSubscriptionItemIdSourceLineItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderSubscriptionItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderSubscriptionItemIdSourceLineItemRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETReturnLineItemIdLineItem > GETReturnLineItemIdLineItem(ctx, returnLineItemId).Execute() @@ -420,6 +491,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETShipmentIdLineItems + +> GETShipmentIdLineItems(ctx, shipmentId).Execute() + +Retrieve the line items associated to the shipment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + shipmentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.LineItemsApi.GETShipmentIdLineItems(context.Background(), shipmentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LineItemsApi.GETShipmentIdLineItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**shipmentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETShipmentIdLineItemsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETStockLineItemIdLineItem > GETStockLineItemIdLineItem(ctx, stockLineItemId).Execute() @@ -488,6 +627,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETStockReservationIdLineItem + +> GETStockReservationIdLineItem(ctx, stockReservationId).Execute() + +Retrieve the line item associated to the stock reservation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockReservationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.LineItemsApi.GETStockReservationIdLineItem(context.Background(), stockReservationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LineItemsApi.GETStockReservationIdLineItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockReservationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStockReservationIdLineItemRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETStockTransferIdLineItem > GETStockTransferIdLineItem(ctx, stockTransferId).Execute() diff --git a/api/docs/Link.md b/api/docs/Link.md new file mode 100644 index 00000000..55e7f83d --- /dev/null +++ b/api/docs/Link.md @@ -0,0 +1,56 @@ +# Link + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**LinkData**](LinkData.md) | | [optional] + +## Methods + +### NewLink + +`func NewLink() *Link` + +NewLink instantiates a new Link object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkWithDefaults + +`func NewLinkWithDefaults() *Link` + +NewLinkWithDefaults instantiates a new Link object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *Link) GetData() LinkData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *Link) GetDataOk() (*LinkData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *Link) SetData(v LinkData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *Link) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/LinkCreate.md b/api/docs/LinkCreate.md new file mode 100644 index 00000000..d8355ebf --- /dev/null +++ b/api/docs/LinkCreate.md @@ -0,0 +1,51 @@ +# LinkCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LinkCreateData**](LinkCreateData.md) | | + +## Methods + +### NewLinkCreate + +`func NewLinkCreate(data LinkCreateData, ) *LinkCreate` + +NewLinkCreate instantiates a new LinkCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkCreateWithDefaults + +`func NewLinkCreateWithDefaults() *LinkCreate` + +NewLinkCreateWithDefaults instantiates a new LinkCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *LinkCreate) GetData() LinkCreateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *LinkCreate) GetDataOk() (*LinkCreateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *LinkCreate) SetData(v LinkCreateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/LinkCreateData.md b/api/docs/LinkCreateData.md new file mode 100644 index 00000000..68467b3e --- /dev/null +++ b/api/docs/LinkCreateData.md @@ -0,0 +1,108 @@ +# LinkCreateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**POSTLinks201ResponseDataAttributes**](POSTLinks201ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**LinkCreateDataRelationships**](LinkCreateDataRelationships.md) | | [optional] + +## Methods + +### NewLinkCreateData + +`func NewLinkCreateData(type_ interface{}, attributes POSTLinks201ResponseDataAttributes, ) *LinkCreateData` + +NewLinkCreateData instantiates a new LinkCreateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkCreateDataWithDefaults + +`func NewLinkCreateDataWithDefaults() *LinkCreateData` + +NewLinkCreateDataWithDefaults instantiates a new LinkCreateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *LinkCreateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *LinkCreateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *LinkCreateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *LinkCreateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *LinkCreateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *LinkCreateData) GetAttributes() POSTLinks201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *LinkCreateData) GetAttributesOk() (*POSTLinks201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *LinkCreateData) SetAttributes(v POSTLinks201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *LinkCreateData) GetRelationships() LinkCreateDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *LinkCreateData) GetRelationshipsOk() (*LinkCreateDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *LinkCreateData) SetRelationships(v LinkCreateDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *LinkCreateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/LinkCreateDataRelationships.md b/api/docs/LinkCreateDataRelationships.md new file mode 100644 index 00000000..bfe5a12d --- /dev/null +++ b/api/docs/LinkCreateDataRelationships.md @@ -0,0 +1,51 @@ +# LinkCreateDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Item** | [**LinkCreateDataRelationshipsItem**](LinkCreateDataRelationshipsItem.md) | | + +## Methods + +### NewLinkCreateDataRelationships + +`func NewLinkCreateDataRelationships(item LinkCreateDataRelationshipsItem, ) *LinkCreateDataRelationships` + +NewLinkCreateDataRelationships instantiates a new LinkCreateDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkCreateDataRelationshipsWithDefaults + +`func NewLinkCreateDataRelationshipsWithDefaults() *LinkCreateDataRelationships` + +NewLinkCreateDataRelationshipsWithDefaults instantiates a new LinkCreateDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetItem + +`func (o *LinkCreateDataRelationships) GetItem() LinkCreateDataRelationshipsItem` + +GetItem returns the Item field if non-nil, zero value otherwise. + +### GetItemOk + +`func (o *LinkCreateDataRelationships) GetItemOk() (*LinkCreateDataRelationshipsItem, bool)` + +GetItemOk returns a tuple with the Item field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItem + +`func (o *LinkCreateDataRelationships) SetItem(v LinkCreateDataRelationshipsItem)` + +SetItem sets Item field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/LinkCreateDataRelationshipsItem.md b/api/docs/LinkCreateDataRelationshipsItem.md new file mode 100644 index 00000000..3f102fde --- /dev/null +++ b/api/docs/LinkCreateDataRelationshipsItem.md @@ -0,0 +1,51 @@ +# LinkCreateDataRelationshipsItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LinkDataRelationshipsItemData**](LinkDataRelationshipsItemData.md) | | + +## Methods + +### NewLinkCreateDataRelationshipsItem + +`func NewLinkCreateDataRelationshipsItem(data LinkDataRelationshipsItemData, ) *LinkCreateDataRelationshipsItem` + +NewLinkCreateDataRelationshipsItem instantiates a new LinkCreateDataRelationshipsItem object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkCreateDataRelationshipsItemWithDefaults + +`func NewLinkCreateDataRelationshipsItemWithDefaults() *LinkCreateDataRelationshipsItem` + +NewLinkCreateDataRelationshipsItemWithDefaults instantiates a new LinkCreateDataRelationshipsItem object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *LinkCreateDataRelationshipsItem) GetData() LinkDataRelationshipsItemData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *LinkCreateDataRelationshipsItem) GetDataOk() (*LinkDataRelationshipsItemData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *LinkCreateDataRelationshipsItem) SetData(v LinkDataRelationshipsItemData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/LinkData.md b/api/docs/LinkData.md new file mode 100644 index 00000000..af3fff74 --- /dev/null +++ b/api/docs/LinkData.md @@ -0,0 +1,108 @@ +# LinkData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**GETLinksLinkId200ResponseDataAttributes**](GETLinksLinkId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**LinkDataRelationships**](LinkDataRelationships.md) | | [optional] + +## Methods + +### NewLinkData + +`func NewLinkData(type_ interface{}, attributes GETLinksLinkId200ResponseDataAttributes, ) *LinkData` + +NewLinkData instantiates a new LinkData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkDataWithDefaults + +`func NewLinkDataWithDefaults() *LinkData` + +NewLinkDataWithDefaults instantiates a new LinkData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *LinkData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *LinkData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *LinkData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *LinkData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *LinkData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *LinkData) GetAttributes() GETLinksLinkId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *LinkData) GetAttributesOk() (*GETLinksLinkId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *LinkData) SetAttributes(v GETLinksLinkId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *LinkData) GetRelationships() LinkDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *LinkData) GetRelationshipsOk() (*LinkDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *LinkData) SetRelationships(v LinkDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *LinkData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/LinkDataRelationships.md b/api/docs/LinkDataRelationships.md new file mode 100644 index 00000000..1392b56c --- /dev/null +++ b/api/docs/LinkDataRelationships.md @@ -0,0 +1,82 @@ +# LinkDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Item** | Pointer to [**LinkDataRelationshipsItem**](LinkDataRelationshipsItem.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] + +## Methods + +### NewLinkDataRelationships + +`func NewLinkDataRelationships() *LinkDataRelationships` + +NewLinkDataRelationships instantiates a new LinkDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkDataRelationshipsWithDefaults + +`func NewLinkDataRelationshipsWithDefaults() *LinkDataRelationships` + +NewLinkDataRelationshipsWithDefaults instantiates a new LinkDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetItem + +`func (o *LinkDataRelationships) GetItem() LinkDataRelationshipsItem` + +GetItem returns the Item field if non-nil, zero value otherwise. + +### GetItemOk + +`func (o *LinkDataRelationships) GetItemOk() (*LinkDataRelationshipsItem, bool)` + +GetItemOk returns a tuple with the Item field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItem + +`func (o *LinkDataRelationships) SetItem(v LinkDataRelationshipsItem)` + +SetItem sets Item field to given value. + +### HasItem + +`func (o *LinkDataRelationships) HasItem() bool` + +HasItem returns a boolean if a field has been set. + +### GetEvents + +`func (o *LinkDataRelationships) GetEvents() AddressDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *LinkDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *LinkDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *LinkDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/LinkDataRelationshipsItem.md b/api/docs/LinkDataRelationshipsItem.md new file mode 100644 index 00000000..9843c8cd --- /dev/null +++ b/api/docs/LinkDataRelationshipsItem.md @@ -0,0 +1,56 @@ +# LinkDataRelationshipsItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**LinkDataRelationshipsItemData**](LinkDataRelationshipsItemData.md) | | [optional] + +## Methods + +### NewLinkDataRelationshipsItem + +`func NewLinkDataRelationshipsItem() *LinkDataRelationshipsItem` + +NewLinkDataRelationshipsItem instantiates a new LinkDataRelationshipsItem object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkDataRelationshipsItemWithDefaults + +`func NewLinkDataRelationshipsItemWithDefaults() *LinkDataRelationshipsItem` + +NewLinkDataRelationshipsItemWithDefaults instantiates a new LinkDataRelationshipsItem object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *LinkDataRelationshipsItem) GetData() LinkDataRelationshipsItemData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *LinkDataRelationshipsItem) GetDataOk() (*LinkDataRelationshipsItemData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *LinkDataRelationshipsItem) SetData(v LinkDataRelationshipsItemData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *LinkDataRelationshipsItem) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/LinkDataRelationshipsItemData.md b/api/docs/LinkDataRelationshipsItemData.md new file mode 100644 index 00000000..8fbb11d5 --- /dev/null +++ b/api/docs/LinkDataRelationshipsItemData.md @@ -0,0 +1,102 @@ +# LinkDataRelationshipsItemData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource's id | [optional] + +## Methods + +### NewLinkDataRelationshipsItemData + +`func NewLinkDataRelationshipsItemData() *LinkDataRelationshipsItemData` + +NewLinkDataRelationshipsItemData instantiates a new LinkDataRelationshipsItemData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkDataRelationshipsItemDataWithDefaults + +`func NewLinkDataRelationshipsItemDataWithDefaults() *LinkDataRelationshipsItemData` + +NewLinkDataRelationshipsItemDataWithDefaults instantiates a new LinkDataRelationshipsItemData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *LinkDataRelationshipsItemData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *LinkDataRelationshipsItemData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *LinkDataRelationshipsItemData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *LinkDataRelationshipsItemData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *LinkDataRelationshipsItemData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *LinkDataRelationshipsItemData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *LinkDataRelationshipsItemData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *LinkDataRelationshipsItemData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *LinkDataRelationshipsItemData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *LinkDataRelationshipsItemData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *LinkDataRelationshipsItemData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *LinkDataRelationshipsItemData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/LinkUpdate.md b/api/docs/LinkUpdate.md new file mode 100644 index 00000000..7977f2dd --- /dev/null +++ b/api/docs/LinkUpdate.md @@ -0,0 +1,51 @@ +# LinkUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LinkUpdateData**](LinkUpdateData.md) | | + +## Methods + +### NewLinkUpdate + +`func NewLinkUpdate(data LinkUpdateData, ) *LinkUpdate` + +NewLinkUpdate instantiates a new LinkUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkUpdateWithDefaults + +`func NewLinkUpdateWithDefaults() *LinkUpdate` + +NewLinkUpdateWithDefaults instantiates a new LinkUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *LinkUpdate) GetData() LinkUpdateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *LinkUpdate) GetDataOk() (*LinkUpdateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *LinkUpdate) SetData(v LinkUpdateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/LinkUpdateData.md b/api/docs/LinkUpdateData.md new file mode 100644 index 00000000..75c3de70 --- /dev/null +++ b/api/docs/LinkUpdateData.md @@ -0,0 +1,139 @@ +# LinkUpdateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Id** | **interface{}** | The resource's id | +**Attributes** | [**PATCHLinksLinkId200ResponseDataAttributes**](PATCHLinksLinkId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**LinkUpdateDataRelationships**](LinkUpdateDataRelationships.md) | | [optional] + +## Methods + +### NewLinkUpdateData + +`func NewLinkUpdateData(type_ interface{}, id interface{}, attributes PATCHLinksLinkId200ResponseDataAttributes, ) *LinkUpdateData` + +NewLinkUpdateData instantiates a new LinkUpdateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkUpdateDataWithDefaults + +`func NewLinkUpdateDataWithDefaults() *LinkUpdateData` + +NewLinkUpdateDataWithDefaults instantiates a new LinkUpdateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *LinkUpdateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *LinkUpdateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *LinkUpdateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *LinkUpdateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *LinkUpdateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *LinkUpdateData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *LinkUpdateData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *LinkUpdateData) SetId(v interface{})` + +SetId sets Id field to given value. + + +### SetIdNil + +`func (o *LinkUpdateData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *LinkUpdateData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetAttributes + +`func (o *LinkUpdateData) GetAttributes() PATCHLinksLinkId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *LinkUpdateData) GetAttributesOk() (*PATCHLinksLinkId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *LinkUpdateData) SetAttributes(v PATCHLinksLinkId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *LinkUpdateData) GetRelationships() LinkUpdateDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *LinkUpdateData) GetRelationshipsOk() (*LinkUpdateDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *LinkUpdateData) SetRelationships(v LinkUpdateDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *LinkUpdateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/LinkUpdateDataRelationships.md b/api/docs/LinkUpdateDataRelationships.md new file mode 100644 index 00000000..ea236dd5 --- /dev/null +++ b/api/docs/LinkUpdateDataRelationships.md @@ -0,0 +1,56 @@ +# LinkUpdateDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Item** | Pointer to [**LinkCreateDataRelationshipsItem**](LinkCreateDataRelationshipsItem.md) | | [optional] + +## Methods + +### NewLinkUpdateDataRelationships + +`func NewLinkUpdateDataRelationships() *LinkUpdateDataRelationships` + +NewLinkUpdateDataRelationships instantiates a new LinkUpdateDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLinkUpdateDataRelationshipsWithDefaults + +`func NewLinkUpdateDataRelationshipsWithDefaults() *LinkUpdateDataRelationships` + +NewLinkUpdateDataRelationshipsWithDefaults instantiates a new LinkUpdateDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetItem + +`func (o *LinkUpdateDataRelationships) GetItem() LinkCreateDataRelationshipsItem` + +GetItem returns the Item field if non-nil, zero value otherwise. + +### GetItemOk + +`func (o *LinkUpdateDataRelationships) GetItemOk() (*LinkCreateDataRelationshipsItem, bool)` + +GetItemOk returns a tuple with the Item field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItem + +`func (o *LinkUpdateDataRelationships) SetItem(v LinkCreateDataRelationshipsItem)` + +SetItem sets Item field to given value. + +### HasItem + +`func (o *LinkUpdateDataRelationships) HasItem() bool` + +HasItem returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/LinksApi.md b/api/docs/LinksApi.md new file mode 100644 index 00000000..028c5d1d --- /dev/null +++ b/api/docs/LinksApi.md @@ -0,0 +1,557 @@ +# \LinksApi + +All URIs are relative to *https://.commercelayer.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DELETELinksLinkId**](LinksApi.md#DELETELinksLinkId) | **Delete** /links/{linkId} | Delete a link +[**GETLinks**](LinksApi.md#GETLinks) | **Get** /links | List all links +[**GETLinksLinkId**](LinksApi.md#GETLinksLinkId) | **Get** /links/{linkId} | Retrieve a link +[**GETOrderIdLinks**](LinksApi.md#GETOrderIdLinks) | **Get** /orders/{orderId}/links | Retrieve the links associated to the order +[**GETSkuIdLinks**](LinksApi.md#GETSkuIdLinks) | **Get** /skus/{skuId}/links | Retrieve the links associated to the SKU +[**GETSkuListIdLinks**](LinksApi.md#GETSkuListIdLinks) | **Get** /sku_lists/{skuListId}/links | Retrieve the links associated to the SKU list +[**PATCHLinksLinkId**](LinksApi.md#PATCHLinksLinkId) | **Patch** /links/{linkId} | Update a link +[**POSTLinks**](LinksApi.md#POSTLinks) | **Post** /links | Create a link + + + +## DELETELinksLinkId + +> DELETELinksLinkId(ctx, linkId).Execute() + +Delete a link + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + linkId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.LinksApi.DELETELinksLinkId(context.Background(), linkId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LinksApi.DELETELinksLinkId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**linkId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDELETELinksLinkIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETLinks + +> GETLinks200Response GETLinks(ctx).Execute() + +List all links + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LinksApi.GETLinks(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LinksApi.GETLinks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETLinks`: GETLinks200Response + fmt.Fprintf(os.Stdout, "Response from `LinksApi.GETLinks`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETLinksRequest struct via the builder pattern + + +### Return type + +[**GETLinks200Response**](GETLinks200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETLinksLinkId + +> GETLinksLinkId200Response GETLinksLinkId(ctx, linkId).Execute() + +Retrieve a link + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + linkId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LinksApi.GETLinksLinkId(context.Background(), linkId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LinksApi.GETLinksLinkId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETLinksLinkId`: GETLinksLinkId200Response + fmt.Fprintf(os.Stdout, "Response from `LinksApi.GETLinksLinkId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**linkId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETLinksLinkIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**GETLinksLinkId200Response**](GETLinksLinkId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdLinks + +> GETOrderIdLinks(ctx, orderId).Execute() + +Retrieve the links associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.LinksApi.GETOrderIdLinks(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LinksApi.GETOrderIdLinks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdLinksRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETSkuIdLinks + +> GETSkuIdLinks(ctx, skuId).Execute() + +Retrieve the links associated to the SKU + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + skuId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.LinksApi.GETSkuIdLinks(context.Background(), skuId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LinksApi.GETSkuIdLinks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**skuId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETSkuIdLinksRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETSkuListIdLinks + +> GETSkuListIdLinks(ctx, skuListId).Execute() + +Retrieve the links associated to the SKU list + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + skuListId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.LinksApi.GETSkuListIdLinks(context.Background(), skuListId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LinksApi.GETSkuListIdLinks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**skuListId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETSkuListIdLinksRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PATCHLinksLinkId + +> PATCHLinksLinkId200Response PATCHLinksLinkId(ctx, linkId).LinkUpdate(linkUpdate).Execute() + +Update a link + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + linkUpdate := *openapiclient.NewLinkUpdate(*openapiclient.NewLinkUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHLinksLinkId200ResponseDataAttributes())) // LinkUpdate | + linkId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LinksApi.PATCHLinksLinkId(context.Background(), linkId).LinkUpdate(linkUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LinksApi.PATCHLinksLinkId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PATCHLinksLinkId`: PATCHLinksLinkId200Response + fmt.Fprintf(os.Stdout, "Response from `LinksApi.PATCHLinksLinkId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**linkId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPATCHLinksLinkIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **linkUpdate** | [**LinkUpdate**](LinkUpdate.md) | | + + +### Return type + +[**PATCHLinksLinkId200Response**](PATCHLinksLinkId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## POSTLinks + +> POSTLinks201Response POSTLinks(ctx).LinkCreate(linkCreate).Execute() + +Create a link + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + linkCreate := *openapiclient.NewLinkCreate(*openapiclient.NewLinkCreateData(interface{}(123), *openapiclient.NewPOSTLinks201ResponseDataAttributes(interface{}(FW SALE 2023), interface{}(xxxx-yyyy-zzzz), interface{}(market:id:GhvCxsElAQ,market:id:kJhgVcxZDr)))) // LinkCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LinksApi.POSTLinks(context.Background()).LinkCreate(linkCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LinksApi.POSTLinks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `POSTLinks`: POSTLinks201Response + fmt.Fprintf(os.Stdout, "Response from `LinksApi.POSTLinks`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPOSTLinksRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **linkCreate** | [**LinkCreate**](LinkCreate.md) | | + +### Return type + +[**POSTLinks201Response**](POSTLinks201Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/api/docs/ManualGatewayDataRelationships.md b/api/docs/ManualGatewayDataRelationships.md index 468a118f..9f675b0f 100644 --- a/api/docs/ManualGatewayDataRelationships.md +++ b/api/docs/ManualGatewayDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**AdyenGatewayDataRelationshipsPaymentMethods**](AdyenGatewayDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -50,6 +51,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *ManualGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *ManualGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *ManualGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *ManualGatewayDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/ManualTaxCalculatorDataRelationships.md b/api/docs/ManualTaxCalculatorDataRelationships.md index 3c30dae0..43264729 100644 --- a/api/docs/ManualTaxCalculatorDataRelationships.md +++ b/api/docs/ManualTaxCalculatorDataRelationships.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Markets** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] **TaxRules** | Pointer to [**ManualTaxCalculatorDataRelationshipsTaxRules**](ManualTaxCalculatorDataRelationshipsTaxRules.md) | | [optional] ## Methods @@ -54,20 +55,20 @@ HasMarkets returns a boolean if a field has been set. ### GetAttachments -`func (o *ManualTaxCalculatorDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *ManualTaxCalculatorDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *ManualTaxCalculatorDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *ManualTaxCalculatorDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *ManualTaxCalculatorDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *ManualTaxCalculatorDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -77,6 +78,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *ManualTaxCalculatorDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *ManualTaxCalculatorDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *ManualTaxCalculatorDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *ManualTaxCalculatorDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetTaxRules `func (o *ManualTaxCalculatorDataRelationships) GetTaxRules() ManualTaxCalculatorDataRelationshipsTaxRules` diff --git a/api/docs/MarketCreateDataRelationships.md b/api/docs/MarketCreateDataRelationships.md index b0778cff..bdc184da 100644 --- a/api/docs/MarketCreateDataRelationships.md +++ b/api/docs/MarketCreateDataRelationships.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **SubscriptionModel** | Pointer to [**MarketCreateDataRelationshipsSubscriptionModel**](MarketCreateDataRelationshipsSubscriptionModel.md) | | [optional] **TaxCalculator** | Pointer to [**MarketCreateDataRelationshipsTaxCalculator**](MarketCreateDataRelationshipsTaxCalculator.md) | | [optional] **CustomerGroup** | Pointer to [**CustomerCreateDataRelationshipsCustomerGroup**](CustomerCreateDataRelationshipsCustomerGroup.md) | | [optional] +**Geocoder** | Pointer to [**AddressCreateDataRelationshipsGeocoder**](AddressCreateDataRelationshipsGeocoder.md) | | [optional] ## Methods @@ -165,6 +166,31 @@ SetCustomerGroup sets CustomerGroup field to given value. HasCustomerGroup returns a boolean if a field has been set. +### GetGeocoder + +`func (o *MarketCreateDataRelationships) GetGeocoder() AddressCreateDataRelationshipsGeocoder` + +GetGeocoder returns the Geocoder field if non-nil, zero value otherwise. + +### GetGeocoderOk + +`func (o *MarketCreateDataRelationships) GetGeocoderOk() (*AddressCreateDataRelationshipsGeocoder, bool)` + +GetGeocoderOk returns a tuple with the Geocoder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGeocoder + +`func (o *MarketCreateDataRelationships) SetGeocoder(v AddressCreateDataRelationshipsGeocoder)` + +SetGeocoder sets Geocoder field to given value. + +### HasGeocoder + +`func (o *MarketCreateDataRelationships) HasGeocoder() bool` + +HasGeocoder returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/MarketDataRelationships.md b/api/docs/MarketDataRelationships.md index f8f533e4..76f6ab4f 100644 --- a/api/docs/MarketDataRelationships.md +++ b/api/docs/MarketDataRelationships.md @@ -6,11 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Merchant** | Pointer to [**MarketDataRelationshipsMerchant**](MarketDataRelationshipsMerchant.md) | | [optional] **PriceList** | Pointer to [**MarketDataRelationshipsPriceList**](MarketDataRelationshipsPriceList.md) | | [optional] +**BasePriceList** | Pointer to [**MarketDataRelationshipsPriceList**](MarketDataRelationshipsPriceList.md) | | [optional] **InventoryModel** | Pointer to [**InventoryReturnLocationDataRelationshipsInventoryModel**](InventoryReturnLocationDataRelationshipsInventoryModel.md) | | [optional] **SubscriptionModel** | Pointer to [**MarketDataRelationshipsSubscriptionModel**](MarketDataRelationshipsSubscriptionModel.md) | | [optional] **TaxCalculator** | Pointer to [**MarketDataRelationshipsTaxCalculator**](MarketDataRelationshipsTaxCalculator.md) | | [optional] **CustomerGroup** | Pointer to [**CustomerDataRelationshipsCustomerGroup**](CustomerDataRelationshipsCustomerGroup.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Geocoder** | Pointer to [**AddressDataRelationshipsGeocoder**](AddressDataRelationshipsGeocoder.md) | | [optional] +**PriceListSchedulers** | Pointer to [**MarketDataRelationshipsPriceListSchedulers**](MarketDataRelationshipsPriceListSchedulers.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -81,6 +85,31 @@ SetPriceList sets PriceList field to given value. HasPriceList returns a boolean if a field has been set. +### GetBasePriceList + +`func (o *MarketDataRelationships) GetBasePriceList() MarketDataRelationshipsPriceList` + +GetBasePriceList returns the BasePriceList field if non-nil, zero value otherwise. + +### GetBasePriceListOk + +`func (o *MarketDataRelationships) GetBasePriceListOk() (*MarketDataRelationshipsPriceList, bool)` + +GetBasePriceListOk returns a tuple with the BasePriceList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBasePriceList + +`func (o *MarketDataRelationships) SetBasePriceList(v MarketDataRelationshipsPriceList)` + +SetBasePriceList sets BasePriceList field to given value. + +### HasBasePriceList + +`func (o *MarketDataRelationships) HasBasePriceList() bool` + +HasBasePriceList returns a boolean if a field has been set. + ### GetInventoryModel `func (o *MarketDataRelationships) GetInventoryModel() InventoryReturnLocationDataRelationshipsInventoryModel` @@ -181,22 +210,72 @@ SetCustomerGroup sets CustomerGroup field to given value. HasCustomerGroup returns a boolean if a field has been set. +### GetGeocoder + +`func (o *MarketDataRelationships) GetGeocoder() AddressDataRelationshipsGeocoder` + +GetGeocoder returns the Geocoder field if non-nil, zero value otherwise. + +### GetGeocoderOk + +`func (o *MarketDataRelationships) GetGeocoderOk() (*AddressDataRelationshipsGeocoder, bool)` + +GetGeocoderOk returns a tuple with the Geocoder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGeocoder + +`func (o *MarketDataRelationships) SetGeocoder(v AddressDataRelationshipsGeocoder)` + +SetGeocoder sets Geocoder field to given value. + +### HasGeocoder + +`func (o *MarketDataRelationships) HasGeocoder() bool` + +HasGeocoder returns a boolean if a field has been set. + +### GetPriceListSchedulers + +`func (o *MarketDataRelationships) GetPriceListSchedulers() MarketDataRelationshipsPriceListSchedulers` + +GetPriceListSchedulers returns the PriceListSchedulers field if non-nil, zero value otherwise. + +### GetPriceListSchedulersOk + +`func (o *MarketDataRelationships) GetPriceListSchedulersOk() (*MarketDataRelationshipsPriceListSchedulers, bool)` + +GetPriceListSchedulersOk returns a tuple with the PriceListSchedulers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriceListSchedulers + +`func (o *MarketDataRelationships) SetPriceListSchedulers(v MarketDataRelationshipsPriceListSchedulers)` + +SetPriceListSchedulers sets PriceListSchedulers field to given value. + +### HasPriceListSchedulers + +`func (o *MarketDataRelationships) HasPriceListSchedulers() bool` + +HasPriceListSchedulers returns a boolean if a field has been set. + ### GetAttachments -`func (o *MarketDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *MarketDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *MarketDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *MarketDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *MarketDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *MarketDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -206,6 +285,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *MarketDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *MarketDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *MarketDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *MarketDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/MarketDataRelationshipsPriceListSchedulers.md b/api/docs/MarketDataRelationshipsPriceListSchedulers.md new file mode 100644 index 00000000..ef9a1de2 --- /dev/null +++ b/api/docs/MarketDataRelationshipsPriceListSchedulers.md @@ -0,0 +1,56 @@ +# MarketDataRelationshipsPriceListSchedulers + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**MarketDataRelationshipsPriceListSchedulersData**](MarketDataRelationshipsPriceListSchedulersData.md) | | [optional] + +## Methods + +### NewMarketDataRelationshipsPriceListSchedulers + +`func NewMarketDataRelationshipsPriceListSchedulers() *MarketDataRelationshipsPriceListSchedulers` + +NewMarketDataRelationshipsPriceListSchedulers instantiates a new MarketDataRelationshipsPriceListSchedulers object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMarketDataRelationshipsPriceListSchedulersWithDefaults + +`func NewMarketDataRelationshipsPriceListSchedulersWithDefaults() *MarketDataRelationshipsPriceListSchedulers` + +NewMarketDataRelationshipsPriceListSchedulersWithDefaults instantiates a new MarketDataRelationshipsPriceListSchedulers object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *MarketDataRelationshipsPriceListSchedulers) GetData() MarketDataRelationshipsPriceListSchedulersData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *MarketDataRelationshipsPriceListSchedulers) GetDataOk() (*MarketDataRelationshipsPriceListSchedulersData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *MarketDataRelationshipsPriceListSchedulers) SetData(v MarketDataRelationshipsPriceListSchedulersData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *MarketDataRelationshipsPriceListSchedulers) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/LineItemDataRelationshipsShipmentLineItemsData.md b/api/docs/MarketDataRelationshipsPriceListSchedulersData.md similarity index 58% rename from api/docs/LineItemDataRelationshipsShipmentLineItemsData.md rename to api/docs/MarketDataRelationshipsPriceListSchedulersData.md index dac526f5..274f6fb3 100644 --- a/api/docs/LineItemDataRelationshipsShipmentLineItemsData.md +++ b/api/docs/MarketDataRelationshipsPriceListSchedulersData.md @@ -1,4 +1,4 @@ -# LineItemDataRelationshipsShipmentLineItemsData +# MarketDataRelationshipsPriceListSchedulersData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewLineItemDataRelationshipsShipmentLineItemsData +### NewMarketDataRelationshipsPriceListSchedulersData -`func NewLineItemDataRelationshipsShipmentLineItemsData() *LineItemDataRelationshipsShipmentLineItemsData` +`func NewMarketDataRelationshipsPriceListSchedulersData() *MarketDataRelationshipsPriceListSchedulersData` -NewLineItemDataRelationshipsShipmentLineItemsData instantiates a new LineItemDataRelationshipsShipmentLineItemsData object +NewMarketDataRelationshipsPriceListSchedulersData instantiates a new MarketDataRelationshipsPriceListSchedulersData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewLineItemDataRelationshipsShipmentLineItemsDataWithDefaults +### NewMarketDataRelationshipsPriceListSchedulersDataWithDefaults -`func NewLineItemDataRelationshipsShipmentLineItemsDataWithDefaults() *LineItemDataRelationshipsShipmentLineItemsData` +`func NewMarketDataRelationshipsPriceListSchedulersDataWithDefaults() *MarketDataRelationshipsPriceListSchedulersData` -NewLineItemDataRelationshipsShipmentLineItemsDataWithDefaults instantiates a new LineItemDataRelationshipsShipmentLineItemsData object +NewMarketDataRelationshipsPriceListSchedulersDataWithDefaults instantiates a new MarketDataRelationshipsPriceListSchedulersData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *LineItemDataRelationshipsShipmentLineItemsData) GetType() interface{}` +`func (o *MarketDataRelationshipsPriceListSchedulersData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *LineItemDataRelationshipsShipmentLineItemsData) GetTypeOk() (*interface{}, bool)` +`func (o *MarketDataRelationshipsPriceListSchedulersData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *LineItemDataRelationshipsShipmentLineItemsData) SetType(v interface{})` +`func (o *MarketDataRelationshipsPriceListSchedulersData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *LineItemDataRelationshipsShipmentLineItemsData) HasType() bool` +`func (o *MarketDataRelationshipsPriceListSchedulersData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *LineItemDataRelationshipsShipmentLineItemsData) SetTypeNil(b bool)` +`func (o *MarketDataRelationshipsPriceListSchedulersData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *LineItemDataRelationshipsShipmentLineItemsData) UnsetType()` +`func (o *MarketDataRelationshipsPriceListSchedulersData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *LineItemDataRelationshipsShipmentLineItemsData) GetId() interface{}` +`func (o *MarketDataRelationshipsPriceListSchedulersData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *LineItemDataRelationshipsShipmentLineItemsData) GetIdOk() (*interface{}, bool)` +`func (o *MarketDataRelationshipsPriceListSchedulersData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *LineItemDataRelationshipsShipmentLineItemsData) SetId(v interface{})` +`func (o *MarketDataRelationshipsPriceListSchedulersData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *LineItemDataRelationshipsShipmentLineItemsData) HasId() bool` +`func (o *MarketDataRelationshipsPriceListSchedulersData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *LineItemDataRelationshipsShipmentLineItemsData) SetIdNil(b bool)` +`func (o *MarketDataRelationshipsPriceListSchedulersData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *LineItemDataRelationshipsShipmentLineItemsData) UnsetId()` +`func (o *MarketDataRelationshipsPriceListSchedulersData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/MarketUpdateDataRelationships.md b/api/docs/MarketUpdateDataRelationships.md index 0f300609..f182ad17 100644 --- a/api/docs/MarketUpdateDataRelationships.md +++ b/api/docs/MarketUpdateDataRelationships.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **SubscriptionModel** | Pointer to [**MarketCreateDataRelationshipsSubscriptionModel**](MarketCreateDataRelationshipsSubscriptionModel.md) | | [optional] **TaxCalculator** | Pointer to [**MarketCreateDataRelationshipsTaxCalculator**](MarketCreateDataRelationshipsTaxCalculator.md) | | [optional] **CustomerGroup** | Pointer to [**CustomerCreateDataRelationshipsCustomerGroup**](CustomerCreateDataRelationshipsCustomerGroup.md) | | [optional] +**Geocoder** | Pointer to [**AddressCreateDataRelationshipsGeocoder**](AddressCreateDataRelationshipsGeocoder.md) | | [optional] ## Methods @@ -180,6 +181,31 @@ SetCustomerGroup sets CustomerGroup field to given value. HasCustomerGroup returns a boolean if a field has been set. +### GetGeocoder + +`func (o *MarketUpdateDataRelationships) GetGeocoder() AddressCreateDataRelationshipsGeocoder` + +GetGeocoder returns the Geocoder field if non-nil, zero value otherwise. + +### GetGeocoderOk + +`func (o *MarketUpdateDataRelationships) GetGeocoderOk() (*AddressCreateDataRelationshipsGeocoder, bool)` + +GetGeocoderOk returns a tuple with the Geocoder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGeocoder + +`func (o *MarketUpdateDataRelationships) SetGeocoder(v AddressCreateDataRelationshipsGeocoder)` + +SetGeocoder sets Geocoder field to given value. + +### HasGeocoder + +`func (o *MarketUpdateDataRelationships) HasGeocoder() bool` + +HasGeocoder returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/MarketsApi.md b/api/docs/MarketsApi.md index 55e5d4c1..43c267a4 100644 --- a/api/docs/MarketsApi.md +++ b/api/docs/MarketsApi.md @@ -7,7 +7,9 @@ Method | HTTP request | Description [**DELETEMarketsMarketId**](MarketsApi.md#DELETEMarketsMarketId) | **Delete** /markets/{marketId} | Delete a market [**GETAvalaraAccountIdMarkets**](MarketsApi.md#GETAvalaraAccountIdMarkets) | **Get** /avalara_accounts/{avalaraAccountId}/markets | Retrieve the markets associated to the avalara account [**GETBillingInfoValidationRuleIdMarket**](MarketsApi.md#GETBillingInfoValidationRuleIdMarket) | **Get** /billing_info_validation_rules/{billingInfoValidationRuleId}/market | Retrieve the market associated to the billing info validation rule +[**GETBingGeocoderIdMarkets**](MarketsApi.md#GETBingGeocoderIdMarkets) | **Get** /bing_geocoders/{bingGeocoderId}/markets | Retrieve the markets associated to the bing geocoder [**GETBundleIdMarket**](MarketsApi.md#GETBundleIdMarket) | **Get** /bundles/{bundleId}/market | Retrieve the market associated to the bundle +[**GETBuyXPayYPromotionIdMarket**](MarketsApi.md#GETBuyXPayYPromotionIdMarket) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/market | Retrieve the market associated to the buy x pay y promotion [**GETCarrierAccountIdMarket**](MarketsApi.md#GETCarrierAccountIdMarket) | **Get** /carrier_accounts/{carrierAccountId}/market | Retrieve the market associated to the carrier account [**GETCustomerGroupIdMarkets**](MarketsApi.md#GETCustomerGroupIdMarkets) | **Get** /customer_groups/{customerGroupId}/markets | Retrieve the markets associated to the customer group [**GETExternalPromotionIdMarket**](MarketsApi.md#GETExternalPromotionIdMarket) | **Get** /external_promotions/{externalPromotionId}/market | Retrieve the market associated to the external promotion @@ -16,18 +18,22 @@ Method | HTTP request | Description [**GETFixedPricePromotionIdMarket**](MarketsApi.md#GETFixedPricePromotionIdMarket) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/market | Retrieve the market associated to the fixed price promotion [**GETFreeGiftPromotionIdMarket**](MarketsApi.md#GETFreeGiftPromotionIdMarket) | **Get** /free_gift_promotions/{freeGiftPromotionId}/market | Retrieve the market associated to the free gift promotion [**GETFreeShippingPromotionIdMarket**](MarketsApi.md#GETFreeShippingPromotionIdMarket) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/market | Retrieve the market associated to the free shipping promotion +[**GETGeocoderIdMarkets**](MarketsApi.md#GETGeocoderIdMarkets) | **Get** /geocoders/{geocoderId}/markets | Retrieve the markets associated to the geocoder [**GETGiftCardIdMarket**](MarketsApi.md#GETGiftCardIdMarket) | **Get** /gift_cards/{giftCardId}/market | Retrieve the market associated to the gift card +[**GETGoogleGeocoderIdMarkets**](MarketsApi.md#GETGoogleGeocoderIdMarkets) | **Get** /google_geocoders/{googleGeocoderId}/markets | Retrieve the markets associated to the google geocoder [**GETInStockSubscriptionIdMarket**](MarketsApi.md#GETInStockSubscriptionIdMarket) | **Get** /in_stock_subscriptions/{inStockSubscriptionId}/market | Retrieve the market associated to the in stock subscription [**GETManualTaxCalculatorIdMarkets**](MarketsApi.md#GETManualTaxCalculatorIdMarkets) | **Get** /manual_tax_calculators/{manualTaxCalculatorId}/markets | Retrieve the markets associated to the manual tax calculator [**GETMarkets**](MarketsApi.md#GETMarkets) | **Get** /markets | List all markets [**GETMarketsMarketId**](MarketsApi.md#GETMarketsMarketId) | **Get** /markets/{marketId} | Retrieve a market [**GETOrderIdMarket**](MarketsApi.md#GETOrderIdMarket) | **Get** /orders/{orderId}/market | Retrieve the market associated to the order [**GETOrderSubscriptionIdMarket**](MarketsApi.md#GETOrderSubscriptionIdMarket) | **Get** /order_subscriptions/{orderSubscriptionId}/market | Retrieve the market associated to the order subscription -[**GETOrderValidationRuleIdMarket**](MarketsApi.md#GETOrderValidationRuleIdMarket) | **Get** /order_validation_rules/{orderValidationRuleId}/market | Retrieve the market associated to the order validation rule [**GETPaymentMethodIdMarket**](MarketsApi.md#GETPaymentMethodIdMarket) | **Get** /payment_methods/{paymentMethodId}/market | Retrieve the market associated to the payment method [**GETPercentageDiscountPromotionIdMarket**](MarketsApi.md#GETPercentageDiscountPromotionIdMarket) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/market | Retrieve the market associated to the percentage discount promotion +[**GETPriceIdJwtMarkets**](MarketsApi.md#GETPriceIdJwtMarkets) | **Get** /prices/{priceId}/jwt_markets | Retrieve the jwt markets associated to the price +[**GETPriceListSchedulerIdMarket**](MarketsApi.md#GETPriceListSchedulerIdMarket) | **Get** /price_list_schedulers/{priceListSchedulerId}/market | Retrieve the market associated to the price list scheduler [**GETPromotionIdMarket**](MarketsApi.md#GETPromotionIdMarket) | **Get** /promotions/{promotionId}/market | Retrieve the market associated to the promotion [**GETShippingMethodIdMarket**](MarketsApi.md#GETShippingMethodIdMarket) | **Get** /shipping_methods/{shippingMethodId}/market | Retrieve the market associated to the shipping method +[**GETSkuIdJwtMarkets**](MarketsApi.md#GETSkuIdJwtMarkets) | **Get** /skus/{skuId}/jwt_markets | Retrieve the jwt markets associated to the SKU [**GETSkuOptionIdMarket**](MarketsApi.md#GETSkuOptionIdMarket) | **Get** /sku_options/{skuOptionId}/market | Retrieve the market associated to the SKU option [**GETSubscriptionModelIdMarkets**](MarketsApi.md#GETSubscriptionModelIdMarkets) | **Get** /subscription_models/{subscriptionModelId}/markets | Retrieve the markets associated to the subscription model [**GETTaxCalculatorIdMarkets**](MarketsApi.md#GETTaxCalculatorIdMarkets) | **Get** /tax_calculators/{taxCalculatorId}/markets | Retrieve the markets associated to the tax calculator @@ -241,6 +247,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETBingGeocoderIdMarkets + +> GETBingGeocoderIdMarkets(ctx, bingGeocoderId).Execute() + +Retrieve the markets associated to the bing geocoder + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + bingGeocoderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.MarketsApi.GETBingGeocoderIdMarkets(context.Background(), bingGeocoderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MarketsApi.GETBingGeocoderIdMarkets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**bingGeocoderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBingGeocoderIdMarketsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETBundleIdMarket > GETBundleIdMarket(ctx, bundleId).Execute() @@ -309,6 +383,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETBuyXPayYPromotionIdMarket + +> GETBuyXPayYPromotionIdMarket(ctx, buyXPayYPromotionId).Execute() + +Retrieve the market associated to the buy x pay y promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + buyXPayYPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.MarketsApi.GETBuyXPayYPromotionIdMarket(context.Background(), buyXPayYPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MarketsApi.GETBuyXPayYPromotionIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdMarketRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETCarrierAccountIdMarket > GETCarrierAccountIdMarket(ctx, carrierAccountId).Execute() @@ -853,6 +995,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETGeocoderIdMarkets + +> GETGeocoderIdMarkets(ctx, geocoderId).Execute() + +Retrieve the markets associated to the geocoder + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + geocoderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.MarketsApi.GETGeocoderIdMarkets(context.Background(), geocoderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MarketsApi.GETGeocoderIdMarkets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**geocoderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGeocoderIdMarketsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETGiftCardIdMarket > GETGiftCardIdMarket(ctx, giftCardId).Execute() @@ -921,6 +1131,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETGoogleGeocoderIdMarkets + +> GETGoogleGeocoderIdMarkets(ctx, googleGeocoderId).Execute() + +Retrieve the markets associated to the google geocoder + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + googleGeocoderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.MarketsApi.GETGoogleGeocoderIdMarkets(context.Background(), googleGeocoderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MarketsApi.GETGoogleGeocoderIdMarkets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**googleGeocoderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGoogleGeocoderIdMarketsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETInStockSubscriptionIdMarket > GETInStockSubscriptionIdMarket(ctx, inStockSubscriptionId).Execute() @@ -1324,11 +1602,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETOrderValidationRuleIdMarket +## GETPaymentMethodIdMarket -> GETOrderValidationRuleIdMarket(ctx, orderValidationRuleId).Execute() +> GETPaymentMethodIdMarket(ctx, paymentMethodId).Execute() -Retrieve the market associated to the order validation rule +Retrieve the market associated to the payment method @@ -1345,13 +1623,13 @@ import ( ) func main() { - orderValidationRuleId := TODO // interface{} | The resource's id + paymentMethodId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.MarketsApi.GETOrderValidationRuleIdMarket(context.Background(), orderValidationRuleId).Execute() + r, err := apiClient.MarketsApi.GETPaymentMethodIdMarket(context.Background(), paymentMethodId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarketsApi.GETOrderValidationRuleIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `MarketsApi.GETPaymentMethodIdMarket``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1363,11 +1641,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderValidationRuleId** | [**interface{}**](.md) | The resource's id | +**paymentMethodId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETOrderValidationRuleIdMarketRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPaymentMethodIdMarketRequest struct via the builder pattern Name | Type | Description | Notes @@ -1392,11 +1670,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPaymentMethodIdMarket +## GETPercentageDiscountPromotionIdMarket -> GETPaymentMethodIdMarket(ctx, paymentMethodId).Execute() +> GETPercentageDiscountPromotionIdMarket(ctx, percentageDiscountPromotionId).Execute() -Retrieve the market associated to the payment method +Retrieve the market associated to the percentage discount promotion @@ -1413,13 +1691,13 @@ import ( ) func main() { - paymentMethodId := TODO // interface{} | The resource's id + percentageDiscountPromotionId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.MarketsApi.GETPaymentMethodIdMarket(context.Background(), paymentMethodId).Execute() + r, err := apiClient.MarketsApi.GETPercentageDiscountPromotionIdMarket(context.Background(), percentageDiscountPromotionId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarketsApi.GETPaymentMethodIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `MarketsApi.GETPercentageDiscountPromotionIdMarket``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1431,11 +1709,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**paymentMethodId** | [**interface{}**](.md) | The resource's id | +**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPaymentMethodIdMarketRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdMarketRequest struct via the builder pattern Name | Type | Description | Notes @@ -1460,11 +1738,11 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GETPercentageDiscountPromotionIdMarket +## GETPriceIdJwtMarkets -> GETPercentageDiscountPromotionIdMarket(ctx, percentageDiscountPromotionId).Execute() +> GETPriceIdJwtMarkets(ctx, priceId).Execute() -Retrieve the market associated to the percentage discount promotion +Retrieve the jwt markets associated to the price @@ -1481,13 +1759,13 @@ import ( ) func main() { - percentageDiscountPromotionId := TODO // interface{} | The resource's id + priceId := TODO // interface{} | The resource's id configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.MarketsApi.GETPercentageDiscountPromotionIdMarket(context.Background(), percentageDiscountPromotionId).Execute() + r, err := apiClient.MarketsApi.GETPriceIdJwtMarkets(context.Background(), priceId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `MarketsApi.GETPercentageDiscountPromotionIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `MarketsApi.GETPriceIdJwtMarkets``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1499,11 +1777,79 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | +**priceId** | [**interface{}**](.md) | The resource's id | ### Other Parameters -Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdMarketRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiGETPriceIdJwtMarketsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceListSchedulerIdMarket + +> GETPriceListSchedulerIdMarket(ctx, priceListSchedulerId).Execute() + +Retrieve the market associated to the price list scheduler + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceListSchedulerId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.MarketsApi.GETPriceListSchedulerIdMarket(context.Background(), priceListSchedulerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MarketsApi.GETPriceListSchedulerIdMarket``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceListSchedulerId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceListSchedulerIdMarketRequest struct via the builder pattern Name | Type | Description | Notes @@ -1664,6 +2010,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETSkuIdJwtMarkets + +> GETSkuIdJwtMarkets(ctx, skuId).Execute() + +Retrieve the jwt markets associated to the SKU + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + skuId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.MarketsApi.GETSkuIdJwtMarkets(context.Background(), skuId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MarketsApi.GETSkuIdJwtMarkets``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**skuId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETSkuIdJwtMarketsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETSkuOptionIdMarket > GETSkuOptionIdMarket(ctx, skuOptionId).Execute() diff --git a/api/docs/MerchantDataRelationships.md b/api/docs/MerchantDataRelationships.md index c764f303..27d56eea 100644 --- a/api/docs/MerchantDataRelationships.md +++ b/api/docs/MerchantDataRelationships.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Address** | Pointer to [**BingGeocoderDataRelationshipsAddresses**](BingGeocoderDataRelationshipsAddresses.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -53,20 +54,20 @@ HasAddress returns a boolean if a field has been set. ### GetAttachments -`func (o *MerchantDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *MerchantDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *MerchantDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *MerchantDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *MerchantDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *MerchantDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -76,6 +77,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *MerchantDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *MerchantDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *MerchantDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *MerchantDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/OrderAmountPromotionRuleCreateData.md b/api/docs/OrderAmountPromotionRuleCreateData.md index 81dc668b..9b8dd7d6 100644 --- a/api/docs/OrderAmountPromotionRuleCreateData.md +++ b/api/docs/OrderAmountPromotionRuleCreateData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**POSTOrderAmountPromotionRules201ResponseDataAttributes**](POSTOrderAmountPromotionRules201ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**OrderAmountPromotionRuleCreateDataRelationships**](OrderAmountPromotionRuleCreateDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**CustomPromotionRuleCreateDataRelationships**](CustomPromotionRuleCreateDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *OrderAmountPromotionRuleCreateData) GetRelationships() OrderAmountPromotionRuleCreateDataRelationships` +`func (o *OrderAmountPromotionRuleCreateData) GetRelationships() CustomPromotionRuleCreateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *OrderAmountPromotionRuleCreateData) GetRelationshipsOk() (*OrderAmountPromotionRuleCreateDataRelationships, bool)` +`func (o *OrderAmountPromotionRuleCreateData) GetRelationshipsOk() (*CustomPromotionRuleCreateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *OrderAmountPromotionRuleCreateData) SetRelationships(v OrderAmountPromotionRuleCreateDataRelationships)` +`func (o *OrderAmountPromotionRuleCreateData) SetRelationships(v CustomPromotionRuleCreateDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/OrderAmountPromotionRuleCreateDataRelationships.md b/api/docs/OrderAmountPromotionRuleCreateDataRelationships.md deleted file mode 100644 index bc40350d..00000000 --- a/api/docs/OrderAmountPromotionRuleCreateDataRelationships.md +++ /dev/null @@ -1,51 +0,0 @@ -# OrderAmountPromotionRuleCreateDataRelationships - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Promotion** | [**CouponCodesPromotionRuleCreateDataRelationshipsPromotion**](CouponCodesPromotionRuleCreateDataRelationshipsPromotion.md) | | - -## Methods - -### NewOrderAmountPromotionRuleCreateDataRelationships - -`func NewOrderAmountPromotionRuleCreateDataRelationships(promotion CouponCodesPromotionRuleCreateDataRelationshipsPromotion, ) *OrderAmountPromotionRuleCreateDataRelationships` - -NewOrderAmountPromotionRuleCreateDataRelationships instantiates a new OrderAmountPromotionRuleCreateDataRelationships object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewOrderAmountPromotionRuleCreateDataRelationshipsWithDefaults - -`func NewOrderAmountPromotionRuleCreateDataRelationshipsWithDefaults() *OrderAmountPromotionRuleCreateDataRelationships` - -NewOrderAmountPromotionRuleCreateDataRelationshipsWithDefaults instantiates a new OrderAmountPromotionRuleCreateDataRelationships object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetPromotion - -`func (o *OrderAmountPromotionRuleCreateDataRelationships) GetPromotion() CouponCodesPromotionRuleCreateDataRelationshipsPromotion` - -GetPromotion returns the Promotion field if non-nil, zero value otherwise. - -### GetPromotionOk - -`func (o *OrderAmountPromotionRuleCreateDataRelationships) GetPromotionOk() (*CouponCodesPromotionRuleCreateDataRelationshipsPromotion, bool)` - -GetPromotionOk returns a tuple with the Promotion field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPromotion - -`func (o *OrderAmountPromotionRuleCreateDataRelationships) SetPromotion(v CouponCodesPromotionRuleCreateDataRelationshipsPromotion)` - -SetPromotion sets Promotion field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/OrderAmountPromotionRuleData.md b/api/docs/OrderAmountPromotionRuleData.md index 8269f80e..8f55f2ab 100644 --- a/api/docs/OrderAmountPromotionRuleData.md +++ b/api/docs/OrderAmountPromotionRuleData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes**](GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**OrderAmountPromotionRuleDataRelationships**](OrderAmountPromotionRuleDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**CustomPromotionRuleDataRelationships**](CustomPromotionRuleDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *OrderAmountPromotionRuleData) GetRelationships() OrderAmountPromotionRuleDataRelationships` +`func (o *OrderAmountPromotionRuleData) GetRelationships() CustomPromotionRuleDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *OrderAmountPromotionRuleData) GetRelationshipsOk() (*OrderAmountPromotionRuleDataRelationships, bool)` +`func (o *OrderAmountPromotionRuleData) GetRelationshipsOk() (*CustomPromotionRuleDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *OrderAmountPromotionRuleData) SetRelationships(v OrderAmountPromotionRuleDataRelationships)` +`func (o *OrderAmountPromotionRuleData) SetRelationships(v CustomPromotionRuleDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/OrderAmountPromotionRuleDataRelationships.md b/api/docs/OrderAmountPromotionRuleDataRelationships.md deleted file mode 100644 index ef4326eb..00000000 --- a/api/docs/OrderAmountPromotionRuleDataRelationships.md +++ /dev/null @@ -1,56 +0,0 @@ -# OrderAmountPromotionRuleDataRelationships - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Promotion** | Pointer to [**CouponCodesPromotionRuleDataRelationshipsPromotion**](CouponCodesPromotionRuleDataRelationshipsPromotion.md) | | [optional] - -## Methods - -### NewOrderAmountPromotionRuleDataRelationships - -`func NewOrderAmountPromotionRuleDataRelationships() *OrderAmountPromotionRuleDataRelationships` - -NewOrderAmountPromotionRuleDataRelationships instantiates a new OrderAmountPromotionRuleDataRelationships object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewOrderAmountPromotionRuleDataRelationshipsWithDefaults - -`func NewOrderAmountPromotionRuleDataRelationshipsWithDefaults() *OrderAmountPromotionRuleDataRelationships` - -NewOrderAmountPromotionRuleDataRelationshipsWithDefaults instantiates a new OrderAmountPromotionRuleDataRelationships object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetPromotion - -`func (o *OrderAmountPromotionRuleDataRelationships) GetPromotion() CouponCodesPromotionRuleDataRelationshipsPromotion` - -GetPromotion returns the Promotion field if non-nil, zero value otherwise. - -### GetPromotionOk - -`func (o *OrderAmountPromotionRuleDataRelationships) GetPromotionOk() (*CouponCodesPromotionRuleDataRelationshipsPromotion, bool)` - -GetPromotionOk returns a tuple with the Promotion field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPromotion - -`func (o *OrderAmountPromotionRuleDataRelationships) SetPromotion(v CouponCodesPromotionRuleDataRelationshipsPromotion)` - -SetPromotion sets Promotion field to given value. - -### HasPromotion - -`func (o *OrderAmountPromotionRuleDataRelationships) HasPromotion() bool` - -HasPromotion returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/OrderAmountPromotionRuleUpdateData.md b/api/docs/OrderAmountPromotionRuleUpdateData.md index ff725f6c..56604d75 100644 --- a/api/docs/OrderAmountPromotionRuleUpdateData.md +++ b/api/docs/OrderAmountPromotionRuleUpdateData.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Type** | **interface{}** | The resource's type | **Id** | **interface{}** | The resource's id | **Attributes** | [**PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes**](PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**OrderAmountPromotionRuleUpdateDataRelationships**](OrderAmountPromotionRuleUpdateDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**CustomPromotionRuleUpdateDataRelationships**](CustomPromotionRuleUpdateDataRelationships.md) | | [optional] ## Methods @@ -110,20 +110,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *OrderAmountPromotionRuleUpdateData) GetRelationships() OrderAmountPromotionRuleUpdateDataRelationships` +`func (o *OrderAmountPromotionRuleUpdateData) GetRelationships() CustomPromotionRuleUpdateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *OrderAmountPromotionRuleUpdateData) GetRelationshipsOk() (*OrderAmountPromotionRuleUpdateDataRelationships, bool)` +`func (o *OrderAmountPromotionRuleUpdateData) GetRelationshipsOk() (*CustomPromotionRuleUpdateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *OrderAmountPromotionRuleUpdateData) SetRelationships(v OrderAmountPromotionRuleUpdateDataRelationships)` +`func (o *OrderAmountPromotionRuleUpdateData) SetRelationships(v CustomPromotionRuleUpdateDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/OrderAmountPromotionRulesApi.md b/api/docs/OrderAmountPromotionRulesApi.md index 04f7ba0f..7212a980 100644 --- a/api/docs/OrderAmountPromotionRulesApi.md +++ b/api/docs/OrderAmountPromotionRulesApi.md @@ -5,6 +5,7 @@ All URIs are relative to *https://.commercelayer.io/api* Method | HTTP request | Description ------------- | ------------- | ------------- [**DELETEOrderAmountPromotionRulesOrderAmountPromotionRuleId**](OrderAmountPromotionRulesApi.md#DELETEOrderAmountPromotionRulesOrderAmountPromotionRuleId) | **Delete** /order_amount_promotion_rules/{orderAmountPromotionRuleId} | Delete an order amount promotion rule +[**GETBuyXPayYPromotionIdOrderAmountPromotionRule**](OrderAmountPromotionRulesApi.md#GETBuyXPayYPromotionIdOrderAmountPromotionRule) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the buy x pay y promotion [**GETExternalPromotionIdOrderAmountPromotionRule**](OrderAmountPromotionRulesApi.md#GETExternalPromotionIdOrderAmountPromotionRule) | **Get** /external_promotions/{externalPromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the external promotion [**GETFixedAmountPromotionIdOrderAmountPromotionRule**](OrderAmountPromotionRulesApi.md#GETFixedAmountPromotionIdOrderAmountPromotionRule) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the fixed amount promotion [**GETFixedPricePromotionIdOrderAmountPromotionRule**](OrderAmountPromotionRulesApi.md#GETFixedPricePromotionIdOrderAmountPromotionRule) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/order_amount_promotion_rule | Retrieve the order amount promotion rule associated to the fixed price promotion @@ -87,6 +88,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETBuyXPayYPromotionIdOrderAmountPromotionRule + +> GETBuyXPayYPromotionIdOrderAmountPromotionRule(ctx, buyXPayYPromotionId).Execute() + +Retrieve the order amount promotion rule associated to the buy x pay y promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + buyXPayYPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.OrderAmountPromotionRulesApi.GETBuyXPayYPromotionIdOrderAmountPromotionRule(context.Background(), buyXPayYPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrderAmountPromotionRulesApi.GETBuyXPayYPromotionIdOrderAmountPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdOrderAmountPromotionRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETExternalPromotionIdOrderAmountPromotionRule > GETExternalPromotionIdOrderAmountPromotionRule(ctx, externalPromotionId).Execute() diff --git a/api/docs/OrderCopyDataRelationships.md b/api/docs/OrderCopyDataRelationships.md index 364e7301..dc691b6b 100644 --- a/api/docs/OrderCopyDataRelationships.md +++ b/api/docs/OrderCopyDataRelationships.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SourceOrder** | Pointer to [**AdyenPaymentDataRelationshipsOrder**](AdyenPaymentDataRelationshipsOrder.md) | | [optional] **TargetOrder** | Pointer to [**AdyenPaymentDataRelationshipsOrder**](AdyenPaymentDataRelationshipsOrder.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] **OrderSubscription** | Pointer to [**CustomerDataRelationshipsOrderSubscriptions**](CustomerDataRelationshipsOrderSubscriptions.md) | | [optional] ## Methods @@ -80,20 +80,20 @@ HasTargetOrder returns a boolean if a field has been set. ### GetEvents -`func (o *OrderCopyDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` +`func (o *OrderCopyDataRelationships) GetEvents() AddressDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *OrderCopyDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` +`func (o *OrderCopyDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *OrderCopyDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` +`func (o *OrderCopyDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` SetEvents sets Events field to given value. diff --git a/api/docs/OrderCreateDataRelationships.md b/api/docs/OrderCreateDataRelationships.md index 1ca20aeb..840807bb 100644 --- a/api/docs/OrderCreateDataRelationships.md +++ b/api/docs/OrderCreateDataRelationships.md @@ -8,8 +8,9 @@ Name | Type | Description | Notes **Customer** | Pointer to [**CouponRecipientCreateDataRelationshipsCustomer**](CouponRecipientCreateDataRelationshipsCustomer.md) | | [optional] **ShippingAddress** | Pointer to [**CustomerAddressCreateDataRelationshipsAddress**](CustomerAddressCreateDataRelationshipsAddress.md) | | [optional] **BillingAddress** | Pointer to [**CustomerAddressCreateDataRelationshipsAddress**](CustomerAddressCreateDataRelationshipsAddress.md) | | [optional] -**PaymentMethod** | Pointer to [**OrderCreateDataRelationshipsPaymentMethod**](OrderCreateDataRelationshipsPaymentMethod.md) | | [optional] +**PaymentMethod** | Pointer to [**CustomerPaymentSourceCreateDataRelationshipsPaymentMethod**](CustomerPaymentSourceCreateDataRelationshipsPaymentMethod.md) | | [optional] **PaymentSource** | Pointer to [**CustomerPaymentSourceCreateDataRelationshipsPaymentSource**](CustomerPaymentSourceCreateDataRelationshipsPaymentSource.md) | | [optional] +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] ## Methods @@ -132,20 +133,20 @@ HasBillingAddress returns a boolean if a field has been set. ### GetPaymentMethod -`func (o *OrderCreateDataRelationships) GetPaymentMethod() OrderCreateDataRelationshipsPaymentMethod` +`func (o *OrderCreateDataRelationships) GetPaymentMethod() CustomerPaymentSourceCreateDataRelationshipsPaymentMethod` GetPaymentMethod returns the PaymentMethod field if non-nil, zero value otherwise. ### GetPaymentMethodOk -`func (o *OrderCreateDataRelationships) GetPaymentMethodOk() (*OrderCreateDataRelationshipsPaymentMethod, bool)` +`func (o *OrderCreateDataRelationships) GetPaymentMethodOk() (*CustomerPaymentSourceCreateDataRelationshipsPaymentMethod, bool)` GetPaymentMethodOk returns a tuple with the PaymentMethod field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPaymentMethod -`func (o *OrderCreateDataRelationships) SetPaymentMethod(v OrderCreateDataRelationshipsPaymentMethod)` +`func (o *OrderCreateDataRelationships) SetPaymentMethod(v CustomerPaymentSourceCreateDataRelationshipsPaymentMethod)` SetPaymentMethod sets PaymentMethod field to given value. @@ -180,6 +181,31 @@ SetPaymentSource sets PaymentSource field to given value. HasPaymentSource returns a boolean if a field has been set. +### GetTags + +`func (o *OrderCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *OrderCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *OrderCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *OrderCreateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/OrderCreateDataRelationshipsPaymentMethod.md b/api/docs/OrderCreateDataRelationshipsPaymentMethod.md deleted file mode 100644 index bd0042d9..00000000 --- a/api/docs/OrderCreateDataRelationshipsPaymentMethod.md +++ /dev/null @@ -1,51 +0,0 @@ -# OrderCreateDataRelationshipsPaymentMethod - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**AdyenGatewayDataRelationshipsPaymentMethodsData**](AdyenGatewayDataRelationshipsPaymentMethodsData.md) | | - -## Methods - -### NewOrderCreateDataRelationshipsPaymentMethod - -`func NewOrderCreateDataRelationshipsPaymentMethod(data AdyenGatewayDataRelationshipsPaymentMethodsData, ) *OrderCreateDataRelationshipsPaymentMethod` - -NewOrderCreateDataRelationshipsPaymentMethod instantiates a new OrderCreateDataRelationshipsPaymentMethod object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewOrderCreateDataRelationshipsPaymentMethodWithDefaults - -`func NewOrderCreateDataRelationshipsPaymentMethodWithDefaults() *OrderCreateDataRelationshipsPaymentMethod` - -NewOrderCreateDataRelationshipsPaymentMethodWithDefaults instantiates a new OrderCreateDataRelationshipsPaymentMethod object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *OrderCreateDataRelationshipsPaymentMethod) GetData() AdyenGatewayDataRelationshipsPaymentMethodsData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *OrderCreateDataRelationshipsPaymentMethod) GetDataOk() (*AdyenGatewayDataRelationshipsPaymentMethodsData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *OrderCreateDataRelationshipsPaymentMethod) SetData(v AdyenGatewayDataRelationshipsPaymentMethodsData)` - -SetData sets Data field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/OrderDataRelationships.md b/api/docs/OrderDataRelationships.md index 0d21e4cd..8b21f85e 100644 --- a/api/docs/OrderDataRelationships.md +++ b/api/docs/OrderDataRelationships.md @@ -11,23 +11,33 @@ Name | Type | Description | Notes **AvailablePaymentMethods** | Pointer to [**AdyenGatewayDataRelationshipsPaymentMethods**](AdyenGatewayDataRelationshipsPaymentMethods.md) | | [optional] **AvailableCustomerPaymentSources** | Pointer to [**CustomerDataRelationshipsCustomerPaymentSources**](CustomerDataRelationshipsCustomerPaymentSources.md) | | [optional] **AvailableFreeSkus** | Pointer to [**BundleDataRelationshipsSkus**](BundleDataRelationshipsSkus.md) | | [optional] -**AvailableFreeBundles** | Pointer to [**OrderDataRelationshipsAvailableFreeBundles**](OrderDataRelationshipsAvailableFreeBundles.md) | | [optional] +**AvailableFreeBundles** | Pointer to [**LineItemDataRelationshipsBundle**](LineItemDataRelationshipsBundle.md) | | [optional] **PaymentMethod** | Pointer to [**AdyenGatewayDataRelationshipsPaymentMethods**](AdyenGatewayDataRelationshipsPaymentMethods.md) | | [optional] **PaymentSource** | Pointer to [**CustomerPaymentSourceDataRelationshipsPaymentSource**](CustomerPaymentSourceDataRelationshipsPaymentSource.md) | | [optional] **LineItems** | Pointer to [**LineItemOptionDataRelationshipsLineItem**](LineItemOptionDataRelationshipsLineItem.md) | | [optional] -**Shipments** | Pointer to [**OrderDataRelationshipsShipments**](OrderDataRelationshipsShipments.md) | | [optional] +**LineItemOptions** | Pointer to [**LineItemDataRelationshipsLineItemOptions**](LineItemDataRelationshipsLineItemOptions.md) | | [optional] +**StockReservations** | Pointer to [**LineItemDataRelationshipsStockReservations**](LineItemDataRelationshipsStockReservations.md) | | [optional] +**StockLineItems** | Pointer to [**LineItemDataRelationshipsStockLineItems**](LineItemDataRelationshipsStockLineItems.md) | | [optional] +**StockTransfers** | Pointer to [**LineItemDataRelationshipsStockTransfers**](LineItemDataRelationshipsStockTransfers.md) | | [optional] +**Shipments** | Pointer to [**LineItemDataRelationshipsShipment**](LineItemDataRelationshipsShipment.md) | | [optional] +**PaymentOptions** | Pointer to [**OrderDataRelationshipsPaymentOptions**](OrderDataRelationshipsPaymentOptions.md) | | [optional] **Transactions** | Pointer to [**OrderDataRelationshipsTransactions**](OrderDataRelationshipsTransactions.md) | | [optional] **Authorizations** | Pointer to [**CaptureDataRelationshipsReferenceAuthorization**](CaptureDataRelationshipsReferenceAuthorization.md) | | [optional] **Captures** | Pointer to [**AuthorizationDataRelationshipsCaptures**](AuthorizationDataRelationshipsCaptures.md) | | [optional] **Voids** | Pointer to [**AuthorizationDataRelationshipsVoids**](AuthorizationDataRelationshipsVoids.md) | | [optional] **Refunds** | Pointer to [**CaptureDataRelationshipsRefunds**](CaptureDataRelationshipsRefunds.md) | | [optional] -**Returns** | Pointer to [**CustomerDataRelationshipsReturns**](CustomerDataRelationshipsReturns.md) | | [optional] +**Returns** | Pointer to [**CaptureDataRelationshipsReturn**](CaptureDataRelationshipsReturn.md) | | [optional] +**OrderSubscription** | Pointer to [**CustomerDataRelationshipsOrderSubscriptions**](CustomerDataRelationshipsOrderSubscriptions.md) | | [optional] **OrderSubscriptions** | Pointer to [**CustomerDataRelationshipsOrderSubscriptions**](CustomerDataRelationshipsOrderSubscriptions.md) | | [optional] **OrderFactories** | Pointer to [**OrderSubscriptionDataRelationshipsOrderFactories**](OrderSubscriptionDataRelationshipsOrderFactories.md) | | [optional] **OrderCopies** | Pointer to [**OrderDataRelationshipsOrderCopies**](OrderDataRelationshipsOrderCopies.md) | | [optional] **RecurringOrderCopies** | Pointer to [**OrderSubscriptionDataRelationshipsRecurringOrderCopies**](OrderSubscriptionDataRelationshipsRecurringOrderCopies.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Links** | Pointer to [**OrderDataRelationshipsLinks**](OrderDataRelationshipsLinks.md) | | [optional] +**ResourceErrors** | Pointer to [**OrderDataRelationshipsResourceErrors**](OrderDataRelationshipsResourceErrors.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**AddressDataRelationshipsTags**](AddressDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -225,20 +235,20 @@ HasAvailableFreeSkus returns a boolean if a field has been set. ### GetAvailableFreeBundles -`func (o *OrderDataRelationships) GetAvailableFreeBundles() OrderDataRelationshipsAvailableFreeBundles` +`func (o *OrderDataRelationships) GetAvailableFreeBundles() LineItemDataRelationshipsBundle` GetAvailableFreeBundles returns the AvailableFreeBundles field if non-nil, zero value otherwise. ### GetAvailableFreeBundlesOk -`func (o *OrderDataRelationships) GetAvailableFreeBundlesOk() (*OrderDataRelationshipsAvailableFreeBundles, bool)` +`func (o *OrderDataRelationships) GetAvailableFreeBundlesOk() (*LineItemDataRelationshipsBundle, bool)` GetAvailableFreeBundlesOk returns a tuple with the AvailableFreeBundles field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAvailableFreeBundles -`func (o *OrderDataRelationships) SetAvailableFreeBundles(v OrderDataRelationshipsAvailableFreeBundles)` +`func (o *OrderDataRelationships) SetAvailableFreeBundles(v LineItemDataRelationshipsBundle)` SetAvailableFreeBundles sets AvailableFreeBundles field to given value. @@ -323,22 +333,122 @@ SetLineItems sets LineItems field to given value. HasLineItems returns a boolean if a field has been set. +### GetLineItemOptions + +`func (o *OrderDataRelationships) GetLineItemOptions() LineItemDataRelationshipsLineItemOptions` + +GetLineItemOptions returns the LineItemOptions field if non-nil, zero value otherwise. + +### GetLineItemOptionsOk + +`func (o *OrderDataRelationships) GetLineItemOptionsOk() (*LineItemDataRelationshipsLineItemOptions, bool)` + +GetLineItemOptionsOk returns a tuple with the LineItemOptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLineItemOptions + +`func (o *OrderDataRelationships) SetLineItemOptions(v LineItemDataRelationshipsLineItemOptions)` + +SetLineItemOptions sets LineItemOptions field to given value. + +### HasLineItemOptions + +`func (o *OrderDataRelationships) HasLineItemOptions() bool` + +HasLineItemOptions returns a boolean if a field has been set. + +### GetStockReservations + +`func (o *OrderDataRelationships) GetStockReservations() LineItemDataRelationshipsStockReservations` + +GetStockReservations returns the StockReservations field if non-nil, zero value otherwise. + +### GetStockReservationsOk + +`func (o *OrderDataRelationships) GetStockReservationsOk() (*LineItemDataRelationshipsStockReservations, bool)` + +GetStockReservationsOk returns a tuple with the StockReservations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockReservations + +`func (o *OrderDataRelationships) SetStockReservations(v LineItemDataRelationshipsStockReservations)` + +SetStockReservations sets StockReservations field to given value. + +### HasStockReservations + +`func (o *OrderDataRelationships) HasStockReservations() bool` + +HasStockReservations returns a boolean if a field has been set. + +### GetStockLineItems + +`func (o *OrderDataRelationships) GetStockLineItems() LineItemDataRelationshipsStockLineItems` + +GetStockLineItems returns the StockLineItems field if non-nil, zero value otherwise. + +### GetStockLineItemsOk + +`func (o *OrderDataRelationships) GetStockLineItemsOk() (*LineItemDataRelationshipsStockLineItems, bool)` + +GetStockLineItemsOk returns a tuple with the StockLineItems field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockLineItems + +`func (o *OrderDataRelationships) SetStockLineItems(v LineItemDataRelationshipsStockLineItems)` + +SetStockLineItems sets StockLineItems field to given value. + +### HasStockLineItems + +`func (o *OrderDataRelationships) HasStockLineItems() bool` + +HasStockLineItems returns a boolean if a field has been set. + +### GetStockTransfers + +`func (o *OrderDataRelationships) GetStockTransfers() LineItemDataRelationshipsStockTransfers` + +GetStockTransfers returns the StockTransfers field if non-nil, zero value otherwise. + +### GetStockTransfersOk + +`func (o *OrderDataRelationships) GetStockTransfersOk() (*LineItemDataRelationshipsStockTransfers, bool)` + +GetStockTransfersOk returns a tuple with the StockTransfers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockTransfers + +`func (o *OrderDataRelationships) SetStockTransfers(v LineItemDataRelationshipsStockTransfers)` + +SetStockTransfers sets StockTransfers field to given value. + +### HasStockTransfers + +`func (o *OrderDataRelationships) HasStockTransfers() bool` + +HasStockTransfers returns a boolean if a field has been set. + ### GetShipments -`func (o *OrderDataRelationships) GetShipments() OrderDataRelationshipsShipments` +`func (o *OrderDataRelationships) GetShipments() LineItemDataRelationshipsShipment` GetShipments returns the Shipments field if non-nil, zero value otherwise. ### GetShipmentsOk -`func (o *OrderDataRelationships) GetShipmentsOk() (*OrderDataRelationshipsShipments, bool)` +`func (o *OrderDataRelationships) GetShipmentsOk() (*LineItemDataRelationshipsShipment, bool)` GetShipmentsOk returns a tuple with the Shipments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetShipments -`func (o *OrderDataRelationships) SetShipments(v OrderDataRelationshipsShipments)` +`func (o *OrderDataRelationships) SetShipments(v LineItemDataRelationshipsShipment)` SetShipments sets Shipments field to given value. @@ -348,6 +458,31 @@ SetShipments sets Shipments field to given value. HasShipments returns a boolean if a field has been set. +### GetPaymentOptions + +`func (o *OrderDataRelationships) GetPaymentOptions() OrderDataRelationshipsPaymentOptions` + +GetPaymentOptions returns the PaymentOptions field if non-nil, zero value otherwise. + +### GetPaymentOptionsOk + +`func (o *OrderDataRelationships) GetPaymentOptionsOk() (*OrderDataRelationshipsPaymentOptions, bool)` + +GetPaymentOptionsOk returns a tuple with the PaymentOptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentOptions + +`func (o *OrderDataRelationships) SetPaymentOptions(v OrderDataRelationshipsPaymentOptions)` + +SetPaymentOptions sets PaymentOptions field to given value. + +### HasPaymentOptions + +`func (o *OrderDataRelationships) HasPaymentOptions() bool` + +HasPaymentOptions returns a boolean if a field has been set. + ### GetTransactions `func (o *OrderDataRelationships) GetTransactions() OrderDataRelationshipsTransactions` @@ -475,20 +610,20 @@ HasRefunds returns a boolean if a field has been set. ### GetReturns -`func (o *OrderDataRelationships) GetReturns() CustomerDataRelationshipsReturns` +`func (o *OrderDataRelationships) GetReturns() CaptureDataRelationshipsReturn` GetReturns returns the Returns field if non-nil, zero value otherwise. ### GetReturnsOk -`func (o *OrderDataRelationships) GetReturnsOk() (*CustomerDataRelationshipsReturns, bool)` +`func (o *OrderDataRelationships) GetReturnsOk() (*CaptureDataRelationshipsReturn, bool)` GetReturnsOk returns a tuple with the Returns field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetReturns -`func (o *OrderDataRelationships) SetReturns(v CustomerDataRelationshipsReturns)` +`func (o *OrderDataRelationships) SetReturns(v CaptureDataRelationshipsReturn)` SetReturns sets Returns field to given value. @@ -498,6 +633,31 @@ SetReturns sets Returns field to given value. HasReturns returns a boolean if a field has been set. +### GetOrderSubscription + +`func (o *OrderDataRelationships) GetOrderSubscription() CustomerDataRelationshipsOrderSubscriptions` + +GetOrderSubscription returns the OrderSubscription field if non-nil, zero value otherwise. + +### GetOrderSubscriptionOk + +`func (o *OrderDataRelationships) GetOrderSubscriptionOk() (*CustomerDataRelationshipsOrderSubscriptions, bool)` + +GetOrderSubscriptionOk returns a tuple with the OrderSubscription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderSubscription + +`func (o *OrderDataRelationships) SetOrderSubscription(v CustomerDataRelationshipsOrderSubscriptions)` + +SetOrderSubscription sets OrderSubscription field to given value. + +### HasOrderSubscription + +`func (o *OrderDataRelationships) HasOrderSubscription() bool` + +HasOrderSubscription returns a boolean if a field has been set. + ### GetOrderSubscriptions `func (o *OrderDataRelationships) GetOrderSubscriptions() CustomerDataRelationshipsOrderSubscriptions` @@ -600,20 +760,20 @@ HasRecurringOrderCopies returns a boolean if a field has been set. ### GetAttachments -`func (o *OrderDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *OrderDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *OrderDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *OrderDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *OrderDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *OrderDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -623,22 +783,72 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetLinks + +`func (o *OrderDataRelationships) GetLinks() OrderDataRelationshipsLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *OrderDataRelationships) GetLinksOk() (*OrderDataRelationshipsLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *OrderDataRelationships) SetLinks(v OrderDataRelationshipsLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *OrderDataRelationships) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetResourceErrors + +`func (o *OrderDataRelationships) GetResourceErrors() OrderDataRelationshipsResourceErrors` + +GetResourceErrors returns the ResourceErrors field if non-nil, zero value otherwise. + +### GetResourceErrorsOk + +`func (o *OrderDataRelationships) GetResourceErrorsOk() (*OrderDataRelationshipsResourceErrors, bool)` + +GetResourceErrorsOk returns a tuple with the ResourceErrors field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceErrors + +`func (o *OrderDataRelationships) SetResourceErrors(v OrderDataRelationshipsResourceErrors)` + +SetResourceErrors sets ResourceErrors field to given value. + +### HasResourceErrors + +`func (o *OrderDataRelationships) HasResourceErrors() bool` + +HasResourceErrors returns a boolean if a field has been set. + ### GetEvents -`func (o *OrderDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` +`func (o *OrderDataRelationships) GetEvents() AddressDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *OrderDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` +`func (o *OrderDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *OrderDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` +`func (o *OrderDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -648,6 +858,56 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetTags + +`func (o *OrderDataRelationships) GetTags() AddressDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *OrderDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *OrderDataRelationships) SetTags(v AddressDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *OrderDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *OrderDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *OrderDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *OrderDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *OrderDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/OrderDataRelationshipsAvailableFreeBundles.md b/api/docs/OrderDataRelationshipsAvailableFreeBundles.md deleted file mode 100644 index 6280a61b..00000000 --- a/api/docs/OrderDataRelationshipsAvailableFreeBundles.md +++ /dev/null @@ -1,56 +0,0 @@ -# OrderDataRelationshipsAvailableFreeBundles - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | Pointer to [**OrderDataRelationshipsAvailableFreeBundlesData**](OrderDataRelationshipsAvailableFreeBundlesData.md) | | [optional] - -## Methods - -### NewOrderDataRelationshipsAvailableFreeBundles - -`func NewOrderDataRelationshipsAvailableFreeBundles() *OrderDataRelationshipsAvailableFreeBundles` - -NewOrderDataRelationshipsAvailableFreeBundles instantiates a new OrderDataRelationshipsAvailableFreeBundles object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewOrderDataRelationshipsAvailableFreeBundlesWithDefaults - -`func NewOrderDataRelationshipsAvailableFreeBundlesWithDefaults() *OrderDataRelationshipsAvailableFreeBundles` - -NewOrderDataRelationshipsAvailableFreeBundlesWithDefaults instantiates a new OrderDataRelationshipsAvailableFreeBundles object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *OrderDataRelationshipsAvailableFreeBundles) GetData() OrderDataRelationshipsAvailableFreeBundlesData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *OrderDataRelationshipsAvailableFreeBundles) GetDataOk() (*OrderDataRelationshipsAvailableFreeBundlesData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *OrderDataRelationshipsAvailableFreeBundles) SetData(v OrderDataRelationshipsAvailableFreeBundlesData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *OrderDataRelationshipsAvailableFreeBundles) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/OrderDataRelationshipsLinks.md b/api/docs/OrderDataRelationshipsLinks.md new file mode 100644 index 00000000..c64fe633 --- /dev/null +++ b/api/docs/OrderDataRelationshipsLinks.md @@ -0,0 +1,56 @@ +# OrderDataRelationshipsLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**OrderDataRelationshipsLinksData**](OrderDataRelationshipsLinksData.md) | | [optional] + +## Methods + +### NewOrderDataRelationshipsLinks + +`func NewOrderDataRelationshipsLinks() *OrderDataRelationshipsLinks` + +NewOrderDataRelationshipsLinks instantiates a new OrderDataRelationshipsLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrderDataRelationshipsLinksWithDefaults + +`func NewOrderDataRelationshipsLinksWithDefaults() *OrderDataRelationshipsLinks` + +NewOrderDataRelationshipsLinksWithDefaults instantiates a new OrderDataRelationshipsLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *OrderDataRelationshipsLinks) GetData() OrderDataRelationshipsLinksData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *OrderDataRelationshipsLinks) GetDataOk() (*OrderDataRelationshipsLinksData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *OrderDataRelationshipsLinks) SetData(v OrderDataRelationshipsLinksData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *OrderDataRelationshipsLinks) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/OrderDataRelationshipsLinksData.md b/api/docs/OrderDataRelationshipsLinksData.md new file mode 100644 index 00000000..1c73d9a1 --- /dev/null +++ b/api/docs/OrderDataRelationshipsLinksData.md @@ -0,0 +1,102 @@ +# OrderDataRelationshipsLinksData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource's id | [optional] + +## Methods + +### NewOrderDataRelationshipsLinksData + +`func NewOrderDataRelationshipsLinksData() *OrderDataRelationshipsLinksData` + +NewOrderDataRelationshipsLinksData instantiates a new OrderDataRelationshipsLinksData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrderDataRelationshipsLinksDataWithDefaults + +`func NewOrderDataRelationshipsLinksDataWithDefaults() *OrderDataRelationshipsLinksData` + +NewOrderDataRelationshipsLinksDataWithDefaults instantiates a new OrderDataRelationshipsLinksData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *OrderDataRelationshipsLinksData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OrderDataRelationshipsLinksData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *OrderDataRelationshipsLinksData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *OrderDataRelationshipsLinksData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *OrderDataRelationshipsLinksData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *OrderDataRelationshipsLinksData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *OrderDataRelationshipsLinksData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *OrderDataRelationshipsLinksData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *OrderDataRelationshipsLinksData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *OrderDataRelationshipsLinksData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *OrderDataRelationshipsLinksData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *OrderDataRelationshipsLinksData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/OrderDataRelationshipsOrderCopies.md b/api/docs/OrderDataRelationshipsOrderCopies.md index 1cafd65f..58456117 100644 --- a/api/docs/OrderDataRelationshipsOrderCopies.md +++ b/api/docs/OrderDataRelationshipsOrderCopies.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | Pointer to [**OrderSubscriptionDataRelationshipsOrderCopiesData**](OrderSubscriptionDataRelationshipsOrderCopiesData.md) | | [optional] +**Data** | Pointer to [**OrderDataRelationshipsOrderCopiesData**](OrderDataRelationshipsOrderCopiesData.md) | | [optional] ## Methods @@ -27,20 +27,20 @@ but it doesn't guarantee that properties required by API are set ### GetData -`func (o *OrderDataRelationshipsOrderCopies) GetData() OrderSubscriptionDataRelationshipsOrderCopiesData` +`func (o *OrderDataRelationshipsOrderCopies) GetData() OrderDataRelationshipsOrderCopiesData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *OrderDataRelationshipsOrderCopies) GetDataOk() (*OrderSubscriptionDataRelationshipsOrderCopiesData, bool)` +`func (o *OrderDataRelationshipsOrderCopies) GetDataOk() (*OrderDataRelationshipsOrderCopiesData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *OrderDataRelationshipsOrderCopies) SetData(v OrderSubscriptionDataRelationshipsOrderCopiesData)` +`func (o *OrderDataRelationshipsOrderCopies) SetData(v OrderDataRelationshipsOrderCopiesData)` SetData sets Data field to given value. diff --git a/api/docs/OrderDataRelationshipsOrderCopiesData.md b/api/docs/OrderDataRelationshipsOrderCopiesData.md new file mode 100644 index 00000000..606de1cd --- /dev/null +++ b/api/docs/OrderDataRelationshipsOrderCopiesData.md @@ -0,0 +1,102 @@ +# OrderDataRelationshipsOrderCopiesData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource's id | [optional] + +## Methods + +### NewOrderDataRelationshipsOrderCopiesData + +`func NewOrderDataRelationshipsOrderCopiesData() *OrderDataRelationshipsOrderCopiesData` + +NewOrderDataRelationshipsOrderCopiesData instantiates a new OrderDataRelationshipsOrderCopiesData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrderDataRelationshipsOrderCopiesDataWithDefaults + +`func NewOrderDataRelationshipsOrderCopiesDataWithDefaults() *OrderDataRelationshipsOrderCopiesData` + +NewOrderDataRelationshipsOrderCopiesDataWithDefaults instantiates a new OrderDataRelationshipsOrderCopiesData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *OrderDataRelationshipsOrderCopiesData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OrderDataRelationshipsOrderCopiesData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *OrderDataRelationshipsOrderCopiesData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *OrderDataRelationshipsOrderCopiesData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *OrderDataRelationshipsOrderCopiesData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *OrderDataRelationshipsOrderCopiesData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *OrderDataRelationshipsOrderCopiesData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *OrderDataRelationshipsOrderCopiesData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *OrderDataRelationshipsOrderCopiesData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *OrderDataRelationshipsOrderCopiesData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *OrderDataRelationshipsOrderCopiesData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *OrderDataRelationshipsOrderCopiesData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/OrderDataRelationshipsPaymentOptions.md b/api/docs/OrderDataRelationshipsPaymentOptions.md new file mode 100644 index 00000000..a1b263df --- /dev/null +++ b/api/docs/OrderDataRelationshipsPaymentOptions.md @@ -0,0 +1,56 @@ +# OrderDataRelationshipsPaymentOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**OrderDataRelationshipsPaymentOptionsData**](OrderDataRelationshipsPaymentOptionsData.md) | | [optional] + +## Methods + +### NewOrderDataRelationshipsPaymentOptions + +`func NewOrderDataRelationshipsPaymentOptions() *OrderDataRelationshipsPaymentOptions` + +NewOrderDataRelationshipsPaymentOptions instantiates a new OrderDataRelationshipsPaymentOptions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrderDataRelationshipsPaymentOptionsWithDefaults + +`func NewOrderDataRelationshipsPaymentOptionsWithDefaults() *OrderDataRelationshipsPaymentOptions` + +NewOrderDataRelationshipsPaymentOptionsWithDefaults instantiates a new OrderDataRelationshipsPaymentOptions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *OrderDataRelationshipsPaymentOptions) GetData() OrderDataRelationshipsPaymentOptionsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *OrderDataRelationshipsPaymentOptions) GetDataOk() (*OrderDataRelationshipsPaymentOptionsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *OrderDataRelationshipsPaymentOptions) SetData(v OrderDataRelationshipsPaymentOptionsData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *OrderDataRelationshipsPaymentOptions) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/AuthorizationDataRelationshipsEventsData.md b/api/docs/OrderDataRelationshipsPaymentOptionsData.md similarity index 58% rename from api/docs/AuthorizationDataRelationshipsEventsData.md rename to api/docs/OrderDataRelationshipsPaymentOptionsData.md index ba3a5b10..a4fc2cf1 100644 --- a/api/docs/AuthorizationDataRelationshipsEventsData.md +++ b/api/docs/OrderDataRelationshipsPaymentOptionsData.md @@ -1,4 +1,4 @@ -# AuthorizationDataRelationshipsEventsData +# OrderDataRelationshipsPaymentOptionsData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewAuthorizationDataRelationshipsEventsData +### NewOrderDataRelationshipsPaymentOptionsData -`func NewAuthorizationDataRelationshipsEventsData() *AuthorizationDataRelationshipsEventsData` +`func NewOrderDataRelationshipsPaymentOptionsData() *OrderDataRelationshipsPaymentOptionsData` -NewAuthorizationDataRelationshipsEventsData instantiates a new AuthorizationDataRelationshipsEventsData object +NewOrderDataRelationshipsPaymentOptionsData instantiates a new OrderDataRelationshipsPaymentOptionsData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewAuthorizationDataRelationshipsEventsDataWithDefaults +### NewOrderDataRelationshipsPaymentOptionsDataWithDefaults -`func NewAuthorizationDataRelationshipsEventsDataWithDefaults() *AuthorizationDataRelationshipsEventsData` +`func NewOrderDataRelationshipsPaymentOptionsDataWithDefaults() *OrderDataRelationshipsPaymentOptionsData` -NewAuthorizationDataRelationshipsEventsDataWithDefaults instantiates a new AuthorizationDataRelationshipsEventsData object +NewOrderDataRelationshipsPaymentOptionsDataWithDefaults instantiates a new OrderDataRelationshipsPaymentOptionsData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *AuthorizationDataRelationshipsEventsData) GetType() interface{}` +`func (o *OrderDataRelationshipsPaymentOptionsData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *AuthorizationDataRelationshipsEventsData) GetTypeOk() (*interface{}, bool)` +`func (o *OrderDataRelationshipsPaymentOptionsData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *AuthorizationDataRelationshipsEventsData) SetType(v interface{})` +`func (o *OrderDataRelationshipsPaymentOptionsData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *AuthorizationDataRelationshipsEventsData) HasType() bool` +`func (o *OrderDataRelationshipsPaymentOptionsData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *AuthorizationDataRelationshipsEventsData) SetTypeNil(b bool)` +`func (o *OrderDataRelationshipsPaymentOptionsData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *AuthorizationDataRelationshipsEventsData) UnsetType()` +`func (o *OrderDataRelationshipsPaymentOptionsData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *AuthorizationDataRelationshipsEventsData) GetId() interface{}` +`func (o *OrderDataRelationshipsPaymentOptionsData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *AuthorizationDataRelationshipsEventsData) GetIdOk() (*interface{}, bool)` +`func (o *OrderDataRelationshipsPaymentOptionsData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *AuthorizationDataRelationshipsEventsData) SetId(v interface{})` +`func (o *OrderDataRelationshipsPaymentOptionsData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *AuthorizationDataRelationshipsEventsData) HasId() bool` +`func (o *OrderDataRelationshipsPaymentOptionsData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *AuthorizationDataRelationshipsEventsData) SetIdNil(b bool)` +`func (o *OrderDataRelationshipsPaymentOptionsData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *AuthorizationDataRelationshipsEventsData) UnsetId()` +`func (o *OrderDataRelationshipsPaymentOptionsData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/OrderDataRelationshipsResourceErrors.md b/api/docs/OrderDataRelationshipsResourceErrors.md new file mode 100644 index 00000000..f968d0c2 --- /dev/null +++ b/api/docs/OrderDataRelationshipsResourceErrors.md @@ -0,0 +1,56 @@ +# OrderDataRelationshipsResourceErrors + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**OrderDataRelationshipsResourceErrorsData**](OrderDataRelationshipsResourceErrorsData.md) | | [optional] + +## Methods + +### NewOrderDataRelationshipsResourceErrors + +`func NewOrderDataRelationshipsResourceErrors() *OrderDataRelationshipsResourceErrors` + +NewOrderDataRelationshipsResourceErrors instantiates a new OrderDataRelationshipsResourceErrors object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrderDataRelationshipsResourceErrorsWithDefaults + +`func NewOrderDataRelationshipsResourceErrorsWithDefaults() *OrderDataRelationshipsResourceErrors` + +NewOrderDataRelationshipsResourceErrorsWithDefaults instantiates a new OrderDataRelationshipsResourceErrors object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *OrderDataRelationshipsResourceErrors) GetData() OrderDataRelationshipsResourceErrorsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *OrderDataRelationshipsResourceErrors) GetDataOk() (*OrderDataRelationshipsResourceErrorsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *OrderDataRelationshipsResourceErrors) SetData(v OrderDataRelationshipsResourceErrorsData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *OrderDataRelationshipsResourceErrors) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/CouponDataRelationshipsPromotionRuleData.md b/api/docs/OrderDataRelationshipsResourceErrorsData.md similarity index 58% rename from api/docs/CouponDataRelationshipsPromotionRuleData.md rename to api/docs/OrderDataRelationshipsResourceErrorsData.md index 5212ddb5..ed95ae3e 100644 --- a/api/docs/CouponDataRelationshipsPromotionRuleData.md +++ b/api/docs/OrderDataRelationshipsResourceErrorsData.md @@ -1,4 +1,4 @@ -# CouponDataRelationshipsPromotionRuleData +# OrderDataRelationshipsResourceErrorsData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewCouponDataRelationshipsPromotionRuleData +### NewOrderDataRelationshipsResourceErrorsData -`func NewCouponDataRelationshipsPromotionRuleData() *CouponDataRelationshipsPromotionRuleData` +`func NewOrderDataRelationshipsResourceErrorsData() *OrderDataRelationshipsResourceErrorsData` -NewCouponDataRelationshipsPromotionRuleData instantiates a new CouponDataRelationshipsPromotionRuleData object +NewOrderDataRelationshipsResourceErrorsData instantiates a new OrderDataRelationshipsResourceErrorsData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewCouponDataRelationshipsPromotionRuleDataWithDefaults +### NewOrderDataRelationshipsResourceErrorsDataWithDefaults -`func NewCouponDataRelationshipsPromotionRuleDataWithDefaults() *CouponDataRelationshipsPromotionRuleData` +`func NewOrderDataRelationshipsResourceErrorsDataWithDefaults() *OrderDataRelationshipsResourceErrorsData` -NewCouponDataRelationshipsPromotionRuleDataWithDefaults instantiates a new CouponDataRelationshipsPromotionRuleData object +NewOrderDataRelationshipsResourceErrorsDataWithDefaults instantiates a new OrderDataRelationshipsResourceErrorsData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *CouponDataRelationshipsPromotionRuleData) GetType() interface{}` +`func (o *OrderDataRelationshipsResourceErrorsData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *CouponDataRelationshipsPromotionRuleData) GetTypeOk() (*interface{}, bool)` +`func (o *OrderDataRelationshipsResourceErrorsData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *CouponDataRelationshipsPromotionRuleData) SetType(v interface{})` +`func (o *OrderDataRelationshipsResourceErrorsData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *CouponDataRelationshipsPromotionRuleData) HasType() bool` +`func (o *OrderDataRelationshipsResourceErrorsData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *CouponDataRelationshipsPromotionRuleData) SetTypeNil(b bool)` +`func (o *OrderDataRelationshipsResourceErrorsData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *CouponDataRelationshipsPromotionRuleData) UnsetType()` +`func (o *OrderDataRelationshipsResourceErrorsData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *CouponDataRelationshipsPromotionRuleData) GetId() interface{}` +`func (o *OrderDataRelationshipsResourceErrorsData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *CouponDataRelationshipsPromotionRuleData) GetIdOk() (*interface{}, bool)` +`func (o *OrderDataRelationshipsResourceErrorsData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *CouponDataRelationshipsPromotionRuleData) SetId(v interface{})` +`func (o *OrderDataRelationshipsResourceErrorsData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *CouponDataRelationshipsPromotionRuleData) HasId() bool` +`func (o *OrderDataRelationshipsResourceErrorsData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *CouponDataRelationshipsPromotionRuleData) SetIdNil(b bool)` +`func (o *OrderDataRelationshipsResourceErrorsData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *CouponDataRelationshipsPromotionRuleData) UnsetId()` +`func (o *OrderDataRelationshipsResourceErrorsData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/OrderFactoryDataRelationships.md b/api/docs/OrderFactoryDataRelationships.md index 3ef7bd57..991943d2 100644 --- a/api/docs/OrderFactoryDataRelationships.md +++ b/api/docs/OrderFactoryDataRelationships.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SourceOrder** | Pointer to [**AdyenPaymentDataRelationshipsOrder**](AdyenPaymentDataRelationshipsOrder.md) | | [optional] **TargetOrder** | Pointer to [**AdyenPaymentDataRelationshipsOrder**](AdyenPaymentDataRelationshipsOrder.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ HasTargetOrder returns a boolean if a field has been set. ### GetEvents -`func (o *OrderFactoryDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` +`func (o *OrderFactoryDataRelationships) GetEvents() AddressDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *OrderFactoryDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` +`func (o *OrderFactoryDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *OrderFactoryDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` +`func (o *OrderFactoryDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` SetEvents sets Events field to given value. diff --git a/api/docs/OrderSubscriptionCreateDataRelationships.md b/api/docs/OrderSubscriptionCreateDataRelationships.md index 1eb6b97f..a563b62b 100644 --- a/api/docs/OrderSubscriptionCreateDataRelationships.md +++ b/api/docs/OrderSubscriptionCreateDataRelationships.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Market** | Pointer to [**BillingInfoValidationRuleCreateDataRelationshipsMarket**](BillingInfoValidationRuleCreateDataRelationshipsMarket.md) | | [optional] **SourceOrder** | [**AdyenPaymentCreateDataRelationshipsOrder**](AdyenPaymentCreateDataRelationshipsOrder.md) | | +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] ## Methods @@ -71,6 +72,31 @@ and a boolean to check if the value has been set. SetSourceOrder sets SourceOrder field to given value. +### GetTags + +`func (o *OrderSubscriptionCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *OrderSubscriptionCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *OrderSubscriptionCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *OrderSubscriptionCreateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/OrderSubscriptionDataRelationships.md b/api/docs/OrderSubscriptionDataRelationships.md index 643fc542..c685f664 100644 --- a/api/docs/OrderSubscriptionDataRelationships.md +++ b/api/docs/OrderSubscriptionDataRelationships.md @@ -11,10 +11,11 @@ Name | Type | Description | Notes **CustomerPaymentSource** | Pointer to [**CustomerDataRelationshipsCustomerPaymentSources**](CustomerDataRelationshipsCustomerPaymentSources.md) | | [optional] **OrderSubscriptionItems** | Pointer to [**OrderSubscriptionDataRelationshipsOrderSubscriptionItems**](OrderSubscriptionDataRelationshipsOrderSubscriptionItems.md) | | [optional] **OrderFactories** | Pointer to [**OrderSubscriptionDataRelationshipsOrderFactories**](OrderSubscriptionDataRelationshipsOrderFactories.md) | | [optional] -**OrderCopies** | Pointer to [**OrderSubscriptionDataRelationshipsOrderCopies**](OrderSubscriptionDataRelationshipsOrderCopies.md) | | [optional] **RecurringOrderCopies** | Pointer to [**OrderSubscriptionDataRelationshipsRecurringOrderCopies**](OrderSubscriptionDataRelationshipsRecurringOrderCopies.md) | | [optional] **Orders** | Pointer to [**AdyenPaymentDataRelationshipsOrder**](AdyenPaymentDataRelationshipsOrder.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**AddressDataRelationshipsTags**](AddressDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -210,31 +211,6 @@ SetOrderFactories sets OrderFactories field to given value. HasOrderFactories returns a boolean if a field has been set. -### GetOrderCopies - -`func (o *OrderSubscriptionDataRelationships) GetOrderCopies() OrderSubscriptionDataRelationshipsOrderCopies` - -GetOrderCopies returns the OrderCopies field if non-nil, zero value otherwise. - -### GetOrderCopiesOk - -`func (o *OrderSubscriptionDataRelationships) GetOrderCopiesOk() (*OrderSubscriptionDataRelationshipsOrderCopies, bool)` - -GetOrderCopiesOk returns a tuple with the OrderCopies field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderCopies - -`func (o *OrderSubscriptionDataRelationships) SetOrderCopies(v OrderSubscriptionDataRelationshipsOrderCopies)` - -SetOrderCopies sets OrderCopies field to given value. - -### HasOrderCopies - -`func (o *OrderSubscriptionDataRelationships) HasOrderCopies() bool` - -HasOrderCopies returns a boolean if a field has been set. - ### GetRecurringOrderCopies `func (o *OrderSubscriptionDataRelationships) GetRecurringOrderCopies() OrderSubscriptionDataRelationshipsRecurringOrderCopies` @@ -287,20 +263,20 @@ HasOrders returns a boolean if a field has been set. ### GetEvents -`func (o *OrderSubscriptionDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` +`func (o *OrderSubscriptionDataRelationships) GetEvents() AddressDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *OrderSubscriptionDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` +`func (o *OrderSubscriptionDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *OrderSubscriptionDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` +`func (o *OrderSubscriptionDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -310,6 +286,56 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetTags + +`func (o *OrderSubscriptionDataRelationships) GetTags() AddressDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *OrderSubscriptionDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *OrderSubscriptionDataRelationships) SetTags(v AddressDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *OrderSubscriptionDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *OrderSubscriptionDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *OrderSubscriptionDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *OrderSubscriptionDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *OrderSubscriptionDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/OrderSubscriptionDataRelationshipsOrderCopies.md b/api/docs/OrderSubscriptionDataRelationshipsOrderCopies.md deleted file mode 100644 index 96915c40..00000000 --- a/api/docs/OrderSubscriptionDataRelationshipsOrderCopies.md +++ /dev/null @@ -1,56 +0,0 @@ -# OrderSubscriptionDataRelationshipsOrderCopies - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | Pointer to [**OrderSubscriptionDataRelationshipsOrderCopiesData**](OrderSubscriptionDataRelationshipsOrderCopiesData.md) | | [optional] - -## Methods - -### NewOrderSubscriptionDataRelationshipsOrderCopies - -`func NewOrderSubscriptionDataRelationshipsOrderCopies() *OrderSubscriptionDataRelationshipsOrderCopies` - -NewOrderSubscriptionDataRelationshipsOrderCopies instantiates a new OrderSubscriptionDataRelationshipsOrderCopies object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewOrderSubscriptionDataRelationshipsOrderCopiesWithDefaults - -`func NewOrderSubscriptionDataRelationshipsOrderCopiesWithDefaults() *OrderSubscriptionDataRelationshipsOrderCopies` - -NewOrderSubscriptionDataRelationshipsOrderCopiesWithDefaults instantiates a new OrderSubscriptionDataRelationshipsOrderCopies object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *OrderSubscriptionDataRelationshipsOrderCopies) GetData() OrderSubscriptionDataRelationshipsOrderCopiesData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *OrderSubscriptionDataRelationshipsOrderCopies) GetDataOk() (*OrderSubscriptionDataRelationshipsOrderCopiesData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *OrderSubscriptionDataRelationshipsOrderCopies) SetData(v OrderSubscriptionDataRelationshipsOrderCopiesData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *OrderSubscriptionDataRelationshipsOrderCopies) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/OrderSubscriptionItemCreateDataRelationships.md b/api/docs/OrderSubscriptionItemCreateDataRelationships.md index ff678910..1cf9bfb0 100644 --- a/api/docs/OrderSubscriptionItemCreateDataRelationships.md +++ b/api/docs/OrderSubscriptionItemCreateDataRelationships.md @@ -6,6 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **OrderSubscription** | [**OrderSubscriptionItemCreateDataRelationshipsOrderSubscription**](OrderSubscriptionItemCreateDataRelationshipsOrderSubscription.md) | | **Item** | [**OrderSubscriptionItemCreateDataRelationshipsItem**](OrderSubscriptionItemCreateDataRelationshipsItem.md) | | +**Sku** | Pointer to [**InStockSubscriptionCreateDataRelationshipsSku**](InStockSubscriptionCreateDataRelationshipsSku.md) | | [optional] +**Bundle** | Pointer to [**OrderSubscriptionItemCreateDataRelationshipsBundle**](OrderSubscriptionItemCreateDataRelationshipsBundle.md) | | [optional] +**Adjustment** | Pointer to [**OrderSubscriptionItemCreateDataRelationshipsAdjustment**](OrderSubscriptionItemCreateDataRelationshipsAdjustment.md) | | [optional] ## Methods @@ -66,6 +69,81 @@ and a boolean to check if the value has been set. SetItem sets Item field to given value. +### GetSku + +`func (o *OrderSubscriptionItemCreateDataRelationships) GetSku() InStockSubscriptionCreateDataRelationshipsSku` + +GetSku returns the Sku field if non-nil, zero value otherwise. + +### GetSkuOk + +`func (o *OrderSubscriptionItemCreateDataRelationships) GetSkuOk() (*InStockSubscriptionCreateDataRelationshipsSku, bool)` + +GetSkuOk returns a tuple with the Sku field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSku + +`func (o *OrderSubscriptionItemCreateDataRelationships) SetSku(v InStockSubscriptionCreateDataRelationshipsSku)` + +SetSku sets Sku field to given value. + +### HasSku + +`func (o *OrderSubscriptionItemCreateDataRelationships) HasSku() bool` + +HasSku returns a boolean if a field has been set. + +### GetBundle + +`func (o *OrderSubscriptionItemCreateDataRelationships) GetBundle() OrderSubscriptionItemCreateDataRelationshipsBundle` + +GetBundle returns the Bundle field if non-nil, zero value otherwise. + +### GetBundleOk + +`func (o *OrderSubscriptionItemCreateDataRelationships) GetBundleOk() (*OrderSubscriptionItemCreateDataRelationshipsBundle, bool)` + +GetBundleOk returns a tuple with the Bundle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBundle + +`func (o *OrderSubscriptionItemCreateDataRelationships) SetBundle(v OrderSubscriptionItemCreateDataRelationshipsBundle)` + +SetBundle sets Bundle field to given value. + +### HasBundle + +`func (o *OrderSubscriptionItemCreateDataRelationships) HasBundle() bool` + +HasBundle returns a boolean if a field has been set. + +### GetAdjustment + +`func (o *OrderSubscriptionItemCreateDataRelationships) GetAdjustment() OrderSubscriptionItemCreateDataRelationshipsAdjustment` + +GetAdjustment returns the Adjustment field if non-nil, zero value otherwise. + +### GetAdjustmentOk + +`func (o *OrderSubscriptionItemCreateDataRelationships) GetAdjustmentOk() (*OrderSubscriptionItemCreateDataRelationshipsAdjustment, bool)` + +GetAdjustmentOk returns a tuple with the Adjustment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdjustment + +`func (o *OrderSubscriptionItemCreateDataRelationships) SetAdjustment(v OrderSubscriptionItemCreateDataRelationshipsAdjustment)` + +SetAdjustment sets Adjustment field to given value. + +### HasAdjustment + +`func (o *OrderSubscriptionItemCreateDataRelationships) HasAdjustment() bool` + +HasAdjustment returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/OrderSubscriptionItemCreateDataRelationshipsAdjustment.md b/api/docs/OrderSubscriptionItemCreateDataRelationshipsAdjustment.md new file mode 100644 index 00000000..23221432 --- /dev/null +++ b/api/docs/OrderSubscriptionItemCreateDataRelationshipsAdjustment.md @@ -0,0 +1,51 @@ +# OrderSubscriptionItemCreateDataRelationshipsAdjustment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LineItemDataRelationshipsAdjustmentData**](LineItemDataRelationshipsAdjustmentData.md) | | + +## Methods + +### NewOrderSubscriptionItemCreateDataRelationshipsAdjustment + +`func NewOrderSubscriptionItemCreateDataRelationshipsAdjustment(data LineItemDataRelationshipsAdjustmentData, ) *OrderSubscriptionItemCreateDataRelationshipsAdjustment` + +NewOrderSubscriptionItemCreateDataRelationshipsAdjustment instantiates a new OrderSubscriptionItemCreateDataRelationshipsAdjustment object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrderSubscriptionItemCreateDataRelationshipsAdjustmentWithDefaults + +`func NewOrderSubscriptionItemCreateDataRelationshipsAdjustmentWithDefaults() *OrderSubscriptionItemCreateDataRelationshipsAdjustment` + +NewOrderSubscriptionItemCreateDataRelationshipsAdjustmentWithDefaults instantiates a new OrderSubscriptionItemCreateDataRelationshipsAdjustment object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *OrderSubscriptionItemCreateDataRelationshipsAdjustment) GetData() LineItemDataRelationshipsAdjustmentData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *OrderSubscriptionItemCreateDataRelationshipsAdjustment) GetDataOk() (*LineItemDataRelationshipsAdjustmentData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *OrderSubscriptionItemCreateDataRelationshipsAdjustment) SetData(v LineItemDataRelationshipsAdjustmentData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/OrderSubscriptionItemCreateDataRelationshipsBundle.md b/api/docs/OrderSubscriptionItemCreateDataRelationshipsBundle.md new file mode 100644 index 00000000..0c0ead24 --- /dev/null +++ b/api/docs/OrderSubscriptionItemCreateDataRelationshipsBundle.md @@ -0,0 +1,51 @@ +# OrderSubscriptionItemCreateDataRelationshipsBundle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**LineItemDataRelationshipsBundleData**](LineItemDataRelationshipsBundleData.md) | | + +## Methods + +### NewOrderSubscriptionItemCreateDataRelationshipsBundle + +`func NewOrderSubscriptionItemCreateDataRelationshipsBundle(data LineItemDataRelationshipsBundleData, ) *OrderSubscriptionItemCreateDataRelationshipsBundle` + +NewOrderSubscriptionItemCreateDataRelationshipsBundle instantiates a new OrderSubscriptionItemCreateDataRelationshipsBundle object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrderSubscriptionItemCreateDataRelationshipsBundleWithDefaults + +`func NewOrderSubscriptionItemCreateDataRelationshipsBundleWithDefaults() *OrderSubscriptionItemCreateDataRelationshipsBundle` + +NewOrderSubscriptionItemCreateDataRelationshipsBundleWithDefaults instantiates a new OrderSubscriptionItemCreateDataRelationshipsBundle object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *OrderSubscriptionItemCreateDataRelationshipsBundle) GetData() LineItemDataRelationshipsBundleData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *OrderSubscriptionItemCreateDataRelationshipsBundle) GetDataOk() (*LineItemDataRelationshipsBundleData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *OrderSubscriptionItemCreateDataRelationshipsBundle) SetData(v LineItemDataRelationshipsBundleData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/OrderSubscriptionItemDataRelationships.md b/api/docs/OrderSubscriptionItemDataRelationships.md index a08afc3f..09dc1e73 100644 --- a/api/docs/OrderSubscriptionItemDataRelationships.md +++ b/api/docs/OrderSubscriptionItemDataRelationships.md @@ -6,6 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **OrderSubscription** | Pointer to [**CustomerDataRelationshipsOrderSubscriptions**](CustomerDataRelationshipsOrderSubscriptions.md) | | [optional] **Item** | Pointer to [**OrderSubscriptionItemDataRelationshipsItem**](OrderSubscriptionItemDataRelationshipsItem.md) | | [optional] +**Sku** | Pointer to [**BundleDataRelationshipsSkus**](BundleDataRelationshipsSkus.md) | | [optional] +**Bundle** | Pointer to [**LineItemDataRelationshipsBundle**](LineItemDataRelationshipsBundle.md) | | [optional] +**Adjustment** | Pointer to [**LineItemDataRelationshipsAdjustment**](LineItemDataRelationshipsAdjustment.md) | | [optional] +**SourceLineItem** | Pointer to [**LineItemOptionDataRelationshipsLineItem**](LineItemOptionDataRelationshipsLineItem.md) | | [optional] ## Methods @@ -76,6 +80,106 @@ SetItem sets Item field to given value. HasItem returns a boolean if a field has been set. +### GetSku + +`func (o *OrderSubscriptionItemDataRelationships) GetSku() BundleDataRelationshipsSkus` + +GetSku returns the Sku field if non-nil, zero value otherwise. + +### GetSkuOk + +`func (o *OrderSubscriptionItemDataRelationships) GetSkuOk() (*BundleDataRelationshipsSkus, bool)` + +GetSkuOk returns a tuple with the Sku field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSku + +`func (o *OrderSubscriptionItemDataRelationships) SetSku(v BundleDataRelationshipsSkus)` + +SetSku sets Sku field to given value. + +### HasSku + +`func (o *OrderSubscriptionItemDataRelationships) HasSku() bool` + +HasSku returns a boolean if a field has been set. + +### GetBundle + +`func (o *OrderSubscriptionItemDataRelationships) GetBundle() LineItemDataRelationshipsBundle` + +GetBundle returns the Bundle field if non-nil, zero value otherwise. + +### GetBundleOk + +`func (o *OrderSubscriptionItemDataRelationships) GetBundleOk() (*LineItemDataRelationshipsBundle, bool)` + +GetBundleOk returns a tuple with the Bundle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBundle + +`func (o *OrderSubscriptionItemDataRelationships) SetBundle(v LineItemDataRelationshipsBundle)` + +SetBundle sets Bundle field to given value. + +### HasBundle + +`func (o *OrderSubscriptionItemDataRelationships) HasBundle() bool` + +HasBundle returns a boolean if a field has been set. + +### GetAdjustment + +`func (o *OrderSubscriptionItemDataRelationships) GetAdjustment() LineItemDataRelationshipsAdjustment` + +GetAdjustment returns the Adjustment field if non-nil, zero value otherwise. + +### GetAdjustmentOk + +`func (o *OrderSubscriptionItemDataRelationships) GetAdjustmentOk() (*LineItemDataRelationshipsAdjustment, bool)` + +GetAdjustmentOk returns a tuple with the Adjustment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdjustment + +`func (o *OrderSubscriptionItemDataRelationships) SetAdjustment(v LineItemDataRelationshipsAdjustment)` + +SetAdjustment sets Adjustment field to given value. + +### HasAdjustment + +`func (o *OrderSubscriptionItemDataRelationships) HasAdjustment() bool` + +HasAdjustment returns a boolean if a field has been set. + +### GetSourceLineItem + +`func (o *OrderSubscriptionItemDataRelationships) GetSourceLineItem() LineItemOptionDataRelationshipsLineItem` + +GetSourceLineItem returns the SourceLineItem field if non-nil, zero value otherwise. + +### GetSourceLineItemOk + +`func (o *OrderSubscriptionItemDataRelationships) GetSourceLineItemOk() (*LineItemOptionDataRelationshipsLineItem, bool)` + +GetSourceLineItemOk returns a tuple with the SourceLineItem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceLineItem + +`func (o *OrderSubscriptionItemDataRelationships) SetSourceLineItem(v LineItemOptionDataRelationshipsLineItem)` + +SetSourceLineItem sets SourceLineItem field to given value. + +### HasSourceLineItem + +`func (o *OrderSubscriptionItemDataRelationships) HasSourceLineItem() bool` + +HasSourceLineItem returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/OrderSubscriptionUpdateDataRelationships.md b/api/docs/OrderSubscriptionUpdateDataRelationships.md index f8913cb9..f6a7dd92 100644 --- a/api/docs/OrderSubscriptionUpdateDataRelationships.md +++ b/api/docs/OrderSubscriptionUpdateDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CustomerPaymentSource** | Pointer to [**OrderSubscriptionUpdateDataRelationshipsCustomerPaymentSource**](OrderSubscriptionUpdateDataRelationshipsCustomerPaymentSource.md) | | [optional] +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] ## Methods @@ -50,6 +51,31 @@ SetCustomerPaymentSource sets CustomerPaymentSource field to given value. HasCustomerPaymentSource returns a boolean if a field has been set. +### GetTags + +`func (o *OrderSubscriptionUpdateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *OrderSubscriptionUpdateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *OrderSubscriptionUpdateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *OrderSubscriptionUpdateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/OrderSubscriptionsApi.md b/api/docs/OrderSubscriptionsApi.md index 9d493729..865e92c9 100644 --- a/api/docs/OrderSubscriptionsApi.md +++ b/api/docs/OrderSubscriptionsApi.md @@ -7,6 +7,7 @@ Method | HTTP request | Description [**DELETEOrderSubscriptionsOrderSubscriptionId**](OrderSubscriptionsApi.md#DELETEOrderSubscriptionsOrderSubscriptionId) | **Delete** /order_subscriptions/{orderSubscriptionId} | Delete an order subscription [**GETCustomerIdOrderSubscriptions**](OrderSubscriptionsApi.md#GETCustomerIdOrderSubscriptions) | **Get** /customers/{customerId}/order_subscriptions | Retrieve the order subscriptions associated to the customer [**GETOrderCopyIdOrderSubscription**](OrderSubscriptionsApi.md#GETOrderCopyIdOrderSubscription) | **Get** /order_copies/{orderCopyId}/order_subscription | Retrieve the order subscription associated to the order copy +[**GETOrderIdOrderSubscription**](OrderSubscriptionsApi.md#GETOrderIdOrderSubscription) | **Get** /orders/{orderId}/order_subscription | Retrieve the order subscription associated to the order [**GETOrderIdOrderSubscriptions**](OrderSubscriptionsApi.md#GETOrderIdOrderSubscriptions) | **Get** /orders/{orderId}/order_subscriptions | Retrieve the order subscriptions associated to the order [**GETOrderSubscriptionItemIdOrderSubscription**](OrderSubscriptionsApi.md#GETOrderSubscriptionItemIdOrderSubscription) | **Get** /order_subscription_items/{orderSubscriptionItemId}/order_subscription | Retrieve the order subscription associated to the order subscription item [**GETOrderSubscriptions**](OrderSubscriptionsApi.md#GETOrderSubscriptions) | **Get** /order_subscriptions | List all order subscriptions @@ -222,6 +223,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETOrderIdOrderSubscription + +> GETOrderIdOrderSubscription(ctx, orderId).Execute() + +Retrieve the order subscription associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.OrderSubscriptionsApi.GETOrderIdOrderSubscription(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrderSubscriptionsApi.GETOrderIdOrderSubscription``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdOrderSubscriptionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETOrderIdOrderSubscriptions > GETOrderIdOrderSubscriptions(ctx, orderId).Execute() diff --git a/api/docs/OrderValidationRulesApi.md b/api/docs/OrderValidationRulesApi.md deleted file mode 100644 index 1bd257bc..00000000 --- a/api/docs/OrderValidationRulesApi.md +++ /dev/null @@ -1,141 +0,0 @@ -# \OrderValidationRulesApi - -All URIs are relative to *https://.commercelayer.io/api* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**GETOrderValidationRules**](OrderValidationRulesApi.md#GETOrderValidationRules) | **Get** /order_validation_rules | List all order validation rules -[**GETOrderValidationRulesOrderValidationRuleId**](OrderValidationRulesApi.md#GETOrderValidationRulesOrderValidationRuleId) | **Get** /order_validation_rules/{orderValidationRuleId} | Retrieve an order validation rule - - - -## GETOrderValidationRules - -> GETOrderValidationRules200Response GETOrderValidationRules(ctx).Execute() - -List all order validation rules - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrderValidationRulesApi.GETOrderValidationRules(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrderValidationRulesApi.GETOrderValidationRules``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GETOrderValidationRules`: GETOrderValidationRules200Response - fmt.Fprintf(os.Stdout, "Response from `OrderValidationRulesApi.GETOrderValidationRules`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiGETOrderValidationRulesRequest struct via the builder pattern - - -### Return type - -[**GETOrderValidationRules200Response**](GETOrderValidationRules200Response.md) - -### Authorization - -[bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/vnd.api+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GETOrderValidationRulesOrderValidationRuleId - -> GETOrderValidationRulesOrderValidationRuleId200Response GETOrderValidationRulesOrderValidationRuleId(ctx, orderValidationRuleId).Execute() - -Retrieve an order validation rule - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" -) - -func main() { - orderValidationRuleId := TODO // interface{} | The resource's id - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.OrderValidationRulesApi.GETOrderValidationRulesOrderValidationRuleId(context.Background(), orderValidationRuleId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `OrderValidationRulesApi.GETOrderValidationRulesOrderValidationRuleId``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GETOrderValidationRulesOrderValidationRuleId`: GETOrderValidationRulesOrderValidationRuleId200Response - fmt.Fprintf(os.Stdout, "Response from `OrderValidationRulesApi.GETOrderValidationRulesOrderValidationRuleId`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**orderValidationRuleId** | [**interface{}**](.md) | The resource's id | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGETOrderValidationRulesOrderValidationRuleIdRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**GETOrderValidationRulesOrderValidationRuleId200Response**](GETOrderValidationRulesOrderValidationRuleId200Response.md) - -### Authorization - -[bearerAuth](../README.md#bearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/vnd.api+json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/api/docs/OrdersApi.md b/api/docs/OrdersApi.md index c86c68b8..8519e011 100644 --- a/api/docs/OrdersApi.md +++ b/api/docs/OrdersApi.md @@ -23,6 +23,7 @@ Method | HTTP request | Description [**GETOrderSubscriptionIdSourceOrder**](OrdersApi.md#GETOrderSubscriptionIdSourceOrder) | **Get** /order_subscriptions/{orderSubscriptionId}/source_order | Retrieve the source order associated to the order subscription [**GETOrders**](OrdersApi.md#GETOrders) | **Get** /orders | List all orders [**GETOrdersOrderId**](OrdersApi.md#GETOrdersOrderId) | **Get** /orders/{orderId} | Retrieve an order +[**GETPaymentOptionIdOrder**](OrdersApi.md#GETPaymentOptionIdOrder) | **Get** /payment_options/{paymentOptionId}/order | Retrieve the order associated to the payment option [**GETPaypalPaymentIdOrder**](OrdersApi.md#GETPaypalPaymentIdOrder) | **Get** /paypal_payments/{paypalPaymentId}/order | Retrieve the order associated to the paypal payment [**GETRecurringOrderCopyIdSourceOrder**](OrdersApi.md#GETRecurringOrderCopyIdSourceOrder) | **Get** /recurring_order_copies/{recurringOrderCopyId}/source_order | Retrieve the source order associated to the recurring order copy [**GETRecurringOrderCopyIdTargetOrder**](OrdersApi.md#GETRecurringOrderCopyIdTargetOrder) | **Get** /recurring_order_copies/{recurringOrderCopyId}/target_order | Retrieve the target order associated to the recurring order copy @@ -30,6 +31,7 @@ Method | HTTP request | Description [**GETReturnIdOrder**](OrdersApi.md#GETReturnIdOrder) | **Get** /returns/{returnId}/order | Retrieve the order associated to the return [**GETSatispayPaymentIdOrder**](OrdersApi.md#GETSatispayPaymentIdOrder) | **Get** /satispay_payments/{satispayPaymentId}/order | Retrieve the order associated to the satispay payment [**GETShipmentIdOrder**](OrdersApi.md#GETShipmentIdOrder) | **Get** /shipments/{shipmentId}/order | Retrieve the order associated to the shipment +[**GETStockReservationIdOrder**](OrdersApi.md#GETStockReservationIdOrder) | **Get** /stock_reservations/{stockReservationId}/order | Retrieve the order associated to the stock reservation [**GETStripePaymentIdOrder**](OrdersApi.md#GETStripePaymentIdOrder) | **Get** /stripe_payments/{stripePaymentId}/order | Retrieve the order associated to the stripe payment [**GETTransactionIdOrder**](OrdersApi.md#GETTransactionIdOrder) | **Get** /transactions/{transactionId}/order | Retrieve the order associated to the transaction [**GETVoidIdOrder**](OrdersApi.md#GETVoidIdOrder) | **Get** /voids/{voidId}/order | Retrieve the order associated to the void @@ -1326,6 +1328,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETPaymentOptionIdOrder + +> GETPaymentOptionIdOrder(ctx, paymentOptionId).Execute() + +Retrieve the order associated to the payment option + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + paymentOptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.OrdersApi.GETPaymentOptionIdOrder(context.Background(), paymentOptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrdersApi.GETPaymentOptionIdOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**paymentOptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPaymentOptionIdOrderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETPaypalPaymentIdOrder > GETPaypalPaymentIdOrder(ctx, paypalPaymentId).Execute() @@ -1802,6 +1872,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETStockReservationIdOrder + +> GETStockReservationIdOrder(ctx, stockReservationId).Execute() + +Retrieve the order associated to the stock reservation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockReservationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.OrdersApi.GETStockReservationIdOrder(context.Background(), stockReservationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrdersApi.GETStockReservationIdOrder``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockReservationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStockReservationIdOrderRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETStripePaymentIdOrder > GETStripePaymentIdOrder(ctx, stripePaymentId).Execute() diff --git a/api/docs/PATCHAddressesAddressId200ResponseDataAttributes.md b/api/docs/PATCHAddressesAddressId200ResponseDataAttributes.md index 69dd3d97..b27646bf 100644 --- a/api/docs/PATCHAddressesAddressId200ResponseDataAttributes.md +++ b/api/docs/PATCHAddressesAddressId200ResponseDataAttributes.md @@ -4,24 +4,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Business** | Pointer to **interface{}** | Indicates if it's a business or a personal address | [optional] -**FirstName** | Pointer to **interface{}** | Address first name (personal) | [optional] -**LastName** | Pointer to **interface{}** | Address last name (personal) | [optional] -**Company** | Pointer to **interface{}** | Address company name (business) | [optional] -**Line1** | Pointer to **interface{}** | Address line 1, i.e. Street address, PO Box | [optional] -**Line2** | Pointer to **interface{}** | Address line 2, i.e. Apartment, Suite, Building | [optional] -**City** | Pointer to **interface{}** | Address city | [optional] -**ZipCode** | Pointer to **interface{}** | ZIP or postal code | [optional] +**Business** | Pointer to **interface{}** | Indicates if it's a business or a personal address. | [optional] +**FirstName** | Pointer to **interface{}** | Address first name (personal). | [optional] +**LastName** | Pointer to **interface{}** | Address last name (personal). | [optional] +**Company** | Pointer to **interface{}** | Address company name (business). | [optional] +**Line1** | Pointer to **interface{}** | Address line 1, i.e. Street address, PO Box. | [optional] +**Line2** | Pointer to **interface{}** | Address line 2, i.e. Apartment, Suite, Building. | [optional] +**City** | Pointer to **interface{}** | Address city. | [optional] +**ZipCode** | Pointer to **interface{}** | ZIP or postal code. | [optional] **StateCode** | Pointer to **interface{}** | State, province or region code. | [optional] -**CountryCode** | Pointer to **interface{}** | The international 2-letter country code as defined by the ISO 3166-1 standard | [optional] +**CountryCode** | Pointer to **interface{}** | The international 2-letter country code as defined by the ISO 3166-1 standard. | [optional] **Phone** | Pointer to **interface{}** | Phone number (including extension). | [optional] **Email** | Pointer to **interface{}** | Email address. | [optional] **Notes** | Pointer to **interface{}** | A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions. | [optional] **Lat** | Pointer to **interface{}** | The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market. | [optional] **Lng** | Pointer to **interface{}** | The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market. | [optional] -**BillingInfo** | Pointer to **interface{}** | Customer's billing information (i.e. VAT number, codice fiscale) | [optional] +**BillingInfo** | Pointer to **interface{}** | Customer's billing information (i.e. VAT number, codice fiscale). | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHAdjustmentsAdjustmentId200ResponseData.md b/api/docs/PATCHAdjustmentsAdjustmentId200ResponseData.md index 24e71dd5..f10bb37b 100644 --- a/api/docs/PATCHAdjustmentsAdjustmentId200ResponseData.md +++ b/api/docs/PATCHAdjustmentsAdjustmentId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**PATCHAdjustmentsAdjustmentId200ResponseDataAttributes**](PATCHAdjustmentsAdjustmentId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to **interface{}** | | [optional] +**Relationships** | Pointer to [**POSTAdjustments201ResponseDataRelationships**](POSTAdjustments201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *PATCHAdjustmentsAdjustmentId200ResponseData) GetRelationships() interface{}` +`func (o *PATCHAdjustmentsAdjustmentId200ResponseData) GetRelationships() POSTAdjustments201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *PATCHAdjustmentsAdjustmentId200ResponseData) GetRelationshipsOk() (*interface{}, bool)` +`func (o *PATCHAdjustmentsAdjustmentId200ResponseData) GetRelationshipsOk() (*POSTAdjustments201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *PATCHAdjustmentsAdjustmentId200ResponseData) SetRelationships(v interface{})` +`func (o *PATCHAdjustmentsAdjustmentId200ResponseData) SetRelationships(v POSTAdjustments201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. @@ -174,16 +174,6 @@ SetRelationships sets Relationships field to given value. HasRelationships returns a boolean if a field has been set. -### SetRelationshipsNil - -`func (o *PATCHAdjustmentsAdjustmentId200ResponseData) SetRelationshipsNil(b bool)` - - SetRelationshipsNil sets the value for Relationships to be an explicit nil - -### UnsetRelationships -`func (o *PATCHAdjustmentsAdjustmentId200ResponseData) UnsetRelationships()` - -UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/PATCHAdjustmentsAdjustmentId200ResponseDataAttributes.md b/api/docs/PATCHAdjustmentsAdjustmentId200ResponseDataAttributes.md index 723b12a8..827da1e2 100644 --- a/api/docs/PATCHAdjustmentsAdjustmentId200ResponseDataAttributes.md +++ b/api/docs/PATCHAdjustmentsAdjustmentId200ResponseDataAttributes.md @@ -4,11 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The adjustment name | [optional] +**Name** | Pointer to **interface{}** | The adjustment name. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] **AmountCents** | Pointer to **interface{}** | The adjustment amount, in cents. | [optional] +**DistributeDiscount** | Pointer to **interface{}** | Indicates if negative adjustment amount is distributed for tax calculation. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -135,6 +136,41 @@ HasAmountCents returns a boolean if a field has been set. `func (o *PATCHAdjustmentsAdjustmentId200ResponseDataAttributes) UnsetAmountCents()` UnsetAmountCents ensures that no value is present for AmountCents, not even an explicit nil +### GetDistributeDiscount + +`func (o *PATCHAdjustmentsAdjustmentId200ResponseDataAttributes) GetDistributeDiscount() interface{}` + +GetDistributeDiscount returns the DistributeDiscount field if non-nil, zero value otherwise. + +### GetDistributeDiscountOk + +`func (o *PATCHAdjustmentsAdjustmentId200ResponseDataAttributes) GetDistributeDiscountOk() (*interface{}, bool)` + +GetDistributeDiscountOk returns a tuple with the DistributeDiscount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistributeDiscount + +`func (o *PATCHAdjustmentsAdjustmentId200ResponseDataAttributes) SetDistributeDiscount(v interface{})` + +SetDistributeDiscount sets DistributeDiscount field to given value. + +### HasDistributeDiscount + +`func (o *PATCHAdjustmentsAdjustmentId200ResponseDataAttributes) HasDistributeDiscount() bool` + +HasDistributeDiscount returns a boolean if a field has been set. + +### SetDistributeDiscountNil + +`func (o *PATCHAdjustmentsAdjustmentId200ResponseDataAttributes) SetDistributeDiscountNil(b bool)` + + SetDistributeDiscountNil sets the value for DistributeDiscount to be an explicit nil + +### UnsetDistributeDiscount +`func (o *PATCHAdjustmentsAdjustmentId200ResponseDataAttributes) UnsetDistributeDiscount()` + +UnsetDistributeDiscount ensures that no value is present for DistributeDiscount, not even an explicit nil ### GetReference `func (o *PATCHAdjustmentsAdjustmentId200ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes.md b/api/docs/PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes.md index 7c5f685d..9ecffdde 100644 --- a/api/docs/PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes.md +++ b/api/docs/PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes.md @@ -6,14 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The payment gateway's internal name. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **MerchantAccount** | Pointer to **interface{}** | The gateway merchant account. | [optional] **ApiKey** | Pointer to **interface{}** | The gateway API key. | [optional] **PublicKey** | Pointer to **interface{}** | The public key linked to your API credential. | [optional] **LiveUrlPrefix** | Pointer to **interface{}** | The prefix of the endpoint used for live transactions. | [optional] -**ApiVersion** | Pointer to **interface{}** | The checkout API version, supported range is from 66 to 68, default is 68. | [optional] -**AsyncApi** | Pointer to **interface{}** | Indicates if the gateway will leverage on the Adyen notification webhooks. | [optional] +**ApiVersion** | Pointer to **interface{}** | The checkout API version, supported range is from 66 to 71, default is 71. | [optional] +**AsyncApi** | Pointer to **interface{}** | Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version. | [optional] +**NativeCustomerPaymentSources** | Pointer to **interface{}** | Indicates if the gateway will use the native customer payment sources. | [optional] **WebhookEndpointSecret** | Pointer to **interface{}** | The gateway webhook endpoint secret, generated by Adyen customer area. | [optional] ## Methods @@ -385,6 +386,41 @@ HasAsyncApi returns a boolean if a field has been set. `func (o *PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) UnsetAsyncApi()` UnsetAsyncApi ensures that no value is present for AsyncApi, not even an explicit nil +### GetNativeCustomerPaymentSources + +`func (o *PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) GetNativeCustomerPaymentSources() interface{}` + +GetNativeCustomerPaymentSources returns the NativeCustomerPaymentSources field if non-nil, zero value otherwise. + +### GetNativeCustomerPaymentSourcesOk + +`func (o *PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) GetNativeCustomerPaymentSourcesOk() (*interface{}, bool)` + +GetNativeCustomerPaymentSourcesOk returns a tuple with the NativeCustomerPaymentSources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNativeCustomerPaymentSources + +`func (o *PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) SetNativeCustomerPaymentSources(v interface{})` + +SetNativeCustomerPaymentSources sets NativeCustomerPaymentSources field to given value. + +### HasNativeCustomerPaymentSources + +`func (o *PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) HasNativeCustomerPaymentSources() bool` + +HasNativeCustomerPaymentSources returns a boolean if a field has been set. + +### SetNativeCustomerPaymentSourcesNil + +`func (o *PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) SetNativeCustomerPaymentSourcesNil(b bool)` + + SetNativeCustomerPaymentSourcesNil sets the value for NativeCustomerPaymentSources to be an explicit nil + +### UnsetNativeCustomerPaymentSources +`func (o *PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) UnsetNativeCustomerPaymentSources()` + +UnsetNativeCustomerPaymentSources ensures that no value is present for NativeCustomerPaymentSources, not even an explicit nil ### GetWebhookEndpointSecret `func (o *PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) GetWebhookEndpointSecret() interface{}` diff --git a/api/docs/PATCHAdyenPaymentsAdyenPaymentId200ResponseDataAttributes.md b/api/docs/PATCHAdyenPaymentsAdyenPaymentId200ResponseDataAttributes.md index 95b8e994..b480bde7 100644 --- a/api/docs/PATCHAdyenPaymentsAdyenPaymentId200ResponseDataAttributes.md +++ b/api/docs/PATCHAdyenPaymentsAdyenPaymentId200ResponseDataAttributes.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **PaymentResponse** | Pointer to **interface{}** | The Adyen payment response, used by client (includes 'resultCode' and 'action'). | [optional] **Details** | Pointer to **interface{}** | Send this attribute if you want to send additional details the payment request. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHAttachmentsAttachmentId200ResponseDataAttributes.md b/api/docs/PATCHAttachmentsAttachmentId200ResponseDataAttributes.md index 1fb60556..39db5e71 100644 --- a/api/docs/PATCHAttachmentsAttachmentId200ResponseDataAttributes.md +++ b/api/docs/PATCHAttachmentsAttachmentId200ResponseDataAttributes.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Description** | Pointer to **interface{}** | An internal description of the attachment. | [optional] **Url** | Pointer to **interface{}** | The attachment URL. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHAuthorizationsAuthorizationId200ResponseDataAttributes.md b/api/docs/PATCHAuthorizationsAuthorizationId200ResponseDataAttributes.md index 7e61adbb..305e8ee1 100644 --- a/api/docs/PATCHAuthorizationsAuthorizationId200ResponseDataAttributes.md +++ b/api/docs/PATCHAuthorizationsAuthorizationId200ResponseDataAttributes.md @@ -4,12 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Succeeded** | Pointer to **interface{}** | Indicates if the transaction is successful. | [optional] +**Forward** | Pointer to **interface{}** | Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **Capture** | Pointer to **interface{}** | Send this attribute if you want to create a capture for this authorization. | [optional] -**CaptureAmountCents** | Pointer to **interface{}** | The associated capture amount, in cents. | [optional] +**CaptureAmountCents** | Pointer to **interface{}** | Send this attribute as a value in cents if you want to overwrite the amount to be captured. | [optional] **Void** | Pointer to **interface{}** | Send this attribute if you want to create a void for this authorization. | [optional] +**Cancel** | Pointer to **interface{}** | Send this attribute if you want to void a succeeded authorization of a pending order (which is left unpaid). | [optional] ## Methods @@ -30,6 +33,76 @@ NewPATCHAuthorizationsAuthorizationId200ResponseDataAttributesWithDefaults insta This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetSucceeded + +`func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) GetSucceeded() interface{}` + +GetSucceeded returns the Succeeded field if non-nil, zero value otherwise. + +### GetSucceededOk + +`func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) GetSucceededOk() (*interface{}, bool)` + +GetSucceededOk returns a tuple with the Succeeded field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSucceeded + +`func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) SetSucceeded(v interface{})` + +SetSucceeded sets Succeeded field to given value. + +### HasSucceeded + +`func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) HasSucceeded() bool` + +HasSucceeded returns a boolean if a field has been set. + +### SetSucceededNil + +`func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) SetSucceededNil(b bool)` + + SetSucceededNil sets the value for Succeeded to be an explicit nil + +### UnsetSucceeded +`func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) UnsetSucceeded()` + +UnsetSucceeded ensures that no value is present for Succeeded, not even an explicit nil +### GetForward + +`func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) GetForward() interface{}` + +GetForward returns the Forward field if non-nil, zero value otherwise. + +### GetForwardOk + +`func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) GetForwardOk() (*interface{}, bool)` + +GetForwardOk returns a tuple with the Forward field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetForward + +`func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) SetForward(v interface{})` + +SetForward sets Forward field to given value. + +### HasForward + +`func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) HasForward() bool` + +HasForward returns a boolean if a field has been set. + +### SetForwardNil + +`func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) SetForwardNil(b bool)` + + SetForwardNil sets the value for Forward to be an explicit nil + +### UnsetForward +`func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) UnsetForward()` + +UnsetForward ensures that no value is present for Forward, not even an explicit nil ### GetReference `func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) GetReference() interface{}` @@ -240,6 +313,41 @@ HasVoid returns a boolean if a field has been set. `func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) UnsetVoid()` UnsetVoid ensures that no value is present for Void, not even an explicit nil +### GetCancel + +`func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) GetCancel() interface{}` + +GetCancel returns the Cancel field if non-nil, zero value otherwise. + +### GetCancelOk + +`func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) GetCancelOk() (*interface{}, bool)` + +GetCancelOk returns a tuple with the Cancel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCancel + +`func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) SetCancel(v interface{})` + +SetCancel sets Cancel field to given value. + +### HasCancel + +`func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) HasCancel() bool` + +HasCancel returns a boolean if a field has been set. + +### SetCancelNil + +`func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) SetCancelNil(b bool)` + + SetCancelNil sets the value for Cancel to be an explicit nil + +### UnsetCancel +`func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) UnsetCancel()` + +UnsetCancel ensures that no value is present for Cancel, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/PATCHAvalaraAccountsAvalaraAccountId200ResponseDataAttributes.md b/api/docs/PATCHAvalaraAccountsAvalaraAccountId200ResponseDataAttributes.md index 92c27b5f..f8af2ac2 100644 --- a/api/docs/PATCHAvalaraAccountsAvalaraAccountId200ResponseDataAttributes.md +++ b/api/docs/PATCHAvalaraAccountsAvalaraAccountId200ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The tax calculator's internal name. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **Username** | Pointer to **interface{}** | The Avalara account username. | [optional] **Password** | Pointer to **interface{}** | The Avalara account password. | [optional] diff --git a/api/docs/PATCHAxerveGatewaysAxerveGatewayId200ResponseDataAttributes.md b/api/docs/PATCHAxerveGatewaysAxerveGatewayId200ResponseDataAttributes.md index 2b9d41e7..4970b6ad 100644 --- a/api/docs/PATCHAxerveGatewaysAxerveGatewayId200ResponseDataAttributes.md +++ b/api/docs/PATCHAxerveGatewaysAxerveGatewayId200ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The payment gateway's internal name. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **Login** | Pointer to **interface{}** | The merchant login code. | [optional] **ApiKey** | Pointer to **interface{}** | The gateway API key. | [optional] diff --git a/api/docs/PATCHAxervePaymentsAxervePaymentId200ResponseDataAttributes.md b/api/docs/PATCHAxervePaymentsAxervePaymentId200ResponseDataAttributes.md index 820ebf6d..16ca2b5f 100644 --- a/api/docs/PATCHAxervePaymentsAxervePaymentId200ResponseDataAttributes.md +++ b/api/docs/PATCHAxervePaymentsAxervePaymentId200ResponseDataAttributes.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **PaymentRequestData** | Pointer to **interface{}** | The Axerve payment request data, collected by client. | [optional] **Update** | Pointer to **interface{}** | Send this attribute if you want to update the payment with fresh order data. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md b/api/docs/PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md index 5306a20d..5fea885a 100644 --- a/api/docs/PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md +++ b/api/docs/PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHBingGeocodersBingGeocoderId200ResponseDataAttributes.md b/api/docs/PATCHBingGeocodersBingGeocoderId200ResponseDataAttributes.md index 39a96f6c..2de68cc2 100644 --- a/api/docs/PATCHBingGeocodersBingGeocoderId200ResponseDataAttributes.md +++ b/api/docs/PATCHBingGeocodersBingGeocoderId200ResponseDataAttributes.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The geocoder's internal name | [optional] +**Name** | Pointer to **interface{}** | The geocoder's internal name. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] -**Key** | Pointer to **interface{}** | The Bing Virtualearth key | [optional] +**Key** | Pointer to **interface{}** | The Bing Virtualearth key. | [optional] ## Methods diff --git a/api/docs/PATCHBraintreeGatewaysBraintreeGatewayId200ResponseDataAttributes.md b/api/docs/PATCHBraintreeGatewaysBraintreeGatewayId200ResponseDataAttributes.md index 0958d8d5..8765dee1 100644 --- a/api/docs/PATCHBraintreeGatewaysBraintreeGatewayId200ResponseDataAttributes.md +++ b/api/docs/PATCHBraintreeGatewaysBraintreeGatewayId200ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The payment gateway's internal name. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **MerchantAccountId** | Pointer to **interface{}** | The gateway merchant account ID. | [optional] **MerchantId** | Pointer to **interface{}** | The gateway merchant ID. | [optional] diff --git a/api/docs/PATCHBraintreePaymentsBraintreePaymentId200ResponseDataAttributes.md b/api/docs/PATCHBraintreePaymentsBraintreePaymentId200ResponseDataAttributes.md index fdfbfc0b..315b4414 100644 --- a/api/docs/PATCHBraintreePaymentsBraintreePaymentId200ResponseDataAttributes.md +++ b/api/docs/PATCHBraintreePaymentsBraintreePaymentId200ResponseDataAttributes.md @@ -7,9 +7,9 @@ Name | Type | Description | Notes **PaymentMethodNonce** | Pointer to **interface{}** | The Braintree payment method nonce. Sent by the Braintree JS SDK. | [optional] **PaymentId** | Pointer to **interface{}** | The Braintree payment ID used by local payment and sent by the Braintree JS SDK. | [optional] **Local** | Pointer to **interface{}** | Indicates if the payment is local, in such case Braintree will trigger a webhook call passing the \"payment_id\" and \"payment_method_nonce\" in order to complete the transaction. | [optional] -**Options** | Pointer to **interface{}** | Braintree payment options: 'customer_id' and 'payment_method_token' | [optional] +**Options** | Pointer to **interface{}** | Braintree payment options, 'customer_id' and 'payment_method_token'. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHBundlesBundleId200ResponseDataAttributes.md b/api/docs/PATCHBundlesBundleId200ResponseDataAttributes.md index 2bc4085d..331040eb 100644 --- a/api/docs/PATCHBundlesBundleId200ResponseDataAttributes.md +++ b/api/docs/PATCHBundlesBundleId200ResponseDataAttributes.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **ComputePriceAmount** | Pointer to **interface{}** | Send this attribute if you want to compute the price_amount_cents as the sum of the prices of the bundle SKUs for the market. | [optional] **ComputeCompareAtAmount** | Pointer to **interface{}** | Send this attribute if you want to compute the compare_at_amount_cents as the sum of the prices of the bundle SKUs for the market. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response.md b/api/docs/PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response.md new file mode 100644 index 00000000..0c02c382 --- /dev/null +++ b/api/docs/PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response.md @@ -0,0 +1,56 @@ +# PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData**](PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData.md) | | [optional] + +## Methods + +### NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response + +`func NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response() *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response` + +NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response instantiates a new PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseWithDefaults + +`func NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseWithDefaults() *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response` + +NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseWithDefaults instantiates a new PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response) GetData() PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response) GetDataOk() (*PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response) SetData(v PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData.md b/api/docs/PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData.md new file mode 100644 index 00000000..4c051884 --- /dev/null +++ b/api/docs/PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData.md @@ -0,0 +1,180 @@ +# PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes**](PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationships**](POSTBuyXPayYPromotions201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData + +`func NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData() *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData` + +NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData instantiates a new PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataWithDefaults + +`func NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataWithDefaults() *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData` + +NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataWithDefaults instantiates a new PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetAttributes() PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetAttributesOk() (*PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetAttributes(v PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes.md b/api/docs/PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes.md new file mode 100644 index 00000000..f305adf2 --- /dev/null +++ b/api/docs/PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes.md @@ -0,0 +1,570 @@ +# PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **interface{}** | The promotion's internal name. | [optional] +**CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] +**StartsAt** | Pointer to **interface{}** | The activation date/time of this promotion. | [optional] +**ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this promotion (must be after starts_at). | [optional] +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] +**X** | Pointer to **interface{}** | The quantity which defines the threshold for free items (works by multiple of x). | [optional] +**Y** | Pointer to **interface{}** | The quantity which defines how many items you get for free, with the formula x-y. | [optional] +**CheapestFree** | Pointer to **interface{}** | Indicates if the cheapest items are discounted, allowing all of the SKUs in the associated list to be eligible for counting. | [optional] + +## Methods + +### NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes + +`func NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes() *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes` + +NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes instantiates a new PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributesWithDefaults + +`func NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributesWithDefaults() *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes` + +NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributesWithDefaults instantiates a new PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + +### HasName + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCurrencyCode + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCurrencyCode() interface{}` + +GetCurrencyCode returns the CurrencyCode field if non-nil, zero value otherwise. + +### GetCurrencyCodeOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCurrencyCodeOk() (*interface{}, bool)` + +GetCurrencyCodeOk returns a tuple with the CurrencyCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrencyCode + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetCurrencyCode(v interface{})` + +SetCurrencyCode sets CurrencyCode field to given value. + +### HasCurrencyCode + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasCurrencyCode() bool` + +HasCurrencyCode returns a boolean if a field has been set. + +### SetCurrencyCodeNil + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetCurrencyCodeNil(b bool)` + + SetCurrencyCodeNil sets the value for CurrencyCode to be an explicit nil + +### UnsetCurrencyCode +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetCurrencyCode()` + +UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil +### GetStartsAt + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetStartsAt() interface{}` + +GetStartsAt returns the StartsAt field if non-nil, zero value otherwise. + +### GetStartsAtOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool)` + +GetStartsAtOk returns a tuple with the StartsAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartsAt + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetStartsAt(v interface{})` + +SetStartsAt sets StartsAt field to given value. + +### HasStartsAt + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasStartsAt() bool` + +HasStartsAt returns a boolean if a field has been set. + +### SetStartsAtNil + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetStartsAtNil(b bool)` + + SetStartsAtNil sets the value for StartsAt to be an explicit nil + +### UnsetStartsAt +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetStartsAt()` + +UnsetStartsAt ensures that no value is present for StartsAt, not even an explicit nil +### GetExpiresAt + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetExpiresAt() interface{}` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetExpiresAt(v interface{})` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetTotalUsageLimit + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetTotalUsageLimit() interface{}` + +GetTotalUsageLimit returns the TotalUsageLimit field if non-nil, zero value otherwise. + +### GetTotalUsageLimitOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetTotalUsageLimitOk() (*interface{}, bool)` + +GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalUsageLimit + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetTotalUsageLimit(v interface{})` + +SetTotalUsageLimit sets TotalUsageLimit field to given value. + +### HasTotalUsageLimit + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasTotalUsageLimit() bool` + +HasTotalUsageLimit returns a boolean if a field has been set. + +### SetTotalUsageLimitNil + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetTotalUsageLimitNil(b bool)` + + SetTotalUsageLimitNil sets the value for TotalUsageLimit to be an explicit nil + +### UnsetTotalUsageLimit +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetTotalUsageLimit()` + +UnsetTotalUsageLimit ensures that no value is present for TotalUsageLimit, not even an explicit nil +### GetDisable + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil +### GetReference + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil +### GetX + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetX() interface{}` + +GetX returns the X field if non-nil, zero value otherwise. + +### GetXOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetXOk() (*interface{}, bool)` + +GetXOk returns a tuple with the X field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetX + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetX(v interface{})` + +SetX sets X field to given value. + +### HasX + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasX() bool` + +HasX returns a boolean if a field has been set. + +### SetXNil + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetXNil(b bool)` + + SetXNil sets the value for X to be an explicit nil + +### UnsetX +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetX()` + +UnsetX ensures that no value is present for X, not even an explicit nil +### GetY + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetY() interface{}` + +GetY returns the Y field if non-nil, zero value otherwise. + +### GetYOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetYOk() (*interface{}, bool)` + +GetYOk returns a tuple with the Y field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetY + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetY(v interface{})` + +SetY sets Y field to given value. + +### HasY + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasY() bool` + +HasY returns a boolean if a field has been set. + +### SetYNil + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetYNil(b bool)` + + SetYNil sets the value for Y to be an explicit nil + +### UnsetY +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetY()` + +UnsetY ensures that no value is present for Y, not even an explicit nil +### GetCheapestFree + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCheapestFree() interface{}` + +GetCheapestFree returns the CheapestFree field if non-nil, zero value otherwise. + +### GetCheapestFreeOk + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCheapestFreeOk() (*interface{}, bool)` + +GetCheapestFreeOk returns a tuple with the CheapestFree field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCheapestFree + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetCheapestFree(v interface{})` + +SetCheapestFree sets CheapestFree field to given value. + +### HasCheapestFree + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasCheapestFree() bool` + +HasCheapestFree returns a boolean if a field has been set. + +### SetCheapestFreeNil + +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetCheapestFreeNil(b bool)` + + SetCheapestFreeNil sets the value for CheapestFree to be an explicit nil + +### UnsetCheapestFree +`func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnsetCheapestFree()` + +UnsetCheapestFree ensures that no value is present for CheapestFree, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHCapturesCaptureId200ResponseDataAttributes.md b/api/docs/PATCHCapturesCaptureId200ResponseDataAttributes.md index dd2678bc..018d3ec4 100644 --- a/api/docs/PATCHCapturesCaptureId200ResponseDataAttributes.md +++ b/api/docs/PATCHCapturesCaptureId200ResponseDataAttributes.md @@ -4,11 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Succeeded** | Pointer to **interface{}** | Indicates if the transaction is successful. | [optional] +**Forward** | Pointer to **interface{}** | Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **Refund** | Pointer to **interface{}** | Send this attribute if you want to create a refund for this capture. | [optional] -**RefundAmountCents** | Pointer to **interface{}** | The associated refund amount, in cents. | [optional] +**RefundAmountCents** | Pointer to **interface{}** | Send this attribute as a value in cents if you want to overwrite the amount to be refunded. | [optional] +**Cancel** | Pointer to **interface{}** | Send this attribute if you want to refund a succeeded capture of a pending order (which is left unpaid). | [optional] ## Methods @@ -29,6 +32,76 @@ NewPATCHCapturesCaptureId200ResponseDataAttributesWithDefaults instantiates a ne This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetSucceeded + +`func (o *PATCHCapturesCaptureId200ResponseDataAttributes) GetSucceeded() interface{}` + +GetSucceeded returns the Succeeded field if non-nil, zero value otherwise. + +### GetSucceededOk + +`func (o *PATCHCapturesCaptureId200ResponseDataAttributes) GetSucceededOk() (*interface{}, bool)` + +GetSucceededOk returns a tuple with the Succeeded field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSucceeded + +`func (o *PATCHCapturesCaptureId200ResponseDataAttributes) SetSucceeded(v interface{})` + +SetSucceeded sets Succeeded field to given value. + +### HasSucceeded + +`func (o *PATCHCapturesCaptureId200ResponseDataAttributes) HasSucceeded() bool` + +HasSucceeded returns a boolean if a field has been set. + +### SetSucceededNil + +`func (o *PATCHCapturesCaptureId200ResponseDataAttributes) SetSucceededNil(b bool)` + + SetSucceededNil sets the value for Succeeded to be an explicit nil + +### UnsetSucceeded +`func (o *PATCHCapturesCaptureId200ResponseDataAttributes) UnsetSucceeded()` + +UnsetSucceeded ensures that no value is present for Succeeded, not even an explicit nil +### GetForward + +`func (o *PATCHCapturesCaptureId200ResponseDataAttributes) GetForward() interface{}` + +GetForward returns the Forward field if non-nil, zero value otherwise. + +### GetForwardOk + +`func (o *PATCHCapturesCaptureId200ResponseDataAttributes) GetForwardOk() (*interface{}, bool)` + +GetForwardOk returns a tuple with the Forward field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetForward + +`func (o *PATCHCapturesCaptureId200ResponseDataAttributes) SetForward(v interface{})` + +SetForward sets Forward field to given value. + +### HasForward + +`func (o *PATCHCapturesCaptureId200ResponseDataAttributes) HasForward() bool` + +HasForward returns a boolean if a field has been set. + +### SetForwardNil + +`func (o *PATCHCapturesCaptureId200ResponseDataAttributes) SetForwardNil(b bool)` + + SetForwardNil sets the value for Forward to be an explicit nil + +### UnsetForward +`func (o *PATCHCapturesCaptureId200ResponseDataAttributes) UnsetForward()` + +UnsetForward ensures that no value is present for Forward, not even an explicit nil ### GetReference `func (o *PATCHCapturesCaptureId200ResponseDataAttributes) GetReference() interface{}` @@ -204,6 +277,41 @@ HasRefundAmountCents returns a boolean if a field has been set. `func (o *PATCHCapturesCaptureId200ResponseDataAttributes) UnsetRefundAmountCents()` UnsetRefundAmountCents ensures that no value is present for RefundAmountCents, not even an explicit nil +### GetCancel + +`func (o *PATCHCapturesCaptureId200ResponseDataAttributes) GetCancel() interface{}` + +GetCancel returns the Cancel field if non-nil, zero value otherwise. + +### GetCancelOk + +`func (o *PATCHCapturesCaptureId200ResponseDataAttributes) GetCancelOk() (*interface{}, bool)` + +GetCancelOk returns a tuple with the Cancel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCancel + +`func (o *PATCHCapturesCaptureId200ResponseDataAttributes) SetCancel(v interface{})` + +SetCancel sets Cancel field to given value. + +### HasCancel + +`func (o *PATCHCapturesCaptureId200ResponseDataAttributes) HasCancel() bool` + +HasCancel returns a boolean if a field has been set. + +### SetCancelNil + +`func (o *PATCHCapturesCaptureId200ResponseDataAttributes) SetCancelNil(b bool)` + + SetCancelNil sets the value for Cancel to be an explicit nil + +### UnsetCancel +`func (o *PATCHCapturesCaptureId200ResponseDataAttributes) UnsetCancel()` + +UnsetCancel ensures that no value is present for Cancel, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/PATCHCarrierAccountsCarrierAccountId200Response.md b/api/docs/PATCHCarrierAccountsCarrierAccountId200Response.md new file mode 100644 index 00000000..c7fecfb9 --- /dev/null +++ b/api/docs/PATCHCarrierAccountsCarrierAccountId200Response.md @@ -0,0 +1,56 @@ +# PATCHCarrierAccountsCarrierAccountId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**PATCHCarrierAccountsCarrierAccountId200ResponseData**](PATCHCarrierAccountsCarrierAccountId200ResponseData.md) | | [optional] + +## Methods + +### NewPATCHCarrierAccountsCarrierAccountId200Response + +`func NewPATCHCarrierAccountsCarrierAccountId200Response() *PATCHCarrierAccountsCarrierAccountId200Response` + +NewPATCHCarrierAccountsCarrierAccountId200Response instantiates a new PATCHCarrierAccountsCarrierAccountId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHCarrierAccountsCarrierAccountId200ResponseWithDefaults + +`func NewPATCHCarrierAccountsCarrierAccountId200ResponseWithDefaults() *PATCHCarrierAccountsCarrierAccountId200Response` + +NewPATCHCarrierAccountsCarrierAccountId200ResponseWithDefaults instantiates a new PATCHCarrierAccountsCarrierAccountId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PATCHCarrierAccountsCarrierAccountId200Response) GetData() PATCHCarrierAccountsCarrierAccountId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PATCHCarrierAccountsCarrierAccountId200Response) GetDataOk() (*PATCHCarrierAccountsCarrierAccountId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PATCHCarrierAccountsCarrierAccountId200Response) SetData(v PATCHCarrierAccountsCarrierAccountId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PATCHCarrierAccountsCarrierAccountId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHCarrierAccountsCarrierAccountId200ResponseData.md b/api/docs/PATCHCarrierAccountsCarrierAccountId200ResponseData.md new file mode 100644 index 00000000..b76bc4af --- /dev/null +++ b/api/docs/PATCHCarrierAccountsCarrierAccountId200ResponseData.md @@ -0,0 +1,180 @@ +# PATCHCarrierAccountsCarrierAccountId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes**](PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTBillingInfoValidationRules201ResponseDataRelationships**](POSTBillingInfoValidationRules201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPATCHCarrierAccountsCarrierAccountId200ResponseData + +`func NewPATCHCarrierAccountsCarrierAccountId200ResponseData() *PATCHCarrierAccountsCarrierAccountId200ResponseData` + +NewPATCHCarrierAccountsCarrierAccountId200ResponseData instantiates a new PATCHCarrierAccountsCarrierAccountId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHCarrierAccountsCarrierAccountId200ResponseDataWithDefaults + +`func NewPATCHCarrierAccountsCarrierAccountId200ResponseDataWithDefaults() *PATCHCarrierAccountsCarrierAccountId200ResponseData` + +NewPATCHCarrierAccountsCarrierAccountId200ResponseDataWithDefaults instantiates a new PATCHCarrierAccountsCarrierAccountId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetAttributes() PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetAttributesOk() (*PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) SetAttributes(v PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetRelationships() POSTBillingInfoValidationRules201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetRelationshipsOk() (*POSTBillingInfoValidationRules201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) SetRelationships(v POSTBillingInfoValidationRules201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes.md b/api/docs/PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes.md new file mode 100644 index 00000000..e60c4ca9 --- /dev/null +++ b/api/docs/PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes.md @@ -0,0 +1,246 @@ +# PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **interface{}** | The carrier account internal name. | [optional] +**EasypostType** | Pointer to **interface{}** | The Easypost service carrier type. | [optional] +**Credentials** | Pointer to **interface{}** | The Easypost carrier accounts credentials fields. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes + +`func NewPATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes() *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes` + +NewPATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes instantiates a new PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHCarrierAccountsCarrierAccountId200ResponseDataAttributesWithDefaults + +`func NewPATCHCarrierAccountsCarrierAccountId200ResponseDataAttributesWithDefaults() *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes` + +NewPATCHCarrierAccountsCarrierAccountId200ResponseDataAttributesWithDefaults instantiates a new PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + +### HasName + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetEasypostType + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetEasypostType() interface{}` + +GetEasypostType returns the EasypostType field if non-nil, zero value otherwise. + +### GetEasypostTypeOk + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetEasypostTypeOk() (*interface{}, bool)` + +GetEasypostTypeOk returns a tuple with the EasypostType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEasypostType + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetEasypostType(v interface{})` + +SetEasypostType sets EasypostType field to given value. + +### HasEasypostType + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) HasEasypostType() bool` + +HasEasypostType returns a boolean if a field has been set. + +### SetEasypostTypeNil + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetEasypostTypeNil(b bool)` + + SetEasypostTypeNil sets the value for EasypostType to be an explicit nil + +### UnsetEasypostType +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) UnsetEasypostType()` + +UnsetEasypostType ensures that no value is present for EasypostType, not even an explicit nil +### GetCredentials + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetCredentials() interface{}` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetCredentialsOk() (*interface{}, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetCredentials(v interface{})` + +SetCredentials sets Credentials field to given value. + +### HasCredentials + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) HasCredentials() bool` + +HasCredentials returns a boolean if a field has been set. + +### SetCredentialsNil + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetCredentialsNil(b bool)` + + SetCredentialsNil sets the value for Credentials to be an explicit nil + +### UnsetCredentials +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) UnsetCredentials()` + +UnsetCredentials ensures that no value is present for Credentials, not even an explicit nil +### GetReference + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHCheckoutComGatewaysCheckoutComGatewayId200ResponseDataAttributes.md b/api/docs/PATCHCheckoutComGatewaysCheckoutComGatewayId200ResponseDataAttributes.md index a5cb27ba..00f7662b 100644 --- a/api/docs/PATCHCheckoutComGatewaysCheckoutComGatewayId200ResponseDataAttributes.md +++ b/api/docs/PATCHCheckoutComGatewaysCheckoutComGatewayId200ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The payment gateway's internal name. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **SecretKey** | Pointer to **interface{}** | The gateway secret key. | [optional] **PublicKey** | Pointer to **interface{}** | The gateway public key. | [optional] diff --git a/api/docs/PATCHCheckoutComPaymentsCheckoutComPaymentId200ResponseDataAttributes.md b/api/docs/PATCHCheckoutComPaymentsCheckoutComPaymentId200ResponseDataAttributes.md index 1167bddb..4ebaba83 100644 --- a/api/docs/PATCHCheckoutComPaymentsCheckoutComPaymentId200ResponseDataAttributes.md +++ b/api/docs/PATCHCheckoutComPaymentsCheckoutComPaymentId200ResponseDataAttributes.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **Details** | Pointer to **interface{}** | Send this attribute if you want to send additional details the payment request (i.e. upon 3DS check). | [optional] **Refresh** | Pointer to **interface{}** | Send this attribute if you want to refresh all the pending transactions, can be used as webhooks fallback logic. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHCleanupsCleanupId200Response.md b/api/docs/PATCHCleanupsCleanupId200Response.md new file mode 100644 index 00000000..a64fdf14 --- /dev/null +++ b/api/docs/PATCHCleanupsCleanupId200Response.md @@ -0,0 +1,56 @@ +# PATCHCleanupsCleanupId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**PATCHCleanupsCleanupId200ResponseData**](PATCHCleanupsCleanupId200ResponseData.md) | | [optional] + +## Methods + +### NewPATCHCleanupsCleanupId200Response + +`func NewPATCHCleanupsCleanupId200Response() *PATCHCleanupsCleanupId200Response` + +NewPATCHCleanupsCleanupId200Response instantiates a new PATCHCleanupsCleanupId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHCleanupsCleanupId200ResponseWithDefaults + +`func NewPATCHCleanupsCleanupId200ResponseWithDefaults() *PATCHCleanupsCleanupId200Response` + +NewPATCHCleanupsCleanupId200ResponseWithDefaults instantiates a new PATCHCleanupsCleanupId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PATCHCleanupsCleanupId200Response) GetData() PATCHCleanupsCleanupId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PATCHCleanupsCleanupId200Response) GetDataOk() (*PATCHCleanupsCleanupId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PATCHCleanupsCleanupId200Response) SetData(v PATCHCleanupsCleanupId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PATCHCleanupsCleanupId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHCleanupsCleanupId200ResponseData.md b/api/docs/PATCHCleanupsCleanupId200ResponseData.md new file mode 100644 index 00000000..4848d09c --- /dev/null +++ b/api/docs/PATCHCleanupsCleanupId200ResponseData.md @@ -0,0 +1,180 @@ +# PATCHCleanupsCleanupId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes**](PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTCleanups201ResponseDataRelationships**](POSTCleanups201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPATCHCleanupsCleanupId200ResponseData + +`func NewPATCHCleanupsCleanupId200ResponseData() *PATCHCleanupsCleanupId200ResponseData` + +NewPATCHCleanupsCleanupId200ResponseData instantiates a new PATCHCleanupsCleanupId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHCleanupsCleanupId200ResponseDataWithDefaults + +`func NewPATCHCleanupsCleanupId200ResponseDataWithDefaults() *PATCHCleanupsCleanupId200ResponseData` + +NewPATCHCleanupsCleanupId200ResponseDataWithDefaults instantiates a new PATCHCleanupsCleanupId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PATCHCleanupsCleanupId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PATCHCleanupsCleanupId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PATCHCleanupsCleanupId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *PATCHCleanupsCleanupId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *PATCHCleanupsCleanupId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *PATCHCleanupsCleanupId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *PATCHCleanupsCleanupId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PATCHCleanupsCleanupId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PATCHCleanupsCleanupId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *PATCHCleanupsCleanupId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PATCHCleanupsCleanupId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PATCHCleanupsCleanupId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *PATCHCleanupsCleanupId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PATCHCleanupsCleanupId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PATCHCleanupsCleanupId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PATCHCleanupsCleanupId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *PATCHCleanupsCleanupId200ResponseData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PATCHCleanupsCleanupId200ResponseData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PATCHCleanupsCleanupId200ResponseData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *PATCHCleanupsCleanupId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *PATCHCleanupsCleanupId200ResponseData) GetRelationships() POSTCleanups201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PATCHCleanupsCleanupId200ResponseData) GetRelationshipsOk() (*POSTCleanups201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PATCHCleanupsCleanupId200ResponseData) SetRelationships(v POSTCleanups201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PATCHCleanupsCleanupId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHCouponRecipientsCouponRecipientId200ResponseDataAttributes.md b/api/docs/PATCHCouponRecipientsCouponRecipientId200ResponseDataAttributes.md index d749b991..f2194e68 100644 --- a/api/docs/PATCHCouponRecipientsCouponRecipientId200ResponseDataAttributes.md +++ b/api/docs/PATCHCouponRecipientsCouponRecipientId200ResponseDataAttributes.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Email** | Pointer to **interface{}** | The recipient email address | [optional] -**FirstName** | Pointer to **interface{}** | The recipient first name | [optional] -**LastName** | Pointer to **interface{}** | The recipient last name | [optional] +**Email** | Pointer to **interface{}** | The recipient email address. | [optional] +**FirstName** | Pointer to **interface{}** | The recipient first name. | [optional] +**LastName** | Pointer to **interface{}** | The recipient last name. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHCouponsCouponId200ResponseDataAttributes.md b/api/docs/PATCHCouponsCouponId200ResponseDataAttributes.md index 60c076e5..c591a420 100644 --- a/api/docs/PATCHCouponsCouponId200ResponseDataAttributes.md +++ b/api/docs/PATCHCouponsCouponId200ResponseDataAttributes.md @@ -8,8 +8,9 @@ Name | Type | Description | Notes **CustomerSingleUse** | Pointer to **interface{}** | Indicates if the coupon can be used just once per customer. | [optional] **UsageLimit** | Pointer to **interface{}** | The total number of times this coupon can be used. | [optional] **RecipientEmail** | Pointer to **interface{}** | The email address of the associated recipient. When creating or updating a coupon, this is a shortcut to find or create the associated recipient by email. | [optional] +**ExpiresAt** | Pointer to **interface{}** | Time at which the coupon will expire. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -171,6 +172,41 @@ HasRecipientEmail returns a boolean if a field has been set. `func (o *PATCHCouponsCouponId200ResponseDataAttributes) UnsetRecipientEmail()` UnsetRecipientEmail ensures that no value is present for RecipientEmail, not even an explicit nil +### GetExpiresAt + +`func (o *PATCHCouponsCouponId200ResponseDataAttributes) GetExpiresAt() interface{}` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *PATCHCouponsCouponId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *PATCHCouponsCouponId200ResponseDataAttributes) SetExpiresAt(v interface{})` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *PATCHCouponsCouponId200ResponseDataAttributes) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *PATCHCouponsCouponId200ResponseDataAttributes) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *PATCHCouponsCouponId200ResponseDataAttributes) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil ### GetReference `func (o *PATCHCouponsCouponId200ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/PATCHCustomPromotionRulesCustomPromotionRuleId200Response.md b/api/docs/PATCHCustomPromotionRulesCustomPromotionRuleId200Response.md new file mode 100644 index 00000000..1bcd886a --- /dev/null +++ b/api/docs/PATCHCustomPromotionRulesCustomPromotionRuleId200Response.md @@ -0,0 +1,56 @@ +# PATCHCustomPromotionRulesCustomPromotionRuleId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData**](PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData.md) | | [optional] + +## Methods + +### NewPATCHCustomPromotionRulesCustomPromotionRuleId200Response + +`func NewPATCHCustomPromotionRulesCustomPromotionRuleId200Response() *PATCHCustomPromotionRulesCustomPromotionRuleId200Response` + +NewPATCHCustomPromotionRulesCustomPromotionRuleId200Response instantiates a new PATCHCustomPromotionRulesCustomPromotionRuleId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseWithDefaults + +`func NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseWithDefaults() *PATCHCustomPromotionRulesCustomPromotionRuleId200Response` + +NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseWithDefaults instantiates a new PATCHCustomPromotionRulesCustomPromotionRuleId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200Response) GetData() PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200Response) GetDataOk() (*PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200Response) SetData(v PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData.md b/api/docs/PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData.md new file mode 100644 index 00000000..ca059f62 --- /dev/null +++ b/api/docs/PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData.md @@ -0,0 +1,180 @@ +# PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes**](PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTCustomPromotionRules201ResponseDataRelationships**](POSTCustomPromotionRules201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData + +`func NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData() *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData` + +NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData instantiates a new PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataWithDefaults + +`func NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataWithDefaults() *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData` + +NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataWithDefaults instantiates a new PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetAttributes() PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetAttributesOk() (*PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetAttributes(v PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetRelationships() POSTCustomPromotionRules201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetRelationshipsOk() (*POSTCustomPromotionRules201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetRelationships(v POSTCustomPromotionRules201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes.md b/api/docs/PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes.md new file mode 100644 index 00000000..686b918e --- /dev/null +++ b/api/docs/PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes.md @@ -0,0 +1,174 @@ +# PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] +**Filters** | Pointer to **interface{}** | The filters used to trigger promotion on the matching order and its relationships attributes. | [optional] + +## Methods + +### NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes + +`func NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes() *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes` + +NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes instantiates a new PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributesWithDefaults + +`func NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributesWithDefaults() *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes` + +NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributesWithDefaults instantiates a new PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetReference + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil +### GetFilters + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetFilters() interface{}` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetFiltersOk() (*interface{}, bool)` + +GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilters + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetFilters(v interface{})` + +SetFilters sets Filters field to given value. + +### HasFilters + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasFilters() bool` + +HasFilters returns a boolean if a field has been set. + +### SetFiltersNil + +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetFiltersNil(b bool)` + + SetFiltersNil sets the value for Filters to be an explicit nil + +### UnsetFilters +`func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) UnsetFilters()` + +UnsetFilters ensures that no value is present for Filters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes.md b/api/docs/PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes.md index 8be458c8..04e0fead 100644 --- a/api/docs/PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes.md +++ b/api/docs/PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes.md @@ -4,9 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The customer group's internal name | [optional] +**Name** | Pointer to **interface{}** | The customer group's internal name. | [optional] +**Code** | Pointer to **interface{}** | A string that you can use to identify the customer group (must be unique within the environment). | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -63,6 +64,41 @@ HasName returns a boolean if a field has been set. `func (o *PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCode + +`func (o *PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes) GetCode() interface{}` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes) SetCode(v interface{})` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### SetCodeNil + +`func (o *PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil ### GetReference `func (o *PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/PATCHCustomerPasswordResetsCustomerPasswordResetId200ResponseDataAttributes.md b/api/docs/PATCHCustomerPasswordResetsCustomerPasswordResetId200ResponseDataAttributes.md index 4744f804..a5f9286a 100644 --- a/api/docs/PATCHCustomerPasswordResetsCustomerPasswordResetId200ResponseDataAttributes.md +++ b/api/docs/PATCHCustomerPasswordResetsCustomerPasswordResetId200ResponseDataAttributes.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **CustomerPassword** | Pointer to **interface{}** | The customer new password. This will be accepted only if a valid '_reset_password_token' is sent with the request. | [optional] **ResetPasswordToken** | Pointer to **interface{}** | Send the 'reset_password_token' that you got on create when updating the customer password. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData.md b/api/docs/PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData.md index eaf2b950..7a005b39 100644 --- a/api/docs/PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData.md +++ b/api/docs/PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | Pointer to **interface{}** | The resource's id | [optional] **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] -**Attributes** | Pointer to [**PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes**](PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md) | | [optional] +**Attributes** | Pointer to [**PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes**](PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes.md) | | [optional] **Relationships** | Pointer to [**POSTCustomerPaymentSources201ResponseDataRelationships**](POSTCustomerPaymentSources201ResponseDataRelationships.md) | | [optional] ## Methods @@ -126,20 +126,20 @@ HasLinks returns a boolean if a field has been set. ### GetAttributes -`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes` +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData) GetAttributes() PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool)` +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData) GetAttributesOk() (*PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes)` +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData) SetAttributes(v PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes)` SetAttributes sets Attributes field to given value. diff --git a/api/docs/PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes.md b/api/docs/PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes.md new file mode 100644 index 00000000..087bd41b --- /dev/null +++ b/api/docs/PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes.md @@ -0,0 +1,210 @@ +# PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomerToken** | Pointer to **interface{}** | Returns the customer gateway token stored in the gateway. | [optional] +**PaymentSourceToken** | Pointer to **interface{}** | Returns the payment source token stored in the gateway. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes + +`func NewPATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes() *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes` + +NewPATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes instantiates a new PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributesWithDefaults + +`func NewPATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributesWithDefaults() *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes` + +NewPATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributesWithDefaults instantiates a new PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCustomerToken + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetCustomerToken() interface{}` + +GetCustomerToken returns the CustomerToken field if non-nil, zero value otherwise. + +### GetCustomerTokenOk + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetCustomerTokenOk() (*interface{}, bool)` + +GetCustomerTokenOk returns a tuple with the CustomerToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomerToken + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) SetCustomerToken(v interface{})` + +SetCustomerToken sets CustomerToken field to given value. + +### HasCustomerToken + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) HasCustomerToken() bool` + +HasCustomerToken returns a boolean if a field has been set. + +### SetCustomerTokenNil + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) SetCustomerTokenNil(b bool)` + + SetCustomerTokenNil sets the value for CustomerToken to be an explicit nil + +### UnsetCustomerToken +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) UnsetCustomerToken()` + +UnsetCustomerToken ensures that no value is present for CustomerToken, not even an explicit nil +### GetPaymentSourceToken + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetPaymentSourceToken() interface{}` + +GetPaymentSourceToken returns the PaymentSourceToken field if non-nil, zero value otherwise. + +### GetPaymentSourceTokenOk + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetPaymentSourceTokenOk() (*interface{}, bool)` + +GetPaymentSourceTokenOk returns a tuple with the PaymentSourceToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentSourceToken + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) SetPaymentSourceToken(v interface{})` + +SetPaymentSourceToken sets PaymentSourceToken field to given value. + +### HasPaymentSourceToken + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) HasPaymentSourceToken() bool` + +HasPaymentSourceToken returns a boolean if a field has been set. + +### SetPaymentSourceTokenNil + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) SetPaymentSourceTokenNil(b bool)` + + SetPaymentSourceTokenNil sets the value for PaymentSourceToken to be an explicit nil + +### UnsetPaymentSourceToken +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) UnsetPaymentSourceToken()` + +UnsetPaymentSourceToken ensures that no value is present for PaymentSourceToken, not even an explicit nil +### GetReference + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData.md b/api/docs/PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData.md index 8667849c..1c8e6834 100644 --- a/api/docs/PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData.md +++ b/api/docs/PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Id** | Pointer to **interface{}** | The resource's id | [optional] **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] -**Attributes** | Pointer to [**PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes**](PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTCustomerPasswordResets201ResponseDataRelationships**](POSTCustomerPasswordResets201ResponseDataRelationships.md) | | [optional] +**Attributes** | Pointer to [**PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes**](PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTCustomerSubscriptions201ResponseDataRelationships**](POSTCustomerSubscriptions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -126,20 +126,20 @@ HasLinks returns a boolean if a field has been set. ### GetAttributes -`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes` +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetAttributes() PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool)` +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetAttributesOk() (*PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes)` +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) SetAttributes(v PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes)` SetAttributes sets Attributes field to given value. @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetRelationships() POSTCustomerPasswordResets201ResponseDataRelationships` +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetRelationships() POSTCustomerSubscriptions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetRelationshipsOk() (*POSTCustomerPasswordResets201ResponseDataRelationships, bool)` +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetRelationshipsOk() (*POSTCustomerSubscriptions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) SetRelationships(v POSTCustomerPasswordResets201ResponseDataRelationships)` +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) SetRelationships(v POSTCustomerSubscriptions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes.md b/api/docs/PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes.md new file mode 100644 index 00000000..1bba5f7c --- /dev/null +++ b/api/docs/PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes.md @@ -0,0 +1,138 @@ +# PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes + +`func NewPATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes() *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes` + +NewPATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes instantiates a new PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributesWithDefaults + +`func NewPATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributesWithDefaults() *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes` + +NewPATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributesWithDefaults instantiates a new PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetReference + +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHCustomersCustomerId200ResponseDataAttributes.md b/api/docs/PATCHCustomersCustomerId200ResponseDataAttributes.md index d1938330..f37032d1 100644 --- a/api/docs/PATCHCustomersCustomerId200ResponseDataAttributes.md +++ b/api/docs/PATCHCustomersCustomerId200ResponseDataAttributes.md @@ -4,10 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Email** | Pointer to **interface{}** | The customer's email address | [optional] +**Email** | Pointer to **interface{}** | The customer's email address. | [optional] **Password** | Pointer to **interface{}** | The customer's password. Initiate a customer password reset flow if you need to change it. | [optional] +**ShopperReference** | Pointer to **interface{}** | A reference to uniquely identify the shopper during payment sessions. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -99,6 +100,41 @@ HasPassword returns a boolean if a field has been set. `func (o *PATCHCustomersCustomerId200ResponseDataAttributes) UnsetPassword()` UnsetPassword ensures that no value is present for Password, not even an explicit nil +### GetShopperReference + +`func (o *PATCHCustomersCustomerId200ResponseDataAttributes) GetShopperReference() interface{}` + +GetShopperReference returns the ShopperReference field if non-nil, zero value otherwise. + +### GetShopperReferenceOk + +`func (o *PATCHCustomersCustomerId200ResponseDataAttributes) GetShopperReferenceOk() (*interface{}, bool)` + +GetShopperReferenceOk returns a tuple with the ShopperReference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShopperReference + +`func (o *PATCHCustomersCustomerId200ResponseDataAttributes) SetShopperReference(v interface{})` + +SetShopperReference sets ShopperReference field to given value. + +### HasShopperReference + +`func (o *PATCHCustomersCustomerId200ResponseDataAttributes) HasShopperReference() bool` + +HasShopperReference returns a boolean if a field has been set. + +### SetShopperReferenceNil + +`func (o *PATCHCustomersCustomerId200ResponseDataAttributes) SetShopperReferenceNil(b bool)` + + SetShopperReferenceNil sets the value for ShopperReference to be an explicit nil + +### UnsetShopperReference +`func (o *PATCHCustomersCustomerId200ResponseDataAttributes) UnsetShopperReference()` + +UnsetShopperReference ensures that no value is present for ShopperReference, not even an explicit nil ### GetReference `func (o *PATCHCustomersCustomerId200ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/PATCHDeliveryLeadTimesDeliveryLeadTimeId200ResponseDataAttributes.md b/api/docs/PATCHDeliveryLeadTimesDeliveryLeadTimeId200ResponseDataAttributes.md index 35076de3..0fbf093e 100644 --- a/api/docs/PATCHDeliveryLeadTimesDeliveryLeadTimeId200ResponseDataAttributes.md +++ b/api/docs/PATCHDeliveryLeadTimesDeliveryLeadTimeId200ResponseDataAttributes.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **MinHours** | Pointer to **interface{}** | The delivery lead minimum time (in hours) when shipping from the associated stock location with the associated shipping method. | [optional] **MaxHours** | Pointer to **interface{}** | The delivery lead maximun time (in hours) when shipping from the associated stock location with the associated shipping method. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHEventsEventId200Response.md b/api/docs/PATCHEventsEventId200Response.md new file mode 100644 index 00000000..0bd4431b --- /dev/null +++ b/api/docs/PATCHEventsEventId200Response.md @@ -0,0 +1,56 @@ +# PATCHEventsEventId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**PATCHEventsEventId200ResponseData**](PATCHEventsEventId200ResponseData.md) | | [optional] + +## Methods + +### NewPATCHEventsEventId200Response + +`func NewPATCHEventsEventId200Response() *PATCHEventsEventId200Response` + +NewPATCHEventsEventId200Response instantiates a new PATCHEventsEventId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHEventsEventId200ResponseWithDefaults + +`func NewPATCHEventsEventId200ResponseWithDefaults() *PATCHEventsEventId200Response` + +NewPATCHEventsEventId200ResponseWithDefaults instantiates a new PATCHEventsEventId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PATCHEventsEventId200Response) GetData() PATCHEventsEventId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PATCHEventsEventId200Response) GetDataOk() (*PATCHEventsEventId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PATCHEventsEventId200Response) SetData(v PATCHEventsEventId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PATCHEventsEventId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHEventsEventId200ResponseData.md b/api/docs/PATCHEventsEventId200ResponseData.md new file mode 100644 index 00000000..8a8811f1 --- /dev/null +++ b/api/docs/PATCHEventsEventId200ResponseData.md @@ -0,0 +1,180 @@ +# PATCHEventsEventId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**PATCHEventsEventId200ResponseDataAttributes**](PATCHEventsEventId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**GETEventsEventId200ResponseDataRelationships**](GETEventsEventId200ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPATCHEventsEventId200ResponseData + +`func NewPATCHEventsEventId200ResponseData() *PATCHEventsEventId200ResponseData` + +NewPATCHEventsEventId200ResponseData instantiates a new PATCHEventsEventId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHEventsEventId200ResponseDataWithDefaults + +`func NewPATCHEventsEventId200ResponseDataWithDefaults() *PATCHEventsEventId200ResponseData` + +NewPATCHEventsEventId200ResponseDataWithDefaults instantiates a new PATCHEventsEventId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PATCHEventsEventId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PATCHEventsEventId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PATCHEventsEventId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *PATCHEventsEventId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *PATCHEventsEventId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *PATCHEventsEventId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *PATCHEventsEventId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PATCHEventsEventId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PATCHEventsEventId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *PATCHEventsEventId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PATCHEventsEventId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PATCHEventsEventId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *PATCHEventsEventId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PATCHEventsEventId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PATCHEventsEventId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PATCHEventsEventId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *PATCHEventsEventId200ResponseData) GetAttributes() PATCHEventsEventId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PATCHEventsEventId200ResponseData) GetAttributesOk() (*PATCHEventsEventId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PATCHEventsEventId200ResponseData) SetAttributes(v PATCHEventsEventId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *PATCHEventsEventId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *PATCHEventsEventId200ResponseData) GetRelationships() GETEventsEventId200ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PATCHEventsEventId200ResponseData) GetRelationshipsOk() (*GETEventsEventId200ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PATCHEventsEventId200ResponseData) SetRelationships(v GETEventsEventId200ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PATCHEventsEventId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHEventsEventId200ResponseDataAttributes.md b/api/docs/PATCHEventsEventId200ResponseDataAttributes.md new file mode 100644 index 00000000..01a509c5 --- /dev/null +++ b/api/docs/PATCHEventsEventId200ResponseDataAttributes.md @@ -0,0 +1,174 @@ +# PATCHEventsEventId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Trigger** | Pointer to **interface{}** | Send this attribute if you want to force webhooks execution for this event. Cannot be passed by sales channels. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPATCHEventsEventId200ResponseDataAttributes + +`func NewPATCHEventsEventId200ResponseDataAttributes() *PATCHEventsEventId200ResponseDataAttributes` + +NewPATCHEventsEventId200ResponseDataAttributes instantiates a new PATCHEventsEventId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHEventsEventId200ResponseDataAttributesWithDefaults + +`func NewPATCHEventsEventId200ResponseDataAttributesWithDefaults() *PATCHEventsEventId200ResponseDataAttributes` + +NewPATCHEventsEventId200ResponseDataAttributesWithDefaults instantiates a new PATCHEventsEventId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTrigger + +`func (o *PATCHEventsEventId200ResponseDataAttributes) GetTrigger() interface{}` + +GetTrigger returns the Trigger field if non-nil, zero value otherwise. + +### GetTriggerOk + +`func (o *PATCHEventsEventId200ResponseDataAttributes) GetTriggerOk() (*interface{}, bool)` + +GetTriggerOk returns a tuple with the Trigger field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTrigger + +`func (o *PATCHEventsEventId200ResponseDataAttributes) SetTrigger(v interface{})` + +SetTrigger sets Trigger field to given value. + +### HasTrigger + +`func (o *PATCHEventsEventId200ResponseDataAttributes) HasTrigger() bool` + +HasTrigger returns a boolean if a field has been set. + +### SetTriggerNil + +`func (o *PATCHEventsEventId200ResponseDataAttributes) SetTriggerNil(b bool)` + + SetTriggerNil sets the value for Trigger to be an explicit nil + +### UnsetTrigger +`func (o *PATCHEventsEventId200ResponseDataAttributes) UnsetTrigger()` + +UnsetTrigger ensures that no value is present for Trigger, not even an explicit nil +### GetReference + +`func (o *PATCHEventsEventId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *PATCHEventsEventId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *PATCHEventsEventId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *PATCHEventsEventId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *PATCHEventsEventId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *PATCHEventsEventId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *PATCHEventsEventId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *PATCHEventsEventId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *PATCHEventsEventId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *PATCHEventsEventId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *PATCHEventsEventId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *PATCHEventsEventId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *PATCHEventsEventId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *PATCHEventsEventId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *PATCHEventsEventId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *PATCHEventsEventId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *PATCHEventsEventId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *PATCHEventsEventId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHExportsExportId200Response.md b/api/docs/PATCHExportsExportId200Response.md new file mode 100644 index 00000000..84222d81 --- /dev/null +++ b/api/docs/PATCHExportsExportId200Response.md @@ -0,0 +1,56 @@ +# PATCHExportsExportId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**PATCHExportsExportId200ResponseData**](PATCHExportsExportId200ResponseData.md) | | [optional] + +## Methods + +### NewPATCHExportsExportId200Response + +`func NewPATCHExportsExportId200Response() *PATCHExportsExportId200Response` + +NewPATCHExportsExportId200Response instantiates a new PATCHExportsExportId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHExportsExportId200ResponseWithDefaults + +`func NewPATCHExportsExportId200ResponseWithDefaults() *PATCHExportsExportId200Response` + +NewPATCHExportsExportId200ResponseWithDefaults instantiates a new PATCHExportsExportId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PATCHExportsExportId200Response) GetData() PATCHExportsExportId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PATCHExportsExportId200Response) GetDataOk() (*PATCHExportsExportId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PATCHExportsExportId200Response) SetData(v PATCHExportsExportId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PATCHExportsExportId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHExportsExportId200ResponseData.md b/api/docs/PATCHExportsExportId200ResponseData.md new file mode 100644 index 00000000..f0e7d707 --- /dev/null +++ b/api/docs/PATCHExportsExportId200ResponseData.md @@ -0,0 +1,180 @@ +# PATCHExportsExportId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes**](PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTExports201ResponseDataRelationships**](POSTExports201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPATCHExportsExportId200ResponseData + +`func NewPATCHExportsExportId200ResponseData() *PATCHExportsExportId200ResponseData` + +NewPATCHExportsExportId200ResponseData instantiates a new PATCHExportsExportId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHExportsExportId200ResponseDataWithDefaults + +`func NewPATCHExportsExportId200ResponseDataWithDefaults() *PATCHExportsExportId200ResponseData` + +NewPATCHExportsExportId200ResponseDataWithDefaults instantiates a new PATCHExportsExportId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PATCHExportsExportId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PATCHExportsExportId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PATCHExportsExportId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *PATCHExportsExportId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *PATCHExportsExportId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *PATCHExportsExportId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *PATCHExportsExportId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PATCHExportsExportId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PATCHExportsExportId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *PATCHExportsExportId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PATCHExportsExportId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PATCHExportsExportId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *PATCHExportsExportId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PATCHExportsExportId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PATCHExportsExportId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PATCHExportsExportId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *PATCHExportsExportId200ResponseData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PATCHExportsExportId200ResponseData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PATCHExportsExportId200ResponseData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *PATCHExportsExportId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *PATCHExportsExportId200ResponseData) GetRelationships() POSTExports201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PATCHExportsExportId200ResponseData) GetRelationshipsOk() (*POSTExports201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PATCHExportsExportId200ResponseData) SetRelationships(v POSTExports201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PATCHExportsExportId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes.md b/api/docs/PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes.md index 630a7a9d..aa0efd0f 100644 --- a/api/docs/PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes.md +++ b/api/docs/PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes.md @@ -6,13 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The payment gateway's internal name. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **AuthorizeUrl** | Pointer to **interface{}** | The endpoint used by the external gateway to authorize payments. | [optional] **CaptureUrl** | Pointer to **interface{}** | The endpoint used by the external gateway to capture payments. | [optional] **VoidUrl** | Pointer to **interface{}** | The endpoint used by the external gateway to void payments. | [optional] **RefundUrl** | Pointer to **interface{}** | The endpoint used by the external gateway to refund payments. | [optional] **TokenUrl** | Pointer to **interface{}** | The endpoint used by the external gateway to create a customer payment token. | [optional] +**ResetCircuit** | Pointer to **interface{}** | Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. | [optional] ## Methods @@ -348,6 +349,41 @@ HasTokenUrl returns a boolean if a field has been set. `func (o *PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes) UnsetTokenUrl()` UnsetTokenUrl ensures that no value is present for TokenUrl, not even an explicit nil +### GetResetCircuit + +`func (o *PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetResetCircuit() interface{}` + +GetResetCircuit returns the ResetCircuit field if non-nil, zero value otherwise. + +### GetResetCircuitOk + +`func (o *PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetResetCircuitOk() (*interface{}, bool)` + +GetResetCircuitOk returns a tuple with the ResetCircuit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResetCircuit + +`func (o *PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes) SetResetCircuit(v interface{})` + +SetResetCircuit sets ResetCircuit field to given value. + +### HasResetCircuit + +`func (o *PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes) HasResetCircuit() bool` + +HasResetCircuit returns a boolean if a field has been set. + +### SetResetCircuitNil + +`func (o *PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes) SetResetCircuitNil(b bool)` + + SetResetCircuitNil sets the value for ResetCircuit to be an explicit nil + +### UnsetResetCircuit +`func (o *PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes) UnsetResetCircuit()` + +UnsetResetCircuit ensures that no value is present for ResetCircuit, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/PATCHExternalPaymentsExternalPaymentId200ResponseDataAttributes.md b/api/docs/PATCHExternalPaymentsExternalPaymentId200ResponseDataAttributes.md index 34c53f5b..b9af19fb 100644 --- a/api/docs/PATCHExternalPaymentsExternalPaymentId200ResponseDataAttributes.md +++ b/api/docs/PATCHExternalPaymentsExternalPaymentId200ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Options** | Pointer to **interface{}** | External payment options. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHExternalPromotionsExternalPromotionId200ResponseData.md b/api/docs/PATCHExternalPromotionsExternalPromotionId200ResponseData.md index 029d03eb..83ba72cf 100644 --- a/api/docs/PATCHExternalPromotionsExternalPromotionId200ResponseData.md +++ b/api/docs/PATCHExternalPromotionsExternalPromotionId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes**](PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTExternalPromotions201ResponseDataRelationships**](POSTExternalPromotions201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationships**](POSTBuyXPayYPromotions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships` +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool)` +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships)` +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes.md b/api/docs/PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes.md index a0e0d393..e5255ad8 100644 --- a/api/docs/PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes.md +++ b/api/docs/PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes.md @@ -6,13 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The promotion's internal name. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] **StartsAt** | Pointer to **interface{}** | The activation date/time of this promotion. | [optional] **ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this promotion (must be after starts_at). | [optional] -**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. | [optional] +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **PromotionUrl** | Pointer to **interface{}** | The URL to the service that will compute the discount. | [optional] +**ResetCircuit** | Pointer to **interface{}** | Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. | [optional] ## Methods @@ -103,6 +108,76 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetStartsAt `func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetStartsAt() interface{}` @@ -208,6 +283,76 @@ HasTotalUsageLimit returns a boolean if a field has been set. `func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) UnsetTotalUsageLimit()` UnsetTotalUsageLimit ensures that no value is present for TotalUsageLimit, not even an explicit nil +### GetDisable + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil ### GetReference `func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetReference() interface{}` @@ -348,6 +493,41 @@ HasPromotionUrl returns a boolean if a field has been set. `func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) UnsetPromotionUrl()` UnsetPromotionUrl ensures that no value is present for PromotionUrl, not even an explicit nil +### GetResetCircuit + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetResetCircuit() interface{}` + +GetResetCircuit returns the ResetCircuit field if non-nil, zero value otherwise. + +### GetResetCircuitOk + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetResetCircuitOk() (*interface{}, bool)` + +GetResetCircuitOk returns a tuple with the ResetCircuit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResetCircuit + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetResetCircuit(v interface{})` + +SetResetCircuit sets ResetCircuit field to given value. + +### HasResetCircuit + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasResetCircuit() bool` + +HasResetCircuit returns a boolean if a field has been set. + +### SetResetCircuitNil + +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetResetCircuitNil(b bool)` + + SetResetCircuitNil sets the value for ResetCircuit to be an explicit nil + +### UnsetResetCircuit +`func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) UnsetResetCircuit()` + +UnsetResetCircuit ensures that no value is present for ResetCircuit, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes.md b/api/docs/PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes.md index d65867e4..27a444ef 100644 --- a/api/docs/PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes.md +++ b/api/docs/PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The tax calculator's internal name. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **TaxCalculatorUrl** | Pointer to **interface{}** | The URL to the service that will compute the taxes. | [optional] +**ResetCircuit** | Pointer to **interface{}** | Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. | [optional] ## Methods @@ -204,6 +205,41 @@ HasTaxCalculatorUrl returns a boolean if a field has been set. `func (o *PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) UnsetTaxCalculatorUrl()` UnsetTaxCalculatorUrl ensures that no value is present for TaxCalculatorUrl, not even an explicit nil +### GetResetCircuit + +`func (o *PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetResetCircuit() interface{}` + +GetResetCircuit returns the ResetCircuit field if non-nil, zero value otherwise. + +### GetResetCircuitOk + +`func (o *PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetResetCircuitOk() (*interface{}, bool)` + +GetResetCircuitOk returns a tuple with the ResetCircuit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResetCircuit + +`func (o *PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) SetResetCircuit(v interface{})` + +SetResetCircuit sets ResetCircuit field to given value. + +### HasResetCircuit + +`func (o *PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) HasResetCircuit() bool` + +HasResetCircuit returns a boolean if a field has been set. + +### SetResetCircuitNil + +`func (o *PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) SetResetCircuitNil(b bool)` + + SetResetCircuitNil sets the value for ResetCircuit to be an explicit nil + +### UnsetResetCircuit +`func (o *PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) UnsetResetCircuit()` + +UnsetResetCircuit ensures that no value is present for ResetCircuit, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData.md b/api/docs/PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData.md index 676f12d5..4bb91c7f 100644 --- a/api/docs/PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData.md +++ b/api/docs/PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes**](PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTExternalPromotions201ResponseDataRelationships**](POSTExternalPromotions201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationships**](POSTBuyXPayYPromotions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships` +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool)` +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships)` +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes.md b/api/docs/PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes.md index 95d08508..7fd64a73 100644 --- a/api/docs/PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes.md +++ b/api/docs/PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes.md @@ -6,13 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The promotion's internal name. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] **StartsAt** | Pointer to **interface{}** | The activation date/time of this promotion. | [optional] **ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this promotion (must be after starts_at). | [optional] -**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. | [optional] +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] -**FixedAmountCents** | Pointer to **interface{}** | The discount fixed amount to be applied, in cents | [optional] +**FixedAmountCents** | Pointer to **interface{}** | The discount fixed amount to be applied, in cents. | [optional] ## Methods @@ -103,6 +107,76 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetStartsAt `func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetStartsAt() interface{}` @@ -208,6 +282,76 @@ HasTotalUsageLimit returns a boolean if a field has been set. `func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) UnsetTotalUsageLimit()` UnsetTotalUsageLimit ensures that no value is present for TotalUsageLimit, not even an explicit nil +### GetDisable + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil ### GetReference `func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData.md b/api/docs/PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData.md index 9b5c223c..c6502730 100644 --- a/api/docs/PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData.md +++ b/api/docs/PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes**](PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTFixedPricePromotions201ResponseDataRelationships**](POSTFixedPricePromotions201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationships**](POSTBuyXPayYPromotions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData) GetRelationships() POSTFixedPricePromotions201ResponseDataRelationships` +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData) GetRelationshipsOk() (*POSTFixedPricePromotions201ResponseDataRelationships, bool)` +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData) SetRelationships(v POSTFixedPricePromotions201ResponseDataRelationships)` +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes.md b/api/docs/PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes.md index f775c314..edfc178f 100644 --- a/api/docs/PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes.md +++ b/api/docs/PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes.md @@ -6,13 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The promotion's internal name. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] **StartsAt** | Pointer to **interface{}** | The activation date/time of this promotion. | [optional] **ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this promotion (must be after starts_at). | [optional] -**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. | [optional] +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] -**FixedAmountCents** | Pointer to **interface{}** | The price fixed amount to be applied on matching SKUs, in cents | [optional] +**FixedAmountCents** | Pointer to **interface{}** | The price fixed amount to be applied on matching SKUs, in cents. | [optional] ## Methods @@ -103,6 +107,76 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetStartsAt `func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetStartsAt() interface{}` @@ -208,6 +282,76 @@ HasTotalUsageLimit returns a boolean if a field has been set. `func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) UnsetTotalUsageLimit()` UnsetTotalUsageLimit ensures that no value is present for TotalUsageLimit, not even an explicit nil +### GetDisable + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil ### GetReference `func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/PATCHFlexPromotionsFlexPromotionId200Response.md b/api/docs/PATCHFlexPromotionsFlexPromotionId200Response.md new file mode 100644 index 00000000..5385a3ee --- /dev/null +++ b/api/docs/PATCHFlexPromotionsFlexPromotionId200Response.md @@ -0,0 +1,56 @@ +# PATCHFlexPromotionsFlexPromotionId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**PATCHFlexPromotionsFlexPromotionId200ResponseData**](PATCHFlexPromotionsFlexPromotionId200ResponseData.md) | | [optional] + +## Methods + +### NewPATCHFlexPromotionsFlexPromotionId200Response + +`func NewPATCHFlexPromotionsFlexPromotionId200Response() *PATCHFlexPromotionsFlexPromotionId200Response` + +NewPATCHFlexPromotionsFlexPromotionId200Response instantiates a new PATCHFlexPromotionsFlexPromotionId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHFlexPromotionsFlexPromotionId200ResponseWithDefaults + +`func NewPATCHFlexPromotionsFlexPromotionId200ResponseWithDefaults() *PATCHFlexPromotionsFlexPromotionId200Response` + +NewPATCHFlexPromotionsFlexPromotionId200ResponseWithDefaults instantiates a new PATCHFlexPromotionsFlexPromotionId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PATCHFlexPromotionsFlexPromotionId200Response) GetData() PATCHFlexPromotionsFlexPromotionId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PATCHFlexPromotionsFlexPromotionId200Response) GetDataOk() (*PATCHFlexPromotionsFlexPromotionId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PATCHFlexPromotionsFlexPromotionId200Response) SetData(v PATCHFlexPromotionsFlexPromotionId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PATCHFlexPromotionsFlexPromotionId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHFlexPromotionsFlexPromotionId200ResponseData.md b/api/docs/PATCHFlexPromotionsFlexPromotionId200ResponseData.md new file mode 100644 index 00000000..2686e999 --- /dev/null +++ b/api/docs/PATCHFlexPromotionsFlexPromotionId200ResponseData.md @@ -0,0 +1,180 @@ +# PATCHFlexPromotionsFlexPromotionId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes**](PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTFlexPromotions201ResponseDataRelationships**](POSTFlexPromotions201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPATCHFlexPromotionsFlexPromotionId200ResponseData + +`func NewPATCHFlexPromotionsFlexPromotionId200ResponseData() *PATCHFlexPromotionsFlexPromotionId200ResponseData` + +NewPATCHFlexPromotionsFlexPromotionId200ResponseData instantiates a new PATCHFlexPromotionsFlexPromotionId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHFlexPromotionsFlexPromotionId200ResponseDataWithDefaults + +`func NewPATCHFlexPromotionsFlexPromotionId200ResponseDataWithDefaults() *PATCHFlexPromotionsFlexPromotionId200ResponseData` + +NewPATCHFlexPromotionsFlexPromotionId200ResponseDataWithDefaults instantiates a new PATCHFlexPromotionsFlexPromotionId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetAttributes() PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetAttributesOk() (*PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) SetAttributes(v PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetRelationships() POSTFlexPromotions201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetRelationshipsOk() (*POSTFlexPromotions201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) SetRelationships(v POSTFlexPromotions201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes.md b/api/docs/PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes.md new file mode 100644 index 00000000..45e2f6f1 --- /dev/null +++ b/api/docs/PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes.md @@ -0,0 +1,462 @@ +# PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **interface{}** | The promotion's internal name. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] +**StartsAt** | Pointer to **interface{}** | The activation date/time of this promotion. | [optional] +**ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this promotion (must be after starts_at). | [optional] +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] +**Rules** | Pointer to **interface{}** | The discount rule to be applied. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes + +`func NewPATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes() *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes` + +NewPATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes instantiates a new PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHFlexPromotionsFlexPromotionId200ResponseDataAttributesWithDefaults + +`func NewPATCHFlexPromotionsFlexPromotionId200ResponseDataAttributesWithDefaults() *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes` + +NewPATCHFlexPromotionsFlexPromotionId200ResponseDataAttributesWithDefaults instantiates a new PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + +### HasName + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetExclusive + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil +### GetStartsAt + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetStartsAt() interface{}` + +GetStartsAt returns the StartsAt field if non-nil, zero value otherwise. + +### GetStartsAtOk + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool)` + +GetStartsAtOk returns a tuple with the StartsAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartsAt + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetStartsAt(v interface{})` + +SetStartsAt sets StartsAt field to given value. + +### HasStartsAt + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasStartsAt() bool` + +HasStartsAt returns a boolean if a field has been set. + +### SetStartsAtNil + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetStartsAtNil(b bool)` + + SetStartsAtNil sets the value for StartsAt to be an explicit nil + +### UnsetStartsAt +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetStartsAt()` + +UnsetStartsAt ensures that no value is present for StartsAt, not even an explicit nil +### GetExpiresAt + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetExpiresAt() interface{}` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetExpiresAt(v interface{})` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetTotalUsageLimit + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetTotalUsageLimit() interface{}` + +GetTotalUsageLimit returns the TotalUsageLimit field if non-nil, zero value otherwise. + +### GetTotalUsageLimitOk + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetTotalUsageLimitOk() (*interface{}, bool)` + +GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalUsageLimit + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetTotalUsageLimit(v interface{})` + +SetTotalUsageLimit sets TotalUsageLimit field to given value. + +### HasTotalUsageLimit + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasTotalUsageLimit() bool` + +HasTotalUsageLimit returns a boolean if a field has been set. + +### SetTotalUsageLimitNil + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetTotalUsageLimitNil(b bool)` + + SetTotalUsageLimitNil sets the value for TotalUsageLimit to be an explicit nil + +### UnsetTotalUsageLimit +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetTotalUsageLimit()` + +UnsetTotalUsageLimit ensures that no value is present for TotalUsageLimit, not even an explicit nil +### GetRules + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetRules() interface{}` + +GetRules returns the Rules field if non-nil, zero value otherwise. + +### GetRulesOk + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetRulesOk() (*interface{}, bool)` + +GetRulesOk returns a tuple with the Rules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRules + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetRules(v interface{})` + +SetRules sets Rules field to given value. + +### HasRules + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasRules() bool` + +HasRules returns a boolean if a field has been set. + +### SetRulesNil + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetRulesNil(b bool)` + + SetRulesNil sets the value for Rules to be an explicit nil + +### UnsetRules +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetRules()` + +UnsetRules ensures that no value is present for Rules, not even an explicit nil +### GetDisable + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil +### GetReference + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData.md b/api/docs/PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData.md index cdbfcaed..bdea62d3 100644 --- a/api/docs/PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData.md +++ b/api/docs/PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes**](PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTFixedPricePromotions201ResponseDataRelationships**](POSTFixedPricePromotions201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationships**](POSTBuyXPayYPromotions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData) GetRelationships() POSTFixedPricePromotions201ResponseDataRelationships` +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData) GetRelationshipsOk() (*POSTFixedPricePromotions201ResponseDataRelationships, bool)` +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData) SetRelationships(v POSTFixedPricePromotions201ResponseDataRelationships)` +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes.md b/api/docs/PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes.md index b65a7921..830a8330 100644 --- a/api/docs/PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes.md +++ b/api/docs/PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes.md @@ -6,11 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The promotion's internal name. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] **StartsAt** | Pointer to **interface{}** | The activation date/time of this promotion. | [optional] **ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this promotion (must be after starts_at). | [optional] -**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. | [optional] +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **MaxQuantity** | Pointer to **interface{}** | The max quantity of free gifts globally applicable by the promotion. | [optional] @@ -103,6 +107,76 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetStartsAt `func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetStartsAt() interface{}` @@ -208,6 +282,76 @@ HasTotalUsageLimit returns a boolean if a field has been set. `func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) UnsetTotalUsageLimit()` UnsetTotalUsageLimit ensures that no value is present for TotalUsageLimit, not even an explicit nil +### GetDisable + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil ### GetReference `func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData.md b/api/docs/PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData.md index 46f0e3f1..fc0a2d0a 100644 --- a/api/docs/PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData.md +++ b/api/docs/PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes**](PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTExternalPromotions201ResponseDataRelationships**](POSTExternalPromotions201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTFreeShippingPromotions201ResponseDataRelationships**](POSTFreeShippingPromotions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships` +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData) GetRelationships() POSTFreeShippingPromotions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool)` +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData) GetRelationshipsOk() (*POSTFreeShippingPromotions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships)` +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData) SetRelationships(v POSTFreeShippingPromotions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes.md b/api/docs/PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes.md index 7f9d7fec..c523f013 100644 --- a/api/docs/PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes.md +++ b/api/docs/PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes.md @@ -6,11 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The promotion's internal name. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] **StartsAt** | Pointer to **interface{}** | The activation date/time of this promotion. | [optional] **ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this promotion (must be after starts_at). | [optional] -**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. | [optional] +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -102,6 +106,76 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetStartsAt `func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetStartsAt() interface{}` @@ -207,6 +281,76 @@ HasTotalUsageLimit returns a boolean if a field has been set. `func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) UnsetTotalUsageLimit()` UnsetTotalUsageLimit ensures that no value is present for TotalUsageLimit, not even an explicit nil +### GetDisable + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil ### GetReference `func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/PATCHGiftCardsGiftCardId200ResponseDataAttributes.md b/api/docs/PATCHGiftCardsGiftCardId200ResponseDataAttributes.md index 984a3bf6..677c0191 100644 --- a/api/docs/PATCHGiftCardsGiftCardId200ResponseDataAttributes.md +++ b/api/docs/PATCHGiftCardsGiftCardId200ResponseDataAttributes.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **BalanceMaxCents** | Pointer to **interface{}** | The gift card balance max, in cents. | [optional] **SingleUse** | Pointer to **interface{}** | Indicates if the gift card can be used only one. | [optional] **Rechargeable** | Pointer to **interface{}** | Indicates if the gift card can be recharged. | [optional] +**DistributeDiscount** | Pointer to **interface{}** | Indicates if redeemed gift card amount is distributed for tax calculation. | [optional] **ImageUrl** | Pointer to **interface{}** | The URL of an image that represents the gift card. | [optional] **ExpiresAt** | Pointer to **interface{}** | Time at which the gift card will expire. | [optional] **RecipientEmail** | Pointer to **interface{}** | The email address of the associated recipient. When creating or updating a gift card, this is a shortcut to find or create the associated recipient by email. | [optional] @@ -17,7 +18,7 @@ Name | Type | Description | Notes **Deactivate** | Pointer to **interface{}** | Send this attribute if you want to deactivate a gift card. | [optional] **BalanceChangeCents** | Pointer to **interface{}** | The balance change, in cents. Send a negative value to reduces the card balance by the specified amount. Send a positive value to recharge the gift card (if rechargeable). | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -214,6 +215,41 @@ HasRechargeable returns a boolean if a field has been set. `func (o *PATCHGiftCardsGiftCardId200ResponseDataAttributes) UnsetRechargeable()` UnsetRechargeable ensures that no value is present for Rechargeable, not even an explicit nil +### GetDistributeDiscount + +`func (o *PATCHGiftCardsGiftCardId200ResponseDataAttributes) GetDistributeDiscount() interface{}` + +GetDistributeDiscount returns the DistributeDiscount field if non-nil, zero value otherwise. + +### GetDistributeDiscountOk + +`func (o *PATCHGiftCardsGiftCardId200ResponseDataAttributes) GetDistributeDiscountOk() (*interface{}, bool)` + +GetDistributeDiscountOk returns a tuple with the DistributeDiscount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistributeDiscount + +`func (o *PATCHGiftCardsGiftCardId200ResponseDataAttributes) SetDistributeDiscount(v interface{})` + +SetDistributeDiscount sets DistributeDiscount field to given value. + +### HasDistributeDiscount + +`func (o *PATCHGiftCardsGiftCardId200ResponseDataAttributes) HasDistributeDiscount() bool` + +HasDistributeDiscount returns a boolean if a field has been set. + +### SetDistributeDiscountNil + +`func (o *PATCHGiftCardsGiftCardId200ResponseDataAttributes) SetDistributeDiscountNil(b bool)` + + SetDistributeDiscountNil sets the value for DistributeDiscount to be an explicit nil + +### UnsetDistributeDiscount +`func (o *PATCHGiftCardsGiftCardId200ResponseDataAttributes) UnsetDistributeDiscount()` + +UnsetDistributeDiscount ensures that no value is present for DistributeDiscount, not even an explicit nil ### GetImageUrl `func (o *PATCHGiftCardsGiftCardId200ResponseDataAttributes) GetImageUrl() interface{}` diff --git a/api/docs/PATCHGoogleGeocodersGoogleGeocoderId200ResponseDataAttributes.md b/api/docs/PATCHGoogleGeocodersGoogleGeocoderId200ResponseDataAttributes.md index 0f5bc448..a60f8abc 100644 --- a/api/docs/PATCHGoogleGeocodersGoogleGeocoderId200ResponseDataAttributes.md +++ b/api/docs/PATCHGoogleGeocodersGoogleGeocoderId200ResponseDataAttributes.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The geocoder's internal name | [optional] +**Name** | Pointer to **interface{}** | The geocoder's internal name. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] -**ApiKey** | Pointer to **interface{}** | The Google Map API key | [optional] +**ApiKey** | Pointer to **interface{}** | The Google Map API key. | [optional] ## Methods diff --git a/api/docs/PATCHImportsImportId200Response.md b/api/docs/PATCHImportsImportId200Response.md new file mode 100644 index 00000000..c0aaf7a6 --- /dev/null +++ b/api/docs/PATCHImportsImportId200Response.md @@ -0,0 +1,56 @@ +# PATCHImportsImportId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**PATCHImportsImportId200ResponseData**](PATCHImportsImportId200ResponseData.md) | | [optional] + +## Methods + +### NewPATCHImportsImportId200Response + +`func NewPATCHImportsImportId200Response() *PATCHImportsImportId200Response` + +NewPATCHImportsImportId200Response instantiates a new PATCHImportsImportId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHImportsImportId200ResponseWithDefaults + +`func NewPATCHImportsImportId200ResponseWithDefaults() *PATCHImportsImportId200Response` + +NewPATCHImportsImportId200ResponseWithDefaults instantiates a new PATCHImportsImportId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PATCHImportsImportId200Response) GetData() PATCHImportsImportId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PATCHImportsImportId200Response) GetDataOk() (*PATCHImportsImportId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PATCHImportsImportId200Response) SetData(v PATCHImportsImportId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PATCHImportsImportId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHImportsImportId200ResponseData.md b/api/docs/PATCHImportsImportId200ResponseData.md new file mode 100644 index 00000000..e2a9756d --- /dev/null +++ b/api/docs/PATCHImportsImportId200ResponseData.md @@ -0,0 +1,180 @@ +# PATCHImportsImportId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes**](PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTExports201ResponseDataRelationships**](POSTExports201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPATCHImportsImportId200ResponseData + +`func NewPATCHImportsImportId200ResponseData() *PATCHImportsImportId200ResponseData` + +NewPATCHImportsImportId200ResponseData instantiates a new PATCHImportsImportId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHImportsImportId200ResponseDataWithDefaults + +`func NewPATCHImportsImportId200ResponseDataWithDefaults() *PATCHImportsImportId200ResponseData` + +NewPATCHImportsImportId200ResponseDataWithDefaults instantiates a new PATCHImportsImportId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PATCHImportsImportId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PATCHImportsImportId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PATCHImportsImportId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *PATCHImportsImportId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *PATCHImportsImportId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *PATCHImportsImportId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *PATCHImportsImportId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PATCHImportsImportId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PATCHImportsImportId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *PATCHImportsImportId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PATCHImportsImportId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PATCHImportsImportId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *PATCHImportsImportId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PATCHImportsImportId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PATCHImportsImportId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PATCHImportsImportId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *PATCHImportsImportId200ResponseData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PATCHImportsImportId200ResponseData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PATCHImportsImportId200ResponseData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *PATCHImportsImportId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *PATCHImportsImportId200ResponseData) GetRelationships() POSTExports201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PATCHImportsImportId200ResponseData) GetRelationshipsOk() (*POSTExports201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PATCHImportsImportId200ResponseData) SetRelationships(v POSTExports201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PATCHImportsImportId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHInStockSubscriptionsInStockSubscriptionId200ResponseDataAttributes.md b/api/docs/PATCHInStockSubscriptionsInStockSubscriptionId200ResponseDataAttributes.md index 172865a8..a1f3d624 100644 --- a/api/docs/PATCHInStockSubscriptionsInStockSubscriptionId200ResponseDataAttributes.md +++ b/api/docs/PATCHInStockSubscriptionsInStockSubscriptionId200ResponseDataAttributes.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SkuCode** | Pointer to **interface{}** | The code of the associated SKU, replace the relationship | [optional] +**SkuCode** | Pointer to **interface{}** | The code of the associated SKU, replace the relationship. | [optional] **StockThreshold** | Pointer to **interface{}** | The threshold at which to trigger the back in stock notification. | [optional] **Activate** | Pointer to **interface{}** | Send this attribute if you want to activate an inactive subscription. | [optional] **Deactivate** | Pointer to **interface{}** | Send this attribute if you want to dactivate an active subscription. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHInventoryModelsInventoryModelId200ResponseDataAttributes.md b/api/docs/PATCHInventoryModelsInventoryModelId200ResponseDataAttributes.md index 0a91de2e..dafdc0f3 100644 --- a/api/docs/PATCHInventoryModelsInventoryModelId200ResponseDataAttributes.md +++ b/api/docs/PATCHInventoryModelsInventoryModelId200ResponseDataAttributes.md @@ -6,9 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The inventory model's internal name. | [optional] **Strategy** | Pointer to **interface{}** | The inventory model's shipping strategy: one between 'no_split' (default), 'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'. | [optional] -**StockLocationsCutoff** | Pointer to **interface{}** | The maximum number of stock locations used for inventory computation | [optional] +**StockLocationsCutoff** | Pointer to **interface{}** | The maximum number of stock locations used for inventory computation. | [optional] +**StockReservationCutoff** | Pointer to **interface{}** | The duration in seconds of the generated stock reservations. | [optional] +**PutStockTransfersOnHold** | Pointer to **interface{}** | Indicates if the the stock transfers must be put on hold automatically with the associated shipment. | [optional] +**ManualStockDecrement** | Pointer to **interface{}** | Indicates if the the stock will be decremented manually after the order approval. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -135,6 +138,111 @@ HasStockLocationsCutoff returns a boolean if a field has been set. `func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) UnsetStockLocationsCutoff()` UnsetStockLocationsCutoff ensures that no value is present for StockLocationsCutoff, not even an explicit nil +### GetStockReservationCutoff + +`func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) GetStockReservationCutoff() interface{}` + +GetStockReservationCutoff returns the StockReservationCutoff field if non-nil, zero value otherwise. + +### GetStockReservationCutoffOk + +`func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) GetStockReservationCutoffOk() (*interface{}, bool)` + +GetStockReservationCutoffOk returns a tuple with the StockReservationCutoff field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockReservationCutoff + +`func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) SetStockReservationCutoff(v interface{})` + +SetStockReservationCutoff sets StockReservationCutoff field to given value. + +### HasStockReservationCutoff + +`func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) HasStockReservationCutoff() bool` + +HasStockReservationCutoff returns a boolean if a field has been set. + +### SetStockReservationCutoffNil + +`func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) SetStockReservationCutoffNil(b bool)` + + SetStockReservationCutoffNil sets the value for StockReservationCutoff to be an explicit nil + +### UnsetStockReservationCutoff +`func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) UnsetStockReservationCutoff()` + +UnsetStockReservationCutoff ensures that no value is present for StockReservationCutoff, not even an explicit nil +### GetPutStockTransfersOnHold + +`func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) GetPutStockTransfersOnHold() interface{}` + +GetPutStockTransfersOnHold returns the PutStockTransfersOnHold field if non-nil, zero value otherwise. + +### GetPutStockTransfersOnHoldOk + +`func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) GetPutStockTransfersOnHoldOk() (*interface{}, bool)` + +GetPutStockTransfersOnHoldOk returns a tuple with the PutStockTransfersOnHold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPutStockTransfersOnHold + +`func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) SetPutStockTransfersOnHold(v interface{})` + +SetPutStockTransfersOnHold sets PutStockTransfersOnHold field to given value. + +### HasPutStockTransfersOnHold + +`func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) HasPutStockTransfersOnHold() bool` + +HasPutStockTransfersOnHold returns a boolean if a field has been set. + +### SetPutStockTransfersOnHoldNil + +`func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) SetPutStockTransfersOnHoldNil(b bool)` + + SetPutStockTransfersOnHoldNil sets the value for PutStockTransfersOnHold to be an explicit nil + +### UnsetPutStockTransfersOnHold +`func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) UnsetPutStockTransfersOnHold()` + +UnsetPutStockTransfersOnHold ensures that no value is present for PutStockTransfersOnHold, not even an explicit nil +### GetManualStockDecrement + +`func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) GetManualStockDecrement() interface{}` + +GetManualStockDecrement returns the ManualStockDecrement field if non-nil, zero value otherwise. + +### GetManualStockDecrementOk + +`func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) GetManualStockDecrementOk() (*interface{}, bool)` + +GetManualStockDecrementOk returns a tuple with the ManualStockDecrement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManualStockDecrement + +`func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) SetManualStockDecrement(v interface{})` + +SetManualStockDecrement sets ManualStockDecrement field to given value. + +### HasManualStockDecrement + +`func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) HasManualStockDecrement() bool` + +HasManualStockDecrement returns a boolean if a field has been set. + +### SetManualStockDecrementNil + +`func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) SetManualStockDecrementNil(b bool)` + + SetManualStockDecrementNil sets the value for ManualStockDecrement to be an explicit nil + +### UnsetManualStockDecrement +`func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) UnsetManualStockDecrement()` + +UnsetManualStockDecrement ensures that no value is present for ManualStockDecrement, not even an explicit nil ### GetReference `func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/PATCHInventoryReturnLocationsInventoryReturnLocationId200ResponseDataAttributes.md b/api/docs/PATCHInventoryReturnLocationsInventoryReturnLocationId200ResponseDataAttributes.md index 15ebb5c3..ac7a393a 100644 --- a/api/docs/PATCHInventoryReturnLocationsInventoryReturnLocationId200ResponseDataAttributes.md +++ b/api/docs/PATCHInventoryReturnLocationsInventoryReturnLocationId200ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Priority** | Pointer to **interface{}** | The inventory return location priority within the associated invetory model. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHInventoryStockLocationsInventoryStockLocationId200ResponseDataAttributes.md b/api/docs/PATCHInventoryStockLocationsInventoryStockLocationId200ResponseDataAttributes.md index ec198a77..b4e41c22 100644 --- a/api/docs/PATCHInventoryStockLocationsInventoryStockLocationId200ResponseDataAttributes.md +++ b/api/docs/PATCHInventoryStockLocationsInventoryStockLocationId200ResponseDataAttributes.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Priority** | Pointer to **interface{}** | The stock location priority within the associated invetory model. | [optional] **OnHold** | Pointer to **interface{}** | Indicates if the shipment should be put on hold if fulfilled from the associated stock location. This is useful to manage use cases like back-orders, pre-orders or personalized orders that need to be customized before being fulfilled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHKlarnaGatewaysKlarnaGatewayId200ResponseDataAttributes.md b/api/docs/PATCHKlarnaGatewaysKlarnaGatewayId200ResponseDataAttributes.md index 4b22450e..9c67331a 100644 --- a/api/docs/PATCHKlarnaGatewaysKlarnaGatewayId200ResponseDataAttributes.md +++ b/api/docs/PATCHKlarnaGatewaysKlarnaGatewayId200ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The payment gateway's internal name. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **CountryCode** | Pointer to **interface{}** | The gateway country code one of EU, US, or OC. | [optional] **ApiKey** | Pointer to **interface{}** | The public key linked to your API credential. | [optional] diff --git a/api/docs/PATCHKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes.md b/api/docs/PATCHKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes.md index 982043e2..20c183f1 100644 --- a/api/docs/PATCHKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes.md +++ b/api/docs/PATCHKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **AuthToken** | Pointer to **interface{}** | The token returned by a successful client authorization, mandatory to place the order. | [optional] **Update** | Pointer to **interface{}** | Send this attribute if you want to update the payment session with fresh order data. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes.md b/api/docs/PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes.md index 58b23988..914d380f 100644 --- a/api/docs/PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes.md +++ b/api/docs/PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes.md @@ -5,10 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The name of the line item option. When blank, it gets populated with the name of the associated SKU option. | [optional] -**Quantity** | Pointer to **interface{}** | The line item option's quantity | [optional] +**Quantity** | Pointer to **interface{}** | The line item option's quantity. | [optional] +**UnitAmountCents** | Pointer to **interface{}** | The unit amount of the line item option, in cents. When you add a line item option to an order, this is automatically populated from associated SKU option's price. Cannot be passed by sales channels. | [optional] **Options** | Pointer to **interface{}** | Set of key-value pairs that represent the selected options. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -100,6 +101,41 @@ HasQuantity returns a boolean if a field has been set. `func (o *PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes) UnsetQuantity()` UnsetQuantity ensures that no value is present for Quantity, not even an explicit nil +### GetUnitAmountCents + +`func (o *PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes) GetUnitAmountCents() interface{}` + +GetUnitAmountCents returns the UnitAmountCents field if non-nil, zero value otherwise. + +### GetUnitAmountCentsOk + +`func (o *PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes) GetUnitAmountCentsOk() (*interface{}, bool)` + +GetUnitAmountCentsOk returns a tuple with the UnitAmountCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnitAmountCents + +`func (o *PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes) SetUnitAmountCents(v interface{})` + +SetUnitAmountCents sets UnitAmountCents field to given value. + +### HasUnitAmountCents + +`func (o *PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes) HasUnitAmountCents() bool` + +HasUnitAmountCents returns a boolean if a field has been set. + +### SetUnitAmountCentsNil + +`func (o *PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes) SetUnitAmountCentsNil(b bool)` + + SetUnitAmountCentsNil sets the value for UnitAmountCents to be an explicit nil + +### UnsetUnitAmountCents +`func (o *PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes) UnsetUnitAmountCents()` + +UnsetUnitAmountCents ensures that no value is present for UnitAmountCents, not even an explicit nil ### GetOptions `func (o *PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes) GetOptions() interface{}` diff --git a/api/docs/PATCHLineItemsLineItemId200ResponseDataAttributes.md b/api/docs/PATCHLineItemsLineItemId200ResponseDataAttributes.md index 0e4fac69..137f2265 100644 --- a/api/docs/PATCHLineItemsLineItemId200ResponseDataAttributes.md +++ b/api/docs/PATCHLineItemsLineItemId200ResponseDataAttributes.md @@ -7,12 +7,17 @@ Name | Type | Description | Notes **SkuCode** | Pointer to **interface{}** | The code of the associated SKU. | [optional] **BundleCode** | Pointer to **interface{}** | The code of the associated bundle. | [optional] **Quantity** | Pointer to **interface{}** | The line item quantity. | [optional] -**ExternalPrice** | Pointer to **interface{}** | When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. | [optional] +**ExternalPrice** | Pointer to **interface{}** | When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'. | [optional] +**ReserveStock** | Pointer to **interface{}** | Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed. Cannot be passed by sales channels. | [optional] +**UnitAmountCents** | Pointer to **interface{}** | The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. | [optional] +**CompareAtAmountCents** | Pointer to **interface{}** | The compared price amount, in cents. Useful to display a percentage discount. | [optional] +**OptionsAmountCents** | Pointer to **interface{}** | The options amount of the line item, in cents. Cannot be passed by sales channels. | [optional] **Name** | Pointer to **interface{}** | The name of the line item. When blank, it gets populated with the name of the associated item (if present). | [optional] **ImageUrl** | Pointer to **interface{}** | The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only). | [optional] **Frequency** | Pointer to **interface{}** | The frequency which generates a subscription. Must be supported by existing associated subscription_model. | [optional] +**ResetCircuit** | Pointer to **interface{}** | Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -174,6 +179,146 @@ HasExternalPrice returns a boolean if a field has been set. `func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) UnsetExternalPrice()` UnsetExternalPrice ensures that no value is present for ExternalPrice, not even an explicit nil +### GetReserveStock + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetReserveStock() interface{}` + +GetReserveStock returns the ReserveStock field if non-nil, zero value otherwise. + +### GetReserveStockOk + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetReserveStockOk() (*interface{}, bool)` + +GetReserveStockOk returns a tuple with the ReserveStock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReserveStock + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) SetReserveStock(v interface{})` + +SetReserveStock sets ReserveStock field to given value. + +### HasReserveStock + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) HasReserveStock() bool` + +HasReserveStock returns a boolean if a field has been set. + +### SetReserveStockNil + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) SetReserveStockNil(b bool)` + + SetReserveStockNil sets the value for ReserveStock to be an explicit nil + +### UnsetReserveStock +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) UnsetReserveStock()` + +UnsetReserveStock ensures that no value is present for ReserveStock, not even an explicit nil +### GetUnitAmountCents + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetUnitAmountCents() interface{}` + +GetUnitAmountCents returns the UnitAmountCents field if non-nil, zero value otherwise. + +### GetUnitAmountCentsOk + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetUnitAmountCentsOk() (*interface{}, bool)` + +GetUnitAmountCentsOk returns a tuple with the UnitAmountCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnitAmountCents + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) SetUnitAmountCents(v interface{})` + +SetUnitAmountCents sets UnitAmountCents field to given value. + +### HasUnitAmountCents + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) HasUnitAmountCents() bool` + +HasUnitAmountCents returns a boolean if a field has been set. + +### SetUnitAmountCentsNil + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) SetUnitAmountCentsNil(b bool)` + + SetUnitAmountCentsNil sets the value for UnitAmountCents to be an explicit nil + +### UnsetUnitAmountCents +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) UnsetUnitAmountCents()` + +UnsetUnitAmountCents ensures that no value is present for UnitAmountCents, not even an explicit nil +### GetCompareAtAmountCents + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetCompareAtAmountCents() interface{}` + +GetCompareAtAmountCents returns the CompareAtAmountCents field if non-nil, zero value otherwise. + +### GetCompareAtAmountCentsOk + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetCompareAtAmountCentsOk() (*interface{}, bool)` + +GetCompareAtAmountCentsOk returns a tuple with the CompareAtAmountCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompareAtAmountCents + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) SetCompareAtAmountCents(v interface{})` + +SetCompareAtAmountCents sets CompareAtAmountCents field to given value. + +### HasCompareAtAmountCents + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) HasCompareAtAmountCents() bool` + +HasCompareAtAmountCents returns a boolean if a field has been set. + +### SetCompareAtAmountCentsNil + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) SetCompareAtAmountCentsNil(b bool)` + + SetCompareAtAmountCentsNil sets the value for CompareAtAmountCents to be an explicit nil + +### UnsetCompareAtAmountCents +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) UnsetCompareAtAmountCents()` + +UnsetCompareAtAmountCents ensures that no value is present for CompareAtAmountCents, not even an explicit nil +### GetOptionsAmountCents + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetOptionsAmountCents() interface{}` + +GetOptionsAmountCents returns the OptionsAmountCents field if non-nil, zero value otherwise. + +### GetOptionsAmountCentsOk + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetOptionsAmountCentsOk() (*interface{}, bool)` + +GetOptionsAmountCentsOk returns a tuple with the OptionsAmountCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOptionsAmountCents + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) SetOptionsAmountCents(v interface{})` + +SetOptionsAmountCents sets OptionsAmountCents field to given value. + +### HasOptionsAmountCents + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) HasOptionsAmountCents() bool` + +HasOptionsAmountCents returns a boolean if a field has been set. + +### SetOptionsAmountCentsNil + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) SetOptionsAmountCentsNil(b bool)` + + SetOptionsAmountCentsNil sets the value for OptionsAmountCents to be an explicit nil + +### UnsetOptionsAmountCents +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) UnsetOptionsAmountCents()` + +UnsetOptionsAmountCents ensures that no value is present for OptionsAmountCents, not even an explicit nil ### GetName `func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetName() interface{}` @@ -279,6 +424,41 @@ HasFrequency returns a boolean if a field has been set. `func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) UnsetFrequency()` UnsetFrequency ensures that no value is present for Frequency, not even an explicit nil +### GetResetCircuit + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetResetCircuit() interface{}` + +GetResetCircuit returns the ResetCircuit field if non-nil, zero value otherwise. + +### GetResetCircuitOk + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetResetCircuitOk() (*interface{}, bool)` + +GetResetCircuitOk returns a tuple with the ResetCircuit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResetCircuit + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) SetResetCircuit(v interface{})` + +SetResetCircuit sets ResetCircuit field to given value. + +### HasResetCircuit + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) HasResetCircuit() bool` + +HasResetCircuit returns a boolean if a field has been set. + +### SetResetCircuitNil + +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) SetResetCircuitNil(b bool)` + + SetResetCircuitNil sets the value for ResetCircuit to be an explicit nil + +### UnsetResetCircuit +`func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) UnsetResetCircuit()` + +UnsetResetCircuit ensures that no value is present for ResetCircuit, not even an explicit nil ### GetReference `func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/PATCHLinksLinkId200Response.md b/api/docs/PATCHLinksLinkId200Response.md new file mode 100644 index 00000000..008d7d99 --- /dev/null +++ b/api/docs/PATCHLinksLinkId200Response.md @@ -0,0 +1,56 @@ +# PATCHLinksLinkId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**PATCHLinksLinkId200ResponseData**](PATCHLinksLinkId200ResponseData.md) | | [optional] + +## Methods + +### NewPATCHLinksLinkId200Response + +`func NewPATCHLinksLinkId200Response() *PATCHLinksLinkId200Response` + +NewPATCHLinksLinkId200Response instantiates a new PATCHLinksLinkId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHLinksLinkId200ResponseWithDefaults + +`func NewPATCHLinksLinkId200ResponseWithDefaults() *PATCHLinksLinkId200Response` + +NewPATCHLinksLinkId200ResponseWithDefaults instantiates a new PATCHLinksLinkId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PATCHLinksLinkId200Response) GetData() PATCHLinksLinkId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PATCHLinksLinkId200Response) GetDataOk() (*PATCHLinksLinkId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PATCHLinksLinkId200Response) SetData(v PATCHLinksLinkId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PATCHLinksLinkId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHLinksLinkId200ResponseData.md b/api/docs/PATCHLinksLinkId200ResponseData.md new file mode 100644 index 00000000..8f9842e3 --- /dev/null +++ b/api/docs/PATCHLinksLinkId200ResponseData.md @@ -0,0 +1,180 @@ +# PATCHLinksLinkId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**PATCHLinksLinkId200ResponseDataAttributes**](PATCHLinksLinkId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTLinks201ResponseDataRelationships**](POSTLinks201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPATCHLinksLinkId200ResponseData + +`func NewPATCHLinksLinkId200ResponseData() *PATCHLinksLinkId200ResponseData` + +NewPATCHLinksLinkId200ResponseData instantiates a new PATCHLinksLinkId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHLinksLinkId200ResponseDataWithDefaults + +`func NewPATCHLinksLinkId200ResponseDataWithDefaults() *PATCHLinksLinkId200ResponseData` + +NewPATCHLinksLinkId200ResponseDataWithDefaults instantiates a new PATCHLinksLinkId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PATCHLinksLinkId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PATCHLinksLinkId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PATCHLinksLinkId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *PATCHLinksLinkId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *PATCHLinksLinkId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *PATCHLinksLinkId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *PATCHLinksLinkId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PATCHLinksLinkId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PATCHLinksLinkId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *PATCHLinksLinkId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PATCHLinksLinkId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PATCHLinksLinkId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *PATCHLinksLinkId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PATCHLinksLinkId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PATCHLinksLinkId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PATCHLinksLinkId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *PATCHLinksLinkId200ResponseData) GetAttributes() PATCHLinksLinkId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PATCHLinksLinkId200ResponseData) GetAttributesOk() (*PATCHLinksLinkId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PATCHLinksLinkId200ResponseData) SetAttributes(v PATCHLinksLinkId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *PATCHLinksLinkId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *PATCHLinksLinkId200ResponseData) GetRelationships() POSTLinks201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PATCHLinksLinkId200ResponseData) GetRelationshipsOk() (*POSTLinks201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PATCHLinksLinkId200ResponseData) SetRelationships(v POSTLinks201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PATCHLinksLinkId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHLinksLinkId200ResponseDataAttributes.md b/api/docs/PATCHLinksLinkId200ResponseDataAttributes.md new file mode 100644 index 00000000..ecc5546e --- /dev/null +++ b/api/docs/PATCHLinksLinkId200ResponseDataAttributes.md @@ -0,0 +1,462 @@ +# PATCHLinksLinkId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **interface{}** | The link internal name. | [optional] +**ClientId** | Pointer to **interface{}** | The link application client id, used to fetch JWT. | [optional] +**Scope** | Pointer to **interface{}** | The link application scope, used to fetch JWT. | [optional] +**StartsAt** | Pointer to **interface{}** | The activation date/time of this link. | [optional] +**ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this link (must be after starts_at). | [optional] +**Domain** | Pointer to **interface{}** | The link URL second level domain. | [optional] +**Params** | Pointer to **interface{}** | The link params to be passed in URL the query string. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPATCHLinksLinkId200ResponseDataAttributes + +`func NewPATCHLinksLinkId200ResponseDataAttributes() *PATCHLinksLinkId200ResponseDataAttributes` + +NewPATCHLinksLinkId200ResponseDataAttributes instantiates a new PATCHLinksLinkId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHLinksLinkId200ResponseDataAttributesWithDefaults + +`func NewPATCHLinksLinkId200ResponseDataAttributesWithDefaults() *PATCHLinksLinkId200ResponseDataAttributes` + +NewPATCHLinksLinkId200ResponseDataAttributesWithDefaults instantiates a new PATCHLinksLinkId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + +### HasName + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *PATCHLinksLinkId200ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetClientId + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetClientId() interface{}` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetClientIdOk() (*interface{}, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetClientId(v interface{})` + +SetClientId sets ClientId field to given value. + +### HasClientId + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) HasClientId() bool` + +HasClientId returns a boolean if a field has been set. + +### SetClientIdNil + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetClientIdNil(b bool)` + + SetClientIdNil sets the value for ClientId to be an explicit nil + +### UnsetClientId +`func (o *PATCHLinksLinkId200ResponseDataAttributes) UnsetClientId()` + +UnsetClientId ensures that no value is present for ClientId, not even an explicit nil +### GetScope + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetScope() interface{}` + +GetScope returns the Scope field if non-nil, zero value otherwise. + +### GetScopeOk + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetScopeOk() (*interface{}, bool)` + +GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScope + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetScope(v interface{})` + +SetScope sets Scope field to given value. + +### HasScope + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) HasScope() bool` + +HasScope returns a boolean if a field has been set. + +### SetScopeNil + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetScopeNil(b bool)` + + SetScopeNil sets the value for Scope to be an explicit nil + +### UnsetScope +`func (o *PATCHLinksLinkId200ResponseDataAttributes) UnsetScope()` + +UnsetScope ensures that no value is present for Scope, not even an explicit nil +### GetStartsAt + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetStartsAt() interface{}` + +GetStartsAt returns the StartsAt field if non-nil, zero value otherwise. + +### GetStartsAtOk + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool)` + +GetStartsAtOk returns a tuple with the StartsAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartsAt + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetStartsAt(v interface{})` + +SetStartsAt sets StartsAt field to given value. + +### HasStartsAt + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) HasStartsAt() bool` + +HasStartsAt returns a boolean if a field has been set. + +### SetStartsAtNil + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetStartsAtNil(b bool)` + + SetStartsAtNil sets the value for StartsAt to be an explicit nil + +### UnsetStartsAt +`func (o *PATCHLinksLinkId200ResponseDataAttributes) UnsetStartsAt()` + +UnsetStartsAt ensures that no value is present for StartsAt, not even an explicit nil +### GetExpiresAt + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetExpiresAt() interface{}` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetExpiresAt(v interface{})` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *PATCHLinksLinkId200ResponseDataAttributes) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetDomain + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetDomain() interface{}` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetDomainOk() (*interface{}, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetDomain(v interface{})` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) HasDomain() bool` + +HasDomain returns a boolean if a field has been set. + +### SetDomainNil + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetDomainNil(b bool)` + + SetDomainNil sets the value for Domain to be an explicit nil + +### UnsetDomain +`func (o *PATCHLinksLinkId200ResponseDataAttributes) UnsetDomain()` + +UnsetDomain ensures that no value is present for Domain, not even an explicit nil +### GetParams + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetParams() interface{}` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetParamsOk() (*interface{}, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetParams(v interface{})` + +SetParams sets Params field to given value. + +### HasParams + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) HasParams() bool` + +HasParams returns a boolean if a field has been set. + +### SetParamsNil + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetParamsNil(b bool)` + + SetParamsNil sets the value for Params to be an explicit nil + +### UnsetParams +`func (o *PATCHLinksLinkId200ResponseDataAttributes) UnsetParams()` + +UnsetParams ensures that no value is present for Params, not even an explicit nil +### GetDisable + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *PATCHLinksLinkId200ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *PATCHLinksLinkId200ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil +### GetReference + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *PATCHLinksLinkId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *PATCHLinksLinkId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *PATCHLinksLinkId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *PATCHLinksLinkId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHManualGatewaysManualGatewayId200ResponseDataAttributes.md b/api/docs/PATCHManualGatewaysManualGatewayId200ResponseDataAttributes.md index bc89f8b5..e973516d 100644 --- a/api/docs/PATCHManualGatewaysManualGatewayId200ResponseDataAttributes.md +++ b/api/docs/PATCHManualGatewaysManualGatewayId200ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The payment gateway's internal name. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes.md b/api/docs/PATCHManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes.md index 176c7241..674c421c 100644 --- a/api/docs/PATCHManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes.md +++ b/api/docs/PATCHManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The tax calculator's internal name. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHMarketsMarketId200ResponseDataAttributes.md b/api/docs/PATCHMarketsMarketId200ResponseDataAttributes.md index c8ac3cd3..a636c3a8 100644 --- a/api/docs/PATCHMarketsMarketId200ResponseDataAttributes.md +++ b/api/docs/PATCHMarketsMarketId200ResponseDataAttributes.md @@ -4,15 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The market's internal name | [optional] -**FacebookPixelId** | Pointer to **interface{}** | The Facebook Pixed ID | [optional] -**CheckoutUrl** | Pointer to **interface{}** | The checkout URL for this market | [optional] +**Name** | Pointer to **interface{}** | The market's internal name. | [optional] +**Code** | Pointer to **interface{}** | A string that you can use to identify the market (must be unique within the environment). | [optional] +**FacebookPixelId** | Pointer to **interface{}** | The Facebook Pixed ID. | [optional] +**CheckoutUrl** | Pointer to **interface{}** | The checkout URL for this market. | [optional] **ExternalPricesUrl** | Pointer to **interface{}** | The URL used to overwrite prices by an external source. | [optional] **ExternalOrderValidationUrl** | Pointer to **interface{}** | The URL used to validate orders by an external source. | [optional] -**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark the market as disabled. | [optional] -**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark the market as enabled. | [optional] +**ShippingCostCutoff** | Pointer to **interface{}** | When specified indicates the maximum number of shipping line items with cost that will be added to an order. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -69,6 +71,41 @@ HasName returns a boolean if a field has been set. `func (o *PATCHMarketsMarketId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCode + +`func (o *PATCHMarketsMarketId200ResponseDataAttributes) GetCode() interface{}` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *PATCHMarketsMarketId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *PATCHMarketsMarketId200ResponseDataAttributes) SetCode(v interface{})` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *PATCHMarketsMarketId200ResponseDataAttributes) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### SetCodeNil + +`func (o *PATCHMarketsMarketId200ResponseDataAttributes) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *PATCHMarketsMarketId200ResponseDataAttributes) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil ### GetFacebookPixelId `func (o *PATCHMarketsMarketId200ResponseDataAttributes) GetFacebookPixelId() interface{}` @@ -209,6 +246,41 @@ HasExternalOrderValidationUrl returns a boolean if a field has been set. `func (o *PATCHMarketsMarketId200ResponseDataAttributes) UnsetExternalOrderValidationUrl()` UnsetExternalOrderValidationUrl ensures that no value is present for ExternalOrderValidationUrl, not even an explicit nil +### GetShippingCostCutoff + +`func (o *PATCHMarketsMarketId200ResponseDataAttributes) GetShippingCostCutoff() interface{}` + +GetShippingCostCutoff returns the ShippingCostCutoff field if non-nil, zero value otherwise. + +### GetShippingCostCutoffOk + +`func (o *PATCHMarketsMarketId200ResponseDataAttributes) GetShippingCostCutoffOk() (*interface{}, bool)` + +GetShippingCostCutoffOk returns a tuple with the ShippingCostCutoff field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingCostCutoff + +`func (o *PATCHMarketsMarketId200ResponseDataAttributes) SetShippingCostCutoff(v interface{})` + +SetShippingCostCutoff sets ShippingCostCutoff field to given value. + +### HasShippingCostCutoff + +`func (o *PATCHMarketsMarketId200ResponseDataAttributes) HasShippingCostCutoff() bool` + +HasShippingCostCutoff returns a boolean if a field has been set. + +### SetShippingCostCutoffNil + +`func (o *PATCHMarketsMarketId200ResponseDataAttributes) SetShippingCostCutoffNil(b bool)` + + SetShippingCostCutoffNil sets the value for ShippingCostCutoff to be an explicit nil + +### UnsetShippingCostCutoff +`func (o *PATCHMarketsMarketId200ResponseDataAttributes) UnsetShippingCostCutoff()` + +UnsetShippingCostCutoff ensures that no value is present for ShippingCostCutoff, not even an explicit nil ### GetDisable `func (o *PATCHMarketsMarketId200ResponseDataAttributes) GetDisable() interface{}` diff --git a/api/docs/PATCHMerchantsMerchantId200ResponseDataAttributes.md b/api/docs/PATCHMerchantsMerchantId200ResponseDataAttributes.md index edf44f2c..eb6f85d7 100644 --- a/api/docs/PATCHMerchantsMerchantId200ResponseDataAttributes.md +++ b/api/docs/PATCHMerchantsMerchantId200ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The merchant's internal name. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData.md b/api/docs/PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData.md index 5c44126a..4e57dace 100644 --- a/api/docs/PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData.md +++ b/api/docs/PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes**](PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTOrderAmountPromotionRules201ResponseDataRelationships**](POSTOrderAmountPromotionRules201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTCustomPromotionRules201ResponseDataRelationships**](POSTCustomPromotionRules201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) GetRelationships() POSTOrderAmountPromotionRules201ResponseDataRelationships` +`func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) GetRelationships() POSTCustomPromotionRules201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) GetRelationshipsOk() (*POSTOrderAmountPromotionRules201ResponseDataRelationships, bool)` +`func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) GetRelationshipsOk() (*POSTCustomPromotionRules201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) SetRelationships(v POSTOrderAmountPromotionRules201ResponseDataRelationships)` +`func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) SetRelationships(v POSTCustomPromotionRules201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes.md b/api/docs/PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes.md index 4acbc93a..ad646b06 100644 --- a/api/docs/PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes.md +++ b/api/docs/PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes.md @@ -5,9 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **OrderAmountCents** | Pointer to **interface{}** | Apply the promotion only when order is over this amount, in cents. | [optional] +**UseSubtotal** | Pointer to **interface{}** | Send this attribute if you want to compare the specified amount with order's subtotal (excluding discounts, if any). | [optional] ## Methods @@ -168,6 +169,41 @@ HasOrderAmountCents returns a boolean if a field has been set. `func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) UnsetOrderAmountCents()` UnsetOrderAmountCents ensures that no value is present for OrderAmountCents, not even an explicit nil +### GetUseSubtotal + +`func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) GetUseSubtotal() interface{}` + +GetUseSubtotal returns the UseSubtotal field if non-nil, zero value otherwise. + +### GetUseSubtotalOk + +`func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) GetUseSubtotalOk() (*interface{}, bool)` + +GetUseSubtotalOk returns a tuple with the UseSubtotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseSubtotal + +`func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) SetUseSubtotal(v interface{})` + +SetUseSubtotal sets UseSubtotal field to given value. + +### HasUseSubtotal + +`func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) HasUseSubtotal() bool` + +HasUseSubtotal returns a boolean if a field has been set. + +### SetUseSubtotalNil + +`func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) SetUseSubtotalNil(b bool)` + + SetUseSubtotalNil sets the value for UseSubtotal to be an explicit nil + +### UnsetUseSubtotal +`func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) UnsetUseSubtotal()` + +UnsetUseSubtotal ensures that no value is present for UseSubtotal, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/PATCHOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes.md b/api/docs/PATCHOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes.md index 15fe6871..f665d960 100644 --- a/api/docs/PATCHOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes.md +++ b/api/docs/PATCHOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **Quantity** | Pointer to **interface{}** | The subscription item quantity. | [optional] **UnitAmountCents** | Pointer to **interface{}** | The unit amount of the subscription item, in cents. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes.md b/api/docs/PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes.md index 8217c49b..43c5cc06 100644 --- a/api/docs/PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes.md +++ b/api/docs/PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes.md @@ -5,13 +5,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Frequency** | Pointer to **interface{}** | The frequency of the subscription. Use one of the supported within 'hourly', 'daily', 'weekly', 'monthly', 'two-month', 'three-month', 'four-month', 'six-month', 'yearly', or provide your custom crontab expression (min unit is hour). Must be supported by existing associated subscription_model. | [optional] +**ActivateBySourceOrder** | Pointer to **interface{}** | Indicates if the subscription will be activated considering the placed source order as its first run. | [optional] +**PlaceTargetOrder** | Pointer to **interface{}** | Indicates if the subscription created orders are automatically placed at the end of the copy. | [optional] +**RenewalAlertPeriod** | Pointer to **interface{}** | Indicates the number of hours the renewal alert will be triggered before the subscription next run. Must be included between 1 and 720 hours. | [optional] **ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this subscription (must be after starts_at). | [optional] **NextRunAt** | Pointer to **interface{}** | The date/time of the subscription next run. Can be updated but only in the future, to copy with frequency changes. | [optional] **Activate** | Pointer to **interface{}** | Send this attribute if you want to mark this subscription as active. | [optional] **Deactivate** | Pointer to **interface{}** | Send this attribute if you want to mark this subscription as inactive. | [optional] **Cancel** | Pointer to **interface{}** | Send this attribute if you want to mark this subscription as cancelled. | [optional] +**Convert** | Pointer to **interface{}** | Send this attribute if you want to convert a manual subscription to an automatic one. A subscription model is required before conversion. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -68,6 +72,111 @@ HasFrequency returns a boolean if a field has been set. `func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) UnsetFrequency()` UnsetFrequency ensures that no value is present for Frequency, not even an explicit nil +### GetActivateBySourceOrder + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetActivateBySourceOrder() interface{}` + +GetActivateBySourceOrder returns the ActivateBySourceOrder field if non-nil, zero value otherwise. + +### GetActivateBySourceOrderOk + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetActivateBySourceOrderOk() (*interface{}, bool)` + +GetActivateBySourceOrderOk returns a tuple with the ActivateBySourceOrder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetActivateBySourceOrder + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetActivateBySourceOrder(v interface{})` + +SetActivateBySourceOrder sets ActivateBySourceOrder field to given value. + +### HasActivateBySourceOrder + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) HasActivateBySourceOrder() bool` + +HasActivateBySourceOrder returns a boolean if a field has been set. + +### SetActivateBySourceOrderNil + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetActivateBySourceOrderNil(b bool)` + + SetActivateBySourceOrderNil sets the value for ActivateBySourceOrder to be an explicit nil + +### UnsetActivateBySourceOrder +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) UnsetActivateBySourceOrder()` + +UnsetActivateBySourceOrder ensures that no value is present for ActivateBySourceOrder, not even an explicit nil +### GetPlaceTargetOrder + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetPlaceTargetOrder() interface{}` + +GetPlaceTargetOrder returns the PlaceTargetOrder field if non-nil, zero value otherwise. + +### GetPlaceTargetOrderOk + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetPlaceTargetOrderOk() (*interface{}, bool)` + +GetPlaceTargetOrderOk returns a tuple with the PlaceTargetOrder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlaceTargetOrder + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetPlaceTargetOrder(v interface{})` + +SetPlaceTargetOrder sets PlaceTargetOrder field to given value. + +### HasPlaceTargetOrder + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) HasPlaceTargetOrder() bool` + +HasPlaceTargetOrder returns a boolean if a field has been set. + +### SetPlaceTargetOrderNil + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetPlaceTargetOrderNil(b bool)` + + SetPlaceTargetOrderNil sets the value for PlaceTargetOrder to be an explicit nil + +### UnsetPlaceTargetOrder +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) UnsetPlaceTargetOrder()` + +UnsetPlaceTargetOrder ensures that no value is present for PlaceTargetOrder, not even an explicit nil +### GetRenewalAlertPeriod + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetRenewalAlertPeriod() interface{}` + +GetRenewalAlertPeriod returns the RenewalAlertPeriod field if non-nil, zero value otherwise. + +### GetRenewalAlertPeriodOk + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetRenewalAlertPeriodOk() (*interface{}, bool)` + +GetRenewalAlertPeriodOk returns a tuple with the RenewalAlertPeriod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRenewalAlertPeriod + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetRenewalAlertPeriod(v interface{})` + +SetRenewalAlertPeriod sets RenewalAlertPeriod field to given value. + +### HasRenewalAlertPeriod + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) HasRenewalAlertPeriod() bool` + +HasRenewalAlertPeriod returns a boolean if a field has been set. + +### SetRenewalAlertPeriodNil + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetRenewalAlertPeriodNil(b bool)` + + SetRenewalAlertPeriodNil sets the value for RenewalAlertPeriod to be an explicit nil + +### UnsetRenewalAlertPeriod +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) UnsetRenewalAlertPeriod()` + +UnsetRenewalAlertPeriod ensures that no value is present for RenewalAlertPeriod, not even an explicit nil ### GetExpiresAt `func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetExpiresAt() interface{}` @@ -243,6 +352,41 @@ HasCancel returns a boolean if a field has been set. `func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) UnsetCancel()` UnsetCancel ensures that no value is present for Cancel, not even an explicit nil +### GetConvert + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetConvert() interface{}` + +GetConvert returns the Convert field if non-nil, zero value otherwise. + +### GetConvertOk + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetConvertOk() (*interface{}, bool)` + +GetConvertOk returns a tuple with the Convert field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConvert + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetConvert(v interface{})` + +SetConvert sets Convert field to given value. + +### HasConvert + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) HasConvert() bool` + +HasConvert returns a boolean if a field has been set. + +### SetConvertNil + +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetConvertNil(b bool)` + + SetConvertNil sets the value for Convert to be an explicit nil + +### UnsetConvert +`func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) UnsetConvert()` + +UnsetConvert ensures that no value is present for Convert, not even an explicit nil ### GetReference `func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/PATCHOrdersOrderId200ResponseDataAttributes.md b/api/docs/PATCHOrdersOrderId200ResponseDataAttributes.md index 2a08b276..91126d4b 100644 --- a/api/docs/PATCHOrdersOrderId200ResponseDataAttributes.md +++ b/api/docs/PATCHOrdersOrderId200ResponseDataAttributes.md @@ -4,29 +4,37 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Number** | Pointer to **interface{}** | The order identifier. Can be specified if unique within the organization (for enterprise plans only), default to numeric ID otherwise. Cannot be passed by sales channels. | [optional] +**AffiliateCode** | Pointer to **interface{}** | The affiliate code, if any, the seller will transfer commission on shop by link transactions. | [optional] **Autorefresh** | Pointer to **interface{}** | Save this attribute as 'false' if you want prevent the order to be refreshed automatically at each change (much faster). | [optional] +**PlaceAsync** | Pointer to **interface{}** | Save this attribute as 'true' if you want perform the place asynchronously. Payment errors, if any, will be collected afterwards. | [optional] **Guest** | Pointer to **interface{}** | Indicates if the order has been placed as guest. | [optional] **CustomerEmail** | Pointer to **interface{}** | The email address of the associated customer. When creating or updating an order, this is a shortcut to find or create the associated customer by email. | [optional] **CustomerPassword** | Pointer to **interface{}** | The password of the associated customer. When creating or updating an order, this is a shortcut to sign up the associated customer. | [optional] **LanguageCode** | Pointer to **interface{}** | The preferred language code (ISO 639-1) to be used when communicating with the customer. This can be useful when sending the order to 3rd party marketing tools and CRMs. If the language is supported, the hosted checkout will be localized accordingly. | [optional] -**ShippingCountryCodeLock** | Pointer to **interface{}** | The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. | [optional] +**FreightTaxable** | Pointer to **interface{}** | Indicates if taxes are applied to shipping costs. | [optional] +**PaymentMethodTaxable** | Pointer to **interface{}** | Indicates if taxes are applied to payment methods costs. | [optional] +**AdjustmentTaxable** | Pointer to **interface{}** | Indicates if taxes are applied to positive adjustments. | [optional] +**GiftCardTaxable** | Pointer to **interface{}** | Indicates if taxes are applied to purchased gift cards. | [optional] +**ShippingCountryCodeLock** | Pointer to **interface{}** | The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. Not relevant if order contains only digital products. | [optional] **CouponCode** | Pointer to **interface{}** | The coupon code to be used for the order. If valid, it triggers a promotion adding a discount line item to the order. | [optional] **GiftCardCode** | Pointer to **interface{}** | The gift card code (at least the first 8 characters) to be used for the order. If valid, it uses the gift card balance to pay for the order. | [optional] -**GiftCardOrCouponCode** | Pointer to **interface{}** | The gift card or coupon code (at least the first 8 characters) to be used for the order. If a gift card mathes, it uses the gift card balance to pay for the order. Otherwise it tries to find a valid coupon code and applies the associated discount. | [optional] **CartUrl** | Pointer to **interface{}** | The cart url on your site. If present, it will be used on our hosted checkout application. | [optional] **ReturnUrl** | Pointer to **interface{}** | The return url on your site. If present, it will be used on our hosted checkout application. | [optional] **TermsUrl** | Pointer to **interface{}** | The terms and conditions url on your site. If present, it will be used on our hosted checkout application. | [optional] **PrivacyUrl** | Pointer to **interface{}** | The privacy policy url on your site. If present, it will be used on our hosted checkout application. | [optional] **Archive** | Pointer to **interface{}** | Send this attribute if you want to archive the order. | [optional] **Unarchive** | Pointer to **interface{}** | Send this attribute if you want to unarchive the order. | [optional] +**Pending** | Pointer to **interface{}** | Send this attribute if you want to move a draft or placing order to pending. Cannot be passed by sales channels. | [optional] **Place** | Pointer to **interface{}** | Send this attribute if you want to place the order. | [optional] **Cancel** | Pointer to **interface{}** | Send this attribute if you want to cancel a placed order. The order's authorization will be automatically voided. | [optional] -**Approve** | Pointer to **interface{}** | Send this attribute if you want to approve a placed order. | [optional] -**ApproveAndCapture** | Pointer to **interface{}** | Send this attribute if you want to approve and capture a placed order. | [optional] +**Approve** | Pointer to **interface{}** | Send this attribute if you want to approve a placed order. Cannot be passed by sales channels. | [optional] +**ApproveAndCapture** | Pointer to **interface{}** | Send this attribute if you want to approve and capture a placed order. Cannot be passed by sales channels. | [optional] **Authorize** | Pointer to **interface{}** | Send this attribute if you want to authorize the order's payment source. | [optional] -**AuthorizationAmountCents** | Pointer to **interface{}** | The authorization amount, in cents. | [optional] -**Capture** | Pointer to **interface{}** | Send this attribute if you want to capture an authorized order. | [optional] -**Refund** | Pointer to **interface{}** | Send this attribute if you want to refund a captured order. | [optional] +**AuthorizationAmountCents** | Pointer to **interface{}** | Send this attribute as a value in cents if you want to overwrite the amount to be authorized. | [optional] +**Capture** | Pointer to **interface{}** | Send this attribute if you want to capture an authorized order. Cannot be passed by sales channels. | [optional] +**Refund** | Pointer to **interface{}** | Send this attribute if you want to refund a captured order. Cannot be passed by sales channels. | [optional] +**Fulfill** | Pointer to **interface{}** | Send this attribute if you want to mark as fulfilled the order (shipments must be cancelled, shipped or delivered). Cannot be passed by sales channels. | [optional] **UpdateTaxes** | Pointer to **interface{}** | Send this attribute if you want to force tax calculation for this order (a tax calculator must be associated to the order's market). | [optional] **NullifyPaymentSource** | Pointer to **interface{}** | Send this attribute if you want to nullify the payment source for this order. | [optional] **BillingAddressCloneId** | Pointer to **interface{}** | The id of the address that you want to clone to create the order's billing address. | [optional] @@ -41,9 +49,12 @@ Name | Type | Description | Notes **SaveBillingAddressToCustomerAddressBook** | Pointer to **interface{}** | Send this attribute if you want the order's billing address to be saved in the customer's address book as a customer address. | [optional] **Refresh** | Pointer to **interface{}** | Send this attribute if you want to manually refresh the order. | [optional] **Validate** | Pointer to **interface{}** | Send this attribute if you want to trigger the external validation for the order. | [optional] -**CreateSubscriptions** | Pointer to **interface{}** | Send this attribute if you want to create order subscriptions from the recurring line items upon/after placing the order. Subscriptions are generated according to associated subscription model strategy. | [optional] +**CreateSubscriptions** | Pointer to **interface{}** | Send this attribute upon/after placing the order if you want to create order subscriptions from the line items that have a frequency. | [optional] +**StartEditing** | Pointer to **interface{}** | Send this attribute if you want to edit the order after it is placed. Remember you cannot exceed the original total amount. Cannot be passed by sales channels. | [optional] +**StopEditing** | Pointer to **interface{}** | Send this attribute to stop the editing for the order and return back to placed status. Cannot be passed by sales channels. | [optional] +**ResetCircuit** | Pointer to **interface{}** | Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -65,6 +76,76 @@ NewPATCHOrdersOrderId200ResponseDataAttributesWithDefaults instantiates a new PA This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetNumber + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetNumber() interface{}` + +GetNumber returns the Number field if non-nil, zero value otherwise. + +### GetNumberOk + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetNumberOk() (*interface{}, bool)` + +GetNumberOk returns a tuple with the Number field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumber + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetNumber(v interface{})` + +SetNumber sets Number field to given value. + +### HasNumber + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasNumber() bool` + +HasNumber returns a boolean if a field has been set. + +### SetNumberNil + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetNumberNil(b bool)` + + SetNumberNil sets the value for Number to be an explicit nil + +### UnsetNumber +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) UnsetNumber()` + +UnsetNumber ensures that no value is present for Number, not even an explicit nil +### GetAffiliateCode + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetAffiliateCode() interface{}` + +GetAffiliateCode returns the AffiliateCode field if non-nil, zero value otherwise. + +### GetAffiliateCodeOk + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetAffiliateCodeOk() (*interface{}, bool)` + +GetAffiliateCodeOk returns a tuple with the AffiliateCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAffiliateCode + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetAffiliateCode(v interface{})` + +SetAffiliateCode sets AffiliateCode field to given value. + +### HasAffiliateCode + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasAffiliateCode() bool` + +HasAffiliateCode returns a boolean if a field has been set. + +### SetAffiliateCodeNil + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetAffiliateCodeNil(b bool)` + + SetAffiliateCodeNil sets the value for AffiliateCode to be an explicit nil + +### UnsetAffiliateCode +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) UnsetAffiliateCode()` + +UnsetAffiliateCode ensures that no value is present for AffiliateCode, not even an explicit nil ### GetAutorefresh `func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetAutorefresh() interface{}` @@ -100,6 +181,41 @@ HasAutorefresh returns a boolean if a field has been set. `func (o *PATCHOrdersOrderId200ResponseDataAttributes) UnsetAutorefresh()` UnsetAutorefresh ensures that no value is present for Autorefresh, not even an explicit nil +### GetPlaceAsync + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetPlaceAsync() interface{}` + +GetPlaceAsync returns the PlaceAsync field if non-nil, zero value otherwise. + +### GetPlaceAsyncOk + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetPlaceAsyncOk() (*interface{}, bool)` + +GetPlaceAsyncOk returns a tuple with the PlaceAsync field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlaceAsync + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetPlaceAsync(v interface{})` + +SetPlaceAsync sets PlaceAsync field to given value. + +### HasPlaceAsync + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasPlaceAsync() bool` + +HasPlaceAsync returns a boolean if a field has been set. + +### SetPlaceAsyncNil + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetPlaceAsyncNil(b bool)` + + SetPlaceAsyncNil sets the value for PlaceAsync to be an explicit nil + +### UnsetPlaceAsync +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) UnsetPlaceAsync()` + +UnsetPlaceAsync ensures that no value is present for PlaceAsync, not even an explicit nil ### GetGuest `func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetGuest() interface{}` @@ -240,6 +356,146 @@ HasLanguageCode returns a boolean if a field has been set. `func (o *PATCHOrdersOrderId200ResponseDataAttributes) UnsetLanguageCode()` UnsetLanguageCode ensures that no value is present for LanguageCode, not even an explicit nil +### GetFreightTaxable + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetFreightTaxable() interface{}` + +GetFreightTaxable returns the FreightTaxable field if non-nil, zero value otherwise. + +### GetFreightTaxableOk + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetFreightTaxableOk() (*interface{}, bool)` + +GetFreightTaxableOk returns a tuple with the FreightTaxable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFreightTaxable + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetFreightTaxable(v interface{})` + +SetFreightTaxable sets FreightTaxable field to given value. + +### HasFreightTaxable + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasFreightTaxable() bool` + +HasFreightTaxable returns a boolean if a field has been set. + +### SetFreightTaxableNil + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetFreightTaxableNil(b bool)` + + SetFreightTaxableNil sets the value for FreightTaxable to be an explicit nil + +### UnsetFreightTaxable +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) UnsetFreightTaxable()` + +UnsetFreightTaxable ensures that no value is present for FreightTaxable, not even an explicit nil +### GetPaymentMethodTaxable + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetPaymentMethodTaxable() interface{}` + +GetPaymentMethodTaxable returns the PaymentMethodTaxable field if non-nil, zero value otherwise. + +### GetPaymentMethodTaxableOk + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetPaymentMethodTaxableOk() (*interface{}, bool)` + +GetPaymentMethodTaxableOk returns a tuple with the PaymentMethodTaxable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentMethodTaxable + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetPaymentMethodTaxable(v interface{})` + +SetPaymentMethodTaxable sets PaymentMethodTaxable field to given value. + +### HasPaymentMethodTaxable + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasPaymentMethodTaxable() bool` + +HasPaymentMethodTaxable returns a boolean if a field has been set. + +### SetPaymentMethodTaxableNil + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetPaymentMethodTaxableNil(b bool)` + + SetPaymentMethodTaxableNil sets the value for PaymentMethodTaxable to be an explicit nil + +### UnsetPaymentMethodTaxable +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) UnsetPaymentMethodTaxable()` + +UnsetPaymentMethodTaxable ensures that no value is present for PaymentMethodTaxable, not even an explicit nil +### GetAdjustmentTaxable + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetAdjustmentTaxable() interface{}` + +GetAdjustmentTaxable returns the AdjustmentTaxable field if non-nil, zero value otherwise. + +### GetAdjustmentTaxableOk + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetAdjustmentTaxableOk() (*interface{}, bool)` + +GetAdjustmentTaxableOk returns a tuple with the AdjustmentTaxable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdjustmentTaxable + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetAdjustmentTaxable(v interface{})` + +SetAdjustmentTaxable sets AdjustmentTaxable field to given value. + +### HasAdjustmentTaxable + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasAdjustmentTaxable() bool` + +HasAdjustmentTaxable returns a boolean if a field has been set. + +### SetAdjustmentTaxableNil + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetAdjustmentTaxableNil(b bool)` + + SetAdjustmentTaxableNil sets the value for AdjustmentTaxable to be an explicit nil + +### UnsetAdjustmentTaxable +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) UnsetAdjustmentTaxable()` + +UnsetAdjustmentTaxable ensures that no value is present for AdjustmentTaxable, not even an explicit nil +### GetGiftCardTaxable + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetGiftCardTaxable() interface{}` + +GetGiftCardTaxable returns the GiftCardTaxable field if non-nil, zero value otherwise. + +### GetGiftCardTaxableOk + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetGiftCardTaxableOk() (*interface{}, bool)` + +GetGiftCardTaxableOk returns a tuple with the GiftCardTaxable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGiftCardTaxable + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetGiftCardTaxable(v interface{})` + +SetGiftCardTaxable sets GiftCardTaxable field to given value. + +### HasGiftCardTaxable + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasGiftCardTaxable() bool` + +HasGiftCardTaxable returns a boolean if a field has been set. + +### SetGiftCardTaxableNil + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetGiftCardTaxableNil(b bool)` + + SetGiftCardTaxableNil sets the value for GiftCardTaxable to be an explicit nil + +### UnsetGiftCardTaxable +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) UnsetGiftCardTaxable()` + +UnsetGiftCardTaxable ensures that no value is present for GiftCardTaxable, not even an explicit nil ### GetShippingCountryCodeLock `func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetShippingCountryCodeLock() interface{}` @@ -345,41 +601,6 @@ HasGiftCardCode returns a boolean if a field has been set. `func (o *PATCHOrdersOrderId200ResponseDataAttributes) UnsetGiftCardCode()` UnsetGiftCardCode ensures that no value is present for GiftCardCode, not even an explicit nil -### GetGiftCardOrCouponCode - -`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetGiftCardOrCouponCode() interface{}` - -GetGiftCardOrCouponCode returns the GiftCardOrCouponCode field if non-nil, zero value otherwise. - -### GetGiftCardOrCouponCodeOk - -`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetGiftCardOrCouponCodeOk() (*interface{}, bool)` - -GetGiftCardOrCouponCodeOk returns a tuple with the GiftCardOrCouponCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGiftCardOrCouponCode - -`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetGiftCardOrCouponCode(v interface{})` - -SetGiftCardOrCouponCode sets GiftCardOrCouponCode field to given value. - -### HasGiftCardOrCouponCode - -`func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasGiftCardOrCouponCode() bool` - -HasGiftCardOrCouponCode returns a boolean if a field has been set. - -### SetGiftCardOrCouponCodeNil - -`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetGiftCardOrCouponCodeNil(b bool)` - - SetGiftCardOrCouponCodeNil sets the value for GiftCardOrCouponCode to be an explicit nil - -### UnsetGiftCardOrCouponCode -`func (o *PATCHOrdersOrderId200ResponseDataAttributes) UnsetGiftCardOrCouponCode()` - -UnsetGiftCardOrCouponCode ensures that no value is present for GiftCardOrCouponCode, not even an explicit nil ### GetCartUrl `func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetCartUrl() interface{}` @@ -590,6 +811,41 @@ HasUnarchive returns a boolean if a field has been set. `func (o *PATCHOrdersOrderId200ResponseDataAttributes) UnsetUnarchive()` UnsetUnarchive ensures that no value is present for Unarchive, not even an explicit nil +### GetPending + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetPending() interface{}` + +GetPending returns the Pending field if non-nil, zero value otherwise. + +### GetPendingOk + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetPendingOk() (*interface{}, bool)` + +GetPendingOk returns a tuple with the Pending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPending + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetPending(v interface{})` + +SetPending sets Pending field to given value. + +### HasPending + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasPending() bool` + +HasPending returns a boolean if a field has been set. + +### SetPendingNil + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetPendingNil(b bool)` + + SetPendingNil sets the value for Pending to be an explicit nil + +### UnsetPending +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) UnsetPending()` + +UnsetPending ensures that no value is present for Pending, not even an explicit nil ### GetPlace `func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetPlace() interface{}` @@ -870,6 +1126,41 @@ HasRefund returns a boolean if a field has been set. `func (o *PATCHOrdersOrderId200ResponseDataAttributes) UnsetRefund()` UnsetRefund ensures that no value is present for Refund, not even an explicit nil +### GetFulfill + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetFulfill() interface{}` + +GetFulfill returns the Fulfill field if non-nil, zero value otherwise. + +### GetFulfillOk + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetFulfillOk() (*interface{}, bool)` + +GetFulfillOk returns a tuple with the Fulfill field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFulfill + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetFulfill(v interface{})` + +SetFulfill sets Fulfill field to given value. + +### HasFulfill + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasFulfill() bool` + +HasFulfill returns a boolean if a field has been set. + +### SetFulfillNil + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetFulfillNil(b bool)` + + SetFulfillNil sets the value for Fulfill to be an explicit nil + +### UnsetFulfill +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) UnsetFulfill()` + +UnsetFulfill ensures that no value is present for Fulfill, not even an explicit nil ### GetUpdateTaxes `func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetUpdateTaxes() interface{}` @@ -1395,6 +1686,111 @@ HasCreateSubscriptions returns a boolean if a field has been set. `func (o *PATCHOrdersOrderId200ResponseDataAttributes) UnsetCreateSubscriptions()` UnsetCreateSubscriptions ensures that no value is present for CreateSubscriptions, not even an explicit nil +### GetStartEditing + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetStartEditing() interface{}` + +GetStartEditing returns the StartEditing field if non-nil, zero value otherwise. + +### GetStartEditingOk + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetStartEditingOk() (*interface{}, bool)` + +GetStartEditingOk returns a tuple with the StartEditing field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartEditing + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetStartEditing(v interface{})` + +SetStartEditing sets StartEditing field to given value. + +### HasStartEditing + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasStartEditing() bool` + +HasStartEditing returns a boolean if a field has been set. + +### SetStartEditingNil + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetStartEditingNil(b bool)` + + SetStartEditingNil sets the value for StartEditing to be an explicit nil + +### UnsetStartEditing +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) UnsetStartEditing()` + +UnsetStartEditing ensures that no value is present for StartEditing, not even an explicit nil +### GetStopEditing + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetStopEditing() interface{}` + +GetStopEditing returns the StopEditing field if non-nil, zero value otherwise. + +### GetStopEditingOk + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetStopEditingOk() (*interface{}, bool)` + +GetStopEditingOk returns a tuple with the StopEditing field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStopEditing + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetStopEditing(v interface{})` + +SetStopEditing sets StopEditing field to given value. + +### HasStopEditing + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasStopEditing() bool` + +HasStopEditing returns a boolean if a field has been set. + +### SetStopEditingNil + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetStopEditingNil(b bool)` + + SetStopEditingNil sets the value for StopEditing to be an explicit nil + +### UnsetStopEditing +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) UnsetStopEditing()` + +UnsetStopEditing ensures that no value is present for StopEditing, not even an explicit nil +### GetResetCircuit + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetResetCircuit() interface{}` + +GetResetCircuit returns the ResetCircuit field if non-nil, zero value otherwise. + +### GetResetCircuitOk + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetResetCircuitOk() (*interface{}, bool)` + +GetResetCircuitOk returns a tuple with the ResetCircuit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResetCircuit + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetResetCircuit(v interface{})` + +SetResetCircuit sets ResetCircuit field to given value. + +### HasResetCircuit + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasResetCircuit() bool` + +HasResetCircuit returns a boolean if a field has been set. + +### SetResetCircuitNil + +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetResetCircuitNil(b bool)` + + SetResetCircuitNil sets the value for ResetCircuit to be an explicit nil + +### UnsetResetCircuit +`func (o *PATCHOrdersOrderId200ResponseDataAttributes) UnsetResetCircuit()` + +UnsetResetCircuit ensures that no value is present for ResetCircuit, not even an explicit nil ### GetReference `func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/PATCHPackagesPackageId200ResponseDataAttributes.md b/api/docs/PATCHPackagesPackageId200ResponseDataAttributes.md index 0c5790d4..0540d3c0 100644 --- a/api/docs/PATCHPackagesPackageId200ResponseDataAttributes.md +++ b/api/docs/PATCHPackagesPackageId200ResponseDataAttributes.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | Unique name for the package | [optional] -**Code** | Pointer to **interface{}** | The package identifying code | [optional] +**Name** | Pointer to **interface{}** | Unique name for the package. | [optional] +**Code** | Pointer to **interface{}** | The package identifying code. | [optional] **Length** | Pointer to **interface{}** | The package length, used to automatically calculate the tax rates from the available carrier accounts. | [optional] **Width** | Pointer to **interface{}** | The package width, used to automatically calculate the tax rates from the available carrier accounts. | [optional] **Height** | Pointer to **interface{}** | The package height, used to automatically calculate the tax rates from the available carrier accounts. | [optional] **UnitOfLength** | Pointer to **interface{}** | The unit of length. Can be one of 'cm', or 'in'. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHParcelsParcelId200ResponseDataAttributes.md b/api/docs/PATCHParcelsParcelId200ResponseDataAttributes.md index ba039e1c..548061c6 100644 --- a/api/docs/PATCHParcelsParcelId200ResponseDataAttributes.md +++ b/api/docs/PATCHParcelsParcelId200ResponseDataAttributes.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Weight** | Pointer to **interface{}** | The parcel weight, used to automatically calculate the tax rates from the available carrier accounts. | [optional] -**UnitOfWeight** | Pointer to **interface{}** | Can be one of 'gr', 'lb', or 'oz' | [optional] +**UnitOfWeight** | Pointer to **interface{}** | The unit of weight. One of 'gr', 'oz', or 'lb'. | [optional] **EelPfc** | Pointer to **interface{}** | When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\". | [optional] -**ContentsType** | Pointer to **interface{}** | The type of item you are sending. Can be one of 'merchandise', 'gift', 'documents', 'returned_goods', 'sample', or 'other'. | [optional] +**ContentsType** | Pointer to **interface{}** | The type of item you are sending. | [optional] **ContentsExplanation** | Pointer to **interface{}** | If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute. | [optional] -**CustomsCertify** | Pointer to **interface{}** | Indicates if the provided information is accurate | [optional] +**CustomsCertify** | Pointer to **interface{}** | Indicates if the provided information is accurate. | [optional] **CustomsSigner** | Pointer to **interface{}** | This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this. | [optional] **NonDeliveryOption** | Pointer to **interface{}** | In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered. | [optional] **RestrictionType** | Pointer to **interface{}** | Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'. | [optional] @@ -24,11 +24,12 @@ Name | Type | Description | Notes **TrackingStatusDetail** | Pointer to **interface{}** | Additional information about the tracking status, automatically updated in real time by the shipping carrier. | [optional] **TrackingStatusUpdatedAt** | Pointer to **interface{}** | Time at which the parcel's tracking status was last updated. | [optional] **TrackingDetails** | Pointer to **interface{}** | The parcel's full tracking history, automatically updated in real time by the shipping carrier. | [optional] -**CarrierWeightOz** | Pointer to **interface{}** | The weight of the parcel as measured by the carrier in ounces (if available) | [optional] -**SignedBy** | Pointer to **interface{}** | The name of the person who signed for the parcel (if available) | [optional] +**CarrierWeightOz** | Pointer to **interface{}** | The weight of the parcel as measured by the carrier in ounces (if available). | [optional] +**SignedBy** | Pointer to **interface{}** | The name of the person who signed for the parcel (if available). | [optional] **Incoterm** | Pointer to **interface{}** | The type of Incoterm (if available). | [optional] +**DeliveryConfirmation** | Pointer to **interface{}** | The type of delivery confirmation option upon delivery. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -855,6 +856,41 @@ HasIncoterm returns a boolean if a field has been set. `func (o *PATCHParcelsParcelId200ResponseDataAttributes) UnsetIncoterm()` UnsetIncoterm ensures that no value is present for Incoterm, not even an explicit nil +### GetDeliveryConfirmation + +`func (o *PATCHParcelsParcelId200ResponseDataAttributes) GetDeliveryConfirmation() interface{}` + +GetDeliveryConfirmation returns the DeliveryConfirmation field if non-nil, zero value otherwise. + +### GetDeliveryConfirmationOk + +`func (o *PATCHParcelsParcelId200ResponseDataAttributes) GetDeliveryConfirmationOk() (*interface{}, bool)` + +GetDeliveryConfirmationOk returns a tuple with the DeliveryConfirmation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeliveryConfirmation + +`func (o *PATCHParcelsParcelId200ResponseDataAttributes) SetDeliveryConfirmation(v interface{})` + +SetDeliveryConfirmation sets DeliveryConfirmation field to given value. + +### HasDeliveryConfirmation + +`func (o *PATCHParcelsParcelId200ResponseDataAttributes) HasDeliveryConfirmation() bool` + +HasDeliveryConfirmation returns a boolean if a field has been set. + +### SetDeliveryConfirmationNil + +`func (o *PATCHParcelsParcelId200ResponseDataAttributes) SetDeliveryConfirmationNil(b bool)` + + SetDeliveryConfirmationNil sets the value for DeliveryConfirmation to be an explicit nil + +### UnsetDeliveryConfirmation +`func (o *PATCHParcelsParcelId200ResponseDataAttributes) UnsetDeliveryConfirmation()` + +UnsetDeliveryConfirmation ensures that no value is present for DeliveryConfirmation, not even an explicit nil ### GetReference `func (o *PATCHParcelsParcelId200ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes.md b/api/docs/PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes.md index d86378fb..bce8281b 100644 --- a/api/docs/PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes.md +++ b/api/docs/PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes.md @@ -4,17 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PaymentSourceType** | Pointer to **interface{}** | The payment source type, can be one of: 'AdyenPayment', 'AxervePayment', 'BraintreePayment', 'CheckoutComPayment', 'CreditCard', 'ExternalPayment', 'KlarnaPayment', 'PaypalPayment', 'SatispayPayment', 'StripePayment', or 'WireTransfer'. | [optional] +**Name** | Pointer to **interface{}** | The payment method's internal name. | [optional] +**PaymentSourceType** | Pointer to **interface{}** | The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'credit_cards', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] **Moto** | Pointer to **interface{}** | Send this attribute if you want to mark the payment as MOTO, must be supported by payment gateway. | [optional] **RequireCapture** | Pointer to **interface{}** | Send this attribute if you want to require the payment capture before fulfillment. | [optional] +**AutoPlace** | Pointer to **interface{}** | Send this attribute if you want to automatically place the order upon authorization performed asynchronously. | [optional] **AutoCapture** | Pointer to **interface{}** | Send this attribute if you want to automatically capture the payment upon authorization. | [optional] -**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark the payment method as disabled. | [optional] -**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark the payment method as enabled. | [optional] -**PriceAmountCents** | Pointer to **interface{}** | The payment method's price, in cents | [optional] +**PriceAmountCents** | Pointer to **interface{}** | The payment method's price, in cents. | [optional] **AutoCaptureMaxAmountCents** | Pointer to **interface{}** | Send this attribute if you want to limit automatic capture to orders for which the total amount is equal or less than the specified value, in cents. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -36,6 +38,41 @@ NewPATCHPaymentMethodsPaymentMethodId200ResponseDataAttributesWithDefaults insta This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetName + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + +### HasName + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil ### GetPaymentSourceType `func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetPaymentSourceType() interface{}` @@ -176,6 +213,41 @@ HasRequireCapture returns a boolean if a field has been set. `func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) UnsetRequireCapture()` UnsetRequireCapture ensures that no value is present for RequireCapture, not even an explicit nil +### GetAutoPlace + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetAutoPlace() interface{}` + +GetAutoPlace returns the AutoPlace field if non-nil, zero value otherwise. + +### GetAutoPlaceOk + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetAutoPlaceOk() (*interface{}, bool)` + +GetAutoPlaceOk returns a tuple with the AutoPlace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoPlace + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetAutoPlace(v interface{})` + +SetAutoPlace sets AutoPlace field to given value. + +### HasAutoPlace + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasAutoPlace() bool` + +HasAutoPlace returns a boolean if a field has been set. + +### SetAutoPlaceNil + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetAutoPlaceNil(b bool)` + + SetAutoPlaceNil sets the value for AutoPlace to be an explicit nil + +### UnsetAutoPlace +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) UnsetAutoPlace()` + +UnsetAutoPlace ensures that no value is present for AutoPlace, not even an explicit nil ### GetAutoCapture `func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetAutoCapture() interface{}` @@ -211,76 +283,6 @@ HasAutoCapture returns a boolean if a field has been set. `func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) UnsetAutoCapture()` UnsetAutoCapture ensures that no value is present for AutoCapture, not even an explicit nil -### GetDisable - -`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetDisable() interface{}` - -GetDisable returns the Disable field if non-nil, zero value otherwise. - -### GetDisableOk - -`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` - -GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisable - -`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetDisable(v interface{})` - -SetDisable sets Disable field to given value. - -### HasDisable - -`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasDisable() bool` - -HasDisable returns a boolean if a field has been set. - -### SetDisableNil - -`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetDisableNil(b bool)` - - SetDisableNil sets the value for Disable to be an explicit nil - -### UnsetDisable -`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) UnsetDisable()` - -UnsetDisable ensures that no value is present for Disable, not even an explicit nil -### GetEnable - -`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetEnable() interface{}` - -GetEnable returns the Enable field if non-nil, zero value otherwise. - -### GetEnableOk - -`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` - -GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEnable - -`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetEnable(v interface{})` - -SetEnable sets Enable field to given value. - -### HasEnable - -`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasEnable() bool` - -HasEnable returns a boolean if a field has been set. - -### SetEnableNil - -`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetEnableNil(b bool)` - - SetEnableNil sets the value for Enable to be an explicit nil - -### UnsetEnable -`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) UnsetEnable()` - -UnsetEnable ensures that no value is present for Enable, not even an explicit nil ### GetPriceAmountCents `func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetPriceAmountCents() interface{}` @@ -351,6 +353,76 @@ HasAutoCaptureMaxAmountCents returns a boolean if a field has been set. `func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) UnsetAutoCaptureMaxAmountCents()` UnsetAutoCaptureMaxAmountCents ensures that no value is present for AutoCaptureMaxAmountCents, not even an explicit nil +### GetDisable + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil ### GetReference `func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/PATCHPaymentOptionsPaymentOptionId200Response.md b/api/docs/PATCHPaymentOptionsPaymentOptionId200Response.md new file mode 100644 index 00000000..8607dad6 --- /dev/null +++ b/api/docs/PATCHPaymentOptionsPaymentOptionId200Response.md @@ -0,0 +1,56 @@ +# PATCHPaymentOptionsPaymentOptionId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**PATCHPaymentOptionsPaymentOptionId200ResponseData**](PATCHPaymentOptionsPaymentOptionId200ResponseData.md) | | [optional] + +## Methods + +### NewPATCHPaymentOptionsPaymentOptionId200Response + +`func NewPATCHPaymentOptionsPaymentOptionId200Response() *PATCHPaymentOptionsPaymentOptionId200Response` + +NewPATCHPaymentOptionsPaymentOptionId200Response instantiates a new PATCHPaymentOptionsPaymentOptionId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHPaymentOptionsPaymentOptionId200ResponseWithDefaults + +`func NewPATCHPaymentOptionsPaymentOptionId200ResponseWithDefaults() *PATCHPaymentOptionsPaymentOptionId200Response` + +NewPATCHPaymentOptionsPaymentOptionId200ResponseWithDefaults instantiates a new PATCHPaymentOptionsPaymentOptionId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PATCHPaymentOptionsPaymentOptionId200Response) GetData() PATCHPaymentOptionsPaymentOptionId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PATCHPaymentOptionsPaymentOptionId200Response) GetDataOk() (*PATCHPaymentOptionsPaymentOptionId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PATCHPaymentOptionsPaymentOptionId200Response) SetData(v PATCHPaymentOptionsPaymentOptionId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PATCHPaymentOptionsPaymentOptionId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHPaymentOptionsPaymentOptionId200ResponseData.md b/api/docs/PATCHPaymentOptionsPaymentOptionId200ResponseData.md new file mode 100644 index 00000000..01c9551d --- /dev/null +++ b/api/docs/PATCHPaymentOptionsPaymentOptionId200ResponseData.md @@ -0,0 +1,180 @@ +# PATCHPaymentOptionsPaymentOptionId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes**](PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTPaymentOptions201ResponseDataRelationships**](POSTPaymentOptions201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPATCHPaymentOptionsPaymentOptionId200ResponseData + +`func NewPATCHPaymentOptionsPaymentOptionId200ResponseData() *PATCHPaymentOptionsPaymentOptionId200ResponseData` + +NewPATCHPaymentOptionsPaymentOptionId200ResponseData instantiates a new PATCHPaymentOptionsPaymentOptionId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHPaymentOptionsPaymentOptionId200ResponseDataWithDefaults + +`func NewPATCHPaymentOptionsPaymentOptionId200ResponseDataWithDefaults() *PATCHPaymentOptionsPaymentOptionId200ResponseData` + +NewPATCHPaymentOptionsPaymentOptionId200ResponseDataWithDefaults instantiates a new PATCHPaymentOptionsPaymentOptionId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetAttributes() PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetAttributesOk() (*PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) SetAttributes(v PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetRelationships() POSTPaymentOptions201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetRelationshipsOk() (*POSTPaymentOptions201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) SetRelationships(v POSTPaymentOptions201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes.md b/api/docs/PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes.md new file mode 100644 index 00000000..4bce6050 --- /dev/null +++ b/api/docs/PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes.md @@ -0,0 +1,210 @@ +# PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **interface{}** | The payment option's name. Wehn blank is inherited by payment source type. | [optional] +**Data** | Pointer to **interface{}** | The payment options data to be added to the payment source payload. Check payment specific API for more details. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes + +`func NewPATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes() *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes` + +NewPATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes instantiates a new PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHPaymentOptionsPaymentOptionId200ResponseDataAttributesWithDefaults + +`func NewPATCHPaymentOptionsPaymentOptionId200ResponseDataAttributesWithDefaults() *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes` + +NewPATCHPaymentOptionsPaymentOptionId200ResponseDataAttributesWithDefaults instantiates a new PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + +### HasName + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetData + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetData(v interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil +### GetReference + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHPaypalGatewaysPaypalGatewayId200ResponseDataAttributes.md b/api/docs/PATCHPaypalGatewaysPaypalGatewayId200ResponseDataAttributes.md index 965d83af..e9b8d8d3 100644 --- a/api/docs/PATCHPaypalGatewaysPaypalGatewayId200ResponseDataAttributes.md +++ b/api/docs/PATCHPaypalGatewaysPaypalGatewayId200ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The payment gateway's internal name. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **ClientId** | Pointer to **interface{}** | The gateway client ID. | [optional] **ClientSecret** | Pointer to **interface{}** | The gateway client secret. | [optional] diff --git a/api/docs/PATCHPaypalPaymentsPaypalPaymentId200ResponseDataAttributes.md b/api/docs/PATCHPaypalPaymentsPaypalPaymentId200ResponseDataAttributes.md index a4c4fe12..36b9d3f9 100644 --- a/api/docs/PATCHPaypalPaymentsPaypalPaymentId200ResponseDataAttributes.md +++ b/api/docs/PATCHPaypalPaymentsPaypalPaymentId200ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaypalPayerId** | Pointer to **interface{}** | The id of the payer that PayPal passes in the return_url. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData.md b/api/docs/PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData.md index 3b25bb36..14e5a541 100644 --- a/api/docs/PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData.md +++ b/api/docs/PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes**](PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTFixedPricePromotions201ResponseDataRelationships**](POSTFixedPricePromotions201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationships**](POSTBuyXPayYPromotions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) GetRelationships() POSTFixedPricePromotions201ResponseDataRelationships` +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) GetRelationshipsOk() (*POSTFixedPricePromotions201ResponseDataRelationships, bool)` +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) SetRelationships(v POSTFixedPricePromotions201ResponseDataRelationships)` +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes.md b/api/docs/PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes.md index 7f68b05a..26520118 100644 --- a/api/docs/PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes.md +++ b/api/docs/PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes.md @@ -6,11 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The promotion's internal name. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] **StartsAt** | Pointer to **interface{}** | The activation date/time of this promotion. | [optional] **ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this promotion (must be after starts_at). | [optional] -**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. | [optional] +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **Percentage** | Pointer to **interface{}** | The discount percentage to be applied. | [optional] @@ -103,6 +107,76 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetStartsAt `func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetStartsAt() interface{}` @@ -208,6 +282,76 @@ HasTotalUsageLimit returns a boolean if a field has been set. `func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) UnsetTotalUsageLimit()` UnsetTotalUsageLimit ensures that no value is present for TotalUsageLimit, not even an explicit nil +### GetDisable + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil ### GetReference `func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/PATCHPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes.md b/api/docs/PATCHPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes.md index a2553168..a44f1581 100644 --- a/api/docs/PATCHPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes.md +++ b/api/docs/PATCHPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The price tier's name | [optional] +**Name** | Pointer to **interface{}** | The price tier's name. | [optional] **UpTo** | Pointer to **interface{}** | The tier upper limit, expressed as the line item frequency in days (or frequency label, ie 'monthly'). When 'null' it means infinity (useful to have an always matching tier). | [optional] **PriceAmountCents** | Pointer to **interface{}** | The price of this price tier, in cents. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHPriceListSchedulersPriceListSchedulerId200Response.md b/api/docs/PATCHPriceListSchedulersPriceListSchedulerId200Response.md new file mode 100644 index 00000000..13d75987 --- /dev/null +++ b/api/docs/PATCHPriceListSchedulersPriceListSchedulerId200Response.md @@ -0,0 +1,56 @@ +# PATCHPriceListSchedulersPriceListSchedulerId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**PATCHPriceListSchedulersPriceListSchedulerId200ResponseData**](PATCHPriceListSchedulersPriceListSchedulerId200ResponseData.md) | | [optional] + +## Methods + +### NewPATCHPriceListSchedulersPriceListSchedulerId200Response + +`func NewPATCHPriceListSchedulersPriceListSchedulerId200Response() *PATCHPriceListSchedulersPriceListSchedulerId200Response` + +NewPATCHPriceListSchedulersPriceListSchedulerId200Response instantiates a new PATCHPriceListSchedulersPriceListSchedulerId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseWithDefaults + +`func NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseWithDefaults() *PATCHPriceListSchedulersPriceListSchedulerId200Response` + +NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseWithDefaults instantiates a new PATCHPriceListSchedulersPriceListSchedulerId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200Response) GetData() PATCHPriceListSchedulersPriceListSchedulerId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200Response) GetDataOk() (*PATCHPriceListSchedulersPriceListSchedulerId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200Response) SetData(v PATCHPriceListSchedulersPriceListSchedulerId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHPriceListSchedulersPriceListSchedulerId200ResponseData.md b/api/docs/PATCHPriceListSchedulersPriceListSchedulerId200ResponseData.md new file mode 100644 index 00000000..fddfee7b --- /dev/null +++ b/api/docs/PATCHPriceListSchedulersPriceListSchedulerId200ResponseData.md @@ -0,0 +1,180 @@ +# PATCHPriceListSchedulersPriceListSchedulerId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes**](PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTPriceListSchedulers201ResponseDataRelationships**](POSTPriceListSchedulers201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseData + +`func NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseData() *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData` + +NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseData instantiates a new PATCHPriceListSchedulersPriceListSchedulerId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseDataWithDefaults + +`func NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseDataWithDefaults() *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData` + +NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseDataWithDefaults instantiates a new PATCHPriceListSchedulersPriceListSchedulerId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetAttributes() PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetAttributesOk() (*PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) SetAttributes(v PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetRelationships() POSTPriceListSchedulers201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetRelationshipsOk() (*POSTPriceListSchedulers201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) SetRelationships(v POSTPriceListSchedulers201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes.md b/api/docs/PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes.md new file mode 100644 index 00000000..9a15c260 --- /dev/null +++ b/api/docs/PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes.md @@ -0,0 +1,318 @@ +# PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **interface{}** | The price list scheduler's internal name. | [optional] +**StartsAt** | Pointer to **interface{}** | The activation date/time of this price list scheduler. | [optional] +**ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this price list scheduler (must be after starts_at). | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes + +`func NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes() *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes` + +NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes instantiates a new PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributesWithDefaults + +`func NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributesWithDefaults() *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes` + +NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributesWithDefaults instantiates a new PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + +### HasName + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetStartsAt + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetStartsAt() interface{}` + +GetStartsAt returns the StartsAt field if non-nil, zero value otherwise. + +### GetStartsAtOk + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool)` + +GetStartsAtOk returns a tuple with the StartsAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartsAt + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetStartsAt(v interface{})` + +SetStartsAt sets StartsAt field to given value. + +### HasStartsAt + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasStartsAt() bool` + +HasStartsAt returns a boolean if a field has been set. + +### SetStartsAtNil + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetStartsAtNil(b bool)` + + SetStartsAtNil sets the value for StartsAt to be an explicit nil + +### UnsetStartsAt +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnsetStartsAt()` + +UnsetStartsAt ensures that no value is present for StartsAt, not even an explicit nil +### GetExpiresAt + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetExpiresAt() interface{}` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetExpiresAt(v interface{})` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetDisable + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil +### GetReference + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHPriceListsPriceListId200ResponseDataAttributes.md b/api/docs/PATCHPriceListsPriceListId200ResponseDataAttributes.md index ca6c8796..9409017f 100644 --- a/api/docs/PATCHPriceListsPriceListId200ResponseDataAttributes.md +++ b/api/docs/PATCHPriceListsPriceListId200ResponseDataAttributes.md @@ -4,11 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The price list's internal name | [optional] +**Name** | Pointer to **interface{}** | The price list's internal name. | [optional] +**Code** | Pointer to **interface{}** | A string that you can use to identify the price list (must be unique within the environment). | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] **TaxIncluded** | Pointer to **interface{}** | Indicates if the associated prices include taxes. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Rules** | Pointer to **interface{}** | The rules (using Rules Engine) to be applied. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -65,6 +67,41 @@ HasName returns a boolean if a field has been set. `func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCode + +`func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) GetCode() interface{}` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) SetCode(v interface{})` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### SetCodeNil + +`func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil ### GetCurrencyCode `func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) GetCurrencyCode() interface{}` @@ -205,6 +242,41 @@ HasReferenceOrigin returns a boolean if a field has been set. `func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) UnsetReferenceOrigin()` UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetRules + +`func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) GetRules() interface{}` + +GetRules returns the Rules field if non-nil, zero value otherwise. + +### GetRulesOk + +`func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) GetRulesOk() (*interface{}, bool)` + +GetRulesOk returns a tuple with the Rules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRules + +`func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) SetRules(v interface{})` + +SetRules sets Rules field to given value. + +### HasRules + +`func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) HasRules() bool` + +HasRules returns a boolean if a field has been set. + +### SetRulesNil + +`func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) SetRulesNil(b bool)` + + SetRulesNil sets the value for Rules to be an explicit nil + +### UnsetRules +`func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) UnsetRules()` + +UnsetRules ensures that no value is present for Rules, not even an explicit nil ### GetMetadata `func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) GetMetadata() interface{}` diff --git a/api/docs/PATCHPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes.md b/api/docs/PATCHPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes.md index 74a9f3c0..363ed990 100644 --- a/api/docs/PATCHPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes.md +++ b/api/docs/PATCHPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The price tier's name | [optional] +**Name** | Pointer to **interface{}** | The price tier's name. | [optional] **UpTo** | Pointer to **interface{}** | The tier upper limit, expressed as the line item quantity. When 'null' it means infinity (useful to have an always matching tier). | [optional] **PriceAmountCents** | Pointer to **interface{}** | The price of this price tier, in cents. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHPricesPriceId200ResponseDataAttributes.md b/api/docs/PATCHPricesPriceId200ResponseDataAttributes.md index 6fba1abf..45a92c21 100644 --- a/api/docs/PATCHPricesPriceId200ResponseDataAttributes.md +++ b/api/docs/PATCHPricesPriceId200ResponseDataAttributes.md @@ -8,7 +8,8 @@ Name | Type | Description | Notes **AmountCents** | Pointer to **interface{}** | The SKU price amount for the associated price list, in cents. | [optional] **CompareAtAmountCents** | Pointer to **interface{}** | The compared price amount, in cents. Useful to display a percentage discount. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Rules** | Pointer to **interface{}** | The rules (using Rules Engine) to be applied. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -205,6 +206,41 @@ HasReferenceOrigin returns a boolean if a field has been set. `func (o *PATCHPricesPriceId200ResponseDataAttributes) UnsetReferenceOrigin()` UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetRules + +`func (o *PATCHPricesPriceId200ResponseDataAttributes) GetRules() interface{}` + +GetRules returns the Rules field if non-nil, zero value otherwise. + +### GetRulesOk + +`func (o *PATCHPricesPriceId200ResponseDataAttributes) GetRulesOk() (*interface{}, bool)` + +GetRulesOk returns a tuple with the Rules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRules + +`func (o *PATCHPricesPriceId200ResponseDataAttributes) SetRules(v interface{})` + +SetRules sets Rules field to given value. + +### HasRules + +`func (o *PATCHPricesPriceId200ResponseDataAttributes) HasRules() bool` + +HasRules returns a boolean if a field has been set. + +### SetRulesNil + +`func (o *PATCHPricesPriceId200ResponseDataAttributes) SetRulesNil(b bool)` + + SetRulesNil sets the value for Rules to be an explicit nil + +### UnsetRules +`func (o *PATCHPricesPriceId200ResponseDataAttributes) UnsetRules()` + +UnsetRules ensures that no value is present for Rules, not even an explicit nil ### GetMetadata `func (o *PATCHPricesPriceId200ResponseDataAttributes) GetMetadata() interface{}` diff --git a/api/docs/PATCHRefundsRefundId200Response.md b/api/docs/PATCHRefundsRefundId200Response.md new file mode 100644 index 00000000..951f7c84 --- /dev/null +++ b/api/docs/PATCHRefundsRefundId200Response.md @@ -0,0 +1,56 @@ +# PATCHRefundsRefundId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**PATCHRefundsRefundId200ResponseData**](PATCHRefundsRefundId200ResponseData.md) | | [optional] + +## Methods + +### NewPATCHRefundsRefundId200Response + +`func NewPATCHRefundsRefundId200Response() *PATCHRefundsRefundId200Response` + +NewPATCHRefundsRefundId200Response instantiates a new PATCHRefundsRefundId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHRefundsRefundId200ResponseWithDefaults + +`func NewPATCHRefundsRefundId200ResponseWithDefaults() *PATCHRefundsRefundId200Response` + +NewPATCHRefundsRefundId200ResponseWithDefaults instantiates a new PATCHRefundsRefundId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PATCHRefundsRefundId200Response) GetData() PATCHRefundsRefundId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PATCHRefundsRefundId200Response) GetDataOk() (*PATCHRefundsRefundId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PATCHRefundsRefundId200Response) SetData(v PATCHRefundsRefundId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PATCHRefundsRefundId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHRefundsRefundId200ResponseData.md b/api/docs/PATCHRefundsRefundId200ResponseData.md new file mode 100644 index 00000000..f86a6704 --- /dev/null +++ b/api/docs/PATCHRefundsRefundId200ResponseData.md @@ -0,0 +1,180 @@ +# PATCHRefundsRefundId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**PATCHRefundsRefundId200ResponseDataAttributes**](PATCHRefundsRefundId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**GETRefundsRefundId200ResponseDataRelationships**](GETRefundsRefundId200ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPATCHRefundsRefundId200ResponseData + +`func NewPATCHRefundsRefundId200ResponseData() *PATCHRefundsRefundId200ResponseData` + +NewPATCHRefundsRefundId200ResponseData instantiates a new PATCHRefundsRefundId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHRefundsRefundId200ResponseDataWithDefaults + +`func NewPATCHRefundsRefundId200ResponseDataWithDefaults() *PATCHRefundsRefundId200ResponseData` + +NewPATCHRefundsRefundId200ResponseDataWithDefaults instantiates a new PATCHRefundsRefundId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PATCHRefundsRefundId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PATCHRefundsRefundId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PATCHRefundsRefundId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *PATCHRefundsRefundId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *PATCHRefundsRefundId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *PATCHRefundsRefundId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *PATCHRefundsRefundId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PATCHRefundsRefundId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PATCHRefundsRefundId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *PATCHRefundsRefundId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PATCHRefundsRefundId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PATCHRefundsRefundId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *PATCHRefundsRefundId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PATCHRefundsRefundId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PATCHRefundsRefundId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PATCHRefundsRefundId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *PATCHRefundsRefundId200ResponseData) GetAttributes() PATCHRefundsRefundId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PATCHRefundsRefundId200ResponseData) GetAttributesOk() (*PATCHRefundsRefundId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PATCHRefundsRefundId200ResponseData) SetAttributes(v PATCHRefundsRefundId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *PATCHRefundsRefundId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *PATCHRefundsRefundId200ResponseData) GetRelationships() GETRefundsRefundId200ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PATCHRefundsRefundId200ResponseData) GetRelationshipsOk() (*GETRefundsRefundId200ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PATCHRefundsRefundId200ResponseData) SetRelationships(v GETRefundsRefundId200ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PATCHRefundsRefundId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHRefundsRefundId200ResponseDataAttributes.md b/api/docs/PATCHRefundsRefundId200ResponseDataAttributes.md new file mode 100644 index 00000000..f62825ba --- /dev/null +++ b/api/docs/PATCHRefundsRefundId200ResponseDataAttributes.md @@ -0,0 +1,210 @@ +# PATCHRefundsRefundId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Succeeded** | Pointer to **interface{}** | Indicates if the transaction is successful. | [optional] +**Forward** | Pointer to **interface{}** | Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPATCHRefundsRefundId200ResponseDataAttributes + +`func NewPATCHRefundsRefundId200ResponseDataAttributes() *PATCHRefundsRefundId200ResponseDataAttributes` + +NewPATCHRefundsRefundId200ResponseDataAttributes instantiates a new PATCHRefundsRefundId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHRefundsRefundId200ResponseDataAttributesWithDefaults + +`func NewPATCHRefundsRefundId200ResponseDataAttributesWithDefaults() *PATCHRefundsRefundId200ResponseDataAttributes` + +NewPATCHRefundsRefundId200ResponseDataAttributesWithDefaults instantiates a new PATCHRefundsRefundId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSucceeded + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetSucceeded() interface{}` + +GetSucceeded returns the Succeeded field if non-nil, zero value otherwise. + +### GetSucceededOk + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetSucceededOk() (*interface{}, bool)` + +GetSucceededOk returns a tuple with the Succeeded field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSucceeded + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) SetSucceeded(v interface{})` + +SetSucceeded sets Succeeded field to given value. + +### HasSucceeded + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) HasSucceeded() bool` + +HasSucceeded returns a boolean if a field has been set. + +### SetSucceededNil + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) SetSucceededNil(b bool)` + + SetSucceededNil sets the value for Succeeded to be an explicit nil + +### UnsetSucceeded +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) UnsetSucceeded()` + +UnsetSucceeded ensures that no value is present for Succeeded, not even an explicit nil +### GetForward + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetForward() interface{}` + +GetForward returns the Forward field if non-nil, zero value otherwise. + +### GetForwardOk + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetForwardOk() (*interface{}, bool)` + +GetForwardOk returns a tuple with the Forward field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetForward + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) SetForward(v interface{})` + +SetForward sets Forward field to given value. + +### HasForward + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) HasForward() bool` + +HasForward returns a boolean if a field has been set. + +### SetForwardNil + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) SetForwardNil(b bool)` + + SetForwardNil sets the value for Forward to be an explicit nil + +### UnsetForward +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) UnsetForward()` + +UnsetForward ensures that no value is present for Forward, not even an explicit nil +### GetReference + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *PATCHRefundsRefundId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHReturnLineItemsReturnLineItemId200ResponseDataAttributes.md b/api/docs/PATCHReturnLineItemsReturnLineItemId200ResponseDataAttributes.md index d6ff9e0b..6602a435 100644 --- a/api/docs/PATCHReturnLineItemsReturnLineItemId200ResponseDataAttributes.md +++ b/api/docs/PATCHReturnLineItemsReturnLineItemId200ResponseDataAttributes.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Quantity** | Pointer to **interface{}** | The line item quantity. | [optional] +**Quantity** | Pointer to **interface{}** | The return line item quantity. | [optional] **Restock** | Pointer to **interface{}** | Send this attribute if you want to restock the line item. | [optional] **ReturnReason** | Pointer to **interface{}** | Set of key-value pairs that you can use to add details about return reason. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHReturnsReturnId200ResponseDataAttributes.md b/api/docs/PATCHReturnsReturnId200ResponseDataAttributes.md index 46ec0150..4263ffa9 100644 --- a/api/docs/PATCHReturnsReturnId200ResponseDataAttributes.md +++ b/api/docs/PATCHReturnsReturnId200ResponseDataAttributes.md @@ -13,8 +13,10 @@ Name | Type | Description | Notes **Restock** | Pointer to **interface{}** | Send this attribute if you want to restock all of the return line items. | [optional] **Archive** | Pointer to **interface{}** | Send this attribute if you want to archive the return. | [optional] **Unarchive** | Pointer to **interface{}** | Send this attribute if you want to unarchive the return. | [optional] +**Refund** | Pointer to **interface{}** | Send this attribute if you want to create a refund for this return. | [optional] +**RefundAmountCents** | Pointer to **interface{}** | Send this attribute as a value in cents to specify the amount to be refunded. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -351,6 +353,76 @@ HasUnarchive returns a boolean if a field has been set. `func (o *PATCHReturnsReturnId200ResponseDataAttributes) UnsetUnarchive()` UnsetUnarchive ensures that no value is present for Unarchive, not even an explicit nil +### GetRefund + +`func (o *PATCHReturnsReturnId200ResponseDataAttributes) GetRefund() interface{}` + +GetRefund returns the Refund field if non-nil, zero value otherwise. + +### GetRefundOk + +`func (o *PATCHReturnsReturnId200ResponseDataAttributes) GetRefundOk() (*interface{}, bool)` + +GetRefundOk returns a tuple with the Refund field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRefund + +`func (o *PATCHReturnsReturnId200ResponseDataAttributes) SetRefund(v interface{})` + +SetRefund sets Refund field to given value. + +### HasRefund + +`func (o *PATCHReturnsReturnId200ResponseDataAttributes) HasRefund() bool` + +HasRefund returns a boolean if a field has been set. + +### SetRefundNil + +`func (o *PATCHReturnsReturnId200ResponseDataAttributes) SetRefundNil(b bool)` + + SetRefundNil sets the value for Refund to be an explicit nil + +### UnsetRefund +`func (o *PATCHReturnsReturnId200ResponseDataAttributes) UnsetRefund()` + +UnsetRefund ensures that no value is present for Refund, not even an explicit nil +### GetRefundAmountCents + +`func (o *PATCHReturnsReturnId200ResponseDataAttributes) GetRefundAmountCents() interface{}` + +GetRefundAmountCents returns the RefundAmountCents field if non-nil, zero value otherwise. + +### GetRefundAmountCentsOk + +`func (o *PATCHReturnsReturnId200ResponseDataAttributes) GetRefundAmountCentsOk() (*interface{}, bool)` + +GetRefundAmountCentsOk returns a tuple with the RefundAmountCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRefundAmountCents + +`func (o *PATCHReturnsReturnId200ResponseDataAttributes) SetRefundAmountCents(v interface{})` + +SetRefundAmountCents sets RefundAmountCents field to given value. + +### HasRefundAmountCents + +`func (o *PATCHReturnsReturnId200ResponseDataAttributes) HasRefundAmountCents() bool` + +HasRefundAmountCents returns a boolean if a field has been set. + +### SetRefundAmountCentsNil + +`func (o *PATCHReturnsReturnId200ResponseDataAttributes) SetRefundAmountCentsNil(b bool)` + + SetRefundAmountCentsNil sets the value for RefundAmountCents to be an explicit nil + +### UnsetRefundAmountCents +`func (o *PATCHReturnsReturnId200ResponseDataAttributes) UnsetRefundAmountCents()` + +UnsetRefundAmountCents ensures that no value is present for RefundAmountCents, not even an explicit nil ### GetReference `func (o *PATCHReturnsReturnId200ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/PATCHSatispayPaymentsSatispayPaymentId200ResponseDataAttributes.md b/api/docs/PATCHSatispayPaymentsSatispayPaymentId200ResponseDataAttributes.md index b6849b25..f8961167 100644 --- a/api/docs/PATCHSatispayPaymentsSatispayPaymentId200ResponseDataAttributes.md +++ b/api/docs/PATCHSatispayPaymentsSatispayPaymentId200ResponseDataAttributes.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **RedirectUrl** | Pointer to **interface{}** | The url to redirect the customer after the payment flow is completed. | [optional] **Refresh** | Pointer to **interface{}** | Send this attribute if you want to refresh all the pending transactions, can be used as webhooks fallback logic. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHShipmentsShipmentId200ResponseData.md b/api/docs/PATCHShipmentsShipmentId200ResponseData.md index fac14b42..47b6e6f9 100644 --- a/api/docs/PATCHShipmentsShipmentId200ResponseData.md +++ b/api/docs/PATCHShipmentsShipmentId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**PATCHShipmentsShipmentId200ResponseDataAttributes**](PATCHShipmentsShipmentId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**GETShipmentsShipmentId200ResponseDataRelationships**](GETShipmentsShipmentId200ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTShipments201ResponseDataRelationships**](POSTShipments201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *PATCHShipmentsShipmentId200ResponseData) GetRelationships() GETShipmentsShipmentId200ResponseDataRelationships` +`func (o *PATCHShipmentsShipmentId200ResponseData) GetRelationships() POSTShipments201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *PATCHShipmentsShipmentId200ResponseData) GetRelationshipsOk() (*GETShipmentsShipmentId200ResponseDataRelationships, bool)` +`func (o *PATCHShipmentsShipmentId200ResponseData) GetRelationshipsOk() (*POSTShipments201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *PATCHShipmentsShipmentId200ResponseData) SetRelationships(v GETShipmentsShipmentId200ResponseDataRelationships)` +`func (o *PATCHShipmentsShipmentId200ResponseData) SetRelationships(v POSTShipments201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/PATCHShipmentsShipmentId200ResponseDataAttributes.md b/api/docs/PATCHShipmentsShipmentId200ResponseDataAttributes.md index 27ec54b2..6b2a748d 100644 --- a/api/docs/PATCHShipmentsShipmentId200ResponseDataAttributes.md +++ b/api/docs/PATCHShipmentsShipmentId200ResponseDataAttributes.md @@ -4,16 +4,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Number** | Pointer to **interface{}** | Unique identifier for the shipment. Cannot be passed by sales channels. | [optional] +**Upcoming** | Pointer to **interface{}** | Send this attribute if you want to mark this shipment as upcoming. Cannot be passed by sales channels. | [optional] +**Cancel** | Pointer to **interface{}** | Send this attribute if you want to mark this shipment as cancelled (unless already shipped or delivered). Cannot be passed by sales channels. | [optional] **OnHold** | Pointer to **interface{}** | Send this attribute if you want to put this shipment on hold. | [optional] **Picking** | Pointer to **interface{}** | Send this attribute if you want to start picking this shipment. | [optional] **Packing** | Pointer to **interface{}** | Send this attribute if you want to start packing this shipment. | [optional] **ReadyToShip** | Pointer to **interface{}** | Send this attribute if you want to mark this shipment as ready to ship. | [optional] **Ship** | Pointer to **interface{}** | Send this attribute if you want to mark this shipment as shipped. | [optional] +**Deliver** | Pointer to **interface{}** | Send this attribute if you want to mark this shipment as delivered. | [optional] +**ReserveStock** | Pointer to **interface{}** | Send this attribute if you want to automatically reserve the stock for each of the associated stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels. | [optional] +**ReleaseStock** | Pointer to **interface{}** | Send this attribute if you want to automatically destroy the stock reservations for each of the associated stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels. | [optional] +**DecrementStock** | Pointer to **interface{}** | Send this attribute if you want to automatically decrement and release the stock for each of the associated stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels. | [optional] **GetRates** | Pointer to **interface{}** | Send this attribute if you want get the shipping rates from the associated carrier accounts. | [optional] **SelectedRateId** | Pointer to **interface{}** | The selected purchase rate from the available shipping rates. | [optional] **Purchase** | Pointer to **interface{}** | Send this attribute if you want to purchase this shipment with the selected rate. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -35,6 +42,111 @@ NewPATCHShipmentsShipmentId200ResponseDataAttributesWithDefaults instantiates a This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetNumber + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetNumber() interface{}` + +GetNumber returns the Number field if non-nil, zero value otherwise. + +### GetNumberOk + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetNumberOk() (*interface{}, bool)` + +GetNumberOk returns a tuple with the Number field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumber + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetNumber(v interface{})` + +SetNumber sets Number field to given value. + +### HasNumber + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) HasNumber() bool` + +HasNumber returns a boolean if a field has been set. + +### SetNumberNil + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetNumberNil(b bool)` + + SetNumberNil sets the value for Number to be an explicit nil + +### UnsetNumber +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) UnsetNumber()` + +UnsetNumber ensures that no value is present for Number, not even an explicit nil +### GetUpcoming + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetUpcoming() interface{}` + +GetUpcoming returns the Upcoming field if non-nil, zero value otherwise. + +### GetUpcomingOk + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetUpcomingOk() (*interface{}, bool)` + +GetUpcomingOk returns a tuple with the Upcoming field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpcoming + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetUpcoming(v interface{})` + +SetUpcoming sets Upcoming field to given value. + +### HasUpcoming + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) HasUpcoming() bool` + +HasUpcoming returns a boolean if a field has been set. + +### SetUpcomingNil + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetUpcomingNil(b bool)` + + SetUpcomingNil sets the value for Upcoming to be an explicit nil + +### UnsetUpcoming +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) UnsetUpcoming()` + +UnsetUpcoming ensures that no value is present for Upcoming, not even an explicit nil +### GetCancel + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetCancel() interface{}` + +GetCancel returns the Cancel field if non-nil, zero value otherwise. + +### GetCancelOk + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetCancelOk() (*interface{}, bool)` + +GetCancelOk returns a tuple with the Cancel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCancel + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetCancel(v interface{})` + +SetCancel sets Cancel field to given value. + +### HasCancel + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) HasCancel() bool` + +HasCancel returns a boolean if a field has been set. + +### SetCancelNil + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetCancelNil(b bool)` + + SetCancelNil sets the value for Cancel to be an explicit nil + +### UnsetCancel +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) UnsetCancel()` + +UnsetCancel ensures that no value is present for Cancel, not even an explicit nil ### GetOnHold `func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetOnHold() interface{}` @@ -210,6 +322,146 @@ HasShip returns a boolean if a field has been set. `func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) UnsetShip()` UnsetShip ensures that no value is present for Ship, not even an explicit nil +### GetDeliver + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetDeliver() interface{}` + +GetDeliver returns the Deliver field if non-nil, zero value otherwise. + +### GetDeliverOk + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetDeliverOk() (*interface{}, bool)` + +GetDeliverOk returns a tuple with the Deliver field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeliver + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetDeliver(v interface{})` + +SetDeliver sets Deliver field to given value. + +### HasDeliver + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) HasDeliver() bool` + +HasDeliver returns a boolean if a field has been set. + +### SetDeliverNil + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetDeliverNil(b bool)` + + SetDeliverNil sets the value for Deliver to be an explicit nil + +### UnsetDeliver +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) UnsetDeliver()` + +UnsetDeliver ensures that no value is present for Deliver, not even an explicit nil +### GetReserveStock + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetReserveStock() interface{}` + +GetReserveStock returns the ReserveStock field if non-nil, zero value otherwise. + +### GetReserveStockOk + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetReserveStockOk() (*interface{}, bool)` + +GetReserveStockOk returns a tuple with the ReserveStock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReserveStock + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetReserveStock(v interface{})` + +SetReserveStock sets ReserveStock field to given value. + +### HasReserveStock + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) HasReserveStock() bool` + +HasReserveStock returns a boolean if a field has been set. + +### SetReserveStockNil + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetReserveStockNil(b bool)` + + SetReserveStockNil sets the value for ReserveStock to be an explicit nil + +### UnsetReserveStock +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) UnsetReserveStock()` + +UnsetReserveStock ensures that no value is present for ReserveStock, not even an explicit nil +### GetReleaseStock + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetReleaseStock() interface{}` + +GetReleaseStock returns the ReleaseStock field if non-nil, zero value otherwise. + +### GetReleaseStockOk + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetReleaseStockOk() (*interface{}, bool)` + +GetReleaseStockOk returns a tuple with the ReleaseStock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleaseStock + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetReleaseStock(v interface{})` + +SetReleaseStock sets ReleaseStock field to given value. + +### HasReleaseStock + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) HasReleaseStock() bool` + +HasReleaseStock returns a boolean if a field has been set. + +### SetReleaseStockNil + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetReleaseStockNil(b bool)` + + SetReleaseStockNil sets the value for ReleaseStock to be an explicit nil + +### UnsetReleaseStock +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) UnsetReleaseStock()` + +UnsetReleaseStock ensures that no value is present for ReleaseStock, not even an explicit nil +### GetDecrementStock + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetDecrementStock() interface{}` + +GetDecrementStock returns the DecrementStock field if non-nil, zero value otherwise. + +### GetDecrementStockOk + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetDecrementStockOk() (*interface{}, bool)` + +GetDecrementStockOk returns a tuple with the DecrementStock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecrementStock + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetDecrementStock(v interface{})` + +SetDecrementStock sets DecrementStock field to given value. + +### HasDecrementStock + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) HasDecrementStock() bool` + +HasDecrementStock returns a boolean if a field has been set. + +### SetDecrementStockNil + +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetDecrementStockNil(b bool)` + + SetDecrementStockNil sets the value for DecrementStock to be an explicit nil + +### UnsetDecrementStock +`func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) UnsetDecrementStock()` + +UnsetDecrementStock ensures that no value is present for DecrementStock, not even an explicit nil ### GetGetRates `func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetGetRates() interface{}` diff --git a/api/docs/PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes.md b/api/docs/PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes.md index 37483033..7a48e35b 100644 --- a/api/docs/PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes.md +++ b/api/docs/PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes.md @@ -5,8 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The shipping category name. | [optional] +**Code** | Pointer to **interface{}** | A string that you can use to identify the shipping category (must be unique within the environment). | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -63,6 +64,41 @@ HasName returns a boolean if a field has been set. `func (o *PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCode + +`func (o *PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes) GetCode() interface{}` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes) SetCode(v interface{})` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### SetCodeNil + +`func (o *PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil ### GetReference `func (o *PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/PATCHShippingMethodsShippingMethodId200ResponseDataAttributes.md b/api/docs/PATCHShippingMethodsShippingMethodId200ResponseDataAttributes.md index cc0be3f6..bd5c96be 100644 --- a/api/docs/PATCHShippingMethodsShippingMethodId200ResponseDataAttributes.md +++ b/api/docs/PATCHShippingMethodsShippingMethodId200ResponseDataAttributes.md @@ -4,18 +4,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The shipping method's name | [optional] -**Scheme** | Pointer to **interface{}** | The shipping method's scheme, one of 'flat' or 'weight_tiered'. | [optional] +**Name** | Pointer to **interface{}** | The shipping method's name. | [optional] +**Scheme** | Pointer to **interface{}** | The shipping method's scheme. One of 'flat', 'weight_tiered', or 'external'. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] -**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark the shipping method as disabled. | [optional] -**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark the shipping method as enabled. | [optional] +**ExternalPricesUrl** | Pointer to **interface{}** | The URL used to overwrite prices by an external source. | [optional] **PriceAmountCents** | Pointer to **interface{}** | The price of this shipping method, in cents. | [optional] **FreeOverAmountCents** | Pointer to **interface{}** | Apply free shipping if the order amount is over this value, in cents. | [optional] +**UseSubtotal** | Pointer to **interface{}** | Send this attribute if you want to compare the free over amount with order's subtotal (excluding discounts, if any). | [optional] **MinWeight** | Pointer to **interface{}** | The minimum weight for which this shipping method is available. | [optional] **MaxWeight** | Pointer to **interface{}** | The maximum weight for which this shipping method is available. | [optional] -**UnitOfWeight** | Pointer to **interface{}** | Can be one of 'gr', 'lb', or 'oz' | [optional] +**UnitOfWeight** | Pointer to **interface{}** | The unit of weight. One of 'gr', 'oz', or 'lb'. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] +**ResetCircuit** | Pointer to **interface{}** | Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -142,76 +145,41 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil -### GetDisable +### GetExternalPricesUrl -`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetDisable() interface{}` +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetExternalPricesUrl() interface{}` -GetDisable returns the Disable field if non-nil, zero value otherwise. +GetExternalPricesUrl returns the ExternalPricesUrl field if non-nil, zero value otherwise. -### GetDisableOk +### GetExternalPricesUrlOk -`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetExternalPricesUrlOk() (*interface{}, bool)` -GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +GetExternalPricesUrlOk returns a tuple with the ExternalPricesUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDisable - -`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetDisable(v interface{})` - -SetDisable sets Disable field to given value. - -### HasDisable - -`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) HasDisable() bool` - -HasDisable returns a boolean if a field has been set. - -### SetDisableNil - -`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetDisableNil(b bool)` - - SetDisableNil sets the value for Disable to be an explicit nil - -### UnsetDisable -`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) UnsetDisable()` +### SetExternalPricesUrl -UnsetDisable ensures that no value is present for Disable, not even an explicit nil -### GetEnable - -`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetEnable() interface{}` +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetExternalPricesUrl(v interface{})` -GetEnable returns the Enable field if non-nil, zero value otherwise. +SetExternalPricesUrl sets ExternalPricesUrl field to given value. -### GetEnableOk +### HasExternalPricesUrl -`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) HasExternalPricesUrl() bool` -GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. +HasExternalPricesUrl returns a boolean if a field has been set. -### SetEnable +### SetExternalPricesUrlNil -`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetEnable(v interface{})` +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetExternalPricesUrlNil(b bool)` -SetEnable sets Enable field to given value. + SetExternalPricesUrlNil sets the value for ExternalPricesUrl to be an explicit nil -### HasEnable +### UnsetExternalPricesUrl +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) UnsetExternalPricesUrl()` -`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) HasEnable() bool` - -HasEnable returns a boolean if a field has been set. - -### SetEnableNil - -`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetEnableNil(b bool)` - - SetEnableNil sets the value for Enable to be an explicit nil - -### UnsetEnable -`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) UnsetEnable()` - -UnsetEnable ensures that no value is present for Enable, not even an explicit nil +UnsetExternalPricesUrl ensures that no value is present for ExternalPricesUrl, not even an explicit nil ### GetPriceAmountCents `func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetPriceAmountCents() interface{}` @@ -282,6 +250,41 @@ HasFreeOverAmountCents returns a boolean if a field has been set. `func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) UnsetFreeOverAmountCents()` UnsetFreeOverAmountCents ensures that no value is present for FreeOverAmountCents, not even an explicit nil +### GetUseSubtotal + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetUseSubtotal() interface{}` + +GetUseSubtotal returns the UseSubtotal field if non-nil, zero value otherwise. + +### GetUseSubtotalOk + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetUseSubtotalOk() (*interface{}, bool)` + +GetUseSubtotalOk returns a tuple with the UseSubtotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseSubtotal + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetUseSubtotal(v interface{})` + +SetUseSubtotal sets UseSubtotal field to given value. + +### HasUseSubtotal + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) HasUseSubtotal() bool` + +HasUseSubtotal returns a boolean if a field has been set. + +### SetUseSubtotalNil + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetUseSubtotalNil(b bool)` + + SetUseSubtotalNil sets the value for UseSubtotal to be an explicit nil + +### UnsetUseSubtotal +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) UnsetUseSubtotal()` + +UnsetUseSubtotal ensures that no value is present for UseSubtotal, not even an explicit nil ### GetMinWeight `func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetMinWeight() interface{}` @@ -387,6 +390,111 @@ HasUnitOfWeight returns a boolean if a field has been set. `func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) UnsetUnitOfWeight()` UnsetUnitOfWeight ensures that no value is present for UnitOfWeight, not even an explicit nil +### GetDisable + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil +### GetResetCircuit + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetResetCircuit() interface{}` + +GetResetCircuit returns the ResetCircuit field if non-nil, zero value otherwise. + +### GetResetCircuitOk + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetResetCircuitOk() (*interface{}, bool)` + +GetResetCircuitOk returns a tuple with the ResetCircuit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResetCircuit + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetResetCircuit(v interface{})` + +SetResetCircuit sets ResetCircuit field to given value. + +### HasResetCircuit + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) HasResetCircuit() bool` + +HasResetCircuit returns a boolean if a field has been set. + +### SetResetCircuitNil + +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetResetCircuitNil(b bool)` + + SetResetCircuitNil sets the value for ResetCircuit to be an explicit nil + +### UnsetResetCircuit +`func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) UnsetResetCircuit()` + +UnsetResetCircuit ensures that no value is present for ResetCircuit, not even an explicit nil ### GetReference `func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/PATCHShippingWeightTiersShippingWeightTierId200ResponseDataAttributes.md b/api/docs/PATCHShippingWeightTiersShippingWeightTierId200ResponseDataAttributes.md index 30add1f9..fe037842 100644 --- a/api/docs/PATCHShippingWeightTiersShippingWeightTierId200ResponseDataAttributes.md +++ b/api/docs/PATCHShippingWeightTiersShippingWeightTierId200ResponseDataAttributes.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The shipping method tier's name | [optional] +**Name** | Pointer to **interface{}** | The shipping method tier's name. | [optional] **UpTo** | Pointer to **interface{}** | The tier upper limit. When 'null' it means infinity (useful to have an always matching tier). | [optional] **PriceAmountCents** | Pointer to **interface{}** | The price of this shipping method tier, in cents. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHShippingZonesShippingZoneId200ResponseDataAttributes.md b/api/docs/PATCHShippingZonesShippingZoneId200ResponseDataAttributes.md index 2e537246..eb9aa3ff 100644 --- a/api/docs/PATCHShippingZonesShippingZoneId200ResponseDataAttributes.md +++ b/api/docs/PATCHShippingZonesShippingZoneId200ResponseDataAttributes.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **ZipCodeRegex** | Pointer to **interface{}** | The regex that will be evaluated to match the shipping address zip code. | [optional] **NotZipCodeRegex** | Pointer to **interface{}** | The regex that will be evaluated as negative match for the shipping zip country code. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHSkuListItemsSkuListItemId200ResponseDataAttributes.md b/api/docs/PATCHSkuListItemsSkuListItemId200ResponseDataAttributes.md index 11cac25d..5f61ed68 100644 --- a/api/docs/PATCHSkuListItemsSkuListItemId200ResponseDataAttributes.md +++ b/api/docs/PATCHSkuListItemsSkuListItemId200ResponseDataAttributes.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **SkuCode** | Pointer to **interface{}** | The code of the associated SKU. | [optional] **Quantity** | Pointer to **interface{}** | The SKU quantity for this SKU list item. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes.md b/api/docs/PATCHSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes.md index fc447488..7db01f91 100644 --- a/api/docs/PATCHSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes.md +++ b/api/docs/PATCHSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **AllSkus** | Pointer to **interface{}** | Indicates if the rule is activated only when all of the SKUs of the list is also part of the order. | [optional] **MinQuantity** | Pointer to **interface{}** | The min quantity of SKUs of the list that must be also part of the order. If positive, overwrites the 'all_skus' option. When the SKU list is manual, its items quantities are honoured. | [optional] diff --git a/api/docs/PATCHSkuListsSkuListId200ResponseDataAttributes.md b/api/docs/PATCHSkuListsSkuListId200ResponseDataAttributes.md index bda23c66..2a3fc331 100644 --- a/api/docs/PATCHSkuListsSkuListId200ResponseDataAttributes.md +++ b/api/docs/PATCHSkuListsSkuListId200ResponseDataAttributes.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **Manual** | Pointer to **interface{}** | Indicates if the SKU list is populated manually. | [optional] **SkuCodeRegex** | Pointer to **interface{}** | The regex that will be evaluated to match the SKU codes. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHSkuOptionsSkuOptionId200ResponseData.md b/api/docs/PATCHSkuOptionsSkuOptionId200ResponseData.md index 72ef787f..8a11ecd1 100644 --- a/api/docs/PATCHSkuOptionsSkuOptionId200ResponseData.md +++ b/api/docs/PATCHSkuOptionsSkuOptionId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**PATCHSkuOptionsSkuOptionId200ResponseDataAttributes**](PATCHSkuOptionsSkuOptionId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTBillingInfoValidationRules201ResponseDataRelationships**](POSTBillingInfoValidationRules201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTSkuOptions201ResponseDataRelationships**](POSTSkuOptions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *PATCHSkuOptionsSkuOptionId200ResponseData) GetRelationships() POSTBillingInfoValidationRules201ResponseDataRelationships` +`func (o *PATCHSkuOptionsSkuOptionId200ResponseData) GetRelationships() POSTSkuOptions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *PATCHSkuOptionsSkuOptionId200ResponseData) GetRelationshipsOk() (*POSTBillingInfoValidationRules201ResponseDataRelationships, bool)` +`func (o *PATCHSkuOptionsSkuOptionId200ResponseData) GetRelationshipsOk() (*POSTSkuOptions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *PATCHSkuOptionsSkuOptionId200ResponseData) SetRelationships(v POSTBillingInfoValidationRules201ResponseDataRelationships)` +`func (o *PATCHSkuOptionsSkuOptionId200ResponseData) SetRelationships(v POSTSkuOptions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/PATCHSkuOptionsSkuOptionId200ResponseDataAttributes.md b/api/docs/PATCHSkuOptionsSkuOptionId200ResponseDataAttributes.md index c71443cb..37415a9a 100644 --- a/api/docs/PATCHSkuOptionsSkuOptionId200ResponseDataAttributes.md +++ b/api/docs/PATCHSkuOptionsSkuOptionId200ResponseDataAttributes.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **interface{}** | The SKU option's internal name | [optional] +**Name** | Pointer to **interface{}** | The SKU option's internal name. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] **Description** | Pointer to **interface{}** | An internal description of the SKU option. | [optional] **PriceAmountCents** | Pointer to **interface{}** | The price of this shipping method, in cents. | [optional] **DelayHours** | Pointer to **interface{}** | The delay time (in hours) that should be added to the delivery lead time when this option is purchased. | [optional] **SkuCodeRegex** | Pointer to **interface{}** | The regex that will be evaluated to match the SKU codes. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHSkusSkuId200ResponseDataAttributes.md b/api/docs/PATCHSkusSkuId200ResponseDataAttributes.md index ce755786..a36a696e 100644 --- a/api/docs/PATCHSkusSkuId200ResponseDataAttributes.md +++ b/api/docs/PATCHSkusSkuId200ResponseDataAttributes.md @@ -10,12 +10,12 @@ Name | Type | Description | Notes **ImageUrl** | Pointer to **interface{}** | The URL of an image that represents the SKU. | [optional] **PiecesPerPack** | Pointer to **interface{}** | The number of pieces that compose the SKU. This is useful to describe sets and bundles. | [optional] **Weight** | Pointer to **interface{}** | The weight of the SKU. If present, it will be used to calculate the shipping rates. | [optional] -**UnitOfWeight** | Pointer to **interface{}** | Can be one of 'gr', 'lb', or 'oz' | [optional] +**UnitOfWeight** | Pointer to **interface{}** | The unit of weight. One of 'gr', 'oz', or 'lb'. | [optional] **HsTariffNumber** | Pointer to **interface{}** | The Harmonized System Code used by customs to identify the products shipped across international borders. | [optional] **DoNotShip** | Pointer to **interface{}** | Indicates if the SKU doesn't generate shipments. | [optional] **DoNotTrack** | Pointer to **interface{}** | Indicates if the SKU doesn't track the stock inventory. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHStockItemsStockItemId200ResponseDataAttributes.md b/api/docs/PATCHStockItemsStockItemId200ResponseDataAttributes.md index 953a08c0..6bd6939d 100644 --- a/api/docs/PATCHStockItemsStockItemId200ResponseDataAttributes.md +++ b/api/docs/PATCHStockItemsStockItemId200ResponseDataAttributes.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SkuCode** | Pointer to **interface{}** | The code of the associated SKU. | [optional] **Quantity** | Pointer to **interface{}** | The stock item quantity. | [optional] +**Validate** | Pointer to **interface{}** | Send this attribute if you want to validate the stock item quantity against the existing reserved stock one, returns an error in case the former is smaller. Cannot be passed by sales channels. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -99,6 +100,41 @@ HasQuantity returns a boolean if a field has been set. `func (o *PATCHStockItemsStockItemId200ResponseDataAttributes) UnsetQuantity()` UnsetQuantity ensures that no value is present for Quantity, not even an explicit nil +### GetValidate + +`func (o *PATCHStockItemsStockItemId200ResponseDataAttributes) GetValidate() interface{}` + +GetValidate returns the Validate field if non-nil, zero value otherwise. + +### GetValidateOk + +`func (o *PATCHStockItemsStockItemId200ResponseDataAttributes) GetValidateOk() (*interface{}, bool)` + +GetValidateOk returns a tuple with the Validate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValidate + +`func (o *PATCHStockItemsStockItemId200ResponseDataAttributes) SetValidate(v interface{})` + +SetValidate sets Validate field to given value. + +### HasValidate + +`func (o *PATCHStockItemsStockItemId200ResponseDataAttributes) HasValidate() bool` + +HasValidate returns a boolean if a field has been set. + +### SetValidateNil + +`func (o *PATCHStockItemsStockItemId200ResponseDataAttributes) SetValidateNil(b bool)` + + SetValidateNil sets the value for Validate to be an explicit nil + +### UnsetValidate +`func (o *PATCHStockItemsStockItemId200ResponseDataAttributes) UnsetValidate()` + +UnsetValidate ensures that no value is present for Validate, not even an explicit nil ### GetReference `func (o *PATCHStockItemsStockItemId200ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/PATCHStockLineItemsStockLineItemId200Response.md b/api/docs/PATCHStockLineItemsStockLineItemId200Response.md new file mode 100644 index 00000000..c6b77f47 --- /dev/null +++ b/api/docs/PATCHStockLineItemsStockLineItemId200Response.md @@ -0,0 +1,56 @@ +# PATCHStockLineItemsStockLineItemId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**PATCHStockLineItemsStockLineItemId200ResponseData**](PATCHStockLineItemsStockLineItemId200ResponseData.md) | | [optional] + +## Methods + +### NewPATCHStockLineItemsStockLineItemId200Response + +`func NewPATCHStockLineItemsStockLineItemId200Response() *PATCHStockLineItemsStockLineItemId200Response` + +NewPATCHStockLineItemsStockLineItemId200Response instantiates a new PATCHStockLineItemsStockLineItemId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHStockLineItemsStockLineItemId200ResponseWithDefaults + +`func NewPATCHStockLineItemsStockLineItemId200ResponseWithDefaults() *PATCHStockLineItemsStockLineItemId200Response` + +NewPATCHStockLineItemsStockLineItemId200ResponseWithDefaults instantiates a new PATCHStockLineItemsStockLineItemId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PATCHStockLineItemsStockLineItemId200Response) GetData() PATCHStockLineItemsStockLineItemId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PATCHStockLineItemsStockLineItemId200Response) GetDataOk() (*PATCHStockLineItemsStockLineItemId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PATCHStockLineItemsStockLineItemId200Response) SetData(v PATCHStockLineItemsStockLineItemId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PATCHStockLineItemsStockLineItemId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHStockLineItemsStockLineItemId200ResponseData.md b/api/docs/PATCHStockLineItemsStockLineItemId200ResponseData.md new file mode 100644 index 00000000..14375cc0 --- /dev/null +++ b/api/docs/PATCHStockLineItemsStockLineItemId200ResponseData.md @@ -0,0 +1,180 @@ +# PATCHStockLineItemsStockLineItemId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**PATCHStockLineItemsStockLineItemId200ResponseDataAttributes**](PATCHStockLineItemsStockLineItemId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTStockLineItems201ResponseDataRelationships**](POSTStockLineItems201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPATCHStockLineItemsStockLineItemId200ResponseData + +`func NewPATCHStockLineItemsStockLineItemId200ResponseData() *PATCHStockLineItemsStockLineItemId200ResponseData` + +NewPATCHStockLineItemsStockLineItemId200ResponseData instantiates a new PATCHStockLineItemsStockLineItemId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHStockLineItemsStockLineItemId200ResponseDataWithDefaults + +`func NewPATCHStockLineItemsStockLineItemId200ResponseDataWithDefaults() *PATCHStockLineItemsStockLineItemId200ResponseData` + +NewPATCHStockLineItemsStockLineItemId200ResponseDataWithDefaults instantiates a new PATCHStockLineItemsStockLineItemId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetAttributes() PATCHStockLineItemsStockLineItemId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetAttributesOk() (*PATCHStockLineItemsStockLineItemId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) SetAttributes(v PATCHStockLineItemsStockLineItemId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetRelationships() POSTStockLineItems201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetRelationshipsOk() (*POSTStockLineItems201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) SetRelationships(v POSTStockLineItems201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHStockLineItemsStockLineItemId200ResponseDataAttributes.md b/api/docs/PATCHStockLineItemsStockLineItemId200ResponseDataAttributes.md new file mode 100644 index 00000000..c9b790b0 --- /dev/null +++ b/api/docs/PATCHStockLineItemsStockLineItemId200ResponseDataAttributes.md @@ -0,0 +1,318 @@ +# PATCHStockLineItemsStockLineItemId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SkuCode** | Pointer to **interface{}** | The code of the associated SKU. | [optional] +**Quantity** | Pointer to **interface{}** | The line item quantity. | [optional] +**ReserveStock** | Pointer to **interface{}** | Send this attribute if you want to automatically reserve the stock for this stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels. | [optional] +**ReleaseStock** | Pointer to **interface{}** | Send this attribute if you want to automatically destroy the stock reservation for this stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels. | [optional] +**DecrementStock** | Pointer to **interface{}** | Send this attribute if you want to automatically decrement and release the stock this stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPATCHStockLineItemsStockLineItemId200ResponseDataAttributes + +`func NewPATCHStockLineItemsStockLineItemId200ResponseDataAttributes() *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes` + +NewPATCHStockLineItemsStockLineItemId200ResponseDataAttributes instantiates a new PATCHStockLineItemsStockLineItemId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHStockLineItemsStockLineItemId200ResponseDataAttributesWithDefaults + +`func NewPATCHStockLineItemsStockLineItemId200ResponseDataAttributesWithDefaults() *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes` + +NewPATCHStockLineItemsStockLineItemId200ResponseDataAttributesWithDefaults instantiates a new PATCHStockLineItemsStockLineItemId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSkuCode + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetSkuCode() interface{}` + +GetSkuCode returns the SkuCode field if non-nil, zero value otherwise. + +### GetSkuCodeOk + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetSkuCodeOk() (*interface{}, bool)` + +GetSkuCodeOk returns a tuple with the SkuCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuCode + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetSkuCode(v interface{})` + +SetSkuCode sets SkuCode field to given value. + +### HasSkuCode + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) HasSkuCode() bool` + +HasSkuCode returns a boolean if a field has been set. + +### SetSkuCodeNil + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetSkuCodeNil(b bool)` + + SetSkuCodeNil sets the value for SkuCode to be an explicit nil + +### UnsetSkuCode +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) UnsetSkuCode()` + +UnsetSkuCode ensures that no value is present for SkuCode, not even an explicit nil +### GetQuantity + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetQuantity() interface{}` + +GetQuantity returns the Quantity field if non-nil, zero value otherwise. + +### GetQuantityOk + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetQuantityOk() (*interface{}, bool)` + +GetQuantityOk returns a tuple with the Quantity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuantity + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetQuantity(v interface{})` + +SetQuantity sets Quantity field to given value. + +### HasQuantity + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) HasQuantity() bool` + +HasQuantity returns a boolean if a field has been set. + +### SetQuantityNil + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetQuantityNil(b bool)` + + SetQuantityNil sets the value for Quantity to be an explicit nil + +### UnsetQuantity +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) UnsetQuantity()` + +UnsetQuantity ensures that no value is present for Quantity, not even an explicit nil +### GetReserveStock + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetReserveStock() interface{}` + +GetReserveStock returns the ReserveStock field if non-nil, zero value otherwise. + +### GetReserveStockOk + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetReserveStockOk() (*interface{}, bool)` + +GetReserveStockOk returns a tuple with the ReserveStock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReserveStock + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetReserveStock(v interface{})` + +SetReserveStock sets ReserveStock field to given value. + +### HasReserveStock + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) HasReserveStock() bool` + +HasReserveStock returns a boolean if a field has been set. + +### SetReserveStockNil + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetReserveStockNil(b bool)` + + SetReserveStockNil sets the value for ReserveStock to be an explicit nil + +### UnsetReserveStock +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) UnsetReserveStock()` + +UnsetReserveStock ensures that no value is present for ReserveStock, not even an explicit nil +### GetReleaseStock + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetReleaseStock() interface{}` + +GetReleaseStock returns the ReleaseStock field if non-nil, zero value otherwise. + +### GetReleaseStockOk + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetReleaseStockOk() (*interface{}, bool)` + +GetReleaseStockOk returns a tuple with the ReleaseStock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleaseStock + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetReleaseStock(v interface{})` + +SetReleaseStock sets ReleaseStock field to given value. + +### HasReleaseStock + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) HasReleaseStock() bool` + +HasReleaseStock returns a boolean if a field has been set. + +### SetReleaseStockNil + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetReleaseStockNil(b bool)` + + SetReleaseStockNil sets the value for ReleaseStock to be an explicit nil + +### UnsetReleaseStock +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) UnsetReleaseStock()` + +UnsetReleaseStock ensures that no value is present for ReleaseStock, not even an explicit nil +### GetDecrementStock + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetDecrementStock() interface{}` + +GetDecrementStock returns the DecrementStock field if non-nil, zero value otherwise. + +### GetDecrementStockOk + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetDecrementStockOk() (*interface{}, bool)` + +GetDecrementStockOk returns a tuple with the DecrementStock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDecrementStock + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetDecrementStock(v interface{})` + +SetDecrementStock sets DecrementStock field to given value. + +### HasDecrementStock + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) HasDecrementStock() bool` + +HasDecrementStock returns a boolean if a field has been set. + +### SetDecrementStockNil + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetDecrementStockNil(b bool)` + + SetDecrementStockNil sets the value for DecrementStock to be an explicit nil + +### UnsetDecrementStock +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) UnsetDecrementStock()` + +UnsetDecrementStock ensures that no value is present for DecrementStock, not even an explicit nil +### GetReference + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHStockLocationsStockLocationId200ResponseDataAttributes.md b/api/docs/PATCHStockLocationsStockLocationId200ResponseDataAttributes.md index b45a4f64..7386d143 100644 --- a/api/docs/PATCHStockLocationsStockLocationId200ResponseDataAttributes.md +++ b/api/docs/PATCHStockLocationsStockLocationId200ResponseDataAttributes.md @@ -5,10 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The stock location's internal name. | [optional] -**LabelFormat** | Pointer to **interface{}** | The shipping label format for this stock location. Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG' | [optional] +**Code** | Pointer to **interface{}** | A string that you can use to identify the stock location (must be unique within the environment). | [optional] +**LabelFormat** | Pointer to **interface{}** | The shipping label format for this stock location. Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG'. | [optional] **SuppressEtd** | Pointer to **interface{}** | Flag it if you want to skip the electronic invoice creation when generating the customs info for this stock location shipments. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -65,6 +66,41 @@ HasName returns a boolean if a field has been set. `func (o *PATCHStockLocationsStockLocationId200ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCode + +`func (o *PATCHStockLocationsStockLocationId200ResponseDataAttributes) GetCode() interface{}` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *PATCHStockLocationsStockLocationId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *PATCHStockLocationsStockLocationId200ResponseDataAttributes) SetCode(v interface{})` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *PATCHStockLocationsStockLocationId200ResponseDataAttributes) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### SetCodeNil + +`func (o *PATCHStockLocationsStockLocationId200ResponseDataAttributes) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *PATCHStockLocationsStockLocationId200ResponseDataAttributes) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil ### GetLabelFormat `func (o *PATCHStockLocationsStockLocationId200ResponseDataAttributes) GetLabelFormat() interface{}` diff --git a/api/docs/PATCHStockReservationsStockReservationId200Response.md b/api/docs/PATCHStockReservationsStockReservationId200Response.md new file mode 100644 index 00000000..e7473be1 --- /dev/null +++ b/api/docs/PATCHStockReservationsStockReservationId200Response.md @@ -0,0 +1,56 @@ +# PATCHStockReservationsStockReservationId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**PATCHStockReservationsStockReservationId200ResponseData**](PATCHStockReservationsStockReservationId200ResponseData.md) | | [optional] + +## Methods + +### NewPATCHStockReservationsStockReservationId200Response + +`func NewPATCHStockReservationsStockReservationId200Response() *PATCHStockReservationsStockReservationId200Response` + +NewPATCHStockReservationsStockReservationId200Response instantiates a new PATCHStockReservationsStockReservationId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHStockReservationsStockReservationId200ResponseWithDefaults + +`func NewPATCHStockReservationsStockReservationId200ResponseWithDefaults() *PATCHStockReservationsStockReservationId200Response` + +NewPATCHStockReservationsStockReservationId200ResponseWithDefaults instantiates a new PATCHStockReservationsStockReservationId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PATCHStockReservationsStockReservationId200Response) GetData() PATCHStockReservationsStockReservationId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PATCHStockReservationsStockReservationId200Response) GetDataOk() (*PATCHStockReservationsStockReservationId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PATCHStockReservationsStockReservationId200Response) SetData(v PATCHStockReservationsStockReservationId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PATCHStockReservationsStockReservationId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHStockReservationsStockReservationId200ResponseData.md b/api/docs/PATCHStockReservationsStockReservationId200ResponseData.md new file mode 100644 index 00000000..9606f602 --- /dev/null +++ b/api/docs/PATCHStockReservationsStockReservationId200ResponseData.md @@ -0,0 +1,180 @@ +# PATCHStockReservationsStockReservationId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**PATCHStockReservationsStockReservationId200ResponseDataAttributes**](PATCHStockReservationsStockReservationId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTStockReservations201ResponseDataRelationships**](POSTStockReservations201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPATCHStockReservationsStockReservationId200ResponseData + +`func NewPATCHStockReservationsStockReservationId200ResponseData() *PATCHStockReservationsStockReservationId200ResponseData` + +NewPATCHStockReservationsStockReservationId200ResponseData instantiates a new PATCHStockReservationsStockReservationId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHStockReservationsStockReservationId200ResponseDataWithDefaults + +`func NewPATCHStockReservationsStockReservationId200ResponseDataWithDefaults() *PATCHStockReservationsStockReservationId200ResponseData` + +NewPATCHStockReservationsStockReservationId200ResponseDataWithDefaults instantiates a new PATCHStockReservationsStockReservationId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *PATCHStockReservationsStockReservationId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PATCHStockReservationsStockReservationId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) GetAttributes() PATCHStockReservationsStockReservationId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) GetAttributesOk() (*PATCHStockReservationsStockReservationId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) SetAttributes(v PATCHStockReservationsStockReservationId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) GetRelationships() POSTStockReservations201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) GetRelationshipsOk() (*POSTStockReservations201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) SetRelationships(v POSTStockReservations201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PATCHStockReservationsStockReservationId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHStockReservationsStockReservationId200ResponseDataAttributes.md b/api/docs/PATCHStockReservationsStockReservationId200ResponseDataAttributes.md new file mode 100644 index 00000000..abd391a0 --- /dev/null +++ b/api/docs/PATCHStockReservationsStockReservationId200ResponseDataAttributes.md @@ -0,0 +1,210 @@ +# PATCHStockReservationsStockReservationId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Quantity** | Pointer to **interface{}** | The stock reservation quantity. | [optional] +**Pending** | Pointer to **interface{}** | Send this attribute if you want to mark this stock reservation as pending. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPATCHStockReservationsStockReservationId200ResponseDataAttributes + +`func NewPATCHStockReservationsStockReservationId200ResponseDataAttributes() *PATCHStockReservationsStockReservationId200ResponseDataAttributes` + +NewPATCHStockReservationsStockReservationId200ResponseDataAttributes instantiates a new PATCHStockReservationsStockReservationId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHStockReservationsStockReservationId200ResponseDataAttributesWithDefaults + +`func NewPATCHStockReservationsStockReservationId200ResponseDataAttributesWithDefaults() *PATCHStockReservationsStockReservationId200ResponseDataAttributes` + +NewPATCHStockReservationsStockReservationId200ResponseDataAttributesWithDefaults instantiates a new PATCHStockReservationsStockReservationId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQuantity + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetQuantity() interface{}` + +GetQuantity returns the Quantity field if non-nil, zero value otherwise. + +### GetQuantityOk + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetQuantityOk() (*interface{}, bool)` + +GetQuantityOk returns a tuple with the Quantity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuantity + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) SetQuantity(v interface{})` + +SetQuantity sets Quantity field to given value. + +### HasQuantity + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) HasQuantity() bool` + +HasQuantity returns a boolean if a field has been set. + +### SetQuantityNil + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) SetQuantityNil(b bool)` + + SetQuantityNil sets the value for Quantity to be an explicit nil + +### UnsetQuantity +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) UnsetQuantity()` + +UnsetQuantity ensures that no value is present for Quantity, not even an explicit nil +### GetPending + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetPending() interface{}` + +GetPending returns the Pending field if non-nil, zero value otherwise. + +### GetPendingOk + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetPendingOk() (*interface{}, bool)` + +GetPendingOk returns a tuple with the Pending field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPending + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) SetPending(v interface{})` + +SetPending sets Pending field to given value. + +### HasPending + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) HasPending() bool` + +HasPending returns a boolean if a field has been set. + +### SetPendingNil + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) SetPendingNil(b bool)` + + SetPendingNil sets the value for Pending to be an explicit nil + +### UnsetPending +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) UnsetPending()` + +UnsetPending ensures that no value is present for Pending, not even an explicit nil +### GetReference + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHStockTransfersStockTransferId200ResponseDataAttributes.md b/api/docs/PATCHStockTransfersStockTransferId200ResponseDataAttributes.md index 84259855..4b585b35 100644 --- a/api/docs/PATCHStockTransfersStockTransferId200ResponseDataAttributes.md +++ b/api/docs/PATCHStockTransfersStockTransferId200ResponseDataAttributes.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Number** | Pointer to **interface{}** | Unique identifier for the stock transfer (numeric). | [optional] **SkuCode** | Pointer to **interface{}** | The code of the associated SKU. | [optional] **Upcoming** | Pointer to **interface{}** | Send this attribute if you want to mark this stock transfer as upcoming. | [optional] +**OnHold** | Pointer to **interface{}** | Send this attribute if you want to put this stock transfer on hold. | [optional] **Picking** | Pointer to **interface{}** | Send this attribute if you want to start picking this stock transfer. | [optional] **InTransit** | Pointer to **interface{}** | Send this attribute if you want to mark this stock transfer as in transit. | [optional] **Complete** | Pointer to **interface{}** | Send this attribute if you want to complete this stock transfer. | [optional] **Cancel** | Pointer to **interface{}** | Send this attribute if you want to cancel this stock transfer. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -33,6 +35,41 @@ NewPATCHStockTransfersStockTransferId200ResponseDataAttributesWithDefaults insta This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetNumber + +`func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) GetNumber() interface{}` + +GetNumber returns the Number field if non-nil, zero value otherwise. + +### GetNumberOk + +`func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) GetNumberOk() (*interface{}, bool)` + +GetNumberOk returns a tuple with the Number field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumber + +`func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) SetNumber(v interface{})` + +SetNumber sets Number field to given value. + +### HasNumber + +`func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) HasNumber() bool` + +HasNumber returns a boolean if a field has been set. + +### SetNumberNil + +`func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) SetNumberNil(b bool)` + + SetNumberNil sets the value for Number to be an explicit nil + +### UnsetNumber +`func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) UnsetNumber()` + +UnsetNumber ensures that no value is present for Number, not even an explicit nil ### GetSkuCode `func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) GetSkuCode() interface{}` @@ -103,6 +140,41 @@ HasUpcoming returns a boolean if a field has been set. `func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) UnsetUpcoming()` UnsetUpcoming ensures that no value is present for Upcoming, not even an explicit nil +### GetOnHold + +`func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) GetOnHold() interface{}` + +GetOnHold returns the OnHold field if non-nil, zero value otherwise. + +### GetOnHoldOk + +`func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) GetOnHoldOk() (*interface{}, bool)` + +GetOnHoldOk returns a tuple with the OnHold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOnHold + +`func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) SetOnHold(v interface{})` + +SetOnHold sets OnHold field to given value. + +### HasOnHold + +`func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) HasOnHold() bool` + +HasOnHold returns a boolean if a field has been set. + +### SetOnHoldNil + +`func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) SetOnHoldNil(b bool)` + + SetOnHoldNil sets the value for OnHold to be an explicit nil + +### UnsetOnHold +`func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) UnsetOnHold()` + +UnsetOnHold ensures that no value is present for OnHold, not even an explicit nil ### GetPicking `func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) GetPicking() interface{}` diff --git a/api/docs/PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes.md b/api/docs/PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes.md index b574f2cf..53effc5f 100644 --- a/api/docs/PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes.md +++ b/api/docs/PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The payment gateway's internal name. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] +**ConnectedAccount** | Pointer to **interface{}** | The account (if any) for which the funds of the PaymentIntent are intended. | [optional] **AutoPayments** | Pointer to **interface{}** | Indicates if the gateway will accept payment methods enabled in the Stripe dashboard. | [optional] ## Methods @@ -169,6 +170,41 @@ HasMetadata returns a boolean if a field has been set. `func (o *PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes) UnsetMetadata()` UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil +### GetConnectedAccount + +`func (o *PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes) GetConnectedAccount() interface{}` + +GetConnectedAccount returns the ConnectedAccount field if non-nil, zero value otherwise. + +### GetConnectedAccountOk + +`func (o *PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes) GetConnectedAccountOk() (*interface{}, bool)` + +GetConnectedAccountOk returns a tuple with the ConnectedAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedAccount + +`func (o *PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes) SetConnectedAccount(v interface{})` + +SetConnectedAccount sets ConnectedAccount field to given value. + +### HasConnectedAccount + +`func (o *PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes) HasConnectedAccount() bool` + +HasConnectedAccount returns a boolean if a field has been set. + +### SetConnectedAccountNil + +`func (o *PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes) SetConnectedAccountNil(b bool)` + + SetConnectedAccountNil sets the value for ConnectedAccount to be an explicit nil + +### UnsetConnectedAccount +`func (o *PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes) UnsetConnectedAccount()` + +UnsetConnectedAccount ensures that no value is present for ConnectedAccount, not even an explicit nil ### GetAutoPayments `func (o *PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes) GetAutoPayments() interface{}` diff --git a/api/docs/PATCHStripePaymentsStripePaymentId200ResponseDataAttributes.md b/api/docs/PATCHStripePaymentsStripePaymentId200ResponseDataAttributes.md index 5a4c467c..ba754ccf 100644 --- a/api/docs/PATCHStripePaymentsStripePaymentId200ResponseDataAttributes.md +++ b/api/docs/PATCHStripePaymentsStripePaymentId200ResponseDataAttributes.md @@ -4,10 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Options** | Pointer to **interface{}** | Stripe payment options: 'customer', 'payment_method', etc. Check Stripe payment intent API for more details. | [optional] +**Options** | Pointer to **interface{}** | Stripe payment options: 'customer', 'payment_method', 'return_url', etc. Check Stripe payment intent API for more details. | [optional] +**ReturnUrl** | Pointer to **interface{}** | The URL to return to when a redirect payment is completed. | [optional] +**Update** | Pointer to **interface{}** | Send this attribute if you want to update the created payment intent with fresh order data. | [optional] **Refresh** | Pointer to **interface{}** | Send this attribute if you want to refresh the payment status, can be used as webhooks fallback logic. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -64,6 +66,76 @@ HasOptions returns a boolean if a field has been set. `func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) UnsetOptions()` UnsetOptions ensures that no value is present for Options, not even an explicit nil +### GetReturnUrl + +`func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) GetReturnUrl() interface{}` + +GetReturnUrl returns the ReturnUrl field if non-nil, zero value otherwise. + +### GetReturnUrlOk + +`func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) GetReturnUrlOk() (*interface{}, bool)` + +GetReturnUrlOk returns a tuple with the ReturnUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnUrl + +`func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) SetReturnUrl(v interface{})` + +SetReturnUrl sets ReturnUrl field to given value. + +### HasReturnUrl + +`func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) HasReturnUrl() bool` + +HasReturnUrl returns a boolean if a field has been set. + +### SetReturnUrlNil + +`func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) SetReturnUrlNil(b bool)` + + SetReturnUrlNil sets the value for ReturnUrl to be an explicit nil + +### UnsetReturnUrl +`func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) UnsetReturnUrl()` + +UnsetReturnUrl ensures that no value is present for ReturnUrl, not even an explicit nil +### GetUpdate + +`func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) GetUpdate() interface{}` + +GetUpdate returns the Update field if non-nil, zero value otherwise. + +### GetUpdateOk + +`func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) GetUpdateOk() (*interface{}, bool)` + +GetUpdateOk returns a tuple with the Update field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdate + +`func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) SetUpdate(v interface{})` + +SetUpdate sets Update field to given value. + +### HasUpdate + +`func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) HasUpdate() bool` + +HasUpdate returns a boolean if a field has been set. + +### SetUpdateNil + +`func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) SetUpdateNil(b bool)` + + SetUpdateNil sets the value for Update to be an explicit nil + +### UnsetUpdate +`func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) UnsetUpdate()` + +UnsetUpdate ensures that no value is present for Update, not even an explicit nil ### GetRefresh `func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) GetRefresh() interface{}` diff --git a/api/docs/PATCHSubscriptionModelsSubscriptionModelId200ResponseDataAttributes.md b/api/docs/PATCHSubscriptionModelsSubscriptionModelId200ResponseDataAttributes.md index 900b3999..f7395ac2 100644 --- a/api/docs/PATCHSubscriptionModelsSubscriptionModelId200ResponseDataAttributes.md +++ b/api/docs/PATCHSubscriptionModelsSubscriptionModelId200ResponseDataAttributes.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **AutoActivate** | Pointer to **interface{}** | Indicates if the created subscriptions will be activated considering the placed source order as its first run, default to true. | [optional] **AutoCancel** | Pointer to **interface{}** | Indicates if the created subscriptions will be cancelled in case the source order is cancelled, default to false. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHTagsTagId200Response.md b/api/docs/PATCHTagsTagId200Response.md new file mode 100644 index 00000000..3b5cb01c --- /dev/null +++ b/api/docs/PATCHTagsTagId200Response.md @@ -0,0 +1,56 @@ +# PATCHTagsTagId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**PATCHTagsTagId200ResponseData**](PATCHTagsTagId200ResponseData.md) | | [optional] + +## Methods + +### NewPATCHTagsTagId200Response + +`func NewPATCHTagsTagId200Response() *PATCHTagsTagId200Response` + +NewPATCHTagsTagId200Response instantiates a new PATCHTagsTagId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHTagsTagId200ResponseWithDefaults + +`func NewPATCHTagsTagId200ResponseWithDefaults() *PATCHTagsTagId200Response` + +NewPATCHTagsTagId200ResponseWithDefaults instantiates a new PATCHTagsTagId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PATCHTagsTagId200Response) GetData() PATCHTagsTagId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PATCHTagsTagId200Response) GetDataOk() (*PATCHTagsTagId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PATCHTagsTagId200Response) SetData(v PATCHTagsTagId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PATCHTagsTagId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHTagsTagId200ResponseData.md b/api/docs/PATCHTagsTagId200ResponseData.md new file mode 100644 index 00000000..90d505c3 --- /dev/null +++ b/api/docs/PATCHTagsTagId200ResponseData.md @@ -0,0 +1,190 @@ +# PATCHTagsTagId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**PATCHTagsTagId200ResponseDataAttributes**](PATCHTagsTagId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewPATCHTagsTagId200ResponseData + +`func NewPATCHTagsTagId200ResponseData() *PATCHTagsTagId200ResponseData` + +NewPATCHTagsTagId200ResponseData instantiates a new PATCHTagsTagId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHTagsTagId200ResponseDataWithDefaults + +`func NewPATCHTagsTagId200ResponseDataWithDefaults() *PATCHTagsTagId200ResponseData` + +NewPATCHTagsTagId200ResponseDataWithDefaults instantiates a new PATCHTagsTagId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PATCHTagsTagId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PATCHTagsTagId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PATCHTagsTagId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *PATCHTagsTagId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *PATCHTagsTagId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *PATCHTagsTagId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *PATCHTagsTagId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PATCHTagsTagId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PATCHTagsTagId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *PATCHTagsTagId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PATCHTagsTagId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PATCHTagsTagId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *PATCHTagsTagId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PATCHTagsTagId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PATCHTagsTagId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PATCHTagsTagId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *PATCHTagsTagId200ResponseData) GetAttributes() PATCHTagsTagId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PATCHTagsTagId200ResponseData) GetAttributesOk() (*PATCHTagsTagId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PATCHTagsTagId200ResponseData) SetAttributes(v PATCHTagsTagId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *PATCHTagsTagId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *PATCHTagsTagId200ResponseData) GetRelationships() interface{}` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PATCHTagsTagId200ResponseData) GetRelationshipsOk() (*interface{}, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PATCHTagsTagId200ResponseData) SetRelationships(v interface{})` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PATCHTagsTagId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### SetRelationshipsNil + +`func (o *PATCHTagsTagId200ResponseData) SetRelationshipsNil(b bool)` + + SetRelationshipsNil sets the value for Relationships to be an explicit nil + +### UnsetRelationships +`func (o *PATCHTagsTagId200ResponseData) UnsetRelationships()` + +UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHTagsTagId200ResponseDataAttributes.md b/api/docs/PATCHTagsTagId200ResponseDataAttributes.md new file mode 100644 index 00000000..3192a78c --- /dev/null +++ b/api/docs/PATCHTagsTagId200ResponseDataAttributes.md @@ -0,0 +1,174 @@ +# PATCHTagsTagId200ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **interface{}** | The tag name. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPATCHTagsTagId200ResponseDataAttributes + +`func NewPATCHTagsTagId200ResponseDataAttributes() *PATCHTagsTagId200ResponseDataAttributes` + +NewPATCHTagsTagId200ResponseDataAttributes instantiates a new PATCHTagsTagId200ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHTagsTagId200ResponseDataAttributesWithDefaults + +`func NewPATCHTagsTagId200ResponseDataAttributesWithDefaults() *PATCHTagsTagId200ResponseDataAttributes` + +NewPATCHTagsTagId200ResponseDataAttributesWithDefaults instantiates a new PATCHTagsTagId200ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PATCHTagsTagId200ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PATCHTagsTagId200ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PATCHTagsTagId200ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + +### HasName + +`func (o *PATCHTagsTagId200ResponseDataAttributes) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *PATCHTagsTagId200ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *PATCHTagsTagId200ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetReference + +`func (o *PATCHTagsTagId200ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *PATCHTagsTagId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *PATCHTagsTagId200ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *PATCHTagsTagId200ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *PATCHTagsTagId200ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *PATCHTagsTagId200ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *PATCHTagsTagId200ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *PATCHTagsTagId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *PATCHTagsTagId200ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *PATCHTagsTagId200ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *PATCHTagsTagId200ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *PATCHTagsTagId200ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *PATCHTagsTagId200ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *PATCHTagsTagId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *PATCHTagsTagId200ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *PATCHTagsTagId200ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *PATCHTagsTagId200ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *PATCHTagsTagId200ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHTaxCategoriesTaxCategoryId200ResponseDataAttributes.md b/api/docs/PATCHTaxCategoriesTaxCategoryId200ResponseDataAttributes.md index daf5474b..4210842a 100644 --- a/api/docs/PATCHTaxCategoriesTaxCategoryId200ResponseDataAttributes.md +++ b/api/docs/PATCHTaxCategoriesTaxCategoryId200ResponseDataAttributes.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Code** | Pointer to **interface{}** | The tax category identifier code, specific for a particular tax calculator. | [optional] **SkuCode** | Pointer to **interface{}** | The code of the associated SKU. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHTaxRulesTaxRuleId200ResponseDataAttributes.md b/api/docs/PATCHTaxRulesTaxRuleId200ResponseDataAttributes.md index 465188fe..bef02935 100644 --- a/api/docs/PATCHTaxRulesTaxRuleId200ResponseDataAttributes.md +++ b/api/docs/PATCHTaxRulesTaxRuleId200ResponseDataAttributes.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **GiftCardTaxable** | Pointer to **interface{}** | Indicates if gift cards are taxable. | [optional] **AdjustmentTaxable** | Pointer to **interface{}** | Indicates if adjustemnts are taxable. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/PATCHTaxjarAccountsTaxjarAccountId200ResponseData.md b/api/docs/PATCHTaxjarAccountsTaxjarAccountId200ResponseData.md index d7bcd95b..4e150364 100644 --- a/api/docs/PATCHTaxjarAccountsTaxjarAccountId200ResponseData.md +++ b/api/docs/PATCHTaxjarAccountsTaxjarAccountId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**PATCHTaxjarAccountsTaxjarAccountId200ResponseDataAttributes**](PATCHTaxjarAccountsTaxjarAccountId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationships**](POSTAvalaraAccounts201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTTaxjarAccounts201ResponseDataRelationships**](POSTTaxjarAccounts201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *PATCHTaxjarAccountsTaxjarAccountId200ResponseData) GetRelationships() POSTAvalaraAccounts201ResponseDataRelationships` +`func (o *PATCHTaxjarAccountsTaxjarAccountId200ResponseData) GetRelationships() POSTTaxjarAccounts201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *PATCHTaxjarAccountsTaxjarAccountId200ResponseData) GetRelationshipsOk() (*POSTAvalaraAccounts201ResponseDataRelationships, bool)` +`func (o *PATCHTaxjarAccountsTaxjarAccountId200ResponseData) GetRelationshipsOk() (*POSTTaxjarAccounts201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *PATCHTaxjarAccountsTaxjarAccountId200ResponseData) SetRelationships(v POSTAvalaraAccounts201ResponseDataRelationships)` +`func (o *PATCHTaxjarAccountsTaxjarAccountId200ResponseData) SetRelationships(v POSTTaxjarAccounts201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/PATCHTaxjarAccountsTaxjarAccountId200ResponseDataAttributes.md b/api/docs/PATCHTaxjarAccountsTaxjarAccountId200ResponseDataAttributes.md index d4ae894f..7215e279 100644 --- a/api/docs/PATCHTaxjarAccountsTaxjarAccountId200ResponseDataAttributes.md +++ b/api/docs/PATCHTaxjarAccountsTaxjarAccountId200ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The tax calculator's internal name. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **ApiKey** | Pointer to **interface{}** | The TaxJar account API key. | [optional] diff --git a/api/docs/PATCHVoidsVoidId200Response.md b/api/docs/PATCHVoidsVoidId200Response.md new file mode 100644 index 00000000..a1519c6a --- /dev/null +++ b/api/docs/PATCHVoidsVoidId200Response.md @@ -0,0 +1,56 @@ +# PATCHVoidsVoidId200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**PATCHVoidsVoidId200ResponseData**](PATCHVoidsVoidId200ResponseData.md) | | [optional] + +## Methods + +### NewPATCHVoidsVoidId200Response + +`func NewPATCHVoidsVoidId200Response() *PATCHVoidsVoidId200Response` + +NewPATCHVoidsVoidId200Response instantiates a new PATCHVoidsVoidId200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHVoidsVoidId200ResponseWithDefaults + +`func NewPATCHVoidsVoidId200ResponseWithDefaults() *PATCHVoidsVoidId200Response` + +NewPATCHVoidsVoidId200ResponseWithDefaults instantiates a new PATCHVoidsVoidId200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PATCHVoidsVoidId200Response) GetData() PATCHVoidsVoidId200ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PATCHVoidsVoidId200Response) GetDataOk() (*PATCHVoidsVoidId200ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PATCHVoidsVoidId200Response) SetData(v PATCHVoidsVoidId200ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PATCHVoidsVoidId200Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHVoidsVoidId200ResponseData.md b/api/docs/PATCHVoidsVoidId200ResponseData.md new file mode 100644 index 00000000..b1dc5e6c --- /dev/null +++ b/api/docs/PATCHVoidsVoidId200ResponseData.md @@ -0,0 +1,180 @@ +# PATCHVoidsVoidId200ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**PATCHRefundsRefundId200ResponseDataAttributes**](PATCHRefundsRefundId200ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**GETVoidsVoidId200ResponseDataRelationships**](GETVoidsVoidId200ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPATCHVoidsVoidId200ResponseData + +`func NewPATCHVoidsVoidId200ResponseData() *PATCHVoidsVoidId200ResponseData` + +NewPATCHVoidsVoidId200ResponseData instantiates a new PATCHVoidsVoidId200ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPATCHVoidsVoidId200ResponseDataWithDefaults + +`func NewPATCHVoidsVoidId200ResponseDataWithDefaults() *PATCHVoidsVoidId200ResponseData` + +NewPATCHVoidsVoidId200ResponseDataWithDefaults instantiates a new PATCHVoidsVoidId200ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *PATCHVoidsVoidId200ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PATCHVoidsVoidId200ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PATCHVoidsVoidId200ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *PATCHVoidsVoidId200ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *PATCHVoidsVoidId200ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *PATCHVoidsVoidId200ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *PATCHVoidsVoidId200ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PATCHVoidsVoidId200ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PATCHVoidsVoidId200ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *PATCHVoidsVoidId200ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PATCHVoidsVoidId200ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PATCHVoidsVoidId200ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *PATCHVoidsVoidId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *PATCHVoidsVoidId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *PATCHVoidsVoidId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *PATCHVoidsVoidId200ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *PATCHVoidsVoidId200ResponseData) GetAttributes() PATCHRefundsRefundId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PATCHVoidsVoidId200ResponseData) GetAttributesOk() (*PATCHRefundsRefundId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PATCHVoidsVoidId200ResponseData) SetAttributes(v PATCHRefundsRefundId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *PATCHVoidsVoidId200ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *PATCHVoidsVoidId200ResponseData) GetRelationships() GETVoidsVoidId200ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PATCHVoidsVoidId200ResponseData) GetRelationshipsOk() (*GETVoidsVoidId200ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PATCHVoidsVoidId200ResponseData) SetRelationships(v GETVoidsVoidId200ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PATCHVoidsVoidId200ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PATCHWebhooksWebhookId200ResponseDataAttributes.md b/api/docs/PATCHWebhooksWebhookId200ResponseDataAttributes.md index 15e72d10..3cda2aa0 100644 --- a/api/docs/PATCHWebhooksWebhookId200ResponseDataAttributes.md +++ b/api/docs/PATCHWebhooksWebhookId200ResponseDataAttributes.md @@ -8,9 +8,11 @@ Name | Type | Description | Notes **Topic** | Pointer to **interface{}** | The identifier of the resource/event that will trigger the webhook. | [optional] **CallbackUrl** | Pointer to **interface{}** | URI where the webhook subscription should send the POST request when the event occurs. | [optional] **IncludeResources** | Pointer to **interface{}** | List of related resources that should be included in the webhook body. | [optional] -**ResetCircuit** | Pointer to **interface{}** | Send this attribute if you want to reset the circuit breaker associated to this webhook to 'closed' state and zero failures count. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] +**ResetCircuit** | Pointer to **interface{}** | Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -172,6 +174,76 @@ HasIncludeResources returns a boolean if a field has been set. `func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) UnsetIncludeResources()` UnsetIncludeResources ensures that no value is present for IncludeResources, not even an explicit nil +### GetDisable + +`func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil ### GetResetCircuit `func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) GetResetCircuit() interface{}` diff --git a/api/docs/PATCHWireTransfersWireTransferId200ResponseData.md b/api/docs/PATCHWireTransfersWireTransferId200ResponseData.md index a62d9f05..25e792db 100644 --- a/api/docs/PATCHWireTransfersWireTransferId200ResponseData.md +++ b/api/docs/PATCHWireTransfersWireTransferId200ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes**](PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**GETTransactionsTransactionId200ResponseDataRelationships**](GETTransactionsTransactionId200ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTWireTransfers201ResponseDataRelationships**](POSTWireTransfers201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *PATCHWireTransfersWireTransferId200ResponseData) GetRelationships() GETTransactionsTransactionId200ResponseDataRelationships` +`func (o *PATCHWireTransfersWireTransferId200ResponseData) GetRelationships() POSTWireTransfers201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *PATCHWireTransfersWireTransferId200ResponseData) GetRelationshipsOk() (*GETTransactionsTransactionId200ResponseDataRelationships, bool)` +`func (o *PATCHWireTransfersWireTransferId200ResponseData) GetRelationshipsOk() (*POSTWireTransfers201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *PATCHWireTransfersWireTransferId200ResponseData) SetRelationships(v GETTransactionsTransactionId200ResponseDataRelationships)` +`func (o *PATCHWireTransfersWireTransferId200ResponseData) SetRelationships(v POSTWireTransfers201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/POSTAddresses201ResponseDataAttributes.md b/api/docs/POSTAddresses201ResponseDataAttributes.md index 7f29afe6..8672ec71 100644 --- a/api/docs/POSTAddresses201ResponseDataAttributes.md +++ b/api/docs/POSTAddresses201ResponseDataAttributes.md @@ -4,24 +4,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Business** | Pointer to **interface{}** | Indicates if it's a business or a personal address | [optional] -**FirstName** | Pointer to **interface{}** | Address first name (personal) | [optional] -**LastName** | Pointer to **interface{}** | Address last name (personal) | [optional] -**Company** | Pointer to **interface{}** | Address company name (business) | [optional] -**Line1** | **interface{}** | Address line 1, i.e. Street address, PO Box | -**Line2** | Pointer to **interface{}** | Address line 2, i.e. Apartment, Suite, Building | [optional] -**City** | **interface{}** | Address city | -**ZipCode** | Pointer to **interface{}** | ZIP or postal code | [optional] +**Business** | Pointer to **interface{}** | Indicates if it's a business or a personal address. | [optional] +**FirstName** | Pointer to **interface{}** | Address first name (personal). | [optional] +**LastName** | Pointer to **interface{}** | Address last name (personal). | [optional] +**Company** | Pointer to **interface{}** | Address company name (business). | [optional] +**Line1** | **interface{}** | Address line 1, i.e. Street address, PO Box. | +**Line2** | Pointer to **interface{}** | Address line 2, i.e. Apartment, Suite, Building. | [optional] +**City** | **interface{}** | Address city. | +**ZipCode** | Pointer to **interface{}** | ZIP or postal code. | [optional] **StateCode** | **interface{}** | State, province or region code. | -**CountryCode** | **interface{}** | The international 2-letter country code as defined by the ISO 3166-1 standard | +**CountryCode** | **interface{}** | The international 2-letter country code as defined by the ISO 3166-1 standard. | **Phone** | **interface{}** | Phone number (including extension). | **Email** | Pointer to **interface{}** | Email address. | [optional] **Notes** | Pointer to **interface{}** | A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions. | [optional] **Lat** | Pointer to **interface{}** | The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market. | [optional] **Lng** | Pointer to **interface{}** | The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market. | [optional] -**BillingInfo** | Pointer to **interface{}** | Customer's billing information (i.e. VAT number, codice fiscale) | [optional] +**BillingInfo** | Pointer to **interface{}** | Customer's billing information (i.e. VAT number, codice fiscale). | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTAddresses201ResponseDataRelationships.md b/api/docs/POSTAddresses201ResponseDataRelationships.md index 3f6be341..f614eafe 100644 --- a/api/docs/POSTAddresses201ResponseDataRelationships.md +++ b/api/docs/POSTAddresses201ResponseDataRelationships.md @@ -5,6 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Geocoder** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoder**](POSTAddresses201ResponseDataRelationshipsGeocoder.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**POSTAddresses201ResponseDataRelationshipsTags**](POSTAddresses201ResponseDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -50,6 +53,81 @@ SetGeocoder sets Geocoder field to given value. HasGeocoder returns a boolean if a field has been set. +### GetEvents + +`func (o *POSTAddresses201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *POSTAddresses201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *POSTAddresses201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *POSTAddresses201ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *POSTAddresses201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *POSTAddresses201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *POSTAddresses201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *POSTAddresses201ResponseDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTAddresses201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTAddresses201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTAddresses201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTAddresses201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTParcels201ResponseDataRelationshipsShipment.md b/api/docs/POSTAddresses201ResponseDataRelationshipsEvents.md similarity index 54% rename from api/docs/POSTParcels201ResponseDataRelationshipsShipment.md rename to api/docs/POSTAddresses201ResponseDataRelationshipsEvents.md index e65bdfa3..256922e6 100644 --- a/api/docs/POSTParcels201ResponseDataRelationshipsShipment.md +++ b/api/docs/POSTAddresses201ResponseDataRelationshipsEvents.md @@ -1,78 +1,78 @@ -# POSTParcels201ResponseDataRelationshipsShipment +# POSTAddresses201ResponseDataRelationshipsEvents ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] -**Data** | Pointer to [**POSTParcels201ResponseDataRelationshipsShipmentData**](POSTParcels201ResponseDataRelationshipsShipmentData.md) | | [optional] +**Data** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEventsData**](POSTAddresses201ResponseDataRelationshipsEventsData.md) | | [optional] ## Methods -### NewPOSTParcels201ResponseDataRelationshipsShipment +### NewPOSTAddresses201ResponseDataRelationshipsEvents -`func NewPOSTParcels201ResponseDataRelationshipsShipment() *POSTParcels201ResponseDataRelationshipsShipment` +`func NewPOSTAddresses201ResponseDataRelationshipsEvents() *POSTAddresses201ResponseDataRelationshipsEvents` -NewPOSTParcels201ResponseDataRelationshipsShipment instantiates a new POSTParcels201ResponseDataRelationshipsShipment object +NewPOSTAddresses201ResponseDataRelationshipsEvents instantiates a new POSTAddresses201ResponseDataRelationshipsEvents object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPOSTParcels201ResponseDataRelationshipsShipmentWithDefaults +### NewPOSTAddresses201ResponseDataRelationshipsEventsWithDefaults -`func NewPOSTParcels201ResponseDataRelationshipsShipmentWithDefaults() *POSTParcels201ResponseDataRelationshipsShipment` +`func NewPOSTAddresses201ResponseDataRelationshipsEventsWithDefaults() *POSTAddresses201ResponseDataRelationshipsEvents` -NewPOSTParcels201ResponseDataRelationshipsShipmentWithDefaults instantiates a new POSTParcels201ResponseDataRelationshipsShipment object +NewPOSTAddresses201ResponseDataRelationshipsEventsWithDefaults instantiates a new POSTAddresses201ResponseDataRelationshipsEvents object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetLinks -`func (o *POSTParcels201ResponseDataRelationshipsShipment) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` +`func (o *POSTAddresses201ResponseDataRelationshipsEvents) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` GetLinks returns the Links field if non-nil, zero value otherwise. ### GetLinksOk -`func (o *POSTParcels201ResponseDataRelationshipsShipment) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` +`func (o *POSTAddresses201ResponseDataRelationshipsEvents) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLinks -`func (o *POSTParcels201ResponseDataRelationshipsShipment) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` +`func (o *POSTAddresses201ResponseDataRelationshipsEvents) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` SetLinks sets Links field to given value. ### HasLinks -`func (o *POSTParcels201ResponseDataRelationshipsShipment) HasLinks() bool` +`func (o *POSTAddresses201ResponseDataRelationshipsEvents) HasLinks() bool` HasLinks returns a boolean if a field has been set. ### GetData -`func (o *POSTParcels201ResponseDataRelationshipsShipment) GetData() POSTParcels201ResponseDataRelationshipsShipmentData` +`func (o *POSTAddresses201ResponseDataRelationshipsEvents) GetData() POSTAddresses201ResponseDataRelationshipsEventsData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *POSTParcels201ResponseDataRelationshipsShipment) GetDataOk() (*POSTParcels201ResponseDataRelationshipsShipmentData, bool)` +`func (o *POSTAddresses201ResponseDataRelationshipsEvents) GetDataOk() (*POSTAddresses201ResponseDataRelationshipsEventsData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *POSTParcels201ResponseDataRelationshipsShipment) SetData(v POSTParcels201ResponseDataRelationshipsShipmentData)` +`func (o *POSTAddresses201ResponseDataRelationshipsEvents) SetData(v POSTAddresses201ResponseDataRelationshipsEventsData)` SetData sets Data field to given value. ### HasData -`func (o *POSTParcels201ResponseDataRelationshipsShipment) HasData() bool` +`func (o *POSTAddresses201ResponseDataRelationshipsEvents) HasData() bool` HasData returns a boolean if a field has been set. diff --git a/api/docs/POSTParcels201ResponseDataRelationshipsShipmentData.md b/api/docs/POSTAddresses201ResponseDataRelationshipsEventsData.md similarity index 58% rename from api/docs/POSTParcels201ResponseDataRelationshipsShipmentData.md rename to api/docs/POSTAddresses201ResponseDataRelationshipsEventsData.md index 51ed2a1e..e1e21b9d 100644 --- a/api/docs/POSTParcels201ResponseDataRelationshipsShipmentData.md +++ b/api/docs/POSTAddresses201ResponseDataRelationshipsEventsData.md @@ -1,4 +1,4 @@ -# POSTParcels201ResponseDataRelationshipsShipmentData +# POSTAddresses201ResponseDataRelationshipsEventsData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewPOSTParcels201ResponseDataRelationshipsShipmentData +### NewPOSTAddresses201ResponseDataRelationshipsEventsData -`func NewPOSTParcels201ResponseDataRelationshipsShipmentData() *POSTParcels201ResponseDataRelationshipsShipmentData` +`func NewPOSTAddresses201ResponseDataRelationshipsEventsData() *POSTAddresses201ResponseDataRelationshipsEventsData` -NewPOSTParcels201ResponseDataRelationshipsShipmentData instantiates a new POSTParcels201ResponseDataRelationshipsShipmentData object +NewPOSTAddresses201ResponseDataRelationshipsEventsData instantiates a new POSTAddresses201ResponseDataRelationshipsEventsData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPOSTParcels201ResponseDataRelationshipsShipmentDataWithDefaults +### NewPOSTAddresses201ResponseDataRelationshipsEventsDataWithDefaults -`func NewPOSTParcels201ResponseDataRelationshipsShipmentDataWithDefaults() *POSTParcels201ResponseDataRelationshipsShipmentData` +`func NewPOSTAddresses201ResponseDataRelationshipsEventsDataWithDefaults() *POSTAddresses201ResponseDataRelationshipsEventsData` -NewPOSTParcels201ResponseDataRelationshipsShipmentDataWithDefaults instantiates a new POSTParcels201ResponseDataRelationshipsShipmentData object +NewPOSTAddresses201ResponseDataRelationshipsEventsDataWithDefaults instantiates a new POSTAddresses201ResponseDataRelationshipsEventsData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *POSTParcels201ResponseDataRelationshipsShipmentData) GetType() interface{}` +`func (o *POSTAddresses201ResponseDataRelationshipsEventsData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *POSTParcels201ResponseDataRelationshipsShipmentData) GetTypeOk() (*interface{}, bool)` +`func (o *POSTAddresses201ResponseDataRelationshipsEventsData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *POSTParcels201ResponseDataRelationshipsShipmentData) SetType(v interface{})` +`func (o *POSTAddresses201ResponseDataRelationshipsEventsData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *POSTParcels201ResponseDataRelationshipsShipmentData) HasType() bool` +`func (o *POSTAddresses201ResponseDataRelationshipsEventsData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *POSTParcels201ResponseDataRelationshipsShipmentData) SetTypeNil(b bool)` +`func (o *POSTAddresses201ResponseDataRelationshipsEventsData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *POSTParcels201ResponseDataRelationshipsShipmentData) UnsetType()` +`func (o *POSTAddresses201ResponseDataRelationshipsEventsData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *POSTParcels201ResponseDataRelationshipsShipmentData) GetId() interface{}` +`func (o *POSTAddresses201ResponseDataRelationshipsEventsData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *POSTParcels201ResponseDataRelationshipsShipmentData) GetIdOk() (*interface{}, bool)` +`func (o *POSTAddresses201ResponseDataRelationshipsEventsData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *POSTParcels201ResponseDataRelationshipsShipmentData) SetId(v interface{})` +`func (o *POSTAddresses201ResponseDataRelationshipsEventsData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *POSTParcels201ResponseDataRelationshipsShipmentData) HasId() bool` +`func (o *POSTAddresses201ResponseDataRelationshipsEventsData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *POSTParcels201ResponseDataRelationshipsShipmentData) SetIdNil(b bool)` +`func (o *POSTAddresses201ResponseDataRelationshipsEventsData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *POSTParcels201ResponseDataRelationshipsShipmentData) UnsetId()` +`func (o *POSTAddresses201ResponseDataRelationshipsEventsData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/POSTAddresses201ResponseDataRelationshipsTags.md b/api/docs/POSTAddresses201ResponseDataRelationshipsTags.md new file mode 100644 index 00000000..8f043922 --- /dev/null +++ b/api/docs/POSTAddresses201ResponseDataRelationshipsTags.md @@ -0,0 +1,82 @@ +# POSTAddresses201ResponseDataRelationshipsTags + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTAddresses201ResponseDataRelationshipsTagsData**](POSTAddresses201ResponseDataRelationshipsTagsData.md) | | [optional] + +## Methods + +### NewPOSTAddresses201ResponseDataRelationshipsTags + +`func NewPOSTAddresses201ResponseDataRelationshipsTags() *POSTAddresses201ResponseDataRelationshipsTags` + +NewPOSTAddresses201ResponseDataRelationshipsTags instantiates a new POSTAddresses201ResponseDataRelationshipsTags object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTAddresses201ResponseDataRelationshipsTagsWithDefaults + +`func NewPOSTAddresses201ResponseDataRelationshipsTagsWithDefaults() *POSTAddresses201ResponseDataRelationshipsTags` + +NewPOSTAddresses201ResponseDataRelationshipsTagsWithDefaults instantiates a new POSTAddresses201ResponseDataRelationshipsTags object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTAddresses201ResponseDataRelationshipsTags) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTAddresses201ResponseDataRelationshipsTags) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTAddresses201ResponseDataRelationshipsTags) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTAddresses201ResponseDataRelationshipsTags) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTAddresses201ResponseDataRelationshipsTags) GetData() POSTAddresses201ResponseDataRelationshipsTagsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTAddresses201ResponseDataRelationshipsTags) GetDataOk() (*POSTAddresses201ResponseDataRelationshipsTagsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTAddresses201ResponseDataRelationshipsTags) SetData(v POSTAddresses201ResponseDataRelationshipsTagsData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTAddresses201ResponseDataRelationshipsTags) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/OrderSubscriptionDataRelationshipsOrderCopiesData.md b/api/docs/POSTAddresses201ResponseDataRelationshipsTagsData.md similarity index 56% rename from api/docs/OrderSubscriptionDataRelationshipsOrderCopiesData.md rename to api/docs/POSTAddresses201ResponseDataRelationshipsTagsData.md index d3d6970c..35fcf01f 100644 --- a/api/docs/OrderSubscriptionDataRelationshipsOrderCopiesData.md +++ b/api/docs/POSTAddresses201ResponseDataRelationshipsTagsData.md @@ -1,99 +1,99 @@ -# OrderSubscriptionDataRelationshipsOrderCopiesData +# POSTAddresses201ResponseDataRelationshipsTagsData ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | Pointer to **interface{}** | The resource's type | [optional] -**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] ## Methods -### NewOrderSubscriptionDataRelationshipsOrderCopiesData +### NewPOSTAddresses201ResponseDataRelationshipsTagsData -`func NewOrderSubscriptionDataRelationshipsOrderCopiesData() *OrderSubscriptionDataRelationshipsOrderCopiesData` +`func NewPOSTAddresses201ResponseDataRelationshipsTagsData() *POSTAddresses201ResponseDataRelationshipsTagsData` -NewOrderSubscriptionDataRelationshipsOrderCopiesData instantiates a new OrderSubscriptionDataRelationshipsOrderCopiesData object +NewPOSTAddresses201ResponseDataRelationshipsTagsData instantiates a new POSTAddresses201ResponseDataRelationshipsTagsData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewOrderSubscriptionDataRelationshipsOrderCopiesDataWithDefaults +### NewPOSTAddresses201ResponseDataRelationshipsTagsDataWithDefaults -`func NewOrderSubscriptionDataRelationshipsOrderCopiesDataWithDefaults() *OrderSubscriptionDataRelationshipsOrderCopiesData` +`func NewPOSTAddresses201ResponseDataRelationshipsTagsDataWithDefaults() *POSTAddresses201ResponseDataRelationshipsTagsData` -NewOrderSubscriptionDataRelationshipsOrderCopiesDataWithDefaults instantiates a new OrderSubscriptionDataRelationshipsOrderCopiesData object +NewPOSTAddresses201ResponseDataRelationshipsTagsDataWithDefaults instantiates a new POSTAddresses201ResponseDataRelationshipsTagsData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) GetType() interface{}` +`func (o *POSTAddresses201ResponseDataRelationshipsTagsData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) GetTypeOk() (*interface{}, bool)` +`func (o *POSTAddresses201ResponseDataRelationshipsTagsData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) SetType(v interface{})` +`func (o *POSTAddresses201ResponseDataRelationshipsTagsData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) HasType() bool` +`func (o *POSTAddresses201ResponseDataRelationshipsTagsData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) SetTypeNil(b bool)` +`func (o *POSTAddresses201ResponseDataRelationshipsTagsData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) UnsetType()` +`func (o *POSTAddresses201ResponseDataRelationshipsTagsData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) GetId() interface{}` +`func (o *POSTAddresses201ResponseDataRelationshipsTagsData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) GetIdOk() (*interface{}, bool)` +`func (o *POSTAddresses201ResponseDataRelationshipsTagsData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) SetId(v interface{})` +`func (o *POSTAddresses201ResponseDataRelationshipsTagsData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) HasId() bool` +`func (o *POSTAddresses201ResponseDataRelationshipsTagsData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) SetIdNil(b bool)` +`func (o *POSTAddresses201ResponseDataRelationshipsTagsData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) UnsetId()` +`func (o *POSTAddresses201ResponseDataRelationshipsTagsData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/POSTAddresses201ResponseDataRelationshipsVersions.md b/api/docs/POSTAddresses201ResponseDataRelationshipsVersions.md new file mode 100644 index 00000000..5162cb4a --- /dev/null +++ b/api/docs/POSTAddresses201ResponseDataRelationshipsVersions.md @@ -0,0 +1,82 @@ +# POSTAddresses201ResponseDataRelationshipsVersions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersionsData**](POSTAddresses201ResponseDataRelationshipsVersionsData.md) | | [optional] + +## Methods + +### NewPOSTAddresses201ResponseDataRelationshipsVersions + +`func NewPOSTAddresses201ResponseDataRelationshipsVersions() *POSTAddresses201ResponseDataRelationshipsVersions` + +NewPOSTAddresses201ResponseDataRelationshipsVersions instantiates a new POSTAddresses201ResponseDataRelationshipsVersions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTAddresses201ResponseDataRelationshipsVersionsWithDefaults + +`func NewPOSTAddresses201ResponseDataRelationshipsVersionsWithDefaults() *POSTAddresses201ResponseDataRelationshipsVersions` + +NewPOSTAddresses201ResponseDataRelationshipsVersionsWithDefaults instantiates a new POSTAddresses201ResponseDataRelationshipsVersions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTAddresses201ResponseDataRelationshipsVersions) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTAddresses201ResponseDataRelationshipsVersions) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTAddresses201ResponseDataRelationshipsVersions) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTAddresses201ResponseDataRelationshipsVersions) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTAddresses201ResponseDataRelationshipsVersions) GetData() POSTAddresses201ResponseDataRelationshipsVersionsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTAddresses201ResponseDataRelationshipsVersions) GetDataOk() (*POSTAddresses201ResponseDataRelationshipsVersionsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTAddresses201ResponseDataRelationshipsVersions) SetData(v POSTAddresses201ResponseDataRelationshipsVersionsData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTAddresses201ResponseDataRelationshipsVersions) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTAddresses201ResponseDataRelationshipsVersionsData.md b/api/docs/POSTAddresses201ResponseDataRelationshipsVersionsData.md new file mode 100644 index 00000000..45300d20 --- /dev/null +++ b/api/docs/POSTAddresses201ResponseDataRelationshipsVersionsData.md @@ -0,0 +1,102 @@ +# POSTAddresses201ResponseDataRelationshipsVersionsData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTAddresses201ResponseDataRelationshipsVersionsData + +`func NewPOSTAddresses201ResponseDataRelationshipsVersionsData() *POSTAddresses201ResponseDataRelationshipsVersionsData` + +NewPOSTAddresses201ResponseDataRelationshipsVersionsData instantiates a new POSTAddresses201ResponseDataRelationshipsVersionsData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTAddresses201ResponseDataRelationshipsVersionsDataWithDefaults + +`func NewPOSTAddresses201ResponseDataRelationshipsVersionsDataWithDefaults() *POSTAddresses201ResponseDataRelationshipsVersionsData` + +NewPOSTAddresses201ResponseDataRelationshipsVersionsDataWithDefaults instantiates a new POSTAddresses201ResponseDataRelationshipsVersionsData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTAdjustments201ResponseData.md b/api/docs/POSTAdjustments201ResponseData.md index c69a5a65..f0388a7b 100644 --- a/api/docs/POSTAdjustments201ResponseData.md +++ b/api/docs/POSTAdjustments201ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**POSTAdjustments201ResponseDataAttributes**](POSTAdjustments201ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to **interface{}** | | [optional] +**Relationships** | Pointer to [**POSTAdjustments201ResponseDataRelationships**](POSTAdjustments201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *POSTAdjustments201ResponseData) GetRelationships() interface{}` +`func (o *POSTAdjustments201ResponseData) GetRelationships() POSTAdjustments201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *POSTAdjustments201ResponseData) GetRelationshipsOk() (*interface{}, bool)` +`func (o *POSTAdjustments201ResponseData) GetRelationshipsOk() (*POSTAdjustments201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *POSTAdjustments201ResponseData) SetRelationships(v interface{})` +`func (o *POSTAdjustments201ResponseData) SetRelationships(v POSTAdjustments201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. @@ -174,16 +174,6 @@ SetRelationships sets Relationships field to given value. HasRelationships returns a boolean if a field has been set. -### SetRelationshipsNil - -`func (o *POSTAdjustments201ResponseData) SetRelationshipsNil(b bool)` - - SetRelationshipsNil sets the value for Relationships to be an explicit nil - -### UnsetRelationships -`func (o *POSTAdjustments201ResponseData) UnsetRelationships()` - -UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTAdjustments201ResponseDataAttributes.md b/api/docs/POSTAdjustments201ResponseDataAttributes.md index 15162174..1c7d13ff 100644 --- a/api/docs/POSTAdjustments201ResponseDataAttributes.md +++ b/api/docs/POSTAdjustments201ResponseDataAttributes.md @@ -4,11 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **interface{}** | The adjustment name | +**Name** | **interface{}** | The adjustment name. | **CurrencyCode** | **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | **AmountCents** | **interface{}** | The adjustment amount, in cents. | +**DistributeDiscount** | Pointer to **interface{}** | Indicates if negative adjustment amount is distributed for tax calculation. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -120,6 +121,41 @@ SetAmountCents sets AmountCents field to given value. `func (o *POSTAdjustments201ResponseDataAttributes) UnsetAmountCents()` UnsetAmountCents ensures that no value is present for AmountCents, not even an explicit nil +### GetDistributeDiscount + +`func (o *POSTAdjustments201ResponseDataAttributes) GetDistributeDiscount() interface{}` + +GetDistributeDiscount returns the DistributeDiscount field if non-nil, zero value otherwise. + +### GetDistributeDiscountOk + +`func (o *POSTAdjustments201ResponseDataAttributes) GetDistributeDiscountOk() (*interface{}, bool)` + +GetDistributeDiscountOk returns a tuple with the DistributeDiscount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistributeDiscount + +`func (o *POSTAdjustments201ResponseDataAttributes) SetDistributeDiscount(v interface{})` + +SetDistributeDiscount sets DistributeDiscount field to given value. + +### HasDistributeDiscount + +`func (o *POSTAdjustments201ResponseDataAttributes) HasDistributeDiscount() bool` + +HasDistributeDiscount returns a boolean if a field has been set. + +### SetDistributeDiscountNil + +`func (o *POSTAdjustments201ResponseDataAttributes) SetDistributeDiscountNil(b bool)` + + SetDistributeDiscountNil sets the value for DistributeDiscount to be an explicit nil + +### UnsetDistributeDiscount +`func (o *POSTAdjustments201ResponseDataAttributes) UnsetDistributeDiscount()` + +UnsetDistributeDiscount ensures that no value is present for DistributeDiscount, not even an explicit nil ### GetReference `func (o *POSTAdjustments201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTAdjustments201ResponseDataRelationships.md b/api/docs/POSTAdjustments201ResponseDataRelationships.md new file mode 100644 index 00000000..1701fb78 --- /dev/null +++ b/api/docs/POSTAdjustments201ResponseDataRelationships.md @@ -0,0 +1,56 @@ +# POSTAdjustments201ResponseDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewPOSTAdjustments201ResponseDataRelationships + +`func NewPOSTAdjustments201ResponseDataRelationships() *POSTAdjustments201ResponseDataRelationships` + +NewPOSTAdjustments201ResponseDataRelationships instantiates a new POSTAdjustments201ResponseDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTAdjustments201ResponseDataRelationshipsWithDefaults + +`func NewPOSTAdjustments201ResponseDataRelationshipsWithDefaults() *POSTAdjustments201ResponseDataRelationships` + +NewPOSTAdjustments201ResponseDataRelationshipsWithDefaults instantiates a new POSTAdjustments201ResponseDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetVersions + +`func (o *POSTAdjustments201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTAdjustments201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTAdjustments201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTAdjustments201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTAdyenGateways201ResponseDataAttributes.md b/api/docs/POSTAdyenGateways201ResponseDataAttributes.md index c44ccb34..d6c241c7 100644 --- a/api/docs/POSTAdyenGateways201ResponseDataAttributes.md +++ b/api/docs/POSTAdyenGateways201ResponseDataAttributes.md @@ -6,14 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The payment gateway's internal name. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **MerchantAccount** | **interface{}** | The gateway merchant account. | **ApiKey** | **interface{}** | The gateway API key. | **PublicKey** | Pointer to **interface{}** | The public key linked to your API credential. | [optional] **LiveUrlPrefix** | **interface{}** | The prefix of the endpoint used for live transactions. | -**ApiVersion** | Pointer to **interface{}** | The checkout API version, supported range is from 66 to 68, default is 68. | [optional] -**AsyncApi** | Pointer to **interface{}** | Indicates if the gateway will leverage on the Adyen notification webhooks. | [optional] +**ApiVersion** | Pointer to **interface{}** | The checkout API version, supported range is from 66 to 71, default is 71. | [optional] +**AsyncApi** | Pointer to **interface{}** | Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version. | [optional] +**NativeCustomerPaymentSources** | Pointer to **interface{}** | Indicates if the gateway will use the native customer payment sources. | [optional] **WebhookEndpointSecret** | Pointer to **interface{}** | The gateway webhook endpoint secret, generated by Adyen customer area. | [optional] ## Methods @@ -365,6 +366,41 @@ HasAsyncApi returns a boolean if a field has been set. `func (o *POSTAdyenGateways201ResponseDataAttributes) UnsetAsyncApi()` UnsetAsyncApi ensures that no value is present for AsyncApi, not even an explicit nil +### GetNativeCustomerPaymentSources + +`func (o *POSTAdyenGateways201ResponseDataAttributes) GetNativeCustomerPaymentSources() interface{}` + +GetNativeCustomerPaymentSources returns the NativeCustomerPaymentSources field if non-nil, zero value otherwise. + +### GetNativeCustomerPaymentSourcesOk + +`func (o *POSTAdyenGateways201ResponseDataAttributes) GetNativeCustomerPaymentSourcesOk() (*interface{}, bool)` + +GetNativeCustomerPaymentSourcesOk returns a tuple with the NativeCustomerPaymentSources field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNativeCustomerPaymentSources + +`func (o *POSTAdyenGateways201ResponseDataAttributes) SetNativeCustomerPaymentSources(v interface{})` + +SetNativeCustomerPaymentSources sets NativeCustomerPaymentSources field to given value. + +### HasNativeCustomerPaymentSources + +`func (o *POSTAdyenGateways201ResponseDataAttributes) HasNativeCustomerPaymentSources() bool` + +HasNativeCustomerPaymentSources returns a boolean if a field has been set. + +### SetNativeCustomerPaymentSourcesNil + +`func (o *POSTAdyenGateways201ResponseDataAttributes) SetNativeCustomerPaymentSourcesNil(b bool)` + + SetNativeCustomerPaymentSourcesNil sets the value for NativeCustomerPaymentSources to be an explicit nil + +### UnsetNativeCustomerPaymentSources +`func (o *POSTAdyenGateways201ResponseDataAttributes) UnsetNativeCustomerPaymentSources()` + +UnsetNativeCustomerPaymentSources ensures that no value is present for NativeCustomerPaymentSources, not even an explicit nil ### GetWebhookEndpointSecret `func (o *POSTAdyenGateways201ResponseDataAttributes) GetWebhookEndpointSecret() interface{}` diff --git a/api/docs/POSTAdyenGateways201ResponseDataRelationships.md b/api/docs/POSTAdyenGateways201ResponseDataRelationships.md index 78a2cb43..55573a11 100644 --- a/api/docs/POSTAdyenGateways201ResponseDataRelationships.md +++ b/api/docs/POSTAdyenGateways201ResponseDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods**](POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] **AdyenPayments** | Pointer to [**POSTAdyenGateways201ResponseDataRelationshipsAdyenPayments**](POSTAdyenGateways201ResponseDataRelationshipsAdyenPayments.md) | | [optional] ## Methods @@ -51,6 +52,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTAdyenGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTAdyenGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTAdyenGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTAdyenGateways201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetAdyenPayments `func (o *POSTAdyenGateways201ResponseDataRelationships) GetAdyenPayments() POSTAdyenGateways201ResponseDataRelationshipsAdyenPayments` diff --git a/api/docs/POSTAdyenPayments201ResponseDataAttributes.md b/api/docs/POSTAdyenPayments201ResponseDataAttributes.md index 4bf86059..00ff0bef 100644 --- a/api/docs/POSTAdyenPayments201ResponseDataAttributes.md +++ b/api/docs/POSTAdyenPayments201ResponseDataAttributes.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTAdyenPayments201ResponseDataRelationships.md b/api/docs/POSTAdyenPayments201ResponseDataRelationships.md index 599e462a..31a16b2f 100644 --- a/api/docs/POSTAdyenPayments201ResponseDataRelationships.md +++ b/api/docs/POSTAdyenPayments201ResponseDataRelationships.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Order** | Pointer to [**POSTAdyenPayments201ResponseDataRelationshipsOrder**](POSTAdyenPayments201ResponseDataRelationshipsOrder.md) | | [optional] **PaymentGateway** | Pointer to [**POSTAdyenPayments201ResponseDataRelationshipsPaymentGateway**](POSTAdyenPayments201ResponseDataRelationshipsPaymentGateway.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -76,6 +77,31 @@ SetPaymentGateway sets PaymentGateway field to given value. HasPaymentGateway returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTAdyenPayments201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTAdyenPayments201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTAdyenPayments201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTAdyenPayments201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTAttachments201ResponseDataAttributes.md b/api/docs/POSTAttachments201ResponseDataAttributes.md index 973f0718..deac1566 100644 --- a/api/docs/POSTAttachments201ResponseDataAttributes.md +++ b/api/docs/POSTAttachments201ResponseDataAttributes.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Description** | Pointer to **interface{}** | An internal description of the attachment. | [optional] **Url** | Pointer to **interface{}** | The attachment URL. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTAvalaraAccounts201ResponseDataAttributes.md b/api/docs/POSTAvalaraAccounts201ResponseDataAttributes.md index f59f94d0..940fe12c 100644 --- a/api/docs/POSTAvalaraAccounts201ResponseDataAttributes.md +++ b/api/docs/POSTAvalaraAccounts201ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The tax calculator's internal name. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **Username** | **interface{}** | The Avalara account username. | **Password** | **interface{}** | The Avalara account password. | diff --git a/api/docs/POSTAvalaraAccounts201ResponseDataRelationships.md b/api/docs/POSTAvalaraAccounts201ResponseDataRelationships.md index 0dbf3d50..5a5dbdc0 100644 --- a/api/docs/POSTAvalaraAccounts201ResponseDataRelationships.md +++ b/api/docs/POSTAvalaraAccounts201ResponseDataRelationships.md @@ -5,8 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Markets** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsMarkets**](POSTAvalaraAccounts201ResponseDataRelationshipsMarkets.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] **TaxCategories** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories**](POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] ## Methods @@ -54,20 +56,20 @@ HasMarkets returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTAvalaraAccounts201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTAvalaraAccounts201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTAvalaraAccounts201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTAvalaraAccounts201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTAvalaraAccounts201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTAvalaraAccounts201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -77,6 +79,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTAvalaraAccounts201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTAvalaraAccounts201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTAvalaraAccounts201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTAvalaraAccounts201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetTaxCategories `func (o *POSTAvalaraAccounts201ResponseDataRelationships) GetTaxCategories() POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories` @@ -102,6 +129,31 @@ SetTaxCategories sets TaxCategories field to given value. HasTaxCategories returns a boolean if a field has been set. +### GetEvents + +`func (o *POSTAvalaraAccounts201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *POSTAvalaraAccounts201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *POSTAvalaraAccounts201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *POSTAvalaraAccounts201ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md b/api/docs/POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md deleted file mode 100644 index 46557e8a..00000000 --- a/api/docs/POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md +++ /dev/null @@ -1,82 +0,0 @@ -# POSTAvalaraAccounts201ResponseDataRelationshipsAttachments - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] -**Data** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData.md) | | [optional] - -## Methods - -### NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachments - -`func NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachments() *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` - -NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachments instantiates a new POSTAvalaraAccounts201ResponseDataRelationshipsAttachments object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsWithDefaults - -`func NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsWithDefaults() *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` - -NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsWithDefaults instantiates a new POSTAvalaraAccounts201ResponseDataRelationshipsAttachments object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetLinks - -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - -### GetData - -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) GetData() POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) GetDataOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) SetData(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData.md b/api/docs/POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData.md deleted file mode 100644 index c25659aa..00000000 --- a/api/docs/POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData.md +++ /dev/null @@ -1,102 +0,0 @@ -# POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | Pointer to **interface{}** | The resource's type | [optional] -**Id** | Pointer to **interface{}** | The resource ID | [optional] - -## Methods - -### NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData - -`func NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData() *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData` - -NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData instantiates a new POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsDataWithDefaults - -`func NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsDataWithDefaults() *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData` - -NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsDataWithDefaults instantiates a new POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) GetType() interface{}` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) GetTypeOk() (*interface{}, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) SetType(v interface{})` - -SetType sets Type field to given value. - -### HasType - -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) HasType() bool` - -HasType returns a boolean if a field has been set. - -### SetTypeNil - -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) SetTypeNil(b bool)` - - SetTypeNil sets the value for Type to be an explicit nil - -### UnsetType -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) UnsetType()` - -UnsetType ensures that no value is present for Type, not even an explicit nil -### GetId - -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) GetId() interface{}` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) GetIdOk() (*interface{}, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) SetId(v interface{})` - -SetId sets Id field to given value. - -### HasId - -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) HasId() bool` - -HasId returns a boolean if a field has been set. - -### SetIdNil - -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) SetIdNil(b bool)` - - SetIdNil sets the value for Id to be an explicit nil - -### UnsetId -`func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) UnsetId()` - -UnsetId ensures that no value is present for Id, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/POSTAxerveGateways201ResponseDataAttributes.md b/api/docs/POSTAxerveGateways201ResponseDataAttributes.md index 0d29bf87..e47e0709 100644 --- a/api/docs/POSTAxerveGateways201ResponseDataAttributes.md +++ b/api/docs/POSTAxerveGateways201ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The payment gateway's internal name. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **Login** | **interface{}** | The merchant login code. | **ApiKey** | **interface{}** | The gateway API key. | diff --git a/api/docs/POSTAxerveGateways201ResponseDataRelationships.md b/api/docs/POSTAxerveGateways201ResponseDataRelationships.md index 33e03ff6..1d379b5e 100644 --- a/api/docs/POSTAxerveGateways201ResponseDataRelationships.md +++ b/api/docs/POSTAxerveGateways201ResponseDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods**](POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] **AxervePayments** | Pointer to [**POSTAxerveGateways201ResponseDataRelationshipsAxervePayments**](POSTAxerveGateways201ResponseDataRelationshipsAxervePayments.md) | | [optional] ## Methods @@ -51,6 +52,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTAxerveGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTAxerveGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTAxerveGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTAxerveGateways201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetAxervePayments `func (o *POSTAxerveGateways201ResponseDataRelationships) GetAxervePayments() POSTAxerveGateways201ResponseDataRelationshipsAxervePayments` diff --git a/api/docs/POSTAxervePayments201ResponseDataAttributes.md b/api/docs/POSTAxervePayments201ResponseDataAttributes.md index b5f9965e..242b6e14 100644 --- a/api/docs/POSTAxervePayments201ResponseDataAttributes.md +++ b/api/docs/POSTAxervePayments201ResponseDataAttributes.md @@ -5,8 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ReturnUrl** | **interface{}** | The URL where the payer is redirected after they approve the payment. | +**ClientIp** | Pointer to **interface{}** | The IP adress of the client creating the payment. | [optional] +**BuyerDetails** | Pointer to **interface{}** | The details of the buyer creating the payment. | [optional] +**RequestToken** | Pointer to **interface{}** | Requires the creation of a token to represent this payment, mandatory to use customer's wallet and order subscriptions. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -58,6 +61,111 @@ SetReturnUrl sets ReturnUrl field to given value. `func (o *POSTAxervePayments201ResponseDataAttributes) UnsetReturnUrl()` UnsetReturnUrl ensures that no value is present for ReturnUrl, not even an explicit nil +### GetClientIp + +`func (o *POSTAxervePayments201ResponseDataAttributes) GetClientIp() interface{}` + +GetClientIp returns the ClientIp field if non-nil, zero value otherwise. + +### GetClientIpOk + +`func (o *POSTAxervePayments201ResponseDataAttributes) GetClientIpOk() (*interface{}, bool)` + +GetClientIpOk returns a tuple with the ClientIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientIp + +`func (o *POSTAxervePayments201ResponseDataAttributes) SetClientIp(v interface{})` + +SetClientIp sets ClientIp field to given value. + +### HasClientIp + +`func (o *POSTAxervePayments201ResponseDataAttributes) HasClientIp() bool` + +HasClientIp returns a boolean if a field has been set. + +### SetClientIpNil + +`func (o *POSTAxervePayments201ResponseDataAttributes) SetClientIpNil(b bool)` + + SetClientIpNil sets the value for ClientIp to be an explicit nil + +### UnsetClientIp +`func (o *POSTAxervePayments201ResponseDataAttributes) UnsetClientIp()` + +UnsetClientIp ensures that no value is present for ClientIp, not even an explicit nil +### GetBuyerDetails + +`func (o *POSTAxervePayments201ResponseDataAttributes) GetBuyerDetails() interface{}` + +GetBuyerDetails returns the BuyerDetails field if non-nil, zero value otherwise. + +### GetBuyerDetailsOk + +`func (o *POSTAxervePayments201ResponseDataAttributes) GetBuyerDetailsOk() (*interface{}, bool)` + +GetBuyerDetailsOk returns a tuple with the BuyerDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuyerDetails + +`func (o *POSTAxervePayments201ResponseDataAttributes) SetBuyerDetails(v interface{})` + +SetBuyerDetails sets BuyerDetails field to given value. + +### HasBuyerDetails + +`func (o *POSTAxervePayments201ResponseDataAttributes) HasBuyerDetails() bool` + +HasBuyerDetails returns a boolean if a field has been set. + +### SetBuyerDetailsNil + +`func (o *POSTAxervePayments201ResponseDataAttributes) SetBuyerDetailsNil(b bool)` + + SetBuyerDetailsNil sets the value for BuyerDetails to be an explicit nil + +### UnsetBuyerDetails +`func (o *POSTAxervePayments201ResponseDataAttributes) UnsetBuyerDetails()` + +UnsetBuyerDetails ensures that no value is present for BuyerDetails, not even an explicit nil +### GetRequestToken + +`func (o *POSTAxervePayments201ResponseDataAttributes) GetRequestToken() interface{}` + +GetRequestToken returns the RequestToken field if non-nil, zero value otherwise. + +### GetRequestTokenOk + +`func (o *POSTAxervePayments201ResponseDataAttributes) GetRequestTokenOk() (*interface{}, bool)` + +GetRequestTokenOk returns a tuple with the RequestToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestToken + +`func (o *POSTAxervePayments201ResponseDataAttributes) SetRequestToken(v interface{})` + +SetRequestToken sets RequestToken field to given value. + +### HasRequestToken + +`func (o *POSTAxervePayments201ResponseDataAttributes) HasRequestToken() bool` + +HasRequestToken returns a boolean if a field has been set. + +### SetRequestTokenNil + +`func (o *POSTAxervePayments201ResponseDataAttributes) SetRequestTokenNil(b bool)` + + SetRequestTokenNil sets the value for RequestToken to be an explicit nil + +### UnsetRequestToken +`func (o *POSTAxervePayments201ResponseDataAttributes) UnsetRequestToken()` + +UnsetRequestToken ensures that no value is present for RequestToken, not even an explicit nil ### GetReference `func (o *POSTAxervePayments201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTBillingInfoValidationRules201ResponseDataRelationships.md b/api/docs/POSTBillingInfoValidationRules201ResponseDataRelationships.md index 8b543fea..4383ac7d 100644 --- a/api/docs/POSTBillingInfoValidationRules201ResponseDataRelationships.md +++ b/api/docs/POSTBillingInfoValidationRules201ResponseDataRelationships.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Market** | Pointer to [**POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket**](POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -53,20 +54,20 @@ HasMarket returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -76,6 +77,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTBingGeocoders201ResponseDataAttributes.md b/api/docs/POSTBingGeocoders201ResponseDataAttributes.md index 67d0d4e7..1bb30a19 100644 --- a/api/docs/POSTBingGeocoders201ResponseDataAttributes.md +++ b/api/docs/POSTBingGeocoders201ResponseDataAttributes.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **interface{}** | The geocoder's internal name | +**Name** | **interface{}** | The geocoder's internal name. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] -**Key** | **interface{}** | The Bing Virtualearth key | +**Key** | **interface{}** | The Bing Virtualearth key. | ## Methods diff --git a/api/docs/POSTBingGeocoders201ResponseDataRelationships.md b/api/docs/POSTBingGeocoders201ResponseDataRelationships.md index be017ba5..57714dc6 100644 --- a/api/docs/POSTBingGeocoders201ResponseDataRelationships.md +++ b/api/docs/POSTBingGeocoders201ResponseDataRelationships.md @@ -4,8 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Markets** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsMarkets**](POSTAvalaraAccounts201ResponseDataRelationshipsMarkets.md) | | [optional] **Addresses** | Pointer to [**POSTBingGeocoders201ResponseDataRelationshipsAddresses**](POSTBingGeocoders201ResponseDataRelationshipsAddresses.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] ## Methods @@ -26,6 +27,31 @@ NewPOSTBingGeocoders201ResponseDataRelationshipsWithDefaults instantiates a new This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetMarkets + +`func (o *POSTBingGeocoders201ResponseDataRelationships) GetMarkets() POSTAvalaraAccounts201ResponseDataRelationshipsMarkets` + +GetMarkets returns the Markets field if non-nil, zero value otherwise. + +### GetMarketsOk + +`func (o *POSTBingGeocoders201ResponseDataRelationships) GetMarketsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsMarkets, bool)` + +GetMarketsOk returns a tuple with the Markets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkets + +`func (o *POSTBingGeocoders201ResponseDataRelationships) SetMarkets(v POSTAvalaraAccounts201ResponseDataRelationshipsMarkets)` + +SetMarkets sets Markets field to given value. + +### HasMarkets + +`func (o *POSTBingGeocoders201ResponseDataRelationships) HasMarkets() bool` + +HasMarkets returns a boolean if a field has been set. + ### GetAddresses `func (o *POSTBingGeocoders201ResponseDataRelationships) GetAddresses() POSTBingGeocoders201ResponseDataRelationshipsAddresses` @@ -53,20 +79,20 @@ HasAddresses returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTBingGeocoders201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTBingGeocoders201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTBingGeocoders201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTBingGeocoders201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTBingGeocoders201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTBingGeocoders201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. diff --git a/api/docs/POSTBraintreeGateways201ResponseDataAttributes.md b/api/docs/POSTBraintreeGateways201ResponseDataAttributes.md index aefa7c4b..dde3f05a 100644 --- a/api/docs/POSTBraintreeGateways201ResponseDataAttributes.md +++ b/api/docs/POSTBraintreeGateways201ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The payment gateway's internal name. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **MerchantAccountId** | **interface{}** | The gateway merchant account ID. | **MerchantId** | **interface{}** | The gateway merchant ID. | diff --git a/api/docs/POSTBraintreeGateways201ResponseDataRelationships.md b/api/docs/POSTBraintreeGateways201ResponseDataRelationships.md index c0e048e3..48777a20 100644 --- a/api/docs/POSTBraintreeGateways201ResponseDataRelationships.md +++ b/api/docs/POSTBraintreeGateways201ResponseDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods**](POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] **BraintreePayments** | Pointer to [**POSTBraintreeGateways201ResponseDataRelationshipsBraintreePayments**](POSTBraintreeGateways201ResponseDataRelationshipsBraintreePayments.md) | | [optional] ## Methods @@ -51,6 +52,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTBraintreeGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTBraintreeGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTBraintreeGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTBraintreeGateways201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetBraintreePayments `func (o *POSTBraintreeGateways201ResponseDataRelationships) GetBraintreePayments() POSTBraintreeGateways201ResponseDataRelationshipsBraintreePayments` diff --git a/api/docs/POSTBraintreePayments201ResponseDataAttributes.md b/api/docs/POSTBraintreePayments201ResponseDataAttributes.md index 8ad6a26b..e85f4f94 100644 --- a/api/docs/POSTBraintreePayments201ResponseDataAttributes.md +++ b/api/docs/POSTBraintreePayments201ResponseDataAttributes.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentId** | Pointer to **interface{}** | The Braintree payment ID used by local payment and sent by the Braintree JS SDK. | [optional] **Local** | Pointer to **interface{}** | Indicates if the payment is local, in such case Braintree will trigger a webhook call passing the \"payment_id\" and \"payment_method_nonce\" in order to complete the transaction. | [optional] -**Options** | Pointer to **interface{}** | Braintree payment options: 'customer_id' and 'payment_method_token' | [optional] +**Options** | Pointer to **interface{}** | Braintree payment options, 'customer_id' and 'payment_method_token'. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTBundles201ResponseDataAttributes.md b/api/docs/POSTBundles201ResponseDataAttributes.md index b0e4877e..80916807 100644 --- a/api/docs/POSTBundles201ResponseDataAttributes.md +++ b/api/docs/POSTBundles201ResponseDataAttributes.md @@ -9,19 +9,19 @@ Name | Type | Description | Notes **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] **Description** | Pointer to **interface{}** | An internal description of the bundle. | [optional] **ImageUrl** | Pointer to **interface{}** | The URL of an image that represents the bundle. | [optional] -**PriceAmountCents** | **interface{}** | The bundle price amount for the associated market, in cents. | -**CompareAtAmountCents** | **interface{}** | The compared price amount, in cents. Useful to display a percentage discount. | +**PriceAmountCents** | Pointer to **interface{}** | The bundle price amount for the associated market, in cents. | [optional] +**CompareAtAmountCents** | Pointer to **interface{}** | The compared price amount, in cents. Useful to display a percentage discount. | [optional] **ComputePriceAmount** | Pointer to **interface{}** | Send this attribute if you want to compute the price_amount_cents as the sum of the prices of the bundle SKUs for the market. | [optional] **ComputeCompareAtAmount** | Pointer to **interface{}** | Send this attribute if you want to compute the compare_at_amount_cents as the sum of the prices of the bundle SKUs for the market. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods ### NewPOSTBundles201ResponseDataAttributes -`func NewPOSTBundles201ResponseDataAttributes(code interface{}, name interface{}, priceAmountCents interface{}, compareAtAmountCents interface{}, ) *POSTBundles201ResponseDataAttributes` +`func NewPOSTBundles201ResponseDataAttributes(code interface{}, name interface{}, ) *POSTBundles201ResponseDataAttributes` NewPOSTBundles201ResponseDataAttributes instantiates a new POSTBundles201ResponseDataAttributes object This constructor will assign default values to properties that have it defined, @@ -220,6 +220,11 @@ and a boolean to check if the value has been set. SetPriceAmountCents sets PriceAmountCents field to given value. +### HasPriceAmountCents + +`func (o *POSTBundles201ResponseDataAttributes) HasPriceAmountCents() bool` + +HasPriceAmountCents returns a boolean if a field has been set. ### SetPriceAmountCentsNil @@ -250,6 +255,11 @@ and a boolean to check if the value has been set. SetCompareAtAmountCents sets CompareAtAmountCents field to given value. +### HasCompareAtAmountCents + +`func (o *POSTBundles201ResponseDataAttributes) HasCompareAtAmountCents() bool` + +HasCompareAtAmountCents returns a boolean if a field has been set. ### SetCompareAtAmountCentsNil diff --git a/api/docs/POSTBundles201ResponseDataRelationships.md b/api/docs/POSTBundles201ResponseDataRelationships.md index 73e42158..d5c7f41a 100644 --- a/api/docs/POSTBundles201ResponseDataRelationships.md +++ b/api/docs/POSTBundles201ResponseDataRelationships.md @@ -7,7 +7,10 @@ Name | Type | Description | Notes **Market** | Pointer to [**POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket**](POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket.md) | | [optional] **SkuList** | Pointer to [**POSTBundles201ResponseDataRelationshipsSkuList**](POSTBundles201ResponseDataRelationshipsSkuList.md) | | [optional] **Skus** | Pointer to [**POSTBundles201ResponseDataRelationshipsSkus**](POSTBundles201ResponseDataRelationshipsSkus.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**POSTAddresses201ResponseDataRelationshipsTags**](POSTAddresses201ResponseDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -105,20 +108,20 @@ HasSkus returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTBundles201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTBundles201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTBundles201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTBundles201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTBundles201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTBundles201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -128,6 +131,81 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetEvents + +`func (o *POSTBundles201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *POSTBundles201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *POSTBundles201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *POSTBundles201ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *POSTBundles201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *POSTBundles201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *POSTBundles201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *POSTBundles201ResponseDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTBundles201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTBundles201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTBundles201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTBundles201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTBuyXPayYPromotions201Response.md b/api/docs/POSTBuyXPayYPromotions201Response.md new file mode 100644 index 00000000..513dae52 --- /dev/null +++ b/api/docs/POSTBuyXPayYPromotions201Response.md @@ -0,0 +1,56 @@ +# POSTBuyXPayYPromotions201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**POSTBuyXPayYPromotions201ResponseData**](POSTBuyXPayYPromotions201ResponseData.md) | | [optional] + +## Methods + +### NewPOSTBuyXPayYPromotions201Response + +`func NewPOSTBuyXPayYPromotions201Response() *POSTBuyXPayYPromotions201Response` + +NewPOSTBuyXPayYPromotions201Response instantiates a new POSTBuyXPayYPromotions201Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTBuyXPayYPromotions201ResponseWithDefaults + +`func NewPOSTBuyXPayYPromotions201ResponseWithDefaults() *POSTBuyXPayYPromotions201Response` + +NewPOSTBuyXPayYPromotions201ResponseWithDefaults instantiates a new POSTBuyXPayYPromotions201Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *POSTBuyXPayYPromotions201Response) GetData() POSTBuyXPayYPromotions201ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTBuyXPayYPromotions201Response) GetDataOk() (*POSTBuyXPayYPromotions201ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTBuyXPayYPromotions201Response) SetData(v POSTBuyXPayYPromotions201ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTBuyXPayYPromotions201Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTBuyXPayYPromotions201ResponseData.md b/api/docs/POSTBuyXPayYPromotions201ResponseData.md new file mode 100644 index 00000000..595709de --- /dev/null +++ b/api/docs/POSTBuyXPayYPromotions201ResponseData.md @@ -0,0 +1,180 @@ +# POSTBuyXPayYPromotions201ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataAttributes**](POSTBuyXPayYPromotions201ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationships**](POSTBuyXPayYPromotions201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPOSTBuyXPayYPromotions201ResponseData + +`func NewPOSTBuyXPayYPromotions201ResponseData() *POSTBuyXPayYPromotions201ResponseData` + +NewPOSTBuyXPayYPromotions201ResponseData instantiates a new POSTBuyXPayYPromotions201ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTBuyXPayYPromotions201ResponseDataWithDefaults + +`func NewPOSTBuyXPayYPromotions201ResponseDataWithDefaults() *POSTBuyXPayYPromotions201ResponseData` + +NewPOSTBuyXPayYPromotions201ResponseDataWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *POSTBuyXPayYPromotions201ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTBuyXPayYPromotions201ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTBuyXPayYPromotions201ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTBuyXPayYPromotions201ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTBuyXPayYPromotions201ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTBuyXPayYPromotions201ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *POSTBuyXPayYPromotions201ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTBuyXPayYPromotions201ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTBuyXPayYPromotions201ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTBuyXPayYPromotions201ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTBuyXPayYPromotions201ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTBuyXPayYPromotions201ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *POSTBuyXPayYPromotions201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTBuyXPayYPromotions201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTBuyXPayYPromotions201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTBuyXPayYPromotions201ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *POSTBuyXPayYPromotions201ResponseData) GetAttributes() POSTBuyXPayYPromotions201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *POSTBuyXPayYPromotions201ResponseData) GetAttributesOk() (*POSTBuyXPayYPromotions201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *POSTBuyXPayYPromotions201ResponseData) SetAttributes(v POSTBuyXPayYPromotions201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *POSTBuyXPayYPromotions201ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *POSTBuyXPayYPromotions201ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *POSTBuyXPayYPromotions201ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *POSTBuyXPayYPromotions201ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *POSTBuyXPayYPromotions201ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTBuyXPayYPromotions201ResponseDataAttributes.md b/api/docs/POSTBuyXPayYPromotions201ResponseDataAttributes.md new file mode 100644 index 00000000..bfd0a5a0 --- /dev/null +++ b/api/docs/POSTBuyXPayYPromotions201ResponseDataAttributes.md @@ -0,0 +1,545 @@ +# POSTBuyXPayYPromotions201ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **interface{}** | The promotion's internal name. | +**CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] +**StartsAt** | **interface{}** | The activation date/time of this promotion. | +**ExpiresAt** | **interface{}** | The expiration date/time of this promotion (must be after starts_at). | +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] +**X** | **interface{}** | The quantity which defines the threshold for free items (works by multiple of x). | +**Y** | **interface{}** | The quantity which defines how many items you get for free, with the formula x-y. | +**CheapestFree** | Pointer to **interface{}** | Indicates if the cheapest items are discounted, allowing all of the SKUs in the associated list to be eligible for counting. | [optional] + +## Methods + +### NewPOSTBuyXPayYPromotions201ResponseDataAttributes + +`func NewPOSTBuyXPayYPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, x interface{}, y interface{}, ) *POSTBuyXPayYPromotions201ResponseDataAttributes` + +NewPOSTBuyXPayYPromotions201ResponseDataAttributes instantiates a new POSTBuyXPayYPromotions201ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTBuyXPayYPromotions201ResponseDataAttributesWithDefaults + +`func NewPOSTBuyXPayYPromotions201ResponseDataAttributesWithDefaults() *POSTBuyXPayYPromotions201ResponseDataAttributes` + +NewPOSTBuyXPayYPromotions201ResponseDataAttributesWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + + +### SetNameNil + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCurrencyCode + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetCurrencyCode() interface{}` + +GetCurrencyCode returns the CurrencyCode field if non-nil, zero value otherwise. + +### GetCurrencyCodeOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetCurrencyCodeOk() (*interface{}, bool)` + +GetCurrencyCodeOk returns a tuple with the CurrencyCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrencyCode + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetCurrencyCode(v interface{})` + +SetCurrencyCode sets CurrencyCode field to given value. + +### HasCurrencyCode + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasCurrencyCode() bool` + +HasCurrencyCode returns a boolean if a field has been set. + +### SetCurrencyCodeNil + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetCurrencyCodeNil(b bool)` + + SetCurrencyCodeNil sets the value for CurrencyCode to be an explicit nil + +### UnsetCurrencyCode +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) UnsetCurrencyCode()` + +UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil +### GetStartsAt + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetStartsAt() interface{}` + +GetStartsAt returns the StartsAt field if non-nil, zero value otherwise. + +### GetStartsAtOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool)` + +GetStartsAtOk returns a tuple with the StartsAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartsAt + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetStartsAt(v interface{})` + +SetStartsAt sets StartsAt field to given value. + + +### SetStartsAtNil + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetStartsAtNil(b bool)` + + SetStartsAtNil sets the value for StartsAt to be an explicit nil + +### UnsetStartsAt +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) UnsetStartsAt()` + +UnsetStartsAt ensures that no value is present for StartsAt, not even an explicit nil +### GetExpiresAt + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetExpiresAt() interface{}` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetExpiresAt(v interface{})` + +SetExpiresAt sets ExpiresAt field to given value. + + +### SetExpiresAtNil + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetTotalUsageLimit + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetTotalUsageLimit() interface{}` + +GetTotalUsageLimit returns the TotalUsageLimit field if non-nil, zero value otherwise. + +### GetTotalUsageLimitOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetTotalUsageLimitOk() (*interface{}, bool)` + +GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalUsageLimit + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetTotalUsageLimit(v interface{})` + +SetTotalUsageLimit sets TotalUsageLimit field to given value. + +### HasTotalUsageLimit + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasTotalUsageLimit() bool` + +HasTotalUsageLimit returns a boolean if a field has been set. + +### SetTotalUsageLimitNil + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetTotalUsageLimitNil(b bool)` + + SetTotalUsageLimitNil sets the value for TotalUsageLimit to be an explicit nil + +### UnsetTotalUsageLimit +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) UnsetTotalUsageLimit()` + +UnsetTotalUsageLimit ensures that no value is present for TotalUsageLimit, not even an explicit nil +### GetDisable + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil +### GetReference + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil +### GetX + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetX() interface{}` + +GetX returns the X field if non-nil, zero value otherwise. + +### GetXOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetXOk() (*interface{}, bool)` + +GetXOk returns a tuple with the X field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetX + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetX(v interface{})` + +SetX sets X field to given value. + + +### SetXNil + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetXNil(b bool)` + + SetXNil sets the value for X to be an explicit nil + +### UnsetX +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) UnsetX()` + +UnsetX ensures that no value is present for X, not even an explicit nil +### GetY + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetY() interface{}` + +GetY returns the Y field if non-nil, zero value otherwise. + +### GetYOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetYOk() (*interface{}, bool)` + +GetYOk returns a tuple with the Y field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetY + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetY(v interface{})` + +SetY sets Y field to given value. + + +### SetYNil + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetYNil(b bool)` + + SetYNil sets the value for Y to be an explicit nil + +### UnsetY +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) UnsetY()` + +UnsetY ensures that no value is present for Y, not even an explicit nil +### GetCheapestFree + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetCheapestFree() interface{}` + +GetCheapestFree returns the CheapestFree field if non-nil, zero value otherwise. + +### GetCheapestFreeOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetCheapestFreeOk() (*interface{}, bool)` + +GetCheapestFreeOk returns a tuple with the CheapestFree field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCheapestFree + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetCheapestFree(v interface{})` + +SetCheapestFree sets CheapestFree field to given value. + +### HasCheapestFree + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasCheapestFree() bool` + +HasCheapestFree returns a boolean if a field has been set. + +### SetCheapestFreeNil + +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetCheapestFreeNil(b bool)` + + SetCheapestFreeNil sets the value for CheapestFree to be an explicit nil + +### UnsetCheapestFree +`func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) UnsetCheapestFree()` + +UnsetCheapestFree ensures that no value is present for CheapestFree, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationships.md b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationships.md new file mode 100644 index 00000000..d1420c9c --- /dev/null +++ b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationships.md @@ -0,0 +1,368 @@ +# POSTBuyXPayYPromotions201ResponseDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Market** | Pointer to [**POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket**](POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket.md) | | [optional] +**PromotionRules** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules**](POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules.md) | | [optional] +**OrderAmountPromotionRule** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule**](POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule.md) | | [optional] +**SkuListPromotionRule** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule**](POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule.md) | | [optional] +**CouponCodesPromotionRule** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule**](POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule.md) | | [optional] +**CustomPromotionRule** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule**](POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule.md) | | [optional] +**SkuList** | Pointer to [**POSTBundles201ResponseDataRelationshipsSkuList**](POSTBundles201ResponseDataRelationshipsSkuList.md) | | [optional] +**Coupons** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons**](POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**POSTAddresses201ResponseDataRelationshipsTags**](POSTAddresses201ResponseDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] +**Skus** | Pointer to [**POSTBundles201ResponseDataRelationshipsSkus**](POSTBundles201ResponseDataRelationshipsSkus.md) | | [optional] + +## Methods + +### NewPOSTBuyXPayYPromotions201ResponseDataRelationships + +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationships() *POSTBuyXPayYPromotions201ResponseDataRelationships` + +NewPOSTBuyXPayYPromotions201ResponseDataRelationships instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsWithDefaults + +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationships` + +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMarket + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetMarket() POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket` + +GetMarket returns the Market field if non-nil, zero value otherwise. + +### GetMarketOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetMarketOk() (*POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket, bool)` + +GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarket + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetMarket(v POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket)` + +SetMarket sets Market field to given value. + +### HasMarket + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasMarket() bool` + +HasMarket returns a boolean if a field has been set. + +### GetPromotionRules + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetPromotionRules() POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules` + +GetPromotionRules returns the PromotionRules field if non-nil, zero value otherwise. + +### GetPromotionRulesOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetPromotionRulesOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules, bool)` + +GetPromotionRulesOk returns a tuple with the PromotionRules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPromotionRules + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetPromotionRules(v POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules)` + +SetPromotionRules sets PromotionRules field to given value. + +### HasPromotionRules + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasPromotionRules() bool` + +HasPromotionRules returns a boolean if a field has been set. + +### GetOrderAmountPromotionRule + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetOrderAmountPromotionRule() POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule` + +GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field if non-nil, zero value otherwise. + +### GetOrderAmountPromotionRuleOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetOrderAmountPromotionRuleOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule, bool)` + +GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderAmountPromotionRule + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetOrderAmountPromotionRule(v POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule)` + +SetOrderAmountPromotionRule sets OrderAmountPromotionRule field to given value. + +### HasOrderAmountPromotionRule + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasOrderAmountPromotionRule() bool` + +HasOrderAmountPromotionRule returns a boolean if a field has been set. + +### GetSkuListPromotionRule + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetSkuListPromotionRule() POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule` + +GetSkuListPromotionRule returns the SkuListPromotionRule field if non-nil, zero value otherwise. + +### GetSkuListPromotionRuleOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetSkuListPromotionRuleOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule, bool)` + +GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuListPromotionRule + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetSkuListPromotionRule(v POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule)` + +SetSkuListPromotionRule sets SkuListPromotionRule field to given value. + +### HasSkuListPromotionRule + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasSkuListPromotionRule() bool` + +HasSkuListPromotionRule returns a boolean if a field has been set. + +### GetCouponCodesPromotionRule + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetCouponCodesPromotionRule() POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule` + +GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field if non-nil, zero value otherwise. + +### GetCouponCodesPromotionRuleOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetCouponCodesPromotionRuleOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule, bool)` + +GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCouponCodesPromotionRule + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetCouponCodesPromotionRule(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule)` + +SetCouponCodesPromotionRule sets CouponCodesPromotionRule field to given value. + +### HasCouponCodesPromotionRule + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasCouponCodesPromotionRule() bool` + +HasCouponCodesPromotionRule returns a boolean if a field has been set. + +### GetCustomPromotionRule + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetCustomPromotionRule() POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule` + +GetCustomPromotionRule returns the CustomPromotionRule field if non-nil, zero value otherwise. + +### GetCustomPromotionRuleOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetCustomPromotionRuleOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule, bool)` + +GetCustomPromotionRuleOk returns a tuple with the CustomPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomPromotionRule + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetCustomPromotionRule(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule)` + +SetCustomPromotionRule sets CustomPromotionRule field to given value. + +### HasCustomPromotionRule + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasCustomPromotionRule() bool` + +HasCustomPromotionRule returns a boolean if a field has been set. + +### GetSkuList + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetSkuList() POSTBundles201ResponseDataRelationshipsSkuList` + +GetSkuList returns the SkuList field if non-nil, zero value otherwise. + +### GetSkuListOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetSkuListOk() (*POSTBundles201ResponseDataRelationshipsSkuList, bool)` + +GetSkuListOk returns a tuple with the SkuList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuList + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetSkuList(v POSTBundles201ResponseDataRelationshipsSkuList)` + +SetSkuList sets SkuList field to given value. + +### HasSkuList + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasSkuList() bool` + +HasSkuList returns a boolean if a field has been set. + +### GetCoupons + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetCoupons() POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons` + +GetCoupons returns the Coupons field if non-nil, zero value otherwise. + +### GetCouponsOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetCouponsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons, bool)` + +GetCouponsOk returns a tuple with the Coupons field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCoupons + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetCoupons(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons)` + +SetCoupons sets Coupons field to given value. + +### HasCoupons + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasCoupons() bool` + +HasCoupons returns a boolean if a field has been set. + +### GetAttachments + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + +### GetEvents + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + +### GetSkus + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetSkus() POSTBundles201ResponseDataRelationshipsSkus` + +GetSkus returns the Skus field if non-nil, zero value otherwise. + +### GetSkusOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetSkusOk() (*POSTBundles201ResponseDataRelationshipsSkus, bool)` + +GetSkusOk returns a tuple with the Skus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkus + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetSkus(v POSTBundles201ResponseDataRelationshipsSkus)` + +SetSkus sets Skus field to given value. + +### HasSkus + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasSkus() bool` + +HasSkus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule.md b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule.md similarity index 60% rename from api/docs/POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule.md rename to api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule.md index 369d4720..744c5c1c 100644 --- a/api/docs/POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule.md +++ b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule.md @@ -1,78 +1,78 @@ -# POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule +# POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] -**Data** | Pointer to [**POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData**](POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData.md) | | [optional] +**Data** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData**](POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData.md) | | [optional] ## Methods -### NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule -`func NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule() *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule` +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule` -NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule instantiates a new POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule object +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleWithDefaults +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleWithDefaults -`func NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleWithDefaults() *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule` +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule` -NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleWithDefaults instantiates a new POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule object +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetLinks -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` GetLinks returns the Links field if non-nil, zero value otherwise. ### GetLinksOk -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLinks -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` SetLinks sets Links field to given value. ### HasLinks -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) HasLinks() bool` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) HasLinks() bool` HasLinks returns a boolean if a field has been set. ### GetData -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) GetData() POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) GetData() POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) GetDataOk() (*POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData, bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) GetDataOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) SetData(v POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) SetData(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData)` SetData sets Data field to given value. ### HasData -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) HasData() bool` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) HasData() bool` HasData returns a boolean if a field has been set. diff --git a/api/docs/POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData.md b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData.md similarity index 64% rename from api/docs/POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData.md rename to api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData.md index bd0fbee6..d58c4db5 100644 --- a/api/docs/POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData.md +++ b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData.md @@ -1,4 +1,4 @@ -# POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData +# POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData -`func NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData() *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData` +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData` -NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData instantiates a new POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData object +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleDataWithDefaults +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleDataWithDefaults -`func NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleDataWithDefaults() *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData` +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleDataWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData` -NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleDataWithDefaults instantiates a new POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData object +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleDataWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) GetType() interface{}` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) GetTypeOk() (*interface{}, bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) SetType(v interface{})` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) HasType() bool` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) SetTypeNil(b bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) UnsetType()` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) GetId() interface{}` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) GetIdOk() (*interface{}, bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) SetId(v interface{})` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) HasId() bool` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) SetIdNil(b bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) UnsetId()` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons.md b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons.md new file mode 100644 index 00000000..a4fbe79d --- /dev/null +++ b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons.md @@ -0,0 +1,82 @@ +# POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData**](POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData.md) | | [optional] + +## Methods + +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons + +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons` + +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsWithDefaults + +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons` + +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) GetData() POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) GetDataOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) SetData(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData.md b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData.md new file mode 100644 index 00000000..2db32b65 --- /dev/null +++ b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData.md @@ -0,0 +1,102 @@ +# POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData + +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData` + +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsDataWithDefaults + +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsDataWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData` + +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsDataWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule.md b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule.md new file mode 100644 index 00000000..cf0bc80e --- /dev/null +++ b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule.md @@ -0,0 +1,82 @@ +# POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData**](POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData.md) | | [optional] + +## Methods + +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule + +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule` + +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleWithDefaults + +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule` + +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) GetData() POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) GetDataOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) SetData(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData.md b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData.md new file mode 100644 index 00000000..ee78fe1d --- /dev/null +++ b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData.md @@ -0,0 +1,102 @@ +# POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData + +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData` + +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleDataWithDefaults + +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleDataWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData` + +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleDataWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule.md b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule.md similarity index 60% rename from api/docs/POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule.md rename to api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule.md index c7f2b988..709ff45d 100644 --- a/api/docs/POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule.md +++ b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule.md @@ -1,78 +1,78 @@ -# POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule +# POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] -**Data** | Pointer to [**POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData**](POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData.md) | | [optional] +**Data** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData**](POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData.md) | | [optional] ## Methods -### NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule -`func NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule() *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule` +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule() *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule` -NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule instantiates a new POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule object +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleWithDefaults +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleWithDefaults -`func NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleWithDefaults() *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule` +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule` -NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleWithDefaults instantiates a new POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule object +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetLinks -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` GetLinks returns the Links field if non-nil, zero value otherwise. ### GetLinksOk -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLinks -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` SetLinks sets Links field to given value. ### HasLinks -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) HasLinks() bool` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) HasLinks() bool` HasLinks returns a boolean if a field has been set. ### GetData -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) GetData() POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) GetData() POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) GetDataOk() (*POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData, bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) GetDataOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) SetData(v POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) SetData(v POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData)` SetData sets Data field to given value. ### HasData -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) HasData() bool` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) HasData() bool` HasData returns a boolean if a field has been set. diff --git a/api/docs/POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData.md b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData.md similarity index 64% rename from api/docs/POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData.md rename to api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData.md index ff03f36a..ce425fc8 100644 --- a/api/docs/POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData.md +++ b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData.md @@ -1,4 +1,4 @@ -# POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData +# POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData -`func NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData() *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData` +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData() *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData` -NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData instantiates a new POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData object +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleDataWithDefaults +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleDataWithDefaults -`func NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleDataWithDefaults() *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData` +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleDataWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData` -NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleDataWithDefaults instantiates a new POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData object +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleDataWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) GetType() interface{}` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) GetTypeOk() (*interface{}, bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) SetType(v interface{})` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) HasType() bool` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) SetTypeNil(b bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) UnsetType()` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) GetId() interface{}` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) GetIdOk() (*interface{}, bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) SetId(v interface{})` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) HasId() bool` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) SetIdNil(b bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) UnsetId()` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/POSTExternalPromotions201ResponseDataRelationshipsPromotionRules.md b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules.md similarity index 58% rename from api/docs/POSTExternalPromotions201ResponseDataRelationshipsPromotionRules.md rename to api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules.md index c1e39035..cbd8eff9 100644 --- a/api/docs/POSTExternalPromotions201ResponseDataRelationshipsPromotionRules.md +++ b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules.md @@ -1,78 +1,78 @@ -# POSTExternalPromotions201ResponseDataRelationshipsPromotionRules +# POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] -**Data** | Pointer to [**POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData**](POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData.md) | | [optional] +**Data** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData**](POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData.md) | | [optional] ## Methods -### NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRules +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules -`func NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRules() *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules` +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules() *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules` -NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRules instantiates a new POSTExternalPromotions201ResponseDataRelationshipsPromotionRules object +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesWithDefaults +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesWithDefaults -`func NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesWithDefaults() *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules` +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules` -NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesWithDefaults instantiates a new POSTExternalPromotions201ResponseDataRelationshipsPromotionRules object +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetLinks -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` GetLinks returns the Links field if non-nil, zero value otherwise. ### GetLinksOk -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLinks -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` SetLinks sets Links field to given value. ### HasLinks -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) HasLinks() bool` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) HasLinks() bool` HasLinks returns a boolean if a field has been set. ### GetData -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) GetData() POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) GetData() POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) GetDataOk() (*POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData, bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) GetDataOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) SetData(v POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) SetData(v POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData)` SetData sets Data field to given value. ### HasData -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) HasData() bool` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) HasData() bool` HasData returns a boolean if a field has been set. diff --git a/api/docs/POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData.md b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData.md similarity index 62% rename from api/docs/POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData.md rename to api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData.md index 54582b9d..1852925c 100644 --- a/api/docs/POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData.md +++ b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData.md @@ -1,4 +1,4 @@ -# POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData +# POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData -`func NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData() *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData` +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData() *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData` -NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData instantiates a new POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData object +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesDataWithDefaults +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesDataWithDefaults -`func NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesDataWithDefaults() *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData` +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesDataWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData` -NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesDataWithDefaults instantiates a new POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData object +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesDataWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) GetType() interface{}` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) GetTypeOk() (*interface{}, bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) SetType(v interface{})` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) HasType() bool` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) SetTypeNil(b bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) UnsetType()` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) GetId() interface{}` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) GetIdOk() (*interface{}, bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) SetId(v interface{})` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) HasId() bool` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) SetIdNil(b bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) UnsetId()` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule.md b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule.md similarity index 59% rename from api/docs/POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule.md rename to api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule.md index 819bd4b7..0d045800 100644 --- a/api/docs/POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule.md +++ b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule.md @@ -1,78 +1,78 @@ -# POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule +# POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] -**Data** | Pointer to [**POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData**](POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData.md) | | [optional] +**Data** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData**](POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData.md) | | [optional] ## Methods -### NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule -`func NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule() *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule` +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule() *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule` -NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule instantiates a new POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule object +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleWithDefaults +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleWithDefaults -`func NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleWithDefaults() *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule` +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule` -NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleWithDefaults instantiates a new POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule object +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetLinks -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` GetLinks returns the Links field if non-nil, zero value otherwise. ### GetLinksOk -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLinks -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` SetLinks sets Links field to given value. ### HasLinks -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) HasLinks() bool` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) HasLinks() bool` HasLinks returns a boolean if a field has been set. ### GetData -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) GetData() POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) GetData() POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) GetDataOk() (*POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData, bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) GetDataOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) SetData(v POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) SetData(v POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData)` SetData sets Data field to given value. ### HasData -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) HasData() bool` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) HasData() bool` HasData returns a boolean if a field has been set. diff --git a/api/docs/POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData.md b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData.md similarity index 63% rename from api/docs/POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData.md rename to api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData.md index 74df3999..c9abce11 100644 --- a/api/docs/POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData.md +++ b/api/docs/POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData.md @@ -1,4 +1,4 @@ -# POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData +# POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData -`func NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData() *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData` +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData() *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData` -NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData instantiates a new POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData object +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleDataWithDefaults +### NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleDataWithDefaults -`func NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleDataWithDefaults() *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData` +`func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleDataWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData` -NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleDataWithDefaults instantiates a new POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData object +NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleDataWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) GetType() interface{}` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) GetTypeOk() (*interface{}, bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) SetType(v interface{})` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) HasType() bool` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) SetTypeNil(b bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) UnsetType()` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) GetId() interface{}` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) GetIdOk() (*interface{}, bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) SetId(v interface{})` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) HasId() bool` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) SetIdNil(b bool)` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) UnsetId()` +`func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/POSTCarrierAccounts201Response.md b/api/docs/POSTCarrierAccounts201Response.md new file mode 100644 index 00000000..4bf3e5bb --- /dev/null +++ b/api/docs/POSTCarrierAccounts201Response.md @@ -0,0 +1,56 @@ +# POSTCarrierAccounts201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**POSTCarrierAccounts201ResponseData**](POSTCarrierAccounts201ResponseData.md) | | [optional] + +## Methods + +### NewPOSTCarrierAccounts201Response + +`func NewPOSTCarrierAccounts201Response() *POSTCarrierAccounts201Response` + +NewPOSTCarrierAccounts201Response instantiates a new POSTCarrierAccounts201Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTCarrierAccounts201ResponseWithDefaults + +`func NewPOSTCarrierAccounts201ResponseWithDefaults() *POSTCarrierAccounts201Response` + +NewPOSTCarrierAccounts201ResponseWithDefaults instantiates a new POSTCarrierAccounts201Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *POSTCarrierAccounts201Response) GetData() POSTCarrierAccounts201ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTCarrierAccounts201Response) GetDataOk() (*POSTCarrierAccounts201ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTCarrierAccounts201Response) SetData(v POSTCarrierAccounts201ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTCarrierAccounts201Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTCarrierAccounts201ResponseData.md b/api/docs/POSTCarrierAccounts201ResponseData.md new file mode 100644 index 00000000..a043c2ce --- /dev/null +++ b/api/docs/POSTCarrierAccounts201ResponseData.md @@ -0,0 +1,180 @@ +# POSTCarrierAccounts201ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**POSTCarrierAccounts201ResponseDataAttributes**](POSTCarrierAccounts201ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTBillingInfoValidationRules201ResponseDataRelationships**](POSTBillingInfoValidationRules201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPOSTCarrierAccounts201ResponseData + +`func NewPOSTCarrierAccounts201ResponseData() *POSTCarrierAccounts201ResponseData` + +NewPOSTCarrierAccounts201ResponseData instantiates a new POSTCarrierAccounts201ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTCarrierAccounts201ResponseDataWithDefaults + +`func NewPOSTCarrierAccounts201ResponseDataWithDefaults() *POSTCarrierAccounts201ResponseData` + +NewPOSTCarrierAccounts201ResponseDataWithDefaults instantiates a new POSTCarrierAccounts201ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *POSTCarrierAccounts201ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTCarrierAccounts201ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTCarrierAccounts201ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTCarrierAccounts201ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTCarrierAccounts201ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTCarrierAccounts201ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *POSTCarrierAccounts201ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTCarrierAccounts201ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTCarrierAccounts201ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTCarrierAccounts201ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTCarrierAccounts201ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTCarrierAccounts201ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *POSTCarrierAccounts201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTCarrierAccounts201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTCarrierAccounts201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTCarrierAccounts201ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *POSTCarrierAccounts201ResponseData) GetAttributes() POSTCarrierAccounts201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *POSTCarrierAccounts201ResponseData) GetAttributesOk() (*POSTCarrierAccounts201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *POSTCarrierAccounts201ResponseData) SetAttributes(v POSTCarrierAccounts201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *POSTCarrierAccounts201ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *POSTCarrierAccounts201ResponseData) GetRelationships() POSTBillingInfoValidationRules201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *POSTCarrierAccounts201ResponseData) GetRelationshipsOk() (*POSTBillingInfoValidationRules201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *POSTCarrierAccounts201ResponseData) SetRelationships(v POSTBillingInfoValidationRules201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *POSTCarrierAccounts201ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTCarrierAccounts201ResponseDataAttributes.md b/api/docs/POSTCarrierAccounts201ResponseDataAttributes.md new file mode 100644 index 00000000..56a1b544 --- /dev/null +++ b/api/docs/POSTCarrierAccounts201ResponseDataAttributes.md @@ -0,0 +1,231 @@ +# POSTCarrierAccounts201ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **interface{}** | The carrier account internal name. | +**EasypostType** | **interface{}** | The Easypost service carrier type. | +**Credentials** | **interface{}** | The Easypost carrier accounts credentials fields. | +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPOSTCarrierAccounts201ResponseDataAttributes + +`func NewPOSTCarrierAccounts201ResponseDataAttributes(name interface{}, easypostType interface{}, credentials interface{}, ) *POSTCarrierAccounts201ResponseDataAttributes` + +NewPOSTCarrierAccounts201ResponseDataAttributes instantiates a new POSTCarrierAccounts201ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTCarrierAccounts201ResponseDataAttributesWithDefaults + +`func NewPOSTCarrierAccounts201ResponseDataAttributesWithDefaults() *POSTCarrierAccounts201ResponseDataAttributes` + +NewPOSTCarrierAccounts201ResponseDataAttributesWithDefaults instantiates a new POSTCarrierAccounts201ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + + +### SetNameNil + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *POSTCarrierAccounts201ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetEasypostType + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) GetEasypostType() interface{}` + +GetEasypostType returns the EasypostType field if non-nil, zero value otherwise. + +### GetEasypostTypeOk + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) GetEasypostTypeOk() (*interface{}, bool)` + +GetEasypostTypeOk returns a tuple with the EasypostType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEasypostType + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) SetEasypostType(v interface{})` + +SetEasypostType sets EasypostType field to given value. + + +### SetEasypostTypeNil + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) SetEasypostTypeNil(b bool)` + + SetEasypostTypeNil sets the value for EasypostType to be an explicit nil + +### UnsetEasypostType +`func (o *POSTCarrierAccounts201ResponseDataAttributes) UnsetEasypostType()` + +UnsetEasypostType ensures that no value is present for EasypostType, not even an explicit nil +### GetCredentials + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) GetCredentials() interface{}` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) GetCredentialsOk() (*interface{}, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) SetCredentials(v interface{})` + +SetCredentials sets Credentials field to given value. + + +### SetCredentialsNil + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) SetCredentialsNil(b bool)` + + SetCredentialsNil sets the value for Credentials to be an explicit nil + +### UnsetCredentials +`func (o *POSTCarrierAccounts201ResponseDataAttributes) UnsetCredentials()` + +UnsetCredentials ensures that no value is present for Credentials, not even an explicit nil +### GetReference + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *POSTCarrierAccounts201ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *POSTCarrierAccounts201ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *POSTCarrierAccounts201ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *POSTCarrierAccounts201ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTCheckoutComGateways201ResponseDataAttributes.md b/api/docs/POSTCheckoutComGateways201ResponseDataAttributes.md index 94badb72..0d50ec8c 100644 --- a/api/docs/POSTCheckoutComGateways201ResponseDataAttributes.md +++ b/api/docs/POSTCheckoutComGateways201ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The payment gateway's internal name. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **SecretKey** | **interface{}** | The gateway secret key. | **PublicKey** | **interface{}** | The gateway public key. | diff --git a/api/docs/POSTCheckoutComGateways201ResponseDataRelationships.md b/api/docs/POSTCheckoutComGateways201ResponseDataRelationships.md index 1869f396..4d4f35b8 100644 --- a/api/docs/POSTCheckoutComGateways201ResponseDataRelationships.md +++ b/api/docs/POSTCheckoutComGateways201ResponseDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods**](POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] **CheckoutComPayments** | Pointer to [**POSTCheckoutComGateways201ResponseDataRelationshipsCheckoutComPayments**](POSTCheckoutComGateways201ResponseDataRelationshipsCheckoutComPayments.md) | | [optional] ## Methods @@ -51,6 +52,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTCheckoutComGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTCheckoutComGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTCheckoutComGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTCheckoutComGateways201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetCheckoutComPayments `func (o *POSTCheckoutComGateways201ResponseDataRelationships) GetCheckoutComPayments() POSTCheckoutComGateways201ResponseDataRelationshipsCheckoutComPayments` diff --git a/api/docs/POSTCheckoutComPayments201ResponseDataAttributes.md b/api/docs/POSTCheckoutComPayments201ResponseDataAttributes.md index effbc308..14475355 100644 --- a/api/docs/POSTCheckoutComPayments201ResponseDataAttributes.md +++ b/api/docs/POSTCheckoutComPayments201ResponseDataAttributes.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **SuccessUrl** | Pointer to **interface{}** | The URL to redirect your customer upon 3DS succeeded authentication. | [optional] **FailureUrl** | Pointer to **interface{}** | The URL to redirect your customer upon 3DS failed authentication. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTCleanups201ResponseDataAttributes.md b/api/docs/POSTCleanups201ResponseDataAttributes.md index fdc31517..f45d79c0 100644 --- a/api/docs/POSTCleanups201ResponseDataAttributes.md +++ b/api/docs/POSTCleanups201ResponseDataAttributes.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **ResourceType** | **interface{}** | The type of resource being cleaned. | **Filters** | Pointer to **interface{}** | The filters used to select the records to be cleaned. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTCleanups201ResponseDataRelationships.md b/api/docs/POSTCleanups201ResponseDataRelationships.md index 2deb4377..bc030047 100644 --- a/api/docs/POSTCleanups201ResponseDataRelationships.md +++ b/api/docs/POSTCleanups201ResponseDataRelationships.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -27,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetEvents -`func (o *POSTCleanups201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` +`func (o *POSTCleanups201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *POSTCleanups201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` +`func (o *POSTCleanups201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *POSTCleanups201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` +`func (o *POSTCleanups201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -50,6 +51,31 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTCleanups201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTCleanups201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTCleanups201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTCleanups201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTCouponCodesPromotionRules201ResponseDataRelationships.md b/api/docs/POSTCouponCodesPromotionRules201ResponseDataRelationships.md index 3c8193d3..30230fae 100644 --- a/api/docs/POSTCouponCodesPromotionRules201ResponseDataRelationships.md +++ b/api/docs/POSTCouponCodesPromotionRules201ResponseDataRelationships.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Promotion** | Pointer to [**POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion**](POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion.md) | | [optional] -**Coupons** | Pointer to [**POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons**](POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] +**Coupons** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons**](POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons.md) | | [optional] ## Methods @@ -51,22 +52,47 @@ SetPromotion sets Promotion field to given value. HasPromotion returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetCoupons -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) GetCoupons() POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons` +`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) GetCoupons() POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons` GetCoupons returns the Coupons field if non-nil, zero value otherwise. ### GetCouponsOk -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) GetCouponsOk() (*POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons, bool)` +`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) GetCouponsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons, bool)` GetCouponsOk returns a tuple with the Coupons field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCoupons -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) SetCoupons(v POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons)` +`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) SetCoupons(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons)` SetCoupons sets Coupons field to given value. diff --git a/api/docs/POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons.md b/api/docs/POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons.md deleted file mode 100644 index ed83ac36..00000000 --- a/api/docs/POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons.md +++ /dev/null @@ -1,82 +0,0 @@ -# POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] -**Data** | Pointer to [**POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData**](POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData.md) | | [optional] - -## Methods - -### NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons - -`func NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons() *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons` - -NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons instantiates a new POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsWithDefaults - -`func NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsWithDefaults() *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons` - -NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsWithDefaults instantiates a new POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetLinks - -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - -### GetData - -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) GetData() POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) GetDataOk() (*POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) SetData(v POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData.md b/api/docs/POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData.md deleted file mode 100644 index c7167643..00000000 --- a/api/docs/POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData.md +++ /dev/null @@ -1,102 +0,0 @@ -# POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | Pointer to **interface{}** | The resource's type | [optional] -**Id** | Pointer to **interface{}** | The resource ID | [optional] - -## Methods - -### NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData - -`func NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData() *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData` - -NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData instantiates a new POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsDataWithDefaults - -`func NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsDataWithDefaults() *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData` - -NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsDataWithDefaults instantiates a new POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) GetType() interface{}` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) GetTypeOk() (*interface{}, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) SetType(v interface{})` - -SetType sets Type field to given value. - -### HasType - -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) HasType() bool` - -HasType returns a boolean if a field has been set. - -### SetTypeNil - -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) SetTypeNil(b bool)` - - SetTypeNil sets the value for Type to be an explicit nil - -### UnsetType -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) UnsetType()` - -UnsetType ensures that no value is present for Type, not even an explicit nil -### GetId - -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) GetId() interface{}` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) GetIdOk() (*interface{}, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) SetId(v interface{})` - -SetId sets Id field to given value. - -### HasId - -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) HasId() bool` - -HasId returns a boolean if a field has been set. - -### SetIdNil - -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) SetIdNil(b bool)` - - SetIdNil sets the value for Id to be an explicit nil - -### UnsetId -`func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) UnsetId()` - -UnsetId ensures that no value is present for Id, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/POSTCouponRecipients201ResponseDataAttributes.md b/api/docs/POSTCouponRecipients201ResponseDataAttributes.md index 76844602..83f2f699 100644 --- a/api/docs/POSTCouponRecipients201ResponseDataAttributes.md +++ b/api/docs/POSTCouponRecipients201ResponseDataAttributes.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Email** | **interface{}** | The recipient email address | -**FirstName** | Pointer to **interface{}** | The recipient first name | [optional] -**LastName** | Pointer to **interface{}** | The recipient last name | [optional] +**Email** | **interface{}** | The recipient email address. | +**FirstName** | Pointer to **interface{}** | The recipient first name. | [optional] +**LastName** | Pointer to **interface{}** | The recipient last name. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTCouponRecipients201ResponseDataRelationships.md b/api/docs/POSTCouponRecipients201ResponseDataRelationships.md index af9a0261..264e289f 100644 --- a/api/docs/POSTCouponRecipients201ResponseDataRelationships.md +++ b/api/docs/POSTCouponRecipients201ResponseDataRelationships.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Customer** | Pointer to [**POSTCouponRecipients201ResponseDataRelationshipsCustomer**](POSTCouponRecipients201ResponseDataRelationshipsCustomer.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -53,20 +54,20 @@ HasCustomer returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTCouponRecipients201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTCouponRecipients201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTCouponRecipients201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTCouponRecipients201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTCouponRecipients201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTCouponRecipients201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -76,6 +77,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTCouponRecipients201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTCouponRecipients201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTCouponRecipients201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTCouponRecipients201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTCoupons201ResponseDataAttributes.md b/api/docs/POSTCoupons201ResponseDataAttributes.md index 8cf86373..16077770 100644 --- a/api/docs/POSTCoupons201ResponseDataAttributes.md +++ b/api/docs/POSTCoupons201ResponseDataAttributes.md @@ -6,17 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **interface{}** | The coupon code, that uniquely identifies the coupon within the promotion rule. | **CustomerSingleUse** | Pointer to **interface{}** | Indicates if the coupon can be used just once per customer. | [optional] -**UsageLimit** | **interface{}** | The total number of times this coupon can be used. | +**UsageLimit** | Pointer to **interface{}** | The total number of times this coupon can be used. | [optional] **RecipientEmail** | Pointer to **interface{}** | The email address of the associated recipient. When creating or updating a coupon, this is a shortcut to find or create the associated recipient by email. | [optional] +**ExpiresAt** | Pointer to **interface{}** | Time at which the coupon will expire. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods ### NewPOSTCoupons201ResponseDataAttributes -`func NewPOSTCoupons201ResponseDataAttributes(code interface{}, usageLimit interface{}, ) *POSTCoupons201ResponseDataAttributes` +`func NewPOSTCoupons201ResponseDataAttributes(code interface{}, ) *POSTCoupons201ResponseDataAttributes` NewPOSTCoupons201ResponseDataAttributes instantiates a new POSTCoupons201ResponseDataAttributes object This constructor will assign default values to properties that have it defined, @@ -115,6 +116,11 @@ and a boolean to check if the value has been set. SetUsageLimit sets UsageLimit field to given value. +### HasUsageLimit + +`func (o *POSTCoupons201ResponseDataAttributes) HasUsageLimit() bool` + +HasUsageLimit returns a boolean if a field has been set. ### SetUsageLimitNil @@ -161,6 +167,41 @@ HasRecipientEmail returns a boolean if a field has been set. `func (o *POSTCoupons201ResponseDataAttributes) UnsetRecipientEmail()` UnsetRecipientEmail ensures that no value is present for RecipientEmail, not even an explicit nil +### GetExpiresAt + +`func (o *POSTCoupons201ResponseDataAttributes) GetExpiresAt() interface{}` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *POSTCoupons201ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *POSTCoupons201ResponseDataAttributes) SetExpiresAt(v interface{})` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *POSTCoupons201ResponseDataAttributes) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *POSTCoupons201ResponseDataAttributes) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *POSTCoupons201ResponseDataAttributes) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil ### GetReference `func (o *POSTCoupons201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTCoupons201ResponseDataRelationships.md b/api/docs/POSTCoupons201ResponseDataRelationships.md index 00c0114a..4b9e6798 100644 --- a/api/docs/POSTCoupons201ResponseDataRelationships.md +++ b/api/docs/POSTCoupons201ResponseDataRelationships.md @@ -5,6 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PromotionRule** | Pointer to [**POSTCoupons201ResponseDataRelationshipsPromotionRule**](POSTCoupons201ResponseDataRelationshipsPromotionRule.md) | | [optional] +**CouponRecipient** | Pointer to [**POSTCoupons201ResponseDataRelationshipsCouponRecipient**](POSTCoupons201ResponseDataRelationshipsCouponRecipient.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**POSTAddresses201ResponseDataRelationshipsTags**](POSTAddresses201ResponseDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -50,6 +54,106 @@ SetPromotionRule sets PromotionRule field to given value. HasPromotionRule returns a boolean if a field has been set. +### GetCouponRecipient + +`func (o *POSTCoupons201ResponseDataRelationships) GetCouponRecipient() POSTCoupons201ResponseDataRelationshipsCouponRecipient` + +GetCouponRecipient returns the CouponRecipient field if non-nil, zero value otherwise. + +### GetCouponRecipientOk + +`func (o *POSTCoupons201ResponseDataRelationships) GetCouponRecipientOk() (*POSTCoupons201ResponseDataRelationshipsCouponRecipient, bool)` + +GetCouponRecipientOk returns a tuple with the CouponRecipient field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCouponRecipient + +`func (o *POSTCoupons201ResponseDataRelationships) SetCouponRecipient(v POSTCoupons201ResponseDataRelationshipsCouponRecipient)` + +SetCouponRecipient sets CouponRecipient field to given value. + +### HasCouponRecipient + +`func (o *POSTCoupons201ResponseDataRelationships) HasCouponRecipient() bool` + +HasCouponRecipient returns a boolean if a field has been set. + +### GetEvents + +`func (o *POSTCoupons201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *POSTCoupons201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *POSTCoupons201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *POSTCoupons201ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *POSTCoupons201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *POSTCoupons201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *POSTCoupons201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *POSTCoupons201ResponseDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTCoupons201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTCoupons201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTCoupons201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTCoupons201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTCoupons201ResponseDataRelationshipsCouponRecipient.md b/api/docs/POSTCoupons201ResponseDataRelationshipsCouponRecipient.md new file mode 100644 index 00000000..116e0f3c --- /dev/null +++ b/api/docs/POSTCoupons201ResponseDataRelationshipsCouponRecipient.md @@ -0,0 +1,82 @@ +# POSTCoupons201ResponseDataRelationshipsCouponRecipient + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTCoupons201ResponseDataRelationshipsCouponRecipientData**](POSTCoupons201ResponseDataRelationshipsCouponRecipientData.md) | | [optional] + +## Methods + +### NewPOSTCoupons201ResponseDataRelationshipsCouponRecipient + +`func NewPOSTCoupons201ResponseDataRelationshipsCouponRecipient() *POSTCoupons201ResponseDataRelationshipsCouponRecipient` + +NewPOSTCoupons201ResponseDataRelationshipsCouponRecipient instantiates a new POSTCoupons201ResponseDataRelationshipsCouponRecipient object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTCoupons201ResponseDataRelationshipsCouponRecipientWithDefaults + +`func NewPOSTCoupons201ResponseDataRelationshipsCouponRecipientWithDefaults() *POSTCoupons201ResponseDataRelationshipsCouponRecipient` + +NewPOSTCoupons201ResponseDataRelationshipsCouponRecipientWithDefaults instantiates a new POSTCoupons201ResponseDataRelationshipsCouponRecipient object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipient) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipient) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipient) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipient) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipient) GetData() POSTCoupons201ResponseDataRelationshipsCouponRecipientData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipient) GetDataOk() (*POSTCoupons201ResponseDataRelationshipsCouponRecipientData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipient) SetData(v POSTCoupons201ResponseDataRelationshipsCouponRecipientData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipient) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTCoupons201ResponseDataRelationshipsCouponRecipientData.md b/api/docs/POSTCoupons201ResponseDataRelationshipsCouponRecipientData.md new file mode 100644 index 00000000..cf59e02e --- /dev/null +++ b/api/docs/POSTCoupons201ResponseDataRelationshipsCouponRecipientData.md @@ -0,0 +1,102 @@ +# POSTCoupons201ResponseDataRelationshipsCouponRecipientData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTCoupons201ResponseDataRelationshipsCouponRecipientData + +`func NewPOSTCoupons201ResponseDataRelationshipsCouponRecipientData() *POSTCoupons201ResponseDataRelationshipsCouponRecipientData` + +NewPOSTCoupons201ResponseDataRelationshipsCouponRecipientData instantiates a new POSTCoupons201ResponseDataRelationshipsCouponRecipientData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTCoupons201ResponseDataRelationshipsCouponRecipientDataWithDefaults + +`func NewPOSTCoupons201ResponseDataRelationshipsCouponRecipientDataWithDefaults() *POSTCoupons201ResponseDataRelationshipsCouponRecipientData` + +NewPOSTCoupons201ResponseDataRelationshipsCouponRecipientDataWithDefaults instantiates a new POSTCoupons201ResponseDataRelationshipsCouponRecipientData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTCustomPromotionRules201Response.md b/api/docs/POSTCustomPromotionRules201Response.md new file mode 100644 index 00000000..dc15068f --- /dev/null +++ b/api/docs/POSTCustomPromotionRules201Response.md @@ -0,0 +1,56 @@ +# POSTCustomPromotionRules201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**POSTCustomPromotionRules201ResponseData**](POSTCustomPromotionRules201ResponseData.md) | | [optional] + +## Methods + +### NewPOSTCustomPromotionRules201Response + +`func NewPOSTCustomPromotionRules201Response() *POSTCustomPromotionRules201Response` + +NewPOSTCustomPromotionRules201Response instantiates a new POSTCustomPromotionRules201Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTCustomPromotionRules201ResponseWithDefaults + +`func NewPOSTCustomPromotionRules201ResponseWithDefaults() *POSTCustomPromotionRules201Response` + +NewPOSTCustomPromotionRules201ResponseWithDefaults instantiates a new POSTCustomPromotionRules201Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *POSTCustomPromotionRules201Response) GetData() POSTCustomPromotionRules201ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTCustomPromotionRules201Response) GetDataOk() (*POSTCustomPromotionRules201ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTCustomPromotionRules201Response) SetData(v POSTCustomPromotionRules201ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTCustomPromotionRules201Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTCustomPromotionRules201ResponseData.md b/api/docs/POSTCustomPromotionRules201ResponseData.md new file mode 100644 index 00000000..6fbf2a22 --- /dev/null +++ b/api/docs/POSTCustomPromotionRules201ResponseData.md @@ -0,0 +1,180 @@ +# POSTCustomPromotionRules201ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**POSTCustomPromotionRules201ResponseDataAttributes**](POSTCustomPromotionRules201ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTCustomPromotionRules201ResponseDataRelationships**](POSTCustomPromotionRules201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPOSTCustomPromotionRules201ResponseData + +`func NewPOSTCustomPromotionRules201ResponseData() *POSTCustomPromotionRules201ResponseData` + +NewPOSTCustomPromotionRules201ResponseData instantiates a new POSTCustomPromotionRules201ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTCustomPromotionRules201ResponseDataWithDefaults + +`func NewPOSTCustomPromotionRules201ResponseDataWithDefaults() *POSTCustomPromotionRules201ResponseData` + +NewPOSTCustomPromotionRules201ResponseDataWithDefaults instantiates a new POSTCustomPromotionRules201ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *POSTCustomPromotionRules201ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTCustomPromotionRules201ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTCustomPromotionRules201ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTCustomPromotionRules201ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTCustomPromotionRules201ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTCustomPromotionRules201ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *POSTCustomPromotionRules201ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTCustomPromotionRules201ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTCustomPromotionRules201ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTCustomPromotionRules201ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTCustomPromotionRules201ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTCustomPromotionRules201ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *POSTCustomPromotionRules201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTCustomPromotionRules201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTCustomPromotionRules201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTCustomPromotionRules201ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *POSTCustomPromotionRules201ResponseData) GetAttributes() POSTCustomPromotionRules201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *POSTCustomPromotionRules201ResponseData) GetAttributesOk() (*POSTCustomPromotionRules201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *POSTCustomPromotionRules201ResponseData) SetAttributes(v POSTCustomPromotionRules201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *POSTCustomPromotionRules201ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *POSTCustomPromotionRules201ResponseData) GetRelationships() POSTCustomPromotionRules201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *POSTCustomPromotionRules201ResponseData) GetRelationshipsOk() (*POSTCustomPromotionRules201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *POSTCustomPromotionRules201ResponseData) SetRelationships(v POSTCustomPromotionRules201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *POSTCustomPromotionRules201ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTCustomPromotionRules201ResponseDataAttributes.md b/api/docs/POSTCustomPromotionRules201ResponseDataAttributes.md new file mode 100644 index 00000000..5499c282 --- /dev/null +++ b/api/docs/POSTCustomPromotionRules201ResponseDataAttributes.md @@ -0,0 +1,174 @@ +# POSTCustomPromotionRules201ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] +**Filters** | Pointer to **interface{}** | The filters used to trigger promotion on the matching order and its relationships attributes. | [optional] + +## Methods + +### NewPOSTCustomPromotionRules201ResponseDataAttributes + +`func NewPOSTCustomPromotionRules201ResponseDataAttributes() *POSTCustomPromotionRules201ResponseDataAttributes` + +NewPOSTCustomPromotionRules201ResponseDataAttributes instantiates a new POSTCustomPromotionRules201ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTCustomPromotionRules201ResponseDataAttributesWithDefaults + +`func NewPOSTCustomPromotionRules201ResponseDataAttributesWithDefaults() *POSTCustomPromotionRules201ResponseDataAttributes` + +NewPOSTCustomPromotionRules201ResponseDataAttributesWithDefaults instantiates a new POSTCustomPromotionRules201ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetReference + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil +### GetFilters + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) GetFilters() interface{}` + +GetFilters returns the Filters field if non-nil, zero value otherwise. + +### GetFiltersOk + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) GetFiltersOk() (*interface{}, bool)` + +GetFiltersOk returns a tuple with the Filters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilters + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) SetFilters(v interface{})` + +SetFilters sets Filters field to given value. + +### HasFilters + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) HasFilters() bool` + +HasFilters returns a boolean if a field has been set. + +### SetFiltersNil + +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) SetFiltersNil(b bool)` + + SetFiltersNil sets the value for Filters to be an explicit nil + +### UnsetFilters +`func (o *POSTCustomPromotionRules201ResponseDataAttributes) UnsetFilters()` + +UnsetFilters ensures that no value is present for Filters, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTCustomPromotionRules201ResponseDataRelationships.md b/api/docs/POSTCustomPromotionRules201ResponseDataRelationships.md new file mode 100644 index 00000000..b69c6d56 --- /dev/null +++ b/api/docs/POSTCustomPromotionRules201ResponseDataRelationships.md @@ -0,0 +1,82 @@ +# POSTCustomPromotionRules201ResponseDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Promotion** | Pointer to [**POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion**](POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewPOSTCustomPromotionRules201ResponseDataRelationships + +`func NewPOSTCustomPromotionRules201ResponseDataRelationships() *POSTCustomPromotionRules201ResponseDataRelationships` + +NewPOSTCustomPromotionRules201ResponseDataRelationships instantiates a new POSTCustomPromotionRules201ResponseDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTCustomPromotionRules201ResponseDataRelationshipsWithDefaults + +`func NewPOSTCustomPromotionRules201ResponseDataRelationshipsWithDefaults() *POSTCustomPromotionRules201ResponseDataRelationships` + +NewPOSTCustomPromotionRules201ResponseDataRelationshipsWithDefaults instantiates a new POSTCustomPromotionRules201ResponseDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPromotion + +`func (o *POSTCustomPromotionRules201ResponseDataRelationships) GetPromotion() POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion` + +GetPromotion returns the Promotion field if non-nil, zero value otherwise. + +### GetPromotionOk + +`func (o *POSTCustomPromotionRules201ResponseDataRelationships) GetPromotionOk() (*POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion, bool)` + +GetPromotionOk returns a tuple with the Promotion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPromotion + +`func (o *POSTCustomPromotionRules201ResponseDataRelationships) SetPromotion(v POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion)` + +SetPromotion sets Promotion field to given value. + +### HasPromotion + +`func (o *POSTCustomPromotionRules201ResponseDataRelationships) HasPromotion() bool` + +HasPromotion returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTCustomPromotionRules201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTCustomPromotionRules201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTCustomPromotionRules201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTCustomPromotionRules201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTCustomerAddresses201ResponseData.md b/api/docs/POSTCustomerAddresses201ResponseData.md index 03699e10..cfb665c8 100644 --- a/api/docs/POSTCustomerAddresses201ResponseData.md +++ b/api/docs/POSTCustomerAddresses201ResponseData.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | Pointer to **interface{}** | The resource's id | [optional] **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] -**Attributes** | Pointer to [**POSTAdyenPayments201ResponseDataAttributes**](POSTAdyenPayments201ResponseDataAttributes.md) | | [optional] +**Attributes** | Pointer to [**POSTCustomerAddresses201ResponseDataAttributes**](POSTCustomerAddresses201ResponseDataAttributes.md) | | [optional] **Relationships** | Pointer to [**POSTCustomerAddresses201ResponseDataRelationships**](POSTCustomerAddresses201ResponseDataRelationships.md) | | [optional] ## Methods @@ -126,20 +126,20 @@ HasLinks returns a boolean if a field has been set. ### GetAttributes -`func (o *POSTCustomerAddresses201ResponseData) GetAttributes() POSTAdyenPayments201ResponseDataAttributes` +`func (o *POSTCustomerAddresses201ResponseData) GetAttributes() POSTCustomerAddresses201ResponseDataAttributes` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *POSTCustomerAddresses201ResponseData) GetAttributesOk() (*POSTAdyenPayments201ResponseDataAttributes, bool)` +`func (o *POSTCustomerAddresses201ResponseData) GetAttributesOk() (*POSTCustomerAddresses201ResponseDataAttributes, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *POSTCustomerAddresses201ResponseData) SetAttributes(v POSTAdyenPayments201ResponseDataAttributes)` +`func (o *POSTCustomerAddresses201ResponseData) SetAttributes(v POSTCustomerAddresses201ResponseDataAttributes)` SetAttributes sets Attributes field to given value. diff --git a/api/docs/POSTCustomerAddresses201ResponseDataAttributes.md b/api/docs/POSTCustomerAddresses201ResponseDataAttributes.md new file mode 100644 index 00000000..dbb47316 --- /dev/null +++ b/api/docs/POSTCustomerAddresses201ResponseDataAttributes.md @@ -0,0 +1,169 @@ +# POSTCustomerAddresses201ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomerEmail** | **interface{}** | The email of the customer associated to the address. | +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPOSTCustomerAddresses201ResponseDataAttributes + +`func NewPOSTCustomerAddresses201ResponseDataAttributes(customerEmail interface{}, ) *POSTCustomerAddresses201ResponseDataAttributes` + +NewPOSTCustomerAddresses201ResponseDataAttributes instantiates a new POSTCustomerAddresses201ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTCustomerAddresses201ResponseDataAttributesWithDefaults + +`func NewPOSTCustomerAddresses201ResponseDataAttributesWithDefaults() *POSTCustomerAddresses201ResponseDataAttributes` + +NewPOSTCustomerAddresses201ResponseDataAttributesWithDefaults instantiates a new POSTCustomerAddresses201ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCustomerEmail + +`func (o *POSTCustomerAddresses201ResponseDataAttributes) GetCustomerEmail() interface{}` + +GetCustomerEmail returns the CustomerEmail field if non-nil, zero value otherwise. + +### GetCustomerEmailOk + +`func (o *POSTCustomerAddresses201ResponseDataAttributes) GetCustomerEmailOk() (*interface{}, bool)` + +GetCustomerEmailOk returns a tuple with the CustomerEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomerEmail + +`func (o *POSTCustomerAddresses201ResponseDataAttributes) SetCustomerEmail(v interface{})` + +SetCustomerEmail sets CustomerEmail field to given value. + + +### SetCustomerEmailNil + +`func (o *POSTCustomerAddresses201ResponseDataAttributes) SetCustomerEmailNil(b bool)` + + SetCustomerEmailNil sets the value for CustomerEmail to be an explicit nil + +### UnsetCustomerEmail +`func (o *POSTCustomerAddresses201ResponseDataAttributes) UnsetCustomerEmail()` + +UnsetCustomerEmail ensures that no value is present for CustomerEmail, not even an explicit nil +### GetReference + +`func (o *POSTCustomerAddresses201ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *POSTCustomerAddresses201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *POSTCustomerAddresses201ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *POSTCustomerAddresses201ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *POSTCustomerAddresses201ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *POSTCustomerAddresses201ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *POSTCustomerAddresses201ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *POSTCustomerAddresses201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *POSTCustomerAddresses201ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *POSTCustomerAddresses201ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *POSTCustomerAddresses201ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *POSTCustomerAddresses201ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *POSTCustomerAddresses201ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *POSTCustomerAddresses201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *POSTCustomerAddresses201ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *POSTCustomerAddresses201ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *POSTCustomerAddresses201ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *POSTCustomerAddresses201ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTCustomerAddresses201ResponseDataRelationships.md b/api/docs/POSTCustomerAddresses201ResponseDataRelationships.md index 12375302..3ad94435 100644 --- a/api/docs/POSTCustomerAddresses201ResponseDataRelationships.md +++ b/api/docs/POSTCustomerAddresses201ResponseDataRelationships.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Customer** | Pointer to [**POSTCouponRecipients201ResponseDataRelationshipsCustomer**](POSTCouponRecipients201ResponseDataRelationshipsCustomer.md) | | [optional] **Address** | Pointer to [**POSTCustomerAddresses201ResponseDataRelationshipsAddress**](POSTCustomerAddresses201ResponseDataRelationshipsAddress.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -79,20 +80,20 @@ HasAddress returns a boolean if a field has been set. ### GetEvents -`func (o *POSTCustomerAddresses201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` +`func (o *POSTCustomerAddresses201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *POSTCustomerAddresses201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` +`func (o *POSTCustomerAddresses201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *POSTCustomerAddresses201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` +`func (o *POSTCustomerAddresses201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -102,6 +103,31 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTCustomerAddresses201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTCustomerAddresses201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTCustomerAddresses201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTCustomerAddresses201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTCustomerGroups201ResponseDataAttributes.md b/api/docs/POSTCustomerGroups201ResponseDataAttributes.md index 2e7fb140..0a79c20f 100644 --- a/api/docs/POSTCustomerGroups201ResponseDataAttributes.md +++ b/api/docs/POSTCustomerGroups201ResponseDataAttributes.md @@ -4,9 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **interface{}** | The customer group's internal name | +**Name** | **interface{}** | The customer group's internal name. | +**Code** | Pointer to **interface{}** | A string that you can use to identify the customer group (must be unique within the environment). | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -58,6 +59,41 @@ SetName sets Name field to given value. `func (o *POSTCustomerGroups201ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCode + +`func (o *POSTCustomerGroups201ResponseDataAttributes) GetCode() interface{}` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *POSTCustomerGroups201ResponseDataAttributes) GetCodeOk() (*interface{}, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *POSTCustomerGroups201ResponseDataAttributes) SetCode(v interface{})` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *POSTCustomerGroups201ResponseDataAttributes) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### SetCodeNil + +`func (o *POSTCustomerGroups201ResponseDataAttributes) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *POSTCustomerGroups201ResponseDataAttributes) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil ### GetReference `func (o *POSTCustomerGroups201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTCustomerGroups201ResponseDataRelationships.md b/api/docs/POSTCustomerGroups201ResponseDataRelationships.md index c5d81b68..bf535ad7 100644 --- a/api/docs/POSTCustomerGroups201ResponseDataRelationships.md +++ b/api/docs/POSTCustomerGroups201ResponseDataRelationships.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Customers** | Pointer to [**POSTCustomerGroups201ResponseDataRelationshipsCustomers**](POSTCustomerGroups201ResponseDataRelationshipsCustomers.md) | | [optional] **Markets** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsMarkets**](POSTAvalaraAccounts201ResponseDataRelationshipsMarkets.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -79,20 +80,20 @@ HasMarkets returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTCustomerGroups201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTCustomerGroups201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTCustomerGroups201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTCustomerGroups201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTCustomerGroups201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTCustomerGroups201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -102,6 +103,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTCustomerGroups201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTCustomerGroups201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTCustomerGroups201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTCustomerGroups201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTCustomerPasswordResets201ResponseDataAttributes.md b/api/docs/POSTCustomerPasswordResets201ResponseDataAttributes.md index 102d1e77..aee2a7ee 100644 --- a/api/docs/POSTCustomerPasswordResets201ResponseDataAttributes.md +++ b/api/docs/POSTCustomerPasswordResets201ResponseDataAttributes.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CustomerEmail** | **interface{}** | The email of the customer that requires a password reset | +**CustomerEmail** | **interface{}** | The email of the customer that requires a password reset. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTCustomerPasswordResets201ResponseDataRelationships.md b/api/docs/POSTCustomerPasswordResets201ResponseDataRelationships.md index 3f6015b5..9e666316 100644 --- a/api/docs/POSTCustomerPasswordResets201ResponseDataRelationships.md +++ b/api/docs/POSTCustomerPasswordResets201ResponseDataRelationships.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Customer** | Pointer to [**POSTCouponRecipients201ResponseDataRelationshipsCustomer**](POSTCouponRecipients201ResponseDataRelationshipsCustomer.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] ## Methods @@ -53,20 +53,20 @@ HasCustomer returns a boolean if a field has been set. ### GetEvents -`func (o *POSTCustomerPasswordResets201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` +`func (o *POSTCustomerPasswordResets201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *POSTCustomerPasswordResets201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` +`func (o *POSTCustomerPasswordResets201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *POSTCustomerPasswordResets201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` +`func (o *POSTCustomerPasswordResets201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` SetEvents sets Events field to given value. diff --git a/api/docs/POSTCustomerPaymentSources201ResponseData.md b/api/docs/POSTCustomerPaymentSources201ResponseData.md index 5c8abf21..e0e471b7 100644 --- a/api/docs/POSTCustomerPaymentSources201ResponseData.md +++ b/api/docs/POSTCustomerPaymentSources201ResponseData.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | Pointer to **interface{}** | The resource's id | [optional] **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] -**Attributes** | Pointer to [**POSTAdyenPayments201ResponseDataAttributes**](POSTAdyenPayments201ResponseDataAttributes.md) | | [optional] +**Attributes** | Pointer to [**POSTCustomerPaymentSources201ResponseDataAttributes**](POSTCustomerPaymentSources201ResponseDataAttributes.md) | | [optional] **Relationships** | Pointer to [**POSTCustomerPaymentSources201ResponseDataRelationships**](POSTCustomerPaymentSources201ResponseDataRelationships.md) | | [optional] ## Methods @@ -126,20 +126,20 @@ HasLinks returns a boolean if a field has been set. ### GetAttributes -`func (o *POSTCustomerPaymentSources201ResponseData) GetAttributes() POSTAdyenPayments201ResponseDataAttributes` +`func (o *POSTCustomerPaymentSources201ResponseData) GetAttributes() POSTCustomerPaymentSources201ResponseDataAttributes` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *POSTCustomerPaymentSources201ResponseData) GetAttributesOk() (*POSTAdyenPayments201ResponseDataAttributes, bool)` +`func (o *POSTCustomerPaymentSources201ResponseData) GetAttributesOk() (*POSTCustomerPaymentSources201ResponseDataAttributes, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *POSTCustomerPaymentSources201ResponseData) SetAttributes(v POSTAdyenPayments201ResponseDataAttributes)` +`func (o *POSTCustomerPaymentSources201ResponseData) SetAttributes(v POSTCustomerPaymentSources201ResponseDataAttributes)` SetAttributes sets Attributes field to given value. diff --git a/api/docs/POSTCustomerPaymentSources201ResponseDataAttributes.md b/api/docs/POSTCustomerPaymentSources201ResponseDataAttributes.md new file mode 100644 index 00000000..6790a5f6 --- /dev/null +++ b/api/docs/POSTCustomerPaymentSources201ResponseDataAttributes.md @@ -0,0 +1,210 @@ +# POSTCustomerPaymentSources201ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomerToken** | Pointer to **interface{}** | Returns the customer gateway token stored in the gateway. | [optional] +**PaymentSourceToken** | Pointer to **interface{}** | Returns the payment source token stored in the gateway. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPOSTCustomerPaymentSources201ResponseDataAttributes + +`func NewPOSTCustomerPaymentSources201ResponseDataAttributes() *POSTCustomerPaymentSources201ResponseDataAttributes` + +NewPOSTCustomerPaymentSources201ResponseDataAttributes instantiates a new POSTCustomerPaymentSources201ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTCustomerPaymentSources201ResponseDataAttributesWithDefaults + +`func NewPOSTCustomerPaymentSources201ResponseDataAttributesWithDefaults() *POSTCustomerPaymentSources201ResponseDataAttributes` + +NewPOSTCustomerPaymentSources201ResponseDataAttributesWithDefaults instantiates a new POSTCustomerPaymentSources201ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCustomerToken + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetCustomerToken() interface{}` + +GetCustomerToken returns the CustomerToken field if non-nil, zero value otherwise. + +### GetCustomerTokenOk + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetCustomerTokenOk() (*interface{}, bool)` + +GetCustomerTokenOk returns a tuple with the CustomerToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomerToken + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) SetCustomerToken(v interface{})` + +SetCustomerToken sets CustomerToken field to given value. + +### HasCustomerToken + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) HasCustomerToken() bool` + +HasCustomerToken returns a boolean if a field has been set. + +### SetCustomerTokenNil + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) SetCustomerTokenNil(b bool)` + + SetCustomerTokenNil sets the value for CustomerToken to be an explicit nil + +### UnsetCustomerToken +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) UnsetCustomerToken()` + +UnsetCustomerToken ensures that no value is present for CustomerToken, not even an explicit nil +### GetPaymentSourceToken + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetPaymentSourceToken() interface{}` + +GetPaymentSourceToken returns the PaymentSourceToken field if non-nil, zero value otherwise. + +### GetPaymentSourceTokenOk + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetPaymentSourceTokenOk() (*interface{}, bool)` + +GetPaymentSourceTokenOk returns a tuple with the PaymentSourceToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentSourceToken + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) SetPaymentSourceToken(v interface{})` + +SetPaymentSourceToken sets PaymentSourceToken field to given value. + +### HasPaymentSourceToken + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) HasPaymentSourceToken() bool` + +HasPaymentSourceToken returns a boolean if a field has been set. + +### SetPaymentSourceTokenNil + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) SetPaymentSourceTokenNil(b bool)` + + SetPaymentSourceTokenNil sets the value for PaymentSourceToken to be an explicit nil + +### UnsetPaymentSourceToken +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) UnsetPaymentSourceToken()` + +UnsetPaymentSourceToken ensures that no value is present for PaymentSourceToken, not even an explicit nil +### GetReference + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *POSTCustomerPaymentSources201ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTCustomerPaymentSources201ResponseDataRelationships.md b/api/docs/POSTCustomerPaymentSources201ResponseDataRelationships.md index c28d8c8c..330e69bc 100644 --- a/api/docs/POSTCustomerPaymentSources201ResponseDataRelationships.md +++ b/api/docs/POSTCustomerPaymentSources201ResponseDataRelationships.md @@ -5,7 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Customer** | Pointer to [**POSTCouponRecipients201ResponseDataRelationshipsCustomer**](POSTCouponRecipients201ResponseDataRelationshipsCustomer.md) | | [optional] +**PaymentMethod** | Pointer to [**POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod**](POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod.md) | | [optional] **PaymentSource** | Pointer to [**POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentSource**](POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentSource.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -51,6 +53,31 @@ SetCustomer sets Customer field to given value. HasCustomer returns a boolean if a field has been set. +### GetPaymentMethod + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationships) GetPaymentMethod() POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod` + +GetPaymentMethod returns the PaymentMethod field if non-nil, zero value otherwise. + +### GetPaymentMethodOk + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationships) GetPaymentMethodOk() (*POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod, bool)` + +GetPaymentMethodOk returns a tuple with the PaymentMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentMethod + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationships) SetPaymentMethod(v POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod)` + +SetPaymentMethod sets PaymentMethod field to given value. + +### HasPaymentMethod + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationships) HasPaymentMethod() bool` + +HasPaymentMethod returns a boolean if a field has been set. + ### GetPaymentSource `func (o *POSTCustomerPaymentSources201ResponseDataRelationships) GetPaymentSource() POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentSource` @@ -76,6 +103,31 @@ SetPaymentSource sets PaymentSource field to given value. HasPaymentSource returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod.md b/api/docs/POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod.md new file mode 100644 index 00000000..1f54637e --- /dev/null +++ b/api/docs/POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod.md @@ -0,0 +1,82 @@ +# POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData**](POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData.md) | | [optional] + +## Methods + +### NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod + +`func NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod() *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod` + +NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod instantiates a new POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodWithDefaults + +`func NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodWithDefaults() *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod` + +NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodWithDefaults instantiates a new POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) GetData() POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) GetDataOk() (*POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) SetData(v POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData.md b/api/docs/POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData.md new file mode 100644 index 00000000..eefff0aa --- /dev/null +++ b/api/docs/POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData.md @@ -0,0 +1,102 @@ +# POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData + +`func NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData() *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData` + +NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData instantiates a new POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodDataWithDefaults + +`func NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodDataWithDefaults() *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData` + +NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodDataWithDefaults instantiates a new POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTCustomerSubscriptions201ResponseData.md b/api/docs/POSTCustomerSubscriptions201ResponseData.md index 48525f32..8457e475 100644 --- a/api/docs/POSTCustomerSubscriptions201ResponseData.md +++ b/api/docs/POSTCustomerSubscriptions201ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**POSTCustomerSubscriptions201ResponseDataAttributes**](POSTCustomerSubscriptions201ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTCustomerPasswordResets201ResponseDataRelationships**](POSTCustomerPasswordResets201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTCustomerSubscriptions201ResponseDataRelationships**](POSTCustomerSubscriptions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *POSTCustomerSubscriptions201ResponseData) GetRelationships() POSTCustomerPasswordResets201ResponseDataRelationships` +`func (o *POSTCustomerSubscriptions201ResponseData) GetRelationships() POSTCustomerSubscriptions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *POSTCustomerSubscriptions201ResponseData) GetRelationshipsOk() (*POSTCustomerPasswordResets201ResponseDataRelationships, bool)` +`func (o *POSTCustomerSubscriptions201ResponseData) GetRelationshipsOk() (*POSTCustomerSubscriptions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *POSTCustomerSubscriptions201ResponseData) SetRelationships(v POSTCustomerPasswordResets201ResponseDataRelationships)` +`func (o *POSTCustomerSubscriptions201ResponseData) SetRelationships(v POSTCustomerSubscriptions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/POSTCustomerSubscriptions201ResponseDataAttributes.md b/api/docs/POSTCustomerSubscriptions201ResponseDataAttributes.md index 7b4d2c88..2721a1dd 100644 --- a/api/docs/POSTCustomerSubscriptions201ResponseDataAttributes.md +++ b/api/docs/POSTCustomerSubscriptions201ResponseDataAttributes.md @@ -4,16 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CustomerEmail** | **interface{}** | The email of the customer that owns the subscription | -**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**CustomerEmail** | **interface{}** | The email of the customer that owns the subscription. | +**Reference** | **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods ### NewPOSTCustomerSubscriptions201ResponseDataAttributes -`func NewPOSTCustomerSubscriptions201ResponseDataAttributes(customerEmail interface{}, ) *POSTCustomerSubscriptions201ResponseDataAttributes` +`func NewPOSTCustomerSubscriptions201ResponseDataAttributes(customerEmail interface{}, reference interface{}, ) *POSTCustomerSubscriptions201ResponseDataAttributes` NewPOSTCustomerSubscriptions201ResponseDataAttributes instantiates a new POSTCustomerSubscriptions201ResponseDataAttributes object This constructor will assign default values to properties that have it defined, @@ -77,11 +77,6 @@ and a boolean to check if the value has been set. SetReference sets Reference field to given value. -### HasReference - -`func (o *POSTCustomerSubscriptions201ResponseDataAttributes) HasReference() bool` - -HasReference returns a boolean if a field has been set. ### SetReferenceNil diff --git a/api/docs/POSTCustomerSubscriptions201ResponseDataRelationships.md b/api/docs/POSTCustomerSubscriptions201ResponseDataRelationships.md new file mode 100644 index 00000000..ce93b281 --- /dev/null +++ b/api/docs/POSTCustomerSubscriptions201ResponseDataRelationships.md @@ -0,0 +1,108 @@ +# POSTCustomerSubscriptions201ResponseDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Customer** | Pointer to [**POSTCouponRecipients201ResponseDataRelationshipsCustomer**](POSTCouponRecipients201ResponseDataRelationshipsCustomer.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewPOSTCustomerSubscriptions201ResponseDataRelationships + +`func NewPOSTCustomerSubscriptions201ResponseDataRelationships() *POSTCustomerSubscriptions201ResponseDataRelationships` + +NewPOSTCustomerSubscriptions201ResponseDataRelationships instantiates a new POSTCustomerSubscriptions201ResponseDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTCustomerSubscriptions201ResponseDataRelationshipsWithDefaults + +`func NewPOSTCustomerSubscriptions201ResponseDataRelationshipsWithDefaults() *POSTCustomerSubscriptions201ResponseDataRelationships` + +NewPOSTCustomerSubscriptions201ResponseDataRelationshipsWithDefaults instantiates a new POSTCustomerSubscriptions201ResponseDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCustomer + +`func (o *POSTCustomerSubscriptions201ResponseDataRelationships) GetCustomer() POSTCouponRecipients201ResponseDataRelationshipsCustomer` + +GetCustomer returns the Customer field if non-nil, zero value otherwise. + +### GetCustomerOk + +`func (o *POSTCustomerSubscriptions201ResponseDataRelationships) GetCustomerOk() (*POSTCouponRecipients201ResponseDataRelationshipsCustomer, bool)` + +GetCustomerOk returns a tuple with the Customer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomer + +`func (o *POSTCustomerSubscriptions201ResponseDataRelationships) SetCustomer(v POSTCouponRecipients201ResponseDataRelationshipsCustomer)` + +SetCustomer sets Customer field to given value. + +### HasCustomer + +`func (o *POSTCustomerSubscriptions201ResponseDataRelationships) HasCustomer() bool` + +HasCustomer returns a boolean if a field has been set. + +### GetEvents + +`func (o *POSTCustomerSubscriptions201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *POSTCustomerSubscriptions201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *POSTCustomerSubscriptions201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *POSTCustomerSubscriptions201ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTCustomerSubscriptions201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTCustomerSubscriptions201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTCustomerSubscriptions201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTCustomerSubscriptions201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTCustomers201ResponseDataAttributes.md b/api/docs/POSTCustomers201ResponseDataAttributes.md index 0b61a09b..6a85ccb4 100644 --- a/api/docs/POSTCustomers201ResponseDataAttributes.md +++ b/api/docs/POSTCustomers201ResponseDataAttributes.md @@ -4,10 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Email** | **interface{}** | The customer's email address | +**Email** | **interface{}** | The customer's email address. | **Password** | Pointer to **interface{}** | The customer's password. Initiate a customer password reset flow if you need to change it. | [optional] +**ShopperReference** | Pointer to **interface{}** | A reference to uniquely identify the shopper during payment sessions. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -94,6 +95,41 @@ HasPassword returns a boolean if a field has been set. `func (o *POSTCustomers201ResponseDataAttributes) UnsetPassword()` UnsetPassword ensures that no value is present for Password, not even an explicit nil +### GetShopperReference + +`func (o *POSTCustomers201ResponseDataAttributes) GetShopperReference() interface{}` + +GetShopperReference returns the ShopperReference field if non-nil, zero value otherwise. + +### GetShopperReferenceOk + +`func (o *POSTCustomers201ResponseDataAttributes) GetShopperReferenceOk() (*interface{}, bool)` + +GetShopperReferenceOk returns a tuple with the ShopperReference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShopperReference + +`func (o *POSTCustomers201ResponseDataAttributes) SetShopperReference(v interface{})` + +SetShopperReference sets ShopperReference field to given value. + +### HasShopperReference + +`func (o *POSTCustomers201ResponseDataAttributes) HasShopperReference() bool` + +HasShopperReference returns a boolean if a field has been set. + +### SetShopperReferenceNil + +`func (o *POSTCustomers201ResponseDataAttributes) SetShopperReferenceNil(b bool)` + + SetShopperReferenceNil sets the value for ShopperReference to be an explicit nil + +### UnsetShopperReference +`func (o *POSTCustomers201ResponseDataAttributes) UnsetShopperReference()` + +UnsetShopperReference ensures that no value is present for ShopperReference, not even an explicit nil ### GetReference `func (o *POSTCustomers201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTCustomers201ResponseDataRelationships.md b/api/docs/POSTCustomers201ResponseDataRelationships.md index 789f1ef0..65bec6bf 100644 --- a/api/docs/POSTCustomers201ResponseDataRelationships.md +++ b/api/docs/POSTCustomers201ResponseDataRelationships.md @@ -12,8 +12,9 @@ Name | Type | Description | Notes **OrderSubscriptions** | Pointer to [**POSTCustomers201ResponseDataRelationshipsOrderSubscriptions**](POSTCustomers201ResponseDataRelationshipsOrderSubscriptions.md) | | [optional] **Returns** | Pointer to [**POSTCustomers201ResponseDataRelationshipsReturns**](POSTCustomers201ResponseDataRelationshipsReturns.md) | | [optional] **SkuLists** | Pointer to [**POSTCustomers201ResponseDataRelationshipsSkuLists**](POSTCustomers201ResponseDataRelationshipsSkuLists.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**POSTAddresses201ResponseDataRelationshipsTags**](POSTAddresses201ResponseDataRelationshipsTags.md) | | [optional] ## Methods @@ -236,20 +237,20 @@ HasSkuLists returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTCustomers201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTCustomers201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTCustomers201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTCustomers201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTCustomers201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTCustomers201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -261,20 +262,20 @@ HasAttachments returns a boolean if a field has been set. ### GetEvents -`func (o *POSTCustomers201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` +`func (o *POSTCustomers201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *POSTCustomers201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` +`func (o *POSTCustomers201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *POSTCustomers201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` +`func (o *POSTCustomers201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -284,6 +285,31 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetTags + +`func (o *POSTCustomers201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *POSTCustomers201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *POSTCustomers201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *POSTCustomers201ResponseDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTDeliveryLeadTimes201ResponseDataAttributes.md b/api/docs/POSTDeliveryLeadTimes201ResponseDataAttributes.md index e5c024c4..914ea66f 100644 --- a/api/docs/POSTDeliveryLeadTimes201ResponseDataAttributes.md +++ b/api/docs/POSTDeliveryLeadTimes201ResponseDataAttributes.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **MinHours** | **interface{}** | The delivery lead minimum time (in hours) when shipping from the associated stock location with the associated shipping method. | **MaxHours** | **interface{}** | The delivery lead maximun time (in hours) when shipping from the associated stock location with the associated shipping method. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTDeliveryLeadTimes201ResponseDataRelationships.md b/api/docs/POSTDeliveryLeadTimes201ResponseDataRelationships.md index 7f71bb6f..160a4148 100644 --- a/api/docs/POSTDeliveryLeadTimes201ResponseDataRelationships.md +++ b/api/docs/POSTDeliveryLeadTimes201ResponseDataRelationships.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StockLocation** | Pointer to [**POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation**](POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation.md) | | [optional] **ShippingMethod** | Pointer to [**POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod**](POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -79,20 +80,20 @@ HasShippingMethod returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -102,6 +103,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTExports201ResponseData.md b/api/docs/POSTExports201ResponseData.md index ff786bae..1a9304ac 100644 --- a/api/docs/POSTExports201ResponseData.md +++ b/api/docs/POSTExports201ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**POSTExports201ResponseDataAttributes**](POSTExports201ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTCleanups201ResponseDataRelationships**](POSTCleanups201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTExports201ResponseDataRelationships**](POSTExports201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *POSTExports201ResponseData) GetRelationships() POSTCleanups201ResponseDataRelationships` +`func (o *POSTExports201ResponseData) GetRelationships() POSTExports201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *POSTExports201ResponseData) GetRelationshipsOk() (*POSTCleanups201ResponseDataRelationships, bool)` +`func (o *POSTExports201ResponseData) GetRelationshipsOk() (*POSTExports201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *POSTExports201ResponseData) SetRelationships(v POSTCleanups201ResponseDataRelationships)` +`func (o *POSTExports201ResponseData) SetRelationships(v POSTExports201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/POSTExports201ResponseDataAttributes.md b/api/docs/POSTExports201ResponseDataAttributes.md index 21c0ed2a..34de8e22 100644 --- a/api/docs/POSTExports201ResponseDataAttributes.md +++ b/api/docs/POSTExports201ResponseDataAttributes.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **Filters** | Pointer to **interface{}** | The filters used to select the records to be exported. | [optional] **DryData** | Pointer to **interface{}** | Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTExports201ResponseDataRelationships.md b/api/docs/POSTExports201ResponseDataRelationships.md new file mode 100644 index 00000000..ed4dc313 --- /dev/null +++ b/api/docs/POSTExports201ResponseDataRelationships.md @@ -0,0 +1,56 @@ +# POSTExports201ResponseDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] + +## Methods + +### NewPOSTExports201ResponseDataRelationships + +`func NewPOSTExports201ResponseDataRelationships() *POSTExports201ResponseDataRelationships` + +NewPOSTExports201ResponseDataRelationships instantiates a new POSTExports201ResponseDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTExports201ResponseDataRelationshipsWithDefaults + +`func NewPOSTExports201ResponseDataRelationshipsWithDefaults() *POSTExports201ResponseDataRelationships` + +NewPOSTExports201ResponseDataRelationshipsWithDefaults instantiates a new POSTExports201ResponseDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEvents + +`func (o *POSTExports201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *POSTExports201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *POSTExports201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *POSTExports201ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTExternalGateways201ResponseDataAttributes.md b/api/docs/POSTExternalGateways201ResponseDataAttributes.md index 5955fbda..3c5d9294 100644 --- a/api/docs/POSTExternalGateways201ResponseDataAttributes.md +++ b/api/docs/POSTExternalGateways201ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The payment gateway's internal name. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **AuthorizeUrl** | Pointer to **interface{}** | The endpoint used by the external gateway to authorize payments. | [optional] **CaptureUrl** | Pointer to **interface{}** | The endpoint used by the external gateway to capture payments. | [optional] diff --git a/api/docs/POSTExternalGateways201ResponseDataRelationships.md b/api/docs/POSTExternalGateways201ResponseDataRelationships.md index 7f4a0d56..0ba5b789 100644 --- a/api/docs/POSTExternalGateways201ResponseDataRelationships.md +++ b/api/docs/POSTExternalGateways201ResponseDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods**](POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] **ExternalPayments** | Pointer to [**POSTExternalGateways201ResponseDataRelationshipsExternalPayments**](POSTExternalGateways201ResponseDataRelationshipsExternalPayments.md) | | [optional] ## Methods @@ -51,6 +52,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTExternalGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTExternalGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTExternalGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTExternalGateways201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetExternalPayments `func (o *POSTExternalGateways201ResponseDataRelationships) GetExternalPayments() POSTExternalGateways201ResponseDataRelationshipsExternalPayments` diff --git a/api/docs/POSTExternalPayments201ResponseDataAttributes.md b/api/docs/POSTExternalPayments201ResponseDataAttributes.md index 56be1d97..f26455a9 100644 --- a/api/docs/POSTExternalPayments201ResponseDataAttributes.md +++ b/api/docs/POSTExternalPayments201ResponseDataAttributes.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **PaymentSourceToken** | **interface{}** | The payment source token, as generated by the external gateway SDK. Credit Card numbers are rejected. | **Options** | Pointer to **interface{}** | External payment options. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTExternalPayments201ResponseDataRelationships.md b/api/docs/POSTExternalPayments201ResponseDataRelationships.md index 569a179d..9ed368e5 100644 --- a/api/docs/POSTExternalPayments201ResponseDataRelationships.md +++ b/api/docs/POSTExternalPayments201ResponseDataRelationships.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **Order** | Pointer to [**POSTAdyenPayments201ResponseDataRelationshipsOrder**](POSTAdyenPayments201ResponseDataRelationshipsOrder.md) | | [optional] **PaymentGateway** | Pointer to [**POSTAdyenPayments201ResponseDataRelationshipsPaymentGateway**](POSTAdyenPayments201ResponseDataRelationshipsPaymentGateway.md) | | [optional] **Wallet** | Pointer to [**POSTExternalPayments201ResponseDataRelationshipsWallet**](POSTExternalPayments201ResponseDataRelationshipsWallet.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -102,6 +103,31 @@ SetWallet sets Wallet field to given value. HasWallet returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTExternalPayments201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTExternalPayments201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTExternalPayments201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTExternalPayments201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTExternalPromotions201ResponseData.md b/api/docs/POSTExternalPromotions201ResponseData.md index 87dff92c..c24297ba 100644 --- a/api/docs/POSTExternalPromotions201ResponseData.md +++ b/api/docs/POSTExternalPromotions201ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**POSTExternalPromotions201ResponseDataAttributes**](POSTExternalPromotions201ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTExternalPromotions201ResponseDataRelationships**](POSTExternalPromotions201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationships**](POSTBuyXPayYPromotions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *POSTExternalPromotions201ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships` +`func (o *POSTExternalPromotions201ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *POSTExternalPromotions201ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool)` +`func (o *POSTExternalPromotions201ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *POSTExternalPromotions201ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships)` +`func (o *POSTExternalPromotions201ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/POSTExternalPromotions201ResponseDataAttributes.md b/api/docs/POSTExternalPromotions201ResponseDataAttributes.md index f219dd93..9ce26cf3 100644 --- a/api/docs/POSTExternalPromotions201ResponseDataAttributes.md +++ b/api/docs/POSTExternalPromotions201ResponseDataAttributes.md @@ -6,11 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The promotion's internal name. | **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] **StartsAt** | **interface{}** | The activation date/time of this promotion. | **ExpiresAt** | **interface{}** | The expiration date/time of this promotion (must be after starts_at). | -**TotalUsageLimit** | **interface{}** | The total number of times this promotion can be applied. | +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **PromotionUrl** | **interface{}** | The URL to the service that will compute the discount. | @@ -18,7 +22,7 @@ Name | Type | Description | Notes ### NewPOSTExternalPromotions201ResponseDataAttributes -`func NewPOSTExternalPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, totalUsageLimit interface{}, promotionUrl interface{}, ) *POSTExternalPromotions201ResponseDataAttributes` +`func NewPOSTExternalPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, promotionUrl interface{}, ) *POSTExternalPromotions201ResponseDataAttributes` NewPOSTExternalPromotions201ResponseDataAttributes instantiates a new POSTExternalPromotions201ResponseDataAttributes object This constructor will assign default values to properties that have it defined, @@ -98,6 +102,76 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *POSTExternalPromotions201ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *POSTExternalPromotions201ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *POSTExternalPromotions201ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *POSTExternalPromotions201ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *POSTExternalPromotions201ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *POSTExternalPromotions201ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *POSTExternalPromotions201ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *POSTExternalPromotions201ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *POSTExternalPromotions201ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *POSTExternalPromotions201ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *POSTExternalPromotions201ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *POSTExternalPromotions201ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *POSTExternalPromotions201ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetStartsAt `func (o *POSTExternalPromotions201ResponseDataAttributes) GetStartsAt() interface{}` @@ -177,6 +251,11 @@ and a boolean to check if the value has been set. SetTotalUsageLimit sets TotalUsageLimit field to given value. +### HasTotalUsageLimit + +`func (o *POSTExternalPromotions201ResponseDataAttributes) HasTotalUsageLimit() bool` + +HasTotalUsageLimit returns a boolean if a field has been set. ### SetTotalUsageLimitNil @@ -188,6 +267,76 @@ SetTotalUsageLimit sets TotalUsageLimit field to given value. `func (o *POSTExternalPromotions201ResponseDataAttributes) UnsetTotalUsageLimit()` UnsetTotalUsageLimit ensures that no value is present for TotalUsageLimit, not even an explicit nil +### GetDisable + +`func (o *POSTExternalPromotions201ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *POSTExternalPromotions201ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *POSTExternalPromotions201ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *POSTExternalPromotions201ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *POSTExternalPromotions201ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *POSTExternalPromotions201ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *POSTExternalPromotions201ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *POSTExternalPromotions201ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *POSTExternalPromotions201ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *POSTExternalPromotions201ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *POSTExternalPromotions201ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *POSTExternalPromotions201ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil ### GetReference `func (o *POSTExternalPromotions201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTExternalPromotions201ResponseDataRelationships.md b/api/docs/POSTExternalPromotions201ResponseDataRelationships.md deleted file mode 100644 index a5c75f7e..00000000 --- a/api/docs/POSTExternalPromotions201ResponseDataRelationships.md +++ /dev/null @@ -1,212 +0,0 @@ -# POSTExternalPromotions201ResponseDataRelationships - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Market** | Pointer to [**POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket**](POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket.md) | | [optional] -**PromotionRules** | Pointer to [**POSTExternalPromotions201ResponseDataRelationshipsPromotionRules**](POSTExternalPromotions201ResponseDataRelationshipsPromotionRules.md) | | [optional] -**OrderAmountPromotionRule** | Pointer to [**POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule**](POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule.md) | | [optional] -**SkuListPromotionRule** | Pointer to [**POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule**](POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule.md) | | [optional] -**CouponCodesPromotionRule** | Pointer to [**POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule**](POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] - -## Methods - -### NewPOSTExternalPromotions201ResponseDataRelationships - -`func NewPOSTExternalPromotions201ResponseDataRelationships() *POSTExternalPromotions201ResponseDataRelationships` - -NewPOSTExternalPromotions201ResponseDataRelationships instantiates a new POSTExternalPromotions201ResponseDataRelationships object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPOSTExternalPromotions201ResponseDataRelationshipsWithDefaults - -`func NewPOSTExternalPromotions201ResponseDataRelationshipsWithDefaults() *POSTExternalPromotions201ResponseDataRelationships` - -NewPOSTExternalPromotions201ResponseDataRelationshipsWithDefaults instantiates a new POSTExternalPromotions201ResponseDataRelationships object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMarket - -`func (o *POSTExternalPromotions201ResponseDataRelationships) GetMarket() POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket` - -GetMarket returns the Market field if non-nil, zero value otherwise. - -### GetMarketOk - -`func (o *POSTExternalPromotions201ResponseDataRelationships) GetMarketOk() (*POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket, bool)` - -GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMarket - -`func (o *POSTExternalPromotions201ResponseDataRelationships) SetMarket(v POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket)` - -SetMarket sets Market field to given value. - -### HasMarket - -`func (o *POSTExternalPromotions201ResponseDataRelationships) HasMarket() bool` - -HasMarket returns a boolean if a field has been set. - -### GetPromotionRules - -`func (o *POSTExternalPromotions201ResponseDataRelationships) GetPromotionRules() POSTExternalPromotions201ResponseDataRelationshipsPromotionRules` - -GetPromotionRules returns the PromotionRules field if non-nil, zero value otherwise. - -### GetPromotionRulesOk - -`func (o *POSTExternalPromotions201ResponseDataRelationships) GetPromotionRulesOk() (*POSTExternalPromotions201ResponseDataRelationshipsPromotionRules, bool)` - -GetPromotionRulesOk returns a tuple with the PromotionRules field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPromotionRules - -`func (o *POSTExternalPromotions201ResponseDataRelationships) SetPromotionRules(v POSTExternalPromotions201ResponseDataRelationshipsPromotionRules)` - -SetPromotionRules sets PromotionRules field to given value. - -### HasPromotionRules - -`func (o *POSTExternalPromotions201ResponseDataRelationships) HasPromotionRules() bool` - -HasPromotionRules returns a boolean if a field has been set. - -### GetOrderAmountPromotionRule - -`func (o *POSTExternalPromotions201ResponseDataRelationships) GetOrderAmountPromotionRule() POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule` - -GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field if non-nil, zero value otherwise. - -### GetOrderAmountPromotionRuleOk - -`func (o *POSTExternalPromotions201ResponseDataRelationships) GetOrderAmountPromotionRuleOk() (*POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule, bool)` - -GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderAmountPromotionRule - -`func (o *POSTExternalPromotions201ResponseDataRelationships) SetOrderAmountPromotionRule(v POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule)` - -SetOrderAmountPromotionRule sets OrderAmountPromotionRule field to given value. - -### HasOrderAmountPromotionRule - -`func (o *POSTExternalPromotions201ResponseDataRelationships) HasOrderAmountPromotionRule() bool` - -HasOrderAmountPromotionRule returns a boolean if a field has been set. - -### GetSkuListPromotionRule - -`func (o *POSTExternalPromotions201ResponseDataRelationships) GetSkuListPromotionRule() POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule` - -GetSkuListPromotionRule returns the SkuListPromotionRule field if non-nil, zero value otherwise. - -### GetSkuListPromotionRuleOk - -`func (o *POSTExternalPromotions201ResponseDataRelationships) GetSkuListPromotionRuleOk() (*POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule, bool)` - -GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSkuListPromotionRule - -`func (o *POSTExternalPromotions201ResponseDataRelationships) SetSkuListPromotionRule(v POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule)` - -SetSkuListPromotionRule sets SkuListPromotionRule field to given value. - -### HasSkuListPromotionRule - -`func (o *POSTExternalPromotions201ResponseDataRelationships) HasSkuListPromotionRule() bool` - -HasSkuListPromotionRule returns a boolean if a field has been set. - -### GetCouponCodesPromotionRule - -`func (o *POSTExternalPromotions201ResponseDataRelationships) GetCouponCodesPromotionRule() POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule` - -GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field if non-nil, zero value otherwise. - -### GetCouponCodesPromotionRuleOk - -`func (o *POSTExternalPromotions201ResponseDataRelationships) GetCouponCodesPromotionRuleOk() (*POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule, bool)` - -GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCouponCodesPromotionRule - -`func (o *POSTExternalPromotions201ResponseDataRelationships) SetCouponCodesPromotionRule(v POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule)` - -SetCouponCodesPromotionRule sets CouponCodesPromotionRule field to given value. - -### HasCouponCodesPromotionRule - -`func (o *POSTExternalPromotions201ResponseDataRelationships) HasCouponCodesPromotionRule() bool` - -HasCouponCodesPromotionRule returns a boolean if a field has been set. - -### GetAttachments - -`func (o *POSTExternalPromotions201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` - -GetAttachments returns the Attachments field if non-nil, zero value otherwise. - -### GetAttachmentsOk - -`func (o *POSTExternalPromotions201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` - -GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttachments - -`func (o *POSTExternalPromotions201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` - -SetAttachments sets Attachments field to given value. - -### HasAttachments - -`func (o *POSTExternalPromotions201ResponseDataRelationships) HasAttachments() bool` - -HasAttachments returns a boolean if a field has been set. - -### GetEvents - -`func (o *POSTExternalPromotions201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` - -GetEvents returns the Events field if non-nil, zero value otherwise. - -### GetEventsOk - -`func (o *POSTExternalPromotions201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` - -GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEvents - -`func (o *POSTExternalPromotions201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` - -SetEvents sets Events field to given value. - -### HasEvents - -`func (o *POSTExternalPromotions201ResponseDataRelationships) HasEvents() bool` - -HasEvents returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/POSTExternalTaxCalculators201ResponseDataAttributes.md b/api/docs/POSTExternalTaxCalculators201ResponseDataAttributes.md index c0140912..d795210d 100644 --- a/api/docs/POSTExternalTaxCalculators201ResponseDataAttributes.md +++ b/api/docs/POSTExternalTaxCalculators201ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The tax calculator's internal name. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **TaxCalculatorUrl** | **interface{}** | The URL to the service that will compute the taxes. | diff --git a/api/docs/POSTExternalTaxCalculators201ResponseDataRelationships.md b/api/docs/POSTExternalTaxCalculators201ResponseDataRelationships.md index b58d5d2c..3474f08c 100644 --- a/api/docs/POSTExternalTaxCalculators201ResponseDataRelationships.md +++ b/api/docs/POSTExternalTaxCalculators201ResponseDataRelationships.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Markets** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsMarkets**](POSTAvalaraAccounts201ResponseDataRelationshipsMarkets.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -53,20 +54,20 @@ HasMarkets returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTExternalTaxCalculators201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTExternalTaxCalculators201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTExternalTaxCalculators201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTExternalTaxCalculators201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTExternalTaxCalculators201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTExternalTaxCalculators201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -76,6 +77,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTExternalTaxCalculators201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTExternalTaxCalculators201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTExternalTaxCalculators201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTExternalTaxCalculators201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTFixedAmountPromotions201ResponseData.md b/api/docs/POSTFixedAmountPromotions201ResponseData.md index 2051e464..0405afe9 100644 --- a/api/docs/POSTFixedAmountPromotions201ResponseData.md +++ b/api/docs/POSTFixedAmountPromotions201ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**POSTFixedAmountPromotions201ResponseDataAttributes**](POSTFixedAmountPromotions201ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTExternalPromotions201ResponseDataRelationships**](POSTExternalPromotions201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationships**](POSTBuyXPayYPromotions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *POSTFixedAmountPromotions201ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships` +`func (o *POSTFixedAmountPromotions201ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *POSTFixedAmountPromotions201ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool)` +`func (o *POSTFixedAmountPromotions201ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *POSTFixedAmountPromotions201ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships)` +`func (o *POSTFixedAmountPromotions201ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/POSTFixedAmountPromotions201ResponseDataAttributes.md b/api/docs/POSTFixedAmountPromotions201ResponseDataAttributes.md index 1be27616..ba28a2fb 100644 --- a/api/docs/POSTFixedAmountPromotions201ResponseDataAttributes.md +++ b/api/docs/POSTFixedAmountPromotions201ResponseDataAttributes.md @@ -6,19 +6,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The promotion's internal name. | **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] **StartsAt** | **interface{}** | The activation date/time of this promotion. | **ExpiresAt** | **interface{}** | The expiration date/time of this promotion (must be after starts_at). | -**TotalUsageLimit** | **interface{}** | The total number of times this promotion can be applied. | +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] -**FixedAmountCents** | **interface{}** | The discount fixed amount to be applied, in cents | +**FixedAmountCents** | **interface{}** | The discount fixed amount to be applied, in cents. | ## Methods ### NewPOSTFixedAmountPromotions201ResponseDataAttributes -`func NewPOSTFixedAmountPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, totalUsageLimit interface{}, fixedAmountCents interface{}, ) *POSTFixedAmountPromotions201ResponseDataAttributes` +`func NewPOSTFixedAmountPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, fixedAmountCents interface{}, ) *POSTFixedAmountPromotions201ResponseDataAttributes` NewPOSTFixedAmountPromotions201ResponseDataAttributes instantiates a new POSTFixedAmountPromotions201ResponseDataAttributes object This constructor will assign default values to properties that have it defined, @@ -98,6 +102,76 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *POSTFixedAmountPromotions201ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetStartsAt `func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetStartsAt() interface{}` @@ -177,6 +251,11 @@ and a boolean to check if the value has been set. SetTotalUsageLimit sets TotalUsageLimit field to given value. +### HasTotalUsageLimit + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) HasTotalUsageLimit() bool` + +HasTotalUsageLimit returns a boolean if a field has been set. ### SetTotalUsageLimitNil @@ -188,6 +267,76 @@ SetTotalUsageLimit sets TotalUsageLimit field to given value. `func (o *POSTFixedAmountPromotions201ResponseDataAttributes) UnsetTotalUsageLimit()` UnsetTotalUsageLimit ensures that no value is present for TotalUsageLimit, not even an explicit nil +### GetDisable + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *POSTFixedAmountPromotions201ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil ### GetReference `func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTFixedPricePromotions201ResponseData.md b/api/docs/POSTFixedPricePromotions201ResponseData.md index 088ee57c..f33a785c 100644 --- a/api/docs/POSTFixedPricePromotions201ResponseData.md +++ b/api/docs/POSTFixedPricePromotions201ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**POSTFixedPricePromotions201ResponseDataAttributes**](POSTFixedPricePromotions201ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTFixedPricePromotions201ResponseDataRelationships**](POSTFixedPricePromotions201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationships**](POSTBuyXPayYPromotions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *POSTFixedPricePromotions201ResponseData) GetRelationships() POSTFixedPricePromotions201ResponseDataRelationships` +`func (o *POSTFixedPricePromotions201ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *POSTFixedPricePromotions201ResponseData) GetRelationshipsOk() (*POSTFixedPricePromotions201ResponseDataRelationships, bool)` +`func (o *POSTFixedPricePromotions201ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *POSTFixedPricePromotions201ResponseData) SetRelationships(v POSTFixedPricePromotions201ResponseDataRelationships)` +`func (o *POSTFixedPricePromotions201ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/POSTFixedPricePromotions201ResponseDataAttributes.md b/api/docs/POSTFixedPricePromotions201ResponseDataAttributes.md index e030222e..4427bbf7 100644 --- a/api/docs/POSTFixedPricePromotions201ResponseDataAttributes.md +++ b/api/docs/POSTFixedPricePromotions201ResponseDataAttributes.md @@ -6,19 +6,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The promotion's internal name. | **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] **StartsAt** | **interface{}** | The activation date/time of this promotion. | **ExpiresAt** | **interface{}** | The expiration date/time of this promotion (must be after starts_at). | -**TotalUsageLimit** | **interface{}** | The total number of times this promotion can be applied. | +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] -**FixedAmountCents** | **interface{}** | The price fixed amount to be applied on matching SKUs, in cents | +**FixedAmountCents** | **interface{}** | The price fixed amount to be applied on matching SKUs, in cents. | ## Methods ### NewPOSTFixedPricePromotions201ResponseDataAttributes -`func NewPOSTFixedPricePromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, totalUsageLimit interface{}, fixedAmountCents interface{}, ) *POSTFixedPricePromotions201ResponseDataAttributes` +`func NewPOSTFixedPricePromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, fixedAmountCents interface{}, ) *POSTFixedPricePromotions201ResponseDataAttributes` NewPOSTFixedPricePromotions201ResponseDataAttributes instantiates a new POSTFixedPricePromotions201ResponseDataAttributes object This constructor will assign default values to properties that have it defined, @@ -98,6 +102,76 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *POSTFixedPricePromotions201ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetStartsAt `func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetStartsAt() interface{}` @@ -177,6 +251,11 @@ and a boolean to check if the value has been set. SetTotalUsageLimit sets TotalUsageLimit field to given value. +### HasTotalUsageLimit + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) HasTotalUsageLimit() bool` + +HasTotalUsageLimit returns a boolean if a field has been set. ### SetTotalUsageLimitNil @@ -188,6 +267,76 @@ SetTotalUsageLimit sets TotalUsageLimit field to given value. `func (o *POSTFixedPricePromotions201ResponseDataAttributes) UnsetTotalUsageLimit()` UnsetTotalUsageLimit ensures that no value is present for TotalUsageLimit, not even an explicit nil +### GetDisable + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *POSTFixedPricePromotions201ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil ### GetReference `func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTFixedPricePromotions201ResponseDataRelationships.md b/api/docs/POSTFixedPricePromotions201ResponseDataRelationships.md deleted file mode 100644 index 158c467f..00000000 --- a/api/docs/POSTFixedPricePromotions201ResponseDataRelationships.md +++ /dev/null @@ -1,264 +0,0 @@ -# POSTFixedPricePromotions201ResponseDataRelationships - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Market** | Pointer to [**POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket**](POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket.md) | | [optional] -**PromotionRules** | Pointer to [**POSTExternalPromotions201ResponseDataRelationshipsPromotionRules**](POSTExternalPromotions201ResponseDataRelationshipsPromotionRules.md) | | [optional] -**OrderAmountPromotionRule** | Pointer to [**POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule**](POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule.md) | | [optional] -**SkuListPromotionRule** | Pointer to [**POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule**](POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule.md) | | [optional] -**CouponCodesPromotionRule** | Pointer to [**POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule**](POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] -**SkuList** | Pointer to [**POSTBundles201ResponseDataRelationshipsSkuList**](POSTBundles201ResponseDataRelationshipsSkuList.md) | | [optional] -**Skus** | Pointer to [**POSTBundles201ResponseDataRelationshipsSkus**](POSTBundles201ResponseDataRelationshipsSkus.md) | | [optional] - -## Methods - -### NewPOSTFixedPricePromotions201ResponseDataRelationships - -`func NewPOSTFixedPricePromotions201ResponseDataRelationships() *POSTFixedPricePromotions201ResponseDataRelationships` - -NewPOSTFixedPricePromotions201ResponseDataRelationships instantiates a new POSTFixedPricePromotions201ResponseDataRelationships object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPOSTFixedPricePromotions201ResponseDataRelationshipsWithDefaults - -`func NewPOSTFixedPricePromotions201ResponseDataRelationshipsWithDefaults() *POSTFixedPricePromotions201ResponseDataRelationships` - -NewPOSTFixedPricePromotions201ResponseDataRelationshipsWithDefaults instantiates a new POSTFixedPricePromotions201ResponseDataRelationships object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMarket - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetMarket() POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket` - -GetMarket returns the Market field if non-nil, zero value otherwise. - -### GetMarketOk - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetMarketOk() (*POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket, bool)` - -GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMarket - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) SetMarket(v POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket)` - -SetMarket sets Market field to given value. - -### HasMarket - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) HasMarket() bool` - -HasMarket returns a boolean if a field has been set. - -### GetPromotionRules - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetPromotionRules() POSTExternalPromotions201ResponseDataRelationshipsPromotionRules` - -GetPromotionRules returns the PromotionRules field if non-nil, zero value otherwise. - -### GetPromotionRulesOk - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetPromotionRulesOk() (*POSTExternalPromotions201ResponseDataRelationshipsPromotionRules, bool)` - -GetPromotionRulesOk returns a tuple with the PromotionRules field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPromotionRules - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) SetPromotionRules(v POSTExternalPromotions201ResponseDataRelationshipsPromotionRules)` - -SetPromotionRules sets PromotionRules field to given value. - -### HasPromotionRules - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) HasPromotionRules() bool` - -HasPromotionRules returns a boolean if a field has been set. - -### GetOrderAmountPromotionRule - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetOrderAmountPromotionRule() POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule` - -GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field if non-nil, zero value otherwise. - -### GetOrderAmountPromotionRuleOk - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetOrderAmountPromotionRuleOk() (*POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule, bool)` - -GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderAmountPromotionRule - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) SetOrderAmountPromotionRule(v POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule)` - -SetOrderAmountPromotionRule sets OrderAmountPromotionRule field to given value. - -### HasOrderAmountPromotionRule - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) HasOrderAmountPromotionRule() bool` - -HasOrderAmountPromotionRule returns a boolean if a field has been set. - -### GetSkuListPromotionRule - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetSkuListPromotionRule() POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule` - -GetSkuListPromotionRule returns the SkuListPromotionRule field if non-nil, zero value otherwise. - -### GetSkuListPromotionRuleOk - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetSkuListPromotionRuleOk() (*POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule, bool)` - -GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSkuListPromotionRule - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) SetSkuListPromotionRule(v POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule)` - -SetSkuListPromotionRule sets SkuListPromotionRule field to given value. - -### HasSkuListPromotionRule - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) HasSkuListPromotionRule() bool` - -HasSkuListPromotionRule returns a boolean if a field has been set. - -### GetCouponCodesPromotionRule - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetCouponCodesPromotionRule() POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule` - -GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field if non-nil, zero value otherwise. - -### GetCouponCodesPromotionRuleOk - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetCouponCodesPromotionRuleOk() (*POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule, bool)` - -GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCouponCodesPromotionRule - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) SetCouponCodesPromotionRule(v POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule)` - -SetCouponCodesPromotionRule sets CouponCodesPromotionRule field to given value. - -### HasCouponCodesPromotionRule - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) HasCouponCodesPromotionRule() bool` - -HasCouponCodesPromotionRule returns a boolean if a field has been set. - -### GetAttachments - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` - -GetAttachments returns the Attachments field if non-nil, zero value otherwise. - -### GetAttachmentsOk - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` - -GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttachments - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` - -SetAttachments sets Attachments field to given value. - -### HasAttachments - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) HasAttachments() bool` - -HasAttachments returns a boolean if a field has been set. - -### GetEvents - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` - -GetEvents returns the Events field if non-nil, zero value otherwise. - -### GetEventsOk - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` - -GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEvents - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` - -SetEvents sets Events field to given value. - -### HasEvents - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) HasEvents() bool` - -HasEvents returns a boolean if a field has been set. - -### GetSkuList - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetSkuList() POSTBundles201ResponseDataRelationshipsSkuList` - -GetSkuList returns the SkuList field if non-nil, zero value otherwise. - -### GetSkuListOk - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetSkuListOk() (*POSTBundles201ResponseDataRelationshipsSkuList, bool)` - -GetSkuListOk returns a tuple with the SkuList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSkuList - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) SetSkuList(v POSTBundles201ResponseDataRelationshipsSkuList)` - -SetSkuList sets SkuList field to given value. - -### HasSkuList - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) HasSkuList() bool` - -HasSkuList returns a boolean if a field has been set. - -### GetSkus - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetSkus() POSTBundles201ResponseDataRelationshipsSkus` - -GetSkus returns the Skus field if non-nil, zero value otherwise. - -### GetSkusOk - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetSkusOk() (*POSTBundles201ResponseDataRelationshipsSkus, bool)` - -GetSkusOk returns a tuple with the Skus field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSkus - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) SetSkus(v POSTBundles201ResponseDataRelationshipsSkus)` - -SetSkus sets Skus field to given value. - -### HasSkus - -`func (o *POSTFixedPricePromotions201ResponseDataRelationships) HasSkus() bool` - -HasSkus returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/POSTFlexPromotions201Response.md b/api/docs/POSTFlexPromotions201Response.md new file mode 100644 index 00000000..ed63f8b1 --- /dev/null +++ b/api/docs/POSTFlexPromotions201Response.md @@ -0,0 +1,56 @@ +# POSTFlexPromotions201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**POSTFlexPromotions201ResponseData**](POSTFlexPromotions201ResponseData.md) | | [optional] + +## Methods + +### NewPOSTFlexPromotions201Response + +`func NewPOSTFlexPromotions201Response() *POSTFlexPromotions201Response` + +NewPOSTFlexPromotions201Response instantiates a new POSTFlexPromotions201Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTFlexPromotions201ResponseWithDefaults + +`func NewPOSTFlexPromotions201ResponseWithDefaults() *POSTFlexPromotions201Response` + +NewPOSTFlexPromotions201ResponseWithDefaults instantiates a new POSTFlexPromotions201Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *POSTFlexPromotions201Response) GetData() POSTFlexPromotions201ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTFlexPromotions201Response) GetDataOk() (*POSTFlexPromotions201ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTFlexPromotions201Response) SetData(v POSTFlexPromotions201ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTFlexPromotions201Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTFlexPromotions201ResponseData.md b/api/docs/POSTFlexPromotions201ResponseData.md new file mode 100644 index 00000000..a266639f --- /dev/null +++ b/api/docs/POSTFlexPromotions201ResponseData.md @@ -0,0 +1,180 @@ +# POSTFlexPromotions201ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**POSTFlexPromotions201ResponseDataAttributes**](POSTFlexPromotions201ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTFlexPromotions201ResponseDataRelationships**](POSTFlexPromotions201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPOSTFlexPromotions201ResponseData + +`func NewPOSTFlexPromotions201ResponseData() *POSTFlexPromotions201ResponseData` + +NewPOSTFlexPromotions201ResponseData instantiates a new POSTFlexPromotions201ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTFlexPromotions201ResponseDataWithDefaults + +`func NewPOSTFlexPromotions201ResponseDataWithDefaults() *POSTFlexPromotions201ResponseData` + +NewPOSTFlexPromotions201ResponseDataWithDefaults instantiates a new POSTFlexPromotions201ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *POSTFlexPromotions201ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTFlexPromotions201ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTFlexPromotions201ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTFlexPromotions201ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTFlexPromotions201ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTFlexPromotions201ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *POSTFlexPromotions201ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTFlexPromotions201ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTFlexPromotions201ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTFlexPromotions201ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTFlexPromotions201ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTFlexPromotions201ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *POSTFlexPromotions201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTFlexPromotions201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTFlexPromotions201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTFlexPromotions201ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *POSTFlexPromotions201ResponseData) GetAttributes() POSTFlexPromotions201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *POSTFlexPromotions201ResponseData) GetAttributesOk() (*POSTFlexPromotions201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *POSTFlexPromotions201ResponseData) SetAttributes(v POSTFlexPromotions201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *POSTFlexPromotions201ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *POSTFlexPromotions201ResponseData) GetRelationships() POSTFlexPromotions201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *POSTFlexPromotions201ResponseData) GetRelationshipsOk() (*POSTFlexPromotions201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *POSTFlexPromotions201ResponseData) SetRelationships(v POSTFlexPromotions201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *POSTFlexPromotions201ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTFlexPromotions201ResponseDataAttributes.md b/api/docs/POSTFlexPromotions201ResponseDataAttributes.md new file mode 100644 index 00000000..915f1a74 --- /dev/null +++ b/api/docs/POSTFlexPromotions201ResponseDataAttributes.md @@ -0,0 +1,442 @@ +# POSTFlexPromotions201ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **interface{}** | The promotion's internal name. | +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] +**StartsAt** | **interface{}** | The activation date/time of this promotion. | +**ExpiresAt** | **interface{}** | The expiration date/time of this promotion (must be after starts_at). | +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] +**Rules** | **interface{}** | The discount rule to be applied. | +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPOSTFlexPromotions201ResponseDataAttributes + +`func NewPOSTFlexPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, rules interface{}, ) *POSTFlexPromotions201ResponseDataAttributes` + +NewPOSTFlexPromotions201ResponseDataAttributes instantiates a new POSTFlexPromotions201ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTFlexPromotions201ResponseDataAttributesWithDefaults + +`func NewPOSTFlexPromotions201ResponseDataAttributesWithDefaults() *POSTFlexPromotions201ResponseDataAttributes` + +NewPOSTFlexPromotions201ResponseDataAttributesWithDefaults instantiates a new POSTFlexPromotions201ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + + +### SetNameNil + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *POSTFlexPromotions201ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetExclusive + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *POSTFlexPromotions201ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *POSTFlexPromotions201ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *POSTFlexPromotions201ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *POSTFlexPromotions201ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil +### GetStartsAt + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetStartsAt() interface{}` + +GetStartsAt returns the StartsAt field if non-nil, zero value otherwise. + +### GetStartsAtOk + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool)` + +GetStartsAtOk returns a tuple with the StartsAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartsAt + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetStartsAt(v interface{})` + +SetStartsAt sets StartsAt field to given value. + + +### SetStartsAtNil + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetStartsAtNil(b bool)` + + SetStartsAtNil sets the value for StartsAt to be an explicit nil + +### UnsetStartsAt +`func (o *POSTFlexPromotions201ResponseDataAttributes) UnsetStartsAt()` + +UnsetStartsAt ensures that no value is present for StartsAt, not even an explicit nil +### GetExpiresAt + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetExpiresAt() interface{}` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetExpiresAt(v interface{})` + +SetExpiresAt sets ExpiresAt field to given value. + + +### SetExpiresAtNil + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *POSTFlexPromotions201ResponseDataAttributes) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetTotalUsageLimit + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetTotalUsageLimit() interface{}` + +GetTotalUsageLimit returns the TotalUsageLimit field if non-nil, zero value otherwise. + +### GetTotalUsageLimitOk + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetTotalUsageLimitOk() (*interface{}, bool)` + +GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalUsageLimit + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetTotalUsageLimit(v interface{})` + +SetTotalUsageLimit sets TotalUsageLimit field to given value. + +### HasTotalUsageLimit + +`func (o *POSTFlexPromotions201ResponseDataAttributes) HasTotalUsageLimit() bool` + +HasTotalUsageLimit returns a boolean if a field has been set. + +### SetTotalUsageLimitNil + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetTotalUsageLimitNil(b bool)` + + SetTotalUsageLimitNil sets the value for TotalUsageLimit to be an explicit nil + +### UnsetTotalUsageLimit +`func (o *POSTFlexPromotions201ResponseDataAttributes) UnsetTotalUsageLimit()` + +UnsetTotalUsageLimit ensures that no value is present for TotalUsageLimit, not even an explicit nil +### GetRules + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetRules() interface{}` + +GetRules returns the Rules field if non-nil, zero value otherwise. + +### GetRulesOk + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetRulesOk() (*interface{}, bool)` + +GetRulesOk returns a tuple with the Rules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRules + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetRules(v interface{})` + +SetRules sets Rules field to given value. + + +### SetRulesNil + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetRulesNil(b bool)` + + SetRulesNil sets the value for Rules to be an explicit nil + +### UnsetRules +`func (o *POSTFlexPromotions201ResponseDataAttributes) UnsetRules()` + +UnsetRules ensures that no value is present for Rules, not even an explicit nil +### GetDisable + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *POSTFlexPromotions201ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *POSTFlexPromotions201ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *POSTFlexPromotions201ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *POSTFlexPromotions201ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil +### GetReference + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *POSTFlexPromotions201ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *POSTFlexPromotions201ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *POSTFlexPromotions201ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *POSTFlexPromotions201ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *POSTFlexPromotions201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *POSTFlexPromotions201ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *POSTFlexPromotions201ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *POSTFlexPromotions201ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTFlexPromotions201ResponseDataRelationships.md b/api/docs/POSTFlexPromotions201ResponseDataRelationships.md new file mode 100644 index 00000000..db8831fd --- /dev/null +++ b/api/docs/POSTFlexPromotions201ResponseDataRelationships.md @@ -0,0 +1,186 @@ +# POSTFlexPromotions201ResponseDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CouponCodesPromotionRule** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule**](POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule.md) | | [optional] +**Coupons** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons**](POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**POSTAddresses201ResponseDataRelationshipsTags**](POSTAddresses201ResponseDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewPOSTFlexPromotions201ResponseDataRelationships + +`func NewPOSTFlexPromotions201ResponseDataRelationships() *POSTFlexPromotions201ResponseDataRelationships` + +NewPOSTFlexPromotions201ResponseDataRelationships instantiates a new POSTFlexPromotions201ResponseDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTFlexPromotions201ResponseDataRelationshipsWithDefaults + +`func NewPOSTFlexPromotions201ResponseDataRelationshipsWithDefaults() *POSTFlexPromotions201ResponseDataRelationships` + +NewPOSTFlexPromotions201ResponseDataRelationshipsWithDefaults instantiates a new POSTFlexPromotions201ResponseDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCouponCodesPromotionRule + +`func (o *POSTFlexPromotions201ResponseDataRelationships) GetCouponCodesPromotionRule() POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule` + +GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field if non-nil, zero value otherwise. + +### GetCouponCodesPromotionRuleOk + +`func (o *POSTFlexPromotions201ResponseDataRelationships) GetCouponCodesPromotionRuleOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule, bool)` + +GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCouponCodesPromotionRule + +`func (o *POSTFlexPromotions201ResponseDataRelationships) SetCouponCodesPromotionRule(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule)` + +SetCouponCodesPromotionRule sets CouponCodesPromotionRule field to given value. + +### HasCouponCodesPromotionRule + +`func (o *POSTFlexPromotions201ResponseDataRelationships) HasCouponCodesPromotionRule() bool` + +HasCouponCodesPromotionRule returns a boolean if a field has been set. + +### GetCoupons + +`func (o *POSTFlexPromotions201ResponseDataRelationships) GetCoupons() POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons` + +GetCoupons returns the Coupons field if non-nil, zero value otherwise. + +### GetCouponsOk + +`func (o *POSTFlexPromotions201ResponseDataRelationships) GetCouponsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons, bool)` + +GetCouponsOk returns a tuple with the Coupons field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCoupons + +`func (o *POSTFlexPromotions201ResponseDataRelationships) SetCoupons(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons)` + +SetCoupons sets Coupons field to given value. + +### HasCoupons + +`func (o *POSTFlexPromotions201ResponseDataRelationships) HasCoupons() bool` + +HasCoupons returns a boolean if a field has been set. + +### GetAttachments + +`func (o *POSTFlexPromotions201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *POSTFlexPromotions201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *POSTFlexPromotions201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *POSTFlexPromotions201ResponseDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + +### GetEvents + +`func (o *POSTFlexPromotions201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *POSTFlexPromotions201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *POSTFlexPromotions201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *POSTFlexPromotions201ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *POSTFlexPromotions201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *POSTFlexPromotions201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *POSTFlexPromotions201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *POSTFlexPromotions201ResponseDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTFlexPromotions201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTFlexPromotions201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTFlexPromotions201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTFlexPromotions201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTFreeGiftPromotions201ResponseData.md b/api/docs/POSTFreeGiftPromotions201ResponseData.md index d69fca73..7c98870e 100644 --- a/api/docs/POSTFreeGiftPromotions201ResponseData.md +++ b/api/docs/POSTFreeGiftPromotions201ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**POSTFreeGiftPromotions201ResponseDataAttributes**](POSTFreeGiftPromotions201ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTFixedPricePromotions201ResponseDataRelationships**](POSTFixedPricePromotions201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationships**](POSTBuyXPayYPromotions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *POSTFreeGiftPromotions201ResponseData) GetRelationships() POSTFixedPricePromotions201ResponseDataRelationships` +`func (o *POSTFreeGiftPromotions201ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *POSTFreeGiftPromotions201ResponseData) GetRelationshipsOk() (*POSTFixedPricePromotions201ResponseDataRelationships, bool)` +`func (o *POSTFreeGiftPromotions201ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *POSTFreeGiftPromotions201ResponseData) SetRelationships(v POSTFixedPricePromotions201ResponseDataRelationships)` +`func (o *POSTFreeGiftPromotions201ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/POSTFreeGiftPromotions201ResponseDataAttributes.md b/api/docs/POSTFreeGiftPromotions201ResponseDataAttributes.md index 38158a4f..0ac60ac9 100644 --- a/api/docs/POSTFreeGiftPromotions201ResponseDataAttributes.md +++ b/api/docs/POSTFreeGiftPromotions201ResponseDataAttributes.md @@ -6,11 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The promotion's internal name. | **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] **StartsAt** | **interface{}** | The activation date/time of this promotion. | **ExpiresAt** | **interface{}** | The expiration date/time of this promotion (must be after starts_at). | -**TotalUsageLimit** | **interface{}** | The total number of times this promotion can be applied. | +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **MaxQuantity** | Pointer to **interface{}** | The max quantity of free gifts globally applicable by the promotion. | [optional] @@ -18,7 +22,7 @@ Name | Type | Description | Notes ### NewPOSTFreeGiftPromotions201ResponseDataAttributes -`func NewPOSTFreeGiftPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, totalUsageLimit interface{}, ) *POSTFreeGiftPromotions201ResponseDataAttributes` +`func NewPOSTFreeGiftPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, ) *POSTFreeGiftPromotions201ResponseDataAttributes` NewPOSTFreeGiftPromotions201ResponseDataAttributes instantiates a new POSTFreeGiftPromotions201ResponseDataAttributes object This constructor will assign default values to properties that have it defined, @@ -98,6 +102,76 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *POSTFreeGiftPromotions201ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetStartsAt `func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetStartsAt() interface{}` @@ -177,6 +251,11 @@ and a boolean to check if the value has been set. SetTotalUsageLimit sets TotalUsageLimit field to given value. +### HasTotalUsageLimit + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) HasTotalUsageLimit() bool` + +HasTotalUsageLimit returns a boolean if a field has been set. ### SetTotalUsageLimitNil @@ -188,6 +267,76 @@ SetTotalUsageLimit sets TotalUsageLimit field to given value. `func (o *POSTFreeGiftPromotions201ResponseDataAttributes) UnsetTotalUsageLimit()` UnsetTotalUsageLimit ensures that no value is present for TotalUsageLimit, not even an explicit nil +### GetDisable + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *POSTFreeGiftPromotions201ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil ### GetReference `func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTFreeShippingPromotions201ResponseData.md b/api/docs/POSTFreeShippingPromotions201ResponseData.md index c68a7611..b68bdfe5 100644 --- a/api/docs/POSTFreeShippingPromotions201ResponseData.md +++ b/api/docs/POSTFreeShippingPromotions201ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**POSTFreeShippingPromotions201ResponseDataAttributes**](POSTFreeShippingPromotions201ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTExternalPromotions201ResponseDataRelationships**](POSTExternalPromotions201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTFreeShippingPromotions201ResponseDataRelationships**](POSTFreeShippingPromotions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *POSTFreeShippingPromotions201ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships` +`func (o *POSTFreeShippingPromotions201ResponseData) GetRelationships() POSTFreeShippingPromotions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *POSTFreeShippingPromotions201ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool)` +`func (o *POSTFreeShippingPromotions201ResponseData) GetRelationshipsOk() (*POSTFreeShippingPromotions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *POSTFreeShippingPromotions201ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships)` +`func (o *POSTFreeShippingPromotions201ResponseData) SetRelationships(v POSTFreeShippingPromotions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/POSTFreeShippingPromotions201ResponseDataAttributes.md b/api/docs/POSTFreeShippingPromotions201ResponseDataAttributes.md index 509e3632..fba17ea7 100644 --- a/api/docs/POSTFreeShippingPromotions201ResponseDataAttributes.md +++ b/api/docs/POSTFreeShippingPromotions201ResponseDataAttributes.md @@ -6,18 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The promotion's internal name. | **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] **StartsAt** | **interface{}** | The activation date/time of this promotion. | **ExpiresAt** | **interface{}** | The expiration date/time of this promotion (must be after starts_at). | -**TotalUsageLimit** | **interface{}** | The total number of times this promotion can be applied. | +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods ### NewPOSTFreeShippingPromotions201ResponseDataAttributes -`func NewPOSTFreeShippingPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, totalUsageLimit interface{}, ) *POSTFreeShippingPromotions201ResponseDataAttributes` +`func NewPOSTFreeShippingPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, ) *POSTFreeShippingPromotions201ResponseDataAttributes` NewPOSTFreeShippingPromotions201ResponseDataAttributes instantiates a new POSTFreeShippingPromotions201ResponseDataAttributes object This constructor will assign default values to properties that have it defined, @@ -97,6 +101,76 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *POSTFreeShippingPromotions201ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetStartsAt `func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetStartsAt() interface{}` @@ -176,6 +250,11 @@ and a boolean to check if the value has been set. SetTotalUsageLimit sets TotalUsageLimit field to given value. +### HasTotalUsageLimit + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) HasTotalUsageLimit() bool` + +HasTotalUsageLimit returns a boolean if a field has been set. ### SetTotalUsageLimitNil @@ -187,6 +266,76 @@ SetTotalUsageLimit sets TotalUsageLimit field to given value. `func (o *POSTFreeShippingPromotions201ResponseDataAttributes) UnsetTotalUsageLimit()` UnsetTotalUsageLimit ensures that no value is present for TotalUsageLimit, not even an explicit nil +### GetDisable + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *POSTFreeShippingPromotions201ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil ### GetReference `func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTFreeShippingPromotions201ResponseDataRelationships.md b/api/docs/POSTFreeShippingPromotions201ResponseDataRelationships.md new file mode 100644 index 00000000..9c212058 --- /dev/null +++ b/api/docs/POSTFreeShippingPromotions201ResponseDataRelationships.md @@ -0,0 +1,342 @@ +# POSTFreeShippingPromotions201ResponseDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Market** | Pointer to [**POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket**](POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket.md) | | [optional] +**PromotionRules** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules**](POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules.md) | | [optional] +**OrderAmountPromotionRule** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule**](POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule.md) | | [optional] +**SkuListPromotionRule** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule**](POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule.md) | | [optional] +**CouponCodesPromotionRule** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule**](POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule.md) | | [optional] +**CustomPromotionRule** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule**](POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule.md) | | [optional] +**SkuList** | Pointer to [**POSTBundles201ResponseDataRelationshipsSkuList**](POSTBundles201ResponseDataRelationshipsSkuList.md) | | [optional] +**Coupons** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons**](POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**POSTAddresses201ResponseDataRelationshipsTags**](POSTAddresses201ResponseDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewPOSTFreeShippingPromotions201ResponseDataRelationships + +`func NewPOSTFreeShippingPromotions201ResponseDataRelationships() *POSTFreeShippingPromotions201ResponseDataRelationships` + +NewPOSTFreeShippingPromotions201ResponseDataRelationships instantiates a new POSTFreeShippingPromotions201ResponseDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTFreeShippingPromotions201ResponseDataRelationshipsWithDefaults + +`func NewPOSTFreeShippingPromotions201ResponseDataRelationshipsWithDefaults() *POSTFreeShippingPromotions201ResponseDataRelationships` + +NewPOSTFreeShippingPromotions201ResponseDataRelationshipsWithDefaults instantiates a new POSTFreeShippingPromotions201ResponseDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMarket + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetMarket() POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket` + +GetMarket returns the Market field if non-nil, zero value otherwise. + +### GetMarketOk + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetMarketOk() (*POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket, bool)` + +GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarket + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetMarket(v POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket)` + +SetMarket sets Market field to given value. + +### HasMarket + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasMarket() bool` + +HasMarket returns a boolean if a field has been set. + +### GetPromotionRules + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetPromotionRules() POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules` + +GetPromotionRules returns the PromotionRules field if non-nil, zero value otherwise. + +### GetPromotionRulesOk + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetPromotionRulesOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules, bool)` + +GetPromotionRulesOk returns a tuple with the PromotionRules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPromotionRules + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetPromotionRules(v POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules)` + +SetPromotionRules sets PromotionRules field to given value. + +### HasPromotionRules + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasPromotionRules() bool` + +HasPromotionRules returns a boolean if a field has been set. + +### GetOrderAmountPromotionRule + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetOrderAmountPromotionRule() POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule` + +GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field if non-nil, zero value otherwise. + +### GetOrderAmountPromotionRuleOk + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetOrderAmountPromotionRuleOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule, bool)` + +GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderAmountPromotionRule + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetOrderAmountPromotionRule(v POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule)` + +SetOrderAmountPromotionRule sets OrderAmountPromotionRule field to given value. + +### HasOrderAmountPromotionRule + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasOrderAmountPromotionRule() bool` + +HasOrderAmountPromotionRule returns a boolean if a field has been set. + +### GetSkuListPromotionRule + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetSkuListPromotionRule() POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule` + +GetSkuListPromotionRule returns the SkuListPromotionRule field if non-nil, zero value otherwise. + +### GetSkuListPromotionRuleOk + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetSkuListPromotionRuleOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule, bool)` + +GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuListPromotionRule + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetSkuListPromotionRule(v POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule)` + +SetSkuListPromotionRule sets SkuListPromotionRule field to given value. + +### HasSkuListPromotionRule + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasSkuListPromotionRule() bool` + +HasSkuListPromotionRule returns a boolean if a field has been set. + +### GetCouponCodesPromotionRule + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetCouponCodesPromotionRule() POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule` + +GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field if non-nil, zero value otherwise. + +### GetCouponCodesPromotionRuleOk + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetCouponCodesPromotionRuleOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule, bool)` + +GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCouponCodesPromotionRule + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetCouponCodesPromotionRule(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule)` + +SetCouponCodesPromotionRule sets CouponCodesPromotionRule field to given value. + +### HasCouponCodesPromotionRule + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasCouponCodesPromotionRule() bool` + +HasCouponCodesPromotionRule returns a boolean if a field has been set. + +### GetCustomPromotionRule + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetCustomPromotionRule() POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule` + +GetCustomPromotionRule returns the CustomPromotionRule field if non-nil, zero value otherwise. + +### GetCustomPromotionRuleOk + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetCustomPromotionRuleOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule, bool)` + +GetCustomPromotionRuleOk returns a tuple with the CustomPromotionRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomPromotionRule + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetCustomPromotionRule(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule)` + +SetCustomPromotionRule sets CustomPromotionRule field to given value. + +### HasCustomPromotionRule + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasCustomPromotionRule() bool` + +HasCustomPromotionRule returns a boolean if a field has been set. + +### GetSkuList + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetSkuList() POSTBundles201ResponseDataRelationshipsSkuList` + +GetSkuList returns the SkuList field if non-nil, zero value otherwise. + +### GetSkuListOk + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetSkuListOk() (*POSTBundles201ResponseDataRelationshipsSkuList, bool)` + +GetSkuListOk returns a tuple with the SkuList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuList + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetSkuList(v POSTBundles201ResponseDataRelationshipsSkuList)` + +SetSkuList sets SkuList field to given value. + +### HasSkuList + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasSkuList() bool` + +HasSkuList returns a boolean if a field has been set. + +### GetCoupons + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetCoupons() POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons` + +GetCoupons returns the Coupons field if non-nil, zero value otherwise. + +### GetCouponsOk + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetCouponsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons, bool)` + +GetCouponsOk returns a tuple with the Coupons field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCoupons + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetCoupons(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons)` + +SetCoupons sets Coupons field to given value. + +### HasCoupons + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasCoupons() bool` + +HasCoupons returns a boolean if a field has been set. + +### GetAttachments + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + +### GetEvents + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTGiftCards201ResponseDataAttributes.md b/api/docs/POSTGiftCards201ResponseDataAttributes.md index 8a057af4..1cacfb58 100644 --- a/api/docs/POSTGiftCards201ResponseDataAttributes.md +++ b/api/docs/POSTGiftCards201ResponseDataAttributes.md @@ -10,11 +10,12 @@ Name | Type | Description | Notes **BalanceMaxCents** | Pointer to **interface{}** | The gift card balance max, in cents. | [optional] **SingleUse** | Pointer to **interface{}** | Indicates if the gift card can be used only one. | [optional] **Rechargeable** | Pointer to **interface{}** | Indicates if the gift card can be recharged. | [optional] +**DistributeDiscount** | Pointer to **interface{}** | Indicates if redeemed gift card amount is distributed for tax calculation. | [optional] **ImageUrl** | Pointer to **interface{}** | The URL of an image that represents the gift card. | [optional] **ExpiresAt** | Pointer to **interface{}** | Time at which the gift card will expire. | [optional] **RecipientEmail** | Pointer to **interface{}** | The email address of the associated recipient. When creating or updating a gift card, this is a shortcut to find or create the associated recipient by email. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -241,6 +242,41 @@ HasRechargeable returns a boolean if a field has been set. `func (o *POSTGiftCards201ResponseDataAttributes) UnsetRechargeable()` UnsetRechargeable ensures that no value is present for Rechargeable, not even an explicit nil +### GetDistributeDiscount + +`func (o *POSTGiftCards201ResponseDataAttributes) GetDistributeDiscount() interface{}` + +GetDistributeDiscount returns the DistributeDiscount field if non-nil, zero value otherwise. + +### GetDistributeDiscountOk + +`func (o *POSTGiftCards201ResponseDataAttributes) GetDistributeDiscountOk() (*interface{}, bool)` + +GetDistributeDiscountOk returns a tuple with the DistributeDiscount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistributeDiscount + +`func (o *POSTGiftCards201ResponseDataAttributes) SetDistributeDiscount(v interface{})` + +SetDistributeDiscount sets DistributeDiscount field to given value. + +### HasDistributeDiscount + +`func (o *POSTGiftCards201ResponseDataAttributes) HasDistributeDiscount() bool` + +HasDistributeDiscount returns a boolean if a field has been set. + +### SetDistributeDiscountNil + +`func (o *POSTGiftCards201ResponseDataAttributes) SetDistributeDiscountNil(b bool)` + + SetDistributeDiscountNil sets the value for DistributeDiscount to be an explicit nil + +### UnsetDistributeDiscount +`func (o *POSTGiftCards201ResponseDataAttributes) UnsetDistributeDiscount()` + +UnsetDistributeDiscount ensures that no value is present for DistributeDiscount, not even an explicit nil ### GetImageUrl `func (o *POSTGiftCards201ResponseDataAttributes) GetImageUrl() interface{}` diff --git a/api/docs/POSTGiftCards201ResponseDataRelationships.md b/api/docs/POSTGiftCards201ResponseDataRelationships.md index 9d968948..64378210 100644 --- a/api/docs/POSTGiftCards201ResponseDataRelationships.md +++ b/api/docs/POSTGiftCards201ResponseDataRelationships.md @@ -6,8 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Market** | Pointer to [**POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket**](POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket.md) | | [optional] **GiftCardRecipient** | Pointer to [**POSTGiftCards201ResponseDataRelationshipsGiftCardRecipient**](POSTGiftCards201ResponseDataRelationshipsGiftCardRecipient.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**POSTAddresses201ResponseDataRelationshipsTags**](POSTAddresses201ResponseDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -80,20 +82,20 @@ HasGiftCardRecipient returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTGiftCards201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTGiftCards201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTGiftCards201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTGiftCards201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTGiftCards201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTGiftCards201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -105,20 +107,20 @@ HasAttachments returns a boolean if a field has been set. ### GetEvents -`func (o *POSTGiftCards201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` +`func (o *POSTGiftCards201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *POSTGiftCards201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` +`func (o *POSTGiftCards201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *POSTGiftCards201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` +`func (o *POSTGiftCards201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -128,6 +130,56 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetTags + +`func (o *POSTGiftCards201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *POSTGiftCards201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *POSTGiftCards201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *POSTGiftCards201ResponseDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTGiftCards201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTGiftCards201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTGiftCards201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTGiftCards201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTGoogleGeocoders201ResponseDataAttributes.md b/api/docs/POSTGoogleGeocoders201ResponseDataAttributes.md index 5c8bb57b..31c672ce 100644 --- a/api/docs/POSTGoogleGeocoders201ResponseDataAttributes.md +++ b/api/docs/POSTGoogleGeocoders201ResponseDataAttributes.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **interface{}** | The geocoder's internal name | +**Name** | **interface{}** | The geocoder's internal name. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] -**ApiKey** | **interface{}** | The Google Map API key | +**ApiKey** | **interface{}** | The Google Map API key. | ## Methods diff --git a/api/docs/POSTImports201ResponseData.md b/api/docs/POSTImports201ResponseData.md index 0825f681..d47c8267 100644 --- a/api/docs/POSTImports201ResponseData.md +++ b/api/docs/POSTImports201ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**POSTImports201ResponseDataAttributes**](POSTImports201ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTCleanups201ResponseDataRelationships**](POSTCleanups201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTExports201ResponseDataRelationships**](POSTExports201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *POSTImports201ResponseData) GetRelationships() POSTCleanups201ResponseDataRelationships` +`func (o *POSTImports201ResponseData) GetRelationships() POSTExports201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *POSTImports201ResponseData) GetRelationshipsOk() (*POSTCleanups201ResponseDataRelationships, bool)` +`func (o *POSTImports201ResponseData) GetRelationshipsOk() (*POSTExports201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *POSTImports201ResponseData) SetRelationships(v POSTCleanups201ResponseDataRelationships)` +`func (o *POSTImports201ResponseData) SetRelationships(v POSTExports201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/POSTImports201ResponseDataAttributes.md b/api/docs/POSTImports201ResponseDataAttributes.md index 8c4a3981..51f34d1a 100644 --- a/api/docs/POSTImports201ResponseDataAttributes.md +++ b/api/docs/POSTImports201ResponseDataAttributes.md @@ -8,9 +8,8 @@ Name | Type | Description | Notes **Format** | Pointer to **interface{}** | The format of the import inputs one of 'json' (default) or 'csv'. | [optional] **ParentResourceId** | Pointer to **interface{}** | The ID of the parent resource to be associated with imported data. | [optional] **Inputs** | **interface{}** | Array of objects representing the resources that are being imported. | -**CleanupRecords** | Pointer to **interface{}** | Indicates if the import should cleanup records that are not included in the inputs array. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -162,41 +161,6 @@ SetInputs sets Inputs field to given value. `func (o *POSTImports201ResponseDataAttributes) UnsetInputs()` UnsetInputs ensures that no value is present for Inputs, not even an explicit nil -### GetCleanupRecords - -`func (o *POSTImports201ResponseDataAttributes) GetCleanupRecords() interface{}` - -GetCleanupRecords returns the CleanupRecords field if non-nil, zero value otherwise. - -### GetCleanupRecordsOk - -`func (o *POSTImports201ResponseDataAttributes) GetCleanupRecordsOk() (*interface{}, bool)` - -GetCleanupRecordsOk returns a tuple with the CleanupRecords field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCleanupRecords - -`func (o *POSTImports201ResponseDataAttributes) SetCleanupRecords(v interface{})` - -SetCleanupRecords sets CleanupRecords field to given value. - -### HasCleanupRecords - -`func (o *POSTImports201ResponseDataAttributes) HasCleanupRecords() bool` - -HasCleanupRecords returns a boolean if a field has been set. - -### SetCleanupRecordsNil - -`func (o *POSTImports201ResponseDataAttributes) SetCleanupRecordsNil(b bool)` - - SetCleanupRecordsNil sets the value for CleanupRecords to be an explicit nil - -### UnsetCleanupRecords -`func (o *POSTImports201ResponseDataAttributes) UnsetCleanupRecords()` - -UnsetCleanupRecords ensures that no value is present for CleanupRecords, not even an explicit nil ### GetReference `func (o *POSTImports201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTInStockSubscriptions201ResponseDataAttributes.md b/api/docs/POSTInStockSubscriptions201ResponseDataAttributes.md index 35c427d5..cb43249e 100644 --- a/api/docs/POSTInStockSubscriptions201ResponseDataAttributes.md +++ b/api/docs/POSTInStockSubscriptions201ResponseDataAttributes.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CustomerEmail** | Pointer to **interface{}** | The email of the associated customer, replace the relationship | [optional] -**SkuCode** | Pointer to **interface{}** | The code of the associated SKU, replace the relationship | [optional] +**CustomerEmail** | Pointer to **interface{}** | The email of the associated customer, replace the relationship. | [optional] +**SkuCode** | Pointer to **interface{}** | The code of the associated SKU, replace the relationship. | [optional] **StockThreshold** | Pointer to **interface{}** | The threshold at which to trigger the back in stock notification. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTInStockSubscriptions201ResponseDataRelationships.md b/api/docs/POSTInStockSubscriptions201ResponseDataRelationships.md index e5f09fa2..cd6da0c2 100644 --- a/api/docs/POSTInStockSubscriptions201ResponseDataRelationships.md +++ b/api/docs/POSTInStockSubscriptions201ResponseDataRelationships.md @@ -7,7 +7,8 @@ Name | Type | Description | Notes **Market** | Pointer to [**POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket**](POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket.md) | | [optional] **Customer** | Pointer to [**POSTCouponRecipients201ResponseDataRelationshipsCustomer**](POSTCouponRecipients201ResponseDataRelationshipsCustomer.md) | | [optional] **Sku** | Pointer to [**POSTInStockSubscriptions201ResponseDataRelationshipsSku**](POSTInStockSubscriptions201ResponseDataRelationshipsSku.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -105,20 +106,20 @@ HasSku returns a boolean if a field has been set. ### GetEvents -`func (o *POSTInStockSubscriptions201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` +`func (o *POSTInStockSubscriptions201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *POSTInStockSubscriptions201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` +`func (o *POSTInStockSubscriptions201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *POSTInStockSubscriptions201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` +`func (o *POSTInStockSubscriptions201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -128,6 +129,31 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTInStockSubscriptions201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTInStockSubscriptions201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTInStockSubscriptions201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTInStockSubscriptions201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTInventoryModels201ResponseDataAttributes.md b/api/docs/POSTInventoryModels201ResponseDataAttributes.md index 7e2ad60b..b7fcda9d 100644 --- a/api/docs/POSTInventoryModels201ResponseDataAttributes.md +++ b/api/docs/POSTInventoryModels201ResponseDataAttributes.md @@ -6,9 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The inventory model's internal name. | **Strategy** | Pointer to **interface{}** | The inventory model's shipping strategy: one between 'no_split' (default), 'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'. | [optional] -**StockLocationsCutoff** | Pointer to **interface{}** | The maximum number of stock locations used for inventory computation | [optional] +**StockLocationsCutoff** | Pointer to **interface{}** | The maximum number of stock locations used for inventory computation. | [optional] +**StockReservationCutoff** | Pointer to **interface{}** | The duration in seconds of the generated stock reservations. | [optional] +**PutStockTransfersOnHold** | Pointer to **interface{}** | Indicates if the the stock transfers must be put on hold automatically with the associated shipment. | [optional] +**ManualStockDecrement** | Pointer to **interface{}** | Indicates if the the stock will be decremented manually after the order approval. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -130,6 +133,111 @@ HasStockLocationsCutoff returns a boolean if a field has been set. `func (o *POSTInventoryModels201ResponseDataAttributes) UnsetStockLocationsCutoff()` UnsetStockLocationsCutoff ensures that no value is present for StockLocationsCutoff, not even an explicit nil +### GetStockReservationCutoff + +`func (o *POSTInventoryModels201ResponseDataAttributes) GetStockReservationCutoff() interface{}` + +GetStockReservationCutoff returns the StockReservationCutoff field if non-nil, zero value otherwise. + +### GetStockReservationCutoffOk + +`func (o *POSTInventoryModels201ResponseDataAttributes) GetStockReservationCutoffOk() (*interface{}, bool)` + +GetStockReservationCutoffOk returns a tuple with the StockReservationCutoff field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockReservationCutoff + +`func (o *POSTInventoryModels201ResponseDataAttributes) SetStockReservationCutoff(v interface{})` + +SetStockReservationCutoff sets StockReservationCutoff field to given value. + +### HasStockReservationCutoff + +`func (o *POSTInventoryModels201ResponseDataAttributes) HasStockReservationCutoff() bool` + +HasStockReservationCutoff returns a boolean if a field has been set. + +### SetStockReservationCutoffNil + +`func (o *POSTInventoryModels201ResponseDataAttributes) SetStockReservationCutoffNil(b bool)` + + SetStockReservationCutoffNil sets the value for StockReservationCutoff to be an explicit nil + +### UnsetStockReservationCutoff +`func (o *POSTInventoryModels201ResponseDataAttributes) UnsetStockReservationCutoff()` + +UnsetStockReservationCutoff ensures that no value is present for StockReservationCutoff, not even an explicit nil +### GetPutStockTransfersOnHold + +`func (o *POSTInventoryModels201ResponseDataAttributes) GetPutStockTransfersOnHold() interface{}` + +GetPutStockTransfersOnHold returns the PutStockTransfersOnHold field if non-nil, zero value otherwise. + +### GetPutStockTransfersOnHoldOk + +`func (o *POSTInventoryModels201ResponseDataAttributes) GetPutStockTransfersOnHoldOk() (*interface{}, bool)` + +GetPutStockTransfersOnHoldOk returns a tuple with the PutStockTransfersOnHold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPutStockTransfersOnHold + +`func (o *POSTInventoryModels201ResponseDataAttributes) SetPutStockTransfersOnHold(v interface{})` + +SetPutStockTransfersOnHold sets PutStockTransfersOnHold field to given value. + +### HasPutStockTransfersOnHold + +`func (o *POSTInventoryModels201ResponseDataAttributes) HasPutStockTransfersOnHold() bool` + +HasPutStockTransfersOnHold returns a boolean if a field has been set. + +### SetPutStockTransfersOnHoldNil + +`func (o *POSTInventoryModels201ResponseDataAttributes) SetPutStockTransfersOnHoldNil(b bool)` + + SetPutStockTransfersOnHoldNil sets the value for PutStockTransfersOnHold to be an explicit nil + +### UnsetPutStockTransfersOnHold +`func (o *POSTInventoryModels201ResponseDataAttributes) UnsetPutStockTransfersOnHold()` + +UnsetPutStockTransfersOnHold ensures that no value is present for PutStockTransfersOnHold, not even an explicit nil +### GetManualStockDecrement + +`func (o *POSTInventoryModels201ResponseDataAttributes) GetManualStockDecrement() interface{}` + +GetManualStockDecrement returns the ManualStockDecrement field if non-nil, zero value otherwise. + +### GetManualStockDecrementOk + +`func (o *POSTInventoryModels201ResponseDataAttributes) GetManualStockDecrementOk() (*interface{}, bool)` + +GetManualStockDecrementOk returns a tuple with the ManualStockDecrement field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManualStockDecrement + +`func (o *POSTInventoryModels201ResponseDataAttributes) SetManualStockDecrement(v interface{})` + +SetManualStockDecrement sets ManualStockDecrement field to given value. + +### HasManualStockDecrement + +`func (o *POSTInventoryModels201ResponseDataAttributes) HasManualStockDecrement() bool` + +HasManualStockDecrement returns a boolean if a field has been set. + +### SetManualStockDecrementNil + +`func (o *POSTInventoryModels201ResponseDataAttributes) SetManualStockDecrementNil(b bool)` + + SetManualStockDecrementNil sets the value for ManualStockDecrement to be an explicit nil + +### UnsetManualStockDecrement +`func (o *POSTInventoryModels201ResponseDataAttributes) UnsetManualStockDecrement()` + +UnsetManualStockDecrement ensures that no value is present for ManualStockDecrement, not even an explicit nil ### GetReference `func (o *POSTInventoryModels201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTInventoryModels201ResponseDataRelationships.md b/api/docs/POSTInventoryModels201ResponseDataRelationships.md index bb009788..db2813ce 100644 --- a/api/docs/POSTInventoryModels201ResponseDataRelationships.md +++ b/api/docs/POSTInventoryModels201ResponseDataRelationships.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **InventoryStockLocations** | Pointer to [**POSTInventoryModels201ResponseDataRelationshipsInventoryStockLocations**](POSTInventoryModels201ResponseDataRelationshipsInventoryStockLocations.md) | | [optional] **InventoryReturnLocations** | Pointer to [**POSTInventoryModels201ResponseDataRelationshipsInventoryReturnLocations**](POSTInventoryModels201ResponseDataRelationshipsInventoryReturnLocations.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -79,20 +80,20 @@ HasInventoryReturnLocations returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTInventoryModels201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTInventoryModels201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTInventoryModels201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTInventoryModels201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTInventoryModels201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTInventoryModels201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -102,6 +103,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTInventoryModels201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTInventoryModels201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTInventoryModels201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTInventoryModels201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTInventoryReturnLocations201ResponseDataAttributes.md b/api/docs/POSTInventoryReturnLocations201ResponseDataAttributes.md index 13c475fb..a4edccff 100644 --- a/api/docs/POSTInventoryReturnLocations201ResponseDataAttributes.md +++ b/api/docs/POSTInventoryReturnLocations201ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Priority** | **interface{}** | The inventory return location priority within the associated invetory model. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTInventoryReturnLocations201ResponseDataRelationships.md b/api/docs/POSTInventoryReturnLocations201ResponseDataRelationships.md index cfaadfda..2ef87936 100644 --- a/api/docs/POSTInventoryReturnLocations201ResponseDataRelationships.md +++ b/api/docs/POSTInventoryReturnLocations201ResponseDataRelationships.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StockLocation** | Pointer to [**POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation**](POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation.md) | | [optional] **InventoryModel** | Pointer to [**POSTInventoryReturnLocations201ResponseDataRelationshipsInventoryModel**](POSTInventoryReturnLocations201ResponseDataRelationshipsInventoryModel.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -76,6 +77,31 @@ SetInventoryModel sets InventoryModel field to given value. HasInventoryModel returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTInventoryReturnLocations201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTInventoryReturnLocations201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTInventoryReturnLocations201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTInventoryReturnLocations201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTInventoryStockLocations201ResponseDataAttributes.md b/api/docs/POSTInventoryStockLocations201ResponseDataAttributes.md index fe8a3043..c8fb8109 100644 --- a/api/docs/POSTInventoryStockLocations201ResponseDataAttributes.md +++ b/api/docs/POSTInventoryStockLocations201ResponseDataAttributes.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Priority** | **interface{}** | The stock location priority within the associated invetory model. | **OnHold** | Pointer to **interface{}** | Indicates if the shipment should be put on hold if fulfilled from the associated stock location. This is useful to manage use cases like back-orders, pre-orders or personalized orders that need to be customized before being fulfilled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTKlarnaGateways201ResponseDataAttributes.md b/api/docs/POSTKlarnaGateways201ResponseDataAttributes.md index 53f6162c..4498d4c1 100644 --- a/api/docs/POSTKlarnaGateways201ResponseDataAttributes.md +++ b/api/docs/POSTKlarnaGateways201ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The payment gateway's internal name. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **CountryCode** | **interface{}** | The gateway country code one of EU, US, or OC. | **ApiKey** | **interface{}** | The public key linked to your API credential. | diff --git a/api/docs/POSTKlarnaGateways201ResponseDataRelationships.md b/api/docs/POSTKlarnaGateways201ResponseDataRelationships.md index 82cfa59a..51174162 100644 --- a/api/docs/POSTKlarnaGateways201ResponseDataRelationships.md +++ b/api/docs/POSTKlarnaGateways201ResponseDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods**](POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] **KlarnaPayments** | Pointer to [**POSTKlarnaGateways201ResponseDataRelationshipsKlarnaPayments**](POSTKlarnaGateways201ResponseDataRelationshipsKlarnaPayments.md) | | [optional] ## Methods @@ -51,6 +52,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTKlarnaGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTKlarnaGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTKlarnaGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTKlarnaGateways201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetKlarnaPayments `func (o *POSTKlarnaGateways201ResponseDataRelationships) GetKlarnaPayments() POSTKlarnaGateways201ResponseDataRelationshipsKlarnaPayments` diff --git a/api/docs/POSTLineItemOptions201ResponseDataAttributes.md b/api/docs/POSTLineItemOptions201ResponseDataAttributes.md index 9a6d2871..01fe0e1d 100644 --- a/api/docs/POSTLineItemOptions201ResponseDataAttributes.md +++ b/api/docs/POSTLineItemOptions201ResponseDataAttributes.md @@ -5,10 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **interface{}** | The name of the line item option. When blank, it gets populated with the name of the associated SKU option. | [optional] -**Quantity** | **interface{}** | The line item option's quantity | +**Quantity** | **interface{}** | The line item option's quantity. | +**UnitAmountCents** | Pointer to **interface{}** | The unit amount of the line item option, in cents. When you add a line item option to an order, this is automatically populated from associated SKU option's price. Cannot be passed by sales channels. | [optional] **Options** | **interface{}** | Set of key-value pairs that represent the selected options. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -95,6 +96,41 @@ SetQuantity sets Quantity field to given value. `func (o *POSTLineItemOptions201ResponseDataAttributes) UnsetQuantity()` UnsetQuantity ensures that no value is present for Quantity, not even an explicit nil +### GetUnitAmountCents + +`func (o *POSTLineItemOptions201ResponseDataAttributes) GetUnitAmountCents() interface{}` + +GetUnitAmountCents returns the UnitAmountCents field if non-nil, zero value otherwise. + +### GetUnitAmountCentsOk + +`func (o *POSTLineItemOptions201ResponseDataAttributes) GetUnitAmountCentsOk() (*interface{}, bool)` + +GetUnitAmountCentsOk returns a tuple with the UnitAmountCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnitAmountCents + +`func (o *POSTLineItemOptions201ResponseDataAttributes) SetUnitAmountCents(v interface{})` + +SetUnitAmountCents sets UnitAmountCents field to given value. + +### HasUnitAmountCents + +`func (o *POSTLineItemOptions201ResponseDataAttributes) HasUnitAmountCents() bool` + +HasUnitAmountCents returns a boolean if a field has been set. + +### SetUnitAmountCentsNil + +`func (o *POSTLineItemOptions201ResponseDataAttributes) SetUnitAmountCentsNil(b bool)` + + SetUnitAmountCentsNil sets the value for UnitAmountCents to be an explicit nil + +### UnsetUnitAmountCents +`func (o *POSTLineItemOptions201ResponseDataAttributes) UnsetUnitAmountCents()` + +UnsetUnitAmountCents ensures that no value is present for UnitAmountCents, not even an explicit nil ### GetOptions `func (o *POSTLineItemOptions201ResponseDataAttributes) GetOptions() interface{}` diff --git a/api/docs/POSTLineItemOptions201ResponseDataRelationships.md b/api/docs/POSTLineItemOptions201ResponseDataRelationships.md index b57c5119..6c2de418 100644 --- a/api/docs/POSTLineItemOptions201ResponseDataRelationships.md +++ b/api/docs/POSTLineItemOptions201ResponseDataRelationships.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LineItem** | Pointer to [**POSTLineItemOptions201ResponseDataRelationshipsLineItem**](POSTLineItemOptions201ResponseDataRelationshipsLineItem.md) | | [optional] **SkuOption** | Pointer to [**POSTLineItemOptions201ResponseDataRelationshipsSkuOption**](POSTLineItemOptions201ResponseDataRelationshipsSkuOption.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**POSTAddresses201ResponseDataRelationshipsTags**](POSTAddresses201ResponseDataRelationshipsTags.md) | | [optional] ## Methods @@ -76,6 +78,56 @@ SetSkuOption sets SkuOption field to given value. HasSkuOption returns a boolean if a field has been set. +### GetEvents + +`func (o *POSTLineItemOptions201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *POSTLineItemOptions201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *POSTLineItemOptions201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *POSTLineItemOptions201ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *POSTLineItemOptions201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *POSTLineItemOptions201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *POSTLineItemOptions201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *POSTLineItemOptions201ResponseDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTLineItems201ResponseDataAttributes.md b/api/docs/POSTLineItems201ResponseDataAttributes.md index e5f5bf46..1b3659b7 100644 --- a/api/docs/POSTLineItems201ResponseDataAttributes.md +++ b/api/docs/POSTLineItems201ResponseDataAttributes.md @@ -7,15 +7,17 @@ Name | Type | Description | Notes **SkuCode** | Pointer to **interface{}** | The code of the associated SKU. | [optional] **BundleCode** | Pointer to **interface{}** | The code of the associated bundle. | [optional] **Quantity** | **interface{}** | The line item quantity. | -**ExternalPrice** | Pointer to **interface{}** | When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. | [optional] +**ExternalPrice** | Pointer to **interface{}** | When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'. | [optional] **UpdateQuantity** | Pointer to **interface{}** | When creating a new line item, set this attribute to '1' if you want to update the line item quantity (if present) instead of creating a new line item for the same SKU. | [optional] -**UnitAmountCents** | Pointer to **interface{}** | The unit amount of the line item, in cents. Can be specified without an item, otherwise is automatically populated from the price list associated to the order's market. | [optional] +**ReserveStock** | Pointer to **interface{}** | Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed. Cannot be passed by sales channels. | [optional] +**UnitAmountCents** | Pointer to **interface{}** | The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. | [optional] +**CompareAtAmountCents** | Pointer to **interface{}** | The compared price amount, in cents. Useful to display a percentage discount. | [optional] **Name** | Pointer to **interface{}** | The name of the line item. When blank, it gets populated with the name of the associated item (if present). | [optional] **ImageUrl** | Pointer to **interface{}** | The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only). | [optional] -**ItemType** | Pointer to **interface{}** | The type of the associate item. Can be one of 'skus', 'bundles', 'shipments', 'payment_methods', 'adjustments', 'gift_cards', or a valid promotion type. | [optional] +**ItemType** | Pointer to **interface{}** | The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'. | [optional] **Frequency** | Pointer to **interface{}** | The frequency which generates a subscription. Must be supported by existing associated subscription_model. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -207,6 +209,41 @@ HasUpdateQuantity returns a boolean if a field has been set. `func (o *POSTLineItems201ResponseDataAttributes) UnsetUpdateQuantity()` UnsetUpdateQuantity ensures that no value is present for UpdateQuantity, not even an explicit nil +### GetReserveStock + +`func (o *POSTLineItems201ResponseDataAttributes) GetReserveStock() interface{}` + +GetReserveStock returns the ReserveStock field if non-nil, zero value otherwise. + +### GetReserveStockOk + +`func (o *POSTLineItems201ResponseDataAttributes) GetReserveStockOk() (*interface{}, bool)` + +GetReserveStockOk returns a tuple with the ReserveStock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReserveStock + +`func (o *POSTLineItems201ResponseDataAttributes) SetReserveStock(v interface{})` + +SetReserveStock sets ReserveStock field to given value. + +### HasReserveStock + +`func (o *POSTLineItems201ResponseDataAttributes) HasReserveStock() bool` + +HasReserveStock returns a boolean if a field has been set. + +### SetReserveStockNil + +`func (o *POSTLineItems201ResponseDataAttributes) SetReserveStockNil(b bool)` + + SetReserveStockNil sets the value for ReserveStock to be an explicit nil + +### UnsetReserveStock +`func (o *POSTLineItems201ResponseDataAttributes) UnsetReserveStock()` + +UnsetReserveStock ensures that no value is present for ReserveStock, not even an explicit nil ### GetUnitAmountCents `func (o *POSTLineItems201ResponseDataAttributes) GetUnitAmountCents() interface{}` @@ -242,6 +279,41 @@ HasUnitAmountCents returns a boolean if a field has been set. `func (o *POSTLineItems201ResponseDataAttributes) UnsetUnitAmountCents()` UnsetUnitAmountCents ensures that no value is present for UnitAmountCents, not even an explicit nil +### GetCompareAtAmountCents + +`func (o *POSTLineItems201ResponseDataAttributes) GetCompareAtAmountCents() interface{}` + +GetCompareAtAmountCents returns the CompareAtAmountCents field if non-nil, zero value otherwise. + +### GetCompareAtAmountCentsOk + +`func (o *POSTLineItems201ResponseDataAttributes) GetCompareAtAmountCentsOk() (*interface{}, bool)` + +GetCompareAtAmountCentsOk returns a tuple with the CompareAtAmountCents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompareAtAmountCents + +`func (o *POSTLineItems201ResponseDataAttributes) SetCompareAtAmountCents(v interface{})` + +SetCompareAtAmountCents sets CompareAtAmountCents field to given value. + +### HasCompareAtAmountCents + +`func (o *POSTLineItems201ResponseDataAttributes) HasCompareAtAmountCents() bool` + +HasCompareAtAmountCents returns a boolean if a field has been set. + +### SetCompareAtAmountCentsNil + +`func (o *POSTLineItems201ResponseDataAttributes) SetCompareAtAmountCentsNil(b bool)` + + SetCompareAtAmountCentsNil sets the value for CompareAtAmountCents to be an explicit nil + +### UnsetCompareAtAmountCents +`func (o *POSTLineItems201ResponseDataAttributes) UnsetCompareAtAmountCents()` + +UnsetCompareAtAmountCents ensures that no value is present for CompareAtAmountCents, not even an explicit nil ### GetName `func (o *POSTLineItems201ResponseDataAttributes) GetName() interface{}` diff --git a/api/docs/POSTLineItems201ResponseDataRelationships.md b/api/docs/POSTLineItems201ResponseDataRelationships.md index eab0f088..397305f1 100644 --- a/api/docs/POSTLineItems201ResponseDataRelationships.md +++ b/api/docs/POSTLineItems201ResponseDataRelationships.md @@ -6,10 +6,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Order** | Pointer to [**POSTAdyenPayments201ResponseDataRelationshipsOrder**](POSTAdyenPayments201ResponseDataRelationshipsOrder.md) | | [optional] **Item** | Pointer to [**POSTLineItems201ResponseDataRelationshipsItem**](POSTLineItems201ResponseDataRelationshipsItem.md) | | [optional] +**Sku** | Pointer to [**POSTInStockSubscriptions201ResponseDataRelationshipsSku**](POSTInStockSubscriptions201ResponseDataRelationshipsSku.md) | | [optional] +**Bundle** | Pointer to [**POSTLineItems201ResponseDataRelationshipsBundle**](POSTLineItems201ResponseDataRelationshipsBundle.md) | | [optional] +**Adjustment** | Pointer to [**POSTLineItems201ResponseDataRelationshipsAdjustment**](POSTLineItems201ResponseDataRelationshipsAdjustment.md) | | [optional] +**GiftCard** | Pointer to [**POSTLineItems201ResponseDataRelationshipsGiftCard**](POSTLineItems201ResponseDataRelationshipsGiftCard.md) | | [optional] +**Shipment** | Pointer to [**POSTLineItems201ResponseDataRelationshipsShipment**](POSTLineItems201ResponseDataRelationshipsShipment.md) | | [optional] +**PaymentMethod** | Pointer to [**POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod**](POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod.md) | | [optional] **LineItemOptions** | Pointer to [**POSTLineItems201ResponseDataRelationshipsLineItemOptions**](POSTLineItems201ResponseDataRelationshipsLineItemOptions.md) | | [optional] -**ShipmentLineItems** | Pointer to [**POSTLineItems201ResponseDataRelationshipsShipmentLineItems**](POSTLineItems201ResponseDataRelationshipsShipmentLineItems.md) | | [optional] +**ReturnLineItems** | Pointer to [**POSTLineItems201ResponseDataRelationshipsReturnLineItems**](POSTLineItems201ResponseDataRelationshipsReturnLineItems.md) | | [optional] +**StockReservations** | Pointer to [**POSTLineItems201ResponseDataRelationshipsStockReservations**](POSTLineItems201ResponseDataRelationshipsStockReservations.md) | | [optional] **StockLineItems** | Pointer to [**POSTLineItems201ResponseDataRelationshipsStockLineItems**](POSTLineItems201ResponseDataRelationshipsStockLineItems.md) | | [optional] **StockTransfers** | Pointer to [**POSTLineItems201ResponseDataRelationshipsStockTransfers**](POSTLineItems201ResponseDataRelationshipsStockTransfers.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**POSTAddresses201ResponseDataRelationshipsTags**](POSTAddresses201ResponseDataRelationshipsTags.md) | | [optional] ## Methods @@ -80,6 +89,156 @@ SetItem sets Item field to given value. HasItem returns a boolean if a field has been set. +### GetSku + +`func (o *POSTLineItems201ResponseDataRelationships) GetSku() POSTInStockSubscriptions201ResponseDataRelationshipsSku` + +GetSku returns the Sku field if non-nil, zero value otherwise. + +### GetSkuOk + +`func (o *POSTLineItems201ResponseDataRelationships) GetSkuOk() (*POSTInStockSubscriptions201ResponseDataRelationshipsSku, bool)` + +GetSkuOk returns a tuple with the Sku field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSku + +`func (o *POSTLineItems201ResponseDataRelationships) SetSku(v POSTInStockSubscriptions201ResponseDataRelationshipsSku)` + +SetSku sets Sku field to given value. + +### HasSku + +`func (o *POSTLineItems201ResponseDataRelationships) HasSku() bool` + +HasSku returns a boolean if a field has been set. + +### GetBundle + +`func (o *POSTLineItems201ResponseDataRelationships) GetBundle() POSTLineItems201ResponseDataRelationshipsBundle` + +GetBundle returns the Bundle field if non-nil, zero value otherwise. + +### GetBundleOk + +`func (o *POSTLineItems201ResponseDataRelationships) GetBundleOk() (*POSTLineItems201ResponseDataRelationshipsBundle, bool)` + +GetBundleOk returns a tuple with the Bundle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBundle + +`func (o *POSTLineItems201ResponseDataRelationships) SetBundle(v POSTLineItems201ResponseDataRelationshipsBundle)` + +SetBundle sets Bundle field to given value. + +### HasBundle + +`func (o *POSTLineItems201ResponseDataRelationships) HasBundle() bool` + +HasBundle returns a boolean if a field has been set. + +### GetAdjustment + +`func (o *POSTLineItems201ResponseDataRelationships) GetAdjustment() POSTLineItems201ResponseDataRelationshipsAdjustment` + +GetAdjustment returns the Adjustment field if non-nil, zero value otherwise. + +### GetAdjustmentOk + +`func (o *POSTLineItems201ResponseDataRelationships) GetAdjustmentOk() (*POSTLineItems201ResponseDataRelationshipsAdjustment, bool)` + +GetAdjustmentOk returns a tuple with the Adjustment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdjustment + +`func (o *POSTLineItems201ResponseDataRelationships) SetAdjustment(v POSTLineItems201ResponseDataRelationshipsAdjustment)` + +SetAdjustment sets Adjustment field to given value. + +### HasAdjustment + +`func (o *POSTLineItems201ResponseDataRelationships) HasAdjustment() bool` + +HasAdjustment returns a boolean if a field has been set. + +### GetGiftCard + +`func (o *POSTLineItems201ResponseDataRelationships) GetGiftCard() POSTLineItems201ResponseDataRelationshipsGiftCard` + +GetGiftCard returns the GiftCard field if non-nil, zero value otherwise. + +### GetGiftCardOk + +`func (o *POSTLineItems201ResponseDataRelationships) GetGiftCardOk() (*POSTLineItems201ResponseDataRelationshipsGiftCard, bool)` + +GetGiftCardOk returns a tuple with the GiftCard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGiftCard + +`func (o *POSTLineItems201ResponseDataRelationships) SetGiftCard(v POSTLineItems201ResponseDataRelationshipsGiftCard)` + +SetGiftCard sets GiftCard field to given value. + +### HasGiftCard + +`func (o *POSTLineItems201ResponseDataRelationships) HasGiftCard() bool` + +HasGiftCard returns a boolean if a field has been set. + +### GetShipment + +`func (o *POSTLineItems201ResponseDataRelationships) GetShipment() POSTLineItems201ResponseDataRelationshipsShipment` + +GetShipment returns the Shipment field if non-nil, zero value otherwise. + +### GetShipmentOk + +`func (o *POSTLineItems201ResponseDataRelationships) GetShipmentOk() (*POSTLineItems201ResponseDataRelationshipsShipment, bool)` + +GetShipmentOk returns a tuple with the Shipment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShipment + +`func (o *POSTLineItems201ResponseDataRelationships) SetShipment(v POSTLineItems201ResponseDataRelationshipsShipment)` + +SetShipment sets Shipment field to given value. + +### HasShipment + +`func (o *POSTLineItems201ResponseDataRelationships) HasShipment() bool` + +HasShipment returns a boolean if a field has been set. + +### GetPaymentMethod + +`func (o *POSTLineItems201ResponseDataRelationships) GetPaymentMethod() POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod` + +GetPaymentMethod returns the PaymentMethod field if non-nil, zero value otherwise. + +### GetPaymentMethodOk + +`func (o *POSTLineItems201ResponseDataRelationships) GetPaymentMethodOk() (*POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod, bool)` + +GetPaymentMethodOk returns a tuple with the PaymentMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentMethod + +`func (o *POSTLineItems201ResponseDataRelationships) SetPaymentMethod(v POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod)` + +SetPaymentMethod sets PaymentMethod field to given value. + +### HasPaymentMethod + +`func (o *POSTLineItems201ResponseDataRelationships) HasPaymentMethod() bool` + +HasPaymentMethod returns a boolean if a field has been set. + ### GetLineItemOptions `func (o *POSTLineItems201ResponseDataRelationships) GetLineItemOptions() POSTLineItems201ResponseDataRelationshipsLineItemOptions` @@ -105,30 +264,55 @@ SetLineItemOptions sets LineItemOptions field to given value. HasLineItemOptions returns a boolean if a field has been set. -### GetShipmentLineItems +### GetReturnLineItems + +`func (o *POSTLineItems201ResponseDataRelationships) GetReturnLineItems() POSTLineItems201ResponseDataRelationshipsReturnLineItems` + +GetReturnLineItems returns the ReturnLineItems field if non-nil, zero value otherwise. + +### GetReturnLineItemsOk + +`func (o *POSTLineItems201ResponseDataRelationships) GetReturnLineItemsOk() (*POSTLineItems201ResponseDataRelationshipsReturnLineItems, bool)` + +GetReturnLineItemsOk returns a tuple with the ReturnLineItems field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnLineItems + +`func (o *POSTLineItems201ResponseDataRelationships) SetReturnLineItems(v POSTLineItems201ResponseDataRelationshipsReturnLineItems)` + +SetReturnLineItems sets ReturnLineItems field to given value. + +### HasReturnLineItems -`func (o *POSTLineItems201ResponseDataRelationships) GetShipmentLineItems() POSTLineItems201ResponseDataRelationshipsShipmentLineItems` +`func (o *POSTLineItems201ResponseDataRelationships) HasReturnLineItems() bool` -GetShipmentLineItems returns the ShipmentLineItems field if non-nil, zero value otherwise. +HasReturnLineItems returns a boolean if a field has been set. -### GetShipmentLineItemsOk +### GetStockReservations -`func (o *POSTLineItems201ResponseDataRelationships) GetShipmentLineItemsOk() (*POSTLineItems201ResponseDataRelationshipsShipmentLineItems, bool)` +`func (o *POSTLineItems201ResponseDataRelationships) GetStockReservations() POSTLineItems201ResponseDataRelationshipsStockReservations` -GetShipmentLineItemsOk returns a tuple with the ShipmentLineItems field if it's non-nil, zero value otherwise +GetStockReservations returns the StockReservations field if non-nil, zero value otherwise. + +### GetStockReservationsOk + +`func (o *POSTLineItems201ResponseDataRelationships) GetStockReservationsOk() (*POSTLineItems201ResponseDataRelationshipsStockReservations, bool)` + +GetStockReservationsOk returns a tuple with the StockReservations field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetShipmentLineItems +### SetStockReservations -`func (o *POSTLineItems201ResponseDataRelationships) SetShipmentLineItems(v POSTLineItems201ResponseDataRelationshipsShipmentLineItems)` +`func (o *POSTLineItems201ResponseDataRelationships) SetStockReservations(v POSTLineItems201ResponseDataRelationshipsStockReservations)` -SetShipmentLineItems sets ShipmentLineItems field to given value. +SetStockReservations sets StockReservations field to given value. -### HasShipmentLineItems +### HasStockReservations -`func (o *POSTLineItems201ResponseDataRelationships) HasShipmentLineItems() bool` +`func (o *POSTLineItems201ResponseDataRelationships) HasStockReservations() bool` -HasShipmentLineItems returns a boolean if a field has been set. +HasStockReservations returns a boolean if a field has been set. ### GetStockLineItems @@ -180,6 +364,56 @@ SetStockTransfers sets StockTransfers field to given value. HasStockTransfers returns a boolean if a field has been set. +### GetEvents + +`func (o *POSTLineItems201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *POSTLineItems201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *POSTLineItems201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *POSTLineItems201ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *POSTLineItems201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *POSTLineItems201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *POSTLineItems201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *POSTLineItems201ResponseDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTOrders201ResponseDataRelationshipsPaymentMethod.md b/api/docs/POSTLineItems201ResponseDataRelationshipsAdjustment.md similarity index 53% rename from api/docs/POSTOrders201ResponseDataRelationshipsPaymentMethod.md rename to api/docs/POSTLineItems201ResponseDataRelationshipsAdjustment.md index 4d04cbcd..aec32755 100644 --- a/api/docs/POSTOrders201ResponseDataRelationshipsPaymentMethod.md +++ b/api/docs/POSTLineItems201ResponseDataRelationshipsAdjustment.md @@ -1,78 +1,78 @@ -# POSTOrders201ResponseDataRelationshipsPaymentMethod +# POSTLineItems201ResponseDataRelationshipsAdjustment ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] -**Data** | Pointer to [**POSTOrders201ResponseDataRelationshipsPaymentMethodData**](POSTOrders201ResponseDataRelationshipsPaymentMethodData.md) | | [optional] +**Data** | Pointer to [**POSTLineItems201ResponseDataRelationshipsAdjustmentData**](POSTLineItems201ResponseDataRelationshipsAdjustmentData.md) | | [optional] ## Methods -### NewPOSTOrders201ResponseDataRelationshipsPaymentMethod +### NewPOSTLineItems201ResponseDataRelationshipsAdjustment -`func NewPOSTOrders201ResponseDataRelationshipsPaymentMethod() *POSTOrders201ResponseDataRelationshipsPaymentMethod` +`func NewPOSTLineItems201ResponseDataRelationshipsAdjustment() *POSTLineItems201ResponseDataRelationshipsAdjustment` -NewPOSTOrders201ResponseDataRelationshipsPaymentMethod instantiates a new POSTOrders201ResponseDataRelationshipsPaymentMethod object +NewPOSTLineItems201ResponseDataRelationshipsAdjustment instantiates a new POSTLineItems201ResponseDataRelationshipsAdjustment object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPOSTOrders201ResponseDataRelationshipsPaymentMethodWithDefaults +### NewPOSTLineItems201ResponseDataRelationshipsAdjustmentWithDefaults -`func NewPOSTOrders201ResponseDataRelationshipsPaymentMethodWithDefaults() *POSTOrders201ResponseDataRelationshipsPaymentMethod` +`func NewPOSTLineItems201ResponseDataRelationshipsAdjustmentWithDefaults() *POSTLineItems201ResponseDataRelationshipsAdjustment` -NewPOSTOrders201ResponseDataRelationshipsPaymentMethodWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsPaymentMethod object +NewPOSTLineItems201ResponseDataRelationshipsAdjustmentWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsAdjustment object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetLinks -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethod) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustment) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` GetLinks returns the Links field if non-nil, zero value otherwise. ### GetLinksOk -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethod) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustment) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLinks -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethod) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustment) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` SetLinks sets Links field to given value. ### HasLinks -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethod) HasLinks() bool` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustment) HasLinks() bool` HasLinks returns a boolean if a field has been set. ### GetData -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethod) GetData() POSTOrders201ResponseDataRelationshipsPaymentMethodData` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustment) GetData() POSTLineItems201ResponseDataRelationshipsAdjustmentData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethod) GetDataOk() (*POSTOrders201ResponseDataRelationshipsPaymentMethodData, bool)` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustment) GetDataOk() (*POSTLineItems201ResponseDataRelationshipsAdjustmentData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethod) SetData(v POSTOrders201ResponseDataRelationshipsPaymentMethodData)` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustment) SetData(v POSTLineItems201ResponseDataRelationshipsAdjustmentData)` SetData sets Data field to given value. ### HasData -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethod) HasData() bool` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustment) HasData() bool` HasData returns a boolean if a field has been set. diff --git a/api/docs/POSTOrders201ResponseDataRelationshipsPaymentMethodData.md b/api/docs/POSTLineItems201ResponseDataRelationshipsAdjustmentData.md similarity index 58% rename from api/docs/POSTOrders201ResponseDataRelationshipsPaymentMethodData.md rename to api/docs/POSTLineItems201ResponseDataRelationshipsAdjustmentData.md index 2c5c5a0d..0a9dbd43 100644 --- a/api/docs/POSTOrders201ResponseDataRelationshipsPaymentMethodData.md +++ b/api/docs/POSTLineItems201ResponseDataRelationshipsAdjustmentData.md @@ -1,4 +1,4 @@ -# POSTOrders201ResponseDataRelationshipsPaymentMethodData +# POSTLineItems201ResponseDataRelationshipsAdjustmentData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewPOSTOrders201ResponseDataRelationshipsPaymentMethodData +### NewPOSTLineItems201ResponseDataRelationshipsAdjustmentData -`func NewPOSTOrders201ResponseDataRelationshipsPaymentMethodData() *POSTOrders201ResponseDataRelationshipsPaymentMethodData` +`func NewPOSTLineItems201ResponseDataRelationshipsAdjustmentData() *POSTLineItems201ResponseDataRelationshipsAdjustmentData` -NewPOSTOrders201ResponseDataRelationshipsPaymentMethodData instantiates a new POSTOrders201ResponseDataRelationshipsPaymentMethodData object +NewPOSTLineItems201ResponseDataRelationshipsAdjustmentData instantiates a new POSTLineItems201ResponseDataRelationshipsAdjustmentData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPOSTOrders201ResponseDataRelationshipsPaymentMethodDataWithDefaults +### NewPOSTLineItems201ResponseDataRelationshipsAdjustmentDataWithDefaults -`func NewPOSTOrders201ResponseDataRelationshipsPaymentMethodDataWithDefaults() *POSTOrders201ResponseDataRelationshipsPaymentMethodData` +`func NewPOSTLineItems201ResponseDataRelationshipsAdjustmentDataWithDefaults() *POSTLineItems201ResponseDataRelationshipsAdjustmentData` -NewPOSTOrders201ResponseDataRelationshipsPaymentMethodDataWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsPaymentMethodData object +NewPOSTLineItems201ResponseDataRelationshipsAdjustmentDataWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsAdjustmentData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) GetType() interface{}` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) GetTypeOk() (*interface{}, bool)` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) SetType(v interface{})` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) HasType() bool` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) SetTypeNil(b bool)` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) UnsetType()` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) GetId() interface{}` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) GetIdOk() (*interface{}, bool)` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) SetId(v interface{})` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) HasId() bool` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) SetIdNil(b bool)` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) UnsetId()` +`func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/POSTLineItems201ResponseDataRelationshipsBundle.md b/api/docs/POSTLineItems201ResponseDataRelationshipsBundle.md new file mode 100644 index 00000000..430af788 --- /dev/null +++ b/api/docs/POSTLineItems201ResponseDataRelationshipsBundle.md @@ -0,0 +1,82 @@ +# POSTLineItems201ResponseDataRelationshipsBundle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTLineItems201ResponseDataRelationshipsBundleData**](POSTLineItems201ResponseDataRelationshipsBundleData.md) | | [optional] + +## Methods + +### NewPOSTLineItems201ResponseDataRelationshipsBundle + +`func NewPOSTLineItems201ResponseDataRelationshipsBundle() *POSTLineItems201ResponseDataRelationshipsBundle` + +NewPOSTLineItems201ResponseDataRelationshipsBundle instantiates a new POSTLineItems201ResponseDataRelationshipsBundle object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTLineItems201ResponseDataRelationshipsBundleWithDefaults + +`func NewPOSTLineItems201ResponseDataRelationshipsBundleWithDefaults() *POSTLineItems201ResponseDataRelationshipsBundle` + +NewPOSTLineItems201ResponseDataRelationshipsBundleWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsBundle object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTLineItems201ResponseDataRelationshipsBundle) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTLineItems201ResponseDataRelationshipsBundle) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTLineItems201ResponseDataRelationshipsBundle) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTLineItems201ResponseDataRelationshipsBundle) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTLineItems201ResponseDataRelationshipsBundle) GetData() POSTLineItems201ResponseDataRelationshipsBundleData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTLineItems201ResponseDataRelationshipsBundle) GetDataOk() (*POSTLineItems201ResponseDataRelationshipsBundleData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTLineItems201ResponseDataRelationshipsBundle) SetData(v POSTLineItems201ResponseDataRelationshipsBundleData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTLineItems201ResponseDataRelationshipsBundle) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTLineItems201ResponseDataRelationshipsBundleData.md b/api/docs/POSTLineItems201ResponseDataRelationshipsBundleData.md new file mode 100644 index 00000000..3aad4c33 --- /dev/null +++ b/api/docs/POSTLineItems201ResponseDataRelationshipsBundleData.md @@ -0,0 +1,102 @@ +# POSTLineItems201ResponseDataRelationshipsBundleData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTLineItems201ResponseDataRelationshipsBundleData + +`func NewPOSTLineItems201ResponseDataRelationshipsBundleData() *POSTLineItems201ResponseDataRelationshipsBundleData` + +NewPOSTLineItems201ResponseDataRelationshipsBundleData instantiates a new POSTLineItems201ResponseDataRelationshipsBundleData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTLineItems201ResponseDataRelationshipsBundleDataWithDefaults + +`func NewPOSTLineItems201ResponseDataRelationshipsBundleDataWithDefaults() *POSTLineItems201ResponseDataRelationshipsBundleData` + +NewPOSTLineItems201ResponseDataRelationshipsBundleDataWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsBundleData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTLineItems201ResponseDataRelationshipsBundleData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTLineItems201ResponseDataRelationshipsBundleData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTLineItems201ResponseDataRelationshipsBundleData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTLineItems201ResponseDataRelationshipsBundleData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTLineItems201ResponseDataRelationshipsBundleData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTLineItems201ResponseDataRelationshipsBundleData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTLineItems201ResponseDataRelationshipsBundleData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTLineItems201ResponseDataRelationshipsBundleData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTLineItems201ResponseDataRelationshipsBundleData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTLineItems201ResponseDataRelationshipsBundleData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTLineItems201ResponseDataRelationshipsBundleData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTLineItems201ResponseDataRelationshipsBundleData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTLineItems201ResponseDataRelationshipsGiftCard.md b/api/docs/POSTLineItems201ResponseDataRelationshipsGiftCard.md new file mode 100644 index 00000000..1b06a3fc --- /dev/null +++ b/api/docs/POSTLineItems201ResponseDataRelationshipsGiftCard.md @@ -0,0 +1,82 @@ +# POSTLineItems201ResponseDataRelationshipsGiftCard + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTLineItems201ResponseDataRelationshipsGiftCardData**](POSTLineItems201ResponseDataRelationshipsGiftCardData.md) | | [optional] + +## Methods + +### NewPOSTLineItems201ResponseDataRelationshipsGiftCard + +`func NewPOSTLineItems201ResponseDataRelationshipsGiftCard() *POSTLineItems201ResponseDataRelationshipsGiftCard` + +NewPOSTLineItems201ResponseDataRelationshipsGiftCard instantiates a new POSTLineItems201ResponseDataRelationshipsGiftCard object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTLineItems201ResponseDataRelationshipsGiftCardWithDefaults + +`func NewPOSTLineItems201ResponseDataRelationshipsGiftCardWithDefaults() *POSTLineItems201ResponseDataRelationshipsGiftCard` + +NewPOSTLineItems201ResponseDataRelationshipsGiftCardWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsGiftCard object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCard) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCard) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCard) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCard) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCard) GetData() POSTLineItems201ResponseDataRelationshipsGiftCardData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCard) GetDataOk() (*POSTLineItems201ResponseDataRelationshipsGiftCardData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCard) SetData(v POSTLineItems201ResponseDataRelationshipsGiftCardData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCard) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTLineItems201ResponseDataRelationshipsGiftCardData.md b/api/docs/POSTLineItems201ResponseDataRelationshipsGiftCardData.md new file mode 100644 index 00000000..837c0acf --- /dev/null +++ b/api/docs/POSTLineItems201ResponseDataRelationshipsGiftCardData.md @@ -0,0 +1,102 @@ +# POSTLineItems201ResponseDataRelationshipsGiftCardData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTLineItems201ResponseDataRelationshipsGiftCardData + +`func NewPOSTLineItems201ResponseDataRelationshipsGiftCardData() *POSTLineItems201ResponseDataRelationshipsGiftCardData` + +NewPOSTLineItems201ResponseDataRelationshipsGiftCardData instantiates a new POSTLineItems201ResponseDataRelationshipsGiftCardData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTLineItems201ResponseDataRelationshipsGiftCardDataWithDefaults + +`func NewPOSTLineItems201ResponseDataRelationshipsGiftCardDataWithDefaults() *POSTLineItems201ResponseDataRelationshipsGiftCardData` + +NewPOSTLineItems201ResponseDataRelationshipsGiftCardDataWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsGiftCardData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTLineItems201ResponseDataRelationshipsReturnLineItems.md b/api/docs/POSTLineItems201ResponseDataRelationshipsReturnLineItems.md new file mode 100644 index 00000000..355e3737 --- /dev/null +++ b/api/docs/POSTLineItems201ResponseDataRelationshipsReturnLineItems.md @@ -0,0 +1,82 @@ +# POSTLineItems201ResponseDataRelationshipsReturnLineItems + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTLineItems201ResponseDataRelationshipsReturnLineItemsData**](POSTLineItems201ResponseDataRelationshipsReturnLineItemsData.md) | | [optional] + +## Methods + +### NewPOSTLineItems201ResponseDataRelationshipsReturnLineItems + +`func NewPOSTLineItems201ResponseDataRelationshipsReturnLineItems() *POSTLineItems201ResponseDataRelationshipsReturnLineItems` + +NewPOSTLineItems201ResponseDataRelationshipsReturnLineItems instantiates a new POSTLineItems201ResponseDataRelationshipsReturnLineItems object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTLineItems201ResponseDataRelationshipsReturnLineItemsWithDefaults + +`func NewPOSTLineItems201ResponseDataRelationshipsReturnLineItemsWithDefaults() *POSTLineItems201ResponseDataRelationshipsReturnLineItems` + +NewPOSTLineItems201ResponseDataRelationshipsReturnLineItemsWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsReturnLineItems object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItems) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItems) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItems) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItems) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItems) GetData() POSTLineItems201ResponseDataRelationshipsReturnLineItemsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItems) GetDataOk() (*POSTLineItems201ResponseDataRelationshipsReturnLineItemsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItems) SetData(v POSTLineItems201ResponseDataRelationshipsReturnLineItemsData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItems) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTLineItems201ResponseDataRelationshipsReturnLineItemsData.md b/api/docs/POSTLineItems201ResponseDataRelationshipsReturnLineItemsData.md new file mode 100644 index 00000000..d5ff2116 --- /dev/null +++ b/api/docs/POSTLineItems201ResponseDataRelationshipsReturnLineItemsData.md @@ -0,0 +1,102 @@ +# POSTLineItems201ResponseDataRelationshipsReturnLineItemsData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTLineItems201ResponseDataRelationshipsReturnLineItemsData + +`func NewPOSTLineItems201ResponseDataRelationshipsReturnLineItemsData() *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData` + +NewPOSTLineItems201ResponseDataRelationshipsReturnLineItemsData instantiates a new POSTLineItems201ResponseDataRelationshipsReturnLineItemsData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTLineItems201ResponseDataRelationshipsReturnLineItemsDataWithDefaults + +`func NewPOSTLineItems201ResponseDataRelationshipsReturnLineItemsDataWithDefaults() *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData` + +NewPOSTLineItems201ResponseDataRelationshipsReturnLineItemsDataWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsReturnLineItemsData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTLineItems201ResponseDataRelationshipsShipment.md b/api/docs/POSTLineItems201ResponseDataRelationshipsShipment.md new file mode 100644 index 00000000..ca1ba01e --- /dev/null +++ b/api/docs/POSTLineItems201ResponseDataRelationshipsShipment.md @@ -0,0 +1,82 @@ +# POSTLineItems201ResponseDataRelationshipsShipment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTLineItems201ResponseDataRelationshipsShipmentData**](POSTLineItems201ResponseDataRelationshipsShipmentData.md) | | [optional] + +## Methods + +### NewPOSTLineItems201ResponseDataRelationshipsShipment + +`func NewPOSTLineItems201ResponseDataRelationshipsShipment() *POSTLineItems201ResponseDataRelationshipsShipment` + +NewPOSTLineItems201ResponseDataRelationshipsShipment instantiates a new POSTLineItems201ResponseDataRelationshipsShipment object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTLineItems201ResponseDataRelationshipsShipmentWithDefaults + +`func NewPOSTLineItems201ResponseDataRelationshipsShipmentWithDefaults() *POSTLineItems201ResponseDataRelationshipsShipment` + +NewPOSTLineItems201ResponseDataRelationshipsShipmentWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsShipment object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTLineItems201ResponseDataRelationshipsShipment) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTLineItems201ResponseDataRelationshipsShipment) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTLineItems201ResponseDataRelationshipsShipment) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTLineItems201ResponseDataRelationshipsShipment) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTLineItems201ResponseDataRelationshipsShipment) GetData() POSTLineItems201ResponseDataRelationshipsShipmentData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTLineItems201ResponseDataRelationshipsShipment) GetDataOk() (*POSTLineItems201ResponseDataRelationshipsShipmentData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTLineItems201ResponseDataRelationshipsShipment) SetData(v POSTLineItems201ResponseDataRelationshipsShipmentData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTLineItems201ResponseDataRelationshipsShipment) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTLineItems201ResponseDataRelationshipsShipmentData.md b/api/docs/POSTLineItems201ResponseDataRelationshipsShipmentData.md new file mode 100644 index 00000000..a2badd3c --- /dev/null +++ b/api/docs/POSTLineItems201ResponseDataRelationshipsShipmentData.md @@ -0,0 +1,102 @@ +# POSTLineItems201ResponseDataRelationshipsShipmentData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTLineItems201ResponseDataRelationshipsShipmentData + +`func NewPOSTLineItems201ResponseDataRelationshipsShipmentData() *POSTLineItems201ResponseDataRelationshipsShipmentData` + +NewPOSTLineItems201ResponseDataRelationshipsShipmentData instantiates a new POSTLineItems201ResponseDataRelationshipsShipmentData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTLineItems201ResponseDataRelationshipsShipmentDataWithDefaults + +`func NewPOSTLineItems201ResponseDataRelationshipsShipmentDataWithDefaults() *POSTLineItems201ResponseDataRelationshipsShipmentData` + +NewPOSTLineItems201ResponseDataRelationshipsShipmentDataWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsShipmentData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTLineItems201ResponseDataRelationshipsShipmentLineItems.md b/api/docs/POSTLineItems201ResponseDataRelationshipsShipmentLineItems.md deleted file mode 100644 index b8f74bf3..00000000 --- a/api/docs/POSTLineItems201ResponseDataRelationshipsShipmentLineItems.md +++ /dev/null @@ -1,82 +0,0 @@ -# POSTLineItems201ResponseDataRelationshipsShipmentLineItems - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] -**Data** | Pointer to [**POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData**](POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData.md) | | [optional] - -## Methods - -### NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItems - -`func NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItems() *POSTLineItems201ResponseDataRelationshipsShipmentLineItems` - -NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItems instantiates a new POSTLineItems201ResponseDataRelationshipsShipmentLineItems object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItemsWithDefaults - -`func NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItemsWithDefaults() *POSTLineItems201ResponseDataRelationshipsShipmentLineItems` - -NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItemsWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsShipmentLineItems object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetLinks - -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItems) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItems) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItems) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItems) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - -### GetData - -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItems) GetData() POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItems) GetDataOk() (*POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItems) SetData(v POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItems) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/POSTLineItems201ResponseDataRelationshipsStockReservations.md b/api/docs/POSTLineItems201ResponseDataRelationshipsStockReservations.md new file mode 100644 index 00000000..3c583522 --- /dev/null +++ b/api/docs/POSTLineItems201ResponseDataRelationshipsStockReservations.md @@ -0,0 +1,82 @@ +# POSTLineItems201ResponseDataRelationshipsStockReservations + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTLineItems201ResponseDataRelationshipsStockReservationsData**](POSTLineItems201ResponseDataRelationshipsStockReservationsData.md) | | [optional] + +## Methods + +### NewPOSTLineItems201ResponseDataRelationshipsStockReservations + +`func NewPOSTLineItems201ResponseDataRelationshipsStockReservations() *POSTLineItems201ResponseDataRelationshipsStockReservations` + +NewPOSTLineItems201ResponseDataRelationshipsStockReservations instantiates a new POSTLineItems201ResponseDataRelationshipsStockReservations object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTLineItems201ResponseDataRelationshipsStockReservationsWithDefaults + +`func NewPOSTLineItems201ResponseDataRelationshipsStockReservationsWithDefaults() *POSTLineItems201ResponseDataRelationshipsStockReservations` + +NewPOSTLineItems201ResponseDataRelationshipsStockReservationsWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsStockReservations object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservations) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservations) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservations) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservations) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservations) GetData() POSTLineItems201ResponseDataRelationshipsStockReservationsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservations) GetDataOk() (*POSTLineItems201ResponseDataRelationshipsStockReservationsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservations) SetData(v POSTLineItems201ResponseDataRelationshipsStockReservationsData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservations) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData.md b/api/docs/POSTLineItems201ResponseDataRelationshipsStockReservationsData.md similarity index 50% rename from api/docs/POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData.md rename to api/docs/POSTLineItems201ResponseDataRelationshipsStockReservationsData.md index 23218a0a..79565740 100644 --- a/api/docs/POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData.md +++ b/api/docs/POSTLineItems201ResponseDataRelationshipsStockReservationsData.md @@ -1,4 +1,4 @@ -# POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData +# POSTLineItems201ResponseDataRelationshipsStockReservationsData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItemsData +### NewPOSTLineItems201ResponseDataRelationshipsStockReservationsData -`func NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItemsData() *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData` +`func NewPOSTLineItems201ResponseDataRelationshipsStockReservationsData() *POSTLineItems201ResponseDataRelationshipsStockReservationsData` -NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItemsData instantiates a new POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData object +NewPOSTLineItems201ResponseDataRelationshipsStockReservationsData instantiates a new POSTLineItems201ResponseDataRelationshipsStockReservationsData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItemsDataWithDefaults +### NewPOSTLineItems201ResponseDataRelationshipsStockReservationsDataWithDefaults -`func NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItemsDataWithDefaults() *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData` +`func NewPOSTLineItems201ResponseDataRelationshipsStockReservationsDataWithDefaults() *POSTLineItems201ResponseDataRelationshipsStockReservationsData` -NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItemsDataWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData object +NewPOSTLineItems201ResponseDataRelationshipsStockReservationsDataWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsStockReservationsData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) GetType() interface{}` +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) GetTypeOk() (*interface{}, bool)` +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) SetType(v interface{})` +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) HasType() bool` +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) SetTypeNil(b bool)` +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) UnsetType()` +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) GetId() interface{}` +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) GetIdOk() (*interface{}, bool)` +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) SetId(v interface{})` +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) HasId() bool` +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) SetIdNil(b bool)` +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) UnsetId()` +`func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/POSTLinks201Response.md b/api/docs/POSTLinks201Response.md new file mode 100644 index 00000000..0cf8695d --- /dev/null +++ b/api/docs/POSTLinks201Response.md @@ -0,0 +1,56 @@ +# POSTLinks201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**POSTLinks201ResponseData**](POSTLinks201ResponseData.md) | | [optional] + +## Methods + +### NewPOSTLinks201Response + +`func NewPOSTLinks201Response() *POSTLinks201Response` + +NewPOSTLinks201Response instantiates a new POSTLinks201Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTLinks201ResponseWithDefaults + +`func NewPOSTLinks201ResponseWithDefaults() *POSTLinks201Response` + +NewPOSTLinks201ResponseWithDefaults instantiates a new POSTLinks201Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *POSTLinks201Response) GetData() POSTLinks201ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTLinks201Response) GetDataOk() (*POSTLinks201ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTLinks201Response) SetData(v POSTLinks201ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTLinks201Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTLinks201ResponseData.md b/api/docs/POSTLinks201ResponseData.md new file mode 100644 index 00000000..8157e930 --- /dev/null +++ b/api/docs/POSTLinks201ResponseData.md @@ -0,0 +1,180 @@ +# POSTLinks201ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**POSTLinks201ResponseDataAttributes**](POSTLinks201ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTLinks201ResponseDataRelationships**](POSTLinks201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPOSTLinks201ResponseData + +`func NewPOSTLinks201ResponseData() *POSTLinks201ResponseData` + +NewPOSTLinks201ResponseData instantiates a new POSTLinks201ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTLinks201ResponseDataWithDefaults + +`func NewPOSTLinks201ResponseDataWithDefaults() *POSTLinks201ResponseData` + +NewPOSTLinks201ResponseDataWithDefaults instantiates a new POSTLinks201ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *POSTLinks201ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTLinks201ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTLinks201ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTLinks201ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTLinks201ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTLinks201ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *POSTLinks201ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTLinks201ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTLinks201ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTLinks201ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTLinks201ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTLinks201ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *POSTLinks201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTLinks201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTLinks201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTLinks201ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *POSTLinks201ResponseData) GetAttributes() POSTLinks201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *POSTLinks201ResponseData) GetAttributesOk() (*POSTLinks201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *POSTLinks201ResponseData) SetAttributes(v POSTLinks201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *POSTLinks201ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *POSTLinks201ResponseData) GetRelationships() POSTLinks201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *POSTLinks201ResponseData) GetRelationshipsOk() (*POSTLinks201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *POSTLinks201ResponseData) SetRelationships(v POSTLinks201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *POSTLinks201ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTLinks201ResponseDataAttributes.md b/api/docs/POSTLinks201ResponseDataAttributes.md new file mode 100644 index 00000000..605f47df --- /dev/null +++ b/api/docs/POSTLinks201ResponseDataAttributes.md @@ -0,0 +1,483 @@ +# POSTLinks201ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **interface{}** | The link internal name. | +**ClientId** | **interface{}** | The link application client id, used to fetch JWT. | +**Scope** | **interface{}** | The link application scope, used to fetch JWT. | +**StartsAt** | Pointer to **interface{}** | The activation date/time of this link. | [optional] +**ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this link (must be after starts_at). | [optional] +**Domain** | Pointer to **interface{}** | The link URL second level domain. | [optional] +**ItemType** | Pointer to **interface{}** | The type of the associated item. One of 'orders', 'skus', or 'sku_lists'. | [optional] +**Params** | Pointer to **interface{}** | The link params to be passed in URL the query string. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPOSTLinks201ResponseDataAttributes + +`func NewPOSTLinks201ResponseDataAttributes(name interface{}, clientId interface{}, scope interface{}, ) *POSTLinks201ResponseDataAttributes` + +NewPOSTLinks201ResponseDataAttributes instantiates a new POSTLinks201ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTLinks201ResponseDataAttributesWithDefaults + +`func NewPOSTLinks201ResponseDataAttributesWithDefaults() *POSTLinks201ResponseDataAttributes` + +NewPOSTLinks201ResponseDataAttributesWithDefaults instantiates a new POSTLinks201ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *POSTLinks201ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *POSTLinks201ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *POSTLinks201ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + + +### SetNameNil + +`func (o *POSTLinks201ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *POSTLinks201ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetClientId + +`func (o *POSTLinks201ResponseDataAttributes) GetClientId() interface{}` + +GetClientId returns the ClientId field if non-nil, zero value otherwise. + +### GetClientIdOk + +`func (o *POSTLinks201ResponseDataAttributes) GetClientIdOk() (*interface{}, bool)` + +GetClientIdOk returns a tuple with the ClientId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientId + +`func (o *POSTLinks201ResponseDataAttributes) SetClientId(v interface{})` + +SetClientId sets ClientId field to given value. + + +### SetClientIdNil + +`func (o *POSTLinks201ResponseDataAttributes) SetClientIdNil(b bool)` + + SetClientIdNil sets the value for ClientId to be an explicit nil + +### UnsetClientId +`func (o *POSTLinks201ResponseDataAttributes) UnsetClientId()` + +UnsetClientId ensures that no value is present for ClientId, not even an explicit nil +### GetScope + +`func (o *POSTLinks201ResponseDataAttributes) GetScope() interface{}` + +GetScope returns the Scope field if non-nil, zero value otherwise. + +### GetScopeOk + +`func (o *POSTLinks201ResponseDataAttributes) GetScopeOk() (*interface{}, bool)` + +GetScopeOk returns a tuple with the Scope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScope + +`func (o *POSTLinks201ResponseDataAttributes) SetScope(v interface{})` + +SetScope sets Scope field to given value. + + +### SetScopeNil + +`func (o *POSTLinks201ResponseDataAttributes) SetScopeNil(b bool)` + + SetScopeNil sets the value for Scope to be an explicit nil + +### UnsetScope +`func (o *POSTLinks201ResponseDataAttributes) UnsetScope()` + +UnsetScope ensures that no value is present for Scope, not even an explicit nil +### GetStartsAt + +`func (o *POSTLinks201ResponseDataAttributes) GetStartsAt() interface{}` + +GetStartsAt returns the StartsAt field if non-nil, zero value otherwise. + +### GetStartsAtOk + +`func (o *POSTLinks201ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool)` + +GetStartsAtOk returns a tuple with the StartsAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartsAt + +`func (o *POSTLinks201ResponseDataAttributes) SetStartsAt(v interface{})` + +SetStartsAt sets StartsAt field to given value. + +### HasStartsAt + +`func (o *POSTLinks201ResponseDataAttributes) HasStartsAt() bool` + +HasStartsAt returns a boolean if a field has been set. + +### SetStartsAtNil + +`func (o *POSTLinks201ResponseDataAttributes) SetStartsAtNil(b bool)` + + SetStartsAtNil sets the value for StartsAt to be an explicit nil + +### UnsetStartsAt +`func (o *POSTLinks201ResponseDataAttributes) UnsetStartsAt()` + +UnsetStartsAt ensures that no value is present for StartsAt, not even an explicit nil +### GetExpiresAt + +`func (o *POSTLinks201ResponseDataAttributes) GetExpiresAt() interface{}` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *POSTLinks201ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *POSTLinks201ResponseDataAttributes) SetExpiresAt(v interface{})` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *POSTLinks201ResponseDataAttributes) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### SetExpiresAtNil + +`func (o *POSTLinks201ResponseDataAttributes) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *POSTLinks201ResponseDataAttributes) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetDomain + +`func (o *POSTLinks201ResponseDataAttributes) GetDomain() interface{}` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *POSTLinks201ResponseDataAttributes) GetDomainOk() (*interface{}, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *POSTLinks201ResponseDataAttributes) SetDomain(v interface{})` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *POSTLinks201ResponseDataAttributes) HasDomain() bool` + +HasDomain returns a boolean if a field has been set. + +### SetDomainNil + +`func (o *POSTLinks201ResponseDataAttributes) SetDomainNil(b bool)` + + SetDomainNil sets the value for Domain to be an explicit nil + +### UnsetDomain +`func (o *POSTLinks201ResponseDataAttributes) UnsetDomain()` + +UnsetDomain ensures that no value is present for Domain, not even an explicit nil +### GetItemType + +`func (o *POSTLinks201ResponseDataAttributes) GetItemType() interface{}` + +GetItemType returns the ItemType field if non-nil, zero value otherwise. + +### GetItemTypeOk + +`func (o *POSTLinks201ResponseDataAttributes) GetItemTypeOk() (*interface{}, bool)` + +GetItemTypeOk returns a tuple with the ItemType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItemType + +`func (o *POSTLinks201ResponseDataAttributes) SetItemType(v interface{})` + +SetItemType sets ItemType field to given value. + +### HasItemType + +`func (o *POSTLinks201ResponseDataAttributes) HasItemType() bool` + +HasItemType returns a boolean if a field has been set. + +### SetItemTypeNil + +`func (o *POSTLinks201ResponseDataAttributes) SetItemTypeNil(b bool)` + + SetItemTypeNil sets the value for ItemType to be an explicit nil + +### UnsetItemType +`func (o *POSTLinks201ResponseDataAttributes) UnsetItemType()` + +UnsetItemType ensures that no value is present for ItemType, not even an explicit nil +### GetParams + +`func (o *POSTLinks201ResponseDataAttributes) GetParams() interface{}` + +GetParams returns the Params field if non-nil, zero value otherwise. + +### GetParamsOk + +`func (o *POSTLinks201ResponseDataAttributes) GetParamsOk() (*interface{}, bool)` + +GetParamsOk returns a tuple with the Params field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParams + +`func (o *POSTLinks201ResponseDataAttributes) SetParams(v interface{})` + +SetParams sets Params field to given value. + +### HasParams + +`func (o *POSTLinks201ResponseDataAttributes) HasParams() bool` + +HasParams returns a boolean if a field has been set. + +### SetParamsNil + +`func (o *POSTLinks201ResponseDataAttributes) SetParamsNil(b bool)` + + SetParamsNil sets the value for Params to be an explicit nil + +### UnsetParams +`func (o *POSTLinks201ResponseDataAttributes) UnsetParams()` + +UnsetParams ensures that no value is present for Params, not even an explicit nil +### GetDisable + +`func (o *POSTLinks201ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *POSTLinks201ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *POSTLinks201ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *POSTLinks201ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *POSTLinks201ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *POSTLinks201ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *POSTLinks201ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *POSTLinks201ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *POSTLinks201ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *POSTLinks201ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *POSTLinks201ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *POSTLinks201ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil +### GetReference + +`func (o *POSTLinks201ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *POSTLinks201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *POSTLinks201ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *POSTLinks201ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *POSTLinks201ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *POSTLinks201ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *POSTLinks201ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *POSTLinks201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *POSTLinks201ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *POSTLinks201ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *POSTLinks201ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *POSTLinks201ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *POSTLinks201ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *POSTLinks201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *POSTLinks201ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *POSTLinks201ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *POSTLinks201ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *POSTLinks201ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTLinks201ResponseDataRelationships.md b/api/docs/POSTLinks201ResponseDataRelationships.md new file mode 100644 index 00000000..0c08c5a1 --- /dev/null +++ b/api/docs/POSTLinks201ResponseDataRelationships.md @@ -0,0 +1,82 @@ +# POSTLinks201ResponseDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Item** | Pointer to [**POSTLineItems201ResponseDataRelationshipsItem**](POSTLineItems201ResponseDataRelationshipsItem.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] + +## Methods + +### NewPOSTLinks201ResponseDataRelationships + +`func NewPOSTLinks201ResponseDataRelationships() *POSTLinks201ResponseDataRelationships` + +NewPOSTLinks201ResponseDataRelationships instantiates a new POSTLinks201ResponseDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTLinks201ResponseDataRelationshipsWithDefaults + +`func NewPOSTLinks201ResponseDataRelationshipsWithDefaults() *POSTLinks201ResponseDataRelationships` + +NewPOSTLinks201ResponseDataRelationshipsWithDefaults instantiates a new POSTLinks201ResponseDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetItem + +`func (o *POSTLinks201ResponseDataRelationships) GetItem() POSTLineItems201ResponseDataRelationshipsItem` + +GetItem returns the Item field if non-nil, zero value otherwise. + +### GetItemOk + +`func (o *POSTLinks201ResponseDataRelationships) GetItemOk() (*POSTLineItems201ResponseDataRelationshipsItem, bool)` + +GetItemOk returns a tuple with the Item field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItem + +`func (o *POSTLinks201ResponseDataRelationships) SetItem(v POSTLineItems201ResponseDataRelationshipsItem)` + +SetItem sets Item field to given value. + +### HasItem + +`func (o *POSTLinks201ResponseDataRelationships) HasItem() bool` + +HasItem returns a boolean if a field has been set. + +### GetEvents + +`func (o *POSTLinks201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *POSTLinks201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *POSTLinks201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *POSTLinks201ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTManualGateways201ResponseDataAttributes.md b/api/docs/POSTManualGateways201ResponseDataAttributes.md index 7786aa26..0be897a9 100644 --- a/api/docs/POSTManualGateways201ResponseDataAttributes.md +++ b/api/docs/POSTManualGateways201ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The payment gateway's internal name. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTManualGateways201ResponseDataRelationships.md b/api/docs/POSTManualGateways201ResponseDataRelationships.md index 79a9554d..718bda4d 100644 --- a/api/docs/POSTManualGateways201ResponseDataRelationships.md +++ b/api/docs/POSTManualGateways201ResponseDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods**](POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -50,6 +51,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTManualGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTManualGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTManualGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTManualGateways201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTManualTaxCalculators201ResponseDataAttributes.md b/api/docs/POSTManualTaxCalculators201ResponseDataAttributes.md index a76dd0fa..766c256e 100644 --- a/api/docs/POSTManualTaxCalculators201ResponseDataAttributes.md +++ b/api/docs/POSTManualTaxCalculators201ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The tax calculator's internal name. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTManualTaxCalculators201ResponseDataRelationships.md b/api/docs/POSTManualTaxCalculators201ResponseDataRelationships.md index 70f3a4cb..a753ff70 100644 --- a/api/docs/POSTManualTaxCalculators201ResponseDataRelationships.md +++ b/api/docs/POSTManualTaxCalculators201ResponseDataRelationships.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Markets** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsMarkets**](POSTAvalaraAccounts201ResponseDataRelationshipsMarkets.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] **TaxRules** | Pointer to [**POSTManualTaxCalculators201ResponseDataRelationshipsTaxRules**](POSTManualTaxCalculators201ResponseDataRelationshipsTaxRules.md) | | [optional] ## Methods @@ -54,20 +55,20 @@ HasMarkets returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTManualTaxCalculators201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTManualTaxCalculators201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTManualTaxCalculators201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTManualTaxCalculators201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTManualTaxCalculators201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTManualTaxCalculators201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -77,6 +78,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTManualTaxCalculators201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTManualTaxCalculators201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTManualTaxCalculators201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTManualTaxCalculators201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetTaxRules `func (o *POSTManualTaxCalculators201ResponseDataRelationships) GetTaxRules() POSTManualTaxCalculators201ResponseDataRelationshipsTaxRules` diff --git a/api/docs/POSTMarkets201ResponseDataAttributes.md b/api/docs/POSTMarkets201ResponseDataAttributes.md index 0e137eac..9d954591 100644 --- a/api/docs/POSTMarkets201ResponseDataAttributes.md +++ b/api/docs/POSTMarkets201ResponseDataAttributes.md @@ -4,13 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **interface{}** | The market's internal name | -**FacebookPixelId** | Pointer to **interface{}** | The Facebook Pixed ID | [optional] -**CheckoutUrl** | Pointer to **interface{}** | The checkout URL for this market | [optional] +**Name** | **interface{}** | The market's internal name. | +**Code** | Pointer to **interface{}** | A string that you can use to identify the market (must be unique within the environment). | [optional] +**FacebookPixelId** | Pointer to **interface{}** | The Facebook Pixed ID. | [optional] +**CheckoutUrl** | Pointer to **interface{}** | The checkout URL for this market. | [optional] **ExternalPricesUrl** | Pointer to **interface{}** | The URL used to overwrite prices by an external source. | [optional] **ExternalOrderValidationUrl** | Pointer to **interface{}** | The URL used to validate orders by an external source. | [optional] +**ShippingCostCutoff** | Pointer to **interface{}** | When specified indicates the maximum number of shipping line items with cost that will be added to an order. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -62,6 +66,41 @@ SetName sets Name field to given value. `func (o *POSTMarkets201ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCode + +`func (o *POSTMarkets201ResponseDataAttributes) GetCode() interface{}` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *POSTMarkets201ResponseDataAttributes) GetCodeOk() (*interface{}, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *POSTMarkets201ResponseDataAttributes) SetCode(v interface{})` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *POSTMarkets201ResponseDataAttributes) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### SetCodeNil + +`func (o *POSTMarkets201ResponseDataAttributes) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *POSTMarkets201ResponseDataAttributes) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil ### GetFacebookPixelId `func (o *POSTMarkets201ResponseDataAttributes) GetFacebookPixelId() interface{}` @@ -202,6 +241,111 @@ HasExternalOrderValidationUrl returns a boolean if a field has been set. `func (o *POSTMarkets201ResponseDataAttributes) UnsetExternalOrderValidationUrl()` UnsetExternalOrderValidationUrl ensures that no value is present for ExternalOrderValidationUrl, not even an explicit nil +### GetShippingCostCutoff + +`func (o *POSTMarkets201ResponseDataAttributes) GetShippingCostCutoff() interface{}` + +GetShippingCostCutoff returns the ShippingCostCutoff field if non-nil, zero value otherwise. + +### GetShippingCostCutoffOk + +`func (o *POSTMarkets201ResponseDataAttributes) GetShippingCostCutoffOk() (*interface{}, bool)` + +GetShippingCostCutoffOk returns a tuple with the ShippingCostCutoff field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingCostCutoff + +`func (o *POSTMarkets201ResponseDataAttributes) SetShippingCostCutoff(v interface{})` + +SetShippingCostCutoff sets ShippingCostCutoff field to given value. + +### HasShippingCostCutoff + +`func (o *POSTMarkets201ResponseDataAttributes) HasShippingCostCutoff() bool` + +HasShippingCostCutoff returns a boolean if a field has been set. + +### SetShippingCostCutoffNil + +`func (o *POSTMarkets201ResponseDataAttributes) SetShippingCostCutoffNil(b bool)` + + SetShippingCostCutoffNil sets the value for ShippingCostCutoff to be an explicit nil + +### UnsetShippingCostCutoff +`func (o *POSTMarkets201ResponseDataAttributes) UnsetShippingCostCutoff()` + +UnsetShippingCostCutoff ensures that no value is present for ShippingCostCutoff, not even an explicit nil +### GetDisable + +`func (o *POSTMarkets201ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *POSTMarkets201ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *POSTMarkets201ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *POSTMarkets201ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *POSTMarkets201ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *POSTMarkets201ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *POSTMarkets201ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *POSTMarkets201ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *POSTMarkets201ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *POSTMarkets201ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *POSTMarkets201ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *POSTMarkets201ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil ### GetReference `func (o *POSTMarkets201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTMarkets201ResponseDataRelationships.md b/api/docs/POSTMarkets201ResponseDataRelationships.md index 42ddd18a..b7b7c3fe 100644 --- a/api/docs/POSTMarkets201ResponseDataRelationships.md +++ b/api/docs/POSTMarkets201ResponseDataRelationships.md @@ -6,11 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Merchant** | Pointer to [**POSTMarkets201ResponseDataRelationshipsMerchant**](POSTMarkets201ResponseDataRelationshipsMerchant.md) | | [optional] **PriceList** | Pointer to [**POSTMarkets201ResponseDataRelationshipsPriceList**](POSTMarkets201ResponseDataRelationshipsPriceList.md) | | [optional] +**BasePriceList** | Pointer to [**POSTMarkets201ResponseDataRelationshipsBasePriceList**](POSTMarkets201ResponseDataRelationshipsBasePriceList.md) | | [optional] **InventoryModel** | Pointer to [**POSTInventoryReturnLocations201ResponseDataRelationshipsInventoryModel**](POSTInventoryReturnLocations201ResponseDataRelationshipsInventoryModel.md) | | [optional] **SubscriptionModel** | Pointer to [**POSTMarkets201ResponseDataRelationshipsSubscriptionModel**](POSTMarkets201ResponseDataRelationshipsSubscriptionModel.md) | | [optional] **TaxCalculator** | Pointer to [**POSTMarkets201ResponseDataRelationshipsTaxCalculator**](POSTMarkets201ResponseDataRelationshipsTaxCalculator.md) | | [optional] **CustomerGroup** | Pointer to [**POSTCustomers201ResponseDataRelationshipsCustomerGroup**](POSTCustomers201ResponseDataRelationshipsCustomerGroup.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Geocoder** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoder**](POSTAddresses201ResponseDataRelationshipsGeocoder.md) | | [optional] +**PriceListSchedulers** | Pointer to [**POSTMarkets201ResponseDataRelationshipsPriceListSchedulers**](POSTMarkets201ResponseDataRelationshipsPriceListSchedulers.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -81,6 +85,31 @@ SetPriceList sets PriceList field to given value. HasPriceList returns a boolean if a field has been set. +### GetBasePriceList + +`func (o *POSTMarkets201ResponseDataRelationships) GetBasePriceList() POSTMarkets201ResponseDataRelationshipsBasePriceList` + +GetBasePriceList returns the BasePriceList field if non-nil, zero value otherwise. + +### GetBasePriceListOk + +`func (o *POSTMarkets201ResponseDataRelationships) GetBasePriceListOk() (*POSTMarkets201ResponseDataRelationshipsBasePriceList, bool)` + +GetBasePriceListOk returns a tuple with the BasePriceList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBasePriceList + +`func (o *POSTMarkets201ResponseDataRelationships) SetBasePriceList(v POSTMarkets201ResponseDataRelationshipsBasePriceList)` + +SetBasePriceList sets BasePriceList field to given value. + +### HasBasePriceList + +`func (o *POSTMarkets201ResponseDataRelationships) HasBasePriceList() bool` + +HasBasePriceList returns a boolean if a field has been set. + ### GetInventoryModel `func (o *POSTMarkets201ResponseDataRelationships) GetInventoryModel() POSTInventoryReturnLocations201ResponseDataRelationshipsInventoryModel` @@ -181,22 +210,72 @@ SetCustomerGroup sets CustomerGroup field to given value. HasCustomerGroup returns a boolean if a field has been set. +### GetGeocoder + +`func (o *POSTMarkets201ResponseDataRelationships) GetGeocoder() POSTAddresses201ResponseDataRelationshipsGeocoder` + +GetGeocoder returns the Geocoder field if non-nil, zero value otherwise. + +### GetGeocoderOk + +`func (o *POSTMarkets201ResponseDataRelationships) GetGeocoderOk() (*POSTAddresses201ResponseDataRelationshipsGeocoder, bool)` + +GetGeocoderOk returns a tuple with the Geocoder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGeocoder + +`func (o *POSTMarkets201ResponseDataRelationships) SetGeocoder(v POSTAddresses201ResponseDataRelationshipsGeocoder)` + +SetGeocoder sets Geocoder field to given value. + +### HasGeocoder + +`func (o *POSTMarkets201ResponseDataRelationships) HasGeocoder() bool` + +HasGeocoder returns a boolean if a field has been set. + +### GetPriceListSchedulers + +`func (o *POSTMarkets201ResponseDataRelationships) GetPriceListSchedulers() POSTMarkets201ResponseDataRelationshipsPriceListSchedulers` + +GetPriceListSchedulers returns the PriceListSchedulers field if non-nil, zero value otherwise. + +### GetPriceListSchedulersOk + +`func (o *POSTMarkets201ResponseDataRelationships) GetPriceListSchedulersOk() (*POSTMarkets201ResponseDataRelationshipsPriceListSchedulers, bool)` + +GetPriceListSchedulersOk returns a tuple with the PriceListSchedulers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriceListSchedulers + +`func (o *POSTMarkets201ResponseDataRelationships) SetPriceListSchedulers(v POSTMarkets201ResponseDataRelationshipsPriceListSchedulers)` + +SetPriceListSchedulers sets PriceListSchedulers field to given value. + +### HasPriceListSchedulers + +`func (o *POSTMarkets201ResponseDataRelationships) HasPriceListSchedulers() bool` + +HasPriceListSchedulers returns a boolean if a field has been set. + ### GetAttachments -`func (o *POSTMarkets201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTMarkets201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTMarkets201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTMarkets201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTMarkets201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTMarkets201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -206,6 +285,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTMarkets201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTMarkets201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTMarkets201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTMarkets201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTMarkets201ResponseDataRelationshipsBasePriceList.md b/api/docs/POSTMarkets201ResponseDataRelationshipsBasePriceList.md new file mode 100644 index 00000000..48dcec8d --- /dev/null +++ b/api/docs/POSTMarkets201ResponseDataRelationshipsBasePriceList.md @@ -0,0 +1,82 @@ +# POSTMarkets201ResponseDataRelationshipsBasePriceList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTMarkets201ResponseDataRelationshipsBasePriceListData**](POSTMarkets201ResponseDataRelationshipsBasePriceListData.md) | | [optional] + +## Methods + +### NewPOSTMarkets201ResponseDataRelationshipsBasePriceList + +`func NewPOSTMarkets201ResponseDataRelationshipsBasePriceList() *POSTMarkets201ResponseDataRelationshipsBasePriceList` + +NewPOSTMarkets201ResponseDataRelationshipsBasePriceList instantiates a new POSTMarkets201ResponseDataRelationshipsBasePriceList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTMarkets201ResponseDataRelationshipsBasePriceListWithDefaults + +`func NewPOSTMarkets201ResponseDataRelationshipsBasePriceListWithDefaults() *POSTMarkets201ResponseDataRelationshipsBasePriceList` + +NewPOSTMarkets201ResponseDataRelationshipsBasePriceListWithDefaults instantiates a new POSTMarkets201ResponseDataRelationshipsBasePriceList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceList) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceList) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceList) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceList) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceList) GetData() POSTMarkets201ResponseDataRelationshipsBasePriceListData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceList) GetDataOk() (*POSTMarkets201ResponseDataRelationshipsBasePriceListData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceList) SetData(v POSTMarkets201ResponseDataRelationshipsBasePriceListData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceList) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTMarkets201ResponseDataRelationshipsBasePriceListData.md b/api/docs/POSTMarkets201ResponseDataRelationshipsBasePriceListData.md new file mode 100644 index 00000000..70d76efd --- /dev/null +++ b/api/docs/POSTMarkets201ResponseDataRelationshipsBasePriceListData.md @@ -0,0 +1,102 @@ +# POSTMarkets201ResponseDataRelationshipsBasePriceListData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTMarkets201ResponseDataRelationshipsBasePriceListData + +`func NewPOSTMarkets201ResponseDataRelationshipsBasePriceListData() *POSTMarkets201ResponseDataRelationshipsBasePriceListData` + +NewPOSTMarkets201ResponseDataRelationshipsBasePriceListData instantiates a new POSTMarkets201ResponseDataRelationshipsBasePriceListData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTMarkets201ResponseDataRelationshipsBasePriceListDataWithDefaults + +`func NewPOSTMarkets201ResponseDataRelationshipsBasePriceListDataWithDefaults() *POSTMarkets201ResponseDataRelationshipsBasePriceListData` + +NewPOSTMarkets201ResponseDataRelationshipsBasePriceListDataWithDefaults instantiates a new POSTMarkets201ResponseDataRelationshipsBasePriceListData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTMarkets201ResponseDataRelationshipsPriceListSchedulers.md b/api/docs/POSTMarkets201ResponseDataRelationshipsPriceListSchedulers.md new file mode 100644 index 00000000..4f35fa0f --- /dev/null +++ b/api/docs/POSTMarkets201ResponseDataRelationshipsPriceListSchedulers.md @@ -0,0 +1,82 @@ +# POSTMarkets201ResponseDataRelationshipsPriceListSchedulers + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData**](POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData.md) | | [optional] + +## Methods + +### NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulers + +`func NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulers() *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers` + +NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulers instantiates a new POSTMarkets201ResponseDataRelationshipsPriceListSchedulers object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulersWithDefaults + +`func NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulersWithDefaults() *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers` + +NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulersWithDefaults instantiates a new POSTMarkets201ResponseDataRelationshipsPriceListSchedulers object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) GetData() POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) GetDataOk() (*POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) SetData(v POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData.md b/api/docs/POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData.md new file mode 100644 index 00000000..f1261174 --- /dev/null +++ b/api/docs/POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData.md @@ -0,0 +1,102 @@ +# POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulersData + +`func NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulersData() *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData` + +NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulersData instantiates a new POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulersDataWithDefaults + +`func NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulersDataWithDefaults() *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData` + +NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulersDataWithDefaults instantiates a new POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTMerchants201ResponseDataAttributes.md b/api/docs/POSTMerchants201ResponseDataAttributes.md index 44ea60ef..43891a7f 100644 --- a/api/docs/POSTMerchants201ResponseDataAttributes.md +++ b/api/docs/POSTMerchants201ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The merchant's internal name. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTMerchants201ResponseDataRelationships.md b/api/docs/POSTMerchants201ResponseDataRelationships.md index e51074f3..c1708962 100644 --- a/api/docs/POSTMerchants201ResponseDataRelationships.md +++ b/api/docs/POSTMerchants201ResponseDataRelationships.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Address** | Pointer to [**POSTCustomerAddresses201ResponseDataRelationshipsAddress**](POSTCustomerAddresses201ResponseDataRelationshipsAddress.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -53,20 +54,20 @@ HasAddress returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTMerchants201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTMerchants201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTMerchants201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTMerchants201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTMerchants201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTMerchants201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -76,6 +77,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTMerchants201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTMerchants201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTMerchants201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTMerchants201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTOrderAmountPromotionRules201ResponseData.md b/api/docs/POSTOrderAmountPromotionRules201ResponseData.md index 1f3b238e..e56d4566 100644 --- a/api/docs/POSTOrderAmountPromotionRules201ResponseData.md +++ b/api/docs/POSTOrderAmountPromotionRules201ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**POSTOrderAmountPromotionRules201ResponseDataAttributes**](POSTOrderAmountPromotionRules201ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTOrderAmountPromotionRules201ResponseDataRelationships**](POSTOrderAmountPromotionRules201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTCustomPromotionRules201ResponseDataRelationships**](POSTCustomPromotionRules201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *POSTOrderAmountPromotionRules201ResponseData) GetRelationships() POSTOrderAmountPromotionRules201ResponseDataRelationships` +`func (o *POSTOrderAmountPromotionRules201ResponseData) GetRelationships() POSTCustomPromotionRules201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *POSTOrderAmountPromotionRules201ResponseData) GetRelationshipsOk() (*POSTOrderAmountPromotionRules201ResponseDataRelationships, bool)` +`func (o *POSTOrderAmountPromotionRules201ResponseData) GetRelationshipsOk() (*POSTCustomPromotionRules201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *POSTOrderAmountPromotionRules201ResponseData) SetRelationships(v POSTOrderAmountPromotionRules201ResponseDataRelationships)` +`func (o *POSTOrderAmountPromotionRules201ResponseData) SetRelationships(v POSTCustomPromotionRules201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/POSTOrderAmountPromotionRules201ResponseDataAttributes.md b/api/docs/POSTOrderAmountPromotionRules201ResponseDataAttributes.md index 7f120c6c..8b3611cd 100644 --- a/api/docs/POSTOrderAmountPromotionRules201ResponseDataAttributes.md +++ b/api/docs/POSTOrderAmountPromotionRules201ResponseDataAttributes.md @@ -5,9 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **OrderAmountCents** | Pointer to **interface{}** | Apply the promotion only when order is over this amount, in cents. | [optional] +**UseSubtotal** | Pointer to **interface{}** | Send this attribute if you want to compare the specified amount with order's subtotal (excluding discounts, if any). | [optional] ## Methods @@ -168,6 +169,41 @@ HasOrderAmountCents returns a boolean if a field has been set. `func (o *POSTOrderAmountPromotionRules201ResponseDataAttributes) UnsetOrderAmountCents()` UnsetOrderAmountCents ensures that no value is present for OrderAmountCents, not even an explicit nil +### GetUseSubtotal + +`func (o *POSTOrderAmountPromotionRules201ResponseDataAttributes) GetUseSubtotal() interface{}` + +GetUseSubtotal returns the UseSubtotal field if non-nil, zero value otherwise. + +### GetUseSubtotalOk + +`func (o *POSTOrderAmountPromotionRules201ResponseDataAttributes) GetUseSubtotalOk() (*interface{}, bool)` + +GetUseSubtotalOk returns a tuple with the UseSubtotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseSubtotal + +`func (o *POSTOrderAmountPromotionRules201ResponseDataAttributes) SetUseSubtotal(v interface{})` + +SetUseSubtotal sets UseSubtotal field to given value. + +### HasUseSubtotal + +`func (o *POSTOrderAmountPromotionRules201ResponseDataAttributes) HasUseSubtotal() bool` + +HasUseSubtotal returns a boolean if a field has been set. + +### SetUseSubtotalNil + +`func (o *POSTOrderAmountPromotionRules201ResponseDataAttributes) SetUseSubtotalNil(b bool)` + + SetUseSubtotalNil sets the value for UseSubtotal to be an explicit nil + +### UnsetUseSubtotal +`func (o *POSTOrderAmountPromotionRules201ResponseDataAttributes) UnsetUseSubtotal()` + +UnsetUseSubtotal ensures that no value is present for UseSubtotal, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTOrderAmountPromotionRules201ResponseDataRelationships.md b/api/docs/POSTOrderAmountPromotionRules201ResponseDataRelationships.md deleted file mode 100644 index 706fecaa..00000000 --- a/api/docs/POSTOrderAmountPromotionRules201ResponseDataRelationships.md +++ /dev/null @@ -1,56 +0,0 @@ -# POSTOrderAmountPromotionRules201ResponseDataRelationships - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Promotion** | Pointer to [**POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion**](POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion.md) | | [optional] - -## Methods - -### NewPOSTOrderAmountPromotionRules201ResponseDataRelationships - -`func NewPOSTOrderAmountPromotionRules201ResponseDataRelationships() *POSTOrderAmountPromotionRules201ResponseDataRelationships` - -NewPOSTOrderAmountPromotionRules201ResponseDataRelationships instantiates a new POSTOrderAmountPromotionRules201ResponseDataRelationships object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPOSTOrderAmountPromotionRules201ResponseDataRelationshipsWithDefaults - -`func NewPOSTOrderAmountPromotionRules201ResponseDataRelationshipsWithDefaults() *POSTOrderAmountPromotionRules201ResponseDataRelationships` - -NewPOSTOrderAmountPromotionRules201ResponseDataRelationshipsWithDefaults instantiates a new POSTOrderAmountPromotionRules201ResponseDataRelationships object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetPromotion - -`func (o *POSTOrderAmountPromotionRules201ResponseDataRelationships) GetPromotion() POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion` - -GetPromotion returns the Promotion field if non-nil, zero value otherwise. - -### GetPromotionOk - -`func (o *POSTOrderAmountPromotionRules201ResponseDataRelationships) GetPromotionOk() (*POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion, bool)` - -GetPromotionOk returns a tuple with the Promotion field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPromotion - -`func (o *POSTOrderAmountPromotionRules201ResponseDataRelationships) SetPromotion(v POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion)` - -SetPromotion sets Promotion field to given value. - -### HasPromotion - -`func (o *POSTOrderAmountPromotionRules201ResponseDataRelationships) HasPromotion() bool` - -HasPromotion returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/POSTOrderCopies201ResponseDataAttributes.md b/api/docs/POSTOrderCopies201ResponseDataAttributes.md index b8e4e112..d756668d 100644 --- a/api/docs/POSTOrderCopies201ResponseDataAttributes.md +++ b/api/docs/POSTOrderCopies201ResponseDataAttributes.md @@ -7,9 +7,11 @@ Name | Type | Description | Notes **PlaceTargetOrder** | Pointer to **interface{}** | Indicates if the target order must be placed upon copy. | [optional] **ReuseWallet** | Pointer to **interface{}** | Indicates if the payment source within the source order customer's wallet must be copied. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **CancelSourceOrder** | Pointer to **interface{}** | Indicates if the source order must be cancelled upon copy. | [optional] +**ApplyPromotions** | Pointer to **interface{}** | Indicates if promotions got applied upon copy. | [optional] +**IgnoreInvalidCoupon** | Pointer to **interface{}** | Indicates to ignore invalid coupon code during copy. | [optional] ## Methods @@ -240,6 +242,76 @@ HasCancelSourceOrder returns a boolean if a field has been set. `func (o *POSTOrderCopies201ResponseDataAttributes) UnsetCancelSourceOrder()` UnsetCancelSourceOrder ensures that no value is present for CancelSourceOrder, not even an explicit nil +### GetApplyPromotions + +`func (o *POSTOrderCopies201ResponseDataAttributes) GetApplyPromotions() interface{}` + +GetApplyPromotions returns the ApplyPromotions field if non-nil, zero value otherwise. + +### GetApplyPromotionsOk + +`func (o *POSTOrderCopies201ResponseDataAttributes) GetApplyPromotionsOk() (*interface{}, bool)` + +GetApplyPromotionsOk returns a tuple with the ApplyPromotions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplyPromotions + +`func (o *POSTOrderCopies201ResponseDataAttributes) SetApplyPromotions(v interface{})` + +SetApplyPromotions sets ApplyPromotions field to given value. + +### HasApplyPromotions + +`func (o *POSTOrderCopies201ResponseDataAttributes) HasApplyPromotions() bool` + +HasApplyPromotions returns a boolean if a field has been set. + +### SetApplyPromotionsNil + +`func (o *POSTOrderCopies201ResponseDataAttributes) SetApplyPromotionsNil(b bool)` + + SetApplyPromotionsNil sets the value for ApplyPromotions to be an explicit nil + +### UnsetApplyPromotions +`func (o *POSTOrderCopies201ResponseDataAttributes) UnsetApplyPromotions()` + +UnsetApplyPromotions ensures that no value is present for ApplyPromotions, not even an explicit nil +### GetIgnoreInvalidCoupon + +`func (o *POSTOrderCopies201ResponseDataAttributes) GetIgnoreInvalidCoupon() interface{}` + +GetIgnoreInvalidCoupon returns the IgnoreInvalidCoupon field if non-nil, zero value otherwise. + +### GetIgnoreInvalidCouponOk + +`func (o *POSTOrderCopies201ResponseDataAttributes) GetIgnoreInvalidCouponOk() (*interface{}, bool)` + +GetIgnoreInvalidCouponOk returns a tuple with the IgnoreInvalidCoupon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIgnoreInvalidCoupon + +`func (o *POSTOrderCopies201ResponseDataAttributes) SetIgnoreInvalidCoupon(v interface{})` + +SetIgnoreInvalidCoupon sets IgnoreInvalidCoupon field to given value. + +### HasIgnoreInvalidCoupon + +`func (o *POSTOrderCopies201ResponseDataAttributes) HasIgnoreInvalidCoupon() bool` + +HasIgnoreInvalidCoupon returns a boolean if a field has been set. + +### SetIgnoreInvalidCouponNil + +`func (o *POSTOrderCopies201ResponseDataAttributes) SetIgnoreInvalidCouponNil(b bool)` + + SetIgnoreInvalidCouponNil sets the value for IgnoreInvalidCoupon to be an explicit nil + +### UnsetIgnoreInvalidCoupon +`func (o *POSTOrderCopies201ResponseDataAttributes) UnsetIgnoreInvalidCoupon()` + +UnsetIgnoreInvalidCoupon ensures that no value is present for IgnoreInvalidCoupon, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTOrderCopies201ResponseDataRelationships.md b/api/docs/POSTOrderCopies201ResponseDataRelationships.md index d98f3c3f..6f9a7963 100644 --- a/api/docs/POSTOrderCopies201ResponseDataRelationships.md +++ b/api/docs/POSTOrderCopies201ResponseDataRelationships.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SourceOrder** | Pointer to [**POSTOrderCopies201ResponseDataRelationshipsSourceOrder**](POSTOrderCopies201ResponseDataRelationshipsSourceOrder.md) | | [optional] **TargetOrder** | Pointer to [**POSTOrderCopies201ResponseDataRelationshipsTargetOrder**](POSTOrderCopies201ResponseDataRelationshipsTargetOrder.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] **OrderSubscription** | Pointer to [**POSTOrderCopies201ResponseDataRelationshipsOrderSubscription**](POSTOrderCopies201ResponseDataRelationshipsOrderSubscription.md) | | [optional] ## Methods @@ -80,20 +80,20 @@ HasTargetOrder returns a boolean if a field has been set. ### GetEvents -`func (o *POSTOrderCopies201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` +`func (o *POSTOrderCopies201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *POSTOrderCopies201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` +`func (o *POSTOrderCopies201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *POSTOrderCopies201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` +`func (o *POSTOrderCopies201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` SetEvents sets Events field to given value. diff --git a/api/docs/POSTOrderSubscriptionItems201ResponseDataAttributes.md b/api/docs/POSTOrderSubscriptionItems201ResponseDataAttributes.md index e92b3490..b02b2a4b 100644 --- a/api/docs/POSTOrderSubscriptionItems201ResponseDataAttributes.md +++ b/api/docs/POSTOrderSubscriptionItems201ResponseDataAttributes.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **Quantity** | **interface{}** | The subscription item quantity. | **UnitAmountCents** | Pointer to **interface{}** | The unit amount of the subscription item, in cents. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTOrderSubscriptionItems201ResponseDataRelationships.md b/api/docs/POSTOrderSubscriptionItems201ResponseDataRelationships.md index 121807b4..6179e617 100644 --- a/api/docs/POSTOrderSubscriptionItems201ResponseDataRelationships.md +++ b/api/docs/POSTOrderSubscriptionItems201ResponseDataRelationships.md @@ -6,6 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **OrderSubscription** | Pointer to [**POSTOrderCopies201ResponseDataRelationshipsOrderSubscription**](POSTOrderCopies201ResponseDataRelationshipsOrderSubscription.md) | | [optional] **Item** | Pointer to [**POSTLineItems201ResponseDataRelationshipsItem**](POSTLineItems201ResponseDataRelationshipsItem.md) | | [optional] +**Sku** | Pointer to [**POSTInStockSubscriptions201ResponseDataRelationshipsSku**](POSTInStockSubscriptions201ResponseDataRelationshipsSku.md) | | [optional] +**Bundle** | Pointer to [**POSTLineItems201ResponseDataRelationshipsBundle**](POSTLineItems201ResponseDataRelationshipsBundle.md) | | [optional] +**Adjustment** | Pointer to [**POSTLineItems201ResponseDataRelationshipsAdjustment**](POSTLineItems201ResponseDataRelationshipsAdjustment.md) | | [optional] +**SourceLineItem** | Pointer to [**POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem**](POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem.md) | | [optional] ## Methods @@ -76,6 +80,106 @@ SetItem sets Item field to given value. HasItem returns a boolean if a field has been set. +### GetSku + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) GetSku() POSTInStockSubscriptions201ResponseDataRelationshipsSku` + +GetSku returns the Sku field if non-nil, zero value otherwise. + +### GetSkuOk + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) GetSkuOk() (*POSTInStockSubscriptions201ResponseDataRelationshipsSku, bool)` + +GetSkuOk returns a tuple with the Sku field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSku + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) SetSku(v POSTInStockSubscriptions201ResponseDataRelationshipsSku)` + +SetSku sets Sku field to given value. + +### HasSku + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) HasSku() bool` + +HasSku returns a boolean if a field has been set. + +### GetBundle + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) GetBundle() POSTLineItems201ResponseDataRelationshipsBundle` + +GetBundle returns the Bundle field if non-nil, zero value otherwise. + +### GetBundleOk + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) GetBundleOk() (*POSTLineItems201ResponseDataRelationshipsBundle, bool)` + +GetBundleOk returns a tuple with the Bundle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBundle + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) SetBundle(v POSTLineItems201ResponseDataRelationshipsBundle)` + +SetBundle sets Bundle field to given value. + +### HasBundle + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) HasBundle() bool` + +HasBundle returns a boolean if a field has been set. + +### GetAdjustment + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) GetAdjustment() POSTLineItems201ResponseDataRelationshipsAdjustment` + +GetAdjustment returns the Adjustment field if non-nil, zero value otherwise. + +### GetAdjustmentOk + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) GetAdjustmentOk() (*POSTLineItems201ResponseDataRelationshipsAdjustment, bool)` + +GetAdjustmentOk returns a tuple with the Adjustment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdjustment + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) SetAdjustment(v POSTLineItems201ResponseDataRelationshipsAdjustment)` + +SetAdjustment sets Adjustment field to given value. + +### HasAdjustment + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) HasAdjustment() bool` + +HasAdjustment returns a boolean if a field has been set. + +### GetSourceLineItem + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) GetSourceLineItem() POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem` + +GetSourceLineItem returns the SourceLineItem field if non-nil, zero value otherwise. + +### GetSourceLineItemOk + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) GetSourceLineItemOk() (*POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem, bool)` + +GetSourceLineItemOk returns a tuple with the SourceLineItem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceLineItem + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) SetSourceLineItem(v POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem)` + +SetSourceLineItem sets SourceLineItem field to given value. + +### HasSourceLineItem + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) HasSourceLineItem() bool` + +HasSourceLineItem returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem.md b/api/docs/POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem.md new file mode 100644 index 00000000..f8a719ad --- /dev/null +++ b/api/docs/POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem.md @@ -0,0 +1,82 @@ +# POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData**](POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData.md) | | [optional] + +## Methods + +### NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem + +`func NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem() *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem` + +NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem instantiates a new POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemWithDefaults + +`func NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemWithDefaults() *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem` + +NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemWithDefaults instantiates a new POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) GetData() POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) GetDataOk() (*POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) SetData(v POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData.md b/api/docs/POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData.md new file mode 100644 index 00000000..6eb91a9d --- /dev/null +++ b/api/docs/POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData.md @@ -0,0 +1,102 @@ +# POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData + +`func NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData() *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData` + +NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData instantiates a new POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemDataWithDefaults + +`func NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemDataWithDefaults() *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData` + +NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemDataWithDefaults instantiates a new POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTOrderSubscriptions201ResponseDataAttributes.md b/api/docs/POSTOrderSubscriptions201ResponseDataAttributes.md index f0bbe106..a406ce5d 100644 --- a/api/docs/POSTOrderSubscriptions201ResponseDataAttributes.md +++ b/api/docs/POSTOrderSubscriptions201ResponseDataAttributes.md @@ -6,11 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Frequency** | **interface{}** | The frequency of the subscription. Use one of the supported within 'hourly', 'daily', 'weekly', 'monthly', 'two-month', 'three-month', 'four-month', 'six-month', 'yearly', or provide your custom crontab expression (min unit is hour). Must be supported by existing associated subscription_model. | **ActivateBySourceOrder** | Pointer to **interface{}** | Indicates if the subscription will be activated considering the placed source order as its first run. | [optional] +**PlaceTargetOrder** | Pointer to **interface{}** | Indicates if the subscription created orders are automatically placed at the end of the copy. | [optional] +**RenewalAlertPeriod** | Pointer to **interface{}** | Indicates the number of hours the renewal alert will be triggered before the subscription next run. Must be included between 1 and 720 hours. | [optional] **StartsAt** | Pointer to **interface{}** | The activation date/time of this subscription. | [optional] **ExpiresAt** | Pointer to **interface{}** | The expiration date/time of this subscription (must be after starts_at). | [optional] -**Options** | Pointer to **interface{}** | The subscription options used to create the order (check order_factories for more information). For subscriptions the `place_target_order` is enabled by default, specify custom options to overwrite it. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -97,6 +98,76 @@ HasActivateBySourceOrder returns a boolean if a field has been set. `func (o *POSTOrderSubscriptions201ResponseDataAttributes) UnsetActivateBySourceOrder()` UnsetActivateBySourceOrder ensures that no value is present for ActivateBySourceOrder, not even an explicit nil +### GetPlaceTargetOrder + +`func (o *POSTOrderSubscriptions201ResponseDataAttributes) GetPlaceTargetOrder() interface{}` + +GetPlaceTargetOrder returns the PlaceTargetOrder field if non-nil, zero value otherwise. + +### GetPlaceTargetOrderOk + +`func (o *POSTOrderSubscriptions201ResponseDataAttributes) GetPlaceTargetOrderOk() (*interface{}, bool)` + +GetPlaceTargetOrderOk returns a tuple with the PlaceTargetOrder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlaceTargetOrder + +`func (o *POSTOrderSubscriptions201ResponseDataAttributes) SetPlaceTargetOrder(v interface{})` + +SetPlaceTargetOrder sets PlaceTargetOrder field to given value. + +### HasPlaceTargetOrder + +`func (o *POSTOrderSubscriptions201ResponseDataAttributes) HasPlaceTargetOrder() bool` + +HasPlaceTargetOrder returns a boolean if a field has been set. + +### SetPlaceTargetOrderNil + +`func (o *POSTOrderSubscriptions201ResponseDataAttributes) SetPlaceTargetOrderNil(b bool)` + + SetPlaceTargetOrderNil sets the value for PlaceTargetOrder to be an explicit nil + +### UnsetPlaceTargetOrder +`func (o *POSTOrderSubscriptions201ResponseDataAttributes) UnsetPlaceTargetOrder()` + +UnsetPlaceTargetOrder ensures that no value is present for PlaceTargetOrder, not even an explicit nil +### GetRenewalAlertPeriod + +`func (o *POSTOrderSubscriptions201ResponseDataAttributes) GetRenewalAlertPeriod() interface{}` + +GetRenewalAlertPeriod returns the RenewalAlertPeriod field if non-nil, zero value otherwise. + +### GetRenewalAlertPeriodOk + +`func (o *POSTOrderSubscriptions201ResponseDataAttributes) GetRenewalAlertPeriodOk() (*interface{}, bool)` + +GetRenewalAlertPeriodOk returns a tuple with the RenewalAlertPeriod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRenewalAlertPeriod + +`func (o *POSTOrderSubscriptions201ResponseDataAttributes) SetRenewalAlertPeriod(v interface{})` + +SetRenewalAlertPeriod sets RenewalAlertPeriod field to given value. + +### HasRenewalAlertPeriod + +`func (o *POSTOrderSubscriptions201ResponseDataAttributes) HasRenewalAlertPeriod() bool` + +HasRenewalAlertPeriod returns a boolean if a field has been set. + +### SetRenewalAlertPeriodNil + +`func (o *POSTOrderSubscriptions201ResponseDataAttributes) SetRenewalAlertPeriodNil(b bool)` + + SetRenewalAlertPeriodNil sets the value for RenewalAlertPeriod to be an explicit nil + +### UnsetRenewalAlertPeriod +`func (o *POSTOrderSubscriptions201ResponseDataAttributes) UnsetRenewalAlertPeriod()` + +UnsetRenewalAlertPeriod ensures that no value is present for RenewalAlertPeriod, not even an explicit nil ### GetStartsAt `func (o *POSTOrderSubscriptions201ResponseDataAttributes) GetStartsAt() interface{}` @@ -167,41 +238,6 @@ HasExpiresAt returns a boolean if a field has been set. `func (o *POSTOrderSubscriptions201ResponseDataAttributes) UnsetExpiresAt()` UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil -### GetOptions - -`func (o *POSTOrderSubscriptions201ResponseDataAttributes) GetOptions() interface{}` - -GetOptions returns the Options field if non-nil, zero value otherwise. - -### GetOptionsOk - -`func (o *POSTOrderSubscriptions201ResponseDataAttributes) GetOptionsOk() (*interface{}, bool)` - -GetOptionsOk returns a tuple with the Options field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOptions - -`func (o *POSTOrderSubscriptions201ResponseDataAttributes) SetOptions(v interface{})` - -SetOptions sets Options field to given value. - -### HasOptions - -`func (o *POSTOrderSubscriptions201ResponseDataAttributes) HasOptions() bool` - -HasOptions returns a boolean if a field has been set. - -### SetOptionsNil - -`func (o *POSTOrderSubscriptions201ResponseDataAttributes) SetOptionsNil(b bool)` - - SetOptionsNil sets the value for Options to be an explicit nil - -### UnsetOptions -`func (o *POSTOrderSubscriptions201ResponseDataAttributes) UnsetOptions()` - -UnsetOptions ensures that no value is present for Options, not even an explicit nil ### GetReference `func (o *POSTOrderSubscriptions201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTOrderSubscriptions201ResponseDataRelationships.md b/api/docs/POSTOrderSubscriptions201ResponseDataRelationships.md index 13f3eabd..aa46fe56 100644 --- a/api/docs/POSTOrderSubscriptions201ResponseDataRelationships.md +++ b/api/docs/POSTOrderSubscriptions201ResponseDataRelationships.md @@ -11,10 +11,11 @@ Name | Type | Description | Notes **CustomerPaymentSource** | Pointer to [**POSTOrderSubscriptions201ResponseDataRelationshipsCustomerPaymentSource**](POSTOrderSubscriptions201ResponseDataRelationshipsCustomerPaymentSource.md) | | [optional] **OrderSubscriptionItems** | Pointer to [**POSTOrderSubscriptions201ResponseDataRelationshipsOrderSubscriptionItems**](POSTOrderSubscriptions201ResponseDataRelationshipsOrderSubscriptionItems.md) | | [optional] **OrderFactories** | Pointer to [**POSTOrderSubscriptions201ResponseDataRelationshipsOrderFactories**](POSTOrderSubscriptions201ResponseDataRelationshipsOrderFactories.md) | | [optional] -**OrderCopies** | Pointer to [**POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies**](POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies.md) | | [optional] **RecurringOrderCopies** | Pointer to [**POSTOrderSubscriptions201ResponseDataRelationshipsRecurringOrderCopies**](POSTOrderSubscriptions201ResponseDataRelationshipsRecurringOrderCopies.md) | | [optional] **Orders** | Pointer to [**POSTCustomers201ResponseDataRelationshipsOrders**](POSTCustomers201ResponseDataRelationshipsOrders.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**POSTAddresses201ResponseDataRelationshipsTags**](POSTAddresses201ResponseDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -210,31 +211,6 @@ SetOrderFactories sets OrderFactories field to given value. HasOrderFactories returns a boolean if a field has been set. -### GetOrderCopies - -`func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetOrderCopies() POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies` - -GetOrderCopies returns the OrderCopies field if non-nil, zero value otherwise. - -### GetOrderCopiesOk - -`func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetOrderCopiesOk() (*POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies, bool)` - -GetOrderCopiesOk returns a tuple with the OrderCopies field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrderCopies - -`func (o *POSTOrderSubscriptions201ResponseDataRelationships) SetOrderCopies(v POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies)` - -SetOrderCopies sets OrderCopies field to given value. - -### HasOrderCopies - -`func (o *POSTOrderSubscriptions201ResponseDataRelationships) HasOrderCopies() bool` - -HasOrderCopies returns a boolean if a field has been set. - ### GetRecurringOrderCopies `func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetRecurringOrderCopies() POSTOrderSubscriptions201ResponseDataRelationshipsRecurringOrderCopies` @@ -287,20 +263,20 @@ HasOrders returns a boolean if a field has been set. ### GetEvents -`func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` +`func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` +`func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *POSTOrderSubscriptions201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` +`func (o *POSTOrderSubscriptions201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -310,6 +286,56 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetTags + +`func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *POSTOrderSubscriptions201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *POSTOrderSubscriptions201ResponseDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTOrderSubscriptions201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTOrderSubscriptions201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies.md b/api/docs/POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies.md deleted file mode 100644 index 5287f014..00000000 --- a/api/docs/POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies.md +++ /dev/null @@ -1,82 +0,0 @@ -# POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] -**Data** | Pointer to [**POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData**](POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData.md) | | [optional] - -## Methods - -### NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies - -`func NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies() *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies` - -NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies instantiates a new POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesWithDefaults - -`func NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesWithDefaults() *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies` - -NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesWithDefaults instantiates a new POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetLinks - -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - -### GetData - -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) GetData() POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) GetDataOk() (*POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) SetData(v POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData.md b/api/docs/POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData.md deleted file mode 100644 index af358e37..00000000 --- a/api/docs/POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData.md +++ /dev/null @@ -1,102 +0,0 @@ -# POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | Pointer to **interface{}** | The resource's type | [optional] -**Id** | Pointer to **interface{}** | The resource ID | [optional] - -## Methods - -### NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData - -`func NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData() *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData` - -NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData instantiates a new POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesDataWithDefaults - -`func NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesDataWithDefaults() *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData` - -NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesDataWithDefaults instantiates a new POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) GetType() interface{}` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) GetTypeOk() (*interface{}, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) SetType(v interface{})` - -SetType sets Type field to given value. - -### HasType - -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) HasType() bool` - -HasType returns a boolean if a field has been set. - -### SetTypeNil - -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) SetTypeNil(b bool)` - - SetTypeNil sets the value for Type to be an explicit nil - -### UnsetType -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) UnsetType()` - -UnsetType ensures that no value is present for Type, not even an explicit nil -### GetId - -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) GetId() interface{}` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) GetIdOk() (*interface{}, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) SetId(v interface{})` - -SetId sets Id field to given value. - -### HasId - -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) HasId() bool` - -HasId returns a boolean if a field has been set. - -### SetIdNil - -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) SetIdNil(b bool)` - - SetIdNil sets the value for Id to be an explicit nil - -### UnsetId -`func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) UnsetId()` - -UnsetId ensures that no value is present for Id, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/POSTOrders201ResponseDataAttributes.md b/api/docs/POSTOrders201ResponseDataAttributes.md index bad9d644..ce932a44 100644 --- a/api/docs/POSTOrders201ResponseDataAttributes.md +++ b/api/docs/POSTOrders201ResponseDataAttributes.md @@ -4,21 +4,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Number** | Pointer to **interface{}** | The order identifier. Can be specified if unique within the organization (for enterprise plans only), default to numeric ID otherwise. Cannot be passed by sales channels. | [optional] +**AffiliateCode** | Pointer to **interface{}** | The affiliate code, if any, the seller will transfer commission on shop by link transactions. | [optional] **Autorefresh** | Pointer to **interface{}** | Save this attribute as 'false' if you want prevent the order to be refreshed automatically at each change (much faster). | [optional] +**PlaceAsync** | Pointer to **interface{}** | Save this attribute as 'true' if you want perform the place asynchronously. Payment errors, if any, will be collected afterwards. | [optional] **Guest** | Pointer to **interface{}** | Indicates if the order has been placed as guest. | [optional] **CustomerEmail** | Pointer to **interface{}** | The email address of the associated customer. When creating or updating an order, this is a shortcut to find or create the associated customer by email. | [optional] **CustomerPassword** | Pointer to **interface{}** | The password of the associated customer. When creating or updating an order, this is a shortcut to sign up the associated customer. | [optional] **LanguageCode** | Pointer to **interface{}** | The preferred language code (ISO 639-1) to be used when communicating with the customer. This can be useful when sending the order to 3rd party marketing tools and CRMs. If the language is supported, the hosted checkout will be localized accordingly. | [optional] -**ShippingCountryCodeLock** | Pointer to **interface{}** | The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. | [optional] +**FreightTaxable** | Pointer to **interface{}** | Indicates if taxes are applied to shipping costs. | [optional] +**PaymentMethodTaxable** | Pointer to **interface{}** | Indicates if taxes are applied to payment methods costs. | [optional] +**AdjustmentTaxable** | Pointer to **interface{}** | Indicates if taxes are applied to positive adjustments. | [optional] +**GiftCardTaxable** | Pointer to **interface{}** | Indicates if taxes are applied to purchased gift cards. | [optional] +**ShippingCountryCodeLock** | Pointer to **interface{}** | The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. Not relevant if order contains only digital products. | [optional] **CouponCode** | Pointer to **interface{}** | The coupon code to be used for the order. If valid, it triggers a promotion adding a discount line item to the order. | [optional] **GiftCardCode** | Pointer to **interface{}** | The gift card code (at least the first 8 characters) to be used for the order. If valid, it uses the gift card balance to pay for the order. | [optional] -**GiftCardOrCouponCode** | Pointer to **interface{}** | The gift card or coupon code (at least the first 8 characters) to be used for the order. If a gift card mathes, it uses the gift card balance to pay for the order. Otherwise it tries to find a valid coupon code and applies the associated discount. | [optional] **CartUrl** | Pointer to **interface{}** | The cart url on your site. If present, it will be used on our hosted checkout application. | [optional] **ReturnUrl** | Pointer to **interface{}** | The return url on your site. If present, it will be used on our hosted checkout application. | [optional] **TermsUrl** | Pointer to **interface{}** | The terms and conditions url on your site. If present, it will be used on our hosted checkout application. | [optional] **PrivacyUrl** | Pointer to **interface{}** | The privacy policy url on your site. If present, it will be used on our hosted checkout application. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -40,6 +46,76 @@ NewPOSTOrders201ResponseDataAttributesWithDefaults instantiates a new POSTOrders This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetNumber + +`func (o *POSTOrders201ResponseDataAttributes) GetNumber() interface{}` + +GetNumber returns the Number field if non-nil, zero value otherwise. + +### GetNumberOk + +`func (o *POSTOrders201ResponseDataAttributes) GetNumberOk() (*interface{}, bool)` + +GetNumberOk returns a tuple with the Number field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumber + +`func (o *POSTOrders201ResponseDataAttributes) SetNumber(v interface{})` + +SetNumber sets Number field to given value. + +### HasNumber + +`func (o *POSTOrders201ResponseDataAttributes) HasNumber() bool` + +HasNumber returns a boolean if a field has been set. + +### SetNumberNil + +`func (o *POSTOrders201ResponseDataAttributes) SetNumberNil(b bool)` + + SetNumberNil sets the value for Number to be an explicit nil + +### UnsetNumber +`func (o *POSTOrders201ResponseDataAttributes) UnsetNumber()` + +UnsetNumber ensures that no value is present for Number, not even an explicit nil +### GetAffiliateCode + +`func (o *POSTOrders201ResponseDataAttributes) GetAffiliateCode() interface{}` + +GetAffiliateCode returns the AffiliateCode field if non-nil, zero value otherwise. + +### GetAffiliateCodeOk + +`func (o *POSTOrders201ResponseDataAttributes) GetAffiliateCodeOk() (*interface{}, bool)` + +GetAffiliateCodeOk returns a tuple with the AffiliateCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAffiliateCode + +`func (o *POSTOrders201ResponseDataAttributes) SetAffiliateCode(v interface{})` + +SetAffiliateCode sets AffiliateCode field to given value. + +### HasAffiliateCode + +`func (o *POSTOrders201ResponseDataAttributes) HasAffiliateCode() bool` + +HasAffiliateCode returns a boolean if a field has been set. + +### SetAffiliateCodeNil + +`func (o *POSTOrders201ResponseDataAttributes) SetAffiliateCodeNil(b bool)` + + SetAffiliateCodeNil sets the value for AffiliateCode to be an explicit nil + +### UnsetAffiliateCode +`func (o *POSTOrders201ResponseDataAttributes) UnsetAffiliateCode()` + +UnsetAffiliateCode ensures that no value is present for AffiliateCode, not even an explicit nil ### GetAutorefresh `func (o *POSTOrders201ResponseDataAttributes) GetAutorefresh() interface{}` @@ -75,6 +151,41 @@ HasAutorefresh returns a boolean if a field has been set. `func (o *POSTOrders201ResponseDataAttributes) UnsetAutorefresh()` UnsetAutorefresh ensures that no value is present for Autorefresh, not even an explicit nil +### GetPlaceAsync + +`func (o *POSTOrders201ResponseDataAttributes) GetPlaceAsync() interface{}` + +GetPlaceAsync returns the PlaceAsync field if non-nil, zero value otherwise. + +### GetPlaceAsyncOk + +`func (o *POSTOrders201ResponseDataAttributes) GetPlaceAsyncOk() (*interface{}, bool)` + +GetPlaceAsyncOk returns a tuple with the PlaceAsync field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlaceAsync + +`func (o *POSTOrders201ResponseDataAttributes) SetPlaceAsync(v interface{})` + +SetPlaceAsync sets PlaceAsync field to given value. + +### HasPlaceAsync + +`func (o *POSTOrders201ResponseDataAttributes) HasPlaceAsync() bool` + +HasPlaceAsync returns a boolean if a field has been set. + +### SetPlaceAsyncNil + +`func (o *POSTOrders201ResponseDataAttributes) SetPlaceAsyncNil(b bool)` + + SetPlaceAsyncNil sets the value for PlaceAsync to be an explicit nil + +### UnsetPlaceAsync +`func (o *POSTOrders201ResponseDataAttributes) UnsetPlaceAsync()` + +UnsetPlaceAsync ensures that no value is present for PlaceAsync, not even an explicit nil ### GetGuest `func (o *POSTOrders201ResponseDataAttributes) GetGuest() interface{}` @@ -215,6 +326,146 @@ HasLanguageCode returns a boolean if a field has been set. `func (o *POSTOrders201ResponseDataAttributes) UnsetLanguageCode()` UnsetLanguageCode ensures that no value is present for LanguageCode, not even an explicit nil +### GetFreightTaxable + +`func (o *POSTOrders201ResponseDataAttributes) GetFreightTaxable() interface{}` + +GetFreightTaxable returns the FreightTaxable field if non-nil, zero value otherwise. + +### GetFreightTaxableOk + +`func (o *POSTOrders201ResponseDataAttributes) GetFreightTaxableOk() (*interface{}, bool)` + +GetFreightTaxableOk returns a tuple with the FreightTaxable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFreightTaxable + +`func (o *POSTOrders201ResponseDataAttributes) SetFreightTaxable(v interface{})` + +SetFreightTaxable sets FreightTaxable field to given value. + +### HasFreightTaxable + +`func (o *POSTOrders201ResponseDataAttributes) HasFreightTaxable() bool` + +HasFreightTaxable returns a boolean if a field has been set. + +### SetFreightTaxableNil + +`func (o *POSTOrders201ResponseDataAttributes) SetFreightTaxableNil(b bool)` + + SetFreightTaxableNil sets the value for FreightTaxable to be an explicit nil + +### UnsetFreightTaxable +`func (o *POSTOrders201ResponseDataAttributes) UnsetFreightTaxable()` + +UnsetFreightTaxable ensures that no value is present for FreightTaxable, not even an explicit nil +### GetPaymentMethodTaxable + +`func (o *POSTOrders201ResponseDataAttributes) GetPaymentMethodTaxable() interface{}` + +GetPaymentMethodTaxable returns the PaymentMethodTaxable field if non-nil, zero value otherwise. + +### GetPaymentMethodTaxableOk + +`func (o *POSTOrders201ResponseDataAttributes) GetPaymentMethodTaxableOk() (*interface{}, bool)` + +GetPaymentMethodTaxableOk returns a tuple with the PaymentMethodTaxable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentMethodTaxable + +`func (o *POSTOrders201ResponseDataAttributes) SetPaymentMethodTaxable(v interface{})` + +SetPaymentMethodTaxable sets PaymentMethodTaxable field to given value. + +### HasPaymentMethodTaxable + +`func (o *POSTOrders201ResponseDataAttributes) HasPaymentMethodTaxable() bool` + +HasPaymentMethodTaxable returns a boolean if a field has been set. + +### SetPaymentMethodTaxableNil + +`func (o *POSTOrders201ResponseDataAttributes) SetPaymentMethodTaxableNil(b bool)` + + SetPaymentMethodTaxableNil sets the value for PaymentMethodTaxable to be an explicit nil + +### UnsetPaymentMethodTaxable +`func (o *POSTOrders201ResponseDataAttributes) UnsetPaymentMethodTaxable()` + +UnsetPaymentMethodTaxable ensures that no value is present for PaymentMethodTaxable, not even an explicit nil +### GetAdjustmentTaxable + +`func (o *POSTOrders201ResponseDataAttributes) GetAdjustmentTaxable() interface{}` + +GetAdjustmentTaxable returns the AdjustmentTaxable field if non-nil, zero value otherwise. + +### GetAdjustmentTaxableOk + +`func (o *POSTOrders201ResponseDataAttributes) GetAdjustmentTaxableOk() (*interface{}, bool)` + +GetAdjustmentTaxableOk returns a tuple with the AdjustmentTaxable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdjustmentTaxable + +`func (o *POSTOrders201ResponseDataAttributes) SetAdjustmentTaxable(v interface{})` + +SetAdjustmentTaxable sets AdjustmentTaxable field to given value. + +### HasAdjustmentTaxable + +`func (o *POSTOrders201ResponseDataAttributes) HasAdjustmentTaxable() bool` + +HasAdjustmentTaxable returns a boolean if a field has been set. + +### SetAdjustmentTaxableNil + +`func (o *POSTOrders201ResponseDataAttributes) SetAdjustmentTaxableNil(b bool)` + + SetAdjustmentTaxableNil sets the value for AdjustmentTaxable to be an explicit nil + +### UnsetAdjustmentTaxable +`func (o *POSTOrders201ResponseDataAttributes) UnsetAdjustmentTaxable()` + +UnsetAdjustmentTaxable ensures that no value is present for AdjustmentTaxable, not even an explicit nil +### GetGiftCardTaxable + +`func (o *POSTOrders201ResponseDataAttributes) GetGiftCardTaxable() interface{}` + +GetGiftCardTaxable returns the GiftCardTaxable field if non-nil, zero value otherwise. + +### GetGiftCardTaxableOk + +`func (o *POSTOrders201ResponseDataAttributes) GetGiftCardTaxableOk() (*interface{}, bool)` + +GetGiftCardTaxableOk returns a tuple with the GiftCardTaxable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGiftCardTaxable + +`func (o *POSTOrders201ResponseDataAttributes) SetGiftCardTaxable(v interface{})` + +SetGiftCardTaxable sets GiftCardTaxable field to given value. + +### HasGiftCardTaxable + +`func (o *POSTOrders201ResponseDataAttributes) HasGiftCardTaxable() bool` + +HasGiftCardTaxable returns a boolean if a field has been set. + +### SetGiftCardTaxableNil + +`func (o *POSTOrders201ResponseDataAttributes) SetGiftCardTaxableNil(b bool)` + + SetGiftCardTaxableNil sets the value for GiftCardTaxable to be an explicit nil + +### UnsetGiftCardTaxable +`func (o *POSTOrders201ResponseDataAttributes) UnsetGiftCardTaxable()` + +UnsetGiftCardTaxable ensures that no value is present for GiftCardTaxable, not even an explicit nil ### GetShippingCountryCodeLock `func (o *POSTOrders201ResponseDataAttributes) GetShippingCountryCodeLock() interface{}` @@ -320,41 +571,6 @@ HasGiftCardCode returns a boolean if a field has been set. `func (o *POSTOrders201ResponseDataAttributes) UnsetGiftCardCode()` UnsetGiftCardCode ensures that no value is present for GiftCardCode, not even an explicit nil -### GetGiftCardOrCouponCode - -`func (o *POSTOrders201ResponseDataAttributes) GetGiftCardOrCouponCode() interface{}` - -GetGiftCardOrCouponCode returns the GiftCardOrCouponCode field if non-nil, zero value otherwise. - -### GetGiftCardOrCouponCodeOk - -`func (o *POSTOrders201ResponseDataAttributes) GetGiftCardOrCouponCodeOk() (*interface{}, bool)` - -GetGiftCardOrCouponCodeOk returns a tuple with the GiftCardOrCouponCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGiftCardOrCouponCode - -`func (o *POSTOrders201ResponseDataAttributes) SetGiftCardOrCouponCode(v interface{})` - -SetGiftCardOrCouponCode sets GiftCardOrCouponCode field to given value. - -### HasGiftCardOrCouponCode - -`func (o *POSTOrders201ResponseDataAttributes) HasGiftCardOrCouponCode() bool` - -HasGiftCardOrCouponCode returns a boolean if a field has been set. - -### SetGiftCardOrCouponCodeNil - -`func (o *POSTOrders201ResponseDataAttributes) SetGiftCardOrCouponCodeNil(b bool)` - - SetGiftCardOrCouponCodeNil sets the value for GiftCardOrCouponCode to be an explicit nil - -### UnsetGiftCardOrCouponCode -`func (o *POSTOrders201ResponseDataAttributes) UnsetGiftCardOrCouponCode()` - -UnsetGiftCardOrCouponCode ensures that no value is present for GiftCardOrCouponCode, not even an explicit nil ### GetCartUrl `func (o *POSTOrders201ResponseDataAttributes) GetCartUrl() interface{}` diff --git a/api/docs/POSTOrders201ResponseDataRelationships.md b/api/docs/POSTOrders201ResponseDataRelationships.md index 5da09bc0..6286d44c 100644 --- a/api/docs/POSTOrders201ResponseDataRelationships.md +++ b/api/docs/POSTOrders201ResponseDataRelationships.md @@ -12,22 +12,32 @@ Name | Type | Description | Notes **AvailableCustomerPaymentSources** | Pointer to [**POSTOrders201ResponseDataRelationshipsAvailableCustomerPaymentSources**](POSTOrders201ResponseDataRelationshipsAvailableCustomerPaymentSources.md) | | [optional] **AvailableFreeSkus** | Pointer to [**POSTOrders201ResponseDataRelationshipsAvailableFreeSkus**](POSTOrders201ResponseDataRelationshipsAvailableFreeSkus.md) | | [optional] **AvailableFreeBundles** | Pointer to [**POSTOrders201ResponseDataRelationshipsAvailableFreeBundles**](POSTOrders201ResponseDataRelationshipsAvailableFreeBundles.md) | | [optional] -**PaymentMethod** | Pointer to [**POSTOrders201ResponseDataRelationshipsPaymentMethod**](POSTOrders201ResponseDataRelationshipsPaymentMethod.md) | | [optional] +**PaymentMethod** | Pointer to [**POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod**](POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod.md) | | [optional] **PaymentSource** | Pointer to [**POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentSource**](POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentSource.md) | | [optional] **LineItems** | Pointer to [**POSTOrders201ResponseDataRelationshipsLineItems**](POSTOrders201ResponseDataRelationshipsLineItems.md) | | [optional] +**LineItemOptions** | Pointer to [**POSTLineItems201ResponseDataRelationshipsLineItemOptions**](POSTLineItems201ResponseDataRelationshipsLineItemOptions.md) | | [optional] +**StockReservations** | Pointer to [**POSTLineItems201ResponseDataRelationshipsStockReservations**](POSTLineItems201ResponseDataRelationshipsStockReservations.md) | | [optional] +**StockLineItems** | Pointer to [**POSTLineItems201ResponseDataRelationshipsStockLineItems**](POSTLineItems201ResponseDataRelationshipsStockLineItems.md) | | [optional] +**StockTransfers** | Pointer to [**POSTLineItems201ResponseDataRelationshipsStockTransfers**](POSTLineItems201ResponseDataRelationshipsStockTransfers.md) | | [optional] **Shipments** | Pointer to [**POSTOrders201ResponseDataRelationshipsShipments**](POSTOrders201ResponseDataRelationshipsShipments.md) | | [optional] +**PaymentOptions** | Pointer to [**POSTOrders201ResponseDataRelationshipsPaymentOptions**](POSTOrders201ResponseDataRelationshipsPaymentOptions.md) | | [optional] **Transactions** | Pointer to [**POSTOrders201ResponseDataRelationshipsTransactions**](POSTOrders201ResponseDataRelationshipsTransactions.md) | | [optional] **Authorizations** | Pointer to [**POSTOrders201ResponseDataRelationshipsAuthorizations**](POSTOrders201ResponseDataRelationshipsAuthorizations.md) | | [optional] **Captures** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsCaptures**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsCaptures.md) | | [optional] **Voids** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsVoids**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsVoids.md) | | [optional] **Refunds** | Pointer to [**GETCapturesCaptureId200ResponseDataRelationshipsRefunds**](GETCapturesCaptureId200ResponseDataRelationshipsRefunds.md) | | [optional] **Returns** | Pointer to [**POSTCustomers201ResponseDataRelationshipsReturns**](POSTCustomers201ResponseDataRelationshipsReturns.md) | | [optional] +**OrderSubscription** | Pointer to [**POSTOrderCopies201ResponseDataRelationshipsOrderSubscription**](POSTOrderCopies201ResponseDataRelationshipsOrderSubscription.md) | | [optional] **OrderSubscriptions** | Pointer to [**POSTCustomers201ResponseDataRelationshipsOrderSubscriptions**](POSTCustomers201ResponseDataRelationshipsOrderSubscriptions.md) | | [optional] **OrderFactories** | Pointer to [**POSTOrderSubscriptions201ResponseDataRelationshipsOrderFactories**](POSTOrderSubscriptions201ResponseDataRelationshipsOrderFactories.md) | | [optional] -**OrderCopies** | Pointer to [**POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies**](POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies.md) | | [optional] +**OrderCopies** | Pointer to [**POSTOrders201ResponseDataRelationshipsOrderCopies**](POSTOrders201ResponseDataRelationshipsOrderCopies.md) | | [optional] **RecurringOrderCopies** | Pointer to [**POSTOrderSubscriptions201ResponseDataRelationshipsRecurringOrderCopies**](POSTOrderSubscriptions201ResponseDataRelationshipsRecurringOrderCopies.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Links** | Pointer to [**POSTOrders201ResponseDataRelationshipsLinks**](POSTOrders201ResponseDataRelationshipsLinks.md) | | [optional] +**ResourceErrors** | Pointer to [**POSTOrders201ResponseDataRelationshipsResourceErrors**](POSTOrders201ResponseDataRelationshipsResourceErrors.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**POSTAddresses201ResponseDataRelationshipsTags**](POSTAddresses201ResponseDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -250,20 +260,20 @@ HasAvailableFreeBundles returns a boolean if a field has been set. ### GetPaymentMethod -`func (o *POSTOrders201ResponseDataRelationships) GetPaymentMethod() POSTOrders201ResponseDataRelationshipsPaymentMethod` +`func (o *POSTOrders201ResponseDataRelationships) GetPaymentMethod() POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod` GetPaymentMethod returns the PaymentMethod field if non-nil, zero value otherwise. ### GetPaymentMethodOk -`func (o *POSTOrders201ResponseDataRelationships) GetPaymentMethodOk() (*POSTOrders201ResponseDataRelationshipsPaymentMethod, bool)` +`func (o *POSTOrders201ResponseDataRelationships) GetPaymentMethodOk() (*POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod, bool)` GetPaymentMethodOk returns a tuple with the PaymentMethod field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPaymentMethod -`func (o *POSTOrders201ResponseDataRelationships) SetPaymentMethod(v POSTOrders201ResponseDataRelationshipsPaymentMethod)` +`func (o *POSTOrders201ResponseDataRelationships) SetPaymentMethod(v POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod)` SetPaymentMethod sets PaymentMethod field to given value. @@ -323,6 +333,106 @@ SetLineItems sets LineItems field to given value. HasLineItems returns a boolean if a field has been set. +### GetLineItemOptions + +`func (o *POSTOrders201ResponseDataRelationships) GetLineItemOptions() POSTLineItems201ResponseDataRelationshipsLineItemOptions` + +GetLineItemOptions returns the LineItemOptions field if non-nil, zero value otherwise. + +### GetLineItemOptionsOk + +`func (o *POSTOrders201ResponseDataRelationships) GetLineItemOptionsOk() (*POSTLineItems201ResponseDataRelationshipsLineItemOptions, bool)` + +GetLineItemOptionsOk returns a tuple with the LineItemOptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLineItemOptions + +`func (o *POSTOrders201ResponseDataRelationships) SetLineItemOptions(v POSTLineItems201ResponseDataRelationshipsLineItemOptions)` + +SetLineItemOptions sets LineItemOptions field to given value. + +### HasLineItemOptions + +`func (o *POSTOrders201ResponseDataRelationships) HasLineItemOptions() bool` + +HasLineItemOptions returns a boolean if a field has been set. + +### GetStockReservations + +`func (o *POSTOrders201ResponseDataRelationships) GetStockReservations() POSTLineItems201ResponseDataRelationshipsStockReservations` + +GetStockReservations returns the StockReservations field if non-nil, zero value otherwise. + +### GetStockReservationsOk + +`func (o *POSTOrders201ResponseDataRelationships) GetStockReservationsOk() (*POSTLineItems201ResponseDataRelationshipsStockReservations, bool)` + +GetStockReservationsOk returns a tuple with the StockReservations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockReservations + +`func (o *POSTOrders201ResponseDataRelationships) SetStockReservations(v POSTLineItems201ResponseDataRelationshipsStockReservations)` + +SetStockReservations sets StockReservations field to given value. + +### HasStockReservations + +`func (o *POSTOrders201ResponseDataRelationships) HasStockReservations() bool` + +HasStockReservations returns a boolean if a field has been set. + +### GetStockLineItems + +`func (o *POSTOrders201ResponseDataRelationships) GetStockLineItems() POSTLineItems201ResponseDataRelationshipsStockLineItems` + +GetStockLineItems returns the StockLineItems field if non-nil, zero value otherwise. + +### GetStockLineItemsOk + +`func (o *POSTOrders201ResponseDataRelationships) GetStockLineItemsOk() (*POSTLineItems201ResponseDataRelationshipsStockLineItems, bool)` + +GetStockLineItemsOk returns a tuple with the StockLineItems field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockLineItems + +`func (o *POSTOrders201ResponseDataRelationships) SetStockLineItems(v POSTLineItems201ResponseDataRelationshipsStockLineItems)` + +SetStockLineItems sets StockLineItems field to given value. + +### HasStockLineItems + +`func (o *POSTOrders201ResponseDataRelationships) HasStockLineItems() bool` + +HasStockLineItems returns a boolean if a field has been set. + +### GetStockTransfers + +`func (o *POSTOrders201ResponseDataRelationships) GetStockTransfers() POSTLineItems201ResponseDataRelationshipsStockTransfers` + +GetStockTransfers returns the StockTransfers field if non-nil, zero value otherwise. + +### GetStockTransfersOk + +`func (o *POSTOrders201ResponseDataRelationships) GetStockTransfersOk() (*POSTLineItems201ResponseDataRelationshipsStockTransfers, bool)` + +GetStockTransfersOk returns a tuple with the StockTransfers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockTransfers + +`func (o *POSTOrders201ResponseDataRelationships) SetStockTransfers(v POSTLineItems201ResponseDataRelationshipsStockTransfers)` + +SetStockTransfers sets StockTransfers field to given value. + +### HasStockTransfers + +`func (o *POSTOrders201ResponseDataRelationships) HasStockTransfers() bool` + +HasStockTransfers returns a boolean if a field has been set. + ### GetShipments `func (o *POSTOrders201ResponseDataRelationships) GetShipments() POSTOrders201ResponseDataRelationshipsShipments` @@ -348,6 +458,31 @@ SetShipments sets Shipments field to given value. HasShipments returns a boolean if a field has been set. +### GetPaymentOptions + +`func (o *POSTOrders201ResponseDataRelationships) GetPaymentOptions() POSTOrders201ResponseDataRelationshipsPaymentOptions` + +GetPaymentOptions returns the PaymentOptions field if non-nil, zero value otherwise. + +### GetPaymentOptionsOk + +`func (o *POSTOrders201ResponseDataRelationships) GetPaymentOptionsOk() (*POSTOrders201ResponseDataRelationshipsPaymentOptions, bool)` + +GetPaymentOptionsOk returns a tuple with the PaymentOptions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentOptions + +`func (o *POSTOrders201ResponseDataRelationships) SetPaymentOptions(v POSTOrders201ResponseDataRelationshipsPaymentOptions)` + +SetPaymentOptions sets PaymentOptions field to given value. + +### HasPaymentOptions + +`func (o *POSTOrders201ResponseDataRelationships) HasPaymentOptions() bool` + +HasPaymentOptions returns a boolean if a field has been set. + ### GetTransactions `func (o *POSTOrders201ResponseDataRelationships) GetTransactions() POSTOrders201ResponseDataRelationshipsTransactions` @@ -498,6 +633,31 @@ SetReturns sets Returns field to given value. HasReturns returns a boolean if a field has been set. +### GetOrderSubscription + +`func (o *POSTOrders201ResponseDataRelationships) GetOrderSubscription() POSTOrderCopies201ResponseDataRelationshipsOrderSubscription` + +GetOrderSubscription returns the OrderSubscription field if non-nil, zero value otherwise. + +### GetOrderSubscriptionOk + +`func (o *POSTOrders201ResponseDataRelationships) GetOrderSubscriptionOk() (*POSTOrderCopies201ResponseDataRelationshipsOrderSubscription, bool)` + +GetOrderSubscriptionOk returns a tuple with the OrderSubscription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderSubscription + +`func (o *POSTOrders201ResponseDataRelationships) SetOrderSubscription(v POSTOrderCopies201ResponseDataRelationshipsOrderSubscription)` + +SetOrderSubscription sets OrderSubscription field to given value. + +### HasOrderSubscription + +`func (o *POSTOrders201ResponseDataRelationships) HasOrderSubscription() bool` + +HasOrderSubscription returns a boolean if a field has been set. + ### GetOrderSubscriptions `func (o *POSTOrders201ResponseDataRelationships) GetOrderSubscriptions() POSTCustomers201ResponseDataRelationshipsOrderSubscriptions` @@ -550,20 +710,20 @@ HasOrderFactories returns a boolean if a field has been set. ### GetOrderCopies -`func (o *POSTOrders201ResponseDataRelationships) GetOrderCopies() POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies` +`func (o *POSTOrders201ResponseDataRelationships) GetOrderCopies() POSTOrders201ResponseDataRelationshipsOrderCopies` GetOrderCopies returns the OrderCopies field if non-nil, zero value otherwise. ### GetOrderCopiesOk -`func (o *POSTOrders201ResponseDataRelationships) GetOrderCopiesOk() (*POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies, bool)` +`func (o *POSTOrders201ResponseDataRelationships) GetOrderCopiesOk() (*POSTOrders201ResponseDataRelationshipsOrderCopies, bool)` GetOrderCopiesOk returns a tuple with the OrderCopies field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOrderCopies -`func (o *POSTOrders201ResponseDataRelationships) SetOrderCopies(v POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies)` +`func (o *POSTOrders201ResponseDataRelationships) SetOrderCopies(v POSTOrders201ResponseDataRelationshipsOrderCopies)` SetOrderCopies sets OrderCopies field to given value. @@ -600,20 +760,20 @@ HasRecurringOrderCopies returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTOrders201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTOrders201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTOrders201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTOrders201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTOrders201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTOrders201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -623,22 +783,72 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetLinks + +`func (o *POSTOrders201ResponseDataRelationships) GetLinks() POSTOrders201ResponseDataRelationshipsLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTOrders201ResponseDataRelationships) GetLinksOk() (*POSTOrders201ResponseDataRelationshipsLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTOrders201ResponseDataRelationships) SetLinks(v POSTOrders201ResponseDataRelationshipsLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTOrders201ResponseDataRelationships) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetResourceErrors + +`func (o *POSTOrders201ResponseDataRelationships) GetResourceErrors() POSTOrders201ResponseDataRelationshipsResourceErrors` + +GetResourceErrors returns the ResourceErrors field if non-nil, zero value otherwise. + +### GetResourceErrorsOk + +`func (o *POSTOrders201ResponseDataRelationships) GetResourceErrorsOk() (*POSTOrders201ResponseDataRelationshipsResourceErrors, bool)` + +GetResourceErrorsOk returns a tuple with the ResourceErrors field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceErrors + +`func (o *POSTOrders201ResponseDataRelationships) SetResourceErrors(v POSTOrders201ResponseDataRelationshipsResourceErrors)` + +SetResourceErrors sets ResourceErrors field to given value. + +### HasResourceErrors + +`func (o *POSTOrders201ResponseDataRelationships) HasResourceErrors() bool` + +HasResourceErrors returns a boolean if a field has been set. + ### GetEvents -`func (o *POSTOrders201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` +`func (o *POSTOrders201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *POSTOrders201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` +`func (o *POSTOrders201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *POSTOrders201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` +`func (o *POSTOrders201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -648,6 +858,56 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetTags + +`func (o *POSTOrders201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *POSTOrders201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *POSTOrders201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *POSTOrders201ResponseDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTOrders201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTOrders201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTOrders201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTOrders201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTOrders201ResponseDataRelationshipsLinks.md b/api/docs/POSTOrders201ResponseDataRelationshipsLinks.md new file mode 100644 index 00000000..03d037be --- /dev/null +++ b/api/docs/POSTOrders201ResponseDataRelationshipsLinks.md @@ -0,0 +1,82 @@ +# POSTOrders201ResponseDataRelationshipsLinks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTOrders201ResponseDataRelationshipsLinksData**](POSTOrders201ResponseDataRelationshipsLinksData.md) | | [optional] + +## Methods + +### NewPOSTOrders201ResponseDataRelationshipsLinks + +`func NewPOSTOrders201ResponseDataRelationshipsLinks() *POSTOrders201ResponseDataRelationshipsLinks` + +NewPOSTOrders201ResponseDataRelationshipsLinks instantiates a new POSTOrders201ResponseDataRelationshipsLinks object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTOrders201ResponseDataRelationshipsLinksWithDefaults + +`func NewPOSTOrders201ResponseDataRelationshipsLinksWithDefaults() *POSTOrders201ResponseDataRelationshipsLinks` + +NewPOSTOrders201ResponseDataRelationshipsLinksWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsLinks object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTOrders201ResponseDataRelationshipsLinks) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTOrders201ResponseDataRelationshipsLinks) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTOrders201ResponseDataRelationshipsLinks) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTOrders201ResponseDataRelationshipsLinks) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTOrders201ResponseDataRelationshipsLinks) GetData() POSTOrders201ResponseDataRelationshipsLinksData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTOrders201ResponseDataRelationshipsLinks) GetDataOk() (*POSTOrders201ResponseDataRelationshipsLinksData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTOrders201ResponseDataRelationshipsLinks) SetData(v POSTOrders201ResponseDataRelationshipsLinksData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTOrders201ResponseDataRelationshipsLinks) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTOrders201ResponseDataRelationshipsLinksData.md b/api/docs/POSTOrders201ResponseDataRelationshipsLinksData.md new file mode 100644 index 00000000..448cec06 --- /dev/null +++ b/api/docs/POSTOrders201ResponseDataRelationshipsLinksData.md @@ -0,0 +1,102 @@ +# POSTOrders201ResponseDataRelationshipsLinksData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTOrders201ResponseDataRelationshipsLinksData + +`func NewPOSTOrders201ResponseDataRelationshipsLinksData() *POSTOrders201ResponseDataRelationshipsLinksData` + +NewPOSTOrders201ResponseDataRelationshipsLinksData instantiates a new POSTOrders201ResponseDataRelationshipsLinksData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTOrders201ResponseDataRelationshipsLinksDataWithDefaults + +`func NewPOSTOrders201ResponseDataRelationshipsLinksDataWithDefaults() *POSTOrders201ResponseDataRelationshipsLinksData` + +NewPOSTOrders201ResponseDataRelationshipsLinksDataWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsLinksData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTOrders201ResponseDataRelationshipsLinksData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTOrders201ResponseDataRelationshipsLinksData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTOrders201ResponseDataRelationshipsLinksData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTOrders201ResponseDataRelationshipsLinksData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTOrders201ResponseDataRelationshipsLinksData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTOrders201ResponseDataRelationshipsLinksData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTOrders201ResponseDataRelationshipsLinksData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTOrders201ResponseDataRelationshipsLinksData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTOrders201ResponseDataRelationshipsLinksData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTOrders201ResponseDataRelationshipsLinksData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTOrders201ResponseDataRelationshipsLinksData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTOrders201ResponseDataRelationshipsLinksData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTOrders201ResponseDataRelationshipsOrderCopies.md b/api/docs/POSTOrders201ResponseDataRelationshipsOrderCopies.md new file mode 100644 index 00000000..b5d3386d --- /dev/null +++ b/api/docs/POSTOrders201ResponseDataRelationshipsOrderCopies.md @@ -0,0 +1,82 @@ +# POSTOrders201ResponseDataRelationshipsOrderCopies + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTOrders201ResponseDataRelationshipsOrderCopiesData**](POSTOrders201ResponseDataRelationshipsOrderCopiesData.md) | | [optional] + +## Methods + +### NewPOSTOrders201ResponseDataRelationshipsOrderCopies + +`func NewPOSTOrders201ResponseDataRelationshipsOrderCopies() *POSTOrders201ResponseDataRelationshipsOrderCopies` + +NewPOSTOrders201ResponseDataRelationshipsOrderCopies instantiates a new POSTOrders201ResponseDataRelationshipsOrderCopies object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTOrders201ResponseDataRelationshipsOrderCopiesWithDefaults + +`func NewPOSTOrders201ResponseDataRelationshipsOrderCopiesWithDefaults() *POSTOrders201ResponseDataRelationshipsOrderCopies` + +NewPOSTOrders201ResponseDataRelationshipsOrderCopiesWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsOrderCopies object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopies) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopies) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopies) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopies) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopies) GetData() POSTOrders201ResponseDataRelationshipsOrderCopiesData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopies) GetDataOk() (*POSTOrders201ResponseDataRelationshipsOrderCopiesData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopies) SetData(v POSTOrders201ResponseDataRelationshipsOrderCopiesData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopies) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTOrders201ResponseDataRelationshipsOrderCopiesData.md b/api/docs/POSTOrders201ResponseDataRelationshipsOrderCopiesData.md new file mode 100644 index 00000000..4def2550 --- /dev/null +++ b/api/docs/POSTOrders201ResponseDataRelationshipsOrderCopiesData.md @@ -0,0 +1,102 @@ +# POSTOrders201ResponseDataRelationshipsOrderCopiesData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTOrders201ResponseDataRelationshipsOrderCopiesData + +`func NewPOSTOrders201ResponseDataRelationshipsOrderCopiesData() *POSTOrders201ResponseDataRelationshipsOrderCopiesData` + +NewPOSTOrders201ResponseDataRelationshipsOrderCopiesData instantiates a new POSTOrders201ResponseDataRelationshipsOrderCopiesData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTOrders201ResponseDataRelationshipsOrderCopiesDataWithDefaults + +`func NewPOSTOrders201ResponseDataRelationshipsOrderCopiesDataWithDefaults() *POSTOrders201ResponseDataRelationshipsOrderCopiesData` + +NewPOSTOrders201ResponseDataRelationshipsOrderCopiesDataWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsOrderCopiesData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTOrders201ResponseDataRelationshipsPaymentOptions.md b/api/docs/POSTOrders201ResponseDataRelationshipsPaymentOptions.md new file mode 100644 index 00000000..37093c16 --- /dev/null +++ b/api/docs/POSTOrders201ResponseDataRelationshipsPaymentOptions.md @@ -0,0 +1,82 @@ +# POSTOrders201ResponseDataRelationshipsPaymentOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTOrders201ResponseDataRelationshipsPaymentOptionsData**](POSTOrders201ResponseDataRelationshipsPaymentOptionsData.md) | | [optional] + +## Methods + +### NewPOSTOrders201ResponseDataRelationshipsPaymentOptions + +`func NewPOSTOrders201ResponseDataRelationshipsPaymentOptions() *POSTOrders201ResponseDataRelationshipsPaymentOptions` + +NewPOSTOrders201ResponseDataRelationshipsPaymentOptions instantiates a new POSTOrders201ResponseDataRelationshipsPaymentOptions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTOrders201ResponseDataRelationshipsPaymentOptionsWithDefaults + +`func NewPOSTOrders201ResponseDataRelationshipsPaymentOptionsWithDefaults() *POSTOrders201ResponseDataRelationshipsPaymentOptions` + +NewPOSTOrders201ResponseDataRelationshipsPaymentOptionsWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsPaymentOptions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptions) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptions) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptions) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptions) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptions) GetData() POSTOrders201ResponseDataRelationshipsPaymentOptionsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptions) GetDataOk() (*POSTOrders201ResponseDataRelationshipsPaymentOptionsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptions) SetData(v POSTOrders201ResponseDataRelationshipsPaymentOptionsData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptions) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTOrders201ResponseDataRelationshipsPaymentOptionsData.md b/api/docs/POSTOrders201ResponseDataRelationshipsPaymentOptionsData.md new file mode 100644 index 00000000..03c1eef7 --- /dev/null +++ b/api/docs/POSTOrders201ResponseDataRelationshipsPaymentOptionsData.md @@ -0,0 +1,102 @@ +# POSTOrders201ResponseDataRelationshipsPaymentOptionsData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTOrders201ResponseDataRelationshipsPaymentOptionsData + +`func NewPOSTOrders201ResponseDataRelationshipsPaymentOptionsData() *POSTOrders201ResponseDataRelationshipsPaymentOptionsData` + +NewPOSTOrders201ResponseDataRelationshipsPaymentOptionsData instantiates a new POSTOrders201ResponseDataRelationshipsPaymentOptionsData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTOrders201ResponseDataRelationshipsPaymentOptionsDataWithDefaults + +`func NewPOSTOrders201ResponseDataRelationshipsPaymentOptionsDataWithDefaults() *POSTOrders201ResponseDataRelationshipsPaymentOptionsData` + +NewPOSTOrders201ResponseDataRelationshipsPaymentOptionsDataWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsPaymentOptionsData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTOrders201ResponseDataRelationshipsResourceErrors.md b/api/docs/POSTOrders201ResponseDataRelationshipsResourceErrors.md new file mode 100644 index 00000000..e2ab8329 --- /dev/null +++ b/api/docs/POSTOrders201ResponseDataRelationshipsResourceErrors.md @@ -0,0 +1,82 @@ +# POSTOrders201ResponseDataRelationshipsResourceErrors + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTOrders201ResponseDataRelationshipsResourceErrorsData**](POSTOrders201ResponseDataRelationshipsResourceErrorsData.md) | | [optional] + +## Methods + +### NewPOSTOrders201ResponseDataRelationshipsResourceErrors + +`func NewPOSTOrders201ResponseDataRelationshipsResourceErrors() *POSTOrders201ResponseDataRelationshipsResourceErrors` + +NewPOSTOrders201ResponseDataRelationshipsResourceErrors instantiates a new POSTOrders201ResponseDataRelationshipsResourceErrors object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTOrders201ResponseDataRelationshipsResourceErrorsWithDefaults + +`func NewPOSTOrders201ResponseDataRelationshipsResourceErrorsWithDefaults() *POSTOrders201ResponseDataRelationshipsResourceErrors` + +NewPOSTOrders201ResponseDataRelationshipsResourceErrorsWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsResourceErrors object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrors) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrors) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrors) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrors) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrors) GetData() POSTOrders201ResponseDataRelationshipsResourceErrorsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrors) GetDataOk() (*POSTOrders201ResponseDataRelationshipsResourceErrorsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrors) SetData(v POSTOrders201ResponseDataRelationshipsResourceErrorsData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrors) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTOrders201ResponseDataRelationshipsResourceErrorsData.md b/api/docs/POSTOrders201ResponseDataRelationshipsResourceErrorsData.md new file mode 100644 index 00000000..ea62cb45 --- /dev/null +++ b/api/docs/POSTOrders201ResponseDataRelationshipsResourceErrorsData.md @@ -0,0 +1,102 @@ +# POSTOrders201ResponseDataRelationshipsResourceErrorsData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTOrders201ResponseDataRelationshipsResourceErrorsData + +`func NewPOSTOrders201ResponseDataRelationshipsResourceErrorsData() *POSTOrders201ResponseDataRelationshipsResourceErrorsData` + +NewPOSTOrders201ResponseDataRelationshipsResourceErrorsData instantiates a new POSTOrders201ResponseDataRelationshipsResourceErrorsData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTOrders201ResponseDataRelationshipsResourceErrorsDataWithDefaults + +`func NewPOSTOrders201ResponseDataRelationshipsResourceErrorsDataWithDefaults() *POSTOrders201ResponseDataRelationshipsResourceErrorsData` + +NewPOSTOrders201ResponseDataRelationshipsResourceErrorsDataWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsResourceErrorsData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTPackages201ResponseDataAttributes.md b/api/docs/POSTPackages201ResponseDataAttributes.md index 1748384e..ff37e72b 100644 --- a/api/docs/POSTPackages201ResponseDataAttributes.md +++ b/api/docs/POSTPackages201ResponseDataAttributes.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **interface{}** | Unique name for the package | -**Code** | Pointer to **interface{}** | The package identifying code | [optional] +**Name** | **interface{}** | Unique name for the package. | +**Code** | Pointer to **interface{}** | The package identifying code. | [optional] **Length** | **interface{}** | The package length, used to automatically calculate the tax rates from the available carrier accounts. | **Width** | **interface{}** | The package width, used to automatically calculate the tax rates from the available carrier accounts. | **Height** | **interface{}** | The package height, used to automatically calculate the tax rates from the available carrier accounts. | **UnitOfLength** | **interface{}** | The unit of length. Can be one of 'cm', or 'in'. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTPackages201ResponseDataRelationships.md b/api/docs/POSTPackages201ResponseDataRelationships.md index 1f3797cf..3b8f6141 100644 --- a/api/docs/POSTPackages201ResponseDataRelationships.md +++ b/api/docs/POSTPackages201ResponseDataRelationships.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StockLocation** | Pointer to [**POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation**](POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation.md) | | [optional] **Parcels** | Pointer to [**POSTPackages201ResponseDataRelationshipsParcels**](POSTPackages201ResponseDataRelationshipsParcels.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -79,20 +80,20 @@ HasParcels returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTPackages201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTPackages201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTPackages201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTPackages201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTPackages201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTPackages201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -102,6 +103,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTPackages201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTPackages201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTPackages201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTPackages201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTParcelLineItems201ResponseDataAttributes.md b/api/docs/POSTParcelLineItems201ResponseDataAttributes.md index 55c9191d..acea6bde 100644 --- a/api/docs/POSTParcelLineItems201ResponseDataAttributes.md +++ b/api/docs/POSTParcelLineItems201ResponseDataAttributes.md @@ -4,10 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SkuCode** | Pointer to **interface{}** | The code of the SKU of the associated shipment_line_item. | [optional] **Quantity** | **interface{}** | The parcel line item quantity. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -29,41 +28,6 @@ NewPOSTParcelLineItems201ResponseDataAttributesWithDefaults instantiates a new P This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetSkuCode - -`func (o *POSTParcelLineItems201ResponseDataAttributes) GetSkuCode() interface{}` - -GetSkuCode returns the SkuCode field if non-nil, zero value otherwise. - -### GetSkuCodeOk - -`func (o *POSTParcelLineItems201ResponseDataAttributes) GetSkuCodeOk() (*interface{}, bool)` - -GetSkuCodeOk returns a tuple with the SkuCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSkuCode - -`func (o *POSTParcelLineItems201ResponseDataAttributes) SetSkuCode(v interface{})` - -SetSkuCode sets SkuCode field to given value. - -### HasSkuCode - -`func (o *POSTParcelLineItems201ResponseDataAttributes) HasSkuCode() bool` - -HasSkuCode returns a boolean if a field has been set. - -### SetSkuCodeNil - -`func (o *POSTParcelLineItems201ResponseDataAttributes) SetSkuCodeNil(b bool)` - - SetSkuCodeNil sets the value for SkuCode to be an explicit nil - -### UnsetSkuCode -`func (o *POSTParcelLineItems201ResponseDataAttributes) UnsetSkuCode()` - -UnsetSkuCode ensures that no value is present for SkuCode, not even an explicit nil ### GetQuantity `func (o *POSTParcelLineItems201ResponseDataAttributes) GetQuantity() interface{}` diff --git a/api/docs/POSTParcelLineItems201ResponseDataRelationships.md b/api/docs/POSTParcelLineItems201ResponseDataRelationships.md index 8bb92ea6..13793ab8 100644 --- a/api/docs/POSTParcelLineItems201ResponseDataRelationships.md +++ b/api/docs/POSTParcelLineItems201ResponseDataRelationships.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Parcel** | Pointer to [**POSTParcelLineItems201ResponseDataRelationshipsParcel**](POSTParcelLineItems201ResponseDataRelationshipsParcel.md) | | [optional] **StockLineItem** | Pointer to [**POSTParcelLineItems201ResponseDataRelationshipsStockLineItem**](POSTParcelLineItems201ResponseDataRelationshipsStockLineItem.md) | | [optional] -**ShipmentLineItem** | Pointer to [**POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem**](POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -77,30 +77,30 @@ SetStockLineItem sets StockLineItem field to given value. HasStockLineItem returns a boolean if a field has been set. -### GetShipmentLineItem +### GetVersions -`func (o *POSTParcelLineItems201ResponseDataRelationships) GetShipmentLineItem() POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem` +`func (o *POSTParcelLineItems201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` -GetShipmentLineItem returns the ShipmentLineItem field if non-nil, zero value otherwise. +GetVersions returns the Versions field if non-nil, zero value otherwise. -### GetShipmentLineItemOk +### GetVersionsOk -`func (o *POSTParcelLineItems201ResponseDataRelationships) GetShipmentLineItemOk() (*POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem, bool)` +`func (o *POSTParcelLineItems201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` -GetShipmentLineItemOk returns a tuple with the ShipmentLineItem field if it's non-nil, zero value otherwise +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetShipmentLineItem +### SetVersions -`func (o *POSTParcelLineItems201ResponseDataRelationships) SetShipmentLineItem(v POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem)` +`func (o *POSTParcelLineItems201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` -SetShipmentLineItem sets ShipmentLineItem field to given value. +SetVersions sets Versions field to given value. -### HasShipmentLineItem +### HasVersions -`func (o *POSTParcelLineItems201ResponseDataRelationships) HasShipmentLineItem() bool` +`func (o *POSTParcelLineItems201ResponseDataRelationships) HasVersions() bool` -HasShipmentLineItem returns a boolean if a field has been set. +HasVersions returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem.md b/api/docs/POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem.md deleted file mode 100644 index ede0617b..00000000 --- a/api/docs/POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem.md +++ /dev/null @@ -1,82 +0,0 @@ -# POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] -**Data** | Pointer to [**POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData**](POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData.md) | | [optional] - -## Methods - -### NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem - -`func NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem() *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem` - -NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem instantiates a new POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemWithDefaults - -`func NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemWithDefaults() *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem` - -NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemWithDefaults instantiates a new POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetLinks - -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - -### GetData - -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) GetData() POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) GetDataOk() (*POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) SetData(v POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData.md b/api/docs/POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData.md deleted file mode 100644 index f75faf68..00000000 --- a/api/docs/POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData.md +++ /dev/null @@ -1,102 +0,0 @@ -# POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | Pointer to **interface{}** | The resource's type | [optional] -**Id** | Pointer to **interface{}** | The resource ID | [optional] - -## Methods - -### NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData - -`func NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData() *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData` - -NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData instantiates a new POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemDataWithDefaults - -`func NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemDataWithDefaults() *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData` - -NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemDataWithDefaults instantiates a new POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) GetType() interface{}` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) GetTypeOk() (*interface{}, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) SetType(v interface{})` - -SetType sets Type field to given value. - -### HasType - -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) HasType() bool` - -HasType returns a boolean if a field has been set. - -### SetTypeNil - -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) SetTypeNil(b bool)` - - SetTypeNil sets the value for Type to be an explicit nil - -### UnsetType -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) UnsetType()` - -UnsetType ensures that no value is present for Type, not even an explicit nil -### GetId - -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) GetId() interface{}` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) GetIdOk() (*interface{}, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) SetId(v interface{})` - -SetId sets Id field to given value. - -### HasId - -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) HasId() bool` - -HasId returns a boolean if a field has been set. - -### SetIdNil - -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) SetIdNil(b bool)` - - SetIdNil sets the value for Id to be an explicit nil - -### UnsetId -`func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) UnsetId()` - -UnsetId ensures that no value is present for Id, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/POSTParcels201ResponseDataAttributes.md b/api/docs/POSTParcels201ResponseDataAttributes.md index 97841fe9..e253065c 100644 --- a/api/docs/POSTParcels201ResponseDataAttributes.md +++ b/api/docs/POSTParcels201ResponseDataAttributes.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Weight** | **interface{}** | The parcel weight, used to automatically calculate the tax rates from the available carrier accounts. | -**UnitOfWeight** | **interface{}** | Can be one of 'gr', 'lb', or 'oz' | +**UnitOfWeight** | **interface{}** | The unit of weight. One of 'gr', 'oz', or 'lb'. | **EelPfc** | Pointer to **interface{}** | When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\". | [optional] -**ContentsType** | Pointer to **interface{}** | The type of item you are sending. Can be one of 'merchandise', 'gift', 'documents', 'returned_goods', 'sample', or 'other'. | [optional] +**ContentsType** | Pointer to **interface{}** | The type of item you are sending. | [optional] **ContentsExplanation** | Pointer to **interface{}** | If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute. | [optional] -**CustomsCertify** | Pointer to **interface{}** | Indicates if the provided information is accurate | [optional] +**CustomsCertify** | Pointer to **interface{}** | Indicates if the provided information is accurate. | [optional] **CustomsSigner** | Pointer to **interface{}** | This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this. | [optional] **NonDeliveryOption** | Pointer to **interface{}** | In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered. | [optional] **RestrictionType** | Pointer to **interface{}** | Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'. | [optional] @@ -24,11 +24,12 @@ Name | Type | Description | Notes **TrackingStatusDetail** | Pointer to **interface{}** | Additional information about the tracking status, automatically updated in real time by the shipping carrier. | [optional] **TrackingStatusUpdatedAt** | Pointer to **interface{}** | Time at which the parcel's tracking status was last updated. | [optional] **TrackingDetails** | Pointer to **interface{}** | The parcel's full tracking history, automatically updated in real time by the shipping carrier. | [optional] -**CarrierWeightOz** | Pointer to **interface{}** | The weight of the parcel as measured by the carrier in ounces (if available) | [optional] -**SignedBy** | Pointer to **interface{}** | The name of the person who signed for the parcel (if available) | [optional] +**CarrierWeightOz** | Pointer to **interface{}** | The weight of the parcel as measured by the carrier in ounces (if available). | [optional] +**SignedBy** | Pointer to **interface{}** | The name of the person who signed for the parcel (if available). | [optional] **Incoterm** | Pointer to **interface{}** | The type of Incoterm (if available). | [optional] +**DeliveryConfirmation** | Pointer to **interface{}** | The type of delivery confirmation option upon delivery. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -845,6 +846,41 @@ HasIncoterm returns a boolean if a field has been set. `func (o *POSTParcels201ResponseDataAttributes) UnsetIncoterm()` UnsetIncoterm ensures that no value is present for Incoterm, not even an explicit nil +### GetDeliveryConfirmation + +`func (o *POSTParcels201ResponseDataAttributes) GetDeliveryConfirmation() interface{}` + +GetDeliveryConfirmation returns the DeliveryConfirmation field if non-nil, zero value otherwise. + +### GetDeliveryConfirmationOk + +`func (o *POSTParcels201ResponseDataAttributes) GetDeliveryConfirmationOk() (*interface{}, bool)` + +GetDeliveryConfirmationOk returns a tuple with the DeliveryConfirmation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeliveryConfirmation + +`func (o *POSTParcels201ResponseDataAttributes) SetDeliveryConfirmation(v interface{})` + +SetDeliveryConfirmation sets DeliveryConfirmation field to given value. + +### HasDeliveryConfirmation + +`func (o *POSTParcels201ResponseDataAttributes) HasDeliveryConfirmation() bool` + +HasDeliveryConfirmation returns a boolean if a field has been set. + +### SetDeliveryConfirmationNil + +`func (o *POSTParcels201ResponseDataAttributes) SetDeliveryConfirmationNil(b bool)` + + SetDeliveryConfirmationNil sets the value for DeliveryConfirmation to be an explicit nil + +### UnsetDeliveryConfirmation +`func (o *POSTParcels201ResponseDataAttributes) UnsetDeliveryConfirmation()` + +UnsetDeliveryConfirmation ensures that no value is present for DeliveryConfirmation, not even an explicit nil ### GetReference `func (o *POSTParcels201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTParcels201ResponseDataRelationships.md b/api/docs/POSTParcels201ResponseDataRelationships.md index 589c74c7..4d9b3f60 100644 --- a/api/docs/POSTParcels201ResponseDataRelationships.md +++ b/api/docs/POSTParcels201ResponseDataRelationships.md @@ -4,11 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Shipment** | Pointer to [**POSTParcels201ResponseDataRelationshipsShipment**](POSTParcels201ResponseDataRelationshipsShipment.md) | | [optional] +**Shipment** | Pointer to [**POSTLineItems201ResponseDataRelationshipsShipment**](POSTLineItems201ResponseDataRelationshipsShipment.md) | | [optional] **Package** | Pointer to [**POSTParcels201ResponseDataRelationshipsPackage**](POSTParcels201ResponseDataRelationshipsPackage.md) | | [optional] **ParcelLineItems** | Pointer to [**POSTParcels201ResponseDataRelationshipsParcelLineItems**](POSTParcels201ResponseDataRelationshipsParcelLineItems.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -31,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetShipment -`func (o *POSTParcels201ResponseDataRelationships) GetShipment() POSTParcels201ResponseDataRelationshipsShipment` +`func (o *POSTParcels201ResponseDataRelationships) GetShipment() POSTLineItems201ResponseDataRelationshipsShipment` GetShipment returns the Shipment field if non-nil, zero value otherwise. ### GetShipmentOk -`func (o *POSTParcels201ResponseDataRelationships) GetShipmentOk() (*POSTParcels201ResponseDataRelationshipsShipment, bool)` +`func (o *POSTParcels201ResponseDataRelationships) GetShipmentOk() (*POSTLineItems201ResponseDataRelationshipsShipment, bool)` GetShipmentOk returns a tuple with the Shipment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetShipment -`func (o *POSTParcels201ResponseDataRelationships) SetShipment(v POSTParcels201ResponseDataRelationshipsShipment)` +`func (o *POSTParcels201ResponseDataRelationships) SetShipment(v POSTLineItems201ResponseDataRelationshipsShipment)` SetShipment sets Shipment field to given value. @@ -106,20 +107,20 @@ HasParcelLineItems returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTParcels201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTParcels201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTParcels201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTParcels201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTParcels201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTParcels201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -131,20 +132,20 @@ HasAttachments returns a boolean if a field has been set. ### GetEvents -`func (o *POSTParcels201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` +`func (o *POSTParcels201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *POSTParcels201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` +`func (o *POSTParcels201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *POSTParcels201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` +`func (o *POSTParcels201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -154,6 +155,31 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTParcels201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTParcels201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTParcels201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTParcels201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTPaymentMethods201ResponseDataAttributes.md b/api/docs/POSTPaymentMethods201ResponseDataAttributes.md index 3d2051ad..c07f8f2e 100644 --- a/api/docs/POSTPaymentMethods201ResponseDataAttributes.md +++ b/api/docs/POSTPaymentMethods201ResponseDataAttributes.md @@ -4,15 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PaymentSourceType** | **interface{}** | The payment source type, can be one of: 'AdyenPayment', 'AxervePayment', 'BraintreePayment', 'CheckoutComPayment', 'CreditCard', 'ExternalPayment', 'KlarnaPayment', 'PaypalPayment', 'SatispayPayment', 'StripePayment', or 'WireTransfer'. | +**Name** | Pointer to **interface{}** | The payment method's internal name. | [optional] +**PaymentSourceType** | **interface{}** | The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'credit_cards', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'. | **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] **Moto** | Pointer to **interface{}** | Send this attribute if you want to mark the payment as MOTO, must be supported by payment gateway. | [optional] **RequireCapture** | Pointer to **interface{}** | Send this attribute if you want to require the payment capture before fulfillment. | [optional] +**AutoPlace** | Pointer to **interface{}** | Send this attribute if you want to automatically place the order upon authorization performed asynchronously. | [optional] **AutoCapture** | Pointer to **interface{}** | Send this attribute if you want to automatically capture the payment upon authorization. | [optional] -**PriceAmountCents** | **interface{}** | The payment method's price, in cents | +**PriceAmountCents** | **interface{}** | The payment method's price, in cents. | **AutoCaptureMaxAmountCents** | Pointer to **interface{}** | Send this attribute if you want to limit automatic capture to orders for which the total amount is equal or less than the specified value, in cents. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -34,6 +38,41 @@ NewPOSTPaymentMethods201ResponseDataAttributesWithDefaults instantiates a new PO This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetName + +`func (o *POSTPaymentMethods201ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *POSTPaymentMethods201ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *POSTPaymentMethods201ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + +### HasName + +`func (o *POSTPaymentMethods201ResponseDataAttributes) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *POSTPaymentMethods201ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *POSTPaymentMethods201ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil ### GetPaymentSourceType `func (o *POSTPaymentMethods201ResponseDataAttributes) GetPaymentSourceType() interface{}` @@ -169,6 +208,41 @@ HasRequireCapture returns a boolean if a field has been set. `func (o *POSTPaymentMethods201ResponseDataAttributes) UnsetRequireCapture()` UnsetRequireCapture ensures that no value is present for RequireCapture, not even an explicit nil +### GetAutoPlace + +`func (o *POSTPaymentMethods201ResponseDataAttributes) GetAutoPlace() interface{}` + +GetAutoPlace returns the AutoPlace field if non-nil, zero value otherwise. + +### GetAutoPlaceOk + +`func (o *POSTPaymentMethods201ResponseDataAttributes) GetAutoPlaceOk() (*interface{}, bool)` + +GetAutoPlaceOk returns a tuple with the AutoPlace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutoPlace + +`func (o *POSTPaymentMethods201ResponseDataAttributes) SetAutoPlace(v interface{})` + +SetAutoPlace sets AutoPlace field to given value. + +### HasAutoPlace + +`func (o *POSTPaymentMethods201ResponseDataAttributes) HasAutoPlace() bool` + +HasAutoPlace returns a boolean if a field has been set. + +### SetAutoPlaceNil + +`func (o *POSTPaymentMethods201ResponseDataAttributes) SetAutoPlaceNil(b bool)` + + SetAutoPlaceNil sets the value for AutoPlace to be an explicit nil + +### UnsetAutoPlace +`func (o *POSTPaymentMethods201ResponseDataAttributes) UnsetAutoPlace()` + +UnsetAutoPlace ensures that no value is present for AutoPlace, not even an explicit nil ### GetAutoCapture `func (o *POSTPaymentMethods201ResponseDataAttributes) GetAutoCapture() interface{}` @@ -269,6 +343,76 @@ HasAutoCaptureMaxAmountCents returns a boolean if a field has been set. `func (o *POSTPaymentMethods201ResponseDataAttributes) UnsetAutoCaptureMaxAmountCents()` UnsetAutoCaptureMaxAmountCents ensures that no value is present for AutoCaptureMaxAmountCents, not even an explicit nil +### GetDisable + +`func (o *POSTPaymentMethods201ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *POSTPaymentMethods201ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *POSTPaymentMethods201ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *POSTPaymentMethods201ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *POSTPaymentMethods201ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *POSTPaymentMethods201ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *POSTPaymentMethods201ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *POSTPaymentMethods201ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *POSTPaymentMethods201ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *POSTPaymentMethods201ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *POSTPaymentMethods201ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *POSTPaymentMethods201ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil ### GetReference `func (o *POSTPaymentMethods201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTPaymentMethods201ResponseDataRelationships.md b/api/docs/POSTPaymentMethods201ResponseDataRelationships.md index 4d47bdb8..87ad9a2a 100644 --- a/api/docs/POSTPaymentMethods201ResponseDataRelationships.md +++ b/api/docs/POSTPaymentMethods201ResponseDataRelationships.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Market** | Pointer to [**POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket**](POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket.md) | | [optional] **PaymentGateway** | Pointer to [**POSTAdyenPayments201ResponseDataRelationshipsPaymentGateway**](POSTAdyenPayments201ResponseDataRelationshipsPaymentGateway.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -79,20 +80,20 @@ HasPaymentGateway returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTPaymentMethods201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTPaymentMethods201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTPaymentMethods201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTPaymentMethods201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTPaymentMethods201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTPaymentMethods201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -102,6 +103,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTPaymentMethods201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTPaymentMethods201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTPaymentMethods201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTPaymentMethods201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTPaymentOptions201Response.md b/api/docs/POSTPaymentOptions201Response.md new file mode 100644 index 00000000..89a47f56 --- /dev/null +++ b/api/docs/POSTPaymentOptions201Response.md @@ -0,0 +1,56 @@ +# POSTPaymentOptions201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**POSTPaymentOptions201ResponseData**](POSTPaymentOptions201ResponseData.md) | | [optional] + +## Methods + +### NewPOSTPaymentOptions201Response + +`func NewPOSTPaymentOptions201Response() *POSTPaymentOptions201Response` + +NewPOSTPaymentOptions201Response instantiates a new POSTPaymentOptions201Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTPaymentOptions201ResponseWithDefaults + +`func NewPOSTPaymentOptions201ResponseWithDefaults() *POSTPaymentOptions201Response` + +NewPOSTPaymentOptions201ResponseWithDefaults instantiates a new POSTPaymentOptions201Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *POSTPaymentOptions201Response) GetData() POSTPaymentOptions201ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTPaymentOptions201Response) GetDataOk() (*POSTPaymentOptions201ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTPaymentOptions201Response) SetData(v POSTPaymentOptions201ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTPaymentOptions201Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTPaymentOptions201ResponseData.md b/api/docs/POSTPaymentOptions201ResponseData.md new file mode 100644 index 00000000..7c66c572 --- /dev/null +++ b/api/docs/POSTPaymentOptions201ResponseData.md @@ -0,0 +1,180 @@ +# POSTPaymentOptions201ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**POSTPaymentOptions201ResponseDataAttributes**](POSTPaymentOptions201ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTPaymentOptions201ResponseDataRelationships**](POSTPaymentOptions201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPOSTPaymentOptions201ResponseData + +`func NewPOSTPaymentOptions201ResponseData() *POSTPaymentOptions201ResponseData` + +NewPOSTPaymentOptions201ResponseData instantiates a new POSTPaymentOptions201ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTPaymentOptions201ResponseDataWithDefaults + +`func NewPOSTPaymentOptions201ResponseDataWithDefaults() *POSTPaymentOptions201ResponseData` + +NewPOSTPaymentOptions201ResponseDataWithDefaults instantiates a new POSTPaymentOptions201ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *POSTPaymentOptions201ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTPaymentOptions201ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTPaymentOptions201ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTPaymentOptions201ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTPaymentOptions201ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTPaymentOptions201ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *POSTPaymentOptions201ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTPaymentOptions201ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTPaymentOptions201ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTPaymentOptions201ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTPaymentOptions201ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTPaymentOptions201ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *POSTPaymentOptions201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTPaymentOptions201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTPaymentOptions201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTPaymentOptions201ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *POSTPaymentOptions201ResponseData) GetAttributes() POSTPaymentOptions201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *POSTPaymentOptions201ResponseData) GetAttributesOk() (*POSTPaymentOptions201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *POSTPaymentOptions201ResponseData) SetAttributes(v POSTPaymentOptions201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *POSTPaymentOptions201ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *POSTPaymentOptions201ResponseData) GetRelationships() POSTPaymentOptions201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *POSTPaymentOptions201ResponseData) GetRelationshipsOk() (*POSTPaymentOptions201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *POSTPaymentOptions201ResponseData) SetRelationships(v POSTPaymentOptions201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *POSTPaymentOptions201ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTPaymentOptions201ResponseDataAttributes.md b/api/docs/POSTPaymentOptions201ResponseDataAttributes.md new file mode 100644 index 00000000..7511b843 --- /dev/null +++ b/api/docs/POSTPaymentOptions201ResponseDataAttributes.md @@ -0,0 +1,236 @@ +# POSTPaymentOptions201ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **interface{}** | The payment option's name. Wehn blank is inherited by payment source type. | [optional] +**PaymentSourceType** | **interface{}** | The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'credit_cards', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'. | +**Data** | **interface{}** | The payment options data to be added to the payment source payload. Check payment specific API for more details. | +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPOSTPaymentOptions201ResponseDataAttributes + +`func NewPOSTPaymentOptions201ResponseDataAttributes(paymentSourceType interface{}, data interface{}, ) *POSTPaymentOptions201ResponseDataAttributes` + +NewPOSTPaymentOptions201ResponseDataAttributes instantiates a new POSTPaymentOptions201ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTPaymentOptions201ResponseDataAttributesWithDefaults + +`func NewPOSTPaymentOptions201ResponseDataAttributesWithDefaults() *POSTPaymentOptions201ResponseDataAttributes` + +NewPOSTPaymentOptions201ResponseDataAttributesWithDefaults instantiates a new POSTPaymentOptions201ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *POSTPaymentOptions201ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *POSTPaymentOptions201ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *POSTPaymentOptions201ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + +### HasName + +`func (o *POSTPaymentOptions201ResponseDataAttributes) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *POSTPaymentOptions201ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *POSTPaymentOptions201ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetPaymentSourceType + +`func (o *POSTPaymentOptions201ResponseDataAttributes) GetPaymentSourceType() interface{}` + +GetPaymentSourceType returns the PaymentSourceType field if non-nil, zero value otherwise. + +### GetPaymentSourceTypeOk + +`func (o *POSTPaymentOptions201ResponseDataAttributes) GetPaymentSourceTypeOk() (*interface{}, bool)` + +GetPaymentSourceTypeOk returns a tuple with the PaymentSourceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentSourceType + +`func (o *POSTPaymentOptions201ResponseDataAttributes) SetPaymentSourceType(v interface{})` + +SetPaymentSourceType sets PaymentSourceType field to given value. + + +### SetPaymentSourceTypeNil + +`func (o *POSTPaymentOptions201ResponseDataAttributes) SetPaymentSourceTypeNil(b bool)` + + SetPaymentSourceTypeNil sets the value for PaymentSourceType to be an explicit nil + +### UnsetPaymentSourceType +`func (o *POSTPaymentOptions201ResponseDataAttributes) UnsetPaymentSourceType()` + +UnsetPaymentSourceType ensures that no value is present for PaymentSourceType, not even an explicit nil +### GetData + +`func (o *POSTPaymentOptions201ResponseDataAttributes) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTPaymentOptions201ResponseDataAttributes) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTPaymentOptions201ResponseDataAttributes) SetData(v interface{})` + +SetData sets Data field to given value. + + +### SetDataNil + +`func (o *POSTPaymentOptions201ResponseDataAttributes) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *POSTPaymentOptions201ResponseDataAttributes) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil +### GetReference + +`func (o *POSTPaymentOptions201ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *POSTPaymentOptions201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *POSTPaymentOptions201ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *POSTPaymentOptions201ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *POSTPaymentOptions201ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *POSTPaymentOptions201ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *POSTPaymentOptions201ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *POSTPaymentOptions201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *POSTPaymentOptions201ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *POSTPaymentOptions201ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *POSTPaymentOptions201ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *POSTPaymentOptions201ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *POSTPaymentOptions201ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *POSTPaymentOptions201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *POSTPaymentOptions201ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *POSTPaymentOptions201ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *POSTPaymentOptions201ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *POSTPaymentOptions201ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTPaymentOptions201ResponseDataRelationships.md b/api/docs/POSTPaymentOptions201ResponseDataRelationships.md new file mode 100644 index 00000000..d5e6be21 --- /dev/null +++ b/api/docs/POSTPaymentOptions201ResponseDataRelationships.md @@ -0,0 +1,82 @@ +# POSTPaymentOptions201ResponseDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Order** | Pointer to [**POSTAdyenPayments201ResponseDataRelationshipsOrder**](POSTAdyenPayments201ResponseDataRelationshipsOrder.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] + +## Methods + +### NewPOSTPaymentOptions201ResponseDataRelationships + +`func NewPOSTPaymentOptions201ResponseDataRelationships() *POSTPaymentOptions201ResponseDataRelationships` + +NewPOSTPaymentOptions201ResponseDataRelationships instantiates a new POSTPaymentOptions201ResponseDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTPaymentOptions201ResponseDataRelationshipsWithDefaults + +`func NewPOSTPaymentOptions201ResponseDataRelationshipsWithDefaults() *POSTPaymentOptions201ResponseDataRelationships` + +NewPOSTPaymentOptions201ResponseDataRelationshipsWithDefaults instantiates a new POSTPaymentOptions201ResponseDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrder + +`func (o *POSTPaymentOptions201ResponseDataRelationships) GetOrder() POSTAdyenPayments201ResponseDataRelationshipsOrder` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *POSTPaymentOptions201ResponseDataRelationships) GetOrderOk() (*POSTAdyenPayments201ResponseDataRelationshipsOrder, bool)` + +GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrder + +`func (o *POSTPaymentOptions201ResponseDataRelationships) SetOrder(v POSTAdyenPayments201ResponseDataRelationshipsOrder)` + +SetOrder sets Order field to given value. + +### HasOrder + +`func (o *POSTPaymentOptions201ResponseDataRelationships) HasOrder() bool` + +HasOrder returns a boolean if a field has been set. + +### GetAttachments + +`func (o *POSTPaymentOptions201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *POSTPaymentOptions201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *POSTPaymentOptions201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *POSTPaymentOptions201ResponseDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTPaypalGateways201ResponseDataAttributes.md b/api/docs/POSTPaypalGateways201ResponseDataAttributes.md index d8f0136a..670e713f 100644 --- a/api/docs/POSTPaypalGateways201ResponseDataAttributes.md +++ b/api/docs/POSTPaypalGateways201ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The payment gateway's internal name. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **ClientId** | **interface{}** | The gateway client ID. | **ClientSecret** | **interface{}** | The gateway client secret. | diff --git a/api/docs/POSTPaypalGateways201ResponseDataRelationships.md b/api/docs/POSTPaypalGateways201ResponseDataRelationships.md index 1859a31b..64c97e5d 100644 --- a/api/docs/POSTPaypalGateways201ResponseDataRelationships.md +++ b/api/docs/POSTPaypalGateways201ResponseDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods**](POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] **PaypalPayments** | Pointer to [**POSTPaypalGateways201ResponseDataRelationshipsPaypalPayments**](POSTPaypalGateways201ResponseDataRelationshipsPaypalPayments.md) | | [optional] ## Methods @@ -51,6 +52,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTPaypalGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTPaypalGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTPaypalGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTPaypalGateways201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetPaypalPayments `func (o *POSTPaypalGateways201ResponseDataRelationships) GetPaypalPayments() POSTPaypalGateways201ResponseDataRelationshipsPaypalPayments` diff --git a/api/docs/POSTPaypalPayments201ResponseDataAttributes.md b/api/docs/POSTPaypalPayments201ResponseDataAttributes.md index 1794528d..d3004d8d 100644 --- a/api/docs/POSTPaypalPayments201ResponseDataAttributes.md +++ b/api/docs/POSTPaypalPayments201ResponseDataAttributes.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **CancelUrl** | **interface{}** | The URL where the payer is redirected after they cancel the payment. | **NoteToPayer** | Pointer to **interface{}** | A free-form field that you can use to send a note to the payer on PayPal. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTPercentageDiscountPromotions201ResponseData.md b/api/docs/POSTPercentageDiscountPromotions201ResponseData.md index aa27ce65..b01b688d 100644 --- a/api/docs/POSTPercentageDiscountPromotions201ResponseData.md +++ b/api/docs/POSTPercentageDiscountPromotions201ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**POSTPercentageDiscountPromotions201ResponseDataAttributes**](POSTPercentageDiscountPromotions201ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTFixedPricePromotions201ResponseDataRelationships**](POSTFixedPricePromotions201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTBuyXPayYPromotions201ResponseDataRelationships**](POSTBuyXPayYPromotions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *POSTPercentageDiscountPromotions201ResponseData) GetRelationships() POSTFixedPricePromotions201ResponseDataRelationships` +`func (o *POSTPercentageDiscountPromotions201ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *POSTPercentageDiscountPromotions201ResponseData) GetRelationshipsOk() (*POSTFixedPricePromotions201ResponseDataRelationships, bool)` +`func (o *POSTPercentageDiscountPromotions201ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *POSTPercentageDiscountPromotions201ResponseData) SetRelationships(v POSTFixedPricePromotions201ResponseDataRelationships)` +`func (o *POSTPercentageDiscountPromotions201ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/POSTPercentageDiscountPromotions201ResponseDataAttributes.md b/api/docs/POSTPercentageDiscountPromotions201ResponseDataAttributes.md index 51f26d77..f193e7d2 100644 --- a/api/docs/POSTPercentageDiscountPromotions201ResponseDataAttributes.md +++ b/api/docs/POSTPercentageDiscountPromotions201ResponseDataAttributes.md @@ -6,11 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The promotion's internal name. | **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**Exclusive** | Pointer to **interface{}** | Indicates if the promotion will be applied exclusively, based on its priority score. | [optional] +**Priority** | Pointer to **interface{}** | The priority assigned to the promotion (lower means higher priority). | [optional] **StartsAt** | **interface{}** | The activation date/time of this promotion. | **ExpiresAt** | **interface{}** | The expiration date/time of this promotion (must be after starts_at). | -**TotalUsageLimit** | **interface{}** | The total number of times this promotion can be applied. | +**TotalUsageLimit** | Pointer to **interface{}** | The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **Percentage** | **interface{}** | The discount percentage to be applied. | @@ -18,7 +22,7 @@ Name | Type | Description | Notes ### NewPOSTPercentageDiscountPromotions201ResponseDataAttributes -`func NewPOSTPercentageDiscountPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, totalUsageLimit interface{}, percentage interface{}, ) *POSTPercentageDiscountPromotions201ResponseDataAttributes` +`func NewPOSTPercentageDiscountPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, percentage interface{}, ) *POSTPercentageDiscountPromotions201ResponseDataAttributes` NewPOSTPercentageDiscountPromotions201ResponseDataAttributes instantiates a new POSTPercentageDiscountPromotions201ResponseDataAttributes object This constructor will assign default values to properties that have it defined, @@ -98,6 +102,76 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExclusive + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetExclusive() interface{}` + +GetExclusive returns the Exclusive field if non-nil, zero value otherwise. + +### GetExclusiveOk + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool)` + +GetExclusiveOk returns a tuple with the Exclusive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExclusive + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) SetExclusive(v interface{})` + +SetExclusive sets Exclusive field to given value. + +### HasExclusive + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) HasExclusive() bool` + +HasExclusive returns a boolean if a field has been set. + +### SetExclusiveNil + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) SetExclusiveNil(b bool)` + + SetExclusiveNil sets the value for Exclusive to be an explicit nil + +### UnsetExclusive +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) UnsetExclusive()` + +UnsetExclusive ensures that no value is present for Exclusive, not even an explicit nil +### GetPriority + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetPriority() interface{}` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetPriorityOk() (*interface{}, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) SetPriority(v interface{})` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### SetPriorityNil + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) SetPriorityNil(b bool)` + + SetPriorityNil sets the value for Priority to be an explicit nil + +### UnsetPriority +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) UnsetPriority()` + +UnsetPriority ensures that no value is present for Priority, not even an explicit nil ### GetStartsAt `func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetStartsAt() interface{}` @@ -177,6 +251,11 @@ and a boolean to check if the value has been set. SetTotalUsageLimit sets TotalUsageLimit field to given value. +### HasTotalUsageLimit + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) HasTotalUsageLimit() bool` + +HasTotalUsageLimit returns a boolean if a field has been set. ### SetTotalUsageLimitNil @@ -188,6 +267,76 @@ SetTotalUsageLimit sets TotalUsageLimit field to given value. `func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) UnsetTotalUsageLimit()` UnsetTotalUsageLimit ensures that no value is present for TotalUsageLimit, not even an explicit nil +### GetDisable + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil ### GetReference `func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTPriceFrequencyTiers201ResponseDataAttributes.md b/api/docs/POSTPriceFrequencyTiers201ResponseDataAttributes.md index 059bc3c5..9667f472 100644 --- a/api/docs/POSTPriceFrequencyTiers201ResponseDataAttributes.md +++ b/api/docs/POSTPriceFrequencyTiers201ResponseDataAttributes.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **interface{}** | The price tier's name | +**Name** | **interface{}** | The price tier's name. | **UpTo** | Pointer to **interface{}** | The tier upper limit, expressed as the line item frequency in days (or frequency label, ie 'monthly'). When 'null' it means infinity (useful to have an always matching tier). | [optional] **PriceAmountCents** | **interface{}** | The price of this price tier, in cents. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTPriceFrequencyTiers201ResponseDataRelationships.md b/api/docs/POSTPriceFrequencyTiers201ResponseDataRelationships.md index e0f55060..a01d7175 100644 --- a/api/docs/POSTPriceFrequencyTiers201ResponseDataRelationships.md +++ b/api/docs/POSTPriceFrequencyTiers201ResponseDataRelationships.md @@ -5,8 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Price** | Pointer to [**POSTPriceFrequencyTiers201ResponseDataRelationshipsPrice**](POSTPriceFrequencyTiers201ResponseDataRelationshipsPrice.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] ## Methods @@ -54,20 +55,20 @@ HasPrice returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -77,22 +78,47 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetEvents -`func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` +`func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` +`func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` +`func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` SetEvents sets Events field to given value. diff --git a/api/docs/POSTPriceListSchedulers201Response.md b/api/docs/POSTPriceListSchedulers201Response.md new file mode 100644 index 00000000..a8b390a4 --- /dev/null +++ b/api/docs/POSTPriceListSchedulers201Response.md @@ -0,0 +1,56 @@ +# POSTPriceListSchedulers201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**POSTPriceListSchedulers201ResponseData**](POSTPriceListSchedulers201ResponseData.md) | | [optional] + +## Methods + +### NewPOSTPriceListSchedulers201Response + +`func NewPOSTPriceListSchedulers201Response() *POSTPriceListSchedulers201Response` + +NewPOSTPriceListSchedulers201Response instantiates a new POSTPriceListSchedulers201Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTPriceListSchedulers201ResponseWithDefaults + +`func NewPOSTPriceListSchedulers201ResponseWithDefaults() *POSTPriceListSchedulers201Response` + +NewPOSTPriceListSchedulers201ResponseWithDefaults instantiates a new POSTPriceListSchedulers201Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *POSTPriceListSchedulers201Response) GetData() POSTPriceListSchedulers201ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTPriceListSchedulers201Response) GetDataOk() (*POSTPriceListSchedulers201ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTPriceListSchedulers201Response) SetData(v POSTPriceListSchedulers201ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTPriceListSchedulers201Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTPriceListSchedulers201ResponseData.md b/api/docs/POSTPriceListSchedulers201ResponseData.md new file mode 100644 index 00000000..09d1a819 --- /dev/null +++ b/api/docs/POSTPriceListSchedulers201ResponseData.md @@ -0,0 +1,180 @@ +# POSTPriceListSchedulers201ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**POSTPriceListSchedulers201ResponseDataAttributes**](POSTPriceListSchedulers201ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTPriceListSchedulers201ResponseDataRelationships**](POSTPriceListSchedulers201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPOSTPriceListSchedulers201ResponseData + +`func NewPOSTPriceListSchedulers201ResponseData() *POSTPriceListSchedulers201ResponseData` + +NewPOSTPriceListSchedulers201ResponseData instantiates a new POSTPriceListSchedulers201ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTPriceListSchedulers201ResponseDataWithDefaults + +`func NewPOSTPriceListSchedulers201ResponseDataWithDefaults() *POSTPriceListSchedulers201ResponseData` + +NewPOSTPriceListSchedulers201ResponseDataWithDefaults instantiates a new POSTPriceListSchedulers201ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *POSTPriceListSchedulers201ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTPriceListSchedulers201ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTPriceListSchedulers201ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTPriceListSchedulers201ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTPriceListSchedulers201ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTPriceListSchedulers201ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *POSTPriceListSchedulers201ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTPriceListSchedulers201ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTPriceListSchedulers201ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTPriceListSchedulers201ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTPriceListSchedulers201ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTPriceListSchedulers201ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *POSTPriceListSchedulers201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTPriceListSchedulers201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTPriceListSchedulers201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTPriceListSchedulers201ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *POSTPriceListSchedulers201ResponseData) GetAttributes() POSTPriceListSchedulers201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *POSTPriceListSchedulers201ResponseData) GetAttributesOk() (*POSTPriceListSchedulers201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *POSTPriceListSchedulers201ResponseData) SetAttributes(v POSTPriceListSchedulers201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *POSTPriceListSchedulers201ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *POSTPriceListSchedulers201ResponseData) GetRelationships() POSTPriceListSchedulers201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *POSTPriceListSchedulers201ResponseData) GetRelationshipsOk() (*POSTPriceListSchedulers201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *POSTPriceListSchedulers201ResponseData) SetRelationships(v POSTPriceListSchedulers201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *POSTPriceListSchedulers201ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTPriceListSchedulers201ResponseDataAttributes.md b/api/docs/POSTPriceListSchedulers201ResponseDataAttributes.md new file mode 100644 index 00000000..de74c67b --- /dev/null +++ b/api/docs/POSTPriceListSchedulers201ResponseDataAttributes.md @@ -0,0 +1,303 @@ +# POSTPriceListSchedulers201ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **interface{}** | The price list scheduler's internal name. | +**StartsAt** | **interface{}** | The activation date/time of this price list scheduler. | +**ExpiresAt** | **interface{}** | The expiration date/time of this price list scheduler (must be after starts_at). | +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPOSTPriceListSchedulers201ResponseDataAttributes + +`func NewPOSTPriceListSchedulers201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, ) *POSTPriceListSchedulers201ResponseDataAttributes` + +NewPOSTPriceListSchedulers201ResponseDataAttributes instantiates a new POSTPriceListSchedulers201ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTPriceListSchedulers201ResponseDataAttributesWithDefaults + +`func NewPOSTPriceListSchedulers201ResponseDataAttributesWithDefaults() *POSTPriceListSchedulers201ResponseDataAttributes` + +NewPOSTPriceListSchedulers201ResponseDataAttributesWithDefaults instantiates a new POSTPriceListSchedulers201ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + + +### SetNameNil + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetStartsAt + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetStartsAt() interface{}` + +GetStartsAt returns the StartsAt field if non-nil, zero value otherwise. + +### GetStartsAtOk + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool)` + +GetStartsAtOk returns a tuple with the StartsAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartsAt + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetStartsAt(v interface{})` + +SetStartsAt sets StartsAt field to given value. + + +### SetStartsAtNil + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetStartsAtNil(b bool)` + + SetStartsAtNil sets the value for StartsAt to be an explicit nil + +### UnsetStartsAt +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) UnsetStartsAt()` + +UnsetStartsAt ensures that no value is present for StartsAt, not even an explicit nil +### GetExpiresAt + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetExpiresAt() interface{}` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetExpiresAt(v interface{})` + +SetExpiresAt sets ExpiresAt field to given value. + + +### SetExpiresAtNil + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetExpiresAtNil(b bool)` + + SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil + +### UnsetExpiresAt +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) UnsetExpiresAt()` + +UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil +### GetDisable + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil +### GetReference + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *POSTPriceListSchedulers201ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTPriceListSchedulers201ResponseDataRelationships.md b/api/docs/POSTPriceListSchedulers201ResponseDataRelationships.md new file mode 100644 index 00000000..0168974a --- /dev/null +++ b/api/docs/POSTPriceListSchedulers201ResponseDataRelationships.md @@ -0,0 +1,134 @@ +# POSTPriceListSchedulers201ResponseDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Market** | Pointer to [**POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket**](POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket.md) | | [optional] +**PriceList** | Pointer to [**POSTMarkets201ResponseDataRelationshipsPriceList**](POSTMarkets201ResponseDataRelationshipsPriceList.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewPOSTPriceListSchedulers201ResponseDataRelationships + +`func NewPOSTPriceListSchedulers201ResponseDataRelationships() *POSTPriceListSchedulers201ResponseDataRelationships` + +NewPOSTPriceListSchedulers201ResponseDataRelationships instantiates a new POSTPriceListSchedulers201ResponseDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTPriceListSchedulers201ResponseDataRelationshipsWithDefaults + +`func NewPOSTPriceListSchedulers201ResponseDataRelationshipsWithDefaults() *POSTPriceListSchedulers201ResponseDataRelationships` + +NewPOSTPriceListSchedulers201ResponseDataRelationshipsWithDefaults instantiates a new POSTPriceListSchedulers201ResponseDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMarket + +`func (o *POSTPriceListSchedulers201ResponseDataRelationships) GetMarket() POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket` + +GetMarket returns the Market field if non-nil, zero value otherwise. + +### GetMarketOk + +`func (o *POSTPriceListSchedulers201ResponseDataRelationships) GetMarketOk() (*POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket, bool)` + +GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarket + +`func (o *POSTPriceListSchedulers201ResponseDataRelationships) SetMarket(v POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket)` + +SetMarket sets Market field to given value. + +### HasMarket + +`func (o *POSTPriceListSchedulers201ResponseDataRelationships) HasMarket() bool` + +HasMarket returns a boolean if a field has been set. + +### GetPriceList + +`func (o *POSTPriceListSchedulers201ResponseDataRelationships) GetPriceList() POSTMarkets201ResponseDataRelationshipsPriceList` + +GetPriceList returns the PriceList field if non-nil, zero value otherwise. + +### GetPriceListOk + +`func (o *POSTPriceListSchedulers201ResponseDataRelationships) GetPriceListOk() (*POSTMarkets201ResponseDataRelationshipsPriceList, bool)` + +GetPriceListOk returns a tuple with the PriceList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriceList + +`func (o *POSTPriceListSchedulers201ResponseDataRelationships) SetPriceList(v POSTMarkets201ResponseDataRelationshipsPriceList)` + +SetPriceList sets PriceList field to given value. + +### HasPriceList + +`func (o *POSTPriceListSchedulers201ResponseDataRelationships) HasPriceList() bool` + +HasPriceList returns a boolean if a field has been set. + +### GetEvents + +`func (o *POSTPriceListSchedulers201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *POSTPriceListSchedulers201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *POSTPriceListSchedulers201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *POSTPriceListSchedulers201ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTPriceListSchedulers201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTPriceListSchedulers201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTPriceListSchedulers201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTPriceListSchedulers201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTPriceLists201ResponseDataAttributes.md b/api/docs/POSTPriceLists201ResponseDataAttributes.md index 416943f9..e3085f53 100644 --- a/api/docs/POSTPriceLists201ResponseDataAttributes.md +++ b/api/docs/POSTPriceLists201ResponseDataAttributes.md @@ -4,11 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **interface{}** | The price list's internal name | +**Name** | **interface{}** | The price list's internal name. | +**Code** | Pointer to **interface{}** | A string that you can use to identify the price list (must be unique within the environment). | [optional] **CurrencyCode** | **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | **TaxIncluded** | Pointer to **interface{}** | Indicates if the associated prices include taxes. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Rules** | Pointer to **interface{}** | The rules (using Rules Engine) to be applied. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -60,6 +62,41 @@ SetName sets Name field to given value. `func (o *POSTPriceLists201ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCode + +`func (o *POSTPriceLists201ResponseDataAttributes) GetCode() interface{}` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *POSTPriceLists201ResponseDataAttributes) GetCodeOk() (*interface{}, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *POSTPriceLists201ResponseDataAttributes) SetCode(v interface{})` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *POSTPriceLists201ResponseDataAttributes) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### SetCodeNil + +`func (o *POSTPriceLists201ResponseDataAttributes) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *POSTPriceLists201ResponseDataAttributes) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil ### GetCurrencyCode `func (o *POSTPriceLists201ResponseDataAttributes) GetCurrencyCode() interface{}` @@ -195,6 +232,41 @@ HasReferenceOrigin returns a boolean if a field has been set. `func (o *POSTPriceLists201ResponseDataAttributes) UnsetReferenceOrigin()` UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetRules + +`func (o *POSTPriceLists201ResponseDataAttributes) GetRules() interface{}` + +GetRules returns the Rules field if non-nil, zero value otherwise. + +### GetRulesOk + +`func (o *POSTPriceLists201ResponseDataAttributes) GetRulesOk() (*interface{}, bool)` + +GetRulesOk returns a tuple with the Rules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRules + +`func (o *POSTPriceLists201ResponseDataAttributes) SetRules(v interface{})` + +SetRules sets Rules field to given value. + +### HasRules + +`func (o *POSTPriceLists201ResponseDataAttributes) HasRules() bool` + +HasRules returns a boolean if a field has been set. + +### SetRulesNil + +`func (o *POSTPriceLists201ResponseDataAttributes) SetRulesNil(b bool)` + + SetRulesNil sets the value for Rules to be an explicit nil + +### UnsetRules +`func (o *POSTPriceLists201ResponseDataAttributes) UnsetRules()` + +UnsetRules ensures that no value is present for Rules, not even an explicit nil ### GetMetadata `func (o *POSTPriceLists201ResponseDataAttributes) GetMetadata() interface{}` diff --git a/api/docs/POSTPriceLists201ResponseDataRelationships.md b/api/docs/POSTPriceLists201ResponseDataRelationships.md index dc695bf2..83f02536 100644 --- a/api/docs/POSTPriceLists201ResponseDataRelationships.md +++ b/api/docs/POSTPriceLists201ResponseDataRelationships.md @@ -5,7 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prices** | Pointer to [**POSTPriceLists201ResponseDataRelationshipsPrices**](POSTPriceLists201ResponseDataRelationshipsPrices.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**PriceListSchedulers** | Pointer to [**POSTMarkets201ResponseDataRelationshipsPriceListSchedulers**](POSTMarkets201ResponseDataRelationshipsPriceListSchedulers.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -51,22 +53,47 @@ SetPrices sets Prices field to given value. HasPrices returns a boolean if a field has been set. +### GetPriceListSchedulers + +`func (o *POSTPriceLists201ResponseDataRelationships) GetPriceListSchedulers() POSTMarkets201ResponseDataRelationshipsPriceListSchedulers` + +GetPriceListSchedulers returns the PriceListSchedulers field if non-nil, zero value otherwise. + +### GetPriceListSchedulersOk + +`func (o *POSTPriceLists201ResponseDataRelationships) GetPriceListSchedulersOk() (*POSTMarkets201ResponseDataRelationshipsPriceListSchedulers, bool)` + +GetPriceListSchedulersOk returns a tuple with the PriceListSchedulers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriceListSchedulers + +`func (o *POSTPriceLists201ResponseDataRelationships) SetPriceListSchedulers(v POSTMarkets201ResponseDataRelationshipsPriceListSchedulers)` + +SetPriceListSchedulers sets PriceListSchedulers field to given value. + +### HasPriceListSchedulers + +`func (o *POSTPriceLists201ResponseDataRelationships) HasPriceListSchedulers() bool` + +HasPriceListSchedulers returns a boolean if a field has been set. + ### GetAttachments -`func (o *POSTPriceLists201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTPriceLists201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTPriceLists201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTPriceLists201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTPriceLists201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTPriceLists201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -76,6 +103,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTPriceLists201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTPriceLists201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTPriceLists201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTPriceLists201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTPriceVolumeTiers201ResponseDataAttributes.md b/api/docs/POSTPriceVolumeTiers201ResponseDataAttributes.md index 9922aa54..7139be50 100644 --- a/api/docs/POSTPriceVolumeTiers201ResponseDataAttributes.md +++ b/api/docs/POSTPriceVolumeTiers201ResponseDataAttributes.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **interface{}** | The price tier's name | +**Name** | **interface{}** | The price tier's name. | **UpTo** | Pointer to **interface{}** | The tier upper limit, expressed as the line item quantity. When 'null' it means infinity (useful to have an always matching tier). | [optional] **PriceAmountCents** | **interface{}** | The price of this price tier, in cents. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTPrices201ResponseDataAttributes.md b/api/docs/POSTPrices201ResponseDataAttributes.md index 180188ca..f01d531f 100644 --- a/api/docs/POSTPrices201ResponseDataAttributes.md +++ b/api/docs/POSTPrices201ResponseDataAttributes.md @@ -6,16 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SkuCode** | Pointer to **interface{}** | The code of the associated SKU. When creating a price, either a valid sku_code or a SKU relationship must be present. | [optional] **AmountCents** | **interface{}** | The SKU price amount for the associated price list, in cents. | -**CompareAtAmountCents** | **interface{}** | The compared price amount, in cents. Useful to display a percentage discount. | +**CompareAtAmountCents** | Pointer to **interface{}** | The compared price amount, in cents. Useful to display a percentage discount. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Rules** | Pointer to **interface{}** | The rules (using Rules Engine) to be applied. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods ### NewPOSTPrices201ResponseDataAttributes -`func NewPOSTPrices201ResponseDataAttributes(amountCents interface{}, compareAtAmountCents interface{}, ) *POSTPrices201ResponseDataAttributes` +`func NewPOSTPrices201ResponseDataAttributes(amountCents interface{}, ) *POSTPrices201ResponseDataAttributes` NewPOSTPrices201ResponseDataAttributes instantiates a new POSTPrices201ResponseDataAttributes object This constructor will assign default values to properties that have it defined, @@ -114,6 +115,11 @@ and a boolean to check if the value has been set. SetCompareAtAmountCents sets CompareAtAmountCents field to given value. +### HasCompareAtAmountCents + +`func (o *POSTPrices201ResponseDataAttributes) HasCompareAtAmountCents() bool` + +HasCompareAtAmountCents returns a boolean if a field has been set. ### SetCompareAtAmountCentsNil @@ -195,6 +201,41 @@ HasReferenceOrigin returns a boolean if a field has been set. `func (o *POSTPrices201ResponseDataAttributes) UnsetReferenceOrigin()` UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetRules + +`func (o *POSTPrices201ResponseDataAttributes) GetRules() interface{}` + +GetRules returns the Rules field if non-nil, zero value otherwise. + +### GetRulesOk + +`func (o *POSTPrices201ResponseDataAttributes) GetRulesOk() (*interface{}, bool)` + +GetRulesOk returns a tuple with the Rules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRules + +`func (o *POSTPrices201ResponseDataAttributes) SetRules(v interface{})` + +SetRules sets Rules field to given value. + +### HasRules + +`func (o *POSTPrices201ResponseDataAttributes) HasRules() bool` + +HasRules returns a boolean if a field has been set. + +### SetRulesNil + +`func (o *POSTPrices201ResponseDataAttributes) SetRulesNil(b bool)` + + SetRulesNil sets the value for Rules to be an explicit nil + +### UnsetRules +`func (o *POSTPrices201ResponseDataAttributes) UnsetRules()` + +UnsetRules ensures that no value is present for Rules, not even an explicit nil ### GetMetadata `func (o *POSTPrices201ResponseDataAttributes) GetMetadata() interface{}` diff --git a/api/docs/POSTPrices201ResponseDataRelationships.md b/api/docs/POSTPrices201ResponseDataRelationships.md index f634db90..cbfdc53d 100644 --- a/api/docs/POSTPrices201ResponseDataRelationships.md +++ b/api/docs/POSTPrices201ResponseDataRelationships.md @@ -9,7 +9,11 @@ Name | Type | Description | Notes **PriceTiers** | Pointer to [**POSTPrices201ResponseDataRelationshipsPriceTiers**](POSTPrices201ResponseDataRelationshipsPriceTiers.md) | | [optional] **PriceVolumeTiers** | Pointer to [**POSTPrices201ResponseDataRelationshipsPriceVolumeTiers**](POSTPrices201ResponseDataRelationshipsPriceVolumeTiers.md) | | [optional] **PriceFrequencyTiers** | Pointer to [**POSTPrices201ResponseDataRelationshipsPriceFrequencyTiers**](POSTPrices201ResponseDataRelationshipsPriceFrequencyTiers.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] +**JwtCustomer** | Pointer to [**POSTPrices201ResponseDataRelationshipsJwtCustomer**](POSTPrices201ResponseDataRelationshipsJwtCustomer.md) | | [optional] +**JwtMarkets** | Pointer to [**POSTPrices201ResponseDataRelationshipsJwtMarkets**](POSTPrices201ResponseDataRelationshipsJwtMarkets.md) | | [optional] +**JwtStockLocations** | Pointer to [**POSTPrices201ResponseDataRelationshipsJwtStockLocations**](POSTPrices201ResponseDataRelationshipsJwtStockLocations.md) | | [optional] ## Methods @@ -157,20 +161,20 @@ HasPriceFrequencyTiers returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTPrices201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTPrices201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTPrices201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTPrices201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTPrices201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTPrices201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -180,6 +184,106 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTPrices201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTPrices201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTPrices201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTPrices201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + +### GetJwtCustomer + +`func (o *POSTPrices201ResponseDataRelationships) GetJwtCustomer() POSTPrices201ResponseDataRelationshipsJwtCustomer` + +GetJwtCustomer returns the JwtCustomer field if non-nil, zero value otherwise. + +### GetJwtCustomerOk + +`func (o *POSTPrices201ResponseDataRelationships) GetJwtCustomerOk() (*POSTPrices201ResponseDataRelationshipsJwtCustomer, bool)` + +GetJwtCustomerOk returns a tuple with the JwtCustomer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtCustomer + +`func (o *POSTPrices201ResponseDataRelationships) SetJwtCustomer(v POSTPrices201ResponseDataRelationshipsJwtCustomer)` + +SetJwtCustomer sets JwtCustomer field to given value. + +### HasJwtCustomer + +`func (o *POSTPrices201ResponseDataRelationships) HasJwtCustomer() bool` + +HasJwtCustomer returns a boolean if a field has been set. + +### GetJwtMarkets + +`func (o *POSTPrices201ResponseDataRelationships) GetJwtMarkets() POSTPrices201ResponseDataRelationshipsJwtMarkets` + +GetJwtMarkets returns the JwtMarkets field if non-nil, zero value otherwise. + +### GetJwtMarketsOk + +`func (o *POSTPrices201ResponseDataRelationships) GetJwtMarketsOk() (*POSTPrices201ResponseDataRelationshipsJwtMarkets, bool)` + +GetJwtMarketsOk returns a tuple with the JwtMarkets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtMarkets + +`func (o *POSTPrices201ResponseDataRelationships) SetJwtMarkets(v POSTPrices201ResponseDataRelationshipsJwtMarkets)` + +SetJwtMarkets sets JwtMarkets field to given value. + +### HasJwtMarkets + +`func (o *POSTPrices201ResponseDataRelationships) HasJwtMarkets() bool` + +HasJwtMarkets returns a boolean if a field has been set. + +### GetJwtStockLocations + +`func (o *POSTPrices201ResponseDataRelationships) GetJwtStockLocations() POSTPrices201ResponseDataRelationshipsJwtStockLocations` + +GetJwtStockLocations returns the JwtStockLocations field if non-nil, zero value otherwise. + +### GetJwtStockLocationsOk + +`func (o *POSTPrices201ResponseDataRelationships) GetJwtStockLocationsOk() (*POSTPrices201ResponseDataRelationshipsJwtStockLocations, bool)` + +GetJwtStockLocationsOk returns a tuple with the JwtStockLocations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtStockLocations + +`func (o *POSTPrices201ResponseDataRelationships) SetJwtStockLocations(v POSTPrices201ResponseDataRelationshipsJwtStockLocations)` + +SetJwtStockLocations sets JwtStockLocations field to given value. + +### HasJwtStockLocations + +`func (o *POSTPrices201ResponseDataRelationships) HasJwtStockLocations() bool` + +HasJwtStockLocations returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTPrices201ResponseDataRelationshipsJwtCustomer.md b/api/docs/POSTPrices201ResponseDataRelationshipsJwtCustomer.md new file mode 100644 index 00000000..7e06ac44 --- /dev/null +++ b/api/docs/POSTPrices201ResponseDataRelationshipsJwtCustomer.md @@ -0,0 +1,82 @@ +# POSTPrices201ResponseDataRelationshipsJwtCustomer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTPrices201ResponseDataRelationshipsJwtCustomerData**](POSTPrices201ResponseDataRelationshipsJwtCustomerData.md) | | [optional] + +## Methods + +### NewPOSTPrices201ResponseDataRelationshipsJwtCustomer + +`func NewPOSTPrices201ResponseDataRelationshipsJwtCustomer() *POSTPrices201ResponseDataRelationshipsJwtCustomer` + +NewPOSTPrices201ResponseDataRelationshipsJwtCustomer instantiates a new POSTPrices201ResponseDataRelationshipsJwtCustomer object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTPrices201ResponseDataRelationshipsJwtCustomerWithDefaults + +`func NewPOSTPrices201ResponseDataRelationshipsJwtCustomerWithDefaults() *POSTPrices201ResponseDataRelationshipsJwtCustomer` + +NewPOSTPrices201ResponseDataRelationshipsJwtCustomerWithDefaults instantiates a new POSTPrices201ResponseDataRelationshipsJwtCustomer object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomer) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomer) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomer) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomer) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomer) GetData() POSTPrices201ResponseDataRelationshipsJwtCustomerData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomer) GetDataOk() (*POSTPrices201ResponseDataRelationshipsJwtCustomerData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomer) SetData(v POSTPrices201ResponseDataRelationshipsJwtCustomerData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomer) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTPrices201ResponseDataRelationshipsJwtCustomerData.md b/api/docs/POSTPrices201ResponseDataRelationshipsJwtCustomerData.md new file mode 100644 index 00000000..c31005cd --- /dev/null +++ b/api/docs/POSTPrices201ResponseDataRelationshipsJwtCustomerData.md @@ -0,0 +1,102 @@ +# POSTPrices201ResponseDataRelationshipsJwtCustomerData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTPrices201ResponseDataRelationshipsJwtCustomerData + +`func NewPOSTPrices201ResponseDataRelationshipsJwtCustomerData() *POSTPrices201ResponseDataRelationshipsJwtCustomerData` + +NewPOSTPrices201ResponseDataRelationshipsJwtCustomerData instantiates a new POSTPrices201ResponseDataRelationshipsJwtCustomerData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTPrices201ResponseDataRelationshipsJwtCustomerDataWithDefaults + +`func NewPOSTPrices201ResponseDataRelationshipsJwtCustomerDataWithDefaults() *POSTPrices201ResponseDataRelationshipsJwtCustomerData` + +NewPOSTPrices201ResponseDataRelationshipsJwtCustomerDataWithDefaults instantiates a new POSTPrices201ResponseDataRelationshipsJwtCustomerData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTPrices201ResponseDataRelationshipsJwtMarkets.md b/api/docs/POSTPrices201ResponseDataRelationshipsJwtMarkets.md new file mode 100644 index 00000000..bfceb6f5 --- /dev/null +++ b/api/docs/POSTPrices201ResponseDataRelationshipsJwtMarkets.md @@ -0,0 +1,82 @@ +# POSTPrices201ResponseDataRelationshipsJwtMarkets + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTPrices201ResponseDataRelationshipsJwtMarketsData**](POSTPrices201ResponseDataRelationshipsJwtMarketsData.md) | | [optional] + +## Methods + +### NewPOSTPrices201ResponseDataRelationshipsJwtMarkets + +`func NewPOSTPrices201ResponseDataRelationshipsJwtMarkets() *POSTPrices201ResponseDataRelationshipsJwtMarkets` + +NewPOSTPrices201ResponseDataRelationshipsJwtMarkets instantiates a new POSTPrices201ResponseDataRelationshipsJwtMarkets object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTPrices201ResponseDataRelationshipsJwtMarketsWithDefaults + +`func NewPOSTPrices201ResponseDataRelationshipsJwtMarketsWithDefaults() *POSTPrices201ResponseDataRelationshipsJwtMarkets` + +NewPOSTPrices201ResponseDataRelationshipsJwtMarketsWithDefaults instantiates a new POSTPrices201ResponseDataRelationshipsJwtMarkets object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarkets) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarkets) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarkets) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarkets) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarkets) GetData() POSTPrices201ResponseDataRelationshipsJwtMarketsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarkets) GetDataOk() (*POSTPrices201ResponseDataRelationshipsJwtMarketsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarkets) SetData(v POSTPrices201ResponseDataRelationshipsJwtMarketsData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarkets) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/CouponCodesPromotionRuleDataRelationshipsCouponsData.md b/api/docs/POSTPrices201ResponseDataRelationshipsJwtMarketsData.md similarity index 56% rename from api/docs/CouponCodesPromotionRuleDataRelationshipsCouponsData.md rename to api/docs/POSTPrices201ResponseDataRelationshipsJwtMarketsData.md index b477cbce..d40434f3 100644 --- a/api/docs/CouponCodesPromotionRuleDataRelationshipsCouponsData.md +++ b/api/docs/POSTPrices201ResponseDataRelationshipsJwtMarketsData.md @@ -1,99 +1,99 @@ -# CouponCodesPromotionRuleDataRelationshipsCouponsData +# POSTPrices201ResponseDataRelationshipsJwtMarketsData ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | Pointer to **interface{}** | The resource's type | [optional] -**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] ## Methods -### NewCouponCodesPromotionRuleDataRelationshipsCouponsData +### NewPOSTPrices201ResponseDataRelationshipsJwtMarketsData -`func NewCouponCodesPromotionRuleDataRelationshipsCouponsData() *CouponCodesPromotionRuleDataRelationshipsCouponsData` +`func NewPOSTPrices201ResponseDataRelationshipsJwtMarketsData() *POSTPrices201ResponseDataRelationshipsJwtMarketsData` -NewCouponCodesPromotionRuleDataRelationshipsCouponsData instantiates a new CouponCodesPromotionRuleDataRelationshipsCouponsData object +NewPOSTPrices201ResponseDataRelationshipsJwtMarketsData instantiates a new POSTPrices201ResponseDataRelationshipsJwtMarketsData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewCouponCodesPromotionRuleDataRelationshipsCouponsDataWithDefaults +### NewPOSTPrices201ResponseDataRelationshipsJwtMarketsDataWithDefaults -`func NewCouponCodesPromotionRuleDataRelationshipsCouponsDataWithDefaults() *CouponCodesPromotionRuleDataRelationshipsCouponsData` +`func NewPOSTPrices201ResponseDataRelationshipsJwtMarketsDataWithDefaults() *POSTPrices201ResponseDataRelationshipsJwtMarketsData` -NewCouponCodesPromotionRuleDataRelationshipsCouponsDataWithDefaults instantiates a new CouponCodesPromotionRuleDataRelationshipsCouponsData object +NewPOSTPrices201ResponseDataRelationshipsJwtMarketsDataWithDefaults instantiates a new POSTPrices201ResponseDataRelationshipsJwtMarketsData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) GetType() interface{}` +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) GetTypeOk() (*interface{}, bool)` +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) SetType(v interface{})` +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) HasType() bool` +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) SetTypeNil(b bool)` +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) UnsetType()` +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) GetId() interface{}` +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) GetIdOk() (*interface{}, bool)` +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) SetId(v interface{})` +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) HasId() bool` +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) SetIdNil(b bool)` +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) UnsetId()` +`func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/POSTPrices201ResponseDataRelationshipsJwtStockLocations.md b/api/docs/POSTPrices201ResponseDataRelationshipsJwtStockLocations.md new file mode 100644 index 00000000..5379fe62 --- /dev/null +++ b/api/docs/POSTPrices201ResponseDataRelationshipsJwtStockLocations.md @@ -0,0 +1,82 @@ +# POSTPrices201ResponseDataRelationshipsJwtStockLocations + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTPrices201ResponseDataRelationshipsJwtStockLocationsData**](POSTPrices201ResponseDataRelationshipsJwtStockLocationsData.md) | | [optional] + +## Methods + +### NewPOSTPrices201ResponseDataRelationshipsJwtStockLocations + +`func NewPOSTPrices201ResponseDataRelationshipsJwtStockLocations() *POSTPrices201ResponseDataRelationshipsJwtStockLocations` + +NewPOSTPrices201ResponseDataRelationshipsJwtStockLocations instantiates a new POSTPrices201ResponseDataRelationshipsJwtStockLocations object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTPrices201ResponseDataRelationshipsJwtStockLocationsWithDefaults + +`func NewPOSTPrices201ResponseDataRelationshipsJwtStockLocationsWithDefaults() *POSTPrices201ResponseDataRelationshipsJwtStockLocations` + +NewPOSTPrices201ResponseDataRelationshipsJwtStockLocationsWithDefaults instantiates a new POSTPrices201ResponseDataRelationshipsJwtStockLocations object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocations) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocations) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocations) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocations) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocations) GetData() POSTPrices201ResponseDataRelationshipsJwtStockLocationsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocations) GetDataOk() (*POSTPrices201ResponseDataRelationshipsJwtStockLocationsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocations) SetData(v POSTPrices201ResponseDataRelationshipsJwtStockLocationsData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocations) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTPrices201ResponseDataRelationshipsJwtStockLocationsData.md b/api/docs/POSTPrices201ResponseDataRelationshipsJwtStockLocationsData.md new file mode 100644 index 00000000..c32d4bcb --- /dev/null +++ b/api/docs/POSTPrices201ResponseDataRelationshipsJwtStockLocationsData.md @@ -0,0 +1,102 @@ +# POSTPrices201ResponseDataRelationshipsJwtStockLocationsData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTPrices201ResponseDataRelationshipsJwtStockLocationsData + +`func NewPOSTPrices201ResponseDataRelationshipsJwtStockLocationsData() *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData` + +NewPOSTPrices201ResponseDataRelationshipsJwtStockLocationsData instantiates a new POSTPrices201ResponseDataRelationshipsJwtStockLocationsData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTPrices201ResponseDataRelationshipsJwtStockLocationsDataWithDefaults + +`func NewPOSTPrices201ResponseDataRelationshipsJwtStockLocationsDataWithDefaults() *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData` + +NewPOSTPrices201ResponseDataRelationshipsJwtStockLocationsDataWithDefaults instantiates a new POSTPrices201ResponseDataRelationshipsJwtStockLocationsData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTRecurringOrderCopies201ResponseDataAttributes.md b/api/docs/POSTRecurringOrderCopies201ResponseDataAttributes.md index a0260eb0..395a5feb 100644 --- a/api/docs/POSTRecurringOrderCopies201ResponseDataAttributes.md +++ b/api/docs/POSTRecurringOrderCopies201ResponseDataAttributes.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **PlaceTargetOrder** | Pointer to **interface{}** | Indicates if the target order must be placed upon copy. | [optional] **ReuseWallet** | Pointer to **interface{}** | Indicates if the payment source within the source order customer's wallet must be copied. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTReturnLineItems201ResponseDataAttributes.md b/api/docs/POSTReturnLineItems201ResponseDataAttributes.md index b3d50f61..0bf5addf 100644 --- a/api/docs/POSTReturnLineItems201ResponseDataAttributes.md +++ b/api/docs/POSTReturnLineItems201ResponseDataAttributes.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Quantity** | **interface{}** | The line item quantity. | +**Quantity** | **interface{}** | The return line item quantity. | **ReturnReason** | Pointer to **interface{}** | Set of key-value pairs that you can use to add details about return reason. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTReturnLineItems201ResponseDataRelationships.md b/api/docs/POSTReturnLineItems201ResponseDataRelationships.md index 14ce758e..77a012a3 100644 --- a/api/docs/POSTReturnLineItems201ResponseDataRelationships.md +++ b/api/docs/POSTReturnLineItems201ResponseDataRelationships.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Return** | Pointer to [**POSTReturnLineItems201ResponseDataRelationshipsReturn**](POSTReturnLineItems201ResponseDataRelationshipsReturn.md) | | [optional] +**Return** | Pointer to [**GETCapturesCaptureId200ResponseDataRelationshipsReturn**](GETCapturesCaptureId200ResponseDataRelationshipsReturn.md) | | [optional] **LineItem** | Pointer to [**POSTLineItemOptions201ResponseDataRelationshipsLineItem**](POSTLineItemOptions201ResponseDataRelationshipsLineItem.md) | | [optional] ## Methods @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetReturn -`func (o *POSTReturnLineItems201ResponseDataRelationships) GetReturn() POSTReturnLineItems201ResponseDataRelationshipsReturn` +`func (o *POSTReturnLineItems201ResponseDataRelationships) GetReturn() GETCapturesCaptureId200ResponseDataRelationshipsReturn` GetReturn returns the Return field if non-nil, zero value otherwise. ### GetReturnOk -`func (o *POSTReturnLineItems201ResponseDataRelationships) GetReturnOk() (*POSTReturnLineItems201ResponseDataRelationshipsReturn, bool)` +`func (o *POSTReturnLineItems201ResponseDataRelationships) GetReturnOk() (*GETCapturesCaptureId200ResponseDataRelationshipsReturn, bool)` GetReturnOk returns a tuple with the Return field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetReturn -`func (o *POSTReturnLineItems201ResponseDataRelationships) SetReturn(v POSTReturnLineItems201ResponseDataRelationshipsReturn)` +`func (o *POSTReturnLineItems201ResponseDataRelationships) SetReturn(v GETCapturesCaptureId200ResponseDataRelationshipsReturn)` SetReturn sets Return field to given value. diff --git a/api/docs/POSTReturnLineItems201ResponseDataRelationshipsReturn.md b/api/docs/POSTReturnLineItems201ResponseDataRelationshipsReturn.md deleted file mode 100644 index 56c28d89..00000000 --- a/api/docs/POSTReturnLineItems201ResponseDataRelationshipsReturn.md +++ /dev/null @@ -1,82 +0,0 @@ -# POSTReturnLineItems201ResponseDataRelationshipsReturn - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] -**Data** | Pointer to [**POSTReturnLineItems201ResponseDataRelationshipsReturnData**](POSTReturnLineItems201ResponseDataRelationshipsReturnData.md) | | [optional] - -## Methods - -### NewPOSTReturnLineItems201ResponseDataRelationshipsReturn - -`func NewPOSTReturnLineItems201ResponseDataRelationshipsReturn() *POSTReturnLineItems201ResponseDataRelationshipsReturn` - -NewPOSTReturnLineItems201ResponseDataRelationshipsReturn instantiates a new POSTReturnLineItems201ResponseDataRelationshipsReturn object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPOSTReturnLineItems201ResponseDataRelationshipsReturnWithDefaults - -`func NewPOSTReturnLineItems201ResponseDataRelationshipsReturnWithDefaults() *POSTReturnLineItems201ResponseDataRelationshipsReturn` - -NewPOSTReturnLineItems201ResponseDataRelationshipsReturnWithDefaults instantiates a new POSTReturnLineItems201ResponseDataRelationshipsReturn object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetLinks - -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturn) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturn) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturn) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturn) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - -### GetData - -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturn) GetData() POSTReturnLineItems201ResponseDataRelationshipsReturnData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturn) GetDataOk() (*POSTReturnLineItems201ResponseDataRelationshipsReturnData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturn) SetData(v POSTReturnLineItems201ResponseDataRelationshipsReturnData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *POSTReturnLineItems201ResponseDataRelationshipsReturn) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/POSTReturns201ResponseDataRelationships.md b/api/docs/POSTReturns201ResponseDataRelationships.md index adf7b4d2..50314386 100644 --- a/api/docs/POSTReturns201ResponseDataRelationships.md +++ b/api/docs/POSTReturns201ResponseDataRelationships.md @@ -9,9 +9,14 @@ Name | Type | Description | Notes **StockLocation** | Pointer to [**POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation**](POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation.md) | | [optional] **OriginAddress** | Pointer to [**POSTReturns201ResponseDataRelationshipsOriginAddress**](POSTReturns201ResponseDataRelationshipsOriginAddress.md) | | [optional] **DestinationAddress** | Pointer to [**POSTReturns201ResponseDataRelationshipsDestinationAddress**](POSTReturns201ResponseDataRelationshipsDestinationAddress.md) | | [optional] -**ReturnLineItems** | Pointer to [**POSTReturns201ResponseDataRelationshipsReturnLineItems**](POSTReturns201ResponseDataRelationshipsReturnLineItems.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] +**ReferenceCapture** | Pointer to [**GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture**](GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture.md) | | [optional] +**ReferenceRefund** | Pointer to [**POSTReturns201ResponseDataRelationshipsReferenceRefund**](POSTReturns201ResponseDataRelationshipsReferenceRefund.md) | | [optional] +**ReturnLineItems** | Pointer to [**POSTLineItems201ResponseDataRelationshipsReturnLineItems**](POSTLineItems201ResponseDataRelationshipsReturnLineItems.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**ResourceErrors** | Pointer to [**POSTOrders201ResponseDataRelationshipsResourceErrors**](POSTOrders201ResponseDataRelationshipsResourceErrors.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**POSTAddresses201ResponseDataRelationshipsTags**](POSTAddresses201ResponseDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -157,22 +162,72 @@ SetDestinationAddress sets DestinationAddress field to given value. HasDestinationAddress returns a boolean if a field has been set. +### GetReferenceCapture + +`func (o *POSTReturns201ResponseDataRelationships) GetReferenceCapture() GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture` + +GetReferenceCapture returns the ReferenceCapture field if non-nil, zero value otherwise. + +### GetReferenceCaptureOk + +`func (o *POSTReturns201ResponseDataRelationships) GetReferenceCaptureOk() (*GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture, bool)` + +GetReferenceCaptureOk returns a tuple with the ReferenceCapture field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceCapture + +`func (o *POSTReturns201ResponseDataRelationships) SetReferenceCapture(v GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture)` + +SetReferenceCapture sets ReferenceCapture field to given value. + +### HasReferenceCapture + +`func (o *POSTReturns201ResponseDataRelationships) HasReferenceCapture() bool` + +HasReferenceCapture returns a boolean if a field has been set. + +### GetReferenceRefund + +`func (o *POSTReturns201ResponseDataRelationships) GetReferenceRefund() POSTReturns201ResponseDataRelationshipsReferenceRefund` + +GetReferenceRefund returns the ReferenceRefund field if non-nil, zero value otherwise. + +### GetReferenceRefundOk + +`func (o *POSTReturns201ResponseDataRelationships) GetReferenceRefundOk() (*POSTReturns201ResponseDataRelationshipsReferenceRefund, bool)` + +GetReferenceRefundOk returns a tuple with the ReferenceRefund field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceRefund + +`func (o *POSTReturns201ResponseDataRelationships) SetReferenceRefund(v POSTReturns201ResponseDataRelationshipsReferenceRefund)` + +SetReferenceRefund sets ReferenceRefund field to given value. + +### HasReferenceRefund + +`func (o *POSTReturns201ResponseDataRelationships) HasReferenceRefund() bool` + +HasReferenceRefund returns a boolean if a field has been set. + ### GetReturnLineItems -`func (o *POSTReturns201ResponseDataRelationships) GetReturnLineItems() POSTReturns201ResponseDataRelationshipsReturnLineItems` +`func (o *POSTReturns201ResponseDataRelationships) GetReturnLineItems() POSTLineItems201ResponseDataRelationshipsReturnLineItems` GetReturnLineItems returns the ReturnLineItems field if non-nil, zero value otherwise. ### GetReturnLineItemsOk -`func (o *POSTReturns201ResponseDataRelationships) GetReturnLineItemsOk() (*POSTReturns201ResponseDataRelationshipsReturnLineItems, bool)` +`func (o *POSTReturns201ResponseDataRelationships) GetReturnLineItemsOk() (*POSTLineItems201ResponseDataRelationshipsReturnLineItems, bool)` GetReturnLineItemsOk returns a tuple with the ReturnLineItems field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetReturnLineItems -`func (o *POSTReturns201ResponseDataRelationships) SetReturnLineItems(v POSTReturns201ResponseDataRelationshipsReturnLineItems)` +`func (o *POSTReturns201ResponseDataRelationships) SetReturnLineItems(v POSTLineItems201ResponseDataRelationshipsReturnLineItems)` SetReturnLineItems sets ReturnLineItems field to given value. @@ -184,20 +239,20 @@ HasReturnLineItems returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTReturns201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTReturns201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTReturns201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTReturns201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTReturns201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTReturns201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -207,22 +262,47 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetResourceErrors + +`func (o *POSTReturns201ResponseDataRelationships) GetResourceErrors() POSTOrders201ResponseDataRelationshipsResourceErrors` + +GetResourceErrors returns the ResourceErrors field if non-nil, zero value otherwise. + +### GetResourceErrorsOk + +`func (o *POSTReturns201ResponseDataRelationships) GetResourceErrorsOk() (*POSTOrders201ResponseDataRelationshipsResourceErrors, bool)` + +GetResourceErrorsOk returns a tuple with the ResourceErrors field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceErrors + +`func (o *POSTReturns201ResponseDataRelationships) SetResourceErrors(v POSTOrders201ResponseDataRelationshipsResourceErrors)` + +SetResourceErrors sets ResourceErrors field to given value. + +### HasResourceErrors + +`func (o *POSTReturns201ResponseDataRelationships) HasResourceErrors() bool` + +HasResourceErrors returns a boolean if a field has been set. + ### GetEvents -`func (o *POSTReturns201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` +`func (o *POSTReturns201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *POSTReturns201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` +`func (o *POSTReturns201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *POSTReturns201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` +`func (o *POSTReturns201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -232,6 +312,56 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetTags + +`func (o *POSTReturns201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *POSTReturns201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *POSTReturns201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *POSTReturns201ResponseDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTReturns201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTReturns201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTReturns201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTReturns201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTReturns201ResponseDataRelationshipsReturnLineItems.md b/api/docs/POSTReturns201ResponseDataRelationshipsReferenceRefund.md similarity index 56% rename from api/docs/POSTReturns201ResponseDataRelationshipsReturnLineItems.md rename to api/docs/POSTReturns201ResponseDataRelationshipsReferenceRefund.md index 02699d1d..30a943e5 100644 --- a/api/docs/POSTReturns201ResponseDataRelationshipsReturnLineItems.md +++ b/api/docs/POSTReturns201ResponseDataRelationshipsReferenceRefund.md @@ -1,78 +1,78 @@ -# POSTReturns201ResponseDataRelationshipsReturnLineItems +# POSTReturns201ResponseDataRelationshipsReferenceRefund ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] -**Data** | Pointer to [**POSTReturns201ResponseDataRelationshipsReturnLineItemsData**](POSTReturns201ResponseDataRelationshipsReturnLineItemsData.md) | | [optional] +**Data** | Pointer to [**POSTReturns201ResponseDataRelationshipsReferenceRefundData**](POSTReturns201ResponseDataRelationshipsReferenceRefundData.md) | | [optional] ## Methods -### NewPOSTReturns201ResponseDataRelationshipsReturnLineItems +### NewPOSTReturns201ResponseDataRelationshipsReferenceRefund -`func NewPOSTReturns201ResponseDataRelationshipsReturnLineItems() *POSTReturns201ResponseDataRelationshipsReturnLineItems` +`func NewPOSTReturns201ResponseDataRelationshipsReferenceRefund() *POSTReturns201ResponseDataRelationshipsReferenceRefund` -NewPOSTReturns201ResponseDataRelationshipsReturnLineItems instantiates a new POSTReturns201ResponseDataRelationshipsReturnLineItems object +NewPOSTReturns201ResponseDataRelationshipsReferenceRefund instantiates a new POSTReturns201ResponseDataRelationshipsReferenceRefund object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPOSTReturns201ResponseDataRelationshipsReturnLineItemsWithDefaults +### NewPOSTReturns201ResponseDataRelationshipsReferenceRefundWithDefaults -`func NewPOSTReturns201ResponseDataRelationshipsReturnLineItemsWithDefaults() *POSTReturns201ResponseDataRelationshipsReturnLineItems` +`func NewPOSTReturns201ResponseDataRelationshipsReferenceRefundWithDefaults() *POSTReturns201ResponseDataRelationshipsReferenceRefund` -NewPOSTReturns201ResponseDataRelationshipsReturnLineItemsWithDefaults instantiates a new POSTReturns201ResponseDataRelationshipsReturnLineItems object +NewPOSTReturns201ResponseDataRelationshipsReferenceRefundWithDefaults instantiates a new POSTReturns201ResponseDataRelationshipsReferenceRefund object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetLinks -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItems) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefund) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` GetLinks returns the Links field if non-nil, zero value otherwise. ### GetLinksOk -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItems) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefund) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLinks -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItems) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefund) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` SetLinks sets Links field to given value. ### HasLinks -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItems) HasLinks() bool` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefund) HasLinks() bool` HasLinks returns a boolean if a field has been set. ### GetData -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItems) GetData() POSTReturns201ResponseDataRelationshipsReturnLineItemsData` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefund) GetData() POSTReturns201ResponseDataRelationshipsReferenceRefundData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItems) GetDataOk() (*POSTReturns201ResponseDataRelationshipsReturnLineItemsData, bool)` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefund) GetDataOk() (*POSTReturns201ResponseDataRelationshipsReferenceRefundData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItems) SetData(v POSTReturns201ResponseDataRelationshipsReturnLineItemsData)` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefund) SetData(v POSTReturns201ResponseDataRelationshipsReferenceRefundData)` SetData sets Data field to given value. ### HasData -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItems) HasData() bool` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefund) HasData() bool` HasData returns a boolean if a field has been set. diff --git a/api/docs/POSTReturns201ResponseDataRelationshipsReturnLineItemsData.md b/api/docs/POSTReturns201ResponseDataRelationshipsReferenceRefundData.md similarity index 60% rename from api/docs/POSTReturns201ResponseDataRelationshipsReturnLineItemsData.md rename to api/docs/POSTReturns201ResponseDataRelationshipsReferenceRefundData.md index 97cef21c..2a1cb638 100644 --- a/api/docs/POSTReturns201ResponseDataRelationshipsReturnLineItemsData.md +++ b/api/docs/POSTReturns201ResponseDataRelationshipsReferenceRefundData.md @@ -1,4 +1,4 @@ -# POSTReturns201ResponseDataRelationshipsReturnLineItemsData +# POSTReturns201ResponseDataRelationshipsReferenceRefundData ## Properties @@ -9,91 +9,91 @@ Name | Type | Description | Notes ## Methods -### NewPOSTReturns201ResponseDataRelationshipsReturnLineItemsData +### NewPOSTReturns201ResponseDataRelationshipsReferenceRefundData -`func NewPOSTReturns201ResponseDataRelationshipsReturnLineItemsData() *POSTReturns201ResponseDataRelationshipsReturnLineItemsData` +`func NewPOSTReturns201ResponseDataRelationshipsReferenceRefundData() *POSTReturns201ResponseDataRelationshipsReferenceRefundData` -NewPOSTReturns201ResponseDataRelationshipsReturnLineItemsData instantiates a new POSTReturns201ResponseDataRelationshipsReturnLineItemsData object +NewPOSTReturns201ResponseDataRelationshipsReferenceRefundData instantiates a new POSTReturns201ResponseDataRelationshipsReferenceRefundData object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPOSTReturns201ResponseDataRelationshipsReturnLineItemsDataWithDefaults +### NewPOSTReturns201ResponseDataRelationshipsReferenceRefundDataWithDefaults -`func NewPOSTReturns201ResponseDataRelationshipsReturnLineItemsDataWithDefaults() *POSTReturns201ResponseDataRelationshipsReturnLineItemsData` +`func NewPOSTReturns201ResponseDataRelationshipsReferenceRefundDataWithDefaults() *POSTReturns201ResponseDataRelationshipsReferenceRefundData` -NewPOSTReturns201ResponseDataRelationshipsReturnLineItemsDataWithDefaults instantiates a new POSTReturns201ResponseDataRelationshipsReturnLineItemsData object +NewPOSTReturns201ResponseDataRelationshipsReferenceRefundDataWithDefaults instantiates a new POSTReturns201ResponseDataRelationshipsReferenceRefundData object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetType -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) GetType() interface{}` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) GetType() interface{}` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) GetTypeOk() (*interface{}, bool)` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) GetTypeOk() (*interface{}, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) SetType(v interface{})` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) SetType(v interface{})` SetType sets Type field to given value. ### HasType -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) HasType() bool` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) HasType() bool` HasType returns a boolean if a field has been set. ### SetTypeNil -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) SetTypeNil(b bool)` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) SetTypeNil(b bool)` SetTypeNil sets the value for Type to be an explicit nil ### UnsetType -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) UnsetType()` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) UnsetType()` UnsetType ensures that no value is present for Type, not even an explicit nil ### GetId -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) GetId() interface{}` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) GetId() interface{}` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) GetIdOk() (*interface{}, bool)` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) GetIdOk() (*interface{}, bool)` GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetId -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) SetId(v interface{})` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) SetId(v interface{})` SetId sets Id field to given value. ### HasId -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) HasId() bool` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) HasId() bool` HasId returns a boolean if a field has been set. ### SetIdNil -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) SetIdNil(b bool)` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) SetIdNil(b bool)` SetIdNil sets the value for Id to be an explicit nil ### UnsetId -`func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) UnsetId()` +`func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) UnsetId()` UnsetId ensures that no value is present for Id, not even an explicit nil diff --git a/api/docs/POSTSatispayGateways201ResponseData.md b/api/docs/POSTSatispayGateways201ResponseData.md index 1fbf4933..8aa518fd 100644 --- a/api/docs/POSTSatispayGateways201ResponseData.md +++ b/api/docs/POSTSatispayGateways201ResponseData.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | Pointer to **interface{}** | The resource's id | [optional] **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] -**Attributes** | Pointer to [**POSTManualGateways201ResponseDataAttributes**](POSTManualGateways201ResponseDataAttributes.md) | | [optional] +**Attributes** | Pointer to [**POSTSatispayGateways201ResponseDataAttributes**](POSTSatispayGateways201ResponseDataAttributes.md) | | [optional] **Relationships** | Pointer to [**POSTSatispayGateways201ResponseDataRelationships**](POSTSatispayGateways201ResponseDataRelationships.md) | | [optional] ## Methods @@ -126,20 +126,20 @@ HasLinks returns a boolean if a field has been set. ### GetAttributes -`func (o *POSTSatispayGateways201ResponseData) GetAttributes() POSTManualGateways201ResponseDataAttributes` +`func (o *POSTSatispayGateways201ResponseData) GetAttributes() POSTSatispayGateways201ResponseDataAttributes` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *POSTSatispayGateways201ResponseData) GetAttributesOk() (*POSTManualGateways201ResponseDataAttributes, bool)` +`func (o *POSTSatispayGateways201ResponseData) GetAttributesOk() (*POSTSatispayGateways201ResponseDataAttributes, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *POSTSatispayGateways201ResponseData) SetAttributes(v POSTManualGateways201ResponseDataAttributes)` +`func (o *POSTSatispayGateways201ResponseData) SetAttributes(v POSTSatispayGateways201ResponseDataAttributes)` SetAttributes sets Attributes field to given value. diff --git a/api/docs/POSTSatispayGateways201ResponseDataAttributes.md b/api/docs/POSTSatispayGateways201ResponseDataAttributes.md new file mode 100644 index 00000000..56b8e98d --- /dev/null +++ b/api/docs/POSTSatispayGateways201ResponseDataAttributes.md @@ -0,0 +1,200 @@ +# POSTSatispayGateways201ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **interface{}** | The payment gateway's internal name. | +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] +**Token** | **interface{}** | Activation code generated from the Satispay Dashboard. | + +## Methods + +### NewPOSTSatispayGateways201ResponseDataAttributes + +`func NewPOSTSatispayGateways201ResponseDataAttributes(name interface{}, token interface{}, ) *POSTSatispayGateways201ResponseDataAttributes` + +NewPOSTSatispayGateways201ResponseDataAttributes instantiates a new POSTSatispayGateways201ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTSatispayGateways201ResponseDataAttributesWithDefaults + +`func NewPOSTSatispayGateways201ResponseDataAttributesWithDefaults() *POSTSatispayGateways201ResponseDataAttributes` + +NewPOSTSatispayGateways201ResponseDataAttributesWithDefaults instantiates a new POSTSatispayGateways201ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *POSTSatispayGateways201ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *POSTSatispayGateways201ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *POSTSatispayGateways201ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + + +### SetNameNil + +`func (o *POSTSatispayGateways201ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *POSTSatispayGateways201ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetReference + +`func (o *POSTSatispayGateways201ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *POSTSatispayGateways201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *POSTSatispayGateways201ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *POSTSatispayGateways201ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *POSTSatispayGateways201ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *POSTSatispayGateways201ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *POSTSatispayGateways201ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *POSTSatispayGateways201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *POSTSatispayGateways201ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *POSTSatispayGateways201ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *POSTSatispayGateways201ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *POSTSatispayGateways201ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *POSTSatispayGateways201ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *POSTSatispayGateways201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *POSTSatispayGateways201ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *POSTSatispayGateways201ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *POSTSatispayGateways201ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *POSTSatispayGateways201ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil +### GetToken + +`func (o *POSTSatispayGateways201ResponseDataAttributes) GetToken() interface{}` + +GetToken returns the Token field if non-nil, zero value otherwise. + +### GetTokenOk + +`func (o *POSTSatispayGateways201ResponseDataAttributes) GetTokenOk() (*interface{}, bool)` + +GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToken + +`func (o *POSTSatispayGateways201ResponseDataAttributes) SetToken(v interface{})` + +SetToken sets Token field to given value. + + +### SetTokenNil + +`func (o *POSTSatispayGateways201ResponseDataAttributes) SetTokenNil(b bool)` + + SetTokenNil sets the value for Token to be an explicit nil + +### UnsetToken +`func (o *POSTSatispayGateways201ResponseDataAttributes) UnsetToken()` + +UnsetToken ensures that no value is present for Token, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTSatispayGateways201ResponseDataRelationships.md b/api/docs/POSTSatispayGateways201ResponseDataRelationships.md index ace1e69d..e346c4d7 100644 --- a/api/docs/POSTSatispayGateways201ResponseDataRelationships.md +++ b/api/docs/POSTSatispayGateways201ResponseDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods**](POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] **SatispayPayments** | Pointer to [**POSTSatispayGateways201ResponseDataRelationshipsSatispayPayments**](POSTSatispayGateways201ResponseDataRelationshipsSatispayPayments.md) | | [optional] ## Methods @@ -51,6 +52,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTSatispayGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTSatispayGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTSatispayGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTSatispayGateways201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetSatispayPayments `func (o *POSTSatispayGateways201ResponseDataRelationships) GetSatispayPayments() POSTSatispayGateways201ResponseDataRelationshipsSatispayPayments` diff --git a/api/docs/POSTSatispayPayments201ResponseDataAttributes.md b/api/docs/POSTSatispayPayments201ResponseDataAttributes.md index d79db848..f33de72f 100644 --- a/api/docs/POSTSatispayPayments201ResponseDataAttributes.md +++ b/api/docs/POSTSatispayPayments201ResponseDataAttributes.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Token** | Pointer to **interface{}** | Activation code generated from the Satispay Dashboard. | [optional] +**Flow** | Pointer to **interface{}** | The Satispay payment flow, inspect gateway API details for more information. | [optional] **RedirectUrl** | Pointer to **interface{}** | The url to redirect the customer after the payment flow is completed. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -29,41 +29,41 @@ NewPOSTSatispayPayments201ResponseDataAttributesWithDefaults instantiates a new This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetToken +### GetFlow -`func (o *POSTSatispayPayments201ResponseDataAttributes) GetToken() interface{}` +`func (o *POSTSatispayPayments201ResponseDataAttributes) GetFlow() interface{}` -GetToken returns the Token field if non-nil, zero value otherwise. +GetFlow returns the Flow field if non-nil, zero value otherwise. -### GetTokenOk +### GetFlowOk -`func (o *POSTSatispayPayments201ResponseDataAttributes) GetTokenOk() (*interface{}, bool)` +`func (o *POSTSatispayPayments201ResponseDataAttributes) GetFlowOk() (*interface{}, bool)` -GetTokenOk returns a tuple with the Token field if it's non-nil, zero value otherwise +GetFlowOk returns a tuple with the Flow field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetToken +### SetFlow -`func (o *POSTSatispayPayments201ResponseDataAttributes) SetToken(v interface{})` +`func (o *POSTSatispayPayments201ResponseDataAttributes) SetFlow(v interface{})` -SetToken sets Token field to given value. +SetFlow sets Flow field to given value. -### HasToken +### HasFlow -`func (o *POSTSatispayPayments201ResponseDataAttributes) HasToken() bool` +`func (o *POSTSatispayPayments201ResponseDataAttributes) HasFlow() bool` -HasToken returns a boolean if a field has been set. +HasFlow returns a boolean if a field has been set. -### SetTokenNil +### SetFlowNil -`func (o *POSTSatispayPayments201ResponseDataAttributes) SetTokenNil(b bool)` +`func (o *POSTSatispayPayments201ResponseDataAttributes) SetFlowNil(b bool)` - SetTokenNil sets the value for Token to be an explicit nil + SetFlowNil sets the value for Flow to be an explicit nil -### UnsetToken -`func (o *POSTSatispayPayments201ResponseDataAttributes) UnsetToken()` +### UnsetFlow +`func (o *POSTSatispayPayments201ResponseDataAttributes) UnsetFlow()` -UnsetToken ensures that no value is present for Token, not even an explicit nil +UnsetFlow ensures that no value is present for Flow, not even an explicit nil ### GetRedirectUrl `func (o *POSTSatispayPayments201ResponseDataAttributes) GetRedirectUrl() interface{}` diff --git a/api/docs/POSTShipments201Response.md b/api/docs/POSTShipments201Response.md new file mode 100644 index 00000000..2fcf1488 --- /dev/null +++ b/api/docs/POSTShipments201Response.md @@ -0,0 +1,56 @@ +# POSTShipments201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**POSTShipments201ResponseData**](POSTShipments201ResponseData.md) | | [optional] + +## Methods + +### NewPOSTShipments201Response + +`func NewPOSTShipments201Response() *POSTShipments201Response` + +NewPOSTShipments201Response instantiates a new POSTShipments201Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTShipments201ResponseWithDefaults + +`func NewPOSTShipments201ResponseWithDefaults() *POSTShipments201Response` + +NewPOSTShipments201ResponseWithDefaults instantiates a new POSTShipments201Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *POSTShipments201Response) GetData() POSTShipments201ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTShipments201Response) GetDataOk() (*POSTShipments201ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTShipments201Response) SetData(v POSTShipments201ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTShipments201Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTShipments201ResponseData.md b/api/docs/POSTShipments201ResponseData.md new file mode 100644 index 00000000..0b4fc4d7 --- /dev/null +++ b/api/docs/POSTShipments201ResponseData.md @@ -0,0 +1,180 @@ +# POSTShipments201ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**POSTAdyenPayments201ResponseDataAttributes**](POSTAdyenPayments201ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTShipments201ResponseDataRelationships**](POSTShipments201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPOSTShipments201ResponseData + +`func NewPOSTShipments201ResponseData() *POSTShipments201ResponseData` + +NewPOSTShipments201ResponseData instantiates a new POSTShipments201ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTShipments201ResponseDataWithDefaults + +`func NewPOSTShipments201ResponseDataWithDefaults() *POSTShipments201ResponseData` + +NewPOSTShipments201ResponseDataWithDefaults instantiates a new POSTShipments201ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *POSTShipments201ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTShipments201ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTShipments201ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTShipments201ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTShipments201ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTShipments201ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *POSTShipments201ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTShipments201ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTShipments201ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTShipments201ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTShipments201ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTShipments201ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *POSTShipments201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTShipments201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTShipments201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTShipments201ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *POSTShipments201ResponseData) GetAttributes() POSTAdyenPayments201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *POSTShipments201ResponseData) GetAttributesOk() (*POSTAdyenPayments201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *POSTShipments201ResponseData) SetAttributes(v POSTAdyenPayments201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *POSTShipments201ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *POSTShipments201ResponseData) GetRelationships() POSTShipments201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *POSTShipments201ResponseData) GetRelationshipsOk() (*POSTShipments201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *POSTShipments201ResponseData) SetRelationships(v POSTShipments201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *POSTShipments201ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTShipments201ResponseDataRelationships.md b/api/docs/POSTShipments201ResponseDataRelationships.md new file mode 100644 index 00000000..7b7a484c --- /dev/null +++ b/api/docs/POSTShipments201ResponseDataRelationships.md @@ -0,0 +1,498 @@ +# POSTShipments201ResponseDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Order** | Pointer to [**POSTAdyenPayments201ResponseDataRelationshipsOrder**](POSTAdyenPayments201ResponseDataRelationshipsOrder.md) | | [optional] +**ShippingCategory** | Pointer to [**POSTShipments201ResponseDataRelationshipsShippingCategory**](POSTShipments201ResponseDataRelationshipsShippingCategory.md) | | [optional] +**InventoryStockLocation** | Pointer to [**POSTShipments201ResponseDataRelationshipsInventoryStockLocation**](POSTShipments201ResponseDataRelationshipsInventoryStockLocation.md) | | [optional] +**StockLocation** | Pointer to [**POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation**](POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation.md) | | [optional] +**OriginAddress** | Pointer to [**POSTReturns201ResponseDataRelationshipsOriginAddress**](POSTReturns201ResponseDataRelationshipsOriginAddress.md) | | [optional] +**ShippingAddress** | Pointer to [**POSTOrders201ResponseDataRelationshipsShippingAddress**](POSTOrders201ResponseDataRelationshipsShippingAddress.md) | | [optional] +**ShippingMethod** | Pointer to [**POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod**](POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod.md) | | [optional] +**DeliveryLeadTime** | Pointer to [**POSTShipments201ResponseDataRelationshipsDeliveryLeadTime**](POSTShipments201ResponseDataRelationshipsDeliveryLeadTime.md) | | [optional] +**StockLineItems** | Pointer to [**POSTLineItems201ResponseDataRelationshipsStockLineItems**](POSTLineItems201ResponseDataRelationshipsStockLineItems.md) | | [optional] +**StockTransfers** | Pointer to [**POSTLineItems201ResponseDataRelationshipsStockTransfers**](POSTLineItems201ResponseDataRelationshipsStockTransfers.md) | | [optional] +**LineItems** | Pointer to [**POSTOrders201ResponseDataRelationshipsLineItems**](POSTOrders201ResponseDataRelationshipsLineItems.md) | | [optional] +**AvailableShippingMethods** | Pointer to [**POSTShipments201ResponseDataRelationshipsAvailableShippingMethods**](POSTShipments201ResponseDataRelationshipsAvailableShippingMethods.md) | | [optional] +**CarrierAccounts** | Pointer to [**POSTShipments201ResponseDataRelationshipsCarrierAccounts**](POSTShipments201ResponseDataRelationshipsCarrierAccounts.md) | | [optional] +**Parcels** | Pointer to [**POSTPackages201ResponseDataRelationshipsParcels**](POSTPackages201ResponseDataRelationshipsParcels.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**POSTAddresses201ResponseDataRelationshipsTags**](POSTAddresses201ResponseDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewPOSTShipments201ResponseDataRelationships + +`func NewPOSTShipments201ResponseDataRelationships() *POSTShipments201ResponseDataRelationships` + +NewPOSTShipments201ResponseDataRelationships instantiates a new POSTShipments201ResponseDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTShipments201ResponseDataRelationshipsWithDefaults + +`func NewPOSTShipments201ResponseDataRelationshipsWithDefaults() *POSTShipments201ResponseDataRelationships` + +NewPOSTShipments201ResponseDataRelationshipsWithDefaults instantiates a new POSTShipments201ResponseDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrder + +`func (o *POSTShipments201ResponseDataRelationships) GetOrder() POSTAdyenPayments201ResponseDataRelationshipsOrder` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *POSTShipments201ResponseDataRelationships) GetOrderOk() (*POSTAdyenPayments201ResponseDataRelationshipsOrder, bool)` + +GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrder + +`func (o *POSTShipments201ResponseDataRelationships) SetOrder(v POSTAdyenPayments201ResponseDataRelationshipsOrder)` + +SetOrder sets Order field to given value. + +### HasOrder + +`func (o *POSTShipments201ResponseDataRelationships) HasOrder() bool` + +HasOrder returns a boolean if a field has been set. + +### GetShippingCategory + +`func (o *POSTShipments201ResponseDataRelationships) GetShippingCategory() POSTShipments201ResponseDataRelationshipsShippingCategory` + +GetShippingCategory returns the ShippingCategory field if non-nil, zero value otherwise. + +### GetShippingCategoryOk + +`func (o *POSTShipments201ResponseDataRelationships) GetShippingCategoryOk() (*POSTShipments201ResponseDataRelationshipsShippingCategory, bool)` + +GetShippingCategoryOk returns a tuple with the ShippingCategory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingCategory + +`func (o *POSTShipments201ResponseDataRelationships) SetShippingCategory(v POSTShipments201ResponseDataRelationshipsShippingCategory)` + +SetShippingCategory sets ShippingCategory field to given value. + +### HasShippingCategory + +`func (o *POSTShipments201ResponseDataRelationships) HasShippingCategory() bool` + +HasShippingCategory returns a boolean if a field has been set. + +### GetInventoryStockLocation + +`func (o *POSTShipments201ResponseDataRelationships) GetInventoryStockLocation() POSTShipments201ResponseDataRelationshipsInventoryStockLocation` + +GetInventoryStockLocation returns the InventoryStockLocation field if non-nil, zero value otherwise. + +### GetInventoryStockLocationOk + +`func (o *POSTShipments201ResponseDataRelationships) GetInventoryStockLocationOk() (*POSTShipments201ResponseDataRelationshipsInventoryStockLocation, bool)` + +GetInventoryStockLocationOk returns a tuple with the InventoryStockLocation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryStockLocation + +`func (o *POSTShipments201ResponseDataRelationships) SetInventoryStockLocation(v POSTShipments201ResponseDataRelationshipsInventoryStockLocation)` + +SetInventoryStockLocation sets InventoryStockLocation field to given value. + +### HasInventoryStockLocation + +`func (o *POSTShipments201ResponseDataRelationships) HasInventoryStockLocation() bool` + +HasInventoryStockLocation returns a boolean if a field has been set. + +### GetStockLocation + +`func (o *POSTShipments201ResponseDataRelationships) GetStockLocation() POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation` + +GetStockLocation returns the StockLocation field if non-nil, zero value otherwise. + +### GetStockLocationOk + +`func (o *POSTShipments201ResponseDataRelationships) GetStockLocationOk() (*POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation, bool)` + +GetStockLocationOk returns a tuple with the StockLocation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockLocation + +`func (o *POSTShipments201ResponseDataRelationships) SetStockLocation(v POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation)` + +SetStockLocation sets StockLocation field to given value. + +### HasStockLocation + +`func (o *POSTShipments201ResponseDataRelationships) HasStockLocation() bool` + +HasStockLocation returns a boolean if a field has been set. + +### GetOriginAddress + +`func (o *POSTShipments201ResponseDataRelationships) GetOriginAddress() POSTReturns201ResponseDataRelationshipsOriginAddress` + +GetOriginAddress returns the OriginAddress field if non-nil, zero value otherwise. + +### GetOriginAddressOk + +`func (o *POSTShipments201ResponseDataRelationships) GetOriginAddressOk() (*POSTReturns201ResponseDataRelationshipsOriginAddress, bool)` + +GetOriginAddressOk returns a tuple with the OriginAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginAddress + +`func (o *POSTShipments201ResponseDataRelationships) SetOriginAddress(v POSTReturns201ResponseDataRelationshipsOriginAddress)` + +SetOriginAddress sets OriginAddress field to given value. + +### HasOriginAddress + +`func (o *POSTShipments201ResponseDataRelationships) HasOriginAddress() bool` + +HasOriginAddress returns a boolean if a field has been set. + +### GetShippingAddress + +`func (o *POSTShipments201ResponseDataRelationships) GetShippingAddress() POSTOrders201ResponseDataRelationshipsShippingAddress` + +GetShippingAddress returns the ShippingAddress field if non-nil, zero value otherwise. + +### GetShippingAddressOk + +`func (o *POSTShipments201ResponseDataRelationships) GetShippingAddressOk() (*POSTOrders201ResponseDataRelationshipsShippingAddress, bool)` + +GetShippingAddressOk returns a tuple with the ShippingAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingAddress + +`func (o *POSTShipments201ResponseDataRelationships) SetShippingAddress(v POSTOrders201ResponseDataRelationshipsShippingAddress)` + +SetShippingAddress sets ShippingAddress field to given value. + +### HasShippingAddress + +`func (o *POSTShipments201ResponseDataRelationships) HasShippingAddress() bool` + +HasShippingAddress returns a boolean if a field has been set. + +### GetShippingMethod + +`func (o *POSTShipments201ResponseDataRelationships) GetShippingMethod() POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod` + +GetShippingMethod returns the ShippingMethod field if non-nil, zero value otherwise. + +### GetShippingMethodOk + +`func (o *POSTShipments201ResponseDataRelationships) GetShippingMethodOk() (*POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod, bool)` + +GetShippingMethodOk returns a tuple with the ShippingMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingMethod + +`func (o *POSTShipments201ResponseDataRelationships) SetShippingMethod(v POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod)` + +SetShippingMethod sets ShippingMethod field to given value. + +### HasShippingMethod + +`func (o *POSTShipments201ResponseDataRelationships) HasShippingMethod() bool` + +HasShippingMethod returns a boolean if a field has been set. + +### GetDeliveryLeadTime + +`func (o *POSTShipments201ResponseDataRelationships) GetDeliveryLeadTime() POSTShipments201ResponseDataRelationshipsDeliveryLeadTime` + +GetDeliveryLeadTime returns the DeliveryLeadTime field if non-nil, zero value otherwise. + +### GetDeliveryLeadTimeOk + +`func (o *POSTShipments201ResponseDataRelationships) GetDeliveryLeadTimeOk() (*POSTShipments201ResponseDataRelationshipsDeliveryLeadTime, bool)` + +GetDeliveryLeadTimeOk returns a tuple with the DeliveryLeadTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeliveryLeadTime + +`func (o *POSTShipments201ResponseDataRelationships) SetDeliveryLeadTime(v POSTShipments201ResponseDataRelationshipsDeliveryLeadTime)` + +SetDeliveryLeadTime sets DeliveryLeadTime field to given value. + +### HasDeliveryLeadTime + +`func (o *POSTShipments201ResponseDataRelationships) HasDeliveryLeadTime() bool` + +HasDeliveryLeadTime returns a boolean if a field has been set. + +### GetStockLineItems + +`func (o *POSTShipments201ResponseDataRelationships) GetStockLineItems() POSTLineItems201ResponseDataRelationshipsStockLineItems` + +GetStockLineItems returns the StockLineItems field if non-nil, zero value otherwise. + +### GetStockLineItemsOk + +`func (o *POSTShipments201ResponseDataRelationships) GetStockLineItemsOk() (*POSTLineItems201ResponseDataRelationshipsStockLineItems, bool)` + +GetStockLineItemsOk returns a tuple with the StockLineItems field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockLineItems + +`func (o *POSTShipments201ResponseDataRelationships) SetStockLineItems(v POSTLineItems201ResponseDataRelationshipsStockLineItems)` + +SetStockLineItems sets StockLineItems field to given value. + +### HasStockLineItems + +`func (o *POSTShipments201ResponseDataRelationships) HasStockLineItems() bool` + +HasStockLineItems returns a boolean if a field has been set. + +### GetStockTransfers + +`func (o *POSTShipments201ResponseDataRelationships) GetStockTransfers() POSTLineItems201ResponseDataRelationshipsStockTransfers` + +GetStockTransfers returns the StockTransfers field if non-nil, zero value otherwise. + +### GetStockTransfersOk + +`func (o *POSTShipments201ResponseDataRelationships) GetStockTransfersOk() (*POSTLineItems201ResponseDataRelationshipsStockTransfers, bool)` + +GetStockTransfersOk returns a tuple with the StockTransfers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockTransfers + +`func (o *POSTShipments201ResponseDataRelationships) SetStockTransfers(v POSTLineItems201ResponseDataRelationshipsStockTransfers)` + +SetStockTransfers sets StockTransfers field to given value. + +### HasStockTransfers + +`func (o *POSTShipments201ResponseDataRelationships) HasStockTransfers() bool` + +HasStockTransfers returns a boolean if a field has been set. + +### GetLineItems + +`func (o *POSTShipments201ResponseDataRelationships) GetLineItems() POSTOrders201ResponseDataRelationshipsLineItems` + +GetLineItems returns the LineItems field if non-nil, zero value otherwise. + +### GetLineItemsOk + +`func (o *POSTShipments201ResponseDataRelationships) GetLineItemsOk() (*POSTOrders201ResponseDataRelationshipsLineItems, bool)` + +GetLineItemsOk returns a tuple with the LineItems field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLineItems + +`func (o *POSTShipments201ResponseDataRelationships) SetLineItems(v POSTOrders201ResponseDataRelationshipsLineItems)` + +SetLineItems sets LineItems field to given value. + +### HasLineItems + +`func (o *POSTShipments201ResponseDataRelationships) HasLineItems() bool` + +HasLineItems returns a boolean if a field has been set. + +### GetAvailableShippingMethods + +`func (o *POSTShipments201ResponseDataRelationships) GetAvailableShippingMethods() POSTShipments201ResponseDataRelationshipsAvailableShippingMethods` + +GetAvailableShippingMethods returns the AvailableShippingMethods field if non-nil, zero value otherwise. + +### GetAvailableShippingMethodsOk + +`func (o *POSTShipments201ResponseDataRelationships) GetAvailableShippingMethodsOk() (*POSTShipments201ResponseDataRelationshipsAvailableShippingMethods, bool)` + +GetAvailableShippingMethodsOk returns a tuple with the AvailableShippingMethods field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailableShippingMethods + +`func (o *POSTShipments201ResponseDataRelationships) SetAvailableShippingMethods(v POSTShipments201ResponseDataRelationshipsAvailableShippingMethods)` + +SetAvailableShippingMethods sets AvailableShippingMethods field to given value. + +### HasAvailableShippingMethods + +`func (o *POSTShipments201ResponseDataRelationships) HasAvailableShippingMethods() bool` + +HasAvailableShippingMethods returns a boolean if a field has been set. + +### GetCarrierAccounts + +`func (o *POSTShipments201ResponseDataRelationships) GetCarrierAccounts() POSTShipments201ResponseDataRelationshipsCarrierAccounts` + +GetCarrierAccounts returns the CarrierAccounts field if non-nil, zero value otherwise. + +### GetCarrierAccountsOk + +`func (o *POSTShipments201ResponseDataRelationships) GetCarrierAccountsOk() (*POSTShipments201ResponseDataRelationshipsCarrierAccounts, bool)` + +GetCarrierAccountsOk returns a tuple with the CarrierAccounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCarrierAccounts + +`func (o *POSTShipments201ResponseDataRelationships) SetCarrierAccounts(v POSTShipments201ResponseDataRelationshipsCarrierAccounts)` + +SetCarrierAccounts sets CarrierAccounts field to given value. + +### HasCarrierAccounts + +`func (o *POSTShipments201ResponseDataRelationships) HasCarrierAccounts() bool` + +HasCarrierAccounts returns a boolean if a field has been set. + +### GetParcels + +`func (o *POSTShipments201ResponseDataRelationships) GetParcels() POSTPackages201ResponseDataRelationshipsParcels` + +GetParcels returns the Parcels field if non-nil, zero value otherwise. + +### GetParcelsOk + +`func (o *POSTShipments201ResponseDataRelationships) GetParcelsOk() (*POSTPackages201ResponseDataRelationshipsParcels, bool)` + +GetParcelsOk returns a tuple with the Parcels field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParcels + +`func (o *POSTShipments201ResponseDataRelationships) SetParcels(v POSTPackages201ResponseDataRelationshipsParcels)` + +SetParcels sets Parcels field to given value. + +### HasParcels + +`func (o *POSTShipments201ResponseDataRelationships) HasParcels() bool` + +HasParcels returns a boolean if a field has been set. + +### GetAttachments + +`func (o *POSTShipments201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *POSTShipments201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *POSTShipments201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *POSTShipments201ResponseDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + +### GetEvents + +`func (o *POSTShipments201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *POSTShipments201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *POSTShipments201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *POSTShipments201ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *POSTShipments201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *POSTShipments201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *POSTShipments201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *POSTShipments201ResponseDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTShipments201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTShipments201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTShipments201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTShipments201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTShipments201ResponseDataRelationshipsAvailableShippingMethods.md b/api/docs/POSTShipments201ResponseDataRelationshipsAvailableShippingMethods.md new file mode 100644 index 00000000..668a4274 --- /dev/null +++ b/api/docs/POSTShipments201ResponseDataRelationshipsAvailableShippingMethods.md @@ -0,0 +1,82 @@ +# POSTShipments201ResponseDataRelationshipsAvailableShippingMethods + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData**](POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData.md) | | [optional] + +## Methods + +### NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethods + +`func NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethods() *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods` + +NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethods instantiates a new POSTShipments201ResponseDataRelationshipsAvailableShippingMethods object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsWithDefaults + +`func NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsWithDefaults() *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods` + +NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsAvailableShippingMethods object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) GetData() POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) GetDataOk() (*POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) SetData(v POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData.md b/api/docs/POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData.md new file mode 100644 index 00000000..8f6004e8 --- /dev/null +++ b/api/docs/POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData.md @@ -0,0 +1,102 @@ +# POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData + +`func NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData() *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData` + +NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData instantiates a new POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsDataWithDefaults + +`func NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsDataWithDefaults() *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData` + +NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsDataWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTShipments201ResponseDataRelationshipsCarrierAccounts.md b/api/docs/POSTShipments201ResponseDataRelationshipsCarrierAccounts.md new file mode 100644 index 00000000..587bc663 --- /dev/null +++ b/api/docs/POSTShipments201ResponseDataRelationshipsCarrierAccounts.md @@ -0,0 +1,82 @@ +# POSTShipments201ResponseDataRelationshipsCarrierAccounts + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTShipments201ResponseDataRelationshipsCarrierAccountsData**](POSTShipments201ResponseDataRelationshipsCarrierAccountsData.md) | | [optional] + +## Methods + +### NewPOSTShipments201ResponseDataRelationshipsCarrierAccounts + +`func NewPOSTShipments201ResponseDataRelationshipsCarrierAccounts() *POSTShipments201ResponseDataRelationshipsCarrierAccounts` + +NewPOSTShipments201ResponseDataRelationshipsCarrierAccounts instantiates a new POSTShipments201ResponseDataRelationshipsCarrierAccounts object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTShipments201ResponseDataRelationshipsCarrierAccountsWithDefaults + +`func NewPOSTShipments201ResponseDataRelationshipsCarrierAccountsWithDefaults() *POSTShipments201ResponseDataRelationshipsCarrierAccounts` + +NewPOSTShipments201ResponseDataRelationshipsCarrierAccountsWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsCarrierAccounts object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccounts) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccounts) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccounts) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccounts) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccounts) GetData() POSTShipments201ResponseDataRelationshipsCarrierAccountsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccounts) GetDataOk() (*POSTShipments201ResponseDataRelationshipsCarrierAccountsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccounts) SetData(v POSTShipments201ResponseDataRelationshipsCarrierAccountsData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccounts) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTShipments201ResponseDataRelationshipsCarrierAccountsData.md b/api/docs/POSTShipments201ResponseDataRelationshipsCarrierAccountsData.md new file mode 100644 index 00000000..d372fa4b --- /dev/null +++ b/api/docs/POSTShipments201ResponseDataRelationshipsCarrierAccountsData.md @@ -0,0 +1,102 @@ +# POSTShipments201ResponseDataRelationshipsCarrierAccountsData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTShipments201ResponseDataRelationshipsCarrierAccountsData + +`func NewPOSTShipments201ResponseDataRelationshipsCarrierAccountsData() *POSTShipments201ResponseDataRelationshipsCarrierAccountsData` + +NewPOSTShipments201ResponseDataRelationshipsCarrierAccountsData instantiates a new POSTShipments201ResponseDataRelationshipsCarrierAccountsData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTShipments201ResponseDataRelationshipsCarrierAccountsDataWithDefaults + +`func NewPOSTShipments201ResponseDataRelationshipsCarrierAccountsDataWithDefaults() *POSTShipments201ResponseDataRelationshipsCarrierAccountsData` + +NewPOSTShipments201ResponseDataRelationshipsCarrierAccountsDataWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsCarrierAccountsData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTShipments201ResponseDataRelationshipsDeliveryLeadTime.md b/api/docs/POSTShipments201ResponseDataRelationshipsDeliveryLeadTime.md new file mode 100644 index 00000000..6f358761 --- /dev/null +++ b/api/docs/POSTShipments201ResponseDataRelationshipsDeliveryLeadTime.md @@ -0,0 +1,82 @@ +# POSTShipments201ResponseDataRelationshipsDeliveryLeadTime + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData**](POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData.md) | | [optional] + +## Methods + +### NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTime + +`func NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTime() *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime` + +NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTime instantiates a new POSTShipments201ResponseDataRelationshipsDeliveryLeadTime object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeWithDefaults + +`func NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeWithDefaults() *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime` + +NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsDeliveryLeadTime object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) GetData() POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) GetDataOk() (*POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) SetData(v POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData.md b/api/docs/POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData.md new file mode 100644 index 00000000..c3e5fb73 --- /dev/null +++ b/api/docs/POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData.md @@ -0,0 +1,102 @@ +# POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData + +`func NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData() *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData` + +NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData instantiates a new POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeDataWithDefaults + +`func NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeDataWithDefaults() *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData` + +NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeDataWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTShipments201ResponseDataRelationshipsInventoryStockLocation.md b/api/docs/POSTShipments201ResponseDataRelationshipsInventoryStockLocation.md new file mode 100644 index 00000000..b9ed2921 --- /dev/null +++ b/api/docs/POSTShipments201ResponseDataRelationshipsInventoryStockLocation.md @@ -0,0 +1,82 @@ +# POSTShipments201ResponseDataRelationshipsInventoryStockLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTShipments201ResponseDataRelationshipsInventoryStockLocationData**](POSTShipments201ResponseDataRelationshipsInventoryStockLocationData.md) | | [optional] + +## Methods + +### NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocation + +`func NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocation() *POSTShipments201ResponseDataRelationshipsInventoryStockLocation` + +NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocation instantiates a new POSTShipments201ResponseDataRelationshipsInventoryStockLocation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocationWithDefaults + +`func NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocationWithDefaults() *POSTShipments201ResponseDataRelationshipsInventoryStockLocation` + +NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocationWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsInventoryStockLocation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocation) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocation) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocation) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocation) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocation) GetData() POSTShipments201ResponseDataRelationshipsInventoryStockLocationData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocation) GetDataOk() (*POSTShipments201ResponseDataRelationshipsInventoryStockLocationData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocation) SetData(v POSTShipments201ResponseDataRelationshipsInventoryStockLocationData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocation) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTShipments201ResponseDataRelationshipsInventoryStockLocationData.md b/api/docs/POSTShipments201ResponseDataRelationshipsInventoryStockLocationData.md new file mode 100644 index 00000000..83c36eaf --- /dev/null +++ b/api/docs/POSTShipments201ResponseDataRelationshipsInventoryStockLocationData.md @@ -0,0 +1,102 @@ +# POSTShipments201ResponseDataRelationshipsInventoryStockLocationData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocationData + +`func NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocationData() *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData` + +NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocationData instantiates a new POSTShipments201ResponseDataRelationshipsInventoryStockLocationData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocationDataWithDefaults + +`func NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocationDataWithDefaults() *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData` + +NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocationDataWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsInventoryStockLocationData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTShipments201ResponseDataRelationshipsShippingCategory.md b/api/docs/POSTShipments201ResponseDataRelationshipsShippingCategory.md new file mode 100644 index 00000000..1a7dc471 --- /dev/null +++ b/api/docs/POSTShipments201ResponseDataRelationshipsShippingCategory.md @@ -0,0 +1,82 @@ +# POSTShipments201ResponseDataRelationshipsShippingCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTShipments201ResponseDataRelationshipsShippingCategoryData**](POSTShipments201ResponseDataRelationshipsShippingCategoryData.md) | | [optional] + +## Methods + +### NewPOSTShipments201ResponseDataRelationshipsShippingCategory + +`func NewPOSTShipments201ResponseDataRelationshipsShippingCategory() *POSTShipments201ResponseDataRelationshipsShippingCategory` + +NewPOSTShipments201ResponseDataRelationshipsShippingCategory instantiates a new POSTShipments201ResponseDataRelationshipsShippingCategory object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTShipments201ResponseDataRelationshipsShippingCategoryWithDefaults + +`func NewPOSTShipments201ResponseDataRelationshipsShippingCategoryWithDefaults() *POSTShipments201ResponseDataRelationshipsShippingCategory` + +NewPOSTShipments201ResponseDataRelationshipsShippingCategoryWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsShippingCategory object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategory) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategory) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategory) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategory) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategory) GetData() POSTShipments201ResponseDataRelationshipsShippingCategoryData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategory) GetDataOk() (*POSTShipments201ResponseDataRelationshipsShippingCategoryData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategory) SetData(v POSTShipments201ResponseDataRelationshipsShippingCategoryData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategory) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTShipments201ResponseDataRelationshipsShippingCategoryData.md b/api/docs/POSTShipments201ResponseDataRelationshipsShippingCategoryData.md new file mode 100644 index 00000000..d8dd8ca3 --- /dev/null +++ b/api/docs/POSTShipments201ResponseDataRelationshipsShippingCategoryData.md @@ -0,0 +1,102 @@ +# POSTShipments201ResponseDataRelationshipsShippingCategoryData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTShipments201ResponseDataRelationshipsShippingCategoryData + +`func NewPOSTShipments201ResponseDataRelationshipsShippingCategoryData() *POSTShipments201ResponseDataRelationshipsShippingCategoryData` + +NewPOSTShipments201ResponseDataRelationshipsShippingCategoryData instantiates a new POSTShipments201ResponseDataRelationshipsShippingCategoryData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTShipments201ResponseDataRelationshipsShippingCategoryDataWithDefaults + +`func NewPOSTShipments201ResponseDataRelationshipsShippingCategoryDataWithDefaults() *POSTShipments201ResponseDataRelationshipsShippingCategoryData` + +NewPOSTShipments201ResponseDataRelationshipsShippingCategoryDataWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsShippingCategoryData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTShippingCategories201ResponseDataAttributes.md b/api/docs/POSTShippingCategories201ResponseDataAttributes.md index 73434d78..752d9ff3 100644 --- a/api/docs/POSTShippingCategories201ResponseDataAttributes.md +++ b/api/docs/POSTShippingCategories201ResponseDataAttributes.md @@ -5,8 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The shipping category name. | +**Code** | Pointer to **interface{}** | A string that you can use to identify the shipping category (must be unique within the environment). | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -58,6 +59,41 @@ SetName sets Name field to given value. `func (o *POSTShippingCategories201ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCode + +`func (o *POSTShippingCategories201ResponseDataAttributes) GetCode() interface{}` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *POSTShippingCategories201ResponseDataAttributes) GetCodeOk() (*interface{}, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *POSTShippingCategories201ResponseDataAttributes) SetCode(v interface{})` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *POSTShippingCategories201ResponseDataAttributes) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### SetCodeNil + +`func (o *POSTShippingCategories201ResponseDataAttributes) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *POSTShippingCategories201ResponseDataAttributes) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil ### GetReference `func (o *POSTShippingCategories201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTShippingCategories201ResponseDataRelationships.md b/api/docs/POSTShippingCategories201ResponseDataRelationships.md index c7e3e7dc..27b0e624 100644 --- a/api/docs/POSTShippingCategories201ResponseDataRelationships.md +++ b/api/docs/POSTShippingCategories201ResponseDataRelationships.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Skus** | Pointer to [**POSTBundles201ResponseDataRelationshipsSkus**](POSTBundles201ResponseDataRelationshipsSkus.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -53,20 +54,20 @@ HasSkus returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTShippingCategories201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTShippingCategories201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTShippingCategories201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTShippingCategories201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTShippingCategories201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTShippingCategories201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -76,6 +77,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTShippingCategories201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTShippingCategories201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTShippingCategories201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTShippingCategories201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTShippingMethods201ResponseDataAttributes.md b/api/docs/POSTShippingMethods201ResponseDataAttributes.md index d5f5bff2..32da6aee 100644 --- a/api/docs/POSTShippingMethods201ResponseDataAttributes.md +++ b/api/docs/POSTShippingMethods201ResponseDataAttributes.md @@ -4,16 +4,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **interface{}** | The shipping method's name | -**Scheme** | Pointer to **interface{}** | The shipping method's scheme, one of 'flat' or 'weight_tiered'. | [optional] +**Name** | **interface{}** | The shipping method's name. | +**Scheme** | Pointer to **interface{}** | The shipping method's scheme. One of 'flat', 'weight_tiered', or 'external'. | [optional] **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] +**ExternalPricesUrl** | Pointer to **interface{}** | The URL used to overwrite prices by an external source. | [optional] **PriceAmountCents** | **interface{}** | The price of this shipping method, in cents. | **FreeOverAmountCents** | Pointer to **interface{}** | Apply free shipping if the order amount is over this value, in cents. | [optional] +**UseSubtotal** | Pointer to **interface{}** | Send this attribute if you want to compare the free over amount with order's subtotal (excluding discounts, if any). | [optional] **MinWeight** | Pointer to **interface{}** | The minimum weight for which this shipping method is available. | [optional] **MaxWeight** | Pointer to **interface{}** | The maximum weight for which this shipping method is available. | [optional] -**UnitOfWeight** | Pointer to **interface{}** | Can be one of 'gr', 'lb', or 'oz' | [optional] +**UnitOfWeight** | Pointer to **interface{}** | The unit of weight. One of 'gr', 'oz', or 'lb'. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -135,6 +139,41 @@ HasCurrencyCode returns a boolean if a field has been set. `func (o *POSTShippingMethods201ResponseDataAttributes) UnsetCurrencyCode()` UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetExternalPricesUrl + +`func (o *POSTShippingMethods201ResponseDataAttributes) GetExternalPricesUrl() interface{}` + +GetExternalPricesUrl returns the ExternalPricesUrl field if non-nil, zero value otherwise. + +### GetExternalPricesUrlOk + +`func (o *POSTShippingMethods201ResponseDataAttributes) GetExternalPricesUrlOk() (*interface{}, bool)` + +GetExternalPricesUrlOk returns a tuple with the ExternalPricesUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalPricesUrl + +`func (o *POSTShippingMethods201ResponseDataAttributes) SetExternalPricesUrl(v interface{})` + +SetExternalPricesUrl sets ExternalPricesUrl field to given value. + +### HasExternalPricesUrl + +`func (o *POSTShippingMethods201ResponseDataAttributes) HasExternalPricesUrl() bool` + +HasExternalPricesUrl returns a boolean if a field has been set. + +### SetExternalPricesUrlNil + +`func (o *POSTShippingMethods201ResponseDataAttributes) SetExternalPricesUrlNil(b bool)` + + SetExternalPricesUrlNil sets the value for ExternalPricesUrl to be an explicit nil + +### UnsetExternalPricesUrl +`func (o *POSTShippingMethods201ResponseDataAttributes) UnsetExternalPricesUrl()` + +UnsetExternalPricesUrl ensures that no value is present for ExternalPricesUrl, not even an explicit nil ### GetPriceAmountCents `func (o *POSTShippingMethods201ResponseDataAttributes) GetPriceAmountCents() interface{}` @@ -200,6 +239,41 @@ HasFreeOverAmountCents returns a boolean if a field has been set. `func (o *POSTShippingMethods201ResponseDataAttributes) UnsetFreeOverAmountCents()` UnsetFreeOverAmountCents ensures that no value is present for FreeOverAmountCents, not even an explicit nil +### GetUseSubtotal + +`func (o *POSTShippingMethods201ResponseDataAttributes) GetUseSubtotal() interface{}` + +GetUseSubtotal returns the UseSubtotal field if non-nil, zero value otherwise. + +### GetUseSubtotalOk + +`func (o *POSTShippingMethods201ResponseDataAttributes) GetUseSubtotalOk() (*interface{}, bool)` + +GetUseSubtotalOk returns a tuple with the UseSubtotal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUseSubtotal + +`func (o *POSTShippingMethods201ResponseDataAttributes) SetUseSubtotal(v interface{})` + +SetUseSubtotal sets UseSubtotal field to given value. + +### HasUseSubtotal + +`func (o *POSTShippingMethods201ResponseDataAttributes) HasUseSubtotal() bool` + +HasUseSubtotal returns a boolean if a field has been set. + +### SetUseSubtotalNil + +`func (o *POSTShippingMethods201ResponseDataAttributes) SetUseSubtotalNil(b bool)` + + SetUseSubtotalNil sets the value for UseSubtotal to be an explicit nil + +### UnsetUseSubtotal +`func (o *POSTShippingMethods201ResponseDataAttributes) UnsetUseSubtotal()` + +UnsetUseSubtotal ensures that no value is present for UseSubtotal, not even an explicit nil ### GetMinWeight `func (o *POSTShippingMethods201ResponseDataAttributes) GetMinWeight() interface{}` @@ -305,6 +379,76 @@ HasUnitOfWeight returns a boolean if a field has been set. `func (o *POSTShippingMethods201ResponseDataAttributes) UnsetUnitOfWeight()` UnsetUnitOfWeight ensures that no value is present for UnitOfWeight, not even an explicit nil +### GetDisable + +`func (o *POSTShippingMethods201ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *POSTShippingMethods201ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *POSTShippingMethods201ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *POSTShippingMethods201ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *POSTShippingMethods201ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *POSTShippingMethods201ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *POSTShippingMethods201ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *POSTShippingMethods201ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *POSTShippingMethods201ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *POSTShippingMethods201ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *POSTShippingMethods201ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *POSTShippingMethods201ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil ### GetReference `func (o *POSTShippingMethods201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTShippingMethods201ResponseDataRelationships.md b/api/docs/POSTShippingMethods201ResponseDataRelationships.md index 91f33777..3fd2ec44 100644 --- a/api/docs/POSTShippingMethods201ResponseDataRelationships.md +++ b/api/docs/POSTShippingMethods201ResponseDataRelationships.md @@ -6,12 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Market** | Pointer to [**POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket**](POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket.md) | | [optional] **ShippingZone** | Pointer to [**POSTShippingMethods201ResponseDataRelationshipsShippingZone**](POSTShippingMethods201ResponseDataRelationshipsShippingZone.md) | | [optional] -**ShippingCategory** | Pointer to [**GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory**](GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory.md) | | [optional] +**ShippingCategory** | Pointer to [**POSTShipments201ResponseDataRelationshipsShippingCategory**](POSTShipments201ResponseDataRelationshipsShippingCategory.md) | | [optional] **StockLocation** | Pointer to [**POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation**](POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation.md) | | [optional] **DeliveryLeadTimeForShipment** | Pointer to [**POSTShippingMethods201ResponseDataRelationshipsDeliveryLeadTimeForShipment**](POSTShippingMethods201ResponseDataRelationshipsDeliveryLeadTimeForShipment.md) | | [optional] **ShippingMethodTiers** | Pointer to [**POSTShippingMethods201ResponseDataRelationshipsShippingMethodTiers**](POSTShippingMethods201ResponseDataRelationshipsShippingMethodTiers.md) | | [optional] **ShippingWeightTiers** | Pointer to [**POSTShippingMethods201ResponseDataRelationshipsShippingWeightTiers**](POSTShippingMethods201ResponseDataRelationshipsShippingWeightTiers.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -84,20 +85,20 @@ HasShippingZone returns a boolean if a field has been set. ### GetShippingCategory -`func (o *POSTShippingMethods201ResponseDataRelationships) GetShippingCategory() GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory` +`func (o *POSTShippingMethods201ResponseDataRelationships) GetShippingCategory() POSTShipments201ResponseDataRelationshipsShippingCategory` GetShippingCategory returns the ShippingCategory field if non-nil, zero value otherwise. ### GetShippingCategoryOk -`func (o *POSTShippingMethods201ResponseDataRelationships) GetShippingCategoryOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory, bool)` +`func (o *POSTShippingMethods201ResponseDataRelationships) GetShippingCategoryOk() (*POSTShipments201ResponseDataRelationshipsShippingCategory, bool)` GetShippingCategoryOk returns a tuple with the ShippingCategory field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetShippingCategory -`func (o *POSTShippingMethods201ResponseDataRelationships) SetShippingCategory(v GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory)` +`func (o *POSTShippingMethods201ResponseDataRelationships) SetShippingCategory(v POSTShipments201ResponseDataRelationshipsShippingCategory)` SetShippingCategory sets ShippingCategory field to given value. @@ -209,20 +210,20 @@ HasShippingWeightTiers returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTShippingMethods201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTShippingMethods201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTShippingMethods201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTShippingMethods201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTShippingMethods201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTShippingMethods201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -232,6 +233,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTShippingMethods201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTShippingMethods201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTShippingMethods201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTShippingMethods201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTShippingWeightTiers201ResponseDataAttributes.md b/api/docs/POSTShippingWeightTiers201ResponseDataAttributes.md index 773037ed..8ffc5253 100644 --- a/api/docs/POSTShippingWeightTiers201ResponseDataAttributes.md +++ b/api/docs/POSTShippingWeightTiers201ResponseDataAttributes.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **interface{}** | The shipping method tier's name | +**Name** | **interface{}** | The shipping method tier's name. | **UpTo** | Pointer to **interface{}** | The tier upper limit. When 'null' it means infinity (useful to have an always matching tier). | [optional] **PriceAmountCents** | **interface{}** | The price of this shipping method tier, in cents. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTShippingZones201ResponseDataAttributes.md b/api/docs/POSTShippingZones201ResponseDataAttributes.md index f03fdd5d..4a2e8b5f 100644 --- a/api/docs/POSTShippingZones201ResponseDataAttributes.md +++ b/api/docs/POSTShippingZones201ResponseDataAttributes.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **ZipCodeRegex** | Pointer to **interface{}** | The regex that will be evaluated to match the shipping address zip code. | [optional] **NotZipCodeRegex** | Pointer to **interface{}** | The regex that will be evaluated as negative match for the shipping zip country code. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTShippingZones201ResponseDataRelationships.md b/api/docs/POSTShippingZones201ResponseDataRelationships.md index 1537f961..850886e2 100644 --- a/api/docs/POSTShippingZones201ResponseDataRelationships.md +++ b/api/docs/POSTShippingZones201ResponseDataRelationships.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -27,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetAttachments -`func (o *POSTShippingZones201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTShippingZones201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTShippingZones201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTShippingZones201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTShippingZones201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTShippingZones201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -50,6 +51,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTShippingZones201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTShippingZones201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTShippingZones201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTShippingZones201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTSkuListItems201ResponseDataAttributes.md b/api/docs/POSTSkuListItems201ResponseDataAttributes.md index 020b5fe7..747b2d2d 100644 --- a/api/docs/POSTSkuListItems201ResponseDataAttributes.md +++ b/api/docs/POSTSkuListItems201ResponseDataAttributes.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **SkuCode** | Pointer to **interface{}** | The code of the associated SKU. | [optional] **Quantity** | Pointer to **interface{}** | The SKU quantity for this SKU list item. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTSkuListItems201ResponseDataRelationships.md b/api/docs/POSTSkuListItems201ResponseDataRelationships.md index a6217450..63622500 100644 --- a/api/docs/POSTSkuListItems201ResponseDataRelationships.md +++ b/api/docs/POSTSkuListItems201ResponseDataRelationships.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SkuList** | Pointer to [**POSTBundles201ResponseDataRelationshipsSkuList**](POSTBundles201ResponseDataRelationshipsSkuList.md) | | [optional] **Sku** | Pointer to [**POSTInStockSubscriptions201ResponseDataRelationshipsSku**](POSTInStockSubscriptions201ResponseDataRelationshipsSku.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -76,6 +77,31 @@ SetSku sets Sku field to given value. HasSku returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTSkuListItems201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTSkuListItems201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTSkuListItems201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTSkuListItems201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTSkuListPromotionRules201ResponseDataAttributes.md b/api/docs/POSTSkuListPromotionRules201ResponseDataAttributes.md index 0ca098cc..0b074b2d 100644 --- a/api/docs/POSTSkuListPromotionRules201ResponseDataAttributes.md +++ b/api/docs/POSTSkuListPromotionRules201ResponseDataAttributes.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **AllSkus** | Pointer to **interface{}** | Indicates if the rule is activated only when all of the SKUs of the list is also part of the order. | [optional] **MinQuantity** | Pointer to **interface{}** | The min quantity of SKUs of the list that must be also part of the order. If positive, overwrites the 'all_skus' option. When the SKU list is manual, its items quantities are honoured. | [optional] diff --git a/api/docs/POSTSkuListPromotionRules201ResponseDataRelationships.md b/api/docs/POSTSkuListPromotionRules201ResponseDataRelationships.md index ba38a428..4eabc06e 100644 --- a/api/docs/POSTSkuListPromotionRules201ResponseDataRelationships.md +++ b/api/docs/POSTSkuListPromotionRules201ResponseDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Promotion** | Pointer to [**POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion**](POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] **SkuList** | Pointer to [**POSTBundles201ResponseDataRelationshipsSkuList**](POSTBundles201ResponseDataRelationshipsSkuList.md) | | [optional] **Skus** | Pointer to [**POSTBundles201ResponseDataRelationshipsSkus**](POSTBundles201ResponseDataRelationshipsSkus.md) | | [optional] @@ -52,6 +53,31 @@ SetPromotion sets Promotion field to given value. HasPromotion returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTSkuListPromotionRules201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTSkuListPromotionRules201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTSkuListPromotionRules201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTSkuListPromotionRules201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetSkuList `func (o *POSTSkuListPromotionRules201ResponseDataRelationships) GetSkuList() POSTBundles201ResponseDataRelationshipsSkuList` diff --git a/api/docs/POSTSkuLists201ResponseDataAttributes.md b/api/docs/POSTSkuLists201ResponseDataAttributes.md index 31ccba65..024c18b6 100644 --- a/api/docs/POSTSkuLists201ResponseDataAttributes.md +++ b/api/docs/POSTSkuLists201ResponseDataAttributes.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **Manual** | Pointer to **interface{}** | Indicates if the SKU list is populated manually. | [optional] **SkuCodeRegex** | Pointer to **interface{}** | The regex that will be evaluated to match the SKU codes. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTSkuLists201ResponseDataRelationships.md b/api/docs/POSTSkuLists201ResponseDataRelationships.md index 833f964a..34db2b36 100644 --- a/api/docs/POSTSkuLists201ResponseDataRelationships.md +++ b/api/docs/POSTSkuLists201ResponseDataRelationships.md @@ -8,7 +8,9 @@ Name | Type | Description | Notes **Skus** | Pointer to [**POSTBundles201ResponseDataRelationshipsSkus**](POSTBundles201ResponseDataRelationshipsSkus.md) | | [optional] **SkuListItems** | Pointer to [**POSTSkuLists201ResponseDataRelationshipsSkuListItems**](POSTSkuLists201ResponseDataRelationshipsSkuListItems.md) | | [optional] **Bundles** | Pointer to [**POSTSkuLists201ResponseDataRelationshipsBundles**](POSTSkuLists201ResponseDataRelationshipsBundles.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Links** | Pointer to [**POSTOrders201ResponseDataRelationshipsLinks**](POSTOrders201ResponseDataRelationshipsLinks.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -131,20 +133,20 @@ HasBundles returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTSkuLists201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTSkuLists201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTSkuLists201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTSkuLists201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTSkuLists201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTSkuLists201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -154,6 +156,56 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetLinks + +`func (o *POSTSkuLists201ResponseDataRelationships) GetLinks() POSTOrders201ResponseDataRelationshipsLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTSkuLists201ResponseDataRelationships) GetLinksOk() (*POSTOrders201ResponseDataRelationshipsLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTSkuLists201ResponseDataRelationships) SetLinks(v POSTOrders201ResponseDataRelationshipsLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTSkuLists201ResponseDataRelationships) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTSkuLists201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTSkuLists201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTSkuLists201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTSkuLists201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTSkuOptions201ResponseData.md b/api/docs/POSTSkuOptions201ResponseData.md index bea232d8..2cb00bec 100644 --- a/api/docs/POSTSkuOptions201ResponseData.md +++ b/api/docs/POSTSkuOptions201ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**POSTSkuOptions201ResponseDataAttributes**](POSTSkuOptions201ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTBillingInfoValidationRules201ResponseDataRelationships**](POSTBillingInfoValidationRules201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTSkuOptions201ResponseDataRelationships**](POSTSkuOptions201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *POSTSkuOptions201ResponseData) GetRelationships() POSTBillingInfoValidationRules201ResponseDataRelationships` +`func (o *POSTSkuOptions201ResponseData) GetRelationships() POSTSkuOptions201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *POSTSkuOptions201ResponseData) GetRelationshipsOk() (*POSTBillingInfoValidationRules201ResponseDataRelationships, bool)` +`func (o *POSTSkuOptions201ResponseData) GetRelationshipsOk() (*POSTSkuOptions201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *POSTSkuOptions201ResponseData) SetRelationships(v POSTBillingInfoValidationRules201ResponseDataRelationships)` +`func (o *POSTSkuOptions201ResponseData) SetRelationships(v POSTSkuOptions201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/POSTSkuOptions201ResponseDataAttributes.md b/api/docs/POSTSkuOptions201ResponseDataAttributes.md index 9bd996d1..0d2bc1c5 100644 --- a/api/docs/POSTSkuOptions201ResponseDataAttributes.md +++ b/api/docs/POSTSkuOptions201ResponseDataAttributes.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **interface{}** | The SKU option's internal name | +**Name** | **interface{}** | The SKU option's internal name. | **CurrencyCode** | Pointer to **interface{}** | The international 3-letter currency code as defined by the ISO 4217 standard. | [optional] **Description** | Pointer to **interface{}** | An internal description of the SKU option. | [optional] **PriceAmountCents** | Pointer to **interface{}** | The price of this shipping method, in cents. | [optional] **DelayHours** | Pointer to **interface{}** | The delay time (in hours) that should be added to the delivery lead time when this option is purchased. | [optional] **SkuCodeRegex** | Pointer to **interface{}** | The regex that will be evaluated to match the SKU codes. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTSkuOptions201ResponseDataRelationships.md b/api/docs/POSTSkuOptions201ResponseDataRelationships.md new file mode 100644 index 00000000..b03c26ab --- /dev/null +++ b/api/docs/POSTSkuOptions201ResponseDataRelationships.md @@ -0,0 +1,160 @@ +# POSTSkuOptions201ResponseDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Market** | Pointer to [**POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket**](POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**POSTAddresses201ResponseDataRelationshipsTags**](POSTAddresses201ResponseDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewPOSTSkuOptions201ResponseDataRelationships + +`func NewPOSTSkuOptions201ResponseDataRelationships() *POSTSkuOptions201ResponseDataRelationships` + +NewPOSTSkuOptions201ResponseDataRelationships instantiates a new POSTSkuOptions201ResponseDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTSkuOptions201ResponseDataRelationshipsWithDefaults + +`func NewPOSTSkuOptions201ResponseDataRelationshipsWithDefaults() *POSTSkuOptions201ResponseDataRelationships` + +NewPOSTSkuOptions201ResponseDataRelationshipsWithDefaults instantiates a new POSTSkuOptions201ResponseDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMarket + +`func (o *POSTSkuOptions201ResponseDataRelationships) GetMarket() POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket` + +GetMarket returns the Market field if non-nil, zero value otherwise. + +### GetMarketOk + +`func (o *POSTSkuOptions201ResponseDataRelationships) GetMarketOk() (*POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket, bool)` + +GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarket + +`func (o *POSTSkuOptions201ResponseDataRelationships) SetMarket(v POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket)` + +SetMarket sets Market field to given value. + +### HasMarket + +`func (o *POSTSkuOptions201ResponseDataRelationships) HasMarket() bool` + +HasMarket returns a boolean if a field has been set. + +### GetAttachments + +`func (o *POSTSkuOptions201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *POSTSkuOptions201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *POSTSkuOptions201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *POSTSkuOptions201ResponseDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + +### GetEvents + +`func (o *POSTSkuOptions201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *POSTSkuOptions201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *POSTSkuOptions201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *POSTSkuOptions201ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *POSTSkuOptions201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *POSTSkuOptions201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *POSTSkuOptions201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *POSTSkuOptions201ResponseDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTSkuOptions201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTSkuOptions201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTSkuOptions201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTSkuOptions201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTSkus201ResponseDataAttributes.md b/api/docs/POSTSkus201ResponseDataAttributes.md index 8b33ab0e..cb9fc542 100644 --- a/api/docs/POSTSkus201ResponseDataAttributes.md +++ b/api/docs/POSTSkus201ResponseDataAttributes.md @@ -10,12 +10,12 @@ Name | Type | Description | Notes **ImageUrl** | Pointer to **interface{}** | The URL of an image that represents the SKU. | [optional] **PiecesPerPack** | Pointer to **interface{}** | The number of pieces that compose the SKU. This is useful to describe sets and bundles. | [optional] **Weight** | Pointer to **interface{}** | The weight of the SKU. If present, it will be used to calculate the shipping rates. | [optional] -**UnitOfWeight** | Pointer to **interface{}** | Can be one of 'gr', 'lb', or 'oz' | [optional] +**UnitOfWeight** | Pointer to **interface{}** | The unit of weight. One of 'gr', 'oz', or 'lb'. | [optional] **HsTariffNumber** | Pointer to **interface{}** | The Harmonized System Code used by customs to identify the products shipped across international borders. | [optional] **DoNotShip** | Pointer to **interface{}** | Indicates if the SKU doesn't generate shipments. | [optional] **DoNotTrack** | Pointer to **interface{}** | Indicates if the SKU doesn't track the stock inventory. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTSkus201ResponseDataRelationships.md b/api/docs/POSTSkus201ResponseDataRelationships.md index 389a15d0..c6331747 100644 --- a/api/docs/POSTSkus201ResponseDataRelationships.md +++ b/api/docs/POSTSkus201ResponseDataRelationships.md @@ -4,12 +4,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShippingCategory** | Pointer to [**GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory**](GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory.md) | | [optional] +**ShippingCategory** | Pointer to [**POSTShipments201ResponseDataRelationshipsShippingCategory**](POSTShipments201ResponseDataRelationshipsShippingCategory.md) | | [optional] **Prices** | Pointer to [**POSTPriceLists201ResponseDataRelationshipsPrices**](POSTPriceLists201ResponseDataRelationshipsPrices.md) | | [optional] **StockItems** | Pointer to [**POSTSkus201ResponseDataRelationshipsStockItems**](POSTSkus201ResponseDataRelationshipsStockItems.md) | | [optional] +**StockReservations** | Pointer to [**POSTLineItems201ResponseDataRelationshipsStockReservations**](POSTLineItems201ResponseDataRelationshipsStockReservations.md) | | [optional] **DeliveryLeadTimes** | Pointer to [**POSTSkus201ResponseDataRelationshipsDeliveryLeadTimes**](POSTSkus201ResponseDataRelationshipsDeliveryLeadTimes.md) | | [optional] **SkuOptions** | Pointer to [**POSTSkus201ResponseDataRelationshipsSkuOptions**](POSTSkus201ResponseDataRelationshipsSkuOptions.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**SkuListItems** | Pointer to [**POSTSkuLists201ResponseDataRelationshipsSkuListItems**](POSTSkuLists201ResponseDataRelationshipsSkuListItems.md) | | [optional] +**SkuLists** | Pointer to [**POSTCustomers201ResponseDataRelationshipsSkuLists**](POSTCustomers201ResponseDataRelationshipsSkuLists.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Links** | Pointer to [**POSTOrders201ResponseDataRelationshipsLinks**](POSTOrders201ResponseDataRelationshipsLinks.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**POSTAddresses201ResponseDataRelationshipsTags**](POSTAddresses201ResponseDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] +**JwtCustomer** | Pointer to [**POSTPrices201ResponseDataRelationshipsJwtCustomer**](POSTPrices201ResponseDataRelationshipsJwtCustomer.md) | | [optional] +**JwtMarkets** | Pointer to [**POSTPrices201ResponseDataRelationshipsJwtMarkets**](POSTPrices201ResponseDataRelationshipsJwtMarkets.md) | | [optional] +**JwtStockLocations** | Pointer to [**POSTPrices201ResponseDataRelationshipsJwtStockLocations**](POSTPrices201ResponseDataRelationshipsJwtStockLocations.md) | | [optional] ## Methods @@ -32,20 +42,20 @@ but it doesn't guarantee that properties required by API are set ### GetShippingCategory -`func (o *POSTSkus201ResponseDataRelationships) GetShippingCategory() GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory` +`func (o *POSTSkus201ResponseDataRelationships) GetShippingCategory() POSTShipments201ResponseDataRelationshipsShippingCategory` GetShippingCategory returns the ShippingCategory field if non-nil, zero value otherwise. ### GetShippingCategoryOk -`func (o *POSTSkus201ResponseDataRelationships) GetShippingCategoryOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory, bool)` +`func (o *POSTSkus201ResponseDataRelationships) GetShippingCategoryOk() (*POSTShipments201ResponseDataRelationshipsShippingCategory, bool)` GetShippingCategoryOk returns a tuple with the ShippingCategory field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetShippingCategory -`func (o *POSTSkus201ResponseDataRelationships) SetShippingCategory(v GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory)` +`func (o *POSTSkus201ResponseDataRelationships) SetShippingCategory(v POSTShipments201ResponseDataRelationshipsShippingCategory)` SetShippingCategory sets ShippingCategory field to given value. @@ -105,6 +115,31 @@ SetStockItems sets StockItems field to given value. HasStockItems returns a boolean if a field has been set. +### GetStockReservations + +`func (o *POSTSkus201ResponseDataRelationships) GetStockReservations() POSTLineItems201ResponseDataRelationshipsStockReservations` + +GetStockReservations returns the StockReservations field if non-nil, zero value otherwise. + +### GetStockReservationsOk + +`func (o *POSTSkus201ResponseDataRelationships) GetStockReservationsOk() (*POSTLineItems201ResponseDataRelationshipsStockReservations, bool)` + +GetStockReservationsOk returns a tuple with the StockReservations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockReservations + +`func (o *POSTSkus201ResponseDataRelationships) SetStockReservations(v POSTLineItems201ResponseDataRelationshipsStockReservations)` + +SetStockReservations sets StockReservations field to given value. + +### HasStockReservations + +`func (o *POSTSkus201ResponseDataRelationships) HasStockReservations() bool` + +HasStockReservations returns a boolean if a field has been set. + ### GetDeliveryLeadTimes `func (o *POSTSkus201ResponseDataRelationships) GetDeliveryLeadTimes() POSTSkus201ResponseDataRelationshipsDeliveryLeadTimes` @@ -155,22 +190,72 @@ SetSkuOptions sets SkuOptions field to given value. HasSkuOptions returns a boolean if a field has been set. +### GetSkuListItems + +`func (o *POSTSkus201ResponseDataRelationships) GetSkuListItems() POSTSkuLists201ResponseDataRelationshipsSkuListItems` + +GetSkuListItems returns the SkuListItems field if non-nil, zero value otherwise. + +### GetSkuListItemsOk + +`func (o *POSTSkus201ResponseDataRelationships) GetSkuListItemsOk() (*POSTSkuLists201ResponseDataRelationshipsSkuListItems, bool)` + +GetSkuListItemsOk returns a tuple with the SkuListItems field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuListItems + +`func (o *POSTSkus201ResponseDataRelationships) SetSkuListItems(v POSTSkuLists201ResponseDataRelationshipsSkuListItems)` + +SetSkuListItems sets SkuListItems field to given value. + +### HasSkuListItems + +`func (o *POSTSkus201ResponseDataRelationships) HasSkuListItems() bool` + +HasSkuListItems returns a boolean if a field has been set. + +### GetSkuLists + +`func (o *POSTSkus201ResponseDataRelationships) GetSkuLists() POSTCustomers201ResponseDataRelationshipsSkuLists` + +GetSkuLists returns the SkuLists field if non-nil, zero value otherwise. + +### GetSkuListsOk + +`func (o *POSTSkus201ResponseDataRelationships) GetSkuListsOk() (*POSTCustomers201ResponseDataRelationshipsSkuLists, bool)` + +GetSkuListsOk returns a tuple with the SkuLists field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuLists + +`func (o *POSTSkus201ResponseDataRelationships) SetSkuLists(v POSTCustomers201ResponseDataRelationshipsSkuLists)` + +SetSkuLists sets SkuLists field to given value. + +### HasSkuLists + +`func (o *POSTSkus201ResponseDataRelationships) HasSkuLists() bool` + +HasSkuLists returns a boolean if a field has been set. + ### GetAttachments -`func (o *POSTSkus201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTSkus201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTSkus201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTSkus201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTSkus201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTSkus201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -180,6 +265,181 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetLinks + +`func (o *POSTSkus201ResponseDataRelationships) GetLinks() POSTOrders201ResponseDataRelationshipsLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTSkus201ResponseDataRelationships) GetLinksOk() (*POSTOrders201ResponseDataRelationshipsLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTSkus201ResponseDataRelationships) SetLinks(v POSTOrders201ResponseDataRelationshipsLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTSkus201ResponseDataRelationships) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetEvents + +`func (o *POSTSkus201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *POSTSkus201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *POSTSkus201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *POSTSkus201ResponseDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *POSTSkus201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *POSTSkus201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *POSTSkus201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *POSTSkus201ResponseDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTSkus201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTSkus201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTSkus201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTSkus201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + +### GetJwtCustomer + +`func (o *POSTSkus201ResponseDataRelationships) GetJwtCustomer() POSTPrices201ResponseDataRelationshipsJwtCustomer` + +GetJwtCustomer returns the JwtCustomer field if non-nil, zero value otherwise. + +### GetJwtCustomerOk + +`func (o *POSTSkus201ResponseDataRelationships) GetJwtCustomerOk() (*POSTPrices201ResponseDataRelationshipsJwtCustomer, bool)` + +GetJwtCustomerOk returns a tuple with the JwtCustomer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtCustomer + +`func (o *POSTSkus201ResponseDataRelationships) SetJwtCustomer(v POSTPrices201ResponseDataRelationshipsJwtCustomer)` + +SetJwtCustomer sets JwtCustomer field to given value. + +### HasJwtCustomer + +`func (o *POSTSkus201ResponseDataRelationships) HasJwtCustomer() bool` + +HasJwtCustomer returns a boolean if a field has been set. + +### GetJwtMarkets + +`func (o *POSTSkus201ResponseDataRelationships) GetJwtMarkets() POSTPrices201ResponseDataRelationshipsJwtMarkets` + +GetJwtMarkets returns the JwtMarkets field if non-nil, zero value otherwise. + +### GetJwtMarketsOk + +`func (o *POSTSkus201ResponseDataRelationships) GetJwtMarketsOk() (*POSTPrices201ResponseDataRelationshipsJwtMarkets, bool)` + +GetJwtMarketsOk returns a tuple with the JwtMarkets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtMarkets + +`func (o *POSTSkus201ResponseDataRelationships) SetJwtMarkets(v POSTPrices201ResponseDataRelationshipsJwtMarkets)` + +SetJwtMarkets sets JwtMarkets field to given value. + +### HasJwtMarkets + +`func (o *POSTSkus201ResponseDataRelationships) HasJwtMarkets() bool` + +HasJwtMarkets returns a boolean if a field has been set. + +### GetJwtStockLocations + +`func (o *POSTSkus201ResponseDataRelationships) GetJwtStockLocations() POSTPrices201ResponseDataRelationshipsJwtStockLocations` + +GetJwtStockLocations returns the JwtStockLocations field if non-nil, zero value otherwise. + +### GetJwtStockLocationsOk + +`func (o *POSTSkus201ResponseDataRelationships) GetJwtStockLocationsOk() (*POSTPrices201ResponseDataRelationshipsJwtStockLocations, bool)` + +GetJwtStockLocationsOk returns a tuple with the JwtStockLocations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtStockLocations + +`func (o *POSTSkus201ResponseDataRelationships) SetJwtStockLocations(v POSTPrices201ResponseDataRelationshipsJwtStockLocations)` + +SetJwtStockLocations sets JwtStockLocations field to given value. + +### HasJwtStockLocations + +`func (o *POSTSkus201ResponseDataRelationships) HasJwtStockLocations() bool` + +HasJwtStockLocations returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTStockItems201ResponseDataAttributes.md b/api/docs/POSTStockItems201ResponseDataAttributes.md index d2d37ac5..9ff80a5d 100644 --- a/api/docs/POSTStockItems201ResponseDataAttributes.md +++ b/api/docs/POSTStockItems201ResponseDataAttributes.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **SkuCode** | Pointer to **interface{}** | The code of the associated SKU. | [optional] **Quantity** | **interface{}** | The stock item quantity. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTStockItems201ResponseDataRelationships.md b/api/docs/POSTStockItems201ResponseDataRelationships.md index 9701f8ee..49f86882 100644 --- a/api/docs/POSTStockItems201ResponseDataRelationships.md +++ b/api/docs/POSTStockItems201ResponseDataRelationships.md @@ -6,7 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StockLocation** | Pointer to [**POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation**](POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation.md) | | [optional] **Sku** | Pointer to [**POSTInStockSubscriptions201ResponseDataRelationshipsSku**](POSTInStockSubscriptions201ResponseDataRelationshipsSku.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**ReservedStock** | Pointer to [**POSTStockItems201ResponseDataRelationshipsReservedStock**](POSTStockItems201ResponseDataRelationshipsReservedStock.md) | | [optional] +**StockReservations** | Pointer to [**POSTLineItems201ResponseDataRelationshipsStockReservations**](POSTLineItems201ResponseDataRelationshipsStockReservations.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -77,22 +80,72 @@ SetSku sets Sku field to given value. HasSku returns a boolean if a field has been set. +### GetReservedStock + +`func (o *POSTStockItems201ResponseDataRelationships) GetReservedStock() POSTStockItems201ResponseDataRelationshipsReservedStock` + +GetReservedStock returns the ReservedStock field if non-nil, zero value otherwise. + +### GetReservedStockOk + +`func (o *POSTStockItems201ResponseDataRelationships) GetReservedStockOk() (*POSTStockItems201ResponseDataRelationshipsReservedStock, bool)` + +GetReservedStockOk returns a tuple with the ReservedStock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReservedStock + +`func (o *POSTStockItems201ResponseDataRelationships) SetReservedStock(v POSTStockItems201ResponseDataRelationshipsReservedStock)` + +SetReservedStock sets ReservedStock field to given value. + +### HasReservedStock + +`func (o *POSTStockItems201ResponseDataRelationships) HasReservedStock() bool` + +HasReservedStock returns a boolean if a field has been set. + +### GetStockReservations + +`func (o *POSTStockItems201ResponseDataRelationships) GetStockReservations() POSTLineItems201ResponseDataRelationshipsStockReservations` + +GetStockReservations returns the StockReservations field if non-nil, zero value otherwise. + +### GetStockReservationsOk + +`func (o *POSTStockItems201ResponseDataRelationships) GetStockReservationsOk() (*POSTLineItems201ResponseDataRelationshipsStockReservations, bool)` + +GetStockReservationsOk returns a tuple with the StockReservations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockReservations + +`func (o *POSTStockItems201ResponseDataRelationships) SetStockReservations(v POSTLineItems201ResponseDataRelationshipsStockReservations)` + +SetStockReservations sets StockReservations field to given value. + +### HasStockReservations + +`func (o *POSTStockItems201ResponseDataRelationships) HasStockReservations() bool` + +HasStockReservations returns a boolean if a field has been set. + ### GetAttachments -`func (o *POSTStockItems201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTStockItems201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTStockItems201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTStockItems201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTStockItems201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTStockItems201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -102,6 +155,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTStockItems201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTStockItems201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTStockItems201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTStockItems201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTStockItems201ResponseDataRelationshipsReservedStock.md b/api/docs/POSTStockItems201ResponseDataRelationshipsReservedStock.md new file mode 100644 index 00000000..148d3cfa --- /dev/null +++ b/api/docs/POSTStockItems201ResponseDataRelationshipsReservedStock.md @@ -0,0 +1,82 @@ +# POSTStockItems201ResponseDataRelationshipsReservedStock + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTStockItems201ResponseDataRelationshipsReservedStockData**](POSTStockItems201ResponseDataRelationshipsReservedStockData.md) | | [optional] + +## Methods + +### NewPOSTStockItems201ResponseDataRelationshipsReservedStock + +`func NewPOSTStockItems201ResponseDataRelationshipsReservedStock() *POSTStockItems201ResponseDataRelationshipsReservedStock` + +NewPOSTStockItems201ResponseDataRelationshipsReservedStock instantiates a new POSTStockItems201ResponseDataRelationshipsReservedStock object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTStockItems201ResponseDataRelationshipsReservedStockWithDefaults + +`func NewPOSTStockItems201ResponseDataRelationshipsReservedStockWithDefaults() *POSTStockItems201ResponseDataRelationshipsReservedStock` + +NewPOSTStockItems201ResponseDataRelationshipsReservedStockWithDefaults instantiates a new POSTStockItems201ResponseDataRelationshipsReservedStock object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStock) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStock) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStock) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStock) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStock) GetData() POSTStockItems201ResponseDataRelationshipsReservedStockData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStock) GetDataOk() (*POSTStockItems201ResponseDataRelationshipsReservedStockData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStock) SetData(v POSTStockItems201ResponseDataRelationshipsReservedStockData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStock) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTStockItems201ResponseDataRelationshipsReservedStockData.md b/api/docs/POSTStockItems201ResponseDataRelationshipsReservedStockData.md new file mode 100644 index 00000000..6caedab9 --- /dev/null +++ b/api/docs/POSTStockItems201ResponseDataRelationshipsReservedStockData.md @@ -0,0 +1,102 @@ +# POSTStockItems201ResponseDataRelationshipsReservedStockData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTStockItems201ResponseDataRelationshipsReservedStockData + +`func NewPOSTStockItems201ResponseDataRelationshipsReservedStockData() *POSTStockItems201ResponseDataRelationshipsReservedStockData` + +NewPOSTStockItems201ResponseDataRelationshipsReservedStockData instantiates a new POSTStockItems201ResponseDataRelationshipsReservedStockData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTStockItems201ResponseDataRelationshipsReservedStockDataWithDefaults + +`func NewPOSTStockItems201ResponseDataRelationshipsReservedStockDataWithDefaults() *POSTStockItems201ResponseDataRelationshipsReservedStockData` + +NewPOSTStockItems201ResponseDataRelationshipsReservedStockDataWithDefaults instantiates a new POSTStockItems201ResponseDataRelationshipsReservedStockData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTStockLineItems201Response.md b/api/docs/POSTStockLineItems201Response.md new file mode 100644 index 00000000..b7f2bd8f --- /dev/null +++ b/api/docs/POSTStockLineItems201Response.md @@ -0,0 +1,56 @@ +# POSTStockLineItems201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**POSTStockLineItems201ResponseData**](POSTStockLineItems201ResponseData.md) | | [optional] + +## Methods + +### NewPOSTStockLineItems201Response + +`func NewPOSTStockLineItems201Response() *POSTStockLineItems201Response` + +NewPOSTStockLineItems201Response instantiates a new POSTStockLineItems201Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTStockLineItems201ResponseWithDefaults + +`func NewPOSTStockLineItems201ResponseWithDefaults() *POSTStockLineItems201Response` + +NewPOSTStockLineItems201ResponseWithDefaults instantiates a new POSTStockLineItems201Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *POSTStockLineItems201Response) GetData() POSTStockLineItems201ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTStockLineItems201Response) GetDataOk() (*POSTStockLineItems201ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTStockLineItems201Response) SetData(v POSTStockLineItems201ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTStockLineItems201Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTStockLineItems201ResponseData.md b/api/docs/POSTStockLineItems201ResponseData.md new file mode 100644 index 00000000..f070bcad --- /dev/null +++ b/api/docs/POSTStockLineItems201ResponseData.md @@ -0,0 +1,180 @@ +# POSTStockLineItems201ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**POSTStockLineItems201ResponseDataAttributes**](POSTStockLineItems201ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTStockLineItems201ResponseDataRelationships**](POSTStockLineItems201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPOSTStockLineItems201ResponseData + +`func NewPOSTStockLineItems201ResponseData() *POSTStockLineItems201ResponseData` + +NewPOSTStockLineItems201ResponseData instantiates a new POSTStockLineItems201ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTStockLineItems201ResponseDataWithDefaults + +`func NewPOSTStockLineItems201ResponseDataWithDefaults() *POSTStockLineItems201ResponseData` + +NewPOSTStockLineItems201ResponseDataWithDefaults instantiates a new POSTStockLineItems201ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *POSTStockLineItems201ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTStockLineItems201ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTStockLineItems201ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTStockLineItems201ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTStockLineItems201ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTStockLineItems201ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *POSTStockLineItems201ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTStockLineItems201ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTStockLineItems201ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTStockLineItems201ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTStockLineItems201ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTStockLineItems201ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *POSTStockLineItems201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTStockLineItems201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTStockLineItems201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTStockLineItems201ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *POSTStockLineItems201ResponseData) GetAttributes() POSTStockLineItems201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *POSTStockLineItems201ResponseData) GetAttributesOk() (*POSTStockLineItems201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *POSTStockLineItems201ResponseData) SetAttributes(v POSTStockLineItems201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *POSTStockLineItems201ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *POSTStockLineItems201ResponseData) GetRelationships() POSTStockLineItems201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *POSTStockLineItems201ResponseData) GetRelationshipsOk() (*POSTStockLineItems201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *POSTStockLineItems201ResponseData) SetRelationships(v POSTStockLineItems201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *POSTStockLineItems201ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTStockLineItems201ResponseDataAttributes.md b/api/docs/POSTStockLineItems201ResponseDataAttributes.md new file mode 100644 index 00000000..f7e3ef7f --- /dev/null +++ b/api/docs/POSTStockLineItems201ResponseDataAttributes.md @@ -0,0 +1,205 @@ +# POSTStockLineItems201ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SkuCode** | Pointer to **interface{}** | The code of the associated SKU. | [optional] +**Quantity** | **interface{}** | The line item quantity. | +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPOSTStockLineItems201ResponseDataAttributes + +`func NewPOSTStockLineItems201ResponseDataAttributes(quantity interface{}, ) *POSTStockLineItems201ResponseDataAttributes` + +NewPOSTStockLineItems201ResponseDataAttributes instantiates a new POSTStockLineItems201ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTStockLineItems201ResponseDataAttributesWithDefaults + +`func NewPOSTStockLineItems201ResponseDataAttributesWithDefaults() *POSTStockLineItems201ResponseDataAttributes` + +NewPOSTStockLineItems201ResponseDataAttributesWithDefaults instantiates a new POSTStockLineItems201ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSkuCode + +`func (o *POSTStockLineItems201ResponseDataAttributes) GetSkuCode() interface{}` + +GetSkuCode returns the SkuCode field if non-nil, zero value otherwise. + +### GetSkuCodeOk + +`func (o *POSTStockLineItems201ResponseDataAttributes) GetSkuCodeOk() (*interface{}, bool)` + +GetSkuCodeOk returns a tuple with the SkuCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuCode + +`func (o *POSTStockLineItems201ResponseDataAttributes) SetSkuCode(v interface{})` + +SetSkuCode sets SkuCode field to given value. + +### HasSkuCode + +`func (o *POSTStockLineItems201ResponseDataAttributes) HasSkuCode() bool` + +HasSkuCode returns a boolean if a field has been set. + +### SetSkuCodeNil + +`func (o *POSTStockLineItems201ResponseDataAttributes) SetSkuCodeNil(b bool)` + + SetSkuCodeNil sets the value for SkuCode to be an explicit nil + +### UnsetSkuCode +`func (o *POSTStockLineItems201ResponseDataAttributes) UnsetSkuCode()` + +UnsetSkuCode ensures that no value is present for SkuCode, not even an explicit nil +### GetQuantity + +`func (o *POSTStockLineItems201ResponseDataAttributes) GetQuantity() interface{}` + +GetQuantity returns the Quantity field if non-nil, zero value otherwise. + +### GetQuantityOk + +`func (o *POSTStockLineItems201ResponseDataAttributes) GetQuantityOk() (*interface{}, bool)` + +GetQuantityOk returns a tuple with the Quantity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuantity + +`func (o *POSTStockLineItems201ResponseDataAttributes) SetQuantity(v interface{})` + +SetQuantity sets Quantity field to given value. + + +### SetQuantityNil + +`func (o *POSTStockLineItems201ResponseDataAttributes) SetQuantityNil(b bool)` + + SetQuantityNil sets the value for Quantity to be an explicit nil + +### UnsetQuantity +`func (o *POSTStockLineItems201ResponseDataAttributes) UnsetQuantity()` + +UnsetQuantity ensures that no value is present for Quantity, not even an explicit nil +### GetReference + +`func (o *POSTStockLineItems201ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *POSTStockLineItems201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *POSTStockLineItems201ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *POSTStockLineItems201ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *POSTStockLineItems201ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *POSTStockLineItems201ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *POSTStockLineItems201ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *POSTStockLineItems201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *POSTStockLineItems201ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *POSTStockLineItems201ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *POSTStockLineItems201ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *POSTStockLineItems201ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *POSTStockLineItems201ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *POSTStockLineItems201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *POSTStockLineItems201ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *POSTStockLineItems201ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *POSTStockLineItems201ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *POSTStockLineItems201ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTStockLineItems201ResponseDataRelationships.md b/api/docs/POSTStockLineItems201ResponseDataRelationships.md new file mode 100644 index 00000000..c9e0f96e --- /dev/null +++ b/api/docs/POSTStockLineItems201ResponseDataRelationships.md @@ -0,0 +1,186 @@ +# POSTStockLineItems201ResponseDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Shipment** | Pointer to [**POSTLineItems201ResponseDataRelationshipsShipment**](POSTLineItems201ResponseDataRelationshipsShipment.md) | | [optional] +**LineItem** | Pointer to [**POSTLineItemOptions201ResponseDataRelationshipsLineItem**](POSTLineItemOptions201ResponseDataRelationshipsLineItem.md) | | [optional] +**StockItem** | Pointer to [**GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem**](GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem.md) | | [optional] +**Sku** | Pointer to [**POSTInStockSubscriptions201ResponseDataRelationshipsSku**](POSTInStockSubscriptions201ResponseDataRelationshipsSku.md) | | [optional] +**StockReservation** | Pointer to [**POSTStockLineItems201ResponseDataRelationshipsStockReservation**](POSTStockLineItems201ResponseDataRelationshipsStockReservation.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewPOSTStockLineItems201ResponseDataRelationships + +`func NewPOSTStockLineItems201ResponseDataRelationships() *POSTStockLineItems201ResponseDataRelationships` + +NewPOSTStockLineItems201ResponseDataRelationships instantiates a new POSTStockLineItems201ResponseDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTStockLineItems201ResponseDataRelationshipsWithDefaults + +`func NewPOSTStockLineItems201ResponseDataRelationshipsWithDefaults() *POSTStockLineItems201ResponseDataRelationships` + +NewPOSTStockLineItems201ResponseDataRelationshipsWithDefaults instantiates a new POSTStockLineItems201ResponseDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetShipment + +`func (o *POSTStockLineItems201ResponseDataRelationships) GetShipment() POSTLineItems201ResponseDataRelationshipsShipment` + +GetShipment returns the Shipment field if non-nil, zero value otherwise. + +### GetShipmentOk + +`func (o *POSTStockLineItems201ResponseDataRelationships) GetShipmentOk() (*POSTLineItems201ResponseDataRelationshipsShipment, bool)` + +GetShipmentOk returns a tuple with the Shipment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShipment + +`func (o *POSTStockLineItems201ResponseDataRelationships) SetShipment(v POSTLineItems201ResponseDataRelationshipsShipment)` + +SetShipment sets Shipment field to given value. + +### HasShipment + +`func (o *POSTStockLineItems201ResponseDataRelationships) HasShipment() bool` + +HasShipment returns a boolean if a field has been set. + +### GetLineItem + +`func (o *POSTStockLineItems201ResponseDataRelationships) GetLineItem() POSTLineItemOptions201ResponseDataRelationshipsLineItem` + +GetLineItem returns the LineItem field if non-nil, zero value otherwise. + +### GetLineItemOk + +`func (o *POSTStockLineItems201ResponseDataRelationships) GetLineItemOk() (*POSTLineItemOptions201ResponseDataRelationshipsLineItem, bool)` + +GetLineItemOk returns a tuple with the LineItem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLineItem + +`func (o *POSTStockLineItems201ResponseDataRelationships) SetLineItem(v POSTLineItemOptions201ResponseDataRelationshipsLineItem)` + +SetLineItem sets LineItem field to given value. + +### HasLineItem + +`func (o *POSTStockLineItems201ResponseDataRelationships) HasLineItem() bool` + +HasLineItem returns a boolean if a field has been set. + +### GetStockItem + +`func (o *POSTStockLineItems201ResponseDataRelationships) GetStockItem() GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem` + +GetStockItem returns the StockItem field if non-nil, zero value otherwise. + +### GetStockItemOk + +`func (o *POSTStockLineItems201ResponseDataRelationships) GetStockItemOk() (*GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem, bool)` + +GetStockItemOk returns a tuple with the StockItem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockItem + +`func (o *POSTStockLineItems201ResponseDataRelationships) SetStockItem(v GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem)` + +SetStockItem sets StockItem field to given value. + +### HasStockItem + +`func (o *POSTStockLineItems201ResponseDataRelationships) HasStockItem() bool` + +HasStockItem returns a boolean if a field has been set. + +### GetSku + +`func (o *POSTStockLineItems201ResponseDataRelationships) GetSku() POSTInStockSubscriptions201ResponseDataRelationshipsSku` + +GetSku returns the Sku field if non-nil, zero value otherwise. + +### GetSkuOk + +`func (o *POSTStockLineItems201ResponseDataRelationships) GetSkuOk() (*POSTInStockSubscriptions201ResponseDataRelationshipsSku, bool)` + +GetSkuOk returns a tuple with the Sku field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSku + +`func (o *POSTStockLineItems201ResponseDataRelationships) SetSku(v POSTInStockSubscriptions201ResponseDataRelationshipsSku)` + +SetSku sets Sku field to given value. + +### HasSku + +`func (o *POSTStockLineItems201ResponseDataRelationships) HasSku() bool` + +HasSku returns a boolean if a field has been set. + +### GetStockReservation + +`func (o *POSTStockLineItems201ResponseDataRelationships) GetStockReservation() POSTStockLineItems201ResponseDataRelationshipsStockReservation` + +GetStockReservation returns the StockReservation field if non-nil, zero value otherwise. + +### GetStockReservationOk + +`func (o *POSTStockLineItems201ResponseDataRelationships) GetStockReservationOk() (*POSTStockLineItems201ResponseDataRelationshipsStockReservation, bool)` + +GetStockReservationOk returns a tuple with the StockReservation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockReservation + +`func (o *POSTStockLineItems201ResponseDataRelationships) SetStockReservation(v POSTStockLineItems201ResponseDataRelationshipsStockReservation)` + +SetStockReservation sets StockReservation field to given value. + +### HasStockReservation + +`func (o *POSTStockLineItems201ResponseDataRelationships) HasStockReservation() bool` + +HasStockReservation returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTStockLineItems201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTStockLineItems201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTStockLineItems201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTStockLineItems201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTStockLineItems201ResponseDataRelationshipsStockReservation.md b/api/docs/POSTStockLineItems201ResponseDataRelationshipsStockReservation.md new file mode 100644 index 00000000..3a3799d8 --- /dev/null +++ b/api/docs/POSTStockLineItems201ResponseDataRelationshipsStockReservation.md @@ -0,0 +1,82 @@ +# POSTStockLineItems201ResponseDataRelationshipsStockReservation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTStockLineItems201ResponseDataRelationshipsStockReservationData**](POSTStockLineItems201ResponseDataRelationshipsStockReservationData.md) | | [optional] + +## Methods + +### NewPOSTStockLineItems201ResponseDataRelationshipsStockReservation + +`func NewPOSTStockLineItems201ResponseDataRelationshipsStockReservation() *POSTStockLineItems201ResponseDataRelationshipsStockReservation` + +NewPOSTStockLineItems201ResponseDataRelationshipsStockReservation instantiates a new POSTStockLineItems201ResponseDataRelationshipsStockReservation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTStockLineItems201ResponseDataRelationshipsStockReservationWithDefaults + +`func NewPOSTStockLineItems201ResponseDataRelationshipsStockReservationWithDefaults() *POSTStockLineItems201ResponseDataRelationshipsStockReservation` + +NewPOSTStockLineItems201ResponseDataRelationshipsStockReservationWithDefaults instantiates a new POSTStockLineItems201ResponseDataRelationshipsStockReservation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservation) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservation) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservation) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservation) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservation) GetData() POSTStockLineItems201ResponseDataRelationshipsStockReservationData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservation) GetDataOk() (*POSTStockLineItems201ResponseDataRelationshipsStockReservationData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservation) SetData(v POSTStockLineItems201ResponseDataRelationshipsStockReservationData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservation) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTStockLineItems201ResponseDataRelationshipsStockReservationData.md b/api/docs/POSTStockLineItems201ResponseDataRelationshipsStockReservationData.md new file mode 100644 index 00000000..2ae2658f --- /dev/null +++ b/api/docs/POSTStockLineItems201ResponseDataRelationshipsStockReservationData.md @@ -0,0 +1,102 @@ +# POSTStockLineItems201ResponseDataRelationshipsStockReservationData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTStockLineItems201ResponseDataRelationshipsStockReservationData + +`func NewPOSTStockLineItems201ResponseDataRelationshipsStockReservationData() *POSTStockLineItems201ResponseDataRelationshipsStockReservationData` + +NewPOSTStockLineItems201ResponseDataRelationshipsStockReservationData instantiates a new POSTStockLineItems201ResponseDataRelationshipsStockReservationData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTStockLineItems201ResponseDataRelationshipsStockReservationDataWithDefaults + +`func NewPOSTStockLineItems201ResponseDataRelationshipsStockReservationDataWithDefaults() *POSTStockLineItems201ResponseDataRelationshipsStockReservationData` + +NewPOSTStockLineItems201ResponseDataRelationshipsStockReservationDataWithDefaults instantiates a new POSTStockLineItems201ResponseDataRelationshipsStockReservationData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTStockLocations201ResponseDataAttributes.md b/api/docs/POSTStockLocations201ResponseDataAttributes.md index a1e4a65a..7bf9961f 100644 --- a/api/docs/POSTStockLocations201ResponseDataAttributes.md +++ b/api/docs/POSTStockLocations201ResponseDataAttributes.md @@ -5,10 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The stock location's internal name. | -**LabelFormat** | Pointer to **interface{}** | The shipping label format for this stock location. Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG' | [optional] +**Code** | Pointer to **interface{}** | A string that you can use to identify the stock location (must be unique within the environment). | [optional] +**LabelFormat** | Pointer to **interface{}** | The shipping label format for this stock location. Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG'. | [optional] **SuppressEtd** | Pointer to **interface{}** | Flag it if you want to skip the electronic invoice creation when generating the customs info for this stock location shipments. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -60,6 +61,41 @@ SetName sets Name field to given value. `func (o *POSTStockLocations201ResponseDataAttributes) UnsetName()` UnsetName ensures that no value is present for Name, not even an explicit nil +### GetCode + +`func (o *POSTStockLocations201ResponseDataAttributes) GetCode() interface{}` + +GetCode returns the Code field if non-nil, zero value otherwise. + +### GetCodeOk + +`func (o *POSTStockLocations201ResponseDataAttributes) GetCodeOk() (*interface{}, bool)` + +GetCodeOk returns a tuple with the Code field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCode + +`func (o *POSTStockLocations201ResponseDataAttributes) SetCode(v interface{})` + +SetCode sets Code field to given value. + +### HasCode + +`func (o *POSTStockLocations201ResponseDataAttributes) HasCode() bool` + +HasCode returns a boolean if a field has been set. + +### SetCodeNil + +`func (o *POSTStockLocations201ResponseDataAttributes) SetCodeNil(b bool)` + + SetCodeNil sets the value for Code to be an explicit nil + +### UnsetCode +`func (o *POSTStockLocations201ResponseDataAttributes) UnsetCode()` + +UnsetCode ensures that no value is present for Code, not even an explicit nil ### GetLabelFormat `func (o *POSTStockLocations201ResponseDataAttributes) GetLabelFormat() interface{}` diff --git a/api/docs/POSTStockLocations201ResponseDataRelationships.md b/api/docs/POSTStockLocations201ResponseDataRelationships.md index 448a4430..af324845 100644 --- a/api/docs/POSTStockLocations201ResponseDataRelationships.md +++ b/api/docs/POSTStockLocations201ResponseDataRelationships.md @@ -9,7 +9,8 @@ Name | Type | Description | Notes **InventoryReturnLocations** | Pointer to [**POSTInventoryModels201ResponseDataRelationshipsInventoryReturnLocations**](POSTInventoryModels201ResponseDataRelationshipsInventoryReturnLocations.md) | | [optional] **StockItems** | Pointer to [**POSTSkus201ResponseDataRelationshipsStockItems**](POSTSkus201ResponseDataRelationshipsStockItems.md) | | [optional] **StockTransfers** | Pointer to [**POSTLineItems201ResponseDataRelationshipsStockTransfers**](POSTLineItems201ResponseDataRelationshipsStockTransfers.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -157,20 +158,20 @@ HasStockTransfers returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTStockLocations201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTStockLocations201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTStockLocations201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTStockLocations201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTStockLocations201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTStockLocations201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -180,6 +181,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTStockLocations201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTStockLocations201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTStockLocations201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTStockLocations201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTStockReservations201Response.md b/api/docs/POSTStockReservations201Response.md new file mode 100644 index 00000000..5fef200b --- /dev/null +++ b/api/docs/POSTStockReservations201Response.md @@ -0,0 +1,56 @@ +# POSTStockReservations201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**POSTStockReservations201ResponseData**](POSTStockReservations201ResponseData.md) | | [optional] + +## Methods + +### NewPOSTStockReservations201Response + +`func NewPOSTStockReservations201Response() *POSTStockReservations201Response` + +NewPOSTStockReservations201Response instantiates a new POSTStockReservations201Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTStockReservations201ResponseWithDefaults + +`func NewPOSTStockReservations201ResponseWithDefaults() *POSTStockReservations201Response` + +NewPOSTStockReservations201ResponseWithDefaults instantiates a new POSTStockReservations201Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *POSTStockReservations201Response) GetData() POSTStockReservations201ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTStockReservations201Response) GetDataOk() (*POSTStockReservations201ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTStockReservations201Response) SetData(v POSTStockReservations201ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTStockReservations201Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTStockReservations201ResponseData.md b/api/docs/POSTStockReservations201ResponseData.md new file mode 100644 index 00000000..917d9782 --- /dev/null +++ b/api/docs/POSTStockReservations201ResponseData.md @@ -0,0 +1,180 @@ +# POSTStockReservations201ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**POSTStockReservations201ResponseDataAttributes**](POSTStockReservations201ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to [**POSTStockReservations201ResponseDataRelationships**](POSTStockReservations201ResponseDataRelationships.md) | | [optional] + +## Methods + +### NewPOSTStockReservations201ResponseData + +`func NewPOSTStockReservations201ResponseData() *POSTStockReservations201ResponseData` + +NewPOSTStockReservations201ResponseData instantiates a new POSTStockReservations201ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTStockReservations201ResponseDataWithDefaults + +`func NewPOSTStockReservations201ResponseDataWithDefaults() *POSTStockReservations201ResponseData` + +NewPOSTStockReservations201ResponseDataWithDefaults instantiates a new POSTStockReservations201ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *POSTStockReservations201ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTStockReservations201ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTStockReservations201ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTStockReservations201ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTStockReservations201ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTStockReservations201ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *POSTStockReservations201ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTStockReservations201ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTStockReservations201ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTStockReservations201ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTStockReservations201ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTStockReservations201ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *POSTStockReservations201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTStockReservations201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTStockReservations201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTStockReservations201ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *POSTStockReservations201ResponseData) GetAttributes() POSTStockReservations201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *POSTStockReservations201ResponseData) GetAttributesOk() (*POSTStockReservations201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *POSTStockReservations201ResponseData) SetAttributes(v POSTStockReservations201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *POSTStockReservations201ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *POSTStockReservations201ResponseData) GetRelationships() POSTStockReservations201ResponseDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *POSTStockReservations201ResponseData) GetRelationshipsOk() (*POSTStockReservations201ResponseDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *POSTStockReservations201ResponseData) SetRelationships(v POSTStockReservations201ResponseDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *POSTStockReservations201ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTStockReservations201ResponseDataAttributes.md b/api/docs/POSTStockReservations201ResponseDataAttributes.md new file mode 100644 index 00000000..8e5686eb --- /dev/null +++ b/api/docs/POSTStockReservations201ResponseDataAttributes.md @@ -0,0 +1,169 @@ +# POSTStockReservations201ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Quantity** | **interface{}** | The stock reservation quantity. | +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPOSTStockReservations201ResponseDataAttributes + +`func NewPOSTStockReservations201ResponseDataAttributes(quantity interface{}, ) *POSTStockReservations201ResponseDataAttributes` + +NewPOSTStockReservations201ResponseDataAttributes instantiates a new POSTStockReservations201ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTStockReservations201ResponseDataAttributesWithDefaults + +`func NewPOSTStockReservations201ResponseDataAttributesWithDefaults() *POSTStockReservations201ResponseDataAttributes` + +NewPOSTStockReservations201ResponseDataAttributesWithDefaults instantiates a new POSTStockReservations201ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetQuantity + +`func (o *POSTStockReservations201ResponseDataAttributes) GetQuantity() interface{}` + +GetQuantity returns the Quantity field if non-nil, zero value otherwise. + +### GetQuantityOk + +`func (o *POSTStockReservations201ResponseDataAttributes) GetQuantityOk() (*interface{}, bool)` + +GetQuantityOk returns a tuple with the Quantity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuantity + +`func (o *POSTStockReservations201ResponseDataAttributes) SetQuantity(v interface{})` + +SetQuantity sets Quantity field to given value. + + +### SetQuantityNil + +`func (o *POSTStockReservations201ResponseDataAttributes) SetQuantityNil(b bool)` + + SetQuantityNil sets the value for Quantity to be an explicit nil + +### UnsetQuantity +`func (o *POSTStockReservations201ResponseDataAttributes) UnsetQuantity()` + +UnsetQuantity ensures that no value is present for Quantity, not even an explicit nil +### GetReference + +`func (o *POSTStockReservations201ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *POSTStockReservations201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *POSTStockReservations201ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *POSTStockReservations201ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *POSTStockReservations201ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *POSTStockReservations201ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *POSTStockReservations201ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *POSTStockReservations201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *POSTStockReservations201ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *POSTStockReservations201ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *POSTStockReservations201ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *POSTStockReservations201ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *POSTStockReservations201ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *POSTStockReservations201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *POSTStockReservations201ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *POSTStockReservations201ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *POSTStockReservations201ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *POSTStockReservations201ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTStockReservations201ResponseDataRelationships.md b/api/docs/POSTStockReservations201ResponseDataRelationships.md new file mode 100644 index 00000000..d447fbdd --- /dev/null +++ b/api/docs/POSTStockReservations201ResponseDataRelationships.md @@ -0,0 +1,212 @@ +# POSTStockReservations201ResponseDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LineItem** | Pointer to [**POSTLineItemOptions201ResponseDataRelationshipsLineItem**](POSTLineItemOptions201ResponseDataRelationshipsLineItem.md) | | [optional] +**Order** | Pointer to [**POSTAdyenPayments201ResponseDataRelationshipsOrder**](POSTAdyenPayments201ResponseDataRelationshipsOrder.md) | | [optional] +**StockLineItem** | Pointer to [**POSTParcelLineItems201ResponseDataRelationshipsStockLineItem**](POSTParcelLineItems201ResponseDataRelationshipsStockLineItem.md) | | [optional] +**StockTransfer** | Pointer to [**POSTStockReservations201ResponseDataRelationshipsStockTransfer**](POSTStockReservations201ResponseDataRelationshipsStockTransfer.md) | | [optional] +**StockItem** | Pointer to [**GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem**](GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem.md) | | [optional] +**ReservedStock** | Pointer to [**POSTStockItems201ResponseDataRelationshipsReservedStock**](POSTStockItems201ResponseDataRelationshipsReservedStock.md) | | [optional] +**Sku** | Pointer to [**POSTInStockSubscriptions201ResponseDataRelationshipsSku**](POSTInStockSubscriptions201ResponseDataRelationshipsSku.md) | | [optional] + +## Methods + +### NewPOSTStockReservations201ResponseDataRelationships + +`func NewPOSTStockReservations201ResponseDataRelationships() *POSTStockReservations201ResponseDataRelationships` + +NewPOSTStockReservations201ResponseDataRelationships instantiates a new POSTStockReservations201ResponseDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTStockReservations201ResponseDataRelationshipsWithDefaults + +`func NewPOSTStockReservations201ResponseDataRelationshipsWithDefaults() *POSTStockReservations201ResponseDataRelationships` + +NewPOSTStockReservations201ResponseDataRelationshipsWithDefaults instantiates a new POSTStockReservations201ResponseDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLineItem + +`func (o *POSTStockReservations201ResponseDataRelationships) GetLineItem() POSTLineItemOptions201ResponseDataRelationshipsLineItem` + +GetLineItem returns the LineItem field if non-nil, zero value otherwise. + +### GetLineItemOk + +`func (o *POSTStockReservations201ResponseDataRelationships) GetLineItemOk() (*POSTLineItemOptions201ResponseDataRelationshipsLineItem, bool)` + +GetLineItemOk returns a tuple with the LineItem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLineItem + +`func (o *POSTStockReservations201ResponseDataRelationships) SetLineItem(v POSTLineItemOptions201ResponseDataRelationshipsLineItem)` + +SetLineItem sets LineItem field to given value. + +### HasLineItem + +`func (o *POSTStockReservations201ResponseDataRelationships) HasLineItem() bool` + +HasLineItem returns a boolean if a field has been set. + +### GetOrder + +`func (o *POSTStockReservations201ResponseDataRelationships) GetOrder() POSTAdyenPayments201ResponseDataRelationshipsOrder` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *POSTStockReservations201ResponseDataRelationships) GetOrderOk() (*POSTAdyenPayments201ResponseDataRelationshipsOrder, bool)` + +GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrder + +`func (o *POSTStockReservations201ResponseDataRelationships) SetOrder(v POSTAdyenPayments201ResponseDataRelationshipsOrder)` + +SetOrder sets Order field to given value. + +### HasOrder + +`func (o *POSTStockReservations201ResponseDataRelationships) HasOrder() bool` + +HasOrder returns a boolean if a field has been set. + +### GetStockLineItem + +`func (o *POSTStockReservations201ResponseDataRelationships) GetStockLineItem() POSTParcelLineItems201ResponseDataRelationshipsStockLineItem` + +GetStockLineItem returns the StockLineItem field if non-nil, zero value otherwise. + +### GetStockLineItemOk + +`func (o *POSTStockReservations201ResponseDataRelationships) GetStockLineItemOk() (*POSTParcelLineItems201ResponseDataRelationshipsStockLineItem, bool)` + +GetStockLineItemOk returns a tuple with the StockLineItem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockLineItem + +`func (o *POSTStockReservations201ResponseDataRelationships) SetStockLineItem(v POSTParcelLineItems201ResponseDataRelationshipsStockLineItem)` + +SetStockLineItem sets StockLineItem field to given value. + +### HasStockLineItem + +`func (o *POSTStockReservations201ResponseDataRelationships) HasStockLineItem() bool` + +HasStockLineItem returns a boolean if a field has been set. + +### GetStockTransfer + +`func (o *POSTStockReservations201ResponseDataRelationships) GetStockTransfer() POSTStockReservations201ResponseDataRelationshipsStockTransfer` + +GetStockTransfer returns the StockTransfer field if non-nil, zero value otherwise. + +### GetStockTransferOk + +`func (o *POSTStockReservations201ResponseDataRelationships) GetStockTransferOk() (*POSTStockReservations201ResponseDataRelationshipsStockTransfer, bool)` + +GetStockTransferOk returns a tuple with the StockTransfer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockTransfer + +`func (o *POSTStockReservations201ResponseDataRelationships) SetStockTransfer(v POSTStockReservations201ResponseDataRelationshipsStockTransfer)` + +SetStockTransfer sets StockTransfer field to given value. + +### HasStockTransfer + +`func (o *POSTStockReservations201ResponseDataRelationships) HasStockTransfer() bool` + +HasStockTransfer returns a boolean if a field has been set. + +### GetStockItem + +`func (o *POSTStockReservations201ResponseDataRelationships) GetStockItem() GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem` + +GetStockItem returns the StockItem field if non-nil, zero value otherwise. + +### GetStockItemOk + +`func (o *POSTStockReservations201ResponseDataRelationships) GetStockItemOk() (*GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem, bool)` + +GetStockItemOk returns a tuple with the StockItem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockItem + +`func (o *POSTStockReservations201ResponseDataRelationships) SetStockItem(v GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem)` + +SetStockItem sets StockItem field to given value. + +### HasStockItem + +`func (o *POSTStockReservations201ResponseDataRelationships) HasStockItem() bool` + +HasStockItem returns a boolean if a field has been set. + +### GetReservedStock + +`func (o *POSTStockReservations201ResponseDataRelationships) GetReservedStock() POSTStockItems201ResponseDataRelationshipsReservedStock` + +GetReservedStock returns the ReservedStock field if non-nil, zero value otherwise. + +### GetReservedStockOk + +`func (o *POSTStockReservations201ResponseDataRelationships) GetReservedStockOk() (*POSTStockItems201ResponseDataRelationshipsReservedStock, bool)` + +GetReservedStockOk returns a tuple with the ReservedStock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReservedStock + +`func (o *POSTStockReservations201ResponseDataRelationships) SetReservedStock(v POSTStockItems201ResponseDataRelationshipsReservedStock)` + +SetReservedStock sets ReservedStock field to given value. + +### HasReservedStock + +`func (o *POSTStockReservations201ResponseDataRelationships) HasReservedStock() bool` + +HasReservedStock returns a boolean if a field has been set. + +### GetSku + +`func (o *POSTStockReservations201ResponseDataRelationships) GetSku() POSTInStockSubscriptions201ResponseDataRelationshipsSku` + +GetSku returns the Sku field if non-nil, zero value otherwise. + +### GetSkuOk + +`func (o *POSTStockReservations201ResponseDataRelationships) GetSkuOk() (*POSTInStockSubscriptions201ResponseDataRelationshipsSku, bool)` + +GetSkuOk returns a tuple with the Sku field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSku + +`func (o *POSTStockReservations201ResponseDataRelationships) SetSku(v POSTInStockSubscriptions201ResponseDataRelationshipsSku)` + +SetSku sets Sku field to given value. + +### HasSku + +`func (o *POSTStockReservations201ResponseDataRelationships) HasSku() bool` + +HasSku returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTStockReservations201ResponseDataRelationshipsStockTransfer.md b/api/docs/POSTStockReservations201ResponseDataRelationshipsStockTransfer.md new file mode 100644 index 00000000..bda084b6 --- /dev/null +++ b/api/docs/POSTStockReservations201ResponseDataRelationshipsStockTransfer.md @@ -0,0 +1,82 @@ +# POSTStockReservations201ResponseDataRelationshipsStockTransfer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Links** | Pointer to [**POSTAddresses201ResponseDataRelationshipsGeocoderLinks**](POSTAddresses201ResponseDataRelationshipsGeocoderLinks.md) | | [optional] +**Data** | Pointer to [**POSTStockReservations201ResponseDataRelationshipsStockTransferData**](POSTStockReservations201ResponseDataRelationshipsStockTransferData.md) | | [optional] + +## Methods + +### NewPOSTStockReservations201ResponseDataRelationshipsStockTransfer + +`func NewPOSTStockReservations201ResponseDataRelationshipsStockTransfer() *POSTStockReservations201ResponseDataRelationshipsStockTransfer` + +NewPOSTStockReservations201ResponseDataRelationshipsStockTransfer instantiates a new POSTStockReservations201ResponseDataRelationshipsStockTransfer object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTStockReservations201ResponseDataRelationshipsStockTransferWithDefaults + +`func NewPOSTStockReservations201ResponseDataRelationshipsStockTransferWithDefaults() *POSTStockReservations201ResponseDataRelationshipsStockTransfer` + +NewPOSTStockReservations201ResponseDataRelationshipsStockTransferWithDefaults instantiates a new POSTStockReservations201ResponseDataRelationshipsStockTransfer object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLinks + +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransfer) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransfer) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransfer) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransfer) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetData + +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransfer) GetData() POSTStockReservations201ResponseDataRelationshipsStockTransferData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransfer) GetDataOk() (*POSTStockReservations201ResponseDataRelationshipsStockTransferData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransfer) SetData(v POSTStockReservations201ResponseDataRelationshipsStockTransferData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransfer) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTStockReservations201ResponseDataRelationshipsStockTransferData.md b/api/docs/POSTStockReservations201ResponseDataRelationshipsStockTransferData.md new file mode 100644 index 00000000..17d2337a --- /dev/null +++ b/api/docs/POSTStockReservations201ResponseDataRelationshipsStockTransferData.md @@ -0,0 +1,102 @@ +# POSTStockReservations201ResponseDataRelationshipsStockTransferData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource ID | [optional] + +## Methods + +### NewPOSTStockReservations201ResponseDataRelationshipsStockTransferData + +`func NewPOSTStockReservations201ResponseDataRelationshipsStockTransferData() *POSTStockReservations201ResponseDataRelationshipsStockTransferData` + +NewPOSTStockReservations201ResponseDataRelationshipsStockTransferData instantiates a new POSTStockReservations201ResponseDataRelationshipsStockTransferData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTStockReservations201ResponseDataRelationshipsStockTransferDataWithDefaults + +`func NewPOSTStockReservations201ResponseDataRelationshipsStockTransferDataWithDefaults() *POSTStockReservations201ResponseDataRelationshipsStockTransferData` + +NewPOSTStockReservations201ResponseDataRelationshipsStockTransferDataWithDefaults instantiates a new POSTStockReservations201ResponseDataRelationshipsStockTransferData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTStockTransfers201ResponseDataAttributes.md b/api/docs/POSTStockTransfers201ResponseDataAttributes.md index b52906fe..cdfa6d8d 100644 --- a/api/docs/POSTStockTransfers201ResponseDataAttributes.md +++ b/api/docs/POSTStockTransfers201ResponseDataAttributes.md @@ -4,10 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Number** | Pointer to **interface{}** | Unique identifier for the stock transfer (numeric). | [optional] **SkuCode** | Pointer to **interface{}** | The code of the associated SKU. | [optional] -**Quantity** | **interface{}** | The stock quantity to be transferred from the origin stock location to destination one | +**Quantity** | **interface{}** | The stock quantity to be transferred from the origin stock location to destination one. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -29,6 +30,41 @@ NewPOSTStockTransfers201ResponseDataAttributesWithDefaults instantiates a new PO This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetNumber + +`func (o *POSTStockTransfers201ResponseDataAttributes) GetNumber() interface{}` + +GetNumber returns the Number field if non-nil, zero value otherwise. + +### GetNumberOk + +`func (o *POSTStockTransfers201ResponseDataAttributes) GetNumberOk() (*interface{}, bool)` + +GetNumberOk returns a tuple with the Number field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumber + +`func (o *POSTStockTransfers201ResponseDataAttributes) SetNumber(v interface{})` + +SetNumber sets Number field to given value. + +### HasNumber + +`func (o *POSTStockTransfers201ResponseDataAttributes) HasNumber() bool` + +HasNumber returns a boolean if a field has been set. + +### SetNumberNil + +`func (o *POSTStockTransfers201ResponseDataAttributes) SetNumberNil(b bool)` + + SetNumberNil sets the value for Number to be an explicit nil + +### UnsetNumber +`func (o *POSTStockTransfers201ResponseDataAttributes) UnsetNumber()` + +UnsetNumber ensures that no value is present for Number, not even an explicit nil ### GetSkuCode `func (o *POSTStockTransfers201ResponseDataAttributes) GetSkuCode() interface{}` diff --git a/api/docs/POSTStockTransfers201ResponseDataRelationships.md b/api/docs/POSTStockTransfers201ResponseDataRelationships.md index ac396586..bd11f409 100644 --- a/api/docs/POSTStockTransfers201ResponseDataRelationships.md +++ b/api/docs/POSTStockTransfers201ResponseDataRelationships.md @@ -7,9 +7,12 @@ Name | Type | Description | Notes **Sku** | Pointer to [**POSTInStockSubscriptions201ResponseDataRelationshipsSku**](POSTInStockSubscriptions201ResponseDataRelationshipsSku.md) | | [optional] **OriginStockLocation** | Pointer to [**POSTStockTransfers201ResponseDataRelationshipsOriginStockLocation**](POSTStockTransfers201ResponseDataRelationshipsOriginStockLocation.md) | | [optional] **DestinationStockLocation** | Pointer to [**POSTStockTransfers201ResponseDataRelationshipsDestinationStockLocation**](POSTStockTransfers201ResponseDataRelationshipsDestinationStockLocation.md) | | [optional] -**Shipment** | Pointer to [**POSTParcels201ResponseDataRelationshipsShipment**](POSTParcels201ResponseDataRelationshipsShipment.md) | | [optional] +**Shipment** | Pointer to [**POSTLineItems201ResponseDataRelationshipsShipment**](POSTLineItems201ResponseDataRelationshipsShipment.md) | | [optional] **LineItem** | Pointer to [**POSTLineItemOptions201ResponseDataRelationshipsLineItem**](POSTLineItemOptions201ResponseDataRelationshipsLineItem.md) | | [optional] -**Events** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents.md) | | [optional] +**StockReservation** | Pointer to [**POSTStockLineItems201ResponseDataRelationshipsStockReservation**](POSTStockLineItems201ResponseDataRelationshipsStockReservation.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**POSTAddresses201ResponseDataRelationshipsEvents**](POSTAddresses201ResponseDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -107,20 +110,20 @@ HasDestinationStockLocation returns a boolean if a field has been set. ### GetShipment -`func (o *POSTStockTransfers201ResponseDataRelationships) GetShipment() POSTParcels201ResponseDataRelationshipsShipment` +`func (o *POSTStockTransfers201ResponseDataRelationships) GetShipment() POSTLineItems201ResponseDataRelationshipsShipment` GetShipment returns the Shipment field if non-nil, zero value otherwise. ### GetShipmentOk -`func (o *POSTStockTransfers201ResponseDataRelationships) GetShipmentOk() (*POSTParcels201ResponseDataRelationshipsShipment, bool)` +`func (o *POSTStockTransfers201ResponseDataRelationships) GetShipmentOk() (*POSTLineItems201ResponseDataRelationshipsShipment, bool)` GetShipmentOk returns a tuple with the Shipment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetShipment -`func (o *POSTStockTransfers201ResponseDataRelationships) SetShipment(v POSTParcels201ResponseDataRelationshipsShipment)` +`func (o *POSTStockTransfers201ResponseDataRelationships) SetShipment(v POSTLineItems201ResponseDataRelationshipsShipment)` SetShipment sets Shipment field to given value. @@ -155,22 +158,72 @@ SetLineItem sets LineItem field to given value. HasLineItem returns a boolean if a field has been set. +### GetStockReservation + +`func (o *POSTStockTransfers201ResponseDataRelationships) GetStockReservation() POSTStockLineItems201ResponseDataRelationshipsStockReservation` + +GetStockReservation returns the StockReservation field if non-nil, zero value otherwise. + +### GetStockReservationOk + +`func (o *POSTStockTransfers201ResponseDataRelationships) GetStockReservationOk() (*POSTStockLineItems201ResponseDataRelationshipsStockReservation, bool)` + +GetStockReservationOk returns a tuple with the StockReservation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockReservation + +`func (o *POSTStockTransfers201ResponseDataRelationships) SetStockReservation(v POSTStockLineItems201ResponseDataRelationshipsStockReservation)` + +SetStockReservation sets StockReservation field to given value. + +### HasStockReservation + +`func (o *POSTStockTransfers201ResponseDataRelationships) HasStockReservation() bool` + +HasStockReservation returns a boolean if a field has been set. + +### GetAttachments + +`func (o *POSTStockTransfers201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *POSTStockTransfers201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *POSTStockTransfers201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *POSTStockTransfers201ResponseDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + ### GetEvents -`func (o *POSTStockTransfers201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents` +`func (o *POSTStockTransfers201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *POSTStockTransfers201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool)` +`func (o *POSTStockTransfers201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *POSTStockTransfers201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents)` +`func (o *POSTStockTransfers201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -180,6 +233,31 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTStockTransfers201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTStockTransfers201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTStockTransfers201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTStockTransfers201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTStripeGateways201ResponseDataAttributes.md b/api/docs/POSTStripeGateways201ResponseDataAttributes.md index 91545d0d..ae99d03e 100644 --- a/api/docs/POSTStripeGateways201ResponseDataAttributes.md +++ b/api/docs/POSTStripeGateways201ResponseDataAttributes.md @@ -6,10 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The payment gateway's internal name. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **Login** | **interface{}** | The gateway login. | **PublishableKey** | Pointer to **interface{}** | The gateway publishable API key. | [optional] +**ConnectedAccount** | Pointer to **interface{}** | The account (if any) for which the funds of the PaymentIntent are intended. | [optional] **AutoPayments** | Pointer to **interface{}** | Indicates if the gateway will accept payment methods enabled in the Stripe dashboard. | [optional] ## Methods @@ -231,6 +232,41 @@ HasPublishableKey returns a boolean if a field has been set. `func (o *POSTStripeGateways201ResponseDataAttributes) UnsetPublishableKey()` UnsetPublishableKey ensures that no value is present for PublishableKey, not even an explicit nil +### GetConnectedAccount + +`func (o *POSTStripeGateways201ResponseDataAttributes) GetConnectedAccount() interface{}` + +GetConnectedAccount returns the ConnectedAccount field if non-nil, zero value otherwise. + +### GetConnectedAccountOk + +`func (o *POSTStripeGateways201ResponseDataAttributes) GetConnectedAccountOk() (*interface{}, bool)` + +GetConnectedAccountOk returns a tuple with the ConnectedAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedAccount + +`func (o *POSTStripeGateways201ResponseDataAttributes) SetConnectedAccount(v interface{})` + +SetConnectedAccount sets ConnectedAccount field to given value. + +### HasConnectedAccount + +`func (o *POSTStripeGateways201ResponseDataAttributes) HasConnectedAccount() bool` + +HasConnectedAccount returns a boolean if a field has been set. + +### SetConnectedAccountNil + +`func (o *POSTStripeGateways201ResponseDataAttributes) SetConnectedAccountNil(b bool)` + + SetConnectedAccountNil sets the value for ConnectedAccount to be an explicit nil + +### UnsetConnectedAccount +`func (o *POSTStripeGateways201ResponseDataAttributes) UnsetConnectedAccount()` + +UnsetConnectedAccount ensures that no value is present for ConnectedAccount, not even an explicit nil ### GetAutoPayments `func (o *POSTStripeGateways201ResponseDataAttributes) GetAutoPayments() interface{}` diff --git a/api/docs/POSTStripeGateways201ResponseDataRelationships.md b/api/docs/POSTStripeGateways201ResponseDataRelationships.md index d6fd0864..9abcd34f 100644 --- a/api/docs/POSTStripeGateways201ResponseDataRelationships.md +++ b/api/docs/POSTStripeGateways201ResponseDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods**](POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] **StripePayments** | Pointer to [**POSTStripeGateways201ResponseDataRelationshipsStripePayments**](POSTStripeGateways201ResponseDataRelationshipsStripePayments.md) | | [optional] ## Methods @@ -51,6 +52,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTStripeGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTStripeGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTStripeGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTStripeGateways201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetStripePayments `func (o *POSTStripeGateways201ResponseDataRelationships) GetStripePayments() POSTStripeGateways201ResponseDataRelationshipsStripePayments` diff --git a/api/docs/POSTStripePayments201ResponseDataAttributes.md b/api/docs/POSTStripePayments201ResponseDataAttributes.md index 7a8a18fa..f0d779ea 100644 --- a/api/docs/POSTStripePayments201ResponseDataAttributes.md +++ b/api/docs/POSTStripePayments201ResponseDataAttributes.md @@ -4,9 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Options** | Pointer to **interface{}** | Stripe payment options: 'customer', 'payment_method', etc. Check Stripe payment intent API for more details. | [optional] +**StripeId** | Pointer to **interface{}** | The Stripe payment intent ID. Required to identify a payment session on stripe. | [optional] +**ClientSecret** | Pointer to **interface{}** | The Stripe payment intent client secret. Required to create a charge through Stripe.js. | [optional] +**Options** | Pointer to **interface{}** | Stripe payment options: 'customer', 'payment_method', 'return_url', etc. Check Stripe payment intent API for more details. | [optional] +**ReturnUrl** | Pointer to **interface{}** | The URL to return to when a redirect payment is completed. | [optional] +**ReceiptEmail** | Pointer to **interface{}** | The email address to send the receipt to. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -28,6 +32,76 @@ NewPOSTStripePayments201ResponseDataAttributesWithDefaults instantiates a new PO This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetStripeId + +`func (o *POSTStripePayments201ResponseDataAttributes) GetStripeId() interface{}` + +GetStripeId returns the StripeId field if non-nil, zero value otherwise. + +### GetStripeIdOk + +`func (o *POSTStripePayments201ResponseDataAttributes) GetStripeIdOk() (*interface{}, bool)` + +GetStripeIdOk returns a tuple with the StripeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStripeId + +`func (o *POSTStripePayments201ResponseDataAttributes) SetStripeId(v interface{})` + +SetStripeId sets StripeId field to given value. + +### HasStripeId + +`func (o *POSTStripePayments201ResponseDataAttributes) HasStripeId() bool` + +HasStripeId returns a boolean if a field has been set. + +### SetStripeIdNil + +`func (o *POSTStripePayments201ResponseDataAttributes) SetStripeIdNil(b bool)` + + SetStripeIdNil sets the value for StripeId to be an explicit nil + +### UnsetStripeId +`func (o *POSTStripePayments201ResponseDataAttributes) UnsetStripeId()` + +UnsetStripeId ensures that no value is present for StripeId, not even an explicit nil +### GetClientSecret + +`func (o *POSTStripePayments201ResponseDataAttributes) GetClientSecret() interface{}` + +GetClientSecret returns the ClientSecret field if non-nil, zero value otherwise. + +### GetClientSecretOk + +`func (o *POSTStripePayments201ResponseDataAttributes) GetClientSecretOk() (*interface{}, bool)` + +GetClientSecretOk returns a tuple with the ClientSecret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClientSecret + +`func (o *POSTStripePayments201ResponseDataAttributes) SetClientSecret(v interface{})` + +SetClientSecret sets ClientSecret field to given value. + +### HasClientSecret + +`func (o *POSTStripePayments201ResponseDataAttributes) HasClientSecret() bool` + +HasClientSecret returns a boolean if a field has been set. + +### SetClientSecretNil + +`func (o *POSTStripePayments201ResponseDataAttributes) SetClientSecretNil(b bool)` + + SetClientSecretNil sets the value for ClientSecret to be an explicit nil + +### UnsetClientSecret +`func (o *POSTStripePayments201ResponseDataAttributes) UnsetClientSecret()` + +UnsetClientSecret ensures that no value is present for ClientSecret, not even an explicit nil ### GetOptions `func (o *POSTStripePayments201ResponseDataAttributes) GetOptions() interface{}` @@ -63,6 +137,76 @@ HasOptions returns a boolean if a field has been set. `func (o *POSTStripePayments201ResponseDataAttributes) UnsetOptions()` UnsetOptions ensures that no value is present for Options, not even an explicit nil +### GetReturnUrl + +`func (o *POSTStripePayments201ResponseDataAttributes) GetReturnUrl() interface{}` + +GetReturnUrl returns the ReturnUrl field if non-nil, zero value otherwise. + +### GetReturnUrlOk + +`func (o *POSTStripePayments201ResponseDataAttributes) GetReturnUrlOk() (*interface{}, bool)` + +GetReturnUrlOk returns a tuple with the ReturnUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnUrl + +`func (o *POSTStripePayments201ResponseDataAttributes) SetReturnUrl(v interface{})` + +SetReturnUrl sets ReturnUrl field to given value. + +### HasReturnUrl + +`func (o *POSTStripePayments201ResponseDataAttributes) HasReturnUrl() bool` + +HasReturnUrl returns a boolean if a field has been set. + +### SetReturnUrlNil + +`func (o *POSTStripePayments201ResponseDataAttributes) SetReturnUrlNil(b bool)` + + SetReturnUrlNil sets the value for ReturnUrl to be an explicit nil + +### UnsetReturnUrl +`func (o *POSTStripePayments201ResponseDataAttributes) UnsetReturnUrl()` + +UnsetReturnUrl ensures that no value is present for ReturnUrl, not even an explicit nil +### GetReceiptEmail + +`func (o *POSTStripePayments201ResponseDataAttributes) GetReceiptEmail() interface{}` + +GetReceiptEmail returns the ReceiptEmail field if non-nil, zero value otherwise. + +### GetReceiptEmailOk + +`func (o *POSTStripePayments201ResponseDataAttributes) GetReceiptEmailOk() (*interface{}, bool)` + +GetReceiptEmailOk returns a tuple with the ReceiptEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReceiptEmail + +`func (o *POSTStripePayments201ResponseDataAttributes) SetReceiptEmail(v interface{})` + +SetReceiptEmail sets ReceiptEmail field to given value. + +### HasReceiptEmail + +`func (o *POSTStripePayments201ResponseDataAttributes) HasReceiptEmail() bool` + +HasReceiptEmail returns a boolean if a field has been set. + +### SetReceiptEmailNil + +`func (o *POSTStripePayments201ResponseDataAttributes) SetReceiptEmailNil(b bool)` + + SetReceiptEmailNil sets the value for ReceiptEmail to be an explicit nil + +### UnsetReceiptEmail +`func (o *POSTStripePayments201ResponseDataAttributes) UnsetReceiptEmail()` + +UnsetReceiptEmail ensures that no value is present for ReceiptEmail, not even an explicit nil ### GetReference `func (o *POSTStripePayments201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTSubscriptionModels201ResponseDataAttributes.md b/api/docs/POSTSubscriptionModels201ResponseDataAttributes.md index 9c74c59a..aeb328ab 100644 --- a/api/docs/POSTSubscriptionModels201ResponseDataAttributes.md +++ b/api/docs/POSTSubscriptionModels201ResponseDataAttributes.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **AutoActivate** | Pointer to **interface{}** | Indicates if the created subscriptions will be activated considering the placed source order as its first run, default to true. | [optional] **AutoCancel** | Pointer to **interface{}** | Indicates if the created subscriptions will be cancelled in case the source order is cancelled, default to false. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTSubscriptionModels201ResponseDataRelationships.md b/api/docs/POSTSubscriptionModels201ResponseDataRelationships.md index 5c06dae7..6fd55a92 100644 --- a/api/docs/POSTSubscriptionModels201ResponseDataRelationships.md +++ b/api/docs/POSTSubscriptionModels201ResponseDataRelationships.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Markets** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsMarkets**](POSTAvalaraAccounts201ResponseDataRelationshipsMarkets.md) | | [optional] **OrderSubscriptions** | Pointer to [**POSTCustomers201ResponseDataRelationshipsOrderSubscriptions**](POSTCustomers201ResponseDataRelationshipsOrderSubscriptions.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ HasOrderSubscriptions returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTSubscriptionModels201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTSubscriptionModels201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTSubscriptionModels201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTSubscriptionModels201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTSubscriptionModels201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTSubscriptionModels201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. diff --git a/api/docs/POSTTags201Response.md b/api/docs/POSTTags201Response.md new file mode 100644 index 00000000..6dd3873d --- /dev/null +++ b/api/docs/POSTTags201Response.md @@ -0,0 +1,56 @@ +# POSTTags201Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**POSTTags201ResponseData**](POSTTags201ResponseData.md) | | [optional] + +## Methods + +### NewPOSTTags201Response + +`func NewPOSTTags201Response() *POSTTags201Response` + +NewPOSTTags201Response instantiates a new POSTTags201Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTTags201ResponseWithDefaults + +`func NewPOSTTags201ResponseWithDefaults() *POSTTags201Response` + +NewPOSTTags201ResponseWithDefaults instantiates a new POSTTags201Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *POSTTags201Response) GetData() POSTTags201ResponseData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *POSTTags201Response) GetDataOk() (*POSTTags201ResponseData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *POSTTags201Response) SetData(v POSTTags201ResponseData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *POSTTags201Response) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTTags201ResponseData.md b/api/docs/POSTTags201ResponseData.md new file mode 100644 index 00000000..17f43c65 --- /dev/null +++ b/api/docs/POSTTags201ResponseData.md @@ -0,0 +1,190 @@ +# POSTTags201ResponseData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **interface{}** | The resource's id | [optional] +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] +**Attributes** | Pointer to [**POSTTags201ResponseDataAttributes**](POSTTags201ResponseDataAttributes.md) | | [optional] +**Relationships** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewPOSTTags201ResponseData + +`func NewPOSTTags201ResponseData() *POSTTags201ResponseData` + +NewPOSTTags201ResponseData instantiates a new POSTTags201ResponseData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTTags201ResponseDataWithDefaults + +`func NewPOSTTags201ResponseDataWithDefaults() *POSTTags201ResponseData` + +NewPOSTTags201ResponseDataWithDefaults instantiates a new POSTTags201ResponseData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *POSTTags201ResponseData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *POSTTags201ResponseData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *POSTTags201ResponseData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *POSTTags201ResponseData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *POSTTags201ResponseData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *POSTTags201ResponseData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetType + +`func (o *POSTTags201ResponseData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *POSTTags201ResponseData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *POSTTags201ResponseData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *POSTTags201ResponseData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *POSTTags201ResponseData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *POSTTags201ResponseData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetLinks + +`func (o *POSTTags201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *POSTTags201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *POSTTags201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *POSTTags201ResponseData) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetAttributes + +`func (o *POSTTags201ResponseData) GetAttributes() POSTTags201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *POSTTags201ResponseData) GetAttributesOk() (*POSTTags201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *POSTTags201ResponseData) SetAttributes(v POSTTags201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + +### HasAttributes + +`func (o *POSTTags201ResponseData) HasAttributes() bool` + +HasAttributes returns a boolean if a field has been set. + +### GetRelationships + +`func (o *POSTTags201ResponseData) GetRelationships() interface{}` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *POSTTags201ResponseData) GetRelationshipsOk() (*interface{}, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *POSTTags201ResponseData) SetRelationships(v interface{})` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *POSTTags201ResponseData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### SetRelationshipsNil + +`func (o *POSTTags201ResponseData) SetRelationshipsNil(b bool)` + + SetRelationshipsNil sets the value for Relationships to be an explicit nil + +### UnsetRelationships +`func (o *POSTTags201ResponseData) UnsetRelationships()` + +UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTTags201ResponseDataAttributes.md b/api/docs/POSTTags201ResponseDataAttributes.md new file mode 100644 index 00000000..527e2d64 --- /dev/null +++ b/api/docs/POSTTags201ResponseDataAttributes.md @@ -0,0 +1,169 @@ +# POSTTags201ResponseDataAttributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **interface{}** | The tag name. | +**Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] +**Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] + +## Methods + +### NewPOSTTags201ResponseDataAttributes + +`func NewPOSTTags201ResponseDataAttributes(name interface{}, ) *POSTTags201ResponseDataAttributes` + +NewPOSTTags201ResponseDataAttributes instantiates a new POSTTags201ResponseDataAttributes object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTTags201ResponseDataAttributesWithDefaults + +`func NewPOSTTags201ResponseDataAttributesWithDefaults() *POSTTags201ResponseDataAttributes` + +NewPOSTTags201ResponseDataAttributesWithDefaults instantiates a new POSTTags201ResponseDataAttributes object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *POSTTags201ResponseDataAttributes) GetName() interface{}` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *POSTTags201ResponseDataAttributes) GetNameOk() (*interface{}, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *POSTTags201ResponseDataAttributes) SetName(v interface{})` + +SetName sets Name field to given value. + + +### SetNameNil + +`func (o *POSTTags201ResponseDataAttributes) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *POSTTags201ResponseDataAttributes) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetReference + +`func (o *POSTTags201ResponseDataAttributes) GetReference() interface{}` + +GetReference returns the Reference field if non-nil, zero value otherwise. + +### GetReferenceOk + +`func (o *POSTTags201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool)` + +GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReference + +`func (o *POSTTags201ResponseDataAttributes) SetReference(v interface{})` + +SetReference sets Reference field to given value. + +### HasReference + +`func (o *POSTTags201ResponseDataAttributes) HasReference() bool` + +HasReference returns a boolean if a field has been set. + +### SetReferenceNil + +`func (o *POSTTags201ResponseDataAttributes) SetReferenceNil(b bool)` + + SetReferenceNil sets the value for Reference to be an explicit nil + +### UnsetReference +`func (o *POSTTags201ResponseDataAttributes) UnsetReference()` + +UnsetReference ensures that no value is present for Reference, not even an explicit nil +### GetReferenceOrigin + +`func (o *POSTTags201ResponseDataAttributes) GetReferenceOrigin() interface{}` + +GetReferenceOrigin returns the ReferenceOrigin field if non-nil, zero value otherwise. + +### GetReferenceOriginOk + +`func (o *POSTTags201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool)` + +GetReferenceOriginOk returns a tuple with the ReferenceOrigin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceOrigin + +`func (o *POSTTags201ResponseDataAttributes) SetReferenceOrigin(v interface{})` + +SetReferenceOrigin sets ReferenceOrigin field to given value. + +### HasReferenceOrigin + +`func (o *POSTTags201ResponseDataAttributes) HasReferenceOrigin() bool` + +HasReferenceOrigin returns a boolean if a field has been set. + +### SetReferenceOriginNil + +`func (o *POSTTags201ResponseDataAttributes) SetReferenceOriginNil(b bool)` + + SetReferenceOriginNil sets the value for ReferenceOrigin to be an explicit nil + +### UnsetReferenceOrigin +`func (o *POSTTags201ResponseDataAttributes) UnsetReferenceOrigin()` + +UnsetReferenceOrigin ensures that no value is present for ReferenceOrigin, not even an explicit nil +### GetMetadata + +`func (o *POSTTags201ResponseDataAttributes) GetMetadata() interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *POSTTags201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *POSTTags201ResponseDataAttributes) SetMetadata(v interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *POSTTags201ResponseDataAttributes) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *POSTTags201ResponseDataAttributes) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *POSTTags201ResponseDataAttributes) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTTaxCategories201ResponseDataAttributes.md b/api/docs/POSTTaxCategories201ResponseDataAttributes.md index 4f64507f..df5f46cd 100644 --- a/api/docs/POSTTaxCategories201ResponseDataAttributes.md +++ b/api/docs/POSTTaxCategories201ResponseDataAttributes.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Code** | **interface{}** | The tax category identifier code, specific for a particular tax calculator. | **SkuCode** | Pointer to **interface{}** | The code of the associated SKU. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTTaxCategories201ResponseDataRelationships.md b/api/docs/POSTTaxCategories201ResponseDataRelationships.md index 9b5a7faf..92c1d07e 100644 --- a/api/docs/POSTTaxCategories201ResponseDataRelationships.md +++ b/api/docs/POSTTaxCategories201ResponseDataRelationships.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Sku** | Pointer to [**POSTInStockSubscriptions201ResponseDataRelationshipsSku**](POSTInStockSubscriptions201ResponseDataRelationshipsSku.md) | | [optional] **TaxCalculator** | Pointer to [**POSTMarkets201ResponseDataRelationshipsTaxCalculator**](POSTMarkets201ResponseDataRelationshipsTaxCalculator.md) | | [optional] -**Attachments** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsAttachments**](POSTAvalaraAccounts201ResponseDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -79,20 +80,20 @@ HasTaxCalculator returns a boolean if a field has been set. ### GetAttachments -`func (o *POSTTaxCategories201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments` +`func (o *POSTTaxCategories201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *POSTTaxCategories201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool)` +`func (o *POSTTaxCategories201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *POSTTaxCategories201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments)` +`func (o *POSTTaxCategories201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -102,6 +103,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTTaxCategories201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTTaxCategories201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTTaxCategories201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTTaxCategories201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTTaxRules201ResponseDataAttributes.md b/api/docs/POSTTaxRules201ResponseDataAttributes.md index adee30eb..a76cfe84 100644 --- a/api/docs/POSTTaxRules201ResponseDataAttributes.md +++ b/api/docs/POSTTaxRules201ResponseDataAttributes.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **GiftCardTaxable** | Pointer to **interface{}** | Indicates if gift cards are taxable. | [optional] **AdjustmentTaxable** | Pointer to **interface{}** | Indicates if adjustemnts are taxable. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods diff --git a/api/docs/POSTTaxRules201ResponseDataRelationships.md b/api/docs/POSTTaxRules201ResponseDataRelationships.md index 414d0563..b926cd69 100644 --- a/api/docs/POSTTaxRules201ResponseDataRelationships.md +++ b/api/docs/POSTTaxRules201ResponseDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ManualTaxCalculator** | Pointer to [**POSTTaxRules201ResponseDataRelationshipsManualTaxCalculator**](POSTTaxRules201ResponseDataRelationshipsManualTaxCalculator.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -50,6 +51,31 @@ SetManualTaxCalculator sets ManualTaxCalculator field to given value. HasManualTaxCalculator returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTTaxRules201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTTaxRules201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTTaxRules201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTTaxRules201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTTaxjarAccounts201ResponseData.md b/api/docs/POSTTaxjarAccounts201ResponseData.md index 060e2703..85a48f21 100644 --- a/api/docs/POSTTaxjarAccounts201ResponseData.md +++ b/api/docs/POSTTaxjarAccounts201ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**POSTTaxjarAccounts201ResponseDataAttributes**](POSTTaxjarAccounts201ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationships**](POSTAvalaraAccounts201ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTTaxjarAccounts201ResponseDataRelationships**](POSTTaxjarAccounts201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *POSTTaxjarAccounts201ResponseData) GetRelationships() POSTAvalaraAccounts201ResponseDataRelationships` +`func (o *POSTTaxjarAccounts201ResponseData) GetRelationships() POSTTaxjarAccounts201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *POSTTaxjarAccounts201ResponseData) GetRelationshipsOk() (*POSTAvalaraAccounts201ResponseDataRelationships, bool)` +`func (o *POSTTaxjarAccounts201ResponseData) GetRelationshipsOk() (*POSTTaxjarAccounts201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *POSTTaxjarAccounts201ResponseData) SetRelationships(v POSTAvalaraAccounts201ResponseDataRelationships)` +`func (o *POSTTaxjarAccounts201ResponseData) SetRelationships(v POSTTaxjarAccounts201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/POSTTaxjarAccounts201ResponseDataAttributes.md b/api/docs/POSTTaxjarAccounts201ResponseDataAttributes.md index a787787b..1dbd4585 100644 --- a/api/docs/POSTTaxjarAccounts201ResponseDataAttributes.md +++ b/api/docs/POSTTaxjarAccounts201ResponseDataAttributes.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **interface{}** | The tax calculator's internal name. | **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] **ApiKey** | **interface{}** | The TaxJar account API key. | diff --git a/api/docs/POSTTaxjarAccounts201ResponseDataRelationships.md b/api/docs/POSTTaxjarAccounts201ResponseDataRelationships.md new file mode 100644 index 00000000..c7d49c9d --- /dev/null +++ b/api/docs/POSTTaxjarAccounts201ResponseDataRelationships.md @@ -0,0 +1,134 @@ +# POSTTaxjarAccounts201ResponseDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Markets** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsMarkets**](POSTAvalaraAccounts201ResponseDataRelationshipsMarkets.md) | | [optional] +**Attachments** | Pointer to [**GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments**](GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] +**TaxCategories** | Pointer to [**POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories**](POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories.md) | | [optional] + +## Methods + +### NewPOSTTaxjarAccounts201ResponseDataRelationships + +`func NewPOSTTaxjarAccounts201ResponseDataRelationships() *POSTTaxjarAccounts201ResponseDataRelationships` + +NewPOSTTaxjarAccounts201ResponseDataRelationships instantiates a new POSTTaxjarAccounts201ResponseDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTTaxjarAccounts201ResponseDataRelationshipsWithDefaults + +`func NewPOSTTaxjarAccounts201ResponseDataRelationshipsWithDefaults() *POSTTaxjarAccounts201ResponseDataRelationships` + +NewPOSTTaxjarAccounts201ResponseDataRelationshipsWithDefaults instantiates a new POSTTaxjarAccounts201ResponseDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMarkets + +`func (o *POSTTaxjarAccounts201ResponseDataRelationships) GetMarkets() POSTAvalaraAccounts201ResponseDataRelationshipsMarkets` + +GetMarkets returns the Markets field if non-nil, zero value otherwise. + +### GetMarketsOk + +`func (o *POSTTaxjarAccounts201ResponseDataRelationships) GetMarketsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsMarkets, bool)` + +GetMarketsOk returns a tuple with the Markets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkets + +`func (o *POSTTaxjarAccounts201ResponseDataRelationships) SetMarkets(v POSTAvalaraAccounts201ResponseDataRelationshipsMarkets)` + +SetMarkets sets Markets field to given value. + +### HasMarkets + +`func (o *POSTTaxjarAccounts201ResponseDataRelationships) HasMarkets() bool` + +HasMarkets returns a boolean if a field has been set. + +### GetAttachments + +`func (o *POSTTaxjarAccounts201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *POSTTaxjarAccounts201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *POSTTaxjarAccounts201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *POSTTaxjarAccounts201ResponseDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTTaxjarAccounts201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTTaxjarAccounts201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTTaxjarAccounts201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTTaxjarAccounts201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + +### GetTaxCategories + +`func (o *POSTTaxjarAccounts201ResponseDataRelationships) GetTaxCategories() POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories` + +GetTaxCategories returns the TaxCategories field if non-nil, zero value otherwise. + +### GetTaxCategoriesOk + +`func (o *POSTTaxjarAccounts201ResponseDataRelationships) GetTaxCategoriesOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories, bool)` + +GetTaxCategoriesOk returns a tuple with the TaxCategories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaxCategories + +`func (o *POSTTaxjarAccounts201ResponseDataRelationships) SetTaxCategories(v POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories)` + +SetTaxCategories sets TaxCategories field to given value. + +### HasTaxCategories + +`func (o *POSTTaxjarAccounts201ResponseDataRelationships) HasTaxCategories() bool` + +HasTaxCategories returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/POSTWebhooks201ResponseDataAttributes.md b/api/docs/POSTWebhooks201ResponseDataAttributes.md index 5452109c..b308c87f 100644 --- a/api/docs/POSTWebhooks201ResponseDataAttributes.md +++ b/api/docs/POSTWebhooks201ResponseDataAttributes.md @@ -8,8 +8,10 @@ Name | Type | Description | Notes **Topic** | **interface{}** | The identifier of the resource/event that will trigger the webhook. | **CallbackUrl** | **interface{}** | URI where the webhook subscription should send the POST request when the event occurs. | **IncludeResources** | Pointer to **interface{}** | List of related resources that should be included in the webhook body. | [optional] +**Disable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as disabled. | [optional] +**Enable** | Pointer to **interface{}** | Send this attribute if you want to mark this resource as enabled. | [optional] **Reference** | Pointer to **interface{}** | A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. | [optional] -**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code | [optional] +**ReferenceOrigin** | Pointer to **interface{}** | Any identifier of the third party system that defines the reference code. | [optional] **Metadata** | Pointer to **interface{}** | Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. | [optional] ## Methods @@ -161,6 +163,76 @@ HasIncludeResources returns a boolean if a field has been set. `func (o *POSTWebhooks201ResponseDataAttributes) UnsetIncludeResources()` UnsetIncludeResources ensures that no value is present for IncludeResources, not even an explicit nil +### GetDisable + +`func (o *POSTWebhooks201ResponseDataAttributes) GetDisable() interface{}` + +GetDisable returns the Disable field if non-nil, zero value otherwise. + +### GetDisableOk + +`func (o *POSTWebhooks201ResponseDataAttributes) GetDisableOk() (*interface{}, bool)` + +GetDisableOk returns a tuple with the Disable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisable + +`func (o *POSTWebhooks201ResponseDataAttributes) SetDisable(v interface{})` + +SetDisable sets Disable field to given value. + +### HasDisable + +`func (o *POSTWebhooks201ResponseDataAttributes) HasDisable() bool` + +HasDisable returns a boolean if a field has been set. + +### SetDisableNil + +`func (o *POSTWebhooks201ResponseDataAttributes) SetDisableNil(b bool)` + + SetDisableNil sets the value for Disable to be an explicit nil + +### UnsetDisable +`func (o *POSTWebhooks201ResponseDataAttributes) UnsetDisable()` + +UnsetDisable ensures that no value is present for Disable, not even an explicit nil +### GetEnable + +`func (o *POSTWebhooks201ResponseDataAttributes) GetEnable() interface{}` + +GetEnable returns the Enable field if non-nil, zero value otherwise. + +### GetEnableOk + +`func (o *POSTWebhooks201ResponseDataAttributes) GetEnableOk() (*interface{}, bool)` + +GetEnableOk returns a tuple with the Enable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnable + +`func (o *POSTWebhooks201ResponseDataAttributes) SetEnable(v interface{})` + +SetEnable sets Enable field to given value. + +### HasEnable + +`func (o *POSTWebhooks201ResponseDataAttributes) HasEnable() bool` + +HasEnable returns a boolean if a field has been set. + +### SetEnableNil + +`func (o *POSTWebhooks201ResponseDataAttributes) SetEnableNil(b bool)` + + SetEnableNil sets the value for Enable to be an explicit nil + +### UnsetEnable +`func (o *POSTWebhooks201ResponseDataAttributes) UnsetEnable()` + +UnsetEnable ensures that no value is present for Enable, not even an explicit nil ### GetReference `func (o *POSTWebhooks201ResponseDataAttributes) GetReference() interface{}` diff --git a/api/docs/POSTWebhooks201ResponseDataRelationships.md b/api/docs/POSTWebhooks201ResponseDataRelationships.md index e982b867..72daf4ee 100644 --- a/api/docs/POSTWebhooks201ResponseDataRelationships.md +++ b/api/docs/POSTWebhooks201ResponseDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LastEventCallbacks** | Pointer to [**GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks**](GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] ## Methods @@ -50,6 +51,31 @@ SetLastEventCallbacks sets LastEventCallbacks field to given value. HasLastEventCallbacks returns a boolean if a field has been set. +### GetVersions + +`func (o *POSTWebhooks201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTWebhooks201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTWebhooks201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTWebhooks201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/POSTWireTransfers201ResponseData.md b/api/docs/POSTWireTransfers201ResponseData.md index d4213080..377de26b 100644 --- a/api/docs/POSTWireTransfers201ResponseData.md +++ b/api/docs/POSTWireTransfers201ResponseData.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Type** | Pointer to **interface{}** | The resource's type | [optional] **Links** | Pointer to [**POSTAddresses201ResponseDataLinks**](POSTAddresses201ResponseDataLinks.md) | | [optional] **Attributes** | Pointer to [**POSTAdyenPayments201ResponseDataAttributes**](POSTAdyenPayments201ResponseDataAttributes.md) | | [optional] -**Relationships** | Pointer to [**GETTransactionsTransactionId200ResponseDataRelationships**](GETTransactionsTransactionId200ResponseDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**POSTWireTransfers201ResponseDataRelationships**](POSTWireTransfers201ResponseDataRelationships.md) | | [optional] ## Methods @@ -151,20 +151,20 @@ HasAttributes returns a boolean if a field has been set. ### GetRelationships -`func (o *POSTWireTransfers201ResponseData) GetRelationships() GETTransactionsTransactionId200ResponseDataRelationships` +`func (o *POSTWireTransfers201ResponseData) GetRelationships() POSTWireTransfers201ResponseDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *POSTWireTransfers201ResponseData) GetRelationshipsOk() (*GETTransactionsTransactionId200ResponseDataRelationships, bool)` +`func (o *POSTWireTransfers201ResponseData) GetRelationshipsOk() (*POSTWireTransfers201ResponseDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *POSTWireTransfers201ResponseData) SetRelationships(v GETTransactionsTransactionId200ResponseDataRelationships)` +`func (o *POSTWireTransfers201ResponseData) SetRelationships(v POSTWireTransfers201ResponseDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/POSTWireTransfers201ResponseDataRelationships.md b/api/docs/POSTWireTransfers201ResponseDataRelationships.md new file mode 100644 index 00000000..5516caec --- /dev/null +++ b/api/docs/POSTWireTransfers201ResponseDataRelationships.md @@ -0,0 +1,82 @@ +# POSTWireTransfers201ResponseDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Order** | Pointer to [**POSTAdyenPayments201ResponseDataRelationshipsOrder**](POSTAdyenPayments201ResponseDataRelationshipsOrder.md) | | [optional] +**Versions** | Pointer to [**POSTAddresses201ResponseDataRelationshipsVersions**](POSTAddresses201ResponseDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewPOSTWireTransfers201ResponseDataRelationships + +`func NewPOSTWireTransfers201ResponseDataRelationships() *POSTWireTransfers201ResponseDataRelationships` + +NewPOSTWireTransfers201ResponseDataRelationships instantiates a new POSTWireTransfers201ResponseDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPOSTWireTransfers201ResponseDataRelationshipsWithDefaults + +`func NewPOSTWireTransfers201ResponseDataRelationshipsWithDefaults() *POSTWireTransfers201ResponseDataRelationships` + +NewPOSTWireTransfers201ResponseDataRelationshipsWithDefaults instantiates a new POSTWireTransfers201ResponseDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrder + +`func (o *POSTWireTransfers201ResponseDataRelationships) GetOrder() POSTAdyenPayments201ResponseDataRelationshipsOrder` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *POSTWireTransfers201ResponseDataRelationships) GetOrderOk() (*POSTAdyenPayments201ResponseDataRelationshipsOrder, bool)` + +GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrder + +`func (o *POSTWireTransfers201ResponseDataRelationships) SetOrder(v POSTAdyenPayments201ResponseDataRelationshipsOrder)` + +SetOrder sets Order field to given value. + +### HasOrder + +`func (o *POSTWireTransfers201ResponseDataRelationships) HasOrder() bool` + +HasOrder returns a boolean if a field has been set. + +### GetVersions + +`func (o *POSTWireTransfers201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *POSTWireTransfers201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *POSTWireTransfers201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *POSTWireTransfers201ResponseDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PackageDataRelationships.md b/api/docs/PackageDataRelationships.md index 47a21b28..b55079a9 100644 --- a/api/docs/PackageDataRelationships.md +++ b/api/docs/PackageDataRelationships.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StockLocation** | Pointer to [**DeliveryLeadTimeDataRelationshipsStockLocation**](DeliveryLeadTimeDataRelationshipsStockLocation.md) | | [optional] **Parcels** | Pointer to [**PackageDataRelationshipsParcels**](PackageDataRelationshipsParcels.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -79,20 +80,20 @@ HasParcels returns a boolean if a field has been set. ### GetAttachments -`func (o *PackageDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *PackageDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *PackageDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *PackageDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *PackageDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *PackageDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -102,6 +103,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *PackageDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *PackageDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *PackageDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *PackageDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/ParcelCreateDataRelationshipsShipment.md b/api/docs/ParcelCreateDataRelationshipsShipment.md index 7b206140..68d127d4 100644 --- a/api/docs/ParcelCreateDataRelationshipsShipment.md +++ b/api/docs/ParcelCreateDataRelationshipsShipment.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | [**OrderDataRelationshipsShipmentsData**](OrderDataRelationshipsShipmentsData.md) | | +**Data** | [**LineItemDataRelationshipsShipmentData**](LineItemDataRelationshipsShipmentData.md) | | ## Methods ### NewParcelCreateDataRelationshipsShipment -`func NewParcelCreateDataRelationshipsShipment(data OrderDataRelationshipsShipmentsData, ) *ParcelCreateDataRelationshipsShipment` +`func NewParcelCreateDataRelationshipsShipment(data LineItemDataRelationshipsShipmentData, ) *ParcelCreateDataRelationshipsShipment` NewParcelCreateDataRelationshipsShipment instantiates a new ParcelCreateDataRelationshipsShipment object This constructor will assign default values to properties that have it defined, @@ -27,20 +27,20 @@ but it doesn't guarantee that properties required by API are set ### GetData -`func (o *ParcelCreateDataRelationshipsShipment) GetData() OrderDataRelationshipsShipmentsData` +`func (o *ParcelCreateDataRelationshipsShipment) GetData() LineItemDataRelationshipsShipmentData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *ParcelCreateDataRelationshipsShipment) GetDataOk() (*OrderDataRelationshipsShipmentsData, bool)` +`func (o *ParcelCreateDataRelationshipsShipment) GetDataOk() (*LineItemDataRelationshipsShipmentData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *ParcelCreateDataRelationshipsShipment) SetData(v OrderDataRelationshipsShipmentsData)` +`func (o *ParcelCreateDataRelationshipsShipment) SetData(v LineItemDataRelationshipsShipmentData)` SetData sets Data field to given value. diff --git a/api/docs/ParcelDataRelationships.md b/api/docs/ParcelDataRelationships.md index 77a188a2..b5cd18d4 100644 --- a/api/docs/ParcelDataRelationships.md +++ b/api/docs/ParcelDataRelationships.md @@ -4,11 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Shipment** | Pointer to [**OrderDataRelationshipsShipments**](OrderDataRelationshipsShipments.md) | | [optional] +**Shipment** | Pointer to [**LineItemDataRelationshipsShipment**](LineItemDataRelationshipsShipment.md) | | [optional] **Package** | Pointer to [**ParcelDataRelationshipsPackage**](ParcelDataRelationshipsPackage.md) | | [optional] **ParcelLineItems** | Pointer to [**ParcelDataRelationshipsParcelLineItems**](ParcelDataRelationshipsParcelLineItems.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -31,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetShipment -`func (o *ParcelDataRelationships) GetShipment() OrderDataRelationshipsShipments` +`func (o *ParcelDataRelationships) GetShipment() LineItemDataRelationshipsShipment` GetShipment returns the Shipment field if non-nil, zero value otherwise. ### GetShipmentOk -`func (o *ParcelDataRelationships) GetShipmentOk() (*OrderDataRelationshipsShipments, bool)` +`func (o *ParcelDataRelationships) GetShipmentOk() (*LineItemDataRelationshipsShipment, bool)` GetShipmentOk returns a tuple with the Shipment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetShipment -`func (o *ParcelDataRelationships) SetShipment(v OrderDataRelationshipsShipments)` +`func (o *ParcelDataRelationships) SetShipment(v LineItemDataRelationshipsShipment)` SetShipment sets Shipment field to given value. @@ -106,20 +107,20 @@ HasParcelLineItems returns a boolean if a field has been set. ### GetAttachments -`func (o *ParcelDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *ParcelDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *ParcelDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *ParcelDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *ParcelDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *ParcelDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -131,20 +132,20 @@ HasAttachments returns a boolean if a field has been set. ### GetEvents -`func (o *ParcelDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` +`func (o *ParcelDataRelationships) GetEvents() AddressDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *ParcelDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` +`func (o *ParcelDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *ParcelDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` +`func (o *ParcelDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -154,6 +155,31 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetVersions + +`func (o *ParcelDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *ParcelDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *ParcelDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *ParcelDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/ParcelLineItemCreateDataRelationships.md b/api/docs/ParcelLineItemCreateDataRelationships.md index b30783cb..4375d7bb 100644 --- a/api/docs/ParcelLineItemCreateDataRelationships.md +++ b/api/docs/ParcelLineItemCreateDataRelationships.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Parcel** | [**ParcelLineItemCreateDataRelationshipsParcel**](ParcelLineItemCreateDataRelationshipsParcel.md) | | **StockLineItem** | [**ParcelLineItemCreateDataRelationshipsStockLineItem**](ParcelLineItemCreateDataRelationshipsStockLineItem.md) | | -**ShipmentLineItem** | Pointer to [**ParcelLineItemCreateDataRelationshipsShipmentLineItem**](ParcelLineItemCreateDataRelationshipsShipmentLineItem.md) | | [optional] ## Methods @@ -67,31 +66,6 @@ and a boolean to check if the value has been set. SetStockLineItem sets StockLineItem field to given value. -### GetShipmentLineItem - -`func (o *ParcelLineItemCreateDataRelationships) GetShipmentLineItem() ParcelLineItemCreateDataRelationshipsShipmentLineItem` - -GetShipmentLineItem returns the ShipmentLineItem field if non-nil, zero value otherwise. - -### GetShipmentLineItemOk - -`func (o *ParcelLineItemCreateDataRelationships) GetShipmentLineItemOk() (*ParcelLineItemCreateDataRelationshipsShipmentLineItem, bool)` - -GetShipmentLineItemOk returns a tuple with the ShipmentLineItem field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetShipmentLineItem - -`func (o *ParcelLineItemCreateDataRelationships) SetShipmentLineItem(v ParcelLineItemCreateDataRelationshipsShipmentLineItem)` - -SetShipmentLineItem sets ShipmentLineItem field to given value. - -### HasShipmentLineItem - -`func (o *ParcelLineItemCreateDataRelationships) HasShipmentLineItem() bool` - -HasShipmentLineItem returns a boolean if a field has been set. - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/ParcelLineItemCreateDataRelationshipsShipmentLineItem.md b/api/docs/ParcelLineItemCreateDataRelationshipsShipmentLineItem.md deleted file mode 100644 index 53a476f3..00000000 --- a/api/docs/ParcelLineItemCreateDataRelationshipsShipmentLineItem.md +++ /dev/null @@ -1,51 +0,0 @@ -# ParcelLineItemCreateDataRelationshipsShipmentLineItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**LineItemDataRelationshipsShipmentLineItemsData**](LineItemDataRelationshipsShipmentLineItemsData.md) | | - -## Methods - -### NewParcelLineItemCreateDataRelationshipsShipmentLineItem - -`func NewParcelLineItemCreateDataRelationshipsShipmentLineItem(data LineItemDataRelationshipsShipmentLineItemsData, ) *ParcelLineItemCreateDataRelationshipsShipmentLineItem` - -NewParcelLineItemCreateDataRelationshipsShipmentLineItem instantiates a new ParcelLineItemCreateDataRelationshipsShipmentLineItem object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewParcelLineItemCreateDataRelationshipsShipmentLineItemWithDefaults - -`func NewParcelLineItemCreateDataRelationshipsShipmentLineItemWithDefaults() *ParcelLineItemCreateDataRelationshipsShipmentLineItem` - -NewParcelLineItemCreateDataRelationshipsShipmentLineItemWithDefaults instantiates a new ParcelLineItemCreateDataRelationshipsShipmentLineItem object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *ParcelLineItemCreateDataRelationshipsShipmentLineItem) GetData() LineItemDataRelationshipsShipmentLineItemsData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ParcelLineItemCreateDataRelationshipsShipmentLineItem) GetDataOk() (*LineItemDataRelationshipsShipmentLineItemsData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ParcelLineItemCreateDataRelationshipsShipmentLineItem) SetData(v LineItemDataRelationshipsShipmentLineItemsData)` - -SetData sets Data field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/ParcelLineItemDataRelationships.md b/api/docs/ParcelLineItemDataRelationships.md index 842075c5..17f5904b 100644 --- a/api/docs/ParcelLineItemDataRelationships.md +++ b/api/docs/ParcelLineItemDataRelationships.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Parcel** | Pointer to [**PackageDataRelationshipsParcels**](PackageDataRelationshipsParcels.md) | | [optional] **StockLineItem** | Pointer to [**LineItemDataRelationshipsStockLineItems**](LineItemDataRelationshipsStockLineItems.md) | | [optional] -**ShipmentLineItem** | Pointer to [**LineItemDataRelationshipsShipmentLineItems**](LineItemDataRelationshipsShipmentLineItems.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -77,30 +77,30 @@ SetStockLineItem sets StockLineItem field to given value. HasStockLineItem returns a boolean if a field has been set. -### GetShipmentLineItem +### GetVersions -`func (o *ParcelLineItemDataRelationships) GetShipmentLineItem() LineItemDataRelationshipsShipmentLineItems` +`func (o *ParcelLineItemDataRelationships) GetVersions() AddressDataRelationshipsVersions` -GetShipmentLineItem returns the ShipmentLineItem field if non-nil, zero value otherwise. +GetVersions returns the Versions field if non-nil, zero value otherwise. -### GetShipmentLineItemOk +### GetVersionsOk -`func (o *ParcelLineItemDataRelationships) GetShipmentLineItemOk() (*LineItemDataRelationshipsShipmentLineItems, bool)` +`func (o *ParcelLineItemDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` -GetShipmentLineItemOk returns a tuple with the ShipmentLineItem field if it's non-nil, zero value otherwise +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetShipmentLineItem +### SetVersions -`func (o *ParcelLineItemDataRelationships) SetShipmentLineItem(v LineItemDataRelationshipsShipmentLineItems)` +`func (o *ParcelLineItemDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` -SetShipmentLineItem sets ShipmentLineItem field to given value. +SetVersions sets Versions field to given value. -### HasShipmentLineItem +### HasVersions -`func (o *ParcelLineItemDataRelationships) HasShipmentLineItem() bool` +`func (o *ParcelLineItemDataRelationships) HasVersions() bool` -HasShipmentLineItem returns a boolean if a field has been set. +HasVersions returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/PaymentMethodDataRelationships.md b/api/docs/PaymentMethodDataRelationships.md index 572a51c5..f43b04ff 100644 --- a/api/docs/PaymentMethodDataRelationships.md +++ b/api/docs/PaymentMethodDataRelationships.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Market** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] **PaymentGateway** | Pointer to [**AdyenPaymentDataRelationshipsPaymentGateway**](AdyenPaymentDataRelationshipsPaymentGateway.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -79,20 +80,20 @@ HasPaymentGateway returns a boolean if a field has been set. ### GetAttachments -`func (o *PaymentMethodDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *PaymentMethodDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *PaymentMethodDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *PaymentMethodDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *PaymentMethodDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *PaymentMethodDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -102,6 +103,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *PaymentMethodDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *PaymentMethodDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *PaymentMethodDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *PaymentMethodDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/PaymentMethodsApi.md b/api/docs/PaymentMethodsApi.md index 28fdfb2d..5aa6471e 100644 --- a/api/docs/PaymentMethodsApi.md +++ b/api/docs/PaymentMethodsApi.md @@ -9,6 +9,7 @@ Method | HTTP request | Description [**GETAxerveGatewayIdPaymentMethods**](PaymentMethodsApi.md#GETAxerveGatewayIdPaymentMethods) | **Get** /axerve_gateways/{axerveGatewayId}/payment_methods | Retrieve the payment methods associated to the axerve gateway [**GETBraintreeGatewayIdPaymentMethods**](PaymentMethodsApi.md#GETBraintreeGatewayIdPaymentMethods) | **Get** /braintree_gateways/{braintreeGatewayId}/payment_methods | Retrieve the payment methods associated to the braintree gateway [**GETCheckoutComGatewayIdPaymentMethods**](PaymentMethodsApi.md#GETCheckoutComGatewayIdPaymentMethods) | **Get** /checkout_com_gateways/{checkoutComGatewayId}/payment_methods | Retrieve the payment methods associated to the checkout.com gateway +[**GETCustomerPaymentSourceIdPaymentMethod**](PaymentMethodsApi.md#GETCustomerPaymentSourceIdPaymentMethod) | **Get** /customer_payment_sources/{customerPaymentSourceId}/payment_method | Retrieve the payment method associated to the customer payment source [**GETExternalGatewayIdPaymentMethods**](PaymentMethodsApi.md#GETExternalGatewayIdPaymentMethods) | **Get** /external_gateways/{externalGatewayId}/payment_methods | Retrieve the payment methods associated to the external gateway [**GETKlarnaGatewayIdPaymentMethods**](PaymentMethodsApi.md#GETKlarnaGatewayIdPaymentMethods) | **Get** /klarna_gateways/{klarnaGatewayId}/payment_methods | Retrieve the payment methods associated to the klarna gateway [**GETManualGatewayIdPaymentMethods**](PaymentMethodsApi.md#GETManualGatewayIdPaymentMethods) | **Get** /manual_gateways/{manualGatewayId}/payment_methods | Retrieve the payment methods associated to the manual gateway @@ -365,6 +366,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETCustomerPaymentSourceIdPaymentMethod + +> GETCustomerPaymentSourceIdPaymentMethod(ctx, customerPaymentSourceId).Execute() + +Retrieve the payment method associated to the customer payment source + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerPaymentSourceId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PaymentMethodsApi.GETCustomerPaymentSourceIdPaymentMethod(context.Background(), customerPaymentSourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PaymentMethodsApi.GETCustomerPaymentSourceIdPaymentMethod``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerPaymentSourceId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerPaymentSourceIdPaymentMethodRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETExternalGatewayIdPaymentMethods > GETExternalGatewayIdPaymentMethods(ctx, externalGatewayId).Execute() @@ -1201,7 +1270,7 @@ import ( ) func main() { - paymentMethodCreate := *openapiclient.NewPaymentMethodCreate(*openapiclient.NewPaymentMethodCreateData(interface{}(123), *openapiclient.NewPOSTPaymentMethods201ResponseDataAttributes(interface{}(StripePayment), interface{}(0)))) // PaymentMethodCreate | + paymentMethodCreate := *openapiclient.NewPaymentMethodCreate(*openapiclient.NewPaymentMethodCreateData(interface{}(123), *openapiclient.NewPOSTPaymentMethods201ResponseDataAttributes(interface{}(stripe_payments), interface{}(0)))) // PaymentMethodCreate | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/api/docs/PaymentOption.md b/api/docs/PaymentOption.md new file mode 100644 index 00000000..30c45a23 --- /dev/null +++ b/api/docs/PaymentOption.md @@ -0,0 +1,56 @@ +# PaymentOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**PaymentOptionData**](PaymentOptionData.md) | | [optional] + +## Methods + +### NewPaymentOption + +`func NewPaymentOption() *PaymentOption` + +NewPaymentOption instantiates a new PaymentOption object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaymentOptionWithDefaults + +`func NewPaymentOptionWithDefaults() *PaymentOption` + +NewPaymentOptionWithDefaults instantiates a new PaymentOption object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PaymentOption) GetData() PaymentOptionData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PaymentOption) GetDataOk() (*PaymentOptionData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PaymentOption) SetData(v PaymentOptionData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PaymentOption) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PaymentOptionCreate.md b/api/docs/PaymentOptionCreate.md new file mode 100644 index 00000000..aba144cc --- /dev/null +++ b/api/docs/PaymentOptionCreate.md @@ -0,0 +1,51 @@ +# PaymentOptionCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PaymentOptionCreateData**](PaymentOptionCreateData.md) | | + +## Methods + +### NewPaymentOptionCreate + +`func NewPaymentOptionCreate(data PaymentOptionCreateData, ) *PaymentOptionCreate` + +NewPaymentOptionCreate instantiates a new PaymentOptionCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaymentOptionCreateWithDefaults + +`func NewPaymentOptionCreateWithDefaults() *PaymentOptionCreate` + +NewPaymentOptionCreateWithDefaults instantiates a new PaymentOptionCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PaymentOptionCreate) GetData() PaymentOptionCreateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PaymentOptionCreate) GetDataOk() (*PaymentOptionCreateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PaymentOptionCreate) SetData(v PaymentOptionCreateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PaymentOptionCreateData.md b/api/docs/PaymentOptionCreateData.md new file mode 100644 index 00000000..40475a7f --- /dev/null +++ b/api/docs/PaymentOptionCreateData.md @@ -0,0 +1,108 @@ +# PaymentOptionCreateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**POSTPaymentOptions201ResponseDataAttributes**](POSTPaymentOptions201ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**AdyenPaymentCreateDataRelationships**](AdyenPaymentCreateDataRelationships.md) | | [optional] + +## Methods + +### NewPaymentOptionCreateData + +`func NewPaymentOptionCreateData(type_ interface{}, attributes POSTPaymentOptions201ResponseDataAttributes, ) *PaymentOptionCreateData` + +NewPaymentOptionCreateData instantiates a new PaymentOptionCreateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaymentOptionCreateDataWithDefaults + +`func NewPaymentOptionCreateDataWithDefaults() *PaymentOptionCreateData` + +NewPaymentOptionCreateDataWithDefaults instantiates a new PaymentOptionCreateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *PaymentOptionCreateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PaymentOptionCreateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PaymentOptionCreateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *PaymentOptionCreateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PaymentOptionCreateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *PaymentOptionCreateData) GetAttributes() POSTPaymentOptions201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PaymentOptionCreateData) GetAttributesOk() (*POSTPaymentOptions201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PaymentOptionCreateData) SetAttributes(v POSTPaymentOptions201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *PaymentOptionCreateData) GetRelationships() AdyenPaymentCreateDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PaymentOptionCreateData) GetRelationshipsOk() (*AdyenPaymentCreateDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PaymentOptionCreateData) SetRelationships(v AdyenPaymentCreateDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PaymentOptionCreateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PaymentOptionData.md b/api/docs/PaymentOptionData.md new file mode 100644 index 00000000..adeddd05 --- /dev/null +++ b/api/docs/PaymentOptionData.md @@ -0,0 +1,108 @@ +# PaymentOptionData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**GETPaymentOptionsPaymentOptionId200ResponseDataAttributes**](GETPaymentOptionsPaymentOptionId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**PaymentOptionDataRelationships**](PaymentOptionDataRelationships.md) | | [optional] + +## Methods + +### NewPaymentOptionData + +`func NewPaymentOptionData(type_ interface{}, attributes GETPaymentOptionsPaymentOptionId200ResponseDataAttributes, ) *PaymentOptionData` + +NewPaymentOptionData instantiates a new PaymentOptionData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaymentOptionDataWithDefaults + +`func NewPaymentOptionDataWithDefaults() *PaymentOptionData` + +NewPaymentOptionDataWithDefaults instantiates a new PaymentOptionData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *PaymentOptionData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PaymentOptionData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PaymentOptionData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *PaymentOptionData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PaymentOptionData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *PaymentOptionData) GetAttributes() GETPaymentOptionsPaymentOptionId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PaymentOptionData) GetAttributesOk() (*GETPaymentOptionsPaymentOptionId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PaymentOptionData) SetAttributes(v GETPaymentOptionsPaymentOptionId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *PaymentOptionData) GetRelationships() PaymentOptionDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PaymentOptionData) GetRelationshipsOk() (*PaymentOptionDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PaymentOptionData) SetRelationships(v PaymentOptionDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PaymentOptionData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PaymentOptionDataRelationships.md b/api/docs/PaymentOptionDataRelationships.md new file mode 100644 index 00000000..627a4c04 --- /dev/null +++ b/api/docs/PaymentOptionDataRelationships.md @@ -0,0 +1,82 @@ +# PaymentOptionDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Order** | Pointer to [**AdyenPaymentDataRelationshipsOrder**](AdyenPaymentDataRelationshipsOrder.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] + +## Methods + +### NewPaymentOptionDataRelationships + +`func NewPaymentOptionDataRelationships() *PaymentOptionDataRelationships` + +NewPaymentOptionDataRelationships instantiates a new PaymentOptionDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaymentOptionDataRelationshipsWithDefaults + +`func NewPaymentOptionDataRelationshipsWithDefaults() *PaymentOptionDataRelationships` + +NewPaymentOptionDataRelationshipsWithDefaults instantiates a new PaymentOptionDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrder + +`func (o *PaymentOptionDataRelationships) GetOrder() AdyenPaymentDataRelationshipsOrder` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *PaymentOptionDataRelationships) GetOrderOk() (*AdyenPaymentDataRelationshipsOrder, bool)` + +GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrder + +`func (o *PaymentOptionDataRelationships) SetOrder(v AdyenPaymentDataRelationshipsOrder)` + +SetOrder sets Order field to given value. + +### HasOrder + +`func (o *PaymentOptionDataRelationships) HasOrder() bool` + +HasOrder returns a boolean if a field has been set. + +### GetAttachments + +`func (o *PaymentOptionDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *PaymentOptionDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *PaymentOptionDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *PaymentOptionDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PaymentOptionUpdate.md b/api/docs/PaymentOptionUpdate.md new file mode 100644 index 00000000..fca32c3b --- /dev/null +++ b/api/docs/PaymentOptionUpdate.md @@ -0,0 +1,51 @@ +# PaymentOptionUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PaymentOptionUpdateData**](PaymentOptionUpdateData.md) | | + +## Methods + +### NewPaymentOptionUpdate + +`func NewPaymentOptionUpdate(data PaymentOptionUpdateData, ) *PaymentOptionUpdate` + +NewPaymentOptionUpdate instantiates a new PaymentOptionUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaymentOptionUpdateWithDefaults + +`func NewPaymentOptionUpdateWithDefaults() *PaymentOptionUpdate` + +NewPaymentOptionUpdateWithDefaults instantiates a new PaymentOptionUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PaymentOptionUpdate) GetData() PaymentOptionUpdateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PaymentOptionUpdate) GetDataOk() (*PaymentOptionUpdateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PaymentOptionUpdate) SetData(v PaymentOptionUpdateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PaymentOptionUpdateData.md b/api/docs/PaymentOptionUpdateData.md new file mode 100644 index 00000000..5e73c590 --- /dev/null +++ b/api/docs/PaymentOptionUpdateData.md @@ -0,0 +1,139 @@ +# PaymentOptionUpdateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Id** | **interface{}** | The resource's id | +**Attributes** | [**PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes**](PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**AdyenPaymentUpdateDataRelationships**](AdyenPaymentUpdateDataRelationships.md) | | [optional] + +## Methods + +### NewPaymentOptionUpdateData + +`func NewPaymentOptionUpdateData(type_ interface{}, id interface{}, attributes PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes, ) *PaymentOptionUpdateData` + +NewPaymentOptionUpdateData instantiates a new PaymentOptionUpdateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaymentOptionUpdateDataWithDefaults + +`func NewPaymentOptionUpdateDataWithDefaults() *PaymentOptionUpdateData` + +NewPaymentOptionUpdateDataWithDefaults instantiates a new PaymentOptionUpdateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *PaymentOptionUpdateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PaymentOptionUpdateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PaymentOptionUpdateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *PaymentOptionUpdateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PaymentOptionUpdateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *PaymentOptionUpdateData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PaymentOptionUpdateData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PaymentOptionUpdateData) SetId(v interface{})` + +SetId sets Id field to given value. + + +### SetIdNil + +`func (o *PaymentOptionUpdateData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *PaymentOptionUpdateData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetAttributes + +`func (o *PaymentOptionUpdateData) GetAttributes() PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PaymentOptionUpdateData) GetAttributesOk() (*PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PaymentOptionUpdateData) SetAttributes(v PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *PaymentOptionUpdateData) GetRelationships() AdyenPaymentUpdateDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PaymentOptionUpdateData) GetRelationshipsOk() (*AdyenPaymentUpdateDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PaymentOptionUpdateData) SetRelationships(v AdyenPaymentUpdateDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PaymentOptionUpdateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PaymentOptionsApi.md b/api/docs/PaymentOptionsApi.md new file mode 100644 index 00000000..6987a600 --- /dev/null +++ b/api/docs/PaymentOptionsApi.md @@ -0,0 +1,419 @@ +# \PaymentOptionsApi + +All URIs are relative to *https://.commercelayer.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DELETEPaymentOptionsPaymentOptionId**](PaymentOptionsApi.md#DELETEPaymentOptionsPaymentOptionId) | **Delete** /payment_options/{paymentOptionId} | Delete a payment option +[**GETOrderIdPaymentOptions**](PaymentOptionsApi.md#GETOrderIdPaymentOptions) | **Get** /orders/{orderId}/payment_options | Retrieve the payment options associated to the order +[**GETPaymentOptions**](PaymentOptionsApi.md#GETPaymentOptions) | **Get** /payment_options | List all payment options +[**GETPaymentOptionsPaymentOptionId**](PaymentOptionsApi.md#GETPaymentOptionsPaymentOptionId) | **Get** /payment_options/{paymentOptionId} | Retrieve a payment option +[**PATCHPaymentOptionsPaymentOptionId**](PaymentOptionsApi.md#PATCHPaymentOptionsPaymentOptionId) | **Patch** /payment_options/{paymentOptionId} | Update a payment option +[**POSTPaymentOptions**](PaymentOptionsApi.md#POSTPaymentOptions) | **Post** /payment_options | Create a payment option + + + +## DELETEPaymentOptionsPaymentOptionId + +> DELETEPaymentOptionsPaymentOptionId(ctx, paymentOptionId).Execute() + +Delete a payment option + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + paymentOptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PaymentOptionsApi.DELETEPaymentOptionsPaymentOptionId(context.Background(), paymentOptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PaymentOptionsApi.DELETEPaymentOptionsPaymentOptionId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**paymentOptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDELETEPaymentOptionsPaymentOptionIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdPaymentOptions + +> GETOrderIdPaymentOptions(ctx, orderId).Execute() + +Retrieve the payment options associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PaymentOptionsApi.GETOrderIdPaymentOptions(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PaymentOptionsApi.GETOrderIdPaymentOptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdPaymentOptionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPaymentOptions + +> GETPaymentOptions200Response GETPaymentOptions(ctx).Execute() + +List all payment options + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PaymentOptionsApi.GETPaymentOptions(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PaymentOptionsApi.GETPaymentOptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETPaymentOptions`: GETPaymentOptions200Response + fmt.Fprintf(os.Stdout, "Response from `PaymentOptionsApi.GETPaymentOptions`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPaymentOptionsRequest struct via the builder pattern + + +### Return type + +[**GETPaymentOptions200Response**](GETPaymentOptions200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPaymentOptionsPaymentOptionId + +> GETPaymentOptionsPaymentOptionId200Response GETPaymentOptionsPaymentOptionId(ctx, paymentOptionId).Execute() + +Retrieve a payment option + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + paymentOptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PaymentOptionsApi.GETPaymentOptionsPaymentOptionId(context.Background(), paymentOptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PaymentOptionsApi.GETPaymentOptionsPaymentOptionId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETPaymentOptionsPaymentOptionId`: GETPaymentOptionsPaymentOptionId200Response + fmt.Fprintf(os.Stdout, "Response from `PaymentOptionsApi.GETPaymentOptionsPaymentOptionId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**paymentOptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPaymentOptionsPaymentOptionIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**GETPaymentOptionsPaymentOptionId200Response**](GETPaymentOptionsPaymentOptionId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PATCHPaymentOptionsPaymentOptionId + +> PATCHPaymentOptionsPaymentOptionId200Response PATCHPaymentOptionsPaymentOptionId(ctx, paymentOptionId).PaymentOptionUpdate(paymentOptionUpdate).Execute() + +Update a payment option + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + paymentOptionUpdate := *openapiclient.NewPaymentOptionUpdate(*openapiclient.NewPaymentOptionUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes())) // PaymentOptionUpdate | + paymentOptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PaymentOptionsApi.PATCHPaymentOptionsPaymentOptionId(context.Background(), paymentOptionId).PaymentOptionUpdate(paymentOptionUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PaymentOptionsApi.PATCHPaymentOptionsPaymentOptionId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PATCHPaymentOptionsPaymentOptionId`: PATCHPaymentOptionsPaymentOptionId200Response + fmt.Fprintf(os.Stdout, "Response from `PaymentOptionsApi.PATCHPaymentOptionsPaymentOptionId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**paymentOptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPATCHPaymentOptionsPaymentOptionIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **paymentOptionUpdate** | [**PaymentOptionUpdate**](PaymentOptionUpdate.md) | | + + +### Return type + +[**PATCHPaymentOptionsPaymentOptionId200Response**](PATCHPaymentOptionsPaymentOptionId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## POSTPaymentOptions + +> POSTPaymentOptions201Response POSTPaymentOptions(ctx).PaymentOptionCreate(paymentOptionCreate).Execute() + +Create a payment option + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + paymentOptionCreate := *openapiclient.NewPaymentOptionCreate(*openapiclient.NewPaymentOptionCreateData(interface{}(123), *openapiclient.NewPOSTPaymentOptions201ResponseDataAttributes(interface{}(stripe_payments), interface{}({application_fee_amount=1000, on_behalf_of=pm_xxx})))) // PaymentOptionCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PaymentOptionsApi.POSTPaymentOptions(context.Background()).PaymentOptionCreate(paymentOptionCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PaymentOptionsApi.POSTPaymentOptions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `POSTPaymentOptions`: POSTPaymentOptions201Response + fmt.Fprintf(os.Stdout, "Response from `PaymentOptionsApi.POSTPaymentOptions`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPOSTPaymentOptionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **paymentOptionCreate** | [**PaymentOptionCreate**](PaymentOptionCreate.md) | | + +### Return type + +[**POSTPaymentOptions201Response**](POSTPaymentOptions201Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/api/docs/PaypalGatewayDataRelationships.md b/api/docs/PaypalGatewayDataRelationships.md index cb47a689..60f1ded8 100644 --- a/api/docs/PaypalGatewayDataRelationships.md +++ b/api/docs/PaypalGatewayDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**AdyenGatewayDataRelationshipsPaymentMethods**](AdyenGatewayDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] **PaypalPayments** | Pointer to [**PaypalGatewayDataRelationshipsPaypalPayments**](PaypalGatewayDataRelationshipsPaypalPayments.md) | | [optional] ## Methods @@ -51,6 +52,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *PaypalGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *PaypalGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *PaypalGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *PaypalGatewayDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetPaypalPayments `func (o *PaypalGatewayDataRelationships) GetPaypalPayments() PaypalGatewayDataRelationshipsPaypalPayments` diff --git a/api/docs/PercentageDiscountPromotionCreateData.md b/api/docs/PercentageDiscountPromotionCreateData.md index 75fab34f..1149fc8f 100644 --- a/api/docs/PercentageDiscountPromotionCreateData.md +++ b/api/docs/PercentageDiscountPromotionCreateData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**POSTPercentageDiscountPromotions201ResponseDataAttributes**](POSTPercentageDiscountPromotions201ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**FixedPricePromotionUpdateDataRelationships**](FixedPricePromotionUpdateDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**BuyXPayYPromotionUpdateDataRelationships**](BuyXPayYPromotionUpdateDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *PercentageDiscountPromotionCreateData) GetRelationships() FixedPricePromotionUpdateDataRelationships` +`func (o *PercentageDiscountPromotionCreateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *PercentageDiscountPromotionCreateData) GetRelationshipsOk() (*FixedPricePromotionUpdateDataRelationships, bool)` +`func (o *PercentageDiscountPromotionCreateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *PercentageDiscountPromotionCreateData) SetRelationships(v FixedPricePromotionUpdateDataRelationships)` +`func (o *PercentageDiscountPromotionCreateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/PercentageDiscountPromotionData.md b/api/docs/PercentageDiscountPromotionData.md index a37d4b77..60803d8f 100644 --- a/api/docs/PercentageDiscountPromotionData.md +++ b/api/docs/PercentageDiscountPromotionData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes**](GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**FixedPricePromotionDataRelationships**](FixedPricePromotionDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**BuyXPayYPromotionDataRelationships**](BuyXPayYPromotionDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *PercentageDiscountPromotionData) GetRelationships() FixedPricePromotionDataRelationships` +`func (o *PercentageDiscountPromotionData) GetRelationships() BuyXPayYPromotionDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *PercentageDiscountPromotionData) GetRelationshipsOk() (*FixedPricePromotionDataRelationships, bool)` +`func (o *PercentageDiscountPromotionData) GetRelationshipsOk() (*BuyXPayYPromotionDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *PercentageDiscountPromotionData) SetRelationships(v FixedPricePromotionDataRelationships)` +`func (o *PercentageDiscountPromotionData) SetRelationships(v BuyXPayYPromotionDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/PercentageDiscountPromotionUpdateData.md b/api/docs/PercentageDiscountPromotionUpdateData.md index 78655ee0..d4867cd6 100644 --- a/api/docs/PercentageDiscountPromotionUpdateData.md +++ b/api/docs/PercentageDiscountPromotionUpdateData.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Type** | **interface{}** | The resource's type | **Id** | **interface{}** | The resource's id | **Attributes** | [**PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes**](PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**FixedPricePromotionUpdateDataRelationships**](FixedPricePromotionUpdateDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**BuyXPayYPromotionUpdateDataRelationships**](BuyXPayYPromotionUpdateDataRelationships.md) | | [optional] ## Methods @@ -110,20 +110,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *PercentageDiscountPromotionUpdateData) GetRelationships() FixedPricePromotionUpdateDataRelationships` +`func (o *PercentageDiscountPromotionUpdateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *PercentageDiscountPromotionUpdateData) GetRelationshipsOk() (*FixedPricePromotionUpdateDataRelationships, bool)` +`func (o *PercentageDiscountPromotionUpdateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *PercentageDiscountPromotionUpdateData) SetRelationships(v FixedPricePromotionUpdateDataRelationships)` +`func (o *PercentageDiscountPromotionUpdateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/PercentageDiscountPromotionsApi.md b/api/docs/PercentageDiscountPromotionsApi.md index d3e16089..ca177c61 100644 --- a/api/docs/PercentageDiscountPromotionsApi.md +++ b/api/docs/PercentageDiscountPromotionsApi.md @@ -304,7 +304,7 @@ import ( ) func main() { - percentageDiscountPromotionCreate := *openapiclient.NewPercentageDiscountPromotionCreate(*openapiclient.NewPercentageDiscountPromotionCreateData(interface{}(123), *openapiclient.NewPOSTPercentageDiscountPromotions201ResponseDataAttributes(interface{}(Personal promotion), interface{}(2018-01-01T12:00:00.000Z), interface{}(2018-01-02T12:00:00.000Z), interface{}(5), interface{}(10)))) // PercentageDiscountPromotionCreate | + percentageDiscountPromotionCreate := *openapiclient.NewPercentageDiscountPromotionCreate(*openapiclient.NewPercentageDiscountPromotionCreateData(interface{}(123), *openapiclient.NewPOSTPercentageDiscountPromotions201ResponseDataAttributes(interface{}(Personal promotion), interface{}(2018-01-01T12:00:00.000Z), interface{}(2018-01-02T12:00:00.000Z), interface{}(10)))) // PercentageDiscountPromotionCreate | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/api/docs/PriceDataRelationships.md b/api/docs/PriceDataRelationships.md index bcd40a03..9a7151d9 100644 --- a/api/docs/PriceDataRelationships.md +++ b/api/docs/PriceDataRelationships.md @@ -9,7 +9,11 @@ Name | Type | Description | Notes **PriceTiers** | Pointer to [**PriceDataRelationshipsPriceTiers**](PriceDataRelationshipsPriceTiers.md) | | [optional] **PriceVolumeTiers** | Pointer to [**PriceDataRelationshipsPriceVolumeTiers**](PriceDataRelationshipsPriceVolumeTiers.md) | | [optional] **PriceFrequencyTiers** | Pointer to [**PriceDataRelationshipsPriceFrequencyTiers**](PriceDataRelationshipsPriceFrequencyTiers.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] +**JwtCustomer** | Pointer to [**CouponRecipientDataRelationshipsCustomer**](CouponRecipientDataRelationshipsCustomer.md) | | [optional] +**JwtMarkets** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] +**JwtStockLocations** | Pointer to [**DeliveryLeadTimeDataRelationshipsStockLocation**](DeliveryLeadTimeDataRelationshipsStockLocation.md) | | [optional] ## Methods @@ -157,20 +161,20 @@ HasPriceFrequencyTiers returns a boolean if a field has been set. ### GetAttachments -`func (o *PriceDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *PriceDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *PriceDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *PriceDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *PriceDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *PriceDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -180,6 +184,106 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *PriceDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *PriceDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *PriceDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *PriceDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + +### GetJwtCustomer + +`func (o *PriceDataRelationships) GetJwtCustomer() CouponRecipientDataRelationshipsCustomer` + +GetJwtCustomer returns the JwtCustomer field if non-nil, zero value otherwise. + +### GetJwtCustomerOk + +`func (o *PriceDataRelationships) GetJwtCustomerOk() (*CouponRecipientDataRelationshipsCustomer, bool)` + +GetJwtCustomerOk returns a tuple with the JwtCustomer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtCustomer + +`func (o *PriceDataRelationships) SetJwtCustomer(v CouponRecipientDataRelationshipsCustomer)` + +SetJwtCustomer sets JwtCustomer field to given value. + +### HasJwtCustomer + +`func (o *PriceDataRelationships) HasJwtCustomer() bool` + +HasJwtCustomer returns a boolean if a field has been set. + +### GetJwtMarkets + +`func (o *PriceDataRelationships) GetJwtMarkets() AvalaraAccountDataRelationshipsMarkets` + +GetJwtMarkets returns the JwtMarkets field if non-nil, zero value otherwise. + +### GetJwtMarketsOk + +`func (o *PriceDataRelationships) GetJwtMarketsOk() (*AvalaraAccountDataRelationshipsMarkets, bool)` + +GetJwtMarketsOk returns a tuple with the JwtMarkets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtMarkets + +`func (o *PriceDataRelationships) SetJwtMarkets(v AvalaraAccountDataRelationshipsMarkets)` + +SetJwtMarkets sets JwtMarkets field to given value. + +### HasJwtMarkets + +`func (o *PriceDataRelationships) HasJwtMarkets() bool` + +HasJwtMarkets returns a boolean if a field has been set. + +### GetJwtStockLocations + +`func (o *PriceDataRelationships) GetJwtStockLocations() DeliveryLeadTimeDataRelationshipsStockLocation` + +GetJwtStockLocations returns the JwtStockLocations field if non-nil, zero value otherwise. + +### GetJwtStockLocationsOk + +`func (o *PriceDataRelationships) GetJwtStockLocationsOk() (*DeliveryLeadTimeDataRelationshipsStockLocation, bool)` + +GetJwtStockLocationsOk returns a tuple with the JwtStockLocations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtStockLocations + +`func (o *PriceDataRelationships) SetJwtStockLocations(v DeliveryLeadTimeDataRelationshipsStockLocation)` + +SetJwtStockLocations sets JwtStockLocations field to given value. + +### HasJwtStockLocations + +`func (o *PriceDataRelationships) HasJwtStockLocations() bool` + +HasJwtStockLocations returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/PriceFrequencyTierDataRelationships.md b/api/docs/PriceFrequencyTierDataRelationships.md index 4629d796..2eb554f7 100644 --- a/api/docs/PriceFrequencyTierDataRelationships.md +++ b/api/docs/PriceFrequencyTierDataRelationships.md @@ -5,8 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Price** | Pointer to [**PriceFrequencyTierDataRelationshipsPrice**](PriceFrequencyTierDataRelationshipsPrice.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] ## Methods @@ -54,20 +55,20 @@ HasPrice returns a boolean if a field has been set. ### GetAttachments -`func (o *PriceFrequencyTierDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *PriceFrequencyTierDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *PriceFrequencyTierDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *PriceFrequencyTierDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *PriceFrequencyTierDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *PriceFrequencyTierDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -77,22 +78,47 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *PriceFrequencyTierDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *PriceFrequencyTierDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *PriceFrequencyTierDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *PriceFrequencyTierDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetEvents -`func (o *PriceFrequencyTierDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` +`func (o *PriceFrequencyTierDataRelationships) GetEvents() AddressDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *PriceFrequencyTierDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` +`func (o *PriceFrequencyTierDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *PriceFrequencyTierDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` +`func (o *PriceFrequencyTierDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` SetEvents sets Events field to given value. diff --git a/api/docs/PriceListDataRelationships.md b/api/docs/PriceListDataRelationships.md index 99cc0a98..be08b025 100644 --- a/api/docs/PriceListDataRelationships.md +++ b/api/docs/PriceListDataRelationships.md @@ -5,7 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prices** | Pointer to [**PriceFrequencyTierDataRelationshipsPrice**](PriceFrequencyTierDataRelationshipsPrice.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**PriceListSchedulers** | Pointer to [**MarketDataRelationshipsPriceListSchedulers**](MarketDataRelationshipsPriceListSchedulers.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -51,22 +53,47 @@ SetPrices sets Prices field to given value. HasPrices returns a boolean if a field has been set. +### GetPriceListSchedulers + +`func (o *PriceListDataRelationships) GetPriceListSchedulers() MarketDataRelationshipsPriceListSchedulers` + +GetPriceListSchedulers returns the PriceListSchedulers field if non-nil, zero value otherwise. + +### GetPriceListSchedulersOk + +`func (o *PriceListDataRelationships) GetPriceListSchedulersOk() (*MarketDataRelationshipsPriceListSchedulers, bool)` + +GetPriceListSchedulersOk returns a tuple with the PriceListSchedulers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriceListSchedulers + +`func (o *PriceListDataRelationships) SetPriceListSchedulers(v MarketDataRelationshipsPriceListSchedulers)` + +SetPriceListSchedulers sets PriceListSchedulers field to given value. + +### HasPriceListSchedulers + +`func (o *PriceListDataRelationships) HasPriceListSchedulers() bool` + +HasPriceListSchedulers returns a boolean if a field has been set. + ### GetAttachments -`func (o *PriceListDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *PriceListDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *PriceListDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *PriceListDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *PriceListDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *PriceListDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -76,6 +103,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *PriceListDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *PriceListDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *PriceListDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *PriceListDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/PriceListScheduler.md b/api/docs/PriceListScheduler.md new file mode 100644 index 00000000..42a9f176 --- /dev/null +++ b/api/docs/PriceListScheduler.md @@ -0,0 +1,56 @@ +# PriceListScheduler + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**PriceListSchedulerData**](PriceListSchedulerData.md) | | [optional] + +## Methods + +### NewPriceListScheduler + +`func NewPriceListScheduler() *PriceListScheduler` + +NewPriceListScheduler instantiates a new PriceListScheduler object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPriceListSchedulerWithDefaults + +`func NewPriceListSchedulerWithDefaults() *PriceListScheduler` + +NewPriceListSchedulerWithDefaults instantiates a new PriceListScheduler object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PriceListScheduler) GetData() PriceListSchedulerData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PriceListScheduler) GetDataOk() (*PriceListSchedulerData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PriceListScheduler) SetData(v PriceListSchedulerData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *PriceListScheduler) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PriceListSchedulerCreate.md b/api/docs/PriceListSchedulerCreate.md new file mode 100644 index 00000000..763375ea --- /dev/null +++ b/api/docs/PriceListSchedulerCreate.md @@ -0,0 +1,51 @@ +# PriceListSchedulerCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PriceListSchedulerCreateData**](PriceListSchedulerCreateData.md) | | + +## Methods + +### NewPriceListSchedulerCreate + +`func NewPriceListSchedulerCreate(data PriceListSchedulerCreateData, ) *PriceListSchedulerCreate` + +NewPriceListSchedulerCreate instantiates a new PriceListSchedulerCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPriceListSchedulerCreateWithDefaults + +`func NewPriceListSchedulerCreateWithDefaults() *PriceListSchedulerCreate` + +NewPriceListSchedulerCreateWithDefaults instantiates a new PriceListSchedulerCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PriceListSchedulerCreate) GetData() PriceListSchedulerCreateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PriceListSchedulerCreate) GetDataOk() (*PriceListSchedulerCreateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PriceListSchedulerCreate) SetData(v PriceListSchedulerCreateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PriceListSchedulerCreateData.md b/api/docs/PriceListSchedulerCreateData.md new file mode 100644 index 00000000..10f67527 --- /dev/null +++ b/api/docs/PriceListSchedulerCreateData.md @@ -0,0 +1,108 @@ +# PriceListSchedulerCreateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**POSTPriceListSchedulers201ResponseDataAttributes**](POSTPriceListSchedulers201ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**PriceListSchedulerCreateDataRelationships**](PriceListSchedulerCreateDataRelationships.md) | | [optional] + +## Methods + +### NewPriceListSchedulerCreateData + +`func NewPriceListSchedulerCreateData(type_ interface{}, attributes POSTPriceListSchedulers201ResponseDataAttributes, ) *PriceListSchedulerCreateData` + +NewPriceListSchedulerCreateData instantiates a new PriceListSchedulerCreateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPriceListSchedulerCreateDataWithDefaults + +`func NewPriceListSchedulerCreateDataWithDefaults() *PriceListSchedulerCreateData` + +NewPriceListSchedulerCreateDataWithDefaults instantiates a new PriceListSchedulerCreateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *PriceListSchedulerCreateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PriceListSchedulerCreateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PriceListSchedulerCreateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *PriceListSchedulerCreateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PriceListSchedulerCreateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *PriceListSchedulerCreateData) GetAttributes() POSTPriceListSchedulers201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PriceListSchedulerCreateData) GetAttributesOk() (*POSTPriceListSchedulers201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PriceListSchedulerCreateData) SetAttributes(v POSTPriceListSchedulers201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *PriceListSchedulerCreateData) GetRelationships() PriceListSchedulerCreateDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PriceListSchedulerCreateData) GetRelationshipsOk() (*PriceListSchedulerCreateDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PriceListSchedulerCreateData) SetRelationships(v PriceListSchedulerCreateDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PriceListSchedulerCreateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PriceListSchedulerCreateDataRelationships.md b/api/docs/PriceListSchedulerCreateDataRelationships.md new file mode 100644 index 00000000..6e09b580 --- /dev/null +++ b/api/docs/PriceListSchedulerCreateDataRelationships.md @@ -0,0 +1,72 @@ +# PriceListSchedulerCreateDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Market** | [**BillingInfoValidationRuleCreateDataRelationshipsMarket**](BillingInfoValidationRuleCreateDataRelationshipsMarket.md) | | +**PriceList** | [**MarketCreateDataRelationshipsPriceList**](MarketCreateDataRelationshipsPriceList.md) | | + +## Methods + +### NewPriceListSchedulerCreateDataRelationships + +`func NewPriceListSchedulerCreateDataRelationships(market BillingInfoValidationRuleCreateDataRelationshipsMarket, priceList MarketCreateDataRelationshipsPriceList, ) *PriceListSchedulerCreateDataRelationships` + +NewPriceListSchedulerCreateDataRelationships instantiates a new PriceListSchedulerCreateDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPriceListSchedulerCreateDataRelationshipsWithDefaults + +`func NewPriceListSchedulerCreateDataRelationshipsWithDefaults() *PriceListSchedulerCreateDataRelationships` + +NewPriceListSchedulerCreateDataRelationshipsWithDefaults instantiates a new PriceListSchedulerCreateDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMarket + +`func (o *PriceListSchedulerCreateDataRelationships) GetMarket() BillingInfoValidationRuleCreateDataRelationshipsMarket` + +GetMarket returns the Market field if non-nil, zero value otherwise. + +### GetMarketOk + +`func (o *PriceListSchedulerCreateDataRelationships) GetMarketOk() (*BillingInfoValidationRuleCreateDataRelationshipsMarket, bool)` + +GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarket + +`func (o *PriceListSchedulerCreateDataRelationships) SetMarket(v BillingInfoValidationRuleCreateDataRelationshipsMarket)` + +SetMarket sets Market field to given value. + + +### GetPriceList + +`func (o *PriceListSchedulerCreateDataRelationships) GetPriceList() MarketCreateDataRelationshipsPriceList` + +GetPriceList returns the PriceList field if non-nil, zero value otherwise. + +### GetPriceListOk + +`func (o *PriceListSchedulerCreateDataRelationships) GetPriceListOk() (*MarketCreateDataRelationshipsPriceList, bool)` + +GetPriceListOk returns a tuple with the PriceList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriceList + +`func (o *PriceListSchedulerCreateDataRelationships) SetPriceList(v MarketCreateDataRelationshipsPriceList)` + +SetPriceList sets PriceList field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PriceListSchedulerData.md b/api/docs/PriceListSchedulerData.md new file mode 100644 index 00000000..a80072c2 --- /dev/null +++ b/api/docs/PriceListSchedulerData.md @@ -0,0 +1,108 @@ +# PriceListSchedulerData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes**](GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**PriceListSchedulerDataRelationships**](PriceListSchedulerDataRelationships.md) | | [optional] + +## Methods + +### NewPriceListSchedulerData + +`func NewPriceListSchedulerData(type_ interface{}, attributes GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes, ) *PriceListSchedulerData` + +NewPriceListSchedulerData instantiates a new PriceListSchedulerData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPriceListSchedulerDataWithDefaults + +`func NewPriceListSchedulerDataWithDefaults() *PriceListSchedulerData` + +NewPriceListSchedulerDataWithDefaults instantiates a new PriceListSchedulerData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *PriceListSchedulerData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PriceListSchedulerData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PriceListSchedulerData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *PriceListSchedulerData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PriceListSchedulerData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *PriceListSchedulerData) GetAttributes() GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PriceListSchedulerData) GetAttributesOk() (*GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PriceListSchedulerData) SetAttributes(v GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *PriceListSchedulerData) GetRelationships() PriceListSchedulerDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PriceListSchedulerData) GetRelationshipsOk() (*PriceListSchedulerDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PriceListSchedulerData) SetRelationships(v PriceListSchedulerDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PriceListSchedulerData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PriceListSchedulerDataRelationships.md b/api/docs/PriceListSchedulerDataRelationships.md new file mode 100644 index 00000000..03b860b4 --- /dev/null +++ b/api/docs/PriceListSchedulerDataRelationships.md @@ -0,0 +1,134 @@ +# PriceListSchedulerDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Market** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] +**PriceList** | Pointer to [**MarketDataRelationshipsPriceList**](MarketDataRelationshipsPriceList.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewPriceListSchedulerDataRelationships + +`func NewPriceListSchedulerDataRelationships() *PriceListSchedulerDataRelationships` + +NewPriceListSchedulerDataRelationships instantiates a new PriceListSchedulerDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPriceListSchedulerDataRelationshipsWithDefaults + +`func NewPriceListSchedulerDataRelationshipsWithDefaults() *PriceListSchedulerDataRelationships` + +NewPriceListSchedulerDataRelationshipsWithDefaults instantiates a new PriceListSchedulerDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMarket + +`func (o *PriceListSchedulerDataRelationships) GetMarket() AvalaraAccountDataRelationshipsMarkets` + +GetMarket returns the Market field if non-nil, zero value otherwise. + +### GetMarketOk + +`func (o *PriceListSchedulerDataRelationships) GetMarketOk() (*AvalaraAccountDataRelationshipsMarkets, bool)` + +GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarket + +`func (o *PriceListSchedulerDataRelationships) SetMarket(v AvalaraAccountDataRelationshipsMarkets)` + +SetMarket sets Market field to given value. + +### HasMarket + +`func (o *PriceListSchedulerDataRelationships) HasMarket() bool` + +HasMarket returns a boolean if a field has been set. + +### GetPriceList + +`func (o *PriceListSchedulerDataRelationships) GetPriceList() MarketDataRelationshipsPriceList` + +GetPriceList returns the PriceList field if non-nil, zero value otherwise. + +### GetPriceListOk + +`func (o *PriceListSchedulerDataRelationships) GetPriceListOk() (*MarketDataRelationshipsPriceList, bool)` + +GetPriceListOk returns a tuple with the PriceList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriceList + +`func (o *PriceListSchedulerDataRelationships) SetPriceList(v MarketDataRelationshipsPriceList)` + +SetPriceList sets PriceList field to given value. + +### HasPriceList + +`func (o *PriceListSchedulerDataRelationships) HasPriceList() bool` + +HasPriceList returns a boolean if a field has been set. + +### GetEvents + +`func (o *PriceListSchedulerDataRelationships) GetEvents() AddressDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *PriceListSchedulerDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *PriceListSchedulerDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *PriceListSchedulerDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetVersions + +`func (o *PriceListSchedulerDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *PriceListSchedulerDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *PriceListSchedulerDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *PriceListSchedulerDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PriceListSchedulerUpdate.md b/api/docs/PriceListSchedulerUpdate.md new file mode 100644 index 00000000..d64867de --- /dev/null +++ b/api/docs/PriceListSchedulerUpdate.md @@ -0,0 +1,51 @@ +# PriceListSchedulerUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**PriceListSchedulerUpdateData**](PriceListSchedulerUpdateData.md) | | + +## Methods + +### NewPriceListSchedulerUpdate + +`func NewPriceListSchedulerUpdate(data PriceListSchedulerUpdateData, ) *PriceListSchedulerUpdate` + +NewPriceListSchedulerUpdate instantiates a new PriceListSchedulerUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPriceListSchedulerUpdateWithDefaults + +`func NewPriceListSchedulerUpdateWithDefaults() *PriceListSchedulerUpdate` + +NewPriceListSchedulerUpdateWithDefaults instantiates a new PriceListSchedulerUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PriceListSchedulerUpdate) GetData() PriceListSchedulerUpdateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PriceListSchedulerUpdate) GetDataOk() (*PriceListSchedulerUpdateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PriceListSchedulerUpdate) SetData(v PriceListSchedulerUpdateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PriceListSchedulerUpdateData.md b/api/docs/PriceListSchedulerUpdateData.md new file mode 100644 index 00000000..31a68498 --- /dev/null +++ b/api/docs/PriceListSchedulerUpdateData.md @@ -0,0 +1,139 @@ +# PriceListSchedulerUpdateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Id** | **interface{}** | The resource's id | +**Attributes** | [**PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes**](PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**PriceListSchedulerUpdateDataRelationships**](PriceListSchedulerUpdateDataRelationships.md) | | [optional] + +## Methods + +### NewPriceListSchedulerUpdateData + +`func NewPriceListSchedulerUpdateData(type_ interface{}, id interface{}, attributes PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes, ) *PriceListSchedulerUpdateData` + +NewPriceListSchedulerUpdateData instantiates a new PriceListSchedulerUpdateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPriceListSchedulerUpdateDataWithDefaults + +`func NewPriceListSchedulerUpdateDataWithDefaults() *PriceListSchedulerUpdateData` + +NewPriceListSchedulerUpdateDataWithDefaults instantiates a new PriceListSchedulerUpdateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *PriceListSchedulerUpdateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PriceListSchedulerUpdateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PriceListSchedulerUpdateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *PriceListSchedulerUpdateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PriceListSchedulerUpdateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *PriceListSchedulerUpdateData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PriceListSchedulerUpdateData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *PriceListSchedulerUpdateData) SetId(v interface{})` + +SetId sets Id field to given value. + + +### SetIdNil + +`func (o *PriceListSchedulerUpdateData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *PriceListSchedulerUpdateData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetAttributes + +`func (o *PriceListSchedulerUpdateData) GetAttributes() PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *PriceListSchedulerUpdateData) GetAttributesOk() (*PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *PriceListSchedulerUpdateData) SetAttributes(v PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *PriceListSchedulerUpdateData) GetRelationships() PriceListSchedulerUpdateDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *PriceListSchedulerUpdateData) GetRelationshipsOk() (*PriceListSchedulerUpdateDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *PriceListSchedulerUpdateData) SetRelationships(v PriceListSchedulerUpdateDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *PriceListSchedulerUpdateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PriceListSchedulerUpdateDataRelationships.md b/api/docs/PriceListSchedulerUpdateDataRelationships.md new file mode 100644 index 00000000..53a1aef7 --- /dev/null +++ b/api/docs/PriceListSchedulerUpdateDataRelationships.md @@ -0,0 +1,82 @@ +# PriceListSchedulerUpdateDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Market** | Pointer to [**BillingInfoValidationRuleCreateDataRelationshipsMarket**](BillingInfoValidationRuleCreateDataRelationshipsMarket.md) | | [optional] +**PriceList** | Pointer to [**MarketCreateDataRelationshipsPriceList**](MarketCreateDataRelationshipsPriceList.md) | | [optional] + +## Methods + +### NewPriceListSchedulerUpdateDataRelationships + +`func NewPriceListSchedulerUpdateDataRelationships() *PriceListSchedulerUpdateDataRelationships` + +NewPriceListSchedulerUpdateDataRelationships instantiates a new PriceListSchedulerUpdateDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPriceListSchedulerUpdateDataRelationshipsWithDefaults + +`func NewPriceListSchedulerUpdateDataRelationshipsWithDefaults() *PriceListSchedulerUpdateDataRelationships` + +NewPriceListSchedulerUpdateDataRelationshipsWithDefaults instantiates a new PriceListSchedulerUpdateDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMarket + +`func (o *PriceListSchedulerUpdateDataRelationships) GetMarket() BillingInfoValidationRuleCreateDataRelationshipsMarket` + +GetMarket returns the Market field if non-nil, zero value otherwise. + +### GetMarketOk + +`func (o *PriceListSchedulerUpdateDataRelationships) GetMarketOk() (*BillingInfoValidationRuleCreateDataRelationshipsMarket, bool)` + +GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarket + +`func (o *PriceListSchedulerUpdateDataRelationships) SetMarket(v BillingInfoValidationRuleCreateDataRelationshipsMarket)` + +SetMarket sets Market field to given value. + +### HasMarket + +`func (o *PriceListSchedulerUpdateDataRelationships) HasMarket() bool` + +HasMarket returns a boolean if a field has been set. + +### GetPriceList + +`func (o *PriceListSchedulerUpdateDataRelationships) GetPriceList() MarketCreateDataRelationshipsPriceList` + +GetPriceList returns the PriceList field if non-nil, zero value otherwise. + +### GetPriceListOk + +`func (o *PriceListSchedulerUpdateDataRelationships) GetPriceListOk() (*MarketCreateDataRelationshipsPriceList, bool)` + +GetPriceListOk returns a tuple with the PriceList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriceList + +`func (o *PriceListSchedulerUpdateDataRelationships) SetPriceList(v MarketCreateDataRelationshipsPriceList)` + +SetPriceList sets PriceList field to given value. + +### HasPriceList + +`func (o *PriceListSchedulerUpdateDataRelationships) HasPriceList() bool` + +HasPriceList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/PriceListSchedulersApi.md b/api/docs/PriceListSchedulersApi.md new file mode 100644 index 00000000..d29e061e --- /dev/null +++ b/api/docs/PriceListSchedulersApi.md @@ -0,0 +1,488 @@ +# \PriceListSchedulersApi + +All URIs are relative to *https://.commercelayer.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DELETEPriceListSchedulersPriceListSchedulerId**](PriceListSchedulersApi.md#DELETEPriceListSchedulersPriceListSchedulerId) | **Delete** /price_list_schedulers/{priceListSchedulerId} | Delete a price list scheduler +[**GETMarketIdPriceListSchedulers**](PriceListSchedulersApi.md#GETMarketIdPriceListSchedulers) | **Get** /markets/{marketId}/price_list_schedulers | Retrieve the price list schedulers associated to the market +[**GETPriceListIdPriceListSchedulers**](PriceListSchedulersApi.md#GETPriceListIdPriceListSchedulers) | **Get** /price_lists/{priceListId}/price_list_schedulers | Retrieve the price list schedulers associated to the price list +[**GETPriceListSchedulers**](PriceListSchedulersApi.md#GETPriceListSchedulers) | **Get** /price_list_schedulers | List all price list schedulers +[**GETPriceListSchedulersPriceListSchedulerId**](PriceListSchedulersApi.md#GETPriceListSchedulersPriceListSchedulerId) | **Get** /price_list_schedulers/{priceListSchedulerId} | Retrieve a price list scheduler +[**PATCHPriceListSchedulersPriceListSchedulerId**](PriceListSchedulersApi.md#PATCHPriceListSchedulersPriceListSchedulerId) | **Patch** /price_list_schedulers/{priceListSchedulerId} | Update a price list scheduler +[**POSTPriceListSchedulers**](PriceListSchedulersApi.md#POSTPriceListSchedulers) | **Post** /price_list_schedulers | Create a price list scheduler + + + +## DELETEPriceListSchedulersPriceListSchedulerId + +> DELETEPriceListSchedulersPriceListSchedulerId(ctx, priceListSchedulerId).Execute() + +Delete a price list scheduler + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceListSchedulerId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PriceListSchedulersApi.DELETEPriceListSchedulersPriceListSchedulerId(context.Background(), priceListSchedulerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PriceListSchedulersApi.DELETEPriceListSchedulersPriceListSchedulerId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceListSchedulerId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDELETEPriceListSchedulersPriceListSchedulerIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETMarketIdPriceListSchedulers + +> GETMarketIdPriceListSchedulers(ctx, marketId).Execute() + +Retrieve the price list schedulers associated to the market + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + marketId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PriceListSchedulersApi.GETMarketIdPriceListSchedulers(context.Background(), marketId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PriceListSchedulersApi.GETMarketIdPriceListSchedulers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**marketId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETMarketIdPriceListSchedulersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceListIdPriceListSchedulers + +> GETPriceListIdPriceListSchedulers(ctx, priceListId).Execute() + +Retrieve the price list schedulers associated to the price list + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceListId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PriceListSchedulersApi.GETPriceListIdPriceListSchedulers(context.Background(), priceListId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PriceListSchedulersApi.GETPriceListIdPriceListSchedulers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceListId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceListIdPriceListSchedulersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceListSchedulers + +> GETPriceListSchedulers200Response GETPriceListSchedulers(ctx).Execute() + +List all price list schedulers + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PriceListSchedulersApi.GETPriceListSchedulers(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PriceListSchedulersApi.GETPriceListSchedulers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETPriceListSchedulers`: GETPriceListSchedulers200Response + fmt.Fprintf(os.Stdout, "Response from `PriceListSchedulersApi.GETPriceListSchedulers`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceListSchedulersRequest struct via the builder pattern + + +### Return type + +[**GETPriceListSchedulers200Response**](GETPriceListSchedulers200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceListSchedulersPriceListSchedulerId + +> GETPriceListSchedulersPriceListSchedulerId200Response GETPriceListSchedulersPriceListSchedulerId(ctx, priceListSchedulerId).Execute() + +Retrieve a price list scheduler + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceListSchedulerId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PriceListSchedulersApi.GETPriceListSchedulersPriceListSchedulerId(context.Background(), priceListSchedulerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PriceListSchedulersApi.GETPriceListSchedulersPriceListSchedulerId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETPriceListSchedulersPriceListSchedulerId`: GETPriceListSchedulersPriceListSchedulerId200Response + fmt.Fprintf(os.Stdout, "Response from `PriceListSchedulersApi.GETPriceListSchedulersPriceListSchedulerId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceListSchedulerId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceListSchedulersPriceListSchedulerIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**GETPriceListSchedulersPriceListSchedulerId200Response**](GETPriceListSchedulersPriceListSchedulerId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PATCHPriceListSchedulersPriceListSchedulerId + +> PATCHPriceListSchedulersPriceListSchedulerId200Response PATCHPriceListSchedulersPriceListSchedulerId(ctx, priceListSchedulerId).PriceListSchedulerUpdate(priceListSchedulerUpdate).Execute() + +Update a price list scheduler + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceListSchedulerUpdate := *openapiclient.NewPriceListSchedulerUpdate(*openapiclient.NewPriceListSchedulerUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes())) // PriceListSchedulerUpdate | + priceListSchedulerId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PriceListSchedulersApi.PATCHPriceListSchedulersPriceListSchedulerId(context.Background(), priceListSchedulerId).PriceListSchedulerUpdate(priceListSchedulerUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PriceListSchedulersApi.PATCHPriceListSchedulersPriceListSchedulerId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PATCHPriceListSchedulersPriceListSchedulerId`: PATCHPriceListSchedulersPriceListSchedulerId200Response + fmt.Fprintf(os.Stdout, "Response from `PriceListSchedulersApi.PATCHPriceListSchedulersPriceListSchedulerId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceListSchedulerId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPATCHPriceListSchedulersPriceListSchedulerIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **priceListSchedulerUpdate** | [**PriceListSchedulerUpdate**](PriceListSchedulerUpdate.md) | | + + +### Return type + +[**PATCHPriceListSchedulersPriceListSchedulerId200Response**](PATCHPriceListSchedulersPriceListSchedulerId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## POSTPriceListSchedulers + +> POSTPriceListSchedulers201Response POSTPriceListSchedulers(ctx).PriceListSchedulerCreate(priceListSchedulerCreate).Execute() + +Create a price list scheduler + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceListSchedulerCreate := *openapiclient.NewPriceListSchedulerCreate(*openapiclient.NewPriceListSchedulerCreateData(interface{}(123), *openapiclient.NewPOSTPriceListSchedulers201ResponseDataAttributes(interface{}(FW SALE 2023), interface{}(2018-01-01T12:00:00.000Z), interface{}(2018-01-02T12:00:00.000Z)))) // PriceListSchedulerCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PriceListSchedulersApi.POSTPriceListSchedulers(context.Background()).PriceListSchedulerCreate(priceListSchedulerCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PriceListSchedulersApi.POSTPriceListSchedulers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `POSTPriceListSchedulers`: POSTPriceListSchedulers201Response + fmt.Fprintf(os.Stdout, "Response from `PriceListSchedulersApi.POSTPriceListSchedulers`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPOSTPriceListSchedulersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **priceListSchedulerCreate** | [**PriceListSchedulerCreate**](PriceListSchedulerCreate.md) | | + +### Return type + +[**POSTPriceListSchedulers201Response**](POSTPriceListSchedulers201Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/api/docs/PriceListsApi.md b/api/docs/PriceListsApi.md index b42d9447..9e74a5f7 100644 --- a/api/docs/PriceListsApi.md +++ b/api/docs/PriceListsApi.md @@ -5,8 +5,10 @@ All URIs are relative to *https://.commercelayer.io/api* Method | HTTP request | Description ------------- | ------------- | ------------- [**DELETEPriceListsPriceListId**](PriceListsApi.md#DELETEPriceListsPriceListId) | **Delete** /price_lists/{priceListId} | Delete a price list +[**GETMarketIdBasePriceList**](PriceListsApi.md#GETMarketIdBasePriceList) | **Get** /markets/{marketId}/base_price_list | Retrieve the base price list associated to the market [**GETMarketIdPriceList**](PriceListsApi.md#GETMarketIdPriceList) | **Get** /markets/{marketId}/price_list | Retrieve the price list associated to the market [**GETPriceIdPriceList**](PriceListsApi.md#GETPriceIdPriceList) | **Get** /prices/{priceId}/price_list | Retrieve the price list associated to the price +[**GETPriceListSchedulerIdPriceList**](PriceListsApi.md#GETPriceListSchedulerIdPriceList) | **Get** /price_list_schedulers/{priceListSchedulerId}/price_list | Retrieve the price list associated to the price list scheduler [**GETPriceLists**](PriceListsApi.md#GETPriceLists) | **Get** /price_lists | List all price lists [**GETPriceListsPriceListId**](PriceListsApi.md#GETPriceListsPriceListId) | **Get** /price_lists/{priceListId} | Retrieve a price list [**PATCHPriceListsPriceListId**](PriceListsApi.md#PATCHPriceListsPriceListId) | **Patch** /price_lists/{priceListId} | Update a price list @@ -82,6 +84,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETMarketIdBasePriceList + +> GETMarketIdBasePriceList(ctx, marketId).Execute() + +Retrieve the base price list associated to the market + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + marketId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PriceListsApi.GETMarketIdBasePriceList(context.Background(), marketId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PriceListsApi.GETMarketIdBasePriceList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**marketId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETMarketIdBasePriceListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETMarketIdPriceList > GETMarketIdPriceList(ctx, marketId).Execute() @@ -218,6 +288,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETPriceListSchedulerIdPriceList + +> GETPriceListSchedulerIdPriceList(ctx, priceListSchedulerId).Execute() + +Retrieve the price list associated to the price list scheduler + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceListSchedulerId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PriceListsApi.GETPriceListSchedulerIdPriceList(context.Background(), priceListSchedulerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PriceListsApi.GETPriceListSchedulerIdPriceList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceListSchedulerId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceListSchedulerIdPriceListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETPriceLists > GETPriceLists200Response GETPriceLists(ctx).Execute() diff --git a/api/docs/PriceTierDataRelationships.md b/api/docs/PriceTierDataRelationships.md index bc47ce79..cd1a5463 100644 --- a/api/docs/PriceTierDataRelationships.md +++ b/api/docs/PriceTierDataRelationships.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Price** | Pointer to [**PriceFrequencyTierDataRelationshipsPrice**](PriceFrequencyTierDataRelationshipsPrice.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -53,20 +54,20 @@ HasPrice returns a boolean if a field has been set. ### GetAttachments -`func (o *PriceTierDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *PriceTierDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *PriceTierDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *PriceTierDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *PriceTierDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *PriceTierDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -76,6 +77,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *PriceTierDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *PriceTierDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *PriceTierDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *PriceTierDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/PricesApi.md b/api/docs/PricesApi.md index a8e95b46..e4d06f74 100644 --- a/api/docs/PricesApi.md +++ b/api/docs/PricesApi.md @@ -649,7 +649,7 @@ import ( ) func main() { - priceCreate := *openapiclient.NewPriceCreate(*openapiclient.NewPriceCreateData(interface{}(123), *openapiclient.NewPOSTPrices201ResponseDataAttributes(interface{}(10000), interface{}(13000)))) // PriceCreate | + priceCreate := *openapiclient.NewPriceCreate(*openapiclient.NewPriceCreateData(interface{}(123), *openapiclient.NewPOSTPrices201ResponseDataAttributes(interface{}(10000)))) // PriceCreate | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/api/docs/PromotionData.md b/api/docs/PromotionData.md index 10aa5be6..53fe6783 100644 --- a/api/docs/PromotionData.md +++ b/api/docs/PromotionData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes**](GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**ExternalPromotionDataRelationships**](ExternalPromotionDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**FreeShippingPromotionDataRelationships**](FreeShippingPromotionDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *PromotionData) GetRelationships() ExternalPromotionDataRelationships` +`func (o *PromotionData) GetRelationships() FreeShippingPromotionDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *PromotionData) GetRelationshipsOk() (*ExternalPromotionDataRelationships, bool)` +`func (o *PromotionData) GetRelationshipsOk() (*FreeShippingPromotionDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *PromotionData) SetRelationships(v ExternalPromotionDataRelationships)` +`func (o *PromotionData) SetRelationships(v FreeShippingPromotionDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/PromotionRuleData.md b/api/docs/PromotionRuleData.md index e1d4084c..fcad939b 100644 --- a/api/docs/PromotionRuleData.md +++ b/api/docs/PromotionRuleData.md @@ -5,14 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | -**Attributes** | [**GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes**](GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**OrderAmountPromotionRuleDataRelationships**](OrderAmountPromotionRuleDataRelationships.md) | | [optional] +**Attributes** | [**GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes**](GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**CustomPromotionRuleDataRelationships**](CustomPromotionRuleDataRelationships.md) | | [optional] ## Methods ### NewPromotionRuleData -`func NewPromotionRuleData(type_ interface{}, attributes GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, ) *PromotionRuleData` +`func NewPromotionRuleData(type_ interface{}, attributes GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes, ) *PromotionRuleData` NewPromotionRuleData instantiates a new PromotionRuleData object This constructor will assign default values to properties that have it defined, @@ -59,40 +59,40 @@ SetType sets Type field to given value. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetAttributes -`func (o *PromotionRuleData) GetAttributes() GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes` +`func (o *PromotionRuleData) GetAttributes() GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *PromotionRuleData) GetAttributesOk() (*GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool)` +`func (o *PromotionRuleData) GetAttributesOk() (*GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *PromotionRuleData) SetAttributes(v GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes)` +`func (o *PromotionRuleData) SetAttributes(v GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes)` SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *PromotionRuleData) GetRelationships() OrderAmountPromotionRuleDataRelationships` +`func (o *PromotionRuleData) GetRelationships() CustomPromotionRuleDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *PromotionRuleData) GetRelationshipsOk() (*OrderAmountPromotionRuleDataRelationships, bool)` +`func (o *PromotionRuleData) GetRelationshipsOk() (*CustomPromotionRuleDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *PromotionRuleData) SetRelationships(v OrderAmountPromotionRuleDataRelationships)` +`func (o *PromotionRuleData) SetRelationships(v CustomPromotionRuleDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/RefundDataRelationships.md b/api/docs/RefundDataRelationships.md index 971d2b8b..e601f0a5 100644 --- a/api/docs/RefundDataRelationships.md +++ b/api/docs/RefundDataRelationships.md @@ -5,8 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Order** | Pointer to [**AdyenPaymentDataRelationshipsOrder**](AdyenPaymentDataRelationshipsOrder.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] **ReferenceCapture** | Pointer to [**AuthorizationDataRelationshipsCaptures**](AuthorizationDataRelationshipsCaptures.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] +**Return** | Pointer to [**CaptureDataRelationshipsReturn**](CaptureDataRelationshipsReturn.md) | | [optional] ## Methods @@ -52,6 +55,81 @@ SetOrder sets Order field to given value. HasOrder returns a boolean if a field has been set. +### GetAttachments + +`func (o *RefundDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *RefundDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *RefundDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *RefundDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + +### GetEvents + +`func (o *RefundDataRelationships) GetEvents() AddressDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *RefundDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *RefundDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *RefundDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetVersions + +`func (o *RefundDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *RefundDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *RefundDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *RefundDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetReferenceCapture `func (o *RefundDataRelationships) GetReferenceCapture() AuthorizationDataRelationshipsCaptures` @@ -77,30 +155,30 @@ SetReferenceCapture sets ReferenceCapture field to given value. HasReferenceCapture returns a boolean if a field has been set. -### GetEvents +### GetReturn -`func (o *RefundDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` +`func (o *RefundDataRelationships) GetReturn() CaptureDataRelationshipsReturn` -GetEvents returns the Events field if non-nil, zero value otherwise. +GetReturn returns the Return field if non-nil, zero value otherwise. -### GetEventsOk +### GetReturnOk -`func (o *RefundDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` +`func (o *RefundDataRelationships) GetReturnOk() (*CaptureDataRelationshipsReturn, bool)` -GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +GetReturnOk returns a tuple with the Return field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetEvents +### SetReturn -`func (o *RefundDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` +`func (o *RefundDataRelationships) SetReturn(v CaptureDataRelationshipsReturn)` -SetEvents sets Events field to given value. +SetReturn sets Return field to given value. -### HasEvents +### HasReturn -`func (o *RefundDataRelationships) HasEvents() bool` +`func (o *RefundDataRelationships) HasReturn() bool` -HasEvents returns a boolean if a field has been set. +HasReturn returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/RefundUpdate.md b/api/docs/RefundUpdate.md new file mode 100644 index 00000000..08e7ae25 --- /dev/null +++ b/api/docs/RefundUpdate.md @@ -0,0 +1,51 @@ +# RefundUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**RefundUpdateData**](RefundUpdateData.md) | | + +## Methods + +### NewRefundUpdate + +`func NewRefundUpdate(data RefundUpdateData, ) *RefundUpdate` + +NewRefundUpdate instantiates a new RefundUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRefundUpdateWithDefaults + +`func NewRefundUpdateWithDefaults() *RefundUpdate` + +NewRefundUpdateWithDefaults instantiates a new RefundUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *RefundUpdate) GetData() RefundUpdateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *RefundUpdate) GetDataOk() (*RefundUpdateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *RefundUpdate) SetData(v RefundUpdateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/RefundUpdateData.md b/api/docs/RefundUpdateData.md new file mode 100644 index 00000000..121cbdbd --- /dev/null +++ b/api/docs/RefundUpdateData.md @@ -0,0 +1,149 @@ +# RefundUpdateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Id** | **interface{}** | The resource's id | +**Attributes** | [**PATCHRefundsRefundId200ResponseDataAttributes**](PATCHRefundsRefundId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewRefundUpdateData + +`func NewRefundUpdateData(type_ interface{}, id interface{}, attributes PATCHRefundsRefundId200ResponseDataAttributes, ) *RefundUpdateData` + +NewRefundUpdateData instantiates a new RefundUpdateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRefundUpdateDataWithDefaults + +`func NewRefundUpdateDataWithDefaults() *RefundUpdateData` + +NewRefundUpdateDataWithDefaults instantiates a new RefundUpdateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *RefundUpdateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RefundUpdateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *RefundUpdateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *RefundUpdateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *RefundUpdateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *RefundUpdateData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RefundUpdateData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *RefundUpdateData) SetId(v interface{})` + +SetId sets Id field to given value. + + +### SetIdNil + +`func (o *RefundUpdateData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *RefundUpdateData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetAttributes + +`func (o *RefundUpdateData) GetAttributes() PATCHRefundsRefundId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *RefundUpdateData) GetAttributesOk() (*PATCHRefundsRefundId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *RefundUpdateData) SetAttributes(v PATCHRefundsRefundId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *RefundUpdateData) GetRelationships() interface{}` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *RefundUpdateData) GetRelationshipsOk() (*interface{}, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *RefundUpdateData) SetRelationships(v interface{})` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *RefundUpdateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### SetRelationshipsNil + +`func (o *RefundUpdateData) SetRelationshipsNil(b bool)` + + SetRelationshipsNil sets the value for Relationships to be an explicit nil + +### UnsetRelationships +`func (o *RefundUpdateData) UnsetRelationships()` + +UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/RefundsApi.md b/api/docs/RefundsApi.md index 2b3edfaa..6587f203 100644 --- a/api/docs/RefundsApi.md +++ b/api/docs/RefundsApi.md @@ -8,6 +8,8 @@ Method | HTTP request | Description [**GETOrderIdRefunds**](RefundsApi.md#GETOrderIdRefunds) | **Get** /orders/{orderId}/refunds | Retrieve the refunds associated to the order [**GETRefunds**](RefundsApi.md#GETRefunds) | **Get** /refunds | List all refunds [**GETRefundsRefundId**](RefundsApi.md#GETRefundsRefundId) | **Get** /refunds/{refundId} | Retrieve a refund +[**GETReturnIdReferenceRefund**](RefundsApi.md#GETReturnIdReferenceRefund) | **Get** /returns/{returnId}/reference_refund | Retrieve the reference refund associated to the return +[**PATCHRefundsRefundId**](RefundsApi.md#PATCHRefundsRefundId) | **Patch** /refunds/{refundId} | Update a refund @@ -277,3 +279,143 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## GETReturnIdReferenceRefund + +> GETReturnIdReferenceRefund(ctx, returnId).Execute() + +Retrieve the reference refund associated to the return + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + returnId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.RefundsApi.GETReturnIdReferenceRefund(context.Background(), returnId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RefundsApi.GETReturnIdReferenceRefund``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**returnId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETReturnIdReferenceRefundRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PATCHRefundsRefundId + +> PATCHRefundsRefundId200Response PATCHRefundsRefundId(ctx, refundId).RefundUpdate(refundUpdate).Execute() + +Update a refund + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + refundUpdate := *openapiclient.NewRefundUpdate(*openapiclient.NewRefundUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHRefundsRefundId200ResponseDataAttributes())) // RefundUpdate | + refundId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RefundsApi.PATCHRefundsRefundId(context.Background(), refundId).RefundUpdate(refundUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RefundsApi.PATCHRefundsRefundId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PATCHRefundsRefundId`: PATCHRefundsRefundId200Response + fmt.Fprintf(os.Stdout, "Response from `RefundsApi.PATCHRefundsRefundId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**refundId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPATCHRefundsRefundIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **refundUpdate** | [**RefundUpdate**](RefundUpdate.md) | | + + +### Return type + +[**PATCHRefundsRefundId200Response**](PATCHRefundsRefundId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/api/docs/ReservedStock.md b/api/docs/ReservedStock.md new file mode 100644 index 00000000..02f2ad94 --- /dev/null +++ b/api/docs/ReservedStock.md @@ -0,0 +1,56 @@ +# ReservedStock + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**ReservedStockData**](ReservedStockData.md) | | [optional] + +## Methods + +### NewReservedStock + +`func NewReservedStock() *ReservedStock` + +NewReservedStock instantiates a new ReservedStock object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReservedStockWithDefaults + +`func NewReservedStockWithDefaults() *ReservedStock` + +NewReservedStockWithDefaults instantiates a new ReservedStock object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *ReservedStock) GetData() ReservedStockData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ReservedStock) GetDataOk() (*ReservedStockData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ReservedStock) SetData(v ReservedStockData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *ReservedStock) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ReservedStockData.md b/api/docs/ReservedStockData.md new file mode 100644 index 00000000..7bec829a --- /dev/null +++ b/api/docs/ReservedStockData.md @@ -0,0 +1,108 @@ +# ReservedStockData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**GETReservedStocksReservedStockId200ResponseDataAttributes**](GETReservedStocksReservedStockId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**ReservedStockDataRelationships**](ReservedStockDataRelationships.md) | | [optional] + +## Methods + +### NewReservedStockData + +`func NewReservedStockData(type_ interface{}, attributes GETReservedStocksReservedStockId200ResponseDataAttributes, ) *ReservedStockData` + +NewReservedStockData instantiates a new ReservedStockData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReservedStockDataWithDefaults + +`func NewReservedStockDataWithDefaults() *ReservedStockData` + +NewReservedStockDataWithDefaults instantiates a new ReservedStockData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ReservedStockData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ReservedStockData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ReservedStockData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *ReservedStockData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *ReservedStockData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *ReservedStockData) GetAttributes() GETReservedStocksReservedStockId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *ReservedStockData) GetAttributesOk() (*GETReservedStocksReservedStockId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *ReservedStockData) SetAttributes(v GETReservedStocksReservedStockId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *ReservedStockData) GetRelationships() ReservedStockDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *ReservedStockData) GetRelationshipsOk() (*ReservedStockDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *ReservedStockData) SetRelationships(v ReservedStockDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *ReservedStockData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ReservedStockDataRelationships.md b/api/docs/ReservedStockDataRelationships.md new file mode 100644 index 00000000..bd60f7a0 --- /dev/null +++ b/api/docs/ReservedStockDataRelationships.md @@ -0,0 +1,134 @@ +# ReservedStockDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StockItem** | Pointer to [**ReservedStockDataRelationshipsStockItem**](ReservedStockDataRelationshipsStockItem.md) | | [optional] +**Sku** | Pointer to [**BundleDataRelationshipsSkus**](BundleDataRelationshipsSkus.md) | | [optional] +**StockReservations** | Pointer to [**LineItemDataRelationshipsStockReservations**](LineItemDataRelationshipsStockReservations.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewReservedStockDataRelationships + +`func NewReservedStockDataRelationships() *ReservedStockDataRelationships` + +NewReservedStockDataRelationships instantiates a new ReservedStockDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReservedStockDataRelationshipsWithDefaults + +`func NewReservedStockDataRelationshipsWithDefaults() *ReservedStockDataRelationships` + +NewReservedStockDataRelationshipsWithDefaults instantiates a new ReservedStockDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStockItem + +`func (o *ReservedStockDataRelationships) GetStockItem() ReservedStockDataRelationshipsStockItem` + +GetStockItem returns the StockItem field if non-nil, zero value otherwise. + +### GetStockItemOk + +`func (o *ReservedStockDataRelationships) GetStockItemOk() (*ReservedStockDataRelationshipsStockItem, bool)` + +GetStockItemOk returns a tuple with the StockItem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockItem + +`func (o *ReservedStockDataRelationships) SetStockItem(v ReservedStockDataRelationshipsStockItem)` + +SetStockItem sets StockItem field to given value. + +### HasStockItem + +`func (o *ReservedStockDataRelationships) HasStockItem() bool` + +HasStockItem returns a boolean if a field has been set. + +### GetSku + +`func (o *ReservedStockDataRelationships) GetSku() BundleDataRelationshipsSkus` + +GetSku returns the Sku field if non-nil, zero value otherwise. + +### GetSkuOk + +`func (o *ReservedStockDataRelationships) GetSkuOk() (*BundleDataRelationshipsSkus, bool)` + +GetSkuOk returns a tuple with the Sku field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSku + +`func (o *ReservedStockDataRelationships) SetSku(v BundleDataRelationshipsSkus)` + +SetSku sets Sku field to given value. + +### HasSku + +`func (o *ReservedStockDataRelationships) HasSku() bool` + +HasSku returns a boolean if a field has been set. + +### GetStockReservations + +`func (o *ReservedStockDataRelationships) GetStockReservations() LineItemDataRelationshipsStockReservations` + +GetStockReservations returns the StockReservations field if non-nil, zero value otherwise. + +### GetStockReservationsOk + +`func (o *ReservedStockDataRelationships) GetStockReservationsOk() (*LineItemDataRelationshipsStockReservations, bool)` + +GetStockReservationsOk returns a tuple with the StockReservations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockReservations + +`func (o *ReservedStockDataRelationships) SetStockReservations(v LineItemDataRelationshipsStockReservations)` + +SetStockReservations sets StockReservations field to given value. + +### HasStockReservations + +`func (o *ReservedStockDataRelationships) HasStockReservations() bool` + +HasStockReservations returns a boolean if a field has been set. + +### GetVersions + +`func (o *ReservedStockDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *ReservedStockDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *ReservedStockDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *ReservedStockDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ReservedStockDataRelationshipsStockItem.md b/api/docs/ReservedStockDataRelationshipsStockItem.md new file mode 100644 index 00000000..27f3430d --- /dev/null +++ b/api/docs/ReservedStockDataRelationshipsStockItem.md @@ -0,0 +1,56 @@ +# ReservedStockDataRelationshipsStockItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**ReservedStockDataRelationshipsStockItemData**](ReservedStockDataRelationshipsStockItemData.md) | | [optional] + +## Methods + +### NewReservedStockDataRelationshipsStockItem + +`func NewReservedStockDataRelationshipsStockItem() *ReservedStockDataRelationshipsStockItem` + +NewReservedStockDataRelationshipsStockItem instantiates a new ReservedStockDataRelationshipsStockItem object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReservedStockDataRelationshipsStockItemWithDefaults + +`func NewReservedStockDataRelationshipsStockItemWithDefaults() *ReservedStockDataRelationshipsStockItem` + +NewReservedStockDataRelationshipsStockItemWithDefaults instantiates a new ReservedStockDataRelationshipsStockItem object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *ReservedStockDataRelationshipsStockItem) GetData() ReservedStockDataRelationshipsStockItemData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ReservedStockDataRelationshipsStockItem) GetDataOk() (*ReservedStockDataRelationshipsStockItemData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ReservedStockDataRelationshipsStockItem) SetData(v ReservedStockDataRelationshipsStockItemData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *ReservedStockDataRelationshipsStockItem) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ReservedStockDataRelationshipsStockItemData.md b/api/docs/ReservedStockDataRelationshipsStockItemData.md new file mode 100644 index 00000000..2bb727d6 --- /dev/null +++ b/api/docs/ReservedStockDataRelationshipsStockItemData.md @@ -0,0 +1,102 @@ +# ReservedStockDataRelationshipsStockItemData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource's id | [optional] + +## Methods + +### NewReservedStockDataRelationshipsStockItemData + +`func NewReservedStockDataRelationshipsStockItemData() *ReservedStockDataRelationshipsStockItemData` + +NewReservedStockDataRelationshipsStockItemData instantiates a new ReservedStockDataRelationshipsStockItemData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReservedStockDataRelationshipsStockItemDataWithDefaults + +`func NewReservedStockDataRelationshipsStockItemDataWithDefaults() *ReservedStockDataRelationshipsStockItemData` + +NewReservedStockDataRelationshipsStockItemDataWithDefaults instantiates a new ReservedStockDataRelationshipsStockItemData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ReservedStockDataRelationshipsStockItemData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ReservedStockDataRelationshipsStockItemData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ReservedStockDataRelationshipsStockItemData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *ReservedStockDataRelationshipsStockItemData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *ReservedStockDataRelationshipsStockItemData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *ReservedStockDataRelationshipsStockItemData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *ReservedStockDataRelationshipsStockItemData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ReservedStockDataRelationshipsStockItemData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ReservedStockDataRelationshipsStockItemData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *ReservedStockDataRelationshipsStockItemData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *ReservedStockDataRelationshipsStockItemData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *ReservedStockDataRelationshipsStockItemData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ReservedStocksApi.md b/api/docs/ReservedStocksApi.md new file mode 100644 index 00000000..8eecf9b6 --- /dev/null +++ b/api/docs/ReservedStocksApi.md @@ -0,0 +1,279 @@ +# \ReservedStocksApi + +All URIs are relative to *https://.commercelayer.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GETReservedStocks**](ReservedStocksApi.md#GETReservedStocks) | **Get** /reserved_stocks | List all reserved stocks +[**GETReservedStocksReservedStockId**](ReservedStocksApi.md#GETReservedStocksReservedStockId) | **Get** /reserved_stocks/{reservedStockId} | Retrieve a reserved stock +[**GETStockItemIdReservedStock**](ReservedStocksApi.md#GETStockItemIdReservedStock) | **Get** /stock_items/{stockItemId}/reserved_stock | Retrieve the reserved stock associated to the stock item +[**GETStockReservationIdReservedStock**](ReservedStocksApi.md#GETStockReservationIdReservedStock) | **Get** /stock_reservations/{stockReservationId}/reserved_stock | Retrieve the reserved stock associated to the stock reservation + + + +## GETReservedStocks + +> GETReservedStocks200Response GETReservedStocks(ctx).Execute() + +List all reserved stocks + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReservedStocksApi.GETReservedStocks(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReservedStocksApi.GETReservedStocks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETReservedStocks`: GETReservedStocks200Response + fmt.Fprintf(os.Stdout, "Response from `ReservedStocksApi.GETReservedStocks`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETReservedStocksRequest struct via the builder pattern + + +### Return type + +[**GETReservedStocks200Response**](GETReservedStocks200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETReservedStocksReservedStockId + +> GETReservedStocksReservedStockId200Response GETReservedStocksReservedStockId(ctx, reservedStockId).Execute() + +Retrieve a reserved stock + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + reservedStockId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReservedStocksApi.GETReservedStocksReservedStockId(context.Background(), reservedStockId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReservedStocksApi.GETReservedStocksReservedStockId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETReservedStocksReservedStockId`: GETReservedStocksReservedStockId200Response + fmt.Fprintf(os.Stdout, "Response from `ReservedStocksApi.GETReservedStocksReservedStockId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**reservedStockId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETReservedStocksReservedStockIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**GETReservedStocksReservedStockId200Response**](GETReservedStocksReservedStockId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETStockItemIdReservedStock + +> GETStockItemIdReservedStock(ctx, stockItemId).Execute() + +Retrieve the reserved stock associated to the stock item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ReservedStocksApi.GETStockItemIdReservedStock(context.Background(), stockItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReservedStocksApi.GETStockItemIdReservedStock``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStockItemIdReservedStockRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETStockReservationIdReservedStock + +> GETStockReservationIdReservedStock(ctx, stockReservationId).Execute() + +Retrieve the reserved stock associated to the stock reservation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockReservationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ReservedStocksApi.GETStockReservationIdReservedStock(context.Background(), stockReservationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReservedStocksApi.GETStockReservationIdReservedStock``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockReservationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStockReservationIdReservedStockRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/api/docs/ResourceError.md b/api/docs/ResourceError.md new file mode 100644 index 00000000..ceea5134 --- /dev/null +++ b/api/docs/ResourceError.md @@ -0,0 +1,56 @@ +# ResourceError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**ResourceErrorData**](ResourceErrorData.md) | | [optional] + +## Methods + +### NewResourceError + +`func NewResourceError() *ResourceError` + +NewResourceError instantiates a new ResourceError object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourceErrorWithDefaults + +`func NewResourceErrorWithDefaults() *ResourceError` + +NewResourceErrorWithDefaults instantiates a new ResourceError object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *ResourceError) GetData() ResourceErrorData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ResourceError) GetDataOk() (*ResourceErrorData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ResourceError) SetData(v ResourceErrorData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *ResourceError) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ResourceErrorData.md b/api/docs/ResourceErrorData.md new file mode 100644 index 00000000..d12b0805 --- /dev/null +++ b/api/docs/ResourceErrorData.md @@ -0,0 +1,108 @@ +# ResourceErrorData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**GETResourceErrorsResourceErrorId200ResponseDataAttributes**](GETResourceErrorsResourceErrorId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**ResourceErrorDataRelationships**](ResourceErrorDataRelationships.md) | | [optional] + +## Methods + +### NewResourceErrorData + +`func NewResourceErrorData(type_ interface{}, attributes GETResourceErrorsResourceErrorId200ResponseDataAttributes, ) *ResourceErrorData` + +NewResourceErrorData instantiates a new ResourceErrorData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourceErrorDataWithDefaults + +`func NewResourceErrorDataWithDefaults() *ResourceErrorData` + +NewResourceErrorDataWithDefaults instantiates a new ResourceErrorData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ResourceErrorData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ResourceErrorData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ResourceErrorData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *ResourceErrorData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *ResourceErrorData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *ResourceErrorData) GetAttributes() GETResourceErrorsResourceErrorId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *ResourceErrorData) GetAttributesOk() (*GETResourceErrorsResourceErrorId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *ResourceErrorData) SetAttributes(v GETResourceErrorsResourceErrorId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *ResourceErrorData) GetRelationships() ResourceErrorDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *ResourceErrorData) GetRelationshipsOk() (*ResourceErrorDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *ResourceErrorData) SetRelationships(v ResourceErrorDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *ResourceErrorData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ResourceErrorDataRelationships.md b/api/docs/ResourceErrorDataRelationships.md new file mode 100644 index 00000000..6081c7af --- /dev/null +++ b/api/docs/ResourceErrorDataRelationships.md @@ -0,0 +1,56 @@ +# ResourceErrorDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Resource** | Pointer to [**ResourceErrorDataRelationshipsResource**](ResourceErrorDataRelationshipsResource.md) | | [optional] + +## Methods + +### NewResourceErrorDataRelationships + +`func NewResourceErrorDataRelationships() *ResourceErrorDataRelationships` + +NewResourceErrorDataRelationships instantiates a new ResourceErrorDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourceErrorDataRelationshipsWithDefaults + +`func NewResourceErrorDataRelationshipsWithDefaults() *ResourceErrorDataRelationships` + +NewResourceErrorDataRelationshipsWithDefaults instantiates a new ResourceErrorDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResource + +`func (o *ResourceErrorDataRelationships) GetResource() ResourceErrorDataRelationshipsResource` + +GetResource returns the Resource field if non-nil, zero value otherwise. + +### GetResourceOk + +`func (o *ResourceErrorDataRelationships) GetResourceOk() (*ResourceErrorDataRelationshipsResource, bool)` + +GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResource + +`func (o *ResourceErrorDataRelationships) SetResource(v ResourceErrorDataRelationshipsResource)` + +SetResource sets Resource field to given value. + +### HasResource + +`func (o *ResourceErrorDataRelationships) HasResource() bool` + +HasResource returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ResourceErrorDataRelationshipsResource.md b/api/docs/ResourceErrorDataRelationshipsResource.md new file mode 100644 index 00000000..05bd6768 --- /dev/null +++ b/api/docs/ResourceErrorDataRelationshipsResource.md @@ -0,0 +1,56 @@ +# ResourceErrorDataRelationshipsResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**ResourceErrorDataRelationshipsResourceData**](ResourceErrorDataRelationshipsResourceData.md) | | [optional] + +## Methods + +### NewResourceErrorDataRelationshipsResource + +`func NewResourceErrorDataRelationshipsResource() *ResourceErrorDataRelationshipsResource` + +NewResourceErrorDataRelationshipsResource instantiates a new ResourceErrorDataRelationshipsResource object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourceErrorDataRelationshipsResourceWithDefaults + +`func NewResourceErrorDataRelationshipsResourceWithDefaults() *ResourceErrorDataRelationshipsResource` + +NewResourceErrorDataRelationshipsResourceWithDefaults instantiates a new ResourceErrorDataRelationshipsResource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *ResourceErrorDataRelationshipsResource) GetData() ResourceErrorDataRelationshipsResourceData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ResourceErrorDataRelationshipsResource) GetDataOk() (*ResourceErrorDataRelationshipsResourceData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ResourceErrorDataRelationshipsResource) SetData(v ResourceErrorDataRelationshipsResourceData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *ResourceErrorDataRelationshipsResource) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ResourceErrorDataRelationshipsResourceData.md b/api/docs/ResourceErrorDataRelationshipsResourceData.md new file mode 100644 index 00000000..20019b35 --- /dev/null +++ b/api/docs/ResourceErrorDataRelationshipsResourceData.md @@ -0,0 +1,102 @@ +# ResourceErrorDataRelationshipsResourceData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource's id | [optional] + +## Methods + +### NewResourceErrorDataRelationshipsResourceData + +`func NewResourceErrorDataRelationshipsResourceData() *ResourceErrorDataRelationshipsResourceData` + +NewResourceErrorDataRelationshipsResourceData instantiates a new ResourceErrorDataRelationshipsResourceData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourceErrorDataRelationshipsResourceDataWithDefaults + +`func NewResourceErrorDataRelationshipsResourceDataWithDefaults() *ResourceErrorDataRelationshipsResourceData` + +NewResourceErrorDataRelationshipsResourceDataWithDefaults instantiates a new ResourceErrorDataRelationshipsResourceData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ResourceErrorDataRelationshipsResourceData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ResourceErrorDataRelationshipsResourceData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ResourceErrorDataRelationshipsResourceData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *ResourceErrorDataRelationshipsResourceData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *ResourceErrorDataRelationshipsResourceData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *ResourceErrorDataRelationshipsResourceData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *ResourceErrorDataRelationshipsResourceData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ResourceErrorDataRelationshipsResourceData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ResourceErrorDataRelationshipsResourceData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *ResourceErrorDataRelationshipsResourceData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *ResourceErrorDataRelationshipsResourceData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *ResourceErrorDataRelationshipsResourceData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ResourceErrorsApi.md b/api/docs/ResourceErrorsApi.md new file mode 100644 index 00000000..273685f9 --- /dev/null +++ b/api/docs/ResourceErrorsApi.md @@ -0,0 +1,279 @@ +# \ResourceErrorsApi + +All URIs are relative to *https://.commercelayer.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GETOrderIdResourceErrors**](ResourceErrorsApi.md#GETOrderIdResourceErrors) | **Get** /orders/{orderId}/resource_errors | Retrieve the resource errors associated to the order +[**GETResourceErrors**](ResourceErrorsApi.md#GETResourceErrors) | **Get** /resource_errors | List all resource errors +[**GETResourceErrorsResourceErrorId**](ResourceErrorsApi.md#GETResourceErrorsResourceErrorId) | **Get** /resource_errors/{resourceErrorId} | Retrieve a resource error +[**GETReturnIdResourceErrors**](ResourceErrorsApi.md#GETReturnIdResourceErrors) | **Get** /returns/{returnId}/resource_errors | Retrieve the resource errors associated to the return + + + +## GETOrderIdResourceErrors + +> GETOrderIdResourceErrors(ctx, orderId).Execute() + +Retrieve the resource errors associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ResourceErrorsApi.GETOrderIdResourceErrors(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ResourceErrorsApi.GETOrderIdResourceErrors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdResourceErrorsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETResourceErrors + +> GETResourceErrors200Response GETResourceErrors(ctx).Execute() + +List all resource errors + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ResourceErrorsApi.GETResourceErrors(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ResourceErrorsApi.GETResourceErrors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETResourceErrors`: GETResourceErrors200Response + fmt.Fprintf(os.Stdout, "Response from `ResourceErrorsApi.GETResourceErrors`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETResourceErrorsRequest struct via the builder pattern + + +### Return type + +[**GETResourceErrors200Response**](GETResourceErrors200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETResourceErrorsResourceErrorId + +> GETResourceErrorsResourceErrorId200Response GETResourceErrorsResourceErrorId(ctx, resourceErrorId).Execute() + +Retrieve a resource error + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + resourceErrorId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ResourceErrorsApi.GETResourceErrorsResourceErrorId(context.Background(), resourceErrorId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ResourceErrorsApi.GETResourceErrorsResourceErrorId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETResourceErrorsResourceErrorId`: GETResourceErrorsResourceErrorId200Response + fmt.Fprintf(os.Stdout, "Response from `ResourceErrorsApi.GETResourceErrorsResourceErrorId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**resourceErrorId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETResourceErrorsResourceErrorIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**GETResourceErrorsResourceErrorId200Response**](GETResourceErrorsResourceErrorId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETReturnIdResourceErrors + +> GETReturnIdResourceErrors(ctx, returnId).Execute() + +Retrieve the resource errors associated to the return + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + returnId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ResourceErrorsApi.GETReturnIdResourceErrors(context.Background(), returnId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ResourceErrorsApi.GETReturnIdResourceErrors``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**returnId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETReturnIdResourceErrorsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/api/docs/ReturnCreateDataRelationships.md b/api/docs/ReturnCreateDataRelationships.md index 87a3fb57..34a02b6f 100644 --- a/api/docs/ReturnCreateDataRelationships.md +++ b/api/docs/ReturnCreateDataRelationships.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Order** | [**AdyenPaymentCreateDataRelationshipsOrder**](AdyenPaymentCreateDataRelationshipsOrder.md) | | **StockLocation** | Pointer to [**DeliveryLeadTimeCreateDataRelationshipsStockLocation**](DeliveryLeadTimeCreateDataRelationshipsStockLocation.md) | | [optional] +**ReferenceCapture** | Pointer to [**ReturnCreateDataRelationshipsReferenceCapture**](ReturnCreateDataRelationshipsReferenceCapture.md) | | [optional] +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] ## Methods @@ -71,6 +73,56 @@ SetStockLocation sets StockLocation field to given value. HasStockLocation returns a boolean if a field has been set. +### GetReferenceCapture + +`func (o *ReturnCreateDataRelationships) GetReferenceCapture() ReturnCreateDataRelationshipsReferenceCapture` + +GetReferenceCapture returns the ReferenceCapture field if non-nil, zero value otherwise. + +### GetReferenceCaptureOk + +`func (o *ReturnCreateDataRelationships) GetReferenceCaptureOk() (*ReturnCreateDataRelationshipsReferenceCapture, bool)` + +GetReferenceCaptureOk returns a tuple with the ReferenceCapture field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceCapture + +`func (o *ReturnCreateDataRelationships) SetReferenceCapture(v ReturnCreateDataRelationshipsReferenceCapture)` + +SetReferenceCapture sets ReferenceCapture field to given value. + +### HasReferenceCapture + +`func (o *ReturnCreateDataRelationships) HasReferenceCapture() bool` + +HasReferenceCapture returns a boolean if a field has been set. + +### GetTags + +`func (o *ReturnCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ReturnCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ReturnCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ReturnCreateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/ReturnCreateDataRelationshipsReferenceCapture.md b/api/docs/ReturnCreateDataRelationshipsReferenceCapture.md new file mode 100644 index 00000000..a503992c --- /dev/null +++ b/api/docs/ReturnCreateDataRelationshipsReferenceCapture.md @@ -0,0 +1,51 @@ +# ReturnCreateDataRelationshipsReferenceCapture + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**AuthorizationDataRelationshipsCapturesData**](AuthorizationDataRelationshipsCapturesData.md) | | + +## Methods + +### NewReturnCreateDataRelationshipsReferenceCapture + +`func NewReturnCreateDataRelationshipsReferenceCapture(data AuthorizationDataRelationshipsCapturesData, ) *ReturnCreateDataRelationshipsReferenceCapture` + +NewReturnCreateDataRelationshipsReferenceCapture instantiates a new ReturnCreateDataRelationshipsReferenceCapture object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReturnCreateDataRelationshipsReferenceCaptureWithDefaults + +`func NewReturnCreateDataRelationshipsReferenceCaptureWithDefaults() *ReturnCreateDataRelationshipsReferenceCapture` + +NewReturnCreateDataRelationshipsReferenceCaptureWithDefaults instantiates a new ReturnCreateDataRelationshipsReferenceCapture object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *ReturnCreateDataRelationshipsReferenceCapture) GetData() AuthorizationDataRelationshipsCapturesData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ReturnCreateDataRelationshipsReferenceCapture) GetDataOk() (*AuthorizationDataRelationshipsCapturesData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ReturnCreateDataRelationshipsReferenceCapture) SetData(v AuthorizationDataRelationshipsCapturesData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ReturnDataRelationships.md b/api/docs/ReturnDataRelationships.md index f17fa737..d746072d 100644 --- a/api/docs/ReturnDataRelationships.md +++ b/api/docs/ReturnDataRelationships.md @@ -9,9 +9,14 @@ Name | Type | Description | Notes **StockLocation** | Pointer to [**DeliveryLeadTimeDataRelationshipsStockLocation**](DeliveryLeadTimeDataRelationshipsStockLocation.md) | | [optional] **OriginAddress** | Pointer to [**BingGeocoderDataRelationshipsAddresses**](BingGeocoderDataRelationshipsAddresses.md) | | [optional] **DestinationAddress** | Pointer to [**BingGeocoderDataRelationshipsAddresses**](BingGeocoderDataRelationshipsAddresses.md) | | [optional] -**ReturnLineItems** | Pointer to [**ReturnDataRelationshipsReturnLineItems**](ReturnDataRelationshipsReturnLineItems.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] +**ReferenceCapture** | Pointer to [**AuthorizationDataRelationshipsCaptures**](AuthorizationDataRelationshipsCaptures.md) | | [optional] +**ReferenceRefund** | Pointer to [**CaptureDataRelationshipsRefunds**](CaptureDataRelationshipsRefunds.md) | | [optional] +**ReturnLineItems** | Pointer to [**LineItemDataRelationshipsReturnLineItems**](LineItemDataRelationshipsReturnLineItems.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**ResourceErrors** | Pointer to [**OrderDataRelationshipsResourceErrors**](OrderDataRelationshipsResourceErrors.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**AddressDataRelationshipsTags**](AddressDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -157,22 +162,72 @@ SetDestinationAddress sets DestinationAddress field to given value. HasDestinationAddress returns a boolean if a field has been set. +### GetReferenceCapture + +`func (o *ReturnDataRelationships) GetReferenceCapture() AuthorizationDataRelationshipsCaptures` + +GetReferenceCapture returns the ReferenceCapture field if non-nil, zero value otherwise. + +### GetReferenceCaptureOk + +`func (o *ReturnDataRelationships) GetReferenceCaptureOk() (*AuthorizationDataRelationshipsCaptures, bool)` + +GetReferenceCaptureOk returns a tuple with the ReferenceCapture field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceCapture + +`func (o *ReturnDataRelationships) SetReferenceCapture(v AuthorizationDataRelationshipsCaptures)` + +SetReferenceCapture sets ReferenceCapture field to given value. + +### HasReferenceCapture + +`func (o *ReturnDataRelationships) HasReferenceCapture() bool` + +HasReferenceCapture returns a boolean if a field has been set. + +### GetReferenceRefund + +`func (o *ReturnDataRelationships) GetReferenceRefund() CaptureDataRelationshipsRefunds` + +GetReferenceRefund returns the ReferenceRefund field if non-nil, zero value otherwise. + +### GetReferenceRefundOk + +`func (o *ReturnDataRelationships) GetReferenceRefundOk() (*CaptureDataRelationshipsRefunds, bool)` + +GetReferenceRefundOk returns a tuple with the ReferenceRefund field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceRefund + +`func (o *ReturnDataRelationships) SetReferenceRefund(v CaptureDataRelationshipsRefunds)` + +SetReferenceRefund sets ReferenceRefund field to given value. + +### HasReferenceRefund + +`func (o *ReturnDataRelationships) HasReferenceRefund() bool` + +HasReferenceRefund returns a boolean if a field has been set. + ### GetReturnLineItems -`func (o *ReturnDataRelationships) GetReturnLineItems() ReturnDataRelationshipsReturnLineItems` +`func (o *ReturnDataRelationships) GetReturnLineItems() LineItemDataRelationshipsReturnLineItems` GetReturnLineItems returns the ReturnLineItems field if non-nil, zero value otherwise. ### GetReturnLineItemsOk -`func (o *ReturnDataRelationships) GetReturnLineItemsOk() (*ReturnDataRelationshipsReturnLineItems, bool)` +`func (o *ReturnDataRelationships) GetReturnLineItemsOk() (*LineItemDataRelationshipsReturnLineItems, bool)` GetReturnLineItemsOk returns a tuple with the ReturnLineItems field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetReturnLineItems -`func (o *ReturnDataRelationships) SetReturnLineItems(v ReturnDataRelationshipsReturnLineItems)` +`func (o *ReturnDataRelationships) SetReturnLineItems(v LineItemDataRelationshipsReturnLineItems)` SetReturnLineItems sets ReturnLineItems field to given value. @@ -184,20 +239,20 @@ HasReturnLineItems returns a boolean if a field has been set. ### GetAttachments -`func (o *ReturnDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *ReturnDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *ReturnDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *ReturnDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *ReturnDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *ReturnDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -207,22 +262,47 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetResourceErrors + +`func (o *ReturnDataRelationships) GetResourceErrors() OrderDataRelationshipsResourceErrors` + +GetResourceErrors returns the ResourceErrors field if non-nil, zero value otherwise. + +### GetResourceErrorsOk + +`func (o *ReturnDataRelationships) GetResourceErrorsOk() (*OrderDataRelationshipsResourceErrors, bool)` + +GetResourceErrorsOk returns a tuple with the ResourceErrors field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceErrors + +`func (o *ReturnDataRelationships) SetResourceErrors(v OrderDataRelationshipsResourceErrors)` + +SetResourceErrors sets ResourceErrors field to given value. + +### HasResourceErrors + +`func (o *ReturnDataRelationships) HasResourceErrors() bool` + +HasResourceErrors returns a boolean if a field has been set. + ### GetEvents -`func (o *ReturnDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` +`func (o *ReturnDataRelationships) GetEvents() AddressDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *ReturnDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` +`func (o *ReturnDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *ReturnDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` +`func (o *ReturnDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -232,6 +312,56 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetTags + +`func (o *ReturnDataRelationships) GetTags() AddressDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ReturnDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ReturnDataRelationships) SetTags(v AddressDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ReturnDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *ReturnDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *ReturnDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *ReturnDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *ReturnDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/ReturnDataRelationshipsReturnLineItems.md b/api/docs/ReturnDataRelationshipsReturnLineItems.md deleted file mode 100644 index 71e85557..00000000 --- a/api/docs/ReturnDataRelationshipsReturnLineItems.md +++ /dev/null @@ -1,56 +0,0 @@ -# ReturnDataRelationshipsReturnLineItems - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | Pointer to [**ReturnDataRelationshipsReturnLineItemsData**](ReturnDataRelationshipsReturnLineItemsData.md) | | [optional] - -## Methods - -### NewReturnDataRelationshipsReturnLineItems - -`func NewReturnDataRelationshipsReturnLineItems() *ReturnDataRelationshipsReturnLineItems` - -NewReturnDataRelationshipsReturnLineItems instantiates a new ReturnDataRelationshipsReturnLineItems object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewReturnDataRelationshipsReturnLineItemsWithDefaults - -`func NewReturnDataRelationshipsReturnLineItemsWithDefaults() *ReturnDataRelationshipsReturnLineItems` - -NewReturnDataRelationshipsReturnLineItemsWithDefaults instantiates a new ReturnDataRelationshipsReturnLineItems object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *ReturnDataRelationshipsReturnLineItems) GetData() ReturnDataRelationshipsReturnLineItemsData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ReturnDataRelationshipsReturnLineItems) GetDataOk() (*ReturnDataRelationshipsReturnLineItemsData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ReturnDataRelationshipsReturnLineItems) SetData(v ReturnDataRelationshipsReturnLineItemsData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *ReturnDataRelationshipsReturnLineItems) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/ReturnLineItemCreateDataRelationshipsReturn.md b/api/docs/ReturnLineItemCreateDataRelationshipsReturn.md index 9195dbad..0d217a22 100644 --- a/api/docs/ReturnLineItemCreateDataRelationshipsReturn.md +++ b/api/docs/ReturnLineItemCreateDataRelationshipsReturn.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Data** | [**CustomerDataRelationshipsReturnsData**](CustomerDataRelationshipsReturnsData.md) | | +**Data** | [**CaptureDataRelationshipsReturnData**](CaptureDataRelationshipsReturnData.md) | | ## Methods ### NewReturnLineItemCreateDataRelationshipsReturn -`func NewReturnLineItemCreateDataRelationshipsReturn(data CustomerDataRelationshipsReturnsData, ) *ReturnLineItemCreateDataRelationshipsReturn` +`func NewReturnLineItemCreateDataRelationshipsReturn(data CaptureDataRelationshipsReturnData, ) *ReturnLineItemCreateDataRelationshipsReturn` NewReturnLineItemCreateDataRelationshipsReturn instantiates a new ReturnLineItemCreateDataRelationshipsReturn object This constructor will assign default values to properties that have it defined, @@ -27,20 +27,20 @@ but it doesn't guarantee that properties required by API are set ### GetData -`func (o *ReturnLineItemCreateDataRelationshipsReturn) GetData() CustomerDataRelationshipsReturnsData` +`func (o *ReturnLineItemCreateDataRelationshipsReturn) GetData() CaptureDataRelationshipsReturnData` GetData returns the Data field if non-nil, zero value otherwise. ### GetDataOk -`func (o *ReturnLineItemCreateDataRelationshipsReturn) GetDataOk() (*CustomerDataRelationshipsReturnsData, bool)` +`func (o *ReturnLineItemCreateDataRelationshipsReturn) GetDataOk() (*CaptureDataRelationshipsReturnData, bool)` GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetData -`func (o *ReturnLineItemCreateDataRelationshipsReturn) SetData(v CustomerDataRelationshipsReturnsData)` +`func (o *ReturnLineItemCreateDataRelationshipsReturn) SetData(v CaptureDataRelationshipsReturnData)` SetData sets Data field to given value. diff --git a/api/docs/ReturnLineItemDataRelationships.md b/api/docs/ReturnLineItemDataRelationships.md index 7e90e0a1..8774a530 100644 --- a/api/docs/ReturnLineItemDataRelationships.md +++ b/api/docs/ReturnLineItemDataRelationships.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Return** | Pointer to [**CustomerDataRelationshipsReturns**](CustomerDataRelationshipsReturns.md) | | [optional] +**Return** | Pointer to [**CaptureDataRelationshipsReturn**](CaptureDataRelationshipsReturn.md) | | [optional] **LineItem** | Pointer to [**LineItemOptionDataRelationshipsLineItem**](LineItemOptionDataRelationshipsLineItem.md) | | [optional] ## Methods @@ -28,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetReturn -`func (o *ReturnLineItemDataRelationships) GetReturn() CustomerDataRelationshipsReturns` +`func (o *ReturnLineItemDataRelationships) GetReturn() CaptureDataRelationshipsReturn` GetReturn returns the Return field if non-nil, zero value otherwise. ### GetReturnOk -`func (o *ReturnLineItemDataRelationships) GetReturnOk() (*CustomerDataRelationshipsReturns, bool)` +`func (o *ReturnLineItemDataRelationships) GetReturnOk() (*CaptureDataRelationshipsReturn, bool)` GetReturnOk returns a tuple with the Return field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetReturn -`func (o *ReturnLineItemDataRelationships) SetReturn(v CustomerDataRelationshipsReturns)` +`func (o *ReturnLineItemDataRelationships) SetReturn(v CaptureDataRelationshipsReturn)` SetReturn sets Return field to given value. diff --git a/api/docs/ReturnLineItemsApi.md b/api/docs/ReturnLineItemsApi.md index e9f1e46e..42654a32 100644 --- a/api/docs/ReturnLineItemsApi.md +++ b/api/docs/ReturnLineItemsApi.md @@ -5,6 +5,7 @@ All URIs are relative to *https://.commercelayer.io/api* Method | HTTP request | Description ------------- | ------------- | ------------- [**DELETEReturnLineItemsReturnLineItemId**](ReturnLineItemsApi.md#DELETEReturnLineItemsReturnLineItemId) | **Delete** /return_line_items/{returnLineItemId} | Delete a return line item +[**GETLineItemIdReturnLineItems**](ReturnLineItemsApi.md#GETLineItemIdReturnLineItems) | **Get** /line_items/{lineItemId}/return_line_items | Retrieve the return line items associated to the line item [**GETReturnIdReturnLineItems**](ReturnLineItemsApi.md#GETReturnIdReturnLineItems) | **Get** /returns/{returnId}/return_line_items | Retrieve the return line items associated to the return [**GETReturnLineItems**](ReturnLineItemsApi.md#GETReturnLineItems) | **Get** /return_line_items | List all return line items [**GETReturnLineItemsReturnLineItemId**](ReturnLineItemsApi.md#GETReturnLineItemsReturnLineItemId) | **Get** /return_line_items/{returnLineItemId} | Retrieve a return line item @@ -81,6 +82,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETLineItemIdReturnLineItems + +> GETLineItemIdReturnLineItems(ctx, lineItemId).Execute() + +Retrieve the return line items associated to the line item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + lineItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ReturnLineItemsApi.GETLineItemIdReturnLineItems(context.Background(), lineItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReturnLineItemsApi.GETLineItemIdReturnLineItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**lineItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETLineItemIdReturnLineItemsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETReturnIdReturnLineItems > GETReturnIdReturnLineItems(ctx, returnId).Execute() diff --git a/api/docs/ReturnUpdateData.md b/api/docs/ReturnUpdateData.md index 66fafcda..7825cccd 100644 --- a/api/docs/ReturnUpdateData.md +++ b/api/docs/ReturnUpdateData.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Type** | **interface{}** | The resource's type | **Id** | **interface{}** | The resource's id | **Attributes** | [**PATCHReturnsReturnId200ResponseDataAttributes**](PATCHReturnsReturnId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**PackageUpdateDataRelationships**](PackageUpdateDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**ReturnUpdateDataRelationships**](ReturnUpdateDataRelationships.md) | | [optional] ## Methods @@ -110,20 +110,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *ReturnUpdateData) GetRelationships() PackageUpdateDataRelationships` +`func (o *ReturnUpdateData) GetRelationships() ReturnUpdateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *ReturnUpdateData) GetRelationshipsOk() (*PackageUpdateDataRelationships, bool)` +`func (o *ReturnUpdateData) GetRelationshipsOk() (*ReturnUpdateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *ReturnUpdateData) SetRelationships(v PackageUpdateDataRelationships)` +`func (o *ReturnUpdateData) SetRelationships(v ReturnUpdateDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/ReturnUpdateDataRelationships.md b/api/docs/ReturnUpdateDataRelationships.md new file mode 100644 index 00000000..4f5a6f27 --- /dev/null +++ b/api/docs/ReturnUpdateDataRelationships.md @@ -0,0 +1,108 @@ +# ReturnUpdateDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StockLocation** | Pointer to [**DeliveryLeadTimeCreateDataRelationshipsStockLocation**](DeliveryLeadTimeCreateDataRelationshipsStockLocation.md) | | [optional] +**ReferenceCapture** | Pointer to [**ReturnCreateDataRelationshipsReferenceCapture**](ReturnCreateDataRelationshipsReferenceCapture.md) | | [optional] +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] + +## Methods + +### NewReturnUpdateDataRelationships + +`func NewReturnUpdateDataRelationships() *ReturnUpdateDataRelationships` + +NewReturnUpdateDataRelationships instantiates a new ReturnUpdateDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewReturnUpdateDataRelationshipsWithDefaults + +`func NewReturnUpdateDataRelationshipsWithDefaults() *ReturnUpdateDataRelationships` + +NewReturnUpdateDataRelationshipsWithDefaults instantiates a new ReturnUpdateDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStockLocation + +`func (o *ReturnUpdateDataRelationships) GetStockLocation() DeliveryLeadTimeCreateDataRelationshipsStockLocation` + +GetStockLocation returns the StockLocation field if non-nil, zero value otherwise. + +### GetStockLocationOk + +`func (o *ReturnUpdateDataRelationships) GetStockLocationOk() (*DeliveryLeadTimeCreateDataRelationshipsStockLocation, bool)` + +GetStockLocationOk returns a tuple with the StockLocation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockLocation + +`func (o *ReturnUpdateDataRelationships) SetStockLocation(v DeliveryLeadTimeCreateDataRelationshipsStockLocation)` + +SetStockLocation sets StockLocation field to given value. + +### HasStockLocation + +`func (o *ReturnUpdateDataRelationships) HasStockLocation() bool` + +HasStockLocation returns a boolean if a field has been set. + +### GetReferenceCapture + +`func (o *ReturnUpdateDataRelationships) GetReferenceCapture() ReturnCreateDataRelationshipsReferenceCapture` + +GetReferenceCapture returns the ReferenceCapture field if non-nil, zero value otherwise. + +### GetReferenceCaptureOk + +`func (o *ReturnUpdateDataRelationships) GetReferenceCaptureOk() (*ReturnCreateDataRelationshipsReferenceCapture, bool)` + +GetReferenceCaptureOk returns a tuple with the ReferenceCapture field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceCapture + +`func (o *ReturnUpdateDataRelationships) SetReferenceCapture(v ReturnCreateDataRelationshipsReferenceCapture)` + +SetReferenceCapture sets ReferenceCapture field to given value. + +### HasReferenceCapture + +`func (o *ReturnUpdateDataRelationships) HasReferenceCapture() bool` + +HasReferenceCapture returns a boolean if a field has been set. + +### GetTags + +`func (o *ReturnUpdateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ReturnUpdateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ReturnUpdateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ReturnUpdateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ReturnsApi.md b/api/docs/ReturnsApi.md index 513be8d4..9ab25cd9 100644 --- a/api/docs/ReturnsApi.md +++ b/api/docs/ReturnsApi.md @@ -5,8 +5,10 @@ All URIs are relative to *https://.commercelayer.io/api* Method | HTTP request | Description ------------- | ------------- | ------------- [**DELETEReturnsReturnId**](ReturnsApi.md#DELETEReturnsReturnId) | **Delete** /returns/{returnId} | Delete a return +[**GETCaptureIdReturn**](ReturnsApi.md#GETCaptureIdReturn) | **Get** /captures/{captureId}/return | Retrieve the return associated to the capture [**GETCustomerIdReturns**](ReturnsApi.md#GETCustomerIdReturns) | **Get** /customers/{customerId}/returns | Retrieve the returns associated to the customer [**GETOrderIdReturns**](ReturnsApi.md#GETOrderIdReturns) | **Get** /orders/{orderId}/returns | Retrieve the returns associated to the order +[**GETRefundIdReturn**](ReturnsApi.md#GETRefundIdReturn) | **Get** /refunds/{refundId}/return | Retrieve the return associated to the refund [**GETReturnLineItemIdReturn**](ReturnsApi.md#GETReturnLineItemIdReturn) | **Get** /return_line_items/{returnLineItemId}/return | Retrieve the return associated to the return line item [**GETReturns**](ReturnsApi.md#GETReturns) | **Get** /returns | List all returns [**GETReturnsReturnId**](ReturnsApi.md#GETReturnsReturnId) | **Get** /returns/{returnId} | Retrieve a return @@ -83,6 +85,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETCaptureIdReturn + +> GETCaptureIdReturn(ctx, captureId).Execute() + +Retrieve the return associated to the capture + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + captureId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ReturnsApi.GETCaptureIdReturn(context.Background(), captureId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReturnsApi.GETCaptureIdReturn``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**captureId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCaptureIdReturnRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETCustomerIdReturns > GETCustomerIdReturns(ctx, customerId).Execute() @@ -219,6 +289,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETRefundIdReturn + +> GETRefundIdReturn(ctx, refundId).Execute() + +Retrieve the return associated to the refund + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + refundId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ReturnsApi.GETRefundIdReturn(context.Background(), refundId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReturnsApi.GETRefundIdReturn``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**refundId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETRefundIdReturnRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETReturnLineItemIdReturn > GETReturnLineItemIdReturn(ctx, returnLineItemId).Execute() diff --git a/api/docs/SatispayGatewayCreateData.md b/api/docs/SatispayGatewayCreateData.md index 9f4fad95..4f774308 100644 --- a/api/docs/SatispayGatewayCreateData.md +++ b/api/docs/SatispayGatewayCreateData.md @@ -5,14 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | -**Attributes** | [**POSTManualGateways201ResponseDataAttributes**](POSTManualGateways201ResponseDataAttributes.md) | | +**Attributes** | [**POSTSatispayGateways201ResponseDataAttributes**](POSTSatispayGateways201ResponseDataAttributes.md) | | **Relationships** | Pointer to [**SatispayGatewayCreateDataRelationships**](SatispayGatewayCreateDataRelationships.md) | | [optional] ## Methods ### NewSatispayGatewayCreateData -`func NewSatispayGatewayCreateData(type_ interface{}, attributes POSTManualGateways201ResponseDataAttributes, ) *SatispayGatewayCreateData` +`func NewSatispayGatewayCreateData(type_ interface{}, attributes POSTSatispayGateways201ResponseDataAttributes, ) *SatispayGatewayCreateData` NewSatispayGatewayCreateData instantiates a new SatispayGatewayCreateData object This constructor will assign default values to properties that have it defined, @@ -59,20 +59,20 @@ SetType sets Type field to given value. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetAttributes -`func (o *SatispayGatewayCreateData) GetAttributes() POSTManualGateways201ResponseDataAttributes` +`func (o *SatispayGatewayCreateData) GetAttributes() POSTSatispayGateways201ResponseDataAttributes` GetAttributes returns the Attributes field if non-nil, zero value otherwise. ### GetAttributesOk -`func (o *SatispayGatewayCreateData) GetAttributesOk() (*POSTManualGateways201ResponseDataAttributes, bool)` +`func (o *SatispayGatewayCreateData) GetAttributesOk() (*POSTSatispayGateways201ResponseDataAttributes, bool)` GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttributes -`func (o *SatispayGatewayCreateData) SetAttributes(v POSTManualGateways201ResponseDataAttributes)` +`func (o *SatispayGatewayCreateData) SetAttributes(v POSTSatispayGateways201ResponseDataAttributes)` SetAttributes sets Attributes field to given value. diff --git a/api/docs/SatispayGatewayDataRelationships.md b/api/docs/SatispayGatewayDataRelationships.md index 9892cafc..a1a5deff 100644 --- a/api/docs/SatispayGatewayDataRelationships.md +++ b/api/docs/SatispayGatewayDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**AdyenGatewayDataRelationshipsPaymentMethods**](AdyenGatewayDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] **SatispayPayments** | Pointer to [**SatispayGatewayDataRelationshipsSatispayPayments**](SatispayGatewayDataRelationshipsSatispayPayments.md) | | [optional] ## Methods @@ -51,6 +52,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *SatispayGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *SatispayGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *SatispayGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *SatispayGatewayDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetSatispayPayments `func (o *SatispayGatewayDataRelationships) GetSatispayPayments() SatispayGatewayDataRelationshipsSatispayPayments` diff --git a/api/docs/SatispayGatewaysApi.md b/api/docs/SatispayGatewaysApi.md index 62f33655..b3eaf3ff 100644 --- a/api/docs/SatispayGatewaysApi.md +++ b/api/docs/SatispayGatewaysApi.md @@ -304,7 +304,7 @@ import ( ) func main() { - satispayGatewayCreate := *openapiclient.NewSatispayGatewayCreate(*openapiclient.NewSatispayGatewayCreateData(interface{}(123), *openapiclient.NewPOSTManualGateways201ResponseDataAttributes(interface{}(US payment gateway)))) // SatispayGatewayCreate | + satispayGatewayCreate := *openapiclient.NewSatispayGatewayCreate(*openapiclient.NewSatispayGatewayCreateData(interface{}(123), *openapiclient.NewPOSTSatispayGateways201ResponseDataAttributes(interface{}(US payment gateway), interface{}(623ECX)))) // SatispayGatewayCreate | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/api/docs/ShipmentCreate.md b/api/docs/ShipmentCreate.md new file mode 100644 index 00000000..79df85bd --- /dev/null +++ b/api/docs/ShipmentCreate.md @@ -0,0 +1,51 @@ +# ShipmentCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ShipmentCreateData**](ShipmentCreateData.md) | | + +## Methods + +### NewShipmentCreate + +`func NewShipmentCreate(data ShipmentCreateData, ) *ShipmentCreate` + +NewShipmentCreate instantiates a new ShipmentCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewShipmentCreateWithDefaults + +`func NewShipmentCreateWithDefaults() *ShipmentCreate` + +NewShipmentCreateWithDefaults instantiates a new ShipmentCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *ShipmentCreate) GetData() ShipmentCreateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ShipmentCreate) GetDataOk() (*ShipmentCreateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ShipmentCreate) SetData(v ShipmentCreateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ShipmentCreateData.md b/api/docs/ShipmentCreateData.md new file mode 100644 index 00000000..18b4bc5c --- /dev/null +++ b/api/docs/ShipmentCreateData.md @@ -0,0 +1,108 @@ +# ShipmentCreateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**POSTAdyenPayments201ResponseDataAttributes**](POSTAdyenPayments201ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**ShipmentCreateDataRelationships**](ShipmentCreateDataRelationships.md) | | [optional] + +## Methods + +### NewShipmentCreateData + +`func NewShipmentCreateData(type_ interface{}, attributes POSTAdyenPayments201ResponseDataAttributes, ) *ShipmentCreateData` + +NewShipmentCreateData instantiates a new ShipmentCreateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewShipmentCreateDataWithDefaults + +`func NewShipmentCreateDataWithDefaults() *ShipmentCreateData` + +NewShipmentCreateDataWithDefaults instantiates a new ShipmentCreateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *ShipmentCreateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ShipmentCreateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ShipmentCreateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *ShipmentCreateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *ShipmentCreateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *ShipmentCreateData) GetAttributes() POSTAdyenPayments201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *ShipmentCreateData) GetAttributesOk() (*POSTAdyenPayments201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *ShipmentCreateData) SetAttributes(v POSTAdyenPayments201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *ShipmentCreateData) GetRelationships() ShipmentCreateDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *ShipmentCreateData) GetRelationshipsOk() (*ShipmentCreateDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *ShipmentCreateData) SetRelationships(v ShipmentCreateDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *ShipmentCreateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ShipmentCreateDataRelationships.md b/api/docs/ShipmentCreateDataRelationships.md new file mode 100644 index 00000000..4737bcc0 --- /dev/null +++ b/api/docs/ShipmentCreateDataRelationships.md @@ -0,0 +1,176 @@ +# ShipmentCreateDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Order** | [**AdyenPaymentCreateDataRelationshipsOrder**](AdyenPaymentCreateDataRelationshipsOrder.md) | | +**ShippingCategory** | Pointer to [**ShipmentCreateDataRelationshipsShippingCategory**](ShipmentCreateDataRelationshipsShippingCategory.md) | | [optional] +**InventoryStockLocation** | [**ShipmentCreateDataRelationshipsInventoryStockLocation**](ShipmentCreateDataRelationshipsInventoryStockLocation.md) | | +**ShippingAddress** | Pointer to [**CustomerAddressCreateDataRelationshipsAddress**](CustomerAddressCreateDataRelationshipsAddress.md) | | [optional] +**ShippingMethod** | Pointer to [**DeliveryLeadTimeCreateDataRelationshipsShippingMethod**](DeliveryLeadTimeCreateDataRelationshipsShippingMethod.md) | | [optional] +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] + +## Methods + +### NewShipmentCreateDataRelationships + +`func NewShipmentCreateDataRelationships(order AdyenPaymentCreateDataRelationshipsOrder, inventoryStockLocation ShipmentCreateDataRelationshipsInventoryStockLocation, ) *ShipmentCreateDataRelationships` + +NewShipmentCreateDataRelationships instantiates a new ShipmentCreateDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewShipmentCreateDataRelationshipsWithDefaults + +`func NewShipmentCreateDataRelationshipsWithDefaults() *ShipmentCreateDataRelationships` + +NewShipmentCreateDataRelationshipsWithDefaults instantiates a new ShipmentCreateDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrder + +`func (o *ShipmentCreateDataRelationships) GetOrder() AdyenPaymentCreateDataRelationshipsOrder` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *ShipmentCreateDataRelationships) GetOrderOk() (*AdyenPaymentCreateDataRelationshipsOrder, bool)` + +GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrder + +`func (o *ShipmentCreateDataRelationships) SetOrder(v AdyenPaymentCreateDataRelationshipsOrder)` + +SetOrder sets Order field to given value. + + +### GetShippingCategory + +`func (o *ShipmentCreateDataRelationships) GetShippingCategory() ShipmentCreateDataRelationshipsShippingCategory` + +GetShippingCategory returns the ShippingCategory field if non-nil, zero value otherwise. + +### GetShippingCategoryOk + +`func (o *ShipmentCreateDataRelationships) GetShippingCategoryOk() (*ShipmentCreateDataRelationshipsShippingCategory, bool)` + +GetShippingCategoryOk returns a tuple with the ShippingCategory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingCategory + +`func (o *ShipmentCreateDataRelationships) SetShippingCategory(v ShipmentCreateDataRelationshipsShippingCategory)` + +SetShippingCategory sets ShippingCategory field to given value. + +### HasShippingCategory + +`func (o *ShipmentCreateDataRelationships) HasShippingCategory() bool` + +HasShippingCategory returns a boolean if a field has been set. + +### GetInventoryStockLocation + +`func (o *ShipmentCreateDataRelationships) GetInventoryStockLocation() ShipmentCreateDataRelationshipsInventoryStockLocation` + +GetInventoryStockLocation returns the InventoryStockLocation field if non-nil, zero value otherwise. + +### GetInventoryStockLocationOk + +`func (o *ShipmentCreateDataRelationships) GetInventoryStockLocationOk() (*ShipmentCreateDataRelationshipsInventoryStockLocation, bool)` + +GetInventoryStockLocationOk returns a tuple with the InventoryStockLocation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryStockLocation + +`func (o *ShipmentCreateDataRelationships) SetInventoryStockLocation(v ShipmentCreateDataRelationshipsInventoryStockLocation)` + +SetInventoryStockLocation sets InventoryStockLocation field to given value. + + +### GetShippingAddress + +`func (o *ShipmentCreateDataRelationships) GetShippingAddress() CustomerAddressCreateDataRelationshipsAddress` + +GetShippingAddress returns the ShippingAddress field if non-nil, zero value otherwise. + +### GetShippingAddressOk + +`func (o *ShipmentCreateDataRelationships) GetShippingAddressOk() (*CustomerAddressCreateDataRelationshipsAddress, bool)` + +GetShippingAddressOk returns a tuple with the ShippingAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingAddress + +`func (o *ShipmentCreateDataRelationships) SetShippingAddress(v CustomerAddressCreateDataRelationshipsAddress)` + +SetShippingAddress sets ShippingAddress field to given value. + +### HasShippingAddress + +`func (o *ShipmentCreateDataRelationships) HasShippingAddress() bool` + +HasShippingAddress returns a boolean if a field has been set. + +### GetShippingMethod + +`func (o *ShipmentCreateDataRelationships) GetShippingMethod() DeliveryLeadTimeCreateDataRelationshipsShippingMethod` + +GetShippingMethod returns the ShippingMethod field if non-nil, zero value otherwise. + +### GetShippingMethodOk + +`func (o *ShipmentCreateDataRelationships) GetShippingMethodOk() (*DeliveryLeadTimeCreateDataRelationshipsShippingMethod, bool)` + +GetShippingMethodOk returns a tuple with the ShippingMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingMethod + +`func (o *ShipmentCreateDataRelationships) SetShippingMethod(v DeliveryLeadTimeCreateDataRelationshipsShippingMethod)` + +SetShippingMethod sets ShippingMethod field to given value. + +### HasShippingMethod + +`func (o *ShipmentCreateDataRelationships) HasShippingMethod() bool` + +HasShippingMethod returns a boolean if a field has been set. + +### GetTags + +`func (o *ShipmentCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ShipmentCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ShipmentCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ShipmentCreateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ShipmentCreateDataRelationshipsInventoryStockLocation.md b/api/docs/ShipmentCreateDataRelationshipsInventoryStockLocation.md new file mode 100644 index 00000000..1e0ab41e --- /dev/null +++ b/api/docs/ShipmentCreateDataRelationshipsInventoryStockLocation.md @@ -0,0 +1,51 @@ +# ShipmentCreateDataRelationshipsInventoryStockLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**InventoryModelDataRelationshipsInventoryStockLocationsData**](InventoryModelDataRelationshipsInventoryStockLocationsData.md) | | + +## Methods + +### NewShipmentCreateDataRelationshipsInventoryStockLocation + +`func NewShipmentCreateDataRelationshipsInventoryStockLocation(data InventoryModelDataRelationshipsInventoryStockLocationsData, ) *ShipmentCreateDataRelationshipsInventoryStockLocation` + +NewShipmentCreateDataRelationshipsInventoryStockLocation instantiates a new ShipmentCreateDataRelationshipsInventoryStockLocation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewShipmentCreateDataRelationshipsInventoryStockLocationWithDefaults + +`func NewShipmentCreateDataRelationshipsInventoryStockLocationWithDefaults() *ShipmentCreateDataRelationshipsInventoryStockLocation` + +NewShipmentCreateDataRelationshipsInventoryStockLocationWithDefaults instantiates a new ShipmentCreateDataRelationshipsInventoryStockLocation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *ShipmentCreateDataRelationshipsInventoryStockLocation) GetData() InventoryModelDataRelationshipsInventoryStockLocationsData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ShipmentCreateDataRelationshipsInventoryStockLocation) GetDataOk() (*InventoryModelDataRelationshipsInventoryStockLocationsData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ShipmentCreateDataRelationshipsInventoryStockLocation) SetData(v InventoryModelDataRelationshipsInventoryStockLocationsData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ShipmentCreateDataRelationshipsShippingCategory.md b/api/docs/ShipmentCreateDataRelationshipsShippingCategory.md new file mode 100644 index 00000000..db2967f5 --- /dev/null +++ b/api/docs/ShipmentCreateDataRelationshipsShippingCategory.md @@ -0,0 +1,51 @@ +# ShipmentCreateDataRelationshipsShippingCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ShipmentDataRelationshipsShippingCategoryData**](ShipmentDataRelationshipsShippingCategoryData.md) | | + +## Methods + +### NewShipmentCreateDataRelationshipsShippingCategory + +`func NewShipmentCreateDataRelationshipsShippingCategory(data ShipmentDataRelationshipsShippingCategoryData, ) *ShipmentCreateDataRelationshipsShippingCategory` + +NewShipmentCreateDataRelationshipsShippingCategory instantiates a new ShipmentCreateDataRelationshipsShippingCategory object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewShipmentCreateDataRelationshipsShippingCategoryWithDefaults + +`func NewShipmentCreateDataRelationshipsShippingCategoryWithDefaults() *ShipmentCreateDataRelationshipsShippingCategory` + +NewShipmentCreateDataRelationshipsShippingCategoryWithDefaults instantiates a new ShipmentCreateDataRelationshipsShippingCategory object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *ShipmentCreateDataRelationshipsShippingCategory) GetData() ShipmentDataRelationshipsShippingCategoryData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ShipmentCreateDataRelationshipsShippingCategory) GetDataOk() (*ShipmentDataRelationshipsShippingCategoryData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ShipmentCreateDataRelationshipsShippingCategory) SetData(v ShipmentDataRelationshipsShippingCategoryData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ShipmentDataRelationships.md b/api/docs/ShipmentDataRelationships.md index 1db13ce8..ff137723 100644 --- a/api/docs/ShipmentDataRelationships.md +++ b/api/docs/ShipmentDataRelationships.md @@ -6,19 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Order** | Pointer to [**AdyenPaymentDataRelationshipsOrder**](AdyenPaymentDataRelationshipsOrder.md) | | [optional] **ShippingCategory** | Pointer to [**ShipmentDataRelationshipsShippingCategory**](ShipmentDataRelationshipsShippingCategory.md) | | [optional] +**InventoryStockLocation** | Pointer to [**InventoryModelDataRelationshipsInventoryStockLocations**](InventoryModelDataRelationshipsInventoryStockLocations.md) | | [optional] **StockLocation** | Pointer to [**DeliveryLeadTimeDataRelationshipsStockLocation**](DeliveryLeadTimeDataRelationshipsStockLocation.md) | | [optional] **OriginAddress** | Pointer to [**BingGeocoderDataRelationshipsAddresses**](BingGeocoderDataRelationshipsAddresses.md) | | [optional] **ShippingAddress** | Pointer to [**BingGeocoderDataRelationshipsAddresses**](BingGeocoderDataRelationshipsAddresses.md) | | [optional] **ShippingMethod** | Pointer to [**DeliveryLeadTimeDataRelationshipsShippingMethod**](DeliveryLeadTimeDataRelationshipsShippingMethod.md) | | [optional] **DeliveryLeadTime** | Pointer to [**ShipmentDataRelationshipsDeliveryLeadTime**](ShipmentDataRelationshipsDeliveryLeadTime.md) | | [optional] -**ShipmentLineItems** | Pointer to [**LineItemDataRelationshipsShipmentLineItems**](LineItemDataRelationshipsShipmentLineItems.md) | | [optional] **StockLineItems** | Pointer to [**LineItemDataRelationshipsStockLineItems**](LineItemDataRelationshipsStockLineItems.md) | | [optional] **StockTransfers** | Pointer to [**LineItemDataRelationshipsStockTransfers**](LineItemDataRelationshipsStockTransfers.md) | | [optional] +**LineItems** | Pointer to [**LineItemOptionDataRelationshipsLineItem**](LineItemOptionDataRelationshipsLineItem.md) | | [optional] **AvailableShippingMethods** | Pointer to [**DeliveryLeadTimeDataRelationshipsShippingMethod**](DeliveryLeadTimeDataRelationshipsShippingMethod.md) | | [optional] **CarrierAccounts** | Pointer to [**ShipmentDataRelationshipsCarrierAccounts**](ShipmentDataRelationshipsCarrierAccounts.md) | | [optional] **Parcels** | Pointer to [**PackageDataRelationshipsParcels**](PackageDataRelationshipsParcels.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**AddressDataRelationshipsTags**](AddressDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -89,6 +92,31 @@ SetShippingCategory sets ShippingCategory field to given value. HasShippingCategory returns a boolean if a field has been set. +### GetInventoryStockLocation + +`func (o *ShipmentDataRelationships) GetInventoryStockLocation() InventoryModelDataRelationshipsInventoryStockLocations` + +GetInventoryStockLocation returns the InventoryStockLocation field if non-nil, zero value otherwise. + +### GetInventoryStockLocationOk + +`func (o *ShipmentDataRelationships) GetInventoryStockLocationOk() (*InventoryModelDataRelationshipsInventoryStockLocations, bool)` + +GetInventoryStockLocationOk returns a tuple with the InventoryStockLocation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryStockLocation + +`func (o *ShipmentDataRelationships) SetInventoryStockLocation(v InventoryModelDataRelationshipsInventoryStockLocations)` + +SetInventoryStockLocation sets InventoryStockLocation field to given value. + +### HasInventoryStockLocation + +`func (o *ShipmentDataRelationships) HasInventoryStockLocation() bool` + +HasInventoryStockLocation returns a boolean if a field has been set. + ### GetStockLocation `func (o *ShipmentDataRelationships) GetStockLocation() DeliveryLeadTimeDataRelationshipsStockLocation` @@ -214,31 +242,6 @@ SetDeliveryLeadTime sets DeliveryLeadTime field to given value. HasDeliveryLeadTime returns a boolean if a field has been set. -### GetShipmentLineItems - -`func (o *ShipmentDataRelationships) GetShipmentLineItems() LineItemDataRelationshipsShipmentLineItems` - -GetShipmentLineItems returns the ShipmentLineItems field if non-nil, zero value otherwise. - -### GetShipmentLineItemsOk - -`func (o *ShipmentDataRelationships) GetShipmentLineItemsOk() (*LineItemDataRelationshipsShipmentLineItems, bool)` - -GetShipmentLineItemsOk returns a tuple with the ShipmentLineItems field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetShipmentLineItems - -`func (o *ShipmentDataRelationships) SetShipmentLineItems(v LineItemDataRelationshipsShipmentLineItems)` - -SetShipmentLineItems sets ShipmentLineItems field to given value. - -### HasShipmentLineItems - -`func (o *ShipmentDataRelationships) HasShipmentLineItems() bool` - -HasShipmentLineItems returns a boolean if a field has been set. - ### GetStockLineItems `func (o *ShipmentDataRelationships) GetStockLineItems() LineItemDataRelationshipsStockLineItems` @@ -289,6 +292,31 @@ SetStockTransfers sets StockTransfers field to given value. HasStockTransfers returns a boolean if a field has been set. +### GetLineItems + +`func (o *ShipmentDataRelationships) GetLineItems() LineItemOptionDataRelationshipsLineItem` + +GetLineItems returns the LineItems field if non-nil, zero value otherwise. + +### GetLineItemsOk + +`func (o *ShipmentDataRelationships) GetLineItemsOk() (*LineItemOptionDataRelationshipsLineItem, bool)` + +GetLineItemsOk returns a tuple with the LineItems field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLineItems + +`func (o *ShipmentDataRelationships) SetLineItems(v LineItemOptionDataRelationshipsLineItem)` + +SetLineItems sets LineItems field to given value. + +### HasLineItems + +`func (o *ShipmentDataRelationships) HasLineItems() bool` + +HasLineItems returns a boolean if a field has been set. + ### GetAvailableShippingMethods `func (o *ShipmentDataRelationships) GetAvailableShippingMethods() DeliveryLeadTimeDataRelationshipsShippingMethod` @@ -366,20 +394,20 @@ HasParcels returns a boolean if a field has been set. ### GetAttachments -`func (o *ShipmentDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *ShipmentDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *ShipmentDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *ShipmentDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *ShipmentDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *ShipmentDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -391,20 +419,20 @@ HasAttachments returns a boolean if a field has been set. ### GetEvents -`func (o *ShipmentDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` +`func (o *ShipmentDataRelationships) GetEvents() AddressDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *ShipmentDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` +`func (o *ShipmentDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *ShipmentDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` +`func (o *ShipmentDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -414,6 +442,56 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetTags + +`func (o *ShipmentDataRelationships) GetTags() AddressDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ShipmentDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ShipmentDataRelationships) SetTags(v AddressDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ShipmentDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *ShipmentDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *ShipmentDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *ShipmentDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *ShipmentDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/ShipmentUpdateDataRelationships.md b/api/docs/ShipmentUpdateDataRelationships.md index d294ba6a..cd6a7bda 100644 --- a/api/docs/ShipmentUpdateDataRelationships.md +++ b/api/docs/ShipmentUpdateDataRelationships.md @@ -4,7 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**ShippingCategory** | Pointer to [**ShipmentCreateDataRelationshipsShippingCategory**](ShipmentCreateDataRelationshipsShippingCategory.md) | | [optional] +**InventoryStockLocation** | Pointer to [**ShipmentCreateDataRelationshipsInventoryStockLocation**](ShipmentCreateDataRelationshipsInventoryStockLocation.md) | | [optional] +**ShippingAddress** | Pointer to [**CustomerAddressCreateDataRelationshipsAddress**](CustomerAddressCreateDataRelationshipsAddress.md) | | [optional] **ShippingMethod** | Pointer to [**DeliveryLeadTimeCreateDataRelationshipsShippingMethod**](DeliveryLeadTimeCreateDataRelationshipsShippingMethod.md) | | [optional] +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] ## Methods @@ -25,6 +29,81 @@ NewShipmentUpdateDataRelationshipsWithDefaults instantiates a new ShipmentUpdate This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetShippingCategory + +`func (o *ShipmentUpdateDataRelationships) GetShippingCategory() ShipmentCreateDataRelationshipsShippingCategory` + +GetShippingCategory returns the ShippingCategory field if non-nil, zero value otherwise. + +### GetShippingCategoryOk + +`func (o *ShipmentUpdateDataRelationships) GetShippingCategoryOk() (*ShipmentCreateDataRelationshipsShippingCategory, bool)` + +GetShippingCategoryOk returns a tuple with the ShippingCategory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingCategory + +`func (o *ShipmentUpdateDataRelationships) SetShippingCategory(v ShipmentCreateDataRelationshipsShippingCategory)` + +SetShippingCategory sets ShippingCategory field to given value. + +### HasShippingCategory + +`func (o *ShipmentUpdateDataRelationships) HasShippingCategory() bool` + +HasShippingCategory returns a boolean if a field has been set. + +### GetInventoryStockLocation + +`func (o *ShipmentUpdateDataRelationships) GetInventoryStockLocation() ShipmentCreateDataRelationshipsInventoryStockLocation` + +GetInventoryStockLocation returns the InventoryStockLocation field if non-nil, zero value otherwise. + +### GetInventoryStockLocationOk + +`func (o *ShipmentUpdateDataRelationships) GetInventoryStockLocationOk() (*ShipmentCreateDataRelationshipsInventoryStockLocation, bool)` + +GetInventoryStockLocationOk returns a tuple with the InventoryStockLocation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryStockLocation + +`func (o *ShipmentUpdateDataRelationships) SetInventoryStockLocation(v ShipmentCreateDataRelationshipsInventoryStockLocation)` + +SetInventoryStockLocation sets InventoryStockLocation field to given value. + +### HasInventoryStockLocation + +`func (o *ShipmentUpdateDataRelationships) HasInventoryStockLocation() bool` + +HasInventoryStockLocation returns a boolean if a field has been set. + +### GetShippingAddress + +`func (o *ShipmentUpdateDataRelationships) GetShippingAddress() CustomerAddressCreateDataRelationshipsAddress` + +GetShippingAddress returns the ShippingAddress field if non-nil, zero value otherwise. + +### GetShippingAddressOk + +`func (o *ShipmentUpdateDataRelationships) GetShippingAddressOk() (*CustomerAddressCreateDataRelationshipsAddress, bool)` + +GetShippingAddressOk returns a tuple with the ShippingAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingAddress + +`func (o *ShipmentUpdateDataRelationships) SetShippingAddress(v CustomerAddressCreateDataRelationshipsAddress)` + +SetShippingAddress sets ShippingAddress field to given value. + +### HasShippingAddress + +`func (o *ShipmentUpdateDataRelationships) HasShippingAddress() bool` + +HasShippingAddress returns a boolean if a field has been set. + ### GetShippingMethod `func (o *ShipmentUpdateDataRelationships) GetShippingMethod() DeliveryLeadTimeCreateDataRelationshipsShippingMethod` @@ -50,6 +129,31 @@ SetShippingMethod sets ShippingMethod field to given value. HasShippingMethod returns a boolean if a field has been set. +### GetTags + +`func (o *ShipmentUpdateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ShipmentUpdateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ShipmentUpdateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ShipmentUpdateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/ShipmentsApi.md b/api/docs/ShipmentsApi.md index 9fbe8b17..be57e725 100644 --- a/api/docs/ShipmentsApi.md +++ b/api/docs/ShipmentsApi.md @@ -4,6 +4,7 @@ All URIs are relative to *https://.commercelayer.io/api* Method | HTTP request | Description ------------- | ------------- | ------------- +[**DELETEShipmentsShipmentId**](ShipmentsApi.md#DELETEShipmentsShipmentId) | **Delete** /shipments/{shipmentId} | Delete a shipment [**GETOrderIdShipments**](ShipmentsApi.md#GETOrderIdShipments) | **Get** /orders/{orderId}/shipments | Retrieve the shipments associated to the order [**GETParcelIdShipment**](ShipmentsApi.md#GETParcelIdShipment) | **Get** /parcels/{parcelId}/shipment | Retrieve the shipment associated to the parcel [**GETShipments**](ShipmentsApi.md#GETShipments) | **Get** /shipments | List all shipments @@ -11,9 +12,78 @@ Method | HTTP request | Description [**GETStockLineItemIdShipment**](ShipmentsApi.md#GETStockLineItemIdShipment) | **Get** /stock_line_items/{stockLineItemId}/shipment | Retrieve the shipment associated to the stock line item [**GETStockTransferIdShipment**](ShipmentsApi.md#GETStockTransferIdShipment) | **Get** /stock_transfers/{stockTransferId}/shipment | Retrieve the shipment associated to the stock transfer [**PATCHShipmentsShipmentId**](ShipmentsApi.md#PATCHShipmentsShipmentId) | **Patch** /shipments/{shipmentId} | Update a shipment +[**POSTShipments**](ShipmentsApi.md#POSTShipments) | **Post** /shipments | Create a shipment +## DELETEShipmentsShipmentId + +> DELETEShipmentsShipmentId(ctx, shipmentId).Execute() + +Delete a shipment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + shipmentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ShipmentsApi.DELETEShipmentsShipmentId(context.Background(), shipmentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ShipmentsApi.DELETEShipmentsShipmentId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**shipmentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDELETEShipmentsShipmentIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETOrderIdShipments > GETOrderIdShipments(ctx, orderId).Execute() @@ -488,3 +558,69 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## POSTShipments + +> POSTShipments201Response POSTShipments(ctx).ShipmentCreate(shipmentCreate).Execute() + +Create a shipment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + shipmentCreate := *openapiclient.NewShipmentCreate(*openapiclient.NewShipmentCreateData(interface{}(123), *openapiclient.NewPOSTAdyenPayments201ResponseDataAttributes())) // ShipmentCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ShipmentsApi.POSTShipments(context.Background()).ShipmentCreate(shipmentCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ShipmentsApi.POSTShipments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `POSTShipments`: POSTShipments201Response + fmt.Fprintf(os.Stdout, "Response from `ShipmentsApi.POSTShipments`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPOSTShipmentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **shipmentCreate** | [**ShipmentCreate**](ShipmentCreate.md) | | + +### Return type + +[**POSTShipments201Response**](POSTShipments201Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/api/docs/ShippingCategoryDataRelationships.md b/api/docs/ShippingCategoryDataRelationships.md index 7b9d941f..cc46510d 100644 --- a/api/docs/ShippingCategoryDataRelationships.md +++ b/api/docs/ShippingCategoryDataRelationships.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Skus** | Pointer to [**BundleDataRelationshipsSkus**](BundleDataRelationshipsSkus.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -53,20 +54,20 @@ HasSkus returns a boolean if a field has been set. ### GetAttachments -`func (o *ShippingCategoryDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *ShippingCategoryDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *ShippingCategoryDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *ShippingCategoryDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *ShippingCategoryDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *ShippingCategoryDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -76,6 +77,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *ShippingCategoryDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *ShippingCategoryDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *ShippingCategoryDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *ShippingCategoryDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/ShippingMethodCreateDataRelationships.md b/api/docs/ShippingMethodCreateDataRelationships.md index 91af927a..a5714c12 100644 --- a/api/docs/ShippingMethodCreateDataRelationships.md +++ b/api/docs/ShippingMethodCreateDataRelationships.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Market** | Pointer to [**BillingInfoValidationRuleCreateDataRelationshipsMarket**](BillingInfoValidationRuleCreateDataRelationshipsMarket.md) | | [optional] **ShippingZone** | Pointer to [**ShippingMethodCreateDataRelationshipsShippingZone**](ShippingMethodCreateDataRelationshipsShippingZone.md) | | [optional] -**ShippingCategory** | Pointer to [**ShippingMethodCreateDataRelationshipsShippingCategory**](ShippingMethodCreateDataRelationshipsShippingCategory.md) | | [optional] +**ShippingCategory** | Pointer to [**ShipmentCreateDataRelationshipsShippingCategory**](ShipmentCreateDataRelationshipsShippingCategory.md) | | [optional] **StockLocation** | Pointer to [**DeliveryLeadTimeCreateDataRelationshipsStockLocation**](DeliveryLeadTimeCreateDataRelationshipsStockLocation.md) | | [optional] **ShippingMethodTiers** | Pointer to [**ShippingMethodCreateDataRelationshipsShippingMethodTiers**](ShippingMethodCreateDataRelationshipsShippingMethodTiers.md) | | [optional] @@ -81,20 +81,20 @@ HasShippingZone returns a boolean if a field has been set. ### GetShippingCategory -`func (o *ShippingMethodCreateDataRelationships) GetShippingCategory() ShippingMethodCreateDataRelationshipsShippingCategory` +`func (o *ShippingMethodCreateDataRelationships) GetShippingCategory() ShipmentCreateDataRelationshipsShippingCategory` GetShippingCategory returns the ShippingCategory field if non-nil, zero value otherwise. ### GetShippingCategoryOk -`func (o *ShippingMethodCreateDataRelationships) GetShippingCategoryOk() (*ShippingMethodCreateDataRelationshipsShippingCategory, bool)` +`func (o *ShippingMethodCreateDataRelationships) GetShippingCategoryOk() (*ShipmentCreateDataRelationshipsShippingCategory, bool)` GetShippingCategoryOk returns a tuple with the ShippingCategory field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetShippingCategory -`func (o *ShippingMethodCreateDataRelationships) SetShippingCategory(v ShippingMethodCreateDataRelationshipsShippingCategory)` +`func (o *ShippingMethodCreateDataRelationships) SetShippingCategory(v ShipmentCreateDataRelationshipsShippingCategory)` SetShippingCategory sets ShippingCategory field to given value. diff --git a/api/docs/ShippingMethodCreateDataRelationshipsShippingCategory.md b/api/docs/ShippingMethodCreateDataRelationshipsShippingCategory.md deleted file mode 100644 index 476cccfd..00000000 --- a/api/docs/ShippingMethodCreateDataRelationshipsShippingCategory.md +++ /dev/null @@ -1,51 +0,0 @@ -# ShippingMethodCreateDataRelationshipsShippingCategory - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**ShipmentDataRelationshipsShippingCategoryData**](ShipmentDataRelationshipsShippingCategoryData.md) | | - -## Methods - -### NewShippingMethodCreateDataRelationshipsShippingCategory - -`func NewShippingMethodCreateDataRelationshipsShippingCategory(data ShipmentDataRelationshipsShippingCategoryData, ) *ShippingMethodCreateDataRelationshipsShippingCategory` - -NewShippingMethodCreateDataRelationshipsShippingCategory instantiates a new ShippingMethodCreateDataRelationshipsShippingCategory object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewShippingMethodCreateDataRelationshipsShippingCategoryWithDefaults - -`func NewShippingMethodCreateDataRelationshipsShippingCategoryWithDefaults() *ShippingMethodCreateDataRelationshipsShippingCategory` - -NewShippingMethodCreateDataRelationshipsShippingCategoryWithDefaults instantiates a new ShippingMethodCreateDataRelationshipsShippingCategory object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *ShippingMethodCreateDataRelationshipsShippingCategory) GetData() ShipmentDataRelationshipsShippingCategoryData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ShippingMethodCreateDataRelationshipsShippingCategory) GetDataOk() (*ShipmentDataRelationshipsShippingCategoryData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ShippingMethodCreateDataRelationshipsShippingCategory) SetData(v ShipmentDataRelationshipsShippingCategoryData)` - -SetData sets Data field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/ShippingMethodDataRelationships.md b/api/docs/ShippingMethodDataRelationships.md index 63dbbd60..018989c4 100644 --- a/api/docs/ShippingMethodDataRelationships.md +++ b/api/docs/ShippingMethodDataRelationships.md @@ -11,7 +11,8 @@ Name | Type | Description | Notes **DeliveryLeadTimeForShipment** | Pointer to [**ShipmentDataRelationshipsDeliveryLeadTime**](ShipmentDataRelationshipsDeliveryLeadTime.md) | | [optional] **ShippingMethodTiers** | Pointer to [**ShippingMethodDataRelationshipsShippingMethodTiers**](ShippingMethodDataRelationshipsShippingMethodTiers.md) | | [optional] **ShippingWeightTiers** | Pointer to [**ShippingMethodDataRelationshipsShippingWeightTiers**](ShippingMethodDataRelationshipsShippingWeightTiers.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -209,20 +210,20 @@ HasShippingWeightTiers returns a boolean if a field has been set. ### GetAttachments -`func (o *ShippingMethodDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *ShippingMethodDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *ShippingMethodDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *ShippingMethodDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *ShippingMethodDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *ShippingMethodDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -232,6 +233,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *ShippingMethodDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *ShippingMethodDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *ShippingMethodDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *ShippingMethodDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/ShippingMethodTierDataRelationships.md b/api/docs/ShippingMethodTierDataRelationships.md index 24631d34..b5565883 100644 --- a/api/docs/ShippingMethodTierDataRelationships.md +++ b/api/docs/ShippingMethodTierDataRelationships.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ShippingMethod** | Pointer to [**DeliveryLeadTimeDataRelationshipsShippingMethod**](DeliveryLeadTimeDataRelationshipsShippingMethod.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -53,20 +54,20 @@ HasShippingMethod returns a boolean if a field has been set. ### GetAttachments -`func (o *ShippingMethodTierDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *ShippingMethodTierDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *ShippingMethodTierDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *ShippingMethodTierDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *ShippingMethodTierDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *ShippingMethodTierDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -76,6 +77,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *ShippingMethodTierDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *ShippingMethodTierDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *ShippingMethodTierDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *ShippingMethodTierDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/ShippingWeightTierUpdateData.md b/api/docs/ShippingWeightTierUpdateData.md index 4730d8a4..319bdfea 100644 --- a/api/docs/ShippingWeightTierUpdateData.md +++ b/api/docs/ShippingWeightTierUpdateData.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Type** | **interface{}** | The resource's type | **Id** | **interface{}** | The resource's id | **Attributes** | [**PATCHShippingWeightTiersShippingWeightTierId200ResponseDataAttributes**](PATCHShippingWeightTiersShippingWeightTierId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**ShipmentUpdateDataRelationships**](ShipmentUpdateDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**ShippingWeightTierUpdateDataRelationships**](ShippingWeightTierUpdateDataRelationships.md) | | [optional] ## Methods @@ -110,20 +110,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *ShippingWeightTierUpdateData) GetRelationships() ShipmentUpdateDataRelationships` +`func (o *ShippingWeightTierUpdateData) GetRelationships() ShippingWeightTierUpdateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *ShippingWeightTierUpdateData) GetRelationshipsOk() (*ShipmentUpdateDataRelationships, bool)` +`func (o *ShippingWeightTierUpdateData) GetRelationshipsOk() (*ShippingWeightTierUpdateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *ShippingWeightTierUpdateData) SetRelationships(v ShipmentUpdateDataRelationships)` +`func (o *ShippingWeightTierUpdateData) SetRelationships(v ShippingWeightTierUpdateDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/ShippingWeightTierUpdateDataRelationships.md b/api/docs/ShippingWeightTierUpdateDataRelationships.md new file mode 100644 index 00000000..dc5c6e50 --- /dev/null +++ b/api/docs/ShippingWeightTierUpdateDataRelationships.md @@ -0,0 +1,56 @@ +# ShippingWeightTierUpdateDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ShippingMethod** | Pointer to [**DeliveryLeadTimeCreateDataRelationshipsShippingMethod**](DeliveryLeadTimeCreateDataRelationshipsShippingMethod.md) | | [optional] + +## Methods + +### NewShippingWeightTierUpdateDataRelationships + +`func NewShippingWeightTierUpdateDataRelationships() *ShippingWeightTierUpdateDataRelationships` + +NewShippingWeightTierUpdateDataRelationships instantiates a new ShippingWeightTierUpdateDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewShippingWeightTierUpdateDataRelationshipsWithDefaults + +`func NewShippingWeightTierUpdateDataRelationshipsWithDefaults() *ShippingWeightTierUpdateDataRelationships` + +NewShippingWeightTierUpdateDataRelationshipsWithDefaults instantiates a new ShippingWeightTierUpdateDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetShippingMethod + +`func (o *ShippingWeightTierUpdateDataRelationships) GetShippingMethod() DeliveryLeadTimeCreateDataRelationshipsShippingMethod` + +GetShippingMethod returns the ShippingMethod field if non-nil, zero value otherwise. + +### GetShippingMethodOk + +`func (o *ShippingWeightTierUpdateDataRelationships) GetShippingMethodOk() (*DeliveryLeadTimeCreateDataRelationshipsShippingMethod, bool)` + +GetShippingMethodOk returns a tuple with the ShippingMethod field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingMethod + +`func (o *ShippingWeightTierUpdateDataRelationships) SetShippingMethod(v DeliveryLeadTimeCreateDataRelationshipsShippingMethod)` + +SetShippingMethod sets ShippingMethod field to given value. + +### HasShippingMethod + +`func (o *ShippingWeightTierUpdateDataRelationships) HasShippingMethod() bool` + +HasShippingMethod returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/ShippingZoneDataRelationships.md b/api/docs/ShippingZoneDataRelationships.md index 5cc9924d..bb88c868 100644 --- a/api/docs/ShippingZoneDataRelationships.md +++ b/api/docs/ShippingZoneDataRelationships.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -27,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetAttachments -`func (o *ShippingZoneDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *ShippingZoneDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *ShippingZoneDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *ShippingZoneDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *ShippingZoneDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *ShippingZoneDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -50,6 +51,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *ShippingZoneDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *ShippingZoneDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *ShippingZoneDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *ShippingZoneDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/SkuCreateDataRelationships.md b/api/docs/SkuCreateDataRelationships.md index c4d444d8..335de983 100644 --- a/api/docs/SkuCreateDataRelationships.md +++ b/api/docs/SkuCreateDataRelationships.md @@ -4,13 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShippingCategory** | [**ShippingMethodCreateDataRelationshipsShippingCategory**](ShippingMethodCreateDataRelationshipsShippingCategory.md) | | +**ShippingCategory** | [**ShipmentCreateDataRelationshipsShippingCategory**](ShipmentCreateDataRelationshipsShippingCategory.md) | | +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] ## Methods ### NewSkuCreateDataRelationships -`func NewSkuCreateDataRelationships(shippingCategory ShippingMethodCreateDataRelationshipsShippingCategory, ) *SkuCreateDataRelationships` +`func NewSkuCreateDataRelationships(shippingCategory ShipmentCreateDataRelationshipsShippingCategory, ) *SkuCreateDataRelationships` NewSkuCreateDataRelationships instantiates a new SkuCreateDataRelationships object This constructor will assign default values to properties that have it defined, @@ -27,24 +28,49 @@ but it doesn't guarantee that properties required by API are set ### GetShippingCategory -`func (o *SkuCreateDataRelationships) GetShippingCategory() ShippingMethodCreateDataRelationshipsShippingCategory` +`func (o *SkuCreateDataRelationships) GetShippingCategory() ShipmentCreateDataRelationshipsShippingCategory` GetShippingCategory returns the ShippingCategory field if non-nil, zero value otherwise. ### GetShippingCategoryOk -`func (o *SkuCreateDataRelationships) GetShippingCategoryOk() (*ShippingMethodCreateDataRelationshipsShippingCategory, bool)` +`func (o *SkuCreateDataRelationships) GetShippingCategoryOk() (*ShipmentCreateDataRelationshipsShippingCategory, bool)` GetShippingCategoryOk returns a tuple with the ShippingCategory field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetShippingCategory -`func (o *SkuCreateDataRelationships) SetShippingCategory(v ShippingMethodCreateDataRelationshipsShippingCategory)` +`func (o *SkuCreateDataRelationships) SetShippingCategory(v ShipmentCreateDataRelationshipsShippingCategory)` SetShippingCategory sets ShippingCategory field to given value. +### GetTags + +`func (o *SkuCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *SkuCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *SkuCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *SkuCreateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/SkuDataRelationships.md b/api/docs/SkuDataRelationships.md index 6eee83d0..d9d1ee53 100644 --- a/api/docs/SkuDataRelationships.md +++ b/api/docs/SkuDataRelationships.md @@ -6,10 +6,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ShippingCategory** | Pointer to [**ShipmentDataRelationshipsShippingCategory**](ShipmentDataRelationshipsShippingCategory.md) | | [optional] **Prices** | Pointer to [**PriceFrequencyTierDataRelationshipsPrice**](PriceFrequencyTierDataRelationshipsPrice.md) | | [optional] -**StockItems** | Pointer to [**SkuDataRelationshipsStockItems**](SkuDataRelationshipsStockItems.md) | | [optional] +**StockItems** | Pointer to [**ReservedStockDataRelationshipsStockItem**](ReservedStockDataRelationshipsStockItem.md) | | [optional] +**StockReservations** | Pointer to [**LineItemDataRelationshipsStockReservations**](LineItemDataRelationshipsStockReservations.md) | | [optional] **DeliveryLeadTimes** | Pointer to [**ShipmentDataRelationshipsDeliveryLeadTime**](ShipmentDataRelationshipsDeliveryLeadTime.md) | | [optional] **SkuOptions** | Pointer to [**LineItemOptionDataRelationshipsSkuOption**](LineItemOptionDataRelationshipsSkuOption.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**SkuListItems** | Pointer to [**SkuListDataRelationshipsSkuListItems**](SkuListDataRelationshipsSkuListItems.md) | | [optional] +**SkuLists** | Pointer to [**BundleDataRelationshipsSkuList**](BundleDataRelationshipsSkuList.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Links** | Pointer to [**OrderDataRelationshipsLinks**](OrderDataRelationshipsLinks.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**AddressDataRelationshipsTags**](AddressDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] +**JwtCustomer** | Pointer to [**CouponRecipientDataRelationshipsCustomer**](CouponRecipientDataRelationshipsCustomer.md) | | [optional] +**JwtMarkets** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] +**JwtStockLocations** | Pointer to [**DeliveryLeadTimeDataRelationshipsStockLocation**](DeliveryLeadTimeDataRelationshipsStockLocation.md) | | [optional] ## Methods @@ -82,20 +92,20 @@ HasPrices returns a boolean if a field has been set. ### GetStockItems -`func (o *SkuDataRelationships) GetStockItems() SkuDataRelationshipsStockItems` +`func (o *SkuDataRelationships) GetStockItems() ReservedStockDataRelationshipsStockItem` GetStockItems returns the StockItems field if non-nil, zero value otherwise. ### GetStockItemsOk -`func (o *SkuDataRelationships) GetStockItemsOk() (*SkuDataRelationshipsStockItems, bool)` +`func (o *SkuDataRelationships) GetStockItemsOk() (*ReservedStockDataRelationshipsStockItem, bool)` GetStockItemsOk returns a tuple with the StockItems field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStockItems -`func (o *SkuDataRelationships) SetStockItems(v SkuDataRelationshipsStockItems)` +`func (o *SkuDataRelationships) SetStockItems(v ReservedStockDataRelationshipsStockItem)` SetStockItems sets StockItems field to given value. @@ -105,6 +115,31 @@ SetStockItems sets StockItems field to given value. HasStockItems returns a boolean if a field has been set. +### GetStockReservations + +`func (o *SkuDataRelationships) GetStockReservations() LineItemDataRelationshipsStockReservations` + +GetStockReservations returns the StockReservations field if non-nil, zero value otherwise. + +### GetStockReservationsOk + +`func (o *SkuDataRelationships) GetStockReservationsOk() (*LineItemDataRelationshipsStockReservations, bool)` + +GetStockReservationsOk returns a tuple with the StockReservations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockReservations + +`func (o *SkuDataRelationships) SetStockReservations(v LineItemDataRelationshipsStockReservations)` + +SetStockReservations sets StockReservations field to given value. + +### HasStockReservations + +`func (o *SkuDataRelationships) HasStockReservations() bool` + +HasStockReservations returns a boolean if a field has been set. + ### GetDeliveryLeadTimes `func (o *SkuDataRelationships) GetDeliveryLeadTimes() ShipmentDataRelationshipsDeliveryLeadTime` @@ -155,22 +190,72 @@ SetSkuOptions sets SkuOptions field to given value. HasSkuOptions returns a boolean if a field has been set. +### GetSkuListItems + +`func (o *SkuDataRelationships) GetSkuListItems() SkuListDataRelationshipsSkuListItems` + +GetSkuListItems returns the SkuListItems field if non-nil, zero value otherwise. + +### GetSkuListItemsOk + +`func (o *SkuDataRelationships) GetSkuListItemsOk() (*SkuListDataRelationshipsSkuListItems, bool)` + +GetSkuListItemsOk returns a tuple with the SkuListItems field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuListItems + +`func (o *SkuDataRelationships) SetSkuListItems(v SkuListDataRelationshipsSkuListItems)` + +SetSkuListItems sets SkuListItems field to given value. + +### HasSkuListItems + +`func (o *SkuDataRelationships) HasSkuListItems() bool` + +HasSkuListItems returns a boolean if a field has been set. + +### GetSkuLists + +`func (o *SkuDataRelationships) GetSkuLists() BundleDataRelationshipsSkuList` + +GetSkuLists returns the SkuLists field if non-nil, zero value otherwise. + +### GetSkuListsOk + +`func (o *SkuDataRelationships) GetSkuListsOk() (*BundleDataRelationshipsSkuList, bool)` + +GetSkuListsOk returns a tuple with the SkuLists field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkuLists + +`func (o *SkuDataRelationships) SetSkuLists(v BundleDataRelationshipsSkuList)` + +SetSkuLists sets SkuLists field to given value. + +### HasSkuLists + +`func (o *SkuDataRelationships) HasSkuLists() bool` + +HasSkuLists returns a boolean if a field has been set. + ### GetAttachments -`func (o *SkuDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *SkuDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *SkuDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *SkuDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *SkuDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *SkuDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -180,6 +265,181 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetLinks + +`func (o *SkuDataRelationships) GetLinks() OrderDataRelationshipsLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *SkuDataRelationships) GetLinksOk() (*OrderDataRelationshipsLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *SkuDataRelationships) SetLinks(v OrderDataRelationshipsLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *SkuDataRelationships) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetEvents + +`func (o *SkuDataRelationships) GetEvents() AddressDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *SkuDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *SkuDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *SkuDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *SkuDataRelationships) GetTags() AddressDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *SkuDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *SkuDataRelationships) SetTags(v AddressDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *SkuDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *SkuDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *SkuDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *SkuDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *SkuDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + +### GetJwtCustomer + +`func (o *SkuDataRelationships) GetJwtCustomer() CouponRecipientDataRelationshipsCustomer` + +GetJwtCustomer returns the JwtCustomer field if non-nil, zero value otherwise. + +### GetJwtCustomerOk + +`func (o *SkuDataRelationships) GetJwtCustomerOk() (*CouponRecipientDataRelationshipsCustomer, bool)` + +GetJwtCustomerOk returns a tuple with the JwtCustomer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtCustomer + +`func (o *SkuDataRelationships) SetJwtCustomer(v CouponRecipientDataRelationshipsCustomer)` + +SetJwtCustomer sets JwtCustomer field to given value. + +### HasJwtCustomer + +`func (o *SkuDataRelationships) HasJwtCustomer() bool` + +HasJwtCustomer returns a boolean if a field has been set. + +### GetJwtMarkets + +`func (o *SkuDataRelationships) GetJwtMarkets() AvalaraAccountDataRelationshipsMarkets` + +GetJwtMarkets returns the JwtMarkets field if non-nil, zero value otherwise. + +### GetJwtMarketsOk + +`func (o *SkuDataRelationships) GetJwtMarketsOk() (*AvalaraAccountDataRelationshipsMarkets, bool)` + +GetJwtMarketsOk returns a tuple with the JwtMarkets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtMarkets + +`func (o *SkuDataRelationships) SetJwtMarkets(v AvalaraAccountDataRelationshipsMarkets)` + +SetJwtMarkets sets JwtMarkets field to given value. + +### HasJwtMarkets + +`func (o *SkuDataRelationships) HasJwtMarkets() bool` + +HasJwtMarkets returns a boolean if a field has been set. + +### GetJwtStockLocations + +`func (o *SkuDataRelationships) GetJwtStockLocations() DeliveryLeadTimeDataRelationshipsStockLocation` + +GetJwtStockLocations returns the JwtStockLocations field if non-nil, zero value otherwise. + +### GetJwtStockLocationsOk + +`func (o *SkuDataRelationships) GetJwtStockLocationsOk() (*DeliveryLeadTimeDataRelationshipsStockLocation, bool)` + +GetJwtStockLocationsOk returns a tuple with the JwtStockLocations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetJwtStockLocations + +`func (o *SkuDataRelationships) SetJwtStockLocations(v DeliveryLeadTimeDataRelationshipsStockLocation)` + +SetJwtStockLocations sets JwtStockLocations field to given value. + +### HasJwtStockLocations + +`func (o *SkuDataRelationships) HasJwtStockLocations() bool` + +HasJwtStockLocations returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/SkuListDataRelationships.md b/api/docs/SkuListDataRelationships.md index 76a06e19..8857fc57 100644 --- a/api/docs/SkuListDataRelationships.md +++ b/api/docs/SkuListDataRelationships.md @@ -7,8 +7,10 @@ Name | Type | Description | Notes **Customer** | Pointer to [**CouponRecipientDataRelationshipsCustomer**](CouponRecipientDataRelationshipsCustomer.md) | | [optional] **Skus** | Pointer to [**BundleDataRelationshipsSkus**](BundleDataRelationshipsSkus.md) | | [optional] **SkuListItems** | Pointer to [**SkuListDataRelationshipsSkuListItems**](SkuListDataRelationshipsSkuListItems.md) | | [optional] -**Bundles** | Pointer to [**OrderDataRelationshipsAvailableFreeBundles**](OrderDataRelationshipsAvailableFreeBundles.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Bundles** | Pointer to [**LineItemDataRelationshipsBundle**](LineItemDataRelationshipsBundle.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Links** | Pointer to [**OrderDataRelationshipsLinks**](OrderDataRelationshipsLinks.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -106,20 +108,20 @@ HasSkuListItems returns a boolean if a field has been set. ### GetBundles -`func (o *SkuListDataRelationships) GetBundles() OrderDataRelationshipsAvailableFreeBundles` +`func (o *SkuListDataRelationships) GetBundles() LineItemDataRelationshipsBundle` GetBundles returns the Bundles field if non-nil, zero value otherwise. ### GetBundlesOk -`func (o *SkuListDataRelationships) GetBundlesOk() (*OrderDataRelationshipsAvailableFreeBundles, bool)` +`func (o *SkuListDataRelationships) GetBundlesOk() (*LineItemDataRelationshipsBundle, bool)` GetBundlesOk returns a tuple with the Bundles field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetBundles -`func (o *SkuListDataRelationships) SetBundles(v OrderDataRelationshipsAvailableFreeBundles)` +`func (o *SkuListDataRelationships) SetBundles(v LineItemDataRelationshipsBundle)` SetBundles sets Bundles field to given value. @@ -131,20 +133,20 @@ HasBundles returns a boolean if a field has been set. ### GetAttachments -`func (o *SkuListDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *SkuListDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *SkuListDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *SkuListDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *SkuListDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *SkuListDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -154,6 +156,56 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetLinks + +`func (o *SkuListDataRelationships) GetLinks() OrderDataRelationshipsLinks` + +GetLinks returns the Links field if non-nil, zero value otherwise. + +### GetLinksOk + +`func (o *SkuListDataRelationships) GetLinksOk() (*OrderDataRelationshipsLinks, bool)` + +GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinks + +`func (o *SkuListDataRelationships) SetLinks(v OrderDataRelationshipsLinks)` + +SetLinks sets Links field to given value. + +### HasLinks + +`func (o *SkuListDataRelationships) HasLinks() bool` + +HasLinks returns a boolean if a field has been set. + +### GetVersions + +`func (o *SkuListDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *SkuListDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *SkuListDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *SkuListDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/SkuListItemDataRelationships.md b/api/docs/SkuListItemDataRelationships.md index 2c56f865..782e9291 100644 --- a/api/docs/SkuListItemDataRelationships.md +++ b/api/docs/SkuListItemDataRelationships.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SkuList** | Pointer to [**BundleDataRelationshipsSkuList**](BundleDataRelationshipsSkuList.md) | | [optional] **Sku** | Pointer to [**BundleDataRelationshipsSkus**](BundleDataRelationshipsSkus.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -76,6 +77,31 @@ SetSku sets Sku field to given value. HasSku returns a boolean if a field has been set. +### GetVersions + +`func (o *SkuListItemDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *SkuListItemDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *SkuListItemDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *SkuListItemDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/SkuListItemsApi.md b/api/docs/SkuListItemsApi.md index d4396a79..f644d69b 100644 --- a/api/docs/SkuListItemsApi.md +++ b/api/docs/SkuListItemsApi.md @@ -5,6 +5,7 @@ All URIs are relative to *https://.commercelayer.io/api* Method | HTTP request | Description ------------- | ------------- | ------------- [**DELETESkuListItemsSkuListItemId**](SkuListItemsApi.md#DELETESkuListItemsSkuListItemId) | **Delete** /sku_list_items/{skuListItemId} | Delete a SKU list item +[**GETSkuIdSkuListItems**](SkuListItemsApi.md#GETSkuIdSkuListItems) | **Get** /skus/{skuId}/sku_list_items | Retrieve the sku list items associated to the SKU [**GETSkuListIdSkuListItems**](SkuListItemsApi.md#GETSkuListIdSkuListItems) | **Get** /sku_lists/{skuListId}/sku_list_items | Retrieve the sku list items associated to the SKU list [**GETSkuListItems**](SkuListItemsApi.md#GETSkuListItems) | **Get** /sku_list_items | List all SKU list items [**GETSkuListItemsSkuListItemId**](SkuListItemsApi.md#GETSkuListItemsSkuListItemId) | **Get** /sku_list_items/{skuListItemId} | Retrieve a SKU list item @@ -81,6 +82,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETSkuIdSkuListItems + +> GETSkuIdSkuListItems(ctx, skuId).Execute() + +Retrieve the sku list items associated to the SKU + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + skuId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SkuListItemsApi.GETSkuIdSkuListItems(context.Background(), skuId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SkuListItemsApi.GETSkuIdSkuListItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**skuId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETSkuIdSkuListItemsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETSkuListIdSkuListItems > GETSkuListIdSkuListItems(ctx, skuListId).Execute() diff --git a/api/docs/SkuListPromotionRuleDataRelationships.md b/api/docs/SkuListPromotionRuleDataRelationships.md index 9e6a3ec9..cacbcf0e 100644 --- a/api/docs/SkuListPromotionRuleDataRelationships.md +++ b/api/docs/SkuListPromotionRuleDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Promotion** | Pointer to [**CouponCodesPromotionRuleDataRelationshipsPromotion**](CouponCodesPromotionRuleDataRelationshipsPromotion.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] **SkuList** | Pointer to [**BundleDataRelationshipsSkuList**](BundleDataRelationshipsSkuList.md) | | [optional] **Skus** | Pointer to [**BundleDataRelationshipsSkus**](BundleDataRelationshipsSkus.md) | | [optional] @@ -52,6 +53,31 @@ SetPromotion sets Promotion field to given value. HasPromotion returns a boolean if a field has been set. +### GetVersions + +`func (o *SkuListPromotionRuleDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *SkuListPromotionRuleDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *SkuListPromotionRuleDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *SkuListPromotionRuleDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetSkuList `func (o *SkuListPromotionRuleDataRelationships) GetSkuList() BundleDataRelationshipsSkuList` diff --git a/api/docs/SkuListPromotionRulesApi.md b/api/docs/SkuListPromotionRulesApi.md index 0ce354b4..9cb84130 100644 --- a/api/docs/SkuListPromotionRulesApi.md +++ b/api/docs/SkuListPromotionRulesApi.md @@ -5,6 +5,7 @@ All URIs are relative to *https://.commercelayer.io/api* Method | HTTP request | Description ------------- | ------------- | ------------- [**DELETESkuListPromotionRulesSkuListPromotionRuleId**](SkuListPromotionRulesApi.md#DELETESkuListPromotionRulesSkuListPromotionRuleId) | **Delete** /sku_list_promotion_rules/{skuListPromotionRuleId} | Delete a SKU list promotion rule +[**GETBuyXPayYPromotionIdSkuListPromotionRule**](SkuListPromotionRulesApi.md#GETBuyXPayYPromotionIdSkuListPromotionRule) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the buy x pay y promotion [**GETExternalPromotionIdSkuListPromotionRule**](SkuListPromotionRulesApi.md#GETExternalPromotionIdSkuListPromotionRule) | **Get** /external_promotions/{externalPromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the external promotion [**GETFixedAmountPromotionIdSkuListPromotionRule**](SkuListPromotionRulesApi.md#GETFixedAmountPromotionIdSkuListPromotionRule) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the fixed amount promotion [**GETFixedPricePromotionIdSkuListPromotionRule**](SkuListPromotionRulesApi.md#GETFixedPricePromotionIdSkuListPromotionRule) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/sku_list_promotion_rule | Retrieve the sku list promotion rule associated to the fixed price promotion @@ -87,6 +88,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETBuyXPayYPromotionIdSkuListPromotionRule + +> GETBuyXPayYPromotionIdSkuListPromotionRule(ctx, buyXPayYPromotionId).Execute() + +Retrieve the sku list promotion rule associated to the buy x pay y promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + buyXPayYPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SkuListPromotionRulesApi.GETBuyXPayYPromotionIdSkuListPromotionRule(context.Background(), buyXPayYPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SkuListPromotionRulesApi.GETBuyXPayYPromotionIdSkuListPromotionRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdSkuListPromotionRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETExternalPromotionIdSkuListPromotionRule > GETExternalPromotionIdSkuListPromotionRule(ctx, externalPromotionId).Execute() diff --git a/api/docs/SkuListsApi.md b/api/docs/SkuListsApi.md index edace69d..1f874b36 100644 --- a/api/docs/SkuListsApi.md +++ b/api/docs/SkuListsApi.md @@ -6,10 +6,16 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**DELETESkuListsSkuListId**](SkuListsApi.md#DELETESkuListsSkuListId) | **Delete** /sku_lists/{skuListId} | Delete a SKU list [**GETBundleIdSkuList**](SkuListsApi.md#GETBundleIdSkuList) | **Get** /bundles/{bundleId}/sku_list | Retrieve the sku list associated to the bundle +[**GETBuyXPayYPromotionIdSkuList**](SkuListsApi.md#GETBuyXPayYPromotionIdSkuList) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/sku_list | Retrieve the sku list associated to the buy x pay y promotion [**GETCustomerIdSkuLists**](SkuListsApi.md#GETCustomerIdSkuLists) | **Get** /customers/{customerId}/sku_lists | Retrieve the sku lists associated to the customer +[**GETExternalPromotionIdSkuList**](SkuListsApi.md#GETExternalPromotionIdSkuList) | **Get** /external_promotions/{externalPromotionId}/sku_list | Retrieve the sku list associated to the external promotion +[**GETFixedAmountPromotionIdSkuList**](SkuListsApi.md#GETFixedAmountPromotionIdSkuList) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/sku_list | Retrieve the sku list associated to the fixed amount promotion [**GETFixedPricePromotionIdSkuList**](SkuListsApi.md#GETFixedPricePromotionIdSkuList) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/sku_list | Retrieve the sku list associated to the fixed price promotion [**GETFreeGiftPromotionIdSkuList**](SkuListsApi.md#GETFreeGiftPromotionIdSkuList) | **Get** /free_gift_promotions/{freeGiftPromotionId}/sku_list | Retrieve the sku list associated to the free gift promotion +[**GETFreeShippingPromotionIdSkuList**](SkuListsApi.md#GETFreeShippingPromotionIdSkuList) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/sku_list | Retrieve the sku list associated to the free shipping promotion [**GETPercentageDiscountPromotionIdSkuList**](SkuListsApi.md#GETPercentageDiscountPromotionIdSkuList) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/sku_list | Retrieve the sku list associated to the percentage discount promotion +[**GETPromotionIdSkuList**](SkuListsApi.md#GETPromotionIdSkuList) | **Get** /promotions/{promotionId}/sku_list | Retrieve the sku list associated to the promotion +[**GETSkuIdSkuLists**](SkuListsApi.md#GETSkuIdSkuLists) | **Get** /skus/{skuId}/sku_lists | Retrieve the sku lists associated to the SKU [**GETSkuListItemIdSkuList**](SkuListsApi.md#GETSkuListItemIdSkuList) | **Get** /sku_list_items/{skuListItemId}/sku_list | Retrieve the sku list associated to the SKU list item [**GETSkuListPromotionRuleIdSkuList**](SkuListsApi.md#GETSkuListPromotionRuleIdSkuList) | **Get** /sku_list_promotion_rules/{skuListPromotionRuleId}/sku_list | Retrieve the sku list associated to the SKU list promotion rule [**GETSkuLists**](SkuListsApi.md#GETSkuLists) | **Get** /sku_lists | List all SKU lists @@ -155,6 +161,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETBuyXPayYPromotionIdSkuList + +> GETBuyXPayYPromotionIdSkuList(ctx, buyXPayYPromotionId).Execute() + +Retrieve the sku list associated to the buy x pay y promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + buyXPayYPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SkuListsApi.GETBuyXPayYPromotionIdSkuList(context.Background(), buyXPayYPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SkuListsApi.GETBuyXPayYPromotionIdSkuList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdSkuListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETCustomerIdSkuLists > GETCustomerIdSkuLists(ctx, customerId).Execute() @@ -223,6 +297,142 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETExternalPromotionIdSkuList + +> GETExternalPromotionIdSkuList(ctx, externalPromotionId).Execute() + +Retrieve the sku list associated to the external promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SkuListsApi.GETExternalPromotionIdSkuList(context.Background(), externalPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SkuListsApi.GETExternalPromotionIdSkuList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalPromotionIdSkuListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedAmountPromotionIdSkuList + +> GETFixedAmountPromotionIdSkuList(ctx, fixedAmountPromotionId).Execute() + +Retrieve the sku list associated to the fixed amount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedAmountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SkuListsApi.GETFixedAmountPromotionIdSkuList(context.Background(), fixedAmountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SkuListsApi.GETFixedAmountPromotionIdSkuList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdSkuListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETFixedPricePromotionIdSkuList > GETFixedPricePromotionIdSkuList(ctx, fixedPricePromotionId).Execute() @@ -359,6 +569,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETFreeShippingPromotionIdSkuList + +> GETFreeShippingPromotionIdSkuList(ctx, freeShippingPromotionId).Execute() + +Retrieve the sku list associated to the free shipping promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeShippingPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SkuListsApi.GETFreeShippingPromotionIdSkuList(context.Background(), freeShippingPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SkuListsApi.GETFreeShippingPromotionIdSkuList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdSkuListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETPercentageDiscountPromotionIdSkuList > GETPercentageDiscountPromotionIdSkuList(ctx, percentageDiscountPromotionId).Execute() @@ -427,6 +705,142 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETPromotionIdSkuList + +> GETPromotionIdSkuList(ctx, promotionId).Execute() + +Retrieve the sku list associated to the promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + promotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SkuListsApi.GETPromotionIdSkuList(context.Background(), promotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SkuListsApi.GETPromotionIdSkuList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**promotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPromotionIdSkuListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETSkuIdSkuLists + +> GETSkuIdSkuLists(ctx, skuId).Execute() + +Retrieve the sku lists associated to the SKU + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + skuId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SkuListsApi.GETSkuIdSkuLists(context.Background(), skuId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SkuListsApi.GETSkuIdSkuLists``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**skuId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETSkuIdSkuListsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETSkuListItemIdSkuList > GETSkuListItemIdSkuList(ctx, skuListItemId).Execute() diff --git a/api/docs/SkuOptionCreateData.md b/api/docs/SkuOptionCreateData.md index 956db5f9..05ca0b4d 100644 --- a/api/docs/SkuOptionCreateData.md +++ b/api/docs/SkuOptionCreateData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**POSTSkuOptions201ResponseDataAttributes**](POSTSkuOptions201ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**BillingInfoValidationRuleUpdateDataRelationships**](BillingInfoValidationRuleUpdateDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**SkuOptionCreateDataRelationships**](SkuOptionCreateDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *SkuOptionCreateData) GetRelationships() BillingInfoValidationRuleUpdateDataRelationships` +`func (o *SkuOptionCreateData) GetRelationships() SkuOptionCreateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *SkuOptionCreateData) GetRelationshipsOk() (*BillingInfoValidationRuleUpdateDataRelationships, bool)` +`func (o *SkuOptionCreateData) GetRelationshipsOk() (*SkuOptionCreateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *SkuOptionCreateData) SetRelationships(v BillingInfoValidationRuleUpdateDataRelationships)` +`func (o *SkuOptionCreateData) SetRelationships(v SkuOptionCreateDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/SkuOptionCreateDataRelationships.md b/api/docs/SkuOptionCreateDataRelationships.md new file mode 100644 index 00000000..fe26aeb3 --- /dev/null +++ b/api/docs/SkuOptionCreateDataRelationships.md @@ -0,0 +1,82 @@ +# SkuOptionCreateDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Market** | Pointer to [**BillingInfoValidationRuleCreateDataRelationshipsMarket**](BillingInfoValidationRuleCreateDataRelationshipsMarket.md) | | [optional] +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] + +## Methods + +### NewSkuOptionCreateDataRelationships + +`func NewSkuOptionCreateDataRelationships() *SkuOptionCreateDataRelationships` + +NewSkuOptionCreateDataRelationships instantiates a new SkuOptionCreateDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSkuOptionCreateDataRelationshipsWithDefaults + +`func NewSkuOptionCreateDataRelationshipsWithDefaults() *SkuOptionCreateDataRelationships` + +NewSkuOptionCreateDataRelationshipsWithDefaults instantiates a new SkuOptionCreateDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMarket + +`func (o *SkuOptionCreateDataRelationships) GetMarket() BillingInfoValidationRuleCreateDataRelationshipsMarket` + +GetMarket returns the Market field if non-nil, zero value otherwise. + +### GetMarketOk + +`func (o *SkuOptionCreateDataRelationships) GetMarketOk() (*BillingInfoValidationRuleCreateDataRelationshipsMarket, bool)` + +GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarket + +`func (o *SkuOptionCreateDataRelationships) SetMarket(v BillingInfoValidationRuleCreateDataRelationshipsMarket)` + +SetMarket sets Market field to given value. + +### HasMarket + +`func (o *SkuOptionCreateDataRelationships) HasMarket() bool` + +HasMarket returns a boolean if a field has been set. + +### GetTags + +`func (o *SkuOptionCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *SkuOptionCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *SkuOptionCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *SkuOptionCreateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/SkuOptionData.md b/api/docs/SkuOptionData.md index 8193207e..e5dcbbc8 100644 --- a/api/docs/SkuOptionData.md +++ b/api/docs/SkuOptionData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**GETSkuOptionsSkuOptionId200ResponseDataAttributes**](GETSkuOptionsSkuOptionId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**BillingInfoValidationRuleDataRelationships**](BillingInfoValidationRuleDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**SkuOptionDataRelationships**](SkuOptionDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *SkuOptionData) GetRelationships() BillingInfoValidationRuleDataRelationships` +`func (o *SkuOptionData) GetRelationships() SkuOptionDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *SkuOptionData) GetRelationshipsOk() (*BillingInfoValidationRuleDataRelationships, bool)` +`func (o *SkuOptionData) GetRelationshipsOk() (*SkuOptionDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *SkuOptionData) SetRelationships(v BillingInfoValidationRuleDataRelationships)` +`func (o *SkuOptionData) SetRelationships(v SkuOptionDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/SkuOptionDataRelationships.md b/api/docs/SkuOptionDataRelationships.md new file mode 100644 index 00000000..c4514f58 --- /dev/null +++ b/api/docs/SkuOptionDataRelationships.md @@ -0,0 +1,160 @@ +# SkuOptionDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Market** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Tags** | Pointer to [**AddressDataRelationshipsTags**](AddressDataRelationshipsTags.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewSkuOptionDataRelationships + +`func NewSkuOptionDataRelationships() *SkuOptionDataRelationships` + +NewSkuOptionDataRelationships instantiates a new SkuOptionDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSkuOptionDataRelationshipsWithDefaults + +`func NewSkuOptionDataRelationshipsWithDefaults() *SkuOptionDataRelationships` + +NewSkuOptionDataRelationshipsWithDefaults instantiates a new SkuOptionDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMarket + +`func (o *SkuOptionDataRelationships) GetMarket() AvalaraAccountDataRelationshipsMarkets` + +GetMarket returns the Market field if non-nil, zero value otherwise. + +### GetMarketOk + +`func (o *SkuOptionDataRelationships) GetMarketOk() (*AvalaraAccountDataRelationshipsMarkets, bool)` + +GetMarketOk returns a tuple with the Market field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarket + +`func (o *SkuOptionDataRelationships) SetMarket(v AvalaraAccountDataRelationshipsMarkets)` + +SetMarket sets Market field to given value. + +### HasMarket + +`func (o *SkuOptionDataRelationships) HasMarket() bool` + +HasMarket returns a boolean if a field has been set. + +### GetAttachments + +`func (o *SkuOptionDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *SkuOptionDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *SkuOptionDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *SkuOptionDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + +### GetEvents + +`func (o *SkuOptionDataRelationships) GetEvents() AddressDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *SkuOptionDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *SkuOptionDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *SkuOptionDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetTags + +`func (o *SkuOptionDataRelationships) GetTags() AddressDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *SkuOptionDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *SkuOptionDataRelationships) SetTags(v AddressDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *SkuOptionDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetVersions + +`func (o *SkuOptionDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *SkuOptionDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *SkuOptionDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *SkuOptionDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/SkuOptionUpdateData.md b/api/docs/SkuOptionUpdateData.md index b48793ec..e0d1c8b9 100644 --- a/api/docs/SkuOptionUpdateData.md +++ b/api/docs/SkuOptionUpdateData.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Type** | **interface{}** | The resource's type | **Id** | **interface{}** | The resource's id | **Attributes** | [**PATCHSkuOptionsSkuOptionId200ResponseDataAttributes**](PATCHSkuOptionsSkuOptionId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**BillingInfoValidationRuleUpdateDataRelationships**](BillingInfoValidationRuleUpdateDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**SkuOptionCreateDataRelationships**](SkuOptionCreateDataRelationships.md) | | [optional] ## Methods @@ -110,20 +110,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *SkuOptionUpdateData) GetRelationships() BillingInfoValidationRuleUpdateDataRelationships` +`func (o *SkuOptionUpdateData) GetRelationships() SkuOptionCreateDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *SkuOptionUpdateData) GetRelationshipsOk() (*BillingInfoValidationRuleUpdateDataRelationships, bool)` +`func (o *SkuOptionUpdateData) GetRelationshipsOk() (*SkuOptionCreateDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *SkuOptionUpdateData) SetRelationships(v BillingInfoValidationRuleUpdateDataRelationships)` +`func (o *SkuOptionUpdateData) SetRelationships(v SkuOptionCreateDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/SkuUpdateDataRelationships.md b/api/docs/SkuUpdateDataRelationships.md index f9d92842..38020ec0 100644 --- a/api/docs/SkuUpdateDataRelationships.md +++ b/api/docs/SkuUpdateDataRelationships.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShippingCategory** | Pointer to [**ShippingMethodCreateDataRelationshipsShippingCategory**](ShippingMethodCreateDataRelationshipsShippingCategory.md) | | [optional] +**ShippingCategory** | Pointer to [**ShipmentCreateDataRelationshipsShippingCategory**](ShipmentCreateDataRelationshipsShippingCategory.md) | | [optional] +**Tags** | Pointer to [**AddressCreateDataRelationshipsTags**](AddressCreateDataRelationshipsTags.md) | | [optional] ## Methods @@ -27,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetShippingCategory -`func (o *SkuUpdateDataRelationships) GetShippingCategory() ShippingMethodCreateDataRelationshipsShippingCategory` +`func (o *SkuUpdateDataRelationships) GetShippingCategory() ShipmentCreateDataRelationshipsShippingCategory` GetShippingCategory returns the ShippingCategory field if non-nil, zero value otherwise. ### GetShippingCategoryOk -`func (o *SkuUpdateDataRelationships) GetShippingCategoryOk() (*ShippingMethodCreateDataRelationshipsShippingCategory, bool)` +`func (o *SkuUpdateDataRelationships) GetShippingCategoryOk() (*ShipmentCreateDataRelationshipsShippingCategory, bool)` GetShippingCategoryOk returns a tuple with the ShippingCategory field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetShippingCategory -`func (o *SkuUpdateDataRelationships) SetShippingCategory(v ShippingMethodCreateDataRelationshipsShippingCategory)` +`func (o *SkuUpdateDataRelationships) SetShippingCategory(v ShipmentCreateDataRelationshipsShippingCategory)` SetShippingCategory sets ShippingCategory field to given value. @@ -50,6 +51,31 @@ SetShippingCategory sets ShippingCategory field to given value. HasShippingCategory returns a boolean if a field has been set. +### GetTags + +`func (o *SkuUpdateDataRelationships) GetTags() AddressCreateDataRelationshipsTags` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *SkuUpdateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *SkuUpdateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *SkuUpdateDataRelationships) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/SkusApi.md b/api/docs/SkusApi.md index 965acf2b..46363918 100644 --- a/api/docs/SkusApi.md +++ b/api/docs/SkusApi.md @@ -6,12 +6,16 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**DELETESkusSkuId**](SkusApi.md#DELETESkusSkuId) | **Delete** /skus/{skuId} | Delete a SKU [**GETBundleIdSkus**](SkusApi.md#GETBundleIdSkus) | **Get** /bundles/{bundleId}/skus | Retrieve the skus associated to the bundle +[**GETBuyXPayYPromotionIdSkus**](SkusApi.md#GETBuyXPayYPromotionIdSkus) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/skus | Retrieve the skus associated to the buy x pay y promotion +[**GETExternalPromotionIdSkus**](SkusApi.md#GETExternalPromotionIdSkus) | **Get** /external_promotions/{externalPromotionId}/skus | Retrieve the skus associated to the external promotion +[**GETFixedAmountPromotionIdSkus**](SkusApi.md#GETFixedAmountPromotionIdSkus) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/skus | Retrieve the skus associated to the fixed amount promotion [**GETFixedPricePromotionIdSkus**](SkusApi.md#GETFixedPricePromotionIdSkus) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/skus | Retrieve the skus associated to the fixed price promotion [**GETFreeGiftPromotionIdSkus**](SkusApi.md#GETFreeGiftPromotionIdSkus) | **Get** /free_gift_promotions/{freeGiftPromotionId}/skus | Retrieve the skus associated to the free gift promotion [**GETInStockSubscriptionIdSku**](SkusApi.md#GETInStockSubscriptionIdSku) | **Get** /in_stock_subscriptions/{inStockSubscriptionId}/sku | Retrieve the sku associated to the in stock subscription [**GETOrderIdAvailableFreeSkus**](SkusApi.md#GETOrderIdAvailableFreeSkus) | **Get** /orders/{orderId}/available_free_skus | Retrieve the available free skus associated to the order [**GETPercentageDiscountPromotionIdSkus**](SkusApi.md#GETPercentageDiscountPromotionIdSkus) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/skus | Retrieve the skus associated to the percentage discount promotion [**GETPriceIdSku**](SkusApi.md#GETPriceIdSku) | **Get** /prices/{priceId}/sku | Retrieve the sku associated to the price +[**GETReservedStockIdSku**](SkusApi.md#GETReservedStockIdSku) | **Get** /reserved_stocks/{reservedStockId}/sku | Retrieve the sku associated to the reserved stock [**GETShippingCategoryIdSkus**](SkusApi.md#GETShippingCategoryIdSkus) | **Get** /shipping_categories/{shippingCategoryId}/skus | Retrieve the skus associated to the shipping category [**GETSkuListIdSkus**](SkusApi.md#GETSkuListIdSkus) | **Get** /sku_lists/{skuListId}/skus | Retrieve the skus associated to the SKU list [**GETSkuListItemIdSku**](SkusApi.md#GETSkuListItemIdSku) | **Get** /sku_list_items/{skuListItemId}/sku | Retrieve the sku associated to the SKU list item @@ -19,6 +23,8 @@ Method | HTTP request | Description [**GETSkus**](SkusApi.md#GETSkus) | **Get** /skus | List all SKUs [**GETSkusSkuId**](SkusApi.md#GETSkusSkuId) | **Get** /skus/{skuId} | Retrieve a SKU [**GETStockItemIdSku**](SkusApi.md#GETStockItemIdSku) | **Get** /stock_items/{stockItemId}/sku | Retrieve the sku associated to the stock item +[**GETStockLineItemIdSku**](SkusApi.md#GETStockLineItemIdSku) | **Get** /stock_line_items/{stockLineItemId}/sku | Retrieve the sku associated to the stock line item +[**GETStockReservationIdSku**](SkusApi.md#GETStockReservationIdSku) | **Get** /stock_reservations/{stockReservationId}/sku | Retrieve the sku associated to the stock reservation [**GETStockTransferIdSku**](SkusApi.md#GETStockTransferIdSku) | **Get** /stock_transfers/{stockTransferId}/sku | Retrieve the sku associated to the stock transfer [**GETTaxCategoryIdSku**](SkusApi.md#GETTaxCategoryIdSku) | **Get** /tax_categories/{taxCategoryId}/sku | Retrieve the sku associated to the tax category [**PATCHSkusSkuId**](SkusApi.md#PATCHSkusSkuId) | **Patch** /skus/{skuId} | Update a SKU @@ -162,6 +168,210 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETBuyXPayYPromotionIdSkus + +> GETBuyXPayYPromotionIdSkus(ctx, buyXPayYPromotionId).Execute() + +Retrieve the skus associated to the buy x pay y promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + buyXPayYPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SkusApi.GETBuyXPayYPromotionIdSkus(context.Background(), buyXPayYPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SkusApi.GETBuyXPayYPromotionIdSkus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdSkusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalPromotionIdSkus + +> GETExternalPromotionIdSkus(ctx, externalPromotionId).Execute() + +Retrieve the skus associated to the external promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SkusApi.GETExternalPromotionIdSkus(context.Background(), externalPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SkusApi.GETExternalPromotionIdSkus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalPromotionIdSkusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedAmountPromotionIdSkus + +> GETFixedAmountPromotionIdSkus(ctx, fixedAmountPromotionId).Execute() + +Retrieve the skus associated to the fixed amount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedAmountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SkusApi.GETFixedAmountPromotionIdSkus(context.Background(), fixedAmountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SkusApi.GETFixedAmountPromotionIdSkus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdSkusRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETFixedPricePromotionIdSkus > GETFixedPricePromotionIdSkus(ctx, fixedPricePromotionId).Execute() @@ -570,6 +780,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETReservedStockIdSku + +> GETReservedStockIdSku(ctx, reservedStockId).Execute() + +Retrieve the sku associated to the reserved stock + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + reservedStockId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SkusApi.GETReservedStockIdSku(context.Background(), reservedStockId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SkusApi.GETReservedStockIdSku``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**reservedStockId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETReservedStockIdSkuRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETShippingCategoryIdSkus > GETShippingCategoryIdSkus(ctx, shippingCategoryId).Execute() @@ -1041,6 +1319,142 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETStockLineItemIdSku + +> GETStockLineItemIdSku(ctx, stockLineItemId).Execute() + +Retrieve the sku associated to the stock line item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockLineItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SkusApi.GETStockLineItemIdSku(context.Background(), stockLineItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SkusApi.GETStockLineItemIdSku``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockLineItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStockLineItemIdSkuRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETStockReservationIdSku + +> GETStockReservationIdSku(ctx, stockReservationId).Execute() + +Retrieve the sku associated to the stock reservation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockReservationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SkusApi.GETStockReservationIdSku(context.Background(), stockReservationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SkusApi.GETStockReservationIdSku``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockReservationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStockReservationIdSkuRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETStockTransferIdSku > GETStockTransferIdSku(ctx, stockTransferId).Execute() @@ -1270,7 +1684,7 @@ import ( ) func main() { - skuCreate := *openapiclient.NewSkuCreate(*openapiclient.NewSkuCreateData(interface{}(123), *openapiclient.NewPOSTSkus201ResponseDataAttributes(interface{}(TSHIRTMM000000FFFFFFXLXX), interface{}(Black Men T-shirt with White Logo (XL))))) // SkuCreate | + skuCreate := *openapiclient.NewSkuCreate(*openapiclient.NewSkuCreateData(interface{}(123), *openapiclient.NewPOSTSkus201ResponseDataAttributes(interface{}(TSHIRTMM000000FFFFFFXLXX), interface{}(Men's Black T-shirt with White Logo (XL))))) // SkuCreate | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/api/docs/StockItemDataRelationships.md b/api/docs/StockItemDataRelationships.md index 1afa20fa..bb8a80a8 100644 --- a/api/docs/StockItemDataRelationships.md +++ b/api/docs/StockItemDataRelationships.md @@ -6,7 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StockLocation** | Pointer to [**DeliveryLeadTimeDataRelationshipsStockLocation**](DeliveryLeadTimeDataRelationshipsStockLocation.md) | | [optional] **Sku** | Pointer to [**BundleDataRelationshipsSkus**](BundleDataRelationshipsSkus.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**ReservedStock** | Pointer to [**StockItemDataRelationshipsReservedStock**](StockItemDataRelationshipsReservedStock.md) | | [optional] +**StockReservations** | Pointer to [**LineItemDataRelationshipsStockReservations**](LineItemDataRelationshipsStockReservations.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -77,22 +80,72 @@ SetSku sets Sku field to given value. HasSku returns a boolean if a field has been set. +### GetReservedStock + +`func (o *StockItemDataRelationships) GetReservedStock() StockItemDataRelationshipsReservedStock` + +GetReservedStock returns the ReservedStock field if non-nil, zero value otherwise. + +### GetReservedStockOk + +`func (o *StockItemDataRelationships) GetReservedStockOk() (*StockItemDataRelationshipsReservedStock, bool)` + +GetReservedStockOk returns a tuple with the ReservedStock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReservedStock + +`func (o *StockItemDataRelationships) SetReservedStock(v StockItemDataRelationshipsReservedStock)` + +SetReservedStock sets ReservedStock field to given value. + +### HasReservedStock + +`func (o *StockItemDataRelationships) HasReservedStock() bool` + +HasReservedStock returns a boolean if a field has been set. + +### GetStockReservations + +`func (o *StockItemDataRelationships) GetStockReservations() LineItemDataRelationshipsStockReservations` + +GetStockReservations returns the StockReservations field if non-nil, zero value otherwise. + +### GetStockReservationsOk + +`func (o *StockItemDataRelationships) GetStockReservationsOk() (*LineItemDataRelationshipsStockReservations, bool)` + +GetStockReservationsOk returns a tuple with the StockReservations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockReservations + +`func (o *StockItemDataRelationships) SetStockReservations(v LineItemDataRelationshipsStockReservations)` + +SetStockReservations sets StockReservations field to given value. + +### HasStockReservations + +`func (o *StockItemDataRelationships) HasStockReservations() bool` + +HasStockReservations returns a boolean if a field has been set. + ### GetAttachments -`func (o *StockItemDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *StockItemDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *StockItemDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *StockItemDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *StockItemDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *StockItemDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -102,6 +155,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *StockItemDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *StockItemDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *StockItemDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *StockItemDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/StockItemDataRelationshipsReservedStock.md b/api/docs/StockItemDataRelationshipsReservedStock.md new file mode 100644 index 00000000..cd6049bb --- /dev/null +++ b/api/docs/StockItemDataRelationshipsReservedStock.md @@ -0,0 +1,56 @@ +# StockItemDataRelationshipsReservedStock + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**StockItemDataRelationshipsReservedStockData**](StockItemDataRelationshipsReservedStockData.md) | | [optional] + +## Methods + +### NewStockItemDataRelationshipsReservedStock + +`func NewStockItemDataRelationshipsReservedStock() *StockItemDataRelationshipsReservedStock` + +NewStockItemDataRelationshipsReservedStock instantiates a new StockItemDataRelationshipsReservedStock object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStockItemDataRelationshipsReservedStockWithDefaults + +`func NewStockItemDataRelationshipsReservedStockWithDefaults() *StockItemDataRelationshipsReservedStock` + +NewStockItemDataRelationshipsReservedStockWithDefaults instantiates a new StockItemDataRelationshipsReservedStock object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *StockItemDataRelationshipsReservedStock) GetData() StockItemDataRelationshipsReservedStockData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *StockItemDataRelationshipsReservedStock) GetDataOk() (*StockItemDataRelationshipsReservedStockData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *StockItemDataRelationshipsReservedStock) SetData(v StockItemDataRelationshipsReservedStockData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *StockItemDataRelationshipsReservedStock) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/StockItemDataRelationshipsReservedStockData.md b/api/docs/StockItemDataRelationshipsReservedStockData.md new file mode 100644 index 00000000..4f6c7454 --- /dev/null +++ b/api/docs/StockItemDataRelationshipsReservedStockData.md @@ -0,0 +1,102 @@ +# StockItemDataRelationshipsReservedStockData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **interface{}** | The resource's type | [optional] +**Id** | Pointer to **interface{}** | The resource's id | [optional] + +## Methods + +### NewStockItemDataRelationshipsReservedStockData + +`func NewStockItemDataRelationshipsReservedStockData() *StockItemDataRelationshipsReservedStockData` + +NewStockItemDataRelationshipsReservedStockData instantiates a new StockItemDataRelationshipsReservedStockData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStockItemDataRelationshipsReservedStockDataWithDefaults + +`func NewStockItemDataRelationshipsReservedStockDataWithDefaults() *StockItemDataRelationshipsReservedStockData` + +NewStockItemDataRelationshipsReservedStockDataWithDefaults instantiates a new StockItemDataRelationshipsReservedStockData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *StockItemDataRelationshipsReservedStockData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *StockItemDataRelationshipsReservedStockData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *StockItemDataRelationshipsReservedStockData) SetType(v interface{})` + +SetType sets Type field to given value. + +### HasType + +`func (o *StockItemDataRelationshipsReservedStockData) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *StockItemDataRelationshipsReservedStockData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *StockItemDataRelationshipsReservedStockData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *StockItemDataRelationshipsReservedStockData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *StockItemDataRelationshipsReservedStockData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *StockItemDataRelationshipsReservedStockData) SetId(v interface{})` + +SetId sets Id field to given value. + +### HasId + +`func (o *StockItemDataRelationshipsReservedStockData) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *StockItemDataRelationshipsReservedStockData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *StockItemDataRelationshipsReservedStockData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/StockItemsApi.md b/api/docs/StockItemsApi.md index 02bafcdb..f5a0a4f9 100644 --- a/api/docs/StockItemsApi.md +++ b/api/docs/StockItemsApi.md @@ -5,11 +5,13 @@ All URIs are relative to *https://.commercelayer.io/api* Method | HTTP request | Description ------------- | ------------- | ------------- [**DELETEStockItemsStockItemId**](StockItemsApi.md#DELETEStockItemsStockItemId) | **Delete** /stock_items/{stockItemId} | Delete a stock item +[**GETReservedStockIdStockItem**](StockItemsApi.md#GETReservedStockIdStockItem) | **Get** /reserved_stocks/{reservedStockId}/stock_item | Retrieve the stock item associated to the reserved stock [**GETSkuIdStockItems**](StockItemsApi.md#GETSkuIdStockItems) | **Get** /skus/{skuId}/stock_items | Retrieve the stock items associated to the SKU [**GETStockItems**](StockItemsApi.md#GETStockItems) | **Get** /stock_items | List all stock items [**GETStockItemsStockItemId**](StockItemsApi.md#GETStockItemsStockItemId) | **Get** /stock_items/{stockItemId} | Retrieve a stock item [**GETStockLineItemIdStockItem**](StockItemsApi.md#GETStockLineItemIdStockItem) | **Get** /stock_line_items/{stockLineItemId}/stock_item | Retrieve the stock item associated to the stock line item [**GETStockLocationIdStockItems**](StockItemsApi.md#GETStockLocationIdStockItems) | **Get** /stock_locations/{stockLocationId}/stock_items | Retrieve the stock items associated to the stock location +[**GETStockReservationIdStockItem**](StockItemsApi.md#GETStockReservationIdStockItem) | **Get** /stock_reservations/{stockReservationId}/stock_item | Retrieve the stock item associated to the stock reservation [**PATCHStockItemsStockItemId**](StockItemsApi.md#PATCHStockItemsStockItemId) | **Patch** /stock_items/{stockItemId} | Update a stock item [**POSTStockItems**](StockItemsApi.md#POSTStockItems) | **Post** /stock_items | Create a stock item @@ -83,6 +85,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETReservedStockIdStockItem + +> GETReservedStockIdStockItem(ctx, reservedStockId).Execute() + +Retrieve the stock item associated to the reserved stock + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + reservedStockId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.StockItemsApi.GETReservedStockIdStockItem(context.Background(), reservedStockId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockItemsApi.GETReservedStockIdStockItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**reservedStockId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETReservedStockIdStockItemRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETSkuIdStockItems > GETSkuIdStockItems(ctx, skuId).Execute() @@ -418,6 +488,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETStockReservationIdStockItem + +> GETStockReservationIdStockItem(ctx, stockReservationId).Execute() + +Retrieve the stock item associated to the stock reservation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockReservationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.StockItemsApi.GETStockReservationIdStockItem(context.Background(), stockReservationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockItemsApi.GETStockReservationIdStockItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockReservationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStockReservationIdStockItemRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## PATCHStockItemsStockItemId > PATCHStockItemsStockItemId200Response PATCHStockItemsStockItemId(ctx, stockItemId).StockItemUpdate(stockItemUpdate).Execute() diff --git a/api/docs/StockLineItemCreate.md b/api/docs/StockLineItemCreate.md new file mode 100644 index 00000000..473bc0a8 --- /dev/null +++ b/api/docs/StockLineItemCreate.md @@ -0,0 +1,51 @@ +# StockLineItemCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StockLineItemCreateData**](StockLineItemCreateData.md) | | + +## Methods + +### NewStockLineItemCreate + +`func NewStockLineItemCreate(data StockLineItemCreateData, ) *StockLineItemCreate` + +NewStockLineItemCreate instantiates a new StockLineItemCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStockLineItemCreateWithDefaults + +`func NewStockLineItemCreateWithDefaults() *StockLineItemCreate` + +NewStockLineItemCreateWithDefaults instantiates a new StockLineItemCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *StockLineItemCreate) GetData() StockLineItemCreateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *StockLineItemCreate) GetDataOk() (*StockLineItemCreateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *StockLineItemCreate) SetData(v StockLineItemCreateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/StockLineItemCreateData.md b/api/docs/StockLineItemCreateData.md new file mode 100644 index 00000000..2da7282c --- /dev/null +++ b/api/docs/StockLineItemCreateData.md @@ -0,0 +1,108 @@ +# StockLineItemCreateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**POSTStockLineItems201ResponseDataAttributes**](POSTStockLineItems201ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**StockLineItemCreateDataRelationships**](StockLineItemCreateDataRelationships.md) | | [optional] + +## Methods + +### NewStockLineItemCreateData + +`func NewStockLineItemCreateData(type_ interface{}, attributes POSTStockLineItems201ResponseDataAttributes, ) *StockLineItemCreateData` + +NewStockLineItemCreateData instantiates a new StockLineItemCreateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStockLineItemCreateDataWithDefaults + +`func NewStockLineItemCreateDataWithDefaults() *StockLineItemCreateData` + +NewStockLineItemCreateDataWithDefaults instantiates a new StockLineItemCreateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *StockLineItemCreateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *StockLineItemCreateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *StockLineItemCreateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *StockLineItemCreateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *StockLineItemCreateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *StockLineItemCreateData) GetAttributes() POSTStockLineItems201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *StockLineItemCreateData) GetAttributesOk() (*POSTStockLineItems201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *StockLineItemCreateData) SetAttributes(v POSTStockLineItems201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *StockLineItemCreateData) GetRelationships() StockLineItemCreateDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *StockLineItemCreateData) GetRelationshipsOk() (*StockLineItemCreateDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *StockLineItemCreateData) SetRelationships(v StockLineItemCreateDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *StockLineItemCreateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/StockLineItemCreateDataRelationships.md b/api/docs/StockLineItemCreateDataRelationships.md new file mode 100644 index 00000000..45a56dc5 --- /dev/null +++ b/api/docs/StockLineItemCreateDataRelationships.md @@ -0,0 +1,134 @@ +# StockLineItemCreateDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Shipment** | Pointer to [**ParcelCreateDataRelationshipsShipment**](ParcelCreateDataRelationshipsShipment.md) | | [optional] +**LineItem** | Pointer to [**LineItemOptionCreateDataRelationshipsLineItem**](LineItemOptionCreateDataRelationshipsLineItem.md) | | [optional] +**StockItem** | Pointer to [**StockLineItemCreateDataRelationshipsStockItem**](StockLineItemCreateDataRelationshipsStockItem.md) | | [optional] +**Sku** | Pointer to [**InStockSubscriptionCreateDataRelationshipsSku**](InStockSubscriptionCreateDataRelationshipsSku.md) | | [optional] + +## Methods + +### NewStockLineItemCreateDataRelationships + +`func NewStockLineItemCreateDataRelationships() *StockLineItemCreateDataRelationships` + +NewStockLineItemCreateDataRelationships instantiates a new StockLineItemCreateDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStockLineItemCreateDataRelationshipsWithDefaults + +`func NewStockLineItemCreateDataRelationshipsWithDefaults() *StockLineItemCreateDataRelationships` + +NewStockLineItemCreateDataRelationshipsWithDefaults instantiates a new StockLineItemCreateDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetShipment + +`func (o *StockLineItemCreateDataRelationships) GetShipment() ParcelCreateDataRelationshipsShipment` + +GetShipment returns the Shipment field if non-nil, zero value otherwise. + +### GetShipmentOk + +`func (o *StockLineItemCreateDataRelationships) GetShipmentOk() (*ParcelCreateDataRelationshipsShipment, bool)` + +GetShipmentOk returns a tuple with the Shipment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShipment + +`func (o *StockLineItemCreateDataRelationships) SetShipment(v ParcelCreateDataRelationshipsShipment)` + +SetShipment sets Shipment field to given value. + +### HasShipment + +`func (o *StockLineItemCreateDataRelationships) HasShipment() bool` + +HasShipment returns a boolean if a field has been set. + +### GetLineItem + +`func (o *StockLineItemCreateDataRelationships) GetLineItem() LineItemOptionCreateDataRelationshipsLineItem` + +GetLineItem returns the LineItem field if non-nil, zero value otherwise. + +### GetLineItemOk + +`func (o *StockLineItemCreateDataRelationships) GetLineItemOk() (*LineItemOptionCreateDataRelationshipsLineItem, bool)` + +GetLineItemOk returns a tuple with the LineItem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLineItem + +`func (o *StockLineItemCreateDataRelationships) SetLineItem(v LineItemOptionCreateDataRelationshipsLineItem)` + +SetLineItem sets LineItem field to given value. + +### HasLineItem + +`func (o *StockLineItemCreateDataRelationships) HasLineItem() bool` + +HasLineItem returns a boolean if a field has been set. + +### GetStockItem + +`func (o *StockLineItemCreateDataRelationships) GetStockItem() StockLineItemCreateDataRelationshipsStockItem` + +GetStockItem returns the StockItem field if non-nil, zero value otherwise. + +### GetStockItemOk + +`func (o *StockLineItemCreateDataRelationships) GetStockItemOk() (*StockLineItemCreateDataRelationshipsStockItem, bool)` + +GetStockItemOk returns a tuple with the StockItem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockItem + +`func (o *StockLineItemCreateDataRelationships) SetStockItem(v StockLineItemCreateDataRelationshipsStockItem)` + +SetStockItem sets StockItem field to given value. + +### HasStockItem + +`func (o *StockLineItemCreateDataRelationships) HasStockItem() bool` + +HasStockItem returns a boolean if a field has been set. + +### GetSku + +`func (o *StockLineItemCreateDataRelationships) GetSku() InStockSubscriptionCreateDataRelationshipsSku` + +GetSku returns the Sku field if non-nil, zero value otherwise. + +### GetSkuOk + +`func (o *StockLineItemCreateDataRelationships) GetSkuOk() (*InStockSubscriptionCreateDataRelationshipsSku, bool)` + +GetSkuOk returns a tuple with the Sku field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSku + +`func (o *StockLineItemCreateDataRelationships) SetSku(v InStockSubscriptionCreateDataRelationshipsSku)` + +SetSku sets Sku field to given value. + +### HasSku + +`func (o *StockLineItemCreateDataRelationships) HasSku() bool` + +HasSku returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/StockLineItemCreateDataRelationshipsStockItem.md b/api/docs/StockLineItemCreateDataRelationshipsStockItem.md new file mode 100644 index 00000000..a9a96c16 --- /dev/null +++ b/api/docs/StockLineItemCreateDataRelationshipsStockItem.md @@ -0,0 +1,51 @@ +# StockLineItemCreateDataRelationshipsStockItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**ReservedStockDataRelationshipsStockItemData**](ReservedStockDataRelationshipsStockItemData.md) | | + +## Methods + +### NewStockLineItemCreateDataRelationshipsStockItem + +`func NewStockLineItemCreateDataRelationshipsStockItem(data ReservedStockDataRelationshipsStockItemData, ) *StockLineItemCreateDataRelationshipsStockItem` + +NewStockLineItemCreateDataRelationshipsStockItem instantiates a new StockLineItemCreateDataRelationshipsStockItem object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStockLineItemCreateDataRelationshipsStockItemWithDefaults + +`func NewStockLineItemCreateDataRelationshipsStockItemWithDefaults() *StockLineItemCreateDataRelationshipsStockItem` + +NewStockLineItemCreateDataRelationshipsStockItemWithDefaults instantiates a new StockLineItemCreateDataRelationshipsStockItem object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *StockLineItemCreateDataRelationshipsStockItem) GetData() ReservedStockDataRelationshipsStockItemData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *StockLineItemCreateDataRelationshipsStockItem) GetDataOk() (*ReservedStockDataRelationshipsStockItemData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *StockLineItemCreateDataRelationshipsStockItem) SetData(v ReservedStockDataRelationshipsStockItemData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/StockLineItemDataRelationships.md b/api/docs/StockLineItemDataRelationships.md index 1b7f9d5a..874e80a0 100644 --- a/api/docs/StockLineItemDataRelationships.md +++ b/api/docs/StockLineItemDataRelationships.md @@ -4,9 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Shipment** | Pointer to [**OrderDataRelationshipsShipments**](OrderDataRelationshipsShipments.md) | | [optional] +**Shipment** | Pointer to [**LineItemDataRelationshipsShipment**](LineItemDataRelationshipsShipment.md) | | [optional] **LineItem** | Pointer to [**LineItemOptionDataRelationshipsLineItem**](LineItemOptionDataRelationshipsLineItem.md) | | [optional] -**StockItem** | Pointer to [**SkuDataRelationshipsStockItems**](SkuDataRelationshipsStockItems.md) | | [optional] +**StockItem** | Pointer to [**ReservedStockDataRelationshipsStockItem**](ReservedStockDataRelationshipsStockItem.md) | | [optional] +**Sku** | Pointer to [**BundleDataRelationshipsSkus**](BundleDataRelationshipsSkus.md) | | [optional] +**StockReservation** | Pointer to [**LineItemDataRelationshipsStockReservations**](LineItemDataRelationshipsStockReservations.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -29,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetShipment -`func (o *StockLineItemDataRelationships) GetShipment() OrderDataRelationshipsShipments` +`func (o *StockLineItemDataRelationships) GetShipment() LineItemDataRelationshipsShipment` GetShipment returns the Shipment field if non-nil, zero value otherwise. ### GetShipmentOk -`func (o *StockLineItemDataRelationships) GetShipmentOk() (*OrderDataRelationshipsShipments, bool)` +`func (o *StockLineItemDataRelationships) GetShipmentOk() (*LineItemDataRelationshipsShipment, bool)` GetShipmentOk returns a tuple with the Shipment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetShipment -`func (o *StockLineItemDataRelationships) SetShipment(v OrderDataRelationshipsShipments)` +`func (o *StockLineItemDataRelationships) SetShipment(v LineItemDataRelationshipsShipment)` SetShipment sets Shipment field to given value. @@ -79,20 +82,20 @@ HasLineItem returns a boolean if a field has been set. ### GetStockItem -`func (o *StockLineItemDataRelationships) GetStockItem() SkuDataRelationshipsStockItems` +`func (o *StockLineItemDataRelationships) GetStockItem() ReservedStockDataRelationshipsStockItem` GetStockItem returns the StockItem field if non-nil, zero value otherwise. ### GetStockItemOk -`func (o *StockLineItemDataRelationships) GetStockItemOk() (*SkuDataRelationshipsStockItems, bool)` +`func (o *StockLineItemDataRelationships) GetStockItemOk() (*ReservedStockDataRelationshipsStockItem, bool)` GetStockItemOk returns a tuple with the StockItem field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStockItem -`func (o *StockLineItemDataRelationships) SetStockItem(v SkuDataRelationshipsStockItems)` +`func (o *StockLineItemDataRelationships) SetStockItem(v ReservedStockDataRelationshipsStockItem)` SetStockItem sets StockItem field to given value. @@ -102,6 +105,81 @@ SetStockItem sets StockItem field to given value. HasStockItem returns a boolean if a field has been set. +### GetSku + +`func (o *StockLineItemDataRelationships) GetSku() BundleDataRelationshipsSkus` + +GetSku returns the Sku field if non-nil, zero value otherwise. + +### GetSkuOk + +`func (o *StockLineItemDataRelationships) GetSkuOk() (*BundleDataRelationshipsSkus, bool)` + +GetSkuOk returns a tuple with the Sku field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSku + +`func (o *StockLineItemDataRelationships) SetSku(v BundleDataRelationshipsSkus)` + +SetSku sets Sku field to given value. + +### HasSku + +`func (o *StockLineItemDataRelationships) HasSku() bool` + +HasSku returns a boolean if a field has been set. + +### GetStockReservation + +`func (o *StockLineItemDataRelationships) GetStockReservation() LineItemDataRelationshipsStockReservations` + +GetStockReservation returns the StockReservation field if non-nil, zero value otherwise. + +### GetStockReservationOk + +`func (o *StockLineItemDataRelationships) GetStockReservationOk() (*LineItemDataRelationshipsStockReservations, bool)` + +GetStockReservationOk returns a tuple with the StockReservation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockReservation + +`func (o *StockLineItemDataRelationships) SetStockReservation(v LineItemDataRelationshipsStockReservations)` + +SetStockReservation sets StockReservation field to given value. + +### HasStockReservation + +`func (o *StockLineItemDataRelationships) HasStockReservation() bool` + +HasStockReservation returns a boolean if a field has been set. + +### GetVersions + +`func (o *StockLineItemDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *StockLineItemDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *StockLineItemDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *StockLineItemDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/StockLineItemUpdate.md b/api/docs/StockLineItemUpdate.md new file mode 100644 index 00000000..03965586 --- /dev/null +++ b/api/docs/StockLineItemUpdate.md @@ -0,0 +1,51 @@ +# StockLineItemUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StockLineItemUpdateData**](StockLineItemUpdateData.md) | | + +## Methods + +### NewStockLineItemUpdate + +`func NewStockLineItemUpdate(data StockLineItemUpdateData, ) *StockLineItemUpdate` + +NewStockLineItemUpdate instantiates a new StockLineItemUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStockLineItemUpdateWithDefaults + +`func NewStockLineItemUpdateWithDefaults() *StockLineItemUpdate` + +NewStockLineItemUpdateWithDefaults instantiates a new StockLineItemUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *StockLineItemUpdate) GetData() StockLineItemUpdateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *StockLineItemUpdate) GetDataOk() (*StockLineItemUpdateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *StockLineItemUpdate) SetData(v StockLineItemUpdateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/StockLineItemUpdateData.md b/api/docs/StockLineItemUpdateData.md new file mode 100644 index 00000000..2facde10 --- /dev/null +++ b/api/docs/StockLineItemUpdateData.md @@ -0,0 +1,139 @@ +# StockLineItemUpdateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Id** | **interface{}** | The resource's id | +**Attributes** | [**PATCHStockLineItemsStockLineItemId200ResponseDataAttributes**](PATCHStockLineItemsStockLineItemId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**StockLineItemCreateDataRelationships**](StockLineItemCreateDataRelationships.md) | | [optional] + +## Methods + +### NewStockLineItemUpdateData + +`func NewStockLineItemUpdateData(type_ interface{}, id interface{}, attributes PATCHStockLineItemsStockLineItemId200ResponseDataAttributes, ) *StockLineItemUpdateData` + +NewStockLineItemUpdateData instantiates a new StockLineItemUpdateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStockLineItemUpdateDataWithDefaults + +`func NewStockLineItemUpdateDataWithDefaults() *StockLineItemUpdateData` + +NewStockLineItemUpdateDataWithDefaults instantiates a new StockLineItemUpdateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *StockLineItemUpdateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *StockLineItemUpdateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *StockLineItemUpdateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *StockLineItemUpdateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *StockLineItemUpdateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *StockLineItemUpdateData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *StockLineItemUpdateData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *StockLineItemUpdateData) SetId(v interface{})` + +SetId sets Id field to given value. + + +### SetIdNil + +`func (o *StockLineItemUpdateData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *StockLineItemUpdateData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetAttributes + +`func (o *StockLineItemUpdateData) GetAttributes() PATCHStockLineItemsStockLineItemId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *StockLineItemUpdateData) GetAttributesOk() (*PATCHStockLineItemsStockLineItemId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *StockLineItemUpdateData) SetAttributes(v PATCHStockLineItemsStockLineItemId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *StockLineItemUpdateData) GetRelationships() StockLineItemCreateDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *StockLineItemUpdateData) GetRelationshipsOk() (*StockLineItemCreateDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *StockLineItemUpdateData) SetRelationships(v StockLineItemCreateDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *StockLineItemUpdateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/StockLineItemsApi.md b/api/docs/StockLineItemsApi.md index fd2556b8..2e63f696 100644 --- a/api/docs/StockLineItemsApi.md +++ b/api/docs/StockLineItemsApi.md @@ -4,14 +4,87 @@ All URIs are relative to *https://.commercelayer.io/api* Method | HTTP request | Description ------------- | ------------- | ------------- +[**DELETEStockLineItemsStockLineItemId**](StockLineItemsApi.md#DELETEStockLineItemsStockLineItemId) | **Delete** /stock_line_items/{stockLineItemId} | Delete a stock line item [**GETLineItemIdStockLineItems**](StockLineItemsApi.md#GETLineItemIdStockLineItems) | **Get** /line_items/{lineItemId}/stock_line_items | Retrieve the stock line items associated to the line item +[**GETOrderIdStockLineItems**](StockLineItemsApi.md#GETOrderIdStockLineItems) | **Get** /orders/{orderId}/stock_line_items | Retrieve the stock line items associated to the order [**GETParcelLineItemIdStockLineItem**](StockLineItemsApi.md#GETParcelLineItemIdStockLineItem) | **Get** /parcel_line_items/{parcelLineItemId}/stock_line_item | Retrieve the stock line item associated to the parcel line item [**GETShipmentIdStockLineItems**](StockLineItemsApi.md#GETShipmentIdStockLineItems) | **Get** /shipments/{shipmentId}/stock_line_items | Retrieve the stock line items associated to the shipment [**GETStockLineItems**](StockLineItemsApi.md#GETStockLineItems) | **Get** /stock_line_items | List all stock line items [**GETStockLineItemsStockLineItemId**](StockLineItemsApi.md#GETStockLineItemsStockLineItemId) | **Get** /stock_line_items/{stockLineItemId} | Retrieve a stock line item +[**GETStockReservationIdStockLineItem**](StockLineItemsApi.md#GETStockReservationIdStockLineItem) | **Get** /stock_reservations/{stockReservationId}/stock_line_item | Retrieve the stock line item associated to the stock reservation +[**PATCHStockLineItemsStockLineItemId**](StockLineItemsApi.md#PATCHStockLineItemsStockLineItemId) | **Patch** /stock_line_items/{stockLineItemId} | Update a stock line item +[**POSTStockLineItems**](StockLineItemsApi.md#POSTStockLineItems) | **Post** /stock_line_items | Create a stock line item +## DELETEStockLineItemsStockLineItemId + +> DELETEStockLineItemsStockLineItemId(ctx, stockLineItemId).Execute() + +Delete a stock line item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockLineItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.StockLineItemsApi.DELETEStockLineItemsStockLineItemId(context.Background(), stockLineItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockLineItemsApi.DELETEStockLineItemsStockLineItemId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockLineItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDELETEStockLineItemsStockLineItemIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETLineItemIdStockLineItems > GETLineItemIdStockLineItems(ctx, lineItemId).Execute() @@ -80,6 +153,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETOrderIdStockLineItems + +> GETOrderIdStockLineItems(ctx, orderId).Execute() + +Retrieve the stock line items associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.StockLineItemsApi.GETOrderIdStockLineItems(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockLineItemsApi.GETOrderIdStockLineItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdStockLineItemsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETParcelLineItemIdStockLineItem > GETParcelLineItemIdStockLineItem(ctx, parcelLineItemId).Execute() @@ -346,3 +487,209 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## GETStockReservationIdStockLineItem + +> GETStockReservationIdStockLineItem(ctx, stockReservationId).Execute() + +Retrieve the stock line item associated to the stock reservation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockReservationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.StockLineItemsApi.GETStockReservationIdStockLineItem(context.Background(), stockReservationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockLineItemsApi.GETStockReservationIdStockLineItem``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockReservationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStockReservationIdStockLineItemRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PATCHStockLineItemsStockLineItemId + +> PATCHStockLineItemsStockLineItemId200Response PATCHStockLineItemsStockLineItemId(ctx, stockLineItemId).StockLineItemUpdate(stockLineItemUpdate).Execute() + +Update a stock line item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockLineItemUpdate := *openapiclient.NewStockLineItemUpdate(*openapiclient.NewStockLineItemUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHStockLineItemsStockLineItemId200ResponseDataAttributes())) // StockLineItemUpdate | + stockLineItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StockLineItemsApi.PATCHStockLineItemsStockLineItemId(context.Background(), stockLineItemId).StockLineItemUpdate(stockLineItemUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockLineItemsApi.PATCHStockLineItemsStockLineItemId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PATCHStockLineItemsStockLineItemId`: PATCHStockLineItemsStockLineItemId200Response + fmt.Fprintf(os.Stdout, "Response from `StockLineItemsApi.PATCHStockLineItemsStockLineItemId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockLineItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPATCHStockLineItemsStockLineItemIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **stockLineItemUpdate** | [**StockLineItemUpdate**](StockLineItemUpdate.md) | | + + +### Return type + +[**PATCHStockLineItemsStockLineItemId200Response**](PATCHStockLineItemsStockLineItemId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## POSTStockLineItems + +> POSTStockLineItems201Response POSTStockLineItems(ctx).StockLineItemCreate(stockLineItemCreate).Execute() + +Create a stock line item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockLineItemCreate := *openapiclient.NewStockLineItemCreate(*openapiclient.NewStockLineItemCreateData(interface{}(123), *openapiclient.NewPOSTStockLineItems201ResponseDataAttributes(interface{}(4)))) // StockLineItemCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StockLineItemsApi.POSTStockLineItems(context.Background()).StockLineItemCreate(stockLineItemCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockLineItemsApi.POSTStockLineItems``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `POSTStockLineItems`: POSTStockLineItems201Response + fmt.Fprintf(os.Stdout, "Response from `StockLineItemsApi.POSTStockLineItems`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPOSTStockLineItemsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **stockLineItemCreate** | [**StockLineItemCreate**](StockLineItemCreate.md) | | + +### Return type + +[**POSTStockLineItems201Response**](POSTStockLineItems201Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/api/docs/StockLocationDataRelationships.md b/api/docs/StockLocationDataRelationships.md index 07e807cc..af5a2d5c 100644 --- a/api/docs/StockLocationDataRelationships.md +++ b/api/docs/StockLocationDataRelationships.md @@ -7,9 +7,10 @@ Name | Type | Description | Notes **Address** | Pointer to [**BingGeocoderDataRelationshipsAddresses**](BingGeocoderDataRelationshipsAddresses.md) | | [optional] **InventoryStockLocations** | Pointer to [**InventoryModelDataRelationshipsInventoryStockLocations**](InventoryModelDataRelationshipsInventoryStockLocations.md) | | [optional] **InventoryReturnLocations** | Pointer to [**InventoryModelDataRelationshipsInventoryReturnLocations**](InventoryModelDataRelationshipsInventoryReturnLocations.md) | | [optional] -**StockItems** | Pointer to [**SkuDataRelationshipsStockItems**](SkuDataRelationshipsStockItems.md) | | [optional] +**StockItems** | Pointer to [**ReservedStockDataRelationshipsStockItem**](ReservedStockDataRelationshipsStockItem.md) | | [optional] **StockTransfers** | Pointer to [**LineItemDataRelationshipsStockTransfers**](LineItemDataRelationshipsStockTransfers.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -107,20 +108,20 @@ HasInventoryReturnLocations returns a boolean if a field has been set. ### GetStockItems -`func (o *StockLocationDataRelationships) GetStockItems() SkuDataRelationshipsStockItems` +`func (o *StockLocationDataRelationships) GetStockItems() ReservedStockDataRelationshipsStockItem` GetStockItems returns the StockItems field if non-nil, zero value otherwise. ### GetStockItemsOk -`func (o *StockLocationDataRelationships) GetStockItemsOk() (*SkuDataRelationshipsStockItems, bool)` +`func (o *StockLocationDataRelationships) GetStockItemsOk() (*ReservedStockDataRelationshipsStockItem, bool)` GetStockItemsOk returns a tuple with the StockItems field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStockItems -`func (o *StockLocationDataRelationships) SetStockItems(v SkuDataRelationshipsStockItems)` +`func (o *StockLocationDataRelationships) SetStockItems(v ReservedStockDataRelationshipsStockItem)` SetStockItems sets StockItems field to given value. @@ -157,20 +158,20 @@ HasStockTransfers returns a boolean if a field has been set. ### GetAttachments -`func (o *StockLocationDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *StockLocationDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *StockLocationDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *StockLocationDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *StockLocationDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *StockLocationDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -180,6 +181,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *StockLocationDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *StockLocationDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *StockLocationDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *StockLocationDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/StockLocationsApi.md b/api/docs/StockLocationsApi.md index e17001df..f47afcf0 100644 --- a/api/docs/StockLocationsApi.md +++ b/api/docs/StockLocationsApi.md @@ -9,9 +9,11 @@ Method | HTTP request | Description [**GETInventoryReturnLocationIdStockLocation**](StockLocationsApi.md#GETInventoryReturnLocationIdStockLocation) | **Get** /inventory_return_locations/{inventoryReturnLocationId}/stock_location | Retrieve the stock location associated to the inventory return location [**GETInventoryStockLocationIdStockLocation**](StockLocationsApi.md#GETInventoryStockLocationIdStockLocation) | **Get** /inventory_stock_locations/{inventoryStockLocationId}/stock_location | Retrieve the stock location associated to the inventory stock location [**GETPackageIdStockLocation**](StockLocationsApi.md#GETPackageIdStockLocation) | **Get** /packages/{packageId}/stock_location | Retrieve the stock location associated to the package +[**GETPriceIdJwtStockLocations**](StockLocationsApi.md#GETPriceIdJwtStockLocations) | **Get** /prices/{priceId}/jwt_stock_locations | Retrieve the jwt stock locations associated to the price [**GETReturnIdStockLocation**](StockLocationsApi.md#GETReturnIdStockLocation) | **Get** /returns/{returnId}/stock_location | Retrieve the stock location associated to the return [**GETShipmentIdStockLocation**](StockLocationsApi.md#GETShipmentIdStockLocation) | **Get** /shipments/{shipmentId}/stock_location | Retrieve the stock location associated to the shipment [**GETShippingMethodIdStockLocation**](StockLocationsApi.md#GETShippingMethodIdStockLocation) | **Get** /shipping_methods/{shippingMethodId}/stock_location | Retrieve the stock location associated to the shipping method +[**GETSkuIdJwtStockLocations**](StockLocationsApi.md#GETSkuIdJwtStockLocations) | **Get** /skus/{skuId}/jwt_stock_locations | Retrieve the jwt stock locations associated to the SKU [**GETStockItemIdStockLocation**](StockLocationsApi.md#GETStockItemIdStockLocation) | **Get** /stock_items/{stockItemId}/stock_location | Retrieve the stock location associated to the stock item [**GETStockLocations**](StockLocationsApi.md#GETStockLocations) | **Get** /stock_locations | List all stock locations [**GETStockLocationsStockLocationId**](StockLocationsApi.md#GETStockLocationsStockLocationId) | **Get** /stock_locations/{stockLocationId} | Retrieve a stock location @@ -362,6 +364,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETPriceIdJwtStockLocations + +> GETPriceIdJwtStockLocations(ctx, priceId).Execute() + +Retrieve the jwt stock locations associated to the price + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.StockLocationsApi.GETPriceIdJwtStockLocations(context.Background(), priceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockLocationsApi.GETPriceIdJwtStockLocations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceIdJwtStockLocationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETReturnIdStockLocation > GETReturnIdStockLocation(ctx, returnId).Execute() @@ -566,6 +636,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETSkuIdJwtStockLocations + +> GETSkuIdJwtStockLocations(ctx, skuId).Execute() + +Retrieve the jwt stock locations associated to the SKU + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + skuId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.StockLocationsApi.GETSkuIdJwtStockLocations(context.Background(), skuId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockLocationsApi.GETSkuIdJwtStockLocations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**skuId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETSkuIdJwtStockLocationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETStockItemIdStockLocation > GETStockItemIdStockLocation(ctx, stockItemId).Execute() diff --git a/api/docs/StockReservation.md b/api/docs/StockReservation.md new file mode 100644 index 00000000..e9849cc1 --- /dev/null +++ b/api/docs/StockReservation.md @@ -0,0 +1,56 @@ +# StockReservation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**StockReservationData**](StockReservationData.md) | | [optional] + +## Methods + +### NewStockReservation + +`func NewStockReservation() *StockReservation` + +NewStockReservation instantiates a new StockReservation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStockReservationWithDefaults + +`func NewStockReservationWithDefaults() *StockReservation` + +NewStockReservationWithDefaults instantiates a new StockReservation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *StockReservation) GetData() StockReservationData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *StockReservation) GetDataOk() (*StockReservationData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *StockReservation) SetData(v StockReservationData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *StockReservation) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/StockReservationCreate.md b/api/docs/StockReservationCreate.md new file mode 100644 index 00000000..55d6e7e1 --- /dev/null +++ b/api/docs/StockReservationCreate.md @@ -0,0 +1,51 @@ +# StockReservationCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StockReservationCreateData**](StockReservationCreateData.md) | | + +## Methods + +### NewStockReservationCreate + +`func NewStockReservationCreate(data StockReservationCreateData, ) *StockReservationCreate` + +NewStockReservationCreate instantiates a new StockReservationCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStockReservationCreateWithDefaults + +`func NewStockReservationCreateWithDefaults() *StockReservationCreate` + +NewStockReservationCreateWithDefaults instantiates a new StockReservationCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *StockReservationCreate) GetData() StockReservationCreateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *StockReservationCreate) GetDataOk() (*StockReservationCreateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *StockReservationCreate) SetData(v StockReservationCreateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/StockReservationCreateData.md b/api/docs/StockReservationCreateData.md new file mode 100644 index 00000000..fe0e2357 --- /dev/null +++ b/api/docs/StockReservationCreateData.md @@ -0,0 +1,108 @@ +# StockReservationCreateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**POSTStockReservations201ResponseDataAttributes**](POSTStockReservations201ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**StockReservationCreateDataRelationships**](StockReservationCreateDataRelationships.md) | | [optional] + +## Methods + +### NewStockReservationCreateData + +`func NewStockReservationCreateData(type_ interface{}, attributes POSTStockReservations201ResponseDataAttributes, ) *StockReservationCreateData` + +NewStockReservationCreateData instantiates a new StockReservationCreateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStockReservationCreateDataWithDefaults + +`func NewStockReservationCreateDataWithDefaults() *StockReservationCreateData` + +NewStockReservationCreateDataWithDefaults instantiates a new StockReservationCreateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *StockReservationCreateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *StockReservationCreateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *StockReservationCreateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *StockReservationCreateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *StockReservationCreateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *StockReservationCreateData) GetAttributes() POSTStockReservations201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *StockReservationCreateData) GetAttributesOk() (*POSTStockReservations201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *StockReservationCreateData) SetAttributes(v POSTStockReservations201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *StockReservationCreateData) GetRelationships() StockReservationCreateDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *StockReservationCreateData) GetRelationshipsOk() (*StockReservationCreateDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *StockReservationCreateData) SetRelationships(v StockReservationCreateDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *StockReservationCreateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/StockReservationCreateDataRelationships.md b/api/docs/StockReservationCreateDataRelationships.md new file mode 100644 index 00000000..e8811f7c --- /dev/null +++ b/api/docs/StockReservationCreateDataRelationships.md @@ -0,0 +1,51 @@ +# StockReservationCreateDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StockItem** | [**StockLineItemCreateDataRelationshipsStockItem**](StockLineItemCreateDataRelationshipsStockItem.md) | | + +## Methods + +### NewStockReservationCreateDataRelationships + +`func NewStockReservationCreateDataRelationships(stockItem StockLineItemCreateDataRelationshipsStockItem, ) *StockReservationCreateDataRelationships` + +NewStockReservationCreateDataRelationships instantiates a new StockReservationCreateDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStockReservationCreateDataRelationshipsWithDefaults + +`func NewStockReservationCreateDataRelationshipsWithDefaults() *StockReservationCreateDataRelationships` + +NewStockReservationCreateDataRelationshipsWithDefaults instantiates a new StockReservationCreateDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStockItem + +`func (o *StockReservationCreateDataRelationships) GetStockItem() StockLineItemCreateDataRelationshipsStockItem` + +GetStockItem returns the StockItem field if non-nil, zero value otherwise. + +### GetStockItemOk + +`func (o *StockReservationCreateDataRelationships) GetStockItemOk() (*StockLineItemCreateDataRelationshipsStockItem, bool)` + +GetStockItemOk returns a tuple with the StockItem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockItem + +`func (o *StockReservationCreateDataRelationships) SetStockItem(v StockLineItemCreateDataRelationshipsStockItem)` + +SetStockItem sets StockItem field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/StockReservationData.md b/api/docs/StockReservationData.md new file mode 100644 index 00000000..3347316b --- /dev/null +++ b/api/docs/StockReservationData.md @@ -0,0 +1,108 @@ +# StockReservationData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**GETStockReservationsStockReservationId200ResponseDataAttributes**](GETStockReservationsStockReservationId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to [**StockReservationDataRelationships**](StockReservationDataRelationships.md) | | [optional] + +## Methods + +### NewStockReservationData + +`func NewStockReservationData(type_ interface{}, attributes GETStockReservationsStockReservationId200ResponseDataAttributes, ) *StockReservationData` + +NewStockReservationData instantiates a new StockReservationData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStockReservationDataWithDefaults + +`func NewStockReservationDataWithDefaults() *StockReservationData` + +NewStockReservationDataWithDefaults instantiates a new StockReservationData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *StockReservationData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *StockReservationData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *StockReservationData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *StockReservationData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *StockReservationData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *StockReservationData) GetAttributes() GETStockReservationsStockReservationId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *StockReservationData) GetAttributesOk() (*GETStockReservationsStockReservationId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *StockReservationData) SetAttributes(v GETStockReservationsStockReservationId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *StockReservationData) GetRelationships() StockReservationDataRelationships` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *StockReservationData) GetRelationshipsOk() (*StockReservationDataRelationships, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *StockReservationData) SetRelationships(v StockReservationDataRelationships)` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *StockReservationData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/StockReservationDataRelationships.md b/api/docs/StockReservationDataRelationships.md new file mode 100644 index 00000000..533a1168 --- /dev/null +++ b/api/docs/StockReservationDataRelationships.md @@ -0,0 +1,212 @@ +# StockReservationDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**LineItem** | Pointer to [**LineItemOptionDataRelationshipsLineItem**](LineItemOptionDataRelationshipsLineItem.md) | | [optional] +**Order** | Pointer to [**AdyenPaymentDataRelationshipsOrder**](AdyenPaymentDataRelationshipsOrder.md) | | [optional] +**StockLineItem** | Pointer to [**LineItemDataRelationshipsStockLineItems**](LineItemDataRelationshipsStockLineItems.md) | | [optional] +**StockTransfer** | Pointer to [**LineItemDataRelationshipsStockTransfers**](LineItemDataRelationshipsStockTransfers.md) | | [optional] +**StockItem** | Pointer to [**ReservedStockDataRelationshipsStockItem**](ReservedStockDataRelationshipsStockItem.md) | | [optional] +**ReservedStock** | Pointer to [**StockItemDataRelationshipsReservedStock**](StockItemDataRelationshipsReservedStock.md) | | [optional] +**Sku** | Pointer to [**BundleDataRelationshipsSkus**](BundleDataRelationshipsSkus.md) | | [optional] + +## Methods + +### NewStockReservationDataRelationships + +`func NewStockReservationDataRelationships() *StockReservationDataRelationships` + +NewStockReservationDataRelationships instantiates a new StockReservationDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStockReservationDataRelationshipsWithDefaults + +`func NewStockReservationDataRelationshipsWithDefaults() *StockReservationDataRelationships` + +NewStockReservationDataRelationshipsWithDefaults instantiates a new StockReservationDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLineItem + +`func (o *StockReservationDataRelationships) GetLineItem() LineItemOptionDataRelationshipsLineItem` + +GetLineItem returns the LineItem field if non-nil, zero value otherwise. + +### GetLineItemOk + +`func (o *StockReservationDataRelationships) GetLineItemOk() (*LineItemOptionDataRelationshipsLineItem, bool)` + +GetLineItemOk returns a tuple with the LineItem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLineItem + +`func (o *StockReservationDataRelationships) SetLineItem(v LineItemOptionDataRelationshipsLineItem)` + +SetLineItem sets LineItem field to given value. + +### HasLineItem + +`func (o *StockReservationDataRelationships) HasLineItem() bool` + +HasLineItem returns a boolean if a field has been set. + +### GetOrder + +`func (o *StockReservationDataRelationships) GetOrder() AdyenPaymentDataRelationshipsOrder` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *StockReservationDataRelationships) GetOrderOk() (*AdyenPaymentDataRelationshipsOrder, bool)` + +GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrder + +`func (o *StockReservationDataRelationships) SetOrder(v AdyenPaymentDataRelationshipsOrder)` + +SetOrder sets Order field to given value. + +### HasOrder + +`func (o *StockReservationDataRelationships) HasOrder() bool` + +HasOrder returns a boolean if a field has been set. + +### GetStockLineItem + +`func (o *StockReservationDataRelationships) GetStockLineItem() LineItemDataRelationshipsStockLineItems` + +GetStockLineItem returns the StockLineItem field if non-nil, zero value otherwise. + +### GetStockLineItemOk + +`func (o *StockReservationDataRelationships) GetStockLineItemOk() (*LineItemDataRelationshipsStockLineItems, bool)` + +GetStockLineItemOk returns a tuple with the StockLineItem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockLineItem + +`func (o *StockReservationDataRelationships) SetStockLineItem(v LineItemDataRelationshipsStockLineItems)` + +SetStockLineItem sets StockLineItem field to given value. + +### HasStockLineItem + +`func (o *StockReservationDataRelationships) HasStockLineItem() bool` + +HasStockLineItem returns a boolean if a field has been set. + +### GetStockTransfer + +`func (o *StockReservationDataRelationships) GetStockTransfer() LineItemDataRelationshipsStockTransfers` + +GetStockTransfer returns the StockTransfer field if non-nil, zero value otherwise. + +### GetStockTransferOk + +`func (o *StockReservationDataRelationships) GetStockTransferOk() (*LineItemDataRelationshipsStockTransfers, bool)` + +GetStockTransferOk returns a tuple with the StockTransfer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockTransfer + +`func (o *StockReservationDataRelationships) SetStockTransfer(v LineItemDataRelationshipsStockTransfers)` + +SetStockTransfer sets StockTransfer field to given value. + +### HasStockTransfer + +`func (o *StockReservationDataRelationships) HasStockTransfer() bool` + +HasStockTransfer returns a boolean if a field has been set. + +### GetStockItem + +`func (o *StockReservationDataRelationships) GetStockItem() ReservedStockDataRelationshipsStockItem` + +GetStockItem returns the StockItem field if non-nil, zero value otherwise. + +### GetStockItemOk + +`func (o *StockReservationDataRelationships) GetStockItemOk() (*ReservedStockDataRelationshipsStockItem, bool)` + +GetStockItemOk returns a tuple with the StockItem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockItem + +`func (o *StockReservationDataRelationships) SetStockItem(v ReservedStockDataRelationshipsStockItem)` + +SetStockItem sets StockItem field to given value. + +### HasStockItem + +`func (o *StockReservationDataRelationships) HasStockItem() bool` + +HasStockItem returns a boolean if a field has been set. + +### GetReservedStock + +`func (o *StockReservationDataRelationships) GetReservedStock() StockItemDataRelationshipsReservedStock` + +GetReservedStock returns the ReservedStock field if non-nil, zero value otherwise. + +### GetReservedStockOk + +`func (o *StockReservationDataRelationships) GetReservedStockOk() (*StockItemDataRelationshipsReservedStock, bool)` + +GetReservedStockOk returns a tuple with the ReservedStock field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReservedStock + +`func (o *StockReservationDataRelationships) SetReservedStock(v StockItemDataRelationshipsReservedStock)` + +SetReservedStock sets ReservedStock field to given value. + +### HasReservedStock + +`func (o *StockReservationDataRelationships) HasReservedStock() bool` + +HasReservedStock returns a boolean if a field has been set. + +### GetSku + +`func (o *StockReservationDataRelationships) GetSku() BundleDataRelationshipsSkus` + +GetSku returns the Sku field if non-nil, zero value otherwise. + +### GetSkuOk + +`func (o *StockReservationDataRelationships) GetSkuOk() (*BundleDataRelationshipsSkus, bool)` + +GetSkuOk returns a tuple with the Sku field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSku + +`func (o *StockReservationDataRelationships) SetSku(v BundleDataRelationshipsSkus)` + +SetSku sets Sku field to given value. + +### HasSku + +`func (o *StockReservationDataRelationships) HasSku() bool` + +HasSku returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/StockReservationUpdate.md b/api/docs/StockReservationUpdate.md new file mode 100644 index 00000000..d147ddbc --- /dev/null +++ b/api/docs/StockReservationUpdate.md @@ -0,0 +1,51 @@ +# StockReservationUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**StockReservationUpdateData**](StockReservationUpdateData.md) | | + +## Methods + +### NewStockReservationUpdate + +`func NewStockReservationUpdate(data StockReservationUpdateData, ) *StockReservationUpdate` + +NewStockReservationUpdate instantiates a new StockReservationUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStockReservationUpdateWithDefaults + +`func NewStockReservationUpdateWithDefaults() *StockReservationUpdate` + +NewStockReservationUpdateWithDefaults instantiates a new StockReservationUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *StockReservationUpdate) GetData() StockReservationUpdateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *StockReservationUpdate) GetDataOk() (*StockReservationUpdateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *StockReservationUpdate) SetData(v StockReservationUpdateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/StockReservationUpdateData.md b/api/docs/StockReservationUpdateData.md new file mode 100644 index 00000000..4ae88832 --- /dev/null +++ b/api/docs/StockReservationUpdateData.md @@ -0,0 +1,149 @@ +# StockReservationUpdateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Id** | **interface{}** | The resource's id | +**Attributes** | [**PATCHStockReservationsStockReservationId200ResponseDataAttributes**](PATCHStockReservationsStockReservationId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewStockReservationUpdateData + +`func NewStockReservationUpdateData(type_ interface{}, id interface{}, attributes PATCHStockReservationsStockReservationId200ResponseDataAttributes, ) *StockReservationUpdateData` + +NewStockReservationUpdateData instantiates a new StockReservationUpdateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewStockReservationUpdateDataWithDefaults + +`func NewStockReservationUpdateDataWithDefaults() *StockReservationUpdateData` + +NewStockReservationUpdateDataWithDefaults instantiates a new StockReservationUpdateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *StockReservationUpdateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *StockReservationUpdateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *StockReservationUpdateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *StockReservationUpdateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *StockReservationUpdateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *StockReservationUpdateData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *StockReservationUpdateData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *StockReservationUpdateData) SetId(v interface{})` + +SetId sets Id field to given value. + + +### SetIdNil + +`func (o *StockReservationUpdateData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *StockReservationUpdateData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetAttributes + +`func (o *StockReservationUpdateData) GetAttributes() PATCHStockReservationsStockReservationId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *StockReservationUpdateData) GetAttributesOk() (*PATCHStockReservationsStockReservationId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *StockReservationUpdateData) SetAttributes(v PATCHStockReservationsStockReservationId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *StockReservationUpdateData) GetRelationships() interface{}` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *StockReservationUpdateData) GetRelationshipsOk() (*interface{}, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *StockReservationUpdateData) SetRelationships(v interface{})` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *StockReservationUpdateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### SetRelationshipsNil + +`func (o *StockReservationUpdateData) SetRelationshipsNil(b bool)` + + SetRelationshipsNil sets the value for Relationships to be an explicit nil + +### UnsetRelationships +`func (o *StockReservationUpdateData) UnsetRelationships()` + +UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/StockReservationsApi.md b/api/docs/StockReservationsApi.md new file mode 100644 index 00000000..b5205b44 --- /dev/null +++ b/api/docs/StockReservationsApi.md @@ -0,0 +1,833 @@ +# \StockReservationsApi + +All URIs are relative to *https://.commercelayer.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DELETEStockReservationsStockReservationId**](StockReservationsApi.md#DELETEStockReservationsStockReservationId) | **Delete** /stock_reservations/{stockReservationId} | Delete a stock reservation +[**GETLineItemIdStockReservations**](StockReservationsApi.md#GETLineItemIdStockReservations) | **Get** /line_items/{lineItemId}/stock_reservations | Retrieve the stock reservations associated to the line item +[**GETOrderIdStockReservations**](StockReservationsApi.md#GETOrderIdStockReservations) | **Get** /orders/{orderId}/stock_reservations | Retrieve the stock reservations associated to the order +[**GETReservedStockIdStockReservations**](StockReservationsApi.md#GETReservedStockIdStockReservations) | **Get** /reserved_stocks/{reservedStockId}/stock_reservations | Retrieve the stock reservations associated to the reserved stock +[**GETSkuIdStockReservations**](StockReservationsApi.md#GETSkuIdStockReservations) | **Get** /skus/{skuId}/stock_reservations | Retrieve the stock reservations associated to the SKU +[**GETStockItemIdStockReservations**](StockReservationsApi.md#GETStockItemIdStockReservations) | **Get** /stock_items/{stockItemId}/stock_reservations | Retrieve the stock reservations associated to the stock item +[**GETStockLineItemIdStockReservation**](StockReservationsApi.md#GETStockLineItemIdStockReservation) | **Get** /stock_line_items/{stockLineItemId}/stock_reservation | Retrieve the stock reservation associated to the stock line item +[**GETStockReservations**](StockReservationsApi.md#GETStockReservations) | **Get** /stock_reservations | List all stock reservations +[**GETStockReservationsStockReservationId**](StockReservationsApi.md#GETStockReservationsStockReservationId) | **Get** /stock_reservations/{stockReservationId} | Retrieve a stock reservation +[**GETStockTransferIdStockReservation**](StockReservationsApi.md#GETStockTransferIdStockReservation) | **Get** /stock_transfers/{stockTransferId}/stock_reservation | Retrieve the stock reservation associated to the stock transfer +[**PATCHStockReservationsStockReservationId**](StockReservationsApi.md#PATCHStockReservationsStockReservationId) | **Patch** /stock_reservations/{stockReservationId} | Update a stock reservation +[**POSTStockReservations**](StockReservationsApi.md#POSTStockReservations) | **Post** /stock_reservations | Create a stock reservation + + + +## DELETEStockReservationsStockReservationId + +> DELETEStockReservationsStockReservationId(ctx, stockReservationId).Execute() + +Delete a stock reservation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockReservationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.StockReservationsApi.DELETEStockReservationsStockReservationId(context.Background(), stockReservationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockReservationsApi.DELETEStockReservationsStockReservationId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockReservationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDELETEStockReservationsStockReservationIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETLineItemIdStockReservations + +> GETLineItemIdStockReservations(ctx, lineItemId).Execute() + +Retrieve the stock reservations associated to the line item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + lineItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.StockReservationsApi.GETLineItemIdStockReservations(context.Background(), lineItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockReservationsApi.GETLineItemIdStockReservations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**lineItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETLineItemIdStockReservationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdStockReservations + +> GETOrderIdStockReservations(ctx, orderId).Execute() + +Retrieve the stock reservations associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.StockReservationsApi.GETOrderIdStockReservations(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockReservationsApi.GETOrderIdStockReservations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdStockReservationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETReservedStockIdStockReservations + +> GETReservedStockIdStockReservations(ctx, reservedStockId).Execute() + +Retrieve the stock reservations associated to the reserved stock + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + reservedStockId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.StockReservationsApi.GETReservedStockIdStockReservations(context.Background(), reservedStockId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockReservationsApi.GETReservedStockIdStockReservations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**reservedStockId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETReservedStockIdStockReservationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETSkuIdStockReservations + +> GETSkuIdStockReservations(ctx, skuId).Execute() + +Retrieve the stock reservations associated to the SKU + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + skuId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.StockReservationsApi.GETSkuIdStockReservations(context.Background(), skuId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockReservationsApi.GETSkuIdStockReservations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**skuId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETSkuIdStockReservationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETStockItemIdStockReservations + +> GETStockItemIdStockReservations(ctx, stockItemId).Execute() + +Retrieve the stock reservations associated to the stock item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.StockReservationsApi.GETStockItemIdStockReservations(context.Background(), stockItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockReservationsApi.GETStockItemIdStockReservations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStockItemIdStockReservationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETStockLineItemIdStockReservation + +> GETStockLineItemIdStockReservation(ctx, stockLineItemId).Execute() + +Retrieve the stock reservation associated to the stock line item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockLineItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.StockReservationsApi.GETStockLineItemIdStockReservation(context.Background(), stockLineItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockReservationsApi.GETStockLineItemIdStockReservation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockLineItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStockLineItemIdStockReservationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETStockReservations + +> GETStockReservations200Response GETStockReservations(ctx).Execute() + +List all stock reservations + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StockReservationsApi.GETStockReservations(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockReservationsApi.GETStockReservations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETStockReservations`: GETStockReservations200Response + fmt.Fprintf(os.Stdout, "Response from `StockReservationsApi.GETStockReservations`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStockReservationsRequest struct via the builder pattern + + +### Return type + +[**GETStockReservations200Response**](GETStockReservations200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETStockReservationsStockReservationId + +> GETStockReservationsStockReservationId200Response GETStockReservationsStockReservationId(ctx, stockReservationId).Execute() + +Retrieve a stock reservation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockReservationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StockReservationsApi.GETStockReservationsStockReservationId(context.Background(), stockReservationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockReservationsApi.GETStockReservationsStockReservationId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETStockReservationsStockReservationId`: GETStockReservationsStockReservationId200Response + fmt.Fprintf(os.Stdout, "Response from `StockReservationsApi.GETStockReservationsStockReservationId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockReservationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStockReservationsStockReservationIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**GETStockReservationsStockReservationId200Response**](GETStockReservationsStockReservationId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETStockTransferIdStockReservation + +> GETStockTransferIdStockReservation(ctx, stockTransferId).Execute() + +Retrieve the stock reservation associated to the stock transfer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockTransferId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.StockReservationsApi.GETStockTransferIdStockReservation(context.Background(), stockTransferId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockReservationsApi.GETStockTransferIdStockReservation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockTransferId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStockTransferIdStockReservationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PATCHStockReservationsStockReservationId + +> PATCHStockReservationsStockReservationId200Response PATCHStockReservationsStockReservationId(ctx, stockReservationId).StockReservationUpdate(stockReservationUpdate).Execute() + +Update a stock reservation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockReservationUpdate := *openapiclient.NewStockReservationUpdate(*openapiclient.NewStockReservationUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHStockReservationsStockReservationId200ResponseDataAttributes())) // StockReservationUpdate | + stockReservationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StockReservationsApi.PATCHStockReservationsStockReservationId(context.Background(), stockReservationId).StockReservationUpdate(stockReservationUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockReservationsApi.PATCHStockReservationsStockReservationId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PATCHStockReservationsStockReservationId`: PATCHStockReservationsStockReservationId200Response + fmt.Fprintf(os.Stdout, "Response from `StockReservationsApi.PATCHStockReservationsStockReservationId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockReservationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPATCHStockReservationsStockReservationIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **stockReservationUpdate** | [**StockReservationUpdate**](StockReservationUpdate.md) | | + + +### Return type + +[**PATCHStockReservationsStockReservationId200Response**](PATCHStockReservationsStockReservationId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## POSTStockReservations + +> POSTStockReservations201Response POSTStockReservations(ctx).StockReservationCreate(stockReservationCreate).Execute() + +Create a stock reservation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockReservationCreate := *openapiclient.NewStockReservationCreate(*openapiclient.NewStockReservationCreateData(interface{}(123), *openapiclient.NewPOSTStockReservations201ResponseDataAttributes(interface{}(4)))) // StockReservationCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.StockReservationsApi.POSTStockReservations(context.Background()).StockReservationCreate(stockReservationCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockReservationsApi.POSTStockReservations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `POSTStockReservations`: POSTStockReservations201Response + fmt.Fprintf(os.Stdout, "Response from `StockReservationsApi.POSTStockReservations`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPOSTStockReservationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **stockReservationCreate** | [**StockReservationCreate**](StockReservationCreate.md) | | + +### Return type + +[**POSTStockReservations201Response**](POSTStockReservations201Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/api/docs/StockTransferDataRelationships.md b/api/docs/StockTransferDataRelationships.md index 17f5fb47..b6b858aa 100644 --- a/api/docs/StockTransferDataRelationships.md +++ b/api/docs/StockTransferDataRelationships.md @@ -7,9 +7,12 @@ Name | Type | Description | Notes **Sku** | Pointer to [**BundleDataRelationshipsSkus**](BundleDataRelationshipsSkus.md) | | [optional] **OriginStockLocation** | Pointer to [**DeliveryLeadTimeDataRelationshipsStockLocation**](DeliveryLeadTimeDataRelationshipsStockLocation.md) | | [optional] **DestinationStockLocation** | Pointer to [**DeliveryLeadTimeDataRelationshipsStockLocation**](DeliveryLeadTimeDataRelationshipsStockLocation.md) | | [optional] -**Shipment** | Pointer to [**OrderDataRelationshipsShipments**](OrderDataRelationshipsShipments.md) | | [optional] +**Shipment** | Pointer to [**LineItemDataRelationshipsShipment**](LineItemDataRelationshipsShipment.md) | | [optional] **LineItem** | Pointer to [**LineItemOptionDataRelationshipsLineItem**](LineItemOptionDataRelationshipsLineItem.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] +**StockReservation** | Pointer to [**LineItemDataRelationshipsStockReservations**](LineItemDataRelationshipsStockReservations.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -107,20 +110,20 @@ HasDestinationStockLocation returns a boolean if a field has been set. ### GetShipment -`func (o *StockTransferDataRelationships) GetShipment() OrderDataRelationshipsShipments` +`func (o *StockTransferDataRelationships) GetShipment() LineItemDataRelationshipsShipment` GetShipment returns the Shipment field if non-nil, zero value otherwise. ### GetShipmentOk -`func (o *StockTransferDataRelationships) GetShipmentOk() (*OrderDataRelationshipsShipments, bool)` +`func (o *StockTransferDataRelationships) GetShipmentOk() (*LineItemDataRelationshipsShipment, bool)` GetShipmentOk returns a tuple with the Shipment field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetShipment -`func (o *StockTransferDataRelationships) SetShipment(v OrderDataRelationshipsShipments)` +`func (o *StockTransferDataRelationships) SetShipment(v LineItemDataRelationshipsShipment)` SetShipment sets Shipment field to given value. @@ -155,22 +158,72 @@ SetLineItem sets LineItem field to given value. HasLineItem returns a boolean if a field has been set. +### GetStockReservation + +`func (o *StockTransferDataRelationships) GetStockReservation() LineItemDataRelationshipsStockReservations` + +GetStockReservation returns the StockReservation field if non-nil, zero value otherwise. + +### GetStockReservationOk + +`func (o *StockTransferDataRelationships) GetStockReservationOk() (*LineItemDataRelationshipsStockReservations, bool)` + +GetStockReservationOk returns a tuple with the StockReservation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStockReservation + +`func (o *StockTransferDataRelationships) SetStockReservation(v LineItemDataRelationshipsStockReservations)` + +SetStockReservation sets StockReservation field to given value. + +### HasStockReservation + +`func (o *StockTransferDataRelationships) HasStockReservation() bool` + +HasStockReservation returns a boolean if a field has been set. + +### GetAttachments + +`func (o *StockTransferDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *StockTransferDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *StockTransferDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *StockTransferDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + ### GetEvents -`func (o *StockTransferDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` +`func (o *StockTransferDataRelationships) GetEvents() AddressDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *StockTransferDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` +`func (o *StockTransferDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *StockTransferDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` +`func (o *StockTransferDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -180,6 +233,31 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetVersions + +`func (o *StockTransferDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *StockTransferDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *StockTransferDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *StockTransferDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/StockTransferUpdateDataRelationships.md b/api/docs/StockTransferUpdateDataRelationships.md index f515100a..fc12fd17 100644 --- a/api/docs/StockTransferUpdateDataRelationships.md +++ b/api/docs/StockTransferUpdateDataRelationships.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Sku** | Pointer to [**InStockSubscriptionCreateDataRelationshipsSku**](InStockSubscriptionCreateDataRelationshipsSku.md) | | [optional] **OriginStockLocation** | Pointer to [**DeliveryLeadTimeCreateDataRelationshipsStockLocation**](DeliveryLeadTimeCreateDataRelationshipsStockLocation.md) | | [optional] **DestinationStockLocation** | Pointer to [**DeliveryLeadTimeCreateDataRelationshipsStockLocation**](DeliveryLeadTimeCreateDataRelationshipsStockLocation.md) | | [optional] +**Shipment** | Pointer to [**ParcelCreateDataRelationshipsShipment**](ParcelCreateDataRelationshipsShipment.md) | | [optional] +**LineItem** | Pointer to [**LineItemOptionCreateDataRelationshipsLineItem**](LineItemOptionCreateDataRelationshipsLineItem.md) | | [optional] ## Methods @@ -102,6 +104,56 @@ SetDestinationStockLocation sets DestinationStockLocation field to given value. HasDestinationStockLocation returns a boolean if a field has been set. +### GetShipment + +`func (o *StockTransferUpdateDataRelationships) GetShipment() ParcelCreateDataRelationshipsShipment` + +GetShipment returns the Shipment field if non-nil, zero value otherwise. + +### GetShipmentOk + +`func (o *StockTransferUpdateDataRelationships) GetShipmentOk() (*ParcelCreateDataRelationshipsShipment, bool)` + +GetShipmentOk returns a tuple with the Shipment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShipment + +`func (o *StockTransferUpdateDataRelationships) SetShipment(v ParcelCreateDataRelationshipsShipment)` + +SetShipment sets Shipment field to given value. + +### HasShipment + +`func (o *StockTransferUpdateDataRelationships) HasShipment() bool` + +HasShipment returns a boolean if a field has been set. + +### GetLineItem + +`func (o *StockTransferUpdateDataRelationships) GetLineItem() LineItemOptionCreateDataRelationshipsLineItem` + +GetLineItem returns the LineItem field if non-nil, zero value otherwise. + +### GetLineItemOk + +`func (o *StockTransferUpdateDataRelationships) GetLineItemOk() (*LineItemOptionCreateDataRelationshipsLineItem, bool)` + +GetLineItemOk returns a tuple with the LineItem field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLineItem + +`func (o *StockTransferUpdateDataRelationships) SetLineItem(v LineItemOptionCreateDataRelationshipsLineItem)` + +SetLineItem sets LineItem field to given value. + +### HasLineItem + +`func (o *StockTransferUpdateDataRelationships) HasLineItem() bool` + +HasLineItem returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/StockTransfersApi.md b/api/docs/StockTransfersApi.md index 3428c79f..2a221348 100644 --- a/api/docs/StockTransfersApi.md +++ b/api/docs/StockTransfersApi.md @@ -6,8 +6,10 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**DELETEStockTransfersStockTransferId**](StockTransfersApi.md#DELETEStockTransfersStockTransferId) | **Delete** /stock_transfers/{stockTransferId} | Delete a stock transfer [**GETLineItemIdStockTransfers**](StockTransfersApi.md#GETLineItemIdStockTransfers) | **Get** /line_items/{lineItemId}/stock_transfers | Retrieve the stock transfers associated to the line item +[**GETOrderIdStockTransfers**](StockTransfersApi.md#GETOrderIdStockTransfers) | **Get** /orders/{orderId}/stock_transfers | Retrieve the stock transfers associated to the order [**GETShipmentIdStockTransfers**](StockTransfersApi.md#GETShipmentIdStockTransfers) | **Get** /shipments/{shipmentId}/stock_transfers | Retrieve the stock transfers associated to the shipment [**GETStockLocationIdStockTransfers**](StockTransfersApi.md#GETStockLocationIdStockTransfers) | **Get** /stock_locations/{stockLocationId}/stock_transfers | Retrieve the stock transfers associated to the stock location +[**GETStockReservationIdStockTransfer**](StockTransfersApi.md#GETStockReservationIdStockTransfer) | **Get** /stock_reservations/{stockReservationId}/stock_transfer | Retrieve the stock transfer associated to the stock reservation [**GETStockTransfers**](StockTransfersApi.md#GETStockTransfers) | **Get** /stock_transfers | List all stock transfers [**GETStockTransfersStockTransferId**](StockTransfersApi.md#GETStockTransfersStockTransferId) | **Get** /stock_transfers/{stockTransferId} | Retrieve a stock transfer [**PATCHStockTransfersStockTransferId**](StockTransfersApi.md#PATCHStockTransfersStockTransferId) | **Patch** /stock_transfers/{stockTransferId} | Update a stock transfer @@ -151,6 +153,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETOrderIdStockTransfers + +> GETOrderIdStockTransfers(ctx, orderId).Execute() + +Retrieve the stock transfers associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.StockTransfersApi.GETOrderIdStockTransfers(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockTransfersApi.GETOrderIdStockTransfers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdStockTransfersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETShipmentIdStockTransfers > GETShipmentIdStockTransfers(ctx, shipmentId).Execute() @@ -287,6 +357,74 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GETStockReservationIdStockTransfer + +> GETStockReservationIdStockTransfer(ctx, stockReservationId).Execute() + +Retrieve the stock transfer associated to the stock reservation + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockReservationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.StockTransfersApi.GETStockReservationIdStockTransfer(context.Background(), stockReservationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `StockTransfersApi.GETStockReservationIdStockTransfer``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockReservationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStockReservationIdStockTransferRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## GETStockTransfers > GETStockTransfers200Response GETStockTransfers(ctx).Execute() diff --git a/api/docs/StripeGatewayDataRelationships.md b/api/docs/StripeGatewayDataRelationships.md index 9f1229ff..de212841 100644 --- a/api/docs/StripeGatewayDataRelationships.md +++ b/api/docs/StripeGatewayDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **PaymentMethods** | Pointer to [**AdyenGatewayDataRelationshipsPaymentMethods**](AdyenGatewayDataRelationshipsPaymentMethods.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] **StripePayments** | Pointer to [**StripeGatewayDataRelationshipsStripePayments**](StripeGatewayDataRelationshipsStripePayments.md) | | [optional] ## Methods @@ -51,6 +52,31 @@ SetPaymentMethods sets PaymentMethods field to given value. HasPaymentMethods returns a boolean if a field has been set. +### GetVersions + +`func (o *StripeGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *StripeGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *StripeGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *StripeGatewayDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + ### GetStripePayments `func (o *StripeGatewayDataRelationships) GetStripePayments() StripeGatewayDataRelationshipsStripePayments` diff --git a/api/docs/SubscriptionModelDataRelationships.md b/api/docs/SubscriptionModelDataRelationships.md index 1e7f32f4..a8deacb1 100644 --- a/api/docs/SubscriptionModelDataRelationships.md +++ b/api/docs/SubscriptionModelDataRelationships.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Markets** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] **OrderSubscriptions** | Pointer to [**CustomerDataRelationshipsOrderSubscriptions**](CustomerDataRelationshipsOrderSubscriptions.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ HasOrderSubscriptions returns a boolean if a field has been set. ### GetAttachments -`func (o *SubscriptionModelDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *SubscriptionModelDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *SubscriptionModelDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *SubscriptionModelDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *SubscriptionModelDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *SubscriptionModelDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. diff --git a/api/docs/Tag.md b/api/docs/Tag.md new file mode 100644 index 00000000..398ae2ee --- /dev/null +++ b/api/docs/Tag.md @@ -0,0 +1,56 @@ +# Tag + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**TagData**](TagData.md) | | [optional] + +## Methods + +### NewTag + +`func NewTag() *Tag` + +NewTag instantiates a new Tag object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTagWithDefaults + +`func NewTagWithDefaults() *Tag` + +NewTagWithDefaults instantiates a new Tag object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *Tag) GetData() TagData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *Tag) GetDataOk() (*TagData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *Tag) SetData(v TagData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *Tag) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/TagCreate.md b/api/docs/TagCreate.md new file mode 100644 index 00000000..8546ba2c --- /dev/null +++ b/api/docs/TagCreate.md @@ -0,0 +1,51 @@ +# TagCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**TagCreateData**](TagCreateData.md) | | + +## Methods + +### NewTagCreate + +`func NewTagCreate(data TagCreateData, ) *TagCreate` + +NewTagCreate instantiates a new TagCreate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTagCreateWithDefaults + +`func NewTagCreateWithDefaults() *TagCreate` + +NewTagCreateWithDefaults instantiates a new TagCreate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *TagCreate) GetData() TagCreateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *TagCreate) GetDataOk() (*TagCreateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *TagCreate) SetData(v TagCreateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/TagCreateData.md b/api/docs/TagCreateData.md new file mode 100644 index 00000000..a75c576d --- /dev/null +++ b/api/docs/TagCreateData.md @@ -0,0 +1,118 @@ +# TagCreateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**POSTTags201ResponseDataAttributes**](POSTTags201ResponseDataAttributes.md) | | +**Relationships** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewTagCreateData + +`func NewTagCreateData(type_ interface{}, attributes POSTTags201ResponseDataAttributes, ) *TagCreateData` + +NewTagCreateData instantiates a new TagCreateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTagCreateDataWithDefaults + +`func NewTagCreateDataWithDefaults() *TagCreateData` + +NewTagCreateDataWithDefaults instantiates a new TagCreateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *TagCreateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *TagCreateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *TagCreateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *TagCreateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *TagCreateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *TagCreateData) GetAttributes() POSTTags201ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *TagCreateData) GetAttributesOk() (*POSTTags201ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *TagCreateData) SetAttributes(v POSTTags201ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *TagCreateData) GetRelationships() interface{}` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *TagCreateData) GetRelationshipsOk() (*interface{}, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *TagCreateData) SetRelationships(v interface{})` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *TagCreateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### SetRelationshipsNil + +`func (o *TagCreateData) SetRelationshipsNil(b bool)` + + SetRelationshipsNil sets the value for Relationships to be an explicit nil + +### UnsetRelationships +`func (o *TagCreateData) UnsetRelationships()` + +UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/TagData.md b/api/docs/TagData.md new file mode 100644 index 00000000..98bf0422 --- /dev/null +++ b/api/docs/TagData.md @@ -0,0 +1,118 @@ +# TagData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**GETTagsTagId200ResponseDataAttributes**](GETTagsTagId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewTagData + +`func NewTagData(type_ interface{}, attributes GETTagsTagId200ResponseDataAttributes, ) *TagData` + +NewTagData instantiates a new TagData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTagDataWithDefaults + +`func NewTagDataWithDefaults() *TagData` + +NewTagDataWithDefaults instantiates a new TagData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *TagData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *TagData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *TagData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *TagData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *TagData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *TagData) GetAttributes() GETTagsTagId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *TagData) GetAttributesOk() (*GETTagsTagId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *TagData) SetAttributes(v GETTagsTagId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *TagData) GetRelationships() interface{}` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *TagData) GetRelationshipsOk() (*interface{}, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *TagData) SetRelationships(v interface{})` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *TagData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### SetRelationshipsNil + +`func (o *TagData) SetRelationshipsNil(b bool)` + + SetRelationshipsNil sets the value for Relationships to be an explicit nil + +### UnsetRelationships +`func (o *TagData) UnsetRelationships()` + +UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/TagUpdate.md b/api/docs/TagUpdate.md new file mode 100644 index 00000000..c892fdb7 --- /dev/null +++ b/api/docs/TagUpdate.md @@ -0,0 +1,51 @@ +# TagUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**TagUpdateData**](TagUpdateData.md) | | + +## Methods + +### NewTagUpdate + +`func NewTagUpdate(data TagUpdateData, ) *TagUpdate` + +NewTagUpdate instantiates a new TagUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTagUpdateWithDefaults + +`func NewTagUpdateWithDefaults() *TagUpdate` + +NewTagUpdateWithDefaults instantiates a new TagUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *TagUpdate) GetData() TagUpdateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *TagUpdate) GetDataOk() (*TagUpdateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *TagUpdate) SetData(v TagUpdateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/TagUpdateData.md b/api/docs/TagUpdateData.md new file mode 100644 index 00000000..93e69845 --- /dev/null +++ b/api/docs/TagUpdateData.md @@ -0,0 +1,149 @@ +# TagUpdateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Id** | **interface{}** | The resource's id | +**Attributes** | [**PATCHTagsTagId200ResponseDataAttributes**](PATCHTagsTagId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewTagUpdateData + +`func NewTagUpdateData(type_ interface{}, id interface{}, attributes PATCHTagsTagId200ResponseDataAttributes, ) *TagUpdateData` + +NewTagUpdateData instantiates a new TagUpdateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTagUpdateDataWithDefaults + +`func NewTagUpdateDataWithDefaults() *TagUpdateData` + +NewTagUpdateDataWithDefaults instantiates a new TagUpdateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *TagUpdateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *TagUpdateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *TagUpdateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *TagUpdateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *TagUpdateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *TagUpdateData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *TagUpdateData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *TagUpdateData) SetId(v interface{})` + +SetId sets Id field to given value. + + +### SetIdNil + +`func (o *TagUpdateData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *TagUpdateData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetAttributes + +`func (o *TagUpdateData) GetAttributes() PATCHTagsTagId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *TagUpdateData) GetAttributesOk() (*PATCHTagsTagId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *TagUpdateData) SetAttributes(v PATCHTagsTagId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *TagUpdateData) GetRelationships() interface{}` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *TagUpdateData) GetRelationshipsOk() (*interface{}, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *TagUpdateData) SetRelationships(v interface{})` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *TagUpdateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### SetRelationshipsNil + +`func (o *TagUpdateData) SetRelationshipsNil(b bool)` + + SetRelationshipsNil sets the value for Relationships to be an explicit nil + +### UnsetRelationships +`func (o *TagUpdateData) UnsetRelationships()` + +UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/TagsApi.md b/api/docs/TagsApi.md new file mode 100644 index 00000000..97d22d12 --- /dev/null +++ b/api/docs/TagsApi.md @@ -0,0 +1,1868 @@ +# \TagsApi + +All URIs are relative to *https://.commercelayer.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DELETETagsTagId**](TagsApi.md#DELETETagsTagId) | **Delete** /tags/{tagId} | Delete a tag +[**GETAddressIdTags**](TagsApi.md#GETAddressIdTags) | **Get** /addresses/{addressId}/tags | Retrieve the tags associated to the address +[**GETBundleIdTags**](TagsApi.md#GETBundleIdTags) | **Get** /bundles/{bundleId}/tags | Retrieve the tags associated to the bundle +[**GETBuyXPayYPromotionIdTags**](TagsApi.md#GETBuyXPayYPromotionIdTags) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/tags | Retrieve the tags associated to the buy x pay y promotion +[**GETCouponIdTags**](TagsApi.md#GETCouponIdTags) | **Get** /coupons/{couponId}/tags | Retrieve the tags associated to the coupon +[**GETCustomerIdTags**](TagsApi.md#GETCustomerIdTags) | **Get** /customers/{customerId}/tags | Retrieve the tags associated to the customer +[**GETExternalPromotionIdTags**](TagsApi.md#GETExternalPromotionIdTags) | **Get** /external_promotions/{externalPromotionId}/tags | Retrieve the tags associated to the external promotion +[**GETFixedAmountPromotionIdTags**](TagsApi.md#GETFixedAmountPromotionIdTags) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/tags | Retrieve the tags associated to the fixed amount promotion +[**GETFixedPricePromotionIdTags**](TagsApi.md#GETFixedPricePromotionIdTags) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/tags | Retrieve the tags associated to the fixed price promotion +[**GETFlexPromotionIdTags**](TagsApi.md#GETFlexPromotionIdTags) | **Get** /flex_promotions/{flexPromotionId}/tags | Retrieve the tags associated to the flex promotion +[**GETFreeGiftPromotionIdTags**](TagsApi.md#GETFreeGiftPromotionIdTags) | **Get** /free_gift_promotions/{freeGiftPromotionId}/tags | Retrieve the tags associated to the free gift promotion +[**GETFreeShippingPromotionIdTags**](TagsApi.md#GETFreeShippingPromotionIdTags) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/tags | Retrieve the tags associated to the free shipping promotion +[**GETGiftCardIdTags**](TagsApi.md#GETGiftCardIdTags) | **Get** /gift_cards/{giftCardId}/tags | Retrieve the tags associated to the gift card +[**GETLineItemIdTags**](TagsApi.md#GETLineItemIdTags) | **Get** /line_items/{lineItemId}/tags | Retrieve the tags associated to the line item +[**GETLineItemOptionIdTags**](TagsApi.md#GETLineItemOptionIdTags) | **Get** /line_item_options/{lineItemOptionId}/tags | Retrieve the tags associated to the line item option +[**GETOrderIdTags**](TagsApi.md#GETOrderIdTags) | **Get** /orders/{orderId}/tags | Retrieve the tags associated to the order +[**GETOrderSubscriptionIdTags**](TagsApi.md#GETOrderSubscriptionIdTags) | **Get** /order_subscriptions/{orderSubscriptionId}/tags | Retrieve the tags associated to the order subscription +[**GETPercentageDiscountPromotionIdTags**](TagsApi.md#GETPercentageDiscountPromotionIdTags) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/tags | Retrieve the tags associated to the percentage discount promotion +[**GETPromotionIdTags**](TagsApi.md#GETPromotionIdTags) | **Get** /promotions/{promotionId}/tags | Retrieve the tags associated to the promotion +[**GETReturnIdTags**](TagsApi.md#GETReturnIdTags) | **Get** /returns/{returnId}/tags | Retrieve the tags associated to the return +[**GETShipmentIdTags**](TagsApi.md#GETShipmentIdTags) | **Get** /shipments/{shipmentId}/tags | Retrieve the tags associated to the shipment +[**GETSkuIdTags**](TagsApi.md#GETSkuIdTags) | **Get** /skus/{skuId}/tags | Retrieve the tags associated to the SKU +[**GETSkuOptionIdTags**](TagsApi.md#GETSkuOptionIdTags) | **Get** /sku_options/{skuOptionId}/tags | Retrieve the tags associated to the SKU option +[**GETTags**](TagsApi.md#GETTags) | **Get** /tags | List all tags +[**GETTagsTagId**](TagsApi.md#GETTagsTagId) | **Get** /tags/{tagId} | Retrieve a tag +[**PATCHTagsTagId**](TagsApi.md#PATCHTagsTagId) | **Patch** /tags/{tagId} | Update a tag +[**POSTTags**](TagsApi.md#POSTTags) | **Post** /tags | Create a tag + + + +## DELETETagsTagId + +> DELETETagsTagId(ctx, tagId).Execute() + +Delete a tag + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + tagId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.DELETETagsTagId(context.Background(), tagId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.DELETETagsTagId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tagId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDELETETagsTagIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETAddressIdTags + +> GETAddressIdTags(ctx, addressId).Execute() + +Retrieve the tags associated to the address + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + addressId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETAddressIdTags(context.Background(), addressId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETAddressIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**addressId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETAddressIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETBundleIdTags + +> GETBundleIdTags(ctx, bundleId).Execute() + +Retrieve the tags associated to the bundle + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + bundleId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETBundleIdTags(context.Background(), bundleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETBundleIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**bundleId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBundleIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETBuyXPayYPromotionIdTags + +> GETBuyXPayYPromotionIdTags(ctx, buyXPayYPromotionId).Execute() + +Retrieve the tags associated to the buy x pay y promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + buyXPayYPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETBuyXPayYPromotionIdTags(context.Background(), buyXPayYPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETBuyXPayYPromotionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCouponIdTags + +> GETCouponIdTags(ctx, couponId).Execute() + +Retrieve the tags associated to the coupon + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + couponId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETCouponIdTags(context.Background(), couponId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETCouponIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**couponId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCouponIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerIdTags + +> GETCustomerIdTags(ctx, customerId).Execute() + +Retrieve the tags associated to the customer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETCustomerIdTags(context.Background(), customerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETCustomerIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalPromotionIdTags + +> GETExternalPromotionIdTags(ctx, externalPromotionId).Execute() + +Retrieve the tags associated to the external promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETExternalPromotionIdTags(context.Background(), externalPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETExternalPromotionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalPromotionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedAmountPromotionIdTags + +> GETFixedAmountPromotionIdTags(ctx, fixedAmountPromotionId).Execute() + +Retrieve the tags associated to the fixed amount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedAmountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETFixedAmountPromotionIdTags(context.Background(), fixedAmountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETFixedAmountPromotionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedPricePromotionIdTags + +> GETFixedPricePromotionIdTags(ctx, fixedPricePromotionId).Execute() + +Retrieve the tags associated to the fixed price promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedPricePromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETFixedPricePromotionIdTags(context.Background(), fixedPricePromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETFixedPricePromotionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFlexPromotionIdTags + +> GETFlexPromotionIdTags(ctx, flexPromotionId).Execute() + +Retrieve the tags associated to the flex promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + flexPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETFlexPromotionIdTags(context.Background(), flexPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETFlexPromotionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flexPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFlexPromotionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeGiftPromotionIdTags + +> GETFreeGiftPromotionIdTags(ctx, freeGiftPromotionId).Execute() + +Retrieve the tags associated to the free gift promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeGiftPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETFreeGiftPromotionIdTags(context.Background(), freeGiftPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETFreeGiftPromotionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeShippingPromotionIdTags + +> GETFreeShippingPromotionIdTags(ctx, freeShippingPromotionId).Execute() + +Retrieve the tags associated to the free shipping promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeShippingPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETFreeShippingPromotionIdTags(context.Background(), freeShippingPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETFreeShippingPromotionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETGiftCardIdTags + +> GETGiftCardIdTags(ctx, giftCardId).Execute() + +Retrieve the tags associated to the gift card + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + giftCardId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETGiftCardIdTags(context.Background(), giftCardId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETGiftCardIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**giftCardId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGiftCardIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETLineItemIdTags + +> GETLineItemIdTags(ctx, lineItemId).Execute() + +Retrieve the tags associated to the line item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + lineItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETLineItemIdTags(context.Background(), lineItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETLineItemIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**lineItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETLineItemIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETLineItemOptionIdTags + +> GETLineItemOptionIdTags(ctx, lineItemOptionId).Execute() + +Retrieve the tags associated to the line item option + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + lineItemOptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETLineItemOptionIdTags(context.Background(), lineItemOptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETLineItemOptionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**lineItemOptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETLineItemOptionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdTags + +> GETOrderIdTags(ctx, orderId).Execute() + +Retrieve the tags associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETOrderIdTags(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETOrderIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderSubscriptionIdTags + +> GETOrderSubscriptionIdTags(ctx, orderSubscriptionId).Execute() + +Retrieve the tags associated to the order subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETOrderSubscriptionIdTags(context.Background(), orderSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETOrderSubscriptionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPercentageDiscountPromotionIdTags + +> GETPercentageDiscountPromotionIdTags(ctx, percentageDiscountPromotionId).Execute() + +Retrieve the tags associated to the percentage discount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + percentageDiscountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETPercentageDiscountPromotionIdTags(context.Background(), percentageDiscountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETPercentageDiscountPromotionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPromotionIdTags + +> GETPromotionIdTags(ctx, promotionId).Execute() + +Retrieve the tags associated to the promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + promotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETPromotionIdTags(context.Background(), promotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETPromotionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**promotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPromotionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETReturnIdTags + +> GETReturnIdTags(ctx, returnId).Execute() + +Retrieve the tags associated to the return + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + returnId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETReturnIdTags(context.Background(), returnId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETReturnIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**returnId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETReturnIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETShipmentIdTags + +> GETShipmentIdTags(ctx, shipmentId).Execute() + +Retrieve the tags associated to the shipment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + shipmentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETShipmentIdTags(context.Background(), shipmentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETShipmentIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**shipmentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETShipmentIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETSkuIdTags + +> GETSkuIdTags(ctx, skuId).Execute() + +Retrieve the tags associated to the SKU + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + skuId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETSkuIdTags(context.Background(), skuId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETSkuIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**skuId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETSkuIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETSkuOptionIdTags + +> GETSkuOptionIdTags(ctx, skuOptionId).Execute() + +Retrieve the tags associated to the SKU option + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + skuOptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TagsApi.GETSkuOptionIdTags(context.Background(), skuOptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETSkuOptionIdTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**skuOptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETSkuOptionIdTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETTags + +> GETTags200Response GETTags(ctx).Execute() + +List all tags + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TagsApi.GETTags(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETTags`: GETTags200Response + fmt.Fprintf(os.Stdout, "Response from `TagsApi.GETTags`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETTagsRequest struct via the builder pattern + + +### Return type + +[**GETTags200Response**](GETTags200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETTagsTagId + +> GETTagsTagId200Response GETTagsTagId(ctx, tagId).Execute() + +Retrieve a tag + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + tagId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TagsApi.GETTagsTagId(context.Background(), tagId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.GETTagsTagId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETTagsTagId`: GETTagsTagId200Response + fmt.Fprintf(os.Stdout, "Response from `TagsApi.GETTagsTagId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tagId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETTagsTagIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**GETTagsTagId200Response**](GETTagsTagId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PATCHTagsTagId + +> PATCHTagsTagId200Response PATCHTagsTagId(ctx, tagId).TagUpdate(tagUpdate).Execute() + +Update a tag + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + tagUpdate := *openapiclient.NewTagUpdate(*openapiclient.NewTagUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHTagsTagId200ResponseDataAttributes())) // TagUpdate | + tagId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TagsApi.PATCHTagsTagId(context.Background(), tagId).TagUpdate(tagUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.PATCHTagsTagId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PATCHTagsTagId`: PATCHTagsTagId200Response + fmt.Fprintf(os.Stdout, "Response from `TagsApi.PATCHTagsTagId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tagId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPATCHTagsTagIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tagUpdate** | [**TagUpdate**](TagUpdate.md) | | + + +### Return type + +[**PATCHTagsTagId200Response**](PATCHTagsTagId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## POSTTags + +> POSTTags201Response POSTTags(ctx).TagCreate(tagCreate).Execute() + +Create a tag + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + tagCreate := *openapiclient.NewTagCreate(*openapiclient.NewTagCreateData(interface{}(123), *openapiclient.NewPOSTTags201ResponseDataAttributes(interface{}(new_campaign)))) // TagCreate | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TagsApi.POSTTags(context.Background()).TagCreate(tagCreate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TagsApi.POSTTags``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `POSTTags`: POSTTags201Response + fmt.Fprintf(os.Stdout, "Response from `TagsApi.POSTTags`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPOSTTagsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tagCreate** | [**TagCreate**](TagCreate.md) | | + +### Return type + +[**POSTTags201Response**](POSTTags201Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/api/docs/TaxCategoryCreateDataRelationships.md b/api/docs/TaxCategoryCreateDataRelationships.md index 7e28bdfa..e9414740 100644 --- a/api/docs/TaxCategoryCreateDataRelationships.md +++ b/api/docs/TaxCategoryCreateDataRelationships.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Sku** | [**InStockSubscriptionCreateDataRelationshipsSku**](InStockSubscriptionCreateDataRelationshipsSku.md) | | -**TaxCalculator** | [**TaxCategoryCreateDataRelationshipsTaxCalculator**](TaxCategoryCreateDataRelationshipsTaxCalculator.md) | | +**TaxCalculator** | [**MarketCreateDataRelationshipsTaxCalculator**](MarketCreateDataRelationshipsTaxCalculator.md) | | ## Methods ### NewTaxCategoryCreateDataRelationships -`func NewTaxCategoryCreateDataRelationships(sku InStockSubscriptionCreateDataRelationshipsSku, taxCalculator TaxCategoryCreateDataRelationshipsTaxCalculator, ) *TaxCategoryCreateDataRelationships` +`func NewTaxCategoryCreateDataRelationships(sku InStockSubscriptionCreateDataRelationshipsSku, taxCalculator MarketCreateDataRelationshipsTaxCalculator, ) *TaxCategoryCreateDataRelationships` NewTaxCategoryCreateDataRelationships instantiates a new TaxCategoryCreateDataRelationships object This constructor will assign default values to properties that have it defined, @@ -48,20 +48,20 @@ SetSku sets Sku field to given value. ### GetTaxCalculator -`func (o *TaxCategoryCreateDataRelationships) GetTaxCalculator() TaxCategoryCreateDataRelationshipsTaxCalculator` +`func (o *TaxCategoryCreateDataRelationships) GetTaxCalculator() MarketCreateDataRelationshipsTaxCalculator` GetTaxCalculator returns the TaxCalculator field if non-nil, zero value otherwise. ### GetTaxCalculatorOk -`func (o *TaxCategoryCreateDataRelationships) GetTaxCalculatorOk() (*TaxCategoryCreateDataRelationshipsTaxCalculator, bool)` +`func (o *TaxCategoryCreateDataRelationships) GetTaxCalculatorOk() (*MarketCreateDataRelationshipsTaxCalculator, bool)` GetTaxCalculatorOk returns a tuple with the TaxCalculator field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTaxCalculator -`func (o *TaxCategoryCreateDataRelationships) SetTaxCalculator(v TaxCategoryCreateDataRelationshipsTaxCalculator)` +`func (o *TaxCategoryCreateDataRelationships) SetTaxCalculator(v MarketCreateDataRelationshipsTaxCalculator)` SetTaxCalculator sets TaxCalculator field to given value. diff --git a/api/docs/TaxCategoryCreateDataRelationshipsTaxCalculator.md b/api/docs/TaxCategoryCreateDataRelationshipsTaxCalculator.md deleted file mode 100644 index 0705de6a..00000000 --- a/api/docs/TaxCategoryCreateDataRelationshipsTaxCalculator.md +++ /dev/null @@ -1,51 +0,0 @@ -# TaxCategoryCreateDataRelationshipsTaxCalculator - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**TaxCategoryDataRelationshipsTaxCalculatorData**](TaxCategoryDataRelationshipsTaxCalculatorData.md) | | - -## Methods - -### NewTaxCategoryCreateDataRelationshipsTaxCalculator - -`func NewTaxCategoryCreateDataRelationshipsTaxCalculator(data TaxCategoryDataRelationshipsTaxCalculatorData, ) *TaxCategoryCreateDataRelationshipsTaxCalculator` - -NewTaxCategoryCreateDataRelationshipsTaxCalculator instantiates a new TaxCategoryCreateDataRelationshipsTaxCalculator object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTaxCategoryCreateDataRelationshipsTaxCalculatorWithDefaults - -`func NewTaxCategoryCreateDataRelationshipsTaxCalculatorWithDefaults() *TaxCategoryCreateDataRelationshipsTaxCalculator` - -NewTaxCategoryCreateDataRelationshipsTaxCalculatorWithDefaults instantiates a new TaxCategoryCreateDataRelationshipsTaxCalculator object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *TaxCategoryCreateDataRelationshipsTaxCalculator) GetData() TaxCategoryDataRelationshipsTaxCalculatorData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *TaxCategoryCreateDataRelationshipsTaxCalculator) GetDataOk() (*TaxCategoryDataRelationshipsTaxCalculatorData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *TaxCategoryCreateDataRelationshipsTaxCalculator) SetData(v TaxCategoryDataRelationshipsTaxCalculatorData)` - -SetData sets Data field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/TaxCategoryDataRelationships.md b/api/docs/TaxCategoryDataRelationships.md index 7366e481..784babcf 100644 --- a/api/docs/TaxCategoryDataRelationships.md +++ b/api/docs/TaxCategoryDataRelationships.md @@ -5,8 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Sku** | Pointer to [**BundleDataRelationshipsSkus**](BundleDataRelationshipsSkus.md) | | [optional] -**TaxCalculator** | Pointer to [**TaxCategoryDataRelationshipsTaxCalculator**](TaxCategoryDataRelationshipsTaxCalculator.md) | | [optional] -**Attachments** | Pointer to [**AvalaraAccountDataRelationshipsAttachments**](AvalaraAccountDataRelationshipsAttachments.md) | | [optional] +**TaxCalculator** | Pointer to [**MarketDataRelationshipsTaxCalculator**](MarketDataRelationshipsTaxCalculator.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -54,20 +55,20 @@ HasSku returns a boolean if a field has been set. ### GetTaxCalculator -`func (o *TaxCategoryDataRelationships) GetTaxCalculator() TaxCategoryDataRelationshipsTaxCalculator` +`func (o *TaxCategoryDataRelationships) GetTaxCalculator() MarketDataRelationshipsTaxCalculator` GetTaxCalculator returns the TaxCalculator field if non-nil, zero value otherwise. ### GetTaxCalculatorOk -`func (o *TaxCategoryDataRelationships) GetTaxCalculatorOk() (*TaxCategoryDataRelationshipsTaxCalculator, bool)` +`func (o *TaxCategoryDataRelationships) GetTaxCalculatorOk() (*MarketDataRelationshipsTaxCalculator, bool)` GetTaxCalculatorOk returns a tuple with the TaxCalculator field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTaxCalculator -`func (o *TaxCategoryDataRelationships) SetTaxCalculator(v TaxCategoryDataRelationshipsTaxCalculator)` +`func (o *TaxCategoryDataRelationships) SetTaxCalculator(v MarketDataRelationshipsTaxCalculator)` SetTaxCalculator sets TaxCalculator field to given value. @@ -79,20 +80,20 @@ HasTaxCalculator returns a boolean if a field has been set. ### GetAttachments -`func (o *TaxCategoryDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments` +`func (o *TaxCategoryDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` GetAttachments returns the Attachments field if non-nil, zero value otherwise. ### GetAttachmentsOk -`func (o *TaxCategoryDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool)` +`func (o *TaxCategoryDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAttachments -`func (o *TaxCategoryDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments)` +`func (o *TaxCategoryDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` SetAttachments sets Attachments field to given value. @@ -102,6 +103,31 @@ SetAttachments sets Attachments field to given value. HasAttachments returns a boolean if a field has been set. +### GetVersions + +`func (o *TaxCategoryDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *TaxCategoryDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *TaxCategoryDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *TaxCategoryDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/TaxCategoryDataRelationshipsTaxCalculator.md b/api/docs/TaxCategoryDataRelationshipsTaxCalculator.md deleted file mode 100644 index a7a60226..00000000 --- a/api/docs/TaxCategoryDataRelationshipsTaxCalculator.md +++ /dev/null @@ -1,56 +0,0 @@ -# TaxCategoryDataRelationshipsTaxCalculator - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | Pointer to [**TaxCategoryDataRelationshipsTaxCalculatorData**](TaxCategoryDataRelationshipsTaxCalculatorData.md) | | [optional] - -## Methods - -### NewTaxCategoryDataRelationshipsTaxCalculator - -`func NewTaxCategoryDataRelationshipsTaxCalculator() *TaxCategoryDataRelationshipsTaxCalculator` - -NewTaxCategoryDataRelationshipsTaxCalculator instantiates a new TaxCategoryDataRelationshipsTaxCalculator object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTaxCategoryDataRelationshipsTaxCalculatorWithDefaults - -`func NewTaxCategoryDataRelationshipsTaxCalculatorWithDefaults() *TaxCategoryDataRelationshipsTaxCalculator` - -NewTaxCategoryDataRelationshipsTaxCalculatorWithDefaults instantiates a new TaxCategoryDataRelationshipsTaxCalculator object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *TaxCategoryDataRelationshipsTaxCalculator) GetData() TaxCategoryDataRelationshipsTaxCalculatorData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *TaxCategoryDataRelationshipsTaxCalculator) GetDataOk() (*TaxCategoryDataRelationshipsTaxCalculatorData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *TaxCategoryDataRelationshipsTaxCalculator) SetData(v TaxCategoryDataRelationshipsTaxCalculatorData)` - -SetData sets Data field to given value. - -### HasData - -`func (o *TaxCategoryDataRelationshipsTaxCalculator) HasData() bool` - -HasData returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/api/docs/TaxRuleDataRelationships.md b/api/docs/TaxRuleDataRelationships.md index 9165f82f..ac4cd09a 100644 --- a/api/docs/TaxRuleDataRelationships.md +++ b/api/docs/TaxRuleDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ManualTaxCalculator** | Pointer to [**TaxRuleDataRelationshipsManualTaxCalculator**](TaxRuleDataRelationshipsManualTaxCalculator.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -50,6 +51,31 @@ SetManualTaxCalculator sets ManualTaxCalculator field to given value. HasManualTaxCalculator returns a boolean if a field has been set. +### GetVersions + +`func (o *TaxRuleDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *TaxRuleDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *TaxRuleDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *TaxRuleDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/TaxjarAccountData.md b/api/docs/TaxjarAccountData.md index 494b849a..de68e684 100644 --- a/api/docs/TaxjarAccountData.md +++ b/api/docs/TaxjarAccountData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes**](GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**AvalaraAccountDataRelationships**](AvalaraAccountDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**TaxjarAccountDataRelationships**](TaxjarAccountDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *TaxjarAccountData) GetRelationships() AvalaraAccountDataRelationships` +`func (o *TaxjarAccountData) GetRelationships() TaxjarAccountDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *TaxjarAccountData) GetRelationshipsOk() (*AvalaraAccountDataRelationships, bool)` +`func (o *TaxjarAccountData) GetRelationshipsOk() (*TaxjarAccountDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *TaxjarAccountData) SetRelationships(v AvalaraAccountDataRelationships)` +`func (o *TaxjarAccountData) SetRelationships(v TaxjarAccountDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/TaxjarAccountDataRelationships.md b/api/docs/TaxjarAccountDataRelationships.md new file mode 100644 index 00000000..c343ba48 --- /dev/null +++ b/api/docs/TaxjarAccountDataRelationships.md @@ -0,0 +1,134 @@ +# TaxjarAccountDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Markets** | Pointer to [**AvalaraAccountDataRelationshipsMarkets**](AvalaraAccountDataRelationshipsMarkets.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] +**TaxCategories** | Pointer to [**AvalaraAccountDataRelationshipsTaxCategories**](AvalaraAccountDataRelationshipsTaxCategories.md) | | [optional] + +## Methods + +### NewTaxjarAccountDataRelationships + +`func NewTaxjarAccountDataRelationships() *TaxjarAccountDataRelationships` + +NewTaxjarAccountDataRelationships instantiates a new TaxjarAccountDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTaxjarAccountDataRelationshipsWithDefaults + +`func NewTaxjarAccountDataRelationshipsWithDefaults() *TaxjarAccountDataRelationships` + +NewTaxjarAccountDataRelationshipsWithDefaults instantiates a new TaxjarAccountDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMarkets + +`func (o *TaxjarAccountDataRelationships) GetMarkets() AvalaraAccountDataRelationshipsMarkets` + +GetMarkets returns the Markets field if non-nil, zero value otherwise. + +### GetMarketsOk + +`func (o *TaxjarAccountDataRelationships) GetMarketsOk() (*AvalaraAccountDataRelationshipsMarkets, bool)` + +GetMarketsOk returns a tuple with the Markets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkets + +`func (o *TaxjarAccountDataRelationships) SetMarkets(v AvalaraAccountDataRelationshipsMarkets)` + +SetMarkets sets Markets field to given value. + +### HasMarkets + +`func (o *TaxjarAccountDataRelationships) HasMarkets() bool` + +HasMarkets returns a boolean if a field has been set. + +### GetAttachments + +`func (o *TaxjarAccountDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *TaxjarAccountDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *TaxjarAccountDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *TaxjarAccountDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + +### GetVersions + +`func (o *TaxjarAccountDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *TaxjarAccountDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *TaxjarAccountDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *TaxjarAccountDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + +### GetTaxCategories + +`func (o *TaxjarAccountDataRelationships) GetTaxCategories() AvalaraAccountDataRelationshipsTaxCategories` + +GetTaxCategories returns the TaxCategories field if non-nil, zero value otherwise. + +### GetTaxCategoriesOk + +`func (o *TaxjarAccountDataRelationships) GetTaxCategoriesOk() (*AvalaraAccountDataRelationshipsTaxCategories, bool)` + +GetTaxCategoriesOk returns a tuple with the TaxCategories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTaxCategories + +`func (o *TaxjarAccountDataRelationships) SetTaxCategories(v AvalaraAccountDataRelationshipsTaxCategories)` + +SetTaxCategories sets TaxCategories field to given value. + +### HasTaxCategories + +`func (o *TaxjarAccountDataRelationships) HasTaxCategories() bool` + +HasTaxCategories returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/TransactionDataRelationships.md b/api/docs/TransactionDataRelationships.md index b006a59d..e1ae2611 100644 --- a/api/docs/TransactionDataRelationships.md +++ b/api/docs/TransactionDataRelationships.md @@ -5,6 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Order** | Pointer to [**AdyenPaymentDataRelationshipsOrder**](AdyenPaymentDataRelationshipsOrder.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -50,6 +53,81 @@ SetOrder sets Order field to given value. HasOrder returns a boolean if a field has been set. +### GetAttachments + +`func (o *TransactionDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` + +GetAttachments returns the Attachments field if non-nil, zero value otherwise. + +### GetAttachmentsOk + +`func (o *TransactionDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` + +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttachments + +`func (o *TransactionDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` + +SetAttachments sets Attachments field to given value. + +### HasAttachments + +`func (o *TransactionDataRelationships) HasAttachments() bool` + +HasAttachments returns a boolean if a field has been set. + +### GetEvents + +`func (o *TransactionDataRelationships) GetEvents() AddressDataRelationshipsEvents` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *TransactionDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *TransactionDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *TransactionDataRelationships) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetVersions + +`func (o *TransactionDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *TransactionDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *TransactionDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *TransactionDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/Version.md b/api/docs/Version.md new file mode 100644 index 00000000..fdf7f1ae --- /dev/null +++ b/api/docs/Version.md @@ -0,0 +1,56 @@ +# Version + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**VersionData**](VersionData.md) | | [optional] + +## Methods + +### NewVersion + +`func NewVersion() *Version` + +NewVersion instantiates a new Version object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVersionWithDefaults + +`func NewVersionWithDefaults() *Version` + +NewVersionWithDefaults instantiates a new Version object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *Version) GetData() VersionData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *Version) GetDataOk() (*VersionData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *Version) SetData(v VersionData)` + +SetData sets Data field to given value. + +### HasData + +`func (o *Version) HasData() bool` + +HasData returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/VersionData.md b/api/docs/VersionData.md new file mode 100644 index 00000000..c2102152 --- /dev/null +++ b/api/docs/VersionData.md @@ -0,0 +1,118 @@ +# VersionData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Attributes** | [**GETVersionsVersionId200ResponseDataAttributes**](GETVersionsVersionId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewVersionData + +`func NewVersionData(type_ interface{}, attributes GETVersionsVersionId200ResponseDataAttributes, ) *VersionData` + +NewVersionData instantiates a new VersionData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVersionDataWithDefaults + +`func NewVersionDataWithDefaults() *VersionData` + +NewVersionDataWithDefaults instantiates a new VersionData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *VersionData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *VersionData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *VersionData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *VersionData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *VersionData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetAttributes + +`func (o *VersionData) GetAttributes() GETVersionsVersionId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *VersionData) GetAttributesOk() (*GETVersionsVersionId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *VersionData) SetAttributes(v GETVersionsVersionId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *VersionData) GetRelationships() interface{}` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *VersionData) GetRelationshipsOk() (*interface{}, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *VersionData) SetRelationships(v interface{})` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *VersionData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### SetRelationshipsNil + +`func (o *VersionData) SetRelationshipsNil(b bool)` + + SetRelationshipsNil sets the value for Relationships to be an explicit nil + +### UnsetRelationships +`func (o *VersionData) UnsetRelationships()` + +UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/VersionsApi.md b/api/docs/VersionsApi.md new file mode 100644 index 00000000..eb5db495 --- /dev/null +++ b/api/docs/VersionsApi.md @@ -0,0 +1,6834 @@ +# \VersionsApi + +All URIs are relative to *https://.commercelayer.io/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GETAddressIdVersions**](VersionsApi.md#GETAddressIdVersions) | **Get** /addresses/{addressId}/versions | Retrieve the versions associated to the address +[**GETAdjustmentIdVersions**](VersionsApi.md#GETAdjustmentIdVersions) | **Get** /adjustments/{adjustmentId}/versions | Retrieve the versions associated to the adjustment +[**GETAdyenGatewayIdVersions**](VersionsApi.md#GETAdyenGatewayIdVersions) | **Get** /adyen_gateways/{adyenGatewayId}/versions | Retrieve the versions associated to the adyen gateway +[**GETAdyenPaymentIdVersions**](VersionsApi.md#GETAdyenPaymentIdVersions) | **Get** /adyen_payments/{adyenPaymentId}/versions | Retrieve the versions associated to the adyen payment +[**GETAuthorizationIdVersions**](VersionsApi.md#GETAuthorizationIdVersions) | **Get** /authorizations/{authorizationId}/versions | Retrieve the versions associated to the authorization +[**GETAvalaraAccountIdVersions**](VersionsApi.md#GETAvalaraAccountIdVersions) | **Get** /avalara_accounts/{avalaraAccountId}/versions | Retrieve the versions associated to the avalara account +[**GETAxerveGatewayIdVersions**](VersionsApi.md#GETAxerveGatewayIdVersions) | **Get** /axerve_gateways/{axerveGatewayId}/versions | Retrieve the versions associated to the axerve gateway +[**GETAxervePaymentIdVersions**](VersionsApi.md#GETAxervePaymentIdVersions) | **Get** /axerve_payments/{axervePaymentId}/versions | Retrieve the versions associated to the axerve payment +[**GETBillingInfoValidationRuleIdVersions**](VersionsApi.md#GETBillingInfoValidationRuleIdVersions) | **Get** /billing_info_validation_rules/{billingInfoValidationRuleId}/versions | Retrieve the versions associated to the billing info validation rule +[**GETBraintreeGatewayIdVersions**](VersionsApi.md#GETBraintreeGatewayIdVersions) | **Get** /braintree_gateways/{braintreeGatewayId}/versions | Retrieve the versions associated to the braintree gateway +[**GETBraintreePaymentIdVersions**](VersionsApi.md#GETBraintreePaymentIdVersions) | **Get** /braintree_payments/{braintreePaymentId}/versions | Retrieve the versions associated to the braintree payment +[**GETBundleIdVersions**](VersionsApi.md#GETBundleIdVersions) | **Get** /bundles/{bundleId}/versions | Retrieve the versions associated to the bundle +[**GETBuyXPayYPromotionIdVersions**](VersionsApi.md#GETBuyXPayYPromotionIdVersions) | **Get** /buy_x_pay_y_promotions/{buyXPayYPromotionId}/versions | Retrieve the versions associated to the buy x pay y promotion +[**GETCaptureIdVersions**](VersionsApi.md#GETCaptureIdVersions) | **Get** /captures/{captureId}/versions | Retrieve the versions associated to the capture +[**GETCarrierAccountIdVersions**](VersionsApi.md#GETCarrierAccountIdVersions) | **Get** /carrier_accounts/{carrierAccountId}/versions | Retrieve the versions associated to the carrier account +[**GETCheckoutComGatewayIdVersions**](VersionsApi.md#GETCheckoutComGatewayIdVersions) | **Get** /checkout_com_gateways/{checkoutComGatewayId}/versions | Retrieve the versions associated to the checkout.com gateway +[**GETCheckoutComPaymentIdVersions**](VersionsApi.md#GETCheckoutComPaymentIdVersions) | **Get** /checkout_com_payments/{checkoutComPaymentId}/versions | Retrieve the versions associated to the checkout.com payment +[**GETCleanupIdVersions**](VersionsApi.md#GETCleanupIdVersions) | **Get** /cleanups/{cleanupId}/versions | Retrieve the versions associated to the cleanup +[**GETCouponCodesPromotionRuleIdVersions**](VersionsApi.md#GETCouponCodesPromotionRuleIdVersions) | **Get** /coupon_codes_promotion_rules/{couponCodesPromotionRuleId}/versions | Retrieve the versions associated to the coupon codes promotion rule +[**GETCouponIdVersions**](VersionsApi.md#GETCouponIdVersions) | **Get** /coupons/{couponId}/versions | Retrieve the versions associated to the coupon +[**GETCouponRecipientIdVersions**](VersionsApi.md#GETCouponRecipientIdVersions) | **Get** /coupon_recipients/{couponRecipientId}/versions | Retrieve the versions associated to the coupon recipient +[**GETCustomPromotionRuleIdVersions**](VersionsApi.md#GETCustomPromotionRuleIdVersions) | **Get** /custom_promotion_rules/{customPromotionRuleId}/versions | Retrieve the versions associated to the custom promotion rule +[**GETCustomerAddressIdVersions**](VersionsApi.md#GETCustomerAddressIdVersions) | **Get** /customer_addresses/{customerAddressId}/versions | Retrieve the versions associated to the customer address +[**GETCustomerGroupIdVersions**](VersionsApi.md#GETCustomerGroupIdVersions) | **Get** /customer_groups/{customerGroupId}/versions | Retrieve the versions associated to the customer group +[**GETCustomerPaymentSourceIdVersions**](VersionsApi.md#GETCustomerPaymentSourceIdVersions) | **Get** /customer_payment_sources/{customerPaymentSourceId}/versions | Retrieve the versions associated to the customer payment source +[**GETCustomerSubscriptionIdVersions**](VersionsApi.md#GETCustomerSubscriptionIdVersions) | **Get** /customer_subscriptions/{customerSubscriptionId}/versions | Retrieve the versions associated to the customer subscription +[**GETDeliveryLeadTimeIdVersions**](VersionsApi.md#GETDeliveryLeadTimeIdVersions) | **Get** /delivery_lead_times/{deliveryLeadTimeId}/versions | Retrieve the versions associated to the delivery lead time +[**GETExternalGatewayIdVersions**](VersionsApi.md#GETExternalGatewayIdVersions) | **Get** /external_gateways/{externalGatewayId}/versions | Retrieve the versions associated to the external gateway +[**GETExternalPaymentIdVersions**](VersionsApi.md#GETExternalPaymentIdVersions) | **Get** /external_payments/{externalPaymentId}/versions | Retrieve the versions associated to the external payment +[**GETExternalPromotionIdVersions**](VersionsApi.md#GETExternalPromotionIdVersions) | **Get** /external_promotions/{externalPromotionId}/versions | Retrieve the versions associated to the external promotion +[**GETExternalTaxCalculatorIdVersions**](VersionsApi.md#GETExternalTaxCalculatorIdVersions) | **Get** /external_tax_calculators/{externalTaxCalculatorId}/versions | Retrieve the versions associated to the external tax calculator +[**GETFixedAmountPromotionIdVersions**](VersionsApi.md#GETFixedAmountPromotionIdVersions) | **Get** /fixed_amount_promotions/{fixedAmountPromotionId}/versions | Retrieve the versions associated to the fixed amount promotion +[**GETFixedPricePromotionIdVersions**](VersionsApi.md#GETFixedPricePromotionIdVersions) | **Get** /fixed_price_promotions/{fixedPricePromotionId}/versions | Retrieve the versions associated to the fixed price promotion +[**GETFlexPromotionIdVersions**](VersionsApi.md#GETFlexPromotionIdVersions) | **Get** /flex_promotions/{flexPromotionId}/versions | Retrieve the versions associated to the flex promotion +[**GETFreeGiftPromotionIdVersions**](VersionsApi.md#GETFreeGiftPromotionIdVersions) | **Get** /free_gift_promotions/{freeGiftPromotionId}/versions | Retrieve the versions associated to the free gift promotion +[**GETFreeShippingPromotionIdVersions**](VersionsApi.md#GETFreeShippingPromotionIdVersions) | **Get** /free_shipping_promotions/{freeShippingPromotionId}/versions | Retrieve the versions associated to the free shipping promotion +[**GETGiftCardIdVersions**](VersionsApi.md#GETGiftCardIdVersions) | **Get** /gift_cards/{giftCardId}/versions | Retrieve the versions associated to the gift card +[**GETGiftCardRecipientIdVersions**](VersionsApi.md#GETGiftCardRecipientIdVersions) | **Get** /gift_card_recipients/{giftCardRecipientId}/versions | Retrieve the versions associated to the gift card recipient +[**GETInStockSubscriptionIdVersions**](VersionsApi.md#GETInStockSubscriptionIdVersions) | **Get** /in_stock_subscriptions/{inStockSubscriptionId}/versions | Retrieve the versions associated to the in stock subscription +[**GETInventoryModelIdVersions**](VersionsApi.md#GETInventoryModelIdVersions) | **Get** /inventory_models/{inventoryModelId}/versions | Retrieve the versions associated to the inventory model +[**GETInventoryReturnLocationIdVersions**](VersionsApi.md#GETInventoryReturnLocationIdVersions) | **Get** /inventory_return_locations/{inventoryReturnLocationId}/versions | Retrieve the versions associated to the inventory return location +[**GETInventoryStockLocationIdVersions**](VersionsApi.md#GETInventoryStockLocationIdVersions) | **Get** /inventory_stock_locations/{inventoryStockLocationId}/versions | Retrieve the versions associated to the inventory stock location +[**GETKlarnaGatewayIdVersions**](VersionsApi.md#GETKlarnaGatewayIdVersions) | **Get** /klarna_gateways/{klarnaGatewayId}/versions | Retrieve the versions associated to the klarna gateway +[**GETKlarnaPaymentIdVersions**](VersionsApi.md#GETKlarnaPaymentIdVersions) | **Get** /klarna_payments/{klarnaPaymentId}/versions | Retrieve the versions associated to the klarna payment +[**GETManualGatewayIdVersions**](VersionsApi.md#GETManualGatewayIdVersions) | **Get** /manual_gateways/{manualGatewayId}/versions | Retrieve the versions associated to the manual gateway +[**GETManualTaxCalculatorIdVersions**](VersionsApi.md#GETManualTaxCalculatorIdVersions) | **Get** /manual_tax_calculators/{manualTaxCalculatorId}/versions | Retrieve the versions associated to the manual tax calculator +[**GETMarketIdVersions**](VersionsApi.md#GETMarketIdVersions) | **Get** /markets/{marketId}/versions | Retrieve the versions associated to the market +[**GETMerchantIdVersions**](VersionsApi.md#GETMerchantIdVersions) | **Get** /merchants/{merchantId}/versions | Retrieve the versions associated to the merchant +[**GETOrderAmountPromotionRuleIdVersions**](VersionsApi.md#GETOrderAmountPromotionRuleIdVersions) | **Get** /order_amount_promotion_rules/{orderAmountPromotionRuleId}/versions | Retrieve the versions associated to the order amount promotion rule +[**GETOrderIdVersions**](VersionsApi.md#GETOrderIdVersions) | **Get** /orders/{orderId}/versions | Retrieve the versions associated to the order +[**GETOrderSubscriptionIdVersions**](VersionsApi.md#GETOrderSubscriptionIdVersions) | **Get** /order_subscriptions/{orderSubscriptionId}/versions | Retrieve the versions associated to the order subscription +[**GETPackageIdVersions**](VersionsApi.md#GETPackageIdVersions) | **Get** /packages/{packageId}/versions | Retrieve the versions associated to the package +[**GETParcelIdVersions**](VersionsApi.md#GETParcelIdVersions) | **Get** /parcels/{parcelId}/versions | Retrieve the versions associated to the parcel +[**GETParcelLineItemIdVersions**](VersionsApi.md#GETParcelLineItemIdVersions) | **Get** /parcel_line_items/{parcelLineItemId}/versions | Retrieve the versions associated to the parcel line item +[**GETPaymentGatewayIdVersions**](VersionsApi.md#GETPaymentGatewayIdVersions) | **Get** /payment_gateways/{paymentGatewayId}/versions | Retrieve the versions associated to the payment gateway +[**GETPaymentMethodIdVersions**](VersionsApi.md#GETPaymentMethodIdVersions) | **Get** /payment_methods/{paymentMethodId}/versions | Retrieve the versions associated to the payment method +[**GETPaypalGatewayIdVersions**](VersionsApi.md#GETPaypalGatewayIdVersions) | **Get** /paypal_gateways/{paypalGatewayId}/versions | Retrieve the versions associated to the paypal gateway +[**GETPaypalPaymentIdVersions**](VersionsApi.md#GETPaypalPaymentIdVersions) | **Get** /paypal_payments/{paypalPaymentId}/versions | Retrieve the versions associated to the paypal payment +[**GETPercentageDiscountPromotionIdVersions**](VersionsApi.md#GETPercentageDiscountPromotionIdVersions) | **Get** /percentage_discount_promotions/{percentageDiscountPromotionId}/versions | Retrieve the versions associated to the percentage discount promotion +[**GETPriceFrequencyTierIdVersions**](VersionsApi.md#GETPriceFrequencyTierIdVersions) | **Get** /price_frequency_tiers/{priceFrequencyTierId}/versions | Retrieve the versions associated to the price frequency tier +[**GETPriceIdVersions**](VersionsApi.md#GETPriceIdVersions) | **Get** /prices/{priceId}/versions | Retrieve the versions associated to the price +[**GETPriceListIdVersions**](VersionsApi.md#GETPriceListIdVersions) | **Get** /price_lists/{priceListId}/versions | Retrieve the versions associated to the price list +[**GETPriceListSchedulerIdVersions**](VersionsApi.md#GETPriceListSchedulerIdVersions) | **Get** /price_list_schedulers/{priceListSchedulerId}/versions | Retrieve the versions associated to the price list scheduler +[**GETPriceTierIdVersions**](VersionsApi.md#GETPriceTierIdVersions) | **Get** /price_tiers/{priceTierId}/versions | Retrieve the versions associated to the price tier +[**GETPriceVolumeTierIdVersions**](VersionsApi.md#GETPriceVolumeTierIdVersions) | **Get** /price_volume_tiers/{priceVolumeTierId}/versions | Retrieve the versions associated to the price volume tier +[**GETPromotionIdVersions**](VersionsApi.md#GETPromotionIdVersions) | **Get** /promotions/{promotionId}/versions | Retrieve the versions associated to the promotion +[**GETPromotionRuleIdVersions**](VersionsApi.md#GETPromotionRuleIdVersions) | **Get** /promotion_rules/{promotionRuleId}/versions | Retrieve the versions associated to the promotion rule +[**GETRefundIdVersions**](VersionsApi.md#GETRefundIdVersions) | **Get** /refunds/{refundId}/versions | Retrieve the versions associated to the refund +[**GETReservedStockIdVersions**](VersionsApi.md#GETReservedStockIdVersions) | **Get** /reserved_stocks/{reservedStockId}/versions | Retrieve the versions associated to the reserved stock +[**GETReturnIdVersions**](VersionsApi.md#GETReturnIdVersions) | **Get** /returns/{returnId}/versions | Retrieve the versions associated to the return +[**GETSatispayGatewayIdVersions**](VersionsApi.md#GETSatispayGatewayIdVersions) | **Get** /satispay_gateways/{satispayGatewayId}/versions | Retrieve the versions associated to the satispay gateway +[**GETSatispayPaymentIdVersions**](VersionsApi.md#GETSatispayPaymentIdVersions) | **Get** /satispay_payments/{satispayPaymentId}/versions | Retrieve the versions associated to the satispay payment +[**GETShipmentIdVersions**](VersionsApi.md#GETShipmentIdVersions) | **Get** /shipments/{shipmentId}/versions | Retrieve the versions associated to the shipment +[**GETShippingCategoryIdVersions**](VersionsApi.md#GETShippingCategoryIdVersions) | **Get** /shipping_categories/{shippingCategoryId}/versions | Retrieve the versions associated to the shipping category +[**GETShippingMethodIdVersions**](VersionsApi.md#GETShippingMethodIdVersions) | **Get** /shipping_methods/{shippingMethodId}/versions | Retrieve the versions associated to the shipping method +[**GETShippingMethodTierIdVersions**](VersionsApi.md#GETShippingMethodTierIdVersions) | **Get** /shipping_method_tiers/{shippingMethodTierId}/versions | Retrieve the versions associated to the shipping method tier +[**GETShippingWeightTierIdVersions**](VersionsApi.md#GETShippingWeightTierIdVersions) | **Get** /shipping_weight_tiers/{shippingWeightTierId}/versions | Retrieve the versions associated to the shipping weight tier +[**GETShippingZoneIdVersions**](VersionsApi.md#GETShippingZoneIdVersions) | **Get** /shipping_zones/{shippingZoneId}/versions | Retrieve the versions associated to the shipping zone +[**GETSkuIdVersions**](VersionsApi.md#GETSkuIdVersions) | **Get** /skus/{skuId}/versions | Retrieve the versions associated to the SKU +[**GETSkuListIdVersions**](VersionsApi.md#GETSkuListIdVersions) | **Get** /sku_lists/{skuListId}/versions | Retrieve the versions associated to the SKU list +[**GETSkuListItemIdVersions**](VersionsApi.md#GETSkuListItemIdVersions) | **Get** /sku_list_items/{skuListItemId}/versions | Retrieve the versions associated to the SKU list item +[**GETSkuListPromotionRuleIdVersions**](VersionsApi.md#GETSkuListPromotionRuleIdVersions) | **Get** /sku_list_promotion_rules/{skuListPromotionRuleId}/versions | Retrieve the versions associated to the SKU list promotion rule +[**GETSkuOptionIdVersions**](VersionsApi.md#GETSkuOptionIdVersions) | **Get** /sku_options/{skuOptionId}/versions | Retrieve the versions associated to the SKU option +[**GETStockItemIdVersions**](VersionsApi.md#GETStockItemIdVersions) | **Get** /stock_items/{stockItemId}/versions | Retrieve the versions associated to the stock item +[**GETStockLineItemIdVersions**](VersionsApi.md#GETStockLineItemIdVersions) | **Get** /stock_line_items/{stockLineItemId}/versions | Retrieve the versions associated to the stock line item +[**GETStockLocationIdVersions**](VersionsApi.md#GETStockLocationIdVersions) | **Get** /stock_locations/{stockLocationId}/versions | Retrieve the versions associated to the stock location +[**GETStockTransferIdVersions**](VersionsApi.md#GETStockTransferIdVersions) | **Get** /stock_transfers/{stockTransferId}/versions | Retrieve the versions associated to the stock transfer +[**GETStripeGatewayIdVersions**](VersionsApi.md#GETStripeGatewayIdVersions) | **Get** /stripe_gateways/{stripeGatewayId}/versions | Retrieve the versions associated to the stripe gateway +[**GETStripePaymentIdVersions**](VersionsApi.md#GETStripePaymentIdVersions) | **Get** /stripe_payments/{stripePaymentId}/versions | Retrieve the versions associated to the stripe payment +[**GETTaxCalculatorIdVersions**](VersionsApi.md#GETTaxCalculatorIdVersions) | **Get** /tax_calculators/{taxCalculatorId}/versions | Retrieve the versions associated to the tax calculator +[**GETTaxCategoryIdVersions**](VersionsApi.md#GETTaxCategoryIdVersions) | **Get** /tax_categories/{taxCategoryId}/versions | Retrieve the versions associated to the tax category +[**GETTaxRuleIdVersions**](VersionsApi.md#GETTaxRuleIdVersions) | **Get** /tax_rules/{taxRuleId}/versions | Retrieve the versions associated to the tax rule +[**GETTaxjarAccountIdVersions**](VersionsApi.md#GETTaxjarAccountIdVersions) | **Get** /taxjar_accounts/{taxjarAccountId}/versions | Retrieve the versions associated to the taxjar account +[**GETTransactionIdVersions**](VersionsApi.md#GETTransactionIdVersions) | **Get** /transactions/{transactionId}/versions | Retrieve the versions associated to the transaction +[**GETVersions**](VersionsApi.md#GETVersions) | **Get** /versions | List all versions +[**GETVersionsVersionId**](VersionsApi.md#GETVersionsVersionId) | **Get** /versions/{versionId} | Retrieve a version +[**GETVoidIdVersions**](VersionsApi.md#GETVoidIdVersions) | **Get** /voids/{voidId}/versions | Retrieve the versions associated to the void +[**GETWebhookIdVersions**](VersionsApi.md#GETWebhookIdVersions) | **Get** /webhooks/{webhookId}/versions | Retrieve the versions associated to the webhook +[**GETWireTransferIdVersions**](VersionsApi.md#GETWireTransferIdVersions) | **Get** /wire_transfers/{wireTransferId}/versions | Retrieve the versions associated to the wire transfer + + + +## GETAddressIdVersions + +> GETAddressIdVersions(ctx, addressId).Execute() + +Retrieve the versions associated to the address + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + addressId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETAddressIdVersions(context.Background(), addressId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETAddressIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**addressId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETAddressIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETAdjustmentIdVersions + +> GETAdjustmentIdVersions(ctx, adjustmentId).Execute() + +Retrieve the versions associated to the adjustment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + adjustmentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETAdjustmentIdVersions(context.Background(), adjustmentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETAdjustmentIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**adjustmentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETAdjustmentIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETAdyenGatewayIdVersions + +> GETAdyenGatewayIdVersions(ctx, adyenGatewayId).Execute() + +Retrieve the versions associated to the adyen gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + adyenGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETAdyenGatewayIdVersions(context.Background(), adyenGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETAdyenGatewayIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**adyenGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETAdyenGatewayIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETAdyenPaymentIdVersions + +> GETAdyenPaymentIdVersions(ctx, adyenPaymentId).Execute() + +Retrieve the versions associated to the adyen payment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + adyenPaymentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETAdyenPaymentIdVersions(context.Background(), adyenPaymentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETAdyenPaymentIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**adyenPaymentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETAdyenPaymentIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETAuthorizationIdVersions + +> GETAuthorizationIdVersions(ctx, authorizationId).Execute() + +Retrieve the versions associated to the authorization + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + authorizationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETAuthorizationIdVersions(context.Background(), authorizationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETAuthorizationIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**authorizationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETAuthorizationIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETAvalaraAccountIdVersions + +> GETAvalaraAccountIdVersions(ctx, avalaraAccountId).Execute() + +Retrieve the versions associated to the avalara account + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + avalaraAccountId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETAvalaraAccountIdVersions(context.Background(), avalaraAccountId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETAvalaraAccountIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**avalaraAccountId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETAvalaraAccountIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETAxerveGatewayIdVersions + +> GETAxerveGatewayIdVersions(ctx, axerveGatewayId).Execute() + +Retrieve the versions associated to the axerve gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + axerveGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETAxerveGatewayIdVersions(context.Background(), axerveGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETAxerveGatewayIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**axerveGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETAxerveGatewayIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETAxervePaymentIdVersions + +> GETAxervePaymentIdVersions(ctx, axervePaymentId).Execute() + +Retrieve the versions associated to the axerve payment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + axervePaymentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETAxervePaymentIdVersions(context.Background(), axervePaymentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETAxervePaymentIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**axervePaymentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETAxervePaymentIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETBillingInfoValidationRuleIdVersions + +> GETBillingInfoValidationRuleIdVersions(ctx, billingInfoValidationRuleId).Execute() + +Retrieve the versions associated to the billing info validation rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + billingInfoValidationRuleId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETBillingInfoValidationRuleIdVersions(context.Background(), billingInfoValidationRuleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETBillingInfoValidationRuleIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**billingInfoValidationRuleId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBillingInfoValidationRuleIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETBraintreeGatewayIdVersions + +> GETBraintreeGatewayIdVersions(ctx, braintreeGatewayId).Execute() + +Retrieve the versions associated to the braintree gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + braintreeGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETBraintreeGatewayIdVersions(context.Background(), braintreeGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETBraintreeGatewayIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**braintreeGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBraintreeGatewayIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETBraintreePaymentIdVersions + +> GETBraintreePaymentIdVersions(ctx, braintreePaymentId).Execute() + +Retrieve the versions associated to the braintree payment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + braintreePaymentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETBraintreePaymentIdVersions(context.Background(), braintreePaymentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETBraintreePaymentIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**braintreePaymentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBraintreePaymentIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETBundleIdVersions + +> GETBundleIdVersions(ctx, bundleId).Execute() + +Retrieve the versions associated to the bundle + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + bundleId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETBundleIdVersions(context.Background(), bundleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETBundleIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**bundleId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBundleIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETBuyXPayYPromotionIdVersions + +> GETBuyXPayYPromotionIdVersions(ctx, buyXPayYPromotionId).Execute() + +Retrieve the versions associated to the buy x pay y promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + buyXPayYPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETBuyXPayYPromotionIdVersions(context.Background(), buyXPayYPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETBuyXPayYPromotionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**buyXPayYPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETBuyXPayYPromotionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCaptureIdVersions + +> GETCaptureIdVersions(ctx, captureId).Execute() + +Retrieve the versions associated to the capture + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + captureId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETCaptureIdVersions(context.Background(), captureId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETCaptureIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**captureId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCaptureIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCarrierAccountIdVersions + +> GETCarrierAccountIdVersions(ctx, carrierAccountId).Execute() + +Retrieve the versions associated to the carrier account + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + carrierAccountId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETCarrierAccountIdVersions(context.Background(), carrierAccountId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETCarrierAccountIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**carrierAccountId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCarrierAccountIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCheckoutComGatewayIdVersions + +> GETCheckoutComGatewayIdVersions(ctx, checkoutComGatewayId).Execute() + +Retrieve the versions associated to the checkout.com gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + checkoutComGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETCheckoutComGatewayIdVersions(context.Background(), checkoutComGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETCheckoutComGatewayIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**checkoutComGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCheckoutComGatewayIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCheckoutComPaymentIdVersions + +> GETCheckoutComPaymentIdVersions(ctx, checkoutComPaymentId).Execute() + +Retrieve the versions associated to the checkout.com payment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + checkoutComPaymentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETCheckoutComPaymentIdVersions(context.Background(), checkoutComPaymentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETCheckoutComPaymentIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**checkoutComPaymentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCheckoutComPaymentIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCleanupIdVersions + +> GETCleanupIdVersions(ctx, cleanupId).Execute() + +Retrieve the versions associated to the cleanup + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + cleanupId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETCleanupIdVersions(context.Background(), cleanupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETCleanupIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**cleanupId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCleanupIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCouponCodesPromotionRuleIdVersions + +> GETCouponCodesPromotionRuleIdVersions(ctx, couponCodesPromotionRuleId).Execute() + +Retrieve the versions associated to the coupon codes promotion rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + couponCodesPromotionRuleId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETCouponCodesPromotionRuleIdVersions(context.Background(), couponCodesPromotionRuleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETCouponCodesPromotionRuleIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**couponCodesPromotionRuleId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCouponCodesPromotionRuleIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCouponIdVersions + +> GETCouponIdVersions(ctx, couponId).Execute() + +Retrieve the versions associated to the coupon + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + couponId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETCouponIdVersions(context.Background(), couponId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETCouponIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**couponId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCouponIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCouponRecipientIdVersions + +> GETCouponRecipientIdVersions(ctx, couponRecipientId).Execute() + +Retrieve the versions associated to the coupon recipient + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + couponRecipientId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETCouponRecipientIdVersions(context.Background(), couponRecipientId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETCouponRecipientIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**couponRecipientId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCouponRecipientIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomPromotionRuleIdVersions + +> GETCustomPromotionRuleIdVersions(ctx, customPromotionRuleId).Execute() + +Retrieve the versions associated to the custom promotion rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customPromotionRuleId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETCustomPromotionRuleIdVersions(context.Background(), customPromotionRuleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETCustomPromotionRuleIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customPromotionRuleId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomPromotionRuleIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerAddressIdVersions + +> GETCustomerAddressIdVersions(ctx, customerAddressId).Execute() + +Retrieve the versions associated to the customer address + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerAddressId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETCustomerAddressIdVersions(context.Background(), customerAddressId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETCustomerAddressIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerAddressId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerAddressIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerGroupIdVersions + +> GETCustomerGroupIdVersions(ctx, customerGroupId).Execute() + +Retrieve the versions associated to the customer group + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerGroupId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETCustomerGroupIdVersions(context.Background(), customerGroupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETCustomerGroupIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerGroupId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerGroupIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerPaymentSourceIdVersions + +> GETCustomerPaymentSourceIdVersions(ctx, customerPaymentSourceId).Execute() + +Retrieve the versions associated to the customer payment source + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerPaymentSourceId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETCustomerPaymentSourceIdVersions(context.Background(), customerPaymentSourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETCustomerPaymentSourceIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerPaymentSourceId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerPaymentSourceIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETCustomerSubscriptionIdVersions + +> GETCustomerSubscriptionIdVersions(ctx, customerSubscriptionId).Execute() + +Retrieve the versions associated to the customer subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + customerSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETCustomerSubscriptionIdVersions(context.Background(), customerSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETCustomerSubscriptionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**customerSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETCustomerSubscriptionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETDeliveryLeadTimeIdVersions + +> GETDeliveryLeadTimeIdVersions(ctx, deliveryLeadTimeId).Execute() + +Retrieve the versions associated to the delivery lead time + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + deliveryLeadTimeId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETDeliveryLeadTimeIdVersions(context.Background(), deliveryLeadTimeId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETDeliveryLeadTimeIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**deliveryLeadTimeId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETDeliveryLeadTimeIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalGatewayIdVersions + +> GETExternalGatewayIdVersions(ctx, externalGatewayId).Execute() + +Retrieve the versions associated to the external gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETExternalGatewayIdVersions(context.Background(), externalGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETExternalGatewayIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalGatewayIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalPaymentIdVersions + +> GETExternalPaymentIdVersions(ctx, externalPaymentId).Execute() + +Retrieve the versions associated to the external payment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalPaymentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETExternalPaymentIdVersions(context.Background(), externalPaymentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETExternalPaymentIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalPaymentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalPaymentIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalPromotionIdVersions + +> GETExternalPromotionIdVersions(ctx, externalPromotionId).Execute() + +Retrieve the versions associated to the external promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETExternalPromotionIdVersions(context.Background(), externalPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETExternalPromotionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalPromotionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETExternalTaxCalculatorIdVersions + +> GETExternalTaxCalculatorIdVersions(ctx, externalTaxCalculatorId).Execute() + +Retrieve the versions associated to the external tax calculator + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + externalTaxCalculatorId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETExternalTaxCalculatorIdVersions(context.Background(), externalTaxCalculatorId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETExternalTaxCalculatorIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**externalTaxCalculatorId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETExternalTaxCalculatorIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedAmountPromotionIdVersions + +> GETFixedAmountPromotionIdVersions(ctx, fixedAmountPromotionId).Execute() + +Retrieve the versions associated to the fixed amount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedAmountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETFixedAmountPromotionIdVersions(context.Background(), fixedAmountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETFixedAmountPromotionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedAmountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedAmountPromotionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFixedPricePromotionIdVersions + +> GETFixedPricePromotionIdVersions(ctx, fixedPricePromotionId).Execute() + +Retrieve the versions associated to the fixed price promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + fixedPricePromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETFixedPricePromotionIdVersions(context.Background(), fixedPricePromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETFixedPricePromotionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fixedPricePromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFixedPricePromotionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFlexPromotionIdVersions + +> GETFlexPromotionIdVersions(ctx, flexPromotionId).Execute() + +Retrieve the versions associated to the flex promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + flexPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETFlexPromotionIdVersions(context.Background(), flexPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETFlexPromotionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**flexPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFlexPromotionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeGiftPromotionIdVersions + +> GETFreeGiftPromotionIdVersions(ctx, freeGiftPromotionId).Execute() + +Retrieve the versions associated to the free gift promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeGiftPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETFreeGiftPromotionIdVersions(context.Background(), freeGiftPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETFreeGiftPromotionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeGiftPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeGiftPromotionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETFreeShippingPromotionIdVersions + +> GETFreeShippingPromotionIdVersions(ctx, freeShippingPromotionId).Execute() + +Retrieve the versions associated to the free shipping promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + freeShippingPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETFreeShippingPromotionIdVersions(context.Background(), freeShippingPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETFreeShippingPromotionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**freeShippingPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETFreeShippingPromotionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETGiftCardIdVersions + +> GETGiftCardIdVersions(ctx, giftCardId).Execute() + +Retrieve the versions associated to the gift card + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + giftCardId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETGiftCardIdVersions(context.Background(), giftCardId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETGiftCardIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**giftCardId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGiftCardIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETGiftCardRecipientIdVersions + +> GETGiftCardRecipientIdVersions(ctx, giftCardRecipientId).Execute() + +Retrieve the versions associated to the gift card recipient + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + giftCardRecipientId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETGiftCardRecipientIdVersions(context.Background(), giftCardRecipientId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETGiftCardRecipientIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**giftCardRecipientId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETGiftCardRecipientIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETInStockSubscriptionIdVersions + +> GETInStockSubscriptionIdVersions(ctx, inStockSubscriptionId).Execute() + +Retrieve the versions associated to the in stock subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + inStockSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETInStockSubscriptionIdVersions(context.Background(), inStockSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETInStockSubscriptionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**inStockSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETInStockSubscriptionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETInventoryModelIdVersions + +> GETInventoryModelIdVersions(ctx, inventoryModelId).Execute() + +Retrieve the versions associated to the inventory model + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + inventoryModelId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETInventoryModelIdVersions(context.Background(), inventoryModelId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETInventoryModelIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**inventoryModelId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETInventoryModelIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETInventoryReturnLocationIdVersions + +> GETInventoryReturnLocationIdVersions(ctx, inventoryReturnLocationId).Execute() + +Retrieve the versions associated to the inventory return location + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + inventoryReturnLocationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETInventoryReturnLocationIdVersions(context.Background(), inventoryReturnLocationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETInventoryReturnLocationIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**inventoryReturnLocationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETInventoryReturnLocationIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETInventoryStockLocationIdVersions + +> GETInventoryStockLocationIdVersions(ctx, inventoryStockLocationId).Execute() + +Retrieve the versions associated to the inventory stock location + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + inventoryStockLocationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETInventoryStockLocationIdVersions(context.Background(), inventoryStockLocationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETInventoryStockLocationIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**inventoryStockLocationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETInventoryStockLocationIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETKlarnaGatewayIdVersions + +> GETKlarnaGatewayIdVersions(ctx, klarnaGatewayId).Execute() + +Retrieve the versions associated to the klarna gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + klarnaGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETKlarnaGatewayIdVersions(context.Background(), klarnaGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETKlarnaGatewayIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**klarnaGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETKlarnaGatewayIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETKlarnaPaymentIdVersions + +> GETKlarnaPaymentIdVersions(ctx, klarnaPaymentId).Execute() + +Retrieve the versions associated to the klarna payment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + klarnaPaymentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETKlarnaPaymentIdVersions(context.Background(), klarnaPaymentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETKlarnaPaymentIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**klarnaPaymentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETKlarnaPaymentIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETManualGatewayIdVersions + +> GETManualGatewayIdVersions(ctx, manualGatewayId).Execute() + +Retrieve the versions associated to the manual gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + manualGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETManualGatewayIdVersions(context.Background(), manualGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETManualGatewayIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**manualGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETManualGatewayIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETManualTaxCalculatorIdVersions + +> GETManualTaxCalculatorIdVersions(ctx, manualTaxCalculatorId).Execute() + +Retrieve the versions associated to the manual tax calculator + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + manualTaxCalculatorId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETManualTaxCalculatorIdVersions(context.Background(), manualTaxCalculatorId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETManualTaxCalculatorIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**manualTaxCalculatorId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETManualTaxCalculatorIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETMarketIdVersions + +> GETMarketIdVersions(ctx, marketId).Execute() + +Retrieve the versions associated to the market + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + marketId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETMarketIdVersions(context.Background(), marketId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETMarketIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**marketId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETMarketIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETMerchantIdVersions + +> GETMerchantIdVersions(ctx, merchantId).Execute() + +Retrieve the versions associated to the merchant + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + merchantId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETMerchantIdVersions(context.Background(), merchantId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETMerchantIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**merchantId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETMerchantIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderAmountPromotionRuleIdVersions + +> GETOrderAmountPromotionRuleIdVersions(ctx, orderAmountPromotionRuleId).Execute() + +Retrieve the versions associated to the order amount promotion rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderAmountPromotionRuleId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETOrderAmountPromotionRuleIdVersions(context.Background(), orderAmountPromotionRuleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETOrderAmountPromotionRuleIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderAmountPromotionRuleId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderAmountPromotionRuleIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderIdVersions + +> GETOrderIdVersions(ctx, orderId).Execute() + +Retrieve the versions associated to the order + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETOrderIdVersions(context.Background(), orderId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETOrderIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETOrderSubscriptionIdVersions + +> GETOrderSubscriptionIdVersions(ctx, orderSubscriptionId).Execute() + +Retrieve the versions associated to the order subscription + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + orderSubscriptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETOrderSubscriptionIdVersions(context.Background(), orderSubscriptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETOrderSubscriptionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderSubscriptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETOrderSubscriptionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPackageIdVersions + +> GETPackageIdVersions(ctx, packageId).Execute() + +Retrieve the versions associated to the package + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + packageId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETPackageIdVersions(context.Background(), packageId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETPackageIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**packageId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPackageIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETParcelIdVersions + +> GETParcelIdVersions(ctx, parcelId).Execute() + +Retrieve the versions associated to the parcel + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + parcelId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETParcelIdVersions(context.Background(), parcelId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETParcelIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**parcelId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETParcelIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETParcelLineItemIdVersions + +> GETParcelLineItemIdVersions(ctx, parcelLineItemId).Execute() + +Retrieve the versions associated to the parcel line item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + parcelLineItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETParcelLineItemIdVersions(context.Background(), parcelLineItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETParcelLineItemIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**parcelLineItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETParcelLineItemIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPaymentGatewayIdVersions + +> GETPaymentGatewayIdVersions(ctx, paymentGatewayId).Execute() + +Retrieve the versions associated to the payment gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + paymentGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETPaymentGatewayIdVersions(context.Background(), paymentGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETPaymentGatewayIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**paymentGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPaymentGatewayIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPaymentMethodIdVersions + +> GETPaymentMethodIdVersions(ctx, paymentMethodId).Execute() + +Retrieve the versions associated to the payment method + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + paymentMethodId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETPaymentMethodIdVersions(context.Background(), paymentMethodId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETPaymentMethodIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**paymentMethodId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPaymentMethodIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPaypalGatewayIdVersions + +> GETPaypalGatewayIdVersions(ctx, paypalGatewayId).Execute() + +Retrieve the versions associated to the paypal gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + paypalGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETPaypalGatewayIdVersions(context.Background(), paypalGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETPaypalGatewayIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**paypalGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPaypalGatewayIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPaypalPaymentIdVersions + +> GETPaypalPaymentIdVersions(ctx, paypalPaymentId).Execute() + +Retrieve the versions associated to the paypal payment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + paypalPaymentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETPaypalPaymentIdVersions(context.Background(), paypalPaymentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETPaypalPaymentIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**paypalPaymentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPaypalPaymentIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPercentageDiscountPromotionIdVersions + +> GETPercentageDiscountPromotionIdVersions(ctx, percentageDiscountPromotionId).Execute() + +Retrieve the versions associated to the percentage discount promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + percentageDiscountPromotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETPercentageDiscountPromotionIdVersions(context.Background(), percentageDiscountPromotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETPercentageDiscountPromotionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**percentageDiscountPromotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPercentageDiscountPromotionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceFrequencyTierIdVersions + +> GETPriceFrequencyTierIdVersions(ctx, priceFrequencyTierId).Execute() + +Retrieve the versions associated to the price frequency tier + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceFrequencyTierId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETPriceFrequencyTierIdVersions(context.Background(), priceFrequencyTierId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETPriceFrequencyTierIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceFrequencyTierId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceFrequencyTierIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceIdVersions + +> GETPriceIdVersions(ctx, priceId).Execute() + +Retrieve the versions associated to the price + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETPriceIdVersions(context.Background(), priceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETPriceIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceListIdVersions + +> GETPriceListIdVersions(ctx, priceListId).Execute() + +Retrieve the versions associated to the price list + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceListId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETPriceListIdVersions(context.Background(), priceListId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETPriceListIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceListId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceListIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceListSchedulerIdVersions + +> GETPriceListSchedulerIdVersions(ctx, priceListSchedulerId).Execute() + +Retrieve the versions associated to the price list scheduler + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceListSchedulerId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETPriceListSchedulerIdVersions(context.Background(), priceListSchedulerId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETPriceListSchedulerIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceListSchedulerId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceListSchedulerIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceTierIdVersions + +> GETPriceTierIdVersions(ctx, priceTierId).Execute() + +Retrieve the versions associated to the price tier + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceTierId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETPriceTierIdVersions(context.Background(), priceTierId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETPriceTierIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceTierId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceTierIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPriceVolumeTierIdVersions + +> GETPriceVolumeTierIdVersions(ctx, priceVolumeTierId).Execute() + +Retrieve the versions associated to the price volume tier + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + priceVolumeTierId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETPriceVolumeTierIdVersions(context.Background(), priceVolumeTierId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETPriceVolumeTierIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**priceVolumeTierId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPriceVolumeTierIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPromotionIdVersions + +> GETPromotionIdVersions(ctx, promotionId).Execute() + +Retrieve the versions associated to the promotion + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + promotionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETPromotionIdVersions(context.Background(), promotionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETPromotionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**promotionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPromotionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETPromotionRuleIdVersions + +> GETPromotionRuleIdVersions(ctx, promotionRuleId).Execute() + +Retrieve the versions associated to the promotion rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + promotionRuleId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETPromotionRuleIdVersions(context.Background(), promotionRuleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETPromotionRuleIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**promotionRuleId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETPromotionRuleIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETRefundIdVersions + +> GETRefundIdVersions(ctx, refundId).Execute() + +Retrieve the versions associated to the refund + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + refundId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETRefundIdVersions(context.Background(), refundId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETRefundIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**refundId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETRefundIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETReservedStockIdVersions + +> GETReservedStockIdVersions(ctx, reservedStockId).Execute() + +Retrieve the versions associated to the reserved stock + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + reservedStockId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETReservedStockIdVersions(context.Background(), reservedStockId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETReservedStockIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**reservedStockId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETReservedStockIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETReturnIdVersions + +> GETReturnIdVersions(ctx, returnId).Execute() + +Retrieve the versions associated to the return + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + returnId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETReturnIdVersions(context.Background(), returnId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETReturnIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**returnId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETReturnIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETSatispayGatewayIdVersions + +> GETSatispayGatewayIdVersions(ctx, satispayGatewayId).Execute() + +Retrieve the versions associated to the satispay gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + satispayGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETSatispayGatewayIdVersions(context.Background(), satispayGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETSatispayGatewayIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**satispayGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETSatispayGatewayIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETSatispayPaymentIdVersions + +> GETSatispayPaymentIdVersions(ctx, satispayPaymentId).Execute() + +Retrieve the versions associated to the satispay payment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + satispayPaymentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETSatispayPaymentIdVersions(context.Background(), satispayPaymentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETSatispayPaymentIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**satispayPaymentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETSatispayPaymentIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETShipmentIdVersions + +> GETShipmentIdVersions(ctx, shipmentId).Execute() + +Retrieve the versions associated to the shipment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + shipmentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETShipmentIdVersions(context.Background(), shipmentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETShipmentIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**shipmentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETShipmentIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETShippingCategoryIdVersions + +> GETShippingCategoryIdVersions(ctx, shippingCategoryId).Execute() + +Retrieve the versions associated to the shipping category + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + shippingCategoryId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETShippingCategoryIdVersions(context.Background(), shippingCategoryId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETShippingCategoryIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**shippingCategoryId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETShippingCategoryIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETShippingMethodIdVersions + +> GETShippingMethodIdVersions(ctx, shippingMethodId).Execute() + +Retrieve the versions associated to the shipping method + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + shippingMethodId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETShippingMethodIdVersions(context.Background(), shippingMethodId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETShippingMethodIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**shippingMethodId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETShippingMethodIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETShippingMethodTierIdVersions + +> GETShippingMethodTierIdVersions(ctx, shippingMethodTierId).Execute() + +Retrieve the versions associated to the shipping method tier + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + shippingMethodTierId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETShippingMethodTierIdVersions(context.Background(), shippingMethodTierId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETShippingMethodTierIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**shippingMethodTierId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETShippingMethodTierIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETShippingWeightTierIdVersions + +> GETShippingWeightTierIdVersions(ctx, shippingWeightTierId).Execute() + +Retrieve the versions associated to the shipping weight tier + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + shippingWeightTierId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETShippingWeightTierIdVersions(context.Background(), shippingWeightTierId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETShippingWeightTierIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**shippingWeightTierId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETShippingWeightTierIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETShippingZoneIdVersions + +> GETShippingZoneIdVersions(ctx, shippingZoneId).Execute() + +Retrieve the versions associated to the shipping zone + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + shippingZoneId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETShippingZoneIdVersions(context.Background(), shippingZoneId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETShippingZoneIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**shippingZoneId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETShippingZoneIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETSkuIdVersions + +> GETSkuIdVersions(ctx, skuId).Execute() + +Retrieve the versions associated to the SKU + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + skuId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETSkuIdVersions(context.Background(), skuId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETSkuIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**skuId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETSkuIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETSkuListIdVersions + +> GETSkuListIdVersions(ctx, skuListId).Execute() + +Retrieve the versions associated to the SKU list + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + skuListId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETSkuListIdVersions(context.Background(), skuListId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETSkuListIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**skuListId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETSkuListIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETSkuListItemIdVersions + +> GETSkuListItemIdVersions(ctx, skuListItemId).Execute() + +Retrieve the versions associated to the SKU list item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + skuListItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETSkuListItemIdVersions(context.Background(), skuListItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETSkuListItemIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**skuListItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETSkuListItemIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETSkuListPromotionRuleIdVersions + +> GETSkuListPromotionRuleIdVersions(ctx, skuListPromotionRuleId).Execute() + +Retrieve the versions associated to the SKU list promotion rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + skuListPromotionRuleId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETSkuListPromotionRuleIdVersions(context.Background(), skuListPromotionRuleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETSkuListPromotionRuleIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**skuListPromotionRuleId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETSkuListPromotionRuleIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETSkuOptionIdVersions + +> GETSkuOptionIdVersions(ctx, skuOptionId).Execute() + +Retrieve the versions associated to the SKU option + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + skuOptionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETSkuOptionIdVersions(context.Background(), skuOptionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETSkuOptionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**skuOptionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETSkuOptionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETStockItemIdVersions + +> GETStockItemIdVersions(ctx, stockItemId).Execute() + +Retrieve the versions associated to the stock item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETStockItemIdVersions(context.Background(), stockItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETStockItemIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStockItemIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETStockLineItemIdVersions + +> GETStockLineItemIdVersions(ctx, stockLineItemId).Execute() + +Retrieve the versions associated to the stock line item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockLineItemId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETStockLineItemIdVersions(context.Background(), stockLineItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETStockLineItemIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockLineItemId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStockLineItemIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETStockLocationIdVersions + +> GETStockLocationIdVersions(ctx, stockLocationId).Execute() + +Retrieve the versions associated to the stock location + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockLocationId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETStockLocationIdVersions(context.Background(), stockLocationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETStockLocationIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockLocationId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStockLocationIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETStockTransferIdVersions + +> GETStockTransferIdVersions(ctx, stockTransferId).Execute() + +Retrieve the versions associated to the stock transfer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stockTransferId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETStockTransferIdVersions(context.Background(), stockTransferId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETStockTransferIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stockTransferId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStockTransferIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETStripeGatewayIdVersions + +> GETStripeGatewayIdVersions(ctx, stripeGatewayId).Execute() + +Retrieve the versions associated to the stripe gateway + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stripeGatewayId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETStripeGatewayIdVersions(context.Background(), stripeGatewayId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETStripeGatewayIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stripeGatewayId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStripeGatewayIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETStripePaymentIdVersions + +> GETStripePaymentIdVersions(ctx, stripePaymentId).Execute() + +Retrieve the versions associated to the stripe payment + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + stripePaymentId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETStripePaymentIdVersions(context.Background(), stripePaymentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETStripePaymentIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**stripePaymentId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETStripePaymentIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETTaxCalculatorIdVersions + +> GETTaxCalculatorIdVersions(ctx, taxCalculatorId).Execute() + +Retrieve the versions associated to the tax calculator + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + taxCalculatorId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETTaxCalculatorIdVersions(context.Background(), taxCalculatorId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETTaxCalculatorIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**taxCalculatorId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETTaxCalculatorIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETTaxCategoryIdVersions + +> GETTaxCategoryIdVersions(ctx, taxCategoryId).Execute() + +Retrieve the versions associated to the tax category + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + taxCategoryId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETTaxCategoryIdVersions(context.Background(), taxCategoryId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETTaxCategoryIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**taxCategoryId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETTaxCategoryIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETTaxRuleIdVersions + +> GETTaxRuleIdVersions(ctx, taxRuleId).Execute() + +Retrieve the versions associated to the tax rule + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + taxRuleId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETTaxRuleIdVersions(context.Background(), taxRuleId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETTaxRuleIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**taxRuleId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETTaxRuleIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETTaxjarAccountIdVersions + +> GETTaxjarAccountIdVersions(ctx, taxjarAccountId).Execute() + +Retrieve the versions associated to the taxjar account + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + taxjarAccountId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETTaxjarAccountIdVersions(context.Background(), taxjarAccountId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETTaxjarAccountIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**taxjarAccountId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETTaxjarAccountIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETTransactionIdVersions + +> GETTransactionIdVersions(ctx, transactionId).Execute() + +Retrieve the versions associated to the transaction + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + transactionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETTransactionIdVersions(context.Background(), transactionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETTransactionIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**transactionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETTransactionIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETVersions + +> GETVersions200Response GETVersions(ctx).Execute() + +List all versions + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VersionsApi.GETVersions(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETVersions`: GETVersions200Response + fmt.Fprintf(os.Stdout, "Response from `VersionsApi.GETVersions`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETVersionsRequest struct via the builder pattern + + +### Return type + +[**GETVersions200Response**](GETVersions200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETVersionsVersionId + +> GETVersionsVersionId200Response GETVersionsVersionId(ctx, versionId).Execute() + +Retrieve a version + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + versionId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VersionsApi.GETVersionsVersionId(context.Background(), versionId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETVersionsVersionId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GETVersionsVersionId`: GETVersionsVersionId200Response + fmt.Fprintf(os.Stdout, "Response from `VersionsApi.GETVersionsVersionId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**versionId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETVersionsVersionIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**GETVersionsVersionId200Response**](GETVersionsVersionId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETVoidIdVersions + +> GETVoidIdVersions(ctx, voidId).Execute() + +Retrieve the versions associated to the void + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + voidId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETVoidIdVersions(context.Background(), voidId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETVoidIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**voidId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETVoidIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETWebhookIdVersions + +> GETWebhookIdVersions(ctx, webhookId).Execute() + +Retrieve the versions associated to the webhook + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + webhookId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETWebhookIdVersions(context.Background(), webhookId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETWebhookIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**webhookId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETWebhookIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GETWireTransferIdVersions + +> GETWireTransferIdVersions(ctx, wireTransferId).Execute() + +Retrieve the versions associated to the wire transfer + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + wireTransferId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.VersionsApi.GETWireTransferIdVersions(context.Background(), wireTransferId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VersionsApi.GETWireTransferIdVersions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**wireTransferId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGETWireTransferIdVersionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/api/docs/VoidDataRelationships.md b/api/docs/VoidDataRelationships.md index c57a33e6..5da944b4 100644 --- a/api/docs/VoidDataRelationships.md +++ b/api/docs/VoidDataRelationships.md @@ -5,8 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Order** | Pointer to [**AdyenPaymentDataRelationshipsOrder**](AdyenPaymentDataRelationshipsOrder.md) | | [optional] +**Attachments** | Pointer to [**AuthorizationDataRelationshipsAttachments**](AuthorizationDataRelationshipsAttachments.md) | | [optional] +**Events** | Pointer to [**AddressDataRelationshipsEvents**](AddressDataRelationshipsEvents.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] **ReferenceAuthorization** | Pointer to [**CaptureDataRelationshipsReferenceAuthorization**](CaptureDataRelationshipsReferenceAuthorization.md) | | [optional] -**Events** | Pointer to [**AuthorizationDataRelationshipsEvents**](AuthorizationDataRelationshipsEvents.md) | | [optional] ## Methods @@ -52,47 +54,47 @@ SetOrder sets Order field to given value. HasOrder returns a boolean if a field has been set. -### GetReferenceAuthorization +### GetAttachments -`func (o *VoidDataRelationships) GetReferenceAuthorization() CaptureDataRelationshipsReferenceAuthorization` +`func (o *VoidDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments` -GetReferenceAuthorization returns the ReferenceAuthorization field if non-nil, zero value otherwise. +GetAttachments returns the Attachments field if non-nil, zero value otherwise. -### GetReferenceAuthorizationOk +### GetAttachmentsOk -`func (o *VoidDataRelationships) GetReferenceAuthorizationOk() (*CaptureDataRelationshipsReferenceAuthorization, bool)` +`func (o *VoidDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool)` -GetReferenceAuthorizationOk returns a tuple with the ReferenceAuthorization field if it's non-nil, zero value otherwise +GetAttachmentsOk returns a tuple with the Attachments field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetReferenceAuthorization +### SetAttachments -`func (o *VoidDataRelationships) SetReferenceAuthorization(v CaptureDataRelationshipsReferenceAuthorization)` +`func (o *VoidDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments)` -SetReferenceAuthorization sets ReferenceAuthorization field to given value. +SetAttachments sets Attachments field to given value. -### HasReferenceAuthorization +### HasAttachments -`func (o *VoidDataRelationships) HasReferenceAuthorization() bool` +`func (o *VoidDataRelationships) HasAttachments() bool` -HasReferenceAuthorization returns a boolean if a field has been set. +HasAttachments returns a boolean if a field has been set. ### GetEvents -`func (o *VoidDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents` +`func (o *VoidDataRelationships) GetEvents() AddressDataRelationshipsEvents` GetEvents returns the Events field if non-nil, zero value otherwise. ### GetEventsOk -`func (o *VoidDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool)` +`func (o *VoidDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool)` GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEvents -`func (o *VoidDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents)` +`func (o *VoidDataRelationships) SetEvents(v AddressDataRelationshipsEvents)` SetEvents sets Events field to given value. @@ -102,6 +104,56 @@ SetEvents sets Events field to given value. HasEvents returns a boolean if a field has been set. +### GetVersions + +`func (o *VoidDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *VoidDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *VoidDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *VoidDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + +### GetReferenceAuthorization + +`func (o *VoidDataRelationships) GetReferenceAuthorization() CaptureDataRelationshipsReferenceAuthorization` + +GetReferenceAuthorization returns the ReferenceAuthorization field if non-nil, zero value otherwise. + +### GetReferenceAuthorizationOk + +`func (o *VoidDataRelationships) GetReferenceAuthorizationOk() (*CaptureDataRelationshipsReferenceAuthorization, bool)` + +GetReferenceAuthorizationOk returns a tuple with the ReferenceAuthorization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReferenceAuthorization + +`func (o *VoidDataRelationships) SetReferenceAuthorization(v CaptureDataRelationshipsReferenceAuthorization)` + +SetReferenceAuthorization sets ReferenceAuthorization field to given value. + +### HasReferenceAuthorization + +`func (o *VoidDataRelationships) HasReferenceAuthorization() bool` + +HasReferenceAuthorization returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/VoidUpdate.md b/api/docs/VoidUpdate.md new file mode 100644 index 00000000..a9224722 --- /dev/null +++ b/api/docs/VoidUpdate.md @@ -0,0 +1,51 @@ +# VoidUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**VoidUpdateData**](VoidUpdateData.md) | | + +## Methods + +### NewVoidUpdate + +`func NewVoidUpdate(data VoidUpdateData, ) *VoidUpdate` + +NewVoidUpdate instantiates a new VoidUpdate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVoidUpdateWithDefaults + +`func NewVoidUpdateWithDefaults() *VoidUpdate` + +NewVoidUpdateWithDefaults instantiates a new VoidUpdate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *VoidUpdate) GetData() VoidUpdateData` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *VoidUpdate) GetDataOk() (*VoidUpdateData, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *VoidUpdate) SetData(v VoidUpdateData)` + +SetData sets Data field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/VoidUpdateData.md b/api/docs/VoidUpdateData.md new file mode 100644 index 00000000..0a8bf3a2 --- /dev/null +++ b/api/docs/VoidUpdateData.md @@ -0,0 +1,149 @@ +# VoidUpdateData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **interface{}** | The resource's type | +**Id** | **interface{}** | The resource's id | +**Attributes** | [**PATCHRefundsRefundId200ResponseDataAttributes**](PATCHRefundsRefundId200ResponseDataAttributes.md) | | +**Relationships** | Pointer to **interface{}** | | [optional] + +## Methods + +### NewVoidUpdateData + +`func NewVoidUpdateData(type_ interface{}, id interface{}, attributes PATCHRefundsRefundId200ResponseDataAttributes, ) *VoidUpdateData` + +NewVoidUpdateData instantiates a new VoidUpdateData object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVoidUpdateDataWithDefaults + +`func NewVoidUpdateDataWithDefaults() *VoidUpdateData` + +NewVoidUpdateDataWithDefaults instantiates a new VoidUpdateData object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetType + +`func (o *VoidUpdateData) GetType() interface{}` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *VoidUpdateData) GetTypeOk() (*interface{}, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *VoidUpdateData) SetType(v interface{})` + +SetType sets Type field to given value. + + +### SetTypeNil + +`func (o *VoidUpdateData) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *VoidUpdateData) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetId + +`func (o *VoidUpdateData) GetId() interface{}` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *VoidUpdateData) GetIdOk() (*interface{}, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *VoidUpdateData) SetId(v interface{})` + +SetId sets Id field to given value. + + +### SetIdNil + +`func (o *VoidUpdateData) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *VoidUpdateData) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetAttributes + +`func (o *VoidUpdateData) GetAttributes() PATCHRefundsRefundId200ResponseDataAttributes` + +GetAttributes returns the Attributes field if non-nil, zero value otherwise. + +### GetAttributesOk + +`func (o *VoidUpdateData) GetAttributesOk() (*PATCHRefundsRefundId200ResponseDataAttributes, bool)` + +GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributes + +`func (o *VoidUpdateData) SetAttributes(v PATCHRefundsRefundId200ResponseDataAttributes)` + +SetAttributes sets Attributes field to given value. + + +### GetRelationships + +`func (o *VoidUpdateData) GetRelationships() interface{}` + +GetRelationships returns the Relationships field if non-nil, zero value otherwise. + +### GetRelationshipsOk + +`func (o *VoidUpdateData) GetRelationshipsOk() (*interface{}, bool)` + +GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelationships + +`func (o *VoidUpdateData) SetRelationships(v interface{})` + +SetRelationships sets Relationships field to given value. + +### HasRelationships + +`func (o *VoidUpdateData) HasRelationships() bool` + +HasRelationships returns a boolean if a field has been set. + +### SetRelationshipsNil + +`func (o *VoidUpdateData) SetRelationshipsNil(b bool)` + + SetRelationshipsNil sets the value for Relationships to be an explicit nil + +### UnsetRelationships +`func (o *VoidUpdateData) UnsetRelationships()` + +UnsetRelationships ensures that no value is present for Relationships, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/docs/VoidsApi.md b/api/docs/VoidsApi.md index c05409f3..e547d80a 100644 --- a/api/docs/VoidsApi.md +++ b/api/docs/VoidsApi.md @@ -8,6 +8,7 @@ Method | HTTP request | Description [**GETOrderIdVoids**](VoidsApi.md#GETOrderIdVoids) | **Get** /orders/{orderId}/voids | Retrieve the voids associated to the order [**GETVoids**](VoidsApi.md#GETVoids) | **Get** /voids | List all voids [**GETVoidsVoidId**](VoidsApi.md#GETVoidsVoidId) | **Get** /voids/{voidId} | Retrieve a void +[**PATCHVoidsVoidId**](VoidsApi.md#PATCHVoidsVoidId) | **Patch** /voids/{voidId} | Update a void @@ -277,3 +278,75 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## PATCHVoidsVoidId + +> PATCHVoidsVoidId200Response PATCHVoidsVoidId(ctx, voidId).VoidUpdate(voidUpdate).Execute() + +Update a void + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" +) + +func main() { + voidUpdate := *openapiclient.NewVoidUpdate(*openapiclient.NewVoidUpdateData(interface{}(123), interface{}(XGZwpOSrWL), *openapiclient.NewPATCHRefundsRefundId200ResponseDataAttributes())) // VoidUpdate | + voidId := TODO // interface{} | The resource's id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.VoidsApi.PATCHVoidsVoidId(context.Background(), voidId).VoidUpdate(voidUpdate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `VoidsApi.PATCHVoidsVoidId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PATCHVoidsVoidId`: PATCHVoidsVoidId200Response + fmt.Fprintf(os.Stdout, "Response from `VoidsApi.PATCHVoidsVoidId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**voidId** | [**interface{}**](.md) | The resource's id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPATCHVoidsVoidIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **voidUpdate** | [**VoidUpdate**](VoidUpdate.md) | | + + +### Return type + +[**PATCHVoidsVoidId200Response**](PATCHVoidsVoidId200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/vnd.api+json +- **Accept**: application/vnd.api+json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/api/docs/WebhookDataRelationships.md b/api/docs/WebhookDataRelationships.md index cb883be8..3da98056 100644 --- a/api/docs/WebhookDataRelationships.md +++ b/api/docs/WebhookDataRelationships.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LastEventCallbacks** | Pointer to [**EventDataRelationshipsLastEventCallbacks**](EventDataRelationshipsLastEventCallbacks.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] ## Methods @@ -50,6 +51,31 @@ SetLastEventCallbacks sets LastEventCallbacks field to given value. HasLastEventCallbacks returns a boolean if a field has been set. +### GetVersions + +`func (o *WebhookDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *WebhookDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *WebhookDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *WebhookDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/docs/WireTransferData.md b/api/docs/WireTransferData.md index 298bbe6f..963c80c6 100644 --- a/api/docs/WireTransferData.md +++ b/api/docs/WireTransferData.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Type** | **interface{}** | The resource's type | **Attributes** | [**GETWireTransfersWireTransferId200ResponseDataAttributes**](GETWireTransfersWireTransferId200ResponseDataAttributes.md) | | -**Relationships** | Pointer to [**TransactionDataRelationships**](TransactionDataRelationships.md) | | [optional] +**Relationships** | Pointer to [**WireTransferDataRelationships**](WireTransferDataRelationships.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ SetAttributes sets Attributes field to given value. ### GetRelationships -`func (o *WireTransferData) GetRelationships() TransactionDataRelationships` +`func (o *WireTransferData) GetRelationships() WireTransferDataRelationships` GetRelationships returns the Relationships field if non-nil, zero value otherwise. ### GetRelationshipsOk -`func (o *WireTransferData) GetRelationshipsOk() (*TransactionDataRelationships, bool)` +`func (o *WireTransferData) GetRelationshipsOk() (*WireTransferDataRelationships, bool)` GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRelationships -`func (o *WireTransferData) SetRelationships(v TransactionDataRelationships)` +`func (o *WireTransferData) SetRelationships(v WireTransferDataRelationships)` SetRelationships sets Relationships field to given value. diff --git a/api/docs/WireTransferDataRelationships.md b/api/docs/WireTransferDataRelationships.md new file mode 100644 index 00000000..3b439d22 --- /dev/null +++ b/api/docs/WireTransferDataRelationships.md @@ -0,0 +1,82 @@ +# WireTransferDataRelationships + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Order** | Pointer to [**AdyenPaymentDataRelationshipsOrder**](AdyenPaymentDataRelationshipsOrder.md) | | [optional] +**Versions** | Pointer to [**AddressDataRelationshipsVersions**](AddressDataRelationshipsVersions.md) | | [optional] + +## Methods + +### NewWireTransferDataRelationships + +`func NewWireTransferDataRelationships() *WireTransferDataRelationships` + +NewWireTransferDataRelationships instantiates a new WireTransferDataRelationships object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWireTransferDataRelationshipsWithDefaults + +`func NewWireTransferDataRelationshipsWithDefaults() *WireTransferDataRelationships` + +NewWireTransferDataRelationshipsWithDefaults instantiates a new WireTransferDataRelationships object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOrder + +`func (o *WireTransferDataRelationships) GetOrder() AdyenPaymentDataRelationshipsOrder` + +GetOrder returns the Order field if non-nil, zero value otherwise. + +### GetOrderOk + +`func (o *WireTransferDataRelationships) GetOrderOk() (*AdyenPaymentDataRelationshipsOrder, bool)` + +GetOrderOk returns a tuple with the Order field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrder + +`func (o *WireTransferDataRelationships) SetOrder(v AdyenPaymentDataRelationshipsOrder)` + +SetOrder sets Order field to given value. + +### HasOrder + +`func (o *WireTransferDataRelationships) HasOrder() bool` + +HasOrder returns a boolean if a field has been set. + +### GetVersions + +`func (o *WireTransferDataRelationships) GetVersions() AddressDataRelationshipsVersions` + +GetVersions returns the Versions field if non-nil, zero value otherwise. + +### GetVersionsOk + +`func (o *WireTransferDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool)` + +GetVersionsOk returns a tuple with the Versions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersions + +`func (o *WireTransferDataRelationships) SetVersions(v AddressDataRelationshipsVersions)` + +SetVersions sets Versions field to given value. + +### HasVersions + +`func (o *WireTransferDataRelationships) HasVersions() bool` + +HasVersions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/api/model_address.go b/api/model_address.go index 89901dbf..4581c6ef 100644 --- a/api/model_address.go +++ b/api/model_address.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_address_create.go b/api/model_address_create.go index e893951b..2f9e82eb 100644 --- a/api/model_address_create.go +++ b/api/model_address_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_address_create_data.go b/api/model_address_create_data.go index 1edbcad9..9afa87e5 100644 --- a/api/model_address_create_data.go +++ b/api/model_address_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_address_create_data_relationships.go b/api/model_address_create_data_relationships.go index 81b67b8a..f3339abf 100644 --- a/api/model_address_create_data_relationships.go +++ b/api/model_address_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &AddressCreateDataRelationships{} // AddressCreateDataRelationships struct for AddressCreateDataRelationships type AddressCreateDataRelationships struct { Geocoder *AddressCreateDataRelationshipsGeocoder `json:"geocoder,omitempty"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` } // NewAddressCreateDataRelationships instantiates a new AddressCreateDataRelationships object @@ -72,6 +73,38 @@ func (o *AddressCreateDataRelationships) SetGeocoder(v AddressCreateDataRelation o.Geocoder = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *AddressCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddressCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *AddressCreateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *AddressCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + func (o AddressCreateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +118,9 @@ func (o AddressCreateDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.Geocoder) { toSerialize["geocoder"] = o.Geocoder } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_address_create_data_relationships_geocoder.go b/api/model_address_create_data_relationships_geocoder.go index 1eafd06c..e7b3dbd3 100644 --- a/api/model_address_create_data_relationships_geocoder.go +++ b/api/model_address_create_data_relationships_geocoder.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_address_create_data_relationships_tags.go b/api/model_address_create_data_relationships_tags.go new file mode 100644 index 00000000..6ec5ffb7 --- /dev/null +++ b/api/model_address_create_data_relationships_tags.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the AddressCreateDataRelationshipsTags type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AddressCreateDataRelationshipsTags{} + +// AddressCreateDataRelationshipsTags struct for AddressCreateDataRelationshipsTags +type AddressCreateDataRelationshipsTags struct { + Data AddressDataRelationshipsTagsData `json:"data"` +} + +// NewAddressCreateDataRelationshipsTags instantiates a new AddressCreateDataRelationshipsTags object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAddressCreateDataRelationshipsTags(data AddressDataRelationshipsTagsData) *AddressCreateDataRelationshipsTags { + this := AddressCreateDataRelationshipsTags{} + this.Data = data + return &this +} + +// NewAddressCreateDataRelationshipsTagsWithDefaults instantiates a new AddressCreateDataRelationshipsTags object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAddressCreateDataRelationshipsTagsWithDefaults() *AddressCreateDataRelationshipsTags { + this := AddressCreateDataRelationshipsTags{} + return &this +} + +// GetData returns the Data field value +func (o *AddressCreateDataRelationshipsTags) GetData() AddressDataRelationshipsTagsData { + if o == nil { + var ret AddressDataRelationshipsTagsData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *AddressCreateDataRelationshipsTags) GetDataOk() (*AddressDataRelationshipsTagsData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *AddressCreateDataRelationshipsTags) SetData(v AddressDataRelationshipsTagsData) { + o.Data = v +} + +func (o AddressCreateDataRelationshipsTags) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AddressCreateDataRelationshipsTags) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableAddressCreateDataRelationshipsTags struct { + value *AddressCreateDataRelationshipsTags + isSet bool +} + +func (v NullableAddressCreateDataRelationshipsTags) Get() *AddressCreateDataRelationshipsTags { + return v.value +} + +func (v *NullableAddressCreateDataRelationshipsTags) Set(val *AddressCreateDataRelationshipsTags) { + v.value = val + v.isSet = true +} + +func (v NullableAddressCreateDataRelationshipsTags) IsSet() bool { + return v.isSet +} + +func (v *NullableAddressCreateDataRelationshipsTags) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAddressCreateDataRelationshipsTags(val *AddressCreateDataRelationshipsTags) *NullableAddressCreateDataRelationshipsTags { + return &NullableAddressCreateDataRelationshipsTags{value: val, isSet: true} +} + +func (v NullableAddressCreateDataRelationshipsTags) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAddressCreateDataRelationshipsTags) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_address_data.go b/api/model_address_data.go index ca468d09..368ab6c1 100644 --- a/api/model_address_data.go +++ b/api/model_address_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_address_data_relationships.go b/api/model_address_data_relationships.go index d1004485..fafe5eb4 100644 --- a/api/model_address_data_relationships.go +++ b/api/model_address_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,9 @@ var _ MappedNullable = &AddressDataRelationships{} // AddressDataRelationships struct for AddressDataRelationships type AddressDataRelationships struct { Geocoder *AddressDataRelationshipsGeocoder `json:"geocoder,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Tags *AddressDataRelationshipsTags `json:"tags,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewAddressDataRelationships instantiates a new AddressDataRelationships object @@ -72,6 +75,102 @@ func (o *AddressDataRelationships) SetGeocoder(v AddressDataRelationshipsGeocode o.Geocoder = &v } +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *AddressDataRelationships) GetEvents() AddressDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret AddressDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddressDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *AddressDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *AddressDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *AddressDataRelationships) GetTags() AddressDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddressDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *AddressDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressDataRelationshipsTags and assigns it to the Tags field. +func (o *AddressDataRelationships) SetTags(v AddressDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *AddressDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddressDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *AddressDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *AddressDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o AddressDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +184,15 @@ func (o AddressDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Geocoder) { toSerialize["geocoder"] = o.Geocoder } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_address_data_relationships_events.go b/api/model_address_data_relationships_events.go new file mode 100644 index 00000000..d8abc91e --- /dev/null +++ b/api/model_address_data_relationships_events.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the AddressDataRelationshipsEvents type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AddressDataRelationshipsEvents{} + +// AddressDataRelationshipsEvents struct for AddressDataRelationshipsEvents +type AddressDataRelationshipsEvents struct { + Data *AddressDataRelationshipsEventsData `json:"data,omitempty"` +} + +// NewAddressDataRelationshipsEvents instantiates a new AddressDataRelationshipsEvents object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAddressDataRelationshipsEvents() *AddressDataRelationshipsEvents { + this := AddressDataRelationshipsEvents{} + return &this +} + +// NewAddressDataRelationshipsEventsWithDefaults instantiates a new AddressDataRelationshipsEvents object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAddressDataRelationshipsEventsWithDefaults() *AddressDataRelationshipsEvents { + this := AddressDataRelationshipsEvents{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AddressDataRelationshipsEvents) GetData() AddressDataRelationshipsEventsData { + if o == nil || IsNil(o.Data) { + var ret AddressDataRelationshipsEventsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddressDataRelationshipsEvents) GetDataOk() (*AddressDataRelationshipsEventsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *AddressDataRelationshipsEvents) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given AddressDataRelationshipsEventsData and assigns it to the Data field. +func (o *AddressDataRelationshipsEvents) SetData(v AddressDataRelationshipsEventsData) { + o.Data = &v +} + +func (o AddressDataRelationshipsEvents) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AddressDataRelationshipsEvents) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableAddressDataRelationshipsEvents struct { + value *AddressDataRelationshipsEvents + isSet bool +} + +func (v NullableAddressDataRelationshipsEvents) Get() *AddressDataRelationshipsEvents { + return v.value +} + +func (v *NullableAddressDataRelationshipsEvents) Set(val *AddressDataRelationshipsEvents) { + v.value = val + v.isSet = true +} + +func (v NullableAddressDataRelationshipsEvents) IsSet() bool { + return v.isSet +} + +func (v *NullableAddressDataRelationshipsEvents) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAddressDataRelationshipsEvents(val *AddressDataRelationshipsEvents) *NullableAddressDataRelationshipsEvents { + return &NullableAddressDataRelationshipsEvents{value: val, isSet: true} +} + +func (v NullableAddressDataRelationshipsEvents) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAddressDataRelationshipsEvents) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_sku_data_relationships_stock_items_data.go b/api/model_address_data_relationships_events_data.go similarity index 56% rename from api/model_sku_data_relationships_stock_items_data.go rename to api/model_address_data_relationships_events_data.go index 7392ab60..e79feb94 100644 --- a/api/model_sku_data_relationships_stock_items_data.go +++ b/api/model_address_data_relationships_events_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the SkuDataRelationshipsStockItemsData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SkuDataRelationshipsStockItemsData{} +// checks if the AddressDataRelationshipsEventsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AddressDataRelationshipsEventsData{} -// SkuDataRelationshipsStockItemsData struct for SkuDataRelationshipsStockItemsData -type SkuDataRelationshipsStockItemsData struct { +// AddressDataRelationshipsEventsData struct for AddressDataRelationshipsEventsData +type AddressDataRelationshipsEventsData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource's id Id interface{} `json:"id,omitempty"` } -// NewSkuDataRelationshipsStockItemsData instantiates a new SkuDataRelationshipsStockItemsData object +// NewAddressDataRelationshipsEventsData instantiates a new AddressDataRelationshipsEventsData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSkuDataRelationshipsStockItemsData() *SkuDataRelationshipsStockItemsData { - this := SkuDataRelationshipsStockItemsData{} +func NewAddressDataRelationshipsEventsData() *AddressDataRelationshipsEventsData { + this := AddressDataRelationshipsEventsData{} return &this } -// NewSkuDataRelationshipsStockItemsDataWithDefaults instantiates a new SkuDataRelationshipsStockItemsData object +// NewAddressDataRelationshipsEventsDataWithDefaults instantiates a new AddressDataRelationshipsEventsData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewSkuDataRelationshipsStockItemsDataWithDefaults() *SkuDataRelationshipsStockItemsData { - this := SkuDataRelationshipsStockItemsData{} +func NewAddressDataRelationshipsEventsDataWithDefaults() *AddressDataRelationshipsEventsData { + this := AddressDataRelationshipsEventsData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SkuDataRelationshipsStockItemsData) GetType() interface{} { +func (o *AddressDataRelationshipsEventsData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *SkuDataRelationshipsStockItemsData) GetType() interface{} { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SkuDataRelationshipsStockItemsData) GetTypeOk() (*interface{}, bool) { +func (o *AddressDataRelationshipsEventsData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *SkuDataRelationshipsStockItemsData) GetTypeOk() (*interface{}, bool) { } // HasType returns a boolean if a field has been set. -func (o *SkuDataRelationshipsStockItemsData) HasType() bool { +func (o *AddressDataRelationshipsEventsData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *SkuDataRelationshipsStockItemsData) HasType() bool { } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *SkuDataRelationshipsStockItemsData) SetType(v interface{}) { +func (o *AddressDataRelationshipsEventsData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SkuDataRelationshipsStockItemsData) GetId() interface{} { +func (o *AddressDataRelationshipsEventsData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *SkuDataRelationshipsStockItemsData) GetId() interface{} { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SkuDataRelationshipsStockItemsData) GetIdOk() (*interface{}, bool) { +func (o *AddressDataRelationshipsEventsData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *SkuDataRelationshipsStockItemsData) GetIdOk() (*interface{}, bool) { } // HasId returns a boolean if a field has been set. -func (o *SkuDataRelationshipsStockItemsData) HasId() bool { +func (o *AddressDataRelationshipsEventsData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *SkuDataRelationshipsStockItemsData) HasId() bool { } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *SkuDataRelationshipsStockItemsData) SetId(v interface{}) { +func (o *AddressDataRelationshipsEventsData) SetId(v interface{}) { o.Id = v } -func (o SkuDataRelationshipsStockItemsData) MarshalJSON() ([]byte, error) { +func (o AddressDataRelationshipsEventsData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o SkuDataRelationshipsStockItemsData) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o SkuDataRelationshipsStockItemsData) ToMap() (map[string]interface{}, error) { +func (o AddressDataRelationshipsEventsData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o SkuDataRelationshipsStockItemsData) ToMap() (map[string]interface{}, err return toSerialize, nil } -type NullableSkuDataRelationshipsStockItemsData struct { - value *SkuDataRelationshipsStockItemsData +type NullableAddressDataRelationshipsEventsData struct { + value *AddressDataRelationshipsEventsData isSet bool } -func (v NullableSkuDataRelationshipsStockItemsData) Get() *SkuDataRelationshipsStockItemsData { +func (v NullableAddressDataRelationshipsEventsData) Get() *AddressDataRelationshipsEventsData { return v.value } -func (v *NullableSkuDataRelationshipsStockItemsData) Set(val *SkuDataRelationshipsStockItemsData) { +func (v *NullableAddressDataRelationshipsEventsData) Set(val *AddressDataRelationshipsEventsData) { v.value = val v.isSet = true } -func (v NullableSkuDataRelationshipsStockItemsData) IsSet() bool { +func (v NullableAddressDataRelationshipsEventsData) IsSet() bool { return v.isSet } -func (v *NullableSkuDataRelationshipsStockItemsData) Unset() { +func (v *NullableAddressDataRelationshipsEventsData) Unset() { v.value = nil v.isSet = false } -func NewNullableSkuDataRelationshipsStockItemsData(val *SkuDataRelationshipsStockItemsData) *NullableSkuDataRelationshipsStockItemsData { - return &NullableSkuDataRelationshipsStockItemsData{value: val, isSet: true} +func NewNullableAddressDataRelationshipsEventsData(val *AddressDataRelationshipsEventsData) *NullableAddressDataRelationshipsEventsData { + return &NullableAddressDataRelationshipsEventsData{value: val, isSet: true} } -func (v NullableSkuDataRelationshipsStockItemsData) MarshalJSON() ([]byte, error) { +func (v NullableAddressDataRelationshipsEventsData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableSkuDataRelationshipsStockItemsData) UnmarshalJSON(src []byte) error { +func (v *NullableAddressDataRelationshipsEventsData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_address_data_relationships_geocoder.go b/api/model_address_data_relationships_geocoder.go index 2d90ad83..9b855193 100644 --- a/api/model_address_data_relationships_geocoder.go +++ b/api/model_address_data_relationships_geocoder.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_address_data_relationships_geocoder_data.go b/api/model_address_data_relationships_geocoder_data.go index e1f08a67..e05dd302 100644 --- a/api/model_address_data_relationships_geocoder_data.go +++ b/api/model_address_data_relationships_geocoder_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_address_data_relationships_tags.go b/api/model_address_data_relationships_tags.go new file mode 100644 index 00000000..4db83c1b --- /dev/null +++ b/api/model_address_data_relationships_tags.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the AddressDataRelationshipsTags type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AddressDataRelationshipsTags{} + +// AddressDataRelationshipsTags struct for AddressDataRelationshipsTags +type AddressDataRelationshipsTags struct { + Data *AddressDataRelationshipsTagsData `json:"data,omitempty"` +} + +// NewAddressDataRelationshipsTags instantiates a new AddressDataRelationshipsTags object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAddressDataRelationshipsTags() *AddressDataRelationshipsTags { + this := AddressDataRelationshipsTags{} + return &this +} + +// NewAddressDataRelationshipsTagsWithDefaults instantiates a new AddressDataRelationshipsTags object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAddressDataRelationshipsTagsWithDefaults() *AddressDataRelationshipsTags { + this := AddressDataRelationshipsTags{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AddressDataRelationshipsTags) GetData() AddressDataRelationshipsTagsData { + if o == nil || IsNil(o.Data) { + var ret AddressDataRelationshipsTagsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddressDataRelationshipsTags) GetDataOk() (*AddressDataRelationshipsTagsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *AddressDataRelationshipsTags) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given AddressDataRelationshipsTagsData and assigns it to the Data field. +func (o *AddressDataRelationshipsTags) SetData(v AddressDataRelationshipsTagsData) { + o.Data = &v +} + +func (o AddressDataRelationshipsTags) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AddressDataRelationshipsTags) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableAddressDataRelationshipsTags struct { + value *AddressDataRelationshipsTags + isSet bool +} + +func (v NullableAddressDataRelationshipsTags) Get() *AddressDataRelationshipsTags { + return v.value +} + +func (v *NullableAddressDataRelationshipsTags) Set(val *AddressDataRelationshipsTags) { + v.value = val + v.isSet = true +} + +func (v NullableAddressDataRelationshipsTags) IsSet() bool { + return v.isSet +} + +func (v *NullableAddressDataRelationshipsTags) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAddressDataRelationshipsTags(val *AddressDataRelationshipsTags) *NullableAddressDataRelationshipsTags { + return &NullableAddressDataRelationshipsTags{value: val, isSet: true} +} + +func (v NullableAddressDataRelationshipsTags) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAddressDataRelationshipsTags) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_address_data_relationships_tags_data.go b/api/model_address_data_relationships_tags_data.go new file mode 100644 index 00000000..cc93fc78 --- /dev/null +++ b/api/model_address_data_relationships_tags_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the AddressDataRelationshipsTagsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AddressDataRelationshipsTagsData{} + +// AddressDataRelationshipsTagsData struct for AddressDataRelationshipsTagsData +type AddressDataRelationshipsTagsData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource's id + Id interface{} `json:"id,omitempty"` +} + +// NewAddressDataRelationshipsTagsData instantiates a new AddressDataRelationshipsTagsData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAddressDataRelationshipsTagsData() *AddressDataRelationshipsTagsData { + this := AddressDataRelationshipsTagsData{} + return &this +} + +// NewAddressDataRelationshipsTagsDataWithDefaults instantiates a new AddressDataRelationshipsTagsData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAddressDataRelationshipsTagsDataWithDefaults() *AddressDataRelationshipsTagsData { + this := AddressDataRelationshipsTagsData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AddressDataRelationshipsTagsData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AddressDataRelationshipsTagsData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *AddressDataRelationshipsTagsData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *AddressDataRelationshipsTagsData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AddressDataRelationshipsTagsData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *AddressDataRelationshipsTagsData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AddressDataRelationshipsTagsData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *AddressDataRelationshipsTagsData) SetId(v interface{}) { + o.Id = v +} + +func (o AddressDataRelationshipsTagsData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AddressDataRelationshipsTagsData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableAddressDataRelationshipsTagsData struct { + value *AddressDataRelationshipsTagsData + isSet bool +} + +func (v NullableAddressDataRelationshipsTagsData) Get() *AddressDataRelationshipsTagsData { + return v.value +} + +func (v *NullableAddressDataRelationshipsTagsData) Set(val *AddressDataRelationshipsTagsData) { + v.value = val + v.isSet = true +} + +func (v NullableAddressDataRelationshipsTagsData) IsSet() bool { + return v.isSet +} + +func (v *NullableAddressDataRelationshipsTagsData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAddressDataRelationshipsTagsData(val *AddressDataRelationshipsTagsData) *NullableAddressDataRelationshipsTagsData { + return &NullableAddressDataRelationshipsTagsData{value: val, isSet: true} +} + +func (v NullableAddressDataRelationshipsTagsData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAddressDataRelationshipsTagsData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_address_data_relationships_versions.go b/api/model_address_data_relationships_versions.go new file mode 100644 index 00000000..8287d6bb --- /dev/null +++ b/api/model_address_data_relationships_versions.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the AddressDataRelationshipsVersions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AddressDataRelationshipsVersions{} + +// AddressDataRelationshipsVersions struct for AddressDataRelationshipsVersions +type AddressDataRelationshipsVersions struct { + Data *AddressDataRelationshipsVersionsData `json:"data,omitempty"` +} + +// NewAddressDataRelationshipsVersions instantiates a new AddressDataRelationshipsVersions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAddressDataRelationshipsVersions() *AddressDataRelationshipsVersions { + this := AddressDataRelationshipsVersions{} + return &this +} + +// NewAddressDataRelationshipsVersionsWithDefaults instantiates a new AddressDataRelationshipsVersions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAddressDataRelationshipsVersionsWithDefaults() *AddressDataRelationshipsVersions { + this := AddressDataRelationshipsVersions{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AddressDataRelationshipsVersions) GetData() AddressDataRelationshipsVersionsData { + if o == nil || IsNil(o.Data) { + var ret AddressDataRelationshipsVersionsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddressDataRelationshipsVersions) GetDataOk() (*AddressDataRelationshipsVersionsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *AddressDataRelationshipsVersions) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given AddressDataRelationshipsVersionsData and assigns it to the Data field. +func (o *AddressDataRelationshipsVersions) SetData(v AddressDataRelationshipsVersionsData) { + o.Data = &v +} + +func (o AddressDataRelationshipsVersions) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AddressDataRelationshipsVersions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableAddressDataRelationshipsVersions struct { + value *AddressDataRelationshipsVersions + isSet bool +} + +func (v NullableAddressDataRelationshipsVersions) Get() *AddressDataRelationshipsVersions { + return v.value +} + +func (v *NullableAddressDataRelationshipsVersions) Set(val *AddressDataRelationshipsVersions) { + v.value = val + v.isSet = true +} + +func (v NullableAddressDataRelationshipsVersions) IsSet() bool { + return v.isSet +} + +func (v *NullableAddressDataRelationshipsVersions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAddressDataRelationshipsVersions(val *AddressDataRelationshipsVersions) *NullableAddressDataRelationshipsVersions { + return &NullableAddressDataRelationshipsVersions{value: val, isSet: true} +} + +func (v NullableAddressDataRelationshipsVersions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAddressDataRelationshipsVersions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_customer_data_relationships_returns_data.go b/api/model_address_data_relationships_versions_data.go similarity index 56% rename from api/model_customer_data_relationships_returns_data.go rename to api/model_address_data_relationships_versions_data.go index ccaafbb1..38186b87 100644 --- a/api/model_customer_data_relationships_returns_data.go +++ b/api/model_address_data_relationships_versions_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the CustomerDataRelationshipsReturnsData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CustomerDataRelationshipsReturnsData{} +// checks if the AddressDataRelationshipsVersionsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AddressDataRelationshipsVersionsData{} -// CustomerDataRelationshipsReturnsData struct for CustomerDataRelationshipsReturnsData -type CustomerDataRelationshipsReturnsData struct { +// AddressDataRelationshipsVersionsData struct for AddressDataRelationshipsVersionsData +type AddressDataRelationshipsVersionsData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource's id Id interface{} `json:"id,omitempty"` } -// NewCustomerDataRelationshipsReturnsData instantiates a new CustomerDataRelationshipsReturnsData object +// NewAddressDataRelationshipsVersionsData instantiates a new AddressDataRelationshipsVersionsData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCustomerDataRelationshipsReturnsData() *CustomerDataRelationshipsReturnsData { - this := CustomerDataRelationshipsReturnsData{} +func NewAddressDataRelationshipsVersionsData() *AddressDataRelationshipsVersionsData { + this := AddressDataRelationshipsVersionsData{} return &this } -// NewCustomerDataRelationshipsReturnsDataWithDefaults instantiates a new CustomerDataRelationshipsReturnsData object +// NewAddressDataRelationshipsVersionsDataWithDefaults instantiates a new AddressDataRelationshipsVersionsData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewCustomerDataRelationshipsReturnsDataWithDefaults() *CustomerDataRelationshipsReturnsData { - this := CustomerDataRelationshipsReturnsData{} +func NewAddressDataRelationshipsVersionsDataWithDefaults() *AddressDataRelationshipsVersionsData { + this := AddressDataRelationshipsVersionsData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CustomerDataRelationshipsReturnsData) GetType() interface{} { +func (o *AddressDataRelationshipsVersionsData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *CustomerDataRelationshipsReturnsData) GetType() interface{} { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CustomerDataRelationshipsReturnsData) GetTypeOk() (*interface{}, bool) { +func (o *AddressDataRelationshipsVersionsData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *CustomerDataRelationshipsReturnsData) GetTypeOk() (*interface{}, bool) } // HasType returns a boolean if a field has been set. -func (o *CustomerDataRelationshipsReturnsData) HasType() bool { +func (o *AddressDataRelationshipsVersionsData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *CustomerDataRelationshipsReturnsData) HasType() bool { } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *CustomerDataRelationshipsReturnsData) SetType(v interface{}) { +func (o *AddressDataRelationshipsVersionsData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CustomerDataRelationshipsReturnsData) GetId() interface{} { +func (o *AddressDataRelationshipsVersionsData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *CustomerDataRelationshipsReturnsData) GetId() interface{} { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CustomerDataRelationshipsReturnsData) GetIdOk() (*interface{}, bool) { +func (o *AddressDataRelationshipsVersionsData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *CustomerDataRelationshipsReturnsData) GetIdOk() (*interface{}, bool) { } // HasId returns a boolean if a field has been set. -func (o *CustomerDataRelationshipsReturnsData) HasId() bool { +func (o *AddressDataRelationshipsVersionsData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *CustomerDataRelationshipsReturnsData) HasId() bool { } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *CustomerDataRelationshipsReturnsData) SetId(v interface{}) { +func (o *AddressDataRelationshipsVersionsData) SetId(v interface{}) { o.Id = v } -func (o CustomerDataRelationshipsReturnsData) MarshalJSON() ([]byte, error) { +func (o AddressDataRelationshipsVersionsData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o CustomerDataRelationshipsReturnsData) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o CustomerDataRelationshipsReturnsData) ToMap() (map[string]interface{}, error) { +func (o AddressDataRelationshipsVersionsData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o CustomerDataRelationshipsReturnsData) ToMap() (map[string]interface{}, e return toSerialize, nil } -type NullableCustomerDataRelationshipsReturnsData struct { - value *CustomerDataRelationshipsReturnsData +type NullableAddressDataRelationshipsVersionsData struct { + value *AddressDataRelationshipsVersionsData isSet bool } -func (v NullableCustomerDataRelationshipsReturnsData) Get() *CustomerDataRelationshipsReturnsData { +func (v NullableAddressDataRelationshipsVersionsData) Get() *AddressDataRelationshipsVersionsData { return v.value } -func (v *NullableCustomerDataRelationshipsReturnsData) Set(val *CustomerDataRelationshipsReturnsData) { +func (v *NullableAddressDataRelationshipsVersionsData) Set(val *AddressDataRelationshipsVersionsData) { v.value = val v.isSet = true } -func (v NullableCustomerDataRelationshipsReturnsData) IsSet() bool { +func (v NullableAddressDataRelationshipsVersionsData) IsSet() bool { return v.isSet } -func (v *NullableCustomerDataRelationshipsReturnsData) Unset() { +func (v *NullableAddressDataRelationshipsVersionsData) Unset() { v.value = nil v.isSet = false } -func NewNullableCustomerDataRelationshipsReturnsData(val *CustomerDataRelationshipsReturnsData) *NullableCustomerDataRelationshipsReturnsData { - return &NullableCustomerDataRelationshipsReturnsData{value: val, isSet: true} +func NewNullableAddressDataRelationshipsVersionsData(val *AddressDataRelationshipsVersionsData) *NullableAddressDataRelationshipsVersionsData { + return &NullableAddressDataRelationshipsVersionsData{value: val, isSet: true} } -func (v NullableCustomerDataRelationshipsReturnsData) MarshalJSON() ([]byte, error) { +func (v NullableAddressDataRelationshipsVersionsData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableCustomerDataRelationshipsReturnsData) UnmarshalJSON(src []byte) error { +func (v *NullableAddressDataRelationshipsVersionsData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_address_update.go b/api/model_address_update.go index 85ec7335..91dada30 100644 --- a/api/model_address_update.go +++ b/api/model_address_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_address_update_data.go b/api/model_address_update_data.go index ad1ce85e..78a7fd65 100644 --- a/api/model_address_update_data.go +++ b/api/model_address_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adjustment.go b/api/model_adjustment.go index 7e6866bc..2a5aabd8 100644 --- a/api/model_adjustment.go +++ b/api/model_adjustment.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adjustment_create.go b/api/model_adjustment_create.go index f331d457..a003ac53 100644 --- a/api/model_adjustment_create.go +++ b/api/model_adjustment_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adjustment_create_data.go b/api/model_adjustment_create_data.go index 030795e7..95a469ac 100644 --- a/api/model_adjustment_create_data.go +++ b/api/model_adjustment_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adjustment_data.go b/api/model_adjustment_data.go index 9dc56661..a4152c2a 100644 --- a/api/model_adjustment_data.go +++ b/api/model_adjustment_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type AdjustmentData struct { // The resource's type Type interface{} `json:"type"` Attributes GETAdjustmentsAdjustmentId200ResponseDataAttributes `json:"attributes"` - Relationships interface{} `json:"relationships,omitempty"` + Relationships *AdjustmentDataRelationships `json:"relationships,omitempty"` } // NewAdjustmentData instantiates a new AdjustmentData object @@ -95,37 +95,36 @@ func (o *AdjustmentData) SetAttributes(v GETAdjustmentsAdjustmentId200ResponseDa o.Attributes = v } -// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AdjustmentData) GetRelationships() interface{} { - if o == nil { - var ret interface{} +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *AdjustmentData) GetRelationships() AdjustmentDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret AdjustmentDataRelationships return ret } - return o.Relationships + return *o.Relationships } // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AdjustmentData) GetRelationshipsOk() (*interface{}, bool) { +func (o *AdjustmentData) GetRelationshipsOk() (*AdjustmentDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } - return &o.Relationships, true + return o.Relationships, true } // HasRelationships returns a boolean if a field has been set. func (o *AdjustmentData) HasRelationships() bool { - if o != nil && IsNil(o.Relationships) { + if o != nil && !IsNil(o.Relationships) { return true } return false } -// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. -func (o *AdjustmentData) SetRelationships(v interface{}) { - o.Relationships = v +// SetRelationships gets a reference to the given AdjustmentDataRelationships and assigns it to the Relationships field. +func (o *AdjustmentData) SetRelationships(v AdjustmentDataRelationships) { + o.Relationships = &v } func (o AdjustmentData) MarshalJSON() ([]byte, error) { @@ -142,7 +141,7 @@ func (o AdjustmentData) ToMap() (map[string]interface{}, error) { toSerialize["type"] = o.Type } toSerialize["attributes"] = o.Attributes - if o.Relationships != nil { + if !IsNil(o.Relationships) { toSerialize["relationships"] = o.Relationships } return toSerialize, nil diff --git a/api/model_adjustment_data_relationships.go b/api/model_adjustment_data_relationships.go new file mode 100644 index 00000000..065f4a83 --- /dev/null +++ b/api/model_adjustment_data_relationships.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the AdjustmentDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AdjustmentDataRelationships{} + +// AdjustmentDataRelationships struct for AdjustmentDataRelationships +type AdjustmentDataRelationships struct { + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewAdjustmentDataRelationships instantiates a new AdjustmentDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAdjustmentDataRelationships() *AdjustmentDataRelationships { + this := AdjustmentDataRelationships{} + return &this +} + +// NewAdjustmentDataRelationshipsWithDefaults instantiates a new AdjustmentDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAdjustmentDataRelationshipsWithDefaults() *AdjustmentDataRelationships { + this := AdjustmentDataRelationships{} + return &this +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *AdjustmentDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AdjustmentDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *AdjustmentDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *AdjustmentDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + +func (o AdjustmentDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AdjustmentDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullableAdjustmentDataRelationships struct { + value *AdjustmentDataRelationships + isSet bool +} + +func (v NullableAdjustmentDataRelationships) Get() *AdjustmentDataRelationships { + return v.value +} + +func (v *NullableAdjustmentDataRelationships) Set(val *AdjustmentDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableAdjustmentDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableAdjustmentDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAdjustmentDataRelationships(val *AdjustmentDataRelationships) *NullableAdjustmentDataRelationships { + return &NullableAdjustmentDataRelationships{value: val, isSet: true} +} + +func (v NullableAdjustmentDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAdjustmentDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_adjustment_update.go b/api/model_adjustment_update.go index 5cd1eb04..9f05ab21 100644 --- a/api/model_adjustment_update.go +++ b/api/model_adjustment_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adjustment_update_data.go b/api/model_adjustment_update_data.go index 941414b2..91d4c57e 100644 --- a/api/model_adjustment_update_data.go +++ b/api/model_adjustment_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_gateway.go b/api/model_adyen_gateway.go index 05df4233..1dc75c5e 100644 --- a/api/model_adyen_gateway.go +++ b/api/model_adyen_gateway.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_gateway_create.go b/api/model_adyen_gateway_create.go index 12358788..f4f5fec4 100644 --- a/api/model_adyen_gateway_create.go +++ b/api/model_adyen_gateway_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_gateway_create_data.go b/api/model_adyen_gateway_create_data.go index 97967e83..f6646693 100644 --- a/api/model_adyen_gateway_create_data.go +++ b/api/model_adyen_gateway_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_gateway_create_data_relationships.go b/api/model_adyen_gateway_create_data_relationships.go index 8f46c63c..14b56ef6 100644 --- a/api/model_adyen_gateway_create_data_relationships.go +++ b/api/model_adyen_gateway_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_gateway_create_data_relationships_adyen_payments.go b/api/model_adyen_gateway_create_data_relationships_adyen_payments.go index ba0dff63..38c8995b 100644 --- a/api/model_adyen_gateway_create_data_relationships_adyen_payments.go +++ b/api/model_adyen_gateway_create_data_relationships_adyen_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_gateway_data.go b/api/model_adyen_gateway_data.go index 5bd8bfd1..1e06254e 100644 --- a/api/model_adyen_gateway_data.go +++ b/api/model_adyen_gateway_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_gateway_data_relationships.go b/api/model_adyen_gateway_data_relationships.go index 311377ae..619e9862 100644 --- a/api/model_adyen_gateway_data_relationships.go +++ b/api/model_adyen_gateway_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &AdyenGatewayDataRelationships{} // AdyenGatewayDataRelationships struct for AdyenGatewayDataRelationships type AdyenGatewayDataRelationships struct { PaymentMethods *AdyenGatewayDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` AdyenPayments *AdyenGatewayDataRelationshipsAdyenPayments `json:"adyen_payments,omitempty"` } @@ -73,6 +74,38 @@ func (o *AdyenGatewayDataRelationships) SetPaymentMethods(v AdyenGatewayDataRela o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *AdyenGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AdyenGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *AdyenGatewayDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *AdyenGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + // GetAdyenPayments returns the AdyenPayments field value if set, zero value otherwise. func (o *AdyenGatewayDataRelationships) GetAdyenPayments() AdyenGatewayDataRelationshipsAdyenPayments { if o == nil || IsNil(o.AdyenPayments) { @@ -118,6 +151,9 @@ func (o AdyenGatewayDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.AdyenPayments) { toSerialize["adyen_payments"] = o.AdyenPayments } diff --git a/api/model_adyen_gateway_data_relationships_adyen_payments.go b/api/model_adyen_gateway_data_relationships_adyen_payments.go index 61c95f1e..2cc7c80a 100644 --- a/api/model_adyen_gateway_data_relationships_adyen_payments.go +++ b/api/model_adyen_gateway_data_relationships_adyen_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_gateway_data_relationships_adyen_payments_data.go b/api/model_adyen_gateway_data_relationships_adyen_payments_data.go index aff8d437..3615df8f 100644 --- a/api/model_adyen_gateway_data_relationships_adyen_payments_data.go +++ b/api/model_adyen_gateway_data_relationships_adyen_payments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_gateway_data_relationships_payment_methods.go b/api/model_adyen_gateway_data_relationships_payment_methods.go index 70999a35..832c1cfc 100644 --- a/api/model_adyen_gateway_data_relationships_payment_methods.go +++ b/api/model_adyen_gateway_data_relationships_payment_methods.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_gateway_data_relationships_payment_methods_data.go b/api/model_adyen_gateway_data_relationships_payment_methods_data.go index 0136d0bb..9d42ba8f 100644 --- a/api/model_adyen_gateway_data_relationships_payment_methods_data.go +++ b/api/model_adyen_gateway_data_relationships_payment_methods_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_gateway_update.go b/api/model_adyen_gateway_update.go index 349c917e..9786767c 100644 --- a/api/model_adyen_gateway_update.go +++ b/api/model_adyen_gateway_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_gateway_update_data.go b/api/model_adyen_gateway_update_data.go index 74d6d423..e86b53f8 100644 --- a/api/model_adyen_gateway_update_data.go +++ b/api/model_adyen_gateway_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_payment.go b/api/model_adyen_payment.go index bd7b88ac..0d88a3a6 100644 --- a/api/model_adyen_payment.go +++ b/api/model_adyen_payment.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_payment_create.go b/api/model_adyen_payment_create.go index 1a005504..baba1f47 100644 --- a/api/model_adyen_payment_create.go +++ b/api/model_adyen_payment_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_payment_create_data.go b/api/model_adyen_payment_create_data.go index fed7d197..3addac2a 100644 --- a/api/model_adyen_payment_create_data.go +++ b/api/model_adyen_payment_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_payment_create_data_relationships.go b/api/model_adyen_payment_create_data_relationships.go index b39e7519..196816c0 100644 --- a/api/model_adyen_payment_create_data_relationships.go +++ b/api/model_adyen_payment_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_payment_create_data_relationships_order.go b/api/model_adyen_payment_create_data_relationships_order.go index bcc806d3..00954b3e 100644 --- a/api/model_adyen_payment_create_data_relationships_order.go +++ b/api/model_adyen_payment_create_data_relationships_order.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_payment_data.go b/api/model_adyen_payment_data.go index bb934a4d..98b3cd9c 100644 --- a/api/model_adyen_payment_data.go +++ b/api/model_adyen_payment_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_payment_data_relationships.go b/api/model_adyen_payment_data_relationships.go index 96e4e502..1486e224 100644 --- a/api/model_adyen_payment_data_relationships.go +++ b/api/model_adyen_payment_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,6 +22,7 @@ var _ MappedNullable = &AdyenPaymentDataRelationships{} type AdyenPaymentDataRelationships struct { Order *AdyenPaymentDataRelationshipsOrder `json:"order,omitempty"` PaymentGateway *AdyenPaymentDataRelationshipsPaymentGateway `json:"payment_gateway,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewAdyenPaymentDataRelationships instantiates a new AdyenPaymentDataRelationships object @@ -105,6 +106,38 @@ func (o *AdyenPaymentDataRelationships) SetPaymentGateway(v AdyenPaymentDataRela o.PaymentGateway = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *AdyenPaymentDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AdyenPaymentDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *AdyenPaymentDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *AdyenPaymentDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o AdyenPaymentDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o AdyenPaymentDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.PaymentGateway) { toSerialize["payment_gateway"] = o.PaymentGateway } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_adyen_payment_data_relationships_order.go b/api/model_adyen_payment_data_relationships_order.go index aa0b94d7..eb577b73 100644 --- a/api/model_adyen_payment_data_relationships_order.go +++ b/api/model_adyen_payment_data_relationships_order.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_payment_data_relationships_order_data.go b/api/model_adyen_payment_data_relationships_order_data.go index e4118931..ce2fc699 100644 --- a/api/model_adyen_payment_data_relationships_order_data.go +++ b/api/model_adyen_payment_data_relationships_order_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_payment_data_relationships_payment_gateway.go b/api/model_adyen_payment_data_relationships_payment_gateway.go index f206daf9..ca55d71d 100644 --- a/api/model_adyen_payment_data_relationships_payment_gateway.go +++ b/api/model_adyen_payment_data_relationships_payment_gateway.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_payment_data_relationships_payment_gateway_data.go b/api/model_adyen_payment_data_relationships_payment_gateway_data.go index 2ec14132..bb9f2624 100644 --- a/api/model_adyen_payment_data_relationships_payment_gateway_data.go +++ b/api/model_adyen_payment_data_relationships_payment_gateway_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_payment_update.go b/api/model_adyen_payment_update.go index 53e3caf2..0939c603 100644 --- a/api/model_adyen_payment_update.go +++ b/api/model_adyen_payment_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_payment_update_data.go b/api/model_adyen_payment_update_data.go index 95381669..60dde036 100644 --- a/api/model_adyen_payment_update_data.go +++ b/api/model_adyen_payment_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_adyen_payment_update_data_relationships.go b/api/model_adyen_payment_update_data_relationships.go index 54116522..126931d2 100644 --- a/api/model_adyen_payment_update_data_relationships.go +++ b/api/model_adyen_payment_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_application.go b/api/model_application.go index c9ce0a49..231039ee 100644 --- a/api/model_application.go +++ b/api/model_application.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_application_data.go b/api/model_application_data.go index 71cfe9d2..bb3e5e16 100644 --- a/api/model_application_data.go +++ b/api/model_application_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_attachment.go b/api/model_attachment.go index 0e0db26a..35790536 100644 --- a/api/model_attachment.go +++ b/api/model_attachment.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_attachment_create.go b/api/model_attachment_create.go index a68828ce..8504b7f3 100644 --- a/api/model_attachment_create.go +++ b/api/model_attachment_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_attachment_create_data.go b/api/model_attachment_create_data.go index fc62e1f0..6bae7196 100644 --- a/api/model_attachment_create_data.go +++ b/api/model_attachment_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_attachment_create_data_relationships.go b/api/model_attachment_create_data_relationships.go index df65e714..a7d8b9c0 100644 --- a/api/model_attachment_create_data_relationships.go +++ b/api/model_attachment_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_attachment_create_data_relationships_attachable.go b/api/model_attachment_create_data_relationships_attachable.go index 7c09aab3..b6029374 100644 --- a/api/model_attachment_create_data_relationships_attachable.go +++ b/api/model_attachment_create_data_relationships_attachable.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_attachment_data.go b/api/model_attachment_data.go index a51f6965..026abbd3 100644 --- a/api/model_attachment_data.go +++ b/api/model_attachment_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_attachment_data_relationships.go b/api/model_attachment_data_relationships.go index ae3501a3..6e203e02 100644 --- a/api/model_attachment_data_relationships.go +++ b/api/model_attachment_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_attachment_data_relationships_attachable.go b/api/model_attachment_data_relationships_attachable.go index 7d079c77..62af6504 100644 --- a/api/model_attachment_data_relationships_attachable.go +++ b/api/model_attachment_data_relationships_attachable.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_attachment_data_relationships_attachable_data.go b/api/model_attachment_data_relationships_attachable_data.go index 8b09e8b8..8cf7ff1d 100644 --- a/api/model_attachment_data_relationships_attachable_data.go +++ b/api/model_attachment_data_relationships_attachable_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_attachment_update.go b/api/model_attachment_update.go index 00faf254..c5d7174e 100644 --- a/api/model_attachment_update.go +++ b/api/model_attachment_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_attachment_update_data.go b/api/model_attachment_update_data.go index 1f31cbee..c1660743 100644 --- a/api/model_attachment_update_data.go +++ b/api/model_attachment_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_attachment_update_data_relationships.go b/api/model_attachment_update_data_relationships.go index 21c41750..90bf3966 100644 --- a/api/model_attachment_update_data_relationships.go +++ b/api/model_attachment_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_authorization.go b/api/model_authorization.go index 285cf057..b134865f 100644 --- a/api/model_authorization.go +++ b/api/model_authorization.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_authorization_data.go b/api/model_authorization_data.go index 9ede6cf6..ae04bd3b 100644 --- a/api/model_authorization_data.go +++ b/api/model_authorization_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_authorization_data_relationships.go b/api/model_authorization_data_relationships.go index a2cc02c6..68354972 100644 --- a/api/model_authorization_data_relationships.go +++ b/api/model_authorization_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,10 +20,12 @@ var _ MappedNullable = &AuthorizationDataRelationships{} // AuthorizationDataRelationships struct for AuthorizationDataRelationships type AuthorizationDataRelationships struct { - Order *AdyenPaymentDataRelationshipsOrder `json:"order,omitempty"` - Captures *AuthorizationDataRelationshipsCaptures `json:"captures,omitempty"` - Voids *AuthorizationDataRelationshipsVoids `json:"voids,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` + Order *AdyenPaymentDataRelationshipsOrder `json:"order,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` + Captures *AuthorizationDataRelationshipsCaptures `json:"captures,omitempty"` + Voids *AuthorizationDataRelationshipsVoids `json:"voids,omitempty"` } // NewAuthorizationDataRelationships instantiates a new AuthorizationDataRelationships object @@ -75,6 +77,102 @@ func (o *AuthorizationDataRelationships) SetOrder(v AdyenPaymentDataRelationship o.Order = &v } +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *AuthorizationDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret AuthorizationDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthorizationDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *AuthorizationDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *AuthorizationDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { + o.Attachments = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *AuthorizationDataRelationships) GetEvents() AddressDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret AddressDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthorizationDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *AuthorizationDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *AuthorizationDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { + o.Events = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *AuthorizationDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthorizationDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *AuthorizationDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *AuthorizationDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + // GetCaptures returns the Captures field value if set, zero value otherwise. func (o *AuthorizationDataRelationships) GetCaptures() AuthorizationDataRelationshipsCaptures { if o == nil || IsNil(o.Captures) { @@ -139,38 +237,6 @@ func (o *AuthorizationDataRelationships) SetVoids(v AuthorizationDataRelationshi o.Voids = &v } -// GetEvents returns the Events field value if set, zero value otherwise. -func (o *AuthorizationDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { - if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents - return ret - } - return *o.Events -} - -// GetEventsOk returns a tuple with the Events field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AuthorizationDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { - if o == nil || IsNil(o.Events) { - return nil, false - } - return o.Events, true -} - -// HasEvents returns a boolean if a field has been set. -func (o *AuthorizationDataRelationships) HasEvents() bool { - if o != nil && !IsNil(o.Events) { - return true - } - - return false -} - -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *AuthorizationDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { - o.Events = &v -} - func (o AuthorizationDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -184,15 +250,21 @@ func (o AuthorizationDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.Order) { toSerialize["order"] = o.Order } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.Captures) { toSerialize["captures"] = o.Captures } if !IsNil(o.Voids) { toSerialize["voids"] = o.Voids } - if !IsNil(o.Events) { - toSerialize["events"] = o.Events - } return toSerialize, nil } diff --git a/api/model_authorization_data_relationships_attachments.go b/api/model_authorization_data_relationships_attachments.go new file mode 100644 index 00000000..b9c498f8 --- /dev/null +++ b/api/model_authorization_data_relationships_attachments.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the AuthorizationDataRelationshipsAttachments type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuthorizationDataRelationshipsAttachments{} + +// AuthorizationDataRelationshipsAttachments struct for AuthorizationDataRelationshipsAttachments +type AuthorizationDataRelationshipsAttachments struct { + Data *AuthorizationDataRelationshipsAttachmentsData `json:"data,omitempty"` +} + +// NewAuthorizationDataRelationshipsAttachments instantiates a new AuthorizationDataRelationshipsAttachments object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAuthorizationDataRelationshipsAttachments() *AuthorizationDataRelationshipsAttachments { + this := AuthorizationDataRelationshipsAttachments{} + return &this +} + +// NewAuthorizationDataRelationshipsAttachmentsWithDefaults instantiates a new AuthorizationDataRelationshipsAttachments object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAuthorizationDataRelationshipsAttachmentsWithDefaults() *AuthorizationDataRelationshipsAttachments { + this := AuthorizationDataRelationshipsAttachments{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *AuthorizationDataRelationshipsAttachments) GetData() AuthorizationDataRelationshipsAttachmentsData { + if o == nil || IsNil(o.Data) { + var ret AuthorizationDataRelationshipsAttachmentsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AuthorizationDataRelationshipsAttachments) GetDataOk() (*AuthorizationDataRelationshipsAttachmentsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *AuthorizationDataRelationshipsAttachments) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given AuthorizationDataRelationshipsAttachmentsData and assigns it to the Data field. +func (o *AuthorizationDataRelationshipsAttachments) SetData(v AuthorizationDataRelationshipsAttachmentsData) { + o.Data = &v +} + +func (o AuthorizationDataRelationshipsAttachments) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AuthorizationDataRelationshipsAttachments) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableAuthorizationDataRelationshipsAttachments struct { + value *AuthorizationDataRelationshipsAttachments + isSet bool +} + +func (v NullableAuthorizationDataRelationshipsAttachments) Get() *AuthorizationDataRelationshipsAttachments { + return v.value +} + +func (v *NullableAuthorizationDataRelationshipsAttachments) Set(val *AuthorizationDataRelationshipsAttachments) { + v.value = val + v.isSet = true +} + +func (v NullableAuthorizationDataRelationshipsAttachments) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthorizationDataRelationshipsAttachments) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthorizationDataRelationshipsAttachments(val *AuthorizationDataRelationshipsAttachments) *NullableAuthorizationDataRelationshipsAttachments { + return &NullableAuthorizationDataRelationshipsAttachments{value: val, isSet: true} +} + +func (v NullableAuthorizationDataRelationshipsAttachments) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthorizationDataRelationshipsAttachments) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_tax_category_data_relationships_tax_calculator_data.go b/api/model_authorization_data_relationships_attachments_data.go similarity index 55% rename from api/model_tax_category_data_relationships_tax_calculator_data.go rename to api/model_authorization_data_relationships_attachments_data.go index 136e6b50..2f911389 100644 --- a/api/model_tax_category_data_relationships_tax_calculator_data.go +++ b/api/model_authorization_data_relationships_attachments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the TaxCategoryDataRelationshipsTaxCalculatorData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TaxCategoryDataRelationshipsTaxCalculatorData{} +// checks if the AuthorizationDataRelationshipsAttachmentsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AuthorizationDataRelationshipsAttachmentsData{} -// TaxCategoryDataRelationshipsTaxCalculatorData struct for TaxCategoryDataRelationshipsTaxCalculatorData -type TaxCategoryDataRelationshipsTaxCalculatorData struct { +// AuthorizationDataRelationshipsAttachmentsData struct for AuthorizationDataRelationshipsAttachmentsData +type AuthorizationDataRelationshipsAttachmentsData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource's id Id interface{} `json:"id,omitempty"` } -// NewTaxCategoryDataRelationshipsTaxCalculatorData instantiates a new TaxCategoryDataRelationshipsTaxCalculatorData object +// NewAuthorizationDataRelationshipsAttachmentsData instantiates a new AuthorizationDataRelationshipsAttachmentsData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewTaxCategoryDataRelationshipsTaxCalculatorData() *TaxCategoryDataRelationshipsTaxCalculatorData { - this := TaxCategoryDataRelationshipsTaxCalculatorData{} +func NewAuthorizationDataRelationshipsAttachmentsData() *AuthorizationDataRelationshipsAttachmentsData { + this := AuthorizationDataRelationshipsAttachmentsData{} return &this } -// NewTaxCategoryDataRelationshipsTaxCalculatorDataWithDefaults instantiates a new TaxCategoryDataRelationshipsTaxCalculatorData object +// NewAuthorizationDataRelationshipsAttachmentsDataWithDefaults instantiates a new AuthorizationDataRelationshipsAttachmentsData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewTaxCategoryDataRelationshipsTaxCalculatorDataWithDefaults() *TaxCategoryDataRelationshipsTaxCalculatorData { - this := TaxCategoryDataRelationshipsTaxCalculatorData{} +func NewAuthorizationDataRelationshipsAttachmentsDataWithDefaults() *AuthorizationDataRelationshipsAttachmentsData { + this := AuthorizationDataRelationshipsAttachmentsData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TaxCategoryDataRelationshipsTaxCalculatorData) GetType() interface{} { +func (o *AuthorizationDataRelationshipsAttachmentsData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *TaxCategoryDataRelationshipsTaxCalculatorData) GetType() interface{} { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TaxCategoryDataRelationshipsTaxCalculatorData) GetTypeOk() (*interface{}, bool) { +func (o *AuthorizationDataRelationshipsAttachmentsData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *TaxCategoryDataRelationshipsTaxCalculatorData) GetTypeOk() (*interface{ } // HasType returns a boolean if a field has been set. -func (o *TaxCategoryDataRelationshipsTaxCalculatorData) HasType() bool { +func (o *AuthorizationDataRelationshipsAttachmentsData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *TaxCategoryDataRelationshipsTaxCalculatorData) HasType() bool { } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *TaxCategoryDataRelationshipsTaxCalculatorData) SetType(v interface{}) { +func (o *AuthorizationDataRelationshipsAttachmentsData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TaxCategoryDataRelationshipsTaxCalculatorData) GetId() interface{} { +func (o *AuthorizationDataRelationshipsAttachmentsData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *TaxCategoryDataRelationshipsTaxCalculatorData) GetId() interface{} { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TaxCategoryDataRelationshipsTaxCalculatorData) GetIdOk() (*interface{}, bool) { +func (o *AuthorizationDataRelationshipsAttachmentsData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *TaxCategoryDataRelationshipsTaxCalculatorData) GetIdOk() (*interface{}, } // HasId returns a boolean if a field has been set. -func (o *TaxCategoryDataRelationshipsTaxCalculatorData) HasId() bool { +func (o *AuthorizationDataRelationshipsAttachmentsData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *TaxCategoryDataRelationshipsTaxCalculatorData) HasId() bool { } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *TaxCategoryDataRelationshipsTaxCalculatorData) SetId(v interface{}) { +func (o *AuthorizationDataRelationshipsAttachmentsData) SetId(v interface{}) { o.Id = v } -func (o TaxCategoryDataRelationshipsTaxCalculatorData) MarshalJSON() ([]byte, error) { +func (o AuthorizationDataRelationshipsAttachmentsData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o TaxCategoryDataRelationshipsTaxCalculatorData) MarshalJSON() ([]byte, er return json.Marshal(toSerialize) } -func (o TaxCategoryDataRelationshipsTaxCalculatorData) ToMap() (map[string]interface{}, error) { +func (o AuthorizationDataRelationshipsAttachmentsData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o TaxCategoryDataRelationshipsTaxCalculatorData) ToMap() (map[string]inter return toSerialize, nil } -type NullableTaxCategoryDataRelationshipsTaxCalculatorData struct { - value *TaxCategoryDataRelationshipsTaxCalculatorData +type NullableAuthorizationDataRelationshipsAttachmentsData struct { + value *AuthorizationDataRelationshipsAttachmentsData isSet bool } -func (v NullableTaxCategoryDataRelationshipsTaxCalculatorData) Get() *TaxCategoryDataRelationshipsTaxCalculatorData { +func (v NullableAuthorizationDataRelationshipsAttachmentsData) Get() *AuthorizationDataRelationshipsAttachmentsData { return v.value } -func (v *NullableTaxCategoryDataRelationshipsTaxCalculatorData) Set(val *TaxCategoryDataRelationshipsTaxCalculatorData) { +func (v *NullableAuthorizationDataRelationshipsAttachmentsData) Set(val *AuthorizationDataRelationshipsAttachmentsData) { v.value = val v.isSet = true } -func (v NullableTaxCategoryDataRelationshipsTaxCalculatorData) IsSet() bool { +func (v NullableAuthorizationDataRelationshipsAttachmentsData) IsSet() bool { return v.isSet } -func (v *NullableTaxCategoryDataRelationshipsTaxCalculatorData) Unset() { +func (v *NullableAuthorizationDataRelationshipsAttachmentsData) Unset() { v.value = nil v.isSet = false } -func NewNullableTaxCategoryDataRelationshipsTaxCalculatorData(val *TaxCategoryDataRelationshipsTaxCalculatorData) *NullableTaxCategoryDataRelationshipsTaxCalculatorData { - return &NullableTaxCategoryDataRelationshipsTaxCalculatorData{value: val, isSet: true} +func NewNullableAuthorizationDataRelationshipsAttachmentsData(val *AuthorizationDataRelationshipsAttachmentsData) *NullableAuthorizationDataRelationshipsAttachmentsData { + return &NullableAuthorizationDataRelationshipsAttachmentsData{value: val, isSet: true} } -func (v NullableTaxCategoryDataRelationshipsTaxCalculatorData) MarshalJSON() ([]byte, error) { +func (v NullableAuthorizationDataRelationshipsAttachmentsData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableTaxCategoryDataRelationshipsTaxCalculatorData) UnmarshalJSON(src []byte) error { +func (v *NullableAuthorizationDataRelationshipsAttachmentsData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_authorization_data_relationships_captures.go b/api/model_authorization_data_relationships_captures.go index de2d8e00..722dd7f7 100644 --- a/api/model_authorization_data_relationships_captures.go +++ b/api/model_authorization_data_relationships_captures.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_authorization_data_relationships_captures_data.go b/api/model_authorization_data_relationships_captures_data.go index bde82ea0..c4c788c4 100644 --- a/api/model_authorization_data_relationships_captures_data.go +++ b/api/model_authorization_data_relationships_captures_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_authorization_data_relationships_events.go b/api/model_authorization_data_relationships_events.go deleted file mode 100644 index 6c8ad710..00000000 --- a/api/model_authorization_data_relationships_events.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the AuthorizationDataRelationshipsEvents type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AuthorizationDataRelationshipsEvents{} - -// AuthorizationDataRelationshipsEvents struct for AuthorizationDataRelationshipsEvents -type AuthorizationDataRelationshipsEvents struct { - Data *AuthorizationDataRelationshipsEventsData `json:"data,omitempty"` -} - -// NewAuthorizationDataRelationshipsEvents instantiates a new AuthorizationDataRelationshipsEvents object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAuthorizationDataRelationshipsEvents() *AuthorizationDataRelationshipsEvents { - this := AuthorizationDataRelationshipsEvents{} - return &this -} - -// NewAuthorizationDataRelationshipsEventsWithDefaults instantiates a new AuthorizationDataRelationshipsEvents object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAuthorizationDataRelationshipsEventsWithDefaults() *AuthorizationDataRelationshipsEvents { - this := AuthorizationDataRelationshipsEvents{} - return &this -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *AuthorizationDataRelationshipsEvents) GetData() AuthorizationDataRelationshipsEventsData { - if o == nil || IsNil(o.Data) { - var ret AuthorizationDataRelationshipsEventsData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AuthorizationDataRelationshipsEvents) GetDataOk() (*AuthorizationDataRelationshipsEventsData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *AuthorizationDataRelationshipsEvents) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given AuthorizationDataRelationshipsEventsData and assigns it to the Data field. -func (o *AuthorizationDataRelationshipsEvents) SetData(v AuthorizationDataRelationshipsEventsData) { - o.Data = &v -} - -func (o AuthorizationDataRelationshipsEvents) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AuthorizationDataRelationshipsEvents) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableAuthorizationDataRelationshipsEvents struct { - value *AuthorizationDataRelationshipsEvents - isSet bool -} - -func (v NullableAuthorizationDataRelationshipsEvents) Get() *AuthorizationDataRelationshipsEvents { - return v.value -} - -func (v *NullableAuthorizationDataRelationshipsEvents) Set(val *AuthorizationDataRelationshipsEvents) { - v.value = val - v.isSet = true -} - -func (v NullableAuthorizationDataRelationshipsEvents) IsSet() bool { - return v.isSet -} - -func (v *NullableAuthorizationDataRelationshipsEvents) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAuthorizationDataRelationshipsEvents(val *AuthorizationDataRelationshipsEvents) *NullableAuthorizationDataRelationshipsEvents { - return &NullableAuthorizationDataRelationshipsEvents{value: val, isSet: true} -} - -func (v NullableAuthorizationDataRelationshipsEvents) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAuthorizationDataRelationshipsEvents) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_authorization_data_relationships_voids.go b/api/model_authorization_data_relationships_voids.go index 81d795a8..644a6bb1 100644 --- a/api/model_authorization_data_relationships_voids.go +++ b/api/model_authorization_data_relationships_voids.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_authorization_data_relationships_voids_data.go b/api/model_authorization_data_relationships_voids_data.go index 08c55810..3cc8c322 100644 --- a/api/model_authorization_data_relationships_voids_data.go +++ b/api/model_authorization_data_relationships_voids_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_authorization_update.go b/api/model_authorization_update.go index c51a2ba6..598286d4 100644 --- a/api/model_authorization_update.go +++ b/api/model_authorization_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_authorization_update_data.go b/api/model_authorization_update_data.go index 89123f69..586327eb 100644 --- a/api/model_authorization_update_data.go +++ b/api/model_authorization_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_avalara_account.go b/api/model_avalara_account.go index bf89b73b..4890297b 100644 --- a/api/model_avalara_account.go +++ b/api/model_avalara_account.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_avalara_account_create.go b/api/model_avalara_account_create.go index 7fc48919..bbe2c330 100644 --- a/api/model_avalara_account_create.go +++ b/api/model_avalara_account_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_avalara_account_create_data.go b/api/model_avalara_account_create_data.go index abe1fccf..faaacf79 100644 --- a/api/model_avalara_account_create_data.go +++ b/api/model_avalara_account_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_avalara_account_create_data_relationships.go b/api/model_avalara_account_create_data_relationships.go index 747ef72b..db413952 100644 --- a/api/model_avalara_account_create_data_relationships.go +++ b/api/model_avalara_account_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_avalara_account_create_data_relationships_tax_categories.go b/api/model_avalara_account_create_data_relationships_tax_categories.go index 775b7c0f..b9ca4555 100644 --- a/api/model_avalara_account_create_data_relationships_tax_categories.go +++ b/api/model_avalara_account_create_data_relationships_tax_categories.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_avalara_account_data.go b/api/model_avalara_account_data.go index fe1ac38d..297a4f32 100644 --- a/api/model_avalara_account_data.go +++ b/api/model_avalara_account_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_avalara_account_data_relationships.go b/api/model_avalara_account_data_relationships.go index a542d73d..a5a0d1e5 100644 --- a/api/model_avalara_account_data_relationships.go +++ b/api/model_avalara_account_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,8 +21,10 @@ var _ MappedNullable = &AvalaraAccountDataRelationships{} // AvalaraAccountDataRelationships struct for AvalaraAccountDataRelationships type AvalaraAccountDataRelationships struct { Markets *AvalaraAccountDataRelationshipsMarkets `json:"markets,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` TaxCategories *AvalaraAccountDataRelationshipsTaxCategories `json:"tax_categories,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` } // NewAvalaraAccountDataRelationships instantiates a new AvalaraAccountDataRelationships object @@ -75,9 +77,9 @@ func (o *AvalaraAccountDataRelationships) SetMarkets(v AvalaraAccountDataRelatio } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *AvalaraAccountDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *AvalaraAccountDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -85,7 +87,7 @@ func (o *AvalaraAccountDataRelationships) GetAttachments() AvalaraAccountDataRel // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *AvalaraAccountDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *AvalaraAccountDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -101,11 +103,43 @@ func (o *AvalaraAccountDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *AvalaraAccountDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *AvalaraAccountDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *AvalaraAccountDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AvalaraAccountDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *AvalaraAccountDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *AvalaraAccountDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + // GetTaxCategories returns the TaxCategories field value if set, zero value otherwise. func (o *AvalaraAccountDataRelationships) GetTaxCategories() AvalaraAccountDataRelationshipsTaxCategories { if o == nil || IsNil(o.TaxCategories) { @@ -138,6 +172,38 @@ func (o *AvalaraAccountDataRelationships) SetTaxCategories(v AvalaraAccountDataR o.TaxCategories = &v } +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *AvalaraAccountDataRelationships) GetEvents() AddressDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret AddressDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AvalaraAccountDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *AvalaraAccountDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *AvalaraAccountDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { + o.Events = &v +} + func (o AvalaraAccountDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -154,9 +220,15 @@ func (o AvalaraAccountDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.TaxCategories) { toSerialize["tax_categories"] = o.TaxCategories } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } return toSerialize, nil } diff --git a/api/model_avalara_account_data_relationships_attachments.go b/api/model_avalara_account_data_relationships_attachments.go deleted file mode 100644 index 57cf6543..00000000 --- a/api/model_avalara_account_data_relationships_attachments.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the AvalaraAccountDataRelationshipsAttachments type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AvalaraAccountDataRelationshipsAttachments{} - -// AvalaraAccountDataRelationshipsAttachments struct for AvalaraAccountDataRelationshipsAttachments -type AvalaraAccountDataRelationshipsAttachments struct { - Data *AvalaraAccountDataRelationshipsAttachmentsData `json:"data,omitempty"` -} - -// NewAvalaraAccountDataRelationshipsAttachments instantiates a new AvalaraAccountDataRelationshipsAttachments object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAvalaraAccountDataRelationshipsAttachments() *AvalaraAccountDataRelationshipsAttachments { - this := AvalaraAccountDataRelationshipsAttachments{} - return &this -} - -// NewAvalaraAccountDataRelationshipsAttachmentsWithDefaults instantiates a new AvalaraAccountDataRelationshipsAttachments object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAvalaraAccountDataRelationshipsAttachmentsWithDefaults() *AvalaraAccountDataRelationshipsAttachments { - this := AvalaraAccountDataRelationshipsAttachments{} - return &this -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *AvalaraAccountDataRelationshipsAttachments) GetData() AvalaraAccountDataRelationshipsAttachmentsData { - if o == nil || IsNil(o.Data) { - var ret AvalaraAccountDataRelationshipsAttachmentsData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AvalaraAccountDataRelationshipsAttachments) GetDataOk() (*AvalaraAccountDataRelationshipsAttachmentsData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *AvalaraAccountDataRelationshipsAttachments) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given AvalaraAccountDataRelationshipsAttachmentsData and assigns it to the Data field. -func (o *AvalaraAccountDataRelationshipsAttachments) SetData(v AvalaraAccountDataRelationshipsAttachmentsData) { - o.Data = &v -} - -func (o AvalaraAccountDataRelationshipsAttachments) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AvalaraAccountDataRelationshipsAttachments) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableAvalaraAccountDataRelationshipsAttachments struct { - value *AvalaraAccountDataRelationshipsAttachments - isSet bool -} - -func (v NullableAvalaraAccountDataRelationshipsAttachments) Get() *AvalaraAccountDataRelationshipsAttachments { - return v.value -} - -func (v *NullableAvalaraAccountDataRelationshipsAttachments) Set(val *AvalaraAccountDataRelationshipsAttachments) { - v.value = val - v.isSet = true -} - -func (v NullableAvalaraAccountDataRelationshipsAttachments) IsSet() bool { - return v.isSet -} - -func (v *NullableAvalaraAccountDataRelationshipsAttachments) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAvalaraAccountDataRelationshipsAttachments(val *AvalaraAccountDataRelationshipsAttachments) *NullableAvalaraAccountDataRelationshipsAttachments { - return &NullableAvalaraAccountDataRelationshipsAttachments{value: val, isSet: true} -} - -func (v NullableAvalaraAccountDataRelationshipsAttachments) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAvalaraAccountDataRelationshipsAttachments) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_avalara_account_data_relationships_markets.go b/api/model_avalara_account_data_relationships_markets.go index 9cec03e7..c87bea80 100644 --- a/api/model_avalara_account_data_relationships_markets.go +++ b/api/model_avalara_account_data_relationships_markets.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_avalara_account_data_relationships_markets_data.go b/api/model_avalara_account_data_relationships_markets_data.go index 162aa8e3..82872551 100644 --- a/api/model_avalara_account_data_relationships_markets_data.go +++ b/api/model_avalara_account_data_relationships_markets_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_avalara_account_data_relationships_tax_categories.go b/api/model_avalara_account_data_relationships_tax_categories.go index 3520c52b..4b0cd5da 100644 --- a/api/model_avalara_account_data_relationships_tax_categories.go +++ b/api/model_avalara_account_data_relationships_tax_categories.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_avalara_account_data_relationships_tax_categories_data.go b/api/model_avalara_account_data_relationships_tax_categories_data.go index a79759a9..4844dc12 100644 --- a/api/model_avalara_account_data_relationships_tax_categories_data.go +++ b/api/model_avalara_account_data_relationships_tax_categories_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_avalara_account_update.go b/api/model_avalara_account_update.go index 525a95bc..94cc0085 100644 --- a/api/model_avalara_account_update.go +++ b/api/model_avalara_account_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_avalara_account_update_data.go b/api/model_avalara_account_update_data.go index cc1e0116..826ded86 100644 --- a/api/model_avalara_account_update_data.go +++ b/api/model_avalara_account_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_axerve_gateway.go b/api/model_axerve_gateway.go index 7ac410a9..d11fbcd8 100644 --- a/api/model_axerve_gateway.go +++ b/api/model_axerve_gateway.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_axerve_gateway_create.go b/api/model_axerve_gateway_create.go index 89456930..4724ce5b 100644 --- a/api/model_axerve_gateway_create.go +++ b/api/model_axerve_gateway_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_axerve_gateway_create_data.go b/api/model_axerve_gateway_create_data.go index 87c448ed..99d989d1 100644 --- a/api/model_axerve_gateway_create_data.go +++ b/api/model_axerve_gateway_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_axerve_gateway_create_data_relationships.go b/api/model_axerve_gateway_create_data_relationships.go index 56f282c0..169206ee 100644 --- a/api/model_axerve_gateway_create_data_relationships.go +++ b/api/model_axerve_gateway_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_axerve_gateway_create_data_relationships_axerve_payments.go b/api/model_axerve_gateway_create_data_relationships_axerve_payments.go index 1a4ae115..279d6ee9 100644 --- a/api/model_axerve_gateway_create_data_relationships_axerve_payments.go +++ b/api/model_axerve_gateway_create_data_relationships_axerve_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_axerve_gateway_data.go b/api/model_axerve_gateway_data.go index 9a9552ef..b8e824d9 100644 --- a/api/model_axerve_gateway_data.go +++ b/api/model_axerve_gateway_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_axerve_gateway_data_relationships.go b/api/model_axerve_gateway_data_relationships.go index 12d1c439..c54d079d 100644 --- a/api/model_axerve_gateway_data_relationships.go +++ b/api/model_axerve_gateway_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &AxerveGatewayDataRelationships{} // AxerveGatewayDataRelationships struct for AxerveGatewayDataRelationships type AxerveGatewayDataRelationships struct { PaymentMethods *AdyenGatewayDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` AxervePayments *AxerveGatewayDataRelationshipsAxervePayments `json:"axerve_payments,omitempty"` } @@ -73,6 +74,38 @@ func (o *AxerveGatewayDataRelationships) SetPaymentMethods(v AdyenGatewayDataRel o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *AxerveGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AxerveGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *AxerveGatewayDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *AxerveGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + // GetAxervePayments returns the AxervePayments field value if set, zero value otherwise. func (o *AxerveGatewayDataRelationships) GetAxervePayments() AxerveGatewayDataRelationshipsAxervePayments { if o == nil || IsNil(o.AxervePayments) { @@ -118,6 +151,9 @@ func (o AxerveGatewayDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.AxervePayments) { toSerialize["axerve_payments"] = o.AxervePayments } diff --git a/api/model_axerve_gateway_data_relationships_axerve_payments.go b/api/model_axerve_gateway_data_relationships_axerve_payments.go index e881f25e..19d4de14 100644 --- a/api/model_axerve_gateway_data_relationships_axerve_payments.go +++ b/api/model_axerve_gateway_data_relationships_axerve_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_axerve_gateway_data_relationships_axerve_payments_data.go b/api/model_axerve_gateway_data_relationships_axerve_payments_data.go index 594dfc1a..06e92897 100644 --- a/api/model_axerve_gateway_data_relationships_axerve_payments_data.go +++ b/api/model_axerve_gateway_data_relationships_axerve_payments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_axerve_gateway_update.go b/api/model_axerve_gateway_update.go index 7674e0f6..7d63e5a7 100644 --- a/api/model_axerve_gateway_update.go +++ b/api/model_axerve_gateway_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_axerve_gateway_update_data.go b/api/model_axerve_gateway_update_data.go index 095f04ee..88871339 100644 --- a/api/model_axerve_gateway_update_data.go +++ b/api/model_axerve_gateway_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_axerve_payment.go b/api/model_axerve_payment.go index e82559cd..675a716f 100644 --- a/api/model_axerve_payment.go +++ b/api/model_axerve_payment.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_axerve_payment_create.go b/api/model_axerve_payment_create.go index eeba3507..f4c45770 100644 --- a/api/model_axerve_payment_create.go +++ b/api/model_axerve_payment_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_axerve_payment_create_data.go b/api/model_axerve_payment_create_data.go index af5e3c99..a11b781e 100644 --- a/api/model_axerve_payment_create_data.go +++ b/api/model_axerve_payment_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_axerve_payment_data.go b/api/model_axerve_payment_data.go index 7685b3cc..979a2920 100644 --- a/api/model_axerve_payment_data.go +++ b/api/model_axerve_payment_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_axerve_payment_update.go b/api/model_axerve_payment_update.go index 10c1662a..e4a22118 100644 --- a/api/model_axerve_payment_update.go +++ b/api/model_axerve_payment_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_axerve_payment_update_data.go b/api/model_axerve_payment_update_data.go index e786fe4f..bc0cfad0 100644 --- a/api/model_axerve_payment_update_data.go +++ b/api/model_axerve_payment_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_billing_info_validation_rule.go b/api/model_billing_info_validation_rule.go index c5f9c6a7..ef4a05c6 100644 --- a/api/model_billing_info_validation_rule.go +++ b/api/model_billing_info_validation_rule.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_billing_info_validation_rule_create.go b/api/model_billing_info_validation_rule_create.go index 97b1ba59..69ce7480 100644 --- a/api/model_billing_info_validation_rule_create.go +++ b/api/model_billing_info_validation_rule_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_billing_info_validation_rule_create_data.go b/api/model_billing_info_validation_rule_create_data.go index 10be5577..03be9739 100644 --- a/api/model_billing_info_validation_rule_create_data.go +++ b/api/model_billing_info_validation_rule_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_billing_info_validation_rule_create_data_relationships.go b/api/model_billing_info_validation_rule_create_data_relationships.go index bd8c81b1..5413efd0 100644 --- a/api/model_billing_info_validation_rule_create_data_relationships.go +++ b/api/model_billing_info_validation_rule_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_billing_info_validation_rule_create_data_relationships_market.go b/api/model_billing_info_validation_rule_create_data_relationships_market.go index a0a198b3..186b5303 100644 --- a/api/model_billing_info_validation_rule_create_data_relationships_market.go +++ b/api/model_billing_info_validation_rule_create_data_relationships_market.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_billing_info_validation_rule_data.go b/api/model_billing_info_validation_rule_data.go index 174c9c82..9217b8ab 100644 --- a/api/model_billing_info_validation_rule_data.go +++ b/api/model_billing_info_validation_rule_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_billing_info_validation_rule_data_relationships.go b/api/model_billing_info_validation_rule_data_relationships.go index 609ede9c..d4f45023 100644 --- a/api/model_billing_info_validation_rule_data_relationships.go +++ b/api/model_billing_info_validation_rule_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,9 @@ var _ MappedNullable = &BillingInfoValidationRuleDataRelationships{} // BillingInfoValidationRuleDataRelationships struct for BillingInfoValidationRuleDataRelationships type BillingInfoValidationRuleDataRelationships struct { - Market *AvalaraAccountDataRelationshipsMarkets `json:"market,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Market *AvalaraAccountDataRelationshipsMarkets `json:"market,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewBillingInfoValidationRuleDataRelationships instantiates a new BillingInfoValidationRuleDataRelationships object @@ -74,9 +75,9 @@ func (o *BillingInfoValidationRuleDataRelationships) SetMarket(v AvalaraAccountD } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *BillingInfoValidationRuleDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *BillingInfoValidationRuleDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -84,7 +85,7 @@ func (o *BillingInfoValidationRuleDataRelationships) GetAttachments() AvalaraAcc // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BillingInfoValidationRuleDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *BillingInfoValidationRuleDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -100,11 +101,43 @@ func (o *BillingInfoValidationRuleDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *BillingInfoValidationRuleDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *BillingInfoValidationRuleDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *BillingInfoValidationRuleDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BillingInfoValidationRuleDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *BillingInfoValidationRuleDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *BillingInfoValidationRuleDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o BillingInfoValidationRuleDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o BillingInfoValidationRuleDataRelationships) ToMap() (map[string]interfac if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_billing_info_validation_rule_update.go b/api/model_billing_info_validation_rule_update.go index e2d5464f..224dbdba 100644 --- a/api/model_billing_info_validation_rule_update.go +++ b/api/model_billing_info_validation_rule_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_billing_info_validation_rule_update_data.go b/api/model_billing_info_validation_rule_update_data.go index eb9b1b2f..02b7a938 100644 --- a/api/model_billing_info_validation_rule_update_data.go +++ b/api/model_billing_info_validation_rule_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_billing_info_validation_rule_update_data_relationships.go b/api/model_billing_info_validation_rule_update_data_relationships.go index 19acfe87..2e277078 100644 --- a/api/model_billing_info_validation_rule_update_data_relationships.go +++ b/api/model_billing_info_validation_rule_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_bing_geocoder.go b/api/model_bing_geocoder.go index e153c124..329c52ba 100644 --- a/api/model_bing_geocoder.go +++ b/api/model_bing_geocoder.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_bing_geocoder_create.go b/api/model_bing_geocoder_create.go index 3320f365..1b2156e4 100644 --- a/api/model_bing_geocoder_create.go +++ b/api/model_bing_geocoder_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_bing_geocoder_create_data.go b/api/model_bing_geocoder_create_data.go index 4e42c467..02ef397a 100644 --- a/api/model_bing_geocoder_create_data.go +++ b/api/model_bing_geocoder_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_bing_geocoder_data.go b/api/model_bing_geocoder_data.go index b3324758..9d66a81f 100644 --- a/api/model_bing_geocoder_data.go +++ b/api/model_bing_geocoder_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_bing_geocoder_data_relationships.go b/api/model_bing_geocoder_data_relationships.go index 0f5ff88a..f24be5ed 100644 --- a/api/model_bing_geocoder_data_relationships.go +++ b/api/model_bing_geocoder_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,9 @@ var _ MappedNullable = &BingGeocoderDataRelationships{} // BingGeocoderDataRelationships struct for BingGeocoderDataRelationships type BingGeocoderDataRelationships struct { - Addresses *BingGeocoderDataRelationshipsAddresses `json:"addresses,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Markets *AvalaraAccountDataRelationshipsMarkets `json:"markets,omitempty"` + Addresses *BingGeocoderDataRelationshipsAddresses `json:"addresses,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` } // NewBingGeocoderDataRelationships instantiates a new BingGeocoderDataRelationships object @@ -41,6 +42,38 @@ func NewBingGeocoderDataRelationshipsWithDefaults() *BingGeocoderDataRelationshi return &this } +// GetMarkets returns the Markets field value if set, zero value otherwise. +func (o *BingGeocoderDataRelationships) GetMarkets() AvalaraAccountDataRelationshipsMarkets { + if o == nil || IsNil(o.Markets) { + var ret AvalaraAccountDataRelationshipsMarkets + return ret + } + return *o.Markets +} + +// GetMarketsOk returns a tuple with the Markets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BingGeocoderDataRelationships) GetMarketsOk() (*AvalaraAccountDataRelationshipsMarkets, bool) { + if o == nil || IsNil(o.Markets) { + return nil, false + } + return o.Markets, true +} + +// HasMarkets returns a boolean if a field has been set. +func (o *BingGeocoderDataRelationships) HasMarkets() bool { + if o != nil && !IsNil(o.Markets) { + return true + } + + return false +} + +// SetMarkets gets a reference to the given AvalaraAccountDataRelationshipsMarkets and assigns it to the Markets field. +func (o *BingGeocoderDataRelationships) SetMarkets(v AvalaraAccountDataRelationshipsMarkets) { + o.Markets = &v +} + // GetAddresses returns the Addresses field value if set, zero value otherwise. func (o *BingGeocoderDataRelationships) GetAddresses() BingGeocoderDataRelationshipsAddresses { if o == nil || IsNil(o.Addresses) { @@ -74,9 +107,9 @@ func (o *BingGeocoderDataRelationships) SetAddresses(v BingGeocoderDataRelations } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *BingGeocoderDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *BingGeocoderDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -84,7 +117,7 @@ func (o *BingGeocoderDataRelationships) GetAttachments() AvalaraAccountDataRelat // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BingGeocoderDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *BingGeocoderDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -100,8 +133,8 @@ func (o *BingGeocoderDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *BingGeocoderDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *BingGeocoderDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } @@ -115,6 +148,9 @@ func (o BingGeocoderDataRelationships) MarshalJSON() ([]byte, error) { func (o BingGeocoderDataRelationships) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Markets) { + toSerialize["markets"] = o.Markets + } if !IsNil(o.Addresses) { toSerialize["addresses"] = o.Addresses } diff --git a/api/model_bing_geocoder_data_relationships_addresses.go b/api/model_bing_geocoder_data_relationships_addresses.go index 85ea13f5..b56120d8 100644 --- a/api/model_bing_geocoder_data_relationships_addresses.go +++ b/api/model_bing_geocoder_data_relationships_addresses.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_bing_geocoder_data_relationships_addresses_data.go b/api/model_bing_geocoder_data_relationships_addresses_data.go index 158d3fca..b3e876ce 100644 --- a/api/model_bing_geocoder_data_relationships_addresses_data.go +++ b/api/model_bing_geocoder_data_relationships_addresses_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_bing_geocoder_update.go b/api/model_bing_geocoder_update.go index 97533c52..0914a4f2 100644 --- a/api/model_bing_geocoder_update.go +++ b/api/model_bing_geocoder_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_bing_geocoder_update_data.go b/api/model_bing_geocoder_update_data.go index 7b60fcef..e1f2ddab 100644 --- a/api/model_bing_geocoder_update_data.go +++ b/api/model_bing_geocoder_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_braintree_gateway.go b/api/model_braintree_gateway.go index 5e5d6665..78bfe034 100644 --- a/api/model_braintree_gateway.go +++ b/api/model_braintree_gateway.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_braintree_gateway_create.go b/api/model_braintree_gateway_create.go index 4ddbefb4..b50ace24 100644 --- a/api/model_braintree_gateway_create.go +++ b/api/model_braintree_gateway_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_braintree_gateway_create_data.go b/api/model_braintree_gateway_create_data.go index c8a60026..9e1497f7 100644 --- a/api/model_braintree_gateway_create_data.go +++ b/api/model_braintree_gateway_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_braintree_gateway_create_data_relationships.go b/api/model_braintree_gateway_create_data_relationships.go index 5064c387..479a1cdb 100644 --- a/api/model_braintree_gateway_create_data_relationships.go +++ b/api/model_braintree_gateway_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_braintree_gateway_create_data_relationships_braintree_payments.go b/api/model_braintree_gateway_create_data_relationships_braintree_payments.go index 18970dea..37387d3b 100644 --- a/api/model_braintree_gateway_create_data_relationships_braintree_payments.go +++ b/api/model_braintree_gateway_create_data_relationships_braintree_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_braintree_gateway_data.go b/api/model_braintree_gateway_data.go index e2654129..26257a50 100644 --- a/api/model_braintree_gateway_data.go +++ b/api/model_braintree_gateway_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_braintree_gateway_data_relationships.go b/api/model_braintree_gateway_data_relationships.go index 32a855cd..5a900f68 100644 --- a/api/model_braintree_gateway_data_relationships.go +++ b/api/model_braintree_gateway_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &BraintreeGatewayDataRelationships{} // BraintreeGatewayDataRelationships struct for BraintreeGatewayDataRelationships type BraintreeGatewayDataRelationships struct { PaymentMethods *AdyenGatewayDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` BraintreePayments *BraintreeGatewayDataRelationshipsBraintreePayments `json:"braintree_payments,omitempty"` } @@ -73,6 +74,38 @@ func (o *BraintreeGatewayDataRelationships) SetPaymentMethods(v AdyenGatewayData o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *BraintreeGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BraintreeGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *BraintreeGatewayDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *BraintreeGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + // GetBraintreePayments returns the BraintreePayments field value if set, zero value otherwise. func (o *BraintreeGatewayDataRelationships) GetBraintreePayments() BraintreeGatewayDataRelationshipsBraintreePayments { if o == nil || IsNil(o.BraintreePayments) { @@ -118,6 +151,9 @@ func (o BraintreeGatewayDataRelationships) ToMap() (map[string]interface{}, erro if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.BraintreePayments) { toSerialize["braintree_payments"] = o.BraintreePayments } diff --git a/api/model_braintree_gateway_data_relationships_braintree_payments.go b/api/model_braintree_gateway_data_relationships_braintree_payments.go index ba27fdef..b6421903 100644 --- a/api/model_braintree_gateway_data_relationships_braintree_payments.go +++ b/api/model_braintree_gateway_data_relationships_braintree_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_braintree_gateway_data_relationships_braintree_payments_data.go b/api/model_braintree_gateway_data_relationships_braintree_payments_data.go index 97ccc630..4a80d742 100644 --- a/api/model_braintree_gateway_data_relationships_braintree_payments_data.go +++ b/api/model_braintree_gateway_data_relationships_braintree_payments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_braintree_gateway_update.go b/api/model_braintree_gateway_update.go index 0af4aa3c..28cf3f68 100644 --- a/api/model_braintree_gateway_update.go +++ b/api/model_braintree_gateway_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_braintree_gateway_update_data.go b/api/model_braintree_gateway_update_data.go index 3b161c2c..c23b90f8 100644 --- a/api/model_braintree_gateway_update_data.go +++ b/api/model_braintree_gateway_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_braintree_payment.go b/api/model_braintree_payment.go index 0826f825..f82da7ba 100644 --- a/api/model_braintree_payment.go +++ b/api/model_braintree_payment.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_braintree_payment_create.go b/api/model_braintree_payment_create.go index a9b112bd..b756f032 100644 --- a/api/model_braintree_payment_create.go +++ b/api/model_braintree_payment_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_braintree_payment_create_data.go b/api/model_braintree_payment_create_data.go index dbf018b9..9ab72aec 100644 --- a/api/model_braintree_payment_create_data.go +++ b/api/model_braintree_payment_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_braintree_payment_data.go b/api/model_braintree_payment_data.go index 3014ed65..6ff43fd1 100644 --- a/api/model_braintree_payment_data.go +++ b/api/model_braintree_payment_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_braintree_payment_update.go b/api/model_braintree_payment_update.go index a12dcb4b..3964cc7c 100644 --- a/api/model_braintree_payment_update.go +++ b/api/model_braintree_payment_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_braintree_payment_update_data.go b/api/model_braintree_payment_update_data.go index ca20e42a..7bcb2a27 100644 --- a/api/model_braintree_payment_update_data.go +++ b/api/model_braintree_payment_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_bundle.go b/api/model_bundle.go index 37a167e3..934e2683 100644 --- a/api/model_bundle.go +++ b/api/model_bundle.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_bundle_create.go b/api/model_bundle_create.go index 031ba043..d363c009 100644 --- a/api/model_bundle_create.go +++ b/api/model_bundle_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_bundle_create_data.go b/api/model_bundle_create_data.go index 2fe23b38..c1a07c57 100644 --- a/api/model_bundle_create_data.go +++ b/api/model_bundle_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_bundle_create_data_relationships.go b/api/model_bundle_create_data_relationships.go index 38f81789..c4620354 100644 --- a/api/model_bundle_create_data_relationships.go +++ b/api/model_bundle_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,6 +22,7 @@ var _ MappedNullable = &BundleCreateDataRelationships{} type BundleCreateDataRelationships struct { Market *BillingInfoValidationRuleCreateDataRelationshipsMarket `json:"market,omitempty"` SkuList BundleCreateDataRelationshipsSkuList `json:"sku_list"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` } // NewBundleCreateDataRelationships instantiates a new BundleCreateDataRelationships object @@ -98,6 +99,38 @@ func (o *BundleCreateDataRelationships) SetSkuList(v BundleCreateDataRelationshi o.SkuList = v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *BundleCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BundleCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *BundleCreateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *BundleCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + func (o BundleCreateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -112,6 +145,9 @@ func (o BundleCreateDataRelationships) ToMap() (map[string]interface{}, error) { toSerialize["market"] = o.Market } toSerialize["sku_list"] = o.SkuList + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_bundle_create_data_relationships_sku_list.go b/api/model_bundle_create_data_relationships_sku_list.go index 0fd01f79..9d5ece6a 100644 --- a/api/model_bundle_create_data_relationships_sku_list.go +++ b/api/model_bundle_create_data_relationships_sku_list.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_bundle_data.go b/api/model_bundle_data.go index 2db289e1..dbf87691 100644 --- a/api/model_bundle_data.go +++ b/api/model_bundle_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_bundle_data_relationships.go b/api/model_bundle_data_relationships.go index 723227fd..727bdd90 100644 --- a/api/model_bundle_data_relationships.go +++ b/api/model_bundle_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,10 +20,13 @@ var _ MappedNullable = &BundleDataRelationships{} // BundleDataRelationships struct for BundleDataRelationships type BundleDataRelationships struct { - Market *AvalaraAccountDataRelationshipsMarkets `json:"market,omitempty"` - SkuList *BundleDataRelationshipsSkuList `json:"sku_list,omitempty"` - Skus *BundleDataRelationshipsSkus `json:"skus,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Market *AvalaraAccountDataRelationshipsMarkets `json:"market,omitempty"` + SkuList *BundleDataRelationshipsSkuList `json:"sku_list,omitempty"` + Skus *BundleDataRelationshipsSkus `json:"skus,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Tags *AddressDataRelationshipsTags `json:"tags,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewBundleDataRelationships instantiates a new BundleDataRelationships object @@ -140,9 +143,9 @@ func (o *BundleDataRelationships) SetSkus(v BundleDataRelationshipsSkus) { } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *BundleDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *BundleDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -150,7 +153,7 @@ func (o *BundleDataRelationships) GetAttachments() AvalaraAccountDataRelationshi // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *BundleDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *BundleDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -166,11 +169,107 @@ func (o *BundleDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *BundleDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *BundleDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *BundleDataRelationships) GetEvents() AddressDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret AddressDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BundleDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *BundleDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *BundleDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *BundleDataRelationships) GetTags() AddressDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BundleDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *BundleDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressDataRelationshipsTags and assigns it to the Tags field. +func (o *BundleDataRelationships) SetTags(v AddressDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *BundleDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BundleDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *BundleDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *BundleDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o BundleDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -193,6 +292,15 @@ func (o BundleDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_bundle_data_relationships_sku_list.go b/api/model_bundle_data_relationships_sku_list.go index 47e84b4b..9fb44020 100644 --- a/api/model_bundle_data_relationships_sku_list.go +++ b/api/model_bundle_data_relationships_sku_list.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_bundle_data_relationships_sku_list_data.go b/api/model_bundle_data_relationships_sku_list_data.go index 2292a7bf..5180f5e5 100644 --- a/api/model_bundle_data_relationships_sku_list_data.go +++ b/api/model_bundle_data_relationships_sku_list_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_bundle_data_relationships_skus.go b/api/model_bundle_data_relationships_skus.go index 00241b26..2dc3060a 100644 --- a/api/model_bundle_data_relationships_skus.go +++ b/api/model_bundle_data_relationships_skus.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_bundle_data_relationships_skus_data.go b/api/model_bundle_data_relationships_skus_data.go index 85fae784..5c4a3fb7 100644 --- a/api/model_bundle_data_relationships_skus_data.go +++ b/api/model_bundle_data_relationships_skus_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_bundle_update.go b/api/model_bundle_update.go index 1ca70bd6..cba0d85f 100644 --- a/api/model_bundle_update.go +++ b/api/model_bundle_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_bundle_update_data.go b/api/model_bundle_update_data.go index 35851113..a3445272 100644 --- a/api/model_bundle_update_data.go +++ b/api/model_bundle_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -25,7 +25,7 @@ type BundleUpdateData struct { // The resource's id Id interface{} `json:"id"` Attributes PATCHBundlesBundleId200ResponseDataAttributes `json:"attributes"` - Relationships interface{} `json:"relationships,omitempty"` + Relationships *BundleUpdateDataRelationships `json:"relationships,omitempty"` } // NewBundleUpdateData instantiates a new BundleUpdateData object @@ -124,37 +124,36 @@ func (o *BundleUpdateData) SetAttributes(v PATCHBundlesBundleId200ResponseDataAt o.Attributes = v } -// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *BundleUpdateData) GetRelationships() interface{} { - if o == nil { - var ret interface{} +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *BundleUpdateData) GetRelationships() BundleUpdateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret BundleUpdateDataRelationships return ret } - return o.Relationships + return *o.Relationships } // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *BundleUpdateData) GetRelationshipsOk() (*interface{}, bool) { +func (o *BundleUpdateData) GetRelationshipsOk() (*BundleUpdateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } - return &o.Relationships, true + return o.Relationships, true } // HasRelationships returns a boolean if a field has been set. func (o *BundleUpdateData) HasRelationships() bool { - if o != nil && IsNil(o.Relationships) { + if o != nil && !IsNil(o.Relationships) { return true } return false } -// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. -func (o *BundleUpdateData) SetRelationships(v interface{}) { - o.Relationships = v +// SetRelationships gets a reference to the given BundleUpdateDataRelationships and assigns it to the Relationships field. +func (o *BundleUpdateData) SetRelationships(v BundleUpdateDataRelationships) { + o.Relationships = &v } func (o BundleUpdateData) MarshalJSON() ([]byte, error) { @@ -174,7 +173,7 @@ func (o BundleUpdateData) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id } toSerialize["attributes"] = o.Attributes - if o.Relationships != nil { + if !IsNil(o.Relationships) { toSerialize["relationships"] = o.Relationships } return toSerialize, nil diff --git a/api/model_bundle_update_data_relationships.go b/api/model_bundle_update_data_relationships.go new file mode 100644 index 00000000..da7190c4 --- /dev/null +++ b/api/model_bundle_update_data_relationships.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BundleUpdateDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BundleUpdateDataRelationships{} + +// BundleUpdateDataRelationships struct for BundleUpdateDataRelationships +type BundleUpdateDataRelationships struct { + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` +} + +// NewBundleUpdateDataRelationships instantiates a new BundleUpdateDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBundleUpdateDataRelationships() *BundleUpdateDataRelationships { + this := BundleUpdateDataRelationships{} + return &this +} + +// NewBundleUpdateDataRelationshipsWithDefaults instantiates a new BundleUpdateDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBundleUpdateDataRelationshipsWithDefaults() *BundleUpdateDataRelationships { + this := BundleUpdateDataRelationships{} + return &this +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *BundleUpdateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BundleUpdateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *BundleUpdateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *BundleUpdateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + +func (o BundleUpdateDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BundleUpdateDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} + +type NullableBundleUpdateDataRelationships struct { + value *BundleUpdateDataRelationships + isSet bool +} + +func (v NullableBundleUpdateDataRelationships) Get() *BundleUpdateDataRelationships { + return v.value +} + +func (v *NullableBundleUpdateDataRelationships) Set(val *BundleUpdateDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableBundleUpdateDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableBundleUpdateDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBundleUpdateDataRelationships(val *BundleUpdateDataRelationships) *NullableBundleUpdateDataRelationships { + return &NullableBundleUpdateDataRelationships{value: val, isSet: true} +} + +func (v NullableBundleUpdateDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBundleUpdateDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_buy_x_pay_y_promotion.go b/api/model_buy_x_pay_y_promotion.go new file mode 100644 index 00000000..9d8dab33 --- /dev/null +++ b/api/model_buy_x_pay_y_promotion.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotion type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotion{} + +// BuyXPayYPromotion struct for BuyXPayYPromotion +type BuyXPayYPromotion struct { + Data *BuyXPayYPromotionData `json:"data,omitempty"` +} + +// NewBuyXPayYPromotion instantiates a new BuyXPayYPromotion object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotion() *BuyXPayYPromotion { + this := BuyXPayYPromotion{} + return &this +} + +// NewBuyXPayYPromotionWithDefaults instantiates a new BuyXPayYPromotion object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionWithDefaults() *BuyXPayYPromotion { + this := BuyXPayYPromotion{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *BuyXPayYPromotion) GetData() BuyXPayYPromotionData { + if o == nil || IsNil(o.Data) { + var ret BuyXPayYPromotionData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotion) GetDataOk() (*BuyXPayYPromotionData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *BuyXPayYPromotion) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given BuyXPayYPromotionData and assigns it to the Data field. +func (o *BuyXPayYPromotion) SetData(v BuyXPayYPromotionData) { + o.Data = &v +} + +func (o BuyXPayYPromotion) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotion) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableBuyXPayYPromotion struct { + value *BuyXPayYPromotion + isSet bool +} + +func (v NullableBuyXPayYPromotion) Get() *BuyXPayYPromotion { + return v.value +} + +func (v *NullableBuyXPayYPromotion) Set(val *BuyXPayYPromotion) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotion) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotion) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotion(val *BuyXPayYPromotion) *NullableBuyXPayYPromotion { + return &NullableBuyXPayYPromotion{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotion) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotion) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_buy_x_pay_y_promotion_create.go b/api/model_buy_x_pay_y_promotion_create.go new file mode 100644 index 00000000..4d3a6ba8 --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_create.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionCreate{} + +// BuyXPayYPromotionCreate struct for BuyXPayYPromotionCreate +type BuyXPayYPromotionCreate struct { + Data BuyXPayYPromotionCreateData `json:"data"` +} + +// NewBuyXPayYPromotionCreate instantiates a new BuyXPayYPromotionCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionCreate(data BuyXPayYPromotionCreateData) *BuyXPayYPromotionCreate { + this := BuyXPayYPromotionCreate{} + this.Data = data + return &this +} + +// NewBuyXPayYPromotionCreateWithDefaults instantiates a new BuyXPayYPromotionCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionCreateWithDefaults() *BuyXPayYPromotionCreate { + this := BuyXPayYPromotionCreate{} + return &this +} + +// GetData returns the Data field value +func (o *BuyXPayYPromotionCreate) GetData() BuyXPayYPromotionCreateData { + if o == nil { + var ret BuyXPayYPromotionCreateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionCreate) GetDataOk() (*BuyXPayYPromotionCreateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *BuyXPayYPromotionCreate) SetData(v BuyXPayYPromotionCreateData) { + o.Data = v +} + +func (o BuyXPayYPromotionCreate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableBuyXPayYPromotionCreate struct { + value *BuyXPayYPromotionCreate + isSet bool +} + +func (v NullableBuyXPayYPromotionCreate) Get() *BuyXPayYPromotionCreate { + return v.value +} + +func (v *NullableBuyXPayYPromotionCreate) Set(val *BuyXPayYPromotionCreate) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionCreate(val *BuyXPayYPromotionCreate) *NullableBuyXPayYPromotionCreate { + return &NullableBuyXPayYPromotionCreate{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_buy_x_pay_y_promotion_create_data.go b/api/model_buy_x_pay_y_promotion_create_data.go new file mode 100644 index 00000000..c8092a0e --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_create_data.go @@ -0,0 +1,184 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionCreateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionCreateData{} + +// BuyXPayYPromotionCreateData struct for BuyXPayYPromotionCreateData +type BuyXPayYPromotionCreateData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes POSTBuyXPayYPromotions201ResponseDataAttributes `json:"attributes"` + Relationships *BuyXPayYPromotionCreateDataRelationships `json:"relationships,omitempty"` +} + +// NewBuyXPayYPromotionCreateData instantiates a new BuyXPayYPromotionCreateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionCreateData(type_ interface{}, attributes POSTBuyXPayYPromotions201ResponseDataAttributes) *BuyXPayYPromotionCreateData { + this := BuyXPayYPromotionCreateData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewBuyXPayYPromotionCreateDataWithDefaults instantiates a new BuyXPayYPromotionCreateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionCreateDataWithDefaults() *BuyXPayYPromotionCreateData { + this := BuyXPayYPromotionCreateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *BuyXPayYPromotionCreateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BuyXPayYPromotionCreateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *BuyXPayYPromotionCreateData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *BuyXPayYPromotionCreateData) GetAttributes() POSTBuyXPayYPromotions201ResponseDataAttributes { + if o == nil { + var ret POSTBuyXPayYPromotions201ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionCreateData) GetAttributesOk() (*POSTBuyXPayYPromotions201ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *BuyXPayYPromotionCreateData) SetAttributes(v POSTBuyXPayYPromotions201ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *BuyXPayYPromotionCreateData) GetRelationships() BuyXPayYPromotionCreateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret BuyXPayYPromotionCreateDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionCreateData) GetRelationshipsOk() (*BuyXPayYPromotionCreateDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *BuyXPayYPromotionCreateData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given BuyXPayYPromotionCreateDataRelationships and assigns it to the Relationships field. +func (o *BuyXPayYPromotionCreateData) SetRelationships(v BuyXPayYPromotionCreateDataRelationships) { + o.Relationships = &v +} + +func (o BuyXPayYPromotionCreateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionCreateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableBuyXPayYPromotionCreateData struct { + value *BuyXPayYPromotionCreateData + isSet bool +} + +func (v NullableBuyXPayYPromotionCreateData) Get() *BuyXPayYPromotionCreateData { + return v.value +} + +func (v *NullableBuyXPayYPromotionCreateData) Set(val *BuyXPayYPromotionCreateData) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionCreateData) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionCreateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionCreateData(val *BuyXPayYPromotionCreateData) *NullableBuyXPayYPromotionCreateData { + return &NullableBuyXPayYPromotionCreateData{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionCreateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionCreateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_buy_x_pay_y_promotion_create_data_relationships.go b/api/model_buy_x_pay_y_promotion_create_data_relationships.go new file mode 100644 index 00000000..dfb753db --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_create_data_relationships.go @@ -0,0 +1,332 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionCreateDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionCreateDataRelationships{} + +// BuyXPayYPromotionCreateDataRelationships struct for BuyXPayYPromotionCreateDataRelationships +type BuyXPayYPromotionCreateDataRelationships struct { + Market *BillingInfoValidationRuleCreateDataRelationshipsMarket `json:"market,omitempty"` + OrderAmountPromotionRule *BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule `json:"order_amount_promotion_rule,omitempty"` + SkuListPromotionRule *BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule `json:"sku_list_promotion_rule,omitempty"` + CouponCodesPromotionRule *BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule `json:"coupon_codes_promotion_rule,omitempty"` + CustomPromotionRule *BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule `json:"custom_promotion_rule,omitempty"` + SkuList BundleCreateDataRelationshipsSkuList `json:"sku_list"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` +} + +// NewBuyXPayYPromotionCreateDataRelationships instantiates a new BuyXPayYPromotionCreateDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionCreateDataRelationships(skuList BundleCreateDataRelationshipsSkuList) *BuyXPayYPromotionCreateDataRelationships { + this := BuyXPayYPromotionCreateDataRelationships{} + this.SkuList = skuList + return &this +} + +// NewBuyXPayYPromotionCreateDataRelationshipsWithDefaults instantiates a new BuyXPayYPromotionCreateDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionCreateDataRelationshipsWithDefaults() *BuyXPayYPromotionCreateDataRelationships { + this := BuyXPayYPromotionCreateDataRelationships{} + return &this +} + +// GetMarket returns the Market field value if set, zero value otherwise. +func (o *BuyXPayYPromotionCreateDataRelationships) GetMarket() BillingInfoValidationRuleCreateDataRelationshipsMarket { + if o == nil || IsNil(o.Market) { + var ret BillingInfoValidationRuleCreateDataRelationshipsMarket + return ret + } + return *o.Market +} + +// GetMarketOk returns a tuple with the Market field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionCreateDataRelationships) GetMarketOk() (*BillingInfoValidationRuleCreateDataRelationshipsMarket, bool) { + if o == nil || IsNil(o.Market) { + return nil, false + } + return o.Market, true +} + +// HasMarket returns a boolean if a field has been set. +func (o *BuyXPayYPromotionCreateDataRelationships) HasMarket() bool { + if o != nil && !IsNil(o.Market) { + return true + } + + return false +} + +// SetMarket gets a reference to the given BillingInfoValidationRuleCreateDataRelationshipsMarket and assigns it to the Market field. +func (o *BuyXPayYPromotionCreateDataRelationships) SetMarket(v BillingInfoValidationRuleCreateDataRelationshipsMarket) { + o.Market = &v +} + +// GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field value if set, zero value otherwise. +func (o *BuyXPayYPromotionCreateDataRelationships) GetOrderAmountPromotionRule() BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule { + if o == nil || IsNil(o.OrderAmountPromotionRule) { + var ret BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule + return ret + } + return *o.OrderAmountPromotionRule +} + +// GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionCreateDataRelationships) GetOrderAmountPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule, bool) { + if o == nil || IsNil(o.OrderAmountPromotionRule) { + return nil, false + } + return o.OrderAmountPromotionRule, true +} + +// HasOrderAmountPromotionRule returns a boolean if a field has been set. +func (o *BuyXPayYPromotionCreateDataRelationships) HasOrderAmountPromotionRule() bool { + if o != nil && !IsNil(o.OrderAmountPromotionRule) { + return true + } + + return false +} + +// SetOrderAmountPromotionRule gets a reference to the given BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule and assigns it to the OrderAmountPromotionRule field. +func (o *BuyXPayYPromotionCreateDataRelationships) SetOrderAmountPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule) { + o.OrderAmountPromotionRule = &v +} + +// GetSkuListPromotionRule returns the SkuListPromotionRule field value if set, zero value otherwise. +func (o *BuyXPayYPromotionCreateDataRelationships) GetSkuListPromotionRule() BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule { + if o == nil || IsNil(o.SkuListPromotionRule) { + var ret BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule + return ret + } + return *o.SkuListPromotionRule +} + +// GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionCreateDataRelationships) GetSkuListPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule, bool) { + if o == nil || IsNil(o.SkuListPromotionRule) { + return nil, false + } + return o.SkuListPromotionRule, true +} + +// HasSkuListPromotionRule returns a boolean if a field has been set. +func (o *BuyXPayYPromotionCreateDataRelationships) HasSkuListPromotionRule() bool { + if o != nil && !IsNil(o.SkuListPromotionRule) { + return true + } + + return false +} + +// SetSkuListPromotionRule gets a reference to the given BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule and assigns it to the SkuListPromotionRule field. +func (o *BuyXPayYPromotionCreateDataRelationships) SetSkuListPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule) { + o.SkuListPromotionRule = &v +} + +// GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field value if set, zero value otherwise. +func (o *BuyXPayYPromotionCreateDataRelationships) GetCouponCodesPromotionRule() BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule { + if o == nil || IsNil(o.CouponCodesPromotionRule) { + var ret BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule + return ret + } + return *o.CouponCodesPromotionRule +} + +// GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionCreateDataRelationships) GetCouponCodesPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule, bool) { + if o == nil || IsNil(o.CouponCodesPromotionRule) { + return nil, false + } + return o.CouponCodesPromotionRule, true +} + +// HasCouponCodesPromotionRule returns a boolean if a field has been set. +func (o *BuyXPayYPromotionCreateDataRelationships) HasCouponCodesPromotionRule() bool { + if o != nil && !IsNil(o.CouponCodesPromotionRule) { + return true + } + + return false +} + +// SetCouponCodesPromotionRule gets a reference to the given BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule and assigns it to the CouponCodesPromotionRule field. +func (o *BuyXPayYPromotionCreateDataRelationships) SetCouponCodesPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) { + o.CouponCodesPromotionRule = &v +} + +// GetCustomPromotionRule returns the CustomPromotionRule field value if set, zero value otherwise. +func (o *BuyXPayYPromotionCreateDataRelationships) GetCustomPromotionRule() BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule { + if o == nil || IsNil(o.CustomPromotionRule) { + var ret BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule + return ret + } + return *o.CustomPromotionRule +} + +// GetCustomPromotionRuleOk returns a tuple with the CustomPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionCreateDataRelationships) GetCustomPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule, bool) { + if o == nil || IsNil(o.CustomPromotionRule) { + return nil, false + } + return o.CustomPromotionRule, true +} + +// HasCustomPromotionRule returns a boolean if a field has been set. +func (o *BuyXPayYPromotionCreateDataRelationships) HasCustomPromotionRule() bool { + if o != nil && !IsNil(o.CustomPromotionRule) { + return true + } + + return false +} + +// SetCustomPromotionRule gets a reference to the given BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule and assigns it to the CustomPromotionRule field. +func (o *BuyXPayYPromotionCreateDataRelationships) SetCustomPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule) { + o.CustomPromotionRule = &v +} + +// GetSkuList returns the SkuList field value +func (o *BuyXPayYPromotionCreateDataRelationships) GetSkuList() BundleCreateDataRelationshipsSkuList { + if o == nil { + var ret BundleCreateDataRelationshipsSkuList + return ret + } + + return o.SkuList +} + +// GetSkuListOk returns a tuple with the SkuList field value +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionCreateDataRelationships) GetSkuListOk() (*BundleCreateDataRelationshipsSkuList, bool) { + if o == nil { + return nil, false + } + return &o.SkuList, true +} + +// SetSkuList sets field value +func (o *BuyXPayYPromotionCreateDataRelationships) SetSkuList(v BundleCreateDataRelationshipsSkuList) { + o.SkuList = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *BuyXPayYPromotionCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *BuyXPayYPromotionCreateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *BuyXPayYPromotionCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + +func (o BuyXPayYPromotionCreateDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionCreateDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Market) { + toSerialize["market"] = o.Market + } + if !IsNil(o.OrderAmountPromotionRule) { + toSerialize["order_amount_promotion_rule"] = o.OrderAmountPromotionRule + } + if !IsNil(o.SkuListPromotionRule) { + toSerialize["sku_list_promotion_rule"] = o.SkuListPromotionRule + } + if !IsNil(o.CouponCodesPromotionRule) { + toSerialize["coupon_codes_promotion_rule"] = o.CouponCodesPromotionRule + } + if !IsNil(o.CustomPromotionRule) { + toSerialize["custom_promotion_rule"] = o.CustomPromotionRule + } + toSerialize["sku_list"] = o.SkuList + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} + +type NullableBuyXPayYPromotionCreateDataRelationships struct { + value *BuyXPayYPromotionCreateDataRelationships + isSet bool +} + +func (v NullableBuyXPayYPromotionCreateDataRelationships) Get() *BuyXPayYPromotionCreateDataRelationships { + return v.value +} + +func (v *NullableBuyXPayYPromotionCreateDataRelationships) Set(val *BuyXPayYPromotionCreateDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionCreateDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionCreateDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionCreateDataRelationships(val *BuyXPayYPromotionCreateDataRelationships) *NullableBuyXPayYPromotionCreateDataRelationships { + return &NullableBuyXPayYPromotionCreateDataRelationships{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionCreateDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionCreateDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_buy_x_pay_y_promotion_create_data_relationships_coupon_codes_promotion_rule.go b/api/model_buy_x_pay_y_promotion_create_data_relationships_coupon_codes_promotion_rule.go new file mode 100644 index 00000000..fda7ac1d --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_create_data_relationships_coupon_codes_promotion_rule.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule{} + +// BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule struct for BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule +type BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule struct { + Data BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData `json:"data"` +} + +// NewBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule instantiates a new BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule(data BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) *BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule { + this := BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule{} + this.Data = data + return &this +} + +// NewBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRuleWithDefaults instantiates a new BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRuleWithDefaults() *BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule { + this := BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule{} + return &this +} + +// GetData returns the Data field value +func (o *BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) GetData() BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData { + if o == nil { + var ret BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) GetDataOk() (*BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) SetData(v BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) { + o.Data = v +} + +func (o BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule struct { + value *BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule + isSet bool +} + +func (v NullableBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) Get() *BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule { + return v.value +} + +func (v *NullableBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) Set(val *BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule(val *BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) *NullableBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule { + return &NullableBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_buy_x_pay_y_promotion_create_data_relationships_custom_promotion_rule.go b/api/model_buy_x_pay_y_promotion_create_data_relationships_custom_promotion_rule.go new file mode 100644 index 00000000..5e17d449 --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_create_data_relationships_custom_promotion_rule.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule{} + +// BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule struct for BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule +type BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule struct { + Data BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData `json:"data"` +} + +// NewBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule instantiates a new BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule(data BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) *BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule { + this := BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule{} + this.Data = data + return &this +} + +// NewBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRuleWithDefaults instantiates a new BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRuleWithDefaults() *BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule { + this := BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule{} + return &this +} + +// GetData returns the Data field value +func (o *BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule) GetData() BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData { + if o == nil { + var ret BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule) GetDataOk() (*BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule) SetData(v BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) { + o.Data = v +} + +func (o BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule struct { + value *BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule + isSet bool +} + +func (v NullableBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule) Get() *BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule { + return v.value +} + +func (v *NullableBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule) Set(val *BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule(val *BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule) *NullableBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule { + return &NullableBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_buy_x_pay_y_promotion_create_data_relationships_order_amount_promotion_rule.go b/api/model_buy_x_pay_y_promotion_create_data_relationships_order_amount_promotion_rule.go new file mode 100644 index 00000000..d2225bcf --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_create_data_relationships_order_amount_promotion_rule.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule{} + +// BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule struct for BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule +type BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule struct { + Data BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData `json:"data"` +} + +// NewBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule instantiates a new BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule(data BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) *BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule { + this := BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule{} + this.Data = data + return &this +} + +// NewBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRuleWithDefaults instantiates a new BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRuleWithDefaults() *BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule { + this := BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule{} + return &this +} + +// GetData returns the Data field value +func (o *BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule) GetData() BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData { + if o == nil { + var ret BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule) GetDataOk() (*BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule) SetData(v BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) { + o.Data = v +} + +func (o BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule struct { + value *BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule + isSet bool +} + +func (v NullableBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule) Get() *BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule { + return v.value +} + +func (v *NullableBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule) Set(val *BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule(val *BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule) *NullableBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule { + return &NullableBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_buy_x_pay_y_promotion_create_data_relationships_sku_list_promotion_rule.go b/api/model_buy_x_pay_y_promotion_create_data_relationships_sku_list_promotion_rule.go new file mode 100644 index 00000000..08574986 --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_create_data_relationships_sku_list_promotion_rule.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule{} + +// BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule struct for BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule +type BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule struct { + Data BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData `json:"data"` +} + +// NewBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule instantiates a new BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule(data BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) *BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule { + this := BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule{} + this.Data = data + return &this +} + +// NewBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRuleWithDefaults instantiates a new BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRuleWithDefaults() *BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule { + this := BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule{} + return &this +} + +// GetData returns the Data field value +func (o *BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule) GetData() BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData { + if o == nil { + var ret BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule) GetDataOk() (*BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule) SetData(v BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) { + o.Data = v +} + +func (o BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule struct { + value *BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule + isSet bool +} + +func (v NullableBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule) Get() *BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule { + return v.value +} + +func (v *NullableBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule) Set(val *BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule(val *BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule) *NullableBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule { + return &NullableBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_buy_x_pay_y_promotion_data.go b/api/model_buy_x_pay_y_promotion_data.go new file mode 100644 index 00000000..55eeaa51 --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_data.go @@ -0,0 +1,184 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionData{} + +// BuyXPayYPromotionData struct for BuyXPayYPromotionData +type BuyXPayYPromotionData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes `json:"attributes"` + Relationships *BuyXPayYPromotionDataRelationships `json:"relationships,omitempty"` +} + +// NewBuyXPayYPromotionData instantiates a new BuyXPayYPromotionData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionData(type_ interface{}, attributes GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) *BuyXPayYPromotionData { + this := BuyXPayYPromotionData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewBuyXPayYPromotionDataWithDefaults instantiates a new BuyXPayYPromotionData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionDataWithDefaults() *BuyXPayYPromotionData { + this := BuyXPayYPromotionData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *BuyXPayYPromotionData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BuyXPayYPromotionData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *BuyXPayYPromotionData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *BuyXPayYPromotionData) GetAttributes() GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes { + if o == nil { + var ret GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionData) GetAttributesOk() (*GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *BuyXPayYPromotionData) SetAttributes(v GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *BuyXPayYPromotionData) GetRelationships() BuyXPayYPromotionDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret BuyXPayYPromotionDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionData) GetRelationshipsOk() (*BuyXPayYPromotionDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *BuyXPayYPromotionData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given BuyXPayYPromotionDataRelationships and assigns it to the Relationships field. +func (o *BuyXPayYPromotionData) SetRelationships(v BuyXPayYPromotionDataRelationships) { + o.Relationships = &v +} + +func (o BuyXPayYPromotionData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableBuyXPayYPromotionData struct { + value *BuyXPayYPromotionData + isSet bool +} + +func (v NullableBuyXPayYPromotionData) Get() *BuyXPayYPromotionData { + return v.value +} + +func (v *NullableBuyXPayYPromotionData) Set(val *BuyXPayYPromotionData) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionData) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionData(val *BuyXPayYPromotionData) *NullableBuyXPayYPromotionData { + return &NullableBuyXPayYPromotionData{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_buy_x_pay_y_promotion_data_relationships.go b/api/model_buy_x_pay_y_promotion_data_relationships.go new file mode 100644 index 00000000..7d1244c3 --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_data_relationships.go @@ -0,0 +1,557 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionDataRelationships{} + +// BuyXPayYPromotionDataRelationships struct for BuyXPayYPromotionDataRelationships +type BuyXPayYPromotionDataRelationships struct { + Market *AvalaraAccountDataRelationshipsMarkets `json:"market,omitempty"` + PromotionRules *BuyXPayYPromotionDataRelationshipsPromotionRules `json:"promotion_rules,omitempty"` + OrderAmountPromotionRule *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule `json:"order_amount_promotion_rule,omitempty"` + SkuListPromotionRule *BuyXPayYPromotionDataRelationshipsSkuListPromotionRule `json:"sku_list_promotion_rule,omitempty"` + CouponCodesPromotionRule *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule `json:"coupon_codes_promotion_rule,omitempty"` + CustomPromotionRule *BuyXPayYPromotionDataRelationshipsCustomPromotionRule `json:"custom_promotion_rule,omitempty"` + SkuList *BundleDataRelationshipsSkuList `json:"sku_list,omitempty"` + Coupons *BuyXPayYPromotionDataRelationshipsCoupons `json:"coupons,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Tags *AddressDataRelationshipsTags `json:"tags,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` + Skus *BundleDataRelationshipsSkus `json:"skus,omitempty"` +} + +// NewBuyXPayYPromotionDataRelationships instantiates a new BuyXPayYPromotionDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionDataRelationships() *BuyXPayYPromotionDataRelationships { + this := BuyXPayYPromotionDataRelationships{} + return &this +} + +// NewBuyXPayYPromotionDataRelationshipsWithDefaults instantiates a new BuyXPayYPromotionDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionDataRelationshipsWithDefaults() *BuyXPayYPromotionDataRelationships { + this := BuyXPayYPromotionDataRelationships{} + return &this +} + +// GetMarket returns the Market field value if set, zero value otherwise. +func (o *BuyXPayYPromotionDataRelationships) GetMarket() AvalaraAccountDataRelationshipsMarkets { + if o == nil || IsNil(o.Market) { + var ret AvalaraAccountDataRelationshipsMarkets + return ret + } + return *o.Market +} + +// GetMarketOk returns a tuple with the Market field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionDataRelationships) GetMarketOk() (*AvalaraAccountDataRelationshipsMarkets, bool) { + if o == nil || IsNil(o.Market) { + return nil, false + } + return o.Market, true +} + +// HasMarket returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationships) HasMarket() bool { + if o != nil && !IsNil(o.Market) { + return true + } + + return false +} + +// SetMarket gets a reference to the given AvalaraAccountDataRelationshipsMarkets and assigns it to the Market field. +func (o *BuyXPayYPromotionDataRelationships) SetMarket(v AvalaraAccountDataRelationshipsMarkets) { + o.Market = &v +} + +// GetPromotionRules returns the PromotionRules field value if set, zero value otherwise. +func (o *BuyXPayYPromotionDataRelationships) GetPromotionRules() BuyXPayYPromotionDataRelationshipsPromotionRules { + if o == nil || IsNil(o.PromotionRules) { + var ret BuyXPayYPromotionDataRelationshipsPromotionRules + return ret + } + return *o.PromotionRules +} + +// GetPromotionRulesOk returns a tuple with the PromotionRules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionDataRelationships) GetPromotionRulesOk() (*BuyXPayYPromotionDataRelationshipsPromotionRules, bool) { + if o == nil || IsNil(o.PromotionRules) { + return nil, false + } + return o.PromotionRules, true +} + +// HasPromotionRules returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationships) HasPromotionRules() bool { + if o != nil && !IsNil(o.PromotionRules) { + return true + } + + return false +} + +// SetPromotionRules gets a reference to the given BuyXPayYPromotionDataRelationshipsPromotionRules and assigns it to the PromotionRules field. +func (o *BuyXPayYPromotionDataRelationships) SetPromotionRules(v BuyXPayYPromotionDataRelationshipsPromotionRules) { + o.PromotionRules = &v +} + +// GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field value if set, zero value otherwise. +func (o *BuyXPayYPromotionDataRelationships) GetOrderAmountPromotionRule() BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule { + if o == nil || IsNil(o.OrderAmountPromotionRule) { + var ret BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule + return ret + } + return *o.OrderAmountPromotionRule +} + +// GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionDataRelationships) GetOrderAmountPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule, bool) { + if o == nil || IsNil(o.OrderAmountPromotionRule) { + return nil, false + } + return o.OrderAmountPromotionRule, true +} + +// HasOrderAmountPromotionRule returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationships) HasOrderAmountPromotionRule() bool { + if o != nil && !IsNil(o.OrderAmountPromotionRule) { + return true + } + + return false +} + +// SetOrderAmountPromotionRule gets a reference to the given BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule and assigns it to the OrderAmountPromotionRule field. +func (o *BuyXPayYPromotionDataRelationships) SetOrderAmountPromotionRule(v BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) { + o.OrderAmountPromotionRule = &v +} + +// GetSkuListPromotionRule returns the SkuListPromotionRule field value if set, zero value otherwise. +func (o *BuyXPayYPromotionDataRelationships) GetSkuListPromotionRule() BuyXPayYPromotionDataRelationshipsSkuListPromotionRule { + if o == nil || IsNil(o.SkuListPromotionRule) { + var ret BuyXPayYPromotionDataRelationshipsSkuListPromotionRule + return ret + } + return *o.SkuListPromotionRule +} + +// GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionDataRelationships) GetSkuListPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsSkuListPromotionRule, bool) { + if o == nil || IsNil(o.SkuListPromotionRule) { + return nil, false + } + return o.SkuListPromotionRule, true +} + +// HasSkuListPromotionRule returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationships) HasSkuListPromotionRule() bool { + if o != nil && !IsNil(o.SkuListPromotionRule) { + return true + } + + return false +} + +// SetSkuListPromotionRule gets a reference to the given BuyXPayYPromotionDataRelationshipsSkuListPromotionRule and assigns it to the SkuListPromotionRule field. +func (o *BuyXPayYPromotionDataRelationships) SetSkuListPromotionRule(v BuyXPayYPromotionDataRelationshipsSkuListPromotionRule) { + o.SkuListPromotionRule = &v +} + +// GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field value if set, zero value otherwise. +func (o *BuyXPayYPromotionDataRelationships) GetCouponCodesPromotionRule() BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule { + if o == nil || IsNil(o.CouponCodesPromotionRule) { + var ret BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule + return ret + } + return *o.CouponCodesPromotionRule +} + +// GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionDataRelationships) GetCouponCodesPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule, bool) { + if o == nil || IsNil(o.CouponCodesPromotionRule) { + return nil, false + } + return o.CouponCodesPromotionRule, true +} + +// HasCouponCodesPromotionRule returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationships) HasCouponCodesPromotionRule() bool { + if o != nil && !IsNil(o.CouponCodesPromotionRule) { + return true + } + + return false +} + +// SetCouponCodesPromotionRule gets a reference to the given BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule and assigns it to the CouponCodesPromotionRule field. +func (o *BuyXPayYPromotionDataRelationships) SetCouponCodesPromotionRule(v BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) { + o.CouponCodesPromotionRule = &v +} + +// GetCustomPromotionRule returns the CustomPromotionRule field value if set, zero value otherwise. +func (o *BuyXPayYPromotionDataRelationships) GetCustomPromotionRule() BuyXPayYPromotionDataRelationshipsCustomPromotionRule { + if o == nil || IsNil(o.CustomPromotionRule) { + var ret BuyXPayYPromotionDataRelationshipsCustomPromotionRule + return ret + } + return *o.CustomPromotionRule +} + +// GetCustomPromotionRuleOk returns a tuple with the CustomPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionDataRelationships) GetCustomPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsCustomPromotionRule, bool) { + if o == nil || IsNil(o.CustomPromotionRule) { + return nil, false + } + return o.CustomPromotionRule, true +} + +// HasCustomPromotionRule returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationships) HasCustomPromotionRule() bool { + if o != nil && !IsNil(o.CustomPromotionRule) { + return true + } + + return false +} + +// SetCustomPromotionRule gets a reference to the given BuyXPayYPromotionDataRelationshipsCustomPromotionRule and assigns it to the CustomPromotionRule field. +func (o *BuyXPayYPromotionDataRelationships) SetCustomPromotionRule(v BuyXPayYPromotionDataRelationshipsCustomPromotionRule) { + o.CustomPromotionRule = &v +} + +// GetSkuList returns the SkuList field value if set, zero value otherwise. +func (o *BuyXPayYPromotionDataRelationships) GetSkuList() BundleDataRelationshipsSkuList { + if o == nil || IsNil(o.SkuList) { + var ret BundleDataRelationshipsSkuList + return ret + } + return *o.SkuList +} + +// GetSkuListOk returns a tuple with the SkuList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionDataRelationships) GetSkuListOk() (*BundleDataRelationshipsSkuList, bool) { + if o == nil || IsNil(o.SkuList) { + return nil, false + } + return o.SkuList, true +} + +// HasSkuList returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationships) HasSkuList() bool { + if o != nil && !IsNil(o.SkuList) { + return true + } + + return false +} + +// SetSkuList gets a reference to the given BundleDataRelationshipsSkuList and assigns it to the SkuList field. +func (o *BuyXPayYPromotionDataRelationships) SetSkuList(v BundleDataRelationshipsSkuList) { + o.SkuList = &v +} + +// GetCoupons returns the Coupons field value if set, zero value otherwise. +func (o *BuyXPayYPromotionDataRelationships) GetCoupons() BuyXPayYPromotionDataRelationshipsCoupons { + if o == nil || IsNil(o.Coupons) { + var ret BuyXPayYPromotionDataRelationshipsCoupons + return ret + } + return *o.Coupons +} + +// GetCouponsOk returns a tuple with the Coupons field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionDataRelationships) GetCouponsOk() (*BuyXPayYPromotionDataRelationshipsCoupons, bool) { + if o == nil || IsNil(o.Coupons) { + return nil, false + } + return o.Coupons, true +} + +// HasCoupons returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationships) HasCoupons() bool { + if o != nil && !IsNil(o.Coupons) { + return true + } + + return false +} + +// SetCoupons gets a reference to the given BuyXPayYPromotionDataRelationshipsCoupons and assigns it to the Coupons field. +func (o *BuyXPayYPromotionDataRelationships) SetCoupons(v BuyXPayYPromotionDataRelationshipsCoupons) { + o.Coupons = &v +} + +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *BuyXPayYPromotionDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret AuthorizationDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *BuyXPayYPromotionDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { + o.Attachments = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *BuyXPayYPromotionDataRelationships) GetEvents() AddressDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret AddressDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *BuyXPayYPromotionDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *BuyXPayYPromotionDataRelationships) GetTags() AddressDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressDataRelationshipsTags and assigns it to the Tags field. +func (o *BuyXPayYPromotionDataRelationships) SetTags(v AddressDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *BuyXPayYPromotionDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *BuyXPayYPromotionDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + +// GetSkus returns the Skus field value if set, zero value otherwise. +func (o *BuyXPayYPromotionDataRelationships) GetSkus() BundleDataRelationshipsSkus { + if o == nil || IsNil(o.Skus) { + var ret BundleDataRelationshipsSkus + return ret + } + return *o.Skus +} + +// GetSkusOk returns a tuple with the Skus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionDataRelationships) GetSkusOk() (*BundleDataRelationshipsSkus, bool) { + if o == nil || IsNil(o.Skus) { + return nil, false + } + return o.Skus, true +} + +// HasSkus returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationships) HasSkus() bool { + if o != nil && !IsNil(o.Skus) { + return true + } + + return false +} + +// SetSkus gets a reference to the given BundleDataRelationshipsSkus and assigns it to the Skus field. +func (o *BuyXPayYPromotionDataRelationships) SetSkus(v BundleDataRelationshipsSkus) { + o.Skus = &v +} + +func (o BuyXPayYPromotionDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Market) { + toSerialize["market"] = o.Market + } + if !IsNil(o.PromotionRules) { + toSerialize["promotion_rules"] = o.PromotionRules + } + if !IsNil(o.OrderAmountPromotionRule) { + toSerialize["order_amount_promotion_rule"] = o.OrderAmountPromotionRule + } + if !IsNil(o.SkuListPromotionRule) { + toSerialize["sku_list_promotion_rule"] = o.SkuListPromotionRule + } + if !IsNil(o.CouponCodesPromotionRule) { + toSerialize["coupon_codes_promotion_rule"] = o.CouponCodesPromotionRule + } + if !IsNil(o.CustomPromotionRule) { + toSerialize["custom_promotion_rule"] = o.CustomPromotionRule + } + if !IsNil(o.SkuList) { + toSerialize["sku_list"] = o.SkuList + } + if !IsNil(o.Coupons) { + toSerialize["coupons"] = o.Coupons + } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + if !IsNil(o.Skus) { + toSerialize["skus"] = o.Skus + } + return toSerialize, nil +} + +type NullableBuyXPayYPromotionDataRelationships struct { + value *BuyXPayYPromotionDataRelationships + isSet bool +} + +func (v NullableBuyXPayYPromotionDataRelationships) Get() *BuyXPayYPromotionDataRelationships { + return v.value +} + +func (v *NullableBuyXPayYPromotionDataRelationships) Set(val *BuyXPayYPromotionDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionDataRelationships(val *BuyXPayYPromotionDataRelationships) *NullableBuyXPayYPromotionDataRelationships { + return &NullableBuyXPayYPromotionDataRelationships{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_buy_x_pay_y_promotion_data_relationships_coupon_codes_promotion_rule.go b/api/model_buy_x_pay_y_promotion_data_relationships_coupon_codes_promotion_rule.go new file mode 100644 index 00000000..5fad70c1 --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_data_relationships_coupon_codes_promotion_rule.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule{} + +// BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule struct for BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule +type BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule struct { + Data *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData `json:"data,omitempty"` +} + +// NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule instantiates a new BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule() *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule { + this := BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule{} + return &this +} + +// NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleWithDefaults() *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule { + this := BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) GetData() BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData { + if o == nil || IsNil(o.Data) { + var ret BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) GetDataOk() (*BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData and assigns it to the Data field. +func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) SetData(v BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) { + o.Data = &v +} + +func (o BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule struct { + value *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule + isSet bool +} + +func (v NullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) Get() *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule { + return v.value +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) Set(val *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule(val *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) *NullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule { + return &NullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_buy_x_pay_y_promotion_data_relationships_coupon_codes_promotion_rule_data.go b/api/model_buy_x_pay_y_promotion_data_relationships_coupon_codes_promotion_rule_data.go new file mode 100644 index 00000000..04e56748 --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_data_relationships_coupon_codes_promotion_rule_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData{} + +// BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData struct for BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData +type BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource's id + Id interface{} `json:"id,omitempty"` +} + +// NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData instantiates a new BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData() *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData { + this := BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData{} + return &this +} + +// NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleDataWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleDataWithDefaults() *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData { + this := BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) SetId(v interface{}) { + o.Id = v +} + +func (o BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData struct { + value *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData + isSet bool +} + +func (v NullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) Get() *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData { + return v.value +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) Set(val *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData(val *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) *NullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData { + return &NullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsCouponCodesPromotionRuleData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_buy_x_pay_y_promotion_data_relationships_coupons.go b/api/model_buy_x_pay_y_promotion_data_relationships_coupons.go new file mode 100644 index 00000000..b2d7041d --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_data_relationships_coupons.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionDataRelationshipsCoupons type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionDataRelationshipsCoupons{} + +// BuyXPayYPromotionDataRelationshipsCoupons struct for BuyXPayYPromotionDataRelationshipsCoupons +type BuyXPayYPromotionDataRelationshipsCoupons struct { + Data *BuyXPayYPromotionDataRelationshipsCouponsData `json:"data,omitempty"` +} + +// NewBuyXPayYPromotionDataRelationshipsCoupons instantiates a new BuyXPayYPromotionDataRelationshipsCoupons object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionDataRelationshipsCoupons() *BuyXPayYPromotionDataRelationshipsCoupons { + this := BuyXPayYPromotionDataRelationshipsCoupons{} + return &this +} + +// NewBuyXPayYPromotionDataRelationshipsCouponsWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsCoupons object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionDataRelationshipsCouponsWithDefaults() *BuyXPayYPromotionDataRelationshipsCoupons { + this := BuyXPayYPromotionDataRelationshipsCoupons{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *BuyXPayYPromotionDataRelationshipsCoupons) GetData() BuyXPayYPromotionDataRelationshipsCouponsData { + if o == nil || IsNil(o.Data) { + var ret BuyXPayYPromotionDataRelationshipsCouponsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionDataRelationshipsCoupons) GetDataOk() (*BuyXPayYPromotionDataRelationshipsCouponsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationshipsCoupons) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given BuyXPayYPromotionDataRelationshipsCouponsData and assigns it to the Data field. +func (o *BuyXPayYPromotionDataRelationshipsCoupons) SetData(v BuyXPayYPromotionDataRelationshipsCouponsData) { + o.Data = &v +} + +func (o BuyXPayYPromotionDataRelationshipsCoupons) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionDataRelationshipsCoupons) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableBuyXPayYPromotionDataRelationshipsCoupons struct { + value *BuyXPayYPromotionDataRelationshipsCoupons + isSet bool +} + +func (v NullableBuyXPayYPromotionDataRelationshipsCoupons) Get() *BuyXPayYPromotionDataRelationshipsCoupons { + return v.value +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsCoupons) Set(val *BuyXPayYPromotionDataRelationshipsCoupons) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionDataRelationshipsCoupons) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsCoupons) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionDataRelationshipsCoupons(val *BuyXPayYPromotionDataRelationshipsCoupons) *NullableBuyXPayYPromotionDataRelationshipsCoupons { + return &NullableBuyXPayYPromotionDataRelationshipsCoupons{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionDataRelationshipsCoupons) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsCoupons) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_buy_x_pay_y_promotion_data_relationships_coupons_data.go b/api/model_buy_x_pay_y_promotion_data_relationships_coupons_data.go new file mode 100644 index 00000000..5a267493 --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_data_relationships_coupons_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionDataRelationshipsCouponsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionDataRelationshipsCouponsData{} + +// BuyXPayYPromotionDataRelationshipsCouponsData struct for BuyXPayYPromotionDataRelationshipsCouponsData +type BuyXPayYPromotionDataRelationshipsCouponsData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource's id + Id interface{} `json:"id,omitempty"` +} + +// NewBuyXPayYPromotionDataRelationshipsCouponsData instantiates a new BuyXPayYPromotionDataRelationshipsCouponsData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionDataRelationshipsCouponsData() *BuyXPayYPromotionDataRelationshipsCouponsData { + this := BuyXPayYPromotionDataRelationshipsCouponsData{} + return &this +} + +// NewBuyXPayYPromotionDataRelationshipsCouponsDataWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsCouponsData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionDataRelationshipsCouponsDataWithDefaults() *BuyXPayYPromotionDataRelationshipsCouponsData { + this := BuyXPayYPromotionDataRelationshipsCouponsData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BuyXPayYPromotionDataRelationshipsCouponsData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BuyXPayYPromotionDataRelationshipsCouponsData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationshipsCouponsData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *BuyXPayYPromotionDataRelationshipsCouponsData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BuyXPayYPromotionDataRelationshipsCouponsData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BuyXPayYPromotionDataRelationshipsCouponsData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationshipsCouponsData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *BuyXPayYPromotionDataRelationshipsCouponsData) SetId(v interface{}) { + o.Id = v +} + +func (o BuyXPayYPromotionDataRelationshipsCouponsData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionDataRelationshipsCouponsData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableBuyXPayYPromotionDataRelationshipsCouponsData struct { + value *BuyXPayYPromotionDataRelationshipsCouponsData + isSet bool +} + +func (v NullableBuyXPayYPromotionDataRelationshipsCouponsData) Get() *BuyXPayYPromotionDataRelationshipsCouponsData { + return v.value +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsCouponsData) Set(val *BuyXPayYPromotionDataRelationshipsCouponsData) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionDataRelationshipsCouponsData) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsCouponsData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionDataRelationshipsCouponsData(val *BuyXPayYPromotionDataRelationshipsCouponsData) *NullableBuyXPayYPromotionDataRelationshipsCouponsData { + return &NullableBuyXPayYPromotionDataRelationshipsCouponsData{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionDataRelationshipsCouponsData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsCouponsData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_buy_x_pay_y_promotion_data_relationships_custom_promotion_rule.go b/api/model_buy_x_pay_y_promotion_data_relationships_custom_promotion_rule.go new file mode 100644 index 00000000..414c8b5b --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_data_relationships_custom_promotion_rule.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionDataRelationshipsCustomPromotionRule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionDataRelationshipsCustomPromotionRule{} + +// BuyXPayYPromotionDataRelationshipsCustomPromotionRule struct for BuyXPayYPromotionDataRelationshipsCustomPromotionRule +type BuyXPayYPromotionDataRelationshipsCustomPromotionRule struct { + Data *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData `json:"data,omitempty"` +} + +// NewBuyXPayYPromotionDataRelationshipsCustomPromotionRule instantiates a new BuyXPayYPromotionDataRelationshipsCustomPromotionRule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionDataRelationshipsCustomPromotionRule() *BuyXPayYPromotionDataRelationshipsCustomPromotionRule { + this := BuyXPayYPromotionDataRelationshipsCustomPromotionRule{} + return &this +} + +// NewBuyXPayYPromotionDataRelationshipsCustomPromotionRuleWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsCustomPromotionRule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionDataRelationshipsCustomPromotionRuleWithDefaults() *BuyXPayYPromotionDataRelationshipsCustomPromotionRule { + this := BuyXPayYPromotionDataRelationshipsCustomPromotionRule{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRule) GetData() BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData { + if o == nil || IsNil(o.Data) { + var ret BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRule) GetDataOk() (*BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRule) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData and assigns it to the Data field. +func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRule) SetData(v BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) { + o.Data = &v +} + +func (o BuyXPayYPromotionDataRelationshipsCustomPromotionRule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionDataRelationshipsCustomPromotionRule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableBuyXPayYPromotionDataRelationshipsCustomPromotionRule struct { + value *BuyXPayYPromotionDataRelationshipsCustomPromotionRule + isSet bool +} + +func (v NullableBuyXPayYPromotionDataRelationshipsCustomPromotionRule) Get() *BuyXPayYPromotionDataRelationshipsCustomPromotionRule { + return v.value +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsCustomPromotionRule) Set(val *BuyXPayYPromotionDataRelationshipsCustomPromotionRule) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionDataRelationshipsCustomPromotionRule) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsCustomPromotionRule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionDataRelationshipsCustomPromotionRule(val *BuyXPayYPromotionDataRelationshipsCustomPromotionRule) *NullableBuyXPayYPromotionDataRelationshipsCustomPromotionRule { + return &NullableBuyXPayYPromotionDataRelationshipsCustomPromotionRule{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionDataRelationshipsCustomPromotionRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsCustomPromotionRule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_return_line_items_201_response_data_relationships_return_data.go b/api/model_buy_x_pay_y_promotion_data_relationships_custom_promotion_rule_data.go similarity index 50% rename from api/model_post_return_line_items_201_response_data_relationships_return_data.go rename to api/model_buy_x_pay_y_promotion_data_relationships_custom_promotion_rule_data.go index 37ff1fc8..2a65c9b3 100644 --- a/api/model_post_return_line_items_201_response_data_relationships_return_data.go +++ b/api/model_buy_x_pay_y_promotion_data_relationships_custom_promotion_rule_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the POSTReturnLineItems201ResponseDataRelationshipsReturnData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTReturnLineItems201ResponseDataRelationshipsReturnData{} +// checks if the BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData{} -// POSTReturnLineItems201ResponseDataRelationshipsReturnData struct for POSTReturnLineItems201ResponseDataRelationshipsReturnData -type POSTReturnLineItems201ResponseDataRelationshipsReturnData struct { +// BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData struct for BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData +type BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData struct { // The resource's type Type interface{} `json:"type,omitempty"` - // The resource ID + // The resource's id Id interface{} `json:"id,omitempty"` } -// NewPOSTReturnLineItems201ResponseDataRelationshipsReturnData instantiates a new POSTReturnLineItems201ResponseDataRelationshipsReturnData object +// NewBuyXPayYPromotionDataRelationshipsCustomPromotionRuleData instantiates a new BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTReturnLineItems201ResponseDataRelationshipsReturnData() *POSTReturnLineItems201ResponseDataRelationshipsReturnData { - this := POSTReturnLineItems201ResponseDataRelationshipsReturnData{} +func NewBuyXPayYPromotionDataRelationshipsCustomPromotionRuleData() *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData { + this := BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData{} return &this } -// NewPOSTReturnLineItems201ResponseDataRelationshipsReturnDataWithDefaults instantiates a new POSTReturnLineItems201ResponseDataRelationshipsReturnData object +// NewBuyXPayYPromotionDataRelationshipsCustomPromotionRuleDataWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewPOSTReturnLineItems201ResponseDataRelationshipsReturnDataWithDefaults() *POSTReturnLineItems201ResponseDataRelationshipsReturnData { - this := POSTReturnLineItems201ResponseDataRelationshipsReturnData{} +func NewBuyXPayYPromotionDataRelationshipsCustomPromotionRuleDataWithDefaults() *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData { + this := BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) GetType() interface{} { +func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) GetType() in // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) GetTypeOk() (*interface{}, bool) { +func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) GetTypeOk() } // HasType returns a boolean if a field has been set. -func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) HasType() bool { +func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) HasType() bo } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) SetType(v interface{}) { +func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) GetId() interface{} { +func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) GetId() inte // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) GetIdOk() (*interface{}, bool) { +func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) GetIdOk() (* } // HasId returns a boolean if a field has been set. -func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) HasId() bool { +func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) HasId() bool } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *POSTReturnLineItems201ResponseDataRelationshipsReturnData) SetId(v interface{}) { +func (o *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) SetId(v interface{}) { o.Id = v } -func (o POSTReturnLineItems201ResponseDataRelationshipsReturnData) MarshalJSON() ([]byte, error) { +func (o BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o POSTReturnLineItems201ResponseDataRelationshipsReturnData) MarshalJSON() return json.Marshal(toSerialize) } -func (o POSTReturnLineItems201ResponseDataRelationshipsReturnData) ToMap() (map[string]interface{}, error) { +func (o BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o POSTReturnLineItems201ResponseDataRelationshipsReturnData) ToMap() (map[ return toSerialize, nil } -type NullablePOSTReturnLineItems201ResponseDataRelationshipsReturnData struct { - value *POSTReturnLineItems201ResponseDataRelationshipsReturnData +type NullableBuyXPayYPromotionDataRelationshipsCustomPromotionRuleData struct { + value *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData isSet bool } -func (v NullablePOSTReturnLineItems201ResponseDataRelationshipsReturnData) Get() *POSTReturnLineItems201ResponseDataRelationshipsReturnData { +func (v NullableBuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) Get() *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData { return v.value } -func (v *NullablePOSTReturnLineItems201ResponseDataRelationshipsReturnData) Set(val *POSTReturnLineItems201ResponseDataRelationshipsReturnData) { +func (v *NullableBuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) Set(val *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) { v.value = val v.isSet = true } -func (v NullablePOSTReturnLineItems201ResponseDataRelationshipsReturnData) IsSet() bool { +func (v NullableBuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) IsSet() bool { return v.isSet } -func (v *NullablePOSTReturnLineItems201ResponseDataRelationshipsReturnData) Unset() { +func (v *NullableBuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) Unset() { v.value = nil v.isSet = false } -func NewNullablePOSTReturnLineItems201ResponseDataRelationshipsReturnData(val *POSTReturnLineItems201ResponseDataRelationshipsReturnData) *NullablePOSTReturnLineItems201ResponseDataRelationshipsReturnData { - return &NullablePOSTReturnLineItems201ResponseDataRelationshipsReturnData{value: val, isSet: true} +func NewNullableBuyXPayYPromotionDataRelationshipsCustomPromotionRuleData(val *BuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) *NullableBuyXPayYPromotionDataRelationshipsCustomPromotionRuleData { + return &NullableBuyXPayYPromotionDataRelationshipsCustomPromotionRuleData{value: val, isSet: true} } -func (v NullablePOSTReturnLineItems201ResponseDataRelationshipsReturnData) MarshalJSON() ([]byte, error) { +func (v NullableBuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePOSTReturnLineItems201ResponseDataRelationshipsReturnData) UnmarshalJSON(src []byte) error { +func (v *NullableBuyXPayYPromotionDataRelationshipsCustomPromotionRuleData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_buy_x_pay_y_promotion_data_relationships_order_amount_promotion_rule.go b/api/model_buy_x_pay_y_promotion_data_relationships_order_amount_promotion_rule.go new file mode 100644 index 00000000..7186b1e6 --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_data_relationships_order_amount_promotion_rule.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule{} + +// BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule struct for BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule +type BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule struct { + Data *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData `json:"data,omitempty"` +} + +// NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule instantiates a new BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule() *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule { + this := BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule{} + return &this +} + +// NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleWithDefaults() *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule { + this := BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) GetData() BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData { + if o == nil || IsNil(o.Data) { + var ret BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) GetDataOk() (*BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData and assigns it to the Data field. +func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) SetData(v BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) { + o.Data = &v +} + +func (o BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule struct { + value *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule + isSet bool +} + +func (v NullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) Get() *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule { + return v.value +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) Set(val *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule(val *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) *NullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule { + return &NullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_external_promotion_data_relationships_order_amount_promotion_rule_data.go b/api/model_buy_x_pay_y_promotion_data_relationships_order_amount_promotion_rule_data.go similarity index 58% rename from api/model_external_promotion_data_relationships_order_amount_promotion_rule_data.go rename to api/model_buy_x_pay_y_promotion_data_relationships_order_amount_promotion_rule_data.go index 435bb984..59c64934 100644 --- a/api/model_external_promotion_data_relationships_order_amount_promotion_rule_data.go +++ b/api/model_buy_x_pay_y_promotion_data_relationships_order_amount_promotion_rule_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData{} +// checks if the BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData{} -// ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData struct for ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData -type ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData struct { +// BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData struct for BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData +type BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource's id Id interface{} `json:"id,omitempty"` } -// NewExternalPromotionDataRelationshipsOrderAmountPromotionRuleData instantiates a new ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData object +// NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData instantiates a new BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewExternalPromotionDataRelationshipsOrderAmountPromotionRuleData() *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData { - this := ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData{} +func NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData() *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData { + this := BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData{} return &this } -// NewExternalPromotionDataRelationshipsOrderAmountPromotionRuleDataWithDefaults instantiates a new ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData object +// NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleDataWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewExternalPromotionDataRelationshipsOrderAmountPromotionRuleDataWithDefaults() *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData { - this := ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData{} +func NewBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleDataWithDefaults() *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData { + this := BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) GetType() interface{} { +func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) GetType // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) GetTypeOk() (*interface{}, bool) { +func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) GetType } // HasType returns a boolean if a field has been set. -func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) HasType() bool { +func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) HasType } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) SetType(v interface{}) { +func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) GetId() interface{} { +func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) GetId() // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) GetIdOk() (*interface{}, bool) { +func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) GetIdOk } // HasId returns a boolean if a field has been set. -func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) HasId() bool { +func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) HasId() } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) SetId(v interface{}) { +func (o *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) SetId(v interface{}) { o.Id = v } -func (o ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) MarshalJSON() ([]byte, error) { +func (o BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) MarshalJ return json.Marshal(toSerialize) } -func (o ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) ToMap() (map[string]interface{}, error) { +func (o BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) ToMap() return toSerialize, nil } -type NullableExternalPromotionDataRelationshipsOrderAmountPromotionRuleData struct { - value *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData +type NullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData struct { + value *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData isSet bool } -func (v NullableExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) Get() *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData { +func (v NullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) Get() *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData { return v.value } -func (v *NullableExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) Set(val *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) { +func (v *NullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) Set(val *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) { v.value = val v.isSet = true } -func (v NullableExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) IsSet() bool { +func (v NullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) IsSet() bool { return v.isSet } -func (v *NullableExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) Unset() { +func (v *NullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) Unset() { v.value = nil v.isSet = false } -func NewNullableExternalPromotionDataRelationshipsOrderAmountPromotionRuleData(val *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) *NullableExternalPromotionDataRelationshipsOrderAmountPromotionRuleData { - return &NullableExternalPromotionDataRelationshipsOrderAmountPromotionRuleData{value: val, isSet: true} +func NewNullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData(val *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) *NullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData { + return &NullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData{value: val, isSet: true} } -func (v NullableExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) MarshalJSON() ([]byte, error) { +func (v NullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) UnmarshalJSON(src []byte) error { +func (v *NullableBuyXPayYPromotionDataRelationshipsOrderAmountPromotionRuleData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_buy_x_pay_y_promotion_data_relationships_promotion_rules.go b/api/model_buy_x_pay_y_promotion_data_relationships_promotion_rules.go new file mode 100644 index 00000000..389a6bf9 --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_data_relationships_promotion_rules.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionDataRelationshipsPromotionRules type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionDataRelationshipsPromotionRules{} + +// BuyXPayYPromotionDataRelationshipsPromotionRules struct for BuyXPayYPromotionDataRelationshipsPromotionRules +type BuyXPayYPromotionDataRelationshipsPromotionRules struct { + Data *BuyXPayYPromotionDataRelationshipsPromotionRulesData `json:"data,omitempty"` +} + +// NewBuyXPayYPromotionDataRelationshipsPromotionRules instantiates a new BuyXPayYPromotionDataRelationshipsPromotionRules object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionDataRelationshipsPromotionRules() *BuyXPayYPromotionDataRelationshipsPromotionRules { + this := BuyXPayYPromotionDataRelationshipsPromotionRules{} + return &this +} + +// NewBuyXPayYPromotionDataRelationshipsPromotionRulesWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsPromotionRules object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionDataRelationshipsPromotionRulesWithDefaults() *BuyXPayYPromotionDataRelationshipsPromotionRules { + this := BuyXPayYPromotionDataRelationshipsPromotionRules{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *BuyXPayYPromotionDataRelationshipsPromotionRules) GetData() BuyXPayYPromotionDataRelationshipsPromotionRulesData { + if o == nil || IsNil(o.Data) { + var ret BuyXPayYPromotionDataRelationshipsPromotionRulesData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionDataRelationshipsPromotionRules) GetDataOk() (*BuyXPayYPromotionDataRelationshipsPromotionRulesData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationshipsPromotionRules) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given BuyXPayYPromotionDataRelationshipsPromotionRulesData and assigns it to the Data field. +func (o *BuyXPayYPromotionDataRelationshipsPromotionRules) SetData(v BuyXPayYPromotionDataRelationshipsPromotionRulesData) { + o.Data = &v +} + +func (o BuyXPayYPromotionDataRelationshipsPromotionRules) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionDataRelationshipsPromotionRules) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableBuyXPayYPromotionDataRelationshipsPromotionRules struct { + value *BuyXPayYPromotionDataRelationshipsPromotionRules + isSet bool +} + +func (v NullableBuyXPayYPromotionDataRelationshipsPromotionRules) Get() *BuyXPayYPromotionDataRelationshipsPromotionRules { + return v.value +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsPromotionRules) Set(val *BuyXPayYPromotionDataRelationshipsPromotionRules) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionDataRelationshipsPromotionRules) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsPromotionRules) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionDataRelationshipsPromotionRules(val *BuyXPayYPromotionDataRelationshipsPromotionRules) *NullableBuyXPayYPromotionDataRelationshipsPromotionRules { + return &NullableBuyXPayYPromotionDataRelationshipsPromotionRules{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionDataRelationshipsPromotionRules) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsPromotionRules) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_external_promotion_data_relationships_promotion_rules_data.go b/api/model_buy_x_pay_y_promotion_data_relationships_promotion_rules_data.go similarity index 55% rename from api/model_external_promotion_data_relationships_promotion_rules_data.go rename to api/model_buy_x_pay_y_promotion_data_relationships_promotion_rules_data.go index 456f75d8..85e40339 100644 --- a/api/model_external_promotion_data_relationships_promotion_rules_data.go +++ b/api/model_buy_x_pay_y_promotion_data_relationships_promotion_rules_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the ExternalPromotionDataRelationshipsPromotionRulesData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExternalPromotionDataRelationshipsPromotionRulesData{} +// checks if the BuyXPayYPromotionDataRelationshipsPromotionRulesData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionDataRelationshipsPromotionRulesData{} -// ExternalPromotionDataRelationshipsPromotionRulesData struct for ExternalPromotionDataRelationshipsPromotionRulesData -type ExternalPromotionDataRelationshipsPromotionRulesData struct { +// BuyXPayYPromotionDataRelationshipsPromotionRulesData struct for BuyXPayYPromotionDataRelationshipsPromotionRulesData +type BuyXPayYPromotionDataRelationshipsPromotionRulesData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource's id Id interface{} `json:"id,omitempty"` } -// NewExternalPromotionDataRelationshipsPromotionRulesData instantiates a new ExternalPromotionDataRelationshipsPromotionRulesData object +// NewBuyXPayYPromotionDataRelationshipsPromotionRulesData instantiates a new BuyXPayYPromotionDataRelationshipsPromotionRulesData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewExternalPromotionDataRelationshipsPromotionRulesData() *ExternalPromotionDataRelationshipsPromotionRulesData { - this := ExternalPromotionDataRelationshipsPromotionRulesData{} +func NewBuyXPayYPromotionDataRelationshipsPromotionRulesData() *BuyXPayYPromotionDataRelationshipsPromotionRulesData { + this := BuyXPayYPromotionDataRelationshipsPromotionRulesData{} return &this } -// NewExternalPromotionDataRelationshipsPromotionRulesDataWithDefaults instantiates a new ExternalPromotionDataRelationshipsPromotionRulesData object +// NewBuyXPayYPromotionDataRelationshipsPromotionRulesDataWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsPromotionRulesData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewExternalPromotionDataRelationshipsPromotionRulesDataWithDefaults() *ExternalPromotionDataRelationshipsPromotionRulesData { - this := ExternalPromotionDataRelationshipsPromotionRulesData{} +func NewBuyXPayYPromotionDataRelationshipsPromotionRulesDataWithDefaults() *BuyXPayYPromotionDataRelationshipsPromotionRulesData { + this := BuyXPayYPromotionDataRelationshipsPromotionRulesData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ExternalPromotionDataRelationshipsPromotionRulesData) GetType() interface{} { +func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *ExternalPromotionDataRelationshipsPromotionRulesData) GetType() interfa // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ExternalPromotionDataRelationshipsPromotionRulesData) GetTypeOk() (*interface{}, bool) { +func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *ExternalPromotionDataRelationshipsPromotionRulesData) GetTypeOk() (*int } // HasType returns a boolean if a field has been set. -func (o *ExternalPromotionDataRelationshipsPromotionRulesData) HasType() bool { +func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *ExternalPromotionDataRelationshipsPromotionRulesData) HasType() bool { } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *ExternalPromotionDataRelationshipsPromotionRulesData) SetType(v interface{}) { +func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ExternalPromotionDataRelationshipsPromotionRulesData) GetId() interface{} { +func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *ExternalPromotionDataRelationshipsPromotionRulesData) GetId() interface // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ExternalPromotionDataRelationshipsPromotionRulesData) GetIdOk() (*interface{}, bool) { +func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *ExternalPromotionDataRelationshipsPromotionRulesData) GetIdOk() (*inter } // HasId returns a boolean if a field has been set. -func (o *ExternalPromotionDataRelationshipsPromotionRulesData) HasId() bool { +func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *ExternalPromotionDataRelationshipsPromotionRulesData) HasId() bool { } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *ExternalPromotionDataRelationshipsPromotionRulesData) SetId(v interface{}) { +func (o *BuyXPayYPromotionDataRelationshipsPromotionRulesData) SetId(v interface{}) { o.Id = v } -func (o ExternalPromotionDataRelationshipsPromotionRulesData) MarshalJSON() ([]byte, error) { +func (o BuyXPayYPromotionDataRelationshipsPromotionRulesData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o ExternalPromotionDataRelationshipsPromotionRulesData) MarshalJSON() ([]b return json.Marshal(toSerialize) } -func (o ExternalPromotionDataRelationshipsPromotionRulesData) ToMap() (map[string]interface{}, error) { +func (o BuyXPayYPromotionDataRelationshipsPromotionRulesData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o ExternalPromotionDataRelationshipsPromotionRulesData) ToMap() (map[strin return toSerialize, nil } -type NullableExternalPromotionDataRelationshipsPromotionRulesData struct { - value *ExternalPromotionDataRelationshipsPromotionRulesData +type NullableBuyXPayYPromotionDataRelationshipsPromotionRulesData struct { + value *BuyXPayYPromotionDataRelationshipsPromotionRulesData isSet bool } -func (v NullableExternalPromotionDataRelationshipsPromotionRulesData) Get() *ExternalPromotionDataRelationshipsPromotionRulesData { +func (v NullableBuyXPayYPromotionDataRelationshipsPromotionRulesData) Get() *BuyXPayYPromotionDataRelationshipsPromotionRulesData { return v.value } -func (v *NullableExternalPromotionDataRelationshipsPromotionRulesData) Set(val *ExternalPromotionDataRelationshipsPromotionRulesData) { +func (v *NullableBuyXPayYPromotionDataRelationshipsPromotionRulesData) Set(val *BuyXPayYPromotionDataRelationshipsPromotionRulesData) { v.value = val v.isSet = true } -func (v NullableExternalPromotionDataRelationshipsPromotionRulesData) IsSet() bool { +func (v NullableBuyXPayYPromotionDataRelationshipsPromotionRulesData) IsSet() bool { return v.isSet } -func (v *NullableExternalPromotionDataRelationshipsPromotionRulesData) Unset() { +func (v *NullableBuyXPayYPromotionDataRelationshipsPromotionRulesData) Unset() { v.value = nil v.isSet = false } -func NewNullableExternalPromotionDataRelationshipsPromotionRulesData(val *ExternalPromotionDataRelationshipsPromotionRulesData) *NullableExternalPromotionDataRelationshipsPromotionRulesData { - return &NullableExternalPromotionDataRelationshipsPromotionRulesData{value: val, isSet: true} +func NewNullableBuyXPayYPromotionDataRelationshipsPromotionRulesData(val *BuyXPayYPromotionDataRelationshipsPromotionRulesData) *NullableBuyXPayYPromotionDataRelationshipsPromotionRulesData { + return &NullableBuyXPayYPromotionDataRelationshipsPromotionRulesData{value: val, isSet: true} } -func (v NullableExternalPromotionDataRelationshipsPromotionRulesData) MarshalJSON() ([]byte, error) { +func (v NullableBuyXPayYPromotionDataRelationshipsPromotionRulesData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableExternalPromotionDataRelationshipsPromotionRulesData) UnmarshalJSON(src []byte) error { +func (v *NullableBuyXPayYPromotionDataRelationshipsPromotionRulesData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_buy_x_pay_y_promotion_data_relationships_sku_list_promotion_rule.go b/api/model_buy_x_pay_y_promotion_data_relationships_sku_list_promotion_rule.go new file mode 100644 index 00000000..d1302787 --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_data_relationships_sku_list_promotion_rule.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionDataRelationshipsSkuListPromotionRule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionDataRelationshipsSkuListPromotionRule{} + +// BuyXPayYPromotionDataRelationshipsSkuListPromotionRule struct for BuyXPayYPromotionDataRelationshipsSkuListPromotionRule +type BuyXPayYPromotionDataRelationshipsSkuListPromotionRule struct { + Data *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData `json:"data,omitempty"` +} + +// NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRule instantiates a new BuyXPayYPromotionDataRelationshipsSkuListPromotionRule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRule() *BuyXPayYPromotionDataRelationshipsSkuListPromotionRule { + this := BuyXPayYPromotionDataRelationshipsSkuListPromotionRule{} + return &this +} + +// NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsSkuListPromotionRule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleWithDefaults() *BuyXPayYPromotionDataRelationshipsSkuListPromotionRule { + this := BuyXPayYPromotionDataRelationshipsSkuListPromotionRule{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRule) GetData() BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData { + if o == nil || IsNil(o.Data) { + var ret BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRule) GetDataOk() (*BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRule) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData and assigns it to the Data field. +func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRule) SetData(v BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) { + o.Data = &v +} + +func (o BuyXPayYPromotionDataRelationshipsSkuListPromotionRule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionDataRelationshipsSkuListPromotionRule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRule struct { + value *BuyXPayYPromotionDataRelationshipsSkuListPromotionRule + isSet bool +} + +func (v NullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRule) Get() *BuyXPayYPromotionDataRelationshipsSkuListPromotionRule { + return v.value +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRule) Set(val *BuyXPayYPromotionDataRelationshipsSkuListPromotionRule) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRule) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRule(val *BuyXPayYPromotionDataRelationshipsSkuListPromotionRule) *NullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRule { + return &NullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRule{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_external_promotion_data_relationships_sku_list_promotion_rule_data.go b/api/model_buy_x_pay_y_promotion_data_relationships_sku_list_promotion_rule_data.go similarity index 57% rename from api/model_external_promotion_data_relationships_sku_list_promotion_rule_data.go rename to api/model_buy_x_pay_y_promotion_data_relationships_sku_list_promotion_rule_data.go index e5461b5f..94d4f630 100644 --- a/api/model_external_promotion_data_relationships_sku_list_promotion_rule_data.go +++ b/api/model_buy_x_pay_y_promotion_data_relationships_sku_list_promotion_rule_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the ExternalPromotionDataRelationshipsSkuListPromotionRuleData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExternalPromotionDataRelationshipsSkuListPromotionRuleData{} +// checks if the BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData{} -// ExternalPromotionDataRelationshipsSkuListPromotionRuleData struct for ExternalPromotionDataRelationshipsSkuListPromotionRuleData -type ExternalPromotionDataRelationshipsSkuListPromotionRuleData struct { +// BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData struct for BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData +type BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource's id Id interface{} `json:"id,omitempty"` } -// NewExternalPromotionDataRelationshipsSkuListPromotionRuleData instantiates a new ExternalPromotionDataRelationshipsSkuListPromotionRuleData object +// NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData instantiates a new BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewExternalPromotionDataRelationshipsSkuListPromotionRuleData() *ExternalPromotionDataRelationshipsSkuListPromotionRuleData { - this := ExternalPromotionDataRelationshipsSkuListPromotionRuleData{} +func NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData() *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData { + this := BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData{} return &this } -// NewExternalPromotionDataRelationshipsSkuListPromotionRuleDataWithDefaults instantiates a new ExternalPromotionDataRelationshipsSkuListPromotionRuleData object +// NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleDataWithDefaults instantiates a new BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewExternalPromotionDataRelationshipsSkuListPromotionRuleDataWithDefaults() *ExternalPromotionDataRelationshipsSkuListPromotionRuleData { - this := ExternalPromotionDataRelationshipsSkuListPromotionRuleData{} +func NewBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleDataWithDefaults() *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData { + this := BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) GetType() interface{} { +func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) GetType() i // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) GetTypeOk() (*interface{}, bool) { +func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) GetTypeOk() } // HasType returns a boolean if a field has been set. -func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) HasType() bool { +func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) HasType() b } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) SetType(v interface{}) { +func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) GetId() interface{} { +func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) GetId() int // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) GetIdOk() (*interface{}, bool) { +func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) GetIdOk() ( } // HasId returns a boolean if a field has been set. -func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) HasId() bool { +func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) HasId() boo } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) SetId(v interface{}) { +func (o *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) SetId(v interface{}) { o.Id = v } -func (o ExternalPromotionDataRelationshipsSkuListPromotionRuleData) MarshalJSON() ([]byte, error) { +func (o BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o ExternalPromotionDataRelationshipsSkuListPromotionRuleData) MarshalJSON( return json.Marshal(toSerialize) } -func (o ExternalPromotionDataRelationshipsSkuListPromotionRuleData) ToMap() (map[string]interface{}, error) { +func (o BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o ExternalPromotionDataRelationshipsSkuListPromotionRuleData) ToMap() (map return toSerialize, nil } -type NullableExternalPromotionDataRelationshipsSkuListPromotionRuleData struct { - value *ExternalPromotionDataRelationshipsSkuListPromotionRuleData +type NullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData struct { + value *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData isSet bool } -func (v NullableExternalPromotionDataRelationshipsSkuListPromotionRuleData) Get() *ExternalPromotionDataRelationshipsSkuListPromotionRuleData { +func (v NullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) Get() *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData { return v.value } -func (v *NullableExternalPromotionDataRelationshipsSkuListPromotionRuleData) Set(val *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) { +func (v *NullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) Set(val *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) { v.value = val v.isSet = true } -func (v NullableExternalPromotionDataRelationshipsSkuListPromotionRuleData) IsSet() bool { +func (v NullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) IsSet() bool { return v.isSet } -func (v *NullableExternalPromotionDataRelationshipsSkuListPromotionRuleData) Unset() { +func (v *NullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) Unset() { v.value = nil v.isSet = false } -func NewNullableExternalPromotionDataRelationshipsSkuListPromotionRuleData(val *ExternalPromotionDataRelationshipsSkuListPromotionRuleData) *NullableExternalPromotionDataRelationshipsSkuListPromotionRuleData { - return &NullableExternalPromotionDataRelationshipsSkuListPromotionRuleData{value: val, isSet: true} +func NewNullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData(val *BuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) *NullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData { + return &NullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData{value: val, isSet: true} } -func (v NullableExternalPromotionDataRelationshipsSkuListPromotionRuleData) MarshalJSON() ([]byte, error) { +func (v NullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableExternalPromotionDataRelationshipsSkuListPromotionRuleData) UnmarshalJSON(src []byte) error { +func (v *NullableBuyXPayYPromotionDataRelationshipsSkuListPromotionRuleData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_buy_x_pay_y_promotion_update.go b/api/model_buy_x_pay_y_promotion_update.go new file mode 100644 index 00000000..fe70a81c --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_update.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionUpdate{} + +// BuyXPayYPromotionUpdate struct for BuyXPayYPromotionUpdate +type BuyXPayYPromotionUpdate struct { + Data BuyXPayYPromotionUpdateData `json:"data"` +} + +// NewBuyXPayYPromotionUpdate instantiates a new BuyXPayYPromotionUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionUpdate(data BuyXPayYPromotionUpdateData) *BuyXPayYPromotionUpdate { + this := BuyXPayYPromotionUpdate{} + this.Data = data + return &this +} + +// NewBuyXPayYPromotionUpdateWithDefaults instantiates a new BuyXPayYPromotionUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionUpdateWithDefaults() *BuyXPayYPromotionUpdate { + this := BuyXPayYPromotionUpdate{} + return &this +} + +// GetData returns the Data field value +func (o *BuyXPayYPromotionUpdate) GetData() BuyXPayYPromotionUpdateData { + if o == nil { + var ret BuyXPayYPromotionUpdateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionUpdate) GetDataOk() (*BuyXPayYPromotionUpdateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *BuyXPayYPromotionUpdate) SetData(v BuyXPayYPromotionUpdateData) { + o.Data = v +} + +func (o BuyXPayYPromotionUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableBuyXPayYPromotionUpdate struct { + value *BuyXPayYPromotionUpdate + isSet bool +} + +func (v NullableBuyXPayYPromotionUpdate) Get() *BuyXPayYPromotionUpdate { + return v.value +} + +func (v *NullableBuyXPayYPromotionUpdate) Set(val *BuyXPayYPromotionUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionUpdate(val *BuyXPayYPromotionUpdate) *NullableBuyXPayYPromotionUpdate { + return &NullableBuyXPayYPromotionUpdate{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_buy_x_pay_y_promotion_update_data.go b/api/model_buy_x_pay_y_promotion_update_data.go new file mode 100644 index 00000000..fca820f8 --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_update_data.go @@ -0,0 +1,216 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionUpdateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionUpdateData{} + +// BuyXPayYPromotionUpdateData struct for BuyXPayYPromotionUpdateData +type BuyXPayYPromotionUpdateData struct { + // The resource's type + Type interface{} `json:"type"` + // The resource's id + Id interface{} `json:"id"` + Attributes PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes `json:"attributes"` + Relationships *BuyXPayYPromotionUpdateDataRelationships `json:"relationships,omitempty"` +} + +// NewBuyXPayYPromotionUpdateData instantiates a new BuyXPayYPromotionUpdateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionUpdateData(type_ interface{}, id interface{}, attributes PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) *BuyXPayYPromotionUpdateData { + this := BuyXPayYPromotionUpdateData{} + this.Type = type_ + this.Id = id + this.Attributes = attributes + return &this +} + +// NewBuyXPayYPromotionUpdateDataWithDefaults instantiates a new BuyXPayYPromotionUpdateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionUpdateDataWithDefaults() *BuyXPayYPromotionUpdateData { + this := BuyXPayYPromotionUpdateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *BuyXPayYPromotionUpdateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BuyXPayYPromotionUpdateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *BuyXPayYPromotionUpdateData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *BuyXPayYPromotionUpdateData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BuyXPayYPromotionUpdateData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BuyXPayYPromotionUpdateData) SetId(v interface{}) { + o.Id = v +} + +// GetAttributes returns the Attributes field value +func (o *BuyXPayYPromotionUpdateData) GetAttributes() PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes { + if o == nil { + var ret PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionUpdateData) GetAttributesOk() (*PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *BuyXPayYPromotionUpdateData) SetAttributes(v PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *BuyXPayYPromotionUpdateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret BuyXPayYPromotionUpdateDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionUpdateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *BuyXPayYPromotionUpdateData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given BuyXPayYPromotionUpdateDataRelationships and assigns it to the Relationships field. +func (o *BuyXPayYPromotionUpdateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships) { + o.Relationships = &v +} + +func (o BuyXPayYPromotionUpdateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionUpdateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableBuyXPayYPromotionUpdateData struct { + value *BuyXPayYPromotionUpdateData + isSet bool +} + +func (v NullableBuyXPayYPromotionUpdateData) Get() *BuyXPayYPromotionUpdateData { + return v.value +} + +func (v *NullableBuyXPayYPromotionUpdateData) Set(val *BuyXPayYPromotionUpdateData) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionUpdateData) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionUpdateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionUpdateData(val *BuyXPayYPromotionUpdateData) *NullableBuyXPayYPromotionUpdateData { + return &NullableBuyXPayYPromotionUpdateData{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionUpdateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionUpdateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_buy_x_pay_y_promotion_update_data_relationships.go b/api/model_buy_x_pay_y_promotion_update_data_relationships.go new file mode 100644 index 00000000..b0c54a4d --- /dev/null +++ b/api/model_buy_x_pay_y_promotion_update_data_relationships.go @@ -0,0 +1,341 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the BuyXPayYPromotionUpdateDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BuyXPayYPromotionUpdateDataRelationships{} + +// BuyXPayYPromotionUpdateDataRelationships struct for BuyXPayYPromotionUpdateDataRelationships +type BuyXPayYPromotionUpdateDataRelationships struct { + Market *BillingInfoValidationRuleCreateDataRelationshipsMarket `json:"market,omitempty"` + OrderAmountPromotionRule *BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule `json:"order_amount_promotion_rule,omitempty"` + SkuListPromotionRule *BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule `json:"sku_list_promotion_rule,omitempty"` + CouponCodesPromotionRule *BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule `json:"coupon_codes_promotion_rule,omitempty"` + CustomPromotionRule *BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule `json:"custom_promotion_rule,omitempty"` + SkuList *BundleCreateDataRelationshipsSkuList `json:"sku_list,omitempty"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` +} + +// NewBuyXPayYPromotionUpdateDataRelationships instantiates a new BuyXPayYPromotionUpdateDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBuyXPayYPromotionUpdateDataRelationships() *BuyXPayYPromotionUpdateDataRelationships { + this := BuyXPayYPromotionUpdateDataRelationships{} + return &this +} + +// NewBuyXPayYPromotionUpdateDataRelationshipsWithDefaults instantiates a new BuyXPayYPromotionUpdateDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBuyXPayYPromotionUpdateDataRelationshipsWithDefaults() *BuyXPayYPromotionUpdateDataRelationships { + this := BuyXPayYPromotionUpdateDataRelationships{} + return &this +} + +// GetMarket returns the Market field value if set, zero value otherwise. +func (o *BuyXPayYPromotionUpdateDataRelationships) GetMarket() BillingInfoValidationRuleCreateDataRelationshipsMarket { + if o == nil || IsNil(o.Market) { + var ret BillingInfoValidationRuleCreateDataRelationshipsMarket + return ret + } + return *o.Market +} + +// GetMarketOk returns a tuple with the Market field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionUpdateDataRelationships) GetMarketOk() (*BillingInfoValidationRuleCreateDataRelationshipsMarket, bool) { + if o == nil || IsNil(o.Market) { + return nil, false + } + return o.Market, true +} + +// HasMarket returns a boolean if a field has been set. +func (o *BuyXPayYPromotionUpdateDataRelationships) HasMarket() bool { + if o != nil && !IsNil(o.Market) { + return true + } + + return false +} + +// SetMarket gets a reference to the given BillingInfoValidationRuleCreateDataRelationshipsMarket and assigns it to the Market field. +func (o *BuyXPayYPromotionUpdateDataRelationships) SetMarket(v BillingInfoValidationRuleCreateDataRelationshipsMarket) { + o.Market = &v +} + +// GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field value if set, zero value otherwise. +func (o *BuyXPayYPromotionUpdateDataRelationships) GetOrderAmountPromotionRule() BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule { + if o == nil || IsNil(o.OrderAmountPromotionRule) { + var ret BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule + return ret + } + return *o.OrderAmountPromotionRule +} + +// GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionUpdateDataRelationships) GetOrderAmountPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule, bool) { + if o == nil || IsNil(o.OrderAmountPromotionRule) { + return nil, false + } + return o.OrderAmountPromotionRule, true +} + +// HasOrderAmountPromotionRule returns a boolean if a field has been set. +func (o *BuyXPayYPromotionUpdateDataRelationships) HasOrderAmountPromotionRule() bool { + if o != nil && !IsNil(o.OrderAmountPromotionRule) { + return true + } + + return false +} + +// SetOrderAmountPromotionRule gets a reference to the given BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule and assigns it to the OrderAmountPromotionRule field. +func (o *BuyXPayYPromotionUpdateDataRelationships) SetOrderAmountPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsOrderAmountPromotionRule) { + o.OrderAmountPromotionRule = &v +} + +// GetSkuListPromotionRule returns the SkuListPromotionRule field value if set, zero value otherwise. +func (o *BuyXPayYPromotionUpdateDataRelationships) GetSkuListPromotionRule() BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule { + if o == nil || IsNil(o.SkuListPromotionRule) { + var ret BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule + return ret + } + return *o.SkuListPromotionRule +} + +// GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionUpdateDataRelationships) GetSkuListPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule, bool) { + if o == nil || IsNil(o.SkuListPromotionRule) { + return nil, false + } + return o.SkuListPromotionRule, true +} + +// HasSkuListPromotionRule returns a boolean if a field has been set. +func (o *BuyXPayYPromotionUpdateDataRelationships) HasSkuListPromotionRule() bool { + if o != nil && !IsNil(o.SkuListPromotionRule) { + return true + } + + return false +} + +// SetSkuListPromotionRule gets a reference to the given BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule and assigns it to the SkuListPromotionRule field. +func (o *BuyXPayYPromotionUpdateDataRelationships) SetSkuListPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsSkuListPromotionRule) { + o.SkuListPromotionRule = &v +} + +// GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field value if set, zero value otherwise. +func (o *BuyXPayYPromotionUpdateDataRelationships) GetCouponCodesPromotionRule() BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule { + if o == nil || IsNil(o.CouponCodesPromotionRule) { + var ret BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule + return ret + } + return *o.CouponCodesPromotionRule +} + +// GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionUpdateDataRelationships) GetCouponCodesPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule, bool) { + if o == nil || IsNil(o.CouponCodesPromotionRule) { + return nil, false + } + return o.CouponCodesPromotionRule, true +} + +// HasCouponCodesPromotionRule returns a boolean if a field has been set. +func (o *BuyXPayYPromotionUpdateDataRelationships) HasCouponCodesPromotionRule() bool { + if o != nil && !IsNil(o.CouponCodesPromotionRule) { + return true + } + + return false +} + +// SetCouponCodesPromotionRule gets a reference to the given BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule and assigns it to the CouponCodesPromotionRule field. +func (o *BuyXPayYPromotionUpdateDataRelationships) SetCouponCodesPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) { + o.CouponCodesPromotionRule = &v +} + +// GetCustomPromotionRule returns the CustomPromotionRule field value if set, zero value otherwise. +func (o *BuyXPayYPromotionUpdateDataRelationships) GetCustomPromotionRule() BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule { + if o == nil || IsNil(o.CustomPromotionRule) { + var ret BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule + return ret + } + return *o.CustomPromotionRule +} + +// GetCustomPromotionRuleOk returns a tuple with the CustomPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionUpdateDataRelationships) GetCustomPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule, bool) { + if o == nil || IsNil(o.CustomPromotionRule) { + return nil, false + } + return o.CustomPromotionRule, true +} + +// HasCustomPromotionRule returns a boolean if a field has been set. +func (o *BuyXPayYPromotionUpdateDataRelationships) HasCustomPromotionRule() bool { + if o != nil && !IsNil(o.CustomPromotionRule) { + return true + } + + return false +} + +// SetCustomPromotionRule gets a reference to the given BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule and assigns it to the CustomPromotionRule field. +func (o *BuyXPayYPromotionUpdateDataRelationships) SetCustomPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsCustomPromotionRule) { + o.CustomPromotionRule = &v +} + +// GetSkuList returns the SkuList field value if set, zero value otherwise. +func (o *BuyXPayYPromotionUpdateDataRelationships) GetSkuList() BundleCreateDataRelationshipsSkuList { + if o == nil || IsNil(o.SkuList) { + var ret BundleCreateDataRelationshipsSkuList + return ret + } + return *o.SkuList +} + +// GetSkuListOk returns a tuple with the SkuList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionUpdateDataRelationships) GetSkuListOk() (*BundleCreateDataRelationshipsSkuList, bool) { + if o == nil || IsNil(o.SkuList) { + return nil, false + } + return o.SkuList, true +} + +// HasSkuList returns a boolean if a field has been set. +func (o *BuyXPayYPromotionUpdateDataRelationships) HasSkuList() bool { + if o != nil && !IsNil(o.SkuList) { + return true + } + + return false +} + +// SetSkuList gets a reference to the given BundleCreateDataRelationshipsSkuList and assigns it to the SkuList field. +func (o *BuyXPayYPromotionUpdateDataRelationships) SetSkuList(v BundleCreateDataRelationshipsSkuList) { + o.SkuList = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *BuyXPayYPromotionUpdateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BuyXPayYPromotionUpdateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *BuyXPayYPromotionUpdateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *BuyXPayYPromotionUpdateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + +func (o BuyXPayYPromotionUpdateDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BuyXPayYPromotionUpdateDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Market) { + toSerialize["market"] = o.Market + } + if !IsNil(o.OrderAmountPromotionRule) { + toSerialize["order_amount_promotion_rule"] = o.OrderAmountPromotionRule + } + if !IsNil(o.SkuListPromotionRule) { + toSerialize["sku_list_promotion_rule"] = o.SkuListPromotionRule + } + if !IsNil(o.CouponCodesPromotionRule) { + toSerialize["coupon_codes_promotion_rule"] = o.CouponCodesPromotionRule + } + if !IsNil(o.CustomPromotionRule) { + toSerialize["custom_promotion_rule"] = o.CustomPromotionRule + } + if !IsNil(o.SkuList) { + toSerialize["sku_list"] = o.SkuList + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} + +type NullableBuyXPayYPromotionUpdateDataRelationships struct { + value *BuyXPayYPromotionUpdateDataRelationships + isSet bool +} + +func (v NullableBuyXPayYPromotionUpdateDataRelationships) Get() *BuyXPayYPromotionUpdateDataRelationships { + return v.value +} + +func (v *NullableBuyXPayYPromotionUpdateDataRelationships) Set(val *BuyXPayYPromotionUpdateDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableBuyXPayYPromotionUpdateDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableBuyXPayYPromotionUpdateDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBuyXPayYPromotionUpdateDataRelationships(val *BuyXPayYPromotionUpdateDataRelationships) *NullableBuyXPayYPromotionUpdateDataRelationships { + return &NullableBuyXPayYPromotionUpdateDataRelationships{value: val, isSet: true} +} + +func (v NullableBuyXPayYPromotionUpdateDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBuyXPayYPromotionUpdateDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_capture.go b/api/model_capture.go index 318a6991..876b0db3 100644 --- a/api/model_capture.go +++ b/api/model_capture.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_capture_data.go b/api/model_capture_data.go index 6593b836..c71122c2 100644 --- a/api/model_capture_data.go +++ b/api/model_capture_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_capture_data_relationships.go b/api/model_capture_data_relationships.go index 29166609..7f33a98d 100644 --- a/api/model_capture_data_relationships.go +++ b/api/model_capture_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,9 +21,12 @@ var _ MappedNullable = &CaptureDataRelationships{} // CaptureDataRelationships struct for CaptureDataRelationships type CaptureDataRelationships struct { Order *AdyenPaymentDataRelationshipsOrder `json:"order,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` ReferenceAuthorization *CaptureDataRelationshipsReferenceAuthorization `json:"reference_authorization,omitempty"` Refunds *CaptureDataRelationshipsRefunds `json:"refunds,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` + Return *CaptureDataRelationshipsReturn `json:"return,omitempty"` } // NewCaptureDataRelationships instantiates a new CaptureDataRelationships object @@ -75,6 +78,102 @@ func (o *CaptureDataRelationships) SetOrder(v AdyenPaymentDataRelationshipsOrder o.Order = &v } +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *CaptureDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret AuthorizationDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CaptureDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *CaptureDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *CaptureDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { + o.Attachments = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *CaptureDataRelationships) GetEvents() AddressDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret AddressDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CaptureDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *CaptureDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *CaptureDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { + o.Events = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *CaptureDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CaptureDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *CaptureDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *CaptureDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + // GetReferenceAuthorization returns the ReferenceAuthorization field value if set, zero value otherwise. func (o *CaptureDataRelationships) GetReferenceAuthorization() CaptureDataRelationshipsReferenceAuthorization { if o == nil || IsNil(o.ReferenceAuthorization) { @@ -139,36 +238,36 @@ func (o *CaptureDataRelationships) SetRefunds(v CaptureDataRelationshipsRefunds) o.Refunds = &v } -// GetEvents returns the Events field value if set, zero value otherwise. -func (o *CaptureDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { - if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents +// GetReturn returns the Return field value if set, zero value otherwise. +func (o *CaptureDataRelationships) GetReturn() CaptureDataRelationshipsReturn { + if o == nil || IsNil(o.Return) { + var ret CaptureDataRelationshipsReturn return ret } - return *o.Events + return *o.Return } -// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// GetReturnOk returns a tuple with the Return field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CaptureDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { - if o == nil || IsNil(o.Events) { +func (o *CaptureDataRelationships) GetReturnOk() (*CaptureDataRelationshipsReturn, bool) { + if o == nil || IsNil(o.Return) { return nil, false } - return o.Events, true + return o.Return, true } -// HasEvents returns a boolean if a field has been set. -func (o *CaptureDataRelationships) HasEvents() bool { - if o != nil && !IsNil(o.Events) { +// HasReturn returns a boolean if a field has been set. +func (o *CaptureDataRelationships) HasReturn() bool { + if o != nil && !IsNil(o.Return) { return true } return false } -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *CaptureDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { - o.Events = &v +// SetReturn gets a reference to the given CaptureDataRelationshipsReturn and assigns it to the Return field. +func (o *CaptureDataRelationships) SetReturn(v CaptureDataRelationshipsReturn) { + o.Return = &v } func (o CaptureDataRelationships) MarshalJSON() ([]byte, error) { @@ -184,14 +283,23 @@ func (o CaptureDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Order) { toSerialize["order"] = o.Order } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.ReferenceAuthorization) { toSerialize["reference_authorization"] = o.ReferenceAuthorization } if !IsNil(o.Refunds) { toSerialize["refunds"] = o.Refunds } - if !IsNil(o.Events) { - toSerialize["events"] = o.Events + if !IsNil(o.Return) { + toSerialize["return"] = o.Return } return toSerialize, nil } diff --git a/api/model_capture_data_relationships_reference_authorization.go b/api/model_capture_data_relationships_reference_authorization.go index 62dbc316..d41c36ec 100644 --- a/api/model_capture_data_relationships_reference_authorization.go +++ b/api/model_capture_data_relationships_reference_authorization.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_capture_data_relationships_reference_authorization_data.go b/api/model_capture_data_relationships_reference_authorization_data.go index ea689f45..2d8e07c2 100644 --- a/api/model_capture_data_relationships_reference_authorization_data.go +++ b/api/model_capture_data_relationships_reference_authorization_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_capture_data_relationships_refunds.go b/api/model_capture_data_relationships_refunds.go index ae7e447e..0392aeaf 100644 --- a/api/model_capture_data_relationships_refunds.go +++ b/api/model_capture_data_relationships_refunds.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_capture_data_relationships_refunds_data.go b/api/model_capture_data_relationships_refunds_data.go index 85563cc5..d55e3c65 100644 --- a/api/model_capture_data_relationships_refunds_data.go +++ b/api/model_capture_data_relationships_refunds_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_capture_data_relationships_return.go b/api/model_capture_data_relationships_return.go new file mode 100644 index 00000000..2ed7e6e8 --- /dev/null +++ b/api/model_capture_data_relationships_return.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CaptureDataRelationshipsReturn type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CaptureDataRelationshipsReturn{} + +// CaptureDataRelationshipsReturn struct for CaptureDataRelationshipsReturn +type CaptureDataRelationshipsReturn struct { + Data *CaptureDataRelationshipsReturnData `json:"data,omitempty"` +} + +// NewCaptureDataRelationshipsReturn instantiates a new CaptureDataRelationshipsReturn object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCaptureDataRelationshipsReturn() *CaptureDataRelationshipsReturn { + this := CaptureDataRelationshipsReturn{} + return &this +} + +// NewCaptureDataRelationshipsReturnWithDefaults instantiates a new CaptureDataRelationshipsReturn object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCaptureDataRelationshipsReturnWithDefaults() *CaptureDataRelationshipsReturn { + this := CaptureDataRelationshipsReturn{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *CaptureDataRelationshipsReturn) GetData() CaptureDataRelationshipsReturnData { + if o == nil || IsNil(o.Data) { + var ret CaptureDataRelationshipsReturnData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CaptureDataRelationshipsReturn) GetDataOk() (*CaptureDataRelationshipsReturnData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *CaptureDataRelationshipsReturn) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given CaptureDataRelationshipsReturnData and assigns it to the Data field. +func (o *CaptureDataRelationshipsReturn) SetData(v CaptureDataRelationshipsReturnData) { + o.Data = &v +} + +func (o CaptureDataRelationshipsReturn) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CaptureDataRelationshipsReturn) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableCaptureDataRelationshipsReturn struct { + value *CaptureDataRelationshipsReturn + isSet bool +} + +func (v NullableCaptureDataRelationshipsReturn) Get() *CaptureDataRelationshipsReturn { + return v.value +} + +func (v *NullableCaptureDataRelationshipsReturn) Set(val *CaptureDataRelationshipsReturn) { + v.value = val + v.isSet = true +} + +func (v NullableCaptureDataRelationshipsReturn) IsSet() bool { + return v.isSet +} + +func (v *NullableCaptureDataRelationshipsReturn) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCaptureDataRelationshipsReturn(val *CaptureDataRelationshipsReturn) *NullableCaptureDataRelationshipsReturn { + return &NullableCaptureDataRelationshipsReturn{value: val, isSet: true} +} + +func (v NullableCaptureDataRelationshipsReturn) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCaptureDataRelationshipsReturn) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_capture_data_relationships_return_data.go b/api/model_capture_data_relationships_return_data.go new file mode 100644 index 00000000..947f29db --- /dev/null +++ b/api/model_capture_data_relationships_return_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CaptureDataRelationshipsReturnData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CaptureDataRelationshipsReturnData{} + +// CaptureDataRelationshipsReturnData struct for CaptureDataRelationshipsReturnData +type CaptureDataRelationshipsReturnData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource's id + Id interface{} `json:"id,omitempty"` +} + +// NewCaptureDataRelationshipsReturnData instantiates a new CaptureDataRelationshipsReturnData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCaptureDataRelationshipsReturnData() *CaptureDataRelationshipsReturnData { + this := CaptureDataRelationshipsReturnData{} + return &this +} + +// NewCaptureDataRelationshipsReturnDataWithDefaults instantiates a new CaptureDataRelationshipsReturnData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCaptureDataRelationshipsReturnDataWithDefaults() *CaptureDataRelationshipsReturnData { + this := CaptureDataRelationshipsReturnData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CaptureDataRelationshipsReturnData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CaptureDataRelationshipsReturnData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *CaptureDataRelationshipsReturnData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *CaptureDataRelationshipsReturnData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CaptureDataRelationshipsReturnData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CaptureDataRelationshipsReturnData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *CaptureDataRelationshipsReturnData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *CaptureDataRelationshipsReturnData) SetId(v interface{}) { + o.Id = v +} + +func (o CaptureDataRelationshipsReturnData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CaptureDataRelationshipsReturnData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableCaptureDataRelationshipsReturnData struct { + value *CaptureDataRelationshipsReturnData + isSet bool +} + +func (v NullableCaptureDataRelationshipsReturnData) Get() *CaptureDataRelationshipsReturnData { + return v.value +} + +func (v *NullableCaptureDataRelationshipsReturnData) Set(val *CaptureDataRelationshipsReturnData) { + v.value = val + v.isSet = true +} + +func (v NullableCaptureDataRelationshipsReturnData) IsSet() bool { + return v.isSet +} + +func (v *NullableCaptureDataRelationshipsReturnData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCaptureDataRelationshipsReturnData(val *CaptureDataRelationshipsReturnData) *NullableCaptureDataRelationshipsReturnData { + return &NullableCaptureDataRelationshipsReturnData{value: val, isSet: true} +} + +func (v NullableCaptureDataRelationshipsReturnData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCaptureDataRelationshipsReturnData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_capture_update.go b/api/model_capture_update.go index 64a530b5..d3ff82f4 100644 --- a/api/model_capture_update.go +++ b/api/model_capture_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_capture_update_data.go b/api/model_capture_update_data.go index 2c9d0ab1..fdbfa4c7 100644 --- a/api/model_capture_update_data.go +++ b/api/model_capture_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_carrier_account.go b/api/model_carrier_account.go index 125365a5..c67b4846 100644 --- a/api/model_carrier_account.go +++ b/api/model_carrier_account.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_carrier_account_create.go b/api/model_carrier_account_create.go new file mode 100644 index 00000000..c939850c --- /dev/null +++ b/api/model_carrier_account_create.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CarrierAccountCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CarrierAccountCreate{} + +// CarrierAccountCreate struct for CarrierAccountCreate +type CarrierAccountCreate struct { + Data CarrierAccountCreateData `json:"data"` +} + +// NewCarrierAccountCreate instantiates a new CarrierAccountCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCarrierAccountCreate(data CarrierAccountCreateData) *CarrierAccountCreate { + this := CarrierAccountCreate{} + this.Data = data + return &this +} + +// NewCarrierAccountCreateWithDefaults instantiates a new CarrierAccountCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCarrierAccountCreateWithDefaults() *CarrierAccountCreate { + this := CarrierAccountCreate{} + return &this +} + +// GetData returns the Data field value +func (o *CarrierAccountCreate) GetData() CarrierAccountCreateData { + if o == nil { + var ret CarrierAccountCreateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *CarrierAccountCreate) GetDataOk() (*CarrierAccountCreateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *CarrierAccountCreate) SetData(v CarrierAccountCreateData) { + o.Data = v +} + +func (o CarrierAccountCreate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CarrierAccountCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableCarrierAccountCreate struct { + value *CarrierAccountCreate + isSet bool +} + +func (v NullableCarrierAccountCreate) Get() *CarrierAccountCreate { + return v.value +} + +func (v *NullableCarrierAccountCreate) Set(val *CarrierAccountCreate) { + v.value = val + v.isSet = true +} + +func (v NullableCarrierAccountCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableCarrierAccountCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCarrierAccountCreate(val *CarrierAccountCreate) *NullableCarrierAccountCreate { + return &NullableCarrierAccountCreate{value: val, isSet: true} +} + +func (v NullableCarrierAccountCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCarrierAccountCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_carrier_account_create_data.go b/api/model_carrier_account_create_data.go new file mode 100644 index 00000000..b8dcea63 --- /dev/null +++ b/api/model_carrier_account_create_data.go @@ -0,0 +1,184 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CarrierAccountCreateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CarrierAccountCreateData{} + +// CarrierAccountCreateData struct for CarrierAccountCreateData +type CarrierAccountCreateData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes POSTCarrierAccounts201ResponseDataAttributes `json:"attributes"` + Relationships *BillingInfoValidationRuleUpdateDataRelationships `json:"relationships,omitempty"` +} + +// NewCarrierAccountCreateData instantiates a new CarrierAccountCreateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCarrierAccountCreateData(type_ interface{}, attributes POSTCarrierAccounts201ResponseDataAttributes) *CarrierAccountCreateData { + this := CarrierAccountCreateData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewCarrierAccountCreateDataWithDefaults instantiates a new CarrierAccountCreateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCarrierAccountCreateDataWithDefaults() *CarrierAccountCreateData { + this := CarrierAccountCreateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *CarrierAccountCreateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CarrierAccountCreateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CarrierAccountCreateData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *CarrierAccountCreateData) GetAttributes() POSTCarrierAccounts201ResponseDataAttributes { + if o == nil { + var ret POSTCarrierAccounts201ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *CarrierAccountCreateData) GetAttributesOk() (*POSTCarrierAccounts201ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *CarrierAccountCreateData) SetAttributes(v POSTCarrierAccounts201ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *CarrierAccountCreateData) GetRelationships() BillingInfoValidationRuleUpdateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret BillingInfoValidationRuleUpdateDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CarrierAccountCreateData) GetRelationshipsOk() (*BillingInfoValidationRuleUpdateDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *CarrierAccountCreateData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given BillingInfoValidationRuleUpdateDataRelationships and assigns it to the Relationships field. +func (o *CarrierAccountCreateData) SetRelationships(v BillingInfoValidationRuleUpdateDataRelationships) { + o.Relationships = &v +} + +func (o CarrierAccountCreateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CarrierAccountCreateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableCarrierAccountCreateData struct { + value *CarrierAccountCreateData + isSet bool +} + +func (v NullableCarrierAccountCreateData) Get() *CarrierAccountCreateData { + return v.value +} + +func (v *NullableCarrierAccountCreateData) Set(val *CarrierAccountCreateData) { + v.value = val + v.isSet = true +} + +func (v NullableCarrierAccountCreateData) IsSet() bool { + return v.isSet +} + +func (v *NullableCarrierAccountCreateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCarrierAccountCreateData(val *CarrierAccountCreateData) *NullableCarrierAccountCreateData { + return &NullableCarrierAccountCreateData{value: val, isSet: true} +} + +func (v NullableCarrierAccountCreateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCarrierAccountCreateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_carrier_account_data.go b/api/model_carrier_account_data.go index 7aa42e59..2f138edb 100644 --- a/api/model_carrier_account_data.go +++ b/api/model_carrier_account_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_carrier_account_update.go b/api/model_carrier_account_update.go new file mode 100644 index 00000000..fc37afba --- /dev/null +++ b/api/model_carrier_account_update.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CarrierAccountUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CarrierAccountUpdate{} + +// CarrierAccountUpdate struct for CarrierAccountUpdate +type CarrierAccountUpdate struct { + Data CarrierAccountUpdateData `json:"data"` +} + +// NewCarrierAccountUpdate instantiates a new CarrierAccountUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCarrierAccountUpdate(data CarrierAccountUpdateData) *CarrierAccountUpdate { + this := CarrierAccountUpdate{} + this.Data = data + return &this +} + +// NewCarrierAccountUpdateWithDefaults instantiates a new CarrierAccountUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCarrierAccountUpdateWithDefaults() *CarrierAccountUpdate { + this := CarrierAccountUpdate{} + return &this +} + +// GetData returns the Data field value +func (o *CarrierAccountUpdate) GetData() CarrierAccountUpdateData { + if o == nil { + var ret CarrierAccountUpdateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *CarrierAccountUpdate) GetDataOk() (*CarrierAccountUpdateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *CarrierAccountUpdate) SetData(v CarrierAccountUpdateData) { + o.Data = v +} + +func (o CarrierAccountUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CarrierAccountUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableCarrierAccountUpdate struct { + value *CarrierAccountUpdate + isSet bool +} + +func (v NullableCarrierAccountUpdate) Get() *CarrierAccountUpdate { + return v.value +} + +func (v *NullableCarrierAccountUpdate) Set(val *CarrierAccountUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableCarrierAccountUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableCarrierAccountUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCarrierAccountUpdate(val *CarrierAccountUpdate) *NullableCarrierAccountUpdate { + return &NullableCarrierAccountUpdate{value: val, isSet: true} +} + +func (v NullableCarrierAccountUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCarrierAccountUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_carrier_account_update_data.go b/api/model_carrier_account_update_data.go new file mode 100644 index 00000000..c96eea98 --- /dev/null +++ b/api/model_carrier_account_update_data.go @@ -0,0 +1,216 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CarrierAccountUpdateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CarrierAccountUpdateData{} + +// CarrierAccountUpdateData struct for CarrierAccountUpdateData +type CarrierAccountUpdateData struct { + // The resource's type + Type interface{} `json:"type"` + // The resource's id + Id interface{} `json:"id"` + Attributes PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes `json:"attributes"` + Relationships *BillingInfoValidationRuleUpdateDataRelationships `json:"relationships,omitempty"` +} + +// NewCarrierAccountUpdateData instantiates a new CarrierAccountUpdateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCarrierAccountUpdateData(type_ interface{}, id interface{}, attributes PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) *CarrierAccountUpdateData { + this := CarrierAccountUpdateData{} + this.Type = type_ + this.Id = id + this.Attributes = attributes + return &this +} + +// NewCarrierAccountUpdateDataWithDefaults instantiates a new CarrierAccountUpdateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCarrierAccountUpdateDataWithDefaults() *CarrierAccountUpdateData { + this := CarrierAccountUpdateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *CarrierAccountUpdateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CarrierAccountUpdateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CarrierAccountUpdateData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *CarrierAccountUpdateData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CarrierAccountUpdateData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CarrierAccountUpdateData) SetId(v interface{}) { + o.Id = v +} + +// GetAttributes returns the Attributes field value +func (o *CarrierAccountUpdateData) GetAttributes() PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes { + if o == nil { + var ret PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *CarrierAccountUpdateData) GetAttributesOk() (*PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *CarrierAccountUpdateData) SetAttributes(v PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *CarrierAccountUpdateData) GetRelationships() BillingInfoValidationRuleUpdateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret BillingInfoValidationRuleUpdateDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CarrierAccountUpdateData) GetRelationshipsOk() (*BillingInfoValidationRuleUpdateDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *CarrierAccountUpdateData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given BillingInfoValidationRuleUpdateDataRelationships and assigns it to the Relationships field. +func (o *CarrierAccountUpdateData) SetRelationships(v BillingInfoValidationRuleUpdateDataRelationships) { + o.Relationships = &v +} + +func (o CarrierAccountUpdateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CarrierAccountUpdateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableCarrierAccountUpdateData struct { + value *CarrierAccountUpdateData + isSet bool +} + +func (v NullableCarrierAccountUpdateData) Get() *CarrierAccountUpdateData { + return v.value +} + +func (v *NullableCarrierAccountUpdateData) Set(val *CarrierAccountUpdateData) { + v.value = val + v.isSet = true +} + +func (v NullableCarrierAccountUpdateData) IsSet() bool { + return v.isSet +} + +func (v *NullableCarrierAccountUpdateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCarrierAccountUpdateData(val *CarrierAccountUpdateData) *NullableCarrierAccountUpdateData { + return &NullableCarrierAccountUpdateData{value: val, isSet: true} +} + +func (v NullableCarrierAccountUpdateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCarrierAccountUpdateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_checkout_com_gateway.go b/api/model_checkout_com_gateway.go index 7c2cb4c9..468a4932 100644 --- a/api/model_checkout_com_gateway.go +++ b/api/model_checkout_com_gateway.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_checkout_com_gateway_create.go b/api/model_checkout_com_gateway_create.go index 39024a72..f984831d 100644 --- a/api/model_checkout_com_gateway_create.go +++ b/api/model_checkout_com_gateway_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_checkout_com_gateway_create_data.go b/api/model_checkout_com_gateway_create_data.go index a9b36c54..e93db979 100644 --- a/api/model_checkout_com_gateway_create_data.go +++ b/api/model_checkout_com_gateway_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_checkout_com_gateway_create_data_relationships.go b/api/model_checkout_com_gateway_create_data_relationships.go index d70468ea..2a04c591 100644 --- a/api/model_checkout_com_gateway_create_data_relationships.go +++ b/api/model_checkout_com_gateway_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_checkout_com_gateway_create_data_relationships_checkout_com_payments.go b/api/model_checkout_com_gateway_create_data_relationships_checkout_com_payments.go index 6157b6ea..c5f5adea 100644 --- a/api/model_checkout_com_gateway_create_data_relationships_checkout_com_payments.go +++ b/api/model_checkout_com_gateway_create_data_relationships_checkout_com_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_checkout_com_gateway_data.go b/api/model_checkout_com_gateway_data.go index 9c16f8b4..a1af0829 100644 --- a/api/model_checkout_com_gateway_data.go +++ b/api/model_checkout_com_gateway_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_checkout_com_gateway_data_relationships.go b/api/model_checkout_com_gateway_data_relationships.go index f92d4475..d47b8149 100644 --- a/api/model_checkout_com_gateway_data_relationships.go +++ b/api/model_checkout_com_gateway_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &CheckoutComGatewayDataRelationships{} // CheckoutComGatewayDataRelationships struct for CheckoutComGatewayDataRelationships type CheckoutComGatewayDataRelationships struct { PaymentMethods *AdyenGatewayDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` CheckoutComPayments *CheckoutComGatewayDataRelationshipsCheckoutComPayments `json:"checkout_com_payments,omitempty"` } @@ -73,6 +74,38 @@ func (o *CheckoutComGatewayDataRelationships) SetPaymentMethods(v AdyenGatewayDa o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *CheckoutComGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CheckoutComGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *CheckoutComGatewayDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *CheckoutComGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + // GetCheckoutComPayments returns the CheckoutComPayments field value if set, zero value otherwise. func (o *CheckoutComGatewayDataRelationships) GetCheckoutComPayments() CheckoutComGatewayDataRelationshipsCheckoutComPayments { if o == nil || IsNil(o.CheckoutComPayments) { @@ -118,6 +151,9 @@ func (o CheckoutComGatewayDataRelationships) ToMap() (map[string]interface{}, er if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.CheckoutComPayments) { toSerialize["checkout_com_payments"] = o.CheckoutComPayments } diff --git a/api/model_checkout_com_gateway_data_relationships_checkout_com_payments.go b/api/model_checkout_com_gateway_data_relationships_checkout_com_payments.go index 3a803de4..87a445f1 100644 --- a/api/model_checkout_com_gateway_data_relationships_checkout_com_payments.go +++ b/api/model_checkout_com_gateway_data_relationships_checkout_com_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_checkout_com_gateway_data_relationships_checkout_com_payments_data.go b/api/model_checkout_com_gateway_data_relationships_checkout_com_payments_data.go index 289aa487..4d810190 100644 --- a/api/model_checkout_com_gateway_data_relationships_checkout_com_payments_data.go +++ b/api/model_checkout_com_gateway_data_relationships_checkout_com_payments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_checkout_com_gateway_update.go b/api/model_checkout_com_gateway_update.go index 763ed63f..c23d2653 100644 --- a/api/model_checkout_com_gateway_update.go +++ b/api/model_checkout_com_gateway_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_checkout_com_gateway_update_data.go b/api/model_checkout_com_gateway_update_data.go index cdb4fbed..91064a3d 100644 --- a/api/model_checkout_com_gateway_update_data.go +++ b/api/model_checkout_com_gateway_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_checkout_com_payment.go b/api/model_checkout_com_payment.go index 8130f361..f31554cc 100644 --- a/api/model_checkout_com_payment.go +++ b/api/model_checkout_com_payment.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_checkout_com_payment_create.go b/api/model_checkout_com_payment_create.go index cd6d4b5c..9b10710e 100644 --- a/api/model_checkout_com_payment_create.go +++ b/api/model_checkout_com_payment_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_checkout_com_payment_create_data.go b/api/model_checkout_com_payment_create_data.go index 09e8f97a..3480781e 100644 --- a/api/model_checkout_com_payment_create_data.go +++ b/api/model_checkout_com_payment_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_checkout_com_payment_data.go b/api/model_checkout_com_payment_data.go index f540408f..434deae9 100644 --- a/api/model_checkout_com_payment_data.go +++ b/api/model_checkout_com_payment_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_checkout_com_payment_update.go b/api/model_checkout_com_payment_update.go index 4293f967..f9cac570 100644 --- a/api/model_checkout_com_payment_update.go +++ b/api/model_checkout_com_payment_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_checkout_com_payment_update_data.go b/api/model_checkout_com_payment_update_data.go index 062481ee..158b8d49 100644 --- a/api/model_checkout_com_payment_update_data.go +++ b/api/model_checkout_com_payment_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_cleanup.go b/api/model_cleanup.go index 0a3b5196..69ee2477 100644 --- a/api/model_cleanup.go +++ b/api/model_cleanup.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_cleanup_create.go b/api/model_cleanup_create.go index 75521851..df5da947 100644 --- a/api/model_cleanup_create.go +++ b/api/model_cleanup_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_cleanup_create_data.go b/api/model_cleanup_create_data.go index c2d37976..71f5aa06 100644 --- a/api/model_cleanup_create_data.go +++ b/api/model_cleanup_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_cleanup_data.go b/api/model_cleanup_data.go index 99662973..05a0dcaa 100644 --- a/api/model_cleanup_data.go +++ b/api/model_cleanup_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_cleanup_data_relationships.go b/api/model_cleanup_data_relationships.go index 709d644a..78d5e9c0 100644 --- a/api/model_cleanup_data_relationships.go +++ b/api/model_cleanup_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,8 @@ var _ MappedNullable = &CleanupDataRelationships{} // CleanupDataRelationships struct for CleanupDataRelationships type CleanupDataRelationships struct { - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewCleanupDataRelationships instantiates a new CleanupDataRelationships object @@ -41,9 +42,9 @@ func NewCleanupDataRelationshipsWithDefaults() *CleanupDataRelationships { } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *CleanupDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { +func (o *CleanupDataRelationships) GetEvents() AddressDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents + var ret AddressDataRelationshipsEvents return ret } return *o.Events @@ -51,7 +52,7 @@ func (o *CleanupDataRelationships) GetEvents() AuthorizationDataRelationshipsEve // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CleanupDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { +func (o *CleanupDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -67,11 +68,43 @@ func (o *CleanupDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *CleanupDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *CleanupDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { o.Events = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *CleanupDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CleanupDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *CleanupDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *CleanupDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o CleanupDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +118,9 @@ func (o CleanupDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_cleanup_update.go b/api/model_cleanup_update.go new file mode 100644 index 00000000..bc516476 --- /dev/null +++ b/api/model_cleanup_update.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CleanupUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CleanupUpdate{} + +// CleanupUpdate struct for CleanupUpdate +type CleanupUpdate struct { + Data CleanupUpdateData `json:"data"` +} + +// NewCleanupUpdate instantiates a new CleanupUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCleanupUpdate(data CleanupUpdateData) *CleanupUpdate { + this := CleanupUpdate{} + this.Data = data + return &this +} + +// NewCleanupUpdateWithDefaults instantiates a new CleanupUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCleanupUpdateWithDefaults() *CleanupUpdate { + this := CleanupUpdate{} + return &this +} + +// GetData returns the Data field value +func (o *CleanupUpdate) GetData() CleanupUpdateData { + if o == nil { + var ret CleanupUpdateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *CleanupUpdate) GetDataOk() (*CleanupUpdateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *CleanupUpdate) SetData(v CleanupUpdateData) { + o.Data = v +} + +func (o CleanupUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CleanupUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableCleanupUpdate struct { + value *CleanupUpdate + isSet bool +} + +func (v NullableCleanupUpdate) Get() *CleanupUpdate { + return v.value +} + +func (v *NullableCleanupUpdate) Set(val *CleanupUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableCleanupUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableCleanupUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCleanupUpdate(val *CleanupUpdate) *NullableCleanupUpdate { + return &NullableCleanupUpdate{value: val, isSet: true} +} + +func (v NullableCleanupUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCleanupUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_cleanup_update_data.go b/api/model_cleanup_update_data.go new file mode 100644 index 00000000..938e4ea5 --- /dev/null +++ b/api/model_cleanup_update_data.go @@ -0,0 +1,217 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CleanupUpdateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CleanupUpdateData{} + +// CleanupUpdateData struct for CleanupUpdateData +type CleanupUpdateData struct { + // The resource's type + Type interface{} `json:"type"` + // The resource's id + Id interface{} `json:"id"` + Attributes PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes `json:"attributes"` + Relationships interface{} `json:"relationships,omitempty"` +} + +// NewCleanupUpdateData instantiates a new CleanupUpdateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCleanupUpdateData(type_ interface{}, id interface{}, attributes PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) *CleanupUpdateData { + this := CleanupUpdateData{} + this.Type = type_ + this.Id = id + this.Attributes = attributes + return &this +} + +// NewCleanupUpdateDataWithDefaults instantiates a new CleanupUpdateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCleanupUpdateDataWithDefaults() *CleanupUpdateData { + this := CleanupUpdateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *CleanupUpdateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CleanupUpdateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CleanupUpdateData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *CleanupUpdateData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CleanupUpdateData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CleanupUpdateData) SetId(v interface{}) { + o.Id = v +} + +// GetAttributes returns the Attributes field value +func (o *CleanupUpdateData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes { + if o == nil { + var ret PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *CleanupUpdateData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *CleanupUpdateData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CleanupUpdateData) GetRelationships() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CleanupUpdateData) GetRelationshipsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return &o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *CleanupUpdateData) HasRelationships() bool { + if o != nil && IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. +func (o *CleanupUpdateData) SetRelationships(v interface{}) { + o.Relationships = v +} + +func (o CleanupUpdateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CleanupUpdateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + toSerialize["attributes"] = o.Attributes + if o.Relationships != nil { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableCleanupUpdateData struct { + value *CleanupUpdateData + isSet bool +} + +func (v NullableCleanupUpdateData) Get() *CleanupUpdateData { + return v.value +} + +func (v *NullableCleanupUpdateData) Set(val *CleanupUpdateData) { + v.value = val + v.isSet = true +} + +func (v NullableCleanupUpdateData) IsSet() bool { + return v.isSet +} + +func (v *NullableCleanupUpdateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCleanupUpdateData(val *CleanupUpdateData) *NullableCleanupUpdateData { + return &NullableCleanupUpdateData{value: val, isSet: true} +} + +func (v NullableCleanupUpdateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCleanupUpdateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_coupon.go b/api/model_coupon.go index 23a3b7b6..6de4d1de 100644 --- a/api/model_coupon.go +++ b/api/model_coupon.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_codes_promotion_rule.go b/api/model_coupon_codes_promotion_rule.go index 29a7d6dc..ad81fad8 100644 --- a/api/model_coupon_codes_promotion_rule.go +++ b/api/model_coupon_codes_promotion_rule.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_codes_promotion_rule_create.go b/api/model_coupon_codes_promotion_rule_create.go index cc1c4285..cde02bc1 100644 --- a/api/model_coupon_codes_promotion_rule_create.go +++ b/api/model_coupon_codes_promotion_rule_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_codes_promotion_rule_create_data.go b/api/model_coupon_codes_promotion_rule_create_data.go index 14e554ac..b1f4a3d5 100644 --- a/api/model_coupon_codes_promotion_rule_create_data.go +++ b/api/model_coupon_codes_promotion_rule_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_codes_promotion_rule_create_data_relationships.go b/api/model_coupon_codes_promotion_rule_create_data_relationships.go index 1855749d..3c93e06c 100644 --- a/api/model_coupon_codes_promotion_rule_create_data_relationships.go +++ b/api/model_coupon_codes_promotion_rule_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_codes_promotion_rule_create_data_relationships_coupons.go b/api/model_coupon_codes_promotion_rule_create_data_relationships_coupons.go index cd5d1ed8..2b21f897 100644 --- a/api/model_coupon_codes_promotion_rule_create_data_relationships_coupons.go +++ b/api/model_coupon_codes_promotion_rule_create_data_relationships_coupons.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,14 +20,14 @@ var _ MappedNullable = &CouponCodesPromotionRuleCreateDataRelationshipsCoupons{} // CouponCodesPromotionRuleCreateDataRelationshipsCoupons struct for CouponCodesPromotionRuleCreateDataRelationshipsCoupons type CouponCodesPromotionRuleCreateDataRelationshipsCoupons struct { - Data CouponCodesPromotionRuleDataRelationshipsCouponsData `json:"data"` + Data BuyXPayYPromotionDataRelationshipsCouponsData `json:"data"` } // NewCouponCodesPromotionRuleCreateDataRelationshipsCoupons instantiates a new CouponCodesPromotionRuleCreateDataRelationshipsCoupons object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCouponCodesPromotionRuleCreateDataRelationshipsCoupons(data CouponCodesPromotionRuleDataRelationshipsCouponsData) *CouponCodesPromotionRuleCreateDataRelationshipsCoupons { +func NewCouponCodesPromotionRuleCreateDataRelationshipsCoupons(data BuyXPayYPromotionDataRelationshipsCouponsData) *CouponCodesPromotionRuleCreateDataRelationshipsCoupons { this := CouponCodesPromotionRuleCreateDataRelationshipsCoupons{} this.Data = data return &this @@ -42,9 +42,9 @@ func NewCouponCodesPromotionRuleCreateDataRelationshipsCouponsWithDefaults() *Co } // GetData returns the Data field value -func (o *CouponCodesPromotionRuleCreateDataRelationshipsCoupons) GetData() CouponCodesPromotionRuleDataRelationshipsCouponsData { +func (o *CouponCodesPromotionRuleCreateDataRelationshipsCoupons) GetData() BuyXPayYPromotionDataRelationshipsCouponsData { if o == nil { - var ret CouponCodesPromotionRuleDataRelationshipsCouponsData + var ret BuyXPayYPromotionDataRelationshipsCouponsData return ret } @@ -53,7 +53,7 @@ func (o *CouponCodesPromotionRuleCreateDataRelationshipsCoupons) GetData() Coupo // GetDataOk returns a tuple with the Data field value // and a boolean to check if the value has been set. -func (o *CouponCodesPromotionRuleCreateDataRelationshipsCoupons) GetDataOk() (*CouponCodesPromotionRuleDataRelationshipsCouponsData, bool) { +func (o *CouponCodesPromotionRuleCreateDataRelationshipsCoupons) GetDataOk() (*BuyXPayYPromotionDataRelationshipsCouponsData, bool) { if o == nil { return nil, false } @@ -61,7 +61,7 @@ func (o *CouponCodesPromotionRuleCreateDataRelationshipsCoupons) GetDataOk() (*C } // SetData sets field value -func (o *CouponCodesPromotionRuleCreateDataRelationshipsCoupons) SetData(v CouponCodesPromotionRuleDataRelationshipsCouponsData) { +func (o *CouponCodesPromotionRuleCreateDataRelationshipsCoupons) SetData(v BuyXPayYPromotionDataRelationshipsCouponsData) { o.Data = v } diff --git a/api/model_coupon_codes_promotion_rule_create_data_relationships_promotion.go b/api/model_coupon_codes_promotion_rule_create_data_relationships_promotion.go index 48631963..b9d6127e 100644 --- a/api/model_coupon_codes_promotion_rule_create_data_relationships_promotion.go +++ b/api/model_coupon_codes_promotion_rule_create_data_relationships_promotion.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_codes_promotion_rule_data.go b/api/model_coupon_codes_promotion_rule_data.go index 316ff4e7..8af2edda 100644 --- a/api/model_coupon_codes_promotion_rule_data.go +++ b/api/model_coupon_codes_promotion_rule_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,16 +21,16 @@ var _ MappedNullable = &CouponCodesPromotionRuleData{} // CouponCodesPromotionRuleData struct for CouponCodesPromotionRuleData type CouponCodesPromotionRuleData struct { // The resource's type - Type interface{} `json:"type"` - Attributes GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes `json:"attributes"` - Relationships *CouponCodesPromotionRuleDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type"` + Attributes GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes `json:"attributes"` + Relationships *CouponCodesPromotionRuleDataRelationships `json:"relationships,omitempty"` } // NewCouponCodesPromotionRuleData instantiates a new CouponCodesPromotionRuleData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCouponCodesPromotionRuleData(type_ interface{}, attributes GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) *CouponCodesPromotionRuleData { +func NewCouponCodesPromotionRuleData(type_ interface{}, attributes GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) *CouponCodesPromotionRuleData { this := CouponCodesPromotionRuleData{} this.Type = type_ this.Attributes = attributes @@ -72,9 +72,9 @@ func (o *CouponCodesPromotionRuleData) SetType(v interface{}) { } // GetAttributes returns the Attributes field value -func (o *CouponCodesPromotionRuleData) GetAttributes() GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes { +func (o *CouponCodesPromotionRuleData) GetAttributes() GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes { if o == nil { - var ret GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes + var ret GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes return ret } @@ -83,7 +83,7 @@ func (o *CouponCodesPromotionRuleData) GetAttributes() GETBillingInfoValidationR // GetAttributesOk returns a tuple with the Attributes field value // and a boolean to check if the value has been set. -func (o *CouponCodesPromotionRuleData) GetAttributesOk() (*GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool) { +func (o *CouponCodesPromotionRuleData) GetAttributesOk() (*GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes, bool) { if o == nil { return nil, false } @@ -91,7 +91,7 @@ func (o *CouponCodesPromotionRuleData) GetAttributesOk() (*GETBillingInfoValidat } // SetAttributes sets field value -func (o *CouponCodesPromotionRuleData) SetAttributes(v GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) { +func (o *CouponCodesPromotionRuleData) SetAttributes(v GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) { o.Attributes = v } diff --git a/api/model_coupon_codes_promotion_rule_data_relationships.go b/api/model_coupon_codes_promotion_rule_data_relationships.go index b1d2adec..4be16288 100644 --- a/api/model_coupon_codes_promotion_rule_data_relationships.go +++ b/api/model_coupon_codes_promotion_rule_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,7 +21,8 @@ var _ MappedNullable = &CouponCodesPromotionRuleDataRelationships{} // CouponCodesPromotionRuleDataRelationships struct for CouponCodesPromotionRuleDataRelationships type CouponCodesPromotionRuleDataRelationships struct { Promotion *CouponCodesPromotionRuleDataRelationshipsPromotion `json:"promotion,omitempty"` - Coupons *CouponCodesPromotionRuleDataRelationshipsCoupons `json:"coupons,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` + Coupons *BuyXPayYPromotionDataRelationshipsCoupons `json:"coupons,omitempty"` } // NewCouponCodesPromotionRuleDataRelationships instantiates a new CouponCodesPromotionRuleDataRelationships object @@ -73,10 +74,42 @@ func (o *CouponCodesPromotionRuleDataRelationships) SetPromotion(v CouponCodesPr o.Promotion = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *CouponCodesPromotionRuleDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CouponCodesPromotionRuleDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *CouponCodesPromotionRuleDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *CouponCodesPromotionRuleDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + // GetCoupons returns the Coupons field value if set, zero value otherwise. -func (o *CouponCodesPromotionRuleDataRelationships) GetCoupons() CouponCodesPromotionRuleDataRelationshipsCoupons { +func (o *CouponCodesPromotionRuleDataRelationships) GetCoupons() BuyXPayYPromotionDataRelationshipsCoupons { if o == nil || IsNil(o.Coupons) { - var ret CouponCodesPromotionRuleDataRelationshipsCoupons + var ret BuyXPayYPromotionDataRelationshipsCoupons return ret } return *o.Coupons @@ -84,7 +117,7 @@ func (o *CouponCodesPromotionRuleDataRelationships) GetCoupons() CouponCodesProm // GetCouponsOk returns a tuple with the Coupons field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CouponCodesPromotionRuleDataRelationships) GetCouponsOk() (*CouponCodesPromotionRuleDataRelationshipsCoupons, bool) { +func (o *CouponCodesPromotionRuleDataRelationships) GetCouponsOk() (*BuyXPayYPromotionDataRelationshipsCoupons, bool) { if o == nil || IsNil(o.Coupons) { return nil, false } @@ -100,8 +133,8 @@ func (o *CouponCodesPromotionRuleDataRelationships) HasCoupons() bool { return false } -// SetCoupons gets a reference to the given CouponCodesPromotionRuleDataRelationshipsCoupons and assigns it to the Coupons field. -func (o *CouponCodesPromotionRuleDataRelationships) SetCoupons(v CouponCodesPromotionRuleDataRelationshipsCoupons) { +// SetCoupons gets a reference to the given BuyXPayYPromotionDataRelationshipsCoupons and assigns it to the Coupons field. +func (o *CouponCodesPromotionRuleDataRelationships) SetCoupons(v BuyXPayYPromotionDataRelationshipsCoupons) { o.Coupons = &v } @@ -118,6 +151,9 @@ func (o CouponCodesPromotionRuleDataRelationships) ToMap() (map[string]interface if !IsNil(o.Promotion) { toSerialize["promotion"] = o.Promotion } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.Coupons) { toSerialize["coupons"] = o.Coupons } diff --git a/api/model_coupon_codes_promotion_rule_data_relationships_coupons.go b/api/model_coupon_codes_promotion_rule_data_relationships_coupons.go deleted file mode 100644 index cf171225..00000000 --- a/api/model_coupon_codes_promotion_rule_data_relationships_coupons.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the CouponCodesPromotionRuleDataRelationshipsCoupons type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CouponCodesPromotionRuleDataRelationshipsCoupons{} - -// CouponCodesPromotionRuleDataRelationshipsCoupons struct for CouponCodesPromotionRuleDataRelationshipsCoupons -type CouponCodesPromotionRuleDataRelationshipsCoupons struct { - Data *CouponCodesPromotionRuleDataRelationshipsCouponsData `json:"data,omitempty"` -} - -// NewCouponCodesPromotionRuleDataRelationshipsCoupons instantiates a new CouponCodesPromotionRuleDataRelationshipsCoupons object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCouponCodesPromotionRuleDataRelationshipsCoupons() *CouponCodesPromotionRuleDataRelationshipsCoupons { - this := CouponCodesPromotionRuleDataRelationshipsCoupons{} - return &this -} - -// NewCouponCodesPromotionRuleDataRelationshipsCouponsWithDefaults instantiates a new CouponCodesPromotionRuleDataRelationshipsCoupons object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCouponCodesPromotionRuleDataRelationshipsCouponsWithDefaults() *CouponCodesPromotionRuleDataRelationshipsCoupons { - this := CouponCodesPromotionRuleDataRelationshipsCoupons{} - return &this -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *CouponCodesPromotionRuleDataRelationshipsCoupons) GetData() CouponCodesPromotionRuleDataRelationshipsCouponsData { - if o == nil || IsNil(o.Data) { - var ret CouponCodesPromotionRuleDataRelationshipsCouponsData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CouponCodesPromotionRuleDataRelationshipsCoupons) GetDataOk() (*CouponCodesPromotionRuleDataRelationshipsCouponsData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *CouponCodesPromotionRuleDataRelationshipsCoupons) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given CouponCodesPromotionRuleDataRelationshipsCouponsData and assigns it to the Data field. -func (o *CouponCodesPromotionRuleDataRelationshipsCoupons) SetData(v CouponCodesPromotionRuleDataRelationshipsCouponsData) { - o.Data = &v -} - -func (o CouponCodesPromotionRuleDataRelationshipsCoupons) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CouponCodesPromotionRuleDataRelationshipsCoupons) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableCouponCodesPromotionRuleDataRelationshipsCoupons struct { - value *CouponCodesPromotionRuleDataRelationshipsCoupons - isSet bool -} - -func (v NullableCouponCodesPromotionRuleDataRelationshipsCoupons) Get() *CouponCodesPromotionRuleDataRelationshipsCoupons { - return v.value -} - -func (v *NullableCouponCodesPromotionRuleDataRelationshipsCoupons) Set(val *CouponCodesPromotionRuleDataRelationshipsCoupons) { - v.value = val - v.isSet = true -} - -func (v NullableCouponCodesPromotionRuleDataRelationshipsCoupons) IsSet() bool { - return v.isSet -} - -func (v *NullableCouponCodesPromotionRuleDataRelationshipsCoupons) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCouponCodesPromotionRuleDataRelationshipsCoupons(val *CouponCodesPromotionRuleDataRelationshipsCoupons) *NullableCouponCodesPromotionRuleDataRelationshipsCoupons { - return &NullableCouponCodesPromotionRuleDataRelationshipsCoupons{value: val, isSet: true} -} - -func (v NullableCouponCodesPromotionRuleDataRelationshipsCoupons) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCouponCodesPromotionRuleDataRelationshipsCoupons) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_coupon_codes_promotion_rule_data_relationships_promotion.go b/api/model_coupon_codes_promotion_rule_data_relationships_promotion.go index d9fb104a..d7ccb51b 100644 --- a/api/model_coupon_codes_promotion_rule_data_relationships_promotion.go +++ b/api/model_coupon_codes_promotion_rule_data_relationships_promotion.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_codes_promotion_rule_data_relationships_promotion_data.go b/api/model_coupon_codes_promotion_rule_data_relationships_promotion_data.go index 33afc622..27cdd966 100644 --- a/api/model_coupon_codes_promotion_rule_data_relationships_promotion_data.go +++ b/api/model_coupon_codes_promotion_rule_data_relationships_promotion_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_codes_promotion_rule_update.go b/api/model_coupon_codes_promotion_rule_update.go index 26c0fe4c..8c6a65cc 100644 --- a/api/model_coupon_codes_promotion_rule_update.go +++ b/api/model_coupon_codes_promotion_rule_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_codes_promotion_rule_update_data.go b/api/model_coupon_codes_promotion_rule_update_data.go index 02cd61bc..cd746266 100644 --- a/api/model_coupon_codes_promotion_rule_update_data.go +++ b/api/model_coupon_codes_promotion_rule_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_codes_promotion_rule_update_data_relationships.go b/api/model_coupon_codes_promotion_rule_update_data_relationships.go index c9d37a11..2a14ed1b 100644 --- a/api/model_coupon_codes_promotion_rule_update_data_relationships.go +++ b/api/model_coupon_codes_promotion_rule_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_create.go b/api/model_coupon_create.go index ad5fcab3..8340c132 100644 --- a/api/model_coupon_create.go +++ b/api/model_coupon_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_create_data.go b/api/model_coupon_create_data.go index 93728563..3a9d7205 100644 --- a/api/model_coupon_create_data.go +++ b/api/model_coupon_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_create_data_relationships.go b/api/model_coupon_create_data_relationships.go index 11e7b8dd..c67ef7ad 100644 --- a/api/model_coupon_create_data_relationships.go +++ b/api/model_coupon_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,14 +20,16 @@ var _ MappedNullable = &CouponCreateDataRelationships{} // CouponCreateDataRelationships struct for CouponCreateDataRelationships type CouponCreateDataRelationships struct { - PromotionRule CouponCreateDataRelationshipsPromotionRule `json:"promotion_rule"` + PromotionRule BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule `json:"promotion_rule"` + CouponRecipient *CouponCreateDataRelationshipsCouponRecipient `json:"coupon_recipient,omitempty"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` } // NewCouponCreateDataRelationships instantiates a new CouponCreateDataRelationships object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCouponCreateDataRelationships(promotionRule CouponCreateDataRelationshipsPromotionRule) *CouponCreateDataRelationships { +func NewCouponCreateDataRelationships(promotionRule BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) *CouponCreateDataRelationships { this := CouponCreateDataRelationships{} this.PromotionRule = promotionRule return &this @@ -42,9 +44,9 @@ func NewCouponCreateDataRelationshipsWithDefaults() *CouponCreateDataRelationshi } // GetPromotionRule returns the PromotionRule field value -func (o *CouponCreateDataRelationships) GetPromotionRule() CouponCreateDataRelationshipsPromotionRule { +func (o *CouponCreateDataRelationships) GetPromotionRule() BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule { if o == nil { - var ret CouponCreateDataRelationshipsPromotionRule + var ret BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule return ret } @@ -53,7 +55,7 @@ func (o *CouponCreateDataRelationships) GetPromotionRule() CouponCreateDataRelat // GetPromotionRuleOk returns a tuple with the PromotionRule field value // and a boolean to check if the value has been set. -func (o *CouponCreateDataRelationships) GetPromotionRuleOk() (*CouponCreateDataRelationshipsPromotionRule, bool) { +func (o *CouponCreateDataRelationships) GetPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule, bool) { if o == nil { return nil, false } @@ -61,10 +63,74 @@ func (o *CouponCreateDataRelationships) GetPromotionRuleOk() (*CouponCreateDataR } // SetPromotionRule sets field value -func (o *CouponCreateDataRelationships) SetPromotionRule(v CouponCreateDataRelationshipsPromotionRule) { +func (o *CouponCreateDataRelationships) SetPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) { o.PromotionRule = v } +// GetCouponRecipient returns the CouponRecipient field value if set, zero value otherwise. +func (o *CouponCreateDataRelationships) GetCouponRecipient() CouponCreateDataRelationshipsCouponRecipient { + if o == nil || IsNil(o.CouponRecipient) { + var ret CouponCreateDataRelationshipsCouponRecipient + return ret + } + return *o.CouponRecipient +} + +// GetCouponRecipientOk returns a tuple with the CouponRecipient field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CouponCreateDataRelationships) GetCouponRecipientOk() (*CouponCreateDataRelationshipsCouponRecipient, bool) { + if o == nil || IsNil(o.CouponRecipient) { + return nil, false + } + return o.CouponRecipient, true +} + +// HasCouponRecipient returns a boolean if a field has been set. +func (o *CouponCreateDataRelationships) HasCouponRecipient() bool { + if o != nil && !IsNil(o.CouponRecipient) { + return true + } + + return false +} + +// SetCouponRecipient gets a reference to the given CouponCreateDataRelationshipsCouponRecipient and assigns it to the CouponRecipient field. +func (o *CouponCreateDataRelationships) SetCouponRecipient(v CouponCreateDataRelationshipsCouponRecipient) { + o.CouponRecipient = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CouponCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CouponCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CouponCreateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *CouponCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + func (o CouponCreateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -76,6 +142,12 @@ func (o CouponCreateDataRelationships) MarshalJSON() ([]byte, error) { func (o CouponCreateDataRelationships) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["promotion_rule"] = o.PromotionRule + if !IsNil(o.CouponRecipient) { + toSerialize["coupon_recipient"] = o.CouponRecipient + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_coupon_create_data_relationships_coupon_recipient.go b/api/model_coupon_create_data_relationships_coupon_recipient.go new file mode 100644 index 00000000..218ccb7e --- /dev/null +++ b/api/model_coupon_create_data_relationships_coupon_recipient.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CouponCreateDataRelationshipsCouponRecipient type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CouponCreateDataRelationshipsCouponRecipient{} + +// CouponCreateDataRelationshipsCouponRecipient struct for CouponCreateDataRelationshipsCouponRecipient +type CouponCreateDataRelationshipsCouponRecipient struct { + Data CouponDataRelationshipsCouponRecipientData `json:"data"` +} + +// NewCouponCreateDataRelationshipsCouponRecipient instantiates a new CouponCreateDataRelationshipsCouponRecipient object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCouponCreateDataRelationshipsCouponRecipient(data CouponDataRelationshipsCouponRecipientData) *CouponCreateDataRelationshipsCouponRecipient { + this := CouponCreateDataRelationshipsCouponRecipient{} + this.Data = data + return &this +} + +// NewCouponCreateDataRelationshipsCouponRecipientWithDefaults instantiates a new CouponCreateDataRelationshipsCouponRecipient object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCouponCreateDataRelationshipsCouponRecipientWithDefaults() *CouponCreateDataRelationshipsCouponRecipient { + this := CouponCreateDataRelationshipsCouponRecipient{} + return &this +} + +// GetData returns the Data field value +func (o *CouponCreateDataRelationshipsCouponRecipient) GetData() CouponDataRelationshipsCouponRecipientData { + if o == nil { + var ret CouponDataRelationshipsCouponRecipientData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *CouponCreateDataRelationshipsCouponRecipient) GetDataOk() (*CouponDataRelationshipsCouponRecipientData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *CouponCreateDataRelationshipsCouponRecipient) SetData(v CouponDataRelationshipsCouponRecipientData) { + o.Data = v +} + +func (o CouponCreateDataRelationshipsCouponRecipient) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CouponCreateDataRelationshipsCouponRecipient) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableCouponCreateDataRelationshipsCouponRecipient struct { + value *CouponCreateDataRelationshipsCouponRecipient + isSet bool +} + +func (v NullableCouponCreateDataRelationshipsCouponRecipient) Get() *CouponCreateDataRelationshipsCouponRecipient { + return v.value +} + +func (v *NullableCouponCreateDataRelationshipsCouponRecipient) Set(val *CouponCreateDataRelationshipsCouponRecipient) { + v.value = val + v.isSet = true +} + +func (v NullableCouponCreateDataRelationshipsCouponRecipient) IsSet() bool { + return v.isSet +} + +func (v *NullableCouponCreateDataRelationshipsCouponRecipient) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCouponCreateDataRelationshipsCouponRecipient(val *CouponCreateDataRelationshipsCouponRecipient) *NullableCouponCreateDataRelationshipsCouponRecipient { + return &NullableCouponCreateDataRelationshipsCouponRecipient{value: val, isSet: true} +} + +func (v NullableCouponCreateDataRelationshipsCouponRecipient) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCouponCreateDataRelationshipsCouponRecipient) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_coupon_create_data_relationships_promotion_rule.go b/api/model_coupon_create_data_relationships_promotion_rule.go deleted file mode 100644 index b0a0559a..00000000 --- a/api/model_coupon_create_data_relationships_promotion_rule.go +++ /dev/null @@ -1,116 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the CouponCreateDataRelationshipsPromotionRule type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CouponCreateDataRelationshipsPromotionRule{} - -// CouponCreateDataRelationshipsPromotionRule struct for CouponCreateDataRelationshipsPromotionRule -type CouponCreateDataRelationshipsPromotionRule struct { - Data CouponDataRelationshipsPromotionRuleData `json:"data"` -} - -// NewCouponCreateDataRelationshipsPromotionRule instantiates a new CouponCreateDataRelationshipsPromotionRule object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCouponCreateDataRelationshipsPromotionRule(data CouponDataRelationshipsPromotionRuleData) *CouponCreateDataRelationshipsPromotionRule { - this := CouponCreateDataRelationshipsPromotionRule{} - this.Data = data - return &this -} - -// NewCouponCreateDataRelationshipsPromotionRuleWithDefaults instantiates a new CouponCreateDataRelationshipsPromotionRule object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCouponCreateDataRelationshipsPromotionRuleWithDefaults() *CouponCreateDataRelationshipsPromotionRule { - this := CouponCreateDataRelationshipsPromotionRule{} - return &this -} - -// GetData returns the Data field value -func (o *CouponCreateDataRelationshipsPromotionRule) GetData() CouponDataRelationshipsPromotionRuleData { - if o == nil { - var ret CouponDataRelationshipsPromotionRuleData - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *CouponCreateDataRelationshipsPromotionRule) GetDataOk() (*CouponDataRelationshipsPromotionRuleData, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *CouponCreateDataRelationshipsPromotionRule) SetData(v CouponDataRelationshipsPromotionRuleData) { - o.Data = v -} - -func (o CouponCreateDataRelationshipsPromotionRule) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CouponCreateDataRelationshipsPromotionRule) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - return toSerialize, nil -} - -type NullableCouponCreateDataRelationshipsPromotionRule struct { - value *CouponCreateDataRelationshipsPromotionRule - isSet bool -} - -func (v NullableCouponCreateDataRelationshipsPromotionRule) Get() *CouponCreateDataRelationshipsPromotionRule { - return v.value -} - -func (v *NullableCouponCreateDataRelationshipsPromotionRule) Set(val *CouponCreateDataRelationshipsPromotionRule) { - v.value = val - v.isSet = true -} - -func (v NullableCouponCreateDataRelationshipsPromotionRule) IsSet() bool { - return v.isSet -} - -func (v *NullableCouponCreateDataRelationshipsPromotionRule) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCouponCreateDataRelationshipsPromotionRule(val *CouponCreateDataRelationshipsPromotionRule) *NullableCouponCreateDataRelationshipsPromotionRule { - return &NullableCouponCreateDataRelationshipsPromotionRule{value: val, isSet: true} -} - -func (v NullableCouponCreateDataRelationshipsPromotionRule) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCouponCreateDataRelationshipsPromotionRule) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_coupon_data.go b/api/model_coupon_data.go index 20009905..56bb9426 100644 --- a/api/model_coupon_data.go +++ b/api/model_coupon_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_data_relationships.go b/api/model_coupon_data_relationships.go index 4f03e5ad..9d7eef79 100644 --- a/api/model_coupon_data_relationships.go +++ b/api/model_coupon_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,11 @@ var _ MappedNullable = &CouponDataRelationships{} // CouponDataRelationships struct for CouponDataRelationships type CouponDataRelationships struct { - PromotionRule *CouponDataRelationshipsPromotionRule `json:"promotion_rule,omitempty"` + PromotionRule *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule `json:"promotion_rule,omitempty"` + CouponRecipient *CouponDataRelationshipsCouponRecipient `json:"coupon_recipient,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Tags *AddressDataRelationshipsTags `json:"tags,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewCouponDataRelationships instantiates a new CouponDataRelationships object @@ -41,9 +45,9 @@ func NewCouponDataRelationshipsWithDefaults() *CouponDataRelationships { } // GetPromotionRule returns the PromotionRule field value if set, zero value otherwise. -func (o *CouponDataRelationships) GetPromotionRule() CouponDataRelationshipsPromotionRule { +func (o *CouponDataRelationships) GetPromotionRule() BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule { if o == nil || IsNil(o.PromotionRule) { - var ret CouponDataRelationshipsPromotionRule + var ret BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule return ret } return *o.PromotionRule @@ -51,7 +55,7 @@ func (o *CouponDataRelationships) GetPromotionRule() CouponDataRelationshipsProm // GetPromotionRuleOk returns a tuple with the PromotionRule field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CouponDataRelationships) GetPromotionRuleOk() (*CouponDataRelationshipsPromotionRule, bool) { +func (o *CouponDataRelationships) GetPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule, bool) { if o == nil || IsNil(o.PromotionRule) { return nil, false } @@ -67,11 +71,139 @@ func (o *CouponDataRelationships) HasPromotionRule() bool { return false } -// SetPromotionRule gets a reference to the given CouponDataRelationshipsPromotionRule and assigns it to the PromotionRule field. -func (o *CouponDataRelationships) SetPromotionRule(v CouponDataRelationshipsPromotionRule) { +// SetPromotionRule gets a reference to the given BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule and assigns it to the PromotionRule field. +func (o *CouponDataRelationships) SetPromotionRule(v BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) { o.PromotionRule = &v } +// GetCouponRecipient returns the CouponRecipient field value if set, zero value otherwise. +func (o *CouponDataRelationships) GetCouponRecipient() CouponDataRelationshipsCouponRecipient { + if o == nil || IsNil(o.CouponRecipient) { + var ret CouponDataRelationshipsCouponRecipient + return ret + } + return *o.CouponRecipient +} + +// GetCouponRecipientOk returns a tuple with the CouponRecipient field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CouponDataRelationships) GetCouponRecipientOk() (*CouponDataRelationshipsCouponRecipient, bool) { + if o == nil || IsNil(o.CouponRecipient) { + return nil, false + } + return o.CouponRecipient, true +} + +// HasCouponRecipient returns a boolean if a field has been set. +func (o *CouponDataRelationships) HasCouponRecipient() bool { + if o != nil && !IsNil(o.CouponRecipient) { + return true + } + + return false +} + +// SetCouponRecipient gets a reference to the given CouponDataRelationshipsCouponRecipient and assigns it to the CouponRecipient field. +func (o *CouponDataRelationships) SetCouponRecipient(v CouponDataRelationshipsCouponRecipient) { + o.CouponRecipient = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *CouponDataRelationships) GetEvents() AddressDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret AddressDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CouponDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *CouponDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *CouponDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CouponDataRelationships) GetTags() AddressDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CouponDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CouponDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressDataRelationshipsTags and assigns it to the Tags field. +func (o *CouponDataRelationships) SetTags(v AddressDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *CouponDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CouponDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *CouponDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *CouponDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o CouponDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +217,18 @@ func (o CouponDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.PromotionRule) { toSerialize["promotion_rule"] = o.PromotionRule } + if !IsNil(o.CouponRecipient) { + toSerialize["coupon_recipient"] = o.CouponRecipient + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_coupon_data_relationships_coupon_recipient.go b/api/model_coupon_data_relationships_coupon_recipient.go new file mode 100644 index 00000000..af02e417 --- /dev/null +++ b/api/model_coupon_data_relationships_coupon_recipient.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CouponDataRelationshipsCouponRecipient type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CouponDataRelationshipsCouponRecipient{} + +// CouponDataRelationshipsCouponRecipient struct for CouponDataRelationshipsCouponRecipient +type CouponDataRelationshipsCouponRecipient struct { + Data *CouponDataRelationshipsCouponRecipientData `json:"data,omitempty"` +} + +// NewCouponDataRelationshipsCouponRecipient instantiates a new CouponDataRelationshipsCouponRecipient object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCouponDataRelationshipsCouponRecipient() *CouponDataRelationshipsCouponRecipient { + this := CouponDataRelationshipsCouponRecipient{} + return &this +} + +// NewCouponDataRelationshipsCouponRecipientWithDefaults instantiates a new CouponDataRelationshipsCouponRecipient object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCouponDataRelationshipsCouponRecipientWithDefaults() *CouponDataRelationshipsCouponRecipient { + this := CouponDataRelationshipsCouponRecipient{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *CouponDataRelationshipsCouponRecipient) GetData() CouponDataRelationshipsCouponRecipientData { + if o == nil || IsNil(o.Data) { + var ret CouponDataRelationshipsCouponRecipientData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CouponDataRelationshipsCouponRecipient) GetDataOk() (*CouponDataRelationshipsCouponRecipientData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *CouponDataRelationshipsCouponRecipient) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given CouponDataRelationshipsCouponRecipientData and assigns it to the Data field. +func (o *CouponDataRelationshipsCouponRecipient) SetData(v CouponDataRelationshipsCouponRecipientData) { + o.Data = &v +} + +func (o CouponDataRelationshipsCouponRecipient) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CouponDataRelationshipsCouponRecipient) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableCouponDataRelationshipsCouponRecipient struct { + value *CouponDataRelationshipsCouponRecipient + isSet bool +} + +func (v NullableCouponDataRelationshipsCouponRecipient) Get() *CouponDataRelationshipsCouponRecipient { + return v.value +} + +func (v *NullableCouponDataRelationshipsCouponRecipient) Set(val *CouponDataRelationshipsCouponRecipient) { + v.value = val + v.isSet = true +} + +func (v NullableCouponDataRelationshipsCouponRecipient) IsSet() bool { + return v.isSet +} + +func (v *NullableCouponDataRelationshipsCouponRecipient) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCouponDataRelationshipsCouponRecipient(val *CouponDataRelationshipsCouponRecipient) *NullableCouponDataRelationshipsCouponRecipient { + return &NullableCouponDataRelationshipsCouponRecipient{value: val, isSet: true} +} + +func (v NullableCouponDataRelationshipsCouponRecipient) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCouponDataRelationshipsCouponRecipient) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_return_data_relationships_return_line_items_data.go b/api/model_coupon_data_relationships_coupon_recipient_data.go similarity index 55% rename from api/model_return_data_relationships_return_line_items_data.go rename to api/model_coupon_data_relationships_coupon_recipient_data.go index 31f09c31..d7dfb290 100644 --- a/api/model_return_data_relationships_return_line_items_data.go +++ b/api/model_coupon_data_relationships_coupon_recipient_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the ReturnDataRelationshipsReturnLineItemsData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ReturnDataRelationshipsReturnLineItemsData{} +// checks if the CouponDataRelationshipsCouponRecipientData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CouponDataRelationshipsCouponRecipientData{} -// ReturnDataRelationshipsReturnLineItemsData struct for ReturnDataRelationshipsReturnLineItemsData -type ReturnDataRelationshipsReturnLineItemsData struct { +// CouponDataRelationshipsCouponRecipientData struct for CouponDataRelationshipsCouponRecipientData +type CouponDataRelationshipsCouponRecipientData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource's id Id interface{} `json:"id,omitempty"` } -// NewReturnDataRelationshipsReturnLineItemsData instantiates a new ReturnDataRelationshipsReturnLineItemsData object +// NewCouponDataRelationshipsCouponRecipientData instantiates a new CouponDataRelationshipsCouponRecipientData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewReturnDataRelationshipsReturnLineItemsData() *ReturnDataRelationshipsReturnLineItemsData { - this := ReturnDataRelationshipsReturnLineItemsData{} +func NewCouponDataRelationshipsCouponRecipientData() *CouponDataRelationshipsCouponRecipientData { + this := CouponDataRelationshipsCouponRecipientData{} return &this } -// NewReturnDataRelationshipsReturnLineItemsDataWithDefaults instantiates a new ReturnDataRelationshipsReturnLineItemsData object +// NewCouponDataRelationshipsCouponRecipientDataWithDefaults instantiates a new CouponDataRelationshipsCouponRecipientData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewReturnDataRelationshipsReturnLineItemsDataWithDefaults() *ReturnDataRelationshipsReturnLineItemsData { - this := ReturnDataRelationshipsReturnLineItemsData{} +func NewCouponDataRelationshipsCouponRecipientDataWithDefaults() *CouponDataRelationshipsCouponRecipientData { + this := CouponDataRelationshipsCouponRecipientData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ReturnDataRelationshipsReturnLineItemsData) GetType() interface{} { +func (o *CouponDataRelationshipsCouponRecipientData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *ReturnDataRelationshipsReturnLineItemsData) GetType() interface{} { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ReturnDataRelationshipsReturnLineItemsData) GetTypeOk() (*interface{}, bool) { +func (o *CouponDataRelationshipsCouponRecipientData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *ReturnDataRelationshipsReturnLineItemsData) GetTypeOk() (*interface{}, } // HasType returns a boolean if a field has been set. -func (o *ReturnDataRelationshipsReturnLineItemsData) HasType() bool { +func (o *CouponDataRelationshipsCouponRecipientData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *ReturnDataRelationshipsReturnLineItemsData) HasType() bool { } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *ReturnDataRelationshipsReturnLineItemsData) SetType(v interface{}) { +func (o *CouponDataRelationshipsCouponRecipientData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ReturnDataRelationshipsReturnLineItemsData) GetId() interface{} { +func (o *CouponDataRelationshipsCouponRecipientData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *ReturnDataRelationshipsReturnLineItemsData) GetId() interface{} { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ReturnDataRelationshipsReturnLineItemsData) GetIdOk() (*interface{}, bool) { +func (o *CouponDataRelationshipsCouponRecipientData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *ReturnDataRelationshipsReturnLineItemsData) GetIdOk() (*interface{}, bo } // HasId returns a boolean if a field has been set. -func (o *ReturnDataRelationshipsReturnLineItemsData) HasId() bool { +func (o *CouponDataRelationshipsCouponRecipientData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *ReturnDataRelationshipsReturnLineItemsData) HasId() bool { } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *ReturnDataRelationshipsReturnLineItemsData) SetId(v interface{}) { +func (o *CouponDataRelationshipsCouponRecipientData) SetId(v interface{}) { o.Id = v } -func (o ReturnDataRelationshipsReturnLineItemsData) MarshalJSON() ([]byte, error) { +func (o CouponDataRelationshipsCouponRecipientData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o ReturnDataRelationshipsReturnLineItemsData) MarshalJSON() ([]byte, error return json.Marshal(toSerialize) } -func (o ReturnDataRelationshipsReturnLineItemsData) ToMap() (map[string]interface{}, error) { +func (o CouponDataRelationshipsCouponRecipientData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o ReturnDataRelationshipsReturnLineItemsData) ToMap() (map[string]interfac return toSerialize, nil } -type NullableReturnDataRelationshipsReturnLineItemsData struct { - value *ReturnDataRelationshipsReturnLineItemsData +type NullableCouponDataRelationshipsCouponRecipientData struct { + value *CouponDataRelationshipsCouponRecipientData isSet bool } -func (v NullableReturnDataRelationshipsReturnLineItemsData) Get() *ReturnDataRelationshipsReturnLineItemsData { +func (v NullableCouponDataRelationshipsCouponRecipientData) Get() *CouponDataRelationshipsCouponRecipientData { return v.value } -func (v *NullableReturnDataRelationshipsReturnLineItemsData) Set(val *ReturnDataRelationshipsReturnLineItemsData) { +func (v *NullableCouponDataRelationshipsCouponRecipientData) Set(val *CouponDataRelationshipsCouponRecipientData) { v.value = val v.isSet = true } -func (v NullableReturnDataRelationshipsReturnLineItemsData) IsSet() bool { +func (v NullableCouponDataRelationshipsCouponRecipientData) IsSet() bool { return v.isSet } -func (v *NullableReturnDataRelationshipsReturnLineItemsData) Unset() { +func (v *NullableCouponDataRelationshipsCouponRecipientData) Unset() { v.value = nil v.isSet = false } -func NewNullableReturnDataRelationshipsReturnLineItemsData(val *ReturnDataRelationshipsReturnLineItemsData) *NullableReturnDataRelationshipsReturnLineItemsData { - return &NullableReturnDataRelationshipsReturnLineItemsData{value: val, isSet: true} +func NewNullableCouponDataRelationshipsCouponRecipientData(val *CouponDataRelationshipsCouponRecipientData) *NullableCouponDataRelationshipsCouponRecipientData { + return &NullableCouponDataRelationshipsCouponRecipientData{value: val, isSet: true} } -func (v NullableReturnDataRelationshipsReturnLineItemsData) MarshalJSON() ([]byte, error) { +func (v NullableCouponDataRelationshipsCouponRecipientData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableReturnDataRelationshipsReturnLineItemsData) UnmarshalJSON(src []byte) error { +func (v *NullableCouponDataRelationshipsCouponRecipientData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_coupon_data_relationships_promotion_rule.go b/api/model_coupon_data_relationships_promotion_rule.go deleted file mode 100644 index 74690969..00000000 --- a/api/model_coupon_data_relationships_promotion_rule.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the CouponDataRelationshipsPromotionRule type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CouponDataRelationshipsPromotionRule{} - -// CouponDataRelationshipsPromotionRule struct for CouponDataRelationshipsPromotionRule -type CouponDataRelationshipsPromotionRule struct { - Data *CouponDataRelationshipsPromotionRuleData `json:"data,omitempty"` -} - -// NewCouponDataRelationshipsPromotionRule instantiates a new CouponDataRelationshipsPromotionRule object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCouponDataRelationshipsPromotionRule() *CouponDataRelationshipsPromotionRule { - this := CouponDataRelationshipsPromotionRule{} - return &this -} - -// NewCouponDataRelationshipsPromotionRuleWithDefaults instantiates a new CouponDataRelationshipsPromotionRule object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCouponDataRelationshipsPromotionRuleWithDefaults() *CouponDataRelationshipsPromotionRule { - this := CouponDataRelationshipsPromotionRule{} - return &this -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *CouponDataRelationshipsPromotionRule) GetData() CouponDataRelationshipsPromotionRuleData { - if o == nil || IsNil(o.Data) { - var ret CouponDataRelationshipsPromotionRuleData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CouponDataRelationshipsPromotionRule) GetDataOk() (*CouponDataRelationshipsPromotionRuleData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *CouponDataRelationshipsPromotionRule) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given CouponDataRelationshipsPromotionRuleData and assigns it to the Data field. -func (o *CouponDataRelationshipsPromotionRule) SetData(v CouponDataRelationshipsPromotionRuleData) { - o.Data = &v -} - -func (o CouponDataRelationshipsPromotionRule) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CouponDataRelationshipsPromotionRule) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableCouponDataRelationshipsPromotionRule struct { - value *CouponDataRelationshipsPromotionRule - isSet bool -} - -func (v NullableCouponDataRelationshipsPromotionRule) Get() *CouponDataRelationshipsPromotionRule { - return v.value -} - -func (v *NullableCouponDataRelationshipsPromotionRule) Set(val *CouponDataRelationshipsPromotionRule) { - v.value = val - v.isSet = true -} - -func (v NullableCouponDataRelationshipsPromotionRule) IsSet() bool { - return v.isSet -} - -func (v *NullableCouponDataRelationshipsPromotionRule) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCouponDataRelationshipsPromotionRule(val *CouponDataRelationshipsPromotionRule) *NullableCouponDataRelationshipsPromotionRule { - return &NullableCouponDataRelationshipsPromotionRule{value: val, isSet: true} -} - -func (v NullableCouponDataRelationshipsPromotionRule) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCouponDataRelationshipsPromotionRule) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_coupon_recipient.go b/api/model_coupon_recipient.go index 123e32d6..9b04f493 100644 --- a/api/model_coupon_recipient.go +++ b/api/model_coupon_recipient.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_recipient_create.go b/api/model_coupon_recipient_create.go index 65dd9b78..c34ca875 100644 --- a/api/model_coupon_recipient_create.go +++ b/api/model_coupon_recipient_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_recipient_create_data.go b/api/model_coupon_recipient_create_data.go index fd5cc2cd..a88dc6c2 100644 --- a/api/model_coupon_recipient_create_data.go +++ b/api/model_coupon_recipient_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_recipient_create_data_relationships.go b/api/model_coupon_recipient_create_data_relationships.go index 3d54993f..1e3e7ecc 100644 --- a/api/model_coupon_recipient_create_data_relationships.go +++ b/api/model_coupon_recipient_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_recipient_create_data_relationships_customer.go b/api/model_coupon_recipient_create_data_relationships_customer.go index 12129128..6616c4b5 100644 --- a/api/model_coupon_recipient_create_data_relationships_customer.go +++ b/api/model_coupon_recipient_create_data_relationships_customer.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_recipient_data.go b/api/model_coupon_recipient_data.go index d44a26c5..773e6bd3 100644 --- a/api/model_coupon_recipient_data.go +++ b/api/model_coupon_recipient_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_recipient_data_relationships.go b/api/model_coupon_recipient_data_relationships.go index cb72003f..ff9042d2 100644 --- a/api/model_coupon_recipient_data_relationships.go +++ b/api/model_coupon_recipient_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,9 @@ var _ MappedNullable = &CouponRecipientDataRelationships{} // CouponRecipientDataRelationships struct for CouponRecipientDataRelationships type CouponRecipientDataRelationships struct { - Customer *CouponRecipientDataRelationshipsCustomer `json:"customer,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Customer *CouponRecipientDataRelationshipsCustomer `json:"customer,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewCouponRecipientDataRelationships instantiates a new CouponRecipientDataRelationships object @@ -74,9 +75,9 @@ func (o *CouponRecipientDataRelationships) SetCustomer(v CouponRecipientDataRela } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *CouponRecipientDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *CouponRecipientDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -84,7 +85,7 @@ func (o *CouponRecipientDataRelationships) GetAttachments() AvalaraAccountDataRe // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CouponRecipientDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *CouponRecipientDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -100,11 +101,43 @@ func (o *CouponRecipientDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *CouponRecipientDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *CouponRecipientDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *CouponRecipientDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CouponRecipientDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *CouponRecipientDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *CouponRecipientDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o CouponRecipientDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o CouponRecipientDataRelationships) ToMap() (map[string]interface{}, error if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_coupon_recipient_data_relationships_customer.go b/api/model_coupon_recipient_data_relationships_customer.go index a8bd10f6..2dfa81c2 100644 --- a/api/model_coupon_recipient_data_relationships_customer.go +++ b/api/model_coupon_recipient_data_relationships_customer.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_recipient_data_relationships_customer_data.go b/api/model_coupon_recipient_data_relationships_customer_data.go index 6cefb6c9..61e5b916 100644 --- a/api/model_coupon_recipient_data_relationships_customer_data.go +++ b/api/model_coupon_recipient_data_relationships_customer_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_recipient_update.go b/api/model_coupon_recipient_update.go index f03ed33e..2380420c 100644 --- a/api/model_coupon_recipient_update.go +++ b/api/model_coupon_recipient_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_recipient_update_data.go b/api/model_coupon_recipient_update_data.go index c862a882..04407f18 100644 --- a/api/model_coupon_recipient_update_data.go +++ b/api/model_coupon_recipient_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_update.go b/api/model_coupon_update.go index 8fa88639..83f3923c 100644 --- a/api/model_coupon_update.go +++ b/api/model_coupon_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_update_data.go b/api/model_coupon_update_data.go index d00bfa9d..77577490 100644 --- a/api/model_coupon_update_data.go +++ b/api/model_coupon_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_coupon_update_data_relationships.go b/api/model_coupon_update_data_relationships.go index 4ca77ed4..d742c0e7 100644 --- a/api/model_coupon_update_data_relationships.go +++ b/api/model_coupon_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,9 @@ var _ MappedNullable = &CouponUpdateDataRelationships{} // CouponUpdateDataRelationships struct for CouponUpdateDataRelationships type CouponUpdateDataRelationships struct { - PromotionRule *CouponCreateDataRelationshipsPromotionRule `json:"promotion_rule,omitempty"` + PromotionRule *BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule `json:"promotion_rule,omitempty"` + CouponRecipient *CouponCreateDataRelationshipsCouponRecipient `json:"coupon_recipient,omitempty"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` } // NewCouponUpdateDataRelationships instantiates a new CouponUpdateDataRelationships object @@ -41,9 +43,9 @@ func NewCouponUpdateDataRelationshipsWithDefaults() *CouponUpdateDataRelationshi } // GetPromotionRule returns the PromotionRule field value if set, zero value otherwise. -func (o *CouponUpdateDataRelationships) GetPromotionRule() CouponCreateDataRelationshipsPromotionRule { +func (o *CouponUpdateDataRelationships) GetPromotionRule() BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule { if o == nil || IsNil(o.PromotionRule) { - var ret CouponCreateDataRelationshipsPromotionRule + var ret BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule return ret } return *o.PromotionRule @@ -51,7 +53,7 @@ func (o *CouponUpdateDataRelationships) GetPromotionRule() CouponCreateDataRelat // GetPromotionRuleOk returns a tuple with the PromotionRule field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CouponUpdateDataRelationships) GetPromotionRuleOk() (*CouponCreateDataRelationshipsPromotionRule, bool) { +func (o *CouponUpdateDataRelationships) GetPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule, bool) { if o == nil || IsNil(o.PromotionRule) { return nil, false } @@ -67,11 +69,75 @@ func (o *CouponUpdateDataRelationships) HasPromotionRule() bool { return false } -// SetPromotionRule gets a reference to the given CouponCreateDataRelationshipsPromotionRule and assigns it to the PromotionRule field. -func (o *CouponUpdateDataRelationships) SetPromotionRule(v CouponCreateDataRelationshipsPromotionRule) { +// SetPromotionRule gets a reference to the given BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule and assigns it to the PromotionRule field. +func (o *CouponUpdateDataRelationships) SetPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) { o.PromotionRule = &v } +// GetCouponRecipient returns the CouponRecipient field value if set, zero value otherwise. +func (o *CouponUpdateDataRelationships) GetCouponRecipient() CouponCreateDataRelationshipsCouponRecipient { + if o == nil || IsNil(o.CouponRecipient) { + var ret CouponCreateDataRelationshipsCouponRecipient + return ret + } + return *o.CouponRecipient +} + +// GetCouponRecipientOk returns a tuple with the CouponRecipient field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CouponUpdateDataRelationships) GetCouponRecipientOk() (*CouponCreateDataRelationshipsCouponRecipient, bool) { + if o == nil || IsNil(o.CouponRecipient) { + return nil, false + } + return o.CouponRecipient, true +} + +// HasCouponRecipient returns a boolean if a field has been set. +func (o *CouponUpdateDataRelationships) HasCouponRecipient() bool { + if o != nil && !IsNil(o.CouponRecipient) { + return true + } + + return false +} + +// SetCouponRecipient gets a reference to the given CouponCreateDataRelationshipsCouponRecipient and assigns it to the CouponRecipient field. +func (o *CouponUpdateDataRelationships) SetCouponRecipient(v CouponCreateDataRelationshipsCouponRecipient) { + o.CouponRecipient = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CouponUpdateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CouponUpdateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CouponUpdateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *CouponUpdateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + func (o CouponUpdateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +151,12 @@ func (o CouponUpdateDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.PromotionRule) { toSerialize["promotion_rule"] = o.PromotionRule } + if !IsNil(o.CouponRecipient) { + toSerialize["coupon_recipient"] = o.CouponRecipient + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_order_validation_rule.go b/api/model_custom_promotion_rule.go similarity index 50% rename from api/model_order_validation_rule.go rename to api/model_custom_promotion_rule.go index b891a1d1..bd01d452 100644 --- a/api/model_order_validation_rule.go +++ b/api/model_custom_promotion_rule.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,35 +15,35 @@ import ( "encoding/json" ) -// checks if the OrderValidationRule type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &OrderValidationRule{} +// checks if the CustomPromotionRule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CustomPromotionRule{} -// OrderValidationRule struct for OrderValidationRule -type OrderValidationRule struct { - Data *OrderValidationRuleData `json:"data,omitempty"` +// CustomPromotionRule struct for CustomPromotionRule +type CustomPromotionRule struct { + Data *CustomPromotionRuleData `json:"data,omitempty"` } -// NewOrderValidationRule instantiates a new OrderValidationRule object +// NewCustomPromotionRule instantiates a new CustomPromotionRule object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewOrderValidationRule() *OrderValidationRule { - this := OrderValidationRule{} +func NewCustomPromotionRule() *CustomPromotionRule { + this := CustomPromotionRule{} return &this } -// NewOrderValidationRuleWithDefaults instantiates a new OrderValidationRule object +// NewCustomPromotionRuleWithDefaults instantiates a new CustomPromotionRule object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewOrderValidationRuleWithDefaults() *OrderValidationRule { - this := OrderValidationRule{} +func NewCustomPromotionRuleWithDefaults() *CustomPromotionRule { + this := CustomPromotionRule{} return &this } // GetData returns the Data field value if set, zero value otherwise. -func (o *OrderValidationRule) GetData() OrderValidationRuleData { +func (o *CustomPromotionRule) GetData() CustomPromotionRuleData { if o == nil || IsNil(o.Data) { - var ret OrderValidationRuleData + var ret CustomPromotionRuleData return ret } return *o.Data @@ -51,7 +51,7 @@ func (o *OrderValidationRule) GetData() OrderValidationRuleData { // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *OrderValidationRule) GetDataOk() (*OrderValidationRuleData, bool) { +func (o *CustomPromotionRule) GetDataOk() (*CustomPromotionRuleData, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -59,7 +59,7 @@ func (o *OrderValidationRule) GetDataOk() (*OrderValidationRuleData, bool) { } // HasData returns a boolean if a field has been set. -func (o *OrderValidationRule) HasData() bool { +func (o *CustomPromotionRule) HasData() bool { if o != nil && !IsNil(o.Data) { return true } @@ -67,12 +67,12 @@ func (o *OrderValidationRule) HasData() bool { return false } -// SetData gets a reference to the given OrderValidationRuleData and assigns it to the Data field. -func (o *OrderValidationRule) SetData(v OrderValidationRuleData) { +// SetData gets a reference to the given CustomPromotionRuleData and assigns it to the Data field. +func (o *CustomPromotionRule) SetData(v CustomPromotionRuleData) { o.Data = &v } -func (o OrderValidationRule) MarshalJSON() ([]byte, error) { +func (o CustomPromotionRule) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -80,7 +80,7 @@ func (o OrderValidationRule) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o OrderValidationRule) ToMap() (map[string]interface{}, error) { +func (o CustomPromotionRule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Data) { toSerialize["data"] = o.Data @@ -88,38 +88,38 @@ func (o OrderValidationRule) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -type NullableOrderValidationRule struct { - value *OrderValidationRule +type NullableCustomPromotionRule struct { + value *CustomPromotionRule isSet bool } -func (v NullableOrderValidationRule) Get() *OrderValidationRule { +func (v NullableCustomPromotionRule) Get() *CustomPromotionRule { return v.value } -func (v *NullableOrderValidationRule) Set(val *OrderValidationRule) { +func (v *NullableCustomPromotionRule) Set(val *CustomPromotionRule) { v.value = val v.isSet = true } -func (v NullableOrderValidationRule) IsSet() bool { +func (v NullableCustomPromotionRule) IsSet() bool { return v.isSet } -func (v *NullableOrderValidationRule) Unset() { +func (v *NullableCustomPromotionRule) Unset() { v.value = nil v.isSet = false } -func NewNullableOrderValidationRule(val *OrderValidationRule) *NullableOrderValidationRule { - return &NullableOrderValidationRule{value: val, isSet: true} +func NewNullableCustomPromotionRule(val *CustomPromotionRule) *NullableCustomPromotionRule { + return &NullableCustomPromotionRule{value: val, isSet: true} } -func (v NullableOrderValidationRule) MarshalJSON() ([]byte, error) { +func (v NullableCustomPromotionRule) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableOrderValidationRule) UnmarshalJSON(src []byte) error { +func (v *NullableCustomPromotionRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_custom_promotion_rule_create.go b/api/model_custom_promotion_rule_create.go new file mode 100644 index 00000000..4a711b4b --- /dev/null +++ b/api/model_custom_promotion_rule_create.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CustomPromotionRuleCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CustomPromotionRuleCreate{} + +// CustomPromotionRuleCreate struct for CustomPromotionRuleCreate +type CustomPromotionRuleCreate struct { + Data CustomPromotionRuleCreateData `json:"data"` +} + +// NewCustomPromotionRuleCreate instantiates a new CustomPromotionRuleCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCustomPromotionRuleCreate(data CustomPromotionRuleCreateData) *CustomPromotionRuleCreate { + this := CustomPromotionRuleCreate{} + this.Data = data + return &this +} + +// NewCustomPromotionRuleCreateWithDefaults instantiates a new CustomPromotionRuleCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCustomPromotionRuleCreateWithDefaults() *CustomPromotionRuleCreate { + this := CustomPromotionRuleCreate{} + return &this +} + +// GetData returns the Data field value +func (o *CustomPromotionRuleCreate) GetData() CustomPromotionRuleCreateData { + if o == nil { + var ret CustomPromotionRuleCreateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *CustomPromotionRuleCreate) GetDataOk() (*CustomPromotionRuleCreateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *CustomPromotionRuleCreate) SetData(v CustomPromotionRuleCreateData) { + o.Data = v +} + +func (o CustomPromotionRuleCreate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CustomPromotionRuleCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableCustomPromotionRuleCreate struct { + value *CustomPromotionRuleCreate + isSet bool +} + +func (v NullableCustomPromotionRuleCreate) Get() *CustomPromotionRuleCreate { + return v.value +} + +func (v *NullableCustomPromotionRuleCreate) Set(val *CustomPromotionRuleCreate) { + v.value = val + v.isSet = true +} + +func (v NullableCustomPromotionRuleCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableCustomPromotionRuleCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCustomPromotionRuleCreate(val *CustomPromotionRuleCreate) *NullableCustomPromotionRuleCreate { + return &NullableCustomPromotionRuleCreate{value: val, isSet: true} +} + +func (v NullableCustomPromotionRuleCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCustomPromotionRuleCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_custom_promotion_rule_create_data.go b/api/model_custom_promotion_rule_create_data.go new file mode 100644 index 00000000..69f245f3 --- /dev/null +++ b/api/model_custom_promotion_rule_create_data.go @@ -0,0 +1,184 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CustomPromotionRuleCreateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CustomPromotionRuleCreateData{} + +// CustomPromotionRuleCreateData struct for CustomPromotionRuleCreateData +type CustomPromotionRuleCreateData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes POSTCustomPromotionRules201ResponseDataAttributes `json:"attributes"` + Relationships *CustomPromotionRuleCreateDataRelationships `json:"relationships,omitempty"` +} + +// NewCustomPromotionRuleCreateData instantiates a new CustomPromotionRuleCreateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCustomPromotionRuleCreateData(type_ interface{}, attributes POSTCustomPromotionRules201ResponseDataAttributes) *CustomPromotionRuleCreateData { + this := CustomPromotionRuleCreateData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewCustomPromotionRuleCreateDataWithDefaults instantiates a new CustomPromotionRuleCreateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCustomPromotionRuleCreateDataWithDefaults() *CustomPromotionRuleCreateData { + this := CustomPromotionRuleCreateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *CustomPromotionRuleCreateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CustomPromotionRuleCreateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CustomPromotionRuleCreateData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *CustomPromotionRuleCreateData) GetAttributes() POSTCustomPromotionRules201ResponseDataAttributes { + if o == nil { + var ret POSTCustomPromotionRules201ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *CustomPromotionRuleCreateData) GetAttributesOk() (*POSTCustomPromotionRules201ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *CustomPromotionRuleCreateData) SetAttributes(v POSTCustomPromotionRules201ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *CustomPromotionRuleCreateData) GetRelationships() CustomPromotionRuleCreateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret CustomPromotionRuleCreateDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomPromotionRuleCreateData) GetRelationshipsOk() (*CustomPromotionRuleCreateDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *CustomPromotionRuleCreateData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given CustomPromotionRuleCreateDataRelationships and assigns it to the Relationships field. +func (o *CustomPromotionRuleCreateData) SetRelationships(v CustomPromotionRuleCreateDataRelationships) { + o.Relationships = &v +} + +func (o CustomPromotionRuleCreateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CustomPromotionRuleCreateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableCustomPromotionRuleCreateData struct { + value *CustomPromotionRuleCreateData + isSet bool +} + +func (v NullableCustomPromotionRuleCreateData) Get() *CustomPromotionRuleCreateData { + return v.value +} + +func (v *NullableCustomPromotionRuleCreateData) Set(val *CustomPromotionRuleCreateData) { + v.value = val + v.isSet = true +} + +func (v NullableCustomPromotionRuleCreateData) IsSet() bool { + return v.isSet +} + +func (v *NullableCustomPromotionRuleCreateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCustomPromotionRuleCreateData(val *CustomPromotionRuleCreateData) *NullableCustomPromotionRuleCreateData { + return &NullableCustomPromotionRuleCreateData{value: val, isSet: true} +} + +func (v NullableCustomPromotionRuleCreateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCustomPromotionRuleCreateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_custom_promotion_rule_create_data_relationships.go b/api/model_custom_promotion_rule_create_data_relationships.go new file mode 100644 index 00000000..08aae7ac --- /dev/null +++ b/api/model_custom_promotion_rule_create_data_relationships.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CustomPromotionRuleCreateDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CustomPromotionRuleCreateDataRelationships{} + +// CustomPromotionRuleCreateDataRelationships struct for CustomPromotionRuleCreateDataRelationships +type CustomPromotionRuleCreateDataRelationships struct { + Promotion CouponCodesPromotionRuleCreateDataRelationshipsPromotion `json:"promotion"` +} + +// NewCustomPromotionRuleCreateDataRelationships instantiates a new CustomPromotionRuleCreateDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCustomPromotionRuleCreateDataRelationships(promotion CouponCodesPromotionRuleCreateDataRelationshipsPromotion) *CustomPromotionRuleCreateDataRelationships { + this := CustomPromotionRuleCreateDataRelationships{} + this.Promotion = promotion + return &this +} + +// NewCustomPromotionRuleCreateDataRelationshipsWithDefaults instantiates a new CustomPromotionRuleCreateDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCustomPromotionRuleCreateDataRelationshipsWithDefaults() *CustomPromotionRuleCreateDataRelationships { + this := CustomPromotionRuleCreateDataRelationships{} + return &this +} + +// GetPromotion returns the Promotion field value +func (o *CustomPromotionRuleCreateDataRelationships) GetPromotion() CouponCodesPromotionRuleCreateDataRelationshipsPromotion { + if o == nil { + var ret CouponCodesPromotionRuleCreateDataRelationshipsPromotion + return ret + } + + return o.Promotion +} + +// GetPromotionOk returns a tuple with the Promotion field value +// and a boolean to check if the value has been set. +func (o *CustomPromotionRuleCreateDataRelationships) GetPromotionOk() (*CouponCodesPromotionRuleCreateDataRelationshipsPromotion, bool) { + if o == nil { + return nil, false + } + return &o.Promotion, true +} + +// SetPromotion sets field value +func (o *CustomPromotionRuleCreateDataRelationships) SetPromotion(v CouponCodesPromotionRuleCreateDataRelationshipsPromotion) { + o.Promotion = v +} + +func (o CustomPromotionRuleCreateDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CustomPromotionRuleCreateDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["promotion"] = o.Promotion + return toSerialize, nil +} + +type NullableCustomPromotionRuleCreateDataRelationships struct { + value *CustomPromotionRuleCreateDataRelationships + isSet bool +} + +func (v NullableCustomPromotionRuleCreateDataRelationships) Get() *CustomPromotionRuleCreateDataRelationships { + return v.value +} + +func (v *NullableCustomPromotionRuleCreateDataRelationships) Set(val *CustomPromotionRuleCreateDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableCustomPromotionRuleCreateDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableCustomPromotionRuleCreateDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCustomPromotionRuleCreateDataRelationships(val *CustomPromotionRuleCreateDataRelationships) *NullableCustomPromotionRuleCreateDataRelationships { + return &NullableCustomPromotionRuleCreateDataRelationships{value: val, isSet: true} +} + +func (v NullableCustomPromotionRuleCreateDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCustomPromotionRuleCreateDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_custom_promotion_rule_data.go b/api/model_custom_promotion_rule_data.go new file mode 100644 index 00000000..467d1237 --- /dev/null +++ b/api/model_custom_promotion_rule_data.go @@ -0,0 +1,184 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CustomPromotionRuleData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CustomPromotionRuleData{} + +// CustomPromotionRuleData struct for CustomPromotionRuleData +type CustomPromotionRuleData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes `json:"attributes"` + Relationships *CustomPromotionRuleDataRelationships `json:"relationships,omitempty"` +} + +// NewCustomPromotionRuleData instantiates a new CustomPromotionRuleData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCustomPromotionRuleData(type_ interface{}, attributes GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) *CustomPromotionRuleData { + this := CustomPromotionRuleData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewCustomPromotionRuleDataWithDefaults instantiates a new CustomPromotionRuleData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCustomPromotionRuleDataWithDefaults() *CustomPromotionRuleData { + this := CustomPromotionRuleData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *CustomPromotionRuleData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CustomPromotionRuleData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CustomPromotionRuleData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *CustomPromotionRuleData) GetAttributes() GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes { + if o == nil { + var ret GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *CustomPromotionRuleData) GetAttributesOk() (*GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *CustomPromotionRuleData) SetAttributes(v GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *CustomPromotionRuleData) GetRelationships() CustomPromotionRuleDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret CustomPromotionRuleDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomPromotionRuleData) GetRelationshipsOk() (*CustomPromotionRuleDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *CustomPromotionRuleData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given CustomPromotionRuleDataRelationships and assigns it to the Relationships field. +func (o *CustomPromotionRuleData) SetRelationships(v CustomPromotionRuleDataRelationships) { + o.Relationships = &v +} + +func (o CustomPromotionRuleData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CustomPromotionRuleData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableCustomPromotionRuleData struct { + value *CustomPromotionRuleData + isSet bool +} + +func (v NullableCustomPromotionRuleData) Get() *CustomPromotionRuleData { + return v.value +} + +func (v *NullableCustomPromotionRuleData) Set(val *CustomPromotionRuleData) { + v.value = val + v.isSet = true +} + +func (v NullableCustomPromotionRuleData) IsSet() bool { + return v.isSet +} + +func (v *NullableCustomPromotionRuleData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCustomPromotionRuleData(val *CustomPromotionRuleData) *NullableCustomPromotionRuleData { + return &NullableCustomPromotionRuleData{value: val, isSet: true} +} + +func (v NullableCustomPromotionRuleData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCustomPromotionRuleData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_custom_promotion_rule_data_relationships.go b/api/model_custom_promotion_rule_data_relationships.go new file mode 100644 index 00000000..2bb61829 --- /dev/null +++ b/api/model_custom_promotion_rule_data_relationships.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CustomPromotionRuleDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CustomPromotionRuleDataRelationships{} + +// CustomPromotionRuleDataRelationships struct for CustomPromotionRuleDataRelationships +type CustomPromotionRuleDataRelationships struct { + Promotion *CouponCodesPromotionRuleDataRelationshipsPromotion `json:"promotion,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewCustomPromotionRuleDataRelationships instantiates a new CustomPromotionRuleDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCustomPromotionRuleDataRelationships() *CustomPromotionRuleDataRelationships { + this := CustomPromotionRuleDataRelationships{} + return &this +} + +// NewCustomPromotionRuleDataRelationshipsWithDefaults instantiates a new CustomPromotionRuleDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCustomPromotionRuleDataRelationshipsWithDefaults() *CustomPromotionRuleDataRelationships { + this := CustomPromotionRuleDataRelationships{} + return &this +} + +// GetPromotion returns the Promotion field value if set, zero value otherwise. +func (o *CustomPromotionRuleDataRelationships) GetPromotion() CouponCodesPromotionRuleDataRelationshipsPromotion { + if o == nil || IsNil(o.Promotion) { + var ret CouponCodesPromotionRuleDataRelationshipsPromotion + return ret + } + return *o.Promotion +} + +// GetPromotionOk returns a tuple with the Promotion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomPromotionRuleDataRelationships) GetPromotionOk() (*CouponCodesPromotionRuleDataRelationshipsPromotion, bool) { + if o == nil || IsNil(o.Promotion) { + return nil, false + } + return o.Promotion, true +} + +// HasPromotion returns a boolean if a field has been set. +func (o *CustomPromotionRuleDataRelationships) HasPromotion() bool { + if o != nil && !IsNil(o.Promotion) { + return true + } + + return false +} + +// SetPromotion gets a reference to the given CouponCodesPromotionRuleDataRelationshipsPromotion and assigns it to the Promotion field. +func (o *CustomPromotionRuleDataRelationships) SetPromotion(v CouponCodesPromotionRuleDataRelationshipsPromotion) { + o.Promotion = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *CustomPromotionRuleDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomPromotionRuleDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *CustomPromotionRuleDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *CustomPromotionRuleDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + +func (o CustomPromotionRuleDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CustomPromotionRuleDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Promotion) { + toSerialize["promotion"] = o.Promotion + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullableCustomPromotionRuleDataRelationships struct { + value *CustomPromotionRuleDataRelationships + isSet bool +} + +func (v NullableCustomPromotionRuleDataRelationships) Get() *CustomPromotionRuleDataRelationships { + return v.value +} + +func (v *NullableCustomPromotionRuleDataRelationships) Set(val *CustomPromotionRuleDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableCustomPromotionRuleDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableCustomPromotionRuleDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCustomPromotionRuleDataRelationships(val *CustomPromotionRuleDataRelationships) *NullableCustomPromotionRuleDataRelationships { + return &NullableCustomPromotionRuleDataRelationships{value: val, isSet: true} +} + +func (v NullableCustomPromotionRuleDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCustomPromotionRuleDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_custom_promotion_rule_update.go b/api/model_custom_promotion_rule_update.go new file mode 100644 index 00000000..49d856e1 --- /dev/null +++ b/api/model_custom_promotion_rule_update.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CustomPromotionRuleUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CustomPromotionRuleUpdate{} + +// CustomPromotionRuleUpdate struct for CustomPromotionRuleUpdate +type CustomPromotionRuleUpdate struct { + Data CustomPromotionRuleUpdateData `json:"data"` +} + +// NewCustomPromotionRuleUpdate instantiates a new CustomPromotionRuleUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCustomPromotionRuleUpdate(data CustomPromotionRuleUpdateData) *CustomPromotionRuleUpdate { + this := CustomPromotionRuleUpdate{} + this.Data = data + return &this +} + +// NewCustomPromotionRuleUpdateWithDefaults instantiates a new CustomPromotionRuleUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCustomPromotionRuleUpdateWithDefaults() *CustomPromotionRuleUpdate { + this := CustomPromotionRuleUpdate{} + return &this +} + +// GetData returns the Data field value +func (o *CustomPromotionRuleUpdate) GetData() CustomPromotionRuleUpdateData { + if o == nil { + var ret CustomPromotionRuleUpdateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *CustomPromotionRuleUpdate) GetDataOk() (*CustomPromotionRuleUpdateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *CustomPromotionRuleUpdate) SetData(v CustomPromotionRuleUpdateData) { + o.Data = v +} + +func (o CustomPromotionRuleUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CustomPromotionRuleUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableCustomPromotionRuleUpdate struct { + value *CustomPromotionRuleUpdate + isSet bool +} + +func (v NullableCustomPromotionRuleUpdate) Get() *CustomPromotionRuleUpdate { + return v.value +} + +func (v *NullableCustomPromotionRuleUpdate) Set(val *CustomPromotionRuleUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableCustomPromotionRuleUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableCustomPromotionRuleUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCustomPromotionRuleUpdate(val *CustomPromotionRuleUpdate) *NullableCustomPromotionRuleUpdate { + return &NullableCustomPromotionRuleUpdate{value: val, isSet: true} +} + +func (v NullableCustomPromotionRuleUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCustomPromotionRuleUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_custom_promotion_rule_update_data.go b/api/model_custom_promotion_rule_update_data.go new file mode 100644 index 00000000..66f17c09 --- /dev/null +++ b/api/model_custom_promotion_rule_update_data.go @@ -0,0 +1,216 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CustomPromotionRuleUpdateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CustomPromotionRuleUpdateData{} + +// CustomPromotionRuleUpdateData struct for CustomPromotionRuleUpdateData +type CustomPromotionRuleUpdateData struct { + // The resource's type + Type interface{} `json:"type"` + // The resource's id + Id interface{} `json:"id"` + Attributes PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes `json:"attributes"` + Relationships *CustomPromotionRuleUpdateDataRelationships `json:"relationships,omitempty"` +} + +// NewCustomPromotionRuleUpdateData instantiates a new CustomPromotionRuleUpdateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCustomPromotionRuleUpdateData(type_ interface{}, id interface{}, attributes PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) *CustomPromotionRuleUpdateData { + this := CustomPromotionRuleUpdateData{} + this.Type = type_ + this.Id = id + this.Attributes = attributes + return &this +} + +// NewCustomPromotionRuleUpdateDataWithDefaults instantiates a new CustomPromotionRuleUpdateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCustomPromotionRuleUpdateDataWithDefaults() *CustomPromotionRuleUpdateData { + this := CustomPromotionRuleUpdateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *CustomPromotionRuleUpdateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CustomPromotionRuleUpdateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CustomPromotionRuleUpdateData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *CustomPromotionRuleUpdateData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CustomPromotionRuleUpdateData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CustomPromotionRuleUpdateData) SetId(v interface{}) { + o.Id = v +} + +// GetAttributes returns the Attributes field value +func (o *CustomPromotionRuleUpdateData) GetAttributes() PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes { + if o == nil { + var ret PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *CustomPromotionRuleUpdateData) GetAttributesOk() (*PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *CustomPromotionRuleUpdateData) SetAttributes(v PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *CustomPromotionRuleUpdateData) GetRelationships() CustomPromotionRuleUpdateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret CustomPromotionRuleUpdateDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomPromotionRuleUpdateData) GetRelationshipsOk() (*CustomPromotionRuleUpdateDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *CustomPromotionRuleUpdateData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given CustomPromotionRuleUpdateDataRelationships and assigns it to the Relationships field. +func (o *CustomPromotionRuleUpdateData) SetRelationships(v CustomPromotionRuleUpdateDataRelationships) { + o.Relationships = &v +} + +func (o CustomPromotionRuleUpdateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CustomPromotionRuleUpdateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableCustomPromotionRuleUpdateData struct { + value *CustomPromotionRuleUpdateData + isSet bool +} + +func (v NullableCustomPromotionRuleUpdateData) Get() *CustomPromotionRuleUpdateData { + return v.value +} + +func (v *NullableCustomPromotionRuleUpdateData) Set(val *CustomPromotionRuleUpdateData) { + v.value = val + v.isSet = true +} + +func (v NullableCustomPromotionRuleUpdateData) IsSet() bool { + return v.isSet +} + +func (v *NullableCustomPromotionRuleUpdateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCustomPromotionRuleUpdateData(val *CustomPromotionRuleUpdateData) *NullableCustomPromotionRuleUpdateData { + return &NullableCustomPromotionRuleUpdateData{value: val, isSet: true} +} + +func (v NullableCustomPromotionRuleUpdateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCustomPromotionRuleUpdateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_custom_promotion_rule_update_data_relationships.go b/api/model_custom_promotion_rule_update_data_relationships.go new file mode 100644 index 00000000..12a9ef00 --- /dev/null +++ b/api/model_custom_promotion_rule_update_data_relationships.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CustomPromotionRuleUpdateDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CustomPromotionRuleUpdateDataRelationships{} + +// CustomPromotionRuleUpdateDataRelationships struct for CustomPromotionRuleUpdateDataRelationships +type CustomPromotionRuleUpdateDataRelationships struct { + Promotion *CouponCodesPromotionRuleCreateDataRelationshipsPromotion `json:"promotion,omitempty"` +} + +// NewCustomPromotionRuleUpdateDataRelationships instantiates a new CustomPromotionRuleUpdateDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCustomPromotionRuleUpdateDataRelationships() *CustomPromotionRuleUpdateDataRelationships { + this := CustomPromotionRuleUpdateDataRelationships{} + return &this +} + +// NewCustomPromotionRuleUpdateDataRelationshipsWithDefaults instantiates a new CustomPromotionRuleUpdateDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCustomPromotionRuleUpdateDataRelationshipsWithDefaults() *CustomPromotionRuleUpdateDataRelationships { + this := CustomPromotionRuleUpdateDataRelationships{} + return &this +} + +// GetPromotion returns the Promotion field value if set, zero value otherwise. +func (o *CustomPromotionRuleUpdateDataRelationships) GetPromotion() CouponCodesPromotionRuleCreateDataRelationshipsPromotion { + if o == nil || IsNil(o.Promotion) { + var ret CouponCodesPromotionRuleCreateDataRelationshipsPromotion + return ret + } + return *o.Promotion +} + +// GetPromotionOk returns a tuple with the Promotion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomPromotionRuleUpdateDataRelationships) GetPromotionOk() (*CouponCodesPromotionRuleCreateDataRelationshipsPromotion, bool) { + if o == nil || IsNil(o.Promotion) { + return nil, false + } + return o.Promotion, true +} + +// HasPromotion returns a boolean if a field has been set. +func (o *CustomPromotionRuleUpdateDataRelationships) HasPromotion() bool { + if o != nil && !IsNil(o.Promotion) { + return true + } + + return false +} + +// SetPromotion gets a reference to the given CouponCodesPromotionRuleCreateDataRelationshipsPromotion and assigns it to the Promotion field. +func (o *CustomPromotionRuleUpdateDataRelationships) SetPromotion(v CouponCodesPromotionRuleCreateDataRelationshipsPromotion) { + o.Promotion = &v +} + +func (o CustomPromotionRuleUpdateDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CustomPromotionRuleUpdateDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Promotion) { + toSerialize["promotion"] = o.Promotion + } + return toSerialize, nil +} + +type NullableCustomPromotionRuleUpdateDataRelationships struct { + value *CustomPromotionRuleUpdateDataRelationships + isSet bool +} + +func (v NullableCustomPromotionRuleUpdateDataRelationships) Get() *CustomPromotionRuleUpdateDataRelationships { + return v.value +} + +func (v *NullableCustomPromotionRuleUpdateDataRelationships) Set(val *CustomPromotionRuleUpdateDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableCustomPromotionRuleUpdateDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableCustomPromotionRuleUpdateDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCustomPromotionRuleUpdateDataRelationships(val *CustomPromotionRuleUpdateDataRelationships) *NullableCustomPromotionRuleUpdateDataRelationships { + return &NullableCustomPromotionRuleUpdateDataRelationships{value: val, isSet: true} +} + +func (v NullableCustomPromotionRuleUpdateDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCustomPromotionRuleUpdateDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_customer.go b/api/model_customer.go index faff05ea..5aae1611 100644 --- a/api/model_customer.go +++ b/api/model_customer.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_address.go b/api/model_customer_address.go index fac59935..2e81e364 100644 --- a/api/model_customer_address.go +++ b/api/model_customer_address.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_address_create.go b/api/model_customer_address_create.go index 206d6c6f..5e1ec166 100644 --- a/api/model_customer_address_create.go +++ b/api/model_customer_address_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_address_create_data.go b/api/model_customer_address_create_data.go index ad31126d..d3d8d5a9 100644 --- a/api/model_customer_address_create_data.go +++ b/api/model_customer_address_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,16 +21,16 @@ var _ MappedNullable = &CustomerAddressCreateData{} // CustomerAddressCreateData struct for CustomerAddressCreateData type CustomerAddressCreateData struct { // The resource's type - Type interface{} `json:"type"` - Attributes POSTAdyenPayments201ResponseDataAttributes `json:"attributes"` - Relationships *CustomerAddressCreateDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type"` + Attributes POSTCustomerAddresses201ResponseDataAttributes `json:"attributes"` + Relationships *CustomerAddressCreateDataRelationships `json:"relationships,omitempty"` } // NewCustomerAddressCreateData instantiates a new CustomerAddressCreateData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCustomerAddressCreateData(type_ interface{}, attributes POSTAdyenPayments201ResponseDataAttributes) *CustomerAddressCreateData { +func NewCustomerAddressCreateData(type_ interface{}, attributes POSTCustomerAddresses201ResponseDataAttributes) *CustomerAddressCreateData { this := CustomerAddressCreateData{} this.Type = type_ this.Attributes = attributes @@ -72,9 +72,9 @@ func (o *CustomerAddressCreateData) SetType(v interface{}) { } // GetAttributes returns the Attributes field value -func (o *CustomerAddressCreateData) GetAttributes() POSTAdyenPayments201ResponseDataAttributes { +func (o *CustomerAddressCreateData) GetAttributes() POSTCustomerAddresses201ResponseDataAttributes { if o == nil { - var ret POSTAdyenPayments201ResponseDataAttributes + var ret POSTCustomerAddresses201ResponseDataAttributes return ret } @@ -83,7 +83,7 @@ func (o *CustomerAddressCreateData) GetAttributes() POSTAdyenPayments201Response // GetAttributesOk returns a tuple with the Attributes field value // and a boolean to check if the value has been set. -func (o *CustomerAddressCreateData) GetAttributesOk() (*POSTAdyenPayments201ResponseDataAttributes, bool) { +func (o *CustomerAddressCreateData) GetAttributesOk() (*POSTCustomerAddresses201ResponseDataAttributes, bool) { if o == nil { return nil, false } @@ -91,7 +91,7 @@ func (o *CustomerAddressCreateData) GetAttributesOk() (*POSTAdyenPayments201Resp } // SetAttributes sets field value -func (o *CustomerAddressCreateData) SetAttributes(v POSTAdyenPayments201ResponseDataAttributes) { +func (o *CustomerAddressCreateData) SetAttributes(v POSTCustomerAddresses201ResponseDataAttributes) { o.Attributes = v } diff --git a/api/model_customer_address_create_data_relationships.go b/api/model_customer_address_create_data_relationships.go index a36e3f25..9e1a49bb 100644 --- a/api/model_customer_address_create_data_relationships.go +++ b/api/model_customer_address_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_address_create_data_relationships_address.go b/api/model_customer_address_create_data_relationships_address.go index cd4276bd..a6d71885 100644 --- a/api/model_customer_address_create_data_relationships_address.go +++ b/api/model_customer_address_create_data_relationships_address.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_address_data.go b/api/model_customer_address_data.go index 231ba7d4..e9a5c0aa 100644 --- a/api/model_customer_address_data.go +++ b/api/model_customer_address_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_address_data_relationships.go b/api/model_customer_address_data_relationships.go index 4633963c..debac9f7 100644 --- a/api/model_customer_address_data_relationships.go +++ b/api/model_customer_address_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,7 +22,8 @@ var _ MappedNullable = &CustomerAddressDataRelationships{} type CustomerAddressDataRelationships struct { Customer *CouponRecipientDataRelationshipsCustomer `json:"customer,omitempty"` Address *BingGeocoderDataRelationshipsAddresses `json:"address,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewCustomerAddressDataRelationships instantiates a new CustomerAddressDataRelationships object @@ -107,9 +108,9 @@ func (o *CustomerAddressDataRelationships) SetAddress(v BingGeocoderDataRelation } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *CustomerAddressDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { +func (o *CustomerAddressDataRelationships) GetEvents() AddressDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents + var ret AddressDataRelationshipsEvents return ret } return *o.Events @@ -117,7 +118,7 @@ func (o *CustomerAddressDataRelationships) GetEvents() AuthorizationDataRelation // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CustomerAddressDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { +func (o *CustomerAddressDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -133,11 +134,43 @@ func (o *CustomerAddressDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *CustomerAddressDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *CustomerAddressDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { o.Events = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *CustomerAddressDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomerAddressDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *CustomerAddressDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *CustomerAddressDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o CustomerAddressDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -157,6 +190,9 @@ func (o CustomerAddressDataRelationships) ToMap() (map[string]interface{}, error if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_customer_address_update.go b/api/model_customer_address_update.go index cb7e3641..64c87f15 100644 --- a/api/model_customer_address_update.go +++ b/api/model_customer_address_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_address_update_data.go b/api/model_customer_address_update_data.go index 5f7b1b32..485e97c0 100644 --- a/api/model_customer_address_update_data.go +++ b/api/model_customer_address_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_address_update_data_relationships.go b/api/model_customer_address_update_data_relationships.go index c21cfd90..c966b87b 100644 --- a/api/model_customer_address_update_data_relationships.go +++ b/api/model_customer_address_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_create.go b/api/model_customer_create.go index 5957b358..dada3844 100644 --- a/api/model_customer_create.go +++ b/api/model_customer_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_create_data.go b/api/model_customer_create_data.go index c5bfa95a..1651d0c2 100644 --- a/api/model_customer_create_data.go +++ b/api/model_customer_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_create_data_relationships.go b/api/model_customer_create_data_relationships.go index 53ef3a1e..eb8a17f6 100644 --- a/api/model_customer_create_data_relationships.go +++ b/api/model_customer_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &CustomerCreateDataRelationships{} // CustomerCreateDataRelationships struct for CustomerCreateDataRelationships type CustomerCreateDataRelationships struct { CustomerGroup *CustomerCreateDataRelationshipsCustomerGroup `json:"customer_group,omitempty"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` } // NewCustomerCreateDataRelationships instantiates a new CustomerCreateDataRelationships object @@ -72,6 +73,38 @@ func (o *CustomerCreateDataRelationships) SetCustomerGroup(v CustomerCreateDataR o.CustomerGroup = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CustomerCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomerCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CustomerCreateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *CustomerCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + func (o CustomerCreateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +118,9 @@ func (o CustomerCreateDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.CustomerGroup) { toSerialize["customer_group"] = o.CustomerGroup } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_customer_create_data_relationships_customer_group.go b/api/model_customer_create_data_relationships_customer_group.go index 6f1ef31a..7a9c0222 100644 --- a/api/model_customer_create_data_relationships_customer_group.go +++ b/api/model_customer_create_data_relationships_customer_group.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_data.go b/api/model_customer_data.go index 5de23bfd..f04e306c 100644 --- a/api/model_customer_data.go +++ b/api/model_customer_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_data_relationships.go b/api/model_customer_data_relationships.go index c5c986bb..2bc64cd3 100644 --- a/api/model_customer_data_relationships.go +++ b/api/model_customer_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,10 +26,11 @@ type CustomerDataRelationships struct { CustomerSubscriptions *CustomerDataRelationshipsCustomerSubscriptions `json:"customer_subscriptions,omitempty"` Orders *AdyenPaymentDataRelationshipsOrder `json:"orders,omitempty"` OrderSubscriptions *CustomerDataRelationshipsOrderSubscriptions `json:"order_subscriptions,omitempty"` - Returns *CustomerDataRelationshipsReturns `json:"returns,omitempty"` + Returns *CaptureDataRelationshipsReturn `json:"returns,omitempty"` SkuLists *BundleDataRelationshipsSkuList `json:"sku_lists,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Tags *AddressDataRelationshipsTags `json:"tags,omitempty"` } // NewCustomerDataRelationships instantiates a new CustomerDataRelationships object @@ -242,9 +243,9 @@ func (o *CustomerDataRelationships) SetOrderSubscriptions(v CustomerDataRelation } // GetReturns returns the Returns field value if set, zero value otherwise. -func (o *CustomerDataRelationships) GetReturns() CustomerDataRelationshipsReturns { +func (o *CustomerDataRelationships) GetReturns() CaptureDataRelationshipsReturn { if o == nil || IsNil(o.Returns) { - var ret CustomerDataRelationshipsReturns + var ret CaptureDataRelationshipsReturn return ret } return *o.Returns @@ -252,7 +253,7 @@ func (o *CustomerDataRelationships) GetReturns() CustomerDataRelationshipsReturn // GetReturnsOk returns a tuple with the Returns field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CustomerDataRelationships) GetReturnsOk() (*CustomerDataRelationshipsReturns, bool) { +func (o *CustomerDataRelationships) GetReturnsOk() (*CaptureDataRelationshipsReturn, bool) { if o == nil || IsNil(o.Returns) { return nil, false } @@ -268,8 +269,8 @@ func (o *CustomerDataRelationships) HasReturns() bool { return false } -// SetReturns gets a reference to the given CustomerDataRelationshipsReturns and assigns it to the Returns field. -func (o *CustomerDataRelationships) SetReturns(v CustomerDataRelationshipsReturns) { +// SetReturns gets a reference to the given CaptureDataRelationshipsReturn and assigns it to the Returns field. +func (o *CustomerDataRelationships) SetReturns(v CaptureDataRelationshipsReturn) { o.Returns = &v } @@ -306,9 +307,9 @@ func (o *CustomerDataRelationships) SetSkuLists(v BundleDataRelationshipsSkuList } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *CustomerDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *CustomerDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -316,7 +317,7 @@ func (o *CustomerDataRelationships) GetAttachments() AvalaraAccountDataRelations // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CustomerDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *CustomerDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -332,15 +333,15 @@ func (o *CustomerDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *CustomerDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *CustomerDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *CustomerDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { +func (o *CustomerDataRelationships) GetEvents() AddressDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents + var ret AddressDataRelationshipsEvents return ret } return *o.Events @@ -348,7 +349,7 @@ func (o *CustomerDataRelationships) GetEvents() AuthorizationDataRelationshipsEv // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CustomerDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { +func (o *CustomerDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -364,11 +365,43 @@ func (o *CustomerDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *CustomerDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *CustomerDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { o.Events = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CustomerDataRelationships) GetTags() AddressDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomerDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CustomerDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressDataRelationshipsTags and assigns it to the Tags field. +func (o *CustomerDataRelationships) SetTags(v AddressDataRelationshipsTags) { + o.Tags = &v +} + func (o CustomerDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -409,6 +442,9 @@ func (o CustomerDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_customer_data_relationships_customer_addresses.go b/api/model_customer_data_relationships_customer_addresses.go index 94dfab77..68ac4df4 100644 --- a/api/model_customer_data_relationships_customer_addresses.go +++ b/api/model_customer_data_relationships_customer_addresses.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_data_relationships_customer_addresses_data.go b/api/model_customer_data_relationships_customer_addresses_data.go index 07c36095..7f1ce369 100644 --- a/api/model_customer_data_relationships_customer_addresses_data.go +++ b/api/model_customer_data_relationships_customer_addresses_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_data_relationships_customer_group.go b/api/model_customer_data_relationships_customer_group.go index 3bac1b7b..3cf46112 100644 --- a/api/model_customer_data_relationships_customer_group.go +++ b/api/model_customer_data_relationships_customer_group.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_data_relationships_customer_group_data.go b/api/model_customer_data_relationships_customer_group_data.go index c627caa7..acd4d43f 100644 --- a/api/model_customer_data_relationships_customer_group_data.go +++ b/api/model_customer_data_relationships_customer_group_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_data_relationships_customer_payment_sources.go b/api/model_customer_data_relationships_customer_payment_sources.go index caf3d3bf..f3ccac96 100644 --- a/api/model_customer_data_relationships_customer_payment_sources.go +++ b/api/model_customer_data_relationships_customer_payment_sources.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_data_relationships_customer_payment_sources_data.go b/api/model_customer_data_relationships_customer_payment_sources_data.go index 65024fe8..b0dc56fa 100644 --- a/api/model_customer_data_relationships_customer_payment_sources_data.go +++ b/api/model_customer_data_relationships_customer_payment_sources_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_data_relationships_customer_subscriptions.go b/api/model_customer_data_relationships_customer_subscriptions.go index 0473c7d7..6fd0ee8c 100644 --- a/api/model_customer_data_relationships_customer_subscriptions.go +++ b/api/model_customer_data_relationships_customer_subscriptions.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_data_relationships_customer_subscriptions_data.go b/api/model_customer_data_relationships_customer_subscriptions_data.go index 1baf9791..bf66a371 100644 --- a/api/model_customer_data_relationships_customer_subscriptions_data.go +++ b/api/model_customer_data_relationships_customer_subscriptions_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_data_relationships_order_subscriptions.go b/api/model_customer_data_relationships_order_subscriptions.go index d0f04e4e..f6a97598 100644 --- a/api/model_customer_data_relationships_order_subscriptions.go +++ b/api/model_customer_data_relationships_order_subscriptions.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_data_relationships_order_subscriptions_data.go b/api/model_customer_data_relationships_order_subscriptions_data.go index 2f190dc8..0d57af6a 100644 --- a/api/model_customer_data_relationships_order_subscriptions_data.go +++ b/api/model_customer_data_relationships_order_subscriptions_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_data_relationships_returns.go b/api/model_customer_data_relationships_returns.go deleted file mode 100644 index 18d141b7..00000000 --- a/api/model_customer_data_relationships_returns.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the CustomerDataRelationshipsReturns type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CustomerDataRelationshipsReturns{} - -// CustomerDataRelationshipsReturns struct for CustomerDataRelationshipsReturns -type CustomerDataRelationshipsReturns struct { - Data *CustomerDataRelationshipsReturnsData `json:"data,omitempty"` -} - -// NewCustomerDataRelationshipsReturns instantiates a new CustomerDataRelationshipsReturns object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCustomerDataRelationshipsReturns() *CustomerDataRelationshipsReturns { - this := CustomerDataRelationshipsReturns{} - return &this -} - -// NewCustomerDataRelationshipsReturnsWithDefaults instantiates a new CustomerDataRelationshipsReturns object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCustomerDataRelationshipsReturnsWithDefaults() *CustomerDataRelationshipsReturns { - this := CustomerDataRelationshipsReturns{} - return &this -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *CustomerDataRelationshipsReturns) GetData() CustomerDataRelationshipsReturnsData { - if o == nil || IsNil(o.Data) { - var ret CustomerDataRelationshipsReturnsData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CustomerDataRelationshipsReturns) GetDataOk() (*CustomerDataRelationshipsReturnsData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *CustomerDataRelationshipsReturns) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given CustomerDataRelationshipsReturnsData and assigns it to the Data field. -func (o *CustomerDataRelationshipsReturns) SetData(v CustomerDataRelationshipsReturnsData) { - o.Data = &v -} - -func (o CustomerDataRelationshipsReturns) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CustomerDataRelationshipsReturns) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableCustomerDataRelationshipsReturns struct { - value *CustomerDataRelationshipsReturns - isSet bool -} - -func (v NullableCustomerDataRelationshipsReturns) Get() *CustomerDataRelationshipsReturns { - return v.value -} - -func (v *NullableCustomerDataRelationshipsReturns) Set(val *CustomerDataRelationshipsReturns) { - v.value = val - v.isSet = true -} - -func (v NullableCustomerDataRelationshipsReturns) IsSet() bool { - return v.isSet -} - -func (v *NullableCustomerDataRelationshipsReturns) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCustomerDataRelationshipsReturns(val *CustomerDataRelationshipsReturns) *NullableCustomerDataRelationshipsReturns { - return &NullableCustomerDataRelationshipsReturns{value: val, isSet: true} -} - -func (v NullableCustomerDataRelationshipsReturns) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCustomerDataRelationshipsReturns) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_customer_group.go b/api/model_customer_group.go index 5e295b39..c4ee176c 100644 --- a/api/model_customer_group.go +++ b/api/model_customer_group.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_group_create.go b/api/model_customer_group_create.go index 8ddda047..f6c079e7 100644 --- a/api/model_customer_group_create.go +++ b/api/model_customer_group_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_group_create_data.go b/api/model_customer_group_create_data.go index 36d2bdc2..3e49d306 100644 --- a/api/model_customer_group_create_data.go +++ b/api/model_customer_group_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_group_data.go b/api/model_customer_group_data.go index 0a1081ee..f1136778 100644 --- a/api/model_customer_group_data.go +++ b/api/model_customer_group_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_group_data_relationships.go b/api/model_customer_group_data_relationships.go index d154b9aa..6890303c 100644 --- a/api/model_customer_group_data_relationships.go +++ b/api/model_customer_group_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,10 @@ var _ MappedNullable = &CustomerGroupDataRelationships{} // CustomerGroupDataRelationships struct for CustomerGroupDataRelationships type CustomerGroupDataRelationships struct { - Customers *CouponRecipientDataRelationshipsCustomer `json:"customers,omitempty"` - Markets *AvalaraAccountDataRelationshipsMarkets `json:"markets,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Customers *CouponRecipientDataRelationshipsCustomer `json:"customers,omitempty"` + Markets *AvalaraAccountDataRelationshipsMarkets `json:"markets,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewCustomerGroupDataRelationships instantiates a new CustomerGroupDataRelationships object @@ -107,9 +108,9 @@ func (o *CustomerGroupDataRelationships) SetMarkets(v AvalaraAccountDataRelation } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *CustomerGroupDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *CustomerGroupDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -117,7 +118,7 @@ func (o *CustomerGroupDataRelationships) GetAttachments() AvalaraAccountDataRela // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CustomerGroupDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *CustomerGroupDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -133,11 +134,43 @@ func (o *CustomerGroupDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *CustomerGroupDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *CustomerGroupDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *CustomerGroupDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomerGroupDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *CustomerGroupDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *CustomerGroupDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o CustomerGroupDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -157,6 +190,9 @@ func (o CustomerGroupDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_customer_group_update.go b/api/model_customer_group_update.go index ef461f49..0a004d50 100644 --- a/api/model_customer_group_update.go +++ b/api/model_customer_group_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_group_update_data.go b/api/model_customer_group_update_data.go index 41070ca6..e2a431b8 100644 --- a/api/model_customer_group_update_data.go +++ b/api/model_customer_group_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_password_reset.go b/api/model_customer_password_reset.go index cbd7466e..90327951 100644 --- a/api/model_customer_password_reset.go +++ b/api/model_customer_password_reset.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_password_reset_create.go b/api/model_customer_password_reset_create.go index eae37c15..c380ccdb 100644 --- a/api/model_customer_password_reset_create.go +++ b/api/model_customer_password_reset_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_password_reset_create_data.go b/api/model_customer_password_reset_create_data.go index bd7938a5..771df07a 100644 --- a/api/model_customer_password_reset_create_data.go +++ b/api/model_customer_password_reset_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_password_reset_data.go b/api/model_customer_password_reset_data.go index e8968993..eab4677e 100644 --- a/api/model_customer_password_reset_data.go +++ b/api/model_customer_password_reset_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_password_reset_data_relationships.go b/api/model_customer_password_reset_data_relationships.go index 16707b00..b08ffbce 100644 --- a/api/model_customer_password_reset_data_relationships.go +++ b/api/model_customer_password_reset_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,7 +21,7 @@ var _ MappedNullable = &CustomerPasswordResetDataRelationships{} // CustomerPasswordResetDataRelationships struct for CustomerPasswordResetDataRelationships type CustomerPasswordResetDataRelationships struct { Customer *CouponRecipientDataRelationshipsCustomer `json:"customer,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` } // NewCustomerPasswordResetDataRelationships instantiates a new CustomerPasswordResetDataRelationships object @@ -74,9 +74,9 @@ func (o *CustomerPasswordResetDataRelationships) SetCustomer(v CouponRecipientDa } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *CustomerPasswordResetDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { +func (o *CustomerPasswordResetDataRelationships) GetEvents() AddressDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents + var ret AddressDataRelationshipsEvents return ret } return *o.Events @@ -84,7 +84,7 @@ func (o *CustomerPasswordResetDataRelationships) GetEvents() AuthorizationDataRe // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CustomerPasswordResetDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { +func (o *CustomerPasswordResetDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -100,8 +100,8 @@ func (o *CustomerPasswordResetDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *CustomerPasswordResetDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *CustomerPasswordResetDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { o.Events = &v } diff --git a/api/model_customer_password_reset_update.go b/api/model_customer_password_reset_update.go index 2e547e01..ccf2f8f4 100644 --- a/api/model_customer_password_reset_update.go +++ b/api/model_customer_password_reset_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_password_reset_update_data.go b/api/model_customer_password_reset_update_data.go index 2f4dd6ef..119ec0dd 100644 --- a/api/model_customer_password_reset_update_data.go +++ b/api/model_customer_password_reset_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_payment_source.go b/api/model_customer_payment_source.go index 9dbf4490..e7206fc3 100644 --- a/api/model_customer_payment_source.go +++ b/api/model_customer_payment_source.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_payment_source_create.go b/api/model_customer_payment_source_create.go index 14b85e17..81d6e32f 100644 --- a/api/model_customer_payment_source_create.go +++ b/api/model_customer_payment_source_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_payment_source_create_data.go b/api/model_customer_payment_source_create_data.go index 12b40df0..13cd8085 100644 --- a/api/model_customer_payment_source_create_data.go +++ b/api/model_customer_payment_source_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,16 +21,16 @@ var _ MappedNullable = &CustomerPaymentSourceCreateData{} // CustomerPaymentSourceCreateData struct for CustomerPaymentSourceCreateData type CustomerPaymentSourceCreateData struct { // The resource's type - Type interface{} `json:"type"` - Attributes POSTAdyenPayments201ResponseDataAttributes `json:"attributes"` - Relationships *CustomerPaymentSourceCreateDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type"` + Attributes POSTCustomerPaymentSources201ResponseDataAttributes `json:"attributes"` + Relationships *CustomerPaymentSourceCreateDataRelationships `json:"relationships,omitempty"` } // NewCustomerPaymentSourceCreateData instantiates a new CustomerPaymentSourceCreateData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCustomerPaymentSourceCreateData(type_ interface{}, attributes POSTAdyenPayments201ResponseDataAttributes) *CustomerPaymentSourceCreateData { +func NewCustomerPaymentSourceCreateData(type_ interface{}, attributes POSTCustomerPaymentSources201ResponseDataAttributes) *CustomerPaymentSourceCreateData { this := CustomerPaymentSourceCreateData{} this.Type = type_ this.Attributes = attributes @@ -72,9 +72,9 @@ func (o *CustomerPaymentSourceCreateData) SetType(v interface{}) { } // GetAttributes returns the Attributes field value -func (o *CustomerPaymentSourceCreateData) GetAttributes() POSTAdyenPayments201ResponseDataAttributes { +func (o *CustomerPaymentSourceCreateData) GetAttributes() POSTCustomerPaymentSources201ResponseDataAttributes { if o == nil { - var ret POSTAdyenPayments201ResponseDataAttributes + var ret POSTCustomerPaymentSources201ResponseDataAttributes return ret } @@ -83,7 +83,7 @@ func (o *CustomerPaymentSourceCreateData) GetAttributes() POSTAdyenPayments201Re // GetAttributesOk returns a tuple with the Attributes field value // and a boolean to check if the value has been set. -func (o *CustomerPaymentSourceCreateData) GetAttributesOk() (*POSTAdyenPayments201ResponseDataAttributes, bool) { +func (o *CustomerPaymentSourceCreateData) GetAttributesOk() (*POSTCustomerPaymentSources201ResponseDataAttributes, bool) { if o == nil { return nil, false } @@ -91,7 +91,7 @@ func (o *CustomerPaymentSourceCreateData) GetAttributesOk() (*POSTAdyenPayments2 } // SetAttributes sets field value -func (o *CustomerPaymentSourceCreateData) SetAttributes(v POSTAdyenPayments201ResponseDataAttributes) { +func (o *CustomerPaymentSourceCreateData) SetAttributes(v POSTCustomerPaymentSources201ResponseDataAttributes) { o.Attributes = v } diff --git a/api/model_customer_payment_source_create_data_relationships.go b/api/model_customer_payment_source_create_data_relationships.go index a693f41d..cf2a3877 100644 --- a/api/model_customer_payment_source_create_data_relationships.go +++ b/api/model_customer_payment_source_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,18 +20,18 @@ var _ MappedNullable = &CustomerPaymentSourceCreateDataRelationships{} // CustomerPaymentSourceCreateDataRelationships struct for CustomerPaymentSourceCreateDataRelationships type CustomerPaymentSourceCreateDataRelationships struct { - Customer CouponRecipientCreateDataRelationshipsCustomer `json:"customer"` - PaymentSource CustomerPaymentSourceCreateDataRelationshipsPaymentSource `json:"payment_source"` + Customer CouponRecipientCreateDataRelationshipsCustomer `json:"customer"` + PaymentMethod *CustomerPaymentSourceCreateDataRelationshipsPaymentMethod `json:"payment_method,omitempty"` + PaymentSource *CustomerPaymentSourceCreateDataRelationshipsPaymentSource `json:"payment_source,omitempty"` } // NewCustomerPaymentSourceCreateDataRelationships instantiates a new CustomerPaymentSourceCreateDataRelationships object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCustomerPaymentSourceCreateDataRelationships(customer CouponRecipientCreateDataRelationshipsCustomer, paymentSource CustomerPaymentSourceCreateDataRelationshipsPaymentSource) *CustomerPaymentSourceCreateDataRelationships { +func NewCustomerPaymentSourceCreateDataRelationships(customer CouponRecipientCreateDataRelationshipsCustomer) *CustomerPaymentSourceCreateDataRelationships { this := CustomerPaymentSourceCreateDataRelationships{} this.Customer = customer - this.PaymentSource = paymentSource return &this } @@ -67,28 +67,68 @@ func (o *CustomerPaymentSourceCreateDataRelationships) SetCustomer(v CouponRecip o.Customer = v } -// GetPaymentSource returns the PaymentSource field value +// GetPaymentMethod returns the PaymentMethod field value if set, zero value otherwise. +func (o *CustomerPaymentSourceCreateDataRelationships) GetPaymentMethod() CustomerPaymentSourceCreateDataRelationshipsPaymentMethod { + if o == nil || IsNil(o.PaymentMethod) { + var ret CustomerPaymentSourceCreateDataRelationshipsPaymentMethod + return ret + } + return *o.PaymentMethod +} + +// GetPaymentMethodOk returns a tuple with the PaymentMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomerPaymentSourceCreateDataRelationships) GetPaymentMethodOk() (*CustomerPaymentSourceCreateDataRelationshipsPaymentMethod, bool) { + if o == nil || IsNil(o.PaymentMethod) { + return nil, false + } + return o.PaymentMethod, true +} + +// HasPaymentMethod returns a boolean if a field has been set. +func (o *CustomerPaymentSourceCreateDataRelationships) HasPaymentMethod() bool { + if o != nil && !IsNil(o.PaymentMethod) { + return true + } + + return false +} + +// SetPaymentMethod gets a reference to the given CustomerPaymentSourceCreateDataRelationshipsPaymentMethod and assigns it to the PaymentMethod field. +func (o *CustomerPaymentSourceCreateDataRelationships) SetPaymentMethod(v CustomerPaymentSourceCreateDataRelationshipsPaymentMethod) { + o.PaymentMethod = &v +} + +// GetPaymentSource returns the PaymentSource field value if set, zero value otherwise. func (o *CustomerPaymentSourceCreateDataRelationships) GetPaymentSource() CustomerPaymentSourceCreateDataRelationshipsPaymentSource { - if o == nil { + if o == nil || IsNil(o.PaymentSource) { var ret CustomerPaymentSourceCreateDataRelationshipsPaymentSource return ret } - - return o.PaymentSource + return *o.PaymentSource } -// GetPaymentSourceOk returns a tuple with the PaymentSource field value +// GetPaymentSourceOk returns a tuple with the PaymentSource field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CustomerPaymentSourceCreateDataRelationships) GetPaymentSourceOk() (*CustomerPaymentSourceCreateDataRelationshipsPaymentSource, bool) { - if o == nil { + if o == nil || IsNil(o.PaymentSource) { return nil, false } - return &o.PaymentSource, true + return o.PaymentSource, true } -// SetPaymentSource sets field value +// HasPaymentSource returns a boolean if a field has been set. +func (o *CustomerPaymentSourceCreateDataRelationships) HasPaymentSource() bool { + if o != nil && !IsNil(o.PaymentSource) { + return true + } + + return false +} + +// SetPaymentSource gets a reference to the given CustomerPaymentSourceCreateDataRelationshipsPaymentSource and assigns it to the PaymentSource field. func (o *CustomerPaymentSourceCreateDataRelationships) SetPaymentSource(v CustomerPaymentSourceCreateDataRelationshipsPaymentSource) { - o.PaymentSource = v + o.PaymentSource = &v } func (o CustomerPaymentSourceCreateDataRelationships) MarshalJSON() ([]byte, error) { @@ -102,7 +142,12 @@ func (o CustomerPaymentSourceCreateDataRelationships) MarshalJSON() ([]byte, err func (o CustomerPaymentSourceCreateDataRelationships) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["customer"] = o.Customer - toSerialize["payment_source"] = o.PaymentSource + if !IsNil(o.PaymentMethod) { + toSerialize["payment_method"] = o.PaymentMethod + } + if !IsNil(o.PaymentSource) { + toSerialize["payment_source"] = o.PaymentSource + } return toSerialize, nil } diff --git a/api/model_customer_payment_source_create_data_relationships_payment_method.go b/api/model_customer_payment_source_create_data_relationships_payment_method.go new file mode 100644 index 00000000..09e770c6 --- /dev/null +++ b/api/model_customer_payment_source_create_data_relationships_payment_method.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CustomerPaymentSourceCreateDataRelationshipsPaymentMethod type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CustomerPaymentSourceCreateDataRelationshipsPaymentMethod{} + +// CustomerPaymentSourceCreateDataRelationshipsPaymentMethod struct for CustomerPaymentSourceCreateDataRelationshipsPaymentMethod +type CustomerPaymentSourceCreateDataRelationshipsPaymentMethod struct { + Data AdyenGatewayDataRelationshipsPaymentMethodsData `json:"data"` +} + +// NewCustomerPaymentSourceCreateDataRelationshipsPaymentMethod instantiates a new CustomerPaymentSourceCreateDataRelationshipsPaymentMethod object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCustomerPaymentSourceCreateDataRelationshipsPaymentMethod(data AdyenGatewayDataRelationshipsPaymentMethodsData) *CustomerPaymentSourceCreateDataRelationshipsPaymentMethod { + this := CustomerPaymentSourceCreateDataRelationshipsPaymentMethod{} + this.Data = data + return &this +} + +// NewCustomerPaymentSourceCreateDataRelationshipsPaymentMethodWithDefaults instantiates a new CustomerPaymentSourceCreateDataRelationshipsPaymentMethod object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCustomerPaymentSourceCreateDataRelationshipsPaymentMethodWithDefaults() *CustomerPaymentSourceCreateDataRelationshipsPaymentMethod { + this := CustomerPaymentSourceCreateDataRelationshipsPaymentMethod{} + return &this +} + +// GetData returns the Data field value +func (o *CustomerPaymentSourceCreateDataRelationshipsPaymentMethod) GetData() AdyenGatewayDataRelationshipsPaymentMethodsData { + if o == nil { + var ret AdyenGatewayDataRelationshipsPaymentMethodsData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *CustomerPaymentSourceCreateDataRelationshipsPaymentMethod) GetDataOk() (*AdyenGatewayDataRelationshipsPaymentMethodsData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *CustomerPaymentSourceCreateDataRelationshipsPaymentMethod) SetData(v AdyenGatewayDataRelationshipsPaymentMethodsData) { + o.Data = v +} + +func (o CustomerPaymentSourceCreateDataRelationshipsPaymentMethod) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CustomerPaymentSourceCreateDataRelationshipsPaymentMethod) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableCustomerPaymentSourceCreateDataRelationshipsPaymentMethod struct { + value *CustomerPaymentSourceCreateDataRelationshipsPaymentMethod + isSet bool +} + +func (v NullableCustomerPaymentSourceCreateDataRelationshipsPaymentMethod) Get() *CustomerPaymentSourceCreateDataRelationshipsPaymentMethod { + return v.value +} + +func (v *NullableCustomerPaymentSourceCreateDataRelationshipsPaymentMethod) Set(val *CustomerPaymentSourceCreateDataRelationshipsPaymentMethod) { + v.value = val + v.isSet = true +} + +func (v NullableCustomerPaymentSourceCreateDataRelationshipsPaymentMethod) IsSet() bool { + return v.isSet +} + +func (v *NullableCustomerPaymentSourceCreateDataRelationshipsPaymentMethod) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCustomerPaymentSourceCreateDataRelationshipsPaymentMethod(val *CustomerPaymentSourceCreateDataRelationshipsPaymentMethod) *NullableCustomerPaymentSourceCreateDataRelationshipsPaymentMethod { + return &NullableCustomerPaymentSourceCreateDataRelationshipsPaymentMethod{value: val, isSet: true} +} + +func (v NullableCustomerPaymentSourceCreateDataRelationshipsPaymentMethod) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCustomerPaymentSourceCreateDataRelationshipsPaymentMethod) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_customer_payment_source_create_data_relationships_payment_source.go b/api/model_customer_payment_source_create_data_relationships_payment_source.go index e6907a4c..5afc1ba6 100644 --- a/api/model_customer_payment_source_create_data_relationships_payment_source.go +++ b/api/model_customer_payment_source_create_data_relationships_payment_source.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_payment_source_data.go b/api/model_customer_payment_source_data.go index dbc67b27..81345eba 100644 --- a/api/model_customer_payment_source_data.go +++ b/api/model_customer_payment_source_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_payment_source_data_relationships.go b/api/model_customer_payment_source_data_relationships.go index bfdeb95f..cecdc0f2 100644 --- a/api/model_customer_payment_source_data_relationships.go +++ b/api/model_customer_payment_source_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,7 +21,9 @@ var _ MappedNullable = &CustomerPaymentSourceDataRelationships{} // CustomerPaymentSourceDataRelationships struct for CustomerPaymentSourceDataRelationships type CustomerPaymentSourceDataRelationships struct { Customer *CouponRecipientDataRelationshipsCustomer `json:"customer,omitempty"` + PaymentMethod *AdyenGatewayDataRelationshipsPaymentMethods `json:"payment_method,omitempty"` PaymentSource *CustomerPaymentSourceDataRelationshipsPaymentSource `json:"payment_source,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewCustomerPaymentSourceDataRelationships instantiates a new CustomerPaymentSourceDataRelationships object @@ -73,6 +75,38 @@ func (o *CustomerPaymentSourceDataRelationships) SetCustomer(v CouponRecipientDa o.Customer = &v } +// GetPaymentMethod returns the PaymentMethod field value if set, zero value otherwise. +func (o *CustomerPaymentSourceDataRelationships) GetPaymentMethod() AdyenGatewayDataRelationshipsPaymentMethods { + if o == nil || IsNil(o.PaymentMethod) { + var ret AdyenGatewayDataRelationshipsPaymentMethods + return ret + } + return *o.PaymentMethod +} + +// GetPaymentMethodOk returns a tuple with the PaymentMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomerPaymentSourceDataRelationships) GetPaymentMethodOk() (*AdyenGatewayDataRelationshipsPaymentMethods, bool) { + if o == nil || IsNil(o.PaymentMethod) { + return nil, false + } + return o.PaymentMethod, true +} + +// HasPaymentMethod returns a boolean if a field has been set. +func (o *CustomerPaymentSourceDataRelationships) HasPaymentMethod() bool { + if o != nil && !IsNil(o.PaymentMethod) { + return true + } + + return false +} + +// SetPaymentMethod gets a reference to the given AdyenGatewayDataRelationshipsPaymentMethods and assigns it to the PaymentMethod field. +func (o *CustomerPaymentSourceDataRelationships) SetPaymentMethod(v AdyenGatewayDataRelationshipsPaymentMethods) { + o.PaymentMethod = &v +} + // GetPaymentSource returns the PaymentSource field value if set, zero value otherwise. func (o *CustomerPaymentSourceDataRelationships) GetPaymentSource() CustomerPaymentSourceDataRelationshipsPaymentSource { if o == nil || IsNil(o.PaymentSource) { @@ -105,6 +139,38 @@ func (o *CustomerPaymentSourceDataRelationships) SetPaymentSource(v CustomerPaym o.PaymentSource = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *CustomerPaymentSourceDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomerPaymentSourceDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *CustomerPaymentSourceDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *CustomerPaymentSourceDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o CustomerPaymentSourceDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -118,9 +184,15 @@ func (o CustomerPaymentSourceDataRelationships) ToMap() (map[string]interface{}, if !IsNil(o.Customer) { toSerialize["customer"] = o.Customer } + if !IsNil(o.PaymentMethod) { + toSerialize["payment_method"] = o.PaymentMethod + } if !IsNil(o.PaymentSource) { toSerialize["payment_source"] = o.PaymentSource } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_customer_payment_source_data_relationships_payment_source.go b/api/model_customer_payment_source_data_relationships_payment_source.go index c9e60ad9..4110d8c1 100644 --- a/api/model_customer_payment_source_data_relationships_payment_source.go +++ b/api/model_customer_payment_source_data_relationships_payment_source.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_payment_source_data_relationships_payment_source_data.go b/api/model_customer_payment_source_data_relationships_payment_source_data.go index 1e348645..a7a57ba5 100644 --- a/api/model_customer_payment_source_data_relationships_payment_source_data.go +++ b/api/model_customer_payment_source_data_relationships_payment_source_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_payment_source_update.go b/api/model_customer_payment_source_update.go index b02cc525..84946b84 100644 --- a/api/model_customer_payment_source_update.go +++ b/api/model_customer_payment_source_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_payment_source_update_data.go b/api/model_customer_payment_source_update_data.go index dde76469..2a93abff 100644 --- a/api/model_customer_payment_source_update_data.go +++ b/api/model_customer_payment_source_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,16 +23,16 @@ type CustomerPaymentSourceUpdateData struct { // The resource's type Type interface{} `json:"type"` // The resource's id - Id interface{} `json:"id"` - Attributes PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes `json:"attributes"` - Relationships *CustomerPaymentSourceUpdateDataRelationships `json:"relationships,omitempty"` + Id interface{} `json:"id"` + Attributes PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes `json:"attributes"` + Relationships *CustomerPaymentSourceUpdateDataRelationships `json:"relationships,omitempty"` } // NewCustomerPaymentSourceUpdateData instantiates a new CustomerPaymentSourceUpdateData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCustomerPaymentSourceUpdateData(type_ interface{}, id interface{}, attributes PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) *CustomerPaymentSourceUpdateData { +func NewCustomerPaymentSourceUpdateData(type_ interface{}, id interface{}, attributes PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) *CustomerPaymentSourceUpdateData { this := CustomerPaymentSourceUpdateData{} this.Type = type_ this.Id = id @@ -101,9 +101,9 @@ func (o *CustomerPaymentSourceUpdateData) SetId(v interface{}) { } // GetAttributes returns the Attributes field value -func (o *CustomerPaymentSourceUpdateData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes { +func (o *CustomerPaymentSourceUpdateData) GetAttributes() PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes { if o == nil { - var ret PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes + var ret PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes return ret } @@ -112,7 +112,7 @@ func (o *CustomerPaymentSourceUpdateData) GetAttributes() PATCHBillingInfoValida // GetAttributesOk returns a tuple with the Attributes field value // and a boolean to check if the value has been set. -func (o *CustomerPaymentSourceUpdateData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool) { +func (o *CustomerPaymentSourceUpdateData) GetAttributesOk() (*PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes, bool) { if o == nil { return nil, false } @@ -120,7 +120,7 @@ func (o *CustomerPaymentSourceUpdateData) GetAttributesOk() (*PATCHBillingInfoVa } // SetAttributes sets field value -func (o *CustomerPaymentSourceUpdateData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) { +func (o *CustomerPaymentSourceUpdateData) SetAttributes(v PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) { o.Attributes = v } diff --git a/api/model_customer_payment_source_update_data_relationships.go b/api/model_customer_payment_source_update_data_relationships.go index 596f5e81..af6eec20 100644 --- a/api/model_customer_payment_source_update_data_relationships.go +++ b/api/model_customer_payment_source_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &CustomerPaymentSourceUpdateDataRelationships{} // CustomerPaymentSourceUpdateDataRelationships struct for CustomerPaymentSourceUpdateDataRelationships type CustomerPaymentSourceUpdateDataRelationships struct { Customer *CouponRecipientCreateDataRelationshipsCustomer `json:"customer,omitempty"` + PaymentMethod *CustomerPaymentSourceCreateDataRelationshipsPaymentMethod `json:"payment_method,omitempty"` PaymentSource *CustomerPaymentSourceCreateDataRelationshipsPaymentSource `json:"payment_source,omitempty"` } @@ -73,6 +74,38 @@ func (o *CustomerPaymentSourceUpdateDataRelationships) SetCustomer(v CouponRecip o.Customer = &v } +// GetPaymentMethod returns the PaymentMethod field value if set, zero value otherwise. +func (o *CustomerPaymentSourceUpdateDataRelationships) GetPaymentMethod() CustomerPaymentSourceCreateDataRelationshipsPaymentMethod { + if o == nil || IsNil(o.PaymentMethod) { + var ret CustomerPaymentSourceCreateDataRelationshipsPaymentMethod + return ret + } + return *o.PaymentMethod +} + +// GetPaymentMethodOk returns a tuple with the PaymentMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomerPaymentSourceUpdateDataRelationships) GetPaymentMethodOk() (*CustomerPaymentSourceCreateDataRelationshipsPaymentMethod, bool) { + if o == nil || IsNil(o.PaymentMethod) { + return nil, false + } + return o.PaymentMethod, true +} + +// HasPaymentMethod returns a boolean if a field has been set. +func (o *CustomerPaymentSourceUpdateDataRelationships) HasPaymentMethod() bool { + if o != nil && !IsNil(o.PaymentMethod) { + return true + } + + return false +} + +// SetPaymentMethod gets a reference to the given CustomerPaymentSourceCreateDataRelationshipsPaymentMethod and assigns it to the PaymentMethod field. +func (o *CustomerPaymentSourceUpdateDataRelationships) SetPaymentMethod(v CustomerPaymentSourceCreateDataRelationshipsPaymentMethod) { + o.PaymentMethod = &v +} + // GetPaymentSource returns the PaymentSource field value if set, zero value otherwise. func (o *CustomerPaymentSourceUpdateDataRelationships) GetPaymentSource() CustomerPaymentSourceCreateDataRelationshipsPaymentSource { if o == nil || IsNil(o.PaymentSource) { @@ -118,6 +151,9 @@ func (o CustomerPaymentSourceUpdateDataRelationships) ToMap() (map[string]interf if !IsNil(o.Customer) { toSerialize["customer"] = o.Customer } + if !IsNil(o.PaymentMethod) { + toSerialize["payment_method"] = o.PaymentMethod + } if !IsNil(o.PaymentSource) { toSerialize["payment_source"] = o.PaymentSource } diff --git a/api/model_customer_subscription.go b/api/model_customer_subscription.go index 8da6cddd..0db916a5 100644 --- a/api/model_customer_subscription.go +++ b/api/model_customer_subscription.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_subscription_create.go b/api/model_customer_subscription_create.go index 38eb907d..161d06e0 100644 --- a/api/model_customer_subscription_create.go +++ b/api/model_customer_subscription_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_subscription_create_data.go b/api/model_customer_subscription_create_data.go index 86f63d4c..f0800838 100644 --- a/api/model_customer_subscription_create_data.go +++ b/api/model_customer_subscription_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_subscription_data.go b/api/model_customer_subscription_data.go index 55d10173..7ef77fdf 100644 --- a/api/model_customer_subscription_data.go +++ b/api/model_customer_subscription_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type CustomerSubscriptionData struct { // The resource's type Type interface{} `json:"type"` Attributes GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes `json:"attributes"` - Relationships *CustomerPasswordResetDataRelationships `json:"relationships,omitempty"` + Relationships *CustomerSubscriptionDataRelationships `json:"relationships,omitempty"` } // NewCustomerSubscriptionData instantiates a new CustomerSubscriptionData object @@ -96,9 +96,9 @@ func (o *CustomerSubscriptionData) SetAttributes(v GETCustomerSubscriptionsCusto } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *CustomerSubscriptionData) GetRelationships() CustomerPasswordResetDataRelationships { +func (o *CustomerSubscriptionData) GetRelationships() CustomerSubscriptionDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret CustomerPasswordResetDataRelationships + var ret CustomerSubscriptionDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *CustomerSubscriptionData) GetRelationships() CustomerPasswordResetDataR // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CustomerSubscriptionData) GetRelationshipsOk() (*CustomerPasswordResetDataRelationships, bool) { +func (o *CustomerSubscriptionData) GetRelationshipsOk() (*CustomerSubscriptionDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *CustomerSubscriptionData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given CustomerPasswordResetDataRelationships and assigns it to the Relationships field. -func (o *CustomerSubscriptionData) SetRelationships(v CustomerPasswordResetDataRelationships) { +// SetRelationships gets a reference to the given CustomerSubscriptionDataRelationships and assigns it to the Relationships field. +func (o *CustomerSubscriptionData) SetRelationships(v CustomerSubscriptionDataRelationships) { o.Relationships = &v } diff --git a/api/model_customer_subscription_data_relationships.go b/api/model_customer_subscription_data_relationships.go new file mode 100644 index 00000000..a70d8c9d --- /dev/null +++ b/api/model_customer_subscription_data_relationships.go @@ -0,0 +1,197 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the CustomerSubscriptionDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CustomerSubscriptionDataRelationships{} + +// CustomerSubscriptionDataRelationships struct for CustomerSubscriptionDataRelationships +type CustomerSubscriptionDataRelationships struct { + Customer *CouponRecipientDataRelationshipsCustomer `json:"customer,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewCustomerSubscriptionDataRelationships instantiates a new CustomerSubscriptionDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCustomerSubscriptionDataRelationships() *CustomerSubscriptionDataRelationships { + this := CustomerSubscriptionDataRelationships{} + return &this +} + +// NewCustomerSubscriptionDataRelationshipsWithDefaults instantiates a new CustomerSubscriptionDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCustomerSubscriptionDataRelationshipsWithDefaults() *CustomerSubscriptionDataRelationships { + this := CustomerSubscriptionDataRelationships{} + return &this +} + +// GetCustomer returns the Customer field value if set, zero value otherwise. +func (o *CustomerSubscriptionDataRelationships) GetCustomer() CouponRecipientDataRelationshipsCustomer { + if o == nil || IsNil(o.Customer) { + var ret CouponRecipientDataRelationshipsCustomer + return ret + } + return *o.Customer +} + +// GetCustomerOk returns a tuple with the Customer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomerSubscriptionDataRelationships) GetCustomerOk() (*CouponRecipientDataRelationshipsCustomer, bool) { + if o == nil || IsNil(o.Customer) { + return nil, false + } + return o.Customer, true +} + +// HasCustomer returns a boolean if a field has been set. +func (o *CustomerSubscriptionDataRelationships) HasCustomer() bool { + if o != nil && !IsNil(o.Customer) { + return true + } + + return false +} + +// SetCustomer gets a reference to the given CouponRecipientDataRelationshipsCustomer and assigns it to the Customer field. +func (o *CustomerSubscriptionDataRelationships) SetCustomer(v CouponRecipientDataRelationshipsCustomer) { + o.Customer = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *CustomerSubscriptionDataRelationships) GetEvents() AddressDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret AddressDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomerSubscriptionDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *CustomerSubscriptionDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *CustomerSubscriptionDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { + o.Events = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *CustomerSubscriptionDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomerSubscriptionDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *CustomerSubscriptionDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *CustomerSubscriptionDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + +func (o CustomerSubscriptionDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CustomerSubscriptionDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Customer) { + toSerialize["customer"] = o.Customer + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullableCustomerSubscriptionDataRelationships struct { + value *CustomerSubscriptionDataRelationships + isSet bool +} + +func (v NullableCustomerSubscriptionDataRelationships) Get() *CustomerSubscriptionDataRelationships { + return v.value +} + +func (v *NullableCustomerSubscriptionDataRelationships) Set(val *CustomerSubscriptionDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableCustomerSubscriptionDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableCustomerSubscriptionDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCustomerSubscriptionDataRelationships(val *CustomerSubscriptionDataRelationships) *NullableCustomerSubscriptionDataRelationships { + return &NullableCustomerSubscriptionDataRelationships{value: val, isSet: true} +} + +func (v NullableCustomerSubscriptionDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCustomerSubscriptionDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_customer_subscription_update.go b/api/model_customer_subscription_update.go index de897e9d..b0edbca1 100644 --- a/api/model_customer_subscription_update.go +++ b/api/model_customer_subscription_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_subscription_update_data.go b/api/model_customer_subscription_update_data.go index 77554764..906afb11 100644 --- a/api/model_customer_subscription_update_data.go +++ b/api/model_customer_subscription_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,16 +23,16 @@ type CustomerSubscriptionUpdateData struct { // The resource's type Type interface{} `json:"type"` // The resource's id - Id interface{} `json:"id"` - Attributes PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes `json:"attributes"` - Relationships interface{} `json:"relationships,omitempty"` + Id interface{} `json:"id"` + Attributes PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes `json:"attributes"` + Relationships interface{} `json:"relationships,omitempty"` } // NewCustomerSubscriptionUpdateData instantiates a new CustomerSubscriptionUpdateData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCustomerSubscriptionUpdateData(type_ interface{}, id interface{}, attributes PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) *CustomerSubscriptionUpdateData { +func NewCustomerSubscriptionUpdateData(type_ interface{}, id interface{}, attributes PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) *CustomerSubscriptionUpdateData { this := CustomerSubscriptionUpdateData{} this.Type = type_ this.Id = id @@ -101,9 +101,9 @@ func (o *CustomerSubscriptionUpdateData) SetId(v interface{}) { } // GetAttributes returns the Attributes field value -func (o *CustomerSubscriptionUpdateData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes { +func (o *CustomerSubscriptionUpdateData) GetAttributes() PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes { if o == nil { - var ret PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes + var ret PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes return ret } @@ -112,7 +112,7 @@ func (o *CustomerSubscriptionUpdateData) GetAttributes() PATCHBillingInfoValidat // GetAttributesOk returns a tuple with the Attributes field value // and a boolean to check if the value has been set. -func (o *CustomerSubscriptionUpdateData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool) { +func (o *CustomerSubscriptionUpdateData) GetAttributesOk() (*PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes, bool) { if o == nil { return nil, false } @@ -120,7 +120,7 @@ func (o *CustomerSubscriptionUpdateData) GetAttributesOk() (*PATCHBillingInfoVal } // SetAttributes sets field value -func (o *CustomerSubscriptionUpdateData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) { +func (o *CustomerSubscriptionUpdateData) SetAttributes(v PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) { o.Attributes = v } diff --git a/api/model_customer_update.go b/api/model_customer_update.go index 9b9bf8b9..9aa4fa6c 100644 --- a/api/model_customer_update.go +++ b/api/model_customer_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_customer_update_data.go b/api/model_customer_update_data.go index 2bd3f82f..bd28ab22 100644 --- a/api/model_customer_update_data.go +++ b/api/model_customer_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_delivery_lead_time.go b/api/model_delivery_lead_time.go index cefb3962..2ccccc4a 100644 --- a/api/model_delivery_lead_time.go +++ b/api/model_delivery_lead_time.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_delivery_lead_time_create.go b/api/model_delivery_lead_time_create.go index 8ef48b21..b7aa7492 100644 --- a/api/model_delivery_lead_time_create.go +++ b/api/model_delivery_lead_time_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_delivery_lead_time_create_data.go b/api/model_delivery_lead_time_create_data.go index 75cd5428..e5a71e84 100644 --- a/api/model_delivery_lead_time_create_data.go +++ b/api/model_delivery_lead_time_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_delivery_lead_time_create_data_relationships.go b/api/model_delivery_lead_time_create_data_relationships.go index cadb965d..63e3ab86 100644 --- a/api/model_delivery_lead_time_create_data_relationships.go +++ b/api/model_delivery_lead_time_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_delivery_lead_time_create_data_relationships_shipping_method.go b/api/model_delivery_lead_time_create_data_relationships_shipping_method.go index 7cc92425..e2808f59 100644 --- a/api/model_delivery_lead_time_create_data_relationships_shipping_method.go +++ b/api/model_delivery_lead_time_create_data_relationships_shipping_method.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_delivery_lead_time_create_data_relationships_stock_location.go b/api/model_delivery_lead_time_create_data_relationships_stock_location.go index faecd27c..9de18ab3 100644 --- a/api/model_delivery_lead_time_create_data_relationships_stock_location.go +++ b/api/model_delivery_lead_time_create_data_relationships_stock_location.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_delivery_lead_time_data.go b/api/model_delivery_lead_time_data.go index c739ca1e..1e7ad7a7 100644 --- a/api/model_delivery_lead_time_data.go +++ b/api/model_delivery_lead_time_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_delivery_lead_time_data_relationships.go b/api/model_delivery_lead_time_data_relationships.go index 38e9d7e5..96bc75fa 100644 --- a/api/model_delivery_lead_time_data_relationships.go +++ b/api/model_delivery_lead_time_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,7 +22,8 @@ var _ MappedNullable = &DeliveryLeadTimeDataRelationships{} type DeliveryLeadTimeDataRelationships struct { StockLocation *DeliveryLeadTimeDataRelationshipsStockLocation `json:"stock_location,omitempty"` ShippingMethod *DeliveryLeadTimeDataRelationshipsShippingMethod `json:"shipping_method,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewDeliveryLeadTimeDataRelationships instantiates a new DeliveryLeadTimeDataRelationships object @@ -107,9 +108,9 @@ func (o *DeliveryLeadTimeDataRelationships) SetShippingMethod(v DeliveryLeadTime } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *DeliveryLeadTimeDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *DeliveryLeadTimeDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -117,7 +118,7 @@ func (o *DeliveryLeadTimeDataRelationships) GetAttachments() AvalaraAccountDataR // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *DeliveryLeadTimeDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *DeliveryLeadTimeDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -133,11 +134,43 @@ func (o *DeliveryLeadTimeDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *DeliveryLeadTimeDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *DeliveryLeadTimeDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *DeliveryLeadTimeDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeliveryLeadTimeDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *DeliveryLeadTimeDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *DeliveryLeadTimeDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o DeliveryLeadTimeDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -157,6 +190,9 @@ func (o DeliveryLeadTimeDataRelationships) ToMap() (map[string]interface{}, erro if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_delivery_lead_time_data_relationships_shipping_method.go b/api/model_delivery_lead_time_data_relationships_shipping_method.go index fd197ce4..6d4dcb7d 100644 --- a/api/model_delivery_lead_time_data_relationships_shipping_method.go +++ b/api/model_delivery_lead_time_data_relationships_shipping_method.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_delivery_lead_time_data_relationships_shipping_method_data.go b/api/model_delivery_lead_time_data_relationships_shipping_method_data.go index d57a4d40..912ad00a 100644 --- a/api/model_delivery_lead_time_data_relationships_shipping_method_data.go +++ b/api/model_delivery_lead_time_data_relationships_shipping_method_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_delivery_lead_time_data_relationships_stock_location.go b/api/model_delivery_lead_time_data_relationships_stock_location.go index ce66d6d4..b27a3f89 100644 --- a/api/model_delivery_lead_time_data_relationships_stock_location.go +++ b/api/model_delivery_lead_time_data_relationships_stock_location.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_delivery_lead_time_data_relationships_stock_location_data.go b/api/model_delivery_lead_time_data_relationships_stock_location_data.go index 98028e1b..235a0baf 100644 --- a/api/model_delivery_lead_time_data_relationships_stock_location_data.go +++ b/api/model_delivery_lead_time_data_relationships_stock_location_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_delivery_lead_time_update.go b/api/model_delivery_lead_time_update.go index 57aa7eab..943617f3 100644 --- a/api/model_delivery_lead_time_update.go +++ b/api/model_delivery_lead_time_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_delivery_lead_time_update_data.go b/api/model_delivery_lead_time_update_data.go index 824cc237..09fabf2f 100644 --- a/api/model_delivery_lead_time_update_data.go +++ b/api/model_delivery_lead_time_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_delivery_lead_time_update_data_relationships.go b/api/model_delivery_lead_time_update_data_relationships.go index f6feba10..8b9396d3 100644 --- a/api/model_delivery_lead_time_update_data_relationships.go +++ b/api/model_delivery_lead_time_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_event.go b/api/model_event.go index 6ca8a68f..01d42fdc 100644 --- a/api/model_event.go +++ b/api/model_event.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_event_callback.go b/api/model_event_callback.go index d4ecb4be..1391c53a 100644 --- a/api/model_event_callback.go +++ b/api/model_event_callback.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_event_callback_data.go b/api/model_event_callback_data.go index 8d0ed568..96a4d532 100644 --- a/api/model_event_callback_data.go +++ b/api/model_event_callback_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_event_callback_data_relationships.go b/api/model_event_callback_data_relationships.go index fcd1c6f0..90871ba3 100644 --- a/api/model_event_callback_data_relationships.go +++ b/api/model_event_callback_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_event_callback_data_relationships_webhook.go b/api/model_event_callback_data_relationships_webhook.go index 60b45310..6edba09b 100644 --- a/api/model_event_callback_data_relationships_webhook.go +++ b/api/model_event_callback_data_relationships_webhook.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_event_callback_data_relationships_webhook_data.go b/api/model_event_callback_data_relationships_webhook_data.go index 17375752..03ab76de 100644 --- a/api/model_event_callback_data_relationships_webhook_data.go +++ b/api/model_event_callback_data_relationships_webhook_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_event_data.go b/api/model_event_data.go index e1f87037..8b87cc4a 100644 --- a/api/model_event_data.go +++ b/api/model_event_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_event_data_relationships.go b/api/model_event_data_relationships.go index 37a5c4de..97387635 100644 --- a/api/model_event_data_relationships.go +++ b/api/model_event_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,8 @@ var _ MappedNullable = &EventDataRelationships{} // EventDataRelationships struct for EventDataRelationships type EventDataRelationships struct { - LastEventCallbacks *EventDataRelationshipsLastEventCallbacks `json:"last_event_callbacks,omitempty"` Webhooks *EventCallbackDataRelationshipsWebhook `json:"webhooks,omitempty"` + LastEventCallbacks *EventDataRelationshipsLastEventCallbacks `json:"last_event_callbacks,omitempty"` } // NewEventDataRelationships instantiates a new EventDataRelationships object @@ -41,68 +41,68 @@ func NewEventDataRelationshipsWithDefaults() *EventDataRelationships { return &this } -// GetLastEventCallbacks returns the LastEventCallbacks field value if set, zero value otherwise. -func (o *EventDataRelationships) GetLastEventCallbacks() EventDataRelationshipsLastEventCallbacks { - if o == nil || IsNil(o.LastEventCallbacks) { - var ret EventDataRelationshipsLastEventCallbacks +// GetWebhooks returns the Webhooks field value if set, zero value otherwise. +func (o *EventDataRelationships) GetWebhooks() EventCallbackDataRelationshipsWebhook { + if o == nil || IsNil(o.Webhooks) { + var ret EventCallbackDataRelationshipsWebhook return ret } - return *o.LastEventCallbacks + return *o.Webhooks } -// GetLastEventCallbacksOk returns a tuple with the LastEventCallbacks field value if set, nil otherwise +// GetWebhooksOk returns a tuple with the Webhooks field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *EventDataRelationships) GetLastEventCallbacksOk() (*EventDataRelationshipsLastEventCallbacks, bool) { - if o == nil || IsNil(o.LastEventCallbacks) { +func (o *EventDataRelationships) GetWebhooksOk() (*EventCallbackDataRelationshipsWebhook, bool) { + if o == nil || IsNil(o.Webhooks) { return nil, false } - return o.LastEventCallbacks, true + return o.Webhooks, true } -// HasLastEventCallbacks returns a boolean if a field has been set. -func (o *EventDataRelationships) HasLastEventCallbacks() bool { - if o != nil && !IsNil(o.LastEventCallbacks) { +// HasWebhooks returns a boolean if a field has been set. +func (o *EventDataRelationships) HasWebhooks() bool { + if o != nil && !IsNil(o.Webhooks) { return true } return false } -// SetLastEventCallbacks gets a reference to the given EventDataRelationshipsLastEventCallbacks and assigns it to the LastEventCallbacks field. -func (o *EventDataRelationships) SetLastEventCallbacks(v EventDataRelationshipsLastEventCallbacks) { - o.LastEventCallbacks = &v +// SetWebhooks gets a reference to the given EventCallbackDataRelationshipsWebhook and assigns it to the Webhooks field. +func (o *EventDataRelationships) SetWebhooks(v EventCallbackDataRelationshipsWebhook) { + o.Webhooks = &v } -// GetWebhooks returns the Webhooks field value if set, zero value otherwise. -func (o *EventDataRelationships) GetWebhooks() EventCallbackDataRelationshipsWebhook { - if o == nil || IsNil(o.Webhooks) { - var ret EventCallbackDataRelationshipsWebhook +// GetLastEventCallbacks returns the LastEventCallbacks field value if set, zero value otherwise. +func (o *EventDataRelationships) GetLastEventCallbacks() EventDataRelationshipsLastEventCallbacks { + if o == nil || IsNil(o.LastEventCallbacks) { + var ret EventDataRelationshipsLastEventCallbacks return ret } - return *o.Webhooks + return *o.LastEventCallbacks } -// GetWebhooksOk returns a tuple with the Webhooks field value if set, nil otherwise +// GetLastEventCallbacksOk returns a tuple with the LastEventCallbacks field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *EventDataRelationships) GetWebhooksOk() (*EventCallbackDataRelationshipsWebhook, bool) { - if o == nil || IsNil(o.Webhooks) { +func (o *EventDataRelationships) GetLastEventCallbacksOk() (*EventDataRelationshipsLastEventCallbacks, bool) { + if o == nil || IsNil(o.LastEventCallbacks) { return nil, false } - return o.Webhooks, true + return o.LastEventCallbacks, true } -// HasWebhooks returns a boolean if a field has been set. -func (o *EventDataRelationships) HasWebhooks() bool { - if o != nil && !IsNil(o.Webhooks) { +// HasLastEventCallbacks returns a boolean if a field has been set. +func (o *EventDataRelationships) HasLastEventCallbacks() bool { + if o != nil && !IsNil(o.LastEventCallbacks) { return true } return false } -// SetWebhooks gets a reference to the given EventCallbackDataRelationshipsWebhook and assigns it to the Webhooks field. -func (o *EventDataRelationships) SetWebhooks(v EventCallbackDataRelationshipsWebhook) { - o.Webhooks = &v +// SetLastEventCallbacks gets a reference to the given EventDataRelationshipsLastEventCallbacks and assigns it to the LastEventCallbacks field. +func (o *EventDataRelationships) SetLastEventCallbacks(v EventDataRelationshipsLastEventCallbacks) { + o.LastEventCallbacks = &v } func (o EventDataRelationships) MarshalJSON() ([]byte, error) { @@ -115,12 +115,12 @@ func (o EventDataRelationships) MarshalJSON() ([]byte, error) { func (o EventDataRelationships) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.LastEventCallbacks) { - toSerialize["last_event_callbacks"] = o.LastEventCallbacks - } if !IsNil(o.Webhooks) { toSerialize["webhooks"] = o.Webhooks } + if !IsNil(o.LastEventCallbacks) { + toSerialize["last_event_callbacks"] = o.LastEventCallbacks + } return toSerialize, nil } diff --git a/api/model_event_data_relationships_last_event_callbacks.go b/api/model_event_data_relationships_last_event_callbacks.go index a763ba0c..678a366e 100644 --- a/api/model_event_data_relationships_last_event_callbacks.go +++ b/api/model_event_data_relationships_last_event_callbacks.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_event_data_relationships_last_event_callbacks_data.go b/api/model_event_data_relationships_last_event_callbacks_data.go index 8e3d6fd1..5c4ce47d 100644 --- a/api/model_event_data_relationships_last_event_callbacks_data.go +++ b/api/model_event_data_relationships_last_event_callbacks_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_event_update.go b/api/model_event_update.go new file mode 100644 index 00000000..eca7223b --- /dev/null +++ b/api/model_event_update.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the EventUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EventUpdate{} + +// EventUpdate struct for EventUpdate +type EventUpdate struct { + Data EventUpdateData `json:"data"` +} + +// NewEventUpdate instantiates a new EventUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEventUpdate(data EventUpdateData) *EventUpdate { + this := EventUpdate{} + this.Data = data + return &this +} + +// NewEventUpdateWithDefaults instantiates a new EventUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEventUpdateWithDefaults() *EventUpdate { + this := EventUpdate{} + return &this +} + +// GetData returns the Data field value +func (o *EventUpdate) GetData() EventUpdateData { + if o == nil { + var ret EventUpdateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *EventUpdate) GetDataOk() (*EventUpdateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *EventUpdate) SetData(v EventUpdateData) { + o.Data = v +} + +func (o EventUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EventUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableEventUpdate struct { + value *EventUpdate + isSet bool +} + +func (v NullableEventUpdate) Get() *EventUpdate { + return v.value +} + +func (v *NullableEventUpdate) Set(val *EventUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableEventUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableEventUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEventUpdate(val *EventUpdate) *NullableEventUpdate { + return &NullableEventUpdate{value: val, isSet: true} +} + +func (v NullableEventUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEventUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_event_update_data.go b/api/model_event_update_data.go new file mode 100644 index 00000000..5a7c21da --- /dev/null +++ b/api/model_event_update_data.go @@ -0,0 +1,217 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the EventUpdateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EventUpdateData{} + +// EventUpdateData struct for EventUpdateData +type EventUpdateData struct { + // The resource's type + Type interface{} `json:"type"` + // The resource's id + Id interface{} `json:"id"` + Attributes PATCHEventsEventId200ResponseDataAttributes `json:"attributes"` + Relationships interface{} `json:"relationships,omitempty"` +} + +// NewEventUpdateData instantiates a new EventUpdateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEventUpdateData(type_ interface{}, id interface{}, attributes PATCHEventsEventId200ResponseDataAttributes) *EventUpdateData { + this := EventUpdateData{} + this.Type = type_ + this.Id = id + this.Attributes = attributes + return &this +} + +// NewEventUpdateDataWithDefaults instantiates a new EventUpdateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEventUpdateDataWithDefaults() *EventUpdateData { + this := EventUpdateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *EventUpdateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EventUpdateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *EventUpdateData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *EventUpdateData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EventUpdateData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *EventUpdateData) SetId(v interface{}) { + o.Id = v +} + +// GetAttributes returns the Attributes field value +func (o *EventUpdateData) GetAttributes() PATCHEventsEventId200ResponseDataAttributes { + if o == nil { + var ret PATCHEventsEventId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *EventUpdateData) GetAttributesOk() (*PATCHEventsEventId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *EventUpdateData) SetAttributes(v PATCHEventsEventId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *EventUpdateData) GetRelationships() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *EventUpdateData) GetRelationshipsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return &o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *EventUpdateData) HasRelationships() bool { + if o != nil && IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. +func (o *EventUpdateData) SetRelationships(v interface{}) { + o.Relationships = v +} + +func (o EventUpdateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EventUpdateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + toSerialize["attributes"] = o.Attributes + if o.Relationships != nil { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableEventUpdateData struct { + value *EventUpdateData + isSet bool +} + +func (v NullableEventUpdateData) Get() *EventUpdateData { + return v.value +} + +func (v *NullableEventUpdateData) Set(val *EventUpdateData) { + v.value = val + v.isSet = true +} + +func (v NullableEventUpdateData) IsSet() bool { + return v.isSet +} + +func (v *NullableEventUpdateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEventUpdateData(val *EventUpdateData) *NullableEventUpdateData { + return &NullableEventUpdateData{value: val, isSet: true} +} + +func (v NullableEventUpdateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEventUpdateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_export.go b/api/model_export.go index cd7b665b..4b94dacf 100644 --- a/api/model_export.go +++ b/api/model_export.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_export_create.go b/api/model_export_create.go index 121718bc..ff71f64b 100644 --- a/api/model_export_create.go +++ b/api/model_export_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_export_create_data.go b/api/model_export_create_data.go index 3ad4263e..7cbdcee0 100644 --- a/api/model_export_create_data.go +++ b/api/model_export_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_export_data.go b/api/model_export_data.go index 306c916e..157cf763 100644 --- a/api/model_export_data.go +++ b/api/model_export_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type ExportData struct { // The resource's type Type interface{} `json:"type"` Attributes GETExportsExportId200ResponseDataAttributes `json:"attributes"` - Relationships *CleanupDataRelationships `json:"relationships,omitempty"` + Relationships *ExportDataRelationships `json:"relationships,omitempty"` } // NewExportData instantiates a new ExportData object @@ -96,9 +96,9 @@ func (o *ExportData) SetAttributes(v GETExportsExportId200ResponseDataAttributes } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *ExportData) GetRelationships() CleanupDataRelationships { +func (o *ExportData) GetRelationships() ExportDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret CleanupDataRelationships + var ret ExportDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *ExportData) GetRelationships() CleanupDataRelationships { // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ExportData) GetRelationshipsOk() (*CleanupDataRelationships, bool) { +func (o *ExportData) GetRelationshipsOk() (*ExportDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *ExportData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given CleanupDataRelationships and assigns it to the Relationships field. -func (o *ExportData) SetRelationships(v CleanupDataRelationships) { +// SetRelationships gets a reference to the given ExportDataRelationships and assigns it to the Relationships field. +func (o *ExportData) SetRelationships(v ExportDataRelationships) { o.Relationships = &v } diff --git a/api/model_export_data_relationships.go b/api/model_export_data_relationships.go new file mode 100644 index 00000000..662961e5 --- /dev/null +++ b/api/model_export_data_relationships.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ExportDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ExportDataRelationships{} + +// ExportDataRelationships struct for ExportDataRelationships +type ExportDataRelationships struct { + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` +} + +// NewExportDataRelationships instantiates a new ExportDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewExportDataRelationships() *ExportDataRelationships { + this := ExportDataRelationships{} + return &this +} + +// NewExportDataRelationshipsWithDefaults instantiates a new ExportDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewExportDataRelationshipsWithDefaults() *ExportDataRelationships { + this := ExportDataRelationships{} + return &this +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *ExportDataRelationships) GetEvents() AddressDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret AddressDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExportDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *ExportDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *ExportDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { + o.Events = &v +} + +func (o ExportDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ExportDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + return toSerialize, nil +} + +type NullableExportDataRelationships struct { + value *ExportDataRelationships + isSet bool +} + +func (v NullableExportDataRelationships) Get() *ExportDataRelationships { + return v.value +} + +func (v *NullableExportDataRelationships) Set(val *ExportDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableExportDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableExportDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableExportDataRelationships(val *ExportDataRelationships) *NullableExportDataRelationships { + return &NullableExportDataRelationships{value: val, isSet: true} +} + +func (v NullableExportDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableExportDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_export_update.go b/api/model_export_update.go new file mode 100644 index 00000000..334b5c9d --- /dev/null +++ b/api/model_export_update.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ExportUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ExportUpdate{} + +// ExportUpdate struct for ExportUpdate +type ExportUpdate struct { + Data ExportUpdateData `json:"data"` +} + +// NewExportUpdate instantiates a new ExportUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewExportUpdate(data ExportUpdateData) *ExportUpdate { + this := ExportUpdate{} + this.Data = data + return &this +} + +// NewExportUpdateWithDefaults instantiates a new ExportUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewExportUpdateWithDefaults() *ExportUpdate { + this := ExportUpdate{} + return &this +} + +// GetData returns the Data field value +func (o *ExportUpdate) GetData() ExportUpdateData { + if o == nil { + var ret ExportUpdateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *ExportUpdate) GetDataOk() (*ExportUpdateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *ExportUpdate) SetData(v ExportUpdateData) { + o.Data = v +} + +func (o ExportUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ExportUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableExportUpdate struct { + value *ExportUpdate + isSet bool +} + +func (v NullableExportUpdate) Get() *ExportUpdate { + return v.value +} + +func (v *NullableExportUpdate) Set(val *ExportUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableExportUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableExportUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableExportUpdate(val *ExportUpdate) *NullableExportUpdate { + return &NullableExportUpdate{value: val, isSet: true} +} + +func (v NullableExportUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableExportUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_export_update_data.go b/api/model_export_update_data.go new file mode 100644 index 00000000..d9b4131b --- /dev/null +++ b/api/model_export_update_data.go @@ -0,0 +1,217 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ExportUpdateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ExportUpdateData{} + +// ExportUpdateData struct for ExportUpdateData +type ExportUpdateData struct { + // The resource's type + Type interface{} `json:"type"` + // The resource's id + Id interface{} `json:"id"` + Attributes PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes `json:"attributes"` + Relationships interface{} `json:"relationships,omitempty"` +} + +// NewExportUpdateData instantiates a new ExportUpdateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewExportUpdateData(type_ interface{}, id interface{}, attributes PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) *ExportUpdateData { + this := ExportUpdateData{} + this.Type = type_ + this.Id = id + this.Attributes = attributes + return &this +} + +// NewExportUpdateDataWithDefaults instantiates a new ExportUpdateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewExportUpdateDataWithDefaults() *ExportUpdateData { + this := ExportUpdateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *ExportUpdateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ExportUpdateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ExportUpdateData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *ExportUpdateData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ExportUpdateData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ExportUpdateData) SetId(v interface{}) { + o.Id = v +} + +// GetAttributes returns the Attributes field value +func (o *ExportUpdateData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes { + if o == nil { + var ret PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *ExportUpdateData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *ExportUpdateData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ExportUpdateData) GetRelationships() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ExportUpdateData) GetRelationshipsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return &o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *ExportUpdateData) HasRelationships() bool { + if o != nil && IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. +func (o *ExportUpdateData) SetRelationships(v interface{}) { + o.Relationships = v +} + +func (o ExportUpdateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ExportUpdateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + toSerialize["attributes"] = o.Attributes + if o.Relationships != nil { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableExportUpdateData struct { + value *ExportUpdateData + isSet bool +} + +func (v NullableExportUpdateData) Get() *ExportUpdateData { + return v.value +} + +func (v *NullableExportUpdateData) Set(val *ExportUpdateData) { + v.value = val + v.isSet = true +} + +func (v NullableExportUpdateData) IsSet() bool { + return v.isSet +} + +func (v *NullableExportUpdateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableExportUpdateData(val *ExportUpdateData) *NullableExportUpdateData { + return &NullableExportUpdateData{value: val, isSet: true} +} + +func (v NullableExportUpdateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableExportUpdateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_external_gateway.go b/api/model_external_gateway.go index 334900e7..c3288927 100644 --- a/api/model_external_gateway.go +++ b/api/model_external_gateway.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_gateway_create.go b/api/model_external_gateway_create.go index 10939a20..437ca7e0 100644 --- a/api/model_external_gateway_create.go +++ b/api/model_external_gateway_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_gateway_create_data.go b/api/model_external_gateway_create_data.go index 3febdef6..fef49beb 100644 --- a/api/model_external_gateway_create_data.go +++ b/api/model_external_gateway_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_gateway_data.go b/api/model_external_gateway_data.go index 55692f46..09a8911b 100644 --- a/api/model_external_gateway_data.go +++ b/api/model_external_gateway_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_gateway_data_relationships.go b/api/model_external_gateway_data_relationships.go index 98975921..8b674bc4 100644 --- a/api/model_external_gateway_data_relationships.go +++ b/api/model_external_gateway_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &ExternalGatewayDataRelationships{} // ExternalGatewayDataRelationships struct for ExternalGatewayDataRelationships type ExternalGatewayDataRelationships struct { PaymentMethods *AdyenGatewayDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` ExternalPayments *ExternalGatewayDataRelationshipsExternalPayments `json:"external_payments,omitempty"` } @@ -73,6 +74,38 @@ func (o *ExternalGatewayDataRelationships) SetPaymentMethods(v AdyenGatewayDataR o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *ExternalGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExternalGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *ExternalGatewayDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *ExternalGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + // GetExternalPayments returns the ExternalPayments field value if set, zero value otherwise. func (o *ExternalGatewayDataRelationships) GetExternalPayments() ExternalGatewayDataRelationshipsExternalPayments { if o == nil || IsNil(o.ExternalPayments) { @@ -118,6 +151,9 @@ func (o ExternalGatewayDataRelationships) ToMap() (map[string]interface{}, error if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.ExternalPayments) { toSerialize["external_payments"] = o.ExternalPayments } diff --git a/api/model_external_gateway_data_relationships_external_payments.go b/api/model_external_gateway_data_relationships_external_payments.go index 2a1c9765..52e04f3a 100644 --- a/api/model_external_gateway_data_relationships_external_payments.go +++ b/api/model_external_gateway_data_relationships_external_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_gateway_data_relationships_external_payments_data.go b/api/model_external_gateway_data_relationships_external_payments_data.go index 5406cdc1..ccd1bfa5 100644 --- a/api/model_external_gateway_data_relationships_external_payments_data.go +++ b/api/model_external_gateway_data_relationships_external_payments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_gateway_update.go b/api/model_external_gateway_update.go index 426b5847..2919011a 100644 --- a/api/model_external_gateway_update.go +++ b/api/model_external_gateway_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_gateway_update_data.go b/api/model_external_gateway_update_data.go index a91754f4..3427392a 100644 --- a/api/model_external_gateway_update_data.go +++ b/api/model_external_gateway_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_payment.go b/api/model_external_payment.go index 1358bbb7..f9c9cfe6 100644 --- a/api/model_external_payment.go +++ b/api/model_external_payment.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_payment_create.go b/api/model_external_payment_create.go index c4930e25..5e11fd82 100644 --- a/api/model_external_payment_create.go +++ b/api/model_external_payment_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_payment_create_data.go b/api/model_external_payment_create_data.go index 908c362d..7bf31764 100644 --- a/api/model_external_payment_create_data.go +++ b/api/model_external_payment_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_payment_data.go b/api/model_external_payment_data.go index cc608091..100bd415 100644 --- a/api/model_external_payment_data.go +++ b/api/model_external_payment_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_payment_data_relationships.go b/api/model_external_payment_data_relationships.go index 070901f6..b06e86c5 100644 --- a/api/model_external_payment_data_relationships.go +++ b/api/model_external_payment_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,6 +23,7 @@ type ExternalPaymentDataRelationships struct { Order *AdyenPaymentDataRelationshipsOrder `json:"order,omitempty"` PaymentGateway *AdyenPaymentDataRelationshipsPaymentGateway `json:"payment_gateway,omitempty"` Wallet *CustomerDataRelationshipsCustomerPaymentSources `json:"wallet,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewExternalPaymentDataRelationships instantiates a new ExternalPaymentDataRelationships object @@ -138,6 +139,38 @@ func (o *ExternalPaymentDataRelationships) SetWallet(v CustomerDataRelationships o.Wallet = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *ExternalPaymentDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExternalPaymentDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *ExternalPaymentDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *ExternalPaymentDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o ExternalPaymentDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -157,6 +190,9 @@ func (o ExternalPaymentDataRelationships) ToMap() (map[string]interface{}, error if !IsNil(o.Wallet) { toSerialize["wallet"] = o.Wallet } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_external_payment_update.go b/api/model_external_payment_update.go index 643dbb37..756c49c2 100644 --- a/api/model_external_payment_update.go +++ b/api/model_external_payment_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_payment_update_data.go b/api/model_external_payment_update_data.go index ccea89e3..6a9d9e68 100644 --- a/api/model_external_payment_update_data.go +++ b/api/model_external_payment_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_promotion.go b/api/model_external_promotion.go index 59b5af62..0d2957bc 100644 --- a/api/model_external_promotion.go +++ b/api/model_external_promotion.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_promotion_create.go b/api/model_external_promotion_create.go index 418331f4..2db33e4b 100644 --- a/api/model_external_promotion_create.go +++ b/api/model_external_promotion_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_promotion_create_data.go b/api/model_external_promotion_create_data.go index cda87de8..cce98505 100644 --- a/api/model_external_promotion_create_data.go +++ b/api/model_external_promotion_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type ExternalPromotionCreateData struct { // The resource's type Type interface{} `json:"type"` Attributes POSTExternalPromotions201ResponseDataAttributes `json:"attributes"` - Relationships *ExternalPromotionCreateDataRelationships `json:"relationships,omitempty"` + Relationships *BuyXPayYPromotionUpdateDataRelationships `json:"relationships,omitempty"` } // NewExternalPromotionCreateData instantiates a new ExternalPromotionCreateData object @@ -96,9 +96,9 @@ func (o *ExternalPromotionCreateData) SetAttributes(v POSTExternalPromotions201R } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *ExternalPromotionCreateData) GetRelationships() ExternalPromotionCreateDataRelationships { +func (o *ExternalPromotionCreateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret ExternalPromotionCreateDataRelationships + var ret BuyXPayYPromotionUpdateDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *ExternalPromotionCreateData) GetRelationships() ExternalPromotionCreate // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ExternalPromotionCreateData) GetRelationshipsOk() (*ExternalPromotionCreateDataRelationships, bool) { +func (o *ExternalPromotionCreateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *ExternalPromotionCreateData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given ExternalPromotionCreateDataRelationships and assigns it to the Relationships field. -func (o *ExternalPromotionCreateData) SetRelationships(v ExternalPromotionCreateDataRelationships) { +// SetRelationships gets a reference to the given BuyXPayYPromotionUpdateDataRelationships and assigns it to the Relationships field. +func (o *ExternalPromotionCreateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships) { o.Relationships = &v } diff --git a/api/model_external_promotion_create_data_relationships.go b/api/model_external_promotion_create_data_relationships.go deleted file mode 100644 index 97f5d4cb..00000000 --- a/api/model_external_promotion_create_data_relationships.go +++ /dev/null @@ -1,269 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the ExternalPromotionCreateDataRelationships type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExternalPromotionCreateDataRelationships{} - -// ExternalPromotionCreateDataRelationships struct for ExternalPromotionCreateDataRelationships -type ExternalPromotionCreateDataRelationships struct { - Market *BillingInfoValidationRuleCreateDataRelationshipsMarket `json:"market,omitempty"` - PromotionRules *ExternalPromotionCreateDataRelationshipsPromotionRules `json:"promotion_rules,omitempty"` - OrderAmountPromotionRule *ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule `json:"order_amount_promotion_rule,omitempty"` - SkuListPromotionRule *ExternalPromotionCreateDataRelationshipsSkuListPromotionRule `json:"sku_list_promotion_rule,omitempty"` - CouponCodesPromotionRule *CouponCreateDataRelationshipsPromotionRule `json:"coupon_codes_promotion_rule,omitempty"` -} - -// NewExternalPromotionCreateDataRelationships instantiates a new ExternalPromotionCreateDataRelationships object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewExternalPromotionCreateDataRelationships() *ExternalPromotionCreateDataRelationships { - this := ExternalPromotionCreateDataRelationships{} - return &this -} - -// NewExternalPromotionCreateDataRelationshipsWithDefaults instantiates a new ExternalPromotionCreateDataRelationships object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewExternalPromotionCreateDataRelationshipsWithDefaults() *ExternalPromotionCreateDataRelationships { - this := ExternalPromotionCreateDataRelationships{} - return &this -} - -// GetMarket returns the Market field value if set, zero value otherwise. -func (o *ExternalPromotionCreateDataRelationships) GetMarket() BillingInfoValidationRuleCreateDataRelationshipsMarket { - if o == nil || IsNil(o.Market) { - var ret BillingInfoValidationRuleCreateDataRelationshipsMarket - return ret - } - return *o.Market -} - -// GetMarketOk returns a tuple with the Market field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExternalPromotionCreateDataRelationships) GetMarketOk() (*BillingInfoValidationRuleCreateDataRelationshipsMarket, bool) { - if o == nil || IsNil(o.Market) { - return nil, false - } - return o.Market, true -} - -// HasMarket returns a boolean if a field has been set. -func (o *ExternalPromotionCreateDataRelationships) HasMarket() bool { - if o != nil && !IsNil(o.Market) { - return true - } - - return false -} - -// SetMarket gets a reference to the given BillingInfoValidationRuleCreateDataRelationshipsMarket and assigns it to the Market field. -func (o *ExternalPromotionCreateDataRelationships) SetMarket(v BillingInfoValidationRuleCreateDataRelationshipsMarket) { - o.Market = &v -} - -// GetPromotionRules returns the PromotionRules field value if set, zero value otherwise. -func (o *ExternalPromotionCreateDataRelationships) GetPromotionRules() ExternalPromotionCreateDataRelationshipsPromotionRules { - if o == nil || IsNil(o.PromotionRules) { - var ret ExternalPromotionCreateDataRelationshipsPromotionRules - return ret - } - return *o.PromotionRules -} - -// GetPromotionRulesOk returns a tuple with the PromotionRules field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExternalPromotionCreateDataRelationships) GetPromotionRulesOk() (*ExternalPromotionCreateDataRelationshipsPromotionRules, bool) { - if o == nil || IsNil(o.PromotionRules) { - return nil, false - } - return o.PromotionRules, true -} - -// HasPromotionRules returns a boolean if a field has been set. -func (o *ExternalPromotionCreateDataRelationships) HasPromotionRules() bool { - if o != nil && !IsNil(o.PromotionRules) { - return true - } - - return false -} - -// SetPromotionRules gets a reference to the given ExternalPromotionCreateDataRelationshipsPromotionRules and assigns it to the PromotionRules field. -func (o *ExternalPromotionCreateDataRelationships) SetPromotionRules(v ExternalPromotionCreateDataRelationshipsPromotionRules) { - o.PromotionRules = &v -} - -// GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field value if set, zero value otherwise. -func (o *ExternalPromotionCreateDataRelationships) GetOrderAmountPromotionRule() ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule { - if o == nil || IsNil(o.OrderAmountPromotionRule) { - var ret ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule - return ret - } - return *o.OrderAmountPromotionRule -} - -// GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExternalPromotionCreateDataRelationships) GetOrderAmountPromotionRuleOk() (*ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule, bool) { - if o == nil || IsNil(o.OrderAmountPromotionRule) { - return nil, false - } - return o.OrderAmountPromotionRule, true -} - -// HasOrderAmountPromotionRule returns a boolean if a field has been set. -func (o *ExternalPromotionCreateDataRelationships) HasOrderAmountPromotionRule() bool { - if o != nil && !IsNil(o.OrderAmountPromotionRule) { - return true - } - - return false -} - -// SetOrderAmountPromotionRule gets a reference to the given ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule and assigns it to the OrderAmountPromotionRule field. -func (o *ExternalPromotionCreateDataRelationships) SetOrderAmountPromotionRule(v ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule) { - o.OrderAmountPromotionRule = &v -} - -// GetSkuListPromotionRule returns the SkuListPromotionRule field value if set, zero value otherwise. -func (o *ExternalPromotionCreateDataRelationships) GetSkuListPromotionRule() ExternalPromotionCreateDataRelationshipsSkuListPromotionRule { - if o == nil || IsNil(o.SkuListPromotionRule) { - var ret ExternalPromotionCreateDataRelationshipsSkuListPromotionRule - return ret - } - return *o.SkuListPromotionRule -} - -// GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExternalPromotionCreateDataRelationships) GetSkuListPromotionRuleOk() (*ExternalPromotionCreateDataRelationshipsSkuListPromotionRule, bool) { - if o == nil || IsNil(o.SkuListPromotionRule) { - return nil, false - } - return o.SkuListPromotionRule, true -} - -// HasSkuListPromotionRule returns a boolean if a field has been set. -func (o *ExternalPromotionCreateDataRelationships) HasSkuListPromotionRule() bool { - if o != nil && !IsNil(o.SkuListPromotionRule) { - return true - } - - return false -} - -// SetSkuListPromotionRule gets a reference to the given ExternalPromotionCreateDataRelationshipsSkuListPromotionRule and assigns it to the SkuListPromotionRule field. -func (o *ExternalPromotionCreateDataRelationships) SetSkuListPromotionRule(v ExternalPromotionCreateDataRelationshipsSkuListPromotionRule) { - o.SkuListPromotionRule = &v -} - -// GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field value if set, zero value otherwise. -func (o *ExternalPromotionCreateDataRelationships) GetCouponCodesPromotionRule() CouponCreateDataRelationshipsPromotionRule { - if o == nil || IsNil(o.CouponCodesPromotionRule) { - var ret CouponCreateDataRelationshipsPromotionRule - return ret - } - return *o.CouponCodesPromotionRule -} - -// GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExternalPromotionCreateDataRelationships) GetCouponCodesPromotionRuleOk() (*CouponCreateDataRelationshipsPromotionRule, bool) { - if o == nil || IsNil(o.CouponCodesPromotionRule) { - return nil, false - } - return o.CouponCodesPromotionRule, true -} - -// HasCouponCodesPromotionRule returns a boolean if a field has been set. -func (o *ExternalPromotionCreateDataRelationships) HasCouponCodesPromotionRule() bool { - if o != nil && !IsNil(o.CouponCodesPromotionRule) { - return true - } - - return false -} - -// SetCouponCodesPromotionRule gets a reference to the given CouponCreateDataRelationshipsPromotionRule and assigns it to the CouponCodesPromotionRule field. -func (o *ExternalPromotionCreateDataRelationships) SetCouponCodesPromotionRule(v CouponCreateDataRelationshipsPromotionRule) { - o.CouponCodesPromotionRule = &v -} - -func (o ExternalPromotionCreateDataRelationships) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ExternalPromotionCreateDataRelationships) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Market) { - toSerialize["market"] = o.Market - } - if !IsNil(o.PromotionRules) { - toSerialize["promotion_rules"] = o.PromotionRules - } - if !IsNil(o.OrderAmountPromotionRule) { - toSerialize["order_amount_promotion_rule"] = o.OrderAmountPromotionRule - } - if !IsNil(o.SkuListPromotionRule) { - toSerialize["sku_list_promotion_rule"] = o.SkuListPromotionRule - } - if !IsNil(o.CouponCodesPromotionRule) { - toSerialize["coupon_codes_promotion_rule"] = o.CouponCodesPromotionRule - } - return toSerialize, nil -} - -type NullableExternalPromotionCreateDataRelationships struct { - value *ExternalPromotionCreateDataRelationships - isSet bool -} - -func (v NullableExternalPromotionCreateDataRelationships) Get() *ExternalPromotionCreateDataRelationships { - return v.value -} - -func (v *NullableExternalPromotionCreateDataRelationships) Set(val *ExternalPromotionCreateDataRelationships) { - v.value = val - v.isSet = true -} - -func (v NullableExternalPromotionCreateDataRelationships) IsSet() bool { - return v.isSet -} - -func (v *NullableExternalPromotionCreateDataRelationships) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExternalPromotionCreateDataRelationships(val *ExternalPromotionCreateDataRelationships) *NullableExternalPromotionCreateDataRelationships { - return &NullableExternalPromotionCreateDataRelationships{value: val, isSet: true} -} - -func (v NullableExternalPromotionCreateDataRelationships) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableExternalPromotionCreateDataRelationships) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_external_promotion_create_data_relationships_order_amount_promotion_rule.go b/api/model_external_promotion_create_data_relationships_order_amount_promotion_rule.go deleted file mode 100644 index f591b726..00000000 --- a/api/model_external_promotion_create_data_relationships_order_amount_promotion_rule.go +++ /dev/null @@ -1,116 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule{} - -// ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule struct for ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule -type ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule struct { - Data ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData `json:"data"` -} - -// NewExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule instantiates a new ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule(data ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) *ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule { - this := ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule{} - this.Data = data - return &this -} - -// NewExternalPromotionCreateDataRelationshipsOrderAmountPromotionRuleWithDefaults instantiates a new ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewExternalPromotionCreateDataRelationshipsOrderAmountPromotionRuleWithDefaults() *ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule { - this := ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule{} - return &this -} - -// GetData returns the Data field value -func (o *ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule) GetData() ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData { - if o == nil { - var ret ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule) GetDataOk() (*ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule) SetData(v ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) { - o.Data = v -} - -func (o ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - return toSerialize, nil -} - -type NullableExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule struct { - value *ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule - isSet bool -} - -func (v NullableExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule) Get() *ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule { - return v.value -} - -func (v *NullableExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule) Set(val *ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule) { - v.value = val - v.isSet = true -} - -func (v NullableExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule) IsSet() bool { - return v.isSet -} - -func (v *NullableExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule(val *ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule) *NullableExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule { - return &NullableExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule{value: val, isSet: true} -} - -func (v NullableExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_external_promotion_create_data_relationships_promotion_rules.go b/api/model_external_promotion_create_data_relationships_promotion_rules.go deleted file mode 100644 index a11216ef..00000000 --- a/api/model_external_promotion_create_data_relationships_promotion_rules.go +++ /dev/null @@ -1,116 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the ExternalPromotionCreateDataRelationshipsPromotionRules type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExternalPromotionCreateDataRelationshipsPromotionRules{} - -// ExternalPromotionCreateDataRelationshipsPromotionRules struct for ExternalPromotionCreateDataRelationshipsPromotionRules -type ExternalPromotionCreateDataRelationshipsPromotionRules struct { - Data ExternalPromotionDataRelationshipsPromotionRulesData `json:"data"` -} - -// NewExternalPromotionCreateDataRelationshipsPromotionRules instantiates a new ExternalPromotionCreateDataRelationshipsPromotionRules object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewExternalPromotionCreateDataRelationshipsPromotionRules(data ExternalPromotionDataRelationshipsPromotionRulesData) *ExternalPromotionCreateDataRelationshipsPromotionRules { - this := ExternalPromotionCreateDataRelationshipsPromotionRules{} - this.Data = data - return &this -} - -// NewExternalPromotionCreateDataRelationshipsPromotionRulesWithDefaults instantiates a new ExternalPromotionCreateDataRelationshipsPromotionRules object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewExternalPromotionCreateDataRelationshipsPromotionRulesWithDefaults() *ExternalPromotionCreateDataRelationshipsPromotionRules { - this := ExternalPromotionCreateDataRelationshipsPromotionRules{} - return &this -} - -// GetData returns the Data field value -func (o *ExternalPromotionCreateDataRelationshipsPromotionRules) GetData() ExternalPromotionDataRelationshipsPromotionRulesData { - if o == nil { - var ret ExternalPromotionDataRelationshipsPromotionRulesData - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *ExternalPromotionCreateDataRelationshipsPromotionRules) GetDataOk() (*ExternalPromotionDataRelationshipsPromotionRulesData, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *ExternalPromotionCreateDataRelationshipsPromotionRules) SetData(v ExternalPromotionDataRelationshipsPromotionRulesData) { - o.Data = v -} - -func (o ExternalPromotionCreateDataRelationshipsPromotionRules) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ExternalPromotionCreateDataRelationshipsPromotionRules) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - return toSerialize, nil -} - -type NullableExternalPromotionCreateDataRelationshipsPromotionRules struct { - value *ExternalPromotionCreateDataRelationshipsPromotionRules - isSet bool -} - -func (v NullableExternalPromotionCreateDataRelationshipsPromotionRules) Get() *ExternalPromotionCreateDataRelationshipsPromotionRules { - return v.value -} - -func (v *NullableExternalPromotionCreateDataRelationshipsPromotionRules) Set(val *ExternalPromotionCreateDataRelationshipsPromotionRules) { - v.value = val - v.isSet = true -} - -func (v NullableExternalPromotionCreateDataRelationshipsPromotionRules) IsSet() bool { - return v.isSet -} - -func (v *NullableExternalPromotionCreateDataRelationshipsPromotionRules) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExternalPromotionCreateDataRelationshipsPromotionRules(val *ExternalPromotionCreateDataRelationshipsPromotionRules) *NullableExternalPromotionCreateDataRelationshipsPromotionRules { - return &NullableExternalPromotionCreateDataRelationshipsPromotionRules{value: val, isSet: true} -} - -func (v NullableExternalPromotionCreateDataRelationshipsPromotionRules) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableExternalPromotionCreateDataRelationshipsPromotionRules) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_external_promotion_create_data_relationships_sku_list_promotion_rule.go b/api/model_external_promotion_create_data_relationships_sku_list_promotion_rule.go deleted file mode 100644 index f9e77eec..00000000 --- a/api/model_external_promotion_create_data_relationships_sku_list_promotion_rule.go +++ /dev/null @@ -1,116 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the ExternalPromotionCreateDataRelationshipsSkuListPromotionRule type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExternalPromotionCreateDataRelationshipsSkuListPromotionRule{} - -// ExternalPromotionCreateDataRelationshipsSkuListPromotionRule struct for ExternalPromotionCreateDataRelationshipsSkuListPromotionRule -type ExternalPromotionCreateDataRelationshipsSkuListPromotionRule struct { - Data ExternalPromotionDataRelationshipsSkuListPromotionRuleData `json:"data"` -} - -// NewExternalPromotionCreateDataRelationshipsSkuListPromotionRule instantiates a new ExternalPromotionCreateDataRelationshipsSkuListPromotionRule object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewExternalPromotionCreateDataRelationshipsSkuListPromotionRule(data ExternalPromotionDataRelationshipsSkuListPromotionRuleData) *ExternalPromotionCreateDataRelationshipsSkuListPromotionRule { - this := ExternalPromotionCreateDataRelationshipsSkuListPromotionRule{} - this.Data = data - return &this -} - -// NewExternalPromotionCreateDataRelationshipsSkuListPromotionRuleWithDefaults instantiates a new ExternalPromotionCreateDataRelationshipsSkuListPromotionRule object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewExternalPromotionCreateDataRelationshipsSkuListPromotionRuleWithDefaults() *ExternalPromotionCreateDataRelationshipsSkuListPromotionRule { - this := ExternalPromotionCreateDataRelationshipsSkuListPromotionRule{} - return &this -} - -// GetData returns the Data field value -func (o *ExternalPromotionCreateDataRelationshipsSkuListPromotionRule) GetData() ExternalPromotionDataRelationshipsSkuListPromotionRuleData { - if o == nil { - var ret ExternalPromotionDataRelationshipsSkuListPromotionRuleData - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *ExternalPromotionCreateDataRelationshipsSkuListPromotionRule) GetDataOk() (*ExternalPromotionDataRelationshipsSkuListPromotionRuleData, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *ExternalPromotionCreateDataRelationshipsSkuListPromotionRule) SetData(v ExternalPromotionDataRelationshipsSkuListPromotionRuleData) { - o.Data = v -} - -func (o ExternalPromotionCreateDataRelationshipsSkuListPromotionRule) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ExternalPromotionCreateDataRelationshipsSkuListPromotionRule) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - return toSerialize, nil -} - -type NullableExternalPromotionCreateDataRelationshipsSkuListPromotionRule struct { - value *ExternalPromotionCreateDataRelationshipsSkuListPromotionRule - isSet bool -} - -func (v NullableExternalPromotionCreateDataRelationshipsSkuListPromotionRule) Get() *ExternalPromotionCreateDataRelationshipsSkuListPromotionRule { - return v.value -} - -func (v *NullableExternalPromotionCreateDataRelationshipsSkuListPromotionRule) Set(val *ExternalPromotionCreateDataRelationshipsSkuListPromotionRule) { - v.value = val - v.isSet = true -} - -func (v NullableExternalPromotionCreateDataRelationshipsSkuListPromotionRule) IsSet() bool { - return v.isSet -} - -func (v *NullableExternalPromotionCreateDataRelationshipsSkuListPromotionRule) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExternalPromotionCreateDataRelationshipsSkuListPromotionRule(val *ExternalPromotionCreateDataRelationshipsSkuListPromotionRule) *NullableExternalPromotionCreateDataRelationshipsSkuListPromotionRule { - return &NullableExternalPromotionCreateDataRelationshipsSkuListPromotionRule{value: val, isSet: true} -} - -func (v NullableExternalPromotionCreateDataRelationshipsSkuListPromotionRule) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableExternalPromotionCreateDataRelationshipsSkuListPromotionRule) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_external_promotion_data.go b/api/model_external_promotion_data.go index 08b1dff7..7f3224f3 100644 --- a/api/model_external_promotion_data.go +++ b/api/model_external_promotion_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type ExternalPromotionData struct { // The resource's type Type interface{} `json:"type"` Attributes GETExternalPromotionsExternalPromotionId200ResponseDataAttributes `json:"attributes"` - Relationships *ExternalPromotionDataRelationships `json:"relationships,omitempty"` + Relationships *BuyXPayYPromotionDataRelationships `json:"relationships,omitempty"` } // NewExternalPromotionData instantiates a new ExternalPromotionData object @@ -96,9 +96,9 @@ func (o *ExternalPromotionData) SetAttributes(v GETExternalPromotionsExternalPro } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *ExternalPromotionData) GetRelationships() ExternalPromotionDataRelationships { +func (o *ExternalPromotionData) GetRelationships() BuyXPayYPromotionDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret ExternalPromotionDataRelationships + var ret BuyXPayYPromotionDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *ExternalPromotionData) GetRelationships() ExternalPromotionDataRelation // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ExternalPromotionData) GetRelationshipsOk() (*ExternalPromotionDataRelationships, bool) { +func (o *ExternalPromotionData) GetRelationshipsOk() (*BuyXPayYPromotionDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *ExternalPromotionData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given ExternalPromotionDataRelationships and assigns it to the Relationships field. -func (o *ExternalPromotionData) SetRelationships(v ExternalPromotionDataRelationships) { +// SetRelationships gets a reference to the given BuyXPayYPromotionDataRelationships and assigns it to the Relationships field. +func (o *ExternalPromotionData) SetRelationships(v BuyXPayYPromotionDataRelationships) { o.Relationships = &v } diff --git a/api/model_external_promotion_data_relationships.go b/api/model_external_promotion_data_relationships.go deleted file mode 100644 index c0fef625..00000000 --- a/api/model_external_promotion_data_relationships.go +++ /dev/null @@ -1,341 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the ExternalPromotionDataRelationships type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExternalPromotionDataRelationships{} - -// ExternalPromotionDataRelationships struct for ExternalPromotionDataRelationships -type ExternalPromotionDataRelationships struct { - Market *AvalaraAccountDataRelationshipsMarkets `json:"market,omitempty"` - PromotionRules *ExternalPromotionDataRelationshipsPromotionRules `json:"promotion_rules,omitempty"` - OrderAmountPromotionRule *ExternalPromotionDataRelationshipsOrderAmountPromotionRule `json:"order_amount_promotion_rule,omitempty"` - SkuListPromotionRule *ExternalPromotionDataRelationshipsSkuListPromotionRule `json:"sku_list_promotion_rule,omitempty"` - CouponCodesPromotionRule *CouponDataRelationshipsPromotionRule `json:"coupon_codes_promotion_rule,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` -} - -// NewExternalPromotionDataRelationships instantiates a new ExternalPromotionDataRelationships object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewExternalPromotionDataRelationships() *ExternalPromotionDataRelationships { - this := ExternalPromotionDataRelationships{} - return &this -} - -// NewExternalPromotionDataRelationshipsWithDefaults instantiates a new ExternalPromotionDataRelationships object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewExternalPromotionDataRelationshipsWithDefaults() *ExternalPromotionDataRelationships { - this := ExternalPromotionDataRelationships{} - return &this -} - -// GetMarket returns the Market field value if set, zero value otherwise. -func (o *ExternalPromotionDataRelationships) GetMarket() AvalaraAccountDataRelationshipsMarkets { - if o == nil || IsNil(o.Market) { - var ret AvalaraAccountDataRelationshipsMarkets - return ret - } - return *o.Market -} - -// GetMarketOk returns a tuple with the Market field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExternalPromotionDataRelationships) GetMarketOk() (*AvalaraAccountDataRelationshipsMarkets, bool) { - if o == nil || IsNil(o.Market) { - return nil, false - } - return o.Market, true -} - -// HasMarket returns a boolean if a field has been set. -func (o *ExternalPromotionDataRelationships) HasMarket() bool { - if o != nil && !IsNil(o.Market) { - return true - } - - return false -} - -// SetMarket gets a reference to the given AvalaraAccountDataRelationshipsMarkets and assigns it to the Market field. -func (o *ExternalPromotionDataRelationships) SetMarket(v AvalaraAccountDataRelationshipsMarkets) { - o.Market = &v -} - -// GetPromotionRules returns the PromotionRules field value if set, zero value otherwise. -func (o *ExternalPromotionDataRelationships) GetPromotionRules() ExternalPromotionDataRelationshipsPromotionRules { - if o == nil || IsNil(o.PromotionRules) { - var ret ExternalPromotionDataRelationshipsPromotionRules - return ret - } - return *o.PromotionRules -} - -// GetPromotionRulesOk returns a tuple with the PromotionRules field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExternalPromotionDataRelationships) GetPromotionRulesOk() (*ExternalPromotionDataRelationshipsPromotionRules, bool) { - if o == nil || IsNil(o.PromotionRules) { - return nil, false - } - return o.PromotionRules, true -} - -// HasPromotionRules returns a boolean if a field has been set. -func (o *ExternalPromotionDataRelationships) HasPromotionRules() bool { - if o != nil && !IsNil(o.PromotionRules) { - return true - } - - return false -} - -// SetPromotionRules gets a reference to the given ExternalPromotionDataRelationshipsPromotionRules and assigns it to the PromotionRules field. -func (o *ExternalPromotionDataRelationships) SetPromotionRules(v ExternalPromotionDataRelationshipsPromotionRules) { - o.PromotionRules = &v -} - -// GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field value if set, zero value otherwise. -func (o *ExternalPromotionDataRelationships) GetOrderAmountPromotionRule() ExternalPromotionDataRelationshipsOrderAmountPromotionRule { - if o == nil || IsNil(o.OrderAmountPromotionRule) { - var ret ExternalPromotionDataRelationshipsOrderAmountPromotionRule - return ret - } - return *o.OrderAmountPromotionRule -} - -// GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExternalPromotionDataRelationships) GetOrderAmountPromotionRuleOk() (*ExternalPromotionDataRelationshipsOrderAmountPromotionRule, bool) { - if o == nil || IsNil(o.OrderAmountPromotionRule) { - return nil, false - } - return o.OrderAmountPromotionRule, true -} - -// HasOrderAmountPromotionRule returns a boolean if a field has been set. -func (o *ExternalPromotionDataRelationships) HasOrderAmountPromotionRule() bool { - if o != nil && !IsNil(o.OrderAmountPromotionRule) { - return true - } - - return false -} - -// SetOrderAmountPromotionRule gets a reference to the given ExternalPromotionDataRelationshipsOrderAmountPromotionRule and assigns it to the OrderAmountPromotionRule field. -func (o *ExternalPromotionDataRelationships) SetOrderAmountPromotionRule(v ExternalPromotionDataRelationshipsOrderAmountPromotionRule) { - o.OrderAmountPromotionRule = &v -} - -// GetSkuListPromotionRule returns the SkuListPromotionRule field value if set, zero value otherwise. -func (o *ExternalPromotionDataRelationships) GetSkuListPromotionRule() ExternalPromotionDataRelationshipsSkuListPromotionRule { - if o == nil || IsNil(o.SkuListPromotionRule) { - var ret ExternalPromotionDataRelationshipsSkuListPromotionRule - return ret - } - return *o.SkuListPromotionRule -} - -// GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExternalPromotionDataRelationships) GetSkuListPromotionRuleOk() (*ExternalPromotionDataRelationshipsSkuListPromotionRule, bool) { - if o == nil || IsNil(o.SkuListPromotionRule) { - return nil, false - } - return o.SkuListPromotionRule, true -} - -// HasSkuListPromotionRule returns a boolean if a field has been set. -func (o *ExternalPromotionDataRelationships) HasSkuListPromotionRule() bool { - if o != nil && !IsNil(o.SkuListPromotionRule) { - return true - } - - return false -} - -// SetSkuListPromotionRule gets a reference to the given ExternalPromotionDataRelationshipsSkuListPromotionRule and assigns it to the SkuListPromotionRule field. -func (o *ExternalPromotionDataRelationships) SetSkuListPromotionRule(v ExternalPromotionDataRelationshipsSkuListPromotionRule) { - o.SkuListPromotionRule = &v -} - -// GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field value if set, zero value otherwise. -func (o *ExternalPromotionDataRelationships) GetCouponCodesPromotionRule() CouponDataRelationshipsPromotionRule { - if o == nil || IsNil(o.CouponCodesPromotionRule) { - var ret CouponDataRelationshipsPromotionRule - return ret - } - return *o.CouponCodesPromotionRule -} - -// GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExternalPromotionDataRelationships) GetCouponCodesPromotionRuleOk() (*CouponDataRelationshipsPromotionRule, bool) { - if o == nil || IsNil(o.CouponCodesPromotionRule) { - return nil, false - } - return o.CouponCodesPromotionRule, true -} - -// HasCouponCodesPromotionRule returns a boolean if a field has been set. -func (o *ExternalPromotionDataRelationships) HasCouponCodesPromotionRule() bool { - if o != nil && !IsNil(o.CouponCodesPromotionRule) { - return true - } - - return false -} - -// SetCouponCodesPromotionRule gets a reference to the given CouponDataRelationshipsPromotionRule and assigns it to the CouponCodesPromotionRule field. -func (o *ExternalPromotionDataRelationships) SetCouponCodesPromotionRule(v CouponDataRelationshipsPromotionRule) { - o.CouponCodesPromotionRule = &v -} - -// GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *ExternalPromotionDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { - if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments - return ret - } - return *o.Attachments -} - -// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExternalPromotionDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { - if o == nil || IsNil(o.Attachments) { - return nil, false - } - return o.Attachments, true -} - -// HasAttachments returns a boolean if a field has been set. -func (o *ExternalPromotionDataRelationships) HasAttachments() bool { - if o != nil && !IsNil(o.Attachments) { - return true - } - - return false -} - -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *ExternalPromotionDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { - o.Attachments = &v -} - -// GetEvents returns the Events field value if set, zero value otherwise. -func (o *ExternalPromotionDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { - if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents - return ret - } - return *o.Events -} - -// GetEventsOk returns a tuple with the Events field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExternalPromotionDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { - if o == nil || IsNil(o.Events) { - return nil, false - } - return o.Events, true -} - -// HasEvents returns a boolean if a field has been set. -func (o *ExternalPromotionDataRelationships) HasEvents() bool { - if o != nil && !IsNil(o.Events) { - return true - } - - return false -} - -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *ExternalPromotionDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { - o.Events = &v -} - -func (o ExternalPromotionDataRelationships) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ExternalPromotionDataRelationships) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Market) { - toSerialize["market"] = o.Market - } - if !IsNil(o.PromotionRules) { - toSerialize["promotion_rules"] = o.PromotionRules - } - if !IsNil(o.OrderAmountPromotionRule) { - toSerialize["order_amount_promotion_rule"] = o.OrderAmountPromotionRule - } - if !IsNil(o.SkuListPromotionRule) { - toSerialize["sku_list_promotion_rule"] = o.SkuListPromotionRule - } - if !IsNil(o.CouponCodesPromotionRule) { - toSerialize["coupon_codes_promotion_rule"] = o.CouponCodesPromotionRule - } - if !IsNil(o.Attachments) { - toSerialize["attachments"] = o.Attachments - } - if !IsNil(o.Events) { - toSerialize["events"] = o.Events - } - return toSerialize, nil -} - -type NullableExternalPromotionDataRelationships struct { - value *ExternalPromotionDataRelationships - isSet bool -} - -func (v NullableExternalPromotionDataRelationships) Get() *ExternalPromotionDataRelationships { - return v.value -} - -func (v *NullableExternalPromotionDataRelationships) Set(val *ExternalPromotionDataRelationships) { - v.value = val - v.isSet = true -} - -func (v NullableExternalPromotionDataRelationships) IsSet() bool { - return v.isSet -} - -func (v *NullableExternalPromotionDataRelationships) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExternalPromotionDataRelationships(val *ExternalPromotionDataRelationships) *NullableExternalPromotionDataRelationships { - return &NullableExternalPromotionDataRelationships{value: val, isSet: true} -} - -func (v NullableExternalPromotionDataRelationships) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableExternalPromotionDataRelationships) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_external_promotion_data_relationships_order_amount_promotion_rule.go b/api/model_external_promotion_data_relationships_order_amount_promotion_rule.go deleted file mode 100644 index 7fd70a2a..00000000 --- a/api/model_external_promotion_data_relationships_order_amount_promotion_rule.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the ExternalPromotionDataRelationshipsOrderAmountPromotionRule type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExternalPromotionDataRelationshipsOrderAmountPromotionRule{} - -// ExternalPromotionDataRelationshipsOrderAmountPromotionRule struct for ExternalPromotionDataRelationshipsOrderAmountPromotionRule -type ExternalPromotionDataRelationshipsOrderAmountPromotionRule struct { - Data *ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData `json:"data,omitempty"` -} - -// NewExternalPromotionDataRelationshipsOrderAmountPromotionRule instantiates a new ExternalPromotionDataRelationshipsOrderAmountPromotionRule object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewExternalPromotionDataRelationshipsOrderAmountPromotionRule() *ExternalPromotionDataRelationshipsOrderAmountPromotionRule { - this := ExternalPromotionDataRelationshipsOrderAmountPromotionRule{} - return &this -} - -// NewExternalPromotionDataRelationshipsOrderAmountPromotionRuleWithDefaults instantiates a new ExternalPromotionDataRelationshipsOrderAmountPromotionRule object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewExternalPromotionDataRelationshipsOrderAmountPromotionRuleWithDefaults() *ExternalPromotionDataRelationshipsOrderAmountPromotionRule { - this := ExternalPromotionDataRelationshipsOrderAmountPromotionRule{} - return &this -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRule) GetData() ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData { - if o == nil || IsNil(o.Data) { - var ret ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRule) GetDataOk() (*ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRule) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData and assigns it to the Data field. -func (o *ExternalPromotionDataRelationshipsOrderAmountPromotionRule) SetData(v ExternalPromotionDataRelationshipsOrderAmountPromotionRuleData) { - o.Data = &v -} - -func (o ExternalPromotionDataRelationshipsOrderAmountPromotionRule) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ExternalPromotionDataRelationshipsOrderAmountPromotionRule) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableExternalPromotionDataRelationshipsOrderAmountPromotionRule struct { - value *ExternalPromotionDataRelationshipsOrderAmountPromotionRule - isSet bool -} - -func (v NullableExternalPromotionDataRelationshipsOrderAmountPromotionRule) Get() *ExternalPromotionDataRelationshipsOrderAmountPromotionRule { - return v.value -} - -func (v *NullableExternalPromotionDataRelationshipsOrderAmountPromotionRule) Set(val *ExternalPromotionDataRelationshipsOrderAmountPromotionRule) { - v.value = val - v.isSet = true -} - -func (v NullableExternalPromotionDataRelationshipsOrderAmountPromotionRule) IsSet() bool { - return v.isSet -} - -func (v *NullableExternalPromotionDataRelationshipsOrderAmountPromotionRule) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExternalPromotionDataRelationshipsOrderAmountPromotionRule(val *ExternalPromotionDataRelationshipsOrderAmountPromotionRule) *NullableExternalPromotionDataRelationshipsOrderAmountPromotionRule { - return &NullableExternalPromotionDataRelationshipsOrderAmountPromotionRule{value: val, isSet: true} -} - -func (v NullableExternalPromotionDataRelationshipsOrderAmountPromotionRule) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableExternalPromotionDataRelationshipsOrderAmountPromotionRule) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_external_promotion_data_relationships_promotion_rules.go b/api/model_external_promotion_data_relationships_promotion_rules.go deleted file mode 100644 index 29ab31e4..00000000 --- a/api/model_external_promotion_data_relationships_promotion_rules.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the ExternalPromotionDataRelationshipsPromotionRules type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExternalPromotionDataRelationshipsPromotionRules{} - -// ExternalPromotionDataRelationshipsPromotionRules struct for ExternalPromotionDataRelationshipsPromotionRules -type ExternalPromotionDataRelationshipsPromotionRules struct { - Data *ExternalPromotionDataRelationshipsPromotionRulesData `json:"data,omitempty"` -} - -// NewExternalPromotionDataRelationshipsPromotionRules instantiates a new ExternalPromotionDataRelationshipsPromotionRules object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewExternalPromotionDataRelationshipsPromotionRules() *ExternalPromotionDataRelationshipsPromotionRules { - this := ExternalPromotionDataRelationshipsPromotionRules{} - return &this -} - -// NewExternalPromotionDataRelationshipsPromotionRulesWithDefaults instantiates a new ExternalPromotionDataRelationshipsPromotionRules object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewExternalPromotionDataRelationshipsPromotionRulesWithDefaults() *ExternalPromotionDataRelationshipsPromotionRules { - this := ExternalPromotionDataRelationshipsPromotionRules{} - return &this -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ExternalPromotionDataRelationshipsPromotionRules) GetData() ExternalPromotionDataRelationshipsPromotionRulesData { - if o == nil || IsNil(o.Data) { - var ret ExternalPromotionDataRelationshipsPromotionRulesData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExternalPromotionDataRelationshipsPromotionRules) GetDataOk() (*ExternalPromotionDataRelationshipsPromotionRulesData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ExternalPromotionDataRelationshipsPromotionRules) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given ExternalPromotionDataRelationshipsPromotionRulesData and assigns it to the Data field. -func (o *ExternalPromotionDataRelationshipsPromotionRules) SetData(v ExternalPromotionDataRelationshipsPromotionRulesData) { - o.Data = &v -} - -func (o ExternalPromotionDataRelationshipsPromotionRules) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ExternalPromotionDataRelationshipsPromotionRules) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableExternalPromotionDataRelationshipsPromotionRules struct { - value *ExternalPromotionDataRelationshipsPromotionRules - isSet bool -} - -func (v NullableExternalPromotionDataRelationshipsPromotionRules) Get() *ExternalPromotionDataRelationshipsPromotionRules { - return v.value -} - -func (v *NullableExternalPromotionDataRelationshipsPromotionRules) Set(val *ExternalPromotionDataRelationshipsPromotionRules) { - v.value = val - v.isSet = true -} - -func (v NullableExternalPromotionDataRelationshipsPromotionRules) IsSet() bool { - return v.isSet -} - -func (v *NullableExternalPromotionDataRelationshipsPromotionRules) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExternalPromotionDataRelationshipsPromotionRules(val *ExternalPromotionDataRelationshipsPromotionRules) *NullableExternalPromotionDataRelationshipsPromotionRules { - return &NullableExternalPromotionDataRelationshipsPromotionRules{value: val, isSet: true} -} - -func (v NullableExternalPromotionDataRelationshipsPromotionRules) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableExternalPromotionDataRelationshipsPromotionRules) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_external_promotion_data_relationships_sku_list_promotion_rule.go b/api/model_external_promotion_data_relationships_sku_list_promotion_rule.go deleted file mode 100644 index 40229d5e..00000000 --- a/api/model_external_promotion_data_relationships_sku_list_promotion_rule.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the ExternalPromotionDataRelationshipsSkuListPromotionRule type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExternalPromotionDataRelationshipsSkuListPromotionRule{} - -// ExternalPromotionDataRelationshipsSkuListPromotionRule struct for ExternalPromotionDataRelationshipsSkuListPromotionRule -type ExternalPromotionDataRelationshipsSkuListPromotionRule struct { - Data *ExternalPromotionDataRelationshipsSkuListPromotionRuleData `json:"data,omitempty"` -} - -// NewExternalPromotionDataRelationshipsSkuListPromotionRule instantiates a new ExternalPromotionDataRelationshipsSkuListPromotionRule object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewExternalPromotionDataRelationshipsSkuListPromotionRule() *ExternalPromotionDataRelationshipsSkuListPromotionRule { - this := ExternalPromotionDataRelationshipsSkuListPromotionRule{} - return &this -} - -// NewExternalPromotionDataRelationshipsSkuListPromotionRuleWithDefaults instantiates a new ExternalPromotionDataRelationshipsSkuListPromotionRule object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewExternalPromotionDataRelationshipsSkuListPromotionRuleWithDefaults() *ExternalPromotionDataRelationshipsSkuListPromotionRule { - this := ExternalPromotionDataRelationshipsSkuListPromotionRule{} - return &this -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ExternalPromotionDataRelationshipsSkuListPromotionRule) GetData() ExternalPromotionDataRelationshipsSkuListPromotionRuleData { - if o == nil || IsNil(o.Data) { - var ret ExternalPromotionDataRelationshipsSkuListPromotionRuleData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExternalPromotionDataRelationshipsSkuListPromotionRule) GetDataOk() (*ExternalPromotionDataRelationshipsSkuListPromotionRuleData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ExternalPromotionDataRelationshipsSkuListPromotionRule) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given ExternalPromotionDataRelationshipsSkuListPromotionRuleData and assigns it to the Data field. -func (o *ExternalPromotionDataRelationshipsSkuListPromotionRule) SetData(v ExternalPromotionDataRelationshipsSkuListPromotionRuleData) { - o.Data = &v -} - -func (o ExternalPromotionDataRelationshipsSkuListPromotionRule) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ExternalPromotionDataRelationshipsSkuListPromotionRule) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableExternalPromotionDataRelationshipsSkuListPromotionRule struct { - value *ExternalPromotionDataRelationshipsSkuListPromotionRule - isSet bool -} - -func (v NullableExternalPromotionDataRelationshipsSkuListPromotionRule) Get() *ExternalPromotionDataRelationshipsSkuListPromotionRule { - return v.value -} - -func (v *NullableExternalPromotionDataRelationshipsSkuListPromotionRule) Set(val *ExternalPromotionDataRelationshipsSkuListPromotionRule) { - v.value = val - v.isSet = true -} - -func (v NullableExternalPromotionDataRelationshipsSkuListPromotionRule) IsSet() bool { - return v.isSet -} - -func (v *NullableExternalPromotionDataRelationshipsSkuListPromotionRule) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExternalPromotionDataRelationshipsSkuListPromotionRule(val *ExternalPromotionDataRelationshipsSkuListPromotionRule) *NullableExternalPromotionDataRelationshipsSkuListPromotionRule { - return &NullableExternalPromotionDataRelationshipsSkuListPromotionRule{value: val, isSet: true} -} - -func (v NullableExternalPromotionDataRelationshipsSkuListPromotionRule) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableExternalPromotionDataRelationshipsSkuListPromotionRule) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_external_promotion_update.go b/api/model_external_promotion_update.go index e7a321e0..60df7258 100644 --- a/api/model_external_promotion_update.go +++ b/api/model_external_promotion_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_promotion_update_data.go b/api/model_external_promotion_update_data.go index 98a1da5e..34791d8f 100644 --- a/api/model_external_promotion_update_data.go +++ b/api/model_external_promotion_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -25,7 +25,7 @@ type ExternalPromotionUpdateData struct { // The resource's id Id interface{} `json:"id"` Attributes PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes `json:"attributes"` - Relationships *ExternalPromotionCreateDataRelationships `json:"relationships,omitempty"` + Relationships *BuyXPayYPromotionUpdateDataRelationships `json:"relationships,omitempty"` } // NewExternalPromotionUpdateData instantiates a new ExternalPromotionUpdateData object @@ -125,9 +125,9 @@ func (o *ExternalPromotionUpdateData) SetAttributes(v PATCHExternalPromotionsExt } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *ExternalPromotionUpdateData) GetRelationships() ExternalPromotionCreateDataRelationships { +func (o *ExternalPromotionUpdateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret ExternalPromotionCreateDataRelationships + var ret BuyXPayYPromotionUpdateDataRelationships return ret } return *o.Relationships @@ -135,7 +135,7 @@ func (o *ExternalPromotionUpdateData) GetRelationships() ExternalPromotionCreate // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ExternalPromotionUpdateData) GetRelationshipsOk() (*ExternalPromotionCreateDataRelationships, bool) { +func (o *ExternalPromotionUpdateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -151,8 +151,8 @@ func (o *ExternalPromotionUpdateData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given ExternalPromotionCreateDataRelationships and assigns it to the Relationships field. -func (o *ExternalPromotionUpdateData) SetRelationships(v ExternalPromotionCreateDataRelationships) { +// SetRelationships gets a reference to the given BuyXPayYPromotionUpdateDataRelationships and assigns it to the Relationships field. +func (o *ExternalPromotionUpdateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships) { o.Relationships = &v } diff --git a/api/model_external_tax_calculator.go b/api/model_external_tax_calculator.go index 513bfcca..94974403 100644 --- a/api/model_external_tax_calculator.go +++ b/api/model_external_tax_calculator.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_tax_calculator_create.go b/api/model_external_tax_calculator_create.go index 830b75f6..2ff99311 100644 --- a/api/model_external_tax_calculator_create.go +++ b/api/model_external_tax_calculator_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_tax_calculator_create_data.go b/api/model_external_tax_calculator_create_data.go index aa91acc0..fe3561c4 100644 --- a/api/model_external_tax_calculator_create_data.go +++ b/api/model_external_tax_calculator_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_tax_calculator_data.go b/api/model_external_tax_calculator_data.go index 4cc27ec1..2ae98dbc 100644 --- a/api/model_external_tax_calculator_data.go +++ b/api/model_external_tax_calculator_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_tax_calculator_data_relationships.go b/api/model_external_tax_calculator_data_relationships.go index 1ff2a7f1..6cc6962f 100644 --- a/api/model_external_tax_calculator_data_relationships.go +++ b/api/model_external_tax_calculator_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,9 @@ var _ MappedNullable = &ExternalTaxCalculatorDataRelationships{} // ExternalTaxCalculatorDataRelationships struct for ExternalTaxCalculatorDataRelationships type ExternalTaxCalculatorDataRelationships struct { - Markets *AvalaraAccountDataRelationshipsMarkets `json:"markets,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Markets *AvalaraAccountDataRelationshipsMarkets `json:"markets,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewExternalTaxCalculatorDataRelationships instantiates a new ExternalTaxCalculatorDataRelationships object @@ -74,9 +75,9 @@ func (o *ExternalTaxCalculatorDataRelationships) SetMarkets(v AvalaraAccountData } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *ExternalTaxCalculatorDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *ExternalTaxCalculatorDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -84,7 +85,7 @@ func (o *ExternalTaxCalculatorDataRelationships) GetAttachments() AvalaraAccount // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ExternalTaxCalculatorDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *ExternalTaxCalculatorDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -100,11 +101,43 @@ func (o *ExternalTaxCalculatorDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *ExternalTaxCalculatorDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *ExternalTaxCalculatorDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *ExternalTaxCalculatorDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExternalTaxCalculatorDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *ExternalTaxCalculatorDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *ExternalTaxCalculatorDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o ExternalTaxCalculatorDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o ExternalTaxCalculatorDataRelationships) ToMap() (map[string]interface{}, if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_external_tax_calculator_update.go b/api/model_external_tax_calculator_update.go index a334f1bb..1e1df06e 100644 --- a/api/model_external_tax_calculator_update.go +++ b/api/model_external_tax_calculator_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_external_tax_calculator_update_data.go b/api/model_external_tax_calculator_update_data.go index f7837edd..046cfa91 100644 --- a/api/model_external_tax_calculator_update_data.go +++ b/api/model_external_tax_calculator_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_fixed_amount_promotion.go b/api/model_fixed_amount_promotion.go index 4d0379f0..c41c9de4 100644 --- a/api/model_fixed_amount_promotion.go +++ b/api/model_fixed_amount_promotion.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_fixed_amount_promotion_create.go b/api/model_fixed_amount_promotion_create.go index 702fa76e..d09bcc48 100644 --- a/api/model_fixed_amount_promotion_create.go +++ b/api/model_fixed_amount_promotion_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_fixed_amount_promotion_create_data.go b/api/model_fixed_amount_promotion_create_data.go index 4302f1ce..cab854f8 100644 --- a/api/model_fixed_amount_promotion_create_data.go +++ b/api/model_fixed_amount_promotion_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type FixedAmountPromotionCreateData struct { // The resource's type Type interface{} `json:"type"` Attributes POSTFixedAmountPromotions201ResponseDataAttributes `json:"attributes"` - Relationships *ExternalPromotionCreateDataRelationships `json:"relationships,omitempty"` + Relationships *BuyXPayYPromotionUpdateDataRelationships `json:"relationships,omitempty"` } // NewFixedAmountPromotionCreateData instantiates a new FixedAmountPromotionCreateData object @@ -96,9 +96,9 @@ func (o *FixedAmountPromotionCreateData) SetAttributes(v POSTFixedAmountPromotio } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *FixedAmountPromotionCreateData) GetRelationships() ExternalPromotionCreateDataRelationships { +func (o *FixedAmountPromotionCreateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret ExternalPromotionCreateDataRelationships + var ret BuyXPayYPromotionUpdateDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *FixedAmountPromotionCreateData) GetRelationships() ExternalPromotionCre // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *FixedAmountPromotionCreateData) GetRelationshipsOk() (*ExternalPromotionCreateDataRelationships, bool) { +func (o *FixedAmountPromotionCreateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *FixedAmountPromotionCreateData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given ExternalPromotionCreateDataRelationships and assigns it to the Relationships field. -func (o *FixedAmountPromotionCreateData) SetRelationships(v ExternalPromotionCreateDataRelationships) { +// SetRelationships gets a reference to the given BuyXPayYPromotionUpdateDataRelationships and assigns it to the Relationships field. +func (o *FixedAmountPromotionCreateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships) { o.Relationships = &v } diff --git a/api/model_fixed_amount_promotion_data.go b/api/model_fixed_amount_promotion_data.go index be47333f..80926817 100644 --- a/api/model_fixed_amount_promotion_data.go +++ b/api/model_fixed_amount_promotion_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type FixedAmountPromotionData struct { // The resource's type Type interface{} `json:"type"` Attributes GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes `json:"attributes"` - Relationships *ExternalPromotionDataRelationships `json:"relationships,omitempty"` + Relationships *BuyXPayYPromotionDataRelationships `json:"relationships,omitempty"` } // NewFixedAmountPromotionData instantiates a new FixedAmountPromotionData object @@ -96,9 +96,9 @@ func (o *FixedAmountPromotionData) SetAttributes(v GETFixedAmountPromotionsFixed } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *FixedAmountPromotionData) GetRelationships() ExternalPromotionDataRelationships { +func (o *FixedAmountPromotionData) GetRelationships() BuyXPayYPromotionDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret ExternalPromotionDataRelationships + var ret BuyXPayYPromotionDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *FixedAmountPromotionData) GetRelationships() ExternalPromotionDataRelat // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *FixedAmountPromotionData) GetRelationshipsOk() (*ExternalPromotionDataRelationships, bool) { +func (o *FixedAmountPromotionData) GetRelationshipsOk() (*BuyXPayYPromotionDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *FixedAmountPromotionData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given ExternalPromotionDataRelationships and assigns it to the Relationships field. -func (o *FixedAmountPromotionData) SetRelationships(v ExternalPromotionDataRelationships) { +// SetRelationships gets a reference to the given BuyXPayYPromotionDataRelationships and assigns it to the Relationships field. +func (o *FixedAmountPromotionData) SetRelationships(v BuyXPayYPromotionDataRelationships) { o.Relationships = &v } diff --git a/api/model_fixed_amount_promotion_update.go b/api/model_fixed_amount_promotion_update.go index 99427037..53895547 100644 --- a/api/model_fixed_amount_promotion_update.go +++ b/api/model_fixed_amount_promotion_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_fixed_amount_promotion_update_data.go b/api/model_fixed_amount_promotion_update_data.go index 062b9d81..3e3ba681 100644 --- a/api/model_fixed_amount_promotion_update_data.go +++ b/api/model_fixed_amount_promotion_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -25,7 +25,7 @@ type FixedAmountPromotionUpdateData struct { // The resource's id Id interface{} `json:"id"` Attributes PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes `json:"attributes"` - Relationships *ExternalPromotionCreateDataRelationships `json:"relationships,omitempty"` + Relationships *BuyXPayYPromotionUpdateDataRelationships `json:"relationships,omitempty"` } // NewFixedAmountPromotionUpdateData instantiates a new FixedAmountPromotionUpdateData object @@ -125,9 +125,9 @@ func (o *FixedAmountPromotionUpdateData) SetAttributes(v PATCHFixedAmountPromoti } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *FixedAmountPromotionUpdateData) GetRelationships() ExternalPromotionCreateDataRelationships { +func (o *FixedAmountPromotionUpdateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret ExternalPromotionCreateDataRelationships + var ret BuyXPayYPromotionUpdateDataRelationships return ret } return *o.Relationships @@ -135,7 +135,7 @@ func (o *FixedAmountPromotionUpdateData) GetRelationships() ExternalPromotionCre // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *FixedAmountPromotionUpdateData) GetRelationshipsOk() (*ExternalPromotionCreateDataRelationships, bool) { +func (o *FixedAmountPromotionUpdateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -151,8 +151,8 @@ func (o *FixedAmountPromotionUpdateData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given ExternalPromotionCreateDataRelationships and assigns it to the Relationships field. -func (o *FixedAmountPromotionUpdateData) SetRelationships(v ExternalPromotionCreateDataRelationships) { +// SetRelationships gets a reference to the given BuyXPayYPromotionUpdateDataRelationships and assigns it to the Relationships field. +func (o *FixedAmountPromotionUpdateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships) { o.Relationships = &v } diff --git a/api/model_fixed_price_promotion.go b/api/model_fixed_price_promotion.go index 4bc72dbb..01d02bd6 100644 --- a/api/model_fixed_price_promotion.go +++ b/api/model_fixed_price_promotion.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_fixed_price_promotion_create.go b/api/model_fixed_price_promotion_create.go index 7f99ba53..6b22c06a 100644 --- a/api/model_fixed_price_promotion_create.go +++ b/api/model_fixed_price_promotion_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_fixed_price_promotion_create_data.go b/api/model_fixed_price_promotion_create_data.go index d67a6c23..918103ba 100644 --- a/api/model_fixed_price_promotion_create_data.go +++ b/api/model_fixed_price_promotion_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type FixedPricePromotionCreateData struct { // The resource's type Type interface{} `json:"type"` Attributes POSTFixedPricePromotions201ResponseDataAttributes `json:"attributes"` - Relationships *FixedPricePromotionCreateDataRelationships `json:"relationships,omitempty"` + Relationships *BuyXPayYPromotionCreateDataRelationships `json:"relationships,omitempty"` } // NewFixedPricePromotionCreateData instantiates a new FixedPricePromotionCreateData object @@ -96,9 +96,9 @@ func (o *FixedPricePromotionCreateData) SetAttributes(v POSTFixedPricePromotions } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *FixedPricePromotionCreateData) GetRelationships() FixedPricePromotionCreateDataRelationships { +func (o *FixedPricePromotionCreateData) GetRelationships() BuyXPayYPromotionCreateDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret FixedPricePromotionCreateDataRelationships + var ret BuyXPayYPromotionCreateDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *FixedPricePromotionCreateData) GetRelationships() FixedPricePromotionCr // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *FixedPricePromotionCreateData) GetRelationshipsOk() (*FixedPricePromotionCreateDataRelationships, bool) { +func (o *FixedPricePromotionCreateData) GetRelationshipsOk() (*BuyXPayYPromotionCreateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *FixedPricePromotionCreateData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given FixedPricePromotionCreateDataRelationships and assigns it to the Relationships field. -func (o *FixedPricePromotionCreateData) SetRelationships(v FixedPricePromotionCreateDataRelationships) { +// SetRelationships gets a reference to the given BuyXPayYPromotionCreateDataRelationships and assigns it to the Relationships field. +func (o *FixedPricePromotionCreateData) SetRelationships(v BuyXPayYPromotionCreateDataRelationships) { o.Relationships = &v } diff --git a/api/model_fixed_price_promotion_create_data_relationships.go b/api/model_fixed_price_promotion_create_data_relationships.go deleted file mode 100644 index b2f5c672..00000000 --- a/api/model_fixed_price_promotion_create_data_relationships.go +++ /dev/null @@ -1,296 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the FixedPricePromotionCreateDataRelationships type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FixedPricePromotionCreateDataRelationships{} - -// FixedPricePromotionCreateDataRelationships struct for FixedPricePromotionCreateDataRelationships -type FixedPricePromotionCreateDataRelationships struct { - Market *BillingInfoValidationRuleCreateDataRelationshipsMarket `json:"market,omitempty"` - PromotionRules *ExternalPromotionCreateDataRelationshipsPromotionRules `json:"promotion_rules,omitempty"` - OrderAmountPromotionRule *ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule `json:"order_amount_promotion_rule,omitempty"` - SkuListPromotionRule *ExternalPromotionCreateDataRelationshipsSkuListPromotionRule `json:"sku_list_promotion_rule,omitempty"` - CouponCodesPromotionRule *CouponCreateDataRelationshipsPromotionRule `json:"coupon_codes_promotion_rule,omitempty"` - SkuList BundleCreateDataRelationshipsSkuList `json:"sku_list"` -} - -// NewFixedPricePromotionCreateDataRelationships instantiates a new FixedPricePromotionCreateDataRelationships object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewFixedPricePromotionCreateDataRelationships(skuList BundleCreateDataRelationshipsSkuList) *FixedPricePromotionCreateDataRelationships { - this := FixedPricePromotionCreateDataRelationships{} - this.SkuList = skuList - return &this -} - -// NewFixedPricePromotionCreateDataRelationshipsWithDefaults instantiates a new FixedPricePromotionCreateDataRelationships object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewFixedPricePromotionCreateDataRelationshipsWithDefaults() *FixedPricePromotionCreateDataRelationships { - this := FixedPricePromotionCreateDataRelationships{} - return &this -} - -// GetMarket returns the Market field value if set, zero value otherwise. -func (o *FixedPricePromotionCreateDataRelationships) GetMarket() BillingInfoValidationRuleCreateDataRelationshipsMarket { - if o == nil || IsNil(o.Market) { - var ret BillingInfoValidationRuleCreateDataRelationshipsMarket - return ret - } - return *o.Market -} - -// GetMarketOk returns a tuple with the Market field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionCreateDataRelationships) GetMarketOk() (*BillingInfoValidationRuleCreateDataRelationshipsMarket, bool) { - if o == nil || IsNil(o.Market) { - return nil, false - } - return o.Market, true -} - -// HasMarket returns a boolean if a field has been set. -func (o *FixedPricePromotionCreateDataRelationships) HasMarket() bool { - if o != nil && !IsNil(o.Market) { - return true - } - - return false -} - -// SetMarket gets a reference to the given BillingInfoValidationRuleCreateDataRelationshipsMarket and assigns it to the Market field. -func (o *FixedPricePromotionCreateDataRelationships) SetMarket(v BillingInfoValidationRuleCreateDataRelationshipsMarket) { - o.Market = &v -} - -// GetPromotionRules returns the PromotionRules field value if set, zero value otherwise. -func (o *FixedPricePromotionCreateDataRelationships) GetPromotionRules() ExternalPromotionCreateDataRelationshipsPromotionRules { - if o == nil || IsNil(o.PromotionRules) { - var ret ExternalPromotionCreateDataRelationshipsPromotionRules - return ret - } - return *o.PromotionRules -} - -// GetPromotionRulesOk returns a tuple with the PromotionRules field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionCreateDataRelationships) GetPromotionRulesOk() (*ExternalPromotionCreateDataRelationshipsPromotionRules, bool) { - if o == nil || IsNil(o.PromotionRules) { - return nil, false - } - return o.PromotionRules, true -} - -// HasPromotionRules returns a boolean if a field has been set. -func (o *FixedPricePromotionCreateDataRelationships) HasPromotionRules() bool { - if o != nil && !IsNil(o.PromotionRules) { - return true - } - - return false -} - -// SetPromotionRules gets a reference to the given ExternalPromotionCreateDataRelationshipsPromotionRules and assigns it to the PromotionRules field. -func (o *FixedPricePromotionCreateDataRelationships) SetPromotionRules(v ExternalPromotionCreateDataRelationshipsPromotionRules) { - o.PromotionRules = &v -} - -// GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field value if set, zero value otherwise. -func (o *FixedPricePromotionCreateDataRelationships) GetOrderAmountPromotionRule() ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule { - if o == nil || IsNil(o.OrderAmountPromotionRule) { - var ret ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule - return ret - } - return *o.OrderAmountPromotionRule -} - -// GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionCreateDataRelationships) GetOrderAmountPromotionRuleOk() (*ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule, bool) { - if o == nil || IsNil(o.OrderAmountPromotionRule) { - return nil, false - } - return o.OrderAmountPromotionRule, true -} - -// HasOrderAmountPromotionRule returns a boolean if a field has been set. -func (o *FixedPricePromotionCreateDataRelationships) HasOrderAmountPromotionRule() bool { - if o != nil && !IsNil(o.OrderAmountPromotionRule) { - return true - } - - return false -} - -// SetOrderAmountPromotionRule gets a reference to the given ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule and assigns it to the OrderAmountPromotionRule field. -func (o *FixedPricePromotionCreateDataRelationships) SetOrderAmountPromotionRule(v ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule) { - o.OrderAmountPromotionRule = &v -} - -// GetSkuListPromotionRule returns the SkuListPromotionRule field value if set, zero value otherwise. -func (o *FixedPricePromotionCreateDataRelationships) GetSkuListPromotionRule() ExternalPromotionCreateDataRelationshipsSkuListPromotionRule { - if o == nil || IsNil(o.SkuListPromotionRule) { - var ret ExternalPromotionCreateDataRelationshipsSkuListPromotionRule - return ret - } - return *o.SkuListPromotionRule -} - -// GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionCreateDataRelationships) GetSkuListPromotionRuleOk() (*ExternalPromotionCreateDataRelationshipsSkuListPromotionRule, bool) { - if o == nil || IsNil(o.SkuListPromotionRule) { - return nil, false - } - return o.SkuListPromotionRule, true -} - -// HasSkuListPromotionRule returns a boolean if a field has been set. -func (o *FixedPricePromotionCreateDataRelationships) HasSkuListPromotionRule() bool { - if o != nil && !IsNil(o.SkuListPromotionRule) { - return true - } - - return false -} - -// SetSkuListPromotionRule gets a reference to the given ExternalPromotionCreateDataRelationshipsSkuListPromotionRule and assigns it to the SkuListPromotionRule field. -func (o *FixedPricePromotionCreateDataRelationships) SetSkuListPromotionRule(v ExternalPromotionCreateDataRelationshipsSkuListPromotionRule) { - o.SkuListPromotionRule = &v -} - -// GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field value if set, zero value otherwise. -func (o *FixedPricePromotionCreateDataRelationships) GetCouponCodesPromotionRule() CouponCreateDataRelationshipsPromotionRule { - if o == nil || IsNil(o.CouponCodesPromotionRule) { - var ret CouponCreateDataRelationshipsPromotionRule - return ret - } - return *o.CouponCodesPromotionRule -} - -// GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionCreateDataRelationships) GetCouponCodesPromotionRuleOk() (*CouponCreateDataRelationshipsPromotionRule, bool) { - if o == nil || IsNil(o.CouponCodesPromotionRule) { - return nil, false - } - return o.CouponCodesPromotionRule, true -} - -// HasCouponCodesPromotionRule returns a boolean if a field has been set. -func (o *FixedPricePromotionCreateDataRelationships) HasCouponCodesPromotionRule() bool { - if o != nil && !IsNil(o.CouponCodesPromotionRule) { - return true - } - - return false -} - -// SetCouponCodesPromotionRule gets a reference to the given CouponCreateDataRelationshipsPromotionRule and assigns it to the CouponCodesPromotionRule field. -func (o *FixedPricePromotionCreateDataRelationships) SetCouponCodesPromotionRule(v CouponCreateDataRelationshipsPromotionRule) { - o.CouponCodesPromotionRule = &v -} - -// GetSkuList returns the SkuList field value -func (o *FixedPricePromotionCreateDataRelationships) GetSkuList() BundleCreateDataRelationshipsSkuList { - if o == nil { - var ret BundleCreateDataRelationshipsSkuList - return ret - } - - return o.SkuList -} - -// GetSkuListOk returns a tuple with the SkuList field value -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionCreateDataRelationships) GetSkuListOk() (*BundleCreateDataRelationshipsSkuList, bool) { - if o == nil { - return nil, false - } - return &o.SkuList, true -} - -// SetSkuList sets field value -func (o *FixedPricePromotionCreateDataRelationships) SetSkuList(v BundleCreateDataRelationshipsSkuList) { - o.SkuList = v -} - -func (o FixedPricePromotionCreateDataRelationships) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o FixedPricePromotionCreateDataRelationships) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Market) { - toSerialize["market"] = o.Market - } - if !IsNil(o.PromotionRules) { - toSerialize["promotion_rules"] = o.PromotionRules - } - if !IsNil(o.OrderAmountPromotionRule) { - toSerialize["order_amount_promotion_rule"] = o.OrderAmountPromotionRule - } - if !IsNil(o.SkuListPromotionRule) { - toSerialize["sku_list_promotion_rule"] = o.SkuListPromotionRule - } - if !IsNil(o.CouponCodesPromotionRule) { - toSerialize["coupon_codes_promotion_rule"] = o.CouponCodesPromotionRule - } - toSerialize["sku_list"] = o.SkuList - return toSerialize, nil -} - -type NullableFixedPricePromotionCreateDataRelationships struct { - value *FixedPricePromotionCreateDataRelationships - isSet bool -} - -func (v NullableFixedPricePromotionCreateDataRelationships) Get() *FixedPricePromotionCreateDataRelationships { - return v.value -} - -func (v *NullableFixedPricePromotionCreateDataRelationships) Set(val *FixedPricePromotionCreateDataRelationships) { - v.value = val - v.isSet = true -} - -func (v NullableFixedPricePromotionCreateDataRelationships) IsSet() bool { - return v.isSet -} - -func (v *NullableFixedPricePromotionCreateDataRelationships) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFixedPricePromotionCreateDataRelationships(val *FixedPricePromotionCreateDataRelationships) *NullableFixedPricePromotionCreateDataRelationships { - return &NullableFixedPricePromotionCreateDataRelationships{value: val, isSet: true} -} - -func (v NullableFixedPricePromotionCreateDataRelationships) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFixedPricePromotionCreateDataRelationships) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_fixed_price_promotion_data.go b/api/model_fixed_price_promotion_data.go index 376ec837..90467a40 100644 --- a/api/model_fixed_price_promotion_data.go +++ b/api/model_fixed_price_promotion_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type FixedPricePromotionData struct { // The resource's type Type interface{} `json:"type"` Attributes GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes `json:"attributes"` - Relationships *FixedPricePromotionDataRelationships `json:"relationships,omitempty"` + Relationships *BuyXPayYPromotionDataRelationships `json:"relationships,omitempty"` } // NewFixedPricePromotionData instantiates a new FixedPricePromotionData object @@ -96,9 +96,9 @@ func (o *FixedPricePromotionData) SetAttributes(v GETFixedPricePromotionsFixedPr } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *FixedPricePromotionData) GetRelationships() FixedPricePromotionDataRelationships { +func (o *FixedPricePromotionData) GetRelationships() BuyXPayYPromotionDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret FixedPricePromotionDataRelationships + var ret BuyXPayYPromotionDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *FixedPricePromotionData) GetRelationships() FixedPricePromotionDataRela // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *FixedPricePromotionData) GetRelationshipsOk() (*FixedPricePromotionDataRelationships, bool) { +func (o *FixedPricePromotionData) GetRelationshipsOk() (*BuyXPayYPromotionDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *FixedPricePromotionData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given FixedPricePromotionDataRelationships and assigns it to the Relationships field. -func (o *FixedPricePromotionData) SetRelationships(v FixedPricePromotionDataRelationships) { +// SetRelationships gets a reference to the given BuyXPayYPromotionDataRelationships and assigns it to the Relationships field. +func (o *FixedPricePromotionData) SetRelationships(v BuyXPayYPromotionDataRelationships) { o.Relationships = &v } diff --git a/api/model_fixed_price_promotion_data_relationships.go b/api/model_fixed_price_promotion_data_relationships.go deleted file mode 100644 index 1d944234..00000000 --- a/api/model_fixed_price_promotion_data_relationships.go +++ /dev/null @@ -1,413 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the FixedPricePromotionDataRelationships type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FixedPricePromotionDataRelationships{} - -// FixedPricePromotionDataRelationships struct for FixedPricePromotionDataRelationships -type FixedPricePromotionDataRelationships struct { - Market *AvalaraAccountDataRelationshipsMarkets `json:"market,omitempty"` - PromotionRules *ExternalPromotionDataRelationshipsPromotionRules `json:"promotion_rules,omitempty"` - OrderAmountPromotionRule *ExternalPromotionDataRelationshipsOrderAmountPromotionRule `json:"order_amount_promotion_rule,omitempty"` - SkuListPromotionRule *ExternalPromotionDataRelationshipsSkuListPromotionRule `json:"sku_list_promotion_rule,omitempty"` - CouponCodesPromotionRule *CouponDataRelationshipsPromotionRule `json:"coupon_codes_promotion_rule,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` - SkuList *BundleDataRelationshipsSkuList `json:"sku_list,omitempty"` - Skus *BundleDataRelationshipsSkus `json:"skus,omitempty"` -} - -// NewFixedPricePromotionDataRelationships instantiates a new FixedPricePromotionDataRelationships object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewFixedPricePromotionDataRelationships() *FixedPricePromotionDataRelationships { - this := FixedPricePromotionDataRelationships{} - return &this -} - -// NewFixedPricePromotionDataRelationshipsWithDefaults instantiates a new FixedPricePromotionDataRelationships object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewFixedPricePromotionDataRelationshipsWithDefaults() *FixedPricePromotionDataRelationships { - this := FixedPricePromotionDataRelationships{} - return &this -} - -// GetMarket returns the Market field value if set, zero value otherwise. -func (o *FixedPricePromotionDataRelationships) GetMarket() AvalaraAccountDataRelationshipsMarkets { - if o == nil || IsNil(o.Market) { - var ret AvalaraAccountDataRelationshipsMarkets - return ret - } - return *o.Market -} - -// GetMarketOk returns a tuple with the Market field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionDataRelationships) GetMarketOk() (*AvalaraAccountDataRelationshipsMarkets, bool) { - if o == nil || IsNil(o.Market) { - return nil, false - } - return o.Market, true -} - -// HasMarket returns a boolean if a field has been set. -func (o *FixedPricePromotionDataRelationships) HasMarket() bool { - if o != nil && !IsNil(o.Market) { - return true - } - - return false -} - -// SetMarket gets a reference to the given AvalaraAccountDataRelationshipsMarkets and assigns it to the Market field. -func (o *FixedPricePromotionDataRelationships) SetMarket(v AvalaraAccountDataRelationshipsMarkets) { - o.Market = &v -} - -// GetPromotionRules returns the PromotionRules field value if set, zero value otherwise. -func (o *FixedPricePromotionDataRelationships) GetPromotionRules() ExternalPromotionDataRelationshipsPromotionRules { - if o == nil || IsNil(o.PromotionRules) { - var ret ExternalPromotionDataRelationshipsPromotionRules - return ret - } - return *o.PromotionRules -} - -// GetPromotionRulesOk returns a tuple with the PromotionRules field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionDataRelationships) GetPromotionRulesOk() (*ExternalPromotionDataRelationshipsPromotionRules, bool) { - if o == nil || IsNil(o.PromotionRules) { - return nil, false - } - return o.PromotionRules, true -} - -// HasPromotionRules returns a boolean if a field has been set. -func (o *FixedPricePromotionDataRelationships) HasPromotionRules() bool { - if o != nil && !IsNil(o.PromotionRules) { - return true - } - - return false -} - -// SetPromotionRules gets a reference to the given ExternalPromotionDataRelationshipsPromotionRules and assigns it to the PromotionRules field. -func (o *FixedPricePromotionDataRelationships) SetPromotionRules(v ExternalPromotionDataRelationshipsPromotionRules) { - o.PromotionRules = &v -} - -// GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field value if set, zero value otherwise. -func (o *FixedPricePromotionDataRelationships) GetOrderAmountPromotionRule() ExternalPromotionDataRelationshipsOrderAmountPromotionRule { - if o == nil || IsNil(o.OrderAmountPromotionRule) { - var ret ExternalPromotionDataRelationshipsOrderAmountPromotionRule - return ret - } - return *o.OrderAmountPromotionRule -} - -// GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionDataRelationships) GetOrderAmountPromotionRuleOk() (*ExternalPromotionDataRelationshipsOrderAmountPromotionRule, bool) { - if o == nil || IsNil(o.OrderAmountPromotionRule) { - return nil, false - } - return o.OrderAmountPromotionRule, true -} - -// HasOrderAmountPromotionRule returns a boolean if a field has been set. -func (o *FixedPricePromotionDataRelationships) HasOrderAmountPromotionRule() bool { - if o != nil && !IsNil(o.OrderAmountPromotionRule) { - return true - } - - return false -} - -// SetOrderAmountPromotionRule gets a reference to the given ExternalPromotionDataRelationshipsOrderAmountPromotionRule and assigns it to the OrderAmountPromotionRule field. -func (o *FixedPricePromotionDataRelationships) SetOrderAmountPromotionRule(v ExternalPromotionDataRelationshipsOrderAmountPromotionRule) { - o.OrderAmountPromotionRule = &v -} - -// GetSkuListPromotionRule returns the SkuListPromotionRule field value if set, zero value otherwise. -func (o *FixedPricePromotionDataRelationships) GetSkuListPromotionRule() ExternalPromotionDataRelationshipsSkuListPromotionRule { - if o == nil || IsNil(o.SkuListPromotionRule) { - var ret ExternalPromotionDataRelationshipsSkuListPromotionRule - return ret - } - return *o.SkuListPromotionRule -} - -// GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionDataRelationships) GetSkuListPromotionRuleOk() (*ExternalPromotionDataRelationshipsSkuListPromotionRule, bool) { - if o == nil || IsNil(o.SkuListPromotionRule) { - return nil, false - } - return o.SkuListPromotionRule, true -} - -// HasSkuListPromotionRule returns a boolean if a field has been set. -func (o *FixedPricePromotionDataRelationships) HasSkuListPromotionRule() bool { - if o != nil && !IsNil(o.SkuListPromotionRule) { - return true - } - - return false -} - -// SetSkuListPromotionRule gets a reference to the given ExternalPromotionDataRelationshipsSkuListPromotionRule and assigns it to the SkuListPromotionRule field. -func (o *FixedPricePromotionDataRelationships) SetSkuListPromotionRule(v ExternalPromotionDataRelationshipsSkuListPromotionRule) { - o.SkuListPromotionRule = &v -} - -// GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field value if set, zero value otherwise. -func (o *FixedPricePromotionDataRelationships) GetCouponCodesPromotionRule() CouponDataRelationshipsPromotionRule { - if o == nil || IsNil(o.CouponCodesPromotionRule) { - var ret CouponDataRelationshipsPromotionRule - return ret - } - return *o.CouponCodesPromotionRule -} - -// GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionDataRelationships) GetCouponCodesPromotionRuleOk() (*CouponDataRelationshipsPromotionRule, bool) { - if o == nil || IsNil(o.CouponCodesPromotionRule) { - return nil, false - } - return o.CouponCodesPromotionRule, true -} - -// HasCouponCodesPromotionRule returns a boolean if a field has been set. -func (o *FixedPricePromotionDataRelationships) HasCouponCodesPromotionRule() bool { - if o != nil && !IsNil(o.CouponCodesPromotionRule) { - return true - } - - return false -} - -// SetCouponCodesPromotionRule gets a reference to the given CouponDataRelationshipsPromotionRule and assigns it to the CouponCodesPromotionRule field. -func (o *FixedPricePromotionDataRelationships) SetCouponCodesPromotionRule(v CouponDataRelationshipsPromotionRule) { - o.CouponCodesPromotionRule = &v -} - -// GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *FixedPricePromotionDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { - if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments - return ret - } - return *o.Attachments -} - -// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { - if o == nil || IsNil(o.Attachments) { - return nil, false - } - return o.Attachments, true -} - -// HasAttachments returns a boolean if a field has been set. -func (o *FixedPricePromotionDataRelationships) HasAttachments() bool { - if o != nil && !IsNil(o.Attachments) { - return true - } - - return false -} - -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *FixedPricePromotionDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { - o.Attachments = &v -} - -// GetEvents returns the Events field value if set, zero value otherwise. -func (o *FixedPricePromotionDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { - if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents - return ret - } - return *o.Events -} - -// GetEventsOk returns a tuple with the Events field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { - if o == nil || IsNil(o.Events) { - return nil, false - } - return o.Events, true -} - -// HasEvents returns a boolean if a field has been set. -func (o *FixedPricePromotionDataRelationships) HasEvents() bool { - if o != nil && !IsNil(o.Events) { - return true - } - - return false -} - -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *FixedPricePromotionDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { - o.Events = &v -} - -// GetSkuList returns the SkuList field value if set, zero value otherwise. -func (o *FixedPricePromotionDataRelationships) GetSkuList() BundleDataRelationshipsSkuList { - if o == nil || IsNil(o.SkuList) { - var ret BundleDataRelationshipsSkuList - return ret - } - return *o.SkuList -} - -// GetSkuListOk returns a tuple with the SkuList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionDataRelationships) GetSkuListOk() (*BundleDataRelationshipsSkuList, bool) { - if o == nil || IsNil(o.SkuList) { - return nil, false - } - return o.SkuList, true -} - -// HasSkuList returns a boolean if a field has been set. -func (o *FixedPricePromotionDataRelationships) HasSkuList() bool { - if o != nil && !IsNil(o.SkuList) { - return true - } - - return false -} - -// SetSkuList gets a reference to the given BundleDataRelationshipsSkuList and assigns it to the SkuList field. -func (o *FixedPricePromotionDataRelationships) SetSkuList(v BundleDataRelationshipsSkuList) { - o.SkuList = &v -} - -// GetSkus returns the Skus field value if set, zero value otherwise. -func (o *FixedPricePromotionDataRelationships) GetSkus() BundleDataRelationshipsSkus { - if o == nil || IsNil(o.Skus) { - var ret BundleDataRelationshipsSkus - return ret - } - return *o.Skus -} - -// GetSkusOk returns a tuple with the Skus field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionDataRelationships) GetSkusOk() (*BundleDataRelationshipsSkus, bool) { - if o == nil || IsNil(o.Skus) { - return nil, false - } - return o.Skus, true -} - -// HasSkus returns a boolean if a field has been set. -func (o *FixedPricePromotionDataRelationships) HasSkus() bool { - if o != nil && !IsNil(o.Skus) { - return true - } - - return false -} - -// SetSkus gets a reference to the given BundleDataRelationshipsSkus and assigns it to the Skus field. -func (o *FixedPricePromotionDataRelationships) SetSkus(v BundleDataRelationshipsSkus) { - o.Skus = &v -} - -func (o FixedPricePromotionDataRelationships) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o FixedPricePromotionDataRelationships) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Market) { - toSerialize["market"] = o.Market - } - if !IsNil(o.PromotionRules) { - toSerialize["promotion_rules"] = o.PromotionRules - } - if !IsNil(o.OrderAmountPromotionRule) { - toSerialize["order_amount_promotion_rule"] = o.OrderAmountPromotionRule - } - if !IsNil(o.SkuListPromotionRule) { - toSerialize["sku_list_promotion_rule"] = o.SkuListPromotionRule - } - if !IsNil(o.CouponCodesPromotionRule) { - toSerialize["coupon_codes_promotion_rule"] = o.CouponCodesPromotionRule - } - if !IsNil(o.Attachments) { - toSerialize["attachments"] = o.Attachments - } - if !IsNil(o.Events) { - toSerialize["events"] = o.Events - } - if !IsNil(o.SkuList) { - toSerialize["sku_list"] = o.SkuList - } - if !IsNil(o.Skus) { - toSerialize["skus"] = o.Skus - } - return toSerialize, nil -} - -type NullableFixedPricePromotionDataRelationships struct { - value *FixedPricePromotionDataRelationships - isSet bool -} - -func (v NullableFixedPricePromotionDataRelationships) Get() *FixedPricePromotionDataRelationships { - return v.value -} - -func (v *NullableFixedPricePromotionDataRelationships) Set(val *FixedPricePromotionDataRelationships) { - v.value = val - v.isSet = true -} - -func (v NullableFixedPricePromotionDataRelationships) IsSet() bool { - return v.isSet -} - -func (v *NullableFixedPricePromotionDataRelationships) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFixedPricePromotionDataRelationships(val *FixedPricePromotionDataRelationships) *NullableFixedPricePromotionDataRelationships { - return &NullableFixedPricePromotionDataRelationships{value: val, isSet: true} -} - -func (v NullableFixedPricePromotionDataRelationships) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFixedPricePromotionDataRelationships) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_fixed_price_promotion_update.go b/api/model_fixed_price_promotion_update.go index 64b3bb7f..f7691e9b 100644 --- a/api/model_fixed_price_promotion_update.go +++ b/api/model_fixed_price_promotion_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_fixed_price_promotion_update_data.go b/api/model_fixed_price_promotion_update_data.go index 9b123211..6184e213 100644 --- a/api/model_fixed_price_promotion_update_data.go +++ b/api/model_fixed_price_promotion_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -25,7 +25,7 @@ type FixedPricePromotionUpdateData struct { // The resource's id Id interface{} `json:"id"` Attributes PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes `json:"attributes"` - Relationships *FixedPricePromotionUpdateDataRelationships `json:"relationships,omitempty"` + Relationships *BuyXPayYPromotionUpdateDataRelationships `json:"relationships,omitempty"` } // NewFixedPricePromotionUpdateData instantiates a new FixedPricePromotionUpdateData object @@ -125,9 +125,9 @@ func (o *FixedPricePromotionUpdateData) SetAttributes(v PATCHFixedPricePromotion } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *FixedPricePromotionUpdateData) GetRelationships() FixedPricePromotionUpdateDataRelationships { +func (o *FixedPricePromotionUpdateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret FixedPricePromotionUpdateDataRelationships + var ret BuyXPayYPromotionUpdateDataRelationships return ret } return *o.Relationships @@ -135,7 +135,7 @@ func (o *FixedPricePromotionUpdateData) GetRelationships() FixedPricePromotionUp // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *FixedPricePromotionUpdateData) GetRelationshipsOk() (*FixedPricePromotionUpdateDataRelationships, bool) { +func (o *FixedPricePromotionUpdateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -151,8 +151,8 @@ func (o *FixedPricePromotionUpdateData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given FixedPricePromotionUpdateDataRelationships and assigns it to the Relationships field. -func (o *FixedPricePromotionUpdateData) SetRelationships(v FixedPricePromotionUpdateDataRelationships) { +// SetRelationships gets a reference to the given BuyXPayYPromotionUpdateDataRelationships and assigns it to the Relationships field. +func (o *FixedPricePromotionUpdateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships) { o.Relationships = &v } diff --git a/api/model_fixed_price_promotion_update_data_relationships.go b/api/model_fixed_price_promotion_update_data_relationships.go deleted file mode 100644 index 16323815..00000000 --- a/api/model_fixed_price_promotion_update_data_relationships.go +++ /dev/null @@ -1,305 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the FixedPricePromotionUpdateDataRelationships type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FixedPricePromotionUpdateDataRelationships{} - -// FixedPricePromotionUpdateDataRelationships struct for FixedPricePromotionUpdateDataRelationships -type FixedPricePromotionUpdateDataRelationships struct { - Market *BillingInfoValidationRuleCreateDataRelationshipsMarket `json:"market,omitempty"` - PromotionRules *ExternalPromotionCreateDataRelationshipsPromotionRules `json:"promotion_rules,omitempty"` - OrderAmountPromotionRule *ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule `json:"order_amount_promotion_rule,omitempty"` - SkuListPromotionRule *ExternalPromotionCreateDataRelationshipsSkuListPromotionRule `json:"sku_list_promotion_rule,omitempty"` - CouponCodesPromotionRule *CouponCreateDataRelationshipsPromotionRule `json:"coupon_codes_promotion_rule,omitempty"` - SkuList *BundleCreateDataRelationshipsSkuList `json:"sku_list,omitempty"` -} - -// NewFixedPricePromotionUpdateDataRelationships instantiates a new FixedPricePromotionUpdateDataRelationships object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewFixedPricePromotionUpdateDataRelationships() *FixedPricePromotionUpdateDataRelationships { - this := FixedPricePromotionUpdateDataRelationships{} - return &this -} - -// NewFixedPricePromotionUpdateDataRelationshipsWithDefaults instantiates a new FixedPricePromotionUpdateDataRelationships object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewFixedPricePromotionUpdateDataRelationshipsWithDefaults() *FixedPricePromotionUpdateDataRelationships { - this := FixedPricePromotionUpdateDataRelationships{} - return &this -} - -// GetMarket returns the Market field value if set, zero value otherwise. -func (o *FixedPricePromotionUpdateDataRelationships) GetMarket() BillingInfoValidationRuleCreateDataRelationshipsMarket { - if o == nil || IsNil(o.Market) { - var ret BillingInfoValidationRuleCreateDataRelationshipsMarket - return ret - } - return *o.Market -} - -// GetMarketOk returns a tuple with the Market field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionUpdateDataRelationships) GetMarketOk() (*BillingInfoValidationRuleCreateDataRelationshipsMarket, bool) { - if o == nil || IsNil(o.Market) { - return nil, false - } - return o.Market, true -} - -// HasMarket returns a boolean if a field has been set. -func (o *FixedPricePromotionUpdateDataRelationships) HasMarket() bool { - if o != nil && !IsNil(o.Market) { - return true - } - - return false -} - -// SetMarket gets a reference to the given BillingInfoValidationRuleCreateDataRelationshipsMarket and assigns it to the Market field. -func (o *FixedPricePromotionUpdateDataRelationships) SetMarket(v BillingInfoValidationRuleCreateDataRelationshipsMarket) { - o.Market = &v -} - -// GetPromotionRules returns the PromotionRules field value if set, zero value otherwise. -func (o *FixedPricePromotionUpdateDataRelationships) GetPromotionRules() ExternalPromotionCreateDataRelationshipsPromotionRules { - if o == nil || IsNil(o.PromotionRules) { - var ret ExternalPromotionCreateDataRelationshipsPromotionRules - return ret - } - return *o.PromotionRules -} - -// GetPromotionRulesOk returns a tuple with the PromotionRules field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionUpdateDataRelationships) GetPromotionRulesOk() (*ExternalPromotionCreateDataRelationshipsPromotionRules, bool) { - if o == nil || IsNil(o.PromotionRules) { - return nil, false - } - return o.PromotionRules, true -} - -// HasPromotionRules returns a boolean if a field has been set. -func (o *FixedPricePromotionUpdateDataRelationships) HasPromotionRules() bool { - if o != nil && !IsNil(o.PromotionRules) { - return true - } - - return false -} - -// SetPromotionRules gets a reference to the given ExternalPromotionCreateDataRelationshipsPromotionRules and assigns it to the PromotionRules field. -func (o *FixedPricePromotionUpdateDataRelationships) SetPromotionRules(v ExternalPromotionCreateDataRelationshipsPromotionRules) { - o.PromotionRules = &v -} - -// GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field value if set, zero value otherwise. -func (o *FixedPricePromotionUpdateDataRelationships) GetOrderAmountPromotionRule() ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule { - if o == nil || IsNil(o.OrderAmountPromotionRule) { - var ret ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule - return ret - } - return *o.OrderAmountPromotionRule -} - -// GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionUpdateDataRelationships) GetOrderAmountPromotionRuleOk() (*ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule, bool) { - if o == nil || IsNil(o.OrderAmountPromotionRule) { - return nil, false - } - return o.OrderAmountPromotionRule, true -} - -// HasOrderAmountPromotionRule returns a boolean if a field has been set. -func (o *FixedPricePromotionUpdateDataRelationships) HasOrderAmountPromotionRule() bool { - if o != nil && !IsNil(o.OrderAmountPromotionRule) { - return true - } - - return false -} - -// SetOrderAmountPromotionRule gets a reference to the given ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule and assigns it to the OrderAmountPromotionRule field. -func (o *FixedPricePromotionUpdateDataRelationships) SetOrderAmountPromotionRule(v ExternalPromotionCreateDataRelationshipsOrderAmountPromotionRule) { - o.OrderAmountPromotionRule = &v -} - -// GetSkuListPromotionRule returns the SkuListPromotionRule field value if set, zero value otherwise. -func (o *FixedPricePromotionUpdateDataRelationships) GetSkuListPromotionRule() ExternalPromotionCreateDataRelationshipsSkuListPromotionRule { - if o == nil || IsNil(o.SkuListPromotionRule) { - var ret ExternalPromotionCreateDataRelationshipsSkuListPromotionRule - return ret - } - return *o.SkuListPromotionRule -} - -// GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionUpdateDataRelationships) GetSkuListPromotionRuleOk() (*ExternalPromotionCreateDataRelationshipsSkuListPromotionRule, bool) { - if o == nil || IsNil(o.SkuListPromotionRule) { - return nil, false - } - return o.SkuListPromotionRule, true -} - -// HasSkuListPromotionRule returns a boolean if a field has been set. -func (o *FixedPricePromotionUpdateDataRelationships) HasSkuListPromotionRule() bool { - if o != nil && !IsNil(o.SkuListPromotionRule) { - return true - } - - return false -} - -// SetSkuListPromotionRule gets a reference to the given ExternalPromotionCreateDataRelationshipsSkuListPromotionRule and assigns it to the SkuListPromotionRule field. -func (o *FixedPricePromotionUpdateDataRelationships) SetSkuListPromotionRule(v ExternalPromotionCreateDataRelationshipsSkuListPromotionRule) { - o.SkuListPromotionRule = &v -} - -// GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field value if set, zero value otherwise. -func (o *FixedPricePromotionUpdateDataRelationships) GetCouponCodesPromotionRule() CouponCreateDataRelationshipsPromotionRule { - if o == nil || IsNil(o.CouponCodesPromotionRule) { - var ret CouponCreateDataRelationshipsPromotionRule - return ret - } - return *o.CouponCodesPromotionRule -} - -// GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionUpdateDataRelationships) GetCouponCodesPromotionRuleOk() (*CouponCreateDataRelationshipsPromotionRule, bool) { - if o == nil || IsNil(o.CouponCodesPromotionRule) { - return nil, false - } - return o.CouponCodesPromotionRule, true -} - -// HasCouponCodesPromotionRule returns a boolean if a field has been set. -func (o *FixedPricePromotionUpdateDataRelationships) HasCouponCodesPromotionRule() bool { - if o != nil && !IsNil(o.CouponCodesPromotionRule) { - return true - } - - return false -} - -// SetCouponCodesPromotionRule gets a reference to the given CouponCreateDataRelationshipsPromotionRule and assigns it to the CouponCodesPromotionRule field. -func (o *FixedPricePromotionUpdateDataRelationships) SetCouponCodesPromotionRule(v CouponCreateDataRelationshipsPromotionRule) { - o.CouponCodesPromotionRule = &v -} - -// GetSkuList returns the SkuList field value if set, zero value otherwise. -func (o *FixedPricePromotionUpdateDataRelationships) GetSkuList() BundleCreateDataRelationshipsSkuList { - if o == nil || IsNil(o.SkuList) { - var ret BundleCreateDataRelationshipsSkuList - return ret - } - return *o.SkuList -} - -// GetSkuListOk returns a tuple with the SkuList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FixedPricePromotionUpdateDataRelationships) GetSkuListOk() (*BundleCreateDataRelationshipsSkuList, bool) { - if o == nil || IsNil(o.SkuList) { - return nil, false - } - return o.SkuList, true -} - -// HasSkuList returns a boolean if a field has been set. -func (o *FixedPricePromotionUpdateDataRelationships) HasSkuList() bool { - if o != nil && !IsNil(o.SkuList) { - return true - } - - return false -} - -// SetSkuList gets a reference to the given BundleCreateDataRelationshipsSkuList and assigns it to the SkuList field. -func (o *FixedPricePromotionUpdateDataRelationships) SetSkuList(v BundleCreateDataRelationshipsSkuList) { - o.SkuList = &v -} - -func (o FixedPricePromotionUpdateDataRelationships) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o FixedPricePromotionUpdateDataRelationships) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Market) { - toSerialize["market"] = o.Market - } - if !IsNil(o.PromotionRules) { - toSerialize["promotion_rules"] = o.PromotionRules - } - if !IsNil(o.OrderAmountPromotionRule) { - toSerialize["order_amount_promotion_rule"] = o.OrderAmountPromotionRule - } - if !IsNil(o.SkuListPromotionRule) { - toSerialize["sku_list_promotion_rule"] = o.SkuListPromotionRule - } - if !IsNil(o.CouponCodesPromotionRule) { - toSerialize["coupon_codes_promotion_rule"] = o.CouponCodesPromotionRule - } - if !IsNil(o.SkuList) { - toSerialize["sku_list"] = o.SkuList - } - return toSerialize, nil -} - -type NullableFixedPricePromotionUpdateDataRelationships struct { - value *FixedPricePromotionUpdateDataRelationships - isSet bool -} - -func (v NullableFixedPricePromotionUpdateDataRelationships) Get() *FixedPricePromotionUpdateDataRelationships { - return v.value -} - -func (v *NullableFixedPricePromotionUpdateDataRelationships) Set(val *FixedPricePromotionUpdateDataRelationships) { - v.value = val - v.isSet = true -} - -func (v NullableFixedPricePromotionUpdateDataRelationships) IsSet() bool { - return v.isSet -} - -func (v *NullableFixedPricePromotionUpdateDataRelationships) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFixedPricePromotionUpdateDataRelationships(val *FixedPricePromotionUpdateDataRelationships) *NullableFixedPricePromotionUpdateDataRelationships { - return &NullableFixedPricePromotionUpdateDataRelationships{value: val, isSet: true} -} - -func (v NullableFixedPricePromotionUpdateDataRelationships) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFixedPricePromotionUpdateDataRelationships) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_flex_promotion.go b/api/model_flex_promotion.go new file mode 100644 index 00000000..b9691141 --- /dev/null +++ b/api/model_flex_promotion.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the FlexPromotion type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FlexPromotion{} + +// FlexPromotion struct for FlexPromotion +type FlexPromotion struct { + Data *FlexPromotionData `json:"data,omitempty"` +} + +// NewFlexPromotion instantiates a new FlexPromotion object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFlexPromotion() *FlexPromotion { + this := FlexPromotion{} + return &this +} + +// NewFlexPromotionWithDefaults instantiates a new FlexPromotion object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFlexPromotionWithDefaults() *FlexPromotion { + this := FlexPromotion{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *FlexPromotion) GetData() FlexPromotionData { + if o == nil || IsNil(o.Data) { + var ret FlexPromotionData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FlexPromotion) GetDataOk() (*FlexPromotionData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *FlexPromotion) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given FlexPromotionData and assigns it to the Data field. +func (o *FlexPromotion) SetData(v FlexPromotionData) { + o.Data = &v +} + +func (o FlexPromotion) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FlexPromotion) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableFlexPromotion struct { + value *FlexPromotion + isSet bool +} + +func (v NullableFlexPromotion) Get() *FlexPromotion { + return v.value +} + +func (v *NullableFlexPromotion) Set(val *FlexPromotion) { + v.value = val + v.isSet = true +} + +func (v NullableFlexPromotion) IsSet() bool { + return v.isSet +} + +func (v *NullableFlexPromotion) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFlexPromotion(val *FlexPromotion) *NullableFlexPromotion { + return &NullableFlexPromotion{value: val, isSet: true} +} + +func (v NullableFlexPromotion) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFlexPromotion) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_flex_promotion_create.go b/api/model_flex_promotion_create.go new file mode 100644 index 00000000..1f62b780 --- /dev/null +++ b/api/model_flex_promotion_create.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the FlexPromotionCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FlexPromotionCreate{} + +// FlexPromotionCreate struct for FlexPromotionCreate +type FlexPromotionCreate struct { + Data FlexPromotionCreateData `json:"data"` +} + +// NewFlexPromotionCreate instantiates a new FlexPromotionCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFlexPromotionCreate(data FlexPromotionCreateData) *FlexPromotionCreate { + this := FlexPromotionCreate{} + this.Data = data + return &this +} + +// NewFlexPromotionCreateWithDefaults instantiates a new FlexPromotionCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFlexPromotionCreateWithDefaults() *FlexPromotionCreate { + this := FlexPromotionCreate{} + return &this +} + +// GetData returns the Data field value +func (o *FlexPromotionCreate) GetData() FlexPromotionCreateData { + if o == nil { + var ret FlexPromotionCreateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *FlexPromotionCreate) GetDataOk() (*FlexPromotionCreateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *FlexPromotionCreate) SetData(v FlexPromotionCreateData) { + o.Data = v +} + +func (o FlexPromotionCreate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FlexPromotionCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableFlexPromotionCreate struct { + value *FlexPromotionCreate + isSet bool +} + +func (v NullableFlexPromotionCreate) Get() *FlexPromotionCreate { + return v.value +} + +func (v *NullableFlexPromotionCreate) Set(val *FlexPromotionCreate) { + v.value = val + v.isSet = true +} + +func (v NullableFlexPromotionCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableFlexPromotionCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFlexPromotionCreate(val *FlexPromotionCreate) *NullableFlexPromotionCreate { + return &NullableFlexPromotionCreate{value: val, isSet: true} +} + +func (v NullableFlexPromotionCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFlexPromotionCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_flex_promotion_create_data.go b/api/model_flex_promotion_create_data.go new file mode 100644 index 00000000..765990ef --- /dev/null +++ b/api/model_flex_promotion_create_data.go @@ -0,0 +1,184 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the FlexPromotionCreateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FlexPromotionCreateData{} + +// FlexPromotionCreateData struct for FlexPromotionCreateData +type FlexPromotionCreateData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes POSTFlexPromotions201ResponseDataAttributes `json:"attributes"` + Relationships *FlexPromotionCreateDataRelationships `json:"relationships,omitempty"` +} + +// NewFlexPromotionCreateData instantiates a new FlexPromotionCreateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFlexPromotionCreateData(type_ interface{}, attributes POSTFlexPromotions201ResponseDataAttributes) *FlexPromotionCreateData { + this := FlexPromotionCreateData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewFlexPromotionCreateDataWithDefaults instantiates a new FlexPromotionCreateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFlexPromotionCreateDataWithDefaults() *FlexPromotionCreateData { + this := FlexPromotionCreateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *FlexPromotionCreateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *FlexPromotionCreateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *FlexPromotionCreateData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *FlexPromotionCreateData) GetAttributes() POSTFlexPromotions201ResponseDataAttributes { + if o == nil { + var ret POSTFlexPromotions201ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *FlexPromotionCreateData) GetAttributesOk() (*POSTFlexPromotions201ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *FlexPromotionCreateData) SetAttributes(v POSTFlexPromotions201ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *FlexPromotionCreateData) GetRelationships() FlexPromotionCreateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret FlexPromotionCreateDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FlexPromotionCreateData) GetRelationshipsOk() (*FlexPromotionCreateDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *FlexPromotionCreateData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given FlexPromotionCreateDataRelationships and assigns it to the Relationships field. +func (o *FlexPromotionCreateData) SetRelationships(v FlexPromotionCreateDataRelationships) { + o.Relationships = &v +} + +func (o FlexPromotionCreateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FlexPromotionCreateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableFlexPromotionCreateData struct { + value *FlexPromotionCreateData + isSet bool +} + +func (v NullableFlexPromotionCreateData) Get() *FlexPromotionCreateData { + return v.value +} + +func (v *NullableFlexPromotionCreateData) Set(val *FlexPromotionCreateData) { + v.value = val + v.isSet = true +} + +func (v NullableFlexPromotionCreateData) IsSet() bool { + return v.isSet +} + +func (v *NullableFlexPromotionCreateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFlexPromotionCreateData(val *FlexPromotionCreateData) *NullableFlexPromotionCreateData { + return &NullableFlexPromotionCreateData{value: val, isSet: true} +} + +func (v NullableFlexPromotionCreateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFlexPromotionCreateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_flex_promotion_create_data_relationships.go b/api/model_flex_promotion_create_data_relationships.go new file mode 100644 index 00000000..04c144c5 --- /dev/null +++ b/api/model_flex_promotion_create_data_relationships.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the FlexPromotionCreateDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FlexPromotionCreateDataRelationships{} + +// FlexPromotionCreateDataRelationships struct for FlexPromotionCreateDataRelationships +type FlexPromotionCreateDataRelationships struct { + CouponCodesPromotionRule *BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule `json:"coupon_codes_promotion_rule,omitempty"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` +} + +// NewFlexPromotionCreateDataRelationships instantiates a new FlexPromotionCreateDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFlexPromotionCreateDataRelationships() *FlexPromotionCreateDataRelationships { + this := FlexPromotionCreateDataRelationships{} + return &this +} + +// NewFlexPromotionCreateDataRelationshipsWithDefaults instantiates a new FlexPromotionCreateDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFlexPromotionCreateDataRelationshipsWithDefaults() *FlexPromotionCreateDataRelationships { + this := FlexPromotionCreateDataRelationships{} + return &this +} + +// GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field value if set, zero value otherwise. +func (o *FlexPromotionCreateDataRelationships) GetCouponCodesPromotionRule() BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule { + if o == nil || IsNil(o.CouponCodesPromotionRule) { + var ret BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule + return ret + } + return *o.CouponCodesPromotionRule +} + +// GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FlexPromotionCreateDataRelationships) GetCouponCodesPromotionRuleOk() (*BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule, bool) { + if o == nil || IsNil(o.CouponCodesPromotionRule) { + return nil, false + } + return o.CouponCodesPromotionRule, true +} + +// HasCouponCodesPromotionRule returns a boolean if a field has been set. +func (o *FlexPromotionCreateDataRelationships) HasCouponCodesPromotionRule() bool { + if o != nil && !IsNil(o.CouponCodesPromotionRule) { + return true + } + + return false +} + +// SetCouponCodesPromotionRule gets a reference to the given BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule and assigns it to the CouponCodesPromotionRule field. +func (o *FlexPromotionCreateDataRelationships) SetCouponCodesPromotionRule(v BuyXPayYPromotionCreateDataRelationshipsCouponCodesPromotionRule) { + o.CouponCodesPromotionRule = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *FlexPromotionCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FlexPromotionCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *FlexPromotionCreateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *FlexPromotionCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + +func (o FlexPromotionCreateDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FlexPromotionCreateDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CouponCodesPromotionRule) { + toSerialize["coupon_codes_promotion_rule"] = o.CouponCodesPromotionRule + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} + +type NullableFlexPromotionCreateDataRelationships struct { + value *FlexPromotionCreateDataRelationships + isSet bool +} + +func (v NullableFlexPromotionCreateDataRelationships) Get() *FlexPromotionCreateDataRelationships { + return v.value +} + +func (v *NullableFlexPromotionCreateDataRelationships) Set(val *FlexPromotionCreateDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableFlexPromotionCreateDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableFlexPromotionCreateDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFlexPromotionCreateDataRelationships(val *FlexPromotionCreateDataRelationships) *NullableFlexPromotionCreateDataRelationships { + return &NullableFlexPromotionCreateDataRelationships{value: val, isSet: true} +} + +func (v NullableFlexPromotionCreateDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFlexPromotionCreateDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_flex_promotion_data.go b/api/model_flex_promotion_data.go new file mode 100644 index 00000000..8e6dc04d --- /dev/null +++ b/api/model_flex_promotion_data.go @@ -0,0 +1,184 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the FlexPromotionData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FlexPromotionData{} + +// FlexPromotionData struct for FlexPromotionData +type FlexPromotionData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes GETFlexPromotionsFlexPromotionId200ResponseDataAttributes `json:"attributes"` + Relationships *FlexPromotionDataRelationships `json:"relationships,omitempty"` +} + +// NewFlexPromotionData instantiates a new FlexPromotionData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFlexPromotionData(type_ interface{}, attributes GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) *FlexPromotionData { + this := FlexPromotionData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewFlexPromotionDataWithDefaults instantiates a new FlexPromotionData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFlexPromotionDataWithDefaults() *FlexPromotionData { + this := FlexPromotionData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *FlexPromotionData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *FlexPromotionData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *FlexPromotionData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *FlexPromotionData) GetAttributes() GETFlexPromotionsFlexPromotionId200ResponseDataAttributes { + if o == nil { + var ret GETFlexPromotionsFlexPromotionId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *FlexPromotionData) GetAttributesOk() (*GETFlexPromotionsFlexPromotionId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *FlexPromotionData) SetAttributes(v GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *FlexPromotionData) GetRelationships() FlexPromotionDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret FlexPromotionDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FlexPromotionData) GetRelationshipsOk() (*FlexPromotionDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *FlexPromotionData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given FlexPromotionDataRelationships and assigns it to the Relationships field. +func (o *FlexPromotionData) SetRelationships(v FlexPromotionDataRelationships) { + o.Relationships = &v +} + +func (o FlexPromotionData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FlexPromotionData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableFlexPromotionData struct { + value *FlexPromotionData + isSet bool +} + +func (v NullableFlexPromotionData) Get() *FlexPromotionData { + return v.value +} + +func (v *NullableFlexPromotionData) Set(val *FlexPromotionData) { + v.value = val + v.isSet = true +} + +func (v NullableFlexPromotionData) IsSet() bool { + return v.isSet +} + +func (v *NullableFlexPromotionData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFlexPromotionData(val *FlexPromotionData) *NullableFlexPromotionData { + return &NullableFlexPromotionData{value: val, isSet: true} +} + +func (v NullableFlexPromotionData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFlexPromotionData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_flex_promotion_data_relationships.go b/api/model_flex_promotion_data_relationships.go new file mode 100644 index 00000000..77f9aaea --- /dev/null +++ b/api/model_flex_promotion_data_relationships.go @@ -0,0 +1,305 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the FlexPromotionDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FlexPromotionDataRelationships{} + +// FlexPromotionDataRelationships struct for FlexPromotionDataRelationships +type FlexPromotionDataRelationships struct { + CouponCodesPromotionRule *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule `json:"coupon_codes_promotion_rule,omitempty"` + Coupons *BuyXPayYPromotionDataRelationshipsCoupons `json:"coupons,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Tags *AddressDataRelationshipsTags `json:"tags,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewFlexPromotionDataRelationships instantiates a new FlexPromotionDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFlexPromotionDataRelationships() *FlexPromotionDataRelationships { + this := FlexPromotionDataRelationships{} + return &this +} + +// NewFlexPromotionDataRelationshipsWithDefaults instantiates a new FlexPromotionDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFlexPromotionDataRelationshipsWithDefaults() *FlexPromotionDataRelationships { + this := FlexPromotionDataRelationships{} + return &this +} + +// GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field value if set, zero value otherwise. +func (o *FlexPromotionDataRelationships) GetCouponCodesPromotionRule() BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule { + if o == nil || IsNil(o.CouponCodesPromotionRule) { + var ret BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule + return ret + } + return *o.CouponCodesPromotionRule +} + +// GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FlexPromotionDataRelationships) GetCouponCodesPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule, bool) { + if o == nil || IsNil(o.CouponCodesPromotionRule) { + return nil, false + } + return o.CouponCodesPromotionRule, true +} + +// HasCouponCodesPromotionRule returns a boolean if a field has been set. +func (o *FlexPromotionDataRelationships) HasCouponCodesPromotionRule() bool { + if o != nil && !IsNil(o.CouponCodesPromotionRule) { + return true + } + + return false +} + +// SetCouponCodesPromotionRule gets a reference to the given BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule and assigns it to the CouponCodesPromotionRule field. +func (o *FlexPromotionDataRelationships) SetCouponCodesPromotionRule(v BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) { + o.CouponCodesPromotionRule = &v +} + +// GetCoupons returns the Coupons field value if set, zero value otherwise. +func (o *FlexPromotionDataRelationships) GetCoupons() BuyXPayYPromotionDataRelationshipsCoupons { + if o == nil || IsNil(o.Coupons) { + var ret BuyXPayYPromotionDataRelationshipsCoupons + return ret + } + return *o.Coupons +} + +// GetCouponsOk returns a tuple with the Coupons field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FlexPromotionDataRelationships) GetCouponsOk() (*BuyXPayYPromotionDataRelationshipsCoupons, bool) { + if o == nil || IsNil(o.Coupons) { + return nil, false + } + return o.Coupons, true +} + +// HasCoupons returns a boolean if a field has been set. +func (o *FlexPromotionDataRelationships) HasCoupons() bool { + if o != nil && !IsNil(o.Coupons) { + return true + } + + return false +} + +// SetCoupons gets a reference to the given BuyXPayYPromotionDataRelationshipsCoupons and assigns it to the Coupons field. +func (o *FlexPromotionDataRelationships) SetCoupons(v BuyXPayYPromotionDataRelationshipsCoupons) { + o.Coupons = &v +} + +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *FlexPromotionDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret AuthorizationDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FlexPromotionDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *FlexPromotionDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *FlexPromotionDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { + o.Attachments = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *FlexPromotionDataRelationships) GetEvents() AddressDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret AddressDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FlexPromotionDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *FlexPromotionDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *FlexPromotionDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *FlexPromotionDataRelationships) GetTags() AddressDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FlexPromotionDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *FlexPromotionDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressDataRelationshipsTags and assigns it to the Tags field. +func (o *FlexPromotionDataRelationships) SetTags(v AddressDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *FlexPromotionDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FlexPromotionDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *FlexPromotionDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *FlexPromotionDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + +func (o FlexPromotionDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FlexPromotionDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CouponCodesPromotionRule) { + toSerialize["coupon_codes_promotion_rule"] = o.CouponCodesPromotionRule + } + if !IsNil(o.Coupons) { + toSerialize["coupons"] = o.Coupons + } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullableFlexPromotionDataRelationships struct { + value *FlexPromotionDataRelationships + isSet bool +} + +func (v NullableFlexPromotionDataRelationships) Get() *FlexPromotionDataRelationships { + return v.value +} + +func (v *NullableFlexPromotionDataRelationships) Set(val *FlexPromotionDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableFlexPromotionDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableFlexPromotionDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFlexPromotionDataRelationships(val *FlexPromotionDataRelationships) *NullableFlexPromotionDataRelationships { + return &NullableFlexPromotionDataRelationships{value: val, isSet: true} +} + +func (v NullableFlexPromotionDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFlexPromotionDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_flex_promotion_update.go b/api/model_flex_promotion_update.go new file mode 100644 index 00000000..927259b6 --- /dev/null +++ b/api/model_flex_promotion_update.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the FlexPromotionUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FlexPromotionUpdate{} + +// FlexPromotionUpdate struct for FlexPromotionUpdate +type FlexPromotionUpdate struct { + Data FlexPromotionUpdateData `json:"data"` +} + +// NewFlexPromotionUpdate instantiates a new FlexPromotionUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFlexPromotionUpdate(data FlexPromotionUpdateData) *FlexPromotionUpdate { + this := FlexPromotionUpdate{} + this.Data = data + return &this +} + +// NewFlexPromotionUpdateWithDefaults instantiates a new FlexPromotionUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFlexPromotionUpdateWithDefaults() *FlexPromotionUpdate { + this := FlexPromotionUpdate{} + return &this +} + +// GetData returns the Data field value +func (o *FlexPromotionUpdate) GetData() FlexPromotionUpdateData { + if o == nil { + var ret FlexPromotionUpdateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *FlexPromotionUpdate) GetDataOk() (*FlexPromotionUpdateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *FlexPromotionUpdate) SetData(v FlexPromotionUpdateData) { + o.Data = v +} + +func (o FlexPromotionUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FlexPromotionUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableFlexPromotionUpdate struct { + value *FlexPromotionUpdate + isSet bool +} + +func (v NullableFlexPromotionUpdate) Get() *FlexPromotionUpdate { + return v.value +} + +func (v *NullableFlexPromotionUpdate) Set(val *FlexPromotionUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableFlexPromotionUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableFlexPromotionUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFlexPromotionUpdate(val *FlexPromotionUpdate) *NullableFlexPromotionUpdate { + return &NullableFlexPromotionUpdate{value: val, isSet: true} +} + +func (v NullableFlexPromotionUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFlexPromotionUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_flex_promotion_update_data.go b/api/model_flex_promotion_update_data.go new file mode 100644 index 00000000..f4d83620 --- /dev/null +++ b/api/model_flex_promotion_update_data.go @@ -0,0 +1,216 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the FlexPromotionUpdateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FlexPromotionUpdateData{} + +// FlexPromotionUpdateData struct for FlexPromotionUpdateData +type FlexPromotionUpdateData struct { + // The resource's type + Type interface{} `json:"type"` + // The resource's id + Id interface{} `json:"id"` + Attributes PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes `json:"attributes"` + Relationships *FlexPromotionCreateDataRelationships `json:"relationships,omitempty"` +} + +// NewFlexPromotionUpdateData instantiates a new FlexPromotionUpdateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFlexPromotionUpdateData(type_ interface{}, id interface{}, attributes PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) *FlexPromotionUpdateData { + this := FlexPromotionUpdateData{} + this.Type = type_ + this.Id = id + this.Attributes = attributes + return &this +} + +// NewFlexPromotionUpdateDataWithDefaults instantiates a new FlexPromotionUpdateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFlexPromotionUpdateDataWithDefaults() *FlexPromotionUpdateData { + this := FlexPromotionUpdateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *FlexPromotionUpdateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *FlexPromotionUpdateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *FlexPromotionUpdateData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *FlexPromotionUpdateData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *FlexPromotionUpdateData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *FlexPromotionUpdateData) SetId(v interface{}) { + o.Id = v +} + +// GetAttributes returns the Attributes field value +func (o *FlexPromotionUpdateData) GetAttributes() PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes { + if o == nil { + var ret PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *FlexPromotionUpdateData) GetAttributesOk() (*PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *FlexPromotionUpdateData) SetAttributes(v PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *FlexPromotionUpdateData) GetRelationships() FlexPromotionCreateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret FlexPromotionCreateDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FlexPromotionUpdateData) GetRelationshipsOk() (*FlexPromotionCreateDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *FlexPromotionUpdateData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given FlexPromotionCreateDataRelationships and assigns it to the Relationships field. +func (o *FlexPromotionUpdateData) SetRelationships(v FlexPromotionCreateDataRelationships) { + o.Relationships = &v +} + +func (o FlexPromotionUpdateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FlexPromotionUpdateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableFlexPromotionUpdateData struct { + value *FlexPromotionUpdateData + isSet bool +} + +func (v NullableFlexPromotionUpdateData) Get() *FlexPromotionUpdateData { + return v.value +} + +func (v *NullableFlexPromotionUpdateData) Set(val *FlexPromotionUpdateData) { + v.value = val + v.isSet = true +} + +func (v NullableFlexPromotionUpdateData) IsSet() bool { + return v.isSet +} + +func (v *NullableFlexPromotionUpdateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFlexPromotionUpdateData(val *FlexPromotionUpdateData) *NullableFlexPromotionUpdateData { + return &NullableFlexPromotionUpdateData{value: val, isSet: true} +} + +func (v NullableFlexPromotionUpdateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFlexPromotionUpdateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_free_gift_promotion.go b/api/model_free_gift_promotion.go index 28ae3b0e..1d332a43 100644 --- a/api/model_free_gift_promotion.go +++ b/api/model_free_gift_promotion.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_free_gift_promotion_create.go b/api/model_free_gift_promotion_create.go index bb619c0c..4e5be350 100644 --- a/api/model_free_gift_promotion_create.go +++ b/api/model_free_gift_promotion_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_free_gift_promotion_create_data.go b/api/model_free_gift_promotion_create_data.go index 78d2cfff..362e56ef 100644 --- a/api/model_free_gift_promotion_create_data.go +++ b/api/model_free_gift_promotion_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type FreeGiftPromotionCreateData struct { // The resource's type Type interface{} `json:"type"` Attributes POSTFreeGiftPromotions201ResponseDataAttributes `json:"attributes"` - Relationships *FixedPricePromotionCreateDataRelationships `json:"relationships,omitempty"` + Relationships *BuyXPayYPromotionCreateDataRelationships `json:"relationships,omitempty"` } // NewFreeGiftPromotionCreateData instantiates a new FreeGiftPromotionCreateData object @@ -96,9 +96,9 @@ func (o *FreeGiftPromotionCreateData) SetAttributes(v POSTFreeGiftPromotions201R } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *FreeGiftPromotionCreateData) GetRelationships() FixedPricePromotionCreateDataRelationships { +func (o *FreeGiftPromotionCreateData) GetRelationships() BuyXPayYPromotionCreateDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret FixedPricePromotionCreateDataRelationships + var ret BuyXPayYPromotionCreateDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *FreeGiftPromotionCreateData) GetRelationships() FixedPricePromotionCrea // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *FreeGiftPromotionCreateData) GetRelationshipsOk() (*FixedPricePromotionCreateDataRelationships, bool) { +func (o *FreeGiftPromotionCreateData) GetRelationshipsOk() (*BuyXPayYPromotionCreateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *FreeGiftPromotionCreateData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given FixedPricePromotionCreateDataRelationships and assigns it to the Relationships field. -func (o *FreeGiftPromotionCreateData) SetRelationships(v FixedPricePromotionCreateDataRelationships) { +// SetRelationships gets a reference to the given BuyXPayYPromotionCreateDataRelationships and assigns it to the Relationships field. +func (o *FreeGiftPromotionCreateData) SetRelationships(v BuyXPayYPromotionCreateDataRelationships) { o.Relationships = &v } diff --git a/api/model_free_gift_promotion_data.go b/api/model_free_gift_promotion_data.go index 0907cef2..bad45c51 100644 --- a/api/model_free_gift_promotion_data.go +++ b/api/model_free_gift_promotion_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type FreeGiftPromotionData struct { // The resource's type Type interface{} `json:"type"` Attributes GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes `json:"attributes"` - Relationships *FixedPricePromotionDataRelationships `json:"relationships,omitempty"` + Relationships *BuyXPayYPromotionDataRelationships `json:"relationships,omitempty"` } // NewFreeGiftPromotionData instantiates a new FreeGiftPromotionData object @@ -96,9 +96,9 @@ func (o *FreeGiftPromotionData) SetAttributes(v GETFreeGiftPromotionsFreeGiftPro } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *FreeGiftPromotionData) GetRelationships() FixedPricePromotionDataRelationships { +func (o *FreeGiftPromotionData) GetRelationships() BuyXPayYPromotionDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret FixedPricePromotionDataRelationships + var ret BuyXPayYPromotionDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *FreeGiftPromotionData) GetRelationships() FixedPricePromotionDataRelati // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *FreeGiftPromotionData) GetRelationshipsOk() (*FixedPricePromotionDataRelationships, bool) { +func (o *FreeGiftPromotionData) GetRelationshipsOk() (*BuyXPayYPromotionDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *FreeGiftPromotionData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given FixedPricePromotionDataRelationships and assigns it to the Relationships field. -func (o *FreeGiftPromotionData) SetRelationships(v FixedPricePromotionDataRelationships) { +// SetRelationships gets a reference to the given BuyXPayYPromotionDataRelationships and assigns it to the Relationships field. +func (o *FreeGiftPromotionData) SetRelationships(v BuyXPayYPromotionDataRelationships) { o.Relationships = &v } diff --git a/api/model_free_gift_promotion_update.go b/api/model_free_gift_promotion_update.go index 86160a1a..6dd2c635 100644 --- a/api/model_free_gift_promotion_update.go +++ b/api/model_free_gift_promotion_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_free_gift_promotion_update_data.go b/api/model_free_gift_promotion_update_data.go index f78d9d1a..3f79c282 100644 --- a/api/model_free_gift_promotion_update_data.go +++ b/api/model_free_gift_promotion_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -25,7 +25,7 @@ type FreeGiftPromotionUpdateData struct { // The resource's id Id interface{} `json:"id"` Attributes PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes `json:"attributes"` - Relationships *FixedPricePromotionUpdateDataRelationships `json:"relationships,omitempty"` + Relationships *BuyXPayYPromotionUpdateDataRelationships `json:"relationships,omitempty"` } // NewFreeGiftPromotionUpdateData instantiates a new FreeGiftPromotionUpdateData object @@ -125,9 +125,9 @@ func (o *FreeGiftPromotionUpdateData) SetAttributes(v PATCHFreeGiftPromotionsFre } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *FreeGiftPromotionUpdateData) GetRelationships() FixedPricePromotionUpdateDataRelationships { +func (o *FreeGiftPromotionUpdateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret FixedPricePromotionUpdateDataRelationships + var ret BuyXPayYPromotionUpdateDataRelationships return ret } return *o.Relationships @@ -135,7 +135,7 @@ func (o *FreeGiftPromotionUpdateData) GetRelationships() FixedPricePromotionUpda // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *FreeGiftPromotionUpdateData) GetRelationshipsOk() (*FixedPricePromotionUpdateDataRelationships, bool) { +func (o *FreeGiftPromotionUpdateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -151,8 +151,8 @@ func (o *FreeGiftPromotionUpdateData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given FixedPricePromotionUpdateDataRelationships and assigns it to the Relationships field. -func (o *FreeGiftPromotionUpdateData) SetRelationships(v FixedPricePromotionUpdateDataRelationships) { +// SetRelationships gets a reference to the given BuyXPayYPromotionUpdateDataRelationships and assigns it to the Relationships field. +func (o *FreeGiftPromotionUpdateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships) { o.Relationships = &v } diff --git a/api/model_free_shipping_promotion.go b/api/model_free_shipping_promotion.go index 03115713..2aaddf15 100644 --- a/api/model_free_shipping_promotion.go +++ b/api/model_free_shipping_promotion.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_free_shipping_promotion_create.go b/api/model_free_shipping_promotion_create.go index fcf46f86..dbb2d370 100644 --- a/api/model_free_shipping_promotion_create.go +++ b/api/model_free_shipping_promotion_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_free_shipping_promotion_create_data.go b/api/model_free_shipping_promotion_create_data.go index 1c30c96a..be23691d 100644 --- a/api/model_free_shipping_promotion_create_data.go +++ b/api/model_free_shipping_promotion_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type FreeShippingPromotionCreateData struct { // The resource's type Type interface{} `json:"type"` Attributes POSTFreeShippingPromotions201ResponseDataAttributes `json:"attributes"` - Relationships *ExternalPromotionCreateDataRelationships `json:"relationships,omitempty"` + Relationships *BuyXPayYPromotionUpdateDataRelationships `json:"relationships,omitempty"` } // NewFreeShippingPromotionCreateData instantiates a new FreeShippingPromotionCreateData object @@ -96,9 +96,9 @@ func (o *FreeShippingPromotionCreateData) SetAttributes(v POSTFreeShippingPromot } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *FreeShippingPromotionCreateData) GetRelationships() ExternalPromotionCreateDataRelationships { +func (o *FreeShippingPromotionCreateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret ExternalPromotionCreateDataRelationships + var ret BuyXPayYPromotionUpdateDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *FreeShippingPromotionCreateData) GetRelationships() ExternalPromotionCr // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *FreeShippingPromotionCreateData) GetRelationshipsOk() (*ExternalPromotionCreateDataRelationships, bool) { +func (o *FreeShippingPromotionCreateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *FreeShippingPromotionCreateData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given ExternalPromotionCreateDataRelationships and assigns it to the Relationships field. -func (o *FreeShippingPromotionCreateData) SetRelationships(v ExternalPromotionCreateDataRelationships) { +// SetRelationships gets a reference to the given BuyXPayYPromotionUpdateDataRelationships and assigns it to the Relationships field. +func (o *FreeShippingPromotionCreateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships) { o.Relationships = &v } diff --git a/api/model_free_shipping_promotion_data.go b/api/model_free_shipping_promotion_data.go index 7f9ce7a8..8998bbaf 100644 --- a/api/model_free_shipping_promotion_data.go +++ b/api/model_free_shipping_promotion_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type FreeShippingPromotionData struct { // The resource's type Type interface{} `json:"type"` Attributes GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes `json:"attributes"` - Relationships *ExternalPromotionDataRelationships `json:"relationships,omitempty"` + Relationships *FreeShippingPromotionDataRelationships `json:"relationships,omitempty"` } // NewFreeShippingPromotionData instantiates a new FreeShippingPromotionData object @@ -96,9 +96,9 @@ func (o *FreeShippingPromotionData) SetAttributes(v GETFreeShippingPromotionsFre } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *FreeShippingPromotionData) GetRelationships() ExternalPromotionDataRelationships { +func (o *FreeShippingPromotionData) GetRelationships() FreeShippingPromotionDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret ExternalPromotionDataRelationships + var ret FreeShippingPromotionDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *FreeShippingPromotionData) GetRelationships() ExternalPromotionDataRela // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *FreeShippingPromotionData) GetRelationshipsOk() (*ExternalPromotionDataRelationships, bool) { +func (o *FreeShippingPromotionData) GetRelationshipsOk() (*FreeShippingPromotionDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *FreeShippingPromotionData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given ExternalPromotionDataRelationships and assigns it to the Relationships field. -func (o *FreeShippingPromotionData) SetRelationships(v ExternalPromotionDataRelationships) { +// SetRelationships gets a reference to the given FreeShippingPromotionDataRelationships and assigns it to the Relationships field. +func (o *FreeShippingPromotionData) SetRelationships(v FreeShippingPromotionDataRelationships) { o.Relationships = &v } diff --git a/api/model_free_shipping_promotion_data_relationships.go b/api/model_free_shipping_promotion_data_relationships.go new file mode 100644 index 00000000..a0f54c47 --- /dev/null +++ b/api/model_free_shipping_promotion_data_relationships.go @@ -0,0 +1,521 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the FreeShippingPromotionDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FreeShippingPromotionDataRelationships{} + +// FreeShippingPromotionDataRelationships struct for FreeShippingPromotionDataRelationships +type FreeShippingPromotionDataRelationships struct { + Market *AvalaraAccountDataRelationshipsMarkets `json:"market,omitempty"` + PromotionRules *BuyXPayYPromotionDataRelationshipsPromotionRules `json:"promotion_rules,omitempty"` + OrderAmountPromotionRule *BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule `json:"order_amount_promotion_rule,omitempty"` + SkuListPromotionRule *BuyXPayYPromotionDataRelationshipsSkuListPromotionRule `json:"sku_list_promotion_rule,omitempty"` + CouponCodesPromotionRule *BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule `json:"coupon_codes_promotion_rule,omitempty"` + CustomPromotionRule *BuyXPayYPromotionDataRelationshipsCustomPromotionRule `json:"custom_promotion_rule,omitempty"` + SkuList *BundleDataRelationshipsSkuList `json:"sku_list,omitempty"` + Coupons *BuyXPayYPromotionDataRelationshipsCoupons `json:"coupons,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Tags *AddressDataRelationshipsTags `json:"tags,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewFreeShippingPromotionDataRelationships instantiates a new FreeShippingPromotionDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewFreeShippingPromotionDataRelationships() *FreeShippingPromotionDataRelationships { + this := FreeShippingPromotionDataRelationships{} + return &this +} + +// NewFreeShippingPromotionDataRelationshipsWithDefaults instantiates a new FreeShippingPromotionDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewFreeShippingPromotionDataRelationshipsWithDefaults() *FreeShippingPromotionDataRelationships { + this := FreeShippingPromotionDataRelationships{} + return &this +} + +// GetMarket returns the Market field value if set, zero value otherwise. +func (o *FreeShippingPromotionDataRelationships) GetMarket() AvalaraAccountDataRelationshipsMarkets { + if o == nil || IsNil(o.Market) { + var ret AvalaraAccountDataRelationshipsMarkets + return ret + } + return *o.Market +} + +// GetMarketOk returns a tuple with the Market field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FreeShippingPromotionDataRelationships) GetMarketOk() (*AvalaraAccountDataRelationshipsMarkets, bool) { + if o == nil || IsNil(o.Market) { + return nil, false + } + return o.Market, true +} + +// HasMarket returns a boolean if a field has been set. +func (o *FreeShippingPromotionDataRelationships) HasMarket() bool { + if o != nil && !IsNil(o.Market) { + return true + } + + return false +} + +// SetMarket gets a reference to the given AvalaraAccountDataRelationshipsMarkets and assigns it to the Market field. +func (o *FreeShippingPromotionDataRelationships) SetMarket(v AvalaraAccountDataRelationshipsMarkets) { + o.Market = &v +} + +// GetPromotionRules returns the PromotionRules field value if set, zero value otherwise. +func (o *FreeShippingPromotionDataRelationships) GetPromotionRules() BuyXPayYPromotionDataRelationshipsPromotionRules { + if o == nil || IsNil(o.PromotionRules) { + var ret BuyXPayYPromotionDataRelationshipsPromotionRules + return ret + } + return *o.PromotionRules +} + +// GetPromotionRulesOk returns a tuple with the PromotionRules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FreeShippingPromotionDataRelationships) GetPromotionRulesOk() (*BuyXPayYPromotionDataRelationshipsPromotionRules, bool) { + if o == nil || IsNil(o.PromotionRules) { + return nil, false + } + return o.PromotionRules, true +} + +// HasPromotionRules returns a boolean if a field has been set. +func (o *FreeShippingPromotionDataRelationships) HasPromotionRules() bool { + if o != nil && !IsNil(o.PromotionRules) { + return true + } + + return false +} + +// SetPromotionRules gets a reference to the given BuyXPayYPromotionDataRelationshipsPromotionRules and assigns it to the PromotionRules field. +func (o *FreeShippingPromotionDataRelationships) SetPromotionRules(v BuyXPayYPromotionDataRelationshipsPromotionRules) { + o.PromotionRules = &v +} + +// GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field value if set, zero value otherwise. +func (o *FreeShippingPromotionDataRelationships) GetOrderAmountPromotionRule() BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule { + if o == nil || IsNil(o.OrderAmountPromotionRule) { + var ret BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule + return ret + } + return *o.OrderAmountPromotionRule +} + +// GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FreeShippingPromotionDataRelationships) GetOrderAmountPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule, bool) { + if o == nil || IsNil(o.OrderAmountPromotionRule) { + return nil, false + } + return o.OrderAmountPromotionRule, true +} + +// HasOrderAmountPromotionRule returns a boolean if a field has been set. +func (o *FreeShippingPromotionDataRelationships) HasOrderAmountPromotionRule() bool { + if o != nil && !IsNil(o.OrderAmountPromotionRule) { + return true + } + + return false +} + +// SetOrderAmountPromotionRule gets a reference to the given BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule and assigns it to the OrderAmountPromotionRule field. +func (o *FreeShippingPromotionDataRelationships) SetOrderAmountPromotionRule(v BuyXPayYPromotionDataRelationshipsOrderAmountPromotionRule) { + o.OrderAmountPromotionRule = &v +} + +// GetSkuListPromotionRule returns the SkuListPromotionRule field value if set, zero value otherwise. +func (o *FreeShippingPromotionDataRelationships) GetSkuListPromotionRule() BuyXPayYPromotionDataRelationshipsSkuListPromotionRule { + if o == nil || IsNil(o.SkuListPromotionRule) { + var ret BuyXPayYPromotionDataRelationshipsSkuListPromotionRule + return ret + } + return *o.SkuListPromotionRule +} + +// GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FreeShippingPromotionDataRelationships) GetSkuListPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsSkuListPromotionRule, bool) { + if o == nil || IsNil(o.SkuListPromotionRule) { + return nil, false + } + return o.SkuListPromotionRule, true +} + +// HasSkuListPromotionRule returns a boolean if a field has been set. +func (o *FreeShippingPromotionDataRelationships) HasSkuListPromotionRule() bool { + if o != nil && !IsNil(o.SkuListPromotionRule) { + return true + } + + return false +} + +// SetSkuListPromotionRule gets a reference to the given BuyXPayYPromotionDataRelationshipsSkuListPromotionRule and assigns it to the SkuListPromotionRule field. +func (o *FreeShippingPromotionDataRelationships) SetSkuListPromotionRule(v BuyXPayYPromotionDataRelationshipsSkuListPromotionRule) { + o.SkuListPromotionRule = &v +} + +// GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field value if set, zero value otherwise. +func (o *FreeShippingPromotionDataRelationships) GetCouponCodesPromotionRule() BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule { + if o == nil || IsNil(o.CouponCodesPromotionRule) { + var ret BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule + return ret + } + return *o.CouponCodesPromotionRule +} + +// GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FreeShippingPromotionDataRelationships) GetCouponCodesPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule, bool) { + if o == nil || IsNil(o.CouponCodesPromotionRule) { + return nil, false + } + return o.CouponCodesPromotionRule, true +} + +// HasCouponCodesPromotionRule returns a boolean if a field has been set. +func (o *FreeShippingPromotionDataRelationships) HasCouponCodesPromotionRule() bool { + if o != nil && !IsNil(o.CouponCodesPromotionRule) { + return true + } + + return false +} + +// SetCouponCodesPromotionRule gets a reference to the given BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule and assigns it to the CouponCodesPromotionRule field. +func (o *FreeShippingPromotionDataRelationships) SetCouponCodesPromotionRule(v BuyXPayYPromotionDataRelationshipsCouponCodesPromotionRule) { + o.CouponCodesPromotionRule = &v +} + +// GetCustomPromotionRule returns the CustomPromotionRule field value if set, zero value otherwise. +func (o *FreeShippingPromotionDataRelationships) GetCustomPromotionRule() BuyXPayYPromotionDataRelationshipsCustomPromotionRule { + if o == nil || IsNil(o.CustomPromotionRule) { + var ret BuyXPayYPromotionDataRelationshipsCustomPromotionRule + return ret + } + return *o.CustomPromotionRule +} + +// GetCustomPromotionRuleOk returns a tuple with the CustomPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FreeShippingPromotionDataRelationships) GetCustomPromotionRuleOk() (*BuyXPayYPromotionDataRelationshipsCustomPromotionRule, bool) { + if o == nil || IsNil(o.CustomPromotionRule) { + return nil, false + } + return o.CustomPromotionRule, true +} + +// HasCustomPromotionRule returns a boolean if a field has been set. +func (o *FreeShippingPromotionDataRelationships) HasCustomPromotionRule() bool { + if o != nil && !IsNil(o.CustomPromotionRule) { + return true + } + + return false +} + +// SetCustomPromotionRule gets a reference to the given BuyXPayYPromotionDataRelationshipsCustomPromotionRule and assigns it to the CustomPromotionRule field. +func (o *FreeShippingPromotionDataRelationships) SetCustomPromotionRule(v BuyXPayYPromotionDataRelationshipsCustomPromotionRule) { + o.CustomPromotionRule = &v +} + +// GetSkuList returns the SkuList field value if set, zero value otherwise. +func (o *FreeShippingPromotionDataRelationships) GetSkuList() BundleDataRelationshipsSkuList { + if o == nil || IsNil(o.SkuList) { + var ret BundleDataRelationshipsSkuList + return ret + } + return *o.SkuList +} + +// GetSkuListOk returns a tuple with the SkuList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FreeShippingPromotionDataRelationships) GetSkuListOk() (*BundleDataRelationshipsSkuList, bool) { + if o == nil || IsNil(o.SkuList) { + return nil, false + } + return o.SkuList, true +} + +// HasSkuList returns a boolean if a field has been set. +func (o *FreeShippingPromotionDataRelationships) HasSkuList() bool { + if o != nil && !IsNil(o.SkuList) { + return true + } + + return false +} + +// SetSkuList gets a reference to the given BundleDataRelationshipsSkuList and assigns it to the SkuList field. +func (o *FreeShippingPromotionDataRelationships) SetSkuList(v BundleDataRelationshipsSkuList) { + o.SkuList = &v +} + +// GetCoupons returns the Coupons field value if set, zero value otherwise. +func (o *FreeShippingPromotionDataRelationships) GetCoupons() BuyXPayYPromotionDataRelationshipsCoupons { + if o == nil || IsNil(o.Coupons) { + var ret BuyXPayYPromotionDataRelationshipsCoupons + return ret + } + return *o.Coupons +} + +// GetCouponsOk returns a tuple with the Coupons field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FreeShippingPromotionDataRelationships) GetCouponsOk() (*BuyXPayYPromotionDataRelationshipsCoupons, bool) { + if o == nil || IsNil(o.Coupons) { + return nil, false + } + return o.Coupons, true +} + +// HasCoupons returns a boolean if a field has been set. +func (o *FreeShippingPromotionDataRelationships) HasCoupons() bool { + if o != nil && !IsNil(o.Coupons) { + return true + } + + return false +} + +// SetCoupons gets a reference to the given BuyXPayYPromotionDataRelationshipsCoupons and assigns it to the Coupons field. +func (o *FreeShippingPromotionDataRelationships) SetCoupons(v BuyXPayYPromotionDataRelationshipsCoupons) { + o.Coupons = &v +} + +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *FreeShippingPromotionDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret AuthorizationDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FreeShippingPromotionDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *FreeShippingPromotionDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *FreeShippingPromotionDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { + o.Attachments = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *FreeShippingPromotionDataRelationships) GetEvents() AddressDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret AddressDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FreeShippingPromotionDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *FreeShippingPromotionDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *FreeShippingPromotionDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *FreeShippingPromotionDataRelationships) GetTags() AddressDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FreeShippingPromotionDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *FreeShippingPromotionDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressDataRelationshipsTags and assigns it to the Tags field. +func (o *FreeShippingPromotionDataRelationships) SetTags(v AddressDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *FreeShippingPromotionDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FreeShippingPromotionDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *FreeShippingPromotionDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *FreeShippingPromotionDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + +func (o FreeShippingPromotionDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FreeShippingPromotionDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Market) { + toSerialize["market"] = o.Market + } + if !IsNil(o.PromotionRules) { + toSerialize["promotion_rules"] = o.PromotionRules + } + if !IsNil(o.OrderAmountPromotionRule) { + toSerialize["order_amount_promotion_rule"] = o.OrderAmountPromotionRule + } + if !IsNil(o.SkuListPromotionRule) { + toSerialize["sku_list_promotion_rule"] = o.SkuListPromotionRule + } + if !IsNil(o.CouponCodesPromotionRule) { + toSerialize["coupon_codes_promotion_rule"] = o.CouponCodesPromotionRule + } + if !IsNil(o.CustomPromotionRule) { + toSerialize["custom_promotion_rule"] = o.CustomPromotionRule + } + if !IsNil(o.SkuList) { + toSerialize["sku_list"] = o.SkuList + } + if !IsNil(o.Coupons) { + toSerialize["coupons"] = o.Coupons + } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullableFreeShippingPromotionDataRelationships struct { + value *FreeShippingPromotionDataRelationships + isSet bool +} + +func (v NullableFreeShippingPromotionDataRelationships) Get() *FreeShippingPromotionDataRelationships { + return v.value +} + +func (v *NullableFreeShippingPromotionDataRelationships) Set(val *FreeShippingPromotionDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableFreeShippingPromotionDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableFreeShippingPromotionDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFreeShippingPromotionDataRelationships(val *FreeShippingPromotionDataRelationships) *NullableFreeShippingPromotionDataRelationships { + return &NullableFreeShippingPromotionDataRelationships{value: val, isSet: true} +} + +func (v NullableFreeShippingPromotionDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFreeShippingPromotionDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_free_shipping_promotion_update.go b/api/model_free_shipping_promotion_update.go index d1709aa3..66783292 100644 --- a/api/model_free_shipping_promotion_update.go +++ b/api/model_free_shipping_promotion_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_free_shipping_promotion_update_data.go b/api/model_free_shipping_promotion_update_data.go index 5cca551b..1138e939 100644 --- a/api/model_free_shipping_promotion_update_data.go +++ b/api/model_free_shipping_promotion_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -25,7 +25,7 @@ type FreeShippingPromotionUpdateData struct { // The resource's id Id interface{} `json:"id"` Attributes PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes `json:"attributes"` - Relationships *ExternalPromotionCreateDataRelationships `json:"relationships,omitempty"` + Relationships *BuyXPayYPromotionUpdateDataRelationships `json:"relationships,omitempty"` } // NewFreeShippingPromotionUpdateData instantiates a new FreeShippingPromotionUpdateData object @@ -125,9 +125,9 @@ func (o *FreeShippingPromotionUpdateData) SetAttributes(v PATCHFreeShippingPromo } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *FreeShippingPromotionUpdateData) GetRelationships() ExternalPromotionCreateDataRelationships { +func (o *FreeShippingPromotionUpdateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret ExternalPromotionCreateDataRelationships + var ret BuyXPayYPromotionUpdateDataRelationships return ret } return *o.Relationships @@ -135,7 +135,7 @@ func (o *FreeShippingPromotionUpdateData) GetRelationships() ExternalPromotionCr // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *FreeShippingPromotionUpdateData) GetRelationshipsOk() (*ExternalPromotionCreateDataRelationships, bool) { +func (o *FreeShippingPromotionUpdateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -151,8 +151,8 @@ func (o *FreeShippingPromotionUpdateData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given ExternalPromotionCreateDataRelationships and assigns it to the Relationships field. -func (o *FreeShippingPromotionUpdateData) SetRelationships(v ExternalPromotionCreateDataRelationships) { +// SetRelationships gets a reference to the given BuyXPayYPromotionUpdateDataRelationships and assigns it to the Relationships field. +func (o *FreeShippingPromotionUpdateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships) { o.Relationships = &v } diff --git a/api/model_geocoder.go b/api/model_geocoder.go index 0a1f6cca..21b61bfc 100644 --- a/api/model_geocoder.go +++ b/api/model_geocoder.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_geocoder_data.go b/api/model_geocoder_data.go index d202c764..66763d26 100644 --- a/api/model_geocoder_data.go +++ b/api/model_geocoder_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_addresses_200_response.go b/api/model_get_addresses_200_response.go index f1bc8c19..e1bfc869 100644 --- a/api/model_get_addresses_200_response.go +++ b/api/model_get_addresses_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_addresses_address_id_200_response.go b/api/model_get_addresses_address_id_200_response.go index d76e1bf8..7f58bd15 100644 --- a/api/model_get_addresses_address_id_200_response.go +++ b/api/model_get_addresses_address_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_addresses_address_id_200_response_data.go b/api/model_get_addresses_address_id_200_response_data.go index eee09fc7..85aa8351 100644 --- a/api/model_get_addresses_address_id_200_response_data.go +++ b/api/model_get_addresses_address_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_addresses_address_id_200_response_data_attributes.go b/api/model_get_addresses_address_id_200_response_data_attributes.go index 75d90656..8e0eec8f 100644 --- a/api/model_get_addresses_address_id_200_response_data_attributes.go +++ b/api/model_get_addresses_address_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,33 +20,33 @@ var _ MappedNullable = &GETAddressesAddressId200ResponseDataAttributes{} // GETAddressesAddressId200ResponseDataAttributes struct for GETAddressesAddressId200ResponseDataAttributes type GETAddressesAddressId200ResponseDataAttributes struct { - // Indicates if it's a business or a personal address + // Indicates if it's a business or a personal address. Business interface{} `json:"business,omitempty"` - // Address first name (personal) + // Address first name (personal). FirstName interface{} `json:"first_name,omitempty"` - // Address last name (personal) + // Address last name (personal). LastName interface{} `json:"last_name,omitempty"` - // Address company name (business) + // Address company name (business). Company interface{} `json:"company,omitempty"` - // Company name (business) of first name and last name (personal) + // Company name (business) of first name and last name (personal). FullName interface{} `json:"full_name,omitempty"` - // Address line 1, i.e. Street address, PO Box + // Address line 1, i.e. Street address, PO Box. Line1 interface{} `json:"line_1,omitempty"` - // Address line 2, i.e. Apartment, Suite, Building + // Address line 2, i.e. Apartment, Suite, Building. Line2 interface{} `json:"line_2,omitempty"` - // Address city + // Address city. City interface{} `json:"city,omitempty"` - // ZIP or postal code + // ZIP or postal code. ZipCode interface{} `json:"zip_code,omitempty"` // State, province or region code. StateCode interface{} `json:"state_code,omitempty"` - // The international 2-letter country code as defined by the ISO 3166-1 standard + // The international 2-letter country code as defined by the ISO 3166-1 standard. CountryCode interface{} `json:"country_code,omitempty"` // Phone number (including extension). Phone interface{} `json:"phone,omitempty"` - // Compact description of the address location, without the full name + // Compact description of the address location, without the full name. FullAddress interface{} `json:"full_address,omitempty"` - // Compact description of the address location, including the full name + // Compact description of the address location, including the full name. Name interface{} `json:"name,omitempty"` // Email address. Email interface{} `json:"email,omitempty"` @@ -56,17 +56,17 @@ type GETAddressesAddressId200ResponseDataAttributes struct { Lat interface{} `json:"lat,omitempty"` // The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market. Lng interface{} `json:"lng,omitempty"` - // Indicates if the latitude and logitude are present, either geocoded or manually updated + // Indicates if the latitude and logitude are present, either geocoded or manually updated. IsLocalized interface{} `json:"is_localized,omitempty"` - // Indicates if the address has been successfully geocoded + // Indicates if the address has been successfully geocoded. IsGeocoded interface{} `json:"is_geocoded,omitempty"` - // The geocoder provider name (either Google or Bing) + // The geocoder provider name (either Google or Bing). ProviderName interface{} `json:"provider_name,omitempty"` - // The map url of the geocoded address (if geocoded) + // The map url of the geocoded address (if geocoded). MapUrl interface{} `json:"map_url,omitempty"` - // The static map image url of the geocoded address (if geocoded) + // The static map image url of the geocoded address (if geocoded). StaticMapUrl interface{} `json:"static_map_url,omitempty"` - // Customer's billing information (i.e. VAT number, codice fiscale) + // Customer's billing information (i.e. VAT number, codice fiscale). BillingInfo interface{} `json:"billing_info,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` @@ -74,7 +74,7 @@ type GETAddressesAddressId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_adjustments_200_response.go b/api/model_get_adjustments_200_response.go index 850e3b50..ce9d9f37 100644 --- a/api/model_get_adjustments_200_response.go +++ b/api/model_get_adjustments_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_adjustments_adjustment_id_200_response.go b/api/model_get_adjustments_adjustment_id_200_response.go index e14961c5..652b4aca 100644 --- a/api/model_get_adjustments_adjustment_id_200_response.go +++ b/api/model_get_adjustments_adjustment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_adjustments_adjustment_id_200_response_data.go b/api/model_get_adjustments_adjustment_id_200_response_data.go index 19229671..4a9e8afa 100644 --- a/api/model_get_adjustments_adjustment_id_200_response_data.go +++ b/api/model_get_adjustments_adjustment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type GETAdjustmentsAdjustmentId200ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *GETAdjustmentsAdjustmentId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships interface{} `json:"relationships,omitempty"` + Relationships *POSTAdjustments201ResponseDataRelationships `json:"relationships,omitempty"` } // NewGETAdjustmentsAdjustmentId200ResponseData instantiates a new GETAdjustmentsAdjustmentId200ResponseData object @@ -176,37 +176,36 @@ func (o *GETAdjustmentsAdjustmentId200ResponseData) SetAttributes(v GETAdjustmen o.Attributes = &v } -// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETAdjustmentsAdjustmentId200ResponseData) GetRelationships() interface{} { - if o == nil { - var ret interface{} +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *GETAdjustmentsAdjustmentId200ResponseData) GetRelationships() POSTAdjustments201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTAdjustments201ResponseDataRelationships return ret } - return o.Relationships + return *o.Relationships } // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETAdjustmentsAdjustmentId200ResponseData) GetRelationshipsOk() (*interface{}, bool) { +func (o *GETAdjustmentsAdjustmentId200ResponseData) GetRelationshipsOk() (*POSTAdjustments201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } - return &o.Relationships, true + return o.Relationships, true } // HasRelationships returns a boolean if a field has been set. func (o *GETAdjustmentsAdjustmentId200ResponseData) HasRelationships() bool { - if o != nil && IsNil(o.Relationships) { + if o != nil && !IsNil(o.Relationships) { return true } return false } -// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. -func (o *GETAdjustmentsAdjustmentId200ResponseData) SetRelationships(v interface{}) { - o.Relationships = v +// SetRelationships gets a reference to the given POSTAdjustments201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETAdjustmentsAdjustmentId200ResponseData) SetRelationships(v POSTAdjustments201ResponseDataRelationships) { + o.Relationships = &v } func (o GETAdjustmentsAdjustmentId200ResponseData) MarshalJSON() ([]byte, error) { @@ -231,7 +230,7 @@ func (o GETAdjustmentsAdjustmentId200ResponseData) ToMap() (map[string]interface if !IsNil(o.Attributes) { toSerialize["attributes"] = o.Attributes } - if o.Relationships != nil { + if !IsNil(o.Relationships) { toSerialize["relationships"] = o.Relationships } return toSerialize, nil diff --git a/api/model_get_adjustments_adjustment_id_200_response_data_attributes.go b/api/model_get_adjustments_adjustment_id_200_response_data_attributes.go index 9ce4c579..562b87d1 100644 --- a/api/model_get_adjustments_adjustment_id_200_response_data_attributes.go +++ b/api/model_get_adjustments_adjustment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &GETAdjustmentsAdjustmentId200ResponseDataAttributes{} // GETAdjustmentsAdjustmentId200ResponseDataAttributes struct for GETAdjustmentsAdjustmentId200ResponseDataAttributes type GETAdjustmentsAdjustmentId200ResponseDataAttributes struct { - // The adjustment name + // The adjustment name. Name interface{} `json:"name,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` @@ -30,13 +30,15 @@ type GETAdjustmentsAdjustmentId200ResponseDataAttributes struct { AmountFloat interface{} `json:"amount_float,omitempty"` // The adjustment amount, formatted. FormattedAmount interface{} `json:"formatted_amount,omitempty"` + // Indicates if negative adjustment amount is distributed for tax calculation. + DistributeDiscount interface{} `json:"distribute_discount,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -224,6 +226,39 @@ func (o *GETAdjustmentsAdjustmentId200ResponseDataAttributes) SetFormattedAmount o.FormattedAmount = v } +// GetDistributeDiscount returns the DistributeDiscount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETAdjustmentsAdjustmentId200ResponseDataAttributes) GetDistributeDiscount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DistributeDiscount +} + +// GetDistributeDiscountOk returns a tuple with the DistributeDiscount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETAdjustmentsAdjustmentId200ResponseDataAttributes) GetDistributeDiscountOk() (*interface{}, bool) { + if o == nil || IsNil(o.DistributeDiscount) { + return nil, false + } + return &o.DistributeDiscount, true +} + +// HasDistributeDiscount returns a boolean if a field has been set. +func (o *GETAdjustmentsAdjustmentId200ResponseDataAttributes) HasDistributeDiscount() bool { + if o != nil && IsNil(o.DistributeDiscount) { + return true + } + + return false +} + +// SetDistributeDiscount gets a reference to the given interface{} and assigns it to the DistributeDiscount field. +func (o *GETAdjustmentsAdjustmentId200ResponseDataAttributes) SetDistributeDiscount(v interface{}) { + o.DistributeDiscount = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETAdjustmentsAdjustmentId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -414,6 +449,9 @@ func (o GETAdjustmentsAdjustmentId200ResponseDataAttributes) ToMap() (map[string if o.FormattedAmount != nil { toSerialize["formatted_amount"] = o.FormattedAmount } + if o.DistributeDiscount != nil { + toSerialize["distribute_discount"] = o.DistributeDiscount + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_adyen_gateways_200_response.go b/api/model_get_adyen_gateways_200_response.go index 1a9ec778..855fb205 100644 --- a/api/model_get_adyen_gateways_200_response.go +++ b/api/model_get_adyen_gateways_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_adyen_gateways_adyen_gateway_id_200_response.go b/api/model_get_adyen_gateways_adyen_gateway_id_200_response.go index 6a703e77..fb83dad9 100644 --- a/api/model_get_adyen_gateways_adyen_gateway_id_200_response.go +++ b/api/model_get_adyen_gateways_adyen_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_adyen_gateways_adyen_gateway_id_200_response_data.go b/api/model_get_adyen_gateways_adyen_gateway_id_200_response_data.go index 5d9c1b4f..9f60378d 100644 --- a/api/model_get_adyen_gateways_adyen_gateway_id_200_response_data.go +++ b/api/model_get_adyen_gateways_adyen_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_adyen_gateways_adyen_gateway_id_200_response_data_attributes.go b/api/model_get_adyen_gateways_adyen_gateway_id_200_response_data_attributes.go index 164f99c8..794bc4bc 100644 --- a/api/model_get_adyen_gateways_adyen_gateway_id_200_response_data_attributes.go +++ b/api/model_get_adyen_gateways_adyen_gateway_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,14 +28,18 @@ type GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` // The prefix of the endpoint used for live transactions. LiveUrlPrefix interface{} `json:"live_url_prefix,omitempty"` - // Indicates if the gateway will leverage on the Adyen notification webhooks. + // The checkout API version, supported range is from 66 to 71, default is 71. + ApiVersion interface{} `json:"api_version,omitempty"` + // Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version. AsyncApi interface{} `json:"async_api,omitempty"` + // Indicates if the gateway will use the native customer payment sources. + NativeCustomerPaymentSources interface{} `json:"native_customer_payment_sources,omitempty"` // The gateway webhook endpoint secret, generated by Adyen customer area. WebhookEndpointSecret interface{} `json:"webhook_endpoint_secret,omitempty"` // The gateway webhook URL, generated automatically. @@ -290,6 +294,39 @@ func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) SetLiveUrlPref o.LiveUrlPrefix = v } +// GetApiVersion returns the ApiVersion field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) GetApiVersion() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ApiVersion +} + +// GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) GetApiVersionOk() (*interface{}, bool) { + if o == nil || IsNil(o.ApiVersion) { + return nil, false + } + return &o.ApiVersion, true +} + +// HasApiVersion returns a boolean if a field has been set. +func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) HasApiVersion() bool { + if o != nil && IsNil(o.ApiVersion) { + return true + } + + return false +} + +// SetApiVersion gets a reference to the given interface{} and assigns it to the ApiVersion field. +func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) SetApiVersion(v interface{}) { + o.ApiVersion = v +} + // GetAsyncApi returns the AsyncApi field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) GetAsyncApi() interface{} { if o == nil { @@ -323,6 +360,39 @@ func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) SetAsyncApi(v o.AsyncApi = v } +// GetNativeCustomerPaymentSources returns the NativeCustomerPaymentSources field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) GetNativeCustomerPaymentSources() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.NativeCustomerPaymentSources +} + +// GetNativeCustomerPaymentSourcesOk returns a tuple with the NativeCustomerPaymentSources field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) GetNativeCustomerPaymentSourcesOk() (*interface{}, bool) { + if o == nil || IsNil(o.NativeCustomerPaymentSources) { + return nil, false + } + return &o.NativeCustomerPaymentSources, true +} + +// HasNativeCustomerPaymentSources returns a boolean if a field has been set. +func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) HasNativeCustomerPaymentSources() bool { + if o != nil && IsNil(o.NativeCustomerPaymentSources) { + return true + } + + return false +} + +// SetNativeCustomerPaymentSources gets a reference to the given interface{} and assigns it to the NativeCustomerPaymentSources field. +func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) SetNativeCustomerPaymentSources(v interface{}) { + o.NativeCustomerPaymentSources = v +} + // GetWebhookEndpointSecret returns the WebhookEndpointSecret field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) GetWebhookEndpointSecret() interface{} { if o == nil { @@ -420,9 +490,15 @@ func (o GETAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) ToMap() (map[st if o.LiveUrlPrefix != nil { toSerialize["live_url_prefix"] = o.LiveUrlPrefix } + if o.ApiVersion != nil { + toSerialize["api_version"] = o.ApiVersion + } if o.AsyncApi != nil { toSerialize["async_api"] = o.AsyncApi } + if o.NativeCustomerPaymentSources != nil { + toSerialize["native_customer_payment_sources"] = o.NativeCustomerPaymentSources + } if o.WebhookEndpointSecret != nil { toSerialize["webhook_endpoint_secret"] = o.WebhookEndpointSecret } diff --git a/api/model_get_adyen_payments_200_response.go b/api/model_get_adyen_payments_200_response.go index 9bad6dfd..e84bcb8d 100644 --- a/api/model_get_adyen_payments_200_response.go +++ b/api/model_get_adyen_payments_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_adyen_payments_adyen_payment_id_200_response.go b/api/model_get_adyen_payments_adyen_payment_id_200_response.go index 73771fe1..fd4fbf9e 100644 --- a/api/model_get_adyen_payments_adyen_payment_id_200_response.go +++ b/api/model_get_adyen_payments_adyen_payment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_adyen_payments_adyen_payment_id_200_response_data.go b/api/model_get_adyen_payments_adyen_payment_id_200_response_data.go index 3a5b0db9..86deac18 100644 --- a/api/model_get_adyen_payments_adyen_payment_id_200_response_data.go +++ b/api/model_get_adyen_payments_adyen_payment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_adyen_payments_adyen_payment_id_200_response_data_attributes.go b/api/model_get_adyen_payments_adyen_payment_id_200_response_data_attributes.go index 5835ee2a..6c3ddad0 100644 --- a/api/model_get_adyen_payments_adyen_payment_id_200_response_data_attributes.go +++ b/api/model_get_adyen_payments_adyen_payment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -32,7 +32,7 @@ type GETAdyenPaymentsAdyenPaymentId200ResponseDataAttributes struct { PaymentResponse interface{} `json:"payment_response,omitempty"` // Indicates if the order current amount differs form the one of the associated authorization. MismatchedAmounts interface{} `json:"mismatched_amounts,omitempty"` - // Information about the payment instrument used in the transaction + // Information about the payment instrument used in the transaction. PaymentInstrument interface{} `json:"payment_instrument,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` @@ -40,7 +40,7 @@ type GETAdyenPaymentsAdyenPaymentId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_application_application_id_200_response.go b/api/model_get_application_application_id_200_response.go index 8cb74fa1..30113d64 100644 --- a/api/model_get_application_application_id_200_response.go +++ b/api/model_get_application_application_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_application_application_id_200_response_data.go b/api/model_get_application_application_id_200_response_data.go index fea2e37f..59316e91 100644 --- a/api/model_get_application_application_id_200_response_data.go +++ b/api/model_get_application_application_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_application_application_id_200_response_data_attributes.go b/api/model_get_application_application_id_200_response_data_attributes.go index 62358309..f3a33a05 100644 --- a/api/model_get_application_application_id_200_response_data_attributes.go +++ b/api/model_get_application_application_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -36,7 +36,7 @@ type GETApplicationApplicationId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_attachments_200_response.go b/api/model_get_attachments_200_response.go index ff33baa0..3790e5f0 100644 --- a/api/model_get_attachments_200_response.go +++ b/api/model_get_attachments_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_attachments_attachment_id_200_response.go b/api/model_get_attachments_attachment_id_200_response.go index 57fabff3..aababd90 100644 --- a/api/model_get_attachments_attachment_id_200_response.go +++ b/api/model_get_attachments_attachment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_attachments_attachment_id_200_response_data.go b/api/model_get_attachments_attachment_id_200_response_data.go index ae04d3cf..0917176a 100644 --- a/api/model_get_attachments_attachment_id_200_response_data.go +++ b/api/model_get_attachments_attachment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_attachments_attachment_id_200_response_data_attributes.go b/api/model_get_attachments_attachment_id_200_response_data_attributes.go index 132c11a6..f2ed216e 100644 --- a/api/model_get_attachments_attachment_id_200_response_data_attributes.go +++ b/api/model_get_attachments_attachment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -32,7 +32,7 @@ type GETAttachmentsAttachmentId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_authorizations_200_response.go b/api/model_get_authorizations_200_response.go index 5eea07b2..727812e8 100644 --- a/api/model_get_authorizations_200_response.go +++ b/api/model_get_authorizations_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_authorizations_authorization_id_200_response.go b/api/model_get_authorizations_authorization_id_200_response.go index 2b1b58d5..1e0352c5 100644 --- a/api/model_get_authorizations_authorization_id_200_response.go +++ b/api/model_get_authorizations_authorization_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_authorizations_authorization_id_200_response_data.go b/api/model_get_authorizations_authorization_id_200_response_data.go index 53764643..6f8a850c 100644 --- a/api/model_get_authorizations_authorization_id_200_response_data.go +++ b/api/model_get_authorizations_authorization_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_authorizations_authorization_id_200_response_data_attributes.go b/api/model_get_authorizations_authorization_id_200_response_data_attributes.go index 4ef52392..fc7aa703 100644 --- a/api/model_get_authorizations_authorization_id_200_response_data_attributes.go +++ b/api/model_get_authorizations_authorization_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,10 @@ var _ MappedNullable = &GETAuthorizationsAuthorizationId200ResponseDataAttribute // GETAuthorizationsAuthorizationId200ResponseDataAttributes struct for GETAuthorizationsAuthorizationId200ResponseDataAttributes type GETAuthorizationsAuthorizationId200ResponseDataAttributes struct { - // The transaction number, auto generated + // The transaction number, auto generated. Number interface{} `json:"number,omitempty"` + // The transaction's type. + Type interface{} `json:"type,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order. CurrencyCode interface{} `json:"currency_code,omitempty"` // The transaction amount, in cents. @@ -30,17 +32,17 @@ type GETAuthorizationsAuthorizationId200ResponseDataAttributes struct { AmountFloat interface{} `json:"amount_float,omitempty"` // The transaction amount, formatted. FormattedAmount interface{} `json:"formatted_amount,omitempty"` - // Indicates if the transaction is successful + // Indicates if the transaction is successful. Succeeded interface{} `json:"succeeded,omitempty"` - // The message returned by the payment gateway + // The message returned by the payment gateway. Message interface{} `json:"message,omitempty"` - // The error code, if any, returned by the payment gateway + // The error code, if any, returned by the payment gateway. ErrorCode interface{} `json:"error_code,omitempty"` - // The error detail, if any, returned by the payment gateway + // The error detail, if any, returned by the payment gateway. ErrorDetail interface{} `json:"error_detail,omitempty"` - // The token identifying the transaction, returned by the payment gateway + // The token identifying the transaction, returned by the payment gateway. Token interface{} `json:"token,omitempty"` - // The ID identifying the transaction, returned by the payment gateway + // The ID identifying the transaction, returned by the payment gateway. GatewayTransactionId interface{} `json:"gateway_transaction_id,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` @@ -48,19 +50,19 @@ type GETAuthorizationsAuthorizationId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` - // The CVV code returned by the payment gateway + // The CVV code returned by the payment gateway. CvvCode interface{} `json:"cvv_code,omitempty"` - // The CVV message returned by the payment gateway + // The CVV message returned by the payment gateway. CvvMessage interface{} `json:"cvv_message,omitempty"` - // The AVS code returned by the payment gateway + // The AVS code returned by the payment gateway. AvsCode interface{} `json:"avs_code,omitempty"` - // The AVS message returned by the payment gateway + // The AVS message returned by the payment gateway. AvsMessage interface{} `json:"avs_message,omitempty"` - // The fraud review message, if any, returned by the payment gateway + // The fraud review message, if any, returned by the payment gateway. FraudReview interface{} `json:"fraud_review,omitempty"` // The amount to be captured, in cents. CaptureAmountCents interface{} `json:"capture_amount_cents,omitempty"` @@ -132,6 +134,39 @@ func (o *GETAuthorizationsAuthorizationId200ResponseDataAttributes) SetNumber(v o.Number = v } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETAuthorizationsAuthorizationId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETAuthorizationsAuthorizationId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETAuthorizationsAuthorizationId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETAuthorizationsAuthorizationId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETAuthorizationsAuthorizationId200ResponseDataAttributes) GetCurrencyCode() interface{} { if o == nil { @@ -1102,6 +1137,9 @@ func (o GETAuthorizationsAuthorizationId200ResponseDataAttributes) ToMap() (map[ if o.Number != nil { toSerialize["number"] = o.Number } + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } diff --git a/api/model_get_authorizations_authorization_id_200_response_data_relationships.go b/api/model_get_authorizations_authorization_id_200_response_data_relationships.go index 41833444..9bee1e44 100644 --- a/api/model_get_authorizations_authorization_id_200_response_data_relationships.go +++ b/api/model_get_authorizations_authorization_id_200_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,10 +20,12 @@ var _ MappedNullable = &GETAuthorizationsAuthorizationId200ResponseDataRelations // GETAuthorizationsAuthorizationId200ResponseDataRelationships struct for GETAuthorizationsAuthorizationId200ResponseDataRelationships type GETAuthorizationsAuthorizationId200ResponseDataRelationships struct { - Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` - Captures *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsCaptures `json:"captures,omitempty"` - Voids *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsVoids `json:"voids,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` + Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` + Captures *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsCaptures `json:"captures,omitempty"` + Voids *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsVoids `json:"voids,omitempty"` } // NewGETAuthorizationsAuthorizationId200ResponseDataRelationships instantiates a new GETAuthorizationsAuthorizationId200ResponseDataRelationships object @@ -75,6 +77,102 @@ func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) SetOrder( o.Order = &v } +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { + o.Attachments = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + // GetCaptures returns the Captures field value if set, zero value otherwise. func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) GetCaptures() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsCaptures { if o == nil || IsNil(o.Captures) { @@ -139,38 +237,6 @@ func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) SetVoids( o.Voids = &v } -// GetEvents returns the Events field value if set, zero value otherwise. -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { - if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents - return ret - } - return *o.Events -} - -// GetEventsOk returns a tuple with the Events field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { - if o == nil || IsNil(o.Events) { - return nil, false - } - return o.Events, true -} - -// HasEvents returns a boolean if a field has been set. -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) HasEvents() bool { - if o != nil && !IsNil(o.Events) { - return true - } - - return false -} - -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { - o.Events = &v -} - func (o GETAuthorizationsAuthorizationId200ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -184,15 +250,21 @@ func (o GETAuthorizationsAuthorizationId200ResponseDataRelationships) ToMap() (m if !IsNil(o.Order) { toSerialize["order"] = o.Order } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.Captures) { toSerialize["captures"] = o.Captures } if !IsNil(o.Voids) { toSerialize["voids"] = o.Voids } - if !IsNil(o.Events) { - toSerialize["events"] = o.Events - } return toSerialize, nil } diff --git a/api/model_get_authorizations_authorization_id_200_response_data_relationships_events.go b/api/model_get_authorizations_authorization_id_200_response_data_relationships_attachments.go similarity index 64% rename from api/model_get_authorizations_authorization_id_200_response_data_relationships_events.go rename to api/model_get_authorizations_authorization_id_200_response_data_relationships_attachments.go index 7caaef63..13568b96 100644 --- a/api/model_get_authorizations_authorization_id_200_response_data_relationships_events.go +++ b/api/model_get_authorizations_authorization_id_200_response_data_relationships_attachments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,34 +15,34 @@ import ( "encoding/json" ) -// checks if the GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents{} +// checks if the GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments{} -// GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents struct for GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents -type GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents struct { - Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` - Data *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData `json:"data,omitempty"` +// GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments struct for GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments +type GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData `json:"data,omitempty"` } -// NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents instantiates a new GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents object +// NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments instantiates a new GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { - this := GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents{} +func NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { + this := GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments{} return &this } -// NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsWithDefaults instantiates a new GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents object +// NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsWithDefaults instantiates a new GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsWithDefaults() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { - this := GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents{} +func NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsWithDefaults() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { + this := GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments{} return &this } // GetLinks returns the Links field value if set, zero value otherwise. -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { if o == nil || IsNil(o.Links) { var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks return ret @@ -52,7 +52,7 @@ func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) Get // GetLinksOk returns a tuple with the Links field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { if o == nil || IsNil(o.Links) { return nil, false } @@ -60,7 +60,7 @@ func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) Get } // HasLinks returns a boolean if a field has been set. -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) HasLinks() bool { +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) HasLinks() bool { if o != nil && !IsNil(o.Links) { return true } @@ -69,14 +69,14 @@ func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) Has } // SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { o.Links = &v } // GetData returns the Data field value if set, zero value otherwise. -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) GetData() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData { +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) GetData() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData { if o == nil || IsNil(o.Data) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData return ret } return *o.Data @@ -84,7 +84,7 @@ func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) Get // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) GetDataOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData, bool) { +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) GetDataOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -92,7 +92,7 @@ func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) Get } // HasData returns a boolean if a field has been set. -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) HasData() bool { +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) HasData() bool { if o != nil && !IsNil(o.Data) { return true } @@ -100,12 +100,12 @@ func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) Has return false } -// SetData gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData and assigns it to the Data field. -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) SetData(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) { +// SetData gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData and assigns it to the Data field. +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) SetData(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) { o.Data = &v } -func (o GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) MarshalJSON() ([]byte, error) { +func (o GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -113,7 +113,7 @@ func (o GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) Mars return json.Marshal(toSerialize) } -func (o GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) ToMap() (map[string]interface{}, error) { +func (o GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Links) { toSerialize["links"] = o.Links @@ -124,38 +124,38 @@ func (o GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) ToMa return toSerialize, nil } -type NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents struct { - value *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents +type NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments struct { + value *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments isSet bool } -func (v NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) Get() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { +func (v NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) Get() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { return v.value } -func (v *NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) Set(val *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { +func (v *NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) Set(val *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { v.value = val v.isSet = true } -func (v NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) IsSet() bool { +func (v NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) IsSet() bool { return v.isSet } -func (v *NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) Unset() { +func (v *NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) Unset() { v.value = nil v.isSet = false } -func NewNullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents(val *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) *NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { - return &NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents{value: val, isSet: true} +func NewNullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments(val *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) *NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { + return &NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments{value: val, isSet: true} } -func (v NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) MarshalJSON() ([]byte, error) { +func (v NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) UnmarshalJSON(src []byte) error { +func (v *NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_get_authorizations_authorization_id_200_response_data_relationships_events_data.go b/api/model_get_authorizations_authorization_id_200_response_data_relationships_attachments_data.go similarity index 68% rename from api/model_get_authorizations_authorization_id_200_response_data_relationships_events_data.go rename to api/model_get_authorizations_authorization_id_200_response_data_relationships_attachments_data.go index a8ee8480..f047b96b 100644 --- a/api/model_get_authorizations_authorization_id_200_response_data_relationships_events_data.go +++ b/api/model_get_authorizations_authorization_id_200_response_data_relationships_attachments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData{} +// checks if the GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData{} -// GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData struct for GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData -type GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData struct { +// GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData struct for GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData +type GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource ID Id interface{} `json:"id,omitempty"` } -// NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData instantiates a new GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData object +// NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData instantiates a new GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData { - this := GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData{} +func NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData { + this := GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData{} return &this } -// NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsDataWithDefaults instantiates a new GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData object +// NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsDataWithDefaults instantiates a new GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsDataWithDefaults() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData { - this := GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData{} +func NewGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsDataWithDefaults() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData { + this := GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) GetType() interface{} { +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) GetTypeOk() (*interface{}, bool) { +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) } // HasType returns a boolean if a field has been set. -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) HasType() bool { +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) SetType(v interface{}) { +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) GetId() interface{} { +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) GetIdOk() (*interface{}, bool) { +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) } // HasId returns a boolean if a field has been set. -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) HasId() bool { +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) SetId(v interface{}) { +func (o *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) SetId(v interface{}) { o.Id = v } -func (o GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) MarshalJSON() ([]byte, error) { +func (o GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) return json.Marshal(toSerialize) } -func (o GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) ToMap() (map[string]interface{}, error) { +func (o GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) return toSerialize, nil } -type NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData struct { - value *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData +type NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData struct { + value *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData isSet bool } -func (v NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) Get() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData { +func (v NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) Get() *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData { return v.value } -func (v *NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) Set(val *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) { +func (v *NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) Set(val *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) { v.value = val v.isSet = true } -func (v NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) IsSet() bool { +func (v NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) IsSet() bool { return v.isSet } -func (v *NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) Unset() { +func (v *NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) Unset() { v.value = nil v.isSet = false } -func NewNullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData(val *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) *NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData { - return &NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData{value: val, isSet: true} +func NewNullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData(val *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) *NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData { + return &NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData{value: val, isSet: true} } -func (v NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) MarshalJSON() ([]byte, error) { +func (v NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsEventsData) UnmarshalJSON(src []byte) error { +func (v *NullableGETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachmentsData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_get_authorizations_authorization_id_200_response_data_relationships_captures.go b/api/model_get_authorizations_authorization_id_200_response_data_relationships_captures.go index cd401520..8f4e2287 100644 --- a/api/model_get_authorizations_authorization_id_200_response_data_relationships_captures.go +++ b/api/model_get_authorizations_authorization_id_200_response_data_relationships_captures.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_authorizations_authorization_id_200_response_data_relationships_captures_data.go b/api/model_get_authorizations_authorization_id_200_response_data_relationships_captures_data.go index b2dd5d66..dbb8361a 100644 --- a/api/model_get_authorizations_authorization_id_200_response_data_relationships_captures_data.go +++ b/api/model_get_authorizations_authorization_id_200_response_data_relationships_captures_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_authorizations_authorization_id_200_response_data_relationships_voids.go b/api/model_get_authorizations_authorization_id_200_response_data_relationships_voids.go index 56b60cb9..091ab900 100644 --- a/api/model_get_authorizations_authorization_id_200_response_data_relationships_voids.go +++ b/api/model_get_authorizations_authorization_id_200_response_data_relationships_voids.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_authorizations_authorization_id_200_response_data_relationships_voids_data.go b/api/model_get_authorizations_authorization_id_200_response_data_relationships_voids_data.go index fdcb83b9..ebbed21d 100644 --- a/api/model_get_authorizations_authorization_id_200_response_data_relationships_voids_data.go +++ b/api/model_get_authorizations_authorization_id_200_response_data_relationships_voids_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_avalara_accounts_200_response.go b/api/model_get_avalara_accounts_200_response.go index 84c1ced5..a3628964 100644 --- a/api/model_get_avalara_accounts_200_response.go +++ b/api/model_get_avalara_accounts_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_avalara_accounts_avalara_account_id_200_response.go b/api/model_get_avalara_accounts_avalara_account_id_200_response.go index 3b3f355c..6ffee4aa 100644 --- a/api/model_get_avalara_accounts_avalara_account_id_200_response.go +++ b/api/model_get_avalara_accounts_avalara_account_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_avalara_accounts_avalara_account_id_200_response_data.go b/api/model_get_avalara_accounts_avalara_account_id_200_response_data.go index 6d649e1c..e49ca9ef 100644 --- a/api/model_get_avalara_accounts_avalara_account_id_200_response_data.go +++ b/api/model_get_avalara_accounts_avalara_account_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_avalara_accounts_avalara_account_id_200_response_data_attributes.go b/api/model_get_avalara_accounts_avalara_account_id_200_response_data_attributes.go index 42a64249..d1b6b6a8 100644 --- a/api/model_get_avalara_accounts_avalara_account_id_200_response_data_attributes.go +++ b/api/model_get_avalara_accounts_avalara_account_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,13 +22,15 @@ var _ MappedNullable = &GETAvalaraAccountsAvalaraAccountId200ResponseDataAttribu type GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes struct { // The tax calculator's internal name. Name interface{} `json:"name,omitempty"` + // The tax calculator's type. + Type interface{} `json:"type,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -92,6 +94,39 @@ func (o *GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes) SetName(v o.Name = v } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -402,6 +437,9 @@ func (o GETAvalaraAccountsAvalaraAccountId200ResponseDataAttributes) ToMap() (ma if o.Name != nil { toSerialize["name"] = o.Name } + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_axerve_gateways_200_response.go b/api/model_get_axerve_gateways_200_response.go index a3ea513d..22127303 100644 --- a/api/model_get_axerve_gateways_200_response.go +++ b/api/model_get_axerve_gateways_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_axerve_gateways_axerve_gateway_id_200_response.go b/api/model_get_axerve_gateways_axerve_gateway_id_200_response.go index 1d6f3ba0..d820af00 100644 --- a/api/model_get_axerve_gateways_axerve_gateway_id_200_response.go +++ b/api/model_get_axerve_gateways_axerve_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_axerve_gateways_axerve_gateway_id_200_response_data.go b/api/model_get_axerve_gateways_axerve_gateway_id_200_response_data.go index a18f5bf0..894cb500 100644 --- a/api/model_get_axerve_gateways_axerve_gateway_id_200_response_data.go +++ b/api/model_get_axerve_gateways_axerve_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_axerve_gateways_axerve_gateway_id_200_response_data_attributes.go b/api/model_get_axerve_gateways_axerve_gateway_id_200_response_data_attributes.go index 8d01cbd9..9ad86eca 100644 --- a/api/model_get_axerve_gateways_axerve_gateway_id_200_response_data_attributes.go +++ b/api/model_get_axerve_gateways_axerve_gateway_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,12 +28,14 @@ type GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` // The merchant login code. Login interface{} `json:"login,omitempty"` + // The gateway webhook URL, generated automatically. + WebhookEndpointUrl interface{} `json:"webhook_endpoint_url,omitempty"` } // NewGETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes instantiates a new GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes object @@ -284,6 +286,39 @@ func (o *GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes) SetLogin(v i o.Login = v } +// GetWebhookEndpointUrl returns the WebhookEndpointUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes) GetWebhookEndpointUrl() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.WebhookEndpointUrl +} + +// GetWebhookEndpointUrlOk returns a tuple with the WebhookEndpointUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes) GetWebhookEndpointUrlOk() (*interface{}, bool) { + if o == nil || IsNil(o.WebhookEndpointUrl) { + return nil, false + } + return &o.WebhookEndpointUrl, true +} + +// HasWebhookEndpointUrl returns a boolean if a field has been set. +func (o *GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes) HasWebhookEndpointUrl() bool { + if o != nil && IsNil(o.WebhookEndpointUrl) { + return true + } + + return false +} + +// SetWebhookEndpointUrl gets a reference to the given interface{} and assigns it to the WebhookEndpointUrl field. +func (o *GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes) SetWebhookEndpointUrl(v interface{}) { + o.WebhookEndpointUrl = v +} + func (o GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -315,6 +350,9 @@ func (o GETAxerveGatewaysAxerveGatewayId200ResponseDataAttributes) ToMap() (map[ if o.Login != nil { toSerialize["login"] = o.Login } + if o.WebhookEndpointUrl != nil { + toSerialize["webhook_endpoint_url"] = o.WebhookEndpointUrl + } return toSerialize, nil } diff --git a/api/model_get_axerve_payments_200_response.go b/api/model_get_axerve_payments_200_response.go index db8c0c7c..72ac27f5 100644 --- a/api/model_get_axerve_payments_200_response.go +++ b/api/model_get_axerve_payments_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_axerve_payments_axerve_payment_id_200_response.go b/api/model_get_axerve_payments_axerve_payment_id_200_response.go index 7124161b..ef9b215b 100644 --- a/api/model_get_axerve_payments_axerve_payment_id_200_response.go +++ b/api/model_get_axerve_payments_axerve_payment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_axerve_payments_axerve_payment_id_200_response_data.go b/api/model_get_axerve_payments_axerve_payment_id_200_response_data.go index d8d709ba..45489dcc 100644 --- a/api/model_get_axerve_payments_axerve_payment_id_200_response_data.go +++ b/api/model_get_axerve_payments_axerve_payment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_axerve_payments_axerve_payment_id_200_response_data_attributes.go b/api/model_get_axerve_payments_axerve_payment_id_200_response_data_attributes.go index 2cc48c44..11538e91 100644 --- a/api/model_get_axerve_payments_axerve_payment_id_200_response_data_attributes.go +++ b/api/model_get_axerve_payments_axerve_payment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,15 +26,15 @@ type GETAxervePaymentsAxervePaymentId200ResponseDataAttributes struct { ReturnUrl interface{} `json:"return_url,omitempty"` // The Axerve payment request data, collected by client. PaymentRequestData interface{} `json:"payment_request_data,omitempty"` + // The IP adress of the client creating the payment. + ClientIp interface{} `json:"client_ip,omitempty"` + // The details of the buyer creating the payment. + BuyerDetails interface{} `json:"buyer_details,omitempty"` + // Requires the creation of a token to represent this payment, mandatory to use customer's wallet and order subscriptions. + RequestToken interface{} `json:"request_token,omitempty"` // Indicates if the order current amount differs form the one of the associated authorization. MismatchedAmounts interface{} `json:"mismatched_amounts,omitempty"` - // The amount of the associated payment intent, in cents. - IntentAmountCents interface{} `json:"intent_amount_cents,omitempty"` - // The amount of the associated payment intent, float. - IntentAmountFloat interface{} `json:"intent_amount_float,omitempty"` - // The amount of the associated payment intent, formatted. - FormattedIntentAmount interface{} `json:"formatted_intent_amount,omitempty"` - // Information about the payment instrument used in the transaction + // Information about the payment instrument used in the transaction. PaymentInstrument interface{} `json:"payment_instrument,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` @@ -42,7 +42,7 @@ type GETAxervePaymentsAxervePaymentId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -164,136 +164,136 @@ func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetPaymentRe o.PaymentRequestData = v } -// GetMismatchedAmounts returns the MismatchedAmounts field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetMismatchedAmounts() interface{} { +// GetClientIp returns the ClientIp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetClientIp() interface{} { if o == nil { var ret interface{} return ret } - return o.MismatchedAmounts + return o.ClientIp } -// GetMismatchedAmountsOk returns a tuple with the MismatchedAmounts field value if set, nil otherwise +// GetClientIpOk returns a tuple with the ClientIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetMismatchedAmountsOk() (*interface{}, bool) { - if o == nil || IsNil(o.MismatchedAmounts) { +func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetClientIpOk() (*interface{}, bool) { + if o == nil || IsNil(o.ClientIp) { return nil, false } - return &o.MismatchedAmounts, true + return &o.ClientIp, true } -// HasMismatchedAmounts returns a boolean if a field has been set. -func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) HasMismatchedAmounts() bool { - if o != nil && IsNil(o.MismatchedAmounts) { +// HasClientIp returns a boolean if a field has been set. +func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) HasClientIp() bool { + if o != nil && IsNil(o.ClientIp) { return true } return false } -// SetMismatchedAmounts gets a reference to the given interface{} and assigns it to the MismatchedAmounts field. -func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetMismatchedAmounts(v interface{}) { - o.MismatchedAmounts = v +// SetClientIp gets a reference to the given interface{} and assigns it to the ClientIp field. +func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetClientIp(v interface{}) { + o.ClientIp = v } -// GetIntentAmountCents returns the IntentAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetIntentAmountCents() interface{} { +// GetBuyerDetails returns the BuyerDetails field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetBuyerDetails() interface{} { if o == nil { var ret interface{} return ret } - return o.IntentAmountCents + return o.BuyerDetails } -// GetIntentAmountCentsOk returns a tuple with the IntentAmountCents field value if set, nil otherwise +// GetBuyerDetailsOk returns a tuple with the BuyerDetails field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetIntentAmountCentsOk() (*interface{}, bool) { - if o == nil || IsNil(o.IntentAmountCents) { +func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetBuyerDetailsOk() (*interface{}, bool) { + if o == nil || IsNil(o.BuyerDetails) { return nil, false } - return &o.IntentAmountCents, true + return &o.BuyerDetails, true } -// HasIntentAmountCents returns a boolean if a field has been set. -func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) HasIntentAmountCents() bool { - if o != nil && IsNil(o.IntentAmountCents) { +// HasBuyerDetails returns a boolean if a field has been set. +func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) HasBuyerDetails() bool { + if o != nil && IsNil(o.BuyerDetails) { return true } return false } -// SetIntentAmountCents gets a reference to the given interface{} and assigns it to the IntentAmountCents field. -func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetIntentAmountCents(v interface{}) { - o.IntentAmountCents = v +// SetBuyerDetails gets a reference to the given interface{} and assigns it to the BuyerDetails field. +func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetBuyerDetails(v interface{}) { + o.BuyerDetails = v } -// GetIntentAmountFloat returns the IntentAmountFloat field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetIntentAmountFloat() interface{} { +// GetRequestToken returns the RequestToken field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetRequestToken() interface{} { if o == nil { var ret interface{} return ret } - return o.IntentAmountFloat + return o.RequestToken } -// GetIntentAmountFloatOk returns a tuple with the IntentAmountFloat field value if set, nil otherwise +// GetRequestTokenOk returns a tuple with the RequestToken field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetIntentAmountFloatOk() (*interface{}, bool) { - if o == nil || IsNil(o.IntentAmountFloat) { +func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetRequestTokenOk() (*interface{}, bool) { + if o == nil || IsNil(o.RequestToken) { return nil, false } - return &o.IntentAmountFloat, true + return &o.RequestToken, true } -// HasIntentAmountFloat returns a boolean if a field has been set. -func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) HasIntentAmountFloat() bool { - if o != nil && IsNil(o.IntentAmountFloat) { +// HasRequestToken returns a boolean if a field has been set. +func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) HasRequestToken() bool { + if o != nil && IsNil(o.RequestToken) { return true } return false } -// SetIntentAmountFloat gets a reference to the given interface{} and assigns it to the IntentAmountFloat field. -func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetIntentAmountFloat(v interface{}) { - o.IntentAmountFloat = v +// SetRequestToken gets a reference to the given interface{} and assigns it to the RequestToken field. +func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetRequestToken(v interface{}) { + o.RequestToken = v } -// GetFormattedIntentAmount returns the FormattedIntentAmount field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetFormattedIntentAmount() interface{} { +// GetMismatchedAmounts returns the MismatchedAmounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetMismatchedAmounts() interface{} { if o == nil { var ret interface{} return ret } - return o.FormattedIntentAmount + return o.MismatchedAmounts } -// GetFormattedIntentAmountOk returns a tuple with the FormattedIntentAmount field value if set, nil otherwise +// GetMismatchedAmountsOk returns a tuple with the MismatchedAmounts field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetFormattedIntentAmountOk() (*interface{}, bool) { - if o == nil || IsNil(o.FormattedIntentAmount) { +func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) GetMismatchedAmountsOk() (*interface{}, bool) { + if o == nil || IsNil(o.MismatchedAmounts) { return nil, false } - return &o.FormattedIntentAmount, true + return &o.MismatchedAmounts, true } -// HasFormattedIntentAmount returns a boolean if a field has been set. -func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) HasFormattedIntentAmount() bool { - if o != nil && IsNil(o.FormattedIntentAmount) { +// HasMismatchedAmounts returns a boolean if a field has been set. +func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) HasMismatchedAmounts() bool { + if o != nil && IsNil(o.MismatchedAmounts) { return true } return false } -// SetFormattedIntentAmount gets a reference to the given interface{} and assigns it to the FormattedIntentAmount field. -func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetFormattedIntentAmount(v interface{}) { - o.FormattedIntentAmount = v +// SetMismatchedAmounts gets a reference to the given interface{} and assigns it to the MismatchedAmounts field. +func (o *GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) SetMismatchedAmounts(v interface{}) { + o.MismatchedAmounts = v } // GetPaymentInstrument returns the PaymentInstrument field value if set, zero value otherwise (both if not set or set to explicit null). @@ -513,17 +513,17 @@ func (o GETAxervePaymentsAxervePaymentId200ResponseDataAttributes) ToMap() (map[ if o.PaymentRequestData != nil { toSerialize["payment_request_data"] = o.PaymentRequestData } - if o.MismatchedAmounts != nil { - toSerialize["mismatched_amounts"] = o.MismatchedAmounts + if o.ClientIp != nil { + toSerialize["client_ip"] = o.ClientIp } - if o.IntentAmountCents != nil { - toSerialize["intent_amount_cents"] = o.IntentAmountCents + if o.BuyerDetails != nil { + toSerialize["buyer_details"] = o.BuyerDetails } - if o.IntentAmountFloat != nil { - toSerialize["intent_amount_float"] = o.IntentAmountFloat + if o.RequestToken != nil { + toSerialize["request_token"] = o.RequestToken } - if o.FormattedIntentAmount != nil { - toSerialize["formatted_intent_amount"] = o.FormattedIntentAmount + if o.MismatchedAmounts != nil { + toSerialize["mismatched_amounts"] = o.MismatchedAmounts } if o.PaymentInstrument != nil { toSerialize["payment_instrument"] = o.PaymentInstrument diff --git a/api/model_get_billing_info_validation_rules_200_response.go b/api/model_get_billing_info_validation_rules_200_response.go index 5f1d9b3c..0eb3a4b0 100644 --- a/api/model_get_billing_info_validation_rules_200_response.go +++ b/api/model_get_billing_info_validation_rules_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_billing_info_validation_rules_billing_info_validation_rule_id_200_response.go b/api/model_get_billing_info_validation_rules_billing_info_validation_rule_id_200_response.go index da7e8277..15f69966 100644 --- a/api/model_get_billing_info_validation_rules_billing_info_validation_rule_id_200_response.go +++ b/api/model_get_billing_info_validation_rules_billing_info_validation_rule_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_billing_info_validation_rules_billing_info_validation_rule_id_200_response_data.go b/api/model_get_billing_info_validation_rules_billing_info_validation_rule_id_200_response_data.go index 643dfe27..9a3c1687 100644 --- a/api/model_get_billing_info_validation_rules_billing_info_validation_rule_id_200_response_data.go +++ b/api/model_get_billing_info_validation_rules_billing_info_validation_rule_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_billing_info_validation_rules_billing_info_validation_rule_id_200_response_data_attributes.go b/api/model_get_billing_info_validation_rules_billing_info_validation_rule_id_200_response_data_attributes.go index 285fcb8f..117b9278 100644 --- a/api/model_get_billing_info_validation_rules_billing_info_validation_rule_id_200_response_data_attributes.go +++ b/api/model_get_billing_info_validation_rules_billing_info_validation_rule_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,13 +20,15 @@ var _ MappedNullable = &GETBillingInfoValidationRulesBillingInfoValidationRuleId // GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes struct for GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes type GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes struct { + // The order validation rule's type. + Type interface{} `json:"type,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -49,6 +51,39 @@ func NewGETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataA return &this } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -224,6 +259,9 @@ func (o GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataA func (o GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_bing_geocoders_200_response.go b/api/model_get_bing_geocoders_200_response.go index 9da9fdb0..1544f80c 100644 --- a/api/model_get_bing_geocoders_200_response.go +++ b/api/model_get_bing_geocoders_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_bing_geocoders_bing_geocoder_id_200_response.go b/api/model_get_bing_geocoders_bing_geocoder_id_200_response.go index 736e0537..a6d7233e 100644 --- a/api/model_get_bing_geocoders_bing_geocoder_id_200_response.go +++ b/api/model_get_bing_geocoders_bing_geocoder_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_bing_geocoders_bing_geocoder_id_200_response_data.go b/api/model_get_bing_geocoders_bing_geocoder_id_200_response_data.go index 3f53387e..cca93298 100644 --- a/api/model_get_bing_geocoders_bing_geocoder_id_200_response_data.go +++ b/api/model_get_bing_geocoders_bing_geocoder_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_bing_geocoders_bing_geocoder_id_200_response_data_attributes.go b/api/model_get_bing_geocoders_bing_geocoder_id_200_response_data_attributes.go index bcb96b75..a17902ba 100644 --- a/api/model_get_bing_geocoders_bing_geocoder_id_200_response_data_attributes.go +++ b/api/model_get_bing_geocoders_bing_geocoder_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,15 +20,17 @@ var _ MappedNullable = &GETBingGeocodersBingGeocoderId200ResponseDataAttributes{ // GETBingGeocodersBingGeocoderId200ResponseDataAttributes struct for GETBingGeocodersBingGeocoderId200ResponseDataAttributes type GETBingGeocodersBingGeocoderId200ResponseDataAttributes struct { - // The geocoder's internal name + // The geocoder's internal name. Name interface{} `json:"name,omitempty"` + // The geocoder's type. + Type interface{} `json:"type,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -84,6 +86,39 @@ func (o *GETBingGeocodersBingGeocoderId200ResponseDataAttributes) SetName(v inte o.Name = v } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBingGeocodersBingGeocoderId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBingGeocodersBingGeocoderId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETBingGeocodersBingGeocoderId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETBingGeocodersBingGeocoderId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETBingGeocodersBingGeocoderId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -262,6 +297,9 @@ func (o GETBingGeocodersBingGeocoderId200ResponseDataAttributes) ToMap() (map[st if o.Name != nil { toSerialize["name"] = o.Name } + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_braintree_gateways_200_response.go b/api/model_get_braintree_gateways_200_response.go index b11444a8..a3501136 100644 --- a/api/model_get_braintree_gateways_200_response.go +++ b/api/model_get_braintree_gateways_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_braintree_gateways_braintree_gateway_id_200_response.go b/api/model_get_braintree_gateways_braintree_gateway_id_200_response.go index d545c57d..38570222 100644 --- a/api/model_get_braintree_gateways_braintree_gateway_id_200_response.go +++ b/api/model_get_braintree_gateways_braintree_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_braintree_gateways_braintree_gateway_id_200_response_data.go b/api/model_get_braintree_gateways_braintree_gateway_id_200_response_data.go index 2fd7a0c1..4fe8fe89 100644 --- a/api/model_get_braintree_gateways_braintree_gateway_id_200_response_data.go +++ b/api/model_get_braintree_gateways_braintree_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_braintree_gateways_braintree_gateway_id_200_response_data_attributes.go b/api/model_get_braintree_gateways_braintree_gateway_id_200_response_data_attributes.go index 782fd487..f9066f7d 100644 --- a/api/model_get_braintree_gateways_braintree_gateway_id_200_response_data_attributes.go +++ b/api/model_get_braintree_gateways_braintree_gateway_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,7 +28,7 @@ type GETBraintreeGatewaysBraintreeGatewayId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_braintree_payments_200_response.go b/api/model_get_braintree_payments_200_response.go index 1bcd4369..618b7cc8 100644 --- a/api/model_get_braintree_payments_200_response.go +++ b/api/model_get_braintree_payments_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_braintree_payments_braintree_payment_id_200_response.go b/api/model_get_braintree_payments_braintree_payment_id_200_response.go index 6a503081..2acabeba 100644 --- a/api/model_get_braintree_payments_braintree_payment_id_200_response.go +++ b/api/model_get_braintree_payments_braintree_payment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_braintree_payments_braintree_payment_id_200_response_data.go b/api/model_get_braintree_payments_braintree_payment_id_200_response_data.go index e1f774b8..bc292b49 100644 --- a/api/model_get_braintree_payments_braintree_payment_id_200_response_data.go +++ b/api/model_get_braintree_payments_braintree_payment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_braintree_payments_braintree_payment_id_200_response_data_attributes.go b/api/model_get_braintree_payments_braintree_payment_id_200_response_data_attributes.go index 1d7de2e0..d8ac938f 100644 --- a/api/model_get_braintree_payments_braintree_payment_id_200_response_data_attributes.go +++ b/api/model_get_braintree_payments_braintree_payment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,9 +28,9 @@ type GETBraintreePaymentsBraintreePaymentId200ResponseDataAttributes struct { PaymentId interface{} `json:"payment_id,omitempty"` // Indicates if the payment is local, in such case Braintree will trigger a webhook call passing the \"payment_id\" and \"payment_method_nonce\" in order to complete the transaction. Local interface{} `json:"local,omitempty"` - // Braintree payment options: 'customer_id' and 'payment_method_token' + // Braintree payment options, 'customer_id' and 'payment_method_token'. Options interface{} `json:"options,omitempty"` - // Information about the payment instrument used in the transaction + // Information about the payment instrument used in the transaction. PaymentInstrument interface{} `json:"payment_instrument,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` @@ -38,7 +38,7 @@ type GETBraintreePaymentsBraintreePaymentId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_bundles_200_response.go b/api/model_get_bundles_200_response.go index 9b5fb023..59197a83 100644 --- a/api/model_get_bundles_200_response.go +++ b/api/model_get_bundles_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_bundles_bundle_id_200_response.go b/api/model_get_bundles_bundle_id_200_response.go index 5c7d6ad6..244eb5a0 100644 --- a/api/model_get_bundles_bundle_id_200_response.go +++ b/api/model_get_bundles_bundle_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_bundles_bundle_id_200_response_data.go b/api/model_get_bundles_bundle_id_200_response_data.go index d06fb96c..d1c4d669 100644 --- a/api/model_get_bundles_bundle_id_200_response_data.go +++ b/api/model_get_bundles_bundle_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_bundles_bundle_id_200_response_data_attributes.go b/api/model_get_bundles_bundle_id_200_response_data_attributes.go index 026edad0..4e82a0d2 100644 --- a/api/model_get_bundles_bundle_id_200_response_data_attributes.go +++ b/api/model_get_bundles_bundle_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -54,7 +54,7 @@ type GETBundlesBundleId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_buy_x_pay_y_promotions_200_response.go b/api/model_get_buy_x_pay_y_promotions_200_response.go new file mode 100644 index 00000000..b7ba4ba5 --- /dev/null +++ b/api/model_get_buy_x_pay_y_promotions_200_response.go @@ -0,0 +1,126 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETBuyXPayYPromotions200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETBuyXPayYPromotions200Response{} + +// GETBuyXPayYPromotions200Response struct for GETBuyXPayYPromotions200Response +type GETBuyXPayYPromotions200Response struct { + Data interface{} `json:"data,omitempty"` +} + +// NewGETBuyXPayYPromotions200Response instantiates a new GETBuyXPayYPromotions200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETBuyXPayYPromotions200Response() *GETBuyXPayYPromotions200Response { + this := GETBuyXPayYPromotions200Response{} + return &this +} + +// NewGETBuyXPayYPromotions200ResponseWithDefaults instantiates a new GETBuyXPayYPromotions200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETBuyXPayYPromotions200ResponseWithDefaults() *GETBuyXPayYPromotions200Response { + this := GETBuyXPayYPromotions200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotions200Response) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotions200Response) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotions200Response) HasData() bool { + if o != nil && IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given interface{} and assigns it to the Data field. +func (o *GETBuyXPayYPromotions200Response) SetData(v interface{}) { + o.Data = v +} + +func (o GETBuyXPayYPromotions200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETBuyXPayYPromotions200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETBuyXPayYPromotions200Response struct { + value *GETBuyXPayYPromotions200Response + isSet bool +} + +func (v NullableGETBuyXPayYPromotions200Response) Get() *GETBuyXPayYPromotions200Response { + return v.value +} + +func (v *NullableGETBuyXPayYPromotions200Response) Set(val *GETBuyXPayYPromotions200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETBuyXPayYPromotions200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETBuyXPayYPromotions200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETBuyXPayYPromotions200Response(val *GETBuyXPayYPromotions200Response) *NullableGETBuyXPayYPromotions200Response { + return &NullableGETBuyXPayYPromotions200Response{value: val, isSet: true} +} + +func (v NullableGETBuyXPayYPromotions200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETBuyXPayYPromotions200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response.go b/api/model_get_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response.go new file mode 100644 index 00000000..9227cfc9 --- /dev/null +++ b/api/model_get_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETBuyXPayYPromotionsBuyXPayYPromotionId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETBuyXPayYPromotionsBuyXPayYPromotionId200Response{} + +// GETBuyXPayYPromotionsBuyXPayYPromotionId200Response struct for GETBuyXPayYPromotionsBuyXPayYPromotionId200Response +type GETBuyXPayYPromotionsBuyXPayYPromotionId200Response struct { + Data *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData `json:"data,omitempty"` +} + +// NewGETBuyXPayYPromotionsBuyXPayYPromotionId200Response instantiates a new GETBuyXPayYPromotionsBuyXPayYPromotionId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETBuyXPayYPromotionsBuyXPayYPromotionId200Response() *GETBuyXPayYPromotionsBuyXPayYPromotionId200Response { + this := GETBuyXPayYPromotionsBuyXPayYPromotionId200Response{} + return &this +} + +// NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseWithDefaults instantiates a new GETBuyXPayYPromotionsBuyXPayYPromotionId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseWithDefaults() *GETBuyXPayYPromotionsBuyXPayYPromotionId200Response { + this := GETBuyXPayYPromotionsBuyXPayYPromotionId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200Response) GetData() GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200Response) GetDataOk() (*GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData and assigns it to the Data field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200Response) SetData(v GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) { + o.Data = &v +} + +func (o GETBuyXPayYPromotionsBuyXPayYPromotionId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETBuyXPayYPromotionsBuyXPayYPromotionId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200Response struct { + value *GETBuyXPayYPromotionsBuyXPayYPromotionId200Response + isSet bool +} + +func (v NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200Response) Get() *GETBuyXPayYPromotionsBuyXPayYPromotionId200Response { + return v.value +} + +func (v *NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200Response) Set(val *GETBuyXPayYPromotionsBuyXPayYPromotionId200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETBuyXPayYPromotionsBuyXPayYPromotionId200Response(val *GETBuyXPayYPromotionsBuyXPayYPromotionId200Response) *NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200Response { + return &NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200Response{value: val, isSet: true} +} + +func (v NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response_data.go b/api/model_get_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response_data.go new file mode 100644 index 00000000..911d1aa1 --- /dev/null +++ b/api/model_get_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData{} + +// GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData struct for GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData +type GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTBuyXPayYPromotions201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData instantiates a new GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData() *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData { + this := GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData{} + return &this +} + +// NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataWithDefaults instantiates a new GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataWithDefaults() *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData { + this := GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetAttributes() GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetAttributesOk() (*GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetAttributes(v GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTBuyXPayYPromotions201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData struct { + value *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData + isSet bool +} + +func (v NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) Get() *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData { + return v.value +} + +func (v *NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) Set(val *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData(val *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) *NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData { + return &NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData{value: val, isSet: true} +} + +func (v NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response_data_attributes.go b/api/model_get_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response_data_attributes.go new file mode 100644 index 00000000..1a3aeb18 --- /dev/null +++ b/api/model_get_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response_data_attributes.go @@ -0,0 +1,849 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes{} + +// GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes struct for GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes +type GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes struct { + // The promotion's internal name. + Name interface{} `json:"name,omitempty"` + // The promotion's type. + Type interface{} `json:"type,omitempty"` + // The international 3-letter currency code as defined by the ISO 4217 standard. + CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` + // The activation date/time of this promotion. + StartsAt interface{} `json:"starts_at,omitempty"` + // The expiration date/time of this promotion (must be after starts_at). + ExpiresAt interface{} `json:"expires_at,omitempty"` + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. + TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` + // The number of times this promotion has been applied. + TotalUsageCount interface{} `json:"total_usage_count,omitempty"` + // Indicates if the promotion is active (enabled and not expired). + Active interface{} `json:"active,omitempty"` + // The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. + Status interface{} `json:"status,omitempty"` + // Time at which this resource was disabled. + DisabledAt interface{} `json:"disabled_at,omitempty"` + // Time at which the resource was created. + CreatedAt interface{} `json:"created_at,omitempty"` + // Time at which the resource was last updated. + UpdatedAt interface{} `json:"updated_at,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` + // The quantity which defines the threshold for free items (works by multiple of x). + X interface{} `json:"x,omitempty"` + // The quantity which defines how many items you get for free, with the formula x-y. + Y interface{} `json:"y,omitempty"` + // Indicates if the cheapest items are discounted, allowing all of the SKUs in the associated list to be eligible for counting. + CheapestFree interface{} `json:"cheapest_free,omitempty"` +} + +// NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes instantiates a new GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes() *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes { + this := GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes{} + return &this +} + +// NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributesWithDefaults instantiates a new GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributesWithDefaults() *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes { + this := GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasName() bool { + if o != nil && IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given interface{} and assigns it to the Name field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + +// GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCurrencyCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CurrencyCode +} + +// GetCurrencyCodeOk returns a tuple with the CurrencyCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCurrencyCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.CurrencyCode) { + return nil, false + } + return &o.CurrencyCode, true +} + +// HasCurrencyCode returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasCurrencyCode() bool { + if o != nil && IsNil(o.CurrencyCode) { + return true + } + + return false +} + +// SetCurrencyCode gets a reference to the given interface{} and assigns it to the CurrencyCode field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetCurrencyCode(v interface{}) { + o.CurrencyCode = v +} + +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + +// GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetStartsAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.StartsAt +} + +// GetStartsAtOk returns a tuple with the StartsAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.StartsAt) { + return nil, false + } + return &o.StartsAt, true +} + +// HasStartsAt returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasStartsAt() bool { + if o != nil && IsNil(o.StartsAt) { + return true + } + + return false +} + +// SetStartsAt gets a reference to the given interface{} and assigns it to the StartsAt field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetStartsAt(v interface{}) { + o.StartsAt = v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetExpiresAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExpiresAt) { + return nil, false + } + return &o.ExpiresAt, true +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasExpiresAt() bool { + if o != nil && IsNil(o.ExpiresAt) { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given interface{} and assigns it to the ExpiresAt field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetExpiresAt(v interface{}) { + o.ExpiresAt = v +} + +// GetTotalUsageLimit returns the TotalUsageLimit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetTotalUsageLimit() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.TotalUsageLimit +} + +// GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetTotalUsageLimitOk() (*interface{}, bool) { + if o == nil || IsNil(o.TotalUsageLimit) { + return nil, false + } + return &o.TotalUsageLimit, true +} + +// HasTotalUsageLimit returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasTotalUsageLimit() bool { + if o != nil && IsNil(o.TotalUsageLimit) { + return true + } + + return false +} + +// SetTotalUsageLimit gets a reference to the given interface{} and assigns it to the TotalUsageLimit field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetTotalUsageLimit(v interface{}) { + o.TotalUsageLimit = v +} + +// GetTotalUsageCount returns the TotalUsageCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetTotalUsageCount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.TotalUsageCount +} + +// GetTotalUsageCountOk returns a tuple with the TotalUsageCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetTotalUsageCountOk() (*interface{}, bool) { + if o == nil || IsNil(o.TotalUsageCount) { + return nil, false + } + return &o.TotalUsageCount, true +} + +// HasTotalUsageCount returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasTotalUsageCount() bool { + if o != nil && IsNil(o.TotalUsageCount) { + return true + } + + return false +} + +// SetTotalUsageCount gets a reference to the given interface{} and assigns it to the TotalUsageCount field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetTotalUsageCount(v interface{}) { + o.TotalUsageCount = v +} + +// GetActive returns the Active field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetActive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Active +} + +// GetActiveOk returns a tuple with the Active field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetActiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Active) { + return nil, false + } + return &o.Active, true +} + +// HasActive returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasActive() bool { + if o != nil && IsNil(o.Active) { + return true + } + + return false +} + +// SetActive gets a reference to the given interface{} and assigns it to the Active field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetActive(v interface{}) { + o.Active = v +} + +// GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetStatus() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return &o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasStatus() bool { + if o != nil && IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given interface{} and assigns it to the Status field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetStatus(v interface{}) { + o.Status = v +} + +// GetDisabledAt returns the DisabledAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetDisabledAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DisabledAt +} + +// GetDisabledAtOk returns a tuple with the DisabledAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.DisabledAt) { + return nil, false + } + return &o.DisabledAt, true +} + +// HasDisabledAt returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasDisabledAt() bool { + if o != nil && IsNil(o.DisabledAt) { + return true + } + + return false +} + +// SetDisabledAt gets a reference to the given interface{} and assigns it to the DisabledAt field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetDisabledAt(v interface{}) { + o.DisabledAt = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCreatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return &o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasCreatedAt() bool { + if o != nil && IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given interface{} and assigns it to the CreatedAt field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetCreatedAt(v interface{}) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetUpdatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return &o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasUpdatedAt() bool { + if o != nil && IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given interface{} and assigns it to the UpdatedAt field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetUpdatedAt(v interface{}) { + o.UpdatedAt = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +// GetX returns the X field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetX() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.X +} + +// GetXOk returns a tuple with the X field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetXOk() (*interface{}, bool) { + if o == nil || IsNil(o.X) { + return nil, false + } + return &o.X, true +} + +// HasX returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasX() bool { + if o != nil && IsNil(o.X) { + return true + } + + return false +} + +// SetX gets a reference to the given interface{} and assigns it to the X field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetX(v interface{}) { + o.X = v +} + +// GetY returns the Y field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetY() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Y +} + +// GetYOk returns a tuple with the Y field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetYOk() (*interface{}, bool) { + if o == nil || IsNil(o.Y) { + return nil, false + } + return &o.Y, true +} + +// HasY returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasY() bool { + if o != nil && IsNil(o.Y) { + return true + } + + return false +} + +// SetY gets a reference to the given interface{} and assigns it to the Y field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetY(v interface{}) { + o.Y = v +} + +// GetCheapestFree returns the CheapestFree field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCheapestFree() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CheapestFree +} + +// GetCheapestFreeOk returns a tuple with the CheapestFree field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCheapestFreeOk() (*interface{}, bool) { + if o == nil || IsNil(o.CheapestFree) { + return nil, false + } + return &o.CheapestFree, true +} + +// HasCheapestFree returns a boolean if a field has been set. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasCheapestFree() bool { + if o != nil && IsNil(o.CheapestFree) { + return true + } + + return false +} + +// SetCheapestFree gets a reference to the given interface{} and assigns it to the CheapestFree field. +func (o *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetCheapestFree(v interface{}) { + o.CheapestFree = v +} + +func (o GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.CurrencyCode != nil { + toSerialize["currency_code"] = o.CurrencyCode + } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } + if o.StartsAt != nil { + toSerialize["starts_at"] = o.StartsAt + } + if o.ExpiresAt != nil { + toSerialize["expires_at"] = o.ExpiresAt + } + if o.TotalUsageLimit != nil { + toSerialize["total_usage_limit"] = o.TotalUsageLimit + } + if o.TotalUsageCount != nil { + toSerialize["total_usage_count"] = o.TotalUsageCount + } + if o.Active != nil { + toSerialize["active"] = o.Active + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.DisabledAt != nil { + toSerialize["disabled_at"] = o.DisabledAt + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.X != nil { + toSerialize["x"] = o.X + } + if o.Y != nil { + toSerialize["y"] = o.Y + } + if o.CheapestFree != nil { + toSerialize["cheapest_free"] = o.CheapestFree + } + return toSerialize, nil +} + +type NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes struct { + value *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes + isSet bool +} + +func (v NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) Get() *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes { + return v.value +} + +func (v *NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) Set(val *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes(val *GETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) *NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes { + return &NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_captures_200_response.go b/api/model_get_captures_200_response.go index e1ed8e93..42a0f169 100644 --- a/api/model_get_captures_200_response.go +++ b/api/model_get_captures_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_captures_capture_id_200_response.go b/api/model_get_captures_capture_id_200_response.go index 92d1815c..341f7cb0 100644 --- a/api/model_get_captures_capture_id_200_response.go +++ b/api/model_get_captures_capture_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_captures_capture_id_200_response_data.go b/api/model_get_captures_capture_id_200_response_data.go index d98da841..55508fe5 100644 --- a/api/model_get_captures_capture_id_200_response_data.go +++ b/api/model_get_captures_capture_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_captures_capture_id_200_response_data_attributes.go b/api/model_get_captures_capture_id_200_response_data_attributes.go index 9201631a..7b69913b 100644 --- a/api/model_get_captures_capture_id_200_response_data_attributes.go +++ b/api/model_get_captures_capture_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,10 @@ var _ MappedNullable = &GETCapturesCaptureId200ResponseDataAttributes{} // GETCapturesCaptureId200ResponseDataAttributes struct for GETCapturesCaptureId200ResponseDataAttributes type GETCapturesCaptureId200ResponseDataAttributes struct { - // The transaction number, auto generated + // The transaction number, auto generated. Number interface{} `json:"number,omitempty"` + // The transaction's type. + Type interface{} `json:"type,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order. CurrencyCode interface{} `json:"currency_code,omitempty"` // The transaction amount, in cents. @@ -30,17 +32,17 @@ type GETCapturesCaptureId200ResponseDataAttributes struct { AmountFloat interface{} `json:"amount_float,omitempty"` // The transaction amount, formatted. FormattedAmount interface{} `json:"formatted_amount,omitempty"` - // Indicates if the transaction is successful + // Indicates if the transaction is successful. Succeeded interface{} `json:"succeeded,omitempty"` - // The message returned by the payment gateway + // The message returned by the payment gateway. Message interface{} `json:"message,omitempty"` - // The error code, if any, returned by the payment gateway + // The error code, if any, returned by the payment gateway. ErrorCode interface{} `json:"error_code,omitempty"` - // The error detail, if any, returned by the payment gateway + // The error detail, if any, returned by the payment gateway. ErrorDetail interface{} `json:"error_detail,omitempty"` - // The token identifying the transaction, returned by the payment gateway + // The token identifying the transaction, returned by the payment gateway. Token interface{} `json:"token,omitempty"` - // The ID identifying the transaction, returned by the payment gateway + // The ID identifying the transaction, returned by the payment gateway. GatewayTransactionId interface{} `json:"gateway_transaction_id,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` @@ -48,7 +50,7 @@ type GETCapturesCaptureId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -116,6 +118,39 @@ func (o *GETCapturesCaptureId200ResponseDataAttributes) SetNumber(v interface{}) o.Number = v } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCapturesCaptureId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCapturesCaptureId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETCapturesCaptureId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETCapturesCaptureId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETCapturesCaptureId200ResponseDataAttributes) GetCurrencyCode() interface{} { if o == nil { @@ -822,6 +857,9 @@ func (o GETCapturesCaptureId200ResponseDataAttributes) ToMap() (map[string]inter if o.Number != nil { toSerialize["number"] = o.Number } + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } diff --git a/api/model_get_captures_capture_id_200_response_data_relationships.go b/api/model_get_captures_capture_id_200_response_data_relationships.go index 2ba53011..5040f5c4 100644 --- a/api/model_get_captures_capture_id_200_response_data_relationships.go +++ b/api/model_get_captures_capture_id_200_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,10 +20,13 @@ var _ MappedNullable = &GETCapturesCaptureId200ResponseDataRelationships{} // GETCapturesCaptureId200ResponseDataRelationships struct for GETCapturesCaptureId200ResponseDataRelationships type GETCapturesCaptureId200ResponseDataRelationships struct { - Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` - ReferenceAuthorization *GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization `json:"reference_authorization,omitempty"` - Refunds *GETCapturesCaptureId200ResponseDataRelationshipsRefunds `json:"refunds,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` + Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` + ReferenceAuthorization *GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization `json:"reference_authorization,omitempty"` + Refunds *GETCapturesCaptureId200ResponseDataRelationshipsRefunds `json:"refunds,omitempty"` + Return *GETCapturesCaptureId200ResponseDataRelationshipsReturn `json:"return,omitempty"` } // NewGETCapturesCaptureId200ResponseDataRelationships instantiates a new GETCapturesCaptureId200ResponseDataRelationships object @@ -75,6 +78,102 @@ func (o *GETCapturesCaptureId200ResponseDataRelationships) SetOrder(v POSTAdyenP o.Order = &v } +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *GETCapturesCaptureId200ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETCapturesCaptureId200ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *GETCapturesCaptureId200ResponseDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *GETCapturesCaptureId200ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { + o.Attachments = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *GETCapturesCaptureId200ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETCapturesCaptureId200ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *GETCapturesCaptureId200ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *GETCapturesCaptureId200ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *GETCapturesCaptureId200ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETCapturesCaptureId200ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *GETCapturesCaptureId200ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *GETCapturesCaptureId200ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + // GetReferenceAuthorization returns the ReferenceAuthorization field value if set, zero value otherwise. func (o *GETCapturesCaptureId200ResponseDataRelationships) GetReferenceAuthorization() GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization { if o == nil || IsNil(o.ReferenceAuthorization) { @@ -139,36 +238,36 @@ func (o *GETCapturesCaptureId200ResponseDataRelationships) SetRefunds(v GETCaptu o.Refunds = &v } -// GetEvents returns the Events field value if set, zero value otherwise. -func (o *GETCapturesCaptureId200ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { - if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents +// GetReturn returns the Return field value if set, zero value otherwise. +func (o *GETCapturesCaptureId200ResponseDataRelationships) GetReturn() GETCapturesCaptureId200ResponseDataRelationshipsReturn { + if o == nil || IsNil(o.Return) { + var ret GETCapturesCaptureId200ResponseDataRelationshipsReturn return ret } - return *o.Events + return *o.Return } -// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// GetReturnOk returns a tuple with the Return field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETCapturesCaptureId200ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { - if o == nil || IsNil(o.Events) { +func (o *GETCapturesCaptureId200ResponseDataRelationships) GetReturnOk() (*GETCapturesCaptureId200ResponseDataRelationshipsReturn, bool) { + if o == nil || IsNil(o.Return) { return nil, false } - return o.Events, true + return o.Return, true } -// HasEvents returns a boolean if a field has been set. -func (o *GETCapturesCaptureId200ResponseDataRelationships) HasEvents() bool { - if o != nil && !IsNil(o.Events) { +// HasReturn returns a boolean if a field has been set. +func (o *GETCapturesCaptureId200ResponseDataRelationships) HasReturn() bool { + if o != nil && !IsNil(o.Return) { return true } return false } -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *GETCapturesCaptureId200ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { - o.Events = &v +// SetReturn gets a reference to the given GETCapturesCaptureId200ResponseDataRelationshipsReturn and assigns it to the Return field. +func (o *GETCapturesCaptureId200ResponseDataRelationships) SetReturn(v GETCapturesCaptureId200ResponseDataRelationshipsReturn) { + o.Return = &v } func (o GETCapturesCaptureId200ResponseDataRelationships) MarshalJSON() ([]byte, error) { @@ -184,14 +283,23 @@ func (o GETCapturesCaptureId200ResponseDataRelationships) ToMap() (map[string]in if !IsNil(o.Order) { toSerialize["order"] = o.Order } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.ReferenceAuthorization) { toSerialize["reference_authorization"] = o.ReferenceAuthorization } if !IsNil(o.Refunds) { toSerialize["refunds"] = o.Refunds } - if !IsNil(o.Events) { - toSerialize["events"] = o.Events + if !IsNil(o.Return) { + toSerialize["return"] = o.Return } return toSerialize, nil } diff --git a/api/model_get_captures_capture_id_200_response_data_relationships_reference_authorization.go b/api/model_get_captures_capture_id_200_response_data_relationships_reference_authorization.go index cac589cf..caa99984 100644 --- a/api/model_get_captures_capture_id_200_response_data_relationships_reference_authorization.go +++ b/api/model_get_captures_capture_id_200_response_data_relationships_reference_authorization.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_captures_capture_id_200_response_data_relationships_reference_authorization_data.go b/api/model_get_captures_capture_id_200_response_data_relationships_reference_authorization_data.go index 1c1ba3f0..d4f34a22 100644 --- a/api/model_get_captures_capture_id_200_response_data_relationships_reference_authorization_data.go +++ b/api/model_get_captures_capture_id_200_response_data_relationships_reference_authorization_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_captures_capture_id_200_response_data_relationships_refunds.go b/api/model_get_captures_capture_id_200_response_data_relationships_refunds.go index f32f69bf..0ea965d3 100644 --- a/api/model_get_captures_capture_id_200_response_data_relationships_refunds.go +++ b/api/model_get_captures_capture_id_200_response_data_relationships_refunds.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_captures_capture_id_200_response_data_relationships_refunds_data.go b/api/model_get_captures_capture_id_200_response_data_relationships_refunds_data.go index b905088f..41774a8f 100644 --- a/api/model_get_captures_capture_id_200_response_data_relationships_refunds_data.go +++ b/api/model_get_captures_capture_id_200_response_data_relationships_refunds_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_captures_capture_id_200_response_data_relationships_return.go b/api/model_get_captures_capture_id_200_response_data_relationships_return.go new file mode 100644 index 00000000..e197f781 --- /dev/null +++ b/api/model_get_captures_capture_id_200_response_data_relationships_return.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETCapturesCaptureId200ResponseDataRelationshipsReturn type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETCapturesCaptureId200ResponseDataRelationshipsReturn{} + +// GETCapturesCaptureId200ResponseDataRelationshipsReturn struct for GETCapturesCaptureId200ResponseDataRelationshipsReturn +type GETCapturesCaptureId200ResponseDataRelationshipsReturn struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *GETCapturesCaptureId200ResponseDataRelationshipsReturnData `json:"data,omitempty"` +} + +// NewGETCapturesCaptureId200ResponseDataRelationshipsReturn instantiates a new GETCapturesCaptureId200ResponseDataRelationshipsReturn object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETCapturesCaptureId200ResponseDataRelationshipsReturn() *GETCapturesCaptureId200ResponseDataRelationshipsReturn { + this := GETCapturesCaptureId200ResponseDataRelationshipsReturn{} + return &this +} + +// NewGETCapturesCaptureId200ResponseDataRelationshipsReturnWithDefaults instantiates a new GETCapturesCaptureId200ResponseDataRelationshipsReturn object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETCapturesCaptureId200ResponseDataRelationshipsReturnWithDefaults() *GETCapturesCaptureId200ResponseDataRelationshipsReturn { + this := GETCapturesCaptureId200ResponseDataRelationshipsReturn{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturn) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturn) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturn) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturn) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturn) GetData() GETCapturesCaptureId200ResponseDataRelationshipsReturnData { + if o == nil || IsNil(o.Data) { + var ret GETCapturesCaptureId200ResponseDataRelationshipsReturnData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturn) GetDataOk() (*GETCapturesCaptureId200ResponseDataRelationshipsReturnData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturn) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given GETCapturesCaptureId200ResponseDataRelationshipsReturnData and assigns it to the Data field. +func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturn) SetData(v GETCapturesCaptureId200ResponseDataRelationshipsReturnData) { + o.Data = &v +} + +func (o GETCapturesCaptureId200ResponseDataRelationshipsReturn) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETCapturesCaptureId200ResponseDataRelationshipsReturn) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETCapturesCaptureId200ResponseDataRelationshipsReturn struct { + value *GETCapturesCaptureId200ResponseDataRelationshipsReturn + isSet bool +} + +func (v NullableGETCapturesCaptureId200ResponseDataRelationshipsReturn) Get() *GETCapturesCaptureId200ResponseDataRelationshipsReturn { + return v.value +} + +func (v *NullableGETCapturesCaptureId200ResponseDataRelationshipsReturn) Set(val *GETCapturesCaptureId200ResponseDataRelationshipsReturn) { + v.value = val + v.isSet = true +} + +func (v NullableGETCapturesCaptureId200ResponseDataRelationshipsReturn) IsSet() bool { + return v.isSet +} + +func (v *NullableGETCapturesCaptureId200ResponseDataRelationshipsReturn) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETCapturesCaptureId200ResponseDataRelationshipsReturn(val *GETCapturesCaptureId200ResponseDataRelationshipsReturn) *NullableGETCapturesCaptureId200ResponseDataRelationshipsReturn { + return &NullableGETCapturesCaptureId200ResponseDataRelationshipsReturn{value: val, isSet: true} +} + +func (v NullableGETCapturesCaptureId200ResponseDataRelationshipsReturn) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETCapturesCaptureId200ResponseDataRelationshipsReturn) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_captures_capture_id_200_response_data_relationships_return_data.go b/api/model_get_captures_capture_id_200_response_data_relationships_return_data.go new file mode 100644 index 00000000..f25aac99 --- /dev/null +++ b/api/model_get_captures_capture_id_200_response_data_relationships_return_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETCapturesCaptureId200ResponseDataRelationshipsReturnData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETCapturesCaptureId200ResponseDataRelationshipsReturnData{} + +// GETCapturesCaptureId200ResponseDataRelationshipsReturnData struct for GETCapturesCaptureId200ResponseDataRelationshipsReturnData +type GETCapturesCaptureId200ResponseDataRelationshipsReturnData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewGETCapturesCaptureId200ResponseDataRelationshipsReturnData instantiates a new GETCapturesCaptureId200ResponseDataRelationshipsReturnData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETCapturesCaptureId200ResponseDataRelationshipsReturnData() *GETCapturesCaptureId200ResponseDataRelationshipsReturnData { + this := GETCapturesCaptureId200ResponseDataRelationshipsReturnData{} + return &this +} + +// NewGETCapturesCaptureId200ResponseDataRelationshipsReturnDataWithDefaults instantiates a new GETCapturesCaptureId200ResponseDataRelationshipsReturnData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETCapturesCaptureId200ResponseDataRelationshipsReturnDataWithDefaults() *GETCapturesCaptureId200ResponseDataRelationshipsReturnData { + this := GETCapturesCaptureId200ResponseDataRelationshipsReturnData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) SetId(v interface{}) { + o.Id = v +} + +func (o GETCapturesCaptureId200ResponseDataRelationshipsReturnData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETCapturesCaptureId200ResponseDataRelationshipsReturnData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableGETCapturesCaptureId200ResponseDataRelationshipsReturnData struct { + value *GETCapturesCaptureId200ResponseDataRelationshipsReturnData + isSet bool +} + +func (v NullableGETCapturesCaptureId200ResponseDataRelationshipsReturnData) Get() *GETCapturesCaptureId200ResponseDataRelationshipsReturnData { + return v.value +} + +func (v *NullableGETCapturesCaptureId200ResponseDataRelationshipsReturnData) Set(val *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) { + v.value = val + v.isSet = true +} + +func (v NullableGETCapturesCaptureId200ResponseDataRelationshipsReturnData) IsSet() bool { + return v.isSet +} + +func (v *NullableGETCapturesCaptureId200ResponseDataRelationshipsReturnData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETCapturesCaptureId200ResponseDataRelationshipsReturnData(val *GETCapturesCaptureId200ResponseDataRelationshipsReturnData) *NullableGETCapturesCaptureId200ResponseDataRelationshipsReturnData { + return &NullableGETCapturesCaptureId200ResponseDataRelationshipsReturnData{value: val, isSet: true} +} + +func (v NullableGETCapturesCaptureId200ResponseDataRelationshipsReturnData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETCapturesCaptureId200ResponseDataRelationshipsReturnData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_carrier_accounts_200_response.go b/api/model_get_carrier_accounts_200_response.go index 8d054541..22507365 100644 --- a/api/model_get_carrier_accounts_200_response.go +++ b/api/model_get_carrier_accounts_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_carrier_accounts_carrier_account_id_200_response.go b/api/model_get_carrier_accounts_carrier_account_id_200_response.go index 733f64c4..6e3215af 100644 --- a/api/model_get_carrier_accounts_carrier_account_id_200_response.go +++ b/api/model_get_carrier_accounts_carrier_account_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_carrier_accounts_carrier_account_id_200_response_data.go b/api/model_get_carrier_accounts_carrier_account_id_200_response_data.go index 7d5f16e6..53518ca2 100644 --- a/api/model_get_carrier_accounts_carrier_account_id_200_response_data.go +++ b/api/model_get_carrier_accounts_carrier_account_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_carrier_accounts_carrier_account_id_200_response_data_attributes.go b/api/model_get_carrier_accounts_carrier_account_id_200_response_data_attributes.go index 4913ede5..4ca1b146 100644 --- a/api/model_get_carrier_accounts_carrier_account_id_200_response_data_attributes.go +++ b/api/model_get_carrier_accounts_carrier_account_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,13 +26,15 @@ type GETCarrierAccountsCarrierAccountId200ResponseDataAttributes struct { EasypostType interface{} `json:"easypost_type,omitempty"` // The Easypost internal reference ID. EasypostId interface{} `json:"easypost_id,omitempty"` + // The Easypost carrier accounts credentials fields. + Credentials interface{} `json:"credentials,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -154,6 +156,39 @@ func (o *GETCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetEasypos o.EasypostId = v } +// GetCredentials returns the Credentials field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetCredentials() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetCredentialsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Credentials) { + return nil, false + } + return &o.Credentials, true +} + +// HasCredentials returns a boolean if a field has been set. +func (o *GETCarrierAccountsCarrierAccountId200ResponseDataAttributes) HasCredentials() bool { + if o != nil && IsNil(o.Credentials) { + return true + } + + return false +} + +// SetCredentials gets a reference to the given interface{} and assigns it to the Credentials field. +func (o *GETCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetCredentials(v interface{}) { + o.Credentials = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -338,6 +373,9 @@ func (o GETCarrierAccountsCarrierAccountId200ResponseDataAttributes) ToMap() (ma if o.EasypostId != nil { toSerialize["easypost_id"] = o.EasypostId } + if o.Credentials != nil { + toSerialize["credentials"] = o.Credentials + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_checkout_com_gateways_200_response.go b/api/model_get_checkout_com_gateways_200_response.go index c465cc5b..5cb58903 100644 --- a/api/model_get_checkout_com_gateways_200_response.go +++ b/api/model_get_checkout_com_gateways_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_checkout_com_gateways_checkout_com_gateway_id_200_response.go b/api/model_get_checkout_com_gateways_checkout_com_gateway_id_200_response.go index 2631d4e2..767a745c 100644 --- a/api/model_get_checkout_com_gateways_checkout_com_gateway_id_200_response.go +++ b/api/model_get_checkout_com_gateways_checkout_com_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_checkout_com_gateways_checkout_com_gateway_id_200_response_data.go b/api/model_get_checkout_com_gateways_checkout_com_gateway_id_200_response_data.go index e2ab1afa..eebb9bbe 100644 --- a/api/model_get_checkout_com_gateways_checkout_com_gateway_id_200_response_data.go +++ b/api/model_get_checkout_com_gateways_checkout_com_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_checkout_com_gateways_checkout_com_gateway_id_200_response_data_attributes.go b/api/model_get_checkout_com_gateways_checkout_com_gateway_id_200_response_data_attributes.go index 60cfeeb3..7514dae1 100644 --- a/api/model_get_checkout_com_gateways_checkout_com_gateway_id_200_response_data_attributes.go +++ b/api/model_get_checkout_com_gateways_checkout_com_gateway_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,7 +28,7 @@ type GETCheckoutComGatewaysCheckoutComGatewayId200ResponseDataAttributes struct UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_checkout_com_payments_200_response.go b/api/model_get_checkout_com_payments_200_response.go index 8fa34969..b8069cf8 100644 --- a/api/model_get_checkout_com_payments_200_response.go +++ b/api/model_get_checkout_com_payments_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_checkout_com_payments_checkout_com_payment_id_200_response.go b/api/model_get_checkout_com_payments_checkout_com_payment_id_200_response.go index e41fdeae..2afa24b3 100644 --- a/api/model_get_checkout_com_payments_checkout_com_payment_id_200_response.go +++ b/api/model_get_checkout_com_payments_checkout_com_payment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_checkout_com_payments_checkout_com_payment_id_200_response_data.go b/api/model_get_checkout_com_payments_checkout_com_payment_id_200_response_data.go index 91fa3c95..24a0e2e9 100644 --- a/api/model_get_checkout_com_payments_checkout_com_payment_id_200_response_data.go +++ b/api/model_get_checkout_com_payments_checkout_com_payment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_checkout_com_payments_checkout_com_payment_id_200_response_data_attributes.go b/api/model_get_checkout_com_payments_checkout_com_payment_id_200_response_data_attributes.go index c2dd5ff0..8777937c 100644 --- a/api/model_get_checkout_com_payments_checkout_com_payment_id_200_response_data_attributes.go +++ b/api/model_get_checkout_com_payments_checkout_com_payment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -42,7 +42,7 @@ type GETCheckoutComPaymentsCheckoutComPaymentId200ResponseDataAttributes struct PaymentResponse interface{} `json:"payment_response,omitempty"` // Indicates if the order current amount differs form the one of the associated authorization. MismatchedAmounts interface{} `json:"mismatched_amounts,omitempty"` - // Information about the payment instrument used in the transaction + // Information about the payment instrument used in the transaction. PaymentInstrument interface{} `json:"payment_instrument,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` @@ -50,7 +50,7 @@ type GETCheckoutComPaymentsCheckoutComPaymentId200ResponseDataAttributes struct UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_cleanups_200_response.go b/api/model_get_cleanups_200_response.go index 9a2dfeeb..1c3afe4f 100644 --- a/api/model_get_cleanups_200_response.go +++ b/api/model_get_cleanups_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_cleanups_cleanup_id_200_response.go b/api/model_get_cleanups_cleanup_id_200_response.go index 6f6fd385..fa2ccbb6 100644 --- a/api/model_get_cleanups_cleanup_id_200_response.go +++ b/api/model_get_cleanups_cleanup_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_cleanups_cleanup_id_200_response_data.go b/api/model_get_cleanups_cleanup_id_200_response_data.go index ea77a32b..7b660c26 100644 --- a/api/model_get_cleanups_cleanup_id_200_response_data.go +++ b/api/model_get_cleanups_cleanup_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_cleanups_cleanup_id_200_response_data_attributes.go b/api/model_get_cleanups_cleanup_id_200_response_data_attributes.go index 752c8e7e..04a7cb75 100644 --- a/api/model_get_cleanups_cleanup_id_200_response_data_attributes.go +++ b/api/model_get_cleanups_cleanup_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -46,7 +46,7 @@ type GETCleanupsCleanupId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_coupon_codes_promotion_rules_200_response.go b/api/model_get_coupon_codes_promotion_rules_200_response.go index cd3c6b84..9acc7797 100644 --- a/api/model_get_coupon_codes_promotion_rules_200_response.go +++ b/api/model_get_coupon_codes_promotion_rules_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response.go b/api/model_get_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response.go index 2d9e13ae..3223acaf 100644 --- a/api/model_get_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response.go +++ b/api/model_get_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response_data.go b/api/model_get_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response_data.go index 90bddfdf..645e9df8 100644 --- a/api/model_get_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response_data.go +++ b/api/model_get_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData struc // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTCouponCodesPromotionRules201ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTCouponCodesPromotionRules201ResponseDataRelationships `json:"relationships,omitempty"` } // NewGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData instantiates a new GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData object @@ -145,9 +145,9 @@ func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData) } // GetAttributes returns the Attributes field value if set, zero value otherwise. -func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData) GetAttributes() GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes { +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData) GetAttributes() GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes { if o == nil || IsNil(o.Attributes) { - var ret GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes + var ret GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes return ret } return *o.Attributes @@ -155,7 +155,7 @@ func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData) // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData) GetAttributesOk() (*GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool) { +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData) GetAttributesOk() (*GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes, bool) { if o == nil || IsNil(o.Attributes) { return nil, false } @@ -171,8 +171,8 @@ func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData) return false } -// SetAttributes gets a reference to the given GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes and assigns it to the Attributes field. -func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData) SetAttributes(v GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) { +// SetAttributes gets a reference to the given GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseData) SetAttributes(v GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) { o.Attributes = &v } diff --git a/api/model_get_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response_data_attributes.go b/api/model_get_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response_data_attributes.go new file mode 100644 index 00000000..5740fdd8 --- /dev/null +++ b/api/model_get_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response_data_attributes.go @@ -0,0 +1,317 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes{} + +// GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes struct for GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes +type GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes struct { + // The promotion rule's type. + Type interface{} `json:"type,omitempty"` + // Time at which the resource was created. + CreatedAt interface{} `json:"created_at,omitempty"` + // Time at which the resource was last updated. + UpdatedAt interface{} `json:"updated_at,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes instantiates a new GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes() *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes { + this := GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes{} + return &this +} + +// NewGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributesWithDefaults instantiates a new GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributesWithDefaults() *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes { + this := GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetCreatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return &o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) HasCreatedAt() bool { + if o != nil && IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given interface{} and assigns it to the CreatedAt field. +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) SetCreatedAt(v interface{}) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetUpdatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return &o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) HasUpdatedAt() bool { + if o != nil && IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given interface{} and assigns it to the UpdatedAt field. +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) SetUpdatedAt(v interface{}) { + o.UpdatedAt = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes struct { + value *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes + isSet bool +} + +func (v NullableGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) Get() *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes { + return v.value +} + +func (v *NullableGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) Set(val *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullableGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullableGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes(val *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) *NullableGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes { + return &NullableGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullableGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_coupon_recipients_200_response.go b/api/model_get_coupon_recipients_200_response.go index 72fa7d47..551161a7 100644 --- a/api/model_get_coupon_recipients_200_response.go +++ b/api/model_get_coupon_recipients_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_coupon_recipients_coupon_recipient_id_200_response.go b/api/model_get_coupon_recipients_coupon_recipient_id_200_response.go index 14121f56..b7e02a4c 100644 --- a/api/model_get_coupon_recipients_coupon_recipient_id_200_response.go +++ b/api/model_get_coupon_recipients_coupon_recipient_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_coupon_recipients_coupon_recipient_id_200_response_data.go b/api/model_get_coupon_recipients_coupon_recipient_id_200_response_data.go index bd000731..322cded1 100644 --- a/api/model_get_coupon_recipients_coupon_recipient_id_200_response_data.go +++ b/api/model_get_coupon_recipients_coupon_recipient_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_coupon_recipients_coupon_recipient_id_200_response_data_attributes.go b/api/model_get_coupon_recipients_coupon_recipient_id_200_response_data_attributes.go index c98829ff..3c51479e 100644 --- a/api/model_get_coupon_recipients_coupon_recipient_id_200_response_data_attributes.go +++ b/api/model_get_coupon_recipients_coupon_recipient_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,11 +20,11 @@ var _ MappedNullable = &GETCouponRecipientsCouponRecipientId200ResponseDataAttri // GETCouponRecipientsCouponRecipientId200ResponseDataAttributes struct for GETCouponRecipientsCouponRecipientId200ResponseDataAttributes type GETCouponRecipientsCouponRecipientId200ResponseDataAttributes struct { - // The recipient email address + // The recipient email address. Email interface{} `json:"email,omitempty"` - // The recipient first name + // The recipient first name. FirstName interface{} `json:"first_name,omitempty"` - // The recipient last name + // The recipient last name. LastName interface{} `json:"last_name,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` @@ -32,7 +32,7 @@ type GETCouponRecipientsCouponRecipientId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_coupons_200_response.go b/api/model_get_coupons_200_response.go index 473fc801..108d5777 100644 --- a/api/model_get_coupons_200_response.go +++ b/api/model_get_coupons_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_coupons_coupon_id_200_response.go b/api/model_get_coupons_coupon_id_200_response.go index 3fdb6803..286b5b3e 100644 --- a/api/model_get_coupons_coupon_id_200_response.go +++ b/api/model_get_coupons_coupon_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_coupons_coupon_id_200_response_data.go b/api/model_get_coupons_coupon_id_200_response_data.go index 21b547ef..d747a4aa 100644 --- a/api/model_get_coupons_coupon_id_200_response_data.go +++ b/api/model_get_coupons_coupon_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_coupons_coupon_id_200_response_data_attributes.go b/api/model_get_coupons_coupon_id_200_response_data_attributes.go index 4bd960c8..9a44a001 100644 --- a/api/model_get_coupons_coupon_id_200_response_data_attributes.go +++ b/api/model_get_coupons_coupon_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -30,13 +30,15 @@ type GETCouponsCouponId200ResponseDataAttributes struct { UsageCount interface{} `json:"usage_count,omitempty"` // The email address of the associated recipient. When creating or updating a coupon, this is a shortcut to find or create the associated recipient by email. RecipientEmail interface{} `json:"recipient_email,omitempty"` + // Time at which the coupon will expire. + ExpiresAt interface{} `json:"expires_at,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -224,6 +226,39 @@ func (o *GETCouponsCouponId200ResponseDataAttributes) SetRecipientEmail(v interf o.RecipientEmail = v } +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCouponsCouponId200ResponseDataAttributes) GetExpiresAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCouponsCouponId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExpiresAt) { + return nil, false + } + return &o.ExpiresAt, true +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *GETCouponsCouponId200ResponseDataAttributes) HasExpiresAt() bool { + if o != nil && IsNil(o.ExpiresAt) { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given interface{} and assigns it to the ExpiresAt field. +func (o *GETCouponsCouponId200ResponseDataAttributes) SetExpiresAt(v interface{}) { + o.ExpiresAt = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETCouponsCouponId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -414,6 +449,9 @@ func (o GETCouponsCouponId200ResponseDataAttributes) ToMap() (map[string]interfa if o.RecipientEmail != nil { toSerialize["recipient_email"] = o.RecipientEmail } + if o.ExpiresAt != nil { + toSerialize["expires_at"] = o.ExpiresAt + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_order_validation_rules_200_response.go b/api/model_get_custom_promotion_rules_200_response.go similarity index 52% rename from api/model_get_order_validation_rules_200_response.go rename to api/model_get_custom_promotion_rules_200_response.go index 06d76498..44afd076 100644 --- a/api/model_get_order_validation_rules_200_response.go +++ b/api/model_get_custom_promotion_rules_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,33 +15,33 @@ import ( "encoding/json" ) -// checks if the GETOrderValidationRules200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GETOrderValidationRules200Response{} +// checks if the GETCustomPromotionRules200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETCustomPromotionRules200Response{} -// GETOrderValidationRules200Response struct for GETOrderValidationRules200Response -type GETOrderValidationRules200Response struct { +// GETCustomPromotionRules200Response struct for GETCustomPromotionRules200Response +type GETCustomPromotionRules200Response struct { Data interface{} `json:"data,omitempty"` } -// NewGETOrderValidationRules200Response instantiates a new GETOrderValidationRules200Response object +// NewGETCustomPromotionRules200Response instantiates a new GETCustomPromotionRules200Response object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewGETOrderValidationRules200Response() *GETOrderValidationRules200Response { - this := GETOrderValidationRules200Response{} +func NewGETCustomPromotionRules200Response() *GETCustomPromotionRules200Response { + this := GETCustomPromotionRules200Response{} return &this } -// NewGETOrderValidationRules200ResponseWithDefaults instantiates a new GETOrderValidationRules200Response object +// NewGETCustomPromotionRules200ResponseWithDefaults instantiates a new GETCustomPromotionRules200Response object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewGETOrderValidationRules200ResponseWithDefaults() *GETOrderValidationRules200Response { - this := GETOrderValidationRules200Response{} +func NewGETCustomPromotionRules200ResponseWithDefaults() *GETCustomPromotionRules200Response { + this := GETCustomPromotionRules200Response{} return &this } // GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETOrderValidationRules200Response) GetData() interface{} { +func (o *GETCustomPromotionRules200Response) GetData() interface{} { if o == nil { var ret interface{} return ret @@ -52,7 +52,7 @@ func (o *GETOrderValidationRules200Response) GetData() interface{} { // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETOrderValidationRules200Response) GetDataOk() (*interface{}, bool) { +func (o *GETCustomPromotionRules200Response) GetDataOk() (*interface{}, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -60,7 +60,7 @@ func (o *GETOrderValidationRules200Response) GetDataOk() (*interface{}, bool) { } // HasData returns a boolean if a field has been set. -func (o *GETOrderValidationRules200Response) HasData() bool { +func (o *GETCustomPromotionRules200Response) HasData() bool { if o != nil && IsNil(o.Data) { return true } @@ -69,11 +69,11 @@ func (o *GETOrderValidationRules200Response) HasData() bool { } // SetData gets a reference to the given interface{} and assigns it to the Data field. -func (o *GETOrderValidationRules200Response) SetData(v interface{}) { +func (o *GETCustomPromotionRules200Response) SetData(v interface{}) { o.Data = v } -func (o GETOrderValidationRules200Response) MarshalJSON() ([]byte, error) { +func (o GETCustomPromotionRules200Response) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -81,7 +81,7 @@ func (o GETOrderValidationRules200Response) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o GETOrderValidationRules200Response) ToMap() (map[string]interface{}, error) { +func (o GETCustomPromotionRules200Response) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Data != nil { toSerialize["data"] = o.Data @@ -89,38 +89,38 @@ func (o GETOrderValidationRules200Response) ToMap() (map[string]interface{}, err return toSerialize, nil } -type NullableGETOrderValidationRules200Response struct { - value *GETOrderValidationRules200Response +type NullableGETCustomPromotionRules200Response struct { + value *GETCustomPromotionRules200Response isSet bool } -func (v NullableGETOrderValidationRules200Response) Get() *GETOrderValidationRules200Response { +func (v NullableGETCustomPromotionRules200Response) Get() *GETCustomPromotionRules200Response { return v.value } -func (v *NullableGETOrderValidationRules200Response) Set(val *GETOrderValidationRules200Response) { +func (v *NullableGETCustomPromotionRules200Response) Set(val *GETCustomPromotionRules200Response) { v.value = val v.isSet = true } -func (v NullableGETOrderValidationRules200Response) IsSet() bool { +func (v NullableGETCustomPromotionRules200Response) IsSet() bool { return v.isSet } -func (v *NullableGETOrderValidationRules200Response) Unset() { +func (v *NullableGETCustomPromotionRules200Response) Unset() { v.value = nil v.isSet = false } -func NewNullableGETOrderValidationRules200Response(val *GETOrderValidationRules200Response) *NullableGETOrderValidationRules200Response { - return &NullableGETOrderValidationRules200Response{value: val, isSet: true} +func NewNullableGETCustomPromotionRules200Response(val *GETCustomPromotionRules200Response) *NullableGETCustomPromotionRules200Response { + return &NullableGETCustomPromotionRules200Response{value: val, isSet: true} } -func (v NullableGETOrderValidationRules200Response) MarshalJSON() ([]byte, error) { +func (v NullableGETCustomPromotionRules200Response) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableGETOrderValidationRules200Response) UnmarshalJSON(src []byte) error { +func (v *NullableGETCustomPromotionRules200Response) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_get_custom_promotion_rules_custom_promotion_rule_id_200_response.go b/api/model_get_custom_promotion_rules_custom_promotion_rule_id_200_response.go new file mode 100644 index 00000000..9bfa058f --- /dev/null +++ b/api/model_get_custom_promotion_rules_custom_promotion_rule_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETCustomPromotionRulesCustomPromotionRuleId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETCustomPromotionRulesCustomPromotionRuleId200Response{} + +// GETCustomPromotionRulesCustomPromotionRuleId200Response struct for GETCustomPromotionRulesCustomPromotionRuleId200Response +type GETCustomPromotionRulesCustomPromotionRuleId200Response struct { + Data *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData `json:"data,omitempty"` +} + +// NewGETCustomPromotionRulesCustomPromotionRuleId200Response instantiates a new GETCustomPromotionRulesCustomPromotionRuleId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETCustomPromotionRulesCustomPromotionRuleId200Response() *GETCustomPromotionRulesCustomPromotionRuleId200Response { + this := GETCustomPromotionRulesCustomPromotionRuleId200Response{} + return &this +} + +// NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseWithDefaults instantiates a new GETCustomPromotionRulesCustomPromotionRuleId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseWithDefaults() *GETCustomPromotionRulesCustomPromotionRuleId200Response { + this := GETCustomPromotionRulesCustomPromotionRuleId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200Response) GetData() GETCustomPromotionRulesCustomPromotionRuleId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret GETCustomPromotionRulesCustomPromotionRuleId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200Response) GetDataOk() (*GETCustomPromotionRulesCustomPromotionRuleId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given GETCustomPromotionRulesCustomPromotionRuleId200ResponseData and assigns it to the Data field. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200Response) SetData(v GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) { + o.Data = &v +} + +func (o GETCustomPromotionRulesCustomPromotionRuleId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETCustomPromotionRulesCustomPromotionRuleId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETCustomPromotionRulesCustomPromotionRuleId200Response struct { + value *GETCustomPromotionRulesCustomPromotionRuleId200Response + isSet bool +} + +func (v NullableGETCustomPromotionRulesCustomPromotionRuleId200Response) Get() *GETCustomPromotionRulesCustomPromotionRuleId200Response { + return v.value +} + +func (v *NullableGETCustomPromotionRulesCustomPromotionRuleId200Response) Set(val *GETCustomPromotionRulesCustomPromotionRuleId200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETCustomPromotionRulesCustomPromotionRuleId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETCustomPromotionRulesCustomPromotionRuleId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETCustomPromotionRulesCustomPromotionRuleId200Response(val *GETCustomPromotionRulesCustomPromotionRuleId200Response) *NullableGETCustomPromotionRulesCustomPromotionRuleId200Response { + return &NullableGETCustomPromotionRulesCustomPromotionRuleId200Response{value: val, isSet: true} +} + +func (v NullableGETCustomPromotionRulesCustomPromotionRuleId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETCustomPromotionRulesCustomPromotionRuleId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_order_validation_rules_order_validation_rule_id_200_response_data.go b/api/model_get_custom_promotion_rules_custom_promotion_rule_id_200_response_data.go similarity index 54% rename from api/model_get_order_validation_rules_order_validation_rule_id_200_response_data.go rename to api/model_get_custom_promotion_rules_custom_promotion_rule_id_200_response_data.go index 112dd6c6..b5645977 100644 --- a/api/model_get_order_validation_rules_order_validation_rule_id_200_response_data.go +++ b/api/model_get_custom_promotion_rules_custom_promotion_rule_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,39 +15,39 @@ import ( "encoding/json" ) -// checks if the GETOrderValidationRulesOrderValidationRuleId200ResponseData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GETOrderValidationRulesOrderValidationRuleId200ResponseData{} +// checks if the GETCustomPromotionRulesCustomPromotionRuleId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETCustomPromotionRulesCustomPromotionRuleId200ResponseData{} -// GETOrderValidationRulesOrderValidationRuleId200ResponseData struct for GETOrderValidationRulesOrderValidationRuleId200ResponseData -type GETOrderValidationRulesOrderValidationRuleId200ResponseData struct { +// GETCustomPromotionRulesCustomPromotionRuleId200ResponseData struct for GETCustomPromotionRulesCustomPromotionRuleId200ResponseData +type GETCustomPromotionRulesCustomPromotionRuleId200ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTBillingInfoValidationRules201ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTCustomPromotionRules201ResponseDataRelationships `json:"relationships,omitempty"` } -// NewGETOrderValidationRulesOrderValidationRuleId200ResponseData instantiates a new GETOrderValidationRulesOrderValidationRuleId200ResponseData object +// NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseData instantiates a new GETCustomPromotionRulesCustomPromotionRuleId200ResponseData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewGETOrderValidationRulesOrderValidationRuleId200ResponseData() *GETOrderValidationRulesOrderValidationRuleId200ResponseData { - this := GETOrderValidationRulesOrderValidationRuleId200ResponseData{} +func NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseData() *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData { + this := GETCustomPromotionRulesCustomPromotionRuleId200ResponseData{} return &this } -// NewGETOrderValidationRulesOrderValidationRuleId200ResponseDataWithDefaults instantiates a new GETOrderValidationRulesOrderValidationRuleId200ResponseData object +// NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataWithDefaults instantiates a new GETCustomPromotionRulesCustomPromotionRuleId200ResponseData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewGETOrderValidationRulesOrderValidationRuleId200ResponseDataWithDefaults() *GETOrderValidationRulesOrderValidationRuleId200ResponseData { - this := GETOrderValidationRulesOrderValidationRuleId200ResponseData{} +func NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataWithDefaults() *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData { + this := GETCustomPromotionRulesCustomPromotionRuleId200ResponseData{} return &this } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetId() interface{} { +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -58,7 +58,7 @@ func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetId() in // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetIdOk() (*interface{}, bool) { +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -66,7 +66,7 @@ func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetIdOk() } // HasId returns a boolean if a field has been set. -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) HasId() bool { +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -75,12 +75,12 @@ func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) HasId() bo } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) SetId(v interface{}) { +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetId(v interface{}) { o.Id = v } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetType() interface{} { +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -91,7 +91,7 @@ func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetType() // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetTypeOk() (*interface{}, bool) { +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -99,7 +99,7 @@ func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetTypeOk( } // HasType returns a boolean if a field has been set. -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) HasType() bool { +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -108,12 +108,12 @@ func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) HasType() } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) SetType(v interface{}) { +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetType(v interface{}) { o.Type = v } // GetLinks returns the Links field value if set, zero value otherwise. -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { if o == nil || IsNil(o.Links) { var ret POSTAddresses201ResponseDataLinks return ret @@ -123,7 +123,7 @@ func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetLinks() // GetLinksOk returns a tuple with the Links field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { if o == nil || IsNil(o.Links) { return nil, false } @@ -131,7 +131,7 @@ func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetLinksOk } // HasLinks returns a boolean if a field has been set. -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) HasLinks() bool { +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasLinks() bool { if o != nil && !IsNil(o.Links) { return true } @@ -140,14 +140,14 @@ func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) HasLinks() } // SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { o.Links = &v } // GetAttributes returns the Attributes field value if set, zero value otherwise. -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetAttributes() GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes { +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetAttributes() GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes { if o == nil || IsNil(o.Attributes) { - var ret GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes + var ret GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes return ret } return *o.Attributes @@ -155,7 +155,7 @@ func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetAttribu // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetAttributesOk() (*GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool) { +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetAttributesOk() (*GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes, bool) { if o == nil || IsNil(o.Attributes) { return nil, false } @@ -163,7 +163,7 @@ func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetAttribu } // HasAttributes returns a boolean if a field has been set. -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) HasAttributes() bool { +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasAttributes() bool { if o != nil && !IsNil(o.Attributes) { return true } @@ -171,15 +171,15 @@ func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) HasAttribu return false } -// SetAttributes gets a reference to the given GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes and assigns it to the Attributes field. -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) SetAttributes(v GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) { +// SetAttributes gets a reference to the given GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetAttributes(v GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) { o.Attributes = &v } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetRelationships() POSTBillingInfoValidationRules201ResponseDataRelationships { +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetRelationships() POSTCustomPromotionRules201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTBillingInfoValidationRules201ResponseDataRelationships + var ret POSTCustomPromotionRules201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetRelatio // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetRelationshipsOk() (*POSTBillingInfoValidationRules201ResponseDataRelationships, bool) { +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetRelationshipsOk() (*POSTCustomPromotionRules201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -195,7 +195,7 @@ func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) GetRelatio } // HasRelationships returns a boolean if a field has been set. -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) HasRelationships() bool { +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasRelationships() bool { if o != nil && !IsNil(o.Relationships) { return true } @@ -203,12 +203,12 @@ func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) HasRelatio return false } -// SetRelationships gets a reference to the given POSTBillingInfoValidationRules201ResponseDataRelationships and assigns it to the Relationships field. -func (o *GETOrderValidationRulesOrderValidationRuleId200ResponseData) SetRelationships(v POSTBillingInfoValidationRules201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTCustomPromotionRules201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetRelationships(v POSTCustomPromotionRules201ResponseDataRelationships) { o.Relationships = &v } -func (o GETOrderValidationRulesOrderValidationRuleId200ResponseData) MarshalJSON() ([]byte, error) { +func (o GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -216,7 +216,7 @@ func (o GETOrderValidationRulesOrderValidationRuleId200ResponseData) MarshalJSON return json.Marshal(toSerialize) } -func (o GETOrderValidationRulesOrderValidationRuleId200ResponseData) ToMap() (map[string]interface{}, error) { +func (o GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Id != nil { toSerialize["id"] = o.Id @@ -236,38 +236,38 @@ func (o GETOrderValidationRulesOrderValidationRuleId200ResponseData) ToMap() (ma return toSerialize, nil } -type NullableGETOrderValidationRulesOrderValidationRuleId200ResponseData struct { - value *GETOrderValidationRulesOrderValidationRuleId200ResponseData +type NullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseData struct { + value *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData isSet bool } -func (v NullableGETOrderValidationRulesOrderValidationRuleId200ResponseData) Get() *GETOrderValidationRulesOrderValidationRuleId200ResponseData { +func (v NullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseData) Get() *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData { return v.value } -func (v *NullableGETOrderValidationRulesOrderValidationRuleId200ResponseData) Set(val *GETOrderValidationRulesOrderValidationRuleId200ResponseData) { +func (v *NullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseData) Set(val *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) { v.value = val v.isSet = true } -func (v NullableGETOrderValidationRulesOrderValidationRuleId200ResponseData) IsSet() bool { +func (v NullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseData) IsSet() bool { return v.isSet } -func (v *NullableGETOrderValidationRulesOrderValidationRuleId200ResponseData) Unset() { +func (v *NullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseData) Unset() { v.value = nil v.isSet = false } -func NewNullableGETOrderValidationRulesOrderValidationRuleId200ResponseData(val *GETOrderValidationRulesOrderValidationRuleId200ResponseData) *NullableGETOrderValidationRulesOrderValidationRuleId200ResponseData { - return &NullableGETOrderValidationRulesOrderValidationRuleId200ResponseData{value: val, isSet: true} +func NewNullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseData(val *GETCustomPromotionRulesCustomPromotionRuleId200ResponseData) *NullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseData { + return &NullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseData{value: val, isSet: true} } -func (v NullableGETOrderValidationRulesOrderValidationRuleId200ResponseData) MarshalJSON() ([]byte, error) { +func (v NullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableGETOrderValidationRulesOrderValidationRuleId200ResponseData) UnmarshalJSON(src []byte) error { +func (v *NullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_get_custom_promotion_rules_custom_promotion_rule_id_200_response_data_attributes.go b/api/model_get_custom_promotion_rules_custom_promotion_rule_id_200_response_data_attributes.go new file mode 100644 index 00000000..637cd42f --- /dev/null +++ b/api/model_get_custom_promotion_rules_custom_promotion_rule_id_200_response_data_attributes.go @@ -0,0 +1,355 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes{} + +// GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes struct for GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes +type GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes struct { + // The promotion rule's type. + Type interface{} `json:"type,omitempty"` + // Time at which the resource was created. + CreatedAt interface{} `json:"created_at,omitempty"` + // Time at which the resource was last updated. + UpdatedAt interface{} `json:"updated_at,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` + // The filters used to trigger promotion on the matching order and its relationships attributes. + Filters interface{} `json:"filters,omitempty"` +} + +// NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes instantiates a new GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes() *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes { + this := GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes{} + return &this +} + +// NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributesWithDefaults instantiates a new GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributesWithDefaults() *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes { + this := GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetCreatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return &o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasCreatedAt() bool { + if o != nil && IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given interface{} and assigns it to the CreatedAt field. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetCreatedAt(v interface{}) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetUpdatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return &o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasUpdatedAt() bool { + if o != nil && IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given interface{} and assigns it to the UpdatedAt field. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetUpdatedAt(v interface{}) { + o.UpdatedAt = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +// GetFilters returns the Filters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetFilters() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Filters +} + +// GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetFiltersOk() (*interface{}, bool) { + if o == nil || IsNil(o.Filters) { + return nil, false + } + return &o.Filters, true +} + +// HasFilters returns a boolean if a field has been set. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasFilters() bool { + if o != nil && IsNil(o.Filters) { + return true + } + + return false +} + +// SetFilters gets a reference to the given interface{} and assigns it to the Filters field. +func (o *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetFilters(v interface{}) { + o.Filters = v +} + +func (o GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Filters != nil { + toSerialize["filters"] = o.Filters + } + return toSerialize, nil +} + +type NullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes struct { + value *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes + isSet bool +} + +func (v NullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) Get() *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes { + return v.value +} + +func (v *NullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) Set(val *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes(val *GETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) *NullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes { + return &NullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_customer_addresses_200_response.go b/api/model_get_customer_addresses_200_response.go index e87b34d8..21660e12 100644 --- a/api/model_get_customer_addresses_200_response.go +++ b/api/model_get_customer_addresses_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_customer_addresses_customer_address_id_200_response.go b/api/model_get_customer_addresses_customer_address_id_200_response.go index 6e4d879c..495cac14 100644 --- a/api/model_get_customer_addresses_customer_address_id_200_response.go +++ b/api/model_get_customer_addresses_customer_address_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_customer_addresses_customer_address_id_200_response_data.go b/api/model_get_customer_addresses_customer_address_id_200_response_data.go index ac7e5a8c..e01d4eb2 100644 --- a/api/model_get_customer_addresses_customer_address_id_200_response_data.go +++ b/api/model_get_customer_addresses_customer_address_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_customer_addresses_customer_address_id_200_response_data_attributes.go b/api/model_get_customer_addresses_customer_address_id_200_response_data_attributes.go index 9f5f3dae..1a67f2e7 100644 --- a/api/model_get_customer_addresses_customer_address_id_200_response_data_attributes.go +++ b/api/model_get_customer_addresses_customer_address_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,15 +20,17 @@ var _ MappedNullable = &GETCustomerAddressesCustomerAddressId200ResponseDataAttr // GETCustomerAddressesCustomerAddressId200ResponseDataAttributes struct for GETCustomerAddressesCustomerAddressId200ResponseDataAttributes type GETCustomerAddressesCustomerAddressId200ResponseDataAttributes struct { - // Returns the associated address' name + // Returns the associated address' name. Name interface{} `json:"name,omitempty"` + // The email of the customer associated to the address. + CustomerEmail interface{} `json:"customer_email,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -84,6 +86,39 @@ func (o *GETCustomerAddressesCustomerAddressId200ResponseDataAttributes) SetName o.Name = v } +// GetCustomerEmail returns the CustomerEmail field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCustomerAddressesCustomerAddressId200ResponseDataAttributes) GetCustomerEmail() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CustomerEmail +} + +// GetCustomerEmailOk returns a tuple with the CustomerEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCustomerAddressesCustomerAddressId200ResponseDataAttributes) GetCustomerEmailOk() (*interface{}, bool) { + if o == nil || IsNil(o.CustomerEmail) { + return nil, false + } + return &o.CustomerEmail, true +} + +// HasCustomerEmail returns a boolean if a field has been set. +func (o *GETCustomerAddressesCustomerAddressId200ResponseDataAttributes) HasCustomerEmail() bool { + if o != nil && IsNil(o.CustomerEmail) { + return true + } + + return false +} + +// SetCustomerEmail gets a reference to the given interface{} and assigns it to the CustomerEmail field. +func (o *GETCustomerAddressesCustomerAddressId200ResponseDataAttributes) SetCustomerEmail(v interface{}) { + o.CustomerEmail = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETCustomerAddressesCustomerAddressId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -262,6 +297,9 @@ func (o GETCustomerAddressesCustomerAddressId200ResponseDataAttributes) ToMap() if o.Name != nil { toSerialize["name"] = o.Name } + if o.CustomerEmail != nil { + toSerialize["customer_email"] = o.CustomerEmail + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_customer_groups_200_response.go b/api/model_get_customer_groups_200_response.go index 6efd088d..ce2436d4 100644 --- a/api/model_get_customer_groups_200_response.go +++ b/api/model_get_customer_groups_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_customer_groups_customer_group_id_200_response.go b/api/model_get_customer_groups_customer_group_id_200_response.go index db548cd9..16282674 100644 --- a/api/model_get_customer_groups_customer_group_id_200_response.go +++ b/api/model_get_customer_groups_customer_group_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_customer_groups_customer_group_id_200_response_data.go b/api/model_get_customer_groups_customer_group_id_200_response_data.go index bc45bb71..2b970275 100644 --- a/api/model_get_customer_groups_customer_group_id_200_response_data.go +++ b/api/model_get_customer_groups_customer_group_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_customer_groups_customer_group_id_200_response_data_attributes.go b/api/model_get_customer_groups_customer_group_id_200_response_data_attributes.go index 0752cbee..f9adb8f6 100644 --- a/api/model_get_customer_groups_customer_group_id_200_response_data_attributes.go +++ b/api/model_get_customer_groups_customer_group_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,15 +20,17 @@ var _ MappedNullable = &GETCustomerGroupsCustomerGroupId200ResponseDataAttribute // GETCustomerGroupsCustomerGroupId200ResponseDataAttributes struct for GETCustomerGroupsCustomerGroupId200ResponseDataAttributes type GETCustomerGroupsCustomerGroupId200ResponseDataAttributes struct { - // The customer group's internal name + // The customer group's internal name. Name interface{} `json:"name,omitempty"` + // A string that you can use to identify the customer group (must be unique within the environment). + Code interface{} `json:"code,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -84,6 +86,39 @@ func (o *GETCustomerGroupsCustomerGroupId200ResponseDataAttributes) SetName(v in o.Name = v } +// GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCustomerGroupsCustomerGroupId200ResponseDataAttributes) GetCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCustomerGroupsCustomerGroupId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return &o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *GETCustomerGroupsCustomerGroupId200ResponseDataAttributes) HasCode() bool { + if o != nil && IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given interface{} and assigns it to the Code field. +func (o *GETCustomerGroupsCustomerGroupId200ResponseDataAttributes) SetCode(v interface{}) { + o.Code = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETCustomerGroupsCustomerGroupId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -262,6 +297,9 @@ func (o GETCustomerGroupsCustomerGroupId200ResponseDataAttributes) ToMap() (map[ if o.Name != nil { toSerialize["name"] = o.Name } + if o.Code != nil { + toSerialize["code"] = o.Code + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_customer_password_resets_200_response.go b/api/model_get_customer_password_resets_200_response.go index 049bafa2..3c552b23 100644 --- a/api/model_get_customer_password_resets_200_response.go +++ b/api/model_get_customer_password_resets_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_customer_password_resets_customer_password_reset_id_200_response.go b/api/model_get_customer_password_resets_customer_password_reset_id_200_response.go index 76d86edf..9e3e5c75 100644 --- a/api/model_get_customer_password_resets_customer_password_reset_id_200_response.go +++ b/api/model_get_customer_password_resets_customer_password_reset_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_customer_password_resets_customer_password_reset_id_200_response_data.go b/api/model_get_customer_password_resets_customer_password_reset_id_200_response_data.go index aaa0aa50..01b4e937 100644 --- a/api/model_get_customer_password_resets_customer_password_reset_id_200_response_data.go +++ b/api/model_get_customer_password_resets_customer_password_reset_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_customer_password_resets_customer_password_reset_id_200_response_data_attributes.go b/api/model_get_customer_password_resets_customer_password_reset_id_200_response_data_attributes.go index ff3b62c1..b1f49fbb 100644 --- a/api/model_get_customer_password_resets_customer_password_reset_id_200_response_data_attributes.go +++ b/api/model_get_customer_password_resets_customer_password_reset_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &GETCustomerPasswordResetsCustomerPasswordResetId200Respo // GETCustomerPasswordResetsCustomerPasswordResetId200ResponseDataAttributes struct for GETCustomerPasswordResetsCustomerPasswordResetId200ResponseDataAttributes type GETCustomerPasswordResetsCustomerPasswordResetId200ResponseDataAttributes struct { - // The email of the customer that requires a password reset + // The email of the customer that requires a password reset. CustomerEmail interface{} `json:"customer_email,omitempty"` // Automatically generated on create. Send its value as the '_reset_password_token' argument when updating the customer password. ResetPasswordToken interface{} `json:"reset_password_token,omitempty"` @@ -32,7 +32,7 @@ type GETCustomerPasswordResetsCustomerPasswordResetId200ResponseDataAttributes s UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_customer_payment_sources_200_response.go b/api/model_get_customer_payment_sources_200_response.go index c05f94c9..69894295 100644 --- a/api/model_get_customer_payment_sources_200_response.go +++ b/api/model_get_customer_payment_sources_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_customer_payment_sources_customer_payment_source_id_200_response.go b/api/model_get_customer_payment_sources_customer_payment_source_id_200_response.go index 4754c941..e432320c 100644 --- a/api/model_get_customer_payment_sources_customer_payment_source_id_200_response.go +++ b/api/model_get_customer_payment_sources_customer_payment_source_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_customer_payment_sources_customer_payment_source_id_200_response_data.go b/api/model_get_customer_payment_sources_customer_payment_source_id_200_response_data.go index 3316f90c..c9308214 100644 --- a/api/model_get_customer_payment_sources_customer_payment_source_id_200_response_data.go +++ b/api/model_get_customer_payment_sources_customer_payment_source_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_customer_payment_sources_customer_payment_source_id_200_response_data_attributes.go b/api/model_get_customer_payment_sources_customer_payment_source_id_200_response_data_attributes.go index 9157fcc9..fecbf7ee 100644 --- a/api/model_get_customer_payment_sources_customer_payment_source_id_200_response_data_attributes.go +++ b/api/model_get_customer_payment_sources_customer_payment_source_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,11 +20,11 @@ var _ MappedNullable = &GETCustomerPaymentSourcesCustomerPaymentSourceId200Respo // GETCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes struct for GETCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes type GETCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes struct { - // Returns the associated payment source's name + // Returns the associated payment source's name. Name interface{} `json:"name,omitempty"` - // Returns the customer gateway token stored in the gateway + // Returns the customer gateway token stored in the gateway. CustomerToken interface{} `json:"customer_token,omitempty"` - // Returns the payment source token stored in the gateway + // Returns the payment source token stored in the gateway. PaymentSourceToken interface{} `json:"payment_source_token,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` @@ -32,7 +32,7 @@ type GETCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes s UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_customer_subscriptions_200_response.go b/api/model_get_customer_subscriptions_200_response.go index f8958de8..9c366eb7 100644 --- a/api/model_get_customer_subscriptions_200_response.go +++ b/api/model_get_customer_subscriptions_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_customer_subscriptions_customer_subscription_id_200_response.go b/api/model_get_customer_subscriptions_customer_subscription_id_200_response.go index 55dfee61..0a1b42e3 100644 --- a/api/model_get_customer_subscriptions_customer_subscription_id_200_response.go +++ b/api/model_get_customer_subscriptions_customer_subscription_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_customer_subscriptions_customer_subscription_id_200_response_data.go b/api/model_get_customer_subscriptions_customer_subscription_id_200_response_data.go index a550a4fc..64c62611 100644 --- a/api/model_get_customer_subscriptions_customer_subscription_id_200_response_data.go +++ b/api/model_get_customer_subscriptions_customer_subscription_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTCustomerPasswordResets201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTCustomerSubscriptions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewGETCustomerSubscriptionsCustomerSubscriptionId200ResponseData instantiates a new GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData object @@ -177,9 +177,9 @@ func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData) SetAttri } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetRelationships() POSTCustomerPasswordResets201ResponseDataRelationships { +func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetRelationships() POSTCustomerSubscriptions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTCustomerPasswordResets201ResponseDataRelationships + var ret POSTCustomerSubscriptions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetRelat // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetRelationshipsOk() (*POSTCustomerPasswordResets201ResponseDataRelationships, bool) { +func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetRelationshipsOk() (*POSTCustomerSubscriptions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData) HasRelat return false } -// SetRelationships gets a reference to the given POSTCustomerPasswordResets201ResponseDataRelationships and assigns it to the Relationships field. -func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData) SetRelationships(v POSTCustomerPasswordResets201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTCustomerSubscriptions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseData) SetRelationships(v POSTCustomerSubscriptions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_get_customer_subscriptions_customer_subscription_id_200_response_data_attributes.go b/api/model_get_customer_subscriptions_customer_subscription_id_200_response_data_attributes.go index e3b73005..896bfd2a 100644 --- a/api/model_get_customer_subscriptions_customer_subscription_id_200_response_data_attributes.go +++ b/api/model_get_customer_subscriptions_customer_subscription_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,15 +20,15 @@ var _ MappedNullable = &GETCustomerSubscriptionsCustomerSubscriptionId200Respons // GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes struct for GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes type GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes struct { - // The email of the customer that owns the subscription + // The email of the customer that owns the subscription. CustomerEmail interface{} `json:"customer_email,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` - // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. - Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -84,6 +84,39 @@ func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes o.CustomerEmail = v } +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -150,39 +183,6 @@ func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes o.UpdatedAt = v } -// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetReference() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Reference -} - -// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { - if o == nil || IsNil(o.Reference) { - return nil, false - } - return &o.Reference, true -} - -// HasReference returns a boolean if a field has been set. -func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) HasReference() bool { - if o != nil && IsNil(o.Reference) { - return true - } - - return false -} - -// SetReference gets a reference to the given interface{} and assigns it to the Reference field. -func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) SetReference(v interface{}) { - o.Reference = v -} - // GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetReferenceOrigin() interface{} { if o == nil { @@ -262,15 +262,15 @@ func (o GETCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) if o.CustomerEmail != nil { toSerialize["customer_email"] = o.CustomerEmail } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } if o.UpdatedAt != nil { toSerialize["updated_at"] = o.UpdatedAt } - if o.Reference != nil { - toSerialize["reference"] = o.Reference - } if o.ReferenceOrigin != nil { toSerialize["reference_origin"] = o.ReferenceOrigin } diff --git a/api/model_get_customers_200_response.go b/api/model_get_customers_200_response.go index 888a8e21..14ade78d 100644 --- a/api/model_get_customers_200_response.go +++ b/api/model_get_customers_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_customers_customer_id_200_response.go b/api/model_get_customers_customer_id_200_response.go index 226a3c86..716f078f 100644 --- a/api/model_get_customers_customer_id_200_response.go +++ b/api/model_get_customers_customer_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_customers_customer_id_200_response_data.go b/api/model_get_customers_customer_id_200_response_data.go index e8c170f3..f50a80b7 100644 --- a/api/model_get_customers_customer_id_200_response_data.go +++ b/api/model_get_customers_customer_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_customers_customer_id_200_response_data_attributes.go b/api/model_get_customers_customer_id_200_response_data_attributes.go index 3d2aa8ce..3cefaa22 100644 --- a/api/model_get_customers_customer_id_200_response_data_attributes.go +++ b/api/model_get_customers_customer_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,19 +20,23 @@ var _ MappedNullable = &GETCustomersCustomerId200ResponseDataAttributes{} // GETCustomersCustomerId200ResponseDataAttributes struct for GETCustomersCustomerId200ResponseDataAttributes type GETCustomersCustomerId200ResponseDataAttributes struct { - // The customer's email address + // The customer's email address. Email interface{} `json:"email,omitempty"` - // The customer's status, one of 'prospect', 'acquired', or 'repeat'. + // The customer's status. One of 'prospect' (default), 'acquired', or 'repeat'. Status interface{} `json:"status,omitempty"` // Indicates if the customer has a password. HasPassword interface{} `json:"has_password,omitempty"` + // The total number of orders for the customer. + TotalOrdersCount interface{} `json:"total_orders_count,omitempty"` + // A reference to uniquely identify the shopper during payment sessions. + ShopperReference interface{} `json:"shopper_reference,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -154,6 +158,72 @@ func (o *GETCustomersCustomerId200ResponseDataAttributes) SetHasPassword(v inter o.HasPassword = v } +// GetTotalOrdersCount returns the TotalOrdersCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCustomersCustomerId200ResponseDataAttributes) GetTotalOrdersCount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.TotalOrdersCount +} + +// GetTotalOrdersCountOk returns a tuple with the TotalOrdersCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCustomersCustomerId200ResponseDataAttributes) GetTotalOrdersCountOk() (*interface{}, bool) { + if o == nil || IsNil(o.TotalOrdersCount) { + return nil, false + } + return &o.TotalOrdersCount, true +} + +// HasTotalOrdersCount returns a boolean if a field has been set. +func (o *GETCustomersCustomerId200ResponseDataAttributes) HasTotalOrdersCount() bool { + if o != nil && IsNil(o.TotalOrdersCount) { + return true + } + + return false +} + +// SetTotalOrdersCount gets a reference to the given interface{} and assigns it to the TotalOrdersCount field. +func (o *GETCustomersCustomerId200ResponseDataAttributes) SetTotalOrdersCount(v interface{}) { + o.TotalOrdersCount = v +} + +// GetShopperReference returns the ShopperReference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETCustomersCustomerId200ResponseDataAttributes) GetShopperReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ShopperReference +} + +// GetShopperReferenceOk returns a tuple with the ShopperReference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETCustomersCustomerId200ResponseDataAttributes) GetShopperReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.ShopperReference) { + return nil, false + } + return &o.ShopperReference, true +} + +// HasShopperReference returns a boolean if a field has been set. +func (o *GETCustomersCustomerId200ResponseDataAttributes) HasShopperReference() bool { + if o != nil && IsNil(o.ShopperReference) { + return true + } + + return false +} + +// SetShopperReference gets a reference to the given interface{} and assigns it to the ShopperReference field. +func (o *GETCustomersCustomerId200ResponseDataAttributes) SetShopperReference(v interface{}) { + o.ShopperReference = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETCustomersCustomerId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -338,6 +408,12 @@ func (o GETCustomersCustomerId200ResponseDataAttributes) ToMap() (map[string]int if o.HasPassword != nil { toSerialize["has_password"] = o.HasPassword } + if o.TotalOrdersCount != nil { + toSerialize["total_orders_count"] = o.TotalOrdersCount + } + if o.ShopperReference != nil { + toSerialize["shopper_reference"] = o.ShopperReference + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_delivery_lead_times_200_response.go b/api/model_get_delivery_lead_times_200_response.go index 71275498..1c8adcdb 100644 --- a/api/model_get_delivery_lead_times_200_response.go +++ b/api/model_get_delivery_lead_times_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_delivery_lead_times_delivery_lead_time_id_200_response.go b/api/model_get_delivery_lead_times_delivery_lead_time_id_200_response.go index dabfe367..6e80f1d1 100644 --- a/api/model_get_delivery_lead_times_delivery_lead_time_id_200_response.go +++ b/api/model_get_delivery_lead_times_delivery_lead_time_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_delivery_lead_times_delivery_lead_time_id_200_response_data.go b/api/model_get_delivery_lead_times_delivery_lead_time_id_200_response_data.go index 9a78a6e2..ca21f67f 100644 --- a/api/model_get_delivery_lead_times_delivery_lead_time_id_200_response_data.go +++ b/api/model_get_delivery_lead_times_delivery_lead_time_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_delivery_lead_times_delivery_lead_time_id_200_response_data_attributes.go b/api/model_get_delivery_lead_times_delivery_lead_time_id_200_response_data_attributes.go index ec6248c4..dde466f8 100644 --- a/api/model_get_delivery_lead_times_delivery_lead_time_id_200_response_data_attributes.go +++ b/api/model_get_delivery_lead_times_delivery_lead_time_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,9 +24,9 @@ type GETDeliveryLeadTimesDeliveryLeadTimeId200ResponseDataAttributes struct { MinHours interface{} `json:"min_hours,omitempty"` // The delivery lead maximun time (in hours) when shipping from the associated stock location with the associated shipping method. MaxHours interface{} `json:"max_hours,omitempty"` - // The delivery lead minimum time, in days (rounded) + // The delivery lead minimum time, in days (rounded). MinDays interface{} `json:"min_days,omitempty"` - // The delivery lead maximun time, in days (rounded) + // The delivery lead maximun time, in days (rounded). MaxDays interface{} `json:"max_days,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` @@ -34,7 +34,7 @@ type GETDeliveryLeadTimesDeliveryLeadTimeId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_event_callbacks_200_response.go b/api/model_get_event_callbacks_200_response.go index 48fbe6b7..78afe604 100644 --- a/api/model_get_event_callbacks_200_response.go +++ b/api/model_get_event_callbacks_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_event_callbacks_event_callback_id_200_response.go b/api/model_get_event_callbacks_event_callback_id_200_response.go index 47091d6c..d7e06748 100644 --- a/api/model_get_event_callbacks_event_callback_id_200_response.go +++ b/api/model_get_event_callbacks_event_callback_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_event_callbacks_event_callback_id_200_response_data.go b/api/model_get_event_callbacks_event_callback_id_200_response_data.go index c970d090..bb79cc84 100644 --- a/api/model_get_event_callbacks_event_callback_id_200_response_data.go +++ b/api/model_get_event_callbacks_event_callback_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_event_callbacks_event_callback_id_200_response_data_attributes.go b/api/model_get_event_callbacks_event_callback_id_200_response_data_attributes.go index 0dfff5ba..447a1bc1 100644 --- a/api/model_get_event_callbacks_event_callback_id_200_response_data_attributes.go +++ b/api/model_get_event_callbacks_event_callback_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -34,7 +34,7 @@ type GETEventCallbacksEventCallbackId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_event_callbacks_event_callback_id_200_response_data_relationships.go b/api/model_get_event_callbacks_event_callback_id_200_response_data_relationships.go index 8bc6edbe..94a86dc5 100644 --- a/api/model_get_event_callbacks_event_callback_id_200_response_data_relationships.go +++ b/api/model_get_event_callbacks_event_callback_id_200_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_event_callbacks_event_callback_id_200_response_data_relationships_webhook.go b/api/model_get_event_callbacks_event_callback_id_200_response_data_relationships_webhook.go index a0b5c593..942f3f93 100644 --- a/api/model_get_event_callbacks_event_callback_id_200_response_data_relationships_webhook.go +++ b/api/model_get_event_callbacks_event_callback_id_200_response_data_relationships_webhook.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_event_callbacks_event_callback_id_200_response_data_relationships_webhook_data.go b/api/model_get_event_callbacks_event_callback_id_200_response_data_relationships_webhook_data.go index b93f2916..0658708f 100644 --- a/api/model_get_event_callbacks_event_callback_id_200_response_data_relationships_webhook_data.go +++ b/api/model_get_event_callbacks_event_callback_id_200_response_data_relationships_webhook_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_events_200_response.go b/api/model_get_events_200_response.go index 98f40edf..b1c28db2 100644 --- a/api/model_get_events_200_response.go +++ b/api/model_get_events_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_events_event_id_200_response.go b/api/model_get_events_event_id_200_response.go index c7299046..964a4d16 100644 --- a/api/model_get_events_event_id_200_response.go +++ b/api/model_get_events_event_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_events_event_id_200_response_data.go b/api/model_get_events_event_id_200_response_data.go index a81e9759..f2e08588 100644 --- a/api/model_get_events_event_id_200_response_data.go +++ b/api/model_get_events_event_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_events_event_id_200_response_data_attributes.go b/api/model_get_events_event_id_200_response_data_attributes.go index 9590dfc5..b845b2c0 100644 --- a/api/model_get_events_event_id_200_response_data_attributes.go +++ b/api/model_get_events_event_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,7 +28,7 @@ type GETEventsEventId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_events_event_id_200_response_data_relationships.go b/api/model_get_events_event_id_200_response_data_relationships.go index 43d77d50..034b7f69 100644 --- a/api/model_get_events_event_id_200_response_data_relationships.go +++ b/api/model_get_events_event_id_200_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,8 @@ var _ MappedNullable = &GETEventsEventId200ResponseDataRelationships{} // GETEventsEventId200ResponseDataRelationships struct for GETEventsEventId200ResponseDataRelationships type GETEventsEventId200ResponseDataRelationships struct { - LastEventCallbacks *GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks `json:"last_event_callbacks,omitempty"` Webhooks *GETEventsEventId200ResponseDataRelationshipsWebhooks `json:"webhooks,omitempty"` + LastEventCallbacks *GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks `json:"last_event_callbacks,omitempty"` } // NewGETEventsEventId200ResponseDataRelationships instantiates a new GETEventsEventId200ResponseDataRelationships object @@ -41,68 +41,68 @@ func NewGETEventsEventId200ResponseDataRelationshipsWithDefaults() *GETEventsEve return &this } -// GetLastEventCallbacks returns the LastEventCallbacks field value if set, zero value otherwise. -func (o *GETEventsEventId200ResponseDataRelationships) GetLastEventCallbacks() GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks { - if o == nil || IsNil(o.LastEventCallbacks) { - var ret GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks +// GetWebhooks returns the Webhooks field value if set, zero value otherwise. +func (o *GETEventsEventId200ResponseDataRelationships) GetWebhooks() GETEventsEventId200ResponseDataRelationshipsWebhooks { + if o == nil || IsNil(o.Webhooks) { + var ret GETEventsEventId200ResponseDataRelationshipsWebhooks return ret } - return *o.LastEventCallbacks + return *o.Webhooks } -// GetLastEventCallbacksOk returns a tuple with the LastEventCallbacks field value if set, nil otherwise +// GetWebhooksOk returns a tuple with the Webhooks field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETEventsEventId200ResponseDataRelationships) GetLastEventCallbacksOk() (*GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks, bool) { - if o == nil || IsNil(o.LastEventCallbacks) { +func (o *GETEventsEventId200ResponseDataRelationships) GetWebhooksOk() (*GETEventsEventId200ResponseDataRelationshipsWebhooks, bool) { + if o == nil || IsNil(o.Webhooks) { return nil, false } - return o.LastEventCallbacks, true + return o.Webhooks, true } -// HasLastEventCallbacks returns a boolean if a field has been set. -func (o *GETEventsEventId200ResponseDataRelationships) HasLastEventCallbacks() bool { - if o != nil && !IsNil(o.LastEventCallbacks) { +// HasWebhooks returns a boolean if a field has been set. +func (o *GETEventsEventId200ResponseDataRelationships) HasWebhooks() bool { + if o != nil && !IsNil(o.Webhooks) { return true } return false } -// SetLastEventCallbacks gets a reference to the given GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks and assigns it to the LastEventCallbacks field. -func (o *GETEventsEventId200ResponseDataRelationships) SetLastEventCallbacks(v GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks) { - o.LastEventCallbacks = &v +// SetWebhooks gets a reference to the given GETEventsEventId200ResponseDataRelationshipsWebhooks and assigns it to the Webhooks field. +func (o *GETEventsEventId200ResponseDataRelationships) SetWebhooks(v GETEventsEventId200ResponseDataRelationshipsWebhooks) { + o.Webhooks = &v } -// GetWebhooks returns the Webhooks field value if set, zero value otherwise. -func (o *GETEventsEventId200ResponseDataRelationships) GetWebhooks() GETEventsEventId200ResponseDataRelationshipsWebhooks { - if o == nil || IsNil(o.Webhooks) { - var ret GETEventsEventId200ResponseDataRelationshipsWebhooks +// GetLastEventCallbacks returns the LastEventCallbacks field value if set, zero value otherwise. +func (o *GETEventsEventId200ResponseDataRelationships) GetLastEventCallbacks() GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks { + if o == nil || IsNil(o.LastEventCallbacks) { + var ret GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks return ret } - return *o.Webhooks + return *o.LastEventCallbacks } -// GetWebhooksOk returns a tuple with the Webhooks field value if set, nil otherwise +// GetLastEventCallbacksOk returns a tuple with the LastEventCallbacks field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETEventsEventId200ResponseDataRelationships) GetWebhooksOk() (*GETEventsEventId200ResponseDataRelationshipsWebhooks, bool) { - if o == nil || IsNil(o.Webhooks) { +func (o *GETEventsEventId200ResponseDataRelationships) GetLastEventCallbacksOk() (*GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks, bool) { + if o == nil || IsNil(o.LastEventCallbacks) { return nil, false } - return o.Webhooks, true + return o.LastEventCallbacks, true } -// HasWebhooks returns a boolean if a field has been set. -func (o *GETEventsEventId200ResponseDataRelationships) HasWebhooks() bool { - if o != nil && !IsNil(o.Webhooks) { +// HasLastEventCallbacks returns a boolean if a field has been set. +func (o *GETEventsEventId200ResponseDataRelationships) HasLastEventCallbacks() bool { + if o != nil && !IsNil(o.LastEventCallbacks) { return true } return false } -// SetWebhooks gets a reference to the given GETEventsEventId200ResponseDataRelationshipsWebhooks and assigns it to the Webhooks field. -func (o *GETEventsEventId200ResponseDataRelationships) SetWebhooks(v GETEventsEventId200ResponseDataRelationshipsWebhooks) { - o.Webhooks = &v +// SetLastEventCallbacks gets a reference to the given GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks and assigns it to the LastEventCallbacks field. +func (o *GETEventsEventId200ResponseDataRelationships) SetLastEventCallbacks(v GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks) { + o.LastEventCallbacks = &v } func (o GETEventsEventId200ResponseDataRelationships) MarshalJSON() ([]byte, error) { @@ -115,12 +115,12 @@ func (o GETEventsEventId200ResponseDataRelationships) MarshalJSON() ([]byte, err func (o GETEventsEventId200ResponseDataRelationships) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.LastEventCallbacks) { - toSerialize["last_event_callbacks"] = o.LastEventCallbacks - } if !IsNil(o.Webhooks) { toSerialize["webhooks"] = o.Webhooks } + if !IsNil(o.LastEventCallbacks) { + toSerialize["last_event_callbacks"] = o.LastEventCallbacks + } return toSerialize, nil } diff --git a/api/model_get_events_event_id_200_response_data_relationships_last_event_callbacks.go b/api/model_get_events_event_id_200_response_data_relationships_last_event_callbacks.go index 2991769a..42e269ec 100644 --- a/api/model_get_events_event_id_200_response_data_relationships_last_event_callbacks.go +++ b/api/model_get_events_event_id_200_response_data_relationships_last_event_callbacks.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_events_event_id_200_response_data_relationships_last_event_callbacks_data.go b/api/model_get_events_event_id_200_response_data_relationships_last_event_callbacks_data.go index 18b79342..e075a227 100644 --- a/api/model_get_events_event_id_200_response_data_relationships_last_event_callbacks_data.go +++ b/api/model_get_events_event_id_200_response_data_relationships_last_event_callbacks_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_events_event_id_200_response_data_relationships_webhooks.go b/api/model_get_events_event_id_200_response_data_relationships_webhooks.go index fa5f55ae..03942e99 100644 --- a/api/model_get_events_event_id_200_response_data_relationships_webhooks.go +++ b/api/model_get_events_event_id_200_response_data_relationships_webhooks.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_events_event_id_200_response_data_relationships_webhooks_data.go b/api/model_get_events_event_id_200_response_data_relationships_webhooks_data.go index cc93d7fa..52fa152c 100644 --- a/api/model_get_events_event_id_200_response_data_relationships_webhooks_data.go +++ b/api/model_get_events_event_id_200_response_data_relationships_webhooks_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_exports_200_response.go b/api/model_get_exports_200_response.go index ae463d93..03c81eac 100644 --- a/api/model_get_exports_200_response.go +++ b/api/model_get_exports_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_exports_export_id_200_response.go b/api/model_get_exports_export_id_200_response.go index 1cb85ce8..02e3be65 100644 --- a/api/model_get_exports_export_id_200_response.go +++ b/api/model_get_exports_export_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_exports_export_id_200_response_data.go b/api/model_get_exports_export_id_200_response_data.go index 0b32596c..684f42d8 100644 --- a/api/model_get_exports_export_id_200_response_data.go +++ b/api/model_get_exports_export_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type GETExportsExportId200ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *GETExportsExportId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTCleanups201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTExports201ResponseDataRelationships `json:"relationships,omitempty"` } // NewGETExportsExportId200ResponseData instantiates a new GETExportsExportId200ResponseData object @@ -177,9 +177,9 @@ func (o *GETExportsExportId200ResponseData) SetAttributes(v GETExportsExportId20 } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *GETExportsExportId200ResponseData) GetRelationships() POSTCleanups201ResponseDataRelationships { +func (o *GETExportsExportId200ResponseData) GetRelationships() POSTExports201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTCleanups201ResponseDataRelationships + var ret POSTExports201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *GETExportsExportId200ResponseData) GetRelationships() POSTCleanups201Re // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETExportsExportId200ResponseData) GetRelationshipsOk() (*POSTCleanups201ResponseDataRelationships, bool) { +func (o *GETExportsExportId200ResponseData) GetRelationshipsOk() (*POSTExports201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *GETExportsExportId200ResponseData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given POSTCleanups201ResponseDataRelationships and assigns it to the Relationships field. -func (o *GETExportsExportId200ResponseData) SetRelationships(v POSTCleanups201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTExports201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETExportsExportId200ResponseData) SetRelationships(v POSTExports201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_get_exports_export_id_200_response_data_attributes.go b/api/model_get_exports_export_id_200_response_data_attributes.go index cb2e1061..23202f9e 100644 --- a/api/model_get_exports_export_id_200_response_data_attributes.go +++ b/api/model_get_exports_export_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type GETExportsExportId200ResponseDataAttributes struct { ResourceType interface{} `json:"resource_type,omitempty"` // The format of the export one of 'json' (default) or 'csv'. Format interface{} `json:"format,omitempty"` - // The export job status. One of 'pending' (default), 'in_progress', or 'completed'. + // The export job status. One of 'pending' (default), 'in_progress', 'interrupted', or 'completed'. Status interface{} `json:"status,omitempty"` // List of related resources that should be included in the export. Includes interface{} `json:"includes,omitempty"` @@ -48,7 +48,7 @@ type GETExportsExportId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_external_gateways_200_response.go b/api/model_get_external_gateways_200_response.go index 454f1824..6375272a 100644 --- a/api/model_get_external_gateways_200_response.go +++ b/api/model_get_external_gateways_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_external_gateways_external_gateway_id_200_response.go b/api/model_get_external_gateways_external_gateway_id_200_response.go index 7152bf91..3e94e5c3 100644 --- a/api/model_get_external_gateways_external_gateway_id_200_response.go +++ b/api/model_get_external_gateways_external_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_external_gateways_external_gateway_id_200_response_data.go b/api/model_get_external_gateways_external_gateway_id_200_response_data.go index 7d4bed6c..d7f7048e 100644 --- a/api/model_get_external_gateways_external_gateway_id_200_response_data.go +++ b/api/model_get_external_gateways_external_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_external_gateways_external_gateway_id_200_response_data_attributes.go b/api/model_get_external_gateways_external_gateway_id_200_response_data_attributes.go index fafbdde8..ac6cd700 100644 --- a/api/model_get_external_gateways_external_gateway_id_200_response_data_attributes.go +++ b/api/model_get_external_gateways_external_gateway_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,12 +28,10 @@ type GETExternalGatewaysExternalGatewayId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` - // The shared secret used to sign the external request payload. - SharedSecret interface{} `json:"shared_secret,omitempty"` // The endpoint used by the external gateway to authorize payments. AuthorizeUrl interface{} `json:"authorize_url,omitempty"` // The endpoint used by the external gateway to capture payments. @@ -44,6 +42,12 @@ type GETExternalGatewaysExternalGatewayId200ResponseDataAttributes struct { RefundUrl interface{} `json:"refund_url,omitempty"` // The endpoint used by the external gateway to create a customer payment token. TokenUrl interface{} `json:"token_url,omitempty"` + // The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. + CircuitState interface{} `json:"circuit_state,omitempty"` + // The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. + CircuitFailureCount interface{} `json:"circuit_failure_count,omitempty"` + // The shared secret used to sign the external request payload. + SharedSecret interface{} `json:"shared_secret,omitempty"` } // NewGETExternalGatewaysExternalGatewayId200ResponseDataAttributes instantiates a new GETExternalGatewaysExternalGatewayId200ResponseDataAttributes object @@ -261,39 +265,6 @@ func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) SetMetad o.Metadata = v } -// GetSharedSecret returns the SharedSecret field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetSharedSecret() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.SharedSecret -} - -// GetSharedSecretOk returns a tuple with the SharedSecret field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetSharedSecretOk() (*interface{}, bool) { - if o == nil || IsNil(o.SharedSecret) { - return nil, false - } - return &o.SharedSecret, true -} - -// HasSharedSecret returns a boolean if a field has been set. -func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) HasSharedSecret() bool { - if o != nil && IsNil(o.SharedSecret) { - return true - } - - return false -} - -// SetSharedSecret gets a reference to the given interface{} and assigns it to the SharedSecret field. -func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) SetSharedSecret(v interface{}) { - o.SharedSecret = v -} - // GetAuthorizeUrl returns the AuthorizeUrl field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetAuthorizeUrl() interface{} { if o == nil { @@ -459,6 +430,105 @@ func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) SetToken o.TokenUrl = v } +// GetCircuitState returns the CircuitState field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetCircuitState() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CircuitState +} + +// GetCircuitStateOk returns a tuple with the CircuitState field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetCircuitStateOk() (*interface{}, bool) { + if o == nil || IsNil(o.CircuitState) { + return nil, false + } + return &o.CircuitState, true +} + +// HasCircuitState returns a boolean if a field has been set. +func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) HasCircuitState() bool { + if o != nil && IsNil(o.CircuitState) { + return true + } + + return false +} + +// SetCircuitState gets a reference to the given interface{} and assigns it to the CircuitState field. +func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) SetCircuitState(v interface{}) { + o.CircuitState = v +} + +// GetCircuitFailureCount returns the CircuitFailureCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetCircuitFailureCount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CircuitFailureCount +} + +// GetCircuitFailureCountOk returns a tuple with the CircuitFailureCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetCircuitFailureCountOk() (*interface{}, bool) { + if o == nil || IsNil(o.CircuitFailureCount) { + return nil, false + } + return &o.CircuitFailureCount, true +} + +// HasCircuitFailureCount returns a boolean if a field has been set. +func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) HasCircuitFailureCount() bool { + if o != nil && IsNil(o.CircuitFailureCount) { + return true + } + + return false +} + +// SetCircuitFailureCount gets a reference to the given interface{} and assigns it to the CircuitFailureCount field. +func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) SetCircuitFailureCount(v interface{}) { + o.CircuitFailureCount = v +} + +// GetSharedSecret returns the SharedSecret field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetSharedSecret() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.SharedSecret +} + +// GetSharedSecretOk returns a tuple with the SharedSecret field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetSharedSecretOk() (*interface{}, bool) { + if o == nil || IsNil(o.SharedSecret) { + return nil, false + } + return &o.SharedSecret, true +} + +// HasSharedSecret returns a boolean if a field has been set. +func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) HasSharedSecret() bool { + if o != nil && IsNil(o.SharedSecret) { + return true + } + + return false +} + +// SetSharedSecret gets a reference to the given interface{} and assigns it to the SharedSecret field. +func (o *GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) SetSharedSecret(v interface{}) { + o.SharedSecret = v +} + func (o GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -487,9 +557,6 @@ func (o GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) ToMap() ( if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } - if o.SharedSecret != nil { - toSerialize["shared_secret"] = o.SharedSecret - } if o.AuthorizeUrl != nil { toSerialize["authorize_url"] = o.AuthorizeUrl } @@ -505,6 +572,15 @@ func (o GETExternalGatewaysExternalGatewayId200ResponseDataAttributes) ToMap() ( if o.TokenUrl != nil { toSerialize["token_url"] = o.TokenUrl } + if o.CircuitState != nil { + toSerialize["circuit_state"] = o.CircuitState + } + if o.CircuitFailureCount != nil { + toSerialize["circuit_failure_count"] = o.CircuitFailureCount + } + if o.SharedSecret != nil { + toSerialize["shared_secret"] = o.SharedSecret + } return toSerialize, nil } diff --git a/api/model_get_external_payments_200_response.go b/api/model_get_external_payments_200_response.go index 6bb1023b..0d2e7452 100644 --- a/api/model_get_external_payments_200_response.go +++ b/api/model_get_external_payments_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_external_payments_external_payment_id_200_response.go b/api/model_get_external_payments_external_payment_id_200_response.go index c56c88c7..6ee9ad44 100644 --- a/api/model_get_external_payments_external_payment_id_200_response.go +++ b/api/model_get_external_payments_external_payment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_external_payments_external_payment_id_200_response_data.go b/api/model_get_external_payments_external_payment_id_200_response_data.go index 13ca4b26..6bfffac8 100644 --- a/api/model_get_external_payments_external_payment_id_200_response_data.go +++ b/api/model_get_external_payments_external_payment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_external_payments_external_payment_id_200_response_data_attributes.go b/api/model_get_external_payments_external_payment_id_200_response_data_attributes.go index a98af3c7..1584c767 100644 --- a/api/model_get_external_payments_external_payment_id_200_response_data_attributes.go +++ b/api/model_get_external_payments_external_payment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type GETExternalPaymentsExternalPaymentId200ResponseDataAttributes struct { PaymentSourceToken interface{} `json:"payment_source_token,omitempty"` // External payment options. Options interface{} `json:"options,omitempty"` - // Information about the payment instrument used in the transaction + // Information about the payment instrument used in the transaction. PaymentInstrument interface{} `json:"payment_instrument,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` @@ -32,7 +32,7 @@ type GETExternalPaymentsExternalPaymentId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_external_promotions_200_response.go b/api/model_get_external_promotions_200_response.go index f3f2e3d2..9613f5ac 100644 --- a/api/model_get_external_promotions_200_response.go +++ b/api/model_get_external_promotions_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_external_promotions_external_promotion_id_200_response.go b/api/model_get_external_promotions_external_promotion_id_200_response.go index f3fd4b24..3fd67515 100644 --- a/api/model_get_external_promotions_external_promotion_id_200_response.go +++ b/api/model_get_external_promotions_external_promotion_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_external_promotions_external_promotion_id_200_response_data.go b/api/model_get_external_promotions_external_promotion_id_200_response_data.go index c3751290..4ef220c3 100644 --- a/api/model_get_external_promotions_external_promotion_id_200_response_data.go +++ b/api/model_get_external_promotions_external_promotion_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type GETExternalPromotionsExternalPromotionId200ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTExternalPromotions201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTBuyXPayYPromotions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewGETExternalPromotionsExternalPromotionId200ResponseData instantiates a new GETExternalPromotionsExternalPromotionId200ResponseData object @@ -177,9 +177,9 @@ func (o *GETExternalPromotionsExternalPromotionId200ResponseData) SetAttributes( } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *GETExternalPromotionsExternalPromotionId200ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships { +func (o *GETExternalPromotionsExternalPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTExternalPromotions201ResponseDataRelationships + var ret POSTBuyXPayYPromotions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *GETExternalPromotionsExternalPromotionId200ResponseData) GetRelationshi // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETExternalPromotionsExternalPromotionId200ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool) { +func (o *GETExternalPromotionsExternalPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *GETExternalPromotionsExternalPromotionId200ResponseData) HasRelationshi return false } -// SetRelationships gets a reference to the given POSTExternalPromotions201ResponseDataRelationships and assigns it to the Relationships field. -func (o *GETExternalPromotionsExternalPromotionId200ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETExternalPromotionsExternalPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_get_external_promotions_external_promotion_id_200_response_data_attributes.go b/api/model_get_external_promotions_external_promotion_id_200_response_data_attributes.go index f94c5c33..43977e00 100644 --- a/api/model_get_external_promotions_external_promotion_id_200_response_data_attributes.go +++ b/api/model_get_external_promotions_external_promotion_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,30 +22,44 @@ var _ MappedNullable = &GETExternalPromotionsExternalPromotionId200ResponseDataA type GETExternalPromotionsExternalPromotionId200ResponseDataAttributes struct { // The promotion's internal name. Name interface{} `json:"name,omitempty"` + // The promotion's type. + Type interface{} `json:"type,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` // The activation date/time of this promotion. StartsAt interface{} `json:"starts_at,omitempty"` // The expiration date/time of this promotion (must be after starts_at). ExpiresAt interface{} `json:"expires_at,omitempty"` - // The total number of times this promotion can be applied. + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` // The number of times this promotion has been applied. TotalUsageCount interface{} `json:"total_usage_count,omitempty"` - // Indicates if the promotion is active. + // Indicates if the promotion is active (enabled and not expired). Active interface{} `json:"active,omitempty"` + // The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. + Status interface{} `json:"status,omitempty"` + // Time at which this resource was disabled. + DisabledAt interface{} `json:"disabled_at,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` // The URL to the service that will compute the discount. PromotionUrl interface{} `json:"promotion_url,omitempty"` + // The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. + CircuitState interface{} `json:"circuit_state,omitempty"` + // The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. + CircuitFailureCount interface{} `json:"circuit_failure_count,omitempty"` // The shared secret used to sign the external request payload. SharedSecret interface{} `json:"shared_secret,omitempty"` } @@ -100,6 +114,39 @@ func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetN o.Name = v } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetCurrencyCode() interface{} { if o == nil { @@ -133,6 +180,72 @@ func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetC o.CurrencyCode = v } +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + // GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetStartsAt() interface{} { if o == nil { @@ -298,6 +411,72 @@ func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetA o.Active = v } +// GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetStatus() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return &o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasStatus() bool { + if o != nil && IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given interface{} and assigns it to the Status field. +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetStatus(v interface{}) { + o.Status = v +} + +// GetDisabledAt returns the DisabledAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetDisabledAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DisabledAt +} + +// GetDisabledAtOk returns a tuple with the DisabledAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.DisabledAt) { + return nil, false + } + return &o.DisabledAt, true +} + +// HasDisabledAt returns a boolean if a field has been set. +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasDisabledAt() bool { + if o != nil && IsNil(o.DisabledAt) { + return true + } + + return false +} + +// SetDisabledAt gets a reference to the given interface{} and assigns it to the DisabledAt field. +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetDisabledAt(v interface{}) { + o.DisabledAt = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -496,6 +675,72 @@ func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetP o.PromotionUrl = v } +// GetCircuitState returns the CircuitState field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetCircuitState() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CircuitState +} + +// GetCircuitStateOk returns a tuple with the CircuitState field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetCircuitStateOk() (*interface{}, bool) { + if o == nil || IsNil(o.CircuitState) { + return nil, false + } + return &o.CircuitState, true +} + +// HasCircuitState returns a boolean if a field has been set. +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasCircuitState() bool { + if o != nil && IsNil(o.CircuitState) { + return true + } + + return false +} + +// SetCircuitState gets a reference to the given interface{} and assigns it to the CircuitState field. +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetCircuitState(v interface{}) { + o.CircuitState = v +} + +// GetCircuitFailureCount returns the CircuitFailureCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetCircuitFailureCount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CircuitFailureCount +} + +// GetCircuitFailureCountOk returns a tuple with the CircuitFailureCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetCircuitFailureCountOk() (*interface{}, bool) { + if o == nil || IsNil(o.CircuitFailureCount) { + return nil, false + } + return &o.CircuitFailureCount, true +} + +// HasCircuitFailureCount returns a boolean if a field has been set. +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasCircuitFailureCount() bool { + if o != nil && IsNil(o.CircuitFailureCount) { + return true + } + + return false +} + +// SetCircuitFailureCount gets a reference to the given interface{} and assigns it to the CircuitFailureCount field. +func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetCircuitFailureCount(v interface{}) { + o.CircuitFailureCount = v +} + // GetSharedSecret returns the SharedSecret field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetSharedSecret() interface{} { if o == nil { @@ -542,9 +787,18 @@ func (o GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) ToMap if o.Name != nil { toSerialize["name"] = o.Name } + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } if o.StartsAt != nil { toSerialize["starts_at"] = o.StartsAt } @@ -560,6 +814,12 @@ func (o GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) ToMap if o.Active != nil { toSerialize["active"] = o.Active } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.DisabledAt != nil { + toSerialize["disabled_at"] = o.DisabledAt + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } @@ -578,6 +838,12 @@ func (o GETExternalPromotionsExternalPromotionId200ResponseDataAttributes) ToMap if o.PromotionUrl != nil { toSerialize["promotion_url"] = o.PromotionUrl } + if o.CircuitState != nil { + toSerialize["circuit_state"] = o.CircuitState + } + if o.CircuitFailureCount != nil { + toSerialize["circuit_failure_count"] = o.CircuitFailureCount + } if o.SharedSecret != nil { toSerialize["shared_secret"] = o.SharedSecret } diff --git a/api/model_get_external_tax_calculators_200_response.go b/api/model_get_external_tax_calculators_200_response.go index c6d5991b..c87e30a9 100644 --- a/api/model_get_external_tax_calculators_200_response.go +++ b/api/model_get_external_tax_calculators_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_external_tax_calculators_external_tax_calculator_id_200_response.go b/api/model_get_external_tax_calculators_external_tax_calculator_id_200_response.go index 7b4a6227..12bdb72c 100644 --- a/api/model_get_external_tax_calculators_external_tax_calculator_id_200_response.go +++ b/api/model_get_external_tax_calculators_external_tax_calculator_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_external_tax_calculators_external_tax_calculator_id_200_response_data.go b/api/model_get_external_tax_calculators_external_tax_calculator_id_200_response_data.go index c57d56e9..ef2d746a 100644 --- a/api/model_get_external_tax_calculators_external_tax_calculator_id_200_response_data.go +++ b/api/model_get_external_tax_calculators_external_tax_calculator_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_external_tax_calculators_external_tax_calculator_id_200_response_data_attributes.go b/api/model_get_external_tax_calculators_external_tax_calculator_id_200_response_data_attributes.go index c3bd01e8..06637b1b 100644 --- a/api/model_get_external_tax_calculators_external_tax_calculator_id_200_response_data_attributes.go +++ b/api/model_get_external_tax_calculators_external_tax_calculator_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,18 +22,24 @@ var _ MappedNullable = &GETExternalTaxCalculatorsExternalTaxCalculatorId200Respo type GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes struct { // The tax calculator's internal name. Name interface{} `json:"name,omitempty"` + // The tax calculator's type. + Type interface{} `json:"type,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` // The URL to the service that will compute the taxes. TaxCalculatorUrl interface{} `json:"tax_calculator_url,omitempty"` + // The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. + CircuitState interface{} `json:"circuit_state,omitempty"` + // The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. + CircuitFailureCount interface{} `json:"circuit_failure_count,omitempty"` // The shared secret used to sign the external request payload. SharedSecret interface{} `json:"shared_secret,omitempty"` } @@ -88,6 +94,39 @@ func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttribut o.Name = v } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -286,6 +325,72 @@ func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttribut o.TaxCalculatorUrl = v } +// GetCircuitState returns the CircuitState field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetCircuitState() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CircuitState +} + +// GetCircuitStateOk returns a tuple with the CircuitState field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetCircuitStateOk() (*interface{}, bool) { + if o == nil || IsNil(o.CircuitState) { + return nil, false + } + return &o.CircuitState, true +} + +// HasCircuitState returns a boolean if a field has been set. +func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) HasCircuitState() bool { + if o != nil && IsNil(o.CircuitState) { + return true + } + + return false +} + +// SetCircuitState gets a reference to the given interface{} and assigns it to the CircuitState field. +func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) SetCircuitState(v interface{}) { + o.CircuitState = v +} + +// GetCircuitFailureCount returns the CircuitFailureCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetCircuitFailureCount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CircuitFailureCount +} + +// GetCircuitFailureCountOk returns a tuple with the CircuitFailureCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetCircuitFailureCountOk() (*interface{}, bool) { + if o == nil || IsNil(o.CircuitFailureCount) { + return nil, false + } + return &o.CircuitFailureCount, true +} + +// HasCircuitFailureCount returns a boolean if a field has been set. +func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) HasCircuitFailureCount() bool { + if o != nil && IsNil(o.CircuitFailureCount) { + return true + } + + return false +} + +// SetCircuitFailureCount gets a reference to the given interface{} and assigns it to the CircuitFailureCount field. +func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) SetCircuitFailureCount(v interface{}) { + o.CircuitFailureCount = v +} + // GetSharedSecret returns the SharedSecret field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetSharedSecret() interface{} { if o == nil { @@ -332,6 +437,9 @@ func (o GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttribute if o.Name != nil { toSerialize["name"] = o.Name } + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } @@ -350,6 +458,12 @@ func (o GETExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttribute if o.TaxCalculatorUrl != nil { toSerialize["tax_calculator_url"] = o.TaxCalculatorUrl } + if o.CircuitState != nil { + toSerialize["circuit_state"] = o.CircuitState + } + if o.CircuitFailureCount != nil { + toSerialize["circuit_failure_count"] = o.CircuitFailureCount + } if o.SharedSecret != nil { toSerialize["shared_secret"] = o.SharedSecret } diff --git a/api/model_get_fixed_amount_promotions_200_response.go b/api/model_get_fixed_amount_promotions_200_response.go index 24e955f4..0f4ede78 100644 --- a/api/model_get_fixed_amount_promotions_200_response.go +++ b/api/model_get_fixed_amount_promotions_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_fixed_amount_promotions_fixed_amount_promotion_id_200_response.go b/api/model_get_fixed_amount_promotions_fixed_amount_promotion_id_200_response.go index 6f98138f..c1fc4158 100644 --- a/api/model_get_fixed_amount_promotions_fixed_amount_promotion_id_200_response.go +++ b/api/model_get_fixed_amount_promotions_fixed_amount_promotion_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_fixed_amount_promotions_fixed_amount_promotion_id_200_response_data.go b/api/model_get_fixed_amount_promotions_fixed_amount_promotion_id_200_response_data.go index 58aefb9a..c6eb63d1 100644 --- a/api/model_get_fixed_amount_promotions_fixed_amount_promotion_id_200_response_data.go +++ b/api/model_get_fixed_amount_promotions_fixed_amount_promotion_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTExternalPromotions201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTBuyXPayYPromotions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewGETFixedAmountPromotionsFixedAmountPromotionId200ResponseData instantiates a new GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData object @@ -177,9 +177,9 @@ func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData) SetAttri } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships { +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTExternalPromotions201ResponseDataRelationships + var ret POSTBuyXPayYPromotions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData) GetRelat // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool) { +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData) HasRelat return false } -// SetRelationships gets a reference to the given POSTExternalPromotions201ResponseDataRelationships and assigns it to the Relationships field. -func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_get_fixed_amount_promotions_fixed_amount_promotion_id_200_response_data_attributes.go b/api/model_get_fixed_amount_promotions_fixed_amount_promotion_id_200_response_data_attributes.go index 36b9897d..1b96569b 100644 --- a/api/model_get_fixed_amount_promotions_fixed_amount_promotion_id_200_response_data_attributes.go +++ b/api/model_get_fixed_amount_promotions_fixed_amount_promotion_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,29 +22,39 @@ var _ MappedNullable = &GETFixedAmountPromotionsFixedAmountPromotionId200Respons type GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes struct { // The promotion's internal name. Name interface{} `json:"name,omitempty"` + // The promotion's type. + Type interface{} `json:"type,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` // The activation date/time of this promotion. StartsAt interface{} `json:"starts_at,omitempty"` // The expiration date/time of this promotion (must be after starts_at). ExpiresAt interface{} `json:"expires_at,omitempty"` - // The total number of times this promotion can be applied. + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` // The number of times this promotion has been applied. TotalUsageCount interface{} `json:"total_usage_count,omitempty"` - // Indicates if the promotion is active. + // Indicates if the promotion is active (enabled and not expired). Active interface{} `json:"active,omitempty"` + // The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. + Status interface{} `json:"status,omitempty"` + // Time at which this resource was disabled. + DisabledAt interface{} `json:"disabled_at,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` - // The discount fixed amount to be applied, in cents + // The discount fixed amount to be applied, in cents. FixedAmountCents interface{} `json:"fixed_amount_cents,omitempty"` // The discount fixed amount to be applied, float. FixedAmountFloat interface{} `json:"fixed_amount_float,omitempty"` @@ -102,6 +112,39 @@ func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes o.Name = v } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetCurrencyCode() interface{} { if o == nil { @@ -135,6 +178,72 @@ func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes o.CurrencyCode = v } +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + // GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetStartsAt() interface{} { if o == nil { @@ -300,6 +409,72 @@ func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes o.Active = v } +// GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetStatus() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return &o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) HasStatus() bool { + if o != nil && IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given interface{} and assigns it to the Status field. +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetStatus(v interface{}) { + o.Status = v +} + +// GetDisabledAt returns the DisabledAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetDisabledAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DisabledAt +} + +// GetDisabledAtOk returns a tuple with the DisabledAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.DisabledAt) { + return nil, false + } + return &o.DisabledAt, true +} + +// HasDisabledAt returns a boolean if a field has been set. +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) HasDisabledAt() bool { + if o != nil && IsNil(o.DisabledAt) { + return true + } + + return false +} + +// SetDisabledAt gets a reference to the given interface{} and assigns it to the DisabledAt field. +func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetDisabledAt(v interface{}) { + o.DisabledAt = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -577,9 +752,18 @@ func (o GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) if o.Name != nil { toSerialize["name"] = o.Name } + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } if o.StartsAt != nil { toSerialize["starts_at"] = o.StartsAt } @@ -595,6 +779,12 @@ func (o GETFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) if o.Active != nil { toSerialize["active"] = o.Active } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.DisabledAt != nil { + toSerialize["disabled_at"] = o.DisabledAt + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_fixed_price_promotions_200_response.go b/api/model_get_fixed_price_promotions_200_response.go index 06c806ea..47c8c279 100644 --- a/api/model_get_fixed_price_promotions_200_response.go +++ b/api/model_get_fixed_price_promotions_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_fixed_price_promotions_fixed_price_promotion_id_200_response.go b/api/model_get_fixed_price_promotions_fixed_price_promotion_id_200_response.go index 3b1b2f02..0d14a633 100644 --- a/api/model_get_fixed_price_promotions_fixed_price_promotion_id_200_response.go +++ b/api/model_get_fixed_price_promotions_fixed_price_promotion_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_fixed_price_promotions_fixed_price_promotion_id_200_response_data.go b/api/model_get_fixed_price_promotions_fixed_price_promotion_id_200_response_data.go index bcb93028..d8b093c8 100644 --- a/api/model_get_fixed_price_promotions_fixed_price_promotion_id_200_response_data.go +++ b/api/model_get_fixed_price_promotions_fixed_price_promotion_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type GETFixedPricePromotionsFixedPricePromotionId200ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTFixedPricePromotions201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTBuyXPayYPromotions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewGETFixedPricePromotionsFixedPricePromotionId200ResponseData instantiates a new GETFixedPricePromotionsFixedPricePromotionId200ResponseData object @@ -177,9 +177,9 @@ func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseData) SetAttribu } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseData) GetRelationships() POSTFixedPricePromotions201ResponseDataRelationships { +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTFixedPricePromotions201ResponseDataRelationships + var ret POSTBuyXPayYPromotions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseData) GetRelatio // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseData) GetRelationshipsOk() (*POSTFixedPricePromotions201ResponseDataRelationships, bool) { +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseData) HasRelatio return false } -// SetRelationships gets a reference to the given POSTFixedPricePromotions201ResponseDataRelationships and assigns it to the Relationships field. -func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseData) SetRelationships(v POSTFixedPricePromotions201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_get_fixed_price_promotions_fixed_price_promotion_id_200_response_data_attributes.go b/api/model_get_fixed_price_promotions_fixed_price_promotion_id_200_response_data_attributes.go index bc4837cb..98bb09ed 100644 --- a/api/model_get_fixed_price_promotions_fixed_price_promotion_id_200_response_data_attributes.go +++ b/api/model_get_fixed_price_promotions_fixed_price_promotion_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,29 +22,39 @@ var _ MappedNullable = &GETFixedPricePromotionsFixedPricePromotionId200ResponseD type GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes struct { // The promotion's internal name. Name interface{} `json:"name,omitempty"` + // The promotion's type. + Type interface{} `json:"type,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` // The activation date/time of this promotion. StartsAt interface{} `json:"starts_at,omitempty"` // The expiration date/time of this promotion (must be after starts_at). ExpiresAt interface{} `json:"expires_at,omitempty"` - // The total number of times this promotion can be applied. + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` // The number of times this promotion has been applied. TotalUsageCount interface{} `json:"total_usage_count,omitempty"` - // Indicates if the promotion is active. + // Indicates if the promotion is active (enabled and not expired). Active interface{} `json:"active,omitempty"` + // The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. + Status interface{} `json:"status,omitempty"` + // Time at which this resource was disabled. + DisabledAt interface{} `json:"disabled_at,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` - // The price fixed amount to be applied on matching SKUs, in cents + // The price fixed amount to be applied on matching SKUs, in cents. FixedAmountCents interface{} `json:"fixed_amount_cents,omitempty"` // The discount fixed amount to be applied, float. FixedAmountFloat interface{} `json:"fixed_amount_float,omitempty"` @@ -102,6 +112,39 @@ func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) o.Name = v } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetCurrencyCode() interface{} { if o == nil { @@ -135,6 +178,72 @@ func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) o.CurrencyCode = v } +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + // GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetStartsAt() interface{} { if o == nil { @@ -300,6 +409,72 @@ func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) o.Active = v } +// GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetStatus() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return &o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) HasStatus() bool { + if o != nil && IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given interface{} and assigns it to the Status field. +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetStatus(v interface{}) { + o.Status = v +} + +// GetDisabledAt returns the DisabledAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetDisabledAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DisabledAt +} + +// GetDisabledAtOk returns a tuple with the DisabledAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.DisabledAt) { + return nil, false + } + return &o.DisabledAt, true +} + +// HasDisabledAt returns a boolean if a field has been set. +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) HasDisabledAt() bool { + if o != nil && IsNil(o.DisabledAt) { + return true + } + + return false +} + +// SetDisabledAt gets a reference to the given interface{} and assigns it to the DisabledAt field. +func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetDisabledAt(v interface{}) { + o.DisabledAt = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -577,9 +752,18 @@ func (o GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) T if o.Name != nil { toSerialize["name"] = o.Name } + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } if o.StartsAt != nil { toSerialize["starts_at"] = o.StartsAt } @@ -595,6 +779,12 @@ func (o GETFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) T if o.Active != nil { toSerialize["active"] = o.Active } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.DisabledAt != nil { + toSerialize["disabled_at"] = o.DisabledAt + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_flex_promotions_200_response.go b/api/model_get_flex_promotions_200_response.go new file mode 100644 index 00000000..df209c48 --- /dev/null +++ b/api/model_get_flex_promotions_200_response.go @@ -0,0 +1,126 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETFlexPromotions200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETFlexPromotions200Response{} + +// GETFlexPromotions200Response struct for GETFlexPromotions200Response +type GETFlexPromotions200Response struct { + Data interface{} `json:"data,omitempty"` +} + +// NewGETFlexPromotions200Response instantiates a new GETFlexPromotions200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETFlexPromotions200Response() *GETFlexPromotions200Response { + this := GETFlexPromotions200Response{} + return &this +} + +// NewGETFlexPromotions200ResponseWithDefaults instantiates a new GETFlexPromotions200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETFlexPromotions200ResponseWithDefaults() *GETFlexPromotions200Response { + this := GETFlexPromotions200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotions200Response) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotions200Response) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETFlexPromotions200Response) HasData() bool { + if o != nil && IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given interface{} and assigns it to the Data field. +func (o *GETFlexPromotions200Response) SetData(v interface{}) { + o.Data = v +} + +func (o GETFlexPromotions200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETFlexPromotions200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETFlexPromotions200Response struct { + value *GETFlexPromotions200Response + isSet bool +} + +func (v NullableGETFlexPromotions200Response) Get() *GETFlexPromotions200Response { + return v.value +} + +func (v *NullableGETFlexPromotions200Response) Set(val *GETFlexPromotions200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETFlexPromotions200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETFlexPromotions200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETFlexPromotions200Response(val *GETFlexPromotions200Response) *NullableGETFlexPromotions200Response { + return &NullableGETFlexPromotions200Response{value: val, isSet: true} +} + +func (v NullableGETFlexPromotions200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETFlexPromotions200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_flex_promotions_flex_promotion_id_200_response.go b/api/model_get_flex_promotions_flex_promotion_id_200_response.go new file mode 100644 index 00000000..56ac1a3e --- /dev/null +++ b/api/model_get_flex_promotions_flex_promotion_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETFlexPromotionsFlexPromotionId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETFlexPromotionsFlexPromotionId200Response{} + +// GETFlexPromotionsFlexPromotionId200Response struct for GETFlexPromotionsFlexPromotionId200Response +type GETFlexPromotionsFlexPromotionId200Response struct { + Data *GETFlexPromotionsFlexPromotionId200ResponseData `json:"data,omitempty"` +} + +// NewGETFlexPromotionsFlexPromotionId200Response instantiates a new GETFlexPromotionsFlexPromotionId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETFlexPromotionsFlexPromotionId200Response() *GETFlexPromotionsFlexPromotionId200Response { + this := GETFlexPromotionsFlexPromotionId200Response{} + return &this +} + +// NewGETFlexPromotionsFlexPromotionId200ResponseWithDefaults instantiates a new GETFlexPromotionsFlexPromotionId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETFlexPromotionsFlexPromotionId200ResponseWithDefaults() *GETFlexPromotionsFlexPromotionId200Response { + this := GETFlexPromotionsFlexPromotionId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *GETFlexPromotionsFlexPromotionId200Response) GetData() GETFlexPromotionsFlexPromotionId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret GETFlexPromotionsFlexPromotionId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETFlexPromotionsFlexPromotionId200Response) GetDataOk() (*GETFlexPromotionsFlexPromotionId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given GETFlexPromotionsFlexPromotionId200ResponseData and assigns it to the Data field. +func (o *GETFlexPromotionsFlexPromotionId200Response) SetData(v GETFlexPromotionsFlexPromotionId200ResponseData) { + o.Data = &v +} + +func (o GETFlexPromotionsFlexPromotionId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETFlexPromotionsFlexPromotionId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETFlexPromotionsFlexPromotionId200Response struct { + value *GETFlexPromotionsFlexPromotionId200Response + isSet bool +} + +func (v NullableGETFlexPromotionsFlexPromotionId200Response) Get() *GETFlexPromotionsFlexPromotionId200Response { + return v.value +} + +func (v *NullableGETFlexPromotionsFlexPromotionId200Response) Set(val *GETFlexPromotionsFlexPromotionId200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETFlexPromotionsFlexPromotionId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETFlexPromotionsFlexPromotionId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETFlexPromotionsFlexPromotionId200Response(val *GETFlexPromotionsFlexPromotionId200Response) *NullableGETFlexPromotionsFlexPromotionId200Response { + return &NullableGETFlexPromotionsFlexPromotionId200Response{value: val, isSet: true} +} + +func (v NullableGETFlexPromotionsFlexPromotionId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETFlexPromotionsFlexPromotionId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_flex_promotions_flex_promotion_id_200_response_data.go b/api/model_get_flex_promotions_flex_promotion_id_200_response_data.go new file mode 100644 index 00000000..3bf7df94 --- /dev/null +++ b/api/model_get_flex_promotions_flex_promotion_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETFlexPromotionsFlexPromotionId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETFlexPromotionsFlexPromotionId200ResponseData{} + +// GETFlexPromotionsFlexPromotionId200ResponseData struct for GETFlexPromotionsFlexPromotionId200ResponseData +type GETFlexPromotionsFlexPromotionId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTFlexPromotions201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewGETFlexPromotionsFlexPromotionId200ResponseData instantiates a new GETFlexPromotionsFlexPromotionId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETFlexPromotionsFlexPromotionId200ResponseData() *GETFlexPromotionsFlexPromotionId200ResponseData { + this := GETFlexPromotionsFlexPromotionId200ResponseData{} + return &this +} + +// NewGETFlexPromotionsFlexPromotionId200ResponseDataWithDefaults instantiates a new GETFlexPromotionsFlexPromotionId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETFlexPromotionsFlexPromotionId200ResponseDataWithDefaults() *GETFlexPromotionsFlexPromotionId200ResponseData { + this := GETFlexPromotionsFlexPromotionId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetAttributes() GETFlexPromotionsFlexPromotionId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret GETFlexPromotionsFlexPromotionId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetAttributesOk() (*GETFlexPromotionsFlexPromotionId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given GETFlexPromotionsFlexPromotionId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) SetAttributes(v GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetRelationships() POSTFlexPromotions201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTFlexPromotions201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) GetRelationshipsOk() (*POSTFlexPromotions201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTFlexPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseData) SetRelationships(v POSTFlexPromotions201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o GETFlexPromotionsFlexPromotionId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETFlexPromotionsFlexPromotionId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableGETFlexPromotionsFlexPromotionId200ResponseData struct { + value *GETFlexPromotionsFlexPromotionId200ResponseData + isSet bool +} + +func (v NullableGETFlexPromotionsFlexPromotionId200ResponseData) Get() *GETFlexPromotionsFlexPromotionId200ResponseData { + return v.value +} + +func (v *NullableGETFlexPromotionsFlexPromotionId200ResponseData) Set(val *GETFlexPromotionsFlexPromotionId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableGETFlexPromotionsFlexPromotionId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableGETFlexPromotionsFlexPromotionId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETFlexPromotionsFlexPromotionId200ResponseData(val *GETFlexPromotionsFlexPromotionId200ResponseData) *NullableGETFlexPromotionsFlexPromotionId200ResponseData { + return &NullableGETFlexPromotionsFlexPromotionId200ResponseData{value: val, isSet: true} +} + +func (v NullableGETFlexPromotionsFlexPromotionId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETFlexPromotionsFlexPromotionId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_flex_promotions_flex_promotion_id_200_response_data_attributes.go b/api/model_get_flex_promotions_flex_promotion_id_200_response_data_attributes.go new file mode 100644 index 00000000..3cde7a3c --- /dev/null +++ b/api/model_get_flex_promotions_flex_promotion_id_200_response_data_attributes.go @@ -0,0 +1,773 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETFlexPromotionsFlexPromotionId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETFlexPromotionsFlexPromotionId200ResponseDataAttributes{} + +// GETFlexPromotionsFlexPromotionId200ResponseDataAttributes struct for GETFlexPromotionsFlexPromotionId200ResponseDataAttributes +type GETFlexPromotionsFlexPromotionId200ResponseDataAttributes struct { + // The promotion's internal name. + Name interface{} `json:"name,omitempty"` + // The promotion's type. + Type interface{} `json:"type,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` + // The activation date/time of this promotion. + StartsAt interface{} `json:"starts_at,omitempty"` + // The expiration date/time of this promotion (must be after starts_at). + ExpiresAt interface{} `json:"expires_at,omitempty"` + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. + TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` + // The number of times this promotion has been applied. + TotalUsageCount interface{} `json:"total_usage_count,omitempty"` + // Indicates if the promotion is active (enabled and not expired). + Active interface{} `json:"active,omitempty"` + // The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. + Status interface{} `json:"status,omitempty"` + // The discount rule to be applied. + Rules interface{} `json:"rules,omitempty"` + // Time at which this resource was disabled. + DisabledAt interface{} `json:"disabled_at,omitempty"` + // Time at which the resource was created. + CreatedAt interface{} `json:"created_at,omitempty"` + // Time at which the resource was last updated. + UpdatedAt interface{} `json:"updated_at,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // The rule outcomes. + RuleOutcomes interface{} `json:"rule_outcomes,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewGETFlexPromotionsFlexPromotionId200ResponseDataAttributes instantiates a new GETFlexPromotionsFlexPromotionId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETFlexPromotionsFlexPromotionId200ResponseDataAttributes() *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes { + this := GETFlexPromotionsFlexPromotionId200ResponseDataAttributes{} + return &this +} + +// NewGETFlexPromotionsFlexPromotionId200ResponseDataAttributesWithDefaults instantiates a new GETFlexPromotionsFlexPromotionId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETFlexPromotionsFlexPromotionId200ResponseDataAttributesWithDefaults() *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes { + this := GETFlexPromotionsFlexPromotionId200ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasName() bool { + if o != nil && IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given interface{} and assigns it to the Name field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + +// GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetStartsAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.StartsAt +} + +// GetStartsAtOk returns a tuple with the StartsAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.StartsAt) { + return nil, false + } + return &o.StartsAt, true +} + +// HasStartsAt returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasStartsAt() bool { + if o != nil && IsNil(o.StartsAt) { + return true + } + + return false +} + +// SetStartsAt gets a reference to the given interface{} and assigns it to the StartsAt field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetStartsAt(v interface{}) { + o.StartsAt = v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetExpiresAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExpiresAt) { + return nil, false + } + return &o.ExpiresAt, true +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasExpiresAt() bool { + if o != nil && IsNil(o.ExpiresAt) { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given interface{} and assigns it to the ExpiresAt field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetExpiresAt(v interface{}) { + o.ExpiresAt = v +} + +// GetTotalUsageLimit returns the TotalUsageLimit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetTotalUsageLimit() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.TotalUsageLimit +} + +// GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetTotalUsageLimitOk() (*interface{}, bool) { + if o == nil || IsNil(o.TotalUsageLimit) { + return nil, false + } + return &o.TotalUsageLimit, true +} + +// HasTotalUsageLimit returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasTotalUsageLimit() bool { + if o != nil && IsNil(o.TotalUsageLimit) { + return true + } + + return false +} + +// SetTotalUsageLimit gets a reference to the given interface{} and assigns it to the TotalUsageLimit field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetTotalUsageLimit(v interface{}) { + o.TotalUsageLimit = v +} + +// GetTotalUsageCount returns the TotalUsageCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetTotalUsageCount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.TotalUsageCount +} + +// GetTotalUsageCountOk returns a tuple with the TotalUsageCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetTotalUsageCountOk() (*interface{}, bool) { + if o == nil || IsNil(o.TotalUsageCount) { + return nil, false + } + return &o.TotalUsageCount, true +} + +// HasTotalUsageCount returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasTotalUsageCount() bool { + if o != nil && IsNil(o.TotalUsageCount) { + return true + } + + return false +} + +// SetTotalUsageCount gets a reference to the given interface{} and assigns it to the TotalUsageCount field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetTotalUsageCount(v interface{}) { + o.TotalUsageCount = v +} + +// GetActive returns the Active field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetActive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Active +} + +// GetActiveOk returns a tuple with the Active field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetActiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Active) { + return nil, false + } + return &o.Active, true +} + +// HasActive returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasActive() bool { + if o != nil && IsNil(o.Active) { + return true + } + + return false +} + +// SetActive gets a reference to the given interface{} and assigns it to the Active field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetActive(v interface{}) { + o.Active = v +} + +// GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetStatus() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return &o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasStatus() bool { + if o != nil && IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given interface{} and assigns it to the Status field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetStatus(v interface{}) { + o.Status = v +} + +// GetRules returns the Rules field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetRules() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetRulesOk() (*interface{}, bool) { + if o == nil || IsNil(o.Rules) { + return nil, false + } + return &o.Rules, true +} + +// HasRules returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasRules() bool { + if o != nil && IsNil(o.Rules) { + return true + } + + return false +} + +// SetRules gets a reference to the given interface{} and assigns it to the Rules field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetRules(v interface{}) { + o.Rules = v +} + +// GetDisabledAt returns the DisabledAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetDisabledAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DisabledAt +} + +// GetDisabledAtOk returns a tuple with the DisabledAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.DisabledAt) { + return nil, false + } + return &o.DisabledAt, true +} + +// HasDisabledAt returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasDisabledAt() bool { + if o != nil && IsNil(o.DisabledAt) { + return true + } + + return false +} + +// SetDisabledAt gets a reference to the given interface{} and assigns it to the DisabledAt field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetDisabledAt(v interface{}) { + o.DisabledAt = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetCreatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return &o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasCreatedAt() bool { + if o != nil && IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given interface{} and assigns it to the CreatedAt field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetCreatedAt(v interface{}) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetUpdatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return &o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasUpdatedAt() bool { + if o != nil && IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given interface{} and assigns it to the UpdatedAt field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetUpdatedAt(v interface{}) { + o.UpdatedAt = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetRuleOutcomes returns the RuleOutcomes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetRuleOutcomes() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RuleOutcomes +} + +// GetRuleOutcomesOk returns a tuple with the RuleOutcomes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetRuleOutcomesOk() (*interface{}, bool) { + if o == nil || IsNil(o.RuleOutcomes) { + return nil, false + } + return &o.RuleOutcomes, true +} + +// HasRuleOutcomes returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasRuleOutcomes() bool { + if o != nil && IsNil(o.RuleOutcomes) { + return true + } + + return false +} + +// SetRuleOutcomes gets a reference to the given interface{} and assigns it to the RuleOutcomes field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetRuleOutcomes(v interface{}) { + o.RuleOutcomes = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } + if o.StartsAt != nil { + toSerialize["starts_at"] = o.StartsAt + } + if o.ExpiresAt != nil { + toSerialize["expires_at"] = o.ExpiresAt + } + if o.TotalUsageLimit != nil { + toSerialize["total_usage_limit"] = o.TotalUsageLimit + } + if o.TotalUsageCount != nil { + toSerialize["total_usage_count"] = o.TotalUsageCount + } + if o.Active != nil { + toSerialize["active"] = o.Active + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.Rules != nil { + toSerialize["rules"] = o.Rules + } + if o.DisabledAt != nil { + toSerialize["disabled_at"] = o.DisabledAt + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.RuleOutcomes != nil { + toSerialize["rule_outcomes"] = o.RuleOutcomes + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableGETFlexPromotionsFlexPromotionId200ResponseDataAttributes struct { + value *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes + isSet bool +} + +func (v NullableGETFlexPromotionsFlexPromotionId200ResponseDataAttributes) Get() *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes { + return v.value +} + +func (v *NullableGETFlexPromotionsFlexPromotionId200ResponseDataAttributes) Set(val *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullableGETFlexPromotionsFlexPromotionId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullableGETFlexPromotionsFlexPromotionId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETFlexPromotionsFlexPromotionId200ResponseDataAttributes(val *GETFlexPromotionsFlexPromotionId200ResponseDataAttributes) *NullableGETFlexPromotionsFlexPromotionId200ResponseDataAttributes { + return &NullableGETFlexPromotionsFlexPromotionId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullableGETFlexPromotionsFlexPromotionId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_free_gift_promotions_200_response.go b/api/model_get_free_gift_promotions_200_response.go index 6a9af192..3aedccf6 100644 --- a/api/model_get_free_gift_promotions_200_response.go +++ b/api/model_get_free_gift_promotions_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_free_gift_promotions_free_gift_promotion_id_200_response.go b/api/model_get_free_gift_promotions_free_gift_promotion_id_200_response.go index 30f14080..6503f80e 100644 --- a/api/model_get_free_gift_promotions_free_gift_promotion_id_200_response.go +++ b/api/model_get_free_gift_promotions_free_gift_promotion_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_free_gift_promotions_free_gift_promotion_id_200_response_data.go b/api/model_get_free_gift_promotions_free_gift_promotion_id_200_response_data.go index 9c3c38c8..a357a993 100644 --- a/api/model_get_free_gift_promotions_free_gift_promotion_id_200_response_data.go +++ b/api/model_get_free_gift_promotions_free_gift_promotion_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTFixedPricePromotions201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTBuyXPayYPromotions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewGETFreeGiftPromotionsFreeGiftPromotionId200ResponseData instantiates a new GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData object @@ -177,9 +177,9 @@ func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData) SetAttributes( } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData) GetRelationships() POSTFixedPricePromotions201ResponseDataRelationships { +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTFixedPricePromotions201ResponseDataRelationships + var ret POSTBuyXPayYPromotions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData) GetRelationshi // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData) GetRelationshipsOk() (*POSTFixedPricePromotions201ResponseDataRelationships, bool) { +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData) HasRelationshi return false } -// SetRelationships gets a reference to the given POSTFixedPricePromotions201ResponseDataRelationships and assigns it to the Relationships field. -func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData) SetRelationships(v POSTFixedPricePromotions201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_get_free_gift_promotions_free_gift_promotion_id_200_response_data_attributes.go b/api/model_get_free_gift_promotions_free_gift_promotion_id_200_response_data_attributes.go index fa0a19f7..972bf51b 100644 --- a/api/model_get_free_gift_promotions_free_gift_promotion_id_200_response_data_attributes.go +++ b/api/model_get_free_gift_promotions_free_gift_promotion_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,25 +22,35 @@ var _ MappedNullable = &GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataA type GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes struct { // The promotion's internal name. Name interface{} `json:"name,omitempty"` + // The promotion's type. + Type interface{} `json:"type,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` // The activation date/time of this promotion. StartsAt interface{} `json:"starts_at,omitempty"` // The expiration date/time of this promotion (must be after starts_at). ExpiresAt interface{} `json:"expires_at,omitempty"` - // The total number of times this promotion can be applied. + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` // The number of times this promotion has been applied. TotalUsageCount interface{} `json:"total_usage_count,omitempty"` - // Indicates if the promotion is active. + // Indicates if the promotion is active (enabled and not expired). Active interface{} `json:"active,omitempty"` + // The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. + Status interface{} `json:"status,omitempty"` + // Time at which this resource was disabled. + DisabledAt interface{} `json:"disabled_at,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -98,6 +108,39 @@ func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetN o.Name = v } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetCurrencyCode() interface{} { if o == nil { @@ -131,6 +174,72 @@ func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetC o.CurrencyCode = v } +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + // GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetStartsAt() interface{} { if o == nil { @@ -296,6 +405,72 @@ func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetA o.Active = v } +// GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetStatus() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return &o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) HasStatus() bool { + if o != nil && IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given interface{} and assigns it to the Status field. +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetStatus(v interface{}) { + o.Status = v +} + +// GetDisabledAt returns the DisabledAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetDisabledAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DisabledAt +} + +// GetDisabledAtOk returns a tuple with the DisabledAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.DisabledAt) { + return nil, false + } + return &o.DisabledAt, true +} + +// HasDisabledAt returns a boolean if a field has been set. +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) HasDisabledAt() bool { + if o != nil && IsNil(o.DisabledAt) { + return true + } + + return false +} + +// SetDisabledAt gets a reference to the given interface{} and assigns it to the DisabledAt field. +func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetDisabledAt(v interface{}) { + o.DisabledAt = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -507,9 +682,18 @@ func (o GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) ToMap if o.Name != nil { toSerialize["name"] = o.Name } + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } if o.StartsAt != nil { toSerialize["starts_at"] = o.StartsAt } @@ -525,6 +709,12 @@ func (o GETFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) ToMap if o.Active != nil { toSerialize["active"] = o.Active } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.DisabledAt != nil { + toSerialize["disabled_at"] = o.DisabledAt + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_free_shipping_promotions_200_response.go b/api/model_get_free_shipping_promotions_200_response.go index cbf7d39b..b6631df3 100644 --- a/api/model_get_free_shipping_promotions_200_response.go +++ b/api/model_get_free_shipping_promotions_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_free_shipping_promotions_free_shipping_promotion_id_200_response.go b/api/model_get_free_shipping_promotions_free_shipping_promotion_id_200_response.go index d4278579..5cb20c77 100644 --- a/api/model_get_free_shipping_promotions_free_shipping_promotion_id_200_response.go +++ b/api/model_get_free_shipping_promotions_free_shipping_promotion_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_free_shipping_promotions_free_shipping_promotion_id_200_response_data.go b/api/model_get_free_shipping_promotions_free_shipping_promotion_id_200_response_data.go index d1eb3c6a..1d235283 100644 --- a/api/model_get_free_shipping_promotions_free_shipping_promotion_id_200_response_data.go +++ b/api/model_get_free_shipping_promotions_free_shipping_promotion_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTExternalPromotions201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTFreeShippingPromotions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewGETFreeShippingPromotionsFreeShippingPromotionId200ResponseData instantiates a new GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData object @@ -177,9 +177,9 @@ func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData) SetAtt } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships { +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData) GetRelationships() POSTFreeShippingPromotions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTExternalPromotions201ResponseDataRelationships + var ret POSTFreeShippingPromotions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData) GetRel // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool) { +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData) GetRelationshipsOk() (*POSTFreeShippingPromotions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData) HasRel return false } -// SetRelationships gets a reference to the given POSTExternalPromotions201ResponseDataRelationships and assigns it to the Relationships field. -func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTFreeShippingPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseData) SetRelationships(v POSTFreeShippingPromotions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_get_free_shipping_promotions_free_shipping_promotion_id_200_response_data_attributes.go b/api/model_get_free_shipping_promotions_free_shipping_promotion_id_200_response_data_attributes.go index 223938db..27abfc8b 100644 --- a/api/model_get_free_shipping_promotions_free_shipping_promotion_id_200_response_data_attributes.go +++ b/api/model_get_free_shipping_promotions_free_shipping_promotion_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,25 +22,35 @@ var _ MappedNullable = &GETFreeShippingPromotionsFreeShippingPromotionId200Respo type GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes struct { // The promotion's internal name. Name interface{} `json:"name,omitempty"` + // The promotion's type. + Type interface{} `json:"type,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` // The activation date/time of this promotion. StartsAt interface{} `json:"starts_at,omitempty"` // The expiration date/time of this promotion (must be after starts_at). ExpiresAt interface{} `json:"expires_at,omitempty"` - // The total number of times this promotion can be applied. + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` // The number of times this promotion has been applied. TotalUsageCount interface{} `json:"total_usage_count,omitempty"` - // Indicates if the promotion is active. + // Indicates if the promotion is active (enabled and not expired). Active interface{} `json:"active,omitempty"` + // The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. + Status interface{} `json:"status,omitempty"` + // Time at which this resource was disabled. + DisabledAt interface{} `json:"disabled_at,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -96,6 +106,39 @@ func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttribut o.Name = v } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetCurrencyCode() interface{} { if o == nil { @@ -129,6 +172,72 @@ func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttribut o.CurrencyCode = v } +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + // GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetStartsAt() interface{} { if o == nil { @@ -294,6 +403,72 @@ func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttribut o.Active = v } +// GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetStatus() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return &o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) HasStatus() bool { + if o != nil && IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given interface{} and assigns it to the Status field. +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetStatus(v interface{}) { + o.Status = v +} + +// GetDisabledAt returns the DisabledAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetDisabledAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DisabledAt +} + +// GetDisabledAtOk returns a tuple with the DisabledAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.DisabledAt) { + return nil, false + } + return &o.DisabledAt, true +} + +// HasDisabledAt returns a boolean if a field has been set. +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) HasDisabledAt() bool { + if o != nil && IsNil(o.DisabledAt) { + return true + } + + return false +} + +// SetDisabledAt gets a reference to the given interface{} and assigns it to the DisabledAt field. +func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetDisabledAt(v interface{}) { + o.DisabledAt = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -472,9 +647,18 @@ func (o GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttribute if o.Name != nil { toSerialize["name"] = o.Name } + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } if o.StartsAt != nil { toSerialize["starts_at"] = o.StartsAt } @@ -490,6 +674,12 @@ func (o GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttribute if o.Active != nil { toSerialize["active"] = o.Active } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.DisabledAt != nil { + toSerialize["disabled_at"] = o.DisabledAt + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_geocoders_200_response.go b/api/model_get_geocoders_200_response.go index 79d513e5..63a50a0e 100644 --- a/api/model_get_geocoders_200_response.go +++ b/api/model_get_geocoders_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_geocoders_geocoder_id_200_response.go b/api/model_get_geocoders_geocoder_id_200_response.go index cd0de68a..30eed556 100644 --- a/api/model_get_geocoders_geocoder_id_200_response.go +++ b/api/model_get_geocoders_geocoder_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_geocoders_geocoder_id_200_response_data.go b/api/model_get_geocoders_geocoder_id_200_response_data.go index 525d8a69..eaadb48e 100644 --- a/api/model_get_geocoders_geocoder_id_200_response_data.go +++ b/api/model_get_geocoders_geocoder_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_gift_card_recipients_200_response.go b/api/model_get_gift_card_recipients_200_response.go index b8a2403e..72f3f881 100644 --- a/api/model_get_gift_card_recipients_200_response.go +++ b/api/model_get_gift_card_recipients_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_gift_card_recipients_gift_card_recipient_id_200_response.go b/api/model_get_gift_card_recipients_gift_card_recipient_id_200_response.go index 728a5ee9..96ae78f5 100644 --- a/api/model_get_gift_card_recipients_gift_card_recipient_id_200_response.go +++ b/api/model_get_gift_card_recipients_gift_card_recipient_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_gift_card_recipients_gift_card_recipient_id_200_response_data.go b/api/model_get_gift_card_recipients_gift_card_recipient_id_200_response_data.go index 6c8a3cff..05f51484 100644 --- a/api/model_get_gift_card_recipients_gift_card_recipient_id_200_response_data.go +++ b/api/model_get_gift_card_recipients_gift_card_recipient_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_gift_cards_200_response.go b/api/model_get_gift_cards_200_response.go index f7d40e95..57b4c39c 100644 --- a/api/model_get_gift_cards_200_response.go +++ b/api/model_get_gift_cards_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_gift_cards_gift_card_id_200_response.go b/api/model_get_gift_cards_gift_card_id_200_response.go index 79c15c27..d9ad0280 100644 --- a/api/model_get_gift_cards_gift_card_id_200_response.go +++ b/api/model_get_gift_cards_gift_card_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_gift_cards_gift_card_id_200_response_data.go b/api/model_get_gift_cards_gift_card_id_200_response_data.go index 6489a6f0..15d7e138 100644 --- a/api/model_get_gift_cards_gift_card_id_200_response_data.go +++ b/api/model_get_gift_cards_gift_card_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_gift_cards_gift_card_id_200_response_data_attributes.go b/api/model_get_gift_cards_gift_card_id_200_response_data_attributes.go index 35d65eca..2208e458 100644 --- a/api/model_get_gift_cards_gift_card_id_200_response_data_attributes.go +++ b/api/model_get_gift_cards_gift_card_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &GETGiftCardsGiftCardId200ResponseDataAttributes{} // GETGiftCardsGiftCardId200ResponseDataAttributes struct for GETGiftCardsGiftCardId200ResponseDataAttributes type GETGiftCardsGiftCardId200ResponseDataAttributes struct { - // The gift card status, one of 'draft', 'inactive', 'active', or 'redeemed'. + // The gift card status. One of 'draft' (default), 'inactive', 'active', or 'redeemed'. Status interface{} `json:"status,omitempty"` // The gift card code UUID. If not set, it's automatically generated. Code interface{} `json:"code,omitempty"` @@ -46,10 +46,14 @@ type GETGiftCardsGiftCardId200ResponseDataAttributes struct { FormattedBalanceMax interface{} `json:"formatted_balance_max,omitempty"` // The gift card balance log. Tracks all the gift card transactions. BalanceLog interface{} `json:"balance_log,omitempty"` + // The gift card usage log. Tracks all the gift card usage actions by orders. + UsageLog interface{} `json:"usage_log,omitempty"` // Indicates if the gift card can be used only one. SingleUse interface{} `json:"single_use,omitempty"` // Indicates if the gift card can be recharged. Rechargeable interface{} `json:"rechargeable,omitempty"` + // Indicates if redeemed gift card amount is distributed for tax calculation. + DistributeDiscount interface{} `json:"distribute_discount,omitempty"` // The URL of an image that represents the gift card. ImageUrl interface{} `json:"image_url,omitempty"` // Time at which the gift card will expire. @@ -62,7 +66,7 @@ type GETGiftCardsGiftCardId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -514,6 +518,39 @@ func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) SetBalanceLog(v interf o.BalanceLog = v } +// GetUsageLog returns the UsageLog field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) GetUsageLog() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UsageLog +} + +// GetUsageLogOk returns a tuple with the UsageLog field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) GetUsageLogOk() (*interface{}, bool) { + if o == nil || IsNil(o.UsageLog) { + return nil, false + } + return &o.UsageLog, true +} + +// HasUsageLog returns a boolean if a field has been set. +func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) HasUsageLog() bool { + if o != nil && IsNil(o.UsageLog) { + return true + } + + return false +} + +// SetUsageLog gets a reference to the given interface{} and assigns it to the UsageLog field. +func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) SetUsageLog(v interface{}) { + o.UsageLog = v +} + // GetSingleUse returns the SingleUse field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) GetSingleUse() interface{} { if o == nil { @@ -580,6 +617,39 @@ func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) SetRechargeable(v inte o.Rechargeable = v } +// GetDistributeDiscount returns the DistributeDiscount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) GetDistributeDiscount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DistributeDiscount +} + +// GetDistributeDiscountOk returns a tuple with the DistributeDiscount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) GetDistributeDiscountOk() (*interface{}, bool) { + if o == nil || IsNil(o.DistributeDiscount) { + return nil, false + } + return &o.DistributeDiscount, true +} + +// HasDistributeDiscount returns a boolean if a field has been set. +func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) HasDistributeDiscount() bool { + if o != nil && IsNil(o.DistributeDiscount) { + return true + } + + return false +} + +// SetDistributeDiscount gets a reference to the given interface{} and assigns it to the DistributeDiscount field. +func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) SetDistributeDiscount(v interface{}) { + o.DistributeDiscount = v +} + // GetImageUrl returns the ImageUrl field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETGiftCardsGiftCardId200ResponseDataAttributes) GetImageUrl() interface{} { if o == nil { @@ -893,12 +963,18 @@ func (o GETGiftCardsGiftCardId200ResponseDataAttributes) ToMap() (map[string]int if o.BalanceLog != nil { toSerialize["balance_log"] = o.BalanceLog } + if o.UsageLog != nil { + toSerialize["usage_log"] = o.UsageLog + } if o.SingleUse != nil { toSerialize["single_use"] = o.SingleUse } if o.Rechargeable != nil { toSerialize["rechargeable"] = o.Rechargeable } + if o.DistributeDiscount != nil { + toSerialize["distribute_discount"] = o.DistributeDiscount + } if o.ImageUrl != nil { toSerialize["image_url"] = o.ImageUrl } diff --git a/api/model_get_google_geocoders_200_response.go b/api/model_get_google_geocoders_200_response.go index 87d4eccd..aed538eb 100644 --- a/api/model_get_google_geocoders_200_response.go +++ b/api/model_get_google_geocoders_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_google_geocoders_google_geocoder_id_200_response.go b/api/model_get_google_geocoders_google_geocoder_id_200_response.go index e1bb7b0e..8eaa0783 100644 --- a/api/model_get_google_geocoders_google_geocoder_id_200_response.go +++ b/api/model_get_google_geocoders_google_geocoder_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_google_geocoders_google_geocoder_id_200_response_data.go b/api/model_get_google_geocoders_google_geocoder_id_200_response_data.go index e73a9fd7..772bbb02 100644 --- a/api/model_get_google_geocoders_google_geocoder_id_200_response_data.go +++ b/api/model_get_google_geocoders_google_geocoder_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_imports_200_response.go b/api/model_get_imports_200_response.go index 2ca88f43..9f15bba9 100644 --- a/api/model_get_imports_200_response.go +++ b/api/model_get_imports_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_imports_import_id_200_response.go b/api/model_get_imports_import_id_200_response.go index db199963..a6014b2a 100644 --- a/api/model_get_imports_import_id_200_response.go +++ b/api/model_get_imports_import_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_imports_import_id_200_response_data.go b/api/model_get_imports_import_id_200_response_data.go index 172a2b72..35521e40 100644 --- a/api/model_get_imports_import_id_200_response_data.go +++ b/api/model_get_imports_import_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type GETImportsImportId200ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *GETImportsImportId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTCleanups201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTExports201ResponseDataRelationships `json:"relationships,omitempty"` } // NewGETImportsImportId200ResponseData instantiates a new GETImportsImportId200ResponseData object @@ -177,9 +177,9 @@ func (o *GETImportsImportId200ResponseData) SetAttributes(v GETImportsImportId20 } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *GETImportsImportId200ResponseData) GetRelationships() POSTCleanups201ResponseDataRelationships { +func (o *GETImportsImportId200ResponseData) GetRelationships() POSTExports201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTCleanups201ResponseDataRelationships + var ret POSTExports201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *GETImportsImportId200ResponseData) GetRelationships() POSTCleanups201Re // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETImportsImportId200ResponseData) GetRelationshipsOk() (*POSTCleanups201ResponseDataRelationships, bool) { +func (o *GETImportsImportId200ResponseData) GetRelationshipsOk() (*POSTExports201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *GETImportsImportId200ResponseData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given POSTCleanups201ResponseDataRelationships and assigns it to the Relationships field. -func (o *GETImportsImportId200ResponseData) SetRelationships(v POSTCleanups201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTExports201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETImportsImportId200ResponseData) SetRelationships(v POSTExports201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_get_imports_import_id_200_response_data_attributes.go b/api/model_get_imports_import_id_200_response_data_attributes.go index de241fab..fddd9652 100644 --- a/api/model_get_imports_import_id_200_response_data_attributes.go +++ b/api/model_get_imports_import_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,6 +22,8 @@ var _ MappedNullable = &GETImportsImportId200ResponseDataAttributes{} type GETImportsImportId200ResponseDataAttributes struct { // The type of resource being imported. ResourceType interface{} `json:"resource_type,omitempty"` + // The format of the import inputs one of 'json' (default) or 'csv'. + Format interface{} `json:"format,omitempty"` // The ID of the parent resource to be associated with imported data. ParentResourceId interface{} `json:"parent_resource_id,omitempty"` // The import job status. One of 'pending' (default), 'in_progress', 'interrupted', or 'completed'. @@ -40,16 +42,12 @@ type GETImportsImportId200ResponseDataAttributes struct { ErrorsCount interface{} `json:"errors_count,omitempty"` // Indicates the number of import warnings, if any. WarningsCount interface{} `json:"warnings_count,omitempty"` - // Indicates the number of records that have been destroyed, if any. - DestroyedCount interface{} `json:"destroyed_count,omitempty"` // Indicates the number of records that have been processed (created or updated). ProcessedCount interface{} `json:"processed_count,omitempty"` // Contains the import errors, if any. ErrorsLog interface{} `json:"errors_log,omitempty"` // Contains the import warnings, if any. WarningsLog interface{} `json:"warnings_log,omitempty"` - // Indicates if the import should cleanup records that are not included in the inputs array. - CleanupRecords interface{} `json:"cleanup_records,omitempty"` // The URL the the raw inputs file, which will be generated at import start. AttachmentUrl interface{} `json:"attachment_url,omitempty"` // Time at which the resource was created. @@ -58,7 +56,7 @@ type GETImportsImportId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -114,6 +112,39 @@ func (o *GETImportsImportId200ResponseDataAttributes) SetResourceType(v interfac o.ResourceType = v } +// GetFormat returns the Format field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETImportsImportId200ResponseDataAttributes) GetFormat() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Format +} + +// GetFormatOk returns a tuple with the Format field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETImportsImportId200ResponseDataAttributes) GetFormatOk() (*interface{}, bool) { + if o == nil || IsNil(o.Format) { + return nil, false + } + return &o.Format, true +} + +// HasFormat returns a boolean if a field has been set. +func (o *GETImportsImportId200ResponseDataAttributes) HasFormat() bool { + if o != nil && IsNil(o.Format) { + return true + } + + return false +} + +// SetFormat gets a reference to the given interface{} and assigns it to the Format field. +func (o *GETImportsImportId200ResponseDataAttributes) SetFormat(v interface{}) { + o.Format = v +} + // GetParentResourceId returns the ParentResourceId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETImportsImportId200ResponseDataAttributes) GetParentResourceId() interface{} { if o == nil { @@ -411,39 +442,6 @@ func (o *GETImportsImportId200ResponseDataAttributes) SetWarningsCount(v interfa o.WarningsCount = v } -// GetDestroyedCount returns the DestroyedCount field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETImportsImportId200ResponseDataAttributes) GetDestroyedCount() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.DestroyedCount -} - -// GetDestroyedCountOk returns a tuple with the DestroyedCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETImportsImportId200ResponseDataAttributes) GetDestroyedCountOk() (*interface{}, bool) { - if o == nil || IsNil(o.DestroyedCount) { - return nil, false - } - return &o.DestroyedCount, true -} - -// HasDestroyedCount returns a boolean if a field has been set. -func (o *GETImportsImportId200ResponseDataAttributes) HasDestroyedCount() bool { - if o != nil && IsNil(o.DestroyedCount) { - return true - } - - return false -} - -// SetDestroyedCount gets a reference to the given interface{} and assigns it to the DestroyedCount field. -func (o *GETImportsImportId200ResponseDataAttributes) SetDestroyedCount(v interface{}) { - o.DestroyedCount = v -} - // GetProcessedCount returns the ProcessedCount field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETImportsImportId200ResponseDataAttributes) GetProcessedCount() interface{} { if o == nil { @@ -543,39 +541,6 @@ func (o *GETImportsImportId200ResponseDataAttributes) SetWarningsLog(v interface o.WarningsLog = v } -// GetCleanupRecords returns the CleanupRecords field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETImportsImportId200ResponseDataAttributes) GetCleanupRecords() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.CleanupRecords -} - -// GetCleanupRecordsOk returns a tuple with the CleanupRecords field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETImportsImportId200ResponseDataAttributes) GetCleanupRecordsOk() (*interface{}, bool) { - if o == nil || IsNil(o.CleanupRecords) { - return nil, false - } - return &o.CleanupRecords, true -} - -// HasCleanupRecords returns a boolean if a field has been set. -func (o *GETImportsImportId200ResponseDataAttributes) HasCleanupRecords() bool { - if o != nil && IsNil(o.CleanupRecords) { - return true - } - - return false -} - -// SetCleanupRecords gets a reference to the given interface{} and assigns it to the CleanupRecords field. -func (o *GETImportsImportId200ResponseDataAttributes) SetCleanupRecords(v interface{}) { - o.CleanupRecords = v -} - // GetAttachmentUrl returns the AttachmentUrl field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETImportsImportId200ResponseDataAttributes) GetAttachmentUrl() interface{} { if o == nil { @@ -787,6 +752,9 @@ func (o GETImportsImportId200ResponseDataAttributes) ToMap() (map[string]interfa if o.ResourceType != nil { toSerialize["resource_type"] = o.ResourceType } + if o.Format != nil { + toSerialize["format"] = o.Format + } if o.ParentResourceId != nil { toSerialize["parent_resource_id"] = o.ParentResourceId } @@ -814,9 +782,6 @@ func (o GETImportsImportId200ResponseDataAttributes) ToMap() (map[string]interfa if o.WarningsCount != nil { toSerialize["warnings_count"] = o.WarningsCount } - if o.DestroyedCount != nil { - toSerialize["destroyed_count"] = o.DestroyedCount - } if o.ProcessedCount != nil { toSerialize["processed_count"] = o.ProcessedCount } @@ -826,9 +791,6 @@ func (o GETImportsImportId200ResponseDataAttributes) ToMap() (map[string]interfa if o.WarningsLog != nil { toSerialize["warnings_log"] = o.WarningsLog } - if o.CleanupRecords != nil { - toSerialize["cleanup_records"] = o.CleanupRecords - } if o.AttachmentUrl != nil { toSerialize["attachment_url"] = o.AttachmentUrl } diff --git a/api/model_get_in_stock_subscriptions_200_response.go b/api/model_get_in_stock_subscriptions_200_response.go index fec44b6f..def91165 100644 --- a/api/model_get_in_stock_subscriptions_200_response.go +++ b/api/model_get_in_stock_subscriptions_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_in_stock_subscriptions_in_stock_subscription_id_200_response.go b/api/model_get_in_stock_subscriptions_in_stock_subscription_id_200_response.go index 0de95470..23479594 100644 --- a/api/model_get_in_stock_subscriptions_in_stock_subscription_id_200_response.go +++ b/api/model_get_in_stock_subscriptions_in_stock_subscription_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_in_stock_subscriptions_in_stock_subscription_id_200_response_data.go b/api/model_get_in_stock_subscriptions_in_stock_subscription_id_200_response_data.go index 07781c26..0b38611c 100644 --- a/api/model_get_in_stock_subscriptions_in_stock_subscription_id_200_response_data.go +++ b/api/model_get_in_stock_subscriptions_in_stock_subscription_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_in_stock_subscriptions_in_stock_subscription_id_200_response_data_attributes.go b/api/model_get_in_stock_subscriptions_in_stock_subscription_id_200_response_data_attributes.go index 253ecaa2..5832e1c4 100644 --- a/api/model_get_in_stock_subscriptions_in_stock_subscription_id_200_response_data_attributes.go +++ b/api/model_get_in_stock_subscriptions_in_stock_subscription_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,11 +20,11 @@ var _ MappedNullable = &GETInStockSubscriptionsInStockSubscriptionId200ResponseD // GETInStockSubscriptionsInStockSubscriptionId200ResponseDataAttributes struct for GETInStockSubscriptionsInStockSubscriptionId200ResponseDataAttributes type GETInStockSubscriptionsInStockSubscriptionId200ResponseDataAttributes struct { - // The subscription status. One of 'active' (default), 'inactive', or 'notified' + // The subscription status. One of 'active' (default), 'inactive', or 'notified'. Status interface{} `json:"status,omitempty"` - // The email of the associated customer, replace the relationship + // The email of the associated customer, replace the relationship. CustomerEmail interface{} `json:"customer_email,omitempty"` - // The code of the associated SKU, replace the relationship + // The code of the associated SKU, replace the relationship. SkuCode interface{} `json:"sku_code,omitempty"` // The threshold at which to trigger the back in stock notification. StockThreshold interface{} `json:"stock_threshold,omitempty"` @@ -34,7 +34,7 @@ type GETInStockSubscriptionsInStockSubscriptionId200ResponseDataAttributes struc UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_inventory_models_200_response.go b/api/model_get_inventory_models_200_response.go index 480cb7bc..67df3d33 100644 --- a/api/model_get_inventory_models_200_response.go +++ b/api/model_get_inventory_models_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_inventory_models_inventory_model_id_200_response.go b/api/model_get_inventory_models_inventory_model_id_200_response.go index 8efe04ed..03a1cb47 100644 --- a/api/model_get_inventory_models_inventory_model_id_200_response.go +++ b/api/model_get_inventory_models_inventory_model_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_inventory_models_inventory_model_id_200_response_data.go b/api/model_get_inventory_models_inventory_model_id_200_response_data.go index 63f7580c..c6052358 100644 --- a/api/model_get_inventory_models_inventory_model_id_200_response_data.go +++ b/api/model_get_inventory_models_inventory_model_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_inventory_models_inventory_model_id_200_response_data_attributes.go b/api/model_get_inventory_models_inventory_model_id_200_response_data_attributes.go index 45ff2a1c..505a9bff 100644 --- a/api/model_get_inventory_models_inventory_model_id_200_response_data_attributes.go +++ b/api/model_get_inventory_models_inventory_model_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,15 +24,21 @@ type GETInventoryModelsInventoryModelId200ResponseDataAttributes struct { Name interface{} `json:"name,omitempty"` // The inventory model's shipping strategy: one between 'no_split' (default), 'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'. Strategy interface{} `json:"strategy,omitempty"` - // The maximum number of stock locations used for inventory computation + // The maximum number of stock locations used for inventory computation. StockLocationsCutoff interface{} `json:"stock_locations_cutoff,omitempty"` + // The duration in seconds of the generated stock reservations. + StockReservationCutoff interface{} `json:"stock_reservation_cutoff,omitempty"` + // Indicates if the the stock transfers must be put on hold automatically with the associated shipment. + PutStockTransfersOnHold interface{} `json:"put_stock_transfers_on_hold,omitempty"` + // Indicates if the the stock will be decremented manually after the order approval. + ManualStockDecrement interface{} `json:"manual_stock_decrement,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -154,6 +160,105 @@ func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) SetStockLo o.StockLocationsCutoff = v } +// GetStockReservationCutoff returns the StockReservationCutoff field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) GetStockReservationCutoff() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.StockReservationCutoff +} + +// GetStockReservationCutoffOk returns a tuple with the StockReservationCutoff field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) GetStockReservationCutoffOk() (*interface{}, bool) { + if o == nil || IsNil(o.StockReservationCutoff) { + return nil, false + } + return &o.StockReservationCutoff, true +} + +// HasStockReservationCutoff returns a boolean if a field has been set. +func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) HasStockReservationCutoff() bool { + if o != nil && IsNil(o.StockReservationCutoff) { + return true + } + + return false +} + +// SetStockReservationCutoff gets a reference to the given interface{} and assigns it to the StockReservationCutoff field. +func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) SetStockReservationCutoff(v interface{}) { + o.StockReservationCutoff = v +} + +// GetPutStockTransfersOnHold returns the PutStockTransfersOnHold field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) GetPutStockTransfersOnHold() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PutStockTransfersOnHold +} + +// GetPutStockTransfersOnHoldOk returns a tuple with the PutStockTransfersOnHold field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) GetPutStockTransfersOnHoldOk() (*interface{}, bool) { + if o == nil || IsNil(o.PutStockTransfersOnHold) { + return nil, false + } + return &o.PutStockTransfersOnHold, true +} + +// HasPutStockTransfersOnHold returns a boolean if a field has been set. +func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) HasPutStockTransfersOnHold() bool { + if o != nil && IsNil(o.PutStockTransfersOnHold) { + return true + } + + return false +} + +// SetPutStockTransfersOnHold gets a reference to the given interface{} and assigns it to the PutStockTransfersOnHold field. +func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) SetPutStockTransfersOnHold(v interface{}) { + o.PutStockTransfersOnHold = v +} + +// GetManualStockDecrement returns the ManualStockDecrement field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) GetManualStockDecrement() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ManualStockDecrement +} + +// GetManualStockDecrementOk returns a tuple with the ManualStockDecrement field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) GetManualStockDecrementOk() (*interface{}, bool) { + if o == nil || IsNil(o.ManualStockDecrement) { + return nil, false + } + return &o.ManualStockDecrement, true +} + +// HasManualStockDecrement returns a boolean if a field has been set. +func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) HasManualStockDecrement() bool { + if o != nil && IsNil(o.ManualStockDecrement) { + return true + } + + return false +} + +// SetManualStockDecrement gets a reference to the given interface{} and assigns it to the ManualStockDecrement field. +func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) SetManualStockDecrement(v interface{}) { + o.ManualStockDecrement = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETInventoryModelsInventoryModelId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -338,6 +443,15 @@ func (o GETInventoryModelsInventoryModelId200ResponseDataAttributes) ToMap() (ma if o.StockLocationsCutoff != nil { toSerialize["stock_locations_cutoff"] = o.StockLocationsCutoff } + if o.StockReservationCutoff != nil { + toSerialize["stock_reservation_cutoff"] = o.StockReservationCutoff + } + if o.PutStockTransfersOnHold != nil { + toSerialize["put_stock_transfers_on_hold"] = o.PutStockTransfersOnHold + } + if o.ManualStockDecrement != nil { + toSerialize["manual_stock_decrement"] = o.ManualStockDecrement + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_inventory_return_locations_200_response.go b/api/model_get_inventory_return_locations_200_response.go index 2949cb9e..b35d82fb 100644 --- a/api/model_get_inventory_return_locations_200_response.go +++ b/api/model_get_inventory_return_locations_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_inventory_return_locations_inventory_return_location_id_200_response.go b/api/model_get_inventory_return_locations_inventory_return_location_id_200_response.go index f78ed7d1..27c10bb2 100644 --- a/api/model_get_inventory_return_locations_inventory_return_location_id_200_response.go +++ b/api/model_get_inventory_return_locations_inventory_return_location_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_inventory_return_locations_inventory_return_location_id_200_response_data.go b/api/model_get_inventory_return_locations_inventory_return_location_id_200_response_data.go index b7f57628..80ce3aec 100644 --- a/api/model_get_inventory_return_locations_inventory_return_location_id_200_response_data.go +++ b/api/model_get_inventory_return_locations_inventory_return_location_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_inventory_return_locations_inventory_return_location_id_200_response_data_attributes.go b/api/model_get_inventory_return_locations_inventory_return_location_id_200_response_data_attributes.go index c4eb645e..1210e7d8 100644 --- a/api/model_get_inventory_return_locations_inventory_return_location_id_200_response_data_attributes.go +++ b/api/model_get_inventory_return_locations_inventory_return_location_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,7 +28,7 @@ type GETInventoryReturnLocationsInventoryReturnLocationId200ResponseDataAttribut UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_inventory_stock_locations_200_response.go b/api/model_get_inventory_stock_locations_200_response.go index b0f11d45..f2cda5c7 100644 --- a/api/model_get_inventory_stock_locations_200_response.go +++ b/api/model_get_inventory_stock_locations_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_inventory_stock_locations_inventory_stock_location_id_200_response.go b/api/model_get_inventory_stock_locations_inventory_stock_location_id_200_response.go index 18e256e7..51c42672 100644 --- a/api/model_get_inventory_stock_locations_inventory_stock_location_id_200_response.go +++ b/api/model_get_inventory_stock_locations_inventory_stock_location_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_inventory_stock_locations_inventory_stock_location_id_200_response_data.go b/api/model_get_inventory_stock_locations_inventory_stock_location_id_200_response_data.go index cbbae153..52ef3153 100644 --- a/api/model_get_inventory_stock_locations_inventory_stock_location_id_200_response_data.go +++ b/api/model_get_inventory_stock_locations_inventory_stock_location_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_inventory_stock_locations_inventory_stock_location_id_200_response_data_attributes.go b/api/model_get_inventory_stock_locations_inventory_stock_location_id_200_response_data_attributes.go index 2b17fc15..7295ce1a 100644 --- a/api/model_get_inventory_stock_locations_inventory_stock_location_id_200_response_data_attributes.go +++ b/api/model_get_inventory_stock_locations_inventory_stock_location_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -30,7 +30,7 @@ type GETInventoryStockLocationsInventoryStockLocationId200ResponseDataAttributes UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_klarna_gateways_200_response.go b/api/model_get_klarna_gateways_200_response.go index abc082ae..1f0a9687 100644 --- a/api/model_get_klarna_gateways_200_response.go +++ b/api/model_get_klarna_gateways_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_klarna_gateways_klarna_gateway_id_200_response.go b/api/model_get_klarna_gateways_klarna_gateway_id_200_response.go index f3a8e23f..d3cbca8d 100644 --- a/api/model_get_klarna_gateways_klarna_gateway_id_200_response.go +++ b/api/model_get_klarna_gateways_klarna_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_klarna_gateways_klarna_gateway_id_200_response_data.go b/api/model_get_klarna_gateways_klarna_gateway_id_200_response_data.go index 401acf24..d6a33c93 100644 --- a/api/model_get_klarna_gateways_klarna_gateway_id_200_response_data.go +++ b/api/model_get_klarna_gateways_klarna_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_klarna_gateways_klarna_gateway_id_200_response_data_attributes.go b/api/model_get_klarna_gateways_klarna_gateway_id_200_response_data_attributes.go index 302d348e..16775041 100644 --- a/api/model_get_klarna_gateways_klarna_gateway_id_200_response_data_attributes.go +++ b/api/model_get_klarna_gateways_klarna_gateway_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,7 +28,7 @@ type GETKlarnaGatewaysKlarnaGatewayId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_klarna_payments_200_response.go b/api/model_get_klarna_payments_200_response.go index bcd9fb4c..a0db8b4a 100644 --- a/api/model_get_klarna_payments_200_response.go +++ b/api/model_get_klarna_payments_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_klarna_payments_klarna_payment_id_200_response.go b/api/model_get_klarna_payments_klarna_payment_id_200_response.go index 58873521..0f6b450a 100644 --- a/api/model_get_klarna_payments_klarna_payment_id_200_response.go +++ b/api/model_get_klarna_payments_klarna_payment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_klarna_payments_klarna_payment_id_200_response_data.go b/api/model_get_klarna_payments_klarna_payment_id_200_response_data.go index 3456a8c2..404e6b83 100644 --- a/api/model_get_klarna_payments_klarna_payment_id_200_response_data.go +++ b/api/model_get_klarna_payments_klarna_payment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_klarna_payments_klarna_payment_id_200_response_data_attributes.go b/api/model_get_klarna_payments_klarna_payment_id_200_response_data_attributes.go index 30fffa48..48f3be7d 100644 --- a/api/model_get_klarna_payments_klarna_payment_id_200_response_data_attributes.go +++ b/api/model_get_klarna_payments_klarna_payment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttribute // GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes struct for GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes type GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes struct { - // The identifier of the payment session, useful to updated it. + // The identifier of the payment session. SessionId interface{} `json:"session_id,omitempty"` // The public token linked to your API credential. Available upon session creation. ClientToken interface{} `json:"client_token,omitempty"` @@ -30,13 +30,7 @@ type GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes struct { AuthToken interface{} `json:"auth_token,omitempty"` // Indicates if the order current amount differs form the one of the created payment intent. MismatchedAmounts interface{} `json:"mismatched_amounts,omitempty"` - // The amount of the associated payment intent, in cents. - IntentAmountCents interface{} `json:"intent_amount_cents,omitempty"` - // The amount of the associated payment intent, float. - IntentAmountFloat interface{} `json:"intent_amount_float,omitempty"` - // The amount of the associated payment intent, formatted. - FormattedIntentAmount interface{} `json:"formatted_intent_amount,omitempty"` - // Information about the payment instrument used in the transaction + // Information about the payment instrument used in the transaction. PaymentInstrument interface{} `json:"payment_instrument,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` @@ -44,7 +38,7 @@ type GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -232,105 +226,6 @@ func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) SetMismatche o.MismatchedAmounts = v } -// GetIntentAmountCents returns the IntentAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) GetIntentAmountCents() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.IntentAmountCents -} - -// GetIntentAmountCentsOk returns a tuple with the IntentAmountCents field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) GetIntentAmountCentsOk() (*interface{}, bool) { - if o == nil || IsNil(o.IntentAmountCents) { - return nil, false - } - return &o.IntentAmountCents, true -} - -// HasIntentAmountCents returns a boolean if a field has been set. -func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) HasIntentAmountCents() bool { - if o != nil && IsNil(o.IntentAmountCents) { - return true - } - - return false -} - -// SetIntentAmountCents gets a reference to the given interface{} and assigns it to the IntentAmountCents field. -func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) SetIntentAmountCents(v interface{}) { - o.IntentAmountCents = v -} - -// GetIntentAmountFloat returns the IntentAmountFloat field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) GetIntentAmountFloat() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.IntentAmountFloat -} - -// GetIntentAmountFloatOk returns a tuple with the IntentAmountFloat field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) GetIntentAmountFloatOk() (*interface{}, bool) { - if o == nil || IsNil(o.IntentAmountFloat) { - return nil, false - } - return &o.IntentAmountFloat, true -} - -// HasIntentAmountFloat returns a boolean if a field has been set. -func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) HasIntentAmountFloat() bool { - if o != nil && IsNil(o.IntentAmountFloat) { - return true - } - - return false -} - -// SetIntentAmountFloat gets a reference to the given interface{} and assigns it to the IntentAmountFloat field. -func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) SetIntentAmountFloat(v interface{}) { - o.IntentAmountFloat = v -} - -// GetFormattedIntentAmount returns the FormattedIntentAmount field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) GetFormattedIntentAmount() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.FormattedIntentAmount -} - -// GetFormattedIntentAmountOk returns a tuple with the FormattedIntentAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) GetFormattedIntentAmountOk() (*interface{}, bool) { - if o == nil || IsNil(o.FormattedIntentAmount) { - return nil, false - } - return &o.FormattedIntentAmount, true -} - -// HasFormattedIntentAmount returns a boolean if a field has been set. -func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) HasFormattedIntentAmount() bool { - if o != nil && IsNil(o.FormattedIntentAmount) { - return true - } - - return false -} - -// SetFormattedIntentAmount gets a reference to the given interface{} and assigns it to the FormattedIntentAmount field. -func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) SetFormattedIntentAmount(v interface{}) { - o.FormattedIntentAmount = v -} - // GetPaymentInstrument returns the PaymentInstrument field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) GetPaymentInstrument() interface{} { if o == nil { @@ -554,15 +449,6 @@ func (o GETKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes) ToMap() (map[ if o.MismatchedAmounts != nil { toSerialize["mismatched_amounts"] = o.MismatchedAmounts } - if o.IntentAmountCents != nil { - toSerialize["intent_amount_cents"] = o.IntentAmountCents - } - if o.IntentAmountFloat != nil { - toSerialize["intent_amount_float"] = o.IntentAmountFloat - } - if o.FormattedIntentAmount != nil { - toSerialize["formatted_intent_amount"] = o.FormattedIntentAmount - } if o.PaymentInstrument != nil { toSerialize["payment_instrument"] = o.PaymentInstrument } diff --git a/api/model_get_line_item_options_200_response.go b/api/model_get_line_item_options_200_response.go index 91c0e4fc..352acffd 100644 --- a/api/model_get_line_item_options_200_response.go +++ b/api/model_get_line_item_options_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_line_item_options_line_item_option_id_200_response.go b/api/model_get_line_item_options_line_item_option_id_200_response.go index 90829387..fe1a494e 100644 --- a/api/model_get_line_item_options_line_item_option_id_200_response.go +++ b/api/model_get_line_item_options_line_item_option_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_line_item_options_line_item_option_id_200_response_data.go b/api/model_get_line_item_options_line_item_option_id_200_response_data.go index 27a9c384..7122f644 100644 --- a/api/model_get_line_item_options_line_item_option_id_200_response_data.go +++ b/api/model_get_line_item_options_line_item_option_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_line_item_options_line_item_option_id_200_response_data_attributes.go b/api/model_get_line_item_options_line_item_option_id_200_response_data_attributes.go index 9dcd7b05..d0c57c56 100644 --- a/api/model_get_line_item_options_line_item_option_id_200_response_data_attributes.go +++ b/api/model_get_line_item_options_line_item_option_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,11 +22,11 @@ var _ MappedNullable = &GETLineItemOptionsLineItemOptionId200ResponseDataAttribu type GETLineItemOptionsLineItemOptionId200ResponseDataAttributes struct { // The name of the line item option. When blank, it gets populated with the name of the associated SKU option. Name interface{} `json:"name,omitempty"` - // The line item option's quantity + // The line item option's quantity. Quantity interface{} `json:"quantity,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the order's market. CurrencyCode interface{} `json:"currency_code,omitempty"` - // The unit amount of the line item option, in cents. When you add a line item option to an order, this is automatically populated from associated SKU option's price. + // The unit amount of the line item option, in cents. When you add a line item option to an order, this is automatically populated from associated SKU option's price. Cannot be passed by sales channels. UnitAmountCents interface{} `json:"unit_amount_cents,omitempty"` // The unit amount of the line item option, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce. UnitAmountFloat interface{} `json:"unit_amount_float,omitempty"` @@ -50,7 +50,7 @@ type GETLineItemOptionsLineItemOptionId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_line_items_200_response.go b/api/model_get_line_items_200_response.go index a20c0f70..701b5090 100644 --- a/api/model_get_line_items_200_response.go +++ b/api/model_get_line_items_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_line_items_line_item_id_200_response.go b/api/model_get_line_items_line_item_id_200_response.go index 69db106d..035c93d8 100644 --- a/api/model_get_line_items_line_item_id_200_response.go +++ b/api/model_get_line_items_line_item_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_line_items_line_item_id_200_response_data.go b/api/model_get_line_items_line_item_id_200_response_data.go index 13aaffe4..e8406126 100644 --- a/api/model_get_line_items_line_item_id_200_response_data.go +++ b/api/model_get_line_items_line_item_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_line_items_line_item_id_200_response_data_attributes.go b/api/model_get_line_items_line_item_id_200_response_data_attributes.go index d0ace11c..0d0540df 100644 --- a/api/model_get_line_items_line_item_id_200_response_data_attributes.go +++ b/api/model_get_line_items_line_item_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,15 +26,23 @@ type GETLineItemsLineItemId200ResponseDataAttributes struct { BundleCode interface{} `json:"bundle_code,omitempty"` // The line item quantity. Quantity interface{} `json:"quantity,omitempty"` + // When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'. + ExternalPrice interface{} `json:"_external_price,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the order's market. CurrencyCode interface{} `json:"currency_code,omitempty"` - // The unit amount of the line item, in cents. Can be specified without an item, otherwise is automatically populated from the price list associated to the order's market. + // The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. UnitAmountCents interface{} `json:"unit_amount_cents,omitempty"` // The unit amount of the line item, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce. UnitAmountFloat interface{} `json:"unit_amount_float,omitempty"` // The unit amount of the line item, formatted. This can be useful to display the amount with currency in you views. FormattedUnitAmount interface{} `json:"formatted_unit_amount,omitempty"` - // The options amount of the line item, in cents. + // The compared price amount, in cents. Useful to display a percentage discount. + CompareAtAmountCents interface{} `json:"compare_at_amount_cents,omitempty"` + // The compared price amount, float. + CompareAtAmountFloat interface{} `json:"compare_at_amount_float,omitempty"` + // The compared price amount, formatted. + FormattedCompareAtAmount interface{} `json:"formatted_compare_at_amount,omitempty"` + // The options amount of the line item, in cents. Cannot be passed by sales channels. OptionsAmountCents interface{} `json:"options_amount_cents,omitempty"` // The options amount of the line item, float. OptionsAmountFloat interface{} `json:"options_amount_float,omitempty"` @@ -68,17 +76,23 @@ type GETLineItemsLineItemId200ResponseDataAttributes struct { TaxRate interface{} `json:"tax_rate,omitempty"` // The tax breakdown for this line item (if calculated). TaxBreakdown interface{} `json:"tax_breakdown,omitempty"` - // The type of the associate item. Can be one of 'skus', 'bundles', 'shipments', 'payment_methods', 'adjustments', 'gift_cards', or a valid promotion type. + // The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'. ItemType interface{} `json:"item_type,omitempty"` // The frequency which generates a subscription. Must be supported by existing associated subscription_model. Frequency interface{} `json:"frequency,omitempty"` + // The coupon code, if any, used to trigger this promotion line item. null for other line item types or if the promotion line item wasn't triggered by a coupon. + CouponCode interface{} `json:"coupon_code,omitempty"` + // The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. + CircuitState interface{} `json:"circuit_state,omitempty"` + // The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. + CircuitFailureCount interface{} `json:"circuit_failure_count,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -200,6 +214,39 @@ func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetQuantity(v interfac o.Quantity = v } +// GetExternalPrice returns the ExternalPrice field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetExternalPrice() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ExternalPrice +} + +// GetExternalPriceOk returns a tuple with the ExternalPrice field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetExternalPriceOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExternalPrice) { + return nil, false + } + return &o.ExternalPrice, true +} + +// HasExternalPrice returns a boolean if a field has been set. +func (o *GETLineItemsLineItemId200ResponseDataAttributes) HasExternalPrice() bool { + if o != nil && IsNil(o.ExternalPrice) { + return true + } + + return false +} + +// SetExternalPrice gets a reference to the given interface{} and assigns it to the ExternalPrice field. +func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetExternalPrice(v interface{}) { + o.ExternalPrice = v +} + // GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCurrencyCode() interface{} { if o == nil { @@ -332,6 +379,105 @@ func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetFormattedUnitAmount o.FormattedUnitAmount = v } +// GetCompareAtAmountCents returns the CompareAtAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCompareAtAmountCents() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CompareAtAmountCents +} + +// GetCompareAtAmountCentsOk returns a tuple with the CompareAtAmountCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCompareAtAmountCentsOk() (*interface{}, bool) { + if o == nil || IsNil(o.CompareAtAmountCents) { + return nil, false + } + return &o.CompareAtAmountCents, true +} + +// HasCompareAtAmountCents returns a boolean if a field has been set. +func (o *GETLineItemsLineItemId200ResponseDataAttributes) HasCompareAtAmountCents() bool { + if o != nil && IsNil(o.CompareAtAmountCents) { + return true + } + + return false +} + +// SetCompareAtAmountCents gets a reference to the given interface{} and assigns it to the CompareAtAmountCents field. +func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetCompareAtAmountCents(v interface{}) { + o.CompareAtAmountCents = v +} + +// GetCompareAtAmountFloat returns the CompareAtAmountFloat field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCompareAtAmountFloat() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CompareAtAmountFloat +} + +// GetCompareAtAmountFloatOk returns a tuple with the CompareAtAmountFloat field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCompareAtAmountFloatOk() (*interface{}, bool) { + if o == nil || IsNil(o.CompareAtAmountFloat) { + return nil, false + } + return &o.CompareAtAmountFloat, true +} + +// HasCompareAtAmountFloat returns a boolean if a field has been set. +func (o *GETLineItemsLineItemId200ResponseDataAttributes) HasCompareAtAmountFloat() bool { + if o != nil && IsNil(o.CompareAtAmountFloat) { + return true + } + + return false +} + +// SetCompareAtAmountFloat gets a reference to the given interface{} and assigns it to the CompareAtAmountFloat field. +func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetCompareAtAmountFloat(v interface{}) { + o.CompareAtAmountFloat = v +} + +// GetFormattedCompareAtAmount returns the FormattedCompareAtAmount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetFormattedCompareAtAmount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.FormattedCompareAtAmount +} + +// GetFormattedCompareAtAmountOk returns a tuple with the FormattedCompareAtAmount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetFormattedCompareAtAmountOk() (*interface{}, bool) { + if o == nil || IsNil(o.FormattedCompareAtAmount) { + return nil, false + } + return &o.FormattedCompareAtAmount, true +} + +// HasFormattedCompareAtAmount returns a boolean if a field has been set. +func (o *GETLineItemsLineItemId200ResponseDataAttributes) HasFormattedCompareAtAmount() bool { + if o != nil && IsNil(o.FormattedCompareAtAmount) { + return true + } + + return false +} + +// SetFormattedCompareAtAmount gets a reference to the given interface{} and assigns it to the FormattedCompareAtAmount field. +func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetFormattedCompareAtAmount(v interface{}) { + o.FormattedCompareAtAmount = v +} + // GetOptionsAmountCents returns the OptionsAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetOptionsAmountCents() interface{} { if o == nil { @@ -959,6 +1105,105 @@ func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetFrequency(v interfa o.Frequency = v } +// GetCouponCode returns the CouponCode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCouponCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CouponCode +} + +// GetCouponCodeOk returns a tuple with the CouponCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCouponCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.CouponCode) { + return nil, false + } + return &o.CouponCode, true +} + +// HasCouponCode returns a boolean if a field has been set. +func (o *GETLineItemsLineItemId200ResponseDataAttributes) HasCouponCode() bool { + if o != nil && IsNil(o.CouponCode) { + return true + } + + return false +} + +// SetCouponCode gets a reference to the given interface{} and assigns it to the CouponCode field. +func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetCouponCode(v interface{}) { + o.CouponCode = v +} + +// GetCircuitState returns the CircuitState field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCircuitState() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CircuitState +} + +// GetCircuitStateOk returns a tuple with the CircuitState field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCircuitStateOk() (*interface{}, bool) { + if o == nil || IsNil(o.CircuitState) { + return nil, false + } + return &o.CircuitState, true +} + +// HasCircuitState returns a boolean if a field has been set. +func (o *GETLineItemsLineItemId200ResponseDataAttributes) HasCircuitState() bool { + if o != nil && IsNil(o.CircuitState) { + return true + } + + return false +} + +// SetCircuitState gets a reference to the given interface{} and assigns it to the CircuitState field. +func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetCircuitState(v interface{}) { + o.CircuitState = v +} + +// GetCircuitFailureCount returns the CircuitFailureCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCircuitFailureCount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CircuitFailureCount +} + +// GetCircuitFailureCountOk returns a tuple with the CircuitFailureCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCircuitFailureCountOk() (*interface{}, bool) { + if o == nil || IsNil(o.CircuitFailureCount) { + return nil, false + } + return &o.CircuitFailureCount, true +} + +// HasCircuitFailureCount returns a boolean if a field has been set. +func (o *GETLineItemsLineItemId200ResponseDataAttributes) HasCircuitFailureCount() bool { + if o != nil && IsNil(o.CircuitFailureCount) { + return true + } + + return false +} + +// SetCircuitFailureCount gets a reference to the given interface{} and assigns it to the CircuitFailureCount field. +func (o *GETLineItemsLineItemId200ResponseDataAttributes) SetCircuitFailureCount(v interface{}) { + o.CircuitFailureCount = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETLineItemsLineItemId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -1143,6 +1388,9 @@ func (o GETLineItemsLineItemId200ResponseDataAttributes) ToMap() (map[string]int if o.Quantity != nil { toSerialize["quantity"] = o.Quantity } + if o.ExternalPrice != nil { + toSerialize["_external_price"] = o.ExternalPrice + } if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } @@ -1155,6 +1403,15 @@ func (o GETLineItemsLineItemId200ResponseDataAttributes) ToMap() (map[string]int if o.FormattedUnitAmount != nil { toSerialize["formatted_unit_amount"] = o.FormattedUnitAmount } + if o.CompareAtAmountCents != nil { + toSerialize["compare_at_amount_cents"] = o.CompareAtAmountCents + } + if o.CompareAtAmountFloat != nil { + toSerialize["compare_at_amount_float"] = o.CompareAtAmountFloat + } + if o.FormattedCompareAtAmount != nil { + toSerialize["formatted_compare_at_amount"] = o.FormattedCompareAtAmount + } if o.OptionsAmountCents != nil { toSerialize["options_amount_cents"] = o.OptionsAmountCents } @@ -1212,6 +1469,15 @@ func (o GETLineItemsLineItemId200ResponseDataAttributes) ToMap() (map[string]int if o.Frequency != nil { toSerialize["frequency"] = o.Frequency } + if o.CouponCode != nil { + toSerialize["coupon_code"] = o.CouponCode + } + if o.CircuitState != nil { + toSerialize["circuit_state"] = o.CircuitState + } + if o.CircuitFailureCount != nil { + toSerialize["circuit_failure_count"] = o.CircuitFailureCount + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_links_200_response.go b/api/model_get_links_200_response.go new file mode 100644 index 00000000..cc795cfe --- /dev/null +++ b/api/model_get_links_200_response.go @@ -0,0 +1,126 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETLinks200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETLinks200Response{} + +// GETLinks200Response struct for GETLinks200Response +type GETLinks200Response struct { + Data interface{} `json:"data,omitempty"` +} + +// NewGETLinks200Response instantiates a new GETLinks200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETLinks200Response() *GETLinks200Response { + this := GETLinks200Response{} + return &this +} + +// NewGETLinks200ResponseWithDefaults instantiates a new GETLinks200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETLinks200ResponseWithDefaults() *GETLinks200Response { + this := GETLinks200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinks200Response) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinks200Response) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETLinks200Response) HasData() bool { + if o != nil && IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given interface{} and assigns it to the Data field. +func (o *GETLinks200Response) SetData(v interface{}) { + o.Data = v +} + +func (o GETLinks200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETLinks200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETLinks200Response struct { + value *GETLinks200Response + isSet bool +} + +func (v NullableGETLinks200Response) Get() *GETLinks200Response { + return v.value +} + +func (v *NullableGETLinks200Response) Set(val *GETLinks200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETLinks200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETLinks200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETLinks200Response(val *GETLinks200Response) *NullableGETLinks200Response { + return &NullableGETLinks200Response{value: val, isSet: true} +} + +func (v NullableGETLinks200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETLinks200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_links_link_id_200_response.go b/api/model_get_links_link_id_200_response.go new file mode 100644 index 00000000..0138bcce --- /dev/null +++ b/api/model_get_links_link_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETLinksLinkId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETLinksLinkId200Response{} + +// GETLinksLinkId200Response struct for GETLinksLinkId200Response +type GETLinksLinkId200Response struct { + Data *GETLinksLinkId200ResponseData `json:"data,omitempty"` +} + +// NewGETLinksLinkId200Response instantiates a new GETLinksLinkId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETLinksLinkId200Response() *GETLinksLinkId200Response { + this := GETLinksLinkId200Response{} + return &this +} + +// NewGETLinksLinkId200ResponseWithDefaults instantiates a new GETLinksLinkId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETLinksLinkId200ResponseWithDefaults() *GETLinksLinkId200Response { + this := GETLinksLinkId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *GETLinksLinkId200Response) GetData() GETLinksLinkId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret GETLinksLinkId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETLinksLinkId200Response) GetDataOk() (*GETLinksLinkId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETLinksLinkId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given GETLinksLinkId200ResponseData and assigns it to the Data field. +func (o *GETLinksLinkId200Response) SetData(v GETLinksLinkId200ResponseData) { + o.Data = &v +} + +func (o GETLinksLinkId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETLinksLinkId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETLinksLinkId200Response struct { + value *GETLinksLinkId200Response + isSet bool +} + +func (v NullableGETLinksLinkId200Response) Get() *GETLinksLinkId200Response { + return v.value +} + +func (v *NullableGETLinksLinkId200Response) Set(val *GETLinksLinkId200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETLinksLinkId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETLinksLinkId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETLinksLinkId200Response(val *GETLinksLinkId200Response) *NullableGETLinksLinkId200Response { + return &NullableGETLinksLinkId200Response{value: val, isSet: true} +} + +func (v NullableGETLinksLinkId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETLinksLinkId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_links_link_id_200_response_data.go b/api/model_get_links_link_id_200_response_data.go new file mode 100644 index 00000000..b98fcc79 --- /dev/null +++ b/api/model_get_links_link_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETLinksLinkId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETLinksLinkId200ResponseData{} + +// GETLinksLinkId200ResponseData struct for GETLinksLinkId200ResponseData +type GETLinksLinkId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *GETLinksLinkId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTLinks201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewGETLinksLinkId200ResponseData instantiates a new GETLinksLinkId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETLinksLinkId200ResponseData() *GETLinksLinkId200ResponseData { + this := GETLinksLinkId200ResponseData{} + return &this +} + +// NewGETLinksLinkId200ResponseDataWithDefaults instantiates a new GETLinksLinkId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETLinksLinkId200ResponseDataWithDefaults() *GETLinksLinkId200ResponseData { + this := GETLinksLinkId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinksLinkId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinksLinkId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *GETLinksLinkId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinksLinkId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinksLinkId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETLinksLinkId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *GETLinksLinkId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETLinksLinkId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *GETLinksLinkId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *GETLinksLinkId200ResponseData) GetAttributes() GETLinksLinkId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret GETLinksLinkId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETLinksLinkId200ResponseData) GetAttributesOk() (*GETLinksLinkId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given GETLinksLinkId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *GETLinksLinkId200ResponseData) SetAttributes(v GETLinksLinkId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *GETLinksLinkId200ResponseData) GetRelationships() POSTLinks201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTLinks201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETLinksLinkId200ResponseData) GetRelationshipsOk() (*POSTLinks201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTLinks201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETLinksLinkId200ResponseData) SetRelationships(v POSTLinks201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o GETLinksLinkId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETLinksLinkId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableGETLinksLinkId200ResponseData struct { + value *GETLinksLinkId200ResponseData + isSet bool +} + +func (v NullableGETLinksLinkId200ResponseData) Get() *GETLinksLinkId200ResponseData { + return v.value +} + +func (v *NullableGETLinksLinkId200ResponseData) Set(val *GETLinksLinkId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableGETLinksLinkId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableGETLinksLinkId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETLinksLinkId200ResponseData(val *GETLinksLinkId200ResponseData) *NullableGETLinksLinkId200ResponseData { + return &NullableGETLinksLinkId200ResponseData{value: val, isSet: true} +} + +func (v NullableGETLinksLinkId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETLinksLinkId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_links_link_id_200_response_data_attributes.go b/api/model_get_links_link_id_200_response_data_attributes.go new file mode 100644 index 00000000..e8f46393 --- /dev/null +++ b/api/model_get_links_link_id_200_response_data_attributes.go @@ -0,0 +1,735 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETLinksLinkId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETLinksLinkId200ResponseDataAttributes{} + +// GETLinksLinkId200ResponseDataAttributes struct for GETLinksLinkId200ResponseDataAttributes +type GETLinksLinkId200ResponseDataAttributes struct { + // The link internal name. + Name interface{} `json:"name,omitempty"` + // The link application client id, used to fetch JWT. + ClientId interface{} `json:"client_id,omitempty"` + // The link application scope, used to fetch JWT. + Scope interface{} `json:"scope,omitempty"` + // The activation date/time of this link. + StartsAt interface{} `json:"starts_at,omitempty"` + // The expiration date/time of this link (must be after starts_at). + ExpiresAt interface{} `json:"expires_at,omitempty"` + // Indicates if the link is active (enabled and not expired). + Active interface{} `json:"active,omitempty"` + // The link status. One of 'disabled', 'expired', 'pending', or 'active'. + Status interface{} `json:"status,omitempty"` + // The link URL second level domain. + Domain interface{} `json:"domain,omitempty"` + // The link URL. + Url interface{} `json:"url,omitempty"` + // The type of the associated item. One of 'orders', 'skus', or 'sku_lists'. + ItemType interface{} `json:"item_type,omitempty"` + // The link params to be passed in URL the query string. + Params interface{} `json:"params,omitempty"` + // Time at which this resource was disabled. + DisabledAt interface{} `json:"disabled_at,omitempty"` + // Time at which the resource was created. + CreatedAt interface{} `json:"created_at,omitempty"` + // Time at which the resource was last updated. + UpdatedAt interface{} `json:"updated_at,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewGETLinksLinkId200ResponseDataAttributes instantiates a new GETLinksLinkId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETLinksLinkId200ResponseDataAttributes() *GETLinksLinkId200ResponseDataAttributes { + this := GETLinksLinkId200ResponseDataAttributes{} + return &this +} + +// NewGETLinksLinkId200ResponseDataAttributesWithDefaults instantiates a new GETLinksLinkId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETLinksLinkId200ResponseDataAttributesWithDefaults() *GETLinksLinkId200ResponseDataAttributes { + this := GETLinksLinkId200ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinksLinkId200ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinksLinkId200ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseDataAttributes) HasName() bool { + if o != nil && IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given interface{} and assigns it to the Name field. +func (o *GETLinksLinkId200ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetClientId returns the ClientId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinksLinkId200ResponseDataAttributes) GetClientId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinksLinkId200ResponseDataAttributes) GetClientIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.ClientId) { + return nil, false + } + return &o.ClientId, true +} + +// HasClientId returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseDataAttributes) HasClientId() bool { + if o != nil && IsNil(o.ClientId) { + return true + } + + return false +} + +// SetClientId gets a reference to the given interface{} and assigns it to the ClientId field. +func (o *GETLinksLinkId200ResponseDataAttributes) SetClientId(v interface{}) { + o.ClientId = v +} + +// GetScope returns the Scope field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinksLinkId200ResponseDataAttributes) GetScope() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Scope +} + +// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinksLinkId200ResponseDataAttributes) GetScopeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Scope) { + return nil, false + } + return &o.Scope, true +} + +// HasScope returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseDataAttributes) HasScope() bool { + if o != nil && IsNil(o.Scope) { + return true + } + + return false +} + +// SetScope gets a reference to the given interface{} and assigns it to the Scope field. +func (o *GETLinksLinkId200ResponseDataAttributes) SetScope(v interface{}) { + o.Scope = v +} + +// GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinksLinkId200ResponseDataAttributes) GetStartsAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.StartsAt +} + +// GetStartsAtOk returns a tuple with the StartsAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinksLinkId200ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.StartsAt) { + return nil, false + } + return &o.StartsAt, true +} + +// HasStartsAt returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseDataAttributes) HasStartsAt() bool { + if o != nil && IsNil(o.StartsAt) { + return true + } + + return false +} + +// SetStartsAt gets a reference to the given interface{} and assigns it to the StartsAt field. +func (o *GETLinksLinkId200ResponseDataAttributes) SetStartsAt(v interface{}) { + o.StartsAt = v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinksLinkId200ResponseDataAttributes) GetExpiresAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinksLinkId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExpiresAt) { + return nil, false + } + return &o.ExpiresAt, true +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseDataAttributes) HasExpiresAt() bool { + if o != nil && IsNil(o.ExpiresAt) { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given interface{} and assigns it to the ExpiresAt field. +func (o *GETLinksLinkId200ResponseDataAttributes) SetExpiresAt(v interface{}) { + o.ExpiresAt = v +} + +// GetActive returns the Active field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinksLinkId200ResponseDataAttributes) GetActive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Active +} + +// GetActiveOk returns a tuple with the Active field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinksLinkId200ResponseDataAttributes) GetActiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Active) { + return nil, false + } + return &o.Active, true +} + +// HasActive returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseDataAttributes) HasActive() bool { + if o != nil && IsNil(o.Active) { + return true + } + + return false +} + +// SetActive gets a reference to the given interface{} and assigns it to the Active field. +func (o *GETLinksLinkId200ResponseDataAttributes) SetActive(v interface{}) { + o.Active = v +} + +// GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinksLinkId200ResponseDataAttributes) GetStatus() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinksLinkId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return &o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseDataAttributes) HasStatus() bool { + if o != nil && IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given interface{} and assigns it to the Status field. +func (o *GETLinksLinkId200ResponseDataAttributes) SetStatus(v interface{}) { + o.Status = v +} + +// GetDomain returns the Domain field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinksLinkId200ResponseDataAttributes) GetDomain() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinksLinkId200ResponseDataAttributes) GetDomainOk() (*interface{}, bool) { + if o == nil || IsNil(o.Domain) { + return nil, false + } + return &o.Domain, true +} + +// HasDomain returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseDataAttributes) HasDomain() bool { + if o != nil && IsNil(o.Domain) { + return true + } + + return false +} + +// SetDomain gets a reference to the given interface{} and assigns it to the Domain field. +func (o *GETLinksLinkId200ResponseDataAttributes) SetDomain(v interface{}) { + o.Domain = v +} + +// GetUrl returns the Url field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinksLinkId200ResponseDataAttributes) GetUrl() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinksLinkId200ResponseDataAttributes) GetUrlOk() (*interface{}, bool) { + if o == nil || IsNil(o.Url) { + return nil, false + } + return &o.Url, true +} + +// HasUrl returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseDataAttributes) HasUrl() bool { + if o != nil && IsNil(o.Url) { + return true + } + + return false +} + +// SetUrl gets a reference to the given interface{} and assigns it to the Url field. +func (o *GETLinksLinkId200ResponseDataAttributes) SetUrl(v interface{}) { + o.Url = v +} + +// GetItemType returns the ItemType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinksLinkId200ResponseDataAttributes) GetItemType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ItemType +} + +// GetItemTypeOk returns a tuple with the ItemType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinksLinkId200ResponseDataAttributes) GetItemTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.ItemType) { + return nil, false + } + return &o.ItemType, true +} + +// HasItemType returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseDataAttributes) HasItemType() bool { + if o != nil && IsNil(o.ItemType) { + return true + } + + return false +} + +// SetItemType gets a reference to the given interface{} and assigns it to the ItemType field. +func (o *GETLinksLinkId200ResponseDataAttributes) SetItemType(v interface{}) { + o.ItemType = v +} + +// GetParams returns the Params field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinksLinkId200ResponseDataAttributes) GetParams() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinksLinkId200ResponseDataAttributes) GetParamsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Params) { + return nil, false + } + return &o.Params, true +} + +// HasParams returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseDataAttributes) HasParams() bool { + if o != nil && IsNil(o.Params) { + return true + } + + return false +} + +// SetParams gets a reference to the given interface{} and assigns it to the Params field. +func (o *GETLinksLinkId200ResponseDataAttributes) SetParams(v interface{}) { + o.Params = v +} + +// GetDisabledAt returns the DisabledAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinksLinkId200ResponseDataAttributes) GetDisabledAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DisabledAt +} + +// GetDisabledAtOk returns a tuple with the DisabledAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinksLinkId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.DisabledAt) { + return nil, false + } + return &o.DisabledAt, true +} + +// HasDisabledAt returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseDataAttributes) HasDisabledAt() bool { + if o != nil && IsNil(o.DisabledAt) { + return true + } + + return false +} + +// SetDisabledAt gets a reference to the given interface{} and assigns it to the DisabledAt field. +func (o *GETLinksLinkId200ResponseDataAttributes) SetDisabledAt(v interface{}) { + o.DisabledAt = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinksLinkId200ResponseDataAttributes) GetCreatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinksLinkId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return &o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseDataAttributes) HasCreatedAt() bool { + if o != nil && IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given interface{} and assigns it to the CreatedAt field. +func (o *GETLinksLinkId200ResponseDataAttributes) SetCreatedAt(v interface{}) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinksLinkId200ResponseDataAttributes) GetUpdatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinksLinkId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return &o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseDataAttributes) HasUpdatedAt() bool { + if o != nil && IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given interface{} and assigns it to the UpdatedAt field. +func (o *GETLinksLinkId200ResponseDataAttributes) SetUpdatedAt(v interface{}) { + o.UpdatedAt = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinksLinkId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinksLinkId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *GETLinksLinkId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinksLinkId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinksLinkId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *GETLinksLinkId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETLinksLinkId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETLinksLinkId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *GETLinksLinkId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *GETLinksLinkId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o GETLinksLinkId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETLinksLinkId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.ClientId != nil { + toSerialize["client_id"] = o.ClientId + } + if o.Scope != nil { + toSerialize["scope"] = o.Scope + } + if o.StartsAt != nil { + toSerialize["starts_at"] = o.StartsAt + } + if o.ExpiresAt != nil { + toSerialize["expires_at"] = o.ExpiresAt + } + if o.Active != nil { + toSerialize["active"] = o.Active + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.Domain != nil { + toSerialize["domain"] = o.Domain + } + if o.Url != nil { + toSerialize["url"] = o.Url + } + if o.ItemType != nil { + toSerialize["item_type"] = o.ItemType + } + if o.Params != nil { + toSerialize["params"] = o.Params + } + if o.DisabledAt != nil { + toSerialize["disabled_at"] = o.DisabledAt + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableGETLinksLinkId200ResponseDataAttributes struct { + value *GETLinksLinkId200ResponseDataAttributes + isSet bool +} + +func (v NullableGETLinksLinkId200ResponseDataAttributes) Get() *GETLinksLinkId200ResponseDataAttributes { + return v.value +} + +func (v *NullableGETLinksLinkId200ResponseDataAttributes) Set(val *GETLinksLinkId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullableGETLinksLinkId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullableGETLinksLinkId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETLinksLinkId200ResponseDataAttributes(val *GETLinksLinkId200ResponseDataAttributes) *NullableGETLinksLinkId200ResponseDataAttributes { + return &NullableGETLinksLinkId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullableGETLinksLinkId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETLinksLinkId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_manual_gateways_200_response.go b/api/model_get_manual_gateways_200_response.go index dc699b90..06f1814d 100644 --- a/api/model_get_manual_gateways_200_response.go +++ b/api/model_get_manual_gateways_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_manual_gateways_manual_gateway_id_200_response.go b/api/model_get_manual_gateways_manual_gateway_id_200_response.go index 7f67d79f..79ad280c 100644 --- a/api/model_get_manual_gateways_manual_gateway_id_200_response.go +++ b/api/model_get_manual_gateways_manual_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_manual_gateways_manual_gateway_id_200_response_data.go b/api/model_get_manual_gateways_manual_gateway_id_200_response_data.go index 7a929e88..3bcfc496 100644 --- a/api/model_get_manual_gateways_manual_gateway_id_200_response_data.go +++ b/api/model_get_manual_gateways_manual_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_manual_tax_calculators_200_response.go b/api/model_get_manual_tax_calculators_200_response.go index f40bb8ea..db7541cd 100644 --- a/api/model_get_manual_tax_calculators_200_response.go +++ b/api/model_get_manual_tax_calculators_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_manual_tax_calculators_manual_tax_calculator_id_200_response.go b/api/model_get_manual_tax_calculators_manual_tax_calculator_id_200_response.go index 2a77dc4f..22d3bcf5 100644 --- a/api/model_get_manual_tax_calculators_manual_tax_calculator_id_200_response.go +++ b/api/model_get_manual_tax_calculators_manual_tax_calculator_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_manual_tax_calculators_manual_tax_calculator_id_200_response_data.go b/api/model_get_manual_tax_calculators_manual_tax_calculator_id_200_response_data.go index bfe56e65..e5a2c35e 100644 --- a/api/model_get_manual_tax_calculators_manual_tax_calculator_id_200_response_data.go +++ b/api/model_get_manual_tax_calculators_manual_tax_calculator_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_manual_tax_calculators_manual_tax_calculator_id_200_response_data_attributes.go b/api/model_get_manual_tax_calculators_manual_tax_calculator_id_200_response_data_attributes.go index 8484165c..e4c9097a 100644 --- a/api/model_get_manual_tax_calculators_manual_tax_calculator_id_200_response_data_attributes.go +++ b/api/model_get_manual_tax_calculators_manual_tax_calculator_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,13 +22,15 @@ var _ MappedNullable = &GETManualTaxCalculatorsManualTaxCalculatorId200ResponseD type GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes struct { // The tax calculator's internal name. Name interface{} `json:"name,omitempty"` + // The tax calculator's type. + Type interface{} `json:"type,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -84,6 +86,39 @@ func (o *GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes) o.Name = v } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -262,6 +297,9 @@ func (o GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes) T if o.Name != nil { toSerialize["name"] = o.Name } + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_markets_200_response.go b/api/model_get_markets_200_response.go index 9cbb868d..5b9afa7e 100644 --- a/api/model_get_markets_200_response.go +++ b/api/model_get_markets_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_markets_market_id_200_response.go b/api/model_get_markets_market_id_200_response.go index 2ca7a2d1..52364979 100644 --- a/api/model_get_markets_market_id_200_response.go +++ b/api/model_get_markets_market_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_markets_market_id_200_response_data.go b/api/model_get_markets_market_id_200_response_data.go index a01a07d4..649f93ed 100644 --- a/api/model_get_markets_market_id_200_response_data.go +++ b/api/model_get_markets_market_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_markets_market_id_200_response_data_attributes.go b/api/model_get_markets_market_id_200_response_data_attributes.go index 7e8bc80e..c18732c0 100644 --- a/api/model_get_markets_market_id_200_response_data_attributes.go +++ b/api/model_get_markets_market_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,31 +20,35 @@ var _ MappedNullable = &GETMarketsMarketId200ResponseDataAttributes{} // GETMarketsMarketId200ResponseDataAttributes struct for GETMarketsMarketId200ResponseDataAttributes type GETMarketsMarketId200ResponseDataAttributes struct { - // Unique identifier for the market (numeric) + // Unique identifier for the market (numeric). Number interface{} `json:"number,omitempty"` - // The market's internal name + // The market's internal name. Name interface{} `json:"name,omitempty"` - // The Facebook Pixed ID + // A string that you can use to identify the market (must be unique within the environment). + Code interface{} `json:"code,omitempty"` + // The Facebook Pixed ID. FacebookPixelId interface{} `json:"facebook_pixel_id,omitempty"` - // The checkout URL for this market + // The checkout URL for this market. CheckoutUrl interface{} `json:"checkout_url,omitempty"` // The URL used to overwrite prices by an external source. ExternalPricesUrl interface{} `json:"external_prices_url,omitempty"` // The URL used to validate orders by an external source. ExternalOrderValidationUrl interface{} `json:"external_order_validation_url,omitempty"` - // The shared secret used to sign the external requests payload. - SharedSecret interface{} `json:"shared_secret,omitempty"` // Indicates if market belongs to a customer_group. Private interface{} `json:"private,omitempty"` - // Time at which the market was disabled. + // When specified indicates the maximum number of shipping line items with cost that will be added to an order. + ShippingCostCutoff interface{} `json:"shipping_cost_cutoff,omitempty"` + // Time at which this resource was disabled. DisabledAt interface{} `json:"disabled_at,omitempty"` + // The shared secret used to sign the external request payload. + SharedSecret interface{} `json:"shared_secret,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -133,6 +137,39 @@ func (o *GETMarketsMarketId200ResponseDataAttributes) SetName(v interface{}) { o.Name = v } +// GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETMarketsMarketId200ResponseDataAttributes) GetCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETMarketsMarketId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return &o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *GETMarketsMarketId200ResponseDataAttributes) HasCode() bool { + if o != nil && IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given interface{} and assigns it to the Code field. +func (o *GETMarketsMarketId200ResponseDataAttributes) SetCode(v interface{}) { + o.Code = v +} + // GetFacebookPixelId returns the FacebookPixelId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETMarketsMarketId200ResponseDataAttributes) GetFacebookPixelId() interface{} { if o == nil { @@ -265,70 +302,70 @@ func (o *GETMarketsMarketId200ResponseDataAttributes) SetExternalOrderValidation o.ExternalOrderValidationUrl = v } -// GetSharedSecret returns the SharedSecret field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETMarketsMarketId200ResponseDataAttributes) GetSharedSecret() interface{} { +// GetPrivate returns the Private field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETMarketsMarketId200ResponseDataAttributes) GetPrivate() interface{} { if o == nil { var ret interface{} return ret } - return o.SharedSecret + return o.Private } -// GetSharedSecretOk returns a tuple with the SharedSecret field value if set, nil otherwise +// GetPrivateOk returns a tuple with the Private field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETMarketsMarketId200ResponseDataAttributes) GetSharedSecretOk() (*interface{}, bool) { - if o == nil || IsNil(o.SharedSecret) { +func (o *GETMarketsMarketId200ResponseDataAttributes) GetPrivateOk() (*interface{}, bool) { + if o == nil || IsNil(o.Private) { return nil, false } - return &o.SharedSecret, true + return &o.Private, true } -// HasSharedSecret returns a boolean if a field has been set. -func (o *GETMarketsMarketId200ResponseDataAttributes) HasSharedSecret() bool { - if o != nil && IsNil(o.SharedSecret) { +// HasPrivate returns a boolean if a field has been set. +func (o *GETMarketsMarketId200ResponseDataAttributes) HasPrivate() bool { + if o != nil && IsNil(o.Private) { return true } return false } -// SetSharedSecret gets a reference to the given interface{} and assigns it to the SharedSecret field. -func (o *GETMarketsMarketId200ResponseDataAttributes) SetSharedSecret(v interface{}) { - o.SharedSecret = v +// SetPrivate gets a reference to the given interface{} and assigns it to the Private field. +func (o *GETMarketsMarketId200ResponseDataAttributes) SetPrivate(v interface{}) { + o.Private = v } -// GetPrivate returns the Private field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETMarketsMarketId200ResponseDataAttributes) GetPrivate() interface{} { +// GetShippingCostCutoff returns the ShippingCostCutoff field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETMarketsMarketId200ResponseDataAttributes) GetShippingCostCutoff() interface{} { if o == nil { var ret interface{} return ret } - return o.Private + return o.ShippingCostCutoff } -// GetPrivateOk returns a tuple with the Private field value if set, nil otherwise +// GetShippingCostCutoffOk returns a tuple with the ShippingCostCutoff field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETMarketsMarketId200ResponseDataAttributes) GetPrivateOk() (*interface{}, bool) { - if o == nil || IsNil(o.Private) { +func (o *GETMarketsMarketId200ResponseDataAttributes) GetShippingCostCutoffOk() (*interface{}, bool) { + if o == nil || IsNil(o.ShippingCostCutoff) { return nil, false } - return &o.Private, true + return &o.ShippingCostCutoff, true } -// HasPrivate returns a boolean if a field has been set. -func (o *GETMarketsMarketId200ResponseDataAttributes) HasPrivate() bool { - if o != nil && IsNil(o.Private) { +// HasShippingCostCutoff returns a boolean if a field has been set. +func (o *GETMarketsMarketId200ResponseDataAttributes) HasShippingCostCutoff() bool { + if o != nil && IsNil(o.ShippingCostCutoff) { return true } return false } -// SetPrivate gets a reference to the given interface{} and assigns it to the Private field. -func (o *GETMarketsMarketId200ResponseDataAttributes) SetPrivate(v interface{}) { - o.Private = v +// SetShippingCostCutoff gets a reference to the given interface{} and assigns it to the ShippingCostCutoff field. +func (o *GETMarketsMarketId200ResponseDataAttributes) SetShippingCostCutoff(v interface{}) { + o.ShippingCostCutoff = v } // GetDisabledAt returns the DisabledAt field value if set, zero value otherwise (both if not set or set to explicit null). @@ -364,6 +401,39 @@ func (o *GETMarketsMarketId200ResponseDataAttributes) SetDisabledAt(v interface{ o.DisabledAt = v } +// GetSharedSecret returns the SharedSecret field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETMarketsMarketId200ResponseDataAttributes) GetSharedSecret() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.SharedSecret +} + +// GetSharedSecretOk returns a tuple with the SharedSecret field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETMarketsMarketId200ResponseDataAttributes) GetSharedSecretOk() (*interface{}, bool) { + if o == nil || IsNil(o.SharedSecret) { + return nil, false + } + return &o.SharedSecret, true +} + +// HasSharedSecret returns a boolean if a field has been set. +func (o *GETMarketsMarketId200ResponseDataAttributes) HasSharedSecret() bool { + if o != nil && IsNil(o.SharedSecret) { + return true + } + + return false +} + +// SetSharedSecret gets a reference to the given interface{} and assigns it to the SharedSecret field. +func (o *GETMarketsMarketId200ResponseDataAttributes) SetSharedSecret(v interface{}) { + o.SharedSecret = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETMarketsMarketId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -545,6 +615,9 @@ func (o GETMarketsMarketId200ResponseDataAttributes) ToMap() (map[string]interfa if o.Name != nil { toSerialize["name"] = o.Name } + if o.Code != nil { + toSerialize["code"] = o.Code + } if o.FacebookPixelId != nil { toSerialize["facebook_pixel_id"] = o.FacebookPixelId } @@ -557,15 +630,18 @@ func (o GETMarketsMarketId200ResponseDataAttributes) ToMap() (map[string]interfa if o.ExternalOrderValidationUrl != nil { toSerialize["external_order_validation_url"] = o.ExternalOrderValidationUrl } - if o.SharedSecret != nil { - toSerialize["shared_secret"] = o.SharedSecret - } if o.Private != nil { toSerialize["private"] = o.Private } + if o.ShippingCostCutoff != nil { + toSerialize["shipping_cost_cutoff"] = o.ShippingCostCutoff + } if o.DisabledAt != nil { toSerialize["disabled_at"] = o.DisabledAt } + if o.SharedSecret != nil { + toSerialize["shared_secret"] = o.SharedSecret + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_merchants_200_response.go b/api/model_get_merchants_200_response.go index fcd3ac5c..ee689bf2 100644 --- a/api/model_get_merchants_200_response.go +++ b/api/model_get_merchants_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_merchants_merchant_id_200_response.go b/api/model_get_merchants_merchant_id_200_response.go index 2d144560..f0d0abdc 100644 --- a/api/model_get_merchants_merchant_id_200_response.go +++ b/api/model_get_merchants_merchant_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_merchants_merchant_id_200_response_data.go b/api/model_get_merchants_merchant_id_200_response_data.go index ec5273e2..d90f69bc 100644 --- a/api/model_get_merchants_merchant_id_200_response_data.go +++ b/api/model_get_merchants_merchant_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_merchants_merchant_id_200_response_data_attributes.go b/api/model_get_merchants_merchant_id_200_response_data_attributes.go index 6e5e8b4d..5e2719f8 100644 --- a/api/model_get_merchants_merchant_id_200_response_data_attributes.go +++ b/api/model_get_merchants_merchant_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,7 +28,7 @@ type GETMerchantsMerchantId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_order_amount_promotion_rules_200_response.go b/api/model_get_order_amount_promotion_rules_200_response.go index cc77ef9f..41ff88a3 100644 --- a/api/model_get_order_amount_promotion_rules_200_response.go +++ b/api/model_get_order_amount_promotion_rules_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response.go b/api/model_get_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response.go index e7985228..b5ce826f 100644 --- a/api/model_get_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response.go +++ b/api/model_get_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response_data.go b/api/model_get_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response_data.go index c0809739..58244220 100644 --- a/api/model_get_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response_data.go +++ b/api/model_get_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData struc Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTOrderAmountPromotionRules201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTCustomPromotionRules201ResponseDataRelationships `json:"relationships,omitempty"` } // NewGETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData instantiates a new GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData object @@ -177,9 +177,9 @@ func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) GetRelationships() POSTOrderAmountPromotionRules201ResponseDataRelationships { +func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) GetRelationships() POSTCustomPromotionRules201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTOrderAmountPromotionRules201ResponseDataRelationships + var ret POSTCustomPromotionRules201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) GetRelationshipsOk() (*POSTOrderAmountPromotionRules201ResponseDataRelationships, bool) { +func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) GetRelationshipsOk() (*POSTCustomPromotionRules201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) return false } -// SetRelationships gets a reference to the given POSTOrderAmountPromotionRules201ResponseDataRelationships and assigns it to the Relationships field. -func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) SetRelationships(v POSTOrderAmountPromotionRules201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTCustomPromotionRules201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) SetRelationships(v POSTCustomPromotionRules201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_get_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response_data_attributes.go b/api/model_get_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response_data_attributes.go index 13c6b4da..1767bb09 100644 --- a/api/model_get_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response_data_attributes.go +++ b/api/model_get_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,13 +20,15 @@ var _ MappedNullable = &GETOrderAmountPromotionRulesOrderAmountPromotionRuleId20 // GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes struct for GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes type GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes struct { + // The promotion rule's type. + Type interface{} `json:"type,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -36,6 +38,8 @@ type GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttrib OrderAmountFloat interface{} `json:"order_amount_float,omitempty"` // Apply the promotion only when order is over this amount, formatted. FormattedOrderAmount interface{} `json:"formatted_order_amount,omitempty"` + // Send this attribute if you want to compare the specified amount with order's subtotal (excluding discounts, if any). + UseSubtotal interface{} `json:"use_subtotal,omitempty"` } // NewGETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes instantiates a new GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes object @@ -55,6 +59,39 @@ func NewGETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAtt return &this } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -319,6 +356,39 @@ func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAt o.FormattedOrderAmount = v } +// GetUseSubtotal returns the UseSubtotal field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) GetUseSubtotal() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UseSubtotal +} + +// GetUseSubtotalOk returns a tuple with the UseSubtotal field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) GetUseSubtotalOk() (*interface{}, bool) { + if o == nil || IsNil(o.UseSubtotal) { + return nil, false + } + return &o.UseSubtotal, true +} + +// HasUseSubtotal returns a boolean if a field has been set. +func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) HasUseSubtotal() bool { + if o != nil && IsNil(o.UseSubtotal) { + return true + } + + return false +} + +// SetUseSubtotal gets a reference to the given interface{} and assigns it to the UseSubtotal field. +func (o *GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) SetUseSubtotal(v interface{}) { + o.UseSubtotal = v +} + func (o GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -329,6 +399,9 @@ func (o GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAtt func (o GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } @@ -353,6 +426,9 @@ func (o GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAtt if o.FormattedOrderAmount != nil { toSerialize["formatted_order_amount"] = o.FormattedOrderAmount } + if o.UseSubtotal != nil { + toSerialize["use_subtotal"] = o.UseSubtotal + } return toSerialize, nil } diff --git a/api/model_get_order_copies_200_response.go b/api/model_get_order_copies_200_response.go index d7e5a5a7..e46a522b 100644 --- a/api/model_get_order_copies_200_response.go +++ b/api/model_get_order_copies_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_order_copies_order_copy_id_200_response.go b/api/model_get_order_copies_order_copy_id_200_response.go index 9b9733ec..ddf8f381 100644 --- a/api/model_get_order_copies_order_copy_id_200_response.go +++ b/api/model_get_order_copies_order_copy_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_order_copies_order_copy_id_200_response_data.go b/api/model_get_order_copies_order_copy_id_200_response_data.go index 2d07d469..72b9547a 100644 --- a/api/model_get_order_copies_order_copy_id_200_response_data.go +++ b/api/model_get_order_copies_order_copy_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_order_copies_order_copy_id_200_response_data_attributes.go b/api/model_get_order_copies_order_copy_id_200_response_data_attributes.go index b438760b..9730ce93 100644 --- a/api/model_get_order_copies_order_copy_id_200_response_data_attributes.go +++ b/api/model_get_order_copies_order_copy_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,6 +20,8 @@ var _ MappedNullable = &GETOrderCopiesOrderCopyId200ResponseDataAttributes{} // GETOrderCopiesOrderCopyId200ResponseDataAttributes struct for GETOrderCopiesOrderCopyId200ResponseDataAttributes type GETOrderCopiesOrderCopyId200ResponseDataAttributes struct { + // The order factory's type. + Type interface{} `json:"type,omitempty"` // The order factory status. One of 'pending' (default), 'in_progress', 'failed', or 'completed'. Status interface{} `json:"status,omitempty"` // Time at which the order copy was started. @@ -42,12 +44,16 @@ type GETOrderCopiesOrderCopyId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` // Indicates if the source order must be cancelled upon copy. CancelSourceOrder interface{} `json:"cancel_source_order,omitempty"` + // Indicates if promotions got applied upon copy. + ApplyPromotions interface{} `json:"apply_promotions,omitempty"` + // Indicates to ignore invalid coupon code during copy. + IgnoreInvalidCoupon interface{} `json:"ignore_invalid_coupon,omitempty"` } // NewGETOrderCopiesOrderCopyId200ResponseDataAttributes instantiates a new GETOrderCopiesOrderCopyId200ResponseDataAttributes object @@ -67,6 +73,39 @@ func NewGETOrderCopiesOrderCopyId200ResponseDataAttributesWithDefaults() *GETOrd return &this } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) GetStatus() interface{} { if o == nil { @@ -529,6 +568,72 @@ func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) SetCancelSourceOrde o.CancelSourceOrder = v } +// GetApplyPromotions returns the ApplyPromotions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) GetApplyPromotions() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ApplyPromotions +} + +// GetApplyPromotionsOk returns a tuple with the ApplyPromotions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) GetApplyPromotionsOk() (*interface{}, bool) { + if o == nil || IsNil(o.ApplyPromotions) { + return nil, false + } + return &o.ApplyPromotions, true +} + +// HasApplyPromotions returns a boolean if a field has been set. +func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) HasApplyPromotions() bool { + if o != nil && IsNil(o.ApplyPromotions) { + return true + } + + return false +} + +// SetApplyPromotions gets a reference to the given interface{} and assigns it to the ApplyPromotions field. +func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) SetApplyPromotions(v interface{}) { + o.ApplyPromotions = v +} + +// GetIgnoreInvalidCoupon returns the IgnoreInvalidCoupon field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) GetIgnoreInvalidCoupon() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.IgnoreInvalidCoupon +} + +// GetIgnoreInvalidCouponOk returns a tuple with the IgnoreInvalidCoupon field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) GetIgnoreInvalidCouponOk() (*interface{}, bool) { + if o == nil || IsNil(o.IgnoreInvalidCoupon) { + return nil, false + } + return &o.IgnoreInvalidCoupon, true +} + +// HasIgnoreInvalidCoupon returns a boolean if a field has been set. +func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) HasIgnoreInvalidCoupon() bool { + if o != nil && IsNil(o.IgnoreInvalidCoupon) { + return true + } + + return false +} + +// SetIgnoreInvalidCoupon gets a reference to the given interface{} and assigns it to the IgnoreInvalidCoupon field. +func (o *GETOrderCopiesOrderCopyId200ResponseDataAttributes) SetIgnoreInvalidCoupon(v interface{}) { + o.IgnoreInvalidCoupon = v +} + func (o GETOrderCopiesOrderCopyId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -539,6 +644,9 @@ func (o GETOrderCopiesOrderCopyId200ResponseDataAttributes) MarshalJSON() ([]byt func (o GETOrderCopiesOrderCopyId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.Status != nil { toSerialize["status"] = o.Status } @@ -581,6 +689,12 @@ func (o GETOrderCopiesOrderCopyId200ResponseDataAttributes) ToMap() (map[string] if o.CancelSourceOrder != nil { toSerialize["cancel_source_order"] = o.CancelSourceOrder } + if o.ApplyPromotions != nil { + toSerialize["apply_promotions"] = o.ApplyPromotions + } + if o.IgnoreInvalidCoupon != nil { + toSerialize["ignore_invalid_coupon"] = o.IgnoreInvalidCoupon + } return toSerialize, nil } diff --git a/api/model_get_order_factories_200_response.go b/api/model_get_order_factories_200_response.go index 34dfe462..7e34c946 100644 --- a/api/model_get_order_factories_200_response.go +++ b/api/model_get_order_factories_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_order_factories_order_factory_id_200_response.go b/api/model_get_order_factories_order_factory_id_200_response.go index d37f4bb5..c53f192e 100644 --- a/api/model_get_order_factories_order_factory_id_200_response.go +++ b/api/model_get_order_factories_order_factory_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_order_factories_order_factory_id_200_response_data.go b/api/model_get_order_factories_order_factory_id_200_response_data.go index 003f154b..8cb77415 100644 --- a/api/model_get_order_factories_order_factory_id_200_response_data.go +++ b/api/model_get_order_factories_order_factory_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_order_factories_order_factory_id_200_response_data_attributes.go b/api/model_get_order_factories_order_factory_id_200_response_data_attributes.go index 799c4650..cbb5c823 100644 --- a/api/model_get_order_factories_order_factory_id_200_response_data_attributes.go +++ b/api/model_get_order_factories_order_factory_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,6 +20,8 @@ var _ MappedNullable = &GETOrderFactoriesOrderFactoryId200ResponseDataAttributes // GETOrderFactoriesOrderFactoryId200ResponseDataAttributes struct for GETOrderFactoriesOrderFactoryId200ResponseDataAttributes type GETOrderFactoriesOrderFactoryId200ResponseDataAttributes struct { + // The order factory's type. + Type interface{} `json:"type,omitempty"` // The order factory status. One of 'pending' (default), 'in_progress', 'failed', or 'completed'. Status interface{} `json:"status,omitempty"` // Time at which the order copy was started. @@ -42,7 +44,7 @@ type GETOrderFactoriesOrderFactoryId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -65,6 +67,39 @@ func NewGETOrderFactoriesOrderFactoryId200ResponseDataAttributesWithDefaults() * return &this } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrderFactoriesOrderFactoryId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrderFactoriesOrderFactoryId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETOrderFactoriesOrderFactoryId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETOrderFactoriesOrderFactoryId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETOrderFactoriesOrderFactoryId200ResponseDataAttributes) GetStatus() interface{} { if o == nil { @@ -504,6 +539,9 @@ func (o GETOrderFactoriesOrderFactoryId200ResponseDataAttributes) MarshalJSON() func (o GETOrderFactoriesOrderFactoryId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.Status != nil { toSerialize["status"] = o.Status } diff --git a/api/model_get_order_factories_order_factory_id_200_response_data_relationships.go b/api/model_get_order_factories_order_factory_id_200_response_data_relationships.go index a052bd76..ffc29c64 100644 --- a/api/model_get_order_factories_order_factory_id_200_response_data_relationships.go +++ b/api/model_get_order_factories_order_factory_id_200_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,9 @@ var _ MappedNullable = &GETOrderFactoriesOrderFactoryId200ResponseDataRelationsh // GETOrderFactoriesOrderFactoryId200ResponseDataRelationships struct for GETOrderFactoriesOrderFactoryId200ResponseDataRelationships type GETOrderFactoriesOrderFactoryId200ResponseDataRelationships struct { - SourceOrder *POSTOrderCopies201ResponseDataRelationshipsSourceOrder `json:"source_order,omitempty"` - TargetOrder *POSTOrderCopies201ResponseDataRelationshipsTargetOrder `json:"target_order,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` + SourceOrder *POSTOrderCopies201ResponseDataRelationshipsSourceOrder `json:"source_order,omitempty"` + TargetOrder *POSTOrderCopies201ResponseDataRelationshipsTargetOrder `json:"target_order,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` } // NewGETOrderFactoriesOrderFactoryId200ResponseDataRelationships instantiates a new GETOrderFactoriesOrderFactoryId200ResponseDataRelationships object @@ -107,9 +107,9 @@ func (o *GETOrderFactoriesOrderFactoryId200ResponseDataRelationships) SetTargetO } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *GETOrderFactoriesOrderFactoryId200ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { +func (o *GETOrderFactoriesOrderFactoryId200ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents + var ret POSTAddresses201ResponseDataRelationshipsEvents return ret } return *o.Events @@ -117,7 +117,7 @@ func (o *GETOrderFactoriesOrderFactoryId200ResponseDataRelationships) GetEvents( // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETOrderFactoriesOrderFactoryId200ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { +func (o *GETOrderFactoriesOrderFactoryId200ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -133,8 +133,8 @@ func (o *GETOrderFactoriesOrderFactoryId200ResponseDataRelationships) HasEvents( return false } -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *GETOrderFactoriesOrderFactoryId200ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *GETOrderFactoriesOrderFactoryId200ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { o.Events = &v } diff --git a/api/model_get_order_subscription_items_200_response.go b/api/model_get_order_subscription_items_200_response.go index 1e755190..3ec320e7 100644 --- a/api/model_get_order_subscription_items_200_response.go +++ b/api/model_get_order_subscription_items_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_order_subscription_items_order_subscription_item_id_200_response.go b/api/model_get_order_subscription_items_order_subscription_item_id_200_response.go index 0d0e35f4..46512d3f 100644 --- a/api/model_get_order_subscription_items_order_subscription_item_id_200_response.go +++ b/api/model_get_order_subscription_items_order_subscription_item_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_order_subscription_items_order_subscription_item_id_200_response_data.go b/api/model_get_order_subscription_items_order_subscription_item_id_200_response_data.go index 6a3a96d7..e5b59ad7 100644 --- a/api/model_get_order_subscription_items_order_subscription_item_id_200_response_data.go +++ b/api/model_get_order_subscription_items_order_subscription_item_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_order_subscription_items_order_subscription_item_id_200_response_data_attributes.go b/api/model_get_order_subscription_items_order_subscription_item_id_200_response_data_attributes.go index 640727c5..a51511bb 100644 --- a/api/model_get_order_subscription_items_order_subscription_item_id_200_response_data_attributes.go +++ b/api/model_get_order_subscription_items_order_subscription_item_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,6 +20,10 @@ var _ MappedNullable = &GETOrderSubscriptionItemsOrderSubscriptionItemId200Respo // GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes struct for GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes type GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes struct { + // The code of the associated SKU. + SkuCode interface{} `json:"sku_code,omitempty"` + // The code of the associated bundle. + BundleCode interface{} `json:"bundle_code,omitempty"` // The subscription item quantity. Quantity interface{} `json:"quantity,omitempty"` // The unit amount of the subscription item, in cents. @@ -40,7 +44,7 @@ type GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes s UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -63,6 +67,72 @@ func NewGETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttribute return &this } +// GetSkuCode returns the SkuCode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) GetSkuCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.SkuCode +} + +// GetSkuCodeOk returns a tuple with the SkuCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) GetSkuCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.SkuCode) { + return nil, false + } + return &o.SkuCode, true +} + +// HasSkuCode returns a boolean if a field has been set. +func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) HasSkuCode() bool { + if o != nil && IsNil(o.SkuCode) { + return true + } + + return false +} + +// SetSkuCode gets a reference to the given interface{} and assigns it to the SkuCode field. +func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) SetSkuCode(v interface{}) { + o.SkuCode = v +} + +// GetBundleCode returns the BundleCode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) GetBundleCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.BundleCode +} + +// GetBundleCodeOk returns a tuple with the BundleCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) GetBundleCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.BundleCode) { + return nil, false + } + return &o.BundleCode, true +} + +// HasBundleCode returns a boolean if a field has been set. +func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) HasBundleCode() bool { + if o != nil && IsNil(o.BundleCode) { + return true + } + + return false +} + +// SetBundleCode gets a reference to the given interface{} and assigns it to the BundleCode field. +func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) SetBundleCode(v interface{}) { + o.BundleCode = v +} + // GetQuantity returns the Quantity field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) GetQuantity() interface{} { if o == nil { @@ -469,6 +539,12 @@ func (o GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttribute func (o GETOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.SkuCode != nil { + toSerialize["sku_code"] = o.SkuCode + } + if o.BundleCode != nil { + toSerialize["bundle_code"] = o.BundleCode + } if o.Quantity != nil { toSerialize["quantity"] = o.Quantity } diff --git a/api/model_get_order_subscriptions_200_response.go b/api/model_get_order_subscriptions_200_response.go index d0c3bb69..686afb21 100644 --- a/api/model_get_order_subscriptions_200_response.go +++ b/api/model_get_order_subscriptions_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_order_subscriptions_order_subscription_id_200_response.go b/api/model_get_order_subscriptions_order_subscription_id_200_response.go index c49d7d18..ca33e5db 100644 --- a/api/model_get_order_subscriptions_order_subscription_id_200_response.go +++ b/api/model_get_order_subscriptions_order_subscription_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_order_subscriptions_order_subscription_id_200_response_data.go b/api/model_get_order_subscriptions_order_subscription_id_200_response_data.go index 5349cc37..cc043741 100644 --- a/api/model_get_order_subscriptions_order_subscription_id_200_response_data.go +++ b/api/model_get_order_subscriptions_order_subscription_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_order_subscriptions_order_subscription_id_200_response_data_attributes.go b/api/model_get_order_subscriptions_order_subscription_id_200_response_data_attributes.go index cdae3614..c2996dd6 100644 --- a/api/model_get_order_subscriptions_order_subscription_id_200_response_data_attributes.go +++ b/api/model_get_order_subscriptions_order_subscription_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &GETOrderSubscriptionsOrderSubscriptionId200ResponseDataA // GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes struct for GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes type GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes struct { - // Unique identifier for the subscription (numeric) + // Unique identifier for the subscription (numeric). Number interface{} `json:"number,omitempty"` // The subscription status. One of 'draft' (default), 'inactive', 'active', or 'cancelled'. Status interface{} `json:"status,omitempty"` @@ -28,12 +28,18 @@ type GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes struct { Frequency interface{} `json:"frequency,omitempty"` // Indicates if the subscription will be activated considering the placed source order as its first run. ActivateBySourceOrder interface{} `json:"activate_by_source_order,omitempty"` + // Indicates if the subscription created orders are automatically placed at the end of the copy. + PlaceTargetOrder interface{} `json:"place_target_order,omitempty"` + // Indicates the number of hours the renewal alert will be triggered before the subscription next run. Must be included between 1 and 720 hours. + RenewalAlertPeriod interface{} `json:"renewal_alert_period,omitempty"` // The email address of the customer, if any, associated to the source order. CustomerEmail interface{} `json:"customer_email,omitempty"` // The activation date/time of this subscription. StartsAt interface{} `json:"starts_at,omitempty"` // The expiration date/time of this subscription (must be after starts_at). ExpiresAt interface{} `json:"expires_at,omitempty"` + // The date/time of the subscription last run. + LastRunAt interface{} `json:"last_run_at,omitempty"` // The date/time of the subscription next run. Can be updated but only in the future, to copy with frequency changes. NextRunAt interface{} `json:"next_run_at,omitempty"` // The number of times this subscription has run. @@ -42,15 +48,13 @@ type GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes struct { ErrorsCount interface{} `json:"errors_count,omitempty"` // Indicates if the subscription has succeeded on its last run. SucceededOnLastRun interface{} `json:"succeeded_on_last_run,omitempty"` - // The subscription options used to create the order (check order_factories for more information). For subscriptions the `place_target_order` is enabled by default, specify custom options to overwrite it. - Options interface{} `json:"options,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -205,6 +209,72 @@ func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetA o.ActivateBySourceOrder = v } +// GetPlaceTargetOrder returns the PlaceTargetOrder field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetPlaceTargetOrder() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PlaceTargetOrder +} + +// GetPlaceTargetOrderOk returns a tuple with the PlaceTargetOrder field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetPlaceTargetOrderOk() (*interface{}, bool) { + if o == nil || IsNil(o.PlaceTargetOrder) { + return nil, false + } + return &o.PlaceTargetOrder, true +} + +// HasPlaceTargetOrder returns a boolean if a field has been set. +func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) HasPlaceTargetOrder() bool { + if o != nil && IsNil(o.PlaceTargetOrder) { + return true + } + + return false +} + +// SetPlaceTargetOrder gets a reference to the given interface{} and assigns it to the PlaceTargetOrder field. +func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetPlaceTargetOrder(v interface{}) { + o.PlaceTargetOrder = v +} + +// GetRenewalAlertPeriod returns the RenewalAlertPeriod field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetRenewalAlertPeriod() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RenewalAlertPeriod +} + +// GetRenewalAlertPeriodOk returns a tuple with the RenewalAlertPeriod field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetRenewalAlertPeriodOk() (*interface{}, bool) { + if o == nil || IsNil(o.RenewalAlertPeriod) { + return nil, false + } + return &o.RenewalAlertPeriod, true +} + +// HasRenewalAlertPeriod returns a boolean if a field has been set. +func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) HasRenewalAlertPeriod() bool { + if o != nil && IsNil(o.RenewalAlertPeriod) { + return true + } + + return false +} + +// SetRenewalAlertPeriod gets a reference to the given interface{} and assigns it to the RenewalAlertPeriod field. +func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetRenewalAlertPeriod(v interface{}) { + o.RenewalAlertPeriod = v +} + // GetCustomerEmail returns the CustomerEmail field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetCustomerEmail() interface{} { if o == nil { @@ -304,6 +374,39 @@ func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetE o.ExpiresAt = v } +// GetLastRunAt returns the LastRunAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetLastRunAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.LastRunAt +} + +// GetLastRunAtOk returns a tuple with the LastRunAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetLastRunAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.LastRunAt) { + return nil, false + } + return &o.LastRunAt, true +} + +// HasLastRunAt returns a boolean if a field has been set. +func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) HasLastRunAt() bool { + if o != nil && IsNil(o.LastRunAt) { + return true + } + + return false +} + +// SetLastRunAt gets a reference to the given interface{} and assigns it to the LastRunAt field. +func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetLastRunAt(v interface{}) { + o.LastRunAt = v +} + // GetNextRunAt returns the NextRunAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetNextRunAt() interface{} { if o == nil { @@ -436,39 +539,6 @@ func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetS o.SucceededOnLastRun = v } -// GetOptions returns the Options field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetOptions() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Options -} - -// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetOptionsOk() (*interface{}, bool) { - if o == nil || IsNil(o.Options) { - return nil, false - } - return &o.Options, true -} - -// HasOptions returns a boolean if a field has been set. -func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) HasOptions() bool { - if o != nil && IsNil(o.Options) { - return true - } - - return false -} - -// SetOptions gets a reference to the given interface{} and assigns it to the Options field. -func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetOptions(v interface{}) { - o.Options = v -} - // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -656,6 +726,12 @@ func (o GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) ToMap if o.ActivateBySourceOrder != nil { toSerialize["activate_by_source_order"] = o.ActivateBySourceOrder } + if o.PlaceTargetOrder != nil { + toSerialize["place_target_order"] = o.PlaceTargetOrder + } + if o.RenewalAlertPeriod != nil { + toSerialize["renewal_alert_period"] = o.RenewalAlertPeriod + } if o.CustomerEmail != nil { toSerialize["customer_email"] = o.CustomerEmail } @@ -665,6 +741,9 @@ func (o GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) ToMap if o.ExpiresAt != nil { toSerialize["expires_at"] = o.ExpiresAt } + if o.LastRunAt != nil { + toSerialize["last_run_at"] = o.LastRunAt + } if o.NextRunAt != nil { toSerialize["next_run_at"] = o.NextRunAt } @@ -677,9 +756,6 @@ func (o GETOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) ToMap if o.SucceededOnLastRun != nil { toSerialize["succeeded_on_last_run"] = o.SucceededOnLastRun } - if o.Options != nil { - toSerialize["options"] = o.Options - } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_order_validation_rules_order_validation_rule_id_200_response.go b/api/model_get_order_validation_rules_order_validation_rule_id_200_response.go deleted file mode 100644 index 9608d45c..00000000 --- a/api/model_get_order_validation_rules_order_validation_rule_id_200_response.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the GETOrderValidationRulesOrderValidationRuleId200Response type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GETOrderValidationRulesOrderValidationRuleId200Response{} - -// GETOrderValidationRulesOrderValidationRuleId200Response struct for GETOrderValidationRulesOrderValidationRuleId200Response -type GETOrderValidationRulesOrderValidationRuleId200Response struct { - Data *GETOrderValidationRulesOrderValidationRuleId200ResponseData `json:"data,omitempty"` -} - -// NewGETOrderValidationRulesOrderValidationRuleId200Response instantiates a new GETOrderValidationRulesOrderValidationRuleId200Response object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGETOrderValidationRulesOrderValidationRuleId200Response() *GETOrderValidationRulesOrderValidationRuleId200Response { - this := GETOrderValidationRulesOrderValidationRuleId200Response{} - return &this -} - -// NewGETOrderValidationRulesOrderValidationRuleId200ResponseWithDefaults instantiates a new GETOrderValidationRulesOrderValidationRuleId200Response object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGETOrderValidationRulesOrderValidationRuleId200ResponseWithDefaults() *GETOrderValidationRulesOrderValidationRuleId200Response { - this := GETOrderValidationRulesOrderValidationRuleId200Response{} - return &this -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *GETOrderValidationRulesOrderValidationRuleId200Response) GetData() GETOrderValidationRulesOrderValidationRuleId200ResponseData { - if o == nil || IsNil(o.Data) { - var ret GETOrderValidationRulesOrderValidationRuleId200ResponseData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETOrderValidationRulesOrderValidationRuleId200Response) GetDataOk() (*GETOrderValidationRulesOrderValidationRuleId200ResponseData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *GETOrderValidationRulesOrderValidationRuleId200Response) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given GETOrderValidationRulesOrderValidationRuleId200ResponseData and assigns it to the Data field. -func (o *GETOrderValidationRulesOrderValidationRuleId200Response) SetData(v GETOrderValidationRulesOrderValidationRuleId200ResponseData) { - o.Data = &v -} - -func (o GETOrderValidationRulesOrderValidationRuleId200Response) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GETOrderValidationRulesOrderValidationRuleId200Response) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableGETOrderValidationRulesOrderValidationRuleId200Response struct { - value *GETOrderValidationRulesOrderValidationRuleId200Response - isSet bool -} - -func (v NullableGETOrderValidationRulesOrderValidationRuleId200Response) Get() *GETOrderValidationRulesOrderValidationRuleId200Response { - return v.value -} - -func (v *NullableGETOrderValidationRulesOrderValidationRuleId200Response) Set(val *GETOrderValidationRulesOrderValidationRuleId200Response) { - v.value = val - v.isSet = true -} - -func (v NullableGETOrderValidationRulesOrderValidationRuleId200Response) IsSet() bool { - return v.isSet -} - -func (v *NullableGETOrderValidationRulesOrderValidationRuleId200Response) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGETOrderValidationRulesOrderValidationRuleId200Response(val *GETOrderValidationRulesOrderValidationRuleId200Response) *NullableGETOrderValidationRulesOrderValidationRuleId200Response { - return &NullableGETOrderValidationRulesOrderValidationRuleId200Response{value: val, isSet: true} -} - -func (v NullableGETOrderValidationRulesOrderValidationRuleId200Response) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGETOrderValidationRulesOrderValidationRuleId200Response) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_get_orders_200_response.go b/api/model_get_orders_200_response.go index 88934132..89a6aff8 100644 --- a/api/model_get_orders_200_response.go +++ b/api/model_get_orders_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_orders_order_id_200_response.go b/api/model_get_orders_order_id_200_response.go index bd02ebb3..f4f6f1bc 100644 --- a/api/model_get_orders_order_id_200_response.go +++ b/api/model_get_orders_order_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_orders_order_id_200_response_data.go b/api/model_get_orders_order_id_200_response_data.go index a46aee27..3545e2bf 100644 --- a/api/model_get_orders_order_id_200_response_data.go +++ b/api/model_get_orders_order_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_orders_order_id_200_response_data_attributes.go b/api/model_get_orders_order_id_200_response_data_attributes.go index ddb2c2b1..b9aeb7ac 100644 --- a/api/model_get_orders_order_id_200_response_data_attributes.go +++ b/api/model_get_orders_order_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,15 +20,19 @@ var _ MappedNullable = &GETOrdersOrderId200ResponseDataAttributes{} // GETOrdersOrderId200ResponseDataAttributes struct for GETOrdersOrderId200ResponseDataAttributes type GETOrdersOrderId200ResponseDataAttributes struct { - // Unique identifier for the order (numeric). + // The order identifier. Can be specified if unique within the organization (for enterprise plans only), default to numeric ID otherwise. Cannot be passed by sales channels. Number interface{} `json:"number,omitempty"` + // The affiliate code, if any, the seller will transfer commission on shop by link transactions. + AffiliateCode interface{} `json:"affiliate_code,omitempty"` // Save this attribute as 'false' if you want prevent the order to be refreshed automatically at each change (much faster). Autorefresh interface{} `json:"autorefresh,omitempty"` - // The order status. One of 'draft' (default), 'pending', 'placed', 'approved', or 'cancelled'. + // Save this attribute as 'true' if you want perform the place asynchronously. Payment errors, if any, will be collected afterwards. + PlaceAsync interface{} `json:"place_async,omitempty"` + // The order status. One of 'draft' (default), 'pending', 'editing', 'placing', 'placed', 'approved', or 'cancelled'. Status interface{} `json:"status,omitempty"` - // The order's payment status. One of 'unpaid' (default), 'authorized', 'partially_authorized', 'paid', 'partially_paid', 'voided', 'partially_voided', 'refunded', 'partially_refunded' or 'free'. + // The order payment status. One of 'unpaid' (default), 'authorized', 'partially_authorized', 'paid', 'partially_paid', 'voided', 'partially_voided', 'refunded', 'partially_refunded', or 'free'. PaymentStatus interface{} `json:"payment_status,omitempty"` - // The order's fulfillment status. One of 'unfulfilled' (default), 'in_progress', 'fulfilled', or 'not_required'. + // The order fulfillment status. One of 'unfulfilled' (default), 'in_progress', 'fulfilled', or 'not_required'. FulfillmentStatus interface{} `json:"fulfillment_status,omitempty"` // Indicates if the order has been placed as guest. Guest interface{} `json:"guest,omitempty"` @@ -46,18 +50,22 @@ type GETOrdersOrderId200ResponseDataAttributes struct { TaxRate interface{} `json:"tax_rate,omitempty"` // Indicates if taxes are applied to shipping costs. FreightTaxable interface{} `json:"freight_taxable,omitempty"` + // Indicates if taxes are applied to payment methods costs. + PaymentMethodTaxable interface{} `json:"payment_method_taxable,omitempty"` + // Indicates if taxes are applied to positive adjustments. + AdjustmentTaxable interface{} `json:"adjustment_taxable,omitempty"` + // Indicates if taxes are applied to purchased gift cards. + GiftCardTaxable interface{} `json:"gift_card_taxable,omitempty"` // Indicates if the billing address associated to this order requires billing info to be present. RequiresBillingInfo interface{} `json:"requires_billing_info,omitempty"` - // The international 2-letter country code as defined by the ISO 3166-1 standard, automatically inherited from the order's shipping address. + // The international 2-letter country code as defined by the ISO 3166-1 standard, automatically inherited from the order's shipping or billing addresses. CountryCode interface{} `json:"country_code,omitempty"` - // The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. + // The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. Not relevant if order contains only digital products. ShippingCountryCodeLock interface{} `json:"shipping_country_code_lock,omitempty"` // The coupon code to be used for the order. If valid, it triggers a promotion adding a discount line item to the order. CouponCode interface{} `json:"coupon_code,omitempty"` // The gift card code (at least the first 8 characters) to be used for the order. If valid, it uses the gift card balance to pay for the order. GiftCardCode interface{} `json:"gift_card_code,omitempty"` - // The gift card or coupon code (at least the first 8 characters) to be used for the order. If a gift card mathes, it uses the gift card balance to pay for the order. Otherwise it tries to find a valid coupon code and applies the associated discount. - GiftCardOrCouponCode interface{} `json:"gift_card_or_coupon_code,omitempty"` // The sum of all the SKU line items total amounts, in cents. SubtotalAmountCents interface{} `json:"subtotal_amount_cents,omitempty"` // The sum of all the SKU line items total amounts, float. @@ -178,6 +186,12 @@ type GETOrdersOrderId200ResponseDataAttributes struct { DutyAmountFloat interface{} `json:"duty_amount_float,omitempty"` // The duty amount that is calculated by external services, formatted. FormattedDutyAmount interface{} `json:"formatted_duty_amount,omitempty"` + // The total amount at place time, in cents, which is used internally for editing. + PlaceTotalAmountCents interface{} `json:"place_total_amount_cents,omitempty"` + // The total amount at place time, float. + PlaceTotalAmountFloat interface{} `json:"place_total_amount_float,omitempty"` + // The total amount at place time, formatted. + FormattedPlaceTotalAmount interface{} `json:"formatted_place_total_amount,omitempty"` // The total number of SKUs in the order's line items. This can be useful to display a preview of the customer shopping cart content. SkusCount interface{} `json:"skus_count,omitempty"` // The total number of line item options. This can be useful to display a preview of the customer shopping cart content. @@ -186,6 +200,10 @@ type GETOrdersOrderId200ResponseDataAttributes struct { ShipmentsCount interface{} `json:"shipments_count,omitempty"` // The total number of tax calculations. This can be useful to monitor external tax service usage. TaxCalculationsCount interface{} `json:"tax_calculations_count,omitempty"` + // The total number of external validation performed. This can be useful to monitor if external validation has been triggered. + ValidationsCount interface{} `json:"validations_count,omitempty"` + // The total number of resource errors. + ErrorsCount interface{} `json:"errors_count,omitempty"` // An object that contains the shareable details of the order's payment source. PaymentSourceDetails interface{} `json:"payment_source_details,omitempty"` // A unique token that can be shared more securely instead of the order's id. @@ -214,17 +232,19 @@ type GETOrdersOrderId200ResponseDataAttributes struct { RefreshedAt interface{} `json:"refreshed_at,omitempty"` // Time at which the resource has been archived. ArchivedAt interface{} `json:"archived_at,omitempty"` - // Time at which an order is marked for cleanup. Any order will start with a default expire time of 2 months. Expiration is reset once a line item is added to the order. - ExpiresAt interface{} `json:"expires_at,omitempty"` // Time at which the order has been marked to create a subscription from its recurring line items. SubscriptionCreatedAt interface{} `json:"subscription_created_at,omitempty"` + // The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. + CircuitState interface{} `json:"circuit_state,omitempty"` + // The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. + CircuitFailureCount interface{} `json:"circuit_failure_count,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -280,6 +300,39 @@ func (o *GETOrdersOrderId200ResponseDataAttributes) SetNumber(v interface{}) { o.Number = v } +// GetAffiliateCode returns the AffiliateCode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrdersOrderId200ResponseDataAttributes) GetAffiliateCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.AffiliateCode +} + +// GetAffiliateCodeOk returns a tuple with the AffiliateCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrdersOrderId200ResponseDataAttributes) GetAffiliateCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.AffiliateCode) { + return nil, false + } + return &o.AffiliateCode, true +} + +// HasAffiliateCode returns a boolean if a field has been set. +func (o *GETOrdersOrderId200ResponseDataAttributes) HasAffiliateCode() bool { + if o != nil && IsNil(o.AffiliateCode) { + return true + } + + return false +} + +// SetAffiliateCode gets a reference to the given interface{} and assigns it to the AffiliateCode field. +func (o *GETOrdersOrderId200ResponseDataAttributes) SetAffiliateCode(v interface{}) { + o.AffiliateCode = v +} + // GetAutorefresh returns the Autorefresh field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETOrdersOrderId200ResponseDataAttributes) GetAutorefresh() interface{} { if o == nil { @@ -313,6 +366,39 @@ func (o *GETOrdersOrderId200ResponseDataAttributes) SetAutorefresh(v interface{} o.Autorefresh = v } +// GetPlaceAsync returns the PlaceAsync field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrdersOrderId200ResponseDataAttributes) GetPlaceAsync() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PlaceAsync +} + +// GetPlaceAsyncOk returns a tuple with the PlaceAsync field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrdersOrderId200ResponseDataAttributes) GetPlaceAsyncOk() (*interface{}, bool) { + if o == nil || IsNil(o.PlaceAsync) { + return nil, false + } + return &o.PlaceAsync, true +} + +// HasPlaceAsync returns a boolean if a field has been set. +func (o *GETOrdersOrderId200ResponseDataAttributes) HasPlaceAsync() bool { + if o != nil && IsNil(o.PlaceAsync) { + return true + } + + return false +} + +// SetPlaceAsync gets a reference to the given interface{} and assigns it to the PlaceAsync field. +func (o *GETOrdersOrderId200ResponseDataAttributes) SetPlaceAsync(v interface{}) { + o.PlaceAsync = v +} + // GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETOrdersOrderId200ResponseDataAttributes) GetStatus() interface{} { if o == nil { @@ -676,6 +762,105 @@ func (o *GETOrdersOrderId200ResponseDataAttributes) SetFreightTaxable(v interfac o.FreightTaxable = v } +// GetPaymentMethodTaxable returns the PaymentMethodTaxable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrdersOrderId200ResponseDataAttributes) GetPaymentMethodTaxable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PaymentMethodTaxable +} + +// GetPaymentMethodTaxableOk returns a tuple with the PaymentMethodTaxable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrdersOrderId200ResponseDataAttributes) GetPaymentMethodTaxableOk() (*interface{}, bool) { + if o == nil || IsNil(o.PaymentMethodTaxable) { + return nil, false + } + return &o.PaymentMethodTaxable, true +} + +// HasPaymentMethodTaxable returns a boolean if a field has been set. +func (o *GETOrdersOrderId200ResponseDataAttributes) HasPaymentMethodTaxable() bool { + if o != nil && IsNil(o.PaymentMethodTaxable) { + return true + } + + return false +} + +// SetPaymentMethodTaxable gets a reference to the given interface{} and assigns it to the PaymentMethodTaxable field. +func (o *GETOrdersOrderId200ResponseDataAttributes) SetPaymentMethodTaxable(v interface{}) { + o.PaymentMethodTaxable = v +} + +// GetAdjustmentTaxable returns the AdjustmentTaxable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrdersOrderId200ResponseDataAttributes) GetAdjustmentTaxable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.AdjustmentTaxable +} + +// GetAdjustmentTaxableOk returns a tuple with the AdjustmentTaxable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrdersOrderId200ResponseDataAttributes) GetAdjustmentTaxableOk() (*interface{}, bool) { + if o == nil || IsNil(o.AdjustmentTaxable) { + return nil, false + } + return &o.AdjustmentTaxable, true +} + +// HasAdjustmentTaxable returns a boolean if a field has been set. +func (o *GETOrdersOrderId200ResponseDataAttributes) HasAdjustmentTaxable() bool { + if o != nil && IsNil(o.AdjustmentTaxable) { + return true + } + + return false +} + +// SetAdjustmentTaxable gets a reference to the given interface{} and assigns it to the AdjustmentTaxable field. +func (o *GETOrdersOrderId200ResponseDataAttributes) SetAdjustmentTaxable(v interface{}) { + o.AdjustmentTaxable = v +} + +// GetGiftCardTaxable returns the GiftCardTaxable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrdersOrderId200ResponseDataAttributes) GetGiftCardTaxable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.GiftCardTaxable +} + +// GetGiftCardTaxableOk returns a tuple with the GiftCardTaxable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrdersOrderId200ResponseDataAttributes) GetGiftCardTaxableOk() (*interface{}, bool) { + if o == nil || IsNil(o.GiftCardTaxable) { + return nil, false + } + return &o.GiftCardTaxable, true +} + +// HasGiftCardTaxable returns a boolean if a field has been set. +func (o *GETOrdersOrderId200ResponseDataAttributes) HasGiftCardTaxable() bool { + if o != nil && IsNil(o.GiftCardTaxable) { + return true + } + + return false +} + +// SetGiftCardTaxable gets a reference to the given interface{} and assigns it to the GiftCardTaxable field. +func (o *GETOrdersOrderId200ResponseDataAttributes) SetGiftCardTaxable(v interface{}) { + o.GiftCardTaxable = v +} + // GetRequiresBillingInfo returns the RequiresBillingInfo field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETOrdersOrderId200ResponseDataAttributes) GetRequiresBillingInfo() interface{} { if o == nil { @@ -841,39 +1026,6 @@ func (o *GETOrdersOrderId200ResponseDataAttributes) SetGiftCardCode(v interface{ o.GiftCardCode = v } -// GetGiftCardOrCouponCode returns the GiftCardOrCouponCode field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETOrdersOrderId200ResponseDataAttributes) GetGiftCardOrCouponCode() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.GiftCardOrCouponCode -} - -// GetGiftCardOrCouponCodeOk returns a tuple with the GiftCardOrCouponCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETOrdersOrderId200ResponseDataAttributes) GetGiftCardOrCouponCodeOk() (*interface{}, bool) { - if o == nil || IsNil(o.GiftCardOrCouponCode) { - return nil, false - } - return &o.GiftCardOrCouponCode, true -} - -// HasGiftCardOrCouponCode returns a boolean if a field has been set. -func (o *GETOrdersOrderId200ResponseDataAttributes) HasGiftCardOrCouponCode() bool { - if o != nil && IsNil(o.GiftCardOrCouponCode) { - return true - } - - return false -} - -// SetGiftCardOrCouponCode gets a reference to the given interface{} and assigns it to the GiftCardOrCouponCode field. -func (o *GETOrdersOrderId200ResponseDataAttributes) SetGiftCardOrCouponCode(v interface{}) { - o.GiftCardOrCouponCode = v -} - // GetSubtotalAmountCents returns the SubtotalAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETOrdersOrderId200ResponseDataAttributes) GetSubtotalAmountCents() interface{} { if o == nil { @@ -2854,6 +3006,105 @@ func (o *GETOrdersOrderId200ResponseDataAttributes) SetFormattedDutyAmount(v int o.FormattedDutyAmount = v } +// GetPlaceTotalAmountCents returns the PlaceTotalAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrdersOrderId200ResponseDataAttributes) GetPlaceTotalAmountCents() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PlaceTotalAmountCents +} + +// GetPlaceTotalAmountCentsOk returns a tuple with the PlaceTotalAmountCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrdersOrderId200ResponseDataAttributes) GetPlaceTotalAmountCentsOk() (*interface{}, bool) { + if o == nil || IsNil(o.PlaceTotalAmountCents) { + return nil, false + } + return &o.PlaceTotalAmountCents, true +} + +// HasPlaceTotalAmountCents returns a boolean if a field has been set. +func (o *GETOrdersOrderId200ResponseDataAttributes) HasPlaceTotalAmountCents() bool { + if o != nil && IsNil(o.PlaceTotalAmountCents) { + return true + } + + return false +} + +// SetPlaceTotalAmountCents gets a reference to the given interface{} and assigns it to the PlaceTotalAmountCents field. +func (o *GETOrdersOrderId200ResponseDataAttributes) SetPlaceTotalAmountCents(v interface{}) { + o.PlaceTotalAmountCents = v +} + +// GetPlaceTotalAmountFloat returns the PlaceTotalAmountFloat field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrdersOrderId200ResponseDataAttributes) GetPlaceTotalAmountFloat() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PlaceTotalAmountFloat +} + +// GetPlaceTotalAmountFloatOk returns a tuple with the PlaceTotalAmountFloat field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrdersOrderId200ResponseDataAttributes) GetPlaceTotalAmountFloatOk() (*interface{}, bool) { + if o == nil || IsNil(o.PlaceTotalAmountFloat) { + return nil, false + } + return &o.PlaceTotalAmountFloat, true +} + +// HasPlaceTotalAmountFloat returns a boolean if a field has been set. +func (o *GETOrdersOrderId200ResponseDataAttributes) HasPlaceTotalAmountFloat() bool { + if o != nil && IsNil(o.PlaceTotalAmountFloat) { + return true + } + + return false +} + +// SetPlaceTotalAmountFloat gets a reference to the given interface{} and assigns it to the PlaceTotalAmountFloat field. +func (o *GETOrdersOrderId200ResponseDataAttributes) SetPlaceTotalAmountFloat(v interface{}) { + o.PlaceTotalAmountFloat = v +} + +// GetFormattedPlaceTotalAmount returns the FormattedPlaceTotalAmount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrdersOrderId200ResponseDataAttributes) GetFormattedPlaceTotalAmount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.FormattedPlaceTotalAmount +} + +// GetFormattedPlaceTotalAmountOk returns a tuple with the FormattedPlaceTotalAmount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrdersOrderId200ResponseDataAttributes) GetFormattedPlaceTotalAmountOk() (*interface{}, bool) { + if o == nil || IsNil(o.FormattedPlaceTotalAmount) { + return nil, false + } + return &o.FormattedPlaceTotalAmount, true +} + +// HasFormattedPlaceTotalAmount returns a boolean if a field has been set. +func (o *GETOrdersOrderId200ResponseDataAttributes) HasFormattedPlaceTotalAmount() bool { + if o != nil && IsNil(o.FormattedPlaceTotalAmount) { + return true + } + + return false +} + +// SetFormattedPlaceTotalAmount gets a reference to the given interface{} and assigns it to the FormattedPlaceTotalAmount field. +func (o *GETOrdersOrderId200ResponseDataAttributes) SetFormattedPlaceTotalAmount(v interface{}) { + o.FormattedPlaceTotalAmount = v +} + // GetSkusCount returns the SkusCount field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETOrdersOrderId200ResponseDataAttributes) GetSkusCount() interface{} { if o == nil { @@ -2986,6 +3237,72 @@ func (o *GETOrdersOrderId200ResponseDataAttributes) SetTaxCalculationsCount(v in o.TaxCalculationsCount = v } +// GetValidationsCount returns the ValidationsCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrdersOrderId200ResponseDataAttributes) GetValidationsCount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ValidationsCount +} + +// GetValidationsCountOk returns a tuple with the ValidationsCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrdersOrderId200ResponseDataAttributes) GetValidationsCountOk() (*interface{}, bool) { + if o == nil || IsNil(o.ValidationsCount) { + return nil, false + } + return &o.ValidationsCount, true +} + +// HasValidationsCount returns a boolean if a field has been set. +func (o *GETOrdersOrderId200ResponseDataAttributes) HasValidationsCount() bool { + if o != nil && IsNil(o.ValidationsCount) { + return true + } + + return false +} + +// SetValidationsCount gets a reference to the given interface{} and assigns it to the ValidationsCount field. +func (o *GETOrdersOrderId200ResponseDataAttributes) SetValidationsCount(v interface{}) { + o.ValidationsCount = v +} + +// GetErrorsCount returns the ErrorsCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrdersOrderId200ResponseDataAttributes) GetErrorsCount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ErrorsCount +} + +// GetErrorsCountOk returns a tuple with the ErrorsCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrdersOrderId200ResponseDataAttributes) GetErrorsCountOk() (*interface{}, bool) { + if o == nil || IsNil(o.ErrorsCount) { + return nil, false + } + return &o.ErrorsCount, true +} + +// HasErrorsCount returns a boolean if a field has been set. +func (o *GETOrdersOrderId200ResponseDataAttributes) HasErrorsCount() bool { + if o != nil && IsNil(o.ErrorsCount) { + return true + } + + return false +} + +// SetErrorsCount gets a reference to the given interface{} and assigns it to the ErrorsCount field. +func (o *GETOrdersOrderId200ResponseDataAttributes) SetErrorsCount(v interface{}) { + o.ErrorsCount = v +} + // GetPaymentSourceDetails returns the PaymentSourceDetails field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETOrdersOrderId200ResponseDataAttributes) GetPaymentSourceDetails() interface{} { if o == nil { @@ -3448,70 +3765,103 @@ func (o *GETOrdersOrderId200ResponseDataAttributes) SetArchivedAt(v interface{}) o.ArchivedAt = v } -// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETOrdersOrderId200ResponseDataAttributes) GetExpiresAt() interface{} { +// GetSubscriptionCreatedAt returns the SubscriptionCreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrdersOrderId200ResponseDataAttributes) GetSubscriptionCreatedAt() interface{} { if o == nil { var ret interface{} return ret } - return o.ExpiresAt + return o.SubscriptionCreatedAt } -// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// GetSubscriptionCreatedAtOk returns a tuple with the SubscriptionCreatedAt field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETOrdersOrderId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool) { - if o == nil || IsNil(o.ExpiresAt) { +func (o *GETOrdersOrderId200ResponseDataAttributes) GetSubscriptionCreatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.SubscriptionCreatedAt) { return nil, false } - return &o.ExpiresAt, true + return &o.SubscriptionCreatedAt, true } -// HasExpiresAt returns a boolean if a field has been set. -func (o *GETOrdersOrderId200ResponseDataAttributes) HasExpiresAt() bool { - if o != nil && IsNil(o.ExpiresAt) { +// HasSubscriptionCreatedAt returns a boolean if a field has been set. +func (o *GETOrdersOrderId200ResponseDataAttributes) HasSubscriptionCreatedAt() bool { + if o != nil && IsNil(o.SubscriptionCreatedAt) { return true } return false } -// SetExpiresAt gets a reference to the given interface{} and assigns it to the ExpiresAt field. -func (o *GETOrdersOrderId200ResponseDataAttributes) SetExpiresAt(v interface{}) { - o.ExpiresAt = v +// SetSubscriptionCreatedAt gets a reference to the given interface{} and assigns it to the SubscriptionCreatedAt field. +func (o *GETOrdersOrderId200ResponseDataAttributes) SetSubscriptionCreatedAt(v interface{}) { + o.SubscriptionCreatedAt = v } -// GetSubscriptionCreatedAt returns the SubscriptionCreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETOrdersOrderId200ResponseDataAttributes) GetSubscriptionCreatedAt() interface{} { +// GetCircuitState returns the CircuitState field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrdersOrderId200ResponseDataAttributes) GetCircuitState() interface{} { if o == nil { var ret interface{} return ret } - return o.SubscriptionCreatedAt + return o.CircuitState } -// GetSubscriptionCreatedAtOk returns a tuple with the SubscriptionCreatedAt field value if set, nil otherwise +// GetCircuitStateOk returns a tuple with the CircuitState field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETOrdersOrderId200ResponseDataAttributes) GetSubscriptionCreatedAtOk() (*interface{}, bool) { - if o == nil || IsNil(o.SubscriptionCreatedAt) { +func (o *GETOrdersOrderId200ResponseDataAttributes) GetCircuitStateOk() (*interface{}, bool) { + if o == nil || IsNil(o.CircuitState) { return nil, false } - return &o.SubscriptionCreatedAt, true + return &o.CircuitState, true } -// HasSubscriptionCreatedAt returns a boolean if a field has been set. -func (o *GETOrdersOrderId200ResponseDataAttributes) HasSubscriptionCreatedAt() bool { - if o != nil && IsNil(o.SubscriptionCreatedAt) { +// HasCircuitState returns a boolean if a field has been set. +func (o *GETOrdersOrderId200ResponseDataAttributes) HasCircuitState() bool { + if o != nil && IsNil(o.CircuitState) { return true } return false } -// SetSubscriptionCreatedAt gets a reference to the given interface{} and assigns it to the SubscriptionCreatedAt field. -func (o *GETOrdersOrderId200ResponseDataAttributes) SetSubscriptionCreatedAt(v interface{}) { - o.SubscriptionCreatedAt = v +// SetCircuitState gets a reference to the given interface{} and assigns it to the CircuitState field. +func (o *GETOrdersOrderId200ResponseDataAttributes) SetCircuitState(v interface{}) { + o.CircuitState = v +} + +// GetCircuitFailureCount returns the CircuitFailureCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrdersOrderId200ResponseDataAttributes) GetCircuitFailureCount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CircuitFailureCount +} + +// GetCircuitFailureCountOk returns a tuple with the CircuitFailureCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrdersOrderId200ResponseDataAttributes) GetCircuitFailureCountOk() (*interface{}, bool) { + if o == nil || IsNil(o.CircuitFailureCount) { + return nil, false + } + return &o.CircuitFailureCount, true +} + +// HasCircuitFailureCount returns a boolean if a field has been set. +func (o *GETOrdersOrderId200ResponseDataAttributes) HasCircuitFailureCount() bool { + if o != nil && IsNil(o.CircuitFailureCount) { + return true + } + + return false +} + +// SetCircuitFailureCount gets a reference to the given interface{} and assigns it to the CircuitFailureCount field. +func (o *GETOrdersOrderId200ResponseDataAttributes) SetCircuitFailureCount(v interface{}) { + o.CircuitFailureCount = v } // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). @@ -3692,9 +4042,15 @@ func (o GETOrdersOrderId200ResponseDataAttributes) ToMap() (map[string]interface if o.Number != nil { toSerialize["number"] = o.Number } + if o.AffiliateCode != nil { + toSerialize["affiliate_code"] = o.AffiliateCode + } if o.Autorefresh != nil { toSerialize["autorefresh"] = o.Autorefresh } + if o.PlaceAsync != nil { + toSerialize["place_async"] = o.PlaceAsync + } if o.Status != nil { toSerialize["status"] = o.Status } @@ -3728,6 +4084,15 @@ func (o GETOrdersOrderId200ResponseDataAttributes) ToMap() (map[string]interface if o.FreightTaxable != nil { toSerialize["freight_taxable"] = o.FreightTaxable } + if o.PaymentMethodTaxable != nil { + toSerialize["payment_method_taxable"] = o.PaymentMethodTaxable + } + if o.AdjustmentTaxable != nil { + toSerialize["adjustment_taxable"] = o.AdjustmentTaxable + } + if o.GiftCardTaxable != nil { + toSerialize["gift_card_taxable"] = o.GiftCardTaxable + } if o.RequiresBillingInfo != nil { toSerialize["requires_billing_info"] = o.RequiresBillingInfo } @@ -3743,9 +4108,6 @@ func (o GETOrdersOrderId200ResponseDataAttributes) ToMap() (map[string]interface if o.GiftCardCode != nil { toSerialize["gift_card_code"] = o.GiftCardCode } - if o.GiftCardOrCouponCode != nil { - toSerialize["gift_card_or_coupon_code"] = o.GiftCardOrCouponCode - } if o.SubtotalAmountCents != nil { toSerialize["subtotal_amount_cents"] = o.SubtotalAmountCents } @@ -3926,6 +4288,15 @@ func (o GETOrdersOrderId200ResponseDataAttributes) ToMap() (map[string]interface if o.FormattedDutyAmount != nil { toSerialize["formatted_duty_amount"] = o.FormattedDutyAmount } + if o.PlaceTotalAmountCents != nil { + toSerialize["place_total_amount_cents"] = o.PlaceTotalAmountCents + } + if o.PlaceTotalAmountFloat != nil { + toSerialize["place_total_amount_float"] = o.PlaceTotalAmountFloat + } + if o.FormattedPlaceTotalAmount != nil { + toSerialize["formatted_place_total_amount"] = o.FormattedPlaceTotalAmount + } if o.SkusCount != nil { toSerialize["skus_count"] = o.SkusCount } @@ -3938,6 +4309,12 @@ func (o GETOrdersOrderId200ResponseDataAttributes) ToMap() (map[string]interface if o.TaxCalculationsCount != nil { toSerialize["tax_calculations_count"] = o.TaxCalculationsCount } + if o.ValidationsCount != nil { + toSerialize["validations_count"] = o.ValidationsCount + } + if o.ErrorsCount != nil { + toSerialize["errors_count"] = o.ErrorsCount + } if o.PaymentSourceDetails != nil { toSerialize["payment_source_details"] = o.PaymentSourceDetails } @@ -3980,12 +4357,15 @@ func (o GETOrdersOrderId200ResponseDataAttributes) ToMap() (map[string]interface if o.ArchivedAt != nil { toSerialize["archived_at"] = o.ArchivedAt } - if o.ExpiresAt != nil { - toSerialize["expires_at"] = o.ExpiresAt - } if o.SubscriptionCreatedAt != nil { toSerialize["subscription_created_at"] = o.SubscriptionCreatedAt } + if o.CircuitState != nil { + toSerialize["circuit_state"] = o.CircuitState + } + if o.CircuitFailureCount != nil { + toSerialize["circuit_failure_count"] = o.CircuitFailureCount + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_organization_organization_id_200_response.go b/api/model_get_organization_organization_id_200_response.go index e69277ab..5c458ecf 100644 --- a/api/model_get_organization_organization_id_200_response.go +++ b/api/model_get_organization_organization_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_organization_organization_id_200_response_data.go b/api/model_get_organization_organization_id_200_response_data.go index 60aeaebc..d5b0c4c3 100644 --- a/api/model_get_organization_organization_id_200_response_data.go +++ b/api/model_get_organization_organization_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_organization_organization_id_200_response_data_attributes.go b/api/model_get_organization_organization_id_200_response_data_attributes.go index d88d65c5..61354d05 100644 --- a/api/model_get_organization_organization_id_200_response_data_attributes.go +++ b/api/model_get_organization_organization_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -36,29 +36,59 @@ type GETOrganizationOrganizationId200ResponseDataAttributes struct { FaviconUrl interface{} `json:"favicon_url,omitempty"` // The organization's primary color. PrimaryColor interface{} `json:"primary_color,omitempty"` - // The organization's contrast color. - ContrastColor interface{} `json:"contrast_color,omitempty"` // The organization's Google Tag Manager ID. GtmId interface{} `json:"gtm_id,omitempty"` // The organization's Google Tag Manager ID for test. GtmIdTest interface{} `json:"gtm_id_test,omitempty"` - // Indicates if organization has discount disabled. - DiscountDisabled interface{} `json:"discount_disabled,omitempty"` - // Indicates if organization has account disabled. - AccountDisabled interface{} `json:"account_disabled,omitempty"` - // Indicates if organization has acceptance disabled. - AcceptanceDisabled interface{} `json:"acceptance_disabled,omitempty"` - // The maximum number of active concurrent promotions allowed for your organization. - MaxConcurrentPromotions interface{} `json:"max_concurrent_promotions,omitempty"` - // The maximum number of concurrent imports allowed for your organization. - MaxConcurrentImports interface{} `json:"max_concurrent_imports,omitempty"` + // The organization's configuration. + Config interface{} `json:"config,omitempty"` + // Enables the redirect on the new Auth API. + ApiAuthRedirect interface{} `json:"api_auth_redirect,omitempty"` + // Enables the rules engine for flex promotions and price list rules. + ApiRulesEngine interface{} `json:"api_rules_engine,omitempty"` + // Indicates if the phone attribute is required for addresses, default is true. + AddressesPhoneRequired interface{} `json:"addresses_phone_required,omitempty"` + // The maximum number line items allowed for a test order before disabling the autorefresh option. + OrdersAutorefreshCutoffTest interface{} `json:"orders_autorefresh_cutoff_test,omitempty"` + // The maximum number line items allowed for a live order before disabling the autorefresh option. + OrdersAutorefreshCutoffLive interface{} `json:"orders_autorefresh_cutoff_live,omitempty"` + // Enables orders number editing as a string in test (for enterprise plans only). + OrdersNumberEditableTest interface{} `json:"orders_number_editable_test,omitempty"` + // Enables orders number editing as a string in live (for enterprise plans only). + OrdersNumberEditableLive interface{} `json:"orders_number_editable_live,omitempty"` + // Enables to use the order number as payment reference on supported gateways. + OrdersNumberAsReference interface{} `json:"orders_number_as_reference,omitempty"` + // The maximum number of SKUs allowed for bundles, default is 10. + BundlesMaxItemsCount interface{} `json:"bundles_max_items_count,omitempty"` + // The minimum length for coupon code, default is 8. + CouponsMinCodeLength interface{} `json:"coupons_min_code_length,omitempty"` + // The maximum length for coupon code, default is 40. + CouponsMaxCodeLength interface{} `json:"coupons_max_code_length,omitempty"` + // The minimum length for gift card code, default is 8. + GiftCardsMinCodeLength interface{} `json:"gift_cards_min_code_length,omitempty"` + // The maximum length for gift card code, default is 40. + GiftCardsMaxCodeLength interface{} `json:"gift_cards_max_code_length,omitempty"` + // The maximum number of concurrent cleanups allowed for your organization, default is 10. + CleanupsMaxConcurrentCount interface{} `json:"cleanups_max_concurrent_count,omitempty"` + // The maximum number of concurrent exports allowed for your organization, default is 10. + ExportsMaxConcurrentCount interface{} `json:"exports_max_concurrent_count,omitempty"` + // The maximum number of concurrent imports allowed for your organization, default is 10. + ImportsMaxConcurrentCount interface{} `json:"imports_max_concurrent_count,omitempty"` + // The maximum number of active concurrent promotions allowed for your organization, default is 10. + PromotionsMaxConcurrentCount interface{} `json:"promotions_max_concurrent_count,omitempty"` + // Enables triggering of webhooks during imports, default is false. + ImportsTriggerWebhooks interface{} `json:"imports_trigger_webhooks,omitempty"` + // Enables raising of API errors in case of tax calculation failure, default is false. + TaxCalculatorsErrors interface{} `json:"tax_calculators_errors,omitempty"` + // Enables raising of API errors in case of external promotion failure, default is false. + ExternalPromotionsErrors interface{} `json:"external_promotions_errors,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -345,39 +375,6 @@ func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetPrimaryColor o.PrimaryColor = v } -// GetContrastColor returns the ContrastColor field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetContrastColor() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.ContrastColor -} - -// GetContrastColorOk returns a tuple with the ContrastColor field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetContrastColorOk() (*interface{}, bool) { - if o == nil || IsNil(o.ContrastColor) { - return nil, false - } - return &o.ContrastColor, true -} - -// HasContrastColor returns a boolean if a field has been set. -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasContrastColor() bool { - if o != nil && IsNil(o.ContrastColor) { - return true - } - - return false -} - -// SetContrastColor gets a reference to the given interface{} and assigns it to the ContrastColor field. -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetContrastColor(v interface{}) { - o.ContrastColor = v -} - // GetGtmId returns the GtmId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetGtmId() interface{} { if o == nil { @@ -444,169 +441,697 @@ func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetGtmIdTest(v o.GtmIdTest = v } -// GetDiscountDisabled returns the DiscountDisabled field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetDiscountDisabled() interface{} { +// GetConfig returns the Config field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetConfig() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetConfigOk() (*interface{}, bool) { + if o == nil || IsNil(o.Config) { + return nil, false + } + return &o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasConfig() bool { + if o != nil && IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given interface{} and assigns it to the Config field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetConfig(v interface{}) { + o.Config = v +} + +// GetApiAuthRedirect returns the ApiAuthRedirect field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetApiAuthRedirect() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ApiAuthRedirect +} + +// GetApiAuthRedirectOk returns a tuple with the ApiAuthRedirect field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetApiAuthRedirectOk() (*interface{}, bool) { + if o == nil || IsNil(o.ApiAuthRedirect) { + return nil, false + } + return &o.ApiAuthRedirect, true +} + +// HasApiAuthRedirect returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasApiAuthRedirect() bool { + if o != nil && IsNil(o.ApiAuthRedirect) { + return true + } + + return false +} + +// SetApiAuthRedirect gets a reference to the given interface{} and assigns it to the ApiAuthRedirect field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetApiAuthRedirect(v interface{}) { + o.ApiAuthRedirect = v +} + +// GetApiRulesEngine returns the ApiRulesEngine field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetApiRulesEngine() interface{} { if o == nil { var ret interface{} return ret } - return o.DiscountDisabled + return o.ApiRulesEngine } -// GetDiscountDisabledOk returns a tuple with the DiscountDisabled field value if set, nil otherwise +// GetApiRulesEngineOk returns a tuple with the ApiRulesEngine field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetDiscountDisabledOk() (*interface{}, bool) { - if o == nil || IsNil(o.DiscountDisabled) { +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetApiRulesEngineOk() (*interface{}, bool) { + if o == nil || IsNil(o.ApiRulesEngine) { return nil, false } - return &o.DiscountDisabled, true + return &o.ApiRulesEngine, true } -// HasDiscountDisabled returns a boolean if a field has been set. -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasDiscountDisabled() bool { - if o != nil && IsNil(o.DiscountDisabled) { +// HasApiRulesEngine returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasApiRulesEngine() bool { + if o != nil && IsNil(o.ApiRulesEngine) { return true } return false } -// SetDiscountDisabled gets a reference to the given interface{} and assigns it to the DiscountDisabled field. -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetDiscountDisabled(v interface{}) { - o.DiscountDisabled = v +// SetApiRulesEngine gets a reference to the given interface{} and assigns it to the ApiRulesEngine field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetApiRulesEngine(v interface{}) { + o.ApiRulesEngine = v } -// GetAccountDisabled returns the AccountDisabled field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetAccountDisabled() interface{} { +// GetAddressesPhoneRequired returns the AddressesPhoneRequired field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetAddressesPhoneRequired() interface{} { if o == nil { var ret interface{} return ret } - return o.AccountDisabled + return o.AddressesPhoneRequired } -// GetAccountDisabledOk returns a tuple with the AccountDisabled field value if set, nil otherwise +// GetAddressesPhoneRequiredOk returns a tuple with the AddressesPhoneRequired field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetAccountDisabledOk() (*interface{}, bool) { - if o == nil || IsNil(o.AccountDisabled) { +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetAddressesPhoneRequiredOk() (*interface{}, bool) { + if o == nil || IsNil(o.AddressesPhoneRequired) { return nil, false } - return &o.AccountDisabled, true + return &o.AddressesPhoneRequired, true } -// HasAccountDisabled returns a boolean if a field has been set. -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasAccountDisabled() bool { - if o != nil && IsNil(o.AccountDisabled) { +// HasAddressesPhoneRequired returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasAddressesPhoneRequired() bool { + if o != nil && IsNil(o.AddressesPhoneRequired) { return true } return false } -// SetAccountDisabled gets a reference to the given interface{} and assigns it to the AccountDisabled field. -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetAccountDisabled(v interface{}) { - o.AccountDisabled = v +// SetAddressesPhoneRequired gets a reference to the given interface{} and assigns it to the AddressesPhoneRequired field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetAddressesPhoneRequired(v interface{}) { + o.AddressesPhoneRequired = v } -// GetAcceptanceDisabled returns the AcceptanceDisabled field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetAcceptanceDisabled() interface{} { +// GetOrdersAutorefreshCutoffTest returns the OrdersAutorefreshCutoffTest field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersAutorefreshCutoffTest() interface{} { if o == nil { var ret interface{} return ret } - return o.AcceptanceDisabled + return o.OrdersAutorefreshCutoffTest } -// GetAcceptanceDisabledOk returns a tuple with the AcceptanceDisabled field value if set, nil otherwise +// GetOrdersAutorefreshCutoffTestOk returns a tuple with the OrdersAutorefreshCutoffTest field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetAcceptanceDisabledOk() (*interface{}, bool) { - if o == nil || IsNil(o.AcceptanceDisabled) { +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersAutorefreshCutoffTestOk() (*interface{}, bool) { + if o == nil || IsNil(o.OrdersAutorefreshCutoffTest) { return nil, false } - return &o.AcceptanceDisabled, true + return &o.OrdersAutorefreshCutoffTest, true } -// HasAcceptanceDisabled returns a boolean if a field has been set. -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasAcceptanceDisabled() bool { - if o != nil && IsNil(o.AcceptanceDisabled) { +// HasOrdersAutorefreshCutoffTest returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasOrdersAutorefreshCutoffTest() bool { + if o != nil && IsNil(o.OrdersAutorefreshCutoffTest) { return true } return false } -// SetAcceptanceDisabled gets a reference to the given interface{} and assigns it to the AcceptanceDisabled field. -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetAcceptanceDisabled(v interface{}) { - o.AcceptanceDisabled = v +// SetOrdersAutorefreshCutoffTest gets a reference to the given interface{} and assigns it to the OrdersAutorefreshCutoffTest field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetOrdersAutorefreshCutoffTest(v interface{}) { + o.OrdersAutorefreshCutoffTest = v } -// GetMaxConcurrentPromotions returns the MaxConcurrentPromotions field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetMaxConcurrentPromotions() interface{} { +// GetOrdersAutorefreshCutoffLive returns the OrdersAutorefreshCutoffLive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersAutorefreshCutoffLive() interface{} { if o == nil { var ret interface{} return ret } - return o.MaxConcurrentPromotions + return o.OrdersAutorefreshCutoffLive } -// GetMaxConcurrentPromotionsOk returns a tuple with the MaxConcurrentPromotions field value if set, nil otherwise +// GetOrdersAutorefreshCutoffLiveOk returns a tuple with the OrdersAutorefreshCutoffLive field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetMaxConcurrentPromotionsOk() (*interface{}, bool) { - if o == nil || IsNil(o.MaxConcurrentPromotions) { +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersAutorefreshCutoffLiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.OrdersAutorefreshCutoffLive) { return nil, false } - return &o.MaxConcurrentPromotions, true + return &o.OrdersAutorefreshCutoffLive, true } -// HasMaxConcurrentPromotions returns a boolean if a field has been set. -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasMaxConcurrentPromotions() bool { - if o != nil && IsNil(o.MaxConcurrentPromotions) { +// HasOrdersAutorefreshCutoffLive returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasOrdersAutorefreshCutoffLive() bool { + if o != nil && IsNil(o.OrdersAutorefreshCutoffLive) { return true } return false } -// SetMaxConcurrentPromotions gets a reference to the given interface{} and assigns it to the MaxConcurrentPromotions field. -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetMaxConcurrentPromotions(v interface{}) { - o.MaxConcurrentPromotions = v +// SetOrdersAutorefreshCutoffLive gets a reference to the given interface{} and assigns it to the OrdersAutorefreshCutoffLive field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetOrdersAutorefreshCutoffLive(v interface{}) { + o.OrdersAutorefreshCutoffLive = v } -// GetMaxConcurrentImports returns the MaxConcurrentImports field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetMaxConcurrentImports() interface{} { +// GetOrdersNumberEditableTest returns the OrdersNumberEditableTest field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersNumberEditableTest() interface{} { if o == nil { var ret interface{} return ret } - return o.MaxConcurrentImports + return o.OrdersNumberEditableTest } -// GetMaxConcurrentImportsOk returns a tuple with the MaxConcurrentImports field value if set, nil otherwise +// GetOrdersNumberEditableTestOk returns a tuple with the OrdersNumberEditableTest field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetMaxConcurrentImportsOk() (*interface{}, bool) { - if o == nil || IsNil(o.MaxConcurrentImports) { +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersNumberEditableTestOk() (*interface{}, bool) { + if o == nil || IsNil(o.OrdersNumberEditableTest) { return nil, false } - return &o.MaxConcurrentImports, true + return &o.OrdersNumberEditableTest, true } -// HasMaxConcurrentImports returns a boolean if a field has been set. -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasMaxConcurrentImports() bool { - if o != nil && IsNil(o.MaxConcurrentImports) { +// HasOrdersNumberEditableTest returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasOrdersNumberEditableTest() bool { + if o != nil && IsNil(o.OrdersNumberEditableTest) { return true } return false } -// SetMaxConcurrentImports gets a reference to the given interface{} and assigns it to the MaxConcurrentImports field. -func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetMaxConcurrentImports(v interface{}) { - o.MaxConcurrentImports = v +// SetOrdersNumberEditableTest gets a reference to the given interface{} and assigns it to the OrdersNumberEditableTest field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetOrdersNumberEditableTest(v interface{}) { + o.OrdersNumberEditableTest = v +} + +// GetOrdersNumberEditableLive returns the OrdersNumberEditableLive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersNumberEditableLive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.OrdersNumberEditableLive +} + +// GetOrdersNumberEditableLiveOk returns a tuple with the OrdersNumberEditableLive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersNumberEditableLiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.OrdersNumberEditableLive) { + return nil, false + } + return &o.OrdersNumberEditableLive, true +} + +// HasOrdersNumberEditableLive returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasOrdersNumberEditableLive() bool { + if o != nil && IsNil(o.OrdersNumberEditableLive) { + return true + } + + return false +} + +// SetOrdersNumberEditableLive gets a reference to the given interface{} and assigns it to the OrdersNumberEditableLive field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetOrdersNumberEditableLive(v interface{}) { + o.OrdersNumberEditableLive = v +} + +// GetOrdersNumberAsReference returns the OrdersNumberAsReference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersNumberAsReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.OrdersNumberAsReference +} + +// GetOrdersNumberAsReferenceOk returns a tuple with the OrdersNumberAsReference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetOrdersNumberAsReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.OrdersNumberAsReference) { + return nil, false + } + return &o.OrdersNumberAsReference, true +} + +// HasOrdersNumberAsReference returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasOrdersNumberAsReference() bool { + if o != nil && IsNil(o.OrdersNumberAsReference) { + return true + } + + return false +} + +// SetOrdersNumberAsReference gets a reference to the given interface{} and assigns it to the OrdersNumberAsReference field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetOrdersNumberAsReference(v interface{}) { + o.OrdersNumberAsReference = v +} + +// GetBundlesMaxItemsCount returns the BundlesMaxItemsCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetBundlesMaxItemsCount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.BundlesMaxItemsCount +} + +// GetBundlesMaxItemsCountOk returns a tuple with the BundlesMaxItemsCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetBundlesMaxItemsCountOk() (*interface{}, bool) { + if o == nil || IsNil(o.BundlesMaxItemsCount) { + return nil, false + } + return &o.BundlesMaxItemsCount, true +} + +// HasBundlesMaxItemsCount returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasBundlesMaxItemsCount() bool { + if o != nil && IsNil(o.BundlesMaxItemsCount) { + return true + } + + return false +} + +// SetBundlesMaxItemsCount gets a reference to the given interface{} and assigns it to the BundlesMaxItemsCount field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetBundlesMaxItemsCount(v interface{}) { + o.BundlesMaxItemsCount = v +} + +// GetCouponsMinCodeLength returns the CouponsMinCodeLength field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetCouponsMinCodeLength() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CouponsMinCodeLength +} + +// GetCouponsMinCodeLengthOk returns a tuple with the CouponsMinCodeLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetCouponsMinCodeLengthOk() (*interface{}, bool) { + if o == nil || IsNil(o.CouponsMinCodeLength) { + return nil, false + } + return &o.CouponsMinCodeLength, true +} + +// HasCouponsMinCodeLength returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasCouponsMinCodeLength() bool { + if o != nil && IsNil(o.CouponsMinCodeLength) { + return true + } + + return false +} + +// SetCouponsMinCodeLength gets a reference to the given interface{} and assigns it to the CouponsMinCodeLength field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetCouponsMinCodeLength(v interface{}) { + o.CouponsMinCodeLength = v +} + +// GetCouponsMaxCodeLength returns the CouponsMaxCodeLength field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetCouponsMaxCodeLength() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CouponsMaxCodeLength +} + +// GetCouponsMaxCodeLengthOk returns a tuple with the CouponsMaxCodeLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetCouponsMaxCodeLengthOk() (*interface{}, bool) { + if o == nil || IsNil(o.CouponsMaxCodeLength) { + return nil, false + } + return &o.CouponsMaxCodeLength, true +} + +// HasCouponsMaxCodeLength returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasCouponsMaxCodeLength() bool { + if o != nil && IsNil(o.CouponsMaxCodeLength) { + return true + } + + return false +} + +// SetCouponsMaxCodeLength gets a reference to the given interface{} and assigns it to the CouponsMaxCodeLength field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetCouponsMaxCodeLength(v interface{}) { + o.CouponsMaxCodeLength = v +} + +// GetGiftCardsMinCodeLength returns the GiftCardsMinCodeLength field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetGiftCardsMinCodeLength() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.GiftCardsMinCodeLength +} + +// GetGiftCardsMinCodeLengthOk returns a tuple with the GiftCardsMinCodeLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetGiftCardsMinCodeLengthOk() (*interface{}, bool) { + if o == nil || IsNil(o.GiftCardsMinCodeLength) { + return nil, false + } + return &o.GiftCardsMinCodeLength, true +} + +// HasGiftCardsMinCodeLength returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasGiftCardsMinCodeLength() bool { + if o != nil && IsNil(o.GiftCardsMinCodeLength) { + return true + } + + return false +} + +// SetGiftCardsMinCodeLength gets a reference to the given interface{} and assigns it to the GiftCardsMinCodeLength field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetGiftCardsMinCodeLength(v interface{}) { + o.GiftCardsMinCodeLength = v +} + +// GetGiftCardsMaxCodeLength returns the GiftCardsMaxCodeLength field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetGiftCardsMaxCodeLength() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.GiftCardsMaxCodeLength +} + +// GetGiftCardsMaxCodeLengthOk returns a tuple with the GiftCardsMaxCodeLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetGiftCardsMaxCodeLengthOk() (*interface{}, bool) { + if o == nil || IsNil(o.GiftCardsMaxCodeLength) { + return nil, false + } + return &o.GiftCardsMaxCodeLength, true +} + +// HasGiftCardsMaxCodeLength returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasGiftCardsMaxCodeLength() bool { + if o != nil && IsNil(o.GiftCardsMaxCodeLength) { + return true + } + + return false +} + +// SetGiftCardsMaxCodeLength gets a reference to the given interface{} and assigns it to the GiftCardsMaxCodeLength field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetGiftCardsMaxCodeLength(v interface{}) { + o.GiftCardsMaxCodeLength = v +} + +// GetCleanupsMaxConcurrentCount returns the CleanupsMaxConcurrentCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetCleanupsMaxConcurrentCount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CleanupsMaxConcurrentCount +} + +// GetCleanupsMaxConcurrentCountOk returns a tuple with the CleanupsMaxConcurrentCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetCleanupsMaxConcurrentCountOk() (*interface{}, bool) { + if o == nil || IsNil(o.CleanupsMaxConcurrentCount) { + return nil, false + } + return &o.CleanupsMaxConcurrentCount, true +} + +// HasCleanupsMaxConcurrentCount returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasCleanupsMaxConcurrentCount() bool { + if o != nil && IsNil(o.CleanupsMaxConcurrentCount) { + return true + } + + return false +} + +// SetCleanupsMaxConcurrentCount gets a reference to the given interface{} and assigns it to the CleanupsMaxConcurrentCount field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetCleanupsMaxConcurrentCount(v interface{}) { + o.CleanupsMaxConcurrentCount = v +} + +// GetExportsMaxConcurrentCount returns the ExportsMaxConcurrentCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetExportsMaxConcurrentCount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ExportsMaxConcurrentCount +} + +// GetExportsMaxConcurrentCountOk returns a tuple with the ExportsMaxConcurrentCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetExportsMaxConcurrentCountOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExportsMaxConcurrentCount) { + return nil, false + } + return &o.ExportsMaxConcurrentCount, true +} + +// HasExportsMaxConcurrentCount returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasExportsMaxConcurrentCount() bool { + if o != nil && IsNil(o.ExportsMaxConcurrentCount) { + return true + } + + return false +} + +// SetExportsMaxConcurrentCount gets a reference to the given interface{} and assigns it to the ExportsMaxConcurrentCount field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetExportsMaxConcurrentCount(v interface{}) { + o.ExportsMaxConcurrentCount = v +} + +// GetImportsMaxConcurrentCount returns the ImportsMaxConcurrentCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetImportsMaxConcurrentCount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ImportsMaxConcurrentCount +} + +// GetImportsMaxConcurrentCountOk returns a tuple with the ImportsMaxConcurrentCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetImportsMaxConcurrentCountOk() (*interface{}, bool) { + if o == nil || IsNil(o.ImportsMaxConcurrentCount) { + return nil, false + } + return &o.ImportsMaxConcurrentCount, true +} + +// HasImportsMaxConcurrentCount returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasImportsMaxConcurrentCount() bool { + if o != nil && IsNil(o.ImportsMaxConcurrentCount) { + return true + } + + return false +} + +// SetImportsMaxConcurrentCount gets a reference to the given interface{} and assigns it to the ImportsMaxConcurrentCount field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetImportsMaxConcurrentCount(v interface{}) { + o.ImportsMaxConcurrentCount = v +} + +// GetPromotionsMaxConcurrentCount returns the PromotionsMaxConcurrentCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetPromotionsMaxConcurrentCount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PromotionsMaxConcurrentCount +} + +// GetPromotionsMaxConcurrentCountOk returns a tuple with the PromotionsMaxConcurrentCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetPromotionsMaxConcurrentCountOk() (*interface{}, bool) { + if o == nil || IsNil(o.PromotionsMaxConcurrentCount) { + return nil, false + } + return &o.PromotionsMaxConcurrentCount, true +} + +// HasPromotionsMaxConcurrentCount returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasPromotionsMaxConcurrentCount() bool { + if o != nil && IsNil(o.PromotionsMaxConcurrentCount) { + return true + } + + return false +} + +// SetPromotionsMaxConcurrentCount gets a reference to the given interface{} and assigns it to the PromotionsMaxConcurrentCount field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetPromotionsMaxConcurrentCount(v interface{}) { + o.PromotionsMaxConcurrentCount = v +} + +// GetImportsTriggerWebhooks returns the ImportsTriggerWebhooks field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetImportsTriggerWebhooks() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ImportsTriggerWebhooks +} + +// GetImportsTriggerWebhooksOk returns a tuple with the ImportsTriggerWebhooks field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetImportsTriggerWebhooksOk() (*interface{}, bool) { + if o == nil || IsNil(o.ImportsTriggerWebhooks) { + return nil, false + } + return &o.ImportsTriggerWebhooks, true +} + +// HasImportsTriggerWebhooks returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasImportsTriggerWebhooks() bool { + if o != nil && IsNil(o.ImportsTriggerWebhooks) { + return true + } + + return false +} + +// SetImportsTriggerWebhooks gets a reference to the given interface{} and assigns it to the ImportsTriggerWebhooks field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetImportsTriggerWebhooks(v interface{}) { + o.ImportsTriggerWebhooks = v +} + +// GetTaxCalculatorsErrors returns the TaxCalculatorsErrors field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetTaxCalculatorsErrors() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.TaxCalculatorsErrors +} + +// GetTaxCalculatorsErrorsOk returns a tuple with the TaxCalculatorsErrors field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetTaxCalculatorsErrorsOk() (*interface{}, bool) { + if o == nil || IsNil(o.TaxCalculatorsErrors) { + return nil, false + } + return &o.TaxCalculatorsErrors, true +} + +// HasTaxCalculatorsErrors returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasTaxCalculatorsErrors() bool { + if o != nil && IsNil(o.TaxCalculatorsErrors) { + return true + } + + return false +} + +// SetTaxCalculatorsErrors gets a reference to the given interface{} and assigns it to the TaxCalculatorsErrors field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetTaxCalculatorsErrors(v interface{}) { + o.TaxCalculatorsErrors = v +} + +// GetExternalPromotionsErrors returns the ExternalPromotionsErrors field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetExternalPromotionsErrors() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ExternalPromotionsErrors +} + +// GetExternalPromotionsErrorsOk returns a tuple with the ExternalPromotionsErrors field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) GetExternalPromotionsErrorsOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExternalPromotionsErrors) { + return nil, false + } + return &o.ExternalPromotionsErrors, true +} + +// HasExternalPromotionsErrors returns a boolean if a field has been set. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) HasExternalPromotionsErrors() bool { + if o != nil && IsNil(o.ExternalPromotionsErrors) { + return true + } + + return false +} + +// SetExternalPromotionsErrors gets a reference to the given interface{} and assigns it to the ExternalPromotionsErrors field. +func (o *GETOrganizationOrganizationId200ResponseDataAttributes) SetExternalPromotionsErrors(v interface{}) { + o.ExternalPromotionsErrors = v } // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). @@ -808,29 +1333,74 @@ func (o GETOrganizationOrganizationId200ResponseDataAttributes) ToMap() (map[str if o.PrimaryColor != nil { toSerialize["primary_color"] = o.PrimaryColor } - if o.ContrastColor != nil { - toSerialize["contrast_color"] = o.ContrastColor - } if o.GtmId != nil { toSerialize["gtm_id"] = o.GtmId } if o.GtmIdTest != nil { toSerialize["gtm_id_test"] = o.GtmIdTest } - if o.DiscountDisabled != nil { - toSerialize["discount_disabled"] = o.DiscountDisabled + if o.Config != nil { + toSerialize["config"] = o.Config + } + if o.ApiAuthRedirect != nil { + toSerialize["api_auth_redirect"] = o.ApiAuthRedirect + } + if o.ApiRulesEngine != nil { + toSerialize["api_rules_engine"] = o.ApiRulesEngine + } + if o.AddressesPhoneRequired != nil { + toSerialize["addresses_phone_required"] = o.AddressesPhoneRequired + } + if o.OrdersAutorefreshCutoffTest != nil { + toSerialize["orders_autorefresh_cutoff_test"] = o.OrdersAutorefreshCutoffTest + } + if o.OrdersAutorefreshCutoffLive != nil { + toSerialize["orders_autorefresh_cutoff_live"] = o.OrdersAutorefreshCutoffLive + } + if o.OrdersNumberEditableTest != nil { + toSerialize["orders_number_editable_test"] = o.OrdersNumberEditableTest + } + if o.OrdersNumberEditableLive != nil { + toSerialize["orders_number_editable_live"] = o.OrdersNumberEditableLive + } + if o.OrdersNumberAsReference != nil { + toSerialize["orders_number_as_reference"] = o.OrdersNumberAsReference + } + if o.BundlesMaxItemsCount != nil { + toSerialize["bundles_max_items_count"] = o.BundlesMaxItemsCount + } + if o.CouponsMinCodeLength != nil { + toSerialize["coupons_min_code_length"] = o.CouponsMinCodeLength + } + if o.CouponsMaxCodeLength != nil { + toSerialize["coupons_max_code_length"] = o.CouponsMaxCodeLength + } + if o.GiftCardsMinCodeLength != nil { + toSerialize["gift_cards_min_code_length"] = o.GiftCardsMinCodeLength + } + if o.GiftCardsMaxCodeLength != nil { + toSerialize["gift_cards_max_code_length"] = o.GiftCardsMaxCodeLength + } + if o.CleanupsMaxConcurrentCount != nil { + toSerialize["cleanups_max_concurrent_count"] = o.CleanupsMaxConcurrentCount + } + if o.ExportsMaxConcurrentCount != nil { + toSerialize["exports_max_concurrent_count"] = o.ExportsMaxConcurrentCount + } + if o.ImportsMaxConcurrentCount != nil { + toSerialize["imports_max_concurrent_count"] = o.ImportsMaxConcurrentCount } - if o.AccountDisabled != nil { - toSerialize["account_disabled"] = o.AccountDisabled + if o.PromotionsMaxConcurrentCount != nil { + toSerialize["promotions_max_concurrent_count"] = o.PromotionsMaxConcurrentCount } - if o.AcceptanceDisabled != nil { - toSerialize["acceptance_disabled"] = o.AcceptanceDisabled + if o.ImportsTriggerWebhooks != nil { + toSerialize["imports_trigger_webhooks"] = o.ImportsTriggerWebhooks } - if o.MaxConcurrentPromotions != nil { - toSerialize["max_concurrent_promotions"] = o.MaxConcurrentPromotions + if o.TaxCalculatorsErrors != nil { + toSerialize["tax_calculators_errors"] = o.TaxCalculatorsErrors } - if o.MaxConcurrentImports != nil { - toSerialize["max_concurrent_imports"] = o.MaxConcurrentImports + if o.ExternalPromotionsErrors != nil { + toSerialize["external_promotions_errors"] = o.ExternalPromotionsErrors } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt diff --git a/api/model_get_packages_200_response.go b/api/model_get_packages_200_response.go index b3449d60..e341e58d 100644 --- a/api/model_get_packages_200_response.go +++ b/api/model_get_packages_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_packages_package_id_200_response.go b/api/model_get_packages_package_id_200_response.go index f904ff7c..c9a85200 100644 --- a/api/model_get_packages_package_id_200_response.go +++ b/api/model_get_packages_package_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_packages_package_id_200_response_data.go b/api/model_get_packages_package_id_200_response_data.go index 4dcdaa14..690a051b 100644 --- a/api/model_get_packages_package_id_200_response_data.go +++ b/api/model_get_packages_package_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_packages_package_id_200_response_data_attributes.go b/api/model_get_packages_package_id_200_response_data_attributes.go index fbdd8d2a..cf1238ca 100644 --- a/api/model_get_packages_package_id_200_response_data_attributes.go +++ b/api/model_get_packages_package_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,9 @@ var _ MappedNullable = &GETPackagesPackageId200ResponseDataAttributes{} // GETPackagesPackageId200ResponseDataAttributes struct for GETPackagesPackageId200ResponseDataAttributes type GETPackagesPackageId200ResponseDataAttributes struct { - // Unique name for the package + // Unique name for the package. Name interface{} `json:"name,omitempty"` - // The package identifying code + // The package identifying code. Code interface{} `json:"code,omitempty"` // The package length, used to automatically calculate the tax rates from the available carrier accounts. Length interface{} `json:"length,omitempty"` @@ -38,7 +38,7 @@ type GETPackagesPackageId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_parcel_line_items_200_response.go b/api/model_get_parcel_line_items_200_response.go index 8b2e12cd..dd31c00d 100644 --- a/api/model_get_parcel_line_items_200_response.go +++ b/api/model_get_parcel_line_items_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_parcel_line_items_parcel_line_item_id_200_response.go b/api/model_get_parcel_line_items_parcel_line_item_id_200_response.go index c5d6a759..5b75db5e 100644 --- a/api/model_get_parcel_line_items_parcel_line_item_id_200_response.go +++ b/api/model_get_parcel_line_items_parcel_line_item_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_parcel_line_items_parcel_line_item_id_200_response_data.go b/api/model_get_parcel_line_items_parcel_line_item_id_200_response_data.go index 4acea6f2..8c088d6c 100644 --- a/api/model_get_parcel_line_items_parcel_line_item_id_200_response_data.go +++ b/api/model_get_parcel_line_items_parcel_line_item_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_parcel_line_items_parcel_line_item_id_200_response_data_attributes.go b/api/model_get_parcel_line_items_parcel_line_item_id_200_response_data_attributes.go index 87fe1982..f608986d 100644 --- a/api/model_get_parcel_line_items_parcel_line_item_id_200_response_data_attributes.go +++ b/api/model_get_parcel_line_items_parcel_line_item_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,10 @@ var _ MappedNullable = &GETParcelLineItemsParcelLineItemId200ResponseDataAttribu // GETParcelLineItemsParcelLineItemId200ResponseDataAttributes struct for GETParcelLineItemsParcelLineItemId200ResponseDataAttributes type GETParcelLineItemsParcelLineItemId200ResponseDataAttributes struct { - // The code of the SKU of the associated shipment_line_item. + // The code of the associated SKU. SkuCode interface{} `json:"sku_code,omitempty"` + // The code of the associated bundle. + BundleCode interface{} `json:"bundle_code,omitempty"` // The parcel line item quantity. Quantity interface{} `json:"quantity,omitempty"` // The internal name of the associated line item. @@ -34,7 +36,7 @@ type GETParcelLineItemsParcelLineItemId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -90,6 +92,39 @@ func (o *GETParcelLineItemsParcelLineItemId200ResponseDataAttributes) SetSkuCode o.SkuCode = v } +// GetBundleCode returns the BundleCode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETParcelLineItemsParcelLineItemId200ResponseDataAttributes) GetBundleCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.BundleCode +} + +// GetBundleCodeOk returns a tuple with the BundleCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETParcelLineItemsParcelLineItemId200ResponseDataAttributes) GetBundleCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.BundleCode) { + return nil, false + } + return &o.BundleCode, true +} + +// HasBundleCode returns a boolean if a field has been set. +func (o *GETParcelLineItemsParcelLineItemId200ResponseDataAttributes) HasBundleCode() bool { + if o != nil && IsNil(o.BundleCode) { + return true + } + + return false +} + +// SetBundleCode gets a reference to the given interface{} and assigns it to the BundleCode field. +func (o *GETParcelLineItemsParcelLineItemId200ResponseDataAttributes) SetBundleCode(v interface{}) { + o.BundleCode = v +} + // GetQuantity returns the Quantity field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETParcelLineItemsParcelLineItemId200ResponseDataAttributes) GetQuantity() interface{} { if o == nil { @@ -367,6 +402,9 @@ func (o GETParcelLineItemsParcelLineItemId200ResponseDataAttributes) ToMap() (ma if o.SkuCode != nil { toSerialize["sku_code"] = o.SkuCode } + if o.BundleCode != nil { + toSerialize["bundle_code"] = o.BundleCode + } if o.Quantity != nil { toSerialize["quantity"] = o.Quantity } diff --git a/api/model_get_parcels_200_response.go b/api/model_get_parcels_200_response.go index af26ce1f..8a90d654 100644 --- a/api/model_get_parcels_200_response.go +++ b/api/model_get_parcels_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_parcels_parcel_id_200_response.go b/api/model_get_parcels_parcel_id_200_response.go index 35cf4824..0f24bd2e 100644 --- a/api/model_get_parcels_parcel_id_200_response.go +++ b/api/model_get_parcels_parcel_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_parcels_parcel_id_200_response_data.go b/api/model_get_parcels_parcel_id_200_response_data.go index e322db61..bdb0db1b 100644 --- a/api/model_get_parcels_parcel_id_200_response_data.go +++ b/api/model_get_parcels_parcel_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_parcels_parcel_id_200_response_data_attributes.go b/api/model_get_parcels_parcel_id_200_response_data_attributes.go index b6f13fe2..d51f7145 100644 --- a/api/model_get_parcels_parcel_id_200_response_data_attributes.go +++ b/api/model_get_parcels_parcel_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,19 +20,19 @@ var _ MappedNullable = &GETParcelsParcelId200ResponseDataAttributes{} // GETParcelsParcelId200ResponseDataAttributes struct for GETParcelsParcelId200ResponseDataAttributes type GETParcelsParcelId200ResponseDataAttributes struct { - // Unique identifier for the parcel + // Unique identifier for the parcel. Number interface{} `json:"number,omitempty"` // The parcel weight, used to automatically calculate the tax rates from the available carrier accounts. Weight interface{} `json:"weight,omitempty"` - // Can be one of 'gr', 'lb', or 'oz' + // The unit of weight. One of 'gr', 'oz', or 'lb'. UnitOfWeight interface{} `json:"unit_of_weight,omitempty"` // When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\". EelPfc interface{} `json:"eel_pfc,omitempty"` - // The type of item you are sending. Can be one of 'merchandise', 'gift', 'documents', 'returned_goods', 'sample', or 'other'. + // The type of item you are sending. ContentsType interface{} `json:"contents_type,omitempty"` // If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute. ContentsExplanation interface{} `json:"contents_explanation,omitempty"` - // Indicates if the provided information is accurate + // Indicates if the provided information is accurate. CustomsCertify interface{} `json:"customs_certify,omitempty"` // This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this. CustomsSigner interface{} `json:"customs_signer,omitempty"` @@ -62,19 +62,21 @@ type GETParcelsParcelId200ResponseDataAttributes struct { TrackingStatusUpdatedAt interface{} `json:"tracking_status_updated_at,omitempty"` // The parcel's full tracking history, automatically updated in real time by the shipping carrier. TrackingDetails interface{} `json:"tracking_details,omitempty"` - // The weight of the parcel as measured by the carrier in ounces (if available) + // The weight of the parcel as measured by the carrier in ounces (if available). CarrierWeightOz interface{} `json:"carrier_weight_oz,omitempty"` - // The name of the person who signed for the parcel (if available) + // The name of the person who signed for the parcel (if available). SignedBy interface{} `json:"signed_by,omitempty"` // The type of Incoterm (if available). Incoterm interface{} `json:"incoterm,omitempty"` + // The type of delivery confirmation option upon delivery. + DeliveryConfirmation interface{} `json:"delivery_confirmation,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -889,6 +891,39 @@ func (o *GETParcelsParcelId200ResponseDataAttributes) SetIncoterm(v interface{}) o.Incoterm = v } +// GetDeliveryConfirmation returns the DeliveryConfirmation field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETParcelsParcelId200ResponseDataAttributes) GetDeliveryConfirmation() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DeliveryConfirmation +} + +// GetDeliveryConfirmationOk returns a tuple with the DeliveryConfirmation field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETParcelsParcelId200ResponseDataAttributes) GetDeliveryConfirmationOk() (*interface{}, bool) { + if o == nil || IsNil(o.DeliveryConfirmation) { + return nil, false + } + return &o.DeliveryConfirmation, true +} + +// HasDeliveryConfirmation returns a boolean if a field has been set. +func (o *GETParcelsParcelId200ResponseDataAttributes) HasDeliveryConfirmation() bool { + if o != nil && IsNil(o.DeliveryConfirmation) { + return true + } + + return false +} + +// SetDeliveryConfirmation gets a reference to the given interface{} and assigns it to the DeliveryConfirmation field. +func (o *GETParcelsParcelId200ResponseDataAttributes) SetDeliveryConfirmation(v interface{}) { + o.DeliveryConfirmation = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETParcelsParcelId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -1136,6 +1171,9 @@ func (o GETParcelsParcelId200ResponseDataAttributes) ToMap() (map[string]interfa if o.Incoterm != nil { toSerialize["incoterm"] = o.Incoterm } + if o.DeliveryConfirmation != nil { + toSerialize["delivery_confirmation"] = o.DeliveryConfirmation + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_payment_gateways_200_response.go b/api/model_get_payment_gateways_200_response.go index 093b6b63..1ae8d0c1 100644 --- a/api/model_get_payment_gateways_200_response.go +++ b/api/model_get_payment_gateways_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_payment_gateways_payment_gateway_id_200_response.go b/api/model_get_payment_gateways_payment_gateway_id_200_response.go index bdc1ffb8..0fa5118e 100644 --- a/api/model_get_payment_gateways_payment_gateway_id_200_response.go +++ b/api/model_get_payment_gateways_payment_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_payment_gateways_payment_gateway_id_200_response_data.go b/api/model_get_payment_gateways_payment_gateway_id_200_response_data.go index bff26de8..83dcf2d6 100644 --- a/api/model_get_payment_gateways_payment_gateway_id_200_response_data.go +++ b/api/model_get_payment_gateways_payment_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_payment_methods_200_response.go b/api/model_get_payment_methods_200_response.go index 3c93f5d7..3acd78e8 100644 --- a/api/model_get_payment_methods_200_response.go +++ b/api/model_get_payment_methods_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_payment_methods_payment_method_id_200_response.go b/api/model_get_payment_methods_payment_method_id_200_response.go index a917fafb..c9147661 100644 --- a/api/model_get_payment_methods_payment_method_id_200_response.go +++ b/api/model_get_payment_methods_payment_method_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_payment_methods_payment_method_id_200_response_data.go b/api/model_get_payment_methods_payment_method_id_200_response_data.go index d7a456df..8b2cb0ac 100644 --- a/api/model_get_payment_methods_payment_method_id_200_response_data.go +++ b/api/model_get_payment_methods_payment_method_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_payment_methods_payment_method_id_200_response_data_attributes.go b/api/model_get_payment_methods_payment_method_id_200_response_data_attributes.go index 73ae1d4c..3754c209 100644 --- a/api/model_get_payment_methods_payment_method_id_200_response_data_attributes.go +++ b/api/model_get_payment_methods_payment_method_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,39 +20,41 @@ var _ MappedNullable = &GETPaymentMethodsPaymentMethodId200ResponseDataAttribute // GETPaymentMethodsPaymentMethodId200ResponseDataAttributes struct for GETPaymentMethodsPaymentMethodId200ResponseDataAttributes type GETPaymentMethodsPaymentMethodId200ResponseDataAttributes struct { - // The payment source type, can be one of: 'AdyenPayment', 'AxervePayment', 'BraintreePayment', 'CheckoutComPayment', 'CreditCard', 'ExternalPayment', 'KlarnaPayment', 'PaypalPayment', 'SatispayPayment', 'StripePayment', or 'WireTransfer'. - PaymentSourceType interface{} `json:"payment_source_type,omitempty"` - // Payment source type, titleized + // The payment method's internal name. Name interface{} `json:"name,omitempty"` + // The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'credit_cards', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'. + PaymentSourceType interface{} `json:"payment_source_type,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` // Send this attribute if you want to mark the payment as MOTO, must be supported by payment gateway. Moto interface{} `json:"moto,omitempty"` // Send this attribute if you want to require the payment capture before fulfillment. RequireCapture interface{} `json:"require_capture,omitempty"` + // Send this attribute if you want to automatically place the order upon authorization performed asynchronously. + AutoPlace interface{} `json:"auto_place,omitempty"` // Send this attribute if you want to automatically capture the payment upon authorization. AutoCapture interface{} `json:"auto_capture,omitempty"` - // Time at which the payment method was disabled. - DisabledAt interface{} `json:"disabled_at,omitempty"` - // The payment method's price, in cents + // The payment method's price, in cents. PriceAmountCents interface{} `json:"price_amount_cents,omitempty"` - // The payment method's price, float + // The payment method's price, float. PriceAmountFloat interface{} `json:"price_amount_float,omitempty"` - // The payment method's price, formatted + // The payment method's price, formatted. FormattedPriceAmount interface{} `json:"formatted_price_amount,omitempty"` // Send this attribute if you want to limit automatic capture to orders for which the total amount is equal or less than the specified value, in cents. AutoCaptureMaxAmountCents interface{} `json:"auto_capture_max_amount_cents,omitempty"` - // The automatic capture max amount, float + // The automatic capture max amount, float. AutoCaptureMaxAmountFloat interface{} `json:"auto_capture_max_amount_float,omitempty"` - // The automatic capture max amount, formatted + // The automatic capture max amount, formatted. FormattedAutoCaptureMaxAmount interface{} `json:"formatted_auto_capture_max_amount,omitempty"` + // Time at which this resource was disabled. + DisabledAt interface{} `json:"disabled_at,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -75,70 +77,70 @@ func NewGETPaymentMethodsPaymentMethodId200ResponseDataAttributesWithDefaults() return &this } -// GetPaymentSourceType returns the PaymentSourceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetPaymentSourceType() interface{} { +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetName() interface{} { if o == nil { var ret interface{} return ret } - return o.PaymentSourceType + return o.Name } -// GetPaymentSourceTypeOk returns a tuple with the PaymentSourceType field value if set, nil otherwise +// GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetPaymentSourceTypeOk() (*interface{}, bool) { - if o == nil || IsNil(o.PaymentSourceType) { +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { return nil, false } - return &o.PaymentSourceType, true + return &o.Name, true } -// HasPaymentSourceType returns a boolean if a field has been set. -func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasPaymentSourceType() bool { - if o != nil && IsNil(o.PaymentSourceType) { +// HasName returns a boolean if a field has been set. +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasName() bool { + if o != nil && IsNil(o.Name) { return true } return false } -// SetPaymentSourceType gets a reference to the given interface{} and assigns it to the PaymentSourceType field. -func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetPaymentSourceType(v interface{}) { - o.PaymentSourceType = v +// SetName gets a reference to the given interface{} and assigns it to the Name field. +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetName(v interface{}) { + o.Name = v } -// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetName() interface{} { +// GetPaymentSourceType returns the PaymentSourceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetPaymentSourceType() interface{} { if o == nil { var ret interface{} return ret } - return o.Name + return o.PaymentSourceType } -// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// GetPaymentSourceTypeOk returns a tuple with the PaymentSourceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetNameOk() (*interface{}, bool) { - if o == nil || IsNil(o.Name) { +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetPaymentSourceTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.PaymentSourceType) { return nil, false } - return &o.Name, true + return &o.PaymentSourceType, true } -// HasName returns a boolean if a field has been set. -func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasName() bool { - if o != nil && IsNil(o.Name) { +// HasPaymentSourceType returns a boolean if a field has been set. +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasPaymentSourceType() bool { + if o != nil && IsNil(o.PaymentSourceType) { return true } return false } -// SetName gets a reference to the given interface{} and assigns it to the Name field. -func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetName(v interface{}) { - o.Name = v +// SetPaymentSourceType gets a reference to the given interface{} and assigns it to the PaymentSourceType field. +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetPaymentSourceType(v interface{}) { + o.PaymentSourceType = v } // GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise (both if not set or set to explicit null). @@ -240,70 +242,70 @@ func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetRequireCa o.RequireCapture = v } -// GetAutoCapture returns the AutoCapture field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetAutoCapture() interface{} { +// GetAutoPlace returns the AutoPlace field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetAutoPlace() interface{} { if o == nil { var ret interface{} return ret } - return o.AutoCapture + return o.AutoPlace } -// GetAutoCaptureOk returns a tuple with the AutoCapture field value if set, nil otherwise +// GetAutoPlaceOk returns a tuple with the AutoPlace field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetAutoCaptureOk() (*interface{}, bool) { - if o == nil || IsNil(o.AutoCapture) { +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetAutoPlaceOk() (*interface{}, bool) { + if o == nil || IsNil(o.AutoPlace) { return nil, false } - return &o.AutoCapture, true + return &o.AutoPlace, true } -// HasAutoCapture returns a boolean if a field has been set. -func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasAutoCapture() bool { - if o != nil && IsNil(o.AutoCapture) { +// HasAutoPlace returns a boolean if a field has been set. +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasAutoPlace() bool { + if o != nil && IsNil(o.AutoPlace) { return true } return false } -// SetAutoCapture gets a reference to the given interface{} and assigns it to the AutoCapture field. -func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetAutoCapture(v interface{}) { - o.AutoCapture = v +// SetAutoPlace gets a reference to the given interface{} and assigns it to the AutoPlace field. +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetAutoPlace(v interface{}) { + o.AutoPlace = v } -// GetDisabledAt returns the DisabledAt field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetDisabledAt() interface{} { +// GetAutoCapture returns the AutoCapture field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetAutoCapture() interface{} { if o == nil { var ret interface{} return ret } - return o.DisabledAt + return o.AutoCapture } -// GetDisabledAtOk returns a tuple with the DisabledAt field value if set, nil otherwise +// GetAutoCaptureOk returns a tuple with the AutoCapture field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool) { - if o == nil || IsNil(o.DisabledAt) { +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetAutoCaptureOk() (*interface{}, bool) { + if o == nil || IsNil(o.AutoCapture) { return nil, false } - return &o.DisabledAt, true + return &o.AutoCapture, true } -// HasDisabledAt returns a boolean if a field has been set. -func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasDisabledAt() bool { - if o != nil && IsNil(o.DisabledAt) { +// HasAutoCapture returns a boolean if a field has been set. +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasAutoCapture() bool { + if o != nil && IsNil(o.AutoCapture) { return true } return false } -// SetDisabledAt gets a reference to the given interface{} and assigns it to the DisabledAt field. -func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetDisabledAt(v interface{}) { - o.DisabledAt = v +// SetAutoCapture gets a reference to the given interface{} and assigns it to the AutoCapture field. +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetAutoCapture(v interface{}) { + o.AutoCapture = v } // GetPriceAmountCents returns the PriceAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). @@ -504,6 +506,39 @@ func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetFormatted o.FormattedAutoCaptureMaxAmount = v } +// GetDisabledAt returns the DisabledAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetDisabledAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DisabledAt +} + +// GetDisabledAtOk returns a tuple with the DisabledAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.DisabledAt) { + return nil, false + } + return &o.DisabledAt, true +} + +// HasDisabledAt returns a boolean if a field has been set. +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasDisabledAt() bool { + if o != nil && IsNil(o.DisabledAt) { + return true + } + + return false +} + +// SetDisabledAt gets a reference to the given interface{} and assigns it to the DisabledAt field. +func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetDisabledAt(v interface{}) { + o.DisabledAt = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -679,12 +714,12 @@ func (o GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) MarshalJSON() func (o GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.PaymentSourceType != nil { - toSerialize["payment_source_type"] = o.PaymentSourceType - } if o.Name != nil { toSerialize["name"] = o.Name } + if o.PaymentSourceType != nil { + toSerialize["payment_source_type"] = o.PaymentSourceType + } if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } @@ -694,12 +729,12 @@ func (o GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) ToMap() (map[ if o.RequireCapture != nil { toSerialize["require_capture"] = o.RequireCapture } + if o.AutoPlace != nil { + toSerialize["auto_place"] = o.AutoPlace + } if o.AutoCapture != nil { toSerialize["auto_capture"] = o.AutoCapture } - if o.DisabledAt != nil { - toSerialize["disabled_at"] = o.DisabledAt - } if o.PriceAmountCents != nil { toSerialize["price_amount_cents"] = o.PriceAmountCents } @@ -718,6 +753,9 @@ func (o GETPaymentMethodsPaymentMethodId200ResponseDataAttributes) ToMap() (map[ if o.FormattedAutoCaptureMaxAmount != nil { toSerialize["formatted_auto_capture_max_amount"] = o.FormattedAutoCaptureMaxAmount } + if o.DisabledAt != nil { + toSerialize["disabled_at"] = o.DisabledAt + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_payment_options_200_response.go b/api/model_get_payment_options_200_response.go new file mode 100644 index 00000000..4c71bd8c --- /dev/null +++ b/api/model_get_payment_options_200_response.go @@ -0,0 +1,126 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETPaymentOptions200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETPaymentOptions200Response{} + +// GETPaymentOptions200Response struct for GETPaymentOptions200Response +type GETPaymentOptions200Response struct { + Data interface{} `json:"data,omitempty"` +} + +// NewGETPaymentOptions200Response instantiates a new GETPaymentOptions200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETPaymentOptions200Response() *GETPaymentOptions200Response { + this := GETPaymentOptions200Response{} + return &this +} + +// NewGETPaymentOptions200ResponseWithDefaults instantiates a new GETPaymentOptions200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETPaymentOptions200ResponseWithDefaults() *GETPaymentOptions200Response { + this := GETPaymentOptions200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPaymentOptions200Response) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPaymentOptions200Response) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETPaymentOptions200Response) HasData() bool { + if o != nil && IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given interface{} and assigns it to the Data field. +func (o *GETPaymentOptions200Response) SetData(v interface{}) { + o.Data = v +} + +func (o GETPaymentOptions200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETPaymentOptions200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETPaymentOptions200Response struct { + value *GETPaymentOptions200Response + isSet bool +} + +func (v NullableGETPaymentOptions200Response) Get() *GETPaymentOptions200Response { + return v.value +} + +func (v *NullableGETPaymentOptions200Response) Set(val *GETPaymentOptions200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETPaymentOptions200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETPaymentOptions200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETPaymentOptions200Response(val *GETPaymentOptions200Response) *NullableGETPaymentOptions200Response { + return &NullableGETPaymentOptions200Response{value: val, isSet: true} +} + +func (v NullableGETPaymentOptions200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETPaymentOptions200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_payment_options_payment_option_id_200_response.go b/api/model_get_payment_options_payment_option_id_200_response.go new file mode 100644 index 00000000..41dc0e91 --- /dev/null +++ b/api/model_get_payment_options_payment_option_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETPaymentOptionsPaymentOptionId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETPaymentOptionsPaymentOptionId200Response{} + +// GETPaymentOptionsPaymentOptionId200Response struct for GETPaymentOptionsPaymentOptionId200Response +type GETPaymentOptionsPaymentOptionId200Response struct { + Data *GETPaymentOptionsPaymentOptionId200ResponseData `json:"data,omitempty"` +} + +// NewGETPaymentOptionsPaymentOptionId200Response instantiates a new GETPaymentOptionsPaymentOptionId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETPaymentOptionsPaymentOptionId200Response() *GETPaymentOptionsPaymentOptionId200Response { + this := GETPaymentOptionsPaymentOptionId200Response{} + return &this +} + +// NewGETPaymentOptionsPaymentOptionId200ResponseWithDefaults instantiates a new GETPaymentOptionsPaymentOptionId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETPaymentOptionsPaymentOptionId200ResponseWithDefaults() *GETPaymentOptionsPaymentOptionId200Response { + this := GETPaymentOptionsPaymentOptionId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *GETPaymentOptionsPaymentOptionId200Response) GetData() GETPaymentOptionsPaymentOptionId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret GETPaymentOptionsPaymentOptionId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETPaymentOptionsPaymentOptionId200Response) GetDataOk() (*GETPaymentOptionsPaymentOptionId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETPaymentOptionsPaymentOptionId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given GETPaymentOptionsPaymentOptionId200ResponseData and assigns it to the Data field. +func (o *GETPaymentOptionsPaymentOptionId200Response) SetData(v GETPaymentOptionsPaymentOptionId200ResponseData) { + o.Data = &v +} + +func (o GETPaymentOptionsPaymentOptionId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETPaymentOptionsPaymentOptionId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETPaymentOptionsPaymentOptionId200Response struct { + value *GETPaymentOptionsPaymentOptionId200Response + isSet bool +} + +func (v NullableGETPaymentOptionsPaymentOptionId200Response) Get() *GETPaymentOptionsPaymentOptionId200Response { + return v.value +} + +func (v *NullableGETPaymentOptionsPaymentOptionId200Response) Set(val *GETPaymentOptionsPaymentOptionId200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETPaymentOptionsPaymentOptionId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETPaymentOptionsPaymentOptionId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETPaymentOptionsPaymentOptionId200Response(val *GETPaymentOptionsPaymentOptionId200Response) *NullableGETPaymentOptionsPaymentOptionId200Response { + return &NullableGETPaymentOptionsPaymentOptionId200Response{value: val, isSet: true} +} + +func (v NullableGETPaymentOptionsPaymentOptionId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETPaymentOptionsPaymentOptionId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_payment_options_payment_option_id_200_response_data.go b/api/model_get_payment_options_payment_option_id_200_response_data.go new file mode 100644 index 00000000..c74ed958 --- /dev/null +++ b/api/model_get_payment_options_payment_option_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETPaymentOptionsPaymentOptionId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETPaymentOptionsPaymentOptionId200ResponseData{} + +// GETPaymentOptionsPaymentOptionId200ResponseData struct for GETPaymentOptionsPaymentOptionId200ResponseData +type GETPaymentOptionsPaymentOptionId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTPaymentOptions201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewGETPaymentOptionsPaymentOptionId200ResponseData instantiates a new GETPaymentOptionsPaymentOptionId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETPaymentOptionsPaymentOptionId200ResponseData() *GETPaymentOptionsPaymentOptionId200ResponseData { + this := GETPaymentOptionsPaymentOptionId200ResponseData{} + return &this +} + +// NewGETPaymentOptionsPaymentOptionId200ResponseDataWithDefaults instantiates a new GETPaymentOptionsPaymentOptionId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETPaymentOptionsPaymentOptionId200ResponseDataWithDefaults() *GETPaymentOptionsPaymentOptionId200ResponseData { + this := GETPaymentOptionsPaymentOptionId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetAttributes() GETPaymentOptionsPaymentOptionId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret GETPaymentOptionsPaymentOptionId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetAttributesOk() (*GETPaymentOptionsPaymentOptionId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given GETPaymentOptionsPaymentOptionId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) SetAttributes(v GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetRelationships() POSTPaymentOptions201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTPaymentOptions201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) GetRelationshipsOk() (*POSTPaymentOptions201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTPaymentOptions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETPaymentOptionsPaymentOptionId200ResponseData) SetRelationships(v POSTPaymentOptions201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o GETPaymentOptionsPaymentOptionId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETPaymentOptionsPaymentOptionId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableGETPaymentOptionsPaymentOptionId200ResponseData struct { + value *GETPaymentOptionsPaymentOptionId200ResponseData + isSet bool +} + +func (v NullableGETPaymentOptionsPaymentOptionId200ResponseData) Get() *GETPaymentOptionsPaymentOptionId200ResponseData { + return v.value +} + +func (v *NullableGETPaymentOptionsPaymentOptionId200ResponseData) Set(val *GETPaymentOptionsPaymentOptionId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableGETPaymentOptionsPaymentOptionId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableGETPaymentOptionsPaymentOptionId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETPaymentOptionsPaymentOptionId200ResponseData(val *GETPaymentOptionsPaymentOptionId200ResponseData) *NullableGETPaymentOptionsPaymentOptionId200ResponseData { + return &NullableGETPaymentOptionsPaymentOptionId200ResponseData{value: val, isSet: true} +} + +func (v NullableGETPaymentOptionsPaymentOptionId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETPaymentOptionsPaymentOptionId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_payment_options_payment_option_id_200_response_data_attributes.go b/api/model_get_payment_options_payment_option_id_200_response_data_attributes.go new file mode 100644 index 00000000..81958978 --- /dev/null +++ b/api/model_get_payment_options_payment_option_id_200_response_data_attributes.go @@ -0,0 +1,393 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETPaymentOptionsPaymentOptionId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETPaymentOptionsPaymentOptionId200ResponseDataAttributes{} + +// GETPaymentOptionsPaymentOptionId200ResponseDataAttributes struct for GETPaymentOptionsPaymentOptionId200ResponseDataAttributes +type GETPaymentOptionsPaymentOptionId200ResponseDataAttributes struct { + // The payment option's name. Wehn blank is inherited by payment source type. + Name interface{} `json:"name,omitempty"` + // The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'credit_cards', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'. + PaymentSourceType interface{} `json:"payment_source_type,omitempty"` + // The payment options data to be added to the payment source payload. Check payment specific API for more details. + Data interface{} `json:"data,omitempty"` + // Time at which the resource was created. + CreatedAt interface{} `json:"created_at,omitempty"` + // Time at which the resource was last updated. + UpdatedAt interface{} `json:"updated_at,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewGETPaymentOptionsPaymentOptionId200ResponseDataAttributes instantiates a new GETPaymentOptionsPaymentOptionId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETPaymentOptionsPaymentOptionId200ResponseDataAttributes() *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes { + this := GETPaymentOptionsPaymentOptionId200ResponseDataAttributes{} + return &this +} + +// NewGETPaymentOptionsPaymentOptionId200ResponseDataAttributesWithDefaults instantiates a new GETPaymentOptionsPaymentOptionId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETPaymentOptionsPaymentOptionId200ResponseDataAttributesWithDefaults() *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes { + this := GETPaymentOptionsPaymentOptionId200ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasName() bool { + if o != nil && IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given interface{} and assigns it to the Name field. +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetPaymentSourceType returns the PaymentSourceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetPaymentSourceType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PaymentSourceType +} + +// GetPaymentSourceTypeOk returns a tuple with the PaymentSourceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetPaymentSourceTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.PaymentSourceType) { + return nil, false + } + return &o.PaymentSourceType, true +} + +// HasPaymentSourceType returns a boolean if a field has been set. +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasPaymentSourceType() bool { + if o != nil && IsNil(o.PaymentSourceType) { + return true + } + + return false +} + +// SetPaymentSourceType gets a reference to the given interface{} and assigns it to the PaymentSourceType field. +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetPaymentSourceType(v interface{}) { + o.PaymentSourceType = v +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasData() bool { + if o != nil && IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given interface{} and assigns it to the Data field. +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetData(v interface{}) { + o.Data = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetCreatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return &o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasCreatedAt() bool { + if o != nil && IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given interface{} and assigns it to the CreatedAt field. +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetCreatedAt(v interface{}) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetUpdatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return &o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasUpdatedAt() bool { + if o != nil && IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given interface{} and assigns it to the UpdatedAt field. +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetUpdatedAt(v interface{}) { + o.UpdatedAt = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.PaymentSourceType != nil { + toSerialize["payment_source_type"] = o.PaymentSourceType + } + if o.Data != nil { + toSerialize["data"] = o.Data + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableGETPaymentOptionsPaymentOptionId200ResponseDataAttributes struct { + value *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes + isSet bool +} + +func (v NullableGETPaymentOptionsPaymentOptionId200ResponseDataAttributes) Get() *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes { + return v.value +} + +func (v *NullableGETPaymentOptionsPaymentOptionId200ResponseDataAttributes) Set(val *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullableGETPaymentOptionsPaymentOptionId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullableGETPaymentOptionsPaymentOptionId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETPaymentOptionsPaymentOptionId200ResponseDataAttributes(val *GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) *NullableGETPaymentOptionsPaymentOptionId200ResponseDataAttributes { + return &NullableGETPaymentOptionsPaymentOptionId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullableGETPaymentOptionsPaymentOptionId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETPaymentOptionsPaymentOptionId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_paypal_gateways_200_response.go b/api/model_get_paypal_gateways_200_response.go index 959f7a04..dce2b571 100644 --- a/api/model_get_paypal_gateways_200_response.go +++ b/api/model_get_paypal_gateways_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_paypal_gateways_paypal_gateway_id_200_response.go b/api/model_get_paypal_gateways_paypal_gateway_id_200_response.go index 3cb8584a..a579743f 100644 --- a/api/model_get_paypal_gateways_paypal_gateway_id_200_response.go +++ b/api/model_get_paypal_gateways_paypal_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_paypal_gateways_paypal_gateway_id_200_response_data.go b/api/model_get_paypal_gateways_paypal_gateway_id_200_response_data.go index 68306a30..77b8e99a 100644 --- a/api/model_get_paypal_gateways_paypal_gateway_id_200_response_data.go +++ b/api/model_get_paypal_gateways_paypal_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_paypal_payments_200_response.go b/api/model_get_paypal_payments_200_response.go index 20d7a827..b05c339d 100644 --- a/api/model_get_paypal_payments_200_response.go +++ b/api/model_get_paypal_payments_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_paypal_payments_paypal_payment_id_200_response.go b/api/model_get_paypal_payments_paypal_payment_id_200_response.go index 9a773f12..5eb4e876 100644 --- a/api/model_get_paypal_payments_paypal_payment_id_200_response.go +++ b/api/model_get_paypal_payments_paypal_payment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_paypal_payments_paypal_payment_id_200_response_data.go b/api/model_get_paypal_payments_paypal_payment_id_200_response_data.go index 30b40663..2826b66f 100644 --- a/api/model_get_paypal_payments_paypal_payment_id_200_response_data.go +++ b/api/model_get_paypal_payments_paypal_payment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_paypal_payments_paypal_payment_id_200_response_data_attributes.go b/api/model_get_paypal_payments_paypal_payment_id_200_response_data_attributes.go index 38a2ed2b..d582bb01 100644 --- a/api/model_get_paypal_payments_paypal_payment_id_200_response_data_attributes.go +++ b/api/model_get_paypal_payments_paypal_payment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,23 +28,17 @@ type GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes struct { NoteToPayer interface{} `json:"note_to_payer,omitempty"` // The id of the payer that PayPal passes in the return_url. PaypalPayerId interface{} `json:"paypal_payer_id,omitempty"` - // The PayPal payer id (if present) + // The PayPal payer id (if present). Name interface{} `json:"name,omitempty"` // The id of the PayPal payment object. PaypalId interface{} `json:"paypal_id,omitempty"` - // The PayPal payment status. One of 'created' (default) or 'approved'. + // The PayPal payment status. One of 'created', or 'approved'. Status interface{} `json:"status,omitempty"` // The URL the customer should be redirected to approve the payment. ApprovalUrl interface{} `json:"approval_url,omitempty"` // Indicates if the order current amount differs form the one of the created payment intent. MismatchedAmounts interface{} `json:"mismatched_amounts,omitempty"` - // The amount of the associated payment intent, in cents. - IntentAmountCents interface{} `json:"intent_amount_cents,omitempty"` - // The amount of the associated payment intent, float. - IntentAmountFloat interface{} `json:"intent_amount_float,omitempty"` - // The amount of the associated payment intent, formatted. - FormattedIntentAmount interface{} `json:"formatted_intent_amount,omitempty"` - // Information about the payment instrument used in the transaction + // Information about the payment instrument used in the transaction. PaymentInstrument interface{} `json:"payment_instrument,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` @@ -52,7 +46,7 @@ type GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -372,105 +366,6 @@ func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) SetMismatche o.MismatchedAmounts = v } -// GetIntentAmountCents returns the IntentAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) GetIntentAmountCents() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.IntentAmountCents -} - -// GetIntentAmountCentsOk returns a tuple with the IntentAmountCents field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) GetIntentAmountCentsOk() (*interface{}, bool) { - if o == nil || IsNil(o.IntentAmountCents) { - return nil, false - } - return &o.IntentAmountCents, true -} - -// HasIntentAmountCents returns a boolean if a field has been set. -func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) HasIntentAmountCents() bool { - if o != nil && IsNil(o.IntentAmountCents) { - return true - } - - return false -} - -// SetIntentAmountCents gets a reference to the given interface{} and assigns it to the IntentAmountCents field. -func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) SetIntentAmountCents(v interface{}) { - o.IntentAmountCents = v -} - -// GetIntentAmountFloat returns the IntentAmountFloat field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) GetIntentAmountFloat() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.IntentAmountFloat -} - -// GetIntentAmountFloatOk returns a tuple with the IntentAmountFloat field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) GetIntentAmountFloatOk() (*interface{}, bool) { - if o == nil || IsNil(o.IntentAmountFloat) { - return nil, false - } - return &o.IntentAmountFloat, true -} - -// HasIntentAmountFloat returns a boolean if a field has been set. -func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) HasIntentAmountFloat() bool { - if o != nil && IsNil(o.IntentAmountFloat) { - return true - } - - return false -} - -// SetIntentAmountFloat gets a reference to the given interface{} and assigns it to the IntentAmountFloat field. -func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) SetIntentAmountFloat(v interface{}) { - o.IntentAmountFloat = v -} - -// GetFormattedIntentAmount returns the FormattedIntentAmount field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) GetFormattedIntentAmount() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.FormattedIntentAmount -} - -// GetFormattedIntentAmountOk returns a tuple with the FormattedIntentAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) GetFormattedIntentAmountOk() (*interface{}, bool) { - if o == nil || IsNil(o.FormattedIntentAmount) { - return nil, false - } - return &o.FormattedIntentAmount, true -} - -// HasFormattedIntentAmount returns a boolean if a field has been set. -func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) HasFormattedIntentAmount() bool { - if o != nil && IsNil(o.FormattedIntentAmount) { - return true - } - - return false -} - -// SetFormattedIntentAmount gets a reference to the given interface{} and assigns it to the FormattedIntentAmount field. -func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) SetFormattedIntentAmount(v interface{}) { - o.FormattedIntentAmount = v -} - // GetPaymentInstrument returns the PaymentInstrument field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) GetPaymentInstrument() interface{} { if o == nil { @@ -706,15 +601,6 @@ func (o GETPaypalPaymentsPaypalPaymentId200ResponseDataAttributes) ToMap() (map[ if o.MismatchedAmounts != nil { toSerialize["mismatched_amounts"] = o.MismatchedAmounts } - if o.IntentAmountCents != nil { - toSerialize["intent_amount_cents"] = o.IntentAmountCents - } - if o.IntentAmountFloat != nil { - toSerialize["intent_amount_float"] = o.IntentAmountFloat - } - if o.FormattedIntentAmount != nil { - toSerialize["formatted_intent_amount"] = o.FormattedIntentAmount - } if o.PaymentInstrument != nil { toSerialize["payment_instrument"] = o.PaymentInstrument } diff --git a/api/model_get_percentage_discount_promotions_200_response.go b/api/model_get_percentage_discount_promotions_200_response.go index 297af3eb..f12f16d3 100644 --- a/api/model_get_percentage_discount_promotions_200_response.go +++ b/api/model_get_percentage_discount_promotions_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_percentage_discount_promotions_percentage_discount_promotion_id_200_response.go b/api/model_get_percentage_discount_promotions_percentage_discount_promotion_id_200_response.go index 989d7247..f43acfc8 100644 --- a/api/model_get_percentage_discount_promotions_percentage_discount_promotion_id_200_response.go +++ b/api/model_get_percentage_discount_promotions_percentage_discount_promotion_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_percentage_discount_promotions_percentage_discount_promotion_id_200_response_data.go b/api/model_get_percentage_discount_promotions_percentage_discount_promotion_id_200_response_data.go index 1788ee64..f75f6e1c 100644 --- a/api/model_get_percentage_discount_promotions_percentage_discount_promotion_id_200_response_data.go +++ b/api/model_get_percentage_discount_promotions_percentage_discount_promotion_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTFixedPricePromotions201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTBuyXPayYPromotions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewGETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData instantiates a new GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData object @@ -177,9 +177,9 @@ func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200Response } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) GetRelationships() POSTFixedPricePromotions201ResponseDataRelationships { +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTFixedPricePromotions201ResponseDataRelationships + var ret POSTBuyXPayYPromotions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200Response // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) GetRelationshipsOk() (*POSTFixedPricePromotions201ResponseDataRelationships, bool) { +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200Response return false } -// SetRelationships gets a reference to the given POSTFixedPricePromotions201ResponseDataRelationships and assigns it to the Relationships field. -func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) SetRelationships(v POSTFixedPricePromotions201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_get_percentage_discount_promotions_percentage_discount_promotion_id_200_response_data_attributes.go b/api/model_get_percentage_discount_promotions_percentage_discount_promotion_id_200_response_data_attributes.go index 3477c644..97714f6c 100644 --- a/api/model_get_percentage_discount_promotions_percentage_discount_promotion_id_200_response_data_attributes.go +++ b/api/model_get_percentage_discount_promotions_percentage_discount_promotion_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,25 +22,35 @@ var _ MappedNullable = &GETPercentageDiscountPromotionsPercentageDiscountPromoti type GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes struct { // The promotion's internal name. Name interface{} `json:"name,omitempty"` + // The promotion's type. + Type interface{} `json:"type,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` // The activation date/time of this promotion. StartsAt interface{} `json:"starts_at,omitempty"` // The expiration date/time of this promotion (must be after starts_at). ExpiresAt interface{} `json:"expires_at,omitempty"` - // The total number of times this promotion can be applied. + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` // The number of times this promotion has been applied. TotalUsageCount interface{} `json:"total_usage_count,omitempty"` - // Indicates if the promotion is active. + // Indicates if the promotion is active (enabled and not expired). Active interface{} `json:"active,omitempty"` + // The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'. + Status interface{} `json:"status,omitempty"` + // Time at which this resource was disabled. + DisabledAt interface{} `json:"disabled_at,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -98,6 +108,39 @@ func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200Response o.Name = v } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetCurrencyCode() interface{} { if o == nil { @@ -131,6 +174,72 @@ func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200Response o.CurrencyCode = v } +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + // GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetStartsAt() interface{} { if o == nil { @@ -296,6 +405,72 @@ func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200Response o.Active = v } +// GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetStatus() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return &o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) HasStatus() bool { + if o != nil && IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given interface{} and assigns it to the Status field. +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetStatus(v interface{}) { + o.Status = v +} + +// GetDisabledAt returns the DisabledAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetDisabledAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DisabledAt +} + +// GetDisabledAtOk returns a tuple with the DisabledAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.DisabledAt) { + return nil, false + } + return &o.DisabledAt, true +} + +// HasDisabledAt returns a boolean if a field has been set. +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) HasDisabledAt() bool { + if o != nil && IsNil(o.DisabledAt) { + return true + } + + return false +} + +// SetDisabledAt gets a reference to the given interface{} and assigns it to the DisabledAt field. +func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetDisabledAt(v interface{}) { + o.DisabledAt = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -507,9 +682,18 @@ func (o GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseD if o.Name != nil { toSerialize["name"] = o.Name } + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } if o.StartsAt != nil { toSerialize["starts_at"] = o.StartsAt } @@ -525,6 +709,12 @@ func (o GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseD if o.Active != nil { toSerialize["active"] = o.Active } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.DisabledAt != nil { + toSerialize["disabled_at"] = o.DisabledAt + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_price_frequency_tiers_200_response.go b/api/model_get_price_frequency_tiers_200_response.go index 08cce689..e51f5c1e 100644 --- a/api/model_get_price_frequency_tiers_200_response.go +++ b/api/model_get_price_frequency_tiers_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_price_frequency_tiers_price_frequency_tier_id_200_response.go b/api/model_get_price_frequency_tiers_price_frequency_tier_id_200_response.go index 948a8987..cfc813a8 100644 --- a/api/model_get_price_frequency_tiers_price_frequency_tier_id_200_response.go +++ b/api/model_get_price_frequency_tiers_price_frequency_tier_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_price_frequency_tiers_price_frequency_tier_id_200_response_data.go b/api/model_get_price_frequency_tiers_price_frequency_tier_id_200_response_data.go index e33354e7..102b21a6 100644 --- a/api/model_get_price_frequency_tiers_price_frequency_tier_id_200_response_data.go +++ b/api/model_get_price_frequency_tiers_price_frequency_tier_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_price_frequency_tiers_price_frequency_tier_id_200_response_data_attributes.go b/api/model_get_price_frequency_tiers_price_frequency_tier_id_200_response_data_attributes.go index 95e2fe65..fbe7f662 100644 --- a/api/model_get_price_frequency_tiers_price_frequency_tier_id_200_response_data_attributes.go +++ b/api/model_get_price_frequency_tiers_price_frequency_tier_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,10 @@ var _ MappedNullable = &GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDat // GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes struct for GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes type GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes struct { - // The price tier's name + // The price tier's name. Name interface{} `json:"name,omitempty"` + // The price tier's type. + Type interface{} `json:"type,omitempty"` // The tier upper limit, expressed as the line item frequency in days (or frequency label, ie 'monthly'). When 'null' it means infinity (useful to have an always matching tier). UpTo interface{} `json:"up_to,omitempty"` // The price of this price tier, in cents. @@ -36,7 +38,7 @@ type GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes struct UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -92,6 +94,39 @@ func (o *GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes) Se o.Name = v } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetUpTo returns the UpTo field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes) GetUpTo() interface{} { if o == nil { @@ -402,6 +437,9 @@ func (o GETPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes) ToM if o.Name != nil { toSerialize["name"] = o.Name } + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.UpTo != nil { toSerialize["up_to"] = o.UpTo } diff --git a/api/model_get_price_list_schedulers_200_response.go b/api/model_get_price_list_schedulers_200_response.go new file mode 100644 index 00000000..75905d2c --- /dev/null +++ b/api/model_get_price_list_schedulers_200_response.go @@ -0,0 +1,126 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETPriceListSchedulers200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETPriceListSchedulers200Response{} + +// GETPriceListSchedulers200Response struct for GETPriceListSchedulers200Response +type GETPriceListSchedulers200Response struct { + Data interface{} `json:"data,omitempty"` +} + +// NewGETPriceListSchedulers200Response instantiates a new GETPriceListSchedulers200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETPriceListSchedulers200Response() *GETPriceListSchedulers200Response { + this := GETPriceListSchedulers200Response{} + return &this +} + +// NewGETPriceListSchedulers200ResponseWithDefaults instantiates a new GETPriceListSchedulers200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETPriceListSchedulers200ResponseWithDefaults() *GETPriceListSchedulers200Response { + this := GETPriceListSchedulers200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceListSchedulers200Response) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceListSchedulers200Response) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETPriceListSchedulers200Response) HasData() bool { + if o != nil && IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given interface{} and assigns it to the Data field. +func (o *GETPriceListSchedulers200Response) SetData(v interface{}) { + o.Data = v +} + +func (o GETPriceListSchedulers200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETPriceListSchedulers200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETPriceListSchedulers200Response struct { + value *GETPriceListSchedulers200Response + isSet bool +} + +func (v NullableGETPriceListSchedulers200Response) Get() *GETPriceListSchedulers200Response { + return v.value +} + +func (v *NullableGETPriceListSchedulers200Response) Set(val *GETPriceListSchedulers200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETPriceListSchedulers200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETPriceListSchedulers200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETPriceListSchedulers200Response(val *GETPriceListSchedulers200Response) *NullableGETPriceListSchedulers200Response { + return &NullableGETPriceListSchedulers200Response{value: val, isSet: true} +} + +func (v NullableGETPriceListSchedulers200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETPriceListSchedulers200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_price_list_schedulers_price_list_scheduler_id_200_response.go b/api/model_get_price_list_schedulers_price_list_scheduler_id_200_response.go new file mode 100644 index 00000000..6913a28d --- /dev/null +++ b/api/model_get_price_list_schedulers_price_list_scheduler_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETPriceListSchedulersPriceListSchedulerId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETPriceListSchedulersPriceListSchedulerId200Response{} + +// GETPriceListSchedulersPriceListSchedulerId200Response struct for GETPriceListSchedulersPriceListSchedulerId200Response +type GETPriceListSchedulersPriceListSchedulerId200Response struct { + Data *GETPriceListSchedulersPriceListSchedulerId200ResponseData `json:"data,omitempty"` +} + +// NewGETPriceListSchedulersPriceListSchedulerId200Response instantiates a new GETPriceListSchedulersPriceListSchedulerId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETPriceListSchedulersPriceListSchedulerId200Response() *GETPriceListSchedulersPriceListSchedulerId200Response { + this := GETPriceListSchedulersPriceListSchedulerId200Response{} + return &this +} + +// NewGETPriceListSchedulersPriceListSchedulerId200ResponseWithDefaults instantiates a new GETPriceListSchedulersPriceListSchedulerId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETPriceListSchedulersPriceListSchedulerId200ResponseWithDefaults() *GETPriceListSchedulersPriceListSchedulerId200Response { + this := GETPriceListSchedulersPriceListSchedulerId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *GETPriceListSchedulersPriceListSchedulerId200Response) GetData() GETPriceListSchedulersPriceListSchedulerId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret GETPriceListSchedulersPriceListSchedulerId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200Response) GetDataOk() (*GETPriceListSchedulersPriceListSchedulerId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given GETPriceListSchedulersPriceListSchedulerId200ResponseData and assigns it to the Data field. +func (o *GETPriceListSchedulersPriceListSchedulerId200Response) SetData(v GETPriceListSchedulersPriceListSchedulerId200ResponseData) { + o.Data = &v +} + +func (o GETPriceListSchedulersPriceListSchedulerId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETPriceListSchedulersPriceListSchedulerId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETPriceListSchedulersPriceListSchedulerId200Response struct { + value *GETPriceListSchedulersPriceListSchedulerId200Response + isSet bool +} + +func (v NullableGETPriceListSchedulersPriceListSchedulerId200Response) Get() *GETPriceListSchedulersPriceListSchedulerId200Response { + return v.value +} + +func (v *NullableGETPriceListSchedulersPriceListSchedulerId200Response) Set(val *GETPriceListSchedulersPriceListSchedulerId200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETPriceListSchedulersPriceListSchedulerId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETPriceListSchedulersPriceListSchedulerId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETPriceListSchedulersPriceListSchedulerId200Response(val *GETPriceListSchedulersPriceListSchedulerId200Response) *NullableGETPriceListSchedulersPriceListSchedulerId200Response { + return &NullableGETPriceListSchedulersPriceListSchedulerId200Response{value: val, isSet: true} +} + +func (v NullableGETPriceListSchedulersPriceListSchedulerId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETPriceListSchedulersPriceListSchedulerId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_price_list_schedulers_price_list_scheduler_id_200_response_data.go b/api/model_get_price_list_schedulers_price_list_scheduler_id_200_response_data.go new file mode 100644 index 00000000..569c2806 --- /dev/null +++ b/api/model_get_price_list_schedulers_price_list_scheduler_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETPriceListSchedulersPriceListSchedulerId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETPriceListSchedulersPriceListSchedulerId200ResponseData{} + +// GETPriceListSchedulersPriceListSchedulerId200ResponseData struct for GETPriceListSchedulersPriceListSchedulerId200ResponseData +type GETPriceListSchedulersPriceListSchedulerId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTPriceListSchedulers201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewGETPriceListSchedulersPriceListSchedulerId200ResponseData instantiates a new GETPriceListSchedulersPriceListSchedulerId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETPriceListSchedulersPriceListSchedulerId200ResponseData() *GETPriceListSchedulersPriceListSchedulerId200ResponseData { + this := GETPriceListSchedulersPriceListSchedulerId200ResponseData{} + return &this +} + +// NewGETPriceListSchedulersPriceListSchedulerId200ResponseDataWithDefaults instantiates a new GETPriceListSchedulersPriceListSchedulerId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETPriceListSchedulersPriceListSchedulerId200ResponseDataWithDefaults() *GETPriceListSchedulersPriceListSchedulerId200ResponseData { + this := GETPriceListSchedulersPriceListSchedulerId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetAttributes() GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetAttributesOk() (*GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) SetAttributes(v GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetRelationships() POSTPriceListSchedulers201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTPriceListSchedulers201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) GetRelationshipsOk() (*POSTPriceListSchedulers201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTPriceListSchedulers201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseData) SetRelationships(v POSTPriceListSchedulers201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o GETPriceListSchedulersPriceListSchedulerId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETPriceListSchedulersPriceListSchedulerId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableGETPriceListSchedulersPriceListSchedulerId200ResponseData struct { + value *GETPriceListSchedulersPriceListSchedulerId200ResponseData + isSet bool +} + +func (v NullableGETPriceListSchedulersPriceListSchedulerId200ResponseData) Get() *GETPriceListSchedulersPriceListSchedulerId200ResponseData { + return v.value +} + +func (v *NullableGETPriceListSchedulersPriceListSchedulerId200ResponseData) Set(val *GETPriceListSchedulersPriceListSchedulerId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableGETPriceListSchedulersPriceListSchedulerId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableGETPriceListSchedulersPriceListSchedulerId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETPriceListSchedulersPriceListSchedulerId200ResponseData(val *GETPriceListSchedulersPriceListSchedulerId200ResponseData) *NullableGETPriceListSchedulersPriceListSchedulerId200ResponseData { + return &NullableGETPriceListSchedulersPriceListSchedulerId200ResponseData{value: val, isSet: true} +} + +func (v NullableGETPriceListSchedulersPriceListSchedulerId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETPriceListSchedulersPriceListSchedulerId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_price_list_schedulers_price_list_scheduler_id_200_response_data_attributes.go b/api/model_get_price_list_schedulers_price_list_scheduler_id_200_response_data_attributes.go new file mode 100644 index 00000000..200d8aa9 --- /dev/null +++ b/api/model_get_price_list_schedulers_price_list_scheduler_id_200_response_data_attributes.go @@ -0,0 +1,507 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes{} + +// GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes struct for GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes +type GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes struct { + // The price list scheduler's internal name. + Name interface{} `json:"name,omitempty"` + // The activation date/time of this price list scheduler. + StartsAt interface{} `json:"starts_at,omitempty"` + // The expiration date/time of this price list scheduler (must be after starts_at). + ExpiresAt interface{} `json:"expires_at,omitempty"` + // Indicates if the price list scheduler is active (enabled and not expired). + Active interface{} `json:"active,omitempty"` + // The price list scheduler status. One of 'disabled', 'expired', 'pending', or 'active'. + Status interface{} `json:"status,omitempty"` + // Time at which this resource was disabled. + DisabledAt interface{} `json:"disabled_at,omitempty"` + // Time at which the resource was created. + CreatedAt interface{} `json:"created_at,omitempty"` + // Time at which the resource was last updated. + UpdatedAt interface{} `json:"updated_at,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes instantiates a new GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes() *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes { + this := GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes{} + return &this +} + +// NewGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributesWithDefaults instantiates a new GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributesWithDefaults() *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes { + this := GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasName() bool { + if o != nil && IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given interface{} and assigns it to the Name field. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetStartsAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.StartsAt +} + +// GetStartsAtOk returns a tuple with the StartsAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.StartsAt) { + return nil, false + } + return &o.StartsAt, true +} + +// HasStartsAt returns a boolean if a field has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasStartsAt() bool { + if o != nil && IsNil(o.StartsAt) { + return true + } + + return false +} + +// SetStartsAt gets a reference to the given interface{} and assigns it to the StartsAt field. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetStartsAt(v interface{}) { + o.StartsAt = v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetExpiresAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExpiresAt) { + return nil, false + } + return &o.ExpiresAt, true +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasExpiresAt() bool { + if o != nil && IsNil(o.ExpiresAt) { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given interface{} and assigns it to the ExpiresAt field. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetExpiresAt(v interface{}) { + o.ExpiresAt = v +} + +// GetActive returns the Active field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetActive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Active +} + +// GetActiveOk returns a tuple with the Active field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetActiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Active) { + return nil, false + } + return &o.Active, true +} + +// HasActive returns a boolean if a field has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasActive() bool { + if o != nil && IsNil(o.Active) { + return true + } + + return false +} + +// SetActive gets a reference to the given interface{} and assigns it to the Active field. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetActive(v interface{}) { + o.Active = v +} + +// GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetStatus() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return &o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasStatus() bool { + if o != nil && IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given interface{} and assigns it to the Status field. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetStatus(v interface{}) { + o.Status = v +} + +// GetDisabledAt returns the DisabledAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetDisabledAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DisabledAt +} + +// GetDisabledAtOk returns a tuple with the DisabledAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.DisabledAt) { + return nil, false + } + return &o.DisabledAt, true +} + +// HasDisabledAt returns a boolean if a field has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasDisabledAt() bool { + if o != nil && IsNil(o.DisabledAt) { + return true + } + + return false +} + +// SetDisabledAt gets a reference to the given interface{} and assigns it to the DisabledAt field. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetDisabledAt(v interface{}) { + o.DisabledAt = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetCreatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return &o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasCreatedAt() bool { + if o != nil && IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given interface{} and assigns it to the CreatedAt field. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetCreatedAt(v interface{}) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetUpdatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return &o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasUpdatedAt() bool { + if o != nil && IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given interface{} and assigns it to the UpdatedAt field. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetUpdatedAt(v interface{}) { + o.UpdatedAt = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.StartsAt != nil { + toSerialize["starts_at"] = o.StartsAt + } + if o.ExpiresAt != nil { + toSerialize["expires_at"] = o.ExpiresAt + } + if o.Active != nil { + toSerialize["active"] = o.Active + } + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.DisabledAt != nil { + toSerialize["disabled_at"] = o.DisabledAt + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes struct { + value *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes + isSet bool +} + +func (v NullableGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) Get() *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes { + return v.value +} + +func (v *NullableGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) Set(val *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullableGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullableGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes(val *GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) *NullableGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes { + return &NullableGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullableGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_price_lists_200_response.go b/api/model_get_price_lists_200_response.go index 5bd7e8c2..e4a05582 100644 --- a/api/model_get_price_lists_200_response.go +++ b/api/model_get_price_lists_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_price_lists_price_list_id_200_response.go b/api/model_get_price_lists_price_list_id_200_response.go index 67631e7c..52213c16 100644 --- a/api/model_get_price_lists_price_list_id_200_response.go +++ b/api/model_get_price_lists_price_list_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_price_lists_price_list_id_200_response_data.go b/api/model_get_price_lists_price_list_id_200_response_data.go index 1a99710f..3a4e19b5 100644 --- a/api/model_get_price_lists_price_list_id_200_response_data.go +++ b/api/model_get_price_lists_price_list_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_price_lists_price_list_id_200_response_data_attributes.go b/api/model_get_price_lists_price_list_id_200_response_data_attributes.go index 203ff312..b98fd19f 100644 --- a/api/model_get_price_lists_price_list_id_200_response_data_attributes.go +++ b/api/model_get_price_lists_price_list_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,10 @@ var _ MappedNullable = &GETPriceListsPriceListId200ResponseDataAttributes{} // GETPriceListsPriceListId200ResponseDataAttributes struct for GETPriceListsPriceListId200ResponseDataAttributes type GETPriceListsPriceListId200ResponseDataAttributes struct { - // The price list's internal name + // The price list's internal name. Name interface{} `json:"name,omitempty"` + // A string that you can use to identify the price list (must be unique within the environment). + Code interface{} `json:"code,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` // Indicates if the associated prices include taxes. @@ -32,8 +34,12 @@ type GETPriceListsPriceListId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // The rules (using Rules Engine) to be applied. + Rules interface{} `json:"rules,omitempty"` + // The rule outcomes. + RuleOutcomes interface{} `json:"rule_outcomes,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` } @@ -88,6 +94,39 @@ func (o *GETPriceListsPriceListId200ResponseDataAttributes) SetName(v interface{ o.Name = v } +// GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceListsPriceListId200ResponseDataAttributes) GetCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceListsPriceListId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return &o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *GETPriceListsPriceListId200ResponseDataAttributes) HasCode() bool { + if o != nil && IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given interface{} and assigns it to the Code field. +func (o *GETPriceListsPriceListId200ResponseDataAttributes) SetCode(v interface{}) { + o.Code = v +} + // GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETPriceListsPriceListId200ResponseDataAttributes) GetCurrencyCode() interface{} { if o == nil { @@ -286,6 +325,72 @@ func (o *GETPriceListsPriceListId200ResponseDataAttributes) SetReferenceOrigin(v o.ReferenceOrigin = v } +// GetRules returns the Rules field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceListsPriceListId200ResponseDataAttributes) GetRules() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceListsPriceListId200ResponseDataAttributes) GetRulesOk() (*interface{}, bool) { + if o == nil || IsNil(o.Rules) { + return nil, false + } + return &o.Rules, true +} + +// HasRules returns a boolean if a field has been set. +func (o *GETPriceListsPriceListId200ResponseDataAttributes) HasRules() bool { + if o != nil && IsNil(o.Rules) { + return true + } + + return false +} + +// SetRules gets a reference to the given interface{} and assigns it to the Rules field. +func (o *GETPriceListsPriceListId200ResponseDataAttributes) SetRules(v interface{}) { + o.Rules = v +} + +// GetRuleOutcomes returns the RuleOutcomes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceListsPriceListId200ResponseDataAttributes) GetRuleOutcomes() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RuleOutcomes +} + +// GetRuleOutcomesOk returns a tuple with the RuleOutcomes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceListsPriceListId200ResponseDataAttributes) GetRuleOutcomesOk() (*interface{}, bool) { + if o == nil || IsNil(o.RuleOutcomes) { + return nil, false + } + return &o.RuleOutcomes, true +} + +// HasRuleOutcomes returns a boolean if a field has been set. +func (o *GETPriceListsPriceListId200ResponseDataAttributes) HasRuleOutcomes() bool { + if o != nil && IsNil(o.RuleOutcomes) { + return true + } + + return false +} + +// SetRuleOutcomes gets a reference to the given interface{} and assigns it to the RuleOutcomes field. +func (o *GETPriceListsPriceListId200ResponseDataAttributes) SetRuleOutcomes(v interface{}) { + o.RuleOutcomes = v +} + // GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETPriceListsPriceListId200ResponseDataAttributes) GetMetadata() interface{} { if o == nil { @@ -332,6 +437,9 @@ func (o GETPriceListsPriceListId200ResponseDataAttributes) ToMap() (map[string]i if o.Name != nil { toSerialize["name"] = o.Name } + if o.Code != nil { + toSerialize["code"] = o.Code + } if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } @@ -350,6 +458,12 @@ func (o GETPriceListsPriceListId200ResponseDataAttributes) ToMap() (map[string]i if o.ReferenceOrigin != nil { toSerialize["reference_origin"] = o.ReferenceOrigin } + if o.Rules != nil { + toSerialize["rules"] = o.Rules + } + if o.RuleOutcomes != nil { + toSerialize["rule_outcomes"] = o.RuleOutcomes + } if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } diff --git a/api/model_get_price_tiers_200_response.go b/api/model_get_price_tiers_200_response.go index e2d17cdd..e04ef084 100644 --- a/api/model_get_price_tiers_200_response.go +++ b/api/model_get_price_tiers_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_price_tiers_price_tier_id_200_response.go b/api/model_get_price_tiers_price_tier_id_200_response.go index 14518b30..7273dc51 100644 --- a/api/model_get_price_tiers_price_tier_id_200_response.go +++ b/api/model_get_price_tiers_price_tier_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_price_tiers_price_tier_id_200_response_data.go b/api/model_get_price_tiers_price_tier_id_200_response_data.go index 36d61b1c..0c80ba6b 100644 --- a/api/model_get_price_tiers_price_tier_id_200_response_data.go +++ b/api/model_get_price_tiers_price_tier_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_price_tiers_price_tier_id_200_response_data_attributes.go b/api/model_get_price_tiers_price_tier_id_200_response_data_attributes.go index 62cc0ae4..24450abf 100644 --- a/api/model_get_price_tiers_price_tier_id_200_response_data_attributes.go +++ b/api/model_get_price_tiers_price_tier_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,10 @@ var _ MappedNullable = &GETPriceTiersPriceTierId200ResponseDataAttributes{} // GETPriceTiersPriceTierId200ResponseDataAttributes struct for GETPriceTiersPriceTierId200ResponseDataAttributes type GETPriceTiersPriceTierId200ResponseDataAttributes struct { - // The price tier's name + // The price tier's name. Name interface{} `json:"name,omitempty"` + // The price tier's type. + Type interface{} `json:"type,omitempty"` // The tier upper limit. When 'null' it means infinity (useful to have an always matching tier). UpTo interface{} `json:"up_to,omitempty"` // The price of this price tier, in cents. @@ -36,7 +38,7 @@ type GETPriceTiersPriceTierId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -92,6 +94,39 @@ func (o *GETPriceTiersPriceTierId200ResponseDataAttributes) SetName(v interface{ o.Name = v } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceTiersPriceTierId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceTiersPriceTierId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETPriceTiersPriceTierId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETPriceTiersPriceTierId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetUpTo returns the UpTo field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETPriceTiersPriceTierId200ResponseDataAttributes) GetUpTo() interface{} { if o == nil { @@ -402,6 +437,9 @@ func (o GETPriceTiersPriceTierId200ResponseDataAttributes) ToMap() (map[string]i if o.Name != nil { toSerialize["name"] = o.Name } + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.UpTo != nil { toSerialize["up_to"] = o.UpTo } diff --git a/api/model_get_price_tiers_price_tier_id_200_response_data_relationships.go b/api/model_get_price_tiers_price_tier_id_200_response_data_relationships.go index d0cdab88..545df6a9 100644 --- a/api/model_get_price_tiers_price_tier_id_200_response_data_relationships.go +++ b/api/model_get_price_tiers_price_tier_id_200_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,9 @@ var _ MappedNullable = &GETPriceTiersPriceTierId200ResponseDataRelationships{} // GETPriceTiersPriceTierId200ResponseDataRelationships struct for GETPriceTiersPriceTierId200ResponseDataRelationships type GETPriceTiersPriceTierId200ResponseDataRelationships struct { - Price *POSTPriceFrequencyTiers201ResponseDataRelationshipsPrice `json:"price,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Price *POSTPriceFrequencyTiers201ResponseDataRelationshipsPrice `json:"price,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewGETPriceTiersPriceTierId200ResponseDataRelationships instantiates a new GETPriceTiersPriceTierId200ResponseDataRelationships object @@ -74,9 +75,9 @@ func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) SetPrice(v POSTPr } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -84,7 +85,7 @@ func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) GetAttachments() // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -100,11 +101,43 @@ func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) HasAttachments() return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *GETPriceTiersPriceTierId200ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o GETPriceTiersPriceTierId200ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o GETPriceTiersPriceTierId200ResponseDataRelationships) ToMap() (map[strin if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_get_price_volume_tiers_200_response.go b/api/model_get_price_volume_tiers_200_response.go index fc9c8f7e..2fdbb2d1 100644 --- a/api/model_get_price_volume_tiers_200_response.go +++ b/api/model_get_price_volume_tiers_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_price_volume_tiers_price_volume_tier_id_200_response.go b/api/model_get_price_volume_tiers_price_volume_tier_id_200_response.go index 17c4e182..e5ee66c4 100644 --- a/api/model_get_price_volume_tiers_price_volume_tier_id_200_response.go +++ b/api/model_get_price_volume_tiers_price_volume_tier_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_price_volume_tiers_price_volume_tier_id_200_response_data.go b/api/model_get_price_volume_tiers_price_volume_tier_id_200_response_data.go index 3946ac18..0482de71 100644 --- a/api/model_get_price_volume_tiers_price_volume_tier_id_200_response_data.go +++ b/api/model_get_price_volume_tiers_price_volume_tier_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_price_volume_tiers_price_volume_tier_id_200_response_data_attributes.go b/api/model_get_price_volume_tiers_price_volume_tier_id_200_response_data_attributes.go index 3a00968e..5a069e27 100644 --- a/api/model_get_price_volume_tiers_price_volume_tier_id_200_response_data_attributes.go +++ b/api/model_get_price_volume_tiers_price_volume_tier_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,10 @@ var _ MappedNullable = &GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttri // GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes struct for GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes type GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes struct { - // The price tier's name + // The price tier's name. Name interface{} `json:"name,omitempty"` + // The price tier's type. + Type interface{} `json:"type,omitempty"` // The tier upper limit, expressed as the line item quantity. When 'null' it means infinity (useful to have an always matching tier). UpTo interface{} `json:"up_to,omitempty"` // The price of this price tier, in cents. @@ -36,7 +38,7 @@ type GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -92,6 +94,39 @@ func (o *GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes) SetName( o.Name = v } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetUpTo returns the UpTo field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes) GetUpTo() interface{} { if o == nil { @@ -402,6 +437,9 @@ func (o GETPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes) ToMap() ( if o.Name != nil { toSerialize["name"] = o.Name } + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.UpTo != nil { toSerialize["up_to"] = o.UpTo } diff --git a/api/model_get_prices_200_response.go b/api/model_get_prices_200_response.go index 223f2b23..3ca3f952 100644 --- a/api/model_get_prices_200_response.go +++ b/api/model_get_prices_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_prices_price_id_200_response.go b/api/model_get_prices_price_id_200_response.go index 8dbc1a41..2d2eeab7 100644 --- a/api/model_get_prices_price_id_200_response.go +++ b/api/model_get_prices_price_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_prices_price_id_200_response_data.go b/api/model_get_prices_price_id_200_response_data.go index 3deae71e..1ac39863 100644 --- a/api/model_get_prices_price_id_200_response_data.go +++ b/api/model_get_prices_price_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_prices_price_id_200_response_data_attributes.go b/api/model_get_prices_price_id_200_response_data_attributes.go index c3bfe427..c0789dbb 100644 --- a/api/model_get_prices_price_id_200_response_data_attributes.go +++ b/api/model_get_prices_price_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -30,6 +30,10 @@ type GETPricesPriceId200ResponseDataAttributes struct { AmountFloat interface{} `json:"amount_float,omitempty"` // The SKU price amount for the associated price list, formatted. FormattedAmount interface{} `json:"formatted_amount,omitempty"` + // The SKU price amount for the associated price list, in cents before any applied rule. + OriginalAmountCents interface{} `json:"original_amount_cents,omitempty"` + // The SKU price amount for the associated price list, in cents before any applied rule, formatted. + FormattedOriginalAmount interface{} `json:"formatted_original_amount,omitempty"` // The compared price amount, in cents. Useful to display a percentage discount. CompareAtAmountCents interface{} `json:"compare_at_amount_cents,omitempty"` // The compared price amount, float. @@ -42,8 +46,14 @@ type GETPricesPriceId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // The rules (using Rules Engine) to be applied. + Rules interface{} `json:"rules,omitempty"` + // The rule outcomes. + RuleOutcomes interface{} `json:"rule_outcomes,omitempty"` + // The custom_claim attached to the current JWT (if any). + JwtCustomClaim interface{} `json:"jwt_custom_claim,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` } @@ -230,6 +240,72 @@ func (o *GETPricesPriceId200ResponseDataAttributes) SetFormattedAmount(v interfa o.FormattedAmount = v } +// GetOriginalAmountCents returns the OriginalAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPricesPriceId200ResponseDataAttributes) GetOriginalAmountCents() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.OriginalAmountCents +} + +// GetOriginalAmountCentsOk returns a tuple with the OriginalAmountCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPricesPriceId200ResponseDataAttributes) GetOriginalAmountCentsOk() (*interface{}, bool) { + if o == nil || IsNil(o.OriginalAmountCents) { + return nil, false + } + return &o.OriginalAmountCents, true +} + +// HasOriginalAmountCents returns a boolean if a field has been set. +func (o *GETPricesPriceId200ResponseDataAttributes) HasOriginalAmountCents() bool { + if o != nil && IsNil(o.OriginalAmountCents) { + return true + } + + return false +} + +// SetOriginalAmountCents gets a reference to the given interface{} and assigns it to the OriginalAmountCents field. +func (o *GETPricesPriceId200ResponseDataAttributes) SetOriginalAmountCents(v interface{}) { + o.OriginalAmountCents = v +} + +// GetFormattedOriginalAmount returns the FormattedOriginalAmount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPricesPriceId200ResponseDataAttributes) GetFormattedOriginalAmount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.FormattedOriginalAmount +} + +// GetFormattedOriginalAmountOk returns a tuple with the FormattedOriginalAmount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPricesPriceId200ResponseDataAttributes) GetFormattedOriginalAmountOk() (*interface{}, bool) { + if o == nil || IsNil(o.FormattedOriginalAmount) { + return nil, false + } + return &o.FormattedOriginalAmount, true +} + +// HasFormattedOriginalAmount returns a boolean if a field has been set. +func (o *GETPricesPriceId200ResponseDataAttributes) HasFormattedOriginalAmount() bool { + if o != nil && IsNil(o.FormattedOriginalAmount) { + return true + } + + return false +} + +// SetFormattedOriginalAmount gets a reference to the given interface{} and assigns it to the FormattedOriginalAmount field. +func (o *GETPricesPriceId200ResponseDataAttributes) SetFormattedOriginalAmount(v interface{}) { + o.FormattedOriginalAmount = v +} + // GetCompareAtAmountCents returns the CompareAtAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETPricesPriceId200ResponseDataAttributes) GetCompareAtAmountCents() interface{} { if o == nil { @@ -461,6 +537,105 @@ func (o *GETPricesPriceId200ResponseDataAttributes) SetReferenceOrigin(v interfa o.ReferenceOrigin = v } +// GetRules returns the Rules field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPricesPriceId200ResponseDataAttributes) GetRules() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPricesPriceId200ResponseDataAttributes) GetRulesOk() (*interface{}, bool) { + if o == nil || IsNil(o.Rules) { + return nil, false + } + return &o.Rules, true +} + +// HasRules returns a boolean if a field has been set. +func (o *GETPricesPriceId200ResponseDataAttributes) HasRules() bool { + if o != nil && IsNil(o.Rules) { + return true + } + + return false +} + +// SetRules gets a reference to the given interface{} and assigns it to the Rules field. +func (o *GETPricesPriceId200ResponseDataAttributes) SetRules(v interface{}) { + o.Rules = v +} + +// GetRuleOutcomes returns the RuleOutcomes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPricesPriceId200ResponseDataAttributes) GetRuleOutcomes() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RuleOutcomes +} + +// GetRuleOutcomesOk returns a tuple with the RuleOutcomes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPricesPriceId200ResponseDataAttributes) GetRuleOutcomesOk() (*interface{}, bool) { + if o == nil || IsNil(o.RuleOutcomes) { + return nil, false + } + return &o.RuleOutcomes, true +} + +// HasRuleOutcomes returns a boolean if a field has been set. +func (o *GETPricesPriceId200ResponseDataAttributes) HasRuleOutcomes() bool { + if o != nil && IsNil(o.RuleOutcomes) { + return true + } + + return false +} + +// SetRuleOutcomes gets a reference to the given interface{} and assigns it to the RuleOutcomes field. +func (o *GETPricesPriceId200ResponseDataAttributes) SetRuleOutcomes(v interface{}) { + o.RuleOutcomes = v +} + +// GetJwtCustomClaim returns the JwtCustomClaim field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETPricesPriceId200ResponseDataAttributes) GetJwtCustomClaim() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.JwtCustomClaim +} + +// GetJwtCustomClaimOk returns a tuple with the JwtCustomClaim field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETPricesPriceId200ResponseDataAttributes) GetJwtCustomClaimOk() (*interface{}, bool) { + if o == nil || IsNil(o.JwtCustomClaim) { + return nil, false + } + return &o.JwtCustomClaim, true +} + +// HasJwtCustomClaim returns a boolean if a field has been set. +func (o *GETPricesPriceId200ResponseDataAttributes) HasJwtCustomClaim() bool { + if o != nil && IsNil(o.JwtCustomClaim) { + return true + } + + return false +} + +// SetJwtCustomClaim gets a reference to the given interface{} and assigns it to the JwtCustomClaim field. +func (o *GETPricesPriceId200ResponseDataAttributes) SetJwtCustomClaim(v interface{}) { + o.JwtCustomClaim = v +} + // GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETPricesPriceId200ResponseDataAttributes) GetMetadata() interface{} { if o == nil { @@ -519,6 +694,12 @@ func (o GETPricesPriceId200ResponseDataAttributes) ToMap() (map[string]interface if o.FormattedAmount != nil { toSerialize["formatted_amount"] = o.FormattedAmount } + if o.OriginalAmountCents != nil { + toSerialize["original_amount_cents"] = o.OriginalAmountCents + } + if o.FormattedOriginalAmount != nil { + toSerialize["formatted_original_amount"] = o.FormattedOriginalAmount + } if o.CompareAtAmountCents != nil { toSerialize["compare_at_amount_cents"] = o.CompareAtAmountCents } @@ -540,6 +721,15 @@ func (o GETPricesPriceId200ResponseDataAttributes) ToMap() (map[string]interface if o.ReferenceOrigin != nil { toSerialize["reference_origin"] = o.ReferenceOrigin } + if o.Rules != nil { + toSerialize["rules"] = o.Rules + } + if o.RuleOutcomes != nil { + toSerialize["rule_outcomes"] = o.RuleOutcomes + } + if o.JwtCustomClaim != nil { + toSerialize["jwt_custom_claim"] = o.JwtCustomClaim + } if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } diff --git a/api/model_get_promotion_rules_200_response.go b/api/model_get_promotion_rules_200_response.go index d2e18ab4..393c235e 100644 --- a/api/model_get_promotion_rules_200_response.go +++ b/api/model_get_promotion_rules_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_promotion_rules_promotion_rule_id_200_response.go b/api/model_get_promotion_rules_promotion_rule_id_200_response.go index 1508833e..d82c605d 100644 --- a/api/model_get_promotion_rules_promotion_rule_id_200_response.go +++ b/api/model_get_promotion_rules_promotion_rule_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_promotion_rules_promotion_rule_id_200_response_data.go b/api/model_get_promotion_rules_promotion_rule_id_200_response_data.go index 5028f5de..911f30b1 100644 --- a/api/model_get_promotion_rules_promotion_rule_id_200_response_data.go +++ b/api/model_get_promotion_rules_promotion_rule_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type GETPromotionRulesPromotionRuleId200ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTOrderAmountPromotionRules201ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTCustomPromotionRules201ResponseDataRelationships `json:"relationships,omitempty"` } // NewGETPromotionRulesPromotionRuleId200ResponseData instantiates a new GETPromotionRulesPromotionRuleId200ResponseData object @@ -145,9 +145,9 @@ func (o *GETPromotionRulesPromotionRuleId200ResponseData) SetLinks(v POSTAddress } // GetAttributes returns the Attributes field value if set, zero value otherwise. -func (o *GETPromotionRulesPromotionRuleId200ResponseData) GetAttributes() GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes { +func (o *GETPromotionRulesPromotionRuleId200ResponseData) GetAttributes() GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes { if o == nil || IsNil(o.Attributes) { - var ret GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes + var ret GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes return ret } return *o.Attributes @@ -155,7 +155,7 @@ func (o *GETPromotionRulesPromotionRuleId200ResponseData) GetAttributes() GETBil // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETPromotionRulesPromotionRuleId200ResponseData) GetAttributesOk() (*GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool) { +func (o *GETPromotionRulesPromotionRuleId200ResponseData) GetAttributesOk() (*GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes, bool) { if o == nil || IsNil(o.Attributes) { return nil, false } @@ -171,15 +171,15 @@ func (o *GETPromotionRulesPromotionRuleId200ResponseData) HasAttributes() bool { return false } -// SetAttributes gets a reference to the given GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes and assigns it to the Attributes field. -func (o *GETPromotionRulesPromotionRuleId200ResponseData) SetAttributes(v GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) { +// SetAttributes gets a reference to the given GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *GETPromotionRulesPromotionRuleId200ResponseData) SetAttributes(v GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) { o.Attributes = &v } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *GETPromotionRulesPromotionRuleId200ResponseData) GetRelationships() POSTOrderAmountPromotionRules201ResponseDataRelationships { +func (o *GETPromotionRulesPromotionRuleId200ResponseData) GetRelationships() POSTCustomPromotionRules201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTOrderAmountPromotionRules201ResponseDataRelationships + var ret POSTCustomPromotionRules201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *GETPromotionRulesPromotionRuleId200ResponseData) GetRelationships() POS // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETPromotionRulesPromotionRuleId200ResponseData) GetRelationshipsOk() (*POSTOrderAmountPromotionRules201ResponseDataRelationships, bool) { +func (o *GETPromotionRulesPromotionRuleId200ResponseData) GetRelationshipsOk() (*POSTCustomPromotionRules201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *GETPromotionRulesPromotionRuleId200ResponseData) HasRelationships() boo return false } -// SetRelationships gets a reference to the given POSTOrderAmountPromotionRules201ResponseDataRelationships and assigns it to the Relationships field. -func (o *GETPromotionRulesPromotionRuleId200ResponseData) SetRelationships(v POSTOrderAmountPromotionRules201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTCustomPromotionRules201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETPromotionRulesPromotionRuleId200ResponseData) SetRelationships(v POSTCustomPromotionRules201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_get_promotions_200_response.go b/api/model_get_promotions_200_response.go index d15a3423..e03f0e92 100644 --- a/api/model_get_promotions_200_response.go +++ b/api/model_get_promotions_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_promotions_promotion_id_200_response.go b/api/model_get_promotions_promotion_id_200_response.go index 0da9127f..c87e4014 100644 --- a/api/model_get_promotions_promotion_id_200_response.go +++ b/api/model_get_promotions_promotion_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_promotions_promotion_id_200_response_data.go b/api/model_get_promotions_promotion_id_200_response_data.go index 6c2aad1f..82ea437e 100644 --- a/api/model_get_promotions_promotion_id_200_response_data.go +++ b/api/model_get_promotions_promotion_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type GETPromotionsPromotionId200ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTExternalPromotions201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTFreeShippingPromotions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewGETPromotionsPromotionId200ResponseData instantiates a new GETPromotionsPromotionId200ResponseData object @@ -177,9 +177,9 @@ func (o *GETPromotionsPromotionId200ResponseData) SetAttributes(v GETFreeShippin } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *GETPromotionsPromotionId200ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships { +func (o *GETPromotionsPromotionId200ResponseData) GetRelationships() POSTFreeShippingPromotions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTExternalPromotions201ResponseDataRelationships + var ret POSTFreeShippingPromotions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *GETPromotionsPromotionId200ResponseData) GetRelationships() POSTExterna // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETPromotionsPromotionId200ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool) { +func (o *GETPromotionsPromotionId200ResponseData) GetRelationshipsOk() (*POSTFreeShippingPromotions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *GETPromotionsPromotionId200ResponseData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given POSTExternalPromotions201ResponseDataRelationships and assigns it to the Relationships field. -func (o *GETPromotionsPromotionId200ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTFreeShippingPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETPromotionsPromotionId200ResponseData) SetRelationships(v POSTFreeShippingPromotions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_get_recurring_order_copies_200_response.go b/api/model_get_recurring_order_copies_200_response.go index 2ae22792..30975df7 100644 --- a/api/model_get_recurring_order_copies_200_response.go +++ b/api/model_get_recurring_order_copies_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_recurring_order_copies_recurring_order_copy_id_200_response.go b/api/model_get_recurring_order_copies_recurring_order_copy_id_200_response.go index 992c07e9..47973d00 100644 --- a/api/model_get_recurring_order_copies_recurring_order_copy_id_200_response.go +++ b/api/model_get_recurring_order_copies_recurring_order_copy_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_recurring_order_copies_recurring_order_copy_id_200_response_data.go b/api/model_get_recurring_order_copies_recurring_order_copy_id_200_response_data.go index 93e98803..b2eaa22d 100644 --- a/api/model_get_recurring_order_copies_recurring_order_copy_id_200_response_data.go +++ b/api/model_get_recurring_order_copies_recurring_order_copy_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_refunds_200_response.go b/api/model_get_refunds_200_response.go index 9b3cd0f9..b19b0c5f 100644 --- a/api/model_get_refunds_200_response.go +++ b/api/model_get_refunds_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_refunds_refund_id_200_response.go b/api/model_get_refunds_refund_id_200_response.go index 2951c8da..02a4ee19 100644 --- a/api/model_get_refunds_refund_id_200_response.go +++ b/api/model_get_refunds_refund_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_refunds_refund_id_200_response_data.go b/api/model_get_refunds_refund_id_200_response_data.go index 11d98f0e..9a11e7ac 100644 --- a/api/model_get_refunds_refund_id_200_response_data.go +++ b/api/model_get_refunds_refund_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_refunds_refund_id_200_response_data_attributes.go b/api/model_get_refunds_refund_id_200_response_data_attributes.go index 04c45e50..7ed2ad7e 100644 --- a/api/model_get_refunds_refund_id_200_response_data_attributes.go +++ b/api/model_get_refunds_refund_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,10 @@ var _ MappedNullable = &GETRefundsRefundId200ResponseDataAttributes{} // GETRefundsRefundId200ResponseDataAttributes struct for GETRefundsRefundId200ResponseDataAttributes type GETRefundsRefundId200ResponseDataAttributes struct { - // The transaction number, auto generated + // The transaction number, auto generated. Number interface{} `json:"number,omitempty"` + // The transaction's type. + Type interface{} `json:"type,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order. CurrencyCode interface{} `json:"currency_code,omitempty"` // The transaction amount, in cents. @@ -30,17 +32,17 @@ type GETRefundsRefundId200ResponseDataAttributes struct { AmountFloat interface{} `json:"amount_float,omitempty"` // The transaction amount, formatted. FormattedAmount interface{} `json:"formatted_amount,omitempty"` - // Indicates if the transaction is successful + // Indicates if the transaction is successful. Succeeded interface{} `json:"succeeded,omitempty"` - // The message returned by the payment gateway + // The message returned by the payment gateway. Message interface{} `json:"message,omitempty"` - // The error code, if any, returned by the payment gateway + // The error code, if any, returned by the payment gateway. ErrorCode interface{} `json:"error_code,omitempty"` - // The error detail, if any, returned by the payment gateway + // The error detail, if any, returned by the payment gateway. ErrorDetail interface{} `json:"error_detail,omitempty"` - // The token identifying the transaction, returned by the payment gateway + // The token identifying the transaction, returned by the payment gateway. Token interface{} `json:"token,omitempty"` - // The ID identifying the transaction, returned by the payment gateway + // The ID identifying the transaction, returned by the payment gateway. GatewayTransactionId interface{} `json:"gateway_transaction_id,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` @@ -48,7 +50,7 @@ type GETRefundsRefundId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -104,6 +106,39 @@ func (o *GETRefundsRefundId200ResponseDataAttributes) SetNumber(v interface{}) { o.Number = v } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETRefundsRefundId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETRefundsRefundId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETRefundsRefundId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETRefundsRefundId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETRefundsRefundId200ResponseDataAttributes) GetCurrencyCode() interface{} { if o == nil { @@ -612,6 +647,9 @@ func (o GETRefundsRefundId200ResponseDataAttributes) ToMap() (map[string]interfa if o.Number != nil { toSerialize["number"] = o.Number } + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } diff --git a/api/model_get_refunds_refund_id_200_response_data_relationships.go b/api/model_get_refunds_refund_id_200_response_data_relationships.go index 16d8bf58..76069182 100644 --- a/api/model_get_refunds_refund_id_200_response_data_relationships.go +++ b/api/model_get_refunds_refund_id_200_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,12 @@ var _ MappedNullable = &GETRefundsRefundId200ResponseDataRelationships{} // GETRefundsRefundId200ResponseDataRelationships struct for GETRefundsRefundId200ResponseDataRelationships type GETRefundsRefundId200ResponseDataRelationships struct { - Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` - ReferenceCapture *GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture `json:"reference_capture,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` + Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` + ReferenceCapture *GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture `json:"reference_capture,omitempty"` + Return *GETCapturesCaptureId200ResponseDataRelationshipsReturn `json:"return,omitempty"` } // NewGETRefundsRefundId200ResponseDataRelationships instantiates a new GETRefundsRefundId200ResponseDataRelationships object @@ -74,6 +77,102 @@ func (o *GETRefundsRefundId200ResponseDataRelationships) SetOrder(v POSTAdyenPay o.Order = &v } +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *GETRefundsRefundId200ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETRefundsRefundId200ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *GETRefundsRefundId200ResponseDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *GETRefundsRefundId200ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { + o.Attachments = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *GETRefundsRefundId200ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETRefundsRefundId200ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *GETRefundsRefundId200ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *GETRefundsRefundId200ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *GETRefundsRefundId200ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETRefundsRefundId200ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *GETRefundsRefundId200ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *GETRefundsRefundId200ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + // GetReferenceCapture returns the ReferenceCapture field value if set, zero value otherwise. func (o *GETRefundsRefundId200ResponseDataRelationships) GetReferenceCapture() GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture { if o == nil || IsNil(o.ReferenceCapture) { @@ -106,36 +205,36 @@ func (o *GETRefundsRefundId200ResponseDataRelationships) SetReferenceCapture(v G o.ReferenceCapture = &v } -// GetEvents returns the Events field value if set, zero value otherwise. -func (o *GETRefundsRefundId200ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { - if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents +// GetReturn returns the Return field value if set, zero value otherwise. +func (o *GETRefundsRefundId200ResponseDataRelationships) GetReturn() GETCapturesCaptureId200ResponseDataRelationshipsReturn { + if o == nil || IsNil(o.Return) { + var ret GETCapturesCaptureId200ResponseDataRelationshipsReturn return ret } - return *o.Events + return *o.Return } -// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// GetReturnOk returns a tuple with the Return field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETRefundsRefundId200ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { - if o == nil || IsNil(o.Events) { +func (o *GETRefundsRefundId200ResponseDataRelationships) GetReturnOk() (*GETCapturesCaptureId200ResponseDataRelationshipsReturn, bool) { + if o == nil || IsNil(o.Return) { return nil, false } - return o.Events, true + return o.Return, true } -// HasEvents returns a boolean if a field has been set. -func (o *GETRefundsRefundId200ResponseDataRelationships) HasEvents() bool { - if o != nil && !IsNil(o.Events) { +// HasReturn returns a boolean if a field has been set. +func (o *GETRefundsRefundId200ResponseDataRelationships) HasReturn() bool { + if o != nil && !IsNil(o.Return) { return true } return false } -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *GETRefundsRefundId200ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { - o.Events = &v +// SetReturn gets a reference to the given GETCapturesCaptureId200ResponseDataRelationshipsReturn and assigns it to the Return field. +func (o *GETRefundsRefundId200ResponseDataRelationships) SetReturn(v GETCapturesCaptureId200ResponseDataRelationshipsReturn) { + o.Return = &v } func (o GETRefundsRefundId200ResponseDataRelationships) MarshalJSON() ([]byte, error) { @@ -151,12 +250,21 @@ func (o GETRefundsRefundId200ResponseDataRelationships) ToMap() (map[string]inte if !IsNil(o.Order) { toSerialize["order"] = o.Order } - if !IsNil(o.ReferenceCapture) { - toSerialize["reference_capture"] = o.ReferenceCapture + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments } if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + if !IsNil(o.ReferenceCapture) { + toSerialize["reference_capture"] = o.ReferenceCapture + } + if !IsNil(o.Return) { + toSerialize["return"] = o.Return + } return toSerialize, nil } diff --git a/api/model_get_refunds_refund_id_200_response_data_relationships_reference_capture.go b/api/model_get_refunds_refund_id_200_response_data_relationships_reference_capture.go index eacc7270..5a7c973c 100644 --- a/api/model_get_refunds_refund_id_200_response_data_relationships_reference_capture.go +++ b/api/model_get_refunds_refund_id_200_response_data_relationships_reference_capture.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_refunds_refund_id_200_response_data_relationships_reference_capture_data.go b/api/model_get_refunds_refund_id_200_response_data_relationships_reference_capture_data.go index 36da1208..844a2270 100644 --- a/api/model_get_refunds_refund_id_200_response_data_relationships_reference_capture_data.go +++ b/api/model_get_refunds_refund_id_200_response_data_relationships_reference_capture_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_reserved_stocks_200_response.go b/api/model_get_reserved_stocks_200_response.go new file mode 100644 index 00000000..76153186 --- /dev/null +++ b/api/model_get_reserved_stocks_200_response.go @@ -0,0 +1,126 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETReservedStocks200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETReservedStocks200Response{} + +// GETReservedStocks200Response struct for GETReservedStocks200Response +type GETReservedStocks200Response struct { + Data interface{} `json:"data,omitempty"` +} + +// NewGETReservedStocks200Response instantiates a new GETReservedStocks200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETReservedStocks200Response() *GETReservedStocks200Response { + this := GETReservedStocks200Response{} + return &this +} + +// NewGETReservedStocks200ResponseWithDefaults instantiates a new GETReservedStocks200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETReservedStocks200ResponseWithDefaults() *GETReservedStocks200Response { + this := GETReservedStocks200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETReservedStocks200Response) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETReservedStocks200Response) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETReservedStocks200Response) HasData() bool { + if o != nil && IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given interface{} and assigns it to the Data field. +func (o *GETReservedStocks200Response) SetData(v interface{}) { + o.Data = v +} + +func (o GETReservedStocks200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETReservedStocks200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETReservedStocks200Response struct { + value *GETReservedStocks200Response + isSet bool +} + +func (v NullableGETReservedStocks200Response) Get() *GETReservedStocks200Response { + return v.value +} + +func (v *NullableGETReservedStocks200Response) Set(val *GETReservedStocks200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETReservedStocks200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETReservedStocks200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETReservedStocks200Response(val *GETReservedStocks200Response) *NullableGETReservedStocks200Response { + return &NullableGETReservedStocks200Response{value: val, isSet: true} +} + +func (v NullableGETReservedStocks200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETReservedStocks200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_reserved_stocks_reserved_stock_id_200_response.go b/api/model_get_reserved_stocks_reserved_stock_id_200_response.go new file mode 100644 index 00000000..f46b0835 --- /dev/null +++ b/api/model_get_reserved_stocks_reserved_stock_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETReservedStocksReservedStockId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETReservedStocksReservedStockId200Response{} + +// GETReservedStocksReservedStockId200Response struct for GETReservedStocksReservedStockId200Response +type GETReservedStocksReservedStockId200Response struct { + Data *GETReservedStocksReservedStockId200ResponseData `json:"data,omitempty"` +} + +// NewGETReservedStocksReservedStockId200Response instantiates a new GETReservedStocksReservedStockId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETReservedStocksReservedStockId200Response() *GETReservedStocksReservedStockId200Response { + this := GETReservedStocksReservedStockId200Response{} + return &this +} + +// NewGETReservedStocksReservedStockId200ResponseWithDefaults instantiates a new GETReservedStocksReservedStockId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETReservedStocksReservedStockId200ResponseWithDefaults() *GETReservedStocksReservedStockId200Response { + this := GETReservedStocksReservedStockId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *GETReservedStocksReservedStockId200Response) GetData() GETReservedStocksReservedStockId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret GETReservedStocksReservedStockId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETReservedStocksReservedStockId200Response) GetDataOk() (*GETReservedStocksReservedStockId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETReservedStocksReservedStockId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given GETReservedStocksReservedStockId200ResponseData and assigns it to the Data field. +func (o *GETReservedStocksReservedStockId200Response) SetData(v GETReservedStocksReservedStockId200ResponseData) { + o.Data = &v +} + +func (o GETReservedStocksReservedStockId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETReservedStocksReservedStockId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETReservedStocksReservedStockId200Response struct { + value *GETReservedStocksReservedStockId200Response + isSet bool +} + +func (v NullableGETReservedStocksReservedStockId200Response) Get() *GETReservedStocksReservedStockId200Response { + return v.value +} + +func (v *NullableGETReservedStocksReservedStockId200Response) Set(val *GETReservedStocksReservedStockId200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETReservedStocksReservedStockId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETReservedStocksReservedStockId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETReservedStocksReservedStockId200Response(val *GETReservedStocksReservedStockId200Response) *NullableGETReservedStocksReservedStockId200Response { + return &NullableGETReservedStocksReservedStockId200Response{value: val, isSet: true} +} + +func (v NullableGETReservedStocksReservedStockId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETReservedStocksReservedStockId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_reserved_stocks_reserved_stock_id_200_response_data.go b/api/model_get_reserved_stocks_reserved_stock_id_200_response_data.go new file mode 100644 index 00000000..136e865d --- /dev/null +++ b/api/model_get_reserved_stocks_reserved_stock_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETReservedStocksReservedStockId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETReservedStocksReservedStockId200ResponseData{} + +// GETReservedStocksReservedStockId200ResponseData struct for GETReservedStocksReservedStockId200ResponseData +type GETReservedStocksReservedStockId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *GETReservedStocksReservedStockId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *GETReservedStocksReservedStockId200ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewGETReservedStocksReservedStockId200ResponseData instantiates a new GETReservedStocksReservedStockId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETReservedStocksReservedStockId200ResponseData() *GETReservedStocksReservedStockId200ResponseData { + this := GETReservedStocksReservedStockId200ResponseData{} + return &this +} + +// NewGETReservedStocksReservedStockId200ResponseDataWithDefaults instantiates a new GETReservedStocksReservedStockId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETReservedStocksReservedStockId200ResponseDataWithDefaults() *GETReservedStocksReservedStockId200ResponseData { + this := GETReservedStocksReservedStockId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETReservedStocksReservedStockId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETReservedStocksReservedStockId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *GETReservedStocksReservedStockId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *GETReservedStocksReservedStockId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETReservedStocksReservedStockId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETReservedStocksReservedStockId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETReservedStocksReservedStockId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETReservedStocksReservedStockId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *GETReservedStocksReservedStockId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETReservedStocksReservedStockId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *GETReservedStocksReservedStockId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *GETReservedStocksReservedStockId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *GETReservedStocksReservedStockId200ResponseData) GetAttributes() GETReservedStocksReservedStockId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret GETReservedStocksReservedStockId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETReservedStocksReservedStockId200ResponseData) GetAttributesOk() (*GETReservedStocksReservedStockId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *GETReservedStocksReservedStockId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given GETReservedStocksReservedStockId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *GETReservedStocksReservedStockId200ResponseData) SetAttributes(v GETReservedStocksReservedStockId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *GETReservedStocksReservedStockId200ResponseData) GetRelationships() GETReservedStocksReservedStockId200ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret GETReservedStocksReservedStockId200ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETReservedStocksReservedStockId200ResponseData) GetRelationshipsOk() (*GETReservedStocksReservedStockId200ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *GETReservedStocksReservedStockId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given GETReservedStocksReservedStockId200ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETReservedStocksReservedStockId200ResponseData) SetRelationships(v GETReservedStocksReservedStockId200ResponseDataRelationships) { + o.Relationships = &v +} + +func (o GETReservedStocksReservedStockId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETReservedStocksReservedStockId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableGETReservedStocksReservedStockId200ResponseData struct { + value *GETReservedStocksReservedStockId200ResponseData + isSet bool +} + +func (v NullableGETReservedStocksReservedStockId200ResponseData) Get() *GETReservedStocksReservedStockId200ResponseData { + return v.value +} + +func (v *NullableGETReservedStocksReservedStockId200ResponseData) Set(val *GETReservedStocksReservedStockId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableGETReservedStocksReservedStockId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableGETReservedStocksReservedStockId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETReservedStocksReservedStockId200ResponseData(val *GETReservedStocksReservedStockId200ResponseData) *NullableGETReservedStocksReservedStockId200ResponseData { + return &NullableGETReservedStocksReservedStockId200ResponseData{value: val, isSet: true} +} + +func (v NullableGETReservedStocksReservedStockId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETReservedStocksReservedStockId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_reserved_stocks_reserved_stock_id_200_response_data_attributes.go b/api/model_get_reserved_stocks_reserved_stock_id_200_response_data_attributes.go new file mode 100644 index 00000000..3ea52412 --- /dev/null +++ b/api/model_get_reserved_stocks_reserved_stock_id_200_response_data_attributes.go @@ -0,0 +1,317 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETReservedStocksReservedStockId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETReservedStocksReservedStockId200ResponseDataAttributes{} + +// GETReservedStocksReservedStockId200ResponseDataAttributes struct for GETReservedStocksReservedStockId200ResponseDataAttributes +type GETReservedStocksReservedStockId200ResponseDataAttributes struct { + // The stock item reserved quantity. + Quantity interface{} `json:"quantity,omitempty"` + // Time at which the resource was created. + CreatedAt interface{} `json:"created_at,omitempty"` + // Time at which the resource was last updated. + UpdatedAt interface{} `json:"updated_at,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewGETReservedStocksReservedStockId200ResponseDataAttributes instantiates a new GETReservedStocksReservedStockId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETReservedStocksReservedStockId200ResponseDataAttributes() *GETReservedStocksReservedStockId200ResponseDataAttributes { + this := GETReservedStocksReservedStockId200ResponseDataAttributes{} + return &this +} + +// NewGETReservedStocksReservedStockId200ResponseDataAttributesWithDefaults instantiates a new GETReservedStocksReservedStockId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETReservedStocksReservedStockId200ResponseDataAttributesWithDefaults() *GETReservedStocksReservedStockId200ResponseDataAttributes { + this := GETReservedStocksReservedStockId200ResponseDataAttributes{} + return &this +} + +// GetQuantity returns the Quantity field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetQuantity() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Quantity +} + +// GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetQuantityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Quantity) { + return nil, false + } + return &o.Quantity, true +} + +// HasQuantity returns a boolean if a field has been set. +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) HasQuantity() bool { + if o != nil && IsNil(o.Quantity) { + return true + } + + return false +} + +// SetQuantity gets a reference to the given interface{} and assigns it to the Quantity field. +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) SetQuantity(v interface{}) { + o.Quantity = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetCreatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return &o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) HasCreatedAt() bool { + if o != nil && IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given interface{} and assigns it to the CreatedAt field. +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) SetCreatedAt(v interface{}) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetUpdatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return &o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) HasUpdatedAt() bool { + if o != nil && IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given interface{} and assigns it to the UpdatedAt field. +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) SetUpdatedAt(v interface{}) { + o.UpdatedAt = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *GETReservedStocksReservedStockId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o GETReservedStocksReservedStockId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETReservedStocksReservedStockId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Quantity != nil { + toSerialize["quantity"] = o.Quantity + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableGETReservedStocksReservedStockId200ResponseDataAttributes struct { + value *GETReservedStocksReservedStockId200ResponseDataAttributes + isSet bool +} + +func (v NullableGETReservedStocksReservedStockId200ResponseDataAttributes) Get() *GETReservedStocksReservedStockId200ResponseDataAttributes { + return v.value +} + +func (v *NullableGETReservedStocksReservedStockId200ResponseDataAttributes) Set(val *GETReservedStocksReservedStockId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullableGETReservedStocksReservedStockId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullableGETReservedStocksReservedStockId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETReservedStocksReservedStockId200ResponseDataAttributes(val *GETReservedStocksReservedStockId200ResponseDataAttributes) *NullableGETReservedStocksReservedStockId200ResponseDataAttributes { + return &NullableGETReservedStocksReservedStockId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullableGETReservedStocksReservedStockId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETReservedStocksReservedStockId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_reserved_stocks_reserved_stock_id_200_response_data_relationships.go b/api/model_get_reserved_stocks_reserved_stock_id_200_response_data_relationships.go new file mode 100644 index 00000000..a1023a37 --- /dev/null +++ b/api/model_get_reserved_stocks_reserved_stock_id_200_response_data_relationships.go @@ -0,0 +1,233 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETReservedStocksReservedStockId200ResponseDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETReservedStocksReservedStockId200ResponseDataRelationships{} + +// GETReservedStocksReservedStockId200ResponseDataRelationships struct for GETReservedStocksReservedStockId200ResponseDataRelationships +type GETReservedStocksReservedStockId200ResponseDataRelationships struct { + StockItem *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem `json:"stock_item,omitempty"` + Sku *POSTInStockSubscriptions201ResponseDataRelationshipsSku `json:"sku,omitempty"` + StockReservations *POSTLineItems201ResponseDataRelationshipsStockReservations `json:"stock_reservations,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewGETReservedStocksReservedStockId200ResponseDataRelationships instantiates a new GETReservedStocksReservedStockId200ResponseDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETReservedStocksReservedStockId200ResponseDataRelationships() *GETReservedStocksReservedStockId200ResponseDataRelationships { + this := GETReservedStocksReservedStockId200ResponseDataRelationships{} + return &this +} + +// NewGETReservedStocksReservedStockId200ResponseDataRelationshipsWithDefaults instantiates a new GETReservedStocksReservedStockId200ResponseDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETReservedStocksReservedStockId200ResponseDataRelationshipsWithDefaults() *GETReservedStocksReservedStockId200ResponseDataRelationships { + this := GETReservedStocksReservedStockId200ResponseDataRelationships{} + return &this +} + +// GetStockItem returns the StockItem field value if set, zero value otherwise. +func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) GetStockItem() GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem { + if o == nil || IsNil(o.StockItem) { + var ret GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem + return ret + } + return *o.StockItem +} + +// GetStockItemOk returns a tuple with the StockItem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) GetStockItemOk() (*GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem, bool) { + if o == nil || IsNil(o.StockItem) { + return nil, false + } + return o.StockItem, true +} + +// HasStockItem returns a boolean if a field has been set. +func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) HasStockItem() bool { + if o != nil && !IsNil(o.StockItem) { + return true + } + + return false +} + +// SetStockItem gets a reference to the given GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem and assigns it to the StockItem field. +func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) SetStockItem(v GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) { + o.StockItem = &v +} + +// GetSku returns the Sku field value if set, zero value otherwise. +func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) GetSku() POSTInStockSubscriptions201ResponseDataRelationshipsSku { + if o == nil || IsNil(o.Sku) { + var ret POSTInStockSubscriptions201ResponseDataRelationshipsSku + return ret + } + return *o.Sku +} + +// GetSkuOk returns a tuple with the Sku field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) GetSkuOk() (*POSTInStockSubscriptions201ResponseDataRelationshipsSku, bool) { + if o == nil || IsNil(o.Sku) { + return nil, false + } + return o.Sku, true +} + +// HasSku returns a boolean if a field has been set. +func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) HasSku() bool { + if o != nil && !IsNil(o.Sku) { + return true + } + + return false +} + +// SetSku gets a reference to the given POSTInStockSubscriptions201ResponseDataRelationshipsSku and assigns it to the Sku field. +func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) SetSku(v POSTInStockSubscriptions201ResponseDataRelationshipsSku) { + o.Sku = &v +} + +// GetStockReservations returns the StockReservations field value if set, zero value otherwise. +func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) GetStockReservations() POSTLineItems201ResponseDataRelationshipsStockReservations { + if o == nil || IsNil(o.StockReservations) { + var ret POSTLineItems201ResponseDataRelationshipsStockReservations + return ret + } + return *o.StockReservations +} + +// GetStockReservationsOk returns a tuple with the StockReservations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) GetStockReservationsOk() (*POSTLineItems201ResponseDataRelationshipsStockReservations, bool) { + if o == nil || IsNil(o.StockReservations) { + return nil, false + } + return o.StockReservations, true +} + +// HasStockReservations returns a boolean if a field has been set. +func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) HasStockReservations() bool { + if o != nil && !IsNil(o.StockReservations) { + return true + } + + return false +} + +// SetStockReservations gets a reference to the given POSTLineItems201ResponseDataRelationshipsStockReservations and assigns it to the StockReservations field. +func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) SetStockReservations(v POSTLineItems201ResponseDataRelationshipsStockReservations) { + o.StockReservations = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *GETReservedStocksReservedStockId200ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + +func (o GETReservedStocksReservedStockId200ResponseDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETReservedStocksReservedStockId200ResponseDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.StockItem) { + toSerialize["stock_item"] = o.StockItem + } + if !IsNil(o.Sku) { + toSerialize["sku"] = o.Sku + } + if !IsNil(o.StockReservations) { + toSerialize["stock_reservations"] = o.StockReservations + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullableGETReservedStocksReservedStockId200ResponseDataRelationships struct { + value *GETReservedStocksReservedStockId200ResponseDataRelationships + isSet bool +} + +func (v NullableGETReservedStocksReservedStockId200ResponseDataRelationships) Get() *GETReservedStocksReservedStockId200ResponseDataRelationships { + return v.value +} + +func (v *NullableGETReservedStocksReservedStockId200ResponseDataRelationships) Set(val *GETReservedStocksReservedStockId200ResponseDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableGETReservedStocksReservedStockId200ResponseDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableGETReservedStocksReservedStockId200ResponseDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETReservedStocksReservedStockId200ResponseDataRelationships(val *GETReservedStocksReservedStockId200ResponseDataRelationships) *NullableGETReservedStocksReservedStockId200ResponseDataRelationships { + return &NullableGETReservedStocksReservedStockId200ResponseDataRelationships{value: val, isSet: true} +} + +func (v NullableGETReservedStocksReservedStockId200ResponseDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETReservedStocksReservedStockId200ResponseDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_stock_line_items_stock_line_item_id_200_response_data_relationships_stock_item.go b/api/model_get_reserved_stocks_reserved_stock_id_200_response_data_relationships_stock_item.go similarity index 54% rename from api/model_get_stock_line_items_stock_line_item_id_200_response_data_relationships_stock_item.go rename to api/model_get_reserved_stocks_reserved_stock_id_200_response_data_relationships_stock_item.go index 746e2162..8ac225ae 100644 --- a/api/model_get_stock_line_items_stock_line_item_id_200_response_data_relationships_stock_item.go +++ b/api/model_get_reserved_stocks_reserved_stock_id_200_response_data_relationships_stock_item.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,34 +15,34 @@ import ( "encoding/json" ) -// checks if the GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem{} +// checks if the GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem{} -// GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem struct for GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem -type GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem struct { +// GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem struct for GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem +type GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem struct { Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` - Data *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData `json:"data,omitempty"` + Data *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData `json:"data,omitempty"` } -// NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem instantiates a new GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem object +// NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem instantiates a new GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem() *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem { - this := GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem{} +func NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem() *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem { + this := GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem{} return &this } -// NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemWithDefaults instantiates a new GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem object +// NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemWithDefaults instantiates a new GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemWithDefaults() *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem { - this := GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem{} +func NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemWithDefaults() *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem { + this := GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem{} return &this } // GetLinks returns the Links field value if set, zero value otherwise. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { +func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { if o == nil || IsNil(o.Links) { var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks return ret @@ -52,7 +52,7 @@ func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) // GetLinksOk returns a tuple with the Links field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { +func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { if o == nil || IsNil(o.Links) { return nil, false } @@ -60,7 +60,7 @@ func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) } // HasLinks returns a boolean if a field has been set. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) HasLinks() bool { +func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) HasLinks() bool { if o != nil && !IsNil(o.Links) { return true } @@ -69,14 +69,14 @@ func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) } // SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { +func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { o.Links = &v } // GetData returns the Data field value if set, zero value otherwise. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) GetData() GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData { +func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) GetData() GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData { if o == nil || IsNil(o.Data) { - var ret GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData + var ret GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData return ret } return *o.Data @@ -84,7 +84,7 @@ func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) GetDataOk() (*GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData, bool) { +func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) GetDataOk() (*GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -92,7 +92,7 @@ func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) } // HasData returns a boolean if a field has been set. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) HasData() bool { +func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) HasData() bool { if o != nil && !IsNil(o.Data) { return true } @@ -100,12 +100,12 @@ func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) return false } -// SetData gets a reference to the given GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData and assigns it to the Data field. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) SetData(v GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) { +// SetData gets a reference to the given GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData and assigns it to the Data field. +func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) SetData(v GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) { o.Data = &v } -func (o GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) MarshalJSON() ([]byte, error) { +func (o GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -113,7 +113,7 @@ func (o GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) M return json.Marshal(toSerialize) } -func (o GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) ToMap() (map[string]interface{}, error) { +func (o GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Links) { toSerialize["links"] = o.Links @@ -124,38 +124,38 @@ func (o GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) T return toSerialize, nil } -type NullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem struct { - value *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem +type NullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem struct { + value *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem isSet bool } -func (v NullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) Get() *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem { +func (v NullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) Get() *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem { return v.value } -func (v *NullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) Set(val *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) { +func (v *NullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) Set(val *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) { v.value = val v.isSet = true } -func (v NullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) IsSet() bool { +func (v NullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) IsSet() bool { return v.isSet } -func (v *NullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) Unset() { +func (v *NullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) Unset() { v.value = nil v.isSet = false } -func NewNullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem(val *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) *NullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem { - return &NullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem{value: val, isSet: true} +func NewNullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem(val *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) *NullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem { + return &NullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem{value: val, isSet: true} } -func (v NullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) MarshalJSON() ([]byte, error) { +func (v NullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) UnmarshalJSON(src []byte) error { +func (v *NullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_get_stock_line_items_stock_line_item_id_200_response_data_relationships_stock_item_data.go b/api/model_get_reserved_stocks_reserved_stock_id_200_response_data_relationships_stock_item_data.go similarity index 57% rename from api/model_get_stock_line_items_stock_line_item_id_200_response_data_relationships_stock_item_data.go rename to api/model_get_reserved_stocks_reserved_stock_id_200_response_data_relationships_stock_item_data.go index 62581344..efbe4a9e 100644 --- a/api/model_get_stock_line_items_stock_line_item_id_200_response_data_relationships_stock_item_data.go +++ b/api/model_get_reserved_stocks_reserved_stock_id_200_response_data_relationships_stock_item_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData{} +// checks if the GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData{} -// GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData struct for GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData -type GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData struct { +// GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData struct for GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData +type GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource ID Id interface{} `json:"id,omitempty"` } -// NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData instantiates a new GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData object +// NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData instantiates a new GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData() *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData { - this := GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData{} +func NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData() *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData { + this := GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData{} return &this } -// NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemDataWithDefaults instantiates a new GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData object +// NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemDataWithDefaults instantiates a new GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemDataWithDefaults() *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData { - this := GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData{} +func NewGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemDataWithDefaults() *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData { + this := GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) GetType() interface{} { +func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemDa // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) GetTypeOk() (*interface{}, bool) { +func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemDa } // HasType returns a boolean if a field has been set. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) HasType() bool { +func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemDa } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) SetType(v interface{}) { +func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) GetId() interface{} { +func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemDa // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) GetIdOk() (*interface{}, bool) { +func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemDa } // HasId returns a boolean if a field has been set. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) HasId() bool { +func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemDa } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) SetId(v interface{}) { +func (o *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) SetId(v interface{}) { o.Id = v } -func (o GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) MarshalJSON() ([]byte, error) { +func (o GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemDat return json.Marshal(toSerialize) } -func (o GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) ToMap() (map[string]interface{}, error) { +func (o GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemDat return toSerialize, nil } -type NullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData struct { - value *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData +type NullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData struct { + value *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData isSet bool } -func (v NullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) Get() *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData { +func (v NullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) Get() *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData { return v.value } -func (v *NullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) Set(val *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) { +func (v *NullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) Set(val *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) { v.value = val v.isSet = true } -func (v NullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) IsSet() bool { +func (v NullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) IsSet() bool { return v.isSet } -func (v *NullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) Unset() { +func (v *NullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) Unset() { v.value = nil v.isSet = false } -func NewNullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData(val *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) *NullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData { - return &NullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData{value: val, isSet: true} +func NewNullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData(val *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) *NullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData { + return &NullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData{value: val, isSet: true} } -func (v NullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) MarshalJSON() ([]byte, error) { +func (v NullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableGETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItemData) UnmarshalJSON(src []byte) error { +func (v *NullableGETReservedStocksReservedStockId200ResponseDataRelationshipsStockItemData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_get_resource_errors_200_response.go b/api/model_get_resource_errors_200_response.go new file mode 100644 index 00000000..c66c9f45 --- /dev/null +++ b/api/model_get_resource_errors_200_response.go @@ -0,0 +1,126 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETResourceErrors200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETResourceErrors200Response{} + +// GETResourceErrors200Response struct for GETResourceErrors200Response +type GETResourceErrors200Response struct { + Data interface{} `json:"data,omitempty"` +} + +// NewGETResourceErrors200Response instantiates a new GETResourceErrors200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETResourceErrors200Response() *GETResourceErrors200Response { + this := GETResourceErrors200Response{} + return &this +} + +// NewGETResourceErrors200ResponseWithDefaults instantiates a new GETResourceErrors200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETResourceErrors200ResponseWithDefaults() *GETResourceErrors200Response { + this := GETResourceErrors200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETResourceErrors200Response) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETResourceErrors200Response) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETResourceErrors200Response) HasData() bool { + if o != nil && IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given interface{} and assigns it to the Data field. +func (o *GETResourceErrors200Response) SetData(v interface{}) { + o.Data = v +} + +func (o GETResourceErrors200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETResourceErrors200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETResourceErrors200Response struct { + value *GETResourceErrors200Response + isSet bool +} + +func (v NullableGETResourceErrors200Response) Get() *GETResourceErrors200Response { + return v.value +} + +func (v *NullableGETResourceErrors200Response) Set(val *GETResourceErrors200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETResourceErrors200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETResourceErrors200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETResourceErrors200Response(val *GETResourceErrors200Response) *NullableGETResourceErrors200Response { + return &NullableGETResourceErrors200Response{value: val, isSet: true} +} + +func (v NullableGETResourceErrors200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETResourceErrors200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_resource_errors_resource_error_id_200_response.go b/api/model_get_resource_errors_resource_error_id_200_response.go new file mode 100644 index 00000000..e414aa64 --- /dev/null +++ b/api/model_get_resource_errors_resource_error_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETResourceErrorsResourceErrorId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETResourceErrorsResourceErrorId200Response{} + +// GETResourceErrorsResourceErrorId200Response struct for GETResourceErrorsResourceErrorId200Response +type GETResourceErrorsResourceErrorId200Response struct { + Data *GETResourceErrorsResourceErrorId200ResponseData `json:"data,omitempty"` +} + +// NewGETResourceErrorsResourceErrorId200Response instantiates a new GETResourceErrorsResourceErrorId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETResourceErrorsResourceErrorId200Response() *GETResourceErrorsResourceErrorId200Response { + this := GETResourceErrorsResourceErrorId200Response{} + return &this +} + +// NewGETResourceErrorsResourceErrorId200ResponseWithDefaults instantiates a new GETResourceErrorsResourceErrorId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETResourceErrorsResourceErrorId200ResponseWithDefaults() *GETResourceErrorsResourceErrorId200Response { + this := GETResourceErrorsResourceErrorId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *GETResourceErrorsResourceErrorId200Response) GetData() GETResourceErrorsResourceErrorId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret GETResourceErrorsResourceErrorId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETResourceErrorsResourceErrorId200Response) GetDataOk() (*GETResourceErrorsResourceErrorId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETResourceErrorsResourceErrorId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given GETResourceErrorsResourceErrorId200ResponseData and assigns it to the Data field. +func (o *GETResourceErrorsResourceErrorId200Response) SetData(v GETResourceErrorsResourceErrorId200ResponseData) { + o.Data = &v +} + +func (o GETResourceErrorsResourceErrorId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETResourceErrorsResourceErrorId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETResourceErrorsResourceErrorId200Response struct { + value *GETResourceErrorsResourceErrorId200Response + isSet bool +} + +func (v NullableGETResourceErrorsResourceErrorId200Response) Get() *GETResourceErrorsResourceErrorId200Response { + return v.value +} + +func (v *NullableGETResourceErrorsResourceErrorId200Response) Set(val *GETResourceErrorsResourceErrorId200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETResourceErrorsResourceErrorId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETResourceErrorsResourceErrorId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETResourceErrorsResourceErrorId200Response(val *GETResourceErrorsResourceErrorId200Response) *NullableGETResourceErrorsResourceErrorId200Response { + return &NullableGETResourceErrorsResourceErrorId200Response{value: val, isSet: true} +} + +func (v NullableGETResourceErrorsResourceErrorId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETResourceErrorsResourceErrorId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_resource_errors_resource_error_id_200_response_data.go b/api/model_get_resource_errors_resource_error_id_200_response_data.go new file mode 100644 index 00000000..7e454f8e --- /dev/null +++ b/api/model_get_resource_errors_resource_error_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETResourceErrorsResourceErrorId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETResourceErrorsResourceErrorId200ResponseData{} + +// GETResourceErrorsResourceErrorId200ResponseData struct for GETResourceErrorsResourceErrorId200ResponseData +type GETResourceErrorsResourceErrorId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *GETResourceErrorsResourceErrorId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *GETResourceErrorsResourceErrorId200ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewGETResourceErrorsResourceErrorId200ResponseData instantiates a new GETResourceErrorsResourceErrorId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETResourceErrorsResourceErrorId200ResponseData() *GETResourceErrorsResourceErrorId200ResponseData { + this := GETResourceErrorsResourceErrorId200ResponseData{} + return &this +} + +// NewGETResourceErrorsResourceErrorId200ResponseDataWithDefaults instantiates a new GETResourceErrorsResourceErrorId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETResourceErrorsResourceErrorId200ResponseDataWithDefaults() *GETResourceErrorsResourceErrorId200ResponseData { + this := GETResourceErrorsResourceErrorId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETResourceErrorsResourceErrorId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETResourceErrorsResourceErrorId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *GETResourceErrorsResourceErrorId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETResourceErrorsResourceErrorId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETResourceErrorsResourceErrorId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETResourceErrorsResourceErrorId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *GETResourceErrorsResourceErrorId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *GETResourceErrorsResourceErrorId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *GETResourceErrorsResourceErrorId200ResponseData) GetAttributes() GETResourceErrorsResourceErrorId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret GETResourceErrorsResourceErrorId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseData) GetAttributesOk() (*GETResourceErrorsResourceErrorId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given GETResourceErrorsResourceErrorId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *GETResourceErrorsResourceErrorId200ResponseData) SetAttributes(v GETResourceErrorsResourceErrorId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *GETResourceErrorsResourceErrorId200ResponseData) GetRelationships() GETResourceErrorsResourceErrorId200ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret GETResourceErrorsResourceErrorId200ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseData) GetRelationshipsOk() (*GETResourceErrorsResourceErrorId200ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given GETResourceErrorsResourceErrorId200ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETResourceErrorsResourceErrorId200ResponseData) SetRelationships(v GETResourceErrorsResourceErrorId200ResponseDataRelationships) { + o.Relationships = &v +} + +func (o GETResourceErrorsResourceErrorId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETResourceErrorsResourceErrorId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableGETResourceErrorsResourceErrorId200ResponseData struct { + value *GETResourceErrorsResourceErrorId200ResponseData + isSet bool +} + +func (v NullableGETResourceErrorsResourceErrorId200ResponseData) Get() *GETResourceErrorsResourceErrorId200ResponseData { + return v.value +} + +func (v *NullableGETResourceErrorsResourceErrorId200ResponseData) Set(val *GETResourceErrorsResourceErrorId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableGETResourceErrorsResourceErrorId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableGETResourceErrorsResourceErrorId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETResourceErrorsResourceErrorId200ResponseData(val *GETResourceErrorsResourceErrorId200ResponseData) *NullableGETResourceErrorsResourceErrorId200ResponseData { + return &NullableGETResourceErrorsResourceErrorId200ResponseData{value: val, isSet: true} +} + +func (v NullableGETResourceErrorsResourceErrorId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETResourceErrorsResourceErrorId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_resource_errors_resource_error_id_200_response_data_attributes.go b/api/model_get_resource_errors_resource_error_id_200_response_data_attributes.go new file mode 100644 index 00000000..8d411eea --- /dev/null +++ b/api/model_get_resource_errors_resource_error_id_200_response_data_attributes.go @@ -0,0 +1,393 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETResourceErrorsResourceErrorId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETResourceErrorsResourceErrorId200ResponseDataAttributes{} + +// GETResourceErrorsResourceErrorId200ResponseDataAttributes struct for GETResourceErrorsResourceErrorId200ResponseDataAttributes +type GETResourceErrorsResourceErrorId200ResponseDataAttributes struct { + // The resource attribute name related to the error. + Name interface{} `json:"name,omitempty"` + // The error code. + Code interface{} `json:"code,omitempty"` + // The error message. + Message interface{} `json:"message,omitempty"` + // Time at which the resource was created. + CreatedAt interface{} `json:"created_at,omitempty"` + // Time at which the resource was last updated. + UpdatedAt interface{} `json:"updated_at,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewGETResourceErrorsResourceErrorId200ResponseDataAttributes instantiates a new GETResourceErrorsResourceErrorId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETResourceErrorsResourceErrorId200ResponseDataAttributes() *GETResourceErrorsResourceErrorId200ResponseDataAttributes { + this := GETResourceErrorsResourceErrorId200ResponseDataAttributes{} + return &this +} + +// NewGETResourceErrorsResourceErrorId200ResponseDataAttributesWithDefaults instantiates a new GETResourceErrorsResourceErrorId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETResourceErrorsResourceErrorId200ResponseDataAttributesWithDefaults() *GETResourceErrorsResourceErrorId200ResponseDataAttributes { + this := GETResourceErrorsResourceErrorId200ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) HasName() bool { + if o != nil && IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given interface{} and assigns it to the Name field. +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return &o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) HasCode() bool { + if o != nil && IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given interface{} and assigns it to the Code field. +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetCode(v interface{}) { + o.Code = v +} + +// GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetMessage() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetMessageOk() (*interface{}, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return &o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) HasMessage() bool { + if o != nil && IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given interface{} and assigns it to the Message field. +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetMessage(v interface{}) { + o.Message = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetCreatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return &o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) HasCreatedAt() bool { + if o != nil && IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given interface{} and assigns it to the CreatedAt field. +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetCreatedAt(v interface{}) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetUpdatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return &o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) HasUpdatedAt() bool { + if o != nil && IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given interface{} and assigns it to the UpdatedAt field. +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetUpdatedAt(v interface{}) { + o.UpdatedAt = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *GETResourceErrorsResourceErrorId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o GETResourceErrorsResourceErrorId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETResourceErrorsResourceErrorId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Code != nil { + toSerialize["code"] = o.Code + } + if o.Message != nil { + toSerialize["message"] = o.Message + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableGETResourceErrorsResourceErrorId200ResponseDataAttributes struct { + value *GETResourceErrorsResourceErrorId200ResponseDataAttributes + isSet bool +} + +func (v NullableGETResourceErrorsResourceErrorId200ResponseDataAttributes) Get() *GETResourceErrorsResourceErrorId200ResponseDataAttributes { + return v.value +} + +func (v *NullableGETResourceErrorsResourceErrorId200ResponseDataAttributes) Set(val *GETResourceErrorsResourceErrorId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullableGETResourceErrorsResourceErrorId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullableGETResourceErrorsResourceErrorId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETResourceErrorsResourceErrorId200ResponseDataAttributes(val *GETResourceErrorsResourceErrorId200ResponseDataAttributes) *NullableGETResourceErrorsResourceErrorId200ResponseDataAttributes { + return &NullableGETResourceErrorsResourceErrorId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullableGETResourceErrorsResourceErrorId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETResourceErrorsResourceErrorId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_resource_errors_resource_error_id_200_response_data_relationships.go b/api/model_get_resource_errors_resource_error_id_200_response_data_relationships.go new file mode 100644 index 00000000..3a223ae5 --- /dev/null +++ b/api/model_get_resource_errors_resource_error_id_200_response_data_relationships.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETResourceErrorsResourceErrorId200ResponseDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETResourceErrorsResourceErrorId200ResponseDataRelationships{} + +// GETResourceErrorsResourceErrorId200ResponseDataRelationships struct for GETResourceErrorsResourceErrorId200ResponseDataRelationships +type GETResourceErrorsResourceErrorId200ResponseDataRelationships struct { + Resource *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource `json:"resource,omitempty"` +} + +// NewGETResourceErrorsResourceErrorId200ResponseDataRelationships instantiates a new GETResourceErrorsResourceErrorId200ResponseDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETResourceErrorsResourceErrorId200ResponseDataRelationships() *GETResourceErrorsResourceErrorId200ResponseDataRelationships { + this := GETResourceErrorsResourceErrorId200ResponseDataRelationships{} + return &this +} + +// NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsWithDefaults instantiates a new GETResourceErrorsResourceErrorId200ResponseDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsWithDefaults() *GETResourceErrorsResourceErrorId200ResponseDataRelationships { + this := GETResourceErrorsResourceErrorId200ResponseDataRelationships{} + return &this +} + +// GetResource returns the Resource field value if set, zero value otherwise. +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationships) GetResource() GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource { + if o == nil || IsNil(o.Resource) { + var ret GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource + return ret + } + return *o.Resource +} + +// GetResourceOk returns a tuple with the Resource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationships) GetResourceOk() (*GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource, bool) { + if o == nil || IsNil(o.Resource) { + return nil, false + } + return o.Resource, true +} + +// HasResource returns a boolean if a field has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationships) HasResource() bool { + if o != nil && !IsNil(o.Resource) { + return true + } + + return false +} + +// SetResource gets a reference to the given GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource and assigns it to the Resource field. +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationships) SetResource(v GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) { + o.Resource = &v +} + +func (o GETResourceErrorsResourceErrorId200ResponseDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETResourceErrorsResourceErrorId200ResponseDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Resource) { + toSerialize["resource"] = o.Resource + } + return toSerialize, nil +} + +type NullableGETResourceErrorsResourceErrorId200ResponseDataRelationships struct { + value *GETResourceErrorsResourceErrorId200ResponseDataRelationships + isSet bool +} + +func (v NullableGETResourceErrorsResourceErrorId200ResponseDataRelationships) Get() *GETResourceErrorsResourceErrorId200ResponseDataRelationships { + return v.value +} + +func (v *NullableGETResourceErrorsResourceErrorId200ResponseDataRelationships) Set(val *GETResourceErrorsResourceErrorId200ResponseDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableGETResourceErrorsResourceErrorId200ResponseDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableGETResourceErrorsResourceErrorId200ResponseDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETResourceErrorsResourceErrorId200ResponseDataRelationships(val *GETResourceErrorsResourceErrorId200ResponseDataRelationships) *NullableGETResourceErrorsResourceErrorId200ResponseDataRelationships { + return &NullableGETResourceErrorsResourceErrorId200ResponseDataRelationships{value: val, isSet: true} +} + +func (v NullableGETResourceErrorsResourceErrorId200ResponseDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETResourceErrorsResourceErrorId200ResponseDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_resource_errors_resource_error_id_200_response_data_relationships_resource.go b/api/model_get_resource_errors_resource_error_id_200_response_data_relationships_resource.go new file mode 100644 index 00000000..3fb4ecef --- /dev/null +++ b/api/model_get_resource_errors_resource_error_id_200_response_data_relationships_resource.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource{} + +// GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource struct for GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource +type GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData `json:"data,omitempty"` +} + +// NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource instantiates a new GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource() *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource { + this := GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource{} + return &this +} + +// NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceWithDefaults instantiates a new GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceWithDefaults() *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource { + this := GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) GetData() GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData { + if o == nil || IsNil(o.Data) { + var ret GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) GetDataOk() (*GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData and assigns it to the Data field. +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) SetData(v GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) { + o.Data = &v +} + +func (o GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource struct { + value *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource + isSet bool +} + +func (v NullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) Get() *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource { + return v.value +} + +func (v *NullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) Set(val *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) { + v.value = val + v.isSet = true +} + +func (v NullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) IsSet() bool { + return v.isSet +} + +func (v *NullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource(val *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) *NullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource { + return &NullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource{value: val, isSet: true} +} + +func (v NullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_resource_errors_resource_error_id_200_response_data_relationships_resource_data.go b/api/model_get_resource_errors_resource_error_id_200_response_data_relationships_resource_data.go new file mode 100644 index 00000000..9b844af5 --- /dev/null +++ b/api/model_get_resource_errors_resource_error_id_200_response_data_relationships_resource_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData{} + +// GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData struct for GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData +type GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData instantiates a new GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData() *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData { + this := GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData{} + return &this +} + +// NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceDataWithDefaults instantiates a new GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceDataWithDefaults() *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData { + this := GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) SetId(v interface{}) { + o.Id = v +} + +func (o GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData struct { + value *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData + isSet bool +} + +func (v NullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) Get() *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData { + return v.value +} + +func (v *NullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) Set(val *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) { + v.value = val + v.isSet = true +} + +func (v NullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) IsSet() bool { + return v.isSet +} + +func (v *NullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData(val *GETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) *NullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData { + return &NullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData{value: val, isSet: true} +} + +func (v NullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETResourceErrorsResourceErrorId200ResponseDataRelationshipsResourceData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_return_line_items_200_response.go b/api/model_get_return_line_items_200_response.go index 18e36afb..b7b42090 100644 --- a/api/model_get_return_line_items_200_response.go +++ b/api/model_get_return_line_items_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_return_line_items_return_line_item_id_200_response.go b/api/model_get_return_line_items_return_line_item_id_200_response.go index 304c1f12..753199f6 100644 --- a/api/model_get_return_line_items_return_line_item_id_200_response.go +++ b/api/model_get_return_line_items_return_line_item_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_return_line_items_return_line_item_id_200_response_data.go b/api/model_get_return_line_items_return_line_item_id_200_response_data.go index 5d5e2ec1..5b82373d 100644 --- a/api/model_get_return_line_items_return_line_item_id_200_response_data.go +++ b/api/model_get_return_line_items_return_line_item_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_return_line_items_return_line_item_id_200_response_data_attributes.go b/api/model_get_return_line_items_return_line_item_id_200_response_data_attributes.go index bf1e721b..011eea44 100644 --- a/api/model_get_return_line_items_return_line_item_id_200_response_data_attributes.go +++ b/api/model_get_return_line_items_return_line_item_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,10 +24,18 @@ type GETReturnLineItemsReturnLineItemId200ResponseDataAttributes struct { SkuCode interface{} `json:"sku_code,omitempty"` // The code of the associated bundle. BundleCode interface{} `json:"bundle_code,omitempty"` + // The return line item quantity. + Quantity interface{} `json:"quantity,omitempty"` // The name of the line item. Name interface{} `json:"name,omitempty"` - // The line item quantity. - Quantity interface{} `json:"quantity,omitempty"` + // The image_url of the associated line item. + ImageUrl interface{} `json:"image_url,omitempty"` + // Calculated as line item unit amount x returned quantity and applied discounts, if any. + TotalAmountCents interface{} `json:"total_amount_cents,omitempty"` + // The return line item total amount, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce. + TotalAmountFloat interface{} `json:"total_amount_float,omitempty"` + // The return line item total amount, formatted. This can be useful to display the amount with currency in you views. + FormattedTotalAmount interface{} `json:"formatted_total_amount,omitempty"` // Set of key-value pairs that you can use to add details about return reason. ReturnReason interface{} `json:"return_reason,omitempty"` // Time at which the return line item was restocked. @@ -38,7 +46,7 @@ type GETReturnLineItemsReturnLineItemId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -127,6 +135,39 @@ func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetBundleC o.BundleCode = v } +// GetQuantity returns the Quantity field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetQuantity() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Quantity +} + +// GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetQuantityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Quantity) { + return nil, false + } + return &o.Quantity, true +} + +// HasQuantity returns a boolean if a field has been set. +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) HasQuantity() bool { + if o != nil && IsNil(o.Quantity) { + return true + } + + return false +} + +// SetQuantity gets a reference to the given interface{} and assigns it to the Quantity field. +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetQuantity(v interface{}) { + o.Quantity = v +} + // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetName() interface{} { if o == nil { @@ -160,37 +201,136 @@ func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetName(v o.Name = v } -// GetQuantity returns the Quantity field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetQuantity() interface{} { +// GetImageUrl returns the ImageUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetImageUrl() interface{} { if o == nil { var ret interface{} return ret } - return o.Quantity + return o.ImageUrl } -// GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise +// GetImageUrlOk returns a tuple with the ImageUrl field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetQuantityOk() (*interface{}, bool) { - if o == nil || IsNil(o.Quantity) { +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetImageUrlOk() (*interface{}, bool) { + if o == nil || IsNil(o.ImageUrl) { return nil, false } - return &o.Quantity, true + return &o.ImageUrl, true } -// HasQuantity returns a boolean if a field has been set. -func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) HasQuantity() bool { - if o != nil && IsNil(o.Quantity) { +// HasImageUrl returns a boolean if a field has been set. +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) HasImageUrl() bool { + if o != nil && IsNil(o.ImageUrl) { return true } return false } -// SetQuantity gets a reference to the given interface{} and assigns it to the Quantity field. -func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetQuantity(v interface{}) { - o.Quantity = v +// SetImageUrl gets a reference to the given interface{} and assigns it to the ImageUrl field. +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetImageUrl(v interface{}) { + o.ImageUrl = v +} + +// GetTotalAmountCents returns the TotalAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetTotalAmountCents() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.TotalAmountCents +} + +// GetTotalAmountCentsOk returns a tuple with the TotalAmountCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetTotalAmountCentsOk() (*interface{}, bool) { + if o == nil || IsNil(o.TotalAmountCents) { + return nil, false + } + return &o.TotalAmountCents, true +} + +// HasTotalAmountCents returns a boolean if a field has been set. +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) HasTotalAmountCents() bool { + if o != nil && IsNil(o.TotalAmountCents) { + return true + } + + return false +} + +// SetTotalAmountCents gets a reference to the given interface{} and assigns it to the TotalAmountCents field. +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetTotalAmountCents(v interface{}) { + o.TotalAmountCents = v +} + +// GetTotalAmountFloat returns the TotalAmountFloat field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetTotalAmountFloat() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.TotalAmountFloat +} + +// GetTotalAmountFloatOk returns a tuple with the TotalAmountFloat field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetTotalAmountFloatOk() (*interface{}, bool) { + if o == nil || IsNil(o.TotalAmountFloat) { + return nil, false + } + return &o.TotalAmountFloat, true +} + +// HasTotalAmountFloat returns a boolean if a field has been set. +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) HasTotalAmountFloat() bool { + if o != nil && IsNil(o.TotalAmountFloat) { + return true + } + + return false +} + +// SetTotalAmountFloat gets a reference to the given interface{} and assigns it to the TotalAmountFloat field. +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetTotalAmountFloat(v interface{}) { + o.TotalAmountFloat = v +} + +// GetFormattedTotalAmount returns the FormattedTotalAmount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetFormattedTotalAmount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.FormattedTotalAmount +} + +// GetFormattedTotalAmountOk returns a tuple with the FormattedTotalAmount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) GetFormattedTotalAmountOk() (*interface{}, bool) { + if o == nil || IsNil(o.FormattedTotalAmount) { + return nil, false + } + return &o.FormattedTotalAmount, true +} + +// HasFormattedTotalAmount returns a boolean if a field has been set. +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) HasFormattedTotalAmount() bool { + if o != nil && IsNil(o.FormattedTotalAmount) { + return true + } + + return false +} + +// SetFormattedTotalAmount gets a reference to the given interface{} and assigns it to the FormattedTotalAmount field. +func (o *GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) SetFormattedTotalAmount(v interface{}) { + o.FormattedTotalAmount = v } // GetReturnReason returns the ReturnReason field value if set, zero value otherwise (both if not set or set to explicit null). @@ -440,11 +580,23 @@ func (o GETReturnLineItemsReturnLineItemId200ResponseDataAttributes) ToMap() (ma if o.BundleCode != nil { toSerialize["bundle_code"] = o.BundleCode } + if o.Quantity != nil { + toSerialize["quantity"] = o.Quantity + } if o.Name != nil { toSerialize["name"] = o.Name } - if o.Quantity != nil { - toSerialize["quantity"] = o.Quantity + if o.ImageUrl != nil { + toSerialize["image_url"] = o.ImageUrl + } + if o.TotalAmountCents != nil { + toSerialize["total_amount_cents"] = o.TotalAmountCents + } + if o.TotalAmountFloat != nil { + toSerialize["total_amount_float"] = o.TotalAmountFloat + } + if o.FormattedTotalAmount != nil { + toSerialize["formatted_total_amount"] = o.FormattedTotalAmount } if o.ReturnReason != nil { toSerialize["return_reason"] = o.ReturnReason diff --git a/api/model_get_returns_200_response.go b/api/model_get_returns_200_response.go index 06d17513..08861eff 100644 --- a/api/model_get_returns_200_response.go +++ b/api/model_get_returns_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_returns_return_id_200_response.go b/api/model_get_returns_return_id_200_response.go index b820b484..2f0ae845 100644 --- a/api/model_get_returns_return_id_200_response.go +++ b/api/model_get_returns_return_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_returns_return_id_200_response_data.go b/api/model_get_returns_return_id_200_response_data.go index 1be01232..d8aace3c 100644 --- a/api/model_get_returns_return_id_200_response_data.go +++ b/api/model_get_returns_return_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_returns_return_id_200_response_data_attributes.go b/api/model_get_returns_return_id_200_response_data_attributes.go index d64f0010..53ca0051 100644 --- a/api/model_get_returns_return_id_200_response_data_attributes.go +++ b/api/model_get_returns_return_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,9 @@ var _ MappedNullable = &GETReturnsReturnId200ResponseDataAttributes{} // GETReturnsReturnId200ResponseDataAttributes struct for GETReturnsReturnId200ResponseDataAttributes type GETReturnsReturnId200ResponseDataAttributes struct { - // Unique identifier for the return + // Unique identifier for the return. Number interface{} `json:"number,omitempty"` - // The return status, one of 'draft', 'requested', 'approved', 'cancelled', 'shipped', 'rejected' or 'received' + // The return status. One of 'draft' (default), 'requested', 'approved', 'cancelled', 'shipped', 'rejected', 'received', or 'refunded'. Status interface{} `json:"status,omitempty"` // The email address of the associated customer. CustomerEmail interface{} `json:"customer_email,omitempty"` @@ -38,15 +38,23 @@ type GETReturnsReturnId200ResponseDataAttributes struct { RejectedAt interface{} `json:"rejected_at,omitempty"` // Time at which the return was received. ReceivedAt interface{} `json:"received_at,omitempty"` + // Time at which the return was refunded. + RefundedAt interface{} `json:"refunded_at,omitempty"` // Time at which the resource has been archived. ArchivedAt interface{} `json:"archived_at,omitempty"` + // The amount to be refunded, estimated by associated return line items, in cents. + EstimatedRefundAmountCents interface{} `json:"estimated_refund_amount_cents,omitempty"` + // The amount to be refunded, estimated by associated return line items, float. + EstimatedRefundAmountFloat interface{} `json:"estimated_refund_amount_float,omitempty"` + // The amount to be refunded, estimated by associated return line items, formatted. + FormattedEstimatedRefundAmount interface{} `json:"formatted_estimated_refund_amount,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -366,6 +374,39 @@ func (o *GETReturnsReturnId200ResponseDataAttributes) SetReceivedAt(v interface{ o.ReceivedAt = v } +// GetRefundedAt returns the RefundedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETReturnsReturnId200ResponseDataAttributes) GetRefundedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RefundedAt +} + +// GetRefundedAtOk returns a tuple with the RefundedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETReturnsReturnId200ResponseDataAttributes) GetRefundedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.RefundedAt) { + return nil, false + } + return &o.RefundedAt, true +} + +// HasRefundedAt returns a boolean if a field has been set. +func (o *GETReturnsReturnId200ResponseDataAttributes) HasRefundedAt() bool { + if o != nil && IsNil(o.RefundedAt) { + return true + } + + return false +} + +// SetRefundedAt gets a reference to the given interface{} and assigns it to the RefundedAt field. +func (o *GETReturnsReturnId200ResponseDataAttributes) SetRefundedAt(v interface{}) { + o.RefundedAt = v +} + // GetArchivedAt returns the ArchivedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETReturnsReturnId200ResponseDataAttributes) GetArchivedAt() interface{} { if o == nil { @@ -399,6 +440,105 @@ func (o *GETReturnsReturnId200ResponseDataAttributes) SetArchivedAt(v interface{ o.ArchivedAt = v } +// GetEstimatedRefundAmountCents returns the EstimatedRefundAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETReturnsReturnId200ResponseDataAttributes) GetEstimatedRefundAmountCents() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.EstimatedRefundAmountCents +} + +// GetEstimatedRefundAmountCentsOk returns a tuple with the EstimatedRefundAmountCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETReturnsReturnId200ResponseDataAttributes) GetEstimatedRefundAmountCentsOk() (*interface{}, bool) { + if o == nil || IsNil(o.EstimatedRefundAmountCents) { + return nil, false + } + return &o.EstimatedRefundAmountCents, true +} + +// HasEstimatedRefundAmountCents returns a boolean if a field has been set. +func (o *GETReturnsReturnId200ResponseDataAttributes) HasEstimatedRefundAmountCents() bool { + if o != nil && IsNil(o.EstimatedRefundAmountCents) { + return true + } + + return false +} + +// SetEstimatedRefundAmountCents gets a reference to the given interface{} and assigns it to the EstimatedRefundAmountCents field. +func (o *GETReturnsReturnId200ResponseDataAttributes) SetEstimatedRefundAmountCents(v interface{}) { + o.EstimatedRefundAmountCents = v +} + +// GetEstimatedRefundAmountFloat returns the EstimatedRefundAmountFloat field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETReturnsReturnId200ResponseDataAttributes) GetEstimatedRefundAmountFloat() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.EstimatedRefundAmountFloat +} + +// GetEstimatedRefundAmountFloatOk returns a tuple with the EstimatedRefundAmountFloat field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETReturnsReturnId200ResponseDataAttributes) GetEstimatedRefundAmountFloatOk() (*interface{}, bool) { + if o == nil || IsNil(o.EstimatedRefundAmountFloat) { + return nil, false + } + return &o.EstimatedRefundAmountFloat, true +} + +// HasEstimatedRefundAmountFloat returns a boolean if a field has been set. +func (o *GETReturnsReturnId200ResponseDataAttributes) HasEstimatedRefundAmountFloat() bool { + if o != nil && IsNil(o.EstimatedRefundAmountFloat) { + return true + } + + return false +} + +// SetEstimatedRefundAmountFloat gets a reference to the given interface{} and assigns it to the EstimatedRefundAmountFloat field. +func (o *GETReturnsReturnId200ResponseDataAttributes) SetEstimatedRefundAmountFloat(v interface{}) { + o.EstimatedRefundAmountFloat = v +} + +// GetFormattedEstimatedRefundAmount returns the FormattedEstimatedRefundAmount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETReturnsReturnId200ResponseDataAttributes) GetFormattedEstimatedRefundAmount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.FormattedEstimatedRefundAmount +} + +// GetFormattedEstimatedRefundAmountOk returns a tuple with the FormattedEstimatedRefundAmount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETReturnsReturnId200ResponseDataAttributes) GetFormattedEstimatedRefundAmountOk() (*interface{}, bool) { + if o == nil || IsNil(o.FormattedEstimatedRefundAmount) { + return nil, false + } + return &o.FormattedEstimatedRefundAmount, true +} + +// HasFormattedEstimatedRefundAmount returns a boolean if a field has been set. +func (o *GETReturnsReturnId200ResponseDataAttributes) HasFormattedEstimatedRefundAmount() bool { + if o != nil && IsNil(o.FormattedEstimatedRefundAmount) { + return true + } + + return false +} + +// SetFormattedEstimatedRefundAmount gets a reference to the given interface{} and assigns it to the FormattedEstimatedRefundAmount field. +func (o *GETReturnsReturnId200ResponseDataAttributes) SetFormattedEstimatedRefundAmount(v interface{}) { + o.FormattedEstimatedRefundAmount = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETReturnsReturnId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -601,9 +741,21 @@ func (o GETReturnsReturnId200ResponseDataAttributes) ToMap() (map[string]interfa if o.ReceivedAt != nil { toSerialize["received_at"] = o.ReceivedAt } + if o.RefundedAt != nil { + toSerialize["refunded_at"] = o.RefundedAt + } if o.ArchivedAt != nil { toSerialize["archived_at"] = o.ArchivedAt } + if o.EstimatedRefundAmountCents != nil { + toSerialize["estimated_refund_amount_cents"] = o.EstimatedRefundAmountCents + } + if o.EstimatedRefundAmountFloat != nil { + toSerialize["estimated_refund_amount_float"] = o.EstimatedRefundAmountFloat + } + if o.FormattedEstimatedRefundAmount != nil { + toSerialize["formatted_estimated_refund_amount"] = o.FormattedEstimatedRefundAmount + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_satispay_gateways_200_response.go b/api/model_get_satispay_gateways_200_response.go index 4a91c20c..3ef730d7 100644 --- a/api/model_get_satispay_gateways_200_response.go +++ b/api/model_get_satispay_gateways_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_satispay_gateways_satispay_gateway_id_200_response.go b/api/model_get_satispay_gateways_satispay_gateway_id_200_response.go index e0b6e9e4..07092d3a 100644 --- a/api/model_get_satispay_gateways_satispay_gateway_id_200_response.go +++ b/api/model_get_satispay_gateways_satispay_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_satispay_gateways_satispay_gateway_id_200_response_data.go b/api/model_get_satispay_gateways_satispay_gateway_id_200_response_data.go index 1b108a17..1a76bb8c 100644 --- a/api/model_get_satispay_gateways_satispay_gateway_id_200_response_data.go +++ b/api/model_get_satispay_gateways_satispay_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_satispay_gateways_satispay_gateway_id_200_response_data_attributes.go b/api/model_get_satispay_gateways_satispay_gateway_id_200_response_data_attributes.go index f9caa0f6..cc930f50 100644 --- a/api/model_get_satispay_gateways_satispay_gateway_id_200_response_data_attributes.go +++ b/api/model_get_satispay_gateways_satispay_gateway_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,10 +28,14 @@ type GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` + // Activation code generated from the Satispay Dashboard. + Token interface{} `json:"token,omitempty"` + // The Satispay API key auto generated basing on activation code. + KeyId interface{} `json:"key_id,omitempty"` // The gateway webhook URL, generated automatically. WebhookEndpointUrl interface{} `json:"webhook_endpoint_url,omitempty"` } @@ -251,6 +255,72 @@ func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) SetMetad o.Metadata = v } +// GetToken returns the Token field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) GetToken() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Token +} + +// GetTokenOk returns a tuple with the Token field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) GetTokenOk() (*interface{}, bool) { + if o == nil || IsNil(o.Token) { + return nil, false + } + return &o.Token, true +} + +// HasToken returns a boolean if a field has been set. +func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) HasToken() bool { + if o != nil && IsNil(o.Token) { + return true + } + + return false +} + +// SetToken gets a reference to the given interface{} and assigns it to the Token field. +func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) SetToken(v interface{}) { + o.Token = v +} + +// GetKeyId returns the KeyId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) GetKeyId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.KeyId +} + +// GetKeyIdOk returns a tuple with the KeyId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) GetKeyIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.KeyId) { + return nil, false + } + return &o.KeyId, true +} + +// HasKeyId returns a boolean if a field has been set. +func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) HasKeyId() bool { + if o != nil && IsNil(o.KeyId) { + return true + } + + return false +} + +// SetKeyId gets a reference to the given interface{} and assigns it to the KeyId field. +func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) SetKeyId(v interface{}) { + o.KeyId = v +} + // GetWebhookEndpointUrl returns the WebhookEndpointUrl field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) GetWebhookEndpointUrl() interface{} { if o == nil { @@ -312,6 +382,12 @@ func (o GETSatispayGatewaysSatispayGatewayId200ResponseDataAttributes) ToMap() ( if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } + if o.Token != nil { + toSerialize["token"] = o.Token + } + if o.KeyId != nil { + toSerialize["key_id"] = o.KeyId + } if o.WebhookEndpointUrl != nil { toSerialize["webhook_endpoint_url"] = o.WebhookEndpointUrl } diff --git a/api/model_get_satispay_payments_200_response.go b/api/model_get_satispay_payments_200_response.go index 65ea0c8e..9bcf6b3c 100644 --- a/api/model_get_satispay_payments_200_response.go +++ b/api/model_get_satispay_payments_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_satispay_payments_satispay_payment_id_200_response.go b/api/model_get_satispay_payments_satispay_payment_id_200_response.go index 3bd3eb6c..00cef85a 100644 --- a/api/model_get_satispay_payments_satispay_payment_id_200_response.go +++ b/api/model_get_satispay_payments_satispay_payment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_satispay_payments_satispay_payment_id_200_response_data.go b/api/model_get_satispay_payments_satispay_payment_id_200_response_data.go index a46f4c05..bbd2723b 100644 --- a/api/model_get_satispay_payments_satispay_payment_id_200_response_data.go +++ b/api/model_get_satispay_payments_satispay_payment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_satispay_payments_satispay_payment_id_200_response_data_attributes.go b/api/model_get_satispay_payments_satispay_payment_id_200_response_data_attributes.go index 133e5f3a..aa5b7b47 100644 --- a/api/model_get_satispay_payments_satispay_payment_id_200_response_data_attributes.go +++ b/api/model_get_satispay_payments_satispay_payment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,21 +20,27 @@ var _ MappedNullable = &GETSatispayPaymentsSatispayPaymentId200ResponseDataAttri // GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes struct for GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes type GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes struct { - // Activation code generated from the Satispay Dashboard. - Token interface{} `json:"token,omitempty"` - // The Satispay API key auto generated basing on activation code. - KeyId interface{} `json:"key_id,omitempty"` // The payment unique identifier. PaymentId interface{} `json:"payment_id,omitempty"` + // The Satispay payment flow, inspect gateway API details for more information. + Flow interface{} `json:"flow,omitempty"` + // The Satispay payment status. + Status interface{} `json:"status,omitempty"` // The url to redirect the customer after the payment flow is completed. RedirectUrl interface{} `json:"redirect_url,omitempty"` + // Redirect url to the payment page. + PaymentUrl interface{} `json:"payment_url,omitempty"` + // The Satispay payment response, used to fetch internal data. + PaymentResponse interface{} `json:"payment_response,omitempty"` + // Information about the payment instrument used in the transaction. + PaymentInstrument interface{} `json:"payment_instrument,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -57,103 +63,103 @@ func NewGETSatispayPaymentsSatispayPaymentId200ResponseDataAttributesWithDefault return &this } -// GetToken returns the Token field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetToken() interface{} { +// GetPaymentId returns the PaymentId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentId() interface{} { if o == nil { var ret interface{} return ret } - return o.Token + return o.PaymentId } -// GetTokenOk returns a tuple with the Token field value if set, nil otherwise +// GetPaymentIdOk returns a tuple with the PaymentId field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetTokenOk() (*interface{}, bool) { - if o == nil || IsNil(o.Token) { +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.PaymentId) { return nil, false } - return &o.Token, true + return &o.PaymentId, true } -// HasToken returns a boolean if a field has been set. -func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) HasToken() bool { - if o != nil && IsNil(o.Token) { +// HasPaymentId returns a boolean if a field has been set. +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) HasPaymentId() bool { + if o != nil && IsNil(o.PaymentId) { return true } return false } -// SetToken gets a reference to the given interface{} and assigns it to the Token field. -func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetToken(v interface{}) { - o.Token = v +// SetPaymentId gets a reference to the given interface{} and assigns it to the PaymentId field. +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetPaymentId(v interface{}) { + o.PaymentId = v } -// GetKeyId returns the KeyId field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetKeyId() interface{} { +// GetFlow returns the Flow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetFlow() interface{} { if o == nil { var ret interface{} return ret } - return o.KeyId + return o.Flow } -// GetKeyIdOk returns a tuple with the KeyId field value if set, nil otherwise +// GetFlowOk returns a tuple with the Flow field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetKeyIdOk() (*interface{}, bool) { - if o == nil || IsNil(o.KeyId) { +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetFlowOk() (*interface{}, bool) { + if o == nil || IsNil(o.Flow) { return nil, false } - return &o.KeyId, true + return &o.Flow, true } -// HasKeyId returns a boolean if a field has been set. -func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) HasKeyId() bool { - if o != nil && IsNil(o.KeyId) { +// HasFlow returns a boolean if a field has been set. +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) HasFlow() bool { + if o != nil && IsNil(o.Flow) { return true } return false } -// SetKeyId gets a reference to the given interface{} and assigns it to the KeyId field. -func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetKeyId(v interface{}) { - o.KeyId = v +// SetFlow gets a reference to the given interface{} and assigns it to the Flow field. +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetFlow(v interface{}) { + o.Flow = v } -// GetPaymentId returns the PaymentId field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentId() interface{} { +// GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetStatus() interface{} { if o == nil { var ret interface{} return ret } - return o.PaymentId + return o.Status } -// GetPaymentIdOk returns a tuple with the PaymentId field value if set, nil otherwise +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentIdOk() (*interface{}, bool) { - if o == nil || IsNil(o.PaymentId) { +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool) { + if o == nil || IsNil(o.Status) { return nil, false } - return &o.PaymentId, true + return &o.Status, true } -// HasPaymentId returns a boolean if a field has been set. -func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) HasPaymentId() bool { - if o != nil && IsNil(o.PaymentId) { +// HasStatus returns a boolean if a field has been set. +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) HasStatus() bool { + if o != nil && IsNil(o.Status) { return true } return false } -// SetPaymentId gets a reference to the given interface{} and assigns it to the PaymentId field. -func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetPaymentId(v interface{}) { - o.PaymentId = v +// SetStatus gets a reference to the given interface{} and assigns it to the Status field. +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetStatus(v interface{}) { + o.Status = v } // GetRedirectUrl returns the RedirectUrl field value if set, zero value otherwise (both if not set or set to explicit null). @@ -189,6 +195,105 @@ func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetRedir o.RedirectUrl = v } +// GetPaymentUrl returns the PaymentUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentUrl() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PaymentUrl +} + +// GetPaymentUrlOk returns a tuple with the PaymentUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentUrlOk() (*interface{}, bool) { + if o == nil || IsNil(o.PaymentUrl) { + return nil, false + } + return &o.PaymentUrl, true +} + +// HasPaymentUrl returns a boolean if a field has been set. +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) HasPaymentUrl() bool { + if o != nil && IsNil(o.PaymentUrl) { + return true + } + + return false +} + +// SetPaymentUrl gets a reference to the given interface{} and assigns it to the PaymentUrl field. +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetPaymentUrl(v interface{}) { + o.PaymentUrl = v +} + +// GetPaymentResponse returns the PaymentResponse field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentResponse() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PaymentResponse +} + +// GetPaymentResponseOk returns a tuple with the PaymentResponse field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentResponseOk() (*interface{}, bool) { + if o == nil || IsNil(o.PaymentResponse) { + return nil, false + } + return &o.PaymentResponse, true +} + +// HasPaymentResponse returns a boolean if a field has been set. +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) HasPaymentResponse() bool { + if o != nil && IsNil(o.PaymentResponse) { + return true + } + + return false +} + +// SetPaymentResponse gets a reference to the given interface{} and assigns it to the PaymentResponse field. +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetPaymentResponse(v interface{}) { + o.PaymentResponse = v +} + +// GetPaymentInstrument returns the PaymentInstrument field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentInstrument() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PaymentInstrument +} + +// GetPaymentInstrumentOk returns a tuple with the PaymentInstrument field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetPaymentInstrumentOk() (*interface{}, bool) { + if o == nil || IsNil(o.PaymentInstrument) { + return nil, false + } + return &o.PaymentInstrument, true +} + +// HasPaymentInstrument returns a boolean if a field has been set. +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) HasPaymentInstrument() bool { + if o != nil && IsNil(o.PaymentInstrument) { + return true + } + + return false +} + +// SetPaymentInstrument gets a reference to the given interface{} and assigns it to the PaymentInstrument field. +func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) SetPaymentInstrument(v interface{}) { + o.PaymentInstrument = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -364,18 +469,27 @@ func (o GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) MarshalJS func (o GETSatispayPaymentsSatispayPaymentId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.Token != nil { - toSerialize["token"] = o.Token - } - if o.KeyId != nil { - toSerialize["key_id"] = o.KeyId - } if o.PaymentId != nil { toSerialize["payment_id"] = o.PaymentId } + if o.Flow != nil { + toSerialize["flow"] = o.Flow + } + if o.Status != nil { + toSerialize["status"] = o.Status + } if o.RedirectUrl != nil { toSerialize["redirect_url"] = o.RedirectUrl } + if o.PaymentUrl != nil { + toSerialize["payment_url"] = o.PaymentUrl + } + if o.PaymentResponse != nil { + toSerialize["payment_response"] = o.PaymentResponse + } + if o.PaymentInstrument != nil { + toSerialize["payment_instrument"] = o.PaymentInstrument + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_shipments_200_response.go b/api/model_get_shipments_200_response.go index 41cb9a83..c2cfaf04 100644 --- a/api/model_get_shipments_200_response.go +++ b/api/model_get_shipments_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_shipments_shipment_id_200_response.go b/api/model_get_shipments_shipment_id_200_response.go index 392539d2..af236638 100644 --- a/api/model_get_shipments_shipment_id_200_response.go +++ b/api/model_get_shipments_shipment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_shipments_shipment_id_200_response_data.go b/api/model_get_shipments_shipment_id_200_response_data.go index d03e5260..3575c500 100644 --- a/api/model_get_shipments_shipment_id_200_response_data.go +++ b/api/model_get_shipments_shipment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type GETShipmentsShipmentId200ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *GETShipmentsShipmentId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *GETShipmentsShipmentId200ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *GETShipmentsShipmentId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTShipments201ResponseDataRelationships `json:"relationships,omitempty"` } // NewGETShipmentsShipmentId200ResponseData instantiates a new GETShipmentsShipmentId200ResponseData object @@ -177,9 +177,9 @@ func (o *GETShipmentsShipmentId200ResponseData) SetAttributes(v GETShipmentsShip } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseData) GetRelationships() GETShipmentsShipmentId200ResponseDataRelationships { +func (o *GETShipmentsShipmentId200ResponseData) GetRelationships() POSTShipments201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret GETShipmentsShipmentId200ResponseDataRelationships + var ret POSTShipments201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *GETShipmentsShipmentId200ResponseData) GetRelationships() GETShipmentsS // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseData) GetRelationshipsOk() (*GETShipmentsShipmentId200ResponseDataRelationships, bool) { +func (o *GETShipmentsShipmentId200ResponseData) GetRelationshipsOk() (*POSTShipments201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *GETShipmentsShipmentId200ResponseData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given GETShipmentsShipmentId200ResponseDataRelationships and assigns it to the Relationships field. -func (o *GETShipmentsShipmentId200ResponseData) SetRelationships(v GETShipmentsShipmentId200ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTShipments201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETShipmentsShipmentId200ResponseData) SetRelationships(v POSTShipments201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_get_shipments_shipment_id_200_response_data_attributes.go b/api/model_get_shipments_shipment_id_200_response_data_attributes.go index 3534f168..9f7bf301 100644 --- a/api/model_get_shipments_shipment_id_200_response_data_attributes.go +++ b/api/model_get_shipments_shipment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,9 @@ var _ MappedNullable = &GETShipmentsShipmentId200ResponseDataAttributes{} // GETShipmentsShipmentId200ResponseDataAttributes struct for GETShipmentsShipmentId200ResponseDataAttributes type GETShipmentsShipmentId200ResponseDataAttributes struct { - // Unique identifier for the shipment + // Unique identifier for the shipment. Cannot be passed by sales channels. Number interface{} `json:"number,omitempty"` - // The shipment status, one of 'draft', 'upcoming', 'cancelled', 'on_hold', 'picking', 'packing', 'ready_to_ship', or 'shipped' + // The shipment status. One of 'draft' (default), 'upcoming', 'cancelled', 'on_hold', 'picking', 'packing', 'ready_to_ship', 'shipped', or 'delivered'. Status interface{} `json:"status,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the associated order. CurrencyCode interface{} `json:"currency_code,omitempty"` @@ -54,13 +54,23 @@ type GETShipmentsShipmentId200ResponseDataAttributes struct { PurchaseCompletedAt interface{} `json:"purchase_completed_at,omitempty"` // Time at which the purchasing of the shipping rate failed. PurchaseFailedAt interface{} `json:"purchase_failed_at,omitempty"` + // Time at which the shipment was put on hold. + OnHoldAt interface{} `json:"on_hold_at,omitempty"` + // Time at which the shipment was picking. + PickingAt interface{} `json:"picking_at,omitempty"` + // Time at which the shipment was packing. + PackingAt interface{} `json:"packing_at,omitempty"` + // Time at which the shipment was ready to ship. + ReadyToShipAt interface{} `json:"ready_to_ship_at,omitempty"` + // Time at which the shipment was shipped. + ShippedAt interface{} `json:"shipped_at,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -644,6 +654,171 @@ func (o *GETShipmentsShipmentId200ResponseDataAttributes) SetPurchaseFailedAt(v o.PurchaseFailedAt = v } +// GetOnHoldAt returns the OnHoldAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetOnHoldAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.OnHoldAt +} + +// GetOnHoldAtOk returns a tuple with the OnHoldAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetOnHoldAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.OnHoldAt) { + return nil, false + } + return &o.OnHoldAt, true +} + +// HasOnHoldAt returns a boolean if a field has been set. +func (o *GETShipmentsShipmentId200ResponseDataAttributes) HasOnHoldAt() bool { + if o != nil && IsNil(o.OnHoldAt) { + return true + } + + return false +} + +// SetOnHoldAt gets a reference to the given interface{} and assigns it to the OnHoldAt field. +func (o *GETShipmentsShipmentId200ResponseDataAttributes) SetOnHoldAt(v interface{}) { + o.OnHoldAt = v +} + +// GetPickingAt returns the PickingAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetPickingAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PickingAt +} + +// GetPickingAtOk returns a tuple with the PickingAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetPickingAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.PickingAt) { + return nil, false + } + return &o.PickingAt, true +} + +// HasPickingAt returns a boolean if a field has been set. +func (o *GETShipmentsShipmentId200ResponseDataAttributes) HasPickingAt() bool { + if o != nil && IsNil(o.PickingAt) { + return true + } + + return false +} + +// SetPickingAt gets a reference to the given interface{} and assigns it to the PickingAt field. +func (o *GETShipmentsShipmentId200ResponseDataAttributes) SetPickingAt(v interface{}) { + o.PickingAt = v +} + +// GetPackingAt returns the PackingAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetPackingAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PackingAt +} + +// GetPackingAtOk returns a tuple with the PackingAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetPackingAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.PackingAt) { + return nil, false + } + return &o.PackingAt, true +} + +// HasPackingAt returns a boolean if a field has been set. +func (o *GETShipmentsShipmentId200ResponseDataAttributes) HasPackingAt() bool { + if o != nil && IsNil(o.PackingAt) { + return true + } + + return false +} + +// SetPackingAt gets a reference to the given interface{} and assigns it to the PackingAt field. +func (o *GETShipmentsShipmentId200ResponseDataAttributes) SetPackingAt(v interface{}) { + o.PackingAt = v +} + +// GetReadyToShipAt returns the ReadyToShipAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetReadyToShipAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReadyToShipAt +} + +// GetReadyToShipAtOk returns a tuple with the ReadyToShipAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetReadyToShipAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReadyToShipAt) { + return nil, false + } + return &o.ReadyToShipAt, true +} + +// HasReadyToShipAt returns a boolean if a field has been set. +func (o *GETShipmentsShipmentId200ResponseDataAttributes) HasReadyToShipAt() bool { + if o != nil && IsNil(o.ReadyToShipAt) { + return true + } + + return false +} + +// SetReadyToShipAt gets a reference to the given interface{} and assigns it to the ReadyToShipAt field. +func (o *GETShipmentsShipmentId200ResponseDataAttributes) SetReadyToShipAt(v interface{}) { + o.ReadyToShipAt = v +} + +// GetShippedAt returns the ShippedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetShippedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ShippedAt +} + +// GetShippedAtOk returns a tuple with the ShippedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetShippedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.ShippedAt) { + return nil, false + } + return &o.ShippedAt, true +} + +// HasShippedAt returns a boolean if a field has been set. +func (o *GETShipmentsShipmentId200ResponseDataAttributes) HasShippedAt() bool { + if o != nil && IsNil(o.ShippedAt) { + return true + } + + return false +} + +// SetShippedAt gets a reference to the given interface{} and assigns it to the ShippedAt field. +func (o *GETShipmentsShipmentId200ResponseDataAttributes) SetShippedAt(v interface{}) { + o.ShippedAt = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETShipmentsShipmentId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -870,6 +1045,21 @@ func (o GETShipmentsShipmentId200ResponseDataAttributes) ToMap() (map[string]int if o.PurchaseFailedAt != nil { toSerialize["purchase_failed_at"] = o.PurchaseFailedAt } + if o.OnHoldAt != nil { + toSerialize["on_hold_at"] = o.OnHoldAt + } + if o.PickingAt != nil { + toSerialize["picking_at"] = o.PickingAt + } + if o.PackingAt != nil { + toSerialize["packing_at"] = o.PackingAt + } + if o.ReadyToShipAt != nil { + toSerialize["ready_to_ship_at"] = o.ReadyToShipAt + } + if o.ShippedAt != nil { + toSerialize["shipped_at"] = o.ShippedAt + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_shipments_shipment_id_200_response_data_relationships.go b/api/model_get_shipments_shipment_id_200_response_data_relationships.go deleted file mode 100644 index 255782f9..00000000 --- a/api/model_get_shipments_shipment_id_200_response_data_relationships.go +++ /dev/null @@ -1,629 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the GETShipmentsShipmentId200ResponseDataRelationships type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GETShipmentsShipmentId200ResponseDataRelationships{} - -// GETShipmentsShipmentId200ResponseDataRelationships struct for GETShipmentsShipmentId200ResponseDataRelationships -type GETShipmentsShipmentId200ResponseDataRelationships struct { - Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` - ShippingCategory *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory `json:"shipping_category,omitempty"` - StockLocation *POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation `json:"stock_location,omitempty"` - OriginAddress *POSTReturns201ResponseDataRelationshipsOriginAddress `json:"origin_address,omitempty"` - ShippingAddress *POSTOrders201ResponseDataRelationshipsShippingAddress `json:"shipping_address,omitempty"` - ShippingMethod *POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod `json:"shipping_method,omitempty"` - DeliveryLeadTime *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime `json:"delivery_lead_time,omitempty"` - ShipmentLineItems *POSTLineItems201ResponseDataRelationshipsShipmentLineItems `json:"shipment_line_items,omitempty"` - StockLineItems *POSTLineItems201ResponseDataRelationshipsStockLineItems `json:"stock_line_items,omitempty"` - StockTransfers *POSTLineItems201ResponseDataRelationshipsStockTransfers `json:"stock_transfers,omitempty"` - AvailableShippingMethods *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods `json:"available_shipping_methods,omitempty"` - CarrierAccounts *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts `json:"carrier_accounts,omitempty"` - Parcels *POSTPackages201ResponseDataRelationshipsParcels `json:"parcels,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` -} - -// NewGETShipmentsShipmentId200ResponseDataRelationships instantiates a new GETShipmentsShipmentId200ResponseDataRelationships object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGETShipmentsShipmentId200ResponseDataRelationships() *GETShipmentsShipmentId200ResponseDataRelationships { - this := GETShipmentsShipmentId200ResponseDataRelationships{} - return &this -} - -// NewGETShipmentsShipmentId200ResponseDataRelationshipsWithDefaults instantiates a new GETShipmentsShipmentId200ResponseDataRelationships object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGETShipmentsShipmentId200ResponseDataRelationshipsWithDefaults() *GETShipmentsShipmentId200ResponseDataRelationships { - this := GETShipmentsShipmentId200ResponseDataRelationships{} - return &this -} - -// GetOrder returns the Order field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetOrder() POSTAdyenPayments201ResponseDataRelationshipsOrder { - if o == nil || IsNil(o.Order) { - var ret POSTAdyenPayments201ResponseDataRelationshipsOrder - return ret - } - return *o.Order -} - -// GetOrderOk returns a tuple with the Order field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetOrderOk() (*POSTAdyenPayments201ResponseDataRelationshipsOrder, bool) { - if o == nil || IsNil(o.Order) { - return nil, false - } - return o.Order, true -} - -// HasOrder returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasOrder() bool { - if o != nil && !IsNil(o.Order) { - return true - } - - return false -} - -// SetOrder gets a reference to the given POSTAdyenPayments201ResponseDataRelationshipsOrder and assigns it to the Order field. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetOrder(v POSTAdyenPayments201ResponseDataRelationshipsOrder) { - o.Order = &v -} - -// GetShippingCategory returns the ShippingCategory field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetShippingCategory() GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory { - if o == nil || IsNil(o.ShippingCategory) { - var ret GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory - return ret - } - return *o.ShippingCategory -} - -// GetShippingCategoryOk returns a tuple with the ShippingCategory field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetShippingCategoryOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory, bool) { - if o == nil || IsNil(o.ShippingCategory) { - return nil, false - } - return o.ShippingCategory, true -} - -// HasShippingCategory returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasShippingCategory() bool { - if o != nil && !IsNil(o.ShippingCategory) { - return true - } - - return false -} - -// SetShippingCategory gets a reference to the given GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory and assigns it to the ShippingCategory field. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetShippingCategory(v GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) { - o.ShippingCategory = &v -} - -// GetStockLocation returns the StockLocation field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetStockLocation() POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation { - if o == nil || IsNil(o.StockLocation) { - var ret POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation - return ret - } - return *o.StockLocation -} - -// GetStockLocationOk returns a tuple with the StockLocation field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetStockLocationOk() (*POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation, bool) { - if o == nil || IsNil(o.StockLocation) { - return nil, false - } - return o.StockLocation, true -} - -// HasStockLocation returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasStockLocation() bool { - if o != nil && !IsNil(o.StockLocation) { - return true - } - - return false -} - -// SetStockLocation gets a reference to the given POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation and assigns it to the StockLocation field. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetStockLocation(v POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation) { - o.StockLocation = &v -} - -// GetOriginAddress returns the OriginAddress field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetOriginAddress() POSTReturns201ResponseDataRelationshipsOriginAddress { - if o == nil || IsNil(o.OriginAddress) { - var ret POSTReturns201ResponseDataRelationshipsOriginAddress - return ret - } - return *o.OriginAddress -} - -// GetOriginAddressOk returns a tuple with the OriginAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetOriginAddressOk() (*POSTReturns201ResponseDataRelationshipsOriginAddress, bool) { - if o == nil || IsNil(o.OriginAddress) { - return nil, false - } - return o.OriginAddress, true -} - -// HasOriginAddress returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasOriginAddress() bool { - if o != nil && !IsNil(o.OriginAddress) { - return true - } - - return false -} - -// SetOriginAddress gets a reference to the given POSTReturns201ResponseDataRelationshipsOriginAddress and assigns it to the OriginAddress field. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetOriginAddress(v POSTReturns201ResponseDataRelationshipsOriginAddress) { - o.OriginAddress = &v -} - -// GetShippingAddress returns the ShippingAddress field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetShippingAddress() POSTOrders201ResponseDataRelationshipsShippingAddress { - if o == nil || IsNil(o.ShippingAddress) { - var ret POSTOrders201ResponseDataRelationshipsShippingAddress - return ret - } - return *o.ShippingAddress -} - -// GetShippingAddressOk returns a tuple with the ShippingAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetShippingAddressOk() (*POSTOrders201ResponseDataRelationshipsShippingAddress, bool) { - if o == nil || IsNil(o.ShippingAddress) { - return nil, false - } - return o.ShippingAddress, true -} - -// HasShippingAddress returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasShippingAddress() bool { - if o != nil && !IsNil(o.ShippingAddress) { - return true - } - - return false -} - -// SetShippingAddress gets a reference to the given POSTOrders201ResponseDataRelationshipsShippingAddress and assigns it to the ShippingAddress field. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetShippingAddress(v POSTOrders201ResponseDataRelationshipsShippingAddress) { - o.ShippingAddress = &v -} - -// GetShippingMethod returns the ShippingMethod field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetShippingMethod() POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod { - if o == nil || IsNil(o.ShippingMethod) { - var ret POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod - return ret - } - return *o.ShippingMethod -} - -// GetShippingMethodOk returns a tuple with the ShippingMethod field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetShippingMethodOk() (*POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod, bool) { - if o == nil || IsNil(o.ShippingMethod) { - return nil, false - } - return o.ShippingMethod, true -} - -// HasShippingMethod returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasShippingMethod() bool { - if o != nil && !IsNil(o.ShippingMethod) { - return true - } - - return false -} - -// SetShippingMethod gets a reference to the given POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod and assigns it to the ShippingMethod field. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetShippingMethod(v POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod) { - o.ShippingMethod = &v -} - -// GetDeliveryLeadTime returns the DeliveryLeadTime field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetDeliveryLeadTime() GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime { - if o == nil || IsNil(o.DeliveryLeadTime) { - var ret GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime - return ret - } - return *o.DeliveryLeadTime -} - -// GetDeliveryLeadTimeOk returns a tuple with the DeliveryLeadTime field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetDeliveryLeadTimeOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime, bool) { - if o == nil || IsNil(o.DeliveryLeadTime) { - return nil, false - } - return o.DeliveryLeadTime, true -} - -// HasDeliveryLeadTime returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasDeliveryLeadTime() bool { - if o != nil && !IsNil(o.DeliveryLeadTime) { - return true - } - - return false -} - -// SetDeliveryLeadTime gets a reference to the given GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime and assigns it to the DeliveryLeadTime field. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetDeliveryLeadTime(v GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) { - o.DeliveryLeadTime = &v -} - -// GetShipmentLineItems returns the ShipmentLineItems field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetShipmentLineItems() POSTLineItems201ResponseDataRelationshipsShipmentLineItems { - if o == nil || IsNil(o.ShipmentLineItems) { - var ret POSTLineItems201ResponseDataRelationshipsShipmentLineItems - return ret - } - return *o.ShipmentLineItems -} - -// GetShipmentLineItemsOk returns a tuple with the ShipmentLineItems field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetShipmentLineItemsOk() (*POSTLineItems201ResponseDataRelationshipsShipmentLineItems, bool) { - if o == nil || IsNil(o.ShipmentLineItems) { - return nil, false - } - return o.ShipmentLineItems, true -} - -// HasShipmentLineItems returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasShipmentLineItems() bool { - if o != nil && !IsNil(o.ShipmentLineItems) { - return true - } - - return false -} - -// SetShipmentLineItems gets a reference to the given POSTLineItems201ResponseDataRelationshipsShipmentLineItems and assigns it to the ShipmentLineItems field. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetShipmentLineItems(v POSTLineItems201ResponseDataRelationshipsShipmentLineItems) { - o.ShipmentLineItems = &v -} - -// GetStockLineItems returns the StockLineItems field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetStockLineItems() POSTLineItems201ResponseDataRelationshipsStockLineItems { - if o == nil || IsNil(o.StockLineItems) { - var ret POSTLineItems201ResponseDataRelationshipsStockLineItems - return ret - } - return *o.StockLineItems -} - -// GetStockLineItemsOk returns a tuple with the StockLineItems field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetStockLineItemsOk() (*POSTLineItems201ResponseDataRelationshipsStockLineItems, bool) { - if o == nil || IsNil(o.StockLineItems) { - return nil, false - } - return o.StockLineItems, true -} - -// HasStockLineItems returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasStockLineItems() bool { - if o != nil && !IsNil(o.StockLineItems) { - return true - } - - return false -} - -// SetStockLineItems gets a reference to the given POSTLineItems201ResponseDataRelationshipsStockLineItems and assigns it to the StockLineItems field. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetStockLineItems(v POSTLineItems201ResponseDataRelationshipsStockLineItems) { - o.StockLineItems = &v -} - -// GetStockTransfers returns the StockTransfers field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetStockTransfers() POSTLineItems201ResponseDataRelationshipsStockTransfers { - if o == nil || IsNil(o.StockTransfers) { - var ret POSTLineItems201ResponseDataRelationshipsStockTransfers - return ret - } - return *o.StockTransfers -} - -// GetStockTransfersOk returns a tuple with the StockTransfers field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetStockTransfersOk() (*POSTLineItems201ResponseDataRelationshipsStockTransfers, bool) { - if o == nil || IsNil(o.StockTransfers) { - return nil, false - } - return o.StockTransfers, true -} - -// HasStockTransfers returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasStockTransfers() bool { - if o != nil && !IsNil(o.StockTransfers) { - return true - } - - return false -} - -// SetStockTransfers gets a reference to the given POSTLineItems201ResponseDataRelationshipsStockTransfers and assigns it to the StockTransfers field. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetStockTransfers(v POSTLineItems201ResponseDataRelationshipsStockTransfers) { - o.StockTransfers = &v -} - -// GetAvailableShippingMethods returns the AvailableShippingMethods field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetAvailableShippingMethods() GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods { - if o == nil || IsNil(o.AvailableShippingMethods) { - var ret GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods - return ret - } - return *o.AvailableShippingMethods -} - -// GetAvailableShippingMethodsOk returns a tuple with the AvailableShippingMethods field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetAvailableShippingMethodsOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods, bool) { - if o == nil || IsNil(o.AvailableShippingMethods) { - return nil, false - } - return o.AvailableShippingMethods, true -} - -// HasAvailableShippingMethods returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasAvailableShippingMethods() bool { - if o != nil && !IsNil(o.AvailableShippingMethods) { - return true - } - - return false -} - -// SetAvailableShippingMethods gets a reference to the given GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods and assigns it to the AvailableShippingMethods field. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetAvailableShippingMethods(v GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) { - o.AvailableShippingMethods = &v -} - -// GetCarrierAccounts returns the CarrierAccounts field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetCarrierAccounts() GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts { - if o == nil || IsNil(o.CarrierAccounts) { - var ret GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts - return ret - } - return *o.CarrierAccounts -} - -// GetCarrierAccountsOk returns a tuple with the CarrierAccounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetCarrierAccountsOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts, bool) { - if o == nil || IsNil(o.CarrierAccounts) { - return nil, false - } - return o.CarrierAccounts, true -} - -// HasCarrierAccounts returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasCarrierAccounts() bool { - if o != nil && !IsNil(o.CarrierAccounts) { - return true - } - - return false -} - -// SetCarrierAccounts gets a reference to the given GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts and assigns it to the CarrierAccounts field. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetCarrierAccounts(v GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) { - o.CarrierAccounts = &v -} - -// GetParcels returns the Parcels field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetParcels() POSTPackages201ResponseDataRelationshipsParcels { - if o == nil || IsNil(o.Parcels) { - var ret POSTPackages201ResponseDataRelationshipsParcels - return ret - } - return *o.Parcels -} - -// GetParcelsOk returns a tuple with the Parcels field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetParcelsOk() (*POSTPackages201ResponseDataRelationshipsParcels, bool) { - if o == nil || IsNil(o.Parcels) { - return nil, false - } - return o.Parcels, true -} - -// HasParcels returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasParcels() bool { - if o != nil && !IsNil(o.Parcels) { - return true - } - - return false -} - -// SetParcels gets a reference to the given POSTPackages201ResponseDataRelationshipsParcels and assigns it to the Parcels field. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetParcels(v POSTPackages201ResponseDataRelationshipsParcels) { - o.Parcels = &v -} - -// GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { - if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments - return ret - } - return *o.Attachments -} - -// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { - if o == nil || IsNil(o.Attachments) { - return nil, false - } - return o.Attachments, true -} - -// HasAttachments returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasAttachments() bool { - if o != nil && !IsNil(o.Attachments) { - return true - } - - return false -} - -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { - o.Attachments = &v -} - -// GetEvents returns the Events field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { - if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents - return ret - } - return *o.Events -} - -// GetEventsOk returns a tuple with the Events field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { - if o == nil || IsNil(o.Events) { - return nil, false - } - return o.Events, true -} - -// HasEvents returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) HasEvents() bool { - if o != nil && !IsNil(o.Events) { - return true - } - - return false -} - -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *GETShipmentsShipmentId200ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { - o.Events = &v -} - -func (o GETShipmentsShipmentId200ResponseDataRelationships) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GETShipmentsShipmentId200ResponseDataRelationships) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Order) { - toSerialize["order"] = o.Order - } - if !IsNil(o.ShippingCategory) { - toSerialize["shipping_category"] = o.ShippingCategory - } - if !IsNil(o.StockLocation) { - toSerialize["stock_location"] = o.StockLocation - } - if !IsNil(o.OriginAddress) { - toSerialize["origin_address"] = o.OriginAddress - } - if !IsNil(o.ShippingAddress) { - toSerialize["shipping_address"] = o.ShippingAddress - } - if !IsNil(o.ShippingMethod) { - toSerialize["shipping_method"] = o.ShippingMethod - } - if !IsNil(o.DeliveryLeadTime) { - toSerialize["delivery_lead_time"] = o.DeliveryLeadTime - } - if !IsNil(o.ShipmentLineItems) { - toSerialize["shipment_line_items"] = o.ShipmentLineItems - } - if !IsNil(o.StockLineItems) { - toSerialize["stock_line_items"] = o.StockLineItems - } - if !IsNil(o.StockTransfers) { - toSerialize["stock_transfers"] = o.StockTransfers - } - if !IsNil(o.AvailableShippingMethods) { - toSerialize["available_shipping_methods"] = o.AvailableShippingMethods - } - if !IsNil(o.CarrierAccounts) { - toSerialize["carrier_accounts"] = o.CarrierAccounts - } - if !IsNil(o.Parcels) { - toSerialize["parcels"] = o.Parcels - } - if !IsNil(o.Attachments) { - toSerialize["attachments"] = o.Attachments - } - if !IsNil(o.Events) { - toSerialize["events"] = o.Events - } - return toSerialize, nil -} - -type NullableGETShipmentsShipmentId200ResponseDataRelationships struct { - value *GETShipmentsShipmentId200ResponseDataRelationships - isSet bool -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationships) Get() *GETShipmentsShipmentId200ResponseDataRelationships { - return v.value -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationships) Set(val *GETShipmentsShipmentId200ResponseDataRelationships) { - v.value = val - v.isSet = true -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationships) IsSet() bool { - return v.isSet -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationships) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGETShipmentsShipmentId200ResponseDataRelationships(val *GETShipmentsShipmentId200ResponseDataRelationships) *NullableGETShipmentsShipmentId200ResponseDataRelationships { - return &NullableGETShipmentsShipmentId200ResponseDataRelationships{value: val, isSet: true} -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationships) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationships) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_get_shipments_shipment_id_200_response_data_relationships_available_shipping_methods.go b/api/model_get_shipments_shipment_id_200_response_data_relationships_available_shipping_methods.go deleted file mode 100644 index 33aa0218..00000000 --- a/api/model_get_shipments_shipment_id_200_response_data_relationships_available_shipping_methods.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods{} - -// GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods struct for GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods -type GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods struct { - Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` - Data *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData `json:"data,omitempty"` -} - -// NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods() *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods { - this := GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods{} - return &this -} - -// NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsWithDefaults instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsWithDefaults() *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods { - this := GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods{} - return &this -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { - if o == nil || IsNil(o.Links) { - var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { - o.Links = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) GetData() GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData { - if o == nil || IsNil(o.Data) { - var ret GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) GetDataOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData and assigns it to the Data field. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) SetData(v GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) { - o.Data = &v -} - -func (o GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods struct { - value *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods - isSet bool -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) Get() *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods { - return v.value -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) Set(val *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) { - v.value = val - v.isSet = true -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) IsSet() bool { - return v.isSet -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods(val *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) *NullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods { - return &NullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods{value: val, isSet: true} -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethods) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_get_shipments_shipment_id_200_response_data_relationships_available_shipping_methods_data.go b/api/model_get_shipments_shipment_id_200_response_data_relationships_available_shipping_methods_data.go deleted file mode 100644 index 6812718d..00000000 --- a/api/model_get_shipments_shipment_id_200_response_data_relationships_available_shipping_methods_data.go +++ /dev/null @@ -1,165 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData{} - -// GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData struct for GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData -type GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData struct { - // The resource's type - Type interface{} `json:"type,omitempty"` - // The resource ID - Id interface{} `json:"id,omitempty"` -} - -// NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData() *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData { - this := GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData{} - return &this -} - -// NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsDataWithDefaults instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsDataWithDefaults() *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData { - this := GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) GetType() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) GetTypeOk() (*interface{}, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return &o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) HasType() bool { - if o != nil && IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) SetType(v interface{}) { - o.Type = v -} - -// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) GetId() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) GetIdOk() (*interface{}, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return &o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) HasId() bool { - if o != nil && IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) SetId(v interface{}) { - o.Id = v -} - -func (o GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if o.Type != nil { - toSerialize["type"] = o.Type - } - if o.Id != nil { - toSerialize["id"] = o.Id - } - return toSerialize, nil -} - -type NullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData struct { - value *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData - isSet bool -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) Get() *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData { - return v.value -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) Set(val *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) { - v.value = val - v.isSet = true -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) IsSet() bool { - return v.isSet -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData(val *GETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) *NullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData { - return &NullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData{value: val, isSet: true} -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsAvailableShippingMethodsData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_get_shipments_shipment_id_200_response_data_relationships_carrier_accounts.go b/api/model_get_shipments_shipment_id_200_response_data_relationships_carrier_accounts.go deleted file mode 100644 index 1f5f05d4..00000000 --- a/api/model_get_shipments_shipment_id_200_response_data_relationships_carrier_accounts.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts{} - -// GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts struct for GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts -type GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts struct { - Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` - Data *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData `json:"data,omitempty"` -} - -// NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts() *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts { - this := GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts{} - return &this -} - -// NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsWithDefaults instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsWithDefaults() *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts { - this := GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts{} - return &this -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { - if o == nil || IsNil(o.Links) { - var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { - o.Links = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) GetData() GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData { - if o == nil || IsNil(o.Data) { - var ret GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) GetDataOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData and assigns it to the Data field. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) SetData(v GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) { - o.Data = &v -} - -func (o GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts struct { - value *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts - isSet bool -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) Get() *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts { - return v.value -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) Set(val *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) { - v.value = val - v.isSet = true -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) IsSet() bool { - return v.isSet -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts(val *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) *NullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts { - return &NullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts{value: val, isSet: true} -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccounts) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_get_shipments_shipment_id_200_response_data_relationships_carrier_accounts_data.go b/api/model_get_shipments_shipment_id_200_response_data_relationships_carrier_accounts_data.go deleted file mode 100644 index 9ea4c59e..00000000 --- a/api/model_get_shipments_shipment_id_200_response_data_relationships_carrier_accounts_data.go +++ /dev/null @@ -1,165 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData{} - -// GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData struct for GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData -type GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData struct { - // The resource's type - Type interface{} `json:"type,omitempty"` - // The resource ID - Id interface{} `json:"id,omitempty"` -} - -// NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData() *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData { - this := GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData{} - return &this -} - -// NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsDataWithDefaults instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsDataWithDefaults() *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData { - this := GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) GetType() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) GetTypeOk() (*interface{}, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return &o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) HasType() bool { - if o != nil && IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) SetType(v interface{}) { - o.Type = v -} - -// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) GetId() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) GetIdOk() (*interface{}, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return &o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) HasId() bool { - if o != nil && IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) SetId(v interface{}) { - o.Id = v -} - -func (o GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if o.Type != nil { - toSerialize["type"] = o.Type - } - if o.Id != nil { - toSerialize["id"] = o.Id - } - return toSerialize, nil -} - -type NullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData struct { - value *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData - isSet bool -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) Get() *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData { - return v.value -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) Set(val *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) { - v.value = val - v.isSet = true -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) IsSet() bool { - return v.isSet -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData(val *GETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) *NullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData { - return &NullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData{value: val, isSet: true} -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsCarrierAccountsData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_get_shipments_shipment_id_200_response_data_relationships_delivery_lead_time.go b/api/model_get_shipments_shipment_id_200_response_data_relationships_delivery_lead_time.go deleted file mode 100644 index 291150fa..00000000 --- a/api/model_get_shipments_shipment_id_200_response_data_relationships_delivery_lead_time.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime{} - -// GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime struct for GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime -type GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime struct { - Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` - Data *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData `json:"data,omitempty"` -} - -// NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime() *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime { - this := GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime{} - return &this -} - -// NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeWithDefaults instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeWithDefaults() *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime { - this := GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime{} - return &this -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { - if o == nil || IsNil(o.Links) { - var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { - o.Links = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) GetData() GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData { - if o == nil || IsNil(o.Data) { - var ret GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) GetDataOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData and assigns it to the Data field. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) SetData(v GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) { - o.Data = &v -} - -func (o GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime struct { - value *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime - isSet bool -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) Get() *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime { - return v.value -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) Set(val *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) { - v.value = val - v.isSet = true -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) IsSet() bool { - return v.isSet -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime(val *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) *NullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime { - return &NullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime{value: val, isSet: true} -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTime) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_get_shipments_shipment_id_200_response_data_relationships_delivery_lead_time_data.go b/api/model_get_shipments_shipment_id_200_response_data_relationships_delivery_lead_time_data.go deleted file mode 100644 index 628acec3..00000000 --- a/api/model_get_shipments_shipment_id_200_response_data_relationships_delivery_lead_time_data.go +++ /dev/null @@ -1,165 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData{} - -// GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData struct for GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData -type GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData struct { - // The resource's type - Type interface{} `json:"type,omitempty"` - // The resource ID - Id interface{} `json:"id,omitempty"` -} - -// NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData() *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData { - this := GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData{} - return &this -} - -// NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeDataWithDefaults instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeDataWithDefaults() *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData { - this := GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) GetType() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) GetTypeOk() (*interface{}, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return &o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) HasType() bool { - if o != nil && IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) SetType(v interface{}) { - o.Type = v -} - -// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) GetId() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) GetIdOk() (*interface{}, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return &o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) HasId() bool { - if o != nil && IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) SetId(v interface{}) { - o.Id = v -} - -func (o GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if o.Type != nil { - toSerialize["type"] = o.Type - } - if o.Id != nil { - toSerialize["id"] = o.Id - } - return toSerialize, nil -} - -type NullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData struct { - value *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData - isSet bool -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) Get() *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData { - return v.value -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) Set(val *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) { - v.value = val - v.isSet = true -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) IsSet() bool { - return v.isSet -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData(val *GETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) *NullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData { - return &NullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData{value: val, isSet: true} -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsDeliveryLeadTimeData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_get_shipments_shipment_id_200_response_data_relationships_shipping_category.go b/api/model_get_shipments_shipment_id_200_response_data_relationships_shipping_category.go deleted file mode 100644 index 081978a9..00000000 --- a/api/model_get_shipments_shipment_id_200_response_data_relationships_shipping_category.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory{} - -// GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory struct for GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory -type GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory struct { - Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` - Data *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData `json:"data,omitempty"` -} - -// NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory() *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory { - this := GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory{} - return &this -} - -// NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryWithDefaults instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryWithDefaults() *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory { - this := GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory{} - return &this -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { - if o == nil || IsNil(o.Links) { - var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { - o.Links = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) GetData() GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData { - if o == nil || IsNil(o.Data) { - var ret GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) GetDataOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData and assigns it to the Data field. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) SetData(v GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) { - o.Data = &v -} - -func (o GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory struct { - value *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory - isSet bool -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) Get() *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory { - return v.value -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) Set(val *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) { - v.value = val - v.isSet = true -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) IsSet() bool { - return v.isSet -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory(val *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) *NullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory { - return &NullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory{value: val, isSet: true} -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_get_shipments_shipment_id_200_response_data_relationships_shipping_category_data.go b/api/model_get_shipments_shipment_id_200_response_data_relationships_shipping_category_data.go deleted file mode 100644 index be77d0c8..00000000 --- a/api/model_get_shipments_shipment_id_200_response_data_relationships_shipping_category_data.go +++ /dev/null @@ -1,165 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData{} - -// GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData struct for GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData -type GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData struct { - // The resource's type - Type interface{} `json:"type,omitempty"` - // The resource ID - Id interface{} `json:"id,omitempty"` -} - -// NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData() *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData { - this := GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData{} - return &this -} - -// NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryDataWithDefaults instantiates a new GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryDataWithDefaults() *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData { - this := GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) GetType() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) GetTypeOk() (*interface{}, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return &o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) HasType() bool { - if o != nil && IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) SetType(v interface{}) { - o.Type = v -} - -// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) GetId() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) GetIdOk() (*interface{}, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return &o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) HasId() bool { - if o != nil && IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) SetId(v interface{}) { - o.Id = v -} - -func (o GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if o.Type != nil { - toSerialize["type"] = o.Type - } - if o.Id != nil { - toSerialize["id"] = o.Id - } - return toSerialize, nil -} - -type NullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData struct { - value *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData - isSet bool -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) Get() *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData { - return v.value -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) Set(val *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) { - v.value = val - v.isSet = true -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) IsSet() bool { - return v.isSet -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData(val *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) *NullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData { - return &NullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData{value: val, isSet: true} -} - -func (v NullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGETShipmentsShipmentId200ResponseDataRelationshipsShippingCategoryData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_get_shipping_categories_200_response.go b/api/model_get_shipping_categories_200_response.go index afa4c922..b02ed96f 100644 --- a/api/model_get_shipping_categories_200_response.go +++ b/api/model_get_shipping_categories_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_shipping_categories_shipping_category_id_200_response.go b/api/model_get_shipping_categories_shipping_category_id_200_response.go index e4532766..57edff81 100644 --- a/api/model_get_shipping_categories_shipping_category_id_200_response.go +++ b/api/model_get_shipping_categories_shipping_category_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_shipping_categories_shipping_category_id_200_response_data.go b/api/model_get_shipping_categories_shipping_category_id_200_response_data.go index baf42f20..53186cd4 100644 --- a/api/model_get_shipping_categories_shipping_category_id_200_response_data.go +++ b/api/model_get_shipping_categories_shipping_category_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_shipping_categories_shipping_category_id_200_response_data_attributes.go b/api/model_get_shipping_categories_shipping_category_id_200_response_data_attributes.go index 3cb32f5a..1d20bda8 100644 --- a/api/model_get_shipping_categories_shipping_category_id_200_response_data_attributes.go +++ b/api/model_get_shipping_categories_shipping_category_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,13 +22,15 @@ var _ MappedNullable = &GETShippingCategoriesShippingCategoryId200ResponseDataAt type GETShippingCategoriesShippingCategoryId200ResponseDataAttributes struct { // The shipping category name. Name interface{} `json:"name,omitempty"` + // A string that you can use to identify the shipping category (must be unique within the environment). + Code interface{} `json:"code,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -84,6 +86,39 @@ func (o *GETShippingCategoriesShippingCategoryId200ResponseDataAttributes) SetNa o.Name = v } +// GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETShippingCategoriesShippingCategoryId200ResponseDataAttributes) GetCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETShippingCategoriesShippingCategoryId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return &o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *GETShippingCategoriesShippingCategoryId200ResponseDataAttributes) HasCode() bool { + if o != nil && IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given interface{} and assigns it to the Code field. +func (o *GETShippingCategoriesShippingCategoryId200ResponseDataAttributes) SetCode(v interface{}) { + o.Code = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETShippingCategoriesShippingCategoryId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -262,6 +297,9 @@ func (o GETShippingCategoriesShippingCategoryId200ResponseDataAttributes) ToMap( if o.Name != nil { toSerialize["name"] = o.Name } + if o.Code != nil { + toSerialize["code"] = o.Code + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_shipping_method_tiers_200_response.go b/api/model_get_shipping_method_tiers_200_response.go index 0b3fd7a3..be22582c 100644 --- a/api/model_get_shipping_method_tiers_200_response.go +++ b/api/model_get_shipping_method_tiers_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_shipping_method_tiers_shipping_method_tier_id_200_response.go b/api/model_get_shipping_method_tiers_shipping_method_tier_id_200_response.go index ff89fb64..0eb99421 100644 --- a/api/model_get_shipping_method_tiers_shipping_method_tier_id_200_response.go +++ b/api/model_get_shipping_method_tiers_shipping_method_tier_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_shipping_method_tiers_shipping_method_tier_id_200_response_data.go b/api/model_get_shipping_method_tiers_shipping_method_tier_id_200_response_data.go index 844cc840..8f981fa7 100644 --- a/api/model_get_shipping_method_tiers_shipping_method_tier_id_200_response_data.go +++ b/api/model_get_shipping_method_tiers_shipping_method_tier_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_shipping_method_tiers_shipping_method_tier_id_200_response_data_attributes.go b/api/model_get_shipping_method_tiers_shipping_method_tier_id_200_response_data_attributes.go index 410baa8f..f7c77251 100644 --- a/api/model_get_shipping_method_tiers_shipping_method_tier_id_200_response_data_attributes.go +++ b/api/model_get_shipping_method_tiers_shipping_method_tier_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,10 @@ var _ MappedNullable = &GETShippingMethodTiersShippingMethodTierId200ResponseDat // GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes struct for GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes type GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes struct { - // The shipping method tier's name + // The shipping method tier's name. Name interface{} `json:"name,omitempty"` + // The shipping method tier's type. + Type interface{} `json:"type,omitempty"` // The tier upper limit. When 'null' it means infinity (useful to have an always matching tier). UpTo interface{} `json:"up_to,omitempty"` // The price of this shipping method tier, in cents. @@ -36,7 +38,7 @@ type GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes struct UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -92,6 +94,39 @@ func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes) Se o.Name = v } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetUpTo returns the UpTo field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes) GetUpTo() interface{} { if o == nil { @@ -402,6 +437,9 @@ func (o GETShippingMethodTiersShippingMethodTierId200ResponseDataAttributes) ToM if o.Name != nil { toSerialize["name"] = o.Name } + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.UpTo != nil { toSerialize["up_to"] = o.UpTo } diff --git a/api/model_get_shipping_method_tiers_shipping_method_tier_id_200_response_data_relationships.go b/api/model_get_shipping_method_tiers_shipping_method_tier_id_200_response_data_relationships.go index 54ba9ecd..ad6f2472 100644 --- a/api/model_get_shipping_method_tiers_shipping_method_tier_id_200_response_data_relationships.go +++ b/api/model_get_shipping_method_tiers_shipping_method_tier_id_200_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,9 @@ var _ MappedNullable = &GETShippingMethodTiersShippingMethodTierId200ResponseDat // GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships struct for GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships type GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships struct { - ShippingMethod *POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod `json:"shipping_method,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + ShippingMethod *POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod `json:"shipping_method,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewGETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships instantiates a new GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships object @@ -74,9 +75,9 @@ func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -84,7 +85,7 @@ func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -100,11 +101,43 @@ func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o GETShippingMethodTiersShippingMethodTierId200ResponseDataRelationships) if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_get_shipping_methods_200_response.go b/api/model_get_shipping_methods_200_response.go index 3171a91d..6916a8e7 100644 --- a/api/model_get_shipping_methods_200_response.go +++ b/api/model_get_shipping_methods_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_shipping_methods_shipping_method_id_200_response.go b/api/model_get_shipping_methods_shipping_method_id_200_response.go index be476ba1..89342229 100644 --- a/api/model_get_shipping_methods_shipping_method_id_200_response.go +++ b/api/model_get_shipping_methods_shipping_method_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_shipping_methods_shipping_method_id_200_response_data.go b/api/model_get_shipping_methods_shipping_method_id_200_response_data.go index 0486465c..fbb8bef1 100644 --- a/api/model_get_shipping_methods_shipping_method_id_200_response_data.go +++ b/api/model_get_shipping_methods_shipping_method_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_shipping_methods_shipping_method_id_200_response_data_attributes.go b/api/model_get_shipping_methods_shipping_method_id_200_response_data_attributes.go index 49e4b19d..0f89b532 100644 --- a/api/model_get_shipping_methods_shipping_method_id_200_response_data_attributes.go +++ b/api/model_get_shipping_methods_shipping_method_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,14 +20,14 @@ var _ MappedNullable = &GETShippingMethodsShippingMethodId200ResponseDataAttribu // GETShippingMethodsShippingMethodId200ResponseDataAttributes struct for GETShippingMethodsShippingMethodId200ResponseDataAttributes type GETShippingMethodsShippingMethodId200ResponseDataAttributes struct { - // The shipping method's name + // The shipping method's name. Name interface{} `json:"name,omitempty"` - // The shipping method's scheme, one of 'flat' or 'weight_tiered'. + // The shipping method's scheme. One of 'flat', 'weight_tiered', or 'external'. Scheme interface{} `json:"scheme,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` - // Time at which the shipping method was disabled. - DisabledAt interface{} `json:"disabled_at,omitempty"` + // The URL used to overwrite prices by an external source. + ExternalPricesUrl interface{} `json:"external_prices_url,omitempty"` // The price of this shipping method, in cents. PriceAmountCents interface{} `json:"price_amount_cents,omitempty"` // The price of this shipping method, float. @@ -40,6 +40,8 @@ type GETShippingMethodsShippingMethodId200ResponseDataAttributes struct { FreeOverAmountFloat interface{} `json:"free_over_amount_float,omitempty"` // Apply free shipping if the order amount is over this value, formatted. FormattedFreeOverAmount interface{} `json:"formatted_free_over_amount,omitempty"` + // Send this attribute if you want to compare the free over amount with order's subtotal (excluding discounts, if any). + UseSubtotal interface{} `json:"use_subtotal,omitempty"` // The calculated price (zero or price amount) when associated to a shipment, in cents. PriceAmountForShipmentCents interface{} `json:"price_amount_for_shipment_cents,omitempty"` // The calculated price (zero or price amount) when associated to a shipment, float. @@ -50,15 +52,21 @@ type GETShippingMethodsShippingMethodId200ResponseDataAttributes struct { MinWeight interface{} `json:"min_weight,omitempty"` // The maximum weight for which this shipping method is available. MaxWeight interface{} `json:"max_weight,omitempty"` - // Can be one of 'gr', 'lb', or 'oz' + // The unit of weight. One of 'gr', 'oz', or 'lb'. UnitOfWeight interface{} `json:"unit_of_weight,omitempty"` + // Time at which this resource was disabled. + DisabledAt interface{} `json:"disabled_at,omitempty"` + // The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. + CircuitState interface{} `json:"circuit_state,omitempty"` + // The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. + CircuitFailureCount interface{} `json:"circuit_failure_count,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -180,37 +188,37 @@ func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetCurrenc o.CurrencyCode = v } -// GetDisabledAt returns the DisabledAt field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetDisabledAt() interface{} { +// GetExternalPricesUrl returns the ExternalPricesUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetExternalPricesUrl() interface{} { if o == nil { var ret interface{} return ret } - return o.DisabledAt + return o.ExternalPricesUrl } -// GetDisabledAtOk returns a tuple with the DisabledAt field value if set, nil otherwise +// GetExternalPricesUrlOk returns a tuple with the ExternalPricesUrl field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool) { - if o == nil || IsNil(o.DisabledAt) { +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetExternalPricesUrlOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExternalPricesUrl) { return nil, false } - return &o.DisabledAt, true + return &o.ExternalPricesUrl, true } -// HasDisabledAt returns a boolean if a field has been set. -func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) HasDisabledAt() bool { - if o != nil && IsNil(o.DisabledAt) { +// HasExternalPricesUrl returns a boolean if a field has been set. +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) HasExternalPricesUrl() bool { + if o != nil && IsNil(o.ExternalPricesUrl) { return true } return false } -// SetDisabledAt gets a reference to the given interface{} and assigns it to the DisabledAt field. -func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetDisabledAt(v interface{}) { - o.DisabledAt = v +// SetExternalPricesUrl gets a reference to the given interface{} and assigns it to the ExternalPricesUrl field. +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetExternalPricesUrl(v interface{}) { + o.ExternalPricesUrl = v } // GetPriceAmountCents returns the PriceAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). @@ -411,6 +419,39 @@ func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetFormatt o.FormattedFreeOverAmount = v } +// GetUseSubtotal returns the UseSubtotal field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetUseSubtotal() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UseSubtotal +} + +// GetUseSubtotalOk returns a tuple with the UseSubtotal field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetUseSubtotalOk() (*interface{}, bool) { + if o == nil || IsNil(o.UseSubtotal) { + return nil, false + } + return &o.UseSubtotal, true +} + +// HasUseSubtotal returns a boolean if a field has been set. +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) HasUseSubtotal() bool { + if o != nil && IsNil(o.UseSubtotal) { + return true + } + + return false +} + +// SetUseSubtotal gets a reference to the given interface{} and assigns it to the UseSubtotal field. +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetUseSubtotal(v interface{}) { + o.UseSubtotal = v +} + // GetPriceAmountForShipmentCents returns the PriceAmountForShipmentCents field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetPriceAmountForShipmentCents() interface{} { if o == nil { @@ -609,6 +650,105 @@ func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetUnitOfW o.UnitOfWeight = v } +// GetDisabledAt returns the DisabledAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetDisabledAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DisabledAt +} + +// GetDisabledAtOk returns a tuple with the DisabledAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.DisabledAt) { + return nil, false + } + return &o.DisabledAt, true +} + +// HasDisabledAt returns a boolean if a field has been set. +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) HasDisabledAt() bool { + if o != nil && IsNil(o.DisabledAt) { + return true + } + + return false +} + +// SetDisabledAt gets a reference to the given interface{} and assigns it to the DisabledAt field. +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetDisabledAt(v interface{}) { + o.DisabledAt = v +} + +// GetCircuitState returns the CircuitState field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetCircuitState() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CircuitState +} + +// GetCircuitStateOk returns a tuple with the CircuitState field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetCircuitStateOk() (*interface{}, bool) { + if o == nil || IsNil(o.CircuitState) { + return nil, false + } + return &o.CircuitState, true +} + +// HasCircuitState returns a boolean if a field has been set. +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) HasCircuitState() bool { + if o != nil && IsNil(o.CircuitState) { + return true + } + + return false +} + +// SetCircuitState gets a reference to the given interface{} and assigns it to the CircuitState field. +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetCircuitState(v interface{}) { + o.CircuitState = v +} + +// GetCircuitFailureCount returns the CircuitFailureCount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetCircuitFailureCount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CircuitFailureCount +} + +// GetCircuitFailureCountOk returns a tuple with the CircuitFailureCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetCircuitFailureCountOk() (*interface{}, bool) { + if o == nil || IsNil(o.CircuitFailureCount) { + return nil, false + } + return &o.CircuitFailureCount, true +} + +// HasCircuitFailureCount returns a boolean if a field has been set. +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) HasCircuitFailureCount() bool { + if o != nil && IsNil(o.CircuitFailureCount) { + return true + } + + return false +} + +// SetCircuitFailureCount gets a reference to the given interface{} and assigns it to the CircuitFailureCount field. +func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) SetCircuitFailureCount(v interface{}) { + o.CircuitFailureCount = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETShippingMethodsShippingMethodId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -793,8 +933,8 @@ func (o GETShippingMethodsShippingMethodId200ResponseDataAttributes) ToMap() (ma if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } - if o.DisabledAt != nil { - toSerialize["disabled_at"] = o.DisabledAt + if o.ExternalPricesUrl != nil { + toSerialize["external_prices_url"] = o.ExternalPricesUrl } if o.PriceAmountCents != nil { toSerialize["price_amount_cents"] = o.PriceAmountCents @@ -814,6 +954,9 @@ func (o GETShippingMethodsShippingMethodId200ResponseDataAttributes) ToMap() (ma if o.FormattedFreeOverAmount != nil { toSerialize["formatted_free_over_amount"] = o.FormattedFreeOverAmount } + if o.UseSubtotal != nil { + toSerialize["use_subtotal"] = o.UseSubtotal + } if o.PriceAmountForShipmentCents != nil { toSerialize["price_amount_for_shipment_cents"] = o.PriceAmountForShipmentCents } @@ -832,6 +975,15 @@ func (o GETShippingMethodsShippingMethodId200ResponseDataAttributes) ToMap() (ma if o.UnitOfWeight != nil { toSerialize["unit_of_weight"] = o.UnitOfWeight } + if o.DisabledAt != nil { + toSerialize["disabled_at"] = o.DisabledAt + } + if o.CircuitState != nil { + toSerialize["circuit_state"] = o.CircuitState + } + if o.CircuitFailureCount != nil { + toSerialize["circuit_failure_count"] = o.CircuitFailureCount + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_shipping_weight_tiers_200_response.go b/api/model_get_shipping_weight_tiers_200_response.go index e273819d..c55519aa 100644 --- a/api/model_get_shipping_weight_tiers_200_response.go +++ b/api/model_get_shipping_weight_tiers_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_shipping_weight_tiers_shipping_weight_tier_id_200_response.go b/api/model_get_shipping_weight_tiers_shipping_weight_tier_id_200_response.go index acad0883..0fcac562 100644 --- a/api/model_get_shipping_weight_tiers_shipping_weight_tier_id_200_response.go +++ b/api/model_get_shipping_weight_tiers_shipping_weight_tier_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_shipping_weight_tiers_shipping_weight_tier_id_200_response_data.go b/api/model_get_shipping_weight_tiers_shipping_weight_tier_id_200_response_data.go index 85dda707..3758dbaa 100644 --- a/api/model_get_shipping_weight_tiers_shipping_weight_tier_id_200_response_data.go +++ b/api/model_get_shipping_weight_tiers_shipping_weight_tier_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_shipping_zones_200_response.go b/api/model_get_shipping_zones_200_response.go index 75068b86..aac81608 100644 --- a/api/model_get_shipping_zones_200_response.go +++ b/api/model_get_shipping_zones_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_shipping_zones_shipping_zone_id_200_response.go b/api/model_get_shipping_zones_shipping_zone_id_200_response.go index ca40d35f..c5e102d2 100644 --- a/api/model_get_shipping_zones_shipping_zone_id_200_response.go +++ b/api/model_get_shipping_zones_shipping_zone_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_shipping_zones_shipping_zone_id_200_response_data.go b/api/model_get_shipping_zones_shipping_zone_id_200_response_data.go index 57732d26..156ef309 100644 --- a/api/model_get_shipping_zones_shipping_zone_id_200_response_data.go +++ b/api/model_get_shipping_zones_shipping_zone_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_shipping_zones_shipping_zone_id_200_response_data_attributes.go b/api/model_get_shipping_zones_shipping_zone_id_200_response_data_attributes.go index 7ef8637f..f6d42a75 100644 --- a/api/model_get_shipping_zones_shipping_zone_id_200_response_data_attributes.go +++ b/api/model_get_shipping_zones_shipping_zone_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -40,7 +40,7 @@ type GETShippingZonesShippingZoneId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_sku_list_items_200_response.go b/api/model_get_sku_list_items_200_response.go index 77f34ea8..8f95d494 100644 --- a/api/model_get_sku_list_items_200_response.go +++ b/api/model_get_sku_list_items_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_sku_list_items_sku_list_item_id_200_response.go b/api/model_get_sku_list_items_sku_list_item_id_200_response.go index b95cd2a1..cb755775 100644 --- a/api/model_get_sku_list_items_sku_list_item_id_200_response.go +++ b/api/model_get_sku_list_items_sku_list_item_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_sku_list_items_sku_list_item_id_200_response_data.go b/api/model_get_sku_list_items_sku_list_item_id_200_response_data.go index 798560d9..e8bbbf1c 100644 --- a/api/model_get_sku_list_items_sku_list_item_id_200_response_data.go +++ b/api/model_get_sku_list_items_sku_list_item_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_sku_list_items_sku_list_item_id_200_response_data_attributes.go b/api/model_get_sku_list_items_sku_list_item_id_200_response_data_attributes.go index 37957500..5f84e70f 100644 --- a/api/model_get_sku_list_items_sku_list_item_id_200_response_data_attributes.go +++ b/api/model_get_sku_list_items_sku_list_item_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -32,7 +32,7 @@ type GETSkuListItemsSkuListItemId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_sku_list_promotion_rules_200_response.go b/api/model_get_sku_list_promotion_rules_200_response.go index 2c33826a..9adadcd1 100644 --- a/api/model_get_sku_list_promotion_rules_200_response.go +++ b/api/model_get_sku_list_promotion_rules_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response.go b/api/model_get_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response.go index 625d4d76..510d0e20 100644 --- a/api/model_get_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response.go +++ b/api/model_get_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response_data.go b/api/model_get_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response_data.go index 3750df25..0373fc39 100644 --- a/api/model_get_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response_data.go +++ b/api/model_get_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response_data_attributes.go b/api/model_get_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response_data_attributes.go index 68d2af75..28dd6fd7 100644 --- a/api/model_get_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response_data_attributes.go +++ b/api/model_get_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,13 +20,15 @@ var _ MappedNullable = &GETSkuListPromotionRulesSkuListPromotionRuleId200Respons // GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes struct for GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes type GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes struct { + // The promotion rule's type. + Type interface{} `json:"type,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` // Time at which the resource was last updated. UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -53,6 +55,39 @@ func NewGETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributesW return &this } +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes) SetType(v interface{}) { + o.Type = v +} + // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes) GetCreatedAt() interface{} { if o == nil { @@ -294,6 +329,9 @@ func (o GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes) func (o GETSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } if o.CreatedAt != nil { toSerialize["created_at"] = o.CreatedAt } diff --git a/api/model_get_sku_lists_200_response.go b/api/model_get_sku_lists_200_response.go index 0c1409e7..702b993a 100644 --- a/api/model_get_sku_lists_200_response.go +++ b/api/model_get_sku_lists_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_sku_lists_sku_list_id_200_response.go b/api/model_get_sku_lists_sku_list_id_200_response.go index d97562ad..de11ee32 100644 --- a/api/model_get_sku_lists_sku_list_id_200_response.go +++ b/api/model_get_sku_lists_sku_list_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_sku_lists_sku_list_id_200_response_data.go b/api/model_get_sku_lists_sku_list_id_200_response_data.go index 8d21cd4f..f343c357 100644 --- a/api/model_get_sku_lists_sku_list_id_200_response_data.go +++ b/api/model_get_sku_lists_sku_list_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_sku_lists_sku_list_id_200_response_data_attributes.go b/api/model_get_sku_lists_sku_list_id_200_response_data_attributes.go index f200d6c6..f756ab9d 100644 --- a/api/model_get_sku_lists_sku_list_id_200_response_data_attributes.go +++ b/api/model_get_sku_lists_sku_list_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -38,7 +38,7 @@ type GETSkuListsSkuListId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_sku_options_200_response.go b/api/model_get_sku_options_200_response.go index 09530ceb..25f5f259 100644 --- a/api/model_get_sku_options_200_response.go +++ b/api/model_get_sku_options_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_sku_options_sku_option_id_200_response.go b/api/model_get_sku_options_sku_option_id_200_response.go index a04d4f4c..ff6c00d3 100644 --- a/api/model_get_sku_options_sku_option_id_200_response.go +++ b/api/model_get_sku_options_sku_option_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_sku_options_sku_option_id_200_response_data.go b/api/model_get_sku_options_sku_option_id_200_response_data.go index 2411128d..01e5015c 100644 --- a/api/model_get_sku_options_sku_option_id_200_response_data.go +++ b/api/model_get_sku_options_sku_option_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type GETSkuOptionsSkuOptionId200ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *GETSkuOptionsSkuOptionId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTBillingInfoValidationRules201ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *GETSkuOptionsSkuOptionId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTSkuOptions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewGETSkuOptionsSkuOptionId200ResponseData instantiates a new GETSkuOptionsSkuOptionId200ResponseData object @@ -177,9 +177,9 @@ func (o *GETSkuOptionsSkuOptionId200ResponseData) SetAttributes(v GETSkuOptionsS } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *GETSkuOptionsSkuOptionId200ResponseData) GetRelationships() POSTBillingInfoValidationRules201ResponseDataRelationships { +func (o *GETSkuOptionsSkuOptionId200ResponseData) GetRelationships() POSTSkuOptions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTBillingInfoValidationRules201ResponseDataRelationships + var ret POSTSkuOptions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *GETSkuOptionsSkuOptionId200ResponseData) GetRelationships() POSTBilling // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETSkuOptionsSkuOptionId200ResponseData) GetRelationshipsOk() (*POSTBillingInfoValidationRules201ResponseDataRelationships, bool) { +func (o *GETSkuOptionsSkuOptionId200ResponseData) GetRelationshipsOk() (*POSTSkuOptions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *GETSkuOptionsSkuOptionId200ResponseData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given POSTBillingInfoValidationRules201ResponseDataRelationships and assigns it to the Relationships field. -func (o *GETSkuOptionsSkuOptionId200ResponseData) SetRelationships(v POSTBillingInfoValidationRules201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTSkuOptions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETSkuOptionsSkuOptionId200ResponseData) SetRelationships(v POSTSkuOptions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_get_sku_options_sku_option_id_200_response_data_attributes.go b/api/model_get_sku_options_sku_option_id_200_response_data_attributes.go index 62712b4a..e15180d9 100644 --- a/api/model_get_sku_options_sku_option_id_200_response_data_attributes.go +++ b/api/model_get_sku_options_sku_option_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &GETSkuOptionsSkuOptionId200ResponseDataAttributes{} // GETSkuOptionsSkuOptionId200ResponseDataAttributes struct for GETSkuOptionsSkuOptionId200ResponseDataAttributes type GETSkuOptionsSkuOptionId200ResponseDataAttributes struct { - // The SKU option's internal name + // The SKU option's internal name. Name interface{} `json:"name,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` @@ -34,7 +34,7 @@ type GETSkuOptionsSkuOptionId200ResponseDataAttributes struct { FormattedPriceAmount interface{} `json:"formatted_price_amount,omitempty"` // The delay time (in hours) that should be added to the delivery lead time when this option is purchased. DelayHours interface{} `json:"delay_hours,omitempty"` - // The delay time, in days (rounded) + // The delay time, in days (rounded). DelayDays interface{} `json:"delay_days,omitempty"` // The regex that will be evaluated to match the SKU codes. SkuCodeRegex interface{} `json:"sku_code_regex,omitempty"` @@ -44,7 +44,7 @@ type GETSkuOptionsSkuOptionId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_skus_200_response.go b/api/model_get_skus_200_response.go index 1c1adff2..8bb985da 100644 --- a/api/model_get_skus_200_response.go +++ b/api/model_get_skus_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_skus_sku_id_200_response.go b/api/model_get_skus_sku_id_200_response.go index 706a3f8d..446f47bc 100644 --- a/api/model_get_skus_sku_id_200_response.go +++ b/api/model_get_skus_sku_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_skus_sku_id_200_response_data.go b/api/model_get_skus_sku_id_200_response_data.go index d2ea1354..11688066 100644 --- a/api/model_get_skus_sku_id_200_response_data.go +++ b/api/model_get_skus_sku_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_skus_sku_id_200_response_data_attributes.go b/api/model_get_skus_sku_id_200_response_data_attributes.go index 0124300e..46f59ba9 100644 --- a/api/model_get_skus_sku_id_200_response_data_attributes.go +++ b/api/model_get_skus_sku_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -32,7 +32,7 @@ type GETSkusSkuId200ResponseDataAttributes struct { PiecesPerPack interface{} `json:"pieces_per_pack,omitempty"` // The weight of the SKU. If present, it will be used to calculate the shipping rates. Weight interface{} `json:"weight,omitempty"` - // Can be one of 'gr', 'lb', or 'oz' + // The unit of weight. One of 'gr', 'oz', or 'lb'. UnitOfWeight interface{} `json:"unit_of_weight,omitempty"` // The Harmonized System Code used by customs to identify the products shipped across international borders. HsTariffNumber interface{} `json:"hs_tariff_number,omitempty"` @@ -48,8 +48,10 @@ type GETSkusSkuId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // The custom_claim attached to the current JWT (if any). + JwtCustomClaim interface{} `json:"jwt_custom_claim,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` } @@ -566,6 +568,39 @@ func (o *GETSkusSkuId200ResponseDataAttributes) SetReferenceOrigin(v interface{} o.ReferenceOrigin = v } +// GetJwtCustomClaim returns the JwtCustomClaim field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETSkusSkuId200ResponseDataAttributes) GetJwtCustomClaim() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.JwtCustomClaim +} + +// GetJwtCustomClaimOk returns a tuple with the JwtCustomClaim field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETSkusSkuId200ResponseDataAttributes) GetJwtCustomClaimOk() (*interface{}, bool) { + if o == nil || IsNil(o.JwtCustomClaim) { + return nil, false + } + return &o.JwtCustomClaim, true +} + +// HasJwtCustomClaim returns a boolean if a field has been set. +func (o *GETSkusSkuId200ResponseDataAttributes) HasJwtCustomClaim() bool { + if o != nil && IsNil(o.JwtCustomClaim) { + return true + } + + return false +} + +// SetJwtCustomClaim gets a reference to the given interface{} and assigns it to the JwtCustomClaim field. +func (o *GETSkusSkuId200ResponseDataAttributes) SetJwtCustomClaim(v interface{}) { + o.JwtCustomClaim = v +} + // GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETSkusSkuId200ResponseDataAttributes) GetMetadata() interface{} { if o == nil { @@ -654,6 +689,9 @@ func (o GETSkusSkuId200ResponseDataAttributes) ToMap() (map[string]interface{}, if o.ReferenceOrigin != nil { toSerialize["reference_origin"] = o.ReferenceOrigin } + if o.JwtCustomClaim != nil { + toSerialize["jwt_custom_claim"] = o.JwtCustomClaim + } if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } diff --git a/api/model_get_stock_items_200_response.go b/api/model_get_stock_items_200_response.go index 8c44efc0..1eec302c 100644 --- a/api/model_get_stock_items_200_response.go +++ b/api/model_get_stock_items_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_stock_items_stock_item_id_200_response.go b/api/model_get_stock_items_stock_item_id_200_response.go index a8b0b365..242b8a21 100644 --- a/api/model_get_stock_items_stock_item_id_200_response.go +++ b/api/model_get_stock_items_stock_item_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_stock_items_stock_item_id_200_response_data.go b/api/model_get_stock_items_stock_item_id_200_response_data.go index bf7a3085..a5187ba3 100644 --- a/api/model_get_stock_items_stock_item_id_200_response_data.go +++ b/api/model_get_stock_items_stock_item_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_stock_items_stock_item_id_200_response_data_attributes.go b/api/model_get_stock_items_stock_item_id_200_response_data_attributes.go index 7a456b3e..6b68a553 100644 --- a/api/model_get_stock_items_stock_item_id_200_response_data_attributes.go +++ b/api/model_get_stock_items_stock_item_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -30,7 +30,7 @@ type GETStockItemsStockItemId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_stock_line_items_200_response.go b/api/model_get_stock_line_items_200_response.go index 119f0d04..20aa5ed5 100644 --- a/api/model_get_stock_line_items_200_response.go +++ b/api/model_get_stock_line_items_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_stock_line_items_stock_line_item_id_200_response.go b/api/model_get_stock_line_items_stock_line_item_id_200_response.go index 2bb01663..36f0b0a2 100644 --- a/api/model_get_stock_line_items_stock_line_item_id_200_response.go +++ b/api/model_get_stock_line_items_stock_line_item_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_stock_line_items_stock_line_item_id_200_response_data.go b/api/model_get_stock_line_items_stock_line_item_id_200_response_data.go index e1969e11..e811575a 100644 --- a/api/model_get_stock_line_items_stock_line_item_id_200_response_data.go +++ b/api/model_get_stock_line_items_stock_line_item_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type GETStockLineItemsStockLineItemId200ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *GETStockLineItemsStockLineItemId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *GETStockLineItemsStockLineItemId200ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *GETStockLineItemsStockLineItemId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTStockLineItems201ResponseDataRelationships `json:"relationships,omitempty"` } // NewGETStockLineItemsStockLineItemId200ResponseData instantiates a new GETStockLineItemsStockLineItemId200ResponseData object @@ -177,9 +177,9 @@ func (o *GETStockLineItemsStockLineItemId200ResponseData) SetAttributes(v GETSto } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *GETStockLineItemsStockLineItemId200ResponseData) GetRelationships() GETStockLineItemsStockLineItemId200ResponseDataRelationships { +func (o *GETStockLineItemsStockLineItemId200ResponseData) GetRelationships() POSTStockLineItems201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret GETStockLineItemsStockLineItemId200ResponseDataRelationships + var ret POSTStockLineItems201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *GETStockLineItemsStockLineItemId200ResponseData) GetRelationships() GET // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETStockLineItemsStockLineItemId200ResponseData) GetRelationshipsOk() (*GETStockLineItemsStockLineItemId200ResponseDataRelationships, bool) { +func (o *GETStockLineItemsStockLineItemId200ResponseData) GetRelationshipsOk() (*POSTStockLineItems201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *GETStockLineItemsStockLineItemId200ResponseData) HasRelationships() boo return false } -// SetRelationships gets a reference to the given GETStockLineItemsStockLineItemId200ResponseDataRelationships and assigns it to the Relationships field. -func (o *GETStockLineItemsStockLineItemId200ResponseData) SetRelationships(v GETStockLineItemsStockLineItemId200ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTStockLineItems201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETStockLineItemsStockLineItemId200ResponseData) SetRelationships(v POSTStockLineItems201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_get_stock_line_items_stock_line_item_id_200_response_data_attributes.go b/api/model_get_stock_line_items_stock_line_item_id_200_response_data_attributes.go index 942a49a4..2560937b 100644 --- a/api/model_get_stock_line_items_stock_line_item_id_200_response_data_attributes.go +++ b/api/model_get_stock_line_items_stock_line_item_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -32,7 +32,7 @@ type GETStockLineItemsStockLineItemId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_stock_line_items_stock_line_item_id_200_response_data_relationships.go b/api/model_get_stock_line_items_stock_line_item_id_200_response_data_relationships.go deleted file mode 100644 index 243c644d..00000000 --- a/api/model_get_stock_line_items_stock_line_item_id_200_response_data_relationships.go +++ /dev/null @@ -1,197 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the GETStockLineItemsStockLineItemId200ResponseDataRelationships type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GETStockLineItemsStockLineItemId200ResponseDataRelationships{} - -// GETStockLineItemsStockLineItemId200ResponseDataRelationships struct for GETStockLineItemsStockLineItemId200ResponseDataRelationships -type GETStockLineItemsStockLineItemId200ResponseDataRelationships struct { - Shipment *POSTParcels201ResponseDataRelationshipsShipment `json:"shipment,omitempty"` - LineItem *POSTLineItemOptions201ResponseDataRelationshipsLineItem `json:"line_item,omitempty"` - StockItem *GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem `json:"stock_item,omitempty"` -} - -// NewGETStockLineItemsStockLineItemId200ResponseDataRelationships instantiates a new GETStockLineItemsStockLineItemId200ResponseDataRelationships object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGETStockLineItemsStockLineItemId200ResponseDataRelationships() *GETStockLineItemsStockLineItemId200ResponseDataRelationships { - this := GETStockLineItemsStockLineItemId200ResponseDataRelationships{} - return &this -} - -// NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsWithDefaults instantiates a new GETStockLineItemsStockLineItemId200ResponseDataRelationships object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGETStockLineItemsStockLineItemId200ResponseDataRelationshipsWithDefaults() *GETStockLineItemsStockLineItemId200ResponseDataRelationships { - this := GETStockLineItemsStockLineItemId200ResponseDataRelationships{} - return &this -} - -// GetShipment returns the Shipment field value if set, zero value otherwise. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) GetShipment() POSTParcels201ResponseDataRelationshipsShipment { - if o == nil || IsNil(o.Shipment) { - var ret POSTParcels201ResponseDataRelationshipsShipment - return ret - } - return *o.Shipment -} - -// GetShipmentOk returns a tuple with the Shipment field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) GetShipmentOk() (*POSTParcels201ResponseDataRelationshipsShipment, bool) { - if o == nil || IsNil(o.Shipment) { - return nil, false - } - return o.Shipment, true -} - -// HasShipment returns a boolean if a field has been set. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) HasShipment() bool { - if o != nil && !IsNil(o.Shipment) { - return true - } - - return false -} - -// SetShipment gets a reference to the given POSTParcels201ResponseDataRelationshipsShipment and assigns it to the Shipment field. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) SetShipment(v POSTParcels201ResponseDataRelationshipsShipment) { - o.Shipment = &v -} - -// GetLineItem returns the LineItem field value if set, zero value otherwise. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) GetLineItem() POSTLineItemOptions201ResponseDataRelationshipsLineItem { - if o == nil || IsNil(o.LineItem) { - var ret POSTLineItemOptions201ResponseDataRelationshipsLineItem - return ret - } - return *o.LineItem -} - -// GetLineItemOk returns a tuple with the LineItem field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) GetLineItemOk() (*POSTLineItemOptions201ResponseDataRelationshipsLineItem, bool) { - if o == nil || IsNil(o.LineItem) { - return nil, false - } - return o.LineItem, true -} - -// HasLineItem returns a boolean if a field has been set. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) HasLineItem() bool { - if o != nil && !IsNil(o.LineItem) { - return true - } - - return false -} - -// SetLineItem gets a reference to the given POSTLineItemOptions201ResponseDataRelationshipsLineItem and assigns it to the LineItem field. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) SetLineItem(v POSTLineItemOptions201ResponseDataRelationshipsLineItem) { - o.LineItem = &v -} - -// GetStockItem returns the StockItem field value if set, zero value otherwise. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) GetStockItem() GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem { - if o == nil || IsNil(o.StockItem) { - var ret GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem - return ret - } - return *o.StockItem -} - -// GetStockItemOk returns a tuple with the StockItem field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) GetStockItemOk() (*GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem, bool) { - if o == nil || IsNil(o.StockItem) { - return nil, false - } - return o.StockItem, true -} - -// HasStockItem returns a boolean if a field has been set. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) HasStockItem() bool { - if o != nil && !IsNil(o.StockItem) { - return true - } - - return false -} - -// SetStockItem gets a reference to the given GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem and assigns it to the StockItem field. -func (o *GETStockLineItemsStockLineItemId200ResponseDataRelationships) SetStockItem(v GETStockLineItemsStockLineItemId200ResponseDataRelationshipsStockItem) { - o.StockItem = &v -} - -func (o GETStockLineItemsStockLineItemId200ResponseDataRelationships) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GETStockLineItemsStockLineItemId200ResponseDataRelationships) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Shipment) { - toSerialize["shipment"] = o.Shipment - } - if !IsNil(o.LineItem) { - toSerialize["line_item"] = o.LineItem - } - if !IsNil(o.StockItem) { - toSerialize["stock_item"] = o.StockItem - } - return toSerialize, nil -} - -type NullableGETStockLineItemsStockLineItemId200ResponseDataRelationships struct { - value *GETStockLineItemsStockLineItemId200ResponseDataRelationships - isSet bool -} - -func (v NullableGETStockLineItemsStockLineItemId200ResponseDataRelationships) Get() *GETStockLineItemsStockLineItemId200ResponseDataRelationships { - return v.value -} - -func (v *NullableGETStockLineItemsStockLineItemId200ResponseDataRelationships) Set(val *GETStockLineItemsStockLineItemId200ResponseDataRelationships) { - v.value = val - v.isSet = true -} - -func (v NullableGETStockLineItemsStockLineItemId200ResponseDataRelationships) IsSet() bool { - return v.isSet -} - -func (v *NullableGETStockLineItemsStockLineItemId200ResponseDataRelationships) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGETStockLineItemsStockLineItemId200ResponseDataRelationships(val *GETStockLineItemsStockLineItemId200ResponseDataRelationships) *NullableGETStockLineItemsStockLineItemId200ResponseDataRelationships { - return &NullableGETStockLineItemsStockLineItemId200ResponseDataRelationships{value: val, isSet: true} -} - -func (v NullableGETStockLineItemsStockLineItemId200ResponseDataRelationships) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGETStockLineItemsStockLineItemId200ResponseDataRelationships) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_get_stock_locations_200_response.go b/api/model_get_stock_locations_200_response.go index 4454da98..4dc0f3d3 100644 --- a/api/model_get_stock_locations_200_response.go +++ b/api/model_get_stock_locations_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_stock_locations_stock_location_id_200_response.go b/api/model_get_stock_locations_stock_location_id_200_response.go index b12f3cee..359f1576 100644 --- a/api/model_get_stock_locations_stock_location_id_200_response.go +++ b/api/model_get_stock_locations_stock_location_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_stock_locations_stock_location_id_200_response_data.go b/api/model_get_stock_locations_stock_location_id_200_response_data.go index 105a2278..60152f44 100644 --- a/api/model_get_stock_locations_stock_location_id_200_response_data.go +++ b/api/model_get_stock_locations_stock_location_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_stock_locations_stock_location_id_200_response_data_attributes.go b/api/model_get_stock_locations_stock_location_id_200_response_data_attributes.go index 1c778c15..3f6526d9 100644 --- a/api/model_get_stock_locations_stock_location_id_200_response_data_attributes.go +++ b/api/model_get_stock_locations_stock_location_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,11 +20,13 @@ var _ MappedNullable = &GETStockLocationsStockLocationId200ResponseDataAttribute // GETStockLocationsStockLocationId200ResponseDataAttributes struct for GETStockLocationsStockLocationId200ResponseDataAttributes type GETStockLocationsStockLocationId200ResponseDataAttributes struct { - // Unique identifier for the stock location (numeric) + // Unique identifier for the stock location (numeric). Number interface{} `json:"number,omitempty"` // The stock location's internal name. Name interface{} `json:"name,omitempty"` - // The shipping label format for this stock location. Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG' + // A string that you can use to identify the stock location (must be unique within the environment). + Code interface{} `json:"code,omitempty"` + // The shipping label format for this stock location. Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG'. LabelFormat interface{} `json:"label_format,omitempty"` // Flag it if you want to skip the electronic invoice creation when generating the customs info for this stock location shipments. SuppressEtd interface{} `json:"suppress_etd,omitempty"` @@ -34,7 +36,7 @@ type GETStockLocationsStockLocationId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -123,6 +125,39 @@ func (o *GETStockLocationsStockLocationId200ResponseDataAttributes) SetName(v in o.Name = v } +// GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStockLocationsStockLocationId200ResponseDataAttributes) GetCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETStockLocationsStockLocationId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return &o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *GETStockLocationsStockLocationId200ResponseDataAttributes) HasCode() bool { + if o != nil && IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given interface{} and assigns it to the Code field. +func (o *GETStockLocationsStockLocationId200ResponseDataAttributes) SetCode(v interface{}) { + o.Code = v +} + // GetLabelFormat returns the LabelFormat field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETStockLocationsStockLocationId200ResponseDataAttributes) GetLabelFormat() interface{} { if o == nil { @@ -370,6 +405,9 @@ func (o GETStockLocationsStockLocationId200ResponseDataAttributes) ToMap() (map[ if o.Name != nil { toSerialize["name"] = o.Name } + if o.Code != nil { + toSerialize["code"] = o.Code + } if o.LabelFormat != nil { toSerialize["label_format"] = o.LabelFormat } diff --git a/api/model_get_stock_reservations_200_response.go b/api/model_get_stock_reservations_200_response.go new file mode 100644 index 00000000..6263857b --- /dev/null +++ b/api/model_get_stock_reservations_200_response.go @@ -0,0 +1,126 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETStockReservations200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETStockReservations200Response{} + +// GETStockReservations200Response struct for GETStockReservations200Response +type GETStockReservations200Response struct { + Data interface{} `json:"data,omitempty"` +} + +// NewGETStockReservations200Response instantiates a new GETStockReservations200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETStockReservations200Response() *GETStockReservations200Response { + this := GETStockReservations200Response{} + return &this +} + +// NewGETStockReservations200ResponseWithDefaults instantiates a new GETStockReservations200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETStockReservations200ResponseWithDefaults() *GETStockReservations200Response { + this := GETStockReservations200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStockReservations200Response) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETStockReservations200Response) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETStockReservations200Response) HasData() bool { + if o != nil && IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given interface{} and assigns it to the Data field. +func (o *GETStockReservations200Response) SetData(v interface{}) { + o.Data = v +} + +func (o GETStockReservations200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETStockReservations200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETStockReservations200Response struct { + value *GETStockReservations200Response + isSet bool +} + +func (v NullableGETStockReservations200Response) Get() *GETStockReservations200Response { + return v.value +} + +func (v *NullableGETStockReservations200Response) Set(val *GETStockReservations200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETStockReservations200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETStockReservations200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETStockReservations200Response(val *GETStockReservations200Response) *NullableGETStockReservations200Response { + return &NullableGETStockReservations200Response{value: val, isSet: true} +} + +func (v NullableGETStockReservations200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETStockReservations200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_stock_reservations_stock_reservation_id_200_response.go b/api/model_get_stock_reservations_stock_reservation_id_200_response.go new file mode 100644 index 00000000..71390d13 --- /dev/null +++ b/api/model_get_stock_reservations_stock_reservation_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETStockReservationsStockReservationId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETStockReservationsStockReservationId200Response{} + +// GETStockReservationsStockReservationId200Response struct for GETStockReservationsStockReservationId200Response +type GETStockReservationsStockReservationId200Response struct { + Data *GETStockReservationsStockReservationId200ResponseData `json:"data,omitempty"` +} + +// NewGETStockReservationsStockReservationId200Response instantiates a new GETStockReservationsStockReservationId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETStockReservationsStockReservationId200Response() *GETStockReservationsStockReservationId200Response { + this := GETStockReservationsStockReservationId200Response{} + return &this +} + +// NewGETStockReservationsStockReservationId200ResponseWithDefaults instantiates a new GETStockReservationsStockReservationId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETStockReservationsStockReservationId200ResponseWithDefaults() *GETStockReservationsStockReservationId200Response { + this := GETStockReservationsStockReservationId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *GETStockReservationsStockReservationId200Response) GetData() GETStockReservationsStockReservationId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret GETStockReservationsStockReservationId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETStockReservationsStockReservationId200Response) GetDataOk() (*GETStockReservationsStockReservationId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETStockReservationsStockReservationId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given GETStockReservationsStockReservationId200ResponseData and assigns it to the Data field. +func (o *GETStockReservationsStockReservationId200Response) SetData(v GETStockReservationsStockReservationId200ResponseData) { + o.Data = &v +} + +func (o GETStockReservationsStockReservationId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETStockReservationsStockReservationId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETStockReservationsStockReservationId200Response struct { + value *GETStockReservationsStockReservationId200Response + isSet bool +} + +func (v NullableGETStockReservationsStockReservationId200Response) Get() *GETStockReservationsStockReservationId200Response { + return v.value +} + +func (v *NullableGETStockReservationsStockReservationId200Response) Set(val *GETStockReservationsStockReservationId200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETStockReservationsStockReservationId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETStockReservationsStockReservationId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETStockReservationsStockReservationId200Response(val *GETStockReservationsStockReservationId200Response) *NullableGETStockReservationsStockReservationId200Response { + return &NullableGETStockReservationsStockReservationId200Response{value: val, isSet: true} +} + +func (v NullableGETStockReservationsStockReservationId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETStockReservationsStockReservationId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_stock_reservations_stock_reservation_id_200_response_data.go b/api/model_get_stock_reservations_stock_reservation_id_200_response_data.go new file mode 100644 index 00000000..49f75d87 --- /dev/null +++ b/api/model_get_stock_reservations_stock_reservation_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETStockReservationsStockReservationId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETStockReservationsStockReservationId200ResponseData{} + +// GETStockReservationsStockReservationId200ResponseData struct for GETStockReservationsStockReservationId200ResponseData +type GETStockReservationsStockReservationId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *GETStockReservationsStockReservationId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTStockReservations201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewGETStockReservationsStockReservationId200ResponseData instantiates a new GETStockReservationsStockReservationId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETStockReservationsStockReservationId200ResponseData() *GETStockReservationsStockReservationId200ResponseData { + this := GETStockReservationsStockReservationId200ResponseData{} + return &this +} + +// NewGETStockReservationsStockReservationId200ResponseDataWithDefaults instantiates a new GETStockReservationsStockReservationId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETStockReservationsStockReservationId200ResponseDataWithDefaults() *GETStockReservationsStockReservationId200ResponseData { + this := GETStockReservationsStockReservationId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStockReservationsStockReservationId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETStockReservationsStockReservationId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *GETStockReservationsStockReservationId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *GETStockReservationsStockReservationId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStockReservationsStockReservationId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETStockReservationsStockReservationId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETStockReservationsStockReservationId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETStockReservationsStockReservationId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *GETStockReservationsStockReservationId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETStockReservationsStockReservationId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *GETStockReservationsStockReservationId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *GETStockReservationsStockReservationId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *GETStockReservationsStockReservationId200ResponseData) GetAttributes() GETStockReservationsStockReservationId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret GETStockReservationsStockReservationId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETStockReservationsStockReservationId200ResponseData) GetAttributesOk() (*GETStockReservationsStockReservationId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *GETStockReservationsStockReservationId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given GETStockReservationsStockReservationId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *GETStockReservationsStockReservationId200ResponseData) SetAttributes(v GETStockReservationsStockReservationId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *GETStockReservationsStockReservationId200ResponseData) GetRelationships() POSTStockReservations201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTStockReservations201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETStockReservationsStockReservationId200ResponseData) GetRelationshipsOk() (*POSTStockReservations201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *GETStockReservationsStockReservationId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTStockReservations201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETStockReservationsStockReservationId200ResponseData) SetRelationships(v POSTStockReservations201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o GETStockReservationsStockReservationId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETStockReservationsStockReservationId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableGETStockReservationsStockReservationId200ResponseData struct { + value *GETStockReservationsStockReservationId200ResponseData + isSet bool +} + +func (v NullableGETStockReservationsStockReservationId200ResponseData) Get() *GETStockReservationsStockReservationId200ResponseData { + return v.value +} + +func (v *NullableGETStockReservationsStockReservationId200ResponseData) Set(val *GETStockReservationsStockReservationId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableGETStockReservationsStockReservationId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableGETStockReservationsStockReservationId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETStockReservationsStockReservationId200ResponseData(val *GETStockReservationsStockReservationId200ResponseData) *NullableGETStockReservationsStockReservationId200ResponseData { + return &NullableGETStockReservationsStockReservationId200ResponseData{value: val, isSet: true} +} + +func (v NullableGETStockReservationsStockReservationId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETStockReservationsStockReservationId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_stock_reservations_stock_reservation_id_200_response_data_attributes.go b/api/model_get_stock_reservations_stock_reservation_id_200_response_data_attributes.go new file mode 100644 index 00000000..ca526c64 --- /dev/null +++ b/api/model_get_stock_reservations_stock_reservation_id_200_response_data_attributes.go @@ -0,0 +1,393 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETStockReservationsStockReservationId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETStockReservationsStockReservationId200ResponseDataAttributes{} + +// GETStockReservationsStockReservationId200ResponseDataAttributes struct for GETStockReservationsStockReservationId200ResponseDataAttributes +type GETStockReservationsStockReservationId200ResponseDataAttributes struct { + // The stock reservation status. One of 'draft' (default), or 'pending'. + Status interface{} `json:"status,omitempty"` + // The stock reservation quantity. + Quantity interface{} `json:"quantity,omitempty"` + // The expiration date/time of this stock reservation. + ExpiresAt interface{} `json:"expires_at,omitempty"` + // Time at which the resource was created. + CreatedAt interface{} `json:"created_at,omitempty"` + // Time at which the resource was last updated. + UpdatedAt interface{} `json:"updated_at,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewGETStockReservationsStockReservationId200ResponseDataAttributes instantiates a new GETStockReservationsStockReservationId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETStockReservationsStockReservationId200ResponseDataAttributes() *GETStockReservationsStockReservationId200ResponseDataAttributes { + this := GETStockReservationsStockReservationId200ResponseDataAttributes{} + return &this +} + +// NewGETStockReservationsStockReservationId200ResponseDataAttributesWithDefaults instantiates a new GETStockReservationsStockReservationId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETStockReservationsStockReservationId200ResponseDataAttributesWithDefaults() *GETStockReservationsStockReservationId200ResponseDataAttributes { + this := GETStockReservationsStockReservationId200ResponseDataAttributes{} + return &this +} + +// GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetStatus() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetStatusOk() (*interface{}, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return &o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) HasStatus() bool { + if o != nil && IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given interface{} and assigns it to the Status field. +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetStatus(v interface{}) { + o.Status = v +} + +// GetQuantity returns the Quantity field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetQuantity() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Quantity +} + +// GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetQuantityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Quantity) { + return nil, false + } + return &o.Quantity, true +} + +// HasQuantity returns a boolean if a field has been set. +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) HasQuantity() bool { + if o != nil && IsNil(o.Quantity) { + return true + } + + return false +} + +// SetQuantity gets a reference to the given interface{} and assigns it to the Quantity field. +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetQuantity(v interface{}) { + o.Quantity = v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetExpiresAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExpiresAt) { + return nil, false + } + return &o.ExpiresAt, true +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) HasExpiresAt() bool { + if o != nil && IsNil(o.ExpiresAt) { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given interface{} and assigns it to the ExpiresAt field. +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetExpiresAt(v interface{}) { + o.ExpiresAt = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetCreatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return &o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) HasCreatedAt() bool { + if o != nil && IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given interface{} and assigns it to the CreatedAt field. +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetCreatedAt(v interface{}) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetUpdatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return &o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) HasUpdatedAt() bool { + if o != nil && IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given interface{} and assigns it to the UpdatedAt field. +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetUpdatedAt(v interface{}) { + o.UpdatedAt = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *GETStockReservationsStockReservationId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o GETStockReservationsStockReservationId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETStockReservationsStockReservationId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Status != nil { + toSerialize["status"] = o.Status + } + if o.Quantity != nil { + toSerialize["quantity"] = o.Quantity + } + if o.ExpiresAt != nil { + toSerialize["expires_at"] = o.ExpiresAt + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableGETStockReservationsStockReservationId200ResponseDataAttributes struct { + value *GETStockReservationsStockReservationId200ResponseDataAttributes + isSet bool +} + +func (v NullableGETStockReservationsStockReservationId200ResponseDataAttributes) Get() *GETStockReservationsStockReservationId200ResponseDataAttributes { + return v.value +} + +func (v *NullableGETStockReservationsStockReservationId200ResponseDataAttributes) Set(val *GETStockReservationsStockReservationId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullableGETStockReservationsStockReservationId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullableGETStockReservationsStockReservationId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETStockReservationsStockReservationId200ResponseDataAttributes(val *GETStockReservationsStockReservationId200ResponseDataAttributes) *NullableGETStockReservationsStockReservationId200ResponseDataAttributes { + return &NullableGETStockReservationsStockReservationId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullableGETStockReservationsStockReservationId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETStockReservationsStockReservationId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_stock_transfers_200_response.go b/api/model_get_stock_transfers_200_response.go index c2c832e5..54c1add1 100644 --- a/api/model_get_stock_transfers_200_response.go +++ b/api/model_get_stock_transfers_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_stock_transfers_stock_transfer_id_200_response.go b/api/model_get_stock_transfers_stock_transfer_id_200_response.go index fec477c7..058136e5 100644 --- a/api/model_get_stock_transfers_stock_transfer_id_200_response.go +++ b/api/model_get_stock_transfers_stock_transfer_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_stock_transfers_stock_transfer_id_200_response_data.go b/api/model_get_stock_transfers_stock_transfer_id_200_response_data.go index 824aaa6c..58a6c6d0 100644 --- a/api/model_get_stock_transfers_stock_transfer_id_200_response_data.go +++ b/api/model_get_stock_transfers_stock_transfer_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_stock_transfers_stock_transfer_id_200_response_data_attributes.go b/api/model_get_stock_transfers_stock_transfer_id_200_response_data_attributes.go index 3e1903e9..25351050 100644 --- a/api/model_get_stock_transfers_stock_transfer_id_200_response_data_attributes.go +++ b/api/model_get_stock_transfers_stock_transfer_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,12 +20,20 @@ var _ MappedNullable = &GETStockTransfersStockTransferId200ResponseDataAttribute // GETStockTransfersStockTransferId200ResponseDataAttributes struct for GETStockTransfersStockTransferId200ResponseDataAttributes type GETStockTransfersStockTransferId200ResponseDataAttributes struct { + // Unique identifier for the stock transfer (numeric). + Number interface{} `json:"number,omitempty"` // The code of the associated SKU. SkuCode interface{} `json:"sku_code,omitempty"` - // The stock transfer status, one of 'draft', 'upcoming', 'picking', 'in_transit', 'completed', or 'cancelled' + // The stock transfer status. One of 'draft' (default), 'upcoming', 'on_hold', 'picking', 'in_transit', 'completed', or 'cancelled'. Status interface{} `json:"status,omitempty"` - // The stock quantity to be transferred from the origin stock location to destination one + // The stock quantity to be transferred from the origin stock location to destination one. Quantity interface{} `json:"quantity,omitempty"` + // Time at which the stock transfer was put on hold. + OnHoldAt interface{} `json:"on_hold_at,omitempty"` + // Time at which the stock transfer was picking. + PickingAt interface{} `json:"picking_at,omitempty"` + // Time at which the stock transfer was in transit. + InTransitAt interface{} `json:"in_transit_at,omitempty"` // Time at which the stock transfer was completed. CompletedAt interface{} `json:"completed_at,omitempty"` // Time at which the stock transfer was cancelled. @@ -36,7 +44,7 @@ type GETStockTransfersStockTransferId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -59,6 +67,39 @@ func NewGETStockTransfersStockTransferId200ResponseDataAttributesWithDefaults() return &this } +// GetNumber returns the Number field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetNumber() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Number +} + +// GetNumberOk returns a tuple with the Number field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetNumberOk() (*interface{}, bool) { + if o == nil || IsNil(o.Number) { + return nil, false + } + return &o.Number, true +} + +// HasNumber returns a boolean if a field has been set. +func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) HasNumber() bool { + if o != nil && IsNil(o.Number) { + return true + } + + return false +} + +// SetNumber gets a reference to the given interface{} and assigns it to the Number field. +func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) SetNumber(v interface{}) { + o.Number = v +} + // GetSkuCode returns the SkuCode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetSkuCode() interface{} { if o == nil { @@ -158,6 +199,105 @@ func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) SetQuantity( o.Quantity = v } +// GetOnHoldAt returns the OnHoldAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetOnHoldAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.OnHoldAt +} + +// GetOnHoldAtOk returns a tuple with the OnHoldAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetOnHoldAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.OnHoldAt) { + return nil, false + } + return &o.OnHoldAt, true +} + +// HasOnHoldAt returns a boolean if a field has been set. +func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) HasOnHoldAt() bool { + if o != nil && IsNil(o.OnHoldAt) { + return true + } + + return false +} + +// SetOnHoldAt gets a reference to the given interface{} and assigns it to the OnHoldAt field. +func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) SetOnHoldAt(v interface{}) { + o.OnHoldAt = v +} + +// GetPickingAt returns the PickingAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetPickingAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PickingAt +} + +// GetPickingAtOk returns a tuple with the PickingAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetPickingAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.PickingAt) { + return nil, false + } + return &o.PickingAt, true +} + +// HasPickingAt returns a boolean if a field has been set. +func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) HasPickingAt() bool { + if o != nil && IsNil(o.PickingAt) { + return true + } + + return false +} + +// SetPickingAt gets a reference to the given interface{} and assigns it to the PickingAt field. +func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) SetPickingAt(v interface{}) { + o.PickingAt = v +} + +// GetInTransitAt returns the InTransitAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetInTransitAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.InTransitAt +} + +// GetInTransitAtOk returns a tuple with the InTransitAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetInTransitAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.InTransitAt) { + return nil, false + } + return &o.InTransitAt, true +} + +// HasInTransitAt returns a boolean if a field has been set. +func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) HasInTransitAt() bool { + if o != nil && IsNil(o.InTransitAt) { + return true + } + + return false +} + +// SetInTransitAt gets a reference to the given interface{} and assigns it to the InTransitAt field. +func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) SetInTransitAt(v interface{}) { + o.InTransitAt = v +} + // GetCompletedAt returns the CompletedAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETStockTransfersStockTransferId200ResponseDataAttributes) GetCompletedAt() interface{} { if o == nil { @@ -399,6 +539,9 @@ func (o GETStockTransfersStockTransferId200ResponseDataAttributes) MarshalJSON() func (o GETStockTransfersStockTransferId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Number != nil { + toSerialize["number"] = o.Number + } if o.SkuCode != nil { toSerialize["sku_code"] = o.SkuCode } @@ -408,6 +551,15 @@ func (o GETStockTransfersStockTransferId200ResponseDataAttributes) ToMap() (map[ if o.Quantity != nil { toSerialize["quantity"] = o.Quantity } + if o.OnHoldAt != nil { + toSerialize["on_hold_at"] = o.OnHoldAt + } + if o.PickingAt != nil { + toSerialize["picking_at"] = o.PickingAt + } + if o.InTransitAt != nil { + toSerialize["in_transit_at"] = o.InTransitAt + } if o.CompletedAt != nil { toSerialize["completed_at"] = o.CompletedAt } diff --git a/api/model_get_stripe_gateways_200_response.go b/api/model_get_stripe_gateways_200_response.go index 8fc1693d..75177b4b 100644 --- a/api/model_get_stripe_gateways_200_response.go +++ b/api/model_get_stripe_gateways_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_stripe_gateways_stripe_gateway_id_200_response.go b/api/model_get_stripe_gateways_stripe_gateway_id_200_response.go index 3ae03e98..2d0bd2ab 100644 --- a/api/model_get_stripe_gateways_stripe_gateway_id_200_response.go +++ b/api/model_get_stripe_gateways_stripe_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_stripe_gateways_stripe_gateway_id_200_response_data.go b/api/model_get_stripe_gateways_stripe_gateway_id_200_response_data.go index d33caca6..419feb19 100644 --- a/api/model_get_stripe_gateways_stripe_gateway_id_200_response_data.go +++ b/api/model_get_stripe_gateways_stripe_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_stripe_gateways_stripe_gateway_id_200_response_data_attributes.go b/api/model_get_stripe_gateways_stripe_gateway_id_200_response_data_attributes.go index c08c58c8..ab1cdc24 100644 --- a/api/model_get_stripe_gateways_stripe_gateway_id_200_response_data_attributes.go +++ b/api/model_get_stripe_gateways_stripe_gateway_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,10 +28,12 @@ type GETStripeGatewaysStripeGatewayId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` + // The account (if any) for which the funds of the PaymentIntent are intended. + ConnectedAccount interface{} `json:"connected_account,omitempty"` // Indicates if the gateway will accept payment methods enabled in the Stripe dashboard. AutoPayments interface{} `json:"auto_payments,omitempty"` // The gateway webhook endpoint ID, generated automatically. @@ -257,6 +259,39 @@ func (o *GETStripeGatewaysStripeGatewayId200ResponseDataAttributes) SetMetadata( o.Metadata = v } +// GetConnectedAccount returns the ConnectedAccount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStripeGatewaysStripeGatewayId200ResponseDataAttributes) GetConnectedAccount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ConnectedAccount +} + +// GetConnectedAccountOk returns a tuple with the ConnectedAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETStripeGatewaysStripeGatewayId200ResponseDataAttributes) GetConnectedAccountOk() (*interface{}, bool) { + if o == nil || IsNil(o.ConnectedAccount) { + return nil, false + } + return &o.ConnectedAccount, true +} + +// HasConnectedAccount returns a boolean if a field has been set. +func (o *GETStripeGatewaysStripeGatewayId200ResponseDataAttributes) HasConnectedAccount() bool { + if o != nil && IsNil(o.ConnectedAccount) { + return true + } + + return false +} + +// SetConnectedAccount gets a reference to the given interface{} and assigns it to the ConnectedAccount field. +func (o *GETStripeGatewaysStripeGatewayId200ResponseDataAttributes) SetConnectedAccount(v interface{}) { + o.ConnectedAccount = v +} + // GetAutoPayments returns the AutoPayments field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETStripeGatewaysStripeGatewayId200ResponseDataAttributes) GetAutoPayments() interface{} { if o == nil { @@ -417,6 +452,9 @@ func (o GETStripeGatewaysStripeGatewayId200ResponseDataAttributes) ToMap() (map[ if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } + if o.ConnectedAccount != nil { + toSerialize["connected_account"] = o.ConnectedAccount + } if o.AutoPayments != nil { toSerialize["auto_payments"] = o.AutoPayments } diff --git a/api/model_get_stripe_payments_200_response.go b/api/model_get_stripe_payments_200_response.go index 6d5939be..0e958c0a 100644 --- a/api/model_get_stripe_payments_200_response.go +++ b/api/model_get_stripe_payments_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_stripe_payments_stripe_payment_id_200_response.go b/api/model_get_stripe_payments_stripe_payment_id_200_response.go index f37dc035..2a679b6c 100644 --- a/api/model_get_stripe_payments_stripe_payment_id_200_response.go +++ b/api/model_get_stripe_payments_stripe_payment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_stripe_payments_stripe_payment_id_200_response_data.go b/api/model_get_stripe_payments_stripe_payment_id_200_response_data.go index d677eebe..7a19b4e2 100644 --- a/api/model_get_stripe_payments_stripe_payment_id_200_response_data.go +++ b/api/model_get_stripe_payments_stripe_payment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_stripe_payments_stripe_payment_id_200_response_data_attributes.go b/api/model_get_stripe_payments_stripe_payment_id_200_response_data_attributes.go index db2b7316..c9f81f21 100644 --- a/api/model_get_stripe_payments_stripe_payment_id_200_response_data_attributes.go +++ b/api/model_get_stripe_payments_stripe_payment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,23 +20,25 @@ var _ MappedNullable = &GETStripePaymentsStripePaymentId200ResponseDataAttribute // GETStripePaymentsStripePaymentId200ResponseDataAttributes struct for GETStripePaymentsStripePaymentId200ResponseDataAttributes type GETStripePaymentsStripePaymentId200ResponseDataAttributes struct { + // The Stripe payment intent ID. Required to identify a payment session on stripe. + StripeId interface{} `json:"stripe_id,omitempty"` // The Stripe payment intent client secret. Required to create a charge through Stripe.js. ClientSecret interface{} `json:"client_secret,omitempty"` + // The Stripe charge ID. Identifies money movement upon the payment intent confirmation. + ChargeId interface{} `json:"charge_id,omitempty"` // The Stripe publishable API key. PublishableKey interface{} `json:"publishable_key,omitempty"` - // Stripe payment options: 'customer', 'payment_method', etc. Check Stripe payment intent API for more details. + // Stripe payment options: 'customer', 'payment_method', 'return_url', etc. Check Stripe payment intent API for more details. Options interface{} `json:"options,omitempty"` // Stripe 'payment_method', set by webhook. PaymentMethod interface{} `json:"payment_method,omitempty"` // Indicates if the order current amount differs form the one of the created payment intent. MismatchedAmounts interface{} `json:"mismatched_amounts,omitempty"` - // The amount of the associated payment intent, in cents. - IntentAmountCents interface{} `json:"intent_amount_cents,omitempty"` - // The amount of the associated payment intent, float. - IntentAmountFloat interface{} `json:"intent_amount_float,omitempty"` - // The amount of the associated payment intent, formatted. - FormattedIntentAmount interface{} `json:"formatted_intent_amount,omitempty"` - // Information about the payment instrument used in the transaction + // The URL to return to when a redirect payment is completed. + ReturnUrl interface{} `json:"return_url,omitempty"` + // The email address to send the receipt to. + ReceiptEmail interface{} `json:"receipt_email,omitempty"` + // Information about the payment instrument used in the transaction. PaymentInstrument interface{} `json:"payment_instrument,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` @@ -44,7 +46,7 @@ type GETStripePaymentsStripePaymentId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -67,6 +69,39 @@ func NewGETStripePaymentsStripePaymentId200ResponseDataAttributesWithDefaults() return &this } +// GetStripeId returns the StripeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetStripeId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.StripeId +} + +// GetStripeIdOk returns a tuple with the StripeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetStripeIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.StripeId) { + return nil, false + } + return &o.StripeId, true +} + +// HasStripeId returns a boolean if a field has been set. +func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) HasStripeId() bool { + if o != nil && IsNil(o.StripeId) { + return true + } + + return false +} + +// SetStripeId gets a reference to the given interface{} and assigns it to the StripeId field. +func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetStripeId(v interface{}) { + o.StripeId = v +} + // GetClientSecret returns the ClientSecret field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetClientSecret() interface{} { if o == nil { @@ -100,6 +135,39 @@ func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetClientSec o.ClientSecret = v } +// GetChargeId returns the ChargeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetChargeId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ChargeId +} + +// GetChargeIdOk returns a tuple with the ChargeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetChargeIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.ChargeId) { + return nil, false + } + return &o.ChargeId, true +} + +// HasChargeId returns a boolean if a field has been set. +func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) HasChargeId() bool { + if o != nil && IsNil(o.ChargeId) { + return true + } + + return false +} + +// SetChargeId gets a reference to the given interface{} and assigns it to the ChargeId field. +func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetChargeId(v interface{}) { + o.ChargeId = v +} + // GetPublishableKey returns the PublishableKey field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetPublishableKey() interface{} { if o == nil { @@ -232,103 +300,70 @@ func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetMismatche o.MismatchedAmounts = v } -// GetIntentAmountCents returns the IntentAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetIntentAmountCents() interface{} { +// GetReturnUrl returns the ReturnUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetReturnUrl() interface{} { if o == nil { var ret interface{} return ret } - return o.IntentAmountCents + return o.ReturnUrl } -// GetIntentAmountCentsOk returns a tuple with the IntentAmountCents field value if set, nil otherwise +// GetReturnUrlOk returns a tuple with the ReturnUrl field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetIntentAmountCentsOk() (*interface{}, bool) { - if o == nil || IsNil(o.IntentAmountCents) { +func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetReturnUrlOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReturnUrl) { return nil, false } - return &o.IntentAmountCents, true + return &o.ReturnUrl, true } -// HasIntentAmountCents returns a boolean if a field has been set. -func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) HasIntentAmountCents() bool { - if o != nil && IsNil(o.IntentAmountCents) { +// HasReturnUrl returns a boolean if a field has been set. +func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) HasReturnUrl() bool { + if o != nil && IsNil(o.ReturnUrl) { return true } return false } -// SetIntentAmountCents gets a reference to the given interface{} and assigns it to the IntentAmountCents field. -func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetIntentAmountCents(v interface{}) { - o.IntentAmountCents = v +// SetReturnUrl gets a reference to the given interface{} and assigns it to the ReturnUrl field. +func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetReturnUrl(v interface{}) { + o.ReturnUrl = v } -// GetIntentAmountFloat returns the IntentAmountFloat field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetIntentAmountFloat() interface{} { +// GetReceiptEmail returns the ReceiptEmail field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetReceiptEmail() interface{} { if o == nil { var ret interface{} return ret } - return o.IntentAmountFloat + return o.ReceiptEmail } -// GetIntentAmountFloatOk returns a tuple with the IntentAmountFloat field value if set, nil otherwise +// GetReceiptEmailOk returns a tuple with the ReceiptEmail field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetIntentAmountFloatOk() (*interface{}, bool) { - if o == nil || IsNil(o.IntentAmountFloat) { +func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetReceiptEmailOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReceiptEmail) { return nil, false } - return &o.IntentAmountFloat, true + return &o.ReceiptEmail, true } -// HasIntentAmountFloat returns a boolean if a field has been set. -func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) HasIntentAmountFloat() bool { - if o != nil && IsNil(o.IntentAmountFloat) { +// HasReceiptEmail returns a boolean if a field has been set. +func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) HasReceiptEmail() bool { + if o != nil && IsNil(o.ReceiptEmail) { return true } return false } -// SetIntentAmountFloat gets a reference to the given interface{} and assigns it to the IntentAmountFloat field. -func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetIntentAmountFloat(v interface{}) { - o.IntentAmountFloat = v -} - -// GetFormattedIntentAmount returns the FormattedIntentAmount field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetFormattedIntentAmount() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.FormattedIntentAmount -} - -// GetFormattedIntentAmountOk returns a tuple with the FormattedIntentAmount field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) GetFormattedIntentAmountOk() (*interface{}, bool) { - if o == nil || IsNil(o.FormattedIntentAmount) { - return nil, false - } - return &o.FormattedIntentAmount, true -} - -// HasFormattedIntentAmount returns a boolean if a field has been set. -func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) HasFormattedIntentAmount() bool { - if o != nil && IsNil(o.FormattedIntentAmount) { - return true - } - - return false -} - -// SetFormattedIntentAmount gets a reference to the given interface{} and assigns it to the FormattedIntentAmount field. -func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetFormattedIntentAmount(v interface{}) { - o.FormattedIntentAmount = v +// SetReceiptEmail gets a reference to the given interface{} and assigns it to the ReceiptEmail field. +func (o *GETStripePaymentsStripePaymentId200ResponseDataAttributes) SetReceiptEmail(v interface{}) { + o.ReceiptEmail = v } // GetPaymentInstrument returns the PaymentInstrument field value if set, zero value otherwise (both if not set or set to explicit null). @@ -539,9 +574,15 @@ func (o GETStripePaymentsStripePaymentId200ResponseDataAttributes) MarshalJSON() func (o GETStripePaymentsStripePaymentId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.StripeId != nil { + toSerialize["stripe_id"] = o.StripeId + } if o.ClientSecret != nil { toSerialize["client_secret"] = o.ClientSecret } + if o.ChargeId != nil { + toSerialize["charge_id"] = o.ChargeId + } if o.PublishableKey != nil { toSerialize["publishable_key"] = o.PublishableKey } @@ -554,14 +595,11 @@ func (o GETStripePaymentsStripePaymentId200ResponseDataAttributes) ToMap() (map[ if o.MismatchedAmounts != nil { toSerialize["mismatched_amounts"] = o.MismatchedAmounts } - if o.IntentAmountCents != nil { - toSerialize["intent_amount_cents"] = o.IntentAmountCents - } - if o.IntentAmountFloat != nil { - toSerialize["intent_amount_float"] = o.IntentAmountFloat + if o.ReturnUrl != nil { + toSerialize["return_url"] = o.ReturnUrl } - if o.FormattedIntentAmount != nil { - toSerialize["formatted_intent_amount"] = o.FormattedIntentAmount + if o.ReceiptEmail != nil { + toSerialize["receipt_email"] = o.ReceiptEmail } if o.PaymentInstrument != nil { toSerialize["payment_instrument"] = o.PaymentInstrument diff --git a/api/model_get_subscription_models_200_response.go b/api/model_get_subscription_models_200_response.go index ad8bfe90..1f7cd583 100644 --- a/api/model_get_subscription_models_200_response.go +++ b/api/model_get_subscription_models_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_subscription_models_subscription_model_id_200_response.go b/api/model_get_subscription_models_subscription_model_id_200_response.go index e5b1180c..76459b5a 100644 --- a/api/model_get_subscription_models_subscription_model_id_200_response.go +++ b/api/model_get_subscription_models_subscription_model_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_subscription_models_subscription_model_id_200_response_data.go b/api/model_get_subscription_models_subscription_model_id_200_response_data.go index fe4c1c9c..589cccfe 100644 --- a/api/model_get_subscription_models_subscription_model_id_200_response_data.go +++ b/api/model_get_subscription_models_subscription_model_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_subscription_models_subscription_model_id_200_response_data_attributes.go b/api/model_get_subscription_models_subscription_model_id_200_response_data_attributes.go index 924f8138..6814fb58 100644 --- a/api/model_get_subscription_models_subscription_model_id_200_response_data_attributes.go +++ b/api/model_get_subscription_models_subscription_model_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -36,7 +36,7 @@ type GETSubscriptionModelsSubscriptionModelId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_tags_200_response.go b/api/model_get_tags_200_response.go new file mode 100644 index 00000000..8fcfac6a --- /dev/null +++ b/api/model_get_tags_200_response.go @@ -0,0 +1,126 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETTags200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETTags200Response{} + +// GETTags200Response struct for GETTags200Response +type GETTags200Response struct { + Data interface{} `json:"data,omitempty"` +} + +// NewGETTags200Response instantiates a new GETTags200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETTags200Response() *GETTags200Response { + this := GETTags200Response{} + return &this +} + +// NewGETTags200ResponseWithDefaults instantiates a new GETTags200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETTags200ResponseWithDefaults() *GETTags200Response { + this := GETTags200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETTags200Response) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETTags200Response) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETTags200Response) HasData() bool { + if o != nil && IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given interface{} and assigns it to the Data field. +func (o *GETTags200Response) SetData(v interface{}) { + o.Data = v +} + +func (o GETTags200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETTags200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETTags200Response struct { + value *GETTags200Response + isSet bool +} + +func (v NullableGETTags200Response) Get() *GETTags200Response { + return v.value +} + +func (v *NullableGETTags200Response) Set(val *GETTags200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETTags200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETTags200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETTags200Response(val *GETTags200Response) *NullableGETTags200Response { + return &NullableGETTags200Response{value: val, isSet: true} +} + +func (v NullableGETTags200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETTags200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_tags_tag_id_200_response.go b/api/model_get_tags_tag_id_200_response.go new file mode 100644 index 00000000..2c1e5aed --- /dev/null +++ b/api/model_get_tags_tag_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETTagsTagId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETTagsTagId200Response{} + +// GETTagsTagId200Response struct for GETTagsTagId200Response +type GETTagsTagId200Response struct { + Data *GETTagsTagId200ResponseData `json:"data,omitempty"` +} + +// NewGETTagsTagId200Response instantiates a new GETTagsTagId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETTagsTagId200Response() *GETTagsTagId200Response { + this := GETTagsTagId200Response{} + return &this +} + +// NewGETTagsTagId200ResponseWithDefaults instantiates a new GETTagsTagId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETTagsTagId200ResponseWithDefaults() *GETTagsTagId200Response { + this := GETTagsTagId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *GETTagsTagId200Response) GetData() GETTagsTagId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret GETTagsTagId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETTagsTagId200Response) GetDataOk() (*GETTagsTagId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETTagsTagId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given GETTagsTagId200ResponseData and assigns it to the Data field. +func (o *GETTagsTagId200Response) SetData(v GETTagsTagId200ResponseData) { + o.Data = &v +} + +func (o GETTagsTagId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETTagsTagId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETTagsTagId200Response struct { + value *GETTagsTagId200Response + isSet bool +} + +func (v NullableGETTagsTagId200Response) Get() *GETTagsTagId200Response { + return v.value +} + +func (v *NullableGETTagsTagId200Response) Set(val *GETTagsTagId200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETTagsTagId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETTagsTagId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETTagsTagId200Response(val *GETTagsTagId200Response) *NullableGETTagsTagId200Response { + return &NullableGETTagsTagId200Response{value: val, isSet: true} +} + +func (v NullableGETTagsTagId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETTagsTagId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_tags_tag_id_200_response_data.go b/api/model_get_tags_tag_id_200_response_data.go new file mode 100644 index 00000000..e6858c5f --- /dev/null +++ b/api/model_get_tags_tag_id_200_response_data.go @@ -0,0 +1,274 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETTagsTagId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETTagsTagId200ResponseData{} + +// GETTagsTagId200ResponseData struct for GETTagsTagId200ResponseData +type GETTagsTagId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *GETTagsTagId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships interface{} `json:"relationships,omitempty"` +} + +// NewGETTagsTagId200ResponseData instantiates a new GETTagsTagId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETTagsTagId200ResponseData() *GETTagsTagId200ResponseData { + this := GETTagsTagId200ResponseData{} + return &this +} + +// NewGETTagsTagId200ResponseDataWithDefaults instantiates a new GETTagsTagId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETTagsTagId200ResponseDataWithDefaults() *GETTagsTagId200ResponseData { + this := GETTagsTagId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETTagsTagId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETTagsTagId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *GETTagsTagId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *GETTagsTagId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETTagsTagId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETTagsTagId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETTagsTagId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETTagsTagId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *GETTagsTagId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETTagsTagId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *GETTagsTagId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *GETTagsTagId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *GETTagsTagId200ResponseData) GetAttributes() GETTagsTagId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret GETTagsTagId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETTagsTagId200ResponseData) GetAttributesOk() (*GETTagsTagId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *GETTagsTagId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given GETTagsTagId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *GETTagsTagId200ResponseData) SetAttributes(v GETTagsTagId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETTagsTagId200ResponseData) GetRelationships() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETTagsTagId200ResponseData) GetRelationshipsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return &o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *GETTagsTagId200ResponseData) HasRelationships() bool { + if o != nil && IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. +func (o *GETTagsTagId200ResponseData) SetRelationships(v interface{}) { + o.Relationships = v +} + +func (o GETTagsTagId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETTagsTagId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if o.Relationships != nil { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableGETTagsTagId200ResponseData struct { + value *GETTagsTagId200ResponseData + isSet bool +} + +func (v NullableGETTagsTagId200ResponseData) Get() *GETTagsTagId200ResponseData { + return v.value +} + +func (v *NullableGETTagsTagId200ResponseData) Set(val *GETTagsTagId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableGETTagsTagId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableGETTagsTagId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETTagsTagId200ResponseData(val *GETTagsTagId200ResponseData) *NullableGETTagsTagId200ResponseData { + return &NullableGETTagsTagId200ResponseData{value: val, isSet: true} +} + +func (v NullableGETTagsTagId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETTagsTagId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_tags_tag_id_200_response_data_attributes.go b/api/model_get_tags_tag_id_200_response_data_attributes.go new file mode 100644 index 00000000..513e6b4c --- /dev/null +++ b/api/model_get_tags_tag_id_200_response_data_attributes.go @@ -0,0 +1,317 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETTagsTagId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETTagsTagId200ResponseDataAttributes{} + +// GETTagsTagId200ResponseDataAttributes struct for GETTagsTagId200ResponseDataAttributes +type GETTagsTagId200ResponseDataAttributes struct { + // The tag name. + Name interface{} `json:"name,omitempty"` + // Time at which the resource was created. + CreatedAt interface{} `json:"created_at,omitempty"` + // Time at which the resource was last updated. + UpdatedAt interface{} `json:"updated_at,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewGETTagsTagId200ResponseDataAttributes instantiates a new GETTagsTagId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETTagsTagId200ResponseDataAttributes() *GETTagsTagId200ResponseDataAttributes { + this := GETTagsTagId200ResponseDataAttributes{} + return &this +} + +// NewGETTagsTagId200ResponseDataAttributesWithDefaults instantiates a new GETTagsTagId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETTagsTagId200ResponseDataAttributesWithDefaults() *GETTagsTagId200ResponseDataAttributes { + this := GETTagsTagId200ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETTagsTagId200ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETTagsTagId200ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *GETTagsTagId200ResponseDataAttributes) HasName() bool { + if o != nil && IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given interface{} and assigns it to the Name field. +func (o *GETTagsTagId200ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETTagsTagId200ResponseDataAttributes) GetCreatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETTagsTagId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return &o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *GETTagsTagId200ResponseDataAttributes) HasCreatedAt() bool { + if o != nil && IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given interface{} and assigns it to the CreatedAt field. +func (o *GETTagsTagId200ResponseDataAttributes) SetCreatedAt(v interface{}) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETTagsTagId200ResponseDataAttributes) GetUpdatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETTagsTagId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return &o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *GETTagsTagId200ResponseDataAttributes) HasUpdatedAt() bool { + if o != nil && IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given interface{} and assigns it to the UpdatedAt field. +func (o *GETTagsTagId200ResponseDataAttributes) SetUpdatedAt(v interface{}) { + o.UpdatedAt = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETTagsTagId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETTagsTagId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *GETTagsTagId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *GETTagsTagId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETTagsTagId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETTagsTagId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *GETTagsTagId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *GETTagsTagId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETTagsTagId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETTagsTagId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *GETTagsTagId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *GETTagsTagId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o GETTagsTagId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETTagsTagId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableGETTagsTagId200ResponseDataAttributes struct { + value *GETTagsTagId200ResponseDataAttributes + isSet bool +} + +func (v NullableGETTagsTagId200ResponseDataAttributes) Get() *GETTagsTagId200ResponseDataAttributes { + return v.value +} + +func (v *NullableGETTagsTagId200ResponseDataAttributes) Set(val *GETTagsTagId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullableGETTagsTagId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullableGETTagsTagId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETTagsTagId200ResponseDataAttributes(val *GETTagsTagId200ResponseDataAttributes) *NullableGETTagsTagId200ResponseDataAttributes { + return &NullableGETTagsTagId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullableGETTagsTagId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETTagsTagId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_tax_calculators_200_response.go b/api/model_get_tax_calculators_200_response.go index 116e6755..bdd32e37 100644 --- a/api/model_get_tax_calculators_200_response.go +++ b/api/model_get_tax_calculators_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_tax_calculators_tax_calculator_id_200_response.go b/api/model_get_tax_calculators_tax_calculator_id_200_response.go index c8ff9d8d..35d61e09 100644 --- a/api/model_get_tax_calculators_tax_calculator_id_200_response.go +++ b/api/model_get_tax_calculators_tax_calculator_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_tax_calculators_tax_calculator_id_200_response_data.go b/api/model_get_tax_calculators_tax_calculator_id_200_response_data.go index dbcf6fdb..6c277ef9 100644 --- a/api/model_get_tax_calculators_tax_calculator_id_200_response_data.go +++ b/api/model_get_tax_calculators_tax_calculator_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_tax_categories_200_response.go b/api/model_get_tax_categories_200_response.go index 78232aa0..aa6012a0 100644 --- a/api/model_get_tax_categories_200_response.go +++ b/api/model_get_tax_categories_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_tax_categories_tax_category_id_200_response.go b/api/model_get_tax_categories_tax_category_id_200_response.go index 985c50d7..047159cf 100644 --- a/api/model_get_tax_categories_tax_category_id_200_response.go +++ b/api/model_get_tax_categories_tax_category_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_tax_categories_tax_category_id_200_response_data.go b/api/model_get_tax_categories_tax_category_id_200_response_data.go index ea3ced4d..7bb3c976 100644 --- a/api/model_get_tax_categories_tax_category_id_200_response_data.go +++ b/api/model_get_tax_categories_tax_category_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_tax_categories_tax_category_id_200_response_data_attributes.go b/api/model_get_tax_categories_tax_category_id_200_response_data_attributes.go index 7fa6dcc3..839f946a 100644 --- a/api/model_get_tax_categories_tax_category_id_200_response_data_attributes.go +++ b/api/model_get_tax_categories_tax_category_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -30,7 +30,7 @@ type GETTaxCategoriesTaxCategoryId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_tax_rules_200_response.go b/api/model_get_tax_rules_200_response.go index 7e70cda7..1c0c3669 100644 --- a/api/model_get_tax_rules_200_response.go +++ b/api/model_get_tax_rules_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_tax_rules_tax_rule_id_200_response.go b/api/model_get_tax_rules_tax_rule_id_200_response.go index 273be7aa..f1ff806e 100644 --- a/api/model_get_tax_rules_tax_rule_id_200_response.go +++ b/api/model_get_tax_rules_tax_rule_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_tax_rules_tax_rule_id_200_response_data.go b/api/model_get_tax_rules_tax_rule_id_200_response_data.go index 7061ed57..de98ef0f 100644 --- a/api/model_get_tax_rules_tax_rule_id_200_response_data.go +++ b/api/model_get_tax_rules_tax_rule_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_tax_rules_tax_rule_id_200_response_data_attributes.go b/api/model_get_tax_rules_tax_rule_id_200_response_data_attributes.go index 67f6e02d..56b7d785 100644 --- a/api/model_get_tax_rules_tax_rule_id_200_response_data_attributes.go +++ b/api/model_get_tax_rules_tax_rule_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -52,7 +52,7 @@ type GETTaxRulesTaxRuleId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_get_taxjar_accounts_200_response.go b/api/model_get_taxjar_accounts_200_response.go index 99aeeb83..dc702523 100644 --- a/api/model_get_taxjar_accounts_200_response.go +++ b/api/model_get_taxjar_accounts_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_taxjar_accounts_taxjar_account_id_200_response.go b/api/model_get_taxjar_accounts_taxjar_account_id_200_response.go index 494a7507..361ff6c4 100644 --- a/api/model_get_taxjar_accounts_taxjar_account_id_200_response.go +++ b/api/model_get_taxjar_accounts_taxjar_account_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_taxjar_accounts_taxjar_account_id_200_response_data.go b/api/model_get_taxjar_accounts_taxjar_account_id_200_response_data.go index c8d1628a..731ee51e 100644 --- a/api/model_get_taxjar_accounts_taxjar_account_id_200_response_data.go +++ b/api/model_get_taxjar_accounts_taxjar_account_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type GETTaxjarAccountsTaxjarAccountId200ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTAvalaraAccounts201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTTaxjarAccounts201ResponseDataRelationships `json:"relationships,omitempty"` } // NewGETTaxjarAccountsTaxjarAccountId200ResponseData instantiates a new GETTaxjarAccountsTaxjarAccountId200ResponseData object @@ -177,9 +177,9 @@ func (o *GETTaxjarAccountsTaxjarAccountId200ResponseData) SetAttributes(v GETMan } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *GETTaxjarAccountsTaxjarAccountId200ResponseData) GetRelationships() POSTAvalaraAccounts201ResponseDataRelationships { +func (o *GETTaxjarAccountsTaxjarAccountId200ResponseData) GetRelationships() POSTTaxjarAccounts201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTAvalaraAccounts201ResponseDataRelationships + var ret POSTTaxjarAccounts201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *GETTaxjarAccountsTaxjarAccountId200ResponseData) GetRelationships() POS // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETTaxjarAccountsTaxjarAccountId200ResponseData) GetRelationshipsOk() (*POSTAvalaraAccounts201ResponseDataRelationships, bool) { +func (o *GETTaxjarAccountsTaxjarAccountId200ResponseData) GetRelationshipsOk() (*POSTTaxjarAccounts201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *GETTaxjarAccountsTaxjarAccountId200ResponseData) HasRelationships() boo return false } -// SetRelationships gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationships and assigns it to the Relationships field. -func (o *GETTaxjarAccountsTaxjarAccountId200ResponseData) SetRelationships(v POSTAvalaraAccounts201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTTaxjarAccounts201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETTaxjarAccountsTaxjarAccountId200ResponseData) SetRelationships(v POSTTaxjarAccounts201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_get_transactions_200_response.go b/api/model_get_transactions_200_response.go index 1eb4045b..f5510e0a 100644 --- a/api/model_get_transactions_200_response.go +++ b/api/model_get_transactions_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_transactions_transaction_id_200_response.go b/api/model_get_transactions_transaction_id_200_response.go index 70c8ed13..3b0afb3e 100644 --- a/api/model_get_transactions_transaction_id_200_response.go +++ b/api/model_get_transactions_transaction_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_transactions_transaction_id_200_response_data.go b/api/model_get_transactions_transaction_id_200_response_data.go index bfc0cf0f..4f670b2f 100644 --- a/api/model_get_transactions_transaction_id_200_response_data.go +++ b/api/model_get_transactions_transaction_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_transactions_transaction_id_200_response_data_relationships.go b/api/model_get_transactions_transaction_id_200_response_data_relationships.go index 39337352..9a41d126 100644 --- a/api/model_get_transactions_transaction_id_200_response_data_relationships.go +++ b/api/model_get_transactions_transaction_id_200_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,10 @@ var _ MappedNullable = &GETTransactionsTransactionId200ResponseDataRelationships // GETTransactionsTransactionId200ResponseDataRelationships struct for GETTransactionsTransactionId200ResponseDataRelationships type GETTransactionsTransactionId200ResponseDataRelationships struct { - Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` + Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewGETTransactionsTransactionId200ResponseDataRelationships instantiates a new GETTransactionsTransactionId200ResponseDataRelationships object @@ -72,6 +75,102 @@ func (o *GETTransactionsTransactionId200ResponseDataRelationships) SetOrder(v PO o.Order = &v } +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *GETTransactionsTransactionId200ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETTransactionsTransactionId200ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *GETTransactionsTransactionId200ResponseDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *GETTransactionsTransactionId200ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { + o.Attachments = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *GETTransactionsTransactionId200ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETTransactionsTransactionId200ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *GETTransactionsTransactionId200ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *GETTransactionsTransactionId200ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *GETTransactionsTransactionId200ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETTransactionsTransactionId200ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *GETTransactionsTransactionId200ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *GETTransactionsTransactionId200ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o GETTransactionsTransactionId200ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +184,15 @@ func (o GETTransactionsTransactionId200ResponseDataRelationships) ToMap() (map[s if !IsNil(o.Order) { toSerialize["order"] = o.Order } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_get_versions_200_response.go b/api/model_get_versions_200_response.go new file mode 100644 index 00000000..44a43b4f --- /dev/null +++ b/api/model_get_versions_200_response.go @@ -0,0 +1,126 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETVersions200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETVersions200Response{} + +// GETVersions200Response struct for GETVersions200Response +type GETVersions200Response struct { + Data interface{} `json:"data,omitempty"` +} + +// NewGETVersions200Response instantiates a new GETVersions200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETVersions200Response() *GETVersions200Response { + this := GETVersions200Response{} + return &this +} + +// NewGETVersions200ResponseWithDefaults instantiates a new GETVersions200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETVersions200ResponseWithDefaults() *GETVersions200Response { + this := GETVersions200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETVersions200Response) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETVersions200Response) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETVersions200Response) HasData() bool { + if o != nil && IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given interface{} and assigns it to the Data field. +func (o *GETVersions200Response) SetData(v interface{}) { + o.Data = v +} + +func (o GETVersions200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETVersions200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETVersions200Response struct { + value *GETVersions200Response + isSet bool +} + +func (v NullableGETVersions200Response) Get() *GETVersions200Response { + return v.value +} + +func (v *NullableGETVersions200Response) Set(val *GETVersions200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETVersions200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETVersions200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETVersions200Response(val *GETVersions200Response) *NullableGETVersions200Response { + return &NullableGETVersions200Response{value: val, isSet: true} +} + +func (v NullableGETVersions200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETVersions200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_versions_version_id_200_response.go b/api/model_get_versions_version_id_200_response.go new file mode 100644 index 00000000..f2b90288 --- /dev/null +++ b/api/model_get_versions_version_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETVersionsVersionId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETVersionsVersionId200Response{} + +// GETVersionsVersionId200Response struct for GETVersionsVersionId200Response +type GETVersionsVersionId200Response struct { + Data *GETVersionsVersionId200ResponseData `json:"data,omitempty"` +} + +// NewGETVersionsVersionId200Response instantiates a new GETVersionsVersionId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETVersionsVersionId200Response() *GETVersionsVersionId200Response { + this := GETVersionsVersionId200Response{} + return &this +} + +// NewGETVersionsVersionId200ResponseWithDefaults instantiates a new GETVersionsVersionId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETVersionsVersionId200ResponseWithDefaults() *GETVersionsVersionId200Response { + this := GETVersionsVersionId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *GETVersionsVersionId200Response) GetData() GETVersionsVersionId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret GETVersionsVersionId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETVersionsVersionId200Response) GetDataOk() (*GETVersionsVersionId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *GETVersionsVersionId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given GETVersionsVersionId200ResponseData and assigns it to the Data field. +func (o *GETVersionsVersionId200Response) SetData(v GETVersionsVersionId200ResponseData) { + o.Data = &v +} + +func (o GETVersionsVersionId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETVersionsVersionId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableGETVersionsVersionId200Response struct { + value *GETVersionsVersionId200Response + isSet bool +} + +func (v NullableGETVersionsVersionId200Response) Get() *GETVersionsVersionId200Response { + return v.value +} + +func (v *NullableGETVersionsVersionId200Response) Set(val *GETVersionsVersionId200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGETVersionsVersionId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGETVersionsVersionId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETVersionsVersionId200Response(val *GETVersionsVersionId200Response) *NullableGETVersionsVersionId200Response { + return &NullableGETVersionsVersionId200Response{value: val, isSet: true} +} + +func (v NullableGETVersionsVersionId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETVersionsVersionId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_versions_version_id_200_response_data.go b/api/model_get_versions_version_id_200_response_data.go new file mode 100644 index 00000000..10f215fc --- /dev/null +++ b/api/model_get_versions_version_id_200_response_data.go @@ -0,0 +1,274 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETVersionsVersionId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETVersionsVersionId200ResponseData{} + +// GETVersionsVersionId200ResponseData struct for GETVersionsVersionId200ResponseData +type GETVersionsVersionId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *GETVersionsVersionId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships interface{} `json:"relationships,omitempty"` +} + +// NewGETVersionsVersionId200ResponseData instantiates a new GETVersionsVersionId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETVersionsVersionId200ResponseData() *GETVersionsVersionId200ResponseData { + this := GETVersionsVersionId200ResponseData{} + return &this +} + +// NewGETVersionsVersionId200ResponseDataWithDefaults instantiates a new GETVersionsVersionId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETVersionsVersionId200ResponseDataWithDefaults() *GETVersionsVersionId200ResponseData { + this := GETVersionsVersionId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETVersionsVersionId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETVersionsVersionId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *GETVersionsVersionId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *GETVersionsVersionId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETVersionsVersionId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETVersionsVersionId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *GETVersionsVersionId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *GETVersionsVersionId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *GETVersionsVersionId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETVersionsVersionId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *GETVersionsVersionId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *GETVersionsVersionId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *GETVersionsVersionId200ResponseData) GetAttributes() GETVersionsVersionId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret GETVersionsVersionId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETVersionsVersionId200ResponseData) GetAttributesOk() (*GETVersionsVersionId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *GETVersionsVersionId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given GETVersionsVersionId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *GETVersionsVersionId200ResponseData) SetAttributes(v GETVersionsVersionId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETVersionsVersionId200ResponseData) GetRelationships() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETVersionsVersionId200ResponseData) GetRelationshipsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return &o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *GETVersionsVersionId200ResponseData) HasRelationships() bool { + if o != nil && IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. +func (o *GETVersionsVersionId200ResponseData) SetRelationships(v interface{}) { + o.Relationships = v +} + +func (o GETVersionsVersionId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETVersionsVersionId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if o.Relationships != nil { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableGETVersionsVersionId200ResponseData struct { + value *GETVersionsVersionId200ResponseData + isSet bool +} + +func (v NullableGETVersionsVersionId200ResponseData) Get() *GETVersionsVersionId200ResponseData { + return v.value +} + +func (v *NullableGETVersionsVersionId200ResponseData) Set(val *GETVersionsVersionId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullableGETVersionsVersionId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullableGETVersionsVersionId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETVersionsVersionId200ResponseData(val *GETVersionsVersionId200ResponseData) *NullableGETVersionsVersionId200ResponseData { + return &NullableGETVersionsVersionId200ResponseData{value: val, isSet: true} +} + +func (v NullableGETVersionsVersionId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETVersionsVersionId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_versions_version_id_200_response_data_attributes.go b/api/model_get_versions_version_id_200_response_data_attributes.go new file mode 100644 index 00000000..84d74ba4 --- /dev/null +++ b/api/model_get_versions_version_id_200_response_data_attributes.go @@ -0,0 +1,469 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the GETVersionsVersionId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GETVersionsVersionId200ResponseDataAttributes{} + +// GETVersionsVersionId200ResponseDataAttributes struct for GETVersionsVersionId200ResponseDataAttributes +type GETVersionsVersionId200ResponseDataAttributes struct { + // The type of the versioned resource. + ResourceType interface{} `json:"resource_type,omitempty"` + // The versioned resource id. + ResourceId interface{} `json:"resource_id,omitempty"` + // The event which generates the version. + Event interface{} `json:"event,omitempty"` + // The object changes payload. + Changes interface{} `json:"changes,omitempty"` + // Information about who triggered the change. + Who interface{} `json:"who,omitempty"` + // Time at which the resource was created. + CreatedAt interface{} `json:"created_at,omitempty"` + // Time at which the resource was last updated. + UpdatedAt interface{} `json:"updated_at,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewGETVersionsVersionId200ResponseDataAttributes instantiates a new GETVersionsVersionId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGETVersionsVersionId200ResponseDataAttributes() *GETVersionsVersionId200ResponseDataAttributes { + this := GETVersionsVersionId200ResponseDataAttributes{} + return &this +} + +// NewGETVersionsVersionId200ResponseDataAttributesWithDefaults instantiates a new GETVersionsVersionId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGETVersionsVersionId200ResponseDataAttributesWithDefaults() *GETVersionsVersionId200ResponseDataAttributes { + this := GETVersionsVersionId200ResponseDataAttributes{} + return &this +} + +// GetResourceType returns the ResourceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETVersionsVersionId200ResponseDataAttributes) GetResourceType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ResourceType +} + +// GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETVersionsVersionId200ResponseDataAttributes) GetResourceTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.ResourceType) { + return nil, false + } + return &o.ResourceType, true +} + +// HasResourceType returns a boolean if a field has been set. +func (o *GETVersionsVersionId200ResponseDataAttributes) HasResourceType() bool { + if o != nil && IsNil(o.ResourceType) { + return true + } + + return false +} + +// SetResourceType gets a reference to the given interface{} and assigns it to the ResourceType field. +func (o *GETVersionsVersionId200ResponseDataAttributes) SetResourceType(v interface{}) { + o.ResourceType = v +} + +// GetResourceId returns the ResourceId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETVersionsVersionId200ResponseDataAttributes) GetResourceId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ResourceId +} + +// GetResourceIdOk returns a tuple with the ResourceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETVersionsVersionId200ResponseDataAttributes) GetResourceIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.ResourceId) { + return nil, false + } + return &o.ResourceId, true +} + +// HasResourceId returns a boolean if a field has been set. +func (o *GETVersionsVersionId200ResponseDataAttributes) HasResourceId() bool { + if o != nil && IsNil(o.ResourceId) { + return true + } + + return false +} + +// SetResourceId gets a reference to the given interface{} and assigns it to the ResourceId field. +func (o *GETVersionsVersionId200ResponseDataAttributes) SetResourceId(v interface{}) { + o.ResourceId = v +} + +// GetEvent returns the Event field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETVersionsVersionId200ResponseDataAttributes) GetEvent() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Event +} + +// GetEventOk returns a tuple with the Event field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETVersionsVersionId200ResponseDataAttributes) GetEventOk() (*interface{}, bool) { + if o == nil || IsNil(o.Event) { + return nil, false + } + return &o.Event, true +} + +// HasEvent returns a boolean if a field has been set. +func (o *GETVersionsVersionId200ResponseDataAttributes) HasEvent() bool { + if o != nil && IsNil(o.Event) { + return true + } + + return false +} + +// SetEvent gets a reference to the given interface{} and assigns it to the Event field. +func (o *GETVersionsVersionId200ResponseDataAttributes) SetEvent(v interface{}) { + o.Event = v +} + +// GetChanges returns the Changes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETVersionsVersionId200ResponseDataAttributes) GetChanges() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Changes +} + +// GetChangesOk returns a tuple with the Changes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETVersionsVersionId200ResponseDataAttributes) GetChangesOk() (*interface{}, bool) { + if o == nil || IsNil(o.Changes) { + return nil, false + } + return &o.Changes, true +} + +// HasChanges returns a boolean if a field has been set. +func (o *GETVersionsVersionId200ResponseDataAttributes) HasChanges() bool { + if o != nil && IsNil(o.Changes) { + return true + } + + return false +} + +// SetChanges gets a reference to the given interface{} and assigns it to the Changes field. +func (o *GETVersionsVersionId200ResponseDataAttributes) SetChanges(v interface{}) { + o.Changes = v +} + +// GetWho returns the Who field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETVersionsVersionId200ResponseDataAttributes) GetWho() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Who +} + +// GetWhoOk returns a tuple with the Who field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETVersionsVersionId200ResponseDataAttributes) GetWhoOk() (*interface{}, bool) { + if o == nil || IsNil(o.Who) { + return nil, false + } + return &o.Who, true +} + +// HasWho returns a boolean if a field has been set. +func (o *GETVersionsVersionId200ResponseDataAttributes) HasWho() bool { + if o != nil && IsNil(o.Who) { + return true + } + + return false +} + +// SetWho gets a reference to the given interface{} and assigns it to the Who field. +func (o *GETVersionsVersionId200ResponseDataAttributes) SetWho(v interface{}) { + o.Who = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETVersionsVersionId200ResponseDataAttributes) GetCreatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETVersionsVersionId200ResponseDataAttributes) GetCreatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return &o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *GETVersionsVersionId200ResponseDataAttributes) HasCreatedAt() bool { + if o != nil && IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given interface{} and assigns it to the CreatedAt field. +func (o *GETVersionsVersionId200ResponseDataAttributes) SetCreatedAt(v interface{}) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETVersionsVersionId200ResponseDataAttributes) GetUpdatedAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETVersionsVersionId200ResponseDataAttributes) GetUpdatedAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return &o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *GETVersionsVersionId200ResponseDataAttributes) HasUpdatedAt() bool { + if o != nil && IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given interface{} and assigns it to the UpdatedAt field. +func (o *GETVersionsVersionId200ResponseDataAttributes) SetUpdatedAt(v interface{}) { + o.UpdatedAt = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETVersionsVersionId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETVersionsVersionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *GETVersionsVersionId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *GETVersionsVersionId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETVersionsVersionId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETVersionsVersionId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *GETVersionsVersionId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *GETVersionsVersionId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETVersionsVersionId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETVersionsVersionId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *GETVersionsVersionId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *GETVersionsVersionId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o GETVersionsVersionId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GETVersionsVersionId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.ResourceType != nil { + toSerialize["resource_type"] = o.ResourceType + } + if o.ResourceId != nil { + toSerialize["resource_id"] = o.ResourceId + } + if o.Event != nil { + toSerialize["event"] = o.Event + } + if o.Changes != nil { + toSerialize["changes"] = o.Changes + } + if o.Who != nil { + toSerialize["who"] = o.Who + } + if o.CreatedAt != nil { + toSerialize["created_at"] = o.CreatedAt + } + if o.UpdatedAt != nil { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullableGETVersionsVersionId200ResponseDataAttributes struct { + value *GETVersionsVersionId200ResponseDataAttributes + isSet bool +} + +func (v NullableGETVersionsVersionId200ResponseDataAttributes) Get() *GETVersionsVersionId200ResponseDataAttributes { + return v.value +} + +func (v *NullableGETVersionsVersionId200ResponseDataAttributes) Set(val *GETVersionsVersionId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullableGETVersionsVersionId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullableGETVersionsVersionId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGETVersionsVersionId200ResponseDataAttributes(val *GETVersionsVersionId200ResponseDataAttributes) *NullableGETVersionsVersionId200ResponseDataAttributes { + return &NullableGETVersionsVersionId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullableGETVersionsVersionId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGETVersionsVersionId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_get_voids_200_response.go b/api/model_get_voids_200_response.go index c5291227..31eb54ce 100644 --- a/api/model_get_voids_200_response.go +++ b/api/model_get_voids_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_voids_void_id_200_response.go b/api/model_get_voids_void_id_200_response.go index 9bdc9216..d40cc23d 100644 --- a/api/model_get_voids_void_id_200_response.go +++ b/api/model_get_voids_void_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_voids_void_id_200_response_data.go b/api/model_get_voids_void_id_200_response_data.go index e74a3ad6..0e611569 100644 --- a/api/model_get_voids_void_id_200_response_data.go +++ b/api/model_get_voids_void_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_voids_void_id_200_response_data_relationships.go b/api/model_get_voids_void_id_200_response_data_relationships.go index 5ef317e6..ddf5b52d 100644 --- a/api/model_get_voids_void_id_200_response_data_relationships.go +++ b/api/model_get_voids_void_id_200_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,11 @@ var _ MappedNullable = &GETVoidsVoidId200ResponseDataRelationships{} // GETVoidsVoidId200ResponseDataRelationships struct for GETVoidsVoidId200ResponseDataRelationships type GETVoidsVoidId200ResponseDataRelationships struct { - Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` - ReferenceAuthorization *GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization `json:"reference_authorization,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` + Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` + ReferenceAuthorization *GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization `json:"reference_authorization,omitempty"` } // NewGETVoidsVoidId200ResponseDataRelationships instantiates a new GETVoidsVoidId200ResponseDataRelationships object @@ -74,42 +76,42 @@ func (o *GETVoidsVoidId200ResponseDataRelationships) SetOrder(v POSTAdyenPayment o.Order = &v } -// GetReferenceAuthorization returns the ReferenceAuthorization field value if set, zero value otherwise. -func (o *GETVoidsVoidId200ResponseDataRelationships) GetReferenceAuthorization() GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization { - if o == nil || IsNil(o.ReferenceAuthorization) { - var ret GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *GETVoidsVoidId200ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } - return *o.ReferenceAuthorization + return *o.Attachments } -// GetReferenceAuthorizationOk returns a tuple with the ReferenceAuthorization field value if set, nil otherwise +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETVoidsVoidId200ResponseDataRelationships) GetReferenceAuthorizationOk() (*GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization, bool) { - if o == nil || IsNil(o.ReferenceAuthorization) { +func (o *GETVoidsVoidId200ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { return nil, false } - return o.ReferenceAuthorization, true + return o.Attachments, true } -// HasReferenceAuthorization returns a boolean if a field has been set. -func (o *GETVoidsVoidId200ResponseDataRelationships) HasReferenceAuthorization() bool { - if o != nil && !IsNil(o.ReferenceAuthorization) { +// HasAttachments returns a boolean if a field has been set. +func (o *GETVoidsVoidId200ResponseDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { return true } return false } -// SetReferenceAuthorization gets a reference to the given GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization and assigns it to the ReferenceAuthorization field. -func (o *GETVoidsVoidId200ResponseDataRelationships) SetReferenceAuthorization(v GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization) { - o.ReferenceAuthorization = &v +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *GETVoidsVoidId200ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { + o.Attachments = &v } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *GETVoidsVoidId200ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { +func (o *GETVoidsVoidId200ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents + var ret POSTAddresses201ResponseDataRelationshipsEvents return ret } return *o.Events @@ -117,7 +119,7 @@ func (o *GETVoidsVoidId200ResponseDataRelationships) GetEvents() GETAuthorizatio // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETVoidsVoidId200ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { +func (o *GETVoidsVoidId200ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -133,11 +135,75 @@ func (o *GETVoidsVoidId200ResponseDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *GETVoidsVoidId200ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *GETVoidsVoidId200ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { o.Events = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *GETVoidsVoidId200ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETVoidsVoidId200ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *GETVoidsVoidId200ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *GETVoidsVoidId200ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + +// GetReferenceAuthorization returns the ReferenceAuthorization field value if set, zero value otherwise. +func (o *GETVoidsVoidId200ResponseDataRelationships) GetReferenceAuthorization() GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization { + if o == nil || IsNil(o.ReferenceAuthorization) { + var ret GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization + return ret + } + return *o.ReferenceAuthorization +} + +// GetReferenceAuthorizationOk returns a tuple with the ReferenceAuthorization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GETVoidsVoidId200ResponseDataRelationships) GetReferenceAuthorizationOk() (*GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization, bool) { + if o == nil || IsNil(o.ReferenceAuthorization) { + return nil, false + } + return o.ReferenceAuthorization, true +} + +// HasReferenceAuthorization returns a boolean if a field has been set. +func (o *GETVoidsVoidId200ResponseDataRelationships) HasReferenceAuthorization() bool { + if o != nil && !IsNil(o.ReferenceAuthorization) { + return true + } + + return false +} + +// SetReferenceAuthorization gets a reference to the given GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization and assigns it to the ReferenceAuthorization field. +func (o *GETVoidsVoidId200ResponseDataRelationships) SetReferenceAuthorization(v GETCapturesCaptureId200ResponseDataRelationshipsReferenceAuthorization) { + o.ReferenceAuthorization = &v +} + func (o GETVoidsVoidId200ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -151,12 +217,18 @@ func (o GETVoidsVoidId200ResponseDataRelationships) ToMap() (map[string]interfac if !IsNil(o.Order) { toSerialize["order"] = o.Order } - if !IsNil(o.ReferenceAuthorization) { - toSerialize["reference_authorization"] = o.ReferenceAuthorization + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments } if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + if !IsNil(o.ReferenceAuthorization) { + toSerialize["reference_authorization"] = o.ReferenceAuthorization + } return toSerialize, nil } diff --git a/api/model_get_webhooks_200_response.go b/api/model_get_webhooks_200_response.go index 078163f1..c94707a9 100644 --- a/api/model_get_webhooks_200_response.go +++ b/api/model_get_webhooks_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_webhooks_webhook_id_200_response.go b/api/model_get_webhooks_webhook_id_200_response.go index 7b2e9c0a..84eaf3e6 100644 --- a/api/model_get_webhooks_webhook_id_200_response.go +++ b/api/model_get_webhooks_webhook_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_webhooks_webhook_id_200_response_data.go b/api/model_get_webhooks_webhook_id_200_response_data.go index 625a37c2..aff20d85 100644 --- a/api/model_get_webhooks_webhook_id_200_response_data.go +++ b/api/model_get_webhooks_webhook_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_webhooks_webhook_id_200_response_data_attributes.go b/api/model_get_webhooks_webhook_id_200_response_data_attributes.go index 9e44137b..8fd84cfa 100644 --- a/api/model_get_webhooks_webhook_id_200_response_data_attributes.go +++ b/api/model_get_webhooks_webhook_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,9 +28,11 @@ type GETWebhooksWebhookId200ResponseDataAttributes struct { CallbackUrl interface{} `json:"callback_url,omitempty"` // List of related resources that should be included in the webhook body. IncludeResources interface{} `json:"include_resources,omitempty"` + // Time at which this resource was disabled. + DisabledAt interface{} `json:"disabled_at,omitempty"` // The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made. CircuitState interface{} `json:"circuit_state,omitempty"` - // The number of consecutive failures recorded by the circuit breaker associated to this webhook, will be reset on first successful call to callback. + // The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback. CircuitFailureCount interface{} `json:"circuit_failure_count,omitempty"` // The shared secret used to sign the external request payload. SharedSecret interface{} `json:"shared_secret,omitempty"` @@ -40,7 +42,7 @@ type GETWebhooksWebhookId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -195,6 +197,39 @@ func (o *GETWebhooksWebhookId200ResponseDataAttributes) SetIncludeResources(v in o.IncludeResources = v } +// GetDisabledAt returns the DisabledAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GETWebhooksWebhookId200ResponseDataAttributes) GetDisabledAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DisabledAt +} + +// GetDisabledAtOk returns a tuple with the DisabledAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GETWebhooksWebhookId200ResponseDataAttributes) GetDisabledAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.DisabledAt) { + return nil, false + } + return &o.DisabledAt, true +} + +// HasDisabledAt returns a boolean if a field has been set. +func (o *GETWebhooksWebhookId200ResponseDataAttributes) HasDisabledAt() bool { + if o != nil && IsNil(o.DisabledAt) { + return true + } + + return false +} + +// SetDisabledAt gets a reference to the given interface{} and assigns it to the DisabledAt field. +func (o *GETWebhooksWebhookId200ResponseDataAttributes) SetDisabledAt(v interface{}) { + o.DisabledAt = v +} + // GetCircuitState returns the CircuitState field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GETWebhooksWebhookId200ResponseDataAttributes) GetCircuitState() interface{} { if o == nil { @@ -481,6 +516,9 @@ func (o GETWebhooksWebhookId200ResponseDataAttributes) ToMap() (map[string]inter if o.IncludeResources != nil { toSerialize["include_resources"] = o.IncludeResources } + if o.DisabledAt != nil { + toSerialize["disabled_at"] = o.DisabledAt + } if o.CircuitState != nil { toSerialize["circuit_state"] = o.CircuitState } diff --git a/api/model_get_wire_transfers_200_response.go b/api/model_get_wire_transfers_200_response.go index 0d83e43d..2edcf793 100644 --- a/api/model_get_wire_transfers_200_response.go +++ b/api/model_get_wire_transfers_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_wire_transfers_wire_transfer_id_200_response.go b/api/model_get_wire_transfers_wire_transfer_id_200_response.go index 149fc2f5..9c5e8038 100644 --- a/api/model_get_wire_transfers_wire_transfer_id_200_response.go +++ b/api/model_get_wire_transfers_wire_transfer_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_get_wire_transfers_wire_transfer_id_200_response_data.go b/api/model_get_wire_transfers_wire_transfer_id_200_response_data.go index 947313d4..0f3d4d81 100644 --- a/api/model_get_wire_transfers_wire_transfer_id_200_response_data.go +++ b/api/model_get_wire_transfers_wire_transfer_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type GETWireTransfersWireTransferId200ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *GETWireTransfersWireTransferId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *GETTransactionsTransactionId200ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *GETWireTransfersWireTransferId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTWireTransfers201ResponseDataRelationships `json:"relationships,omitempty"` } // NewGETWireTransfersWireTransferId200ResponseData instantiates a new GETWireTransfersWireTransferId200ResponseData object @@ -177,9 +177,9 @@ func (o *GETWireTransfersWireTransferId200ResponseData) SetAttributes(v GETWireT } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *GETWireTransfersWireTransferId200ResponseData) GetRelationships() GETTransactionsTransactionId200ResponseDataRelationships { +func (o *GETWireTransfersWireTransferId200ResponseData) GetRelationships() POSTWireTransfers201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret GETTransactionsTransactionId200ResponseDataRelationships + var ret POSTWireTransfers201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *GETWireTransfersWireTransferId200ResponseData) GetRelationships() GETTr // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GETWireTransfersWireTransferId200ResponseData) GetRelationshipsOk() (*GETTransactionsTransactionId200ResponseDataRelationships, bool) { +func (o *GETWireTransfersWireTransferId200ResponseData) GetRelationshipsOk() (*POSTWireTransfers201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *GETWireTransfersWireTransferId200ResponseData) HasRelationships() bool return false } -// SetRelationships gets a reference to the given GETTransactionsTransactionId200ResponseDataRelationships and assigns it to the Relationships field. -func (o *GETWireTransfersWireTransferId200ResponseData) SetRelationships(v GETTransactionsTransactionId200ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTWireTransfers201ResponseDataRelationships and assigns it to the Relationships field. +func (o *GETWireTransfersWireTransferId200ResponseData) SetRelationships(v POSTWireTransfers201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_get_wire_transfers_wire_transfer_id_200_response_data_attributes.go b/api/model_get_wire_transfers_wire_transfer_id_200_response_data_attributes.go index d83cd5c2..8890c242 100644 --- a/api/model_get_wire_transfers_wire_transfer_id_200_response_data_attributes.go +++ b/api/model_get_wire_transfers_wire_transfer_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &GETWireTransfersWireTransferId200ResponseDataAttributes{ // GETWireTransfersWireTransferId200ResponseDataAttributes struct for GETWireTransfersWireTransferId200ResponseDataAttributes type GETWireTransfersWireTransferId200ResponseDataAttributes struct { - // Information about the payment instrument used in the transaction + // Information about the payment instrument used in the transaction. PaymentInstrument interface{} `json:"payment_instrument,omitempty"` // Time at which the resource was created. CreatedAt interface{} `json:"created_at,omitempty"` @@ -28,7 +28,7 @@ type GETWireTransfersWireTransferId200ResponseDataAttributes struct { UpdatedAt interface{} `json:"updated_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_gift_card.go b/api/model_gift_card.go index d89ec286..6d620960 100644 --- a/api/model_gift_card.go +++ b/api/model_gift_card.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_gift_card_create.go b/api/model_gift_card_create.go index d7a19d40..e85f185b 100644 --- a/api/model_gift_card_create.go +++ b/api/model_gift_card_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_gift_card_create_data.go b/api/model_gift_card_create_data.go index 9766ebe9..83505877 100644 --- a/api/model_gift_card_create_data.go +++ b/api/model_gift_card_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_gift_card_create_data_relationships.go b/api/model_gift_card_create_data_relationships.go index f1466648..a4aa78d2 100644 --- a/api/model_gift_card_create_data_relationships.go +++ b/api/model_gift_card_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,6 +22,7 @@ var _ MappedNullable = &GiftCardCreateDataRelationships{} type GiftCardCreateDataRelationships struct { Market *BillingInfoValidationRuleCreateDataRelationshipsMarket `json:"market,omitempty"` GiftCardRecipient *GiftCardCreateDataRelationshipsGiftCardRecipient `json:"gift_card_recipient,omitempty"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` } // NewGiftCardCreateDataRelationships instantiates a new GiftCardCreateDataRelationships object @@ -105,6 +106,38 @@ func (o *GiftCardCreateDataRelationships) SetGiftCardRecipient(v GiftCardCreateD o.GiftCardRecipient = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *GiftCardCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GiftCardCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *GiftCardCreateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *GiftCardCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + func (o GiftCardCreateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o GiftCardCreateDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.GiftCardRecipient) { toSerialize["gift_card_recipient"] = o.GiftCardRecipient } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_gift_card_create_data_relationships_gift_card_recipient.go b/api/model_gift_card_create_data_relationships_gift_card_recipient.go index 62645930..840d8bc1 100644 --- a/api/model_gift_card_create_data_relationships_gift_card_recipient.go +++ b/api/model_gift_card_create_data_relationships_gift_card_recipient.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_gift_card_data.go b/api/model_gift_card_data.go index 5209b762..a76742eb 100644 --- a/api/model_gift_card_data.go +++ b/api/model_gift_card_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_gift_card_data_relationships.go b/api/model_gift_card_data_relationships.go index d31eb2b5..1a5234ae 100644 --- a/api/model_gift_card_data_relationships.go +++ b/api/model_gift_card_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,8 +22,10 @@ var _ MappedNullable = &GiftCardDataRelationships{} type GiftCardDataRelationships struct { Market *AvalaraAccountDataRelationshipsMarkets `json:"market,omitempty"` GiftCardRecipient *GiftCardDataRelationshipsGiftCardRecipient `json:"gift_card_recipient,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Tags *AddressDataRelationshipsTags `json:"tags,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewGiftCardDataRelationships instantiates a new GiftCardDataRelationships object @@ -108,9 +110,9 @@ func (o *GiftCardDataRelationships) SetGiftCardRecipient(v GiftCardDataRelations } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *GiftCardDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *GiftCardDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -118,7 +120,7 @@ func (o *GiftCardDataRelationships) GetAttachments() AvalaraAccountDataRelations // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GiftCardDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *GiftCardDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -134,15 +136,15 @@ func (o *GiftCardDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *GiftCardDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *GiftCardDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *GiftCardDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { +func (o *GiftCardDataRelationships) GetEvents() AddressDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents + var ret AddressDataRelationshipsEvents return ret } return *o.Events @@ -150,7 +152,7 @@ func (o *GiftCardDataRelationships) GetEvents() AuthorizationDataRelationshipsEv // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *GiftCardDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { +func (o *GiftCardDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -166,11 +168,75 @@ func (o *GiftCardDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *GiftCardDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *GiftCardDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { o.Events = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *GiftCardDataRelationships) GetTags() AddressDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GiftCardDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *GiftCardDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressDataRelationshipsTags and assigns it to the Tags field. +func (o *GiftCardDataRelationships) SetTags(v AddressDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *GiftCardDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GiftCardDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *GiftCardDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *GiftCardDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o GiftCardDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -193,6 +259,12 @@ func (o GiftCardDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_gift_card_data_relationships_gift_card_recipient.go b/api/model_gift_card_data_relationships_gift_card_recipient.go index bca9d114..dd743f92 100644 --- a/api/model_gift_card_data_relationships_gift_card_recipient.go +++ b/api/model_gift_card_data_relationships_gift_card_recipient.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_gift_card_data_relationships_gift_card_recipient_data.go b/api/model_gift_card_data_relationships_gift_card_recipient_data.go index 6b6b2e33..a5ff4254 100644 --- a/api/model_gift_card_data_relationships_gift_card_recipient_data.go +++ b/api/model_gift_card_data_relationships_gift_card_recipient_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_gift_card_recipient.go b/api/model_gift_card_recipient.go index c5b2c7ab..84f4f7e8 100644 --- a/api/model_gift_card_recipient.go +++ b/api/model_gift_card_recipient.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_gift_card_recipient_create.go b/api/model_gift_card_recipient_create.go index d291d878..05665c61 100644 --- a/api/model_gift_card_recipient_create.go +++ b/api/model_gift_card_recipient_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_gift_card_recipient_create_data.go b/api/model_gift_card_recipient_create_data.go index f0f68c1e..3e06cba4 100644 --- a/api/model_gift_card_recipient_create_data.go +++ b/api/model_gift_card_recipient_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_gift_card_recipient_data.go b/api/model_gift_card_recipient_data.go index 17dea861..fb8c3ed3 100644 --- a/api/model_gift_card_recipient_data.go +++ b/api/model_gift_card_recipient_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_gift_card_recipient_update.go b/api/model_gift_card_recipient_update.go index c26fbe99..ed424e73 100644 --- a/api/model_gift_card_recipient_update.go +++ b/api/model_gift_card_recipient_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_gift_card_recipient_update_data.go b/api/model_gift_card_recipient_update_data.go index 3ef99de3..dde1a6de 100644 --- a/api/model_gift_card_recipient_update_data.go +++ b/api/model_gift_card_recipient_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_gift_card_update.go b/api/model_gift_card_update.go index 736e0a63..d532ca53 100644 --- a/api/model_gift_card_update.go +++ b/api/model_gift_card_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_gift_card_update_data.go b/api/model_gift_card_update_data.go index 15eee255..cd34d34b 100644 --- a/api/model_gift_card_update_data.go +++ b/api/model_gift_card_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_google_geocoder.go b/api/model_google_geocoder.go index 1d7b104d..7a08d7a6 100644 --- a/api/model_google_geocoder.go +++ b/api/model_google_geocoder.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_google_geocoder_create.go b/api/model_google_geocoder_create.go index 876bfb95..231afc42 100644 --- a/api/model_google_geocoder_create.go +++ b/api/model_google_geocoder_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_google_geocoder_create_data.go b/api/model_google_geocoder_create_data.go index 706659d2..d0aa4d64 100644 --- a/api/model_google_geocoder_create_data.go +++ b/api/model_google_geocoder_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_google_geocoder_data.go b/api/model_google_geocoder_data.go index 537b104e..bf2f15e3 100644 --- a/api/model_google_geocoder_data.go +++ b/api/model_google_geocoder_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_google_geocoder_update.go b/api/model_google_geocoder_update.go index cee8b1ed..5626ea83 100644 --- a/api/model_google_geocoder_update.go +++ b/api/model_google_geocoder_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_google_geocoder_update_data.go b/api/model_google_geocoder_update_data.go index 5481d717..bc0e10b4 100644 --- a/api/model_google_geocoder_update_data.go +++ b/api/model_google_geocoder_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_import.go b/api/model_import.go index 0957b2c7..8093fe03 100644 --- a/api/model_import.go +++ b/api/model_import.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_import_create.go b/api/model_import_create.go index 1714348c..0d7ec0d2 100644 --- a/api/model_import_create.go +++ b/api/model_import_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_import_create_data.go b/api/model_import_create_data.go index c22ccf03..9088368e 100644 --- a/api/model_import_create_data.go +++ b/api/model_import_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_import_data.go b/api/model_import_data.go index 878f2760..9d116e7f 100644 --- a/api/model_import_data.go +++ b/api/model_import_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type ImportData struct { // The resource's type Type interface{} `json:"type"` Attributes GETImportsImportId200ResponseDataAttributes `json:"attributes"` - Relationships *CleanupDataRelationships `json:"relationships,omitempty"` + Relationships *ExportDataRelationships `json:"relationships,omitempty"` } // NewImportData instantiates a new ImportData object @@ -96,9 +96,9 @@ func (o *ImportData) SetAttributes(v GETImportsImportId200ResponseDataAttributes } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *ImportData) GetRelationships() CleanupDataRelationships { +func (o *ImportData) GetRelationships() ExportDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret CleanupDataRelationships + var ret ExportDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *ImportData) GetRelationships() CleanupDataRelationships { // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ImportData) GetRelationshipsOk() (*CleanupDataRelationships, bool) { +func (o *ImportData) GetRelationshipsOk() (*ExportDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *ImportData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given CleanupDataRelationships and assigns it to the Relationships field. -func (o *ImportData) SetRelationships(v CleanupDataRelationships) { +// SetRelationships gets a reference to the given ExportDataRelationships and assigns it to the Relationships field. +func (o *ImportData) SetRelationships(v ExportDataRelationships) { o.Relationships = &v } diff --git a/api/model_import_update.go b/api/model_import_update.go new file mode 100644 index 00000000..01ac80c3 --- /dev/null +++ b/api/model_import_update.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ImportUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ImportUpdate{} + +// ImportUpdate struct for ImportUpdate +type ImportUpdate struct { + Data ImportUpdateData `json:"data"` +} + +// NewImportUpdate instantiates a new ImportUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewImportUpdate(data ImportUpdateData) *ImportUpdate { + this := ImportUpdate{} + this.Data = data + return &this +} + +// NewImportUpdateWithDefaults instantiates a new ImportUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewImportUpdateWithDefaults() *ImportUpdate { + this := ImportUpdate{} + return &this +} + +// GetData returns the Data field value +func (o *ImportUpdate) GetData() ImportUpdateData { + if o == nil { + var ret ImportUpdateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *ImportUpdate) GetDataOk() (*ImportUpdateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *ImportUpdate) SetData(v ImportUpdateData) { + o.Data = v +} + +func (o ImportUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ImportUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableImportUpdate struct { + value *ImportUpdate + isSet bool +} + +func (v NullableImportUpdate) Get() *ImportUpdate { + return v.value +} + +func (v *NullableImportUpdate) Set(val *ImportUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableImportUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableImportUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableImportUpdate(val *ImportUpdate) *NullableImportUpdate { + return &NullableImportUpdate{value: val, isSet: true} +} + +func (v NullableImportUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableImportUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_import_update_data.go b/api/model_import_update_data.go new file mode 100644 index 00000000..eb1a76db --- /dev/null +++ b/api/model_import_update_data.go @@ -0,0 +1,217 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ImportUpdateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ImportUpdateData{} + +// ImportUpdateData struct for ImportUpdateData +type ImportUpdateData struct { + // The resource's type + Type interface{} `json:"type"` + // The resource's id + Id interface{} `json:"id"` + Attributes PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes `json:"attributes"` + Relationships interface{} `json:"relationships,omitempty"` +} + +// NewImportUpdateData instantiates a new ImportUpdateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewImportUpdateData(type_ interface{}, id interface{}, attributes PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) *ImportUpdateData { + this := ImportUpdateData{} + this.Type = type_ + this.Id = id + this.Attributes = attributes + return &this +} + +// NewImportUpdateDataWithDefaults instantiates a new ImportUpdateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewImportUpdateDataWithDefaults() *ImportUpdateData { + this := ImportUpdateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *ImportUpdateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ImportUpdateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ImportUpdateData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *ImportUpdateData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ImportUpdateData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ImportUpdateData) SetId(v interface{}) { + o.Id = v +} + +// GetAttributes returns the Attributes field value +func (o *ImportUpdateData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes { + if o == nil { + var ret PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *ImportUpdateData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *ImportUpdateData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ImportUpdateData) GetRelationships() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ImportUpdateData) GetRelationshipsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return &o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *ImportUpdateData) HasRelationships() bool { + if o != nil && IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. +func (o *ImportUpdateData) SetRelationships(v interface{}) { + o.Relationships = v +} + +func (o ImportUpdateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ImportUpdateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + toSerialize["attributes"] = o.Attributes + if o.Relationships != nil { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableImportUpdateData struct { + value *ImportUpdateData + isSet bool +} + +func (v NullableImportUpdateData) Get() *ImportUpdateData { + return v.value +} + +func (v *NullableImportUpdateData) Set(val *ImportUpdateData) { + v.value = val + v.isSet = true +} + +func (v NullableImportUpdateData) IsSet() bool { + return v.isSet +} + +func (v *NullableImportUpdateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableImportUpdateData(val *ImportUpdateData) *NullableImportUpdateData { + return &NullableImportUpdateData{value: val, isSet: true} +} + +func (v NullableImportUpdateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableImportUpdateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_in_stock_subscription.go b/api/model_in_stock_subscription.go index d69d3b33..0adf7cc5 100644 --- a/api/model_in_stock_subscription.go +++ b/api/model_in_stock_subscription.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_in_stock_subscription_create.go b/api/model_in_stock_subscription_create.go index bd7d6ae5..de29970c 100644 --- a/api/model_in_stock_subscription_create.go +++ b/api/model_in_stock_subscription_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_in_stock_subscription_create_data.go b/api/model_in_stock_subscription_create_data.go index a82978d3..4eb835fc 100644 --- a/api/model_in_stock_subscription_create_data.go +++ b/api/model_in_stock_subscription_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_in_stock_subscription_create_data_relationships.go b/api/model_in_stock_subscription_create_data_relationships.go index 09ba2457..559ba04a 100644 --- a/api/model_in_stock_subscription_create_data_relationships.go +++ b/api/model_in_stock_subscription_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_in_stock_subscription_create_data_relationships_sku.go b/api/model_in_stock_subscription_create_data_relationships_sku.go index f7e9f932..0fa9296e 100644 --- a/api/model_in_stock_subscription_create_data_relationships_sku.go +++ b/api/model_in_stock_subscription_create_data_relationships_sku.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_in_stock_subscription_data.go b/api/model_in_stock_subscription_data.go index b147618d..257d85dd 100644 --- a/api/model_in_stock_subscription_data.go +++ b/api/model_in_stock_subscription_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_in_stock_subscription_data_relationships.go b/api/model_in_stock_subscription_data_relationships.go index 29791b12..838a387f 100644 --- a/api/model_in_stock_subscription_data_relationships.go +++ b/api/model_in_stock_subscription_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,8 @@ type InStockSubscriptionDataRelationships struct { Market *AvalaraAccountDataRelationshipsMarkets `json:"market,omitempty"` Customer *CouponRecipientDataRelationshipsCustomer `json:"customer,omitempty"` Sku *BundleDataRelationshipsSkus `json:"sku,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewInStockSubscriptionDataRelationships instantiates a new InStockSubscriptionDataRelationships object @@ -140,9 +141,9 @@ func (o *InStockSubscriptionDataRelationships) SetSku(v BundleDataRelationshipsS } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *InStockSubscriptionDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { +func (o *InStockSubscriptionDataRelationships) GetEvents() AddressDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents + var ret AddressDataRelationshipsEvents return ret } return *o.Events @@ -150,7 +151,7 @@ func (o *InStockSubscriptionDataRelationships) GetEvents() AuthorizationDataRela // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *InStockSubscriptionDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { +func (o *InStockSubscriptionDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -166,11 +167,43 @@ func (o *InStockSubscriptionDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *InStockSubscriptionDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *InStockSubscriptionDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { o.Events = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *InStockSubscriptionDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InStockSubscriptionDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *InStockSubscriptionDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *InStockSubscriptionDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o InStockSubscriptionDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -193,6 +226,9 @@ func (o InStockSubscriptionDataRelationships) ToMap() (map[string]interface{}, e if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_in_stock_subscription_update.go b/api/model_in_stock_subscription_update.go index 16d4c2ab..5b926ec0 100644 --- a/api/model_in_stock_subscription_update.go +++ b/api/model_in_stock_subscription_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_in_stock_subscription_update_data.go b/api/model_in_stock_subscription_update_data.go index 8622e147..8bcb4772 100644 --- a/api/model_in_stock_subscription_update_data.go +++ b/api/model_in_stock_subscription_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_in_stock_subscription_update_data_relationships.go b/api/model_in_stock_subscription_update_data_relationships.go index 3877eca4..64291c20 100644 --- a/api/model_in_stock_subscription_update_data_relationships.go +++ b/api/model_in_stock_subscription_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_model.go b/api/model_inventory_model.go index 38f4da72..55266414 100644 --- a/api/model_inventory_model.go +++ b/api/model_inventory_model.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_model_create.go b/api/model_inventory_model_create.go index 3bc14046..343763ae 100644 --- a/api/model_inventory_model_create.go +++ b/api/model_inventory_model_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_model_create_data.go b/api/model_inventory_model_create_data.go index 1c480fe9..f82d49b1 100644 --- a/api/model_inventory_model_create_data.go +++ b/api/model_inventory_model_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_model_data.go b/api/model_inventory_model_data.go index 62ee37de..2326f6ff 100644 --- a/api/model_inventory_model_data.go +++ b/api/model_inventory_model_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_model_data_relationships.go b/api/model_inventory_model_data_relationships.go index 8e77e155..1bf46948 100644 --- a/api/model_inventory_model_data_relationships.go +++ b/api/model_inventory_model_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,7 +22,8 @@ var _ MappedNullable = &InventoryModelDataRelationships{} type InventoryModelDataRelationships struct { InventoryStockLocations *InventoryModelDataRelationshipsInventoryStockLocations `json:"inventory_stock_locations,omitempty"` InventoryReturnLocations *InventoryModelDataRelationshipsInventoryReturnLocations `json:"inventory_return_locations,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewInventoryModelDataRelationships instantiates a new InventoryModelDataRelationships object @@ -107,9 +108,9 @@ func (o *InventoryModelDataRelationships) SetInventoryReturnLocations(v Inventor } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *InventoryModelDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *InventoryModelDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -117,7 +118,7 @@ func (o *InventoryModelDataRelationships) GetAttachments() AvalaraAccountDataRel // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *InventoryModelDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *InventoryModelDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -133,11 +134,43 @@ func (o *InventoryModelDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *InventoryModelDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *InventoryModelDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *InventoryModelDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InventoryModelDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *InventoryModelDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *InventoryModelDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o InventoryModelDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -157,6 +190,9 @@ func (o InventoryModelDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_inventory_model_data_relationships_inventory_return_locations.go b/api/model_inventory_model_data_relationships_inventory_return_locations.go index cc50574b..8233a20b 100644 --- a/api/model_inventory_model_data_relationships_inventory_return_locations.go +++ b/api/model_inventory_model_data_relationships_inventory_return_locations.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_model_data_relationships_inventory_return_locations_data.go b/api/model_inventory_model_data_relationships_inventory_return_locations_data.go index f0fe829f..ef5e7185 100644 --- a/api/model_inventory_model_data_relationships_inventory_return_locations_data.go +++ b/api/model_inventory_model_data_relationships_inventory_return_locations_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_model_data_relationships_inventory_stock_locations.go b/api/model_inventory_model_data_relationships_inventory_stock_locations.go index 1e1616de..776ec74d 100644 --- a/api/model_inventory_model_data_relationships_inventory_stock_locations.go +++ b/api/model_inventory_model_data_relationships_inventory_stock_locations.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_model_data_relationships_inventory_stock_locations_data.go b/api/model_inventory_model_data_relationships_inventory_stock_locations_data.go index b3d75031..f4c3625c 100644 --- a/api/model_inventory_model_data_relationships_inventory_stock_locations_data.go +++ b/api/model_inventory_model_data_relationships_inventory_stock_locations_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_model_update.go b/api/model_inventory_model_update.go index a6101e73..409553b3 100644 --- a/api/model_inventory_model_update.go +++ b/api/model_inventory_model_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_model_update_data.go b/api/model_inventory_model_update_data.go index a01b88a9..d36b22a9 100644 --- a/api/model_inventory_model_update_data.go +++ b/api/model_inventory_model_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_return_location.go b/api/model_inventory_return_location.go index b1d25bac..7331fb4c 100644 --- a/api/model_inventory_return_location.go +++ b/api/model_inventory_return_location.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_return_location_create.go b/api/model_inventory_return_location_create.go index 1a25e0d4..ae418dcb 100644 --- a/api/model_inventory_return_location_create.go +++ b/api/model_inventory_return_location_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_return_location_create_data.go b/api/model_inventory_return_location_create_data.go index 14429150..3843c22a 100644 --- a/api/model_inventory_return_location_create_data.go +++ b/api/model_inventory_return_location_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_return_location_create_data_relationships.go b/api/model_inventory_return_location_create_data_relationships.go index 0c60a3a4..6e31982a 100644 --- a/api/model_inventory_return_location_create_data_relationships.go +++ b/api/model_inventory_return_location_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_return_location_create_data_relationships_inventory_model.go b/api/model_inventory_return_location_create_data_relationships_inventory_model.go index 97d4f954..cc53d259 100644 --- a/api/model_inventory_return_location_create_data_relationships_inventory_model.go +++ b/api/model_inventory_return_location_create_data_relationships_inventory_model.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_return_location_data.go b/api/model_inventory_return_location_data.go index 61c4940e..4466aec7 100644 --- a/api/model_inventory_return_location_data.go +++ b/api/model_inventory_return_location_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_return_location_data_relationships.go b/api/model_inventory_return_location_data_relationships.go index 301ef86c..c4932572 100644 --- a/api/model_inventory_return_location_data_relationships.go +++ b/api/model_inventory_return_location_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,6 +22,7 @@ var _ MappedNullable = &InventoryReturnLocationDataRelationships{} type InventoryReturnLocationDataRelationships struct { StockLocation *DeliveryLeadTimeDataRelationshipsStockLocation `json:"stock_location,omitempty"` InventoryModel *InventoryReturnLocationDataRelationshipsInventoryModel `json:"inventory_model,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewInventoryReturnLocationDataRelationships instantiates a new InventoryReturnLocationDataRelationships object @@ -105,6 +106,38 @@ func (o *InventoryReturnLocationDataRelationships) SetInventoryModel(v Inventory o.InventoryModel = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *InventoryReturnLocationDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InventoryReturnLocationDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *InventoryReturnLocationDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *InventoryReturnLocationDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o InventoryReturnLocationDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o InventoryReturnLocationDataRelationships) ToMap() (map[string]interface{ if !IsNil(o.InventoryModel) { toSerialize["inventory_model"] = o.InventoryModel } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_inventory_return_location_data_relationships_inventory_model.go b/api/model_inventory_return_location_data_relationships_inventory_model.go index d1c9ebf8..28f6d11f 100644 --- a/api/model_inventory_return_location_data_relationships_inventory_model.go +++ b/api/model_inventory_return_location_data_relationships_inventory_model.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_return_location_data_relationships_inventory_model_data.go b/api/model_inventory_return_location_data_relationships_inventory_model_data.go index 18ec54cf..5aa657b3 100644 --- a/api/model_inventory_return_location_data_relationships_inventory_model_data.go +++ b/api/model_inventory_return_location_data_relationships_inventory_model_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_return_location_update.go b/api/model_inventory_return_location_update.go index 4eb76bf5..0d56d5e2 100644 --- a/api/model_inventory_return_location_update.go +++ b/api/model_inventory_return_location_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_return_location_update_data.go b/api/model_inventory_return_location_update_data.go index 1ef77b22..9cd6eee0 100644 --- a/api/model_inventory_return_location_update_data.go +++ b/api/model_inventory_return_location_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_return_location_update_data_relationships.go b/api/model_inventory_return_location_update_data_relationships.go index df8b735d..b9a528c6 100644 --- a/api/model_inventory_return_location_update_data_relationships.go +++ b/api/model_inventory_return_location_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_stock_location.go b/api/model_inventory_stock_location.go index f28888a9..d46591aa 100644 --- a/api/model_inventory_stock_location.go +++ b/api/model_inventory_stock_location.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_stock_location_create.go b/api/model_inventory_stock_location_create.go index 4f6c032d..13466cba 100644 --- a/api/model_inventory_stock_location_create.go +++ b/api/model_inventory_stock_location_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_stock_location_create_data.go b/api/model_inventory_stock_location_create_data.go index ab633721..b3dac04a 100644 --- a/api/model_inventory_stock_location_create_data.go +++ b/api/model_inventory_stock_location_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_stock_location_data.go b/api/model_inventory_stock_location_data.go index 417ff63d..6c528704 100644 --- a/api/model_inventory_stock_location_data.go +++ b/api/model_inventory_stock_location_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_stock_location_update.go b/api/model_inventory_stock_location_update.go index 1d7a9cef..a13604e6 100644 --- a/api/model_inventory_stock_location_update.go +++ b/api/model_inventory_stock_location_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_inventory_stock_location_update_data.go b/api/model_inventory_stock_location_update_data.go index 4df8fcbf..a18479ff 100644 --- a/api/model_inventory_stock_location_update_data.go +++ b/api/model_inventory_stock_location_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_klarna_gateway.go b/api/model_klarna_gateway.go index ff80e822..7c45a517 100644 --- a/api/model_klarna_gateway.go +++ b/api/model_klarna_gateway.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_klarna_gateway_create.go b/api/model_klarna_gateway_create.go index fdbfbba2..9ef2bbbc 100644 --- a/api/model_klarna_gateway_create.go +++ b/api/model_klarna_gateway_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_klarna_gateway_create_data.go b/api/model_klarna_gateway_create_data.go index 4f8a3264..4f9db330 100644 --- a/api/model_klarna_gateway_create_data.go +++ b/api/model_klarna_gateway_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_klarna_gateway_create_data_relationships.go b/api/model_klarna_gateway_create_data_relationships.go index d9c29665..259f8884 100644 --- a/api/model_klarna_gateway_create_data_relationships.go +++ b/api/model_klarna_gateway_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_klarna_gateway_create_data_relationships_klarna_payments.go b/api/model_klarna_gateway_create_data_relationships_klarna_payments.go index 1bdbcc64..76c459ed 100644 --- a/api/model_klarna_gateway_create_data_relationships_klarna_payments.go +++ b/api/model_klarna_gateway_create_data_relationships_klarna_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_klarna_gateway_data.go b/api/model_klarna_gateway_data.go index 64d6c02b..b115c504 100644 --- a/api/model_klarna_gateway_data.go +++ b/api/model_klarna_gateway_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_klarna_gateway_data_relationships.go b/api/model_klarna_gateway_data_relationships.go index c1675d4d..8155e41e 100644 --- a/api/model_klarna_gateway_data_relationships.go +++ b/api/model_klarna_gateway_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &KlarnaGatewayDataRelationships{} // KlarnaGatewayDataRelationships struct for KlarnaGatewayDataRelationships type KlarnaGatewayDataRelationships struct { PaymentMethods *AdyenGatewayDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` KlarnaPayments *KlarnaGatewayDataRelationshipsKlarnaPayments `json:"klarna_payments,omitempty"` } @@ -73,6 +74,38 @@ func (o *KlarnaGatewayDataRelationships) SetPaymentMethods(v AdyenGatewayDataRel o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *KlarnaGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *KlarnaGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *KlarnaGatewayDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *KlarnaGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + // GetKlarnaPayments returns the KlarnaPayments field value if set, zero value otherwise. func (o *KlarnaGatewayDataRelationships) GetKlarnaPayments() KlarnaGatewayDataRelationshipsKlarnaPayments { if o == nil || IsNil(o.KlarnaPayments) { @@ -118,6 +151,9 @@ func (o KlarnaGatewayDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.KlarnaPayments) { toSerialize["klarna_payments"] = o.KlarnaPayments } diff --git a/api/model_klarna_gateway_data_relationships_klarna_payments.go b/api/model_klarna_gateway_data_relationships_klarna_payments.go index 32778443..d5f696ee 100644 --- a/api/model_klarna_gateway_data_relationships_klarna_payments.go +++ b/api/model_klarna_gateway_data_relationships_klarna_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_klarna_gateway_data_relationships_klarna_payments_data.go b/api/model_klarna_gateway_data_relationships_klarna_payments_data.go index 678fab56..ea7851ef 100644 --- a/api/model_klarna_gateway_data_relationships_klarna_payments_data.go +++ b/api/model_klarna_gateway_data_relationships_klarna_payments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_klarna_gateway_update.go b/api/model_klarna_gateway_update.go index 98507ccd..d3918341 100644 --- a/api/model_klarna_gateway_update.go +++ b/api/model_klarna_gateway_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_klarna_gateway_update_data.go b/api/model_klarna_gateway_update_data.go index 2ca32c49..bd8a0a75 100644 --- a/api/model_klarna_gateway_update_data.go +++ b/api/model_klarna_gateway_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_klarna_payment.go b/api/model_klarna_payment.go index 1195a0f7..a1a898ba 100644 --- a/api/model_klarna_payment.go +++ b/api/model_klarna_payment.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_klarna_payment_create.go b/api/model_klarna_payment_create.go index 2e6905df..e3cf7c3f 100644 --- a/api/model_klarna_payment_create.go +++ b/api/model_klarna_payment_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_klarna_payment_create_data.go b/api/model_klarna_payment_create_data.go index b2eed180..b3c9e7f9 100644 --- a/api/model_klarna_payment_create_data.go +++ b/api/model_klarna_payment_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_klarna_payment_data.go b/api/model_klarna_payment_data.go index fa8bac0c..298945f8 100644 --- a/api/model_klarna_payment_data.go +++ b/api/model_klarna_payment_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_klarna_payment_update.go b/api/model_klarna_payment_update.go index 07905811..d2c53ead 100644 --- a/api/model_klarna_payment_update.go +++ b/api/model_klarna_payment_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_klarna_payment_update_data.go b/api/model_klarna_payment_update_data.go index fda19f0a..baebbe13 100644 --- a/api/model_klarna_payment_update_data.go +++ b/api/model_klarna_payment_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item.go b/api/model_line_item.go index bd7cba8d..f8f47a30 100644 --- a/api/model_line_item.go +++ b/api/model_line_item.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_create.go b/api/model_line_item_create.go index 1202638a..639466fd 100644 --- a/api/model_line_item_create.go +++ b/api/model_line_item_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_create_data.go b/api/model_line_item_create_data.go index 60c1c478..de17f723 100644 --- a/api/model_line_item_create_data.go +++ b/api/model_line_item_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_create_data_relationships.go b/api/model_line_item_create_data_relationships.go index 30e86362..6f205826 100644 --- a/api/model_line_item_create_data_relationships.go +++ b/api/model_line_item_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,6 +22,7 @@ var _ MappedNullable = &LineItemCreateDataRelationships{} type LineItemCreateDataRelationships struct { Order AdyenPaymentCreateDataRelationshipsOrder `json:"order"` Item *LineItemCreateDataRelationshipsItem `json:"item,omitempty"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` } // NewLineItemCreateDataRelationships instantiates a new LineItemCreateDataRelationships object @@ -98,6 +99,38 @@ func (o *LineItemCreateDataRelationships) SetItem(v LineItemCreateDataRelationsh o.Item = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *LineItemCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *LineItemCreateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *LineItemCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + func (o LineItemCreateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -112,6 +145,9 @@ func (o LineItemCreateDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.Item) { toSerialize["item"] = o.Item } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_line_item_create_data_relationships_item.go b/api/model_line_item_create_data_relationships_item.go index df3fffd9..87c10520 100644 --- a/api/model_line_item_create_data_relationships_item.go +++ b/api/model_line_item_create_data_relationships_item.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_data.go b/api/model_line_item_data.go index 4f850ea2..48e5f83a 100644 --- a/api/model_line_item_data.go +++ b/api/model_line_item_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_data_relationships.go b/api/model_line_item_data_relationships.go index 71caee40..e8c2d5ea 100644 --- a/api/model_line_item_data_relationships.go +++ b/api/model_line_item_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,13 +20,21 @@ var _ MappedNullable = &LineItemDataRelationships{} // LineItemDataRelationships struct for LineItemDataRelationships type LineItemDataRelationships struct { - Order *AdyenPaymentDataRelationshipsOrder `json:"order,omitempty"` - Item *LineItemDataRelationshipsItem `json:"item,omitempty"` - LineItemOptions *LineItemDataRelationshipsLineItemOptions `json:"line_item_options,omitempty"` - // Deprecated - ShipmentLineItems *LineItemDataRelationshipsShipmentLineItems `json:"shipment_line_items,omitempty"` - StockLineItems *LineItemDataRelationshipsStockLineItems `json:"stock_line_items,omitempty"` - StockTransfers *LineItemDataRelationshipsStockTransfers `json:"stock_transfers,omitempty"` + Order *AdyenPaymentDataRelationshipsOrder `json:"order,omitempty"` + Item *LineItemDataRelationshipsItem `json:"item,omitempty"` + Sku *BundleDataRelationshipsSkus `json:"sku,omitempty"` + Bundle *LineItemDataRelationshipsBundle `json:"bundle,omitempty"` + Adjustment *LineItemDataRelationshipsAdjustment `json:"adjustment,omitempty"` + GiftCard *LineItemDataRelationshipsGiftCard `json:"gift_card,omitempty"` + Shipment *LineItemDataRelationshipsShipment `json:"shipment,omitempty"` + PaymentMethod *AdyenGatewayDataRelationshipsPaymentMethods `json:"payment_method,omitempty"` + LineItemOptions *LineItemDataRelationshipsLineItemOptions `json:"line_item_options,omitempty"` + ReturnLineItems *LineItemDataRelationshipsReturnLineItems `json:"return_line_items,omitempty"` + StockReservations *LineItemDataRelationshipsStockReservations `json:"stock_reservations,omitempty"` + StockLineItems *LineItemDataRelationshipsStockLineItems `json:"stock_line_items,omitempty"` + StockTransfers *LineItemDataRelationshipsStockTransfers `json:"stock_transfers,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Tags *AddressDataRelationshipsTags `json:"tags,omitempty"` } // NewLineItemDataRelationships instantiates a new LineItemDataRelationships object @@ -110,6 +118,198 @@ func (o *LineItemDataRelationships) SetItem(v LineItemDataRelationshipsItem) { o.Item = &v } +// GetSku returns the Sku field value if set, zero value otherwise. +func (o *LineItemDataRelationships) GetSku() BundleDataRelationshipsSkus { + if o == nil || IsNil(o.Sku) { + var ret BundleDataRelationshipsSkus + return ret + } + return *o.Sku +} + +// GetSkuOk returns a tuple with the Sku field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemDataRelationships) GetSkuOk() (*BundleDataRelationshipsSkus, bool) { + if o == nil || IsNil(o.Sku) { + return nil, false + } + return o.Sku, true +} + +// HasSku returns a boolean if a field has been set. +func (o *LineItemDataRelationships) HasSku() bool { + if o != nil && !IsNil(o.Sku) { + return true + } + + return false +} + +// SetSku gets a reference to the given BundleDataRelationshipsSkus and assigns it to the Sku field. +func (o *LineItemDataRelationships) SetSku(v BundleDataRelationshipsSkus) { + o.Sku = &v +} + +// GetBundle returns the Bundle field value if set, zero value otherwise. +func (o *LineItemDataRelationships) GetBundle() LineItemDataRelationshipsBundle { + if o == nil || IsNil(o.Bundle) { + var ret LineItemDataRelationshipsBundle + return ret + } + return *o.Bundle +} + +// GetBundleOk returns a tuple with the Bundle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemDataRelationships) GetBundleOk() (*LineItemDataRelationshipsBundle, bool) { + if o == nil || IsNil(o.Bundle) { + return nil, false + } + return o.Bundle, true +} + +// HasBundle returns a boolean if a field has been set. +func (o *LineItemDataRelationships) HasBundle() bool { + if o != nil && !IsNil(o.Bundle) { + return true + } + + return false +} + +// SetBundle gets a reference to the given LineItemDataRelationshipsBundle and assigns it to the Bundle field. +func (o *LineItemDataRelationships) SetBundle(v LineItemDataRelationshipsBundle) { + o.Bundle = &v +} + +// GetAdjustment returns the Adjustment field value if set, zero value otherwise. +func (o *LineItemDataRelationships) GetAdjustment() LineItemDataRelationshipsAdjustment { + if o == nil || IsNil(o.Adjustment) { + var ret LineItemDataRelationshipsAdjustment + return ret + } + return *o.Adjustment +} + +// GetAdjustmentOk returns a tuple with the Adjustment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemDataRelationships) GetAdjustmentOk() (*LineItemDataRelationshipsAdjustment, bool) { + if o == nil || IsNil(o.Adjustment) { + return nil, false + } + return o.Adjustment, true +} + +// HasAdjustment returns a boolean if a field has been set. +func (o *LineItemDataRelationships) HasAdjustment() bool { + if o != nil && !IsNil(o.Adjustment) { + return true + } + + return false +} + +// SetAdjustment gets a reference to the given LineItemDataRelationshipsAdjustment and assigns it to the Adjustment field. +func (o *LineItemDataRelationships) SetAdjustment(v LineItemDataRelationshipsAdjustment) { + o.Adjustment = &v +} + +// GetGiftCard returns the GiftCard field value if set, zero value otherwise. +func (o *LineItemDataRelationships) GetGiftCard() LineItemDataRelationshipsGiftCard { + if o == nil || IsNil(o.GiftCard) { + var ret LineItemDataRelationshipsGiftCard + return ret + } + return *o.GiftCard +} + +// GetGiftCardOk returns a tuple with the GiftCard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemDataRelationships) GetGiftCardOk() (*LineItemDataRelationshipsGiftCard, bool) { + if o == nil || IsNil(o.GiftCard) { + return nil, false + } + return o.GiftCard, true +} + +// HasGiftCard returns a boolean if a field has been set. +func (o *LineItemDataRelationships) HasGiftCard() bool { + if o != nil && !IsNil(o.GiftCard) { + return true + } + + return false +} + +// SetGiftCard gets a reference to the given LineItemDataRelationshipsGiftCard and assigns it to the GiftCard field. +func (o *LineItemDataRelationships) SetGiftCard(v LineItemDataRelationshipsGiftCard) { + o.GiftCard = &v +} + +// GetShipment returns the Shipment field value if set, zero value otherwise. +func (o *LineItemDataRelationships) GetShipment() LineItemDataRelationshipsShipment { + if o == nil || IsNil(o.Shipment) { + var ret LineItemDataRelationshipsShipment + return ret + } + return *o.Shipment +} + +// GetShipmentOk returns a tuple with the Shipment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemDataRelationships) GetShipmentOk() (*LineItemDataRelationshipsShipment, bool) { + if o == nil || IsNil(o.Shipment) { + return nil, false + } + return o.Shipment, true +} + +// HasShipment returns a boolean if a field has been set. +func (o *LineItemDataRelationships) HasShipment() bool { + if o != nil && !IsNil(o.Shipment) { + return true + } + + return false +} + +// SetShipment gets a reference to the given LineItemDataRelationshipsShipment and assigns it to the Shipment field. +func (o *LineItemDataRelationships) SetShipment(v LineItemDataRelationshipsShipment) { + o.Shipment = &v +} + +// GetPaymentMethod returns the PaymentMethod field value if set, zero value otherwise. +func (o *LineItemDataRelationships) GetPaymentMethod() AdyenGatewayDataRelationshipsPaymentMethods { + if o == nil || IsNil(o.PaymentMethod) { + var ret AdyenGatewayDataRelationshipsPaymentMethods + return ret + } + return *o.PaymentMethod +} + +// GetPaymentMethodOk returns a tuple with the PaymentMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemDataRelationships) GetPaymentMethodOk() (*AdyenGatewayDataRelationshipsPaymentMethods, bool) { + if o == nil || IsNil(o.PaymentMethod) { + return nil, false + } + return o.PaymentMethod, true +} + +// HasPaymentMethod returns a boolean if a field has been set. +func (o *LineItemDataRelationships) HasPaymentMethod() bool { + if o != nil && !IsNil(o.PaymentMethod) { + return true + } + + return false +} + +// SetPaymentMethod gets a reference to the given AdyenGatewayDataRelationshipsPaymentMethods and assigns it to the PaymentMethod field. +func (o *LineItemDataRelationships) SetPaymentMethod(v AdyenGatewayDataRelationshipsPaymentMethods) { + o.PaymentMethod = &v +} + // GetLineItemOptions returns the LineItemOptions field value if set, zero value otherwise. func (o *LineItemDataRelationships) GetLineItemOptions() LineItemDataRelationshipsLineItemOptions { if o == nil || IsNil(o.LineItemOptions) { @@ -142,39 +342,68 @@ func (o *LineItemDataRelationships) SetLineItemOptions(v LineItemDataRelationshi o.LineItemOptions = &v } -// GetShipmentLineItems returns the ShipmentLineItems field value if set, zero value otherwise. -// Deprecated -func (o *LineItemDataRelationships) GetShipmentLineItems() LineItemDataRelationshipsShipmentLineItems { - if o == nil || IsNil(o.ShipmentLineItems) { - var ret LineItemDataRelationshipsShipmentLineItems +// GetReturnLineItems returns the ReturnLineItems field value if set, zero value otherwise. +func (o *LineItemDataRelationships) GetReturnLineItems() LineItemDataRelationshipsReturnLineItems { + if o == nil || IsNil(o.ReturnLineItems) { + var ret LineItemDataRelationshipsReturnLineItems return ret } - return *o.ShipmentLineItems + return *o.ReturnLineItems } -// GetShipmentLineItemsOk returns a tuple with the ShipmentLineItems field value if set, nil otherwise +// GetReturnLineItemsOk returns a tuple with the ReturnLineItems field value if set, nil otherwise // and a boolean to check if the value has been set. -// Deprecated -func (o *LineItemDataRelationships) GetShipmentLineItemsOk() (*LineItemDataRelationshipsShipmentLineItems, bool) { - if o == nil || IsNil(o.ShipmentLineItems) { +func (o *LineItemDataRelationships) GetReturnLineItemsOk() (*LineItemDataRelationshipsReturnLineItems, bool) { + if o == nil || IsNil(o.ReturnLineItems) { return nil, false } - return o.ShipmentLineItems, true + return o.ReturnLineItems, true } -// HasShipmentLineItems returns a boolean if a field has been set. -func (o *LineItemDataRelationships) HasShipmentLineItems() bool { - if o != nil && !IsNil(o.ShipmentLineItems) { +// HasReturnLineItems returns a boolean if a field has been set. +func (o *LineItemDataRelationships) HasReturnLineItems() bool { + if o != nil && !IsNil(o.ReturnLineItems) { return true } return false } -// SetShipmentLineItems gets a reference to the given LineItemDataRelationshipsShipmentLineItems and assigns it to the ShipmentLineItems field. -// Deprecated -func (o *LineItemDataRelationships) SetShipmentLineItems(v LineItemDataRelationshipsShipmentLineItems) { - o.ShipmentLineItems = &v +// SetReturnLineItems gets a reference to the given LineItemDataRelationshipsReturnLineItems and assigns it to the ReturnLineItems field. +func (o *LineItemDataRelationships) SetReturnLineItems(v LineItemDataRelationshipsReturnLineItems) { + o.ReturnLineItems = &v +} + +// GetStockReservations returns the StockReservations field value if set, zero value otherwise. +func (o *LineItemDataRelationships) GetStockReservations() LineItemDataRelationshipsStockReservations { + if o == nil || IsNil(o.StockReservations) { + var ret LineItemDataRelationshipsStockReservations + return ret + } + return *o.StockReservations +} + +// GetStockReservationsOk returns a tuple with the StockReservations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemDataRelationships) GetStockReservationsOk() (*LineItemDataRelationshipsStockReservations, bool) { + if o == nil || IsNil(o.StockReservations) { + return nil, false + } + return o.StockReservations, true +} + +// HasStockReservations returns a boolean if a field has been set. +func (o *LineItemDataRelationships) HasStockReservations() bool { + if o != nil && !IsNil(o.StockReservations) { + return true + } + + return false +} + +// SetStockReservations gets a reference to the given LineItemDataRelationshipsStockReservations and assigns it to the StockReservations field. +func (o *LineItemDataRelationships) SetStockReservations(v LineItemDataRelationshipsStockReservations) { + o.StockReservations = &v } // GetStockLineItems returns the StockLineItems field value if set, zero value otherwise. @@ -241,6 +470,70 @@ func (o *LineItemDataRelationships) SetStockTransfers(v LineItemDataRelationship o.StockTransfers = &v } +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *LineItemDataRelationships) GetEvents() AddressDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret AddressDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *LineItemDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *LineItemDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *LineItemDataRelationships) GetTags() AddressDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *LineItemDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressDataRelationshipsTags and assigns it to the Tags field. +func (o *LineItemDataRelationships) SetTags(v AddressDataRelationshipsTags) { + o.Tags = &v +} + func (o LineItemDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -257,11 +550,32 @@ func (o LineItemDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Item) { toSerialize["item"] = o.Item } + if !IsNil(o.Sku) { + toSerialize["sku"] = o.Sku + } + if !IsNil(o.Bundle) { + toSerialize["bundle"] = o.Bundle + } + if !IsNil(o.Adjustment) { + toSerialize["adjustment"] = o.Adjustment + } + if !IsNil(o.GiftCard) { + toSerialize["gift_card"] = o.GiftCard + } + if !IsNil(o.Shipment) { + toSerialize["shipment"] = o.Shipment + } + if !IsNil(o.PaymentMethod) { + toSerialize["payment_method"] = o.PaymentMethod + } if !IsNil(o.LineItemOptions) { toSerialize["line_item_options"] = o.LineItemOptions } - if !IsNil(o.ShipmentLineItems) { - toSerialize["shipment_line_items"] = o.ShipmentLineItems + if !IsNil(o.ReturnLineItems) { + toSerialize["return_line_items"] = o.ReturnLineItems + } + if !IsNil(o.StockReservations) { + toSerialize["stock_reservations"] = o.StockReservations } if !IsNil(o.StockLineItems) { toSerialize["stock_line_items"] = o.StockLineItems @@ -269,6 +583,12 @@ func (o LineItemDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.StockTransfers) { toSerialize["stock_transfers"] = o.StockTransfers } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_line_item_data_relationships_adjustment.go b/api/model_line_item_data_relationships_adjustment.go new file mode 100644 index 00000000..50e8d7d0 --- /dev/null +++ b/api/model_line_item_data_relationships_adjustment.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LineItemDataRelationshipsAdjustment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LineItemDataRelationshipsAdjustment{} + +// LineItemDataRelationshipsAdjustment struct for LineItemDataRelationshipsAdjustment +type LineItemDataRelationshipsAdjustment struct { + Data *LineItemDataRelationshipsAdjustmentData `json:"data,omitempty"` +} + +// NewLineItemDataRelationshipsAdjustment instantiates a new LineItemDataRelationshipsAdjustment object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLineItemDataRelationshipsAdjustment() *LineItemDataRelationshipsAdjustment { + this := LineItemDataRelationshipsAdjustment{} + return &this +} + +// NewLineItemDataRelationshipsAdjustmentWithDefaults instantiates a new LineItemDataRelationshipsAdjustment object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLineItemDataRelationshipsAdjustmentWithDefaults() *LineItemDataRelationshipsAdjustment { + this := LineItemDataRelationshipsAdjustment{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *LineItemDataRelationshipsAdjustment) GetData() LineItemDataRelationshipsAdjustmentData { + if o == nil || IsNil(o.Data) { + var ret LineItemDataRelationshipsAdjustmentData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemDataRelationshipsAdjustment) GetDataOk() (*LineItemDataRelationshipsAdjustmentData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *LineItemDataRelationshipsAdjustment) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given LineItemDataRelationshipsAdjustmentData and assigns it to the Data field. +func (o *LineItemDataRelationshipsAdjustment) SetData(v LineItemDataRelationshipsAdjustmentData) { + o.Data = &v +} + +func (o LineItemDataRelationshipsAdjustment) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LineItemDataRelationshipsAdjustment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableLineItemDataRelationshipsAdjustment struct { + value *LineItemDataRelationshipsAdjustment + isSet bool +} + +func (v NullableLineItemDataRelationshipsAdjustment) Get() *LineItemDataRelationshipsAdjustment { + return v.value +} + +func (v *NullableLineItemDataRelationshipsAdjustment) Set(val *LineItemDataRelationshipsAdjustment) { + v.value = val + v.isSet = true +} + +func (v NullableLineItemDataRelationshipsAdjustment) IsSet() bool { + return v.isSet +} + +func (v *NullableLineItemDataRelationshipsAdjustment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLineItemDataRelationshipsAdjustment(val *LineItemDataRelationshipsAdjustment) *NullableLineItemDataRelationshipsAdjustment { + return &NullableLineItemDataRelationshipsAdjustment{value: val, isSet: true} +} + +func (v NullableLineItemDataRelationshipsAdjustment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLineItemDataRelationshipsAdjustment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_line_item_data_relationships_adjustment_data.go b/api/model_line_item_data_relationships_adjustment_data.go new file mode 100644 index 00000000..08e76bd8 --- /dev/null +++ b/api/model_line_item_data_relationships_adjustment_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LineItemDataRelationshipsAdjustmentData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LineItemDataRelationshipsAdjustmentData{} + +// LineItemDataRelationshipsAdjustmentData struct for LineItemDataRelationshipsAdjustmentData +type LineItemDataRelationshipsAdjustmentData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource's id + Id interface{} `json:"id,omitempty"` +} + +// NewLineItemDataRelationshipsAdjustmentData instantiates a new LineItemDataRelationshipsAdjustmentData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLineItemDataRelationshipsAdjustmentData() *LineItemDataRelationshipsAdjustmentData { + this := LineItemDataRelationshipsAdjustmentData{} + return &this +} + +// NewLineItemDataRelationshipsAdjustmentDataWithDefaults instantiates a new LineItemDataRelationshipsAdjustmentData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLineItemDataRelationshipsAdjustmentDataWithDefaults() *LineItemDataRelationshipsAdjustmentData { + this := LineItemDataRelationshipsAdjustmentData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LineItemDataRelationshipsAdjustmentData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LineItemDataRelationshipsAdjustmentData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *LineItemDataRelationshipsAdjustmentData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *LineItemDataRelationshipsAdjustmentData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LineItemDataRelationshipsAdjustmentData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LineItemDataRelationshipsAdjustmentData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *LineItemDataRelationshipsAdjustmentData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *LineItemDataRelationshipsAdjustmentData) SetId(v interface{}) { + o.Id = v +} + +func (o LineItemDataRelationshipsAdjustmentData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LineItemDataRelationshipsAdjustmentData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableLineItemDataRelationshipsAdjustmentData struct { + value *LineItemDataRelationshipsAdjustmentData + isSet bool +} + +func (v NullableLineItemDataRelationshipsAdjustmentData) Get() *LineItemDataRelationshipsAdjustmentData { + return v.value +} + +func (v *NullableLineItemDataRelationshipsAdjustmentData) Set(val *LineItemDataRelationshipsAdjustmentData) { + v.value = val + v.isSet = true +} + +func (v NullableLineItemDataRelationshipsAdjustmentData) IsSet() bool { + return v.isSet +} + +func (v *NullableLineItemDataRelationshipsAdjustmentData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLineItemDataRelationshipsAdjustmentData(val *LineItemDataRelationshipsAdjustmentData) *NullableLineItemDataRelationshipsAdjustmentData { + return &NullableLineItemDataRelationshipsAdjustmentData{value: val, isSet: true} +} + +func (v NullableLineItemDataRelationshipsAdjustmentData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLineItemDataRelationshipsAdjustmentData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_line_item_data_relationships_bundle.go b/api/model_line_item_data_relationships_bundle.go new file mode 100644 index 00000000..0a7916e9 --- /dev/null +++ b/api/model_line_item_data_relationships_bundle.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LineItemDataRelationshipsBundle type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LineItemDataRelationshipsBundle{} + +// LineItemDataRelationshipsBundle struct for LineItemDataRelationshipsBundle +type LineItemDataRelationshipsBundle struct { + Data *LineItemDataRelationshipsBundleData `json:"data,omitempty"` +} + +// NewLineItemDataRelationshipsBundle instantiates a new LineItemDataRelationshipsBundle object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLineItemDataRelationshipsBundle() *LineItemDataRelationshipsBundle { + this := LineItemDataRelationshipsBundle{} + return &this +} + +// NewLineItemDataRelationshipsBundleWithDefaults instantiates a new LineItemDataRelationshipsBundle object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLineItemDataRelationshipsBundleWithDefaults() *LineItemDataRelationshipsBundle { + this := LineItemDataRelationshipsBundle{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *LineItemDataRelationshipsBundle) GetData() LineItemDataRelationshipsBundleData { + if o == nil || IsNil(o.Data) { + var ret LineItemDataRelationshipsBundleData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemDataRelationshipsBundle) GetDataOk() (*LineItemDataRelationshipsBundleData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *LineItemDataRelationshipsBundle) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given LineItemDataRelationshipsBundleData and assigns it to the Data field. +func (o *LineItemDataRelationshipsBundle) SetData(v LineItemDataRelationshipsBundleData) { + o.Data = &v +} + +func (o LineItemDataRelationshipsBundle) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LineItemDataRelationshipsBundle) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableLineItemDataRelationshipsBundle struct { + value *LineItemDataRelationshipsBundle + isSet bool +} + +func (v NullableLineItemDataRelationshipsBundle) Get() *LineItemDataRelationshipsBundle { + return v.value +} + +func (v *NullableLineItemDataRelationshipsBundle) Set(val *LineItemDataRelationshipsBundle) { + v.value = val + v.isSet = true +} + +func (v NullableLineItemDataRelationshipsBundle) IsSet() bool { + return v.isSet +} + +func (v *NullableLineItemDataRelationshipsBundle) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLineItemDataRelationshipsBundle(val *LineItemDataRelationshipsBundle) *NullableLineItemDataRelationshipsBundle { + return &NullableLineItemDataRelationshipsBundle{value: val, isSet: true} +} + +func (v NullableLineItemDataRelationshipsBundle) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLineItemDataRelationshipsBundle) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_order_data_relationships_shipments_data.go b/api/model_line_item_data_relationships_bundle_data.go similarity index 56% rename from api/model_order_data_relationships_shipments_data.go rename to api/model_line_item_data_relationships_bundle_data.go index fde431cf..991b9a3f 100644 --- a/api/model_order_data_relationships_shipments_data.go +++ b/api/model_line_item_data_relationships_bundle_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the OrderDataRelationshipsShipmentsData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &OrderDataRelationshipsShipmentsData{} +// checks if the LineItemDataRelationshipsBundleData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LineItemDataRelationshipsBundleData{} -// OrderDataRelationshipsShipmentsData struct for OrderDataRelationshipsShipmentsData -type OrderDataRelationshipsShipmentsData struct { +// LineItemDataRelationshipsBundleData struct for LineItemDataRelationshipsBundleData +type LineItemDataRelationshipsBundleData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource's id Id interface{} `json:"id,omitempty"` } -// NewOrderDataRelationshipsShipmentsData instantiates a new OrderDataRelationshipsShipmentsData object +// NewLineItemDataRelationshipsBundleData instantiates a new LineItemDataRelationshipsBundleData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewOrderDataRelationshipsShipmentsData() *OrderDataRelationshipsShipmentsData { - this := OrderDataRelationshipsShipmentsData{} +func NewLineItemDataRelationshipsBundleData() *LineItemDataRelationshipsBundleData { + this := LineItemDataRelationshipsBundleData{} return &this } -// NewOrderDataRelationshipsShipmentsDataWithDefaults instantiates a new OrderDataRelationshipsShipmentsData object +// NewLineItemDataRelationshipsBundleDataWithDefaults instantiates a new LineItemDataRelationshipsBundleData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewOrderDataRelationshipsShipmentsDataWithDefaults() *OrderDataRelationshipsShipmentsData { - this := OrderDataRelationshipsShipmentsData{} +func NewLineItemDataRelationshipsBundleDataWithDefaults() *LineItemDataRelationshipsBundleData { + this := LineItemDataRelationshipsBundleData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *OrderDataRelationshipsShipmentsData) GetType() interface{} { +func (o *LineItemDataRelationshipsBundleData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *OrderDataRelationshipsShipmentsData) GetType() interface{} { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *OrderDataRelationshipsShipmentsData) GetTypeOk() (*interface{}, bool) { +func (o *LineItemDataRelationshipsBundleData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *OrderDataRelationshipsShipmentsData) GetTypeOk() (*interface{}, bool) { } // HasType returns a boolean if a field has been set. -func (o *OrderDataRelationshipsShipmentsData) HasType() bool { +func (o *LineItemDataRelationshipsBundleData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *OrderDataRelationshipsShipmentsData) HasType() bool { } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *OrderDataRelationshipsShipmentsData) SetType(v interface{}) { +func (o *LineItemDataRelationshipsBundleData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *OrderDataRelationshipsShipmentsData) GetId() interface{} { +func (o *LineItemDataRelationshipsBundleData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *OrderDataRelationshipsShipmentsData) GetId() interface{} { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *OrderDataRelationshipsShipmentsData) GetIdOk() (*interface{}, bool) { +func (o *LineItemDataRelationshipsBundleData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *OrderDataRelationshipsShipmentsData) GetIdOk() (*interface{}, bool) { } // HasId returns a boolean if a field has been set. -func (o *OrderDataRelationshipsShipmentsData) HasId() bool { +func (o *LineItemDataRelationshipsBundleData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *OrderDataRelationshipsShipmentsData) HasId() bool { } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *OrderDataRelationshipsShipmentsData) SetId(v interface{}) { +func (o *LineItemDataRelationshipsBundleData) SetId(v interface{}) { o.Id = v } -func (o OrderDataRelationshipsShipmentsData) MarshalJSON() ([]byte, error) { +func (o LineItemDataRelationshipsBundleData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o OrderDataRelationshipsShipmentsData) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o OrderDataRelationshipsShipmentsData) ToMap() (map[string]interface{}, error) { +func (o LineItemDataRelationshipsBundleData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o OrderDataRelationshipsShipmentsData) ToMap() (map[string]interface{}, er return toSerialize, nil } -type NullableOrderDataRelationshipsShipmentsData struct { - value *OrderDataRelationshipsShipmentsData +type NullableLineItemDataRelationshipsBundleData struct { + value *LineItemDataRelationshipsBundleData isSet bool } -func (v NullableOrderDataRelationshipsShipmentsData) Get() *OrderDataRelationshipsShipmentsData { +func (v NullableLineItemDataRelationshipsBundleData) Get() *LineItemDataRelationshipsBundleData { return v.value } -func (v *NullableOrderDataRelationshipsShipmentsData) Set(val *OrderDataRelationshipsShipmentsData) { +func (v *NullableLineItemDataRelationshipsBundleData) Set(val *LineItemDataRelationshipsBundleData) { v.value = val v.isSet = true } -func (v NullableOrderDataRelationshipsShipmentsData) IsSet() bool { +func (v NullableLineItemDataRelationshipsBundleData) IsSet() bool { return v.isSet } -func (v *NullableOrderDataRelationshipsShipmentsData) Unset() { +func (v *NullableLineItemDataRelationshipsBundleData) Unset() { v.value = nil v.isSet = false } -func NewNullableOrderDataRelationshipsShipmentsData(val *OrderDataRelationshipsShipmentsData) *NullableOrderDataRelationshipsShipmentsData { - return &NullableOrderDataRelationshipsShipmentsData{value: val, isSet: true} +func NewNullableLineItemDataRelationshipsBundleData(val *LineItemDataRelationshipsBundleData) *NullableLineItemDataRelationshipsBundleData { + return &NullableLineItemDataRelationshipsBundleData{value: val, isSet: true} } -func (v NullableOrderDataRelationshipsShipmentsData) MarshalJSON() ([]byte, error) { +func (v NullableLineItemDataRelationshipsBundleData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableOrderDataRelationshipsShipmentsData) UnmarshalJSON(src []byte) error { +func (v *NullableLineItemDataRelationshipsBundleData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_line_item_data_relationships_gift_card.go b/api/model_line_item_data_relationships_gift_card.go new file mode 100644 index 00000000..e9b9c62d --- /dev/null +++ b/api/model_line_item_data_relationships_gift_card.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LineItemDataRelationshipsGiftCard type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LineItemDataRelationshipsGiftCard{} + +// LineItemDataRelationshipsGiftCard struct for LineItemDataRelationshipsGiftCard +type LineItemDataRelationshipsGiftCard struct { + Data *LineItemDataRelationshipsGiftCardData `json:"data,omitempty"` +} + +// NewLineItemDataRelationshipsGiftCard instantiates a new LineItemDataRelationshipsGiftCard object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLineItemDataRelationshipsGiftCard() *LineItemDataRelationshipsGiftCard { + this := LineItemDataRelationshipsGiftCard{} + return &this +} + +// NewLineItemDataRelationshipsGiftCardWithDefaults instantiates a new LineItemDataRelationshipsGiftCard object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLineItemDataRelationshipsGiftCardWithDefaults() *LineItemDataRelationshipsGiftCard { + this := LineItemDataRelationshipsGiftCard{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *LineItemDataRelationshipsGiftCard) GetData() LineItemDataRelationshipsGiftCardData { + if o == nil || IsNil(o.Data) { + var ret LineItemDataRelationshipsGiftCardData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemDataRelationshipsGiftCard) GetDataOk() (*LineItemDataRelationshipsGiftCardData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *LineItemDataRelationshipsGiftCard) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given LineItemDataRelationshipsGiftCardData and assigns it to the Data field. +func (o *LineItemDataRelationshipsGiftCard) SetData(v LineItemDataRelationshipsGiftCardData) { + o.Data = &v +} + +func (o LineItemDataRelationshipsGiftCard) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LineItemDataRelationshipsGiftCard) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableLineItemDataRelationshipsGiftCard struct { + value *LineItemDataRelationshipsGiftCard + isSet bool +} + +func (v NullableLineItemDataRelationshipsGiftCard) Get() *LineItemDataRelationshipsGiftCard { + return v.value +} + +func (v *NullableLineItemDataRelationshipsGiftCard) Set(val *LineItemDataRelationshipsGiftCard) { + v.value = val + v.isSet = true +} + +func (v NullableLineItemDataRelationshipsGiftCard) IsSet() bool { + return v.isSet +} + +func (v *NullableLineItemDataRelationshipsGiftCard) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLineItemDataRelationshipsGiftCard(val *LineItemDataRelationshipsGiftCard) *NullableLineItemDataRelationshipsGiftCard { + return &NullableLineItemDataRelationshipsGiftCard{value: val, isSet: true} +} + +func (v NullableLineItemDataRelationshipsGiftCard) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLineItemDataRelationshipsGiftCard) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_line_item_data_relationships_gift_card_data.go b/api/model_line_item_data_relationships_gift_card_data.go new file mode 100644 index 00000000..c48597cb --- /dev/null +++ b/api/model_line_item_data_relationships_gift_card_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LineItemDataRelationshipsGiftCardData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LineItemDataRelationshipsGiftCardData{} + +// LineItemDataRelationshipsGiftCardData struct for LineItemDataRelationshipsGiftCardData +type LineItemDataRelationshipsGiftCardData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource's id + Id interface{} `json:"id,omitempty"` +} + +// NewLineItemDataRelationshipsGiftCardData instantiates a new LineItemDataRelationshipsGiftCardData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLineItemDataRelationshipsGiftCardData() *LineItemDataRelationshipsGiftCardData { + this := LineItemDataRelationshipsGiftCardData{} + return &this +} + +// NewLineItemDataRelationshipsGiftCardDataWithDefaults instantiates a new LineItemDataRelationshipsGiftCardData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLineItemDataRelationshipsGiftCardDataWithDefaults() *LineItemDataRelationshipsGiftCardData { + this := LineItemDataRelationshipsGiftCardData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LineItemDataRelationshipsGiftCardData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LineItemDataRelationshipsGiftCardData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *LineItemDataRelationshipsGiftCardData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *LineItemDataRelationshipsGiftCardData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LineItemDataRelationshipsGiftCardData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LineItemDataRelationshipsGiftCardData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *LineItemDataRelationshipsGiftCardData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *LineItemDataRelationshipsGiftCardData) SetId(v interface{}) { + o.Id = v +} + +func (o LineItemDataRelationshipsGiftCardData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LineItemDataRelationshipsGiftCardData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableLineItemDataRelationshipsGiftCardData struct { + value *LineItemDataRelationshipsGiftCardData + isSet bool +} + +func (v NullableLineItemDataRelationshipsGiftCardData) Get() *LineItemDataRelationshipsGiftCardData { + return v.value +} + +func (v *NullableLineItemDataRelationshipsGiftCardData) Set(val *LineItemDataRelationshipsGiftCardData) { + v.value = val + v.isSet = true +} + +func (v NullableLineItemDataRelationshipsGiftCardData) IsSet() bool { + return v.isSet +} + +func (v *NullableLineItemDataRelationshipsGiftCardData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLineItemDataRelationshipsGiftCardData(val *LineItemDataRelationshipsGiftCardData) *NullableLineItemDataRelationshipsGiftCardData { + return &NullableLineItemDataRelationshipsGiftCardData{value: val, isSet: true} +} + +func (v NullableLineItemDataRelationshipsGiftCardData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLineItemDataRelationshipsGiftCardData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_line_item_data_relationships_item.go b/api/model_line_item_data_relationships_item.go index 11b8d49a..7e971dd5 100644 --- a/api/model_line_item_data_relationships_item.go +++ b/api/model_line_item_data_relationships_item.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_data_relationships_item_data.go b/api/model_line_item_data_relationships_item_data.go index 6c52f530..06ad369f 100644 --- a/api/model_line_item_data_relationships_item_data.go +++ b/api/model_line_item_data_relationships_item_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_data_relationships_line_item_options.go b/api/model_line_item_data_relationships_line_item_options.go index 4c5134f4..676e57b3 100644 --- a/api/model_line_item_data_relationships_line_item_options.go +++ b/api/model_line_item_data_relationships_line_item_options.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_data_relationships_line_item_options_data.go b/api/model_line_item_data_relationships_line_item_options_data.go index e66537c8..914613ac 100644 --- a/api/model_line_item_data_relationships_line_item_options_data.go +++ b/api/model_line_item_data_relationships_line_item_options_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_data_relationships_return_line_items.go b/api/model_line_item_data_relationships_return_line_items.go new file mode 100644 index 00000000..44c2b704 --- /dev/null +++ b/api/model_line_item_data_relationships_return_line_items.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LineItemDataRelationshipsReturnLineItems type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LineItemDataRelationshipsReturnLineItems{} + +// LineItemDataRelationshipsReturnLineItems struct for LineItemDataRelationshipsReturnLineItems +type LineItemDataRelationshipsReturnLineItems struct { + Data *LineItemDataRelationshipsReturnLineItemsData `json:"data,omitempty"` +} + +// NewLineItemDataRelationshipsReturnLineItems instantiates a new LineItemDataRelationshipsReturnLineItems object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLineItemDataRelationshipsReturnLineItems() *LineItemDataRelationshipsReturnLineItems { + this := LineItemDataRelationshipsReturnLineItems{} + return &this +} + +// NewLineItemDataRelationshipsReturnLineItemsWithDefaults instantiates a new LineItemDataRelationshipsReturnLineItems object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLineItemDataRelationshipsReturnLineItemsWithDefaults() *LineItemDataRelationshipsReturnLineItems { + this := LineItemDataRelationshipsReturnLineItems{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *LineItemDataRelationshipsReturnLineItems) GetData() LineItemDataRelationshipsReturnLineItemsData { + if o == nil || IsNil(o.Data) { + var ret LineItemDataRelationshipsReturnLineItemsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemDataRelationshipsReturnLineItems) GetDataOk() (*LineItemDataRelationshipsReturnLineItemsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *LineItemDataRelationshipsReturnLineItems) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given LineItemDataRelationshipsReturnLineItemsData and assigns it to the Data field. +func (o *LineItemDataRelationshipsReturnLineItems) SetData(v LineItemDataRelationshipsReturnLineItemsData) { + o.Data = &v +} + +func (o LineItemDataRelationshipsReturnLineItems) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LineItemDataRelationshipsReturnLineItems) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableLineItemDataRelationshipsReturnLineItems struct { + value *LineItemDataRelationshipsReturnLineItems + isSet bool +} + +func (v NullableLineItemDataRelationshipsReturnLineItems) Get() *LineItemDataRelationshipsReturnLineItems { + return v.value +} + +func (v *NullableLineItemDataRelationshipsReturnLineItems) Set(val *LineItemDataRelationshipsReturnLineItems) { + v.value = val + v.isSet = true +} + +func (v NullableLineItemDataRelationshipsReturnLineItems) IsSet() bool { + return v.isSet +} + +func (v *NullableLineItemDataRelationshipsReturnLineItems) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLineItemDataRelationshipsReturnLineItems(val *LineItemDataRelationshipsReturnLineItems) *NullableLineItemDataRelationshipsReturnLineItems { + return &NullableLineItemDataRelationshipsReturnLineItems{value: val, isSet: true} +} + +func (v NullableLineItemDataRelationshipsReturnLineItems) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLineItemDataRelationshipsReturnLineItems) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_line_item_data_relationships_return_line_items_data.go b/api/model_line_item_data_relationships_return_line_items_data.go new file mode 100644 index 00000000..18cd313d --- /dev/null +++ b/api/model_line_item_data_relationships_return_line_items_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LineItemDataRelationshipsReturnLineItemsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LineItemDataRelationshipsReturnLineItemsData{} + +// LineItemDataRelationshipsReturnLineItemsData struct for LineItemDataRelationshipsReturnLineItemsData +type LineItemDataRelationshipsReturnLineItemsData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource's id + Id interface{} `json:"id,omitempty"` +} + +// NewLineItemDataRelationshipsReturnLineItemsData instantiates a new LineItemDataRelationshipsReturnLineItemsData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLineItemDataRelationshipsReturnLineItemsData() *LineItemDataRelationshipsReturnLineItemsData { + this := LineItemDataRelationshipsReturnLineItemsData{} + return &this +} + +// NewLineItemDataRelationshipsReturnLineItemsDataWithDefaults instantiates a new LineItemDataRelationshipsReturnLineItemsData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLineItemDataRelationshipsReturnLineItemsDataWithDefaults() *LineItemDataRelationshipsReturnLineItemsData { + this := LineItemDataRelationshipsReturnLineItemsData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LineItemDataRelationshipsReturnLineItemsData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LineItemDataRelationshipsReturnLineItemsData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *LineItemDataRelationshipsReturnLineItemsData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *LineItemDataRelationshipsReturnLineItemsData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LineItemDataRelationshipsReturnLineItemsData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LineItemDataRelationshipsReturnLineItemsData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *LineItemDataRelationshipsReturnLineItemsData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *LineItemDataRelationshipsReturnLineItemsData) SetId(v interface{}) { + o.Id = v +} + +func (o LineItemDataRelationshipsReturnLineItemsData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LineItemDataRelationshipsReturnLineItemsData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableLineItemDataRelationshipsReturnLineItemsData struct { + value *LineItemDataRelationshipsReturnLineItemsData + isSet bool +} + +func (v NullableLineItemDataRelationshipsReturnLineItemsData) Get() *LineItemDataRelationshipsReturnLineItemsData { + return v.value +} + +func (v *NullableLineItemDataRelationshipsReturnLineItemsData) Set(val *LineItemDataRelationshipsReturnLineItemsData) { + v.value = val + v.isSet = true +} + +func (v NullableLineItemDataRelationshipsReturnLineItemsData) IsSet() bool { + return v.isSet +} + +func (v *NullableLineItemDataRelationshipsReturnLineItemsData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLineItemDataRelationshipsReturnLineItemsData(val *LineItemDataRelationshipsReturnLineItemsData) *NullableLineItemDataRelationshipsReturnLineItemsData { + return &NullableLineItemDataRelationshipsReturnLineItemsData{value: val, isSet: true} +} + +func (v NullableLineItemDataRelationshipsReturnLineItemsData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLineItemDataRelationshipsReturnLineItemsData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_line_item_data_relationships_shipment.go b/api/model_line_item_data_relationships_shipment.go new file mode 100644 index 00000000..160a67b7 --- /dev/null +++ b/api/model_line_item_data_relationships_shipment.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LineItemDataRelationshipsShipment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LineItemDataRelationshipsShipment{} + +// LineItemDataRelationshipsShipment struct for LineItemDataRelationshipsShipment +type LineItemDataRelationshipsShipment struct { + Data *LineItemDataRelationshipsShipmentData `json:"data,omitempty"` +} + +// NewLineItemDataRelationshipsShipment instantiates a new LineItemDataRelationshipsShipment object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLineItemDataRelationshipsShipment() *LineItemDataRelationshipsShipment { + this := LineItemDataRelationshipsShipment{} + return &this +} + +// NewLineItemDataRelationshipsShipmentWithDefaults instantiates a new LineItemDataRelationshipsShipment object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLineItemDataRelationshipsShipmentWithDefaults() *LineItemDataRelationshipsShipment { + this := LineItemDataRelationshipsShipment{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *LineItemDataRelationshipsShipment) GetData() LineItemDataRelationshipsShipmentData { + if o == nil || IsNil(o.Data) { + var ret LineItemDataRelationshipsShipmentData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemDataRelationshipsShipment) GetDataOk() (*LineItemDataRelationshipsShipmentData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *LineItemDataRelationshipsShipment) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given LineItemDataRelationshipsShipmentData and assigns it to the Data field. +func (o *LineItemDataRelationshipsShipment) SetData(v LineItemDataRelationshipsShipmentData) { + o.Data = &v +} + +func (o LineItemDataRelationshipsShipment) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LineItemDataRelationshipsShipment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableLineItemDataRelationshipsShipment struct { + value *LineItemDataRelationshipsShipment + isSet bool +} + +func (v NullableLineItemDataRelationshipsShipment) Get() *LineItemDataRelationshipsShipment { + return v.value +} + +func (v *NullableLineItemDataRelationshipsShipment) Set(val *LineItemDataRelationshipsShipment) { + v.value = val + v.isSet = true +} + +func (v NullableLineItemDataRelationshipsShipment) IsSet() bool { + return v.isSet +} + +func (v *NullableLineItemDataRelationshipsShipment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLineItemDataRelationshipsShipment(val *LineItemDataRelationshipsShipment) *NullableLineItemDataRelationshipsShipment { + return &NullableLineItemDataRelationshipsShipment{value: val, isSet: true} +} + +func (v NullableLineItemDataRelationshipsShipment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLineItemDataRelationshipsShipment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_line_item_data_relationships_shipment_data.go b/api/model_line_item_data_relationships_shipment_data.go new file mode 100644 index 00000000..af6a217e --- /dev/null +++ b/api/model_line_item_data_relationships_shipment_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LineItemDataRelationshipsShipmentData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LineItemDataRelationshipsShipmentData{} + +// LineItemDataRelationshipsShipmentData struct for LineItemDataRelationshipsShipmentData +type LineItemDataRelationshipsShipmentData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource's id + Id interface{} `json:"id,omitempty"` +} + +// NewLineItemDataRelationshipsShipmentData instantiates a new LineItemDataRelationshipsShipmentData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLineItemDataRelationshipsShipmentData() *LineItemDataRelationshipsShipmentData { + this := LineItemDataRelationshipsShipmentData{} + return &this +} + +// NewLineItemDataRelationshipsShipmentDataWithDefaults instantiates a new LineItemDataRelationshipsShipmentData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLineItemDataRelationshipsShipmentDataWithDefaults() *LineItemDataRelationshipsShipmentData { + this := LineItemDataRelationshipsShipmentData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LineItemDataRelationshipsShipmentData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LineItemDataRelationshipsShipmentData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *LineItemDataRelationshipsShipmentData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *LineItemDataRelationshipsShipmentData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LineItemDataRelationshipsShipmentData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LineItemDataRelationshipsShipmentData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *LineItemDataRelationshipsShipmentData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *LineItemDataRelationshipsShipmentData) SetId(v interface{}) { + o.Id = v +} + +func (o LineItemDataRelationshipsShipmentData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LineItemDataRelationshipsShipmentData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableLineItemDataRelationshipsShipmentData struct { + value *LineItemDataRelationshipsShipmentData + isSet bool +} + +func (v NullableLineItemDataRelationshipsShipmentData) Get() *LineItemDataRelationshipsShipmentData { + return v.value +} + +func (v *NullableLineItemDataRelationshipsShipmentData) Set(val *LineItemDataRelationshipsShipmentData) { + v.value = val + v.isSet = true +} + +func (v NullableLineItemDataRelationshipsShipmentData) IsSet() bool { + return v.isSet +} + +func (v *NullableLineItemDataRelationshipsShipmentData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLineItemDataRelationshipsShipmentData(val *LineItemDataRelationshipsShipmentData) *NullableLineItemDataRelationshipsShipmentData { + return &NullableLineItemDataRelationshipsShipmentData{value: val, isSet: true} +} + +func (v NullableLineItemDataRelationshipsShipmentData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLineItemDataRelationshipsShipmentData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_line_item_data_relationships_shipment_line_items.go b/api/model_line_item_data_relationships_shipment_line_items.go deleted file mode 100644 index 40be3d55..00000000 --- a/api/model_line_item_data_relationships_shipment_line_items.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the LineItemDataRelationshipsShipmentLineItems type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LineItemDataRelationshipsShipmentLineItems{} - -// LineItemDataRelationshipsShipmentLineItems struct for LineItemDataRelationshipsShipmentLineItems -type LineItemDataRelationshipsShipmentLineItems struct { - Data *LineItemDataRelationshipsShipmentLineItemsData `json:"data,omitempty"` -} - -// NewLineItemDataRelationshipsShipmentLineItems instantiates a new LineItemDataRelationshipsShipmentLineItems object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewLineItemDataRelationshipsShipmentLineItems() *LineItemDataRelationshipsShipmentLineItems { - this := LineItemDataRelationshipsShipmentLineItems{} - return &this -} - -// NewLineItemDataRelationshipsShipmentLineItemsWithDefaults instantiates a new LineItemDataRelationshipsShipmentLineItems object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewLineItemDataRelationshipsShipmentLineItemsWithDefaults() *LineItemDataRelationshipsShipmentLineItems { - this := LineItemDataRelationshipsShipmentLineItems{} - return &this -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *LineItemDataRelationshipsShipmentLineItems) GetData() LineItemDataRelationshipsShipmentLineItemsData { - if o == nil || IsNil(o.Data) { - var ret LineItemDataRelationshipsShipmentLineItemsData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LineItemDataRelationshipsShipmentLineItems) GetDataOk() (*LineItemDataRelationshipsShipmentLineItemsData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *LineItemDataRelationshipsShipmentLineItems) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given LineItemDataRelationshipsShipmentLineItemsData and assigns it to the Data field. -func (o *LineItemDataRelationshipsShipmentLineItems) SetData(v LineItemDataRelationshipsShipmentLineItemsData) { - o.Data = &v -} - -func (o LineItemDataRelationshipsShipmentLineItems) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o LineItemDataRelationshipsShipmentLineItems) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableLineItemDataRelationshipsShipmentLineItems struct { - value *LineItemDataRelationshipsShipmentLineItems - isSet bool -} - -func (v NullableLineItemDataRelationshipsShipmentLineItems) Get() *LineItemDataRelationshipsShipmentLineItems { - return v.value -} - -func (v *NullableLineItemDataRelationshipsShipmentLineItems) Set(val *LineItemDataRelationshipsShipmentLineItems) { - v.value = val - v.isSet = true -} - -func (v NullableLineItemDataRelationshipsShipmentLineItems) IsSet() bool { - return v.isSet -} - -func (v *NullableLineItemDataRelationshipsShipmentLineItems) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableLineItemDataRelationshipsShipmentLineItems(val *LineItemDataRelationshipsShipmentLineItems) *NullableLineItemDataRelationshipsShipmentLineItems { - return &NullableLineItemDataRelationshipsShipmentLineItems{value: val, isSet: true} -} - -func (v NullableLineItemDataRelationshipsShipmentLineItems) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableLineItemDataRelationshipsShipmentLineItems) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_line_item_data_relationships_stock_line_items.go b/api/model_line_item_data_relationships_stock_line_items.go index 87b32b81..987fdcda 100644 --- a/api/model_line_item_data_relationships_stock_line_items.go +++ b/api/model_line_item_data_relationships_stock_line_items.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_data_relationships_stock_line_items_data.go b/api/model_line_item_data_relationships_stock_line_items_data.go index c10c5ec5..180ce4d8 100644 --- a/api/model_line_item_data_relationships_stock_line_items_data.go +++ b/api/model_line_item_data_relationships_stock_line_items_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_data_relationships_stock_reservations.go b/api/model_line_item_data_relationships_stock_reservations.go new file mode 100644 index 00000000..679890eb --- /dev/null +++ b/api/model_line_item_data_relationships_stock_reservations.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LineItemDataRelationshipsStockReservations type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LineItemDataRelationshipsStockReservations{} + +// LineItemDataRelationshipsStockReservations struct for LineItemDataRelationshipsStockReservations +type LineItemDataRelationshipsStockReservations struct { + Data *LineItemDataRelationshipsStockReservationsData `json:"data,omitempty"` +} + +// NewLineItemDataRelationshipsStockReservations instantiates a new LineItemDataRelationshipsStockReservations object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLineItemDataRelationshipsStockReservations() *LineItemDataRelationshipsStockReservations { + this := LineItemDataRelationshipsStockReservations{} + return &this +} + +// NewLineItemDataRelationshipsStockReservationsWithDefaults instantiates a new LineItemDataRelationshipsStockReservations object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLineItemDataRelationshipsStockReservationsWithDefaults() *LineItemDataRelationshipsStockReservations { + this := LineItemDataRelationshipsStockReservations{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *LineItemDataRelationshipsStockReservations) GetData() LineItemDataRelationshipsStockReservationsData { + if o == nil || IsNil(o.Data) { + var ret LineItemDataRelationshipsStockReservationsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemDataRelationshipsStockReservations) GetDataOk() (*LineItemDataRelationshipsStockReservationsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *LineItemDataRelationshipsStockReservations) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given LineItemDataRelationshipsStockReservationsData and assigns it to the Data field. +func (o *LineItemDataRelationshipsStockReservations) SetData(v LineItemDataRelationshipsStockReservationsData) { + o.Data = &v +} + +func (o LineItemDataRelationshipsStockReservations) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LineItemDataRelationshipsStockReservations) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableLineItemDataRelationshipsStockReservations struct { + value *LineItemDataRelationshipsStockReservations + isSet bool +} + +func (v NullableLineItemDataRelationshipsStockReservations) Get() *LineItemDataRelationshipsStockReservations { + return v.value +} + +func (v *NullableLineItemDataRelationshipsStockReservations) Set(val *LineItemDataRelationshipsStockReservations) { + v.value = val + v.isSet = true +} + +func (v NullableLineItemDataRelationshipsStockReservations) IsSet() bool { + return v.isSet +} + +func (v *NullableLineItemDataRelationshipsStockReservations) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLineItemDataRelationshipsStockReservations(val *LineItemDataRelationshipsStockReservations) *NullableLineItemDataRelationshipsStockReservations { + return &NullableLineItemDataRelationshipsStockReservations{value: val, isSet: true} +} + +func (v NullableLineItemDataRelationshipsStockReservations) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLineItemDataRelationshipsStockReservations) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_avalara_account_data_relationships_attachments_data.go b/api/model_line_item_data_relationships_stock_reservations_data.go similarity index 55% rename from api/model_avalara_account_data_relationships_attachments_data.go rename to api/model_line_item_data_relationships_stock_reservations_data.go index 629f07af..dfb78740 100644 --- a/api/model_avalara_account_data_relationships_attachments_data.go +++ b/api/model_line_item_data_relationships_stock_reservations_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the AvalaraAccountDataRelationshipsAttachmentsData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AvalaraAccountDataRelationshipsAttachmentsData{} +// checks if the LineItemDataRelationshipsStockReservationsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LineItemDataRelationshipsStockReservationsData{} -// AvalaraAccountDataRelationshipsAttachmentsData struct for AvalaraAccountDataRelationshipsAttachmentsData -type AvalaraAccountDataRelationshipsAttachmentsData struct { +// LineItemDataRelationshipsStockReservationsData struct for LineItemDataRelationshipsStockReservationsData +type LineItemDataRelationshipsStockReservationsData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource's id Id interface{} `json:"id,omitempty"` } -// NewAvalaraAccountDataRelationshipsAttachmentsData instantiates a new AvalaraAccountDataRelationshipsAttachmentsData object +// NewLineItemDataRelationshipsStockReservationsData instantiates a new LineItemDataRelationshipsStockReservationsData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewAvalaraAccountDataRelationshipsAttachmentsData() *AvalaraAccountDataRelationshipsAttachmentsData { - this := AvalaraAccountDataRelationshipsAttachmentsData{} +func NewLineItemDataRelationshipsStockReservationsData() *LineItemDataRelationshipsStockReservationsData { + this := LineItemDataRelationshipsStockReservationsData{} return &this } -// NewAvalaraAccountDataRelationshipsAttachmentsDataWithDefaults instantiates a new AvalaraAccountDataRelationshipsAttachmentsData object +// NewLineItemDataRelationshipsStockReservationsDataWithDefaults instantiates a new LineItemDataRelationshipsStockReservationsData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewAvalaraAccountDataRelationshipsAttachmentsDataWithDefaults() *AvalaraAccountDataRelationshipsAttachmentsData { - this := AvalaraAccountDataRelationshipsAttachmentsData{} +func NewLineItemDataRelationshipsStockReservationsDataWithDefaults() *LineItemDataRelationshipsStockReservationsData { + this := LineItemDataRelationshipsStockReservationsData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AvalaraAccountDataRelationshipsAttachmentsData) GetType() interface{} { +func (o *LineItemDataRelationshipsStockReservationsData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *AvalaraAccountDataRelationshipsAttachmentsData) GetType() interface{} { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AvalaraAccountDataRelationshipsAttachmentsData) GetTypeOk() (*interface{}, bool) { +func (o *LineItemDataRelationshipsStockReservationsData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *AvalaraAccountDataRelationshipsAttachmentsData) GetTypeOk() (*interface } // HasType returns a boolean if a field has been set. -func (o *AvalaraAccountDataRelationshipsAttachmentsData) HasType() bool { +func (o *LineItemDataRelationshipsStockReservationsData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *AvalaraAccountDataRelationshipsAttachmentsData) HasType() bool { } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *AvalaraAccountDataRelationshipsAttachmentsData) SetType(v interface{}) { +func (o *LineItemDataRelationshipsStockReservationsData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AvalaraAccountDataRelationshipsAttachmentsData) GetId() interface{} { +func (o *LineItemDataRelationshipsStockReservationsData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *AvalaraAccountDataRelationshipsAttachmentsData) GetId() interface{} { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AvalaraAccountDataRelationshipsAttachmentsData) GetIdOk() (*interface{}, bool) { +func (o *LineItemDataRelationshipsStockReservationsData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *AvalaraAccountDataRelationshipsAttachmentsData) GetIdOk() (*interface{} } // HasId returns a boolean if a field has been set. -func (o *AvalaraAccountDataRelationshipsAttachmentsData) HasId() bool { +func (o *LineItemDataRelationshipsStockReservationsData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *AvalaraAccountDataRelationshipsAttachmentsData) HasId() bool { } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *AvalaraAccountDataRelationshipsAttachmentsData) SetId(v interface{}) { +func (o *LineItemDataRelationshipsStockReservationsData) SetId(v interface{}) { o.Id = v } -func (o AvalaraAccountDataRelationshipsAttachmentsData) MarshalJSON() ([]byte, error) { +func (o LineItemDataRelationshipsStockReservationsData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o AvalaraAccountDataRelationshipsAttachmentsData) MarshalJSON() ([]byte, e return json.Marshal(toSerialize) } -func (o AvalaraAccountDataRelationshipsAttachmentsData) ToMap() (map[string]interface{}, error) { +func (o LineItemDataRelationshipsStockReservationsData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o AvalaraAccountDataRelationshipsAttachmentsData) ToMap() (map[string]inte return toSerialize, nil } -type NullableAvalaraAccountDataRelationshipsAttachmentsData struct { - value *AvalaraAccountDataRelationshipsAttachmentsData +type NullableLineItemDataRelationshipsStockReservationsData struct { + value *LineItemDataRelationshipsStockReservationsData isSet bool } -func (v NullableAvalaraAccountDataRelationshipsAttachmentsData) Get() *AvalaraAccountDataRelationshipsAttachmentsData { +func (v NullableLineItemDataRelationshipsStockReservationsData) Get() *LineItemDataRelationshipsStockReservationsData { return v.value } -func (v *NullableAvalaraAccountDataRelationshipsAttachmentsData) Set(val *AvalaraAccountDataRelationshipsAttachmentsData) { +func (v *NullableLineItemDataRelationshipsStockReservationsData) Set(val *LineItemDataRelationshipsStockReservationsData) { v.value = val v.isSet = true } -func (v NullableAvalaraAccountDataRelationshipsAttachmentsData) IsSet() bool { +func (v NullableLineItemDataRelationshipsStockReservationsData) IsSet() bool { return v.isSet } -func (v *NullableAvalaraAccountDataRelationshipsAttachmentsData) Unset() { +func (v *NullableLineItemDataRelationshipsStockReservationsData) Unset() { v.value = nil v.isSet = false } -func NewNullableAvalaraAccountDataRelationshipsAttachmentsData(val *AvalaraAccountDataRelationshipsAttachmentsData) *NullableAvalaraAccountDataRelationshipsAttachmentsData { - return &NullableAvalaraAccountDataRelationshipsAttachmentsData{value: val, isSet: true} +func NewNullableLineItemDataRelationshipsStockReservationsData(val *LineItemDataRelationshipsStockReservationsData) *NullableLineItemDataRelationshipsStockReservationsData { + return &NullableLineItemDataRelationshipsStockReservationsData{value: val, isSet: true} } -func (v NullableAvalaraAccountDataRelationshipsAttachmentsData) MarshalJSON() ([]byte, error) { +func (v NullableLineItemDataRelationshipsStockReservationsData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableAvalaraAccountDataRelationshipsAttachmentsData) UnmarshalJSON(src []byte) error { +func (v *NullableLineItemDataRelationshipsStockReservationsData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_line_item_data_relationships_stock_transfers.go b/api/model_line_item_data_relationships_stock_transfers.go index dbca5402..5d399ba5 100644 --- a/api/model_line_item_data_relationships_stock_transfers.go +++ b/api/model_line_item_data_relationships_stock_transfers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_data_relationships_stock_transfers_data.go b/api/model_line_item_data_relationships_stock_transfers_data.go index 8d74f263..67553402 100644 --- a/api/model_line_item_data_relationships_stock_transfers_data.go +++ b/api/model_line_item_data_relationships_stock_transfers_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_option.go b/api/model_line_item_option.go index 61f005d9..5fd0cb0f 100644 --- a/api/model_line_item_option.go +++ b/api/model_line_item_option.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_option_create.go b/api/model_line_item_option_create.go index eb3afac7..4beaf212 100644 --- a/api/model_line_item_option_create.go +++ b/api/model_line_item_option_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_option_create_data.go b/api/model_line_item_option_create_data.go index 3c29aa18..8d3778ed 100644 --- a/api/model_line_item_option_create_data.go +++ b/api/model_line_item_option_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_option_create_data_relationships.go b/api/model_line_item_option_create_data_relationships.go index ed6e1ef4..fb93ba67 100644 --- a/api/model_line_item_option_create_data_relationships.go +++ b/api/model_line_item_option_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,6 +22,7 @@ var _ MappedNullable = &LineItemOptionCreateDataRelationships{} type LineItemOptionCreateDataRelationships struct { LineItem LineItemOptionCreateDataRelationshipsLineItem `json:"line_item"` SkuOption LineItemOptionCreateDataRelationshipsSkuOption `json:"sku_option"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` } // NewLineItemOptionCreateDataRelationships instantiates a new LineItemOptionCreateDataRelationships object @@ -91,6 +92,38 @@ func (o *LineItemOptionCreateDataRelationships) SetSkuOption(v LineItemOptionCre o.SkuOption = v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *LineItemOptionCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemOptionCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *LineItemOptionCreateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *LineItemOptionCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + func (o LineItemOptionCreateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -103,6 +136,9 @@ func (o LineItemOptionCreateDataRelationships) ToMap() (map[string]interface{}, toSerialize := map[string]interface{}{} toSerialize["line_item"] = o.LineItem toSerialize["sku_option"] = o.SkuOption + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_line_item_option_create_data_relationships_line_item.go b/api/model_line_item_option_create_data_relationships_line_item.go index 51cc67ab..eb27858b 100644 --- a/api/model_line_item_option_create_data_relationships_line_item.go +++ b/api/model_line_item_option_create_data_relationships_line_item.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_option_create_data_relationships_sku_option.go b/api/model_line_item_option_create_data_relationships_sku_option.go index b9e5d080..56ab62aa 100644 --- a/api/model_line_item_option_create_data_relationships_sku_option.go +++ b/api/model_line_item_option_create_data_relationships_sku_option.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_option_data.go b/api/model_line_item_option_data.go index b2e27fd8..74201fae 100644 --- a/api/model_line_item_option_data.go +++ b/api/model_line_item_option_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_option_data_relationships.go b/api/model_line_item_option_data_relationships.go index bc46af41..dca03a86 100644 --- a/api/model_line_item_option_data_relationships.go +++ b/api/model_line_item_option_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,6 +22,8 @@ var _ MappedNullable = &LineItemOptionDataRelationships{} type LineItemOptionDataRelationships struct { LineItem *LineItemOptionDataRelationshipsLineItem `json:"line_item,omitempty"` SkuOption *LineItemOptionDataRelationshipsSkuOption `json:"sku_option,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Tags *AddressDataRelationshipsTags `json:"tags,omitempty"` } // NewLineItemOptionDataRelationships instantiates a new LineItemOptionDataRelationships object @@ -105,6 +107,70 @@ func (o *LineItemOptionDataRelationships) SetSkuOption(v LineItemOptionDataRelat o.SkuOption = &v } +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *LineItemOptionDataRelationships) GetEvents() AddressDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret AddressDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemOptionDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *LineItemOptionDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *LineItemOptionDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *LineItemOptionDataRelationships) GetTags() AddressDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemOptionDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *LineItemOptionDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressDataRelationshipsTags and assigns it to the Tags field. +func (o *LineItemOptionDataRelationships) SetTags(v AddressDataRelationshipsTags) { + o.Tags = &v +} + func (o LineItemOptionDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +187,12 @@ func (o LineItemOptionDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.SkuOption) { toSerialize["sku_option"] = o.SkuOption } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_line_item_option_data_relationships_line_item.go b/api/model_line_item_option_data_relationships_line_item.go index d486b707..d446bdba 100644 --- a/api/model_line_item_option_data_relationships_line_item.go +++ b/api/model_line_item_option_data_relationships_line_item.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_option_data_relationships_line_item_data.go b/api/model_line_item_option_data_relationships_line_item_data.go index dfba1609..5f16faf4 100644 --- a/api/model_line_item_option_data_relationships_line_item_data.go +++ b/api/model_line_item_option_data_relationships_line_item_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_option_data_relationships_sku_option.go b/api/model_line_item_option_data_relationships_sku_option.go index 626f5164..210e66ff 100644 --- a/api/model_line_item_option_data_relationships_sku_option.go +++ b/api/model_line_item_option_data_relationships_sku_option.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_option_data_relationships_sku_option_data.go b/api/model_line_item_option_data_relationships_sku_option_data.go index 8ffbbe19..98ffa7bc 100644 --- a/api/model_line_item_option_data_relationships_sku_option_data.go +++ b/api/model_line_item_option_data_relationships_sku_option_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_option_update.go b/api/model_line_item_option_update.go index b664b4d4..6f3a5dfe 100644 --- a/api/model_line_item_option_update.go +++ b/api/model_line_item_option_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_option_update_data.go b/api/model_line_item_option_update_data.go index e493ba46..7cc1d861 100644 --- a/api/model_line_item_option_update_data.go +++ b/api/model_line_item_option_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_option_update_data_relationships.go b/api/model_line_item_option_update_data_relationships.go index b2855426..2a4d8735 100644 --- a/api/model_line_item_option_update_data_relationships.go +++ b/api/model_line_item_option_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &LineItemOptionUpdateDataRelationships{} // LineItemOptionUpdateDataRelationships struct for LineItemOptionUpdateDataRelationships type LineItemOptionUpdateDataRelationships struct { SkuOption *LineItemOptionCreateDataRelationshipsSkuOption `json:"sku_option,omitempty"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` } // NewLineItemOptionUpdateDataRelationships instantiates a new LineItemOptionUpdateDataRelationships object @@ -72,6 +73,38 @@ func (o *LineItemOptionUpdateDataRelationships) SetSkuOption(v LineItemOptionCre o.SkuOption = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *LineItemOptionUpdateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LineItemOptionUpdateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *LineItemOptionUpdateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *LineItemOptionUpdateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + func (o LineItemOptionUpdateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +118,9 @@ func (o LineItemOptionUpdateDataRelationships) ToMap() (map[string]interface{}, if !IsNil(o.SkuOption) { toSerialize["sku_option"] = o.SkuOption } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_line_item_update.go b/api/model_line_item_update.go index a0d4cc8e..e2014e59 100644 --- a/api/model_line_item_update.go +++ b/api/model_line_item_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_line_item_update_data.go b/api/model_line_item_update_data.go index 69fcc415..e4720d26 100644 --- a/api/model_line_item_update_data.go +++ b/api/model_line_item_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -25,7 +25,7 @@ type LineItemUpdateData struct { // The resource's id Id interface{} `json:"id"` Attributes PATCHLineItemsLineItemId200ResponseDataAttributes `json:"attributes"` - Relationships interface{} `json:"relationships,omitempty"` + Relationships *BundleUpdateDataRelationships `json:"relationships,omitempty"` } // NewLineItemUpdateData instantiates a new LineItemUpdateData object @@ -124,37 +124,36 @@ func (o *LineItemUpdateData) SetAttributes(v PATCHLineItemsLineItemId200Response o.Attributes = v } -// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *LineItemUpdateData) GetRelationships() interface{} { - if o == nil { - var ret interface{} +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *LineItemUpdateData) GetRelationships() BundleUpdateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret BundleUpdateDataRelationships return ret } - return o.Relationships + return *o.Relationships } // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *LineItemUpdateData) GetRelationshipsOk() (*interface{}, bool) { +func (o *LineItemUpdateData) GetRelationshipsOk() (*BundleUpdateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } - return &o.Relationships, true + return o.Relationships, true } // HasRelationships returns a boolean if a field has been set. func (o *LineItemUpdateData) HasRelationships() bool { - if o != nil && IsNil(o.Relationships) { + if o != nil && !IsNil(o.Relationships) { return true } return false } -// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. -func (o *LineItemUpdateData) SetRelationships(v interface{}) { - o.Relationships = v +// SetRelationships gets a reference to the given BundleUpdateDataRelationships and assigns it to the Relationships field. +func (o *LineItemUpdateData) SetRelationships(v BundleUpdateDataRelationships) { + o.Relationships = &v } func (o LineItemUpdateData) MarshalJSON() ([]byte, error) { @@ -174,7 +173,7 @@ func (o LineItemUpdateData) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id } toSerialize["attributes"] = o.Attributes - if o.Relationships != nil { + if !IsNil(o.Relationships) { toSerialize["relationships"] = o.Relationships } return toSerialize, nil diff --git a/api/model_link.go b/api/model_link.go new file mode 100644 index 00000000..dc97244b --- /dev/null +++ b/api/model_link.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the Link type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Link{} + +// Link struct for Link +type Link struct { + Data *LinkData `json:"data,omitempty"` +} + +// NewLink instantiates a new Link object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLink() *Link { + this := Link{} + return &this +} + +// NewLinkWithDefaults instantiates a new Link object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkWithDefaults() *Link { + this := Link{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *Link) GetData() LinkData { + if o == nil || IsNil(o.Data) { + var ret LinkData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Link) GetDataOk() (*LinkData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *Link) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given LinkData and assigns it to the Data field. +func (o *Link) SetData(v LinkData) { + o.Data = &v +} + +func (o Link) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Link) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableLink struct { + value *Link + isSet bool +} + +func (v NullableLink) Get() *Link { + return v.value +} + +func (v *NullableLink) Set(val *Link) { + v.value = val + v.isSet = true +} + +func (v NullableLink) IsSet() bool { + return v.isSet +} + +func (v *NullableLink) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLink(val *Link) *NullableLink { + return &NullableLink{value: val, isSet: true} +} + +func (v NullableLink) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLink) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_link_create.go b/api/model_link_create.go new file mode 100644 index 00000000..cd9a553d --- /dev/null +++ b/api/model_link_create.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LinkCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LinkCreate{} + +// LinkCreate struct for LinkCreate +type LinkCreate struct { + Data LinkCreateData `json:"data"` +} + +// NewLinkCreate instantiates a new LinkCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinkCreate(data LinkCreateData) *LinkCreate { + this := LinkCreate{} + this.Data = data + return &this +} + +// NewLinkCreateWithDefaults instantiates a new LinkCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkCreateWithDefaults() *LinkCreate { + this := LinkCreate{} + return &this +} + +// GetData returns the Data field value +func (o *LinkCreate) GetData() LinkCreateData { + if o == nil { + var ret LinkCreateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *LinkCreate) GetDataOk() (*LinkCreateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *LinkCreate) SetData(v LinkCreateData) { + o.Data = v +} + +func (o LinkCreate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LinkCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableLinkCreate struct { + value *LinkCreate + isSet bool +} + +func (v NullableLinkCreate) Get() *LinkCreate { + return v.value +} + +func (v *NullableLinkCreate) Set(val *LinkCreate) { + v.value = val + v.isSet = true +} + +func (v NullableLinkCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkCreate(val *LinkCreate) *NullableLinkCreate { + return &NullableLinkCreate{value: val, isSet: true} +} + +func (v NullableLinkCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_link_create_data.go b/api/model_link_create_data.go new file mode 100644 index 00000000..45d37913 --- /dev/null +++ b/api/model_link_create_data.go @@ -0,0 +1,184 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LinkCreateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LinkCreateData{} + +// LinkCreateData struct for LinkCreateData +type LinkCreateData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes POSTLinks201ResponseDataAttributes `json:"attributes"` + Relationships *LinkCreateDataRelationships `json:"relationships,omitempty"` +} + +// NewLinkCreateData instantiates a new LinkCreateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinkCreateData(type_ interface{}, attributes POSTLinks201ResponseDataAttributes) *LinkCreateData { + this := LinkCreateData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewLinkCreateDataWithDefaults instantiates a new LinkCreateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkCreateDataWithDefaults() *LinkCreateData { + this := LinkCreateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *LinkCreateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LinkCreateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *LinkCreateData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *LinkCreateData) GetAttributes() POSTLinks201ResponseDataAttributes { + if o == nil { + var ret POSTLinks201ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *LinkCreateData) GetAttributesOk() (*POSTLinks201ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *LinkCreateData) SetAttributes(v POSTLinks201ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *LinkCreateData) GetRelationships() LinkCreateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret LinkCreateDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkCreateData) GetRelationshipsOk() (*LinkCreateDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *LinkCreateData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given LinkCreateDataRelationships and assigns it to the Relationships field. +func (o *LinkCreateData) SetRelationships(v LinkCreateDataRelationships) { + o.Relationships = &v +} + +func (o LinkCreateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LinkCreateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableLinkCreateData struct { + value *LinkCreateData + isSet bool +} + +func (v NullableLinkCreateData) Get() *LinkCreateData { + return v.value +} + +func (v *NullableLinkCreateData) Set(val *LinkCreateData) { + v.value = val + v.isSet = true +} + +func (v NullableLinkCreateData) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkCreateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkCreateData(val *LinkCreateData) *NullableLinkCreateData { + return &NullableLinkCreateData{value: val, isSet: true} +} + +func (v NullableLinkCreateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkCreateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_link_create_data_relationships.go b/api/model_link_create_data_relationships.go new file mode 100644 index 00000000..5e68a14e --- /dev/null +++ b/api/model_link_create_data_relationships.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LinkCreateDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LinkCreateDataRelationships{} + +// LinkCreateDataRelationships struct for LinkCreateDataRelationships +type LinkCreateDataRelationships struct { + Item LinkCreateDataRelationshipsItem `json:"item"` +} + +// NewLinkCreateDataRelationships instantiates a new LinkCreateDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinkCreateDataRelationships(item LinkCreateDataRelationshipsItem) *LinkCreateDataRelationships { + this := LinkCreateDataRelationships{} + this.Item = item + return &this +} + +// NewLinkCreateDataRelationshipsWithDefaults instantiates a new LinkCreateDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkCreateDataRelationshipsWithDefaults() *LinkCreateDataRelationships { + this := LinkCreateDataRelationships{} + return &this +} + +// GetItem returns the Item field value +func (o *LinkCreateDataRelationships) GetItem() LinkCreateDataRelationshipsItem { + if o == nil { + var ret LinkCreateDataRelationshipsItem + return ret + } + + return o.Item +} + +// GetItemOk returns a tuple with the Item field value +// and a boolean to check if the value has been set. +func (o *LinkCreateDataRelationships) GetItemOk() (*LinkCreateDataRelationshipsItem, bool) { + if o == nil { + return nil, false + } + return &o.Item, true +} + +// SetItem sets field value +func (o *LinkCreateDataRelationships) SetItem(v LinkCreateDataRelationshipsItem) { + o.Item = v +} + +func (o LinkCreateDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LinkCreateDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["item"] = o.Item + return toSerialize, nil +} + +type NullableLinkCreateDataRelationships struct { + value *LinkCreateDataRelationships + isSet bool +} + +func (v NullableLinkCreateDataRelationships) Get() *LinkCreateDataRelationships { + return v.value +} + +func (v *NullableLinkCreateDataRelationships) Set(val *LinkCreateDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableLinkCreateDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkCreateDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkCreateDataRelationships(val *LinkCreateDataRelationships) *NullableLinkCreateDataRelationships { + return &NullableLinkCreateDataRelationships{value: val, isSet: true} +} + +func (v NullableLinkCreateDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkCreateDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_link_create_data_relationships_item.go b/api/model_link_create_data_relationships_item.go new file mode 100644 index 00000000..eb284cb8 --- /dev/null +++ b/api/model_link_create_data_relationships_item.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LinkCreateDataRelationshipsItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LinkCreateDataRelationshipsItem{} + +// LinkCreateDataRelationshipsItem struct for LinkCreateDataRelationshipsItem +type LinkCreateDataRelationshipsItem struct { + Data LinkDataRelationshipsItemData `json:"data"` +} + +// NewLinkCreateDataRelationshipsItem instantiates a new LinkCreateDataRelationshipsItem object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinkCreateDataRelationshipsItem(data LinkDataRelationshipsItemData) *LinkCreateDataRelationshipsItem { + this := LinkCreateDataRelationshipsItem{} + this.Data = data + return &this +} + +// NewLinkCreateDataRelationshipsItemWithDefaults instantiates a new LinkCreateDataRelationshipsItem object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkCreateDataRelationshipsItemWithDefaults() *LinkCreateDataRelationshipsItem { + this := LinkCreateDataRelationshipsItem{} + return &this +} + +// GetData returns the Data field value +func (o *LinkCreateDataRelationshipsItem) GetData() LinkDataRelationshipsItemData { + if o == nil { + var ret LinkDataRelationshipsItemData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *LinkCreateDataRelationshipsItem) GetDataOk() (*LinkDataRelationshipsItemData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *LinkCreateDataRelationshipsItem) SetData(v LinkDataRelationshipsItemData) { + o.Data = v +} + +func (o LinkCreateDataRelationshipsItem) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LinkCreateDataRelationshipsItem) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableLinkCreateDataRelationshipsItem struct { + value *LinkCreateDataRelationshipsItem + isSet bool +} + +func (v NullableLinkCreateDataRelationshipsItem) Get() *LinkCreateDataRelationshipsItem { + return v.value +} + +func (v *NullableLinkCreateDataRelationshipsItem) Set(val *LinkCreateDataRelationshipsItem) { + v.value = val + v.isSet = true +} + +func (v NullableLinkCreateDataRelationshipsItem) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkCreateDataRelationshipsItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkCreateDataRelationshipsItem(val *LinkCreateDataRelationshipsItem) *NullableLinkCreateDataRelationshipsItem { + return &NullableLinkCreateDataRelationshipsItem{value: val, isSet: true} +} + +func (v NullableLinkCreateDataRelationshipsItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkCreateDataRelationshipsItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_link_data.go b/api/model_link_data.go new file mode 100644 index 00000000..a833c97a --- /dev/null +++ b/api/model_link_data.go @@ -0,0 +1,184 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LinkData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LinkData{} + +// LinkData struct for LinkData +type LinkData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes GETLinksLinkId200ResponseDataAttributes `json:"attributes"` + Relationships *LinkDataRelationships `json:"relationships,omitempty"` +} + +// NewLinkData instantiates a new LinkData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinkData(type_ interface{}, attributes GETLinksLinkId200ResponseDataAttributes) *LinkData { + this := LinkData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewLinkDataWithDefaults instantiates a new LinkData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkDataWithDefaults() *LinkData { + this := LinkData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *LinkData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LinkData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *LinkData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *LinkData) GetAttributes() GETLinksLinkId200ResponseDataAttributes { + if o == nil { + var ret GETLinksLinkId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *LinkData) GetAttributesOk() (*GETLinksLinkId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *LinkData) SetAttributes(v GETLinksLinkId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *LinkData) GetRelationships() LinkDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret LinkDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkData) GetRelationshipsOk() (*LinkDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *LinkData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given LinkDataRelationships and assigns it to the Relationships field. +func (o *LinkData) SetRelationships(v LinkDataRelationships) { + o.Relationships = &v +} + +func (o LinkData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LinkData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableLinkData struct { + value *LinkData + isSet bool +} + +func (v NullableLinkData) Get() *LinkData { + return v.value +} + +func (v *NullableLinkData) Set(val *LinkData) { + v.value = val + v.isSet = true +} + +func (v NullableLinkData) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkData(val *LinkData) *NullableLinkData { + return &NullableLinkData{value: val, isSet: true} +} + +func (v NullableLinkData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_link_data_relationships.go b/api/model_link_data_relationships.go new file mode 100644 index 00000000..58f53b5f --- /dev/null +++ b/api/model_link_data_relationships.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LinkDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LinkDataRelationships{} + +// LinkDataRelationships struct for LinkDataRelationships +type LinkDataRelationships struct { + Item *LinkDataRelationshipsItem `json:"item,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` +} + +// NewLinkDataRelationships instantiates a new LinkDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinkDataRelationships() *LinkDataRelationships { + this := LinkDataRelationships{} + return &this +} + +// NewLinkDataRelationshipsWithDefaults instantiates a new LinkDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkDataRelationshipsWithDefaults() *LinkDataRelationships { + this := LinkDataRelationships{} + return &this +} + +// GetItem returns the Item field value if set, zero value otherwise. +func (o *LinkDataRelationships) GetItem() LinkDataRelationshipsItem { + if o == nil || IsNil(o.Item) { + var ret LinkDataRelationshipsItem + return ret + } + return *o.Item +} + +// GetItemOk returns a tuple with the Item field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkDataRelationships) GetItemOk() (*LinkDataRelationshipsItem, bool) { + if o == nil || IsNil(o.Item) { + return nil, false + } + return o.Item, true +} + +// HasItem returns a boolean if a field has been set. +func (o *LinkDataRelationships) HasItem() bool { + if o != nil && !IsNil(o.Item) { + return true + } + + return false +} + +// SetItem gets a reference to the given LinkDataRelationshipsItem and assigns it to the Item field. +func (o *LinkDataRelationships) SetItem(v LinkDataRelationshipsItem) { + o.Item = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *LinkDataRelationships) GetEvents() AddressDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret AddressDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *LinkDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *LinkDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { + o.Events = &v +} + +func (o LinkDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LinkDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Item) { + toSerialize["item"] = o.Item + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + return toSerialize, nil +} + +type NullableLinkDataRelationships struct { + value *LinkDataRelationships + isSet bool +} + +func (v NullableLinkDataRelationships) Get() *LinkDataRelationships { + return v.value +} + +func (v *NullableLinkDataRelationships) Set(val *LinkDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableLinkDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkDataRelationships(val *LinkDataRelationships) *NullableLinkDataRelationships { + return &NullableLinkDataRelationships{value: val, isSet: true} +} + +func (v NullableLinkDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_link_data_relationships_item.go b/api/model_link_data_relationships_item.go new file mode 100644 index 00000000..68163ade --- /dev/null +++ b/api/model_link_data_relationships_item.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LinkDataRelationshipsItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LinkDataRelationshipsItem{} + +// LinkDataRelationshipsItem struct for LinkDataRelationshipsItem +type LinkDataRelationshipsItem struct { + Data *LinkDataRelationshipsItemData `json:"data,omitempty"` +} + +// NewLinkDataRelationshipsItem instantiates a new LinkDataRelationshipsItem object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinkDataRelationshipsItem() *LinkDataRelationshipsItem { + this := LinkDataRelationshipsItem{} + return &this +} + +// NewLinkDataRelationshipsItemWithDefaults instantiates a new LinkDataRelationshipsItem object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkDataRelationshipsItemWithDefaults() *LinkDataRelationshipsItem { + this := LinkDataRelationshipsItem{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *LinkDataRelationshipsItem) GetData() LinkDataRelationshipsItemData { + if o == nil || IsNil(o.Data) { + var ret LinkDataRelationshipsItemData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkDataRelationshipsItem) GetDataOk() (*LinkDataRelationshipsItemData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *LinkDataRelationshipsItem) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given LinkDataRelationshipsItemData and assigns it to the Data field. +func (o *LinkDataRelationshipsItem) SetData(v LinkDataRelationshipsItemData) { + o.Data = &v +} + +func (o LinkDataRelationshipsItem) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LinkDataRelationshipsItem) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableLinkDataRelationshipsItem struct { + value *LinkDataRelationshipsItem + isSet bool +} + +func (v NullableLinkDataRelationshipsItem) Get() *LinkDataRelationshipsItem { + return v.value +} + +func (v *NullableLinkDataRelationshipsItem) Set(val *LinkDataRelationshipsItem) { + v.value = val + v.isSet = true +} + +func (v NullableLinkDataRelationshipsItem) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkDataRelationshipsItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkDataRelationshipsItem(val *LinkDataRelationshipsItem) *NullableLinkDataRelationshipsItem { + return &NullableLinkDataRelationshipsItem{value: val, isSet: true} +} + +func (v NullableLinkDataRelationshipsItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkDataRelationshipsItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_link_data_relationships_item_data.go b/api/model_link_data_relationships_item_data.go new file mode 100644 index 00000000..00dea045 --- /dev/null +++ b/api/model_link_data_relationships_item_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LinkDataRelationshipsItemData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LinkDataRelationshipsItemData{} + +// LinkDataRelationshipsItemData struct for LinkDataRelationshipsItemData +type LinkDataRelationshipsItemData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource's id + Id interface{} `json:"id,omitempty"` +} + +// NewLinkDataRelationshipsItemData instantiates a new LinkDataRelationshipsItemData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinkDataRelationshipsItemData() *LinkDataRelationshipsItemData { + this := LinkDataRelationshipsItemData{} + return &this +} + +// NewLinkDataRelationshipsItemDataWithDefaults instantiates a new LinkDataRelationshipsItemData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkDataRelationshipsItemDataWithDefaults() *LinkDataRelationshipsItemData { + this := LinkDataRelationshipsItemData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LinkDataRelationshipsItemData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LinkDataRelationshipsItemData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *LinkDataRelationshipsItemData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *LinkDataRelationshipsItemData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LinkDataRelationshipsItemData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LinkDataRelationshipsItemData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *LinkDataRelationshipsItemData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *LinkDataRelationshipsItemData) SetId(v interface{}) { + o.Id = v +} + +func (o LinkDataRelationshipsItemData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LinkDataRelationshipsItemData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableLinkDataRelationshipsItemData struct { + value *LinkDataRelationshipsItemData + isSet bool +} + +func (v NullableLinkDataRelationshipsItemData) Get() *LinkDataRelationshipsItemData { + return v.value +} + +func (v *NullableLinkDataRelationshipsItemData) Set(val *LinkDataRelationshipsItemData) { + v.value = val + v.isSet = true +} + +func (v NullableLinkDataRelationshipsItemData) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkDataRelationshipsItemData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkDataRelationshipsItemData(val *LinkDataRelationshipsItemData) *NullableLinkDataRelationshipsItemData { + return &NullableLinkDataRelationshipsItemData{value: val, isSet: true} +} + +func (v NullableLinkDataRelationshipsItemData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkDataRelationshipsItemData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_link_update.go b/api/model_link_update.go new file mode 100644 index 00000000..ed0a10ca --- /dev/null +++ b/api/model_link_update.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LinkUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LinkUpdate{} + +// LinkUpdate struct for LinkUpdate +type LinkUpdate struct { + Data LinkUpdateData `json:"data"` +} + +// NewLinkUpdate instantiates a new LinkUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinkUpdate(data LinkUpdateData) *LinkUpdate { + this := LinkUpdate{} + this.Data = data + return &this +} + +// NewLinkUpdateWithDefaults instantiates a new LinkUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkUpdateWithDefaults() *LinkUpdate { + this := LinkUpdate{} + return &this +} + +// GetData returns the Data field value +func (o *LinkUpdate) GetData() LinkUpdateData { + if o == nil { + var ret LinkUpdateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *LinkUpdate) GetDataOk() (*LinkUpdateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *LinkUpdate) SetData(v LinkUpdateData) { + o.Data = v +} + +func (o LinkUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LinkUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableLinkUpdate struct { + value *LinkUpdate + isSet bool +} + +func (v NullableLinkUpdate) Get() *LinkUpdate { + return v.value +} + +func (v *NullableLinkUpdate) Set(val *LinkUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableLinkUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkUpdate(val *LinkUpdate) *NullableLinkUpdate { + return &NullableLinkUpdate{value: val, isSet: true} +} + +func (v NullableLinkUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_link_update_data.go b/api/model_link_update_data.go new file mode 100644 index 00000000..03748fe0 --- /dev/null +++ b/api/model_link_update_data.go @@ -0,0 +1,216 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LinkUpdateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LinkUpdateData{} + +// LinkUpdateData struct for LinkUpdateData +type LinkUpdateData struct { + // The resource's type + Type interface{} `json:"type"` + // The resource's id + Id interface{} `json:"id"` + Attributes PATCHLinksLinkId200ResponseDataAttributes `json:"attributes"` + Relationships *LinkUpdateDataRelationships `json:"relationships,omitempty"` +} + +// NewLinkUpdateData instantiates a new LinkUpdateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinkUpdateData(type_ interface{}, id interface{}, attributes PATCHLinksLinkId200ResponseDataAttributes) *LinkUpdateData { + this := LinkUpdateData{} + this.Type = type_ + this.Id = id + this.Attributes = attributes + return &this +} + +// NewLinkUpdateDataWithDefaults instantiates a new LinkUpdateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkUpdateDataWithDefaults() *LinkUpdateData { + this := LinkUpdateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *LinkUpdateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LinkUpdateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *LinkUpdateData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *LinkUpdateData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LinkUpdateData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *LinkUpdateData) SetId(v interface{}) { + o.Id = v +} + +// GetAttributes returns the Attributes field value +func (o *LinkUpdateData) GetAttributes() PATCHLinksLinkId200ResponseDataAttributes { + if o == nil { + var ret PATCHLinksLinkId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *LinkUpdateData) GetAttributesOk() (*PATCHLinksLinkId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *LinkUpdateData) SetAttributes(v PATCHLinksLinkId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *LinkUpdateData) GetRelationships() LinkUpdateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret LinkUpdateDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkUpdateData) GetRelationshipsOk() (*LinkUpdateDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *LinkUpdateData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given LinkUpdateDataRelationships and assigns it to the Relationships field. +func (o *LinkUpdateData) SetRelationships(v LinkUpdateDataRelationships) { + o.Relationships = &v +} + +func (o LinkUpdateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LinkUpdateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableLinkUpdateData struct { + value *LinkUpdateData + isSet bool +} + +func (v NullableLinkUpdateData) Get() *LinkUpdateData { + return v.value +} + +func (v *NullableLinkUpdateData) Set(val *LinkUpdateData) { + v.value = val + v.isSet = true +} + +func (v NullableLinkUpdateData) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkUpdateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkUpdateData(val *LinkUpdateData) *NullableLinkUpdateData { + return &NullableLinkUpdateData{value: val, isSet: true} +} + +func (v NullableLinkUpdateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkUpdateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_link_update_data_relationships.go b/api/model_link_update_data_relationships.go new file mode 100644 index 00000000..8c0cfa2d --- /dev/null +++ b/api/model_link_update_data_relationships.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the LinkUpdateDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LinkUpdateDataRelationships{} + +// LinkUpdateDataRelationships struct for LinkUpdateDataRelationships +type LinkUpdateDataRelationships struct { + Item *LinkCreateDataRelationshipsItem `json:"item,omitempty"` +} + +// NewLinkUpdateDataRelationships instantiates a new LinkUpdateDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLinkUpdateDataRelationships() *LinkUpdateDataRelationships { + this := LinkUpdateDataRelationships{} + return &this +} + +// NewLinkUpdateDataRelationshipsWithDefaults instantiates a new LinkUpdateDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLinkUpdateDataRelationshipsWithDefaults() *LinkUpdateDataRelationships { + this := LinkUpdateDataRelationships{} + return &this +} + +// GetItem returns the Item field value if set, zero value otherwise. +func (o *LinkUpdateDataRelationships) GetItem() LinkCreateDataRelationshipsItem { + if o == nil || IsNil(o.Item) { + var ret LinkCreateDataRelationshipsItem + return ret + } + return *o.Item +} + +// GetItemOk returns a tuple with the Item field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LinkUpdateDataRelationships) GetItemOk() (*LinkCreateDataRelationshipsItem, bool) { + if o == nil || IsNil(o.Item) { + return nil, false + } + return o.Item, true +} + +// HasItem returns a boolean if a field has been set. +func (o *LinkUpdateDataRelationships) HasItem() bool { + if o != nil && !IsNil(o.Item) { + return true + } + + return false +} + +// SetItem gets a reference to the given LinkCreateDataRelationshipsItem and assigns it to the Item field. +func (o *LinkUpdateDataRelationships) SetItem(v LinkCreateDataRelationshipsItem) { + o.Item = &v +} + +func (o LinkUpdateDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LinkUpdateDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Item) { + toSerialize["item"] = o.Item + } + return toSerialize, nil +} + +type NullableLinkUpdateDataRelationships struct { + value *LinkUpdateDataRelationships + isSet bool +} + +func (v NullableLinkUpdateDataRelationships) Get() *LinkUpdateDataRelationships { + return v.value +} + +func (v *NullableLinkUpdateDataRelationships) Set(val *LinkUpdateDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableLinkUpdateDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableLinkUpdateDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLinkUpdateDataRelationships(val *LinkUpdateDataRelationships) *NullableLinkUpdateDataRelationships { + return &NullableLinkUpdateDataRelationships{value: val, isSet: true} +} + +func (v NullableLinkUpdateDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLinkUpdateDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_manual_gateway.go b/api/model_manual_gateway.go index 616ec22b..160acd43 100644 --- a/api/model_manual_gateway.go +++ b/api/model_manual_gateway.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_manual_gateway_create.go b/api/model_manual_gateway_create.go index 8a90e636..c5ff38aa 100644 --- a/api/model_manual_gateway_create.go +++ b/api/model_manual_gateway_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_manual_gateway_create_data.go b/api/model_manual_gateway_create_data.go index bcfd1714..e48b8c45 100644 --- a/api/model_manual_gateway_create_data.go +++ b/api/model_manual_gateway_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_manual_gateway_data.go b/api/model_manual_gateway_data.go index ff63babd..0f2e3038 100644 --- a/api/model_manual_gateway_data.go +++ b/api/model_manual_gateway_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_manual_gateway_data_relationships.go b/api/model_manual_gateway_data_relationships.go index 358e851d..86f07931 100644 --- a/api/model_manual_gateway_data_relationships.go +++ b/api/model_manual_gateway_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &ManualGatewayDataRelationships{} // ManualGatewayDataRelationships struct for ManualGatewayDataRelationships type ManualGatewayDataRelationships struct { PaymentMethods *AdyenGatewayDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewManualGatewayDataRelationships instantiates a new ManualGatewayDataRelationships object @@ -72,6 +73,38 @@ func (o *ManualGatewayDataRelationships) SetPaymentMethods(v AdyenGatewayDataRel o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *ManualGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ManualGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *ManualGatewayDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *ManualGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o ManualGatewayDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +118,9 @@ func (o ManualGatewayDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_manual_gateway_update.go b/api/model_manual_gateway_update.go index 00c54d9a..bc1b684e 100644 --- a/api/model_manual_gateway_update.go +++ b/api/model_manual_gateway_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_manual_gateway_update_data.go b/api/model_manual_gateway_update_data.go index 08aadb99..e6e8925d 100644 --- a/api/model_manual_gateway_update_data.go +++ b/api/model_manual_gateway_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_manual_tax_calculator.go b/api/model_manual_tax_calculator.go index 8c3b24e6..f901c02c 100644 --- a/api/model_manual_tax_calculator.go +++ b/api/model_manual_tax_calculator.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_manual_tax_calculator_create.go b/api/model_manual_tax_calculator_create.go index e2438d48..dd6082ad 100644 --- a/api/model_manual_tax_calculator_create.go +++ b/api/model_manual_tax_calculator_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_manual_tax_calculator_create_data.go b/api/model_manual_tax_calculator_create_data.go index e438d134..b7121d83 100644 --- a/api/model_manual_tax_calculator_create_data.go +++ b/api/model_manual_tax_calculator_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_manual_tax_calculator_create_data_relationships.go b/api/model_manual_tax_calculator_create_data_relationships.go index 11f14f92..a1f08db6 100644 --- a/api/model_manual_tax_calculator_create_data_relationships.go +++ b/api/model_manual_tax_calculator_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_manual_tax_calculator_create_data_relationships_tax_rules.go b/api/model_manual_tax_calculator_create_data_relationships_tax_rules.go index de3a51a1..65d544cb 100644 --- a/api/model_manual_tax_calculator_create_data_relationships_tax_rules.go +++ b/api/model_manual_tax_calculator_create_data_relationships_tax_rules.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_manual_tax_calculator_data.go b/api/model_manual_tax_calculator_data.go index e389352c..084ff12e 100644 --- a/api/model_manual_tax_calculator_data.go +++ b/api/model_manual_tax_calculator_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_manual_tax_calculator_data_relationships.go b/api/model_manual_tax_calculator_data_relationships.go index 6477abb8..d811876d 100644 --- a/api/model_manual_tax_calculator_data_relationships.go +++ b/api/model_manual_tax_calculator_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,7 +21,8 @@ var _ MappedNullable = &ManualTaxCalculatorDataRelationships{} // ManualTaxCalculatorDataRelationships struct for ManualTaxCalculatorDataRelationships type ManualTaxCalculatorDataRelationships struct { Markets *AvalaraAccountDataRelationshipsMarkets `json:"markets,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` TaxRules *ManualTaxCalculatorDataRelationshipsTaxRules `json:"tax_rules,omitempty"` } @@ -75,9 +76,9 @@ func (o *ManualTaxCalculatorDataRelationships) SetMarkets(v AvalaraAccountDataRe } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *ManualTaxCalculatorDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *ManualTaxCalculatorDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -85,7 +86,7 @@ func (o *ManualTaxCalculatorDataRelationships) GetAttachments() AvalaraAccountDa // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ManualTaxCalculatorDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *ManualTaxCalculatorDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -101,11 +102,43 @@ func (o *ManualTaxCalculatorDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *ManualTaxCalculatorDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *ManualTaxCalculatorDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *ManualTaxCalculatorDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ManualTaxCalculatorDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *ManualTaxCalculatorDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *ManualTaxCalculatorDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + // GetTaxRules returns the TaxRules field value if set, zero value otherwise. func (o *ManualTaxCalculatorDataRelationships) GetTaxRules() ManualTaxCalculatorDataRelationshipsTaxRules { if o == nil || IsNil(o.TaxRules) { @@ -154,6 +187,9 @@ func (o ManualTaxCalculatorDataRelationships) ToMap() (map[string]interface{}, e if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.TaxRules) { toSerialize["tax_rules"] = o.TaxRules } diff --git a/api/model_manual_tax_calculator_data_relationships_tax_rules.go b/api/model_manual_tax_calculator_data_relationships_tax_rules.go index 6c8d526f..7f73f392 100644 --- a/api/model_manual_tax_calculator_data_relationships_tax_rules.go +++ b/api/model_manual_tax_calculator_data_relationships_tax_rules.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_manual_tax_calculator_data_relationships_tax_rules_data.go b/api/model_manual_tax_calculator_data_relationships_tax_rules_data.go index 42a22a0e..9f5c1c63 100644 --- a/api/model_manual_tax_calculator_data_relationships_tax_rules_data.go +++ b/api/model_manual_tax_calculator_data_relationships_tax_rules_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_manual_tax_calculator_update.go b/api/model_manual_tax_calculator_update.go index 3681566a..8a2db965 100644 --- a/api/model_manual_tax_calculator_update.go +++ b/api/model_manual_tax_calculator_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_manual_tax_calculator_update_data.go b/api/model_manual_tax_calculator_update_data.go index 30be8a85..94d439a0 100644 --- a/api/model_manual_tax_calculator_update_data.go +++ b/api/model_manual_tax_calculator_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_market.go b/api/model_market.go index c334d394..f5e9bd27 100644 --- a/api/model_market.go +++ b/api/model_market.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_market_create.go b/api/model_market_create.go index e6e615a7..b6bef4d2 100644 --- a/api/model_market_create.go +++ b/api/model_market_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_market_create_data.go b/api/model_market_create_data.go index 93f9e7f4..ab0975e4 100644 --- a/api/model_market_create_data.go +++ b/api/model_market_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_market_create_data_relationships.go b/api/model_market_create_data_relationships.go index 9dbf25ce..b3e1ed64 100644 --- a/api/model_market_create_data_relationships.go +++ b/api/model_market_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,6 +26,7 @@ type MarketCreateDataRelationships struct { SubscriptionModel *MarketCreateDataRelationshipsSubscriptionModel `json:"subscription_model,omitempty"` TaxCalculator *MarketCreateDataRelationshipsTaxCalculator `json:"tax_calculator,omitempty"` CustomerGroup *CustomerCreateDataRelationshipsCustomerGroup `json:"customer_group,omitempty"` + Geocoder *AddressCreateDataRelationshipsGeocoder `json:"geocoder,omitempty"` } // NewMarketCreateDataRelationships instantiates a new MarketCreateDataRelationships object @@ -216,6 +217,38 @@ func (o *MarketCreateDataRelationships) SetCustomerGroup(v CustomerCreateDataRel o.CustomerGroup = &v } +// GetGeocoder returns the Geocoder field value if set, zero value otherwise. +func (o *MarketCreateDataRelationships) GetGeocoder() AddressCreateDataRelationshipsGeocoder { + if o == nil || IsNil(o.Geocoder) { + var ret AddressCreateDataRelationshipsGeocoder + return ret + } + return *o.Geocoder +} + +// GetGeocoderOk returns a tuple with the Geocoder field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketCreateDataRelationships) GetGeocoderOk() (*AddressCreateDataRelationshipsGeocoder, bool) { + if o == nil || IsNil(o.Geocoder) { + return nil, false + } + return o.Geocoder, true +} + +// HasGeocoder returns a boolean if a field has been set. +func (o *MarketCreateDataRelationships) HasGeocoder() bool { + if o != nil && !IsNil(o.Geocoder) { + return true + } + + return false +} + +// SetGeocoder gets a reference to the given AddressCreateDataRelationshipsGeocoder and assigns it to the Geocoder field. +func (o *MarketCreateDataRelationships) SetGeocoder(v AddressCreateDataRelationshipsGeocoder) { + o.Geocoder = &v +} + func (o MarketCreateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -238,6 +271,9 @@ func (o MarketCreateDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomerGroup) { toSerialize["customer_group"] = o.CustomerGroup } + if !IsNil(o.Geocoder) { + toSerialize["geocoder"] = o.Geocoder + } return toSerialize, nil } diff --git a/api/model_market_create_data_relationships_merchant.go b/api/model_market_create_data_relationships_merchant.go index 3fc621ec..e8691aaf 100644 --- a/api/model_market_create_data_relationships_merchant.go +++ b/api/model_market_create_data_relationships_merchant.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_market_create_data_relationships_price_list.go b/api/model_market_create_data_relationships_price_list.go index c1b7713c..0cbfa7e3 100644 --- a/api/model_market_create_data_relationships_price_list.go +++ b/api/model_market_create_data_relationships_price_list.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_market_create_data_relationships_subscription_model.go b/api/model_market_create_data_relationships_subscription_model.go index e617d37d..b10a7d84 100644 --- a/api/model_market_create_data_relationships_subscription_model.go +++ b/api/model_market_create_data_relationships_subscription_model.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_market_create_data_relationships_tax_calculator.go b/api/model_market_create_data_relationships_tax_calculator.go index 6a27cc3c..baa4670b 100644 --- a/api/model_market_create_data_relationships_tax_calculator.go +++ b/api/model_market_create_data_relationships_tax_calculator.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_market_data.go b/api/model_market_data.go index f6a3d075..cf2937eb 100644 --- a/api/model_market_data.go +++ b/api/model_market_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_market_data_relationships.go b/api/model_market_data_relationships.go index 51007a6c..1aa8b2a2 100644 --- a/api/model_market_data_relationships.go +++ b/api/model_market_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,13 +20,17 @@ var _ MappedNullable = &MarketDataRelationships{} // MarketDataRelationships struct for MarketDataRelationships type MarketDataRelationships struct { - Merchant *MarketDataRelationshipsMerchant `json:"merchant,omitempty"` - PriceList *MarketDataRelationshipsPriceList `json:"price_list,omitempty"` - InventoryModel *InventoryReturnLocationDataRelationshipsInventoryModel `json:"inventory_model,omitempty"` - SubscriptionModel *MarketDataRelationshipsSubscriptionModel `json:"subscription_model,omitempty"` - TaxCalculator *MarketDataRelationshipsTaxCalculator `json:"tax_calculator,omitempty"` - CustomerGroup *CustomerDataRelationshipsCustomerGroup `json:"customer_group,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Merchant *MarketDataRelationshipsMerchant `json:"merchant,omitempty"` + PriceList *MarketDataRelationshipsPriceList `json:"price_list,omitempty"` + BasePriceList *MarketDataRelationshipsPriceList `json:"base_price_list,omitempty"` + InventoryModel *InventoryReturnLocationDataRelationshipsInventoryModel `json:"inventory_model,omitempty"` + SubscriptionModel *MarketDataRelationshipsSubscriptionModel `json:"subscription_model,omitempty"` + TaxCalculator *MarketDataRelationshipsTaxCalculator `json:"tax_calculator,omitempty"` + CustomerGroup *CustomerDataRelationshipsCustomerGroup `json:"customer_group,omitempty"` + Geocoder *AddressDataRelationshipsGeocoder `json:"geocoder,omitempty"` + PriceListSchedulers *MarketDataRelationshipsPriceListSchedulers `json:"price_list_schedulers,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewMarketDataRelationships instantiates a new MarketDataRelationships object @@ -110,6 +114,38 @@ func (o *MarketDataRelationships) SetPriceList(v MarketDataRelationshipsPriceLis o.PriceList = &v } +// GetBasePriceList returns the BasePriceList field value if set, zero value otherwise. +func (o *MarketDataRelationships) GetBasePriceList() MarketDataRelationshipsPriceList { + if o == nil || IsNil(o.BasePriceList) { + var ret MarketDataRelationshipsPriceList + return ret + } + return *o.BasePriceList +} + +// GetBasePriceListOk returns a tuple with the BasePriceList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketDataRelationships) GetBasePriceListOk() (*MarketDataRelationshipsPriceList, bool) { + if o == nil || IsNil(o.BasePriceList) { + return nil, false + } + return o.BasePriceList, true +} + +// HasBasePriceList returns a boolean if a field has been set. +func (o *MarketDataRelationships) HasBasePriceList() bool { + if o != nil && !IsNil(o.BasePriceList) { + return true + } + + return false +} + +// SetBasePriceList gets a reference to the given MarketDataRelationshipsPriceList and assigns it to the BasePriceList field. +func (o *MarketDataRelationships) SetBasePriceList(v MarketDataRelationshipsPriceList) { + o.BasePriceList = &v +} + // GetInventoryModel returns the InventoryModel field value if set, zero value otherwise. func (o *MarketDataRelationships) GetInventoryModel() InventoryReturnLocationDataRelationshipsInventoryModel { if o == nil || IsNil(o.InventoryModel) { @@ -238,10 +274,74 @@ func (o *MarketDataRelationships) SetCustomerGroup(v CustomerDataRelationshipsCu o.CustomerGroup = &v } +// GetGeocoder returns the Geocoder field value if set, zero value otherwise. +func (o *MarketDataRelationships) GetGeocoder() AddressDataRelationshipsGeocoder { + if o == nil || IsNil(o.Geocoder) { + var ret AddressDataRelationshipsGeocoder + return ret + } + return *o.Geocoder +} + +// GetGeocoderOk returns a tuple with the Geocoder field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketDataRelationships) GetGeocoderOk() (*AddressDataRelationshipsGeocoder, bool) { + if o == nil || IsNil(o.Geocoder) { + return nil, false + } + return o.Geocoder, true +} + +// HasGeocoder returns a boolean if a field has been set. +func (o *MarketDataRelationships) HasGeocoder() bool { + if o != nil && !IsNil(o.Geocoder) { + return true + } + + return false +} + +// SetGeocoder gets a reference to the given AddressDataRelationshipsGeocoder and assigns it to the Geocoder field. +func (o *MarketDataRelationships) SetGeocoder(v AddressDataRelationshipsGeocoder) { + o.Geocoder = &v +} + +// GetPriceListSchedulers returns the PriceListSchedulers field value if set, zero value otherwise. +func (o *MarketDataRelationships) GetPriceListSchedulers() MarketDataRelationshipsPriceListSchedulers { + if o == nil || IsNil(o.PriceListSchedulers) { + var ret MarketDataRelationshipsPriceListSchedulers + return ret + } + return *o.PriceListSchedulers +} + +// GetPriceListSchedulersOk returns a tuple with the PriceListSchedulers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketDataRelationships) GetPriceListSchedulersOk() (*MarketDataRelationshipsPriceListSchedulers, bool) { + if o == nil || IsNil(o.PriceListSchedulers) { + return nil, false + } + return o.PriceListSchedulers, true +} + +// HasPriceListSchedulers returns a boolean if a field has been set. +func (o *MarketDataRelationships) HasPriceListSchedulers() bool { + if o != nil && !IsNil(o.PriceListSchedulers) { + return true + } + + return false +} + +// SetPriceListSchedulers gets a reference to the given MarketDataRelationshipsPriceListSchedulers and assigns it to the PriceListSchedulers field. +func (o *MarketDataRelationships) SetPriceListSchedulers(v MarketDataRelationshipsPriceListSchedulers) { + o.PriceListSchedulers = &v +} + // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *MarketDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *MarketDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -249,7 +349,7 @@ func (o *MarketDataRelationships) GetAttachments() AvalaraAccountDataRelationshi // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *MarketDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *MarketDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -265,11 +365,43 @@ func (o *MarketDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *MarketDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *MarketDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *MarketDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *MarketDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *MarketDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o MarketDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -286,6 +418,9 @@ func (o MarketDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.PriceList) { toSerialize["price_list"] = o.PriceList } + if !IsNil(o.BasePriceList) { + toSerialize["base_price_list"] = o.BasePriceList + } if !IsNil(o.InventoryModel) { toSerialize["inventory_model"] = o.InventoryModel } @@ -298,9 +433,18 @@ func (o MarketDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomerGroup) { toSerialize["customer_group"] = o.CustomerGroup } + if !IsNil(o.Geocoder) { + toSerialize["geocoder"] = o.Geocoder + } + if !IsNil(o.PriceListSchedulers) { + toSerialize["price_list_schedulers"] = o.PriceListSchedulers + } if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_market_data_relationships_merchant.go b/api/model_market_data_relationships_merchant.go index b8e7da4d..817b85fd 100644 --- a/api/model_market_data_relationships_merchant.go +++ b/api/model_market_data_relationships_merchant.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_market_data_relationships_merchant_data.go b/api/model_market_data_relationships_merchant_data.go index cd6883e4..459b3987 100644 --- a/api/model_market_data_relationships_merchant_data.go +++ b/api/model_market_data_relationships_merchant_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_market_data_relationships_price_list.go b/api/model_market_data_relationships_price_list.go index f5aa7927..a215138f 100644 --- a/api/model_market_data_relationships_price_list.go +++ b/api/model_market_data_relationships_price_list.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_market_data_relationships_price_list_data.go b/api/model_market_data_relationships_price_list_data.go index ceaddcf0..ed1bec2d 100644 --- a/api/model_market_data_relationships_price_list_data.go +++ b/api/model_market_data_relationships_price_list_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_market_data_relationships_price_list_schedulers.go b/api/model_market_data_relationships_price_list_schedulers.go new file mode 100644 index 00000000..36128515 --- /dev/null +++ b/api/model_market_data_relationships_price_list_schedulers.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the MarketDataRelationshipsPriceListSchedulers type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MarketDataRelationshipsPriceListSchedulers{} + +// MarketDataRelationshipsPriceListSchedulers struct for MarketDataRelationshipsPriceListSchedulers +type MarketDataRelationshipsPriceListSchedulers struct { + Data *MarketDataRelationshipsPriceListSchedulersData `json:"data,omitempty"` +} + +// NewMarketDataRelationshipsPriceListSchedulers instantiates a new MarketDataRelationshipsPriceListSchedulers object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMarketDataRelationshipsPriceListSchedulers() *MarketDataRelationshipsPriceListSchedulers { + this := MarketDataRelationshipsPriceListSchedulers{} + return &this +} + +// NewMarketDataRelationshipsPriceListSchedulersWithDefaults instantiates a new MarketDataRelationshipsPriceListSchedulers object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMarketDataRelationshipsPriceListSchedulersWithDefaults() *MarketDataRelationshipsPriceListSchedulers { + this := MarketDataRelationshipsPriceListSchedulers{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *MarketDataRelationshipsPriceListSchedulers) GetData() MarketDataRelationshipsPriceListSchedulersData { + if o == nil || IsNil(o.Data) { + var ret MarketDataRelationshipsPriceListSchedulersData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketDataRelationshipsPriceListSchedulers) GetDataOk() (*MarketDataRelationshipsPriceListSchedulersData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *MarketDataRelationshipsPriceListSchedulers) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given MarketDataRelationshipsPriceListSchedulersData and assigns it to the Data field. +func (o *MarketDataRelationshipsPriceListSchedulers) SetData(v MarketDataRelationshipsPriceListSchedulersData) { + o.Data = &v +} + +func (o MarketDataRelationshipsPriceListSchedulers) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MarketDataRelationshipsPriceListSchedulers) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableMarketDataRelationshipsPriceListSchedulers struct { + value *MarketDataRelationshipsPriceListSchedulers + isSet bool +} + +func (v NullableMarketDataRelationshipsPriceListSchedulers) Get() *MarketDataRelationshipsPriceListSchedulers { + return v.value +} + +func (v *NullableMarketDataRelationshipsPriceListSchedulers) Set(val *MarketDataRelationshipsPriceListSchedulers) { + v.value = val + v.isSet = true +} + +func (v NullableMarketDataRelationshipsPriceListSchedulers) IsSet() bool { + return v.isSet +} + +func (v *NullableMarketDataRelationshipsPriceListSchedulers) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMarketDataRelationshipsPriceListSchedulers(val *MarketDataRelationshipsPriceListSchedulers) *NullableMarketDataRelationshipsPriceListSchedulers { + return &NullableMarketDataRelationshipsPriceListSchedulers{value: val, isSet: true} +} + +func (v NullableMarketDataRelationshipsPriceListSchedulers) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMarketDataRelationshipsPriceListSchedulers) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_line_item_data_relationships_shipment_line_items_data.go b/api/model_market_data_relationships_price_list_schedulers_data.go similarity index 55% rename from api/model_line_item_data_relationships_shipment_line_items_data.go rename to api/model_market_data_relationships_price_list_schedulers_data.go index ce045375..246b2a8f 100644 --- a/api/model_line_item_data_relationships_shipment_line_items_data.go +++ b/api/model_market_data_relationships_price_list_schedulers_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the LineItemDataRelationshipsShipmentLineItemsData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &LineItemDataRelationshipsShipmentLineItemsData{} +// checks if the MarketDataRelationshipsPriceListSchedulersData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MarketDataRelationshipsPriceListSchedulersData{} -// LineItemDataRelationshipsShipmentLineItemsData struct for LineItemDataRelationshipsShipmentLineItemsData -type LineItemDataRelationshipsShipmentLineItemsData struct { +// MarketDataRelationshipsPriceListSchedulersData struct for MarketDataRelationshipsPriceListSchedulersData +type MarketDataRelationshipsPriceListSchedulersData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource's id Id interface{} `json:"id,omitempty"` } -// NewLineItemDataRelationshipsShipmentLineItemsData instantiates a new LineItemDataRelationshipsShipmentLineItemsData object +// NewMarketDataRelationshipsPriceListSchedulersData instantiates a new MarketDataRelationshipsPriceListSchedulersData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewLineItemDataRelationshipsShipmentLineItemsData() *LineItemDataRelationshipsShipmentLineItemsData { - this := LineItemDataRelationshipsShipmentLineItemsData{} +func NewMarketDataRelationshipsPriceListSchedulersData() *MarketDataRelationshipsPriceListSchedulersData { + this := MarketDataRelationshipsPriceListSchedulersData{} return &this } -// NewLineItemDataRelationshipsShipmentLineItemsDataWithDefaults instantiates a new LineItemDataRelationshipsShipmentLineItemsData object +// NewMarketDataRelationshipsPriceListSchedulersDataWithDefaults instantiates a new MarketDataRelationshipsPriceListSchedulersData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewLineItemDataRelationshipsShipmentLineItemsDataWithDefaults() *LineItemDataRelationshipsShipmentLineItemsData { - this := LineItemDataRelationshipsShipmentLineItemsData{} +func NewMarketDataRelationshipsPriceListSchedulersDataWithDefaults() *MarketDataRelationshipsPriceListSchedulersData { + this := MarketDataRelationshipsPriceListSchedulersData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *LineItemDataRelationshipsShipmentLineItemsData) GetType() interface{} { +func (o *MarketDataRelationshipsPriceListSchedulersData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *LineItemDataRelationshipsShipmentLineItemsData) GetType() interface{} { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *LineItemDataRelationshipsShipmentLineItemsData) GetTypeOk() (*interface{}, bool) { +func (o *MarketDataRelationshipsPriceListSchedulersData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *LineItemDataRelationshipsShipmentLineItemsData) GetTypeOk() (*interface } // HasType returns a boolean if a field has been set. -func (o *LineItemDataRelationshipsShipmentLineItemsData) HasType() bool { +func (o *MarketDataRelationshipsPriceListSchedulersData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *LineItemDataRelationshipsShipmentLineItemsData) HasType() bool { } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *LineItemDataRelationshipsShipmentLineItemsData) SetType(v interface{}) { +func (o *MarketDataRelationshipsPriceListSchedulersData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *LineItemDataRelationshipsShipmentLineItemsData) GetId() interface{} { +func (o *MarketDataRelationshipsPriceListSchedulersData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *LineItemDataRelationshipsShipmentLineItemsData) GetId() interface{} { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *LineItemDataRelationshipsShipmentLineItemsData) GetIdOk() (*interface{}, bool) { +func (o *MarketDataRelationshipsPriceListSchedulersData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *LineItemDataRelationshipsShipmentLineItemsData) GetIdOk() (*interface{} } // HasId returns a boolean if a field has been set. -func (o *LineItemDataRelationshipsShipmentLineItemsData) HasId() bool { +func (o *MarketDataRelationshipsPriceListSchedulersData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *LineItemDataRelationshipsShipmentLineItemsData) HasId() bool { } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *LineItemDataRelationshipsShipmentLineItemsData) SetId(v interface{}) { +func (o *MarketDataRelationshipsPriceListSchedulersData) SetId(v interface{}) { o.Id = v } -func (o LineItemDataRelationshipsShipmentLineItemsData) MarshalJSON() ([]byte, error) { +func (o MarketDataRelationshipsPriceListSchedulersData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o LineItemDataRelationshipsShipmentLineItemsData) MarshalJSON() ([]byte, e return json.Marshal(toSerialize) } -func (o LineItemDataRelationshipsShipmentLineItemsData) ToMap() (map[string]interface{}, error) { +func (o MarketDataRelationshipsPriceListSchedulersData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o LineItemDataRelationshipsShipmentLineItemsData) ToMap() (map[string]inte return toSerialize, nil } -type NullableLineItemDataRelationshipsShipmentLineItemsData struct { - value *LineItemDataRelationshipsShipmentLineItemsData +type NullableMarketDataRelationshipsPriceListSchedulersData struct { + value *MarketDataRelationshipsPriceListSchedulersData isSet bool } -func (v NullableLineItemDataRelationshipsShipmentLineItemsData) Get() *LineItemDataRelationshipsShipmentLineItemsData { +func (v NullableMarketDataRelationshipsPriceListSchedulersData) Get() *MarketDataRelationshipsPriceListSchedulersData { return v.value } -func (v *NullableLineItemDataRelationshipsShipmentLineItemsData) Set(val *LineItemDataRelationshipsShipmentLineItemsData) { +func (v *NullableMarketDataRelationshipsPriceListSchedulersData) Set(val *MarketDataRelationshipsPriceListSchedulersData) { v.value = val v.isSet = true } -func (v NullableLineItemDataRelationshipsShipmentLineItemsData) IsSet() bool { +func (v NullableMarketDataRelationshipsPriceListSchedulersData) IsSet() bool { return v.isSet } -func (v *NullableLineItemDataRelationshipsShipmentLineItemsData) Unset() { +func (v *NullableMarketDataRelationshipsPriceListSchedulersData) Unset() { v.value = nil v.isSet = false } -func NewNullableLineItemDataRelationshipsShipmentLineItemsData(val *LineItemDataRelationshipsShipmentLineItemsData) *NullableLineItemDataRelationshipsShipmentLineItemsData { - return &NullableLineItemDataRelationshipsShipmentLineItemsData{value: val, isSet: true} +func NewNullableMarketDataRelationshipsPriceListSchedulersData(val *MarketDataRelationshipsPriceListSchedulersData) *NullableMarketDataRelationshipsPriceListSchedulersData { + return &NullableMarketDataRelationshipsPriceListSchedulersData{value: val, isSet: true} } -func (v NullableLineItemDataRelationshipsShipmentLineItemsData) MarshalJSON() ([]byte, error) { +func (v NullableMarketDataRelationshipsPriceListSchedulersData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableLineItemDataRelationshipsShipmentLineItemsData) UnmarshalJSON(src []byte) error { +func (v *NullableMarketDataRelationshipsPriceListSchedulersData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_market_data_relationships_subscription_model.go b/api/model_market_data_relationships_subscription_model.go index 40477363..62e33869 100644 --- a/api/model_market_data_relationships_subscription_model.go +++ b/api/model_market_data_relationships_subscription_model.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_market_data_relationships_subscription_model_data.go b/api/model_market_data_relationships_subscription_model_data.go index 5af73cc1..cb7f22aa 100644 --- a/api/model_market_data_relationships_subscription_model_data.go +++ b/api/model_market_data_relationships_subscription_model_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_market_data_relationships_tax_calculator.go b/api/model_market_data_relationships_tax_calculator.go index 80afb4c7..b31e9a85 100644 --- a/api/model_market_data_relationships_tax_calculator.go +++ b/api/model_market_data_relationships_tax_calculator.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_market_data_relationships_tax_calculator_data.go b/api/model_market_data_relationships_tax_calculator_data.go index d96d9dd8..603724a8 100644 --- a/api/model_market_data_relationships_tax_calculator_data.go +++ b/api/model_market_data_relationships_tax_calculator_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_market_update.go b/api/model_market_update.go index bb093e6e..c2d8f16d 100644 --- a/api/model_market_update.go +++ b/api/model_market_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_market_update_data.go b/api/model_market_update_data.go index e6f0e0b4..e0d58401 100644 --- a/api/model_market_update_data.go +++ b/api/model_market_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_market_update_data_relationships.go b/api/model_market_update_data_relationships.go index 5a05d50e..7e2f68ba 100644 --- a/api/model_market_update_data_relationships.go +++ b/api/model_market_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,6 +26,7 @@ type MarketUpdateDataRelationships struct { SubscriptionModel *MarketCreateDataRelationshipsSubscriptionModel `json:"subscription_model,omitempty"` TaxCalculator *MarketCreateDataRelationshipsTaxCalculator `json:"tax_calculator,omitempty"` CustomerGroup *CustomerCreateDataRelationshipsCustomerGroup `json:"customer_group,omitempty"` + Geocoder *AddressCreateDataRelationshipsGeocoder `json:"geocoder,omitempty"` } // NewMarketUpdateDataRelationships instantiates a new MarketUpdateDataRelationships object @@ -237,6 +238,38 @@ func (o *MarketUpdateDataRelationships) SetCustomerGroup(v CustomerCreateDataRel o.CustomerGroup = &v } +// GetGeocoder returns the Geocoder field value if set, zero value otherwise. +func (o *MarketUpdateDataRelationships) GetGeocoder() AddressCreateDataRelationshipsGeocoder { + if o == nil || IsNil(o.Geocoder) { + var ret AddressCreateDataRelationshipsGeocoder + return ret + } + return *o.Geocoder +} + +// GetGeocoderOk returns a tuple with the Geocoder field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MarketUpdateDataRelationships) GetGeocoderOk() (*AddressCreateDataRelationshipsGeocoder, bool) { + if o == nil || IsNil(o.Geocoder) { + return nil, false + } + return o.Geocoder, true +} + +// HasGeocoder returns a boolean if a field has been set. +func (o *MarketUpdateDataRelationships) HasGeocoder() bool { + if o != nil && !IsNil(o.Geocoder) { + return true + } + + return false +} + +// SetGeocoder gets a reference to the given AddressCreateDataRelationshipsGeocoder and assigns it to the Geocoder field. +func (o *MarketUpdateDataRelationships) SetGeocoder(v AddressCreateDataRelationshipsGeocoder) { + o.Geocoder = &v +} + func (o MarketUpdateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -265,6 +298,9 @@ func (o MarketUpdateDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomerGroup) { toSerialize["customer_group"] = o.CustomerGroup } + if !IsNil(o.Geocoder) { + toSerialize["geocoder"] = o.Geocoder + } return toSerialize, nil } diff --git a/api/model_merchant.go b/api/model_merchant.go index 352a1ca2..f26feb0c 100644 --- a/api/model_merchant.go +++ b/api/model_merchant.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_merchant_create.go b/api/model_merchant_create.go index 623a3c20..038b5465 100644 --- a/api/model_merchant_create.go +++ b/api/model_merchant_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_merchant_create_data.go b/api/model_merchant_create_data.go index 177de737..f880e6b4 100644 --- a/api/model_merchant_create_data.go +++ b/api/model_merchant_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_merchant_create_data_relationships.go b/api/model_merchant_create_data_relationships.go index 76b55eb5..433894c2 100644 --- a/api/model_merchant_create_data_relationships.go +++ b/api/model_merchant_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_merchant_data.go b/api/model_merchant_data.go index e813770e..cdd99d0e 100644 --- a/api/model_merchant_data.go +++ b/api/model_merchant_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_merchant_data_relationships.go b/api/model_merchant_data_relationships.go index 73580106..1aa06d8a 100644 --- a/api/model_merchant_data_relationships.go +++ b/api/model_merchant_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,9 @@ var _ MappedNullable = &MerchantDataRelationships{} // MerchantDataRelationships struct for MerchantDataRelationships type MerchantDataRelationships struct { - Address *BingGeocoderDataRelationshipsAddresses `json:"address,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Address *BingGeocoderDataRelationshipsAddresses `json:"address,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewMerchantDataRelationships instantiates a new MerchantDataRelationships object @@ -74,9 +75,9 @@ func (o *MerchantDataRelationships) SetAddress(v BingGeocoderDataRelationshipsAd } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *MerchantDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *MerchantDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -84,7 +85,7 @@ func (o *MerchantDataRelationships) GetAttachments() AvalaraAccountDataRelations // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *MerchantDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *MerchantDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -100,11 +101,43 @@ func (o *MerchantDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *MerchantDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *MerchantDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *MerchantDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MerchantDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *MerchantDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *MerchantDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o MerchantDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o MerchantDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_merchant_update.go b/api/model_merchant_update.go index 58661279..f4c4bc0a 100644 --- a/api/model_merchant_update.go +++ b/api/model_merchant_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_merchant_update_data.go b/api/model_merchant_update_data.go index 0871b0f6..bd537d16 100644 --- a/api/model_merchant_update_data.go +++ b/api/model_merchant_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_merchant_update_data_relationships.go b/api/model_merchant_update_data_relationships.go index eaec067e..de4a8e33 100644 --- a/api/model_merchant_update_data_relationships.go +++ b/api/model_merchant_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order.go b/api/model_order.go index eed0d18c..163bef51 100644 --- a/api/model_order.go +++ b/api/model_order.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_amount_promotion_rule.go b/api/model_order_amount_promotion_rule.go index c516f491..e370d9dc 100644 --- a/api/model_order_amount_promotion_rule.go +++ b/api/model_order_amount_promotion_rule.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_amount_promotion_rule_create.go b/api/model_order_amount_promotion_rule_create.go index 082d5598..9a1fda0f 100644 --- a/api/model_order_amount_promotion_rule_create.go +++ b/api/model_order_amount_promotion_rule_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_amount_promotion_rule_create_data.go b/api/model_order_amount_promotion_rule_create_data.go index b3dec140..e1b039ac 100644 --- a/api/model_order_amount_promotion_rule_create_data.go +++ b/api/model_order_amount_promotion_rule_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type OrderAmountPromotionRuleCreateData struct { // The resource's type Type interface{} `json:"type"` Attributes POSTOrderAmountPromotionRules201ResponseDataAttributes `json:"attributes"` - Relationships *OrderAmountPromotionRuleCreateDataRelationships `json:"relationships,omitempty"` + Relationships *CustomPromotionRuleCreateDataRelationships `json:"relationships,omitempty"` } // NewOrderAmountPromotionRuleCreateData instantiates a new OrderAmountPromotionRuleCreateData object @@ -96,9 +96,9 @@ func (o *OrderAmountPromotionRuleCreateData) SetAttributes(v POSTOrderAmountProm } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *OrderAmountPromotionRuleCreateData) GetRelationships() OrderAmountPromotionRuleCreateDataRelationships { +func (o *OrderAmountPromotionRuleCreateData) GetRelationships() CustomPromotionRuleCreateDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret OrderAmountPromotionRuleCreateDataRelationships + var ret CustomPromotionRuleCreateDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *OrderAmountPromotionRuleCreateData) GetRelationships() OrderAmountPromo // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *OrderAmountPromotionRuleCreateData) GetRelationshipsOk() (*OrderAmountPromotionRuleCreateDataRelationships, bool) { +func (o *OrderAmountPromotionRuleCreateData) GetRelationshipsOk() (*CustomPromotionRuleCreateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *OrderAmountPromotionRuleCreateData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given OrderAmountPromotionRuleCreateDataRelationships and assigns it to the Relationships field. -func (o *OrderAmountPromotionRuleCreateData) SetRelationships(v OrderAmountPromotionRuleCreateDataRelationships) { +// SetRelationships gets a reference to the given CustomPromotionRuleCreateDataRelationships and assigns it to the Relationships field. +func (o *OrderAmountPromotionRuleCreateData) SetRelationships(v CustomPromotionRuleCreateDataRelationships) { o.Relationships = &v } diff --git a/api/model_order_amount_promotion_rule_create_data_relationships.go b/api/model_order_amount_promotion_rule_create_data_relationships.go deleted file mode 100644 index 8f2a309f..00000000 --- a/api/model_order_amount_promotion_rule_create_data_relationships.go +++ /dev/null @@ -1,116 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the OrderAmountPromotionRuleCreateDataRelationships type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &OrderAmountPromotionRuleCreateDataRelationships{} - -// OrderAmountPromotionRuleCreateDataRelationships struct for OrderAmountPromotionRuleCreateDataRelationships -type OrderAmountPromotionRuleCreateDataRelationships struct { - Promotion CouponCodesPromotionRuleCreateDataRelationshipsPromotion `json:"promotion"` -} - -// NewOrderAmountPromotionRuleCreateDataRelationships instantiates a new OrderAmountPromotionRuleCreateDataRelationships object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewOrderAmountPromotionRuleCreateDataRelationships(promotion CouponCodesPromotionRuleCreateDataRelationshipsPromotion) *OrderAmountPromotionRuleCreateDataRelationships { - this := OrderAmountPromotionRuleCreateDataRelationships{} - this.Promotion = promotion - return &this -} - -// NewOrderAmountPromotionRuleCreateDataRelationshipsWithDefaults instantiates a new OrderAmountPromotionRuleCreateDataRelationships object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewOrderAmountPromotionRuleCreateDataRelationshipsWithDefaults() *OrderAmountPromotionRuleCreateDataRelationships { - this := OrderAmountPromotionRuleCreateDataRelationships{} - return &this -} - -// GetPromotion returns the Promotion field value -func (o *OrderAmountPromotionRuleCreateDataRelationships) GetPromotion() CouponCodesPromotionRuleCreateDataRelationshipsPromotion { - if o == nil { - var ret CouponCodesPromotionRuleCreateDataRelationshipsPromotion - return ret - } - - return o.Promotion -} - -// GetPromotionOk returns a tuple with the Promotion field value -// and a boolean to check if the value has been set. -func (o *OrderAmountPromotionRuleCreateDataRelationships) GetPromotionOk() (*CouponCodesPromotionRuleCreateDataRelationshipsPromotion, bool) { - if o == nil { - return nil, false - } - return &o.Promotion, true -} - -// SetPromotion sets field value -func (o *OrderAmountPromotionRuleCreateDataRelationships) SetPromotion(v CouponCodesPromotionRuleCreateDataRelationshipsPromotion) { - o.Promotion = v -} - -func (o OrderAmountPromotionRuleCreateDataRelationships) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o OrderAmountPromotionRuleCreateDataRelationships) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["promotion"] = o.Promotion - return toSerialize, nil -} - -type NullableOrderAmountPromotionRuleCreateDataRelationships struct { - value *OrderAmountPromotionRuleCreateDataRelationships - isSet bool -} - -func (v NullableOrderAmountPromotionRuleCreateDataRelationships) Get() *OrderAmountPromotionRuleCreateDataRelationships { - return v.value -} - -func (v *NullableOrderAmountPromotionRuleCreateDataRelationships) Set(val *OrderAmountPromotionRuleCreateDataRelationships) { - v.value = val - v.isSet = true -} - -func (v NullableOrderAmountPromotionRuleCreateDataRelationships) IsSet() bool { - return v.isSet -} - -func (v *NullableOrderAmountPromotionRuleCreateDataRelationships) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrderAmountPromotionRuleCreateDataRelationships(val *OrderAmountPromotionRuleCreateDataRelationships) *NullableOrderAmountPromotionRuleCreateDataRelationships { - return &NullableOrderAmountPromotionRuleCreateDataRelationships{value: val, isSet: true} -} - -func (v NullableOrderAmountPromotionRuleCreateDataRelationships) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOrderAmountPromotionRuleCreateDataRelationships) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_order_amount_promotion_rule_data.go b/api/model_order_amount_promotion_rule_data.go index 7a239594..5c8ad805 100644 --- a/api/model_order_amount_promotion_rule_data.go +++ b/api/model_order_amount_promotion_rule_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type OrderAmountPromotionRuleData struct { // The resource's type Type interface{} `json:"type"` Attributes GETOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes `json:"attributes"` - Relationships *OrderAmountPromotionRuleDataRelationships `json:"relationships,omitempty"` + Relationships *CustomPromotionRuleDataRelationships `json:"relationships,omitempty"` } // NewOrderAmountPromotionRuleData instantiates a new OrderAmountPromotionRuleData object @@ -96,9 +96,9 @@ func (o *OrderAmountPromotionRuleData) SetAttributes(v GETOrderAmountPromotionRu } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *OrderAmountPromotionRuleData) GetRelationships() OrderAmountPromotionRuleDataRelationships { +func (o *OrderAmountPromotionRuleData) GetRelationships() CustomPromotionRuleDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret OrderAmountPromotionRuleDataRelationships + var ret CustomPromotionRuleDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *OrderAmountPromotionRuleData) GetRelationships() OrderAmountPromotionRu // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *OrderAmountPromotionRuleData) GetRelationshipsOk() (*OrderAmountPromotionRuleDataRelationships, bool) { +func (o *OrderAmountPromotionRuleData) GetRelationshipsOk() (*CustomPromotionRuleDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *OrderAmountPromotionRuleData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given OrderAmountPromotionRuleDataRelationships and assigns it to the Relationships field. -func (o *OrderAmountPromotionRuleData) SetRelationships(v OrderAmountPromotionRuleDataRelationships) { +// SetRelationships gets a reference to the given CustomPromotionRuleDataRelationships and assigns it to the Relationships field. +func (o *OrderAmountPromotionRuleData) SetRelationships(v CustomPromotionRuleDataRelationships) { o.Relationships = &v } diff --git a/api/model_order_amount_promotion_rule_data_relationships.go b/api/model_order_amount_promotion_rule_data_relationships.go deleted file mode 100644 index 8a9852e8..00000000 --- a/api/model_order_amount_promotion_rule_data_relationships.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the OrderAmountPromotionRuleDataRelationships type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &OrderAmountPromotionRuleDataRelationships{} - -// OrderAmountPromotionRuleDataRelationships struct for OrderAmountPromotionRuleDataRelationships -type OrderAmountPromotionRuleDataRelationships struct { - Promotion *CouponCodesPromotionRuleDataRelationshipsPromotion `json:"promotion,omitempty"` -} - -// NewOrderAmountPromotionRuleDataRelationships instantiates a new OrderAmountPromotionRuleDataRelationships object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewOrderAmountPromotionRuleDataRelationships() *OrderAmountPromotionRuleDataRelationships { - this := OrderAmountPromotionRuleDataRelationships{} - return &this -} - -// NewOrderAmountPromotionRuleDataRelationshipsWithDefaults instantiates a new OrderAmountPromotionRuleDataRelationships object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewOrderAmountPromotionRuleDataRelationshipsWithDefaults() *OrderAmountPromotionRuleDataRelationships { - this := OrderAmountPromotionRuleDataRelationships{} - return &this -} - -// GetPromotion returns the Promotion field value if set, zero value otherwise. -func (o *OrderAmountPromotionRuleDataRelationships) GetPromotion() CouponCodesPromotionRuleDataRelationshipsPromotion { - if o == nil || IsNil(o.Promotion) { - var ret CouponCodesPromotionRuleDataRelationshipsPromotion - return ret - } - return *o.Promotion -} - -// GetPromotionOk returns a tuple with the Promotion field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderAmountPromotionRuleDataRelationships) GetPromotionOk() (*CouponCodesPromotionRuleDataRelationshipsPromotion, bool) { - if o == nil || IsNil(o.Promotion) { - return nil, false - } - return o.Promotion, true -} - -// HasPromotion returns a boolean if a field has been set. -func (o *OrderAmountPromotionRuleDataRelationships) HasPromotion() bool { - if o != nil && !IsNil(o.Promotion) { - return true - } - - return false -} - -// SetPromotion gets a reference to the given CouponCodesPromotionRuleDataRelationshipsPromotion and assigns it to the Promotion field. -func (o *OrderAmountPromotionRuleDataRelationships) SetPromotion(v CouponCodesPromotionRuleDataRelationshipsPromotion) { - o.Promotion = &v -} - -func (o OrderAmountPromotionRuleDataRelationships) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o OrderAmountPromotionRuleDataRelationships) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Promotion) { - toSerialize["promotion"] = o.Promotion - } - return toSerialize, nil -} - -type NullableOrderAmountPromotionRuleDataRelationships struct { - value *OrderAmountPromotionRuleDataRelationships - isSet bool -} - -func (v NullableOrderAmountPromotionRuleDataRelationships) Get() *OrderAmountPromotionRuleDataRelationships { - return v.value -} - -func (v *NullableOrderAmountPromotionRuleDataRelationships) Set(val *OrderAmountPromotionRuleDataRelationships) { - v.value = val - v.isSet = true -} - -func (v NullableOrderAmountPromotionRuleDataRelationships) IsSet() bool { - return v.isSet -} - -func (v *NullableOrderAmountPromotionRuleDataRelationships) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrderAmountPromotionRuleDataRelationships(val *OrderAmountPromotionRuleDataRelationships) *NullableOrderAmountPromotionRuleDataRelationships { - return &NullableOrderAmountPromotionRuleDataRelationships{value: val, isSet: true} -} - -func (v NullableOrderAmountPromotionRuleDataRelationships) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOrderAmountPromotionRuleDataRelationships) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_order_amount_promotion_rule_update.go b/api/model_order_amount_promotion_rule_update.go index 164c1c56..dc8434a4 100644 --- a/api/model_order_amount_promotion_rule_update.go +++ b/api/model_order_amount_promotion_rule_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_amount_promotion_rule_update_data.go b/api/model_order_amount_promotion_rule_update_data.go index a447bdcc..fcee934e 100644 --- a/api/model_order_amount_promotion_rule_update_data.go +++ b/api/model_order_amount_promotion_rule_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -25,7 +25,7 @@ type OrderAmountPromotionRuleUpdateData struct { // The resource's id Id interface{} `json:"id"` Attributes PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes `json:"attributes"` - Relationships *OrderAmountPromotionRuleUpdateDataRelationships `json:"relationships,omitempty"` + Relationships *CustomPromotionRuleUpdateDataRelationships `json:"relationships,omitempty"` } // NewOrderAmountPromotionRuleUpdateData instantiates a new OrderAmountPromotionRuleUpdateData object @@ -125,9 +125,9 @@ func (o *OrderAmountPromotionRuleUpdateData) SetAttributes(v PATCHOrderAmountPro } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *OrderAmountPromotionRuleUpdateData) GetRelationships() OrderAmountPromotionRuleUpdateDataRelationships { +func (o *OrderAmountPromotionRuleUpdateData) GetRelationships() CustomPromotionRuleUpdateDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret OrderAmountPromotionRuleUpdateDataRelationships + var ret CustomPromotionRuleUpdateDataRelationships return ret } return *o.Relationships @@ -135,7 +135,7 @@ func (o *OrderAmountPromotionRuleUpdateData) GetRelationships() OrderAmountPromo // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *OrderAmountPromotionRuleUpdateData) GetRelationshipsOk() (*OrderAmountPromotionRuleUpdateDataRelationships, bool) { +func (o *OrderAmountPromotionRuleUpdateData) GetRelationshipsOk() (*CustomPromotionRuleUpdateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -151,8 +151,8 @@ func (o *OrderAmountPromotionRuleUpdateData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given OrderAmountPromotionRuleUpdateDataRelationships and assigns it to the Relationships field. -func (o *OrderAmountPromotionRuleUpdateData) SetRelationships(v OrderAmountPromotionRuleUpdateDataRelationships) { +// SetRelationships gets a reference to the given CustomPromotionRuleUpdateDataRelationships and assigns it to the Relationships field. +func (o *OrderAmountPromotionRuleUpdateData) SetRelationships(v CustomPromotionRuleUpdateDataRelationships) { o.Relationships = &v } diff --git a/api/model_order_amount_promotion_rule_update_data_relationships.go b/api/model_order_amount_promotion_rule_update_data_relationships.go deleted file mode 100644 index c4ab7e3d..00000000 --- a/api/model_order_amount_promotion_rule_update_data_relationships.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the OrderAmountPromotionRuleUpdateDataRelationships type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &OrderAmountPromotionRuleUpdateDataRelationships{} - -// OrderAmountPromotionRuleUpdateDataRelationships struct for OrderAmountPromotionRuleUpdateDataRelationships -type OrderAmountPromotionRuleUpdateDataRelationships struct { - Promotion *CouponCodesPromotionRuleCreateDataRelationshipsPromotion `json:"promotion,omitempty"` -} - -// NewOrderAmountPromotionRuleUpdateDataRelationships instantiates a new OrderAmountPromotionRuleUpdateDataRelationships object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewOrderAmountPromotionRuleUpdateDataRelationships() *OrderAmountPromotionRuleUpdateDataRelationships { - this := OrderAmountPromotionRuleUpdateDataRelationships{} - return &this -} - -// NewOrderAmountPromotionRuleUpdateDataRelationshipsWithDefaults instantiates a new OrderAmountPromotionRuleUpdateDataRelationships object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewOrderAmountPromotionRuleUpdateDataRelationshipsWithDefaults() *OrderAmountPromotionRuleUpdateDataRelationships { - this := OrderAmountPromotionRuleUpdateDataRelationships{} - return &this -} - -// GetPromotion returns the Promotion field value if set, zero value otherwise. -func (o *OrderAmountPromotionRuleUpdateDataRelationships) GetPromotion() CouponCodesPromotionRuleCreateDataRelationshipsPromotion { - if o == nil || IsNil(o.Promotion) { - var ret CouponCodesPromotionRuleCreateDataRelationshipsPromotion - return ret - } - return *o.Promotion -} - -// GetPromotionOk returns a tuple with the Promotion field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderAmountPromotionRuleUpdateDataRelationships) GetPromotionOk() (*CouponCodesPromotionRuleCreateDataRelationshipsPromotion, bool) { - if o == nil || IsNil(o.Promotion) { - return nil, false - } - return o.Promotion, true -} - -// HasPromotion returns a boolean if a field has been set. -func (o *OrderAmountPromotionRuleUpdateDataRelationships) HasPromotion() bool { - if o != nil && !IsNil(o.Promotion) { - return true - } - - return false -} - -// SetPromotion gets a reference to the given CouponCodesPromotionRuleCreateDataRelationshipsPromotion and assigns it to the Promotion field. -func (o *OrderAmountPromotionRuleUpdateDataRelationships) SetPromotion(v CouponCodesPromotionRuleCreateDataRelationshipsPromotion) { - o.Promotion = &v -} - -func (o OrderAmountPromotionRuleUpdateDataRelationships) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o OrderAmountPromotionRuleUpdateDataRelationships) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Promotion) { - toSerialize["promotion"] = o.Promotion - } - return toSerialize, nil -} - -type NullableOrderAmountPromotionRuleUpdateDataRelationships struct { - value *OrderAmountPromotionRuleUpdateDataRelationships - isSet bool -} - -func (v NullableOrderAmountPromotionRuleUpdateDataRelationships) Get() *OrderAmountPromotionRuleUpdateDataRelationships { - return v.value -} - -func (v *NullableOrderAmountPromotionRuleUpdateDataRelationships) Set(val *OrderAmountPromotionRuleUpdateDataRelationships) { - v.value = val - v.isSet = true -} - -func (v NullableOrderAmountPromotionRuleUpdateDataRelationships) IsSet() bool { - return v.isSet -} - -func (v *NullableOrderAmountPromotionRuleUpdateDataRelationships) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrderAmountPromotionRuleUpdateDataRelationships(val *OrderAmountPromotionRuleUpdateDataRelationships) *NullableOrderAmountPromotionRuleUpdateDataRelationships { - return &NullableOrderAmountPromotionRuleUpdateDataRelationships{value: val, isSet: true} -} - -func (v NullableOrderAmountPromotionRuleUpdateDataRelationships) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOrderAmountPromotionRuleUpdateDataRelationships) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_order_copy.go b/api/model_order_copy.go index 004784b4..26b23cf7 100644 --- a/api/model_order_copy.go +++ b/api/model_order_copy.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_copy_create.go b/api/model_order_copy_create.go index 1874c733..7a1c650a 100644 --- a/api/model_order_copy_create.go +++ b/api/model_order_copy_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_copy_create_data.go b/api/model_order_copy_create_data.go index 1d4407d1..faa6bc9a 100644 --- a/api/model_order_copy_create_data.go +++ b/api/model_order_copy_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_copy_create_data_relationships.go b/api/model_order_copy_create_data_relationships.go index 0f16227f..b74240d4 100644 --- a/api/model_order_copy_create_data_relationships.go +++ b/api/model_order_copy_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_copy_data.go b/api/model_order_copy_data.go index d0f2886c..98f6e7d4 100644 --- a/api/model_order_copy_data.go +++ b/api/model_order_copy_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_copy_data_relationships.go b/api/model_order_copy_data_relationships.go index 82823b29..35c385bd 100644 --- a/api/model_order_copy_data_relationships.go +++ b/api/model_order_copy_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,7 +22,7 @@ var _ MappedNullable = &OrderCopyDataRelationships{} type OrderCopyDataRelationships struct { SourceOrder *AdyenPaymentDataRelationshipsOrder `json:"source_order,omitempty"` TargetOrder *AdyenPaymentDataRelationshipsOrder `json:"target_order,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` OrderSubscription *CustomerDataRelationshipsOrderSubscriptions `json:"order_subscription,omitempty"` } @@ -108,9 +108,9 @@ func (o *OrderCopyDataRelationships) SetTargetOrder(v AdyenPaymentDataRelationsh } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *OrderCopyDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { +func (o *OrderCopyDataRelationships) GetEvents() AddressDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents + var ret AddressDataRelationshipsEvents return ret } return *o.Events @@ -118,7 +118,7 @@ func (o *OrderCopyDataRelationships) GetEvents() AuthorizationDataRelationshipsE // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *OrderCopyDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { +func (o *OrderCopyDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -134,8 +134,8 @@ func (o *OrderCopyDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *OrderCopyDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *OrderCopyDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { o.Events = &v } diff --git a/api/model_order_copy_update.go b/api/model_order_copy_update.go index 1618fdcc..352bb3de 100644 --- a/api/model_order_copy_update.go +++ b/api/model_order_copy_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_copy_update_data.go b/api/model_order_copy_update_data.go index 6a2149d9..4a541fcd 100644 --- a/api/model_order_copy_update_data.go +++ b/api/model_order_copy_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_create.go b/api/model_order_create.go index 0997a24d..b0e2d59d 100644 --- a/api/model_order_create.go +++ b/api/model_order_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_create_data.go b/api/model_order_create_data.go index c22b9399..4668f1d1 100644 --- a/api/model_order_create_data.go +++ b/api/model_order_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_create_data_relationships.go b/api/model_order_create_data_relationships.go index 9ba626b9..b8744ad0 100644 --- a/api/model_order_create_data_relationships.go +++ b/api/model_order_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,8 +24,9 @@ type OrderCreateDataRelationships struct { Customer *CouponRecipientCreateDataRelationshipsCustomer `json:"customer,omitempty"` ShippingAddress *CustomerAddressCreateDataRelationshipsAddress `json:"shipping_address,omitempty"` BillingAddress *CustomerAddressCreateDataRelationshipsAddress `json:"billing_address,omitempty"` - PaymentMethod *OrderCreateDataRelationshipsPaymentMethod `json:"payment_method,omitempty"` + PaymentMethod *CustomerPaymentSourceCreateDataRelationshipsPaymentMethod `json:"payment_method,omitempty"` PaymentSource *CustomerPaymentSourceCreateDataRelationshipsPaymentSource `json:"payment_source,omitempty"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` } // NewOrderCreateDataRelationships instantiates a new OrderCreateDataRelationships object @@ -174,9 +175,9 @@ func (o *OrderCreateDataRelationships) SetBillingAddress(v CustomerAddressCreate } // GetPaymentMethod returns the PaymentMethod field value if set, zero value otherwise. -func (o *OrderCreateDataRelationships) GetPaymentMethod() OrderCreateDataRelationshipsPaymentMethod { +func (o *OrderCreateDataRelationships) GetPaymentMethod() CustomerPaymentSourceCreateDataRelationshipsPaymentMethod { if o == nil || IsNil(o.PaymentMethod) { - var ret OrderCreateDataRelationshipsPaymentMethod + var ret CustomerPaymentSourceCreateDataRelationshipsPaymentMethod return ret } return *o.PaymentMethod @@ -184,7 +185,7 @@ func (o *OrderCreateDataRelationships) GetPaymentMethod() OrderCreateDataRelatio // GetPaymentMethodOk returns a tuple with the PaymentMethod field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *OrderCreateDataRelationships) GetPaymentMethodOk() (*OrderCreateDataRelationshipsPaymentMethod, bool) { +func (o *OrderCreateDataRelationships) GetPaymentMethodOk() (*CustomerPaymentSourceCreateDataRelationshipsPaymentMethod, bool) { if o == nil || IsNil(o.PaymentMethod) { return nil, false } @@ -200,8 +201,8 @@ func (o *OrderCreateDataRelationships) HasPaymentMethod() bool { return false } -// SetPaymentMethod gets a reference to the given OrderCreateDataRelationshipsPaymentMethod and assigns it to the PaymentMethod field. -func (o *OrderCreateDataRelationships) SetPaymentMethod(v OrderCreateDataRelationshipsPaymentMethod) { +// SetPaymentMethod gets a reference to the given CustomerPaymentSourceCreateDataRelationshipsPaymentMethod and assigns it to the PaymentMethod field. +func (o *OrderCreateDataRelationships) SetPaymentMethod(v CustomerPaymentSourceCreateDataRelationshipsPaymentMethod) { o.PaymentMethod = &v } @@ -237,6 +238,38 @@ func (o *OrderCreateDataRelationships) SetPaymentSource(v CustomerPaymentSourceC o.PaymentSource = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *OrderCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *OrderCreateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *OrderCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + func (o OrderCreateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -265,6 +298,9 @@ func (o OrderCreateDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.PaymentSource) { toSerialize["payment_source"] = o.PaymentSource } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_order_create_data_relationships_payment_method.go b/api/model_order_create_data_relationships_payment_method.go deleted file mode 100644 index e365a56b..00000000 --- a/api/model_order_create_data_relationships_payment_method.go +++ /dev/null @@ -1,116 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the OrderCreateDataRelationshipsPaymentMethod type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &OrderCreateDataRelationshipsPaymentMethod{} - -// OrderCreateDataRelationshipsPaymentMethod struct for OrderCreateDataRelationshipsPaymentMethod -type OrderCreateDataRelationshipsPaymentMethod struct { - Data AdyenGatewayDataRelationshipsPaymentMethodsData `json:"data"` -} - -// NewOrderCreateDataRelationshipsPaymentMethod instantiates a new OrderCreateDataRelationshipsPaymentMethod object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewOrderCreateDataRelationshipsPaymentMethod(data AdyenGatewayDataRelationshipsPaymentMethodsData) *OrderCreateDataRelationshipsPaymentMethod { - this := OrderCreateDataRelationshipsPaymentMethod{} - this.Data = data - return &this -} - -// NewOrderCreateDataRelationshipsPaymentMethodWithDefaults instantiates a new OrderCreateDataRelationshipsPaymentMethod object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewOrderCreateDataRelationshipsPaymentMethodWithDefaults() *OrderCreateDataRelationshipsPaymentMethod { - this := OrderCreateDataRelationshipsPaymentMethod{} - return &this -} - -// GetData returns the Data field value -func (o *OrderCreateDataRelationshipsPaymentMethod) GetData() AdyenGatewayDataRelationshipsPaymentMethodsData { - if o == nil { - var ret AdyenGatewayDataRelationshipsPaymentMethodsData - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *OrderCreateDataRelationshipsPaymentMethod) GetDataOk() (*AdyenGatewayDataRelationshipsPaymentMethodsData, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *OrderCreateDataRelationshipsPaymentMethod) SetData(v AdyenGatewayDataRelationshipsPaymentMethodsData) { - o.Data = v -} - -func (o OrderCreateDataRelationshipsPaymentMethod) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o OrderCreateDataRelationshipsPaymentMethod) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - return toSerialize, nil -} - -type NullableOrderCreateDataRelationshipsPaymentMethod struct { - value *OrderCreateDataRelationshipsPaymentMethod - isSet bool -} - -func (v NullableOrderCreateDataRelationshipsPaymentMethod) Get() *OrderCreateDataRelationshipsPaymentMethod { - return v.value -} - -func (v *NullableOrderCreateDataRelationshipsPaymentMethod) Set(val *OrderCreateDataRelationshipsPaymentMethod) { - v.value = val - v.isSet = true -} - -func (v NullableOrderCreateDataRelationshipsPaymentMethod) IsSet() bool { - return v.isSet -} - -func (v *NullableOrderCreateDataRelationshipsPaymentMethod) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrderCreateDataRelationshipsPaymentMethod(val *OrderCreateDataRelationshipsPaymentMethod) *NullableOrderCreateDataRelationshipsPaymentMethod { - return &NullableOrderCreateDataRelationshipsPaymentMethod{value: val, isSet: true} -} - -func (v NullableOrderCreateDataRelationshipsPaymentMethod) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOrderCreateDataRelationshipsPaymentMethod) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_order_data.go b/api/model_order_data.go index e0795d60..e689047f 100644 --- a/api/model_order_data.go +++ b/api/model_order_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_data_relationships.go b/api/model_order_data_relationships.go index f6b29906..28215a12 100644 --- a/api/model_order_data_relationships.go +++ b/api/model_order_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -27,23 +27,33 @@ type OrderDataRelationships struct { AvailablePaymentMethods *AdyenGatewayDataRelationshipsPaymentMethods `json:"available_payment_methods,omitempty"` AvailableCustomerPaymentSources *CustomerDataRelationshipsCustomerPaymentSources `json:"available_customer_payment_sources,omitempty"` AvailableFreeSkus *BundleDataRelationshipsSkus `json:"available_free_skus,omitempty"` - AvailableFreeBundles *OrderDataRelationshipsAvailableFreeBundles `json:"available_free_bundles,omitempty"` + AvailableFreeBundles *LineItemDataRelationshipsBundle `json:"available_free_bundles,omitempty"` PaymentMethod *AdyenGatewayDataRelationshipsPaymentMethods `json:"payment_method,omitempty"` PaymentSource *CustomerPaymentSourceDataRelationshipsPaymentSource `json:"payment_source,omitempty"` LineItems *LineItemOptionDataRelationshipsLineItem `json:"line_items,omitempty"` - Shipments *OrderDataRelationshipsShipments `json:"shipments,omitempty"` + LineItemOptions *LineItemDataRelationshipsLineItemOptions `json:"line_item_options,omitempty"` + StockReservations *LineItemDataRelationshipsStockReservations `json:"stock_reservations,omitempty"` + StockLineItems *LineItemDataRelationshipsStockLineItems `json:"stock_line_items,omitempty"` + StockTransfers *LineItemDataRelationshipsStockTransfers `json:"stock_transfers,omitempty"` + Shipments *LineItemDataRelationshipsShipment `json:"shipments,omitempty"` + PaymentOptions *OrderDataRelationshipsPaymentOptions `json:"payment_options,omitempty"` Transactions *OrderDataRelationshipsTransactions `json:"transactions,omitempty"` Authorizations *CaptureDataRelationshipsReferenceAuthorization `json:"authorizations,omitempty"` Captures *AuthorizationDataRelationshipsCaptures `json:"captures,omitempty"` Voids *AuthorizationDataRelationshipsVoids `json:"voids,omitempty"` Refunds *CaptureDataRelationshipsRefunds `json:"refunds,omitempty"` - Returns *CustomerDataRelationshipsReturns `json:"returns,omitempty"` + Returns *CaptureDataRelationshipsReturn `json:"returns,omitempty"` + OrderSubscription *CustomerDataRelationshipsOrderSubscriptions `json:"order_subscription,omitempty"` OrderSubscriptions *CustomerDataRelationshipsOrderSubscriptions `json:"order_subscriptions,omitempty"` OrderFactories *OrderSubscriptionDataRelationshipsOrderFactories `json:"order_factories,omitempty"` OrderCopies *OrderDataRelationshipsOrderCopies `json:"order_copies,omitempty"` RecurringOrderCopies *OrderSubscriptionDataRelationshipsRecurringOrderCopies `json:"recurring_order_copies,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Links *OrderDataRelationshipsLinks `json:"links,omitempty"` + ResourceErrors *OrderDataRelationshipsResourceErrors `json:"resource_errors,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Tags *AddressDataRelationshipsTags `json:"tags,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewOrderDataRelationships instantiates a new OrderDataRelationships object @@ -288,9 +298,9 @@ func (o *OrderDataRelationships) SetAvailableFreeSkus(v BundleDataRelationshipsS } // GetAvailableFreeBundles returns the AvailableFreeBundles field value if set, zero value otherwise. -func (o *OrderDataRelationships) GetAvailableFreeBundles() OrderDataRelationshipsAvailableFreeBundles { +func (o *OrderDataRelationships) GetAvailableFreeBundles() LineItemDataRelationshipsBundle { if o == nil || IsNil(o.AvailableFreeBundles) { - var ret OrderDataRelationshipsAvailableFreeBundles + var ret LineItemDataRelationshipsBundle return ret } return *o.AvailableFreeBundles @@ -298,7 +308,7 @@ func (o *OrderDataRelationships) GetAvailableFreeBundles() OrderDataRelationship // GetAvailableFreeBundlesOk returns a tuple with the AvailableFreeBundles field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *OrderDataRelationships) GetAvailableFreeBundlesOk() (*OrderDataRelationshipsAvailableFreeBundles, bool) { +func (o *OrderDataRelationships) GetAvailableFreeBundlesOk() (*LineItemDataRelationshipsBundle, bool) { if o == nil || IsNil(o.AvailableFreeBundles) { return nil, false } @@ -314,8 +324,8 @@ func (o *OrderDataRelationships) HasAvailableFreeBundles() bool { return false } -// SetAvailableFreeBundles gets a reference to the given OrderDataRelationshipsAvailableFreeBundles and assigns it to the AvailableFreeBundles field. -func (o *OrderDataRelationships) SetAvailableFreeBundles(v OrderDataRelationshipsAvailableFreeBundles) { +// SetAvailableFreeBundles gets a reference to the given LineItemDataRelationshipsBundle and assigns it to the AvailableFreeBundles field. +func (o *OrderDataRelationships) SetAvailableFreeBundles(v LineItemDataRelationshipsBundle) { o.AvailableFreeBundles = &v } @@ -415,10 +425,138 @@ func (o *OrderDataRelationships) SetLineItems(v LineItemOptionDataRelationshipsL o.LineItems = &v } +// GetLineItemOptions returns the LineItemOptions field value if set, zero value otherwise. +func (o *OrderDataRelationships) GetLineItemOptions() LineItemDataRelationshipsLineItemOptions { + if o == nil || IsNil(o.LineItemOptions) { + var ret LineItemDataRelationshipsLineItemOptions + return ret + } + return *o.LineItemOptions +} + +// GetLineItemOptionsOk returns a tuple with the LineItemOptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderDataRelationships) GetLineItemOptionsOk() (*LineItemDataRelationshipsLineItemOptions, bool) { + if o == nil || IsNil(o.LineItemOptions) { + return nil, false + } + return o.LineItemOptions, true +} + +// HasLineItemOptions returns a boolean if a field has been set. +func (o *OrderDataRelationships) HasLineItemOptions() bool { + if o != nil && !IsNil(o.LineItemOptions) { + return true + } + + return false +} + +// SetLineItemOptions gets a reference to the given LineItemDataRelationshipsLineItemOptions and assigns it to the LineItemOptions field. +func (o *OrderDataRelationships) SetLineItemOptions(v LineItemDataRelationshipsLineItemOptions) { + o.LineItemOptions = &v +} + +// GetStockReservations returns the StockReservations field value if set, zero value otherwise. +func (o *OrderDataRelationships) GetStockReservations() LineItemDataRelationshipsStockReservations { + if o == nil || IsNil(o.StockReservations) { + var ret LineItemDataRelationshipsStockReservations + return ret + } + return *o.StockReservations +} + +// GetStockReservationsOk returns a tuple with the StockReservations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderDataRelationships) GetStockReservationsOk() (*LineItemDataRelationshipsStockReservations, bool) { + if o == nil || IsNil(o.StockReservations) { + return nil, false + } + return o.StockReservations, true +} + +// HasStockReservations returns a boolean if a field has been set. +func (o *OrderDataRelationships) HasStockReservations() bool { + if o != nil && !IsNil(o.StockReservations) { + return true + } + + return false +} + +// SetStockReservations gets a reference to the given LineItemDataRelationshipsStockReservations and assigns it to the StockReservations field. +func (o *OrderDataRelationships) SetStockReservations(v LineItemDataRelationshipsStockReservations) { + o.StockReservations = &v +} + +// GetStockLineItems returns the StockLineItems field value if set, zero value otherwise. +func (o *OrderDataRelationships) GetStockLineItems() LineItemDataRelationshipsStockLineItems { + if o == nil || IsNil(o.StockLineItems) { + var ret LineItemDataRelationshipsStockLineItems + return ret + } + return *o.StockLineItems +} + +// GetStockLineItemsOk returns a tuple with the StockLineItems field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderDataRelationships) GetStockLineItemsOk() (*LineItemDataRelationshipsStockLineItems, bool) { + if o == nil || IsNil(o.StockLineItems) { + return nil, false + } + return o.StockLineItems, true +} + +// HasStockLineItems returns a boolean if a field has been set. +func (o *OrderDataRelationships) HasStockLineItems() bool { + if o != nil && !IsNil(o.StockLineItems) { + return true + } + + return false +} + +// SetStockLineItems gets a reference to the given LineItemDataRelationshipsStockLineItems and assigns it to the StockLineItems field. +func (o *OrderDataRelationships) SetStockLineItems(v LineItemDataRelationshipsStockLineItems) { + o.StockLineItems = &v +} + +// GetStockTransfers returns the StockTransfers field value if set, zero value otherwise. +func (o *OrderDataRelationships) GetStockTransfers() LineItemDataRelationshipsStockTransfers { + if o == nil || IsNil(o.StockTransfers) { + var ret LineItemDataRelationshipsStockTransfers + return ret + } + return *o.StockTransfers +} + +// GetStockTransfersOk returns a tuple with the StockTransfers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderDataRelationships) GetStockTransfersOk() (*LineItemDataRelationshipsStockTransfers, bool) { + if o == nil || IsNil(o.StockTransfers) { + return nil, false + } + return o.StockTransfers, true +} + +// HasStockTransfers returns a boolean if a field has been set. +func (o *OrderDataRelationships) HasStockTransfers() bool { + if o != nil && !IsNil(o.StockTransfers) { + return true + } + + return false +} + +// SetStockTransfers gets a reference to the given LineItemDataRelationshipsStockTransfers and assigns it to the StockTransfers field. +func (o *OrderDataRelationships) SetStockTransfers(v LineItemDataRelationshipsStockTransfers) { + o.StockTransfers = &v +} + // GetShipments returns the Shipments field value if set, zero value otherwise. -func (o *OrderDataRelationships) GetShipments() OrderDataRelationshipsShipments { +func (o *OrderDataRelationships) GetShipments() LineItemDataRelationshipsShipment { if o == nil || IsNil(o.Shipments) { - var ret OrderDataRelationshipsShipments + var ret LineItemDataRelationshipsShipment return ret } return *o.Shipments @@ -426,7 +564,7 @@ func (o *OrderDataRelationships) GetShipments() OrderDataRelationshipsShipments // GetShipmentsOk returns a tuple with the Shipments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *OrderDataRelationships) GetShipmentsOk() (*OrderDataRelationshipsShipments, bool) { +func (o *OrderDataRelationships) GetShipmentsOk() (*LineItemDataRelationshipsShipment, bool) { if o == nil || IsNil(o.Shipments) { return nil, false } @@ -442,11 +580,43 @@ func (o *OrderDataRelationships) HasShipments() bool { return false } -// SetShipments gets a reference to the given OrderDataRelationshipsShipments and assigns it to the Shipments field. -func (o *OrderDataRelationships) SetShipments(v OrderDataRelationshipsShipments) { +// SetShipments gets a reference to the given LineItemDataRelationshipsShipment and assigns it to the Shipments field. +func (o *OrderDataRelationships) SetShipments(v LineItemDataRelationshipsShipment) { o.Shipments = &v } +// GetPaymentOptions returns the PaymentOptions field value if set, zero value otherwise. +func (o *OrderDataRelationships) GetPaymentOptions() OrderDataRelationshipsPaymentOptions { + if o == nil || IsNil(o.PaymentOptions) { + var ret OrderDataRelationshipsPaymentOptions + return ret + } + return *o.PaymentOptions +} + +// GetPaymentOptionsOk returns a tuple with the PaymentOptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderDataRelationships) GetPaymentOptionsOk() (*OrderDataRelationshipsPaymentOptions, bool) { + if o == nil || IsNil(o.PaymentOptions) { + return nil, false + } + return o.PaymentOptions, true +} + +// HasPaymentOptions returns a boolean if a field has been set. +func (o *OrderDataRelationships) HasPaymentOptions() bool { + if o != nil && !IsNil(o.PaymentOptions) { + return true + } + + return false +} + +// SetPaymentOptions gets a reference to the given OrderDataRelationshipsPaymentOptions and assigns it to the PaymentOptions field. +func (o *OrderDataRelationships) SetPaymentOptions(v OrderDataRelationshipsPaymentOptions) { + o.PaymentOptions = &v +} + // GetTransactions returns the Transactions field value if set, zero value otherwise. func (o *OrderDataRelationships) GetTransactions() OrderDataRelationshipsTransactions { if o == nil || IsNil(o.Transactions) { @@ -608,9 +778,9 @@ func (o *OrderDataRelationships) SetRefunds(v CaptureDataRelationshipsRefunds) { } // GetReturns returns the Returns field value if set, zero value otherwise. -func (o *OrderDataRelationships) GetReturns() CustomerDataRelationshipsReturns { +func (o *OrderDataRelationships) GetReturns() CaptureDataRelationshipsReturn { if o == nil || IsNil(o.Returns) { - var ret CustomerDataRelationshipsReturns + var ret CaptureDataRelationshipsReturn return ret } return *o.Returns @@ -618,7 +788,7 @@ func (o *OrderDataRelationships) GetReturns() CustomerDataRelationshipsReturns { // GetReturnsOk returns a tuple with the Returns field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *OrderDataRelationships) GetReturnsOk() (*CustomerDataRelationshipsReturns, bool) { +func (o *OrderDataRelationships) GetReturnsOk() (*CaptureDataRelationshipsReturn, bool) { if o == nil || IsNil(o.Returns) { return nil, false } @@ -634,11 +804,43 @@ func (o *OrderDataRelationships) HasReturns() bool { return false } -// SetReturns gets a reference to the given CustomerDataRelationshipsReturns and assigns it to the Returns field. -func (o *OrderDataRelationships) SetReturns(v CustomerDataRelationshipsReturns) { +// SetReturns gets a reference to the given CaptureDataRelationshipsReturn and assigns it to the Returns field. +func (o *OrderDataRelationships) SetReturns(v CaptureDataRelationshipsReturn) { o.Returns = &v } +// GetOrderSubscription returns the OrderSubscription field value if set, zero value otherwise. +func (o *OrderDataRelationships) GetOrderSubscription() CustomerDataRelationshipsOrderSubscriptions { + if o == nil || IsNil(o.OrderSubscription) { + var ret CustomerDataRelationshipsOrderSubscriptions + return ret + } + return *o.OrderSubscription +} + +// GetOrderSubscriptionOk returns a tuple with the OrderSubscription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderDataRelationships) GetOrderSubscriptionOk() (*CustomerDataRelationshipsOrderSubscriptions, bool) { + if o == nil || IsNil(o.OrderSubscription) { + return nil, false + } + return o.OrderSubscription, true +} + +// HasOrderSubscription returns a boolean if a field has been set. +func (o *OrderDataRelationships) HasOrderSubscription() bool { + if o != nil && !IsNil(o.OrderSubscription) { + return true + } + + return false +} + +// SetOrderSubscription gets a reference to the given CustomerDataRelationshipsOrderSubscriptions and assigns it to the OrderSubscription field. +func (o *OrderDataRelationships) SetOrderSubscription(v CustomerDataRelationshipsOrderSubscriptions) { + o.OrderSubscription = &v +} + // GetOrderSubscriptions returns the OrderSubscriptions field value if set, zero value otherwise. func (o *OrderDataRelationships) GetOrderSubscriptions() CustomerDataRelationshipsOrderSubscriptions { if o == nil || IsNil(o.OrderSubscriptions) { @@ -768,9 +970,9 @@ func (o *OrderDataRelationships) SetRecurringOrderCopies(v OrderSubscriptionData } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *OrderDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *OrderDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -778,7 +980,7 @@ func (o *OrderDataRelationships) GetAttachments() AvalaraAccountDataRelationship // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *OrderDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *OrderDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -794,15 +996,79 @@ func (o *OrderDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *OrderDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *OrderDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *OrderDataRelationships) GetLinks() OrderDataRelationshipsLinks { + if o == nil || IsNil(o.Links) { + var ret OrderDataRelationshipsLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderDataRelationships) GetLinksOk() (*OrderDataRelationshipsLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *OrderDataRelationships) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given OrderDataRelationshipsLinks and assigns it to the Links field. +func (o *OrderDataRelationships) SetLinks(v OrderDataRelationshipsLinks) { + o.Links = &v +} + +// GetResourceErrors returns the ResourceErrors field value if set, zero value otherwise. +func (o *OrderDataRelationships) GetResourceErrors() OrderDataRelationshipsResourceErrors { + if o == nil || IsNil(o.ResourceErrors) { + var ret OrderDataRelationshipsResourceErrors + return ret + } + return *o.ResourceErrors +} + +// GetResourceErrorsOk returns a tuple with the ResourceErrors field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderDataRelationships) GetResourceErrorsOk() (*OrderDataRelationshipsResourceErrors, bool) { + if o == nil || IsNil(o.ResourceErrors) { + return nil, false + } + return o.ResourceErrors, true +} + +// HasResourceErrors returns a boolean if a field has been set. +func (o *OrderDataRelationships) HasResourceErrors() bool { + if o != nil && !IsNil(o.ResourceErrors) { + return true + } + + return false +} + +// SetResourceErrors gets a reference to the given OrderDataRelationshipsResourceErrors and assigns it to the ResourceErrors field. +func (o *OrderDataRelationships) SetResourceErrors(v OrderDataRelationshipsResourceErrors) { + o.ResourceErrors = &v +} + // GetEvents returns the Events field value if set, zero value otherwise. -func (o *OrderDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { +func (o *OrderDataRelationships) GetEvents() AddressDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents + var ret AddressDataRelationshipsEvents return ret } return *o.Events @@ -810,7 +1076,7 @@ func (o *OrderDataRelationships) GetEvents() AuthorizationDataRelationshipsEvent // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *OrderDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { +func (o *OrderDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -826,11 +1092,75 @@ func (o *OrderDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *OrderDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *OrderDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { o.Events = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *OrderDataRelationships) GetTags() AddressDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *OrderDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressDataRelationshipsTags and assigns it to the Tags field. +func (o *OrderDataRelationships) SetTags(v AddressDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *OrderDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *OrderDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *OrderDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o OrderDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -874,9 +1204,24 @@ func (o OrderDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.LineItems) { toSerialize["line_items"] = o.LineItems } + if !IsNil(o.LineItemOptions) { + toSerialize["line_item_options"] = o.LineItemOptions + } + if !IsNil(o.StockReservations) { + toSerialize["stock_reservations"] = o.StockReservations + } + if !IsNil(o.StockLineItems) { + toSerialize["stock_line_items"] = o.StockLineItems + } + if !IsNil(o.StockTransfers) { + toSerialize["stock_transfers"] = o.StockTransfers + } if !IsNil(o.Shipments) { toSerialize["shipments"] = o.Shipments } + if !IsNil(o.PaymentOptions) { + toSerialize["payment_options"] = o.PaymentOptions + } if !IsNil(o.Transactions) { toSerialize["transactions"] = o.Transactions } @@ -895,6 +1240,9 @@ func (o OrderDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Returns) { toSerialize["returns"] = o.Returns } + if !IsNil(o.OrderSubscription) { + toSerialize["order_subscription"] = o.OrderSubscription + } if !IsNil(o.OrderSubscriptions) { toSerialize["order_subscriptions"] = o.OrderSubscriptions } @@ -910,9 +1258,21 @@ func (o OrderDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.ResourceErrors) { + toSerialize["resource_errors"] = o.ResourceErrors + } if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_order_data_relationships_available_free_bundles.go b/api/model_order_data_relationships_available_free_bundles.go deleted file mode 100644 index c72e0a81..00000000 --- a/api/model_order_data_relationships_available_free_bundles.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the OrderDataRelationshipsAvailableFreeBundles type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &OrderDataRelationshipsAvailableFreeBundles{} - -// OrderDataRelationshipsAvailableFreeBundles struct for OrderDataRelationshipsAvailableFreeBundles -type OrderDataRelationshipsAvailableFreeBundles struct { - Data *OrderDataRelationshipsAvailableFreeBundlesData `json:"data,omitempty"` -} - -// NewOrderDataRelationshipsAvailableFreeBundles instantiates a new OrderDataRelationshipsAvailableFreeBundles object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewOrderDataRelationshipsAvailableFreeBundles() *OrderDataRelationshipsAvailableFreeBundles { - this := OrderDataRelationshipsAvailableFreeBundles{} - return &this -} - -// NewOrderDataRelationshipsAvailableFreeBundlesWithDefaults instantiates a new OrderDataRelationshipsAvailableFreeBundles object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewOrderDataRelationshipsAvailableFreeBundlesWithDefaults() *OrderDataRelationshipsAvailableFreeBundles { - this := OrderDataRelationshipsAvailableFreeBundles{} - return &this -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *OrderDataRelationshipsAvailableFreeBundles) GetData() OrderDataRelationshipsAvailableFreeBundlesData { - if o == nil || IsNil(o.Data) { - var ret OrderDataRelationshipsAvailableFreeBundlesData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderDataRelationshipsAvailableFreeBundles) GetDataOk() (*OrderDataRelationshipsAvailableFreeBundlesData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *OrderDataRelationshipsAvailableFreeBundles) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given OrderDataRelationshipsAvailableFreeBundlesData and assigns it to the Data field. -func (o *OrderDataRelationshipsAvailableFreeBundles) SetData(v OrderDataRelationshipsAvailableFreeBundlesData) { - o.Data = &v -} - -func (o OrderDataRelationshipsAvailableFreeBundles) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o OrderDataRelationshipsAvailableFreeBundles) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableOrderDataRelationshipsAvailableFreeBundles struct { - value *OrderDataRelationshipsAvailableFreeBundles - isSet bool -} - -func (v NullableOrderDataRelationshipsAvailableFreeBundles) Get() *OrderDataRelationshipsAvailableFreeBundles { - return v.value -} - -func (v *NullableOrderDataRelationshipsAvailableFreeBundles) Set(val *OrderDataRelationshipsAvailableFreeBundles) { - v.value = val - v.isSet = true -} - -func (v NullableOrderDataRelationshipsAvailableFreeBundles) IsSet() bool { - return v.isSet -} - -func (v *NullableOrderDataRelationshipsAvailableFreeBundles) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrderDataRelationshipsAvailableFreeBundles(val *OrderDataRelationshipsAvailableFreeBundles) *NullableOrderDataRelationshipsAvailableFreeBundles { - return &NullableOrderDataRelationshipsAvailableFreeBundles{value: val, isSet: true} -} - -func (v NullableOrderDataRelationshipsAvailableFreeBundles) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOrderDataRelationshipsAvailableFreeBundles) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_order_data_relationships_available_free_bundles_data.go b/api/model_order_data_relationships_available_free_bundles_data.go deleted file mode 100644 index a679229f..00000000 --- a/api/model_order_data_relationships_available_free_bundles_data.go +++ /dev/null @@ -1,165 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the OrderDataRelationshipsAvailableFreeBundlesData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &OrderDataRelationshipsAvailableFreeBundlesData{} - -// OrderDataRelationshipsAvailableFreeBundlesData struct for OrderDataRelationshipsAvailableFreeBundlesData -type OrderDataRelationshipsAvailableFreeBundlesData struct { - // The resource's type - Type interface{} `json:"type,omitempty"` - // The resource's id - Id interface{} `json:"id,omitempty"` -} - -// NewOrderDataRelationshipsAvailableFreeBundlesData instantiates a new OrderDataRelationshipsAvailableFreeBundlesData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewOrderDataRelationshipsAvailableFreeBundlesData() *OrderDataRelationshipsAvailableFreeBundlesData { - this := OrderDataRelationshipsAvailableFreeBundlesData{} - return &this -} - -// NewOrderDataRelationshipsAvailableFreeBundlesDataWithDefaults instantiates a new OrderDataRelationshipsAvailableFreeBundlesData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewOrderDataRelationshipsAvailableFreeBundlesDataWithDefaults() *OrderDataRelationshipsAvailableFreeBundlesData { - this := OrderDataRelationshipsAvailableFreeBundlesData{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *OrderDataRelationshipsAvailableFreeBundlesData) GetType() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *OrderDataRelationshipsAvailableFreeBundlesData) GetTypeOk() (*interface{}, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return &o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *OrderDataRelationshipsAvailableFreeBundlesData) HasType() bool { - if o != nil && IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *OrderDataRelationshipsAvailableFreeBundlesData) SetType(v interface{}) { - o.Type = v -} - -// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *OrderDataRelationshipsAvailableFreeBundlesData) GetId() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *OrderDataRelationshipsAvailableFreeBundlesData) GetIdOk() (*interface{}, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return &o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *OrderDataRelationshipsAvailableFreeBundlesData) HasId() bool { - if o != nil && IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *OrderDataRelationshipsAvailableFreeBundlesData) SetId(v interface{}) { - o.Id = v -} - -func (o OrderDataRelationshipsAvailableFreeBundlesData) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o OrderDataRelationshipsAvailableFreeBundlesData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if o.Type != nil { - toSerialize["type"] = o.Type - } - if o.Id != nil { - toSerialize["id"] = o.Id - } - return toSerialize, nil -} - -type NullableOrderDataRelationshipsAvailableFreeBundlesData struct { - value *OrderDataRelationshipsAvailableFreeBundlesData - isSet bool -} - -func (v NullableOrderDataRelationshipsAvailableFreeBundlesData) Get() *OrderDataRelationshipsAvailableFreeBundlesData { - return v.value -} - -func (v *NullableOrderDataRelationshipsAvailableFreeBundlesData) Set(val *OrderDataRelationshipsAvailableFreeBundlesData) { - v.value = val - v.isSet = true -} - -func (v NullableOrderDataRelationshipsAvailableFreeBundlesData) IsSet() bool { - return v.isSet -} - -func (v *NullableOrderDataRelationshipsAvailableFreeBundlesData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrderDataRelationshipsAvailableFreeBundlesData(val *OrderDataRelationshipsAvailableFreeBundlesData) *NullableOrderDataRelationshipsAvailableFreeBundlesData { - return &NullableOrderDataRelationshipsAvailableFreeBundlesData{value: val, isSet: true} -} - -func (v NullableOrderDataRelationshipsAvailableFreeBundlesData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOrderDataRelationshipsAvailableFreeBundlesData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_order_data_relationships_links.go b/api/model_order_data_relationships_links.go new file mode 100644 index 00000000..ba03a8f8 --- /dev/null +++ b/api/model_order_data_relationships_links.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the OrderDataRelationshipsLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrderDataRelationshipsLinks{} + +// OrderDataRelationshipsLinks struct for OrderDataRelationshipsLinks +type OrderDataRelationshipsLinks struct { + Data *OrderDataRelationshipsLinksData `json:"data,omitempty"` +} + +// NewOrderDataRelationshipsLinks instantiates a new OrderDataRelationshipsLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrderDataRelationshipsLinks() *OrderDataRelationshipsLinks { + this := OrderDataRelationshipsLinks{} + return &this +} + +// NewOrderDataRelationshipsLinksWithDefaults instantiates a new OrderDataRelationshipsLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrderDataRelationshipsLinksWithDefaults() *OrderDataRelationshipsLinks { + this := OrderDataRelationshipsLinks{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *OrderDataRelationshipsLinks) GetData() OrderDataRelationshipsLinksData { + if o == nil || IsNil(o.Data) { + var ret OrderDataRelationshipsLinksData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderDataRelationshipsLinks) GetDataOk() (*OrderDataRelationshipsLinksData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *OrderDataRelationshipsLinks) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given OrderDataRelationshipsLinksData and assigns it to the Data field. +func (o *OrderDataRelationshipsLinks) SetData(v OrderDataRelationshipsLinksData) { + o.Data = &v +} + +func (o OrderDataRelationshipsLinks) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrderDataRelationshipsLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableOrderDataRelationshipsLinks struct { + value *OrderDataRelationshipsLinks + isSet bool +} + +func (v NullableOrderDataRelationshipsLinks) Get() *OrderDataRelationshipsLinks { + return v.value +} + +func (v *NullableOrderDataRelationshipsLinks) Set(val *OrderDataRelationshipsLinks) { + v.value = val + v.isSet = true +} + +func (v NullableOrderDataRelationshipsLinks) IsSet() bool { + return v.isSet +} + +func (v *NullableOrderDataRelationshipsLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrderDataRelationshipsLinks(val *OrderDataRelationshipsLinks) *NullableOrderDataRelationshipsLinks { + return &NullableOrderDataRelationshipsLinks{value: val, isSet: true} +} + +func (v NullableOrderDataRelationshipsLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrderDataRelationshipsLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_order_data_relationships_links_data.go b/api/model_order_data_relationships_links_data.go new file mode 100644 index 00000000..f57d3ded --- /dev/null +++ b/api/model_order_data_relationships_links_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the OrderDataRelationshipsLinksData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrderDataRelationshipsLinksData{} + +// OrderDataRelationshipsLinksData struct for OrderDataRelationshipsLinksData +type OrderDataRelationshipsLinksData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource's id + Id interface{} `json:"id,omitempty"` +} + +// NewOrderDataRelationshipsLinksData instantiates a new OrderDataRelationshipsLinksData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrderDataRelationshipsLinksData() *OrderDataRelationshipsLinksData { + this := OrderDataRelationshipsLinksData{} + return &this +} + +// NewOrderDataRelationshipsLinksDataWithDefaults instantiates a new OrderDataRelationshipsLinksData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrderDataRelationshipsLinksDataWithDefaults() *OrderDataRelationshipsLinksData { + this := OrderDataRelationshipsLinksData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrderDataRelationshipsLinksData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrderDataRelationshipsLinksData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *OrderDataRelationshipsLinksData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *OrderDataRelationshipsLinksData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrderDataRelationshipsLinksData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrderDataRelationshipsLinksData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *OrderDataRelationshipsLinksData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *OrderDataRelationshipsLinksData) SetId(v interface{}) { + o.Id = v +} + +func (o OrderDataRelationshipsLinksData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrderDataRelationshipsLinksData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableOrderDataRelationshipsLinksData struct { + value *OrderDataRelationshipsLinksData + isSet bool +} + +func (v NullableOrderDataRelationshipsLinksData) Get() *OrderDataRelationshipsLinksData { + return v.value +} + +func (v *NullableOrderDataRelationshipsLinksData) Set(val *OrderDataRelationshipsLinksData) { + v.value = val + v.isSet = true +} + +func (v NullableOrderDataRelationshipsLinksData) IsSet() bool { + return v.isSet +} + +func (v *NullableOrderDataRelationshipsLinksData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrderDataRelationshipsLinksData(val *OrderDataRelationshipsLinksData) *NullableOrderDataRelationshipsLinksData { + return &NullableOrderDataRelationshipsLinksData{value: val, isSet: true} +} + +func (v NullableOrderDataRelationshipsLinksData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrderDataRelationshipsLinksData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_order_data_relationships_order_copies.go b/api/model_order_data_relationships_order_copies.go index 6a215006..4f2bba48 100644 --- a/api/model_order_data_relationships_order_copies.go +++ b/api/model_order_data_relationships_order_copies.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &OrderDataRelationshipsOrderCopies{} // OrderDataRelationshipsOrderCopies struct for OrderDataRelationshipsOrderCopies type OrderDataRelationshipsOrderCopies struct { - Data *OrderSubscriptionDataRelationshipsOrderCopiesData `json:"data,omitempty"` + Data *OrderDataRelationshipsOrderCopiesData `json:"data,omitempty"` } // NewOrderDataRelationshipsOrderCopies instantiates a new OrderDataRelationshipsOrderCopies object @@ -41,9 +41,9 @@ func NewOrderDataRelationshipsOrderCopiesWithDefaults() *OrderDataRelationshipsO } // GetData returns the Data field value if set, zero value otherwise. -func (o *OrderDataRelationshipsOrderCopies) GetData() OrderSubscriptionDataRelationshipsOrderCopiesData { +func (o *OrderDataRelationshipsOrderCopies) GetData() OrderDataRelationshipsOrderCopiesData { if o == nil || IsNil(o.Data) { - var ret OrderSubscriptionDataRelationshipsOrderCopiesData + var ret OrderDataRelationshipsOrderCopiesData return ret } return *o.Data @@ -51,7 +51,7 @@ func (o *OrderDataRelationshipsOrderCopies) GetData() OrderSubscriptionDataRelat // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *OrderDataRelationshipsOrderCopies) GetDataOk() (*OrderSubscriptionDataRelationshipsOrderCopiesData, bool) { +func (o *OrderDataRelationshipsOrderCopies) GetDataOk() (*OrderDataRelationshipsOrderCopiesData, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -67,8 +67,8 @@ func (o *OrderDataRelationshipsOrderCopies) HasData() bool { return false } -// SetData gets a reference to the given OrderSubscriptionDataRelationshipsOrderCopiesData and assigns it to the Data field. -func (o *OrderDataRelationshipsOrderCopies) SetData(v OrderSubscriptionDataRelationshipsOrderCopiesData) { +// SetData gets a reference to the given OrderDataRelationshipsOrderCopiesData and assigns it to the Data field. +func (o *OrderDataRelationshipsOrderCopies) SetData(v OrderDataRelationshipsOrderCopiesData) { o.Data = &v } diff --git a/api/model_order_data_relationships_order_copies_data.go b/api/model_order_data_relationships_order_copies_data.go new file mode 100644 index 00000000..8336abaa --- /dev/null +++ b/api/model_order_data_relationships_order_copies_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the OrderDataRelationshipsOrderCopiesData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrderDataRelationshipsOrderCopiesData{} + +// OrderDataRelationshipsOrderCopiesData struct for OrderDataRelationshipsOrderCopiesData +type OrderDataRelationshipsOrderCopiesData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource's id + Id interface{} `json:"id,omitempty"` +} + +// NewOrderDataRelationshipsOrderCopiesData instantiates a new OrderDataRelationshipsOrderCopiesData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrderDataRelationshipsOrderCopiesData() *OrderDataRelationshipsOrderCopiesData { + this := OrderDataRelationshipsOrderCopiesData{} + return &this +} + +// NewOrderDataRelationshipsOrderCopiesDataWithDefaults instantiates a new OrderDataRelationshipsOrderCopiesData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrderDataRelationshipsOrderCopiesDataWithDefaults() *OrderDataRelationshipsOrderCopiesData { + this := OrderDataRelationshipsOrderCopiesData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrderDataRelationshipsOrderCopiesData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrderDataRelationshipsOrderCopiesData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *OrderDataRelationshipsOrderCopiesData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *OrderDataRelationshipsOrderCopiesData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OrderDataRelationshipsOrderCopiesData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OrderDataRelationshipsOrderCopiesData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *OrderDataRelationshipsOrderCopiesData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *OrderDataRelationshipsOrderCopiesData) SetId(v interface{}) { + o.Id = v +} + +func (o OrderDataRelationshipsOrderCopiesData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrderDataRelationshipsOrderCopiesData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableOrderDataRelationshipsOrderCopiesData struct { + value *OrderDataRelationshipsOrderCopiesData + isSet bool +} + +func (v NullableOrderDataRelationshipsOrderCopiesData) Get() *OrderDataRelationshipsOrderCopiesData { + return v.value +} + +func (v *NullableOrderDataRelationshipsOrderCopiesData) Set(val *OrderDataRelationshipsOrderCopiesData) { + v.value = val + v.isSet = true +} + +func (v NullableOrderDataRelationshipsOrderCopiesData) IsSet() bool { + return v.isSet +} + +func (v *NullableOrderDataRelationshipsOrderCopiesData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrderDataRelationshipsOrderCopiesData(val *OrderDataRelationshipsOrderCopiesData) *NullableOrderDataRelationshipsOrderCopiesData { + return &NullableOrderDataRelationshipsOrderCopiesData{value: val, isSet: true} +} + +func (v NullableOrderDataRelationshipsOrderCopiesData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrderDataRelationshipsOrderCopiesData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_order_data_relationships_payment_options.go b/api/model_order_data_relationships_payment_options.go new file mode 100644 index 00000000..500ee291 --- /dev/null +++ b/api/model_order_data_relationships_payment_options.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the OrderDataRelationshipsPaymentOptions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrderDataRelationshipsPaymentOptions{} + +// OrderDataRelationshipsPaymentOptions struct for OrderDataRelationshipsPaymentOptions +type OrderDataRelationshipsPaymentOptions struct { + Data *OrderDataRelationshipsPaymentOptionsData `json:"data,omitempty"` +} + +// NewOrderDataRelationshipsPaymentOptions instantiates a new OrderDataRelationshipsPaymentOptions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrderDataRelationshipsPaymentOptions() *OrderDataRelationshipsPaymentOptions { + this := OrderDataRelationshipsPaymentOptions{} + return &this +} + +// NewOrderDataRelationshipsPaymentOptionsWithDefaults instantiates a new OrderDataRelationshipsPaymentOptions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrderDataRelationshipsPaymentOptionsWithDefaults() *OrderDataRelationshipsPaymentOptions { + this := OrderDataRelationshipsPaymentOptions{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *OrderDataRelationshipsPaymentOptions) GetData() OrderDataRelationshipsPaymentOptionsData { + if o == nil || IsNil(o.Data) { + var ret OrderDataRelationshipsPaymentOptionsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderDataRelationshipsPaymentOptions) GetDataOk() (*OrderDataRelationshipsPaymentOptionsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *OrderDataRelationshipsPaymentOptions) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given OrderDataRelationshipsPaymentOptionsData and assigns it to the Data field. +func (o *OrderDataRelationshipsPaymentOptions) SetData(v OrderDataRelationshipsPaymentOptionsData) { + o.Data = &v +} + +func (o OrderDataRelationshipsPaymentOptions) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrderDataRelationshipsPaymentOptions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableOrderDataRelationshipsPaymentOptions struct { + value *OrderDataRelationshipsPaymentOptions + isSet bool +} + +func (v NullableOrderDataRelationshipsPaymentOptions) Get() *OrderDataRelationshipsPaymentOptions { + return v.value +} + +func (v *NullableOrderDataRelationshipsPaymentOptions) Set(val *OrderDataRelationshipsPaymentOptions) { + v.value = val + v.isSet = true +} + +func (v NullableOrderDataRelationshipsPaymentOptions) IsSet() bool { + return v.isSet +} + +func (v *NullableOrderDataRelationshipsPaymentOptions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrderDataRelationshipsPaymentOptions(val *OrderDataRelationshipsPaymentOptions) *NullableOrderDataRelationshipsPaymentOptions { + return &NullableOrderDataRelationshipsPaymentOptions{value: val, isSet: true} +} + +func (v NullableOrderDataRelationshipsPaymentOptions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrderDataRelationshipsPaymentOptions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_authorization_data_relationships_events_data.go b/api/model_order_data_relationships_payment_options_data.go similarity index 55% rename from api/model_authorization_data_relationships_events_data.go rename to api/model_order_data_relationships_payment_options_data.go index 489021fe..e021151d 100644 --- a/api/model_authorization_data_relationships_events_data.go +++ b/api/model_order_data_relationships_payment_options_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the AuthorizationDataRelationshipsEventsData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AuthorizationDataRelationshipsEventsData{} +// checks if the OrderDataRelationshipsPaymentOptionsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrderDataRelationshipsPaymentOptionsData{} -// AuthorizationDataRelationshipsEventsData struct for AuthorizationDataRelationshipsEventsData -type AuthorizationDataRelationshipsEventsData struct { +// OrderDataRelationshipsPaymentOptionsData struct for OrderDataRelationshipsPaymentOptionsData +type OrderDataRelationshipsPaymentOptionsData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource's id Id interface{} `json:"id,omitempty"` } -// NewAuthorizationDataRelationshipsEventsData instantiates a new AuthorizationDataRelationshipsEventsData object +// NewOrderDataRelationshipsPaymentOptionsData instantiates a new OrderDataRelationshipsPaymentOptionsData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewAuthorizationDataRelationshipsEventsData() *AuthorizationDataRelationshipsEventsData { - this := AuthorizationDataRelationshipsEventsData{} +func NewOrderDataRelationshipsPaymentOptionsData() *OrderDataRelationshipsPaymentOptionsData { + this := OrderDataRelationshipsPaymentOptionsData{} return &this } -// NewAuthorizationDataRelationshipsEventsDataWithDefaults instantiates a new AuthorizationDataRelationshipsEventsData object +// NewOrderDataRelationshipsPaymentOptionsDataWithDefaults instantiates a new OrderDataRelationshipsPaymentOptionsData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewAuthorizationDataRelationshipsEventsDataWithDefaults() *AuthorizationDataRelationshipsEventsData { - this := AuthorizationDataRelationshipsEventsData{} +func NewOrderDataRelationshipsPaymentOptionsDataWithDefaults() *OrderDataRelationshipsPaymentOptionsData { + this := OrderDataRelationshipsPaymentOptionsData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AuthorizationDataRelationshipsEventsData) GetType() interface{} { +func (o *OrderDataRelationshipsPaymentOptionsData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *AuthorizationDataRelationshipsEventsData) GetType() interface{} { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AuthorizationDataRelationshipsEventsData) GetTypeOk() (*interface{}, bool) { +func (o *OrderDataRelationshipsPaymentOptionsData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *AuthorizationDataRelationshipsEventsData) GetTypeOk() (*interface{}, bo } // HasType returns a boolean if a field has been set. -func (o *AuthorizationDataRelationshipsEventsData) HasType() bool { +func (o *OrderDataRelationshipsPaymentOptionsData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *AuthorizationDataRelationshipsEventsData) HasType() bool { } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *AuthorizationDataRelationshipsEventsData) SetType(v interface{}) { +func (o *OrderDataRelationshipsPaymentOptionsData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AuthorizationDataRelationshipsEventsData) GetId() interface{} { +func (o *OrderDataRelationshipsPaymentOptionsData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *AuthorizationDataRelationshipsEventsData) GetId() interface{} { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AuthorizationDataRelationshipsEventsData) GetIdOk() (*interface{}, bool) { +func (o *OrderDataRelationshipsPaymentOptionsData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *AuthorizationDataRelationshipsEventsData) GetIdOk() (*interface{}, bool } // HasId returns a boolean if a field has been set. -func (o *AuthorizationDataRelationshipsEventsData) HasId() bool { +func (o *OrderDataRelationshipsPaymentOptionsData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *AuthorizationDataRelationshipsEventsData) HasId() bool { } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *AuthorizationDataRelationshipsEventsData) SetId(v interface{}) { +func (o *OrderDataRelationshipsPaymentOptionsData) SetId(v interface{}) { o.Id = v } -func (o AuthorizationDataRelationshipsEventsData) MarshalJSON() ([]byte, error) { +func (o OrderDataRelationshipsPaymentOptionsData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o AuthorizationDataRelationshipsEventsData) MarshalJSON() ([]byte, error) return json.Marshal(toSerialize) } -func (o AuthorizationDataRelationshipsEventsData) ToMap() (map[string]interface{}, error) { +func (o OrderDataRelationshipsPaymentOptionsData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o AuthorizationDataRelationshipsEventsData) ToMap() (map[string]interface{ return toSerialize, nil } -type NullableAuthorizationDataRelationshipsEventsData struct { - value *AuthorizationDataRelationshipsEventsData +type NullableOrderDataRelationshipsPaymentOptionsData struct { + value *OrderDataRelationshipsPaymentOptionsData isSet bool } -func (v NullableAuthorizationDataRelationshipsEventsData) Get() *AuthorizationDataRelationshipsEventsData { +func (v NullableOrderDataRelationshipsPaymentOptionsData) Get() *OrderDataRelationshipsPaymentOptionsData { return v.value } -func (v *NullableAuthorizationDataRelationshipsEventsData) Set(val *AuthorizationDataRelationshipsEventsData) { +func (v *NullableOrderDataRelationshipsPaymentOptionsData) Set(val *OrderDataRelationshipsPaymentOptionsData) { v.value = val v.isSet = true } -func (v NullableAuthorizationDataRelationshipsEventsData) IsSet() bool { +func (v NullableOrderDataRelationshipsPaymentOptionsData) IsSet() bool { return v.isSet } -func (v *NullableAuthorizationDataRelationshipsEventsData) Unset() { +func (v *NullableOrderDataRelationshipsPaymentOptionsData) Unset() { v.value = nil v.isSet = false } -func NewNullableAuthorizationDataRelationshipsEventsData(val *AuthorizationDataRelationshipsEventsData) *NullableAuthorizationDataRelationshipsEventsData { - return &NullableAuthorizationDataRelationshipsEventsData{value: val, isSet: true} +func NewNullableOrderDataRelationshipsPaymentOptionsData(val *OrderDataRelationshipsPaymentOptionsData) *NullableOrderDataRelationshipsPaymentOptionsData { + return &NullableOrderDataRelationshipsPaymentOptionsData{value: val, isSet: true} } -func (v NullableAuthorizationDataRelationshipsEventsData) MarshalJSON() ([]byte, error) { +func (v NullableOrderDataRelationshipsPaymentOptionsData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableAuthorizationDataRelationshipsEventsData) UnmarshalJSON(src []byte) error { +func (v *NullableOrderDataRelationshipsPaymentOptionsData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_order_data_relationships_resource_errors.go b/api/model_order_data_relationships_resource_errors.go new file mode 100644 index 00000000..34fcbff7 --- /dev/null +++ b/api/model_order_data_relationships_resource_errors.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the OrderDataRelationshipsResourceErrors type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrderDataRelationshipsResourceErrors{} + +// OrderDataRelationshipsResourceErrors struct for OrderDataRelationshipsResourceErrors +type OrderDataRelationshipsResourceErrors struct { + Data *OrderDataRelationshipsResourceErrorsData `json:"data,omitempty"` +} + +// NewOrderDataRelationshipsResourceErrors instantiates a new OrderDataRelationshipsResourceErrors object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrderDataRelationshipsResourceErrors() *OrderDataRelationshipsResourceErrors { + this := OrderDataRelationshipsResourceErrors{} + return &this +} + +// NewOrderDataRelationshipsResourceErrorsWithDefaults instantiates a new OrderDataRelationshipsResourceErrors object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrderDataRelationshipsResourceErrorsWithDefaults() *OrderDataRelationshipsResourceErrors { + this := OrderDataRelationshipsResourceErrors{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *OrderDataRelationshipsResourceErrors) GetData() OrderDataRelationshipsResourceErrorsData { + if o == nil || IsNil(o.Data) { + var ret OrderDataRelationshipsResourceErrorsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderDataRelationshipsResourceErrors) GetDataOk() (*OrderDataRelationshipsResourceErrorsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *OrderDataRelationshipsResourceErrors) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given OrderDataRelationshipsResourceErrorsData and assigns it to the Data field. +func (o *OrderDataRelationshipsResourceErrors) SetData(v OrderDataRelationshipsResourceErrorsData) { + o.Data = &v +} + +func (o OrderDataRelationshipsResourceErrors) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrderDataRelationshipsResourceErrors) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableOrderDataRelationshipsResourceErrors struct { + value *OrderDataRelationshipsResourceErrors + isSet bool +} + +func (v NullableOrderDataRelationshipsResourceErrors) Get() *OrderDataRelationshipsResourceErrors { + return v.value +} + +func (v *NullableOrderDataRelationshipsResourceErrors) Set(val *OrderDataRelationshipsResourceErrors) { + v.value = val + v.isSet = true +} + +func (v NullableOrderDataRelationshipsResourceErrors) IsSet() bool { + return v.isSet +} + +func (v *NullableOrderDataRelationshipsResourceErrors) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrderDataRelationshipsResourceErrors(val *OrderDataRelationshipsResourceErrors) *NullableOrderDataRelationshipsResourceErrors { + return &NullableOrderDataRelationshipsResourceErrors{value: val, isSet: true} +} + +func (v NullableOrderDataRelationshipsResourceErrors) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrderDataRelationshipsResourceErrors) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_coupon_data_relationships_promotion_rule_data.go b/api/model_order_data_relationships_resource_errors_data.go similarity index 55% rename from api/model_coupon_data_relationships_promotion_rule_data.go rename to api/model_order_data_relationships_resource_errors_data.go index 890a8a17..70ec1c09 100644 --- a/api/model_coupon_data_relationships_promotion_rule_data.go +++ b/api/model_order_data_relationships_resource_errors_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the CouponDataRelationshipsPromotionRuleData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CouponDataRelationshipsPromotionRuleData{} +// checks if the OrderDataRelationshipsResourceErrorsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrderDataRelationshipsResourceErrorsData{} -// CouponDataRelationshipsPromotionRuleData struct for CouponDataRelationshipsPromotionRuleData -type CouponDataRelationshipsPromotionRuleData struct { +// OrderDataRelationshipsResourceErrorsData struct for OrderDataRelationshipsResourceErrorsData +type OrderDataRelationshipsResourceErrorsData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource's id Id interface{} `json:"id,omitempty"` } -// NewCouponDataRelationshipsPromotionRuleData instantiates a new CouponDataRelationshipsPromotionRuleData object +// NewOrderDataRelationshipsResourceErrorsData instantiates a new OrderDataRelationshipsResourceErrorsData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCouponDataRelationshipsPromotionRuleData() *CouponDataRelationshipsPromotionRuleData { - this := CouponDataRelationshipsPromotionRuleData{} +func NewOrderDataRelationshipsResourceErrorsData() *OrderDataRelationshipsResourceErrorsData { + this := OrderDataRelationshipsResourceErrorsData{} return &this } -// NewCouponDataRelationshipsPromotionRuleDataWithDefaults instantiates a new CouponDataRelationshipsPromotionRuleData object +// NewOrderDataRelationshipsResourceErrorsDataWithDefaults instantiates a new OrderDataRelationshipsResourceErrorsData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewCouponDataRelationshipsPromotionRuleDataWithDefaults() *CouponDataRelationshipsPromotionRuleData { - this := CouponDataRelationshipsPromotionRuleData{} +func NewOrderDataRelationshipsResourceErrorsDataWithDefaults() *OrderDataRelationshipsResourceErrorsData { + this := OrderDataRelationshipsResourceErrorsData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CouponDataRelationshipsPromotionRuleData) GetType() interface{} { +func (o *OrderDataRelationshipsResourceErrorsData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *CouponDataRelationshipsPromotionRuleData) GetType() interface{} { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CouponDataRelationshipsPromotionRuleData) GetTypeOk() (*interface{}, bool) { +func (o *OrderDataRelationshipsResourceErrorsData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *CouponDataRelationshipsPromotionRuleData) GetTypeOk() (*interface{}, bo } // HasType returns a boolean if a field has been set. -func (o *CouponDataRelationshipsPromotionRuleData) HasType() bool { +func (o *OrderDataRelationshipsResourceErrorsData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *CouponDataRelationshipsPromotionRuleData) HasType() bool { } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *CouponDataRelationshipsPromotionRuleData) SetType(v interface{}) { +func (o *OrderDataRelationshipsResourceErrorsData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CouponDataRelationshipsPromotionRuleData) GetId() interface{} { +func (o *OrderDataRelationshipsResourceErrorsData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *CouponDataRelationshipsPromotionRuleData) GetId() interface{} { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CouponDataRelationshipsPromotionRuleData) GetIdOk() (*interface{}, bool) { +func (o *OrderDataRelationshipsResourceErrorsData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *CouponDataRelationshipsPromotionRuleData) GetIdOk() (*interface{}, bool } // HasId returns a boolean if a field has been set. -func (o *CouponDataRelationshipsPromotionRuleData) HasId() bool { +func (o *OrderDataRelationshipsResourceErrorsData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *CouponDataRelationshipsPromotionRuleData) HasId() bool { } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *CouponDataRelationshipsPromotionRuleData) SetId(v interface{}) { +func (o *OrderDataRelationshipsResourceErrorsData) SetId(v interface{}) { o.Id = v } -func (o CouponDataRelationshipsPromotionRuleData) MarshalJSON() ([]byte, error) { +func (o OrderDataRelationshipsResourceErrorsData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o CouponDataRelationshipsPromotionRuleData) MarshalJSON() ([]byte, error) return json.Marshal(toSerialize) } -func (o CouponDataRelationshipsPromotionRuleData) ToMap() (map[string]interface{}, error) { +func (o OrderDataRelationshipsResourceErrorsData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o CouponDataRelationshipsPromotionRuleData) ToMap() (map[string]interface{ return toSerialize, nil } -type NullableCouponDataRelationshipsPromotionRuleData struct { - value *CouponDataRelationshipsPromotionRuleData +type NullableOrderDataRelationshipsResourceErrorsData struct { + value *OrderDataRelationshipsResourceErrorsData isSet bool } -func (v NullableCouponDataRelationshipsPromotionRuleData) Get() *CouponDataRelationshipsPromotionRuleData { +func (v NullableOrderDataRelationshipsResourceErrorsData) Get() *OrderDataRelationshipsResourceErrorsData { return v.value } -func (v *NullableCouponDataRelationshipsPromotionRuleData) Set(val *CouponDataRelationshipsPromotionRuleData) { +func (v *NullableOrderDataRelationshipsResourceErrorsData) Set(val *OrderDataRelationshipsResourceErrorsData) { v.value = val v.isSet = true } -func (v NullableCouponDataRelationshipsPromotionRuleData) IsSet() bool { +func (v NullableOrderDataRelationshipsResourceErrorsData) IsSet() bool { return v.isSet } -func (v *NullableCouponDataRelationshipsPromotionRuleData) Unset() { +func (v *NullableOrderDataRelationshipsResourceErrorsData) Unset() { v.value = nil v.isSet = false } -func NewNullableCouponDataRelationshipsPromotionRuleData(val *CouponDataRelationshipsPromotionRuleData) *NullableCouponDataRelationshipsPromotionRuleData { - return &NullableCouponDataRelationshipsPromotionRuleData{value: val, isSet: true} +func NewNullableOrderDataRelationshipsResourceErrorsData(val *OrderDataRelationshipsResourceErrorsData) *NullableOrderDataRelationshipsResourceErrorsData { + return &NullableOrderDataRelationshipsResourceErrorsData{value: val, isSet: true} } -func (v NullableCouponDataRelationshipsPromotionRuleData) MarshalJSON() ([]byte, error) { +func (v NullableOrderDataRelationshipsResourceErrorsData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableCouponDataRelationshipsPromotionRuleData) UnmarshalJSON(src []byte) error { +func (v *NullableOrderDataRelationshipsResourceErrorsData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_order_data_relationships_shipments.go b/api/model_order_data_relationships_shipments.go deleted file mode 100644 index a23f6455..00000000 --- a/api/model_order_data_relationships_shipments.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the OrderDataRelationshipsShipments type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &OrderDataRelationshipsShipments{} - -// OrderDataRelationshipsShipments struct for OrderDataRelationshipsShipments -type OrderDataRelationshipsShipments struct { - Data *OrderDataRelationshipsShipmentsData `json:"data,omitempty"` -} - -// NewOrderDataRelationshipsShipments instantiates a new OrderDataRelationshipsShipments object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewOrderDataRelationshipsShipments() *OrderDataRelationshipsShipments { - this := OrderDataRelationshipsShipments{} - return &this -} - -// NewOrderDataRelationshipsShipmentsWithDefaults instantiates a new OrderDataRelationshipsShipments object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewOrderDataRelationshipsShipmentsWithDefaults() *OrderDataRelationshipsShipments { - this := OrderDataRelationshipsShipments{} - return &this -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *OrderDataRelationshipsShipments) GetData() OrderDataRelationshipsShipmentsData { - if o == nil || IsNil(o.Data) { - var ret OrderDataRelationshipsShipmentsData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderDataRelationshipsShipments) GetDataOk() (*OrderDataRelationshipsShipmentsData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *OrderDataRelationshipsShipments) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given OrderDataRelationshipsShipmentsData and assigns it to the Data field. -func (o *OrderDataRelationshipsShipments) SetData(v OrderDataRelationshipsShipmentsData) { - o.Data = &v -} - -func (o OrderDataRelationshipsShipments) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o OrderDataRelationshipsShipments) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableOrderDataRelationshipsShipments struct { - value *OrderDataRelationshipsShipments - isSet bool -} - -func (v NullableOrderDataRelationshipsShipments) Get() *OrderDataRelationshipsShipments { - return v.value -} - -func (v *NullableOrderDataRelationshipsShipments) Set(val *OrderDataRelationshipsShipments) { - v.value = val - v.isSet = true -} - -func (v NullableOrderDataRelationshipsShipments) IsSet() bool { - return v.isSet -} - -func (v *NullableOrderDataRelationshipsShipments) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrderDataRelationshipsShipments(val *OrderDataRelationshipsShipments) *NullableOrderDataRelationshipsShipments { - return &NullableOrderDataRelationshipsShipments{value: val, isSet: true} -} - -func (v NullableOrderDataRelationshipsShipments) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOrderDataRelationshipsShipments) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_order_data_relationships_transactions.go b/api/model_order_data_relationships_transactions.go index efa684cb..b967448f 100644 --- a/api/model_order_data_relationships_transactions.go +++ b/api/model_order_data_relationships_transactions.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_data_relationships_transactions_data.go b/api/model_order_data_relationships_transactions_data.go index 850a9e06..94b8f0e9 100644 --- a/api/model_order_data_relationships_transactions_data.go +++ b/api/model_order_data_relationships_transactions_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_factory.go b/api/model_order_factory.go index a7606d24..889a4974 100644 --- a/api/model_order_factory.go +++ b/api/model_order_factory.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_factory_data.go b/api/model_order_factory_data.go index 54e688fb..6865ef0a 100644 --- a/api/model_order_factory_data.go +++ b/api/model_order_factory_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_factory_data_relationships.go b/api/model_order_factory_data_relationships.go index 84332c17..fcf84428 100644 --- a/api/model_order_factory_data_relationships.go +++ b/api/model_order_factory_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,9 @@ var _ MappedNullable = &OrderFactoryDataRelationships{} // OrderFactoryDataRelationships struct for OrderFactoryDataRelationships type OrderFactoryDataRelationships struct { - SourceOrder *AdyenPaymentDataRelationshipsOrder `json:"source_order,omitempty"` - TargetOrder *AdyenPaymentDataRelationshipsOrder `json:"target_order,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` + SourceOrder *AdyenPaymentDataRelationshipsOrder `json:"source_order,omitempty"` + TargetOrder *AdyenPaymentDataRelationshipsOrder `json:"target_order,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` } // NewOrderFactoryDataRelationships instantiates a new OrderFactoryDataRelationships object @@ -107,9 +107,9 @@ func (o *OrderFactoryDataRelationships) SetTargetOrder(v AdyenPaymentDataRelatio } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *OrderFactoryDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { +func (o *OrderFactoryDataRelationships) GetEvents() AddressDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents + var ret AddressDataRelationshipsEvents return ret } return *o.Events @@ -117,7 +117,7 @@ func (o *OrderFactoryDataRelationships) GetEvents() AuthorizationDataRelationshi // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *OrderFactoryDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { +func (o *OrderFactoryDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -133,8 +133,8 @@ func (o *OrderFactoryDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *OrderFactoryDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *OrderFactoryDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { o.Events = &v } diff --git a/api/model_order_subscription.go b/api/model_order_subscription.go index 84903bc5..6b663ccb 100644 --- a/api/model_order_subscription.go +++ b/api/model_order_subscription.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_create.go b/api/model_order_subscription_create.go index e0a5d300..21cf903e 100644 --- a/api/model_order_subscription_create.go +++ b/api/model_order_subscription_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_create_data.go b/api/model_order_subscription_create_data.go index 3eab3e21..cd12aa95 100644 --- a/api/model_order_subscription_create_data.go +++ b/api/model_order_subscription_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_create_data_relationships.go b/api/model_order_subscription_create_data_relationships.go index e2d561dd..09b19c32 100644 --- a/api/model_order_subscription_create_data_relationships.go +++ b/api/model_order_subscription_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,6 +22,7 @@ var _ MappedNullable = &OrderSubscriptionCreateDataRelationships{} type OrderSubscriptionCreateDataRelationships struct { Market *BillingInfoValidationRuleCreateDataRelationshipsMarket `json:"market,omitempty"` SourceOrder AdyenPaymentCreateDataRelationshipsOrder `json:"source_order"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` } // NewOrderSubscriptionCreateDataRelationships instantiates a new OrderSubscriptionCreateDataRelationships object @@ -98,6 +99,38 @@ func (o *OrderSubscriptionCreateDataRelationships) SetSourceOrder(v AdyenPayment o.SourceOrder = v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *OrderSubscriptionCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSubscriptionCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *OrderSubscriptionCreateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *OrderSubscriptionCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + func (o OrderSubscriptionCreateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -112,6 +145,9 @@ func (o OrderSubscriptionCreateDataRelationships) ToMap() (map[string]interface{ toSerialize["market"] = o.Market } toSerialize["source_order"] = o.SourceOrder + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_order_subscription_data.go b/api/model_order_subscription_data.go index 9bfa78e1..b9ffe09e 100644 --- a/api/model_order_subscription_data.go +++ b/api/model_order_subscription_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_data_relationships.go b/api/model_order_subscription_data_relationships.go index 4afa6fe9..d776df48 100644 --- a/api/model_order_subscription_data_relationships.go +++ b/api/model_order_subscription_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -27,11 +27,11 @@ type OrderSubscriptionDataRelationships struct { CustomerPaymentSource *CustomerDataRelationshipsCustomerPaymentSources `json:"customer_payment_source,omitempty"` OrderSubscriptionItems *OrderSubscriptionDataRelationshipsOrderSubscriptionItems `json:"order_subscription_items,omitempty"` OrderFactories *OrderSubscriptionDataRelationshipsOrderFactories `json:"order_factories,omitempty"` - // Deprecated - OrderCopies *OrderSubscriptionDataRelationshipsOrderCopies `json:"order_copies,omitempty"` - RecurringOrderCopies *OrderSubscriptionDataRelationshipsRecurringOrderCopies `json:"recurring_order_copies,omitempty"` - Orders *AdyenPaymentDataRelationshipsOrder `json:"orders,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` + RecurringOrderCopies *OrderSubscriptionDataRelationshipsRecurringOrderCopies `json:"recurring_order_copies,omitempty"` + Orders *AdyenPaymentDataRelationshipsOrder `json:"orders,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Tags *AddressDataRelationshipsTags `json:"tags,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewOrderSubscriptionDataRelationships instantiates a new OrderSubscriptionDataRelationships object @@ -275,41 +275,6 @@ func (o *OrderSubscriptionDataRelationships) SetOrderFactories(v OrderSubscripti o.OrderFactories = &v } -// GetOrderCopies returns the OrderCopies field value if set, zero value otherwise. -// Deprecated -func (o *OrderSubscriptionDataRelationships) GetOrderCopies() OrderSubscriptionDataRelationshipsOrderCopies { - if o == nil || IsNil(o.OrderCopies) { - var ret OrderSubscriptionDataRelationshipsOrderCopies - return ret - } - return *o.OrderCopies -} - -// GetOrderCopiesOk returns a tuple with the OrderCopies field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *OrderSubscriptionDataRelationships) GetOrderCopiesOk() (*OrderSubscriptionDataRelationshipsOrderCopies, bool) { - if o == nil || IsNil(o.OrderCopies) { - return nil, false - } - return o.OrderCopies, true -} - -// HasOrderCopies returns a boolean if a field has been set. -func (o *OrderSubscriptionDataRelationships) HasOrderCopies() bool { - if o != nil && !IsNil(o.OrderCopies) { - return true - } - - return false -} - -// SetOrderCopies gets a reference to the given OrderSubscriptionDataRelationshipsOrderCopies and assigns it to the OrderCopies field. -// Deprecated -func (o *OrderSubscriptionDataRelationships) SetOrderCopies(v OrderSubscriptionDataRelationshipsOrderCopies) { - o.OrderCopies = &v -} - // GetRecurringOrderCopies returns the RecurringOrderCopies field value if set, zero value otherwise. func (o *OrderSubscriptionDataRelationships) GetRecurringOrderCopies() OrderSubscriptionDataRelationshipsRecurringOrderCopies { if o == nil || IsNil(o.RecurringOrderCopies) { @@ -375,9 +340,9 @@ func (o *OrderSubscriptionDataRelationships) SetOrders(v AdyenPaymentDataRelatio } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *OrderSubscriptionDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { +func (o *OrderSubscriptionDataRelationships) GetEvents() AddressDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents + var ret AddressDataRelationshipsEvents return ret } return *o.Events @@ -385,7 +350,7 @@ func (o *OrderSubscriptionDataRelationships) GetEvents() AuthorizationDataRelati // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *OrderSubscriptionDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { +func (o *OrderSubscriptionDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -401,11 +366,75 @@ func (o *OrderSubscriptionDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *OrderSubscriptionDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *OrderSubscriptionDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { o.Events = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *OrderSubscriptionDataRelationships) GetTags() AddressDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSubscriptionDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *OrderSubscriptionDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressDataRelationshipsTags and assigns it to the Tags field. +func (o *OrderSubscriptionDataRelationships) SetTags(v AddressDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *OrderSubscriptionDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSubscriptionDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *OrderSubscriptionDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *OrderSubscriptionDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o OrderSubscriptionDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -437,9 +466,6 @@ func (o OrderSubscriptionDataRelationships) ToMap() (map[string]interface{}, err if !IsNil(o.OrderFactories) { toSerialize["order_factories"] = o.OrderFactories } - if !IsNil(o.OrderCopies) { - toSerialize["order_copies"] = o.OrderCopies - } if !IsNil(o.RecurringOrderCopies) { toSerialize["recurring_order_copies"] = o.RecurringOrderCopies } @@ -449,6 +475,12 @@ func (o OrderSubscriptionDataRelationships) ToMap() (map[string]interface{}, err if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_order_subscription_data_relationships_order_copies.go b/api/model_order_subscription_data_relationships_order_copies.go deleted file mode 100644 index c02a74ba..00000000 --- a/api/model_order_subscription_data_relationships_order_copies.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the OrderSubscriptionDataRelationshipsOrderCopies type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &OrderSubscriptionDataRelationshipsOrderCopies{} - -// OrderSubscriptionDataRelationshipsOrderCopies struct for OrderSubscriptionDataRelationshipsOrderCopies -type OrderSubscriptionDataRelationshipsOrderCopies struct { - Data *OrderSubscriptionDataRelationshipsOrderCopiesData `json:"data,omitempty"` -} - -// NewOrderSubscriptionDataRelationshipsOrderCopies instantiates a new OrderSubscriptionDataRelationshipsOrderCopies object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewOrderSubscriptionDataRelationshipsOrderCopies() *OrderSubscriptionDataRelationshipsOrderCopies { - this := OrderSubscriptionDataRelationshipsOrderCopies{} - return &this -} - -// NewOrderSubscriptionDataRelationshipsOrderCopiesWithDefaults instantiates a new OrderSubscriptionDataRelationshipsOrderCopies object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewOrderSubscriptionDataRelationshipsOrderCopiesWithDefaults() *OrderSubscriptionDataRelationshipsOrderCopies { - this := OrderSubscriptionDataRelationshipsOrderCopies{} - return &this -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *OrderSubscriptionDataRelationshipsOrderCopies) GetData() OrderSubscriptionDataRelationshipsOrderCopiesData { - if o == nil || IsNil(o.Data) { - var ret OrderSubscriptionDataRelationshipsOrderCopiesData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderSubscriptionDataRelationshipsOrderCopies) GetDataOk() (*OrderSubscriptionDataRelationshipsOrderCopiesData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *OrderSubscriptionDataRelationshipsOrderCopies) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given OrderSubscriptionDataRelationshipsOrderCopiesData and assigns it to the Data field. -func (o *OrderSubscriptionDataRelationshipsOrderCopies) SetData(v OrderSubscriptionDataRelationshipsOrderCopiesData) { - o.Data = &v -} - -func (o OrderSubscriptionDataRelationshipsOrderCopies) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o OrderSubscriptionDataRelationshipsOrderCopies) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableOrderSubscriptionDataRelationshipsOrderCopies struct { - value *OrderSubscriptionDataRelationshipsOrderCopies - isSet bool -} - -func (v NullableOrderSubscriptionDataRelationshipsOrderCopies) Get() *OrderSubscriptionDataRelationshipsOrderCopies { - return v.value -} - -func (v *NullableOrderSubscriptionDataRelationshipsOrderCopies) Set(val *OrderSubscriptionDataRelationshipsOrderCopies) { - v.value = val - v.isSet = true -} - -func (v NullableOrderSubscriptionDataRelationshipsOrderCopies) IsSet() bool { - return v.isSet -} - -func (v *NullableOrderSubscriptionDataRelationshipsOrderCopies) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrderSubscriptionDataRelationshipsOrderCopies(val *OrderSubscriptionDataRelationshipsOrderCopies) *NullableOrderSubscriptionDataRelationshipsOrderCopies { - return &NullableOrderSubscriptionDataRelationshipsOrderCopies{value: val, isSet: true} -} - -func (v NullableOrderSubscriptionDataRelationshipsOrderCopies) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOrderSubscriptionDataRelationshipsOrderCopies) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_order_subscription_data_relationships_order_factories.go b/api/model_order_subscription_data_relationships_order_factories.go index 65c8a730..3ce61413 100644 --- a/api/model_order_subscription_data_relationships_order_factories.go +++ b/api/model_order_subscription_data_relationships_order_factories.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_data_relationships_order_factories_data.go b/api/model_order_subscription_data_relationships_order_factories_data.go index d6601f96..cf8151f2 100644 --- a/api/model_order_subscription_data_relationships_order_factories_data.go +++ b/api/model_order_subscription_data_relationships_order_factories_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_data_relationships_order_subscription_items.go b/api/model_order_subscription_data_relationships_order_subscription_items.go index b819f041..d8a51cb0 100644 --- a/api/model_order_subscription_data_relationships_order_subscription_items.go +++ b/api/model_order_subscription_data_relationships_order_subscription_items.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_data_relationships_order_subscription_items_data.go b/api/model_order_subscription_data_relationships_order_subscription_items_data.go index 7c73aa3e..bef0a367 100644 --- a/api/model_order_subscription_data_relationships_order_subscription_items_data.go +++ b/api/model_order_subscription_data_relationships_order_subscription_items_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_data_relationships_recurring_order_copies.go b/api/model_order_subscription_data_relationships_recurring_order_copies.go index de4f903f..b6383e1e 100644 --- a/api/model_order_subscription_data_relationships_recurring_order_copies.go +++ b/api/model_order_subscription_data_relationships_recurring_order_copies.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_data_relationships_recurring_order_copies_data.go b/api/model_order_subscription_data_relationships_recurring_order_copies_data.go index d9cf3dd6..6a8e72c4 100644 --- a/api/model_order_subscription_data_relationships_recurring_order_copies_data.go +++ b/api/model_order_subscription_data_relationships_recurring_order_copies_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_item.go b/api/model_order_subscription_item.go index 58ac0ee7..79ff3cb7 100644 --- a/api/model_order_subscription_item.go +++ b/api/model_order_subscription_item.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_item_create.go b/api/model_order_subscription_item_create.go index 2b244d39..9a5ab7e1 100644 --- a/api/model_order_subscription_item_create.go +++ b/api/model_order_subscription_item_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_item_create_data.go b/api/model_order_subscription_item_create_data.go index c7be99df..c639628c 100644 --- a/api/model_order_subscription_item_create_data.go +++ b/api/model_order_subscription_item_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_item_create_data_relationships.go b/api/model_order_subscription_item_create_data_relationships.go index f2e9deb5..147761b1 100644 --- a/api/model_order_subscription_item_create_data_relationships.go +++ b/api/model_order_subscription_item_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,6 +22,9 @@ var _ MappedNullable = &OrderSubscriptionItemCreateDataRelationships{} type OrderSubscriptionItemCreateDataRelationships struct { OrderSubscription OrderSubscriptionItemCreateDataRelationshipsOrderSubscription `json:"order_subscription"` Item OrderSubscriptionItemCreateDataRelationshipsItem `json:"item"` + Sku *InStockSubscriptionCreateDataRelationshipsSku `json:"sku,omitempty"` + Bundle *OrderSubscriptionItemCreateDataRelationshipsBundle `json:"bundle,omitempty"` + Adjustment *OrderSubscriptionItemCreateDataRelationshipsAdjustment `json:"adjustment,omitempty"` } // NewOrderSubscriptionItemCreateDataRelationships instantiates a new OrderSubscriptionItemCreateDataRelationships object @@ -91,6 +94,102 @@ func (o *OrderSubscriptionItemCreateDataRelationships) SetItem(v OrderSubscripti o.Item = v } +// GetSku returns the Sku field value if set, zero value otherwise. +func (o *OrderSubscriptionItemCreateDataRelationships) GetSku() InStockSubscriptionCreateDataRelationshipsSku { + if o == nil || IsNil(o.Sku) { + var ret InStockSubscriptionCreateDataRelationshipsSku + return ret + } + return *o.Sku +} + +// GetSkuOk returns a tuple with the Sku field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSubscriptionItemCreateDataRelationships) GetSkuOk() (*InStockSubscriptionCreateDataRelationshipsSku, bool) { + if o == nil || IsNil(o.Sku) { + return nil, false + } + return o.Sku, true +} + +// HasSku returns a boolean if a field has been set. +func (o *OrderSubscriptionItemCreateDataRelationships) HasSku() bool { + if o != nil && !IsNil(o.Sku) { + return true + } + + return false +} + +// SetSku gets a reference to the given InStockSubscriptionCreateDataRelationshipsSku and assigns it to the Sku field. +func (o *OrderSubscriptionItemCreateDataRelationships) SetSku(v InStockSubscriptionCreateDataRelationshipsSku) { + o.Sku = &v +} + +// GetBundle returns the Bundle field value if set, zero value otherwise. +func (o *OrderSubscriptionItemCreateDataRelationships) GetBundle() OrderSubscriptionItemCreateDataRelationshipsBundle { + if o == nil || IsNil(o.Bundle) { + var ret OrderSubscriptionItemCreateDataRelationshipsBundle + return ret + } + return *o.Bundle +} + +// GetBundleOk returns a tuple with the Bundle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSubscriptionItemCreateDataRelationships) GetBundleOk() (*OrderSubscriptionItemCreateDataRelationshipsBundle, bool) { + if o == nil || IsNil(o.Bundle) { + return nil, false + } + return o.Bundle, true +} + +// HasBundle returns a boolean if a field has been set. +func (o *OrderSubscriptionItemCreateDataRelationships) HasBundle() bool { + if o != nil && !IsNil(o.Bundle) { + return true + } + + return false +} + +// SetBundle gets a reference to the given OrderSubscriptionItemCreateDataRelationshipsBundle and assigns it to the Bundle field. +func (o *OrderSubscriptionItemCreateDataRelationships) SetBundle(v OrderSubscriptionItemCreateDataRelationshipsBundle) { + o.Bundle = &v +} + +// GetAdjustment returns the Adjustment field value if set, zero value otherwise. +func (o *OrderSubscriptionItemCreateDataRelationships) GetAdjustment() OrderSubscriptionItemCreateDataRelationshipsAdjustment { + if o == nil || IsNil(o.Adjustment) { + var ret OrderSubscriptionItemCreateDataRelationshipsAdjustment + return ret + } + return *o.Adjustment +} + +// GetAdjustmentOk returns a tuple with the Adjustment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSubscriptionItemCreateDataRelationships) GetAdjustmentOk() (*OrderSubscriptionItemCreateDataRelationshipsAdjustment, bool) { + if o == nil || IsNil(o.Adjustment) { + return nil, false + } + return o.Adjustment, true +} + +// HasAdjustment returns a boolean if a field has been set. +func (o *OrderSubscriptionItemCreateDataRelationships) HasAdjustment() bool { + if o != nil && !IsNil(o.Adjustment) { + return true + } + + return false +} + +// SetAdjustment gets a reference to the given OrderSubscriptionItemCreateDataRelationshipsAdjustment and assigns it to the Adjustment field. +func (o *OrderSubscriptionItemCreateDataRelationships) SetAdjustment(v OrderSubscriptionItemCreateDataRelationshipsAdjustment) { + o.Adjustment = &v +} + func (o OrderSubscriptionItemCreateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -103,6 +202,15 @@ func (o OrderSubscriptionItemCreateDataRelationships) ToMap() (map[string]interf toSerialize := map[string]interface{}{} toSerialize["order_subscription"] = o.OrderSubscription toSerialize["item"] = o.Item + if !IsNil(o.Sku) { + toSerialize["sku"] = o.Sku + } + if !IsNil(o.Bundle) { + toSerialize["bundle"] = o.Bundle + } + if !IsNil(o.Adjustment) { + toSerialize["adjustment"] = o.Adjustment + } return toSerialize, nil } diff --git a/api/model_order_subscription_item_create_data_relationships_adjustment.go b/api/model_order_subscription_item_create_data_relationships_adjustment.go new file mode 100644 index 00000000..e378665c --- /dev/null +++ b/api/model_order_subscription_item_create_data_relationships_adjustment.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the OrderSubscriptionItemCreateDataRelationshipsAdjustment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrderSubscriptionItemCreateDataRelationshipsAdjustment{} + +// OrderSubscriptionItemCreateDataRelationshipsAdjustment struct for OrderSubscriptionItemCreateDataRelationshipsAdjustment +type OrderSubscriptionItemCreateDataRelationshipsAdjustment struct { + Data LineItemDataRelationshipsAdjustmentData `json:"data"` +} + +// NewOrderSubscriptionItemCreateDataRelationshipsAdjustment instantiates a new OrderSubscriptionItemCreateDataRelationshipsAdjustment object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrderSubscriptionItemCreateDataRelationshipsAdjustment(data LineItemDataRelationshipsAdjustmentData) *OrderSubscriptionItemCreateDataRelationshipsAdjustment { + this := OrderSubscriptionItemCreateDataRelationshipsAdjustment{} + this.Data = data + return &this +} + +// NewOrderSubscriptionItemCreateDataRelationshipsAdjustmentWithDefaults instantiates a new OrderSubscriptionItemCreateDataRelationshipsAdjustment object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrderSubscriptionItemCreateDataRelationshipsAdjustmentWithDefaults() *OrderSubscriptionItemCreateDataRelationshipsAdjustment { + this := OrderSubscriptionItemCreateDataRelationshipsAdjustment{} + return &this +} + +// GetData returns the Data field value +func (o *OrderSubscriptionItemCreateDataRelationshipsAdjustment) GetData() LineItemDataRelationshipsAdjustmentData { + if o == nil { + var ret LineItemDataRelationshipsAdjustmentData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *OrderSubscriptionItemCreateDataRelationshipsAdjustment) GetDataOk() (*LineItemDataRelationshipsAdjustmentData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *OrderSubscriptionItemCreateDataRelationshipsAdjustment) SetData(v LineItemDataRelationshipsAdjustmentData) { + o.Data = v +} + +func (o OrderSubscriptionItemCreateDataRelationshipsAdjustment) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrderSubscriptionItemCreateDataRelationshipsAdjustment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableOrderSubscriptionItemCreateDataRelationshipsAdjustment struct { + value *OrderSubscriptionItemCreateDataRelationshipsAdjustment + isSet bool +} + +func (v NullableOrderSubscriptionItemCreateDataRelationshipsAdjustment) Get() *OrderSubscriptionItemCreateDataRelationshipsAdjustment { + return v.value +} + +func (v *NullableOrderSubscriptionItemCreateDataRelationshipsAdjustment) Set(val *OrderSubscriptionItemCreateDataRelationshipsAdjustment) { + v.value = val + v.isSet = true +} + +func (v NullableOrderSubscriptionItemCreateDataRelationshipsAdjustment) IsSet() bool { + return v.isSet +} + +func (v *NullableOrderSubscriptionItemCreateDataRelationshipsAdjustment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrderSubscriptionItemCreateDataRelationshipsAdjustment(val *OrderSubscriptionItemCreateDataRelationshipsAdjustment) *NullableOrderSubscriptionItemCreateDataRelationshipsAdjustment { + return &NullableOrderSubscriptionItemCreateDataRelationshipsAdjustment{value: val, isSet: true} +} + +func (v NullableOrderSubscriptionItemCreateDataRelationshipsAdjustment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrderSubscriptionItemCreateDataRelationshipsAdjustment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_order_subscription_item_create_data_relationships_bundle.go b/api/model_order_subscription_item_create_data_relationships_bundle.go new file mode 100644 index 00000000..0276f034 --- /dev/null +++ b/api/model_order_subscription_item_create_data_relationships_bundle.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the OrderSubscriptionItemCreateDataRelationshipsBundle type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrderSubscriptionItemCreateDataRelationshipsBundle{} + +// OrderSubscriptionItemCreateDataRelationshipsBundle struct for OrderSubscriptionItemCreateDataRelationshipsBundle +type OrderSubscriptionItemCreateDataRelationshipsBundle struct { + Data LineItemDataRelationshipsBundleData `json:"data"` +} + +// NewOrderSubscriptionItemCreateDataRelationshipsBundle instantiates a new OrderSubscriptionItemCreateDataRelationshipsBundle object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrderSubscriptionItemCreateDataRelationshipsBundle(data LineItemDataRelationshipsBundleData) *OrderSubscriptionItemCreateDataRelationshipsBundle { + this := OrderSubscriptionItemCreateDataRelationshipsBundle{} + this.Data = data + return &this +} + +// NewOrderSubscriptionItemCreateDataRelationshipsBundleWithDefaults instantiates a new OrderSubscriptionItemCreateDataRelationshipsBundle object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrderSubscriptionItemCreateDataRelationshipsBundleWithDefaults() *OrderSubscriptionItemCreateDataRelationshipsBundle { + this := OrderSubscriptionItemCreateDataRelationshipsBundle{} + return &this +} + +// GetData returns the Data field value +func (o *OrderSubscriptionItemCreateDataRelationshipsBundle) GetData() LineItemDataRelationshipsBundleData { + if o == nil { + var ret LineItemDataRelationshipsBundleData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *OrderSubscriptionItemCreateDataRelationshipsBundle) GetDataOk() (*LineItemDataRelationshipsBundleData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *OrderSubscriptionItemCreateDataRelationshipsBundle) SetData(v LineItemDataRelationshipsBundleData) { + o.Data = v +} + +func (o OrderSubscriptionItemCreateDataRelationshipsBundle) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrderSubscriptionItemCreateDataRelationshipsBundle) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableOrderSubscriptionItemCreateDataRelationshipsBundle struct { + value *OrderSubscriptionItemCreateDataRelationshipsBundle + isSet bool +} + +func (v NullableOrderSubscriptionItemCreateDataRelationshipsBundle) Get() *OrderSubscriptionItemCreateDataRelationshipsBundle { + return v.value +} + +func (v *NullableOrderSubscriptionItemCreateDataRelationshipsBundle) Set(val *OrderSubscriptionItemCreateDataRelationshipsBundle) { + v.value = val + v.isSet = true +} + +func (v NullableOrderSubscriptionItemCreateDataRelationshipsBundle) IsSet() bool { + return v.isSet +} + +func (v *NullableOrderSubscriptionItemCreateDataRelationshipsBundle) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrderSubscriptionItemCreateDataRelationshipsBundle(val *OrderSubscriptionItemCreateDataRelationshipsBundle) *NullableOrderSubscriptionItemCreateDataRelationshipsBundle { + return &NullableOrderSubscriptionItemCreateDataRelationshipsBundle{value: val, isSet: true} +} + +func (v NullableOrderSubscriptionItemCreateDataRelationshipsBundle) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrderSubscriptionItemCreateDataRelationshipsBundle) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_order_subscription_item_create_data_relationships_item.go b/api/model_order_subscription_item_create_data_relationships_item.go index 8628658f..66bc96d4 100644 --- a/api/model_order_subscription_item_create_data_relationships_item.go +++ b/api/model_order_subscription_item_create_data_relationships_item.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_item_create_data_relationships_order_subscription.go b/api/model_order_subscription_item_create_data_relationships_order_subscription.go index a508380c..1010903d 100644 --- a/api/model_order_subscription_item_create_data_relationships_order_subscription.go +++ b/api/model_order_subscription_item_create_data_relationships_order_subscription.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_item_data.go b/api/model_order_subscription_item_data.go index d6956052..f0637be5 100644 --- a/api/model_order_subscription_item_data.go +++ b/api/model_order_subscription_item_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_item_data_relationships.go b/api/model_order_subscription_item_data_relationships.go index 678a1b56..738b0970 100644 --- a/api/model_order_subscription_item_data_relationships.go +++ b/api/model_order_subscription_item_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,6 +22,10 @@ var _ MappedNullable = &OrderSubscriptionItemDataRelationships{} type OrderSubscriptionItemDataRelationships struct { OrderSubscription *CustomerDataRelationshipsOrderSubscriptions `json:"order_subscription,omitempty"` Item *OrderSubscriptionItemDataRelationshipsItem `json:"item,omitempty"` + Sku *BundleDataRelationshipsSkus `json:"sku,omitempty"` + Bundle *LineItemDataRelationshipsBundle `json:"bundle,omitempty"` + Adjustment *LineItemDataRelationshipsAdjustment `json:"adjustment,omitempty"` + SourceLineItem *LineItemOptionDataRelationshipsLineItem `json:"source_line_item,omitempty"` } // NewOrderSubscriptionItemDataRelationships instantiates a new OrderSubscriptionItemDataRelationships object @@ -105,6 +109,134 @@ func (o *OrderSubscriptionItemDataRelationships) SetItem(v OrderSubscriptionItem o.Item = &v } +// GetSku returns the Sku field value if set, zero value otherwise. +func (o *OrderSubscriptionItemDataRelationships) GetSku() BundleDataRelationshipsSkus { + if o == nil || IsNil(o.Sku) { + var ret BundleDataRelationshipsSkus + return ret + } + return *o.Sku +} + +// GetSkuOk returns a tuple with the Sku field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSubscriptionItemDataRelationships) GetSkuOk() (*BundleDataRelationshipsSkus, bool) { + if o == nil || IsNil(o.Sku) { + return nil, false + } + return o.Sku, true +} + +// HasSku returns a boolean if a field has been set. +func (o *OrderSubscriptionItemDataRelationships) HasSku() bool { + if o != nil && !IsNil(o.Sku) { + return true + } + + return false +} + +// SetSku gets a reference to the given BundleDataRelationshipsSkus and assigns it to the Sku field. +func (o *OrderSubscriptionItemDataRelationships) SetSku(v BundleDataRelationshipsSkus) { + o.Sku = &v +} + +// GetBundle returns the Bundle field value if set, zero value otherwise. +func (o *OrderSubscriptionItemDataRelationships) GetBundle() LineItemDataRelationshipsBundle { + if o == nil || IsNil(o.Bundle) { + var ret LineItemDataRelationshipsBundle + return ret + } + return *o.Bundle +} + +// GetBundleOk returns a tuple with the Bundle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSubscriptionItemDataRelationships) GetBundleOk() (*LineItemDataRelationshipsBundle, bool) { + if o == nil || IsNil(o.Bundle) { + return nil, false + } + return o.Bundle, true +} + +// HasBundle returns a boolean if a field has been set. +func (o *OrderSubscriptionItemDataRelationships) HasBundle() bool { + if o != nil && !IsNil(o.Bundle) { + return true + } + + return false +} + +// SetBundle gets a reference to the given LineItemDataRelationshipsBundle and assigns it to the Bundle field. +func (o *OrderSubscriptionItemDataRelationships) SetBundle(v LineItemDataRelationshipsBundle) { + o.Bundle = &v +} + +// GetAdjustment returns the Adjustment field value if set, zero value otherwise. +func (o *OrderSubscriptionItemDataRelationships) GetAdjustment() LineItemDataRelationshipsAdjustment { + if o == nil || IsNil(o.Adjustment) { + var ret LineItemDataRelationshipsAdjustment + return ret + } + return *o.Adjustment +} + +// GetAdjustmentOk returns a tuple with the Adjustment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSubscriptionItemDataRelationships) GetAdjustmentOk() (*LineItemDataRelationshipsAdjustment, bool) { + if o == nil || IsNil(o.Adjustment) { + return nil, false + } + return o.Adjustment, true +} + +// HasAdjustment returns a boolean if a field has been set. +func (o *OrderSubscriptionItemDataRelationships) HasAdjustment() bool { + if o != nil && !IsNil(o.Adjustment) { + return true + } + + return false +} + +// SetAdjustment gets a reference to the given LineItemDataRelationshipsAdjustment and assigns it to the Adjustment field. +func (o *OrderSubscriptionItemDataRelationships) SetAdjustment(v LineItemDataRelationshipsAdjustment) { + o.Adjustment = &v +} + +// GetSourceLineItem returns the SourceLineItem field value if set, zero value otherwise. +func (o *OrderSubscriptionItemDataRelationships) GetSourceLineItem() LineItemOptionDataRelationshipsLineItem { + if o == nil || IsNil(o.SourceLineItem) { + var ret LineItemOptionDataRelationshipsLineItem + return ret + } + return *o.SourceLineItem +} + +// GetSourceLineItemOk returns a tuple with the SourceLineItem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSubscriptionItemDataRelationships) GetSourceLineItemOk() (*LineItemOptionDataRelationshipsLineItem, bool) { + if o == nil || IsNil(o.SourceLineItem) { + return nil, false + } + return o.SourceLineItem, true +} + +// HasSourceLineItem returns a boolean if a field has been set. +func (o *OrderSubscriptionItemDataRelationships) HasSourceLineItem() bool { + if o != nil && !IsNil(o.SourceLineItem) { + return true + } + + return false +} + +// SetSourceLineItem gets a reference to the given LineItemOptionDataRelationshipsLineItem and assigns it to the SourceLineItem field. +func (o *OrderSubscriptionItemDataRelationships) SetSourceLineItem(v LineItemOptionDataRelationshipsLineItem) { + o.SourceLineItem = &v +} + func (o OrderSubscriptionItemDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +253,18 @@ func (o OrderSubscriptionItemDataRelationships) ToMap() (map[string]interface{}, if !IsNil(o.Item) { toSerialize["item"] = o.Item } + if !IsNil(o.Sku) { + toSerialize["sku"] = o.Sku + } + if !IsNil(o.Bundle) { + toSerialize["bundle"] = o.Bundle + } + if !IsNil(o.Adjustment) { + toSerialize["adjustment"] = o.Adjustment + } + if !IsNil(o.SourceLineItem) { + toSerialize["source_line_item"] = o.SourceLineItem + } return toSerialize, nil } diff --git a/api/model_order_subscription_item_data_relationships_item.go b/api/model_order_subscription_item_data_relationships_item.go index 2ab8b299..86ac826a 100644 --- a/api/model_order_subscription_item_data_relationships_item.go +++ b/api/model_order_subscription_item_data_relationships_item.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_item_data_relationships_item_data.go b/api/model_order_subscription_item_data_relationships_item_data.go index 35ae54e2..cc1238b6 100644 --- a/api/model_order_subscription_item_data_relationships_item_data.go +++ b/api/model_order_subscription_item_data_relationships_item_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_item_update.go b/api/model_order_subscription_item_update.go index 39ab185b..e9486451 100644 --- a/api/model_order_subscription_item_update.go +++ b/api/model_order_subscription_item_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_item_update_data.go b/api/model_order_subscription_item_update_data.go index e39078eb..90b43d64 100644 --- a/api/model_order_subscription_item_update_data.go +++ b/api/model_order_subscription_item_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_update.go b/api/model_order_subscription_update.go index 110fbf31..69faf3ab 100644 --- a/api/model_order_subscription_update.go +++ b/api/model_order_subscription_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_update_data.go b/api/model_order_subscription_update_data.go index e81a2789..c684916a 100644 --- a/api/model_order_subscription_update_data.go +++ b/api/model_order_subscription_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_subscription_update_data_relationships.go b/api/model_order_subscription_update_data_relationships.go index fb2adabd..cd1058f7 100644 --- a/api/model_order_subscription_update_data_relationships.go +++ b/api/model_order_subscription_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &OrderSubscriptionUpdateDataRelationships{} // OrderSubscriptionUpdateDataRelationships struct for OrderSubscriptionUpdateDataRelationships type OrderSubscriptionUpdateDataRelationships struct { CustomerPaymentSource *OrderSubscriptionUpdateDataRelationshipsCustomerPaymentSource `json:"customer_payment_source,omitempty"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` } // NewOrderSubscriptionUpdateDataRelationships instantiates a new OrderSubscriptionUpdateDataRelationships object @@ -72,6 +73,38 @@ func (o *OrderSubscriptionUpdateDataRelationships) SetCustomerPaymentSource(v Or o.CustomerPaymentSource = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *OrderSubscriptionUpdateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrderSubscriptionUpdateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *OrderSubscriptionUpdateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *OrderSubscriptionUpdateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + func (o OrderSubscriptionUpdateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +118,9 @@ func (o OrderSubscriptionUpdateDataRelationships) ToMap() (map[string]interface{ if !IsNil(o.CustomerPaymentSource) { toSerialize["customer_payment_source"] = o.CustomerPaymentSource } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_order_subscription_update_data_relationships_customer_payment_source.go b/api/model_order_subscription_update_data_relationships_customer_payment_source.go index 4c4fb706..257e5c45 100644 --- a/api/model_order_subscription_update_data_relationships_customer_payment_source.go +++ b/api/model_order_subscription_update_data_relationships_customer_payment_source.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_update.go b/api/model_order_update.go index e39b9b88..7ed8a4af 100644 --- a/api/model_order_update.go +++ b/api/model_order_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_update_data.go b/api/model_order_update_data.go index 904e0455..8815d019 100644 --- a/api/model_order_update_data.go +++ b/api/model_order_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_order_validation_rule_data.go b/api/model_order_validation_rule_data.go deleted file mode 100644 index 4a16aa83..00000000 --- a/api/model_order_validation_rule_data.go +++ /dev/null @@ -1,184 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the OrderValidationRuleData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &OrderValidationRuleData{} - -// OrderValidationRuleData struct for OrderValidationRuleData -type OrderValidationRuleData struct { - // The resource's type - Type interface{} `json:"type"` - Attributes GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes `json:"attributes"` - Relationships *BillingInfoValidationRuleDataRelationships `json:"relationships,omitempty"` -} - -// NewOrderValidationRuleData instantiates a new OrderValidationRuleData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewOrderValidationRuleData(type_ interface{}, attributes GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) *OrderValidationRuleData { - this := OrderValidationRuleData{} - this.Type = type_ - this.Attributes = attributes - return &this -} - -// NewOrderValidationRuleDataWithDefaults instantiates a new OrderValidationRuleData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewOrderValidationRuleDataWithDefaults() *OrderValidationRuleData { - this := OrderValidationRuleData{} - return &this -} - -// GetType returns the Type field value -// If the value is explicit nil, the zero value for interface{} will be returned -func (o *OrderValidationRuleData) GetType() interface{} { - if o == nil { - var ret interface{} - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *OrderValidationRuleData) GetTypeOk() (*interface{}, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *OrderValidationRuleData) SetType(v interface{}) { - o.Type = v -} - -// GetAttributes returns the Attributes field value -func (o *OrderValidationRuleData) GetAttributes() GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes { - if o == nil { - var ret GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes - return ret - } - - return o.Attributes -} - -// GetAttributesOk returns a tuple with the Attributes field value -// and a boolean to check if the value has been set. -func (o *OrderValidationRuleData) GetAttributesOk() (*GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool) { - if o == nil { - return nil, false - } - return &o.Attributes, true -} - -// SetAttributes sets field value -func (o *OrderValidationRuleData) SetAttributes(v GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) { - o.Attributes = v -} - -// GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *OrderValidationRuleData) GetRelationships() BillingInfoValidationRuleDataRelationships { - if o == nil || IsNil(o.Relationships) { - var ret BillingInfoValidationRuleDataRelationships - return ret - } - return *o.Relationships -} - -// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *OrderValidationRuleData) GetRelationshipsOk() (*BillingInfoValidationRuleDataRelationships, bool) { - if o == nil || IsNil(o.Relationships) { - return nil, false - } - return o.Relationships, true -} - -// HasRelationships returns a boolean if a field has been set. -func (o *OrderValidationRuleData) HasRelationships() bool { - if o != nil && !IsNil(o.Relationships) { - return true - } - - return false -} - -// SetRelationships gets a reference to the given BillingInfoValidationRuleDataRelationships and assigns it to the Relationships field. -func (o *OrderValidationRuleData) SetRelationships(v BillingInfoValidationRuleDataRelationships) { - o.Relationships = &v -} - -func (o OrderValidationRuleData) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o OrderValidationRuleData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if o.Type != nil { - toSerialize["type"] = o.Type - } - toSerialize["attributes"] = o.Attributes - if !IsNil(o.Relationships) { - toSerialize["relationships"] = o.Relationships - } - return toSerialize, nil -} - -type NullableOrderValidationRuleData struct { - value *OrderValidationRuleData - isSet bool -} - -func (v NullableOrderValidationRuleData) Get() *OrderValidationRuleData { - return v.value -} - -func (v *NullableOrderValidationRuleData) Set(val *OrderValidationRuleData) { - v.value = val - v.isSet = true -} - -func (v NullableOrderValidationRuleData) IsSet() bool { - return v.isSet -} - -func (v *NullableOrderValidationRuleData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOrderValidationRuleData(val *OrderValidationRuleData) *NullableOrderValidationRuleData { - return &NullableOrderValidationRuleData{value: val, isSet: true} -} - -func (v NullableOrderValidationRuleData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOrderValidationRuleData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_organization.go b/api/model_organization.go index 239a1391..6583c389 100644 --- a/api/model_organization.go +++ b/api/model_organization.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_organization_data.go b/api/model_organization_data.go index 639e5904..e59c9d40 100644 --- a/api/model_organization_data.go +++ b/api/model_organization_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_package.go b/api/model_package.go index b1f5561c..0d032da6 100644 --- a/api/model_package.go +++ b/api/model_package.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_package_create.go b/api/model_package_create.go index f4adc3fc..3ac1c743 100644 --- a/api/model_package_create.go +++ b/api/model_package_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_package_create_data.go b/api/model_package_create_data.go index e88e11d0..cf9f2aea 100644 --- a/api/model_package_create_data.go +++ b/api/model_package_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_package_create_data_relationships.go b/api/model_package_create_data_relationships.go index f21d0be5..6efa4e59 100644 --- a/api/model_package_create_data_relationships.go +++ b/api/model_package_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_package_data.go b/api/model_package_data.go index 3a563ab4..94590ae0 100644 --- a/api/model_package_data.go +++ b/api/model_package_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_package_data_relationships.go b/api/model_package_data_relationships.go index d4abe0e4..35c41cfa 100644 --- a/api/model_package_data_relationships.go +++ b/api/model_package_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,7 +22,8 @@ var _ MappedNullable = &PackageDataRelationships{} type PackageDataRelationships struct { StockLocation *DeliveryLeadTimeDataRelationshipsStockLocation `json:"stock_location,omitempty"` Parcels *PackageDataRelationshipsParcels `json:"parcels,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewPackageDataRelationships instantiates a new PackageDataRelationships object @@ -107,9 +108,9 @@ func (o *PackageDataRelationships) SetParcels(v PackageDataRelationshipsParcels) } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *PackageDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *PackageDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -117,7 +118,7 @@ func (o *PackageDataRelationships) GetAttachments() AvalaraAccountDataRelationsh // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PackageDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *PackageDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -133,11 +134,43 @@ func (o *PackageDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *PackageDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *PackageDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *PackageDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *PackageDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *PackageDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o PackageDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -157,6 +190,9 @@ func (o PackageDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_package_data_relationships_parcels.go b/api/model_package_data_relationships_parcels.go index 1e3ec38a..fd1a5354 100644 --- a/api/model_package_data_relationships_parcels.go +++ b/api/model_package_data_relationships_parcels.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_package_data_relationships_parcels_data.go b/api/model_package_data_relationships_parcels_data.go index 503011dc..f085dd0b 100644 --- a/api/model_package_data_relationships_parcels_data.go +++ b/api/model_package_data_relationships_parcels_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_package_update.go b/api/model_package_update.go index d1d77b59..b2caaf6c 100644 --- a/api/model_package_update.go +++ b/api/model_package_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_package_update_data.go b/api/model_package_update_data.go index 91bd06b1..517fca0c 100644 --- a/api/model_package_update_data.go +++ b/api/model_package_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_package_update_data_relationships.go b/api/model_package_update_data_relationships.go index 43863697..08b3528f 100644 --- a/api/model_package_update_data_relationships.go +++ b/api/model_package_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel.go b/api/model_parcel.go index 9e57632f..df719c70 100644 --- a/api/model_parcel.go +++ b/api/model_parcel.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_create.go b/api/model_parcel_create.go index ecad1773..994fecee 100644 --- a/api/model_parcel_create.go +++ b/api/model_parcel_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_create_data.go b/api/model_parcel_create_data.go index dff110b3..d8f4db12 100644 --- a/api/model_parcel_create_data.go +++ b/api/model_parcel_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_create_data_relationships.go b/api/model_parcel_create_data_relationships.go index f5a85c67..a02e2e15 100644 --- a/api/model_parcel_create_data_relationships.go +++ b/api/model_parcel_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_create_data_relationships_package.go b/api/model_parcel_create_data_relationships_package.go index c0ae7c55..23834dc9 100644 --- a/api/model_parcel_create_data_relationships_package.go +++ b/api/model_parcel_create_data_relationships_package.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_create_data_relationships_shipment.go b/api/model_parcel_create_data_relationships_shipment.go index 0e15f14a..ffcb3646 100644 --- a/api/model_parcel_create_data_relationships_shipment.go +++ b/api/model_parcel_create_data_relationships_shipment.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,14 +20,14 @@ var _ MappedNullable = &ParcelCreateDataRelationshipsShipment{} // ParcelCreateDataRelationshipsShipment struct for ParcelCreateDataRelationshipsShipment type ParcelCreateDataRelationshipsShipment struct { - Data OrderDataRelationshipsShipmentsData `json:"data"` + Data LineItemDataRelationshipsShipmentData `json:"data"` } // NewParcelCreateDataRelationshipsShipment instantiates a new ParcelCreateDataRelationshipsShipment object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewParcelCreateDataRelationshipsShipment(data OrderDataRelationshipsShipmentsData) *ParcelCreateDataRelationshipsShipment { +func NewParcelCreateDataRelationshipsShipment(data LineItemDataRelationshipsShipmentData) *ParcelCreateDataRelationshipsShipment { this := ParcelCreateDataRelationshipsShipment{} this.Data = data return &this @@ -42,9 +42,9 @@ func NewParcelCreateDataRelationshipsShipmentWithDefaults() *ParcelCreateDataRel } // GetData returns the Data field value -func (o *ParcelCreateDataRelationshipsShipment) GetData() OrderDataRelationshipsShipmentsData { +func (o *ParcelCreateDataRelationshipsShipment) GetData() LineItemDataRelationshipsShipmentData { if o == nil { - var ret OrderDataRelationshipsShipmentsData + var ret LineItemDataRelationshipsShipmentData return ret } @@ -53,7 +53,7 @@ func (o *ParcelCreateDataRelationshipsShipment) GetData() OrderDataRelationships // GetDataOk returns a tuple with the Data field value // and a boolean to check if the value has been set. -func (o *ParcelCreateDataRelationshipsShipment) GetDataOk() (*OrderDataRelationshipsShipmentsData, bool) { +func (o *ParcelCreateDataRelationshipsShipment) GetDataOk() (*LineItemDataRelationshipsShipmentData, bool) { if o == nil { return nil, false } @@ -61,7 +61,7 @@ func (o *ParcelCreateDataRelationshipsShipment) GetDataOk() (*OrderDataRelations } // SetData sets field value -func (o *ParcelCreateDataRelationshipsShipment) SetData(v OrderDataRelationshipsShipmentsData) { +func (o *ParcelCreateDataRelationshipsShipment) SetData(v LineItemDataRelationshipsShipmentData) { o.Data = v } diff --git a/api/model_parcel_data.go b/api/model_parcel_data.go index 48f54eb7..5caeec8f 100644 --- a/api/model_parcel_data.go +++ b/api/model_parcel_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_data_relationships.go b/api/model_parcel_data_relationships.go index 57201737..75ddf1f0 100644 --- a/api/model_parcel_data_relationships.go +++ b/api/model_parcel_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,11 +20,12 @@ var _ MappedNullable = &ParcelDataRelationships{} // ParcelDataRelationships struct for ParcelDataRelationships type ParcelDataRelationships struct { - Shipment *OrderDataRelationshipsShipments `json:"shipment,omitempty"` - Package *ParcelDataRelationshipsPackage `json:"package,omitempty"` - ParcelLineItems *ParcelDataRelationshipsParcelLineItems `json:"parcel_line_items,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` + Shipment *LineItemDataRelationshipsShipment `json:"shipment,omitempty"` + Package *ParcelDataRelationshipsPackage `json:"package,omitempty"` + ParcelLineItems *ParcelDataRelationshipsParcelLineItems `json:"parcel_line_items,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewParcelDataRelationships instantiates a new ParcelDataRelationships object @@ -45,9 +46,9 @@ func NewParcelDataRelationshipsWithDefaults() *ParcelDataRelationships { } // GetShipment returns the Shipment field value if set, zero value otherwise. -func (o *ParcelDataRelationships) GetShipment() OrderDataRelationshipsShipments { +func (o *ParcelDataRelationships) GetShipment() LineItemDataRelationshipsShipment { if o == nil || IsNil(o.Shipment) { - var ret OrderDataRelationshipsShipments + var ret LineItemDataRelationshipsShipment return ret } return *o.Shipment @@ -55,7 +56,7 @@ func (o *ParcelDataRelationships) GetShipment() OrderDataRelationshipsShipments // GetShipmentOk returns a tuple with the Shipment field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ParcelDataRelationships) GetShipmentOk() (*OrderDataRelationshipsShipments, bool) { +func (o *ParcelDataRelationships) GetShipmentOk() (*LineItemDataRelationshipsShipment, bool) { if o == nil || IsNil(o.Shipment) { return nil, false } @@ -71,8 +72,8 @@ func (o *ParcelDataRelationships) HasShipment() bool { return false } -// SetShipment gets a reference to the given OrderDataRelationshipsShipments and assigns it to the Shipment field. -func (o *ParcelDataRelationships) SetShipment(v OrderDataRelationshipsShipments) { +// SetShipment gets a reference to the given LineItemDataRelationshipsShipment and assigns it to the Shipment field. +func (o *ParcelDataRelationships) SetShipment(v LineItemDataRelationshipsShipment) { o.Shipment = &v } @@ -141,9 +142,9 @@ func (o *ParcelDataRelationships) SetParcelLineItems(v ParcelDataRelationshipsPa } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *ParcelDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *ParcelDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -151,7 +152,7 @@ func (o *ParcelDataRelationships) GetAttachments() AvalaraAccountDataRelationshi // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ParcelDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *ParcelDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -167,15 +168,15 @@ func (o *ParcelDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *ParcelDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *ParcelDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *ParcelDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { +func (o *ParcelDataRelationships) GetEvents() AddressDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents + var ret AddressDataRelationshipsEvents return ret } return *o.Events @@ -183,7 +184,7 @@ func (o *ParcelDataRelationships) GetEvents() AuthorizationDataRelationshipsEven // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ParcelDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { +func (o *ParcelDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -199,11 +200,43 @@ func (o *ParcelDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *ParcelDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *ParcelDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { o.Events = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *ParcelDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ParcelDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *ParcelDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *ParcelDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o ParcelDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -229,6 +262,9 @@ func (o ParcelDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_parcel_data_relationships_package.go b/api/model_parcel_data_relationships_package.go index 2d0d72c6..758e3cd6 100644 --- a/api/model_parcel_data_relationships_package.go +++ b/api/model_parcel_data_relationships_package.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_data_relationships_package_data.go b/api/model_parcel_data_relationships_package_data.go index 1590de8b..4265cf53 100644 --- a/api/model_parcel_data_relationships_package_data.go +++ b/api/model_parcel_data_relationships_package_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_data_relationships_parcel_line_items.go b/api/model_parcel_data_relationships_parcel_line_items.go index 5592ec64..6a01b997 100644 --- a/api/model_parcel_data_relationships_parcel_line_items.go +++ b/api/model_parcel_data_relationships_parcel_line_items.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_data_relationships_parcel_line_items_data.go b/api/model_parcel_data_relationships_parcel_line_items_data.go index 78a543ca..c5d2910f 100644 --- a/api/model_parcel_data_relationships_parcel_line_items_data.go +++ b/api/model_parcel_data_relationships_parcel_line_items_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_line_item.go b/api/model_parcel_line_item.go index 86717f77..67cd441a 100644 --- a/api/model_parcel_line_item.go +++ b/api/model_parcel_line_item.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_line_item_create.go b/api/model_parcel_line_item_create.go index 67c6a5f7..8853b2cc 100644 --- a/api/model_parcel_line_item_create.go +++ b/api/model_parcel_line_item_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_line_item_create_data.go b/api/model_parcel_line_item_create_data.go index 3c0effe4..e94f4946 100644 --- a/api/model_parcel_line_item_create_data.go +++ b/api/model_parcel_line_item_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_line_item_create_data_relationships.go b/api/model_parcel_line_item_create_data_relationships.go index 5efa70a8..2d1afad1 100644 --- a/api/model_parcel_line_item_create_data_relationships.go +++ b/api/model_parcel_line_item_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,8 +22,6 @@ var _ MappedNullable = &ParcelLineItemCreateDataRelationships{} type ParcelLineItemCreateDataRelationships struct { Parcel ParcelLineItemCreateDataRelationshipsParcel `json:"parcel"` StockLineItem ParcelLineItemCreateDataRelationshipsStockLineItem `json:"stock_line_item"` - // Deprecated - ShipmentLineItem *ParcelLineItemCreateDataRelationshipsShipmentLineItem `json:"shipment_line_item,omitempty"` } // NewParcelLineItemCreateDataRelationships instantiates a new ParcelLineItemCreateDataRelationships object @@ -93,41 +91,6 @@ func (o *ParcelLineItemCreateDataRelationships) SetStockLineItem(v ParcelLineIte o.StockLineItem = v } -// GetShipmentLineItem returns the ShipmentLineItem field value if set, zero value otherwise. -// Deprecated -func (o *ParcelLineItemCreateDataRelationships) GetShipmentLineItem() ParcelLineItemCreateDataRelationshipsShipmentLineItem { - if o == nil || IsNil(o.ShipmentLineItem) { - var ret ParcelLineItemCreateDataRelationshipsShipmentLineItem - return ret - } - return *o.ShipmentLineItem -} - -// GetShipmentLineItemOk returns a tuple with the ShipmentLineItem field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *ParcelLineItemCreateDataRelationships) GetShipmentLineItemOk() (*ParcelLineItemCreateDataRelationshipsShipmentLineItem, bool) { - if o == nil || IsNil(o.ShipmentLineItem) { - return nil, false - } - return o.ShipmentLineItem, true -} - -// HasShipmentLineItem returns a boolean if a field has been set. -func (o *ParcelLineItemCreateDataRelationships) HasShipmentLineItem() bool { - if o != nil && !IsNil(o.ShipmentLineItem) { - return true - } - - return false -} - -// SetShipmentLineItem gets a reference to the given ParcelLineItemCreateDataRelationshipsShipmentLineItem and assigns it to the ShipmentLineItem field. -// Deprecated -func (o *ParcelLineItemCreateDataRelationships) SetShipmentLineItem(v ParcelLineItemCreateDataRelationshipsShipmentLineItem) { - o.ShipmentLineItem = &v -} - func (o ParcelLineItemCreateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -140,9 +103,6 @@ func (o ParcelLineItemCreateDataRelationships) ToMap() (map[string]interface{}, toSerialize := map[string]interface{}{} toSerialize["parcel"] = o.Parcel toSerialize["stock_line_item"] = o.StockLineItem - if !IsNil(o.ShipmentLineItem) { - toSerialize["shipment_line_item"] = o.ShipmentLineItem - } return toSerialize, nil } diff --git a/api/model_parcel_line_item_create_data_relationships_parcel.go b/api/model_parcel_line_item_create_data_relationships_parcel.go index 3a40b881..69ce9423 100644 --- a/api/model_parcel_line_item_create_data_relationships_parcel.go +++ b/api/model_parcel_line_item_create_data_relationships_parcel.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_line_item_create_data_relationships_shipment_line_item.go b/api/model_parcel_line_item_create_data_relationships_shipment_line_item.go deleted file mode 100644 index 5495c481..00000000 --- a/api/model_parcel_line_item_create_data_relationships_shipment_line_item.go +++ /dev/null @@ -1,116 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the ParcelLineItemCreateDataRelationshipsShipmentLineItem type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ParcelLineItemCreateDataRelationshipsShipmentLineItem{} - -// ParcelLineItemCreateDataRelationshipsShipmentLineItem struct for ParcelLineItemCreateDataRelationshipsShipmentLineItem -type ParcelLineItemCreateDataRelationshipsShipmentLineItem struct { - Data LineItemDataRelationshipsShipmentLineItemsData `json:"data"` -} - -// NewParcelLineItemCreateDataRelationshipsShipmentLineItem instantiates a new ParcelLineItemCreateDataRelationshipsShipmentLineItem object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewParcelLineItemCreateDataRelationshipsShipmentLineItem(data LineItemDataRelationshipsShipmentLineItemsData) *ParcelLineItemCreateDataRelationshipsShipmentLineItem { - this := ParcelLineItemCreateDataRelationshipsShipmentLineItem{} - this.Data = data - return &this -} - -// NewParcelLineItemCreateDataRelationshipsShipmentLineItemWithDefaults instantiates a new ParcelLineItemCreateDataRelationshipsShipmentLineItem object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewParcelLineItemCreateDataRelationshipsShipmentLineItemWithDefaults() *ParcelLineItemCreateDataRelationshipsShipmentLineItem { - this := ParcelLineItemCreateDataRelationshipsShipmentLineItem{} - return &this -} - -// GetData returns the Data field value -func (o *ParcelLineItemCreateDataRelationshipsShipmentLineItem) GetData() LineItemDataRelationshipsShipmentLineItemsData { - if o == nil { - var ret LineItemDataRelationshipsShipmentLineItemsData - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *ParcelLineItemCreateDataRelationshipsShipmentLineItem) GetDataOk() (*LineItemDataRelationshipsShipmentLineItemsData, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *ParcelLineItemCreateDataRelationshipsShipmentLineItem) SetData(v LineItemDataRelationshipsShipmentLineItemsData) { - o.Data = v -} - -func (o ParcelLineItemCreateDataRelationshipsShipmentLineItem) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ParcelLineItemCreateDataRelationshipsShipmentLineItem) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - return toSerialize, nil -} - -type NullableParcelLineItemCreateDataRelationshipsShipmentLineItem struct { - value *ParcelLineItemCreateDataRelationshipsShipmentLineItem - isSet bool -} - -func (v NullableParcelLineItemCreateDataRelationshipsShipmentLineItem) Get() *ParcelLineItemCreateDataRelationshipsShipmentLineItem { - return v.value -} - -func (v *NullableParcelLineItemCreateDataRelationshipsShipmentLineItem) Set(val *ParcelLineItemCreateDataRelationshipsShipmentLineItem) { - v.value = val - v.isSet = true -} - -func (v NullableParcelLineItemCreateDataRelationshipsShipmentLineItem) IsSet() bool { - return v.isSet -} - -func (v *NullableParcelLineItemCreateDataRelationshipsShipmentLineItem) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableParcelLineItemCreateDataRelationshipsShipmentLineItem(val *ParcelLineItemCreateDataRelationshipsShipmentLineItem) *NullableParcelLineItemCreateDataRelationshipsShipmentLineItem { - return &NullableParcelLineItemCreateDataRelationshipsShipmentLineItem{value: val, isSet: true} -} - -func (v NullableParcelLineItemCreateDataRelationshipsShipmentLineItem) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableParcelLineItemCreateDataRelationshipsShipmentLineItem) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_parcel_line_item_create_data_relationships_stock_line_item.go b/api/model_parcel_line_item_create_data_relationships_stock_line_item.go index 6dd3e891..41a7a39b 100644 --- a/api/model_parcel_line_item_create_data_relationships_stock_line_item.go +++ b/api/model_parcel_line_item_create_data_relationships_stock_line_item.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_line_item_data.go b/api/model_parcel_line_item_data.go index 7e24dfa5..32c34292 100644 --- a/api/model_parcel_line_item_data.go +++ b/api/model_parcel_line_item_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_line_item_data_relationships.go b/api/model_parcel_line_item_data_relationships.go index 5217214b..37c06f26 100644 --- a/api/model_parcel_line_item_data_relationships.go +++ b/api/model_parcel_line_item_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,8 +22,7 @@ var _ MappedNullable = &ParcelLineItemDataRelationships{} type ParcelLineItemDataRelationships struct { Parcel *PackageDataRelationshipsParcels `json:"parcel,omitempty"` StockLineItem *LineItemDataRelationshipsStockLineItems `json:"stock_line_item,omitempty"` - // Deprecated - ShipmentLineItem *LineItemDataRelationshipsShipmentLineItems `json:"shipment_line_item,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewParcelLineItemDataRelationships instantiates a new ParcelLineItemDataRelationships object @@ -107,39 +106,36 @@ func (o *ParcelLineItemDataRelationships) SetStockLineItem(v LineItemDataRelatio o.StockLineItem = &v } -// GetShipmentLineItem returns the ShipmentLineItem field value if set, zero value otherwise. -// Deprecated -func (o *ParcelLineItemDataRelationships) GetShipmentLineItem() LineItemDataRelationshipsShipmentLineItems { - if o == nil || IsNil(o.ShipmentLineItem) { - var ret LineItemDataRelationshipsShipmentLineItems +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *ParcelLineItemDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions return ret } - return *o.ShipmentLineItem + return *o.Versions } -// GetShipmentLineItemOk returns a tuple with the ShipmentLineItem field value if set, nil otherwise +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise // and a boolean to check if the value has been set. -// Deprecated -func (o *ParcelLineItemDataRelationships) GetShipmentLineItemOk() (*LineItemDataRelationshipsShipmentLineItems, bool) { - if o == nil || IsNil(o.ShipmentLineItem) { +func (o *ParcelLineItemDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { return nil, false } - return o.ShipmentLineItem, true + return o.Versions, true } -// HasShipmentLineItem returns a boolean if a field has been set. -func (o *ParcelLineItemDataRelationships) HasShipmentLineItem() bool { - if o != nil && !IsNil(o.ShipmentLineItem) { +// HasVersions returns a boolean if a field has been set. +func (o *ParcelLineItemDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { return true } return false } -// SetShipmentLineItem gets a reference to the given LineItemDataRelationshipsShipmentLineItems and assigns it to the ShipmentLineItem field. -// Deprecated -func (o *ParcelLineItemDataRelationships) SetShipmentLineItem(v LineItemDataRelationshipsShipmentLineItems) { - o.ShipmentLineItem = &v +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *ParcelLineItemDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v } func (o ParcelLineItemDataRelationships) MarshalJSON() ([]byte, error) { @@ -158,8 +154,8 @@ func (o ParcelLineItemDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.StockLineItem) { toSerialize["stock_line_item"] = o.StockLineItem } - if !IsNil(o.ShipmentLineItem) { - toSerialize["shipment_line_item"] = o.ShipmentLineItem + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions } return toSerialize, nil } diff --git a/api/model_parcel_line_item_update.go b/api/model_parcel_line_item_update.go index b8286a6a..b7986535 100644 --- a/api/model_parcel_line_item_update.go +++ b/api/model_parcel_line_item_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_line_item_update_data.go b/api/model_parcel_line_item_update_data.go index cb76a894..2b5e1686 100644 --- a/api/model_parcel_line_item_update_data.go +++ b/api/model_parcel_line_item_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_update.go b/api/model_parcel_update.go index 0f76646c..6d2aae94 100644 --- a/api/model_parcel_update.go +++ b/api/model_parcel_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_update_data.go b/api/model_parcel_update_data.go index 2fc69a7b..573d5be9 100644 --- a/api/model_parcel_update_data.go +++ b/api/model_parcel_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_parcel_update_data_relationships.go b/api/model_parcel_update_data_relationships.go index b1a7375d..0d5b0684 100644 --- a/api/model_parcel_update_data_relationships.go +++ b/api/model_parcel_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_addresses_address_id_200_response.go b/api/model_patch_addresses_address_id_200_response.go index f7f1451d..28711c47 100644 --- a/api/model_patch_addresses_address_id_200_response.go +++ b/api/model_patch_addresses_address_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_addresses_address_id_200_response_data.go b/api/model_patch_addresses_address_id_200_response_data.go index 8df350ab..7030a8a2 100644 --- a/api/model_patch_addresses_address_id_200_response_data.go +++ b/api/model_patch_addresses_address_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_addresses_address_id_200_response_data_attributes.go b/api/model_patch_addresses_address_id_200_response_data_attributes.go index 91be081b..9565fcba 100644 --- a/api/model_patch_addresses_address_id_200_response_data_attributes.go +++ b/api/model_patch_addresses_address_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,25 +20,25 @@ var _ MappedNullable = &PATCHAddressesAddressId200ResponseDataAttributes{} // PATCHAddressesAddressId200ResponseDataAttributes struct for PATCHAddressesAddressId200ResponseDataAttributes type PATCHAddressesAddressId200ResponseDataAttributes struct { - // Indicates if it's a business or a personal address + // Indicates if it's a business or a personal address. Business interface{} `json:"business,omitempty"` - // Address first name (personal) + // Address first name (personal). FirstName interface{} `json:"first_name,omitempty"` - // Address last name (personal) + // Address last name (personal). LastName interface{} `json:"last_name,omitempty"` - // Address company name (business) + // Address company name (business). Company interface{} `json:"company,omitempty"` - // Address line 1, i.e. Street address, PO Box + // Address line 1, i.e. Street address, PO Box. Line1 interface{} `json:"line_1,omitempty"` - // Address line 2, i.e. Apartment, Suite, Building + // Address line 2, i.e. Apartment, Suite, Building. Line2 interface{} `json:"line_2,omitempty"` - // Address city + // Address city. City interface{} `json:"city,omitempty"` - // ZIP or postal code + // ZIP or postal code. ZipCode interface{} `json:"zip_code,omitempty"` // State, province or region code. StateCode interface{} `json:"state_code,omitempty"` - // The international 2-letter country code as defined by the ISO 3166-1 standard + // The international 2-letter country code as defined by the ISO 3166-1 standard. CountryCode interface{} `json:"country_code,omitempty"` // Phone number (including extension). Phone interface{} `json:"phone,omitempty"` @@ -50,11 +50,11 @@ type PATCHAddressesAddressId200ResponseDataAttributes struct { Lat interface{} `json:"lat,omitempty"` // The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market. Lng interface{} `json:"lng,omitempty"` - // Customer's billing information (i.e. VAT number, codice fiscale) + // Customer's billing information (i.e. VAT number, codice fiscale). BillingInfo interface{} `json:"billing_info,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_adjustments_adjustment_id_200_response.go b/api/model_patch_adjustments_adjustment_id_200_response.go index 2858e3f2..ac201adc 100644 --- a/api/model_patch_adjustments_adjustment_id_200_response.go +++ b/api/model_patch_adjustments_adjustment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_adjustments_adjustment_id_200_response_data.go b/api/model_patch_adjustments_adjustment_id_200_response_data.go index a4ed0a08..988a2767 100644 --- a/api/model_patch_adjustments_adjustment_id_200_response_data.go +++ b/api/model_patch_adjustments_adjustment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type PATCHAdjustmentsAdjustmentId200ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *PATCHAdjustmentsAdjustmentId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships interface{} `json:"relationships,omitempty"` + Relationships *POSTAdjustments201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPATCHAdjustmentsAdjustmentId200ResponseData instantiates a new PATCHAdjustmentsAdjustmentId200ResponseData object @@ -176,37 +176,36 @@ func (o *PATCHAdjustmentsAdjustmentId200ResponseData) SetAttributes(v PATCHAdjus o.Attributes = &v } -// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PATCHAdjustmentsAdjustmentId200ResponseData) GetRelationships() interface{} { - if o == nil { - var ret interface{} +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PATCHAdjustmentsAdjustmentId200ResponseData) GetRelationships() POSTAdjustments201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTAdjustments201ResponseDataRelationships return ret } - return o.Relationships + return *o.Relationships } // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PATCHAdjustmentsAdjustmentId200ResponseData) GetRelationshipsOk() (*interface{}, bool) { +func (o *PATCHAdjustmentsAdjustmentId200ResponseData) GetRelationshipsOk() (*POSTAdjustments201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } - return &o.Relationships, true + return o.Relationships, true } // HasRelationships returns a boolean if a field has been set. func (o *PATCHAdjustmentsAdjustmentId200ResponseData) HasRelationships() bool { - if o != nil && IsNil(o.Relationships) { + if o != nil && !IsNil(o.Relationships) { return true } return false } -// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. -func (o *PATCHAdjustmentsAdjustmentId200ResponseData) SetRelationships(v interface{}) { - o.Relationships = v +// SetRelationships gets a reference to the given POSTAdjustments201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHAdjustmentsAdjustmentId200ResponseData) SetRelationships(v POSTAdjustments201ResponseDataRelationships) { + o.Relationships = &v } func (o PATCHAdjustmentsAdjustmentId200ResponseData) MarshalJSON() ([]byte, error) { @@ -231,7 +230,7 @@ func (o PATCHAdjustmentsAdjustmentId200ResponseData) ToMap() (map[string]interfa if !IsNil(o.Attributes) { toSerialize["attributes"] = o.Attributes } - if o.Relationships != nil { + if !IsNil(o.Relationships) { toSerialize["relationships"] = o.Relationships } return toSerialize, nil diff --git a/api/model_patch_adjustments_adjustment_id_200_response_data_attributes.go b/api/model_patch_adjustments_adjustment_id_200_response_data_attributes.go index 4c1dc01b..acfe9c70 100644 --- a/api/model_patch_adjustments_adjustment_id_200_response_data_attributes.go +++ b/api/model_patch_adjustments_adjustment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,15 +20,17 @@ var _ MappedNullable = &PATCHAdjustmentsAdjustmentId200ResponseDataAttributes{} // PATCHAdjustmentsAdjustmentId200ResponseDataAttributes struct for PATCHAdjustmentsAdjustmentId200ResponseDataAttributes type PATCHAdjustmentsAdjustmentId200ResponseDataAttributes struct { - // The adjustment name + // The adjustment name. Name interface{} `json:"name,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` // The adjustment amount, in cents. AmountCents interface{} `json:"amount_cents,omitempty"` + // Indicates if negative adjustment amount is distributed for tax calculation. + DistributeDiscount interface{} `json:"distribute_discount,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -150,6 +152,39 @@ func (o *PATCHAdjustmentsAdjustmentId200ResponseDataAttributes) SetAmountCents(v o.AmountCents = v } +// GetDistributeDiscount returns the DistributeDiscount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHAdjustmentsAdjustmentId200ResponseDataAttributes) GetDistributeDiscount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DistributeDiscount +} + +// GetDistributeDiscountOk returns a tuple with the DistributeDiscount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHAdjustmentsAdjustmentId200ResponseDataAttributes) GetDistributeDiscountOk() (*interface{}, bool) { + if o == nil || IsNil(o.DistributeDiscount) { + return nil, false + } + return &o.DistributeDiscount, true +} + +// HasDistributeDiscount returns a boolean if a field has been set. +func (o *PATCHAdjustmentsAdjustmentId200ResponseDataAttributes) HasDistributeDiscount() bool { + if o != nil && IsNil(o.DistributeDiscount) { + return true + } + + return false +} + +// SetDistributeDiscount gets a reference to the given interface{} and assigns it to the DistributeDiscount field. +func (o *PATCHAdjustmentsAdjustmentId200ResponseDataAttributes) SetDistributeDiscount(v interface{}) { + o.DistributeDiscount = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHAdjustmentsAdjustmentId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -268,6 +303,9 @@ func (o PATCHAdjustmentsAdjustmentId200ResponseDataAttributes) ToMap() (map[stri if o.AmountCents != nil { toSerialize["amount_cents"] = o.AmountCents } + if o.DistributeDiscount != nil { + toSerialize["distribute_discount"] = o.DistributeDiscount + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_patch_adyen_gateways_adyen_gateway_id_200_response.go b/api/model_patch_adyen_gateways_adyen_gateway_id_200_response.go index 6835d44a..f913623a 100644 --- a/api/model_patch_adyen_gateways_adyen_gateway_id_200_response.go +++ b/api/model_patch_adyen_gateways_adyen_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_adyen_gateways_adyen_gateway_id_200_response_data.go b/api/model_patch_adyen_gateways_adyen_gateway_id_200_response_data.go index 4c1205fc..c757cc81 100644 --- a/api/model_patch_adyen_gateways_adyen_gateway_id_200_response_data.go +++ b/api/model_patch_adyen_gateways_adyen_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_adyen_gateways_adyen_gateway_id_200_response_data_attributes.go b/api/model_patch_adyen_gateways_adyen_gateway_id_200_response_data_attributes.go index 4b15459f..e56a8a2d 100644 --- a/api/model_patch_adyen_gateways_adyen_gateway_id_200_response_data_attributes.go +++ b/api/model_patch_adyen_gateways_adyen_gateway_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes struct { Name interface{} `json:"name,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -36,10 +36,12 @@ type PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes struct { PublicKey interface{} `json:"public_key,omitempty"` // The prefix of the endpoint used for live transactions. LiveUrlPrefix interface{} `json:"live_url_prefix,omitempty"` - // The checkout API version, supported range is from 66 to 68, default is 68. + // The checkout API version, supported range is from 66 to 71, default is 71. ApiVersion interface{} `json:"api_version,omitempty"` - // Indicates if the gateway will leverage on the Adyen notification webhooks. + // Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version. AsyncApi interface{} `json:"async_api,omitempty"` + // Indicates if the gateway will use the native customer payment sources. + NativeCustomerPaymentSources interface{} `json:"native_customer_payment_sources,omitempty"` // The gateway webhook endpoint secret, generated by Adyen customer area. WebhookEndpointSecret interface{} `json:"webhook_endpoint_secret,omitempty"` } @@ -391,6 +393,39 @@ func (o *PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) SetAsyncApi( o.AsyncApi = v } +// GetNativeCustomerPaymentSources returns the NativeCustomerPaymentSources field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) GetNativeCustomerPaymentSources() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.NativeCustomerPaymentSources +} + +// GetNativeCustomerPaymentSourcesOk returns a tuple with the NativeCustomerPaymentSources field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) GetNativeCustomerPaymentSourcesOk() (*interface{}, bool) { + if o == nil || IsNil(o.NativeCustomerPaymentSources) { + return nil, false + } + return &o.NativeCustomerPaymentSources, true +} + +// HasNativeCustomerPaymentSources returns a boolean if a field has been set. +func (o *PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) HasNativeCustomerPaymentSources() bool { + if o != nil && IsNil(o.NativeCustomerPaymentSources) { + return true + } + + return false +} + +// SetNativeCustomerPaymentSources gets a reference to the given interface{} and assigns it to the NativeCustomerPaymentSources field. +func (o *PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) SetNativeCustomerPaymentSources(v interface{}) { + o.NativeCustomerPaymentSources = v +} + // GetWebhookEndpointSecret returns the WebhookEndpointSecret field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) GetWebhookEndpointSecret() interface{} { if o == nil { @@ -464,6 +499,9 @@ func (o PATCHAdyenGatewaysAdyenGatewayId200ResponseDataAttributes) ToMap() (map[ if o.AsyncApi != nil { toSerialize["async_api"] = o.AsyncApi } + if o.NativeCustomerPaymentSources != nil { + toSerialize["native_customer_payment_sources"] = o.NativeCustomerPaymentSources + } if o.WebhookEndpointSecret != nil { toSerialize["webhook_endpoint_secret"] = o.WebhookEndpointSecret } diff --git a/api/model_patch_adyen_payments_adyen_payment_id_200_response.go b/api/model_patch_adyen_payments_adyen_payment_id_200_response.go index ec4d8be4..3cc004d7 100644 --- a/api/model_patch_adyen_payments_adyen_payment_id_200_response.go +++ b/api/model_patch_adyen_payments_adyen_payment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_adyen_payments_adyen_payment_id_200_response_data.go b/api/model_patch_adyen_payments_adyen_payment_id_200_response_data.go index cd66aaba..89ad4682 100644 --- a/api/model_patch_adyen_payments_adyen_payment_id_200_response_data.go +++ b/api/model_patch_adyen_payments_adyen_payment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_adyen_payments_adyen_payment_id_200_response_data_attributes.go b/api/model_patch_adyen_payments_adyen_payment_id_200_response_data_attributes.go index 77ce4199..be332572 100644 --- a/api/model_patch_adyen_payments_adyen_payment_id_200_response_data_attributes.go +++ b/api/model_patch_adyen_payments_adyen_payment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -30,7 +30,7 @@ type PATCHAdyenPaymentsAdyenPaymentId200ResponseDataAttributes struct { Details interface{} `json:"_details,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_attachments_attachment_id_200_response.go b/api/model_patch_attachments_attachment_id_200_response.go index e4219d22..b8a0b335 100644 --- a/api/model_patch_attachments_attachment_id_200_response.go +++ b/api/model_patch_attachments_attachment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_attachments_attachment_id_200_response_data.go b/api/model_patch_attachments_attachment_id_200_response_data.go index 4bb7f885..9debaa02 100644 --- a/api/model_patch_attachments_attachment_id_200_response_data.go +++ b/api/model_patch_attachments_attachment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_attachments_attachment_id_200_response_data_attributes.go b/api/model_patch_attachments_attachment_id_200_response_data_attributes.go index 53a45d60..3941c50d 100644 --- a/api/model_patch_attachments_attachment_id_200_response_data_attributes.go +++ b/api/model_patch_attachments_attachment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,7 +28,7 @@ type PATCHAttachmentsAttachmentId200ResponseDataAttributes struct { Url interface{} `json:"url,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_authorizations_authorization_id_200_response.go b/api/model_patch_authorizations_authorization_id_200_response.go index 19e9c630..a3b29b15 100644 --- a/api/model_patch_authorizations_authorization_id_200_response.go +++ b/api/model_patch_authorizations_authorization_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_authorizations_authorization_id_200_response_data.go b/api/model_patch_authorizations_authorization_id_200_response_data.go index d4db55b7..e0bd4678 100644 --- a/api/model_patch_authorizations_authorization_id_200_response_data.go +++ b/api/model_patch_authorizations_authorization_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_authorizations_authorization_id_200_response_data_attributes.go b/api/model_patch_authorizations_authorization_id_200_response_data_attributes.go index 4256093d..8d4d06e4 100644 --- a/api/model_patch_authorizations_authorization_id_200_response_data_attributes.go +++ b/api/model_patch_authorizations_authorization_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,18 +20,24 @@ var _ MappedNullable = &PATCHAuthorizationsAuthorizationId200ResponseDataAttribu // PATCHAuthorizationsAuthorizationId200ResponseDataAttributes struct for PATCHAuthorizationsAuthorizationId200ResponseDataAttributes type PATCHAuthorizationsAuthorizationId200ResponseDataAttributes struct { + // Indicates if the transaction is successful. + Succeeded interface{} `json:"succeeded,omitempty"` + // Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly. + Forward interface{} `json:"_forward,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` // Send this attribute if you want to create a capture for this authorization. Capture interface{} `json:"_capture,omitempty"` - // The associated capture amount, in cents. + // Send this attribute as a value in cents if you want to overwrite the amount to be captured. CaptureAmountCents interface{} `json:"_capture_amount_cents,omitempty"` // Send this attribute if you want to create a void for this authorization. Void interface{} `json:"_void,omitempty"` + // Send this attribute if you want to void a succeeded authorization of a pending order (which is left unpaid). + Cancel interface{} `json:"_cancel,omitempty"` } // NewPATCHAuthorizationsAuthorizationId200ResponseDataAttributes instantiates a new PATCHAuthorizationsAuthorizationId200ResponseDataAttributes object @@ -51,6 +57,72 @@ func NewPATCHAuthorizationsAuthorizationId200ResponseDataAttributesWithDefaults( return &this } +// GetSucceeded returns the Succeeded field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) GetSucceeded() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Succeeded +} + +// GetSucceededOk returns a tuple with the Succeeded field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) GetSucceededOk() (*interface{}, bool) { + if o == nil || IsNil(o.Succeeded) { + return nil, false + } + return &o.Succeeded, true +} + +// HasSucceeded returns a boolean if a field has been set. +func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) HasSucceeded() bool { + if o != nil && IsNil(o.Succeeded) { + return true + } + + return false +} + +// SetSucceeded gets a reference to the given interface{} and assigns it to the Succeeded field. +func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) SetSucceeded(v interface{}) { + o.Succeeded = v +} + +// GetForward returns the Forward field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) GetForward() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Forward +} + +// GetForwardOk returns a tuple with the Forward field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) GetForwardOk() (*interface{}, bool) { + if o == nil || IsNil(o.Forward) { + return nil, false + } + return &o.Forward, true +} + +// HasForward returns a boolean if a field has been set. +func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) HasForward() bool { + if o != nil && IsNil(o.Forward) { + return true + } + + return false +} + +// SetForward gets a reference to the given interface{} and assigns it to the Forward field. +func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) SetForward(v interface{}) { + o.Forward = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -249,6 +321,39 @@ func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) SetVoid(v o.Void = v } +// GetCancel returns the Cancel field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) GetCancel() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Cancel +} + +// GetCancelOk returns a tuple with the Cancel field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) GetCancelOk() (*interface{}, bool) { + if o == nil || IsNil(o.Cancel) { + return nil, false + } + return &o.Cancel, true +} + +// HasCancel returns a boolean if a field has been set. +func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) HasCancel() bool { + if o != nil && IsNil(o.Cancel) { + return true + } + + return false +} + +// SetCancel gets a reference to the given interface{} and assigns it to the Cancel field. +func (o *PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) SetCancel(v interface{}) { + o.Cancel = v +} + func (o PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -259,6 +364,12 @@ func (o PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) MarshalJSON func (o PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Succeeded != nil { + toSerialize["succeeded"] = o.Succeeded + } + if o.Forward != nil { + toSerialize["_forward"] = o.Forward + } if o.Reference != nil { toSerialize["reference"] = o.Reference } @@ -277,6 +388,9 @@ func (o PATCHAuthorizationsAuthorizationId200ResponseDataAttributes) ToMap() (ma if o.Void != nil { toSerialize["_void"] = o.Void } + if o.Cancel != nil { + toSerialize["_cancel"] = o.Cancel + } return toSerialize, nil } diff --git a/api/model_patch_avalara_accounts_avalara_account_id_200_response.go b/api/model_patch_avalara_accounts_avalara_account_id_200_response.go index 25597a0b..0cb7b9d3 100644 --- a/api/model_patch_avalara_accounts_avalara_account_id_200_response.go +++ b/api/model_patch_avalara_accounts_avalara_account_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_avalara_accounts_avalara_account_id_200_response_data.go b/api/model_patch_avalara_accounts_avalara_account_id_200_response_data.go index 22726399..825b2944 100644 --- a/api/model_patch_avalara_accounts_avalara_account_id_200_response_data.go +++ b/api/model_patch_avalara_accounts_avalara_account_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_avalara_accounts_avalara_account_id_200_response_data_attributes.go b/api/model_patch_avalara_accounts_avalara_account_id_200_response_data_attributes.go index 23606f76..2235aa86 100644 --- a/api/model_patch_avalara_accounts_avalara_account_id_200_response_data_attributes.go +++ b/api/model_patch_avalara_accounts_avalara_account_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type PATCHAvalaraAccountsAvalaraAccountId200ResponseDataAttributes struct { Name interface{} `json:"name,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_axerve_gateways_axerve_gateway_id_200_response.go b/api/model_patch_axerve_gateways_axerve_gateway_id_200_response.go index a4c95af1..d20bd430 100644 --- a/api/model_patch_axerve_gateways_axerve_gateway_id_200_response.go +++ b/api/model_patch_axerve_gateways_axerve_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_axerve_gateways_axerve_gateway_id_200_response_data.go b/api/model_patch_axerve_gateways_axerve_gateway_id_200_response_data.go index 9638410d..51e0c7f1 100644 --- a/api/model_patch_axerve_gateways_axerve_gateway_id_200_response_data.go +++ b/api/model_patch_axerve_gateways_axerve_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_axerve_gateways_axerve_gateway_id_200_response_data_attributes.go b/api/model_patch_axerve_gateways_axerve_gateway_id_200_response_data_attributes.go index 3435f8c5..2ff13bd8 100644 --- a/api/model_patch_axerve_gateways_axerve_gateway_id_200_response_data_attributes.go +++ b/api/model_patch_axerve_gateways_axerve_gateway_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type PATCHAxerveGatewaysAxerveGatewayId200ResponseDataAttributes struct { Name interface{} `json:"name,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_axerve_payments_axerve_payment_id_200_response.go b/api/model_patch_axerve_payments_axerve_payment_id_200_response.go index d48527a9..0f1379dd 100644 --- a/api/model_patch_axerve_payments_axerve_payment_id_200_response.go +++ b/api/model_patch_axerve_payments_axerve_payment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_axerve_payments_axerve_payment_id_200_response_data.go b/api/model_patch_axerve_payments_axerve_payment_id_200_response_data.go index f085e130..a5c3351a 100644 --- a/api/model_patch_axerve_payments_axerve_payment_id_200_response_data.go +++ b/api/model_patch_axerve_payments_axerve_payment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_axerve_payments_axerve_payment_id_200_response_data_attributes.go b/api/model_patch_axerve_payments_axerve_payment_id_200_response_data_attributes.go index 42e751ed..86933c08 100644 --- a/api/model_patch_axerve_payments_axerve_payment_id_200_response_data_attributes.go +++ b/api/model_patch_axerve_payments_axerve_payment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type PATCHAxervePaymentsAxervePaymentId200ResponseDataAttributes struct { Update interface{} `json:"_update,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_billing_info_validation_rules_billing_info_validation_rule_id_200_response.go b/api/model_patch_billing_info_validation_rules_billing_info_validation_rule_id_200_response.go index b2ec1396..7ff1153a 100644 --- a/api/model_patch_billing_info_validation_rules_billing_info_validation_rule_id_200_response.go +++ b/api/model_patch_billing_info_validation_rules_billing_info_validation_rule_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_billing_info_validation_rules_billing_info_validation_rule_id_200_response_data.go b/api/model_patch_billing_info_validation_rules_billing_info_validation_rule_id_200_response_data.go index 7aa1520c..3b602672 100644 --- a/api/model_patch_billing_info_validation_rules_billing_info_validation_rule_id_200_response_data.go +++ b/api/model_patch_billing_info_validation_rules_billing_info_validation_rule_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_billing_info_validation_rules_billing_info_validation_rule_id_200_response_data_attributes.go b/api/model_patch_billing_info_validation_rules_billing_info_validation_rule_id_200_response_data_attributes.go index adfc51f9..3fd16247 100644 --- a/api/model_patch_billing_info_validation_rules_billing_info_validation_rule_id_200_response_data_attributes.go +++ b/api/model_patch_billing_info_validation_rules_billing_info_validation_rule_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,7 +22,7 @@ var _ MappedNullable = &PATCHBillingInfoValidationRulesBillingInfoValidationRule type PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes struct { // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_bing_geocoders_bing_geocoder_id_200_response.go b/api/model_patch_bing_geocoders_bing_geocoder_id_200_response.go index 9ac7c107..2039f72f 100644 --- a/api/model_patch_bing_geocoders_bing_geocoder_id_200_response.go +++ b/api/model_patch_bing_geocoders_bing_geocoder_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_bing_geocoders_bing_geocoder_id_200_response_data.go b/api/model_patch_bing_geocoders_bing_geocoder_id_200_response_data.go index 032e8a04..ce91a437 100644 --- a/api/model_patch_bing_geocoders_bing_geocoder_id_200_response_data.go +++ b/api/model_patch_bing_geocoders_bing_geocoder_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_bing_geocoders_bing_geocoder_id_200_response_data_attributes.go b/api/model_patch_bing_geocoders_bing_geocoder_id_200_response_data_attributes.go index 5f7c2895..c8e24fd1 100644 --- a/api/model_patch_bing_geocoders_bing_geocoder_id_200_response_data_attributes.go +++ b/api/model_patch_bing_geocoders_bing_geocoder_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,15 +20,15 @@ var _ MappedNullable = &PATCHBingGeocodersBingGeocoderId200ResponseDataAttribute // PATCHBingGeocodersBingGeocoderId200ResponseDataAttributes struct for PATCHBingGeocodersBingGeocoderId200ResponseDataAttributes type PATCHBingGeocodersBingGeocoderId200ResponseDataAttributes struct { - // The geocoder's internal name + // The geocoder's internal name. Name interface{} `json:"name,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` - // The Bing Virtualearth key + // The Bing Virtualearth key. Key interface{} `json:"key,omitempty"` } diff --git a/api/model_patch_braintree_gateways_braintree_gateway_id_200_response.go b/api/model_patch_braintree_gateways_braintree_gateway_id_200_response.go index f29fb020..7c7fa45e 100644 --- a/api/model_patch_braintree_gateways_braintree_gateway_id_200_response.go +++ b/api/model_patch_braintree_gateways_braintree_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_braintree_gateways_braintree_gateway_id_200_response_data.go b/api/model_patch_braintree_gateways_braintree_gateway_id_200_response_data.go index 23311481..587c008e 100644 --- a/api/model_patch_braintree_gateways_braintree_gateway_id_200_response_data.go +++ b/api/model_patch_braintree_gateways_braintree_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_braintree_gateways_braintree_gateway_id_200_response_data_attributes.go b/api/model_patch_braintree_gateways_braintree_gateway_id_200_response_data_attributes.go index de28348b..ed1ed1ea 100644 --- a/api/model_patch_braintree_gateways_braintree_gateway_id_200_response_data_attributes.go +++ b/api/model_patch_braintree_gateways_braintree_gateway_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type PATCHBraintreeGatewaysBraintreeGatewayId200ResponseDataAttributes struct { Name interface{} `json:"name,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_braintree_payments_braintree_payment_id_200_response.go b/api/model_patch_braintree_payments_braintree_payment_id_200_response.go index c8512b30..ab7be776 100644 --- a/api/model_patch_braintree_payments_braintree_payment_id_200_response.go +++ b/api/model_patch_braintree_payments_braintree_payment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_braintree_payments_braintree_payment_id_200_response_data.go b/api/model_patch_braintree_payments_braintree_payment_id_200_response_data.go index d26c6098..a833680a 100644 --- a/api/model_patch_braintree_payments_braintree_payment_id_200_response_data.go +++ b/api/model_patch_braintree_payments_braintree_payment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_braintree_payments_braintree_payment_id_200_response_data_attributes.go b/api/model_patch_braintree_payments_braintree_payment_id_200_response_data_attributes.go index b0a92d21..75d3ba03 100644 --- a/api/model_patch_braintree_payments_braintree_payment_id_200_response_data_attributes.go +++ b/api/model_patch_braintree_payments_braintree_payment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,11 +26,11 @@ type PATCHBraintreePaymentsBraintreePaymentId200ResponseDataAttributes struct { PaymentId interface{} `json:"payment_id,omitempty"` // Indicates if the payment is local, in such case Braintree will trigger a webhook call passing the \"payment_id\" and \"payment_method_nonce\" in order to complete the transaction. Local interface{} `json:"local,omitempty"` - // Braintree payment options: 'customer_id' and 'payment_method_token' + // Braintree payment options, 'customer_id' and 'payment_method_token'. Options interface{} `json:"options,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_bundles_bundle_id_200_response.go b/api/model_patch_bundles_bundle_id_200_response.go index dcbf9d80..1b5e0e5f 100644 --- a/api/model_patch_bundles_bundle_id_200_response.go +++ b/api/model_patch_bundles_bundle_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_bundles_bundle_id_200_response_data.go b/api/model_patch_bundles_bundle_id_200_response_data.go index b44fc247..e68478a2 100644 --- a/api/model_patch_bundles_bundle_id_200_response_data.go +++ b/api/model_patch_bundles_bundle_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_bundles_bundle_id_200_response_data_attributes.go b/api/model_patch_bundles_bundle_id_200_response_data_attributes.go index 8a97355b..30aaf2ef 100644 --- a/api/model_patch_bundles_bundle_id_200_response_data_attributes.go +++ b/api/model_patch_bundles_bundle_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -40,7 +40,7 @@ type PATCHBundlesBundleId200ResponseDataAttributes struct { ComputeCompareAtAmount interface{} `json:"_compute_compare_at_amount,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response.go b/api/model_patch_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response.go new file mode 100644 index 00000000..e1f2094e --- /dev/null +++ b/api/model_patch_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response{} + +// PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response struct for PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response +type PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response struct { + Data *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData `json:"data,omitempty"` +} + +// NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response instantiates a new PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response() *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response { + this := PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response{} + return &this +} + +// NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseWithDefaults instantiates a new PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseWithDefaults() *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response { + this := PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response) GetData() PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response) GetDataOk() (*PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData and assigns it to the Data field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response) SetData(v PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) { + o.Data = &v +} + +func (o PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response struct { + value *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response + isSet bool +} + +func (v NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response) Get() *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response { + return v.value +} + +func (v *NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response) Set(val *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response(val *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response) *NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response { + return &NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response{value: val, isSet: true} +} + +func (v NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response_data.go b/api/model_patch_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response_data.go new file mode 100644 index 00000000..861796c4 --- /dev/null +++ b/api/model_patch_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData{} + +// PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData struct for PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData +type PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTBuyXPayYPromotions201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData instantiates a new PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData() *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData { + this := PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData{} + return &this +} + +// NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataWithDefaults instantiates a new PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataWithDefaults() *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData { + this := PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetAttributes() PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetAttributesOk() (*PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetAttributes(v PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTBuyXPayYPromotions201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData struct { + value *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData + isSet bool +} + +func (v NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) Get() *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData { + return v.value +} + +func (v *NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) Set(val *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData(val *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) *NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData { + return &NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData{value: val, isSet: true} +} + +func (v NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response_data_attributes.go b/api/model_patch_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response_data_attributes.go new file mode 100644 index 00000000..98e633fb --- /dev/null +++ b/api/model_patch_buy_x_pay_y_promotions_buy_x_pay_y_promotion_id_200_response_data_attributes.go @@ -0,0 +1,659 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes{} + +// PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes struct for PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes +type PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes struct { + // The promotion's internal name. + Name interface{} `json:"name,omitempty"` + // The international 3-letter currency code as defined by the ISO 4217 standard. + CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` + // The activation date/time of this promotion. + StartsAt interface{} `json:"starts_at,omitempty"` + // The expiration date/time of this promotion (must be after starts_at). + ExpiresAt interface{} `json:"expires_at,omitempty"` + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. + TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` + // The quantity which defines the threshold for free items (works by multiple of x). + X interface{} `json:"x,omitempty"` + // The quantity which defines how many items you get for free, with the formula x-y. + Y interface{} `json:"y,omitempty"` + // Indicates if the cheapest items are discounted, allowing all of the SKUs in the associated list to be eligible for counting. + CheapestFree interface{} `json:"cheapest_free,omitempty"` +} + +// NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes instantiates a new PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes() *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes { + this := PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes{} + return &this +} + +// NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributesWithDefaults instantiates a new PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributesWithDefaults() *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes { + this := PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasName() bool { + if o != nil && IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given interface{} and assigns it to the Name field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCurrencyCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CurrencyCode +} + +// GetCurrencyCodeOk returns a tuple with the CurrencyCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCurrencyCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.CurrencyCode) { + return nil, false + } + return &o.CurrencyCode, true +} + +// HasCurrencyCode returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasCurrencyCode() bool { + if o != nil && IsNil(o.CurrencyCode) { + return true + } + + return false +} + +// SetCurrencyCode gets a reference to the given interface{} and assigns it to the CurrencyCode field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetCurrencyCode(v interface{}) { + o.CurrencyCode = v +} + +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + +// GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetStartsAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.StartsAt +} + +// GetStartsAtOk returns a tuple with the StartsAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.StartsAt) { + return nil, false + } + return &o.StartsAt, true +} + +// HasStartsAt returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasStartsAt() bool { + if o != nil && IsNil(o.StartsAt) { + return true + } + + return false +} + +// SetStartsAt gets a reference to the given interface{} and assigns it to the StartsAt field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetStartsAt(v interface{}) { + o.StartsAt = v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetExpiresAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExpiresAt) { + return nil, false + } + return &o.ExpiresAt, true +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasExpiresAt() bool { + if o != nil && IsNil(o.ExpiresAt) { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given interface{} and assigns it to the ExpiresAt field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetExpiresAt(v interface{}) { + o.ExpiresAt = v +} + +// GetTotalUsageLimit returns the TotalUsageLimit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetTotalUsageLimit() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.TotalUsageLimit +} + +// GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetTotalUsageLimitOk() (*interface{}, bool) { + if o == nil || IsNil(o.TotalUsageLimit) { + return nil, false + } + return &o.TotalUsageLimit, true +} + +// HasTotalUsageLimit returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasTotalUsageLimit() bool { + if o != nil && IsNil(o.TotalUsageLimit) { + return true + } + + return false +} + +// SetTotalUsageLimit gets a reference to the given interface{} and assigns it to the TotalUsageLimit field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetTotalUsageLimit(v interface{}) { + o.TotalUsageLimit = v +} + +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +// GetX returns the X field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetX() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.X +} + +// GetXOk returns a tuple with the X field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetXOk() (*interface{}, bool) { + if o == nil || IsNil(o.X) { + return nil, false + } + return &o.X, true +} + +// HasX returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasX() bool { + if o != nil && IsNil(o.X) { + return true + } + + return false +} + +// SetX gets a reference to the given interface{} and assigns it to the X field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetX(v interface{}) { + o.X = v +} + +// GetY returns the Y field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetY() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Y +} + +// GetYOk returns a tuple with the Y field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetYOk() (*interface{}, bool) { + if o == nil || IsNil(o.Y) { + return nil, false + } + return &o.Y, true +} + +// HasY returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasY() bool { + if o != nil && IsNil(o.Y) { + return true + } + + return false +} + +// SetY gets a reference to the given interface{} and assigns it to the Y field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetY(v interface{}) { + o.Y = v +} + +// GetCheapestFree returns the CheapestFree field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCheapestFree() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CheapestFree +} + +// GetCheapestFreeOk returns a tuple with the CheapestFree field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) GetCheapestFreeOk() (*interface{}, bool) { + if o == nil || IsNil(o.CheapestFree) { + return nil, false + } + return &o.CheapestFree, true +} + +// HasCheapestFree returns a boolean if a field has been set. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) HasCheapestFree() bool { + if o != nil && IsNil(o.CheapestFree) { + return true + } + + return false +} + +// SetCheapestFree gets a reference to the given interface{} and assigns it to the CheapestFree field. +func (o *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) SetCheapestFree(v interface{}) { + o.CheapestFree = v +} + +func (o PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.CurrencyCode != nil { + toSerialize["currency_code"] = o.CurrencyCode + } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } + if o.StartsAt != nil { + toSerialize["starts_at"] = o.StartsAt + } + if o.ExpiresAt != nil { + toSerialize["expires_at"] = o.ExpiresAt + } + if o.TotalUsageLimit != nil { + toSerialize["total_usage_limit"] = o.TotalUsageLimit + } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.X != nil { + toSerialize["x"] = o.X + } + if o.Y != nil { + toSerialize["y"] = o.Y + } + if o.CheapestFree != nil { + toSerialize["cheapest_free"] = o.CheapestFree + } + return toSerialize, nil +} + +type NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes struct { + value *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes + isSet bool +} + +func (v NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) Get() *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes { + return v.value +} + +func (v *NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) Set(val *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes(val *PATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) *NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes { + return &NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHBuyXPayYPromotionsBuyXPayYPromotionId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_captures_capture_id_200_response.go b/api/model_patch_captures_capture_id_200_response.go index b1d8f284..af5cf616 100644 --- a/api/model_patch_captures_capture_id_200_response.go +++ b/api/model_patch_captures_capture_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_captures_capture_id_200_response_data.go b/api/model_patch_captures_capture_id_200_response_data.go index 810476cf..28283929 100644 --- a/api/model_patch_captures_capture_id_200_response_data.go +++ b/api/model_patch_captures_capture_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_captures_capture_id_200_response_data_attributes.go b/api/model_patch_captures_capture_id_200_response_data_attributes.go index d71815ed..537019da 100644 --- a/api/model_patch_captures_capture_id_200_response_data_attributes.go +++ b/api/model_patch_captures_capture_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,16 +20,22 @@ var _ MappedNullable = &PATCHCapturesCaptureId200ResponseDataAttributes{} // PATCHCapturesCaptureId200ResponseDataAttributes struct for PATCHCapturesCaptureId200ResponseDataAttributes type PATCHCapturesCaptureId200ResponseDataAttributes struct { + // Indicates if the transaction is successful. + Succeeded interface{} `json:"succeeded,omitempty"` + // Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly. + Forward interface{} `json:"_forward,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` // Send this attribute if you want to create a refund for this capture. Refund interface{} `json:"_refund,omitempty"` - // The associated refund amount, in cents. + // Send this attribute as a value in cents if you want to overwrite the amount to be refunded. RefundAmountCents interface{} `json:"_refund_amount_cents,omitempty"` + // Send this attribute if you want to refund a succeeded capture of a pending order (which is left unpaid). + Cancel interface{} `json:"_cancel,omitempty"` } // NewPATCHCapturesCaptureId200ResponseDataAttributes instantiates a new PATCHCapturesCaptureId200ResponseDataAttributes object @@ -49,6 +55,72 @@ func NewPATCHCapturesCaptureId200ResponseDataAttributesWithDefaults() *PATCHCapt return &this } +// GetSucceeded returns the Succeeded field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCapturesCaptureId200ResponseDataAttributes) GetSucceeded() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Succeeded +} + +// GetSucceededOk returns a tuple with the Succeeded field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCapturesCaptureId200ResponseDataAttributes) GetSucceededOk() (*interface{}, bool) { + if o == nil || IsNil(o.Succeeded) { + return nil, false + } + return &o.Succeeded, true +} + +// HasSucceeded returns a boolean if a field has been set. +func (o *PATCHCapturesCaptureId200ResponseDataAttributes) HasSucceeded() bool { + if o != nil && IsNil(o.Succeeded) { + return true + } + + return false +} + +// SetSucceeded gets a reference to the given interface{} and assigns it to the Succeeded field. +func (o *PATCHCapturesCaptureId200ResponseDataAttributes) SetSucceeded(v interface{}) { + o.Succeeded = v +} + +// GetForward returns the Forward field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCapturesCaptureId200ResponseDataAttributes) GetForward() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Forward +} + +// GetForwardOk returns a tuple with the Forward field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCapturesCaptureId200ResponseDataAttributes) GetForwardOk() (*interface{}, bool) { + if o == nil || IsNil(o.Forward) { + return nil, false + } + return &o.Forward, true +} + +// HasForward returns a boolean if a field has been set. +func (o *PATCHCapturesCaptureId200ResponseDataAttributes) HasForward() bool { + if o != nil && IsNil(o.Forward) { + return true + } + + return false +} + +// SetForward gets a reference to the given interface{} and assigns it to the Forward field. +func (o *PATCHCapturesCaptureId200ResponseDataAttributes) SetForward(v interface{}) { + o.Forward = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHCapturesCaptureId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -214,6 +286,39 @@ func (o *PATCHCapturesCaptureId200ResponseDataAttributes) SetRefundAmountCents(v o.RefundAmountCents = v } +// GetCancel returns the Cancel field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCapturesCaptureId200ResponseDataAttributes) GetCancel() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Cancel +} + +// GetCancelOk returns a tuple with the Cancel field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCapturesCaptureId200ResponseDataAttributes) GetCancelOk() (*interface{}, bool) { + if o == nil || IsNil(o.Cancel) { + return nil, false + } + return &o.Cancel, true +} + +// HasCancel returns a boolean if a field has been set. +func (o *PATCHCapturesCaptureId200ResponseDataAttributes) HasCancel() bool { + if o != nil && IsNil(o.Cancel) { + return true + } + + return false +} + +// SetCancel gets a reference to the given interface{} and assigns it to the Cancel field. +func (o *PATCHCapturesCaptureId200ResponseDataAttributes) SetCancel(v interface{}) { + o.Cancel = v +} + func (o PATCHCapturesCaptureId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -224,6 +329,12 @@ func (o PATCHCapturesCaptureId200ResponseDataAttributes) MarshalJSON() ([]byte, func (o PATCHCapturesCaptureId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Succeeded != nil { + toSerialize["succeeded"] = o.Succeeded + } + if o.Forward != nil { + toSerialize["_forward"] = o.Forward + } if o.Reference != nil { toSerialize["reference"] = o.Reference } @@ -239,6 +350,9 @@ func (o PATCHCapturesCaptureId200ResponseDataAttributes) ToMap() (map[string]int if o.RefundAmountCents != nil { toSerialize["_refund_amount_cents"] = o.RefundAmountCents } + if o.Cancel != nil { + toSerialize["_cancel"] = o.Cancel + } return toSerialize, nil } diff --git a/api/model_patch_carrier_accounts_carrier_account_id_200_response.go b/api/model_patch_carrier_accounts_carrier_account_id_200_response.go new file mode 100644 index 00000000..30eb20e7 --- /dev/null +++ b/api/model_patch_carrier_accounts_carrier_account_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHCarrierAccountsCarrierAccountId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHCarrierAccountsCarrierAccountId200Response{} + +// PATCHCarrierAccountsCarrierAccountId200Response struct for PATCHCarrierAccountsCarrierAccountId200Response +type PATCHCarrierAccountsCarrierAccountId200Response struct { + Data *PATCHCarrierAccountsCarrierAccountId200ResponseData `json:"data,omitempty"` +} + +// NewPATCHCarrierAccountsCarrierAccountId200Response instantiates a new PATCHCarrierAccountsCarrierAccountId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHCarrierAccountsCarrierAccountId200Response() *PATCHCarrierAccountsCarrierAccountId200Response { + this := PATCHCarrierAccountsCarrierAccountId200Response{} + return &this +} + +// NewPATCHCarrierAccountsCarrierAccountId200ResponseWithDefaults instantiates a new PATCHCarrierAccountsCarrierAccountId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHCarrierAccountsCarrierAccountId200ResponseWithDefaults() *PATCHCarrierAccountsCarrierAccountId200Response { + this := PATCHCarrierAccountsCarrierAccountId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PATCHCarrierAccountsCarrierAccountId200Response) GetData() PATCHCarrierAccountsCarrierAccountId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret PATCHCarrierAccountsCarrierAccountId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHCarrierAccountsCarrierAccountId200Response) GetDataOk() (*PATCHCarrierAccountsCarrierAccountId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PATCHCarrierAccountsCarrierAccountId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given PATCHCarrierAccountsCarrierAccountId200ResponseData and assigns it to the Data field. +func (o *PATCHCarrierAccountsCarrierAccountId200Response) SetData(v PATCHCarrierAccountsCarrierAccountId200ResponseData) { + o.Data = &v +} + +func (o PATCHCarrierAccountsCarrierAccountId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHCarrierAccountsCarrierAccountId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePATCHCarrierAccountsCarrierAccountId200Response struct { + value *PATCHCarrierAccountsCarrierAccountId200Response + isSet bool +} + +func (v NullablePATCHCarrierAccountsCarrierAccountId200Response) Get() *PATCHCarrierAccountsCarrierAccountId200Response { + return v.value +} + +func (v *NullablePATCHCarrierAccountsCarrierAccountId200Response) Set(val *PATCHCarrierAccountsCarrierAccountId200Response) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHCarrierAccountsCarrierAccountId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHCarrierAccountsCarrierAccountId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHCarrierAccountsCarrierAccountId200Response(val *PATCHCarrierAccountsCarrierAccountId200Response) *NullablePATCHCarrierAccountsCarrierAccountId200Response { + return &NullablePATCHCarrierAccountsCarrierAccountId200Response{value: val, isSet: true} +} + +func (v NullablePATCHCarrierAccountsCarrierAccountId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHCarrierAccountsCarrierAccountId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_carrier_accounts_carrier_account_id_200_response_data.go b/api/model_patch_carrier_accounts_carrier_account_id_200_response_data.go new file mode 100644 index 00000000..447cf5b5 --- /dev/null +++ b/api/model_patch_carrier_accounts_carrier_account_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHCarrierAccountsCarrierAccountId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHCarrierAccountsCarrierAccountId200ResponseData{} + +// PATCHCarrierAccountsCarrierAccountId200ResponseData struct for PATCHCarrierAccountsCarrierAccountId200ResponseData +type PATCHCarrierAccountsCarrierAccountId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTBillingInfoValidationRules201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPATCHCarrierAccountsCarrierAccountId200ResponseData instantiates a new PATCHCarrierAccountsCarrierAccountId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHCarrierAccountsCarrierAccountId200ResponseData() *PATCHCarrierAccountsCarrierAccountId200ResponseData { + this := PATCHCarrierAccountsCarrierAccountId200ResponseData{} + return &this +} + +// NewPATCHCarrierAccountsCarrierAccountId200ResponseDataWithDefaults instantiates a new PATCHCarrierAccountsCarrierAccountId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHCarrierAccountsCarrierAccountId200ResponseDataWithDefaults() *PATCHCarrierAccountsCarrierAccountId200ResponseData { + this := PATCHCarrierAccountsCarrierAccountId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetAttributes() PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetAttributesOk() (*PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) SetAttributes(v PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetRelationships() POSTBillingInfoValidationRules201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTBillingInfoValidationRules201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) GetRelationshipsOk() (*POSTBillingInfoValidationRules201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTBillingInfoValidationRules201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseData) SetRelationships(v POSTBillingInfoValidationRules201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o PATCHCarrierAccountsCarrierAccountId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHCarrierAccountsCarrierAccountId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePATCHCarrierAccountsCarrierAccountId200ResponseData struct { + value *PATCHCarrierAccountsCarrierAccountId200ResponseData + isSet bool +} + +func (v NullablePATCHCarrierAccountsCarrierAccountId200ResponseData) Get() *PATCHCarrierAccountsCarrierAccountId200ResponseData { + return v.value +} + +func (v *NullablePATCHCarrierAccountsCarrierAccountId200ResponseData) Set(val *PATCHCarrierAccountsCarrierAccountId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHCarrierAccountsCarrierAccountId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHCarrierAccountsCarrierAccountId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHCarrierAccountsCarrierAccountId200ResponseData(val *PATCHCarrierAccountsCarrierAccountId200ResponseData) *NullablePATCHCarrierAccountsCarrierAccountId200ResponseData { + return &NullablePATCHCarrierAccountsCarrierAccountId200ResponseData{value: val, isSet: true} +} + +func (v NullablePATCHCarrierAccountsCarrierAccountId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHCarrierAccountsCarrierAccountId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_carrier_accounts_carrier_account_id_200_response_data_attributes.go b/api/model_patch_carrier_accounts_carrier_account_id_200_response_data_attributes.go new file mode 100644 index 00000000..079d9fde --- /dev/null +++ b/api/model_patch_carrier_accounts_carrier_account_id_200_response_data_attributes.go @@ -0,0 +1,317 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes{} + +// PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes struct for PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes +type PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes struct { + // The carrier account internal name. + Name interface{} `json:"name,omitempty"` + // The Easypost service carrier type. + EasypostType interface{} `json:"easypost_type,omitempty"` + // The Easypost carrier accounts credentials fields. + Credentials interface{} `json:"credentials,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes instantiates a new PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes() *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes { + this := PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes{} + return &this +} + +// NewPATCHCarrierAccountsCarrierAccountId200ResponseDataAttributesWithDefaults instantiates a new PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHCarrierAccountsCarrierAccountId200ResponseDataAttributesWithDefaults() *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes { + this := PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) HasName() bool { + if o != nil && IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given interface{} and assigns it to the Name field. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetEasypostType returns the EasypostType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetEasypostType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.EasypostType +} + +// GetEasypostTypeOk returns a tuple with the EasypostType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetEasypostTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.EasypostType) { + return nil, false + } + return &o.EasypostType, true +} + +// HasEasypostType returns a boolean if a field has been set. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) HasEasypostType() bool { + if o != nil && IsNil(o.EasypostType) { + return true + } + + return false +} + +// SetEasypostType gets a reference to the given interface{} and assigns it to the EasypostType field. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetEasypostType(v interface{}) { + o.EasypostType = v +} + +// GetCredentials returns the Credentials field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetCredentials() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetCredentialsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Credentials) { + return nil, false + } + return &o.Credentials, true +} + +// HasCredentials returns a boolean if a field has been set. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) HasCredentials() bool { + if o != nil && IsNil(o.Credentials) { + return true + } + + return false +} + +// SetCredentials gets a reference to the given interface{} and assigns it to the Credentials field. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetCredentials(v interface{}) { + o.Credentials = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.EasypostType != nil { + toSerialize["easypost_type"] = o.EasypostType + } + if o.Credentials != nil { + toSerialize["credentials"] = o.Credentials + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes struct { + value *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes + isSet bool +} + +func (v NullablePATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) Get() *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes { + return v.value +} + +func (v *NullablePATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) Set(val *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes(val *PATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) *NullablePATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes { + return &NullablePATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHCarrierAccountsCarrierAccountId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_checkout_com_gateways_checkout_com_gateway_id_200_response.go b/api/model_patch_checkout_com_gateways_checkout_com_gateway_id_200_response.go index 443eba9e..73d404c3 100644 --- a/api/model_patch_checkout_com_gateways_checkout_com_gateway_id_200_response.go +++ b/api/model_patch_checkout_com_gateways_checkout_com_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_checkout_com_gateways_checkout_com_gateway_id_200_response_data.go b/api/model_patch_checkout_com_gateways_checkout_com_gateway_id_200_response_data.go index d4fa8185..96acd9f1 100644 --- a/api/model_patch_checkout_com_gateways_checkout_com_gateway_id_200_response_data.go +++ b/api/model_patch_checkout_com_gateways_checkout_com_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_checkout_com_gateways_checkout_com_gateway_id_200_response_data_attributes.go b/api/model_patch_checkout_com_gateways_checkout_com_gateway_id_200_response_data_attributes.go index 00ee0a87..ffd14cbb 100644 --- a/api/model_patch_checkout_com_gateways_checkout_com_gateway_id_200_response_data_attributes.go +++ b/api/model_patch_checkout_com_gateways_checkout_com_gateway_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type PATCHCheckoutComGatewaysCheckoutComGatewayId200ResponseDataAttributes struc Name interface{} `json:"name,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_checkout_com_payments_checkout_com_payment_id_200_response.go b/api/model_patch_checkout_com_payments_checkout_com_payment_id_200_response.go index e6235a83..38798faa 100644 --- a/api/model_patch_checkout_com_payments_checkout_com_payment_id_200_response.go +++ b/api/model_patch_checkout_com_payments_checkout_com_payment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_checkout_com_payments_checkout_com_payment_id_200_response_data.go b/api/model_patch_checkout_com_payments_checkout_com_payment_id_200_response_data.go index b7a6a85a..70e4a138 100644 --- a/api/model_patch_checkout_com_payments_checkout_com_payment_id_200_response_data.go +++ b/api/model_patch_checkout_com_payments_checkout_com_payment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_checkout_com_payments_checkout_com_payment_id_200_response_data_attributes.go b/api/model_patch_checkout_com_payments_checkout_com_payment_id_200_response_data_attributes.go index 6559a764..d81fe37e 100644 --- a/api/model_patch_checkout_com_payments_checkout_com_payment_id_200_response_data_attributes.go +++ b/api/model_patch_checkout_com_payments_checkout_com_payment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -36,7 +36,7 @@ type PATCHCheckoutComPaymentsCheckoutComPaymentId200ResponseDataAttributes struc Refresh interface{} `json:"_refresh,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_cleanups_cleanup_id_200_response.go b/api/model_patch_cleanups_cleanup_id_200_response.go new file mode 100644 index 00000000..7c5d36bc --- /dev/null +++ b/api/model_patch_cleanups_cleanup_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHCleanupsCleanupId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHCleanupsCleanupId200Response{} + +// PATCHCleanupsCleanupId200Response struct for PATCHCleanupsCleanupId200Response +type PATCHCleanupsCleanupId200Response struct { + Data *PATCHCleanupsCleanupId200ResponseData `json:"data,omitempty"` +} + +// NewPATCHCleanupsCleanupId200Response instantiates a new PATCHCleanupsCleanupId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHCleanupsCleanupId200Response() *PATCHCleanupsCleanupId200Response { + this := PATCHCleanupsCleanupId200Response{} + return &this +} + +// NewPATCHCleanupsCleanupId200ResponseWithDefaults instantiates a new PATCHCleanupsCleanupId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHCleanupsCleanupId200ResponseWithDefaults() *PATCHCleanupsCleanupId200Response { + this := PATCHCleanupsCleanupId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PATCHCleanupsCleanupId200Response) GetData() PATCHCleanupsCleanupId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret PATCHCleanupsCleanupId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHCleanupsCleanupId200Response) GetDataOk() (*PATCHCleanupsCleanupId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PATCHCleanupsCleanupId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given PATCHCleanupsCleanupId200ResponseData and assigns it to the Data field. +func (o *PATCHCleanupsCleanupId200Response) SetData(v PATCHCleanupsCleanupId200ResponseData) { + o.Data = &v +} + +func (o PATCHCleanupsCleanupId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHCleanupsCleanupId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePATCHCleanupsCleanupId200Response struct { + value *PATCHCleanupsCleanupId200Response + isSet bool +} + +func (v NullablePATCHCleanupsCleanupId200Response) Get() *PATCHCleanupsCleanupId200Response { + return v.value +} + +func (v *NullablePATCHCleanupsCleanupId200Response) Set(val *PATCHCleanupsCleanupId200Response) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHCleanupsCleanupId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHCleanupsCleanupId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHCleanupsCleanupId200Response(val *PATCHCleanupsCleanupId200Response) *NullablePATCHCleanupsCleanupId200Response { + return &NullablePATCHCleanupsCleanupId200Response{value: val, isSet: true} +} + +func (v NullablePATCHCleanupsCleanupId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHCleanupsCleanupId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_cleanups_cleanup_id_200_response_data.go b/api/model_patch_cleanups_cleanup_id_200_response_data.go new file mode 100644 index 00000000..d3f230a4 --- /dev/null +++ b/api/model_patch_cleanups_cleanup_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHCleanupsCleanupId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHCleanupsCleanupId200ResponseData{} + +// PATCHCleanupsCleanupId200ResponseData struct for PATCHCleanupsCleanupId200ResponseData +type PATCHCleanupsCleanupId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTCleanups201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPATCHCleanupsCleanupId200ResponseData instantiates a new PATCHCleanupsCleanupId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHCleanupsCleanupId200ResponseData() *PATCHCleanupsCleanupId200ResponseData { + this := PATCHCleanupsCleanupId200ResponseData{} + return &this +} + +// NewPATCHCleanupsCleanupId200ResponseDataWithDefaults instantiates a new PATCHCleanupsCleanupId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHCleanupsCleanupId200ResponseDataWithDefaults() *PATCHCleanupsCleanupId200ResponseData { + this := PATCHCleanupsCleanupId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCleanupsCleanupId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCleanupsCleanupId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PATCHCleanupsCleanupId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *PATCHCleanupsCleanupId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCleanupsCleanupId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCleanupsCleanupId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PATCHCleanupsCleanupId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *PATCHCleanupsCleanupId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PATCHCleanupsCleanupId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHCleanupsCleanupId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PATCHCleanupsCleanupId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *PATCHCleanupsCleanupId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *PATCHCleanupsCleanupId200ResponseData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHCleanupsCleanupId200ResponseData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *PATCHCleanupsCleanupId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *PATCHCleanupsCleanupId200ResponseData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PATCHCleanupsCleanupId200ResponseData) GetRelationships() POSTCleanups201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTCleanups201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHCleanupsCleanupId200ResponseData) GetRelationshipsOk() (*POSTCleanups201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PATCHCleanupsCleanupId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTCleanups201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHCleanupsCleanupId200ResponseData) SetRelationships(v POSTCleanups201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o PATCHCleanupsCleanupId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHCleanupsCleanupId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePATCHCleanupsCleanupId200ResponseData struct { + value *PATCHCleanupsCleanupId200ResponseData + isSet bool +} + +func (v NullablePATCHCleanupsCleanupId200ResponseData) Get() *PATCHCleanupsCleanupId200ResponseData { + return v.value +} + +func (v *NullablePATCHCleanupsCleanupId200ResponseData) Set(val *PATCHCleanupsCleanupId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHCleanupsCleanupId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHCleanupsCleanupId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHCleanupsCleanupId200ResponseData(val *PATCHCleanupsCleanupId200ResponseData) *NullablePATCHCleanupsCleanupId200ResponseData { + return &NullablePATCHCleanupsCleanupId200ResponseData{value: val, isSet: true} +} + +func (v NullablePATCHCleanupsCleanupId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHCleanupsCleanupId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response.go b/api/model_patch_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response.go index 73364a88..c03b60c8 100644 --- a/api/model_patch_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response.go +++ b/api/model_patch_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response_data.go b/api/model_patch_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response_data.go index 6cabb2b8..44547c87 100644 --- a/api/model_patch_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response_data.go +++ b/api/model_patch_coupon_codes_promotion_rules_coupon_codes_promotion_rule_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_coupon_recipients_coupon_recipient_id_200_response.go b/api/model_patch_coupon_recipients_coupon_recipient_id_200_response.go index 3b4da525..09a7d768 100644 --- a/api/model_patch_coupon_recipients_coupon_recipient_id_200_response.go +++ b/api/model_patch_coupon_recipients_coupon_recipient_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_coupon_recipients_coupon_recipient_id_200_response_data.go b/api/model_patch_coupon_recipients_coupon_recipient_id_200_response_data.go index 1d50194d..42e3278d 100644 --- a/api/model_patch_coupon_recipients_coupon_recipient_id_200_response_data.go +++ b/api/model_patch_coupon_recipients_coupon_recipient_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_coupon_recipients_coupon_recipient_id_200_response_data_attributes.go b/api/model_patch_coupon_recipients_coupon_recipient_id_200_response_data_attributes.go index 4c497cb7..21d90c07 100644 --- a/api/model_patch_coupon_recipients_coupon_recipient_id_200_response_data_attributes.go +++ b/api/model_patch_coupon_recipients_coupon_recipient_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,15 +20,15 @@ var _ MappedNullable = &PATCHCouponRecipientsCouponRecipientId200ResponseDataAtt // PATCHCouponRecipientsCouponRecipientId200ResponseDataAttributes struct for PATCHCouponRecipientsCouponRecipientId200ResponseDataAttributes type PATCHCouponRecipientsCouponRecipientId200ResponseDataAttributes struct { - // The recipient email address + // The recipient email address. Email interface{} `json:"email,omitempty"` - // The recipient first name + // The recipient first name. FirstName interface{} `json:"first_name,omitempty"` - // The recipient last name + // The recipient last name. LastName interface{} `json:"last_name,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_coupons_coupon_id_200_response.go b/api/model_patch_coupons_coupon_id_200_response.go index 6a11a6da..83022d05 100644 --- a/api/model_patch_coupons_coupon_id_200_response.go +++ b/api/model_patch_coupons_coupon_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_coupons_coupon_id_200_response_data.go b/api/model_patch_coupons_coupon_id_200_response_data.go index c685604e..982ceb59 100644 --- a/api/model_patch_coupons_coupon_id_200_response_data.go +++ b/api/model_patch_coupons_coupon_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_coupons_coupon_id_200_response_data_attributes.go b/api/model_patch_coupons_coupon_id_200_response_data_attributes.go index 17b41c30..81e7e94e 100644 --- a/api/model_patch_coupons_coupon_id_200_response_data_attributes.go +++ b/api/model_patch_coupons_coupon_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,9 +28,11 @@ type PATCHCouponsCouponId200ResponseDataAttributes struct { UsageLimit interface{} `json:"usage_limit,omitempty"` // The email address of the associated recipient. When creating or updating a coupon, this is a shortcut to find or create the associated recipient by email. RecipientEmail interface{} `json:"recipient_email,omitempty"` + // Time at which the coupon will expire. + ExpiresAt interface{} `json:"expires_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -185,6 +187,39 @@ func (o *PATCHCouponsCouponId200ResponseDataAttributes) SetRecipientEmail(v inte o.RecipientEmail = v } +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCouponsCouponId200ResponseDataAttributes) GetExpiresAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCouponsCouponId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExpiresAt) { + return nil, false + } + return &o.ExpiresAt, true +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *PATCHCouponsCouponId200ResponseDataAttributes) HasExpiresAt() bool { + if o != nil && IsNil(o.ExpiresAt) { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given interface{} and assigns it to the ExpiresAt field. +func (o *PATCHCouponsCouponId200ResponseDataAttributes) SetExpiresAt(v interface{}) { + o.ExpiresAt = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHCouponsCouponId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -306,6 +341,9 @@ func (o PATCHCouponsCouponId200ResponseDataAttributes) ToMap() (map[string]inter if o.RecipientEmail != nil { toSerialize["recipient_email"] = o.RecipientEmail } + if o.ExpiresAt != nil { + toSerialize["expires_at"] = o.ExpiresAt + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_patch_custom_promotion_rules_custom_promotion_rule_id_200_response.go b/api/model_patch_custom_promotion_rules_custom_promotion_rule_id_200_response.go new file mode 100644 index 00000000..f60d79ef --- /dev/null +++ b/api/model_patch_custom_promotion_rules_custom_promotion_rule_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHCustomPromotionRulesCustomPromotionRuleId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHCustomPromotionRulesCustomPromotionRuleId200Response{} + +// PATCHCustomPromotionRulesCustomPromotionRuleId200Response struct for PATCHCustomPromotionRulesCustomPromotionRuleId200Response +type PATCHCustomPromotionRulesCustomPromotionRuleId200Response struct { + Data *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData `json:"data,omitempty"` +} + +// NewPATCHCustomPromotionRulesCustomPromotionRuleId200Response instantiates a new PATCHCustomPromotionRulesCustomPromotionRuleId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHCustomPromotionRulesCustomPromotionRuleId200Response() *PATCHCustomPromotionRulesCustomPromotionRuleId200Response { + this := PATCHCustomPromotionRulesCustomPromotionRuleId200Response{} + return &this +} + +// NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseWithDefaults instantiates a new PATCHCustomPromotionRulesCustomPromotionRuleId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseWithDefaults() *PATCHCustomPromotionRulesCustomPromotionRuleId200Response { + this := PATCHCustomPromotionRulesCustomPromotionRuleId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200Response) GetData() PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200Response) GetDataOk() (*PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData and assigns it to the Data field. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200Response) SetData(v PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) { + o.Data = &v +} + +func (o PATCHCustomPromotionRulesCustomPromotionRuleId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHCustomPromotionRulesCustomPromotionRuleId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePATCHCustomPromotionRulesCustomPromotionRuleId200Response struct { + value *PATCHCustomPromotionRulesCustomPromotionRuleId200Response + isSet bool +} + +func (v NullablePATCHCustomPromotionRulesCustomPromotionRuleId200Response) Get() *PATCHCustomPromotionRulesCustomPromotionRuleId200Response { + return v.value +} + +func (v *NullablePATCHCustomPromotionRulesCustomPromotionRuleId200Response) Set(val *PATCHCustomPromotionRulesCustomPromotionRuleId200Response) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHCustomPromotionRulesCustomPromotionRuleId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHCustomPromotionRulesCustomPromotionRuleId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHCustomPromotionRulesCustomPromotionRuleId200Response(val *PATCHCustomPromotionRulesCustomPromotionRuleId200Response) *NullablePATCHCustomPromotionRulesCustomPromotionRuleId200Response { + return &NullablePATCHCustomPromotionRulesCustomPromotionRuleId200Response{value: val, isSet: true} +} + +func (v NullablePATCHCustomPromotionRulesCustomPromotionRuleId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHCustomPromotionRulesCustomPromotionRuleId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_custom_promotion_rules_custom_promotion_rule_id_200_response_data.go b/api/model_patch_custom_promotion_rules_custom_promotion_rule_id_200_response_data.go new file mode 100644 index 00000000..849c42df --- /dev/null +++ b/api/model_patch_custom_promotion_rules_custom_promotion_rule_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData{} + +// PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData struct for PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData +type PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTCustomPromotionRules201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData instantiates a new PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData() *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData { + this := PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData{} + return &this +} + +// NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataWithDefaults instantiates a new PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataWithDefaults() *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData { + this := PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetAttributes() PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetAttributesOk() (*PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetAttributes(v PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetRelationships() POSTCustomPromotionRules201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTCustomPromotionRules201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) GetRelationshipsOk() (*POSTCustomPromotionRules201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTCustomPromotionRules201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) SetRelationships(v POSTCustomPromotionRules201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData struct { + value *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData + isSet bool +} + +func (v NullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) Get() *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData { + return v.value +} + +func (v *NullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) Set(val *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData(val *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) *NullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData { + return &NullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData{value: val, isSet: true} +} + +func (v NullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_custom_promotion_rules_custom_promotion_rule_id_200_response_data_attributes.go b/api/model_patch_custom_promotion_rules_custom_promotion_rule_id_200_response_data_attributes.go new file mode 100644 index 00000000..1f674531 --- /dev/null +++ b/api/model_patch_custom_promotion_rules_custom_promotion_rule_id_200_response_data_attributes.go @@ -0,0 +1,241 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes{} + +// PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes struct for PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes +type PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes struct { + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` + // The filters used to trigger promotion on the matching order and its relationships attributes. + Filters interface{} `json:"filters,omitempty"` +} + +// NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes instantiates a new PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes() *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes { + this := PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes{} + return &this +} + +// NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributesWithDefaults instantiates a new PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributesWithDefaults() *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes { + this := PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes{} + return &this +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +// GetFilters returns the Filters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetFilters() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Filters +} + +// GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) GetFiltersOk() (*interface{}, bool) { + if o == nil || IsNil(o.Filters) { + return nil, false + } + return &o.Filters, true +} + +// HasFilters returns a boolean if a field has been set. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) HasFilters() bool { + if o != nil && IsNil(o.Filters) { + return true + } + + return false +} + +// SetFilters gets a reference to the given interface{} and assigns it to the Filters field. +func (o *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) SetFilters(v interface{}) { + o.Filters = v +} + +func (o PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Filters != nil { + toSerialize["filters"] = o.Filters + } + return toSerialize, nil +} + +type NullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes struct { + value *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes + isSet bool +} + +func (v NullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) Get() *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes { + return v.value +} + +func (v *NullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) Set(val *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes(val *PATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) *NullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes { + return &NullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHCustomPromotionRulesCustomPromotionRuleId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_customer_addresses_customer_address_id_200_response.go b/api/model_patch_customer_addresses_customer_address_id_200_response.go index cb9394d1..9995c73d 100644 --- a/api/model_patch_customer_addresses_customer_address_id_200_response.go +++ b/api/model_patch_customer_addresses_customer_address_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_customer_addresses_customer_address_id_200_response_data.go b/api/model_patch_customer_addresses_customer_address_id_200_response_data.go index 1d0df567..7dfa326e 100644 --- a/api/model_patch_customer_addresses_customer_address_id_200_response_data.go +++ b/api/model_patch_customer_addresses_customer_address_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_customer_groups_customer_group_id_200_response.go b/api/model_patch_customer_groups_customer_group_id_200_response.go index accd4485..a632cb4e 100644 --- a/api/model_patch_customer_groups_customer_group_id_200_response.go +++ b/api/model_patch_customer_groups_customer_group_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_customer_groups_customer_group_id_200_response_data.go b/api/model_patch_customer_groups_customer_group_id_200_response_data.go index 2bbd860b..f57a4350 100644 --- a/api/model_patch_customer_groups_customer_group_id_200_response_data.go +++ b/api/model_patch_customer_groups_customer_group_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_customer_groups_customer_group_id_200_response_data_attributes.go b/api/model_patch_customer_groups_customer_group_id_200_response_data_attributes.go index 4238d22b..5b95437d 100644 --- a/api/model_patch_customer_groups_customer_group_id_200_response_data_attributes.go +++ b/api/model_patch_customer_groups_customer_group_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,11 +20,13 @@ var _ MappedNullable = &PATCHCustomerGroupsCustomerGroupId200ResponseDataAttribu // PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes struct for PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes type PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes struct { - // The customer group's internal name + // The customer group's internal name. Name interface{} `json:"name,omitempty"` + // A string that you can use to identify the customer group (must be unique within the environment). + Code interface{} `json:"code,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -80,6 +82,39 @@ func (o *PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes) SetName(v o.Name = v } +// GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes) GetCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return &o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes) HasCode() bool { + if o != nil && IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given interface{} and assigns it to the Code field. +func (o *PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes) SetCode(v interface{}) { + o.Code = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -192,6 +227,9 @@ func (o PATCHCustomerGroupsCustomerGroupId200ResponseDataAttributes) ToMap() (ma if o.Name != nil { toSerialize["name"] = o.Name } + if o.Code != nil { + toSerialize["code"] = o.Code + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_patch_customer_password_resets_customer_password_reset_id_200_response.go b/api/model_patch_customer_password_resets_customer_password_reset_id_200_response.go index 68d809c6..41f735d6 100644 --- a/api/model_patch_customer_password_resets_customer_password_reset_id_200_response.go +++ b/api/model_patch_customer_password_resets_customer_password_reset_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_customer_password_resets_customer_password_reset_id_200_response_data.go b/api/model_patch_customer_password_resets_customer_password_reset_id_200_response_data.go index 697b87fe..3babda87 100644 --- a/api/model_patch_customer_password_resets_customer_password_reset_id_200_response_data.go +++ b/api/model_patch_customer_password_resets_customer_password_reset_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_customer_password_resets_customer_password_reset_id_200_response_data_attributes.go b/api/model_patch_customer_password_resets_customer_password_reset_id_200_response_data_attributes.go index 6960f73e..9908c872 100644 --- a/api/model_patch_customer_password_resets_customer_password_reset_id_200_response_data_attributes.go +++ b/api/model_patch_customer_password_resets_customer_password_reset_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type PATCHCustomerPasswordResetsCustomerPasswordResetId200ResponseDataAttributes ResetPasswordToken interface{} `json:"_reset_password_token,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_customer_payment_sources_customer_payment_source_id_200_response.go b/api/model_patch_customer_payment_sources_customer_payment_source_id_200_response.go index 867e2e6f..000f1ab1 100644 --- a/api/model_patch_customer_payment_sources_customer_payment_source_id_200_response.go +++ b/api/model_patch_customer_payment_sources_customer_payment_source_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_customer_payment_sources_customer_payment_source_id_200_response_data.go b/api/model_patch_customer_payment_sources_customer_payment_source_id_200_response_data.go index 53d0ea2a..7576e021 100644 --- a/api/model_patch_customer_payment_sources_customer_payment_source_id_200_response_data.go +++ b/api/model_patch_customer_payment_sources_customer_payment_source_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTCustomerPaymentSources201ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTCustomerPaymentSources201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData instantiates a new PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData object @@ -145,9 +145,9 @@ func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData) SetL } // GetAttributes returns the Attributes field value if set, zero value otherwise. -func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes { +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData) GetAttributes() PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes { if o == nil || IsNil(o.Attributes) { - var ret PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes + var ret PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes return ret } return *o.Attributes @@ -155,7 +155,7 @@ func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData) GetA // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool) { +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData) GetAttributesOk() (*PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes, bool) { if o == nil || IsNil(o.Attributes) { return nil, false } @@ -171,8 +171,8 @@ func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData) HasA return false } -// SetAttributes gets a reference to the given PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes and assigns it to the Attributes field. -func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) { +// SetAttributes gets a reference to the given PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseData) SetAttributes(v PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) { o.Attributes = &v } diff --git a/api/model_patch_customer_payment_sources_customer_payment_source_id_200_response_data_attributes.go b/api/model_patch_customer_payment_sources_customer_payment_source_id_200_response_data_attributes.go new file mode 100644 index 00000000..426d1e42 --- /dev/null +++ b/api/model_patch_customer_payment_sources_customer_payment_source_id_200_response_data_attributes.go @@ -0,0 +1,279 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes{} + +// PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes struct for PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes +type PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes struct { + // Returns the customer gateway token stored in the gateway. + CustomerToken interface{} `json:"customer_token,omitempty"` + // Returns the payment source token stored in the gateway. + PaymentSourceToken interface{} `json:"payment_source_token,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes instantiates a new PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes() *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes { + this := PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes{} + return &this +} + +// NewPATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributesWithDefaults instantiates a new PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributesWithDefaults() *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes { + this := PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes{} + return &this +} + +// GetCustomerToken returns the CustomerToken field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetCustomerToken() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CustomerToken +} + +// GetCustomerTokenOk returns a tuple with the CustomerToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetCustomerTokenOk() (*interface{}, bool) { + if o == nil || IsNil(o.CustomerToken) { + return nil, false + } + return &o.CustomerToken, true +} + +// HasCustomerToken returns a boolean if a field has been set. +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) HasCustomerToken() bool { + if o != nil && IsNil(o.CustomerToken) { + return true + } + + return false +} + +// SetCustomerToken gets a reference to the given interface{} and assigns it to the CustomerToken field. +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) SetCustomerToken(v interface{}) { + o.CustomerToken = v +} + +// GetPaymentSourceToken returns the PaymentSourceToken field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetPaymentSourceToken() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PaymentSourceToken +} + +// GetPaymentSourceTokenOk returns a tuple with the PaymentSourceToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetPaymentSourceTokenOk() (*interface{}, bool) { + if o == nil || IsNil(o.PaymentSourceToken) { + return nil, false + } + return &o.PaymentSourceToken, true +} + +// HasPaymentSourceToken returns a boolean if a field has been set. +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) HasPaymentSourceToken() bool { + if o != nil && IsNil(o.PaymentSourceToken) { + return true + } + + return false +} + +// SetPaymentSourceToken gets a reference to the given interface{} and assigns it to the PaymentSourceToken field. +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) SetPaymentSourceToken(v interface{}) { + o.PaymentSourceToken = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.CustomerToken != nil { + toSerialize["customer_token"] = o.CustomerToken + } + if o.PaymentSourceToken != nil { + toSerialize["payment_source_token"] = o.PaymentSourceToken + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes struct { + value *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes + isSet bool +} + +func (v NullablePATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) Get() *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes { + return v.value +} + +func (v *NullablePATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) Set(val *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes(val *PATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) *NullablePATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes { + return &NullablePATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHCustomerPaymentSourcesCustomerPaymentSourceId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_customer_subscriptions_customer_subscription_id_200_response.go b/api/model_patch_customer_subscriptions_customer_subscription_id_200_response.go index 00721cde..9f360526 100644 --- a/api/model_patch_customer_subscriptions_customer_subscription_id_200_response.go +++ b/api/model_patch_customer_subscriptions_customer_subscription_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_customer_subscriptions_customer_subscription_id_200_response_data.go b/api/model_patch_customer_subscriptions_customer_subscription_id_200_response_data.go index 2e9f7e21..a67cff91 100644 --- a/api/model_patch_customer_subscriptions_customer_subscription_id_200_response_data.go +++ b/api/model_patch_customer_subscriptions_customer_subscription_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTCustomerPasswordResets201ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTCustomerSubscriptions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData instantiates a new PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData object @@ -145,9 +145,9 @@ func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) SetLin } // GetAttributes returns the Attributes field value if set, zero value otherwise. -func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes { +func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetAttributes() PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes { if o == nil || IsNil(o.Attributes) { - var ret PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes + var ret PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes return ret } return *o.Attributes @@ -155,7 +155,7 @@ func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetAtt // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool) { +func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetAttributesOk() (*PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes, bool) { if o == nil || IsNil(o.Attributes) { return nil, false } @@ -171,15 +171,15 @@ func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) HasAtt return false } -// SetAttributes gets a reference to the given PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes and assigns it to the Attributes field. -func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) { +// SetAttributes gets a reference to the given PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) SetAttributes(v PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) { o.Attributes = &v } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetRelationships() POSTCustomerPasswordResets201ResponseDataRelationships { +func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetRelationships() POSTCustomerSubscriptions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTCustomerPasswordResets201ResponseDataRelationships + var ret POSTCustomerSubscriptions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetRel // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetRelationshipsOk() (*POSTCustomerPasswordResets201ResponseDataRelationships, bool) { +func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) GetRelationshipsOk() (*POSTCustomerSubscriptions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) HasRel return false } -// SetRelationships gets a reference to the given POSTCustomerPasswordResets201ResponseDataRelationships and assigns it to the Relationships field. -func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) SetRelationships(v POSTCustomerPasswordResets201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTCustomerSubscriptions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseData) SetRelationships(v POSTCustomerSubscriptions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_patch_customer_subscriptions_customer_subscription_id_200_response_data_attributes.go b/api/model_patch_customer_subscriptions_customer_subscription_id_200_response_data_attributes.go new file mode 100644 index 00000000..08a70f39 --- /dev/null +++ b/api/model_patch_customer_subscriptions_customer_subscription_id_200_response_data_attributes.go @@ -0,0 +1,203 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes{} + +// PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes struct for PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes +type PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes struct { + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes instantiates a new PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes() *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes { + this := PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes{} + return &this +} + +// NewPATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributesWithDefaults instantiates a new PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributesWithDefaults() *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes { + this := PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes{} + return &this +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes struct { + value *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes + isSet bool +} + +func (v NullablePATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) Get() *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes { + return v.value +} + +func (v *NullablePATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) Set(val *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes(val *PATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) *NullablePATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes { + return &NullablePATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHCustomerSubscriptionsCustomerSubscriptionId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_customers_customer_id_200_response.go b/api/model_patch_customers_customer_id_200_response.go index fa13a3c9..c9cd9b69 100644 --- a/api/model_patch_customers_customer_id_200_response.go +++ b/api/model_patch_customers_customer_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_customers_customer_id_200_response_data.go b/api/model_patch_customers_customer_id_200_response_data.go index 51bcae5d..215bf005 100644 --- a/api/model_patch_customers_customer_id_200_response_data.go +++ b/api/model_patch_customers_customer_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_customers_customer_id_200_response_data_attributes.go b/api/model_patch_customers_customer_id_200_response_data_attributes.go index 7fe7bd26..e3eb3f66 100644 --- a/api/model_patch_customers_customer_id_200_response_data_attributes.go +++ b/api/model_patch_customers_customer_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,13 +20,15 @@ var _ MappedNullable = &PATCHCustomersCustomerId200ResponseDataAttributes{} // PATCHCustomersCustomerId200ResponseDataAttributes struct for PATCHCustomersCustomerId200ResponseDataAttributes type PATCHCustomersCustomerId200ResponseDataAttributes struct { - // The customer's email address + // The customer's email address. Email interface{} `json:"email,omitempty"` // The customer's password. Initiate a customer password reset flow if you need to change it. Password interface{} `json:"password,omitempty"` + // A reference to uniquely identify the shopper during payment sessions. + ShopperReference interface{} `json:"shopper_reference,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -115,6 +117,39 @@ func (o *PATCHCustomersCustomerId200ResponseDataAttributes) SetPassword(v interf o.Password = v } +// GetShopperReference returns the ShopperReference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHCustomersCustomerId200ResponseDataAttributes) GetShopperReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ShopperReference +} + +// GetShopperReferenceOk returns a tuple with the ShopperReference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHCustomersCustomerId200ResponseDataAttributes) GetShopperReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.ShopperReference) { + return nil, false + } + return &o.ShopperReference, true +} + +// HasShopperReference returns a boolean if a field has been set. +func (o *PATCHCustomersCustomerId200ResponseDataAttributes) HasShopperReference() bool { + if o != nil && IsNil(o.ShopperReference) { + return true + } + + return false +} + +// SetShopperReference gets a reference to the given interface{} and assigns it to the ShopperReference field. +func (o *PATCHCustomersCustomerId200ResponseDataAttributes) SetShopperReference(v interface{}) { + o.ShopperReference = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHCustomersCustomerId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -230,6 +265,9 @@ func (o PATCHCustomersCustomerId200ResponseDataAttributes) ToMap() (map[string]i if o.Password != nil { toSerialize["password"] = o.Password } + if o.ShopperReference != nil { + toSerialize["shopper_reference"] = o.ShopperReference + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_patch_delivery_lead_times_delivery_lead_time_id_200_response.go b/api/model_patch_delivery_lead_times_delivery_lead_time_id_200_response.go index c070f349..42a02fb4 100644 --- a/api/model_patch_delivery_lead_times_delivery_lead_time_id_200_response.go +++ b/api/model_patch_delivery_lead_times_delivery_lead_time_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_delivery_lead_times_delivery_lead_time_id_200_response_data.go b/api/model_patch_delivery_lead_times_delivery_lead_time_id_200_response_data.go index 19c16a1e..b1603358 100644 --- a/api/model_patch_delivery_lead_times_delivery_lead_time_id_200_response_data.go +++ b/api/model_patch_delivery_lead_times_delivery_lead_time_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_delivery_lead_times_delivery_lead_time_id_200_response_data_attributes.go b/api/model_patch_delivery_lead_times_delivery_lead_time_id_200_response_data_attributes.go index 6726a4a1..169cac77 100644 --- a/api/model_patch_delivery_lead_times_delivery_lead_time_id_200_response_data_attributes.go +++ b/api/model_patch_delivery_lead_times_delivery_lead_time_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type PATCHDeliveryLeadTimesDeliveryLeadTimeId200ResponseDataAttributes struct { MaxHours interface{} `json:"max_hours,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_events_event_id_200_response.go b/api/model_patch_events_event_id_200_response.go new file mode 100644 index 00000000..ae2139b3 --- /dev/null +++ b/api/model_patch_events_event_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHEventsEventId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHEventsEventId200Response{} + +// PATCHEventsEventId200Response struct for PATCHEventsEventId200Response +type PATCHEventsEventId200Response struct { + Data *PATCHEventsEventId200ResponseData `json:"data,omitempty"` +} + +// NewPATCHEventsEventId200Response instantiates a new PATCHEventsEventId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHEventsEventId200Response() *PATCHEventsEventId200Response { + this := PATCHEventsEventId200Response{} + return &this +} + +// NewPATCHEventsEventId200ResponseWithDefaults instantiates a new PATCHEventsEventId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHEventsEventId200ResponseWithDefaults() *PATCHEventsEventId200Response { + this := PATCHEventsEventId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PATCHEventsEventId200Response) GetData() PATCHEventsEventId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret PATCHEventsEventId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHEventsEventId200Response) GetDataOk() (*PATCHEventsEventId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PATCHEventsEventId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given PATCHEventsEventId200ResponseData and assigns it to the Data field. +func (o *PATCHEventsEventId200Response) SetData(v PATCHEventsEventId200ResponseData) { + o.Data = &v +} + +func (o PATCHEventsEventId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHEventsEventId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePATCHEventsEventId200Response struct { + value *PATCHEventsEventId200Response + isSet bool +} + +func (v NullablePATCHEventsEventId200Response) Get() *PATCHEventsEventId200Response { + return v.value +} + +func (v *NullablePATCHEventsEventId200Response) Set(val *PATCHEventsEventId200Response) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHEventsEventId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHEventsEventId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHEventsEventId200Response(val *PATCHEventsEventId200Response) *NullablePATCHEventsEventId200Response { + return &NullablePATCHEventsEventId200Response{value: val, isSet: true} +} + +func (v NullablePATCHEventsEventId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHEventsEventId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_events_event_id_200_response_data.go b/api/model_patch_events_event_id_200_response_data.go new file mode 100644 index 00000000..3a330e5c --- /dev/null +++ b/api/model_patch_events_event_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHEventsEventId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHEventsEventId200ResponseData{} + +// PATCHEventsEventId200ResponseData struct for PATCHEventsEventId200ResponseData +type PATCHEventsEventId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHEventsEventId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *GETEventsEventId200ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPATCHEventsEventId200ResponseData instantiates a new PATCHEventsEventId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHEventsEventId200ResponseData() *PATCHEventsEventId200ResponseData { + this := PATCHEventsEventId200ResponseData{} + return &this +} + +// NewPATCHEventsEventId200ResponseDataWithDefaults instantiates a new PATCHEventsEventId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHEventsEventId200ResponseDataWithDefaults() *PATCHEventsEventId200ResponseData { + this := PATCHEventsEventId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHEventsEventId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHEventsEventId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PATCHEventsEventId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *PATCHEventsEventId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHEventsEventId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHEventsEventId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PATCHEventsEventId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *PATCHEventsEventId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PATCHEventsEventId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHEventsEventId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PATCHEventsEventId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *PATCHEventsEventId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *PATCHEventsEventId200ResponseData) GetAttributes() PATCHEventsEventId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret PATCHEventsEventId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHEventsEventId200ResponseData) GetAttributesOk() (*PATCHEventsEventId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *PATCHEventsEventId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given PATCHEventsEventId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *PATCHEventsEventId200ResponseData) SetAttributes(v PATCHEventsEventId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PATCHEventsEventId200ResponseData) GetRelationships() GETEventsEventId200ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret GETEventsEventId200ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHEventsEventId200ResponseData) GetRelationshipsOk() (*GETEventsEventId200ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PATCHEventsEventId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given GETEventsEventId200ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHEventsEventId200ResponseData) SetRelationships(v GETEventsEventId200ResponseDataRelationships) { + o.Relationships = &v +} + +func (o PATCHEventsEventId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHEventsEventId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePATCHEventsEventId200ResponseData struct { + value *PATCHEventsEventId200ResponseData + isSet bool +} + +func (v NullablePATCHEventsEventId200ResponseData) Get() *PATCHEventsEventId200ResponseData { + return v.value +} + +func (v *NullablePATCHEventsEventId200ResponseData) Set(val *PATCHEventsEventId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHEventsEventId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHEventsEventId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHEventsEventId200ResponseData(val *PATCHEventsEventId200ResponseData) *NullablePATCHEventsEventId200ResponseData { + return &NullablePATCHEventsEventId200ResponseData{value: val, isSet: true} +} + +func (v NullablePATCHEventsEventId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHEventsEventId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_events_event_id_200_response_data_attributes.go b/api/model_patch_events_event_id_200_response_data_attributes.go new file mode 100644 index 00000000..f0830b2a --- /dev/null +++ b/api/model_patch_events_event_id_200_response_data_attributes.go @@ -0,0 +1,241 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHEventsEventId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHEventsEventId200ResponseDataAttributes{} + +// PATCHEventsEventId200ResponseDataAttributes struct for PATCHEventsEventId200ResponseDataAttributes +type PATCHEventsEventId200ResponseDataAttributes struct { + // Send this attribute if you want to force webhooks execution for this event. Cannot be passed by sales channels. + Trigger interface{} `json:"_trigger,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPATCHEventsEventId200ResponseDataAttributes instantiates a new PATCHEventsEventId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHEventsEventId200ResponseDataAttributes() *PATCHEventsEventId200ResponseDataAttributes { + this := PATCHEventsEventId200ResponseDataAttributes{} + return &this +} + +// NewPATCHEventsEventId200ResponseDataAttributesWithDefaults instantiates a new PATCHEventsEventId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHEventsEventId200ResponseDataAttributesWithDefaults() *PATCHEventsEventId200ResponseDataAttributes { + this := PATCHEventsEventId200ResponseDataAttributes{} + return &this +} + +// GetTrigger returns the Trigger field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHEventsEventId200ResponseDataAttributes) GetTrigger() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Trigger +} + +// GetTriggerOk returns a tuple with the Trigger field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHEventsEventId200ResponseDataAttributes) GetTriggerOk() (*interface{}, bool) { + if o == nil || IsNil(o.Trigger) { + return nil, false + } + return &o.Trigger, true +} + +// HasTrigger returns a boolean if a field has been set. +func (o *PATCHEventsEventId200ResponseDataAttributes) HasTrigger() bool { + if o != nil && IsNil(o.Trigger) { + return true + } + + return false +} + +// SetTrigger gets a reference to the given interface{} and assigns it to the Trigger field. +func (o *PATCHEventsEventId200ResponseDataAttributes) SetTrigger(v interface{}) { + o.Trigger = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHEventsEventId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHEventsEventId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *PATCHEventsEventId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *PATCHEventsEventId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHEventsEventId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHEventsEventId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *PATCHEventsEventId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *PATCHEventsEventId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHEventsEventId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHEventsEventId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *PATCHEventsEventId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *PATCHEventsEventId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o PATCHEventsEventId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHEventsEventId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Trigger != nil { + toSerialize["_trigger"] = o.Trigger + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePATCHEventsEventId200ResponseDataAttributes struct { + value *PATCHEventsEventId200ResponseDataAttributes + isSet bool +} + +func (v NullablePATCHEventsEventId200ResponseDataAttributes) Get() *PATCHEventsEventId200ResponseDataAttributes { + return v.value +} + +func (v *NullablePATCHEventsEventId200ResponseDataAttributes) Set(val *PATCHEventsEventId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHEventsEventId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHEventsEventId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHEventsEventId200ResponseDataAttributes(val *PATCHEventsEventId200ResponseDataAttributes) *NullablePATCHEventsEventId200ResponseDataAttributes { + return &NullablePATCHEventsEventId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePATCHEventsEventId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHEventsEventId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_exports_export_id_200_response.go b/api/model_patch_exports_export_id_200_response.go new file mode 100644 index 00000000..6958233b --- /dev/null +++ b/api/model_patch_exports_export_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHExportsExportId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHExportsExportId200Response{} + +// PATCHExportsExportId200Response struct for PATCHExportsExportId200Response +type PATCHExportsExportId200Response struct { + Data *PATCHExportsExportId200ResponseData `json:"data,omitempty"` +} + +// NewPATCHExportsExportId200Response instantiates a new PATCHExportsExportId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHExportsExportId200Response() *PATCHExportsExportId200Response { + this := PATCHExportsExportId200Response{} + return &this +} + +// NewPATCHExportsExportId200ResponseWithDefaults instantiates a new PATCHExportsExportId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHExportsExportId200ResponseWithDefaults() *PATCHExportsExportId200Response { + this := PATCHExportsExportId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PATCHExportsExportId200Response) GetData() PATCHExportsExportId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret PATCHExportsExportId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHExportsExportId200Response) GetDataOk() (*PATCHExportsExportId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PATCHExportsExportId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given PATCHExportsExportId200ResponseData and assigns it to the Data field. +func (o *PATCHExportsExportId200Response) SetData(v PATCHExportsExportId200ResponseData) { + o.Data = &v +} + +func (o PATCHExportsExportId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHExportsExportId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePATCHExportsExportId200Response struct { + value *PATCHExportsExportId200Response + isSet bool +} + +func (v NullablePATCHExportsExportId200Response) Get() *PATCHExportsExportId200Response { + return v.value +} + +func (v *NullablePATCHExportsExportId200Response) Set(val *PATCHExportsExportId200Response) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHExportsExportId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHExportsExportId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHExportsExportId200Response(val *PATCHExportsExportId200Response) *NullablePATCHExportsExportId200Response { + return &NullablePATCHExportsExportId200Response{value: val, isSet: true} +} + +func (v NullablePATCHExportsExportId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHExportsExportId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_exports_export_id_200_response_data.go b/api/model_patch_exports_export_id_200_response_data.go new file mode 100644 index 00000000..5760c37d --- /dev/null +++ b/api/model_patch_exports_export_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHExportsExportId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHExportsExportId200ResponseData{} + +// PATCHExportsExportId200ResponseData struct for PATCHExportsExportId200ResponseData +type PATCHExportsExportId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTExports201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPATCHExportsExportId200ResponseData instantiates a new PATCHExportsExportId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHExportsExportId200ResponseData() *PATCHExportsExportId200ResponseData { + this := PATCHExportsExportId200ResponseData{} + return &this +} + +// NewPATCHExportsExportId200ResponseDataWithDefaults instantiates a new PATCHExportsExportId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHExportsExportId200ResponseDataWithDefaults() *PATCHExportsExportId200ResponseData { + this := PATCHExportsExportId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHExportsExportId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHExportsExportId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PATCHExportsExportId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *PATCHExportsExportId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHExportsExportId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHExportsExportId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PATCHExportsExportId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *PATCHExportsExportId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PATCHExportsExportId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHExportsExportId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PATCHExportsExportId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *PATCHExportsExportId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *PATCHExportsExportId200ResponseData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHExportsExportId200ResponseData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *PATCHExportsExportId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *PATCHExportsExportId200ResponseData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PATCHExportsExportId200ResponseData) GetRelationships() POSTExports201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTExports201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHExportsExportId200ResponseData) GetRelationshipsOk() (*POSTExports201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PATCHExportsExportId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTExports201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHExportsExportId200ResponseData) SetRelationships(v POSTExports201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o PATCHExportsExportId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHExportsExportId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePATCHExportsExportId200ResponseData struct { + value *PATCHExportsExportId200ResponseData + isSet bool +} + +func (v NullablePATCHExportsExportId200ResponseData) Get() *PATCHExportsExportId200ResponseData { + return v.value +} + +func (v *NullablePATCHExportsExportId200ResponseData) Set(val *PATCHExportsExportId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHExportsExportId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHExportsExportId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHExportsExportId200ResponseData(val *PATCHExportsExportId200ResponseData) *NullablePATCHExportsExportId200ResponseData { + return &NullablePATCHExportsExportId200ResponseData{value: val, isSet: true} +} + +func (v NullablePATCHExportsExportId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHExportsExportId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_external_gateways_external_gateway_id_200_response.go b/api/model_patch_external_gateways_external_gateway_id_200_response.go index 9f0c2efe..0779cfe3 100644 --- a/api/model_patch_external_gateways_external_gateway_id_200_response.go +++ b/api/model_patch_external_gateways_external_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_external_gateways_external_gateway_id_200_response_data.go b/api/model_patch_external_gateways_external_gateway_id_200_response_data.go index d8195438..fb85851a 100644 --- a/api/model_patch_external_gateways_external_gateway_id_200_response_data.go +++ b/api/model_patch_external_gateways_external_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_external_gateways_external_gateway_id_200_response_data_attributes.go b/api/model_patch_external_gateways_external_gateway_id_200_response_data_attributes.go index d4d6bdf3..2784475e 100644 --- a/api/model_patch_external_gateways_external_gateway_id_200_response_data_attributes.go +++ b/api/model_patch_external_gateways_external_gateway_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes struct { Name interface{} `json:"name,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -38,6 +38,8 @@ type PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes struct { RefundUrl interface{} `json:"refund_url,omitempty"` // The endpoint used by the external gateway to create a customer payment token. TokenUrl interface{} `json:"token_url,omitempty"` + // Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. + ResetCircuit interface{} `json:"_reset_circuit,omitempty"` } // NewPATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes instantiates a new PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes object @@ -354,6 +356,39 @@ func (o *PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes) SetTok o.TokenUrl = v } +// GetResetCircuit returns the ResetCircuit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetResetCircuit() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ResetCircuit +} + +// GetResetCircuitOk returns a tuple with the ResetCircuit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes) GetResetCircuitOk() (*interface{}, bool) { + if o == nil || IsNil(o.ResetCircuit) { + return nil, false + } + return &o.ResetCircuit, true +} + +// HasResetCircuit returns a boolean if a field has been set. +func (o *PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes) HasResetCircuit() bool { + if o != nil && IsNil(o.ResetCircuit) { + return true + } + + return false +} + +// SetResetCircuit gets a reference to the given interface{} and assigns it to the ResetCircuit field. +func (o *PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes) SetResetCircuit(v interface{}) { + o.ResetCircuit = v +} + func (o PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -391,6 +426,9 @@ func (o PATCHExternalGatewaysExternalGatewayId200ResponseDataAttributes) ToMap() if o.TokenUrl != nil { toSerialize["token_url"] = o.TokenUrl } + if o.ResetCircuit != nil { + toSerialize["_reset_circuit"] = o.ResetCircuit + } return toSerialize, nil } diff --git a/api/model_patch_external_payments_external_payment_id_200_response.go b/api/model_patch_external_payments_external_payment_id_200_response.go index 1377f612..b89ad63e 100644 --- a/api/model_patch_external_payments_external_payment_id_200_response.go +++ b/api/model_patch_external_payments_external_payment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_external_payments_external_payment_id_200_response_data.go b/api/model_patch_external_payments_external_payment_id_200_response_data.go index 2b2f4f13..03b55ea6 100644 --- a/api/model_patch_external_payments_external_payment_id_200_response_data.go +++ b/api/model_patch_external_payments_external_payment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_external_payments_external_payment_id_200_response_data_attributes.go b/api/model_patch_external_payments_external_payment_id_200_response_data_attributes.go index b50f9a3a..c2aee4d9 100644 --- a/api/model_patch_external_payments_external_payment_id_200_response_data_attributes.go +++ b/api/model_patch_external_payments_external_payment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type PATCHExternalPaymentsExternalPaymentId200ResponseDataAttributes struct { Options interface{} `json:"options,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_external_promotions_external_promotion_id_200_response.go b/api/model_patch_external_promotions_external_promotion_id_200_response.go index 7bc62027..5099a60a 100644 --- a/api/model_patch_external_promotions_external_promotion_id_200_response.go +++ b/api/model_patch_external_promotions_external_promotion_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_external_promotions_external_promotion_id_200_response_data.go b/api/model_patch_external_promotions_external_promotion_id_200_response_data.go index 003cbf35..a6ba3736 100644 --- a/api/model_patch_external_promotions_external_promotion_id_200_response_data.go +++ b/api/model_patch_external_promotions_external_promotion_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type PATCHExternalPromotionsExternalPromotionId200ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTExternalPromotions201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTBuyXPayYPromotions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPATCHExternalPromotionsExternalPromotionId200ResponseData instantiates a new PATCHExternalPromotionsExternalPromotionId200ResponseData object @@ -177,9 +177,9 @@ func (o *PATCHExternalPromotionsExternalPromotionId200ResponseData) SetAttribute } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *PATCHExternalPromotionsExternalPromotionId200ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships { +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTExternalPromotions201ResponseDataRelationships + var ret POSTBuyXPayYPromotions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *PATCHExternalPromotionsExternalPromotionId200ResponseData) GetRelations // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PATCHExternalPromotionsExternalPromotionId200ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool) { +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *PATCHExternalPromotionsExternalPromotionId200ResponseData) HasRelations return false } -// SetRelationships gets a reference to the given POSTExternalPromotions201ResponseDataRelationships and assigns it to the Relationships field. -func (o *PATCHExternalPromotionsExternalPromotionId200ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_patch_external_promotions_external_promotion_id_200_response_data_attributes.go b/api/model_patch_external_promotions_external_promotion_id_200_response_data_attributes.go index 0172231f..24e9a7a7 100644 --- a/api/model_patch_external_promotions_external_promotion_id_200_response_data_attributes.go +++ b/api/model_patch_external_promotions_external_promotion_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,20 +24,30 @@ type PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes struct Name interface{} `json:"name,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` // The activation date/time of this promotion. StartsAt interface{} `json:"starts_at,omitempty"` // The expiration date/time of this promotion (must be after starts_at). ExpiresAt interface{} `json:"expires_at,omitempty"` - // The total number of times this promotion can be applied. + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` // The URL to the service that will compute the discount. PromotionUrl interface{} `json:"promotion_url,omitempty"` + // Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. + ResetCircuit interface{} `json:"_reset_circuit,omitempty"` } // NewPATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes instantiates a new PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes object @@ -123,6 +133,72 @@ func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) Se o.CurrencyCode = v } +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + // GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetStartsAt() interface{} { if o == nil { @@ -222,6 +298,72 @@ func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) Se o.TotalUsageLimit = v } +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -354,6 +496,39 @@ func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) Se o.PromotionUrl = v } +// GetResetCircuit returns the ResetCircuit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetResetCircuit() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ResetCircuit +} + +// GetResetCircuitOk returns a tuple with the ResetCircuit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) GetResetCircuitOk() (*interface{}, bool) { + if o == nil || IsNil(o.ResetCircuit) { + return nil, false + } + return &o.ResetCircuit, true +} + +// HasResetCircuit returns a boolean if a field has been set. +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) HasResetCircuit() bool { + if o != nil && IsNil(o.ResetCircuit) { + return true + } + + return false +} + +// SetResetCircuit gets a reference to the given interface{} and assigns it to the ResetCircuit field. +func (o *PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) SetResetCircuit(v interface{}) { + o.ResetCircuit = v +} + func (o PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -370,6 +545,12 @@ func (o PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) ToM if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } if o.StartsAt != nil { toSerialize["starts_at"] = o.StartsAt } @@ -379,6 +560,12 @@ func (o PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) ToM if o.TotalUsageLimit != nil { toSerialize["total_usage_limit"] = o.TotalUsageLimit } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } if o.Reference != nil { toSerialize["reference"] = o.Reference } @@ -391,6 +578,9 @@ func (o PATCHExternalPromotionsExternalPromotionId200ResponseDataAttributes) ToM if o.PromotionUrl != nil { toSerialize["promotion_url"] = o.PromotionUrl } + if o.ResetCircuit != nil { + toSerialize["_reset_circuit"] = o.ResetCircuit + } return toSerialize, nil } diff --git a/api/model_patch_external_tax_calculators_external_tax_calculator_id_200_response.go b/api/model_patch_external_tax_calculators_external_tax_calculator_id_200_response.go index a35c0bfd..88935188 100644 --- a/api/model_patch_external_tax_calculators_external_tax_calculator_id_200_response.go +++ b/api/model_patch_external_tax_calculators_external_tax_calculator_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_external_tax_calculators_external_tax_calculator_id_200_response_data.go b/api/model_patch_external_tax_calculators_external_tax_calculator_id_200_response_data.go index c4e1eb60..056ba66d 100644 --- a/api/model_patch_external_tax_calculators_external_tax_calculator_id_200_response_data.go +++ b/api/model_patch_external_tax_calculators_external_tax_calculator_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_external_tax_calculators_external_tax_calculator_id_200_response_data_attributes.go b/api/model_patch_external_tax_calculators_external_tax_calculator_id_200_response_data_attributes.go index f2957723..b3adc29f 100644 --- a/api/model_patch_external_tax_calculators_external_tax_calculator_id_200_response_data_attributes.go +++ b/api/model_patch_external_tax_calculators_external_tax_calculator_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,12 +24,14 @@ type PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes Name interface{} `json:"name,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` // The URL to the service that will compute the taxes. TaxCalculatorUrl interface{} `json:"tax_calculator_url,omitempty"` + // Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. + ResetCircuit interface{} `json:"_reset_circuit,omitempty"` } // NewPATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes instantiates a new PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes object @@ -214,6 +216,39 @@ func (o *PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttrib o.TaxCalculatorUrl = v } +// GetResetCircuit returns the ResetCircuit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetResetCircuit() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ResetCircuit +} + +// GetResetCircuitOk returns a tuple with the ResetCircuit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) GetResetCircuitOk() (*interface{}, bool) { + if o == nil || IsNil(o.ResetCircuit) { + return nil, false + } + return &o.ResetCircuit, true +} + +// HasResetCircuit returns a boolean if a field has been set. +func (o *PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) HasResetCircuit() bool { + if o != nil && IsNil(o.ResetCircuit) { + return true + } + + return false +} + +// SetResetCircuit gets a reference to the given interface{} and assigns it to the ResetCircuit field. +func (o *PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) SetResetCircuit(v interface{}) { + o.ResetCircuit = v +} + func (o PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -239,6 +274,9 @@ func (o PATCHExternalTaxCalculatorsExternalTaxCalculatorId200ResponseDataAttribu if o.TaxCalculatorUrl != nil { toSerialize["tax_calculator_url"] = o.TaxCalculatorUrl } + if o.ResetCircuit != nil { + toSerialize["_reset_circuit"] = o.ResetCircuit + } return toSerialize, nil } diff --git a/api/model_patch_fixed_amount_promotions_fixed_amount_promotion_id_200_response.go b/api/model_patch_fixed_amount_promotions_fixed_amount_promotion_id_200_response.go index fab5a621..d6372dbb 100644 --- a/api/model_patch_fixed_amount_promotions_fixed_amount_promotion_id_200_response.go +++ b/api/model_patch_fixed_amount_promotions_fixed_amount_promotion_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_fixed_amount_promotions_fixed_amount_promotion_id_200_response_data.go b/api/model_patch_fixed_amount_promotions_fixed_amount_promotion_id_200_response_data.go index 8ff53e4f..ac0cb5a5 100644 --- a/api/model_patch_fixed_amount_promotions_fixed_amount_promotion_id_200_response_data.go +++ b/api/model_patch_fixed_amount_promotions_fixed_amount_promotion_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTExternalPromotions201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTBuyXPayYPromotions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData instantiates a new PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData object @@ -177,9 +177,9 @@ func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData) SetAtt } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships { +func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTExternalPromotions201ResponseDataRelationships + var ret POSTBuyXPayYPromotions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData) GetRel // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool) { +func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData) HasRel return false } -// SetRelationships gets a reference to the given POSTExternalPromotions201ResponseDataRelationships and assigns it to the Relationships field. -func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_patch_fixed_amount_promotions_fixed_amount_promotion_id_200_response_data_attributes.go b/api/model_patch_fixed_amount_promotions_fixed_amount_promotion_id_200_response_data_attributes.go index 6bbec305..7da02862 100644 --- a/api/model_patch_fixed_amount_promotions_fixed_amount_promotion_id_200_response_data_attributes.go +++ b/api/model_patch_fixed_amount_promotions_fixed_amount_promotion_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,19 +24,27 @@ type PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes s Name interface{} `json:"name,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` // The activation date/time of this promotion. StartsAt interface{} `json:"starts_at,omitempty"` // The expiration date/time of this promotion (must be after starts_at). ExpiresAt interface{} `json:"expires_at,omitempty"` - // The total number of times this promotion can be applied. + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` - // The discount fixed amount to be applied, in cents + // The discount fixed amount to be applied, in cents. FixedAmountCents interface{} `json:"fixed_amount_cents,omitempty"` } @@ -123,6 +131,72 @@ func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttribut o.CurrencyCode = v } +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + // GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetStartsAt() interface{} { if o == nil { @@ -222,6 +296,72 @@ func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttribut o.TotalUsageLimit = v } +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -370,6 +510,12 @@ func (o PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttribute if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } if o.StartsAt != nil { toSerialize["starts_at"] = o.StartsAt } @@ -379,6 +525,12 @@ func (o PATCHFixedAmountPromotionsFixedAmountPromotionId200ResponseDataAttribute if o.TotalUsageLimit != nil { toSerialize["total_usage_limit"] = o.TotalUsageLimit } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_patch_fixed_price_promotions_fixed_price_promotion_id_200_response.go b/api/model_patch_fixed_price_promotions_fixed_price_promotion_id_200_response.go index 33a69e71..a2ed6678 100644 --- a/api/model_patch_fixed_price_promotions_fixed_price_promotion_id_200_response.go +++ b/api/model_patch_fixed_price_promotions_fixed_price_promotion_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_fixed_price_promotions_fixed_price_promotion_id_200_response_data.go b/api/model_patch_fixed_price_promotions_fixed_price_promotion_id_200_response_data.go index 686c8902..3303f719 100644 --- a/api/model_patch_fixed_price_promotions_fixed_price_promotion_id_200_response_data.go +++ b/api/model_patch_fixed_price_promotions_fixed_price_promotion_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTFixedPricePromotions201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTBuyXPayYPromotions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPATCHFixedPricePromotionsFixedPricePromotionId200ResponseData instantiates a new PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData object @@ -177,9 +177,9 @@ func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData) SetAttri } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData) GetRelationships() POSTFixedPricePromotions201ResponseDataRelationships { +func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTFixedPricePromotions201ResponseDataRelationships + var ret POSTBuyXPayYPromotions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData) GetRelat // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData) GetRelationshipsOk() (*POSTFixedPricePromotions201ResponseDataRelationships, bool) { +func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData) HasRelat return false } -// SetRelationships gets a reference to the given POSTFixedPricePromotions201ResponseDataRelationships and assigns it to the Relationships field. -func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData) SetRelationships(v POSTFixedPricePromotions201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_patch_fixed_price_promotions_fixed_price_promotion_id_200_response_data_attributes.go b/api/model_patch_fixed_price_promotions_fixed_price_promotion_id_200_response_data_attributes.go index a1047be7..e6dd7edc 100644 --- a/api/model_patch_fixed_price_promotions_fixed_price_promotion_id_200_response_data_attributes.go +++ b/api/model_patch_fixed_price_promotions_fixed_price_promotion_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,19 +24,27 @@ type PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes str Name interface{} `json:"name,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` // The activation date/time of this promotion. StartsAt interface{} `json:"starts_at,omitempty"` // The expiration date/time of this promotion (must be after starts_at). ExpiresAt interface{} `json:"expires_at,omitempty"` - // The total number of times this promotion can be applied. + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` - // The price fixed amount to be applied on matching SKUs, in cents + // The price fixed amount to be applied on matching SKUs, in cents. FixedAmountCents interface{} `json:"fixed_amount_cents,omitempty"` } @@ -123,6 +131,72 @@ func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes o.CurrencyCode = v } +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + // GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetStartsAt() interface{} { if o == nil { @@ -222,6 +296,72 @@ func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes o.TotalUsageLimit = v } +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -370,6 +510,12 @@ func (o PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } if o.StartsAt != nil { toSerialize["starts_at"] = o.StartsAt } @@ -379,6 +525,12 @@ func (o PATCHFixedPricePromotionsFixedPricePromotionId200ResponseDataAttributes) if o.TotalUsageLimit != nil { toSerialize["total_usage_limit"] = o.TotalUsageLimit } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_patch_flex_promotions_flex_promotion_id_200_response.go b/api/model_patch_flex_promotions_flex_promotion_id_200_response.go new file mode 100644 index 00000000..3a011175 --- /dev/null +++ b/api/model_patch_flex_promotions_flex_promotion_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHFlexPromotionsFlexPromotionId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHFlexPromotionsFlexPromotionId200Response{} + +// PATCHFlexPromotionsFlexPromotionId200Response struct for PATCHFlexPromotionsFlexPromotionId200Response +type PATCHFlexPromotionsFlexPromotionId200Response struct { + Data *PATCHFlexPromotionsFlexPromotionId200ResponseData `json:"data,omitempty"` +} + +// NewPATCHFlexPromotionsFlexPromotionId200Response instantiates a new PATCHFlexPromotionsFlexPromotionId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHFlexPromotionsFlexPromotionId200Response() *PATCHFlexPromotionsFlexPromotionId200Response { + this := PATCHFlexPromotionsFlexPromotionId200Response{} + return &this +} + +// NewPATCHFlexPromotionsFlexPromotionId200ResponseWithDefaults instantiates a new PATCHFlexPromotionsFlexPromotionId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHFlexPromotionsFlexPromotionId200ResponseWithDefaults() *PATCHFlexPromotionsFlexPromotionId200Response { + this := PATCHFlexPromotionsFlexPromotionId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PATCHFlexPromotionsFlexPromotionId200Response) GetData() PATCHFlexPromotionsFlexPromotionId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret PATCHFlexPromotionsFlexPromotionId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200Response) GetDataOk() (*PATCHFlexPromotionsFlexPromotionId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given PATCHFlexPromotionsFlexPromotionId200ResponseData and assigns it to the Data field. +func (o *PATCHFlexPromotionsFlexPromotionId200Response) SetData(v PATCHFlexPromotionsFlexPromotionId200ResponseData) { + o.Data = &v +} + +func (o PATCHFlexPromotionsFlexPromotionId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHFlexPromotionsFlexPromotionId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePATCHFlexPromotionsFlexPromotionId200Response struct { + value *PATCHFlexPromotionsFlexPromotionId200Response + isSet bool +} + +func (v NullablePATCHFlexPromotionsFlexPromotionId200Response) Get() *PATCHFlexPromotionsFlexPromotionId200Response { + return v.value +} + +func (v *NullablePATCHFlexPromotionsFlexPromotionId200Response) Set(val *PATCHFlexPromotionsFlexPromotionId200Response) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHFlexPromotionsFlexPromotionId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHFlexPromotionsFlexPromotionId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHFlexPromotionsFlexPromotionId200Response(val *PATCHFlexPromotionsFlexPromotionId200Response) *NullablePATCHFlexPromotionsFlexPromotionId200Response { + return &NullablePATCHFlexPromotionsFlexPromotionId200Response{value: val, isSet: true} +} + +func (v NullablePATCHFlexPromotionsFlexPromotionId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHFlexPromotionsFlexPromotionId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_flex_promotions_flex_promotion_id_200_response_data.go b/api/model_patch_flex_promotions_flex_promotion_id_200_response_data.go new file mode 100644 index 00000000..a3840d24 --- /dev/null +++ b/api/model_patch_flex_promotions_flex_promotion_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHFlexPromotionsFlexPromotionId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHFlexPromotionsFlexPromotionId200ResponseData{} + +// PATCHFlexPromotionsFlexPromotionId200ResponseData struct for PATCHFlexPromotionsFlexPromotionId200ResponseData +type PATCHFlexPromotionsFlexPromotionId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTFlexPromotions201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPATCHFlexPromotionsFlexPromotionId200ResponseData instantiates a new PATCHFlexPromotionsFlexPromotionId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHFlexPromotionsFlexPromotionId200ResponseData() *PATCHFlexPromotionsFlexPromotionId200ResponseData { + this := PATCHFlexPromotionsFlexPromotionId200ResponseData{} + return &this +} + +// NewPATCHFlexPromotionsFlexPromotionId200ResponseDataWithDefaults instantiates a new PATCHFlexPromotionsFlexPromotionId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHFlexPromotionsFlexPromotionId200ResponseDataWithDefaults() *PATCHFlexPromotionsFlexPromotionId200ResponseData { + this := PATCHFlexPromotionsFlexPromotionId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetAttributes() PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetAttributesOk() (*PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) SetAttributes(v PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetRelationships() POSTFlexPromotions201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTFlexPromotions201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) GetRelationshipsOk() (*POSTFlexPromotions201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTFlexPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseData) SetRelationships(v POSTFlexPromotions201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o PATCHFlexPromotionsFlexPromotionId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHFlexPromotionsFlexPromotionId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePATCHFlexPromotionsFlexPromotionId200ResponseData struct { + value *PATCHFlexPromotionsFlexPromotionId200ResponseData + isSet bool +} + +func (v NullablePATCHFlexPromotionsFlexPromotionId200ResponseData) Get() *PATCHFlexPromotionsFlexPromotionId200ResponseData { + return v.value +} + +func (v *NullablePATCHFlexPromotionsFlexPromotionId200ResponseData) Set(val *PATCHFlexPromotionsFlexPromotionId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHFlexPromotionsFlexPromotionId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHFlexPromotionsFlexPromotionId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHFlexPromotionsFlexPromotionId200ResponseData(val *PATCHFlexPromotionsFlexPromotionId200ResponseData) *NullablePATCHFlexPromotionsFlexPromotionId200ResponseData { + return &NullablePATCHFlexPromotionsFlexPromotionId200ResponseData{value: val, isSet: true} +} + +func (v NullablePATCHFlexPromotionsFlexPromotionId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHFlexPromotionsFlexPromotionId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_flex_promotions_flex_promotion_id_200_response_data_attributes.go b/api/model_patch_flex_promotions_flex_promotion_id_200_response_data_attributes.go new file mode 100644 index 00000000..dae10777 --- /dev/null +++ b/api/model_patch_flex_promotions_flex_promotion_id_200_response_data_attributes.go @@ -0,0 +1,545 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes{} + +// PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes struct for PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes +type PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes struct { + // The promotion's internal name. + Name interface{} `json:"name,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` + // The activation date/time of this promotion. + StartsAt interface{} `json:"starts_at,omitempty"` + // The expiration date/time of this promotion (must be after starts_at). + ExpiresAt interface{} `json:"expires_at,omitempty"` + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. + TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` + // The discount rule to be applied. + Rules interface{} `json:"rules,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes instantiates a new PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes() *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes { + this := PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes{} + return &this +} + +// NewPATCHFlexPromotionsFlexPromotionId200ResponseDataAttributesWithDefaults instantiates a new PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHFlexPromotionsFlexPromotionId200ResponseDataAttributesWithDefaults() *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes { + this := PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasName() bool { + if o != nil && IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given interface{} and assigns it to the Name field. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + +// GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetStartsAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.StartsAt +} + +// GetStartsAtOk returns a tuple with the StartsAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.StartsAt) { + return nil, false + } + return &o.StartsAt, true +} + +// HasStartsAt returns a boolean if a field has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasStartsAt() bool { + if o != nil && IsNil(o.StartsAt) { + return true + } + + return false +} + +// SetStartsAt gets a reference to the given interface{} and assigns it to the StartsAt field. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetStartsAt(v interface{}) { + o.StartsAt = v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetExpiresAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExpiresAt) { + return nil, false + } + return &o.ExpiresAt, true +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasExpiresAt() bool { + if o != nil && IsNil(o.ExpiresAt) { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given interface{} and assigns it to the ExpiresAt field. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetExpiresAt(v interface{}) { + o.ExpiresAt = v +} + +// GetTotalUsageLimit returns the TotalUsageLimit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetTotalUsageLimit() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.TotalUsageLimit +} + +// GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetTotalUsageLimitOk() (*interface{}, bool) { + if o == nil || IsNil(o.TotalUsageLimit) { + return nil, false + } + return &o.TotalUsageLimit, true +} + +// HasTotalUsageLimit returns a boolean if a field has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasTotalUsageLimit() bool { + if o != nil && IsNil(o.TotalUsageLimit) { + return true + } + + return false +} + +// SetTotalUsageLimit gets a reference to the given interface{} and assigns it to the TotalUsageLimit field. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetTotalUsageLimit(v interface{}) { + o.TotalUsageLimit = v +} + +// GetRules returns the Rules field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetRules() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetRulesOk() (*interface{}, bool) { + if o == nil || IsNil(o.Rules) { + return nil, false + } + return &o.Rules, true +} + +// HasRules returns a boolean if a field has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasRules() bool { + if o != nil && IsNil(o.Rules) { + return true + } + + return false +} + +// SetRules gets a reference to the given interface{} and assigns it to the Rules field. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetRules(v interface{}) { + o.Rules = v +} + +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } + if o.StartsAt != nil { + toSerialize["starts_at"] = o.StartsAt + } + if o.ExpiresAt != nil { + toSerialize["expires_at"] = o.ExpiresAt + } + if o.TotalUsageLimit != nil { + toSerialize["total_usage_limit"] = o.TotalUsageLimit + } + if o.Rules != nil { + toSerialize["rules"] = o.Rules + } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes struct { + value *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes + isSet bool +} + +func (v NullablePATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) Get() *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes { + return v.value +} + +func (v *NullablePATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) Set(val *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes(val *PATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) *NullablePATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes { + return &NullablePATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHFlexPromotionsFlexPromotionId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_free_gift_promotions_free_gift_promotion_id_200_response.go b/api/model_patch_free_gift_promotions_free_gift_promotion_id_200_response.go index df0e9639..6a787bba 100644 --- a/api/model_patch_free_gift_promotions_free_gift_promotion_id_200_response.go +++ b/api/model_patch_free_gift_promotions_free_gift_promotion_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_free_gift_promotions_free_gift_promotion_id_200_response_data.go b/api/model_patch_free_gift_promotions_free_gift_promotion_id_200_response_data.go index 1d98c434..f3addf9a 100644 --- a/api/model_patch_free_gift_promotions_free_gift_promotion_id_200_response_data.go +++ b/api/model_patch_free_gift_promotions_free_gift_promotion_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTFixedPricePromotions201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTBuyXPayYPromotions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData instantiates a new PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData object @@ -177,9 +177,9 @@ func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData) SetAttribute } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData) GetRelationships() POSTFixedPricePromotions201ResponseDataRelationships { +func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTFixedPricePromotions201ResponseDataRelationships + var ret POSTBuyXPayYPromotions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData) GetRelations // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData) GetRelationshipsOk() (*POSTFixedPricePromotions201ResponseDataRelationships, bool) { +func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData) HasRelations return false } -// SetRelationships gets a reference to the given POSTFixedPricePromotions201ResponseDataRelationships and assigns it to the Relationships field. -func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData) SetRelationships(v POSTFixedPricePromotions201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_patch_free_gift_promotions_free_gift_promotion_id_200_response_data_attributes.go b/api/model_patch_free_gift_promotions_free_gift_promotion_id_200_response_data_attributes.go index 0d91c575..63cc5b69 100644 --- a/api/model_patch_free_gift_promotions_free_gift_promotion_id_200_response_data_attributes.go +++ b/api/model_patch_free_gift_promotions_free_gift_promotion_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,15 +24,23 @@ type PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes struct Name interface{} `json:"name,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` // The activation date/time of this promotion. StartsAt interface{} `json:"starts_at,omitempty"` // The expiration date/time of this promotion (must be after starts_at). ExpiresAt interface{} `json:"expires_at,omitempty"` - // The total number of times this promotion can be applied. + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -123,6 +131,72 @@ func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) Se o.CurrencyCode = v } +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + // GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetStartsAt() interface{} { if o == nil { @@ -222,6 +296,72 @@ func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) Se o.TotalUsageLimit = v } +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -370,6 +510,12 @@ func (o PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) ToM if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } if o.StartsAt != nil { toSerialize["starts_at"] = o.StartsAt } @@ -379,6 +525,12 @@ func (o PATCHFreeGiftPromotionsFreeGiftPromotionId200ResponseDataAttributes) ToM if o.TotalUsageLimit != nil { toSerialize["total_usage_limit"] = o.TotalUsageLimit } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_patch_free_shipping_promotions_free_shipping_promotion_id_200_response.go b/api/model_patch_free_shipping_promotions_free_shipping_promotion_id_200_response.go index 73655dca..daa9a6da 100644 --- a/api/model_patch_free_shipping_promotions_free_shipping_promotion_id_200_response.go +++ b/api/model_patch_free_shipping_promotions_free_shipping_promotion_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_free_shipping_promotions_free_shipping_promotion_id_200_response_data.go b/api/model_patch_free_shipping_promotions_free_shipping_promotion_id_200_response_data.go index 3537b4c2..bdf8a37d 100644 --- a/api/model_patch_free_shipping_promotions_free_shipping_promotion_id_200_response_data.go +++ b/api/model_patch_free_shipping_promotions_free_shipping_promotion_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTExternalPromotions201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTFreeShippingPromotions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData instantiates a new PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData object @@ -177,9 +177,9 @@ func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData) SetA } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships { +func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData) GetRelationships() POSTFreeShippingPromotions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTExternalPromotions201ResponseDataRelationships + var ret POSTFreeShippingPromotions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData) GetR // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool) { +func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData) GetRelationshipsOk() (*POSTFreeShippingPromotions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData) HasR return false } -// SetRelationships gets a reference to the given POSTExternalPromotions201ResponseDataRelationships and assigns it to the Relationships field. -func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTFreeShippingPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseData) SetRelationships(v POSTFreeShippingPromotions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_patch_free_shipping_promotions_free_shipping_promotion_id_200_response_data_attributes.go b/api/model_patch_free_shipping_promotions_free_shipping_promotion_id_200_response_data_attributes.go index a0661230..52fc3d41 100644 --- a/api/model_patch_free_shipping_promotions_free_shipping_promotion_id_200_response_data_attributes.go +++ b/api/model_patch_free_shipping_promotions_free_shipping_promotion_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,15 +24,23 @@ type PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes Name interface{} `json:"name,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` // The activation date/time of this promotion. StartsAt interface{} `json:"starts_at,omitempty"` // The expiration date/time of this promotion (must be after starts_at). ExpiresAt interface{} `json:"expires_at,omitempty"` - // The total number of times this promotion can be applied. + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -121,6 +129,72 @@ func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttrib o.CurrencyCode = v } +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + // GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetStartsAt() interface{} { if o == nil { @@ -220,6 +294,72 @@ func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttrib o.TotalUsageLimit = v } +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -335,6 +475,12 @@ func (o PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttribu if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } if o.StartsAt != nil { toSerialize["starts_at"] = o.StartsAt } @@ -344,6 +490,12 @@ func (o PATCHFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttribu if o.TotalUsageLimit != nil { toSerialize["total_usage_limit"] = o.TotalUsageLimit } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_patch_gift_card_recipients_gift_card_recipient_id_200_response.go b/api/model_patch_gift_card_recipients_gift_card_recipient_id_200_response.go index 9b96258c..5d19f06d 100644 --- a/api/model_patch_gift_card_recipients_gift_card_recipient_id_200_response.go +++ b/api/model_patch_gift_card_recipients_gift_card_recipient_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_gift_card_recipients_gift_card_recipient_id_200_response_data.go b/api/model_patch_gift_card_recipients_gift_card_recipient_id_200_response_data.go index acba6deb..e3be7ae0 100644 --- a/api/model_patch_gift_card_recipients_gift_card_recipient_id_200_response_data.go +++ b/api/model_patch_gift_card_recipients_gift_card_recipient_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_gift_cards_gift_card_id_200_response.go b/api/model_patch_gift_cards_gift_card_id_200_response.go index a60d182d..8fce98ba 100644 --- a/api/model_patch_gift_cards_gift_card_id_200_response.go +++ b/api/model_patch_gift_cards_gift_card_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_gift_cards_gift_card_id_200_response_data.go b/api/model_patch_gift_cards_gift_card_id_200_response_data.go index ecdd2c28..1b5a4aba 100644 --- a/api/model_patch_gift_cards_gift_card_id_200_response_data.go +++ b/api/model_patch_gift_cards_gift_card_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_gift_cards_gift_card_id_200_response_data_attributes.go b/api/model_patch_gift_cards_gift_card_id_200_response_data_attributes.go index b07c9ac2..51f7d344 100644 --- a/api/model_patch_gift_cards_gift_card_id_200_response_data_attributes.go +++ b/api/model_patch_gift_cards_gift_card_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -30,6 +30,8 @@ type PATCHGiftCardsGiftCardId200ResponseDataAttributes struct { SingleUse interface{} `json:"single_use,omitempty"` // Indicates if the gift card can be recharged. Rechargeable interface{} `json:"rechargeable,omitempty"` + // Indicates if redeemed gift card amount is distributed for tax calculation. + DistributeDiscount interface{} `json:"distribute_discount,omitempty"` // The URL of an image that represents the gift card. ImageUrl interface{} `json:"image_url,omitempty"` // Time at which the gift card will expire. @@ -46,7 +48,7 @@ type PATCHGiftCardsGiftCardId200ResponseDataAttributes struct { BalanceChangeCents interface{} `json:"_balance_change_cents,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -234,6 +236,39 @@ func (o *PATCHGiftCardsGiftCardId200ResponseDataAttributes) SetRechargeable(v in o.Rechargeable = v } +// GetDistributeDiscount returns the DistributeDiscount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHGiftCardsGiftCardId200ResponseDataAttributes) GetDistributeDiscount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DistributeDiscount +} + +// GetDistributeDiscountOk returns a tuple with the DistributeDiscount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHGiftCardsGiftCardId200ResponseDataAttributes) GetDistributeDiscountOk() (*interface{}, bool) { + if o == nil || IsNil(o.DistributeDiscount) { + return nil, false + } + return &o.DistributeDiscount, true +} + +// HasDistributeDiscount returns a boolean if a field has been set. +func (o *PATCHGiftCardsGiftCardId200ResponseDataAttributes) HasDistributeDiscount() bool { + if o != nil && IsNil(o.DistributeDiscount) { + return true + } + + return false +} + +// SetDistributeDiscount gets a reference to the given interface{} and assigns it to the DistributeDiscount field. +func (o *PATCHGiftCardsGiftCardId200ResponseDataAttributes) SetDistributeDiscount(v interface{}) { + o.DistributeDiscount = v +} + // GetImageUrl returns the ImageUrl field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHGiftCardsGiftCardId200ResponseDataAttributes) GetImageUrl() interface{} { if o == nil { @@ -589,6 +624,9 @@ func (o PATCHGiftCardsGiftCardId200ResponseDataAttributes) ToMap() (map[string]i if o.Rechargeable != nil { toSerialize["rechargeable"] = o.Rechargeable } + if o.DistributeDiscount != nil { + toSerialize["distribute_discount"] = o.DistributeDiscount + } if o.ImageUrl != nil { toSerialize["image_url"] = o.ImageUrl } diff --git a/api/model_patch_google_geocoders_google_geocoder_id_200_response.go b/api/model_patch_google_geocoders_google_geocoder_id_200_response.go index f45afa92..a7bab750 100644 --- a/api/model_patch_google_geocoders_google_geocoder_id_200_response.go +++ b/api/model_patch_google_geocoders_google_geocoder_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_google_geocoders_google_geocoder_id_200_response_data.go b/api/model_patch_google_geocoders_google_geocoder_id_200_response_data.go index d8bd8e15..df8f7b54 100644 --- a/api/model_patch_google_geocoders_google_geocoder_id_200_response_data.go +++ b/api/model_patch_google_geocoders_google_geocoder_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_google_geocoders_google_geocoder_id_200_response_data_attributes.go b/api/model_patch_google_geocoders_google_geocoder_id_200_response_data_attributes.go index 8a50a4c4..185449dc 100644 --- a/api/model_patch_google_geocoders_google_geocoder_id_200_response_data_attributes.go +++ b/api/model_patch_google_geocoders_google_geocoder_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,15 +20,15 @@ var _ MappedNullable = &PATCHGoogleGeocodersGoogleGeocoderId200ResponseDataAttri // PATCHGoogleGeocodersGoogleGeocoderId200ResponseDataAttributes struct for PATCHGoogleGeocodersGoogleGeocoderId200ResponseDataAttributes type PATCHGoogleGeocodersGoogleGeocoderId200ResponseDataAttributes struct { - // The geocoder's internal name + // The geocoder's internal name. Name interface{} `json:"name,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` - // The Google Map API key + // The Google Map API key. ApiKey interface{} `json:"api_key,omitempty"` } diff --git a/api/model_patch_imports_import_id_200_response.go b/api/model_patch_imports_import_id_200_response.go new file mode 100644 index 00000000..f107b925 --- /dev/null +++ b/api/model_patch_imports_import_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHImportsImportId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHImportsImportId200Response{} + +// PATCHImportsImportId200Response struct for PATCHImportsImportId200Response +type PATCHImportsImportId200Response struct { + Data *PATCHImportsImportId200ResponseData `json:"data,omitempty"` +} + +// NewPATCHImportsImportId200Response instantiates a new PATCHImportsImportId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHImportsImportId200Response() *PATCHImportsImportId200Response { + this := PATCHImportsImportId200Response{} + return &this +} + +// NewPATCHImportsImportId200ResponseWithDefaults instantiates a new PATCHImportsImportId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHImportsImportId200ResponseWithDefaults() *PATCHImportsImportId200Response { + this := PATCHImportsImportId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PATCHImportsImportId200Response) GetData() PATCHImportsImportId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret PATCHImportsImportId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHImportsImportId200Response) GetDataOk() (*PATCHImportsImportId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PATCHImportsImportId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given PATCHImportsImportId200ResponseData and assigns it to the Data field. +func (o *PATCHImportsImportId200Response) SetData(v PATCHImportsImportId200ResponseData) { + o.Data = &v +} + +func (o PATCHImportsImportId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHImportsImportId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePATCHImportsImportId200Response struct { + value *PATCHImportsImportId200Response + isSet bool +} + +func (v NullablePATCHImportsImportId200Response) Get() *PATCHImportsImportId200Response { + return v.value +} + +func (v *NullablePATCHImportsImportId200Response) Set(val *PATCHImportsImportId200Response) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHImportsImportId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHImportsImportId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHImportsImportId200Response(val *PATCHImportsImportId200Response) *NullablePATCHImportsImportId200Response { + return &NullablePATCHImportsImportId200Response{value: val, isSet: true} +} + +func (v NullablePATCHImportsImportId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHImportsImportId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_imports_import_id_200_response_data.go b/api/model_patch_imports_import_id_200_response_data.go new file mode 100644 index 00000000..8b61165e --- /dev/null +++ b/api/model_patch_imports_import_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHImportsImportId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHImportsImportId200ResponseData{} + +// PATCHImportsImportId200ResponseData struct for PATCHImportsImportId200ResponseData +type PATCHImportsImportId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTExports201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPATCHImportsImportId200ResponseData instantiates a new PATCHImportsImportId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHImportsImportId200ResponseData() *PATCHImportsImportId200ResponseData { + this := PATCHImportsImportId200ResponseData{} + return &this +} + +// NewPATCHImportsImportId200ResponseDataWithDefaults instantiates a new PATCHImportsImportId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHImportsImportId200ResponseDataWithDefaults() *PATCHImportsImportId200ResponseData { + this := PATCHImportsImportId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHImportsImportId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHImportsImportId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PATCHImportsImportId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *PATCHImportsImportId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHImportsImportId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHImportsImportId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PATCHImportsImportId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *PATCHImportsImportId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PATCHImportsImportId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHImportsImportId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PATCHImportsImportId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *PATCHImportsImportId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *PATCHImportsImportId200ResponseData) GetAttributes() PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHImportsImportId200ResponseData) GetAttributesOk() (*PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *PATCHImportsImportId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *PATCHImportsImportId200ResponseData) SetAttributes(v PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PATCHImportsImportId200ResponseData) GetRelationships() POSTExports201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTExports201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHImportsImportId200ResponseData) GetRelationshipsOk() (*POSTExports201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PATCHImportsImportId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTExports201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHImportsImportId200ResponseData) SetRelationships(v POSTExports201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o PATCHImportsImportId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHImportsImportId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePATCHImportsImportId200ResponseData struct { + value *PATCHImportsImportId200ResponseData + isSet bool +} + +func (v NullablePATCHImportsImportId200ResponseData) Get() *PATCHImportsImportId200ResponseData { + return v.value +} + +func (v *NullablePATCHImportsImportId200ResponseData) Set(val *PATCHImportsImportId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHImportsImportId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHImportsImportId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHImportsImportId200ResponseData(val *PATCHImportsImportId200ResponseData) *NullablePATCHImportsImportId200ResponseData { + return &NullablePATCHImportsImportId200ResponseData{value: val, isSet: true} +} + +func (v NullablePATCHImportsImportId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHImportsImportId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_in_stock_subscriptions_in_stock_subscription_id_200_response.go b/api/model_patch_in_stock_subscriptions_in_stock_subscription_id_200_response.go index 4633830c..694f0272 100644 --- a/api/model_patch_in_stock_subscriptions_in_stock_subscription_id_200_response.go +++ b/api/model_patch_in_stock_subscriptions_in_stock_subscription_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_in_stock_subscriptions_in_stock_subscription_id_200_response_data.go b/api/model_patch_in_stock_subscriptions_in_stock_subscription_id_200_response_data.go index 9158f0f0..be633ca6 100644 --- a/api/model_patch_in_stock_subscriptions_in_stock_subscription_id_200_response_data.go +++ b/api/model_patch_in_stock_subscriptions_in_stock_subscription_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_in_stock_subscriptions_in_stock_subscription_id_200_response_data_attributes.go b/api/model_patch_in_stock_subscriptions_in_stock_subscription_id_200_response_data_attributes.go index 6ad05fe0..27764c6d 100644 --- a/api/model_patch_in_stock_subscriptions_in_stock_subscription_id_200_response_data_attributes.go +++ b/api/model_patch_in_stock_subscriptions_in_stock_subscription_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &PATCHInStockSubscriptionsInStockSubscriptionId200Respons // PATCHInStockSubscriptionsInStockSubscriptionId200ResponseDataAttributes struct for PATCHInStockSubscriptionsInStockSubscriptionId200ResponseDataAttributes type PATCHInStockSubscriptionsInStockSubscriptionId200ResponseDataAttributes struct { - // The code of the associated SKU, replace the relationship + // The code of the associated SKU, replace the relationship. SkuCode interface{} `json:"sku_code,omitempty"` // The threshold at which to trigger the back in stock notification. StockThreshold interface{} `json:"stock_threshold,omitempty"` @@ -30,7 +30,7 @@ type PATCHInStockSubscriptionsInStockSubscriptionId200ResponseDataAttributes str Deactivate interface{} `json:"_deactivate,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_inventory_models_inventory_model_id_200_response.go b/api/model_patch_inventory_models_inventory_model_id_200_response.go index ae954cd7..8996315c 100644 --- a/api/model_patch_inventory_models_inventory_model_id_200_response.go +++ b/api/model_patch_inventory_models_inventory_model_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_inventory_models_inventory_model_id_200_response_data.go b/api/model_patch_inventory_models_inventory_model_id_200_response_data.go index ed56a505..3933071f 100644 --- a/api/model_patch_inventory_models_inventory_model_id_200_response_data.go +++ b/api/model_patch_inventory_models_inventory_model_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_inventory_models_inventory_model_id_200_response_data_attributes.go b/api/model_patch_inventory_models_inventory_model_id_200_response_data_attributes.go index e3adeecc..e3d56ea5 100644 --- a/api/model_patch_inventory_models_inventory_model_id_200_response_data_attributes.go +++ b/api/model_patch_inventory_models_inventory_model_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,11 +24,17 @@ type PATCHInventoryModelsInventoryModelId200ResponseDataAttributes struct { Name interface{} `json:"name,omitempty"` // The inventory model's shipping strategy: one between 'no_split' (default), 'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'. Strategy interface{} `json:"strategy,omitempty"` - // The maximum number of stock locations used for inventory computation + // The maximum number of stock locations used for inventory computation. StockLocationsCutoff interface{} `json:"stock_locations_cutoff,omitempty"` + // The duration in seconds of the generated stock reservations. + StockReservationCutoff interface{} `json:"stock_reservation_cutoff,omitempty"` + // Indicates if the the stock transfers must be put on hold automatically with the associated shipment. + PutStockTransfersOnHold interface{} `json:"put_stock_transfers_on_hold,omitempty"` + // Indicates if the the stock will be decremented manually after the order approval. + ManualStockDecrement interface{} `json:"manual_stock_decrement,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -150,6 +156,105 @@ func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) SetStock o.StockLocationsCutoff = v } +// GetStockReservationCutoff returns the StockReservationCutoff field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) GetStockReservationCutoff() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.StockReservationCutoff +} + +// GetStockReservationCutoffOk returns a tuple with the StockReservationCutoff field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) GetStockReservationCutoffOk() (*interface{}, bool) { + if o == nil || IsNil(o.StockReservationCutoff) { + return nil, false + } + return &o.StockReservationCutoff, true +} + +// HasStockReservationCutoff returns a boolean if a field has been set. +func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) HasStockReservationCutoff() bool { + if o != nil && IsNil(o.StockReservationCutoff) { + return true + } + + return false +} + +// SetStockReservationCutoff gets a reference to the given interface{} and assigns it to the StockReservationCutoff field. +func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) SetStockReservationCutoff(v interface{}) { + o.StockReservationCutoff = v +} + +// GetPutStockTransfersOnHold returns the PutStockTransfersOnHold field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) GetPutStockTransfersOnHold() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PutStockTransfersOnHold +} + +// GetPutStockTransfersOnHoldOk returns a tuple with the PutStockTransfersOnHold field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) GetPutStockTransfersOnHoldOk() (*interface{}, bool) { + if o == nil || IsNil(o.PutStockTransfersOnHold) { + return nil, false + } + return &o.PutStockTransfersOnHold, true +} + +// HasPutStockTransfersOnHold returns a boolean if a field has been set. +func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) HasPutStockTransfersOnHold() bool { + if o != nil && IsNil(o.PutStockTransfersOnHold) { + return true + } + + return false +} + +// SetPutStockTransfersOnHold gets a reference to the given interface{} and assigns it to the PutStockTransfersOnHold field. +func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) SetPutStockTransfersOnHold(v interface{}) { + o.PutStockTransfersOnHold = v +} + +// GetManualStockDecrement returns the ManualStockDecrement field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) GetManualStockDecrement() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ManualStockDecrement +} + +// GetManualStockDecrementOk returns a tuple with the ManualStockDecrement field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) GetManualStockDecrementOk() (*interface{}, bool) { + if o == nil || IsNil(o.ManualStockDecrement) { + return nil, false + } + return &o.ManualStockDecrement, true +} + +// HasManualStockDecrement returns a boolean if a field has been set. +func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) HasManualStockDecrement() bool { + if o != nil && IsNil(o.ManualStockDecrement) { + return true + } + + return false +} + +// SetManualStockDecrement gets a reference to the given interface{} and assigns it to the ManualStockDecrement field. +func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) SetManualStockDecrement(v interface{}) { + o.ManualStockDecrement = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -268,6 +373,15 @@ func (o PATCHInventoryModelsInventoryModelId200ResponseDataAttributes) ToMap() ( if o.StockLocationsCutoff != nil { toSerialize["stock_locations_cutoff"] = o.StockLocationsCutoff } + if o.StockReservationCutoff != nil { + toSerialize["stock_reservation_cutoff"] = o.StockReservationCutoff + } + if o.PutStockTransfersOnHold != nil { + toSerialize["put_stock_transfers_on_hold"] = o.PutStockTransfersOnHold + } + if o.ManualStockDecrement != nil { + toSerialize["manual_stock_decrement"] = o.ManualStockDecrement + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_patch_inventory_return_locations_inventory_return_location_id_200_response.go b/api/model_patch_inventory_return_locations_inventory_return_location_id_200_response.go index 0e6780bf..253d6aff 100644 --- a/api/model_patch_inventory_return_locations_inventory_return_location_id_200_response.go +++ b/api/model_patch_inventory_return_locations_inventory_return_location_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_inventory_return_locations_inventory_return_location_id_200_response_data.go b/api/model_patch_inventory_return_locations_inventory_return_location_id_200_response_data.go index 3fead0fe..a8444474 100644 --- a/api/model_patch_inventory_return_locations_inventory_return_location_id_200_response_data.go +++ b/api/model_patch_inventory_return_locations_inventory_return_location_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_inventory_return_locations_inventory_return_location_id_200_response_data_attributes.go b/api/model_patch_inventory_return_locations_inventory_return_location_id_200_response_data_attributes.go index 0e4fb36e..b32aca49 100644 --- a/api/model_patch_inventory_return_locations_inventory_return_location_id_200_response_data_attributes.go +++ b/api/model_patch_inventory_return_locations_inventory_return_location_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type PATCHInventoryReturnLocationsInventoryReturnLocationId200ResponseDataAttrib Priority interface{} `json:"priority,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_inventory_stock_locations_inventory_stock_location_id_200_response.go b/api/model_patch_inventory_stock_locations_inventory_stock_location_id_200_response.go index 947fe3a1..3241da56 100644 --- a/api/model_patch_inventory_stock_locations_inventory_stock_location_id_200_response.go +++ b/api/model_patch_inventory_stock_locations_inventory_stock_location_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_inventory_stock_locations_inventory_stock_location_id_200_response_data.go b/api/model_patch_inventory_stock_locations_inventory_stock_location_id_200_response_data.go index e39bc1af..b865235c 100644 --- a/api/model_patch_inventory_stock_locations_inventory_stock_location_id_200_response_data.go +++ b/api/model_patch_inventory_stock_locations_inventory_stock_location_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_inventory_stock_locations_inventory_stock_location_id_200_response_data_attributes.go b/api/model_patch_inventory_stock_locations_inventory_stock_location_id_200_response_data_attributes.go index 070abba0..e292ce6d 100644 --- a/api/model_patch_inventory_stock_locations_inventory_stock_location_id_200_response_data_attributes.go +++ b/api/model_patch_inventory_stock_locations_inventory_stock_location_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type PATCHInventoryStockLocationsInventoryStockLocationId200ResponseDataAttribut OnHold interface{} `json:"on_hold,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_klarna_gateways_klarna_gateway_id_200_response.go b/api/model_patch_klarna_gateways_klarna_gateway_id_200_response.go index 4810bd66..91ecd33a 100644 --- a/api/model_patch_klarna_gateways_klarna_gateway_id_200_response.go +++ b/api/model_patch_klarna_gateways_klarna_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_klarna_gateways_klarna_gateway_id_200_response_data.go b/api/model_patch_klarna_gateways_klarna_gateway_id_200_response_data.go index 6fa11624..4726fcaa 100644 --- a/api/model_patch_klarna_gateways_klarna_gateway_id_200_response_data.go +++ b/api/model_patch_klarna_gateways_klarna_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_klarna_gateways_klarna_gateway_id_200_response_data_attributes.go b/api/model_patch_klarna_gateways_klarna_gateway_id_200_response_data_attributes.go index ad922834..b27ec6c0 100644 --- a/api/model_patch_klarna_gateways_klarna_gateway_id_200_response_data_attributes.go +++ b/api/model_patch_klarna_gateways_klarna_gateway_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type PATCHKlarnaGatewaysKlarnaGatewayId200ResponseDataAttributes struct { Name interface{} `json:"name,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_klarna_payments_klarna_payment_id_200_response.go b/api/model_patch_klarna_payments_klarna_payment_id_200_response.go index 9428fa9f..813055f2 100644 --- a/api/model_patch_klarna_payments_klarna_payment_id_200_response.go +++ b/api/model_patch_klarna_payments_klarna_payment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_klarna_payments_klarna_payment_id_200_response_data.go b/api/model_patch_klarna_payments_klarna_payment_id_200_response_data.go index e7939806..8e97746e 100644 --- a/api/model_patch_klarna_payments_klarna_payment_id_200_response_data.go +++ b/api/model_patch_klarna_payments_klarna_payment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_klarna_payments_klarna_payment_id_200_response_data_attributes.go b/api/model_patch_klarna_payments_klarna_payment_id_200_response_data_attributes.go index 7d54a071..1169fe47 100644 --- a/api/model_patch_klarna_payments_klarna_payment_id_200_response_data_attributes.go +++ b/api/model_patch_klarna_payments_klarna_payment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type PATCHKlarnaPaymentsKlarnaPaymentId200ResponseDataAttributes struct { Update interface{} `json:"_update,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_line_item_options_line_item_option_id_200_response.go b/api/model_patch_line_item_options_line_item_option_id_200_response.go index 924ada38..2e7d9b77 100644 --- a/api/model_patch_line_item_options_line_item_option_id_200_response.go +++ b/api/model_patch_line_item_options_line_item_option_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_line_item_options_line_item_option_id_200_response_data.go b/api/model_patch_line_item_options_line_item_option_id_200_response_data.go index 08e26021..adbc4002 100644 --- a/api/model_patch_line_item_options_line_item_option_id_200_response_data.go +++ b/api/model_patch_line_item_options_line_item_option_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_line_item_options_line_item_option_id_200_response_data_attributes.go b/api/model_patch_line_item_options_line_item_option_id_200_response_data_attributes.go index 75c61073..a18e8aa0 100644 --- a/api/model_patch_line_item_options_line_item_option_id_200_response_data_attributes.go +++ b/api/model_patch_line_item_options_line_item_option_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,13 +22,15 @@ var _ MappedNullable = &PATCHLineItemOptionsLineItemOptionId200ResponseDataAttri type PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes struct { // The name of the line item option. When blank, it gets populated with the name of the associated SKU option. Name interface{} `json:"name,omitempty"` - // The line item option's quantity + // The line item option's quantity. Quantity interface{} `json:"quantity,omitempty"` + // The unit amount of the line item option, in cents. When you add a line item option to an order, this is automatically populated from associated SKU option's price. Cannot be passed by sales channels. + UnitAmountCents interface{} `json:"unit_amount_cents,omitempty"` // Set of key-value pairs that represent the selected options. Options interface{} `json:"options,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -117,6 +119,39 @@ func (o *PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes) SetQuant o.Quantity = v } +// GetUnitAmountCents returns the UnitAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes) GetUnitAmountCents() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UnitAmountCents +} + +// GetUnitAmountCentsOk returns a tuple with the UnitAmountCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes) GetUnitAmountCentsOk() (*interface{}, bool) { + if o == nil || IsNil(o.UnitAmountCents) { + return nil, false + } + return &o.UnitAmountCents, true +} + +// HasUnitAmountCents returns a boolean if a field has been set. +func (o *PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes) HasUnitAmountCents() bool { + if o != nil && IsNil(o.UnitAmountCents) { + return true + } + + return false +} + +// SetUnitAmountCents gets a reference to the given interface{} and assigns it to the UnitAmountCents field. +func (o *PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes) SetUnitAmountCents(v interface{}) { + o.UnitAmountCents = v +} + // GetOptions returns the Options field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes) GetOptions() interface{} { if o == nil { @@ -265,6 +300,9 @@ func (o PATCHLineItemOptionsLineItemOptionId200ResponseDataAttributes) ToMap() ( if o.Quantity != nil { toSerialize["quantity"] = o.Quantity } + if o.UnitAmountCents != nil { + toSerialize["unit_amount_cents"] = o.UnitAmountCents + } if o.Options != nil { toSerialize["options"] = o.Options } diff --git a/api/model_patch_line_items_line_item_id_200_response.go b/api/model_patch_line_items_line_item_id_200_response.go index bfdc08a0..86ba6c33 100644 --- a/api/model_patch_line_items_line_item_id_200_response.go +++ b/api/model_patch_line_items_line_item_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_line_items_line_item_id_200_response_data.go b/api/model_patch_line_items_line_item_id_200_response_data.go index fcd0d445..359fda0c 100644 --- a/api/model_patch_line_items_line_item_id_200_response_data.go +++ b/api/model_patch_line_items_line_item_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_line_items_line_item_id_200_response_data_attributes.go b/api/model_patch_line_items_line_item_id_200_response_data_attributes.go index 5c76c824..aabf2b9a 100644 --- a/api/model_patch_line_items_line_item_id_200_response_data_attributes.go +++ b/api/model_patch_line_items_line_item_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,17 +26,27 @@ type PATCHLineItemsLineItemId200ResponseDataAttributes struct { BundleCode interface{} `json:"bundle_code,omitempty"` // The line item quantity. Quantity interface{} `json:"quantity,omitempty"` - // When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. + // When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'. ExternalPrice interface{} `json:"_external_price,omitempty"` + // Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed. Cannot be passed by sales channels. + ReserveStock interface{} `json:"_reserve_stock,omitempty"` + // The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. + UnitAmountCents interface{} `json:"unit_amount_cents,omitempty"` + // The compared price amount, in cents. Useful to display a percentage discount. + CompareAtAmountCents interface{} `json:"compare_at_amount_cents,omitempty"` + // The options amount of the line item, in cents. Cannot be passed by sales channels. + OptionsAmountCents interface{} `json:"options_amount_cents,omitempty"` // The name of the line item. When blank, it gets populated with the name of the associated item (if present). Name interface{} `json:"name,omitempty"` // The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only). ImageUrl interface{} `json:"image_url,omitempty"` // The frequency which generates a subscription. Must be supported by existing associated subscription_model. Frequency interface{} `json:"frequency,omitempty"` + // Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. + ResetCircuit interface{} `json:"_reset_circuit,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -191,6 +201,138 @@ func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) SetExternalPrice(v i o.ExternalPrice = v } +// GetReserveStock returns the ReserveStock field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetReserveStock() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReserveStock +} + +// GetReserveStockOk returns a tuple with the ReserveStock field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetReserveStockOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReserveStock) { + return nil, false + } + return &o.ReserveStock, true +} + +// HasReserveStock returns a boolean if a field has been set. +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) HasReserveStock() bool { + if o != nil && IsNil(o.ReserveStock) { + return true + } + + return false +} + +// SetReserveStock gets a reference to the given interface{} and assigns it to the ReserveStock field. +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) SetReserveStock(v interface{}) { + o.ReserveStock = v +} + +// GetUnitAmountCents returns the UnitAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetUnitAmountCents() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UnitAmountCents +} + +// GetUnitAmountCentsOk returns a tuple with the UnitAmountCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetUnitAmountCentsOk() (*interface{}, bool) { + if o == nil || IsNil(o.UnitAmountCents) { + return nil, false + } + return &o.UnitAmountCents, true +} + +// HasUnitAmountCents returns a boolean if a field has been set. +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) HasUnitAmountCents() bool { + if o != nil && IsNil(o.UnitAmountCents) { + return true + } + + return false +} + +// SetUnitAmountCents gets a reference to the given interface{} and assigns it to the UnitAmountCents field. +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) SetUnitAmountCents(v interface{}) { + o.UnitAmountCents = v +} + +// GetCompareAtAmountCents returns the CompareAtAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetCompareAtAmountCents() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CompareAtAmountCents +} + +// GetCompareAtAmountCentsOk returns a tuple with the CompareAtAmountCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetCompareAtAmountCentsOk() (*interface{}, bool) { + if o == nil || IsNil(o.CompareAtAmountCents) { + return nil, false + } + return &o.CompareAtAmountCents, true +} + +// HasCompareAtAmountCents returns a boolean if a field has been set. +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) HasCompareAtAmountCents() bool { + if o != nil && IsNil(o.CompareAtAmountCents) { + return true + } + + return false +} + +// SetCompareAtAmountCents gets a reference to the given interface{} and assigns it to the CompareAtAmountCents field. +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) SetCompareAtAmountCents(v interface{}) { + o.CompareAtAmountCents = v +} + +// GetOptionsAmountCents returns the OptionsAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetOptionsAmountCents() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.OptionsAmountCents +} + +// GetOptionsAmountCentsOk returns a tuple with the OptionsAmountCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetOptionsAmountCentsOk() (*interface{}, bool) { + if o == nil || IsNil(o.OptionsAmountCents) { + return nil, false + } + return &o.OptionsAmountCents, true +} + +// HasOptionsAmountCents returns a boolean if a field has been set. +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) HasOptionsAmountCents() bool { + if o != nil && IsNil(o.OptionsAmountCents) { + return true + } + + return false +} + +// SetOptionsAmountCents gets a reference to the given interface{} and assigns it to the OptionsAmountCents field. +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) SetOptionsAmountCents(v interface{}) { + o.OptionsAmountCents = v +} + // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetName() interface{} { if o == nil { @@ -290,6 +432,39 @@ func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) SetFrequency(v inter o.Frequency = v } +// GetResetCircuit returns the ResetCircuit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetResetCircuit() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ResetCircuit +} + +// GetResetCircuitOk returns a tuple with the ResetCircuit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetResetCircuitOk() (*interface{}, bool) { + if o == nil || IsNil(o.ResetCircuit) { + return nil, false + } + return &o.ResetCircuit, true +} + +// HasResetCircuit returns a boolean if a field has been set. +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) HasResetCircuit() bool { + if o != nil && IsNil(o.ResetCircuit) { + return true + } + + return false +} + +// SetResetCircuit gets a reference to the given interface{} and assigns it to the ResetCircuit field. +func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) SetResetCircuit(v interface{}) { + o.ResetCircuit = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHLineItemsLineItemId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -411,6 +586,18 @@ func (o PATCHLineItemsLineItemId200ResponseDataAttributes) ToMap() (map[string]i if o.ExternalPrice != nil { toSerialize["_external_price"] = o.ExternalPrice } + if o.ReserveStock != nil { + toSerialize["_reserve_stock"] = o.ReserveStock + } + if o.UnitAmountCents != nil { + toSerialize["unit_amount_cents"] = o.UnitAmountCents + } + if o.CompareAtAmountCents != nil { + toSerialize["compare_at_amount_cents"] = o.CompareAtAmountCents + } + if o.OptionsAmountCents != nil { + toSerialize["options_amount_cents"] = o.OptionsAmountCents + } if o.Name != nil { toSerialize["name"] = o.Name } @@ -420,6 +607,9 @@ func (o PATCHLineItemsLineItemId200ResponseDataAttributes) ToMap() (map[string]i if o.Frequency != nil { toSerialize["frequency"] = o.Frequency } + if o.ResetCircuit != nil { + toSerialize["_reset_circuit"] = o.ResetCircuit + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_patch_links_link_id_200_response.go b/api/model_patch_links_link_id_200_response.go new file mode 100644 index 00000000..8b3d830d --- /dev/null +++ b/api/model_patch_links_link_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHLinksLinkId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHLinksLinkId200Response{} + +// PATCHLinksLinkId200Response struct for PATCHLinksLinkId200Response +type PATCHLinksLinkId200Response struct { + Data *PATCHLinksLinkId200ResponseData `json:"data,omitempty"` +} + +// NewPATCHLinksLinkId200Response instantiates a new PATCHLinksLinkId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHLinksLinkId200Response() *PATCHLinksLinkId200Response { + this := PATCHLinksLinkId200Response{} + return &this +} + +// NewPATCHLinksLinkId200ResponseWithDefaults instantiates a new PATCHLinksLinkId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHLinksLinkId200ResponseWithDefaults() *PATCHLinksLinkId200Response { + this := PATCHLinksLinkId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PATCHLinksLinkId200Response) GetData() PATCHLinksLinkId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret PATCHLinksLinkId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHLinksLinkId200Response) GetDataOk() (*PATCHLinksLinkId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PATCHLinksLinkId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given PATCHLinksLinkId200ResponseData and assigns it to the Data field. +func (o *PATCHLinksLinkId200Response) SetData(v PATCHLinksLinkId200ResponseData) { + o.Data = &v +} + +func (o PATCHLinksLinkId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHLinksLinkId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePATCHLinksLinkId200Response struct { + value *PATCHLinksLinkId200Response + isSet bool +} + +func (v NullablePATCHLinksLinkId200Response) Get() *PATCHLinksLinkId200Response { + return v.value +} + +func (v *NullablePATCHLinksLinkId200Response) Set(val *PATCHLinksLinkId200Response) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHLinksLinkId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHLinksLinkId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHLinksLinkId200Response(val *PATCHLinksLinkId200Response) *NullablePATCHLinksLinkId200Response { + return &NullablePATCHLinksLinkId200Response{value: val, isSet: true} +} + +func (v NullablePATCHLinksLinkId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHLinksLinkId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_links_link_id_200_response_data.go b/api/model_patch_links_link_id_200_response_data.go new file mode 100644 index 00000000..1f5bfa46 --- /dev/null +++ b/api/model_patch_links_link_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHLinksLinkId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHLinksLinkId200ResponseData{} + +// PATCHLinksLinkId200ResponseData struct for PATCHLinksLinkId200ResponseData +type PATCHLinksLinkId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHLinksLinkId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTLinks201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPATCHLinksLinkId200ResponseData instantiates a new PATCHLinksLinkId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHLinksLinkId200ResponseData() *PATCHLinksLinkId200ResponseData { + this := PATCHLinksLinkId200ResponseData{} + return &this +} + +// NewPATCHLinksLinkId200ResponseDataWithDefaults instantiates a new PATCHLinksLinkId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHLinksLinkId200ResponseDataWithDefaults() *PATCHLinksLinkId200ResponseData { + this := PATCHLinksLinkId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLinksLinkId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLinksLinkId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PATCHLinksLinkId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *PATCHLinksLinkId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLinksLinkId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLinksLinkId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PATCHLinksLinkId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *PATCHLinksLinkId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PATCHLinksLinkId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHLinksLinkId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PATCHLinksLinkId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *PATCHLinksLinkId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *PATCHLinksLinkId200ResponseData) GetAttributes() PATCHLinksLinkId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret PATCHLinksLinkId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHLinksLinkId200ResponseData) GetAttributesOk() (*PATCHLinksLinkId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *PATCHLinksLinkId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given PATCHLinksLinkId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *PATCHLinksLinkId200ResponseData) SetAttributes(v PATCHLinksLinkId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PATCHLinksLinkId200ResponseData) GetRelationships() POSTLinks201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTLinks201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHLinksLinkId200ResponseData) GetRelationshipsOk() (*POSTLinks201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PATCHLinksLinkId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTLinks201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHLinksLinkId200ResponseData) SetRelationships(v POSTLinks201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o PATCHLinksLinkId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHLinksLinkId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePATCHLinksLinkId200ResponseData struct { + value *PATCHLinksLinkId200ResponseData + isSet bool +} + +func (v NullablePATCHLinksLinkId200ResponseData) Get() *PATCHLinksLinkId200ResponseData { + return v.value +} + +func (v *NullablePATCHLinksLinkId200ResponseData) Set(val *PATCHLinksLinkId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHLinksLinkId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHLinksLinkId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHLinksLinkId200ResponseData(val *PATCHLinksLinkId200ResponseData) *NullablePATCHLinksLinkId200ResponseData { + return &NullablePATCHLinksLinkId200ResponseData{value: val, isSet: true} +} + +func (v NullablePATCHLinksLinkId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHLinksLinkId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_links_link_id_200_response_data_attributes.go b/api/model_patch_links_link_id_200_response_data_attributes.go new file mode 100644 index 00000000..daebfcaa --- /dev/null +++ b/api/model_patch_links_link_id_200_response_data_attributes.go @@ -0,0 +1,545 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHLinksLinkId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHLinksLinkId200ResponseDataAttributes{} + +// PATCHLinksLinkId200ResponseDataAttributes struct for PATCHLinksLinkId200ResponseDataAttributes +type PATCHLinksLinkId200ResponseDataAttributes struct { + // The link internal name. + Name interface{} `json:"name,omitempty"` + // The link application client id, used to fetch JWT. + ClientId interface{} `json:"client_id,omitempty"` + // The link application scope, used to fetch JWT. + Scope interface{} `json:"scope,omitempty"` + // The activation date/time of this link. + StartsAt interface{} `json:"starts_at,omitempty"` + // The expiration date/time of this link (must be after starts_at). + ExpiresAt interface{} `json:"expires_at,omitempty"` + // The link URL second level domain. + Domain interface{} `json:"domain,omitempty"` + // The link params to be passed in URL the query string. + Params interface{} `json:"params,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPATCHLinksLinkId200ResponseDataAttributes instantiates a new PATCHLinksLinkId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHLinksLinkId200ResponseDataAttributes() *PATCHLinksLinkId200ResponseDataAttributes { + this := PATCHLinksLinkId200ResponseDataAttributes{} + return &this +} + +// NewPATCHLinksLinkId200ResponseDataAttributesWithDefaults instantiates a new PATCHLinksLinkId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHLinksLinkId200ResponseDataAttributesWithDefaults() *PATCHLinksLinkId200ResponseDataAttributes { + this := PATCHLinksLinkId200ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PATCHLinksLinkId200ResponseDataAttributes) HasName() bool { + if o != nil && IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given interface{} and assigns it to the Name field. +func (o *PATCHLinksLinkId200ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetClientId returns the ClientId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetClientId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetClientIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.ClientId) { + return nil, false + } + return &o.ClientId, true +} + +// HasClientId returns a boolean if a field has been set. +func (o *PATCHLinksLinkId200ResponseDataAttributes) HasClientId() bool { + if o != nil && IsNil(o.ClientId) { + return true + } + + return false +} + +// SetClientId gets a reference to the given interface{} and assigns it to the ClientId field. +func (o *PATCHLinksLinkId200ResponseDataAttributes) SetClientId(v interface{}) { + o.ClientId = v +} + +// GetScope returns the Scope field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetScope() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Scope +} + +// GetScopeOk returns a tuple with the Scope field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetScopeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Scope) { + return nil, false + } + return &o.Scope, true +} + +// HasScope returns a boolean if a field has been set. +func (o *PATCHLinksLinkId200ResponseDataAttributes) HasScope() bool { + if o != nil && IsNil(o.Scope) { + return true + } + + return false +} + +// SetScope gets a reference to the given interface{} and assigns it to the Scope field. +func (o *PATCHLinksLinkId200ResponseDataAttributes) SetScope(v interface{}) { + o.Scope = v +} + +// GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetStartsAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.StartsAt +} + +// GetStartsAtOk returns a tuple with the StartsAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.StartsAt) { + return nil, false + } + return &o.StartsAt, true +} + +// HasStartsAt returns a boolean if a field has been set. +func (o *PATCHLinksLinkId200ResponseDataAttributes) HasStartsAt() bool { + if o != nil && IsNil(o.StartsAt) { + return true + } + + return false +} + +// SetStartsAt gets a reference to the given interface{} and assigns it to the StartsAt field. +func (o *PATCHLinksLinkId200ResponseDataAttributes) SetStartsAt(v interface{}) { + o.StartsAt = v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetExpiresAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExpiresAt) { + return nil, false + } + return &o.ExpiresAt, true +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *PATCHLinksLinkId200ResponseDataAttributes) HasExpiresAt() bool { + if o != nil && IsNil(o.ExpiresAt) { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given interface{} and assigns it to the ExpiresAt field. +func (o *PATCHLinksLinkId200ResponseDataAttributes) SetExpiresAt(v interface{}) { + o.ExpiresAt = v +} + +// GetDomain returns the Domain field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetDomain() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetDomainOk() (*interface{}, bool) { + if o == nil || IsNil(o.Domain) { + return nil, false + } + return &o.Domain, true +} + +// HasDomain returns a boolean if a field has been set. +func (o *PATCHLinksLinkId200ResponseDataAttributes) HasDomain() bool { + if o != nil && IsNil(o.Domain) { + return true + } + + return false +} + +// SetDomain gets a reference to the given interface{} and assigns it to the Domain field. +func (o *PATCHLinksLinkId200ResponseDataAttributes) SetDomain(v interface{}) { + o.Domain = v +} + +// GetParams returns the Params field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetParams() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetParamsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Params) { + return nil, false + } + return &o.Params, true +} + +// HasParams returns a boolean if a field has been set. +func (o *PATCHLinksLinkId200ResponseDataAttributes) HasParams() bool { + if o != nil && IsNil(o.Params) { + return true + } + + return false +} + +// SetParams gets a reference to the given interface{} and assigns it to the Params field. +func (o *PATCHLinksLinkId200ResponseDataAttributes) SetParams(v interface{}) { + o.Params = v +} + +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *PATCHLinksLinkId200ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *PATCHLinksLinkId200ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *PATCHLinksLinkId200ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *PATCHLinksLinkId200ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *PATCHLinksLinkId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *PATCHLinksLinkId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *PATCHLinksLinkId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *PATCHLinksLinkId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHLinksLinkId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *PATCHLinksLinkId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *PATCHLinksLinkId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o PATCHLinksLinkId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHLinksLinkId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.ClientId != nil { + toSerialize["client_id"] = o.ClientId + } + if o.Scope != nil { + toSerialize["scope"] = o.Scope + } + if o.StartsAt != nil { + toSerialize["starts_at"] = o.StartsAt + } + if o.ExpiresAt != nil { + toSerialize["expires_at"] = o.ExpiresAt + } + if o.Domain != nil { + toSerialize["domain"] = o.Domain + } + if o.Params != nil { + toSerialize["params"] = o.Params + } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePATCHLinksLinkId200ResponseDataAttributes struct { + value *PATCHLinksLinkId200ResponseDataAttributes + isSet bool +} + +func (v NullablePATCHLinksLinkId200ResponseDataAttributes) Get() *PATCHLinksLinkId200ResponseDataAttributes { + return v.value +} + +func (v *NullablePATCHLinksLinkId200ResponseDataAttributes) Set(val *PATCHLinksLinkId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHLinksLinkId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHLinksLinkId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHLinksLinkId200ResponseDataAttributes(val *PATCHLinksLinkId200ResponseDataAttributes) *NullablePATCHLinksLinkId200ResponseDataAttributes { + return &NullablePATCHLinksLinkId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePATCHLinksLinkId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHLinksLinkId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_manual_gateways_manual_gateway_id_200_response.go b/api/model_patch_manual_gateways_manual_gateway_id_200_response.go index c7926fe9..9dfaca35 100644 --- a/api/model_patch_manual_gateways_manual_gateway_id_200_response.go +++ b/api/model_patch_manual_gateways_manual_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_manual_gateways_manual_gateway_id_200_response_data.go b/api/model_patch_manual_gateways_manual_gateway_id_200_response_data.go index 70d9c482..26d6c19f 100644 --- a/api/model_patch_manual_gateways_manual_gateway_id_200_response_data.go +++ b/api/model_patch_manual_gateways_manual_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_manual_gateways_manual_gateway_id_200_response_data_attributes.go b/api/model_patch_manual_gateways_manual_gateway_id_200_response_data_attributes.go index a70bac06..19283d28 100644 --- a/api/model_patch_manual_gateways_manual_gateway_id_200_response_data_attributes.go +++ b/api/model_patch_manual_gateways_manual_gateway_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type PATCHManualGatewaysManualGatewayId200ResponseDataAttributes struct { Name interface{} `json:"name,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_manual_tax_calculators_manual_tax_calculator_id_200_response.go b/api/model_patch_manual_tax_calculators_manual_tax_calculator_id_200_response.go index 186514fb..0e5c1067 100644 --- a/api/model_patch_manual_tax_calculators_manual_tax_calculator_id_200_response.go +++ b/api/model_patch_manual_tax_calculators_manual_tax_calculator_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_manual_tax_calculators_manual_tax_calculator_id_200_response_data.go b/api/model_patch_manual_tax_calculators_manual_tax_calculator_id_200_response_data.go index 09ec1f65..40a98670 100644 --- a/api/model_patch_manual_tax_calculators_manual_tax_calculator_id_200_response_data.go +++ b/api/model_patch_manual_tax_calculators_manual_tax_calculator_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_manual_tax_calculators_manual_tax_calculator_id_200_response_data_attributes.go b/api/model_patch_manual_tax_calculators_manual_tax_calculator_id_200_response_data_attributes.go index e3c97946..4be7783e 100644 --- a/api/model_patch_manual_tax_calculators_manual_tax_calculator_id_200_response_data_attributes.go +++ b/api/model_patch_manual_tax_calculators_manual_tax_calculator_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type PATCHManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes str Name interface{} `json:"name,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_markets_market_id_200_response.go b/api/model_patch_markets_market_id_200_response.go index 198cc14f..b871c166 100644 --- a/api/model_patch_markets_market_id_200_response.go +++ b/api/model_patch_markets_market_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_markets_market_id_200_response_data.go b/api/model_patch_markets_market_id_200_response_data.go index d5e859a3..84f3847e 100644 --- a/api/model_patch_markets_market_id_200_response_data.go +++ b/api/model_patch_markets_market_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_markets_market_id_200_response_data_attributes.go b/api/model_patch_markets_market_id_200_response_data_attributes.go index 4f9f1a12..10f73582 100644 --- a/api/model_patch_markets_market_id_200_response_data_attributes.go +++ b/api/model_patch_markets_market_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,23 +20,27 @@ var _ MappedNullable = &PATCHMarketsMarketId200ResponseDataAttributes{} // PATCHMarketsMarketId200ResponseDataAttributes struct for PATCHMarketsMarketId200ResponseDataAttributes type PATCHMarketsMarketId200ResponseDataAttributes struct { - // The market's internal name + // The market's internal name. Name interface{} `json:"name,omitempty"` - // The Facebook Pixed ID + // A string that you can use to identify the market (must be unique within the environment). + Code interface{} `json:"code,omitempty"` + // The Facebook Pixed ID. FacebookPixelId interface{} `json:"facebook_pixel_id,omitempty"` - // The checkout URL for this market + // The checkout URL for this market. CheckoutUrl interface{} `json:"checkout_url,omitempty"` // The URL used to overwrite prices by an external source. ExternalPricesUrl interface{} `json:"external_prices_url,omitempty"` // The URL used to validate orders by an external source. ExternalOrderValidationUrl interface{} `json:"external_order_validation_url,omitempty"` - // Send this attribute if you want to mark the market as disabled. + // When specified indicates the maximum number of shipping line items with cost that will be added to an order. + ShippingCostCutoff interface{} `json:"shipping_cost_cutoff,omitempty"` + // Send this attribute if you want to mark this resource as disabled. Disable interface{} `json:"_disable,omitempty"` - // Send this attribute if you want to mark the market as enabled. + // Send this attribute if you want to mark this resource as enabled. Enable interface{} `json:"_enable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -92,6 +96,39 @@ func (o *PATCHMarketsMarketId200ResponseDataAttributes) SetName(v interface{}) { o.Name = v } +// GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHMarketsMarketId200ResponseDataAttributes) GetCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHMarketsMarketId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return &o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *PATCHMarketsMarketId200ResponseDataAttributes) HasCode() bool { + if o != nil && IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given interface{} and assigns it to the Code field. +func (o *PATCHMarketsMarketId200ResponseDataAttributes) SetCode(v interface{}) { + o.Code = v +} + // GetFacebookPixelId returns the FacebookPixelId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHMarketsMarketId200ResponseDataAttributes) GetFacebookPixelId() interface{} { if o == nil { @@ -224,6 +261,39 @@ func (o *PATCHMarketsMarketId200ResponseDataAttributes) SetExternalOrderValidati o.ExternalOrderValidationUrl = v } +// GetShippingCostCutoff returns the ShippingCostCutoff field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHMarketsMarketId200ResponseDataAttributes) GetShippingCostCutoff() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ShippingCostCutoff +} + +// GetShippingCostCutoffOk returns a tuple with the ShippingCostCutoff field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHMarketsMarketId200ResponseDataAttributes) GetShippingCostCutoffOk() (*interface{}, bool) { + if o == nil || IsNil(o.ShippingCostCutoff) { + return nil, false + } + return &o.ShippingCostCutoff, true +} + +// HasShippingCostCutoff returns a boolean if a field has been set. +func (o *PATCHMarketsMarketId200ResponseDataAttributes) HasShippingCostCutoff() bool { + if o != nil && IsNil(o.ShippingCostCutoff) { + return true + } + + return false +} + +// SetShippingCostCutoff gets a reference to the given interface{} and assigns it to the ShippingCostCutoff field. +func (o *PATCHMarketsMarketId200ResponseDataAttributes) SetShippingCostCutoff(v interface{}) { + o.ShippingCostCutoff = v +} + // GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHMarketsMarketId200ResponseDataAttributes) GetDisable() interface{} { if o == nil { @@ -402,6 +472,9 @@ func (o PATCHMarketsMarketId200ResponseDataAttributes) ToMap() (map[string]inter if o.Name != nil { toSerialize["name"] = o.Name } + if o.Code != nil { + toSerialize["code"] = o.Code + } if o.FacebookPixelId != nil { toSerialize["facebook_pixel_id"] = o.FacebookPixelId } @@ -414,6 +487,9 @@ func (o PATCHMarketsMarketId200ResponseDataAttributes) ToMap() (map[string]inter if o.ExternalOrderValidationUrl != nil { toSerialize["external_order_validation_url"] = o.ExternalOrderValidationUrl } + if o.ShippingCostCutoff != nil { + toSerialize["shipping_cost_cutoff"] = o.ShippingCostCutoff + } if o.Disable != nil { toSerialize["_disable"] = o.Disable } diff --git a/api/model_patch_merchants_merchant_id_200_response.go b/api/model_patch_merchants_merchant_id_200_response.go index 458bdd6e..8b78f80b 100644 --- a/api/model_patch_merchants_merchant_id_200_response.go +++ b/api/model_patch_merchants_merchant_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_merchants_merchant_id_200_response_data.go b/api/model_patch_merchants_merchant_id_200_response_data.go index 0d363fc7..dc8a0666 100644 --- a/api/model_patch_merchants_merchant_id_200_response_data.go +++ b/api/model_patch_merchants_merchant_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_merchants_merchant_id_200_response_data_attributes.go b/api/model_patch_merchants_merchant_id_200_response_data_attributes.go index 0b8f8671..2c1268bd 100644 --- a/api/model_patch_merchants_merchant_id_200_response_data_attributes.go +++ b/api/model_patch_merchants_merchant_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type PATCHMerchantsMerchantId200ResponseDataAttributes struct { Name interface{} `json:"name,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response.go b/api/model_patch_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response.go index 45021757..b522bce4 100644 --- a/api/model_patch_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response.go +++ b/api/model_patch_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response_data.go b/api/model_patch_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response_data.go index 367bc48a..c786e966 100644 --- a/api/model_patch_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response_data.go +++ b/api/model_patch_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData str Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTOrderAmountPromotionRules201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTCustomPromotionRules201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData instantiates a new PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData object @@ -177,9 +177,9 @@ func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) GetRelationships() POSTOrderAmountPromotionRules201ResponseDataRelationships { +func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) GetRelationships() POSTCustomPromotionRules201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTOrderAmountPromotionRules201ResponseDataRelationships + var ret POSTCustomPromotionRules201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) GetRelationshipsOk() (*POSTOrderAmountPromotionRules201ResponseDataRelationships, bool) { +func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) GetRelationshipsOk() (*POSTCustomPromotionRules201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData return false } -// SetRelationships gets a reference to the given POSTOrderAmountPromotionRules201ResponseDataRelationships and assigns it to the Relationships field. -func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) SetRelationships(v POSTOrderAmountPromotionRules201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTCustomPromotionRules201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData) SetRelationships(v POSTCustomPromotionRules201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_patch_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response_data_attributes.go b/api/model_patch_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response_data_attributes.go index 4a2d8657..581a2df5 100644 --- a/api/model_patch_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response_data_attributes.go +++ b/api/model_patch_order_amount_promotion_rules_order_amount_promotion_rule_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,12 +22,14 @@ var _ MappedNullable = &PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId type PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes struct { // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` // Apply the promotion only when order is over this amount, in cents. OrderAmountCents interface{} `json:"order_amount_cents,omitempty"` + // Send this attribute if you want to compare the specified amount with order's subtotal (excluding discounts, if any). + UseSubtotal interface{} `json:"use_subtotal,omitempty"` } // NewPATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes instantiates a new PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes object @@ -179,6 +181,39 @@ func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseData o.OrderAmountCents = v } +// GetUseSubtotal returns the UseSubtotal field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) GetUseSubtotal() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UseSubtotal +} + +// GetUseSubtotalOk returns a tuple with the UseSubtotal field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) GetUseSubtotalOk() (*interface{}, bool) { + if o == nil || IsNil(o.UseSubtotal) { + return nil, false + } + return &o.UseSubtotal, true +} + +// HasUseSubtotal returns a boolean if a field has been set. +func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) HasUseSubtotal() bool { + if o != nil && IsNil(o.UseSubtotal) { + return true + } + + return false +} + +// SetUseSubtotal gets a reference to the given interface{} and assigns it to the UseSubtotal field. +func (o *PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) SetUseSubtotal(v interface{}) { + o.UseSubtotal = v +} + func (o PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -201,6 +236,9 @@ func (o PATCHOrderAmountPromotionRulesOrderAmountPromotionRuleId200ResponseDataA if o.OrderAmountCents != nil { toSerialize["order_amount_cents"] = o.OrderAmountCents } + if o.UseSubtotal != nil { + toSerialize["use_subtotal"] = o.UseSubtotal + } return toSerialize, nil } diff --git a/api/model_patch_order_copies_order_copy_id_200_response.go b/api/model_patch_order_copies_order_copy_id_200_response.go index bfbd2be5..35ad800c 100644 --- a/api/model_patch_order_copies_order_copy_id_200_response.go +++ b/api/model_patch_order_copies_order_copy_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_order_copies_order_copy_id_200_response_data.go b/api/model_patch_order_copies_order_copy_id_200_response_data.go index e7bc793e..56c17b58 100644 --- a/api/model_patch_order_copies_order_copy_id_200_response_data.go +++ b/api/model_patch_order_copies_order_copy_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_order_subscription_items_order_subscription_item_id_200_response.go b/api/model_patch_order_subscription_items_order_subscription_item_id_200_response.go index b1033b3e..89ca07e6 100644 --- a/api/model_patch_order_subscription_items_order_subscription_item_id_200_response.go +++ b/api/model_patch_order_subscription_items_order_subscription_item_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_order_subscription_items_order_subscription_item_id_200_response_data.go b/api/model_patch_order_subscription_items_order_subscription_item_id_200_response_data.go index 539daba0..88f6fdc4 100644 --- a/api/model_patch_order_subscription_items_order_subscription_item_id_200_response_data.go +++ b/api/model_patch_order_subscription_items_order_subscription_item_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_order_subscription_items_order_subscription_item_id_200_response_data_attributes.go b/api/model_patch_order_subscription_items_order_subscription_item_id_200_response_data_attributes.go index 13c9206b..f96cd761 100644 --- a/api/model_patch_order_subscription_items_order_subscription_item_id_200_response_data_attributes.go +++ b/api/model_patch_order_subscription_items_order_subscription_item_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -30,7 +30,7 @@ type PATCHOrderSubscriptionItemsOrderSubscriptionItemId200ResponseDataAttributes UnitAmountCents interface{} `json:"unit_amount_cents,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_order_subscriptions_order_subscription_id_200_response.go b/api/model_patch_order_subscriptions_order_subscription_id_200_response.go index 9929bf6f..64e1c7c8 100644 --- a/api/model_patch_order_subscriptions_order_subscription_id_200_response.go +++ b/api/model_patch_order_subscriptions_order_subscription_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_order_subscriptions_order_subscription_id_200_response_data.go b/api/model_patch_order_subscriptions_order_subscription_id_200_response_data.go index 3f718c38..b6ccad08 100644 --- a/api/model_patch_order_subscriptions_order_subscription_id_200_response_data.go +++ b/api/model_patch_order_subscriptions_order_subscription_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_order_subscriptions_order_subscription_id_200_response_data_attributes.go b/api/model_patch_order_subscriptions_order_subscription_id_200_response_data_attributes.go index bf3a3f6b..21a373b9 100644 --- a/api/model_patch_order_subscriptions_order_subscription_id_200_response_data_attributes.go +++ b/api/model_patch_order_subscriptions_order_subscription_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,6 +22,12 @@ var _ MappedNullable = &PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDat type PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes struct { // The frequency of the subscription. Use one of the supported within 'hourly', 'daily', 'weekly', 'monthly', 'two-month', 'three-month', 'four-month', 'six-month', 'yearly', or provide your custom crontab expression (min unit is hour). Must be supported by existing associated subscription_model. Frequency interface{} `json:"frequency,omitempty"` + // Indicates if the subscription will be activated considering the placed source order as its first run. + ActivateBySourceOrder interface{} `json:"activate_by_source_order,omitempty"` + // Indicates if the subscription created orders are automatically placed at the end of the copy. + PlaceTargetOrder interface{} `json:"place_target_order,omitempty"` + // Indicates the number of hours the renewal alert will be triggered before the subscription next run. Must be included between 1 and 720 hours. + RenewalAlertPeriod interface{} `json:"renewal_alert_period,omitempty"` // The expiration date/time of this subscription (must be after starts_at). ExpiresAt interface{} `json:"expires_at,omitempty"` // The date/time of the subscription next run. Can be updated but only in the future, to copy with frequency changes. @@ -32,9 +38,11 @@ type PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes struct Deactivate interface{} `json:"_deactivate,omitempty"` // Send this attribute if you want to mark this subscription as cancelled. Cancel interface{} `json:"_cancel,omitempty"` + // Send this attribute if you want to convert a manual subscription to an automatic one. A subscription model is required before conversion. + Convert interface{} `json:"_convert,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -90,6 +98,105 @@ func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) Se o.Frequency = v } +// GetActivateBySourceOrder returns the ActivateBySourceOrder field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetActivateBySourceOrder() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ActivateBySourceOrder +} + +// GetActivateBySourceOrderOk returns a tuple with the ActivateBySourceOrder field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetActivateBySourceOrderOk() (*interface{}, bool) { + if o == nil || IsNil(o.ActivateBySourceOrder) { + return nil, false + } + return &o.ActivateBySourceOrder, true +} + +// HasActivateBySourceOrder returns a boolean if a field has been set. +func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) HasActivateBySourceOrder() bool { + if o != nil && IsNil(o.ActivateBySourceOrder) { + return true + } + + return false +} + +// SetActivateBySourceOrder gets a reference to the given interface{} and assigns it to the ActivateBySourceOrder field. +func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetActivateBySourceOrder(v interface{}) { + o.ActivateBySourceOrder = v +} + +// GetPlaceTargetOrder returns the PlaceTargetOrder field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetPlaceTargetOrder() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PlaceTargetOrder +} + +// GetPlaceTargetOrderOk returns a tuple with the PlaceTargetOrder field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetPlaceTargetOrderOk() (*interface{}, bool) { + if o == nil || IsNil(o.PlaceTargetOrder) { + return nil, false + } + return &o.PlaceTargetOrder, true +} + +// HasPlaceTargetOrder returns a boolean if a field has been set. +func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) HasPlaceTargetOrder() bool { + if o != nil && IsNil(o.PlaceTargetOrder) { + return true + } + + return false +} + +// SetPlaceTargetOrder gets a reference to the given interface{} and assigns it to the PlaceTargetOrder field. +func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetPlaceTargetOrder(v interface{}) { + o.PlaceTargetOrder = v +} + +// GetRenewalAlertPeriod returns the RenewalAlertPeriod field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetRenewalAlertPeriod() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RenewalAlertPeriod +} + +// GetRenewalAlertPeriodOk returns a tuple with the RenewalAlertPeriod field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetRenewalAlertPeriodOk() (*interface{}, bool) { + if o == nil || IsNil(o.RenewalAlertPeriod) { + return nil, false + } + return &o.RenewalAlertPeriod, true +} + +// HasRenewalAlertPeriod returns a boolean if a field has been set. +func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) HasRenewalAlertPeriod() bool { + if o != nil && IsNil(o.RenewalAlertPeriod) { + return true + } + + return false +} + +// SetRenewalAlertPeriod gets a reference to the given interface{} and assigns it to the RenewalAlertPeriod field. +func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetRenewalAlertPeriod(v interface{}) { + o.RenewalAlertPeriod = v +} + // GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetExpiresAt() interface{} { if o == nil { @@ -255,6 +362,39 @@ func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) Se o.Cancel = v } +// GetConvert returns the Convert field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetConvert() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Convert +} + +// GetConvertOk returns a tuple with the Convert field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetConvertOk() (*interface{}, bool) { + if o == nil || IsNil(o.Convert) { + return nil, false + } + return &o.Convert, true +} + +// HasConvert returns a boolean if a field has been set. +func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) HasConvert() bool { + if o != nil && IsNil(o.Convert) { + return true + } + + return false +} + +// SetConvert gets a reference to the given interface{} and assigns it to the Convert field. +func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) SetConvert(v interface{}) { + o.Convert = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -367,6 +507,15 @@ func (o PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) ToM if o.Frequency != nil { toSerialize["frequency"] = o.Frequency } + if o.ActivateBySourceOrder != nil { + toSerialize["activate_by_source_order"] = o.ActivateBySourceOrder + } + if o.PlaceTargetOrder != nil { + toSerialize["place_target_order"] = o.PlaceTargetOrder + } + if o.RenewalAlertPeriod != nil { + toSerialize["renewal_alert_period"] = o.RenewalAlertPeriod + } if o.ExpiresAt != nil { toSerialize["expires_at"] = o.ExpiresAt } @@ -382,6 +531,9 @@ func (o PATCHOrderSubscriptionsOrderSubscriptionId200ResponseDataAttributes) ToM if o.Cancel != nil { toSerialize["_cancel"] = o.Cancel } + if o.Convert != nil { + toSerialize["_convert"] = o.Convert + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_patch_orders_order_id_200_response.go b/api/model_patch_orders_order_id_200_response.go index 8b6b656f..56022f81 100644 --- a/api/model_patch_orders_order_id_200_response.go +++ b/api/model_patch_orders_order_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_orders_order_id_200_response_data.go b/api/model_patch_orders_order_id_200_response_data.go index 7819264a..934404d7 100644 --- a/api/model_patch_orders_order_id_200_response_data.go +++ b/api/model_patch_orders_order_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_orders_order_id_200_response_data_attributes.go b/api/model_patch_orders_order_id_200_response_data_attributes.go index ee110973..842f0ea5 100644 --- a/api/model_patch_orders_order_id_200_response_data_attributes.go +++ b/api/model_patch_orders_order_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,14 @@ var _ MappedNullable = &PATCHOrdersOrderId200ResponseDataAttributes{} // PATCHOrdersOrderId200ResponseDataAttributes struct for PATCHOrdersOrderId200ResponseDataAttributes type PATCHOrdersOrderId200ResponseDataAttributes struct { + // The order identifier. Can be specified if unique within the organization (for enterprise plans only), default to numeric ID otherwise. Cannot be passed by sales channels. + Number interface{} `json:"number,omitempty"` + // The affiliate code, if any, the seller will transfer commission on shop by link transactions. + AffiliateCode interface{} `json:"affiliate_code,omitempty"` // Save this attribute as 'false' if you want prevent the order to be refreshed automatically at each change (much faster). Autorefresh interface{} `json:"autorefresh,omitempty"` + // Save this attribute as 'true' if you want perform the place asynchronously. Payment errors, if any, will be collected afterwards. + PlaceAsync interface{} `json:"place_async,omitempty"` // Indicates if the order has been placed as guest. Guest interface{} `json:"guest,omitempty"` // The email address of the associated customer. When creating or updating an order, this is a shortcut to find or create the associated customer by email. @@ -30,14 +36,20 @@ type PATCHOrdersOrderId200ResponseDataAttributes struct { CustomerPassword interface{} `json:"customer_password,omitempty"` // The preferred language code (ISO 639-1) to be used when communicating with the customer. This can be useful when sending the order to 3rd party marketing tools and CRMs. If the language is supported, the hosted checkout will be localized accordingly. LanguageCode interface{} `json:"language_code,omitempty"` - // The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. + // Indicates if taxes are applied to shipping costs. + FreightTaxable interface{} `json:"freight_taxable,omitempty"` + // Indicates if taxes are applied to payment methods costs. + PaymentMethodTaxable interface{} `json:"payment_method_taxable,omitempty"` + // Indicates if taxes are applied to positive adjustments. + AdjustmentTaxable interface{} `json:"adjustment_taxable,omitempty"` + // Indicates if taxes are applied to purchased gift cards. + GiftCardTaxable interface{} `json:"gift_card_taxable,omitempty"` + // The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. Not relevant if order contains only digital products. ShippingCountryCodeLock interface{} `json:"shipping_country_code_lock,omitempty"` // The coupon code to be used for the order. If valid, it triggers a promotion adding a discount line item to the order. CouponCode interface{} `json:"coupon_code,omitempty"` // The gift card code (at least the first 8 characters) to be used for the order. If valid, it uses the gift card balance to pay for the order. GiftCardCode interface{} `json:"gift_card_code,omitempty"` - // The gift card or coupon code (at least the first 8 characters) to be used for the order. If a gift card mathes, it uses the gift card balance to pay for the order. Otherwise it tries to find a valid coupon code and applies the associated discount. - GiftCardOrCouponCode interface{} `json:"gift_card_or_coupon_code,omitempty"` // The cart url on your site. If present, it will be used on our hosted checkout application. CartUrl interface{} `json:"cart_url,omitempty"` // The return url on your site. If present, it will be used on our hosted checkout application. @@ -50,22 +62,26 @@ type PATCHOrdersOrderId200ResponseDataAttributes struct { Archive interface{} `json:"_archive,omitempty"` // Send this attribute if you want to unarchive the order. Unarchive interface{} `json:"_unarchive,omitempty"` + // Send this attribute if you want to move a draft or placing order to pending. Cannot be passed by sales channels. + Pending interface{} `json:"_pending,omitempty"` // Send this attribute if you want to place the order. Place interface{} `json:"_place,omitempty"` // Send this attribute if you want to cancel a placed order. The order's authorization will be automatically voided. Cancel interface{} `json:"_cancel,omitempty"` - // Send this attribute if you want to approve a placed order. + // Send this attribute if you want to approve a placed order. Cannot be passed by sales channels. Approve interface{} `json:"_approve,omitempty"` - // Send this attribute if you want to approve and capture a placed order. + // Send this attribute if you want to approve and capture a placed order. Cannot be passed by sales channels. ApproveAndCapture interface{} `json:"_approve_and_capture,omitempty"` // Send this attribute if you want to authorize the order's payment source. Authorize interface{} `json:"_authorize,omitempty"` - // The authorization amount, in cents. + // Send this attribute as a value in cents if you want to overwrite the amount to be authorized. AuthorizationAmountCents interface{} `json:"_authorization_amount_cents,omitempty"` - // Send this attribute if you want to capture an authorized order. + // Send this attribute if you want to capture an authorized order. Cannot be passed by sales channels. Capture interface{} `json:"_capture,omitempty"` - // Send this attribute if you want to refund a captured order. + // Send this attribute if you want to refund a captured order. Cannot be passed by sales channels. Refund interface{} `json:"_refund,omitempty"` + // Send this attribute if you want to mark as fulfilled the order (shipments must be cancelled, shipped or delivered). Cannot be passed by sales channels. + Fulfill interface{} `json:"_fulfill,omitempty"` // Send this attribute if you want to force tax calculation for this order (a tax calculator must be associated to the order's market). UpdateTaxes interface{} `json:"_update_taxes,omitempty"` // Send this attribute if you want to nullify the payment source for this order. @@ -94,11 +110,17 @@ type PATCHOrdersOrderId200ResponseDataAttributes struct { Refresh interface{} `json:"_refresh,omitempty"` // Send this attribute if you want to trigger the external validation for the order. Validate interface{} `json:"_validate,omitempty"` - // Send this attribute if you want to create order subscriptions from the recurring line items upon/after placing the order. Subscriptions are generated according to associated subscription model strategy. + // Send this attribute upon/after placing the order if you want to create order subscriptions from the line items that have a frequency. CreateSubscriptions interface{} `json:"_create_subscriptions,omitempty"` + // Send this attribute if you want to edit the order after it is placed. Remember you cannot exceed the original total amount. Cannot be passed by sales channels. + StartEditing interface{} `json:"_start_editing,omitempty"` + // Send this attribute to stop the editing for the order and return back to placed status. Cannot be passed by sales channels. + StopEditing interface{} `json:"_stop_editing,omitempty"` + // Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. + ResetCircuit interface{} `json:"_reset_circuit,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -121,6 +143,72 @@ func NewPATCHOrdersOrderId200ResponseDataAttributesWithDefaults() *PATCHOrdersOr return &this } +// GetNumber returns the Number field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetNumber() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Number +} + +// GetNumberOk returns a tuple with the Number field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetNumberOk() (*interface{}, bool) { + if o == nil || IsNil(o.Number) { + return nil, false + } + return &o.Number, true +} + +// HasNumber returns a boolean if a field has been set. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasNumber() bool { + if o != nil && IsNil(o.Number) { + return true + } + + return false +} + +// SetNumber gets a reference to the given interface{} and assigns it to the Number field. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetNumber(v interface{}) { + o.Number = v +} + +// GetAffiliateCode returns the AffiliateCode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetAffiliateCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.AffiliateCode +} + +// GetAffiliateCodeOk returns a tuple with the AffiliateCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetAffiliateCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.AffiliateCode) { + return nil, false + } + return &o.AffiliateCode, true +} + +// HasAffiliateCode returns a boolean if a field has been set. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasAffiliateCode() bool { + if o != nil && IsNil(o.AffiliateCode) { + return true + } + + return false +} + +// SetAffiliateCode gets a reference to the given interface{} and assigns it to the AffiliateCode field. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetAffiliateCode(v interface{}) { + o.AffiliateCode = v +} + // GetAutorefresh returns the Autorefresh field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetAutorefresh() interface{} { if o == nil { @@ -154,6 +242,39 @@ func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetAutorefresh(v interface o.Autorefresh = v } +// GetPlaceAsync returns the PlaceAsync field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetPlaceAsync() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PlaceAsync +} + +// GetPlaceAsyncOk returns a tuple with the PlaceAsync field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetPlaceAsyncOk() (*interface{}, bool) { + if o == nil || IsNil(o.PlaceAsync) { + return nil, false + } + return &o.PlaceAsync, true +} + +// HasPlaceAsync returns a boolean if a field has been set. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasPlaceAsync() bool { + if o != nil && IsNil(o.PlaceAsync) { + return true + } + + return false +} + +// SetPlaceAsync gets a reference to the given interface{} and assigns it to the PlaceAsync field. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetPlaceAsync(v interface{}) { + o.PlaceAsync = v +} + // GetGuest returns the Guest field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetGuest() interface{} { if o == nil { @@ -286,6 +407,138 @@ func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetLanguageCode(v interfac o.LanguageCode = v } +// GetFreightTaxable returns the FreightTaxable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetFreightTaxable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.FreightTaxable +} + +// GetFreightTaxableOk returns a tuple with the FreightTaxable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetFreightTaxableOk() (*interface{}, bool) { + if o == nil || IsNil(o.FreightTaxable) { + return nil, false + } + return &o.FreightTaxable, true +} + +// HasFreightTaxable returns a boolean if a field has been set. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasFreightTaxable() bool { + if o != nil && IsNil(o.FreightTaxable) { + return true + } + + return false +} + +// SetFreightTaxable gets a reference to the given interface{} and assigns it to the FreightTaxable field. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetFreightTaxable(v interface{}) { + o.FreightTaxable = v +} + +// GetPaymentMethodTaxable returns the PaymentMethodTaxable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetPaymentMethodTaxable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PaymentMethodTaxable +} + +// GetPaymentMethodTaxableOk returns a tuple with the PaymentMethodTaxable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetPaymentMethodTaxableOk() (*interface{}, bool) { + if o == nil || IsNil(o.PaymentMethodTaxable) { + return nil, false + } + return &o.PaymentMethodTaxable, true +} + +// HasPaymentMethodTaxable returns a boolean if a field has been set. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasPaymentMethodTaxable() bool { + if o != nil && IsNil(o.PaymentMethodTaxable) { + return true + } + + return false +} + +// SetPaymentMethodTaxable gets a reference to the given interface{} and assigns it to the PaymentMethodTaxable field. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetPaymentMethodTaxable(v interface{}) { + o.PaymentMethodTaxable = v +} + +// GetAdjustmentTaxable returns the AdjustmentTaxable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetAdjustmentTaxable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.AdjustmentTaxable +} + +// GetAdjustmentTaxableOk returns a tuple with the AdjustmentTaxable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetAdjustmentTaxableOk() (*interface{}, bool) { + if o == nil || IsNil(o.AdjustmentTaxable) { + return nil, false + } + return &o.AdjustmentTaxable, true +} + +// HasAdjustmentTaxable returns a boolean if a field has been set. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasAdjustmentTaxable() bool { + if o != nil && IsNil(o.AdjustmentTaxable) { + return true + } + + return false +} + +// SetAdjustmentTaxable gets a reference to the given interface{} and assigns it to the AdjustmentTaxable field. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetAdjustmentTaxable(v interface{}) { + o.AdjustmentTaxable = v +} + +// GetGiftCardTaxable returns the GiftCardTaxable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetGiftCardTaxable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.GiftCardTaxable +} + +// GetGiftCardTaxableOk returns a tuple with the GiftCardTaxable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetGiftCardTaxableOk() (*interface{}, bool) { + if o == nil || IsNil(o.GiftCardTaxable) { + return nil, false + } + return &o.GiftCardTaxable, true +} + +// HasGiftCardTaxable returns a boolean if a field has been set. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasGiftCardTaxable() bool { + if o != nil && IsNil(o.GiftCardTaxable) { + return true + } + + return false +} + +// SetGiftCardTaxable gets a reference to the given interface{} and assigns it to the GiftCardTaxable field. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetGiftCardTaxable(v interface{}) { + o.GiftCardTaxable = v +} + // GetShippingCountryCodeLock returns the ShippingCountryCodeLock field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetShippingCountryCodeLock() interface{} { if o == nil { @@ -385,39 +638,6 @@ func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetGiftCardCode(v interfac o.GiftCardCode = v } -// GetGiftCardOrCouponCode returns the GiftCardOrCouponCode field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetGiftCardOrCouponCode() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.GiftCardOrCouponCode -} - -// GetGiftCardOrCouponCodeOk returns a tuple with the GiftCardOrCouponCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetGiftCardOrCouponCodeOk() (*interface{}, bool) { - if o == nil || IsNil(o.GiftCardOrCouponCode) { - return nil, false - } - return &o.GiftCardOrCouponCode, true -} - -// HasGiftCardOrCouponCode returns a boolean if a field has been set. -func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasGiftCardOrCouponCode() bool { - if o != nil && IsNil(o.GiftCardOrCouponCode) { - return true - } - - return false -} - -// SetGiftCardOrCouponCode gets a reference to the given interface{} and assigns it to the GiftCardOrCouponCode field. -func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetGiftCardOrCouponCode(v interface{}) { - o.GiftCardOrCouponCode = v -} - // GetCartUrl returns the CartUrl field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetCartUrl() interface{} { if o == nil { @@ -616,6 +836,39 @@ func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetUnarchive(v interface{} o.Unarchive = v } +// GetPending returns the Pending field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetPending() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Pending +} + +// GetPendingOk returns a tuple with the Pending field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetPendingOk() (*interface{}, bool) { + if o == nil || IsNil(o.Pending) { + return nil, false + } + return &o.Pending, true +} + +// HasPending returns a boolean if a field has been set. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasPending() bool { + if o != nil && IsNil(o.Pending) { + return true + } + + return false +} + +// SetPending gets a reference to the given interface{} and assigns it to the Pending field. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetPending(v interface{}) { + o.Pending = v +} + // GetPlace returns the Place field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetPlace() interface{} { if o == nil { @@ -880,6 +1133,39 @@ func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetRefund(v interface{}) { o.Refund = v } +// GetFulfill returns the Fulfill field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetFulfill() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Fulfill +} + +// GetFulfillOk returns a tuple with the Fulfill field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetFulfillOk() (*interface{}, bool) { + if o == nil || IsNil(o.Fulfill) { + return nil, false + } + return &o.Fulfill, true +} + +// HasFulfill returns a boolean if a field has been set. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasFulfill() bool { + if o != nil && IsNil(o.Fulfill) { + return true + } + + return false +} + +// SetFulfill gets a reference to the given interface{} and assigns it to the Fulfill field. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetFulfill(v interface{}) { + o.Fulfill = v +} + // GetUpdateTaxes returns the UpdateTaxes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetUpdateTaxes() interface{} { if o == nil { @@ -1375,6 +1661,105 @@ func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetCreateSubscriptions(v i o.CreateSubscriptions = v } +// GetStartEditing returns the StartEditing field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetStartEditing() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.StartEditing +} + +// GetStartEditingOk returns a tuple with the StartEditing field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetStartEditingOk() (*interface{}, bool) { + if o == nil || IsNil(o.StartEditing) { + return nil, false + } + return &o.StartEditing, true +} + +// HasStartEditing returns a boolean if a field has been set. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasStartEditing() bool { + if o != nil && IsNil(o.StartEditing) { + return true + } + + return false +} + +// SetStartEditing gets a reference to the given interface{} and assigns it to the StartEditing field. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetStartEditing(v interface{}) { + o.StartEditing = v +} + +// GetStopEditing returns the StopEditing field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetStopEditing() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.StopEditing +} + +// GetStopEditingOk returns a tuple with the StopEditing field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetStopEditingOk() (*interface{}, bool) { + if o == nil || IsNil(o.StopEditing) { + return nil, false + } + return &o.StopEditing, true +} + +// HasStopEditing returns a boolean if a field has been set. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasStopEditing() bool { + if o != nil && IsNil(o.StopEditing) { + return true + } + + return false +} + +// SetStopEditing gets a reference to the given interface{} and assigns it to the StopEditing field. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetStopEditing(v interface{}) { + o.StopEditing = v +} + +// GetResetCircuit returns the ResetCircuit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetResetCircuit() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ResetCircuit +} + +// GetResetCircuitOk returns a tuple with the ResetCircuit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetResetCircuitOk() (*interface{}, bool) { + if o == nil || IsNil(o.ResetCircuit) { + return nil, false + } + return &o.ResetCircuit, true +} + +// HasResetCircuit returns a boolean if a field has been set. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) HasResetCircuit() bool { + if o != nil && IsNil(o.ResetCircuit) { + return true + } + + return false +} + +// SetResetCircuit gets a reference to the given interface{} and assigns it to the ResetCircuit field. +func (o *PATCHOrdersOrderId200ResponseDataAttributes) SetResetCircuit(v interface{}) { + o.ResetCircuit = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHOrdersOrderId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -1484,9 +1869,18 @@ func (o PATCHOrdersOrderId200ResponseDataAttributes) MarshalJSON() ([]byte, erro func (o PATCHOrdersOrderId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Number != nil { + toSerialize["number"] = o.Number + } + if o.AffiliateCode != nil { + toSerialize["affiliate_code"] = o.AffiliateCode + } if o.Autorefresh != nil { toSerialize["autorefresh"] = o.Autorefresh } + if o.PlaceAsync != nil { + toSerialize["place_async"] = o.PlaceAsync + } if o.Guest != nil { toSerialize["guest"] = o.Guest } @@ -1499,6 +1893,18 @@ func (o PATCHOrdersOrderId200ResponseDataAttributes) ToMap() (map[string]interfa if o.LanguageCode != nil { toSerialize["language_code"] = o.LanguageCode } + if o.FreightTaxable != nil { + toSerialize["freight_taxable"] = o.FreightTaxable + } + if o.PaymentMethodTaxable != nil { + toSerialize["payment_method_taxable"] = o.PaymentMethodTaxable + } + if o.AdjustmentTaxable != nil { + toSerialize["adjustment_taxable"] = o.AdjustmentTaxable + } + if o.GiftCardTaxable != nil { + toSerialize["gift_card_taxable"] = o.GiftCardTaxable + } if o.ShippingCountryCodeLock != nil { toSerialize["shipping_country_code_lock"] = o.ShippingCountryCodeLock } @@ -1508,9 +1914,6 @@ func (o PATCHOrdersOrderId200ResponseDataAttributes) ToMap() (map[string]interfa if o.GiftCardCode != nil { toSerialize["gift_card_code"] = o.GiftCardCode } - if o.GiftCardOrCouponCode != nil { - toSerialize["gift_card_or_coupon_code"] = o.GiftCardOrCouponCode - } if o.CartUrl != nil { toSerialize["cart_url"] = o.CartUrl } @@ -1529,6 +1932,9 @@ func (o PATCHOrdersOrderId200ResponseDataAttributes) ToMap() (map[string]interfa if o.Unarchive != nil { toSerialize["_unarchive"] = o.Unarchive } + if o.Pending != nil { + toSerialize["_pending"] = o.Pending + } if o.Place != nil { toSerialize["_place"] = o.Place } @@ -1553,6 +1959,9 @@ func (o PATCHOrdersOrderId200ResponseDataAttributes) ToMap() (map[string]interfa if o.Refund != nil { toSerialize["_refund"] = o.Refund } + if o.Fulfill != nil { + toSerialize["_fulfill"] = o.Fulfill + } if o.UpdateTaxes != nil { toSerialize["_update_taxes"] = o.UpdateTaxes } @@ -1598,6 +2007,15 @@ func (o PATCHOrdersOrderId200ResponseDataAttributes) ToMap() (map[string]interfa if o.CreateSubscriptions != nil { toSerialize["_create_subscriptions"] = o.CreateSubscriptions } + if o.StartEditing != nil { + toSerialize["_start_editing"] = o.StartEditing + } + if o.StopEditing != nil { + toSerialize["_stop_editing"] = o.StopEditing + } + if o.ResetCircuit != nil { + toSerialize["_reset_circuit"] = o.ResetCircuit + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_patch_packages_package_id_200_response.go b/api/model_patch_packages_package_id_200_response.go index e1e538ac..085c39d6 100644 --- a/api/model_patch_packages_package_id_200_response.go +++ b/api/model_patch_packages_package_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_packages_package_id_200_response_data.go b/api/model_patch_packages_package_id_200_response_data.go index 979b5ab3..6099989c 100644 --- a/api/model_patch_packages_package_id_200_response_data.go +++ b/api/model_patch_packages_package_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_packages_package_id_200_response_data_attributes.go b/api/model_patch_packages_package_id_200_response_data_attributes.go index 65cf1d2c..49e3425a 100644 --- a/api/model_patch_packages_package_id_200_response_data_attributes.go +++ b/api/model_patch_packages_package_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,9 @@ var _ MappedNullable = &PATCHPackagesPackageId200ResponseDataAttributes{} // PATCHPackagesPackageId200ResponseDataAttributes struct for PATCHPackagesPackageId200ResponseDataAttributes type PATCHPackagesPackageId200ResponseDataAttributes struct { - // Unique name for the package + // Unique name for the package. Name interface{} `json:"name,omitempty"` - // The package identifying code + // The package identifying code. Code interface{} `json:"code,omitempty"` // The package length, used to automatically calculate the tax rates from the available carrier accounts. Length interface{} `json:"length,omitempty"` @@ -34,7 +34,7 @@ type PATCHPackagesPackageId200ResponseDataAttributes struct { UnitOfLength interface{} `json:"unit_of_length,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_parcel_line_items_parcel_line_item_id_200_response.go b/api/model_patch_parcel_line_items_parcel_line_item_id_200_response.go index be1593a5..d77b6cb4 100644 --- a/api/model_patch_parcel_line_items_parcel_line_item_id_200_response.go +++ b/api/model_patch_parcel_line_items_parcel_line_item_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_parcel_line_items_parcel_line_item_id_200_response_data.go b/api/model_patch_parcel_line_items_parcel_line_item_id_200_response_data.go index 7e4950bf..1136daf2 100644 --- a/api/model_patch_parcel_line_items_parcel_line_item_id_200_response_data.go +++ b/api/model_patch_parcel_line_items_parcel_line_item_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_parcels_parcel_id_200_response.go b/api/model_patch_parcels_parcel_id_200_response.go index f6df1134..fab7d330 100644 --- a/api/model_patch_parcels_parcel_id_200_response.go +++ b/api/model_patch_parcels_parcel_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_parcels_parcel_id_200_response_data.go b/api/model_patch_parcels_parcel_id_200_response_data.go index 79c03146..ce1bfa25 100644 --- a/api/model_patch_parcels_parcel_id_200_response_data.go +++ b/api/model_patch_parcels_parcel_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_parcels_parcel_id_200_response_data_attributes.go b/api/model_patch_parcels_parcel_id_200_response_data_attributes.go index 08d96bbc..e7876edd 100644 --- a/api/model_patch_parcels_parcel_id_200_response_data_attributes.go +++ b/api/model_patch_parcels_parcel_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,15 +22,15 @@ var _ MappedNullable = &PATCHParcelsParcelId200ResponseDataAttributes{} type PATCHParcelsParcelId200ResponseDataAttributes struct { // The parcel weight, used to automatically calculate the tax rates from the available carrier accounts. Weight interface{} `json:"weight,omitempty"` - // Can be one of 'gr', 'lb', or 'oz' + // The unit of weight. One of 'gr', 'oz', or 'lb'. UnitOfWeight interface{} `json:"unit_of_weight,omitempty"` // When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\". EelPfc interface{} `json:"eel_pfc,omitempty"` - // The type of item you are sending. Can be one of 'merchandise', 'gift', 'documents', 'returned_goods', 'sample', or 'other'. + // The type of item you are sending. ContentsType interface{} `json:"contents_type,omitempty"` // If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute. ContentsExplanation interface{} `json:"contents_explanation,omitempty"` - // Indicates if the provided information is accurate + // Indicates if the provided information is accurate. CustomsCertify interface{} `json:"customs_certify,omitempty"` // This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this. CustomsSigner interface{} `json:"customs_signer,omitempty"` @@ -60,15 +60,17 @@ type PATCHParcelsParcelId200ResponseDataAttributes struct { TrackingStatusUpdatedAt interface{} `json:"tracking_status_updated_at,omitempty"` // The parcel's full tracking history, automatically updated in real time by the shipping carrier. TrackingDetails interface{} `json:"tracking_details,omitempty"` - // The weight of the parcel as measured by the carrier in ounces (if available) + // The weight of the parcel as measured by the carrier in ounces (if available). CarrierWeightOz interface{} `json:"carrier_weight_oz,omitempty"` - // The name of the person who signed for the parcel (if available) + // The name of the person who signed for the parcel (if available). SignedBy interface{} `json:"signed_by,omitempty"` // The type of Incoterm (if available). Incoterm interface{} `json:"incoterm,omitempty"` + // The type of delivery confirmation option upon delivery. + DeliveryConfirmation interface{} `json:"delivery_confirmation,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -850,6 +852,39 @@ func (o *PATCHParcelsParcelId200ResponseDataAttributes) SetIncoterm(v interface{ o.Incoterm = v } +// GetDeliveryConfirmation returns the DeliveryConfirmation field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHParcelsParcelId200ResponseDataAttributes) GetDeliveryConfirmation() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DeliveryConfirmation +} + +// GetDeliveryConfirmationOk returns a tuple with the DeliveryConfirmation field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHParcelsParcelId200ResponseDataAttributes) GetDeliveryConfirmationOk() (*interface{}, bool) { + if o == nil || IsNil(o.DeliveryConfirmation) { + return nil, false + } + return &o.DeliveryConfirmation, true +} + +// HasDeliveryConfirmation returns a boolean if a field has been set. +func (o *PATCHParcelsParcelId200ResponseDataAttributes) HasDeliveryConfirmation() bool { + if o != nil && IsNil(o.DeliveryConfirmation) { + return true + } + + return false +} + +// SetDeliveryConfirmation gets a reference to the given interface{} and assigns it to the DeliveryConfirmation field. +func (o *PATCHParcelsParcelId200ResponseDataAttributes) SetDeliveryConfirmation(v interface{}) { + o.DeliveryConfirmation = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHParcelsParcelId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -1028,6 +1063,9 @@ func (o PATCHParcelsParcelId200ResponseDataAttributes) ToMap() (map[string]inter if o.Incoterm != nil { toSerialize["incoterm"] = o.Incoterm } + if o.DeliveryConfirmation != nil { + toSerialize["delivery_confirmation"] = o.DeliveryConfirmation + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_patch_payment_methods_payment_method_id_200_response.go b/api/model_patch_payment_methods_payment_method_id_200_response.go index 15ea52c3..22adc046 100644 --- a/api/model_patch_payment_methods_payment_method_id_200_response.go +++ b/api/model_patch_payment_methods_payment_method_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_payment_methods_payment_method_id_200_response_data.go b/api/model_patch_payment_methods_payment_method_id_200_response_data.go index 3e3f844f..8f121979 100644 --- a/api/model_patch_payment_methods_payment_method_id_200_response_data.go +++ b/api/model_patch_payment_methods_payment_method_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_payment_methods_payment_method_id_200_response_data_attributes.go b/api/model_patch_payment_methods_payment_method_id_200_response_data_attributes.go index 118aa380..26c186c7 100644 --- a/api/model_patch_payment_methods_payment_method_id_200_response_data_attributes.go +++ b/api/model_patch_payment_methods_payment_method_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,9 @@ var _ MappedNullable = &PATCHPaymentMethodsPaymentMethodId200ResponseDataAttribu // PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes struct for PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes type PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes struct { - // The payment source type, can be one of: 'AdyenPayment', 'AxervePayment', 'BraintreePayment', 'CheckoutComPayment', 'CreditCard', 'ExternalPayment', 'KlarnaPayment', 'PaypalPayment', 'SatispayPayment', 'StripePayment', or 'WireTransfer'. + // The payment method's internal name. + Name interface{} `json:"name,omitempty"` + // The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'credit_cards', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'. PaymentSourceType interface{} `json:"payment_source_type,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` @@ -28,19 +30,21 @@ type PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes struct { Moto interface{} `json:"moto,omitempty"` // Send this attribute if you want to require the payment capture before fulfillment. RequireCapture interface{} `json:"require_capture,omitempty"` + // Send this attribute if you want to automatically place the order upon authorization performed asynchronously. + AutoPlace interface{} `json:"auto_place,omitempty"` // Send this attribute if you want to automatically capture the payment upon authorization. AutoCapture interface{} `json:"auto_capture,omitempty"` - // Send this attribute if you want to mark the payment method as disabled. - Disable interface{} `json:"_disable,omitempty"` - // Send this attribute if you want to mark the payment method as enabled. - Enable interface{} `json:"_enable,omitempty"` - // The payment method's price, in cents + // The payment method's price, in cents. PriceAmountCents interface{} `json:"price_amount_cents,omitempty"` // Send this attribute if you want to limit automatic capture to orders for which the total amount is equal or less than the specified value, in cents. AutoCaptureMaxAmountCents interface{} `json:"auto_capture_max_amount_cents,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -63,6 +67,39 @@ func NewPATCHPaymentMethodsPaymentMethodId200ResponseDataAttributesWithDefaults( return &this } +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasName() bool { + if o != nil && IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given interface{} and assigns it to the Name field. +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + // GetPaymentSourceType returns the PaymentSourceType field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetPaymentSourceType() interface{} { if o == nil { @@ -195,6 +232,39 @@ func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetRequire o.RequireCapture = v } +// GetAutoPlace returns the AutoPlace field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetAutoPlace() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.AutoPlace +} + +// GetAutoPlaceOk returns a tuple with the AutoPlace field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetAutoPlaceOk() (*interface{}, bool) { + if o == nil || IsNil(o.AutoPlace) { + return nil, false + } + return &o.AutoPlace, true +} + +// HasAutoPlace returns a boolean if a field has been set. +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasAutoPlace() bool { + if o != nil && IsNil(o.AutoPlace) { + return true + } + + return false +} + +// SetAutoPlace gets a reference to the given interface{} and assigns it to the AutoPlace field. +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetAutoPlace(v interface{}) { + o.AutoPlace = v +} + // GetAutoCapture returns the AutoCapture field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetAutoCapture() interface{} { if o == nil { @@ -228,136 +298,136 @@ func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetAutoCap o.AutoCapture = v } -// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetDisable() interface{} { +// GetPriceAmountCents returns the PriceAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetPriceAmountCents() interface{} { if o == nil { var ret interface{} return ret } - return o.Disable + return o.PriceAmountCents } -// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// GetPriceAmountCentsOk returns a tuple with the PriceAmountCents field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { - if o == nil || IsNil(o.Disable) { +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetPriceAmountCentsOk() (*interface{}, bool) { + if o == nil || IsNil(o.PriceAmountCents) { return nil, false } - return &o.Disable, true + return &o.PriceAmountCents, true } -// HasDisable returns a boolean if a field has been set. -func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasDisable() bool { - if o != nil && IsNil(o.Disable) { +// HasPriceAmountCents returns a boolean if a field has been set. +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasPriceAmountCents() bool { + if o != nil && IsNil(o.PriceAmountCents) { return true } return false } -// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. -func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetDisable(v interface{}) { - o.Disable = v +// SetPriceAmountCents gets a reference to the given interface{} and assigns it to the PriceAmountCents field. +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetPriceAmountCents(v interface{}) { + o.PriceAmountCents = v } -// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetEnable() interface{} { +// GetAutoCaptureMaxAmountCents returns the AutoCaptureMaxAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetAutoCaptureMaxAmountCents() interface{} { if o == nil { var ret interface{} return ret } - return o.Enable + return o.AutoCaptureMaxAmountCents } -// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// GetAutoCaptureMaxAmountCentsOk returns a tuple with the AutoCaptureMaxAmountCents field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { - if o == nil || IsNil(o.Enable) { +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetAutoCaptureMaxAmountCentsOk() (*interface{}, bool) { + if o == nil || IsNil(o.AutoCaptureMaxAmountCents) { return nil, false } - return &o.Enable, true + return &o.AutoCaptureMaxAmountCents, true } -// HasEnable returns a boolean if a field has been set. -func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasEnable() bool { - if o != nil && IsNil(o.Enable) { +// HasAutoCaptureMaxAmountCents returns a boolean if a field has been set. +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasAutoCaptureMaxAmountCents() bool { + if o != nil && IsNil(o.AutoCaptureMaxAmountCents) { return true } return false } -// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. -func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetEnable(v interface{}) { - o.Enable = v +// SetAutoCaptureMaxAmountCents gets a reference to the given interface{} and assigns it to the AutoCaptureMaxAmountCents field. +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetAutoCaptureMaxAmountCents(v interface{}) { + o.AutoCaptureMaxAmountCents = v } -// GetPriceAmountCents returns the PriceAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetPriceAmountCents() interface{} { +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetDisable() interface{} { if o == nil { var ret interface{} return ret } - return o.PriceAmountCents + return o.Disable } -// GetPriceAmountCentsOk returns a tuple with the PriceAmountCents field value if set, nil otherwise +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetPriceAmountCentsOk() (*interface{}, bool) { - if o == nil || IsNil(o.PriceAmountCents) { +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { return nil, false } - return &o.PriceAmountCents, true + return &o.Disable, true } -// HasPriceAmountCents returns a boolean if a field has been set. -func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasPriceAmountCents() bool { - if o != nil && IsNil(o.PriceAmountCents) { +// HasDisable returns a boolean if a field has been set. +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { return true } return false } -// SetPriceAmountCents gets a reference to the given interface{} and assigns it to the PriceAmountCents field. -func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetPriceAmountCents(v interface{}) { - o.PriceAmountCents = v +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v } -// GetAutoCaptureMaxAmountCents returns the AutoCaptureMaxAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetAutoCaptureMaxAmountCents() interface{} { +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetEnable() interface{} { if o == nil { var ret interface{} return ret } - return o.AutoCaptureMaxAmountCents + return o.Enable } -// GetAutoCaptureMaxAmountCentsOk returns a tuple with the AutoCaptureMaxAmountCents field value if set, nil otherwise +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetAutoCaptureMaxAmountCentsOk() (*interface{}, bool) { - if o == nil || IsNil(o.AutoCaptureMaxAmountCents) { +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { return nil, false } - return &o.AutoCaptureMaxAmountCents, true + return &o.Enable, true } -// HasAutoCaptureMaxAmountCents returns a boolean if a field has been set. -func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasAutoCaptureMaxAmountCents() bool { - if o != nil && IsNil(o.AutoCaptureMaxAmountCents) { +// HasEnable returns a boolean if a field has been set. +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { return true } return false } -// SetAutoCaptureMaxAmountCents gets a reference to the given interface{} and assigns it to the AutoCaptureMaxAmountCents field. -func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetAutoCaptureMaxAmountCents(v interface{}) { - o.AutoCaptureMaxAmountCents = v +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v } // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). @@ -469,6 +539,9 @@ func (o PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) MarshalJSON func (o PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } if o.PaymentSourceType != nil { toSerialize["payment_source_type"] = o.PaymentSourceType } @@ -481,21 +554,24 @@ func (o PATCHPaymentMethodsPaymentMethodId200ResponseDataAttributes) ToMap() (ma if o.RequireCapture != nil { toSerialize["require_capture"] = o.RequireCapture } + if o.AutoPlace != nil { + toSerialize["auto_place"] = o.AutoPlace + } if o.AutoCapture != nil { toSerialize["auto_capture"] = o.AutoCapture } - if o.Disable != nil { - toSerialize["_disable"] = o.Disable - } - if o.Enable != nil { - toSerialize["_enable"] = o.Enable - } if o.PriceAmountCents != nil { toSerialize["price_amount_cents"] = o.PriceAmountCents } if o.AutoCaptureMaxAmountCents != nil { toSerialize["auto_capture_max_amount_cents"] = o.AutoCaptureMaxAmountCents } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_patch_payment_options_payment_option_id_200_response.go b/api/model_patch_payment_options_payment_option_id_200_response.go new file mode 100644 index 00000000..9103e36d --- /dev/null +++ b/api/model_patch_payment_options_payment_option_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHPaymentOptionsPaymentOptionId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHPaymentOptionsPaymentOptionId200Response{} + +// PATCHPaymentOptionsPaymentOptionId200Response struct for PATCHPaymentOptionsPaymentOptionId200Response +type PATCHPaymentOptionsPaymentOptionId200Response struct { + Data *PATCHPaymentOptionsPaymentOptionId200ResponseData `json:"data,omitempty"` +} + +// NewPATCHPaymentOptionsPaymentOptionId200Response instantiates a new PATCHPaymentOptionsPaymentOptionId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHPaymentOptionsPaymentOptionId200Response() *PATCHPaymentOptionsPaymentOptionId200Response { + this := PATCHPaymentOptionsPaymentOptionId200Response{} + return &this +} + +// NewPATCHPaymentOptionsPaymentOptionId200ResponseWithDefaults instantiates a new PATCHPaymentOptionsPaymentOptionId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHPaymentOptionsPaymentOptionId200ResponseWithDefaults() *PATCHPaymentOptionsPaymentOptionId200Response { + this := PATCHPaymentOptionsPaymentOptionId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PATCHPaymentOptionsPaymentOptionId200Response) GetData() PATCHPaymentOptionsPaymentOptionId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret PATCHPaymentOptionsPaymentOptionId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHPaymentOptionsPaymentOptionId200Response) GetDataOk() (*PATCHPaymentOptionsPaymentOptionId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PATCHPaymentOptionsPaymentOptionId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given PATCHPaymentOptionsPaymentOptionId200ResponseData and assigns it to the Data field. +func (o *PATCHPaymentOptionsPaymentOptionId200Response) SetData(v PATCHPaymentOptionsPaymentOptionId200ResponseData) { + o.Data = &v +} + +func (o PATCHPaymentOptionsPaymentOptionId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHPaymentOptionsPaymentOptionId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePATCHPaymentOptionsPaymentOptionId200Response struct { + value *PATCHPaymentOptionsPaymentOptionId200Response + isSet bool +} + +func (v NullablePATCHPaymentOptionsPaymentOptionId200Response) Get() *PATCHPaymentOptionsPaymentOptionId200Response { + return v.value +} + +func (v *NullablePATCHPaymentOptionsPaymentOptionId200Response) Set(val *PATCHPaymentOptionsPaymentOptionId200Response) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHPaymentOptionsPaymentOptionId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHPaymentOptionsPaymentOptionId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHPaymentOptionsPaymentOptionId200Response(val *PATCHPaymentOptionsPaymentOptionId200Response) *NullablePATCHPaymentOptionsPaymentOptionId200Response { + return &NullablePATCHPaymentOptionsPaymentOptionId200Response{value: val, isSet: true} +} + +func (v NullablePATCHPaymentOptionsPaymentOptionId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHPaymentOptionsPaymentOptionId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_payment_options_payment_option_id_200_response_data.go b/api/model_patch_payment_options_payment_option_id_200_response_data.go new file mode 100644 index 00000000..9a909c73 --- /dev/null +++ b/api/model_patch_payment_options_payment_option_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHPaymentOptionsPaymentOptionId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHPaymentOptionsPaymentOptionId200ResponseData{} + +// PATCHPaymentOptionsPaymentOptionId200ResponseData struct for PATCHPaymentOptionsPaymentOptionId200ResponseData +type PATCHPaymentOptionsPaymentOptionId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTPaymentOptions201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPATCHPaymentOptionsPaymentOptionId200ResponseData instantiates a new PATCHPaymentOptionsPaymentOptionId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHPaymentOptionsPaymentOptionId200ResponseData() *PATCHPaymentOptionsPaymentOptionId200ResponseData { + this := PATCHPaymentOptionsPaymentOptionId200ResponseData{} + return &this +} + +// NewPATCHPaymentOptionsPaymentOptionId200ResponseDataWithDefaults instantiates a new PATCHPaymentOptionsPaymentOptionId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHPaymentOptionsPaymentOptionId200ResponseDataWithDefaults() *PATCHPaymentOptionsPaymentOptionId200ResponseData { + this := PATCHPaymentOptionsPaymentOptionId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetAttributes() PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetAttributesOk() (*PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) SetAttributes(v PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetRelationships() POSTPaymentOptions201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTPaymentOptions201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) GetRelationshipsOk() (*POSTPaymentOptions201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTPaymentOptions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseData) SetRelationships(v POSTPaymentOptions201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o PATCHPaymentOptionsPaymentOptionId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHPaymentOptionsPaymentOptionId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePATCHPaymentOptionsPaymentOptionId200ResponseData struct { + value *PATCHPaymentOptionsPaymentOptionId200ResponseData + isSet bool +} + +func (v NullablePATCHPaymentOptionsPaymentOptionId200ResponseData) Get() *PATCHPaymentOptionsPaymentOptionId200ResponseData { + return v.value +} + +func (v *NullablePATCHPaymentOptionsPaymentOptionId200ResponseData) Set(val *PATCHPaymentOptionsPaymentOptionId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHPaymentOptionsPaymentOptionId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHPaymentOptionsPaymentOptionId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHPaymentOptionsPaymentOptionId200ResponseData(val *PATCHPaymentOptionsPaymentOptionId200ResponseData) *NullablePATCHPaymentOptionsPaymentOptionId200ResponseData { + return &NullablePATCHPaymentOptionsPaymentOptionId200ResponseData{value: val, isSet: true} +} + +func (v NullablePATCHPaymentOptionsPaymentOptionId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHPaymentOptionsPaymentOptionId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_payment_options_payment_option_id_200_response_data_attributes.go b/api/model_patch_payment_options_payment_option_id_200_response_data_attributes.go new file mode 100644 index 00000000..1a602c59 --- /dev/null +++ b/api/model_patch_payment_options_payment_option_id_200_response_data_attributes.go @@ -0,0 +1,279 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes{} + +// PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes struct for PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes +type PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes struct { + // The payment option's name. Wehn blank is inherited by payment source type. + Name interface{} `json:"name,omitempty"` + // The payment options data to be added to the payment source payload. Check payment specific API for more details. + Data interface{} `json:"data,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes instantiates a new PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes() *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes { + this := PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes{} + return &this +} + +// NewPATCHPaymentOptionsPaymentOptionId200ResponseDataAttributesWithDefaults instantiates a new PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHPaymentOptionsPaymentOptionId200ResponseDataAttributesWithDefaults() *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes { + this := PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasName() bool { + if o != nil && IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given interface{} and assigns it to the Name field. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasData() bool { + if o != nil && IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given interface{} and assigns it to the Data field. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetData(v interface{}) { + o.Data = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Data != nil { + toSerialize["data"] = o.Data + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes struct { + value *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes + isSet bool +} + +func (v NullablePATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) Get() *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes { + return v.value +} + +func (v *NullablePATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) Set(val *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes(val *PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) *NullablePATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes { + return &NullablePATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_paypal_gateways_paypal_gateway_id_200_response.go b/api/model_patch_paypal_gateways_paypal_gateway_id_200_response.go index 46307599..91ee1e57 100644 --- a/api/model_patch_paypal_gateways_paypal_gateway_id_200_response.go +++ b/api/model_patch_paypal_gateways_paypal_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_paypal_gateways_paypal_gateway_id_200_response_data.go b/api/model_patch_paypal_gateways_paypal_gateway_id_200_response_data.go index 90e2e684..2f8a280a 100644 --- a/api/model_patch_paypal_gateways_paypal_gateway_id_200_response_data.go +++ b/api/model_patch_paypal_gateways_paypal_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_paypal_gateways_paypal_gateway_id_200_response_data_attributes.go b/api/model_patch_paypal_gateways_paypal_gateway_id_200_response_data_attributes.go index 3d31c135..cfb1cc56 100644 --- a/api/model_patch_paypal_gateways_paypal_gateway_id_200_response_data_attributes.go +++ b/api/model_patch_paypal_gateways_paypal_gateway_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type PATCHPaypalGatewaysPaypalGatewayId200ResponseDataAttributes struct { Name interface{} `json:"name,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_paypal_payments_paypal_payment_id_200_response.go b/api/model_patch_paypal_payments_paypal_payment_id_200_response.go index fc32fae9..a9b6b3a8 100644 --- a/api/model_patch_paypal_payments_paypal_payment_id_200_response.go +++ b/api/model_patch_paypal_payments_paypal_payment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_paypal_payments_paypal_payment_id_200_response_data.go b/api/model_patch_paypal_payments_paypal_payment_id_200_response_data.go index 179aa5db..979c5c97 100644 --- a/api/model_patch_paypal_payments_paypal_payment_id_200_response_data.go +++ b/api/model_patch_paypal_payments_paypal_payment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_paypal_payments_paypal_payment_id_200_response_data_attributes.go b/api/model_patch_paypal_payments_paypal_payment_id_200_response_data_attributes.go index a05118c8..ae6d37f0 100644 --- a/api/model_patch_paypal_payments_paypal_payment_id_200_response_data_attributes.go +++ b/api/model_patch_paypal_payments_paypal_payment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type PATCHPaypalPaymentsPaypalPaymentId200ResponseDataAttributes struct { PaypalPayerId interface{} `json:"paypal_payer_id,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_percentage_discount_promotions_percentage_discount_promotion_id_200_response.go b/api/model_patch_percentage_discount_promotions_percentage_discount_promotion_id_200_response.go index 4182c93b..fd4a66b1 100644 --- a/api/model_patch_percentage_discount_promotions_percentage_discount_promotion_id_200_response.go +++ b/api/model_patch_percentage_discount_promotions_percentage_discount_promotion_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_percentage_discount_promotions_percentage_discount_promotion_id_200_response_data.go b/api/model_patch_percentage_discount_promotions_percentage_discount_promotion_id_200_response_data.go index d37b7515..94dbac63 100644 --- a/api/model_patch_percentage_discount_promotions_percentage_discount_promotion_id_200_response_data.go +++ b/api/model_patch_percentage_discount_promotions_percentage_discount_promotion_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDa Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTFixedPricePromotions201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTBuyXPayYPromotions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData instantiates a new PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData object @@ -177,9 +177,9 @@ func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200Respon } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) GetRelationships() POSTFixedPricePromotions201ResponseDataRelationships { +func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTFixedPricePromotions201ResponseDataRelationships + var ret POSTBuyXPayYPromotions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200Respon // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) GetRelationshipsOk() (*POSTFixedPricePromotions201ResponseDataRelationships, bool) { +func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200Respon return false } -// SetRelationships gets a reference to the given POSTFixedPricePromotions201ResponseDataRelationships and assigns it to the Relationships field. -func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) SetRelationships(v POSTFixedPricePromotions201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_patch_percentage_discount_promotions_percentage_discount_promotion_id_200_response_data_attributes.go b/api/model_patch_percentage_discount_promotions_percentage_discount_promotion_id_200_response_data_attributes.go index 94879daa..fa1cfc89 100644 --- a/api/model_patch_percentage_discount_promotions_percentage_discount_promotion_id_200_response_data_attributes.go +++ b/api/model_patch_percentage_discount_promotions_percentage_discount_promotion_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,15 +24,23 @@ type PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDa Name interface{} `json:"name,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` // The activation date/time of this promotion. StartsAt interface{} `json:"starts_at,omitempty"` // The expiration date/time of this promotion (must be after starts_at). ExpiresAt interface{} `json:"expires_at,omitempty"` - // The total number of times this promotion can be applied. + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -123,6 +131,72 @@ func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200Respon o.CurrencyCode = v } +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + // GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetStartsAt() interface{} { if o == nil { @@ -222,6 +296,72 @@ func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200Respon o.TotalUsageLimit = v } +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -370,6 +510,12 @@ func (o PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200Respons if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } if o.StartsAt != nil { toSerialize["starts_at"] = o.StartsAt } @@ -379,6 +525,12 @@ func (o PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200Respons if o.TotalUsageLimit != nil { toSerialize["total_usage_limit"] = o.TotalUsageLimit } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_patch_price_frequency_tiers_price_frequency_tier_id_200_response.go b/api/model_patch_price_frequency_tiers_price_frequency_tier_id_200_response.go index d91da810..af274cfa 100644 --- a/api/model_patch_price_frequency_tiers_price_frequency_tier_id_200_response.go +++ b/api/model_patch_price_frequency_tiers_price_frequency_tier_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_price_frequency_tiers_price_frequency_tier_id_200_response_data.go b/api/model_patch_price_frequency_tiers_price_frequency_tier_id_200_response_data.go index a5a5dcc9..5a31d89d 100644 --- a/api/model_patch_price_frequency_tiers_price_frequency_tier_id_200_response_data.go +++ b/api/model_patch_price_frequency_tiers_price_frequency_tier_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_price_frequency_tiers_price_frequency_tier_id_200_response_data_attributes.go b/api/model_patch_price_frequency_tiers_price_frequency_tier_id_200_response_data_attributes.go index 8dc504d7..e6ea70fd 100644 --- a/api/model_patch_price_frequency_tiers_price_frequency_tier_id_200_response_data_attributes.go +++ b/api/model_patch_price_frequency_tiers_price_frequency_tier_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &PATCHPriceFrequencyTiersPriceFrequencyTierId200ResponseD // PATCHPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes struct for PATCHPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes type PATCHPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes struct { - // The price tier's name + // The price tier's name. Name interface{} `json:"name,omitempty"` // The tier upper limit, expressed as the line item frequency in days (or frequency label, ie 'monthly'). When 'null' it means infinity (useful to have an always matching tier). UpTo interface{} `json:"up_to,omitempty"` @@ -28,7 +28,7 @@ type PATCHPriceFrequencyTiersPriceFrequencyTierId200ResponseDataAttributes struc PriceAmountCents interface{} `json:"price_amount_cents,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_price_list_schedulers_price_list_scheduler_id_200_response.go b/api/model_patch_price_list_schedulers_price_list_scheduler_id_200_response.go new file mode 100644 index 00000000..083dad61 --- /dev/null +++ b/api/model_patch_price_list_schedulers_price_list_scheduler_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHPriceListSchedulersPriceListSchedulerId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHPriceListSchedulersPriceListSchedulerId200Response{} + +// PATCHPriceListSchedulersPriceListSchedulerId200Response struct for PATCHPriceListSchedulersPriceListSchedulerId200Response +type PATCHPriceListSchedulersPriceListSchedulerId200Response struct { + Data *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData `json:"data,omitempty"` +} + +// NewPATCHPriceListSchedulersPriceListSchedulerId200Response instantiates a new PATCHPriceListSchedulersPriceListSchedulerId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHPriceListSchedulersPriceListSchedulerId200Response() *PATCHPriceListSchedulersPriceListSchedulerId200Response { + this := PATCHPriceListSchedulersPriceListSchedulerId200Response{} + return &this +} + +// NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseWithDefaults instantiates a new PATCHPriceListSchedulersPriceListSchedulerId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseWithDefaults() *PATCHPriceListSchedulersPriceListSchedulerId200Response { + this := PATCHPriceListSchedulersPriceListSchedulerId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200Response) GetData() PATCHPriceListSchedulersPriceListSchedulerId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret PATCHPriceListSchedulersPriceListSchedulerId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200Response) GetDataOk() (*PATCHPriceListSchedulersPriceListSchedulerId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given PATCHPriceListSchedulersPriceListSchedulerId200ResponseData and assigns it to the Data field. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200Response) SetData(v PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) { + o.Data = &v +} + +func (o PATCHPriceListSchedulersPriceListSchedulerId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHPriceListSchedulersPriceListSchedulerId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePATCHPriceListSchedulersPriceListSchedulerId200Response struct { + value *PATCHPriceListSchedulersPriceListSchedulerId200Response + isSet bool +} + +func (v NullablePATCHPriceListSchedulersPriceListSchedulerId200Response) Get() *PATCHPriceListSchedulersPriceListSchedulerId200Response { + return v.value +} + +func (v *NullablePATCHPriceListSchedulersPriceListSchedulerId200Response) Set(val *PATCHPriceListSchedulersPriceListSchedulerId200Response) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHPriceListSchedulersPriceListSchedulerId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHPriceListSchedulersPriceListSchedulerId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHPriceListSchedulersPriceListSchedulerId200Response(val *PATCHPriceListSchedulersPriceListSchedulerId200Response) *NullablePATCHPriceListSchedulersPriceListSchedulerId200Response { + return &NullablePATCHPriceListSchedulersPriceListSchedulerId200Response{value: val, isSet: true} +} + +func (v NullablePATCHPriceListSchedulersPriceListSchedulerId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHPriceListSchedulersPriceListSchedulerId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_price_list_schedulers_price_list_scheduler_id_200_response_data.go b/api/model_patch_price_list_schedulers_price_list_scheduler_id_200_response_data.go new file mode 100644 index 00000000..7566e45e --- /dev/null +++ b/api/model_patch_price_list_schedulers_price_list_scheduler_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHPriceListSchedulersPriceListSchedulerId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHPriceListSchedulersPriceListSchedulerId200ResponseData{} + +// PATCHPriceListSchedulersPriceListSchedulerId200ResponseData struct for PATCHPriceListSchedulersPriceListSchedulerId200ResponseData +type PATCHPriceListSchedulersPriceListSchedulerId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTPriceListSchedulers201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseData instantiates a new PATCHPriceListSchedulersPriceListSchedulerId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseData() *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData { + this := PATCHPriceListSchedulersPriceListSchedulerId200ResponseData{} + return &this +} + +// NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseDataWithDefaults instantiates a new PATCHPriceListSchedulersPriceListSchedulerId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseDataWithDefaults() *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData { + this := PATCHPriceListSchedulersPriceListSchedulerId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetAttributes() PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetAttributesOk() (*PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) SetAttributes(v PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetRelationships() POSTPriceListSchedulers201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTPriceListSchedulers201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) GetRelationshipsOk() (*POSTPriceListSchedulers201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTPriceListSchedulers201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) SetRelationships(v POSTPriceListSchedulers201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseData struct { + value *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData + isSet bool +} + +func (v NullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseData) Get() *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData { + return v.value +} + +func (v *NullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseData) Set(val *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseData(val *PATCHPriceListSchedulersPriceListSchedulerId200ResponseData) *NullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseData { + return &NullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseData{value: val, isSet: true} +} + +func (v NullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_price_list_schedulers_price_list_scheduler_id_200_response_data_attributes.go b/api/model_patch_price_list_schedulers_price_list_scheduler_id_200_response_data_attributes.go new file mode 100644 index 00000000..3d567e2a --- /dev/null +++ b/api/model_patch_price_list_schedulers_price_list_scheduler_id_200_response_data_attributes.go @@ -0,0 +1,393 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes{} + +// PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes struct for PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes +type PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes struct { + // The price list scheduler's internal name. + Name interface{} `json:"name,omitempty"` + // The activation date/time of this price list scheduler. + StartsAt interface{} `json:"starts_at,omitempty"` + // The expiration date/time of this price list scheduler (must be after starts_at). + ExpiresAt interface{} `json:"expires_at,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes instantiates a new PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes() *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes { + this := PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes{} + return &this +} + +// NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributesWithDefaults instantiates a new PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributesWithDefaults() *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes { + this := PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasName() bool { + if o != nil && IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given interface{} and assigns it to the Name field. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetStartsAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.StartsAt +} + +// GetStartsAtOk returns a tuple with the StartsAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.StartsAt) { + return nil, false + } + return &o.StartsAt, true +} + +// HasStartsAt returns a boolean if a field has been set. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasStartsAt() bool { + if o != nil && IsNil(o.StartsAt) { + return true + } + + return false +} + +// SetStartsAt gets a reference to the given interface{} and assigns it to the StartsAt field. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetStartsAt(v interface{}) { + o.StartsAt = v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetExpiresAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExpiresAt) { + return nil, false + } + return &o.ExpiresAt, true +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasExpiresAt() bool { + if o != nil && IsNil(o.ExpiresAt) { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given interface{} and assigns it to the ExpiresAt field. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetExpiresAt(v interface{}) { + o.ExpiresAt = v +} + +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.StartsAt != nil { + toSerialize["starts_at"] = o.StartsAt + } + if o.ExpiresAt != nil { + toSerialize["expires_at"] = o.ExpiresAt + } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes struct { + value *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes + isSet bool +} + +func (v NullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) Get() *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes { + return v.value +} + +func (v *NullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) Set(val *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes(val *PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) *NullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes { + return &NullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_price_lists_price_list_id_200_response.go b/api/model_patch_price_lists_price_list_id_200_response.go index 51e015e6..da26d24b 100644 --- a/api/model_patch_price_lists_price_list_id_200_response.go +++ b/api/model_patch_price_lists_price_list_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_price_lists_price_list_id_200_response_data.go b/api/model_patch_price_lists_price_list_id_200_response_data.go index ba3ead0e..766273dc 100644 --- a/api/model_patch_price_lists_price_list_id_200_response_data.go +++ b/api/model_patch_price_lists_price_list_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_price_lists_price_list_id_200_response_data_attributes.go b/api/model_patch_price_lists_price_list_id_200_response_data_attributes.go index e9f53494..58ecf77f 100644 --- a/api/model_patch_price_lists_price_list_id_200_response_data_attributes.go +++ b/api/model_patch_price_lists_price_list_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,16 +20,20 @@ var _ MappedNullable = &PATCHPriceListsPriceListId200ResponseDataAttributes{} // PATCHPriceListsPriceListId200ResponseDataAttributes struct for PATCHPriceListsPriceListId200ResponseDataAttributes type PATCHPriceListsPriceListId200ResponseDataAttributes struct { - // The price list's internal name + // The price list's internal name. Name interface{} `json:"name,omitempty"` + // A string that you can use to identify the price list (must be unique within the environment). + Code interface{} `json:"code,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` // Indicates if the associated prices include taxes. TaxIncluded interface{} `json:"tax_included,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // The rules (using Rules Engine) to be applied. + Rules interface{} `json:"rules,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` } @@ -84,6 +88,39 @@ func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) SetName(v interfac o.Name = v } +// GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) GetCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return &o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) HasCode() bool { + if o != nil && IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given interface{} and assigns it to the Code field. +func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) SetCode(v interface{}) { + o.Code = v +} + // GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) GetCurrencyCode() interface{} { if o == nil { @@ -216,6 +253,39 @@ func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) SetReferenceOrigin o.ReferenceOrigin = v } +// GetRules returns the Rules field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) GetRules() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) GetRulesOk() (*interface{}, bool) { + if o == nil || IsNil(o.Rules) { + return nil, false + } + return &o.Rules, true +} + +// HasRules returns a boolean if a field has been set. +func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) HasRules() bool { + if o != nil && IsNil(o.Rules) { + return true + } + + return false +} + +// SetRules gets a reference to the given interface{} and assigns it to the Rules field. +func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) SetRules(v interface{}) { + o.Rules = v +} + // GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHPriceListsPriceListId200ResponseDataAttributes) GetMetadata() interface{} { if o == nil { @@ -262,6 +332,9 @@ func (o PATCHPriceListsPriceListId200ResponseDataAttributes) ToMap() (map[string if o.Name != nil { toSerialize["name"] = o.Name } + if o.Code != nil { + toSerialize["code"] = o.Code + } if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } @@ -274,6 +347,9 @@ func (o PATCHPriceListsPriceListId200ResponseDataAttributes) ToMap() (map[string if o.ReferenceOrigin != nil { toSerialize["reference_origin"] = o.ReferenceOrigin } + if o.Rules != nil { + toSerialize["rules"] = o.Rules + } if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } diff --git a/api/model_patch_price_volume_tiers_price_volume_tier_id_200_response.go b/api/model_patch_price_volume_tiers_price_volume_tier_id_200_response.go index d81e0d2a..8a6a904b 100644 --- a/api/model_patch_price_volume_tiers_price_volume_tier_id_200_response.go +++ b/api/model_patch_price_volume_tiers_price_volume_tier_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_price_volume_tiers_price_volume_tier_id_200_response_data.go b/api/model_patch_price_volume_tiers_price_volume_tier_id_200_response_data.go index b580107c..c471350c 100644 --- a/api/model_patch_price_volume_tiers_price_volume_tier_id_200_response_data.go +++ b/api/model_patch_price_volume_tiers_price_volume_tier_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_price_volume_tiers_price_volume_tier_id_200_response_data_attributes.go b/api/model_patch_price_volume_tiers_price_volume_tier_id_200_response_data_attributes.go index c072fc92..f67100d1 100644 --- a/api/model_patch_price_volume_tiers_price_volume_tier_id_200_response_data_attributes.go +++ b/api/model_patch_price_volume_tiers_price_volume_tier_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &PATCHPriceVolumeTiersPriceVolumeTierId200ResponseDataAtt // PATCHPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes struct for PATCHPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes type PATCHPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes struct { - // The price tier's name + // The price tier's name. Name interface{} `json:"name,omitempty"` // The tier upper limit, expressed as the line item quantity. When 'null' it means infinity (useful to have an always matching tier). UpTo interface{} `json:"up_to,omitempty"` @@ -28,7 +28,7 @@ type PATCHPriceVolumeTiersPriceVolumeTierId200ResponseDataAttributes struct { PriceAmountCents interface{} `json:"price_amount_cents,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_prices_price_id_200_response.go b/api/model_patch_prices_price_id_200_response.go index e1a1f973..2d73f9e1 100644 --- a/api/model_patch_prices_price_id_200_response.go +++ b/api/model_patch_prices_price_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_prices_price_id_200_response_data.go b/api/model_patch_prices_price_id_200_response_data.go index 670156bb..b5b15462 100644 --- a/api/model_patch_prices_price_id_200_response_data.go +++ b/api/model_patch_prices_price_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_prices_price_id_200_response_data_attributes.go b/api/model_patch_prices_price_id_200_response_data_attributes.go index 05ef7b90..8bcae238 100644 --- a/api/model_patch_prices_price_id_200_response_data_attributes.go +++ b/api/model_patch_prices_price_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,8 +28,10 @@ type PATCHPricesPriceId200ResponseDataAttributes struct { CompareAtAmountCents interface{} `json:"compare_at_amount_cents,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // The rules (using Rules Engine) to be applied. + Rules interface{} `json:"rules,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` } @@ -216,6 +218,39 @@ func (o *PATCHPricesPriceId200ResponseDataAttributes) SetReferenceOrigin(v inter o.ReferenceOrigin = v } +// GetRules returns the Rules field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHPricesPriceId200ResponseDataAttributes) GetRules() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHPricesPriceId200ResponseDataAttributes) GetRulesOk() (*interface{}, bool) { + if o == nil || IsNil(o.Rules) { + return nil, false + } + return &o.Rules, true +} + +// HasRules returns a boolean if a field has been set. +func (o *PATCHPricesPriceId200ResponseDataAttributes) HasRules() bool { + if o != nil && IsNil(o.Rules) { + return true + } + + return false +} + +// SetRules gets a reference to the given interface{} and assigns it to the Rules field. +func (o *PATCHPricesPriceId200ResponseDataAttributes) SetRules(v interface{}) { + o.Rules = v +} + // GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHPricesPriceId200ResponseDataAttributes) GetMetadata() interface{} { if o == nil { @@ -274,6 +309,9 @@ func (o PATCHPricesPriceId200ResponseDataAttributes) ToMap() (map[string]interfa if o.ReferenceOrigin != nil { toSerialize["reference_origin"] = o.ReferenceOrigin } + if o.Rules != nil { + toSerialize["rules"] = o.Rules + } if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } diff --git a/api/model_patch_recurring_order_copies_recurring_order_copy_id_200_response.go b/api/model_patch_recurring_order_copies_recurring_order_copy_id_200_response.go index 74076a19..2838a2f9 100644 --- a/api/model_patch_recurring_order_copies_recurring_order_copy_id_200_response.go +++ b/api/model_patch_recurring_order_copies_recurring_order_copy_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_recurring_order_copies_recurring_order_copy_id_200_response_data.go b/api/model_patch_recurring_order_copies_recurring_order_copy_id_200_response_data.go index 40cd2beb..190395e1 100644 --- a/api/model_patch_recurring_order_copies_recurring_order_copy_id_200_response_data.go +++ b/api/model_patch_recurring_order_copies_recurring_order_copy_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_refunds_refund_id_200_response.go b/api/model_patch_refunds_refund_id_200_response.go new file mode 100644 index 00000000..7f486f43 --- /dev/null +++ b/api/model_patch_refunds_refund_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHRefundsRefundId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHRefundsRefundId200Response{} + +// PATCHRefundsRefundId200Response struct for PATCHRefundsRefundId200Response +type PATCHRefundsRefundId200Response struct { + Data *PATCHRefundsRefundId200ResponseData `json:"data,omitempty"` +} + +// NewPATCHRefundsRefundId200Response instantiates a new PATCHRefundsRefundId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHRefundsRefundId200Response() *PATCHRefundsRefundId200Response { + this := PATCHRefundsRefundId200Response{} + return &this +} + +// NewPATCHRefundsRefundId200ResponseWithDefaults instantiates a new PATCHRefundsRefundId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHRefundsRefundId200ResponseWithDefaults() *PATCHRefundsRefundId200Response { + this := PATCHRefundsRefundId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PATCHRefundsRefundId200Response) GetData() PATCHRefundsRefundId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret PATCHRefundsRefundId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHRefundsRefundId200Response) GetDataOk() (*PATCHRefundsRefundId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PATCHRefundsRefundId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given PATCHRefundsRefundId200ResponseData and assigns it to the Data field. +func (o *PATCHRefundsRefundId200Response) SetData(v PATCHRefundsRefundId200ResponseData) { + o.Data = &v +} + +func (o PATCHRefundsRefundId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHRefundsRefundId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePATCHRefundsRefundId200Response struct { + value *PATCHRefundsRefundId200Response + isSet bool +} + +func (v NullablePATCHRefundsRefundId200Response) Get() *PATCHRefundsRefundId200Response { + return v.value +} + +func (v *NullablePATCHRefundsRefundId200Response) Set(val *PATCHRefundsRefundId200Response) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHRefundsRefundId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHRefundsRefundId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHRefundsRefundId200Response(val *PATCHRefundsRefundId200Response) *NullablePATCHRefundsRefundId200Response { + return &NullablePATCHRefundsRefundId200Response{value: val, isSet: true} +} + +func (v NullablePATCHRefundsRefundId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHRefundsRefundId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_refunds_refund_id_200_response_data.go b/api/model_patch_refunds_refund_id_200_response_data.go new file mode 100644 index 00000000..27353412 --- /dev/null +++ b/api/model_patch_refunds_refund_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHRefundsRefundId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHRefundsRefundId200ResponseData{} + +// PATCHRefundsRefundId200ResponseData struct for PATCHRefundsRefundId200ResponseData +type PATCHRefundsRefundId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHRefundsRefundId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *GETRefundsRefundId200ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPATCHRefundsRefundId200ResponseData instantiates a new PATCHRefundsRefundId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHRefundsRefundId200ResponseData() *PATCHRefundsRefundId200ResponseData { + this := PATCHRefundsRefundId200ResponseData{} + return &this +} + +// NewPATCHRefundsRefundId200ResponseDataWithDefaults instantiates a new PATCHRefundsRefundId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHRefundsRefundId200ResponseDataWithDefaults() *PATCHRefundsRefundId200ResponseData { + this := PATCHRefundsRefundId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHRefundsRefundId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHRefundsRefundId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PATCHRefundsRefundId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *PATCHRefundsRefundId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHRefundsRefundId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHRefundsRefundId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PATCHRefundsRefundId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *PATCHRefundsRefundId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PATCHRefundsRefundId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHRefundsRefundId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PATCHRefundsRefundId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *PATCHRefundsRefundId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *PATCHRefundsRefundId200ResponseData) GetAttributes() PATCHRefundsRefundId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret PATCHRefundsRefundId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHRefundsRefundId200ResponseData) GetAttributesOk() (*PATCHRefundsRefundId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *PATCHRefundsRefundId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given PATCHRefundsRefundId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *PATCHRefundsRefundId200ResponseData) SetAttributes(v PATCHRefundsRefundId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PATCHRefundsRefundId200ResponseData) GetRelationships() GETRefundsRefundId200ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret GETRefundsRefundId200ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHRefundsRefundId200ResponseData) GetRelationshipsOk() (*GETRefundsRefundId200ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PATCHRefundsRefundId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given GETRefundsRefundId200ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHRefundsRefundId200ResponseData) SetRelationships(v GETRefundsRefundId200ResponseDataRelationships) { + o.Relationships = &v +} + +func (o PATCHRefundsRefundId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHRefundsRefundId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePATCHRefundsRefundId200ResponseData struct { + value *PATCHRefundsRefundId200ResponseData + isSet bool +} + +func (v NullablePATCHRefundsRefundId200ResponseData) Get() *PATCHRefundsRefundId200ResponseData { + return v.value +} + +func (v *NullablePATCHRefundsRefundId200ResponseData) Set(val *PATCHRefundsRefundId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHRefundsRefundId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHRefundsRefundId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHRefundsRefundId200ResponseData(val *PATCHRefundsRefundId200ResponseData) *NullablePATCHRefundsRefundId200ResponseData { + return &NullablePATCHRefundsRefundId200ResponseData{value: val, isSet: true} +} + +func (v NullablePATCHRefundsRefundId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHRefundsRefundId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_refunds_refund_id_200_response_data_attributes.go b/api/model_patch_refunds_refund_id_200_response_data_attributes.go new file mode 100644 index 00000000..678899bb --- /dev/null +++ b/api/model_patch_refunds_refund_id_200_response_data_attributes.go @@ -0,0 +1,279 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHRefundsRefundId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHRefundsRefundId200ResponseDataAttributes{} + +// PATCHRefundsRefundId200ResponseDataAttributes struct for PATCHRefundsRefundId200ResponseDataAttributes +type PATCHRefundsRefundId200ResponseDataAttributes struct { + // Indicates if the transaction is successful. + Succeeded interface{} `json:"succeeded,omitempty"` + // Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly. + Forward interface{} `json:"_forward,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPATCHRefundsRefundId200ResponseDataAttributes instantiates a new PATCHRefundsRefundId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHRefundsRefundId200ResponseDataAttributes() *PATCHRefundsRefundId200ResponseDataAttributes { + this := PATCHRefundsRefundId200ResponseDataAttributes{} + return &this +} + +// NewPATCHRefundsRefundId200ResponseDataAttributesWithDefaults instantiates a new PATCHRefundsRefundId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHRefundsRefundId200ResponseDataAttributesWithDefaults() *PATCHRefundsRefundId200ResponseDataAttributes { + this := PATCHRefundsRefundId200ResponseDataAttributes{} + return &this +} + +// GetSucceeded returns the Succeeded field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetSucceeded() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Succeeded +} + +// GetSucceededOk returns a tuple with the Succeeded field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetSucceededOk() (*interface{}, bool) { + if o == nil || IsNil(o.Succeeded) { + return nil, false + } + return &o.Succeeded, true +} + +// HasSucceeded returns a boolean if a field has been set. +func (o *PATCHRefundsRefundId200ResponseDataAttributes) HasSucceeded() bool { + if o != nil && IsNil(o.Succeeded) { + return true + } + + return false +} + +// SetSucceeded gets a reference to the given interface{} and assigns it to the Succeeded field. +func (o *PATCHRefundsRefundId200ResponseDataAttributes) SetSucceeded(v interface{}) { + o.Succeeded = v +} + +// GetForward returns the Forward field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetForward() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Forward +} + +// GetForwardOk returns a tuple with the Forward field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetForwardOk() (*interface{}, bool) { + if o == nil || IsNil(o.Forward) { + return nil, false + } + return &o.Forward, true +} + +// HasForward returns a boolean if a field has been set. +func (o *PATCHRefundsRefundId200ResponseDataAttributes) HasForward() bool { + if o != nil && IsNil(o.Forward) { + return true + } + + return false +} + +// SetForward gets a reference to the given interface{} and assigns it to the Forward field. +func (o *PATCHRefundsRefundId200ResponseDataAttributes) SetForward(v interface{}) { + o.Forward = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *PATCHRefundsRefundId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *PATCHRefundsRefundId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *PATCHRefundsRefundId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *PATCHRefundsRefundId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHRefundsRefundId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *PATCHRefundsRefundId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *PATCHRefundsRefundId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o PATCHRefundsRefundId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHRefundsRefundId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Succeeded != nil { + toSerialize["succeeded"] = o.Succeeded + } + if o.Forward != nil { + toSerialize["_forward"] = o.Forward + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePATCHRefundsRefundId200ResponseDataAttributes struct { + value *PATCHRefundsRefundId200ResponseDataAttributes + isSet bool +} + +func (v NullablePATCHRefundsRefundId200ResponseDataAttributes) Get() *PATCHRefundsRefundId200ResponseDataAttributes { + return v.value +} + +func (v *NullablePATCHRefundsRefundId200ResponseDataAttributes) Set(val *PATCHRefundsRefundId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHRefundsRefundId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHRefundsRefundId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHRefundsRefundId200ResponseDataAttributes(val *PATCHRefundsRefundId200ResponseDataAttributes) *NullablePATCHRefundsRefundId200ResponseDataAttributes { + return &NullablePATCHRefundsRefundId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePATCHRefundsRefundId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHRefundsRefundId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_return_line_items_return_line_item_id_200_response.go b/api/model_patch_return_line_items_return_line_item_id_200_response.go index 8b4239ee..f5de8a40 100644 --- a/api/model_patch_return_line_items_return_line_item_id_200_response.go +++ b/api/model_patch_return_line_items_return_line_item_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_return_line_items_return_line_item_id_200_response_data.go b/api/model_patch_return_line_items_return_line_item_id_200_response_data.go index 10b5d6d6..d0e29865 100644 --- a/api/model_patch_return_line_items_return_line_item_id_200_response_data.go +++ b/api/model_patch_return_line_items_return_line_item_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_return_line_items_return_line_item_id_200_response_data_attributes.go b/api/model_patch_return_line_items_return_line_item_id_200_response_data_attributes.go index ae5305e6..994325b8 100644 --- a/api/model_patch_return_line_items_return_line_item_id_200_response_data_attributes.go +++ b/api/model_patch_return_line_items_return_line_item_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &PATCHReturnLineItemsReturnLineItemId200ResponseDataAttri // PATCHReturnLineItemsReturnLineItemId200ResponseDataAttributes struct for PATCHReturnLineItemsReturnLineItemId200ResponseDataAttributes type PATCHReturnLineItemsReturnLineItemId200ResponseDataAttributes struct { - // The line item quantity. + // The return line item quantity. Quantity interface{} `json:"quantity,omitempty"` // Send this attribute if you want to restock the line item. Restock interface{} `json:"_restock,omitempty"` @@ -28,7 +28,7 @@ type PATCHReturnLineItemsReturnLineItemId200ResponseDataAttributes struct { ReturnReason interface{} `json:"return_reason,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_returns_return_id_200_response.go b/api/model_patch_returns_return_id_200_response.go index c3150139..19dd79d3 100644 --- a/api/model_patch_returns_return_id_200_response.go +++ b/api/model_patch_returns_return_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_returns_return_id_200_response_data.go b/api/model_patch_returns_return_id_200_response_data.go index 7de01686..dcfbdee5 100644 --- a/api/model_patch_returns_return_id_200_response_data.go +++ b/api/model_patch_returns_return_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_returns_return_id_200_response_data_attributes.go b/api/model_patch_returns_return_id_200_response_data_attributes.go index 4052da63..e20e84c9 100644 --- a/api/model_patch_returns_return_id_200_response_data_attributes.go +++ b/api/model_patch_returns_return_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -38,9 +38,13 @@ type PATCHReturnsReturnId200ResponseDataAttributes struct { Archive interface{} `json:"_archive,omitempty"` // Send this attribute if you want to unarchive the return. Unarchive interface{} `json:"_unarchive,omitempty"` + // Send this attribute if you want to create a refund for this return. + Refund interface{} `json:"_refund,omitempty"` + // Send this attribute as a value in cents to specify the amount to be refunded. + RefundAmountCents interface{} `json:"_refund_amount_cents,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -360,6 +364,72 @@ func (o *PATCHReturnsReturnId200ResponseDataAttributes) SetUnarchive(v interface o.Unarchive = v } +// GetRefund returns the Refund field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHReturnsReturnId200ResponseDataAttributes) GetRefund() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Refund +} + +// GetRefundOk returns a tuple with the Refund field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHReturnsReturnId200ResponseDataAttributes) GetRefundOk() (*interface{}, bool) { + if o == nil || IsNil(o.Refund) { + return nil, false + } + return &o.Refund, true +} + +// HasRefund returns a boolean if a field has been set. +func (o *PATCHReturnsReturnId200ResponseDataAttributes) HasRefund() bool { + if o != nil && IsNil(o.Refund) { + return true + } + + return false +} + +// SetRefund gets a reference to the given interface{} and assigns it to the Refund field. +func (o *PATCHReturnsReturnId200ResponseDataAttributes) SetRefund(v interface{}) { + o.Refund = v +} + +// GetRefundAmountCents returns the RefundAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHReturnsReturnId200ResponseDataAttributes) GetRefundAmountCents() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RefundAmountCents +} + +// GetRefundAmountCentsOk returns a tuple with the RefundAmountCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHReturnsReturnId200ResponseDataAttributes) GetRefundAmountCentsOk() (*interface{}, bool) { + if o == nil || IsNil(o.RefundAmountCents) { + return nil, false + } + return &o.RefundAmountCents, true +} + +// HasRefundAmountCents returns a boolean if a field has been set. +func (o *PATCHReturnsReturnId200ResponseDataAttributes) HasRefundAmountCents() bool { + if o != nil && IsNil(o.RefundAmountCents) { + return true + } + + return false +} + +// SetRefundAmountCents gets a reference to the given interface{} and assigns it to the RefundAmountCents field. +func (o *PATCHReturnsReturnId200ResponseDataAttributes) SetRefundAmountCents(v interface{}) { + o.RefundAmountCents = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHReturnsReturnId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -496,6 +566,12 @@ func (o PATCHReturnsReturnId200ResponseDataAttributes) ToMap() (map[string]inter if o.Unarchive != nil { toSerialize["_unarchive"] = o.Unarchive } + if o.Refund != nil { + toSerialize["_refund"] = o.Refund + } + if o.RefundAmountCents != nil { + toSerialize["_refund_amount_cents"] = o.RefundAmountCents + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_patch_satispay_gateways_satispay_gateway_id_200_response.go b/api/model_patch_satispay_gateways_satispay_gateway_id_200_response.go index 4d4dbfc9..d9544328 100644 --- a/api/model_patch_satispay_gateways_satispay_gateway_id_200_response.go +++ b/api/model_patch_satispay_gateways_satispay_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_satispay_gateways_satispay_gateway_id_200_response_data.go b/api/model_patch_satispay_gateways_satispay_gateway_id_200_response_data.go index 66da5f64..9429a234 100644 --- a/api/model_patch_satispay_gateways_satispay_gateway_id_200_response_data.go +++ b/api/model_patch_satispay_gateways_satispay_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_satispay_payments_satispay_payment_id_200_response.go b/api/model_patch_satispay_payments_satispay_payment_id_200_response.go index e072e5e6..abc93d5b 100644 --- a/api/model_patch_satispay_payments_satispay_payment_id_200_response.go +++ b/api/model_patch_satispay_payments_satispay_payment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_satispay_payments_satispay_payment_id_200_response_data.go b/api/model_patch_satispay_payments_satispay_payment_id_200_response_data.go index ba58128c..b109f766 100644 --- a/api/model_patch_satispay_payments_satispay_payment_id_200_response_data.go +++ b/api/model_patch_satispay_payments_satispay_payment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_satispay_payments_satispay_payment_id_200_response_data_attributes.go b/api/model_patch_satispay_payments_satispay_payment_id_200_response_data_attributes.go index 1f026da7..1f01178d 100644 --- a/api/model_patch_satispay_payments_satispay_payment_id_200_response_data_attributes.go +++ b/api/model_patch_satispay_payments_satispay_payment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type PATCHSatispayPaymentsSatispayPaymentId200ResponseDataAttributes struct { Refresh interface{} `json:"_refresh,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_shipments_shipment_id_200_response.go b/api/model_patch_shipments_shipment_id_200_response.go index 2bd15a0c..16542576 100644 --- a/api/model_patch_shipments_shipment_id_200_response.go +++ b/api/model_patch_shipments_shipment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_shipments_shipment_id_200_response_data.go b/api/model_patch_shipments_shipment_id_200_response_data.go index 0e8006c8..8f33eb3b 100644 --- a/api/model_patch_shipments_shipment_id_200_response_data.go +++ b/api/model_patch_shipments_shipment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type PATCHShipmentsShipmentId200ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *PATCHShipmentsShipmentId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *GETShipmentsShipmentId200ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHShipmentsShipmentId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTShipments201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPATCHShipmentsShipmentId200ResponseData instantiates a new PATCHShipmentsShipmentId200ResponseData object @@ -177,9 +177,9 @@ func (o *PATCHShipmentsShipmentId200ResponseData) SetAttributes(v PATCHShipments } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *PATCHShipmentsShipmentId200ResponseData) GetRelationships() GETShipmentsShipmentId200ResponseDataRelationships { +func (o *PATCHShipmentsShipmentId200ResponseData) GetRelationships() POSTShipments201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret GETShipmentsShipmentId200ResponseDataRelationships + var ret POSTShipments201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *PATCHShipmentsShipmentId200ResponseData) GetRelationships() GETShipment // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PATCHShipmentsShipmentId200ResponseData) GetRelationshipsOk() (*GETShipmentsShipmentId200ResponseDataRelationships, bool) { +func (o *PATCHShipmentsShipmentId200ResponseData) GetRelationshipsOk() (*POSTShipments201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *PATCHShipmentsShipmentId200ResponseData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given GETShipmentsShipmentId200ResponseDataRelationships and assigns it to the Relationships field. -func (o *PATCHShipmentsShipmentId200ResponseData) SetRelationships(v GETShipmentsShipmentId200ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTShipments201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHShipmentsShipmentId200ResponseData) SetRelationships(v POSTShipments201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_patch_shipments_shipment_id_200_response_data_attributes.go b/api/model_patch_shipments_shipment_id_200_response_data_attributes.go index f588af38..0e37e80c 100644 --- a/api/model_patch_shipments_shipment_id_200_response_data_attributes.go +++ b/api/model_patch_shipments_shipment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,6 +20,12 @@ var _ MappedNullable = &PATCHShipmentsShipmentId200ResponseDataAttributes{} // PATCHShipmentsShipmentId200ResponseDataAttributes struct for PATCHShipmentsShipmentId200ResponseDataAttributes type PATCHShipmentsShipmentId200ResponseDataAttributes struct { + // Unique identifier for the shipment. Cannot be passed by sales channels. + Number interface{} `json:"number,omitempty"` + // Send this attribute if you want to mark this shipment as upcoming. Cannot be passed by sales channels. + Upcoming interface{} `json:"_upcoming,omitempty"` + // Send this attribute if you want to mark this shipment as cancelled (unless already shipped or delivered). Cannot be passed by sales channels. + Cancel interface{} `json:"_cancel,omitempty"` // Send this attribute if you want to put this shipment on hold. OnHold interface{} `json:"_on_hold,omitempty"` // Send this attribute if you want to start picking this shipment. @@ -30,6 +36,14 @@ type PATCHShipmentsShipmentId200ResponseDataAttributes struct { ReadyToShip interface{} `json:"_ready_to_ship,omitempty"` // Send this attribute if you want to mark this shipment as shipped. Ship interface{} `json:"_ship,omitempty"` + // Send this attribute if you want to mark this shipment as delivered. + Deliver interface{} `json:"_deliver,omitempty"` + // Send this attribute if you want to automatically reserve the stock for each of the associated stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels. + ReserveStock interface{} `json:"_reserve_stock,omitempty"` + // Send this attribute if you want to automatically destroy the stock reservations for each of the associated stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels. + ReleaseStock interface{} `json:"_release_stock,omitempty"` + // Send this attribute if you want to automatically decrement and release the stock for each of the associated stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels. + DecrementStock interface{} `json:"_decrement_stock,omitempty"` // Send this attribute if you want get the shipping rates from the associated carrier accounts. GetRates interface{} `json:"_get_rates,omitempty"` // The selected purchase rate from the available shipping rates. @@ -38,7 +52,7 @@ type PATCHShipmentsShipmentId200ResponseDataAttributes struct { Purchase interface{} `json:"_purchase,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -61,6 +75,105 @@ func NewPATCHShipmentsShipmentId200ResponseDataAttributesWithDefaults() *PATCHSh return &this } +// GetNumber returns the Number field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetNumber() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Number +} + +// GetNumberOk returns a tuple with the Number field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetNumberOk() (*interface{}, bool) { + if o == nil || IsNil(o.Number) { + return nil, false + } + return &o.Number, true +} + +// HasNumber returns a boolean if a field has been set. +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) HasNumber() bool { + if o != nil && IsNil(o.Number) { + return true + } + + return false +} + +// SetNumber gets a reference to the given interface{} and assigns it to the Number field. +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetNumber(v interface{}) { + o.Number = v +} + +// GetUpcoming returns the Upcoming field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetUpcoming() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Upcoming +} + +// GetUpcomingOk returns a tuple with the Upcoming field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetUpcomingOk() (*interface{}, bool) { + if o == nil || IsNil(o.Upcoming) { + return nil, false + } + return &o.Upcoming, true +} + +// HasUpcoming returns a boolean if a field has been set. +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) HasUpcoming() bool { + if o != nil && IsNil(o.Upcoming) { + return true + } + + return false +} + +// SetUpcoming gets a reference to the given interface{} and assigns it to the Upcoming field. +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetUpcoming(v interface{}) { + o.Upcoming = v +} + +// GetCancel returns the Cancel field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetCancel() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Cancel +} + +// GetCancelOk returns a tuple with the Cancel field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetCancelOk() (*interface{}, bool) { + if o == nil || IsNil(o.Cancel) { + return nil, false + } + return &o.Cancel, true +} + +// HasCancel returns a boolean if a field has been set. +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) HasCancel() bool { + if o != nil && IsNil(o.Cancel) { + return true + } + + return false +} + +// SetCancel gets a reference to the given interface{} and assigns it to the Cancel field. +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetCancel(v interface{}) { + o.Cancel = v +} + // GetOnHold returns the OnHold field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetOnHold() interface{} { if o == nil { @@ -226,6 +339,138 @@ func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetShip(v interface{ o.Ship = v } +// GetDeliver returns the Deliver field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetDeliver() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Deliver +} + +// GetDeliverOk returns a tuple with the Deliver field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetDeliverOk() (*interface{}, bool) { + if o == nil || IsNil(o.Deliver) { + return nil, false + } + return &o.Deliver, true +} + +// HasDeliver returns a boolean if a field has been set. +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) HasDeliver() bool { + if o != nil && IsNil(o.Deliver) { + return true + } + + return false +} + +// SetDeliver gets a reference to the given interface{} and assigns it to the Deliver field. +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetDeliver(v interface{}) { + o.Deliver = v +} + +// GetReserveStock returns the ReserveStock field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetReserveStock() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReserveStock +} + +// GetReserveStockOk returns a tuple with the ReserveStock field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetReserveStockOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReserveStock) { + return nil, false + } + return &o.ReserveStock, true +} + +// HasReserveStock returns a boolean if a field has been set. +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) HasReserveStock() bool { + if o != nil && IsNil(o.ReserveStock) { + return true + } + + return false +} + +// SetReserveStock gets a reference to the given interface{} and assigns it to the ReserveStock field. +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetReserveStock(v interface{}) { + o.ReserveStock = v +} + +// GetReleaseStock returns the ReleaseStock field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetReleaseStock() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReleaseStock +} + +// GetReleaseStockOk returns a tuple with the ReleaseStock field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetReleaseStockOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReleaseStock) { + return nil, false + } + return &o.ReleaseStock, true +} + +// HasReleaseStock returns a boolean if a field has been set. +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) HasReleaseStock() bool { + if o != nil && IsNil(o.ReleaseStock) { + return true + } + + return false +} + +// SetReleaseStock gets a reference to the given interface{} and assigns it to the ReleaseStock field. +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetReleaseStock(v interface{}) { + o.ReleaseStock = v +} + +// GetDecrementStock returns the DecrementStock field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetDecrementStock() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DecrementStock +} + +// GetDecrementStockOk returns a tuple with the DecrementStock field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetDecrementStockOk() (*interface{}, bool) { + if o == nil || IsNil(o.DecrementStock) { + return nil, false + } + return &o.DecrementStock, true +} + +// HasDecrementStock returns a boolean if a field has been set. +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) HasDecrementStock() bool { + if o != nil && IsNil(o.DecrementStock) { + return true + } + + return false +} + +// SetDecrementStock gets a reference to the given interface{} and assigns it to the DecrementStock field. +func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) SetDecrementStock(v interface{}) { + o.DecrementStock = v +} + // GetGetRates returns the GetRates field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHShipmentsShipmentId200ResponseDataAttributes) GetGetRates() interface{} { if o == nil { @@ -434,6 +679,15 @@ func (o PATCHShipmentsShipmentId200ResponseDataAttributes) MarshalJSON() ([]byte func (o PATCHShipmentsShipmentId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Number != nil { + toSerialize["number"] = o.Number + } + if o.Upcoming != nil { + toSerialize["_upcoming"] = o.Upcoming + } + if o.Cancel != nil { + toSerialize["_cancel"] = o.Cancel + } if o.OnHold != nil { toSerialize["_on_hold"] = o.OnHold } @@ -449,6 +703,18 @@ func (o PATCHShipmentsShipmentId200ResponseDataAttributes) ToMap() (map[string]i if o.Ship != nil { toSerialize["_ship"] = o.Ship } + if o.Deliver != nil { + toSerialize["_deliver"] = o.Deliver + } + if o.ReserveStock != nil { + toSerialize["_reserve_stock"] = o.ReserveStock + } + if o.ReleaseStock != nil { + toSerialize["_release_stock"] = o.ReleaseStock + } + if o.DecrementStock != nil { + toSerialize["_decrement_stock"] = o.DecrementStock + } if o.GetRates != nil { toSerialize["_get_rates"] = o.GetRates } diff --git a/api/model_patch_shipping_categories_shipping_category_id_200_response.go b/api/model_patch_shipping_categories_shipping_category_id_200_response.go index 8c0ee20c..a6a00cb3 100644 --- a/api/model_patch_shipping_categories_shipping_category_id_200_response.go +++ b/api/model_patch_shipping_categories_shipping_category_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_shipping_categories_shipping_category_id_200_response_data.go b/api/model_patch_shipping_categories_shipping_category_id_200_response_data.go index 24632a09..e527d01f 100644 --- a/api/model_patch_shipping_categories_shipping_category_id_200_response_data.go +++ b/api/model_patch_shipping_categories_shipping_category_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_shipping_categories_shipping_category_id_200_response_data_attributes.go b/api/model_patch_shipping_categories_shipping_category_id_200_response_data_attributes.go index e93988f4..00ec87c3 100644 --- a/api/model_patch_shipping_categories_shipping_category_id_200_response_data_attributes.go +++ b/api/model_patch_shipping_categories_shipping_category_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,9 +22,11 @@ var _ MappedNullable = &PATCHShippingCategoriesShippingCategoryId200ResponseData type PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes struct { // The shipping category name. Name interface{} `json:"name,omitempty"` + // A string that you can use to identify the shipping category (must be unique within the environment). + Code interface{} `json:"code,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -80,6 +82,39 @@ func (o *PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes) Set o.Name = v } +// GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes) GetCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return &o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes) HasCode() bool { + if o != nil && IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given interface{} and assigns it to the Code field. +func (o *PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes) SetCode(v interface{}) { + o.Code = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -192,6 +227,9 @@ func (o PATCHShippingCategoriesShippingCategoryId200ResponseDataAttributes) ToMa if o.Name != nil { toSerialize["name"] = o.Name } + if o.Code != nil { + toSerialize["code"] = o.Code + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_patch_shipping_methods_shipping_method_id_200_response.go b/api/model_patch_shipping_methods_shipping_method_id_200_response.go index afb97366..328423f6 100644 --- a/api/model_patch_shipping_methods_shipping_method_id_200_response.go +++ b/api/model_patch_shipping_methods_shipping_method_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_shipping_methods_shipping_method_id_200_response_data.go b/api/model_patch_shipping_methods_shipping_method_id_200_response_data.go index 371c9bd6..0babe5f8 100644 --- a/api/model_patch_shipping_methods_shipping_method_id_200_response_data.go +++ b/api/model_patch_shipping_methods_shipping_method_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_shipping_methods_shipping_method_id_200_response_data_attributes.go b/api/model_patch_shipping_methods_shipping_method_id_200_response_data_attributes.go index 28db9bb7..5dc505fb 100644 --- a/api/model_patch_shipping_methods_shipping_method_id_200_response_data_attributes.go +++ b/api/model_patch_shipping_methods_shipping_method_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,29 +20,35 @@ var _ MappedNullable = &PATCHShippingMethodsShippingMethodId200ResponseDataAttri // PATCHShippingMethodsShippingMethodId200ResponseDataAttributes struct for PATCHShippingMethodsShippingMethodId200ResponseDataAttributes type PATCHShippingMethodsShippingMethodId200ResponseDataAttributes struct { - // The shipping method's name + // The shipping method's name. Name interface{} `json:"name,omitempty"` - // The shipping method's scheme, one of 'flat' or 'weight_tiered'. + // The shipping method's scheme. One of 'flat', 'weight_tiered', or 'external'. Scheme interface{} `json:"scheme,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` - // Send this attribute if you want to mark the shipping method as disabled. - Disable interface{} `json:"_disable,omitempty"` - // Send this attribute if you want to mark the shipping method as enabled. - Enable interface{} `json:"_enable,omitempty"` + // The URL used to overwrite prices by an external source. + ExternalPricesUrl interface{} `json:"external_prices_url,omitempty"` // The price of this shipping method, in cents. PriceAmountCents interface{} `json:"price_amount_cents,omitempty"` // Apply free shipping if the order amount is over this value, in cents. FreeOverAmountCents interface{} `json:"free_over_amount_cents,omitempty"` + // Send this attribute if you want to compare the free over amount with order's subtotal (excluding discounts, if any). + UseSubtotal interface{} `json:"use_subtotal,omitempty"` // The minimum weight for which this shipping method is available. MinWeight interface{} `json:"min_weight,omitempty"` // The maximum weight for which this shipping method is available. MaxWeight interface{} `json:"max_weight,omitempty"` - // Can be one of 'gr', 'lb', or 'oz' + // The unit of weight. One of 'gr', 'oz', or 'lb'. UnitOfWeight interface{} `json:"unit_of_weight,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` + // Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. + ResetCircuit interface{} `json:"_reset_circuit,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -164,70 +170,37 @@ func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetCurre o.CurrencyCode = v } -// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetDisable() interface{} { +// GetExternalPricesUrl returns the ExternalPricesUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetExternalPricesUrl() interface{} { if o == nil { var ret interface{} return ret } - return o.Disable + return o.ExternalPricesUrl } -// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// GetExternalPricesUrlOk returns a tuple with the ExternalPricesUrl field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { - if o == nil || IsNil(o.Disable) { +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetExternalPricesUrlOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExternalPricesUrl) { return nil, false } - return &o.Disable, true + return &o.ExternalPricesUrl, true } -// HasDisable returns a boolean if a field has been set. -func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) HasDisable() bool { - if o != nil && IsNil(o.Disable) { +// HasExternalPricesUrl returns a boolean if a field has been set. +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) HasExternalPricesUrl() bool { + if o != nil && IsNil(o.ExternalPricesUrl) { return true } return false } -// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. -func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetDisable(v interface{}) { - o.Disable = v -} - -// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetEnable() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Enable -} - -// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { - if o == nil || IsNil(o.Enable) { - return nil, false - } - return &o.Enable, true -} - -// HasEnable returns a boolean if a field has been set. -func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) HasEnable() bool { - if o != nil && IsNil(o.Enable) { - return true - } - - return false -} - -// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. -func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetEnable(v interface{}) { - o.Enable = v +// SetExternalPricesUrl gets a reference to the given interface{} and assigns it to the ExternalPricesUrl field. +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetExternalPricesUrl(v interface{}) { + o.ExternalPricesUrl = v } // GetPriceAmountCents returns the PriceAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). @@ -296,6 +269,39 @@ func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetFreeO o.FreeOverAmountCents = v } +// GetUseSubtotal returns the UseSubtotal field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetUseSubtotal() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UseSubtotal +} + +// GetUseSubtotalOk returns a tuple with the UseSubtotal field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetUseSubtotalOk() (*interface{}, bool) { + if o == nil || IsNil(o.UseSubtotal) { + return nil, false + } + return &o.UseSubtotal, true +} + +// HasUseSubtotal returns a boolean if a field has been set. +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) HasUseSubtotal() bool { + if o != nil && IsNil(o.UseSubtotal) { + return true + } + + return false +} + +// SetUseSubtotal gets a reference to the given interface{} and assigns it to the UseSubtotal field. +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetUseSubtotal(v interface{}) { + o.UseSubtotal = v +} + // GetMinWeight returns the MinWeight field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetMinWeight() interface{} { if o == nil { @@ -395,6 +401,105 @@ func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetUnitO o.UnitOfWeight = v } +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + +// GetResetCircuit returns the ResetCircuit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetResetCircuit() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ResetCircuit +} + +// GetResetCircuitOk returns a tuple with the ResetCircuit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetResetCircuitOk() (*interface{}, bool) { + if o == nil || IsNil(o.ResetCircuit) { + return nil, false + } + return &o.ResetCircuit, true +} + +// HasResetCircuit returns a boolean if a field has been set. +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) HasResetCircuit() bool { + if o != nil && IsNil(o.ResetCircuit) { + return true + } + + return false +} + +// SetResetCircuit gets a reference to the given interface{} and assigns it to the ResetCircuit field. +func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) SetResetCircuit(v interface{}) { + o.ResetCircuit = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -513,11 +618,8 @@ func (o PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) ToMap() ( if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } - if o.Disable != nil { - toSerialize["_disable"] = o.Disable - } - if o.Enable != nil { - toSerialize["_enable"] = o.Enable + if o.ExternalPricesUrl != nil { + toSerialize["external_prices_url"] = o.ExternalPricesUrl } if o.PriceAmountCents != nil { toSerialize["price_amount_cents"] = o.PriceAmountCents @@ -525,6 +627,9 @@ func (o PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) ToMap() ( if o.FreeOverAmountCents != nil { toSerialize["free_over_amount_cents"] = o.FreeOverAmountCents } + if o.UseSubtotal != nil { + toSerialize["use_subtotal"] = o.UseSubtotal + } if o.MinWeight != nil { toSerialize["min_weight"] = o.MinWeight } @@ -534,6 +639,15 @@ func (o PATCHShippingMethodsShippingMethodId200ResponseDataAttributes) ToMap() ( if o.UnitOfWeight != nil { toSerialize["unit_of_weight"] = o.UnitOfWeight } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } + if o.ResetCircuit != nil { + toSerialize["_reset_circuit"] = o.ResetCircuit + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_patch_shipping_weight_tiers_shipping_weight_tier_id_200_response.go b/api/model_patch_shipping_weight_tiers_shipping_weight_tier_id_200_response.go index 80264731..fffe10e2 100644 --- a/api/model_patch_shipping_weight_tiers_shipping_weight_tier_id_200_response.go +++ b/api/model_patch_shipping_weight_tiers_shipping_weight_tier_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_shipping_weight_tiers_shipping_weight_tier_id_200_response_data.go b/api/model_patch_shipping_weight_tiers_shipping_weight_tier_id_200_response_data.go index 4fecb8aa..915200f4 100644 --- a/api/model_patch_shipping_weight_tiers_shipping_weight_tier_id_200_response_data.go +++ b/api/model_patch_shipping_weight_tiers_shipping_weight_tier_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_shipping_weight_tiers_shipping_weight_tier_id_200_response_data_attributes.go b/api/model_patch_shipping_weight_tiers_shipping_weight_tier_id_200_response_data_attributes.go index 93aecee1..9094ed48 100644 --- a/api/model_patch_shipping_weight_tiers_shipping_weight_tier_id_200_response_data_attributes.go +++ b/api/model_patch_shipping_weight_tiers_shipping_weight_tier_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &PATCHShippingWeightTiersShippingWeightTierId200ResponseD // PATCHShippingWeightTiersShippingWeightTierId200ResponseDataAttributes struct for PATCHShippingWeightTiersShippingWeightTierId200ResponseDataAttributes type PATCHShippingWeightTiersShippingWeightTierId200ResponseDataAttributes struct { - // The shipping method tier's name + // The shipping method tier's name. Name interface{} `json:"name,omitempty"` // The tier upper limit. When 'null' it means infinity (useful to have an always matching tier). UpTo interface{} `json:"up_to,omitempty"` @@ -28,7 +28,7 @@ type PATCHShippingWeightTiersShippingWeightTierId200ResponseDataAttributes struc PriceAmountCents interface{} `json:"price_amount_cents,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_shipping_zones_shipping_zone_id_200_response.go b/api/model_patch_shipping_zones_shipping_zone_id_200_response.go index 1ab2529a..fc4f2943 100644 --- a/api/model_patch_shipping_zones_shipping_zone_id_200_response.go +++ b/api/model_patch_shipping_zones_shipping_zone_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_shipping_zones_shipping_zone_id_200_response_data.go b/api/model_patch_shipping_zones_shipping_zone_id_200_response_data.go index 2e22176e..cd5aa7b9 100644 --- a/api/model_patch_shipping_zones_shipping_zone_id_200_response_data.go +++ b/api/model_patch_shipping_zones_shipping_zone_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_shipping_zones_shipping_zone_id_200_response_data_attributes.go b/api/model_patch_shipping_zones_shipping_zone_id_200_response_data_attributes.go index f14d6e60..6dcfac5c 100644 --- a/api/model_patch_shipping_zones_shipping_zone_id_200_response_data_attributes.go +++ b/api/model_patch_shipping_zones_shipping_zone_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -36,7 +36,7 @@ type PATCHShippingZonesShippingZoneId200ResponseDataAttributes struct { NotZipCodeRegex interface{} `json:"not_zip_code_regex,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_sku_list_items_sku_list_item_id_200_response.go b/api/model_patch_sku_list_items_sku_list_item_id_200_response.go index 93c9881e..20e8d7cb 100644 --- a/api/model_patch_sku_list_items_sku_list_item_id_200_response.go +++ b/api/model_patch_sku_list_items_sku_list_item_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_sku_list_items_sku_list_item_id_200_response_data.go b/api/model_patch_sku_list_items_sku_list_item_id_200_response_data.go index fc793dd6..74d84dea 100644 --- a/api/model_patch_sku_list_items_sku_list_item_id_200_response_data.go +++ b/api/model_patch_sku_list_items_sku_list_item_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_sku_list_items_sku_list_item_id_200_response_data_attributes.go b/api/model_patch_sku_list_items_sku_list_item_id_200_response_data_attributes.go index a03f416e..ec14bdc7 100644 --- a/api/model_patch_sku_list_items_sku_list_item_id_200_response_data_attributes.go +++ b/api/model_patch_sku_list_items_sku_list_item_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,7 +28,7 @@ type PATCHSkuListItemsSkuListItemId200ResponseDataAttributes struct { Quantity interface{} `json:"quantity,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response.go b/api/model_patch_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response.go index c73932b8..36ba0fe3 100644 --- a/api/model_patch_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response.go +++ b/api/model_patch_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response_data.go b/api/model_patch_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response_data.go index 4cf14b28..8fb6ac5b 100644 --- a/api/model_patch_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response_data.go +++ b/api/model_patch_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response_data_attributes.go b/api/model_patch_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response_data_attributes.go index eed06342..2f171326 100644 --- a/api/model_patch_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response_data_attributes.go +++ b/api/model_patch_sku_list_promotion_rules_sku_list_promotion_rule_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,7 +22,7 @@ var _ MappedNullable = &PATCHSkuListPromotionRulesSkuListPromotionRuleId200Respo type PATCHSkuListPromotionRulesSkuListPromotionRuleId200ResponseDataAttributes struct { // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_sku_lists_sku_list_id_200_response.go b/api/model_patch_sku_lists_sku_list_id_200_response.go index 3b70f71b..83d11c74 100644 --- a/api/model_patch_sku_lists_sku_list_id_200_response.go +++ b/api/model_patch_sku_lists_sku_list_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_sku_lists_sku_list_id_200_response_data.go b/api/model_patch_sku_lists_sku_list_id_200_response_data.go index 2b88a9c7..624d1d86 100644 --- a/api/model_patch_sku_lists_sku_list_id_200_response_data.go +++ b/api/model_patch_sku_lists_sku_list_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_sku_lists_sku_list_id_200_response_data_attributes.go b/api/model_patch_sku_lists_sku_list_id_200_response_data_attributes.go index 73456adb..bf6e950c 100644 --- a/api/model_patch_sku_lists_sku_list_id_200_response_data_attributes.go +++ b/api/model_patch_sku_lists_sku_list_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -32,7 +32,7 @@ type PATCHSkuListsSkuListId200ResponseDataAttributes struct { SkuCodeRegex interface{} `json:"sku_code_regex,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_sku_options_sku_option_id_200_response.go b/api/model_patch_sku_options_sku_option_id_200_response.go index 44c82205..e99e464a 100644 --- a/api/model_patch_sku_options_sku_option_id_200_response.go +++ b/api/model_patch_sku_options_sku_option_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_sku_options_sku_option_id_200_response_data.go b/api/model_patch_sku_options_sku_option_id_200_response_data.go index 3035f637..4371df9a 100644 --- a/api/model_patch_sku_options_sku_option_id_200_response_data.go +++ b/api/model_patch_sku_options_sku_option_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type PATCHSkuOptionsSkuOptionId200ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *PATCHSkuOptionsSkuOptionId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTBillingInfoValidationRules201ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHSkuOptionsSkuOptionId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTSkuOptions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPATCHSkuOptionsSkuOptionId200ResponseData instantiates a new PATCHSkuOptionsSkuOptionId200ResponseData object @@ -177,9 +177,9 @@ func (o *PATCHSkuOptionsSkuOptionId200ResponseData) SetAttributes(v PATCHSkuOpti } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *PATCHSkuOptionsSkuOptionId200ResponseData) GetRelationships() POSTBillingInfoValidationRules201ResponseDataRelationships { +func (o *PATCHSkuOptionsSkuOptionId200ResponseData) GetRelationships() POSTSkuOptions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTBillingInfoValidationRules201ResponseDataRelationships + var ret POSTSkuOptions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *PATCHSkuOptionsSkuOptionId200ResponseData) GetRelationships() POSTBilli // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PATCHSkuOptionsSkuOptionId200ResponseData) GetRelationshipsOk() (*POSTBillingInfoValidationRules201ResponseDataRelationships, bool) { +func (o *PATCHSkuOptionsSkuOptionId200ResponseData) GetRelationshipsOk() (*POSTSkuOptions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *PATCHSkuOptionsSkuOptionId200ResponseData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given POSTBillingInfoValidationRules201ResponseDataRelationships and assigns it to the Relationships field. -func (o *PATCHSkuOptionsSkuOptionId200ResponseData) SetRelationships(v POSTBillingInfoValidationRules201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTSkuOptions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHSkuOptionsSkuOptionId200ResponseData) SetRelationships(v POSTSkuOptions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_patch_sku_options_sku_option_id_200_response_data_attributes.go b/api/model_patch_sku_options_sku_option_id_200_response_data_attributes.go index 8c1a7d43..d9994631 100644 --- a/api/model_patch_sku_options_sku_option_id_200_response_data_attributes.go +++ b/api/model_patch_sku_options_sku_option_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &PATCHSkuOptionsSkuOptionId200ResponseDataAttributes{} // PATCHSkuOptionsSkuOptionId200ResponseDataAttributes struct for PATCHSkuOptionsSkuOptionId200ResponseDataAttributes type PATCHSkuOptionsSkuOptionId200ResponseDataAttributes struct { - // The SKU option's internal name + // The SKU option's internal name. Name interface{} `json:"name,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` @@ -34,7 +34,7 @@ type PATCHSkuOptionsSkuOptionId200ResponseDataAttributes struct { SkuCodeRegex interface{} `json:"sku_code_regex,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_skus_sku_id_200_response.go b/api/model_patch_skus_sku_id_200_response.go index ead34303..da0d6916 100644 --- a/api/model_patch_skus_sku_id_200_response.go +++ b/api/model_patch_skus_sku_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_skus_sku_id_200_response_data.go b/api/model_patch_skus_sku_id_200_response_data.go index 82b12a29..d1d6edf2 100644 --- a/api/model_patch_skus_sku_id_200_response_data.go +++ b/api/model_patch_skus_sku_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_skus_sku_id_200_response_data_attributes.go b/api/model_patch_skus_sku_id_200_response_data_attributes.go index 7698d8d7..c934f031 100644 --- a/api/model_patch_skus_sku_id_200_response_data_attributes.go +++ b/api/model_patch_skus_sku_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -32,7 +32,7 @@ type PATCHSkusSkuId200ResponseDataAttributes struct { PiecesPerPack interface{} `json:"pieces_per_pack,omitempty"` // The weight of the SKU. If present, it will be used to calculate the shipping rates. Weight interface{} `json:"weight,omitempty"` - // Can be one of 'gr', 'lb', or 'oz' + // The unit of weight. One of 'gr', 'oz', or 'lb'. UnitOfWeight interface{} `json:"unit_of_weight,omitempty"` // The Harmonized System Code used by customs to identify the products shipped across international borders. HsTariffNumber interface{} `json:"hs_tariff_number,omitempty"` @@ -42,7 +42,7 @@ type PATCHSkusSkuId200ResponseDataAttributes struct { DoNotTrack interface{} `json:"do_not_track,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_stock_items_stock_item_id_200_response.go b/api/model_patch_stock_items_stock_item_id_200_response.go index 302c3a0c..a1a2f3ff 100644 --- a/api/model_patch_stock_items_stock_item_id_200_response.go +++ b/api/model_patch_stock_items_stock_item_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_stock_items_stock_item_id_200_response_data.go b/api/model_patch_stock_items_stock_item_id_200_response_data.go index f5a9a050..589d90a4 100644 --- a/api/model_patch_stock_items_stock_item_id_200_response_data.go +++ b/api/model_patch_stock_items_stock_item_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_stock_items_stock_item_id_200_response_data_attributes.go b/api/model_patch_stock_items_stock_item_id_200_response_data_attributes.go index 19d10b6f..64ba0765 100644 --- a/api/model_patch_stock_items_stock_item_id_200_response_data_attributes.go +++ b/api/model_patch_stock_items_stock_item_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,9 +24,11 @@ type PATCHStockItemsStockItemId200ResponseDataAttributes struct { SkuCode interface{} `json:"sku_code,omitempty"` // The stock item quantity. Quantity interface{} `json:"quantity,omitempty"` + // Send this attribute if you want to validate the stock item quantity against the existing reserved stock one, returns an error in case the former is smaller. Cannot be passed by sales channels. + Validate interface{} `json:"_validate,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -115,6 +117,39 @@ func (o *PATCHStockItemsStockItemId200ResponseDataAttributes) SetQuantity(v inte o.Quantity = v } +// GetValidate returns the Validate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockItemsStockItemId200ResponseDataAttributes) GetValidate() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Validate +} + +// GetValidateOk returns a tuple with the Validate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockItemsStockItemId200ResponseDataAttributes) GetValidateOk() (*interface{}, bool) { + if o == nil || IsNil(o.Validate) { + return nil, false + } + return &o.Validate, true +} + +// HasValidate returns a boolean if a field has been set. +func (o *PATCHStockItemsStockItemId200ResponseDataAttributes) HasValidate() bool { + if o != nil && IsNil(o.Validate) { + return true + } + + return false +} + +// SetValidate gets a reference to the given interface{} and assigns it to the Validate field. +func (o *PATCHStockItemsStockItemId200ResponseDataAttributes) SetValidate(v interface{}) { + o.Validate = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHStockItemsStockItemId200ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -230,6 +265,9 @@ func (o PATCHStockItemsStockItemId200ResponseDataAttributes) ToMap() (map[string if o.Quantity != nil { toSerialize["quantity"] = o.Quantity } + if o.Validate != nil { + toSerialize["_validate"] = o.Validate + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_patch_stock_line_items_stock_line_item_id_200_response.go b/api/model_patch_stock_line_items_stock_line_item_id_200_response.go new file mode 100644 index 00000000..98622c2e --- /dev/null +++ b/api/model_patch_stock_line_items_stock_line_item_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHStockLineItemsStockLineItemId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHStockLineItemsStockLineItemId200Response{} + +// PATCHStockLineItemsStockLineItemId200Response struct for PATCHStockLineItemsStockLineItemId200Response +type PATCHStockLineItemsStockLineItemId200Response struct { + Data *PATCHStockLineItemsStockLineItemId200ResponseData `json:"data,omitempty"` +} + +// NewPATCHStockLineItemsStockLineItemId200Response instantiates a new PATCHStockLineItemsStockLineItemId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHStockLineItemsStockLineItemId200Response() *PATCHStockLineItemsStockLineItemId200Response { + this := PATCHStockLineItemsStockLineItemId200Response{} + return &this +} + +// NewPATCHStockLineItemsStockLineItemId200ResponseWithDefaults instantiates a new PATCHStockLineItemsStockLineItemId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHStockLineItemsStockLineItemId200ResponseWithDefaults() *PATCHStockLineItemsStockLineItemId200Response { + this := PATCHStockLineItemsStockLineItemId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PATCHStockLineItemsStockLineItemId200Response) GetData() PATCHStockLineItemsStockLineItemId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret PATCHStockLineItemsStockLineItemId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHStockLineItemsStockLineItemId200Response) GetDataOk() (*PATCHStockLineItemsStockLineItemId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PATCHStockLineItemsStockLineItemId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given PATCHStockLineItemsStockLineItemId200ResponseData and assigns it to the Data field. +func (o *PATCHStockLineItemsStockLineItemId200Response) SetData(v PATCHStockLineItemsStockLineItemId200ResponseData) { + o.Data = &v +} + +func (o PATCHStockLineItemsStockLineItemId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHStockLineItemsStockLineItemId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePATCHStockLineItemsStockLineItemId200Response struct { + value *PATCHStockLineItemsStockLineItemId200Response + isSet bool +} + +func (v NullablePATCHStockLineItemsStockLineItemId200Response) Get() *PATCHStockLineItemsStockLineItemId200Response { + return v.value +} + +func (v *NullablePATCHStockLineItemsStockLineItemId200Response) Set(val *PATCHStockLineItemsStockLineItemId200Response) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHStockLineItemsStockLineItemId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHStockLineItemsStockLineItemId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHStockLineItemsStockLineItemId200Response(val *PATCHStockLineItemsStockLineItemId200Response) *NullablePATCHStockLineItemsStockLineItemId200Response { + return &NullablePATCHStockLineItemsStockLineItemId200Response{value: val, isSet: true} +} + +func (v NullablePATCHStockLineItemsStockLineItemId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHStockLineItemsStockLineItemId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_stock_line_items_stock_line_item_id_200_response_data.go b/api/model_patch_stock_line_items_stock_line_item_id_200_response_data.go new file mode 100644 index 00000000..ab02bb7a --- /dev/null +++ b/api/model_patch_stock_line_items_stock_line_item_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHStockLineItemsStockLineItemId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHStockLineItemsStockLineItemId200ResponseData{} + +// PATCHStockLineItemsStockLineItemId200ResponseData struct for PATCHStockLineItemsStockLineItemId200ResponseData +type PATCHStockLineItemsStockLineItemId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTStockLineItems201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPATCHStockLineItemsStockLineItemId200ResponseData instantiates a new PATCHStockLineItemsStockLineItemId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHStockLineItemsStockLineItemId200ResponseData() *PATCHStockLineItemsStockLineItemId200ResponseData { + this := PATCHStockLineItemsStockLineItemId200ResponseData{} + return &this +} + +// NewPATCHStockLineItemsStockLineItemId200ResponseDataWithDefaults instantiates a new PATCHStockLineItemsStockLineItemId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHStockLineItemsStockLineItemId200ResponseDataWithDefaults() *PATCHStockLineItemsStockLineItemId200ResponseData { + this := PATCHStockLineItemsStockLineItemId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetAttributes() PATCHStockLineItemsStockLineItemId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret PATCHStockLineItemsStockLineItemId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetAttributesOk() (*PATCHStockLineItemsStockLineItemId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given PATCHStockLineItemsStockLineItemId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) SetAttributes(v PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetRelationships() POSTStockLineItems201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTStockLineItems201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) GetRelationshipsOk() (*POSTStockLineItems201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTStockLineItems201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHStockLineItemsStockLineItemId200ResponseData) SetRelationships(v POSTStockLineItems201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o PATCHStockLineItemsStockLineItemId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHStockLineItemsStockLineItemId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePATCHStockLineItemsStockLineItemId200ResponseData struct { + value *PATCHStockLineItemsStockLineItemId200ResponseData + isSet bool +} + +func (v NullablePATCHStockLineItemsStockLineItemId200ResponseData) Get() *PATCHStockLineItemsStockLineItemId200ResponseData { + return v.value +} + +func (v *NullablePATCHStockLineItemsStockLineItemId200ResponseData) Set(val *PATCHStockLineItemsStockLineItemId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHStockLineItemsStockLineItemId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHStockLineItemsStockLineItemId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHStockLineItemsStockLineItemId200ResponseData(val *PATCHStockLineItemsStockLineItemId200ResponseData) *NullablePATCHStockLineItemsStockLineItemId200ResponseData { + return &NullablePATCHStockLineItemsStockLineItemId200ResponseData{value: val, isSet: true} +} + +func (v NullablePATCHStockLineItemsStockLineItemId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHStockLineItemsStockLineItemId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_stock_line_items_stock_line_item_id_200_response_data_attributes.go b/api/model_patch_stock_line_items_stock_line_item_id_200_response_data_attributes.go new file mode 100644 index 00000000..05b3ea45 --- /dev/null +++ b/api/model_patch_stock_line_items_stock_line_item_id_200_response_data_attributes.go @@ -0,0 +1,393 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHStockLineItemsStockLineItemId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHStockLineItemsStockLineItemId200ResponseDataAttributes{} + +// PATCHStockLineItemsStockLineItemId200ResponseDataAttributes struct for PATCHStockLineItemsStockLineItemId200ResponseDataAttributes +type PATCHStockLineItemsStockLineItemId200ResponseDataAttributes struct { + // The code of the associated SKU. + SkuCode interface{} `json:"sku_code,omitempty"` + // The line item quantity. + Quantity interface{} `json:"quantity,omitempty"` + // Send this attribute if you want to automatically reserve the stock for this stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels. + ReserveStock interface{} `json:"_reserve_stock,omitempty"` + // Send this attribute if you want to automatically destroy the stock reservation for this stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels. + ReleaseStock interface{} `json:"_release_stock,omitempty"` + // Send this attribute if you want to automatically decrement and release the stock this stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels. + DecrementStock interface{} `json:"_decrement_stock,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPATCHStockLineItemsStockLineItemId200ResponseDataAttributes instantiates a new PATCHStockLineItemsStockLineItemId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHStockLineItemsStockLineItemId200ResponseDataAttributes() *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes { + this := PATCHStockLineItemsStockLineItemId200ResponseDataAttributes{} + return &this +} + +// NewPATCHStockLineItemsStockLineItemId200ResponseDataAttributesWithDefaults instantiates a new PATCHStockLineItemsStockLineItemId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHStockLineItemsStockLineItemId200ResponseDataAttributesWithDefaults() *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes { + this := PATCHStockLineItemsStockLineItemId200ResponseDataAttributes{} + return &this +} + +// GetSkuCode returns the SkuCode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetSkuCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.SkuCode +} + +// GetSkuCodeOk returns a tuple with the SkuCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetSkuCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.SkuCode) { + return nil, false + } + return &o.SkuCode, true +} + +// HasSkuCode returns a boolean if a field has been set. +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) HasSkuCode() bool { + if o != nil && IsNil(o.SkuCode) { + return true + } + + return false +} + +// SetSkuCode gets a reference to the given interface{} and assigns it to the SkuCode field. +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetSkuCode(v interface{}) { + o.SkuCode = v +} + +// GetQuantity returns the Quantity field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetQuantity() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Quantity +} + +// GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetQuantityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Quantity) { + return nil, false + } + return &o.Quantity, true +} + +// HasQuantity returns a boolean if a field has been set. +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) HasQuantity() bool { + if o != nil && IsNil(o.Quantity) { + return true + } + + return false +} + +// SetQuantity gets a reference to the given interface{} and assigns it to the Quantity field. +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetQuantity(v interface{}) { + o.Quantity = v +} + +// GetReserveStock returns the ReserveStock field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetReserveStock() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReserveStock +} + +// GetReserveStockOk returns a tuple with the ReserveStock field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetReserveStockOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReserveStock) { + return nil, false + } + return &o.ReserveStock, true +} + +// HasReserveStock returns a boolean if a field has been set. +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) HasReserveStock() bool { + if o != nil && IsNil(o.ReserveStock) { + return true + } + + return false +} + +// SetReserveStock gets a reference to the given interface{} and assigns it to the ReserveStock field. +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetReserveStock(v interface{}) { + o.ReserveStock = v +} + +// GetReleaseStock returns the ReleaseStock field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetReleaseStock() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReleaseStock +} + +// GetReleaseStockOk returns a tuple with the ReleaseStock field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetReleaseStockOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReleaseStock) { + return nil, false + } + return &o.ReleaseStock, true +} + +// HasReleaseStock returns a boolean if a field has been set. +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) HasReleaseStock() bool { + if o != nil && IsNil(o.ReleaseStock) { + return true + } + + return false +} + +// SetReleaseStock gets a reference to the given interface{} and assigns it to the ReleaseStock field. +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetReleaseStock(v interface{}) { + o.ReleaseStock = v +} + +// GetDecrementStock returns the DecrementStock field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetDecrementStock() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DecrementStock +} + +// GetDecrementStockOk returns a tuple with the DecrementStock field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetDecrementStockOk() (*interface{}, bool) { + if o == nil || IsNil(o.DecrementStock) { + return nil, false + } + return &o.DecrementStock, true +} + +// HasDecrementStock returns a boolean if a field has been set. +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) HasDecrementStock() bool { + if o != nil && IsNil(o.DecrementStock) { + return true + } + + return false +} + +// SetDecrementStock gets a reference to the given interface{} and assigns it to the DecrementStock field. +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetDecrementStock(v interface{}) { + o.DecrementStock = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.SkuCode != nil { + toSerialize["sku_code"] = o.SkuCode + } + if o.Quantity != nil { + toSerialize["quantity"] = o.Quantity + } + if o.ReserveStock != nil { + toSerialize["_reserve_stock"] = o.ReserveStock + } + if o.ReleaseStock != nil { + toSerialize["_release_stock"] = o.ReleaseStock + } + if o.DecrementStock != nil { + toSerialize["_decrement_stock"] = o.DecrementStock + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePATCHStockLineItemsStockLineItemId200ResponseDataAttributes struct { + value *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes + isSet bool +} + +func (v NullablePATCHStockLineItemsStockLineItemId200ResponseDataAttributes) Get() *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes { + return v.value +} + +func (v *NullablePATCHStockLineItemsStockLineItemId200ResponseDataAttributes) Set(val *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHStockLineItemsStockLineItemId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHStockLineItemsStockLineItemId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHStockLineItemsStockLineItemId200ResponseDataAttributes(val *PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) *NullablePATCHStockLineItemsStockLineItemId200ResponseDataAttributes { + return &NullablePATCHStockLineItemsStockLineItemId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePATCHStockLineItemsStockLineItemId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHStockLineItemsStockLineItemId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_stock_locations_stock_location_id_200_response.go b/api/model_patch_stock_locations_stock_location_id_200_response.go index 591a8e36..01cc721d 100644 --- a/api/model_patch_stock_locations_stock_location_id_200_response.go +++ b/api/model_patch_stock_locations_stock_location_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_stock_locations_stock_location_id_200_response_data.go b/api/model_patch_stock_locations_stock_location_id_200_response_data.go index 2ea8ddeb..81d12f31 100644 --- a/api/model_patch_stock_locations_stock_location_id_200_response_data.go +++ b/api/model_patch_stock_locations_stock_location_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_stock_locations_stock_location_id_200_response_data_attributes.go b/api/model_patch_stock_locations_stock_location_id_200_response_data_attributes.go index 8b7484c4..b8258dfc 100644 --- a/api/model_patch_stock_locations_stock_location_id_200_response_data_attributes.go +++ b/api/model_patch_stock_locations_stock_location_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,13 +22,15 @@ var _ MappedNullable = &PATCHStockLocationsStockLocationId200ResponseDataAttribu type PATCHStockLocationsStockLocationId200ResponseDataAttributes struct { // The stock location's internal name. Name interface{} `json:"name,omitempty"` - // The shipping label format for this stock location. Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG' + // A string that you can use to identify the stock location (must be unique within the environment). + Code interface{} `json:"code,omitempty"` + // The shipping label format for this stock location. Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG'. LabelFormat interface{} `json:"label_format,omitempty"` // Flag it if you want to skip the electronic invoice creation when generating the customs info for this stock location shipments. SuppressEtd interface{} `json:"suppress_etd,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -84,6 +86,39 @@ func (o *PATCHStockLocationsStockLocationId200ResponseDataAttributes) SetName(v o.Name = v } +// GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockLocationsStockLocationId200ResponseDataAttributes) GetCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockLocationsStockLocationId200ResponseDataAttributes) GetCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return &o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *PATCHStockLocationsStockLocationId200ResponseDataAttributes) HasCode() bool { + if o != nil && IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given interface{} and assigns it to the Code field. +func (o *PATCHStockLocationsStockLocationId200ResponseDataAttributes) SetCode(v interface{}) { + o.Code = v +} + // GetLabelFormat returns the LabelFormat field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHStockLocationsStockLocationId200ResponseDataAttributes) GetLabelFormat() interface{} { if o == nil { @@ -262,6 +297,9 @@ func (o PATCHStockLocationsStockLocationId200ResponseDataAttributes) ToMap() (ma if o.Name != nil { toSerialize["name"] = o.Name } + if o.Code != nil { + toSerialize["code"] = o.Code + } if o.LabelFormat != nil { toSerialize["label_format"] = o.LabelFormat } diff --git a/api/model_patch_stock_reservations_stock_reservation_id_200_response.go b/api/model_patch_stock_reservations_stock_reservation_id_200_response.go new file mode 100644 index 00000000..10083be8 --- /dev/null +++ b/api/model_patch_stock_reservations_stock_reservation_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHStockReservationsStockReservationId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHStockReservationsStockReservationId200Response{} + +// PATCHStockReservationsStockReservationId200Response struct for PATCHStockReservationsStockReservationId200Response +type PATCHStockReservationsStockReservationId200Response struct { + Data *PATCHStockReservationsStockReservationId200ResponseData `json:"data,omitempty"` +} + +// NewPATCHStockReservationsStockReservationId200Response instantiates a new PATCHStockReservationsStockReservationId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHStockReservationsStockReservationId200Response() *PATCHStockReservationsStockReservationId200Response { + this := PATCHStockReservationsStockReservationId200Response{} + return &this +} + +// NewPATCHStockReservationsStockReservationId200ResponseWithDefaults instantiates a new PATCHStockReservationsStockReservationId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHStockReservationsStockReservationId200ResponseWithDefaults() *PATCHStockReservationsStockReservationId200Response { + this := PATCHStockReservationsStockReservationId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PATCHStockReservationsStockReservationId200Response) GetData() PATCHStockReservationsStockReservationId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret PATCHStockReservationsStockReservationId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHStockReservationsStockReservationId200Response) GetDataOk() (*PATCHStockReservationsStockReservationId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PATCHStockReservationsStockReservationId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given PATCHStockReservationsStockReservationId200ResponseData and assigns it to the Data field. +func (o *PATCHStockReservationsStockReservationId200Response) SetData(v PATCHStockReservationsStockReservationId200ResponseData) { + o.Data = &v +} + +func (o PATCHStockReservationsStockReservationId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHStockReservationsStockReservationId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePATCHStockReservationsStockReservationId200Response struct { + value *PATCHStockReservationsStockReservationId200Response + isSet bool +} + +func (v NullablePATCHStockReservationsStockReservationId200Response) Get() *PATCHStockReservationsStockReservationId200Response { + return v.value +} + +func (v *NullablePATCHStockReservationsStockReservationId200Response) Set(val *PATCHStockReservationsStockReservationId200Response) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHStockReservationsStockReservationId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHStockReservationsStockReservationId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHStockReservationsStockReservationId200Response(val *PATCHStockReservationsStockReservationId200Response) *NullablePATCHStockReservationsStockReservationId200Response { + return &NullablePATCHStockReservationsStockReservationId200Response{value: val, isSet: true} +} + +func (v NullablePATCHStockReservationsStockReservationId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHStockReservationsStockReservationId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_stock_reservations_stock_reservation_id_200_response_data.go b/api/model_patch_stock_reservations_stock_reservation_id_200_response_data.go new file mode 100644 index 00000000..d9ce3a9f --- /dev/null +++ b/api/model_patch_stock_reservations_stock_reservation_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHStockReservationsStockReservationId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHStockReservationsStockReservationId200ResponseData{} + +// PATCHStockReservationsStockReservationId200ResponseData struct for PATCHStockReservationsStockReservationId200ResponseData +type PATCHStockReservationsStockReservationId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHStockReservationsStockReservationId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTStockReservations201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPATCHStockReservationsStockReservationId200ResponseData instantiates a new PATCHStockReservationsStockReservationId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHStockReservationsStockReservationId200ResponseData() *PATCHStockReservationsStockReservationId200ResponseData { + this := PATCHStockReservationsStockReservationId200ResponseData{} + return &this +} + +// NewPATCHStockReservationsStockReservationId200ResponseDataWithDefaults instantiates a new PATCHStockReservationsStockReservationId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHStockReservationsStockReservationId200ResponseDataWithDefaults() *PATCHStockReservationsStockReservationId200ResponseData { + this := PATCHStockReservationsStockReservationId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockReservationsStockReservationId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockReservationsStockReservationId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PATCHStockReservationsStockReservationId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *PATCHStockReservationsStockReservationId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockReservationsStockReservationId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockReservationsStockReservationId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PATCHStockReservationsStockReservationId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *PATCHStockReservationsStockReservationId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PATCHStockReservationsStockReservationId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHStockReservationsStockReservationId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PATCHStockReservationsStockReservationId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *PATCHStockReservationsStockReservationId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *PATCHStockReservationsStockReservationId200ResponseData) GetAttributes() PATCHStockReservationsStockReservationId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret PATCHStockReservationsStockReservationId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHStockReservationsStockReservationId200ResponseData) GetAttributesOk() (*PATCHStockReservationsStockReservationId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *PATCHStockReservationsStockReservationId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given PATCHStockReservationsStockReservationId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *PATCHStockReservationsStockReservationId200ResponseData) SetAttributes(v PATCHStockReservationsStockReservationId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PATCHStockReservationsStockReservationId200ResponseData) GetRelationships() POSTStockReservations201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTStockReservations201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHStockReservationsStockReservationId200ResponseData) GetRelationshipsOk() (*POSTStockReservations201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PATCHStockReservationsStockReservationId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTStockReservations201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHStockReservationsStockReservationId200ResponseData) SetRelationships(v POSTStockReservations201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o PATCHStockReservationsStockReservationId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHStockReservationsStockReservationId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePATCHStockReservationsStockReservationId200ResponseData struct { + value *PATCHStockReservationsStockReservationId200ResponseData + isSet bool +} + +func (v NullablePATCHStockReservationsStockReservationId200ResponseData) Get() *PATCHStockReservationsStockReservationId200ResponseData { + return v.value +} + +func (v *NullablePATCHStockReservationsStockReservationId200ResponseData) Set(val *PATCHStockReservationsStockReservationId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHStockReservationsStockReservationId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHStockReservationsStockReservationId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHStockReservationsStockReservationId200ResponseData(val *PATCHStockReservationsStockReservationId200ResponseData) *NullablePATCHStockReservationsStockReservationId200ResponseData { + return &NullablePATCHStockReservationsStockReservationId200ResponseData{value: val, isSet: true} +} + +func (v NullablePATCHStockReservationsStockReservationId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHStockReservationsStockReservationId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_stock_reservations_stock_reservation_id_200_response_data_attributes.go b/api/model_patch_stock_reservations_stock_reservation_id_200_response_data_attributes.go new file mode 100644 index 00000000..0b7edd8b --- /dev/null +++ b/api/model_patch_stock_reservations_stock_reservation_id_200_response_data_attributes.go @@ -0,0 +1,279 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHStockReservationsStockReservationId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHStockReservationsStockReservationId200ResponseDataAttributes{} + +// PATCHStockReservationsStockReservationId200ResponseDataAttributes struct for PATCHStockReservationsStockReservationId200ResponseDataAttributes +type PATCHStockReservationsStockReservationId200ResponseDataAttributes struct { + // The stock reservation quantity. + Quantity interface{} `json:"quantity,omitempty"` + // Send this attribute if you want to mark this stock reservation as pending. + Pending interface{} `json:"_pending,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPATCHStockReservationsStockReservationId200ResponseDataAttributes instantiates a new PATCHStockReservationsStockReservationId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHStockReservationsStockReservationId200ResponseDataAttributes() *PATCHStockReservationsStockReservationId200ResponseDataAttributes { + this := PATCHStockReservationsStockReservationId200ResponseDataAttributes{} + return &this +} + +// NewPATCHStockReservationsStockReservationId200ResponseDataAttributesWithDefaults instantiates a new PATCHStockReservationsStockReservationId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHStockReservationsStockReservationId200ResponseDataAttributesWithDefaults() *PATCHStockReservationsStockReservationId200ResponseDataAttributes { + this := PATCHStockReservationsStockReservationId200ResponseDataAttributes{} + return &this +} + +// GetQuantity returns the Quantity field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetQuantity() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Quantity +} + +// GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetQuantityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Quantity) { + return nil, false + } + return &o.Quantity, true +} + +// HasQuantity returns a boolean if a field has been set. +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) HasQuantity() bool { + if o != nil && IsNil(o.Quantity) { + return true + } + + return false +} + +// SetQuantity gets a reference to the given interface{} and assigns it to the Quantity field. +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) SetQuantity(v interface{}) { + o.Quantity = v +} + +// GetPending returns the Pending field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetPending() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Pending +} + +// GetPendingOk returns a tuple with the Pending field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetPendingOk() (*interface{}, bool) { + if o == nil || IsNil(o.Pending) { + return nil, false + } + return &o.Pending, true +} + +// HasPending returns a boolean if a field has been set. +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) HasPending() bool { + if o != nil && IsNil(o.Pending) { + return true + } + + return false +} + +// SetPending gets a reference to the given interface{} and assigns it to the Pending field. +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) SetPending(v interface{}) { + o.Pending = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *PATCHStockReservationsStockReservationId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o PATCHStockReservationsStockReservationId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHStockReservationsStockReservationId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Quantity != nil { + toSerialize["quantity"] = o.Quantity + } + if o.Pending != nil { + toSerialize["_pending"] = o.Pending + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePATCHStockReservationsStockReservationId200ResponseDataAttributes struct { + value *PATCHStockReservationsStockReservationId200ResponseDataAttributes + isSet bool +} + +func (v NullablePATCHStockReservationsStockReservationId200ResponseDataAttributes) Get() *PATCHStockReservationsStockReservationId200ResponseDataAttributes { + return v.value +} + +func (v *NullablePATCHStockReservationsStockReservationId200ResponseDataAttributes) Set(val *PATCHStockReservationsStockReservationId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHStockReservationsStockReservationId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHStockReservationsStockReservationId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHStockReservationsStockReservationId200ResponseDataAttributes(val *PATCHStockReservationsStockReservationId200ResponseDataAttributes) *NullablePATCHStockReservationsStockReservationId200ResponseDataAttributes { + return &NullablePATCHStockReservationsStockReservationId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePATCHStockReservationsStockReservationId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHStockReservationsStockReservationId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_stock_transfers_stock_transfer_id_200_response.go b/api/model_patch_stock_transfers_stock_transfer_id_200_response.go index 4df0ebda..8a5d241d 100644 --- a/api/model_patch_stock_transfers_stock_transfer_id_200_response.go +++ b/api/model_patch_stock_transfers_stock_transfer_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_stock_transfers_stock_transfer_id_200_response_data.go b/api/model_patch_stock_transfers_stock_transfer_id_200_response_data.go index c56ed758..4cd8b66c 100644 --- a/api/model_patch_stock_transfers_stock_transfer_id_200_response_data.go +++ b/api/model_patch_stock_transfers_stock_transfer_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_stock_transfers_stock_transfer_id_200_response_data_attributes.go b/api/model_patch_stock_transfers_stock_transfer_id_200_response_data_attributes.go index e069135c..5932cb99 100644 --- a/api/model_patch_stock_transfers_stock_transfer_id_200_response_data_attributes.go +++ b/api/model_patch_stock_transfers_stock_transfer_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,10 +20,14 @@ var _ MappedNullable = &PATCHStockTransfersStockTransferId200ResponseDataAttribu // PATCHStockTransfersStockTransferId200ResponseDataAttributes struct for PATCHStockTransfersStockTransferId200ResponseDataAttributes type PATCHStockTransfersStockTransferId200ResponseDataAttributes struct { + // Unique identifier for the stock transfer (numeric). + Number interface{} `json:"number,omitempty"` // The code of the associated SKU. SkuCode interface{} `json:"sku_code,omitempty"` // Send this attribute if you want to mark this stock transfer as upcoming. Upcoming interface{} `json:"_upcoming,omitempty"` + // Send this attribute if you want to put this stock transfer on hold. + OnHold interface{} `json:"_on_hold,omitempty"` // Send this attribute if you want to start picking this stock transfer. Picking interface{} `json:"_picking,omitempty"` // Send this attribute if you want to mark this stock transfer as in transit. @@ -34,7 +38,7 @@ type PATCHStockTransfersStockTransferId200ResponseDataAttributes struct { Cancel interface{} `json:"_cancel,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -57,6 +61,39 @@ func NewPATCHStockTransfersStockTransferId200ResponseDataAttributesWithDefaults( return &this } +// GetNumber returns the Number field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) GetNumber() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Number +} + +// GetNumberOk returns a tuple with the Number field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) GetNumberOk() (*interface{}, bool) { + if o == nil || IsNil(o.Number) { + return nil, false + } + return &o.Number, true +} + +// HasNumber returns a boolean if a field has been set. +func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) HasNumber() bool { + if o != nil && IsNil(o.Number) { + return true + } + + return false +} + +// SetNumber gets a reference to the given interface{} and assigns it to the Number field. +func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) SetNumber(v interface{}) { + o.Number = v +} + // GetSkuCode returns the SkuCode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) GetSkuCode() interface{} { if o == nil { @@ -123,6 +160,39 @@ func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) SetUpcomin o.Upcoming = v } +// GetOnHold returns the OnHold field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) GetOnHold() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.OnHold +} + +// GetOnHoldOk returns a tuple with the OnHold field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) GetOnHoldOk() (*interface{}, bool) { + if o == nil || IsNil(o.OnHold) { + return nil, false + } + return &o.OnHold, true +} + +// HasOnHold returns a boolean if a field has been set. +func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) HasOnHold() bool { + if o != nil && IsNil(o.OnHold) { + return true + } + + return false +} + +// SetOnHold gets a reference to the given interface{} and assigns it to the OnHold field. +func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) SetOnHold(v interface{}) { + o.OnHold = v +} + // GetPicking returns the Picking field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHStockTransfersStockTransferId200ResponseDataAttributes) GetPicking() interface{} { if o == nil { @@ -364,12 +434,18 @@ func (o PATCHStockTransfersStockTransferId200ResponseDataAttributes) MarshalJSON func (o PATCHStockTransfersStockTransferId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Number != nil { + toSerialize["number"] = o.Number + } if o.SkuCode != nil { toSerialize["sku_code"] = o.SkuCode } if o.Upcoming != nil { toSerialize["_upcoming"] = o.Upcoming } + if o.OnHold != nil { + toSerialize["_on_hold"] = o.OnHold + } if o.Picking != nil { toSerialize["_picking"] = o.Picking } diff --git a/api/model_patch_stripe_gateways_stripe_gateway_id_200_response.go b/api/model_patch_stripe_gateways_stripe_gateway_id_200_response.go index 8b3052be..f45cc489 100644 --- a/api/model_patch_stripe_gateways_stripe_gateway_id_200_response.go +++ b/api/model_patch_stripe_gateways_stripe_gateway_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_stripe_gateways_stripe_gateway_id_200_response_data.go b/api/model_patch_stripe_gateways_stripe_gateway_id_200_response_data.go index f6efc155..6b7d15b9 100644 --- a/api/model_patch_stripe_gateways_stripe_gateway_id_200_response_data.go +++ b/api/model_patch_stripe_gateways_stripe_gateway_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_stripe_gateways_stripe_gateway_id_200_response_data_attributes.go b/api/model_patch_stripe_gateways_stripe_gateway_id_200_response_data_attributes.go index f119032b..d302c59f 100644 --- a/api/model_patch_stripe_gateways_stripe_gateway_id_200_response_data_attributes.go +++ b/api/model_patch_stripe_gateways_stripe_gateway_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,10 +24,12 @@ type PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes struct { Name interface{} `json:"name,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` + // The account (if any) for which the funds of the PaymentIntent are intended. + ConnectedAccount interface{} `json:"connected_account,omitempty"` // Indicates if the gateway will accept payment methods enabled in the Stripe dashboard. AutoPayments interface{} `json:"auto_payments,omitempty"` } @@ -181,6 +183,39 @@ func (o *PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes) SetMetadat o.Metadata = v } +// GetConnectedAccount returns the ConnectedAccount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes) GetConnectedAccount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ConnectedAccount +} + +// GetConnectedAccountOk returns a tuple with the ConnectedAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes) GetConnectedAccountOk() (*interface{}, bool) { + if o == nil || IsNil(o.ConnectedAccount) { + return nil, false + } + return &o.ConnectedAccount, true +} + +// HasConnectedAccount returns a boolean if a field has been set. +func (o *PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes) HasConnectedAccount() bool { + if o != nil && IsNil(o.ConnectedAccount) { + return true + } + + return false +} + +// SetConnectedAccount gets a reference to the given interface{} and assigns it to the ConnectedAccount field. +func (o *PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes) SetConnectedAccount(v interface{}) { + o.ConnectedAccount = v +} + // GetAutoPayments returns the AutoPayments field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes) GetAutoPayments() interface{} { if o == nil { @@ -236,6 +271,9 @@ func (o PATCHStripeGatewaysStripeGatewayId200ResponseDataAttributes) ToMap() (ma if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } + if o.ConnectedAccount != nil { + toSerialize["connected_account"] = o.ConnectedAccount + } if o.AutoPayments != nil { toSerialize["auto_payments"] = o.AutoPayments } diff --git a/api/model_patch_stripe_payments_stripe_payment_id_200_response.go b/api/model_patch_stripe_payments_stripe_payment_id_200_response.go index ac459ef6..e4ff9566 100644 --- a/api/model_patch_stripe_payments_stripe_payment_id_200_response.go +++ b/api/model_patch_stripe_payments_stripe_payment_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_stripe_payments_stripe_payment_id_200_response_data.go b/api/model_patch_stripe_payments_stripe_payment_id_200_response_data.go index 8de31c4b..e672baa2 100644 --- a/api/model_patch_stripe_payments_stripe_payment_id_200_response_data.go +++ b/api/model_patch_stripe_payments_stripe_payment_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_stripe_payments_stripe_payment_id_200_response_data_attributes.go b/api/model_patch_stripe_payments_stripe_payment_id_200_response_data_attributes.go index 9b423eb9..5a87f2c0 100644 --- a/api/model_patch_stripe_payments_stripe_payment_id_200_response_data_attributes.go +++ b/api/model_patch_stripe_payments_stripe_payment_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,13 +20,17 @@ var _ MappedNullable = &PATCHStripePaymentsStripePaymentId200ResponseDataAttribu // PATCHStripePaymentsStripePaymentId200ResponseDataAttributes struct for PATCHStripePaymentsStripePaymentId200ResponseDataAttributes type PATCHStripePaymentsStripePaymentId200ResponseDataAttributes struct { - // Stripe payment options: 'customer', 'payment_method', etc. Check Stripe payment intent API for more details. + // Stripe payment options: 'customer', 'payment_method', 'return_url', etc. Check Stripe payment intent API for more details. Options interface{} `json:"options,omitempty"` + // The URL to return to when a redirect payment is completed. + ReturnUrl interface{} `json:"return_url,omitempty"` + // Send this attribute if you want to update the created payment intent with fresh order data. + Update interface{} `json:"_update,omitempty"` // Send this attribute if you want to refresh the payment status, can be used as webhooks fallback logic. Refresh interface{} `json:"_refresh,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -82,6 +86,72 @@ func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) SetOptions o.Options = v } +// GetReturnUrl returns the ReturnUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) GetReturnUrl() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReturnUrl +} + +// GetReturnUrlOk returns a tuple with the ReturnUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) GetReturnUrlOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReturnUrl) { + return nil, false + } + return &o.ReturnUrl, true +} + +// HasReturnUrl returns a boolean if a field has been set. +func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) HasReturnUrl() bool { + if o != nil && IsNil(o.ReturnUrl) { + return true + } + + return false +} + +// SetReturnUrl gets a reference to the given interface{} and assigns it to the ReturnUrl field. +func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) SetReturnUrl(v interface{}) { + o.ReturnUrl = v +} + +// GetUpdate returns the Update field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) GetUpdate() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Update +} + +// GetUpdateOk returns a tuple with the Update field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) GetUpdateOk() (*interface{}, bool) { + if o == nil || IsNil(o.Update) { + return nil, false + } + return &o.Update, true +} + +// HasUpdate returns a boolean if a field has been set. +func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) HasUpdate() bool { + if o != nil && IsNil(o.Update) { + return true + } + + return false +} + +// SetUpdate gets a reference to the given interface{} and assigns it to the Update field. +func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) SetUpdate(v interface{}) { + o.Update = v +} + // GetRefresh returns the Refresh field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) GetRefresh() interface{} { if o == nil { @@ -227,6 +297,12 @@ func (o PATCHStripePaymentsStripePaymentId200ResponseDataAttributes) ToMap() (ma if o.Options != nil { toSerialize["options"] = o.Options } + if o.ReturnUrl != nil { + toSerialize["return_url"] = o.ReturnUrl + } + if o.Update != nil { + toSerialize["_update"] = o.Update + } if o.Refresh != nil { toSerialize["_refresh"] = o.Refresh } diff --git a/api/model_patch_subscription_models_subscription_model_id_200_response.go b/api/model_patch_subscription_models_subscription_model_id_200_response.go index 20e5b2be..0c8c8223 100644 --- a/api/model_patch_subscription_models_subscription_model_id_200_response.go +++ b/api/model_patch_subscription_models_subscription_model_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_subscription_models_subscription_model_id_200_response_data.go b/api/model_patch_subscription_models_subscription_model_id_200_response_data.go index a620e3af..b09bf8db 100644 --- a/api/model_patch_subscription_models_subscription_model_id_200_response_data.go +++ b/api/model_patch_subscription_models_subscription_model_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_subscription_models_subscription_model_id_200_response_data_attributes.go b/api/model_patch_subscription_models_subscription_model_id_200_response_data_attributes.go index 2ed820cf..fedd37de 100644 --- a/api/model_patch_subscription_models_subscription_model_id_200_response_data_attributes.go +++ b/api/model_patch_subscription_models_subscription_model_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -32,7 +32,7 @@ type PATCHSubscriptionModelsSubscriptionModelId200ResponseDataAttributes struct AutoCancel interface{} `json:"auto_cancel,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_tags_tag_id_200_response.go b/api/model_patch_tags_tag_id_200_response.go new file mode 100644 index 00000000..7e667c81 --- /dev/null +++ b/api/model_patch_tags_tag_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHTagsTagId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHTagsTagId200Response{} + +// PATCHTagsTagId200Response struct for PATCHTagsTagId200Response +type PATCHTagsTagId200Response struct { + Data *PATCHTagsTagId200ResponseData `json:"data,omitempty"` +} + +// NewPATCHTagsTagId200Response instantiates a new PATCHTagsTagId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHTagsTagId200Response() *PATCHTagsTagId200Response { + this := PATCHTagsTagId200Response{} + return &this +} + +// NewPATCHTagsTagId200ResponseWithDefaults instantiates a new PATCHTagsTagId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHTagsTagId200ResponseWithDefaults() *PATCHTagsTagId200Response { + this := PATCHTagsTagId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PATCHTagsTagId200Response) GetData() PATCHTagsTagId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret PATCHTagsTagId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHTagsTagId200Response) GetDataOk() (*PATCHTagsTagId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PATCHTagsTagId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given PATCHTagsTagId200ResponseData and assigns it to the Data field. +func (o *PATCHTagsTagId200Response) SetData(v PATCHTagsTagId200ResponseData) { + o.Data = &v +} + +func (o PATCHTagsTagId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHTagsTagId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePATCHTagsTagId200Response struct { + value *PATCHTagsTagId200Response + isSet bool +} + +func (v NullablePATCHTagsTagId200Response) Get() *PATCHTagsTagId200Response { + return v.value +} + +func (v *NullablePATCHTagsTagId200Response) Set(val *PATCHTagsTagId200Response) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHTagsTagId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHTagsTagId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHTagsTagId200Response(val *PATCHTagsTagId200Response) *NullablePATCHTagsTagId200Response { + return &NullablePATCHTagsTagId200Response{value: val, isSet: true} +} + +func (v NullablePATCHTagsTagId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHTagsTagId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_tags_tag_id_200_response_data.go b/api/model_patch_tags_tag_id_200_response_data.go new file mode 100644 index 00000000..ac506c42 --- /dev/null +++ b/api/model_patch_tags_tag_id_200_response_data.go @@ -0,0 +1,274 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHTagsTagId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHTagsTagId200ResponseData{} + +// PATCHTagsTagId200ResponseData struct for PATCHTagsTagId200ResponseData +type PATCHTagsTagId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHTagsTagId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships interface{} `json:"relationships,omitempty"` +} + +// NewPATCHTagsTagId200ResponseData instantiates a new PATCHTagsTagId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHTagsTagId200ResponseData() *PATCHTagsTagId200ResponseData { + this := PATCHTagsTagId200ResponseData{} + return &this +} + +// NewPATCHTagsTagId200ResponseDataWithDefaults instantiates a new PATCHTagsTagId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHTagsTagId200ResponseDataWithDefaults() *PATCHTagsTagId200ResponseData { + this := PATCHTagsTagId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHTagsTagId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHTagsTagId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PATCHTagsTagId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *PATCHTagsTagId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHTagsTagId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHTagsTagId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PATCHTagsTagId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *PATCHTagsTagId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PATCHTagsTagId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHTagsTagId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PATCHTagsTagId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *PATCHTagsTagId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *PATCHTagsTagId200ResponseData) GetAttributes() PATCHTagsTagId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret PATCHTagsTagId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHTagsTagId200ResponseData) GetAttributesOk() (*PATCHTagsTagId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *PATCHTagsTagId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given PATCHTagsTagId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *PATCHTagsTagId200ResponseData) SetAttributes(v PATCHTagsTagId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHTagsTagId200ResponseData) GetRelationships() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHTagsTagId200ResponseData) GetRelationshipsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return &o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PATCHTagsTagId200ResponseData) HasRelationships() bool { + if o != nil && IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. +func (o *PATCHTagsTagId200ResponseData) SetRelationships(v interface{}) { + o.Relationships = v +} + +func (o PATCHTagsTagId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHTagsTagId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if o.Relationships != nil { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePATCHTagsTagId200ResponseData struct { + value *PATCHTagsTagId200ResponseData + isSet bool +} + +func (v NullablePATCHTagsTagId200ResponseData) Get() *PATCHTagsTagId200ResponseData { + return v.value +} + +func (v *NullablePATCHTagsTagId200ResponseData) Set(val *PATCHTagsTagId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHTagsTagId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHTagsTagId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHTagsTagId200ResponseData(val *PATCHTagsTagId200ResponseData) *NullablePATCHTagsTagId200ResponseData { + return &NullablePATCHTagsTagId200ResponseData{value: val, isSet: true} +} + +func (v NullablePATCHTagsTagId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHTagsTagId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_tags_tag_id_200_response_data_attributes.go b/api/model_patch_tags_tag_id_200_response_data_attributes.go new file mode 100644 index 00000000..bd906372 --- /dev/null +++ b/api/model_patch_tags_tag_id_200_response_data_attributes.go @@ -0,0 +1,241 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHTagsTagId200ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHTagsTagId200ResponseDataAttributes{} + +// PATCHTagsTagId200ResponseDataAttributes struct for PATCHTagsTagId200ResponseDataAttributes +type PATCHTagsTagId200ResponseDataAttributes struct { + // The tag name. + Name interface{} `json:"name,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPATCHTagsTagId200ResponseDataAttributes instantiates a new PATCHTagsTagId200ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHTagsTagId200ResponseDataAttributes() *PATCHTagsTagId200ResponseDataAttributes { + this := PATCHTagsTagId200ResponseDataAttributes{} + return &this +} + +// NewPATCHTagsTagId200ResponseDataAttributesWithDefaults instantiates a new PATCHTagsTagId200ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHTagsTagId200ResponseDataAttributesWithDefaults() *PATCHTagsTagId200ResponseDataAttributes { + this := PATCHTagsTagId200ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHTagsTagId200ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHTagsTagId200ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PATCHTagsTagId200ResponseDataAttributes) HasName() bool { + if o != nil && IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given interface{} and assigns it to the Name field. +func (o *PATCHTagsTagId200ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHTagsTagId200ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHTagsTagId200ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *PATCHTagsTagId200ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *PATCHTagsTagId200ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHTagsTagId200ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHTagsTagId200ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *PATCHTagsTagId200ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *PATCHTagsTagId200ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHTagsTagId200ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHTagsTagId200ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *PATCHTagsTagId200ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *PATCHTagsTagId200ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o PATCHTagsTagId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHTagsTagId200ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePATCHTagsTagId200ResponseDataAttributes struct { + value *PATCHTagsTagId200ResponseDataAttributes + isSet bool +} + +func (v NullablePATCHTagsTagId200ResponseDataAttributes) Get() *PATCHTagsTagId200ResponseDataAttributes { + return v.value +} + +func (v *NullablePATCHTagsTagId200ResponseDataAttributes) Set(val *PATCHTagsTagId200ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHTagsTagId200ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHTagsTagId200ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHTagsTagId200ResponseDataAttributes(val *PATCHTagsTagId200ResponseDataAttributes) *NullablePATCHTagsTagId200ResponseDataAttributes { + return &NullablePATCHTagsTagId200ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePATCHTagsTagId200ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHTagsTagId200ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_tax_categories_tax_category_id_200_response.go b/api/model_patch_tax_categories_tax_category_id_200_response.go index 718253c3..b6ec0804 100644 --- a/api/model_patch_tax_categories_tax_category_id_200_response.go +++ b/api/model_patch_tax_categories_tax_category_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_tax_categories_tax_category_id_200_response_data.go b/api/model_patch_tax_categories_tax_category_id_200_response_data.go index 60edda78..5ae41840 100644 --- a/api/model_patch_tax_categories_tax_category_id_200_response_data.go +++ b/api/model_patch_tax_categories_tax_category_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_tax_categories_tax_category_id_200_response_data_attributes.go b/api/model_patch_tax_categories_tax_category_id_200_response_data_attributes.go index 7000068b..e6a78dc5 100644 --- a/api/model_patch_tax_categories_tax_category_id_200_response_data_attributes.go +++ b/api/model_patch_tax_categories_tax_category_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type PATCHTaxCategoriesTaxCategoryId200ResponseDataAttributes struct { SkuCode interface{} `json:"sku_code,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_tax_rules_tax_rule_id_200_response.go b/api/model_patch_tax_rules_tax_rule_id_200_response.go index 71bc6573..c77a2fa4 100644 --- a/api/model_patch_tax_rules_tax_rule_id_200_response.go +++ b/api/model_patch_tax_rules_tax_rule_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_tax_rules_tax_rule_id_200_response_data.go b/api/model_patch_tax_rules_tax_rule_id_200_response_data.go index 7f84bd9b..e92dcbb4 100644 --- a/api/model_patch_tax_rules_tax_rule_id_200_response_data.go +++ b/api/model_patch_tax_rules_tax_rule_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_tax_rules_tax_rule_id_200_response_data_attributes.go b/api/model_patch_tax_rules_tax_rule_id_200_response_data_attributes.go index ac9ad140..8fa2df0e 100644 --- a/api/model_patch_tax_rules_tax_rule_id_200_response_data_attributes.go +++ b/api/model_patch_tax_rules_tax_rule_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -46,7 +46,7 @@ type PATCHTaxRulesTaxRuleId200ResponseDataAttributes struct { AdjustmentTaxable interface{} `json:"adjustment_taxable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_taxjar_accounts_taxjar_account_id_200_response.go b/api/model_patch_taxjar_accounts_taxjar_account_id_200_response.go index a34efb8f..fc51fe3a 100644 --- a/api/model_patch_taxjar_accounts_taxjar_account_id_200_response.go +++ b/api/model_patch_taxjar_accounts_taxjar_account_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_taxjar_accounts_taxjar_account_id_200_response_data.go b/api/model_patch_taxjar_accounts_taxjar_account_id_200_response_data.go index 5334c561..693ffc80 100644 --- a/api/model_patch_taxjar_accounts_taxjar_account_id_200_response_data.go +++ b/api/model_patch_taxjar_accounts_taxjar_account_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type PATCHTaxjarAccountsTaxjarAccountId200ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *PATCHTaxjarAccountsTaxjarAccountId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTAvalaraAccounts201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTTaxjarAccounts201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPATCHTaxjarAccountsTaxjarAccountId200ResponseData instantiates a new PATCHTaxjarAccountsTaxjarAccountId200ResponseData object @@ -177,9 +177,9 @@ func (o *PATCHTaxjarAccountsTaxjarAccountId200ResponseData) SetAttributes(v PATC } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *PATCHTaxjarAccountsTaxjarAccountId200ResponseData) GetRelationships() POSTAvalaraAccounts201ResponseDataRelationships { +func (o *PATCHTaxjarAccountsTaxjarAccountId200ResponseData) GetRelationships() POSTTaxjarAccounts201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTAvalaraAccounts201ResponseDataRelationships + var ret POSTTaxjarAccounts201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *PATCHTaxjarAccountsTaxjarAccountId200ResponseData) GetRelationships() P // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PATCHTaxjarAccountsTaxjarAccountId200ResponseData) GetRelationshipsOk() (*POSTAvalaraAccounts201ResponseDataRelationships, bool) { +func (o *PATCHTaxjarAccountsTaxjarAccountId200ResponseData) GetRelationshipsOk() (*POSTTaxjarAccounts201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *PATCHTaxjarAccountsTaxjarAccountId200ResponseData) HasRelationships() b return false } -// SetRelationships gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationships and assigns it to the Relationships field. -func (o *PATCHTaxjarAccountsTaxjarAccountId200ResponseData) SetRelationships(v POSTAvalaraAccounts201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTTaxjarAccounts201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHTaxjarAccountsTaxjarAccountId200ResponseData) SetRelationships(v POSTTaxjarAccounts201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_patch_taxjar_accounts_taxjar_account_id_200_response_data_attributes.go b/api/model_patch_taxjar_accounts_taxjar_account_id_200_response_data_attributes.go index 61c351cb..5f8c0da4 100644 --- a/api/model_patch_taxjar_accounts_taxjar_account_id_200_response_data_attributes.go +++ b/api/model_patch_taxjar_accounts_taxjar_account_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type PATCHTaxjarAccountsTaxjarAccountId200ResponseDataAttributes struct { Name interface{} `json:"name,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_patch_voids_void_id_200_response.go b/api/model_patch_voids_void_id_200_response.go new file mode 100644 index 00000000..3782fbbf --- /dev/null +++ b/api/model_patch_voids_void_id_200_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHVoidsVoidId200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHVoidsVoidId200Response{} + +// PATCHVoidsVoidId200Response struct for PATCHVoidsVoidId200Response +type PATCHVoidsVoidId200Response struct { + Data *PATCHVoidsVoidId200ResponseData `json:"data,omitempty"` +} + +// NewPATCHVoidsVoidId200Response instantiates a new PATCHVoidsVoidId200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHVoidsVoidId200Response() *PATCHVoidsVoidId200Response { + this := PATCHVoidsVoidId200Response{} + return &this +} + +// NewPATCHVoidsVoidId200ResponseWithDefaults instantiates a new PATCHVoidsVoidId200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHVoidsVoidId200ResponseWithDefaults() *PATCHVoidsVoidId200Response { + this := PATCHVoidsVoidId200Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PATCHVoidsVoidId200Response) GetData() PATCHVoidsVoidId200ResponseData { + if o == nil || IsNil(o.Data) { + var ret PATCHVoidsVoidId200ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHVoidsVoidId200Response) GetDataOk() (*PATCHVoidsVoidId200ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PATCHVoidsVoidId200Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given PATCHVoidsVoidId200ResponseData and assigns it to the Data field. +func (o *PATCHVoidsVoidId200Response) SetData(v PATCHVoidsVoidId200ResponseData) { + o.Data = &v +} + +func (o PATCHVoidsVoidId200Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHVoidsVoidId200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePATCHVoidsVoidId200Response struct { + value *PATCHVoidsVoidId200Response + isSet bool +} + +func (v NullablePATCHVoidsVoidId200Response) Get() *PATCHVoidsVoidId200Response { + return v.value +} + +func (v *NullablePATCHVoidsVoidId200Response) Set(val *PATCHVoidsVoidId200Response) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHVoidsVoidId200Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHVoidsVoidId200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHVoidsVoidId200Response(val *PATCHVoidsVoidId200Response) *NullablePATCHVoidsVoidId200Response { + return &NullablePATCHVoidsVoidId200Response{value: val, isSet: true} +} + +func (v NullablePATCHVoidsVoidId200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHVoidsVoidId200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_voids_void_id_200_response_data.go b/api/model_patch_voids_void_id_200_response_data.go new file mode 100644 index 00000000..46874c6c --- /dev/null +++ b/api/model_patch_voids_void_id_200_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PATCHVoidsVoidId200ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PATCHVoidsVoidId200ResponseData{} + +// PATCHVoidsVoidId200ResponseData struct for PATCHVoidsVoidId200ResponseData +type PATCHVoidsVoidId200ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *PATCHRefundsRefundId200ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *GETVoidsVoidId200ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPATCHVoidsVoidId200ResponseData instantiates a new PATCHVoidsVoidId200ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPATCHVoidsVoidId200ResponseData() *PATCHVoidsVoidId200ResponseData { + this := PATCHVoidsVoidId200ResponseData{} + return &this +} + +// NewPATCHVoidsVoidId200ResponseDataWithDefaults instantiates a new PATCHVoidsVoidId200ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPATCHVoidsVoidId200ResponseDataWithDefaults() *PATCHVoidsVoidId200ResponseData { + this := PATCHVoidsVoidId200ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHVoidsVoidId200ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHVoidsVoidId200ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *PATCHVoidsVoidId200ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *PATCHVoidsVoidId200ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHVoidsVoidId200ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHVoidsVoidId200ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *PATCHVoidsVoidId200ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *PATCHVoidsVoidId200ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *PATCHVoidsVoidId200ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHVoidsVoidId200ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *PATCHVoidsVoidId200ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *PATCHVoidsVoidId200ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *PATCHVoidsVoidId200ResponseData) GetAttributes() PATCHRefundsRefundId200ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret PATCHRefundsRefundId200ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHVoidsVoidId200ResponseData) GetAttributesOk() (*PATCHRefundsRefundId200ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *PATCHVoidsVoidId200ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given PATCHRefundsRefundId200ResponseDataAttributes and assigns it to the Attributes field. +func (o *PATCHVoidsVoidId200ResponseData) SetAttributes(v PATCHRefundsRefundId200ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PATCHVoidsVoidId200ResponseData) GetRelationships() GETVoidsVoidId200ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret GETVoidsVoidId200ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PATCHVoidsVoidId200ResponseData) GetRelationshipsOk() (*GETVoidsVoidId200ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PATCHVoidsVoidId200ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given GETVoidsVoidId200ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHVoidsVoidId200ResponseData) SetRelationships(v GETVoidsVoidId200ResponseDataRelationships) { + o.Relationships = &v +} + +func (o PATCHVoidsVoidId200ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PATCHVoidsVoidId200ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePATCHVoidsVoidId200ResponseData struct { + value *PATCHVoidsVoidId200ResponseData + isSet bool +} + +func (v NullablePATCHVoidsVoidId200ResponseData) Get() *PATCHVoidsVoidId200ResponseData { + return v.value +} + +func (v *NullablePATCHVoidsVoidId200ResponseData) Set(val *PATCHVoidsVoidId200ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePATCHVoidsVoidId200ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePATCHVoidsVoidId200ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePATCHVoidsVoidId200ResponseData(val *PATCHVoidsVoidId200ResponseData) *NullablePATCHVoidsVoidId200ResponseData { + return &NullablePATCHVoidsVoidId200ResponseData{value: val, isSet: true} +} + +func (v NullablePATCHVoidsVoidId200ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePATCHVoidsVoidId200ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_patch_webhooks_webhook_id_200_response.go b/api/model_patch_webhooks_webhook_id_200_response.go index 980957f7..ec66878c 100644 --- a/api/model_patch_webhooks_webhook_id_200_response.go +++ b/api/model_patch_webhooks_webhook_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_webhooks_webhook_id_200_response_data.go b/api/model_patch_webhooks_webhook_id_200_response_data.go index a05695eb..3acde49a 100644 --- a/api/model_patch_webhooks_webhook_id_200_response_data.go +++ b/api/model_patch_webhooks_webhook_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_webhooks_webhook_id_200_response_data_attributes.go b/api/model_patch_webhooks_webhook_id_200_response_data_attributes.go index 287339d6..b0b7a8bc 100644 --- a/api/model_patch_webhooks_webhook_id_200_response_data_attributes.go +++ b/api/model_patch_webhooks_webhook_id_200_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,11 +28,15 @@ type PATCHWebhooksWebhookId200ResponseDataAttributes struct { CallbackUrl interface{} `json:"callback_url,omitempty"` // List of related resources that should be included in the webhook body. IncludeResources interface{} `json:"include_resources,omitempty"` - // Send this attribute if you want to reset the circuit breaker associated to this webhook to 'closed' state and zero failures count. + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` + // Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels. ResetCircuit interface{} `json:"_reset_circuit,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -187,6 +191,72 @@ func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) SetIncludeResources(v o.IncludeResources = v } +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + // GetResetCircuit returns the ResetCircuit field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PATCHWebhooksWebhookId200ResponseDataAttributes) GetResetCircuit() interface{} { if o == nil { @@ -341,6 +411,12 @@ func (o PATCHWebhooksWebhookId200ResponseDataAttributes) ToMap() (map[string]int if o.IncludeResources != nil { toSerialize["include_resources"] = o.IncludeResources } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } if o.ResetCircuit != nil { toSerialize["_reset_circuit"] = o.ResetCircuit } diff --git a/api/model_patch_wire_transfers_wire_transfer_id_200_response.go b/api/model_patch_wire_transfers_wire_transfer_id_200_response.go index 74c8ef59..418dc317 100644 --- a/api/model_patch_wire_transfers_wire_transfer_id_200_response.go +++ b/api/model_patch_wire_transfers_wire_transfer_id_200_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_patch_wire_transfers_wire_transfer_id_200_response_data.go b/api/model_patch_wire_transfers_wire_transfer_id_200_response_data.go index c9703980..413c1866 100644 --- a/api/model_patch_wire_transfers_wire_transfer_id_200_response_data.go +++ b/api/model_patch_wire_transfers_wire_transfer_id_200_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type PATCHWireTransfersWireTransferId200ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *PATCHBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *GETTransactionsTransactionId200ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTWireTransfers201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPATCHWireTransfersWireTransferId200ResponseData instantiates a new PATCHWireTransfersWireTransferId200ResponseData object @@ -177,9 +177,9 @@ func (o *PATCHWireTransfersWireTransferId200ResponseData) SetAttributes(v PATCHB } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *PATCHWireTransfersWireTransferId200ResponseData) GetRelationships() GETTransactionsTransactionId200ResponseDataRelationships { +func (o *PATCHWireTransfersWireTransferId200ResponseData) GetRelationships() POSTWireTransfers201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret GETTransactionsTransactionId200ResponseDataRelationships + var ret POSTWireTransfers201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *PATCHWireTransfersWireTransferId200ResponseData) GetRelationships() GET // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PATCHWireTransfersWireTransferId200ResponseData) GetRelationshipsOk() (*GETTransactionsTransactionId200ResponseDataRelationships, bool) { +func (o *PATCHWireTransfersWireTransferId200ResponseData) GetRelationshipsOk() (*POSTWireTransfers201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *PATCHWireTransfersWireTransferId200ResponseData) HasRelationships() boo return false } -// SetRelationships gets a reference to the given GETTransactionsTransactionId200ResponseDataRelationships and assigns it to the Relationships field. -func (o *PATCHWireTransfersWireTransferId200ResponseData) SetRelationships(v GETTransactionsTransactionId200ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTWireTransfers201ResponseDataRelationships and assigns it to the Relationships field. +func (o *PATCHWireTransfersWireTransferId200ResponseData) SetRelationships(v POSTWireTransfers201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_payment_gateway.go b/api/model_payment_gateway.go index 55c66305..0ac0fba3 100644 --- a/api/model_payment_gateway.go +++ b/api/model_payment_gateway.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_payment_gateway_data.go b/api/model_payment_gateway_data.go index 3b237243..2c73ed89 100644 --- a/api/model_payment_gateway_data.go +++ b/api/model_payment_gateway_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_payment_method.go b/api/model_payment_method.go index 417eb2c8..9887bccd 100644 --- a/api/model_payment_method.go +++ b/api/model_payment_method.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_payment_method_create.go b/api/model_payment_method_create.go index 5efcce1d..64620d65 100644 --- a/api/model_payment_method_create.go +++ b/api/model_payment_method_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_payment_method_create_data.go b/api/model_payment_method_create_data.go index a0814e2d..8fba2d0e 100644 --- a/api/model_payment_method_create_data.go +++ b/api/model_payment_method_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_payment_method_create_data_relationships.go b/api/model_payment_method_create_data_relationships.go index 638b380d..d01239a8 100644 --- a/api/model_payment_method_create_data_relationships.go +++ b/api/model_payment_method_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_payment_method_create_data_relationships_payment_gateway.go b/api/model_payment_method_create_data_relationships_payment_gateway.go index 097de73f..7f3256f3 100644 --- a/api/model_payment_method_create_data_relationships_payment_gateway.go +++ b/api/model_payment_method_create_data_relationships_payment_gateway.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_payment_method_data.go b/api/model_payment_method_data.go index 884441ba..011ca9ff 100644 --- a/api/model_payment_method_data.go +++ b/api/model_payment_method_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_payment_method_data_relationships.go b/api/model_payment_method_data_relationships.go index 8ee33b7f..7a342cf2 100644 --- a/api/model_payment_method_data_relationships.go +++ b/api/model_payment_method_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,7 +22,8 @@ var _ MappedNullable = &PaymentMethodDataRelationships{} type PaymentMethodDataRelationships struct { Market *AvalaraAccountDataRelationshipsMarkets `json:"market,omitempty"` PaymentGateway *AdyenPaymentDataRelationshipsPaymentGateway `json:"payment_gateway,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewPaymentMethodDataRelationships instantiates a new PaymentMethodDataRelationships object @@ -107,9 +108,9 @@ func (o *PaymentMethodDataRelationships) SetPaymentGateway(v AdyenPaymentDataRel } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *PaymentMethodDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *PaymentMethodDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -117,7 +118,7 @@ func (o *PaymentMethodDataRelationships) GetAttachments() AvalaraAccountDataRela // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PaymentMethodDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *PaymentMethodDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -133,11 +134,43 @@ func (o *PaymentMethodDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *PaymentMethodDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *PaymentMethodDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *PaymentMethodDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentMethodDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *PaymentMethodDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *PaymentMethodDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o PaymentMethodDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -157,6 +190,9 @@ func (o PaymentMethodDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_payment_method_update.go b/api/model_payment_method_update.go index 942000ab..ba093e21 100644 --- a/api/model_payment_method_update.go +++ b/api/model_payment_method_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_payment_method_update_data.go b/api/model_payment_method_update_data.go index f0bcf4a5..c5e5b399 100644 --- a/api/model_payment_method_update_data.go +++ b/api/model_payment_method_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_payment_method_update_data_relationships.go b/api/model_payment_method_update_data_relationships.go index 32dcb338..7ef7bbea 100644 --- a/api/model_payment_method_update_data_relationships.go +++ b/api/model_payment_method_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_payment_option.go b/api/model_payment_option.go new file mode 100644 index 00000000..da54910c --- /dev/null +++ b/api/model_payment_option.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PaymentOption type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaymentOption{} + +// PaymentOption struct for PaymentOption +type PaymentOption struct { + Data *PaymentOptionData `json:"data,omitempty"` +} + +// NewPaymentOption instantiates a new PaymentOption object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaymentOption() *PaymentOption { + this := PaymentOption{} + return &this +} + +// NewPaymentOptionWithDefaults instantiates a new PaymentOption object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaymentOptionWithDefaults() *PaymentOption { + this := PaymentOption{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PaymentOption) GetData() PaymentOptionData { + if o == nil || IsNil(o.Data) { + var ret PaymentOptionData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentOption) GetDataOk() (*PaymentOptionData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PaymentOption) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given PaymentOptionData and assigns it to the Data field. +func (o *PaymentOption) SetData(v PaymentOptionData) { + o.Data = &v +} + +func (o PaymentOption) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaymentOption) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePaymentOption struct { + value *PaymentOption + isSet bool +} + +func (v NullablePaymentOption) Get() *PaymentOption { + return v.value +} + +func (v *NullablePaymentOption) Set(val *PaymentOption) { + v.value = val + v.isSet = true +} + +func (v NullablePaymentOption) IsSet() bool { + return v.isSet +} + +func (v *NullablePaymentOption) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaymentOption(val *PaymentOption) *NullablePaymentOption { + return &NullablePaymentOption{value: val, isSet: true} +} + +func (v NullablePaymentOption) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaymentOption) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_payment_option_create.go b/api/model_payment_option_create.go new file mode 100644 index 00000000..482d87eb --- /dev/null +++ b/api/model_payment_option_create.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PaymentOptionCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaymentOptionCreate{} + +// PaymentOptionCreate struct for PaymentOptionCreate +type PaymentOptionCreate struct { + Data PaymentOptionCreateData `json:"data"` +} + +// NewPaymentOptionCreate instantiates a new PaymentOptionCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaymentOptionCreate(data PaymentOptionCreateData) *PaymentOptionCreate { + this := PaymentOptionCreate{} + this.Data = data + return &this +} + +// NewPaymentOptionCreateWithDefaults instantiates a new PaymentOptionCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaymentOptionCreateWithDefaults() *PaymentOptionCreate { + this := PaymentOptionCreate{} + return &this +} + +// GetData returns the Data field value +func (o *PaymentOptionCreate) GetData() PaymentOptionCreateData { + if o == nil { + var ret PaymentOptionCreateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *PaymentOptionCreate) GetDataOk() (*PaymentOptionCreateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *PaymentOptionCreate) SetData(v PaymentOptionCreateData) { + o.Data = v +} + +func (o PaymentOptionCreate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaymentOptionCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullablePaymentOptionCreate struct { + value *PaymentOptionCreate + isSet bool +} + +func (v NullablePaymentOptionCreate) Get() *PaymentOptionCreate { + return v.value +} + +func (v *NullablePaymentOptionCreate) Set(val *PaymentOptionCreate) { + v.value = val + v.isSet = true +} + +func (v NullablePaymentOptionCreate) IsSet() bool { + return v.isSet +} + +func (v *NullablePaymentOptionCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaymentOptionCreate(val *PaymentOptionCreate) *NullablePaymentOptionCreate { + return &NullablePaymentOptionCreate{value: val, isSet: true} +} + +func (v NullablePaymentOptionCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaymentOptionCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_payment_option_create_data.go b/api/model_payment_option_create_data.go new file mode 100644 index 00000000..35f9994f --- /dev/null +++ b/api/model_payment_option_create_data.go @@ -0,0 +1,184 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PaymentOptionCreateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaymentOptionCreateData{} + +// PaymentOptionCreateData struct for PaymentOptionCreateData +type PaymentOptionCreateData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes POSTPaymentOptions201ResponseDataAttributes `json:"attributes"` + Relationships *AdyenPaymentCreateDataRelationships `json:"relationships,omitempty"` +} + +// NewPaymentOptionCreateData instantiates a new PaymentOptionCreateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaymentOptionCreateData(type_ interface{}, attributes POSTPaymentOptions201ResponseDataAttributes) *PaymentOptionCreateData { + this := PaymentOptionCreateData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewPaymentOptionCreateDataWithDefaults instantiates a new PaymentOptionCreateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaymentOptionCreateDataWithDefaults() *PaymentOptionCreateData { + this := PaymentOptionCreateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *PaymentOptionCreateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaymentOptionCreateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PaymentOptionCreateData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *PaymentOptionCreateData) GetAttributes() POSTPaymentOptions201ResponseDataAttributes { + if o == nil { + var ret POSTPaymentOptions201ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *PaymentOptionCreateData) GetAttributesOk() (*POSTPaymentOptions201ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *PaymentOptionCreateData) SetAttributes(v POSTPaymentOptions201ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PaymentOptionCreateData) GetRelationships() AdyenPaymentCreateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret AdyenPaymentCreateDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentOptionCreateData) GetRelationshipsOk() (*AdyenPaymentCreateDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PaymentOptionCreateData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given AdyenPaymentCreateDataRelationships and assigns it to the Relationships field. +func (o *PaymentOptionCreateData) SetRelationships(v AdyenPaymentCreateDataRelationships) { + o.Relationships = &v +} + +func (o PaymentOptionCreateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaymentOptionCreateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePaymentOptionCreateData struct { + value *PaymentOptionCreateData + isSet bool +} + +func (v NullablePaymentOptionCreateData) Get() *PaymentOptionCreateData { + return v.value +} + +func (v *NullablePaymentOptionCreateData) Set(val *PaymentOptionCreateData) { + v.value = val + v.isSet = true +} + +func (v NullablePaymentOptionCreateData) IsSet() bool { + return v.isSet +} + +func (v *NullablePaymentOptionCreateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaymentOptionCreateData(val *PaymentOptionCreateData) *NullablePaymentOptionCreateData { + return &NullablePaymentOptionCreateData{value: val, isSet: true} +} + +func (v NullablePaymentOptionCreateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaymentOptionCreateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_payment_option_data.go b/api/model_payment_option_data.go new file mode 100644 index 00000000..523bcf66 --- /dev/null +++ b/api/model_payment_option_data.go @@ -0,0 +1,184 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PaymentOptionData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaymentOptionData{} + +// PaymentOptionData struct for PaymentOptionData +type PaymentOptionData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes GETPaymentOptionsPaymentOptionId200ResponseDataAttributes `json:"attributes"` + Relationships *PaymentOptionDataRelationships `json:"relationships,omitempty"` +} + +// NewPaymentOptionData instantiates a new PaymentOptionData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaymentOptionData(type_ interface{}, attributes GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) *PaymentOptionData { + this := PaymentOptionData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewPaymentOptionDataWithDefaults instantiates a new PaymentOptionData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaymentOptionDataWithDefaults() *PaymentOptionData { + this := PaymentOptionData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *PaymentOptionData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaymentOptionData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PaymentOptionData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *PaymentOptionData) GetAttributes() GETPaymentOptionsPaymentOptionId200ResponseDataAttributes { + if o == nil { + var ret GETPaymentOptionsPaymentOptionId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *PaymentOptionData) GetAttributesOk() (*GETPaymentOptionsPaymentOptionId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *PaymentOptionData) SetAttributes(v GETPaymentOptionsPaymentOptionId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PaymentOptionData) GetRelationships() PaymentOptionDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret PaymentOptionDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentOptionData) GetRelationshipsOk() (*PaymentOptionDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PaymentOptionData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given PaymentOptionDataRelationships and assigns it to the Relationships field. +func (o *PaymentOptionData) SetRelationships(v PaymentOptionDataRelationships) { + o.Relationships = &v +} + +func (o PaymentOptionData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaymentOptionData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePaymentOptionData struct { + value *PaymentOptionData + isSet bool +} + +func (v NullablePaymentOptionData) Get() *PaymentOptionData { + return v.value +} + +func (v *NullablePaymentOptionData) Set(val *PaymentOptionData) { + v.value = val + v.isSet = true +} + +func (v NullablePaymentOptionData) IsSet() bool { + return v.isSet +} + +func (v *NullablePaymentOptionData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaymentOptionData(val *PaymentOptionData) *NullablePaymentOptionData { + return &NullablePaymentOptionData{value: val, isSet: true} +} + +func (v NullablePaymentOptionData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaymentOptionData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_payment_option_data_relationships.go b/api/model_payment_option_data_relationships.go new file mode 100644 index 00000000..552d4f5f --- /dev/null +++ b/api/model_payment_option_data_relationships.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PaymentOptionDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaymentOptionDataRelationships{} + +// PaymentOptionDataRelationships struct for PaymentOptionDataRelationships +type PaymentOptionDataRelationships struct { + Order *AdyenPaymentDataRelationshipsOrder `json:"order,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` +} + +// NewPaymentOptionDataRelationships instantiates a new PaymentOptionDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaymentOptionDataRelationships() *PaymentOptionDataRelationships { + this := PaymentOptionDataRelationships{} + return &this +} + +// NewPaymentOptionDataRelationshipsWithDefaults instantiates a new PaymentOptionDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaymentOptionDataRelationshipsWithDefaults() *PaymentOptionDataRelationships { + this := PaymentOptionDataRelationships{} + return &this +} + +// GetOrder returns the Order field value if set, zero value otherwise. +func (o *PaymentOptionDataRelationships) GetOrder() AdyenPaymentDataRelationshipsOrder { + if o == nil || IsNil(o.Order) { + var ret AdyenPaymentDataRelationshipsOrder + return ret + } + return *o.Order +} + +// GetOrderOk returns a tuple with the Order field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentOptionDataRelationships) GetOrderOk() (*AdyenPaymentDataRelationshipsOrder, bool) { + if o == nil || IsNil(o.Order) { + return nil, false + } + return o.Order, true +} + +// HasOrder returns a boolean if a field has been set. +func (o *PaymentOptionDataRelationships) HasOrder() bool { + if o != nil && !IsNil(o.Order) { + return true + } + + return false +} + +// SetOrder gets a reference to the given AdyenPaymentDataRelationshipsOrder and assigns it to the Order field. +func (o *PaymentOptionDataRelationships) SetOrder(v AdyenPaymentDataRelationshipsOrder) { + o.Order = &v +} + +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *PaymentOptionDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret AuthorizationDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentOptionDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *PaymentOptionDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *PaymentOptionDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { + o.Attachments = &v +} + +func (o PaymentOptionDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaymentOptionDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Order) { + toSerialize["order"] = o.Order + } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } + return toSerialize, nil +} + +type NullablePaymentOptionDataRelationships struct { + value *PaymentOptionDataRelationships + isSet bool +} + +func (v NullablePaymentOptionDataRelationships) Get() *PaymentOptionDataRelationships { + return v.value +} + +func (v *NullablePaymentOptionDataRelationships) Set(val *PaymentOptionDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePaymentOptionDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePaymentOptionDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaymentOptionDataRelationships(val *PaymentOptionDataRelationships) *NullablePaymentOptionDataRelationships { + return &NullablePaymentOptionDataRelationships{value: val, isSet: true} +} + +func (v NullablePaymentOptionDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaymentOptionDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_payment_option_update.go b/api/model_payment_option_update.go new file mode 100644 index 00000000..b665f842 --- /dev/null +++ b/api/model_payment_option_update.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PaymentOptionUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaymentOptionUpdate{} + +// PaymentOptionUpdate struct for PaymentOptionUpdate +type PaymentOptionUpdate struct { + Data PaymentOptionUpdateData `json:"data"` +} + +// NewPaymentOptionUpdate instantiates a new PaymentOptionUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaymentOptionUpdate(data PaymentOptionUpdateData) *PaymentOptionUpdate { + this := PaymentOptionUpdate{} + this.Data = data + return &this +} + +// NewPaymentOptionUpdateWithDefaults instantiates a new PaymentOptionUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaymentOptionUpdateWithDefaults() *PaymentOptionUpdate { + this := PaymentOptionUpdate{} + return &this +} + +// GetData returns the Data field value +func (o *PaymentOptionUpdate) GetData() PaymentOptionUpdateData { + if o == nil { + var ret PaymentOptionUpdateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *PaymentOptionUpdate) GetDataOk() (*PaymentOptionUpdateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *PaymentOptionUpdate) SetData(v PaymentOptionUpdateData) { + o.Data = v +} + +func (o PaymentOptionUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaymentOptionUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullablePaymentOptionUpdate struct { + value *PaymentOptionUpdate + isSet bool +} + +func (v NullablePaymentOptionUpdate) Get() *PaymentOptionUpdate { + return v.value +} + +func (v *NullablePaymentOptionUpdate) Set(val *PaymentOptionUpdate) { + v.value = val + v.isSet = true +} + +func (v NullablePaymentOptionUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullablePaymentOptionUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaymentOptionUpdate(val *PaymentOptionUpdate) *NullablePaymentOptionUpdate { + return &NullablePaymentOptionUpdate{value: val, isSet: true} +} + +func (v NullablePaymentOptionUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaymentOptionUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_payment_option_update_data.go b/api/model_payment_option_update_data.go new file mode 100644 index 00000000..7a917ab3 --- /dev/null +++ b/api/model_payment_option_update_data.go @@ -0,0 +1,216 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PaymentOptionUpdateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaymentOptionUpdateData{} + +// PaymentOptionUpdateData struct for PaymentOptionUpdateData +type PaymentOptionUpdateData struct { + // The resource's type + Type interface{} `json:"type"` + // The resource's id + Id interface{} `json:"id"` + Attributes PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes `json:"attributes"` + Relationships *AdyenPaymentUpdateDataRelationships `json:"relationships,omitempty"` +} + +// NewPaymentOptionUpdateData instantiates a new PaymentOptionUpdateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaymentOptionUpdateData(type_ interface{}, id interface{}, attributes PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) *PaymentOptionUpdateData { + this := PaymentOptionUpdateData{} + this.Type = type_ + this.Id = id + this.Attributes = attributes + return &this +} + +// NewPaymentOptionUpdateDataWithDefaults instantiates a new PaymentOptionUpdateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaymentOptionUpdateDataWithDefaults() *PaymentOptionUpdateData { + this := PaymentOptionUpdateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *PaymentOptionUpdateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaymentOptionUpdateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PaymentOptionUpdateData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *PaymentOptionUpdateData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaymentOptionUpdateData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PaymentOptionUpdateData) SetId(v interface{}) { + o.Id = v +} + +// GetAttributes returns the Attributes field value +func (o *PaymentOptionUpdateData) GetAttributes() PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes { + if o == nil { + var ret PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *PaymentOptionUpdateData) GetAttributesOk() (*PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *PaymentOptionUpdateData) SetAttributes(v PATCHPaymentOptionsPaymentOptionId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PaymentOptionUpdateData) GetRelationships() AdyenPaymentUpdateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret AdyenPaymentUpdateDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaymentOptionUpdateData) GetRelationshipsOk() (*AdyenPaymentUpdateDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PaymentOptionUpdateData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given AdyenPaymentUpdateDataRelationships and assigns it to the Relationships field. +func (o *PaymentOptionUpdateData) SetRelationships(v AdyenPaymentUpdateDataRelationships) { + o.Relationships = &v +} + +func (o PaymentOptionUpdateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaymentOptionUpdateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePaymentOptionUpdateData struct { + value *PaymentOptionUpdateData + isSet bool +} + +func (v NullablePaymentOptionUpdateData) Get() *PaymentOptionUpdateData { + return v.value +} + +func (v *NullablePaymentOptionUpdateData) Set(val *PaymentOptionUpdateData) { + v.value = val + v.isSet = true +} + +func (v NullablePaymentOptionUpdateData) IsSet() bool { + return v.isSet +} + +func (v *NullablePaymentOptionUpdateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaymentOptionUpdateData(val *PaymentOptionUpdateData) *NullablePaymentOptionUpdateData { + return &NullablePaymentOptionUpdateData{value: val, isSet: true} +} + +func (v NullablePaymentOptionUpdateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaymentOptionUpdateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_paypal_gateway.go b/api/model_paypal_gateway.go index 166675bc..f9c5a6e5 100644 --- a/api/model_paypal_gateway.go +++ b/api/model_paypal_gateway.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_paypal_gateway_create.go b/api/model_paypal_gateway_create.go index 3b3fe233..48f259a8 100644 --- a/api/model_paypal_gateway_create.go +++ b/api/model_paypal_gateway_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_paypal_gateway_create_data.go b/api/model_paypal_gateway_create_data.go index 88b4e20b..5e260789 100644 --- a/api/model_paypal_gateway_create_data.go +++ b/api/model_paypal_gateway_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_paypal_gateway_data.go b/api/model_paypal_gateway_data.go index a99359ec..0a0d3c21 100644 --- a/api/model_paypal_gateway_data.go +++ b/api/model_paypal_gateway_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_paypal_gateway_data_relationships.go b/api/model_paypal_gateway_data_relationships.go index a15100ff..fe343a5b 100644 --- a/api/model_paypal_gateway_data_relationships.go +++ b/api/model_paypal_gateway_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &PaypalGatewayDataRelationships{} // PaypalGatewayDataRelationships struct for PaypalGatewayDataRelationships type PaypalGatewayDataRelationships struct { PaymentMethods *AdyenGatewayDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` PaypalPayments *PaypalGatewayDataRelationshipsPaypalPayments `json:"paypal_payments,omitempty"` } @@ -73,6 +74,38 @@ func (o *PaypalGatewayDataRelationships) SetPaymentMethods(v AdyenGatewayDataRel o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *PaypalGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaypalGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *PaypalGatewayDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *PaypalGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + // GetPaypalPayments returns the PaypalPayments field value if set, zero value otherwise. func (o *PaypalGatewayDataRelationships) GetPaypalPayments() PaypalGatewayDataRelationshipsPaypalPayments { if o == nil || IsNil(o.PaypalPayments) { @@ -118,6 +151,9 @@ func (o PaypalGatewayDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.PaypalPayments) { toSerialize["paypal_payments"] = o.PaypalPayments } diff --git a/api/model_paypal_gateway_data_relationships_paypal_payments.go b/api/model_paypal_gateway_data_relationships_paypal_payments.go index 1db63e64..4afa6f55 100644 --- a/api/model_paypal_gateway_data_relationships_paypal_payments.go +++ b/api/model_paypal_gateway_data_relationships_paypal_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_paypal_gateway_data_relationships_paypal_payments_data.go b/api/model_paypal_gateway_data_relationships_paypal_payments_data.go index 9c1201cf..3c1b6ff9 100644 --- a/api/model_paypal_gateway_data_relationships_paypal_payments_data.go +++ b/api/model_paypal_gateway_data_relationships_paypal_payments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_paypal_gateway_update.go b/api/model_paypal_gateway_update.go index 17bb73f1..9b176c04 100644 --- a/api/model_paypal_gateway_update.go +++ b/api/model_paypal_gateway_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_paypal_gateway_update_data.go b/api/model_paypal_gateway_update_data.go index f70eded3..bdadf342 100644 --- a/api/model_paypal_gateway_update_data.go +++ b/api/model_paypal_gateway_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_paypal_payment.go b/api/model_paypal_payment.go index abe389bc..a0d0dd41 100644 --- a/api/model_paypal_payment.go +++ b/api/model_paypal_payment.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_paypal_payment_create.go b/api/model_paypal_payment_create.go index aa4394fc..d2f18e73 100644 --- a/api/model_paypal_payment_create.go +++ b/api/model_paypal_payment_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_paypal_payment_create_data.go b/api/model_paypal_payment_create_data.go index b1c3d103..cb41690b 100644 --- a/api/model_paypal_payment_create_data.go +++ b/api/model_paypal_payment_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_paypal_payment_data.go b/api/model_paypal_payment_data.go index 985434ff..c517b340 100644 --- a/api/model_paypal_payment_data.go +++ b/api/model_paypal_payment_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_paypal_payment_update.go b/api/model_paypal_payment_update.go index 62fc0688..b4092b4f 100644 --- a/api/model_paypal_payment_update.go +++ b/api/model_paypal_payment_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_paypal_payment_update_data.go b/api/model_paypal_payment_update_data.go index e7a801e4..85aebe55 100644 --- a/api/model_paypal_payment_update_data.go +++ b/api/model_paypal_payment_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_percentage_discount_promotion.go b/api/model_percentage_discount_promotion.go index 67ef34a7..ff9abe66 100644 --- a/api/model_percentage_discount_promotion.go +++ b/api/model_percentage_discount_promotion.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_percentage_discount_promotion_create.go b/api/model_percentage_discount_promotion_create.go index a68856e0..4975fec0 100644 --- a/api/model_percentage_discount_promotion_create.go +++ b/api/model_percentage_discount_promotion_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_percentage_discount_promotion_create_data.go b/api/model_percentage_discount_promotion_create_data.go index ee057994..cd50bb9d 100644 --- a/api/model_percentage_discount_promotion_create_data.go +++ b/api/model_percentage_discount_promotion_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type PercentageDiscountPromotionCreateData struct { // The resource's type Type interface{} `json:"type"` Attributes POSTPercentageDiscountPromotions201ResponseDataAttributes `json:"attributes"` - Relationships *FixedPricePromotionUpdateDataRelationships `json:"relationships,omitempty"` + Relationships *BuyXPayYPromotionUpdateDataRelationships `json:"relationships,omitempty"` } // NewPercentageDiscountPromotionCreateData instantiates a new PercentageDiscountPromotionCreateData object @@ -96,9 +96,9 @@ func (o *PercentageDiscountPromotionCreateData) SetAttributes(v POSTPercentageDi } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *PercentageDiscountPromotionCreateData) GetRelationships() FixedPricePromotionUpdateDataRelationships { +func (o *PercentageDiscountPromotionCreateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret FixedPricePromotionUpdateDataRelationships + var ret BuyXPayYPromotionUpdateDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *PercentageDiscountPromotionCreateData) GetRelationships() FixedPricePro // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PercentageDiscountPromotionCreateData) GetRelationshipsOk() (*FixedPricePromotionUpdateDataRelationships, bool) { +func (o *PercentageDiscountPromotionCreateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *PercentageDiscountPromotionCreateData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given FixedPricePromotionUpdateDataRelationships and assigns it to the Relationships field. -func (o *PercentageDiscountPromotionCreateData) SetRelationships(v FixedPricePromotionUpdateDataRelationships) { +// SetRelationships gets a reference to the given BuyXPayYPromotionUpdateDataRelationships and assigns it to the Relationships field. +func (o *PercentageDiscountPromotionCreateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships) { o.Relationships = &v } diff --git a/api/model_percentage_discount_promotion_data.go b/api/model_percentage_discount_promotion_data.go index 69c8b8b4..61990640 100644 --- a/api/model_percentage_discount_promotion_data.go +++ b/api/model_percentage_discount_promotion_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type PercentageDiscountPromotionData struct { // The resource's type Type interface{} `json:"type"` Attributes GETPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes `json:"attributes"` - Relationships *FixedPricePromotionDataRelationships `json:"relationships,omitempty"` + Relationships *BuyXPayYPromotionDataRelationships `json:"relationships,omitempty"` } // NewPercentageDiscountPromotionData instantiates a new PercentageDiscountPromotionData object @@ -96,9 +96,9 @@ func (o *PercentageDiscountPromotionData) SetAttributes(v GETPercentageDiscountP } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *PercentageDiscountPromotionData) GetRelationships() FixedPricePromotionDataRelationships { +func (o *PercentageDiscountPromotionData) GetRelationships() BuyXPayYPromotionDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret FixedPricePromotionDataRelationships + var ret BuyXPayYPromotionDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *PercentageDiscountPromotionData) GetRelationships() FixedPricePromotion // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PercentageDiscountPromotionData) GetRelationshipsOk() (*FixedPricePromotionDataRelationships, bool) { +func (o *PercentageDiscountPromotionData) GetRelationshipsOk() (*BuyXPayYPromotionDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *PercentageDiscountPromotionData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given FixedPricePromotionDataRelationships and assigns it to the Relationships field. -func (o *PercentageDiscountPromotionData) SetRelationships(v FixedPricePromotionDataRelationships) { +// SetRelationships gets a reference to the given BuyXPayYPromotionDataRelationships and assigns it to the Relationships field. +func (o *PercentageDiscountPromotionData) SetRelationships(v BuyXPayYPromotionDataRelationships) { o.Relationships = &v } diff --git a/api/model_percentage_discount_promotion_update.go b/api/model_percentage_discount_promotion_update.go index 0b4a93ea..a3a0049b 100644 --- a/api/model_percentage_discount_promotion_update.go +++ b/api/model_percentage_discount_promotion_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_percentage_discount_promotion_update_data.go b/api/model_percentage_discount_promotion_update_data.go index b9406061..ddf1f229 100644 --- a/api/model_percentage_discount_promotion_update_data.go +++ b/api/model_percentage_discount_promotion_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -25,7 +25,7 @@ type PercentageDiscountPromotionUpdateData struct { // The resource's id Id interface{} `json:"id"` Attributes PATCHPercentageDiscountPromotionsPercentageDiscountPromotionId200ResponseDataAttributes `json:"attributes"` - Relationships *FixedPricePromotionUpdateDataRelationships `json:"relationships,omitempty"` + Relationships *BuyXPayYPromotionUpdateDataRelationships `json:"relationships,omitempty"` } // NewPercentageDiscountPromotionUpdateData instantiates a new PercentageDiscountPromotionUpdateData object @@ -125,9 +125,9 @@ func (o *PercentageDiscountPromotionUpdateData) SetAttributes(v PATCHPercentageD } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *PercentageDiscountPromotionUpdateData) GetRelationships() FixedPricePromotionUpdateDataRelationships { +func (o *PercentageDiscountPromotionUpdateData) GetRelationships() BuyXPayYPromotionUpdateDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret FixedPricePromotionUpdateDataRelationships + var ret BuyXPayYPromotionUpdateDataRelationships return ret } return *o.Relationships @@ -135,7 +135,7 @@ func (o *PercentageDiscountPromotionUpdateData) GetRelationships() FixedPricePro // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PercentageDiscountPromotionUpdateData) GetRelationshipsOk() (*FixedPricePromotionUpdateDataRelationships, bool) { +func (o *PercentageDiscountPromotionUpdateData) GetRelationshipsOk() (*BuyXPayYPromotionUpdateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -151,8 +151,8 @@ func (o *PercentageDiscountPromotionUpdateData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given FixedPricePromotionUpdateDataRelationships and assigns it to the Relationships field. -func (o *PercentageDiscountPromotionUpdateData) SetRelationships(v FixedPricePromotionUpdateDataRelationships) { +// SetRelationships gets a reference to the given BuyXPayYPromotionUpdateDataRelationships and assigns it to the Relationships field. +func (o *PercentageDiscountPromotionUpdateData) SetRelationships(v BuyXPayYPromotionUpdateDataRelationships) { o.Relationships = &v } diff --git a/api/model_post_addresses_201_response.go b/api/model_post_addresses_201_response.go index 6585842c..d2ed53ba 100644 --- a/api/model_post_addresses_201_response.go +++ b/api/model_post_addresses_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_addresses_201_response_data.go b/api/model_post_addresses_201_response_data.go index 25133d35..cede6712 100644 --- a/api/model_post_addresses_201_response_data.go +++ b/api/model_post_addresses_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_addresses_201_response_data_attributes.go b/api/model_post_addresses_201_response_data_attributes.go index 99010f38..6fcc8d64 100644 --- a/api/model_post_addresses_201_response_data_attributes.go +++ b/api/model_post_addresses_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,25 +20,25 @@ var _ MappedNullable = &POSTAddresses201ResponseDataAttributes{} // POSTAddresses201ResponseDataAttributes struct for POSTAddresses201ResponseDataAttributes type POSTAddresses201ResponseDataAttributes struct { - // Indicates if it's a business or a personal address + // Indicates if it's a business or a personal address. Business interface{} `json:"business,omitempty"` - // Address first name (personal) + // Address first name (personal). FirstName interface{} `json:"first_name,omitempty"` - // Address last name (personal) + // Address last name (personal). LastName interface{} `json:"last_name,omitempty"` - // Address company name (business) + // Address company name (business). Company interface{} `json:"company,omitempty"` - // Address line 1, i.e. Street address, PO Box + // Address line 1, i.e. Street address, PO Box. Line1 interface{} `json:"line_1"` - // Address line 2, i.e. Apartment, Suite, Building + // Address line 2, i.e. Apartment, Suite, Building. Line2 interface{} `json:"line_2,omitempty"` - // Address city + // Address city. City interface{} `json:"city"` - // ZIP or postal code + // ZIP or postal code. ZipCode interface{} `json:"zip_code,omitempty"` // State, province or region code. StateCode interface{} `json:"state_code"` - // The international 2-letter country code as defined by the ISO 3166-1 standard + // The international 2-letter country code as defined by the ISO 3166-1 standard. CountryCode interface{} `json:"country_code"` // Phone number (including extension). Phone interface{} `json:"phone"` @@ -50,11 +50,11 @@ type POSTAddresses201ResponseDataAttributes struct { Lat interface{} `json:"lat,omitempty"` // The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market. Lng interface{} `json:"lng,omitempty"` - // Customer's billing information (i.e. VAT number, codice fiscale) + // Customer's billing information (i.e. VAT number, codice fiscale). BillingInfo interface{} `json:"billing_info,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_addresses_201_response_data_links.go b/api/model_post_addresses_201_response_data_links.go index 29a734cc..719748e1 100644 --- a/api/model_post_addresses_201_response_data_links.go +++ b/api/model_post_addresses_201_response_data_links.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_addresses_201_response_data_relationships.go b/api/model_post_addresses_201_response_data_relationships.go index 6064fe2e..e958a9d5 100644 --- a/api/model_post_addresses_201_response_data_relationships.go +++ b/api/model_post_addresses_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,9 @@ var _ MappedNullable = &POSTAddresses201ResponseDataRelationships{} // POSTAddresses201ResponseDataRelationships struct for POSTAddresses201ResponseDataRelationships type POSTAddresses201ResponseDataRelationships struct { Geocoder *POSTAddresses201ResponseDataRelationshipsGeocoder `json:"geocoder,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Tags *POSTAddresses201ResponseDataRelationshipsTags `json:"tags,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTAddresses201ResponseDataRelationships instantiates a new POSTAddresses201ResponseDataRelationships object @@ -72,6 +75,102 @@ func (o *POSTAddresses201ResponseDataRelationships) SetGeocoder(v POSTAddresses2 o.Geocoder = &v } +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *POSTAddresses201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTAddresses201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *POSTAddresses201ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTAddresses201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *POSTAddresses201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret POSTAddresses201ResponseDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTAddresses201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *POSTAddresses201ResponseDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given POSTAddresses201ResponseDataRelationshipsTags and assigns it to the Tags field. +func (o *POSTAddresses201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTAddresses201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTAddresses201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTAddresses201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTAddresses201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTAddresses201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +184,15 @@ func (o POSTAddresses201ResponseDataRelationships) ToMap() (map[string]interface if !IsNil(o.Geocoder) { toSerialize["geocoder"] = o.Geocoder } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_parcels_201_response_data_relationships_shipment.go b/api/model_post_addresses_201_response_data_relationships_events.go similarity index 50% rename from api/model_post_parcels_201_response_data_relationships_shipment.go rename to api/model_post_addresses_201_response_data_relationships_events.go index d3f2ccff..1f5b9ddd 100644 --- a/api/model_post_parcels_201_response_data_relationships_shipment.go +++ b/api/model_post_addresses_201_response_data_relationships_events.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,34 +15,34 @@ import ( "encoding/json" ) -// checks if the POSTParcels201ResponseDataRelationshipsShipment type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTParcels201ResponseDataRelationshipsShipment{} +// checks if the POSTAddresses201ResponseDataRelationshipsEvents type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTAddresses201ResponseDataRelationshipsEvents{} -// POSTParcels201ResponseDataRelationshipsShipment struct for POSTParcels201ResponseDataRelationshipsShipment -type POSTParcels201ResponseDataRelationshipsShipment struct { +// POSTAddresses201ResponseDataRelationshipsEvents struct for POSTAddresses201ResponseDataRelationshipsEvents +type POSTAddresses201ResponseDataRelationshipsEvents struct { Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` - Data *POSTParcels201ResponseDataRelationshipsShipmentData `json:"data,omitempty"` + Data *POSTAddresses201ResponseDataRelationshipsEventsData `json:"data,omitempty"` } -// NewPOSTParcels201ResponseDataRelationshipsShipment instantiates a new POSTParcels201ResponseDataRelationshipsShipment object +// NewPOSTAddresses201ResponseDataRelationshipsEvents instantiates a new POSTAddresses201ResponseDataRelationshipsEvents object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTParcels201ResponseDataRelationshipsShipment() *POSTParcels201ResponseDataRelationshipsShipment { - this := POSTParcels201ResponseDataRelationshipsShipment{} +func NewPOSTAddresses201ResponseDataRelationshipsEvents() *POSTAddresses201ResponseDataRelationshipsEvents { + this := POSTAddresses201ResponseDataRelationshipsEvents{} return &this } -// NewPOSTParcels201ResponseDataRelationshipsShipmentWithDefaults instantiates a new POSTParcels201ResponseDataRelationshipsShipment object +// NewPOSTAddresses201ResponseDataRelationshipsEventsWithDefaults instantiates a new POSTAddresses201ResponseDataRelationshipsEvents object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewPOSTParcels201ResponseDataRelationshipsShipmentWithDefaults() *POSTParcels201ResponseDataRelationshipsShipment { - this := POSTParcels201ResponseDataRelationshipsShipment{} +func NewPOSTAddresses201ResponseDataRelationshipsEventsWithDefaults() *POSTAddresses201ResponseDataRelationshipsEvents { + this := POSTAddresses201ResponseDataRelationshipsEvents{} return &this } // GetLinks returns the Links field value if set, zero value otherwise. -func (o *POSTParcels201ResponseDataRelationshipsShipment) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { +func (o *POSTAddresses201ResponseDataRelationshipsEvents) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { if o == nil || IsNil(o.Links) { var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks return ret @@ -52,7 +52,7 @@ func (o *POSTParcels201ResponseDataRelationshipsShipment) GetLinks() POSTAddress // GetLinksOk returns a tuple with the Links field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTParcels201ResponseDataRelationshipsShipment) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { +func (o *POSTAddresses201ResponseDataRelationshipsEvents) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { if o == nil || IsNil(o.Links) { return nil, false } @@ -60,7 +60,7 @@ func (o *POSTParcels201ResponseDataRelationshipsShipment) GetLinksOk() (*POSTAdd } // HasLinks returns a boolean if a field has been set. -func (o *POSTParcels201ResponseDataRelationshipsShipment) HasLinks() bool { +func (o *POSTAddresses201ResponseDataRelationshipsEvents) HasLinks() bool { if o != nil && !IsNil(o.Links) { return true } @@ -69,14 +69,14 @@ func (o *POSTParcels201ResponseDataRelationshipsShipment) HasLinks() bool { } // SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. -func (o *POSTParcels201ResponseDataRelationshipsShipment) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { +func (o *POSTAddresses201ResponseDataRelationshipsEvents) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { o.Links = &v } // GetData returns the Data field value if set, zero value otherwise. -func (o *POSTParcels201ResponseDataRelationshipsShipment) GetData() POSTParcels201ResponseDataRelationshipsShipmentData { +func (o *POSTAddresses201ResponseDataRelationshipsEvents) GetData() POSTAddresses201ResponseDataRelationshipsEventsData { if o == nil || IsNil(o.Data) { - var ret POSTParcels201ResponseDataRelationshipsShipmentData + var ret POSTAddresses201ResponseDataRelationshipsEventsData return ret } return *o.Data @@ -84,7 +84,7 @@ func (o *POSTParcels201ResponseDataRelationshipsShipment) GetData() POSTParcels2 // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTParcels201ResponseDataRelationshipsShipment) GetDataOk() (*POSTParcels201ResponseDataRelationshipsShipmentData, bool) { +func (o *POSTAddresses201ResponseDataRelationshipsEvents) GetDataOk() (*POSTAddresses201ResponseDataRelationshipsEventsData, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -92,7 +92,7 @@ func (o *POSTParcels201ResponseDataRelationshipsShipment) GetDataOk() (*POSTParc } // HasData returns a boolean if a field has been set. -func (o *POSTParcels201ResponseDataRelationshipsShipment) HasData() bool { +func (o *POSTAddresses201ResponseDataRelationshipsEvents) HasData() bool { if o != nil && !IsNil(o.Data) { return true } @@ -100,12 +100,12 @@ func (o *POSTParcels201ResponseDataRelationshipsShipment) HasData() bool { return false } -// SetData gets a reference to the given POSTParcels201ResponseDataRelationshipsShipmentData and assigns it to the Data field. -func (o *POSTParcels201ResponseDataRelationshipsShipment) SetData(v POSTParcels201ResponseDataRelationshipsShipmentData) { +// SetData gets a reference to the given POSTAddresses201ResponseDataRelationshipsEventsData and assigns it to the Data field. +func (o *POSTAddresses201ResponseDataRelationshipsEvents) SetData(v POSTAddresses201ResponseDataRelationshipsEventsData) { o.Data = &v } -func (o POSTParcels201ResponseDataRelationshipsShipment) MarshalJSON() ([]byte, error) { +func (o POSTAddresses201ResponseDataRelationshipsEvents) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -113,7 +113,7 @@ func (o POSTParcels201ResponseDataRelationshipsShipment) MarshalJSON() ([]byte, return json.Marshal(toSerialize) } -func (o POSTParcels201ResponseDataRelationshipsShipment) ToMap() (map[string]interface{}, error) { +func (o POSTAddresses201ResponseDataRelationshipsEvents) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Links) { toSerialize["links"] = o.Links @@ -124,38 +124,38 @@ func (o POSTParcels201ResponseDataRelationshipsShipment) ToMap() (map[string]int return toSerialize, nil } -type NullablePOSTParcels201ResponseDataRelationshipsShipment struct { - value *POSTParcels201ResponseDataRelationshipsShipment +type NullablePOSTAddresses201ResponseDataRelationshipsEvents struct { + value *POSTAddresses201ResponseDataRelationshipsEvents isSet bool } -func (v NullablePOSTParcels201ResponseDataRelationshipsShipment) Get() *POSTParcels201ResponseDataRelationshipsShipment { +func (v NullablePOSTAddresses201ResponseDataRelationshipsEvents) Get() *POSTAddresses201ResponseDataRelationshipsEvents { return v.value } -func (v *NullablePOSTParcels201ResponseDataRelationshipsShipment) Set(val *POSTParcels201ResponseDataRelationshipsShipment) { +func (v *NullablePOSTAddresses201ResponseDataRelationshipsEvents) Set(val *POSTAddresses201ResponseDataRelationshipsEvents) { v.value = val v.isSet = true } -func (v NullablePOSTParcels201ResponseDataRelationshipsShipment) IsSet() bool { +func (v NullablePOSTAddresses201ResponseDataRelationshipsEvents) IsSet() bool { return v.isSet } -func (v *NullablePOSTParcels201ResponseDataRelationshipsShipment) Unset() { +func (v *NullablePOSTAddresses201ResponseDataRelationshipsEvents) Unset() { v.value = nil v.isSet = false } -func NewNullablePOSTParcels201ResponseDataRelationshipsShipment(val *POSTParcels201ResponseDataRelationshipsShipment) *NullablePOSTParcels201ResponseDataRelationshipsShipment { - return &NullablePOSTParcels201ResponseDataRelationshipsShipment{value: val, isSet: true} +func NewNullablePOSTAddresses201ResponseDataRelationshipsEvents(val *POSTAddresses201ResponseDataRelationshipsEvents) *NullablePOSTAddresses201ResponseDataRelationshipsEvents { + return &NullablePOSTAddresses201ResponseDataRelationshipsEvents{value: val, isSet: true} } -func (v NullablePOSTParcels201ResponseDataRelationshipsShipment) MarshalJSON() ([]byte, error) { +func (v NullablePOSTAddresses201ResponseDataRelationshipsEvents) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePOSTParcels201ResponseDataRelationshipsShipment) UnmarshalJSON(src []byte) error { +func (v *NullablePOSTAddresses201ResponseDataRelationshipsEvents) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_post_parcels_201_response_data_relationships_shipment_data.go b/api/model_post_addresses_201_response_data_relationships_events_data.go similarity index 55% rename from api/model_post_parcels_201_response_data_relationships_shipment_data.go rename to api/model_post_addresses_201_response_data_relationships_events_data.go index 8e411f1c..dcee7e05 100644 --- a/api/model_post_parcels_201_response_data_relationships_shipment_data.go +++ b/api/model_post_addresses_201_response_data_relationships_events_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the POSTParcels201ResponseDataRelationshipsShipmentData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTParcels201ResponseDataRelationshipsShipmentData{} +// checks if the POSTAddresses201ResponseDataRelationshipsEventsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTAddresses201ResponseDataRelationshipsEventsData{} -// POSTParcels201ResponseDataRelationshipsShipmentData struct for POSTParcels201ResponseDataRelationshipsShipmentData -type POSTParcels201ResponseDataRelationshipsShipmentData struct { +// POSTAddresses201ResponseDataRelationshipsEventsData struct for POSTAddresses201ResponseDataRelationshipsEventsData +type POSTAddresses201ResponseDataRelationshipsEventsData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource ID Id interface{} `json:"id,omitempty"` } -// NewPOSTParcels201ResponseDataRelationshipsShipmentData instantiates a new POSTParcels201ResponseDataRelationshipsShipmentData object +// NewPOSTAddresses201ResponseDataRelationshipsEventsData instantiates a new POSTAddresses201ResponseDataRelationshipsEventsData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTParcels201ResponseDataRelationshipsShipmentData() *POSTParcels201ResponseDataRelationshipsShipmentData { - this := POSTParcels201ResponseDataRelationshipsShipmentData{} +func NewPOSTAddresses201ResponseDataRelationshipsEventsData() *POSTAddresses201ResponseDataRelationshipsEventsData { + this := POSTAddresses201ResponseDataRelationshipsEventsData{} return &this } -// NewPOSTParcels201ResponseDataRelationshipsShipmentDataWithDefaults instantiates a new POSTParcels201ResponseDataRelationshipsShipmentData object +// NewPOSTAddresses201ResponseDataRelationshipsEventsDataWithDefaults instantiates a new POSTAddresses201ResponseDataRelationshipsEventsData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewPOSTParcels201ResponseDataRelationshipsShipmentDataWithDefaults() *POSTParcels201ResponseDataRelationshipsShipmentData { - this := POSTParcels201ResponseDataRelationshipsShipmentData{} +func NewPOSTAddresses201ResponseDataRelationshipsEventsDataWithDefaults() *POSTAddresses201ResponseDataRelationshipsEventsData { + this := POSTAddresses201ResponseDataRelationshipsEventsData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTParcels201ResponseDataRelationshipsShipmentData) GetType() interface{} { +func (o *POSTAddresses201ResponseDataRelationshipsEventsData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *POSTParcels201ResponseDataRelationshipsShipmentData) GetType() interfac // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTParcels201ResponseDataRelationshipsShipmentData) GetTypeOk() (*interface{}, bool) { +func (o *POSTAddresses201ResponseDataRelationshipsEventsData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *POSTParcels201ResponseDataRelationshipsShipmentData) GetTypeOk() (*inte } // HasType returns a boolean if a field has been set. -func (o *POSTParcels201ResponseDataRelationshipsShipmentData) HasType() bool { +func (o *POSTAddresses201ResponseDataRelationshipsEventsData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *POSTParcels201ResponseDataRelationshipsShipmentData) HasType() bool { } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *POSTParcels201ResponseDataRelationshipsShipmentData) SetType(v interface{}) { +func (o *POSTAddresses201ResponseDataRelationshipsEventsData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTParcels201ResponseDataRelationshipsShipmentData) GetId() interface{} { +func (o *POSTAddresses201ResponseDataRelationshipsEventsData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *POSTParcels201ResponseDataRelationshipsShipmentData) GetId() interface{ // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTParcels201ResponseDataRelationshipsShipmentData) GetIdOk() (*interface{}, bool) { +func (o *POSTAddresses201ResponseDataRelationshipsEventsData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *POSTParcels201ResponseDataRelationshipsShipmentData) GetIdOk() (*interf } // HasId returns a boolean if a field has been set. -func (o *POSTParcels201ResponseDataRelationshipsShipmentData) HasId() bool { +func (o *POSTAddresses201ResponseDataRelationshipsEventsData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *POSTParcels201ResponseDataRelationshipsShipmentData) HasId() bool { } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *POSTParcels201ResponseDataRelationshipsShipmentData) SetId(v interface{}) { +func (o *POSTAddresses201ResponseDataRelationshipsEventsData) SetId(v interface{}) { o.Id = v } -func (o POSTParcels201ResponseDataRelationshipsShipmentData) MarshalJSON() ([]byte, error) { +func (o POSTAddresses201ResponseDataRelationshipsEventsData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o POSTParcels201ResponseDataRelationshipsShipmentData) MarshalJSON() ([]by return json.Marshal(toSerialize) } -func (o POSTParcels201ResponseDataRelationshipsShipmentData) ToMap() (map[string]interface{}, error) { +func (o POSTAddresses201ResponseDataRelationshipsEventsData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o POSTParcels201ResponseDataRelationshipsShipmentData) ToMap() (map[string return toSerialize, nil } -type NullablePOSTParcels201ResponseDataRelationshipsShipmentData struct { - value *POSTParcels201ResponseDataRelationshipsShipmentData +type NullablePOSTAddresses201ResponseDataRelationshipsEventsData struct { + value *POSTAddresses201ResponseDataRelationshipsEventsData isSet bool } -func (v NullablePOSTParcels201ResponseDataRelationshipsShipmentData) Get() *POSTParcels201ResponseDataRelationshipsShipmentData { +func (v NullablePOSTAddresses201ResponseDataRelationshipsEventsData) Get() *POSTAddresses201ResponseDataRelationshipsEventsData { return v.value } -func (v *NullablePOSTParcels201ResponseDataRelationshipsShipmentData) Set(val *POSTParcels201ResponseDataRelationshipsShipmentData) { +func (v *NullablePOSTAddresses201ResponseDataRelationshipsEventsData) Set(val *POSTAddresses201ResponseDataRelationshipsEventsData) { v.value = val v.isSet = true } -func (v NullablePOSTParcels201ResponseDataRelationshipsShipmentData) IsSet() bool { +func (v NullablePOSTAddresses201ResponseDataRelationshipsEventsData) IsSet() bool { return v.isSet } -func (v *NullablePOSTParcels201ResponseDataRelationshipsShipmentData) Unset() { +func (v *NullablePOSTAddresses201ResponseDataRelationshipsEventsData) Unset() { v.value = nil v.isSet = false } -func NewNullablePOSTParcels201ResponseDataRelationshipsShipmentData(val *POSTParcels201ResponseDataRelationshipsShipmentData) *NullablePOSTParcels201ResponseDataRelationshipsShipmentData { - return &NullablePOSTParcels201ResponseDataRelationshipsShipmentData{value: val, isSet: true} +func NewNullablePOSTAddresses201ResponseDataRelationshipsEventsData(val *POSTAddresses201ResponseDataRelationshipsEventsData) *NullablePOSTAddresses201ResponseDataRelationshipsEventsData { + return &NullablePOSTAddresses201ResponseDataRelationshipsEventsData{value: val, isSet: true} } -func (v NullablePOSTParcels201ResponseDataRelationshipsShipmentData) MarshalJSON() ([]byte, error) { +func (v NullablePOSTAddresses201ResponseDataRelationshipsEventsData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePOSTParcels201ResponseDataRelationshipsShipmentData) UnmarshalJSON(src []byte) error { +func (v *NullablePOSTAddresses201ResponseDataRelationshipsEventsData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_post_addresses_201_response_data_relationships_geocoder.go b/api/model_post_addresses_201_response_data_relationships_geocoder.go index 94072d10..2137ffe6 100644 --- a/api/model_post_addresses_201_response_data_relationships_geocoder.go +++ b/api/model_post_addresses_201_response_data_relationships_geocoder.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_addresses_201_response_data_relationships_geocoder_data.go b/api/model_post_addresses_201_response_data_relationships_geocoder_data.go index 77e1b61f..222d623f 100644 --- a/api/model_post_addresses_201_response_data_relationships_geocoder_data.go +++ b/api/model_post_addresses_201_response_data_relationships_geocoder_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_addresses_201_response_data_relationships_geocoder_links.go b/api/model_post_addresses_201_response_data_relationships_geocoder_links.go index af3e121e..3d9a8981 100644 --- a/api/model_post_addresses_201_response_data_relationships_geocoder_links.go +++ b/api/model_post_addresses_201_response_data_relationships_geocoder_links.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_addresses_201_response_data_relationships_tags.go b/api/model_post_addresses_201_response_data_relationships_tags.go new file mode 100644 index 00000000..2db0d435 --- /dev/null +++ b/api/model_post_addresses_201_response_data_relationships_tags.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTAddresses201ResponseDataRelationshipsTags type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTAddresses201ResponseDataRelationshipsTags{} + +// POSTAddresses201ResponseDataRelationshipsTags struct for POSTAddresses201ResponseDataRelationshipsTags +type POSTAddresses201ResponseDataRelationshipsTags struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTAddresses201ResponseDataRelationshipsTagsData `json:"data,omitempty"` +} + +// NewPOSTAddresses201ResponseDataRelationshipsTags instantiates a new POSTAddresses201ResponseDataRelationshipsTags object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTAddresses201ResponseDataRelationshipsTags() *POSTAddresses201ResponseDataRelationshipsTags { + this := POSTAddresses201ResponseDataRelationshipsTags{} + return &this +} + +// NewPOSTAddresses201ResponseDataRelationshipsTagsWithDefaults instantiates a new POSTAddresses201ResponseDataRelationshipsTags object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTAddresses201ResponseDataRelationshipsTagsWithDefaults() *POSTAddresses201ResponseDataRelationshipsTags { + this := POSTAddresses201ResponseDataRelationshipsTags{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTAddresses201ResponseDataRelationshipsTags) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTAddresses201ResponseDataRelationshipsTags) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTAddresses201ResponseDataRelationshipsTags) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTAddresses201ResponseDataRelationshipsTags) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTAddresses201ResponseDataRelationshipsTags) GetData() POSTAddresses201ResponseDataRelationshipsTagsData { + if o == nil || IsNil(o.Data) { + var ret POSTAddresses201ResponseDataRelationshipsTagsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTAddresses201ResponseDataRelationshipsTags) GetDataOk() (*POSTAddresses201ResponseDataRelationshipsTagsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTAddresses201ResponseDataRelationshipsTags) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTAddresses201ResponseDataRelationshipsTagsData and assigns it to the Data field. +func (o *POSTAddresses201ResponseDataRelationshipsTags) SetData(v POSTAddresses201ResponseDataRelationshipsTagsData) { + o.Data = &v +} + +func (o POSTAddresses201ResponseDataRelationshipsTags) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTAddresses201ResponseDataRelationshipsTags) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTAddresses201ResponseDataRelationshipsTags struct { + value *POSTAddresses201ResponseDataRelationshipsTags + isSet bool +} + +func (v NullablePOSTAddresses201ResponseDataRelationshipsTags) Get() *POSTAddresses201ResponseDataRelationshipsTags { + return v.value +} + +func (v *NullablePOSTAddresses201ResponseDataRelationshipsTags) Set(val *POSTAddresses201ResponseDataRelationshipsTags) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTAddresses201ResponseDataRelationshipsTags) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTAddresses201ResponseDataRelationshipsTags) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTAddresses201ResponseDataRelationshipsTags(val *POSTAddresses201ResponseDataRelationshipsTags) *NullablePOSTAddresses201ResponseDataRelationshipsTags { + return &NullablePOSTAddresses201ResponseDataRelationshipsTags{value: val, isSet: true} +} + +func (v NullablePOSTAddresses201ResponseDataRelationshipsTags) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTAddresses201ResponseDataRelationshipsTags) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_order_subscription_data_relationships_order_copies_data.go b/api/model_post_addresses_201_response_data_relationships_tags_data.go similarity index 54% rename from api/model_order_subscription_data_relationships_order_copies_data.go rename to api/model_post_addresses_201_response_data_relationships_tags_data.go index 057bba36..a12f95c7 100644 --- a/api/model_order_subscription_data_relationships_order_copies_data.go +++ b/api/model_post_addresses_201_response_data_relationships_tags_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the OrderSubscriptionDataRelationshipsOrderCopiesData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &OrderSubscriptionDataRelationshipsOrderCopiesData{} +// checks if the POSTAddresses201ResponseDataRelationshipsTagsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTAddresses201ResponseDataRelationshipsTagsData{} -// OrderSubscriptionDataRelationshipsOrderCopiesData struct for OrderSubscriptionDataRelationshipsOrderCopiesData -type OrderSubscriptionDataRelationshipsOrderCopiesData struct { +// POSTAddresses201ResponseDataRelationshipsTagsData struct for POSTAddresses201ResponseDataRelationshipsTagsData +type POSTAddresses201ResponseDataRelationshipsTagsData struct { // The resource's type Type interface{} `json:"type,omitempty"` - // The resource's id + // The resource ID Id interface{} `json:"id,omitempty"` } -// NewOrderSubscriptionDataRelationshipsOrderCopiesData instantiates a new OrderSubscriptionDataRelationshipsOrderCopiesData object +// NewPOSTAddresses201ResponseDataRelationshipsTagsData instantiates a new POSTAddresses201ResponseDataRelationshipsTagsData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewOrderSubscriptionDataRelationshipsOrderCopiesData() *OrderSubscriptionDataRelationshipsOrderCopiesData { - this := OrderSubscriptionDataRelationshipsOrderCopiesData{} +func NewPOSTAddresses201ResponseDataRelationshipsTagsData() *POSTAddresses201ResponseDataRelationshipsTagsData { + this := POSTAddresses201ResponseDataRelationshipsTagsData{} return &this } -// NewOrderSubscriptionDataRelationshipsOrderCopiesDataWithDefaults instantiates a new OrderSubscriptionDataRelationshipsOrderCopiesData object +// NewPOSTAddresses201ResponseDataRelationshipsTagsDataWithDefaults instantiates a new POSTAddresses201ResponseDataRelationshipsTagsData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewOrderSubscriptionDataRelationshipsOrderCopiesDataWithDefaults() *OrderSubscriptionDataRelationshipsOrderCopiesData { - this := OrderSubscriptionDataRelationshipsOrderCopiesData{} +func NewPOSTAddresses201ResponseDataRelationshipsTagsDataWithDefaults() *POSTAddresses201ResponseDataRelationshipsTagsData { + this := POSTAddresses201ResponseDataRelationshipsTagsData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) GetType() interface{} { +func (o *POSTAddresses201ResponseDataRelationshipsTagsData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) GetType() interface{ // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) GetTypeOk() (*interface{}, bool) { +func (o *POSTAddresses201ResponseDataRelationshipsTagsData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) GetTypeOk() (*interf } // HasType returns a boolean if a field has been set. -func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) HasType() bool { +func (o *POSTAddresses201ResponseDataRelationshipsTagsData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) HasType() bool { } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) SetType(v interface{}) { +func (o *POSTAddresses201ResponseDataRelationshipsTagsData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) GetId() interface{} { +func (o *POSTAddresses201ResponseDataRelationshipsTagsData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) GetId() interface{} // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) GetIdOk() (*interface{}, bool) { +func (o *POSTAddresses201ResponseDataRelationshipsTagsData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) GetIdOk() (*interfac } // HasId returns a boolean if a field has been set. -func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) HasId() bool { +func (o *POSTAddresses201ResponseDataRelationshipsTagsData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) HasId() bool { } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *OrderSubscriptionDataRelationshipsOrderCopiesData) SetId(v interface{}) { +func (o *POSTAddresses201ResponseDataRelationshipsTagsData) SetId(v interface{}) { o.Id = v } -func (o OrderSubscriptionDataRelationshipsOrderCopiesData) MarshalJSON() ([]byte, error) { +func (o POSTAddresses201ResponseDataRelationshipsTagsData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o OrderSubscriptionDataRelationshipsOrderCopiesData) MarshalJSON() ([]byte return json.Marshal(toSerialize) } -func (o OrderSubscriptionDataRelationshipsOrderCopiesData) ToMap() (map[string]interface{}, error) { +func (o POSTAddresses201ResponseDataRelationshipsTagsData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o OrderSubscriptionDataRelationshipsOrderCopiesData) ToMap() (map[string]i return toSerialize, nil } -type NullableOrderSubscriptionDataRelationshipsOrderCopiesData struct { - value *OrderSubscriptionDataRelationshipsOrderCopiesData +type NullablePOSTAddresses201ResponseDataRelationshipsTagsData struct { + value *POSTAddresses201ResponseDataRelationshipsTagsData isSet bool } -func (v NullableOrderSubscriptionDataRelationshipsOrderCopiesData) Get() *OrderSubscriptionDataRelationshipsOrderCopiesData { +func (v NullablePOSTAddresses201ResponseDataRelationshipsTagsData) Get() *POSTAddresses201ResponseDataRelationshipsTagsData { return v.value } -func (v *NullableOrderSubscriptionDataRelationshipsOrderCopiesData) Set(val *OrderSubscriptionDataRelationshipsOrderCopiesData) { +func (v *NullablePOSTAddresses201ResponseDataRelationshipsTagsData) Set(val *POSTAddresses201ResponseDataRelationshipsTagsData) { v.value = val v.isSet = true } -func (v NullableOrderSubscriptionDataRelationshipsOrderCopiesData) IsSet() bool { +func (v NullablePOSTAddresses201ResponseDataRelationshipsTagsData) IsSet() bool { return v.isSet } -func (v *NullableOrderSubscriptionDataRelationshipsOrderCopiesData) Unset() { +func (v *NullablePOSTAddresses201ResponseDataRelationshipsTagsData) Unset() { v.value = nil v.isSet = false } -func NewNullableOrderSubscriptionDataRelationshipsOrderCopiesData(val *OrderSubscriptionDataRelationshipsOrderCopiesData) *NullableOrderSubscriptionDataRelationshipsOrderCopiesData { - return &NullableOrderSubscriptionDataRelationshipsOrderCopiesData{value: val, isSet: true} +func NewNullablePOSTAddresses201ResponseDataRelationshipsTagsData(val *POSTAddresses201ResponseDataRelationshipsTagsData) *NullablePOSTAddresses201ResponseDataRelationshipsTagsData { + return &NullablePOSTAddresses201ResponseDataRelationshipsTagsData{value: val, isSet: true} } -func (v NullableOrderSubscriptionDataRelationshipsOrderCopiesData) MarshalJSON() ([]byte, error) { +func (v NullablePOSTAddresses201ResponseDataRelationshipsTagsData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableOrderSubscriptionDataRelationshipsOrderCopiesData) UnmarshalJSON(src []byte) error { +func (v *NullablePOSTAddresses201ResponseDataRelationshipsTagsData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_post_addresses_201_response_data_relationships_versions.go b/api/model_post_addresses_201_response_data_relationships_versions.go new file mode 100644 index 00000000..ca35c5b1 --- /dev/null +++ b/api/model_post_addresses_201_response_data_relationships_versions.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTAddresses201ResponseDataRelationshipsVersions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTAddresses201ResponseDataRelationshipsVersions{} + +// POSTAddresses201ResponseDataRelationshipsVersions struct for POSTAddresses201ResponseDataRelationshipsVersions +type POSTAddresses201ResponseDataRelationshipsVersions struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTAddresses201ResponseDataRelationshipsVersionsData `json:"data,omitempty"` +} + +// NewPOSTAddresses201ResponseDataRelationshipsVersions instantiates a new POSTAddresses201ResponseDataRelationshipsVersions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTAddresses201ResponseDataRelationshipsVersions() *POSTAddresses201ResponseDataRelationshipsVersions { + this := POSTAddresses201ResponseDataRelationshipsVersions{} + return &this +} + +// NewPOSTAddresses201ResponseDataRelationshipsVersionsWithDefaults instantiates a new POSTAddresses201ResponseDataRelationshipsVersions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTAddresses201ResponseDataRelationshipsVersionsWithDefaults() *POSTAddresses201ResponseDataRelationshipsVersions { + this := POSTAddresses201ResponseDataRelationshipsVersions{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTAddresses201ResponseDataRelationshipsVersions) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTAddresses201ResponseDataRelationshipsVersions) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTAddresses201ResponseDataRelationshipsVersions) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTAddresses201ResponseDataRelationshipsVersions) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTAddresses201ResponseDataRelationshipsVersions) GetData() POSTAddresses201ResponseDataRelationshipsVersionsData { + if o == nil || IsNil(o.Data) { + var ret POSTAddresses201ResponseDataRelationshipsVersionsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTAddresses201ResponseDataRelationshipsVersions) GetDataOk() (*POSTAddresses201ResponseDataRelationshipsVersionsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTAddresses201ResponseDataRelationshipsVersions) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersionsData and assigns it to the Data field. +func (o *POSTAddresses201ResponseDataRelationshipsVersions) SetData(v POSTAddresses201ResponseDataRelationshipsVersionsData) { + o.Data = &v +} + +func (o POSTAddresses201ResponseDataRelationshipsVersions) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTAddresses201ResponseDataRelationshipsVersions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTAddresses201ResponseDataRelationshipsVersions struct { + value *POSTAddresses201ResponseDataRelationshipsVersions + isSet bool +} + +func (v NullablePOSTAddresses201ResponseDataRelationshipsVersions) Get() *POSTAddresses201ResponseDataRelationshipsVersions { + return v.value +} + +func (v *NullablePOSTAddresses201ResponseDataRelationshipsVersions) Set(val *POSTAddresses201ResponseDataRelationshipsVersions) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTAddresses201ResponseDataRelationshipsVersions) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTAddresses201ResponseDataRelationshipsVersions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTAddresses201ResponseDataRelationshipsVersions(val *POSTAddresses201ResponseDataRelationshipsVersions) *NullablePOSTAddresses201ResponseDataRelationshipsVersions { + return &NullablePOSTAddresses201ResponseDataRelationshipsVersions{value: val, isSet: true} +} + +func (v NullablePOSTAddresses201ResponseDataRelationshipsVersions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTAddresses201ResponseDataRelationshipsVersions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_addresses_201_response_data_relationships_versions_data.go b/api/model_post_addresses_201_response_data_relationships_versions_data.go new file mode 100644 index 00000000..256a4ec4 --- /dev/null +++ b/api/model_post_addresses_201_response_data_relationships_versions_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTAddresses201ResponseDataRelationshipsVersionsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTAddresses201ResponseDataRelationshipsVersionsData{} + +// POSTAddresses201ResponseDataRelationshipsVersionsData struct for POSTAddresses201ResponseDataRelationshipsVersionsData +type POSTAddresses201ResponseDataRelationshipsVersionsData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTAddresses201ResponseDataRelationshipsVersionsData instantiates a new POSTAddresses201ResponseDataRelationshipsVersionsData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTAddresses201ResponseDataRelationshipsVersionsData() *POSTAddresses201ResponseDataRelationshipsVersionsData { + this := POSTAddresses201ResponseDataRelationshipsVersionsData{} + return &this +} + +// NewPOSTAddresses201ResponseDataRelationshipsVersionsDataWithDefaults instantiates a new POSTAddresses201ResponseDataRelationshipsVersionsData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTAddresses201ResponseDataRelationshipsVersionsDataWithDefaults() *POSTAddresses201ResponseDataRelationshipsVersionsData { + this := POSTAddresses201ResponseDataRelationshipsVersionsData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTAddresses201ResponseDataRelationshipsVersionsData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTAddresses201ResponseDataRelationshipsVersionsData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTAddresses201ResponseDataRelationshipsVersionsData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTAddresses201ResponseDataRelationshipsVersionsData struct { + value *POSTAddresses201ResponseDataRelationshipsVersionsData + isSet bool +} + +func (v NullablePOSTAddresses201ResponseDataRelationshipsVersionsData) Get() *POSTAddresses201ResponseDataRelationshipsVersionsData { + return v.value +} + +func (v *NullablePOSTAddresses201ResponseDataRelationshipsVersionsData) Set(val *POSTAddresses201ResponseDataRelationshipsVersionsData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTAddresses201ResponseDataRelationshipsVersionsData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTAddresses201ResponseDataRelationshipsVersionsData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTAddresses201ResponseDataRelationshipsVersionsData(val *POSTAddresses201ResponseDataRelationshipsVersionsData) *NullablePOSTAddresses201ResponseDataRelationshipsVersionsData { + return &NullablePOSTAddresses201ResponseDataRelationshipsVersionsData{value: val, isSet: true} +} + +func (v NullablePOSTAddresses201ResponseDataRelationshipsVersionsData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTAddresses201ResponseDataRelationshipsVersionsData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_adjustments_201_response.go b/api/model_post_adjustments_201_response.go index 7db9b3aa..5633789b 100644 --- a/api/model_post_adjustments_201_response.go +++ b/api/model_post_adjustments_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_adjustments_201_response_data.go b/api/model_post_adjustments_201_response_data.go index ac22733b..1b31a8c1 100644 --- a/api/model_post_adjustments_201_response_data.go +++ b/api/model_post_adjustments_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type POSTAdjustments201ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *POSTAdjustments201ResponseDataAttributes `json:"attributes,omitempty"` - Relationships interface{} `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTAdjustments201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTAdjustments201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPOSTAdjustments201ResponseData instantiates a new POSTAdjustments201ResponseData object @@ -176,37 +176,36 @@ func (o *POSTAdjustments201ResponseData) SetAttributes(v POSTAdjustments201Respo o.Attributes = &v } -// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTAdjustments201ResponseData) GetRelationships() interface{} { - if o == nil { - var ret interface{} +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *POSTAdjustments201ResponseData) GetRelationships() POSTAdjustments201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTAdjustments201ResponseDataRelationships return ret } - return o.Relationships + return *o.Relationships } // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTAdjustments201ResponseData) GetRelationshipsOk() (*interface{}, bool) { +func (o *POSTAdjustments201ResponseData) GetRelationshipsOk() (*POSTAdjustments201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } - return &o.Relationships, true + return o.Relationships, true } // HasRelationships returns a boolean if a field has been set. func (o *POSTAdjustments201ResponseData) HasRelationships() bool { - if o != nil && IsNil(o.Relationships) { + if o != nil && !IsNil(o.Relationships) { return true } return false } -// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. -func (o *POSTAdjustments201ResponseData) SetRelationships(v interface{}) { - o.Relationships = v +// SetRelationships gets a reference to the given POSTAdjustments201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTAdjustments201ResponseData) SetRelationships(v POSTAdjustments201ResponseDataRelationships) { + o.Relationships = &v } func (o POSTAdjustments201ResponseData) MarshalJSON() ([]byte, error) { @@ -231,7 +230,7 @@ func (o POSTAdjustments201ResponseData) ToMap() (map[string]interface{}, error) if !IsNil(o.Attributes) { toSerialize["attributes"] = o.Attributes } - if o.Relationships != nil { + if !IsNil(o.Relationships) { toSerialize["relationships"] = o.Relationships } return toSerialize, nil diff --git a/api/model_post_adjustments_201_response_data_attributes.go b/api/model_post_adjustments_201_response_data_attributes.go index 4e276228..f60d71eb 100644 --- a/api/model_post_adjustments_201_response_data_attributes.go +++ b/api/model_post_adjustments_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,15 +20,17 @@ var _ MappedNullable = &POSTAdjustments201ResponseDataAttributes{} // POSTAdjustments201ResponseDataAttributes struct for POSTAdjustments201ResponseDataAttributes type POSTAdjustments201ResponseDataAttributes struct { - // The adjustment name + // The adjustment name. Name interface{} `json:"name"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code"` // The adjustment amount, in cents. AmountCents interface{} `json:"amount_cents"` + // Indicates if negative adjustment amount is distributed for tax calculation. + DistributeDiscount interface{} `json:"distribute_discount,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -132,6 +134,39 @@ func (o *POSTAdjustments201ResponseDataAttributes) SetAmountCents(v interface{}) o.AmountCents = v } +// GetDistributeDiscount returns the DistributeDiscount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTAdjustments201ResponseDataAttributes) GetDistributeDiscount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DistributeDiscount +} + +// GetDistributeDiscountOk returns a tuple with the DistributeDiscount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTAdjustments201ResponseDataAttributes) GetDistributeDiscountOk() (*interface{}, bool) { + if o == nil || IsNil(o.DistributeDiscount) { + return nil, false + } + return &o.DistributeDiscount, true +} + +// HasDistributeDiscount returns a boolean if a field has been set. +func (o *POSTAdjustments201ResponseDataAttributes) HasDistributeDiscount() bool { + if o != nil && IsNil(o.DistributeDiscount) { + return true + } + + return false +} + +// SetDistributeDiscount gets a reference to the given interface{} and assigns it to the DistributeDiscount field. +func (o *POSTAdjustments201ResponseDataAttributes) SetDistributeDiscount(v interface{}) { + o.DistributeDiscount = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTAdjustments201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -250,6 +285,9 @@ func (o POSTAdjustments201ResponseDataAttributes) ToMap() (map[string]interface{ if o.AmountCents != nil { toSerialize["amount_cents"] = o.AmountCents } + if o.DistributeDiscount != nil { + toSerialize["distribute_discount"] = o.DistributeDiscount + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_adjustments_201_response_data_relationships.go b/api/model_post_adjustments_201_response_data_relationships.go new file mode 100644 index 00000000..a5952367 --- /dev/null +++ b/api/model_post_adjustments_201_response_data_relationships.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTAdjustments201ResponseDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTAdjustments201ResponseDataRelationships{} + +// POSTAdjustments201ResponseDataRelationships struct for POSTAdjustments201ResponseDataRelationships +type POSTAdjustments201ResponseDataRelationships struct { + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewPOSTAdjustments201ResponseDataRelationships instantiates a new POSTAdjustments201ResponseDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTAdjustments201ResponseDataRelationships() *POSTAdjustments201ResponseDataRelationships { + this := POSTAdjustments201ResponseDataRelationships{} + return &this +} + +// NewPOSTAdjustments201ResponseDataRelationshipsWithDefaults instantiates a new POSTAdjustments201ResponseDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTAdjustments201ResponseDataRelationshipsWithDefaults() *POSTAdjustments201ResponseDataRelationships { + this := POSTAdjustments201ResponseDataRelationships{} + return &this +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTAdjustments201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTAdjustments201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTAdjustments201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTAdjustments201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + +func (o POSTAdjustments201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTAdjustments201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullablePOSTAdjustments201ResponseDataRelationships struct { + value *POSTAdjustments201ResponseDataRelationships + isSet bool +} + +func (v NullablePOSTAdjustments201ResponseDataRelationships) Get() *POSTAdjustments201ResponseDataRelationships { + return v.value +} + +func (v *NullablePOSTAdjustments201ResponseDataRelationships) Set(val *POSTAdjustments201ResponseDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTAdjustments201ResponseDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTAdjustments201ResponseDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTAdjustments201ResponseDataRelationships(val *POSTAdjustments201ResponseDataRelationships) *NullablePOSTAdjustments201ResponseDataRelationships { + return &NullablePOSTAdjustments201ResponseDataRelationships{value: val, isSet: true} +} + +func (v NullablePOSTAdjustments201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTAdjustments201ResponseDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_adyen_gateways_201_response.go b/api/model_post_adyen_gateways_201_response.go index bdb8df26..c35fd278 100644 --- a/api/model_post_adyen_gateways_201_response.go +++ b/api/model_post_adyen_gateways_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_adyen_gateways_201_response_data.go b/api/model_post_adyen_gateways_201_response_data.go index 58c68787..668dca7c 100644 --- a/api/model_post_adyen_gateways_201_response_data.go +++ b/api/model_post_adyen_gateways_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_adyen_gateways_201_response_data_attributes.go b/api/model_post_adyen_gateways_201_response_data_attributes.go index 77ddd658..24231cf8 100644 --- a/api/model_post_adyen_gateways_201_response_data_attributes.go +++ b/api/model_post_adyen_gateways_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type POSTAdyenGateways201ResponseDataAttributes struct { Name interface{} `json:"name"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -36,10 +36,12 @@ type POSTAdyenGateways201ResponseDataAttributes struct { PublicKey interface{} `json:"public_key,omitempty"` // The prefix of the endpoint used for live transactions. LiveUrlPrefix interface{} `json:"live_url_prefix"` - // The checkout API version, supported range is from 66 to 68, default is 68. + // The checkout API version, supported range is from 66 to 71, default is 71. ApiVersion interface{} `json:"api_version,omitempty"` - // Indicates if the gateway will leverage on the Adyen notification webhooks. + // Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version. AsyncApi interface{} `json:"async_api,omitempty"` + // Indicates if the gateway will use the native customer payment sources. + NativeCustomerPaymentSources interface{} `json:"native_customer_payment_sources,omitempty"` // The gateway webhook endpoint secret, generated by Adyen customer area. WebhookEndpointSecret interface{} `json:"webhook_endpoint_secret,omitempty"` } @@ -367,6 +369,39 @@ func (o *POSTAdyenGateways201ResponseDataAttributes) SetAsyncApi(v interface{}) o.AsyncApi = v } +// GetNativeCustomerPaymentSources returns the NativeCustomerPaymentSources field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTAdyenGateways201ResponseDataAttributes) GetNativeCustomerPaymentSources() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.NativeCustomerPaymentSources +} + +// GetNativeCustomerPaymentSourcesOk returns a tuple with the NativeCustomerPaymentSources field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTAdyenGateways201ResponseDataAttributes) GetNativeCustomerPaymentSourcesOk() (*interface{}, bool) { + if o == nil || IsNil(o.NativeCustomerPaymentSources) { + return nil, false + } + return &o.NativeCustomerPaymentSources, true +} + +// HasNativeCustomerPaymentSources returns a boolean if a field has been set. +func (o *POSTAdyenGateways201ResponseDataAttributes) HasNativeCustomerPaymentSources() bool { + if o != nil && IsNil(o.NativeCustomerPaymentSources) { + return true + } + + return false +} + +// SetNativeCustomerPaymentSources gets a reference to the given interface{} and assigns it to the NativeCustomerPaymentSources field. +func (o *POSTAdyenGateways201ResponseDataAttributes) SetNativeCustomerPaymentSources(v interface{}) { + o.NativeCustomerPaymentSources = v +} + // GetWebhookEndpointSecret returns the WebhookEndpointSecret field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTAdyenGateways201ResponseDataAttributes) GetWebhookEndpointSecret() interface{} { if o == nil { @@ -440,6 +475,9 @@ func (o POSTAdyenGateways201ResponseDataAttributes) ToMap() (map[string]interfac if o.AsyncApi != nil { toSerialize["async_api"] = o.AsyncApi } + if o.NativeCustomerPaymentSources != nil { + toSerialize["native_customer_payment_sources"] = o.NativeCustomerPaymentSources + } if o.WebhookEndpointSecret != nil { toSerialize["webhook_endpoint_secret"] = o.WebhookEndpointSecret } diff --git a/api/model_post_adyen_gateways_201_response_data_relationships.go b/api/model_post_adyen_gateways_201_response_data_relationships.go index 15150213..5affa9c0 100644 --- a/api/model_post_adyen_gateways_201_response_data_relationships.go +++ b/api/model_post_adyen_gateways_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &POSTAdyenGateways201ResponseDataRelationships{} // POSTAdyenGateways201ResponseDataRelationships struct for POSTAdyenGateways201ResponseDataRelationships type POSTAdyenGateways201ResponseDataRelationships struct { PaymentMethods *POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` AdyenPayments *POSTAdyenGateways201ResponseDataRelationshipsAdyenPayments `json:"adyen_payments,omitempty"` } @@ -73,6 +74,38 @@ func (o *POSTAdyenGateways201ResponseDataRelationships) SetPaymentMethods(v POST o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTAdyenGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTAdyenGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTAdyenGateways201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTAdyenGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + // GetAdyenPayments returns the AdyenPayments field value if set, zero value otherwise. func (o *POSTAdyenGateways201ResponseDataRelationships) GetAdyenPayments() POSTAdyenGateways201ResponseDataRelationshipsAdyenPayments { if o == nil || IsNil(o.AdyenPayments) { @@ -118,6 +151,9 @@ func (o POSTAdyenGateways201ResponseDataRelationships) ToMap() (map[string]inter if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.AdyenPayments) { toSerialize["adyen_payments"] = o.AdyenPayments } diff --git a/api/model_post_adyen_gateways_201_response_data_relationships_adyen_payments.go b/api/model_post_adyen_gateways_201_response_data_relationships_adyen_payments.go index 3b659da8..b93a780f 100644 --- a/api/model_post_adyen_gateways_201_response_data_relationships_adyen_payments.go +++ b/api/model_post_adyen_gateways_201_response_data_relationships_adyen_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_adyen_gateways_201_response_data_relationships_adyen_payments_data.go b/api/model_post_adyen_gateways_201_response_data_relationships_adyen_payments_data.go index 8d7302f2..58c68ecb 100644 --- a/api/model_post_adyen_gateways_201_response_data_relationships_adyen_payments_data.go +++ b/api/model_post_adyen_gateways_201_response_data_relationships_adyen_payments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_adyen_gateways_201_response_data_relationships_payment_methods.go b/api/model_post_adyen_gateways_201_response_data_relationships_payment_methods.go index 16d81951..0506fd11 100644 --- a/api/model_post_adyen_gateways_201_response_data_relationships_payment_methods.go +++ b/api/model_post_adyen_gateways_201_response_data_relationships_payment_methods.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_adyen_gateways_201_response_data_relationships_payment_methods_data.go b/api/model_post_adyen_gateways_201_response_data_relationships_payment_methods_data.go index 3b90dd4d..fdc78d8c 100644 --- a/api/model_post_adyen_gateways_201_response_data_relationships_payment_methods_data.go +++ b/api/model_post_adyen_gateways_201_response_data_relationships_payment_methods_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_adyen_payments_201_response.go b/api/model_post_adyen_payments_201_response.go index ed31c689..d3eca8b5 100644 --- a/api/model_post_adyen_payments_201_response.go +++ b/api/model_post_adyen_payments_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_adyen_payments_201_response_data.go b/api/model_post_adyen_payments_201_response_data.go index cc174760..420f5af3 100644 --- a/api/model_post_adyen_payments_201_response_data.go +++ b/api/model_post_adyen_payments_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_adyen_payments_201_response_data_attributes.go b/api/model_post_adyen_payments_201_response_data_attributes.go index 1d605391..e36712ad 100644 --- a/api/model_post_adyen_payments_201_response_data_attributes.go +++ b/api/model_post_adyen_payments_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,7 +22,7 @@ var _ MappedNullable = &POSTAdyenPayments201ResponseDataAttributes{} type POSTAdyenPayments201ResponseDataAttributes struct { // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_adyen_payments_201_response_data_relationships.go b/api/model_post_adyen_payments_201_response_data_relationships.go index bbae6824..ebdce69f 100644 --- a/api/model_post_adyen_payments_201_response_data_relationships.go +++ b/api/model_post_adyen_payments_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,6 +22,7 @@ var _ MappedNullable = &POSTAdyenPayments201ResponseDataRelationships{} type POSTAdyenPayments201ResponseDataRelationships struct { Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` PaymentGateway *POSTAdyenPayments201ResponseDataRelationshipsPaymentGateway `json:"payment_gateway,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTAdyenPayments201ResponseDataRelationships instantiates a new POSTAdyenPayments201ResponseDataRelationships object @@ -105,6 +106,38 @@ func (o *POSTAdyenPayments201ResponseDataRelationships) SetPaymentGateway(v POST o.PaymentGateway = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTAdyenPayments201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTAdyenPayments201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTAdyenPayments201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTAdyenPayments201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTAdyenPayments201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o POSTAdyenPayments201ResponseDataRelationships) ToMap() (map[string]inter if !IsNil(o.PaymentGateway) { toSerialize["payment_gateway"] = o.PaymentGateway } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_adyen_payments_201_response_data_relationships_order.go b/api/model_post_adyen_payments_201_response_data_relationships_order.go index a51ea827..dd30d263 100644 --- a/api/model_post_adyen_payments_201_response_data_relationships_order.go +++ b/api/model_post_adyen_payments_201_response_data_relationships_order.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_adyen_payments_201_response_data_relationships_order_data.go b/api/model_post_adyen_payments_201_response_data_relationships_order_data.go index 65303295..64633b25 100644 --- a/api/model_post_adyen_payments_201_response_data_relationships_order_data.go +++ b/api/model_post_adyen_payments_201_response_data_relationships_order_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_adyen_payments_201_response_data_relationships_payment_gateway.go b/api/model_post_adyen_payments_201_response_data_relationships_payment_gateway.go index 3ab169e7..b6ec165c 100644 --- a/api/model_post_adyen_payments_201_response_data_relationships_payment_gateway.go +++ b/api/model_post_adyen_payments_201_response_data_relationships_payment_gateway.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_adyen_payments_201_response_data_relationships_payment_gateway_data.go b/api/model_post_adyen_payments_201_response_data_relationships_payment_gateway_data.go index bb4cb5bd..8d85be73 100644 --- a/api/model_post_adyen_payments_201_response_data_relationships_payment_gateway_data.go +++ b/api/model_post_adyen_payments_201_response_data_relationships_payment_gateway_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_attachments_201_response.go b/api/model_post_attachments_201_response.go index 337bfb60..96246afd 100644 --- a/api/model_post_attachments_201_response.go +++ b/api/model_post_attachments_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_attachments_201_response_data.go b/api/model_post_attachments_201_response_data.go index 0d710731..354c9700 100644 --- a/api/model_post_attachments_201_response_data.go +++ b/api/model_post_attachments_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_attachments_201_response_data_attributes.go b/api/model_post_attachments_201_response_data_attributes.go index 8c17b87a..1fa578ae 100644 --- a/api/model_post_attachments_201_response_data_attributes.go +++ b/api/model_post_attachments_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,7 +28,7 @@ type POSTAttachments201ResponseDataAttributes struct { Url interface{} `json:"url,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_attachments_201_response_data_relationships.go b/api/model_post_attachments_201_response_data_relationships.go index 6b3a5bbb..fccd1ff7 100644 --- a/api/model_post_attachments_201_response_data_relationships.go +++ b/api/model_post_attachments_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_attachments_201_response_data_relationships_attachable.go b/api/model_post_attachments_201_response_data_relationships_attachable.go index 7d9209e1..9fc7ec53 100644 --- a/api/model_post_attachments_201_response_data_relationships_attachable.go +++ b/api/model_post_attachments_201_response_data_relationships_attachable.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_attachments_201_response_data_relationships_attachable_data.go b/api/model_post_attachments_201_response_data_relationships_attachable_data.go index c88ce510..70144ba6 100644 --- a/api/model_post_attachments_201_response_data_relationships_attachable_data.go +++ b/api/model_post_attachments_201_response_data_relationships_attachable_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_avalara_accounts_201_response.go b/api/model_post_avalara_accounts_201_response.go index b32e28d6..43bec6e3 100644 --- a/api/model_post_avalara_accounts_201_response.go +++ b/api/model_post_avalara_accounts_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_avalara_accounts_201_response_data.go b/api/model_post_avalara_accounts_201_response_data.go index 221d1678..87663e5c 100644 --- a/api/model_post_avalara_accounts_201_response_data.go +++ b/api/model_post_avalara_accounts_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_avalara_accounts_201_response_data_attributes.go b/api/model_post_avalara_accounts_201_response_data_attributes.go index 77cd32b9..b586302f 100644 --- a/api/model_post_avalara_accounts_201_response_data_attributes.go +++ b/api/model_post_avalara_accounts_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type POSTAvalaraAccounts201ResponseDataAttributes struct { Name interface{} `json:"name"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_avalara_accounts_201_response_data_relationships.go b/api/model_post_avalara_accounts_201_response_data_relationships.go index 0084b271..60def936 100644 --- a/api/model_post_avalara_accounts_201_response_data_relationships.go +++ b/api/model_post_avalara_accounts_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,11 @@ var _ MappedNullable = &POSTAvalaraAccounts201ResponseDataRelationships{} // POSTAvalaraAccounts201ResponseDataRelationships struct for POSTAvalaraAccounts201ResponseDataRelationships type POSTAvalaraAccounts201ResponseDataRelationships struct { - Markets *POSTAvalaraAccounts201ResponseDataRelationshipsMarkets `json:"markets,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` - TaxCategories *POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories `json:"tax_categories,omitempty"` + Markets *POSTAvalaraAccounts201ResponseDataRelationshipsMarkets `json:"markets,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` + TaxCategories *POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories `json:"tax_categories,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` } // NewPOSTAvalaraAccounts201ResponseDataRelationships instantiates a new POSTAvalaraAccounts201ResponseDataRelationships object @@ -75,9 +77,9 @@ func (o *POSTAvalaraAccounts201ResponseDataRelationships) SetMarkets(v POSTAvala } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTAvalaraAccounts201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTAvalaraAccounts201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -85,7 +87,7 @@ func (o *POSTAvalaraAccounts201ResponseDataRelationships) GetAttachments() POSTA // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTAvalaraAccounts201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTAvalaraAccounts201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -101,11 +103,43 @@ func (o *POSTAvalaraAccounts201ResponseDataRelationships) HasAttachments() bool return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTAvalaraAccounts201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTAvalaraAccounts201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTAvalaraAccounts201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTAvalaraAccounts201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTAvalaraAccounts201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTAvalaraAccounts201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + // GetTaxCategories returns the TaxCategories field value if set, zero value otherwise. func (o *POSTAvalaraAccounts201ResponseDataRelationships) GetTaxCategories() POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories { if o == nil || IsNil(o.TaxCategories) { @@ -138,6 +172,38 @@ func (o *POSTAvalaraAccounts201ResponseDataRelationships) SetTaxCategories(v POS o.TaxCategories = &v } +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *POSTAvalaraAccounts201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTAvalaraAccounts201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *POSTAvalaraAccounts201ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTAvalaraAccounts201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + func (o POSTAvalaraAccounts201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -154,9 +220,15 @@ func (o POSTAvalaraAccounts201ResponseDataRelationships) ToMap() (map[string]int if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.TaxCategories) { toSerialize["tax_categories"] = o.TaxCategories } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } return toSerialize, nil } diff --git a/api/model_post_avalara_accounts_201_response_data_relationships_attachments.go b/api/model_post_avalara_accounts_201_response_data_relationships_attachments.go deleted file mode 100644 index a92c6281..00000000 --- a/api/model_post_avalara_accounts_201_response_data_relationships_attachments.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the POSTAvalaraAccounts201ResponseDataRelationshipsAttachments type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTAvalaraAccounts201ResponseDataRelationshipsAttachments{} - -// POSTAvalaraAccounts201ResponseDataRelationshipsAttachments struct for POSTAvalaraAccounts201ResponseDataRelationshipsAttachments -type POSTAvalaraAccounts201ResponseDataRelationshipsAttachments struct { - Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` - Data *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData `json:"data,omitempty"` -} - -// NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachments instantiates a new POSTAvalaraAccounts201ResponseDataRelationshipsAttachments object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachments() *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { - this := POSTAvalaraAccounts201ResponseDataRelationshipsAttachments{} - return &this -} - -// NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsWithDefaults instantiates a new POSTAvalaraAccounts201ResponseDataRelationshipsAttachments object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsWithDefaults() *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { - this := POSTAvalaraAccounts201ResponseDataRelationshipsAttachments{} - return &this -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { - if o == nil || IsNil(o.Links) { - var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. -func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { - o.Links = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) GetData() POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData { - if o == nil || IsNil(o.Data) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) GetDataOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData and assigns it to the Data field. -func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) SetData(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) { - o.Data = &v -} - -func (o POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachments struct { - value *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments - isSet bool -} - -func (v NullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachments) Get() *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { - return v.value -} - -func (v *NullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachments) Set(val *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { - v.value = val - v.isSet = true -} - -func (v NullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachments) IsSet() bool { - return v.isSet -} - -func (v *NullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachments) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachments(val *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) *NullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachments { - return &NullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachments{value: val, isSet: true} -} - -func (v NullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachments) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachments) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_post_avalara_accounts_201_response_data_relationships_attachments_data.go b/api/model_post_avalara_accounts_201_response_data_relationships_attachments_data.go deleted file mode 100644 index 452ef5bd..00000000 --- a/api/model_post_avalara_accounts_201_response_data_relationships_attachments_data.go +++ /dev/null @@ -1,165 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData{} - -// POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData struct for POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData -type POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData struct { - // The resource's type - Type interface{} `json:"type,omitempty"` - // The resource ID - Id interface{} `json:"id,omitempty"` -} - -// NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData instantiates a new POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData() *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData { - this := POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData{} - return &this -} - -// NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsDataWithDefaults instantiates a new POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsDataWithDefaults() *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData { - this := POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) GetType() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) GetTypeOk() (*interface{}, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return &o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) HasType() bool { - if o != nil && IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) SetType(v interface{}) { - o.Type = v -} - -// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) GetId() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) GetIdOk() (*interface{}, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return &o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) HasId() bool { - if o != nil && IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) SetId(v interface{}) { - o.Id = v -} - -func (o POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if o.Type != nil { - toSerialize["type"] = o.Type - } - if o.Id != nil { - toSerialize["id"] = o.Id - } - return toSerialize, nil -} - -type NullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData struct { - value *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData - isSet bool -} - -func (v NullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) Get() *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData { - return v.value -} - -func (v *NullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) Set(val *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) { - v.value = val - v.isSet = true -} - -func (v NullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) IsSet() bool { - return v.isSet -} - -func (v *NullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData(val *POSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) *NullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData { - return &NullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData{value: val, isSet: true} -} - -func (v NullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePOSTAvalaraAccounts201ResponseDataRelationshipsAttachmentsData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_post_avalara_accounts_201_response_data_relationships_markets.go b/api/model_post_avalara_accounts_201_response_data_relationships_markets.go index 7964bad7..e039be4f 100644 --- a/api/model_post_avalara_accounts_201_response_data_relationships_markets.go +++ b/api/model_post_avalara_accounts_201_response_data_relationships_markets.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_avalara_accounts_201_response_data_relationships_markets_data.go b/api/model_post_avalara_accounts_201_response_data_relationships_markets_data.go index 9212015b..bc2aa1de 100644 --- a/api/model_post_avalara_accounts_201_response_data_relationships_markets_data.go +++ b/api/model_post_avalara_accounts_201_response_data_relationships_markets_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_avalara_accounts_201_response_data_relationships_tax_categories.go b/api/model_post_avalara_accounts_201_response_data_relationships_tax_categories.go index 44b33929..cfe81b4c 100644 --- a/api/model_post_avalara_accounts_201_response_data_relationships_tax_categories.go +++ b/api/model_post_avalara_accounts_201_response_data_relationships_tax_categories.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_avalara_accounts_201_response_data_relationships_tax_categories_data.go b/api/model_post_avalara_accounts_201_response_data_relationships_tax_categories_data.go index 25dd1833..68c64ac2 100644 --- a/api/model_post_avalara_accounts_201_response_data_relationships_tax_categories_data.go +++ b/api/model_post_avalara_accounts_201_response_data_relationships_tax_categories_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_axerve_gateways_201_response.go b/api/model_post_axerve_gateways_201_response.go index 797b3cc9..bee6e789 100644 --- a/api/model_post_axerve_gateways_201_response.go +++ b/api/model_post_axerve_gateways_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_axerve_gateways_201_response_data.go b/api/model_post_axerve_gateways_201_response_data.go index 2c85162f..4b6a9e13 100644 --- a/api/model_post_axerve_gateways_201_response_data.go +++ b/api/model_post_axerve_gateways_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_axerve_gateways_201_response_data_attributes.go b/api/model_post_axerve_gateways_201_response_data_attributes.go index 554b4042..9ba6919d 100644 --- a/api/model_post_axerve_gateways_201_response_data_attributes.go +++ b/api/model_post_axerve_gateways_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type POSTAxerveGateways201ResponseDataAttributes struct { Name interface{} `json:"name"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_axerve_gateways_201_response_data_relationships.go b/api/model_post_axerve_gateways_201_response_data_relationships.go index 86e8bcaf..43901680 100644 --- a/api/model_post_axerve_gateways_201_response_data_relationships.go +++ b/api/model_post_axerve_gateways_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &POSTAxerveGateways201ResponseDataRelationships{} // POSTAxerveGateways201ResponseDataRelationships struct for POSTAxerveGateways201ResponseDataRelationships type POSTAxerveGateways201ResponseDataRelationships struct { PaymentMethods *POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` AxervePayments *POSTAxerveGateways201ResponseDataRelationshipsAxervePayments `json:"axerve_payments,omitempty"` } @@ -73,6 +74,38 @@ func (o *POSTAxerveGateways201ResponseDataRelationships) SetPaymentMethods(v POS o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTAxerveGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTAxerveGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTAxerveGateways201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTAxerveGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + // GetAxervePayments returns the AxervePayments field value if set, zero value otherwise. func (o *POSTAxerveGateways201ResponseDataRelationships) GetAxervePayments() POSTAxerveGateways201ResponseDataRelationshipsAxervePayments { if o == nil || IsNil(o.AxervePayments) { @@ -118,6 +151,9 @@ func (o POSTAxerveGateways201ResponseDataRelationships) ToMap() (map[string]inte if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.AxervePayments) { toSerialize["axerve_payments"] = o.AxervePayments } diff --git a/api/model_post_axerve_gateways_201_response_data_relationships_axerve_payments.go b/api/model_post_axerve_gateways_201_response_data_relationships_axerve_payments.go index bedc92ab..d76ffef0 100644 --- a/api/model_post_axerve_gateways_201_response_data_relationships_axerve_payments.go +++ b/api/model_post_axerve_gateways_201_response_data_relationships_axerve_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_axerve_gateways_201_response_data_relationships_axerve_payments_data.go b/api/model_post_axerve_gateways_201_response_data_relationships_axerve_payments_data.go index 654e7d50..7cae98eb 100644 --- a/api/model_post_axerve_gateways_201_response_data_relationships_axerve_payments_data.go +++ b/api/model_post_axerve_gateways_201_response_data_relationships_axerve_payments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_axerve_payments_201_response.go b/api/model_post_axerve_payments_201_response.go index 77e171d1..90066dc1 100644 --- a/api/model_post_axerve_payments_201_response.go +++ b/api/model_post_axerve_payments_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_axerve_payments_201_response_data.go b/api/model_post_axerve_payments_201_response_data.go index 35b6e8db..60490a08 100644 --- a/api/model_post_axerve_payments_201_response_data.go +++ b/api/model_post_axerve_payments_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_axerve_payments_201_response_data_attributes.go b/api/model_post_axerve_payments_201_response_data_attributes.go index e3745a33..6a2136c8 100644 --- a/api/model_post_axerve_payments_201_response_data_attributes.go +++ b/api/model_post_axerve_payments_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,9 +22,15 @@ var _ MappedNullable = &POSTAxervePayments201ResponseDataAttributes{} type POSTAxervePayments201ResponseDataAttributes struct { // The URL where the payer is redirected after they approve the payment. ReturnUrl interface{} `json:"return_url"` + // The IP adress of the client creating the payment. + ClientIp interface{} `json:"client_ip,omitempty"` + // The details of the buyer creating the payment. + BuyerDetails interface{} `json:"buyer_details,omitempty"` + // Requires the creation of a token to represent this payment, mandatory to use customer's wallet and order subscriptions. + RequestToken interface{} `json:"request_token,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -74,6 +80,105 @@ func (o *POSTAxervePayments201ResponseDataAttributes) SetReturnUrl(v interface{} o.ReturnUrl = v } +// GetClientIp returns the ClientIp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTAxervePayments201ResponseDataAttributes) GetClientIp() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ClientIp +} + +// GetClientIpOk returns a tuple with the ClientIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTAxervePayments201ResponseDataAttributes) GetClientIpOk() (*interface{}, bool) { + if o == nil || IsNil(o.ClientIp) { + return nil, false + } + return &o.ClientIp, true +} + +// HasClientIp returns a boolean if a field has been set. +func (o *POSTAxervePayments201ResponseDataAttributes) HasClientIp() bool { + if o != nil && IsNil(o.ClientIp) { + return true + } + + return false +} + +// SetClientIp gets a reference to the given interface{} and assigns it to the ClientIp field. +func (o *POSTAxervePayments201ResponseDataAttributes) SetClientIp(v interface{}) { + o.ClientIp = v +} + +// GetBuyerDetails returns the BuyerDetails field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTAxervePayments201ResponseDataAttributes) GetBuyerDetails() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.BuyerDetails +} + +// GetBuyerDetailsOk returns a tuple with the BuyerDetails field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTAxervePayments201ResponseDataAttributes) GetBuyerDetailsOk() (*interface{}, bool) { + if o == nil || IsNil(o.BuyerDetails) { + return nil, false + } + return &o.BuyerDetails, true +} + +// HasBuyerDetails returns a boolean if a field has been set. +func (o *POSTAxervePayments201ResponseDataAttributes) HasBuyerDetails() bool { + if o != nil && IsNil(o.BuyerDetails) { + return true + } + + return false +} + +// SetBuyerDetails gets a reference to the given interface{} and assigns it to the BuyerDetails field. +func (o *POSTAxervePayments201ResponseDataAttributes) SetBuyerDetails(v interface{}) { + o.BuyerDetails = v +} + +// GetRequestToken returns the RequestToken field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTAxervePayments201ResponseDataAttributes) GetRequestToken() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RequestToken +} + +// GetRequestTokenOk returns a tuple with the RequestToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTAxervePayments201ResponseDataAttributes) GetRequestTokenOk() (*interface{}, bool) { + if o == nil || IsNil(o.RequestToken) { + return nil, false + } + return &o.RequestToken, true +} + +// HasRequestToken returns a boolean if a field has been set. +func (o *POSTAxervePayments201ResponseDataAttributes) HasRequestToken() bool { + if o != nil && IsNil(o.RequestToken) { + return true + } + + return false +} + +// SetRequestToken gets a reference to the given interface{} and assigns it to the RequestToken field. +func (o *POSTAxervePayments201ResponseDataAttributes) SetRequestToken(v interface{}) { + o.RequestToken = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTAxervePayments201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -186,6 +291,15 @@ func (o POSTAxervePayments201ResponseDataAttributes) ToMap() (map[string]interfa if o.ReturnUrl != nil { toSerialize["return_url"] = o.ReturnUrl } + if o.ClientIp != nil { + toSerialize["client_ip"] = o.ClientIp + } + if o.BuyerDetails != nil { + toSerialize["buyer_details"] = o.BuyerDetails + } + if o.RequestToken != nil { + toSerialize["request_token"] = o.RequestToken + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_billing_info_validation_rules_201_response.go b/api/model_post_billing_info_validation_rules_201_response.go index e251923f..a2ea8184 100644 --- a/api/model_post_billing_info_validation_rules_201_response.go +++ b/api/model_post_billing_info_validation_rules_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_billing_info_validation_rules_201_response_data.go b/api/model_post_billing_info_validation_rules_201_response_data.go index 59dfd146..e2e02024 100644 --- a/api/model_post_billing_info_validation_rules_201_response_data.go +++ b/api/model_post_billing_info_validation_rules_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_billing_info_validation_rules_201_response_data_relationships.go b/api/model_post_billing_info_validation_rules_201_response_data_relationships.go index 43aad93a..0eacfd9f 100644 --- a/api/model_post_billing_info_validation_rules_201_response_data_relationships.go +++ b/api/model_post_billing_info_validation_rules_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,9 @@ var _ MappedNullable = &POSTBillingInfoValidationRules201ResponseDataRelationshi // POSTBillingInfoValidationRules201ResponseDataRelationships struct for POSTBillingInfoValidationRules201ResponseDataRelationships type POSTBillingInfoValidationRules201ResponseDataRelationships struct { - Market *POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket `json:"market,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Market *POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket `json:"market,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTBillingInfoValidationRules201ResponseDataRelationships instantiates a new POSTBillingInfoValidationRules201ResponseDataRelationships object @@ -74,9 +75,9 @@ func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) SetMarket(v } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -84,7 +85,7 @@ func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) GetAttachme // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -100,11 +101,43 @@ func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) HasAttachme return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTBillingInfoValidationRules201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTBillingInfoValidationRules201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o POSTBillingInfoValidationRules201ResponseDataRelationships) ToMap() (map if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_billing_info_validation_rules_201_response_data_relationships_market.go b/api/model_post_billing_info_validation_rules_201_response_data_relationships_market.go index 8ae41107..1fb630a6 100644 --- a/api/model_post_billing_info_validation_rules_201_response_data_relationships_market.go +++ b/api/model_post_billing_info_validation_rules_201_response_data_relationships_market.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_billing_info_validation_rules_201_response_data_relationships_market_data.go b/api/model_post_billing_info_validation_rules_201_response_data_relationships_market_data.go index 1ff08858..db79adb5 100644 --- a/api/model_post_billing_info_validation_rules_201_response_data_relationships_market_data.go +++ b/api/model_post_billing_info_validation_rules_201_response_data_relationships_market_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_bing_geocoders_201_response.go b/api/model_post_bing_geocoders_201_response.go index 5c63058a..7f686bfe 100644 --- a/api/model_post_bing_geocoders_201_response.go +++ b/api/model_post_bing_geocoders_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_bing_geocoders_201_response_data.go b/api/model_post_bing_geocoders_201_response_data.go index a2348ad9..73357f09 100644 --- a/api/model_post_bing_geocoders_201_response_data.go +++ b/api/model_post_bing_geocoders_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_bing_geocoders_201_response_data_attributes.go b/api/model_post_bing_geocoders_201_response_data_attributes.go index 8d3872bc..9d513e78 100644 --- a/api/model_post_bing_geocoders_201_response_data_attributes.go +++ b/api/model_post_bing_geocoders_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,15 +20,15 @@ var _ MappedNullable = &POSTBingGeocoders201ResponseDataAttributes{} // POSTBingGeocoders201ResponseDataAttributes struct for POSTBingGeocoders201ResponseDataAttributes type POSTBingGeocoders201ResponseDataAttributes struct { - // The geocoder's internal name + // The geocoder's internal name. Name interface{} `json:"name"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` - // The Bing Virtualearth key + // The Bing Virtualearth key. Key interface{} `json:"key"` } diff --git a/api/model_post_bing_geocoders_201_response_data_relationships.go b/api/model_post_bing_geocoders_201_response_data_relationships.go index f41d4c25..69677396 100644 --- a/api/model_post_bing_geocoders_201_response_data_relationships.go +++ b/api/model_post_bing_geocoders_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,9 @@ var _ MappedNullable = &POSTBingGeocoders201ResponseDataRelationships{} // POSTBingGeocoders201ResponseDataRelationships struct for POSTBingGeocoders201ResponseDataRelationships type POSTBingGeocoders201ResponseDataRelationships struct { - Addresses *POSTBingGeocoders201ResponseDataRelationshipsAddresses `json:"addresses,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Markets *POSTAvalaraAccounts201ResponseDataRelationshipsMarkets `json:"markets,omitempty"` + Addresses *POSTBingGeocoders201ResponseDataRelationshipsAddresses `json:"addresses,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` } // NewPOSTBingGeocoders201ResponseDataRelationships instantiates a new POSTBingGeocoders201ResponseDataRelationships object @@ -41,6 +42,38 @@ func NewPOSTBingGeocoders201ResponseDataRelationshipsWithDefaults() *POSTBingGeo return &this } +// GetMarkets returns the Markets field value if set, zero value otherwise. +func (o *POSTBingGeocoders201ResponseDataRelationships) GetMarkets() POSTAvalaraAccounts201ResponseDataRelationshipsMarkets { + if o == nil || IsNil(o.Markets) { + var ret POSTAvalaraAccounts201ResponseDataRelationshipsMarkets + return ret + } + return *o.Markets +} + +// GetMarketsOk returns a tuple with the Markets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBingGeocoders201ResponseDataRelationships) GetMarketsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsMarkets, bool) { + if o == nil || IsNil(o.Markets) { + return nil, false + } + return o.Markets, true +} + +// HasMarkets returns a boolean if a field has been set. +func (o *POSTBingGeocoders201ResponseDataRelationships) HasMarkets() bool { + if o != nil && !IsNil(o.Markets) { + return true + } + + return false +} + +// SetMarkets gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsMarkets and assigns it to the Markets field. +func (o *POSTBingGeocoders201ResponseDataRelationships) SetMarkets(v POSTAvalaraAccounts201ResponseDataRelationshipsMarkets) { + o.Markets = &v +} + // GetAddresses returns the Addresses field value if set, zero value otherwise. func (o *POSTBingGeocoders201ResponseDataRelationships) GetAddresses() POSTBingGeocoders201ResponseDataRelationshipsAddresses { if o == nil || IsNil(o.Addresses) { @@ -74,9 +107,9 @@ func (o *POSTBingGeocoders201ResponseDataRelationships) SetAddresses(v POSTBingG } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTBingGeocoders201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTBingGeocoders201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -84,7 +117,7 @@ func (o *POSTBingGeocoders201ResponseDataRelationships) GetAttachments() POSTAva // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTBingGeocoders201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTBingGeocoders201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -100,8 +133,8 @@ func (o *POSTBingGeocoders201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTBingGeocoders201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTBingGeocoders201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } @@ -115,6 +148,9 @@ func (o POSTBingGeocoders201ResponseDataRelationships) MarshalJSON() ([]byte, er func (o POSTBingGeocoders201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Markets) { + toSerialize["markets"] = o.Markets + } if !IsNil(o.Addresses) { toSerialize["addresses"] = o.Addresses } diff --git a/api/model_post_bing_geocoders_201_response_data_relationships_addresses.go b/api/model_post_bing_geocoders_201_response_data_relationships_addresses.go index 57edb900..af7bde10 100644 --- a/api/model_post_bing_geocoders_201_response_data_relationships_addresses.go +++ b/api/model_post_bing_geocoders_201_response_data_relationships_addresses.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_bing_geocoders_201_response_data_relationships_addresses_data.go b/api/model_post_bing_geocoders_201_response_data_relationships_addresses_data.go index 2eaaca48..38593e8d 100644 --- a/api/model_post_bing_geocoders_201_response_data_relationships_addresses_data.go +++ b/api/model_post_bing_geocoders_201_response_data_relationships_addresses_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_braintree_gateways_201_response.go b/api/model_post_braintree_gateways_201_response.go index 89632a0d..4a1199a1 100644 --- a/api/model_post_braintree_gateways_201_response.go +++ b/api/model_post_braintree_gateways_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_braintree_gateways_201_response_data.go b/api/model_post_braintree_gateways_201_response_data.go index 0bfe7675..f642c37b 100644 --- a/api/model_post_braintree_gateways_201_response_data.go +++ b/api/model_post_braintree_gateways_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_braintree_gateways_201_response_data_attributes.go b/api/model_post_braintree_gateways_201_response_data_attributes.go index 32a29dec..df4f2d88 100644 --- a/api/model_post_braintree_gateways_201_response_data_attributes.go +++ b/api/model_post_braintree_gateways_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type POSTBraintreeGateways201ResponseDataAttributes struct { Name interface{} `json:"name"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_braintree_gateways_201_response_data_relationships.go b/api/model_post_braintree_gateways_201_response_data_relationships.go index c0954409..c1ddfc98 100644 --- a/api/model_post_braintree_gateways_201_response_data_relationships.go +++ b/api/model_post_braintree_gateways_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &POSTBraintreeGateways201ResponseDataRelationships{} // POSTBraintreeGateways201ResponseDataRelationships struct for POSTBraintreeGateways201ResponseDataRelationships type POSTBraintreeGateways201ResponseDataRelationships struct { PaymentMethods *POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` BraintreePayments *POSTBraintreeGateways201ResponseDataRelationshipsBraintreePayments `json:"braintree_payments,omitempty"` } @@ -73,6 +74,38 @@ func (o *POSTBraintreeGateways201ResponseDataRelationships) SetPaymentMethods(v o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTBraintreeGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBraintreeGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTBraintreeGateways201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTBraintreeGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + // GetBraintreePayments returns the BraintreePayments field value if set, zero value otherwise. func (o *POSTBraintreeGateways201ResponseDataRelationships) GetBraintreePayments() POSTBraintreeGateways201ResponseDataRelationshipsBraintreePayments { if o == nil || IsNil(o.BraintreePayments) { @@ -118,6 +151,9 @@ func (o POSTBraintreeGateways201ResponseDataRelationships) ToMap() (map[string]i if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.BraintreePayments) { toSerialize["braintree_payments"] = o.BraintreePayments } diff --git a/api/model_post_braintree_gateways_201_response_data_relationships_braintree_payments.go b/api/model_post_braintree_gateways_201_response_data_relationships_braintree_payments.go index 1d06c5cf..4c269e71 100644 --- a/api/model_post_braintree_gateways_201_response_data_relationships_braintree_payments.go +++ b/api/model_post_braintree_gateways_201_response_data_relationships_braintree_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_braintree_gateways_201_response_data_relationships_braintree_payments_data.go b/api/model_post_braintree_gateways_201_response_data_relationships_braintree_payments_data.go index 4bebd0f5..e8a7495e 100644 --- a/api/model_post_braintree_gateways_201_response_data_relationships_braintree_payments_data.go +++ b/api/model_post_braintree_gateways_201_response_data_relationships_braintree_payments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_braintree_payments_201_response.go b/api/model_post_braintree_payments_201_response.go index 9a75c0ae..997add1f 100644 --- a/api/model_post_braintree_payments_201_response.go +++ b/api/model_post_braintree_payments_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_braintree_payments_201_response_data.go b/api/model_post_braintree_payments_201_response_data.go index c70ada05..8f67dc51 100644 --- a/api/model_post_braintree_payments_201_response_data.go +++ b/api/model_post_braintree_payments_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_braintree_payments_201_response_data_attributes.go b/api/model_post_braintree_payments_201_response_data_attributes.go index bfad2cb9..aa093ae7 100644 --- a/api/model_post_braintree_payments_201_response_data_attributes.go +++ b/api/model_post_braintree_payments_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,11 +24,11 @@ type POSTBraintreePayments201ResponseDataAttributes struct { PaymentId interface{} `json:"payment_id,omitempty"` // Indicates if the payment is local, in such case Braintree will trigger a webhook call passing the \"payment_id\" and \"payment_method_nonce\" in order to complete the transaction. Local interface{} `json:"local,omitempty"` - // Braintree payment options: 'customer_id' and 'payment_method_token' + // Braintree payment options, 'customer_id' and 'payment_method_token'. Options interface{} `json:"options,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_bundles_201_response.go b/api/model_post_bundles_201_response.go index 0c0669b8..2b81f680 100644 --- a/api/model_post_bundles_201_response.go +++ b/api/model_post_bundles_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_bundles_201_response_data.go b/api/model_post_bundles_201_response_data.go index add9a37d..401e427e 100644 --- a/api/model_post_bundles_201_response_data.go +++ b/api/model_post_bundles_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_bundles_201_response_data_attributes.go b/api/model_post_bundles_201_response_data_attributes.go index 60d90a1c..07e059a0 100644 --- a/api/model_post_bundles_201_response_data_attributes.go +++ b/api/model_post_bundles_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -31,16 +31,16 @@ type POSTBundles201ResponseDataAttributes struct { // The URL of an image that represents the bundle. ImageUrl interface{} `json:"image_url,omitempty"` // The bundle price amount for the associated market, in cents. - PriceAmountCents interface{} `json:"price_amount_cents"` + PriceAmountCents interface{} `json:"price_amount_cents,omitempty"` // The compared price amount, in cents. Useful to display a percentage discount. - CompareAtAmountCents interface{} `json:"compare_at_amount_cents"` + CompareAtAmountCents interface{} `json:"compare_at_amount_cents,omitempty"` // Send this attribute if you want to compute the price_amount_cents as the sum of the prices of the bundle SKUs for the market. ComputePriceAmount interface{} `json:"_compute_price_amount,omitempty"` // Send this attribute if you want to compute the compare_at_amount_cents as the sum of the prices of the bundle SKUs for the market. ComputeCompareAtAmount interface{} `json:"_compute_compare_at_amount,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -50,12 +50,10 @@ type POSTBundles201ResponseDataAttributes struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTBundles201ResponseDataAttributes(code interface{}, name interface{}, priceAmountCents interface{}, compareAtAmountCents interface{}) *POSTBundles201ResponseDataAttributes { +func NewPOSTBundles201ResponseDataAttributes(code interface{}, name interface{}) *POSTBundles201ResponseDataAttributes { this := POSTBundles201ResponseDataAttributes{} this.Code = code this.Name = name - this.PriceAmountCents = priceAmountCents - this.CompareAtAmountCents = compareAtAmountCents return &this } @@ -218,18 +216,16 @@ func (o *POSTBundles201ResponseDataAttributes) SetImageUrl(v interface{}) { o.ImageUrl = v } -// GetPriceAmountCents returns the PriceAmountCents field value -// If the value is explicit nil, the zero value for interface{} will be returned +// GetPriceAmountCents returns the PriceAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTBundles201ResponseDataAttributes) GetPriceAmountCents() interface{} { if o == nil { var ret interface{} return ret } - return o.PriceAmountCents } -// GetPriceAmountCentsOk returns a tuple with the PriceAmountCents field value +// GetPriceAmountCentsOk returns a tuple with the PriceAmountCents field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *POSTBundles201ResponseDataAttributes) GetPriceAmountCentsOk() (*interface{}, bool) { @@ -239,23 +235,30 @@ func (o *POSTBundles201ResponseDataAttributes) GetPriceAmountCentsOk() (*interfa return &o.PriceAmountCents, true } -// SetPriceAmountCents sets field value +// HasPriceAmountCents returns a boolean if a field has been set. +func (o *POSTBundles201ResponseDataAttributes) HasPriceAmountCents() bool { + if o != nil && IsNil(o.PriceAmountCents) { + return true + } + + return false +} + +// SetPriceAmountCents gets a reference to the given interface{} and assigns it to the PriceAmountCents field. func (o *POSTBundles201ResponseDataAttributes) SetPriceAmountCents(v interface{}) { o.PriceAmountCents = v } -// GetCompareAtAmountCents returns the CompareAtAmountCents field value -// If the value is explicit nil, the zero value for interface{} will be returned +// GetCompareAtAmountCents returns the CompareAtAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTBundles201ResponseDataAttributes) GetCompareAtAmountCents() interface{} { if o == nil { var ret interface{} return ret } - return o.CompareAtAmountCents } -// GetCompareAtAmountCentsOk returns a tuple with the CompareAtAmountCents field value +// GetCompareAtAmountCentsOk returns a tuple with the CompareAtAmountCents field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *POSTBundles201ResponseDataAttributes) GetCompareAtAmountCentsOk() (*interface{}, bool) { @@ -265,7 +268,16 @@ func (o *POSTBundles201ResponseDataAttributes) GetCompareAtAmountCentsOk() (*int return &o.CompareAtAmountCents, true } -// SetCompareAtAmountCents sets field value +// HasCompareAtAmountCents returns a boolean if a field has been set. +func (o *POSTBundles201ResponseDataAttributes) HasCompareAtAmountCents() bool { + if o != nil && IsNil(o.CompareAtAmountCents) { + return true + } + + return false +} + +// SetCompareAtAmountCents gets a reference to the given interface{} and assigns it to the CompareAtAmountCents field. func (o *POSTBundles201ResponseDataAttributes) SetCompareAtAmountCents(v interface{}) { o.CompareAtAmountCents = v } diff --git a/api/model_post_bundles_201_response_data_relationships.go b/api/model_post_bundles_201_response_data_relationships.go index 51d92e15..bbd0834d 100644 --- a/api/model_post_bundles_201_response_data_relationships.go +++ b/api/model_post_bundles_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,10 +20,13 @@ var _ MappedNullable = &POSTBundles201ResponseDataRelationships{} // POSTBundles201ResponseDataRelationships struct for POSTBundles201ResponseDataRelationships type POSTBundles201ResponseDataRelationships struct { - Market *POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket `json:"market,omitempty"` - SkuList *POSTBundles201ResponseDataRelationshipsSkuList `json:"sku_list,omitempty"` - Skus *POSTBundles201ResponseDataRelationshipsSkus `json:"skus,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Market *POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket `json:"market,omitempty"` + SkuList *POSTBundles201ResponseDataRelationshipsSkuList `json:"sku_list,omitempty"` + Skus *POSTBundles201ResponseDataRelationshipsSkus `json:"skus,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Tags *POSTAddresses201ResponseDataRelationshipsTags `json:"tags,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTBundles201ResponseDataRelationships instantiates a new POSTBundles201ResponseDataRelationships object @@ -140,9 +143,9 @@ func (o *POSTBundles201ResponseDataRelationships) SetSkus(v POSTBundles201Respon } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTBundles201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTBundles201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -150,7 +153,7 @@ func (o *POSTBundles201ResponseDataRelationships) GetAttachments() POSTAvalaraAc // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTBundles201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTBundles201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -166,11 +169,107 @@ func (o *POSTBundles201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTBundles201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTBundles201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *POSTBundles201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBundles201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *POSTBundles201ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTBundles201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *POSTBundles201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret POSTAddresses201ResponseDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBundles201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *POSTBundles201ResponseDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given POSTAddresses201ResponseDataRelationshipsTags and assigns it to the Tags field. +func (o *POSTBundles201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTBundles201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBundles201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTBundles201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTBundles201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTBundles201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -193,6 +292,15 @@ func (o POSTBundles201ResponseDataRelationships) ToMap() (map[string]interface{} if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_bundles_201_response_data_relationships_sku_list.go b/api/model_post_bundles_201_response_data_relationships_sku_list.go index 90ab5a0f..20d31345 100644 --- a/api/model_post_bundles_201_response_data_relationships_sku_list.go +++ b/api/model_post_bundles_201_response_data_relationships_sku_list.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_bundles_201_response_data_relationships_sku_list_data.go b/api/model_post_bundles_201_response_data_relationships_sku_list_data.go index 5f5d0e08..282c71d7 100644 --- a/api/model_post_bundles_201_response_data_relationships_sku_list_data.go +++ b/api/model_post_bundles_201_response_data_relationships_sku_list_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_bundles_201_response_data_relationships_skus.go b/api/model_post_bundles_201_response_data_relationships_skus.go index 93fa318b..5fbfe7a9 100644 --- a/api/model_post_bundles_201_response_data_relationships_skus.go +++ b/api/model_post_bundles_201_response_data_relationships_skus.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_bundles_201_response_data_relationships_skus_data.go b/api/model_post_bundles_201_response_data_relationships_skus_data.go index a4545cc4..58eaa7a7 100644 --- a/api/model_post_bundles_201_response_data_relationships_skus_data.go +++ b/api/model_post_bundles_201_response_data_relationships_skus_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_buy_x_pay_y_promotions_201_response.go b/api/model_post_buy_x_pay_y_promotions_201_response.go new file mode 100644 index 00000000..5aaa69c2 --- /dev/null +++ b/api/model_post_buy_x_pay_y_promotions_201_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTBuyXPayYPromotions201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTBuyXPayYPromotions201Response{} + +// POSTBuyXPayYPromotions201Response struct for POSTBuyXPayYPromotions201Response +type POSTBuyXPayYPromotions201Response struct { + Data *POSTBuyXPayYPromotions201ResponseData `json:"data,omitempty"` +} + +// NewPOSTBuyXPayYPromotions201Response instantiates a new POSTBuyXPayYPromotions201Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTBuyXPayYPromotions201Response() *POSTBuyXPayYPromotions201Response { + this := POSTBuyXPayYPromotions201Response{} + return &this +} + +// NewPOSTBuyXPayYPromotions201ResponseWithDefaults instantiates a new POSTBuyXPayYPromotions201Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTBuyXPayYPromotions201ResponseWithDefaults() *POSTBuyXPayYPromotions201Response { + this := POSTBuyXPayYPromotions201Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201Response) GetData() POSTBuyXPayYPromotions201ResponseData { + if o == nil || IsNil(o.Data) { + var ret POSTBuyXPayYPromotions201ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201Response) GetDataOk() (*POSTBuyXPayYPromotions201ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTBuyXPayYPromotions201ResponseData and assigns it to the Data field. +func (o *POSTBuyXPayYPromotions201Response) SetData(v POSTBuyXPayYPromotions201ResponseData) { + o.Data = &v +} + +func (o POSTBuyXPayYPromotions201Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTBuyXPayYPromotions201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTBuyXPayYPromotions201Response struct { + value *POSTBuyXPayYPromotions201Response + isSet bool +} + +func (v NullablePOSTBuyXPayYPromotions201Response) Get() *POSTBuyXPayYPromotions201Response { + return v.value +} + +func (v *NullablePOSTBuyXPayYPromotions201Response) Set(val *POSTBuyXPayYPromotions201Response) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTBuyXPayYPromotions201Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTBuyXPayYPromotions201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTBuyXPayYPromotions201Response(val *POSTBuyXPayYPromotions201Response) *NullablePOSTBuyXPayYPromotions201Response { + return &NullablePOSTBuyXPayYPromotions201Response{value: val, isSet: true} +} + +func (v NullablePOSTBuyXPayYPromotions201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTBuyXPayYPromotions201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_buy_x_pay_y_promotions_201_response_data.go b/api/model_post_buy_x_pay_y_promotions_201_response_data.go new file mode 100644 index 00000000..960760ea --- /dev/null +++ b/api/model_post_buy_x_pay_y_promotions_201_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTBuyXPayYPromotions201ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTBuyXPayYPromotions201ResponseData{} + +// POSTBuyXPayYPromotions201ResponseData struct for POSTBuyXPayYPromotions201ResponseData +type POSTBuyXPayYPromotions201ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTBuyXPayYPromotions201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTBuyXPayYPromotions201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPOSTBuyXPayYPromotions201ResponseData instantiates a new POSTBuyXPayYPromotions201ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTBuyXPayYPromotions201ResponseData() *POSTBuyXPayYPromotions201ResponseData { + this := POSTBuyXPayYPromotions201ResponseData{} + return &this +} + +// NewPOSTBuyXPayYPromotions201ResponseDataWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTBuyXPayYPromotions201ResponseDataWithDefaults() *POSTBuyXPayYPromotions201ResponseData { + this := POSTBuyXPayYPromotions201ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTBuyXPayYPromotions201ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTBuyXPayYPromotions201ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTBuyXPayYPromotions201ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTBuyXPayYPromotions201ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *POSTBuyXPayYPromotions201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseData) GetAttributes() POSTBuyXPayYPromotions201ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret POSTBuyXPayYPromotions201ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseData) GetAttributesOk() (*POSTBuyXPayYPromotions201ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given POSTBuyXPayYPromotions201ResponseDataAttributes and assigns it to the Attributes field. +func (o *POSTBuyXPayYPromotions201ResponseData) SetAttributes(v POSTBuyXPayYPromotions201ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTBuyXPayYPromotions201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTBuyXPayYPromotions201ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o POSTBuyXPayYPromotions201ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTBuyXPayYPromotions201ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePOSTBuyXPayYPromotions201ResponseData struct { + value *POSTBuyXPayYPromotions201ResponseData + isSet bool +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseData) Get() *POSTBuyXPayYPromotions201ResponseData { + return v.value +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseData) Set(val *POSTBuyXPayYPromotions201ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTBuyXPayYPromotions201ResponseData(val *POSTBuyXPayYPromotions201ResponseData) *NullablePOSTBuyXPayYPromotions201ResponseData { + return &NullablePOSTBuyXPayYPromotions201ResponseData{value: val, isSet: true} +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_buy_x_pay_y_promotions_201_response_data_attributes.go b/api/model_post_buy_x_pay_y_promotions_201_response_data_attributes.go new file mode 100644 index 00000000..51d7ee21 --- /dev/null +++ b/api/model_post_buy_x_pay_y_promotions_201_response_data_attributes.go @@ -0,0 +1,629 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTBuyXPayYPromotions201ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTBuyXPayYPromotions201ResponseDataAttributes{} + +// POSTBuyXPayYPromotions201ResponseDataAttributes struct for POSTBuyXPayYPromotions201ResponseDataAttributes +type POSTBuyXPayYPromotions201ResponseDataAttributes struct { + // The promotion's internal name. + Name interface{} `json:"name"` + // The international 3-letter currency code as defined by the ISO 4217 standard. + CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` + // The activation date/time of this promotion. + StartsAt interface{} `json:"starts_at"` + // The expiration date/time of this promotion (must be after starts_at). + ExpiresAt interface{} `json:"expires_at"` + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. + TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` + // The quantity which defines the threshold for free items (works by multiple of x). + X interface{} `json:"x"` + // The quantity which defines how many items you get for free, with the formula x-y. + Y interface{} `json:"y"` + // Indicates if the cheapest items are discounted, allowing all of the SKUs in the associated list to be eligible for counting. + CheapestFree interface{} `json:"cheapest_free,omitempty"` +} + +// NewPOSTBuyXPayYPromotions201ResponseDataAttributes instantiates a new POSTBuyXPayYPromotions201ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTBuyXPayYPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, x interface{}, y interface{}) *POSTBuyXPayYPromotions201ResponseDataAttributes { + this := POSTBuyXPayYPromotions201ResponseDataAttributes{} + this.Name = name + this.StartsAt = startsAt + this.ExpiresAt = expiresAt + this.X = x + this.Y = y + return &this +} + +// NewPOSTBuyXPayYPromotions201ResponseDataAttributesWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTBuyXPayYPromotions201ResponseDataAttributesWithDefaults() *POSTBuyXPayYPromotions201ResponseDataAttributes { + this := POSTBuyXPayYPromotions201ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetCurrencyCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CurrencyCode +} + +// GetCurrencyCodeOk returns a tuple with the CurrencyCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetCurrencyCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.CurrencyCode) { + return nil, false + } + return &o.CurrencyCode, true +} + +// HasCurrencyCode returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasCurrencyCode() bool { + if o != nil && IsNil(o.CurrencyCode) { + return true + } + + return false +} + +// SetCurrencyCode gets a reference to the given interface{} and assigns it to the CurrencyCode field. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetCurrencyCode(v interface{}) { + o.CurrencyCode = v +} + +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + +// GetStartsAt returns the StartsAt field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetStartsAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.StartsAt +} + +// GetStartsAtOk returns a tuple with the StartsAt field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.StartsAt) { + return nil, false + } + return &o.StartsAt, true +} + +// SetStartsAt sets field value +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetStartsAt(v interface{}) { + o.StartsAt = v +} + +// GetExpiresAt returns the ExpiresAt field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetExpiresAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExpiresAt) { + return nil, false + } + return &o.ExpiresAt, true +} + +// SetExpiresAt sets field value +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetExpiresAt(v interface{}) { + o.ExpiresAt = v +} + +// GetTotalUsageLimit returns the TotalUsageLimit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetTotalUsageLimit() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.TotalUsageLimit +} + +// GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetTotalUsageLimitOk() (*interface{}, bool) { + if o == nil || IsNil(o.TotalUsageLimit) { + return nil, false + } + return &o.TotalUsageLimit, true +} + +// HasTotalUsageLimit returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasTotalUsageLimit() bool { + if o != nil && IsNil(o.TotalUsageLimit) { + return true + } + + return false +} + +// SetTotalUsageLimit gets a reference to the given interface{} and assigns it to the TotalUsageLimit field. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetTotalUsageLimit(v interface{}) { + o.TotalUsageLimit = v +} + +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +// GetX returns the X field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetX() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.X +} + +// GetXOk returns a tuple with the X field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetXOk() (*interface{}, bool) { + if o == nil || IsNil(o.X) { + return nil, false + } + return &o.X, true +} + +// SetX sets field value +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetX(v interface{}) { + o.X = v +} + +// GetY returns the Y field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetY() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Y +} + +// GetYOk returns a tuple with the Y field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetYOk() (*interface{}, bool) { + if o == nil || IsNil(o.Y) { + return nil, false + } + return &o.Y, true +} + +// SetY sets field value +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetY(v interface{}) { + o.Y = v +} + +// GetCheapestFree returns the CheapestFree field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetCheapestFree() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CheapestFree +} + +// GetCheapestFreeOk returns a tuple with the CheapestFree field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) GetCheapestFreeOk() (*interface{}, bool) { + if o == nil || IsNil(o.CheapestFree) { + return nil, false + } + return &o.CheapestFree, true +} + +// HasCheapestFree returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) HasCheapestFree() bool { + if o != nil && IsNil(o.CheapestFree) { + return true + } + + return false +} + +// SetCheapestFree gets a reference to the given interface{} and assigns it to the CheapestFree field. +func (o *POSTBuyXPayYPromotions201ResponseDataAttributes) SetCheapestFree(v interface{}) { + o.CheapestFree = v +} + +func (o POSTBuyXPayYPromotions201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTBuyXPayYPromotions201ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.CurrencyCode != nil { + toSerialize["currency_code"] = o.CurrencyCode + } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } + if o.StartsAt != nil { + toSerialize["starts_at"] = o.StartsAt + } + if o.ExpiresAt != nil { + toSerialize["expires_at"] = o.ExpiresAt + } + if o.TotalUsageLimit != nil { + toSerialize["total_usage_limit"] = o.TotalUsageLimit + } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.X != nil { + toSerialize["x"] = o.X + } + if o.Y != nil { + toSerialize["y"] = o.Y + } + if o.CheapestFree != nil { + toSerialize["cheapest_free"] = o.CheapestFree + } + return toSerialize, nil +} + +type NullablePOSTBuyXPayYPromotions201ResponseDataAttributes struct { + value *POSTBuyXPayYPromotions201ResponseDataAttributes + isSet bool +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseDataAttributes) Get() *POSTBuyXPayYPromotions201ResponseDataAttributes { + return v.value +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataAttributes) Set(val *POSTBuyXPayYPromotions201ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTBuyXPayYPromotions201ResponseDataAttributes(val *POSTBuyXPayYPromotions201ResponseDataAttributes) *NullablePOSTBuyXPayYPromotions201ResponseDataAttributes { + return &NullablePOSTBuyXPayYPromotions201ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships.go b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships.go new file mode 100644 index 00000000..b1fbb7b2 --- /dev/null +++ b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships.go @@ -0,0 +1,557 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTBuyXPayYPromotions201ResponseDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTBuyXPayYPromotions201ResponseDataRelationships{} + +// POSTBuyXPayYPromotions201ResponseDataRelationships struct for POSTBuyXPayYPromotions201ResponseDataRelationships +type POSTBuyXPayYPromotions201ResponseDataRelationships struct { + Market *POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket `json:"market,omitempty"` + PromotionRules *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules `json:"promotion_rules,omitempty"` + OrderAmountPromotionRule *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule `json:"order_amount_promotion_rule,omitempty"` + SkuListPromotionRule *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule `json:"sku_list_promotion_rule,omitempty"` + CouponCodesPromotionRule *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule `json:"coupon_codes_promotion_rule,omitempty"` + CustomPromotionRule *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule `json:"custom_promotion_rule,omitempty"` + SkuList *POSTBundles201ResponseDataRelationshipsSkuList `json:"sku_list,omitempty"` + Coupons *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons `json:"coupons,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Tags *POSTAddresses201ResponseDataRelationshipsTags `json:"tags,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` + Skus *POSTBundles201ResponseDataRelationshipsSkus `json:"skus,omitempty"` +} + +// NewPOSTBuyXPayYPromotions201ResponseDataRelationships instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTBuyXPayYPromotions201ResponseDataRelationships() *POSTBuyXPayYPromotions201ResponseDataRelationships { + this := POSTBuyXPayYPromotions201ResponseDataRelationships{} + return &this +} + +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationships { + this := POSTBuyXPayYPromotions201ResponseDataRelationships{} + return &this +} + +// GetMarket returns the Market field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetMarket() POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket { + if o == nil || IsNil(o.Market) { + var ret POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket + return ret + } + return *o.Market +} + +// GetMarketOk returns a tuple with the Market field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetMarketOk() (*POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket, bool) { + if o == nil || IsNil(o.Market) { + return nil, false + } + return o.Market, true +} + +// HasMarket returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasMarket() bool { + if o != nil && !IsNil(o.Market) { + return true + } + + return false +} + +// SetMarket gets a reference to the given POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket and assigns it to the Market field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetMarket(v POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket) { + o.Market = &v +} + +// GetPromotionRules returns the PromotionRules field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetPromotionRules() POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules { + if o == nil || IsNil(o.PromotionRules) { + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules + return ret + } + return *o.PromotionRules +} + +// GetPromotionRulesOk returns a tuple with the PromotionRules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetPromotionRulesOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules, bool) { + if o == nil || IsNil(o.PromotionRules) { + return nil, false + } + return o.PromotionRules, true +} + +// HasPromotionRules returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasPromotionRules() bool { + if o != nil && !IsNil(o.PromotionRules) { + return true + } + + return false +} + +// SetPromotionRules gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules and assigns it to the PromotionRules field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetPromotionRules(v POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) { + o.PromotionRules = &v +} + +// GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetOrderAmountPromotionRule() POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule { + if o == nil || IsNil(o.OrderAmountPromotionRule) { + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule + return ret + } + return *o.OrderAmountPromotionRule +} + +// GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetOrderAmountPromotionRuleOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule, bool) { + if o == nil || IsNil(o.OrderAmountPromotionRule) { + return nil, false + } + return o.OrderAmountPromotionRule, true +} + +// HasOrderAmountPromotionRule returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasOrderAmountPromotionRule() bool { + if o != nil && !IsNil(o.OrderAmountPromotionRule) { + return true + } + + return false +} + +// SetOrderAmountPromotionRule gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule and assigns it to the OrderAmountPromotionRule field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetOrderAmountPromotionRule(v POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) { + o.OrderAmountPromotionRule = &v +} + +// GetSkuListPromotionRule returns the SkuListPromotionRule field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetSkuListPromotionRule() POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule { + if o == nil || IsNil(o.SkuListPromotionRule) { + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule + return ret + } + return *o.SkuListPromotionRule +} + +// GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetSkuListPromotionRuleOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule, bool) { + if o == nil || IsNil(o.SkuListPromotionRule) { + return nil, false + } + return o.SkuListPromotionRule, true +} + +// HasSkuListPromotionRule returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasSkuListPromotionRule() bool { + if o != nil && !IsNil(o.SkuListPromotionRule) { + return true + } + + return false +} + +// SetSkuListPromotionRule gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule and assigns it to the SkuListPromotionRule field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetSkuListPromotionRule(v POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) { + o.SkuListPromotionRule = &v +} + +// GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetCouponCodesPromotionRule() POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule { + if o == nil || IsNil(o.CouponCodesPromotionRule) { + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule + return ret + } + return *o.CouponCodesPromotionRule +} + +// GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetCouponCodesPromotionRuleOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule, bool) { + if o == nil || IsNil(o.CouponCodesPromotionRule) { + return nil, false + } + return o.CouponCodesPromotionRule, true +} + +// HasCouponCodesPromotionRule returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasCouponCodesPromotionRule() bool { + if o != nil && !IsNil(o.CouponCodesPromotionRule) { + return true + } + + return false +} + +// SetCouponCodesPromotionRule gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule and assigns it to the CouponCodesPromotionRule field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetCouponCodesPromotionRule(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) { + o.CouponCodesPromotionRule = &v +} + +// GetCustomPromotionRule returns the CustomPromotionRule field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetCustomPromotionRule() POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule { + if o == nil || IsNil(o.CustomPromotionRule) { + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule + return ret + } + return *o.CustomPromotionRule +} + +// GetCustomPromotionRuleOk returns a tuple with the CustomPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetCustomPromotionRuleOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule, bool) { + if o == nil || IsNil(o.CustomPromotionRule) { + return nil, false + } + return o.CustomPromotionRule, true +} + +// HasCustomPromotionRule returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasCustomPromotionRule() bool { + if o != nil && !IsNil(o.CustomPromotionRule) { + return true + } + + return false +} + +// SetCustomPromotionRule gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule and assigns it to the CustomPromotionRule field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetCustomPromotionRule(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) { + o.CustomPromotionRule = &v +} + +// GetSkuList returns the SkuList field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetSkuList() POSTBundles201ResponseDataRelationshipsSkuList { + if o == nil || IsNil(o.SkuList) { + var ret POSTBundles201ResponseDataRelationshipsSkuList + return ret + } + return *o.SkuList +} + +// GetSkuListOk returns a tuple with the SkuList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetSkuListOk() (*POSTBundles201ResponseDataRelationshipsSkuList, bool) { + if o == nil || IsNil(o.SkuList) { + return nil, false + } + return o.SkuList, true +} + +// HasSkuList returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasSkuList() bool { + if o != nil && !IsNil(o.SkuList) { + return true + } + + return false +} + +// SetSkuList gets a reference to the given POSTBundles201ResponseDataRelationshipsSkuList and assigns it to the SkuList field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetSkuList(v POSTBundles201ResponseDataRelationshipsSkuList) { + o.SkuList = &v +} + +// GetCoupons returns the Coupons field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetCoupons() POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons { + if o == nil || IsNil(o.Coupons) { + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons + return ret + } + return *o.Coupons +} + +// GetCouponsOk returns a tuple with the Coupons field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetCouponsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons, bool) { + if o == nil || IsNil(o.Coupons) { + return nil, false + } + return o.Coupons, true +} + +// HasCoupons returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasCoupons() bool { + if o != nil && !IsNil(o.Coupons) { + return true + } + + return false +} + +// SetCoupons gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons and assigns it to the Coupons field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetCoupons(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) { + o.Coupons = &v +} + +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { + o.Attachments = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret POSTAddresses201ResponseDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given POSTAddresses201ResponseDataRelationshipsTags and assigns it to the Tags field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + +// GetSkus returns the Skus field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetSkus() POSTBundles201ResponseDataRelationshipsSkus { + if o == nil || IsNil(o.Skus) { + var ret POSTBundles201ResponseDataRelationshipsSkus + return ret + } + return *o.Skus +} + +// GetSkusOk returns a tuple with the Skus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) GetSkusOk() (*POSTBundles201ResponseDataRelationshipsSkus, bool) { + if o == nil || IsNil(o.Skus) { + return nil, false + } + return o.Skus, true +} + +// HasSkus returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) HasSkus() bool { + if o != nil && !IsNil(o.Skus) { + return true + } + + return false +} + +// SetSkus gets a reference to the given POSTBundles201ResponseDataRelationshipsSkus and assigns it to the Skus field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationships) SetSkus(v POSTBundles201ResponseDataRelationshipsSkus) { + o.Skus = &v +} + +func (o POSTBuyXPayYPromotions201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTBuyXPayYPromotions201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Market) { + toSerialize["market"] = o.Market + } + if !IsNil(o.PromotionRules) { + toSerialize["promotion_rules"] = o.PromotionRules + } + if !IsNil(o.OrderAmountPromotionRule) { + toSerialize["order_amount_promotion_rule"] = o.OrderAmountPromotionRule + } + if !IsNil(o.SkuListPromotionRule) { + toSerialize["sku_list_promotion_rule"] = o.SkuListPromotionRule + } + if !IsNil(o.CouponCodesPromotionRule) { + toSerialize["coupon_codes_promotion_rule"] = o.CouponCodesPromotionRule + } + if !IsNil(o.CustomPromotionRule) { + toSerialize["custom_promotion_rule"] = o.CustomPromotionRule + } + if !IsNil(o.SkuList) { + toSerialize["sku_list"] = o.SkuList + } + if !IsNil(o.Coupons) { + toSerialize["coupons"] = o.Coupons + } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + if !IsNil(o.Skus) { + toSerialize["skus"] = o.Skus + } + return toSerialize, nil +} + +type NullablePOSTBuyXPayYPromotions201ResponseDataRelationships struct { + value *POSTBuyXPayYPromotions201ResponseDataRelationships + isSet bool +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationships) Get() *POSTBuyXPayYPromotions201ResponseDataRelationships { + return v.value +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationships) Set(val *POSTBuyXPayYPromotions201ResponseDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTBuyXPayYPromotions201ResponseDataRelationships(val *POSTBuyXPayYPromotions201ResponseDataRelationships) *NullablePOSTBuyXPayYPromotions201ResponseDataRelationships { + return &NullablePOSTBuyXPayYPromotions201ResponseDataRelationships{value: val, isSet: true} +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_external_promotions_201_response_data_relationships_coupon_codes_promotion_rule.go b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule.go similarity index 57% rename from api/model_post_external_promotions_201_response_data_relationships_coupon_codes_promotion_rule.go rename to api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule.go index 7f62cf67..8057485f 100644 --- a/api/model_post_external_promotions_201_response_data_relationships_coupon_codes_promotion_rule.go +++ b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,34 +15,34 @@ import ( "encoding/json" ) -// checks if the POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule{} +// checks if the POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule{} -// POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule struct for POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule -type POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule struct { +// POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule struct for POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule +type POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule struct { Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` - Data *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData `json:"data,omitempty"` + Data *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData `json:"data,omitempty"` } -// NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule instantiates a new POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule object +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule() *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule { - this := POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule{} +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule{} return &this } -// NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleWithDefaults instantiates a new POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule object +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleWithDefaults() *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule { - this := POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule{} +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule{} return &this } // GetLinks returns the Links field value if set, zero value otherwise. -func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { if o == nil || IsNil(o.Links) { var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks return ret @@ -52,7 +52,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionR // GetLinksOk returns a tuple with the Links field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { if o == nil || IsNil(o.Links) { return nil, false } @@ -60,7 +60,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionR } // HasLinks returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) HasLinks() bool { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) HasLinks() bool { if o != nil && !IsNil(o.Links) { return true } @@ -69,14 +69,14 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionR } // SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. -func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { o.Links = &v } // GetData returns the Data field value if set, zero value otherwise. -func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) GetData() POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) GetData() POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData { if o == nil || IsNil(o.Data) { - var ret POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData return ret } return *o.Data @@ -84,7 +84,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionR // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) GetDataOk() (*POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData, bool) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) GetDataOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -92,7 +92,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionR } // HasData returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) HasData() bool { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) HasData() bool { if o != nil && !IsNil(o.Data) { return true } @@ -100,12 +100,12 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionR return false } -// SetData gets a reference to the given POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData and assigns it to the Data field. -func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) SetData(v POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) { +// SetData gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData and assigns it to the Data field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) SetData(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) { o.Data = &v } -func (o POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) MarshalJSON() ([]byte, error) { +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -113,7 +113,7 @@ func (o POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRu return json.Marshal(toSerialize) } -func (o POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) ToMap() (map[string]interface{}, error) { +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Links) { toSerialize["links"] = o.Links @@ -124,38 +124,38 @@ func (o POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRu return toSerialize, nil } -type NullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule struct { - value *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule +type NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule struct { + value *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule isSet bool } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) Get() *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) Get() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule { return v.value } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) Set(val *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) Set(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) { v.value = val v.isSet = true } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) IsSet() bool { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) IsSet() bool { return v.isSet } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) Unset() { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) Unset() { v.value = nil v.isSet = false } -func NewNullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule(val *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) *NullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule { - return &NullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule{value: val, isSet: true} +func NewNullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule { + return &NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule{value: val, isSet: true} } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) MarshalJSON() ([]byte, error) { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) UnmarshalJSON(src []byte) error { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_post_external_promotions_201_response_data_relationships_coupon_codes_promotion_rule_data.go b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule_data.go similarity index 62% rename from api/model_post_external_promotions_201_response_data_relationships_coupon_codes_promotion_rule_data.go rename to api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule_data.go index dadbd93f..95c912a2 100644 --- a/api/model_post_external_promotions_201_response_data_relationships_coupon_codes_promotion_rule_data.go +++ b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_coupon_codes_promotion_rule_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData{} +// checks if the POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData{} -// POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData struct for POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData -type POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData struct { +// POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData struct for POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData +type POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource ID Id interface{} `json:"id,omitempty"` } -// NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData instantiates a new POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData object +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData() *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData { - this := POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData{} +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData{} return &this } -// NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleDataWithDefaults instantiates a new POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData object +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleDataWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewPOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleDataWithDefaults() *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData { - this := POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData{} +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleDataWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) GetType() interface{} { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionR // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) GetTypeOk() (*interface{}, bool) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionR } // HasType returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) HasType() bool { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionR } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) SetType(v interface{}) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) GetId() interface{} { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionR // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) GetIdOk() (*interface{}, bool) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionR } // HasId returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) HasId() bool { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionR } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) SetId(v interface{}) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) SetId(v interface{}) { o.Id = v } -func (o POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) MarshalJSON() ([]byte, error) { +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRu return json.Marshal(toSerialize) } -func (o POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) ToMap() (map[string]interface{}, error) { +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRu return toSerialize, nil } -type NullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData struct { - value *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData +type NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData struct { + value *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData isSet bool } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) Get() *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) Get() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData { return v.value } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) Set(val *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) Set(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) { v.value = val v.isSet = true } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) IsSet() bool { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) IsSet() bool { return v.isSet } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) Unset() { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) Unset() { v.value = nil v.isSet = false } -func NewNullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData(val *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) *NullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData { - return &NullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData{value: val, isSet: true} +func NewNullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData { + return &NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData{value: val, isSet: true} } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) MarshalJSON() ([]byte, error) { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) UnmarshalJSON(src []byte) error { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRuleData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_coupons.go b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_coupons.go new file mode 100644 index 00000000..47bdf7ac --- /dev/null +++ b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_coupons.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons{} + +// POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons struct for POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons +type POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData `json:"data,omitempty"` +} + +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons{} + return &this +} + +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) GetData() POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData { + if o == nil || IsNil(o.Data) { + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) GetDataOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData and assigns it to the Data field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) SetData(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) { + o.Data = &v +} + +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons struct { + value *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons + isSet bool +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) Get() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons { + return v.value +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) Set(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons { + return &NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons{value: val, isSet: true} +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_coupons_data.go b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_coupons_data.go new file mode 100644 index 00000000..552640ff --- /dev/null +++ b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_coupons_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData{} + +// POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData struct for POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData +type POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData{} + return &this +} + +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsDataWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsDataWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData struct { + value *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData + isSet bool +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) Get() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData { + return v.value +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) Set(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData { + return &NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData{value: val, isSet: true} +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCouponsData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_custom_promotion_rule.go b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_custom_promotion_rule.go new file mode 100644 index 00000000..44313e71 --- /dev/null +++ b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_custom_promotion_rule.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule{} + +// POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule struct for POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule +type POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData `json:"data,omitempty"` +} + +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule{} + return &this +} + +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) GetData() POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData { + if o == nil || IsNil(o.Data) { + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) GetDataOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData and assigns it to the Data field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) SetData(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) { + o.Data = &v +} + +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule struct { + value *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule + isSet bool +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) Get() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule { + return v.value +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) Set(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule { + return &NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule{value: val, isSet: true} +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_custom_promotion_rule_data.go b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_custom_promotion_rule_data.go new file mode 100644 index 00000000..a5f0011e --- /dev/null +++ b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_custom_promotion_rule_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData{} + +// POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData struct for POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData +type POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData{} + return &this +} + +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleDataWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleDataWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData struct { + value *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData + isSet bool +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) Get() *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData { + return v.value +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) Set(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData { + return &NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData{value: val, isSet: true} +} + +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRuleData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_external_promotions_201_response_data_relationships_order_amount_promotion_rule.go b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_order_amount_promotion_rule.go similarity index 57% rename from api/model_post_external_promotions_201_response_data_relationships_order_amount_promotion_rule.go rename to api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_order_amount_promotion_rule.go index 61adef24..45e10e2b 100644 --- a/api/model_post_external_promotions_201_response_data_relationships_order_amount_promotion_rule.go +++ b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_order_amount_promotion_rule.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,34 +15,34 @@ import ( "encoding/json" ) -// checks if the POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule{} +// checks if the POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule{} -// POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule struct for POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule -type POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule struct { +// POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule struct for POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule +type POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule struct { Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` - Data *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData `json:"data,omitempty"` + Data *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData `json:"data,omitempty"` } -// NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule instantiates a new POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule object +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule() *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule { - this := POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule{} +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule() *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule{} return &this } -// NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleWithDefaults instantiates a new POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule object +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleWithDefaults() *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule { - this := POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule{} +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule{} return &this } // GetLinks returns the Links field value if set, zero value otherwise. -func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { if o == nil || IsNil(o.Links) { var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks return ret @@ -52,7 +52,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionR // GetLinksOk returns a tuple with the Links field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { if o == nil || IsNil(o.Links) { return nil, false } @@ -60,7 +60,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionR } // HasLinks returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) HasLinks() bool { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) HasLinks() bool { if o != nil && !IsNil(o.Links) { return true } @@ -69,14 +69,14 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionR } // SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. -func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { o.Links = &v } // GetData returns the Data field value if set, zero value otherwise. -func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) GetData() POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) GetData() POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData { if o == nil || IsNil(o.Data) { - var ret POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData return ret } return *o.Data @@ -84,7 +84,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionR // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) GetDataOk() (*POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData, bool) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) GetDataOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -92,7 +92,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionR } // HasData returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) HasData() bool { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) HasData() bool { if o != nil && !IsNil(o.Data) { return true } @@ -100,12 +100,12 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionR return false } -// SetData gets a reference to the given POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData and assigns it to the Data field. -func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) SetData(v POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) { +// SetData gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData and assigns it to the Data field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) SetData(v POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) { o.Data = &v } -func (o POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) MarshalJSON() ([]byte, error) { +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -113,7 +113,7 @@ func (o POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRu return json.Marshal(toSerialize) } -func (o POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) ToMap() (map[string]interface{}, error) { +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Links) { toSerialize["links"] = o.Links @@ -124,38 +124,38 @@ func (o POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRu return toSerialize, nil } -type NullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule struct { - value *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule +type NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule struct { + value *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule isSet bool } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) Get() *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) Get() *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule { return v.value } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) Set(val *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) Set(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) { v.value = val v.isSet = true } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) IsSet() bool { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) IsSet() bool { return v.isSet } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) Unset() { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) Unset() { v.value = nil v.isSet = false } -func NewNullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule(val *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) *NullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule { - return &NullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule{value: val, isSet: true} +func NewNullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule { + return &NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule{value: val, isSet: true} } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) MarshalJSON() ([]byte, error) { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) UnmarshalJSON(src []byte) error { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_post_external_promotions_201_response_data_relationships_order_amount_promotion_rule_data.go b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_order_amount_promotion_rule_data.go similarity index 62% rename from api/model_post_external_promotions_201_response_data_relationships_order_amount_promotion_rule_data.go rename to api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_order_amount_promotion_rule_data.go index 4e37340c..67319579 100644 --- a/api/model_post_external_promotions_201_response_data_relationships_order_amount_promotion_rule_data.go +++ b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_order_amount_promotion_rule_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData{} +// checks if the POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData{} -// POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData struct for POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData -type POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData struct { +// POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData struct for POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData +type POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource ID Id interface{} `json:"id,omitempty"` } -// NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData instantiates a new POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData object +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData() *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData { - this := POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData{} +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData() *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData{} return &this } -// NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleDataWithDefaults instantiates a new POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData object +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleDataWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewPOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleDataWithDefaults() *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData { - this := POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData{} +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleDataWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) GetType() interface{} { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionR // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) GetTypeOk() (*interface{}, bool) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionR } // HasType returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) HasType() bool { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionR } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) SetType(v interface{}) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) GetId() interface{} { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionR // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) GetIdOk() (*interface{}, bool) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionR } // HasId returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) HasId() bool { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionR } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) SetId(v interface{}) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) SetId(v interface{}) { o.Id = v } -func (o POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) MarshalJSON() ([]byte, error) { +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRu return json.Marshal(toSerialize) } -func (o POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) ToMap() (map[string]interface{}, error) { +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRu return toSerialize, nil } -type NullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData struct { - value *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData +type NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData struct { + value *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData isSet bool } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) Get() *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) Get() *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData { return v.value } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) Set(val *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) Set(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) { v.value = val v.isSet = true } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) IsSet() bool { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) IsSet() bool { return v.isSet } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) Unset() { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) Unset() { v.value = nil v.isSet = false } -func NewNullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData(val *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) *NullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData { - return &NullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData{value: val, isSet: true} +func NewNullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData { + return &NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData{value: val, isSet: true} } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) MarshalJSON() ([]byte, error) { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) UnmarshalJSON(src []byte) error { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRuleData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_post_external_promotions_201_response_data_relationships_promotion_rules.go b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_promotion_rules.go similarity index 55% rename from api/model_post_external_promotions_201_response_data_relationships_promotion_rules.go rename to api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_promotion_rules.go index d1632c3b..417ff38c 100644 --- a/api/model_post_external_promotions_201_response_data_relationships_promotion_rules.go +++ b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_promotion_rules.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,34 +15,34 @@ import ( "encoding/json" ) -// checks if the POSTExternalPromotions201ResponseDataRelationshipsPromotionRules type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTExternalPromotions201ResponseDataRelationshipsPromotionRules{} +// checks if the POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules{} -// POSTExternalPromotions201ResponseDataRelationshipsPromotionRules struct for POSTExternalPromotions201ResponseDataRelationshipsPromotionRules -type POSTExternalPromotions201ResponseDataRelationshipsPromotionRules struct { +// POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules struct for POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules +type POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules struct { Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` - Data *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData `json:"data,omitempty"` + Data *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData `json:"data,omitempty"` } -// NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRules instantiates a new POSTExternalPromotions201ResponseDataRelationshipsPromotionRules object +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRules() *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules { - this := POSTExternalPromotions201ResponseDataRelationshipsPromotionRules{} +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules() *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules{} return &this } -// NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesWithDefaults instantiates a new POSTExternalPromotions201ResponseDataRelationshipsPromotionRules object +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesWithDefaults() *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules { - this := POSTExternalPromotions201ResponseDataRelationshipsPromotionRules{} +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules{} return &this } // GetLinks returns the Links field value if set, zero value otherwise. -func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { if o == nil || IsNil(o.Links) { var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks return ret @@ -52,7 +52,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) GetLi // GetLinksOk returns a tuple with the Links field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { if o == nil || IsNil(o.Links) { return nil, false } @@ -60,7 +60,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) GetLi } // HasLinks returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) HasLinks() bool { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) HasLinks() bool { if o != nil && !IsNil(o.Links) { return true } @@ -69,14 +69,14 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) HasLi } // SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. -func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { o.Links = &v } // GetData returns the Data field value if set, zero value otherwise. -func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) GetData() POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) GetData() POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData { if o == nil || IsNil(o.Data) { - var ret POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData return ret } return *o.Data @@ -84,7 +84,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) GetDa // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) GetDataOk() (*POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData, bool) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) GetDataOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -92,7 +92,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) GetDa } // HasData returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) HasData() bool { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) HasData() bool { if o != nil && !IsNil(o.Data) { return true } @@ -100,12 +100,12 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) HasDa return false } -// SetData gets a reference to the given POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData and assigns it to the Data field. -func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) SetData(v POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) { +// SetData gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData and assigns it to the Data field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) SetData(v POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) { o.Data = &v } -func (o POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) MarshalJSON() ([]byte, error) { +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -113,7 +113,7 @@ func (o POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) Marsha return json.Marshal(toSerialize) } -func (o POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) ToMap() (map[string]interface{}, error) { +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Links) { toSerialize["links"] = o.Links @@ -124,38 +124,38 @@ func (o POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) ToMap( return toSerialize, nil } -type NullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRules struct { - value *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules +type NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules struct { + value *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules isSet bool } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRules) Get() *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) Get() *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules { return v.value } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRules) Set(val *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) Set(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) { v.value = val v.isSet = true } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRules) IsSet() bool { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) IsSet() bool { return v.isSet } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRules) Unset() { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) Unset() { v.value = nil v.isSet = false } -func NewNullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRules(val *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) *NullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRules { - return &NullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRules{value: val, isSet: true} +func NewNullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules { + return &NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules{value: val, isSet: true} } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRules) MarshalJSON() ([]byte, error) { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRules) UnmarshalJSON(src []byte) error { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_post_external_promotions_201_response_data_relationships_promotion_rules_data.go b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_promotion_rules_data.go similarity index 59% rename from api/model_post_external_promotions_201_response_data_relationships_promotion_rules_data.go rename to api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_promotion_rules_data.go index 4931ed49..a2883c30 100644 --- a/api/model_post_external_promotions_201_response_data_relationships_promotion_rules_data.go +++ b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_promotion_rules_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData{} +// checks if the POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData{} -// POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData struct for POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData -type POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData struct { +// POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData struct for POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData +type POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource ID Id interface{} `json:"id,omitempty"` } -// NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData instantiates a new POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData object +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData() *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData { - this := POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData{} +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData() *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData{} return &this } -// NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesDataWithDefaults instantiates a new POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData object +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesDataWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewPOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesDataWithDefaults() *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData { - this := POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData{} +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesDataWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) GetType() interface{} { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) G // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) GetTypeOk() (*interface{}, bool) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) G } // HasType returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) HasType() bool { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) H } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) SetType(v interface{}) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) GetId() interface{} { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) G // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) GetIdOk() (*interface{}, bool) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) G } // HasId returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) HasId() bool { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) H } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) SetId(v interface{}) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) SetId(v interface{}) { o.Id = v } -func (o POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) MarshalJSON() ([]byte, error) { +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) Ma return json.Marshal(toSerialize) } -func (o POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) ToMap() (map[string]interface{}, error) { +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) To return toSerialize, nil } -type NullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData struct { - value *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData +type NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData struct { + value *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData isSet bool } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) Get() *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) Get() *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData { return v.value } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) Set(val *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) Set(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) { v.value = val v.isSet = true } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) IsSet() bool { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) IsSet() bool { return v.isSet } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) Unset() { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) Unset() { v.value = nil v.isSet = false } -func NewNullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData(val *POSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) *NullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData { - return &NullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData{value: val, isSet: true} +func NewNullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData { + return &NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData{value: val, isSet: true} } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) MarshalJSON() ([]byte, error) { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsPromotionRulesData) UnmarshalJSON(src []byte) error { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRulesData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_post_external_promotions_201_response_data_relationships_sku_list_promotion_rule.go b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_sku_list_promotion_rule.go similarity index 57% rename from api/model_post_external_promotions_201_response_data_relationships_sku_list_promotion_rule.go rename to api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_sku_list_promotion_rule.go index f09086e1..9c185445 100644 --- a/api/model_post_external_promotions_201_response_data_relationships_sku_list_promotion_rule.go +++ b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_sku_list_promotion_rule.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,34 +15,34 @@ import ( "encoding/json" ) -// checks if the POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule{} +// checks if the POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule{} -// POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule struct for POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule -type POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule struct { +// POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule struct for POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule +type POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule struct { Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` - Data *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData `json:"data,omitempty"` + Data *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData `json:"data,omitempty"` } -// NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule instantiates a new POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule object +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule() *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule { - this := POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule{} +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule() *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule{} return &this } -// NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleWithDefaults instantiates a new POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule object +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleWithDefaults() *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule { - this := POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule{} +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule{} return &this } // GetLinks returns the Links field value if set, zero value otherwise. -func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { if o == nil || IsNil(o.Links) { var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks return ret @@ -52,7 +52,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) // GetLinksOk returns a tuple with the Links field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { if o == nil || IsNil(o.Links) { return nil, false } @@ -60,7 +60,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) } // HasLinks returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) HasLinks() bool { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) HasLinks() bool { if o != nil && !IsNil(o.Links) { return true } @@ -69,14 +69,14 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) } // SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. -func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { o.Links = &v } // GetData returns the Data field value if set, zero value otherwise. -func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) GetData() POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) GetData() POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData { if o == nil || IsNil(o.Data) { - var ret POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData return ret } return *o.Data @@ -84,7 +84,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) // GetDataOk returns a tuple with the Data field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) GetDataOk() (*POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData, bool) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) GetDataOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData, bool) { if o == nil || IsNil(o.Data) { return nil, false } @@ -92,7 +92,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) } // HasData returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) HasData() bool { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) HasData() bool { if o != nil && !IsNil(o.Data) { return true } @@ -100,12 +100,12 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) return false } -// SetData gets a reference to the given POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData and assigns it to the Data field. -func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) SetData(v POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) { +// SetData gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData and assigns it to the Data field. +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) SetData(v POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) { o.Data = &v } -func (o POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) MarshalJSON() ([]byte, error) { +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -113,7 +113,7 @@ func (o POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) return json.Marshal(toSerialize) } -func (o POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) ToMap() (map[string]interface{}, error) { +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Links) { toSerialize["links"] = o.Links @@ -124,38 +124,38 @@ func (o POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) return toSerialize, nil } -type NullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule struct { - value *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule +type NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule struct { + value *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule isSet bool } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) Get() *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) Get() *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule { return v.value } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) Set(val *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) Set(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) { v.value = val v.isSet = true } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) IsSet() bool { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) IsSet() bool { return v.isSet } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) Unset() { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) Unset() { v.value = nil v.isSet = false } -func NewNullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule(val *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) *NullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule { - return &NullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule{value: val, isSet: true} +func NewNullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule { + return &NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule{value: val, isSet: true} } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) MarshalJSON() ([]byte, error) { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) UnmarshalJSON(src []byte) error { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_post_external_promotions_201_response_data_relationships_sku_list_promotion_rule_data.go b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_sku_list_promotion_rule_data.go similarity index 60% rename from api/model_post_external_promotions_201_response_data_relationships_sku_list_promotion_rule_data.go rename to api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_sku_list_promotion_rule_data.go index c6f362c8..11573237 100644 --- a/api/model_post_external_promotions_201_response_data_relationships_sku_list_promotion_rule_data.go +++ b/api/model_post_buy_x_pay_y_promotions_201_response_data_relationships_sku_list_promotion_rule_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData{} +// checks if the POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData{} -// POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData struct for POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData -type POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData struct { +// POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData struct for POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData +type POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource ID Id interface{} `json:"id,omitempty"` } -// NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData instantiates a new POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData object +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData() *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData { - this := POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData{} +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData() *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData{} return &this } -// NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleDataWithDefaults instantiates a new POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData object +// NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleDataWithDefaults instantiates a new POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewPOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleDataWithDefaults() *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData { - this := POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData{} +func NewPOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleDataWithDefaults() *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData { + this := POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) GetType() interface{} { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleD // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) GetTypeOk() (*interface{}, bool) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleD } // HasType returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) HasType() bool { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleD } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) SetType(v interface{}) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) GetId() interface{} { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleD // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) GetIdOk() (*interface{}, bool) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleD } // HasId returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) HasId() bool { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleD } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) SetId(v interface{}) { +func (o *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) SetId(v interface{}) { o.Id = v } -func (o POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) MarshalJSON() ([]byte, error) { +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleDa return json.Marshal(toSerialize) } -func (o POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) ToMap() (map[string]interface{}, error) { +func (o POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleDa return toSerialize, nil } -type NullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData struct { - value *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData +type NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData struct { + value *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData isSet bool } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) Get() *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) Get() *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData { return v.value } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) Set(val *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) Set(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) { v.value = val v.isSet = true } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) IsSet() bool { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) IsSet() bool { return v.isSet } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) Unset() { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) Unset() { v.value = nil v.isSet = false } -func NewNullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData(val *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) *NullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData { - return &NullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData{value: val, isSet: true} +func NewNullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData(val *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData { + return &NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData{value: val, isSet: true} } -func (v NullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) MarshalJSON() ([]byte, error) { +func (v NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePOSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) UnmarshalJSON(src []byte) error { +func (v *NullablePOSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRuleData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_post_carrier_accounts_201_response.go b/api/model_post_carrier_accounts_201_response.go new file mode 100644 index 00000000..c8957751 --- /dev/null +++ b/api/model_post_carrier_accounts_201_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTCarrierAccounts201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTCarrierAccounts201Response{} + +// POSTCarrierAccounts201Response struct for POSTCarrierAccounts201Response +type POSTCarrierAccounts201Response struct { + Data *POSTCarrierAccounts201ResponseData `json:"data,omitempty"` +} + +// NewPOSTCarrierAccounts201Response instantiates a new POSTCarrierAccounts201Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTCarrierAccounts201Response() *POSTCarrierAccounts201Response { + this := POSTCarrierAccounts201Response{} + return &this +} + +// NewPOSTCarrierAccounts201ResponseWithDefaults instantiates a new POSTCarrierAccounts201Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTCarrierAccounts201ResponseWithDefaults() *POSTCarrierAccounts201Response { + this := POSTCarrierAccounts201Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTCarrierAccounts201Response) GetData() POSTCarrierAccounts201ResponseData { + if o == nil || IsNil(o.Data) { + var ret POSTCarrierAccounts201ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCarrierAccounts201Response) GetDataOk() (*POSTCarrierAccounts201ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTCarrierAccounts201Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTCarrierAccounts201ResponseData and assigns it to the Data field. +func (o *POSTCarrierAccounts201Response) SetData(v POSTCarrierAccounts201ResponseData) { + o.Data = &v +} + +func (o POSTCarrierAccounts201Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTCarrierAccounts201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTCarrierAccounts201Response struct { + value *POSTCarrierAccounts201Response + isSet bool +} + +func (v NullablePOSTCarrierAccounts201Response) Get() *POSTCarrierAccounts201Response { + return v.value +} + +func (v *NullablePOSTCarrierAccounts201Response) Set(val *POSTCarrierAccounts201Response) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTCarrierAccounts201Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTCarrierAccounts201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTCarrierAccounts201Response(val *POSTCarrierAccounts201Response) *NullablePOSTCarrierAccounts201Response { + return &NullablePOSTCarrierAccounts201Response{value: val, isSet: true} +} + +func (v NullablePOSTCarrierAccounts201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTCarrierAccounts201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_carrier_accounts_201_response_data.go b/api/model_post_carrier_accounts_201_response_data.go new file mode 100644 index 00000000..d893aa76 --- /dev/null +++ b/api/model_post_carrier_accounts_201_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTCarrierAccounts201ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTCarrierAccounts201ResponseData{} + +// POSTCarrierAccounts201ResponseData struct for POSTCarrierAccounts201ResponseData +type POSTCarrierAccounts201ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTCarrierAccounts201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTBillingInfoValidationRules201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPOSTCarrierAccounts201ResponseData instantiates a new POSTCarrierAccounts201ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTCarrierAccounts201ResponseData() *POSTCarrierAccounts201ResponseData { + this := POSTCarrierAccounts201ResponseData{} + return &this +} + +// NewPOSTCarrierAccounts201ResponseDataWithDefaults instantiates a new POSTCarrierAccounts201ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTCarrierAccounts201ResponseDataWithDefaults() *POSTCarrierAccounts201ResponseData { + this := POSTCarrierAccounts201ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCarrierAccounts201ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCarrierAccounts201ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTCarrierAccounts201ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTCarrierAccounts201ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCarrierAccounts201ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCarrierAccounts201ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTCarrierAccounts201ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTCarrierAccounts201ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTCarrierAccounts201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCarrierAccounts201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTCarrierAccounts201ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *POSTCarrierAccounts201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *POSTCarrierAccounts201ResponseData) GetAttributes() POSTCarrierAccounts201ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret POSTCarrierAccounts201ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCarrierAccounts201ResponseData) GetAttributesOk() (*POSTCarrierAccounts201ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *POSTCarrierAccounts201ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given POSTCarrierAccounts201ResponseDataAttributes and assigns it to the Attributes field. +func (o *POSTCarrierAccounts201ResponseData) SetAttributes(v POSTCarrierAccounts201ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *POSTCarrierAccounts201ResponseData) GetRelationships() POSTBillingInfoValidationRules201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTBillingInfoValidationRules201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCarrierAccounts201ResponseData) GetRelationshipsOk() (*POSTBillingInfoValidationRules201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *POSTCarrierAccounts201ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTBillingInfoValidationRules201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTCarrierAccounts201ResponseData) SetRelationships(v POSTBillingInfoValidationRules201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o POSTCarrierAccounts201ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTCarrierAccounts201ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePOSTCarrierAccounts201ResponseData struct { + value *POSTCarrierAccounts201ResponseData + isSet bool +} + +func (v NullablePOSTCarrierAccounts201ResponseData) Get() *POSTCarrierAccounts201ResponseData { + return v.value +} + +func (v *NullablePOSTCarrierAccounts201ResponseData) Set(val *POSTCarrierAccounts201ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTCarrierAccounts201ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTCarrierAccounts201ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTCarrierAccounts201ResponseData(val *POSTCarrierAccounts201ResponseData) *NullablePOSTCarrierAccounts201ResponseData { + return &NullablePOSTCarrierAccounts201ResponseData{value: val, isSet: true} +} + +func (v NullablePOSTCarrierAccounts201ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTCarrierAccounts201ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_carrier_accounts_201_response_data_attributes.go b/api/model_post_carrier_accounts_201_response_data_attributes.go new file mode 100644 index 00000000..8d9cfa0f --- /dev/null +++ b/api/model_post_carrier_accounts_201_response_data_attributes.go @@ -0,0 +1,299 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTCarrierAccounts201ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTCarrierAccounts201ResponseDataAttributes{} + +// POSTCarrierAccounts201ResponseDataAttributes struct for POSTCarrierAccounts201ResponseDataAttributes +type POSTCarrierAccounts201ResponseDataAttributes struct { + // The carrier account internal name. + Name interface{} `json:"name"` + // The Easypost service carrier type. + EasypostType interface{} `json:"easypost_type"` + // The Easypost carrier accounts credentials fields. + Credentials interface{} `json:"credentials"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPOSTCarrierAccounts201ResponseDataAttributes instantiates a new POSTCarrierAccounts201ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTCarrierAccounts201ResponseDataAttributes(name interface{}, easypostType interface{}, credentials interface{}) *POSTCarrierAccounts201ResponseDataAttributes { + this := POSTCarrierAccounts201ResponseDataAttributes{} + this.Name = name + this.EasypostType = easypostType + this.Credentials = credentials + return &this +} + +// NewPOSTCarrierAccounts201ResponseDataAttributesWithDefaults instantiates a new POSTCarrierAccounts201ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTCarrierAccounts201ResponseDataAttributesWithDefaults() *POSTCarrierAccounts201ResponseDataAttributes { + this := POSTCarrierAccounts201ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTCarrierAccounts201ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCarrierAccounts201ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *POSTCarrierAccounts201ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetEasypostType returns the EasypostType field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTCarrierAccounts201ResponseDataAttributes) GetEasypostType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.EasypostType +} + +// GetEasypostTypeOk returns a tuple with the EasypostType field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCarrierAccounts201ResponseDataAttributes) GetEasypostTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.EasypostType) { + return nil, false + } + return &o.EasypostType, true +} + +// SetEasypostType sets field value +func (o *POSTCarrierAccounts201ResponseDataAttributes) SetEasypostType(v interface{}) { + o.EasypostType = v +} + +// GetCredentials returns the Credentials field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTCarrierAccounts201ResponseDataAttributes) GetCredentials() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCarrierAccounts201ResponseDataAttributes) GetCredentialsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Credentials) { + return nil, false + } + return &o.Credentials, true +} + +// SetCredentials sets field value +func (o *POSTCarrierAccounts201ResponseDataAttributes) SetCredentials(v interface{}) { + o.Credentials = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCarrierAccounts201ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCarrierAccounts201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *POSTCarrierAccounts201ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *POSTCarrierAccounts201ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCarrierAccounts201ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCarrierAccounts201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *POSTCarrierAccounts201ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *POSTCarrierAccounts201ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCarrierAccounts201ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCarrierAccounts201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *POSTCarrierAccounts201ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *POSTCarrierAccounts201ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o POSTCarrierAccounts201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTCarrierAccounts201ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.EasypostType != nil { + toSerialize["easypost_type"] = o.EasypostType + } + if o.Credentials != nil { + toSerialize["credentials"] = o.Credentials + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePOSTCarrierAccounts201ResponseDataAttributes struct { + value *POSTCarrierAccounts201ResponseDataAttributes + isSet bool +} + +func (v NullablePOSTCarrierAccounts201ResponseDataAttributes) Get() *POSTCarrierAccounts201ResponseDataAttributes { + return v.value +} + +func (v *NullablePOSTCarrierAccounts201ResponseDataAttributes) Set(val *POSTCarrierAccounts201ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTCarrierAccounts201ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTCarrierAccounts201ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTCarrierAccounts201ResponseDataAttributes(val *POSTCarrierAccounts201ResponseDataAttributes) *NullablePOSTCarrierAccounts201ResponseDataAttributes { + return &NullablePOSTCarrierAccounts201ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePOSTCarrierAccounts201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTCarrierAccounts201ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_checkout_com_gateways_201_response.go b/api/model_post_checkout_com_gateways_201_response.go index a20775b5..cefc924f 100644 --- a/api/model_post_checkout_com_gateways_201_response.go +++ b/api/model_post_checkout_com_gateways_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_checkout_com_gateways_201_response_data.go b/api/model_post_checkout_com_gateways_201_response_data.go index 7312ee47..070f97ad 100644 --- a/api/model_post_checkout_com_gateways_201_response_data.go +++ b/api/model_post_checkout_com_gateways_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_checkout_com_gateways_201_response_data_attributes.go b/api/model_post_checkout_com_gateways_201_response_data_attributes.go index a7b3debe..e05200ba 100644 --- a/api/model_post_checkout_com_gateways_201_response_data_attributes.go +++ b/api/model_post_checkout_com_gateways_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type POSTCheckoutComGateways201ResponseDataAttributes struct { Name interface{} `json:"name"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_checkout_com_gateways_201_response_data_relationships.go b/api/model_post_checkout_com_gateways_201_response_data_relationships.go index b7856a0c..612ce795 100644 --- a/api/model_post_checkout_com_gateways_201_response_data_relationships.go +++ b/api/model_post_checkout_com_gateways_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &POSTCheckoutComGateways201ResponseDataRelationships{} // POSTCheckoutComGateways201ResponseDataRelationships struct for POSTCheckoutComGateways201ResponseDataRelationships type POSTCheckoutComGateways201ResponseDataRelationships struct { PaymentMethods *POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` CheckoutComPayments *POSTCheckoutComGateways201ResponseDataRelationshipsCheckoutComPayments `json:"checkout_com_payments,omitempty"` } @@ -73,6 +74,38 @@ func (o *POSTCheckoutComGateways201ResponseDataRelationships) SetPaymentMethods( o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTCheckoutComGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCheckoutComGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTCheckoutComGateways201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTCheckoutComGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + // GetCheckoutComPayments returns the CheckoutComPayments field value if set, zero value otherwise. func (o *POSTCheckoutComGateways201ResponseDataRelationships) GetCheckoutComPayments() POSTCheckoutComGateways201ResponseDataRelationshipsCheckoutComPayments { if o == nil || IsNil(o.CheckoutComPayments) { @@ -118,6 +151,9 @@ func (o POSTCheckoutComGateways201ResponseDataRelationships) ToMap() (map[string if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.CheckoutComPayments) { toSerialize["checkout_com_payments"] = o.CheckoutComPayments } diff --git a/api/model_post_checkout_com_gateways_201_response_data_relationships_checkout_com_payments.go b/api/model_post_checkout_com_gateways_201_response_data_relationships_checkout_com_payments.go index c33842ac..b02a7dde 100644 --- a/api/model_post_checkout_com_gateways_201_response_data_relationships_checkout_com_payments.go +++ b/api/model_post_checkout_com_gateways_201_response_data_relationships_checkout_com_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_checkout_com_gateways_201_response_data_relationships_checkout_com_payments_data.go b/api/model_post_checkout_com_gateways_201_response_data_relationships_checkout_com_payments_data.go index 93946b0e..b99582a2 100644 --- a/api/model_post_checkout_com_gateways_201_response_data_relationships_checkout_com_payments_data.go +++ b/api/model_post_checkout_com_gateways_201_response_data_relationships_checkout_com_payments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_checkout_com_payments_201_response.go b/api/model_post_checkout_com_payments_201_response.go index a93253be..9eeceffb 100644 --- a/api/model_post_checkout_com_payments_201_response.go +++ b/api/model_post_checkout_com_payments_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_checkout_com_payments_201_response_data.go b/api/model_post_checkout_com_payments_201_response_data.go index 93e69da4..efa45d0d 100644 --- a/api/model_post_checkout_com_payments_201_response_data.go +++ b/api/model_post_checkout_com_payments_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_checkout_com_payments_201_response_data_attributes.go b/api/model_post_checkout_com_payments_201_response_data_attributes.go index 7bcd95dd..fb2c53b9 100644 --- a/api/model_post_checkout_com_payments_201_response_data_attributes.go +++ b/api/model_post_checkout_com_payments_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -32,7 +32,7 @@ type POSTCheckoutComPayments201ResponseDataAttributes struct { FailureUrl interface{} `json:"failure_url,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_cleanups_201_response.go b/api/model_post_cleanups_201_response.go index 8c08d41b..5dc7f6d9 100644 --- a/api/model_post_cleanups_201_response.go +++ b/api/model_post_cleanups_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_cleanups_201_response_data.go b/api/model_post_cleanups_201_response_data.go index f76eaa4b..3cdb1cc0 100644 --- a/api/model_post_cleanups_201_response_data.go +++ b/api/model_post_cleanups_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_cleanups_201_response_data_attributes.go b/api/model_post_cleanups_201_response_data_attributes.go index b125a9bf..c6ae6576 100644 --- a/api/model_post_cleanups_201_response_data_attributes.go +++ b/api/model_post_cleanups_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type POSTCleanups201ResponseDataAttributes struct { Filters interface{} `json:"filters,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_cleanups_201_response_data_relationships.go b/api/model_post_cleanups_201_response_data_relationships.go index 7fe42028..9281ff99 100644 --- a/api/model_post_cleanups_201_response_data_relationships.go +++ b/api/model_post_cleanups_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,8 @@ var _ MappedNullable = &POSTCleanups201ResponseDataRelationships{} // POSTCleanups201ResponseDataRelationships struct for POSTCleanups201ResponseDataRelationships type POSTCleanups201ResponseDataRelationships struct { - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTCleanups201ResponseDataRelationships instantiates a new POSTCleanups201ResponseDataRelationships object @@ -41,9 +42,9 @@ func NewPOSTCleanups201ResponseDataRelationshipsWithDefaults() *POSTCleanups201R } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *POSTCleanups201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { +func (o *POSTCleanups201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents + var ret POSTAddresses201ResponseDataRelationshipsEvents return ret } return *o.Events @@ -51,7 +52,7 @@ func (o *POSTCleanups201ResponseDataRelationships) GetEvents() GETAuthorizations // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTCleanups201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { +func (o *POSTCleanups201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -67,11 +68,43 @@ func (o *POSTCleanups201ResponseDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *POSTCleanups201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTCleanups201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { o.Events = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTCleanups201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCleanups201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTCleanups201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTCleanups201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTCleanups201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +118,9 @@ func (o POSTCleanups201ResponseDataRelationships) ToMap() (map[string]interface{ if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_coupon_codes_promotion_rules_201_response.go b/api/model_post_coupon_codes_promotion_rules_201_response.go index d00344cf..64ac9e0e 100644 --- a/api/model_post_coupon_codes_promotion_rules_201_response.go +++ b/api/model_post_coupon_codes_promotion_rules_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_coupon_codes_promotion_rules_201_response_data.go b/api/model_post_coupon_codes_promotion_rules_201_response_data.go index ef2def0f..83492c23 100644 --- a/api/model_post_coupon_codes_promotion_rules_201_response_data.go +++ b/api/model_post_coupon_codes_promotion_rules_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_coupon_codes_promotion_rules_201_response_data_relationships.go b/api/model_post_coupon_codes_promotion_rules_201_response_data_relationships.go index b1b35ffb..e7e21d2a 100644 --- a/api/model_post_coupon_codes_promotion_rules_201_response_data_relationships.go +++ b/api/model_post_coupon_codes_promotion_rules_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,7 +21,8 @@ var _ MappedNullable = &POSTCouponCodesPromotionRules201ResponseDataRelationship // POSTCouponCodesPromotionRules201ResponseDataRelationships struct for POSTCouponCodesPromotionRules201ResponseDataRelationships type POSTCouponCodesPromotionRules201ResponseDataRelationships struct { Promotion *POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion `json:"promotion,omitempty"` - Coupons *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons `json:"coupons,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` + Coupons *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons `json:"coupons,omitempty"` } // NewPOSTCouponCodesPromotionRules201ResponseDataRelationships instantiates a new POSTCouponCodesPromotionRules201ResponseDataRelationships object @@ -73,10 +74,42 @@ func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) SetPromotion o.Promotion = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + // GetCoupons returns the Coupons field value if set, zero value otherwise. -func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) GetCoupons() POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons { +func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) GetCoupons() POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons { if o == nil || IsNil(o.Coupons) { - var ret POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons return ret } return *o.Coupons @@ -84,7 +117,7 @@ func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) GetCoupons() // GetCouponsOk returns a tuple with the Coupons field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) GetCouponsOk() (*POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons, bool) { +func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) GetCouponsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons, bool) { if o == nil || IsNil(o.Coupons) { return nil, false } @@ -100,8 +133,8 @@ func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) HasCoupons() return false } -// SetCoupons gets a reference to the given POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons and assigns it to the Coupons field. -func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) SetCoupons(v POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) { +// SetCoupons gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons and assigns it to the Coupons field. +func (o *POSTCouponCodesPromotionRules201ResponseDataRelationships) SetCoupons(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) { o.Coupons = &v } @@ -118,6 +151,9 @@ func (o POSTCouponCodesPromotionRules201ResponseDataRelationships) ToMap() (map[ if !IsNil(o.Promotion) { toSerialize["promotion"] = o.Promotion } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.Coupons) { toSerialize["coupons"] = o.Coupons } diff --git a/api/model_post_coupon_codes_promotion_rules_201_response_data_relationships_coupons.go b/api/model_post_coupon_codes_promotion_rules_201_response_data_relationships_coupons.go deleted file mode 100644 index a15f7bb3..00000000 --- a/api/model_post_coupon_codes_promotion_rules_201_response_data_relationships_coupons.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons{} - -// POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons struct for POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons -type POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons struct { - Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` - Data *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData `json:"data,omitempty"` -} - -// NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons instantiates a new POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons() *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons { - this := POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons{} - return &this -} - -// NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsWithDefaults instantiates a new POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsWithDefaults() *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons { - this := POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons{} - return &this -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { - if o == nil || IsNil(o.Links) { - var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. -func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { - o.Links = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) GetData() POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData { - if o == nil || IsNil(o.Data) { - var ret POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) GetDataOk() (*POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData and assigns it to the Data field. -func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) SetData(v POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) { - o.Data = &v -} - -func (o POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons struct { - value *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons - isSet bool -} - -func (v NullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) Get() *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons { - return v.value -} - -func (v *NullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) Set(val *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) { - v.value = val - v.isSet = true -} - -func (v NullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) IsSet() bool { - return v.isSet -} - -func (v *NullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons(val *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) *NullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons { - return &NullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons{value: val, isSet: true} -} - -func (v NullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCoupons) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_post_coupon_codes_promotion_rules_201_response_data_relationships_coupons_data.go b/api/model_post_coupon_codes_promotion_rules_201_response_data_relationships_coupons_data.go deleted file mode 100644 index be17a894..00000000 --- a/api/model_post_coupon_codes_promotion_rules_201_response_data_relationships_coupons_data.go +++ /dev/null @@ -1,165 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData{} - -// POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData struct for POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData -type POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData struct { - // The resource's type - Type interface{} `json:"type,omitempty"` - // The resource ID - Id interface{} `json:"id,omitempty"` -} - -// NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData instantiates a new POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData() *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData { - this := POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData{} - return &this -} - -// NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsDataWithDefaults instantiates a new POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsDataWithDefaults() *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData { - this := POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) GetType() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) GetTypeOk() (*interface{}, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return &o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) HasType() bool { - if o != nil && IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) SetType(v interface{}) { - o.Type = v -} - -// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) GetId() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) GetIdOk() (*interface{}, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return &o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) HasId() bool { - if o != nil && IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) SetId(v interface{}) { - o.Id = v -} - -func (o POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if o.Type != nil { - toSerialize["type"] = o.Type - } - if o.Id != nil { - toSerialize["id"] = o.Id - } - return toSerialize, nil -} - -type NullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData struct { - value *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData - isSet bool -} - -func (v NullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) Get() *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData { - return v.value -} - -func (v *NullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) Set(val *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) { - v.value = val - v.isSet = true -} - -func (v NullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) IsSet() bool { - return v.isSet -} - -func (v *NullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData(val *POSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) *NullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData { - return &NullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData{value: val, isSet: true} -} - -func (v NullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePOSTCouponCodesPromotionRules201ResponseDataRelationshipsCouponsData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_post_coupon_codes_promotion_rules_201_response_data_relationships_promotion.go b/api/model_post_coupon_codes_promotion_rules_201_response_data_relationships_promotion.go index c0aadba4..9d42f379 100644 --- a/api/model_post_coupon_codes_promotion_rules_201_response_data_relationships_promotion.go +++ b/api/model_post_coupon_codes_promotion_rules_201_response_data_relationships_promotion.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_coupon_codes_promotion_rules_201_response_data_relationships_promotion_data.go b/api/model_post_coupon_codes_promotion_rules_201_response_data_relationships_promotion_data.go index 563daad8..eca22559 100644 --- a/api/model_post_coupon_codes_promotion_rules_201_response_data_relationships_promotion_data.go +++ b/api/model_post_coupon_codes_promotion_rules_201_response_data_relationships_promotion_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_coupon_recipients_201_response.go b/api/model_post_coupon_recipients_201_response.go index 61ff4445..3f73a825 100644 --- a/api/model_post_coupon_recipients_201_response.go +++ b/api/model_post_coupon_recipients_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_coupon_recipients_201_response_data.go b/api/model_post_coupon_recipients_201_response_data.go index 581c1fd5..5078c4c0 100644 --- a/api/model_post_coupon_recipients_201_response_data.go +++ b/api/model_post_coupon_recipients_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_coupon_recipients_201_response_data_attributes.go b/api/model_post_coupon_recipients_201_response_data_attributes.go index dc7e0e97..da6bbd11 100644 --- a/api/model_post_coupon_recipients_201_response_data_attributes.go +++ b/api/model_post_coupon_recipients_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,15 +20,15 @@ var _ MappedNullable = &POSTCouponRecipients201ResponseDataAttributes{} // POSTCouponRecipients201ResponseDataAttributes struct for POSTCouponRecipients201ResponseDataAttributes type POSTCouponRecipients201ResponseDataAttributes struct { - // The recipient email address + // The recipient email address. Email interface{} `json:"email"` - // The recipient first name + // The recipient first name. FirstName interface{} `json:"first_name,omitempty"` - // The recipient last name + // The recipient last name. LastName interface{} `json:"last_name,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_coupon_recipients_201_response_data_relationships.go b/api/model_post_coupon_recipients_201_response_data_relationships.go index fd9e57c9..6488f04d 100644 --- a/api/model_post_coupon_recipients_201_response_data_relationships.go +++ b/api/model_post_coupon_recipients_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,9 @@ var _ MappedNullable = &POSTCouponRecipients201ResponseDataRelationships{} // POSTCouponRecipients201ResponseDataRelationships struct for POSTCouponRecipients201ResponseDataRelationships type POSTCouponRecipients201ResponseDataRelationships struct { - Customer *POSTCouponRecipients201ResponseDataRelationshipsCustomer `json:"customer,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Customer *POSTCouponRecipients201ResponseDataRelationshipsCustomer `json:"customer,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTCouponRecipients201ResponseDataRelationships instantiates a new POSTCouponRecipients201ResponseDataRelationships object @@ -74,9 +75,9 @@ func (o *POSTCouponRecipients201ResponseDataRelationships) SetCustomer(v POSTCou } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTCouponRecipients201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTCouponRecipients201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -84,7 +85,7 @@ func (o *POSTCouponRecipients201ResponseDataRelationships) GetAttachments() POST // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTCouponRecipients201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTCouponRecipients201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -100,11 +101,43 @@ func (o *POSTCouponRecipients201ResponseDataRelationships) HasAttachments() bool return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTCouponRecipients201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTCouponRecipients201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTCouponRecipients201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCouponRecipients201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTCouponRecipients201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTCouponRecipients201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTCouponRecipients201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o POSTCouponRecipients201ResponseDataRelationships) ToMap() (map[string]in if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_coupon_recipients_201_response_data_relationships_customer.go b/api/model_post_coupon_recipients_201_response_data_relationships_customer.go index 935fe51d..24bda9a2 100644 --- a/api/model_post_coupon_recipients_201_response_data_relationships_customer.go +++ b/api/model_post_coupon_recipients_201_response_data_relationships_customer.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_coupon_recipients_201_response_data_relationships_customer_data.go b/api/model_post_coupon_recipients_201_response_data_relationships_customer_data.go index cd85264e..a900a97e 100644 --- a/api/model_post_coupon_recipients_201_response_data_relationships_customer_data.go +++ b/api/model_post_coupon_recipients_201_response_data_relationships_customer_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_coupons_201_response.go b/api/model_post_coupons_201_response.go index d6b29d27..47b655ec 100644 --- a/api/model_post_coupons_201_response.go +++ b/api/model_post_coupons_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_coupons_201_response_data.go b/api/model_post_coupons_201_response_data.go index 328bb67f..11c1764c 100644 --- a/api/model_post_coupons_201_response_data.go +++ b/api/model_post_coupons_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_coupons_201_response_data_attributes.go b/api/model_post_coupons_201_response_data_attributes.go index 0e572c63..7d968ef6 100644 --- a/api/model_post_coupons_201_response_data_attributes.go +++ b/api/model_post_coupons_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -25,12 +25,14 @@ type POSTCoupons201ResponseDataAttributes struct { // Indicates if the coupon can be used just once per customer. CustomerSingleUse interface{} `json:"customer_single_use,omitempty"` // The total number of times this coupon can be used. - UsageLimit interface{} `json:"usage_limit"` + UsageLimit interface{} `json:"usage_limit,omitempty"` // The email address of the associated recipient. When creating or updating a coupon, this is a shortcut to find or create the associated recipient by email. RecipientEmail interface{} `json:"recipient_email,omitempty"` + // Time at which the coupon will expire. + ExpiresAt interface{} `json:"expires_at,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -40,10 +42,9 @@ type POSTCoupons201ResponseDataAttributes struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTCoupons201ResponseDataAttributes(code interface{}, usageLimit interface{}) *POSTCoupons201ResponseDataAttributes { +func NewPOSTCoupons201ResponseDataAttributes(code interface{}) *POSTCoupons201ResponseDataAttributes { this := POSTCoupons201ResponseDataAttributes{} this.Code = code - this.UsageLimit = usageLimit return &this } @@ -114,18 +115,16 @@ func (o *POSTCoupons201ResponseDataAttributes) SetCustomerSingleUse(v interface{ o.CustomerSingleUse = v } -// GetUsageLimit returns the UsageLimit field value -// If the value is explicit nil, the zero value for interface{} will be returned +// GetUsageLimit returns the UsageLimit field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTCoupons201ResponseDataAttributes) GetUsageLimit() interface{} { if o == nil { var ret interface{} return ret } - return o.UsageLimit } -// GetUsageLimitOk returns a tuple with the UsageLimit field value +// GetUsageLimitOk returns a tuple with the UsageLimit field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *POSTCoupons201ResponseDataAttributes) GetUsageLimitOk() (*interface{}, bool) { @@ -135,7 +134,16 @@ func (o *POSTCoupons201ResponseDataAttributes) GetUsageLimitOk() (*interface{}, return &o.UsageLimit, true } -// SetUsageLimit sets field value +// HasUsageLimit returns a boolean if a field has been set. +func (o *POSTCoupons201ResponseDataAttributes) HasUsageLimit() bool { + if o != nil && IsNil(o.UsageLimit) { + return true + } + + return false +} + +// SetUsageLimit gets a reference to the given interface{} and assigns it to the UsageLimit field. func (o *POSTCoupons201ResponseDataAttributes) SetUsageLimit(v interface{}) { o.UsageLimit = v } @@ -173,6 +181,39 @@ func (o *POSTCoupons201ResponseDataAttributes) SetRecipientEmail(v interface{}) o.RecipientEmail = v } +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCoupons201ResponseDataAttributes) GetExpiresAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCoupons201ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExpiresAt) { + return nil, false + } + return &o.ExpiresAt, true +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *POSTCoupons201ResponseDataAttributes) HasExpiresAt() bool { + if o != nil && IsNil(o.ExpiresAt) { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given interface{} and assigns it to the ExpiresAt field. +func (o *POSTCoupons201ResponseDataAttributes) SetExpiresAt(v interface{}) { + o.ExpiresAt = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTCoupons201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -294,6 +335,9 @@ func (o POSTCoupons201ResponseDataAttributes) ToMap() (map[string]interface{}, e if o.RecipientEmail != nil { toSerialize["recipient_email"] = o.RecipientEmail } + if o.ExpiresAt != nil { + toSerialize["expires_at"] = o.ExpiresAt + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_coupons_201_response_data_relationships.go b/api/model_post_coupons_201_response_data_relationships.go index f3cde224..a513a6f3 100644 --- a/api/model_post_coupons_201_response_data_relationships.go +++ b/api/model_post_coupons_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,11 @@ var _ MappedNullable = &POSTCoupons201ResponseDataRelationships{} // POSTCoupons201ResponseDataRelationships struct for POSTCoupons201ResponseDataRelationships type POSTCoupons201ResponseDataRelationships struct { - PromotionRule *POSTCoupons201ResponseDataRelationshipsPromotionRule `json:"promotion_rule,omitempty"` + PromotionRule *POSTCoupons201ResponseDataRelationshipsPromotionRule `json:"promotion_rule,omitempty"` + CouponRecipient *POSTCoupons201ResponseDataRelationshipsCouponRecipient `json:"coupon_recipient,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Tags *POSTAddresses201ResponseDataRelationshipsTags `json:"tags,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTCoupons201ResponseDataRelationships instantiates a new POSTCoupons201ResponseDataRelationships object @@ -72,6 +76,134 @@ func (o *POSTCoupons201ResponseDataRelationships) SetPromotionRule(v POSTCoupons o.PromotionRule = &v } +// GetCouponRecipient returns the CouponRecipient field value if set, zero value otherwise. +func (o *POSTCoupons201ResponseDataRelationships) GetCouponRecipient() POSTCoupons201ResponseDataRelationshipsCouponRecipient { + if o == nil || IsNil(o.CouponRecipient) { + var ret POSTCoupons201ResponseDataRelationshipsCouponRecipient + return ret + } + return *o.CouponRecipient +} + +// GetCouponRecipientOk returns a tuple with the CouponRecipient field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCoupons201ResponseDataRelationships) GetCouponRecipientOk() (*POSTCoupons201ResponseDataRelationshipsCouponRecipient, bool) { + if o == nil || IsNil(o.CouponRecipient) { + return nil, false + } + return o.CouponRecipient, true +} + +// HasCouponRecipient returns a boolean if a field has been set. +func (o *POSTCoupons201ResponseDataRelationships) HasCouponRecipient() bool { + if o != nil && !IsNil(o.CouponRecipient) { + return true + } + + return false +} + +// SetCouponRecipient gets a reference to the given POSTCoupons201ResponseDataRelationshipsCouponRecipient and assigns it to the CouponRecipient field. +func (o *POSTCoupons201ResponseDataRelationships) SetCouponRecipient(v POSTCoupons201ResponseDataRelationshipsCouponRecipient) { + o.CouponRecipient = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *POSTCoupons201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCoupons201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *POSTCoupons201ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTCoupons201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *POSTCoupons201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret POSTAddresses201ResponseDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCoupons201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *POSTCoupons201ResponseDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given POSTAddresses201ResponseDataRelationshipsTags and assigns it to the Tags field. +func (o *POSTCoupons201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTCoupons201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCoupons201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTCoupons201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTCoupons201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTCoupons201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +217,18 @@ func (o POSTCoupons201ResponseDataRelationships) ToMap() (map[string]interface{} if !IsNil(o.PromotionRule) { toSerialize["promotion_rule"] = o.PromotionRule } + if !IsNil(o.CouponRecipient) { + toSerialize["coupon_recipient"] = o.CouponRecipient + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_coupons_201_response_data_relationships_coupon_recipient.go b/api/model_post_coupons_201_response_data_relationships_coupon_recipient.go new file mode 100644 index 00000000..c452e480 --- /dev/null +++ b/api/model_post_coupons_201_response_data_relationships_coupon_recipient.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTCoupons201ResponseDataRelationshipsCouponRecipient type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTCoupons201ResponseDataRelationshipsCouponRecipient{} + +// POSTCoupons201ResponseDataRelationshipsCouponRecipient struct for POSTCoupons201ResponseDataRelationshipsCouponRecipient +type POSTCoupons201ResponseDataRelationshipsCouponRecipient struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTCoupons201ResponseDataRelationshipsCouponRecipientData `json:"data,omitempty"` +} + +// NewPOSTCoupons201ResponseDataRelationshipsCouponRecipient instantiates a new POSTCoupons201ResponseDataRelationshipsCouponRecipient object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTCoupons201ResponseDataRelationshipsCouponRecipient() *POSTCoupons201ResponseDataRelationshipsCouponRecipient { + this := POSTCoupons201ResponseDataRelationshipsCouponRecipient{} + return &this +} + +// NewPOSTCoupons201ResponseDataRelationshipsCouponRecipientWithDefaults instantiates a new POSTCoupons201ResponseDataRelationshipsCouponRecipient object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTCoupons201ResponseDataRelationshipsCouponRecipientWithDefaults() *POSTCoupons201ResponseDataRelationshipsCouponRecipient { + this := POSTCoupons201ResponseDataRelationshipsCouponRecipient{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipient) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipient) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipient) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipient) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipient) GetData() POSTCoupons201ResponseDataRelationshipsCouponRecipientData { + if o == nil || IsNil(o.Data) { + var ret POSTCoupons201ResponseDataRelationshipsCouponRecipientData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipient) GetDataOk() (*POSTCoupons201ResponseDataRelationshipsCouponRecipientData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipient) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTCoupons201ResponseDataRelationshipsCouponRecipientData and assigns it to the Data field. +func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipient) SetData(v POSTCoupons201ResponseDataRelationshipsCouponRecipientData) { + o.Data = &v +} + +func (o POSTCoupons201ResponseDataRelationshipsCouponRecipient) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTCoupons201ResponseDataRelationshipsCouponRecipient) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTCoupons201ResponseDataRelationshipsCouponRecipient struct { + value *POSTCoupons201ResponseDataRelationshipsCouponRecipient + isSet bool +} + +func (v NullablePOSTCoupons201ResponseDataRelationshipsCouponRecipient) Get() *POSTCoupons201ResponseDataRelationshipsCouponRecipient { + return v.value +} + +func (v *NullablePOSTCoupons201ResponseDataRelationshipsCouponRecipient) Set(val *POSTCoupons201ResponseDataRelationshipsCouponRecipient) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTCoupons201ResponseDataRelationshipsCouponRecipient) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTCoupons201ResponseDataRelationshipsCouponRecipient) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTCoupons201ResponseDataRelationshipsCouponRecipient(val *POSTCoupons201ResponseDataRelationshipsCouponRecipient) *NullablePOSTCoupons201ResponseDataRelationshipsCouponRecipient { + return &NullablePOSTCoupons201ResponseDataRelationshipsCouponRecipient{value: val, isSet: true} +} + +func (v NullablePOSTCoupons201ResponseDataRelationshipsCouponRecipient) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTCoupons201ResponseDataRelationshipsCouponRecipient) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_coupons_201_response_data_relationships_coupon_recipient_data.go b/api/model_post_coupons_201_response_data_relationships_coupon_recipient_data.go new file mode 100644 index 00000000..d8dd6d4e --- /dev/null +++ b/api/model_post_coupons_201_response_data_relationships_coupon_recipient_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTCoupons201ResponseDataRelationshipsCouponRecipientData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTCoupons201ResponseDataRelationshipsCouponRecipientData{} + +// POSTCoupons201ResponseDataRelationshipsCouponRecipientData struct for POSTCoupons201ResponseDataRelationshipsCouponRecipientData +type POSTCoupons201ResponseDataRelationshipsCouponRecipientData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTCoupons201ResponseDataRelationshipsCouponRecipientData instantiates a new POSTCoupons201ResponseDataRelationshipsCouponRecipientData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTCoupons201ResponseDataRelationshipsCouponRecipientData() *POSTCoupons201ResponseDataRelationshipsCouponRecipientData { + this := POSTCoupons201ResponseDataRelationshipsCouponRecipientData{} + return &this +} + +// NewPOSTCoupons201ResponseDataRelationshipsCouponRecipientDataWithDefaults instantiates a new POSTCoupons201ResponseDataRelationshipsCouponRecipientData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTCoupons201ResponseDataRelationshipsCouponRecipientDataWithDefaults() *POSTCoupons201ResponseDataRelationshipsCouponRecipientData { + this := POSTCoupons201ResponseDataRelationshipsCouponRecipientData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTCoupons201ResponseDataRelationshipsCouponRecipientData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTCoupons201ResponseDataRelationshipsCouponRecipientData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTCoupons201ResponseDataRelationshipsCouponRecipientData struct { + value *POSTCoupons201ResponseDataRelationshipsCouponRecipientData + isSet bool +} + +func (v NullablePOSTCoupons201ResponseDataRelationshipsCouponRecipientData) Get() *POSTCoupons201ResponseDataRelationshipsCouponRecipientData { + return v.value +} + +func (v *NullablePOSTCoupons201ResponseDataRelationshipsCouponRecipientData) Set(val *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTCoupons201ResponseDataRelationshipsCouponRecipientData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTCoupons201ResponseDataRelationshipsCouponRecipientData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTCoupons201ResponseDataRelationshipsCouponRecipientData(val *POSTCoupons201ResponseDataRelationshipsCouponRecipientData) *NullablePOSTCoupons201ResponseDataRelationshipsCouponRecipientData { + return &NullablePOSTCoupons201ResponseDataRelationshipsCouponRecipientData{value: val, isSet: true} +} + +func (v NullablePOSTCoupons201ResponseDataRelationshipsCouponRecipientData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTCoupons201ResponseDataRelationshipsCouponRecipientData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_coupons_201_response_data_relationships_promotion_rule.go b/api/model_post_coupons_201_response_data_relationships_promotion_rule.go index b04ff5ba..66f651ff 100644 --- a/api/model_post_coupons_201_response_data_relationships_promotion_rule.go +++ b/api/model_post_coupons_201_response_data_relationships_promotion_rule.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_coupons_201_response_data_relationships_promotion_rule_data.go b/api/model_post_coupons_201_response_data_relationships_promotion_rule_data.go index d0e0bf6d..1a2b85d6 100644 --- a/api/model_post_coupons_201_response_data_relationships_promotion_rule_data.go +++ b/api/model_post_coupons_201_response_data_relationships_promotion_rule_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_custom_promotion_rules_201_response.go b/api/model_post_custom_promotion_rules_201_response.go new file mode 100644 index 00000000..8be5d6dd --- /dev/null +++ b/api/model_post_custom_promotion_rules_201_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTCustomPromotionRules201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTCustomPromotionRules201Response{} + +// POSTCustomPromotionRules201Response struct for POSTCustomPromotionRules201Response +type POSTCustomPromotionRules201Response struct { + Data *POSTCustomPromotionRules201ResponseData `json:"data,omitempty"` +} + +// NewPOSTCustomPromotionRules201Response instantiates a new POSTCustomPromotionRules201Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTCustomPromotionRules201Response() *POSTCustomPromotionRules201Response { + this := POSTCustomPromotionRules201Response{} + return &this +} + +// NewPOSTCustomPromotionRules201ResponseWithDefaults instantiates a new POSTCustomPromotionRules201Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTCustomPromotionRules201ResponseWithDefaults() *POSTCustomPromotionRules201Response { + this := POSTCustomPromotionRules201Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTCustomPromotionRules201Response) GetData() POSTCustomPromotionRules201ResponseData { + if o == nil || IsNil(o.Data) { + var ret POSTCustomPromotionRules201ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCustomPromotionRules201Response) GetDataOk() (*POSTCustomPromotionRules201ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTCustomPromotionRules201Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTCustomPromotionRules201ResponseData and assigns it to the Data field. +func (o *POSTCustomPromotionRules201Response) SetData(v POSTCustomPromotionRules201ResponseData) { + o.Data = &v +} + +func (o POSTCustomPromotionRules201Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTCustomPromotionRules201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTCustomPromotionRules201Response struct { + value *POSTCustomPromotionRules201Response + isSet bool +} + +func (v NullablePOSTCustomPromotionRules201Response) Get() *POSTCustomPromotionRules201Response { + return v.value +} + +func (v *NullablePOSTCustomPromotionRules201Response) Set(val *POSTCustomPromotionRules201Response) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTCustomPromotionRules201Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTCustomPromotionRules201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTCustomPromotionRules201Response(val *POSTCustomPromotionRules201Response) *NullablePOSTCustomPromotionRules201Response { + return &NullablePOSTCustomPromotionRules201Response{value: val, isSet: true} +} + +func (v NullablePOSTCustomPromotionRules201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTCustomPromotionRules201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_custom_promotion_rules_201_response_data.go b/api/model_post_custom_promotion_rules_201_response_data.go new file mode 100644 index 00000000..cfb34931 --- /dev/null +++ b/api/model_post_custom_promotion_rules_201_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTCustomPromotionRules201ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTCustomPromotionRules201ResponseData{} + +// POSTCustomPromotionRules201ResponseData struct for POSTCustomPromotionRules201ResponseData +type POSTCustomPromotionRules201ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTCustomPromotionRules201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTCustomPromotionRules201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPOSTCustomPromotionRules201ResponseData instantiates a new POSTCustomPromotionRules201ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTCustomPromotionRules201ResponseData() *POSTCustomPromotionRules201ResponseData { + this := POSTCustomPromotionRules201ResponseData{} + return &this +} + +// NewPOSTCustomPromotionRules201ResponseDataWithDefaults instantiates a new POSTCustomPromotionRules201ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTCustomPromotionRules201ResponseDataWithDefaults() *POSTCustomPromotionRules201ResponseData { + this := POSTCustomPromotionRules201ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCustomPromotionRules201ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCustomPromotionRules201ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTCustomPromotionRules201ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTCustomPromotionRules201ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCustomPromotionRules201ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCustomPromotionRules201ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTCustomPromotionRules201ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTCustomPromotionRules201ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTCustomPromotionRules201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCustomPromotionRules201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTCustomPromotionRules201ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *POSTCustomPromotionRules201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *POSTCustomPromotionRules201ResponseData) GetAttributes() POSTCustomPromotionRules201ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret POSTCustomPromotionRules201ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCustomPromotionRules201ResponseData) GetAttributesOk() (*POSTCustomPromotionRules201ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *POSTCustomPromotionRules201ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given POSTCustomPromotionRules201ResponseDataAttributes and assigns it to the Attributes field. +func (o *POSTCustomPromotionRules201ResponseData) SetAttributes(v POSTCustomPromotionRules201ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *POSTCustomPromotionRules201ResponseData) GetRelationships() POSTCustomPromotionRules201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTCustomPromotionRules201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCustomPromotionRules201ResponseData) GetRelationshipsOk() (*POSTCustomPromotionRules201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *POSTCustomPromotionRules201ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTCustomPromotionRules201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTCustomPromotionRules201ResponseData) SetRelationships(v POSTCustomPromotionRules201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o POSTCustomPromotionRules201ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTCustomPromotionRules201ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePOSTCustomPromotionRules201ResponseData struct { + value *POSTCustomPromotionRules201ResponseData + isSet bool +} + +func (v NullablePOSTCustomPromotionRules201ResponseData) Get() *POSTCustomPromotionRules201ResponseData { + return v.value +} + +func (v *NullablePOSTCustomPromotionRules201ResponseData) Set(val *POSTCustomPromotionRules201ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTCustomPromotionRules201ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTCustomPromotionRules201ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTCustomPromotionRules201ResponseData(val *POSTCustomPromotionRules201ResponseData) *NullablePOSTCustomPromotionRules201ResponseData { + return &NullablePOSTCustomPromotionRules201ResponseData{value: val, isSet: true} +} + +func (v NullablePOSTCustomPromotionRules201ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTCustomPromotionRules201ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_custom_promotion_rules_201_response_data_attributes.go b/api/model_post_custom_promotion_rules_201_response_data_attributes.go new file mode 100644 index 00000000..55e5db7b --- /dev/null +++ b/api/model_post_custom_promotion_rules_201_response_data_attributes.go @@ -0,0 +1,241 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTCustomPromotionRules201ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTCustomPromotionRules201ResponseDataAttributes{} + +// POSTCustomPromotionRules201ResponseDataAttributes struct for POSTCustomPromotionRules201ResponseDataAttributes +type POSTCustomPromotionRules201ResponseDataAttributes struct { + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` + // The filters used to trigger promotion on the matching order and its relationships attributes. + Filters interface{} `json:"filters,omitempty"` +} + +// NewPOSTCustomPromotionRules201ResponseDataAttributes instantiates a new POSTCustomPromotionRules201ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTCustomPromotionRules201ResponseDataAttributes() *POSTCustomPromotionRules201ResponseDataAttributes { + this := POSTCustomPromotionRules201ResponseDataAttributes{} + return &this +} + +// NewPOSTCustomPromotionRules201ResponseDataAttributesWithDefaults instantiates a new POSTCustomPromotionRules201ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTCustomPromotionRules201ResponseDataAttributesWithDefaults() *POSTCustomPromotionRules201ResponseDataAttributes { + this := POSTCustomPromotionRules201ResponseDataAttributes{} + return &this +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCustomPromotionRules201ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCustomPromotionRules201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *POSTCustomPromotionRules201ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *POSTCustomPromotionRules201ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCustomPromotionRules201ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCustomPromotionRules201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *POSTCustomPromotionRules201ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *POSTCustomPromotionRules201ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCustomPromotionRules201ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCustomPromotionRules201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *POSTCustomPromotionRules201ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *POSTCustomPromotionRules201ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +// GetFilters returns the Filters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCustomPromotionRules201ResponseDataAttributes) GetFilters() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Filters +} + +// GetFiltersOk returns a tuple with the Filters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCustomPromotionRules201ResponseDataAttributes) GetFiltersOk() (*interface{}, bool) { + if o == nil || IsNil(o.Filters) { + return nil, false + } + return &o.Filters, true +} + +// HasFilters returns a boolean if a field has been set. +func (o *POSTCustomPromotionRules201ResponseDataAttributes) HasFilters() bool { + if o != nil && IsNil(o.Filters) { + return true + } + + return false +} + +// SetFilters gets a reference to the given interface{} and assigns it to the Filters field. +func (o *POSTCustomPromotionRules201ResponseDataAttributes) SetFilters(v interface{}) { + o.Filters = v +} + +func (o POSTCustomPromotionRules201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTCustomPromotionRules201ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Filters != nil { + toSerialize["filters"] = o.Filters + } + return toSerialize, nil +} + +type NullablePOSTCustomPromotionRules201ResponseDataAttributes struct { + value *POSTCustomPromotionRules201ResponseDataAttributes + isSet bool +} + +func (v NullablePOSTCustomPromotionRules201ResponseDataAttributes) Get() *POSTCustomPromotionRules201ResponseDataAttributes { + return v.value +} + +func (v *NullablePOSTCustomPromotionRules201ResponseDataAttributes) Set(val *POSTCustomPromotionRules201ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTCustomPromotionRules201ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTCustomPromotionRules201ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTCustomPromotionRules201ResponseDataAttributes(val *POSTCustomPromotionRules201ResponseDataAttributes) *NullablePOSTCustomPromotionRules201ResponseDataAttributes { + return &NullablePOSTCustomPromotionRules201ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePOSTCustomPromotionRules201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTCustomPromotionRules201ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_custom_promotion_rules_201_response_data_relationships.go b/api/model_post_custom_promotion_rules_201_response_data_relationships.go new file mode 100644 index 00000000..0a84733f --- /dev/null +++ b/api/model_post_custom_promotion_rules_201_response_data_relationships.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTCustomPromotionRules201ResponseDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTCustomPromotionRules201ResponseDataRelationships{} + +// POSTCustomPromotionRules201ResponseDataRelationships struct for POSTCustomPromotionRules201ResponseDataRelationships +type POSTCustomPromotionRules201ResponseDataRelationships struct { + Promotion *POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion `json:"promotion,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewPOSTCustomPromotionRules201ResponseDataRelationships instantiates a new POSTCustomPromotionRules201ResponseDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTCustomPromotionRules201ResponseDataRelationships() *POSTCustomPromotionRules201ResponseDataRelationships { + this := POSTCustomPromotionRules201ResponseDataRelationships{} + return &this +} + +// NewPOSTCustomPromotionRules201ResponseDataRelationshipsWithDefaults instantiates a new POSTCustomPromotionRules201ResponseDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTCustomPromotionRules201ResponseDataRelationshipsWithDefaults() *POSTCustomPromotionRules201ResponseDataRelationships { + this := POSTCustomPromotionRules201ResponseDataRelationships{} + return &this +} + +// GetPromotion returns the Promotion field value if set, zero value otherwise. +func (o *POSTCustomPromotionRules201ResponseDataRelationships) GetPromotion() POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion { + if o == nil || IsNil(o.Promotion) { + var ret POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion + return ret + } + return *o.Promotion +} + +// GetPromotionOk returns a tuple with the Promotion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCustomPromotionRules201ResponseDataRelationships) GetPromotionOk() (*POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion, bool) { + if o == nil || IsNil(o.Promotion) { + return nil, false + } + return o.Promotion, true +} + +// HasPromotion returns a boolean if a field has been set. +func (o *POSTCustomPromotionRules201ResponseDataRelationships) HasPromotion() bool { + if o != nil && !IsNil(o.Promotion) { + return true + } + + return false +} + +// SetPromotion gets a reference to the given POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion and assigns it to the Promotion field. +func (o *POSTCustomPromotionRules201ResponseDataRelationships) SetPromotion(v POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion) { + o.Promotion = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTCustomPromotionRules201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCustomPromotionRules201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTCustomPromotionRules201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTCustomPromotionRules201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + +func (o POSTCustomPromotionRules201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTCustomPromotionRules201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Promotion) { + toSerialize["promotion"] = o.Promotion + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullablePOSTCustomPromotionRules201ResponseDataRelationships struct { + value *POSTCustomPromotionRules201ResponseDataRelationships + isSet bool +} + +func (v NullablePOSTCustomPromotionRules201ResponseDataRelationships) Get() *POSTCustomPromotionRules201ResponseDataRelationships { + return v.value +} + +func (v *NullablePOSTCustomPromotionRules201ResponseDataRelationships) Set(val *POSTCustomPromotionRules201ResponseDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTCustomPromotionRules201ResponseDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTCustomPromotionRules201ResponseDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTCustomPromotionRules201ResponseDataRelationships(val *POSTCustomPromotionRules201ResponseDataRelationships) *NullablePOSTCustomPromotionRules201ResponseDataRelationships { + return &NullablePOSTCustomPromotionRules201ResponseDataRelationships{value: val, isSet: true} +} + +func (v NullablePOSTCustomPromotionRules201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTCustomPromotionRules201ResponseDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_customer_addresses_201_response.go b/api/model_post_customer_addresses_201_response.go index b292603d..237e9a15 100644 --- a/api/model_post_customer_addresses_201_response.go +++ b/api/model_post_customer_addresses_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customer_addresses_201_response_data.go b/api/model_post_customer_addresses_201_response_data.go index 377efb47..3862968d 100644 --- a/api/model_post_customer_addresses_201_response_data.go +++ b/api/model_post_customer_addresses_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -25,7 +25,7 @@ type POSTCustomerAddresses201ResponseData struct { // The resource's type Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *POSTAdyenPayments201ResponseDataAttributes `json:"attributes,omitempty"` + Attributes *POSTCustomerAddresses201ResponseDataAttributes `json:"attributes,omitempty"` Relationships *POSTCustomerAddresses201ResponseDataRelationships `json:"relationships,omitempty"` } @@ -145,9 +145,9 @@ func (o *POSTCustomerAddresses201ResponseData) SetLinks(v POSTAddresses201Respon } // GetAttributes returns the Attributes field value if set, zero value otherwise. -func (o *POSTCustomerAddresses201ResponseData) GetAttributes() POSTAdyenPayments201ResponseDataAttributes { +func (o *POSTCustomerAddresses201ResponseData) GetAttributes() POSTCustomerAddresses201ResponseDataAttributes { if o == nil || IsNil(o.Attributes) { - var ret POSTAdyenPayments201ResponseDataAttributes + var ret POSTCustomerAddresses201ResponseDataAttributes return ret } return *o.Attributes @@ -155,7 +155,7 @@ func (o *POSTCustomerAddresses201ResponseData) GetAttributes() POSTAdyenPayments // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTCustomerAddresses201ResponseData) GetAttributesOk() (*POSTAdyenPayments201ResponseDataAttributes, bool) { +func (o *POSTCustomerAddresses201ResponseData) GetAttributesOk() (*POSTCustomerAddresses201ResponseDataAttributes, bool) { if o == nil || IsNil(o.Attributes) { return nil, false } @@ -171,8 +171,8 @@ func (o *POSTCustomerAddresses201ResponseData) HasAttributes() bool { return false } -// SetAttributes gets a reference to the given POSTAdyenPayments201ResponseDataAttributes and assigns it to the Attributes field. -func (o *POSTCustomerAddresses201ResponseData) SetAttributes(v POSTAdyenPayments201ResponseDataAttributes) { +// SetAttributes gets a reference to the given POSTCustomerAddresses201ResponseDataAttributes and assigns it to the Attributes field. +func (o *POSTCustomerAddresses201ResponseData) SetAttributes(v POSTCustomerAddresses201ResponseDataAttributes) { o.Attributes = &v } diff --git a/api/model_post_customer_addresses_201_response_data_attributes.go b/api/model_post_customer_addresses_201_response_data_attributes.go new file mode 100644 index 00000000..c21d8028 --- /dev/null +++ b/api/model_post_customer_addresses_201_response_data_attributes.go @@ -0,0 +1,235 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTCustomerAddresses201ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTCustomerAddresses201ResponseDataAttributes{} + +// POSTCustomerAddresses201ResponseDataAttributes struct for POSTCustomerAddresses201ResponseDataAttributes +type POSTCustomerAddresses201ResponseDataAttributes struct { + // The email of the customer associated to the address. + CustomerEmail interface{} `json:"customer_email"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPOSTCustomerAddresses201ResponseDataAttributes instantiates a new POSTCustomerAddresses201ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTCustomerAddresses201ResponseDataAttributes(customerEmail interface{}) *POSTCustomerAddresses201ResponseDataAttributes { + this := POSTCustomerAddresses201ResponseDataAttributes{} + this.CustomerEmail = customerEmail + return &this +} + +// NewPOSTCustomerAddresses201ResponseDataAttributesWithDefaults instantiates a new POSTCustomerAddresses201ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTCustomerAddresses201ResponseDataAttributesWithDefaults() *POSTCustomerAddresses201ResponseDataAttributes { + this := POSTCustomerAddresses201ResponseDataAttributes{} + return &this +} + +// GetCustomerEmail returns the CustomerEmail field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTCustomerAddresses201ResponseDataAttributes) GetCustomerEmail() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.CustomerEmail +} + +// GetCustomerEmailOk returns a tuple with the CustomerEmail field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCustomerAddresses201ResponseDataAttributes) GetCustomerEmailOk() (*interface{}, bool) { + if o == nil || IsNil(o.CustomerEmail) { + return nil, false + } + return &o.CustomerEmail, true +} + +// SetCustomerEmail sets field value +func (o *POSTCustomerAddresses201ResponseDataAttributes) SetCustomerEmail(v interface{}) { + o.CustomerEmail = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCustomerAddresses201ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCustomerAddresses201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *POSTCustomerAddresses201ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *POSTCustomerAddresses201ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCustomerAddresses201ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCustomerAddresses201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *POSTCustomerAddresses201ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *POSTCustomerAddresses201ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCustomerAddresses201ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCustomerAddresses201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *POSTCustomerAddresses201ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *POSTCustomerAddresses201ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o POSTCustomerAddresses201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTCustomerAddresses201ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.CustomerEmail != nil { + toSerialize["customer_email"] = o.CustomerEmail + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePOSTCustomerAddresses201ResponseDataAttributes struct { + value *POSTCustomerAddresses201ResponseDataAttributes + isSet bool +} + +func (v NullablePOSTCustomerAddresses201ResponseDataAttributes) Get() *POSTCustomerAddresses201ResponseDataAttributes { + return v.value +} + +func (v *NullablePOSTCustomerAddresses201ResponseDataAttributes) Set(val *POSTCustomerAddresses201ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTCustomerAddresses201ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTCustomerAddresses201ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTCustomerAddresses201ResponseDataAttributes(val *POSTCustomerAddresses201ResponseDataAttributes) *NullablePOSTCustomerAddresses201ResponseDataAttributes { + return &NullablePOSTCustomerAddresses201ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePOSTCustomerAddresses201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTCustomerAddresses201ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_customer_addresses_201_response_data_relationships.go b/api/model_post_customer_addresses_201_response_data_relationships.go index a6cccf08..7222d0c3 100644 --- a/api/model_post_customer_addresses_201_response_data_relationships.go +++ b/api/model_post_customer_addresses_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,10 @@ var _ MappedNullable = &POSTCustomerAddresses201ResponseDataRelationships{} // POSTCustomerAddresses201ResponseDataRelationships struct for POSTCustomerAddresses201ResponseDataRelationships type POSTCustomerAddresses201ResponseDataRelationships struct { - Customer *POSTCouponRecipients201ResponseDataRelationshipsCustomer `json:"customer,omitempty"` - Address *POSTCustomerAddresses201ResponseDataRelationshipsAddress `json:"address,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` + Customer *POSTCouponRecipients201ResponseDataRelationshipsCustomer `json:"customer,omitempty"` + Address *POSTCustomerAddresses201ResponseDataRelationshipsAddress `json:"address,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTCustomerAddresses201ResponseDataRelationships instantiates a new POSTCustomerAddresses201ResponseDataRelationships object @@ -107,9 +108,9 @@ func (o *POSTCustomerAddresses201ResponseDataRelationships) SetAddress(v POSTCus } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *POSTCustomerAddresses201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { +func (o *POSTCustomerAddresses201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents + var ret POSTAddresses201ResponseDataRelationshipsEvents return ret } return *o.Events @@ -117,7 +118,7 @@ func (o *POSTCustomerAddresses201ResponseDataRelationships) GetEvents() GETAutho // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTCustomerAddresses201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { +func (o *POSTCustomerAddresses201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -133,11 +134,43 @@ func (o *POSTCustomerAddresses201ResponseDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *POSTCustomerAddresses201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTCustomerAddresses201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { o.Events = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTCustomerAddresses201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCustomerAddresses201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTCustomerAddresses201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTCustomerAddresses201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTCustomerAddresses201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -157,6 +190,9 @@ func (o POSTCustomerAddresses201ResponseDataRelationships) ToMap() (map[string]i if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_customer_addresses_201_response_data_relationships_address.go b/api/model_post_customer_addresses_201_response_data_relationships_address.go index 432e2f0c..553d8c9b 100644 --- a/api/model_post_customer_addresses_201_response_data_relationships_address.go +++ b/api/model_post_customer_addresses_201_response_data_relationships_address.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customer_addresses_201_response_data_relationships_address_data.go b/api/model_post_customer_addresses_201_response_data_relationships_address_data.go index 7d1cebbd..e5bb9e30 100644 --- a/api/model_post_customer_addresses_201_response_data_relationships_address_data.go +++ b/api/model_post_customer_addresses_201_response_data_relationships_address_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customer_groups_201_response.go b/api/model_post_customer_groups_201_response.go index 98682626..2548e07c 100644 --- a/api/model_post_customer_groups_201_response.go +++ b/api/model_post_customer_groups_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customer_groups_201_response_data.go b/api/model_post_customer_groups_201_response_data.go index 93c9850e..22586066 100644 --- a/api/model_post_customer_groups_201_response_data.go +++ b/api/model_post_customer_groups_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customer_groups_201_response_data_attributes.go b/api/model_post_customer_groups_201_response_data_attributes.go index a9206e06..9b3dcc87 100644 --- a/api/model_post_customer_groups_201_response_data_attributes.go +++ b/api/model_post_customer_groups_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,11 +20,13 @@ var _ MappedNullable = &POSTCustomerGroups201ResponseDataAttributes{} // POSTCustomerGroups201ResponseDataAttributes struct for POSTCustomerGroups201ResponseDataAttributes type POSTCustomerGroups201ResponseDataAttributes struct { - // The customer group's internal name + // The customer group's internal name. Name interface{} `json:"name"` + // A string that you can use to identify the customer group (must be unique within the environment). + Code interface{} `json:"code,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -74,6 +76,39 @@ func (o *POSTCustomerGroups201ResponseDataAttributes) SetName(v interface{}) { o.Name = v } +// GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCustomerGroups201ResponseDataAttributes) GetCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCustomerGroups201ResponseDataAttributes) GetCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return &o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *POSTCustomerGroups201ResponseDataAttributes) HasCode() bool { + if o != nil && IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given interface{} and assigns it to the Code field. +func (o *POSTCustomerGroups201ResponseDataAttributes) SetCode(v interface{}) { + o.Code = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTCustomerGroups201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -186,6 +221,9 @@ func (o POSTCustomerGroups201ResponseDataAttributes) ToMap() (map[string]interfa if o.Name != nil { toSerialize["name"] = o.Name } + if o.Code != nil { + toSerialize["code"] = o.Code + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_customer_groups_201_response_data_relationships.go b/api/model_post_customer_groups_201_response_data_relationships.go index 81fcd757..d7e63a3d 100644 --- a/api/model_post_customer_groups_201_response_data_relationships.go +++ b/api/model_post_customer_groups_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,10 @@ var _ MappedNullable = &POSTCustomerGroups201ResponseDataRelationships{} // POSTCustomerGroups201ResponseDataRelationships struct for POSTCustomerGroups201ResponseDataRelationships type POSTCustomerGroups201ResponseDataRelationships struct { - Customers *POSTCustomerGroups201ResponseDataRelationshipsCustomers `json:"customers,omitempty"` - Markets *POSTAvalaraAccounts201ResponseDataRelationshipsMarkets `json:"markets,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Customers *POSTCustomerGroups201ResponseDataRelationshipsCustomers `json:"customers,omitempty"` + Markets *POSTAvalaraAccounts201ResponseDataRelationshipsMarkets `json:"markets,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTCustomerGroups201ResponseDataRelationships instantiates a new POSTCustomerGroups201ResponseDataRelationships object @@ -107,9 +108,9 @@ func (o *POSTCustomerGroups201ResponseDataRelationships) SetMarkets(v POSTAvalar } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTCustomerGroups201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTCustomerGroups201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -117,7 +118,7 @@ func (o *POSTCustomerGroups201ResponseDataRelationships) GetAttachments() POSTAv // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTCustomerGroups201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTCustomerGroups201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -133,11 +134,43 @@ func (o *POSTCustomerGroups201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTCustomerGroups201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTCustomerGroups201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTCustomerGroups201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCustomerGroups201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTCustomerGroups201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTCustomerGroups201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTCustomerGroups201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -157,6 +190,9 @@ func (o POSTCustomerGroups201ResponseDataRelationships) ToMap() (map[string]inte if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_customer_groups_201_response_data_relationships_customers.go b/api/model_post_customer_groups_201_response_data_relationships_customers.go index 025e2f1a..f265d89a 100644 --- a/api/model_post_customer_groups_201_response_data_relationships_customers.go +++ b/api/model_post_customer_groups_201_response_data_relationships_customers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customer_groups_201_response_data_relationships_customers_data.go b/api/model_post_customer_groups_201_response_data_relationships_customers_data.go index afd043f9..cd244ed8 100644 --- a/api/model_post_customer_groups_201_response_data_relationships_customers_data.go +++ b/api/model_post_customer_groups_201_response_data_relationships_customers_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customer_password_resets_201_response.go b/api/model_post_customer_password_resets_201_response.go index b83ea87d..9977f0cb 100644 --- a/api/model_post_customer_password_resets_201_response.go +++ b/api/model_post_customer_password_resets_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customer_password_resets_201_response_data.go b/api/model_post_customer_password_resets_201_response_data.go index 37bee814..6731593e 100644 --- a/api/model_post_customer_password_resets_201_response_data.go +++ b/api/model_post_customer_password_resets_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customer_password_resets_201_response_data_attributes.go b/api/model_post_customer_password_resets_201_response_data_attributes.go index 7d081da9..37d11c67 100644 --- a/api/model_post_customer_password_resets_201_response_data_attributes.go +++ b/api/model_post_customer_password_resets_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,11 +20,11 @@ var _ MappedNullable = &POSTCustomerPasswordResets201ResponseDataAttributes{} // POSTCustomerPasswordResets201ResponseDataAttributes struct for POSTCustomerPasswordResets201ResponseDataAttributes type POSTCustomerPasswordResets201ResponseDataAttributes struct { - // The email of the customer that requires a password reset + // The email of the customer that requires a password reset. CustomerEmail interface{} `json:"customer_email"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_customer_password_resets_201_response_data_relationships.go b/api/model_post_customer_password_resets_201_response_data_relationships.go index e8d52c2c..9450c167 100644 --- a/api/model_post_customer_password_resets_201_response_data_relationships.go +++ b/api/model_post_customer_password_resets_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,8 @@ var _ MappedNullable = &POSTCustomerPasswordResets201ResponseDataRelationships{} // POSTCustomerPasswordResets201ResponseDataRelationships struct for POSTCustomerPasswordResets201ResponseDataRelationships type POSTCustomerPasswordResets201ResponseDataRelationships struct { - Customer *POSTCouponRecipients201ResponseDataRelationshipsCustomer `json:"customer,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` + Customer *POSTCouponRecipients201ResponseDataRelationshipsCustomer `json:"customer,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` } // NewPOSTCustomerPasswordResets201ResponseDataRelationships instantiates a new POSTCustomerPasswordResets201ResponseDataRelationships object @@ -74,9 +74,9 @@ func (o *POSTCustomerPasswordResets201ResponseDataRelationships) SetCustomer(v P } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *POSTCustomerPasswordResets201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { +func (o *POSTCustomerPasswordResets201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents + var ret POSTAddresses201ResponseDataRelationshipsEvents return ret } return *o.Events @@ -84,7 +84,7 @@ func (o *POSTCustomerPasswordResets201ResponseDataRelationships) GetEvents() GET // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTCustomerPasswordResets201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { +func (o *POSTCustomerPasswordResets201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -100,8 +100,8 @@ func (o *POSTCustomerPasswordResets201ResponseDataRelationships) HasEvents() boo return false } -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *POSTCustomerPasswordResets201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTCustomerPasswordResets201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { o.Events = &v } diff --git a/api/model_post_customer_payment_sources_201_response.go b/api/model_post_customer_payment_sources_201_response.go index 232b1394..83b69e02 100644 --- a/api/model_post_customer_payment_sources_201_response.go +++ b/api/model_post_customer_payment_sources_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customer_payment_sources_201_response_data.go b/api/model_post_customer_payment_sources_201_response_data.go index 5f825cb8..1ad208c6 100644 --- a/api/model_post_customer_payment_sources_201_response_data.go +++ b/api/model_post_customer_payment_sources_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -25,7 +25,7 @@ type POSTCustomerPaymentSources201ResponseData struct { // The resource's type Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *POSTAdyenPayments201ResponseDataAttributes `json:"attributes,omitempty"` + Attributes *POSTCustomerPaymentSources201ResponseDataAttributes `json:"attributes,omitempty"` Relationships *POSTCustomerPaymentSources201ResponseDataRelationships `json:"relationships,omitempty"` } @@ -145,9 +145,9 @@ func (o *POSTCustomerPaymentSources201ResponseData) SetLinks(v POSTAddresses201R } // GetAttributes returns the Attributes field value if set, zero value otherwise. -func (o *POSTCustomerPaymentSources201ResponseData) GetAttributes() POSTAdyenPayments201ResponseDataAttributes { +func (o *POSTCustomerPaymentSources201ResponseData) GetAttributes() POSTCustomerPaymentSources201ResponseDataAttributes { if o == nil || IsNil(o.Attributes) { - var ret POSTAdyenPayments201ResponseDataAttributes + var ret POSTCustomerPaymentSources201ResponseDataAttributes return ret } return *o.Attributes @@ -155,7 +155,7 @@ func (o *POSTCustomerPaymentSources201ResponseData) GetAttributes() POSTAdyenPay // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTCustomerPaymentSources201ResponseData) GetAttributesOk() (*POSTAdyenPayments201ResponseDataAttributes, bool) { +func (o *POSTCustomerPaymentSources201ResponseData) GetAttributesOk() (*POSTCustomerPaymentSources201ResponseDataAttributes, bool) { if o == nil || IsNil(o.Attributes) { return nil, false } @@ -171,8 +171,8 @@ func (o *POSTCustomerPaymentSources201ResponseData) HasAttributes() bool { return false } -// SetAttributes gets a reference to the given POSTAdyenPayments201ResponseDataAttributes and assigns it to the Attributes field. -func (o *POSTCustomerPaymentSources201ResponseData) SetAttributes(v POSTAdyenPayments201ResponseDataAttributes) { +// SetAttributes gets a reference to the given POSTCustomerPaymentSources201ResponseDataAttributes and assigns it to the Attributes field. +func (o *POSTCustomerPaymentSources201ResponseData) SetAttributes(v POSTCustomerPaymentSources201ResponseDataAttributes) { o.Attributes = &v } diff --git a/api/model_post_customer_payment_sources_201_response_data_attributes.go b/api/model_post_customer_payment_sources_201_response_data_attributes.go new file mode 100644 index 00000000..c6aa7599 --- /dev/null +++ b/api/model_post_customer_payment_sources_201_response_data_attributes.go @@ -0,0 +1,279 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTCustomerPaymentSources201ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTCustomerPaymentSources201ResponseDataAttributes{} + +// POSTCustomerPaymentSources201ResponseDataAttributes struct for POSTCustomerPaymentSources201ResponseDataAttributes +type POSTCustomerPaymentSources201ResponseDataAttributes struct { + // Returns the customer gateway token stored in the gateway. + CustomerToken interface{} `json:"customer_token,omitempty"` + // Returns the payment source token stored in the gateway. + PaymentSourceToken interface{} `json:"payment_source_token,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPOSTCustomerPaymentSources201ResponseDataAttributes instantiates a new POSTCustomerPaymentSources201ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTCustomerPaymentSources201ResponseDataAttributes() *POSTCustomerPaymentSources201ResponseDataAttributes { + this := POSTCustomerPaymentSources201ResponseDataAttributes{} + return &this +} + +// NewPOSTCustomerPaymentSources201ResponseDataAttributesWithDefaults instantiates a new POSTCustomerPaymentSources201ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTCustomerPaymentSources201ResponseDataAttributesWithDefaults() *POSTCustomerPaymentSources201ResponseDataAttributes { + this := POSTCustomerPaymentSources201ResponseDataAttributes{} + return &this +} + +// GetCustomerToken returns the CustomerToken field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetCustomerToken() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CustomerToken +} + +// GetCustomerTokenOk returns a tuple with the CustomerToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetCustomerTokenOk() (*interface{}, bool) { + if o == nil || IsNil(o.CustomerToken) { + return nil, false + } + return &o.CustomerToken, true +} + +// HasCustomerToken returns a boolean if a field has been set. +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) HasCustomerToken() bool { + if o != nil && IsNil(o.CustomerToken) { + return true + } + + return false +} + +// SetCustomerToken gets a reference to the given interface{} and assigns it to the CustomerToken field. +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) SetCustomerToken(v interface{}) { + o.CustomerToken = v +} + +// GetPaymentSourceToken returns the PaymentSourceToken field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetPaymentSourceToken() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PaymentSourceToken +} + +// GetPaymentSourceTokenOk returns a tuple with the PaymentSourceToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetPaymentSourceTokenOk() (*interface{}, bool) { + if o == nil || IsNil(o.PaymentSourceToken) { + return nil, false + } + return &o.PaymentSourceToken, true +} + +// HasPaymentSourceToken returns a boolean if a field has been set. +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) HasPaymentSourceToken() bool { + if o != nil && IsNil(o.PaymentSourceToken) { + return true + } + + return false +} + +// SetPaymentSourceToken gets a reference to the given interface{} and assigns it to the PaymentSourceToken field. +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) SetPaymentSourceToken(v interface{}) { + o.PaymentSourceToken = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *POSTCustomerPaymentSources201ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o POSTCustomerPaymentSources201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTCustomerPaymentSources201ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.CustomerToken != nil { + toSerialize["customer_token"] = o.CustomerToken + } + if o.PaymentSourceToken != nil { + toSerialize["payment_source_token"] = o.PaymentSourceToken + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePOSTCustomerPaymentSources201ResponseDataAttributes struct { + value *POSTCustomerPaymentSources201ResponseDataAttributes + isSet bool +} + +func (v NullablePOSTCustomerPaymentSources201ResponseDataAttributes) Get() *POSTCustomerPaymentSources201ResponseDataAttributes { + return v.value +} + +func (v *NullablePOSTCustomerPaymentSources201ResponseDataAttributes) Set(val *POSTCustomerPaymentSources201ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTCustomerPaymentSources201ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTCustomerPaymentSources201ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTCustomerPaymentSources201ResponseDataAttributes(val *POSTCustomerPaymentSources201ResponseDataAttributes) *NullablePOSTCustomerPaymentSources201ResponseDataAttributes { + return &NullablePOSTCustomerPaymentSources201ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePOSTCustomerPaymentSources201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTCustomerPaymentSources201ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_customer_payment_sources_201_response_data_relationships.go b/api/model_post_customer_payment_sources_201_response_data_relationships.go index f6b2c691..be102e04 100644 --- a/api/model_post_customer_payment_sources_201_response_data_relationships.go +++ b/api/model_post_customer_payment_sources_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,7 +21,9 @@ var _ MappedNullable = &POSTCustomerPaymentSources201ResponseDataRelationships{} // POSTCustomerPaymentSources201ResponseDataRelationships struct for POSTCustomerPaymentSources201ResponseDataRelationships type POSTCustomerPaymentSources201ResponseDataRelationships struct { Customer *POSTCouponRecipients201ResponseDataRelationshipsCustomer `json:"customer,omitempty"` + PaymentMethod *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod `json:"payment_method,omitempty"` PaymentSource *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentSource `json:"payment_source,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTCustomerPaymentSources201ResponseDataRelationships instantiates a new POSTCustomerPaymentSources201ResponseDataRelationships object @@ -73,6 +75,38 @@ func (o *POSTCustomerPaymentSources201ResponseDataRelationships) SetCustomer(v P o.Customer = &v } +// GetPaymentMethod returns the PaymentMethod field value if set, zero value otherwise. +func (o *POSTCustomerPaymentSources201ResponseDataRelationships) GetPaymentMethod() POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod { + if o == nil || IsNil(o.PaymentMethod) { + var ret POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod + return ret + } + return *o.PaymentMethod +} + +// GetPaymentMethodOk returns a tuple with the PaymentMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCustomerPaymentSources201ResponseDataRelationships) GetPaymentMethodOk() (*POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod, bool) { + if o == nil || IsNil(o.PaymentMethod) { + return nil, false + } + return o.PaymentMethod, true +} + +// HasPaymentMethod returns a boolean if a field has been set. +func (o *POSTCustomerPaymentSources201ResponseDataRelationships) HasPaymentMethod() bool { + if o != nil && !IsNil(o.PaymentMethod) { + return true + } + + return false +} + +// SetPaymentMethod gets a reference to the given POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod and assigns it to the PaymentMethod field. +func (o *POSTCustomerPaymentSources201ResponseDataRelationships) SetPaymentMethod(v POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) { + o.PaymentMethod = &v +} + // GetPaymentSource returns the PaymentSource field value if set, zero value otherwise. func (o *POSTCustomerPaymentSources201ResponseDataRelationships) GetPaymentSource() POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentSource { if o == nil || IsNil(o.PaymentSource) { @@ -105,6 +139,38 @@ func (o *POSTCustomerPaymentSources201ResponseDataRelationships) SetPaymentSourc o.PaymentSource = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTCustomerPaymentSources201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCustomerPaymentSources201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTCustomerPaymentSources201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTCustomerPaymentSources201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTCustomerPaymentSources201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -118,9 +184,15 @@ func (o POSTCustomerPaymentSources201ResponseDataRelationships) ToMap() (map[str if !IsNil(o.Customer) { toSerialize["customer"] = o.Customer } + if !IsNil(o.PaymentMethod) { + toSerialize["payment_method"] = o.PaymentMethod + } if !IsNil(o.PaymentSource) { toSerialize["payment_source"] = o.PaymentSource } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_customer_payment_sources_201_response_data_relationships_payment_method.go b/api/model_post_customer_payment_sources_201_response_data_relationships_payment_method.go new file mode 100644 index 00000000..8cbf0828 --- /dev/null +++ b/api/model_post_customer_payment_sources_201_response_data_relationships_payment_method.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod{} + +// POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod struct for POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod +type POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData `json:"data,omitempty"` +} + +// NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod instantiates a new POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod() *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod { + this := POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod{} + return &this +} + +// NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodWithDefaults instantiates a new POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodWithDefaults() *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod { + this := POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) GetData() POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData { + if o == nil || IsNil(o.Data) { + var ret POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) GetDataOk() (*POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData and assigns it to the Data field. +func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) SetData(v POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) { + o.Data = &v +} + +func (o POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod struct { + value *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod + isSet bool +} + +func (v NullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) Get() *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod { + return v.value +} + +func (v *NullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) Set(val *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod(val *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) *NullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod { + return &NullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod{value: val, isSet: true} +} + +func (v NullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_customer_payment_sources_201_response_data_relationships_payment_method_data.go b/api/model_post_customer_payment_sources_201_response_data_relationships_payment_method_data.go new file mode 100644 index 00000000..29078443 --- /dev/null +++ b/api/model_post_customer_payment_sources_201_response_data_relationships_payment_method_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData{} + +// POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData struct for POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData +type POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData instantiates a new POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData() *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData { + this := POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData{} + return &this +} + +// NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodDataWithDefaults instantiates a new POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodDataWithDefaults() *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData { + this := POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData struct { + value *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData + isSet bool +} + +func (v NullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) Get() *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData { + return v.value +} + +func (v *NullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) Set(val *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData(val *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) *NullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData { + return &NullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData{value: val, isSet: true} +} + +func (v NullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethodData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_customer_payment_sources_201_response_data_relationships_payment_source.go b/api/model_post_customer_payment_sources_201_response_data_relationships_payment_source.go index 7ce6c683..2d12bf9a 100644 --- a/api/model_post_customer_payment_sources_201_response_data_relationships_payment_source.go +++ b/api/model_post_customer_payment_sources_201_response_data_relationships_payment_source.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customer_payment_sources_201_response_data_relationships_payment_source_data.go b/api/model_post_customer_payment_sources_201_response_data_relationships_payment_source_data.go index fea6bf55..3d2433d7 100644 --- a/api/model_post_customer_payment_sources_201_response_data_relationships_payment_source_data.go +++ b/api/model_post_customer_payment_sources_201_response_data_relationships_payment_source_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customer_subscriptions_201_response.go b/api/model_post_customer_subscriptions_201_response.go index 2716c746..f6ba56f1 100644 --- a/api/model_post_customer_subscriptions_201_response.go +++ b/api/model_post_customer_subscriptions_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customer_subscriptions_201_response_data.go b/api/model_post_customer_subscriptions_201_response_data.go index 5af50924..b56de519 100644 --- a/api/model_post_customer_subscriptions_201_response_data.go +++ b/api/model_post_customer_subscriptions_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type POSTCustomerSubscriptions201ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *POSTCustomerSubscriptions201ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTCustomerPasswordResets201ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTCustomerSubscriptions201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTCustomerSubscriptions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPOSTCustomerSubscriptions201ResponseData instantiates a new POSTCustomerSubscriptions201ResponseData object @@ -177,9 +177,9 @@ func (o *POSTCustomerSubscriptions201ResponseData) SetAttributes(v POSTCustomerS } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *POSTCustomerSubscriptions201ResponseData) GetRelationships() POSTCustomerPasswordResets201ResponseDataRelationships { +func (o *POSTCustomerSubscriptions201ResponseData) GetRelationships() POSTCustomerSubscriptions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTCustomerPasswordResets201ResponseDataRelationships + var ret POSTCustomerSubscriptions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *POSTCustomerSubscriptions201ResponseData) GetRelationships() POSTCustom // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTCustomerSubscriptions201ResponseData) GetRelationshipsOk() (*POSTCustomerPasswordResets201ResponseDataRelationships, bool) { +func (o *POSTCustomerSubscriptions201ResponseData) GetRelationshipsOk() (*POSTCustomerSubscriptions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *POSTCustomerSubscriptions201ResponseData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given POSTCustomerPasswordResets201ResponseDataRelationships and assigns it to the Relationships field. -func (o *POSTCustomerSubscriptions201ResponseData) SetRelationships(v POSTCustomerPasswordResets201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTCustomerSubscriptions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTCustomerSubscriptions201ResponseData) SetRelationships(v POSTCustomerSubscriptions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_post_customer_subscriptions_201_response_data_attributes.go b/api/model_post_customer_subscriptions_201_response_data_attributes.go index dd1ba470..1603084e 100644 --- a/api/model_post_customer_subscriptions_201_response_data_attributes.go +++ b/api/model_post_customer_subscriptions_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,11 +20,11 @@ var _ MappedNullable = &POSTCustomerSubscriptions201ResponseDataAttributes{} // POSTCustomerSubscriptions201ResponseDataAttributes struct for POSTCustomerSubscriptions201ResponseDataAttributes type POSTCustomerSubscriptions201ResponseDataAttributes struct { - // The email of the customer that owns the subscription + // The email of the customer that owns the subscription. CustomerEmail interface{} `json:"customer_email"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. - Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + Reference interface{} `json:"reference"` + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -34,9 +34,10 @@ type POSTCustomerSubscriptions201ResponseDataAttributes struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTCustomerSubscriptions201ResponseDataAttributes(customerEmail interface{}) *POSTCustomerSubscriptions201ResponseDataAttributes { +func NewPOSTCustomerSubscriptions201ResponseDataAttributes(customerEmail interface{}, reference interface{}) *POSTCustomerSubscriptions201ResponseDataAttributes { this := POSTCustomerSubscriptions201ResponseDataAttributes{} this.CustomerEmail = customerEmail + this.Reference = reference return &this } @@ -74,16 +75,18 @@ func (o *POSTCustomerSubscriptions201ResponseDataAttributes) SetCustomerEmail(v o.CustomerEmail = v } -// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +// GetReference returns the Reference field value +// If the value is explicit nil, the zero value for interface{} will be returned func (o *POSTCustomerSubscriptions201ResponseDataAttributes) GetReference() interface{} { if o == nil { var ret interface{} return ret } + return o.Reference } -// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// GetReferenceOk returns a tuple with the Reference field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *POSTCustomerSubscriptions201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { @@ -93,16 +96,7 @@ func (o *POSTCustomerSubscriptions201ResponseDataAttributes) GetReferenceOk() (* return &o.Reference, true } -// HasReference returns a boolean if a field has been set. -func (o *POSTCustomerSubscriptions201ResponseDataAttributes) HasReference() bool { - if o != nil && IsNil(o.Reference) { - return true - } - - return false -} - -// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +// SetReference sets field value func (o *POSTCustomerSubscriptions201ResponseDataAttributes) SetReference(v interface{}) { o.Reference = v } diff --git a/api/model_post_customer_subscriptions_201_response_data_relationships.go b/api/model_post_customer_subscriptions_201_response_data_relationships.go new file mode 100644 index 00000000..b2795e6d --- /dev/null +++ b/api/model_post_customer_subscriptions_201_response_data_relationships.go @@ -0,0 +1,197 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTCustomerSubscriptions201ResponseDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTCustomerSubscriptions201ResponseDataRelationships{} + +// POSTCustomerSubscriptions201ResponseDataRelationships struct for POSTCustomerSubscriptions201ResponseDataRelationships +type POSTCustomerSubscriptions201ResponseDataRelationships struct { + Customer *POSTCouponRecipients201ResponseDataRelationshipsCustomer `json:"customer,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewPOSTCustomerSubscriptions201ResponseDataRelationships instantiates a new POSTCustomerSubscriptions201ResponseDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTCustomerSubscriptions201ResponseDataRelationships() *POSTCustomerSubscriptions201ResponseDataRelationships { + this := POSTCustomerSubscriptions201ResponseDataRelationships{} + return &this +} + +// NewPOSTCustomerSubscriptions201ResponseDataRelationshipsWithDefaults instantiates a new POSTCustomerSubscriptions201ResponseDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTCustomerSubscriptions201ResponseDataRelationshipsWithDefaults() *POSTCustomerSubscriptions201ResponseDataRelationships { + this := POSTCustomerSubscriptions201ResponseDataRelationships{} + return &this +} + +// GetCustomer returns the Customer field value if set, zero value otherwise. +func (o *POSTCustomerSubscriptions201ResponseDataRelationships) GetCustomer() POSTCouponRecipients201ResponseDataRelationshipsCustomer { + if o == nil || IsNil(o.Customer) { + var ret POSTCouponRecipients201ResponseDataRelationshipsCustomer + return ret + } + return *o.Customer +} + +// GetCustomerOk returns a tuple with the Customer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCustomerSubscriptions201ResponseDataRelationships) GetCustomerOk() (*POSTCouponRecipients201ResponseDataRelationshipsCustomer, bool) { + if o == nil || IsNil(o.Customer) { + return nil, false + } + return o.Customer, true +} + +// HasCustomer returns a boolean if a field has been set. +func (o *POSTCustomerSubscriptions201ResponseDataRelationships) HasCustomer() bool { + if o != nil && !IsNil(o.Customer) { + return true + } + + return false +} + +// SetCustomer gets a reference to the given POSTCouponRecipients201ResponseDataRelationshipsCustomer and assigns it to the Customer field. +func (o *POSTCustomerSubscriptions201ResponseDataRelationships) SetCustomer(v POSTCouponRecipients201ResponseDataRelationshipsCustomer) { + o.Customer = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *POSTCustomerSubscriptions201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCustomerSubscriptions201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *POSTCustomerSubscriptions201ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTCustomerSubscriptions201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTCustomerSubscriptions201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCustomerSubscriptions201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTCustomerSubscriptions201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTCustomerSubscriptions201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + +func (o POSTCustomerSubscriptions201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTCustomerSubscriptions201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Customer) { + toSerialize["customer"] = o.Customer + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullablePOSTCustomerSubscriptions201ResponseDataRelationships struct { + value *POSTCustomerSubscriptions201ResponseDataRelationships + isSet bool +} + +func (v NullablePOSTCustomerSubscriptions201ResponseDataRelationships) Get() *POSTCustomerSubscriptions201ResponseDataRelationships { + return v.value +} + +func (v *NullablePOSTCustomerSubscriptions201ResponseDataRelationships) Set(val *POSTCustomerSubscriptions201ResponseDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTCustomerSubscriptions201ResponseDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTCustomerSubscriptions201ResponseDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTCustomerSubscriptions201ResponseDataRelationships(val *POSTCustomerSubscriptions201ResponseDataRelationships) *NullablePOSTCustomerSubscriptions201ResponseDataRelationships { + return &NullablePOSTCustomerSubscriptions201ResponseDataRelationships{value: val, isSet: true} +} + +func (v NullablePOSTCustomerSubscriptions201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTCustomerSubscriptions201ResponseDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_customers_201_response.go b/api/model_post_customers_201_response.go index c9939888..f8eaf8d9 100644 --- a/api/model_post_customers_201_response.go +++ b/api/model_post_customers_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customers_201_response_data.go b/api/model_post_customers_201_response_data.go index a97691f4..308c00ac 100644 --- a/api/model_post_customers_201_response_data.go +++ b/api/model_post_customers_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customers_201_response_data_attributes.go b/api/model_post_customers_201_response_data_attributes.go index 629ed4e4..e2c5a2ea 100644 --- a/api/model_post_customers_201_response_data_attributes.go +++ b/api/model_post_customers_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,13 +20,15 @@ var _ MappedNullable = &POSTCustomers201ResponseDataAttributes{} // POSTCustomers201ResponseDataAttributes struct for POSTCustomers201ResponseDataAttributes type POSTCustomers201ResponseDataAttributes struct { - // The customer's email address + // The customer's email address. Email interface{} `json:"email"` // The customer's password. Initiate a customer password reset flow if you need to change it. Password interface{} `json:"password,omitempty"` + // A reference to uniquely identify the shopper during payment sessions. + ShopperReference interface{} `json:"shopper_reference,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -109,6 +111,39 @@ func (o *POSTCustomers201ResponseDataAttributes) SetPassword(v interface{}) { o.Password = v } +// GetShopperReference returns the ShopperReference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTCustomers201ResponseDataAttributes) GetShopperReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ShopperReference +} + +// GetShopperReferenceOk returns a tuple with the ShopperReference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTCustomers201ResponseDataAttributes) GetShopperReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.ShopperReference) { + return nil, false + } + return &o.ShopperReference, true +} + +// HasShopperReference returns a boolean if a field has been set. +func (o *POSTCustomers201ResponseDataAttributes) HasShopperReference() bool { + if o != nil && IsNil(o.ShopperReference) { + return true + } + + return false +} + +// SetShopperReference gets a reference to the given interface{} and assigns it to the ShopperReference field. +func (o *POSTCustomers201ResponseDataAttributes) SetShopperReference(v interface{}) { + o.ShopperReference = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTCustomers201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -224,6 +259,9 @@ func (o POSTCustomers201ResponseDataAttributes) ToMap() (map[string]interface{}, if o.Password != nil { toSerialize["password"] = o.Password } + if o.ShopperReference != nil { + toSerialize["shopper_reference"] = o.ShopperReference + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_customers_201_response_data_relationships.go b/api/model_post_customers_201_response_data_relationships.go index e5abe65b..30a1ebd8 100644 --- a/api/model_post_customers_201_response_data_relationships.go +++ b/api/model_post_customers_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,16 +20,17 @@ var _ MappedNullable = &POSTCustomers201ResponseDataRelationships{} // POSTCustomers201ResponseDataRelationships struct for POSTCustomers201ResponseDataRelationships type POSTCustomers201ResponseDataRelationships struct { - CustomerGroup *POSTCustomers201ResponseDataRelationshipsCustomerGroup `json:"customer_group,omitempty"` - CustomerAddresses *POSTCustomers201ResponseDataRelationshipsCustomerAddresses `json:"customer_addresses,omitempty"` - CustomerPaymentSources *POSTCustomers201ResponseDataRelationshipsCustomerPaymentSources `json:"customer_payment_sources,omitempty"` - CustomerSubscriptions *POSTCustomers201ResponseDataRelationshipsCustomerSubscriptions `json:"customer_subscriptions,omitempty"` - Orders *POSTCustomers201ResponseDataRelationshipsOrders `json:"orders,omitempty"` - OrderSubscriptions *POSTCustomers201ResponseDataRelationshipsOrderSubscriptions `json:"order_subscriptions,omitempty"` - Returns *POSTCustomers201ResponseDataRelationshipsReturns `json:"returns,omitempty"` - SkuLists *POSTCustomers201ResponseDataRelationshipsSkuLists `json:"sku_lists,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` + CustomerGroup *POSTCustomers201ResponseDataRelationshipsCustomerGroup `json:"customer_group,omitempty"` + CustomerAddresses *POSTCustomers201ResponseDataRelationshipsCustomerAddresses `json:"customer_addresses,omitempty"` + CustomerPaymentSources *POSTCustomers201ResponseDataRelationshipsCustomerPaymentSources `json:"customer_payment_sources,omitempty"` + CustomerSubscriptions *POSTCustomers201ResponseDataRelationshipsCustomerSubscriptions `json:"customer_subscriptions,omitempty"` + Orders *POSTCustomers201ResponseDataRelationshipsOrders `json:"orders,omitempty"` + OrderSubscriptions *POSTCustomers201ResponseDataRelationshipsOrderSubscriptions `json:"order_subscriptions,omitempty"` + Returns *POSTCustomers201ResponseDataRelationshipsReturns `json:"returns,omitempty"` + SkuLists *POSTCustomers201ResponseDataRelationshipsSkuLists `json:"sku_lists,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Tags *POSTAddresses201ResponseDataRelationshipsTags `json:"tags,omitempty"` } // NewPOSTCustomers201ResponseDataRelationships instantiates a new POSTCustomers201ResponseDataRelationships object @@ -306,9 +307,9 @@ func (o *POSTCustomers201ResponseDataRelationships) SetSkuLists(v POSTCustomers2 } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTCustomers201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTCustomers201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -316,7 +317,7 @@ func (o *POSTCustomers201ResponseDataRelationships) GetAttachments() POSTAvalara // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTCustomers201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTCustomers201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -332,15 +333,15 @@ func (o *POSTCustomers201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTCustomers201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTCustomers201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *POSTCustomers201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { +func (o *POSTCustomers201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents + var ret POSTAddresses201ResponseDataRelationshipsEvents return ret } return *o.Events @@ -348,7 +349,7 @@ func (o *POSTCustomers201ResponseDataRelationships) GetEvents() GETAuthorization // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTCustomers201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { +func (o *POSTCustomers201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -364,11 +365,43 @@ func (o *POSTCustomers201ResponseDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *POSTCustomers201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTCustomers201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { o.Events = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *POSTCustomers201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret POSTAddresses201ResponseDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTCustomers201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *POSTCustomers201ResponseDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given POSTAddresses201ResponseDataRelationshipsTags and assigns it to the Tags field. +func (o *POSTCustomers201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags) { + o.Tags = &v +} + func (o POSTCustomers201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -409,6 +442,9 @@ func (o POSTCustomers201ResponseDataRelationships) ToMap() (map[string]interface if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_post_customers_201_response_data_relationships_customer_addresses.go b/api/model_post_customers_201_response_data_relationships_customer_addresses.go index ed6501bf..dc44de12 100644 --- a/api/model_post_customers_201_response_data_relationships_customer_addresses.go +++ b/api/model_post_customers_201_response_data_relationships_customer_addresses.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customers_201_response_data_relationships_customer_addresses_data.go b/api/model_post_customers_201_response_data_relationships_customer_addresses_data.go index a05b0805..45d40bc3 100644 --- a/api/model_post_customers_201_response_data_relationships_customer_addresses_data.go +++ b/api/model_post_customers_201_response_data_relationships_customer_addresses_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customers_201_response_data_relationships_customer_group.go b/api/model_post_customers_201_response_data_relationships_customer_group.go index 4a8d3bdf..93bf9d92 100644 --- a/api/model_post_customers_201_response_data_relationships_customer_group.go +++ b/api/model_post_customers_201_response_data_relationships_customer_group.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customers_201_response_data_relationships_customer_group_data.go b/api/model_post_customers_201_response_data_relationships_customer_group_data.go index 624dbe3a..70f77525 100644 --- a/api/model_post_customers_201_response_data_relationships_customer_group_data.go +++ b/api/model_post_customers_201_response_data_relationships_customer_group_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customers_201_response_data_relationships_customer_payment_sources.go b/api/model_post_customers_201_response_data_relationships_customer_payment_sources.go index 2d1b7589..0e94bd23 100644 --- a/api/model_post_customers_201_response_data_relationships_customer_payment_sources.go +++ b/api/model_post_customers_201_response_data_relationships_customer_payment_sources.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customers_201_response_data_relationships_customer_payment_sources_data.go b/api/model_post_customers_201_response_data_relationships_customer_payment_sources_data.go index 80b35cfc..12b65cee 100644 --- a/api/model_post_customers_201_response_data_relationships_customer_payment_sources_data.go +++ b/api/model_post_customers_201_response_data_relationships_customer_payment_sources_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customers_201_response_data_relationships_customer_subscriptions.go b/api/model_post_customers_201_response_data_relationships_customer_subscriptions.go index b3d051e0..2ad52cd8 100644 --- a/api/model_post_customers_201_response_data_relationships_customer_subscriptions.go +++ b/api/model_post_customers_201_response_data_relationships_customer_subscriptions.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customers_201_response_data_relationships_customer_subscriptions_data.go b/api/model_post_customers_201_response_data_relationships_customer_subscriptions_data.go index 3125c355..feea37f6 100644 --- a/api/model_post_customers_201_response_data_relationships_customer_subscriptions_data.go +++ b/api/model_post_customers_201_response_data_relationships_customer_subscriptions_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customers_201_response_data_relationships_order_subscriptions.go b/api/model_post_customers_201_response_data_relationships_order_subscriptions.go index af698636..dc238ccd 100644 --- a/api/model_post_customers_201_response_data_relationships_order_subscriptions.go +++ b/api/model_post_customers_201_response_data_relationships_order_subscriptions.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customers_201_response_data_relationships_order_subscriptions_data.go b/api/model_post_customers_201_response_data_relationships_order_subscriptions_data.go index 79619ca5..36b068cd 100644 --- a/api/model_post_customers_201_response_data_relationships_order_subscriptions_data.go +++ b/api/model_post_customers_201_response_data_relationships_order_subscriptions_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customers_201_response_data_relationships_orders.go b/api/model_post_customers_201_response_data_relationships_orders.go index 4127c06a..efea9afd 100644 --- a/api/model_post_customers_201_response_data_relationships_orders.go +++ b/api/model_post_customers_201_response_data_relationships_orders.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customers_201_response_data_relationships_orders_data.go b/api/model_post_customers_201_response_data_relationships_orders_data.go index e4e95363..1a259b9e 100644 --- a/api/model_post_customers_201_response_data_relationships_orders_data.go +++ b/api/model_post_customers_201_response_data_relationships_orders_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customers_201_response_data_relationships_returns.go b/api/model_post_customers_201_response_data_relationships_returns.go index 7438921f..148449b2 100644 --- a/api/model_post_customers_201_response_data_relationships_returns.go +++ b/api/model_post_customers_201_response_data_relationships_returns.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customers_201_response_data_relationships_returns_data.go b/api/model_post_customers_201_response_data_relationships_returns_data.go index 3d5a746c..ebb8749c 100644 --- a/api/model_post_customers_201_response_data_relationships_returns_data.go +++ b/api/model_post_customers_201_response_data_relationships_returns_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customers_201_response_data_relationships_sku_lists.go b/api/model_post_customers_201_response_data_relationships_sku_lists.go index 21e725f8..75adfd9b 100644 --- a/api/model_post_customers_201_response_data_relationships_sku_lists.go +++ b/api/model_post_customers_201_response_data_relationships_sku_lists.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_customers_201_response_data_relationships_sku_lists_data.go b/api/model_post_customers_201_response_data_relationships_sku_lists_data.go index 87e39c31..430d328f 100644 --- a/api/model_post_customers_201_response_data_relationships_sku_lists_data.go +++ b/api/model_post_customers_201_response_data_relationships_sku_lists_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_delivery_lead_times_201_response.go b/api/model_post_delivery_lead_times_201_response.go index 8187e960..09d758f5 100644 --- a/api/model_post_delivery_lead_times_201_response.go +++ b/api/model_post_delivery_lead_times_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_delivery_lead_times_201_response_data.go b/api/model_post_delivery_lead_times_201_response_data.go index ae8dbf97..fbc3ee05 100644 --- a/api/model_post_delivery_lead_times_201_response_data.go +++ b/api/model_post_delivery_lead_times_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_delivery_lead_times_201_response_data_attributes.go b/api/model_post_delivery_lead_times_201_response_data_attributes.go index e8d8adc6..87474466 100644 --- a/api/model_post_delivery_lead_times_201_response_data_attributes.go +++ b/api/model_post_delivery_lead_times_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type POSTDeliveryLeadTimes201ResponseDataAttributes struct { MaxHours interface{} `json:"max_hours"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_delivery_lead_times_201_response_data_relationships.go b/api/model_post_delivery_lead_times_201_response_data_relationships.go index 23aeb525..d0170ca9 100644 --- a/api/model_post_delivery_lead_times_201_response_data_relationships.go +++ b/api/model_post_delivery_lead_times_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,10 @@ var _ MappedNullable = &POSTDeliveryLeadTimes201ResponseDataRelationships{} // POSTDeliveryLeadTimes201ResponseDataRelationships struct for POSTDeliveryLeadTimes201ResponseDataRelationships type POSTDeliveryLeadTimes201ResponseDataRelationships struct { - StockLocation *POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation `json:"stock_location,omitempty"` - ShippingMethod *POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod `json:"shipping_method,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + StockLocation *POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation `json:"stock_location,omitempty"` + ShippingMethod *POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod `json:"shipping_method,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTDeliveryLeadTimes201ResponseDataRelationships instantiates a new POSTDeliveryLeadTimes201ResponseDataRelationships object @@ -107,9 +108,9 @@ func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) SetShippingMethod(v } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -117,7 +118,7 @@ func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) GetAttachments() POS // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -133,11 +134,43 @@ func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) HasAttachments() boo return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTDeliveryLeadTimes201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTDeliveryLeadTimes201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -157,6 +190,9 @@ func (o POSTDeliveryLeadTimes201ResponseDataRelationships) ToMap() (map[string]i if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_delivery_lead_times_201_response_data_relationships_shipping_method.go b/api/model_post_delivery_lead_times_201_response_data_relationships_shipping_method.go index c83ac965..ef0a2f05 100644 --- a/api/model_post_delivery_lead_times_201_response_data_relationships_shipping_method.go +++ b/api/model_post_delivery_lead_times_201_response_data_relationships_shipping_method.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_delivery_lead_times_201_response_data_relationships_shipping_method_data.go b/api/model_post_delivery_lead_times_201_response_data_relationships_shipping_method_data.go index 6431f124..22c115e0 100644 --- a/api/model_post_delivery_lead_times_201_response_data_relationships_shipping_method_data.go +++ b/api/model_post_delivery_lead_times_201_response_data_relationships_shipping_method_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_delivery_lead_times_201_response_data_relationships_stock_location.go b/api/model_post_delivery_lead_times_201_response_data_relationships_stock_location.go index 93042050..f9cab2d2 100644 --- a/api/model_post_delivery_lead_times_201_response_data_relationships_stock_location.go +++ b/api/model_post_delivery_lead_times_201_response_data_relationships_stock_location.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_delivery_lead_times_201_response_data_relationships_stock_location_data.go b/api/model_post_delivery_lead_times_201_response_data_relationships_stock_location_data.go index 321d1785..0447fb85 100644 --- a/api/model_post_delivery_lead_times_201_response_data_relationships_stock_location_data.go +++ b/api/model_post_delivery_lead_times_201_response_data_relationships_stock_location_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_exports_201_response.go b/api/model_post_exports_201_response.go index 6afaf0a7..6c69d970 100644 --- a/api/model_post_exports_201_response.go +++ b/api/model_post_exports_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_exports_201_response_data.go b/api/model_post_exports_201_response_data.go index 9903df8d..edce436d 100644 --- a/api/model_post_exports_201_response_data.go +++ b/api/model_post_exports_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type POSTExports201ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *POSTExports201ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTCleanups201ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTExports201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTExports201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPOSTExports201ResponseData instantiates a new POSTExports201ResponseData object @@ -177,9 +177,9 @@ func (o *POSTExports201ResponseData) SetAttributes(v POSTExports201ResponseDataA } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *POSTExports201ResponseData) GetRelationships() POSTCleanups201ResponseDataRelationships { +func (o *POSTExports201ResponseData) GetRelationships() POSTExports201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTCleanups201ResponseDataRelationships + var ret POSTExports201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *POSTExports201ResponseData) GetRelationships() POSTCleanups201ResponseD // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTExports201ResponseData) GetRelationshipsOk() (*POSTCleanups201ResponseDataRelationships, bool) { +func (o *POSTExports201ResponseData) GetRelationshipsOk() (*POSTExports201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *POSTExports201ResponseData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given POSTCleanups201ResponseDataRelationships and assigns it to the Relationships field. -func (o *POSTExports201ResponseData) SetRelationships(v POSTCleanups201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTExports201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTExports201ResponseData) SetRelationships(v POSTExports201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_post_exports_201_response_data_attributes.go b/api/model_post_exports_201_response_data_attributes.go index 84169f1f..3f2c1a22 100644 --- a/api/model_post_exports_201_response_data_attributes.go +++ b/api/model_post_exports_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -32,7 +32,7 @@ type POSTExports201ResponseDataAttributes struct { DryData interface{} `json:"dry_data,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_exports_201_response_data_relationships.go b/api/model_post_exports_201_response_data_relationships.go new file mode 100644 index 00000000..51bcbcab --- /dev/null +++ b/api/model_post_exports_201_response_data_relationships.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTExports201ResponseDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTExports201ResponseDataRelationships{} + +// POSTExports201ResponseDataRelationships struct for POSTExports201ResponseDataRelationships +type POSTExports201ResponseDataRelationships struct { + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` +} + +// NewPOSTExports201ResponseDataRelationships instantiates a new POSTExports201ResponseDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTExports201ResponseDataRelationships() *POSTExports201ResponseDataRelationships { + this := POSTExports201ResponseDataRelationships{} + return &this +} + +// NewPOSTExports201ResponseDataRelationshipsWithDefaults instantiates a new POSTExports201ResponseDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTExports201ResponseDataRelationshipsWithDefaults() *POSTExports201ResponseDataRelationships { + this := POSTExports201ResponseDataRelationships{} + return &this +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *POSTExports201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTExports201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *POSTExports201ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTExports201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + +func (o POSTExports201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTExports201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + return toSerialize, nil +} + +type NullablePOSTExports201ResponseDataRelationships struct { + value *POSTExports201ResponseDataRelationships + isSet bool +} + +func (v NullablePOSTExports201ResponseDataRelationships) Get() *POSTExports201ResponseDataRelationships { + return v.value +} + +func (v *NullablePOSTExports201ResponseDataRelationships) Set(val *POSTExports201ResponseDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTExports201ResponseDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTExports201ResponseDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTExports201ResponseDataRelationships(val *POSTExports201ResponseDataRelationships) *NullablePOSTExports201ResponseDataRelationships { + return &NullablePOSTExports201ResponseDataRelationships{value: val, isSet: true} +} + +func (v NullablePOSTExports201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTExports201ResponseDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_external_gateways_201_response.go b/api/model_post_external_gateways_201_response.go index cf897754..e30598ee 100644 --- a/api/model_post_external_gateways_201_response.go +++ b/api/model_post_external_gateways_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_external_gateways_201_response_data.go b/api/model_post_external_gateways_201_response_data.go index 8b0ee1f2..db776340 100644 --- a/api/model_post_external_gateways_201_response_data.go +++ b/api/model_post_external_gateways_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_external_gateways_201_response_data_attributes.go b/api/model_post_external_gateways_201_response_data_attributes.go index c078329c..ef96438b 100644 --- a/api/model_post_external_gateways_201_response_data_attributes.go +++ b/api/model_post_external_gateways_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type POSTExternalGateways201ResponseDataAttributes struct { Name interface{} `json:"name"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_external_gateways_201_response_data_relationships.go b/api/model_post_external_gateways_201_response_data_relationships.go index cb0f5a9b..880f486c 100644 --- a/api/model_post_external_gateways_201_response_data_relationships.go +++ b/api/model_post_external_gateways_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &POSTExternalGateways201ResponseDataRelationships{} // POSTExternalGateways201ResponseDataRelationships struct for POSTExternalGateways201ResponseDataRelationships type POSTExternalGateways201ResponseDataRelationships struct { PaymentMethods *POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` ExternalPayments *POSTExternalGateways201ResponseDataRelationshipsExternalPayments `json:"external_payments,omitempty"` } @@ -73,6 +74,38 @@ func (o *POSTExternalGateways201ResponseDataRelationships) SetPaymentMethods(v P o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTExternalGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTExternalGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTExternalGateways201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTExternalGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + // GetExternalPayments returns the ExternalPayments field value if set, zero value otherwise. func (o *POSTExternalGateways201ResponseDataRelationships) GetExternalPayments() POSTExternalGateways201ResponseDataRelationshipsExternalPayments { if o == nil || IsNil(o.ExternalPayments) { @@ -118,6 +151,9 @@ func (o POSTExternalGateways201ResponseDataRelationships) ToMap() (map[string]in if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.ExternalPayments) { toSerialize["external_payments"] = o.ExternalPayments } diff --git a/api/model_post_external_gateways_201_response_data_relationships_external_payments.go b/api/model_post_external_gateways_201_response_data_relationships_external_payments.go index 1c5eba8f..6f28e91c 100644 --- a/api/model_post_external_gateways_201_response_data_relationships_external_payments.go +++ b/api/model_post_external_gateways_201_response_data_relationships_external_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_external_gateways_201_response_data_relationships_external_payments_data.go b/api/model_post_external_gateways_201_response_data_relationships_external_payments_data.go index fcf89963..ee01679e 100644 --- a/api/model_post_external_gateways_201_response_data_relationships_external_payments_data.go +++ b/api/model_post_external_gateways_201_response_data_relationships_external_payments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_external_payments_201_response.go b/api/model_post_external_payments_201_response.go index f373e894..5a62182a 100644 --- a/api/model_post_external_payments_201_response.go +++ b/api/model_post_external_payments_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_external_payments_201_response_data.go b/api/model_post_external_payments_201_response_data.go index ac48e958..ad5a76a0 100644 --- a/api/model_post_external_payments_201_response_data.go +++ b/api/model_post_external_payments_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_external_payments_201_response_data_attributes.go b/api/model_post_external_payments_201_response_data_attributes.go index a189c2bc..2435ee66 100644 --- a/api/model_post_external_payments_201_response_data_attributes.go +++ b/api/model_post_external_payments_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type POSTExternalPayments201ResponseDataAttributes struct { Options interface{} `json:"options,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_external_payments_201_response_data_relationships.go b/api/model_post_external_payments_201_response_data_relationships.go index caa930cf..0b49d9a4 100644 --- a/api/model_post_external_payments_201_response_data_relationships.go +++ b/api/model_post_external_payments_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,6 +23,7 @@ type POSTExternalPayments201ResponseDataRelationships struct { Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` PaymentGateway *POSTAdyenPayments201ResponseDataRelationshipsPaymentGateway `json:"payment_gateway,omitempty"` Wallet *POSTExternalPayments201ResponseDataRelationshipsWallet `json:"wallet,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTExternalPayments201ResponseDataRelationships instantiates a new POSTExternalPayments201ResponseDataRelationships object @@ -138,6 +139,38 @@ func (o *POSTExternalPayments201ResponseDataRelationships) SetWallet(v POSTExter o.Wallet = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTExternalPayments201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTExternalPayments201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTExternalPayments201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTExternalPayments201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTExternalPayments201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -157,6 +190,9 @@ func (o POSTExternalPayments201ResponseDataRelationships) ToMap() (map[string]in if !IsNil(o.Wallet) { toSerialize["wallet"] = o.Wallet } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_external_payments_201_response_data_relationships_wallet.go b/api/model_post_external_payments_201_response_data_relationships_wallet.go index 4048b005..ad09d20a 100644 --- a/api/model_post_external_payments_201_response_data_relationships_wallet.go +++ b/api/model_post_external_payments_201_response_data_relationships_wallet.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_external_payments_201_response_data_relationships_wallet_data.go b/api/model_post_external_payments_201_response_data_relationships_wallet_data.go index 95d2dfb9..14c2530d 100644 --- a/api/model_post_external_payments_201_response_data_relationships_wallet_data.go +++ b/api/model_post_external_payments_201_response_data_relationships_wallet_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_external_promotions_201_response.go b/api/model_post_external_promotions_201_response.go index e821ead3..f9f43c35 100644 --- a/api/model_post_external_promotions_201_response.go +++ b/api/model_post_external_promotions_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_external_promotions_201_response_data.go b/api/model_post_external_promotions_201_response_data.go index 0252a9b3..8d18903b 100644 --- a/api/model_post_external_promotions_201_response_data.go +++ b/api/model_post_external_promotions_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type POSTExternalPromotions201ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *POSTExternalPromotions201ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTExternalPromotions201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTBuyXPayYPromotions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPOSTExternalPromotions201ResponseData instantiates a new POSTExternalPromotions201ResponseData object @@ -177,9 +177,9 @@ func (o *POSTExternalPromotions201ResponseData) SetAttributes(v POSTExternalProm } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *POSTExternalPromotions201ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships { +func (o *POSTExternalPromotions201ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTExternalPromotions201ResponseDataRelationships + var ret POSTBuyXPayYPromotions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *POSTExternalPromotions201ResponseData) GetRelationships() POSTExternalP // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTExternalPromotions201ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool) { +func (o *POSTExternalPromotions201ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *POSTExternalPromotions201ResponseData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given POSTExternalPromotions201ResponseDataRelationships and assigns it to the Relationships field. -func (o *POSTExternalPromotions201ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTExternalPromotions201ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_post_external_promotions_201_response_data_attributes.go b/api/model_post_external_promotions_201_response_data_attributes.go index e09f6cec..d77e09f4 100644 --- a/api/model_post_external_promotions_201_response_data_attributes.go +++ b/api/model_post_external_promotions_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,15 +24,23 @@ type POSTExternalPromotions201ResponseDataAttributes struct { Name interface{} `json:"name"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` // The activation date/time of this promotion. StartsAt interface{} `json:"starts_at"` // The expiration date/time of this promotion (must be after starts_at). ExpiresAt interface{} `json:"expires_at"` - // The total number of times this promotion can be applied. - TotalUsageLimit interface{} `json:"total_usage_limit"` + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. + TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -44,12 +52,11 @@ type POSTExternalPromotions201ResponseDataAttributes struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTExternalPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, totalUsageLimit interface{}, promotionUrl interface{}) *POSTExternalPromotions201ResponseDataAttributes { +func NewPOSTExternalPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, promotionUrl interface{}) *POSTExternalPromotions201ResponseDataAttributes { this := POSTExternalPromotions201ResponseDataAttributes{} this.Name = name this.StartsAt = startsAt this.ExpiresAt = expiresAt - this.TotalUsageLimit = totalUsageLimit this.PromotionUrl = promotionUrl return &this } @@ -121,6 +128,72 @@ func (o *POSTExternalPromotions201ResponseDataAttributes) SetCurrencyCode(v inte o.CurrencyCode = v } +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTExternalPromotions201ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTExternalPromotions201ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *POSTExternalPromotions201ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *POSTExternalPromotions201ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTExternalPromotions201ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTExternalPromotions201ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *POSTExternalPromotions201ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *POSTExternalPromotions201ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + // GetStartsAt returns the StartsAt field value // If the value is explicit nil, the zero value for interface{} will be returned func (o *POSTExternalPromotions201ResponseDataAttributes) GetStartsAt() interface{} { @@ -173,18 +246,16 @@ func (o *POSTExternalPromotions201ResponseDataAttributes) SetExpiresAt(v interfa o.ExpiresAt = v } -// GetTotalUsageLimit returns the TotalUsageLimit field value -// If the value is explicit nil, the zero value for interface{} will be returned +// GetTotalUsageLimit returns the TotalUsageLimit field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTExternalPromotions201ResponseDataAttributes) GetTotalUsageLimit() interface{} { if o == nil { var ret interface{} return ret } - return o.TotalUsageLimit } -// GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field value +// GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *POSTExternalPromotions201ResponseDataAttributes) GetTotalUsageLimitOk() (*interface{}, bool) { @@ -194,11 +265,86 @@ func (o *POSTExternalPromotions201ResponseDataAttributes) GetTotalUsageLimitOk() return &o.TotalUsageLimit, true } -// SetTotalUsageLimit sets field value +// HasTotalUsageLimit returns a boolean if a field has been set. +func (o *POSTExternalPromotions201ResponseDataAttributes) HasTotalUsageLimit() bool { + if o != nil && IsNil(o.TotalUsageLimit) { + return true + } + + return false +} + +// SetTotalUsageLimit gets a reference to the given interface{} and assigns it to the TotalUsageLimit field. func (o *POSTExternalPromotions201ResponseDataAttributes) SetTotalUsageLimit(v interface{}) { o.TotalUsageLimit = v } +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTExternalPromotions201ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTExternalPromotions201ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *POSTExternalPromotions201ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *POSTExternalPromotions201ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTExternalPromotions201ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTExternalPromotions201ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *POSTExternalPromotions201ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *POSTExternalPromotions201ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTExternalPromotions201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -340,6 +486,12 @@ func (o POSTExternalPromotions201ResponseDataAttributes) ToMap() (map[string]int if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } if o.StartsAt != nil { toSerialize["starts_at"] = o.StartsAt } @@ -349,6 +501,12 @@ func (o POSTExternalPromotions201ResponseDataAttributes) ToMap() (map[string]int if o.TotalUsageLimit != nil { toSerialize["total_usage_limit"] = o.TotalUsageLimit } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_external_promotions_201_response_data_relationships.go b/api/model_post_external_promotions_201_response_data_relationships.go deleted file mode 100644 index 0148baf6..00000000 --- a/api/model_post_external_promotions_201_response_data_relationships.go +++ /dev/null @@ -1,341 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the POSTExternalPromotions201ResponseDataRelationships type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTExternalPromotions201ResponseDataRelationships{} - -// POSTExternalPromotions201ResponseDataRelationships struct for POSTExternalPromotions201ResponseDataRelationships -type POSTExternalPromotions201ResponseDataRelationships struct { - Market *POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket `json:"market,omitempty"` - PromotionRules *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules `json:"promotion_rules,omitempty"` - OrderAmountPromotionRule *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule `json:"order_amount_promotion_rule,omitempty"` - SkuListPromotionRule *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule `json:"sku_list_promotion_rule,omitempty"` - CouponCodesPromotionRule *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule `json:"coupon_codes_promotion_rule,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` -} - -// NewPOSTExternalPromotions201ResponseDataRelationships instantiates a new POSTExternalPromotions201ResponseDataRelationships object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPOSTExternalPromotions201ResponseDataRelationships() *POSTExternalPromotions201ResponseDataRelationships { - this := POSTExternalPromotions201ResponseDataRelationships{} - return &this -} - -// NewPOSTExternalPromotions201ResponseDataRelationshipsWithDefaults instantiates a new POSTExternalPromotions201ResponseDataRelationships object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPOSTExternalPromotions201ResponseDataRelationshipsWithDefaults() *POSTExternalPromotions201ResponseDataRelationships { - this := POSTExternalPromotions201ResponseDataRelationships{} - return &this -} - -// GetMarket returns the Market field value if set, zero value otherwise. -func (o *POSTExternalPromotions201ResponseDataRelationships) GetMarket() POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket { - if o == nil || IsNil(o.Market) { - var ret POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket - return ret - } - return *o.Market -} - -// GetMarketOk returns a tuple with the Market field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTExternalPromotions201ResponseDataRelationships) GetMarketOk() (*POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket, bool) { - if o == nil || IsNil(o.Market) { - return nil, false - } - return o.Market, true -} - -// HasMarket returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationships) HasMarket() bool { - if o != nil && !IsNil(o.Market) { - return true - } - - return false -} - -// SetMarket gets a reference to the given POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket and assigns it to the Market field. -func (o *POSTExternalPromotions201ResponseDataRelationships) SetMarket(v POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket) { - o.Market = &v -} - -// GetPromotionRules returns the PromotionRules field value if set, zero value otherwise. -func (o *POSTExternalPromotions201ResponseDataRelationships) GetPromotionRules() POSTExternalPromotions201ResponseDataRelationshipsPromotionRules { - if o == nil || IsNil(o.PromotionRules) { - var ret POSTExternalPromotions201ResponseDataRelationshipsPromotionRules - return ret - } - return *o.PromotionRules -} - -// GetPromotionRulesOk returns a tuple with the PromotionRules field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTExternalPromotions201ResponseDataRelationships) GetPromotionRulesOk() (*POSTExternalPromotions201ResponseDataRelationshipsPromotionRules, bool) { - if o == nil || IsNil(o.PromotionRules) { - return nil, false - } - return o.PromotionRules, true -} - -// HasPromotionRules returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationships) HasPromotionRules() bool { - if o != nil && !IsNil(o.PromotionRules) { - return true - } - - return false -} - -// SetPromotionRules gets a reference to the given POSTExternalPromotions201ResponseDataRelationshipsPromotionRules and assigns it to the PromotionRules field. -func (o *POSTExternalPromotions201ResponseDataRelationships) SetPromotionRules(v POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) { - o.PromotionRules = &v -} - -// GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field value if set, zero value otherwise. -func (o *POSTExternalPromotions201ResponseDataRelationships) GetOrderAmountPromotionRule() POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule { - if o == nil || IsNil(o.OrderAmountPromotionRule) { - var ret POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule - return ret - } - return *o.OrderAmountPromotionRule -} - -// GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTExternalPromotions201ResponseDataRelationships) GetOrderAmountPromotionRuleOk() (*POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule, bool) { - if o == nil || IsNil(o.OrderAmountPromotionRule) { - return nil, false - } - return o.OrderAmountPromotionRule, true -} - -// HasOrderAmountPromotionRule returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationships) HasOrderAmountPromotionRule() bool { - if o != nil && !IsNil(o.OrderAmountPromotionRule) { - return true - } - - return false -} - -// SetOrderAmountPromotionRule gets a reference to the given POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule and assigns it to the OrderAmountPromotionRule field. -func (o *POSTExternalPromotions201ResponseDataRelationships) SetOrderAmountPromotionRule(v POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) { - o.OrderAmountPromotionRule = &v -} - -// GetSkuListPromotionRule returns the SkuListPromotionRule field value if set, zero value otherwise. -func (o *POSTExternalPromotions201ResponseDataRelationships) GetSkuListPromotionRule() POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule { - if o == nil || IsNil(o.SkuListPromotionRule) { - var ret POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule - return ret - } - return *o.SkuListPromotionRule -} - -// GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTExternalPromotions201ResponseDataRelationships) GetSkuListPromotionRuleOk() (*POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule, bool) { - if o == nil || IsNil(o.SkuListPromotionRule) { - return nil, false - } - return o.SkuListPromotionRule, true -} - -// HasSkuListPromotionRule returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationships) HasSkuListPromotionRule() bool { - if o != nil && !IsNil(o.SkuListPromotionRule) { - return true - } - - return false -} - -// SetSkuListPromotionRule gets a reference to the given POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule and assigns it to the SkuListPromotionRule field. -func (o *POSTExternalPromotions201ResponseDataRelationships) SetSkuListPromotionRule(v POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) { - o.SkuListPromotionRule = &v -} - -// GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field value if set, zero value otherwise. -func (o *POSTExternalPromotions201ResponseDataRelationships) GetCouponCodesPromotionRule() POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule { - if o == nil || IsNil(o.CouponCodesPromotionRule) { - var ret POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule - return ret - } - return *o.CouponCodesPromotionRule -} - -// GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTExternalPromotions201ResponseDataRelationships) GetCouponCodesPromotionRuleOk() (*POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule, bool) { - if o == nil || IsNil(o.CouponCodesPromotionRule) { - return nil, false - } - return o.CouponCodesPromotionRule, true -} - -// HasCouponCodesPromotionRule returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationships) HasCouponCodesPromotionRule() bool { - if o != nil && !IsNil(o.CouponCodesPromotionRule) { - return true - } - - return false -} - -// SetCouponCodesPromotionRule gets a reference to the given POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule and assigns it to the CouponCodesPromotionRule field. -func (o *POSTExternalPromotions201ResponseDataRelationships) SetCouponCodesPromotionRule(v POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) { - o.CouponCodesPromotionRule = &v -} - -// GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTExternalPromotions201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { - if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments - return ret - } - return *o.Attachments -} - -// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTExternalPromotions201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { - if o == nil || IsNil(o.Attachments) { - return nil, false - } - return o.Attachments, true -} - -// HasAttachments returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationships) HasAttachments() bool { - if o != nil && !IsNil(o.Attachments) { - return true - } - - return false -} - -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTExternalPromotions201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { - o.Attachments = &v -} - -// GetEvents returns the Events field value if set, zero value otherwise. -func (o *POSTExternalPromotions201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { - if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents - return ret - } - return *o.Events -} - -// GetEventsOk returns a tuple with the Events field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTExternalPromotions201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { - if o == nil || IsNil(o.Events) { - return nil, false - } - return o.Events, true -} - -// HasEvents returns a boolean if a field has been set. -func (o *POSTExternalPromotions201ResponseDataRelationships) HasEvents() bool { - if o != nil && !IsNil(o.Events) { - return true - } - - return false -} - -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *POSTExternalPromotions201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { - o.Events = &v -} - -func (o POSTExternalPromotions201ResponseDataRelationships) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o POSTExternalPromotions201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Market) { - toSerialize["market"] = o.Market - } - if !IsNil(o.PromotionRules) { - toSerialize["promotion_rules"] = o.PromotionRules - } - if !IsNil(o.OrderAmountPromotionRule) { - toSerialize["order_amount_promotion_rule"] = o.OrderAmountPromotionRule - } - if !IsNil(o.SkuListPromotionRule) { - toSerialize["sku_list_promotion_rule"] = o.SkuListPromotionRule - } - if !IsNil(o.CouponCodesPromotionRule) { - toSerialize["coupon_codes_promotion_rule"] = o.CouponCodesPromotionRule - } - if !IsNil(o.Attachments) { - toSerialize["attachments"] = o.Attachments - } - if !IsNil(o.Events) { - toSerialize["events"] = o.Events - } - return toSerialize, nil -} - -type NullablePOSTExternalPromotions201ResponseDataRelationships struct { - value *POSTExternalPromotions201ResponseDataRelationships - isSet bool -} - -func (v NullablePOSTExternalPromotions201ResponseDataRelationships) Get() *POSTExternalPromotions201ResponseDataRelationships { - return v.value -} - -func (v *NullablePOSTExternalPromotions201ResponseDataRelationships) Set(val *POSTExternalPromotions201ResponseDataRelationships) { - v.value = val - v.isSet = true -} - -func (v NullablePOSTExternalPromotions201ResponseDataRelationships) IsSet() bool { - return v.isSet -} - -func (v *NullablePOSTExternalPromotions201ResponseDataRelationships) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePOSTExternalPromotions201ResponseDataRelationships(val *POSTExternalPromotions201ResponseDataRelationships) *NullablePOSTExternalPromotions201ResponseDataRelationships { - return &NullablePOSTExternalPromotions201ResponseDataRelationships{value: val, isSet: true} -} - -func (v NullablePOSTExternalPromotions201ResponseDataRelationships) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePOSTExternalPromotions201ResponseDataRelationships) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_post_external_tax_calculators_201_response.go b/api/model_post_external_tax_calculators_201_response.go index f151e960..82d2426c 100644 --- a/api/model_post_external_tax_calculators_201_response.go +++ b/api/model_post_external_tax_calculators_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_external_tax_calculators_201_response_data.go b/api/model_post_external_tax_calculators_201_response_data.go index 4f96b529..ceba4aaf 100644 --- a/api/model_post_external_tax_calculators_201_response_data.go +++ b/api/model_post_external_tax_calculators_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_external_tax_calculators_201_response_data_attributes.go b/api/model_post_external_tax_calculators_201_response_data_attributes.go index 4e2a7ace..f0c70dc9 100644 --- a/api/model_post_external_tax_calculators_201_response_data_attributes.go +++ b/api/model_post_external_tax_calculators_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type POSTExternalTaxCalculators201ResponseDataAttributes struct { Name interface{} `json:"name"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_external_tax_calculators_201_response_data_relationships.go b/api/model_post_external_tax_calculators_201_response_data_relationships.go index 6a25cbdb..2e1ad1bb 100644 --- a/api/model_post_external_tax_calculators_201_response_data_relationships.go +++ b/api/model_post_external_tax_calculators_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,9 @@ var _ MappedNullable = &POSTExternalTaxCalculators201ResponseDataRelationships{} // POSTExternalTaxCalculators201ResponseDataRelationships struct for POSTExternalTaxCalculators201ResponseDataRelationships type POSTExternalTaxCalculators201ResponseDataRelationships struct { - Markets *POSTAvalaraAccounts201ResponseDataRelationshipsMarkets `json:"markets,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Markets *POSTAvalaraAccounts201ResponseDataRelationshipsMarkets `json:"markets,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTExternalTaxCalculators201ResponseDataRelationships instantiates a new POSTExternalTaxCalculators201ResponseDataRelationships object @@ -74,9 +75,9 @@ func (o *POSTExternalTaxCalculators201ResponseDataRelationships) SetMarkets(v PO } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTExternalTaxCalculators201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTExternalTaxCalculators201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -84,7 +85,7 @@ func (o *POSTExternalTaxCalculators201ResponseDataRelationships) GetAttachments( // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTExternalTaxCalculators201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTExternalTaxCalculators201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -100,11 +101,43 @@ func (o *POSTExternalTaxCalculators201ResponseDataRelationships) HasAttachments( return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTExternalTaxCalculators201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTExternalTaxCalculators201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTExternalTaxCalculators201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTExternalTaxCalculators201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTExternalTaxCalculators201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTExternalTaxCalculators201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTExternalTaxCalculators201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o POSTExternalTaxCalculators201ResponseDataRelationships) ToMap() (map[str if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_fixed_amount_promotions_201_response.go b/api/model_post_fixed_amount_promotions_201_response.go index 6aaf3de2..4a4fa215 100644 --- a/api/model_post_fixed_amount_promotions_201_response.go +++ b/api/model_post_fixed_amount_promotions_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_fixed_amount_promotions_201_response_data.go b/api/model_post_fixed_amount_promotions_201_response_data.go index 2de2a939..1f496756 100644 --- a/api/model_post_fixed_amount_promotions_201_response_data.go +++ b/api/model_post_fixed_amount_promotions_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type POSTFixedAmountPromotions201ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *POSTFixedAmountPromotions201ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTExternalPromotions201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTBuyXPayYPromotions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPOSTFixedAmountPromotions201ResponseData instantiates a new POSTFixedAmountPromotions201ResponseData object @@ -177,9 +177,9 @@ func (o *POSTFixedAmountPromotions201ResponseData) SetAttributes(v POSTFixedAmou } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *POSTFixedAmountPromotions201ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships { +func (o *POSTFixedAmountPromotions201ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTExternalPromotions201ResponseDataRelationships + var ret POSTBuyXPayYPromotions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *POSTFixedAmountPromotions201ResponseData) GetRelationships() POSTExtern // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTFixedAmountPromotions201ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool) { +func (o *POSTFixedAmountPromotions201ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *POSTFixedAmountPromotions201ResponseData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given POSTExternalPromotions201ResponseDataRelationships and assigns it to the Relationships field. -func (o *POSTFixedAmountPromotions201ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTFixedAmountPromotions201ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_post_fixed_amount_promotions_201_response_data_attributes.go b/api/model_post_fixed_amount_promotions_201_response_data_attributes.go index 110e8d31..f25e88ed 100644 --- a/api/model_post_fixed_amount_promotions_201_response_data_attributes.go +++ b/api/model_post_fixed_amount_promotions_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,19 +24,27 @@ type POSTFixedAmountPromotions201ResponseDataAttributes struct { Name interface{} `json:"name"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` // The activation date/time of this promotion. StartsAt interface{} `json:"starts_at"` // The expiration date/time of this promotion (must be after starts_at). ExpiresAt interface{} `json:"expires_at"` - // The total number of times this promotion can be applied. - TotalUsageLimit interface{} `json:"total_usage_limit"` + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. + TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` - // The discount fixed amount to be applied, in cents + // The discount fixed amount to be applied, in cents. FixedAmountCents interface{} `json:"fixed_amount_cents"` } @@ -44,12 +52,11 @@ type POSTFixedAmountPromotions201ResponseDataAttributes struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTFixedAmountPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, totalUsageLimit interface{}, fixedAmountCents interface{}) *POSTFixedAmountPromotions201ResponseDataAttributes { +func NewPOSTFixedAmountPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, fixedAmountCents interface{}) *POSTFixedAmountPromotions201ResponseDataAttributes { this := POSTFixedAmountPromotions201ResponseDataAttributes{} this.Name = name this.StartsAt = startsAt this.ExpiresAt = expiresAt - this.TotalUsageLimit = totalUsageLimit this.FixedAmountCents = fixedAmountCents return &this } @@ -121,6 +128,72 @@ func (o *POSTFixedAmountPromotions201ResponseDataAttributes) SetCurrencyCode(v i o.CurrencyCode = v } +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *POSTFixedAmountPromotions201ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *POSTFixedAmountPromotions201ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *POSTFixedAmountPromotions201ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *POSTFixedAmountPromotions201ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + // GetStartsAt returns the StartsAt field value // If the value is explicit nil, the zero value for interface{} will be returned func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetStartsAt() interface{} { @@ -173,18 +246,16 @@ func (o *POSTFixedAmountPromotions201ResponseDataAttributes) SetExpiresAt(v inte o.ExpiresAt = v } -// GetTotalUsageLimit returns the TotalUsageLimit field value -// If the value is explicit nil, the zero value for interface{} will be returned +// GetTotalUsageLimit returns the TotalUsageLimit field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetTotalUsageLimit() interface{} { if o == nil { var ret interface{} return ret } - return o.TotalUsageLimit } -// GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field value +// GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetTotalUsageLimitOk() (*interface{}, bool) { @@ -194,11 +265,86 @@ func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetTotalUsageLimitO return &o.TotalUsageLimit, true } -// SetTotalUsageLimit sets field value +// HasTotalUsageLimit returns a boolean if a field has been set. +func (o *POSTFixedAmountPromotions201ResponseDataAttributes) HasTotalUsageLimit() bool { + if o != nil && IsNil(o.TotalUsageLimit) { + return true + } + + return false +} + +// SetTotalUsageLimit gets a reference to the given interface{} and assigns it to the TotalUsageLimit field. func (o *POSTFixedAmountPromotions201ResponseDataAttributes) SetTotalUsageLimit(v interface{}) { o.TotalUsageLimit = v } +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *POSTFixedAmountPromotions201ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *POSTFixedAmountPromotions201ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *POSTFixedAmountPromotions201ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *POSTFixedAmountPromotions201ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTFixedAmountPromotions201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -340,6 +486,12 @@ func (o POSTFixedAmountPromotions201ResponseDataAttributes) ToMap() (map[string] if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } if o.StartsAt != nil { toSerialize["starts_at"] = o.StartsAt } @@ -349,6 +501,12 @@ func (o POSTFixedAmountPromotions201ResponseDataAttributes) ToMap() (map[string] if o.TotalUsageLimit != nil { toSerialize["total_usage_limit"] = o.TotalUsageLimit } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_fixed_price_promotions_201_response.go b/api/model_post_fixed_price_promotions_201_response.go index 64ef3794..04760ad6 100644 --- a/api/model_post_fixed_price_promotions_201_response.go +++ b/api/model_post_fixed_price_promotions_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_fixed_price_promotions_201_response_data.go b/api/model_post_fixed_price_promotions_201_response_data.go index d7f51a4c..9d63ed33 100644 --- a/api/model_post_fixed_price_promotions_201_response_data.go +++ b/api/model_post_fixed_price_promotions_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type POSTFixedPricePromotions201ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *POSTFixedPricePromotions201ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTFixedPricePromotions201ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTFixedPricePromotions201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTBuyXPayYPromotions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPOSTFixedPricePromotions201ResponseData instantiates a new POSTFixedPricePromotions201ResponseData object @@ -177,9 +177,9 @@ func (o *POSTFixedPricePromotions201ResponseData) SetAttributes(v POSTFixedPrice } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *POSTFixedPricePromotions201ResponseData) GetRelationships() POSTFixedPricePromotions201ResponseDataRelationships { +func (o *POSTFixedPricePromotions201ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTFixedPricePromotions201ResponseDataRelationships + var ret POSTBuyXPayYPromotions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *POSTFixedPricePromotions201ResponseData) GetRelationships() POSTFixedPr // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTFixedPricePromotions201ResponseData) GetRelationshipsOk() (*POSTFixedPricePromotions201ResponseDataRelationships, bool) { +func (o *POSTFixedPricePromotions201ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *POSTFixedPricePromotions201ResponseData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given POSTFixedPricePromotions201ResponseDataRelationships and assigns it to the Relationships field. -func (o *POSTFixedPricePromotions201ResponseData) SetRelationships(v POSTFixedPricePromotions201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTFixedPricePromotions201ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_post_fixed_price_promotions_201_response_data_attributes.go b/api/model_post_fixed_price_promotions_201_response_data_attributes.go index 0ebd2dac..55b75150 100644 --- a/api/model_post_fixed_price_promotions_201_response_data_attributes.go +++ b/api/model_post_fixed_price_promotions_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,19 +24,27 @@ type POSTFixedPricePromotions201ResponseDataAttributes struct { Name interface{} `json:"name"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` // The activation date/time of this promotion. StartsAt interface{} `json:"starts_at"` // The expiration date/time of this promotion (must be after starts_at). ExpiresAt interface{} `json:"expires_at"` - // The total number of times this promotion can be applied. - TotalUsageLimit interface{} `json:"total_usage_limit"` + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. + TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` - // The price fixed amount to be applied on matching SKUs, in cents + // The price fixed amount to be applied on matching SKUs, in cents. FixedAmountCents interface{} `json:"fixed_amount_cents"` } @@ -44,12 +52,11 @@ type POSTFixedPricePromotions201ResponseDataAttributes struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTFixedPricePromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, totalUsageLimit interface{}, fixedAmountCents interface{}) *POSTFixedPricePromotions201ResponseDataAttributes { +func NewPOSTFixedPricePromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, fixedAmountCents interface{}) *POSTFixedPricePromotions201ResponseDataAttributes { this := POSTFixedPricePromotions201ResponseDataAttributes{} this.Name = name this.StartsAt = startsAt this.ExpiresAt = expiresAt - this.TotalUsageLimit = totalUsageLimit this.FixedAmountCents = fixedAmountCents return &this } @@ -121,6 +128,72 @@ func (o *POSTFixedPricePromotions201ResponseDataAttributes) SetCurrencyCode(v in o.CurrencyCode = v } +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *POSTFixedPricePromotions201ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *POSTFixedPricePromotions201ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *POSTFixedPricePromotions201ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *POSTFixedPricePromotions201ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + // GetStartsAt returns the StartsAt field value // If the value is explicit nil, the zero value for interface{} will be returned func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetStartsAt() interface{} { @@ -173,18 +246,16 @@ func (o *POSTFixedPricePromotions201ResponseDataAttributes) SetExpiresAt(v inter o.ExpiresAt = v } -// GetTotalUsageLimit returns the TotalUsageLimit field value -// If the value is explicit nil, the zero value for interface{} will be returned +// GetTotalUsageLimit returns the TotalUsageLimit field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetTotalUsageLimit() interface{} { if o == nil { var ret interface{} return ret } - return o.TotalUsageLimit } -// GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field value +// GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetTotalUsageLimitOk() (*interface{}, bool) { @@ -194,11 +265,86 @@ func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetTotalUsageLimitOk return &o.TotalUsageLimit, true } -// SetTotalUsageLimit sets field value +// HasTotalUsageLimit returns a boolean if a field has been set. +func (o *POSTFixedPricePromotions201ResponseDataAttributes) HasTotalUsageLimit() bool { + if o != nil && IsNil(o.TotalUsageLimit) { + return true + } + + return false +} + +// SetTotalUsageLimit gets a reference to the given interface{} and assigns it to the TotalUsageLimit field. func (o *POSTFixedPricePromotions201ResponseDataAttributes) SetTotalUsageLimit(v interface{}) { o.TotalUsageLimit = v } +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *POSTFixedPricePromotions201ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *POSTFixedPricePromotions201ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *POSTFixedPricePromotions201ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *POSTFixedPricePromotions201ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTFixedPricePromotions201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -340,6 +486,12 @@ func (o POSTFixedPricePromotions201ResponseDataAttributes) ToMap() (map[string]i if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } if o.StartsAt != nil { toSerialize["starts_at"] = o.StartsAt } @@ -349,6 +501,12 @@ func (o POSTFixedPricePromotions201ResponseDataAttributes) ToMap() (map[string]i if o.TotalUsageLimit != nil { toSerialize["total_usage_limit"] = o.TotalUsageLimit } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_fixed_price_promotions_201_response_data_relationships.go b/api/model_post_fixed_price_promotions_201_response_data_relationships.go deleted file mode 100644 index c13c10f5..00000000 --- a/api/model_post_fixed_price_promotions_201_response_data_relationships.go +++ /dev/null @@ -1,413 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the POSTFixedPricePromotions201ResponseDataRelationships type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTFixedPricePromotions201ResponseDataRelationships{} - -// POSTFixedPricePromotions201ResponseDataRelationships struct for POSTFixedPricePromotions201ResponseDataRelationships -type POSTFixedPricePromotions201ResponseDataRelationships struct { - Market *POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket `json:"market,omitempty"` - PromotionRules *POSTExternalPromotions201ResponseDataRelationshipsPromotionRules `json:"promotion_rules,omitempty"` - OrderAmountPromotionRule *POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule `json:"order_amount_promotion_rule,omitempty"` - SkuListPromotionRule *POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule `json:"sku_list_promotion_rule,omitempty"` - CouponCodesPromotionRule *POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule `json:"coupon_codes_promotion_rule,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` - SkuList *POSTBundles201ResponseDataRelationshipsSkuList `json:"sku_list,omitempty"` - Skus *POSTBundles201ResponseDataRelationshipsSkus `json:"skus,omitempty"` -} - -// NewPOSTFixedPricePromotions201ResponseDataRelationships instantiates a new POSTFixedPricePromotions201ResponseDataRelationships object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPOSTFixedPricePromotions201ResponseDataRelationships() *POSTFixedPricePromotions201ResponseDataRelationships { - this := POSTFixedPricePromotions201ResponseDataRelationships{} - return &this -} - -// NewPOSTFixedPricePromotions201ResponseDataRelationshipsWithDefaults instantiates a new POSTFixedPricePromotions201ResponseDataRelationships object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPOSTFixedPricePromotions201ResponseDataRelationshipsWithDefaults() *POSTFixedPricePromotions201ResponseDataRelationships { - this := POSTFixedPricePromotions201ResponseDataRelationships{} - return &this -} - -// GetMarket returns the Market field value if set, zero value otherwise. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetMarket() POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket { - if o == nil || IsNil(o.Market) { - var ret POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket - return ret - } - return *o.Market -} - -// GetMarketOk returns a tuple with the Market field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetMarketOk() (*POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket, bool) { - if o == nil || IsNil(o.Market) { - return nil, false - } - return o.Market, true -} - -// HasMarket returns a boolean if a field has been set. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) HasMarket() bool { - if o != nil && !IsNil(o.Market) { - return true - } - - return false -} - -// SetMarket gets a reference to the given POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket and assigns it to the Market field. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) SetMarket(v POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket) { - o.Market = &v -} - -// GetPromotionRules returns the PromotionRules field value if set, zero value otherwise. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetPromotionRules() POSTExternalPromotions201ResponseDataRelationshipsPromotionRules { - if o == nil || IsNil(o.PromotionRules) { - var ret POSTExternalPromotions201ResponseDataRelationshipsPromotionRules - return ret - } - return *o.PromotionRules -} - -// GetPromotionRulesOk returns a tuple with the PromotionRules field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetPromotionRulesOk() (*POSTExternalPromotions201ResponseDataRelationshipsPromotionRules, bool) { - if o == nil || IsNil(o.PromotionRules) { - return nil, false - } - return o.PromotionRules, true -} - -// HasPromotionRules returns a boolean if a field has been set. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) HasPromotionRules() bool { - if o != nil && !IsNil(o.PromotionRules) { - return true - } - - return false -} - -// SetPromotionRules gets a reference to the given POSTExternalPromotions201ResponseDataRelationshipsPromotionRules and assigns it to the PromotionRules field. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) SetPromotionRules(v POSTExternalPromotions201ResponseDataRelationshipsPromotionRules) { - o.PromotionRules = &v -} - -// GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field value if set, zero value otherwise. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetOrderAmountPromotionRule() POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule { - if o == nil || IsNil(o.OrderAmountPromotionRule) { - var ret POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule - return ret - } - return *o.OrderAmountPromotionRule -} - -// GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetOrderAmountPromotionRuleOk() (*POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule, bool) { - if o == nil || IsNil(o.OrderAmountPromotionRule) { - return nil, false - } - return o.OrderAmountPromotionRule, true -} - -// HasOrderAmountPromotionRule returns a boolean if a field has been set. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) HasOrderAmountPromotionRule() bool { - if o != nil && !IsNil(o.OrderAmountPromotionRule) { - return true - } - - return false -} - -// SetOrderAmountPromotionRule gets a reference to the given POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule and assigns it to the OrderAmountPromotionRule field. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) SetOrderAmountPromotionRule(v POSTExternalPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) { - o.OrderAmountPromotionRule = &v -} - -// GetSkuListPromotionRule returns the SkuListPromotionRule field value if set, zero value otherwise. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetSkuListPromotionRule() POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule { - if o == nil || IsNil(o.SkuListPromotionRule) { - var ret POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule - return ret - } - return *o.SkuListPromotionRule -} - -// GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetSkuListPromotionRuleOk() (*POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule, bool) { - if o == nil || IsNil(o.SkuListPromotionRule) { - return nil, false - } - return o.SkuListPromotionRule, true -} - -// HasSkuListPromotionRule returns a boolean if a field has been set. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) HasSkuListPromotionRule() bool { - if o != nil && !IsNil(o.SkuListPromotionRule) { - return true - } - - return false -} - -// SetSkuListPromotionRule gets a reference to the given POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule and assigns it to the SkuListPromotionRule field. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) SetSkuListPromotionRule(v POSTExternalPromotions201ResponseDataRelationshipsSkuListPromotionRule) { - o.SkuListPromotionRule = &v -} - -// GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field value if set, zero value otherwise. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetCouponCodesPromotionRule() POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule { - if o == nil || IsNil(o.CouponCodesPromotionRule) { - var ret POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule - return ret - } - return *o.CouponCodesPromotionRule -} - -// GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetCouponCodesPromotionRuleOk() (*POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule, bool) { - if o == nil || IsNil(o.CouponCodesPromotionRule) { - return nil, false - } - return o.CouponCodesPromotionRule, true -} - -// HasCouponCodesPromotionRule returns a boolean if a field has been set. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) HasCouponCodesPromotionRule() bool { - if o != nil && !IsNil(o.CouponCodesPromotionRule) { - return true - } - - return false -} - -// SetCouponCodesPromotionRule gets a reference to the given POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule and assigns it to the CouponCodesPromotionRule field. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) SetCouponCodesPromotionRule(v POSTExternalPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) { - o.CouponCodesPromotionRule = &v -} - -// GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { - if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments - return ret - } - return *o.Attachments -} - -// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { - if o == nil || IsNil(o.Attachments) { - return nil, false - } - return o.Attachments, true -} - -// HasAttachments returns a boolean if a field has been set. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) HasAttachments() bool { - if o != nil && !IsNil(o.Attachments) { - return true - } - - return false -} - -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { - o.Attachments = &v -} - -// GetEvents returns the Events field value if set, zero value otherwise. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { - if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents - return ret - } - return *o.Events -} - -// GetEventsOk returns a tuple with the Events field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { - if o == nil || IsNil(o.Events) { - return nil, false - } - return o.Events, true -} - -// HasEvents returns a boolean if a field has been set. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) HasEvents() bool { - if o != nil && !IsNil(o.Events) { - return true - } - - return false -} - -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { - o.Events = &v -} - -// GetSkuList returns the SkuList field value if set, zero value otherwise. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetSkuList() POSTBundles201ResponseDataRelationshipsSkuList { - if o == nil || IsNil(o.SkuList) { - var ret POSTBundles201ResponseDataRelationshipsSkuList - return ret - } - return *o.SkuList -} - -// GetSkuListOk returns a tuple with the SkuList field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetSkuListOk() (*POSTBundles201ResponseDataRelationshipsSkuList, bool) { - if o == nil || IsNil(o.SkuList) { - return nil, false - } - return o.SkuList, true -} - -// HasSkuList returns a boolean if a field has been set. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) HasSkuList() bool { - if o != nil && !IsNil(o.SkuList) { - return true - } - - return false -} - -// SetSkuList gets a reference to the given POSTBundles201ResponseDataRelationshipsSkuList and assigns it to the SkuList field. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) SetSkuList(v POSTBundles201ResponseDataRelationshipsSkuList) { - o.SkuList = &v -} - -// GetSkus returns the Skus field value if set, zero value otherwise. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetSkus() POSTBundles201ResponseDataRelationshipsSkus { - if o == nil || IsNil(o.Skus) { - var ret POSTBundles201ResponseDataRelationshipsSkus - return ret - } - return *o.Skus -} - -// GetSkusOk returns a tuple with the Skus field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) GetSkusOk() (*POSTBundles201ResponseDataRelationshipsSkus, bool) { - if o == nil || IsNil(o.Skus) { - return nil, false - } - return o.Skus, true -} - -// HasSkus returns a boolean if a field has been set. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) HasSkus() bool { - if o != nil && !IsNil(o.Skus) { - return true - } - - return false -} - -// SetSkus gets a reference to the given POSTBundles201ResponseDataRelationshipsSkus and assigns it to the Skus field. -func (o *POSTFixedPricePromotions201ResponseDataRelationships) SetSkus(v POSTBundles201ResponseDataRelationshipsSkus) { - o.Skus = &v -} - -func (o POSTFixedPricePromotions201ResponseDataRelationships) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o POSTFixedPricePromotions201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Market) { - toSerialize["market"] = o.Market - } - if !IsNil(o.PromotionRules) { - toSerialize["promotion_rules"] = o.PromotionRules - } - if !IsNil(o.OrderAmountPromotionRule) { - toSerialize["order_amount_promotion_rule"] = o.OrderAmountPromotionRule - } - if !IsNil(o.SkuListPromotionRule) { - toSerialize["sku_list_promotion_rule"] = o.SkuListPromotionRule - } - if !IsNil(o.CouponCodesPromotionRule) { - toSerialize["coupon_codes_promotion_rule"] = o.CouponCodesPromotionRule - } - if !IsNil(o.Attachments) { - toSerialize["attachments"] = o.Attachments - } - if !IsNil(o.Events) { - toSerialize["events"] = o.Events - } - if !IsNil(o.SkuList) { - toSerialize["sku_list"] = o.SkuList - } - if !IsNil(o.Skus) { - toSerialize["skus"] = o.Skus - } - return toSerialize, nil -} - -type NullablePOSTFixedPricePromotions201ResponseDataRelationships struct { - value *POSTFixedPricePromotions201ResponseDataRelationships - isSet bool -} - -func (v NullablePOSTFixedPricePromotions201ResponseDataRelationships) Get() *POSTFixedPricePromotions201ResponseDataRelationships { - return v.value -} - -func (v *NullablePOSTFixedPricePromotions201ResponseDataRelationships) Set(val *POSTFixedPricePromotions201ResponseDataRelationships) { - v.value = val - v.isSet = true -} - -func (v NullablePOSTFixedPricePromotions201ResponseDataRelationships) IsSet() bool { - return v.isSet -} - -func (v *NullablePOSTFixedPricePromotions201ResponseDataRelationships) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePOSTFixedPricePromotions201ResponseDataRelationships(val *POSTFixedPricePromotions201ResponseDataRelationships) *NullablePOSTFixedPricePromotions201ResponseDataRelationships { - return &NullablePOSTFixedPricePromotions201ResponseDataRelationships{value: val, isSet: true} -} - -func (v NullablePOSTFixedPricePromotions201ResponseDataRelationships) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePOSTFixedPricePromotions201ResponseDataRelationships) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_post_flex_promotions_201_response.go b/api/model_post_flex_promotions_201_response.go new file mode 100644 index 00000000..d0f5eda2 --- /dev/null +++ b/api/model_post_flex_promotions_201_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTFlexPromotions201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTFlexPromotions201Response{} + +// POSTFlexPromotions201Response struct for POSTFlexPromotions201Response +type POSTFlexPromotions201Response struct { + Data *POSTFlexPromotions201ResponseData `json:"data,omitempty"` +} + +// NewPOSTFlexPromotions201Response instantiates a new POSTFlexPromotions201Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTFlexPromotions201Response() *POSTFlexPromotions201Response { + this := POSTFlexPromotions201Response{} + return &this +} + +// NewPOSTFlexPromotions201ResponseWithDefaults instantiates a new POSTFlexPromotions201Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTFlexPromotions201ResponseWithDefaults() *POSTFlexPromotions201Response { + this := POSTFlexPromotions201Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTFlexPromotions201Response) GetData() POSTFlexPromotions201ResponseData { + if o == nil || IsNil(o.Data) { + var ret POSTFlexPromotions201ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFlexPromotions201Response) GetDataOk() (*POSTFlexPromotions201ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTFlexPromotions201Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTFlexPromotions201ResponseData and assigns it to the Data field. +func (o *POSTFlexPromotions201Response) SetData(v POSTFlexPromotions201ResponseData) { + o.Data = &v +} + +func (o POSTFlexPromotions201Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTFlexPromotions201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTFlexPromotions201Response struct { + value *POSTFlexPromotions201Response + isSet bool +} + +func (v NullablePOSTFlexPromotions201Response) Get() *POSTFlexPromotions201Response { + return v.value +} + +func (v *NullablePOSTFlexPromotions201Response) Set(val *POSTFlexPromotions201Response) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTFlexPromotions201Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTFlexPromotions201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTFlexPromotions201Response(val *POSTFlexPromotions201Response) *NullablePOSTFlexPromotions201Response { + return &NullablePOSTFlexPromotions201Response{value: val, isSet: true} +} + +func (v NullablePOSTFlexPromotions201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTFlexPromotions201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_flex_promotions_201_response_data.go b/api/model_post_flex_promotions_201_response_data.go new file mode 100644 index 00000000..27cfb4cf --- /dev/null +++ b/api/model_post_flex_promotions_201_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTFlexPromotions201ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTFlexPromotions201ResponseData{} + +// POSTFlexPromotions201ResponseData struct for POSTFlexPromotions201ResponseData +type POSTFlexPromotions201ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTFlexPromotions201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTFlexPromotions201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPOSTFlexPromotions201ResponseData instantiates a new POSTFlexPromotions201ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTFlexPromotions201ResponseData() *POSTFlexPromotions201ResponseData { + this := POSTFlexPromotions201ResponseData{} + return &this +} + +// NewPOSTFlexPromotions201ResponseDataWithDefaults instantiates a new POSTFlexPromotions201ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTFlexPromotions201ResponseDataWithDefaults() *POSTFlexPromotions201ResponseData { + this := POSTFlexPromotions201ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFlexPromotions201ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFlexPromotions201ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTFlexPromotions201ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTFlexPromotions201ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFlexPromotions201ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFlexPromotions201ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTFlexPromotions201ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTFlexPromotions201ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTFlexPromotions201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFlexPromotions201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTFlexPromotions201ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *POSTFlexPromotions201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *POSTFlexPromotions201ResponseData) GetAttributes() POSTFlexPromotions201ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret POSTFlexPromotions201ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFlexPromotions201ResponseData) GetAttributesOk() (*POSTFlexPromotions201ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *POSTFlexPromotions201ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given POSTFlexPromotions201ResponseDataAttributes and assigns it to the Attributes field. +func (o *POSTFlexPromotions201ResponseData) SetAttributes(v POSTFlexPromotions201ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *POSTFlexPromotions201ResponseData) GetRelationships() POSTFlexPromotions201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTFlexPromotions201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFlexPromotions201ResponseData) GetRelationshipsOk() (*POSTFlexPromotions201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *POSTFlexPromotions201ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTFlexPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTFlexPromotions201ResponseData) SetRelationships(v POSTFlexPromotions201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o POSTFlexPromotions201ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTFlexPromotions201ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePOSTFlexPromotions201ResponseData struct { + value *POSTFlexPromotions201ResponseData + isSet bool +} + +func (v NullablePOSTFlexPromotions201ResponseData) Get() *POSTFlexPromotions201ResponseData { + return v.value +} + +func (v *NullablePOSTFlexPromotions201ResponseData) Set(val *POSTFlexPromotions201ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTFlexPromotions201ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTFlexPromotions201ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTFlexPromotions201ResponseData(val *POSTFlexPromotions201ResponseData) *NullablePOSTFlexPromotions201ResponseData { + return &NullablePOSTFlexPromotions201ResponseData{value: val, isSet: true} +} + +func (v NullablePOSTFlexPromotions201ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTFlexPromotions201ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_flex_promotions_201_response_data_attributes.go b/api/model_post_flex_promotions_201_response_data_attributes.go new file mode 100644 index 00000000..cbcf5f26 --- /dev/null +++ b/api/model_post_flex_promotions_201_response_data_attributes.go @@ -0,0 +1,521 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTFlexPromotions201ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTFlexPromotions201ResponseDataAttributes{} + +// POSTFlexPromotions201ResponseDataAttributes struct for POSTFlexPromotions201ResponseDataAttributes +type POSTFlexPromotions201ResponseDataAttributes struct { + // The promotion's internal name. + Name interface{} `json:"name"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` + // The activation date/time of this promotion. + StartsAt interface{} `json:"starts_at"` + // The expiration date/time of this promotion (must be after starts_at). + ExpiresAt interface{} `json:"expires_at"` + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. + TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` + // The discount rule to be applied. + Rules interface{} `json:"rules"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPOSTFlexPromotions201ResponseDataAttributes instantiates a new POSTFlexPromotions201ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTFlexPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, rules interface{}) *POSTFlexPromotions201ResponseDataAttributes { + this := POSTFlexPromotions201ResponseDataAttributes{} + this.Name = name + this.StartsAt = startsAt + this.ExpiresAt = expiresAt + this.Rules = rules + return &this +} + +// NewPOSTFlexPromotions201ResponseDataAttributesWithDefaults instantiates a new POSTFlexPromotions201ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTFlexPromotions201ResponseDataAttributesWithDefaults() *POSTFlexPromotions201ResponseDataAttributes { + this := POSTFlexPromotions201ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTFlexPromotions201ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFlexPromotions201ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *POSTFlexPromotions201ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFlexPromotions201ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFlexPromotions201ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *POSTFlexPromotions201ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *POSTFlexPromotions201ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFlexPromotions201ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFlexPromotions201ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *POSTFlexPromotions201ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *POSTFlexPromotions201ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + +// GetStartsAt returns the StartsAt field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTFlexPromotions201ResponseDataAttributes) GetStartsAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.StartsAt +} + +// GetStartsAtOk returns a tuple with the StartsAt field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFlexPromotions201ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.StartsAt) { + return nil, false + } + return &o.StartsAt, true +} + +// SetStartsAt sets field value +func (o *POSTFlexPromotions201ResponseDataAttributes) SetStartsAt(v interface{}) { + o.StartsAt = v +} + +// GetExpiresAt returns the ExpiresAt field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTFlexPromotions201ResponseDataAttributes) GetExpiresAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFlexPromotions201ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExpiresAt) { + return nil, false + } + return &o.ExpiresAt, true +} + +// SetExpiresAt sets field value +func (o *POSTFlexPromotions201ResponseDataAttributes) SetExpiresAt(v interface{}) { + o.ExpiresAt = v +} + +// GetTotalUsageLimit returns the TotalUsageLimit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFlexPromotions201ResponseDataAttributes) GetTotalUsageLimit() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.TotalUsageLimit +} + +// GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFlexPromotions201ResponseDataAttributes) GetTotalUsageLimitOk() (*interface{}, bool) { + if o == nil || IsNil(o.TotalUsageLimit) { + return nil, false + } + return &o.TotalUsageLimit, true +} + +// HasTotalUsageLimit returns a boolean if a field has been set. +func (o *POSTFlexPromotions201ResponseDataAttributes) HasTotalUsageLimit() bool { + if o != nil && IsNil(o.TotalUsageLimit) { + return true + } + + return false +} + +// SetTotalUsageLimit gets a reference to the given interface{} and assigns it to the TotalUsageLimit field. +func (o *POSTFlexPromotions201ResponseDataAttributes) SetTotalUsageLimit(v interface{}) { + o.TotalUsageLimit = v +} + +// GetRules returns the Rules field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTFlexPromotions201ResponseDataAttributes) GetRules() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFlexPromotions201ResponseDataAttributes) GetRulesOk() (*interface{}, bool) { + if o == nil || IsNil(o.Rules) { + return nil, false + } + return &o.Rules, true +} + +// SetRules sets field value +func (o *POSTFlexPromotions201ResponseDataAttributes) SetRules(v interface{}) { + o.Rules = v +} + +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFlexPromotions201ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFlexPromotions201ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *POSTFlexPromotions201ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *POSTFlexPromotions201ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFlexPromotions201ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFlexPromotions201ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *POSTFlexPromotions201ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *POSTFlexPromotions201ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFlexPromotions201ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFlexPromotions201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *POSTFlexPromotions201ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *POSTFlexPromotions201ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFlexPromotions201ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFlexPromotions201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *POSTFlexPromotions201ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *POSTFlexPromotions201ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFlexPromotions201ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFlexPromotions201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *POSTFlexPromotions201ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *POSTFlexPromotions201ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o POSTFlexPromotions201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTFlexPromotions201ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } + if o.StartsAt != nil { + toSerialize["starts_at"] = o.StartsAt + } + if o.ExpiresAt != nil { + toSerialize["expires_at"] = o.ExpiresAt + } + if o.TotalUsageLimit != nil { + toSerialize["total_usage_limit"] = o.TotalUsageLimit + } + if o.Rules != nil { + toSerialize["rules"] = o.Rules + } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePOSTFlexPromotions201ResponseDataAttributes struct { + value *POSTFlexPromotions201ResponseDataAttributes + isSet bool +} + +func (v NullablePOSTFlexPromotions201ResponseDataAttributes) Get() *POSTFlexPromotions201ResponseDataAttributes { + return v.value +} + +func (v *NullablePOSTFlexPromotions201ResponseDataAttributes) Set(val *POSTFlexPromotions201ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTFlexPromotions201ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTFlexPromotions201ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTFlexPromotions201ResponseDataAttributes(val *POSTFlexPromotions201ResponseDataAttributes) *NullablePOSTFlexPromotions201ResponseDataAttributes { + return &NullablePOSTFlexPromotions201ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePOSTFlexPromotions201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTFlexPromotions201ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_flex_promotions_201_response_data_relationships.go b/api/model_post_flex_promotions_201_response_data_relationships.go new file mode 100644 index 00000000..0316ad40 --- /dev/null +++ b/api/model_post_flex_promotions_201_response_data_relationships.go @@ -0,0 +1,305 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTFlexPromotions201ResponseDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTFlexPromotions201ResponseDataRelationships{} + +// POSTFlexPromotions201ResponseDataRelationships struct for POSTFlexPromotions201ResponseDataRelationships +type POSTFlexPromotions201ResponseDataRelationships struct { + CouponCodesPromotionRule *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule `json:"coupon_codes_promotion_rule,omitempty"` + Coupons *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons `json:"coupons,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Tags *POSTAddresses201ResponseDataRelationshipsTags `json:"tags,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewPOSTFlexPromotions201ResponseDataRelationships instantiates a new POSTFlexPromotions201ResponseDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTFlexPromotions201ResponseDataRelationships() *POSTFlexPromotions201ResponseDataRelationships { + this := POSTFlexPromotions201ResponseDataRelationships{} + return &this +} + +// NewPOSTFlexPromotions201ResponseDataRelationshipsWithDefaults instantiates a new POSTFlexPromotions201ResponseDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTFlexPromotions201ResponseDataRelationshipsWithDefaults() *POSTFlexPromotions201ResponseDataRelationships { + this := POSTFlexPromotions201ResponseDataRelationships{} + return &this +} + +// GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field value if set, zero value otherwise. +func (o *POSTFlexPromotions201ResponseDataRelationships) GetCouponCodesPromotionRule() POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule { + if o == nil || IsNil(o.CouponCodesPromotionRule) { + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule + return ret + } + return *o.CouponCodesPromotionRule +} + +// GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFlexPromotions201ResponseDataRelationships) GetCouponCodesPromotionRuleOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule, bool) { + if o == nil || IsNil(o.CouponCodesPromotionRule) { + return nil, false + } + return o.CouponCodesPromotionRule, true +} + +// HasCouponCodesPromotionRule returns a boolean if a field has been set. +func (o *POSTFlexPromotions201ResponseDataRelationships) HasCouponCodesPromotionRule() bool { + if o != nil && !IsNil(o.CouponCodesPromotionRule) { + return true + } + + return false +} + +// SetCouponCodesPromotionRule gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule and assigns it to the CouponCodesPromotionRule field. +func (o *POSTFlexPromotions201ResponseDataRelationships) SetCouponCodesPromotionRule(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) { + o.CouponCodesPromotionRule = &v +} + +// GetCoupons returns the Coupons field value if set, zero value otherwise. +func (o *POSTFlexPromotions201ResponseDataRelationships) GetCoupons() POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons { + if o == nil || IsNil(o.Coupons) { + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons + return ret + } + return *o.Coupons +} + +// GetCouponsOk returns a tuple with the Coupons field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFlexPromotions201ResponseDataRelationships) GetCouponsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons, bool) { + if o == nil || IsNil(o.Coupons) { + return nil, false + } + return o.Coupons, true +} + +// HasCoupons returns a boolean if a field has been set. +func (o *POSTFlexPromotions201ResponseDataRelationships) HasCoupons() bool { + if o != nil && !IsNil(o.Coupons) { + return true + } + + return false +} + +// SetCoupons gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons and assigns it to the Coupons field. +func (o *POSTFlexPromotions201ResponseDataRelationships) SetCoupons(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) { + o.Coupons = &v +} + +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *POSTFlexPromotions201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFlexPromotions201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *POSTFlexPromotions201ResponseDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTFlexPromotions201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { + o.Attachments = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *POSTFlexPromotions201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFlexPromotions201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *POSTFlexPromotions201ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTFlexPromotions201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *POSTFlexPromotions201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret POSTAddresses201ResponseDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFlexPromotions201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *POSTFlexPromotions201ResponseDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given POSTAddresses201ResponseDataRelationshipsTags and assigns it to the Tags field. +func (o *POSTFlexPromotions201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTFlexPromotions201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFlexPromotions201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTFlexPromotions201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTFlexPromotions201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + +func (o POSTFlexPromotions201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTFlexPromotions201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CouponCodesPromotionRule) { + toSerialize["coupon_codes_promotion_rule"] = o.CouponCodesPromotionRule + } + if !IsNil(o.Coupons) { + toSerialize["coupons"] = o.Coupons + } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullablePOSTFlexPromotions201ResponseDataRelationships struct { + value *POSTFlexPromotions201ResponseDataRelationships + isSet bool +} + +func (v NullablePOSTFlexPromotions201ResponseDataRelationships) Get() *POSTFlexPromotions201ResponseDataRelationships { + return v.value +} + +func (v *NullablePOSTFlexPromotions201ResponseDataRelationships) Set(val *POSTFlexPromotions201ResponseDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTFlexPromotions201ResponseDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTFlexPromotions201ResponseDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTFlexPromotions201ResponseDataRelationships(val *POSTFlexPromotions201ResponseDataRelationships) *NullablePOSTFlexPromotions201ResponseDataRelationships { + return &NullablePOSTFlexPromotions201ResponseDataRelationships{value: val, isSet: true} +} + +func (v NullablePOSTFlexPromotions201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTFlexPromotions201ResponseDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_free_gift_promotions_201_response.go b/api/model_post_free_gift_promotions_201_response.go index 6781f4b1..1f9425fc 100644 --- a/api/model_post_free_gift_promotions_201_response.go +++ b/api/model_post_free_gift_promotions_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_free_gift_promotions_201_response_data.go b/api/model_post_free_gift_promotions_201_response_data.go index 5d267dba..8efe0752 100644 --- a/api/model_post_free_gift_promotions_201_response_data.go +++ b/api/model_post_free_gift_promotions_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type POSTFreeGiftPromotions201ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *POSTFreeGiftPromotions201ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTFixedPricePromotions201ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTFreeGiftPromotions201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTBuyXPayYPromotions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPOSTFreeGiftPromotions201ResponseData instantiates a new POSTFreeGiftPromotions201ResponseData object @@ -177,9 +177,9 @@ func (o *POSTFreeGiftPromotions201ResponseData) SetAttributes(v POSTFreeGiftProm } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *POSTFreeGiftPromotions201ResponseData) GetRelationships() POSTFixedPricePromotions201ResponseDataRelationships { +func (o *POSTFreeGiftPromotions201ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTFixedPricePromotions201ResponseDataRelationships + var ret POSTBuyXPayYPromotions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *POSTFreeGiftPromotions201ResponseData) GetRelationships() POSTFixedPric // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTFreeGiftPromotions201ResponseData) GetRelationshipsOk() (*POSTFixedPricePromotions201ResponseDataRelationships, bool) { +func (o *POSTFreeGiftPromotions201ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *POSTFreeGiftPromotions201ResponseData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given POSTFixedPricePromotions201ResponseDataRelationships and assigns it to the Relationships field. -func (o *POSTFreeGiftPromotions201ResponseData) SetRelationships(v POSTFixedPricePromotions201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTFreeGiftPromotions201ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_post_free_gift_promotions_201_response_data_attributes.go b/api/model_post_free_gift_promotions_201_response_data_attributes.go index 0aac42e6..5083f098 100644 --- a/api/model_post_free_gift_promotions_201_response_data_attributes.go +++ b/api/model_post_free_gift_promotions_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,15 +24,23 @@ type POSTFreeGiftPromotions201ResponseDataAttributes struct { Name interface{} `json:"name"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` // The activation date/time of this promotion. StartsAt interface{} `json:"starts_at"` // The expiration date/time of this promotion (must be after starts_at). ExpiresAt interface{} `json:"expires_at"` - // The total number of times this promotion can be applied. - TotalUsageLimit interface{} `json:"total_usage_limit"` + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. + TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -44,12 +52,11 @@ type POSTFreeGiftPromotions201ResponseDataAttributes struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTFreeGiftPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, totalUsageLimit interface{}) *POSTFreeGiftPromotions201ResponseDataAttributes { +func NewPOSTFreeGiftPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}) *POSTFreeGiftPromotions201ResponseDataAttributes { this := POSTFreeGiftPromotions201ResponseDataAttributes{} this.Name = name this.StartsAt = startsAt this.ExpiresAt = expiresAt - this.TotalUsageLimit = totalUsageLimit return &this } @@ -120,6 +127,72 @@ func (o *POSTFreeGiftPromotions201ResponseDataAttributes) SetCurrencyCode(v inte o.CurrencyCode = v } +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *POSTFreeGiftPromotions201ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *POSTFreeGiftPromotions201ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *POSTFreeGiftPromotions201ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *POSTFreeGiftPromotions201ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + // GetStartsAt returns the StartsAt field value // If the value is explicit nil, the zero value for interface{} will be returned func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetStartsAt() interface{} { @@ -172,18 +245,16 @@ func (o *POSTFreeGiftPromotions201ResponseDataAttributes) SetExpiresAt(v interfa o.ExpiresAt = v } -// GetTotalUsageLimit returns the TotalUsageLimit field value -// If the value is explicit nil, the zero value for interface{} will be returned +// GetTotalUsageLimit returns the TotalUsageLimit field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetTotalUsageLimit() interface{} { if o == nil { var ret interface{} return ret } - return o.TotalUsageLimit } -// GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field value +// GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetTotalUsageLimitOk() (*interface{}, bool) { @@ -193,11 +264,86 @@ func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetTotalUsageLimitOk() return &o.TotalUsageLimit, true } -// SetTotalUsageLimit sets field value +// HasTotalUsageLimit returns a boolean if a field has been set. +func (o *POSTFreeGiftPromotions201ResponseDataAttributes) HasTotalUsageLimit() bool { + if o != nil && IsNil(o.TotalUsageLimit) { + return true + } + + return false +} + +// SetTotalUsageLimit gets a reference to the given interface{} and assigns it to the TotalUsageLimit field. func (o *POSTFreeGiftPromotions201ResponseDataAttributes) SetTotalUsageLimit(v interface{}) { o.TotalUsageLimit = v } +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *POSTFreeGiftPromotions201ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *POSTFreeGiftPromotions201ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *POSTFreeGiftPromotions201ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *POSTFreeGiftPromotions201ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTFreeGiftPromotions201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -346,6 +492,12 @@ func (o POSTFreeGiftPromotions201ResponseDataAttributes) ToMap() (map[string]int if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } if o.StartsAt != nil { toSerialize["starts_at"] = o.StartsAt } @@ -355,6 +507,12 @@ func (o POSTFreeGiftPromotions201ResponseDataAttributes) ToMap() (map[string]int if o.TotalUsageLimit != nil { toSerialize["total_usage_limit"] = o.TotalUsageLimit } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_free_shipping_promotions_201_response.go b/api/model_post_free_shipping_promotions_201_response.go index 68c3349b..ea782d1b 100644 --- a/api/model_post_free_shipping_promotions_201_response.go +++ b/api/model_post_free_shipping_promotions_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_free_shipping_promotions_201_response_data.go b/api/model_post_free_shipping_promotions_201_response_data.go index adf728a7..73f78ee9 100644 --- a/api/model_post_free_shipping_promotions_201_response_data.go +++ b/api/model_post_free_shipping_promotions_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type POSTFreeShippingPromotions201ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *POSTFreeShippingPromotions201ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTExternalPromotions201ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTFreeShippingPromotions201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTFreeShippingPromotions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPOSTFreeShippingPromotions201ResponseData instantiates a new POSTFreeShippingPromotions201ResponseData object @@ -177,9 +177,9 @@ func (o *POSTFreeShippingPromotions201ResponseData) SetAttributes(v POSTFreeShip } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *POSTFreeShippingPromotions201ResponseData) GetRelationships() POSTExternalPromotions201ResponseDataRelationships { +func (o *POSTFreeShippingPromotions201ResponseData) GetRelationships() POSTFreeShippingPromotions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTExternalPromotions201ResponseDataRelationships + var ret POSTFreeShippingPromotions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *POSTFreeShippingPromotions201ResponseData) GetRelationships() POSTExter // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTFreeShippingPromotions201ResponseData) GetRelationshipsOk() (*POSTExternalPromotions201ResponseDataRelationships, bool) { +func (o *POSTFreeShippingPromotions201ResponseData) GetRelationshipsOk() (*POSTFreeShippingPromotions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *POSTFreeShippingPromotions201ResponseData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given POSTExternalPromotions201ResponseDataRelationships and assigns it to the Relationships field. -func (o *POSTFreeShippingPromotions201ResponseData) SetRelationships(v POSTExternalPromotions201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTFreeShippingPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTFreeShippingPromotions201ResponseData) SetRelationships(v POSTFreeShippingPromotions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_post_free_shipping_promotions_201_response_data_attributes.go b/api/model_post_free_shipping_promotions_201_response_data_attributes.go index ba3e0649..609dfe98 100644 --- a/api/model_post_free_shipping_promotions_201_response_data_attributes.go +++ b/api/model_post_free_shipping_promotions_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,15 +24,23 @@ type POSTFreeShippingPromotions201ResponseDataAttributes struct { Name interface{} `json:"name"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` // The activation date/time of this promotion. StartsAt interface{} `json:"starts_at"` // The expiration date/time of this promotion (must be after starts_at). ExpiresAt interface{} `json:"expires_at"` - // The total number of times this promotion can be applied. - TotalUsageLimit interface{} `json:"total_usage_limit"` + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. + TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -42,12 +50,11 @@ type POSTFreeShippingPromotions201ResponseDataAttributes struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTFreeShippingPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, totalUsageLimit interface{}) *POSTFreeShippingPromotions201ResponseDataAttributes { +func NewPOSTFreeShippingPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}) *POSTFreeShippingPromotions201ResponseDataAttributes { this := POSTFreeShippingPromotions201ResponseDataAttributes{} this.Name = name this.StartsAt = startsAt this.ExpiresAt = expiresAt - this.TotalUsageLimit = totalUsageLimit return &this } @@ -118,6 +125,72 @@ func (o *POSTFreeShippingPromotions201ResponseDataAttributes) SetCurrencyCode(v o.CurrencyCode = v } +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *POSTFreeShippingPromotions201ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *POSTFreeShippingPromotions201ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *POSTFreeShippingPromotions201ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *POSTFreeShippingPromotions201ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + // GetStartsAt returns the StartsAt field value // If the value is explicit nil, the zero value for interface{} will be returned func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetStartsAt() interface{} { @@ -170,18 +243,16 @@ func (o *POSTFreeShippingPromotions201ResponseDataAttributes) SetExpiresAt(v int o.ExpiresAt = v } -// GetTotalUsageLimit returns the TotalUsageLimit field value -// If the value is explicit nil, the zero value for interface{} will be returned +// GetTotalUsageLimit returns the TotalUsageLimit field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetTotalUsageLimit() interface{} { if o == nil { var ret interface{} return ret } - return o.TotalUsageLimit } -// GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field value +// GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetTotalUsageLimitOk() (*interface{}, bool) { @@ -191,11 +262,86 @@ func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetTotalUsageLimit return &o.TotalUsageLimit, true } -// SetTotalUsageLimit sets field value +// HasTotalUsageLimit returns a boolean if a field has been set. +func (o *POSTFreeShippingPromotions201ResponseDataAttributes) HasTotalUsageLimit() bool { + if o != nil && IsNil(o.TotalUsageLimit) { + return true + } + + return false +} + +// SetTotalUsageLimit gets a reference to the given interface{} and assigns it to the TotalUsageLimit field. func (o *POSTFreeShippingPromotions201ResponseDataAttributes) SetTotalUsageLimit(v interface{}) { o.TotalUsageLimit = v } +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *POSTFreeShippingPromotions201ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *POSTFreeShippingPromotions201ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *POSTFreeShippingPromotions201ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *POSTFreeShippingPromotions201ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTFreeShippingPromotions201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -311,6 +457,12 @@ func (o POSTFreeShippingPromotions201ResponseDataAttributes) ToMap() (map[string if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } if o.StartsAt != nil { toSerialize["starts_at"] = o.StartsAt } @@ -320,6 +472,12 @@ func (o POSTFreeShippingPromotions201ResponseDataAttributes) ToMap() (map[string if o.TotalUsageLimit != nil { toSerialize["total_usage_limit"] = o.TotalUsageLimit } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_free_shipping_promotions_201_response_data_relationships.go b/api/model_post_free_shipping_promotions_201_response_data_relationships.go new file mode 100644 index 00000000..dfeaca24 --- /dev/null +++ b/api/model_post_free_shipping_promotions_201_response_data_relationships.go @@ -0,0 +1,521 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTFreeShippingPromotions201ResponseDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTFreeShippingPromotions201ResponseDataRelationships{} + +// POSTFreeShippingPromotions201ResponseDataRelationships struct for POSTFreeShippingPromotions201ResponseDataRelationships +type POSTFreeShippingPromotions201ResponseDataRelationships struct { + Market *POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket `json:"market,omitempty"` + PromotionRules *POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules `json:"promotion_rules,omitempty"` + OrderAmountPromotionRule *POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule `json:"order_amount_promotion_rule,omitempty"` + SkuListPromotionRule *POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule `json:"sku_list_promotion_rule,omitempty"` + CouponCodesPromotionRule *POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule `json:"coupon_codes_promotion_rule,omitempty"` + CustomPromotionRule *POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule `json:"custom_promotion_rule,omitempty"` + SkuList *POSTBundles201ResponseDataRelationshipsSkuList `json:"sku_list,omitempty"` + Coupons *POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons `json:"coupons,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Tags *POSTAddresses201ResponseDataRelationshipsTags `json:"tags,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewPOSTFreeShippingPromotions201ResponseDataRelationships instantiates a new POSTFreeShippingPromotions201ResponseDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTFreeShippingPromotions201ResponseDataRelationships() *POSTFreeShippingPromotions201ResponseDataRelationships { + this := POSTFreeShippingPromotions201ResponseDataRelationships{} + return &this +} + +// NewPOSTFreeShippingPromotions201ResponseDataRelationshipsWithDefaults instantiates a new POSTFreeShippingPromotions201ResponseDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTFreeShippingPromotions201ResponseDataRelationshipsWithDefaults() *POSTFreeShippingPromotions201ResponseDataRelationships { + this := POSTFreeShippingPromotions201ResponseDataRelationships{} + return &this +} + +// GetMarket returns the Market field value if set, zero value otherwise. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetMarket() POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket { + if o == nil || IsNil(o.Market) { + var ret POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket + return ret + } + return *o.Market +} + +// GetMarketOk returns a tuple with the Market field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetMarketOk() (*POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket, bool) { + if o == nil || IsNil(o.Market) { + return nil, false + } + return o.Market, true +} + +// HasMarket returns a boolean if a field has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasMarket() bool { + if o != nil && !IsNil(o.Market) { + return true + } + + return false +} + +// SetMarket gets a reference to the given POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket and assigns it to the Market field. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetMarket(v POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket) { + o.Market = &v +} + +// GetPromotionRules returns the PromotionRules field value if set, zero value otherwise. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetPromotionRules() POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules { + if o == nil || IsNil(o.PromotionRules) { + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules + return ret + } + return *o.PromotionRules +} + +// GetPromotionRulesOk returns a tuple with the PromotionRules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetPromotionRulesOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules, bool) { + if o == nil || IsNil(o.PromotionRules) { + return nil, false + } + return o.PromotionRules, true +} + +// HasPromotionRules returns a boolean if a field has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasPromotionRules() bool { + if o != nil && !IsNil(o.PromotionRules) { + return true + } + + return false +} + +// SetPromotionRules gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules and assigns it to the PromotionRules field. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetPromotionRules(v POSTBuyXPayYPromotions201ResponseDataRelationshipsPromotionRules) { + o.PromotionRules = &v +} + +// GetOrderAmountPromotionRule returns the OrderAmountPromotionRule field value if set, zero value otherwise. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetOrderAmountPromotionRule() POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule { + if o == nil || IsNil(o.OrderAmountPromotionRule) { + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule + return ret + } + return *o.OrderAmountPromotionRule +} + +// GetOrderAmountPromotionRuleOk returns a tuple with the OrderAmountPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetOrderAmountPromotionRuleOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule, bool) { + if o == nil || IsNil(o.OrderAmountPromotionRule) { + return nil, false + } + return o.OrderAmountPromotionRule, true +} + +// HasOrderAmountPromotionRule returns a boolean if a field has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasOrderAmountPromotionRule() bool { + if o != nil && !IsNil(o.OrderAmountPromotionRule) { + return true + } + + return false +} + +// SetOrderAmountPromotionRule gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule and assigns it to the OrderAmountPromotionRule field. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetOrderAmountPromotionRule(v POSTBuyXPayYPromotions201ResponseDataRelationshipsOrderAmountPromotionRule) { + o.OrderAmountPromotionRule = &v +} + +// GetSkuListPromotionRule returns the SkuListPromotionRule field value if set, zero value otherwise. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetSkuListPromotionRule() POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule { + if o == nil || IsNil(o.SkuListPromotionRule) { + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule + return ret + } + return *o.SkuListPromotionRule +} + +// GetSkuListPromotionRuleOk returns a tuple with the SkuListPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetSkuListPromotionRuleOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule, bool) { + if o == nil || IsNil(o.SkuListPromotionRule) { + return nil, false + } + return o.SkuListPromotionRule, true +} + +// HasSkuListPromotionRule returns a boolean if a field has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasSkuListPromotionRule() bool { + if o != nil && !IsNil(o.SkuListPromotionRule) { + return true + } + + return false +} + +// SetSkuListPromotionRule gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule and assigns it to the SkuListPromotionRule field. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetSkuListPromotionRule(v POSTBuyXPayYPromotions201ResponseDataRelationshipsSkuListPromotionRule) { + o.SkuListPromotionRule = &v +} + +// GetCouponCodesPromotionRule returns the CouponCodesPromotionRule field value if set, zero value otherwise. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetCouponCodesPromotionRule() POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule { + if o == nil || IsNil(o.CouponCodesPromotionRule) { + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule + return ret + } + return *o.CouponCodesPromotionRule +} + +// GetCouponCodesPromotionRuleOk returns a tuple with the CouponCodesPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetCouponCodesPromotionRuleOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule, bool) { + if o == nil || IsNil(o.CouponCodesPromotionRule) { + return nil, false + } + return o.CouponCodesPromotionRule, true +} + +// HasCouponCodesPromotionRule returns a boolean if a field has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasCouponCodesPromotionRule() bool { + if o != nil && !IsNil(o.CouponCodesPromotionRule) { + return true + } + + return false +} + +// SetCouponCodesPromotionRule gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule and assigns it to the CouponCodesPromotionRule field. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetCouponCodesPromotionRule(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCouponCodesPromotionRule) { + o.CouponCodesPromotionRule = &v +} + +// GetCustomPromotionRule returns the CustomPromotionRule field value if set, zero value otherwise. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetCustomPromotionRule() POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule { + if o == nil || IsNil(o.CustomPromotionRule) { + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule + return ret + } + return *o.CustomPromotionRule +} + +// GetCustomPromotionRuleOk returns a tuple with the CustomPromotionRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetCustomPromotionRuleOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule, bool) { + if o == nil || IsNil(o.CustomPromotionRule) { + return nil, false + } + return o.CustomPromotionRule, true +} + +// HasCustomPromotionRule returns a boolean if a field has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasCustomPromotionRule() bool { + if o != nil && !IsNil(o.CustomPromotionRule) { + return true + } + + return false +} + +// SetCustomPromotionRule gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule and assigns it to the CustomPromotionRule field. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetCustomPromotionRule(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCustomPromotionRule) { + o.CustomPromotionRule = &v +} + +// GetSkuList returns the SkuList field value if set, zero value otherwise. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetSkuList() POSTBundles201ResponseDataRelationshipsSkuList { + if o == nil || IsNil(o.SkuList) { + var ret POSTBundles201ResponseDataRelationshipsSkuList + return ret + } + return *o.SkuList +} + +// GetSkuListOk returns a tuple with the SkuList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetSkuListOk() (*POSTBundles201ResponseDataRelationshipsSkuList, bool) { + if o == nil || IsNil(o.SkuList) { + return nil, false + } + return o.SkuList, true +} + +// HasSkuList returns a boolean if a field has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasSkuList() bool { + if o != nil && !IsNil(o.SkuList) { + return true + } + + return false +} + +// SetSkuList gets a reference to the given POSTBundles201ResponseDataRelationshipsSkuList and assigns it to the SkuList field. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetSkuList(v POSTBundles201ResponseDataRelationshipsSkuList) { + o.SkuList = &v +} + +// GetCoupons returns the Coupons field value if set, zero value otherwise. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetCoupons() POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons { + if o == nil || IsNil(o.Coupons) { + var ret POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons + return ret + } + return *o.Coupons +} + +// GetCouponsOk returns a tuple with the Coupons field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetCouponsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons, bool) { + if o == nil || IsNil(o.Coupons) { + return nil, false + } + return o.Coupons, true +} + +// HasCoupons returns a boolean if a field has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasCoupons() bool { + if o != nil && !IsNil(o.Coupons) { + return true + } + + return false +} + +// SetCoupons gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons and assigns it to the Coupons field. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetCoupons(v POSTBuyXPayYPromotions201ResponseDataRelationshipsCoupons) { + o.Coupons = &v +} + +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { + o.Attachments = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret POSTAddresses201ResponseDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given POSTAddresses201ResponseDataRelationshipsTags and assigns it to the Tags field. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTFreeShippingPromotions201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + +func (o POSTFreeShippingPromotions201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTFreeShippingPromotions201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Market) { + toSerialize["market"] = o.Market + } + if !IsNil(o.PromotionRules) { + toSerialize["promotion_rules"] = o.PromotionRules + } + if !IsNil(o.OrderAmountPromotionRule) { + toSerialize["order_amount_promotion_rule"] = o.OrderAmountPromotionRule + } + if !IsNil(o.SkuListPromotionRule) { + toSerialize["sku_list_promotion_rule"] = o.SkuListPromotionRule + } + if !IsNil(o.CouponCodesPromotionRule) { + toSerialize["coupon_codes_promotion_rule"] = o.CouponCodesPromotionRule + } + if !IsNil(o.CustomPromotionRule) { + toSerialize["custom_promotion_rule"] = o.CustomPromotionRule + } + if !IsNil(o.SkuList) { + toSerialize["sku_list"] = o.SkuList + } + if !IsNil(o.Coupons) { + toSerialize["coupons"] = o.Coupons + } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullablePOSTFreeShippingPromotions201ResponseDataRelationships struct { + value *POSTFreeShippingPromotions201ResponseDataRelationships + isSet bool +} + +func (v NullablePOSTFreeShippingPromotions201ResponseDataRelationships) Get() *POSTFreeShippingPromotions201ResponseDataRelationships { + return v.value +} + +func (v *NullablePOSTFreeShippingPromotions201ResponseDataRelationships) Set(val *POSTFreeShippingPromotions201ResponseDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTFreeShippingPromotions201ResponseDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTFreeShippingPromotions201ResponseDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTFreeShippingPromotions201ResponseDataRelationships(val *POSTFreeShippingPromotions201ResponseDataRelationships) *NullablePOSTFreeShippingPromotions201ResponseDataRelationships { + return &NullablePOSTFreeShippingPromotions201ResponseDataRelationships{value: val, isSet: true} +} + +func (v NullablePOSTFreeShippingPromotions201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTFreeShippingPromotions201ResponseDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_gift_card_recipients_201_response.go b/api/model_post_gift_card_recipients_201_response.go index 15fe0ee8..a56efc00 100644 --- a/api/model_post_gift_card_recipients_201_response.go +++ b/api/model_post_gift_card_recipients_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_gift_card_recipients_201_response_data.go b/api/model_post_gift_card_recipients_201_response_data.go index a3eb7b18..c842567f 100644 --- a/api/model_post_gift_card_recipients_201_response_data.go +++ b/api/model_post_gift_card_recipients_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_gift_cards_201_response.go b/api/model_post_gift_cards_201_response.go index bd318357..26ba9bde 100644 --- a/api/model_post_gift_cards_201_response.go +++ b/api/model_post_gift_cards_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_gift_cards_201_response_data.go b/api/model_post_gift_cards_201_response_data.go index c09eaba2..c178eaab 100644 --- a/api/model_post_gift_cards_201_response_data.go +++ b/api/model_post_gift_cards_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_gift_cards_201_response_data_attributes.go b/api/model_post_gift_cards_201_response_data_attributes.go index 8477b592..d5c1cf50 100644 --- a/api/model_post_gift_cards_201_response_data_attributes.go +++ b/api/model_post_gift_cards_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -32,6 +32,8 @@ type POSTGiftCards201ResponseDataAttributes struct { SingleUse interface{} `json:"single_use,omitempty"` // Indicates if the gift card can be recharged. Rechargeable interface{} `json:"rechargeable,omitempty"` + // Indicates if redeemed gift card amount is distributed for tax calculation. + DistributeDiscount interface{} `json:"distribute_discount,omitempty"` // The URL of an image that represents the gift card. ImageUrl interface{} `json:"image_url,omitempty"` // Time at which the gift card will expire. @@ -40,7 +42,7 @@ type POSTGiftCards201ResponseDataAttributes struct { RecipientEmail interface{} `json:"recipient_email,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -255,6 +257,39 @@ func (o *POSTGiftCards201ResponseDataAttributes) SetRechargeable(v interface{}) o.Rechargeable = v } +// GetDistributeDiscount returns the DistributeDiscount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTGiftCards201ResponseDataAttributes) GetDistributeDiscount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DistributeDiscount +} + +// GetDistributeDiscountOk returns a tuple with the DistributeDiscount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTGiftCards201ResponseDataAttributes) GetDistributeDiscountOk() (*interface{}, bool) { + if o == nil || IsNil(o.DistributeDiscount) { + return nil, false + } + return &o.DistributeDiscount, true +} + +// HasDistributeDiscount returns a boolean if a field has been set. +func (o *POSTGiftCards201ResponseDataAttributes) HasDistributeDiscount() bool { + if o != nil && IsNil(o.DistributeDiscount) { + return true + } + + return false +} + +// SetDistributeDiscount gets a reference to the given interface{} and assigns it to the DistributeDiscount field. +func (o *POSTGiftCards201ResponseDataAttributes) SetDistributeDiscount(v interface{}) { + o.DistributeDiscount = v +} + // GetImageUrl returns the ImageUrl field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTGiftCards201ResponseDataAttributes) GetImageUrl() interface{} { if o == nil { @@ -481,6 +516,9 @@ func (o POSTGiftCards201ResponseDataAttributes) ToMap() (map[string]interface{}, if o.Rechargeable != nil { toSerialize["rechargeable"] = o.Rechargeable } + if o.DistributeDiscount != nil { + toSerialize["distribute_discount"] = o.DistributeDiscount + } if o.ImageUrl != nil { toSerialize["image_url"] = o.ImageUrl } diff --git a/api/model_post_gift_cards_201_response_data_relationships.go b/api/model_post_gift_cards_201_response_data_relationships.go index 297e0b91..c9984703 100644 --- a/api/model_post_gift_cards_201_response_data_relationships.go +++ b/api/model_post_gift_cards_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,10 +20,12 @@ var _ MappedNullable = &POSTGiftCards201ResponseDataRelationships{} // POSTGiftCards201ResponseDataRelationships struct for POSTGiftCards201ResponseDataRelationships type POSTGiftCards201ResponseDataRelationships struct { - Market *POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket `json:"market,omitempty"` - GiftCardRecipient *POSTGiftCards201ResponseDataRelationshipsGiftCardRecipient `json:"gift_card_recipient,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` + Market *POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket `json:"market,omitempty"` + GiftCardRecipient *POSTGiftCards201ResponseDataRelationshipsGiftCardRecipient `json:"gift_card_recipient,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Tags *POSTAddresses201ResponseDataRelationshipsTags `json:"tags,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTGiftCards201ResponseDataRelationships instantiates a new POSTGiftCards201ResponseDataRelationships object @@ -108,9 +110,9 @@ func (o *POSTGiftCards201ResponseDataRelationships) SetGiftCardRecipient(v POSTG } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTGiftCards201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTGiftCards201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -118,7 +120,7 @@ func (o *POSTGiftCards201ResponseDataRelationships) GetAttachments() POSTAvalara // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTGiftCards201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTGiftCards201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -134,15 +136,15 @@ func (o *POSTGiftCards201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTGiftCards201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTGiftCards201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *POSTGiftCards201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { +func (o *POSTGiftCards201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents + var ret POSTAddresses201ResponseDataRelationshipsEvents return ret } return *o.Events @@ -150,7 +152,7 @@ func (o *POSTGiftCards201ResponseDataRelationships) GetEvents() GETAuthorization // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTGiftCards201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { +func (o *POSTGiftCards201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -166,11 +168,75 @@ func (o *POSTGiftCards201ResponseDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *POSTGiftCards201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTGiftCards201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { o.Events = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *POSTGiftCards201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret POSTAddresses201ResponseDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTGiftCards201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *POSTGiftCards201ResponseDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given POSTAddresses201ResponseDataRelationshipsTags and assigns it to the Tags field. +func (o *POSTGiftCards201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTGiftCards201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTGiftCards201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTGiftCards201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTGiftCards201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTGiftCards201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -193,6 +259,12 @@ func (o POSTGiftCards201ResponseDataRelationships) ToMap() (map[string]interface if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_gift_cards_201_response_data_relationships_gift_card_recipient.go b/api/model_post_gift_cards_201_response_data_relationships_gift_card_recipient.go index 923af65d..438b4984 100644 --- a/api/model_post_gift_cards_201_response_data_relationships_gift_card_recipient.go +++ b/api/model_post_gift_cards_201_response_data_relationships_gift_card_recipient.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_gift_cards_201_response_data_relationships_gift_card_recipient_data.go b/api/model_post_gift_cards_201_response_data_relationships_gift_card_recipient_data.go index deada21e..8ff6ff82 100644 --- a/api/model_post_gift_cards_201_response_data_relationships_gift_card_recipient_data.go +++ b/api/model_post_gift_cards_201_response_data_relationships_gift_card_recipient_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_google_geocoders_201_response.go b/api/model_post_google_geocoders_201_response.go index a90bc39b..5ba22507 100644 --- a/api/model_post_google_geocoders_201_response.go +++ b/api/model_post_google_geocoders_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_google_geocoders_201_response_data.go b/api/model_post_google_geocoders_201_response_data.go index e47d927a..60014361 100644 --- a/api/model_post_google_geocoders_201_response_data.go +++ b/api/model_post_google_geocoders_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_google_geocoders_201_response_data_attributes.go b/api/model_post_google_geocoders_201_response_data_attributes.go index 1f3035cf..2301aed3 100644 --- a/api/model_post_google_geocoders_201_response_data_attributes.go +++ b/api/model_post_google_geocoders_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,15 +20,15 @@ var _ MappedNullable = &POSTGoogleGeocoders201ResponseDataAttributes{} // POSTGoogleGeocoders201ResponseDataAttributes struct for POSTGoogleGeocoders201ResponseDataAttributes type POSTGoogleGeocoders201ResponseDataAttributes struct { - // The geocoder's internal name + // The geocoder's internal name. Name interface{} `json:"name"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` - // The Google Map API key + // The Google Map API key. ApiKey interface{} `json:"api_key"` } diff --git a/api/model_post_imports_201_response.go b/api/model_post_imports_201_response.go index 97728595..2fbbbcea 100644 --- a/api/model_post_imports_201_response.go +++ b/api/model_post_imports_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_imports_201_response_data.go b/api/model_post_imports_201_response_data.go index 23abe354..09474dd4 100644 --- a/api/model_post_imports_201_response_data.go +++ b/api/model_post_imports_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type POSTImports201ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *POSTImports201ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTCleanups201ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTImports201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTExports201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPOSTImports201ResponseData instantiates a new POSTImports201ResponseData object @@ -177,9 +177,9 @@ func (o *POSTImports201ResponseData) SetAttributes(v POSTImports201ResponseDataA } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *POSTImports201ResponseData) GetRelationships() POSTCleanups201ResponseDataRelationships { +func (o *POSTImports201ResponseData) GetRelationships() POSTExports201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTCleanups201ResponseDataRelationships + var ret POSTExports201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *POSTImports201ResponseData) GetRelationships() POSTCleanups201ResponseD // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTImports201ResponseData) GetRelationshipsOk() (*POSTCleanups201ResponseDataRelationships, bool) { +func (o *POSTImports201ResponseData) GetRelationshipsOk() (*POSTExports201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *POSTImports201ResponseData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given POSTCleanups201ResponseDataRelationships and assigns it to the Relationships field. -func (o *POSTImports201ResponseData) SetRelationships(v POSTCleanups201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTExports201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTImports201ResponseData) SetRelationships(v POSTExports201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_post_imports_201_response_data_attributes.go b/api/model_post_imports_201_response_data_attributes.go index ac3c1641..345fb106 100644 --- a/api/model_post_imports_201_response_data_attributes.go +++ b/api/model_post_imports_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,11 +28,9 @@ type POSTImports201ResponseDataAttributes struct { ParentResourceId interface{} `json:"parent_resource_id,omitempty"` // Array of objects representing the resources that are being imported. Inputs interface{} `json:"inputs"` - // Indicates if the import should cleanup records that are not included in the inputs array. - CleanupRecords interface{} `json:"cleanup_records,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -175,39 +173,6 @@ func (o *POSTImports201ResponseDataAttributes) SetInputs(v interface{}) { o.Inputs = v } -// GetCleanupRecords returns the CleanupRecords field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTImports201ResponseDataAttributes) GetCleanupRecords() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.CleanupRecords -} - -// GetCleanupRecordsOk returns a tuple with the CleanupRecords field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTImports201ResponseDataAttributes) GetCleanupRecordsOk() (*interface{}, bool) { - if o == nil || IsNil(o.CleanupRecords) { - return nil, false - } - return &o.CleanupRecords, true -} - -// HasCleanupRecords returns a boolean if a field has been set. -func (o *POSTImports201ResponseDataAttributes) HasCleanupRecords() bool { - if o != nil && IsNil(o.CleanupRecords) { - return true - } - - return false -} - -// SetCleanupRecords gets a reference to the given interface{} and assigns it to the CleanupRecords field. -func (o *POSTImports201ResponseDataAttributes) SetCleanupRecords(v interface{}) { - o.CleanupRecords = v -} - // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTImports201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -329,9 +294,6 @@ func (o POSTImports201ResponseDataAttributes) ToMap() (map[string]interface{}, e if o.Inputs != nil { toSerialize["inputs"] = o.Inputs } - if o.CleanupRecords != nil { - toSerialize["cleanup_records"] = o.CleanupRecords - } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_in_stock_subscriptions_201_response.go b/api/model_post_in_stock_subscriptions_201_response.go index c4ef8385..cae5772a 100644 --- a/api/model_post_in_stock_subscriptions_201_response.go +++ b/api/model_post_in_stock_subscriptions_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_in_stock_subscriptions_201_response_data.go b/api/model_post_in_stock_subscriptions_201_response_data.go index 713d7b61..3b447265 100644 --- a/api/model_post_in_stock_subscriptions_201_response_data.go +++ b/api/model_post_in_stock_subscriptions_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_in_stock_subscriptions_201_response_data_attributes.go b/api/model_post_in_stock_subscriptions_201_response_data_attributes.go index 38ef194d..fe803867 100644 --- a/api/model_post_in_stock_subscriptions_201_response_data_attributes.go +++ b/api/model_post_in_stock_subscriptions_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,15 +20,15 @@ var _ MappedNullable = &POSTInStockSubscriptions201ResponseDataAttributes{} // POSTInStockSubscriptions201ResponseDataAttributes struct for POSTInStockSubscriptions201ResponseDataAttributes type POSTInStockSubscriptions201ResponseDataAttributes struct { - // The email of the associated customer, replace the relationship + // The email of the associated customer, replace the relationship. CustomerEmail interface{} `json:"customer_email,omitempty"` - // The code of the associated SKU, replace the relationship + // The code of the associated SKU, replace the relationship. SkuCode interface{} `json:"sku_code,omitempty"` // The threshold at which to trigger the back in stock notification. StockThreshold interface{} `json:"stock_threshold,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_in_stock_subscriptions_201_response_data_relationships.go b/api/model_post_in_stock_subscriptions_201_response_data_relationships.go index 714ffdf7..31acdc35 100644 --- a/api/model_post_in_stock_subscriptions_201_response_data_relationships.go +++ b/api/model_post_in_stock_subscriptions_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,10 +20,11 @@ var _ MappedNullable = &POSTInStockSubscriptions201ResponseDataRelationships{} // POSTInStockSubscriptions201ResponseDataRelationships struct for POSTInStockSubscriptions201ResponseDataRelationships type POSTInStockSubscriptions201ResponseDataRelationships struct { - Market *POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket `json:"market,omitempty"` - Customer *POSTCouponRecipients201ResponseDataRelationshipsCustomer `json:"customer,omitempty"` - Sku *POSTInStockSubscriptions201ResponseDataRelationshipsSku `json:"sku,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` + Market *POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket `json:"market,omitempty"` + Customer *POSTCouponRecipients201ResponseDataRelationshipsCustomer `json:"customer,omitempty"` + Sku *POSTInStockSubscriptions201ResponseDataRelationshipsSku `json:"sku,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTInStockSubscriptions201ResponseDataRelationships instantiates a new POSTInStockSubscriptions201ResponseDataRelationships object @@ -140,9 +141,9 @@ func (o *POSTInStockSubscriptions201ResponseDataRelationships) SetSku(v POSTInSt } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *POSTInStockSubscriptions201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { +func (o *POSTInStockSubscriptions201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents + var ret POSTAddresses201ResponseDataRelationshipsEvents return ret } return *o.Events @@ -150,7 +151,7 @@ func (o *POSTInStockSubscriptions201ResponseDataRelationships) GetEvents() GETAu // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTInStockSubscriptions201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { +func (o *POSTInStockSubscriptions201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -166,11 +167,43 @@ func (o *POSTInStockSubscriptions201ResponseDataRelationships) HasEvents() bool return false } -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *POSTInStockSubscriptions201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTInStockSubscriptions201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { o.Events = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTInStockSubscriptions201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTInStockSubscriptions201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTInStockSubscriptions201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTInStockSubscriptions201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTInStockSubscriptions201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -193,6 +226,9 @@ func (o POSTInStockSubscriptions201ResponseDataRelationships) ToMap() (map[strin if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_in_stock_subscriptions_201_response_data_relationships_sku.go b/api/model_post_in_stock_subscriptions_201_response_data_relationships_sku.go index 8e317b5d..4f005467 100644 --- a/api/model_post_in_stock_subscriptions_201_response_data_relationships_sku.go +++ b/api/model_post_in_stock_subscriptions_201_response_data_relationships_sku.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_in_stock_subscriptions_201_response_data_relationships_sku_data.go b/api/model_post_in_stock_subscriptions_201_response_data_relationships_sku_data.go index 30699118..1301f2e1 100644 --- a/api/model_post_in_stock_subscriptions_201_response_data_relationships_sku_data.go +++ b/api/model_post_in_stock_subscriptions_201_response_data_relationships_sku_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_inventory_models_201_response.go b/api/model_post_inventory_models_201_response.go index 9396bd3d..8cca0f3a 100644 --- a/api/model_post_inventory_models_201_response.go +++ b/api/model_post_inventory_models_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_inventory_models_201_response_data.go b/api/model_post_inventory_models_201_response_data.go index 28278076..d39be4ed 100644 --- a/api/model_post_inventory_models_201_response_data.go +++ b/api/model_post_inventory_models_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_inventory_models_201_response_data_attributes.go b/api/model_post_inventory_models_201_response_data_attributes.go index 6c60d66a..c701dab8 100644 --- a/api/model_post_inventory_models_201_response_data_attributes.go +++ b/api/model_post_inventory_models_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,11 +24,17 @@ type POSTInventoryModels201ResponseDataAttributes struct { Name interface{} `json:"name"` // The inventory model's shipping strategy: one between 'no_split' (default), 'split_shipments', 'ship_from_primary' and 'ship_from_first_available_or_primary'. Strategy interface{} `json:"strategy,omitempty"` - // The maximum number of stock locations used for inventory computation + // The maximum number of stock locations used for inventory computation. StockLocationsCutoff interface{} `json:"stock_locations_cutoff,omitempty"` + // The duration in seconds of the generated stock reservations. + StockReservationCutoff interface{} `json:"stock_reservation_cutoff,omitempty"` + // Indicates if the the stock transfers must be put on hold automatically with the associated shipment. + PutStockTransfersOnHold interface{} `json:"put_stock_transfers_on_hold,omitempty"` + // Indicates if the the stock will be decremented manually after the order approval. + ManualStockDecrement interface{} `json:"manual_stock_decrement,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -144,6 +150,105 @@ func (o *POSTInventoryModels201ResponseDataAttributes) SetStockLocationsCutoff(v o.StockLocationsCutoff = v } +// GetStockReservationCutoff returns the StockReservationCutoff field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTInventoryModels201ResponseDataAttributes) GetStockReservationCutoff() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.StockReservationCutoff +} + +// GetStockReservationCutoffOk returns a tuple with the StockReservationCutoff field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTInventoryModels201ResponseDataAttributes) GetStockReservationCutoffOk() (*interface{}, bool) { + if o == nil || IsNil(o.StockReservationCutoff) { + return nil, false + } + return &o.StockReservationCutoff, true +} + +// HasStockReservationCutoff returns a boolean if a field has been set. +func (o *POSTInventoryModels201ResponseDataAttributes) HasStockReservationCutoff() bool { + if o != nil && IsNil(o.StockReservationCutoff) { + return true + } + + return false +} + +// SetStockReservationCutoff gets a reference to the given interface{} and assigns it to the StockReservationCutoff field. +func (o *POSTInventoryModels201ResponseDataAttributes) SetStockReservationCutoff(v interface{}) { + o.StockReservationCutoff = v +} + +// GetPutStockTransfersOnHold returns the PutStockTransfersOnHold field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTInventoryModels201ResponseDataAttributes) GetPutStockTransfersOnHold() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PutStockTransfersOnHold +} + +// GetPutStockTransfersOnHoldOk returns a tuple with the PutStockTransfersOnHold field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTInventoryModels201ResponseDataAttributes) GetPutStockTransfersOnHoldOk() (*interface{}, bool) { + if o == nil || IsNil(o.PutStockTransfersOnHold) { + return nil, false + } + return &o.PutStockTransfersOnHold, true +} + +// HasPutStockTransfersOnHold returns a boolean if a field has been set. +func (o *POSTInventoryModels201ResponseDataAttributes) HasPutStockTransfersOnHold() bool { + if o != nil && IsNil(o.PutStockTransfersOnHold) { + return true + } + + return false +} + +// SetPutStockTransfersOnHold gets a reference to the given interface{} and assigns it to the PutStockTransfersOnHold field. +func (o *POSTInventoryModels201ResponseDataAttributes) SetPutStockTransfersOnHold(v interface{}) { + o.PutStockTransfersOnHold = v +} + +// GetManualStockDecrement returns the ManualStockDecrement field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTInventoryModels201ResponseDataAttributes) GetManualStockDecrement() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ManualStockDecrement +} + +// GetManualStockDecrementOk returns a tuple with the ManualStockDecrement field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTInventoryModels201ResponseDataAttributes) GetManualStockDecrementOk() (*interface{}, bool) { + if o == nil || IsNil(o.ManualStockDecrement) { + return nil, false + } + return &o.ManualStockDecrement, true +} + +// HasManualStockDecrement returns a boolean if a field has been set. +func (o *POSTInventoryModels201ResponseDataAttributes) HasManualStockDecrement() bool { + if o != nil && IsNil(o.ManualStockDecrement) { + return true + } + + return false +} + +// SetManualStockDecrement gets a reference to the given interface{} and assigns it to the ManualStockDecrement field. +func (o *POSTInventoryModels201ResponseDataAttributes) SetManualStockDecrement(v interface{}) { + o.ManualStockDecrement = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTInventoryModels201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -262,6 +367,15 @@ func (o POSTInventoryModels201ResponseDataAttributes) ToMap() (map[string]interf if o.StockLocationsCutoff != nil { toSerialize["stock_locations_cutoff"] = o.StockLocationsCutoff } + if o.StockReservationCutoff != nil { + toSerialize["stock_reservation_cutoff"] = o.StockReservationCutoff + } + if o.PutStockTransfersOnHold != nil { + toSerialize["put_stock_transfers_on_hold"] = o.PutStockTransfersOnHold + } + if o.ManualStockDecrement != nil { + toSerialize["manual_stock_decrement"] = o.ManualStockDecrement + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_inventory_models_201_response_data_relationships.go b/api/model_post_inventory_models_201_response_data_relationships.go index 63ebc95d..53b51edb 100644 --- a/api/model_post_inventory_models_201_response_data_relationships.go +++ b/api/model_post_inventory_models_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,7 +22,8 @@ var _ MappedNullable = &POSTInventoryModels201ResponseDataRelationships{} type POSTInventoryModels201ResponseDataRelationships struct { InventoryStockLocations *POSTInventoryModels201ResponseDataRelationshipsInventoryStockLocations `json:"inventory_stock_locations,omitempty"` InventoryReturnLocations *POSTInventoryModels201ResponseDataRelationshipsInventoryReturnLocations `json:"inventory_return_locations,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTInventoryModels201ResponseDataRelationships instantiates a new POSTInventoryModels201ResponseDataRelationships object @@ -107,9 +108,9 @@ func (o *POSTInventoryModels201ResponseDataRelationships) SetInventoryReturnLoca } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTInventoryModels201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTInventoryModels201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -117,7 +118,7 @@ func (o *POSTInventoryModels201ResponseDataRelationships) GetAttachments() POSTA // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTInventoryModels201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTInventoryModels201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -133,11 +134,43 @@ func (o *POSTInventoryModels201ResponseDataRelationships) HasAttachments() bool return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTInventoryModels201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTInventoryModels201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTInventoryModels201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTInventoryModels201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTInventoryModels201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTInventoryModels201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTInventoryModels201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -157,6 +190,9 @@ func (o POSTInventoryModels201ResponseDataRelationships) ToMap() (map[string]int if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_inventory_models_201_response_data_relationships_inventory_return_locations.go b/api/model_post_inventory_models_201_response_data_relationships_inventory_return_locations.go index a6fe648e..32d6a59f 100644 --- a/api/model_post_inventory_models_201_response_data_relationships_inventory_return_locations.go +++ b/api/model_post_inventory_models_201_response_data_relationships_inventory_return_locations.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_inventory_models_201_response_data_relationships_inventory_return_locations_data.go b/api/model_post_inventory_models_201_response_data_relationships_inventory_return_locations_data.go index b8d742ab..9527f16e 100644 --- a/api/model_post_inventory_models_201_response_data_relationships_inventory_return_locations_data.go +++ b/api/model_post_inventory_models_201_response_data_relationships_inventory_return_locations_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_inventory_models_201_response_data_relationships_inventory_stock_locations.go b/api/model_post_inventory_models_201_response_data_relationships_inventory_stock_locations.go index 9e34f49a..49d22ec8 100644 --- a/api/model_post_inventory_models_201_response_data_relationships_inventory_stock_locations.go +++ b/api/model_post_inventory_models_201_response_data_relationships_inventory_stock_locations.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_inventory_models_201_response_data_relationships_inventory_stock_locations_data.go b/api/model_post_inventory_models_201_response_data_relationships_inventory_stock_locations_data.go index 37ab12e9..6db67846 100644 --- a/api/model_post_inventory_models_201_response_data_relationships_inventory_stock_locations_data.go +++ b/api/model_post_inventory_models_201_response_data_relationships_inventory_stock_locations_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_inventory_return_locations_201_response.go b/api/model_post_inventory_return_locations_201_response.go index 224d65bd..3a0be37f 100644 --- a/api/model_post_inventory_return_locations_201_response.go +++ b/api/model_post_inventory_return_locations_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_inventory_return_locations_201_response_data.go b/api/model_post_inventory_return_locations_201_response_data.go index 6cdaada2..471a084a 100644 --- a/api/model_post_inventory_return_locations_201_response_data.go +++ b/api/model_post_inventory_return_locations_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_inventory_return_locations_201_response_data_attributes.go b/api/model_post_inventory_return_locations_201_response_data_attributes.go index 26a7b2be..a678b1f6 100644 --- a/api/model_post_inventory_return_locations_201_response_data_attributes.go +++ b/api/model_post_inventory_return_locations_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type POSTInventoryReturnLocations201ResponseDataAttributes struct { Priority interface{} `json:"priority"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_inventory_return_locations_201_response_data_relationships.go b/api/model_post_inventory_return_locations_201_response_data_relationships.go index 76b15c99..e6440630 100644 --- a/api/model_post_inventory_return_locations_201_response_data_relationships.go +++ b/api/model_post_inventory_return_locations_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,6 +22,7 @@ var _ MappedNullable = &POSTInventoryReturnLocations201ResponseDataRelationships type POSTInventoryReturnLocations201ResponseDataRelationships struct { StockLocation *POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation `json:"stock_location,omitempty"` InventoryModel *POSTInventoryReturnLocations201ResponseDataRelationshipsInventoryModel `json:"inventory_model,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTInventoryReturnLocations201ResponseDataRelationships instantiates a new POSTInventoryReturnLocations201ResponseDataRelationships object @@ -105,6 +106,38 @@ func (o *POSTInventoryReturnLocations201ResponseDataRelationships) SetInventoryM o.InventoryModel = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTInventoryReturnLocations201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTInventoryReturnLocations201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTInventoryReturnLocations201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTInventoryReturnLocations201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTInventoryReturnLocations201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o POSTInventoryReturnLocations201ResponseDataRelationships) ToMap() (map[s if !IsNil(o.InventoryModel) { toSerialize["inventory_model"] = o.InventoryModel } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_inventory_return_locations_201_response_data_relationships_inventory_model.go b/api/model_post_inventory_return_locations_201_response_data_relationships_inventory_model.go index 896b4d36..2e052e32 100644 --- a/api/model_post_inventory_return_locations_201_response_data_relationships_inventory_model.go +++ b/api/model_post_inventory_return_locations_201_response_data_relationships_inventory_model.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_inventory_return_locations_201_response_data_relationships_inventory_model_data.go b/api/model_post_inventory_return_locations_201_response_data_relationships_inventory_model_data.go index 076fed9f..6f415af6 100644 --- a/api/model_post_inventory_return_locations_201_response_data_relationships_inventory_model_data.go +++ b/api/model_post_inventory_return_locations_201_response_data_relationships_inventory_model_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_inventory_stock_locations_201_response.go b/api/model_post_inventory_stock_locations_201_response.go index e46b0a4e..4a63548d 100644 --- a/api/model_post_inventory_stock_locations_201_response.go +++ b/api/model_post_inventory_stock_locations_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_inventory_stock_locations_201_response_data.go b/api/model_post_inventory_stock_locations_201_response_data.go index 0f2a508c..b8880340 100644 --- a/api/model_post_inventory_stock_locations_201_response_data.go +++ b/api/model_post_inventory_stock_locations_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_inventory_stock_locations_201_response_data_attributes.go b/api/model_post_inventory_stock_locations_201_response_data_attributes.go index fee3ecee..cb32de8b 100644 --- a/api/model_post_inventory_stock_locations_201_response_data_attributes.go +++ b/api/model_post_inventory_stock_locations_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type POSTInventoryStockLocations201ResponseDataAttributes struct { OnHold interface{} `json:"on_hold,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_klarna_gateways_201_response.go b/api/model_post_klarna_gateways_201_response.go index 2ec40ad0..4620ff1f 100644 --- a/api/model_post_klarna_gateways_201_response.go +++ b/api/model_post_klarna_gateways_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_klarna_gateways_201_response_data.go b/api/model_post_klarna_gateways_201_response_data.go index 4c712872..74b7e7a4 100644 --- a/api/model_post_klarna_gateways_201_response_data.go +++ b/api/model_post_klarna_gateways_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_klarna_gateways_201_response_data_attributes.go b/api/model_post_klarna_gateways_201_response_data_attributes.go index 14b3f402..3e72a412 100644 --- a/api/model_post_klarna_gateways_201_response_data_attributes.go +++ b/api/model_post_klarna_gateways_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type POSTKlarnaGateways201ResponseDataAttributes struct { Name interface{} `json:"name"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_klarna_gateways_201_response_data_relationships.go b/api/model_post_klarna_gateways_201_response_data_relationships.go index 13b721e2..ebf32422 100644 --- a/api/model_post_klarna_gateways_201_response_data_relationships.go +++ b/api/model_post_klarna_gateways_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &POSTKlarnaGateways201ResponseDataRelationships{} // POSTKlarnaGateways201ResponseDataRelationships struct for POSTKlarnaGateways201ResponseDataRelationships type POSTKlarnaGateways201ResponseDataRelationships struct { PaymentMethods *POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` KlarnaPayments *POSTKlarnaGateways201ResponseDataRelationshipsKlarnaPayments `json:"klarna_payments,omitempty"` } @@ -73,6 +74,38 @@ func (o *POSTKlarnaGateways201ResponseDataRelationships) SetPaymentMethods(v POS o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTKlarnaGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTKlarnaGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTKlarnaGateways201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTKlarnaGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + // GetKlarnaPayments returns the KlarnaPayments field value if set, zero value otherwise. func (o *POSTKlarnaGateways201ResponseDataRelationships) GetKlarnaPayments() POSTKlarnaGateways201ResponseDataRelationshipsKlarnaPayments { if o == nil || IsNil(o.KlarnaPayments) { @@ -118,6 +151,9 @@ func (o POSTKlarnaGateways201ResponseDataRelationships) ToMap() (map[string]inte if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.KlarnaPayments) { toSerialize["klarna_payments"] = o.KlarnaPayments } diff --git a/api/model_post_klarna_gateways_201_response_data_relationships_klarna_payments.go b/api/model_post_klarna_gateways_201_response_data_relationships_klarna_payments.go index d27ee2f8..8c91a1ea 100644 --- a/api/model_post_klarna_gateways_201_response_data_relationships_klarna_payments.go +++ b/api/model_post_klarna_gateways_201_response_data_relationships_klarna_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_klarna_gateways_201_response_data_relationships_klarna_payments_data.go b/api/model_post_klarna_gateways_201_response_data_relationships_klarna_payments_data.go index bbeac0ff..8b781799 100644 --- a/api/model_post_klarna_gateways_201_response_data_relationships_klarna_payments_data.go +++ b/api/model_post_klarna_gateways_201_response_data_relationships_klarna_payments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_klarna_payments_201_response.go b/api/model_post_klarna_payments_201_response.go index ee01009e..5b284735 100644 --- a/api/model_post_klarna_payments_201_response.go +++ b/api/model_post_klarna_payments_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_klarna_payments_201_response_data.go b/api/model_post_klarna_payments_201_response_data.go index adcdbbd4..5ee715db 100644 --- a/api/model_post_klarna_payments_201_response_data.go +++ b/api/model_post_klarna_payments_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_line_item_options_201_response.go b/api/model_post_line_item_options_201_response.go index 1006cc60..1a2629e0 100644 --- a/api/model_post_line_item_options_201_response.go +++ b/api/model_post_line_item_options_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_line_item_options_201_response_data.go b/api/model_post_line_item_options_201_response_data.go index 133992ee..7d076bb3 100644 --- a/api/model_post_line_item_options_201_response_data.go +++ b/api/model_post_line_item_options_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_line_item_options_201_response_data_attributes.go b/api/model_post_line_item_options_201_response_data_attributes.go index c77a32e0..f2a4c809 100644 --- a/api/model_post_line_item_options_201_response_data_attributes.go +++ b/api/model_post_line_item_options_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,13 +22,15 @@ var _ MappedNullable = &POSTLineItemOptions201ResponseDataAttributes{} type POSTLineItemOptions201ResponseDataAttributes struct { // The name of the line item option. When blank, it gets populated with the name of the associated SKU option. Name interface{} `json:"name,omitempty"` - // The line item option's quantity + // The line item option's quantity. Quantity interface{} `json:"quantity"` + // The unit amount of the line item option, in cents. When you add a line item option to an order, this is automatically populated from associated SKU option's price. Cannot be passed by sales channels. + UnitAmountCents interface{} `json:"unit_amount_cents,omitempty"` // Set of key-value pairs that represent the selected options. Options interface{} `json:"options"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -112,6 +114,39 @@ func (o *POSTLineItemOptions201ResponseDataAttributes) SetQuantity(v interface{} o.Quantity = v } +// GetUnitAmountCents returns the UnitAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLineItemOptions201ResponseDataAttributes) GetUnitAmountCents() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UnitAmountCents +} + +// GetUnitAmountCentsOk returns a tuple with the UnitAmountCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLineItemOptions201ResponseDataAttributes) GetUnitAmountCentsOk() (*interface{}, bool) { + if o == nil || IsNil(o.UnitAmountCents) { + return nil, false + } + return &o.UnitAmountCents, true +} + +// HasUnitAmountCents returns a boolean if a field has been set. +func (o *POSTLineItemOptions201ResponseDataAttributes) HasUnitAmountCents() bool { + if o != nil && IsNil(o.UnitAmountCents) { + return true + } + + return false +} + +// SetUnitAmountCents gets a reference to the given interface{} and assigns it to the UnitAmountCents field. +func (o *POSTLineItemOptions201ResponseDataAttributes) SetUnitAmountCents(v interface{}) { + o.UnitAmountCents = v +} + // GetOptions returns the Options field value // If the value is explicit nil, the zero value for interface{} will be returned func (o *POSTLineItemOptions201ResponseDataAttributes) GetOptions() interface{} { @@ -253,6 +288,9 @@ func (o POSTLineItemOptions201ResponseDataAttributes) ToMap() (map[string]interf if o.Quantity != nil { toSerialize["quantity"] = o.Quantity } + if o.UnitAmountCents != nil { + toSerialize["unit_amount_cents"] = o.UnitAmountCents + } if o.Options != nil { toSerialize["options"] = o.Options } diff --git a/api/model_post_line_item_options_201_response_data_relationships.go b/api/model_post_line_item_options_201_response_data_relationships.go index 3d5d4b46..70d0f6e3 100644 --- a/api/model_post_line_item_options_201_response_data_relationships.go +++ b/api/model_post_line_item_options_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,6 +22,8 @@ var _ MappedNullable = &POSTLineItemOptions201ResponseDataRelationships{} type POSTLineItemOptions201ResponseDataRelationships struct { LineItem *POSTLineItemOptions201ResponseDataRelationshipsLineItem `json:"line_item,omitempty"` SkuOption *POSTLineItemOptions201ResponseDataRelationshipsSkuOption `json:"sku_option,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Tags *POSTAddresses201ResponseDataRelationshipsTags `json:"tags,omitempty"` } // NewPOSTLineItemOptions201ResponseDataRelationships instantiates a new POSTLineItemOptions201ResponseDataRelationships object @@ -105,6 +107,70 @@ func (o *POSTLineItemOptions201ResponseDataRelationships) SetSkuOption(v POSTLin o.SkuOption = &v } +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *POSTLineItemOptions201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItemOptions201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *POSTLineItemOptions201ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTLineItemOptions201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *POSTLineItemOptions201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret POSTAddresses201ResponseDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItemOptions201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *POSTLineItemOptions201ResponseDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given POSTAddresses201ResponseDataRelationshipsTags and assigns it to the Tags field. +func (o *POSTLineItemOptions201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags) { + o.Tags = &v +} + func (o POSTLineItemOptions201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +187,12 @@ func (o POSTLineItemOptions201ResponseDataRelationships) ToMap() (map[string]int if !IsNil(o.SkuOption) { toSerialize["sku_option"] = o.SkuOption } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_post_line_item_options_201_response_data_relationships_line_item.go b/api/model_post_line_item_options_201_response_data_relationships_line_item.go index 8d2d6661..d7cc0f86 100644 --- a/api/model_post_line_item_options_201_response_data_relationships_line_item.go +++ b/api/model_post_line_item_options_201_response_data_relationships_line_item.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_line_item_options_201_response_data_relationships_line_item_data.go b/api/model_post_line_item_options_201_response_data_relationships_line_item_data.go index 5c12222a..487482bb 100644 --- a/api/model_post_line_item_options_201_response_data_relationships_line_item_data.go +++ b/api/model_post_line_item_options_201_response_data_relationships_line_item_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_line_item_options_201_response_data_relationships_sku_option.go b/api/model_post_line_item_options_201_response_data_relationships_sku_option.go index 15d1a948..76b46ee8 100644 --- a/api/model_post_line_item_options_201_response_data_relationships_sku_option.go +++ b/api/model_post_line_item_options_201_response_data_relationships_sku_option.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_line_item_options_201_response_data_relationships_sku_option_data.go b/api/model_post_line_item_options_201_response_data_relationships_sku_option_data.go index 45a54f5c..9af01069 100644 --- a/api/model_post_line_item_options_201_response_data_relationships_sku_option_data.go +++ b/api/model_post_line_item_options_201_response_data_relationships_sku_option_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_line_items_201_response.go b/api/model_post_line_items_201_response.go index 87e3cddd..ff10a660 100644 --- a/api/model_post_line_items_201_response.go +++ b/api/model_post_line_items_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_line_items_201_response_data.go b/api/model_post_line_items_201_response_data.go index c7abf0d3..185fa62e 100644 --- a/api/model_post_line_items_201_response_data.go +++ b/api/model_post_line_items_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_line_items_201_response_data_attributes.go b/api/model_post_line_items_201_response_data_attributes.go index 2b181d7c..61d3af21 100644 --- a/api/model_post_line_items_201_response_data_attributes.go +++ b/api/model_post_line_items_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,23 +26,27 @@ type POSTLineItems201ResponseDataAttributes struct { BundleCode interface{} `json:"bundle_code,omitempty"` // The line item quantity. Quantity interface{} `json:"quantity"` - // When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. + // When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'. ExternalPrice interface{} `json:"_external_price,omitempty"` // When creating a new line item, set this attribute to '1' if you want to update the line item quantity (if present) instead of creating a new line item for the same SKU. UpdateQuantity interface{} `json:"_update_quantity,omitempty"` - // The unit amount of the line item, in cents. Can be specified without an item, otherwise is automatically populated from the price list associated to the order's market. + // Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed. Cannot be passed by sales channels. + ReserveStock interface{} `json:"_reserve_stock,omitempty"` + // The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. UnitAmountCents interface{} `json:"unit_amount_cents,omitempty"` + // The compared price amount, in cents. Useful to display a percentage discount. + CompareAtAmountCents interface{} `json:"compare_at_amount_cents,omitempty"` // The name of the line item. When blank, it gets populated with the name of the associated item (if present). Name interface{} `json:"name,omitempty"` // The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only). ImageUrl interface{} `json:"image_url,omitempty"` - // The type of the associate item. Can be one of 'skus', 'bundles', 'shipments', 'payment_methods', 'adjustments', 'gift_cards', or a valid promotion type. + // The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'. ItemType interface{} `json:"item_type,omitempty"` // The frequency which generates a subscription. Must be supported by existing associated subscription_model. Frequency interface{} `json:"frequency,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -224,6 +228,39 @@ func (o *POSTLineItems201ResponseDataAttributes) SetUpdateQuantity(v interface{} o.UpdateQuantity = v } +// GetReserveStock returns the ReserveStock field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLineItems201ResponseDataAttributes) GetReserveStock() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReserveStock +} + +// GetReserveStockOk returns a tuple with the ReserveStock field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLineItems201ResponseDataAttributes) GetReserveStockOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReserveStock) { + return nil, false + } + return &o.ReserveStock, true +} + +// HasReserveStock returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataAttributes) HasReserveStock() bool { + if o != nil && IsNil(o.ReserveStock) { + return true + } + + return false +} + +// SetReserveStock gets a reference to the given interface{} and assigns it to the ReserveStock field. +func (o *POSTLineItems201ResponseDataAttributes) SetReserveStock(v interface{}) { + o.ReserveStock = v +} + // GetUnitAmountCents returns the UnitAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTLineItems201ResponseDataAttributes) GetUnitAmountCents() interface{} { if o == nil { @@ -257,6 +294,39 @@ func (o *POSTLineItems201ResponseDataAttributes) SetUnitAmountCents(v interface{ o.UnitAmountCents = v } +// GetCompareAtAmountCents returns the CompareAtAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLineItems201ResponseDataAttributes) GetCompareAtAmountCents() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.CompareAtAmountCents +} + +// GetCompareAtAmountCentsOk returns a tuple with the CompareAtAmountCents field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLineItems201ResponseDataAttributes) GetCompareAtAmountCentsOk() (*interface{}, bool) { + if o == nil || IsNil(o.CompareAtAmountCents) { + return nil, false + } + return &o.CompareAtAmountCents, true +} + +// HasCompareAtAmountCents returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataAttributes) HasCompareAtAmountCents() bool { + if o != nil && IsNil(o.CompareAtAmountCents) { + return true + } + + return false +} + +// SetCompareAtAmountCents gets a reference to the given interface{} and assigns it to the CompareAtAmountCents field. +func (o *POSTLineItems201ResponseDataAttributes) SetCompareAtAmountCents(v interface{}) { + o.CompareAtAmountCents = v +} + // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTLineItems201ResponseDataAttributes) GetName() interface{} { if o == nil { @@ -513,9 +583,15 @@ func (o POSTLineItems201ResponseDataAttributes) ToMap() (map[string]interface{}, if o.UpdateQuantity != nil { toSerialize["_update_quantity"] = o.UpdateQuantity } + if o.ReserveStock != nil { + toSerialize["_reserve_stock"] = o.ReserveStock + } if o.UnitAmountCents != nil { toSerialize["unit_amount_cents"] = o.UnitAmountCents } + if o.CompareAtAmountCents != nil { + toSerialize["compare_at_amount_cents"] = o.CompareAtAmountCents + } if o.Name != nil { toSerialize["name"] = o.Name } diff --git a/api/model_post_line_items_201_response_data_relationships.go b/api/model_post_line_items_201_response_data_relationships.go index b38defff..6ae06a91 100644 --- a/api/model_post_line_items_201_response_data_relationships.go +++ b/api/model_post_line_items_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,12 +20,21 @@ var _ MappedNullable = &POSTLineItems201ResponseDataRelationships{} // POSTLineItems201ResponseDataRelationships struct for POSTLineItems201ResponseDataRelationships type POSTLineItems201ResponseDataRelationships struct { - Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` - Item *POSTLineItems201ResponseDataRelationshipsItem `json:"item,omitempty"` - LineItemOptions *POSTLineItems201ResponseDataRelationshipsLineItemOptions `json:"line_item_options,omitempty"` - ShipmentLineItems *POSTLineItems201ResponseDataRelationshipsShipmentLineItems `json:"shipment_line_items,omitempty"` - StockLineItems *POSTLineItems201ResponseDataRelationshipsStockLineItems `json:"stock_line_items,omitempty"` - StockTransfers *POSTLineItems201ResponseDataRelationshipsStockTransfers `json:"stock_transfers,omitempty"` + Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` + Item *POSTLineItems201ResponseDataRelationshipsItem `json:"item,omitempty"` + Sku *POSTInStockSubscriptions201ResponseDataRelationshipsSku `json:"sku,omitempty"` + Bundle *POSTLineItems201ResponseDataRelationshipsBundle `json:"bundle,omitempty"` + Adjustment *POSTLineItems201ResponseDataRelationshipsAdjustment `json:"adjustment,omitempty"` + GiftCard *POSTLineItems201ResponseDataRelationshipsGiftCard `json:"gift_card,omitempty"` + Shipment *POSTLineItems201ResponseDataRelationshipsShipment `json:"shipment,omitempty"` + PaymentMethod *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod `json:"payment_method,omitempty"` + LineItemOptions *POSTLineItems201ResponseDataRelationshipsLineItemOptions `json:"line_item_options,omitempty"` + ReturnLineItems *POSTLineItems201ResponseDataRelationshipsReturnLineItems `json:"return_line_items,omitempty"` + StockReservations *POSTLineItems201ResponseDataRelationshipsStockReservations `json:"stock_reservations,omitempty"` + StockLineItems *POSTLineItems201ResponseDataRelationshipsStockLineItems `json:"stock_line_items,omitempty"` + StockTransfers *POSTLineItems201ResponseDataRelationshipsStockTransfers `json:"stock_transfers,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Tags *POSTAddresses201ResponseDataRelationshipsTags `json:"tags,omitempty"` } // NewPOSTLineItems201ResponseDataRelationships instantiates a new POSTLineItems201ResponseDataRelationships object @@ -109,6 +118,198 @@ func (o *POSTLineItems201ResponseDataRelationships) SetItem(v POSTLineItems201Re o.Item = &v } +// GetSku returns the Sku field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationships) GetSku() POSTInStockSubscriptions201ResponseDataRelationshipsSku { + if o == nil || IsNil(o.Sku) { + var ret POSTInStockSubscriptions201ResponseDataRelationshipsSku + return ret + } + return *o.Sku +} + +// GetSkuOk returns a tuple with the Sku field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationships) GetSkuOk() (*POSTInStockSubscriptions201ResponseDataRelationshipsSku, bool) { + if o == nil || IsNil(o.Sku) { + return nil, false + } + return o.Sku, true +} + +// HasSku returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationships) HasSku() bool { + if o != nil && !IsNil(o.Sku) { + return true + } + + return false +} + +// SetSku gets a reference to the given POSTInStockSubscriptions201ResponseDataRelationshipsSku and assigns it to the Sku field. +func (o *POSTLineItems201ResponseDataRelationships) SetSku(v POSTInStockSubscriptions201ResponseDataRelationshipsSku) { + o.Sku = &v +} + +// GetBundle returns the Bundle field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationships) GetBundle() POSTLineItems201ResponseDataRelationshipsBundle { + if o == nil || IsNil(o.Bundle) { + var ret POSTLineItems201ResponseDataRelationshipsBundle + return ret + } + return *o.Bundle +} + +// GetBundleOk returns a tuple with the Bundle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationships) GetBundleOk() (*POSTLineItems201ResponseDataRelationshipsBundle, bool) { + if o == nil || IsNil(o.Bundle) { + return nil, false + } + return o.Bundle, true +} + +// HasBundle returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationships) HasBundle() bool { + if o != nil && !IsNil(o.Bundle) { + return true + } + + return false +} + +// SetBundle gets a reference to the given POSTLineItems201ResponseDataRelationshipsBundle and assigns it to the Bundle field. +func (o *POSTLineItems201ResponseDataRelationships) SetBundle(v POSTLineItems201ResponseDataRelationshipsBundle) { + o.Bundle = &v +} + +// GetAdjustment returns the Adjustment field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationships) GetAdjustment() POSTLineItems201ResponseDataRelationshipsAdjustment { + if o == nil || IsNil(o.Adjustment) { + var ret POSTLineItems201ResponseDataRelationshipsAdjustment + return ret + } + return *o.Adjustment +} + +// GetAdjustmentOk returns a tuple with the Adjustment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationships) GetAdjustmentOk() (*POSTLineItems201ResponseDataRelationshipsAdjustment, bool) { + if o == nil || IsNil(o.Adjustment) { + return nil, false + } + return o.Adjustment, true +} + +// HasAdjustment returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationships) HasAdjustment() bool { + if o != nil && !IsNil(o.Adjustment) { + return true + } + + return false +} + +// SetAdjustment gets a reference to the given POSTLineItems201ResponseDataRelationshipsAdjustment and assigns it to the Adjustment field. +func (o *POSTLineItems201ResponseDataRelationships) SetAdjustment(v POSTLineItems201ResponseDataRelationshipsAdjustment) { + o.Adjustment = &v +} + +// GetGiftCard returns the GiftCard field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationships) GetGiftCard() POSTLineItems201ResponseDataRelationshipsGiftCard { + if o == nil || IsNil(o.GiftCard) { + var ret POSTLineItems201ResponseDataRelationshipsGiftCard + return ret + } + return *o.GiftCard +} + +// GetGiftCardOk returns a tuple with the GiftCard field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationships) GetGiftCardOk() (*POSTLineItems201ResponseDataRelationshipsGiftCard, bool) { + if o == nil || IsNil(o.GiftCard) { + return nil, false + } + return o.GiftCard, true +} + +// HasGiftCard returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationships) HasGiftCard() bool { + if o != nil && !IsNil(o.GiftCard) { + return true + } + + return false +} + +// SetGiftCard gets a reference to the given POSTLineItems201ResponseDataRelationshipsGiftCard and assigns it to the GiftCard field. +func (o *POSTLineItems201ResponseDataRelationships) SetGiftCard(v POSTLineItems201ResponseDataRelationshipsGiftCard) { + o.GiftCard = &v +} + +// GetShipment returns the Shipment field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationships) GetShipment() POSTLineItems201ResponseDataRelationshipsShipment { + if o == nil || IsNil(o.Shipment) { + var ret POSTLineItems201ResponseDataRelationshipsShipment + return ret + } + return *o.Shipment +} + +// GetShipmentOk returns a tuple with the Shipment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationships) GetShipmentOk() (*POSTLineItems201ResponseDataRelationshipsShipment, bool) { + if o == nil || IsNil(o.Shipment) { + return nil, false + } + return o.Shipment, true +} + +// HasShipment returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationships) HasShipment() bool { + if o != nil && !IsNil(o.Shipment) { + return true + } + + return false +} + +// SetShipment gets a reference to the given POSTLineItems201ResponseDataRelationshipsShipment and assigns it to the Shipment field. +func (o *POSTLineItems201ResponseDataRelationships) SetShipment(v POSTLineItems201ResponseDataRelationshipsShipment) { + o.Shipment = &v +} + +// GetPaymentMethod returns the PaymentMethod field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationships) GetPaymentMethod() POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod { + if o == nil || IsNil(o.PaymentMethod) { + var ret POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod + return ret + } + return *o.PaymentMethod +} + +// GetPaymentMethodOk returns a tuple with the PaymentMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationships) GetPaymentMethodOk() (*POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod, bool) { + if o == nil || IsNil(o.PaymentMethod) { + return nil, false + } + return o.PaymentMethod, true +} + +// HasPaymentMethod returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationships) HasPaymentMethod() bool { + if o != nil && !IsNil(o.PaymentMethod) { + return true + } + + return false +} + +// SetPaymentMethod gets a reference to the given POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod and assigns it to the PaymentMethod field. +func (o *POSTLineItems201ResponseDataRelationships) SetPaymentMethod(v POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) { + o.PaymentMethod = &v +} + // GetLineItemOptions returns the LineItemOptions field value if set, zero value otherwise. func (o *POSTLineItems201ResponseDataRelationships) GetLineItemOptions() POSTLineItems201ResponseDataRelationshipsLineItemOptions { if o == nil || IsNil(o.LineItemOptions) { @@ -141,36 +342,68 @@ func (o *POSTLineItems201ResponseDataRelationships) SetLineItemOptions(v POSTLin o.LineItemOptions = &v } -// GetShipmentLineItems returns the ShipmentLineItems field value if set, zero value otherwise. -func (o *POSTLineItems201ResponseDataRelationships) GetShipmentLineItems() POSTLineItems201ResponseDataRelationshipsShipmentLineItems { - if o == nil || IsNil(o.ShipmentLineItems) { - var ret POSTLineItems201ResponseDataRelationshipsShipmentLineItems +// GetReturnLineItems returns the ReturnLineItems field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationships) GetReturnLineItems() POSTLineItems201ResponseDataRelationshipsReturnLineItems { + if o == nil || IsNil(o.ReturnLineItems) { + var ret POSTLineItems201ResponseDataRelationshipsReturnLineItems return ret } - return *o.ShipmentLineItems + return *o.ReturnLineItems } -// GetShipmentLineItemsOk returns a tuple with the ShipmentLineItems field value if set, nil otherwise +// GetReturnLineItemsOk returns a tuple with the ReturnLineItems field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTLineItems201ResponseDataRelationships) GetShipmentLineItemsOk() (*POSTLineItems201ResponseDataRelationshipsShipmentLineItems, bool) { - if o == nil || IsNil(o.ShipmentLineItems) { +func (o *POSTLineItems201ResponseDataRelationships) GetReturnLineItemsOk() (*POSTLineItems201ResponseDataRelationshipsReturnLineItems, bool) { + if o == nil || IsNil(o.ReturnLineItems) { return nil, false } - return o.ShipmentLineItems, true + return o.ReturnLineItems, true } -// HasShipmentLineItems returns a boolean if a field has been set. -func (o *POSTLineItems201ResponseDataRelationships) HasShipmentLineItems() bool { - if o != nil && !IsNil(o.ShipmentLineItems) { +// HasReturnLineItems returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationships) HasReturnLineItems() bool { + if o != nil && !IsNil(o.ReturnLineItems) { return true } return false } -// SetShipmentLineItems gets a reference to the given POSTLineItems201ResponseDataRelationshipsShipmentLineItems and assigns it to the ShipmentLineItems field. -func (o *POSTLineItems201ResponseDataRelationships) SetShipmentLineItems(v POSTLineItems201ResponseDataRelationshipsShipmentLineItems) { - o.ShipmentLineItems = &v +// SetReturnLineItems gets a reference to the given POSTLineItems201ResponseDataRelationshipsReturnLineItems and assigns it to the ReturnLineItems field. +func (o *POSTLineItems201ResponseDataRelationships) SetReturnLineItems(v POSTLineItems201ResponseDataRelationshipsReturnLineItems) { + o.ReturnLineItems = &v +} + +// GetStockReservations returns the StockReservations field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationships) GetStockReservations() POSTLineItems201ResponseDataRelationshipsStockReservations { + if o == nil || IsNil(o.StockReservations) { + var ret POSTLineItems201ResponseDataRelationshipsStockReservations + return ret + } + return *o.StockReservations +} + +// GetStockReservationsOk returns a tuple with the StockReservations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationships) GetStockReservationsOk() (*POSTLineItems201ResponseDataRelationshipsStockReservations, bool) { + if o == nil || IsNil(o.StockReservations) { + return nil, false + } + return o.StockReservations, true +} + +// HasStockReservations returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationships) HasStockReservations() bool { + if o != nil && !IsNil(o.StockReservations) { + return true + } + + return false +} + +// SetStockReservations gets a reference to the given POSTLineItems201ResponseDataRelationshipsStockReservations and assigns it to the StockReservations field. +func (o *POSTLineItems201ResponseDataRelationships) SetStockReservations(v POSTLineItems201ResponseDataRelationshipsStockReservations) { + o.StockReservations = &v } // GetStockLineItems returns the StockLineItems field value if set, zero value otherwise. @@ -237,6 +470,70 @@ func (o *POSTLineItems201ResponseDataRelationships) SetStockTransfers(v POSTLine o.StockTransfers = &v } +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTLineItems201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret POSTAddresses201ResponseDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given POSTAddresses201ResponseDataRelationshipsTags and assigns it to the Tags field. +func (o *POSTLineItems201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags) { + o.Tags = &v +} + func (o POSTLineItems201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -253,11 +550,32 @@ func (o POSTLineItems201ResponseDataRelationships) ToMap() (map[string]interface if !IsNil(o.Item) { toSerialize["item"] = o.Item } + if !IsNil(o.Sku) { + toSerialize["sku"] = o.Sku + } + if !IsNil(o.Bundle) { + toSerialize["bundle"] = o.Bundle + } + if !IsNil(o.Adjustment) { + toSerialize["adjustment"] = o.Adjustment + } + if !IsNil(o.GiftCard) { + toSerialize["gift_card"] = o.GiftCard + } + if !IsNil(o.Shipment) { + toSerialize["shipment"] = o.Shipment + } + if !IsNil(o.PaymentMethod) { + toSerialize["payment_method"] = o.PaymentMethod + } if !IsNil(o.LineItemOptions) { toSerialize["line_item_options"] = o.LineItemOptions } - if !IsNil(o.ShipmentLineItems) { - toSerialize["shipment_line_items"] = o.ShipmentLineItems + if !IsNil(o.ReturnLineItems) { + toSerialize["return_line_items"] = o.ReturnLineItems + } + if !IsNil(o.StockReservations) { + toSerialize["stock_reservations"] = o.StockReservations } if !IsNil(o.StockLineItems) { toSerialize["stock_line_items"] = o.StockLineItems @@ -265,6 +583,12 @@ func (o POSTLineItems201ResponseDataRelationships) ToMap() (map[string]interface if !IsNil(o.StockTransfers) { toSerialize["stock_transfers"] = o.StockTransfers } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_post_line_items_201_response_data_relationships_adjustment.go b/api/model_post_line_items_201_response_data_relationships_adjustment.go new file mode 100644 index 00000000..bb1c8c5e --- /dev/null +++ b/api/model_post_line_items_201_response_data_relationships_adjustment.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTLineItems201ResponseDataRelationshipsAdjustment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTLineItems201ResponseDataRelationshipsAdjustment{} + +// POSTLineItems201ResponseDataRelationshipsAdjustment struct for POSTLineItems201ResponseDataRelationshipsAdjustment +type POSTLineItems201ResponseDataRelationshipsAdjustment struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTLineItems201ResponseDataRelationshipsAdjustmentData `json:"data,omitempty"` +} + +// NewPOSTLineItems201ResponseDataRelationshipsAdjustment instantiates a new POSTLineItems201ResponseDataRelationshipsAdjustment object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTLineItems201ResponseDataRelationshipsAdjustment() *POSTLineItems201ResponseDataRelationshipsAdjustment { + this := POSTLineItems201ResponseDataRelationshipsAdjustment{} + return &this +} + +// NewPOSTLineItems201ResponseDataRelationshipsAdjustmentWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsAdjustment object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTLineItems201ResponseDataRelationshipsAdjustmentWithDefaults() *POSTLineItems201ResponseDataRelationshipsAdjustment { + this := POSTLineItems201ResponseDataRelationshipsAdjustment{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationshipsAdjustment) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationshipsAdjustment) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsAdjustment) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTLineItems201ResponseDataRelationshipsAdjustment) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationshipsAdjustment) GetData() POSTLineItems201ResponseDataRelationshipsAdjustmentData { + if o == nil || IsNil(o.Data) { + var ret POSTLineItems201ResponseDataRelationshipsAdjustmentData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationshipsAdjustment) GetDataOk() (*POSTLineItems201ResponseDataRelationshipsAdjustmentData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsAdjustment) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTLineItems201ResponseDataRelationshipsAdjustmentData and assigns it to the Data field. +func (o *POSTLineItems201ResponseDataRelationshipsAdjustment) SetData(v POSTLineItems201ResponseDataRelationshipsAdjustmentData) { + o.Data = &v +} + +func (o POSTLineItems201ResponseDataRelationshipsAdjustment) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTLineItems201ResponseDataRelationshipsAdjustment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTLineItems201ResponseDataRelationshipsAdjustment struct { + value *POSTLineItems201ResponseDataRelationshipsAdjustment + isSet bool +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsAdjustment) Get() *POSTLineItems201ResponseDataRelationshipsAdjustment { + return v.value +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsAdjustment) Set(val *POSTLineItems201ResponseDataRelationshipsAdjustment) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsAdjustment) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsAdjustment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTLineItems201ResponseDataRelationshipsAdjustment(val *POSTLineItems201ResponseDataRelationshipsAdjustment) *NullablePOSTLineItems201ResponseDataRelationshipsAdjustment { + return &NullablePOSTLineItems201ResponseDataRelationshipsAdjustment{value: val, isSet: true} +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsAdjustment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsAdjustment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_orders_201_response_data_relationships_payment_method_data.go b/api/model_post_line_items_201_response_data_relationships_adjustment_data.go similarity index 50% rename from api/model_post_orders_201_response_data_relationships_payment_method_data.go rename to api/model_post_line_items_201_response_data_relationships_adjustment_data.go index 8b7fd9be..91d7dfea 100644 --- a/api/model_post_orders_201_response_data_relationships_payment_method_data.go +++ b/api/model_post_line_items_201_response_data_relationships_adjustment_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the POSTOrders201ResponseDataRelationshipsPaymentMethodData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTOrders201ResponseDataRelationshipsPaymentMethodData{} +// checks if the POSTLineItems201ResponseDataRelationshipsAdjustmentData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTLineItems201ResponseDataRelationshipsAdjustmentData{} -// POSTOrders201ResponseDataRelationshipsPaymentMethodData struct for POSTOrders201ResponseDataRelationshipsPaymentMethodData -type POSTOrders201ResponseDataRelationshipsPaymentMethodData struct { +// POSTLineItems201ResponseDataRelationshipsAdjustmentData struct for POSTLineItems201ResponseDataRelationshipsAdjustmentData +type POSTLineItems201ResponseDataRelationshipsAdjustmentData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource ID Id interface{} `json:"id,omitempty"` } -// NewPOSTOrders201ResponseDataRelationshipsPaymentMethodData instantiates a new POSTOrders201ResponseDataRelationshipsPaymentMethodData object +// NewPOSTLineItems201ResponseDataRelationshipsAdjustmentData instantiates a new POSTLineItems201ResponseDataRelationshipsAdjustmentData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTOrders201ResponseDataRelationshipsPaymentMethodData() *POSTOrders201ResponseDataRelationshipsPaymentMethodData { - this := POSTOrders201ResponseDataRelationshipsPaymentMethodData{} +func NewPOSTLineItems201ResponseDataRelationshipsAdjustmentData() *POSTLineItems201ResponseDataRelationshipsAdjustmentData { + this := POSTLineItems201ResponseDataRelationshipsAdjustmentData{} return &this } -// NewPOSTOrders201ResponseDataRelationshipsPaymentMethodDataWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsPaymentMethodData object +// NewPOSTLineItems201ResponseDataRelationshipsAdjustmentDataWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsAdjustmentData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewPOSTOrders201ResponseDataRelationshipsPaymentMethodDataWithDefaults() *POSTOrders201ResponseDataRelationshipsPaymentMethodData { - this := POSTOrders201ResponseDataRelationshipsPaymentMethodData{} +func NewPOSTLineItems201ResponseDataRelationshipsAdjustmentDataWithDefaults() *POSTLineItems201ResponseDataRelationshipsAdjustmentData { + this := POSTLineItems201ResponseDataRelationshipsAdjustmentData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) GetType() interface{} { +func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) GetType() inte // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) GetTypeOk() (*interface{}, bool) { +func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) GetTypeOk() (* } // HasType returns a boolean if a field has been set. -func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) HasType() bool { +func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) HasType() bool } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) SetType(v interface{}) { +func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) GetId() interface{} { +func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) GetId() interf // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) GetIdOk() (*interface{}, bool) { +func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) GetIdOk() (*in } // HasId returns a boolean if a field has been set. -func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) HasId() bool { +func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) HasId() bool { } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *POSTOrders201ResponseDataRelationshipsPaymentMethodData) SetId(v interface{}) { +func (o *POSTLineItems201ResponseDataRelationshipsAdjustmentData) SetId(v interface{}) { o.Id = v } -func (o POSTOrders201ResponseDataRelationshipsPaymentMethodData) MarshalJSON() ([]byte, error) { +func (o POSTLineItems201ResponseDataRelationshipsAdjustmentData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o POSTOrders201ResponseDataRelationshipsPaymentMethodData) MarshalJSON() ( return json.Marshal(toSerialize) } -func (o POSTOrders201ResponseDataRelationshipsPaymentMethodData) ToMap() (map[string]interface{}, error) { +func (o POSTLineItems201ResponseDataRelationshipsAdjustmentData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o POSTOrders201ResponseDataRelationshipsPaymentMethodData) ToMap() (map[st return toSerialize, nil } -type NullablePOSTOrders201ResponseDataRelationshipsPaymentMethodData struct { - value *POSTOrders201ResponseDataRelationshipsPaymentMethodData +type NullablePOSTLineItems201ResponseDataRelationshipsAdjustmentData struct { + value *POSTLineItems201ResponseDataRelationshipsAdjustmentData isSet bool } -func (v NullablePOSTOrders201ResponseDataRelationshipsPaymentMethodData) Get() *POSTOrders201ResponseDataRelationshipsPaymentMethodData { +func (v NullablePOSTLineItems201ResponseDataRelationshipsAdjustmentData) Get() *POSTLineItems201ResponseDataRelationshipsAdjustmentData { return v.value } -func (v *NullablePOSTOrders201ResponseDataRelationshipsPaymentMethodData) Set(val *POSTOrders201ResponseDataRelationshipsPaymentMethodData) { +func (v *NullablePOSTLineItems201ResponseDataRelationshipsAdjustmentData) Set(val *POSTLineItems201ResponseDataRelationshipsAdjustmentData) { v.value = val v.isSet = true } -func (v NullablePOSTOrders201ResponseDataRelationshipsPaymentMethodData) IsSet() bool { +func (v NullablePOSTLineItems201ResponseDataRelationshipsAdjustmentData) IsSet() bool { return v.isSet } -func (v *NullablePOSTOrders201ResponseDataRelationshipsPaymentMethodData) Unset() { +func (v *NullablePOSTLineItems201ResponseDataRelationshipsAdjustmentData) Unset() { v.value = nil v.isSet = false } -func NewNullablePOSTOrders201ResponseDataRelationshipsPaymentMethodData(val *POSTOrders201ResponseDataRelationshipsPaymentMethodData) *NullablePOSTOrders201ResponseDataRelationshipsPaymentMethodData { - return &NullablePOSTOrders201ResponseDataRelationshipsPaymentMethodData{value: val, isSet: true} +func NewNullablePOSTLineItems201ResponseDataRelationshipsAdjustmentData(val *POSTLineItems201ResponseDataRelationshipsAdjustmentData) *NullablePOSTLineItems201ResponseDataRelationshipsAdjustmentData { + return &NullablePOSTLineItems201ResponseDataRelationshipsAdjustmentData{value: val, isSet: true} } -func (v NullablePOSTOrders201ResponseDataRelationshipsPaymentMethodData) MarshalJSON() ([]byte, error) { +func (v NullablePOSTLineItems201ResponseDataRelationshipsAdjustmentData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePOSTOrders201ResponseDataRelationshipsPaymentMethodData) UnmarshalJSON(src []byte) error { +func (v *NullablePOSTLineItems201ResponseDataRelationshipsAdjustmentData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_post_line_items_201_response_data_relationships_bundle.go b/api/model_post_line_items_201_response_data_relationships_bundle.go new file mode 100644 index 00000000..81db2c14 --- /dev/null +++ b/api/model_post_line_items_201_response_data_relationships_bundle.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTLineItems201ResponseDataRelationshipsBundle type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTLineItems201ResponseDataRelationshipsBundle{} + +// POSTLineItems201ResponseDataRelationshipsBundle struct for POSTLineItems201ResponseDataRelationshipsBundle +type POSTLineItems201ResponseDataRelationshipsBundle struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTLineItems201ResponseDataRelationshipsBundleData `json:"data,omitempty"` +} + +// NewPOSTLineItems201ResponseDataRelationshipsBundle instantiates a new POSTLineItems201ResponseDataRelationshipsBundle object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTLineItems201ResponseDataRelationshipsBundle() *POSTLineItems201ResponseDataRelationshipsBundle { + this := POSTLineItems201ResponseDataRelationshipsBundle{} + return &this +} + +// NewPOSTLineItems201ResponseDataRelationshipsBundleWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsBundle object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTLineItems201ResponseDataRelationshipsBundleWithDefaults() *POSTLineItems201ResponseDataRelationshipsBundle { + this := POSTLineItems201ResponseDataRelationshipsBundle{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationshipsBundle) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationshipsBundle) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsBundle) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTLineItems201ResponseDataRelationshipsBundle) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationshipsBundle) GetData() POSTLineItems201ResponseDataRelationshipsBundleData { + if o == nil || IsNil(o.Data) { + var ret POSTLineItems201ResponseDataRelationshipsBundleData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationshipsBundle) GetDataOk() (*POSTLineItems201ResponseDataRelationshipsBundleData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsBundle) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTLineItems201ResponseDataRelationshipsBundleData and assigns it to the Data field. +func (o *POSTLineItems201ResponseDataRelationshipsBundle) SetData(v POSTLineItems201ResponseDataRelationshipsBundleData) { + o.Data = &v +} + +func (o POSTLineItems201ResponseDataRelationshipsBundle) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTLineItems201ResponseDataRelationshipsBundle) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTLineItems201ResponseDataRelationshipsBundle struct { + value *POSTLineItems201ResponseDataRelationshipsBundle + isSet bool +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsBundle) Get() *POSTLineItems201ResponseDataRelationshipsBundle { + return v.value +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsBundle) Set(val *POSTLineItems201ResponseDataRelationshipsBundle) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsBundle) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsBundle) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTLineItems201ResponseDataRelationshipsBundle(val *POSTLineItems201ResponseDataRelationshipsBundle) *NullablePOSTLineItems201ResponseDataRelationshipsBundle { + return &NullablePOSTLineItems201ResponseDataRelationshipsBundle{value: val, isSet: true} +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsBundle) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsBundle) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_line_items_201_response_data_relationships_bundle_data.go b/api/model_post_line_items_201_response_data_relationships_bundle_data.go new file mode 100644 index 00000000..d86f4f22 --- /dev/null +++ b/api/model_post_line_items_201_response_data_relationships_bundle_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTLineItems201ResponseDataRelationshipsBundleData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTLineItems201ResponseDataRelationshipsBundleData{} + +// POSTLineItems201ResponseDataRelationshipsBundleData struct for POSTLineItems201ResponseDataRelationshipsBundleData +type POSTLineItems201ResponseDataRelationshipsBundleData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTLineItems201ResponseDataRelationshipsBundleData instantiates a new POSTLineItems201ResponseDataRelationshipsBundleData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTLineItems201ResponseDataRelationshipsBundleData() *POSTLineItems201ResponseDataRelationshipsBundleData { + this := POSTLineItems201ResponseDataRelationshipsBundleData{} + return &this +} + +// NewPOSTLineItems201ResponseDataRelationshipsBundleDataWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsBundleData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTLineItems201ResponseDataRelationshipsBundleDataWithDefaults() *POSTLineItems201ResponseDataRelationshipsBundleData { + this := POSTLineItems201ResponseDataRelationshipsBundleData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLineItems201ResponseDataRelationshipsBundleData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLineItems201ResponseDataRelationshipsBundleData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsBundleData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTLineItems201ResponseDataRelationshipsBundleData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLineItems201ResponseDataRelationshipsBundleData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLineItems201ResponseDataRelationshipsBundleData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsBundleData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTLineItems201ResponseDataRelationshipsBundleData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTLineItems201ResponseDataRelationshipsBundleData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTLineItems201ResponseDataRelationshipsBundleData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTLineItems201ResponseDataRelationshipsBundleData struct { + value *POSTLineItems201ResponseDataRelationshipsBundleData + isSet bool +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsBundleData) Get() *POSTLineItems201ResponseDataRelationshipsBundleData { + return v.value +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsBundleData) Set(val *POSTLineItems201ResponseDataRelationshipsBundleData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsBundleData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsBundleData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTLineItems201ResponseDataRelationshipsBundleData(val *POSTLineItems201ResponseDataRelationshipsBundleData) *NullablePOSTLineItems201ResponseDataRelationshipsBundleData { + return &NullablePOSTLineItems201ResponseDataRelationshipsBundleData{value: val, isSet: true} +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsBundleData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsBundleData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_line_items_201_response_data_relationships_gift_card.go b/api/model_post_line_items_201_response_data_relationships_gift_card.go new file mode 100644 index 00000000..cb72ff81 --- /dev/null +++ b/api/model_post_line_items_201_response_data_relationships_gift_card.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTLineItems201ResponseDataRelationshipsGiftCard type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTLineItems201ResponseDataRelationshipsGiftCard{} + +// POSTLineItems201ResponseDataRelationshipsGiftCard struct for POSTLineItems201ResponseDataRelationshipsGiftCard +type POSTLineItems201ResponseDataRelationshipsGiftCard struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTLineItems201ResponseDataRelationshipsGiftCardData `json:"data,omitempty"` +} + +// NewPOSTLineItems201ResponseDataRelationshipsGiftCard instantiates a new POSTLineItems201ResponseDataRelationshipsGiftCard object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTLineItems201ResponseDataRelationshipsGiftCard() *POSTLineItems201ResponseDataRelationshipsGiftCard { + this := POSTLineItems201ResponseDataRelationshipsGiftCard{} + return &this +} + +// NewPOSTLineItems201ResponseDataRelationshipsGiftCardWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsGiftCard object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTLineItems201ResponseDataRelationshipsGiftCardWithDefaults() *POSTLineItems201ResponseDataRelationshipsGiftCard { + this := POSTLineItems201ResponseDataRelationshipsGiftCard{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationshipsGiftCard) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationshipsGiftCard) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsGiftCard) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTLineItems201ResponseDataRelationshipsGiftCard) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationshipsGiftCard) GetData() POSTLineItems201ResponseDataRelationshipsGiftCardData { + if o == nil || IsNil(o.Data) { + var ret POSTLineItems201ResponseDataRelationshipsGiftCardData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationshipsGiftCard) GetDataOk() (*POSTLineItems201ResponseDataRelationshipsGiftCardData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsGiftCard) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTLineItems201ResponseDataRelationshipsGiftCardData and assigns it to the Data field. +func (o *POSTLineItems201ResponseDataRelationshipsGiftCard) SetData(v POSTLineItems201ResponseDataRelationshipsGiftCardData) { + o.Data = &v +} + +func (o POSTLineItems201ResponseDataRelationshipsGiftCard) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTLineItems201ResponseDataRelationshipsGiftCard) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTLineItems201ResponseDataRelationshipsGiftCard struct { + value *POSTLineItems201ResponseDataRelationshipsGiftCard + isSet bool +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsGiftCard) Get() *POSTLineItems201ResponseDataRelationshipsGiftCard { + return v.value +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsGiftCard) Set(val *POSTLineItems201ResponseDataRelationshipsGiftCard) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsGiftCard) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsGiftCard) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTLineItems201ResponseDataRelationshipsGiftCard(val *POSTLineItems201ResponseDataRelationshipsGiftCard) *NullablePOSTLineItems201ResponseDataRelationshipsGiftCard { + return &NullablePOSTLineItems201ResponseDataRelationshipsGiftCard{value: val, isSet: true} +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsGiftCard) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsGiftCard) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_line_items_201_response_data_relationships_gift_card_data.go b/api/model_post_line_items_201_response_data_relationships_gift_card_data.go new file mode 100644 index 00000000..4ccab68a --- /dev/null +++ b/api/model_post_line_items_201_response_data_relationships_gift_card_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTLineItems201ResponseDataRelationshipsGiftCardData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTLineItems201ResponseDataRelationshipsGiftCardData{} + +// POSTLineItems201ResponseDataRelationshipsGiftCardData struct for POSTLineItems201ResponseDataRelationshipsGiftCardData +type POSTLineItems201ResponseDataRelationshipsGiftCardData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTLineItems201ResponseDataRelationshipsGiftCardData instantiates a new POSTLineItems201ResponseDataRelationshipsGiftCardData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTLineItems201ResponseDataRelationshipsGiftCardData() *POSTLineItems201ResponseDataRelationshipsGiftCardData { + this := POSTLineItems201ResponseDataRelationshipsGiftCardData{} + return &this +} + +// NewPOSTLineItems201ResponseDataRelationshipsGiftCardDataWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsGiftCardData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTLineItems201ResponseDataRelationshipsGiftCardDataWithDefaults() *POSTLineItems201ResponseDataRelationshipsGiftCardData { + this := POSTLineItems201ResponseDataRelationshipsGiftCardData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTLineItems201ResponseDataRelationshipsGiftCardData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTLineItems201ResponseDataRelationshipsGiftCardData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTLineItems201ResponseDataRelationshipsGiftCardData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTLineItems201ResponseDataRelationshipsGiftCardData struct { + value *POSTLineItems201ResponseDataRelationshipsGiftCardData + isSet bool +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsGiftCardData) Get() *POSTLineItems201ResponseDataRelationshipsGiftCardData { + return v.value +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsGiftCardData) Set(val *POSTLineItems201ResponseDataRelationshipsGiftCardData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsGiftCardData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsGiftCardData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTLineItems201ResponseDataRelationshipsGiftCardData(val *POSTLineItems201ResponseDataRelationshipsGiftCardData) *NullablePOSTLineItems201ResponseDataRelationshipsGiftCardData { + return &NullablePOSTLineItems201ResponseDataRelationshipsGiftCardData{value: val, isSet: true} +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsGiftCardData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsGiftCardData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_line_items_201_response_data_relationships_item.go b/api/model_post_line_items_201_response_data_relationships_item.go index 7a9aed70..862caa7a 100644 --- a/api/model_post_line_items_201_response_data_relationships_item.go +++ b/api/model_post_line_items_201_response_data_relationships_item.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_line_items_201_response_data_relationships_item_data.go b/api/model_post_line_items_201_response_data_relationships_item_data.go index 3ea0da53..cc1097c8 100644 --- a/api/model_post_line_items_201_response_data_relationships_item_data.go +++ b/api/model_post_line_items_201_response_data_relationships_item_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_line_items_201_response_data_relationships_line_item_options.go b/api/model_post_line_items_201_response_data_relationships_line_item_options.go index f9c9e129..5c3f4836 100644 --- a/api/model_post_line_items_201_response_data_relationships_line_item_options.go +++ b/api/model_post_line_items_201_response_data_relationships_line_item_options.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_line_items_201_response_data_relationships_line_item_options_data.go b/api/model_post_line_items_201_response_data_relationships_line_item_options_data.go index ec0d1e84..6fd9b365 100644 --- a/api/model_post_line_items_201_response_data_relationships_line_item_options_data.go +++ b/api/model_post_line_items_201_response_data_relationships_line_item_options_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_line_items_201_response_data_relationships_return_line_items.go b/api/model_post_line_items_201_response_data_relationships_return_line_items.go new file mode 100644 index 00000000..de9f1b6a --- /dev/null +++ b/api/model_post_line_items_201_response_data_relationships_return_line_items.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTLineItems201ResponseDataRelationshipsReturnLineItems type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTLineItems201ResponseDataRelationshipsReturnLineItems{} + +// POSTLineItems201ResponseDataRelationshipsReturnLineItems struct for POSTLineItems201ResponseDataRelationshipsReturnLineItems +type POSTLineItems201ResponseDataRelationshipsReturnLineItems struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData `json:"data,omitempty"` +} + +// NewPOSTLineItems201ResponseDataRelationshipsReturnLineItems instantiates a new POSTLineItems201ResponseDataRelationshipsReturnLineItems object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTLineItems201ResponseDataRelationshipsReturnLineItems() *POSTLineItems201ResponseDataRelationshipsReturnLineItems { + this := POSTLineItems201ResponseDataRelationshipsReturnLineItems{} + return &this +} + +// NewPOSTLineItems201ResponseDataRelationshipsReturnLineItemsWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsReturnLineItems object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTLineItems201ResponseDataRelationshipsReturnLineItemsWithDefaults() *POSTLineItems201ResponseDataRelationshipsReturnLineItems { + this := POSTLineItems201ResponseDataRelationshipsReturnLineItems{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItems) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItems) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItems) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItems) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItems) GetData() POSTLineItems201ResponseDataRelationshipsReturnLineItemsData { + if o == nil || IsNil(o.Data) { + var ret POSTLineItems201ResponseDataRelationshipsReturnLineItemsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItems) GetDataOk() (*POSTLineItems201ResponseDataRelationshipsReturnLineItemsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItems) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTLineItems201ResponseDataRelationshipsReturnLineItemsData and assigns it to the Data field. +func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItems) SetData(v POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) { + o.Data = &v +} + +func (o POSTLineItems201ResponseDataRelationshipsReturnLineItems) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTLineItems201ResponseDataRelationshipsReturnLineItems) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTLineItems201ResponseDataRelationshipsReturnLineItems struct { + value *POSTLineItems201ResponseDataRelationshipsReturnLineItems + isSet bool +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsReturnLineItems) Get() *POSTLineItems201ResponseDataRelationshipsReturnLineItems { + return v.value +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsReturnLineItems) Set(val *POSTLineItems201ResponseDataRelationshipsReturnLineItems) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsReturnLineItems) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsReturnLineItems) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTLineItems201ResponseDataRelationshipsReturnLineItems(val *POSTLineItems201ResponseDataRelationshipsReturnLineItems) *NullablePOSTLineItems201ResponseDataRelationshipsReturnLineItems { + return &NullablePOSTLineItems201ResponseDataRelationshipsReturnLineItems{value: val, isSet: true} +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsReturnLineItems) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsReturnLineItems) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_line_items_201_response_data_relationships_return_line_items_data.go b/api/model_post_line_items_201_response_data_relationships_return_line_items_data.go new file mode 100644 index 00000000..ee3f86fb --- /dev/null +++ b/api/model_post_line_items_201_response_data_relationships_return_line_items_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTLineItems201ResponseDataRelationshipsReturnLineItemsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTLineItems201ResponseDataRelationshipsReturnLineItemsData{} + +// POSTLineItems201ResponseDataRelationshipsReturnLineItemsData struct for POSTLineItems201ResponseDataRelationshipsReturnLineItemsData +type POSTLineItems201ResponseDataRelationshipsReturnLineItemsData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTLineItems201ResponseDataRelationshipsReturnLineItemsData instantiates a new POSTLineItems201ResponseDataRelationshipsReturnLineItemsData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTLineItems201ResponseDataRelationshipsReturnLineItemsData() *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData { + this := POSTLineItems201ResponseDataRelationshipsReturnLineItemsData{} + return &this +} + +// NewPOSTLineItems201ResponseDataRelationshipsReturnLineItemsDataWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsReturnLineItemsData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTLineItems201ResponseDataRelationshipsReturnLineItemsDataWithDefaults() *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData { + this := POSTLineItems201ResponseDataRelationshipsReturnLineItemsData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTLineItems201ResponseDataRelationshipsReturnLineItemsData struct { + value *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData + isSet bool +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsReturnLineItemsData) Get() *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData { + return v.value +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsReturnLineItemsData) Set(val *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsReturnLineItemsData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsReturnLineItemsData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTLineItems201ResponseDataRelationshipsReturnLineItemsData(val *POSTLineItems201ResponseDataRelationshipsReturnLineItemsData) *NullablePOSTLineItems201ResponseDataRelationshipsReturnLineItemsData { + return &NullablePOSTLineItems201ResponseDataRelationshipsReturnLineItemsData{value: val, isSet: true} +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsReturnLineItemsData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsReturnLineItemsData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_line_items_201_response_data_relationships_shipment.go b/api/model_post_line_items_201_response_data_relationships_shipment.go new file mode 100644 index 00000000..a7c56e58 --- /dev/null +++ b/api/model_post_line_items_201_response_data_relationships_shipment.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTLineItems201ResponseDataRelationshipsShipment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTLineItems201ResponseDataRelationshipsShipment{} + +// POSTLineItems201ResponseDataRelationshipsShipment struct for POSTLineItems201ResponseDataRelationshipsShipment +type POSTLineItems201ResponseDataRelationshipsShipment struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTLineItems201ResponseDataRelationshipsShipmentData `json:"data,omitempty"` +} + +// NewPOSTLineItems201ResponseDataRelationshipsShipment instantiates a new POSTLineItems201ResponseDataRelationshipsShipment object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTLineItems201ResponseDataRelationshipsShipment() *POSTLineItems201ResponseDataRelationshipsShipment { + this := POSTLineItems201ResponseDataRelationshipsShipment{} + return &this +} + +// NewPOSTLineItems201ResponseDataRelationshipsShipmentWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsShipment object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTLineItems201ResponseDataRelationshipsShipmentWithDefaults() *POSTLineItems201ResponseDataRelationshipsShipment { + this := POSTLineItems201ResponseDataRelationshipsShipment{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationshipsShipment) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationshipsShipment) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsShipment) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTLineItems201ResponseDataRelationshipsShipment) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationshipsShipment) GetData() POSTLineItems201ResponseDataRelationshipsShipmentData { + if o == nil || IsNil(o.Data) { + var ret POSTLineItems201ResponseDataRelationshipsShipmentData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationshipsShipment) GetDataOk() (*POSTLineItems201ResponseDataRelationshipsShipmentData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsShipment) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTLineItems201ResponseDataRelationshipsShipmentData and assigns it to the Data field. +func (o *POSTLineItems201ResponseDataRelationshipsShipment) SetData(v POSTLineItems201ResponseDataRelationshipsShipmentData) { + o.Data = &v +} + +func (o POSTLineItems201ResponseDataRelationshipsShipment) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTLineItems201ResponseDataRelationshipsShipment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTLineItems201ResponseDataRelationshipsShipment struct { + value *POSTLineItems201ResponseDataRelationshipsShipment + isSet bool +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsShipment) Get() *POSTLineItems201ResponseDataRelationshipsShipment { + return v.value +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsShipment) Set(val *POSTLineItems201ResponseDataRelationshipsShipment) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsShipment) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsShipment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTLineItems201ResponseDataRelationshipsShipment(val *POSTLineItems201ResponseDataRelationshipsShipment) *NullablePOSTLineItems201ResponseDataRelationshipsShipment { + return &NullablePOSTLineItems201ResponseDataRelationshipsShipment{value: val, isSet: true} +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsShipment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsShipment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_line_items_201_response_data_relationships_shipment_line_items_data.go b/api/model_post_line_items_201_response_data_relationships_shipment_data.go similarity index 53% rename from api/model_post_line_items_201_response_data_relationships_shipment_line_items_data.go rename to api/model_post_line_items_201_response_data_relationships_shipment_data.go index 1a0f51ab..2f69539e 100644 --- a/api/model_post_line_items_201_response_data_relationships_shipment_line_items_data.go +++ b/api/model_post_line_items_201_response_data_relationships_shipment_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData{} +// checks if the POSTLineItems201ResponseDataRelationshipsShipmentData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTLineItems201ResponseDataRelationshipsShipmentData{} -// POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData struct for POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData -type POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData struct { +// POSTLineItems201ResponseDataRelationshipsShipmentData struct for POSTLineItems201ResponseDataRelationshipsShipmentData +type POSTLineItems201ResponseDataRelationshipsShipmentData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource ID Id interface{} `json:"id,omitempty"` } -// NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItemsData instantiates a new POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData object +// NewPOSTLineItems201ResponseDataRelationshipsShipmentData instantiates a new POSTLineItems201ResponseDataRelationshipsShipmentData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItemsData() *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData { - this := POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData{} +func NewPOSTLineItems201ResponseDataRelationshipsShipmentData() *POSTLineItems201ResponseDataRelationshipsShipmentData { + this := POSTLineItems201ResponseDataRelationshipsShipmentData{} return &this } -// NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItemsDataWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData object +// NewPOSTLineItems201ResponseDataRelationshipsShipmentDataWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsShipmentData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItemsDataWithDefaults() *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData { - this := POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData{} +func NewPOSTLineItems201ResponseDataRelationshipsShipmentDataWithDefaults() *POSTLineItems201ResponseDataRelationshipsShipmentData { + this := POSTLineItems201ResponseDataRelationshipsShipmentData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) GetType() interface{} { +func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) GetType // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) GetTypeOk() (*interface{}, bool) { +func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) GetType } // HasType returns a boolean if a field has been set. -func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) HasType() bool { +func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) HasType } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) SetType(v interface{}) { +func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) GetId() interface{} { +func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) GetId() // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) GetIdOk() (*interface{}, bool) { +func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) GetIdOk } // HasId returns a boolean if a field has been set. -func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) HasId() bool { +func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) HasId() } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) SetId(v interface{}) { +func (o *POSTLineItems201ResponseDataRelationshipsShipmentData) SetId(v interface{}) { o.Id = v } -func (o POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) MarshalJSON() ([]byte, error) { +func (o POSTLineItems201ResponseDataRelationshipsShipmentData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) MarshalJ return json.Marshal(toSerialize) } -func (o POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) ToMap() (map[string]interface{}, error) { +func (o POSTLineItems201ResponseDataRelationshipsShipmentData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) ToMap() return toSerialize, nil } -type NullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItemsData struct { - value *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData +type NullablePOSTLineItems201ResponseDataRelationshipsShipmentData struct { + value *POSTLineItems201ResponseDataRelationshipsShipmentData isSet bool } -func (v NullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) Get() *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData { +func (v NullablePOSTLineItems201ResponseDataRelationshipsShipmentData) Get() *POSTLineItems201ResponseDataRelationshipsShipmentData { return v.value } -func (v *NullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) Set(val *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) { +func (v *NullablePOSTLineItems201ResponseDataRelationshipsShipmentData) Set(val *POSTLineItems201ResponseDataRelationshipsShipmentData) { v.value = val v.isSet = true } -func (v NullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) IsSet() bool { +func (v NullablePOSTLineItems201ResponseDataRelationshipsShipmentData) IsSet() bool { return v.isSet } -func (v *NullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) Unset() { +func (v *NullablePOSTLineItems201ResponseDataRelationshipsShipmentData) Unset() { v.value = nil v.isSet = false } -func NewNullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItemsData(val *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) *NullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItemsData { - return &NullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItemsData{value: val, isSet: true} +func NewNullablePOSTLineItems201ResponseDataRelationshipsShipmentData(val *POSTLineItems201ResponseDataRelationshipsShipmentData) *NullablePOSTLineItems201ResponseDataRelationshipsShipmentData { + return &NullablePOSTLineItems201ResponseDataRelationshipsShipmentData{value: val, isSet: true} } -func (v NullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) MarshalJSON() ([]byte, error) { +func (v NullablePOSTLineItems201ResponseDataRelationshipsShipmentData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) UnmarshalJSON(src []byte) error { +func (v *NullablePOSTLineItems201ResponseDataRelationshipsShipmentData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_post_line_items_201_response_data_relationships_shipment_line_items.go b/api/model_post_line_items_201_response_data_relationships_shipment_line_items.go deleted file mode 100644 index fde8c1d8..00000000 --- a/api/model_post_line_items_201_response_data_relationships_shipment_line_items.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the POSTLineItems201ResponseDataRelationshipsShipmentLineItems type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTLineItems201ResponseDataRelationshipsShipmentLineItems{} - -// POSTLineItems201ResponseDataRelationshipsShipmentLineItems struct for POSTLineItems201ResponseDataRelationshipsShipmentLineItems -type POSTLineItems201ResponseDataRelationshipsShipmentLineItems struct { - Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` - Data *POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData `json:"data,omitempty"` -} - -// NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItems instantiates a new POSTLineItems201ResponseDataRelationshipsShipmentLineItems object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItems() *POSTLineItems201ResponseDataRelationshipsShipmentLineItems { - this := POSTLineItems201ResponseDataRelationshipsShipmentLineItems{} - return &this -} - -// NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItemsWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsShipmentLineItems object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPOSTLineItems201ResponseDataRelationshipsShipmentLineItemsWithDefaults() *POSTLineItems201ResponseDataRelationshipsShipmentLineItems { - this := POSTLineItems201ResponseDataRelationshipsShipmentLineItems{} - return &this -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItems) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { - if o == nil || IsNil(o.Links) { - var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItems) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItems) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. -func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItems) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { - o.Links = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItems) GetData() POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData { - if o == nil || IsNil(o.Data) { - var ret POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItems) GetDataOk() (*POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItems) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData and assigns it to the Data field. -func (o *POSTLineItems201ResponseDataRelationshipsShipmentLineItems) SetData(v POSTLineItems201ResponseDataRelationshipsShipmentLineItemsData) { - o.Data = &v -} - -func (o POSTLineItems201ResponseDataRelationshipsShipmentLineItems) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o POSTLineItems201ResponseDataRelationshipsShipmentLineItems) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItems struct { - value *POSTLineItems201ResponseDataRelationshipsShipmentLineItems - isSet bool -} - -func (v NullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItems) Get() *POSTLineItems201ResponseDataRelationshipsShipmentLineItems { - return v.value -} - -func (v *NullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItems) Set(val *POSTLineItems201ResponseDataRelationshipsShipmentLineItems) { - v.value = val - v.isSet = true -} - -func (v NullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItems) IsSet() bool { - return v.isSet -} - -func (v *NullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItems) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItems(val *POSTLineItems201ResponseDataRelationshipsShipmentLineItems) *NullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItems { - return &NullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItems{value: val, isSet: true} -} - -func (v NullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItems) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePOSTLineItems201ResponseDataRelationshipsShipmentLineItems) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_post_line_items_201_response_data_relationships_stock_line_items.go b/api/model_post_line_items_201_response_data_relationships_stock_line_items.go index 71449e5e..272893f9 100644 --- a/api/model_post_line_items_201_response_data_relationships_stock_line_items.go +++ b/api/model_post_line_items_201_response_data_relationships_stock_line_items.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_line_items_201_response_data_relationships_stock_line_items_data.go b/api/model_post_line_items_201_response_data_relationships_stock_line_items_data.go index ecaf3f24..9a5cc092 100644 --- a/api/model_post_line_items_201_response_data_relationships_stock_line_items_data.go +++ b/api/model_post_line_items_201_response_data_relationships_stock_line_items_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_line_items_201_response_data_relationships_stock_reservations.go b/api/model_post_line_items_201_response_data_relationships_stock_reservations.go new file mode 100644 index 00000000..a8211f47 --- /dev/null +++ b/api/model_post_line_items_201_response_data_relationships_stock_reservations.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTLineItems201ResponseDataRelationshipsStockReservations type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTLineItems201ResponseDataRelationshipsStockReservations{} + +// POSTLineItems201ResponseDataRelationshipsStockReservations struct for POSTLineItems201ResponseDataRelationshipsStockReservations +type POSTLineItems201ResponseDataRelationshipsStockReservations struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTLineItems201ResponseDataRelationshipsStockReservationsData `json:"data,omitempty"` +} + +// NewPOSTLineItems201ResponseDataRelationshipsStockReservations instantiates a new POSTLineItems201ResponseDataRelationshipsStockReservations object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTLineItems201ResponseDataRelationshipsStockReservations() *POSTLineItems201ResponseDataRelationshipsStockReservations { + this := POSTLineItems201ResponseDataRelationshipsStockReservations{} + return &this +} + +// NewPOSTLineItems201ResponseDataRelationshipsStockReservationsWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsStockReservations object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTLineItems201ResponseDataRelationshipsStockReservationsWithDefaults() *POSTLineItems201ResponseDataRelationshipsStockReservations { + this := POSTLineItems201ResponseDataRelationshipsStockReservations{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationshipsStockReservations) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationshipsStockReservations) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsStockReservations) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTLineItems201ResponseDataRelationshipsStockReservations) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTLineItems201ResponseDataRelationshipsStockReservations) GetData() POSTLineItems201ResponseDataRelationshipsStockReservationsData { + if o == nil || IsNil(o.Data) { + var ret POSTLineItems201ResponseDataRelationshipsStockReservationsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLineItems201ResponseDataRelationshipsStockReservations) GetDataOk() (*POSTLineItems201ResponseDataRelationshipsStockReservationsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsStockReservations) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTLineItems201ResponseDataRelationshipsStockReservationsData and assigns it to the Data field. +func (o *POSTLineItems201ResponseDataRelationshipsStockReservations) SetData(v POSTLineItems201ResponseDataRelationshipsStockReservationsData) { + o.Data = &v +} + +func (o POSTLineItems201ResponseDataRelationshipsStockReservations) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTLineItems201ResponseDataRelationshipsStockReservations) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTLineItems201ResponseDataRelationshipsStockReservations struct { + value *POSTLineItems201ResponseDataRelationshipsStockReservations + isSet bool +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsStockReservations) Get() *POSTLineItems201ResponseDataRelationshipsStockReservations { + return v.value +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsStockReservations) Set(val *POSTLineItems201ResponseDataRelationshipsStockReservations) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsStockReservations) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsStockReservations) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTLineItems201ResponseDataRelationshipsStockReservations(val *POSTLineItems201ResponseDataRelationshipsStockReservations) *NullablePOSTLineItems201ResponseDataRelationshipsStockReservations { + return &NullablePOSTLineItems201ResponseDataRelationshipsStockReservations{value: val, isSet: true} +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsStockReservations) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsStockReservations) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_line_items_201_response_data_relationships_stock_reservations_data.go b/api/model_post_line_items_201_response_data_relationships_stock_reservations_data.go new file mode 100644 index 00000000..5985a722 --- /dev/null +++ b/api/model_post_line_items_201_response_data_relationships_stock_reservations_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTLineItems201ResponseDataRelationshipsStockReservationsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTLineItems201ResponseDataRelationshipsStockReservationsData{} + +// POSTLineItems201ResponseDataRelationshipsStockReservationsData struct for POSTLineItems201ResponseDataRelationshipsStockReservationsData +type POSTLineItems201ResponseDataRelationshipsStockReservationsData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTLineItems201ResponseDataRelationshipsStockReservationsData instantiates a new POSTLineItems201ResponseDataRelationshipsStockReservationsData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTLineItems201ResponseDataRelationshipsStockReservationsData() *POSTLineItems201ResponseDataRelationshipsStockReservationsData { + this := POSTLineItems201ResponseDataRelationshipsStockReservationsData{} + return &this +} + +// NewPOSTLineItems201ResponseDataRelationshipsStockReservationsDataWithDefaults instantiates a new POSTLineItems201ResponseDataRelationshipsStockReservationsData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTLineItems201ResponseDataRelationshipsStockReservationsDataWithDefaults() *POSTLineItems201ResponseDataRelationshipsStockReservationsData { + this := POSTLineItems201ResponseDataRelationshipsStockReservationsData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTLineItems201ResponseDataRelationshipsStockReservationsData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTLineItems201ResponseDataRelationshipsStockReservationsData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTLineItems201ResponseDataRelationshipsStockReservationsData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTLineItems201ResponseDataRelationshipsStockReservationsData struct { + value *POSTLineItems201ResponseDataRelationshipsStockReservationsData + isSet bool +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsStockReservationsData) Get() *POSTLineItems201ResponseDataRelationshipsStockReservationsData { + return v.value +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsStockReservationsData) Set(val *POSTLineItems201ResponseDataRelationshipsStockReservationsData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsStockReservationsData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsStockReservationsData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTLineItems201ResponseDataRelationshipsStockReservationsData(val *POSTLineItems201ResponseDataRelationshipsStockReservationsData) *NullablePOSTLineItems201ResponseDataRelationshipsStockReservationsData { + return &NullablePOSTLineItems201ResponseDataRelationshipsStockReservationsData{value: val, isSet: true} +} + +func (v NullablePOSTLineItems201ResponseDataRelationshipsStockReservationsData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTLineItems201ResponseDataRelationshipsStockReservationsData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_line_items_201_response_data_relationships_stock_transfers.go b/api/model_post_line_items_201_response_data_relationships_stock_transfers.go index b9a57844..e8da0017 100644 --- a/api/model_post_line_items_201_response_data_relationships_stock_transfers.go +++ b/api/model_post_line_items_201_response_data_relationships_stock_transfers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_line_items_201_response_data_relationships_stock_transfers_data.go b/api/model_post_line_items_201_response_data_relationships_stock_transfers_data.go index 82570352..f8cf13e2 100644 --- a/api/model_post_line_items_201_response_data_relationships_stock_transfers_data.go +++ b/api/model_post_line_items_201_response_data_relationships_stock_transfers_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_links_201_response.go b/api/model_post_links_201_response.go new file mode 100644 index 00000000..9c7f5fff --- /dev/null +++ b/api/model_post_links_201_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTLinks201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTLinks201Response{} + +// POSTLinks201Response struct for POSTLinks201Response +type POSTLinks201Response struct { + Data *POSTLinks201ResponseData `json:"data,omitempty"` +} + +// NewPOSTLinks201Response instantiates a new POSTLinks201Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTLinks201Response() *POSTLinks201Response { + this := POSTLinks201Response{} + return &this +} + +// NewPOSTLinks201ResponseWithDefaults instantiates a new POSTLinks201Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTLinks201ResponseWithDefaults() *POSTLinks201Response { + this := POSTLinks201Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTLinks201Response) GetData() POSTLinks201ResponseData { + if o == nil || IsNil(o.Data) { + var ret POSTLinks201ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLinks201Response) GetDataOk() (*POSTLinks201ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTLinks201Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTLinks201ResponseData and assigns it to the Data field. +func (o *POSTLinks201Response) SetData(v POSTLinks201ResponseData) { + o.Data = &v +} + +func (o POSTLinks201Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTLinks201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTLinks201Response struct { + value *POSTLinks201Response + isSet bool +} + +func (v NullablePOSTLinks201Response) Get() *POSTLinks201Response { + return v.value +} + +func (v *NullablePOSTLinks201Response) Set(val *POSTLinks201Response) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTLinks201Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTLinks201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTLinks201Response(val *POSTLinks201Response) *NullablePOSTLinks201Response { + return &NullablePOSTLinks201Response{value: val, isSet: true} +} + +func (v NullablePOSTLinks201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTLinks201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_links_201_response_data.go b/api/model_post_links_201_response_data.go new file mode 100644 index 00000000..b05a5d59 --- /dev/null +++ b/api/model_post_links_201_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTLinks201ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTLinks201ResponseData{} + +// POSTLinks201ResponseData struct for POSTLinks201ResponseData +type POSTLinks201ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTLinks201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTLinks201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPOSTLinks201ResponseData instantiates a new POSTLinks201ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTLinks201ResponseData() *POSTLinks201ResponseData { + this := POSTLinks201ResponseData{} + return &this +} + +// NewPOSTLinks201ResponseDataWithDefaults instantiates a new POSTLinks201ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTLinks201ResponseDataWithDefaults() *POSTLinks201ResponseData { + this := POSTLinks201ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLinks201ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLinks201ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTLinks201ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTLinks201ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLinks201ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLinks201ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTLinks201ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTLinks201ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTLinks201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLinks201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTLinks201ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *POSTLinks201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *POSTLinks201ResponseData) GetAttributes() POSTLinks201ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret POSTLinks201ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLinks201ResponseData) GetAttributesOk() (*POSTLinks201ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *POSTLinks201ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given POSTLinks201ResponseDataAttributes and assigns it to the Attributes field. +func (o *POSTLinks201ResponseData) SetAttributes(v POSTLinks201ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *POSTLinks201ResponseData) GetRelationships() POSTLinks201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTLinks201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLinks201ResponseData) GetRelationshipsOk() (*POSTLinks201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *POSTLinks201ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTLinks201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTLinks201ResponseData) SetRelationships(v POSTLinks201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o POSTLinks201ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTLinks201ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePOSTLinks201ResponseData struct { + value *POSTLinks201ResponseData + isSet bool +} + +func (v NullablePOSTLinks201ResponseData) Get() *POSTLinks201ResponseData { + return v.value +} + +func (v *NullablePOSTLinks201ResponseData) Set(val *POSTLinks201ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTLinks201ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTLinks201ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTLinks201ResponseData(val *POSTLinks201ResponseData) *NullablePOSTLinks201ResponseData { + return &NullablePOSTLinks201ResponseData{value: val, isSet: true} +} + +func (v NullablePOSTLinks201ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTLinks201ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_links_201_response_data_attributes.go b/api/model_post_links_201_response_data_attributes.go new file mode 100644 index 00000000..db36778d --- /dev/null +++ b/api/model_post_links_201_response_data_attributes.go @@ -0,0 +1,565 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTLinks201ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTLinks201ResponseDataAttributes{} + +// POSTLinks201ResponseDataAttributes struct for POSTLinks201ResponseDataAttributes +type POSTLinks201ResponseDataAttributes struct { + // The link internal name. + Name interface{} `json:"name"` + // The link application client id, used to fetch JWT. + ClientId interface{} `json:"client_id"` + // The link application scope, used to fetch JWT. + Scope interface{} `json:"scope"` + // The activation date/time of this link. + StartsAt interface{} `json:"starts_at,omitempty"` + // The expiration date/time of this link (must be after starts_at). + ExpiresAt interface{} `json:"expires_at,omitempty"` + // The link URL second level domain. + Domain interface{} `json:"domain,omitempty"` + // The type of the associated item. One of 'orders', 'skus', or 'sku_lists'. + ItemType interface{} `json:"item_type,omitempty"` + // The link params to be passed in URL the query string. + Params interface{} `json:"params,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPOSTLinks201ResponseDataAttributes instantiates a new POSTLinks201ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTLinks201ResponseDataAttributes(name interface{}, clientId interface{}, scope interface{}) *POSTLinks201ResponseDataAttributes { + this := POSTLinks201ResponseDataAttributes{} + this.Name = name + this.ClientId = clientId + this.Scope = scope + return &this +} + +// NewPOSTLinks201ResponseDataAttributesWithDefaults instantiates a new POSTLinks201ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTLinks201ResponseDataAttributesWithDefaults() *POSTLinks201ResponseDataAttributes { + this := POSTLinks201ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTLinks201ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLinks201ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *POSTLinks201ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetClientId returns the ClientId field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTLinks201ResponseDataAttributes) GetClientId() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.ClientId +} + +// GetClientIdOk returns a tuple with the ClientId field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLinks201ResponseDataAttributes) GetClientIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.ClientId) { + return nil, false + } + return &o.ClientId, true +} + +// SetClientId sets field value +func (o *POSTLinks201ResponseDataAttributes) SetClientId(v interface{}) { + o.ClientId = v +} + +// GetScope returns the Scope field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTLinks201ResponseDataAttributes) GetScope() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Scope +} + +// GetScopeOk returns a tuple with the Scope field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLinks201ResponseDataAttributes) GetScopeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Scope) { + return nil, false + } + return &o.Scope, true +} + +// SetScope sets field value +func (o *POSTLinks201ResponseDataAttributes) SetScope(v interface{}) { + o.Scope = v +} + +// GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLinks201ResponseDataAttributes) GetStartsAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.StartsAt +} + +// GetStartsAtOk returns a tuple with the StartsAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLinks201ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.StartsAt) { + return nil, false + } + return &o.StartsAt, true +} + +// HasStartsAt returns a boolean if a field has been set. +func (o *POSTLinks201ResponseDataAttributes) HasStartsAt() bool { + if o != nil && IsNil(o.StartsAt) { + return true + } + + return false +} + +// SetStartsAt gets a reference to the given interface{} and assigns it to the StartsAt field. +func (o *POSTLinks201ResponseDataAttributes) SetStartsAt(v interface{}) { + o.StartsAt = v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLinks201ResponseDataAttributes) GetExpiresAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLinks201ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExpiresAt) { + return nil, false + } + return &o.ExpiresAt, true +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *POSTLinks201ResponseDataAttributes) HasExpiresAt() bool { + if o != nil && IsNil(o.ExpiresAt) { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given interface{} and assigns it to the ExpiresAt field. +func (o *POSTLinks201ResponseDataAttributes) SetExpiresAt(v interface{}) { + o.ExpiresAt = v +} + +// GetDomain returns the Domain field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLinks201ResponseDataAttributes) GetDomain() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLinks201ResponseDataAttributes) GetDomainOk() (*interface{}, bool) { + if o == nil || IsNil(o.Domain) { + return nil, false + } + return &o.Domain, true +} + +// HasDomain returns a boolean if a field has been set. +func (o *POSTLinks201ResponseDataAttributes) HasDomain() bool { + if o != nil && IsNil(o.Domain) { + return true + } + + return false +} + +// SetDomain gets a reference to the given interface{} and assigns it to the Domain field. +func (o *POSTLinks201ResponseDataAttributes) SetDomain(v interface{}) { + o.Domain = v +} + +// GetItemType returns the ItemType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLinks201ResponseDataAttributes) GetItemType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ItemType +} + +// GetItemTypeOk returns a tuple with the ItemType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLinks201ResponseDataAttributes) GetItemTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.ItemType) { + return nil, false + } + return &o.ItemType, true +} + +// HasItemType returns a boolean if a field has been set. +func (o *POSTLinks201ResponseDataAttributes) HasItemType() bool { + if o != nil && IsNil(o.ItemType) { + return true + } + + return false +} + +// SetItemType gets a reference to the given interface{} and assigns it to the ItemType field. +func (o *POSTLinks201ResponseDataAttributes) SetItemType(v interface{}) { + o.ItemType = v +} + +// GetParams returns the Params field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLinks201ResponseDataAttributes) GetParams() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Params +} + +// GetParamsOk returns a tuple with the Params field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLinks201ResponseDataAttributes) GetParamsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Params) { + return nil, false + } + return &o.Params, true +} + +// HasParams returns a boolean if a field has been set. +func (o *POSTLinks201ResponseDataAttributes) HasParams() bool { + if o != nil && IsNil(o.Params) { + return true + } + + return false +} + +// SetParams gets a reference to the given interface{} and assigns it to the Params field. +func (o *POSTLinks201ResponseDataAttributes) SetParams(v interface{}) { + o.Params = v +} + +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLinks201ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLinks201ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *POSTLinks201ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *POSTLinks201ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLinks201ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLinks201ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *POSTLinks201ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *POSTLinks201ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLinks201ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLinks201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *POSTLinks201ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *POSTLinks201ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLinks201ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLinks201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *POSTLinks201ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *POSTLinks201ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTLinks201ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTLinks201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *POSTLinks201ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *POSTLinks201ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o POSTLinks201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTLinks201ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.ClientId != nil { + toSerialize["client_id"] = o.ClientId + } + if o.Scope != nil { + toSerialize["scope"] = o.Scope + } + if o.StartsAt != nil { + toSerialize["starts_at"] = o.StartsAt + } + if o.ExpiresAt != nil { + toSerialize["expires_at"] = o.ExpiresAt + } + if o.Domain != nil { + toSerialize["domain"] = o.Domain + } + if o.ItemType != nil { + toSerialize["item_type"] = o.ItemType + } + if o.Params != nil { + toSerialize["params"] = o.Params + } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePOSTLinks201ResponseDataAttributes struct { + value *POSTLinks201ResponseDataAttributes + isSet bool +} + +func (v NullablePOSTLinks201ResponseDataAttributes) Get() *POSTLinks201ResponseDataAttributes { + return v.value +} + +func (v *NullablePOSTLinks201ResponseDataAttributes) Set(val *POSTLinks201ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTLinks201ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTLinks201ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTLinks201ResponseDataAttributes(val *POSTLinks201ResponseDataAttributes) *NullablePOSTLinks201ResponseDataAttributes { + return &NullablePOSTLinks201ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePOSTLinks201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTLinks201ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_links_201_response_data_relationships.go b/api/model_post_links_201_response_data_relationships.go new file mode 100644 index 00000000..29e8f42b --- /dev/null +++ b/api/model_post_links_201_response_data_relationships.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTLinks201ResponseDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTLinks201ResponseDataRelationships{} + +// POSTLinks201ResponseDataRelationships struct for POSTLinks201ResponseDataRelationships +type POSTLinks201ResponseDataRelationships struct { + Item *POSTLineItems201ResponseDataRelationshipsItem `json:"item,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` +} + +// NewPOSTLinks201ResponseDataRelationships instantiates a new POSTLinks201ResponseDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTLinks201ResponseDataRelationships() *POSTLinks201ResponseDataRelationships { + this := POSTLinks201ResponseDataRelationships{} + return &this +} + +// NewPOSTLinks201ResponseDataRelationshipsWithDefaults instantiates a new POSTLinks201ResponseDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTLinks201ResponseDataRelationshipsWithDefaults() *POSTLinks201ResponseDataRelationships { + this := POSTLinks201ResponseDataRelationships{} + return &this +} + +// GetItem returns the Item field value if set, zero value otherwise. +func (o *POSTLinks201ResponseDataRelationships) GetItem() POSTLineItems201ResponseDataRelationshipsItem { + if o == nil || IsNil(o.Item) { + var ret POSTLineItems201ResponseDataRelationshipsItem + return ret + } + return *o.Item +} + +// GetItemOk returns a tuple with the Item field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLinks201ResponseDataRelationships) GetItemOk() (*POSTLineItems201ResponseDataRelationshipsItem, bool) { + if o == nil || IsNil(o.Item) { + return nil, false + } + return o.Item, true +} + +// HasItem returns a boolean if a field has been set. +func (o *POSTLinks201ResponseDataRelationships) HasItem() bool { + if o != nil && !IsNil(o.Item) { + return true + } + + return false +} + +// SetItem gets a reference to the given POSTLineItems201ResponseDataRelationshipsItem and assigns it to the Item field. +func (o *POSTLinks201ResponseDataRelationships) SetItem(v POSTLineItems201ResponseDataRelationshipsItem) { + o.Item = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *POSTLinks201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTLinks201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *POSTLinks201ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTLinks201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + +func (o POSTLinks201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTLinks201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Item) { + toSerialize["item"] = o.Item + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + return toSerialize, nil +} + +type NullablePOSTLinks201ResponseDataRelationships struct { + value *POSTLinks201ResponseDataRelationships + isSet bool +} + +func (v NullablePOSTLinks201ResponseDataRelationships) Get() *POSTLinks201ResponseDataRelationships { + return v.value +} + +func (v *NullablePOSTLinks201ResponseDataRelationships) Set(val *POSTLinks201ResponseDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTLinks201ResponseDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTLinks201ResponseDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTLinks201ResponseDataRelationships(val *POSTLinks201ResponseDataRelationships) *NullablePOSTLinks201ResponseDataRelationships { + return &NullablePOSTLinks201ResponseDataRelationships{value: val, isSet: true} +} + +func (v NullablePOSTLinks201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTLinks201ResponseDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_manual_gateways_201_response.go b/api/model_post_manual_gateways_201_response.go index 2cdbfcc0..9ca07013 100644 --- a/api/model_post_manual_gateways_201_response.go +++ b/api/model_post_manual_gateways_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_manual_gateways_201_response_data.go b/api/model_post_manual_gateways_201_response_data.go index 4c000d45..177f101c 100644 --- a/api/model_post_manual_gateways_201_response_data.go +++ b/api/model_post_manual_gateways_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_manual_gateways_201_response_data_attributes.go b/api/model_post_manual_gateways_201_response_data_attributes.go index 8e331312..f9ba5098 100644 --- a/api/model_post_manual_gateways_201_response_data_attributes.go +++ b/api/model_post_manual_gateways_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type POSTManualGateways201ResponseDataAttributes struct { Name interface{} `json:"name"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_manual_gateways_201_response_data_relationships.go b/api/model_post_manual_gateways_201_response_data_relationships.go index e4a471f5..5801f5e1 100644 --- a/api/model_post_manual_gateways_201_response_data_relationships.go +++ b/api/model_post_manual_gateways_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &POSTManualGateways201ResponseDataRelationships{} // POSTManualGateways201ResponseDataRelationships struct for POSTManualGateways201ResponseDataRelationships type POSTManualGateways201ResponseDataRelationships struct { PaymentMethods *POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTManualGateways201ResponseDataRelationships instantiates a new POSTManualGateways201ResponseDataRelationships object @@ -72,6 +73,38 @@ func (o *POSTManualGateways201ResponseDataRelationships) SetPaymentMethods(v POS o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTManualGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTManualGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTManualGateways201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTManualGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTManualGateways201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +118,9 @@ func (o POSTManualGateways201ResponseDataRelationships) ToMap() (map[string]inte if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_manual_tax_calculators_201_response.go b/api/model_post_manual_tax_calculators_201_response.go index 78d87e1f..82112f46 100644 --- a/api/model_post_manual_tax_calculators_201_response.go +++ b/api/model_post_manual_tax_calculators_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_manual_tax_calculators_201_response_data.go b/api/model_post_manual_tax_calculators_201_response_data.go index 99fed31d..2a994886 100644 --- a/api/model_post_manual_tax_calculators_201_response_data.go +++ b/api/model_post_manual_tax_calculators_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_manual_tax_calculators_201_response_data_attributes.go b/api/model_post_manual_tax_calculators_201_response_data_attributes.go index 5e4131c5..68fc6e93 100644 --- a/api/model_post_manual_tax_calculators_201_response_data_attributes.go +++ b/api/model_post_manual_tax_calculators_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type POSTManualTaxCalculators201ResponseDataAttributes struct { Name interface{} `json:"name"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_manual_tax_calculators_201_response_data_relationships.go b/api/model_post_manual_tax_calculators_201_response_data_relationships.go index 6519bf59..dc08f510 100644 --- a/api/model_post_manual_tax_calculators_201_response_data_relationships.go +++ b/api/model_post_manual_tax_calculators_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,10 @@ var _ MappedNullable = &POSTManualTaxCalculators201ResponseDataRelationships{} // POSTManualTaxCalculators201ResponseDataRelationships struct for POSTManualTaxCalculators201ResponseDataRelationships type POSTManualTaxCalculators201ResponseDataRelationships struct { - Markets *POSTAvalaraAccounts201ResponseDataRelationshipsMarkets `json:"markets,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` - TaxRules *POSTManualTaxCalculators201ResponseDataRelationshipsTaxRules `json:"tax_rules,omitempty"` + Markets *POSTAvalaraAccounts201ResponseDataRelationshipsMarkets `json:"markets,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` + TaxRules *POSTManualTaxCalculators201ResponseDataRelationshipsTaxRules `json:"tax_rules,omitempty"` } // NewPOSTManualTaxCalculators201ResponseDataRelationships instantiates a new POSTManualTaxCalculators201ResponseDataRelationships object @@ -75,9 +76,9 @@ func (o *POSTManualTaxCalculators201ResponseDataRelationships) SetMarkets(v POST } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTManualTaxCalculators201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTManualTaxCalculators201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -85,7 +86,7 @@ func (o *POSTManualTaxCalculators201ResponseDataRelationships) GetAttachments() // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTManualTaxCalculators201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTManualTaxCalculators201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -101,11 +102,43 @@ func (o *POSTManualTaxCalculators201ResponseDataRelationships) HasAttachments() return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTManualTaxCalculators201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTManualTaxCalculators201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTManualTaxCalculators201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTManualTaxCalculators201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTManualTaxCalculators201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTManualTaxCalculators201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + // GetTaxRules returns the TaxRules field value if set, zero value otherwise. func (o *POSTManualTaxCalculators201ResponseDataRelationships) GetTaxRules() POSTManualTaxCalculators201ResponseDataRelationshipsTaxRules { if o == nil || IsNil(o.TaxRules) { @@ -154,6 +187,9 @@ func (o POSTManualTaxCalculators201ResponseDataRelationships) ToMap() (map[strin if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.TaxRules) { toSerialize["tax_rules"] = o.TaxRules } diff --git a/api/model_post_manual_tax_calculators_201_response_data_relationships_tax_rules.go b/api/model_post_manual_tax_calculators_201_response_data_relationships_tax_rules.go index acd12d5b..a9797871 100644 --- a/api/model_post_manual_tax_calculators_201_response_data_relationships_tax_rules.go +++ b/api/model_post_manual_tax_calculators_201_response_data_relationships_tax_rules.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_manual_tax_calculators_201_response_data_relationships_tax_rules_data.go b/api/model_post_manual_tax_calculators_201_response_data_relationships_tax_rules_data.go index ffd7411a..69350f1f 100644 --- a/api/model_post_manual_tax_calculators_201_response_data_relationships_tax_rules_data.go +++ b/api/model_post_manual_tax_calculators_201_response_data_relationships_tax_rules_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_markets_201_response.go b/api/model_post_markets_201_response.go index ecfe7776..fc2931e5 100644 --- a/api/model_post_markets_201_response.go +++ b/api/model_post_markets_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_markets_201_response_data.go b/api/model_post_markets_201_response_data.go index 4a502829..3d8630fb 100644 --- a/api/model_post_markets_201_response_data.go +++ b/api/model_post_markets_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_markets_201_response_data_attributes.go b/api/model_post_markets_201_response_data_attributes.go index 6bd31501..b7e1a3a0 100644 --- a/api/model_post_markets_201_response_data_attributes.go +++ b/api/model_post_markets_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,19 +20,27 @@ var _ MappedNullable = &POSTMarkets201ResponseDataAttributes{} // POSTMarkets201ResponseDataAttributes struct for POSTMarkets201ResponseDataAttributes type POSTMarkets201ResponseDataAttributes struct { - // The market's internal name + // The market's internal name. Name interface{} `json:"name"` - // The Facebook Pixed ID + // A string that you can use to identify the market (must be unique within the environment). + Code interface{} `json:"code,omitempty"` + // The Facebook Pixed ID. FacebookPixelId interface{} `json:"facebook_pixel_id,omitempty"` - // The checkout URL for this market + // The checkout URL for this market. CheckoutUrl interface{} `json:"checkout_url,omitempty"` // The URL used to overwrite prices by an external source. ExternalPricesUrl interface{} `json:"external_prices_url,omitempty"` // The URL used to validate orders by an external source. ExternalOrderValidationUrl interface{} `json:"external_order_validation_url,omitempty"` + // When specified indicates the maximum number of shipping line items with cost that will be added to an order. + ShippingCostCutoff interface{} `json:"shipping_cost_cutoff,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -82,6 +90,39 @@ func (o *POSTMarkets201ResponseDataAttributes) SetName(v interface{}) { o.Name = v } +// GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTMarkets201ResponseDataAttributes) GetCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTMarkets201ResponseDataAttributes) GetCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return &o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *POSTMarkets201ResponseDataAttributes) HasCode() bool { + if o != nil && IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given interface{} and assigns it to the Code field. +func (o *POSTMarkets201ResponseDataAttributes) SetCode(v interface{}) { + o.Code = v +} + // GetFacebookPixelId returns the FacebookPixelId field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTMarkets201ResponseDataAttributes) GetFacebookPixelId() interface{} { if o == nil { @@ -214,6 +255,105 @@ func (o *POSTMarkets201ResponseDataAttributes) SetExternalOrderValidationUrl(v i o.ExternalOrderValidationUrl = v } +// GetShippingCostCutoff returns the ShippingCostCutoff field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTMarkets201ResponseDataAttributes) GetShippingCostCutoff() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ShippingCostCutoff +} + +// GetShippingCostCutoffOk returns a tuple with the ShippingCostCutoff field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTMarkets201ResponseDataAttributes) GetShippingCostCutoffOk() (*interface{}, bool) { + if o == nil || IsNil(o.ShippingCostCutoff) { + return nil, false + } + return &o.ShippingCostCutoff, true +} + +// HasShippingCostCutoff returns a boolean if a field has been set. +func (o *POSTMarkets201ResponseDataAttributes) HasShippingCostCutoff() bool { + if o != nil && IsNil(o.ShippingCostCutoff) { + return true + } + + return false +} + +// SetShippingCostCutoff gets a reference to the given interface{} and assigns it to the ShippingCostCutoff field. +func (o *POSTMarkets201ResponseDataAttributes) SetShippingCostCutoff(v interface{}) { + o.ShippingCostCutoff = v +} + +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTMarkets201ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTMarkets201ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *POSTMarkets201ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *POSTMarkets201ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTMarkets201ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTMarkets201ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *POSTMarkets201ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *POSTMarkets201ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTMarkets201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -326,6 +466,9 @@ func (o POSTMarkets201ResponseDataAttributes) ToMap() (map[string]interface{}, e if o.Name != nil { toSerialize["name"] = o.Name } + if o.Code != nil { + toSerialize["code"] = o.Code + } if o.FacebookPixelId != nil { toSerialize["facebook_pixel_id"] = o.FacebookPixelId } @@ -338,6 +481,15 @@ func (o POSTMarkets201ResponseDataAttributes) ToMap() (map[string]interface{}, e if o.ExternalOrderValidationUrl != nil { toSerialize["external_order_validation_url"] = o.ExternalOrderValidationUrl } + if o.ShippingCostCutoff != nil { + toSerialize["shipping_cost_cutoff"] = o.ShippingCostCutoff + } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_markets_201_response_data_relationships.go b/api/model_post_markets_201_response_data_relationships.go index 8b85823c..8f1ef001 100644 --- a/api/model_post_markets_201_response_data_relationships.go +++ b/api/model_post_markets_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,13 +20,17 @@ var _ MappedNullable = &POSTMarkets201ResponseDataRelationships{} // POSTMarkets201ResponseDataRelationships struct for POSTMarkets201ResponseDataRelationships type POSTMarkets201ResponseDataRelationships struct { - Merchant *POSTMarkets201ResponseDataRelationshipsMerchant `json:"merchant,omitempty"` - PriceList *POSTMarkets201ResponseDataRelationshipsPriceList `json:"price_list,omitempty"` - InventoryModel *POSTInventoryReturnLocations201ResponseDataRelationshipsInventoryModel `json:"inventory_model,omitempty"` - SubscriptionModel *POSTMarkets201ResponseDataRelationshipsSubscriptionModel `json:"subscription_model,omitempty"` - TaxCalculator *POSTMarkets201ResponseDataRelationshipsTaxCalculator `json:"tax_calculator,omitempty"` - CustomerGroup *POSTCustomers201ResponseDataRelationshipsCustomerGroup `json:"customer_group,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Merchant *POSTMarkets201ResponseDataRelationshipsMerchant `json:"merchant,omitempty"` + PriceList *POSTMarkets201ResponseDataRelationshipsPriceList `json:"price_list,omitempty"` + BasePriceList *POSTMarkets201ResponseDataRelationshipsBasePriceList `json:"base_price_list,omitempty"` + InventoryModel *POSTInventoryReturnLocations201ResponseDataRelationshipsInventoryModel `json:"inventory_model,omitempty"` + SubscriptionModel *POSTMarkets201ResponseDataRelationshipsSubscriptionModel `json:"subscription_model,omitempty"` + TaxCalculator *POSTMarkets201ResponseDataRelationshipsTaxCalculator `json:"tax_calculator,omitempty"` + CustomerGroup *POSTCustomers201ResponseDataRelationshipsCustomerGroup `json:"customer_group,omitempty"` + Geocoder *POSTAddresses201ResponseDataRelationshipsGeocoder `json:"geocoder,omitempty"` + PriceListSchedulers *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers `json:"price_list_schedulers,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTMarkets201ResponseDataRelationships instantiates a new POSTMarkets201ResponseDataRelationships object @@ -110,6 +114,38 @@ func (o *POSTMarkets201ResponseDataRelationships) SetPriceList(v POSTMarkets201R o.PriceList = &v } +// GetBasePriceList returns the BasePriceList field value if set, zero value otherwise. +func (o *POSTMarkets201ResponseDataRelationships) GetBasePriceList() POSTMarkets201ResponseDataRelationshipsBasePriceList { + if o == nil || IsNil(o.BasePriceList) { + var ret POSTMarkets201ResponseDataRelationshipsBasePriceList + return ret + } + return *o.BasePriceList +} + +// GetBasePriceListOk returns a tuple with the BasePriceList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTMarkets201ResponseDataRelationships) GetBasePriceListOk() (*POSTMarkets201ResponseDataRelationshipsBasePriceList, bool) { + if o == nil || IsNil(o.BasePriceList) { + return nil, false + } + return o.BasePriceList, true +} + +// HasBasePriceList returns a boolean if a field has been set. +func (o *POSTMarkets201ResponseDataRelationships) HasBasePriceList() bool { + if o != nil && !IsNil(o.BasePriceList) { + return true + } + + return false +} + +// SetBasePriceList gets a reference to the given POSTMarkets201ResponseDataRelationshipsBasePriceList and assigns it to the BasePriceList field. +func (o *POSTMarkets201ResponseDataRelationships) SetBasePriceList(v POSTMarkets201ResponseDataRelationshipsBasePriceList) { + o.BasePriceList = &v +} + // GetInventoryModel returns the InventoryModel field value if set, zero value otherwise. func (o *POSTMarkets201ResponseDataRelationships) GetInventoryModel() POSTInventoryReturnLocations201ResponseDataRelationshipsInventoryModel { if o == nil || IsNil(o.InventoryModel) { @@ -238,10 +274,74 @@ func (o *POSTMarkets201ResponseDataRelationships) SetCustomerGroup(v POSTCustome o.CustomerGroup = &v } +// GetGeocoder returns the Geocoder field value if set, zero value otherwise. +func (o *POSTMarkets201ResponseDataRelationships) GetGeocoder() POSTAddresses201ResponseDataRelationshipsGeocoder { + if o == nil || IsNil(o.Geocoder) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoder + return ret + } + return *o.Geocoder +} + +// GetGeocoderOk returns a tuple with the Geocoder field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTMarkets201ResponseDataRelationships) GetGeocoderOk() (*POSTAddresses201ResponseDataRelationshipsGeocoder, bool) { + if o == nil || IsNil(o.Geocoder) { + return nil, false + } + return o.Geocoder, true +} + +// HasGeocoder returns a boolean if a field has been set. +func (o *POSTMarkets201ResponseDataRelationships) HasGeocoder() bool { + if o != nil && !IsNil(o.Geocoder) { + return true + } + + return false +} + +// SetGeocoder gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoder and assigns it to the Geocoder field. +func (o *POSTMarkets201ResponseDataRelationships) SetGeocoder(v POSTAddresses201ResponseDataRelationshipsGeocoder) { + o.Geocoder = &v +} + +// GetPriceListSchedulers returns the PriceListSchedulers field value if set, zero value otherwise. +func (o *POSTMarkets201ResponseDataRelationships) GetPriceListSchedulers() POSTMarkets201ResponseDataRelationshipsPriceListSchedulers { + if o == nil || IsNil(o.PriceListSchedulers) { + var ret POSTMarkets201ResponseDataRelationshipsPriceListSchedulers + return ret + } + return *o.PriceListSchedulers +} + +// GetPriceListSchedulersOk returns a tuple with the PriceListSchedulers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTMarkets201ResponseDataRelationships) GetPriceListSchedulersOk() (*POSTMarkets201ResponseDataRelationshipsPriceListSchedulers, bool) { + if o == nil || IsNil(o.PriceListSchedulers) { + return nil, false + } + return o.PriceListSchedulers, true +} + +// HasPriceListSchedulers returns a boolean if a field has been set. +func (o *POSTMarkets201ResponseDataRelationships) HasPriceListSchedulers() bool { + if o != nil && !IsNil(o.PriceListSchedulers) { + return true + } + + return false +} + +// SetPriceListSchedulers gets a reference to the given POSTMarkets201ResponseDataRelationshipsPriceListSchedulers and assigns it to the PriceListSchedulers field. +func (o *POSTMarkets201ResponseDataRelationships) SetPriceListSchedulers(v POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) { + o.PriceListSchedulers = &v +} + // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTMarkets201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTMarkets201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -249,7 +349,7 @@ func (o *POSTMarkets201ResponseDataRelationships) GetAttachments() POSTAvalaraAc // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTMarkets201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTMarkets201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -265,11 +365,43 @@ func (o *POSTMarkets201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTMarkets201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTMarkets201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTMarkets201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTMarkets201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTMarkets201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTMarkets201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTMarkets201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -286,6 +418,9 @@ func (o POSTMarkets201ResponseDataRelationships) ToMap() (map[string]interface{} if !IsNil(o.PriceList) { toSerialize["price_list"] = o.PriceList } + if !IsNil(o.BasePriceList) { + toSerialize["base_price_list"] = o.BasePriceList + } if !IsNil(o.InventoryModel) { toSerialize["inventory_model"] = o.InventoryModel } @@ -298,9 +433,18 @@ func (o POSTMarkets201ResponseDataRelationships) ToMap() (map[string]interface{} if !IsNil(o.CustomerGroup) { toSerialize["customer_group"] = o.CustomerGroup } + if !IsNil(o.Geocoder) { + toSerialize["geocoder"] = o.Geocoder + } + if !IsNil(o.PriceListSchedulers) { + toSerialize["price_list_schedulers"] = o.PriceListSchedulers + } if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_markets_201_response_data_relationships_base_price_list.go b/api/model_post_markets_201_response_data_relationships_base_price_list.go new file mode 100644 index 00000000..5fa65a1f --- /dev/null +++ b/api/model_post_markets_201_response_data_relationships_base_price_list.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTMarkets201ResponseDataRelationshipsBasePriceList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTMarkets201ResponseDataRelationshipsBasePriceList{} + +// POSTMarkets201ResponseDataRelationshipsBasePriceList struct for POSTMarkets201ResponseDataRelationshipsBasePriceList +type POSTMarkets201ResponseDataRelationshipsBasePriceList struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTMarkets201ResponseDataRelationshipsBasePriceListData `json:"data,omitempty"` +} + +// NewPOSTMarkets201ResponseDataRelationshipsBasePriceList instantiates a new POSTMarkets201ResponseDataRelationshipsBasePriceList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTMarkets201ResponseDataRelationshipsBasePriceList() *POSTMarkets201ResponseDataRelationshipsBasePriceList { + this := POSTMarkets201ResponseDataRelationshipsBasePriceList{} + return &this +} + +// NewPOSTMarkets201ResponseDataRelationshipsBasePriceListWithDefaults instantiates a new POSTMarkets201ResponseDataRelationshipsBasePriceList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTMarkets201ResponseDataRelationshipsBasePriceListWithDefaults() *POSTMarkets201ResponseDataRelationshipsBasePriceList { + this := POSTMarkets201ResponseDataRelationshipsBasePriceList{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTMarkets201ResponseDataRelationshipsBasePriceList) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTMarkets201ResponseDataRelationshipsBasePriceList) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTMarkets201ResponseDataRelationshipsBasePriceList) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTMarkets201ResponseDataRelationshipsBasePriceList) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTMarkets201ResponseDataRelationshipsBasePriceList) GetData() POSTMarkets201ResponseDataRelationshipsBasePriceListData { + if o == nil || IsNil(o.Data) { + var ret POSTMarkets201ResponseDataRelationshipsBasePriceListData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTMarkets201ResponseDataRelationshipsBasePriceList) GetDataOk() (*POSTMarkets201ResponseDataRelationshipsBasePriceListData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTMarkets201ResponseDataRelationshipsBasePriceList) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTMarkets201ResponseDataRelationshipsBasePriceListData and assigns it to the Data field. +func (o *POSTMarkets201ResponseDataRelationshipsBasePriceList) SetData(v POSTMarkets201ResponseDataRelationshipsBasePriceListData) { + o.Data = &v +} + +func (o POSTMarkets201ResponseDataRelationshipsBasePriceList) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTMarkets201ResponseDataRelationshipsBasePriceList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTMarkets201ResponseDataRelationshipsBasePriceList struct { + value *POSTMarkets201ResponseDataRelationshipsBasePriceList + isSet bool +} + +func (v NullablePOSTMarkets201ResponseDataRelationshipsBasePriceList) Get() *POSTMarkets201ResponseDataRelationshipsBasePriceList { + return v.value +} + +func (v *NullablePOSTMarkets201ResponseDataRelationshipsBasePriceList) Set(val *POSTMarkets201ResponseDataRelationshipsBasePriceList) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTMarkets201ResponseDataRelationshipsBasePriceList) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTMarkets201ResponseDataRelationshipsBasePriceList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTMarkets201ResponseDataRelationshipsBasePriceList(val *POSTMarkets201ResponseDataRelationshipsBasePriceList) *NullablePOSTMarkets201ResponseDataRelationshipsBasePriceList { + return &NullablePOSTMarkets201ResponseDataRelationshipsBasePriceList{value: val, isSet: true} +} + +func (v NullablePOSTMarkets201ResponseDataRelationshipsBasePriceList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTMarkets201ResponseDataRelationshipsBasePriceList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_markets_201_response_data_relationships_base_price_list_data.go b/api/model_post_markets_201_response_data_relationships_base_price_list_data.go new file mode 100644 index 00000000..5e4f17f5 --- /dev/null +++ b/api/model_post_markets_201_response_data_relationships_base_price_list_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTMarkets201ResponseDataRelationshipsBasePriceListData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTMarkets201ResponseDataRelationshipsBasePriceListData{} + +// POSTMarkets201ResponseDataRelationshipsBasePriceListData struct for POSTMarkets201ResponseDataRelationshipsBasePriceListData +type POSTMarkets201ResponseDataRelationshipsBasePriceListData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTMarkets201ResponseDataRelationshipsBasePriceListData instantiates a new POSTMarkets201ResponseDataRelationshipsBasePriceListData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTMarkets201ResponseDataRelationshipsBasePriceListData() *POSTMarkets201ResponseDataRelationshipsBasePriceListData { + this := POSTMarkets201ResponseDataRelationshipsBasePriceListData{} + return &this +} + +// NewPOSTMarkets201ResponseDataRelationshipsBasePriceListDataWithDefaults instantiates a new POSTMarkets201ResponseDataRelationshipsBasePriceListData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTMarkets201ResponseDataRelationshipsBasePriceListDataWithDefaults() *POSTMarkets201ResponseDataRelationshipsBasePriceListData { + this := POSTMarkets201ResponseDataRelationshipsBasePriceListData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTMarkets201ResponseDataRelationshipsBasePriceListData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTMarkets201ResponseDataRelationshipsBasePriceListData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTMarkets201ResponseDataRelationshipsBasePriceListData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTMarkets201ResponseDataRelationshipsBasePriceListData struct { + value *POSTMarkets201ResponseDataRelationshipsBasePriceListData + isSet bool +} + +func (v NullablePOSTMarkets201ResponseDataRelationshipsBasePriceListData) Get() *POSTMarkets201ResponseDataRelationshipsBasePriceListData { + return v.value +} + +func (v *NullablePOSTMarkets201ResponseDataRelationshipsBasePriceListData) Set(val *POSTMarkets201ResponseDataRelationshipsBasePriceListData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTMarkets201ResponseDataRelationshipsBasePriceListData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTMarkets201ResponseDataRelationshipsBasePriceListData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTMarkets201ResponseDataRelationshipsBasePriceListData(val *POSTMarkets201ResponseDataRelationshipsBasePriceListData) *NullablePOSTMarkets201ResponseDataRelationshipsBasePriceListData { + return &NullablePOSTMarkets201ResponseDataRelationshipsBasePriceListData{value: val, isSet: true} +} + +func (v NullablePOSTMarkets201ResponseDataRelationshipsBasePriceListData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTMarkets201ResponseDataRelationshipsBasePriceListData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_markets_201_response_data_relationships_merchant.go b/api/model_post_markets_201_response_data_relationships_merchant.go index 903e884c..c3b61386 100644 --- a/api/model_post_markets_201_response_data_relationships_merchant.go +++ b/api/model_post_markets_201_response_data_relationships_merchant.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_markets_201_response_data_relationships_merchant_data.go b/api/model_post_markets_201_response_data_relationships_merchant_data.go index 91f1a91f..df652685 100644 --- a/api/model_post_markets_201_response_data_relationships_merchant_data.go +++ b/api/model_post_markets_201_response_data_relationships_merchant_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_markets_201_response_data_relationships_price_list.go b/api/model_post_markets_201_response_data_relationships_price_list.go index 06ef1399..f0764d4f 100644 --- a/api/model_post_markets_201_response_data_relationships_price_list.go +++ b/api/model_post_markets_201_response_data_relationships_price_list.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_markets_201_response_data_relationships_price_list_data.go b/api/model_post_markets_201_response_data_relationships_price_list_data.go index b087e3f0..1dc3c707 100644 --- a/api/model_post_markets_201_response_data_relationships_price_list_data.go +++ b/api/model_post_markets_201_response_data_relationships_price_list_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_markets_201_response_data_relationships_price_list_schedulers.go b/api/model_post_markets_201_response_data_relationships_price_list_schedulers.go new file mode 100644 index 00000000..59eb5842 --- /dev/null +++ b/api/model_post_markets_201_response_data_relationships_price_list_schedulers.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTMarkets201ResponseDataRelationshipsPriceListSchedulers type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTMarkets201ResponseDataRelationshipsPriceListSchedulers{} + +// POSTMarkets201ResponseDataRelationshipsPriceListSchedulers struct for POSTMarkets201ResponseDataRelationshipsPriceListSchedulers +type POSTMarkets201ResponseDataRelationshipsPriceListSchedulers struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData `json:"data,omitempty"` +} + +// NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulers instantiates a new POSTMarkets201ResponseDataRelationshipsPriceListSchedulers object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulers() *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers { + this := POSTMarkets201ResponseDataRelationshipsPriceListSchedulers{} + return &this +} + +// NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulersWithDefaults instantiates a new POSTMarkets201ResponseDataRelationshipsPriceListSchedulers object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulersWithDefaults() *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers { + this := POSTMarkets201ResponseDataRelationshipsPriceListSchedulers{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) GetData() POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData { + if o == nil || IsNil(o.Data) { + var ret POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) GetDataOk() (*POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData and assigns it to the Data field. +func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) SetData(v POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) { + o.Data = &v +} + +func (o POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulers struct { + value *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers + isSet bool +} + +func (v NullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulers) Get() *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers { + return v.value +} + +func (v *NullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulers) Set(val *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulers) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulers) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulers(val *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) *NullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulers { + return &NullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulers{value: val, isSet: true} +} + +func (v NullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulers) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulers) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_markets_201_response_data_relationships_price_list_schedulers_data.go b/api/model_post_markets_201_response_data_relationships_price_list_schedulers_data.go new file mode 100644 index 00000000..3110af93 --- /dev/null +++ b/api/model_post_markets_201_response_data_relationships_price_list_schedulers_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData{} + +// POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData struct for POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData +type POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulersData instantiates a new POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulersData() *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData { + this := POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData{} + return &this +} + +// NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulersDataWithDefaults instantiates a new POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTMarkets201ResponseDataRelationshipsPriceListSchedulersDataWithDefaults() *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData { + this := POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulersData struct { + value *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData + isSet bool +} + +func (v NullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) Get() *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData { + return v.value +} + +func (v *NullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) Set(val *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulersData(val *POSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) *NullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulersData { + return &NullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulersData{value: val, isSet: true} +} + +func (v NullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTMarkets201ResponseDataRelationshipsPriceListSchedulersData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_markets_201_response_data_relationships_subscription_model.go b/api/model_post_markets_201_response_data_relationships_subscription_model.go index 4c183709..68e7ec85 100644 --- a/api/model_post_markets_201_response_data_relationships_subscription_model.go +++ b/api/model_post_markets_201_response_data_relationships_subscription_model.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_markets_201_response_data_relationships_subscription_model_data.go b/api/model_post_markets_201_response_data_relationships_subscription_model_data.go index b7b73af2..25861475 100644 --- a/api/model_post_markets_201_response_data_relationships_subscription_model_data.go +++ b/api/model_post_markets_201_response_data_relationships_subscription_model_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_markets_201_response_data_relationships_tax_calculator.go b/api/model_post_markets_201_response_data_relationships_tax_calculator.go index c4a67b6d..db7d71ed 100644 --- a/api/model_post_markets_201_response_data_relationships_tax_calculator.go +++ b/api/model_post_markets_201_response_data_relationships_tax_calculator.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_markets_201_response_data_relationships_tax_calculator_data.go b/api/model_post_markets_201_response_data_relationships_tax_calculator_data.go index d906e92d..3c07675a 100644 --- a/api/model_post_markets_201_response_data_relationships_tax_calculator_data.go +++ b/api/model_post_markets_201_response_data_relationships_tax_calculator_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_merchants_201_response.go b/api/model_post_merchants_201_response.go index 9ecfae73..929a1b49 100644 --- a/api/model_post_merchants_201_response.go +++ b/api/model_post_merchants_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_merchants_201_response_data.go b/api/model_post_merchants_201_response_data.go index a53e1064..ddae0fbe 100644 --- a/api/model_post_merchants_201_response_data.go +++ b/api/model_post_merchants_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_merchants_201_response_data_attributes.go b/api/model_post_merchants_201_response_data_attributes.go index 96a0ff78..a68b0c52 100644 --- a/api/model_post_merchants_201_response_data_attributes.go +++ b/api/model_post_merchants_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type POSTMerchants201ResponseDataAttributes struct { Name interface{} `json:"name"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_merchants_201_response_data_relationships.go b/api/model_post_merchants_201_response_data_relationships.go index c46db22b..51e4b5d2 100644 --- a/api/model_post_merchants_201_response_data_relationships.go +++ b/api/model_post_merchants_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,9 @@ var _ MappedNullable = &POSTMerchants201ResponseDataRelationships{} // POSTMerchants201ResponseDataRelationships struct for POSTMerchants201ResponseDataRelationships type POSTMerchants201ResponseDataRelationships struct { - Address *POSTCustomerAddresses201ResponseDataRelationshipsAddress `json:"address,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Address *POSTCustomerAddresses201ResponseDataRelationshipsAddress `json:"address,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTMerchants201ResponseDataRelationships instantiates a new POSTMerchants201ResponseDataRelationships object @@ -74,9 +75,9 @@ func (o *POSTMerchants201ResponseDataRelationships) SetAddress(v POSTCustomerAdd } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTMerchants201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTMerchants201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -84,7 +85,7 @@ func (o *POSTMerchants201ResponseDataRelationships) GetAttachments() POSTAvalara // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTMerchants201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTMerchants201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -100,11 +101,43 @@ func (o *POSTMerchants201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTMerchants201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTMerchants201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTMerchants201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTMerchants201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTMerchants201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTMerchants201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTMerchants201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o POSTMerchants201ResponseDataRelationships) ToMap() (map[string]interface if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_order_amount_promotion_rules_201_response.go b/api/model_post_order_amount_promotion_rules_201_response.go index 979302a2..ac4a7760 100644 --- a/api/model_post_order_amount_promotion_rules_201_response.go +++ b/api/model_post_order_amount_promotion_rules_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_amount_promotion_rules_201_response_data.go b/api/model_post_order_amount_promotion_rules_201_response_data.go index 4ab9fa3d..4dc37ae4 100644 --- a/api/model_post_order_amount_promotion_rules_201_response_data.go +++ b/api/model_post_order_amount_promotion_rules_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type POSTOrderAmountPromotionRules201ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *POSTOrderAmountPromotionRules201ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTOrderAmountPromotionRules201ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTOrderAmountPromotionRules201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTCustomPromotionRules201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPOSTOrderAmountPromotionRules201ResponseData instantiates a new POSTOrderAmountPromotionRules201ResponseData object @@ -177,9 +177,9 @@ func (o *POSTOrderAmountPromotionRules201ResponseData) SetAttributes(v POSTOrder } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *POSTOrderAmountPromotionRules201ResponseData) GetRelationships() POSTOrderAmountPromotionRules201ResponseDataRelationships { +func (o *POSTOrderAmountPromotionRules201ResponseData) GetRelationships() POSTCustomPromotionRules201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTOrderAmountPromotionRules201ResponseDataRelationships + var ret POSTCustomPromotionRules201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *POSTOrderAmountPromotionRules201ResponseData) GetRelationships() POSTOr // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTOrderAmountPromotionRules201ResponseData) GetRelationshipsOk() (*POSTOrderAmountPromotionRules201ResponseDataRelationships, bool) { +func (o *POSTOrderAmountPromotionRules201ResponseData) GetRelationshipsOk() (*POSTCustomPromotionRules201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *POSTOrderAmountPromotionRules201ResponseData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given POSTOrderAmountPromotionRules201ResponseDataRelationships and assigns it to the Relationships field. -func (o *POSTOrderAmountPromotionRules201ResponseData) SetRelationships(v POSTOrderAmountPromotionRules201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTCustomPromotionRules201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTOrderAmountPromotionRules201ResponseData) SetRelationships(v POSTCustomPromotionRules201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_post_order_amount_promotion_rules_201_response_data_attributes.go b/api/model_post_order_amount_promotion_rules_201_response_data_attributes.go index af94c6c5..72a9d06a 100644 --- a/api/model_post_order_amount_promotion_rules_201_response_data_attributes.go +++ b/api/model_post_order_amount_promotion_rules_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,12 +22,14 @@ var _ MappedNullable = &POSTOrderAmountPromotionRules201ResponseDataAttributes{} type POSTOrderAmountPromotionRules201ResponseDataAttributes struct { // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` // Apply the promotion only when order is over this amount, in cents. OrderAmountCents interface{} `json:"order_amount_cents,omitempty"` + // Send this attribute if you want to compare the specified amount with order's subtotal (excluding discounts, if any). + UseSubtotal interface{} `json:"use_subtotal,omitempty"` } // NewPOSTOrderAmountPromotionRules201ResponseDataAttributes instantiates a new POSTOrderAmountPromotionRules201ResponseDataAttributes object @@ -179,6 +181,39 @@ func (o *POSTOrderAmountPromotionRules201ResponseDataAttributes) SetOrderAmountC o.OrderAmountCents = v } +// GetUseSubtotal returns the UseSubtotal field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrderAmountPromotionRules201ResponseDataAttributes) GetUseSubtotal() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UseSubtotal +} + +// GetUseSubtotalOk returns a tuple with the UseSubtotal field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrderAmountPromotionRules201ResponseDataAttributes) GetUseSubtotalOk() (*interface{}, bool) { + if o == nil || IsNil(o.UseSubtotal) { + return nil, false + } + return &o.UseSubtotal, true +} + +// HasUseSubtotal returns a boolean if a field has been set. +func (o *POSTOrderAmountPromotionRules201ResponseDataAttributes) HasUseSubtotal() bool { + if o != nil && IsNil(o.UseSubtotal) { + return true + } + + return false +} + +// SetUseSubtotal gets a reference to the given interface{} and assigns it to the UseSubtotal field. +func (o *POSTOrderAmountPromotionRules201ResponseDataAttributes) SetUseSubtotal(v interface{}) { + o.UseSubtotal = v +} + func (o POSTOrderAmountPromotionRules201ResponseDataAttributes) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -201,6 +236,9 @@ func (o POSTOrderAmountPromotionRules201ResponseDataAttributes) ToMap() (map[str if o.OrderAmountCents != nil { toSerialize["order_amount_cents"] = o.OrderAmountCents } + if o.UseSubtotal != nil { + toSerialize["use_subtotal"] = o.UseSubtotal + } return toSerialize, nil } diff --git a/api/model_post_order_amount_promotion_rules_201_response_data_relationships.go b/api/model_post_order_amount_promotion_rules_201_response_data_relationships.go deleted file mode 100644 index 09d3c59b..00000000 --- a/api/model_post_order_amount_promotion_rules_201_response_data_relationships.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the POSTOrderAmountPromotionRules201ResponseDataRelationships type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTOrderAmountPromotionRules201ResponseDataRelationships{} - -// POSTOrderAmountPromotionRules201ResponseDataRelationships struct for POSTOrderAmountPromotionRules201ResponseDataRelationships -type POSTOrderAmountPromotionRules201ResponseDataRelationships struct { - Promotion *POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion `json:"promotion,omitempty"` -} - -// NewPOSTOrderAmountPromotionRules201ResponseDataRelationships instantiates a new POSTOrderAmountPromotionRules201ResponseDataRelationships object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPOSTOrderAmountPromotionRules201ResponseDataRelationships() *POSTOrderAmountPromotionRules201ResponseDataRelationships { - this := POSTOrderAmountPromotionRules201ResponseDataRelationships{} - return &this -} - -// NewPOSTOrderAmountPromotionRules201ResponseDataRelationshipsWithDefaults instantiates a new POSTOrderAmountPromotionRules201ResponseDataRelationships object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPOSTOrderAmountPromotionRules201ResponseDataRelationshipsWithDefaults() *POSTOrderAmountPromotionRules201ResponseDataRelationships { - this := POSTOrderAmountPromotionRules201ResponseDataRelationships{} - return &this -} - -// GetPromotion returns the Promotion field value if set, zero value otherwise. -func (o *POSTOrderAmountPromotionRules201ResponseDataRelationships) GetPromotion() POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion { - if o == nil || IsNil(o.Promotion) { - var ret POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion - return ret - } - return *o.Promotion -} - -// GetPromotionOk returns a tuple with the Promotion field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTOrderAmountPromotionRules201ResponseDataRelationships) GetPromotionOk() (*POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion, bool) { - if o == nil || IsNil(o.Promotion) { - return nil, false - } - return o.Promotion, true -} - -// HasPromotion returns a boolean if a field has been set. -func (o *POSTOrderAmountPromotionRules201ResponseDataRelationships) HasPromotion() bool { - if o != nil && !IsNil(o.Promotion) { - return true - } - - return false -} - -// SetPromotion gets a reference to the given POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion and assigns it to the Promotion field. -func (o *POSTOrderAmountPromotionRules201ResponseDataRelationships) SetPromotion(v POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion) { - o.Promotion = &v -} - -func (o POSTOrderAmountPromotionRules201ResponseDataRelationships) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o POSTOrderAmountPromotionRules201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Promotion) { - toSerialize["promotion"] = o.Promotion - } - return toSerialize, nil -} - -type NullablePOSTOrderAmountPromotionRules201ResponseDataRelationships struct { - value *POSTOrderAmountPromotionRules201ResponseDataRelationships - isSet bool -} - -func (v NullablePOSTOrderAmountPromotionRules201ResponseDataRelationships) Get() *POSTOrderAmountPromotionRules201ResponseDataRelationships { - return v.value -} - -func (v *NullablePOSTOrderAmountPromotionRules201ResponseDataRelationships) Set(val *POSTOrderAmountPromotionRules201ResponseDataRelationships) { - v.value = val - v.isSet = true -} - -func (v NullablePOSTOrderAmountPromotionRules201ResponseDataRelationships) IsSet() bool { - return v.isSet -} - -func (v *NullablePOSTOrderAmountPromotionRules201ResponseDataRelationships) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePOSTOrderAmountPromotionRules201ResponseDataRelationships(val *POSTOrderAmountPromotionRules201ResponseDataRelationships) *NullablePOSTOrderAmountPromotionRules201ResponseDataRelationships { - return &NullablePOSTOrderAmountPromotionRules201ResponseDataRelationships{value: val, isSet: true} -} - -func (v NullablePOSTOrderAmountPromotionRules201ResponseDataRelationships) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePOSTOrderAmountPromotionRules201ResponseDataRelationships) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_post_order_copies_201_response.go b/api/model_post_order_copies_201_response.go index f1c920e0..9e2b1c2d 100644 --- a/api/model_post_order_copies_201_response.go +++ b/api/model_post_order_copies_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_copies_201_response_data.go b/api/model_post_order_copies_201_response_data.go index 5ac0e93e..8f4fd00d 100644 --- a/api/model_post_order_copies_201_response_data.go +++ b/api/model_post_order_copies_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_copies_201_response_data_attributes.go b/api/model_post_order_copies_201_response_data_attributes.go index 9698e1ca..2536b6de 100644 --- a/api/model_post_order_copies_201_response_data_attributes.go +++ b/api/model_post_order_copies_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,12 +26,16 @@ type POSTOrderCopies201ResponseDataAttributes struct { ReuseWallet interface{} `json:"reuse_wallet,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` // Indicates if the source order must be cancelled upon copy. CancelSourceOrder interface{} `json:"cancel_source_order,omitempty"` + // Indicates if promotions got applied upon copy. + ApplyPromotions interface{} `json:"apply_promotions,omitempty"` + // Indicates to ignore invalid coupon code during copy. + IgnoreInvalidCoupon interface{} `json:"ignore_invalid_coupon,omitempty"` } // NewPOSTOrderCopies201ResponseDataAttributes instantiates a new POSTOrderCopies201ResponseDataAttributes object @@ -249,6 +253,72 @@ func (o *POSTOrderCopies201ResponseDataAttributes) SetCancelSourceOrder(v interf o.CancelSourceOrder = v } +// GetApplyPromotions returns the ApplyPromotions field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrderCopies201ResponseDataAttributes) GetApplyPromotions() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ApplyPromotions +} + +// GetApplyPromotionsOk returns a tuple with the ApplyPromotions field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrderCopies201ResponseDataAttributes) GetApplyPromotionsOk() (*interface{}, bool) { + if o == nil || IsNil(o.ApplyPromotions) { + return nil, false + } + return &o.ApplyPromotions, true +} + +// HasApplyPromotions returns a boolean if a field has been set. +func (o *POSTOrderCopies201ResponseDataAttributes) HasApplyPromotions() bool { + if o != nil && IsNil(o.ApplyPromotions) { + return true + } + + return false +} + +// SetApplyPromotions gets a reference to the given interface{} and assigns it to the ApplyPromotions field. +func (o *POSTOrderCopies201ResponseDataAttributes) SetApplyPromotions(v interface{}) { + o.ApplyPromotions = v +} + +// GetIgnoreInvalidCoupon returns the IgnoreInvalidCoupon field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrderCopies201ResponseDataAttributes) GetIgnoreInvalidCoupon() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.IgnoreInvalidCoupon +} + +// GetIgnoreInvalidCouponOk returns a tuple with the IgnoreInvalidCoupon field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrderCopies201ResponseDataAttributes) GetIgnoreInvalidCouponOk() (*interface{}, bool) { + if o == nil || IsNil(o.IgnoreInvalidCoupon) { + return nil, false + } + return &o.IgnoreInvalidCoupon, true +} + +// HasIgnoreInvalidCoupon returns a boolean if a field has been set. +func (o *POSTOrderCopies201ResponseDataAttributes) HasIgnoreInvalidCoupon() bool { + if o != nil && IsNil(o.IgnoreInvalidCoupon) { + return true + } + + return false +} + +// SetIgnoreInvalidCoupon gets a reference to the given interface{} and assigns it to the IgnoreInvalidCoupon field. +func (o *POSTOrderCopies201ResponseDataAttributes) SetIgnoreInvalidCoupon(v interface{}) { + o.IgnoreInvalidCoupon = v +} + func (o POSTOrderCopies201ResponseDataAttributes) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -277,6 +347,12 @@ func (o POSTOrderCopies201ResponseDataAttributes) ToMap() (map[string]interface{ if o.CancelSourceOrder != nil { toSerialize["cancel_source_order"] = o.CancelSourceOrder } + if o.ApplyPromotions != nil { + toSerialize["apply_promotions"] = o.ApplyPromotions + } + if o.IgnoreInvalidCoupon != nil { + toSerialize["ignore_invalid_coupon"] = o.IgnoreInvalidCoupon + } return toSerialize, nil } diff --git a/api/model_post_order_copies_201_response_data_relationships.go b/api/model_post_order_copies_201_response_data_relationships.go index f25b477d..7d8a4e81 100644 --- a/api/model_post_order_copies_201_response_data_relationships.go +++ b/api/model_post_order_copies_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,10 +20,10 @@ var _ MappedNullable = &POSTOrderCopies201ResponseDataRelationships{} // POSTOrderCopies201ResponseDataRelationships struct for POSTOrderCopies201ResponseDataRelationships type POSTOrderCopies201ResponseDataRelationships struct { - SourceOrder *POSTOrderCopies201ResponseDataRelationshipsSourceOrder `json:"source_order,omitempty"` - TargetOrder *POSTOrderCopies201ResponseDataRelationshipsTargetOrder `json:"target_order,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` - OrderSubscription *POSTOrderCopies201ResponseDataRelationshipsOrderSubscription `json:"order_subscription,omitempty"` + SourceOrder *POSTOrderCopies201ResponseDataRelationshipsSourceOrder `json:"source_order,omitempty"` + TargetOrder *POSTOrderCopies201ResponseDataRelationshipsTargetOrder `json:"target_order,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + OrderSubscription *POSTOrderCopies201ResponseDataRelationshipsOrderSubscription `json:"order_subscription,omitempty"` } // NewPOSTOrderCopies201ResponseDataRelationships instantiates a new POSTOrderCopies201ResponseDataRelationships object @@ -108,9 +108,9 @@ func (o *POSTOrderCopies201ResponseDataRelationships) SetTargetOrder(v POSTOrder } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *POSTOrderCopies201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { +func (o *POSTOrderCopies201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents + var ret POSTAddresses201ResponseDataRelationshipsEvents return ret } return *o.Events @@ -118,7 +118,7 @@ func (o *POSTOrderCopies201ResponseDataRelationships) GetEvents() GETAuthorizati // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTOrderCopies201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { +func (o *POSTOrderCopies201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -134,8 +134,8 @@ func (o *POSTOrderCopies201ResponseDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *POSTOrderCopies201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTOrderCopies201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { o.Events = &v } diff --git a/api/model_post_order_copies_201_response_data_relationships_order_subscription.go b/api/model_post_order_copies_201_response_data_relationships_order_subscription.go index c15988ad..15ab1546 100644 --- a/api/model_post_order_copies_201_response_data_relationships_order_subscription.go +++ b/api/model_post_order_copies_201_response_data_relationships_order_subscription.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_copies_201_response_data_relationships_order_subscription_data.go b/api/model_post_order_copies_201_response_data_relationships_order_subscription_data.go index c5c7c673..94107454 100644 --- a/api/model_post_order_copies_201_response_data_relationships_order_subscription_data.go +++ b/api/model_post_order_copies_201_response_data_relationships_order_subscription_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_copies_201_response_data_relationships_source_order.go b/api/model_post_order_copies_201_response_data_relationships_source_order.go index 467244a6..6aaa9176 100644 --- a/api/model_post_order_copies_201_response_data_relationships_source_order.go +++ b/api/model_post_order_copies_201_response_data_relationships_source_order.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_copies_201_response_data_relationships_source_order_data.go b/api/model_post_order_copies_201_response_data_relationships_source_order_data.go index 57d9b5f4..967dca07 100644 --- a/api/model_post_order_copies_201_response_data_relationships_source_order_data.go +++ b/api/model_post_order_copies_201_response_data_relationships_source_order_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_copies_201_response_data_relationships_target_order.go b/api/model_post_order_copies_201_response_data_relationships_target_order.go index eeb6d7cb..49e75b7f 100644 --- a/api/model_post_order_copies_201_response_data_relationships_target_order.go +++ b/api/model_post_order_copies_201_response_data_relationships_target_order.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_copies_201_response_data_relationships_target_order_data.go b/api/model_post_order_copies_201_response_data_relationships_target_order_data.go index ec388448..3668b620 100644 --- a/api/model_post_order_copies_201_response_data_relationships_target_order_data.go +++ b/api/model_post_order_copies_201_response_data_relationships_target_order_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_subscription_items_201_response.go b/api/model_post_order_subscription_items_201_response.go index 5626378f..0823bffc 100644 --- a/api/model_post_order_subscription_items_201_response.go +++ b/api/model_post_order_subscription_items_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_subscription_items_201_response_data.go b/api/model_post_order_subscription_items_201_response_data.go index 26139058..c9084f3a 100644 --- a/api/model_post_order_subscription_items_201_response_data.go +++ b/api/model_post_order_subscription_items_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_subscription_items_201_response_data_attributes.go b/api/model_post_order_subscription_items_201_response_data_attributes.go index d8ee15ba..5338e2a3 100644 --- a/api/model_post_order_subscription_items_201_response_data_attributes.go +++ b/api/model_post_order_subscription_items_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -30,7 +30,7 @@ type POSTOrderSubscriptionItems201ResponseDataAttributes struct { UnitAmountCents interface{} `json:"unit_amount_cents,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_order_subscription_items_201_response_data_relationships.go b/api/model_post_order_subscription_items_201_response_data_relationships.go index d274825a..decca985 100644 --- a/api/model_post_order_subscription_items_201_response_data_relationships.go +++ b/api/model_post_order_subscription_items_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,12 @@ var _ MappedNullable = &POSTOrderSubscriptionItems201ResponseDataRelationships{} // POSTOrderSubscriptionItems201ResponseDataRelationships struct for POSTOrderSubscriptionItems201ResponseDataRelationships type POSTOrderSubscriptionItems201ResponseDataRelationships struct { - OrderSubscription *POSTOrderCopies201ResponseDataRelationshipsOrderSubscription `json:"order_subscription,omitempty"` - Item *POSTLineItems201ResponseDataRelationshipsItem `json:"item,omitempty"` + OrderSubscription *POSTOrderCopies201ResponseDataRelationshipsOrderSubscription `json:"order_subscription,omitempty"` + Item *POSTLineItems201ResponseDataRelationshipsItem `json:"item,omitempty"` + Sku *POSTInStockSubscriptions201ResponseDataRelationshipsSku `json:"sku,omitempty"` + Bundle *POSTLineItems201ResponseDataRelationshipsBundle `json:"bundle,omitempty"` + Adjustment *POSTLineItems201ResponseDataRelationshipsAdjustment `json:"adjustment,omitempty"` + SourceLineItem *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem `json:"source_line_item,omitempty"` } // NewPOSTOrderSubscriptionItems201ResponseDataRelationships instantiates a new POSTOrderSubscriptionItems201ResponseDataRelationships object @@ -105,6 +109,134 @@ func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) SetItem(v POSTL o.Item = &v } +// GetSku returns the Sku field value if set, zero value otherwise. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) GetSku() POSTInStockSubscriptions201ResponseDataRelationshipsSku { + if o == nil || IsNil(o.Sku) { + var ret POSTInStockSubscriptions201ResponseDataRelationshipsSku + return ret + } + return *o.Sku +} + +// GetSkuOk returns a tuple with the Sku field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) GetSkuOk() (*POSTInStockSubscriptions201ResponseDataRelationshipsSku, bool) { + if o == nil || IsNil(o.Sku) { + return nil, false + } + return o.Sku, true +} + +// HasSku returns a boolean if a field has been set. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) HasSku() bool { + if o != nil && !IsNil(o.Sku) { + return true + } + + return false +} + +// SetSku gets a reference to the given POSTInStockSubscriptions201ResponseDataRelationshipsSku and assigns it to the Sku field. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) SetSku(v POSTInStockSubscriptions201ResponseDataRelationshipsSku) { + o.Sku = &v +} + +// GetBundle returns the Bundle field value if set, zero value otherwise. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) GetBundle() POSTLineItems201ResponseDataRelationshipsBundle { + if o == nil || IsNil(o.Bundle) { + var ret POSTLineItems201ResponseDataRelationshipsBundle + return ret + } + return *o.Bundle +} + +// GetBundleOk returns a tuple with the Bundle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) GetBundleOk() (*POSTLineItems201ResponseDataRelationshipsBundle, bool) { + if o == nil || IsNil(o.Bundle) { + return nil, false + } + return o.Bundle, true +} + +// HasBundle returns a boolean if a field has been set. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) HasBundle() bool { + if o != nil && !IsNil(o.Bundle) { + return true + } + + return false +} + +// SetBundle gets a reference to the given POSTLineItems201ResponseDataRelationshipsBundle and assigns it to the Bundle field. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) SetBundle(v POSTLineItems201ResponseDataRelationshipsBundle) { + o.Bundle = &v +} + +// GetAdjustment returns the Adjustment field value if set, zero value otherwise. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) GetAdjustment() POSTLineItems201ResponseDataRelationshipsAdjustment { + if o == nil || IsNil(o.Adjustment) { + var ret POSTLineItems201ResponseDataRelationshipsAdjustment + return ret + } + return *o.Adjustment +} + +// GetAdjustmentOk returns a tuple with the Adjustment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) GetAdjustmentOk() (*POSTLineItems201ResponseDataRelationshipsAdjustment, bool) { + if o == nil || IsNil(o.Adjustment) { + return nil, false + } + return o.Adjustment, true +} + +// HasAdjustment returns a boolean if a field has been set. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) HasAdjustment() bool { + if o != nil && !IsNil(o.Adjustment) { + return true + } + + return false +} + +// SetAdjustment gets a reference to the given POSTLineItems201ResponseDataRelationshipsAdjustment and assigns it to the Adjustment field. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) SetAdjustment(v POSTLineItems201ResponseDataRelationshipsAdjustment) { + o.Adjustment = &v +} + +// GetSourceLineItem returns the SourceLineItem field value if set, zero value otherwise. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) GetSourceLineItem() POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem { + if o == nil || IsNil(o.SourceLineItem) { + var ret POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem + return ret + } + return *o.SourceLineItem +} + +// GetSourceLineItemOk returns a tuple with the SourceLineItem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) GetSourceLineItemOk() (*POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem, bool) { + if o == nil || IsNil(o.SourceLineItem) { + return nil, false + } + return o.SourceLineItem, true +} + +// HasSourceLineItem returns a boolean if a field has been set. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) HasSourceLineItem() bool { + if o != nil && !IsNil(o.SourceLineItem) { + return true + } + + return false +} + +// SetSourceLineItem gets a reference to the given POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem and assigns it to the SourceLineItem field. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationships) SetSourceLineItem(v POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) { + o.SourceLineItem = &v +} + func (o POSTOrderSubscriptionItems201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +253,18 @@ func (o POSTOrderSubscriptionItems201ResponseDataRelationships) ToMap() (map[str if !IsNil(o.Item) { toSerialize["item"] = o.Item } + if !IsNil(o.Sku) { + toSerialize["sku"] = o.Sku + } + if !IsNil(o.Bundle) { + toSerialize["bundle"] = o.Bundle + } + if !IsNil(o.Adjustment) { + toSerialize["adjustment"] = o.Adjustment + } + if !IsNil(o.SourceLineItem) { + toSerialize["source_line_item"] = o.SourceLineItem + } return toSerialize, nil } diff --git a/api/model_post_order_subscription_items_201_response_data_relationships_source_line_item.go b/api/model_post_order_subscription_items_201_response_data_relationships_source_line_item.go new file mode 100644 index 00000000..126de3e5 --- /dev/null +++ b/api/model_post_order_subscription_items_201_response_data_relationships_source_line_item.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem{} + +// POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem struct for POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem +type POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData `json:"data,omitempty"` +} + +// NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem instantiates a new POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem() *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem { + this := POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem{} + return &this +} + +// NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemWithDefaults instantiates a new POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemWithDefaults() *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem { + this := POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) GetData() POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData { + if o == nil || IsNil(o.Data) { + var ret POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) GetDataOk() (*POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData and assigns it to the Data field. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) SetData(v POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) { + o.Data = &v +} + +func (o POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem struct { + value *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem + isSet bool +} + +func (v NullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) Get() *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem { + return v.value +} + +func (v *NullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) Set(val *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem(val *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) *NullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem { + return &NullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem{value: val, isSet: true} +} + +func (v NullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_order_subscription_items_201_response_data_relationships_source_line_item_data.go b/api/model_post_order_subscription_items_201_response_data_relationships_source_line_item_data.go new file mode 100644 index 00000000..8e55798f --- /dev/null +++ b/api/model_post_order_subscription_items_201_response_data_relationships_source_line_item_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData{} + +// POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData struct for POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData +type POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData instantiates a new POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData() *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData { + this := POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData{} + return &this +} + +// NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemDataWithDefaults instantiates a new POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemDataWithDefaults() *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData { + this := POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData struct { + value *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData + isSet bool +} + +func (v NullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) Get() *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData { + return v.value +} + +func (v *NullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) Set(val *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData(val *POSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) *NullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData { + return &NullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData{value: val, isSet: true} +} + +func (v NullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTOrderSubscriptionItems201ResponseDataRelationshipsSourceLineItemData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_order_subscriptions_201_response.go b/api/model_post_order_subscriptions_201_response.go index 655a99c1..d75379cb 100644 --- a/api/model_post_order_subscriptions_201_response.go +++ b/api/model_post_order_subscriptions_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_subscriptions_201_response_data.go b/api/model_post_order_subscriptions_201_response_data.go index c6b0b821..d344c1a4 100644 --- a/api/model_post_order_subscriptions_201_response_data.go +++ b/api/model_post_order_subscriptions_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_subscriptions_201_response_data_attributes.go b/api/model_post_order_subscriptions_201_response_data_attributes.go index 8f5ba0f1..83c79dfc 100644 --- a/api/model_post_order_subscriptions_201_response_data_attributes.go +++ b/api/model_post_order_subscriptions_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,15 +24,17 @@ type POSTOrderSubscriptions201ResponseDataAttributes struct { Frequency interface{} `json:"frequency"` // Indicates if the subscription will be activated considering the placed source order as its first run. ActivateBySourceOrder interface{} `json:"activate_by_source_order,omitempty"` + // Indicates if the subscription created orders are automatically placed at the end of the copy. + PlaceTargetOrder interface{} `json:"place_target_order,omitempty"` + // Indicates the number of hours the renewal alert will be triggered before the subscription next run. Must be included between 1 and 720 hours. + RenewalAlertPeriod interface{} `json:"renewal_alert_period,omitempty"` // The activation date/time of this subscription. StartsAt interface{} `json:"starts_at,omitempty"` // The expiration date/time of this subscription (must be after starts_at). ExpiresAt interface{} `json:"expires_at,omitempty"` - // The subscription options used to create the order (check order_factories for more information). For subscriptions the `place_target_order` is enabled by default, specify custom options to overwrite it. - Options interface{} `json:"options,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -115,6 +117,72 @@ func (o *POSTOrderSubscriptions201ResponseDataAttributes) SetActivateBySourceOrd o.ActivateBySourceOrder = v } +// GetPlaceTargetOrder returns the PlaceTargetOrder field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrderSubscriptions201ResponseDataAttributes) GetPlaceTargetOrder() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PlaceTargetOrder +} + +// GetPlaceTargetOrderOk returns a tuple with the PlaceTargetOrder field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrderSubscriptions201ResponseDataAttributes) GetPlaceTargetOrderOk() (*interface{}, bool) { + if o == nil || IsNil(o.PlaceTargetOrder) { + return nil, false + } + return &o.PlaceTargetOrder, true +} + +// HasPlaceTargetOrder returns a boolean if a field has been set. +func (o *POSTOrderSubscriptions201ResponseDataAttributes) HasPlaceTargetOrder() bool { + if o != nil && IsNil(o.PlaceTargetOrder) { + return true + } + + return false +} + +// SetPlaceTargetOrder gets a reference to the given interface{} and assigns it to the PlaceTargetOrder field. +func (o *POSTOrderSubscriptions201ResponseDataAttributes) SetPlaceTargetOrder(v interface{}) { + o.PlaceTargetOrder = v +} + +// GetRenewalAlertPeriod returns the RenewalAlertPeriod field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrderSubscriptions201ResponseDataAttributes) GetRenewalAlertPeriod() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RenewalAlertPeriod +} + +// GetRenewalAlertPeriodOk returns a tuple with the RenewalAlertPeriod field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrderSubscriptions201ResponseDataAttributes) GetRenewalAlertPeriodOk() (*interface{}, bool) { + if o == nil || IsNil(o.RenewalAlertPeriod) { + return nil, false + } + return &o.RenewalAlertPeriod, true +} + +// HasRenewalAlertPeriod returns a boolean if a field has been set. +func (o *POSTOrderSubscriptions201ResponseDataAttributes) HasRenewalAlertPeriod() bool { + if o != nil && IsNil(o.RenewalAlertPeriod) { + return true + } + + return false +} + +// SetRenewalAlertPeriod gets a reference to the given interface{} and assigns it to the RenewalAlertPeriod field. +func (o *POSTOrderSubscriptions201ResponseDataAttributes) SetRenewalAlertPeriod(v interface{}) { + o.RenewalAlertPeriod = v +} + // GetStartsAt returns the StartsAt field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTOrderSubscriptions201ResponseDataAttributes) GetStartsAt() interface{} { if o == nil { @@ -181,39 +249,6 @@ func (o *POSTOrderSubscriptions201ResponseDataAttributes) SetExpiresAt(v interfa o.ExpiresAt = v } -// GetOptions returns the Options field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTOrderSubscriptions201ResponseDataAttributes) GetOptions() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Options -} - -// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTOrderSubscriptions201ResponseDataAttributes) GetOptionsOk() (*interface{}, bool) { - if o == nil || IsNil(o.Options) { - return nil, false - } - return &o.Options, true -} - -// HasOptions returns a boolean if a field has been set. -func (o *POSTOrderSubscriptions201ResponseDataAttributes) HasOptions() bool { - if o != nil && IsNil(o.Options) { - return true - } - - return false -} - -// SetOptions gets a reference to the given interface{} and assigns it to the Options field. -func (o *POSTOrderSubscriptions201ResponseDataAttributes) SetOptions(v interface{}) { - o.Options = v -} - // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTOrderSubscriptions201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -329,15 +364,18 @@ func (o POSTOrderSubscriptions201ResponseDataAttributes) ToMap() (map[string]int if o.ActivateBySourceOrder != nil { toSerialize["activate_by_source_order"] = o.ActivateBySourceOrder } + if o.PlaceTargetOrder != nil { + toSerialize["place_target_order"] = o.PlaceTargetOrder + } + if o.RenewalAlertPeriod != nil { + toSerialize["renewal_alert_period"] = o.RenewalAlertPeriod + } if o.StartsAt != nil { toSerialize["starts_at"] = o.StartsAt } if o.ExpiresAt != nil { toSerialize["expires_at"] = o.ExpiresAt } - if o.Options != nil { - toSerialize["options"] = o.Options - } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_order_subscriptions_201_response_data_relationships.go b/api/model_post_order_subscriptions_201_response_data_relationships.go index ec468789..e7feb0c3 100644 --- a/api/model_post_order_subscriptions_201_response_data_relationships.go +++ b/api/model_post_order_subscriptions_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -27,10 +27,11 @@ type POSTOrderSubscriptions201ResponseDataRelationships struct { CustomerPaymentSource *POSTOrderSubscriptions201ResponseDataRelationshipsCustomerPaymentSource `json:"customer_payment_source,omitempty"` OrderSubscriptionItems *POSTOrderSubscriptions201ResponseDataRelationshipsOrderSubscriptionItems `json:"order_subscription_items,omitempty"` OrderFactories *POSTOrderSubscriptions201ResponseDataRelationshipsOrderFactories `json:"order_factories,omitempty"` - OrderCopies *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies `json:"order_copies,omitempty"` RecurringOrderCopies *POSTOrderSubscriptions201ResponseDataRelationshipsRecurringOrderCopies `json:"recurring_order_copies,omitempty"` Orders *POSTCustomers201ResponseDataRelationshipsOrders `json:"orders,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Tags *POSTAddresses201ResponseDataRelationshipsTags `json:"tags,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTOrderSubscriptions201ResponseDataRelationships instantiates a new POSTOrderSubscriptions201ResponseDataRelationships object @@ -274,38 +275,6 @@ func (o *POSTOrderSubscriptions201ResponseDataRelationships) SetOrderFactories(v o.OrderFactories = &v } -// GetOrderCopies returns the OrderCopies field value if set, zero value otherwise. -func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetOrderCopies() POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies { - if o == nil || IsNil(o.OrderCopies) { - var ret POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies - return ret - } - return *o.OrderCopies -} - -// GetOrderCopiesOk returns a tuple with the OrderCopies field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetOrderCopiesOk() (*POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies, bool) { - if o == nil || IsNil(o.OrderCopies) { - return nil, false - } - return o.OrderCopies, true -} - -// HasOrderCopies returns a boolean if a field has been set. -func (o *POSTOrderSubscriptions201ResponseDataRelationships) HasOrderCopies() bool { - if o != nil && !IsNil(o.OrderCopies) { - return true - } - - return false -} - -// SetOrderCopies gets a reference to the given POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies and assigns it to the OrderCopies field. -func (o *POSTOrderSubscriptions201ResponseDataRelationships) SetOrderCopies(v POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) { - o.OrderCopies = &v -} - // GetRecurringOrderCopies returns the RecurringOrderCopies field value if set, zero value otherwise. func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetRecurringOrderCopies() POSTOrderSubscriptions201ResponseDataRelationshipsRecurringOrderCopies { if o == nil || IsNil(o.RecurringOrderCopies) { @@ -371,9 +340,9 @@ func (o *POSTOrderSubscriptions201ResponseDataRelationships) SetOrders(v POSTCus } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { +func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents + var ret POSTAddresses201ResponseDataRelationshipsEvents return ret } return *o.Events @@ -381,7 +350,7 @@ func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetEvents() GETAuth // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { +func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -397,11 +366,75 @@ func (o *POSTOrderSubscriptions201ResponseDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *POSTOrderSubscriptions201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTOrderSubscriptions201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { o.Events = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret POSTAddresses201ResponseDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *POSTOrderSubscriptions201ResponseDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given POSTAddresses201ResponseDataRelationshipsTags and assigns it to the Tags field. +func (o *POSTOrderSubscriptions201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrderSubscriptions201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTOrderSubscriptions201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTOrderSubscriptions201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTOrderSubscriptions201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -433,9 +466,6 @@ func (o POSTOrderSubscriptions201ResponseDataRelationships) ToMap() (map[string] if !IsNil(o.OrderFactories) { toSerialize["order_factories"] = o.OrderFactories } - if !IsNil(o.OrderCopies) { - toSerialize["order_copies"] = o.OrderCopies - } if !IsNil(o.RecurringOrderCopies) { toSerialize["recurring_order_copies"] = o.RecurringOrderCopies } @@ -445,6 +475,12 @@ func (o POSTOrderSubscriptions201ResponseDataRelationships) ToMap() (map[string] if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_order_subscriptions_201_response_data_relationships_customer_payment_source.go b/api/model_post_order_subscriptions_201_response_data_relationships_customer_payment_source.go index 930e652a..e1ae5a0b 100644 --- a/api/model_post_order_subscriptions_201_response_data_relationships_customer_payment_source.go +++ b/api/model_post_order_subscriptions_201_response_data_relationships_customer_payment_source.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_subscriptions_201_response_data_relationships_customer_payment_source_data.go b/api/model_post_order_subscriptions_201_response_data_relationships_customer_payment_source_data.go index ab8ffe07..40c9dd75 100644 --- a/api/model_post_order_subscriptions_201_response_data_relationships_customer_payment_source_data.go +++ b/api/model_post_order_subscriptions_201_response_data_relationships_customer_payment_source_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_subscriptions_201_response_data_relationships_order_copies.go b/api/model_post_order_subscriptions_201_response_data_relationships_order_copies.go deleted file mode 100644 index 9dbbc895..00000000 --- a/api/model_post_order_subscriptions_201_response_data_relationships_order_copies.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies{} - -// POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies struct for POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies -type POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies struct { - Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` - Data *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData `json:"data,omitempty"` -} - -// NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies instantiates a new POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies() *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies { - this := POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies{} - return &this -} - -// NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesWithDefaults instantiates a new POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesWithDefaults() *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies { - this := POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies{} - return &this -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { - if o == nil || IsNil(o.Links) { - var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. -func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { - o.Links = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) GetData() POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData { - if o == nil || IsNil(o.Data) { - var ret POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) GetDataOk() (*POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData and assigns it to the Data field. -func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) SetData(v POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) { - o.Data = &v -} - -func (o POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies struct { - value *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies - isSet bool -} - -func (v NullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) Get() *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies { - return v.value -} - -func (v *NullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) Set(val *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) { - v.value = val - v.isSet = true -} - -func (v NullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) IsSet() bool { - return v.isSet -} - -func (v *NullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies(val *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) *NullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies { - return &NullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies{value: val, isSet: true} -} - -func (v NullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_post_order_subscriptions_201_response_data_relationships_order_copies_data.go b/api/model_post_order_subscriptions_201_response_data_relationships_order_copies_data.go deleted file mode 100644 index 05b48f59..00000000 --- a/api/model_post_order_subscriptions_201_response_data_relationships_order_copies_data.go +++ /dev/null @@ -1,165 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData{} - -// POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData struct for POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData -type POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData struct { - // The resource's type - Type interface{} `json:"type,omitempty"` - // The resource ID - Id interface{} `json:"id,omitempty"` -} - -// NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData instantiates a new POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData() *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData { - this := POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData{} - return &this -} - -// NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesDataWithDefaults instantiates a new POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesDataWithDefaults() *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData { - this := POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) GetType() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) GetTypeOk() (*interface{}, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return &o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) HasType() bool { - if o != nil && IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) SetType(v interface{}) { - o.Type = v -} - -// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) GetId() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) GetIdOk() (*interface{}, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return &o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) HasId() bool { - if o != nil && IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) SetId(v interface{}) { - o.Id = v -} - -func (o POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if o.Type != nil { - toSerialize["type"] = o.Type - } - if o.Id != nil { - toSerialize["id"] = o.Id - } - return toSerialize, nil -} - -type NullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData struct { - value *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData - isSet bool -} - -func (v NullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) Get() *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData { - return v.value -} - -func (v *NullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) Set(val *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) { - v.value = val - v.isSet = true -} - -func (v NullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) IsSet() bool { - return v.isSet -} - -func (v *NullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData(val *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) *NullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData { - return &NullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData{value: val, isSet: true} -} - -func (v NullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePOSTOrderSubscriptions201ResponseDataRelationshipsOrderCopiesData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_post_order_subscriptions_201_response_data_relationships_order_factories.go b/api/model_post_order_subscriptions_201_response_data_relationships_order_factories.go index 5f804959..99e55b6e 100644 --- a/api/model_post_order_subscriptions_201_response_data_relationships_order_factories.go +++ b/api/model_post_order_subscriptions_201_response_data_relationships_order_factories.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_subscriptions_201_response_data_relationships_order_factories_data.go b/api/model_post_order_subscriptions_201_response_data_relationships_order_factories_data.go index 5b814f59..6c43b1b1 100644 --- a/api/model_post_order_subscriptions_201_response_data_relationships_order_factories_data.go +++ b/api/model_post_order_subscriptions_201_response_data_relationships_order_factories_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_subscriptions_201_response_data_relationships_order_subscription_items.go b/api/model_post_order_subscriptions_201_response_data_relationships_order_subscription_items.go index 878285d9..cda2cd5d 100644 --- a/api/model_post_order_subscriptions_201_response_data_relationships_order_subscription_items.go +++ b/api/model_post_order_subscriptions_201_response_data_relationships_order_subscription_items.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_subscriptions_201_response_data_relationships_order_subscription_items_data.go b/api/model_post_order_subscriptions_201_response_data_relationships_order_subscription_items_data.go index 4825ad11..0536eb4c 100644 --- a/api/model_post_order_subscriptions_201_response_data_relationships_order_subscription_items_data.go +++ b/api/model_post_order_subscriptions_201_response_data_relationships_order_subscription_items_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_subscriptions_201_response_data_relationships_recurring_order_copies.go b/api/model_post_order_subscriptions_201_response_data_relationships_recurring_order_copies.go index d9aa139e..c4775f3a 100644 --- a/api/model_post_order_subscriptions_201_response_data_relationships_recurring_order_copies.go +++ b/api/model_post_order_subscriptions_201_response_data_relationships_recurring_order_copies.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_order_subscriptions_201_response_data_relationships_recurring_order_copies_data.go b/api/model_post_order_subscriptions_201_response_data_relationships_recurring_order_copies_data.go index 08da7f1f..62824543 100644 --- a/api/model_post_order_subscriptions_201_response_data_relationships_recurring_order_copies_data.go +++ b/api/model_post_order_subscriptions_201_response_data_relationships_recurring_order_copies_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response.go b/api/model_post_orders_201_response.go index a4dc65e0..71036f1a 100644 --- a/api/model_post_orders_201_response.go +++ b/api/model_post_orders_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data.go b/api/model_post_orders_201_response_data.go index a1376e19..12f2b5c6 100644 --- a/api/model_post_orders_201_response_data.go +++ b/api/model_post_orders_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_attributes.go b/api/model_post_orders_201_response_data_attributes.go index 28150698..68733459 100644 --- a/api/model_post_orders_201_response_data_attributes.go +++ b/api/model_post_orders_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,14 @@ var _ MappedNullable = &POSTOrders201ResponseDataAttributes{} // POSTOrders201ResponseDataAttributes struct for POSTOrders201ResponseDataAttributes type POSTOrders201ResponseDataAttributes struct { + // The order identifier. Can be specified if unique within the organization (for enterprise plans only), default to numeric ID otherwise. Cannot be passed by sales channels. + Number interface{} `json:"number,omitempty"` + // The affiliate code, if any, the seller will transfer commission on shop by link transactions. + AffiliateCode interface{} `json:"affiliate_code,omitempty"` // Save this attribute as 'false' if you want prevent the order to be refreshed automatically at each change (much faster). Autorefresh interface{} `json:"autorefresh,omitempty"` + // Save this attribute as 'true' if you want perform the place asynchronously. Payment errors, if any, will be collected afterwards. + PlaceAsync interface{} `json:"place_async,omitempty"` // Indicates if the order has been placed as guest. Guest interface{} `json:"guest,omitempty"` // The email address of the associated customer. When creating or updating an order, this is a shortcut to find or create the associated customer by email. @@ -30,14 +36,20 @@ type POSTOrders201ResponseDataAttributes struct { CustomerPassword interface{} `json:"customer_password,omitempty"` // The preferred language code (ISO 639-1) to be used when communicating with the customer. This can be useful when sending the order to 3rd party marketing tools and CRMs. If the language is supported, the hosted checkout will be localized accordingly. LanguageCode interface{} `json:"language_code,omitempty"` - // The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. + // Indicates if taxes are applied to shipping costs. + FreightTaxable interface{} `json:"freight_taxable,omitempty"` + // Indicates if taxes are applied to payment methods costs. + PaymentMethodTaxable interface{} `json:"payment_method_taxable,omitempty"` + // Indicates if taxes are applied to positive adjustments. + AdjustmentTaxable interface{} `json:"adjustment_taxable,omitempty"` + // Indicates if taxes are applied to purchased gift cards. + GiftCardTaxable interface{} `json:"gift_card_taxable,omitempty"` + // The country code that you want the shipping address to be locked to. This can be useful to make sure the shipping address belongs to a given shipping country, e.g. the one selected in a country selector page. Not relevant if order contains only digital products. ShippingCountryCodeLock interface{} `json:"shipping_country_code_lock,omitempty"` // The coupon code to be used for the order. If valid, it triggers a promotion adding a discount line item to the order. CouponCode interface{} `json:"coupon_code,omitempty"` // The gift card code (at least the first 8 characters) to be used for the order. If valid, it uses the gift card balance to pay for the order. GiftCardCode interface{} `json:"gift_card_code,omitempty"` - // The gift card or coupon code (at least the first 8 characters) to be used for the order. If a gift card mathes, it uses the gift card balance to pay for the order. Otherwise it tries to find a valid coupon code and applies the associated discount. - GiftCardOrCouponCode interface{} `json:"gift_card_or_coupon_code,omitempty"` // The cart url on your site. If present, it will be used on our hosted checkout application. CartUrl interface{} `json:"cart_url,omitempty"` // The return url on your site. If present, it will be used on our hosted checkout application. @@ -48,7 +60,7 @@ type POSTOrders201ResponseDataAttributes struct { PrivacyUrl interface{} `json:"privacy_url,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -71,6 +83,72 @@ func NewPOSTOrders201ResponseDataAttributesWithDefaults() *POSTOrders201Response return &this } +// GetNumber returns the Number field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrders201ResponseDataAttributes) GetNumber() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Number +} + +// GetNumberOk returns a tuple with the Number field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrders201ResponseDataAttributes) GetNumberOk() (*interface{}, bool) { + if o == nil || IsNil(o.Number) { + return nil, false + } + return &o.Number, true +} + +// HasNumber returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataAttributes) HasNumber() bool { + if o != nil && IsNil(o.Number) { + return true + } + + return false +} + +// SetNumber gets a reference to the given interface{} and assigns it to the Number field. +func (o *POSTOrders201ResponseDataAttributes) SetNumber(v interface{}) { + o.Number = v +} + +// GetAffiliateCode returns the AffiliateCode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrders201ResponseDataAttributes) GetAffiliateCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.AffiliateCode +} + +// GetAffiliateCodeOk returns a tuple with the AffiliateCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrders201ResponseDataAttributes) GetAffiliateCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.AffiliateCode) { + return nil, false + } + return &o.AffiliateCode, true +} + +// HasAffiliateCode returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataAttributes) HasAffiliateCode() bool { + if o != nil && IsNil(o.AffiliateCode) { + return true + } + + return false +} + +// SetAffiliateCode gets a reference to the given interface{} and assigns it to the AffiliateCode field. +func (o *POSTOrders201ResponseDataAttributes) SetAffiliateCode(v interface{}) { + o.AffiliateCode = v +} + // GetAutorefresh returns the Autorefresh field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTOrders201ResponseDataAttributes) GetAutorefresh() interface{} { if o == nil { @@ -104,6 +182,39 @@ func (o *POSTOrders201ResponseDataAttributes) SetAutorefresh(v interface{}) { o.Autorefresh = v } +// GetPlaceAsync returns the PlaceAsync field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrders201ResponseDataAttributes) GetPlaceAsync() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PlaceAsync +} + +// GetPlaceAsyncOk returns a tuple with the PlaceAsync field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrders201ResponseDataAttributes) GetPlaceAsyncOk() (*interface{}, bool) { + if o == nil || IsNil(o.PlaceAsync) { + return nil, false + } + return &o.PlaceAsync, true +} + +// HasPlaceAsync returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataAttributes) HasPlaceAsync() bool { + if o != nil && IsNil(o.PlaceAsync) { + return true + } + + return false +} + +// SetPlaceAsync gets a reference to the given interface{} and assigns it to the PlaceAsync field. +func (o *POSTOrders201ResponseDataAttributes) SetPlaceAsync(v interface{}) { + o.PlaceAsync = v +} + // GetGuest returns the Guest field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTOrders201ResponseDataAttributes) GetGuest() interface{} { if o == nil { @@ -236,6 +347,138 @@ func (o *POSTOrders201ResponseDataAttributes) SetLanguageCode(v interface{}) { o.LanguageCode = v } +// GetFreightTaxable returns the FreightTaxable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrders201ResponseDataAttributes) GetFreightTaxable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.FreightTaxable +} + +// GetFreightTaxableOk returns a tuple with the FreightTaxable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrders201ResponseDataAttributes) GetFreightTaxableOk() (*interface{}, bool) { + if o == nil || IsNil(o.FreightTaxable) { + return nil, false + } + return &o.FreightTaxable, true +} + +// HasFreightTaxable returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataAttributes) HasFreightTaxable() bool { + if o != nil && IsNil(o.FreightTaxable) { + return true + } + + return false +} + +// SetFreightTaxable gets a reference to the given interface{} and assigns it to the FreightTaxable field. +func (o *POSTOrders201ResponseDataAttributes) SetFreightTaxable(v interface{}) { + o.FreightTaxable = v +} + +// GetPaymentMethodTaxable returns the PaymentMethodTaxable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrders201ResponseDataAttributes) GetPaymentMethodTaxable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.PaymentMethodTaxable +} + +// GetPaymentMethodTaxableOk returns a tuple with the PaymentMethodTaxable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrders201ResponseDataAttributes) GetPaymentMethodTaxableOk() (*interface{}, bool) { + if o == nil || IsNil(o.PaymentMethodTaxable) { + return nil, false + } + return &o.PaymentMethodTaxable, true +} + +// HasPaymentMethodTaxable returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataAttributes) HasPaymentMethodTaxable() bool { + if o != nil && IsNil(o.PaymentMethodTaxable) { + return true + } + + return false +} + +// SetPaymentMethodTaxable gets a reference to the given interface{} and assigns it to the PaymentMethodTaxable field. +func (o *POSTOrders201ResponseDataAttributes) SetPaymentMethodTaxable(v interface{}) { + o.PaymentMethodTaxable = v +} + +// GetAdjustmentTaxable returns the AdjustmentTaxable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrders201ResponseDataAttributes) GetAdjustmentTaxable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.AdjustmentTaxable +} + +// GetAdjustmentTaxableOk returns a tuple with the AdjustmentTaxable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrders201ResponseDataAttributes) GetAdjustmentTaxableOk() (*interface{}, bool) { + if o == nil || IsNil(o.AdjustmentTaxable) { + return nil, false + } + return &o.AdjustmentTaxable, true +} + +// HasAdjustmentTaxable returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataAttributes) HasAdjustmentTaxable() bool { + if o != nil && IsNil(o.AdjustmentTaxable) { + return true + } + + return false +} + +// SetAdjustmentTaxable gets a reference to the given interface{} and assigns it to the AdjustmentTaxable field. +func (o *POSTOrders201ResponseDataAttributes) SetAdjustmentTaxable(v interface{}) { + o.AdjustmentTaxable = v +} + +// GetGiftCardTaxable returns the GiftCardTaxable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrders201ResponseDataAttributes) GetGiftCardTaxable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.GiftCardTaxable +} + +// GetGiftCardTaxableOk returns a tuple with the GiftCardTaxable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrders201ResponseDataAttributes) GetGiftCardTaxableOk() (*interface{}, bool) { + if o == nil || IsNil(o.GiftCardTaxable) { + return nil, false + } + return &o.GiftCardTaxable, true +} + +// HasGiftCardTaxable returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataAttributes) HasGiftCardTaxable() bool { + if o != nil && IsNil(o.GiftCardTaxable) { + return true + } + + return false +} + +// SetGiftCardTaxable gets a reference to the given interface{} and assigns it to the GiftCardTaxable field. +func (o *POSTOrders201ResponseDataAttributes) SetGiftCardTaxable(v interface{}) { + o.GiftCardTaxable = v +} + // GetShippingCountryCodeLock returns the ShippingCountryCodeLock field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTOrders201ResponseDataAttributes) GetShippingCountryCodeLock() interface{} { if o == nil { @@ -335,39 +578,6 @@ func (o *POSTOrders201ResponseDataAttributes) SetGiftCardCode(v interface{}) { o.GiftCardCode = v } -// GetGiftCardOrCouponCode returns the GiftCardOrCouponCode field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTOrders201ResponseDataAttributes) GetGiftCardOrCouponCode() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.GiftCardOrCouponCode -} - -// GetGiftCardOrCouponCodeOk returns a tuple with the GiftCardOrCouponCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTOrders201ResponseDataAttributes) GetGiftCardOrCouponCodeOk() (*interface{}, bool) { - if o == nil || IsNil(o.GiftCardOrCouponCode) { - return nil, false - } - return &o.GiftCardOrCouponCode, true -} - -// HasGiftCardOrCouponCode returns a boolean if a field has been set. -func (o *POSTOrders201ResponseDataAttributes) HasGiftCardOrCouponCode() bool { - if o != nil && IsNil(o.GiftCardOrCouponCode) { - return true - } - - return false -} - -// SetGiftCardOrCouponCode gets a reference to the given interface{} and assigns it to the GiftCardOrCouponCode field. -func (o *POSTOrders201ResponseDataAttributes) SetGiftCardOrCouponCode(v interface{}) { - o.GiftCardOrCouponCode = v -} - // GetCartUrl returns the CartUrl field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTOrders201ResponseDataAttributes) GetCartUrl() interface{} { if o == nil { @@ -609,9 +819,18 @@ func (o POSTOrders201ResponseDataAttributes) MarshalJSON() ([]byte, error) { func (o POSTOrders201ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Number != nil { + toSerialize["number"] = o.Number + } + if o.AffiliateCode != nil { + toSerialize["affiliate_code"] = o.AffiliateCode + } if o.Autorefresh != nil { toSerialize["autorefresh"] = o.Autorefresh } + if o.PlaceAsync != nil { + toSerialize["place_async"] = o.PlaceAsync + } if o.Guest != nil { toSerialize["guest"] = o.Guest } @@ -624,6 +843,18 @@ func (o POSTOrders201ResponseDataAttributes) ToMap() (map[string]interface{}, er if o.LanguageCode != nil { toSerialize["language_code"] = o.LanguageCode } + if o.FreightTaxable != nil { + toSerialize["freight_taxable"] = o.FreightTaxable + } + if o.PaymentMethodTaxable != nil { + toSerialize["payment_method_taxable"] = o.PaymentMethodTaxable + } + if o.AdjustmentTaxable != nil { + toSerialize["adjustment_taxable"] = o.AdjustmentTaxable + } + if o.GiftCardTaxable != nil { + toSerialize["gift_card_taxable"] = o.GiftCardTaxable + } if o.ShippingCountryCodeLock != nil { toSerialize["shipping_country_code_lock"] = o.ShippingCountryCodeLock } @@ -633,9 +864,6 @@ func (o POSTOrders201ResponseDataAttributes) ToMap() (map[string]interface{}, er if o.GiftCardCode != nil { toSerialize["gift_card_code"] = o.GiftCardCode } - if o.GiftCardOrCouponCode != nil { - toSerialize["gift_card_or_coupon_code"] = o.GiftCardOrCouponCode - } if o.CartUrl != nil { toSerialize["cart_url"] = o.CartUrl } diff --git a/api/model_post_orders_201_response_data_relationships.go b/api/model_post_orders_201_response_data_relationships.go index bbf401f0..b53234f3 100644 --- a/api/model_post_orders_201_response_data_relationships.go +++ b/api/model_post_orders_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,30 +20,40 @@ var _ MappedNullable = &POSTOrders201ResponseDataRelationships{} // POSTOrders201ResponseDataRelationships struct for POSTOrders201ResponseDataRelationships type POSTOrders201ResponseDataRelationships struct { - Market *POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket `json:"market,omitempty"` - Customer *POSTCouponRecipients201ResponseDataRelationshipsCustomer `json:"customer,omitempty"` - ShippingAddress *POSTOrders201ResponseDataRelationshipsShippingAddress `json:"shipping_address,omitempty"` - BillingAddress *POSTOrders201ResponseDataRelationshipsBillingAddress `json:"billing_address,omitempty"` - AvailablePaymentMethods *POSTOrders201ResponseDataRelationshipsAvailablePaymentMethods `json:"available_payment_methods,omitempty"` - AvailableCustomerPaymentSources *POSTOrders201ResponseDataRelationshipsAvailableCustomerPaymentSources `json:"available_customer_payment_sources,omitempty"` - AvailableFreeSkus *POSTOrders201ResponseDataRelationshipsAvailableFreeSkus `json:"available_free_skus,omitempty"` - AvailableFreeBundles *POSTOrders201ResponseDataRelationshipsAvailableFreeBundles `json:"available_free_bundles,omitempty"` - PaymentMethod *POSTOrders201ResponseDataRelationshipsPaymentMethod `json:"payment_method,omitempty"` - PaymentSource *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentSource `json:"payment_source,omitempty"` - LineItems *POSTOrders201ResponseDataRelationshipsLineItems `json:"line_items,omitempty"` - Shipments *POSTOrders201ResponseDataRelationshipsShipments `json:"shipments,omitempty"` - Transactions *POSTOrders201ResponseDataRelationshipsTransactions `json:"transactions,omitempty"` - Authorizations *POSTOrders201ResponseDataRelationshipsAuthorizations `json:"authorizations,omitempty"` - Captures *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsCaptures `json:"captures,omitempty"` - Voids *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsVoids `json:"voids,omitempty"` - Refunds *GETCapturesCaptureId200ResponseDataRelationshipsRefunds `json:"refunds,omitempty"` - Returns *POSTCustomers201ResponseDataRelationshipsReturns `json:"returns,omitempty"` - OrderSubscriptions *POSTCustomers201ResponseDataRelationshipsOrderSubscriptions `json:"order_subscriptions,omitempty"` - OrderFactories *POSTOrderSubscriptions201ResponseDataRelationshipsOrderFactories `json:"order_factories,omitempty"` - OrderCopies *POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies `json:"order_copies,omitempty"` - RecurringOrderCopies *POSTOrderSubscriptions201ResponseDataRelationshipsRecurringOrderCopies `json:"recurring_order_copies,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` + Market *POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket `json:"market,omitempty"` + Customer *POSTCouponRecipients201ResponseDataRelationshipsCustomer `json:"customer,omitempty"` + ShippingAddress *POSTOrders201ResponseDataRelationshipsShippingAddress `json:"shipping_address,omitempty"` + BillingAddress *POSTOrders201ResponseDataRelationshipsBillingAddress `json:"billing_address,omitempty"` + AvailablePaymentMethods *POSTOrders201ResponseDataRelationshipsAvailablePaymentMethods `json:"available_payment_methods,omitempty"` + AvailableCustomerPaymentSources *POSTOrders201ResponseDataRelationshipsAvailableCustomerPaymentSources `json:"available_customer_payment_sources,omitempty"` + AvailableFreeSkus *POSTOrders201ResponseDataRelationshipsAvailableFreeSkus `json:"available_free_skus,omitempty"` + AvailableFreeBundles *POSTOrders201ResponseDataRelationshipsAvailableFreeBundles `json:"available_free_bundles,omitempty"` + PaymentMethod *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod `json:"payment_method,omitempty"` + PaymentSource *POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentSource `json:"payment_source,omitempty"` + LineItems *POSTOrders201ResponseDataRelationshipsLineItems `json:"line_items,omitempty"` + LineItemOptions *POSTLineItems201ResponseDataRelationshipsLineItemOptions `json:"line_item_options,omitempty"` + StockReservations *POSTLineItems201ResponseDataRelationshipsStockReservations `json:"stock_reservations,omitempty"` + StockLineItems *POSTLineItems201ResponseDataRelationshipsStockLineItems `json:"stock_line_items,omitempty"` + StockTransfers *POSTLineItems201ResponseDataRelationshipsStockTransfers `json:"stock_transfers,omitempty"` + Shipments *POSTOrders201ResponseDataRelationshipsShipments `json:"shipments,omitempty"` + PaymentOptions *POSTOrders201ResponseDataRelationshipsPaymentOptions `json:"payment_options,omitempty"` + Transactions *POSTOrders201ResponseDataRelationshipsTransactions `json:"transactions,omitempty"` + Authorizations *POSTOrders201ResponseDataRelationshipsAuthorizations `json:"authorizations,omitempty"` + Captures *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsCaptures `json:"captures,omitempty"` + Voids *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsVoids `json:"voids,omitempty"` + Refunds *GETCapturesCaptureId200ResponseDataRelationshipsRefunds `json:"refunds,omitempty"` + Returns *POSTCustomers201ResponseDataRelationshipsReturns `json:"returns,omitempty"` + OrderSubscription *POSTOrderCopies201ResponseDataRelationshipsOrderSubscription `json:"order_subscription,omitempty"` + OrderSubscriptions *POSTCustomers201ResponseDataRelationshipsOrderSubscriptions `json:"order_subscriptions,omitempty"` + OrderFactories *POSTOrderSubscriptions201ResponseDataRelationshipsOrderFactories `json:"order_factories,omitempty"` + OrderCopies *POSTOrders201ResponseDataRelationshipsOrderCopies `json:"order_copies,omitempty"` + RecurringOrderCopies *POSTOrderSubscriptions201ResponseDataRelationshipsRecurringOrderCopies `json:"recurring_order_copies,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Links *POSTOrders201ResponseDataRelationshipsLinks `json:"links,omitempty"` + ResourceErrors *POSTOrders201ResponseDataRelationshipsResourceErrors `json:"resource_errors,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Tags *POSTAddresses201ResponseDataRelationshipsTags `json:"tags,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTOrders201ResponseDataRelationships instantiates a new POSTOrders201ResponseDataRelationships object @@ -320,9 +330,9 @@ func (o *POSTOrders201ResponseDataRelationships) SetAvailableFreeBundles(v POSTO } // GetPaymentMethod returns the PaymentMethod field value if set, zero value otherwise. -func (o *POSTOrders201ResponseDataRelationships) GetPaymentMethod() POSTOrders201ResponseDataRelationshipsPaymentMethod { +func (o *POSTOrders201ResponseDataRelationships) GetPaymentMethod() POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod { if o == nil || IsNil(o.PaymentMethod) { - var ret POSTOrders201ResponseDataRelationshipsPaymentMethod + var ret POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod return ret } return *o.PaymentMethod @@ -330,7 +340,7 @@ func (o *POSTOrders201ResponseDataRelationships) GetPaymentMethod() POSTOrders20 // GetPaymentMethodOk returns a tuple with the PaymentMethod field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTOrders201ResponseDataRelationships) GetPaymentMethodOk() (*POSTOrders201ResponseDataRelationshipsPaymentMethod, bool) { +func (o *POSTOrders201ResponseDataRelationships) GetPaymentMethodOk() (*POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod, bool) { if o == nil || IsNil(o.PaymentMethod) { return nil, false } @@ -346,8 +356,8 @@ func (o *POSTOrders201ResponseDataRelationships) HasPaymentMethod() bool { return false } -// SetPaymentMethod gets a reference to the given POSTOrders201ResponseDataRelationshipsPaymentMethod and assigns it to the PaymentMethod field. -func (o *POSTOrders201ResponseDataRelationships) SetPaymentMethod(v POSTOrders201ResponseDataRelationshipsPaymentMethod) { +// SetPaymentMethod gets a reference to the given POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod and assigns it to the PaymentMethod field. +func (o *POSTOrders201ResponseDataRelationships) SetPaymentMethod(v POSTCustomerPaymentSources201ResponseDataRelationshipsPaymentMethod) { o.PaymentMethod = &v } @@ -415,6 +425,134 @@ func (o *POSTOrders201ResponseDataRelationships) SetLineItems(v POSTOrders201Res o.LineItems = &v } +// GetLineItemOptions returns the LineItemOptions field value if set, zero value otherwise. +func (o *POSTOrders201ResponseDataRelationships) GetLineItemOptions() POSTLineItems201ResponseDataRelationshipsLineItemOptions { + if o == nil || IsNil(o.LineItemOptions) { + var ret POSTLineItems201ResponseDataRelationshipsLineItemOptions + return ret + } + return *o.LineItemOptions +} + +// GetLineItemOptionsOk returns a tuple with the LineItemOptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrders201ResponseDataRelationships) GetLineItemOptionsOk() (*POSTLineItems201ResponseDataRelationshipsLineItemOptions, bool) { + if o == nil || IsNil(o.LineItemOptions) { + return nil, false + } + return o.LineItemOptions, true +} + +// HasLineItemOptions returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationships) HasLineItemOptions() bool { + if o != nil && !IsNil(o.LineItemOptions) { + return true + } + + return false +} + +// SetLineItemOptions gets a reference to the given POSTLineItems201ResponseDataRelationshipsLineItemOptions and assigns it to the LineItemOptions field. +func (o *POSTOrders201ResponseDataRelationships) SetLineItemOptions(v POSTLineItems201ResponseDataRelationshipsLineItemOptions) { + o.LineItemOptions = &v +} + +// GetStockReservations returns the StockReservations field value if set, zero value otherwise. +func (o *POSTOrders201ResponseDataRelationships) GetStockReservations() POSTLineItems201ResponseDataRelationshipsStockReservations { + if o == nil || IsNil(o.StockReservations) { + var ret POSTLineItems201ResponseDataRelationshipsStockReservations + return ret + } + return *o.StockReservations +} + +// GetStockReservationsOk returns a tuple with the StockReservations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrders201ResponseDataRelationships) GetStockReservationsOk() (*POSTLineItems201ResponseDataRelationshipsStockReservations, bool) { + if o == nil || IsNil(o.StockReservations) { + return nil, false + } + return o.StockReservations, true +} + +// HasStockReservations returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationships) HasStockReservations() bool { + if o != nil && !IsNil(o.StockReservations) { + return true + } + + return false +} + +// SetStockReservations gets a reference to the given POSTLineItems201ResponseDataRelationshipsStockReservations and assigns it to the StockReservations field. +func (o *POSTOrders201ResponseDataRelationships) SetStockReservations(v POSTLineItems201ResponseDataRelationshipsStockReservations) { + o.StockReservations = &v +} + +// GetStockLineItems returns the StockLineItems field value if set, zero value otherwise. +func (o *POSTOrders201ResponseDataRelationships) GetStockLineItems() POSTLineItems201ResponseDataRelationshipsStockLineItems { + if o == nil || IsNil(o.StockLineItems) { + var ret POSTLineItems201ResponseDataRelationshipsStockLineItems + return ret + } + return *o.StockLineItems +} + +// GetStockLineItemsOk returns a tuple with the StockLineItems field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrders201ResponseDataRelationships) GetStockLineItemsOk() (*POSTLineItems201ResponseDataRelationshipsStockLineItems, bool) { + if o == nil || IsNil(o.StockLineItems) { + return nil, false + } + return o.StockLineItems, true +} + +// HasStockLineItems returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationships) HasStockLineItems() bool { + if o != nil && !IsNil(o.StockLineItems) { + return true + } + + return false +} + +// SetStockLineItems gets a reference to the given POSTLineItems201ResponseDataRelationshipsStockLineItems and assigns it to the StockLineItems field. +func (o *POSTOrders201ResponseDataRelationships) SetStockLineItems(v POSTLineItems201ResponseDataRelationshipsStockLineItems) { + o.StockLineItems = &v +} + +// GetStockTransfers returns the StockTransfers field value if set, zero value otherwise. +func (o *POSTOrders201ResponseDataRelationships) GetStockTransfers() POSTLineItems201ResponseDataRelationshipsStockTransfers { + if o == nil || IsNil(o.StockTransfers) { + var ret POSTLineItems201ResponseDataRelationshipsStockTransfers + return ret + } + return *o.StockTransfers +} + +// GetStockTransfersOk returns a tuple with the StockTransfers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrders201ResponseDataRelationships) GetStockTransfersOk() (*POSTLineItems201ResponseDataRelationshipsStockTransfers, bool) { + if o == nil || IsNil(o.StockTransfers) { + return nil, false + } + return o.StockTransfers, true +} + +// HasStockTransfers returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationships) HasStockTransfers() bool { + if o != nil && !IsNil(o.StockTransfers) { + return true + } + + return false +} + +// SetStockTransfers gets a reference to the given POSTLineItems201ResponseDataRelationshipsStockTransfers and assigns it to the StockTransfers field. +func (o *POSTOrders201ResponseDataRelationships) SetStockTransfers(v POSTLineItems201ResponseDataRelationshipsStockTransfers) { + o.StockTransfers = &v +} + // GetShipments returns the Shipments field value if set, zero value otherwise. func (o *POSTOrders201ResponseDataRelationships) GetShipments() POSTOrders201ResponseDataRelationshipsShipments { if o == nil || IsNil(o.Shipments) { @@ -447,6 +585,38 @@ func (o *POSTOrders201ResponseDataRelationships) SetShipments(v POSTOrders201Res o.Shipments = &v } +// GetPaymentOptions returns the PaymentOptions field value if set, zero value otherwise. +func (o *POSTOrders201ResponseDataRelationships) GetPaymentOptions() POSTOrders201ResponseDataRelationshipsPaymentOptions { + if o == nil || IsNil(o.PaymentOptions) { + var ret POSTOrders201ResponseDataRelationshipsPaymentOptions + return ret + } + return *o.PaymentOptions +} + +// GetPaymentOptionsOk returns a tuple with the PaymentOptions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrders201ResponseDataRelationships) GetPaymentOptionsOk() (*POSTOrders201ResponseDataRelationshipsPaymentOptions, bool) { + if o == nil || IsNil(o.PaymentOptions) { + return nil, false + } + return o.PaymentOptions, true +} + +// HasPaymentOptions returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationships) HasPaymentOptions() bool { + if o != nil && !IsNil(o.PaymentOptions) { + return true + } + + return false +} + +// SetPaymentOptions gets a reference to the given POSTOrders201ResponseDataRelationshipsPaymentOptions and assigns it to the PaymentOptions field. +func (o *POSTOrders201ResponseDataRelationships) SetPaymentOptions(v POSTOrders201ResponseDataRelationshipsPaymentOptions) { + o.PaymentOptions = &v +} + // GetTransactions returns the Transactions field value if set, zero value otherwise. func (o *POSTOrders201ResponseDataRelationships) GetTransactions() POSTOrders201ResponseDataRelationshipsTransactions { if o == nil || IsNil(o.Transactions) { @@ -639,6 +809,38 @@ func (o *POSTOrders201ResponseDataRelationships) SetReturns(v POSTCustomers201Re o.Returns = &v } +// GetOrderSubscription returns the OrderSubscription field value if set, zero value otherwise. +func (o *POSTOrders201ResponseDataRelationships) GetOrderSubscription() POSTOrderCopies201ResponseDataRelationshipsOrderSubscription { + if o == nil || IsNil(o.OrderSubscription) { + var ret POSTOrderCopies201ResponseDataRelationshipsOrderSubscription + return ret + } + return *o.OrderSubscription +} + +// GetOrderSubscriptionOk returns a tuple with the OrderSubscription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrders201ResponseDataRelationships) GetOrderSubscriptionOk() (*POSTOrderCopies201ResponseDataRelationshipsOrderSubscription, bool) { + if o == nil || IsNil(o.OrderSubscription) { + return nil, false + } + return o.OrderSubscription, true +} + +// HasOrderSubscription returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationships) HasOrderSubscription() bool { + if o != nil && !IsNil(o.OrderSubscription) { + return true + } + + return false +} + +// SetOrderSubscription gets a reference to the given POSTOrderCopies201ResponseDataRelationshipsOrderSubscription and assigns it to the OrderSubscription field. +func (o *POSTOrders201ResponseDataRelationships) SetOrderSubscription(v POSTOrderCopies201ResponseDataRelationshipsOrderSubscription) { + o.OrderSubscription = &v +} + // GetOrderSubscriptions returns the OrderSubscriptions field value if set, zero value otherwise. func (o *POSTOrders201ResponseDataRelationships) GetOrderSubscriptions() POSTCustomers201ResponseDataRelationshipsOrderSubscriptions { if o == nil || IsNil(o.OrderSubscriptions) { @@ -704,9 +906,9 @@ func (o *POSTOrders201ResponseDataRelationships) SetOrderFactories(v POSTOrderSu } // GetOrderCopies returns the OrderCopies field value if set, zero value otherwise. -func (o *POSTOrders201ResponseDataRelationships) GetOrderCopies() POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies { +func (o *POSTOrders201ResponseDataRelationships) GetOrderCopies() POSTOrders201ResponseDataRelationshipsOrderCopies { if o == nil || IsNil(o.OrderCopies) { - var ret POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies + var ret POSTOrders201ResponseDataRelationshipsOrderCopies return ret } return *o.OrderCopies @@ -714,7 +916,7 @@ func (o *POSTOrders201ResponseDataRelationships) GetOrderCopies() POSTOrderSubsc // GetOrderCopiesOk returns a tuple with the OrderCopies field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTOrders201ResponseDataRelationships) GetOrderCopiesOk() (*POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies, bool) { +func (o *POSTOrders201ResponseDataRelationships) GetOrderCopiesOk() (*POSTOrders201ResponseDataRelationshipsOrderCopies, bool) { if o == nil || IsNil(o.OrderCopies) { return nil, false } @@ -730,8 +932,8 @@ func (o *POSTOrders201ResponseDataRelationships) HasOrderCopies() bool { return false } -// SetOrderCopies gets a reference to the given POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies and assigns it to the OrderCopies field. -func (o *POSTOrders201ResponseDataRelationships) SetOrderCopies(v POSTOrderSubscriptions201ResponseDataRelationshipsOrderCopies) { +// SetOrderCopies gets a reference to the given POSTOrders201ResponseDataRelationshipsOrderCopies and assigns it to the OrderCopies field. +func (o *POSTOrders201ResponseDataRelationships) SetOrderCopies(v POSTOrders201ResponseDataRelationshipsOrderCopies) { o.OrderCopies = &v } @@ -768,9 +970,9 @@ func (o *POSTOrders201ResponseDataRelationships) SetRecurringOrderCopies(v POSTO } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTOrders201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTOrders201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -778,7 +980,7 @@ func (o *POSTOrders201ResponseDataRelationships) GetAttachments() POSTAvalaraAcc // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTOrders201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTOrders201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -794,15 +996,79 @@ func (o *POSTOrders201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTOrders201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTOrders201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTOrders201ResponseDataRelationships) GetLinks() POSTOrders201ResponseDataRelationshipsLinks { + if o == nil || IsNil(o.Links) { + var ret POSTOrders201ResponseDataRelationshipsLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrders201ResponseDataRelationships) GetLinksOk() (*POSTOrders201ResponseDataRelationshipsLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationships) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTOrders201ResponseDataRelationshipsLinks and assigns it to the Links field. +func (o *POSTOrders201ResponseDataRelationships) SetLinks(v POSTOrders201ResponseDataRelationshipsLinks) { + o.Links = &v +} + +// GetResourceErrors returns the ResourceErrors field value if set, zero value otherwise. +func (o *POSTOrders201ResponseDataRelationships) GetResourceErrors() POSTOrders201ResponseDataRelationshipsResourceErrors { + if o == nil || IsNil(o.ResourceErrors) { + var ret POSTOrders201ResponseDataRelationshipsResourceErrors + return ret + } + return *o.ResourceErrors +} + +// GetResourceErrorsOk returns a tuple with the ResourceErrors field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrders201ResponseDataRelationships) GetResourceErrorsOk() (*POSTOrders201ResponseDataRelationshipsResourceErrors, bool) { + if o == nil || IsNil(o.ResourceErrors) { + return nil, false + } + return o.ResourceErrors, true +} + +// HasResourceErrors returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationships) HasResourceErrors() bool { + if o != nil && !IsNil(o.ResourceErrors) { + return true + } + + return false +} + +// SetResourceErrors gets a reference to the given POSTOrders201ResponseDataRelationshipsResourceErrors and assigns it to the ResourceErrors field. +func (o *POSTOrders201ResponseDataRelationships) SetResourceErrors(v POSTOrders201ResponseDataRelationshipsResourceErrors) { + o.ResourceErrors = &v +} + // GetEvents returns the Events field value if set, zero value otherwise. -func (o *POSTOrders201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { +func (o *POSTOrders201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents + var ret POSTAddresses201ResponseDataRelationshipsEvents return ret } return *o.Events @@ -810,7 +1076,7 @@ func (o *POSTOrders201ResponseDataRelationships) GetEvents() GETAuthorizationsAu // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTOrders201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { +func (o *POSTOrders201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -826,11 +1092,75 @@ func (o *POSTOrders201ResponseDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *POSTOrders201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTOrders201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { o.Events = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *POSTOrders201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret POSTAddresses201ResponseDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrders201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given POSTAddresses201ResponseDataRelationshipsTags and assigns it to the Tags field. +func (o *POSTOrders201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTOrders201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrders201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTOrders201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTOrders201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -874,9 +1204,24 @@ func (o POSTOrders201ResponseDataRelationships) ToMap() (map[string]interface{}, if !IsNil(o.LineItems) { toSerialize["line_items"] = o.LineItems } + if !IsNil(o.LineItemOptions) { + toSerialize["line_item_options"] = o.LineItemOptions + } + if !IsNil(o.StockReservations) { + toSerialize["stock_reservations"] = o.StockReservations + } + if !IsNil(o.StockLineItems) { + toSerialize["stock_line_items"] = o.StockLineItems + } + if !IsNil(o.StockTransfers) { + toSerialize["stock_transfers"] = o.StockTransfers + } if !IsNil(o.Shipments) { toSerialize["shipments"] = o.Shipments } + if !IsNil(o.PaymentOptions) { + toSerialize["payment_options"] = o.PaymentOptions + } if !IsNil(o.Transactions) { toSerialize["transactions"] = o.Transactions } @@ -895,6 +1240,9 @@ func (o POSTOrders201ResponseDataRelationships) ToMap() (map[string]interface{}, if !IsNil(o.Returns) { toSerialize["returns"] = o.Returns } + if !IsNil(o.OrderSubscription) { + toSerialize["order_subscription"] = o.OrderSubscription + } if !IsNil(o.OrderSubscriptions) { toSerialize["order_subscriptions"] = o.OrderSubscriptions } @@ -910,9 +1258,21 @@ func (o POSTOrders201ResponseDataRelationships) ToMap() (map[string]interface{}, if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.ResourceErrors) { + toSerialize["resource_errors"] = o.ResourceErrors + } if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_orders_201_response_data_relationships_authorizations.go b/api/model_post_orders_201_response_data_relationships_authorizations.go index 86f2b060..11e5a45c 100644 --- a/api/model_post_orders_201_response_data_relationships_authorizations.go +++ b/api/model_post_orders_201_response_data_relationships_authorizations.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_relationships_authorizations_data.go b/api/model_post_orders_201_response_data_relationships_authorizations_data.go index 1809b903..43682e04 100644 --- a/api/model_post_orders_201_response_data_relationships_authorizations_data.go +++ b/api/model_post_orders_201_response_data_relationships_authorizations_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_relationships_available_customer_payment_sources.go b/api/model_post_orders_201_response_data_relationships_available_customer_payment_sources.go index 9a5fcfb0..43e1c019 100644 --- a/api/model_post_orders_201_response_data_relationships_available_customer_payment_sources.go +++ b/api/model_post_orders_201_response_data_relationships_available_customer_payment_sources.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_relationships_available_customer_payment_sources_data.go b/api/model_post_orders_201_response_data_relationships_available_customer_payment_sources_data.go index ba156c81..9eb056ff 100644 --- a/api/model_post_orders_201_response_data_relationships_available_customer_payment_sources_data.go +++ b/api/model_post_orders_201_response_data_relationships_available_customer_payment_sources_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_relationships_available_free_bundles.go b/api/model_post_orders_201_response_data_relationships_available_free_bundles.go index b9e5e66e..ea281a8b 100644 --- a/api/model_post_orders_201_response_data_relationships_available_free_bundles.go +++ b/api/model_post_orders_201_response_data_relationships_available_free_bundles.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_relationships_available_free_bundles_data.go b/api/model_post_orders_201_response_data_relationships_available_free_bundles_data.go index 1a9d5504..0906af18 100644 --- a/api/model_post_orders_201_response_data_relationships_available_free_bundles_data.go +++ b/api/model_post_orders_201_response_data_relationships_available_free_bundles_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_relationships_available_free_skus.go b/api/model_post_orders_201_response_data_relationships_available_free_skus.go index b8d622e7..da0af1af 100644 --- a/api/model_post_orders_201_response_data_relationships_available_free_skus.go +++ b/api/model_post_orders_201_response_data_relationships_available_free_skus.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_relationships_available_free_skus_data.go b/api/model_post_orders_201_response_data_relationships_available_free_skus_data.go index a288b4b2..5adbaa00 100644 --- a/api/model_post_orders_201_response_data_relationships_available_free_skus_data.go +++ b/api/model_post_orders_201_response_data_relationships_available_free_skus_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_relationships_available_payment_methods.go b/api/model_post_orders_201_response_data_relationships_available_payment_methods.go index 8a6c0784..5f726bf9 100644 --- a/api/model_post_orders_201_response_data_relationships_available_payment_methods.go +++ b/api/model_post_orders_201_response_data_relationships_available_payment_methods.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_relationships_available_payment_methods_data.go b/api/model_post_orders_201_response_data_relationships_available_payment_methods_data.go index 2d513414..671a590c 100644 --- a/api/model_post_orders_201_response_data_relationships_available_payment_methods_data.go +++ b/api/model_post_orders_201_response_data_relationships_available_payment_methods_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_relationships_billing_address.go b/api/model_post_orders_201_response_data_relationships_billing_address.go index fd3cd4e4..2a599725 100644 --- a/api/model_post_orders_201_response_data_relationships_billing_address.go +++ b/api/model_post_orders_201_response_data_relationships_billing_address.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_relationships_billing_address_data.go b/api/model_post_orders_201_response_data_relationships_billing_address_data.go index 8e1bbc29..2c32c3bb 100644 --- a/api/model_post_orders_201_response_data_relationships_billing_address_data.go +++ b/api/model_post_orders_201_response_data_relationships_billing_address_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_relationships_line_items.go b/api/model_post_orders_201_response_data_relationships_line_items.go index 0c0858c9..ed8c49bb 100644 --- a/api/model_post_orders_201_response_data_relationships_line_items.go +++ b/api/model_post_orders_201_response_data_relationships_line_items.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_relationships_line_items_data.go b/api/model_post_orders_201_response_data_relationships_line_items_data.go index f121e33b..491499af 100644 --- a/api/model_post_orders_201_response_data_relationships_line_items_data.go +++ b/api/model_post_orders_201_response_data_relationships_line_items_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_relationships_links.go b/api/model_post_orders_201_response_data_relationships_links.go new file mode 100644 index 00000000..c81e5cf2 --- /dev/null +++ b/api/model_post_orders_201_response_data_relationships_links.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTOrders201ResponseDataRelationshipsLinks type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTOrders201ResponseDataRelationshipsLinks{} + +// POSTOrders201ResponseDataRelationshipsLinks struct for POSTOrders201ResponseDataRelationshipsLinks +type POSTOrders201ResponseDataRelationshipsLinks struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTOrders201ResponseDataRelationshipsLinksData `json:"data,omitempty"` +} + +// NewPOSTOrders201ResponseDataRelationshipsLinks instantiates a new POSTOrders201ResponseDataRelationshipsLinks object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTOrders201ResponseDataRelationshipsLinks() *POSTOrders201ResponseDataRelationshipsLinks { + this := POSTOrders201ResponseDataRelationshipsLinks{} + return &this +} + +// NewPOSTOrders201ResponseDataRelationshipsLinksWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsLinks object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTOrders201ResponseDataRelationshipsLinksWithDefaults() *POSTOrders201ResponseDataRelationshipsLinks { + this := POSTOrders201ResponseDataRelationshipsLinks{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTOrders201ResponseDataRelationshipsLinks) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrders201ResponseDataRelationshipsLinks) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationshipsLinks) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTOrders201ResponseDataRelationshipsLinks) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTOrders201ResponseDataRelationshipsLinks) GetData() POSTOrders201ResponseDataRelationshipsLinksData { + if o == nil || IsNil(o.Data) { + var ret POSTOrders201ResponseDataRelationshipsLinksData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrders201ResponseDataRelationshipsLinks) GetDataOk() (*POSTOrders201ResponseDataRelationshipsLinksData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationshipsLinks) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTOrders201ResponseDataRelationshipsLinksData and assigns it to the Data field. +func (o *POSTOrders201ResponseDataRelationshipsLinks) SetData(v POSTOrders201ResponseDataRelationshipsLinksData) { + o.Data = &v +} + +func (o POSTOrders201ResponseDataRelationshipsLinks) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTOrders201ResponseDataRelationshipsLinks) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTOrders201ResponseDataRelationshipsLinks struct { + value *POSTOrders201ResponseDataRelationshipsLinks + isSet bool +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsLinks) Get() *POSTOrders201ResponseDataRelationshipsLinks { + return v.value +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsLinks) Set(val *POSTOrders201ResponseDataRelationshipsLinks) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsLinks) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsLinks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTOrders201ResponseDataRelationshipsLinks(val *POSTOrders201ResponseDataRelationshipsLinks) *NullablePOSTOrders201ResponseDataRelationshipsLinks { + return &NullablePOSTOrders201ResponseDataRelationshipsLinks{value: val, isSet: true} +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsLinks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsLinks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_orders_201_response_data_relationships_links_data.go b/api/model_post_orders_201_response_data_relationships_links_data.go new file mode 100644 index 00000000..0d39d72c --- /dev/null +++ b/api/model_post_orders_201_response_data_relationships_links_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTOrders201ResponseDataRelationshipsLinksData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTOrders201ResponseDataRelationshipsLinksData{} + +// POSTOrders201ResponseDataRelationshipsLinksData struct for POSTOrders201ResponseDataRelationshipsLinksData +type POSTOrders201ResponseDataRelationshipsLinksData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTOrders201ResponseDataRelationshipsLinksData instantiates a new POSTOrders201ResponseDataRelationshipsLinksData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTOrders201ResponseDataRelationshipsLinksData() *POSTOrders201ResponseDataRelationshipsLinksData { + this := POSTOrders201ResponseDataRelationshipsLinksData{} + return &this +} + +// NewPOSTOrders201ResponseDataRelationshipsLinksDataWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsLinksData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTOrders201ResponseDataRelationshipsLinksDataWithDefaults() *POSTOrders201ResponseDataRelationshipsLinksData { + this := POSTOrders201ResponseDataRelationshipsLinksData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrders201ResponseDataRelationshipsLinksData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrders201ResponseDataRelationshipsLinksData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationshipsLinksData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTOrders201ResponseDataRelationshipsLinksData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrders201ResponseDataRelationshipsLinksData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrders201ResponseDataRelationshipsLinksData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationshipsLinksData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTOrders201ResponseDataRelationshipsLinksData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTOrders201ResponseDataRelationshipsLinksData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTOrders201ResponseDataRelationshipsLinksData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTOrders201ResponseDataRelationshipsLinksData struct { + value *POSTOrders201ResponseDataRelationshipsLinksData + isSet bool +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsLinksData) Get() *POSTOrders201ResponseDataRelationshipsLinksData { + return v.value +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsLinksData) Set(val *POSTOrders201ResponseDataRelationshipsLinksData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsLinksData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsLinksData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTOrders201ResponseDataRelationshipsLinksData(val *POSTOrders201ResponseDataRelationshipsLinksData) *NullablePOSTOrders201ResponseDataRelationshipsLinksData { + return &NullablePOSTOrders201ResponseDataRelationshipsLinksData{value: val, isSet: true} +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsLinksData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsLinksData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_orders_201_response_data_relationships_order_copies.go b/api/model_post_orders_201_response_data_relationships_order_copies.go new file mode 100644 index 00000000..ca567a61 --- /dev/null +++ b/api/model_post_orders_201_response_data_relationships_order_copies.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTOrders201ResponseDataRelationshipsOrderCopies type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTOrders201ResponseDataRelationshipsOrderCopies{} + +// POSTOrders201ResponseDataRelationshipsOrderCopies struct for POSTOrders201ResponseDataRelationshipsOrderCopies +type POSTOrders201ResponseDataRelationshipsOrderCopies struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTOrders201ResponseDataRelationshipsOrderCopiesData `json:"data,omitempty"` +} + +// NewPOSTOrders201ResponseDataRelationshipsOrderCopies instantiates a new POSTOrders201ResponseDataRelationshipsOrderCopies object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTOrders201ResponseDataRelationshipsOrderCopies() *POSTOrders201ResponseDataRelationshipsOrderCopies { + this := POSTOrders201ResponseDataRelationshipsOrderCopies{} + return &this +} + +// NewPOSTOrders201ResponseDataRelationshipsOrderCopiesWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsOrderCopies object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTOrders201ResponseDataRelationshipsOrderCopiesWithDefaults() *POSTOrders201ResponseDataRelationshipsOrderCopies { + this := POSTOrders201ResponseDataRelationshipsOrderCopies{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTOrders201ResponseDataRelationshipsOrderCopies) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrders201ResponseDataRelationshipsOrderCopies) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationshipsOrderCopies) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTOrders201ResponseDataRelationshipsOrderCopies) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTOrders201ResponseDataRelationshipsOrderCopies) GetData() POSTOrders201ResponseDataRelationshipsOrderCopiesData { + if o == nil || IsNil(o.Data) { + var ret POSTOrders201ResponseDataRelationshipsOrderCopiesData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrders201ResponseDataRelationshipsOrderCopies) GetDataOk() (*POSTOrders201ResponseDataRelationshipsOrderCopiesData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationshipsOrderCopies) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTOrders201ResponseDataRelationshipsOrderCopiesData and assigns it to the Data field. +func (o *POSTOrders201ResponseDataRelationshipsOrderCopies) SetData(v POSTOrders201ResponseDataRelationshipsOrderCopiesData) { + o.Data = &v +} + +func (o POSTOrders201ResponseDataRelationshipsOrderCopies) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTOrders201ResponseDataRelationshipsOrderCopies) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTOrders201ResponseDataRelationshipsOrderCopies struct { + value *POSTOrders201ResponseDataRelationshipsOrderCopies + isSet bool +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsOrderCopies) Get() *POSTOrders201ResponseDataRelationshipsOrderCopies { + return v.value +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsOrderCopies) Set(val *POSTOrders201ResponseDataRelationshipsOrderCopies) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsOrderCopies) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsOrderCopies) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTOrders201ResponseDataRelationshipsOrderCopies(val *POSTOrders201ResponseDataRelationshipsOrderCopies) *NullablePOSTOrders201ResponseDataRelationshipsOrderCopies { + return &NullablePOSTOrders201ResponseDataRelationshipsOrderCopies{value: val, isSet: true} +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsOrderCopies) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsOrderCopies) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_orders_201_response_data_relationships_order_copies_data.go b/api/model_post_orders_201_response_data_relationships_order_copies_data.go new file mode 100644 index 00000000..ec43fbe3 --- /dev/null +++ b/api/model_post_orders_201_response_data_relationships_order_copies_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTOrders201ResponseDataRelationshipsOrderCopiesData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTOrders201ResponseDataRelationshipsOrderCopiesData{} + +// POSTOrders201ResponseDataRelationshipsOrderCopiesData struct for POSTOrders201ResponseDataRelationshipsOrderCopiesData +type POSTOrders201ResponseDataRelationshipsOrderCopiesData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTOrders201ResponseDataRelationshipsOrderCopiesData instantiates a new POSTOrders201ResponseDataRelationshipsOrderCopiesData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTOrders201ResponseDataRelationshipsOrderCopiesData() *POSTOrders201ResponseDataRelationshipsOrderCopiesData { + this := POSTOrders201ResponseDataRelationshipsOrderCopiesData{} + return &this +} + +// NewPOSTOrders201ResponseDataRelationshipsOrderCopiesDataWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsOrderCopiesData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTOrders201ResponseDataRelationshipsOrderCopiesDataWithDefaults() *POSTOrders201ResponseDataRelationshipsOrderCopiesData { + this := POSTOrders201ResponseDataRelationshipsOrderCopiesData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTOrders201ResponseDataRelationshipsOrderCopiesData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTOrders201ResponseDataRelationshipsOrderCopiesData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTOrders201ResponseDataRelationshipsOrderCopiesData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTOrders201ResponseDataRelationshipsOrderCopiesData struct { + value *POSTOrders201ResponseDataRelationshipsOrderCopiesData + isSet bool +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsOrderCopiesData) Get() *POSTOrders201ResponseDataRelationshipsOrderCopiesData { + return v.value +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsOrderCopiesData) Set(val *POSTOrders201ResponseDataRelationshipsOrderCopiesData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsOrderCopiesData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsOrderCopiesData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTOrders201ResponseDataRelationshipsOrderCopiesData(val *POSTOrders201ResponseDataRelationshipsOrderCopiesData) *NullablePOSTOrders201ResponseDataRelationshipsOrderCopiesData { + return &NullablePOSTOrders201ResponseDataRelationshipsOrderCopiesData{value: val, isSet: true} +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsOrderCopiesData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsOrderCopiesData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_orders_201_response_data_relationships_payment_method.go b/api/model_post_orders_201_response_data_relationships_payment_method.go deleted file mode 100644 index 828b2f25..00000000 --- a/api/model_post_orders_201_response_data_relationships_payment_method.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the POSTOrders201ResponseDataRelationshipsPaymentMethod type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTOrders201ResponseDataRelationshipsPaymentMethod{} - -// POSTOrders201ResponseDataRelationshipsPaymentMethod struct for POSTOrders201ResponseDataRelationshipsPaymentMethod -type POSTOrders201ResponseDataRelationshipsPaymentMethod struct { - Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` - Data *POSTOrders201ResponseDataRelationshipsPaymentMethodData `json:"data,omitempty"` -} - -// NewPOSTOrders201ResponseDataRelationshipsPaymentMethod instantiates a new POSTOrders201ResponseDataRelationshipsPaymentMethod object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPOSTOrders201ResponseDataRelationshipsPaymentMethod() *POSTOrders201ResponseDataRelationshipsPaymentMethod { - this := POSTOrders201ResponseDataRelationshipsPaymentMethod{} - return &this -} - -// NewPOSTOrders201ResponseDataRelationshipsPaymentMethodWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsPaymentMethod object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPOSTOrders201ResponseDataRelationshipsPaymentMethodWithDefaults() *POSTOrders201ResponseDataRelationshipsPaymentMethod { - this := POSTOrders201ResponseDataRelationshipsPaymentMethod{} - return &this -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *POSTOrders201ResponseDataRelationshipsPaymentMethod) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { - if o == nil || IsNil(o.Links) { - var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTOrders201ResponseDataRelationshipsPaymentMethod) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *POSTOrders201ResponseDataRelationshipsPaymentMethod) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. -func (o *POSTOrders201ResponseDataRelationshipsPaymentMethod) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { - o.Links = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *POSTOrders201ResponseDataRelationshipsPaymentMethod) GetData() POSTOrders201ResponseDataRelationshipsPaymentMethodData { - if o == nil || IsNil(o.Data) { - var ret POSTOrders201ResponseDataRelationshipsPaymentMethodData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTOrders201ResponseDataRelationshipsPaymentMethod) GetDataOk() (*POSTOrders201ResponseDataRelationshipsPaymentMethodData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *POSTOrders201ResponseDataRelationshipsPaymentMethod) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given POSTOrders201ResponseDataRelationshipsPaymentMethodData and assigns it to the Data field. -func (o *POSTOrders201ResponseDataRelationshipsPaymentMethod) SetData(v POSTOrders201ResponseDataRelationshipsPaymentMethodData) { - o.Data = &v -} - -func (o POSTOrders201ResponseDataRelationshipsPaymentMethod) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o POSTOrders201ResponseDataRelationshipsPaymentMethod) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullablePOSTOrders201ResponseDataRelationshipsPaymentMethod struct { - value *POSTOrders201ResponseDataRelationshipsPaymentMethod - isSet bool -} - -func (v NullablePOSTOrders201ResponseDataRelationshipsPaymentMethod) Get() *POSTOrders201ResponseDataRelationshipsPaymentMethod { - return v.value -} - -func (v *NullablePOSTOrders201ResponseDataRelationshipsPaymentMethod) Set(val *POSTOrders201ResponseDataRelationshipsPaymentMethod) { - v.value = val - v.isSet = true -} - -func (v NullablePOSTOrders201ResponseDataRelationshipsPaymentMethod) IsSet() bool { - return v.isSet -} - -func (v *NullablePOSTOrders201ResponseDataRelationshipsPaymentMethod) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePOSTOrders201ResponseDataRelationshipsPaymentMethod(val *POSTOrders201ResponseDataRelationshipsPaymentMethod) *NullablePOSTOrders201ResponseDataRelationshipsPaymentMethod { - return &NullablePOSTOrders201ResponseDataRelationshipsPaymentMethod{value: val, isSet: true} -} - -func (v NullablePOSTOrders201ResponseDataRelationshipsPaymentMethod) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePOSTOrders201ResponseDataRelationshipsPaymentMethod) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_post_orders_201_response_data_relationships_payment_options.go b/api/model_post_orders_201_response_data_relationships_payment_options.go new file mode 100644 index 00000000..82aaf695 --- /dev/null +++ b/api/model_post_orders_201_response_data_relationships_payment_options.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTOrders201ResponseDataRelationshipsPaymentOptions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTOrders201ResponseDataRelationshipsPaymentOptions{} + +// POSTOrders201ResponseDataRelationshipsPaymentOptions struct for POSTOrders201ResponseDataRelationshipsPaymentOptions +type POSTOrders201ResponseDataRelationshipsPaymentOptions struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTOrders201ResponseDataRelationshipsPaymentOptionsData `json:"data,omitempty"` +} + +// NewPOSTOrders201ResponseDataRelationshipsPaymentOptions instantiates a new POSTOrders201ResponseDataRelationshipsPaymentOptions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTOrders201ResponseDataRelationshipsPaymentOptions() *POSTOrders201ResponseDataRelationshipsPaymentOptions { + this := POSTOrders201ResponseDataRelationshipsPaymentOptions{} + return &this +} + +// NewPOSTOrders201ResponseDataRelationshipsPaymentOptionsWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsPaymentOptions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTOrders201ResponseDataRelationshipsPaymentOptionsWithDefaults() *POSTOrders201ResponseDataRelationshipsPaymentOptions { + this := POSTOrders201ResponseDataRelationshipsPaymentOptions{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTOrders201ResponseDataRelationshipsPaymentOptions) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrders201ResponseDataRelationshipsPaymentOptions) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationshipsPaymentOptions) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTOrders201ResponseDataRelationshipsPaymentOptions) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTOrders201ResponseDataRelationshipsPaymentOptions) GetData() POSTOrders201ResponseDataRelationshipsPaymentOptionsData { + if o == nil || IsNil(o.Data) { + var ret POSTOrders201ResponseDataRelationshipsPaymentOptionsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrders201ResponseDataRelationshipsPaymentOptions) GetDataOk() (*POSTOrders201ResponseDataRelationshipsPaymentOptionsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationshipsPaymentOptions) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTOrders201ResponseDataRelationshipsPaymentOptionsData and assigns it to the Data field. +func (o *POSTOrders201ResponseDataRelationshipsPaymentOptions) SetData(v POSTOrders201ResponseDataRelationshipsPaymentOptionsData) { + o.Data = &v +} + +func (o POSTOrders201ResponseDataRelationshipsPaymentOptions) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTOrders201ResponseDataRelationshipsPaymentOptions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTOrders201ResponseDataRelationshipsPaymentOptions struct { + value *POSTOrders201ResponseDataRelationshipsPaymentOptions + isSet bool +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsPaymentOptions) Get() *POSTOrders201ResponseDataRelationshipsPaymentOptions { + return v.value +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsPaymentOptions) Set(val *POSTOrders201ResponseDataRelationshipsPaymentOptions) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsPaymentOptions) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsPaymentOptions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTOrders201ResponseDataRelationshipsPaymentOptions(val *POSTOrders201ResponseDataRelationshipsPaymentOptions) *NullablePOSTOrders201ResponseDataRelationshipsPaymentOptions { + return &NullablePOSTOrders201ResponseDataRelationshipsPaymentOptions{value: val, isSet: true} +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsPaymentOptions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsPaymentOptions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_orders_201_response_data_relationships_payment_options_data.go b/api/model_post_orders_201_response_data_relationships_payment_options_data.go new file mode 100644 index 00000000..4f612d6a --- /dev/null +++ b/api/model_post_orders_201_response_data_relationships_payment_options_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTOrders201ResponseDataRelationshipsPaymentOptionsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTOrders201ResponseDataRelationshipsPaymentOptionsData{} + +// POSTOrders201ResponseDataRelationshipsPaymentOptionsData struct for POSTOrders201ResponseDataRelationshipsPaymentOptionsData +type POSTOrders201ResponseDataRelationshipsPaymentOptionsData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTOrders201ResponseDataRelationshipsPaymentOptionsData instantiates a new POSTOrders201ResponseDataRelationshipsPaymentOptionsData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTOrders201ResponseDataRelationshipsPaymentOptionsData() *POSTOrders201ResponseDataRelationshipsPaymentOptionsData { + this := POSTOrders201ResponseDataRelationshipsPaymentOptionsData{} + return &this +} + +// NewPOSTOrders201ResponseDataRelationshipsPaymentOptionsDataWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsPaymentOptionsData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTOrders201ResponseDataRelationshipsPaymentOptionsDataWithDefaults() *POSTOrders201ResponseDataRelationshipsPaymentOptionsData { + this := POSTOrders201ResponseDataRelationshipsPaymentOptionsData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTOrders201ResponseDataRelationshipsPaymentOptionsData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTOrders201ResponseDataRelationshipsPaymentOptionsData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTOrders201ResponseDataRelationshipsPaymentOptionsData struct { + value *POSTOrders201ResponseDataRelationshipsPaymentOptionsData + isSet bool +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsPaymentOptionsData) Get() *POSTOrders201ResponseDataRelationshipsPaymentOptionsData { + return v.value +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsPaymentOptionsData) Set(val *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsPaymentOptionsData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsPaymentOptionsData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTOrders201ResponseDataRelationshipsPaymentOptionsData(val *POSTOrders201ResponseDataRelationshipsPaymentOptionsData) *NullablePOSTOrders201ResponseDataRelationshipsPaymentOptionsData { + return &NullablePOSTOrders201ResponseDataRelationshipsPaymentOptionsData{value: val, isSet: true} +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsPaymentOptionsData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsPaymentOptionsData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_orders_201_response_data_relationships_resource_errors.go b/api/model_post_orders_201_response_data_relationships_resource_errors.go new file mode 100644 index 00000000..4428e366 --- /dev/null +++ b/api/model_post_orders_201_response_data_relationships_resource_errors.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTOrders201ResponseDataRelationshipsResourceErrors type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTOrders201ResponseDataRelationshipsResourceErrors{} + +// POSTOrders201ResponseDataRelationshipsResourceErrors struct for POSTOrders201ResponseDataRelationshipsResourceErrors +type POSTOrders201ResponseDataRelationshipsResourceErrors struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTOrders201ResponseDataRelationshipsResourceErrorsData `json:"data,omitempty"` +} + +// NewPOSTOrders201ResponseDataRelationshipsResourceErrors instantiates a new POSTOrders201ResponseDataRelationshipsResourceErrors object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTOrders201ResponseDataRelationshipsResourceErrors() *POSTOrders201ResponseDataRelationshipsResourceErrors { + this := POSTOrders201ResponseDataRelationshipsResourceErrors{} + return &this +} + +// NewPOSTOrders201ResponseDataRelationshipsResourceErrorsWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsResourceErrors object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTOrders201ResponseDataRelationshipsResourceErrorsWithDefaults() *POSTOrders201ResponseDataRelationshipsResourceErrors { + this := POSTOrders201ResponseDataRelationshipsResourceErrors{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTOrders201ResponseDataRelationshipsResourceErrors) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrders201ResponseDataRelationshipsResourceErrors) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationshipsResourceErrors) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTOrders201ResponseDataRelationshipsResourceErrors) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTOrders201ResponseDataRelationshipsResourceErrors) GetData() POSTOrders201ResponseDataRelationshipsResourceErrorsData { + if o == nil || IsNil(o.Data) { + var ret POSTOrders201ResponseDataRelationshipsResourceErrorsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTOrders201ResponseDataRelationshipsResourceErrors) GetDataOk() (*POSTOrders201ResponseDataRelationshipsResourceErrorsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationshipsResourceErrors) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTOrders201ResponseDataRelationshipsResourceErrorsData and assigns it to the Data field. +func (o *POSTOrders201ResponseDataRelationshipsResourceErrors) SetData(v POSTOrders201ResponseDataRelationshipsResourceErrorsData) { + o.Data = &v +} + +func (o POSTOrders201ResponseDataRelationshipsResourceErrors) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTOrders201ResponseDataRelationshipsResourceErrors) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTOrders201ResponseDataRelationshipsResourceErrors struct { + value *POSTOrders201ResponseDataRelationshipsResourceErrors + isSet bool +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsResourceErrors) Get() *POSTOrders201ResponseDataRelationshipsResourceErrors { + return v.value +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsResourceErrors) Set(val *POSTOrders201ResponseDataRelationshipsResourceErrors) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsResourceErrors) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsResourceErrors) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTOrders201ResponseDataRelationshipsResourceErrors(val *POSTOrders201ResponseDataRelationshipsResourceErrors) *NullablePOSTOrders201ResponseDataRelationshipsResourceErrors { + return &NullablePOSTOrders201ResponseDataRelationshipsResourceErrors{value: val, isSet: true} +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsResourceErrors) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsResourceErrors) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_orders_201_response_data_relationships_resource_errors_data.go b/api/model_post_orders_201_response_data_relationships_resource_errors_data.go new file mode 100644 index 00000000..3bd53ddc --- /dev/null +++ b/api/model_post_orders_201_response_data_relationships_resource_errors_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTOrders201ResponseDataRelationshipsResourceErrorsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTOrders201ResponseDataRelationshipsResourceErrorsData{} + +// POSTOrders201ResponseDataRelationshipsResourceErrorsData struct for POSTOrders201ResponseDataRelationshipsResourceErrorsData +type POSTOrders201ResponseDataRelationshipsResourceErrorsData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTOrders201ResponseDataRelationshipsResourceErrorsData instantiates a new POSTOrders201ResponseDataRelationshipsResourceErrorsData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTOrders201ResponseDataRelationshipsResourceErrorsData() *POSTOrders201ResponseDataRelationshipsResourceErrorsData { + this := POSTOrders201ResponseDataRelationshipsResourceErrorsData{} + return &this +} + +// NewPOSTOrders201ResponseDataRelationshipsResourceErrorsDataWithDefaults instantiates a new POSTOrders201ResponseDataRelationshipsResourceErrorsData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTOrders201ResponseDataRelationshipsResourceErrorsDataWithDefaults() *POSTOrders201ResponseDataRelationshipsResourceErrorsData { + this := POSTOrders201ResponseDataRelationshipsResourceErrorsData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTOrders201ResponseDataRelationshipsResourceErrorsData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTOrders201ResponseDataRelationshipsResourceErrorsData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTOrders201ResponseDataRelationshipsResourceErrorsData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTOrders201ResponseDataRelationshipsResourceErrorsData struct { + value *POSTOrders201ResponseDataRelationshipsResourceErrorsData + isSet bool +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsResourceErrorsData) Get() *POSTOrders201ResponseDataRelationshipsResourceErrorsData { + return v.value +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsResourceErrorsData) Set(val *POSTOrders201ResponseDataRelationshipsResourceErrorsData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsResourceErrorsData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsResourceErrorsData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTOrders201ResponseDataRelationshipsResourceErrorsData(val *POSTOrders201ResponseDataRelationshipsResourceErrorsData) *NullablePOSTOrders201ResponseDataRelationshipsResourceErrorsData { + return &NullablePOSTOrders201ResponseDataRelationshipsResourceErrorsData{value: val, isSet: true} +} + +func (v NullablePOSTOrders201ResponseDataRelationshipsResourceErrorsData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTOrders201ResponseDataRelationshipsResourceErrorsData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_orders_201_response_data_relationships_shipments.go b/api/model_post_orders_201_response_data_relationships_shipments.go index 4ee95d08..f71446a0 100644 --- a/api/model_post_orders_201_response_data_relationships_shipments.go +++ b/api/model_post_orders_201_response_data_relationships_shipments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_relationships_shipments_data.go b/api/model_post_orders_201_response_data_relationships_shipments_data.go index 5090aec3..cda16e8c 100644 --- a/api/model_post_orders_201_response_data_relationships_shipments_data.go +++ b/api/model_post_orders_201_response_data_relationships_shipments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_relationships_shipping_address.go b/api/model_post_orders_201_response_data_relationships_shipping_address.go index 64a5ee7d..76728cbe 100644 --- a/api/model_post_orders_201_response_data_relationships_shipping_address.go +++ b/api/model_post_orders_201_response_data_relationships_shipping_address.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_relationships_shipping_address_data.go b/api/model_post_orders_201_response_data_relationships_shipping_address_data.go index 27540e33..f11597f0 100644 --- a/api/model_post_orders_201_response_data_relationships_shipping_address_data.go +++ b/api/model_post_orders_201_response_data_relationships_shipping_address_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_relationships_transactions.go b/api/model_post_orders_201_response_data_relationships_transactions.go index 3e5b2b3c..c544dd27 100644 --- a/api/model_post_orders_201_response_data_relationships_transactions.go +++ b/api/model_post_orders_201_response_data_relationships_transactions.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_orders_201_response_data_relationships_transactions_data.go b/api/model_post_orders_201_response_data_relationships_transactions_data.go index 1d549911..f2053568 100644 --- a/api/model_post_orders_201_response_data_relationships_transactions_data.go +++ b/api/model_post_orders_201_response_data_relationships_transactions_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_packages_201_response.go b/api/model_post_packages_201_response.go index 6ae22241..e4702caf 100644 --- a/api/model_post_packages_201_response.go +++ b/api/model_post_packages_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_packages_201_response_data.go b/api/model_post_packages_201_response_data.go index b0b7f6b4..5601121a 100644 --- a/api/model_post_packages_201_response_data.go +++ b/api/model_post_packages_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_packages_201_response_data_attributes.go b/api/model_post_packages_201_response_data_attributes.go index a4d3c565..dbaa7b4f 100644 --- a/api/model_post_packages_201_response_data_attributes.go +++ b/api/model_post_packages_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,9 @@ var _ MappedNullable = &POSTPackages201ResponseDataAttributes{} // POSTPackages201ResponseDataAttributes struct for POSTPackages201ResponseDataAttributes type POSTPackages201ResponseDataAttributes struct { - // Unique name for the package + // Unique name for the package. Name interface{} `json:"name"` - // The package identifying code + // The package identifying code. Code interface{} `json:"code,omitempty"` // The package length, used to automatically calculate the tax rates from the available carrier accounts. Length interface{} `json:"length"` @@ -34,7 +34,7 @@ type POSTPackages201ResponseDataAttributes struct { UnitOfLength interface{} `json:"unit_of_length"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_packages_201_response_data_relationships.go b/api/model_post_packages_201_response_data_relationships.go index 50337c70..8b2557af 100644 --- a/api/model_post_packages_201_response_data_relationships.go +++ b/api/model_post_packages_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,10 @@ var _ MappedNullable = &POSTPackages201ResponseDataRelationships{} // POSTPackages201ResponseDataRelationships struct for POSTPackages201ResponseDataRelationships type POSTPackages201ResponseDataRelationships struct { - StockLocation *POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation `json:"stock_location,omitempty"` - Parcels *POSTPackages201ResponseDataRelationshipsParcels `json:"parcels,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + StockLocation *POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation `json:"stock_location,omitempty"` + Parcels *POSTPackages201ResponseDataRelationshipsParcels `json:"parcels,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTPackages201ResponseDataRelationships instantiates a new POSTPackages201ResponseDataRelationships object @@ -107,9 +108,9 @@ func (o *POSTPackages201ResponseDataRelationships) SetParcels(v POSTPackages201R } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTPackages201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTPackages201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -117,7 +118,7 @@ func (o *POSTPackages201ResponseDataRelationships) GetAttachments() POSTAvalaraA // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTPackages201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTPackages201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -133,11 +134,43 @@ func (o *POSTPackages201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTPackages201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTPackages201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTPackages201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPackages201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTPackages201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTPackages201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTPackages201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -157,6 +190,9 @@ func (o POSTPackages201ResponseDataRelationships) ToMap() (map[string]interface{ if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_packages_201_response_data_relationships_parcels.go b/api/model_post_packages_201_response_data_relationships_parcels.go index 5c348445..36db8696 100644 --- a/api/model_post_packages_201_response_data_relationships_parcels.go +++ b/api/model_post_packages_201_response_data_relationships_parcels.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_packages_201_response_data_relationships_parcels_data.go b/api/model_post_packages_201_response_data_relationships_parcels_data.go index 59330b7c..0a755d9d 100644 --- a/api/model_post_packages_201_response_data_relationships_parcels_data.go +++ b/api/model_post_packages_201_response_data_relationships_parcels_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_parcel_line_items_201_response.go b/api/model_post_parcel_line_items_201_response.go index 4dcfcdc0..24a3e7fd 100644 --- a/api/model_post_parcel_line_items_201_response.go +++ b/api/model_post_parcel_line_items_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_parcel_line_items_201_response_data.go b/api/model_post_parcel_line_items_201_response_data.go index a1b5d737..2737e940 100644 --- a/api/model_post_parcel_line_items_201_response_data.go +++ b/api/model_post_parcel_line_items_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_parcel_line_items_201_response_data_attributes.go b/api/model_post_parcel_line_items_201_response_data_attributes.go index 61270753..fd858d48 100644 --- a/api/model_post_parcel_line_items_201_response_data_attributes.go +++ b/api/model_post_parcel_line_items_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,13 +20,11 @@ var _ MappedNullable = &POSTParcelLineItems201ResponseDataAttributes{} // POSTParcelLineItems201ResponseDataAttributes struct for POSTParcelLineItems201ResponseDataAttributes type POSTParcelLineItems201ResponseDataAttributes struct { - // The code of the SKU of the associated shipment_line_item. - SkuCode interface{} `json:"sku_code,omitempty"` // The parcel line item quantity. Quantity interface{} `json:"quantity"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -50,39 +48,6 @@ func NewPOSTParcelLineItems201ResponseDataAttributesWithDefaults() *POSTParcelLi return &this } -// GetSkuCode returns the SkuCode field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTParcelLineItems201ResponseDataAttributes) GetSkuCode() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.SkuCode -} - -// GetSkuCodeOk returns a tuple with the SkuCode field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTParcelLineItems201ResponseDataAttributes) GetSkuCodeOk() (*interface{}, bool) { - if o == nil || IsNil(o.SkuCode) { - return nil, false - } - return &o.SkuCode, true -} - -// HasSkuCode returns a boolean if a field has been set. -func (o *POSTParcelLineItems201ResponseDataAttributes) HasSkuCode() bool { - if o != nil && IsNil(o.SkuCode) { - return true - } - - return false -} - -// SetSkuCode gets a reference to the given interface{} and assigns it to the SkuCode field. -func (o *POSTParcelLineItems201ResponseDataAttributes) SetSkuCode(v interface{}) { - o.SkuCode = v -} - // GetQuantity returns the Quantity field value // If the value is explicit nil, the zero value for interface{} will be returned func (o *POSTParcelLineItems201ResponseDataAttributes) GetQuantity() interface{} { @@ -218,9 +183,6 @@ func (o POSTParcelLineItems201ResponseDataAttributes) MarshalJSON() ([]byte, err func (o POSTParcelLineItems201ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.SkuCode != nil { - toSerialize["sku_code"] = o.SkuCode - } if o.Quantity != nil { toSerialize["quantity"] = o.Quantity } diff --git a/api/model_post_parcel_line_items_201_response_data_relationships.go b/api/model_post_parcel_line_items_201_response_data_relationships.go index ee41c7c2..e940ecd2 100644 --- a/api/model_post_parcel_line_items_201_response_data_relationships.go +++ b/api/model_post_parcel_line_items_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,9 @@ var _ MappedNullable = &POSTParcelLineItems201ResponseDataRelationships{} // POSTParcelLineItems201ResponseDataRelationships struct for POSTParcelLineItems201ResponseDataRelationships type POSTParcelLineItems201ResponseDataRelationships struct { - Parcel *POSTParcelLineItems201ResponseDataRelationshipsParcel `json:"parcel,omitempty"` - StockLineItem *POSTParcelLineItems201ResponseDataRelationshipsStockLineItem `json:"stock_line_item,omitempty"` - ShipmentLineItem *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem `json:"shipment_line_item,omitempty"` + Parcel *POSTParcelLineItems201ResponseDataRelationshipsParcel `json:"parcel,omitempty"` + StockLineItem *POSTParcelLineItems201ResponseDataRelationshipsStockLineItem `json:"stock_line_item,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTParcelLineItems201ResponseDataRelationships instantiates a new POSTParcelLineItems201ResponseDataRelationships object @@ -106,36 +106,36 @@ func (o *POSTParcelLineItems201ResponseDataRelationships) SetStockLineItem(v POS o.StockLineItem = &v } -// GetShipmentLineItem returns the ShipmentLineItem field value if set, zero value otherwise. -func (o *POSTParcelLineItems201ResponseDataRelationships) GetShipmentLineItem() POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem { - if o == nil || IsNil(o.ShipmentLineItem) { - var ret POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTParcelLineItems201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions return ret } - return *o.ShipmentLineItem + return *o.Versions } -// GetShipmentLineItemOk returns a tuple with the ShipmentLineItem field value if set, nil otherwise +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTParcelLineItems201ResponseDataRelationships) GetShipmentLineItemOk() (*POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem, bool) { - if o == nil || IsNil(o.ShipmentLineItem) { +func (o *POSTParcelLineItems201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { return nil, false } - return o.ShipmentLineItem, true + return o.Versions, true } -// HasShipmentLineItem returns a boolean if a field has been set. -func (o *POSTParcelLineItems201ResponseDataRelationships) HasShipmentLineItem() bool { - if o != nil && !IsNil(o.ShipmentLineItem) { +// HasVersions returns a boolean if a field has been set. +func (o *POSTParcelLineItems201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { return true } return false } -// SetShipmentLineItem gets a reference to the given POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem and assigns it to the ShipmentLineItem field. -func (o *POSTParcelLineItems201ResponseDataRelationships) SetShipmentLineItem(v POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) { - o.ShipmentLineItem = &v +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTParcelLineItems201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v } func (o POSTParcelLineItems201ResponseDataRelationships) MarshalJSON() ([]byte, error) { @@ -154,8 +154,8 @@ func (o POSTParcelLineItems201ResponseDataRelationships) ToMap() (map[string]int if !IsNil(o.StockLineItem) { toSerialize["stock_line_item"] = o.StockLineItem } - if !IsNil(o.ShipmentLineItem) { - toSerialize["shipment_line_item"] = o.ShipmentLineItem + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions } return toSerialize, nil } diff --git a/api/model_post_parcel_line_items_201_response_data_relationships_parcel.go b/api/model_post_parcel_line_items_201_response_data_relationships_parcel.go index 18a0a344..3bb9e4a8 100644 --- a/api/model_post_parcel_line_items_201_response_data_relationships_parcel.go +++ b/api/model_post_parcel_line_items_201_response_data_relationships_parcel.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_parcel_line_items_201_response_data_relationships_parcel_data.go b/api/model_post_parcel_line_items_201_response_data_relationships_parcel_data.go index 17ad4966..f6619918 100644 --- a/api/model_post_parcel_line_items_201_response_data_relationships_parcel_data.go +++ b/api/model_post_parcel_line_items_201_response_data_relationships_parcel_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_parcel_line_items_201_response_data_relationships_shipment_line_item.go b/api/model_post_parcel_line_items_201_response_data_relationships_shipment_line_item.go deleted file mode 100644 index dd0675a1..00000000 --- a/api/model_post_parcel_line_items_201_response_data_relationships_shipment_line_item.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem{} - -// POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem struct for POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem -type POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem struct { - Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` - Data *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData `json:"data,omitempty"` -} - -// NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem instantiates a new POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem() *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem { - this := POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem{} - return &this -} - -// NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemWithDefaults instantiates a new POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemWithDefaults() *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem { - this := POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem{} - return &this -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { - if o == nil || IsNil(o.Links) { - var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. -func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { - o.Links = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) GetData() POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData { - if o == nil || IsNil(o.Data) { - var ret POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) GetDataOk() (*POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData and assigns it to the Data field. -func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) SetData(v POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) { - o.Data = &v -} - -func (o POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem struct { - value *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem - isSet bool -} - -func (v NullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) Get() *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem { - return v.value -} - -func (v *NullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) Set(val *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) { - v.value = val - v.isSet = true -} - -func (v NullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) IsSet() bool { - return v.isSet -} - -func (v *NullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem(val *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) *NullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem { - return &NullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem{value: val, isSet: true} -} - -func (v NullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItem) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_post_parcel_line_items_201_response_data_relationships_shipment_line_item_data.go b/api/model_post_parcel_line_items_201_response_data_relationships_shipment_line_item_data.go deleted file mode 100644 index 433190ae..00000000 --- a/api/model_post_parcel_line_items_201_response_data_relationships_shipment_line_item_data.go +++ /dev/null @@ -1,165 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData{} - -// POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData struct for POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData -type POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData struct { - // The resource's type - Type interface{} `json:"type,omitempty"` - // The resource ID - Id interface{} `json:"id,omitempty"` -} - -// NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData instantiates a new POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData() *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData { - this := POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData{} - return &this -} - -// NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemDataWithDefaults instantiates a new POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemDataWithDefaults() *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData { - this := POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData{} - return &this -} - -// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) GetType() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) GetTypeOk() (*interface{}, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return &o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) HasType() bool { - if o != nil && IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) SetType(v interface{}) { - o.Type = v -} - -// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) GetId() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) GetIdOk() (*interface{}, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return &o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) HasId() bool { - if o != nil && IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) SetId(v interface{}) { - o.Id = v -} - -func (o POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if o.Type != nil { - toSerialize["type"] = o.Type - } - if o.Id != nil { - toSerialize["id"] = o.Id - } - return toSerialize, nil -} - -type NullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData struct { - value *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData - isSet bool -} - -func (v NullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) Get() *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData { - return v.value -} - -func (v *NullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) Set(val *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) { - v.value = val - v.isSet = true -} - -func (v NullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) IsSet() bool { - return v.isSet -} - -func (v *NullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData(val *POSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) *NullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData { - return &NullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData{value: val, isSet: true} -} - -func (v NullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePOSTParcelLineItems201ResponseDataRelationshipsShipmentLineItemData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_post_parcel_line_items_201_response_data_relationships_stock_line_item.go b/api/model_post_parcel_line_items_201_response_data_relationships_stock_line_item.go index f01ebb6b..a39dc454 100644 --- a/api/model_post_parcel_line_items_201_response_data_relationships_stock_line_item.go +++ b/api/model_post_parcel_line_items_201_response_data_relationships_stock_line_item.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_parcel_line_items_201_response_data_relationships_stock_line_item_data.go b/api/model_post_parcel_line_items_201_response_data_relationships_stock_line_item_data.go index 402cfcf5..79f3e39b 100644 --- a/api/model_post_parcel_line_items_201_response_data_relationships_stock_line_item_data.go +++ b/api/model_post_parcel_line_items_201_response_data_relationships_stock_line_item_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_parcels_201_response.go b/api/model_post_parcels_201_response.go index f389dd5d..b91f15c8 100644 --- a/api/model_post_parcels_201_response.go +++ b/api/model_post_parcels_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_parcels_201_response_data.go b/api/model_post_parcels_201_response_data.go index e6e0e4d3..c954a5dc 100644 --- a/api/model_post_parcels_201_response_data.go +++ b/api/model_post_parcels_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_parcels_201_response_data_attributes.go b/api/model_post_parcels_201_response_data_attributes.go index 35811522..81e2897b 100644 --- a/api/model_post_parcels_201_response_data_attributes.go +++ b/api/model_post_parcels_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,15 +22,15 @@ var _ MappedNullable = &POSTParcels201ResponseDataAttributes{} type POSTParcels201ResponseDataAttributes struct { // The parcel weight, used to automatically calculate the tax rates from the available carrier accounts. Weight interface{} `json:"weight"` - // Can be one of 'gr', 'lb', or 'oz' + // The unit of weight. One of 'gr', 'oz', or 'lb'. UnitOfWeight interface{} `json:"unit_of_weight"` // When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\". EelPfc interface{} `json:"eel_pfc,omitempty"` - // The type of item you are sending. Can be one of 'merchandise', 'gift', 'documents', 'returned_goods', 'sample', or 'other'. + // The type of item you are sending. ContentsType interface{} `json:"contents_type,omitempty"` // If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute. ContentsExplanation interface{} `json:"contents_explanation,omitempty"` - // Indicates if the provided information is accurate + // Indicates if the provided information is accurate. CustomsCertify interface{} `json:"customs_certify,omitempty"` // This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this. CustomsSigner interface{} `json:"customs_signer,omitempty"` @@ -60,15 +60,17 @@ type POSTParcels201ResponseDataAttributes struct { TrackingStatusUpdatedAt interface{} `json:"tracking_status_updated_at,omitempty"` // The parcel's full tracking history, automatically updated in real time by the shipping carrier. TrackingDetails interface{} `json:"tracking_details,omitempty"` - // The weight of the parcel as measured by the carrier in ounces (if available) + // The weight of the parcel as measured by the carrier in ounces (if available). CarrierWeightOz interface{} `json:"carrier_weight_oz,omitempty"` - // The name of the person who signed for the parcel (if available) + // The name of the person who signed for the parcel (if available). SignedBy interface{} `json:"signed_by,omitempty"` // The type of Incoterm (if available). Incoterm interface{} `json:"incoterm,omitempty"` + // The type of delivery confirmation option upon delivery. + DeliveryConfirmation interface{} `json:"delivery_confirmation,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -838,6 +840,39 @@ func (o *POSTParcels201ResponseDataAttributes) SetIncoterm(v interface{}) { o.Incoterm = v } +// GetDeliveryConfirmation returns the DeliveryConfirmation field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTParcels201ResponseDataAttributes) GetDeliveryConfirmation() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.DeliveryConfirmation +} + +// GetDeliveryConfirmationOk returns a tuple with the DeliveryConfirmation field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTParcels201ResponseDataAttributes) GetDeliveryConfirmationOk() (*interface{}, bool) { + if o == nil || IsNil(o.DeliveryConfirmation) { + return nil, false + } + return &o.DeliveryConfirmation, true +} + +// HasDeliveryConfirmation returns a boolean if a field has been set. +func (o *POSTParcels201ResponseDataAttributes) HasDeliveryConfirmation() bool { + if o != nil && IsNil(o.DeliveryConfirmation) { + return true + } + + return false +} + +// SetDeliveryConfirmation gets a reference to the given interface{} and assigns it to the DeliveryConfirmation field. +func (o *POSTParcels201ResponseDataAttributes) SetDeliveryConfirmation(v interface{}) { + o.DeliveryConfirmation = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTParcels201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -1016,6 +1051,9 @@ func (o POSTParcels201ResponseDataAttributes) ToMap() (map[string]interface{}, e if o.Incoterm != nil { toSerialize["incoterm"] = o.Incoterm } + if o.DeliveryConfirmation != nil { + toSerialize["delivery_confirmation"] = o.DeliveryConfirmation + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_parcels_201_response_data_relationships.go b/api/model_post_parcels_201_response_data_relationships.go index 1d47058c..36b65228 100644 --- a/api/model_post_parcels_201_response_data_relationships.go +++ b/api/model_post_parcels_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,11 +20,12 @@ var _ MappedNullable = &POSTParcels201ResponseDataRelationships{} // POSTParcels201ResponseDataRelationships struct for POSTParcels201ResponseDataRelationships type POSTParcels201ResponseDataRelationships struct { - Shipment *POSTParcels201ResponseDataRelationshipsShipment `json:"shipment,omitempty"` - Package *POSTParcels201ResponseDataRelationshipsPackage `json:"package,omitempty"` - ParcelLineItems *POSTParcels201ResponseDataRelationshipsParcelLineItems `json:"parcel_line_items,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` + Shipment *POSTLineItems201ResponseDataRelationshipsShipment `json:"shipment,omitempty"` + Package *POSTParcels201ResponseDataRelationshipsPackage `json:"package,omitempty"` + ParcelLineItems *POSTParcels201ResponseDataRelationshipsParcelLineItems `json:"parcel_line_items,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTParcels201ResponseDataRelationships instantiates a new POSTParcels201ResponseDataRelationships object @@ -45,9 +46,9 @@ func NewPOSTParcels201ResponseDataRelationshipsWithDefaults() *POSTParcels201Res } // GetShipment returns the Shipment field value if set, zero value otherwise. -func (o *POSTParcels201ResponseDataRelationships) GetShipment() POSTParcels201ResponseDataRelationshipsShipment { +func (o *POSTParcels201ResponseDataRelationships) GetShipment() POSTLineItems201ResponseDataRelationshipsShipment { if o == nil || IsNil(o.Shipment) { - var ret POSTParcels201ResponseDataRelationshipsShipment + var ret POSTLineItems201ResponseDataRelationshipsShipment return ret } return *o.Shipment @@ -55,7 +56,7 @@ func (o *POSTParcels201ResponseDataRelationships) GetShipment() POSTParcels201Re // GetShipmentOk returns a tuple with the Shipment field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTParcels201ResponseDataRelationships) GetShipmentOk() (*POSTParcels201ResponseDataRelationshipsShipment, bool) { +func (o *POSTParcels201ResponseDataRelationships) GetShipmentOk() (*POSTLineItems201ResponseDataRelationshipsShipment, bool) { if o == nil || IsNil(o.Shipment) { return nil, false } @@ -71,8 +72,8 @@ func (o *POSTParcels201ResponseDataRelationships) HasShipment() bool { return false } -// SetShipment gets a reference to the given POSTParcels201ResponseDataRelationshipsShipment and assigns it to the Shipment field. -func (o *POSTParcels201ResponseDataRelationships) SetShipment(v POSTParcels201ResponseDataRelationshipsShipment) { +// SetShipment gets a reference to the given POSTLineItems201ResponseDataRelationshipsShipment and assigns it to the Shipment field. +func (o *POSTParcels201ResponseDataRelationships) SetShipment(v POSTLineItems201ResponseDataRelationshipsShipment) { o.Shipment = &v } @@ -141,9 +142,9 @@ func (o *POSTParcels201ResponseDataRelationships) SetParcelLineItems(v POSTParce } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTParcels201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTParcels201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -151,7 +152,7 @@ func (o *POSTParcels201ResponseDataRelationships) GetAttachments() POSTAvalaraAc // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTParcels201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTParcels201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -167,15 +168,15 @@ func (o *POSTParcels201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTParcels201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTParcels201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *POSTParcels201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { +func (o *POSTParcels201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents + var ret POSTAddresses201ResponseDataRelationshipsEvents return ret } return *o.Events @@ -183,7 +184,7 @@ func (o *POSTParcels201ResponseDataRelationships) GetEvents() GETAuthorizationsA // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTParcels201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { +func (o *POSTParcels201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -199,11 +200,43 @@ func (o *POSTParcels201ResponseDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *POSTParcels201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTParcels201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { o.Events = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTParcels201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTParcels201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTParcels201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTParcels201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTParcels201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -229,6 +262,9 @@ func (o POSTParcels201ResponseDataRelationships) ToMap() (map[string]interface{} if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_parcels_201_response_data_relationships_package.go b/api/model_post_parcels_201_response_data_relationships_package.go index cd3d0828..e3b2a557 100644 --- a/api/model_post_parcels_201_response_data_relationships_package.go +++ b/api/model_post_parcels_201_response_data_relationships_package.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_parcels_201_response_data_relationships_package_data.go b/api/model_post_parcels_201_response_data_relationships_package_data.go index 3cc0f52c..a054b821 100644 --- a/api/model_post_parcels_201_response_data_relationships_package_data.go +++ b/api/model_post_parcels_201_response_data_relationships_package_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_parcels_201_response_data_relationships_parcel_line_items.go b/api/model_post_parcels_201_response_data_relationships_parcel_line_items.go index 62abf124..56556193 100644 --- a/api/model_post_parcels_201_response_data_relationships_parcel_line_items.go +++ b/api/model_post_parcels_201_response_data_relationships_parcel_line_items.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_parcels_201_response_data_relationships_parcel_line_items_data.go b/api/model_post_parcels_201_response_data_relationships_parcel_line_items_data.go index 4b07a9fb..2fbd234f 100644 --- a/api/model_post_parcels_201_response_data_relationships_parcel_line_items_data.go +++ b/api/model_post_parcels_201_response_data_relationships_parcel_line_items_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_payment_methods_201_response.go b/api/model_post_payment_methods_201_response.go index ac88107d..2adac491 100644 --- a/api/model_post_payment_methods_201_response.go +++ b/api/model_post_payment_methods_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_payment_methods_201_response_data.go b/api/model_post_payment_methods_201_response_data.go index e30a53d0..1c9a764d 100644 --- a/api/model_post_payment_methods_201_response_data.go +++ b/api/model_post_payment_methods_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_payment_methods_201_response_data_attributes.go b/api/model_post_payment_methods_201_response_data_attributes.go index 4f625cb1..d071250e 100644 --- a/api/model_post_payment_methods_201_response_data_attributes.go +++ b/api/model_post_payment_methods_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,9 @@ var _ MappedNullable = &POSTPaymentMethods201ResponseDataAttributes{} // POSTPaymentMethods201ResponseDataAttributes struct for POSTPaymentMethods201ResponseDataAttributes type POSTPaymentMethods201ResponseDataAttributes struct { - // The payment source type, can be one of: 'AdyenPayment', 'AxervePayment', 'BraintreePayment', 'CheckoutComPayment', 'CreditCard', 'ExternalPayment', 'KlarnaPayment', 'PaypalPayment', 'SatispayPayment', 'StripePayment', or 'WireTransfer'. + // The payment method's internal name. + Name interface{} `json:"name,omitempty"` + // The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'credit_cards', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'. PaymentSourceType interface{} `json:"payment_source_type"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` @@ -28,15 +30,21 @@ type POSTPaymentMethods201ResponseDataAttributes struct { Moto interface{} `json:"moto,omitempty"` // Send this attribute if you want to require the payment capture before fulfillment. RequireCapture interface{} `json:"require_capture,omitempty"` + // Send this attribute if you want to automatically place the order upon authorization performed asynchronously. + AutoPlace interface{} `json:"auto_place,omitempty"` // Send this attribute if you want to automatically capture the payment upon authorization. AutoCapture interface{} `json:"auto_capture,omitempty"` - // The payment method's price, in cents + // The payment method's price, in cents. PriceAmountCents interface{} `json:"price_amount_cents"` // Send this attribute if you want to limit automatic capture to orders for which the total amount is equal or less than the specified value, in cents. AutoCaptureMaxAmountCents interface{} `json:"auto_capture_max_amount_cents,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -61,6 +69,39 @@ func NewPOSTPaymentMethods201ResponseDataAttributesWithDefaults() *POSTPaymentMe return &this } +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPaymentMethods201ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPaymentMethods201ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *POSTPaymentMethods201ResponseDataAttributes) HasName() bool { + if o != nil && IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given interface{} and assigns it to the Name field. +func (o *POSTPaymentMethods201ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + // GetPaymentSourceType returns the PaymentSourceType field value // If the value is explicit nil, the zero value for interface{} will be returned func (o *POSTPaymentMethods201ResponseDataAttributes) GetPaymentSourceType() interface{} { @@ -186,6 +227,39 @@ func (o *POSTPaymentMethods201ResponseDataAttributes) SetRequireCapture(v interf o.RequireCapture = v } +// GetAutoPlace returns the AutoPlace field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPaymentMethods201ResponseDataAttributes) GetAutoPlace() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.AutoPlace +} + +// GetAutoPlaceOk returns a tuple with the AutoPlace field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPaymentMethods201ResponseDataAttributes) GetAutoPlaceOk() (*interface{}, bool) { + if o == nil || IsNil(o.AutoPlace) { + return nil, false + } + return &o.AutoPlace, true +} + +// HasAutoPlace returns a boolean if a field has been set. +func (o *POSTPaymentMethods201ResponseDataAttributes) HasAutoPlace() bool { + if o != nil && IsNil(o.AutoPlace) { + return true + } + + return false +} + +// SetAutoPlace gets a reference to the given interface{} and assigns it to the AutoPlace field. +func (o *POSTPaymentMethods201ResponseDataAttributes) SetAutoPlace(v interface{}) { + o.AutoPlace = v +} + // GetAutoCapture returns the AutoCapture field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTPaymentMethods201ResponseDataAttributes) GetAutoCapture() interface{} { if o == nil { @@ -278,6 +352,72 @@ func (o *POSTPaymentMethods201ResponseDataAttributes) SetAutoCaptureMaxAmountCen o.AutoCaptureMaxAmountCents = v } +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPaymentMethods201ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPaymentMethods201ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *POSTPaymentMethods201ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *POSTPaymentMethods201ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPaymentMethods201ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPaymentMethods201ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *POSTPaymentMethods201ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *POSTPaymentMethods201ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTPaymentMethods201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -387,6 +527,9 @@ func (o POSTPaymentMethods201ResponseDataAttributes) MarshalJSON() ([]byte, erro func (o POSTPaymentMethods201ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } if o.PaymentSourceType != nil { toSerialize["payment_source_type"] = o.PaymentSourceType } @@ -399,6 +542,9 @@ func (o POSTPaymentMethods201ResponseDataAttributes) ToMap() (map[string]interfa if o.RequireCapture != nil { toSerialize["require_capture"] = o.RequireCapture } + if o.AutoPlace != nil { + toSerialize["auto_place"] = o.AutoPlace + } if o.AutoCapture != nil { toSerialize["auto_capture"] = o.AutoCapture } @@ -408,6 +554,12 @@ func (o POSTPaymentMethods201ResponseDataAttributes) ToMap() (map[string]interfa if o.AutoCaptureMaxAmountCents != nil { toSerialize["auto_capture_max_amount_cents"] = o.AutoCaptureMaxAmountCents } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_payment_methods_201_response_data_relationships.go b/api/model_post_payment_methods_201_response_data_relationships.go index 1bd6ef6a..89ce7904 100644 --- a/api/model_post_payment_methods_201_response_data_relationships.go +++ b/api/model_post_payment_methods_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,10 @@ var _ MappedNullable = &POSTPaymentMethods201ResponseDataRelationships{} // POSTPaymentMethods201ResponseDataRelationships struct for POSTPaymentMethods201ResponseDataRelationships type POSTPaymentMethods201ResponseDataRelationships struct { - Market *POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket `json:"market,omitempty"` - PaymentGateway *POSTAdyenPayments201ResponseDataRelationshipsPaymentGateway `json:"payment_gateway,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Market *POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket `json:"market,omitempty"` + PaymentGateway *POSTAdyenPayments201ResponseDataRelationshipsPaymentGateway `json:"payment_gateway,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTPaymentMethods201ResponseDataRelationships instantiates a new POSTPaymentMethods201ResponseDataRelationships object @@ -107,9 +108,9 @@ func (o *POSTPaymentMethods201ResponseDataRelationships) SetPaymentGateway(v POS } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTPaymentMethods201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTPaymentMethods201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -117,7 +118,7 @@ func (o *POSTPaymentMethods201ResponseDataRelationships) GetAttachments() POSTAv // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTPaymentMethods201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTPaymentMethods201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -133,11 +134,43 @@ func (o *POSTPaymentMethods201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTPaymentMethods201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTPaymentMethods201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTPaymentMethods201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPaymentMethods201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTPaymentMethods201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTPaymentMethods201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTPaymentMethods201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -157,6 +190,9 @@ func (o POSTPaymentMethods201ResponseDataRelationships) ToMap() (map[string]inte if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_payment_options_201_response.go b/api/model_post_payment_options_201_response.go new file mode 100644 index 00000000..f26c7a3e --- /dev/null +++ b/api/model_post_payment_options_201_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTPaymentOptions201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTPaymentOptions201Response{} + +// POSTPaymentOptions201Response struct for POSTPaymentOptions201Response +type POSTPaymentOptions201Response struct { + Data *POSTPaymentOptions201ResponseData `json:"data,omitempty"` +} + +// NewPOSTPaymentOptions201Response instantiates a new POSTPaymentOptions201Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTPaymentOptions201Response() *POSTPaymentOptions201Response { + this := POSTPaymentOptions201Response{} + return &this +} + +// NewPOSTPaymentOptions201ResponseWithDefaults instantiates a new POSTPaymentOptions201Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTPaymentOptions201ResponseWithDefaults() *POSTPaymentOptions201Response { + this := POSTPaymentOptions201Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTPaymentOptions201Response) GetData() POSTPaymentOptions201ResponseData { + if o == nil || IsNil(o.Data) { + var ret POSTPaymentOptions201ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPaymentOptions201Response) GetDataOk() (*POSTPaymentOptions201ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTPaymentOptions201Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTPaymentOptions201ResponseData and assigns it to the Data field. +func (o *POSTPaymentOptions201Response) SetData(v POSTPaymentOptions201ResponseData) { + o.Data = &v +} + +func (o POSTPaymentOptions201Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTPaymentOptions201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTPaymentOptions201Response struct { + value *POSTPaymentOptions201Response + isSet bool +} + +func (v NullablePOSTPaymentOptions201Response) Get() *POSTPaymentOptions201Response { + return v.value +} + +func (v *NullablePOSTPaymentOptions201Response) Set(val *POSTPaymentOptions201Response) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTPaymentOptions201Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTPaymentOptions201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTPaymentOptions201Response(val *POSTPaymentOptions201Response) *NullablePOSTPaymentOptions201Response { + return &NullablePOSTPaymentOptions201Response{value: val, isSet: true} +} + +func (v NullablePOSTPaymentOptions201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTPaymentOptions201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_payment_options_201_response_data.go b/api/model_post_payment_options_201_response_data.go new file mode 100644 index 00000000..07af28be --- /dev/null +++ b/api/model_post_payment_options_201_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTPaymentOptions201ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTPaymentOptions201ResponseData{} + +// POSTPaymentOptions201ResponseData struct for POSTPaymentOptions201ResponseData +type POSTPaymentOptions201ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTPaymentOptions201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTPaymentOptions201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPOSTPaymentOptions201ResponseData instantiates a new POSTPaymentOptions201ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTPaymentOptions201ResponseData() *POSTPaymentOptions201ResponseData { + this := POSTPaymentOptions201ResponseData{} + return &this +} + +// NewPOSTPaymentOptions201ResponseDataWithDefaults instantiates a new POSTPaymentOptions201ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTPaymentOptions201ResponseDataWithDefaults() *POSTPaymentOptions201ResponseData { + this := POSTPaymentOptions201ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPaymentOptions201ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPaymentOptions201ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTPaymentOptions201ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTPaymentOptions201ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPaymentOptions201ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPaymentOptions201ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTPaymentOptions201ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTPaymentOptions201ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTPaymentOptions201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPaymentOptions201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTPaymentOptions201ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *POSTPaymentOptions201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *POSTPaymentOptions201ResponseData) GetAttributes() POSTPaymentOptions201ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret POSTPaymentOptions201ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPaymentOptions201ResponseData) GetAttributesOk() (*POSTPaymentOptions201ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *POSTPaymentOptions201ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given POSTPaymentOptions201ResponseDataAttributes and assigns it to the Attributes field. +func (o *POSTPaymentOptions201ResponseData) SetAttributes(v POSTPaymentOptions201ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *POSTPaymentOptions201ResponseData) GetRelationships() POSTPaymentOptions201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTPaymentOptions201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPaymentOptions201ResponseData) GetRelationshipsOk() (*POSTPaymentOptions201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *POSTPaymentOptions201ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTPaymentOptions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTPaymentOptions201ResponseData) SetRelationships(v POSTPaymentOptions201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o POSTPaymentOptions201ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTPaymentOptions201ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePOSTPaymentOptions201ResponseData struct { + value *POSTPaymentOptions201ResponseData + isSet bool +} + +func (v NullablePOSTPaymentOptions201ResponseData) Get() *POSTPaymentOptions201ResponseData { + return v.value +} + +func (v *NullablePOSTPaymentOptions201ResponseData) Set(val *POSTPaymentOptions201ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTPaymentOptions201ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTPaymentOptions201ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTPaymentOptions201ResponseData(val *POSTPaymentOptions201ResponseData) *NullablePOSTPaymentOptions201ResponseData { + return &NullablePOSTPaymentOptions201ResponseData{value: val, isSet: true} +} + +func (v NullablePOSTPaymentOptions201ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTPaymentOptions201ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_payment_options_201_response_data_attributes.go b/api/model_post_payment_options_201_response_data_attributes.go new file mode 100644 index 00000000..a8ddf7a0 --- /dev/null +++ b/api/model_post_payment_options_201_response_data_attributes.go @@ -0,0 +1,305 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTPaymentOptions201ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTPaymentOptions201ResponseDataAttributes{} + +// POSTPaymentOptions201ResponseDataAttributes struct for POSTPaymentOptions201ResponseDataAttributes +type POSTPaymentOptions201ResponseDataAttributes struct { + // The payment option's name. Wehn blank is inherited by payment source type. + Name interface{} `json:"name,omitempty"` + // The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'credit_cards', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'. + PaymentSourceType interface{} `json:"payment_source_type"` + // The payment options data to be added to the payment source payload. Check payment specific API for more details. + Data interface{} `json:"data"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPOSTPaymentOptions201ResponseDataAttributes instantiates a new POSTPaymentOptions201ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTPaymentOptions201ResponseDataAttributes(paymentSourceType interface{}, data interface{}) *POSTPaymentOptions201ResponseDataAttributes { + this := POSTPaymentOptions201ResponseDataAttributes{} + this.PaymentSourceType = paymentSourceType + this.Data = data + return &this +} + +// NewPOSTPaymentOptions201ResponseDataAttributesWithDefaults instantiates a new POSTPaymentOptions201ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTPaymentOptions201ResponseDataAttributesWithDefaults() *POSTPaymentOptions201ResponseDataAttributes { + this := POSTPaymentOptions201ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPaymentOptions201ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPaymentOptions201ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *POSTPaymentOptions201ResponseDataAttributes) HasName() bool { + if o != nil && IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given interface{} and assigns it to the Name field. +func (o *POSTPaymentOptions201ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetPaymentSourceType returns the PaymentSourceType field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTPaymentOptions201ResponseDataAttributes) GetPaymentSourceType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.PaymentSourceType +} + +// GetPaymentSourceTypeOk returns a tuple with the PaymentSourceType field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPaymentOptions201ResponseDataAttributes) GetPaymentSourceTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.PaymentSourceType) { + return nil, false + } + return &o.PaymentSourceType, true +} + +// SetPaymentSourceType sets field value +func (o *POSTPaymentOptions201ResponseDataAttributes) SetPaymentSourceType(v interface{}) { + o.PaymentSourceType = v +} + +// GetData returns the Data field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTPaymentOptions201ResponseDataAttributes) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPaymentOptions201ResponseDataAttributes) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *POSTPaymentOptions201ResponseDataAttributes) SetData(v interface{}) { + o.Data = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPaymentOptions201ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPaymentOptions201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *POSTPaymentOptions201ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *POSTPaymentOptions201ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPaymentOptions201ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPaymentOptions201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *POSTPaymentOptions201ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *POSTPaymentOptions201ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPaymentOptions201ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPaymentOptions201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *POSTPaymentOptions201ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *POSTPaymentOptions201ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o POSTPaymentOptions201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTPaymentOptions201ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.PaymentSourceType != nil { + toSerialize["payment_source_type"] = o.PaymentSourceType + } + if o.Data != nil { + toSerialize["data"] = o.Data + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePOSTPaymentOptions201ResponseDataAttributes struct { + value *POSTPaymentOptions201ResponseDataAttributes + isSet bool +} + +func (v NullablePOSTPaymentOptions201ResponseDataAttributes) Get() *POSTPaymentOptions201ResponseDataAttributes { + return v.value +} + +func (v *NullablePOSTPaymentOptions201ResponseDataAttributes) Set(val *POSTPaymentOptions201ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTPaymentOptions201ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTPaymentOptions201ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTPaymentOptions201ResponseDataAttributes(val *POSTPaymentOptions201ResponseDataAttributes) *NullablePOSTPaymentOptions201ResponseDataAttributes { + return &NullablePOSTPaymentOptions201ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePOSTPaymentOptions201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTPaymentOptions201ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_payment_options_201_response_data_relationships.go b/api/model_post_payment_options_201_response_data_relationships.go new file mode 100644 index 00000000..487969ff --- /dev/null +++ b/api/model_post_payment_options_201_response_data_relationships.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTPaymentOptions201ResponseDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTPaymentOptions201ResponseDataRelationships{} + +// POSTPaymentOptions201ResponseDataRelationships struct for POSTPaymentOptions201ResponseDataRelationships +type POSTPaymentOptions201ResponseDataRelationships struct { + Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` +} + +// NewPOSTPaymentOptions201ResponseDataRelationships instantiates a new POSTPaymentOptions201ResponseDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTPaymentOptions201ResponseDataRelationships() *POSTPaymentOptions201ResponseDataRelationships { + this := POSTPaymentOptions201ResponseDataRelationships{} + return &this +} + +// NewPOSTPaymentOptions201ResponseDataRelationshipsWithDefaults instantiates a new POSTPaymentOptions201ResponseDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTPaymentOptions201ResponseDataRelationshipsWithDefaults() *POSTPaymentOptions201ResponseDataRelationships { + this := POSTPaymentOptions201ResponseDataRelationships{} + return &this +} + +// GetOrder returns the Order field value if set, zero value otherwise. +func (o *POSTPaymentOptions201ResponseDataRelationships) GetOrder() POSTAdyenPayments201ResponseDataRelationshipsOrder { + if o == nil || IsNil(o.Order) { + var ret POSTAdyenPayments201ResponseDataRelationshipsOrder + return ret + } + return *o.Order +} + +// GetOrderOk returns a tuple with the Order field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPaymentOptions201ResponseDataRelationships) GetOrderOk() (*POSTAdyenPayments201ResponseDataRelationshipsOrder, bool) { + if o == nil || IsNil(o.Order) { + return nil, false + } + return o.Order, true +} + +// HasOrder returns a boolean if a field has been set. +func (o *POSTPaymentOptions201ResponseDataRelationships) HasOrder() bool { + if o != nil && !IsNil(o.Order) { + return true + } + + return false +} + +// SetOrder gets a reference to the given POSTAdyenPayments201ResponseDataRelationshipsOrder and assigns it to the Order field. +func (o *POSTPaymentOptions201ResponseDataRelationships) SetOrder(v POSTAdyenPayments201ResponseDataRelationshipsOrder) { + o.Order = &v +} + +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *POSTPaymentOptions201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPaymentOptions201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *POSTPaymentOptions201ResponseDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTPaymentOptions201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { + o.Attachments = &v +} + +func (o POSTPaymentOptions201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTPaymentOptions201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Order) { + toSerialize["order"] = o.Order + } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } + return toSerialize, nil +} + +type NullablePOSTPaymentOptions201ResponseDataRelationships struct { + value *POSTPaymentOptions201ResponseDataRelationships + isSet bool +} + +func (v NullablePOSTPaymentOptions201ResponseDataRelationships) Get() *POSTPaymentOptions201ResponseDataRelationships { + return v.value +} + +func (v *NullablePOSTPaymentOptions201ResponseDataRelationships) Set(val *POSTPaymentOptions201ResponseDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTPaymentOptions201ResponseDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTPaymentOptions201ResponseDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTPaymentOptions201ResponseDataRelationships(val *POSTPaymentOptions201ResponseDataRelationships) *NullablePOSTPaymentOptions201ResponseDataRelationships { + return &NullablePOSTPaymentOptions201ResponseDataRelationships{value: val, isSet: true} +} + +func (v NullablePOSTPaymentOptions201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTPaymentOptions201ResponseDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_paypal_gateways_201_response.go b/api/model_post_paypal_gateways_201_response.go index a84a890a..a08e0ca8 100644 --- a/api/model_post_paypal_gateways_201_response.go +++ b/api/model_post_paypal_gateways_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_paypal_gateways_201_response_data.go b/api/model_post_paypal_gateways_201_response_data.go index ee844df0..5bf50702 100644 --- a/api/model_post_paypal_gateways_201_response_data.go +++ b/api/model_post_paypal_gateways_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_paypal_gateways_201_response_data_attributes.go b/api/model_post_paypal_gateways_201_response_data_attributes.go index 157fd910..79749b9e 100644 --- a/api/model_post_paypal_gateways_201_response_data_attributes.go +++ b/api/model_post_paypal_gateways_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type POSTPaypalGateways201ResponseDataAttributes struct { Name interface{} `json:"name"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_paypal_gateways_201_response_data_relationships.go b/api/model_post_paypal_gateways_201_response_data_relationships.go index 78ce98e9..59a76c1e 100644 --- a/api/model_post_paypal_gateways_201_response_data_relationships.go +++ b/api/model_post_paypal_gateways_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &POSTPaypalGateways201ResponseDataRelationships{} // POSTPaypalGateways201ResponseDataRelationships struct for POSTPaypalGateways201ResponseDataRelationships type POSTPaypalGateways201ResponseDataRelationships struct { PaymentMethods *POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` PaypalPayments *POSTPaypalGateways201ResponseDataRelationshipsPaypalPayments `json:"paypal_payments,omitempty"` } @@ -73,6 +74,38 @@ func (o *POSTPaypalGateways201ResponseDataRelationships) SetPaymentMethods(v POS o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTPaypalGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPaypalGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTPaypalGateways201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTPaypalGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + // GetPaypalPayments returns the PaypalPayments field value if set, zero value otherwise. func (o *POSTPaypalGateways201ResponseDataRelationships) GetPaypalPayments() POSTPaypalGateways201ResponseDataRelationshipsPaypalPayments { if o == nil || IsNil(o.PaypalPayments) { @@ -118,6 +151,9 @@ func (o POSTPaypalGateways201ResponseDataRelationships) ToMap() (map[string]inte if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.PaypalPayments) { toSerialize["paypal_payments"] = o.PaypalPayments } diff --git a/api/model_post_paypal_gateways_201_response_data_relationships_paypal_payments.go b/api/model_post_paypal_gateways_201_response_data_relationships_paypal_payments.go index a3a2f197..351107e5 100644 --- a/api/model_post_paypal_gateways_201_response_data_relationships_paypal_payments.go +++ b/api/model_post_paypal_gateways_201_response_data_relationships_paypal_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_paypal_gateways_201_response_data_relationships_paypal_payments_data.go b/api/model_post_paypal_gateways_201_response_data_relationships_paypal_payments_data.go index 177ada64..104f20c5 100644 --- a/api/model_post_paypal_gateways_201_response_data_relationships_paypal_payments_data.go +++ b/api/model_post_paypal_gateways_201_response_data_relationships_paypal_payments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_paypal_payments_201_response.go b/api/model_post_paypal_payments_201_response.go index d14407b7..be077db8 100644 --- a/api/model_post_paypal_payments_201_response.go +++ b/api/model_post_paypal_payments_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_paypal_payments_201_response_data.go b/api/model_post_paypal_payments_201_response_data.go index 13054294..1b191b1e 100644 --- a/api/model_post_paypal_payments_201_response_data.go +++ b/api/model_post_paypal_payments_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_paypal_payments_201_response_data_attributes.go b/api/model_post_paypal_payments_201_response_data_attributes.go index d23ee1c3..d38b4ad8 100644 --- a/api/model_post_paypal_payments_201_response_data_attributes.go +++ b/api/model_post_paypal_payments_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,7 +28,7 @@ type POSTPaypalPayments201ResponseDataAttributes struct { NoteToPayer interface{} `json:"note_to_payer,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_percentage_discount_promotions_201_response.go b/api/model_post_percentage_discount_promotions_201_response.go index c9376a2c..4900e287 100644 --- a/api/model_post_percentage_discount_promotions_201_response.go +++ b/api/model_post_percentage_discount_promotions_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_percentage_discount_promotions_201_response_data.go b/api/model_post_percentage_discount_promotions_201_response_data.go index 6ed296ab..c1eb4d94 100644 --- a/api/model_post_percentage_discount_promotions_201_response_data.go +++ b/api/model_post_percentage_discount_promotions_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type POSTPercentageDiscountPromotions201ResponseData struct { Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` Attributes *POSTPercentageDiscountPromotions201ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTFixedPricePromotions201ResponseDataRelationships `json:"relationships,omitempty"` + Relationships *POSTBuyXPayYPromotions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPOSTPercentageDiscountPromotions201ResponseData instantiates a new POSTPercentageDiscountPromotions201ResponseData object @@ -177,9 +177,9 @@ func (o *POSTPercentageDiscountPromotions201ResponseData) SetAttributes(v POSTPe } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *POSTPercentageDiscountPromotions201ResponseData) GetRelationships() POSTFixedPricePromotions201ResponseDataRelationships { +func (o *POSTPercentageDiscountPromotions201ResponseData) GetRelationships() POSTBuyXPayYPromotions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTFixedPricePromotions201ResponseDataRelationships + var ret POSTBuyXPayYPromotions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *POSTPercentageDiscountPromotions201ResponseData) GetRelationships() POS // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTPercentageDiscountPromotions201ResponseData) GetRelationshipsOk() (*POSTFixedPricePromotions201ResponseDataRelationships, bool) { +func (o *POSTPercentageDiscountPromotions201ResponseData) GetRelationshipsOk() (*POSTBuyXPayYPromotions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *POSTPercentageDiscountPromotions201ResponseData) HasRelationships() boo return false } -// SetRelationships gets a reference to the given POSTFixedPricePromotions201ResponseDataRelationships and assigns it to the Relationships field. -func (o *POSTPercentageDiscountPromotions201ResponseData) SetRelationships(v POSTFixedPricePromotions201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTBuyXPayYPromotions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTPercentageDiscountPromotions201ResponseData) SetRelationships(v POSTBuyXPayYPromotions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_post_percentage_discount_promotions_201_response_data_attributes.go b/api/model_post_percentage_discount_promotions_201_response_data_attributes.go index d34c36f7..66bb21c3 100644 --- a/api/model_post_percentage_discount_promotions_201_response_data_attributes.go +++ b/api/model_post_percentage_discount_promotions_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,15 +24,23 @@ type POSTPercentageDiscountPromotions201ResponseDataAttributes struct { Name interface{} `json:"name"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` + // Indicates if the promotion will be applied exclusively, based on its priority score. + Exclusive interface{} `json:"exclusive,omitempty"` + // The priority assigned to the promotion (lower means higher priority). + Priority interface{} `json:"priority,omitempty"` // The activation date/time of this promotion. StartsAt interface{} `json:"starts_at"` // The expiration date/time of this promotion (must be after starts_at). ExpiresAt interface{} `json:"expires_at"` - // The total number of times this promotion can be applied. - TotalUsageLimit interface{} `json:"total_usage_limit"` + // The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times. + TotalUsageLimit interface{} `json:"total_usage_limit,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -44,12 +52,11 @@ type POSTPercentageDiscountPromotions201ResponseDataAttributes struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTPercentageDiscountPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, totalUsageLimit interface{}, percentage interface{}) *POSTPercentageDiscountPromotions201ResponseDataAttributes { +func NewPOSTPercentageDiscountPromotions201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}, percentage interface{}) *POSTPercentageDiscountPromotions201ResponseDataAttributes { this := POSTPercentageDiscountPromotions201ResponseDataAttributes{} this.Name = name this.StartsAt = startsAt this.ExpiresAt = expiresAt - this.TotalUsageLimit = totalUsageLimit this.Percentage = percentage return &this } @@ -121,6 +128,72 @@ func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) SetCurrencyC o.CurrencyCode = v } +// GetExclusive returns the Exclusive field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetExclusive() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Exclusive +} + +// GetExclusiveOk returns a tuple with the Exclusive field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetExclusiveOk() (*interface{}, bool) { + if o == nil || IsNil(o.Exclusive) { + return nil, false + } + return &o.Exclusive, true +} + +// HasExclusive returns a boolean if a field has been set. +func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) HasExclusive() bool { + if o != nil && IsNil(o.Exclusive) { + return true + } + + return false +} + +// SetExclusive gets a reference to the given interface{} and assigns it to the Exclusive field. +func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) SetExclusive(v interface{}) { + o.Exclusive = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetPriority() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetPriorityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return &o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) HasPriority() bool { + if o != nil && IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given interface{} and assigns it to the Priority field. +func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) SetPriority(v interface{}) { + o.Priority = v +} + // GetStartsAt returns the StartsAt field value // If the value is explicit nil, the zero value for interface{} will be returned func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetStartsAt() interface{} { @@ -173,18 +246,16 @@ func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) SetExpiresAt o.ExpiresAt = v } -// GetTotalUsageLimit returns the TotalUsageLimit field value -// If the value is explicit nil, the zero value for interface{} will be returned +// GetTotalUsageLimit returns the TotalUsageLimit field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetTotalUsageLimit() interface{} { if o == nil { var ret interface{} return ret } - return o.TotalUsageLimit } -// GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field value +// GetTotalUsageLimitOk returns a tuple with the TotalUsageLimit field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetTotalUsageLimitOk() (*interface{}, bool) { @@ -194,11 +265,86 @@ func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetTotalUsag return &o.TotalUsageLimit, true } -// SetTotalUsageLimit sets field value +// HasTotalUsageLimit returns a boolean if a field has been set. +func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) HasTotalUsageLimit() bool { + if o != nil && IsNil(o.TotalUsageLimit) { + return true + } + + return false +} + +// SetTotalUsageLimit gets a reference to the given interface{} and assigns it to the TotalUsageLimit field. func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) SetTotalUsageLimit(v interface{}) { o.TotalUsageLimit = v } +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTPercentageDiscountPromotions201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -340,6 +486,12 @@ func (o POSTPercentageDiscountPromotions201ResponseDataAttributes) ToMap() (map[ if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } + if o.Exclusive != nil { + toSerialize["exclusive"] = o.Exclusive + } + if o.Priority != nil { + toSerialize["priority"] = o.Priority + } if o.StartsAt != nil { toSerialize["starts_at"] = o.StartsAt } @@ -349,6 +501,12 @@ func (o POSTPercentageDiscountPromotions201ResponseDataAttributes) ToMap() (map[ if o.TotalUsageLimit != nil { toSerialize["total_usage_limit"] = o.TotalUsageLimit } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_price_frequency_tiers_201_response.go b/api/model_post_price_frequency_tiers_201_response.go index 72b7a2c9..691889dd 100644 --- a/api/model_post_price_frequency_tiers_201_response.go +++ b/api/model_post_price_frequency_tiers_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_price_frequency_tiers_201_response_data.go b/api/model_post_price_frequency_tiers_201_response_data.go index 4c45add8..98f5eb80 100644 --- a/api/model_post_price_frequency_tiers_201_response_data.go +++ b/api/model_post_price_frequency_tiers_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_price_frequency_tiers_201_response_data_attributes.go b/api/model_post_price_frequency_tiers_201_response_data_attributes.go index c43cd35f..f1605056 100644 --- a/api/model_post_price_frequency_tiers_201_response_data_attributes.go +++ b/api/model_post_price_frequency_tiers_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &POSTPriceFrequencyTiers201ResponseDataAttributes{} // POSTPriceFrequencyTiers201ResponseDataAttributes struct for POSTPriceFrequencyTiers201ResponseDataAttributes type POSTPriceFrequencyTiers201ResponseDataAttributes struct { - // The price tier's name + // The price tier's name. Name interface{} `json:"name"` // The tier upper limit, expressed as the line item frequency in days (or frequency label, ie 'monthly'). When 'null' it means infinity (useful to have an always matching tier). UpTo interface{} `json:"up_to,omitempty"` @@ -28,7 +28,7 @@ type POSTPriceFrequencyTiers201ResponseDataAttributes struct { PriceAmountCents interface{} `json:"price_amount_cents"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_price_frequency_tiers_201_response_data_relationships.go b/api/model_post_price_frequency_tiers_201_response_data_relationships.go index 63987212..aa65a4c9 100644 --- a/api/model_post_price_frequency_tiers_201_response_data_relationships.go +++ b/api/model_post_price_frequency_tiers_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,10 @@ var _ MappedNullable = &POSTPriceFrequencyTiers201ResponseDataRelationships{} // POSTPriceFrequencyTiers201ResponseDataRelationships struct for POSTPriceFrequencyTiers201ResponseDataRelationships type POSTPriceFrequencyTiers201ResponseDataRelationships struct { - Price *POSTPriceFrequencyTiers201ResponseDataRelationshipsPrice `json:"price,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` + Price *POSTPriceFrequencyTiers201ResponseDataRelationshipsPrice `json:"price,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` } // NewPOSTPriceFrequencyTiers201ResponseDataRelationships instantiates a new POSTPriceFrequencyTiers201ResponseDataRelationships object @@ -75,9 +76,9 @@ func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) SetPrice(v POSTPri } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -85,7 +86,7 @@ func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetAttachments() P // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -101,15 +102,47 @@ func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) HasAttachments() b return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + // GetEvents returns the Events field value if set, zero value otherwise. -func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { +func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents + var ret POSTAddresses201ResponseDataRelationshipsEvents return ret } return *o.Events @@ -117,7 +150,7 @@ func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetEvents() GETAut // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { +func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -133,8 +166,8 @@ func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTPriceFrequencyTiers201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { o.Events = &v } @@ -154,6 +187,9 @@ func (o POSTPriceFrequencyTiers201ResponseDataRelationships) ToMap() (map[string if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.Events) { toSerialize["events"] = o.Events } diff --git a/api/model_post_price_frequency_tiers_201_response_data_relationships_price.go b/api/model_post_price_frequency_tiers_201_response_data_relationships_price.go index 928cc0c9..22eb3161 100644 --- a/api/model_post_price_frequency_tiers_201_response_data_relationships_price.go +++ b/api/model_post_price_frequency_tiers_201_response_data_relationships_price.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_price_frequency_tiers_201_response_data_relationships_price_data.go b/api/model_post_price_frequency_tiers_201_response_data_relationships_price_data.go index 35fc039b..3eec30c5 100644 --- a/api/model_post_price_frequency_tiers_201_response_data_relationships_price_data.go +++ b/api/model_post_price_frequency_tiers_201_response_data_relationships_price_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_price_list_schedulers_201_response.go b/api/model_post_price_list_schedulers_201_response.go new file mode 100644 index 00000000..9a0b41ee --- /dev/null +++ b/api/model_post_price_list_schedulers_201_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTPriceListSchedulers201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTPriceListSchedulers201Response{} + +// POSTPriceListSchedulers201Response struct for POSTPriceListSchedulers201Response +type POSTPriceListSchedulers201Response struct { + Data *POSTPriceListSchedulers201ResponseData `json:"data,omitempty"` +} + +// NewPOSTPriceListSchedulers201Response instantiates a new POSTPriceListSchedulers201Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTPriceListSchedulers201Response() *POSTPriceListSchedulers201Response { + this := POSTPriceListSchedulers201Response{} + return &this +} + +// NewPOSTPriceListSchedulers201ResponseWithDefaults instantiates a new POSTPriceListSchedulers201Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTPriceListSchedulers201ResponseWithDefaults() *POSTPriceListSchedulers201Response { + this := POSTPriceListSchedulers201Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTPriceListSchedulers201Response) GetData() POSTPriceListSchedulers201ResponseData { + if o == nil || IsNil(o.Data) { + var ret POSTPriceListSchedulers201ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPriceListSchedulers201Response) GetDataOk() (*POSTPriceListSchedulers201ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTPriceListSchedulers201Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTPriceListSchedulers201ResponseData and assigns it to the Data field. +func (o *POSTPriceListSchedulers201Response) SetData(v POSTPriceListSchedulers201ResponseData) { + o.Data = &v +} + +func (o POSTPriceListSchedulers201Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTPriceListSchedulers201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTPriceListSchedulers201Response struct { + value *POSTPriceListSchedulers201Response + isSet bool +} + +func (v NullablePOSTPriceListSchedulers201Response) Get() *POSTPriceListSchedulers201Response { + return v.value +} + +func (v *NullablePOSTPriceListSchedulers201Response) Set(val *POSTPriceListSchedulers201Response) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTPriceListSchedulers201Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTPriceListSchedulers201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTPriceListSchedulers201Response(val *POSTPriceListSchedulers201Response) *NullablePOSTPriceListSchedulers201Response { + return &NullablePOSTPriceListSchedulers201Response{value: val, isSet: true} +} + +func (v NullablePOSTPriceListSchedulers201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTPriceListSchedulers201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_price_list_schedulers_201_response_data.go b/api/model_post_price_list_schedulers_201_response_data.go new file mode 100644 index 00000000..735ab5f7 --- /dev/null +++ b/api/model_post_price_list_schedulers_201_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTPriceListSchedulers201ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTPriceListSchedulers201ResponseData{} + +// POSTPriceListSchedulers201ResponseData struct for POSTPriceListSchedulers201ResponseData +type POSTPriceListSchedulers201ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTPriceListSchedulers201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTPriceListSchedulers201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPOSTPriceListSchedulers201ResponseData instantiates a new POSTPriceListSchedulers201ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTPriceListSchedulers201ResponseData() *POSTPriceListSchedulers201ResponseData { + this := POSTPriceListSchedulers201ResponseData{} + return &this +} + +// NewPOSTPriceListSchedulers201ResponseDataWithDefaults instantiates a new POSTPriceListSchedulers201ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTPriceListSchedulers201ResponseDataWithDefaults() *POSTPriceListSchedulers201ResponseData { + this := POSTPriceListSchedulers201ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPriceListSchedulers201ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPriceListSchedulers201ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTPriceListSchedulers201ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTPriceListSchedulers201ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPriceListSchedulers201ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPriceListSchedulers201ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTPriceListSchedulers201ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTPriceListSchedulers201ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTPriceListSchedulers201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPriceListSchedulers201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTPriceListSchedulers201ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *POSTPriceListSchedulers201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *POSTPriceListSchedulers201ResponseData) GetAttributes() POSTPriceListSchedulers201ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret POSTPriceListSchedulers201ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPriceListSchedulers201ResponseData) GetAttributesOk() (*POSTPriceListSchedulers201ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *POSTPriceListSchedulers201ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given POSTPriceListSchedulers201ResponseDataAttributes and assigns it to the Attributes field. +func (o *POSTPriceListSchedulers201ResponseData) SetAttributes(v POSTPriceListSchedulers201ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *POSTPriceListSchedulers201ResponseData) GetRelationships() POSTPriceListSchedulers201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTPriceListSchedulers201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPriceListSchedulers201ResponseData) GetRelationshipsOk() (*POSTPriceListSchedulers201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *POSTPriceListSchedulers201ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTPriceListSchedulers201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTPriceListSchedulers201ResponseData) SetRelationships(v POSTPriceListSchedulers201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o POSTPriceListSchedulers201ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTPriceListSchedulers201ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePOSTPriceListSchedulers201ResponseData struct { + value *POSTPriceListSchedulers201ResponseData + isSet bool +} + +func (v NullablePOSTPriceListSchedulers201ResponseData) Get() *POSTPriceListSchedulers201ResponseData { + return v.value +} + +func (v *NullablePOSTPriceListSchedulers201ResponseData) Set(val *POSTPriceListSchedulers201ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTPriceListSchedulers201ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTPriceListSchedulers201ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTPriceListSchedulers201ResponseData(val *POSTPriceListSchedulers201ResponseData) *NullablePOSTPriceListSchedulers201ResponseData { + return &NullablePOSTPriceListSchedulers201ResponseData{value: val, isSet: true} +} + +func (v NullablePOSTPriceListSchedulers201ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTPriceListSchedulers201ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_price_list_schedulers_201_response_data_attributes.go b/api/model_post_price_list_schedulers_201_response_data_attributes.go new file mode 100644 index 00000000..3f6c3267 --- /dev/null +++ b/api/model_post_price_list_schedulers_201_response_data_attributes.go @@ -0,0 +1,375 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTPriceListSchedulers201ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTPriceListSchedulers201ResponseDataAttributes{} + +// POSTPriceListSchedulers201ResponseDataAttributes struct for POSTPriceListSchedulers201ResponseDataAttributes +type POSTPriceListSchedulers201ResponseDataAttributes struct { + // The price list scheduler's internal name. + Name interface{} `json:"name"` + // The activation date/time of this price list scheduler. + StartsAt interface{} `json:"starts_at"` + // The expiration date/time of this price list scheduler (must be after starts_at). + ExpiresAt interface{} `json:"expires_at"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPOSTPriceListSchedulers201ResponseDataAttributes instantiates a new POSTPriceListSchedulers201ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTPriceListSchedulers201ResponseDataAttributes(name interface{}, startsAt interface{}, expiresAt interface{}) *POSTPriceListSchedulers201ResponseDataAttributes { + this := POSTPriceListSchedulers201ResponseDataAttributes{} + this.Name = name + this.StartsAt = startsAt + this.ExpiresAt = expiresAt + return &this +} + +// NewPOSTPriceListSchedulers201ResponseDataAttributesWithDefaults instantiates a new POSTPriceListSchedulers201ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTPriceListSchedulers201ResponseDataAttributesWithDefaults() *POSTPriceListSchedulers201ResponseDataAttributes { + this := POSTPriceListSchedulers201ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetStartsAt returns the StartsAt field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetStartsAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.StartsAt +} + +// GetStartsAtOk returns a tuple with the StartsAt field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetStartsAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.StartsAt) { + return nil, false + } + return &o.StartsAt, true +} + +// SetStartsAt sets field value +func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetStartsAt(v interface{}) { + o.StartsAt = v +} + +// GetExpiresAt returns the ExpiresAt field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetExpiresAt() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetExpiresAtOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExpiresAt) { + return nil, false + } + return &o.ExpiresAt, true +} + +// SetExpiresAt sets field value +func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetExpiresAt(v interface{}) { + o.ExpiresAt = v +} + +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *POSTPriceListSchedulers201ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *POSTPriceListSchedulers201ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *POSTPriceListSchedulers201ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *POSTPriceListSchedulers201ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPriceListSchedulers201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *POSTPriceListSchedulers201ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *POSTPriceListSchedulers201ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o POSTPriceListSchedulers201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTPriceListSchedulers201ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.StartsAt != nil { + toSerialize["starts_at"] = o.StartsAt + } + if o.ExpiresAt != nil { + toSerialize["expires_at"] = o.ExpiresAt + } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePOSTPriceListSchedulers201ResponseDataAttributes struct { + value *POSTPriceListSchedulers201ResponseDataAttributes + isSet bool +} + +func (v NullablePOSTPriceListSchedulers201ResponseDataAttributes) Get() *POSTPriceListSchedulers201ResponseDataAttributes { + return v.value +} + +func (v *NullablePOSTPriceListSchedulers201ResponseDataAttributes) Set(val *POSTPriceListSchedulers201ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTPriceListSchedulers201ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTPriceListSchedulers201ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTPriceListSchedulers201ResponseDataAttributes(val *POSTPriceListSchedulers201ResponseDataAttributes) *NullablePOSTPriceListSchedulers201ResponseDataAttributes { + return &NullablePOSTPriceListSchedulers201ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePOSTPriceListSchedulers201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTPriceListSchedulers201ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_price_list_schedulers_201_response_data_relationships.go b/api/model_post_price_list_schedulers_201_response_data_relationships.go new file mode 100644 index 00000000..c00be551 --- /dev/null +++ b/api/model_post_price_list_schedulers_201_response_data_relationships.go @@ -0,0 +1,233 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTPriceListSchedulers201ResponseDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTPriceListSchedulers201ResponseDataRelationships{} + +// POSTPriceListSchedulers201ResponseDataRelationships struct for POSTPriceListSchedulers201ResponseDataRelationships +type POSTPriceListSchedulers201ResponseDataRelationships struct { + Market *POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket `json:"market,omitempty"` + PriceList *POSTMarkets201ResponseDataRelationshipsPriceList `json:"price_list,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewPOSTPriceListSchedulers201ResponseDataRelationships instantiates a new POSTPriceListSchedulers201ResponseDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTPriceListSchedulers201ResponseDataRelationships() *POSTPriceListSchedulers201ResponseDataRelationships { + this := POSTPriceListSchedulers201ResponseDataRelationships{} + return &this +} + +// NewPOSTPriceListSchedulers201ResponseDataRelationshipsWithDefaults instantiates a new POSTPriceListSchedulers201ResponseDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTPriceListSchedulers201ResponseDataRelationshipsWithDefaults() *POSTPriceListSchedulers201ResponseDataRelationships { + this := POSTPriceListSchedulers201ResponseDataRelationships{} + return &this +} + +// GetMarket returns the Market field value if set, zero value otherwise. +func (o *POSTPriceListSchedulers201ResponseDataRelationships) GetMarket() POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket { + if o == nil || IsNil(o.Market) { + var ret POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket + return ret + } + return *o.Market +} + +// GetMarketOk returns a tuple with the Market field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPriceListSchedulers201ResponseDataRelationships) GetMarketOk() (*POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket, bool) { + if o == nil || IsNil(o.Market) { + return nil, false + } + return o.Market, true +} + +// HasMarket returns a boolean if a field has been set. +func (o *POSTPriceListSchedulers201ResponseDataRelationships) HasMarket() bool { + if o != nil && !IsNil(o.Market) { + return true + } + + return false +} + +// SetMarket gets a reference to the given POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket and assigns it to the Market field. +func (o *POSTPriceListSchedulers201ResponseDataRelationships) SetMarket(v POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket) { + o.Market = &v +} + +// GetPriceList returns the PriceList field value if set, zero value otherwise. +func (o *POSTPriceListSchedulers201ResponseDataRelationships) GetPriceList() POSTMarkets201ResponseDataRelationshipsPriceList { + if o == nil || IsNil(o.PriceList) { + var ret POSTMarkets201ResponseDataRelationshipsPriceList + return ret + } + return *o.PriceList +} + +// GetPriceListOk returns a tuple with the PriceList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPriceListSchedulers201ResponseDataRelationships) GetPriceListOk() (*POSTMarkets201ResponseDataRelationshipsPriceList, bool) { + if o == nil || IsNil(o.PriceList) { + return nil, false + } + return o.PriceList, true +} + +// HasPriceList returns a boolean if a field has been set. +func (o *POSTPriceListSchedulers201ResponseDataRelationships) HasPriceList() bool { + if o != nil && !IsNil(o.PriceList) { + return true + } + + return false +} + +// SetPriceList gets a reference to the given POSTMarkets201ResponseDataRelationshipsPriceList and assigns it to the PriceList field. +func (o *POSTPriceListSchedulers201ResponseDataRelationships) SetPriceList(v POSTMarkets201ResponseDataRelationshipsPriceList) { + o.PriceList = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *POSTPriceListSchedulers201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPriceListSchedulers201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *POSTPriceListSchedulers201ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTPriceListSchedulers201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTPriceListSchedulers201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPriceListSchedulers201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTPriceListSchedulers201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTPriceListSchedulers201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + +func (o POSTPriceListSchedulers201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTPriceListSchedulers201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Market) { + toSerialize["market"] = o.Market + } + if !IsNil(o.PriceList) { + toSerialize["price_list"] = o.PriceList + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullablePOSTPriceListSchedulers201ResponseDataRelationships struct { + value *POSTPriceListSchedulers201ResponseDataRelationships + isSet bool +} + +func (v NullablePOSTPriceListSchedulers201ResponseDataRelationships) Get() *POSTPriceListSchedulers201ResponseDataRelationships { + return v.value +} + +func (v *NullablePOSTPriceListSchedulers201ResponseDataRelationships) Set(val *POSTPriceListSchedulers201ResponseDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTPriceListSchedulers201ResponseDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTPriceListSchedulers201ResponseDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTPriceListSchedulers201ResponseDataRelationships(val *POSTPriceListSchedulers201ResponseDataRelationships) *NullablePOSTPriceListSchedulers201ResponseDataRelationships { + return &NullablePOSTPriceListSchedulers201ResponseDataRelationships{value: val, isSet: true} +} + +func (v NullablePOSTPriceListSchedulers201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTPriceListSchedulers201ResponseDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_price_lists_201_response.go b/api/model_post_price_lists_201_response.go index c23e94aa..4610d000 100644 --- a/api/model_post_price_lists_201_response.go +++ b/api/model_post_price_lists_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_price_lists_201_response_data.go b/api/model_post_price_lists_201_response_data.go index 0cbfa27e..e1451f35 100644 --- a/api/model_post_price_lists_201_response_data.go +++ b/api/model_post_price_lists_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_price_lists_201_response_data_attributes.go b/api/model_post_price_lists_201_response_data_attributes.go index 4f7e39e1..4e7aa04c 100644 --- a/api/model_post_price_lists_201_response_data_attributes.go +++ b/api/model_post_price_lists_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,16 +20,20 @@ var _ MappedNullable = &POSTPriceLists201ResponseDataAttributes{} // POSTPriceLists201ResponseDataAttributes struct for POSTPriceLists201ResponseDataAttributes type POSTPriceLists201ResponseDataAttributes struct { - // The price list's internal name + // The price list's internal name. Name interface{} `json:"name"` + // A string that you can use to identify the price list (must be unique within the environment). + Code interface{} `json:"code,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code"` // Indicates if the associated prices include taxes. TaxIncluded interface{} `json:"tax_included,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // The rules (using Rules Engine) to be applied. + Rules interface{} `json:"rules,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` } @@ -79,6 +83,39 @@ func (o *POSTPriceLists201ResponseDataAttributes) SetName(v interface{}) { o.Name = v } +// GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPriceLists201ResponseDataAttributes) GetCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPriceLists201ResponseDataAttributes) GetCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return &o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *POSTPriceLists201ResponseDataAttributes) HasCode() bool { + if o != nil && IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given interface{} and assigns it to the Code field. +func (o *POSTPriceLists201ResponseDataAttributes) SetCode(v interface{}) { + o.Code = v +} + // GetCurrencyCode returns the CurrencyCode field value // If the value is explicit nil, the zero value for interface{} will be returned func (o *POSTPriceLists201ResponseDataAttributes) GetCurrencyCode() interface{} { @@ -204,6 +241,39 @@ func (o *POSTPriceLists201ResponseDataAttributes) SetReferenceOrigin(v interface o.ReferenceOrigin = v } +// GetRules returns the Rules field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPriceLists201ResponseDataAttributes) GetRules() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPriceLists201ResponseDataAttributes) GetRulesOk() (*interface{}, bool) { + if o == nil || IsNil(o.Rules) { + return nil, false + } + return &o.Rules, true +} + +// HasRules returns a boolean if a field has been set. +func (o *POSTPriceLists201ResponseDataAttributes) HasRules() bool { + if o != nil && IsNil(o.Rules) { + return true + } + + return false +} + +// SetRules gets a reference to the given interface{} and assigns it to the Rules field. +func (o *POSTPriceLists201ResponseDataAttributes) SetRules(v interface{}) { + o.Rules = v +} + // GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTPriceLists201ResponseDataAttributes) GetMetadata() interface{} { if o == nil { @@ -250,6 +320,9 @@ func (o POSTPriceLists201ResponseDataAttributes) ToMap() (map[string]interface{} if o.Name != nil { toSerialize["name"] = o.Name } + if o.Code != nil { + toSerialize["code"] = o.Code + } if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } @@ -262,6 +335,9 @@ func (o POSTPriceLists201ResponseDataAttributes) ToMap() (map[string]interface{} if o.ReferenceOrigin != nil { toSerialize["reference_origin"] = o.ReferenceOrigin } + if o.Rules != nil { + toSerialize["rules"] = o.Rules + } if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } diff --git a/api/model_post_price_lists_201_response_data_relationships.go b/api/model_post_price_lists_201_response_data_relationships.go index 9ec91910..33e84eb8 100644 --- a/api/model_post_price_lists_201_response_data_relationships.go +++ b/api/model_post_price_lists_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,10 @@ var _ MappedNullable = &POSTPriceLists201ResponseDataRelationships{} // POSTPriceLists201ResponseDataRelationships struct for POSTPriceLists201ResponseDataRelationships type POSTPriceLists201ResponseDataRelationships struct { - Prices *POSTPriceLists201ResponseDataRelationshipsPrices `json:"prices,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Prices *POSTPriceLists201ResponseDataRelationshipsPrices `json:"prices,omitempty"` + PriceListSchedulers *POSTMarkets201ResponseDataRelationshipsPriceListSchedulers `json:"price_list_schedulers,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTPriceLists201ResponseDataRelationships instantiates a new POSTPriceLists201ResponseDataRelationships object @@ -73,10 +75,42 @@ func (o *POSTPriceLists201ResponseDataRelationships) SetPrices(v POSTPriceLists2 o.Prices = &v } +// GetPriceListSchedulers returns the PriceListSchedulers field value if set, zero value otherwise. +func (o *POSTPriceLists201ResponseDataRelationships) GetPriceListSchedulers() POSTMarkets201ResponseDataRelationshipsPriceListSchedulers { + if o == nil || IsNil(o.PriceListSchedulers) { + var ret POSTMarkets201ResponseDataRelationshipsPriceListSchedulers + return ret + } + return *o.PriceListSchedulers +} + +// GetPriceListSchedulersOk returns a tuple with the PriceListSchedulers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPriceLists201ResponseDataRelationships) GetPriceListSchedulersOk() (*POSTMarkets201ResponseDataRelationshipsPriceListSchedulers, bool) { + if o == nil || IsNil(o.PriceListSchedulers) { + return nil, false + } + return o.PriceListSchedulers, true +} + +// HasPriceListSchedulers returns a boolean if a field has been set. +func (o *POSTPriceLists201ResponseDataRelationships) HasPriceListSchedulers() bool { + if o != nil && !IsNil(o.PriceListSchedulers) { + return true + } + + return false +} + +// SetPriceListSchedulers gets a reference to the given POSTMarkets201ResponseDataRelationshipsPriceListSchedulers and assigns it to the PriceListSchedulers field. +func (o *POSTPriceLists201ResponseDataRelationships) SetPriceListSchedulers(v POSTMarkets201ResponseDataRelationshipsPriceListSchedulers) { + o.PriceListSchedulers = &v +} + // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTPriceLists201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTPriceLists201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -84,7 +118,7 @@ func (o *POSTPriceLists201ResponseDataRelationships) GetAttachments() POSTAvalar // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTPriceLists201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTPriceLists201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -100,11 +134,43 @@ func (o *POSTPriceLists201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTPriceLists201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTPriceLists201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTPriceLists201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPriceLists201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTPriceLists201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTPriceLists201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTPriceLists201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -118,9 +184,15 @@ func (o POSTPriceLists201ResponseDataRelationships) ToMap() (map[string]interfac if !IsNil(o.Prices) { toSerialize["prices"] = o.Prices } + if !IsNil(o.PriceListSchedulers) { + toSerialize["price_list_schedulers"] = o.PriceListSchedulers + } if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_price_lists_201_response_data_relationships_prices.go b/api/model_post_price_lists_201_response_data_relationships_prices.go index 0101020d..4f2337fd 100644 --- a/api/model_post_price_lists_201_response_data_relationships_prices.go +++ b/api/model_post_price_lists_201_response_data_relationships_prices.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_price_lists_201_response_data_relationships_prices_data.go b/api/model_post_price_lists_201_response_data_relationships_prices_data.go index d2fed9c8..bd7fd27e 100644 --- a/api/model_post_price_lists_201_response_data_relationships_prices_data.go +++ b/api/model_post_price_lists_201_response_data_relationships_prices_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_price_volume_tiers_201_response.go b/api/model_post_price_volume_tiers_201_response.go index 6f99bfd6..0e8aea65 100644 --- a/api/model_post_price_volume_tiers_201_response.go +++ b/api/model_post_price_volume_tiers_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_price_volume_tiers_201_response_data.go b/api/model_post_price_volume_tiers_201_response_data.go index 1c26ce4a..7130f931 100644 --- a/api/model_post_price_volume_tiers_201_response_data.go +++ b/api/model_post_price_volume_tiers_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_price_volume_tiers_201_response_data_attributes.go b/api/model_post_price_volume_tiers_201_response_data_attributes.go index c855b28d..07c80dc0 100644 --- a/api/model_post_price_volume_tiers_201_response_data_attributes.go +++ b/api/model_post_price_volume_tiers_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &POSTPriceVolumeTiers201ResponseDataAttributes{} // POSTPriceVolumeTiers201ResponseDataAttributes struct for POSTPriceVolumeTiers201ResponseDataAttributes type POSTPriceVolumeTiers201ResponseDataAttributes struct { - // The price tier's name + // The price tier's name. Name interface{} `json:"name"` // The tier upper limit, expressed as the line item quantity. When 'null' it means infinity (useful to have an always matching tier). UpTo interface{} `json:"up_to,omitempty"` @@ -28,7 +28,7 @@ type POSTPriceVolumeTiers201ResponseDataAttributes struct { PriceAmountCents interface{} `json:"price_amount_cents"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_prices_201_response.go b/api/model_post_prices_201_response.go index 9106209c..bfa1661a 100644 --- a/api/model_post_prices_201_response.go +++ b/api/model_post_prices_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_prices_201_response_data.go b/api/model_post_prices_201_response_data.go index 4ce4e41b..322fb215 100644 --- a/api/model_post_prices_201_response_data.go +++ b/api/model_post_prices_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_prices_201_response_data_attributes.go b/api/model_post_prices_201_response_data_attributes.go index 3ef95e71..ddfc76dd 100644 --- a/api/model_post_prices_201_response_data_attributes.go +++ b/api/model_post_prices_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -25,11 +25,13 @@ type POSTPrices201ResponseDataAttributes struct { // The SKU price amount for the associated price list, in cents. AmountCents interface{} `json:"amount_cents"` // The compared price amount, in cents. Useful to display a percentage discount. - CompareAtAmountCents interface{} `json:"compare_at_amount_cents"` + CompareAtAmountCents interface{} `json:"compare_at_amount_cents,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // The rules (using Rules Engine) to be applied. + Rules interface{} `json:"rules,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` } @@ -38,10 +40,9 @@ type POSTPrices201ResponseDataAttributes struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTPrices201ResponseDataAttributes(amountCents interface{}, compareAtAmountCents interface{}) *POSTPrices201ResponseDataAttributes { +func NewPOSTPrices201ResponseDataAttributes(amountCents interface{}) *POSTPrices201ResponseDataAttributes { this := POSTPrices201ResponseDataAttributes{} this.AmountCents = amountCents - this.CompareAtAmountCents = compareAtAmountCents return &this } @@ -112,18 +113,16 @@ func (o *POSTPrices201ResponseDataAttributes) SetAmountCents(v interface{}) { o.AmountCents = v } -// GetCompareAtAmountCents returns the CompareAtAmountCents field value -// If the value is explicit nil, the zero value for interface{} will be returned +// GetCompareAtAmountCents returns the CompareAtAmountCents field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTPrices201ResponseDataAttributes) GetCompareAtAmountCents() interface{} { if o == nil { var ret interface{} return ret } - return o.CompareAtAmountCents } -// GetCompareAtAmountCentsOk returns a tuple with the CompareAtAmountCents field value +// GetCompareAtAmountCentsOk returns a tuple with the CompareAtAmountCents field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *POSTPrices201ResponseDataAttributes) GetCompareAtAmountCentsOk() (*interface{}, bool) { @@ -133,7 +132,16 @@ func (o *POSTPrices201ResponseDataAttributes) GetCompareAtAmountCentsOk() (*inte return &o.CompareAtAmountCents, true } -// SetCompareAtAmountCents sets field value +// HasCompareAtAmountCents returns a boolean if a field has been set. +func (o *POSTPrices201ResponseDataAttributes) HasCompareAtAmountCents() bool { + if o != nil && IsNil(o.CompareAtAmountCents) { + return true + } + + return false +} + +// SetCompareAtAmountCents gets a reference to the given interface{} and assigns it to the CompareAtAmountCents field. func (o *POSTPrices201ResponseDataAttributes) SetCompareAtAmountCents(v interface{}) { o.CompareAtAmountCents = v } @@ -204,6 +212,39 @@ func (o *POSTPrices201ResponseDataAttributes) SetReferenceOrigin(v interface{}) o.ReferenceOrigin = v } +// GetRules returns the Rules field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPrices201ResponseDataAttributes) GetRules() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Rules +} + +// GetRulesOk returns a tuple with the Rules field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPrices201ResponseDataAttributes) GetRulesOk() (*interface{}, bool) { + if o == nil || IsNil(o.Rules) { + return nil, false + } + return &o.Rules, true +} + +// HasRules returns a boolean if a field has been set. +func (o *POSTPrices201ResponseDataAttributes) HasRules() bool { + if o != nil && IsNil(o.Rules) { + return true + } + + return false +} + +// SetRules gets a reference to the given interface{} and assigns it to the Rules field. +func (o *POSTPrices201ResponseDataAttributes) SetRules(v interface{}) { + o.Rules = v +} + // GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTPrices201ResponseDataAttributes) GetMetadata() interface{} { if o == nil { @@ -262,6 +303,9 @@ func (o POSTPrices201ResponseDataAttributes) ToMap() (map[string]interface{}, er if o.ReferenceOrigin != nil { toSerialize["reference_origin"] = o.ReferenceOrigin } + if o.Rules != nil { + toSerialize["rules"] = o.Rules + } if o.Metadata != nil { toSerialize["metadata"] = o.Metadata } diff --git a/api/model_post_prices_201_response_data_relationships.go b/api/model_post_prices_201_response_data_relationships.go index 22db2328..73a6c3f7 100644 --- a/api/model_post_prices_201_response_data_relationships.go +++ b/api/model_post_prices_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,12 +20,16 @@ var _ MappedNullable = &POSTPrices201ResponseDataRelationships{} // POSTPrices201ResponseDataRelationships struct for POSTPrices201ResponseDataRelationships type POSTPrices201ResponseDataRelationships struct { - PriceList *POSTMarkets201ResponseDataRelationshipsPriceList `json:"price_list,omitempty"` - Sku *POSTInStockSubscriptions201ResponseDataRelationshipsSku `json:"sku,omitempty"` - PriceTiers *POSTPrices201ResponseDataRelationshipsPriceTiers `json:"price_tiers,omitempty"` - PriceVolumeTiers *POSTPrices201ResponseDataRelationshipsPriceVolumeTiers `json:"price_volume_tiers,omitempty"` - PriceFrequencyTiers *POSTPrices201ResponseDataRelationshipsPriceFrequencyTiers `json:"price_frequency_tiers,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + PriceList *POSTMarkets201ResponseDataRelationshipsPriceList `json:"price_list,omitempty"` + Sku *POSTInStockSubscriptions201ResponseDataRelationshipsSku `json:"sku,omitempty"` + PriceTiers *POSTPrices201ResponseDataRelationshipsPriceTiers `json:"price_tiers,omitempty"` + PriceVolumeTiers *POSTPrices201ResponseDataRelationshipsPriceVolumeTiers `json:"price_volume_tiers,omitempty"` + PriceFrequencyTiers *POSTPrices201ResponseDataRelationshipsPriceFrequencyTiers `json:"price_frequency_tiers,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` + JwtCustomer *POSTPrices201ResponseDataRelationshipsJwtCustomer `json:"jwt_customer,omitempty"` + JwtMarkets *POSTPrices201ResponseDataRelationshipsJwtMarkets `json:"jwt_markets,omitempty"` + JwtStockLocations *POSTPrices201ResponseDataRelationshipsJwtStockLocations `json:"jwt_stock_locations,omitempty"` } // NewPOSTPrices201ResponseDataRelationships instantiates a new POSTPrices201ResponseDataRelationships object @@ -206,9 +210,9 @@ func (o *POSTPrices201ResponseDataRelationships) SetPriceFrequencyTiers(v POSTPr } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTPrices201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTPrices201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -216,7 +220,7 @@ func (o *POSTPrices201ResponseDataRelationships) GetAttachments() POSTAvalaraAcc // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTPrices201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTPrices201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -232,11 +236,139 @@ func (o *POSTPrices201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTPrices201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTPrices201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTPrices201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPrices201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTPrices201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTPrices201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + +// GetJwtCustomer returns the JwtCustomer field value if set, zero value otherwise. +func (o *POSTPrices201ResponseDataRelationships) GetJwtCustomer() POSTPrices201ResponseDataRelationshipsJwtCustomer { + if o == nil || IsNil(o.JwtCustomer) { + var ret POSTPrices201ResponseDataRelationshipsJwtCustomer + return ret + } + return *o.JwtCustomer +} + +// GetJwtCustomerOk returns a tuple with the JwtCustomer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPrices201ResponseDataRelationships) GetJwtCustomerOk() (*POSTPrices201ResponseDataRelationshipsJwtCustomer, bool) { + if o == nil || IsNil(o.JwtCustomer) { + return nil, false + } + return o.JwtCustomer, true +} + +// HasJwtCustomer returns a boolean if a field has been set. +func (o *POSTPrices201ResponseDataRelationships) HasJwtCustomer() bool { + if o != nil && !IsNil(o.JwtCustomer) { + return true + } + + return false +} + +// SetJwtCustomer gets a reference to the given POSTPrices201ResponseDataRelationshipsJwtCustomer and assigns it to the JwtCustomer field. +func (o *POSTPrices201ResponseDataRelationships) SetJwtCustomer(v POSTPrices201ResponseDataRelationshipsJwtCustomer) { + o.JwtCustomer = &v +} + +// GetJwtMarkets returns the JwtMarkets field value if set, zero value otherwise. +func (o *POSTPrices201ResponseDataRelationships) GetJwtMarkets() POSTPrices201ResponseDataRelationshipsJwtMarkets { + if o == nil || IsNil(o.JwtMarkets) { + var ret POSTPrices201ResponseDataRelationshipsJwtMarkets + return ret + } + return *o.JwtMarkets +} + +// GetJwtMarketsOk returns a tuple with the JwtMarkets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPrices201ResponseDataRelationships) GetJwtMarketsOk() (*POSTPrices201ResponseDataRelationshipsJwtMarkets, bool) { + if o == nil || IsNil(o.JwtMarkets) { + return nil, false + } + return o.JwtMarkets, true +} + +// HasJwtMarkets returns a boolean if a field has been set. +func (o *POSTPrices201ResponseDataRelationships) HasJwtMarkets() bool { + if o != nil && !IsNil(o.JwtMarkets) { + return true + } + + return false +} + +// SetJwtMarkets gets a reference to the given POSTPrices201ResponseDataRelationshipsJwtMarkets and assigns it to the JwtMarkets field. +func (o *POSTPrices201ResponseDataRelationships) SetJwtMarkets(v POSTPrices201ResponseDataRelationshipsJwtMarkets) { + o.JwtMarkets = &v +} + +// GetJwtStockLocations returns the JwtStockLocations field value if set, zero value otherwise. +func (o *POSTPrices201ResponseDataRelationships) GetJwtStockLocations() POSTPrices201ResponseDataRelationshipsJwtStockLocations { + if o == nil || IsNil(o.JwtStockLocations) { + var ret POSTPrices201ResponseDataRelationshipsJwtStockLocations + return ret + } + return *o.JwtStockLocations +} + +// GetJwtStockLocationsOk returns a tuple with the JwtStockLocations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPrices201ResponseDataRelationships) GetJwtStockLocationsOk() (*POSTPrices201ResponseDataRelationshipsJwtStockLocations, bool) { + if o == nil || IsNil(o.JwtStockLocations) { + return nil, false + } + return o.JwtStockLocations, true +} + +// HasJwtStockLocations returns a boolean if a field has been set. +func (o *POSTPrices201ResponseDataRelationships) HasJwtStockLocations() bool { + if o != nil && !IsNil(o.JwtStockLocations) { + return true + } + + return false +} + +// SetJwtStockLocations gets a reference to the given POSTPrices201ResponseDataRelationshipsJwtStockLocations and assigns it to the JwtStockLocations field. +func (o *POSTPrices201ResponseDataRelationships) SetJwtStockLocations(v POSTPrices201ResponseDataRelationshipsJwtStockLocations) { + o.JwtStockLocations = &v +} + func (o POSTPrices201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -265,6 +397,18 @@ func (o POSTPrices201ResponseDataRelationships) ToMap() (map[string]interface{}, if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + if !IsNil(o.JwtCustomer) { + toSerialize["jwt_customer"] = o.JwtCustomer + } + if !IsNil(o.JwtMarkets) { + toSerialize["jwt_markets"] = o.JwtMarkets + } + if !IsNil(o.JwtStockLocations) { + toSerialize["jwt_stock_locations"] = o.JwtStockLocations + } return toSerialize, nil } diff --git a/api/model_post_prices_201_response_data_relationships_jwt_customer.go b/api/model_post_prices_201_response_data_relationships_jwt_customer.go new file mode 100644 index 00000000..c916af95 --- /dev/null +++ b/api/model_post_prices_201_response_data_relationships_jwt_customer.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTPrices201ResponseDataRelationshipsJwtCustomer type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTPrices201ResponseDataRelationshipsJwtCustomer{} + +// POSTPrices201ResponseDataRelationshipsJwtCustomer struct for POSTPrices201ResponseDataRelationshipsJwtCustomer +type POSTPrices201ResponseDataRelationshipsJwtCustomer struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTPrices201ResponseDataRelationshipsJwtCustomerData `json:"data,omitempty"` +} + +// NewPOSTPrices201ResponseDataRelationshipsJwtCustomer instantiates a new POSTPrices201ResponseDataRelationshipsJwtCustomer object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTPrices201ResponseDataRelationshipsJwtCustomer() *POSTPrices201ResponseDataRelationshipsJwtCustomer { + this := POSTPrices201ResponseDataRelationshipsJwtCustomer{} + return &this +} + +// NewPOSTPrices201ResponseDataRelationshipsJwtCustomerWithDefaults instantiates a new POSTPrices201ResponseDataRelationshipsJwtCustomer object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTPrices201ResponseDataRelationshipsJwtCustomerWithDefaults() *POSTPrices201ResponseDataRelationshipsJwtCustomer { + this := POSTPrices201ResponseDataRelationshipsJwtCustomer{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTPrices201ResponseDataRelationshipsJwtCustomer) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPrices201ResponseDataRelationshipsJwtCustomer) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTPrices201ResponseDataRelationshipsJwtCustomer) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTPrices201ResponseDataRelationshipsJwtCustomer) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTPrices201ResponseDataRelationshipsJwtCustomer) GetData() POSTPrices201ResponseDataRelationshipsJwtCustomerData { + if o == nil || IsNil(o.Data) { + var ret POSTPrices201ResponseDataRelationshipsJwtCustomerData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPrices201ResponseDataRelationshipsJwtCustomer) GetDataOk() (*POSTPrices201ResponseDataRelationshipsJwtCustomerData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTPrices201ResponseDataRelationshipsJwtCustomer) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTPrices201ResponseDataRelationshipsJwtCustomerData and assigns it to the Data field. +func (o *POSTPrices201ResponseDataRelationshipsJwtCustomer) SetData(v POSTPrices201ResponseDataRelationshipsJwtCustomerData) { + o.Data = &v +} + +func (o POSTPrices201ResponseDataRelationshipsJwtCustomer) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTPrices201ResponseDataRelationshipsJwtCustomer) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTPrices201ResponseDataRelationshipsJwtCustomer struct { + value *POSTPrices201ResponseDataRelationshipsJwtCustomer + isSet bool +} + +func (v NullablePOSTPrices201ResponseDataRelationshipsJwtCustomer) Get() *POSTPrices201ResponseDataRelationshipsJwtCustomer { + return v.value +} + +func (v *NullablePOSTPrices201ResponseDataRelationshipsJwtCustomer) Set(val *POSTPrices201ResponseDataRelationshipsJwtCustomer) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTPrices201ResponseDataRelationshipsJwtCustomer) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTPrices201ResponseDataRelationshipsJwtCustomer) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTPrices201ResponseDataRelationshipsJwtCustomer(val *POSTPrices201ResponseDataRelationshipsJwtCustomer) *NullablePOSTPrices201ResponseDataRelationshipsJwtCustomer { + return &NullablePOSTPrices201ResponseDataRelationshipsJwtCustomer{value: val, isSet: true} +} + +func (v NullablePOSTPrices201ResponseDataRelationshipsJwtCustomer) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTPrices201ResponseDataRelationshipsJwtCustomer) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_prices_201_response_data_relationships_jwt_customer_data.go b/api/model_post_prices_201_response_data_relationships_jwt_customer_data.go new file mode 100644 index 00000000..114481f8 --- /dev/null +++ b/api/model_post_prices_201_response_data_relationships_jwt_customer_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTPrices201ResponseDataRelationshipsJwtCustomerData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTPrices201ResponseDataRelationshipsJwtCustomerData{} + +// POSTPrices201ResponseDataRelationshipsJwtCustomerData struct for POSTPrices201ResponseDataRelationshipsJwtCustomerData +type POSTPrices201ResponseDataRelationshipsJwtCustomerData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTPrices201ResponseDataRelationshipsJwtCustomerData instantiates a new POSTPrices201ResponseDataRelationshipsJwtCustomerData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTPrices201ResponseDataRelationshipsJwtCustomerData() *POSTPrices201ResponseDataRelationshipsJwtCustomerData { + this := POSTPrices201ResponseDataRelationshipsJwtCustomerData{} + return &this +} + +// NewPOSTPrices201ResponseDataRelationshipsJwtCustomerDataWithDefaults instantiates a new POSTPrices201ResponseDataRelationshipsJwtCustomerData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTPrices201ResponseDataRelationshipsJwtCustomerDataWithDefaults() *POSTPrices201ResponseDataRelationshipsJwtCustomerData { + this := POSTPrices201ResponseDataRelationshipsJwtCustomerData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTPrices201ResponseDataRelationshipsJwtCustomerData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTPrices201ResponseDataRelationshipsJwtCustomerData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTPrices201ResponseDataRelationshipsJwtCustomerData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTPrices201ResponseDataRelationshipsJwtCustomerData struct { + value *POSTPrices201ResponseDataRelationshipsJwtCustomerData + isSet bool +} + +func (v NullablePOSTPrices201ResponseDataRelationshipsJwtCustomerData) Get() *POSTPrices201ResponseDataRelationshipsJwtCustomerData { + return v.value +} + +func (v *NullablePOSTPrices201ResponseDataRelationshipsJwtCustomerData) Set(val *POSTPrices201ResponseDataRelationshipsJwtCustomerData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTPrices201ResponseDataRelationshipsJwtCustomerData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTPrices201ResponseDataRelationshipsJwtCustomerData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTPrices201ResponseDataRelationshipsJwtCustomerData(val *POSTPrices201ResponseDataRelationshipsJwtCustomerData) *NullablePOSTPrices201ResponseDataRelationshipsJwtCustomerData { + return &NullablePOSTPrices201ResponseDataRelationshipsJwtCustomerData{value: val, isSet: true} +} + +func (v NullablePOSTPrices201ResponseDataRelationshipsJwtCustomerData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTPrices201ResponseDataRelationshipsJwtCustomerData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_prices_201_response_data_relationships_jwt_markets.go b/api/model_post_prices_201_response_data_relationships_jwt_markets.go new file mode 100644 index 00000000..0565bec2 --- /dev/null +++ b/api/model_post_prices_201_response_data_relationships_jwt_markets.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTPrices201ResponseDataRelationshipsJwtMarkets type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTPrices201ResponseDataRelationshipsJwtMarkets{} + +// POSTPrices201ResponseDataRelationshipsJwtMarkets struct for POSTPrices201ResponseDataRelationshipsJwtMarkets +type POSTPrices201ResponseDataRelationshipsJwtMarkets struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTPrices201ResponseDataRelationshipsJwtMarketsData `json:"data,omitempty"` +} + +// NewPOSTPrices201ResponseDataRelationshipsJwtMarkets instantiates a new POSTPrices201ResponseDataRelationshipsJwtMarkets object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTPrices201ResponseDataRelationshipsJwtMarkets() *POSTPrices201ResponseDataRelationshipsJwtMarkets { + this := POSTPrices201ResponseDataRelationshipsJwtMarkets{} + return &this +} + +// NewPOSTPrices201ResponseDataRelationshipsJwtMarketsWithDefaults instantiates a new POSTPrices201ResponseDataRelationshipsJwtMarkets object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTPrices201ResponseDataRelationshipsJwtMarketsWithDefaults() *POSTPrices201ResponseDataRelationshipsJwtMarkets { + this := POSTPrices201ResponseDataRelationshipsJwtMarkets{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTPrices201ResponseDataRelationshipsJwtMarkets) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPrices201ResponseDataRelationshipsJwtMarkets) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTPrices201ResponseDataRelationshipsJwtMarkets) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTPrices201ResponseDataRelationshipsJwtMarkets) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTPrices201ResponseDataRelationshipsJwtMarkets) GetData() POSTPrices201ResponseDataRelationshipsJwtMarketsData { + if o == nil || IsNil(o.Data) { + var ret POSTPrices201ResponseDataRelationshipsJwtMarketsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPrices201ResponseDataRelationshipsJwtMarkets) GetDataOk() (*POSTPrices201ResponseDataRelationshipsJwtMarketsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTPrices201ResponseDataRelationshipsJwtMarkets) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTPrices201ResponseDataRelationshipsJwtMarketsData and assigns it to the Data field. +func (o *POSTPrices201ResponseDataRelationshipsJwtMarkets) SetData(v POSTPrices201ResponseDataRelationshipsJwtMarketsData) { + o.Data = &v +} + +func (o POSTPrices201ResponseDataRelationshipsJwtMarkets) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTPrices201ResponseDataRelationshipsJwtMarkets) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTPrices201ResponseDataRelationshipsJwtMarkets struct { + value *POSTPrices201ResponseDataRelationshipsJwtMarkets + isSet bool +} + +func (v NullablePOSTPrices201ResponseDataRelationshipsJwtMarkets) Get() *POSTPrices201ResponseDataRelationshipsJwtMarkets { + return v.value +} + +func (v *NullablePOSTPrices201ResponseDataRelationshipsJwtMarkets) Set(val *POSTPrices201ResponseDataRelationshipsJwtMarkets) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTPrices201ResponseDataRelationshipsJwtMarkets) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTPrices201ResponseDataRelationshipsJwtMarkets) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTPrices201ResponseDataRelationshipsJwtMarkets(val *POSTPrices201ResponseDataRelationshipsJwtMarkets) *NullablePOSTPrices201ResponseDataRelationshipsJwtMarkets { + return &NullablePOSTPrices201ResponseDataRelationshipsJwtMarkets{value: val, isSet: true} +} + +func (v NullablePOSTPrices201ResponseDataRelationshipsJwtMarkets) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTPrices201ResponseDataRelationshipsJwtMarkets) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_coupon_codes_promotion_rule_data_relationships_coupons_data.go b/api/model_post_prices_201_response_data_relationships_jwt_markets_data.go similarity index 54% rename from api/model_coupon_codes_promotion_rule_data_relationships_coupons_data.go rename to api/model_post_prices_201_response_data_relationships_jwt_markets_data.go index 19975d92..713601fb 100644 --- a/api/model_coupon_codes_promotion_rule_data_relationships_coupons_data.go +++ b/api/model_post_prices_201_response_data_relationships_jwt_markets_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the CouponCodesPromotionRuleDataRelationshipsCouponsData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CouponCodesPromotionRuleDataRelationshipsCouponsData{} +// checks if the POSTPrices201ResponseDataRelationshipsJwtMarketsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTPrices201ResponseDataRelationshipsJwtMarketsData{} -// CouponCodesPromotionRuleDataRelationshipsCouponsData struct for CouponCodesPromotionRuleDataRelationshipsCouponsData -type CouponCodesPromotionRuleDataRelationshipsCouponsData struct { +// POSTPrices201ResponseDataRelationshipsJwtMarketsData struct for POSTPrices201ResponseDataRelationshipsJwtMarketsData +type POSTPrices201ResponseDataRelationshipsJwtMarketsData struct { // The resource's type Type interface{} `json:"type,omitempty"` - // The resource's id + // The resource ID Id interface{} `json:"id,omitempty"` } -// NewCouponCodesPromotionRuleDataRelationshipsCouponsData instantiates a new CouponCodesPromotionRuleDataRelationshipsCouponsData object +// NewPOSTPrices201ResponseDataRelationshipsJwtMarketsData instantiates a new POSTPrices201ResponseDataRelationshipsJwtMarketsData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCouponCodesPromotionRuleDataRelationshipsCouponsData() *CouponCodesPromotionRuleDataRelationshipsCouponsData { - this := CouponCodesPromotionRuleDataRelationshipsCouponsData{} +func NewPOSTPrices201ResponseDataRelationshipsJwtMarketsData() *POSTPrices201ResponseDataRelationshipsJwtMarketsData { + this := POSTPrices201ResponseDataRelationshipsJwtMarketsData{} return &this } -// NewCouponCodesPromotionRuleDataRelationshipsCouponsDataWithDefaults instantiates a new CouponCodesPromotionRuleDataRelationshipsCouponsData object +// NewPOSTPrices201ResponseDataRelationshipsJwtMarketsDataWithDefaults instantiates a new POSTPrices201ResponseDataRelationshipsJwtMarketsData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewCouponCodesPromotionRuleDataRelationshipsCouponsDataWithDefaults() *CouponCodesPromotionRuleDataRelationshipsCouponsData { - this := CouponCodesPromotionRuleDataRelationshipsCouponsData{} +func NewPOSTPrices201ResponseDataRelationshipsJwtMarketsDataWithDefaults() *POSTPrices201ResponseDataRelationshipsJwtMarketsData { + this := POSTPrices201ResponseDataRelationshipsJwtMarketsData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) GetType() interface{} { +func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) GetType() interfa // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) GetTypeOk() (*interface{}, bool) { +func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) GetTypeOk() (*int } // HasType returns a boolean if a field has been set. -func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) HasType() bool { +func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) HasType() bool { } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) SetType(v interface{}) { +func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) GetId() interface{} { +func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) GetId() interface // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) GetIdOk() (*interface{}, bool) { +func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) GetIdOk() (*inter } // HasId returns a boolean if a field has been set. -func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) HasId() bool { +func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) HasId() bool { } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *CouponCodesPromotionRuleDataRelationshipsCouponsData) SetId(v interface{}) { +func (o *POSTPrices201ResponseDataRelationshipsJwtMarketsData) SetId(v interface{}) { o.Id = v } -func (o CouponCodesPromotionRuleDataRelationshipsCouponsData) MarshalJSON() ([]byte, error) { +func (o POSTPrices201ResponseDataRelationshipsJwtMarketsData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o CouponCodesPromotionRuleDataRelationshipsCouponsData) MarshalJSON() ([]b return json.Marshal(toSerialize) } -func (o CouponCodesPromotionRuleDataRelationshipsCouponsData) ToMap() (map[string]interface{}, error) { +func (o POSTPrices201ResponseDataRelationshipsJwtMarketsData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o CouponCodesPromotionRuleDataRelationshipsCouponsData) ToMap() (map[strin return toSerialize, nil } -type NullableCouponCodesPromotionRuleDataRelationshipsCouponsData struct { - value *CouponCodesPromotionRuleDataRelationshipsCouponsData +type NullablePOSTPrices201ResponseDataRelationshipsJwtMarketsData struct { + value *POSTPrices201ResponseDataRelationshipsJwtMarketsData isSet bool } -func (v NullableCouponCodesPromotionRuleDataRelationshipsCouponsData) Get() *CouponCodesPromotionRuleDataRelationshipsCouponsData { +func (v NullablePOSTPrices201ResponseDataRelationshipsJwtMarketsData) Get() *POSTPrices201ResponseDataRelationshipsJwtMarketsData { return v.value } -func (v *NullableCouponCodesPromotionRuleDataRelationshipsCouponsData) Set(val *CouponCodesPromotionRuleDataRelationshipsCouponsData) { +func (v *NullablePOSTPrices201ResponseDataRelationshipsJwtMarketsData) Set(val *POSTPrices201ResponseDataRelationshipsJwtMarketsData) { v.value = val v.isSet = true } -func (v NullableCouponCodesPromotionRuleDataRelationshipsCouponsData) IsSet() bool { +func (v NullablePOSTPrices201ResponseDataRelationshipsJwtMarketsData) IsSet() bool { return v.isSet } -func (v *NullableCouponCodesPromotionRuleDataRelationshipsCouponsData) Unset() { +func (v *NullablePOSTPrices201ResponseDataRelationshipsJwtMarketsData) Unset() { v.value = nil v.isSet = false } -func NewNullableCouponCodesPromotionRuleDataRelationshipsCouponsData(val *CouponCodesPromotionRuleDataRelationshipsCouponsData) *NullableCouponCodesPromotionRuleDataRelationshipsCouponsData { - return &NullableCouponCodesPromotionRuleDataRelationshipsCouponsData{value: val, isSet: true} +func NewNullablePOSTPrices201ResponseDataRelationshipsJwtMarketsData(val *POSTPrices201ResponseDataRelationshipsJwtMarketsData) *NullablePOSTPrices201ResponseDataRelationshipsJwtMarketsData { + return &NullablePOSTPrices201ResponseDataRelationshipsJwtMarketsData{value: val, isSet: true} } -func (v NullableCouponCodesPromotionRuleDataRelationshipsCouponsData) MarshalJSON() ([]byte, error) { +func (v NullablePOSTPrices201ResponseDataRelationshipsJwtMarketsData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableCouponCodesPromotionRuleDataRelationshipsCouponsData) UnmarshalJSON(src []byte) error { +func (v *NullablePOSTPrices201ResponseDataRelationshipsJwtMarketsData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_post_prices_201_response_data_relationships_jwt_stock_locations.go b/api/model_post_prices_201_response_data_relationships_jwt_stock_locations.go new file mode 100644 index 00000000..3c5ec6de --- /dev/null +++ b/api/model_post_prices_201_response_data_relationships_jwt_stock_locations.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTPrices201ResponseDataRelationshipsJwtStockLocations type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTPrices201ResponseDataRelationshipsJwtStockLocations{} + +// POSTPrices201ResponseDataRelationshipsJwtStockLocations struct for POSTPrices201ResponseDataRelationshipsJwtStockLocations +type POSTPrices201ResponseDataRelationshipsJwtStockLocations struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData `json:"data,omitempty"` +} + +// NewPOSTPrices201ResponseDataRelationshipsJwtStockLocations instantiates a new POSTPrices201ResponseDataRelationshipsJwtStockLocations object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTPrices201ResponseDataRelationshipsJwtStockLocations() *POSTPrices201ResponseDataRelationshipsJwtStockLocations { + this := POSTPrices201ResponseDataRelationshipsJwtStockLocations{} + return &this +} + +// NewPOSTPrices201ResponseDataRelationshipsJwtStockLocationsWithDefaults instantiates a new POSTPrices201ResponseDataRelationshipsJwtStockLocations object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTPrices201ResponseDataRelationshipsJwtStockLocationsWithDefaults() *POSTPrices201ResponseDataRelationshipsJwtStockLocations { + this := POSTPrices201ResponseDataRelationshipsJwtStockLocations{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocations) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocations) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocations) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocations) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocations) GetData() POSTPrices201ResponseDataRelationshipsJwtStockLocationsData { + if o == nil || IsNil(o.Data) { + var ret POSTPrices201ResponseDataRelationshipsJwtStockLocationsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocations) GetDataOk() (*POSTPrices201ResponseDataRelationshipsJwtStockLocationsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocations) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTPrices201ResponseDataRelationshipsJwtStockLocationsData and assigns it to the Data field. +func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocations) SetData(v POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) { + o.Data = &v +} + +func (o POSTPrices201ResponseDataRelationshipsJwtStockLocations) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTPrices201ResponseDataRelationshipsJwtStockLocations) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTPrices201ResponseDataRelationshipsJwtStockLocations struct { + value *POSTPrices201ResponseDataRelationshipsJwtStockLocations + isSet bool +} + +func (v NullablePOSTPrices201ResponseDataRelationshipsJwtStockLocations) Get() *POSTPrices201ResponseDataRelationshipsJwtStockLocations { + return v.value +} + +func (v *NullablePOSTPrices201ResponseDataRelationshipsJwtStockLocations) Set(val *POSTPrices201ResponseDataRelationshipsJwtStockLocations) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTPrices201ResponseDataRelationshipsJwtStockLocations) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTPrices201ResponseDataRelationshipsJwtStockLocations) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTPrices201ResponseDataRelationshipsJwtStockLocations(val *POSTPrices201ResponseDataRelationshipsJwtStockLocations) *NullablePOSTPrices201ResponseDataRelationshipsJwtStockLocations { + return &NullablePOSTPrices201ResponseDataRelationshipsJwtStockLocations{value: val, isSet: true} +} + +func (v NullablePOSTPrices201ResponseDataRelationshipsJwtStockLocations) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTPrices201ResponseDataRelationshipsJwtStockLocations) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_prices_201_response_data_relationships_jwt_stock_locations_data.go b/api/model_post_prices_201_response_data_relationships_jwt_stock_locations_data.go new file mode 100644 index 00000000..96b6d400 --- /dev/null +++ b/api/model_post_prices_201_response_data_relationships_jwt_stock_locations_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTPrices201ResponseDataRelationshipsJwtStockLocationsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTPrices201ResponseDataRelationshipsJwtStockLocationsData{} + +// POSTPrices201ResponseDataRelationshipsJwtStockLocationsData struct for POSTPrices201ResponseDataRelationshipsJwtStockLocationsData +type POSTPrices201ResponseDataRelationshipsJwtStockLocationsData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTPrices201ResponseDataRelationshipsJwtStockLocationsData instantiates a new POSTPrices201ResponseDataRelationshipsJwtStockLocationsData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTPrices201ResponseDataRelationshipsJwtStockLocationsData() *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData { + this := POSTPrices201ResponseDataRelationshipsJwtStockLocationsData{} + return &this +} + +// NewPOSTPrices201ResponseDataRelationshipsJwtStockLocationsDataWithDefaults instantiates a new POSTPrices201ResponseDataRelationshipsJwtStockLocationsData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTPrices201ResponseDataRelationshipsJwtStockLocationsDataWithDefaults() *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData { + this := POSTPrices201ResponseDataRelationshipsJwtStockLocationsData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTPrices201ResponseDataRelationshipsJwtStockLocationsData struct { + value *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData + isSet bool +} + +func (v NullablePOSTPrices201ResponseDataRelationshipsJwtStockLocationsData) Get() *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData { + return v.value +} + +func (v *NullablePOSTPrices201ResponseDataRelationshipsJwtStockLocationsData) Set(val *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTPrices201ResponseDataRelationshipsJwtStockLocationsData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTPrices201ResponseDataRelationshipsJwtStockLocationsData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTPrices201ResponseDataRelationshipsJwtStockLocationsData(val *POSTPrices201ResponseDataRelationshipsJwtStockLocationsData) *NullablePOSTPrices201ResponseDataRelationshipsJwtStockLocationsData { + return &NullablePOSTPrices201ResponseDataRelationshipsJwtStockLocationsData{value: val, isSet: true} +} + +func (v NullablePOSTPrices201ResponseDataRelationshipsJwtStockLocationsData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTPrices201ResponseDataRelationshipsJwtStockLocationsData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_prices_201_response_data_relationships_price_frequency_tiers.go b/api/model_post_prices_201_response_data_relationships_price_frequency_tiers.go index e1e50095..fd705fab 100644 --- a/api/model_post_prices_201_response_data_relationships_price_frequency_tiers.go +++ b/api/model_post_prices_201_response_data_relationships_price_frequency_tiers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_prices_201_response_data_relationships_price_frequency_tiers_data.go b/api/model_post_prices_201_response_data_relationships_price_frequency_tiers_data.go index 3d9facdd..4510e68d 100644 --- a/api/model_post_prices_201_response_data_relationships_price_frequency_tiers_data.go +++ b/api/model_post_prices_201_response_data_relationships_price_frequency_tiers_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_prices_201_response_data_relationships_price_tiers.go b/api/model_post_prices_201_response_data_relationships_price_tiers.go index d7403255..4312e5aa 100644 --- a/api/model_post_prices_201_response_data_relationships_price_tiers.go +++ b/api/model_post_prices_201_response_data_relationships_price_tiers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_prices_201_response_data_relationships_price_tiers_data.go b/api/model_post_prices_201_response_data_relationships_price_tiers_data.go index d01572c3..c32361e0 100644 --- a/api/model_post_prices_201_response_data_relationships_price_tiers_data.go +++ b/api/model_post_prices_201_response_data_relationships_price_tiers_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_prices_201_response_data_relationships_price_volume_tiers.go b/api/model_post_prices_201_response_data_relationships_price_volume_tiers.go index a2acc6d4..57c31f7d 100644 --- a/api/model_post_prices_201_response_data_relationships_price_volume_tiers.go +++ b/api/model_post_prices_201_response_data_relationships_price_volume_tiers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_prices_201_response_data_relationships_price_volume_tiers_data.go b/api/model_post_prices_201_response_data_relationships_price_volume_tiers_data.go index 0189267c..a0de2b85 100644 --- a/api/model_post_prices_201_response_data_relationships_price_volume_tiers_data.go +++ b/api/model_post_prices_201_response_data_relationships_price_volume_tiers_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_recurring_order_copies_201_response.go b/api/model_post_recurring_order_copies_201_response.go index 8a0c689d..db1b1274 100644 --- a/api/model_post_recurring_order_copies_201_response.go +++ b/api/model_post_recurring_order_copies_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_recurring_order_copies_201_response_data.go b/api/model_post_recurring_order_copies_201_response_data.go index bbba1956..8f7ea9f6 100644 --- a/api/model_post_recurring_order_copies_201_response_data.go +++ b/api/model_post_recurring_order_copies_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_recurring_order_copies_201_response_data_attributes.go b/api/model_post_recurring_order_copies_201_response_data_attributes.go index d70f9fe7..14f39cab 100644 --- a/api/model_post_recurring_order_copies_201_response_data_attributes.go +++ b/api/model_post_recurring_order_copies_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type POSTRecurringOrderCopies201ResponseDataAttributes struct { ReuseWallet interface{} `json:"reuse_wallet,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_return_line_items_201_response.go b/api/model_post_return_line_items_201_response.go index 2c54c48c..0ce82010 100644 --- a/api/model_post_return_line_items_201_response.go +++ b/api/model_post_return_line_items_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_return_line_items_201_response_data.go b/api/model_post_return_line_items_201_response_data.go index 50a9638d..6353ef7b 100644 --- a/api/model_post_return_line_items_201_response_data.go +++ b/api/model_post_return_line_items_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_return_line_items_201_response_data_attributes.go b/api/model_post_return_line_items_201_response_data_attributes.go index a10034bd..87b184b8 100644 --- a/api/model_post_return_line_items_201_response_data_attributes.go +++ b/api/model_post_return_line_items_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,13 +20,13 @@ var _ MappedNullable = &POSTReturnLineItems201ResponseDataAttributes{} // POSTReturnLineItems201ResponseDataAttributes struct for POSTReturnLineItems201ResponseDataAttributes type POSTReturnLineItems201ResponseDataAttributes struct { - // The line item quantity. + // The return line item quantity. Quantity interface{} `json:"quantity"` // Set of key-value pairs that you can use to add details about return reason. ReturnReason interface{} `json:"return_reason,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_return_line_items_201_response_data_relationships.go b/api/model_post_return_line_items_201_response_data_relationships.go index 22e730d3..f99198d7 100644 --- a/api/model_post_return_line_items_201_response_data_relationships.go +++ b/api/model_post_return_line_items_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &POSTReturnLineItems201ResponseDataRelationships{} // POSTReturnLineItems201ResponseDataRelationships struct for POSTReturnLineItems201ResponseDataRelationships type POSTReturnLineItems201ResponseDataRelationships struct { - Return *POSTReturnLineItems201ResponseDataRelationshipsReturn `json:"return,omitempty"` + Return *GETCapturesCaptureId200ResponseDataRelationshipsReturn `json:"return,omitempty"` LineItem *POSTLineItemOptions201ResponseDataRelationshipsLineItem `json:"line_item,omitempty"` } @@ -42,9 +42,9 @@ func NewPOSTReturnLineItems201ResponseDataRelationshipsWithDefaults() *POSTRetur } // GetReturn returns the Return field value if set, zero value otherwise. -func (o *POSTReturnLineItems201ResponseDataRelationships) GetReturn() POSTReturnLineItems201ResponseDataRelationshipsReturn { +func (o *POSTReturnLineItems201ResponseDataRelationships) GetReturn() GETCapturesCaptureId200ResponseDataRelationshipsReturn { if o == nil || IsNil(o.Return) { - var ret POSTReturnLineItems201ResponseDataRelationshipsReturn + var ret GETCapturesCaptureId200ResponseDataRelationshipsReturn return ret } return *o.Return @@ -52,7 +52,7 @@ func (o *POSTReturnLineItems201ResponseDataRelationships) GetReturn() POSTReturn // GetReturnOk returns a tuple with the Return field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTReturnLineItems201ResponseDataRelationships) GetReturnOk() (*POSTReturnLineItems201ResponseDataRelationshipsReturn, bool) { +func (o *POSTReturnLineItems201ResponseDataRelationships) GetReturnOk() (*GETCapturesCaptureId200ResponseDataRelationshipsReturn, bool) { if o == nil || IsNil(o.Return) { return nil, false } @@ -68,8 +68,8 @@ func (o *POSTReturnLineItems201ResponseDataRelationships) HasReturn() bool { return false } -// SetReturn gets a reference to the given POSTReturnLineItems201ResponseDataRelationshipsReturn and assigns it to the Return field. -func (o *POSTReturnLineItems201ResponseDataRelationships) SetReturn(v POSTReturnLineItems201ResponseDataRelationshipsReturn) { +// SetReturn gets a reference to the given GETCapturesCaptureId200ResponseDataRelationshipsReturn and assigns it to the Return field. +func (o *POSTReturnLineItems201ResponseDataRelationships) SetReturn(v GETCapturesCaptureId200ResponseDataRelationshipsReturn) { o.Return = &v } diff --git a/api/model_post_return_line_items_201_response_data_relationships_return.go b/api/model_post_return_line_items_201_response_data_relationships_return.go deleted file mode 100644 index f9da2577..00000000 --- a/api/model_post_return_line_items_201_response_data_relationships_return.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the POSTReturnLineItems201ResponseDataRelationshipsReturn type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTReturnLineItems201ResponseDataRelationshipsReturn{} - -// POSTReturnLineItems201ResponseDataRelationshipsReturn struct for POSTReturnLineItems201ResponseDataRelationshipsReturn -type POSTReturnLineItems201ResponseDataRelationshipsReturn struct { - Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` - Data *POSTReturnLineItems201ResponseDataRelationshipsReturnData `json:"data,omitempty"` -} - -// NewPOSTReturnLineItems201ResponseDataRelationshipsReturn instantiates a new POSTReturnLineItems201ResponseDataRelationshipsReturn object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPOSTReturnLineItems201ResponseDataRelationshipsReturn() *POSTReturnLineItems201ResponseDataRelationshipsReturn { - this := POSTReturnLineItems201ResponseDataRelationshipsReturn{} - return &this -} - -// NewPOSTReturnLineItems201ResponseDataRelationshipsReturnWithDefaults instantiates a new POSTReturnLineItems201ResponseDataRelationshipsReturn object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPOSTReturnLineItems201ResponseDataRelationshipsReturnWithDefaults() *POSTReturnLineItems201ResponseDataRelationshipsReturn { - this := POSTReturnLineItems201ResponseDataRelationshipsReturn{} - return &this -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *POSTReturnLineItems201ResponseDataRelationshipsReturn) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { - if o == nil || IsNil(o.Links) { - var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTReturnLineItems201ResponseDataRelationshipsReturn) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *POSTReturnLineItems201ResponseDataRelationshipsReturn) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. -func (o *POSTReturnLineItems201ResponseDataRelationshipsReturn) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { - o.Links = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *POSTReturnLineItems201ResponseDataRelationshipsReturn) GetData() POSTReturnLineItems201ResponseDataRelationshipsReturnData { - if o == nil || IsNil(o.Data) { - var ret POSTReturnLineItems201ResponseDataRelationshipsReturnData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTReturnLineItems201ResponseDataRelationshipsReturn) GetDataOk() (*POSTReturnLineItems201ResponseDataRelationshipsReturnData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *POSTReturnLineItems201ResponseDataRelationshipsReturn) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given POSTReturnLineItems201ResponseDataRelationshipsReturnData and assigns it to the Data field. -func (o *POSTReturnLineItems201ResponseDataRelationshipsReturn) SetData(v POSTReturnLineItems201ResponseDataRelationshipsReturnData) { - o.Data = &v -} - -func (o POSTReturnLineItems201ResponseDataRelationshipsReturn) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o POSTReturnLineItems201ResponseDataRelationshipsReturn) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullablePOSTReturnLineItems201ResponseDataRelationshipsReturn struct { - value *POSTReturnLineItems201ResponseDataRelationshipsReturn - isSet bool -} - -func (v NullablePOSTReturnLineItems201ResponseDataRelationshipsReturn) Get() *POSTReturnLineItems201ResponseDataRelationshipsReturn { - return v.value -} - -func (v *NullablePOSTReturnLineItems201ResponseDataRelationshipsReturn) Set(val *POSTReturnLineItems201ResponseDataRelationshipsReturn) { - v.value = val - v.isSet = true -} - -func (v NullablePOSTReturnLineItems201ResponseDataRelationshipsReturn) IsSet() bool { - return v.isSet -} - -func (v *NullablePOSTReturnLineItems201ResponseDataRelationshipsReturn) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePOSTReturnLineItems201ResponseDataRelationshipsReturn(val *POSTReturnLineItems201ResponseDataRelationshipsReturn) *NullablePOSTReturnLineItems201ResponseDataRelationshipsReturn { - return &NullablePOSTReturnLineItems201ResponseDataRelationshipsReturn{value: val, isSet: true} -} - -func (v NullablePOSTReturnLineItems201ResponseDataRelationshipsReturn) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePOSTReturnLineItems201ResponseDataRelationshipsReturn) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_post_returns_201_response.go b/api/model_post_returns_201_response.go index c089c89a..b8fe3a74 100644 --- a/api/model_post_returns_201_response.go +++ b/api/model_post_returns_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_returns_201_response_data.go b/api/model_post_returns_201_response_data.go index 7cc6a05c..7a087cf0 100644 --- a/api/model_post_returns_201_response_data.go +++ b/api/model_post_returns_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_returns_201_response_data_relationships.go b/api/model_post_returns_201_response_data_relationships.go index 5e747c2f..aacfc0fa 100644 --- a/api/model_post_returns_201_response_data_relationships.go +++ b/api/model_post_returns_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,14 +20,19 @@ var _ MappedNullable = &POSTReturns201ResponseDataRelationships{} // POSTReturns201ResponseDataRelationships struct for POSTReturns201ResponseDataRelationships type POSTReturns201ResponseDataRelationships struct { - Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` - Customer *POSTCouponRecipients201ResponseDataRelationshipsCustomer `json:"customer,omitempty"` - StockLocation *POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation `json:"stock_location,omitempty"` - OriginAddress *POSTReturns201ResponseDataRelationshipsOriginAddress `json:"origin_address,omitempty"` - DestinationAddress *POSTReturns201ResponseDataRelationshipsDestinationAddress `json:"destination_address,omitempty"` - ReturnLineItems *POSTReturns201ResponseDataRelationshipsReturnLineItems `json:"return_line_items,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` + Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` + Customer *POSTCouponRecipients201ResponseDataRelationshipsCustomer `json:"customer,omitempty"` + StockLocation *POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation `json:"stock_location,omitempty"` + OriginAddress *POSTReturns201ResponseDataRelationshipsOriginAddress `json:"origin_address,omitempty"` + DestinationAddress *POSTReturns201ResponseDataRelationshipsDestinationAddress `json:"destination_address,omitempty"` + ReferenceCapture *GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture `json:"reference_capture,omitempty"` + ReferenceRefund *POSTReturns201ResponseDataRelationshipsReferenceRefund `json:"reference_refund,omitempty"` + ReturnLineItems *POSTLineItems201ResponseDataRelationshipsReturnLineItems `json:"return_line_items,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + ResourceErrors *POSTOrders201ResponseDataRelationshipsResourceErrors `json:"resource_errors,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Tags *POSTAddresses201ResponseDataRelationshipsTags `json:"tags,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTReturns201ResponseDataRelationships instantiates a new POSTReturns201ResponseDataRelationships object @@ -207,10 +212,74 @@ func (o *POSTReturns201ResponseDataRelationships) SetDestinationAddress(v POSTRe o.DestinationAddress = &v } +// GetReferenceCapture returns the ReferenceCapture field value if set, zero value otherwise. +func (o *POSTReturns201ResponseDataRelationships) GetReferenceCapture() GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture { + if o == nil || IsNil(o.ReferenceCapture) { + var ret GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture + return ret + } + return *o.ReferenceCapture +} + +// GetReferenceCaptureOk returns a tuple with the ReferenceCapture field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTReturns201ResponseDataRelationships) GetReferenceCaptureOk() (*GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture, bool) { + if o == nil || IsNil(o.ReferenceCapture) { + return nil, false + } + return o.ReferenceCapture, true +} + +// HasReferenceCapture returns a boolean if a field has been set. +func (o *POSTReturns201ResponseDataRelationships) HasReferenceCapture() bool { + if o != nil && !IsNil(o.ReferenceCapture) { + return true + } + + return false +} + +// SetReferenceCapture gets a reference to the given GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture and assigns it to the ReferenceCapture field. +func (o *POSTReturns201ResponseDataRelationships) SetReferenceCapture(v GETRefundsRefundId200ResponseDataRelationshipsReferenceCapture) { + o.ReferenceCapture = &v +} + +// GetReferenceRefund returns the ReferenceRefund field value if set, zero value otherwise. +func (o *POSTReturns201ResponseDataRelationships) GetReferenceRefund() POSTReturns201ResponseDataRelationshipsReferenceRefund { + if o == nil || IsNil(o.ReferenceRefund) { + var ret POSTReturns201ResponseDataRelationshipsReferenceRefund + return ret + } + return *o.ReferenceRefund +} + +// GetReferenceRefundOk returns a tuple with the ReferenceRefund field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTReturns201ResponseDataRelationships) GetReferenceRefundOk() (*POSTReturns201ResponseDataRelationshipsReferenceRefund, bool) { + if o == nil || IsNil(o.ReferenceRefund) { + return nil, false + } + return o.ReferenceRefund, true +} + +// HasReferenceRefund returns a boolean if a field has been set. +func (o *POSTReturns201ResponseDataRelationships) HasReferenceRefund() bool { + if o != nil && !IsNil(o.ReferenceRefund) { + return true + } + + return false +} + +// SetReferenceRefund gets a reference to the given POSTReturns201ResponseDataRelationshipsReferenceRefund and assigns it to the ReferenceRefund field. +func (o *POSTReturns201ResponseDataRelationships) SetReferenceRefund(v POSTReturns201ResponseDataRelationshipsReferenceRefund) { + o.ReferenceRefund = &v +} + // GetReturnLineItems returns the ReturnLineItems field value if set, zero value otherwise. -func (o *POSTReturns201ResponseDataRelationships) GetReturnLineItems() POSTReturns201ResponseDataRelationshipsReturnLineItems { +func (o *POSTReturns201ResponseDataRelationships) GetReturnLineItems() POSTLineItems201ResponseDataRelationshipsReturnLineItems { if o == nil || IsNil(o.ReturnLineItems) { - var ret POSTReturns201ResponseDataRelationshipsReturnLineItems + var ret POSTLineItems201ResponseDataRelationshipsReturnLineItems return ret } return *o.ReturnLineItems @@ -218,7 +287,7 @@ func (o *POSTReturns201ResponseDataRelationships) GetReturnLineItems() POSTRetur // GetReturnLineItemsOk returns a tuple with the ReturnLineItems field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTReturns201ResponseDataRelationships) GetReturnLineItemsOk() (*POSTReturns201ResponseDataRelationshipsReturnLineItems, bool) { +func (o *POSTReturns201ResponseDataRelationships) GetReturnLineItemsOk() (*POSTLineItems201ResponseDataRelationshipsReturnLineItems, bool) { if o == nil || IsNil(o.ReturnLineItems) { return nil, false } @@ -234,15 +303,15 @@ func (o *POSTReturns201ResponseDataRelationships) HasReturnLineItems() bool { return false } -// SetReturnLineItems gets a reference to the given POSTReturns201ResponseDataRelationshipsReturnLineItems and assigns it to the ReturnLineItems field. -func (o *POSTReturns201ResponseDataRelationships) SetReturnLineItems(v POSTReturns201ResponseDataRelationshipsReturnLineItems) { +// SetReturnLineItems gets a reference to the given POSTLineItems201ResponseDataRelationshipsReturnLineItems and assigns it to the ReturnLineItems field. +func (o *POSTReturns201ResponseDataRelationships) SetReturnLineItems(v POSTLineItems201ResponseDataRelationshipsReturnLineItems) { o.ReturnLineItems = &v } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTReturns201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTReturns201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -250,7 +319,7 @@ func (o *POSTReturns201ResponseDataRelationships) GetAttachments() POSTAvalaraAc // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTReturns201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTReturns201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -266,15 +335,47 @@ func (o *POSTReturns201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTReturns201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTReturns201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetResourceErrors returns the ResourceErrors field value if set, zero value otherwise. +func (o *POSTReturns201ResponseDataRelationships) GetResourceErrors() POSTOrders201ResponseDataRelationshipsResourceErrors { + if o == nil || IsNil(o.ResourceErrors) { + var ret POSTOrders201ResponseDataRelationshipsResourceErrors + return ret + } + return *o.ResourceErrors +} + +// GetResourceErrorsOk returns a tuple with the ResourceErrors field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTReturns201ResponseDataRelationships) GetResourceErrorsOk() (*POSTOrders201ResponseDataRelationshipsResourceErrors, bool) { + if o == nil || IsNil(o.ResourceErrors) { + return nil, false + } + return o.ResourceErrors, true +} + +// HasResourceErrors returns a boolean if a field has been set. +func (o *POSTReturns201ResponseDataRelationships) HasResourceErrors() bool { + if o != nil && !IsNil(o.ResourceErrors) { + return true + } + + return false +} + +// SetResourceErrors gets a reference to the given POSTOrders201ResponseDataRelationshipsResourceErrors and assigns it to the ResourceErrors field. +func (o *POSTReturns201ResponseDataRelationships) SetResourceErrors(v POSTOrders201ResponseDataRelationshipsResourceErrors) { + o.ResourceErrors = &v +} + // GetEvents returns the Events field value if set, zero value otherwise. -func (o *POSTReturns201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { +func (o *POSTReturns201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents + var ret POSTAddresses201ResponseDataRelationshipsEvents return ret } return *o.Events @@ -282,7 +383,7 @@ func (o *POSTReturns201ResponseDataRelationships) GetEvents() GETAuthorizationsA // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTReturns201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { +func (o *POSTReturns201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -298,11 +399,75 @@ func (o *POSTReturns201ResponseDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *POSTReturns201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTReturns201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { o.Events = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *POSTReturns201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret POSTAddresses201ResponseDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTReturns201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *POSTReturns201ResponseDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given POSTAddresses201ResponseDataRelationshipsTags and assigns it to the Tags field. +func (o *POSTReturns201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTReturns201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTReturns201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTReturns201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTReturns201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTReturns201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -328,15 +493,30 @@ func (o POSTReturns201ResponseDataRelationships) ToMap() (map[string]interface{} if !IsNil(o.DestinationAddress) { toSerialize["destination_address"] = o.DestinationAddress } + if !IsNil(o.ReferenceCapture) { + toSerialize["reference_capture"] = o.ReferenceCapture + } + if !IsNil(o.ReferenceRefund) { + toSerialize["reference_refund"] = o.ReferenceRefund + } if !IsNil(o.ReturnLineItems) { toSerialize["return_line_items"] = o.ReturnLineItems } if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.ResourceErrors) { + toSerialize["resource_errors"] = o.ResourceErrors + } if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_returns_201_response_data_relationships_destination_address.go b/api/model_post_returns_201_response_data_relationships_destination_address.go index 3af06211..bb50910e 100644 --- a/api/model_post_returns_201_response_data_relationships_destination_address.go +++ b/api/model_post_returns_201_response_data_relationships_destination_address.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_returns_201_response_data_relationships_destination_address_data.go b/api/model_post_returns_201_response_data_relationships_destination_address_data.go index 3d256d54..7e022b4e 100644 --- a/api/model_post_returns_201_response_data_relationships_destination_address_data.go +++ b/api/model_post_returns_201_response_data_relationships_destination_address_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_returns_201_response_data_relationships_origin_address.go b/api/model_post_returns_201_response_data_relationships_origin_address.go index a2e986a5..819b35ea 100644 --- a/api/model_post_returns_201_response_data_relationships_origin_address.go +++ b/api/model_post_returns_201_response_data_relationships_origin_address.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_returns_201_response_data_relationships_origin_address_data.go b/api/model_post_returns_201_response_data_relationships_origin_address_data.go index 44c512d7..ca56d7a8 100644 --- a/api/model_post_returns_201_response_data_relationships_origin_address_data.go +++ b/api/model_post_returns_201_response_data_relationships_origin_address_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_returns_201_response_data_relationships_reference_refund.go b/api/model_post_returns_201_response_data_relationships_reference_refund.go new file mode 100644 index 00000000..9ed6a3d4 --- /dev/null +++ b/api/model_post_returns_201_response_data_relationships_reference_refund.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTReturns201ResponseDataRelationshipsReferenceRefund type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTReturns201ResponseDataRelationshipsReferenceRefund{} + +// POSTReturns201ResponseDataRelationshipsReferenceRefund struct for POSTReturns201ResponseDataRelationshipsReferenceRefund +type POSTReturns201ResponseDataRelationshipsReferenceRefund struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTReturns201ResponseDataRelationshipsReferenceRefundData `json:"data,omitempty"` +} + +// NewPOSTReturns201ResponseDataRelationshipsReferenceRefund instantiates a new POSTReturns201ResponseDataRelationshipsReferenceRefund object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTReturns201ResponseDataRelationshipsReferenceRefund() *POSTReturns201ResponseDataRelationshipsReferenceRefund { + this := POSTReturns201ResponseDataRelationshipsReferenceRefund{} + return &this +} + +// NewPOSTReturns201ResponseDataRelationshipsReferenceRefundWithDefaults instantiates a new POSTReturns201ResponseDataRelationshipsReferenceRefund object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTReturns201ResponseDataRelationshipsReferenceRefundWithDefaults() *POSTReturns201ResponseDataRelationshipsReferenceRefund { + this := POSTReturns201ResponseDataRelationshipsReferenceRefund{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTReturns201ResponseDataRelationshipsReferenceRefund) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTReturns201ResponseDataRelationshipsReferenceRefund) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTReturns201ResponseDataRelationshipsReferenceRefund) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTReturns201ResponseDataRelationshipsReferenceRefund) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTReturns201ResponseDataRelationshipsReferenceRefund) GetData() POSTReturns201ResponseDataRelationshipsReferenceRefundData { + if o == nil || IsNil(o.Data) { + var ret POSTReturns201ResponseDataRelationshipsReferenceRefundData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTReturns201ResponseDataRelationshipsReferenceRefund) GetDataOk() (*POSTReturns201ResponseDataRelationshipsReferenceRefundData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTReturns201ResponseDataRelationshipsReferenceRefund) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTReturns201ResponseDataRelationshipsReferenceRefundData and assigns it to the Data field. +func (o *POSTReturns201ResponseDataRelationshipsReferenceRefund) SetData(v POSTReturns201ResponseDataRelationshipsReferenceRefundData) { + o.Data = &v +} + +func (o POSTReturns201ResponseDataRelationshipsReferenceRefund) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTReturns201ResponseDataRelationshipsReferenceRefund) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTReturns201ResponseDataRelationshipsReferenceRefund struct { + value *POSTReturns201ResponseDataRelationshipsReferenceRefund + isSet bool +} + +func (v NullablePOSTReturns201ResponseDataRelationshipsReferenceRefund) Get() *POSTReturns201ResponseDataRelationshipsReferenceRefund { + return v.value +} + +func (v *NullablePOSTReturns201ResponseDataRelationshipsReferenceRefund) Set(val *POSTReturns201ResponseDataRelationshipsReferenceRefund) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTReturns201ResponseDataRelationshipsReferenceRefund) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTReturns201ResponseDataRelationshipsReferenceRefund) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTReturns201ResponseDataRelationshipsReferenceRefund(val *POSTReturns201ResponseDataRelationshipsReferenceRefund) *NullablePOSTReturns201ResponseDataRelationshipsReferenceRefund { + return &NullablePOSTReturns201ResponseDataRelationshipsReferenceRefund{value: val, isSet: true} +} + +func (v NullablePOSTReturns201ResponseDataRelationshipsReferenceRefund) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTReturns201ResponseDataRelationshipsReferenceRefund) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_returns_201_response_data_relationships_return_line_items_data.go b/api/model_post_returns_201_response_data_relationships_reference_refund_data.go similarity index 52% rename from api/model_post_returns_201_response_data_relationships_return_line_items_data.go rename to api/model_post_returns_201_response_data_relationships_reference_refund_data.go index 2920cc8c..23c860be 100644 --- a/api/model_post_returns_201_response_data_relationships_return_line_items_data.go +++ b/api/model_post_returns_201_response_data_relationships_reference_refund_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -15,36 +15,36 @@ import ( "encoding/json" ) -// checks if the POSTReturns201ResponseDataRelationshipsReturnLineItemsData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTReturns201ResponseDataRelationshipsReturnLineItemsData{} +// checks if the POSTReturns201ResponseDataRelationshipsReferenceRefundData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTReturns201ResponseDataRelationshipsReferenceRefundData{} -// POSTReturns201ResponseDataRelationshipsReturnLineItemsData struct for POSTReturns201ResponseDataRelationshipsReturnLineItemsData -type POSTReturns201ResponseDataRelationshipsReturnLineItemsData struct { +// POSTReturns201ResponseDataRelationshipsReferenceRefundData struct for POSTReturns201ResponseDataRelationshipsReferenceRefundData +type POSTReturns201ResponseDataRelationshipsReferenceRefundData struct { // The resource's type Type interface{} `json:"type,omitempty"` // The resource ID Id interface{} `json:"id,omitempty"` } -// NewPOSTReturns201ResponseDataRelationshipsReturnLineItemsData instantiates a new POSTReturns201ResponseDataRelationshipsReturnLineItemsData object +// NewPOSTReturns201ResponseDataRelationshipsReferenceRefundData instantiates a new POSTReturns201ResponseDataRelationshipsReferenceRefundData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPOSTReturns201ResponseDataRelationshipsReturnLineItemsData() *POSTReturns201ResponseDataRelationshipsReturnLineItemsData { - this := POSTReturns201ResponseDataRelationshipsReturnLineItemsData{} +func NewPOSTReturns201ResponseDataRelationshipsReferenceRefundData() *POSTReturns201ResponseDataRelationshipsReferenceRefundData { + this := POSTReturns201ResponseDataRelationshipsReferenceRefundData{} return &this } -// NewPOSTReturns201ResponseDataRelationshipsReturnLineItemsDataWithDefaults instantiates a new POSTReturns201ResponseDataRelationshipsReturnLineItemsData object +// NewPOSTReturns201ResponseDataRelationshipsReferenceRefundDataWithDefaults instantiates a new POSTReturns201ResponseDataRelationshipsReferenceRefundData object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set -func NewPOSTReturns201ResponseDataRelationshipsReturnLineItemsDataWithDefaults() *POSTReturns201ResponseDataRelationshipsReturnLineItemsData { - this := POSTReturns201ResponseDataRelationshipsReturnLineItemsData{} +func NewPOSTReturns201ResponseDataRelationshipsReferenceRefundDataWithDefaults() *POSTReturns201ResponseDataRelationshipsReferenceRefundData { + this := POSTReturns201ResponseDataRelationshipsReferenceRefundData{} return &this } // GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) GetType() interface{} { +func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) GetType() interface{} { if o == nil { var ret interface{} return ret @@ -55,7 +55,7 @@ func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) GetType() i // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) GetTypeOk() (*interface{}, bool) { +func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) GetTypeOk() (*interface{}, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -63,7 +63,7 @@ func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) GetTypeOk() } // HasType returns a boolean if a field has been set. -func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) HasType() bool { +func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) HasType() bool { if o != nil && IsNil(o.Type) { return true } @@ -72,12 +72,12 @@ func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) HasType() b } // SetType gets a reference to the given interface{} and assigns it to the Type field. -func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) SetType(v interface{}) { +func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) SetType(v interface{}) { o.Type = v } // GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) GetId() interface{} { +func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) GetId() interface{} { if o == nil { var ret interface{} return ret @@ -88,7 +88,7 @@ func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) GetId() int // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) GetIdOk() (*interface{}, bool) { +func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) GetIdOk() (*interface{}, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -96,7 +96,7 @@ func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) GetIdOk() ( } // HasId returns a boolean if a field has been set. -func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) HasId() bool { +func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) HasId() bool { if o != nil && IsNil(o.Id) { return true } @@ -105,11 +105,11 @@ func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) HasId() boo } // SetId gets a reference to the given interface{} and assigns it to the Id field. -func (o *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) SetId(v interface{}) { +func (o *POSTReturns201ResponseDataRelationshipsReferenceRefundData) SetId(v interface{}) { o.Id = v } -func (o POSTReturns201ResponseDataRelationshipsReturnLineItemsData) MarshalJSON() ([]byte, error) { +func (o POSTReturns201ResponseDataRelationshipsReferenceRefundData) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o POSTReturns201ResponseDataRelationshipsReturnLineItemsData) MarshalJSON( return json.Marshal(toSerialize) } -func (o POSTReturns201ResponseDataRelationshipsReturnLineItemsData) ToMap() (map[string]interface{}, error) { +func (o POSTReturns201ResponseDataRelationshipsReferenceRefundData) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if o.Type != nil { toSerialize["type"] = o.Type @@ -128,38 +128,38 @@ func (o POSTReturns201ResponseDataRelationshipsReturnLineItemsData) ToMap() (map return toSerialize, nil } -type NullablePOSTReturns201ResponseDataRelationshipsReturnLineItemsData struct { - value *POSTReturns201ResponseDataRelationshipsReturnLineItemsData +type NullablePOSTReturns201ResponseDataRelationshipsReferenceRefundData struct { + value *POSTReturns201ResponseDataRelationshipsReferenceRefundData isSet bool } -func (v NullablePOSTReturns201ResponseDataRelationshipsReturnLineItemsData) Get() *POSTReturns201ResponseDataRelationshipsReturnLineItemsData { +func (v NullablePOSTReturns201ResponseDataRelationshipsReferenceRefundData) Get() *POSTReturns201ResponseDataRelationshipsReferenceRefundData { return v.value } -func (v *NullablePOSTReturns201ResponseDataRelationshipsReturnLineItemsData) Set(val *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) { +func (v *NullablePOSTReturns201ResponseDataRelationshipsReferenceRefundData) Set(val *POSTReturns201ResponseDataRelationshipsReferenceRefundData) { v.value = val v.isSet = true } -func (v NullablePOSTReturns201ResponseDataRelationshipsReturnLineItemsData) IsSet() bool { +func (v NullablePOSTReturns201ResponseDataRelationshipsReferenceRefundData) IsSet() bool { return v.isSet } -func (v *NullablePOSTReturns201ResponseDataRelationshipsReturnLineItemsData) Unset() { +func (v *NullablePOSTReturns201ResponseDataRelationshipsReferenceRefundData) Unset() { v.value = nil v.isSet = false } -func NewNullablePOSTReturns201ResponseDataRelationshipsReturnLineItemsData(val *POSTReturns201ResponseDataRelationshipsReturnLineItemsData) *NullablePOSTReturns201ResponseDataRelationshipsReturnLineItemsData { - return &NullablePOSTReturns201ResponseDataRelationshipsReturnLineItemsData{value: val, isSet: true} +func NewNullablePOSTReturns201ResponseDataRelationshipsReferenceRefundData(val *POSTReturns201ResponseDataRelationshipsReferenceRefundData) *NullablePOSTReturns201ResponseDataRelationshipsReferenceRefundData { + return &NullablePOSTReturns201ResponseDataRelationshipsReferenceRefundData{value: val, isSet: true} } -func (v NullablePOSTReturns201ResponseDataRelationshipsReturnLineItemsData) MarshalJSON() ([]byte, error) { +func (v NullablePOSTReturns201ResponseDataRelationshipsReferenceRefundData) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePOSTReturns201ResponseDataRelationshipsReturnLineItemsData) UnmarshalJSON(src []byte) error { +func (v *NullablePOSTReturns201ResponseDataRelationshipsReferenceRefundData) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/model_post_returns_201_response_data_relationships_return_line_items.go b/api/model_post_returns_201_response_data_relationships_return_line_items.go deleted file mode 100644 index 5c626925..00000000 --- a/api/model_post_returns_201_response_data_relationships_return_line_items.go +++ /dev/null @@ -1,161 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the POSTReturns201ResponseDataRelationshipsReturnLineItems type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &POSTReturns201ResponseDataRelationshipsReturnLineItems{} - -// POSTReturns201ResponseDataRelationshipsReturnLineItems struct for POSTReturns201ResponseDataRelationshipsReturnLineItems -type POSTReturns201ResponseDataRelationshipsReturnLineItems struct { - Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` - Data *POSTReturns201ResponseDataRelationshipsReturnLineItemsData `json:"data,omitempty"` -} - -// NewPOSTReturns201ResponseDataRelationshipsReturnLineItems instantiates a new POSTReturns201ResponseDataRelationshipsReturnLineItems object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPOSTReturns201ResponseDataRelationshipsReturnLineItems() *POSTReturns201ResponseDataRelationshipsReturnLineItems { - this := POSTReturns201ResponseDataRelationshipsReturnLineItems{} - return &this -} - -// NewPOSTReturns201ResponseDataRelationshipsReturnLineItemsWithDefaults instantiates a new POSTReturns201ResponseDataRelationshipsReturnLineItems object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPOSTReturns201ResponseDataRelationshipsReturnLineItemsWithDefaults() *POSTReturns201ResponseDataRelationshipsReturnLineItems { - this := POSTReturns201ResponseDataRelationshipsReturnLineItems{} - return &this -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *POSTReturns201ResponseDataRelationshipsReturnLineItems) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { - if o == nil || IsNil(o.Links) { - var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTReturns201ResponseDataRelationshipsReturnLineItems) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *POSTReturns201ResponseDataRelationshipsReturnLineItems) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. -func (o *POSTReturns201ResponseDataRelationshipsReturnLineItems) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { - o.Links = &v -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *POSTReturns201ResponseDataRelationshipsReturnLineItems) GetData() POSTReturns201ResponseDataRelationshipsReturnLineItemsData { - if o == nil || IsNil(o.Data) { - var ret POSTReturns201ResponseDataRelationshipsReturnLineItemsData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *POSTReturns201ResponseDataRelationshipsReturnLineItems) GetDataOk() (*POSTReturns201ResponseDataRelationshipsReturnLineItemsData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *POSTReturns201ResponseDataRelationshipsReturnLineItems) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given POSTReturns201ResponseDataRelationshipsReturnLineItemsData and assigns it to the Data field. -func (o *POSTReturns201ResponseDataRelationshipsReturnLineItems) SetData(v POSTReturns201ResponseDataRelationshipsReturnLineItemsData) { - o.Data = &v -} - -func (o POSTReturns201ResponseDataRelationshipsReturnLineItems) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o POSTReturns201ResponseDataRelationshipsReturnLineItems) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullablePOSTReturns201ResponseDataRelationshipsReturnLineItems struct { - value *POSTReturns201ResponseDataRelationshipsReturnLineItems - isSet bool -} - -func (v NullablePOSTReturns201ResponseDataRelationshipsReturnLineItems) Get() *POSTReturns201ResponseDataRelationshipsReturnLineItems { - return v.value -} - -func (v *NullablePOSTReturns201ResponseDataRelationshipsReturnLineItems) Set(val *POSTReturns201ResponseDataRelationshipsReturnLineItems) { - v.value = val - v.isSet = true -} - -func (v NullablePOSTReturns201ResponseDataRelationshipsReturnLineItems) IsSet() bool { - return v.isSet -} - -func (v *NullablePOSTReturns201ResponseDataRelationshipsReturnLineItems) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePOSTReturns201ResponseDataRelationshipsReturnLineItems(val *POSTReturns201ResponseDataRelationshipsReturnLineItems) *NullablePOSTReturns201ResponseDataRelationshipsReturnLineItems { - return &NullablePOSTReturns201ResponseDataRelationshipsReturnLineItems{value: val, isSet: true} -} - -func (v NullablePOSTReturns201ResponseDataRelationshipsReturnLineItems) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePOSTReturns201ResponseDataRelationshipsReturnLineItems) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_post_satispay_gateways_201_response.go b/api/model_post_satispay_gateways_201_response.go index 5b35e19e..540bb5ed 100644 --- a/api/model_post_satispay_gateways_201_response.go +++ b/api/model_post_satispay_gateways_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_satispay_gateways_201_response_data.go b/api/model_post_satispay_gateways_201_response_data.go index 1aa7c257..86dcbebd 100644 --- a/api/model_post_satispay_gateways_201_response_data.go +++ b/api/model_post_satispay_gateways_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -25,7 +25,7 @@ type POSTSatispayGateways201ResponseData struct { // The resource's type Type interface{} `json:"type,omitempty"` Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *POSTManualGateways201ResponseDataAttributes `json:"attributes,omitempty"` + Attributes *POSTSatispayGateways201ResponseDataAttributes `json:"attributes,omitempty"` Relationships *POSTSatispayGateways201ResponseDataRelationships `json:"relationships,omitempty"` } @@ -145,9 +145,9 @@ func (o *POSTSatispayGateways201ResponseData) SetLinks(v POSTAddresses201Respons } // GetAttributes returns the Attributes field value if set, zero value otherwise. -func (o *POSTSatispayGateways201ResponseData) GetAttributes() POSTManualGateways201ResponseDataAttributes { +func (o *POSTSatispayGateways201ResponseData) GetAttributes() POSTSatispayGateways201ResponseDataAttributes { if o == nil || IsNil(o.Attributes) { - var ret POSTManualGateways201ResponseDataAttributes + var ret POSTSatispayGateways201ResponseDataAttributes return ret } return *o.Attributes @@ -155,7 +155,7 @@ func (o *POSTSatispayGateways201ResponseData) GetAttributes() POSTManualGateways // GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTSatispayGateways201ResponseData) GetAttributesOk() (*POSTManualGateways201ResponseDataAttributes, bool) { +func (o *POSTSatispayGateways201ResponseData) GetAttributesOk() (*POSTSatispayGateways201ResponseDataAttributes, bool) { if o == nil || IsNil(o.Attributes) { return nil, false } @@ -171,8 +171,8 @@ func (o *POSTSatispayGateways201ResponseData) HasAttributes() bool { return false } -// SetAttributes gets a reference to the given POSTManualGateways201ResponseDataAttributes and assigns it to the Attributes field. -func (o *POSTSatispayGateways201ResponseData) SetAttributes(v POSTManualGateways201ResponseDataAttributes) { +// SetAttributes gets a reference to the given POSTSatispayGateways201ResponseDataAttributes and assigns it to the Attributes field. +func (o *POSTSatispayGateways201ResponseData) SetAttributes(v POSTSatispayGateways201ResponseDataAttributes) { o.Attributes = &v } diff --git a/api/model_post_satispay_gateways_201_response_data_attributes.go b/api/model_post_satispay_gateways_201_response_data_attributes.go new file mode 100644 index 00000000..12a75f28 --- /dev/null +++ b/api/model_post_satispay_gateways_201_response_data_attributes.go @@ -0,0 +1,267 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTSatispayGateways201ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTSatispayGateways201ResponseDataAttributes{} + +// POSTSatispayGateways201ResponseDataAttributes struct for POSTSatispayGateways201ResponseDataAttributes +type POSTSatispayGateways201ResponseDataAttributes struct { + // The payment gateway's internal name. + Name interface{} `json:"name"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` + // Activation code generated from the Satispay Dashboard. + Token interface{} `json:"token"` +} + +// NewPOSTSatispayGateways201ResponseDataAttributes instantiates a new POSTSatispayGateways201ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTSatispayGateways201ResponseDataAttributes(name interface{}, token interface{}) *POSTSatispayGateways201ResponseDataAttributes { + this := POSTSatispayGateways201ResponseDataAttributes{} + this.Name = name + this.Token = token + return &this +} + +// NewPOSTSatispayGateways201ResponseDataAttributesWithDefaults instantiates a new POSTSatispayGateways201ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTSatispayGateways201ResponseDataAttributesWithDefaults() *POSTSatispayGateways201ResponseDataAttributes { + this := POSTSatispayGateways201ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTSatispayGateways201ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTSatispayGateways201ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *POSTSatispayGateways201ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTSatispayGateways201ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTSatispayGateways201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *POSTSatispayGateways201ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *POSTSatispayGateways201ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTSatispayGateways201ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTSatispayGateways201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *POSTSatispayGateways201ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *POSTSatispayGateways201ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTSatispayGateways201ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTSatispayGateways201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *POSTSatispayGateways201ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *POSTSatispayGateways201ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +// GetToken returns the Token field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTSatispayGateways201ResponseDataAttributes) GetToken() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Token +} + +// GetTokenOk returns a tuple with the Token field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTSatispayGateways201ResponseDataAttributes) GetTokenOk() (*interface{}, bool) { + if o == nil || IsNil(o.Token) { + return nil, false + } + return &o.Token, true +} + +// SetToken sets field value +func (o *POSTSatispayGateways201ResponseDataAttributes) SetToken(v interface{}) { + o.Token = v +} + +func (o POSTSatispayGateways201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTSatispayGateways201ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + if o.Token != nil { + toSerialize["token"] = o.Token + } + return toSerialize, nil +} + +type NullablePOSTSatispayGateways201ResponseDataAttributes struct { + value *POSTSatispayGateways201ResponseDataAttributes + isSet bool +} + +func (v NullablePOSTSatispayGateways201ResponseDataAttributes) Get() *POSTSatispayGateways201ResponseDataAttributes { + return v.value +} + +func (v *NullablePOSTSatispayGateways201ResponseDataAttributes) Set(val *POSTSatispayGateways201ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTSatispayGateways201ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTSatispayGateways201ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTSatispayGateways201ResponseDataAttributes(val *POSTSatispayGateways201ResponseDataAttributes) *NullablePOSTSatispayGateways201ResponseDataAttributes { + return &NullablePOSTSatispayGateways201ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePOSTSatispayGateways201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTSatispayGateways201ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_satispay_gateways_201_response_data_relationships.go b/api/model_post_satispay_gateways_201_response_data_relationships.go index b661c050..e4182a57 100644 --- a/api/model_post_satispay_gateways_201_response_data_relationships.go +++ b/api/model_post_satispay_gateways_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &POSTSatispayGateways201ResponseDataRelationships{} // POSTSatispayGateways201ResponseDataRelationships struct for POSTSatispayGateways201ResponseDataRelationships type POSTSatispayGateways201ResponseDataRelationships struct { PaymentMethods *POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` SatispayPayments *POSTSatispayGateways201ResponseDataRelationshipsSatispayPayments `json:"satispay_payments,omitempty"` } @@ -73,6 +74,38 @@ func (o *POSTSatispayGateways201ResponseDataRelationships) SetPaymentMethods(v P o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTSatispayGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSatispayGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTSatispayGateways201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTSatispayGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + // GetSatispayPayments returns the SatispayPayments field value if set, zero value otherwise. func (o *POSTSatispayGateways201ResponseDataRelationships) GetSatispayPayments() POSTSatispayGateways201ResponseDataRelationshipsSatispayPayments { if o == nil || IsNil(o.SatispayPayments) { @@ -118,6 +151,9 @@ func (o POSTSatispayGateways201ResponseDataRelationships) ToMap() (map[string]in if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.SatispayPayments) { toSerialize["satispay_payments"] = o.SatispayPayments } diff --git a/api/model_post_satispay_gateways_201_response_data_relationships_satispay_payments.go b/api/model_post_satispay_gateways_201_response_data_relationships_satispay_payments.go index 318e1e5e..c3a4454f 100644 --- a/api/model_post_satispay_gateways_201_response_data_relationships_satispay_payments.go +++ b/api/model_post_satispay_gateways_201_response_data_relationships_satispay_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_satispay_gateways_201_response_data_relationships_satispay_payments_data.go b/api/model_post_satispay_gateways_201_response_data_relationships_satispay_payments_data.go index 3831229a..b6d60434 100644 --- a/api/model_post_satispay_gateways_201_response_data_relationships_satispay_payments_data.go +++ b/api/model_post_satispay_gateways_201_response_data_relationships_satispay_payments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_satispay_payments_201_response.go b/api/model_post_satispay_payments_201_response.go index 53a50ddc..bb07bcaf 100644 --- a/api/model_post_satispay_payments_201_response.go +++ b/api/model_post_satispay_payments_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_satispay_payments_201_response_data.go b/api/model_post_satispay_payments_201_response_data.go index 7e0c49be..956790c8 100644 --- a/api/model_post_satispay_payments_201_response_data.go +++ b/api/model_post_satispay_payments_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_satispay_payments_201_response_data_attributes.go b/api/model_post_satispay_payments_201_response_data_attributes.go index 73e33468..21f41743 100644 --- a/api/model_post_satispay_payments_201_response_data_attributes.go +++ b/api/model_post_satispay_payments_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,13 +20,13 @@ var _ MappedNullable = &POSTSatispayPayments201ResponseDataAttributes{} // POSTSatispayPayments201ResponseDataAttributes struct for POSTSatispayPayments201ResponseDataAttributes type POSTSatispayPayments201ResponseDataAttributes struct { - // Activation code generated from the Satispay Dashboard. - Token interface{} `json:"token,omitempty"` + // The Satispay payment flow, inspect gateway API details for more information. + Flow interface{} `json:"flow,omitempty"` // The url to redirect the customer after the payment flow is completed. RedirectUrl interface{} `json:"redirect_url,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -49,37 +49,37 @@ func NewPOSTSatispayPayments201ResponseDataAttributesWithDefaults() *POSTSatispa return &this } -// GetToken returns the Token field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *POSTSatispayPayments201ResponseDataAttributes) GetToken() interface{} { +// GetFlow returns the Flow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTSatispayPayments201ResponseDataAttributes) GetFlow() interface{} { if o == nil { var ret interface{} return ret } - return o.Token + return o.Flow } -// GetTokenOk returns a tuple with the Token field value if set, nil otherwise +// GetFlowOk returns a tuple with the Flow field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *POSTSatispayPayments201ResponseDataAttributes) GetTokenOk() (*interface{}, bool) { - if o == nil || IsNil(o.Token) { +func (o *POSTSatispayPayments201ResponseDataAttributes) GetFlowOk() (*interface{}, bool) { + if o == nil || IsNil(o.Flow) { return nil, false } - return &o.Token, true + return &o.Flow, true } -// HasToken returns a boolean if a field has been set. -func (o *POSTSatispayPayments201ResponseDataAttributes) HasToken() bool { - if o != nil && IsNil(o.Token) { +// HasFlow returns a boolean if a field has been set. +func (o *POSTSatispayPayments201ResponseDataAttributes) HasFlow() bool { + if o != nil && IsNil(o.Flow) { return true } return false } -// SetToken gets a reference to the given interface{} and assigns it to the Token field. -func (o *POSTSatispayPayments201ResponseDataAttributes) SetToken(v interface{}) { - o.Token = v +// SetFlow gets a reference to the given interface{} and assigns it to the Flow field. +func (o *POSTSatispayPayments201ResponseDataAttributes) SetFlow(v interface{}) { + o.Flow = v } // GetRedirectUrl returns the RedirectUrl field value if set, zero value otherwise (both if not set or set to explicit null). @@ -224,8 +224,8 @@ func (o POSTSatispayPayments201ResponseDataAttributes) MarshalJSON() ([]byte, er func (o POSTSatispayPayments201ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.Token != nil { - toSerialize["token"] = o.Token + if o.Flow != nil { + toSerialize["flow"] = o.Flow } if o.RedirectUrl != nil { toSerialize["redirect_url"] = o.RedirectUrl diff --git a/api/model_post_shipments_201_response.go b/api/model_post_shipments_201_response.go new file mode 100644 index 00000000..f0895c23 --- /dev/null +++ b/api/model_post_shipments_201_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTShipments201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTShipments201Response{} + +// POSTShipments201Response struct for POSTShipments201Response +type POSTShipments201Response struct { + Data *POSTShipments201ResponseData `json:"data,omitempty"` +} + +// NewPOSTShipments201Response instantiates a new POSTShipments201Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTShipments201Response() *POSTShipments201Response { + this := POSTShipments201Response{} + return &this +} + +// NewPOSTShipments201ResponseWithDefaults instantiates a new POSTShipments201Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTShipments201ResponseWithDefaults() *POSTShipments201Response { + this := POSTShipments201Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTShipments201Response) GetData() POSTShipments201ResponseData { + if o == nil || IsNil(o.Data) { + var ret POSTShipments201ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201Response) GetDataOk() (*POSTShipments201ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTShipments201Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTShipments201ResponseData and assigns it to the Data field. +func (o *POSTShipments201Response) SetData(v POSTShipments201ResponseData) { + o.Data = &v +} + +func (o POSTShipments201Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTShipments201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTShipments201Response struct { + value *POSTShipments201Response + isSet bool +} + +func (v NullablePOSTShipments201Response) Get() *POSTShipments201Response { + return v.value +} + +func (v *NullablePOSTShipments201Response) Set(val *POSTShipments201Response) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTShipments201Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTShipments201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTShipments201Response(val *POSTShipments201Response) *NullablePOSTShipments201Response { + return &NullablePOSTShipments201Response{value: val, isSet: true} +} + +func (v NullablePOSTShipments201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTShipments201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_shipments_201_response_data.go b/api/model_post_shipments_201_response_data.go new file mode 100644 index 00000000..4dafa06f --- /dev/null +++ b/api/model_post_shipments_201_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTShipments201ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTShipments201ResponseData{} + +// POSTShipments201ResponseData struct for POSTShipments201ResponseData +type POSTShipments201ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTAdyenPayments201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTShipments201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPOSTShipments201ResponseData instantiates a new POSTShipments201ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTShipments201ResponseData() *POSTShipments201ResponseData { + this := POSTShipments201ResponseData{} + return &this +} + +// NewPOSTShipments201ResponseDataWithDefaults instantiates a new POSTShipments201ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTShipments201ResponseDataWithDefaults() *POSTShipments201ResponseData { + this := POSTShipments201ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTShipments201ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTShipments201ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTShipments201ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTShipments201ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTShipments201ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTShipments201ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTShipments201ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTShipments201ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTShipments201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTShipments201ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *POSTShipments201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *POSTShipments201ResponseData) GetAttributes() POSTAdyenPayments201ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret POSTAdyenPayments201ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseData) GetAttributesOk() (*POSTAdyenPayments201ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *POSTShipments201ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given POSTAdyenPayments201ResponseDataAttributes and assigns it to the Attributes field. +func (o *POSTShipments201ResponseData) SetAttributes(v POSTAdyenPayments201ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *POSTShipments201ResponseData) GetRelationships() POSTShipments201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTShipments201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseData) GetRelationshipsOk() (*POSTShipments201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *POSTShipments201ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTShipments201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTShipments201ResponseData) SetRelationships(v POSTShipments201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o POSTShipments201ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTShipments201ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePOSTShipments201ResponseData struct { + value *POSTShipments201ResponseData + isSet bool +} + +func (v NullablePOSTShipments201ResponseData) Get() *POSTShipments201ResponseData { + return v.value +} + +func (v *NullablePOSTShipments201ResponseData) Set(val *POSTShipments201ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTShipments201ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTShipments201ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTShipments201ResponseData(val *POSTShipments201ResponseData) *NullablePOSTShipments201ResponseData { + return &NullablePOSTShipments201ResponseData{value: val, isSet: true} +} + +func (v NullablePOSTShipments201ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTShipments201ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_shipments_201_response_data_relationships.go b/api/model_post_shipments_201_response_data_relationships.go new file mode 100644 index 00000000..0636f862 --- /dev/null +++ b/api/model_post_shipments_201_response_data_relationships.go @@ -0,0 +1,737 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTShipments201ResponseDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTShipments201ResponseDataRelationships{} + +// POSTShipments201ResponseDataRelationships struct for POSTShipments201ResponseDataRelationships +type POSTShipments201ResponseDataRelationships struct { + Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` + ShippingCategory *POSTShipments201ResponseDataRelationshipsShippingCategory `json:"shipping_category,omitempty"` + InventoryStockLocation *POSTShipments201ResponseDataRelationshipsInventoryStockLocation `json:"inventory_stock_location,omitempty"` + StockLocation *POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation `json:"stock_location,omitempty"` + OriginAddress *POSTReturns201ResponseDataRelationshipsOriginAddress `json:"origin_address,omitempty"` + ShippingAddress *POSTOrders201ResponseDataRelationshipsShippingAddress `json:"shipping_address,omitempty"` + ShippingMethod *POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod `json:"shipping_method,omitempty"` + DeliveryLeadTime *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime `json:"delivery_lead_time,omitempty"` + StockLineItems *POSTLineItems201ResponseDataRelationshipsStockLineItems `json:"stock_line_items,omitempty"` + StockTransfers *POSTLineItems201ResponseDataRelationshipsStockTransfers `json:"stock_transfers,omitempty"` + LineItems *POSTOrders201ResponseDataRelationshipsLineItems `json:"line_items,omitempty"` + AvailableShippingMethods *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods `json:"available_shipping_methods,omitempty"` + CarrierAccounts *POSTShipments201ResponseDataRelationshipsCarrierAccounts `json:"carrier_accounts,omitempty"` + Parcels *POSTPackages201ResponseDataRelationshipsParcels `json:"parcels,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Tags *POSTAddresses201ResponseDataRelationshipsTags `json:"tags,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewPOSTShipments201ResponseDataRelationships instantiates a new POSTShipments201ResponseDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTShipments201ResponseDataRelationships() *POSTShipments201ResponseDataRelationships { + this := POSTShipments201ResponseDataRelationships{} + return &this +} + +// NewPOSTShipments201ResponseDataRelationshipsWithDefaults instantiates a new POSTShipments201ResponseDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTShipments201ResponseDataRelationshipsWithDefaults() *POSTShipments201ResponseDataRelationships { + this := POSTShipments201ResponseDataRelationships{} + return &this +} + +// GetOrder returns the Order field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationships) GetOrder() POSTAdyenPayments201ResponseDataRelationshipsOrder { + if o == nil || IsNil(o.Order) { + var ret POSTAdyenPayments201ResponseDataRelationshipsOrder + return ret + } + return *o.Order +} + +// GetOrderOk returns a tuple with the Order field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationships) GetOrderOk() (*POSTAdyenPayments201ResponseDataRelationshipsOrder, bool) { + if o == nil || IsNil(o.Order) { + return nil, false + } + return o.Order, true +} + +// HasOrder returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationships) HasOrder() bool { + if o != nil && !IsNil(o.Order) { + return true + } + + return false +} + +// SetOrder gets a reference to the given POSTAdyenPayments201ResponseDataRelationshipsOrder and assigns it to the Order field. +func (o *POSTShipments201ResponseDataRelationships) SetOrder(v POSTAdyenPayments201ResponseDataRelationshipsOrder) { + o.Order = &v +} + +// GetShippingCategory returns the ShippingCategory field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationships) GetShippingCategory() POSTShipments201ResponseDataRelationshipsShippingCategory { + if o == nil || IsNil(o.ShippingCategory) { + var ret POSTShipments201ResponseDataRelationshipsShippingCategory + return ret + } + return *o.ShippingCategory +} + +// GetShippingCategoryOk returns a tuple with the ShippingCategory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationships) GetShippingCategoryOk() (*POSTShipments201ResponseDataRelationshipsShippingCategory, bool) { + if o == nil || IsNil(o.ShippingCategory) { + return nil, false + } + return o.ShippingCategory, true +} + +// HasShippingCategory returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationships) HasShippingCategory() bool { + if o != nil && !IsNil(o.ShippingCategory) { + return true + } + + return false +} + +// SetShippingCategory gets a reference to the given POSTShipments201ResponseDataRelationshipsShippingCategory and assigns it to the ShippingCategory field. +func (o *POSTShipments201ResponseDataRelationships) SetShippingCategory(v POSTShipments201ResponseDataRelationshipsShippingCategory) { + o.ShippingCategory = &v +} + +// GetInventoryStockLocation returns the InventoryStockLocation field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationships) GetInventoryStockLocation() POSTShipments201ResponseDataRelationshipsInventoryStockLocation { + if o == nil || IsNil(o.InventoryStockLocation) { + var ret POSTShipments201ResponseDataRelationshipsInventoryStockLocation + return ret + } + return *o.InventoryStockLocation +} + +// GetInventoryStockLocationOk returns a tuple with the InventoryStockLocation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationships) GetInventoryStockLocationOk() (*POSTShipments201ResponseDataRelationshipsInventoryStockLocation, bool) { + if o == nil || IsNil(o.InventoryStockLocation) { + return nil, false + } + return o.InventoryStockLocation, true +} + +// HasInventoryStockLocation returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationships) HasInventoryStockLocation() bool { + if o != nil && !IsNil(o.InventoryStockLocation) { + return true + } + + return false +} + +// SetInventoryStockLocation gets a reference to the given POSTShipments201ResponseDataRelationshipsInventoryStockLocation and assigns it to the InventoryStockLocation field. +func (o *POSTShipments201ResponseDataRelationships) SetInventoryStockLocation(v POSTShipments201ResponseDataRelationshipsInventoryStockLocation) { + o.InventoryStockLocation = &v +} + +// GetStockLocation returns the StockLocation field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationships) GetStockLocation() POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation { + if o == nil || IsNil(o.StockLocation) { + var ret POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation + return ret + } + return *o.StockLocation +} + +// GetStockLocationOk returns a tuple with the StockLocation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationships) GetStockLocationOk() (*POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation, bool) { + if o == nil || IsNil(o.StockLocation) { + return nil, false + } + return o.StockLocation, true +} + +// HasStockLocation returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationships) HasStockLocation() bool { + if o != nil && !IsNil(o.StockLocation) { + return true + } + + return false +} + +// SetStockLocation gets a reference to the given POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation and assigns it to the StockLocation field. +func (o *POSTShipments201ResponseDataRelationships) SetStockLocation(v POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation) { + o.StockLocation = &v +} + +// GetOriginAddress returns the OriginAddress field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationships) GetOriginAddress() POSTReturns201ResponseDataRelationshipsOriginAddress { + if o == nil || IsNil(o.OriginAddress) { + var ret POSTReturns201ResponseDataRelationshipsOriginAddress + return ret + } + return *o.OriginAddress +} + +// GetOriginAddressOk returns a tuple with the OriginAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationships) GetOriginAddressOk() (*POSTReturns201ResponseDataRelationshipsOriginAddress, bool) { + if o == nil || IsNil(o.OriginAddress) { + return nil, false + } + return o.OriginAddress, true +} + +// HasOriginAddress returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationships) HasOriginAddress() bool { + if o != nil && !IsNil(o.OriginAddress) { + return true + } + + return false +} + +// SetOriginAddress gets a reference to the given POSTReturns201ResponseDataRelationshipsOriginAddress and assigns it to the OriginAddress field. +func (o *POSTShipments201ResponseDataRelationships) SetOriginAddress(v POSTReturns201ResponseDataRelationshipsOriginAddress) { + o.OriginAddress = &v +} + +// GetShippingAddress returns the ShippingAddress field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationships) GetShippingAddress() POSTOrders201ResponseDataRelationshipsShippingAddress { + if o == nil || IsNil(o.ShippingAddress) { + var ret POSTOrders201ResponseDataRelationshipsShippingAddress + return ret + } + return *o.ShippingAddress +} + +// GetShippingAddressOk returns a tuple with the ShippingAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationships) GetShippingAddressOk() (*POSTOrders201ResponseDataRelationshipsShippingAddress, bool) { + if o == nil || IsNil(o.ShippingAddress) { + return nil, false + } + return o.ShippingAddress, true +} + +// HasShippingAddress returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationships) HasShippingAddress() bool { + if o != nil && !IsNil(o.ShippingAddress) { + return true + } + + return false +} + +// SetShippingAddress gets a reference to the given POSTOrders201ResponseDataRelationshipsShippingAddress and assigns it to the ShippingAddress field. +func (o *POSTShipments201ResponseDataRelationships) SetShippingAddress(v POSTOrders201ResponseDataRelationshipsShippingAddress) { + o.ShippingAddress = &v +} + +// GetShippingMethod returns the ShippingMethod field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationships) GetShippingMethod() POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod { + if o == nil || IsNil(o.ShippingMethod) { + var ret POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod + return ret + } + return *o.ShippingMethod +} + +// GetShippingMethodOk returns a tuple with the ShippingMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationships) GetShippingMethodOk() (*POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod, bool) { + if o == nil || IsNil(o.ShippingMethod) { + return nil, false + } + return o.ShippingMethod, true +} + +// HasShippingMethod returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationships) HasShippingMethod() bool { + if o != nil && !IsNil(o.ShippingMethod) { + return true + } + + return false +} + +// SetShippingMethod gets a reference to the given POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod and assigns it to the ShippingMethod field. +func (o *POSTShipments201ResponseDataRelationships) SetShippingMethod(v POSTDeliveryLeadTimes201ResponseDataRelationshipsShippingMethod) { + o.ShippingMethod = &v +} + +// GetDeliveryLeadTime returns the DeliveryLeadTime field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationships) GetDeliveryLeadTime() POSTShipments201ResponseDataRelationshipsDeliveryLeadTime { + if o == nil || IsNil(o.DeliveryLeadTime) { + var ret POSTShipments201ResponseDataRelationshipsDeliveryLeadTime + return ret + } + return *o.DeliveryLeadTime +} + +// GetDeliveryLeadTimeOk returns a tuple with the DeliveryLeadTime field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationships) GetDeliveryLeadTimeOk() (*POSTShipments201ResponseDataRelationshipsDeliveryLeadTime, bool) { + if o == nil || IsNil(o.DeliveryLeadTime) { + return nil, false + } + return o.DeliveryLeadTime, true +} + +// HasDeliveryLeadTime returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationships) HasDeliveryLeadTime() bool { + if o != nil && !IsNil(o.DeliveryLeadTime) { + return true + } + + return false +} + +// SetDeliveryLeadTime gets a reference to the given POSTShipments201ResponseDataRelationshipsDeliveryLeadTime and assigns it to the DeliveryLeadTime field. +func (o *POSTShipments201ResponseDataRelationships) SetDeliveryLeadTime(v POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) { + o.DeliveryLeadTime = &v +} + +// GetStockLineItems returns the StockLineItems field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationships) GetStockLineItems() POSTLineItems201ResponseDataRelationshipsStockLineItems { + if o == nil || IsNil(o.StockLineItems) { + var ret POSTLineItems201ResponseDataRelationshipsStockLineItems + return ret + } + return *o.StockLineItems +} + +// GetStockLineItemsOk returns a tuple with the StockLineItems field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationships) GetStockLineItemsOk() (*POSTLineItems201ResponseDataRelationshipsStockLineItems, bool) { + if o == nil || IsNil(o.StockLineItems) { + return nil, false + } + return o.StockLineItems, true +} + +// HasStockLineItems returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationships) HasStockLineItems() bool { + if o != nil && !IsNil(o.StockLineItems) { + return true + } + + return false +} + +// SetStockLineItems gets a reference to the given POSTLineItems201ResponseDataRelationshipsStockLineItems and assigns it to the StockLineItems field. +func (o *POSTShipments201ResponseDataRelationships) SetStockLineItems(v POSTLineItems201ResponseDataRelationshipsStockLineItems) { + o.StockLineItems = &v +} + +// GetStockTransfers returns the StockTransfers field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationships) GetStockTransfers() POSTLineItems201ResponseDataRelationshipsStockTransfers { + if o == nil || IsNil(o.StockTransfers) { + var ret POSTLineItems201ResponseDataRelationshipsStockTransfers + return ret + } + return *o.StockTransfers +} + +// GetStockTransfersOk returns a tuple with the StockTransfers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationships) GetStockTransfersOk() (*POSTLineItems201ResponseDataRelationshipsStockTransfers, bool) { + if o == nil || IsNil(o.StockTransfers) { + return nil, false + } + return o.StockTransfers, true +} + +// HasStockTransfers returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationships) HasStockTransfers() bool { + if o != nil && !IsNil(o.StockTransfers) { + return true + } + + return false +} + +// SetStockTransfers gets a reference to the given POSTLineItems201ResponseDataRelationshipsStockTransfers and assigns it to the StockTransfers field. +func (o *POSTShipments201ResponseDataRelationships) SetStockTransfers(v POSTLineItems201ResponseDataRelationshipsStockTransfers) { + o.StockTransfers = &v +} + +// GetLineItems returns the LineItems field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationships) GetLineItems() POSTOrders201ResponseDataRelationshipsLineItems { + if o == nil || IsNil(o.LineItems) { + var ret POSTOrders201ResponseDataRelationshipsLineItems + return ret + } + return *o.LineItems +} + +// GetLineItemsOk returns a tuple with the LineItems field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationships) GetLineItemsOk() (*POSTOrders201ResponseDataRelationshipsLineItems, bool) { + if o == nil || IsNil(o.LineItems) { + return nil, false + } + return o.LineItems, true +} + +// HasLineItems returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationships) HasLineItems() bool { + if o != nil && !IsNil(o.LineItems) { + return true + } + + return false +} + +// SetLineItems gets a reference to the given POSTOrders201ResponseDataRelationshipsLineItems and assigns it to the LineItems field. +func (o *POSTShipments201ResponseDataRelationships) SetLineItems(v POSTOrders201ResponseDataRelationshipsLineItems) { + o.LineItems = &v +} + +// GetAvailableShippingMethods returns the AvailableShippingMethods field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationships) GetAvailableShippingMethods() POSTShipments201ResponseDataRelationshipsAvailableShippingMethods { + if o == nil || IsNil(o.AvailableShippingMethods) { + var ret POSTShipments201ResponseDataRelationshipsAvailableShippingMethods + return ret + } + return *o.AvailableShippingMethods +} + +// GetAvailableShippingMethodsOk returns a tuple with the AvailableShippingMethods field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationships) GetAvailableShippingMethodsOk() (*POSTShipments201ResponseDataRelationshipsAvailableShippingMethods, bool) { + if o == nil || IsNil(o.AvailableShippingMethods) { + return nil, false + } + return o.AvailableShippingMethods, true +} + +// HasAvailableShippingMethods returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationships) HasAvailableShippingMethods() bool { + if o != nil && !IsNil(o.AvailableShippingMethods) { + return true + } + + return false +} + +// SetAvailableShippingMethods gets a reference to the given POSTShipments201ResponseDataRelationshipsAvailableShippingMethods and assigns it to the AvailableShippingMethods field. +func (o *POSTShipments201ResponseDataRelationships) SetAvailableShippingMethods(v POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) { + o.AvailableShippingMethods = &v +} + +// GetCarrierAccounts returns the CarrierAccounts field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationships) GetCarrierAccounts() POSTShipments201ResponseDataRelationshipsCarrierAccounts { + if o == nil || IsNil(o.CarrierAccounts) { + var ret POSTShipments201ResponseDataRelationshipsCarrierAccounts + return ret + } + return *o.CarrierAccounts +} + +// GetCarrierAccountsOk returns a tuple with the CarrierAccounts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationships) GetCarrierAccountsOk() (*POSTShipments201ResponseDataRelationshipsCarrierAccounts, bool) { + if o == nil || IsNil(o.CarrierAccounts) { + return nil, false + } + return o.CarrierAccounts, true +} + +// HasCarrierAccounts returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationships) HasCarrierAccounts() bool { + if o != nil && !IsNil(o.CarrierAccounts) { + return true + } + + return false +} + +// SetCarrierAccounts gets a reference to the given POSTShipments201ResponseDataRelationshipsCarrierAccounts and assigns it to the CarrierAccounts field. +func (o *POSTShipments201ResponseDataRelationships) SetCarrierAccounts(v POSTShipments201ResponseDataRelationshipsCarrierAccounts) { + o.CarrierAccounts = &v +} + +// GetParcels returns the Parcels field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationships) GetParcels() POSTPackages201ResponseDataRelationshipsParcels { + if o == nil || IsNil(o.Parcels) { + var ret POSTPackages201ResponseDataRelationshipsParcels + return ret + } + return *o.Parcels +} + +// GetParcelsOk returns a tuple with the Parcels field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationships) GetParcelsOk() (*POSTPackages201ResponseDataRelationshipsParcels, bool) { + if o == nil || IsNil(o.Parcels) { + return nil, false + } + return o.Parcels, true +} + +// HasParcels returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationships) HasParcels() bool { + if o != nil && !IsNil(o.Parcels) { + return true + } + + return false +} + +// SetParcels gets a reference to the given POSTPackages201ResponseDataRelationshipsParcels and assigns it to the Parcels field. +func (o *POSTShipments201ResponseDataRelationships) SetParcels(v POSTPackages201ResponseDataRelationshipsParcels) { + o.Parcels = &v +} + +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTShipments201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { + o.Attachments = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTShipments201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret POSTAddresses201ResponseDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given POSTAddresses201ResponseDataRelationshipsTags and assigns it to the Tags field. +func (o *POSTShipments201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTShipments201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + +func (o POSTShipments201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTShipments201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Order) { + toSerialize["order"] = o.Order + } + if !IsNil(o.ShippingCategory) { + toSerialize["shipping_category"] = o.ShippingCategory + } + if !IsNil(o.InventoryStockLocation) { + toSerialize["inventory_stock_location"] = o.InventoryStockLocation + } + if !IsNil(o.StockLocation) { + toSerialize["stock_location"] = o.StockLocation + } + if !IsNil(o.OriginAddress) { + toSerialize["origin_address"] = o.OriginAddress + } + if !IsNil(o.ShippingAddress) { + toSerialize["shipping_address"] = o.ShippingAddress + } + if !IsNil(o.ShippingMethod) { + toSerialize["shipping_method"] = o.ShippingMethod + } + if !IsNil(o.DeliveryLeadTime) { + toSerialize["delivery_lead_time"] = o.DeliveryLeadTime + } + if !IsNil(o.StockLineItems) { + toSerialize["stock_line_items"] = o.StockLineItems + } + if !IsNil(o.StockTransfers) { + toSerialize["stock_transfers"] = o.StockTransfers + } + if !IsNil(o.LineItems) { + toSerialize["line_items"] = o.LineItems + } + if !IsNil(o.AvailableShippingMethods) { + toSerialize["available_shipping_methods"] = o.AvailableShippingMethods + } + if !IsNil(o.CarrierAccounts) { + toSerialize["carrier_accounts"] = o.CarrierAccounts + } + if !IsNil(o.Parcels) { + toSerialize["parcels"] = o.Parcels + } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullablePOSTShipments201ResponseDataRelationships struct { + value *POSTShipments201ResponseDataRelationships + isSet bool +} + +func (v NullablePOSTShipments201ResponseDataRelationships) Get() *POSTShipments201ResponseDataRelationships { + return v.value +} + +func (v *NullablePOSTShipments201ResponseDataRelationships) Set(val *POSTShipments201ResponseDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTShipments201ResponseDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTShipments201ResponseDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTShipments201ResponseDataRelationships(val *POSTShipments201ResponseDataRelationships) *NullablePOSTShipments201ResponseDataRelationships { + return &NullablePOSTShipments201ResponseDataRelationships{value: val, isSet: true} +} + +func (v NullablePOSTShipments201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTShipments201ResponseDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_shipments_201_response_data_relationships_available_shipping_methods.go b/api/model_post_shipments_201_response_data_relationships_available_shipping_methods.go new file mode 100644 index 00000000..6b86a2fd --- /dev/null +++ b/api/model_post_shipments_201_response_data_relationships_available_shipping_methods.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTShipments201ResponseDataRelationshipsAvailableShippingMethods type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTShipments201ResponseDataRelationshipsAvailableShippingMethods{} + +// POSTShipments201ResponseDataRelationshipsAvailableShippingMethods struct for POSTShipments201ResponseDataRelationshipsAvailableShippingMethods +type POSTShipments201ResponseDataRelationshipsAvailableShippingMethods struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData `json:"data,omitempty"` +} + +// NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethods instantiates a new POSTShipments201ResponseDataRelationshipsAvailableShippingMethods object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethods() *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods { + this := POSTShipments201ResponseDataRelationshipsAvailableShippingMethods{} + return &this +} + +// NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsAvailableShippingMethods object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsWithDefaults() *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods { + this := POSTShipments201ResponseDataRelationshipsAvailableShippingMethods{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) GetData() POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData { + if o == nil || IsNil(o.Data) { + var ret POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) GetDataOk() (*POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData and assigns it to the Data field. +func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) SetData(v POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) { + o.Data = &v +} + +func (o POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethods struct { + value *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods + isSet bool +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethods) Get() *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods { + return v.value +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethods) Set(val *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethods) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethods) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethods(val *POSTShipments201ResponseDataRelationshipsAvailableShippingMethods) *NullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethods { + return &NullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethods{value: val, isSet: true} +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethods) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethods) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_shipments_201_response_data_relationships_available_shipping_methods_data.go b/api/model_post_shipments_201_response_data_relationships_available_shipping_methods_data.go new file mode 100644 index 00000000..72b5be4d --- /dev/null +++ b/api/model_post_shipments_201_response_data_relationships_available_shipping_methods_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData{} + +// POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData struct for POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData +type POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData instantiates a new POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData() *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData { + this := POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData{} + return &this +} + +// NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsDataWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsDataWithDefaults() *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData { + this := POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData struct { + value *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData + isSet bool +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) Get() *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData { + return v.value +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) Set(val *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData(val *POSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) *NullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData { + return &NullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData{value: val, isSet: true} +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsAvailableShippingMethodsData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_shipments_201_response_data_relationships_carrier_accounts.go b/api/model_post_shipments_201_response_data_relationships_carrier_accounts.go new file mode 100644 index 00000000..3d343624 --- /dev/null +++ b/api/model_post_shipments_201_response_data_relationships_carrier_accounts.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTShipments201ResponseDataRelationshipsCarrierAccounts type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTShipments201ResponseDataRelationshipsCarrierAccounts{} + +// POSTShipments201ResponseDataRelationshipsCarrierAccounts struct for POSTShipments201ResponseDataRelationshipsCarrierAccounts +type POSTShipments201ResponseDataRelationshipsCarrierAccounts struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTShipments201ResponseDataRelationshipsCarrierAccountsData `json:"data,omitempty"` +} + +// NewPOSTShipments201ResponseDataRelationshipsCarrierAccounts instantiates a new POSTShipments201ResponseDataRelationshipsCarrierAccounts object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTShipments201ResponseDataRelationshipsCarrierAccounts() *POSTShipments201ResponseDataRelationshipsCarrierAccounts { + this := POSTShipments201ResponseDataRelationshipsCarrierAccounts{} + return &this +} + +// NewPOSTShipments201ResponseDataRelationshipsCarrierAccountsWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsCarrierAccounts object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTShipments201ResponseDataRelationshipsCarrierAccountsWithDefaults() *POSTShipments201ResponseDataRelationshipsCarrierAccounts { + this := POSTShipments201ResponseDataRelationshipsCarrierAccounts{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationshipsCarrierAccounts) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationshipsCarrierAccounts) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsCarrierAccounts) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTShipments201ResponseDataRelationshipsCarrierAccounts) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationshipsCarrierAccounts) GetData() POSTShipments201ResponseDataRelationshipsCarrierAccountsData { + if o == nil || IsNil(o.Data) { + var ret POSTShipments201ResponseDataRelationshipsCarrierAccountsData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationshipsCarrierAccounts) GetDataOk() (*POSTShipments201ResponseDataRelationshipsCarrierAccountsData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsCarrierAccounts) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTShipments201ResponseDataRelationshipsCarrierAccountsData and assigns it to the Data field. +func (o *POSTShipments201ResponseDataRelationshipsCarrierAccounts) SetData(v POSTShipments201ResponseDataRelationshipsCarrierAccountsData) { + o.Data = &v +} + +func (o POSTShipments201ResponseDataRelationshipsCarrierAccounts) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTShipments201ResponseDataRelationshipsCarrierAccounts) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTShipments201ResponseDataRelationshipsCarrierAccounts struct { + value *POSTShipments201ResponseDataRelationshipsCarrierAccounts + isSet bool +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsCarrierAccounts) Get() *POSTShipments201ResponseDataRelationshipsCarrierAccounts { + return v.value +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsCarrierAccounts) Set(val *POSTShipments201ResponseDataRelationshipsCarrierAccounts) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsCarrierAccounts) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsCarrierAccounts) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTShipments201ResponseDataRelationshipsCarrierAccounts(val *POSTShipments201ResponseDataRelationshipsCarrierAccounts) *NullablePOSTShipments201ResponseDataRelationshipsCarrierAccounts { + return &NullablePOSTShipments201ResponseDataRelationshipsCarrierAccounts{value: val, isSet: true} +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsCarrierAccounts) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsCarrierAccounts) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_shipments_201_response_data_relationships_carrier_accounts_data.go b/api/model_post_shipments_201_response_data_relationships_carrier_accounts_data.go new file mode 100644 index 00000000..b7742ff0 --- /dev/null +++ b/api/model_post_shipments_201_response_data_relationships_carrier_accounts_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTShipments201ResponseDataRelationshipsCarrierAccountsData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTShipments201ResponseDataRelationshipsCarrierAccountsData{} + +// POSTShipments201ResponseDataRelationshipsCarrierAccountsData struct for POSTShipments201ResponseDataRelationshipsCarrierAccountsData +type POSTShipments201ResponseDataRelationshipsCarrierAccountsData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTShipments201ResponseDataRelationshipsCarrierAccountsData instantiates a new POSTShipments201ResponseDataRelationshipsCarrierAccountsData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTShipments201ResponseDataRelationshipsCarrierAccountsData() *POSTShipments201ResponseDataRelationshipsCarrierAccountsData { + this := POSTShipments201ResponseDataRelationshipsCarrierAccountsData{} + return &this +} + +// NewPOSTShipments201ResponseDataRelationshipsCarrierAccountsDataWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsCarrierAccountsData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTShipments201ResponseDataRelationshipsCarrierAccountsDataWithDefaults() *POSTShipments201ResponseDataRelationshipsCarrierAccountsData { + this := POSTShipments201ResponseDataRelationshipsCarrierAccountsData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTShipments201ResponseDataRelationshipsCarrierAccountsData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTShipments201ResponseDataRelationshipsCarrierAccountsData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTShipments201ResponseDataRelationshipsCarrierAccountsData struct { + value *POSTShipments201ResponseDataRelationshipsCarrierAccountsData + isSet bool +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsCarrierAccountsData) Get() *POSTShipments201ResponseDataRelationshipsCarrierAccountsData { + return v.value +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsCarrierAccountsData) Set(val *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsCarrierAccountsData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsCarrierAccountsData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTShipments201ResponseDataRelationshipsCarrierAccountsData(val *POSTShipments201ResponseDataRelationshipsCarrierAccountsData) *NullablePOSTShipments201ResponseDataRelationshipsCarrierAccountsData { + return &NullablePOSTShipments201ResponseDataRelationshipsCarrierAccountsData{value: val, isSet: true} +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsCarrierAccountsData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsCarrierAccountsData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_shipments_201_response_data_relationships_delivery_lead_time.go b/api/model_post_shipments_201_response_data_relationships_delivery_lead_time.go new file mode 100644 index 00000000..12cad39d --- /dev/null +++ b/api/model_post_shipments_201_response_data_relationships_delivery_lead_time.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTShipments201ResponseDataRelationshipsDeliveryLeadTime type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTShipments201ResponseDataRelationshipsDeliveryLeadTime{} + +// POSTShipments201ResponseDataRelationshipsDeliveryLeadTime struct for POSTShipments201ResponseDataRelationshipsDeliveryLeadTime +type POSTShipments201ResponseDataRelationshipsDeliveryLeadTime struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData `json:"data,omitempty"` +} + +// NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTime instantiates a new POSTShipments201ResponseDataRelationshipsDeliveryLeadTime object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTime() *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime { + this := POSTShipments201ResponseDataRelationshipsDeliveryLeadTime{} + return &this +} + +// NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsDeliveryLeadTime object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeWithDefaults() *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime { + this := POSTShipments201ResponseDataRelationshipsDeliveryLeadTime{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) GetData() POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData { + if o == nil || IsNil(o.Data) { + var ret POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) GetDataOk() (*POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData and assigns it to the Data field. +func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) SetData(v POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) { + o.Data = &v +} + +func (o POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTime struct { + value *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime + isSet bool +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTime) Get() *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime { + return v.value +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTime) Set(val *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTime) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTime(val *POSTShipments201ResponseDataRelationshipsDeliveryLeadTime) *NullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTime { + return &NullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTime{value: val, isSet: true} +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTime) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_shipments_201_response_data_relationships_delivery_lead_time_data.go b/api/model_post_shipments_201_response_data_relationships_delivery_lead_time_data.go new file mode 100644 index 00000000..9993c93a --- /dev/null +++ b/api/model_post_shipments_201_response_data_relationships_delivery_lead_time_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData{} + +// POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData struct for POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData +type POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData instantiates a new POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData() *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData { + this := POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData{} + return &this +} + +// NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeDataWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeDataWithDefaults() *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData { + this := POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData struct { + value *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData + isSet bool +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) Get() *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData { + return v.value +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) Set(val *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData(val *POSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) *NullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData { + return &NullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData{value: val, isSet: true} +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsDeliveryLeadTimeData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_shipments_201_response_data_relationships_inventory_stock_location.go b/api/model_post_shipments_201_response_data_relationships_inventory_stock_location.go new file mode 100644 index 00000000..d2ae81db --- /dev/null +++ b/api/model_post_shipments_201_response_data_relationships_inventory_stock_location.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTShipments201ResponseDataRelationshipsInventoryStockLocation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTShipments201ResponseDataRelationshipsInventoryStockLocation{} + +// POSTShipments201ResponseDataRelationshipsInventoryStockLocation struct for POSTShipments201ResponseDataRelationshipsInventoryStockLocation +type POSTShipments201ResponseDataRelationshipsInventoryStockLocation struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData `json:"data,omitempty"` +} + +// NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocation instantiates a new POSTShipments201ResponseDataRelationshipsInventoryStockLocation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocation() *POSTShipments201ResponseDataRelationshipsInventoryStockLocation { + this := POSTShipments201ResponseDataRelationshipsInventoryStockLocation{} + return &this +} + +// NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocationWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsInventoryStockLocation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocationWithDefaults() *POSTShipments201ResponseDataRelationshipsInventoryStockLocation { + this := POSTShipments201ResponseDataRelationshipsInventoryStockLocation{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocation) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocation) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocation) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocation) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocation) GetData() POSTShipments201ResponseDataRelationshipsInventoryStockLocationData { + if o == nil || IsNil(o.Data) { + var ret POSTShipments201ResponseDataRelationshipsInventoryStockLocationData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocation) GetDataOk() (*POSTShipments201ResponseDataRelationshipsInventoryStockLocationData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocation) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTShipments201ResponseDataRelationshipsInventoryStockLocationData and assigns it to the Data field. +func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocation) SetData(v POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) { + o.Data = &v +} + +func (o POSTShipments201ResponseDataRelationshipsInventoryStockLocation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTShipments201ResponseDataRelationshipsInventoryStockLocation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocation struct { + value *POSTShipments201ResponseDataRelationshipsInventoryStockLocation + isSet bool +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocation) Get() *POSTShipments201ResponseDataRelationshipsInventoryStockLocation { + return v.value +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocation) Set(val *POSTShipments201ResponseDataRelationshipsInventoryStockLocation) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocation) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocation(val *POSTShipments201ResponseDataRelationshipsInventoryStockLocation) *NullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocation { + return &NullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocation{value: val, isSet: true} +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_shipments_201_response_data_relationships_inventory_stock_location_data.go b/api/model_post_shipments_201_response_data_relationships_inventory_stock_location_data.go new file mode 100644 index 00000000..bf845d9e --- /dev/null +++ b/api/model_post_shipments_201_response_data_relationships_inventory_stock_location_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTShipments201ResponseDataRelationshipsInventoryStockLocationData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTShipments201ResponseDataRelationshipsInventoryStockLocationData{} + +// POSTShipments201ResponseDataRelationshipsInventoryStockLocationData struct for POSTShipments201ResponseDataRelationshipsInventoryStockLocationData +type POSTShipments201ResponseDataRelationshipsInventoryStockLocationData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocationData instantiates a new POSTShipments201ResponseDataRelationshipsInventoryStockLocationData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocationData() *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData { + this := POSTShipments201ResponseDataRelationshipsInventoryStockLocationData{} + return &this +} + +// NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocationDataWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsInventoryStockLocationData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTShipments201ResponseDataRelationshipsInventoryStockLocationDataWithDefaults() *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData { + this := POSTShipments201ResponseDataRelationshipsInventoryStockLocationData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocationData struct { + value *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData + isSet bool +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocationData) Get() *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData { + return v.value +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocationData) Set(val *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocationData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocationData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocationData(val *POSTShipments201ResponseDataRelationshipsInventoryStockLocationData) *NullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocationData { + return &NullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocationData{value: val, isSet: true} +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocationData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsInventoryStockLocationData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_shipments_201_response_data_relationships_shipping_category.go b/api/model_post_shipments_201_response_data_relationships_shipping_category.go new file mode 100644 index 00000000..a30ff01a --- /dev/null +++ b/api/model_post_shipments_201_response_data_relationships_shipping_category.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTShipments201ResponseDataRelationshipsShippingCategory type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTShipments201ResponseDataRelationshipsShippingCategory{} + +// POSTShipments201ResponseDataRelationshipsShippingCategory struct for POSTShipments201ResponseDataRelationshipsShippingCategory +type POSTShipments201ResponseDataRelationshipsShippingCategory struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTShipments201ResponseDataRelationshipsShippingCategoryData `json:"data,omitempty"` +} + +// NewPOSTShipments201ResponseDataRelationshipsShippingCategory instantiates a new POSTShipments201ResponseDataRelationshipsShippingCategory object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTShipments201ResponseDataRelationshipsShippingCategory() *POSTShipments201ResponseDataRelationshipsShippingCategory { + this := POSTShipments201ResponseDataRelationshipsShippingCategory{} + return &this +} + +// NewPOSTShipments201ResponseDataRelationshipsShippingCategoryWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsShippingCategory object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTShipments201ResponseDataRelationshipsShippingCategoryWithDefaults() *POSTShipments201ResponseDataRelationshipsShippingCategory { + this := POSTShipments201ResponseDataRelationshipsShippingCategory{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationshipsShippingCategory) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationshipsShippingCategory) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsShippingCategory) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTShipments201ResponseDataRelationshipsShippingCategory) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTShipments201ResponseDataRelationshipsShippingCategory) GetData() POSTShipments201ResponseDataRelationshipsShippingCategoryData { + if o == nil || IsNil(o.Data) { + var ret POSTShipments201ResponseDataRelationshipsShippingCategoryData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShipments201ResponseDataRelationshipsShippingCategory) GetDataOk() (*POSTShipments201ResponseDataRelationshipsShippingCategoryData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsShippingCategory) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTShipments201ResponseDataRelationshipsShippingCategoryData and assigns it to the Data field. +func (o *POSTShipments201ResponseDataRelationshipsShippingCategory) SetData(v POSTShipments201ResponseDataRelationshipsShippingCategoryData) { + o.Data = &v +} + +func (o POSTShipments201ResponseDataRelationshipsShippingCategory) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTShipments201ResponseDataRelationshipsShippingCategory) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTShipments201ResponseDataRelationshipsShippingCategory struct { + value *POSTShipments201ResponseDataRelationshipsShippingCategory + isSet bool +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsShippingCategory) Get() *POSTShipments201ResponseDataRelationshipsShippingCategory { + return v.value +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsShippingCategory) Set(val *POSTShipments201ResponseDataRelationshipsShippingCategory) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsShippingCategory) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsShippingCategory) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTShipments201ResponseDataRelationshipsShippingCategory(val *POSTShipments201ResponseDataRelationshipsShippingCategory) *NullablePOSTShipments201ResponseDataRelationshipsShippingCategory { + return &NullablePOSTShipments201ResponseDataRelationshipsShippingCategory{value: val, isSet: true} +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsShippingCategory) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsShippingCategory) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_shipments_201_response_data_relationships_shipping_category_data.go b/api/model_post_shipments_201_response_data_relationships_shipping_category_data.go new file mode 100644 index 00000000..f352498c --- /dev/null +++ b/api/model_post_shipments_201_response_data_relationships_shipping_category_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTShipments201ResponseDataRelationshipsShippingCategoryData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTShipments201ResponseDataRelationshipsShippingCategoryData{} + +// POSTShipments201ResponseDataRelationshipsShippingCategoryData struct for POSTShipments201ResponseDataRelationshipsShippingCategoryData +type POSTShipments201ResponseDataRelationshipsShippingCategoryData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTShipments201ResponseDataRelationshipsShippingCategoryData instantiates a new POSTShipments201ResponseDataRelationshipsShippingCategoryData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTShipments201ResponseDataRelationshipsShippingCategoryData() *POSTShipments201ResponseDataRelationshipsShippingCategoryData { + this := POSTShipments201ResponseDataRelationshipsShippingCategoryData{} + return &this +} + +// NewPOSTShipments201ResponseDataRelationshipsShippingCategoryDataWithDefaults instantiates a new POSTShipments201ResponseDataRelationshipsShippingCategoryData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTShipments201ResponseDataRelationshipsShippingCategoryDataWithDefaults() *POSTShipments201ResponseDataRelationshipsShippingCategoryData { + this := POSTShipments201ResponseDataRelationshipsShippingCategoryData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTShipments201ResponseDataRelationshipsShippingCategoryData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTShipments201ResponseDataRelationshipsShippingCategoryData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTShipments201ResponseDataRelationshipsShippingCategoryData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTShipments201ResponseDataRelationshipsShippingCategoryData struct { + value *POSTShipments201ResponseDataRelationshipsShippingCategoryData + isSet bool +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsShippingCategoryData) Get() *POSTShipments201ResponseDataRelationshipsShippingCategoryData { + return v.value +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsShippingCategoryData) Set(val *POSTShipments201ResponseDataRelationshipsShippingCategoryData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsShippingCategoryData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsShippingCategoryData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTShipments201ResponseDataRelationshipsShippingCategoryData(val *POSTShipments201ResponseDataRelationshipsShippingCategoryData) *NullablePOSTShipments201ResponseDataRelationshipsShippingCategoryData { + return &NullablePOSTShipments201ResponseDataRelationshipsShippingCategoryData{value: val, isSet: true} +} + +func (v NullablePOSTShipments201ResponseDataRelationshipsShippingCategoryData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTShipments201ResponseDataRelationshipsShippingCategoryData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_shipping_categories_201_response.go b/api/model_post_shipping_categories_201_response.go index 08753c6f..6b0e6e5e 100644 --- a/api/model_post_shipping_categories_201_response.go +++ b/api/model_post_shipping_categories_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_shipping_categories_201_response_data.go b/api/model_post_shipping_categories_201_response_data.go index 20f10e5d..4c4ac561 100644 --- a/api/model_post_shipping_categories_201_response_data.go +++ b/api/model_post_shipping_categories_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_shipping_categories_201_response_data_attributes.go b/api/model_post_shipping_categories_201_response_data_attributes.go index 19636427..51bb4f70 100644 --- a/api/model_post_shipping_categories_201_response_data_attributes.go +++ b/api/model_post_shipping_categories_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,9 +22,11 @@ var _ MappedNullable = &POSTShippingCategories201ResponseDataAttributes{} type POSTShippingCategories201ResponseDataAttributes struct { // The shipping category name. Name interface{} `json:"name"` + // A string that you can use to identify the shipping category (must be unique within the environment). + Code interface{} `json:"code,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -74,6 +76,39 @@ func (o *POSTShippingCategories201ResponseDataAttributes) SetName(v interface{}) o.Name = v } +// GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTShippingCategories201ResponseDataAttributes) GetCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTShippingCategories201ResponseDataAttributes) GetCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return &o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *POSTShippingCategories201ResponseDataAttributes) HasCode() bool { + if o != nil && IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given interface{} and assigns it to the Code field. +func (o *POSTShippingCategories201ResponseDataAttributes) SetCode(v interface{}) { + o.Code = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTShippingCategories201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -186,6 +221,9 @@ func (o POSTShippingCategories201ResponseDataAttributes) ToMap() (map[string]int if o.Name != nil { toSerialize["name"] = o.Name } + if o.Code != nil { + toSerialize["code"] = o.Code + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_shipping_categories_201_response_data_relationships.go b/api/model_post_shipping_categories_201_response_data_relationships.go index ee0e4781..60bb917a 100644 --- a/api/model_post_shipping_categories_201_response_data_relationships.go +++ b/api/model_post_shipping_categories_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,9 @@ var _ MappedNullable = &POSTShippingCategories201ResponseDataRelationships{} // POSTShippingCategories201ResponseDataRelationships struct for POSTShippingCategories201ResponseDataRelationships type POSTShippingCategories201ResponseDataRelationships struct { - Skus *POSTBundles201ResponseDataRelationshipsSkus `json:"skus,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Skus *POSTBundles201ResponseDataRelationshipsSkus `json:"skus,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTShippingCategories201ResponseDataRelationships instantiates a new POSTShippingCategories201ResponseDataRelationships object @@ -74,9 +75,9 @@ func (o *POSTShippingCategories201ResponseDataRelationships) SetSkus(v POSTBundl } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTShippingCategories201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTShippingCategories201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -84,7 +85,7 @@ func (o *POSTShippingCategories201ResponseDataRelationships) GetAttachments() PO // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTShippingCategories201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTShippingCategories201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -100,11 +101,43 @@ func (o *POSTShippingCategories201ResponseDataRelationships) HasAttachments() bo return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTShippingCategories201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTShippingCategories201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTShippingCategories201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShippingCategories201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTShippingCategories201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTShippingCategories201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTShippingCategories201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o POSTShippingCategories201ResponseDataRelationships) ToMap() (map[string] if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_shipping_methods_201_response.go b/api/model_post_shipping_methods_201_response.go index 0dd3462e..cc8c6341 100644 --- a/api/model_post_shipping_methods_201_response.go +++ b/api/model_post_shipping_methods_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_shipping_methods_201_response_data.go b/api/model_post_shipping_methods_201_response_data.go index 9c330bc5..dce02272 100644 --- a/api/model_post_shipping_methods_201_response_data.go +++ b/api/model_post_shipping_methods_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_shipping_methods_201_response_data_attributes.go b/api/model_post_shipping_methods_201_response_data_attributes.go index 01cdac7e..adf73d2c 100644 --- a/api/model_post_shipping_methods_201_response_data_attributes.go +++ b/api/model_post_shipping_methods_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,25 +20,33 @@ var _ MappedNullable = &POSTShippingMethods201ResponseDataAttributes{} // POSTShippingMethods201ResponseDataAttributes struct for POSTShippingMethods201ResponseDataAttributes type POSTShippingMethods201ResponseDataAttributes struct { - // The shipping method's name + // The shipping method's name. Name interface{} `json:"name"` - // The shipping method's scheme, one of 'flat' or 'weight_tiered'. + // The shipping method's scheme. One of 'flat', 'weight_tiered', or 'external'. Scheme interface{} `json:"scheme,omitempty"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` + // The URL used to overwrite prices by an external source. + ExternalPricesUrl interface{} `json:"external_prices_url,omitempty"` // The price of this shipping method, in cents. PriceAmountCents interface{} `json:"price_amount_cents"` // Apply free shipping if the order amount is over this value, in cents. FreeOverAmountCents interface{} `json:"free_over_amount_cents,omitempty"` + // Send this attribute if you want to compare the free over amount with order's subtotal (excluding discounts, if any). + UseSubtotal interface{} `json:"use_subtotal,omitempty"` // The minimum weight for which this shipping method is available. MinWeight interface{} `json:"min_weight,omitempty"` // The maximum weight for which this shipping method is available. MaxWeight interface{} `json:"max_weight,omitempty"` - // Can be one of 'gr', 'lb', or 'oz' + // The unit of weight. One of 'gr', 'oz', or 'lb'. UnitOfWeight interface{} `json:"unit_of_weight,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -155,6 +163,39 @@ func (o *POSTShippingMethods201ResponseDataAttributes) SetCurrencyCode(v interfa o.CurrencyCode = v } +// GetExternalPricesUrl returns the ExternalPricesUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTShippingMethods201ResponseDataAttributes) GetExternalPricesUrl() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ExternalPricesUrl +} + +// GetExternalPricesUrlOk returns a tuple with the ExternalPricesUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTShippingMethods201ResponseDataAttributes) GetExternalPricesUrlOk() (*interface{}, bool) { + if o == nil || IsNil(o.ExternalPricesUrl) { + return nil, false + } + return &o.ExternalPricesUrl, true +} + +// HasExternalPricesUrl returns a boolean if a field has been set. +func (o *POSTShippingMethods201ResponseDataAttributes) HasExternalPricesUrl() bool { + if o != nil && IsNil(o.ExternalPricesUrl) { + return true + } + + return false +} + +// SetExternalPricesUrl gets a reference to the given interface{} and assigns it to the ExternalPricesUrl field. +func (o *POSTShippingMethods201ResponseDataAttributes) SetExternalPricesUrl(v interface{}) { + o.ExternalPricesUrl = v +} + // GetPriceAmountCents returns the PriceAmountCents field value // If the value is explicit nil, the zero value for interface{} will be returned func (o *POSTShippingMethods201ResponseDataAttributes) GetPriceAmountCents() interface{} { @@ -214,6 +255,39 @@ func (o *POSTShippingMethods201ResponseDataAttributes) SetFreeOverAmountCents(v o.FreeOverAmountCents = v } +// GetUseSubtotal returns the UseSubtotal field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTShippingMethods201ResponseDataAttributes) GetUseSubtotal() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.UseSubtotal +} + +// GetUseSubtotalOk returns a tuple with the UseSubtotal field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTShippingMethods201ResponseDataAttributes) GetUseSubtotalOk() (*interface{}, bool) { + if o == nil || IsNil(o.UseSubtotal) { + return nil, false + } + return &o.UseSubtotal, true +} + +// HasUseSubtotal returns a boolean if a field has been set. +func (o *POSTShippingMethods201ResponseDataAttributes) HasUseSubtotal() bool { + if o != nil && IsNil(o.UseSubtotal) { + return true + } + + return false +} + +// SetUseSubtotal gets a reference to the given interface{} and assigns it to the UseSubtotal field. +func (o *POSTShippingMethods201ResponseDataAttributes) SetUseSubtotal(v interface{}) { + o.UseSubtotal = v +} + // GetMinWeight returns the MinWeight field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTShippingMethods201ResponseDataAttributes) GetMinWeight() interface{} { if o == nil { @@ -313,6 +387,72 @@ func (o *POSTShippingMethods201ResponseDataAttributes) SetUnitOfWeight(v interfa o.UnitOfWeight = v } +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTShippingMethods201ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTShippingMethods201ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *POSTShippingMethods201ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *POSTShippingMethods201ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTShippingMethods201ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTShippingMethods201ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *POSTShippingMethods201ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *POSTShippingMethods201ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTShippingMethods201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -431,12 +571,18 @@ func (o POSTShippingMethods201ResponseDataAttributes) ToMap() (map[string]interf if o.CurrencyCode != nil { toSerialize["currency_code"] = o.CurrencyCode } + if o.ExternalPricesUrl != nil { + toSerialize["external_prices_url"] = o.ExternalPricesUrl + } if o.PriceAmountCents != nil { toSerialize["price_amount_cents"] = o.PriceAmountCents } if o.FreeOverAmountCents != nil { toSerialize["free_over_amount_cents"] = o.FreeOverAmountCents } + if o.UseSubtotal != nil { + toSerialize["use_subtotal"] = o.UseSubtotal + } if o.MinWeight != nil { toSerialize["min_weight"] = o.MinWeight } @@ -446,6 +592,12 @@ func (o POSTShippingMethods201ResponseDataAttributes) ToMap() (map[string]interf if o.UnitOfWeight != nil { toSerialize["unit_of_weight"] = o.UnitOfWeight } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_shipping_methods_201_response_data_relationships.go b/api/model_post_shipping_methods_201_response_data_relationships.go index 41879cfc..c75f17b8 100644 --- a/api/model_post_shipping_methods_201_response_data_relationships.go +++ b/api/model_post_shipping_methods_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,12 +22,13 @@ var _ MappedNullable = &POSTShippingMethods201ResponseDataRelationships{} type POSTShippingMethods201ResponseDataRelationships struct { Market *POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket `json:"market,omitempty"` ShippingZone *POSTShippingMethods201ResponseDataRelationshipsShippingZone `json:"shipping_zone,omitempty"` - ShippingCategory *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory `json:"shipping_category,omitempty"` + ShippingCategory *POSTShipments201ResponseDataRelationshipsShippingCategory `json:"shipping_category,omitempty"` StockLocation *POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation `json:"stock_location,omitempty"` DeliveryLeadTimeForShipment *POSTShippingMethods201ResponseDataRelationshipsDeliveryLeadTimeForShipment `json:"delivery_lead_time_for_shipment,omitempty"` ShippingMethodTiers *POSTShippingMethods201ResponseDataRelationshipsShippingMethodTiers `json:"shipping_method_tiers,omitempty"` ShippingWeightTiers *POSTShippingMethods201ResponseDataRelationshipsShippingWeightTiers `json:"shipping_weight_tiers,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTShippingMethods201ResponseDataRelationships instantiates a new POSTShippingMethods201ResponseDataRelationships object @@ -112,9 +113,9 @@ func (o *POSTShippingMethods201ResponseDataRelationships) SetShippingZone(v POST } // GetShippingCategory returns the ShippingCategory field value if set, zero value otherwise. -func (o *POSTShippingMethods201ResponseDataRelationships) GetShippingCategory() GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory { +func (o *POSTShippingMethods201ResponseDataRelationships) GetShippingCategory() POSTShipments201ResponseDataRelationshipsShippingCategory { if o == nil || IsNil(o.ShippingCategory) { - var ret GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory + var ret POSTShipments201ResponseDataRelationshipsShippingCategory return ret } return *o.ShippingCategory @@ -122,7 +123,7 @@ func (o *POSTShippingMethods201ResponseDataRelationships) GetShippingCategory() // GetShippingCategoryOk returns a tuple with the ShippingCategory field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTShippingMethods201ResponseDataRelationships) GetShippingCategoryOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory, bool) { +func (o *POSTShippingMethods201ResponseDataRelationships) GetShippingCategoryOk() (*POSTShipments201ResponseDataRelationshipsShippingCategory, bool) { if o == nil || IsNil(o.ShippingCategory) { return nil, false } @@ -138,8 +139,8 @@ func (o *POSTShippingMethods201ResponseDataRelationships) HasShippingCategory() return false } -// SetShippingCategory gets a reference to the given GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory and assigns it to the ShippingCategory field. -func (o *POSTShippingMethods201ResponseDataRelationships) SetShippingCategory(v GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) { +// SetShippingCategory gets a reference to the given POSTShipments201ResponseDataRelationshipsShippingCategory and assigns it to the ShippingCategory field. +func (o *POSTShippingMethods201ResponseDataRelationships) SetShippingCategory(v POSTShipments201ResponseDataRelationshipsShippingCategory) { o.ShippingCategory = &v } @@ -272,9 +273,9 @@ func (o *POSTShippingMethods201ResponseDataRelationships) SetShippingWeightTiers } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTShippingMethods201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTShippingMethods201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -282,7 +283,7 @@ func (o *POSTShippingMethods201ResponseDataRelationships) GetAttachments() POSTA // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTShippingMethods201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTShippingMethods201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -298,11 +299,43 @@ func (o *POSTShippingMethods201ResponseDataRelationships) HasAttachments() bool return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTShippingMethods201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTShippingMethods201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTShippingMethods201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShippingMethods201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTShippingMethods201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTShippingMethods201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTShippingMethods201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -337,6 +370,9 @@ func (o POSTShippingMethods201ResponseDataRelationships) ToMap() (map[string]int if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_shipping_methods_201_response_data_relationships_delivery_lead_time_for_shipment.go b/api/model_post_shipping_methods_201_response_data_relationships_delivery_lead_time_for_shipment.go index db025cd2..f790a437 100644 --- a/api/model_post_shipping_methods_201_response_data_relationships_delivery_lead_time_for_shipment.go +++ b/api/model_post_shipping_methods_201_response_data_relationships_delivery_lead_time_for_shipment.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_shipping_methods_201_response_data_relationships_delivery_lead_time_for_shipment_data.go b/api/model_post_shipping_methods_201_response_data_relationships_delivery_lead_time_for_shipment_data.go index 6cd2893b..5b818a9b 100644 --- a/api/model_post_shipping_methods_201_response_data_relationships_delivery_lead_time_for_shipment_data.go +++ b/api/model_post_shipping_methods_201_response_data_relationships_delivery_lead_time_for_shipment_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_shipping_methods_201_response_data_relationships_shipping_method_tiers.go b/api/model_post_shipping_methods_201_response_data_relationships_shipping_method_tiers.go index 6b90f7ed..79537eef 100644 --- a/api/model_post_shipping_methods_201_response_data_relationships_shipping_method_tiers.go +++ b/api/model_post_shipping_methods_201_response_data_relationships_shipping_method_tiers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_shipping_methods_201_response_data_relationships_shipping_method_tiers_data.go b/api/model_post_shipping_methods_201_response_data_relationships_shipping_method_tiers_data.go index f7ed5ebf..5f555323 100644 --- a/api/model_post_shipping_methods_201_response_data_relationships_shipping_method_tiers_data.go +++ b/api/model_post_shipping_methods_201_response_data_relationships_shipping_method_tiers_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_shipping_methods_201_response_data_relationships_shipping_weight_tiers.go b/api/model_post_shipping_methods_201_response_data_relationships_shipping_weight_tiers.go index 7c778292..2582434a 100644 --- a/api/model_post_shipping_methods_201_response_data_relationships_shipping_weight_tiers.go +++ b/api/model_post_shipping_methods_201_response_data_relationships_shipping_weight_tiers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_shipping_methods_201_response_data_relationships_shipping_weight_tiers_data.go b/api/model_post_shipping_methods_201_response_data_relationships_shipping_weight_tiers_data.go index 05fba1ac..1cd465eb 100644 --- a/api/model_post_shipping_methods_201_response_data_relationships_shipping_weight_tiers_data.go +++ b/api/model_post_shipping_methods_201_response_data_relationships_shipping_weight_tiers_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_shipping_methods_201_response_data_relationships_shipping_zone.go b/api/model_post_shipping_methods_201_response_data_relationships_shipping_zone.go index 5e16478f..d7c774ce 100644 --- a/api/model_post_shipping_methods_201_response_data_relationships_shipping_zone.go +++ b/api/model_post_shipping_methods_201_response_data_relationships_shipping_zone.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_shipping_methods_201_response_data_relationships_shipping_zone_data.go b/api/model_post_shipping_methods_201_response_data_relationships_shipping_zone_data.go index 605b96af..06dc7943 100644 --- a/api/model_post_shipping_methods_201_response_data_relationships_shipping_zone_data.go +++ b/api/model_post_shipping_methods_201_response_data_relationships_shipping_zone_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_shipping_weight_tiers_201_response.go b/api/model_post_shipping_weight_tiers_201_response.go index f612c21b..5acc0e8a 100644 --- a/api/model_post_shipping_weight_tiers_201_response.go +++ b/api/model_post_shipping_weight_tiers_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_shipping_weight_tiers_201_response_data.go b/api/model_post_shipping_weight_tiers_201_response_data.go index 5420ac19..3708ff83 100644 --- a/api/model_post_shipping_weight_tiers_201_response_data.go +++ b/api/model_post_shipping_weight_tiers_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_shipping_weight_tiers_201_response_data_attributes.go b/api/model_post_shipping_weight_tiers_201_response_data_attributes.go index a7a4ca11..49868b48 100644 --- a/api/model_post_shipping_weight_tiers_201_response_data_attributes.go +++ b/api/model_post_shipping_weight_tiers_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &POSTShippingWeightTiers201ResponseDataAttributes{} // POSTShippingWeightTiers201ResponseDataAttributes struct for POSTShippingWeightTiers201ResponseDataAttributes type POSTShippingWeightTiers201ResponseDataAttributes struct { - // The shipping method tier's name + // The shipping method tier's name. Name interface{} `json:"name"` // The tier upper limit. When 'null' it means infinity (useful to have an always matching tier). UpTo interface{} `json:"up_to,omitempty"` @@ -28,7 +28,7 @@ type POSTShippingWeightTiers201ResponseDataAttributes struct { PriceAmountCents interface{} `json:"price_amount_cents"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_shipping_zones_201_response.go b/api/model_post_shipping_zones_201_response.go index 1e741bbf..40641095 100644 --- a/api/model_post_shipping_zones_201_response.go +++ b/api/model_post_shipping_zones_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_shipping_zones_201_response_data.go b/api/model_post_shipping_zones_201_response_data.go index 65582c50..5a8abbe7 100644 --- a/api/model_post_shipping_zones_201_response_data.go +++ b/api/model_post_shipping_zones_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_shipping_zones_201_response_data_attributes.go b/api/model_post_shipping_zones_201_response_data_attributes.go index a2dc99e5..c3aa8568 100644 --- a/api/model_post_shipping_zones_201_response_data_attributes.go +++ b/api/model_post_shipping_zones_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -36,7 +36,7 @@ type POSTShippingZones201ResponseDataAttributes struct { NotZipCodeRegex interface{} `json:"not_zip_code_regex,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_shipping_zones_201_response_data_relationships.go b/api/model_post_shipping_zones_201_response_data_relationships.go index 9f9e5cf3..7bc8dcf7 100644 --- a/api/model_post_shipping_zones_201_response_data_relationships.go +++ b/api/model_post_shipping_zones_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,8 @@ var _ MappedNullable = &POSTShippingZones201ResponseDataRelationships{} // POSTShippingZones201ResponseDataRelationships struct for POSTShippingZones201ResponseDataRelationships type POSTShippingZones201ResponseDataRelationships struct { - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTShippingZones201ResponseDataRelationships instantiates a new POSTShippingZones201ResponseDataRelationships object @@ -41,9 +42,9 @@ func NewPOSTShippingZones201ResponseDataRelationshipsWithDefaults() *POSTShippin } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTShippingZones201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTShippingZones201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -51,7 +52,7 @@ func (o *POSTShippingZones201ResponseDataRelationships) GetAttachments() POSTAva // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTShippingZones201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTShippingZones201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -67,11 +68,43 @@ func (o *POSTShippingZones201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTShippingZones201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTShippingZones201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTShippingZones201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTShippingZones201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTShippingZones201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTShippingZones201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTShippingZones201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +118,9 @@ func (o POSTShippingZones201ResponseDataRelationships) ToMap() (map[string]inter if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_sku_list_items_201_response.go b/api/model_post_sku_list_items_201_response.go index 62c61a18..0b4f7942 100644 --- a/api/model_post_sku_list_items_201_response.go +++ b/api/model_post_sku_list_items_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_sku_list_items_201_response_data.go b/api/model_post_sku_list_items_201_response_data.go index b176ab99..3e685620 100644 --- a/api/model_post_sku_list_items_201_response_data.go +++ b/api/model_post_sku_list_items_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_sku_list_items_201_response_data_attributes.go b/api/model_post_sku_list_items_201_response_data_attributes.go index 6223ab66..f567f500 100644 --- a/api/model_post_sku_list_items_201_response_data_attributes.go +++ b/api/model_post_sku_list_items_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,7 +28,7 @@ type POSTSkuListItems201ResponseDataAttributes struct { Quantity interface{} `json:"quantity,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_sku_list_items_201_response_data_relationships.go b/api/model_post_sku_list_items_201_response_data_relationships.go index ef109d40..d802fdd3 100644 --- a/api/model_post_sku_list_items_201_response_data_relationships.go +++ b/api/model_post_sku_list_items_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,9 @@ var _ MappedNullable = &POSTSkuListItems201ResponseDataRelationships{} // POSTSkuListItems201ResponseDataRelationships struct for POSTSkuListItems201ResponseDataRelationships type POSTSkuListItems201ResponseDataRelationships struct { - SkuList *POSTBundles201ResponseDataRelationshipsSkuList `json:"sku_list,omitempty"` - Sku *POSTInStockSubscriptions201ResponseDataRelationshipsSku `json:"sku,omitempty"` + SkuList *POSTBundles201ResponseDataRelationshipsSkuList `json:"sku_list,omitempty"` + Sku *POSTInStockSubscriptions201ResponseDataRelationshipsSku `json:"sku,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTSkuListItems201ResponseDataRelationships instantiates a new POSTSkuListItems201ResponseDataRelationships object @@ -105,6 +106,38 @@ func (o *POSTSkuListItems201ResponseDataRelationships) SetSku(v POSTInStockSubsc o.Sku = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTSkuListItems201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSkuListItems201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTSkuListItems201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTSkuListItems201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTSkuListItems201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o POSTSkuListItems201ResponseDataRelationships) ToMap() (map[string]interf if !IsNil(o.Sku) { toSerialize["sku"] = o.Sku } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_sku_list_promotion_rules_201_response.go b/api/model_post_sku_list_promotion_rules_201_response.go index 5f7f4a76..69c69843 100644 --- a/api/model_post_sku_list_promotion_rules_201_response.go +++ b/api/model_post_sku_list_promotion_rules_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_sku_list_promotion_rules_201_response_data.go b/api/model_post_sku_list_promotion_rules_201_response_data.go index 54bac6c0..78edfd64 100644 --- a/api/model_post_sku_list_promotion_rules_201_response_data.go +++ b/api/model_post_sku_list_promotion_rules_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_sku_list_promotion_rules_201_response_data_attributes.go b/api/model_post_sku_list_promotion_rules_201_response_data_attributes.go index 0d2ae04e..004bcfbf 100644 --- a/api/model_post_sku_list_promotion_rules_201_response_data_attributes.go +++ b/api/model_post_sku_list_promotion_rules_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,7 +22,7 @@ var _ MappedNullable = &POSTSkuListPromotionRules201ResponseDataAttributes{} type POSTSkuListPromotionRules201ResponseDataAttributes struct { // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_sku_list_promotion_rules_201_response_data_relationships.go b/api/model_post_sku_list_promotion_rules_201_response_data_relationships.go index 97dcb910..9d4e7701 100644 --- a/api/model_post_sku_list_promotion_rules_201_response_data_relationships.go +++ b/api/model_post_sku_list_promotion_rules_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &POSTSkuListPromotionRules201ResponseDataRelationships{} // POSTSkuListPromotionRules201ResponseDataRelationships struct for POSTSkuListPromotionRules201ResponseDataRelationships type POSTSkuListPromotionRules201ResponseDataRelationships struct { Promotion *POSTCouponCodesPromotionRules201ResponseDataRelationshipsPromotion `json:"promotion,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` SkuList *POSTBundles201ResponseDataRelationshipsSkuList `json:"sku_list,omitempty"` Skus *POSTBundles201ResponseDataRelationshipsSkus `json:"skus,omitempty"` } @@ -74,6 +75,38 @@ func (o *POSTSkuListPromotionRules201ResponseDataRelationships) SetPromotion(v P o.Promotion = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTSkuListPromotionRules201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSkuListPromotionRules201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTSkuListPromotionRules201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTSkuListPromotionRules201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + // GetSkuList returns the SkuList field value if set, zero value otherwise. func (o *POSTSkuListPromotionRules201ResponseDataRelationships) GetSkuList() POSTBundles201ResponseDataRelationshipsSkuList { if o == nil || IsNil(o.SkuList) { @@ -151,6 +184,9 @@ func (o POSTSkuListPromotionRules201ResponseDataRelationships) ToMap() (map[stri if !IsNil(o.Promotion) { toSerialize["promotion"] = o.Promotion } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.SkuList) { toSerialize["sku_list"] = o.SkuList } diff --git a/api/model_post_sku_lists_201_response.go b/api/model_post_sku_lists_201_response.go index 184df0a5..02714f77 100644 --- a/api/model_post_sku_lists_201_response.go +++ b/api/model_post_sku_lists_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_sku_lists_201_response_data.go b/api/model_post_sku_lists_201_response_data.go index e37f3a39..dfb6a126 100644 --- a/api/model_post_sku_lists_201_response_data.go +++ b/api/model_post_sku_lists_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_sku_lists_201_response_data_attributes.go b/api/model_post_sku_lists_201_response_data_attributes.go index 0340270c..f4101347 100644 --- a/api/model_post_sku_lists_201_response_data_attributes.go +++ b/api/model_post_sku_lists_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -32,7 +32,7 @@ type POSTSkuLists201ResponseDataAttributes struct { SkuCodeRegex interface{} `json:"sku_code_regex,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_sku_lists_201_response_data_relationships.go b/api/model_post_sku_lists_201_response_data_relationships.go index 9c4c991d..4b7a72c0 100644 --- a/api/model_post_sku_lists_201_response_data_relationships.go +++ b/api/model_post_sku_lists_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,11 +20,13 @@ var _ MappedNullable = &POSTSkuLists201ResponseDataRelationships{} // POSTSkuLists201ResponseDataRelationships struct for POSTSkuLists201ResponseDataRelationships type POSTSkuLists201ResponseDataRelationships struct { - Customer *POSTCouponRecipients201ResponseDataRelationshipsCustomer `json:"customer,omitempty"` - Skus *POSTBundles201ResponseDataRelationshipsSkus `json:"skus,omitempty"` - SkuListItems *POSTSkuLists201ResponseDataRelationshipsSkuListItems `json:"sku_list_items,omitempty"` - Bundles *POSTSkuLists201ResponseDataRelationshipsBundles `json:"bundles,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Customer *POSTCouponRecipients201ResponseDataRelationshipsCustomer `json:"customer,omitempty"` + Skus *POSTBundles201ResponseDataRelationshipsSkus `json:"skus,omitempty"` + SkuListItems *POSTSkuLists201ResponseDataRelationshipsSkuListItems `json:"sku_list_items,omitempty"` + Bundles *POSTSkuLists201ResponseDataRelationshipsBundles `json:"bundles,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Links *POSTOrders201ResponseDataRelationshipsLinks `json:"links,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTSkuLists201ResponseDataRelationships instantiates a new POSTSkuLists201ResponseDataRelationships object @@ -173,9 +175,9 @@ func (o *POSTSkuLists201ResponseDataRelationships) SetBundles(v POSTSkuLists201R } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTSkuLists201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTSkuLists201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -183,7 +185,7 @@ func (o *POSTSkuLists201ResponseDataRelationships) GetAttachments() POSTAvalaraA // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTSkuLists201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTSkuLists201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -199,11 +201,75 @@ func (o *POSTSkuLists201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTSkuLists201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTSkuLists201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTSkuLists201ResponseDataRelationships) GetLinks() POSTOrders201ResponseDataRelationshipsLinks { + if o == nil || IsNil(o.Links) { + var ret POSTOrders201ResponseDataRelationshipsLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSkuLists201ResponseDataRelationships) GetLinksOk() (*POSTOrders201ResponseDataRelationshipsLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTSkuLists201ResponseDataRelationships) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTOrders201ResponseDataRelationshipsLinks and assigns it to the Links field. +func (o *POSTSkuLists201ResponseDataRelationships) SetLinks(v POSTOrders201ResponseDataRelationshipsLinks) { + o.Links = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTSkuLists201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSkuLists201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTSkuLists201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTSkuLists201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTSkuLists201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -229,6 +295,12 @@ func (o POSTSkuLists201ResponseDataRelationships) ToMap() (map[string]interface{ if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_sku_lists_201_response_data_relationships_bundles.go b/api/model_post_sku_lists_201_response_data_relationships_bundles.go index c38b2cb5..c004b3ee 100644 --- a/api/model_post_sku_lists_201_response_data_relationships_bundles.go +++ b/api/model_post_sku_lists_201_response_data_relationships_bundles.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_sku_lists_201_response_data_relationships_bundles_data.go b/api/model_post_sku_lists_201_response_data_relationships_bundles_data.go index b91bf7a5..a6953348 100644 --- a/api/model_post_sku_lists_201_response_data_relationships_bundles_data.go +++ b/api/model_post_sku_lists_201_response_data_relationships_bundles_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_sku_lists_201_response_data_relationships_sku_list_items.go b/api/model_post_sku_lists_201_response_data_relationships_sku_list_items.go index 5ef52d84..c7447bfc 100644 --- a/api/model_post_sku_lists_201_response_data_relationships_sku_list_items.go +++ b/api/model_post_sku_lists_201_response_data_relationships_sku_list_items.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_sku_lists_201_response_data_relationships_sku_list_items_data.go b/api/model_post_sku_lists_201_response_data_relationships_sku_list_items_data.go index dc84fa1e..e33da708 100644 --- a/api/model_post_sku_lists_201_response_data_relationships_sku_list_items_data.go +++ b/api/model_post_sku_lists_201_response_data_relationships_sku_list_items_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_sku_options_201_response.go b/api/model_post_sku_options_201_response.go index 6b50e64b..8110196f 100644 --- a/api/model_post_sku_options_201_response.go +++ b/api/model_post_sku_options_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_sku_options_201_response_data.go b/api/model_post_sku_options_201_response_data.go index 8ca4c2b1..a7249a62 100644 --- a/api/model_post_sku_options_201_response_data.go +++ b/api/model_post_sku_options_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type POSTSkuOptions201ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *POSTSkuOptions201ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTBillingInfoValidationRules201ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTSkuOptions201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTSkuOptions201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPOSTSkuOptions201ResponseData instantiates a new POSTSkuOptions201ResponseData object @@ -177,9 +177,9 @@ func (o *POSTSkuOptions201ResponseData) SetAttributes(v POSTSkuOptions201Respons } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *POSTSkuOptions201ResponseData) GetRelationships() POSTBillingInfoValidationRules201ResponseDataRelationships { +func (o *POSTSkuOptions201ResponseData) GetRelationships() POSTSkuOptions201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTBillingInfoValidationRules201ResponseDataRelationships + var ret POSTSkuOptions201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *POSTSkuOptions201ResponseData) GetRelationships() POSTBillingInfoValida // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTSkuOptions201ResponseData) GetRelationshipsOk() (*POSTBillingInfoValidationRules201ResponseDataRelationships, bool) { +func (o *POSTSkuOptions201ResponseData) GetRelationshipsOk() (*POSTSkuOptions201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *POSTSkuOptions201ResponseData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given POSTBillingInfoValidationRules201ResponseDataRelationships and assigns it to the Relationships field. -func (o *POSTSkuOptions201ResponseData) SetRelationships(v POSTBillingInfoValidationRules201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTSkuOptions201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTSkuOptions201ResponseData) SetRelationships(v POSTSkuOptions201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_post_sku_options_201_response_data_attributes.go b/api/model_post_sku_options_201_response_data_attributes.go index b0a30325..19831186 100644 --- a/api/model_post_sku_options_201_response_data_attributes.go +++ b/api/model_post_sku_options_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &POSTSkuOptions201ResponseDataAttributes{} // POSTSkuOptions201ResponseDataAttributes struct for POSTSkuOptions201ResponseDataAttributes type POSTSkuOptions201ResponseDataAttributes struct { - // The SKU option's internal name + // The SKU option's internal name. Name interface{} `json:"name"` // The international 3-letter currency code as defined by the ISO 4217 standard. CurrencyCode interface{} `json:"currency_code,omitempty"` @@ -34,7 +34,7 @@ type POSTSkuOptions201ResponseDataAttributes struct { SkuCodeRegex interface{} `json:"sku_code_regex,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_sku_options_201_response_data_relationships.go b/api/model_post_sku_options_201_response_data_relationships.go new file mode 100644 index 00000000..9fa30389 --- /dev/null +++ b/api/model_post_sku_options_201_response_data_relationships.go @@ -0,0 +1,269 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTSkuOptions201ResponseDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTSkuOptions201ResponseDataRelationships{} + +// POSTSkuOptions201ResponseDataRelationships struct for POSTSkuOptions201ResponseDataRelationships +type POSTSkuOptions201ResponseDataRelationships struct { + Market *POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket `json:"market,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Tags *POSTAddresses201ResponseDataRelationshipsTags `json:"tags,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewPOSTSkuOptions201ResponseDataRelationships instantiates a new POSTSkuOptions201ResponseDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTSkuOptions201ResponseDataRelationships() *POSTSkuOptions201ResponseDataRelationships { + this := POSTSkuOptions201ResponseDataRelationships{} + return &this +} + +// NewPOSTSkuOptions201ResponseDataRelationshipsWithDefaults instantiates a new POSTSkuOptions201ResponseDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTSkuOptions201ResponseDataRelationshipsWithDefaults() *POSTSkuOptions201ResponseDataRelationships { + this := POSTSkuOptions201ResponseDataRelationships{} + return &this +} + +// GetMarket returns the Market field value if set, zero value otherwise. +func (o *POSTSkuOptions201ResponseDataRelationships) GetMarket() POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket { + if o == nil || IsNil(o.Market) { + var ret POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket + return ret + } + return *o.Market +} + +// GetMarketOk returns a tuple with the Market field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSkuOptions201ResponseDataRelationships) GetMarketOk() (*POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket, bool) { + if o == nil || IsNil(o.Market) { + return nil, false + } + return o.Market, true +} + +// HasMarket returns a boolean if a field has been set. +func (o *POSTSkuOptions201ResponseDataRelationships) HasMarket() bool { + if o != nil && !IsNil(o.Market) { + return true + } + + return false +} + +// SetMarket gets a reference to the given POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket and assigns it to the Market field. +func (o *POSTSkuOptions201ResponseDataRelationships) SetMarket(v POSTBillingInfoValidationRules201ResponseDataRelationshipsMarket) { + o.Market = &v +} + +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *POSTSkuOptions201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSkuOptions201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *POSTSkuOptions201ResponseDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTSkuOptions201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { + o.Attachments = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *POSTSkuOptions201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSkuOptions201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *POSTSkuOptions201ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTSkuOptions201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *POSTSkuOptions201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret POSTAddresses201ResponseDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSkuOptions201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *POSTSkuOptions201ResponseDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given POSTAddresses201ResponseDataRelationshipsTags and assigns it to the Tags field. +func (o *POSTSkuOptions201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTSkuOptions201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSkuOptions201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTSkuOptions201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTSkuOptions201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + +func (o POSTSkuOptions201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTSkuOptions201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Market) { + toSerialize["market"] = o.Market + } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullablePOSTSkuOptions201ResponseDataRelationships struct { + value *POSTSkuOptions201ResponseDataRelationships + isSet bool +} + +func (v NullablePOSTSkuOptions201ResponseDataRelationships) Get() *POSTSkuOptions201ResponseDataRelationships { + return v.value +} + +func (v *NullablePOSTSkuOptions201ResponseDataRelationships) Set(val *POSTSkuOptions201ResponseDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTSkuOptions201ResponseDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTSkuOptions201ResponseDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTSkuOptions201ResponseDataRelationships(val *POSTSkuOptions201ResponseDataRelationships) *NullablePOSTSkuOptions201ResponseDataRelationships { + return &NullablePOSTSkuOptions201ResponseDataRelationships{value: val, isSet: true} +} + +func (v NullablePOSTSkuOptions201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTSkuOptions201ResponseDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_skus_201_response.go b/api/model_post_skus_201_response.go index 0cf0289d..7620a8a2 100644 --- a/api/model_post_skus_201_response.go +++ b/api/model_post_skus_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_skus_201_response_data.go b/api/model_post_skus_201_response_data.go index 29b3eb20..6beba52b 100644 --- a/api/model_post_skus_201_response_data.go +++ b/api/model_post_skus_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_skus_201_response_data_attributes.go b/api/model_post_skus_201_response_data_attributes.go index a82d4283..1069ee03 100644 --- a/api/model_post_skus_201_response_data_attributes.go +++ b/api/model_post_skus_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -32,7 +32,7 @@ type POSTSkus201ResponseDataAttributes struct { PiecesPerPack interface{} `json:"pieces_per_pack,omitempty"` // The weight of the SKU. If present, it will be used to calculate the shipping rates. Weight interface{} `json:"weight,omitempty"` - // Can be one of 'gr', 'lb', or 'oz' + // The unit of weight. One of 'gr', 'oz', or 'lb'. UnitOfWeight interface{} `json:"unit_of_weight,omitempty"` // The Harmonized System Code used by customs to identify the products shipped across international borders. HsTariffNumber interface{} `json:"hs_tariff_number,omitempty"` @@ -42,7 +42,7 @@ type POSTSkus201ResponseDataAttributes struct { DoNotTrack interface{} `json:"do_not_track,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_skus_201_response_data_relationships.go b/api/model_post_skus_201_response_data_relationships.go index c5c84c60..232bd4eb 100644 --- a/api/model_post_skus_201_response_data_relationships.go +++ b/api/model_post_skus_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,12 +20,22 @@ var _ MappedNullable = &POSTSkus201ResponseDataRelationships{} // POSTSkus201ResponseDataRelationships struct for POSTSkus201ResponseDataRelationships type POSTSkus201ResponseDataRelationships struct { - ShippingCategory *GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory `json:"shipping_category,omitempty"` - Prices *POSTPriceLists201ResponseDataRelationshipsPrices `json:"prices,omitempty"` - StockItems *POSTSkus201ResponseDataRelationshipsStockItems `json:"stock_items,omitempty"` - DeliveryLeadTimes *POSTSkus201ResponseDataRelationshipsDeliveryLeadTimes `json:"delivery_lead_times,omitempty"` - SkuOptions *POSTSkus201ResponseDataRelationshipsSkuOptions `json:"sku_options,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + ShippingCategory *POSTShipments201ResponseDataRelationshipsShippingCategory `json:"shipping_category,omitempty"` + Prices *POSTPriceLists201ResponseDataRelationshipsPrices `json:"prices,omitempty"` + StockItems *POSTSkus201ResponseDataRelationshipsStockItems `json:"stock_items,omitempty"` + StockReservations *POSTLineItems201ResponseDataRelationshipsStockReservations `json:"stock_reservations,omitempty"` + DeliveryLeadTimes *POSTSkus201ResponseDataRelationshipsDeliveryLeadTimes `json:"delivery_lead_times,omitempty"` + SkuOptions *POSTSkus201ResponseDataRelationshipsSkuOptions `json:"sku_options,omitempty"` + SkuListItems *POSTSkuLists201ResponseDataRelationshipsSkuListItems `json:"sku_list_items,omitempty"` + SkuLists *POSTCustomers201ResponseDataRelationshipsSkuLists `json:"sku_lists,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Links *POSTOrders201ResponseDataRelationshipsLinks `json:"links,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Tags *POSTAddresses201ResponseDataRelationshipsTags `json:"tags,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` + JwtCustomer *POSTPrices201ResponseDataRelationshipsJwtCustomer `json:"jwt_customer,omitempty"` + JwtMarkets *POSTPrices201ResponseDataRelationshipsJwtMarkets `json:"jwt_markets,omitempty"` + JwtStockLocations *POSTPrices201ResponseDataRelationshipsJwtStockLocations `json:"jwt_stock_locations,omitempty"` } // NewPOSTSkus201ResponseDataRelationships instantiates a new POSTSkus201ResponseDataRelationships object @@ -46,9 +56,9 @@ func NewPOSTSkus201ResponseDataRelationshipsWithDefaults() *POSTSkus201ResponseD } // GetShippingCategory returns the ShippingCategory field value if set, zero value otherwise. -func (o *POSTSkus201ResponseDataRelationships) GetShippingCategory() GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory { +func (o *POSTSkus201ResponseDataRelationships) GetShippingCategory() POSTShipments201ResponseDataRelationshipsShippingCategory { if o == nil || IsNil(o.ShippingCategory) { - var ret GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory + var ret POSTShipments201ResponseDataRelationshipsShippingCategory return ret } return *o.ShippingCategory @@ -56,7 +66,7 @@ func (o *POSTSkus201ResponseDataRelationships) GetShippingCategory() GETShipment // GetShippingCategoryOk returns a tuple with the ShippingCategory field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTSkus201ResponseDataRelationships) GetShippingCategoryOk() (*GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory, bool) { +func (o *POSTSkus201ResponseDataRelationships) GetShippingCategoryOk() (*POSTShipments201ResponseDataRelationshipsShippingCategory, bool) { if o == nil || IsNil(o.ShippingCategory) { return nil, false } @@ -72,8 +82,8 @@ func (o *POSTSkus201ResponseDataRelationships) HasShippingCategory() bool { return false } -// SetShippingCategory gets a reference to the given GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory and assigns it to the ShippingCategory field. -func (o *POSTSkus201ResponseDataRelationships) SetShippingCategory(v GETShipmentsShipmentId200ResponseDataRelationshipsShippingCategory) { +// SetShippingCategory gets a reference to the given POSTShipments201ResponseDataRelationshipsShippingCategory and assigns it to the ShippingCategory field. +func (o *POSTSkus201ResponseDataRelationships) SetShippingCategory(v POSTShipments201ResponseDataRelationshipsShippingCategory) { o.ShippingCategory = &v } @@ -141,6 +151,38 @@ func (o *POSTSkus201ResponseDataRelationships) SetStockItems(v POSTSkus201Respon o.StockItems = &v } +// GetStockReservations returns the StockReservations field value if set, zero value otherwise. +func (o *POSTSkus201ResponseDataRelationships) GetStockReservations() POSTLineItems201ResponseDataRelationshipsStockReservations { + if o == nil || IsNil(o.StockReservations) { + var ret POSTLineItems201ResponseDataRelationshipsStockReservations + return ret + } + return *o.StockReservations +} + +// GetStockReservationsOk returns a tuple with the StockReservations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSkus201ResponseDataRelationships) GetStockReservationsOk() (*POSTLineItems201ResponseDataRelationshipsStockReservations, bool) { + if o == nil || IsNil(o.StockReservations) { + return nil, false + } + return o.StockReservations, true +} + +// HasStockReservations returns a boolean if a field has been set. +func (o *POSTSkus201ResponseDataRelationships) HasStockReservations() bool { + if o != nil && !IsNil(o.StockReservations) { + return true + } + + return false +} + +// SetStockReservations gets a reference to the given POSTLineItems201ResponseDataRelationshipsStockReservations and assigns it to the StockReservations field. +func (o *POSTSkus201ResponseDataRelationships) SetStockReservations(v POSTLineItems201ResponseDataRelationshipsStockReservations) { + o.StockReservations = &v +} + // GetDeliveryLeadTimes returns the DeliveryLeadTimes field value if set, zero value otherwise. func (o *POSTSkus201ResponseDataRelationships) GetDeliveryLeadTimes() POSTSkus201ResponseDataRelationshipsDeliveryLeadTimes { if o == nil || IsNil(o.DeliveryLeadTimes) { @@ -205,10 +247,74 @@ func (o *POSTSkus201ResponseDataRelationships) SetSkuOptions(v POSTSkus201Respon o.SkuOptions = &v } +// GetSkuListItems returns the SkuListItems field value if set, zero value otherwise. +func (o *POSTSkus201ResponseDataRelationships) GetSkuListItems() POSTSkuLists201ResponseDataRelationshipsSkuListItems { + if o == nil || IsNil(o.SkuListItems) { + var ret POSTSkuLists201ResponseDataRelationshipsSkuListItems + return ret + } + return *o.SkuListItems +} + +// GetSkuListItemsOk returns a tuple with the SkuListItems field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSkus201ResponseDataRelationships) GetSkuListItemsOk() (*POSTSkuLists201ResponseDataRelationshipsSkuListItems, bool) { + if o == nil || IsNil(o.SkuListItems) { + return nil, false + } + return o.SkuListItems, true +} + +// HasSkuListItems returns a boolean if a field has been set. +func (o *POSTSkus201ResponseDataRelationships) HasSkuListItems() bool { + if o != nil && !IsNil(o.SkuListItems) { + return true + } + + return false +} + +// SetSkuListItems gets a reference to the given POSTSkuLists201ResponseDataRelationshipsSkuListItems and assigns it to the SkuListItems field. +func (o *POSTSkus201ResponseDataRelationships) SetSkuListItems(v POSTSkuLists201ResponseDataRelationshipsSkuListItems) { + o.SkuListItems = &v +} + +// GetSkuLists returns the SkuLists field value if set, zero value otherwise. +func (o *POSTSkus201ResponseDataRelationships) GetSkuLists() POSTCustomers201ResponseDataRelationshipsSkuLists { + if o == nil || IsNil(o.SkuLists) { + var ret POSTCustomers201ResponseDataRelationshipsSkuLists + return ret + } + return *o.SkuLists +} + +// GetSkuListsOk returns a tuple with the SkuLists field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSkus201ResponseDataRelationships) GetSkuListsOk() (*POSTCustomers201ResponseDataRelationshipsSkuLists, bool) { + if o == nil || IsNil(o.SkuLists) { + return nil, false + } + return o.SkuLists, true +} + +// HasSkuLists returns a boolean if a field has been set. +func (o *POSTSkus201ResponseDataRelationships) HasSkuLists() bool { + if o != nil && !IsNil(o.SkuLists) { + return true + } + + return false +} + +// SetSkuLists gets a reference to the given POSTCustomers201ResponseDataRelationshipsSkuLists and assigns it to the SkuLists field. +func (o *POSTSkus201ResponseDataRelationships) SetSkuLists(v POSTCustomers201ResponseDataRelationshipsSkuLists) { + o.SkuLists = &v +} + // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTSkus201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTSkus201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -216,7 +322,7 @@ func (o *POSTSkus201ResponseDataRelationships) GetAttachments() POSTAvalaraAccou // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTSkus201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTSkus201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -232,11 +338,235 @@ func (o *POSTSkus201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTSkus201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTSkus201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTSkus201ResponseDataRelationships) GetLinks() POSTOrders201ResponseDataRelationshipsLinks { + if o == nil || IsNil(o.Links) { + var ret POSTOrders201ResponseDataRelationshipsLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSkus201ResponseDataRelationships) GetLinksOk() (*POSTOrders201ResponseDataRelationshipsLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTSkus201ResponseDataRelationships) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTOrders201ResponseDataRelationshipsLinks and assigns it to the Links field. +func (o *POSTSkus201ResponseDataRelationships) SetLinks(v POSTOrders201ResponseDataRelationshipsLinks) { + o.Links = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *POSTSkus201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret POSTAddresses201ResponseDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSkus201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *POSTSkus201ResponseDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTSkus201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *POSTSkus201ResponseDataRelationships) GetTags() POSTAddresses201ResponseDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret POSTAddresses201ResponseDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSkus201ResponseDataRelationships) GetTagsOk() (*POSTAddresses201ResponseDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *POSTSkus201ResponseDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given POSTAddresses201ResponseDataRelationshipsTags and assigns it to the Tags field. +func (o *POSTSkus201ResponseDataRelationships) SetTags(v POSTAddresses201ResponseDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTSkus201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSkus201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTSkus201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTSkus201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + +// GetJwtCustomer returns the JwtCustomer field value if set, zero value otherwise. +func (o *POSTSkus201ResponseDataRelationships) GetJwtCustomer() POSTPrices201ResponseDataRelationshipsJwtCustomer { + if o == nil || IsNil(o.JwtCustomer) { + var ret POSTPrices201ResponseDataRelationshipsJwtCustomer + return ret + } + return *o.JwtCustomer +} + +// GetJwtCustomerOk returns a tuple with the JwtCustomer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSkus201ResponseDataRelationships) GetJwtCustomerOk() (*POSTPrices201ResponseDataRelationshipsJwtCustomer, bool) { + if o == nil || IsNil(o.JwtCustomer) { + return nil, false + } + return o.JwtCustomer, true +} + +// HasJwtCustomer returns a boolean if a field has been set. +func (o *POSTSkus201ResponseDataRelationships) HasJwtCustomer() bool { + if o != nil && !IsNil(o.JwtCustomer) { + return true + } + + return false +} + +// SetJwtCustomer gets a reference to the given POSTPrices201ResponseDataRelationshipsJwtCustomer and assigns it to the JwtCustomer field. +func (o *POSTSkus201ResponseDataRelationships) SetJwtCustomer(v POSTPrices201ResponseDataRelationshipsJwtCustomer) { + o.JwtCustomer = &v +} + +// GetJwtMarkets returns the JwtMarkets field value if set, zero value otherwise. +func (o *POSTSkus201ResponseDataRelationships) GetJwtMarkets() POSTPrices201ResponseDataRelationshipsJwtMarkets { + if o == nil || IsNil(o.JwtMarkets) { + var ret POSTPrices201ResponseDataRelationshipsJwtMarkets + return ret + } + return *o.JwtMarkets +} + +// GetJwtMarketsOk returns a tuple with the JwtMarkets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSkus201ResponseDataRelationships) GetJwtMarketsOk() (*POSTPrices201ResponseDataRelationshipsJwtMarkets, bool) { + if o == nil || IsNil(o.JwtMarkets) { + return nil, false + } + return o.JwtMarkets, true +} + +// HasJwtMarkets returns a boolean if a field has been set. +func (o *POSTSkus201ResponseDataRelationships) HasJwtMarkets() bool { + if o != nil && !IsNil(o.JwtMarkets) { + return true + } + + return false +} + +// SetJwtMarkets gets a reference to the given POSTPrices201ResponseDataRelationshipsJwtMarkets and assigns it to the JwtMarkets field. +func (o *POSTSkus201ResponseDataRelationships) SetJwtMarkets(v POSTPrices201ResponseDataRelationshipsJwtMarkets) { + o.JwtMarkets = &v +} + +// GetJwtStockLocations returns the JwtStockLocations field value if set, zero value otherwise. +func (o *POSTSkus201ResponseDataRelationships) GetJwtStockLocations() POSTPrices201ResponseDataRelationshipsJwtStockLocations { + if o == nil || IsNil(o.JwtStockLocations) { + var ret POSTPrices201ResponseDataRelationshipsJwtStockLocations + return ret + } + return *o.JwtStockLocations +} + +// GetJwtStockLocationsOk returns a tuple with the JwtStockLocations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTSkus201ResponseDataRelationships) GetJwtStockLocationsOk() (*POSTPrices201ResponseDataRelationshipsJwtStockLocations, bool) { + if o == nil || IsNil(o.JwtStockLocations) { + return nil, false + } + return o.JwtStockLocations, true +} + +// HasJwtStockLocations returns a boolean if a field has been set. +func (o *POSTSkus201ResponseDataRelationships) HasJwtStockLocations() bool { + if o != nil && !IsNil(o.JwtStockLocations) { + return true + } + + return false +} + +// SetJwtStockLocations gets a reference to the given POSTPrices201ResponseDataRelationshipsJwtStockLocations and assigns it to the JwtStockLocations field. +func (o *POSTSkus201ResponseDataRelationships) SetJwtStockLocations(v POSTPrices201ResponseDataRelationshipsJwtStockLocations) { + o.JwtStockLocations = &v +} + func (o POSTSkus201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -256,15 +586,45 @@ func (o POSTSkus201ResponseDataRelationships) ToMap() (map[string]interface{}, e if !IsNil(o.StockItems) { toSerialize["stock_items"] = o.StockItems } + if !IsNil(o.StockReservations) { + toSerialize["stock_reservations"] = o.StockReservations + } if !IsNil(o.DeliveryLeadTimes) { toSerialize["delivery_lead_times"] = o.DeliveryLeadTimes } if !IsNil(o.SkuOptions) { toSerialize["sku_options"] = o.SkuOptions } + if !IsNil(o.SkuListItems) { + toSerialize["sku_list_items"] = o.SkuListItems + } + if !IsNil(o.SkuLists) { + toSerialize["sku_lists"] = o.SkuLists + } if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + if !IsNil(o.JwtCustomer) { + toSerialize["jwt_customer"] = o.JwtCustomer + } + if !IsNil(o.JwtMarkets) { + toSerialize["jwt_markets"] = o.JwtMarkets + } + if !IsNil(o.JwtStockLocations) { + toSerialize["jwt_stock_locations"] = o.JwtStockLocations + } return toSerialize, nil } diff --git a/api/model_post_skus_201_response_data_relationships_delivery_lead_times.go b/api/model_post_skus_201_response_data_relationships_delivery_lead_times.go index aca67bab..d5d8879a 100644 --- a/api/model_post_skus_201_response_data_relationships_delivery_lead_times.go +++ b/api/model_post_skus_201_response_data_relationships_delivery_lead_times.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_skus_201_response_data_relationships_delivery_lead_times_data.go b/api/model_post_skus_201_response_data_relationships_delivery_lead_times_data.go index a9bff2ed..fe9b459e 100644 --- a/api/model_post_skus_201_response_data_relationships_delivery_lead_times_data.go +++ b/api/model_post_skus_201_response_data_relationships_delivery_lead_times_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_skus_201_response_data_relationships_sku_options.go b/api/model_post_skus_201_response_data_relationships_sku_options.go index 60710a25..730d48f4 100644 --- a/api/model_post_skus_201_response_data_relationships_sku_options.go +++ b/api/model_post_skus_201_response_data_relationships_sku_options.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_skus_201_response_data_relationships_sku_options_data.go b/api/model_post_skus_201_response_data_relationships_sku_options_data.go index 020fc42c..0f0e1299 100644 --- a/api/model_post_skus_201_response_data_relationships_sku_options_data.go +++ b/api/model_post_skus_201_response_data_relationships_sku_options_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_skus_201_response_data_relationships_stock_items.go b/api/model_post_skus_201_response_data_relationships_stock_items.go index 3c857935..08afaca0 100644 --- a/api/model_post_skus_201_response_data_relationships_stock_items.go +++ b/api/model_post_skus_201_response_data_relationships_stock_items.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_skus_201_response_data_relationships_stock_items_data.go b/api/model_post_skus_201_response_data_relationships_stock_items_data.go index e4fd8922..bd25175f 100644 --- a/api/model_post_skus_201_response_data_relationships_stock_items_data.go +++ b/api/model_post_skus_201_response_data_relationships_stock_items_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_stock_items_201_response.go b/api/model_post_stock_items_201_response.go index f8375029..67e33f4b 100644 --- a/api/model_post_stock_items_201_response.go +++ b/api/model_post_stock_items_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_stock_items_201_response_data.go b/api/model_post_stock_items_201_response_data.go index c02a23b0..6b2b5c46 100644 --- a/api/model_post_stock_items_201_response_data.go +++ b/api/model_post_stock_items_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_stock_items_201_response_data_attributes.go b/api/model_post_stock_items_201_response_data_attributes.go index 6a499407..3ddbea18 100644 --- a/api/model_post_stock_items_201_response_data_attributes.go +++ b/api/model_post_stock_items_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type POSTStockItems201ResponseDataAttributes struct { Quantity interface{} `json:"quantity"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_stock_items_201_response_data_relationships.go b/api/model_post_stock_items_201_response_data_relationships.go index 4a81c90c..48574f73 100644 --- a/api/model_post_stock_items_201_response_data_relationships.go +++ b/api/model_post_stock_items_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,12 @@ var _ MappedNullable = &POSTStockItems201ResponseDataRelationships{} // POSTStockItems201ResponseDataRelationships struct for POSTStockItems201ResponseDataRelationships type POSTStockItems201ResponseDataRelationships struct { - StockLocation *POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation `json:"stock_location,omitempty"` - Sku *POSTInStockSubscriptions201ResponseDataRelationshipsSku `json:"sku,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + StockLocation *POSTDeliveryLeadTimes201ResponseDataRelationshipsStockLocation `json:"stock_location,omitempty"` + Sku *POSTInStockSubscriptions201ResponseDataRelationshipsSku `json:"sku,omitempty"` + ReservedStock *POSTStockItems201ResponseDataRelationshipsReservedStock `json:"reserved_stock,omitempty"` + StockReservations *POSTLineItems201ResponseDataRelationshipsStockReservations `json:"stock_reservations,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTStockItems201ResponseDataRelationships instantiates a new POSTStockItems201ResponseDataRelationships object @@ -106,10 +109,74 @@ func (o *POSTStockItems201ResponseDataRelationships) SetSku(v POSTInStockSubscri o.Sku = &v } +// GetReservedStock returns the ReservedStock field value if set, zero value otherwise. +func (o *POSTStockItems201ResponseDataRelationships) GetReservedStock() POSTStockItems201ResponseDataRelationshipsReservedStock { + if o == nil || IsNil(o.ReservedStock) { + var ret POSTStockItems201ResponseDataRelationshipsReservedStock + return ret + } + return *o.ReservedStock +} + +// GetReservedStockOk returns a tuple with the ReservedStock field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockItems201ResponseDataRelationships) GetReservedStockOk() (*POSTStockItems201ResponseDataRelationshipsReservedStock, bool) { + if o == nil || IsNil(o.ReservedStock) { + return nil, false + } + return o.ReservedStock, true +} + +// HasReservedStock returns a boolean if a field has been set. +func (o *POSTStockItems201ResponseDataRelationships) HasReservedStock() bool { + if o != nil && !IsNil(o.ReservedStock) { + return true + } + + return false +} + +// SetReservedStock gets a reference to the given POSTStockItems201ResponseDataRelationshipsReservedStock and assigns it to the ReservedStock field. +func (o *POSTStockItems201ResponseDataRelationships) SetReservedStock(v POSTStockItems201ResponseDataRelationshipsReservedStock) { + o.ReservedStock = &v +} + +// GetStockReservations returns the StockReservations field value if set, zero value otherwise. +func (o *POSTStockItems201ResponseDataRelationships) GetStockReservations() POSTLineItems201ResponseDataRelationshipsStockReservations { + if o == nil || IsNil(o.StockReservations) { + var ret POSTLineItems201ResponseDataRelationshipsStockReservations + return ret + } + return *o.StockReservations +} + +// GetStockReservationsOk returns a tuple with the StockReservations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockItems201ResponseDataRelationships) GetStockReservationsOk() (*POSTLineItems201ResponseDataRelationshipsStockReservations, bool) { + if o == nil || IsNil(o.StockReservations) { + return nil, false + } + return o.StockReservations, true +} + +// HasStockReservations returns a boolean if a field has been set. +func (o *POSTStockItems201ResponseDataRelationships) HasStockReservations() bool { + if o != nil && !IsNil(o.StockReservations) { + return true + } + + return false +} + +// SetStockReservations gets a reference to the given POSTLineItems201ResponseDataRelationshipsStockReservations and assigns it to the StockReservations field. +func (o *POSTStockItems201ResponseDataRelationships) SetStockReservations(v POSTLineItems201ResponseDataRelationshipsStockReservations) { + o.StockReservations = &v +} + // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTStockItems201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTStockItems201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -117,7 +184,7 @@ func (o *POSTStockItems201ResponseDataRelationships) GetAttachments() POSTAvalar // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTStockItems201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTStockItems201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -133,11 +200,43 @@ func (o *POSTStockItems201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTStockItems201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTStockItems201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTStockItems201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockItems201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTStockItems201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTStockItems201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTStockItems201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -154,9 +253,18 @@ func (o POSTStockItems201ResponseDataRelationships) ToMap() (map[string]interfac if !IsNil(o.Sku) { toSerialize["sku"] = o.Sku } + if !IsNil(o.ReservedStock) { + toSerialize["reserved_stock"] = o.ReservedStock + } + if !IsNil(o.StockReservations) { + toSerialize["stock_reservations"] = o.StockReservations + } if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_stock_items_201_response_data_relationships_reserved_stock.go b/api/model_post_stock_items_201_response_data_relationships_reserved_stock.go new file mode 100644 index 00000000..430eee13 --- /dev/null +++ b/api/model_post_stock_items_201_response_data_relationships_reserved_stock.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTStockItems201ResponseDataRelationshipsReservedStock type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTStockItems201ResponseDataRelationshipsReservedStock{} + +// POSTStockItems201ResponseDataRelationshipsReservedStock struct for POSTStockItems201ResponseDataRelationshipsReservedStock +type POSTStockItems201ResponseDataRelationshipsReservedStock struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTStockItems201ResponseDataRelationshipsReservedStockData `json:"data,omitempty"` +} + +// NewPOSTStockItems201ResponseDataRelationshipsReservedStock instantiates a new POSTStockItems201ResponseDataRelationshipsReservedStock object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTStockItems201ResponseDataRelationshipsReservedStock() *POSTStockItems201ResponseDataRelationshipsReservedStock { + this := POSTStockItems201ResponseDataRelationshipsReservedStock{} + return &this +} + +// NewPOSTStockItems201ResponseDataRelationshipsReservedStockWithDefaults instantiates a new POSTStockItems201ResponseDataRelationshipsReservedStock object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTStockItems201ResponseDataRelationshipsReservedStockWithDefaults() *POSTStockItems201ResponseDataRelationshipsReservedStock { + this := POSTStockItems201ResponseDataRelationshipsReservedStock{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTStockItems201ResponseDataRelationshipsReservedStock) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockItems201ResponseDataRelationshipsReservedStock) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTStockItems201ResponseDataRelationshipsReservedStock) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTStockItems201ResponseDataRelationshipsReservedStock) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTStockItems201ResponseDataRelationshipsReservedStock) GetData() POSTStockItems201ResponseDataRelationshipsReservedStockData { + if o == nil || IsNil(o.Data) { + var ret POSTStockItems201ResponseDataRelationshipsReservedStockData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockItems201ResponseDataRelationshipsReservedStock) GetDataOk() (*POSTStockItems201ResponseDataRelationshipsReservedStockData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTStockItems201ResponseDataRelationshipsReservedStock) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTStockItems201ResponseDataRelationshipsReservedStockData and assigns it to the Data field. +func (o *POSTStockItems201ResponseDataRelationshipsReservedStock) SetData(v POSTStockItems201ResponseDataRelationshipsReservedStockData) { + o.Data = &v +} + +func (o POSTStockItems201ResponseDataRelationshipsReservedStock) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTStockItems201ResponseDataRelationshipsReservedStock) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTStockItems201ResponseDataRelationshipsReservedStock struct { + value *POSTStockItems201ResponseDataRelationshipsReservedStock + isSet bool +} + +func (v NullablePOSTStockItems201ResponseDataRelationshipsReservedStock) Get() *POSTStockItems201ResponseDataRelationshipsReservedStock { + return v.value +} + +func (v *NullablePOSTStockItems201ResponseDataRelationshipsReservedStock) Set(val *POSTStockItems201ResponseDataRelationshipsReservedStock) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTStockItems201ResponseDataRelationshipsReservedStock) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTStockItems201ResponseDataRelationshipsReservedStock) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTStockItems201ResponseDataRelationshipsReservedStock(val *POSTStockItems201ResponseDataRelationshipsReservedStock) *NullablePOSTStockItems201ResponseDataRelationshipsReservedStock { + return &NullablePOSTStockItems201ResponseDataRelationshipsReservedStock{value: val, isSet: true} +} + +func (v NullablePOSTStockItems201ResponseDataRelationshipsReservedStock) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTStockItems201ResponseDataRelationshipsReservedStock) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_stock_items_201_response_data_relationships_reserved_stock_data.go b/api/model_post_stock_items_201_response_data_relationships_reserved_stock_data.go new file mode 100644 index 00000000..7b5c8a03 --- /dev/null +++ b/api/model_post_stock_items_201_response_data_relationships_reserved_stock_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTStockItems201ResponseDataRelationshipsReservedStockData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTStockItems201ResponseDataRelationshipsReservedStockData{} + +// POSTStockItems201ResponseDataRelationshipsReservedStockData struct for POSTStockItems201ResponseDataRelationshipsReservedStockData +type POSTStockItems201ResponseDataRelationshipsReservedStockData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTStockItems201ResponseDataRelationshipsReservedStockData instantiates a new POSTStockItems201ResponseDataRelationshipsReservedStockData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTStockItems201ResponseDataRelationshipsReservedStockData() *POSTStockItems201ResponseDataRelationshipsReservedStockData { + this := POSTStockItems201ResponseDataRelationshipsReservedStockData{} + return &this +} + +// NewPOSTStockItems201ResponseDataRelationshipsReservedStockDataWithDefaults instantiates a new POSTStockItems201ResponseDataRelationshipsReservedStockData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTStockItems201ResponseDataRelationshipsReservedStockDataWithDefaults() *POSTStockItems201ResponseDataRelationshipsReservedStockData { + this := POSTStockItems201ResponseDataRelationshipsReservedStockData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTStockItems201ResponseDataRelationshipsReservedStockData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTStockItems201ResponseDataRelationshipsReservedStockData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTStockItems201ResponseDataRelationshipsReservedStockData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTStockItems201ResponseDataRelationshipsReservedStockData struct { + value *POSTStockItems201ResponseDataRelationshipsReservedStockData + isSet bool +} + +func (v NullablePOSTStockItems201ResponseDataRelationshipsReservedStockData) Get() *POSTStockItems201ResponseDataRelationshipsReservedStockData { + return v.value +} + +func (v *NullablePOSTStockItems201ResponseDataRelationshipsReservedStockData) Set(val *POSTStockItems201ResponseDataRelationshipsReservedStockData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTStockItems201ResponseDataRelationshipsReservedStockData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTStockItems201ResponseDataRelationshipsReservedStockData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTStockItems201ResponseDataRelationshipsReservedStockData(val *POSTStockItems201ResponseDataRelationshipsReservedStockData) *NullablePOSTStockItems201ResponseDataRelationshipsReservedStockData { + return &NullablePOSTStockItems201ResponseDataRelationshipsReservedStockData{value: val, isSet: true} +} + +func (v NullablePOSTStockItems201ResponseDataRelationshipsReservedStockData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTStockItems201ResponseDataRelationshipsReservedStockData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_stock_line_items_201_response.go b/api/model_post_stock_line_items_201_response.go new file mode 100644 index 00000000..ea585686 --- /dev/null +++ b/api/model_post_stock_line_items_201_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTStockLineItems201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTStockLineItems201Response{} + +// POSTStockLineItems201Response struct for POSTStockLineItems201Response +type POSTStockLineItems201Response struct { + Data *POSTStockLineItems201ResponseData `json:"data,omitempty"` +} + +// NewPOSTStockLineItems201Response instantiates a new POSTStockLineItems201Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTStockLineItems201Response() *POSTStockLineItems201Response { + this := POSTStockLineItems201Response{} + return &this +} + +// NewPOSTStockLineItems201ResponseWithDefaults instantiates a new POSTStockLineItems201Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTStockLineItems201ResponseWithDefaults() *POSTStockLineItems201Response { + this := POSTStockLineItems201Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTStockLineItems201Response) GetData() POSTStockLineItems201ResponseData { + if o == nil || IsNil(o.Data) { + var ret POSTStockLineItems201ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockLineItems201Response) GetDataOk() (*POSTStockLineItems201ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTStockLineItems201Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTStockLineItems201ResponseData and assigns it to the Data field. +func (o *POSTStockLineItems201Response) SetData(v POSTStockLineItems201ResponseData) { + o.Data = &v +} + +func (o POSTStockLineItems201Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTStockLineItems201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTStockLineItems201Response struct { + value *POSTStockLineItems201Response + isSet bool +} + +func (v NullablePOSTStockLineItems201Response) Get() *POSTStockLineItems201Response { + return v.value +} + +func (v *NullablePOSTStockLineItems201Response) Set(val *POSTStockLineItems201Response) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTStockLineItems201Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTStockLineItems201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTStockLineItems201Response(val *POSTStockLineItems201Response) *NullablePOSTStockLineItems201Response { + return &NullablePOSTStockLineItems201Response{value: val, isSet: true} +} + +func (v NullablePOSTStockLineItems201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTStockLineItems201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_stock_line_items_201_response_data.go b/api/model_post_stock_line_items_201_response_data.go new file mode 100644 index 00000000..1d933efa --- /dev/null +++ b/api/model_post_stock_line_items_201_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTStockLineItems201ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTStockLineItems201ResponseData{} + +// POSTStockLineItems201ResponseData struct for POSTStockLineItems201ResponseData +type POSTStockLineItems201ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTStockLineItems201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTStockLineItems201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPOSTStockLineItems201ResponseData instantiates a new POSTStockLineItems201ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTStockLineItems201ResponseData() *POSTStockLineItems201ResponseData { + this := POSTStockLineItems201ResponseData{} + return &this +} + +// NewPOSTStockLineItems201ResponseDataWithDefaults instantiates a new POSTStockLineItems201ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTStockLineItems201ResponseDataWithDefaults() *POSTStockLineItems201ResponseData { + this := POSTStockLineItems201ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStockLineItems201ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockLineItems201ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTStockLineItems201ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTStockLineItems201ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStockLineItems201ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockLineItems201ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTStockLineItems201ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTStockLineItems201ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTStockLineItems201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockLineItems201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTStockLineItems201ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *POSTStockLineItems201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *POSTStockLineItems201ResponseData) GetAttributes() POSTStockLineItems201ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret POSTStockLineItems201ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockLineItems201ResponseData) GetAttributesOk() (*POSTStockLineItems201ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *POSTStockLineItems201ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given POSTStockLineItems201ResponseDataAttributes and assigns it to the Attributes field. +func (o *POSTStockLineItems201ResponseData) SetAttributes(v POSTStockLineItems201ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *POSTStockLineItems201ResponseData) GetRelationships() POSTStockLineItems201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTStockLineItems201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockLineItems201ResponseData) GetRelationshipsOk() (*POSTStockLineItems201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *POSTStockLineItems201ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTStockLineItems201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTStockLineItems201ResponseData) SetRelationships(v POSTStockLineItems201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o POSTStockLineItems201ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTStockLineItems201ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePOSTStockLineItems201ResponseData struct { + value *POSTStockLineItems201ResponseData + isSet bool +} + +func (v NullablePOSTStockLineItems201ResponseData) Get() *POSTStockLineItems201ResponseData { + return v.value +} + +func (v *NullablePOSTStockLineItems201ResponseData) Set(val *POSTStockLineItems201ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTStockLineItems201ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTStockLineItems201ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTStockLineItems201ResponseData(val *POSTStockLineItems201ResponseData) *NullablePOSTStockLineItems201ResponseData { + return &NullablePOSTStockLineItems201ResponseData{value: val, isSet: true} +} + +func (v NullablePOSTStockLineItems201ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTStockLineItems201ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_stock_line_items_201_response_data_attributes.go b/api/model_post_stock_line_items_201_response_data_attributes.go new file mode 100644 index 00000000..a82c0b31 --- /dev/null +++ b/api/model_post_stock_line_items_201_response_data_attributes.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTStockLineItems201ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTStockLineItems201ResponseDataAttributes{} + +// POSTStockLineItems201ResponseDataAttributes struct for POSTStockLineItems201ResponseDataAttributes +type POSTStockLineItems201ResponseDataAttributes struct { + // The code of the associated SKU. + SkuCode interface{} `json:"sku_code,omitempty"` + // The line item quantity. + Quantity interface{} `json:"quantity"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPOSTStockLineItems201ResponseDataAttributes instantiates a new POSTStockLineItems201ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTStockLineItems201ResponseDataAttributes(quantity interface{}) *POSTStockLineItems201ResponseDataAttributes { + this := POSTStockLineItems201ResponseDataAttributes{} + this.Quantity = quantity + return &this +} + +// NewPOSTStockLineItems201ResponseDataAttributesWithDefaults instantiates a new POSTStockLineItems201ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTStockLineItems201ResponseDataAttributesWithDefaults() *POSTStockLineItems201ResponseDataAttributes { + this := POSTStockLineItems201ResponseDataAttributes{} + return &this +} + +// GetSkuCode returns the SkuCode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStockLineItems201ResponseDataAttributes) GetSkuCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.SkuCode +} + +// GetSkuCodeOk returns a tuple with the SkuCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockLineItems201ResponseDataAttributes) GetSkuCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.SkuCode) { + return nil, false + } + return &o.SkuCode, true +} + +// HasSkuCode returns a boolean if a field has been set. +func (o *POSTStockLineItems201ResponseDataAttributes) HasSkuCode() bool { + if o != nil && IsNil(o.SkuCode) { + return true + } + + return false +} + +// SetSkuCode gets a reference to the given interface{} and assigns it to the SkuCode field. +func (o *POSTStockLineItems201ResponseDataAttributes) SetSkuCode(v interface{}) { + o.SkuCode = v +} + +// GetQuantity returns the Quantity field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTStockLineItems201ResponseDataAttributes) GetQuantity() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Quantity +} + +// GetQuantityOk returns a tuple with the Quantity field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockLineItems201ResponseDataAttributes) GetQuantityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Quantity) { + return nil, false + } + return &o.Quantity, true +} + +// SetQuantity sets field value +func (o *POSTStockLineItems201ResponseDataAttributes) SetQuantity(v interface{}) { + o.Quantity = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStockLineItems201ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockLineItems201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *POSTStockLineItems201ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *POSTStockLineItems201ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStockLineItems201ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockLineItems201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *POSTStockLineItems201ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *POSTStockLineItems201ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStockLineItems201ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockLineItems201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *POSTStockLineItems201ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *POSTStockLineItems201ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o POSTStockLineItems201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTStockLineItems201ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.SkuCode != nil { + toSerialize["sku_code"] = o.SkuCode + } + if o.Quantity != nil { + toSerialize["quantity"] = o.Quantity + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePOSTStockLineItems201ResponseDataAttributes struct { + value *POSTStockLineItems201ResponseDataAttributes + isSet bool +} + +func (v NullablePOSTStockLineItems201ResponseDataAttributes) Get() *POSTStockLineItems201ResponseDataAttributes { + return v.value +} + +func (v *NullablePOSTStockLineItems201ResponseDataAttributes) Set(val *POSTStockLineItems201ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTStockLineItems201ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTStockLineItems201ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTStockLineItems201ResponseDataAttributes(val *POSTStockLineItems201ResponseDataAttributes) *NullablePOSTStockLineItems201ResponseDataAttributes { + return &NullablePOSTStockLineItems201ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePOSTStockLineItems201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTStockLineItems201ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_stock_line_items_201_response_data_relationships.go b/api/model_post_stock_line_items_201_response_data_relationships.go new file mode 100644 index 00000000..84e5e83b --- /dev/null +++ b/api/model_post_stock_line_items_201_response_data_relationships.go @@ -0,0 +1,305 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTStockLineItems201ResponseDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTStockLineItems201ResponseDataRelationships{} + +// POSTStockLineItems201ResponseDataRelationships struct for POSTStockLineItems201ResponseDataRelationships +type POSTStockLineItems201ResponseDataRelationships struct { + Shipment *POSTLineItems201ResponseDataRelationshipsShipment `json:"shipment,omitempty"` + LineItem *POSTLineItemOptions201ResponseDataRelationshipsLineItem `json:"line_item,omitempty"` + StockItem *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem `json:"stock_item,omitempty"` + Sku *POSTInStockSubscriptions201ResponseDataRelationshipsSku `json:"sku,omitempty"` + StockReservation *POSTStockLineItems201ResponseDataRelationshipsStockReservation `json:"stock_reservation,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewPOSTStockLineItems201ResponseDataRelationships instantiates a new POSTStockLineItems201ResponseDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTStockLineItems201ResponseDataRelationships() *POSTStockLineItems201ResponseDataRelationships { + this := POSTStockLineItems201ResponseDataRelationships{} + return &this +} + +// NewPOSTStockLineItems201ResponseDataRelationshipsWithDefaults instantiates a new POSTStockLineItems201ResponseDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTStockLineItems201ResponseDataRelationshipsWithDefaults() *POSTStockLineItems201ResponseDataRelationships { + this := POSTStockLineItems201ResponseDataRelationships{} + return &this +} + +// GetShipment returns the Shipment field value if set, zero value otherwise. +func (o *POSTStockLineItems201ResponseDataRelationships) GetShipment() POSTLineItems201ResponseDataRelationshipsShipment { + if o == nil || IsNil(o.Shipment) { + var ret POSTLineItems201ResponseDataRelationshipsShipment + return ret + } + return *o.Shipment +} + +// GetShipmentOk returns a tuple with the Shipment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockLineItems201ResponseDataRelationships) GetShipmentOk() (*POSTLineItems201ResponseDataRelationshipsShipment, bool) { + if o == nil || IsNil(o.Shipment) { + return nil, false + } + return o.Shipment, true +} + +// HasShipment returns a boolean if a field has been set. +func (o *POSTStockLineItems201ResponseDataRelationships) HasShipment() bool { + if o != nil && !IsNil(o.Shipment) { + return true + } + + return false +} + +// SetShipment gets a reference to the given POSTLineItems201ResponseDataRelationshipsShipment and assigns it to the Shipment field. +func (o *POSTStockLineItems201ResponseDataRelationships) SetShipment(v POSTLineItems201ResponseDataRelationshipsShipment) { + o.Shipment = &v +} + +// GetLineItem returns the LineItem field value if set, zero value otherwise. +func (o *POSTStockLineItems201ResponseDataRelationships) GetLineItem() POSTLineItemOptions201ResponseDataRelationshipsLineItem { + if o == nil || IsNil(o.LineItem) { + var ret POSTLineItemOptions201ResponseDataRelationshipsLineItem + return ret + } + return *o.LineItem +} + +// GetLineItemOk returns a tuple with the LineItem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockLineItems201ResponseDataRelationships) GetLineItemOk() (*POSTLineItemOptions201ResponseDataRelationshipsLineItem, bool) { + if o == nil || IsNil(o.LineItem) { + return nil, false + } + return o.LineItem, true +} + +// HasLineItem returns a boolean if a field has been set. +func (o *POSTStockLineItems201ResponseDataRelationships) HasLineItem() bool { + if o != nil && !IsNil(o.LineItem) { + return true + } + + return false +} + +// SetLineItem gets a reference to the given POSTLineItemOptions201ResponseDataRelationshipsLineItem and assigns it to the LineItem field. +func (o *POSTStockLineItems201ResponseDataRelationships) SetLineItem(v POSTLineItemOptions201ResponseDataRelationshipsLineItem) { + o.LineItem = &v +} + +// GetStockItem returns the StockItem field value if set, zero value otherwise. +func (o *POSTStockLineItems201ResponseDataRelationships) GetStockItem() GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem { + if o == nil || IsNil(o.StockItem) { + var ret GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem + return ret + } + return *o.StockItem +} + +// GetStockItemOk returns a tuple with the StockItem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockLineItems201ResponseDataRelationships) GetStockItemOk() (*GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem, bool) { + if o == nil || IsNil(o.StockItem) { + return nil, false + } + return o.StockItem, true +} + +// HasStockItem returns a boolean if a field has been set. +func (o *POSTStockLineItems201ResponseDataRelationships) HasStockItem() bool { + if o != nil && !IsNil(o.StockItem) { + return true + } + + return false +} + +// SetStockItem gets a reference to the given GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem and assigns it to the StockItem field. +func (o *POSTStockLineItems201ResponseDataRelationships) SetStockItem(v GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) { + o.StockItem = &v +} + +// GetSku returns the Sku field value if set, zero value otherwise. +func (o *POSTStockLineItems201ResponseDataRelationships) GetSku() POSTInStockSubscriptions201ResponseDataRelationshipsSku { + if o == nil || IsNil(o.Sku) { + var ret POSTInStockSubscriptions201ResponseDataRelationshipsSku + return ret + } + return *o.Sku +} + +// GetSkuOk returns a tuple with the Sku field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockLineItems201ResponseDataRelationships) GetSkuOk() (*POSTInStockSubscriptions201ResponseDataRelationshipsSku, bool) { + if o == nil || IsNil(o.Sku) { + return nil, false + } + return o.Sku, true +} + +// HasSku returns a boolean if a field has been set. +func (o *POSTStockLineItems201ResponseDataRelationships) HasSku() bool { + if o != nil && !IsNil(o.Sku) { + return true + } + + return false +} + +// SetSku gets a reference to the given POSTInStockSubscriptions201ResponseDataRelationshipsSku and assigns it to the Sku field. +func (o *POSTStockLineItems201ResponseDataRelationships) SetSku(v POSTInStockSubscriptions201ResponseDataRelationshipsSku) { + o.Sku = &v +} + +// GetStockReservation returns the StockReservation field value if set, zero value otherwise. +func (o *POSTStockLineItems201ResponseDataRelationships) GetStockReservation() POSTStockLineItems201ResponseDataRelationshipsStockReservation { + if o == nil || IsNil(o.StockReservation) { + var ret POSTStockLineItems201ResponseDataRelationshipsStockReservation + return ret + } + return *o.StockReservation +} + +// GetStockReservationOk returns a tuple with the StockReservation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockLineItems201ResponseDataRelationships) GetStockReservationOk() (*POSTStockLineItems201ResponseDataRelationshipsStockReservation, bool) { + if o == nil || IsNil(o.StockReservation) { + return nil, false + } + return o.StockReservation, true +} + +// HasStockReservation returns a boolean if a field has been set. +func (o *POSTStockLineItems201ResponseDataRelationships) HasStockReservation() bool { + if o != nil && !IsNil(o.StockReservation) { + return true + } + + return false +} + +// SetStockReservation gets a reference to the given POSTStockLineItems201ResponseDataRelationshipsStockReservation and assigns it to the StockReservation field. +func (o *POSTStockLineItems201ResponseDataRelationships) SetStockReservation(v POSTStockLineItems201ResponseDataRelationshipsStockReservation) { + o.StockReservation = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTStockLineItems201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockLineItems201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTStockLineItems201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTStockLineItems201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + +func (o POSTStockLineItems201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTStockLineItems201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Shipment) { + toSerialize["shipment"] = o.Shipment + } + if !IsNil(o.LineItem) { + toSerialize["line_item"] = o.LineItem + } + if !IsNil(o.StockItem) { + toSerialize["stock_item"] = o.StockItem + } + if !IsNil(o.Sku) { + toSerialize["sku"] = o.Sku + } + if !IsNil(o.StockReservation) { + toSerialize["stock_reservation"] = o.StockReservation + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullablePOSTStockLineItems201ResponseDataRelationships struct { + value *POSTStockLineItems201ResponseDataRelationships + isSet bool +} + +func (v NullablePOSTStockLineItems201ResponseDataRelationships) Get() *POSTStockLineItems201ResponseDataRelationships { + return v.value +} + +func (v *NullablePOSTStockLineItems201ResponseDataRelationships) Set(val *POSTStockLineItems201ResponseDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTStockLineItems201ResponseDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTStockLineItems201ResponseDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTStockLineItems201ResponseDataRelationships(val *POSTStockLineItems201ResponseDataRelationships) *NullablePOSTStockLineItems201ResponseDataRelationships { + return &NullablePOSTStockLineItems201ResponseDataRelationships{value: val, isSet: true} +} + +func (v NullablePOSTStockLineItems201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTStockLineItems201ResponseDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_stock_line_items_201_response_data_relationships_stock_reservation.go b/api/model_post_stock_line_items_201_response_data_relationships_stock_reservation.go new file mode 100644 index 00000000..06e8c039 --- /dev/null +++ b/api/model_post_stock_line_items_201_response_data_relationships_stock_reservation.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTStockLineItems201ResponseDataRelationshipsStockReservation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTStockLineItems201ResponseDataRelationshipsStockReservation{} + +// POSTStockLineItems201ResponseDataRelationshipsStockReservation struct for POSTStockLineItems201ResponseDataRelationshipsStockReservation +type POSTStockLineItems201ResponseDataRelationshipsStockReservation struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTStockLineItems201ResponseDataRelationshipsStockReservationData `json:"data,omitempty"` +} + +// NewPOSTStockLineItems201ResponseDataRelationshipsStockReservation instantiates a new POSTStockLineItems201ResponseDataRelationshipsStockReservation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTStockLineItems201ResponseDataRelationshipsStockReservation() *POSTStockLineItems201ResponseDataRelationshipsStockReservation { + this := POSTStockLineItems201ResponseDataRelationshipsStockReservation{} + return &this +} + +// NewPOSTStockLineItems201ResponseDataRelationshipsStockReservationWithDefaults instantiates a new POSTStockLineItems201ResponseDataRelationshipsStockReservation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTStockLineItems201ResponseDataRelationshipsStockReservationWithDefaults() *POSTStockLineItems201ResponseDataRelationshipsStockReservation { + this := POSTStockLineItems201ResponseDataRelationshipsStockReservation{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservation) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservation) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservation) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservation) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservation) GetData() POSTStockLineItems201ResponseDataRelationshipsStockReservationData { + if o == nil || IsNil(o.Data) { + var ret POSTStockLineItems201ResponseDataRelationshipsStockReservationData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservation) GetDataOk() (*POSTStockLineItems201ResponseDataRelationshipsStockReservationData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservation) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTStockLineItems201ResponseDataRelationshipsStockReservationData and assigns it to the Data field. +func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservation) SetData(v POSTStockLineItems201ResponseDataRelationshipsStockReservationData) { + o.Data = &v +} + +func (o POSTStockLineItems201ResponseDataRelationshipsStockReservation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTStockLineItems201ResponseDataRelationshipsStockReservation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTStockLineItems201ResponseDataRelationshipsStockReservation struct { + value *POSTStockLineItems201ResponseDataRelationshipsStockReservation + isSet bool +} + +func (v NullablePOSTStockLineItems201ResponseDataRelationshipsStockReservation) Get() *POSTStockLineItems201ResponseDataRelationshipsStockReservation { + return v.value +} + +func (v *NullablePOSTStockLineItems201ResponseDataRelationshipsStockReservation) Set(val *POSTStockLineItems201ResponseDataRelationshipsStockReservation) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTStockLineItems201ResponseDataRelationshipsStockReservation) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTStockLineItems201ResponseDataRelationshipsStockReservation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTStockLineItems201ResponseDataRelationshipsStockReservation(val *POSTStockLineItems201ResponseDataRelationshipsStockReservation) *NullablePOSTStockLineItems201ResponseDataRelationshipsStockReservation { + return &NullablePOSTStockLineItems201ResponseDataRelationshipsStockReservation{value: val, isSet: true} +} + +func (v NullablePOSTStockLineItems201ResponseDataRelationshipsStockReservation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTStockLineItems201ResponseDataRelationshipsStockReservation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_stock_line_items_201_response_data_relationships_stock_reservation_data.go b/api/model_post_stock_line_items_201_response_data_relationships_stock_reservation_data.go new file mode 100644 index 00000000..5e523f43 --- /dev/null +++ b/api/model_post_stock_line_items_201_response_data_relationships_stock_reservation_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTStockLineItems201ResponseDataRelationshipsStockReservationData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTStockLineItems201ResponseDataRelationshipsStockReservationData{} + +// POSTStockLineItems201ResponseDataRelationshipsStockReservationData struct for POSTStockLineItems201ResponseDataRelationshipsStockReservationData +type POSTStockLineItems201ResponseDataRelationshipsStockReservationData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTStockLineItems201ResponseDataRelationshipsStockReservationData instantiates a new POSTStockLineItems201ResponseDataRelationshipsStockReservationData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTStockLineItems201ResponseDataRelationshipsStockReservationData() *POSTStockLineItems201ResponseDataRelationshipsStockReservationData { + this := POSTStockLineItems201ResponseDataRelationshipsStockReservationData{} + return &this +} + +// NewPOSTStockLineItems201ResponseDataRelationshipsStockReservationDataWithDefaults instantiates a new POSTStockLineItems201ResponseDataRelationshipsStockReservationData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTStockLineItems201ResponseDataRelationshipsStockReservationDataWithDefaults() *POSTStockLineItems201ResponseDataRelationshipsStockReservationData { + this := POSTStockLineItems201ResponseDataRelationshipsStockReservationData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTStockLineItems201ResponseDataRelationshipsStockReservationData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTStockLineItems201ResponseDataRelationshipsStockReservationData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTStockLineItems201ResponseDataRelationshipsStockReservationData struct { + value *POSTStockLineItems201ResponseDataRelationshipsStockReservationData + isSet bool +} + +func (v NullablePOSTStockLineItems201ResponseDataRelationshipsStockReservationData) Get() *POSTStockLineItems201ResponseDataRelationshipsStockReservationData { + return v.value +} + +func (v *NullablePOSTStockLineItems201ResponseDataRelationshipsStockReservationData) Set(val *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTStockLineItems201ResponseDataRelationshipsStockReservationData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTStockLineItems201ResponseDataRelationshipsStockReservationData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTStockLineItems201ResponseDataRelationshipsStockReservationData(val *POSTStockLineItems201ResponseDataRelationshipsStockReservationData) *NullablePOSTStockLineItems201ResponseDataRelationshipsStockReservationData { + return &NullablePOSTStockLineItems201ResponseDataRelationshipsStockReservationData{value: val, isSet: true} +} + +func (v NullablePOSTStockLineItems201ResponseDataRelationshipsStockReservationData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTStockLineItems201ResponseDataRelationshipsStockReservationData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_stock_locations_201_response.go b/api/model_post_stock_locations_201_response.go index d87719c1..3a251d68 100644 --- a/api/model_post_stock_locations_201_response.go +++ b/api/model_post_stock_locations_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_stock_locations_201_response_data.go b/api/model_post_stock_locations_201_response_data.go index 97bbd67d..d28fa755 100644 --- a/api/model_post_stock_locations_201_response_data.go +++ b/api/model_post_stock_locations_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_stock_locations_201_response_data_attributes.go b/api/model_post_stock_locations_201_response_data_attributes.go index 5920ec5e..82ae3ae3 100644 --- a/api/model_post_stock_locations_201_response_data_attributes.go +++ b/api/model_post_stock_locations_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,13 +22,15 @@ var _ MappedNullable = &POSTStockLocations201ResponseDataAttributes{} type POSTStockLocations201ResponseDataAttributes struct { // The stock location's internal name. Name interface{} `json:"name"` - // The shipping label format for this stock location. Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG' + // A string that you can use to identify the stock location (must be unique within the environment). + Code interface{} `json:"code,omitempty"` + // The shipping label format for this stock location. Can be one of 'PDF', 'ZPL', 'EPL2', or 'PNG'. LabelFormat interface{} `json:"label_format,omitempty"` // Flag it if you want to skip the electronic invoice creation when generating the customs info for this stock location shipments. SuppressEtd interface{} `json:"suppress_etd,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -78,6 +80,39 @@ func (o *POSTStockLocations201ResponseDataAttributes) SetName(v interface{}) { o.Name = v } +// GetCode returns the Code field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStockLocations201ResponseDataAttributes) GetCode() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Code +} + +// GetCodeOk returns a tuple with the Code field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockLocations201ResponseDataAttributes) GetCodeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Code) { + return nil, false + } + return &o.Code, true +} + +// HasCode returns a boolean if a field has been set. +func (o *POSTStockLocations201ResponseDataAttributes) HasCode() bool { + if o != nil && IsNil(o.Code) { + return true + } + + return false +} + +// SetCode gets a reference to the given interface{} and assigns it to the Code field. +func (o *POSTStockLocations201ResponseDataAttributes) SetCode(v interface{}) { + o.Code = v +} + // GetLabelFormat returns the LabelFormat field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTStockLocations201ResponseDataAttributes) GetLabelFormat() interface{} { if o == nil { @@ -256,6 +291,9 @@ func (o POSTStockLocations201ResponseDataAttributes) ToMap() (map[string]interfa if o.Name != nil { toSerialize["name"] = o.Name } + if o.Code != nil { + toSerialize["code"] = o.Code + } if o.LabelFormat != nil { toSerialize["label_format"] = o.LabelFormat } diff --git a/api/model_post_stock_locations_201_response_data_relationships.go b/api/model_post_stock_locations_201_response_data_relationships.go index 0a19049f..948616e3 100644 --- a/api/model_post_stock_locations_201_response_data_relationships.go +++ b/api/model_post_stock_locations_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -25,7 +25,8 @@ type POSTStockLocations201ResponseDataRelationships struct { InventoryReturnLocations *POSTInventoryModels201ResponseDataRelationshipsInventoryReturnLocations `json:"inventory_return_locations,omitempty"` StockItems *POSTSkus201ResponseDataRelationshipsStockItems `json:"stock_items,omitempty"` StockTransfers *POSTLineItems201ResponseDataRelationshipsStockTransfers `json:"stock_transfers,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTStockLocations201ResponseDataRelationships instantiates a new POSTStockLocations201ResponseDataRelationships object @@ -206,9 +207,9 @@ func (o *POSTStockLocations201ResponseDataRelationships) SetStockTransfers(v POS } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTStockLocations201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTStockLocations201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -216,7 +217,7 @@ func (o *POSTStockLocations201ResponseDataRelationships) GetAttachments() POSTAv // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTStockLocations201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTStockLocations201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -232,11 +233,43 @@ func (o *POSTStockLocations201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTStockLocations201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTStockLocations201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTStockLocations201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockLocations201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTStockLocations201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTStockLocations201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTStockLocations201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -265,6 +298,9 @@ func (o POSTStockLocations201ResponseDataRelationships) ToMap() (map[string]inte if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_stock_reservations_201_response.go b/api/model_post_stock_reservations_201_response.go new file mode 100644 index 00000000..6313856f --- /dev/null +++ b/api/model_post_stock_reservations_201_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTStockReservations201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTStockReservations201Response{} + +// POSTStockReservations201Response struct for POSTStockReservations201Response +type POSTStockReservations201Response struct { + Data *POSTStockReservations201ResponseData `json:"data,omitempty"` +} + +// NewPOSTStockReservations201Response instantiates a new POSTStockReservations201Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTStockReservations201Response() *POSTStockReservations201Response { + this := POSTStockReservations201Response{} + return &this +} + +// NewPOSTStockReservations201ResponseWithDefaults instantiates a new POSTStockReservations201Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTStockReservations201ResponseWithDefaults() *POSTStockReservations201Response { + this := POSTStockReservations201Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTStockReservations201Response) GetData() POSTStockReservations201ResponseData { + if o == nil || IsNil(o.Data) { + var ret POSTStockReservations201ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockReservations201Response) GetDataOk() (*POSTStockReservations201ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTStockReservations201Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTStockReservations201ResponseData and assigns it to the Data field. +func (o *POSTStockReservations201Response) SetData(v POSTStockReservations201ResponseData) { + o.Data = &v +} + +func (o POSTStockReservations201Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTStockReservations201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTStockReservations201Response struct { + value *POSTStockReservations201Response + isSet bool +} + +func (v NullablePOSTStockReservations201Response) Get() *POSTStockReservations201Response { + return v.value +} + +func (v *NullablePOSTStockReservations201Response) Set(val *POSTStockReservations201Response) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTStockReservations201Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTStockReservations201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTStockReservations201Response(val *POSTStockReservations201Response) *NullablePOSTStockReservations201Response { + return &NullablePOSTStockReservations201Response{value: val, isSet: true} +} + +func (v NullablePOSTStockReservations201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTStockReservations201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_stock_reservations_201_response_data.go b/api/model_post_stock_reservations_201_response_data.go new file mode 100644 index 00000000..f3c4d73f --- /dev/null +++ b/api/model_post_stock_reservations_201_response_data.go @@ -0,0 +1,273 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTStockReservations201ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTStockReservations201ResponseData{} + +// POSTStockReservations201ResponseData struct for POSTStockReservations201ResponseData +type POSTStockReservations201ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTStockReservations201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTStockReservations201ResponseDataRelationships `json:"relationships,omitempty"` +} + +// NewPOSTStockReservations201ResponseData instantiates a new POSTStockReservations201ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTStockReservations201ResponseData() *POSTStockReservations201ResponseData { + this := POSTStockReservations201ResponseData{} + return &this +} + +// NewPOSTStockReservations201ResponseDataWithDefaults instantiates a new POSTStockReservations201ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTStockReservations201ResponseDataWithDefaults() *POSTStockReservations201ResponseData { + this := POSTStockReservations201ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStockReservations201ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockReservations201ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTStockReservations201ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTStockReservations201ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStockReservations201ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockReservations201ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTStockReservations201ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTStockReservations201ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTStockReservations201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockReservations201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTStockReservations201ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *POSTStockReservations201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *POSTStockReservations201ResponseData) GetAttributes() POSTStockReservations201ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret POSTStockReservations201ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockReservations201ResponseData) GetAttributesOk() (*POSTStockReservations201ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *POSTStockReservations201ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given POSTStockReservations201ResponseDataAttributes and assigns it to the Attributes field. +func (o *POSTStockReservations201ResponseData) SetAttributes(v POSTStockReservations201ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *POSTStockReservations201ResponseData) GetRelationships() POSTStockReservations201ResponseDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret POSTStockReservations201ResponseDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockReservations201ResponseData) GetRelationshipsOk() (*POSTStockReservations201ResponseDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *POSTStockReservations201ResponseData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given POSTStockReservations201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTStockReservations201ResponseData) SetRelationships(v POSTStockReservations201ResponseDataRelationships) { + o.Relationships = &v +} + +func (o POSTStockReservations201ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTStockReservations201ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePOSTStockReservations201ResponseData struct { + value *POSTStockReservations201ResponseData + isSet bool +} + +func (v NullablePOSTStockReservations201ResponseData) Get() *POSTStockReservations201ResponseData { + return v.value +} + +func (v *NullablePOSTStockReservations201ResponseData) Set(val *POSTStockReservations201ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTStockReservations201ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTStockReservations201ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTStockReservations201ResponseData(val *POSTStockReservations201ResponseData) *NullablePOSTStockReservations201ResponseData { + return &NullablePOSTStockReservations201ResponseData{value: val, isSet: true} +} + +func (v NullablePOSTStockReservations201ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTStockReservations201ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_stock_reservations_201_response_data_attributes.go b/api/model_post_stock_reservations_201_response_data_attributes.go new file mode 100644 index 00000000..d573f12f --- /dev/null +++ b/api/model_post_stock_reservations_201_response_data_attributes.go @@ -0,0 +1,235 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTStockReservations201ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTStockReservations201ResponseDataAttributes{} + +// POSTStockReservations201ResponseDataAttributes struct for POSTStockReservations201ResponseDataAttributes +type POSTStockReservations201ResponseDataAttributes struct { + // The stock reservation quantity. + Quantity interface{} `json:"quantity"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPOSTStockReservations201ResponseDataAttributes instantiates a new POSTStockReservations201ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTStockReservations201ResponseDataAttributes(quantity interface{}) *POSTStockReservations201ResponseDataAttributes { + this := POSTStockReservations201ResponseDataAttributes{} + this.Quantity = quantity + return &this +} + +// NewPOSTStockReservations201ResponseDataAttributesWithDefaults instantiates a new POSTStockReservations201ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTStockReservations201ResponseDataAttributesWithDefaults() *POSTStockReservations201ResponseDataAttributes { + this := POSTStockReservations201ResponseDataAttributes{} + return &this +} + +// GetQuantity returns the Quantity field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTStockReservations201ResponseDataAttributes) GetQuantity() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Quantity +} + +// GetQuantityOk returns a tuple with the Quantity field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockReservations201ResponseDataAttributes) GetQuantityOk() (*interface{}, bool) { + if o == nil || IsNil(o.Quantity) { + return nil, false + } + return &o.Quantity, true +} + +// SetQuantity sets field value +func (o *POSTStockReservations201ResponseDataAttributes) SetQuantity(v interface{}) { + o.Quantity = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStockReservations201ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockReservations201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *POSTStockReservations201ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *POSTStockReservations201ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStockReservations201ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockReservations201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *POSTStockReservations201ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *POSTStockReservations201ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStockReservations201ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockReservations201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *POSTStockReservations201ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *POSTStockReservations201ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o POSTStockReservations201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTStockReservations201ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Quantity != nil { + toSerialize["quantity"] = o.Quantity + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePOSTStockReservations201ResponseDataAttributes struct { + value *POSTStockReservations201ResponseDataAttributes + isSet bool +} + +func (v NullablePOSTStockReservations201ResponseDataAttributes) Get() *POSTStockReservations201ResponseDataAttributes { + return v.value +} + +func (v *NullablePOSTStockReservations201ResponseDataAttributes) Set(val *POSTStockReservations201ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTStockReservations201ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTStockReservations201ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTStockReservations201ResponseDataAttributes(val *POSTStockReservations201ResponseDataAttributes) *NullablePOSTStockReservations201ResponseDataAttributes { + return &NullablePOSTStockReservations201ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePOSTStockReservations201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTStockReservations201ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_stock_reservations_201_response_data_relationships.go b/api/model_post_stock_reservations_201_response_data_relationships.go new file mode 100644 index 00000000..efe3c3fe --- /dev/null +++ b/api/model_post_stock_reservations_201_response_data_relationships.go @@ -0,0 +1,341 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTStockReservations201ResponseDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTStockReservations201ResponseDataRelationships{} + +// POSTStockReservations201ResponseDataRelationships struct for POSTStockReservations201ResponseDataRelationships +type POSTStockReservations201ResponseDataRelationships struct { + LineItem *POSTLineItemOptions201ResponseDataRelationshipsLineItem `json:"line_item,omitempty"` + Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` + StockLineItem *POSTParcelLineItems201ResponseDataRelationshipsStockLineItem `json:"stock_line_item,omitempty"` + StockTransfer *POSTStockReservations201ResponseDataRelationshipsStockTransfer `json:"stock_transfer,omitempty"` + StockItem *GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem `json:"stock_item,omitempty"` + ReservedStock *POSTStockItems201ResponseDataRelationshipsReservedStock `json:"reserved_stock,omitempty"` + Sku *POSTInStockSubscriptions201ResponseDataRelationshipsSku `json:"sku,omitempty"` +} + +// NewPOSTStockReservations201ResponseDataRelationships instantiates a new POSTStockReservations201ResponseDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTStockReservations201ResponseDataRelationships() *POSTStockReservations201ResponseDataRelationships { + this := POSTStockReservations201ResponseDataRelationships{} + return &this +} + +// NewPOSTStockReservations201ResponseDataRelationshipsWithDefaults instantiates a new POSTStockReservations201ResponseDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTStockReservations201ResponseDataRelationshipsWithDefaults() *POSTStockReservations201ResponseDataRelationships { + this := POSTStockReservations201ResponseDataRelationships{} + return &this +} + +// GetLineItem returns the LineItem field value if set, zero value otherwise. +func (o *POSTStockReservations201ResponseDataRelationships) GetLineItem() POSTLineItemOptions201ResponseDataRelationshipsLineItem { + if o == nil || IsNil(o.LineItem) { + var ret POSTLineItemOptions201ResponseDataRelationshipsLineItem + return ret + } + return *o.LineItem +} + +// GetLineItemOk returns a tuple with the LineItem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockReservations201ResponseDataRelationships) GetLineItemOk() (*POSTLineItemOptions201ResponseDataRelationshipsLineItem, bool) { + if o == nil || IsNil(o.LineItem) { + return nil, false + } + return o.LineItem, true +} + +// HasLineItem returns a boolean if a field has been set. +func (o *POSTStockReservations201ResponseDataRelationships) HasLineItem() bool { + if o != nil && !IsNil(o.LineItem) { + return true + } + + return false +} + +// SetLineItem gets a reference to the given POSTLineItemOptions201ResponseDataRelationshipsLineItem and assigns it to the LineItem field. +func (o *POSTStockReservations201ResponseDataRelationships) SetLineItem(v POSTLineItemOptions201ResponseDataRelationshipsLineItem) { + o.LineItem = &v +} + +// GetOrder returns the Order field value if set, zero value otherwise. +func (o *POSTStockReservations201ResponseDataRelationships) GetOrder() POSTAdyenPayments201ResponseDataRelationshipsOrder { + if o == nil || IsNil(o.Order) { + var ret POSTAdyenPayments201ResponseDataRelationshipsOrder + return ret + } + return *o.Order +} + +// GetOrderOk returns a tuple with the Order field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockReservations201ResponseDataRelationships) GetOrderOk() (*POSTAdyenPayments201ResponseDataRelationshipsOrder, bool) { + if o == nil || IsNil(o.Order) { + return nil, false + } + return o.Order, true +} + +// HasOrder returns a boolean if a field has been set. +func (o *POSTStockReservations201ResponseDataRelationships) HasOrder() bool { + if o != nil && !IsNil(o.Order) { + return true + } + + return false +} + +// SetOrder gets a reference to the given POSTAdyenPayments201ResponseDataRelationshipsOrder and assigns it to the Order field. +func (o *POSTStockReservations201ResponseDataRelationships) SetOrder(v POSTAdyenPayments201ResponseDataRelationshipsOrder) { + o.Order = &v +} + +// GetStockLineItem returns the StockLineItem field value if set, zero value otherwise. +func (o *POSTStockReservations201ResponseDataRelationships) GetStockLineItem() POSTParcelLineItems201ResponseDataRelationshipsStockLineItem { + if o == nil || IsNil(o.StockLineItem) { + var ret POSTParcelLineItems201ResponseDataRelationshipsStockLineItem + return ret + } + return *o.StockLineItem +} + +// GetStockLineItemOk returns a tuple with the StockLineItem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockReservations201ResponseDataRelationships) GetStockLineItemOk() (*POSTParcelLineItems201ResponseDataRelationshipsStockLineItem, bool) { + if o == nil || IsNil(o.StockLineItem) { + return nil, false + } + return o.StockLineItem, true +} + +// HasStockLineItem returns a boolean if a field has been set. +func (o *POSTStockReservations201ResponseDataRelationships) HasStockLineItem() bool { + if o != nil && !IsNil(o.StockLineItem) { + return true + } + + return false +} + +// SetStockLineItem gets a reference to the given POSTParcelLineItems201ResponseDataRelationshipsStockLineItem and assigns it to the StockLineItem field. +func (o *POSTStockReservations201ResponseDataRelationships) SetStockLineItem(v POSTParcelLineItems201ResponseDataRelationshipsStockLineItem) { + o.StockLineItem = &v +} + +// GetStockTransfer returns the StockTransfer field value if set, zero value otherwise. +func (o *POSTStockReservations201ResponseDataRelationships) GetStockTransfer() POSTStockReservations201ResponseDataRelationshipsStockTransfer { + if o == nil || IsNil(o.StockTransfer) { + var ret POSTStockReservations201ResponseDataRelationshipsStockTransfer + return ret + } + return *o.StockTransfer +} + +// GetStockTransferOk returns a tuple with the StockTransfer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockReservations201ResponseDataRelationships) GetStockTransferOk() (*POSTStockReservations201ResponseDataRelationshipsStockTransfer, bool) { + if o == nil || IsNil(o.StockTransfer) { + return nil, false + } + return o.StockTransfer, true +} + +// HasStockTransfer returns a boolean if a field has been set. +func (o *POSTStockReservations201ResponseDataRelationships) HasStockTransfer() bool { + if o != nil && !IsNil(o.StockTransfer) { + return true + } + + return false +} + +// SetStockTransfer gets a reference to the given POSTStockReservations201ResponseDataRelationshipsStockTransfer and assigns it to the StockTransfer field. +func (o *POSTStockReservations201ResponseDataRelationships) SetStockTransfer(v POSTStockReservations201ResponseDataRelationshipsStockTransfer) { + o.StockTransfer = &v +} + +// GetStockItem returns the StockItem field value if set, zero value otherwise. +func (o *POSTStockReservations201ResponseDataRelationships) GetStockItem() GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem { + if o == nil || IsNil(o.StockItem) { + var ret GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem + return ret + } + return *o.StockItem +} + +// GetStockItemOk returns a tuple with the StockItem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockReservations201ResponseDataRelationships) GetStockItemOk() (*GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem, bool) { + if o == nil || IsNil(o.StockItem) { + return nil, false + } + return o.StockItem, true +} + +// HasStockItem returns a boolean if a field has been set. +func (o *POSTStockReservations201ResponseDataRelationships) HasStockItem() bool { + if o != nil && !IsNil(o.StockItem) { + return true + } + + return false +} + +// SetStockItem gets a reference to the given GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem and assigns it to the StockItem field. +func (o *POSTStockReservations201ResponseDataRelationships) SetStockItem(v GETReservedStocksReservedStockId200ResponseDataRelationshipsStockItem) { + o.StockItem = &v +} + +// GetReservedStock returns the ReservedStock field value if set, zero value otherwise. +func (o *POSTStockReservations201ResponseDataRelationships) GetReservedStock() POSTStockItems201ResponseDataRelationshipsReservedStock { + if o == nil || IsNil(o.ReservedStock) { + var ret POSTStockItems201ResponseDataRelationshipsReservedStock + return ret + } + return *o.ReservedStock +} + +// GetReservedStockOk returns a tuple with the ReservedStock field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockReservations201ResponseDataRelationships) GetReservedStockOk() (*POSTStockItems201ResponseDataRelationshipsReservedStock, bool) { + if o == nil || IsNil(o.ReservedStock) { + return nil, false + } + return o.ReservedStock, true +} + +// HasReservedStock returns a boolean if a field has been set. +func (o *POSTStockReservations201ResponseDataRelationships) HasReservedStock() bool { + if o != nil && !IsNil(o.ReservedStock) { + return true + } + + return false +} + +// SetReservedStock gets a reference to the given POSTStockItems201ResponseDataRelationshipsReservedStock and assigns it to the ReservedStock field. +func (o *POSTStockReservations201ResponseDataRelationships) SetReservedStock(v POSTStockItems201ResponseDataRelationshipsReservedStock) { + o.ReservedStock = &v +} + +// GetSku returns the Sku field value if set, zero value otherwise. +func (o *POSTStockReservations201ResponseDataRelationships) GetSku() POSTInStockSubscriptions201ResponseDataRelationshipsSku { + if o == nil || IsNil(o.Sku) { + var ret POSTInStockSubscriptions201ResponseDataRelationshipsSku + return ret + } + return *o.Sku +} + +// GetSkuOk returns a tuple with the Sku field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockReservations201ResponseDataRelationships) GetSkuOk() (*POSTInStockSubscriptions201ResponseDataRelationshipsSku, bool) { + if o == nil || IsNil(o.Sku) { + return nil, false + } + return o.Sku, true +} + +// HasSku returns a boolean if a field has been set. +func (o *POSTStockReservations201ResponseDataRelationships) HasSku() bool { + if o != nil && !IsNil(o.Sku) { + return true + } + + return false +} + +// SetSku gets a reference to the given POSTInStockSubscriptions201ResponseDataRelationshipsSku and assigns it to the Sku field. +func (o *POSTStockReservations201ResponseDataRelationships) SetSku(v POSTInStockSubscriptions201ResponseDataRelationshipsSku) { + o.Sku = &v +} + +func (o POSTStockReservations201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTStockReservations201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.LineItem) { + toSerialize["line_item"] = o.LineItem + } + if !IsNil(o.Order) { + toSerialize["order"] = o.Order + } + if !IsNil(o.StockLineItem) { + toSerialize["stock_line_item"] = o.StockLineItem + } + if !IsNil(o.StockTransfer) { + toSerialize["stock_transfer"] = o.StockTransfer + } + if !IsNil(o.StockItem) { + toSerialize["stock_item"] = o.StockItem + } + if !IsNil(o.ReservedStock) { + toSerialize["reserved_stock"] = o.ReservedStock + } + if !IsNil(o.Sku) { + toSerialize["sku"] = o.Sku + } + return toSerialize, nil +} + +type NullablePOSTStockReservations201ResponseDataRelationships struct { + value *POSTStockReservations201ResponseDataRelationships + isSet bool +} + +func (v NullablePOSTStockReservations201ResponseDataRelationships) Get() *POSTStockReservations201ResponseDataRelationships { + return v.value +} + +func (v *NullablePOSTStockReservations201ResponseDataRelationships) Set(val *POSTStockReservations201ResponseDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTStockReservations201ResponseDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTStockReservations201ResponseDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTStockReservations201ResponseDataRelationships(val *POSTStockReservations201ResponseDataRelationships) *NullablePOSTStockReservations201ResponseDataRelationships { + return &NullablePOSTStockReservations201ResponseDataRelationships{value: val, isSet: true} +} + +func (v NullablePOSTStockReservations201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTStockReservations201ResponseDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_stock_reservations_201_response_data_relationships_stock_transfer.go b/api/model_post_stock_reservations_201_response_data_relationships_stock_transfer.go new file mode 100644 index 00000000..d4f7b8c6 --- /dev/null +++ b/api/model_post_stock_reservations_201_response_data_relationships_stock_transfer.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTStockReservations201ResponseDataRelationshipsStockTransfer type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTStockReservations201ResponseDataRelationshipsStockTransfer{} + +// POSTStockReservations201ResponseDataRelationshipsStockTransfer struct for POSTStockReservations201ResponseDataRelationshipsStockTransfer +type POSTStockReservations201ResponseDataRelationshipsStockTransfer struct { + Links *POSTAddresses201ResponseDataRelationshipsGeocoderLinks `json:"links,omitempty"` + Data *POSTStockReservations201ResponseDataRelationshipsStockTransferData `json:"data,omitempty"` +} + +// NewPOSTStockReservations201ResponseDataRelationshipsStockTransfer instantiates a new POSTStockReservations201ResponseDataRelationshipsStockTransfer object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTStockReservations201ResponseDataRelationshipsStockTransfer() *POSTStockReservations201ResponseDataRelationshipsStockTransfer { + this := POSTStockReservations201ResponseDataRelationshipsStockTransfer{} + return &this +} + +// NewPOSTStockReservations201ResponseDataRelationshipsStockTransferWithDefaults instantiates a new POSTStockReservations201ResponseDataRelationshipsStockTransfer object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTStockReservations201ResponseDataRelationshipsStockTransferWithDefaults() *POSTStockReservations201ResponseDataRelationshipsStockTransfer { + this := POSTStockReservations201ResponseDataRelationshipsStockTransfer{} + return &this +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTStockReservations201ResponseDataRelationshipsStockTransfer) GetLinks() POSTAddresses201ResponseDataRelationshipsGeocoderLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataRelationshipsGeocoderLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockReservations201ResponseDataRelationshipsStockTransfer) GetLinksOk() (*POSTAddresses201ResponseDataRelationshipsGeocoderLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTStockReservations201ResponseDataRelationshipsStockTransfer) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataRelationshipsGeocoderLinks and assigns it to the Links field. +func (o *POSTStockReservations201ResponseDataRelationshipsStockTransfer) SetLinks(v POSTAddresses201ResponseDataRelationshipsGeocoderLinks) { + o.Links = &v +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTStockReservations201ResponseDataRelationshipsStockTransfer) GetData() POSTStockReservations201ResponseDataRelationshipsStockTransferData { + if o == nil || IsNil(o.Data) { + var ret POSTStockReservations201ResponseDataRelationshipsStockTransferData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockReservations201ResponseDataRelationshipsStockTransfer) GetDataOk() (*POSTStockReservations201ResponseDataRelationshipsStockTransferData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTStockReservations201ResponseDataRelationshipsStockTransfer) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTStockReservations201ResponseDataRelationshipsStockTransferData and assigns it to the Data field. +func (o *POSTStockReservations201ResponseDataRelationshipsStockTransfer) SetData(v POSTStockReservations201ResponseDataRelationshipsStockTransferData) { + o.Data = &v +} + +func (o POSTStockReservations201ResponseDataRelationshipsStockTransfer) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTStockReservations201ResponseDataRelationshipsStockTransfer) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTStockReservations201ResponseDataRelationshipsStockTransfer struct { + value *POSTStockReservations201ResponseDataRelationshipsStockTransfer + isSet bool +} + +func (v NullablePOSTStockReservations201ResponseDataRelationshipsStockTransfer) Get() *POSTStockReservations201ResponseDataRelationshipsStockTransfer { + return v.value +} + +func (v *NullablePOSTStockReservations201ResponseDataRelationshipsStockTransfer) Set(val *POSTStockReservations201ResponseDataRelationshipsStockTransfer) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTStockReservations201ResponseDataRelationshipsStockTransfer) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTStockReservations201ResponseDataRelationshipsStockTransfer) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTStockReservations201ResponseDataRelationshipsStockTransfer(val *POSTStockReservations201ResponseDataRelationshipsStockTransfer) *NullablePOSTStockReservations201ResponseDataRelationshipsStockTransfer { + return &NullablePOSTStockReservations201ResponseDataRelationshipsStockTransfer{value: val, isSet: true} +} + +func (v NullablePOSTStockReservations201ResponseDataRelationshipsStockTransfer) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTStockReservations201ResponseDataRelationshipsStockTransfer) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_stock_reservations_201_response_data_relationships_stock_transfer_data.go b/api/model_post_stock_reservations_201_response_data_relationships_stock_transfer_data.go new file mode 100644 index 00000000..e4f9def7 --- /dev/null +++ b/api/model_post_stock_reservations_201_response_data_relationships_stock_transfer_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTStockReservations201ResponseDataRelationshipsStockTransferData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTStockReservations201ResponseDataRelationshipsStockTransferData{} + +// POSTStockReservations201ResponseDataRelationshipsStockTransferData struct for POSTStockReservations201ResponseDataRelationshipsStockTransferData +type POSTStockReservations201ResponseDataRelationshipsStockTransferData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource ID + Id interface{} `json:"id,omitempty"` +} + +// NewPOSTStockReservations201ResponseDataRelationshipsStockTransferData instantiates a new POSTStockReservations201ResponseDataRelationshipsStockTransferData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTStockReservations201ResponseDataRelationshipsStockTransferData() *POSTStockReservations201ResponseDataRelationshipsStockTransferData { + this := POSTStockReservations201ResponseDataRelationshipsStockTransferData{} + return &this +} + +// NewPOSTStockReservations201ResponseDataRelationshipsStockTransferDataWithDefaults instantiates a new POSTStockReservations201ResponseDataRelationshipsStockTransferData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTStockReservations201ResponseDataRelationshipsStockTransferDataWithDefaults() *POSTStockReservations201ResponseDataRelationshipsStockTransferData { + this := POSTStockReservations201ResponseDataRelationshipsStockTransferData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTStockReservations201ResponseDataRelationshipsStockTransferData) SetId(v interface{}) { + o.Id = v +} + +func (o POSTStockReservations201ResponseDataRelationshipsStockTransferData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTStockReservations201ResponseDataRelationshipsStockTransferData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullablePOSTStockReservations201ResponseDataRelationshipsStockTransferData struct { + value *POSTStockReservations201ResponseDataRelationshipsStockTransferData + isSet bool +} + +func (v NullablePOSTStockReservations201ResponseDataRelationshipsStockTransferData) Get() *POSTStockReservations201ResponseDataRelationshipsStockTransferData { + return v.value +} + +func (v *NullablePOSTStockReservations201ResponseDataRelationshipsStockTransferData) Set(val *POSTStockReservations201ResponseDataRelationshipsStockTransferData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTStockReservations201ResponseDataRelationshipsStockTransferData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTStockReservations201ResponseDataRelationshipsStockTransferData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTStockReservations201ResponseDataRelationshipsStockTransferData(val *POSTStockReservations201ResponseDataRelationshipsStockTransferData) *NullablePOSTStockReservations201ResponseDataRelationshipsStockTransferData { + return &NullablePOSTStockReservations201ResponseDataRelationshipsStockTransferData{value: val, isSet: true} +} + +func (v NullablePOSTStockReservations201ResponseDataRelationshipsStockTransferData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTStockReservations201ResponseDataRelationshipsStockTransferData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_stock_transfers_201_response.go b/api/model_post_stock_transfers_201_response.go index c277c28e..7461822a 100644 --- a/api/model_post_stock_transfers_201_response.go +++ b/api/model_post_stock_transfers_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_stock_transfers_201_response_data.go b/api/model_post_stock_transfers_201_response_data.go index c1a31ba3..6603cab1 100644 --- a/api/model_post_stock_transfers_201_response_data.go +++ b/api/model_post_stock_transfers_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_stock_transfers_201_response_data_attributes.go b/api/model_post_stock_transfers_201_response_data_attributes.go index ae6c5501..3a34d41c 100644 --- a/api/model_post_stock_transfers_201_response_data_attributes.go +++ b/api/model_post_stock_transfers_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,13 +20,15 @@ var _ MappedNullable = &POSTStockTransfers201ResponseDataAttributes{} // POSTStockTransfers201ResponseDataAttributes struct for POSTStockTransfers201ResponseDataAttributes type POSTStockTransfers201ResponseDataAttributes struct { + // Unique identifier for the stock transfer (numeric). + Number interface{} `json:"number,omitempty"` // The code of the associated SKU. SkuCode interface{} `json:"sku_code,omitempty"` - // The stock quantity to be transferred from the origin stock location to destination one + // The stock quantity to be transferred from the origin stock location to destination one. Quantity interface{} `json:"quantity"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -50,6 +52,39 @@ func NewPOSTStockTransfers201ResponseDataAttributesWithDefaults() *POSTStockTran return &this } +// GetNumber returns the Number field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStockTransfers201ResponseDataAttributes) GetNumber() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Number +} + +// GetNumberOk returns a tuple with the Number field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStockTransfers201ResponseDataAttributes) GetNumberOk() (*interface{}, bool) { + if o == nil || IsNil(o.Number) { + return nil, false + } + return &o.Number, true +} + +// HasNumber returns a boolean if a field has been set. +func (o *POSTStockTransfers201ResponseDataAttributes) HasNumber() bool { + if o != nil && IsNil(o.Number) { + return true + } + + return false +} + +// SetNumber gets a reference to the given interface{} and assigns it to the Number field. +func (o *POSTStockTransfers201ResponseDataAttributes) SetNumber(v interface{}) { + o.Number = v +} + // GetSkuCode returns the SkuCode field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTStockTransfers201ResponseDataAttributes) GetSkuCode() interface{} { if o == nil { @@ -218,6 +253,9 @@ func (o POSTStockTransfers201ResponseDataAttributes) MarshalJSON() ([]byte, erro func (o POSTStockTransfers201ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Number != nil { + toSerialize["number"] = o.Number + } if o.SkuCode != nil { toSerialize["sku_code"] = o.SkuCode } diff --git a/api/model_post_stock_transfers_201_response_data_relationships.go b/api/model_post_stock_transfers_201_response_data_relationships.go index d68160d1..3f25506a 100644 --- a/api/model_post_stock_transfers_201_response_data_relationships.go +++ b/api/model_post_stock_transfers_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,12 +20,15 @@ var _ MappedNullable = &POSTStockTransfers201ResponseDataRelationships{} // POSTStockTransfers201ResponseDataRelationships struct for POSTStockTransfers201ResponseDataRelationships type POSTStockTransfers201ResponseDataRelationships struct { - Sku *POSTInStockSubscriptions201ResponseDataRelationshipsSku `json:"sku,omitempty"` - OriginStockLocation *POSTStockTransfers201ResponseDataRelationshipsOriginStockLocation `json:"origin_stock_location,omitempty"` - DestinationStockLocation *POSTStockTransfers201ResponseDataRelationshipsDestinationStockLocation `json:"destination_stock_location,omitempty"` - Shipment *POSTParcels201ResponseDataRelationshipsShipment `json:"shipment,omitempty"` - LineItem *POSTLineItemOptions201ResponseDataRelationshipsLineItem `json:"line_item,omitempty"` - Events *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents `json:"events,omitempty"` + Sku *POSTInStockSubscriptions201ResponseDataRelationshipsSku `json:"sku,omitempty"` + OriginStockLocation *POSTStockTransfers201ResponseDataRelationshipsOriginStockLocation `json:"origin_stock_location,omitempty"` + DestinationStockLocation *POSTStockTransfers201ResponseDataRelationshipsDestinationStockLocation `json:"destination_stock_location,omitempty"` + Shipment *POSTLineItems201ResponseDataRelationshipsShipment `json:"shipment,omitempty"` + LineItem *POSTLineItemOptions201ResponseDataRelationshipsLineItem `json:"line_item,omitempty"` + StockReservation *POSTStockLineItems201ResponseDataRelationshipsStockReservation `json:"stock_reservation,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *POSTAddresses201ResponseDataRelationshipsEvents `json:"events,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTStockTransfers201ResponseDataRelationships instantiates a new POSTStockTransfers201ResponseDataRelationships object @@ -142,9 +145,9 @@ func (o *POSTStockTransfers201ResponseDataRelationships) SetDestinationStockLoca } // GetShipment returns the Shipment field value if set, zero value otherwise. -func (o *POSTStockTransfers201ResponseDataRelationships) GetShipment() POSTParcels201ResponseDataRelationshipsShipment { +func (o *POSTStockTransfers201ResponseDataRelationships) GetShipment() POSTLineItems201ResponseDataRelationshipsShipment { if o == nil || IsNil(o.Shipment) { - var ret POSTParcels201ResponseDataRelationshipsShipment + var ret POSTLineItems201ResponseDataRelationshipsShipment return ret } return *o.Shipment @@ -152,7 +155,7 @@ func (o *POSTStockTransfers201ResponseDataRelationships) GetShipment() POSTParce // GetShipmentOk returns a tuple with the Shipment field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTStockTransfers201ResponseDataRelationships) GetShipmentOk() (*POSTParcels201ResponseDataRelationshipsShipment, bool) { +func (o *POSTStockTransfers201ResponseDataRelationships) GetShipmentOk() (*POSTLineItems201ResponseDataRelationshipsShipment, bool) { if o == nil || IsNil(o.Shipment) { return nil, false } @@ -168,8 +171,8 @@ func (o *POSTStockTransfers201ResponseDataRelationships) HasShipment() bool { return false } -// SetShipment gets a reference to the given POSTParcels201ResponseDataRelationshipsShipment and assigns it to the Shipment field. -func (o *POSTStockTransfers201ResponseDataRelationships) SetShipment(v POSTParcels201ResponseDataRelationshipsShipment) { +// SetShipment gets a reference to the given POSTLineItems201ResponseDataRelationshipsShipment and assigns it to the Shipment field. +func (o *POSTStockTransfers201ResponseDataRelationships) SetShipment(v POSTLineItems201ResponseDataRelationshipsShipment) { o.Shipment = &v } @@ -205,10 +208,74 @@ func (o *POSTStockTransfers201ResponseDataRelationships) SetLineItem(v POSTLineI o.LineItem = &v } +// GetStockReservation returns the StockReservation field value if set, zero value otherwise. +func (o *POSTStockTransfers201ResponseDataRelationships) GetStockReservation() POSTStockLineItems201ResponseDataRelationshipsStockReservation { + if o == nil || IsNil(o.StockReservation) { + var ret POSTStockLineItems201ResponseDataRelationshipsStockReservation + return ret + } + return *o.StockReservation +} + +// GetStockReservationOk returns a tuple with the StockReservation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockTransfers201ResponseDataRelationships) GetStockReservationOk() (*POSTStockLineItems201ResponseDataRelationshipsStockReservation, bool) { + if o == nil || IsNil(o.StockReservation) { + return nil, false + } + return o.StockReservation, true +} + +// HasStockReservation returns a boolean if a field has been set. +func (o *POSTStockTransfers201ResponseDataRelationships) HasStockReservation() bool { + if o != nil && !IsNil(o.StockReservation) { + return true + } + + return false +} + +// SetStockReservation gets a reference to the given POSTStockLineItems201ResponseDataRelationshipsStockReservation and assigns it to the StockReservation field. +func (o *POSTStockTransfers201ResponseDataRelationships) SetStockReservation(v POSTStockLineItems201ResponseDataRelationshipsStockReservation) { + o.StockReservation = &v +} + +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *POSTStockTransfers201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockTransfers201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *POSTStockTransfers201ResponseDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTStockTransfers201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { + o.Attachments = &v +} + // GetEvents returns the Events field value if set, zero value otherwise. -func (o *POSTStockTransfers201ResponseDataRelationships) GetEvents() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents { +func (o *POSTStockTransfers201ResponseDataRelationships) GetEvents() POSTAddresses201ResponseDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents + var ret POSTAddresses201ResponseDataRelationshipsEvents return ret } return *o.Events @@ -216,7 +283,7 @@ func (o *POSTStockTransfers201ResponseDataRelationships) GetEvents() GETAuthoriz // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTStockTransfers201ResponseDataRelationships) GetEventsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents, bool) { +func (o *POSTStockTransfers201ResponseDataRelationships) GetEventsOk() (*POSTAddresses201ResponseDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -232,11 +299,43 @@ func (o *POSTStockTransfers201ResponseDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents and assigns it to the Events field. -func (o *POSTStockTransfers201ResponseDataRelationships) SetEvents(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsEvents) { +// SetEvents gets a reference to the given POSTAddresses201ResponseDataRelationshipsEvents and assigns it to the Events field. +func (o *POSTStockTransfers201ResponseDataRelationships) SetEvents(v POSTAddresses201ResponseDataRelationshipsEvents) { o.Events = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTStockTransfers201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStockTransfers201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTStockTransfers201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTStockTransfers201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTStockTransfers201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -262,9 +361,18 @@ func (o POSTStockTransfers201ResponseDataRelationships) ToMap() (map[string]inte if !IsNil(o.LineItem) { toSerialize["line_item"] = o.LineItem } + if !IsNil(o.StockReservation) { + toSerialize["stock_reservation"] = o.StockReservation + } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_stock_transfers_201_response_data_relationships_destination_stock_location.go b/api/model_post_stock_transfers_201_response_data_relationships_destination_stock_location.go index e5e2591f..45a5deae 100644 --- a/api/model_post_stock_transfers_201_response_data_relationships_destination_stock_location.go +++ b/api/model_post_stock_transfers_201_response_data_relationships_destination_stock_location.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_stock_transfers_201_response_data_relationships_destination_stock_location_data.go b/api/model_post_stock_transfers_201_response_data_relationships_destination_stock_location_data.go index ef2ac45d..746e4db5 100644 --- a/api/model_post_stock_transfers_201_response_data_relationships_destination_stock_location_data.go +++ b/api/model_post_stock_transfers_201_response_data_relationships_destination_stock_location_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_stock_transfers_201_response_data_relationships_origin_stock_location.go b/api/model_post_stock_transfers_201_response_data_relationships_origin_stock_location.go index 49a24358..a96bea79 100644 --- a/api/model_post_stock_transfers_201_response_data_relationships_origin_stock_location.go +++ b/api/model_post_stock_transfers_201_response_data_relationships_origin_stock_location.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_stock_transfers_201_response_data_relationships_origin_stock_location_data.go b/api/model_post_stock_transfers_201_response_data_relationships_origin_stock_location_data.go index 71feac14..2dd6812c 100644 --- a/api/model_post_stock_transfers_201_response_data_relationships_origin_stock_location_data.go +++ b/api/model_post_stock_transfers_201_response_data_relationships_origin_stock_location_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_stripe_gateways_201_response.go b/api/model_post_stripe_gateways_201_response.go index c885a6c4..96e52c52 100644 --- a/api/model_post_stripe_gateways_201_response.go +++ b/api/model_post_stripe_gateways_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_stripe_gateways_201_response_data.go b/api/model_post_stripe_gateways_201_response_data.go index 27b7c143..7fb7a73a 100644 --- a/api/model_post_stripe_gateways_201_response_data.go +++ b/api/model_post_stripe_gateways_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_stripe_gateways_201_response_data_attributes.go b/api/model_post_stripe_gateways_201_response_data_attributes.go index 48459f7c..d7aa40de 100644 --- a/api/model_post_stripe_gateways_201_response_data_attributes.go +++ b/api/model_post_stripe_gateways_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type POSTStripeGateways201ResponseDataAttributes struct { Name interface{} `json:"name"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -32,6 +32,8 @@ type POSTStripeGateways201ResponseDataAttributes struct { Login interface{} `json:"login"` // The gateway publishable API key. PublishableKey interface{} `json:"publishable_key,omitempty"` + // The account (if any) for which the funds of the PaymentIntent are intended. + ConnectedAccount interface{} `json:"connected_account,omitempty"` // Indicates if the gateway will accept payment methods enabled in the Stripe dashboard. AutoPayments interface{} `json:"auto_payments,omitempty"` } @@ -239,6 +241,39 @@ func (o *POSTStripeGateways201ResponseDataAttributes) SetPublishableKey(v interf o.PublishableKey = v } +// GetConnectedAccount returns the ConnectedAccount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStripeGateways201ResponseDataAttributes) GetConnectedAccount() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ConnectedAccount +} + +// GetConnectedAccountOk returns a tuple with the ConnectedAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStripeGateways201ResponseDataAttributes) GetConnectedAccountOk() (*interface{}, bool) { + if o == nil || IsNil(o.ConnectedAccount) { + return nil, false + } + return &o.ConnectedAccount, true +} + +// HasConnectedAccount returns a boolean if a field has been set. +func (o *POSTStripeGateways201ResponseDataAttributes) HasConnectedAccount() bool { + if o != nil && IsNil(o.ConnectedAccount) { + return true + } + + return false +} + +// SetConnectedAccount gets a reference to the given interface{} and assigns it to the ConnectedAccount field. +func (o *POSTStripeGateways201ResponseDataAttributes) SetConnectedAccount(v interface{}) { + o.ConnectedAccount = v +} + // GetAutoPayments returns the AutoPayments field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTStripeGateways201ResponseDataAttributes) GetAutoPayments() interface{} { if o == nil { @@ -300,6 +335,9 @@ func (o POSTStripeGateways201ResponseDataAttributes) ToMap() (map[string]interfa if o.PublishableKey != nil { toSerialize["publishable_key"] = o.PublishableKey } + if o.ConnectedAccount != nil { + toSerialize["connected_account"] = o.ConnectedAccount + } if o.AutoPayments != nil { toSerialize["auto_payments"] = o.AutoPayments } diff --git a/api/model_post_stripe_gateways_201_response_data_relationships.go b/api/model_post_stripe_gateways_201_response_data_relationships.go index ea109d68..2bf504e7 100644 --- a/api/model_post_stripe_gateways_201_response_data_relationships.go +++ b/api/model_post_stripe_gateways_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &POSTStripeGateways201ResponseDataRelationships{} // POSTStripeGateways201ResponseDataRelationships struct for POSTStripeGateways201ResponseDataRelationships type POSTStripeGateways201ResponseDataRelationships struct { PaymentMethods *POSTAdyenGateways201ResponseDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` StripePayments *POSTStripeGateways201ResponseDataRelationshipsStripePayments `json:"stripe_payments,omitempty"` } @@ -73,6 +74,38 @@ func (o *POSTStripeGateways201ResponseDataRelationships) SetPaymentMethods(v POS o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTStripeGateways201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTStripeGateways201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTStripeGateways201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTStripeGateways201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + // GetStripePayments returns the StripePayments field value if set, zero value otherwise. func (o *POSTStripeGateways201ResponseDataRelationships) GetStripePayments() POSTStripeGateways201ResponseDataRelationshipsStripePayments { if o == nil || IsNil(o.StripePayments) { @@ -118,6 +151,9 @@ func (o POSTStripeGateways201ResponseDataRelationships) ToMap() (map[string]inte if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.StripePayments) { toSerialize["stripe_payments"] = o.StripePayments } diff --git a/api/model_post_stripe_gateways_201_response_data_relationships_stripe_payments.go b/api/model_post_stripe_gateways_201_response_data_relationships_stripe_payments.go index 218b5521..dcce05d8 100644 --- a/api/model_post_stripe_gateways_201_response_data_relationships_stripe_payments.go +++ b/api/model_post_stripe_gateways_201_response_data_relationships_stripe_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_stripe_gateways_201_response_data_relationships_stripe_payments_data.go b/api/model_post_stripe_gateways_201_response_data_relationships_stripe_payments_data.go index c7f92ab9..fc61f3a7 100644 --- a/api/model_post_stripe_gateways_201_response_data_relationships_stripe_payments_data.go +++ b/api/model_post_stripe_gateways_201_response_data_relationships_stripe_payments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_stripe_payments_201_response.go b/api/model_post_stripe_payments_201_response.go index 0ec70054..533f6e82 100644 --- a/api/model_post_stripe_payments_201_response.go +++ b/api/model_post_stripe_payments_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_stripe_payments_201_response_data.go b/api/model_post_stripe_payments_201_response_data.go index 7ff9a939..f21bb898 100644 --- a/api/model_post_stripe_payments_201_response_data.go +++ b/api/model_post_stripe_payments_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_stripe_payments_201_response_data_attributes.go b/api/model_post_stripe_payments_201_response_data_attributes.go index 1c402ea2..96777100 100644 --- a/api/model_post_stripe_payments_201_response_data_attributes.go +++ b/api/model_post_stripe_payments_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,11 +20,19 @@ var _ MappedNullable = &POSTStripePayments201ResponseDataAttributes{} // POSTStripePayments201ResponseDataAttributes struct for POSTStripePayments201ResponseDataAttributes type POSTStripePayments201ResponseDataAttributes struct { - // Stripe payment options: 'customer', 'payment_method', etc. Check Stripe payment intent API for more details. + // The Stripe payment intent ID. Required to identify a payment session on stripe. + StripeId interface{} `json:"stripe_id,omitempty"` + // The Stripe payment intent client secret. Required to create a charge through Stripe.js. + ClientSecret interface{} `json:"client_secret,omitempty"` + // Stripe payment options: 'customer', 'payment_method', 'return_url', etc. Check Stripe payment intent API for more details. Options interface{} `json:"options,omitempty"` + // The URL to return to when a redirect payment is completed. + ReturnUrl interface{} `json:"return_url,omitempty"` + // The email address to send the receipt to. + ReceiptEmail interface{} `json:"receipt_email,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -47,6 +55,72 @@ func NewPOSTStripePayments201ResponseDataAttributesWithDefaults() *POSTStripePay return &this } +// GetStripeId returns the StripeId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStripePayments201ResponseDataAttributes) GetStripeId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.StripeId +} + +// GetStripeIdOk returns a tuple with the StripeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStripePayments201ResponseDataAttributes) GetStripeIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.StripeId) { + return nil, false + } + return &o.StripeId, true +} + +// HasStripeId returns a boolean if a field has been set. +func (o *POSTStripePayments201ResponseDataAttributes) HasStripeId() bool { + if o != nil && IsNil(o.StripeId) { + return true + } + + return false +} + +// SetStripeId gets a reference to the given interface{} and assigns it to the StripeId field. +func (o *POSTStripePayments201ResponseDataAttributes) SetStripeId(v interface{}) { + o.StripeId = v +} + +// GetClientSecret returns the ClientSecret field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStripePayments201ResponseDataAttributes) GetClientSecret() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ClientSecret +} + +// GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStripePayments201ResponseDataAttributes) GetClientSecretOk() (*interface{}, bool) { + if o == nil || IsNil(o.ClientSecret) { + return nil, false + } + return &o.ClientSecret, true +} + +// HasClientSecret returns a boolean if a field has been set. +func (o *POSTStripePayments201ResponseDataAttributes) HasClientSecret() bool { + if o != nil && IsNil(o.ClientSecret) { + return true + } + + return false +} + +// SetClientSecret gets a reference to the given interface{} and assigns it to the ClientSecret field. +func (o *POSTStripePayments201ResponseDataAttributes) SetClientSecret(v interface{}) { + o.ClientSecret = v +} + // GetOptions returns the Options field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTStripePayments201ResponseDataAttributes) GetOptions() interface{} { if o == nil { @@ -80,6 +154,72 @@ func (o *POSTStripePayments201ResponseDataAttributes) SetOptions(v interface{}) o.Options = v } +// GetReturnUrl returns the ReturnUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStripePayments201ResponseDataAttributes) GetReturnUrl() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReturnUrl +} + +// GetReturnUrlOk returns a tuple with the ReturnUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStripePayments201ResponseDataAttributes) GetReturnUrlOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReturnUrl) { + return nil, false + } + return &o.ReturnUrl, true +} + +// HasReturnUrl returns a boolean if a field has been set. +func (o *POSTStripePayments201ResponseDataAttributes) HasReturnUrl() bool { + if o != nil && IsNil(o.ReturnUrl) { + return true + } + + return false +} + +// SetReturnUrl gets a reference to the given interface{} and assigns it to the ReturnUrl field. +func (o *POSTStripePayments201ResponseDataAttributes) SetReturnUrl(v interface{}) { + o.ReturnUrl = v +} + +// GetReceiptEmail returns the ReceiptEmail field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTStripePayments201ResponseDataAttributes) GetReceiptEmail() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReceiptEmail +} + +// GetReceiptEmailOk returns a tuple with the ReceiptEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTStripePayments201ResponseDataAttributes) GetReceiptEmailOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReceiptEmail) { + return nil, false + } + return &o.ReceiptEmail, true +} + +// HasReceiptEmail returns a boolean if a field has been set. +func (o *POSTStripePayments201ResponseDataAttributes) HasReceiptEmail() bool { + if o != nil && IsNil(o.ReceiptEmail) { + return true + } + + return false +} + +// SetReceiptEmail gets a reference to the given interface{} and assigns it to the ReceiptEmail field. +func (o *POSTStripePayments201ResponseDataAttributes) SetReceiptEmail(v interface{}) { + o.ReceiptEmail = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTStripePayments201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -189,9 +329,21 @@ func (o POSTStripePayments201ResponseDataAttributes) MarshalJSON() ([]byte, erro func (o POSTStripePayments201ResponseDataAttributes) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.StripeId != nil { + toSerialize["stripe_id"] = o.StripeId + } + if o.ClientSecret != nil { + toSerialize["client_secret"] = o.ClientSecret + } if o.Options != nil { toSerialize["options"] = o.Options } + if o.ReturnUrl != nil { + toSerialize["return_url"] = o.ReturnUrl + } + if o.ReceiptEmail != nil { + toSerialize["receipt_email"] = o.ReceiptEmail + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_subscription_models_201_response.go b/api/model_post_subscription_models_201_response.go index 060db91a..6f587edf 100644 --- a/api/model_post_subscription_models_201_response.go +++ b/api/model_post_subscription_models_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_subscription_models_201_response_data.go b/api/model_post_subscription_models_201_response_data.go index 952db39f..e23bdb65 100644 --- a/api/model_post_subscription_models_201_response_data.go +++ b/api/model_post_subscription_models_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_subscription_models_201_response_data_attributes.go b/api/model_post_subscription_models_201_response_data_attributes.go index b7e82abc..e3eb8234 100644 --- a/api/model_post_subscription_models_201_response_data_attributes.go +++ b/api/model_post_subscription_models_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -32,7 +32,7 @@ type POSTSubscriptionModels201ResponseDataAttributes struct { AutoCancel interface{} `json:"auto_cancel,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_subscription_models_201_response_data_relationships.go b/api/model_post_subscription_models_201_response_data_relationships.go index 9b67146b..2e7485e4 100644 --- a/api/model_post_subscription_models_201_response_data_relationships.go +++ b/api/model_post_subscription_models_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,9 @@ var _ MappedNullable = &POSTSubscriptionModels201ResponseDataRelationships{} // POSTSubscriptionModels201ResponseDataRelationships struct for POSTSubscriptionModels201ResponseDataRelationships type POSTSubscriptionModels201ResponseDataRelationships struct { - Markets *POSTAvalaraAccounts201ResponseDataRelationshipsMarkets `json:"markets,omitempty"` - OrderSubscriptions *POSTCustomers201ResponseDataRelationshipsOrderSubscriptions `json:"order_subscriptions,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Markets *POSTAvalaraAccounts201ResponseDataRelationshipsMarkets `json:"markets,omitempty"` + OrderSubscriptions *POSTCustomers201ResponseDataRelationshipsOrderSubscriptions `json:"order_subscriptions,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` } // NewPOSTSubscriptionModels201ResponseDataRelationships instantiates a new POSTSubscriptionModels201ResponseDataRelationships object @@ -107,9 +107,9 @@ func (o *POSTSubscriptionModels201ResponseDataRelationships) SetOrderSubscriptio } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTSubscriptionModels201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTSubscriptionModels201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -117,7 +117,7 @@ func (o *POSTSubscriptionModels201ResponseDataRelationships) GetAttachments() PO // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTSubscriptionModels201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTSubscriptionModels201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -133,8 +133,8 @@ func (o *POSTSubscriptionModels201ResponseDataRelationships) HasAttachments() bo return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTSubscriptionModels201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTSubscriptionModels201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } diff --git a/api/model_post_tags_201_response.go b/api/model_post_tags_201_response.go new file mode 100644 index 00000000..a5112fd5 --- /dev/null +++ b/api/model_post_tags_201_response.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTTags201Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTTags201Response{} + +// POSTTags201Response struct for POSTTags201Response +type POSTTags201Response struct { + Data *POSTTags201ResponseData `json:"data,omitempty"` +} + +// NewPOSTTags201Response instantiates a new POSTTags201Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTTags201Response() *POSTTags201Response { + this := POSTTags201Response{} + return &this +} + +// NewPOSTTags201ResponseWithDefaults instantiates a new POSTTags201Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTTags201ResponseWithDefaults() *POSTTags201Response { + this := POSTTags201Response{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *POSTTags201Response) GetData() POSTTags201ResponseData { + if o == nil || IsNil(o.Data) { + var ret POSTTags201ResponseData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTTags201Response) GetDataOk() (*POSTTags201ResponseData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *POSTTags201Response) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given POSTTags201ResponseData and assigns it to the Data field. +func (o *POSTTags201Response) SetData(v POSTTags201ResponseData) { + o.Data = &v +} + +func (o POSTTags201Response) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTTags201Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePOSTTags201Response struct { + value *POSTTags201Response + isSet bool +} + +func (v NullablePOSTTags201Response) Get() *POSTTags201Response { + return v.value +} + +func (v *NullablePOSTTags201Response) Set(val *POSTTags201Response) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTTags201Response) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTTags201Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTTags201Response(val *POSTTags201Response) *NullablePOSTTags201Response { + return &NullablePOSTTags201Response{value: val, isSet: true} +} + +func (v NullablePOSTTags201Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTTags201Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_tags_201_response_data.go b/api/model_post_tags_201_response_data.go new file mode 100644 index 00000000..e3b92590 --- /dev/null +++ b/api/model_post_tags_201_response_data.go @@ -0,0 +1,274 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTTags201ResponseData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTTags201ResponseData{} + +// POSTTags201ResponseData struct for POSTTags201ResponseData +type POSTTags201ResponseData struct { + // The resource's id + Id interface{} `json:"id,omitempty"` + // The resource's type + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTTags201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships interface{} `json:"relationships,omitempty"` +} + +// NewPOSTTags201ResponseData instantiates a new POSTTags201ResponseData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTTags201ResponseData() *POSTTags201ResponseData { + this := POSTTags201ResponseData{} + return &this +} + +// NewPOSTTags201ResponseDataWithDefaults instantiates a new POSTTags201ResponseData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTTags201ResponseDataWithDefaults() *POSTTags201ResponseData { + this := POSTTags201ResponseData{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTTags201ResponseData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTTags201ResponseData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *POSTTags201ResponseData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *POSTTags201ResponseData) SetId(v interface{}) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTTags201ResponseData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTTags201ResponseData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *POSTTags201ResponseData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *POSTTags201ResponseData) SetType(v interface{}) { + o.Type = v +} + +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *POSTTags201ResponseData) GetLinks() POSTAddresses201ResponseDataLinks { + if o == nil || IsNil(o.Links) { + var ret POSTAddresses201ResponseDataLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTTags201ResponseData) GetLinksOk() (*POSTAddresses201ResponseDataLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *POSTTags201ResponseData) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given POSTAddresses201ResponseDataLinks and assigns it to the Links field. +func (o *POSTTags201ResponseData) SetLinks(v POSTAddresses201ResponseDataLinks) { + o.Links = &v +} + +// GetAttributes returns the Attributes field value if set, zero value otherwise. +func (o *POSTTags201ResponseData) GetAttributes() POSTTags201ResponseDataAttributes { + if o == nil || IsNil(o.Attributes) { + var ret POSTTags201ResponseDataAttributes + return ret + } + return *o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTTags201ResponseData) GetAttributesOk() (*POSTTags201ResponseDataAttributes, bool) { + if o == nil || IsNil(o.Attributes) { + return nil, false + } + return o.Attributes, true +} + +// HasAttributes returns a boolean if a field has been set. +func (o *POSTTags201ResponseData) HasAttributes() bool { + if o != nil && !IsNil(o.Attributes) { + return true + } + + return false +} + +// SetAttributes gets a reference to the given POSTTags201ResponseDataAttributes and assigns it to the Attributes field. +func (o *POSTTags201ResponseData) SetAttributes(v POSTTags201ResponseDataAttributes) { + o.Attributes = &v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTTags201ResponseData) GetRelationships() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTTags201ResponseData) GetRelationshipsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return &o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *POSTTags201ResponseData) HasRelationships() bool { + if o != nil && IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. +func (o *POSTTags201ResponseData) SetRelationships(v interface{}) { + o.Relationships = v +} + +func (o POSTTags201ResponseData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTTags201ResponseData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id != nil { + toSerialize["id"] = o.Id + } + if o.Type != nil { + toSerialize["type"] = o.Type + } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Attributes) { + toSerialize["attributes"] = o.Attributes + } + if o.Relationships != nil { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePOSTTags201ResponseData struct { + value *POSTTags201ResponseData + isSet bool +} + +func (v NullablePOSTTags201ResponseData) Get() *POSTTags201ResponseData { + return v.value +} + +func (v *NullablePOSTTags201ResponseData) Set(val *POSTTags201ResponseData) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTTags201ResponseData) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTTags201ResponseData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTTags201ResponseData(val *POSTTags201ResponseData) *NullablePOSTTags201ResponseData { + return &NullablePOSTTags201ResponseData{value: val, isSet: true} +} + +func (v NullablePOSTTags201ResponseData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTTags201ResponseData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_tags_201_response_data_attributes.go b/api/model_post_tags_201_response_data_attributes.go new file mode 100644 index 00000000..41488b03 --- /dev/null +++ b/api/model_post_tags_201_response_data_attributes.go @@ -0,0 +1,235 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTTags201ResponseDataAttributes type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTTags201ResponseDataAttributes{} + +// POSTTags201ResponseDataAttributes struct for POSTTags201ResponseDataAttributes +type POSTTags201ResponseDataAttributes struct { + // The tag name. + Name interface{} `json:"name"` + // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. + Reference interface{} `json:"reference,omitempty"` + // Any identifier of the third party system that defines the reference code. + ReferenceOrigin interface{} `json:"reference_origin,omitempty"` + // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. + Metadata interface{} `json:"metadata,omitempty"` +} + +// NewPOSTTags201ResponseDataAttributes instantiates a new POSTTags201ResponseDataAttributes object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTTags201ResponseDataAttributes(name interface{}) *POSTTags201ResponseDataAttributes { + this := POSTTags201ResponseDataAttributes{} + this.Name = name + return &this +} + +// NewPOSTTags201ResponseDataAttributesWithDefaults instantiates a new POSTTags201ResponseDataAttributes object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTTags201ResponseDataAttributesWithDefaults() *POSTTags201ResponseDataAttributes { + this := POSTTags201ResponseDataAttributes{} + return &this +} + +// GetName returns the Name field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *POSTTags201ResponseDataAttributes) GetName() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTTags201ResponseDataAttributes) GetNameOk() (*interface{}, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *POSTTags201ResponseDataAttributes) SetName(v interface{}) { + o.Name = v +} + +// GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTTags201ResponseDataAttributes) GetReference() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Reference +} + +// GetReferenceOk returns a tuple with the Reference field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTTags201ResponseDataAttributes) GetReferenceOk() (*interface{}, bool) { + if o == nil || IsNil(o.Reference) { + return nil, false + } + return &o.Reference, true +} + +// HasReference returns a boolean if a field has been set. +func (o *POSTTags201ResponseDataAttributes) HasReference() bool { + if o != nil && IsNil(o.Reference) { + return true + } + + return false +} + +// SetReference gets a reference to the given interface{} and assigns it to the Reference field. +func (o *POSTTags201ResponseDataAttributes) SetReference(v interface{}) { + o.Reference = v +} + +// GetReferenceOrigin returns the ReferenceOrigin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTTags201ResponseDataAttributes) GetReferenceOrigin() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.ReferenceOrigin +} + +// GetReferenceOriginOk returns a tuple with the ReferenceOrigin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTTags201ResponseDataAttributes) GetReferenceOriginOk() (*interface{}, bool) { + if o == nil || IsNil(o.ReferenceOrigin) { + return nil, false + } + return &o.ReferenceOrigin, true +} + +// HasReferenceOrigin returns a boolean if a field has been set. +func (o *POSTTags201ResponseDataAttributes) HasReferenceOrigin() bool { + if o != nil && IsNil(o.ReferenceOrigin) { + return true + } + + return false +} + +// SetReferenceOrigin gets a reference to the given interface{} and assigns it to the ReferenceOrigin field. +func (o *POSTTags201ResponseDataAttributes) SetReferenceOrigin(v interface{}) { + o.ReferenceOrigin = v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTTags201ResponseDataAttributes) GetMetadata() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTTags201ResponseDataAttributes) GetMetadataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return &o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *POSTTags201ResponseDataAttributes) HasMetadata() bool { + if o != nil && IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given interface{} and assigns it to the Metadata field. +func (o *POSTTags201ResponseDataAttributes) SetMetadata(v interface{}) { + o.Metadata = v +} + +func (o POSTTags201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTTags201ResponseDataAttributes) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name != nil { + toSerialize["name"] = o.Name + } + if o.Reference != nil { + toSerialize["reference"] = o.Reference + } + if o.ReferenceOrigin != nil { + toSerialize["reference_origin"] = o.ReferenceOrigin + } + if o.Metadata != nil { + toSerialize["metadata"] = o.Metadata + } + return toSerialize, nil +} + +type NullablePOSTTags201ResponseDataAttributes struct { + value *POSTTags201ResponseDataAttributes + isSet bool +} + +func (v NullablePOSTTags201ResponseDataAttributes) Get() *POSTTags201ResponseDataAttributes { + return v.value +} + +func (v *NullablePOSTTags201ResponseDataAttributes) Set(val *POSTTags201ResponseDataAttributes) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTTags201ResponseDataAttributes) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTTags201ResponseDataAttributes) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTTags201ResponseDataAttributes(val *POSTTags201ResponseDataAttributes) *NullablePOSTTags201ResponseDataAttributes { + return &NullablePOSTTags201ResponseDataAttributes{value: val, isSet: true} +} + +func (v NullablePOSTTags201ResponseDataAttributes) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTTags201ResponseDataAttributes) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_tax_categories_201_response.go b/api/model_post_tax_categories_201_response.go index b51bbd20..b608bf0c 100644 --- a/api/model_post_tax_categories_201_response.go +++ b/api/model_post_tax_categories_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_tax_categories_201_response_data.go b/api/model_post_tax_categories_201_response_data.go index 100271d0..ad08e137 100644 --- a/api/model_post_tax_categories_201_response_data.go +++ b/api/model_post_tax_categories_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_tax_categories_201_response_data_attributes.go b/api/model_post_tax_categories_201_response_data_attributes.go index 45619f7c..83fc54c2 100644 --- a/api/model_post_tax_categories_201_response_data_attributes.go +++ b/api/model_post_tax_categories_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -26,7 +26,7 @@ type POSTTaxCategories201ResponseDataAttributes struct { SkuCode interface{} `json:"sku_code,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_tax_categories_201_response_data_relationships.go b/api/model_post_tax_categories_201_response_data_relationships.go index cbe77acf..f8aed0fd 100644 --- a/api/model_post_tax_categories_201_response_data_relationships.go +++ b/api/model_post_tax_categories_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,10 @@ var _ MappedNullable = &POSTTaxCategories201ResponseDataRelationships{} // POSTTaxCategories201ResponseDataRelationships struct for POSTTaxCategories201ResponseDataRelationships type POSTTaxCategories201ResponseDataRelationships struct { - Sku *POSTInStockSubscriptions201ResponseDataRelationshipsSku `json:"sku,omitempty"` - TaxCalculator *POSTMarkets201ResponseDataRelationshipsTaxCalculator `json:"tax_calculator,omitempty"` - Attachments *POSTAvalaraAccounts201ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Sku *POSTInStockSubscriptions201ResponseDataRelationshipsSku `json:"sku,omitempty"` + TaxCalculator *POSTMarkets201ResponseDataRelationshipsTaxCalculator `json:"tax_calculator,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTTaxCategories201ResponseDataRelationships instantiates a new POSTTaxCategories201ResponseDataRelationships object @@ -107,9 +108,9 @@ func (o *POSTTaxCategories201ResponseDataRelationships) SetTaxCalculator(v POSTM } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *POSTTaxCategories201ResponseDataRelationships) GetAttachments() POSTAvalaraAccounts201ResponseDataRelationshipsAttachments { +func (o *POSTTaxCategories201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret POSTAvalaraAccounts201ResponseDataRelationshipsAttachments + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments return ret } return *o.Attachments @@ -117,7 +118,7 @@ func (o *POSTTaxCategories201ResponseDataRelationships) GetAttachments() POSTAva // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTTaxCategories201ResponseDataRelationships) GetAttachmentsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsAttachments, bool) { +func (o *POSTTaxCategories201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -133,11 +134,43 @@ func (o *POSTTaxCategories201ResponseDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *POSTTaxCategories201ResponseDataRelationships) SetAttachments(v POSTAvalaraAccounts201ResponseDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTTaxCategories201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTTaxCategories201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTTaxCategories201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTTaxCategories201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTTaxCategories201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTTaxCategories201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -157,6 +190,9 @@ func (o POSTTaxCategories201ResponseDataRelationships) ToMap() (map[string]inter if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_tax_rules_201_response.go b/api/model_post_tax_rules_201_response.go index 166b8ede..0d2a4e00 100644 --- a/api/model_post_tax_rules_201_response.go +++ b/api/model_post_tax_rules_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_tax_rules_201_response_data.go b/api/model_post_tax_rules_201_response_data.go index cc4b33f3..6d281426 100644 --- a/api/model_post_tax_rules_201_response_data.go +++ b/api/model_post_tax_rules_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_tax_rules_201_response_data_attributes.go b/api/model_post_tax_rules_201_response_data_attributes.go index 2cddf01e..6f6f603d 100644 --- a/api/model_post_tax_rules_201_response_data_attributes.go +++ b/api/model_post_tax_rules_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -46,7 +46,7 @@ type POSTTaxRules201ResponseDataAttributes struct { AdjustmentTaxable interface{} `json:"adjustment_taxable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_tax_rules_201_response_data_relationships.go b/api/model_post_tax_rules_201_response_data_relationships.go index 644b5b71..2666646a 100644 --- a/api/model_post_tax_rules_201_response_data_relationships.go +++ b/api/model_post_tax_rules_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &POSTTaxRules201ResponseDataRelationships{} // POSTTaxRules201ResponseDataRelationships struct for POSTTaxRules201ResponseDataRelationships type POSTTaxRules201ResponseDataRelationships struct { ManualTaxCalculator *POSTTaxRules201ResponseDataRelationshipsManualTaxCalculator `json:"manual_tax_calculator,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTTaxRules201ResponseDataRelationships instantiates a new POSTTaxRules201ResponseDataRelationships object @@ -72,6 +73,38 @@ func (o *POSTTaxRules201ResponseDataRelationships) SetManualTaxCalculator(v POST o.ManualTaxCalculator = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTTaxRules201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTTaxRules201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTTaxRules201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTTaxRules201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTTaxRules201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +118,9 @@ func (o POSTTaxRules201ResponseDataRelationships) ToMap() (map[string]interface{ if !IsNil(o.ManualTaxCalculator) { toSerialize["manual_tax_calculator"] = o.ManualTaxCalculator } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_tax_rules_201_response_data_relationships_manual_tax_calculator.go b/api/model_post_tax_rules_201_response_data_relationships_manual_tax_calculator.go index 99040377..a680490e 100644 --- a/api/model_post_tax_rules_201_response_data_relationships_manual_tax_calculator.go +++ b/api/model_post_tax_rules_201_response_data_relationships_manual_tax_calculator.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_tax_rules_201_response_data_relationships_manual_tax_calculator_data.go b/api/model_post_tax_rules_201_response_data_relationships_manual_tax_calculator_data.go index ae122475..aa8ce024 100644 --- a/api/model_post_tax_rules_201_response_data_relationships_manual_tax_calculator_data.go +++ b/api/model_post_tax_rules_201_response_data_relationships_manual_tax_calculator_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_taxjar_accounts_201_response.go b/api/model_post_taxjar_accounts_201_response.go index da1cda50..c0cf3dde 100644 --- a/api/model_post_taxjar_accounts_201_response.go +++ b/api/model_post_taxjar_accounts_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_taxjar_accounts_201_response_data.go b/api/model_post_taxjar_accounts_201_response_data.go index 0944a7ae..65808d97 100644 --- a/api/model_post_taxjar_accounts_201_response_data.go +++ b/api/model_post_taxjar_accounts_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type POSTTaxjarAccounts201ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *POSTTaxjarAccounts201ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *POSTAvalaraAccounts201ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTTaxjarAccounts201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTTaxjarAccounts201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPOSTTaxjarAccounts201ResponseData instantiates a new POSTTaxjarAccounts201ResponseData object @@ -177,9 +177,9 @@ func (o *POSTTaxjarAccounts201ResponseData) SetAttributes(v POSTTaxjarAccounts20 } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *POSTTaxjarAccounts201ResponseData) GetRelationships() POSTAvalaraAccounts201ResponseDataRelationships { +func (o *POSTTaxjarAccounts201ResponseData) GetRelationships() POSTTaxjarAccounts201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret POSTAvalaraAccounts201ResponseDataRelationships + var ret POSTTaxjarAccounts201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *POSTTaxjarAccounts201ResponseData) GetRelationships() POSTAvalaraAccoun // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTTaxjarAccounts201ResponseData) GetRelationshipsOk() (*POSTAvalaraAccounts201ResponseDataRelationships, bool) { +func (o *POSTTaxjarAccounts201ResponseData) GetRelationshipsOk() (*POSTTaxjarAccounts201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *POSTTaxjarAccounts201ResponseData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationships and assigns it to the Relationships field. -func (o *POSTTaxjarAccounts201ResponseData) SetRelationships(v POSTAvalaraAccounts201ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTTaxjarAccounts201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTTaxjarAccounts201ResponseData) SetRelationships(v POSTTaxjarAccounts201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_post_taxjar_accounts_201_response_data_attributes.go b/api/model_post_taxjar_accounts_201_response_data_attributes.go index 25286f6a..54e88ac2 100644 --- a/api/model_post_taxjar_accounts_201_response_data_attributes.go +++ b/api/model_post_taxjar_accounts_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -24,7 +24,7 @@ type POSTTaxjarAccounts201ResponseDataAttributes struct { Name interface{} `json:"name"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` diff --git a/api/model_post_taxjar_accounts_201_response_data_relationships.go b/api/model_post_taxjar_accounts_201_response_data_relationships.go new file mode 100644 index 00000000..1d5e372b --- /dev/null +++ b/api/model_post_taxjar_accounts_201_response_data_relationships.go @@ -0,0 +1,233 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTTaxjarAccounts201ResponseDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTTaxjarAccounts201ResponseDataRelationships{} + +// POSTTaxjarAccounts201ResponseDataRelationships struct for POSTTaxjarAccounts201ResponseDataRelationships +type POSTTaxjarAccounts201ResponseDataRelationships struct { + Markets *POSTAvalaraAccounts201ResponseDataRelationshipsMarkets `json:"markets,omitempty"` + Attachments *GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` + TaxCategories *POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories `json:"tax_categories,omitempty"` +} + +// NewPOSTTaxjarAccounts201ResponseDataRelationships instantiates a new POSTTaxjarAccounts201ResponseDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTTaxjarAccounts201ResponseDataRelationships() *POSTTaxjarAccounts201ResponseDataRelationships { + this := POSTTaxjarAccounts201ResponseDataRelationships{} + return &this +} + +// NewPOSTTaxjarAccounts201ResponseDataRelationshipsWithDefaults instantiates a new POSTTaxjarAccounts201ResponseDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTTaxjarAccounts201ResponseDataRelationshipsWithDefaults() *POSTTaxjarAccounts201ResponseDataRelationships { + this := POSTTaxjarAccounts201ResponseDataRelationships{} + return &this +} + +// GetMarkets returns the Markets field value if set, zero value otherwise. +func (o *POSTTaxjarAccounts201ResponseDataRelationships) GetMarkets() POSTAvalaraAccounts201ResponseDataRelationshipsMarkets { + if o == nil || IsNil(o.Markets) { + var ret POSTAvalaraAccounts201ResponseDataRelationshipsMarkets + return ret + } + return *o.Markets +} + +// GetMarketsOk returns a tuple with the Markets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTTaxjarAccounts201ResponseDataRelationships) GetMarketsOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsMarkets, bool) { + if o == nil || IsNil(o.Markets) { + return nil, false + } + return o.Markets, true +} + +// HasMarkets returns a boolean if a field has been set. +func (o *POSTTaxjarAccounts201ResponseDataRelationships) HasMarkets() bool { + if o != nil && !IsNil(o.Markets) { + return true + } + + return false +} + +// SetMarkets gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsMarkets and assigns it to the Markets field. +func (o *POSTTaxjarAccounts201ResponseDataRelationships) SetMarkets(v POSTAvalaraAccounts201ResponseDataRelationshipsMarkets) { + o.Markets = &v +} + +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *POSTTaxjarAccounts201ResponseDataRelationships) GetAttachments() GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTTaxjarAccounts201ResponseDataRelationships) GetAttachmentsOk() (*GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *POSTTaxjarAccounts201ResponseDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *POSTTaxjarAccounts201ResponseDataRelationships) SetAttachments(v GETAuthorizationsAuthorizationId200ResponseDataRelationshipsAttachments) { + o.Attachments = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTTaxjarAccounts201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTTaxjarAccounts201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTTaxjarAccounts201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTTaxjarAccounts201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + +// GetTaxCategories returns the TaxCategories field value if set, zero value otherwise. +func (o *POSTTaxjarAccounts201ResponseDataRelationships) GetTaxCategories() POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories { + if o == nil || IsNil(o.TaxCategories) { + var ret POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories + return ret + } + return *o.TaxCategories +} + +// GetTaxCategoriesOk returns a tuple with the TaxCategories field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTTaxjarAccounts201ResponseDataRelationships) GetTaxCategoriesOk() (*POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories, bool) { + if o == nil || IsNil(o.TaxCategories) { + return nil, false + } + return o.TaxCategories, true +} + +// HasTaxCategories returns a boolean if a field has been set. +func (o *POSTTaxjarAccounts201ResponseDataRelationships) HasTaxCategories() bool { + if o != nil && !IsNil(o.TaxCategories) { + return true + } + + return false +} + +// SetTaxCategories gets a reference to the given POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories and assigns it to the TaxCategories field. +func (o *POSTTaxjarAccounts201ResponseDataRelationships) SetTaxCategories(v POSTAvalaraAccounts201ResponseDataRelationshipsTaxCategories) { + o.TaxCategories = &v +} + +func (o POSTTaxjarAccounts201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTTaxjarAccounts201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Markets) { + toSerialize["markets"] = o.Markets + } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + if !IsNil(o.TaxCategories) { + toSerialize["tax_categories"] = o.TaxCategories + } + return toSerialize, nil +} + +type NullablePOSTTaxjarAccounts201ResponseDataRelationships struct { + value *POSTTaxjarAccounts201ResponseDataRelationships + isSet bool +} + +func (v NullablePOSTTaxjarAccounts201ResponseDataRelationships) Get() *POSTTaxjarAccounts201ResponseDataRelationships { + return v.value +} + +func (v *NullablePOSTTaxjarAccounts201ResponseDataRelationships) Set(val *POSTTaxjarAccounts201ResponseDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTTaxjarAccounts201ResponseDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTTaxjarAccounts201ResponseDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTTaxjarAccounts201ResponseDataRelationships(val *POSTTaxjarAccounts201ResponseDataRelationships) *NullablePOSTTaxjarAccounts201ResponseDataRelationships { + return &NullablePOSTTaxjarAccounts201ResponseDataRelationships{value: val, isSet: true} +} + +func (v NullablePOSTTaxjarAccounts201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTTaxjarAccounts201ResponseDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_post_webhooks_201_response.go b/api/model_post_webhooks_201_response.go index ec48528a..9fd89da5 100644 --- a/api/model_post_webhooks_201_response.go +++ b/api/model_post_webhooks_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_webhooks_201_response_data.go b/api/model_post_webhooks_201_response_data.go index fc135874..8cdf3353 100644 --- a/api/model_post_webhooks_201_response_data.go +++ b/api/model_post_webhooks_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_webhooks_201_response_data_attributes.go b/api/model_post_webhooks_201_response_data_attributes.go index 5ac3a06a..e2460bc0 100644 --- a/api/model_post_webhooks_201_response_data_attributes.go +++ b/api/model_post_webhooks_201_response_data_attributes.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -28,9 +28,13 @@ type POSTWebhooks201ResponseDataAttributes struct { CallbackUrl interface{} `json:"callback_url"` // List of related resources that should be included in the webhook body. IncludeResources interface{} `json:"include_resources,omitempty"` + // Send this attribute if you want to mark this resource as disabled. + Disable interface{} `json:"_disable,omitempty"` + // Send this attribute if you want to mark this resource as enabled. + Enable interface{} `json:"_enable,omitempty"` // A string that you can use to add any external identifier to the resource. This can be useful for integrating the resource to an external system, like an ERP, a marketing tool, a CRM, or whatever. Reference interface{} `json:"reference,omitempty"` - // Any identifier of the third party system that defines the reference code + // Any identifier of the third party system that defines the reference code. ReferenceOrigin interface{} `json:"reference_origin,omitempty"` // Set of key-value pairs that you can attach to the resource. This can be useful for storing additional information about the resource in a structured format. Metadata interface{} `json:"metadata,omitempty"` @@ -173,6 +177,72 @@ func (o *POSTWebhooks201ResponseDataAttributes) SetIncludeResources(v interface{ o.IncludeResources = v } +// GetDisable returns the Disable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTWebhooks201ResponseDataAttributes) GetDisable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Disable +} + +// GetDisableOk returns a tuple with the Disable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTWebhooks201ResponseDataAttributes) GetDisableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Disable) { + return nil, false + } + return &o.Disable, true +} + +// HasDisable returns a boolean if a field has been set. +func (o *POSTWebhooks201ResponseDataAttributes) HasDisable() bool { + if o != nil && IsNil(o.Disable) { + return true + } + + return false +} + +// SetDisable gets a reference to the given interface{} and assigns it to the Disable field. +func (o *POSTWebhooks201ResponseDataAttributes) SetDisable(v interface{}) { + o.Disable = v +} + +// GetEnable returns the Enable field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *POSTWebhooks201ResponseDataAttributes) GetEnable() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Enable +} + +// GetEnableOk returns a tuple with the Enable field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *POSTWebhooks201ResponseDataAttributes) GetEnableOk() (*interface{}, bool) { + if o == nil || IsNil(o.Enable) { + return nil, false + } + return &o.Enable, true +} + +// HasEnable returns a boolean if a field has been set. +func (o *POSTWebhooks201ResponseDataAttributes) HasEnable() bool { + if o != nil && IsNil(o.Enable) { + return true + } + + return false +} + +// SetEnable gets a reference to the given interface{} and assigns it to the Enable field. +func (o *POSTWebhooks201ResponseDataAttributes) SetEnable(v interface{}) { + o.Enable = v +} + // GetReference returns the Reference field value if set, zero value otherwise (both if not set or set to explicit null). func (o *POSTWebhooks201ResponseDataAttributes) GetReference() interface{} { if o == nil { @@ -294,6 +364,12 @@ func (o POSTWebhooks201ResponseDataAttributes) ToMap() (map[string]interface{}, if o.IncludeResources != nil { toSerialize["include_resources"] = o.IncludeResources } + if o.Disable != nil { + toSerialize["_disable"] = o.Disable + } + if o.Enable != nil { + toSerialize["_enable"] = o.Enable + } if o.Reference != nil { toSerialize["reference"] = o.Reference } diff --git a/api/model_post_webhooks_201_response_data_relationships.go b/api/model_post_webhooks_201_response_data_relationships.go index 5503737e..070e0a35 100644 --- a/api/model_post_webhooks_201_response_data_relationships.go +++ b/api/model_post_webhooks_201_response_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &POSTWebhooks201ResponseDataRelationships{} // POSTWebhooks201ResponseDataRelationships struct for POSTWebhooks201ResponseDataRelationships type POSTWebhooks201ResponseDataRelationships struct { LastEventCallbacks *GETEventsEventId200ResponseDataRelationshipsLastEventCallbacks `json:"last_event_callbacks,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` } // NewPOSTWebhooks201ResponseDataRelationships instantiates a new POSTWebhooks201ResponseDataRelationships object @@ -72,6 +73,38 @@ func (o *POSTWebhooks201ResponseDataRelationships) SetLastEventCallbacks(v GETEv o.LastEventCallbacks = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTWebhooks201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTWebhooks201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTWebhooks201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTWebhooks201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + func (o POSTWebhooks201ResponseDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +118,9 @@ func (o POSTWebhooks201ResponseDataRelationships) ToMap() (map[string]interface{ if !IsNil(o.LastEventCallbacks) { toSerialize["last_event_callbacks"] = o.LastEventCallbacks } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_post_wire_transfers_201_response.go b/api/model_post_wire_transfers_201_response.go index a2caf1c0..8de81de7 100644 --- a/api/model_post_wire_transfers_201_response.go +++ b/api/model_post_wire_transfers_201_response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_post_wire_transfers_201_response_data.go b/api/model_post_wire_transfers_201_response_data.go index 393873df..aa41e16b 100644 --- a/api/model_post_wire_transfers_201_response_data.go +++ b/api/model_post_wire_transfers_201_response_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,10 +23,10 @@ type POSTWireTransfers201ResponseData struct { // The resource's id Id interface{} `json:"id,omitempty"` // The resource's type - Type interface{} `json:"type,omitempty"` - Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` - Attributes *POSTAdyenPayments201ResponseDataAttributes `json:"attributes,omitempty"` - Relationships *GETTransactionsTransactionId200ResponseDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type,omitempty"` + Links *POSTAddresses201ResponseDataLinks `json:"links,omitempty"` + Attributes *POSTAdyenPayments201ResponseDataAttributes `json:"attributes,omitempty"` + Relationships *POSTWireTransfers201ResponseDataRelationships `json:"relationships,omitempty"` } // NewPOSTWireTransfers201ResponseData instantiates a new POSTWireTransfers201ResponseData object @@ -177,9 +177,9 @@ func (o *POSTWireTransfers201ResponseData) SetAttributes(v POSTAdyenPayments201R } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *POSTWireTransfers201ResponseData) GetRelationships() GETTransactionsTransactionId200ResponseDataRelationships { +func (o *POSTWireTransfers201ResponseData) GetRelationships() POSTWireTransfers201ResponseDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret GETTransactionsTransactionId200ResponseDataRelationships + var ret POSTWireTransfers201ResponseDataRelationships return ret } return *o.Relationships @@ -187,7 +187,7 @@ func (o *POSTWireTransfers201ResponseData) GetRelationships() GETTransactionsTra // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *POSTWireTransfers201ResponseData) GetRelationshipsOk() (*GETTransactionsTransactionId200ResponseDataRelationships, bool) { +func (o *POSTWireTransfers201ResponseData) GetRelationshipsOk() (*POSTWireTransfers201ResponseDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -203,8 +203,8 @@ func (o *POSTWireTransfers201ResponseData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given GETTransactionsTransactionId200ResponseDataRelationships and assigns it to the Relationships field. -func (o *POSTWireTransfers201ResponseData) SetRelationships(v GETTransactionsTransactionId200ResponseDataRelationships) { +// SetRelationships gets a reference to the given POSTWireTransfers201ResponseDataRelationships and assigns it to the Relationships field. +func (o *POSTWireTransfers201ResponseData) SetRelationships(v POSTWireTransfers201ResponseDataRelationships) { o.Relationships = &v } diff --git a/api/model_post_wire_transfers_201_response_data_relationships.go b/api/model_post_wire_transfers_201_response_data_relationships.go new file mode 100644 index 00000000..7afc068e --- /dev/null +++ b/api/model_post_wire_transfers_201_response_data_relationships.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the POSTWireTransfers201ResponseDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &POSTWireTransfers201ResponseDataRelationships{} + +// POSTWireTransfers201ResponseDataRelationships struct for POSTWireTransfers201ResponseDataRelationships +type POSTWireTransfers201ResponseDataRelationships struct { + Order *POSTAdyenPayments201ResponseDataRelationshipsOrder `json:"order,omitempty"` + Versions *POSTAddresses201ResponseDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewPOSTWireTransfers201ResponseDataRelationships instantiates a new POSTWireTransfers201ResponseDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPOSTWireTransfers201ResponseDataRelationships() *POSTWireTransfers201ResponseDataRelationships { + this := POSTWireTransfers201ResponseDataRelationships{} + return &this +} + +// NewPOSTWireTransfers201ResponseDataRelationshipsWithDefaults instantiates a new POSTWireTransfers201ResponseDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPOSTWireTransfers201ResponseDataRelationshipsWithDefaults() *POSTWireTransfers201ResponseDataRelationships { + this := POSTWireTransfers201ResponseDataRelationships{} + return &this +} + +// GetOrder returns the Order field value if set, zero value otherwise. +func (o *POSTWireTransfers201ResponseDataRelationships) GetOrder() POSTAdyenPayments201ResponseDataRelationshipsOrder { + if o == nil || IsNil(o.Order) { + var ret POSTAdyenPayments201ResponseDataRelationshipsOrder + return ret + } + return *o.Order +} + +// GetOrderOk returns a tuple with the Order field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTWireTransfers201ResponseDataRelationships) GetOrderOk() (*POSTAdyenPayments201ResponseDataRelationshipsOrder, bool) { + if o == nil || IsNil(o.Order) { + return nil, false + } + return o.Order, true +} + +// HasOrder returns a boolean if a field has been set. +func (o *POSTWireTransfers201ResponseDataRelationships) HasOrder() bool { + if o != nil && !IsNil(o.Order) { + return true + } + + return false +} + +// SetOrder gets a reference to the given POSTAdyenPayments201ResponseDataRelationshipsOrder and assigns it to the Order field. +func (o *POSTWireTransfers201ResponseDataRelationships) SetOrder(v POSTAdyenPayments201ResponseDataRelationshipsOrder) { + o.Order = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *POSTWireTransfers201ResponseDataRelationships) GetVersions() POSTAddresses201ResponseDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret POSTAddresses201ResponseDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *POSTWireTransfers201ResponseDataRelationships) GetVersionsOk() (*POSTAddresses201ResponseDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *POSTWireTransfers201ResponseDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given POSTAddresses201ResponseDataRelationshipsVersions and assigns it to the Versions field. +func (o *POSTWireTransfers201ResponseDataRelationships) SetVersions(v POSTAddresses201ResponseDataRelationshipsVersions) { + o.Versions = &v +} + +func (o POSTWireTransfers201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o POSTWireTransfers201ResponseDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Order) { + toSerialize["order"] = o.Order + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullablePOSTWireTransfers201ResponseDataRelationships struct { + value *POSTWireTransfers201ResponseDataRelationships + isSet bool +} + +func (v NullablePOSTWireTransfers201ResponseDataRelationships) Get() *POSTWireTransfers201ResponseDataRelationships { + return v.value +} + +func (v *NullablePOSTWireTransfers201ResponseDataRelationships) Set(val *POSTWireTransfers201ResponseDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePOSTWireTransfers201ResponseDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePOSTWireTransfers201ResponseDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePOSTWireTransfers201ResponseDataRelationships(val *POSTWireTransfers201ResponseDataRelationships) *NullablePOSTWireTransfers201ResponseDataRelationships { + return &NullablePOSTWireTransfers201ResponseDataRelationships{value: val, isSet: true} +} + +func (v NullablePOSTWireTransfers201ResponseDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePOSTWireTransfers201ResponseDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_price.go b/api/model_price.go index 602366cc..43740fa0 100644 --- a/api/model_price.go +++ b/api/model_price.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_create.go b/api/model_price_create.go index 115e428d..2013da05 100644 --- a/api/model_price_create.go +++ b/api/model_price_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_create_data.go b/api/model_price_create_data.go index b678bfa5..a70f38df 100644 --- a/api/model_price_create_data.go +++ b/api/model_price_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_create_data_relationships.go b/api/model_price_create_data_relationships.go index 09a473d4..6b7e59c5 100644 --- a/api/model_price_create_data_relationships.go +++ b/api/model_price_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_create_data_relationships_price_tiers.go b/api/model_price_create_data_relationships_price_tiers.go index 31f4856e..fe5f05f8 100644 --- a/api/model_price_create_data_relationships_price_tiers.go +++ b/api/model_price_create_data_relationships_price_tiers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_data.go b/api/model_price_data.go index caae9dd6..32c79a64 100644 --- a/api/model_price_data.go +++ b/api/model_price_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_data_relationships.go b/api/model_price_data_relationships.go index bb166e65..489911e3 100644 --- a/api/model_price_data_relationships.go +++ b/api/model_price_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,12 +20,16 @@ var _ MappedNullable = &PriceDataRelationships{} // PriceDataRelationships struct for PriceDataRelationships type PriceDataRelationships struct { - PriceList *MarketDataRelationshipsPriceList `json:"price_list,omitempty"` - Sku *BundleDataRelationshipsSkus `json:"sku,omitempty"` - PriceTiers *PriceDataRelationshipsPriceTiers `json:"price_tiers,omitempty"` - PriceVolumeTiers *PriceDataRelationshipsPriceVolumeTiers `json:"price_volume_tiers,omitempty"` - PriceFrequencyTiers *PriceDataRelationshipsPriceFrequencyTiers `json:"price_frequency_tiers,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + PriceList *MarketDataRelationshipsPriceList `json:"price_list,omitempty"` + Sku *BundleDataRelationshipsSkus `json:"sku,omitempty"` + PriceTiers *PriceDataRelationshipsPriceTiers `json:"price_tiers,omitempty"` + PriceVolumeTiers *PriceDataRelationshipsPriceVolumeTiers `json:"price_volume_tiers,omitempty"` + PriceFrequencyTiers *PriceDataRelationshipsPriceFrequencyTiers `json:"price_frequency_tiers,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` + JwtCustomer *CouponRecipientDataRelationshipsCustomer `json:"jwt_customer,omitempty"` + JwtMarkets *AvalaraAccountDataRelationshipsMarkets `json:"jwt_markets,omitempty"` + JwtStockLocations *DeliveryLeadTimeDataRelationshipsStockLocation `json:"jwt_stock_locations,omitempty"` } // NewPriceDataRelationships instantiates a new PriceDataRelationships object @@ -206,9 +210,9 @@ func (o *PriceDataRelationships) SetPriceFrequencyTiers(v PriceDataRelationships } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *PriceDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *PriceDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -216,7 +220,7 @@ func (o *PriceDataRelationships) GetAttachments() AvalaraAccountDataRelationship // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PriceDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *PriceDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -232,11 +236,139 @@ func (o *PriceDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *PriceDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *PriceDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *PriceDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *PriceDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *PriceDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + +// GetJwtCustomer returns the JwtCustomer field value if set, zero value otherwise. +func (o *PriceDataRelationships) GetJwtCustomer() CouponRecipientDataRelationshipsCustomer { + if o == nil || IsNil(o.JwtCustomer) { + var ret CouponRecipientDataRelationshipsCustomer + return ret + } + return *o.JwtCustomer +} + +// GetJwtCustomerOk returns a tuple with the JwtCustomer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceDataRelationships) GetJwtCustomerOk() (*CouponRecipientDataRelationshipsCustomer, bool) { + if o == nil || IsNil(o.JwtCustomer) { + return nil, false + } + return o.JwtCustomer, true +} + +// HasJwtCustomer returns a boolean if a field has been set. +func (o *PriceDataRelationships) HasJwtCustomer() bool { + if o != nil && !IsNil(o.JwtCustomer) { + return true + } + + return false +} + +// SetJwtCustomer gets a reference to the given CouponRecipientDataRelationshipsCustomer and assigns it to the JwtCustomer field. +func (o *PriceDataRelationships) SetJwtCustomer(v CouponRecipientDataRelationshipsCustomer) { + o.JwtCustomer = &v +} + +// GetJwtMarkets returns the JwtMarkets field value if set, zero value otherwise. +func (o *PriceDataRelationships) GetJwtMarkets() AvalaraAccountDataRelationshipsMarkets { + if o == nil || IsNil(o.JwtMarkets) { + var ret AvalaraAccountDataRelationshipsMarkets + return ret + } + return *o.JwtMarkets +} + +// GetJwtMarketsOk returns a tuple with the JwtMarkets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceDataRelationships) GetJwtMarketsOk() (*AvalaraAccountDataRelationshipsMarkets, bool) { + if o == nil || IsNil(o.JwtMarkets) { + return nil, false + } + return o.JwtMarkets, true +} + +// HasJwtMarkets returns a boolean if a field has been set. +func (o *PriceDataRelationships) HasJwtMarkets() bool { + if o != nil && !IsNil(o.JwtMarkets) { + return true + } + + return false +} + +// SetJwtMarkets gets a reference to the given AvalaraAccountDataRelationshipsMarkets and assigns it to the JwtMarkets field. +func (o *PriceDataRelationships) SetJwtMarkets(v AvalaraAccountDataRelationshipsMarkets) { + o.JwtMarkets = &v +} + +// GetJwtStockLocations returns the JwtStockLocations field value if set, zero value otherwise. +func (o *PriceDataRelationships) GetJwtStockLocations() DeliveryLeadTimeDataRelationshipsStockLocation { + if o == nil || IsNil(o.JwtStockLocations) { + var ret DeliveryLeadTimeDataRelationshipsStockLocation + return ret + } + return *o.JwtStockLocations +} + +// GetJwtStockLocationsOk returns a tuple with the JwtStockLocations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceDataRelationships) GetJwtStockLocationsOk() (*DeliveryLeadTimeDataRelationshipsStockLocation, bool) { + if o == nil || IsNil(o.JwtStockLocations) { + return nil, false + } + return o.JwtStockLocations, true +} + +// HasJwtStockLocations returns a boolean if a field has been set. +func (o *PriceDataRelationships) HasJwtStockLocations() bool { + if o != nil && !IsNil(o.JwtStockLocations) { + return true + } + + return false +} + +// SetJwtStockLocations gets a reference to the given DeliveryLeadTimeDataRelationshipsStockLocation and assigns it to the JwtStockLocations field. +func (o *PriceDataRelationships) SetJwtStockLocations(v DeliveryLeadTimeDataRelationshipsStockLocation) { + o.JwtStockLocations = &v +} + func (o PriceDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -265,6 +397,18 @@ func (o PriceDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + if !IsNil(o.JwtCustomer) { + toSerialize["jwt_customer"] = o.JwtCustomer + } + if !IsNil(o.JwtMarkets) { + toSerialize["jwt_markets"] = o.JwtMarkets + } + if !IsNil(o.JwtStockLocations) { + toSerialize["jwt_stock_locations"] = o.JwtStockLocations + } return toSerialize, nil } diff --git a/api/model_price_data_relationships_price_frequency_tiers.go b/api/model_price_data_relationships_price_frequency_tiers.go index e6f4bc79..84e6d65b 100644 --- a/api/model_price_data_relationships_price_frequency_tiers.go +++ b/api/model_price_data_relationships_price_frequency_tiers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_data_relationships_price_frequency_tiers_data.go b/api/model_price_data_relationships_price_frequency_tiers_data.go index b41d57a7..feb7ab6f 100644 --- a/api/model_price_data_relationships_price_frequency_tiers_data.go +++ b/api/model_price_data_relationships_price_frequency_tiers_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_data_relationships_price_tiers.go b/api/model_price_data_relationships_price_tiers.go index 42a5d13c..8ae63474 100644 --- a/api/model_price_data_relationships_price_tiers.go +++ b/api/model_price_data_relationships_price_tiers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_data_relationships_price_tiers_data.go b/api/model_price_data_relationships_price_tiers_data.go index db192e97..39f94415 100644 --- a/api/model_price_data_relationships_price_tiers_data.go +++ b/api/model_price_data_relationships_price_tiers_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_data_relationships_price_volume_tiers.go b/api/model_price_data_relationships_price_volume_tiers.go index 6252a585..ef77e669 100644 --- a/api/model_price_data_relationships_price_volume_tiers.go +++ b/api/model_price_data_relationships_price_volume_tiers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_data_relationships_price_volume_tiers_data.go b/api/model_price_data_relationships_price_volume_tiers_data.go index 5caa6208..b80890a6 100644 --- a/api/model_price_data_relationships_price_volume_tiers_data.go +++ b/api/model_price_data_relationships_price_volume_tiers_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_frequency_tier.go b/api/model_price_frequency_tier.go index 8d3b240d..cc006e44 100644 --- a/api/model_price_frequency_tier.go +++ b/api/model_price_frequency_tier.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_frequency_tier_create.go b/api/model_price_frequency_tier_create.go index 191900e9..69f13daa 100644 --- a/api/model_price_frequency_tier_create.go +++ b/api/model_price_frequency_tier_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_frequency_tier_create_data.go b/api/model_price_frequency_tier_create_data.go index 5ee8ee53..316c71cf 100644 --- a/api/model_price_frequency_tier_create_data.go +++ b/api/model_price_frequency_tier_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_frequency_tier_create_data_relationships.go b/api/model_price_frequency_tier_create_data_relationships.go index cd9f0441..c19ce672 100644 --- a/api/model_price_frequency_tier_create_data_relationships.go +++ b/api/model_price_frequency_tier_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_frequency_tier_create_data_relationships_price.go b/api/model_price_frequency_tier_create_data_relationships_price.go index d46352a4..962111c6 100644 --- a/api/model_price_frequency_tier_create_data_relationships_price.go +++ b/api/model_price_frequency_tier_create_data_relationships_price.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_frequency_tier_data.go b/api/model_price_frequency_tier_data.go index 7206a7db..c39e35eb 100644 --- a/api/model_price_frequency_tier_data.go +++ b/api/model_price_frequency_tier_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_frequency_tier_data_relationships.go b/api/model_price_frequency_tier_data_relationships.go index a63b3e6a..f1e25151 100644 --- a/api/model_price_frequency_tier_data_relationships.go +++ b/api/model_price_frequency_tier_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,10 @@ var _ MappedNullable = &PriceFrequencyTierDataRelationships{} // PriceFrequencyTierDataRelationships struct for PriceFrequencyTierDataRelationships type PriceFrequencyTierDataRelationships struct { - Price *PriceFrequencyTierDataRelationshipsPrice `json:"price,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` + Price *PriceFrequencyTierDataRelationshipsPrice `json:"price,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` } // NewPriceFrequencyTierDataRelationships instantiates a new PriceFrequencyTierDataRelationships object @@ -75,9 +76,9 @@ func (o *PriceFrequencyTierDataRelationships) SetPrice(v PriceFrequencyTierDataR } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *PriceFrequencyTierDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *PriceFrequencyTierDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -85,7 +86,7 @@ func (o *PriceFrequencyTierDataRelationships) GetAttachments() AvalaraAccountDat // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PriceFrequencyTierDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *PriceFrequencyTierDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -101,15 +102,47 @@ func (o *PriceFrequencyTierDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *PriceFrequencyTierDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *PriceFrequencyTierDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *PriceFrequencyTierDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceFrequencyTierDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *PriceFrequencyTierDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *PriceFrequencyTierDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + // GetEvents returns the Events field value if set, zero value otherwise. -func (o *PriceFrequencyTierDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { +func (o *PriceFrequencyTierDataRelationships) GetEvents() AddressDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents + var ret AddressDataRelationshipsEvents return ret } return *o.Events @@ -117,7 +150,7 @@ func (o *PriceFrequencyTierDataRelationships) GetEvents() AuthorizationDataRelat // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PriceFrequencyTierDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { +func (o *PriceFrequencyTierDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -133,8 +166,8 @@ func (o *PriceFrequencyTierDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *PriceFrequencyTierDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *PriceFrequencyTierDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { o.Events = &v } @@ -154,6 +187,9 @@ func (o PriceFrequencyTierDataRelationships) ToMap() (map[string]interface{}, er if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.Events) { toSerialize["events"] = o.Events } diff --git a/api/model_price_frequency_tier_data_relationships_price.go b/api/model_price_frequency_tier_data_relationships_price.go index e17ba6c0..81f3290f 100644 --- a/api/model_price_frequency_tier_data_relationships_price.go +++ b/api/model_price_frequency_tier_data_relationships_price.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_frequency_tier_data_relationships_price_data.go b/api/model_price_frequency_tier_data_relationships_price_data.go index ba3530ab..bf0f7420 100644 --- a/api/model_price_frequency_tier_data_relationships_price_data.go +++ b/api/model_price_frequency_tier_data_relationships_price_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_frequency_tier_update.go b/api/model_price_frequency_tier_update.go index 982b6838..959ca984 100644 --- a/api/model_price_frequency_tier_update.go +++ b/api/model_price_frequency_tier_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_frequency_tier_update_data.go b/api/model_price_frequency_tier_update_data.go index 8071becc..b511e121 100644 --- a/api/model_price_frequency_tier_update_data.go +++ b/api/model_price_frequency_tier_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_frequency_tier_update_data_relationships.go b/api/model_price_frequency_tier_update_data_relationships.go index 8abeb17a..a1397a2d 100644 --- a/api/model_price_frequency_tier_update_data_relationships.go +++ b/api/model_price_frequency_tier_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_list.go b/api/model_price_list.go index 36448aee..2691c56a 100644 --- a/api/model_price_list.go +++ b/api/model_price_list.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_list_create.go b/api/model_price_list_create.go index 9012a434..23a66034 100644 --- a/api/model_price_list_create.go +++ b/api/model_price_list_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_list_create_data.go b/api/model_price_list_create_data.go index f406aa66..3857e101 100644 --- a/api/model_price_list_create_data.go +++ b/api/model_price_list_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_list_data.go b/api/model_price_list_data.go index ee62f8b8..628396e3 100644 --- a/api/model_price_list_data.go +++ b/api/model_price_list_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_list_data_relationships.go b/api/model_price_list_data_relationships.go index 189378e7..7331cf3e 100644 --- a/api/model_price_list_data_relationships.go +++ b/api/model_price_list_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,10 @@ var _ MappedNullable = &PriceListDataRelationships{} // PriceListDataRelationships struct for PriceListDataRelationships type PriceListDataRelationships struct { - Prices *PriceFrequencyTierDataRelationshipsPrice `json:"prices,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Prices *PriceFrequencyTierDataRelationshipsPrice `json:"prices,omitempty"` + PriceListSchedulers *MarketDataRelationshipsPriceListSchedulers `json:"price_list_schedulers,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewPriceListDataRelationships instantiates a new PriceListDataRelationships object @@ -73,10 +75,42 @@ func (o *PriceListDataRelationships) SetPrices(v PriceFrequencyTierDataRelations o.Prices = &v } +// GetPriceListSchedulers returns the PriceListSchedulers field value if set, zero value otherwise. +func (o *PriceListDataRelationships) GetPriceListSchedulers() MarketDataRelationshipsPriceListSchedulers { + if o == nil || IsNil(o.PriceListSchedulers) { + var ret MarketDataRelationshipsPriceListSchedulers + return ret + } + return *o.PriceListSchedulers +} + +// GetPriceListSchedulersOk returns a tuple with the PriceListSchedulers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceListDataRelationships) GetPriceListSchedulersOk() (*MarketDataRelationshipsPriceListSchedulers, bool) { + if o == nil || IsNil(o.PriceListSchedulers) { + return nil, false + } + return o.PriceListSchedulers, true +} + +// HasPriceListSchedulers returns a boolean if a field has been set. +func (o *PriceListDataRelationships) HasPriceListSchedulers() bool { + if o != nil && !IsNil(o.PriceListSchedulers) { + return true + } + + return false +} + +// SetPriceListSchedulers gets a reference to the given MarketDataRelationshipsPriceListSchedulers and assigns it to the PriceListSchedulers field. +func (o *PriceListDataRelationships) SetPriceListSchedulers(v MarketDataRelationshipsPriceListSchedulers) { + o.PriceListSchedulers = &v +} + // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *PriceListDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *PriceListDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -84,7 +118,7 @@ func (o *PriceListDataRelationships) GetAttachments() AvalaraAccountDataRelation // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PriceListDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *PriceListDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -100,11 +134,43 @@ func (o *PriceListDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *PriceListDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *PriceListDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *PriceListDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceListDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *PriceListDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *PriceListDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o PriceListDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -118,9 +184,15 @@ func (o PriceListDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Prices) { toSerialize["prices"] = o.Prices } + if !IsNil(o.PriceListSchedulers) { + toSerialize["price_list_schedulers"] = o.PriceListSchedulers + } if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_price_list_scheduler.go b/api/model_price_list_scheduler.go new file mode 100644 index 00000000..9fda503d --- /dev/null +++ b/api/model_price_list_scheduler.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PriceListScheduler type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PriceListScheduler{} + +// PriceListScheduler struct for PriceListScheduler +type PriceListScheduler struct { + Data *PriceListSchedulerData `json:"data,omitempty"` +} + +// NewPriceListScheduler instantiates a new PriceListScheduler object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPriceListScheduler() *PriceListScheduler { + this := PriceListScheduler{} + return &this +} + +// NewPriceListSchedulerWithDefaults instantiates a new PriceListScheduler object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPriceListSchedulerWithDefaults() *PriceListScheduler { + this := PriceListScheduler{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *PriceListScheduler) GetData() PriceListSchedulerData { + if o == nil || IsNil(o.Data) { + var ret PriceListSchedulerData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceListScheduler) GetDataOk() (*PriceListSchedulerData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PriceListScheduler) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given PriceListSchedulerData and assigns it to the Data field. +func (o *PriceListScheduler) SetData(v PriceListSchedulerData) { + o.Data = &v +} + +func (o PriceListScheduler) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PriceListScheduler) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullablePriceListScheduler struct { + value *PriceListScheduler + isSet bool +} + +func (v NullablePriceListScheduler) Get() *PriceListScheduler { + return v.value +} + +func (v *NullablePriceListScheduler) Set(val *PriceListScheduler) { + v.value = val + v.isSet = true +} + +func (v NullablePriceListScheduler) IsSet() bool { + return v.isSet +} + +func (v *NullablePriceListScheduler) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePriceListScheduler(val *PriceListScheduler) *NullablePriceListScheduler { + return &NullablePriceListScheduler{value: val, isSet: true} +} + +func (v NullablePriceListScheduler) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePriceListScheduler) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_price_list_scheduler_create.go b/api/model_price_list_scheduler_create.go new file mode 100644 index 00000000..7d336189 --- /dev/null +++ b/api/model_price_list_scheduler_create.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PriceListSchedulerCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PriceListSchedulerCreate{} + +// PriceListSchedulerCreate struct for PriceListSchedulerCreate +type PriceListSchedulerCreate struct { + Data PriceListSchedulerCreateData `json:"data"` +} + +// NewPriceListSchedulerCreate instantiates a new PriceListSchedulerCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPriceListSchedulerCreate(data PriceListSchedulerCreateData) *PriceListSchedulerCreate { + this := PriceListSchedulerCreate{} + this.Data = data + return &this +} + +// NewPriceListSchedulerCreateWithDefaults instantiates a new PriceListSchedulerCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPriceListSchedulerCreateWithDefaults() *PriceListSchedulerCreate { + this := PriceListSchedulerCreate{} + return &this +} + +// GetData returns the Data field value +func (o *PriceListSchedulerCreate) GetData() PriceListSchedulerCreateData { + if o == nil { + var ret PriceListSchedulerCreateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *PriceListSchedulerCreate) GetDataOk() (*PriceListSchedulerCreateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *PriceListSchedulerCreate) SetData(v PriceListSchedulerCreateData) { + o.Data = v +} + +func (o PriceListSchedulerCreate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PriceListSchedulerCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullablePriceListSchedulerCreate struct { + value *PriceListSchedulerCreate + isSet bool +} + +func (v NullablePriceListSchedulerCreate) Get() *PriceListSchedulerCreate { + return v.value +} + +func (v *NullablePriceListSchedulerCreate) Set(val *PriceListSchedulerCreate) { + v.value = val + v.isSet = true +} + +func (v NullablePriceListSchedulerCreate) IsSet() bool { + return v.isSet +} + +func (v *NullablePriceListSchedulerCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePriceListSchedulerCreate(val *PriceListSchedulerCreate) *NullablePriceListSchedulerCreate { + return &NullablePriceListSchedulerCreate{value: val, isSet: true} +} + +func (v NullablePriceListSchedulerCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePriceListSchedulerCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_price_list_scheduler_create_data.go b/api/model_price_list_scheduler_create_data.go new file mode 100644 index 00000000..ed4e4435 --- /dev/null +++ b/api/model_price_list_scheduler_create_data.go @@ -0,0 +1,184 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PriceListSchedulerCreateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PriceListSchedulerCreateData{} + +// PriceListSchedulerCreateData struct for PriceListSchedulerCreateData +type PriceListSchedulerCreateData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes POSTPriceListSchedulers201ResponseDataAttributes `json:"attributes"` + Relationships *PriceListSchedulerCreateDataRelationships `json:"relationships,omitempty"` +} + +// NewPriceListSchedulerCreateData instantiates a new PriceListSchedulerCreateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPriceListSchedulerCreateData(type_ interface{}, attributes POSTPriceListSchedulers201ResponseDataAttributes) *PriceListSchedulerCreateData { + this := PriceListSchedulerCreateData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewPriceListSchedulerCreateDataWithDefaults instantiates a new PriceListSchedulerCreateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPriceListSchedulerCreateDataWithDefaults() *PriceListSchedulerCreateData { + this := PriceListSchedulerCreateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *PriceListSchedulerCreateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PriceListSchedulerCreateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PriceListSchedulerCreateData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *PriceListSchedulerCreateData) GetAttributes() POSTPriceListSchedulers201ResponseDataAttributes { + if o == nil { + var ret POSTPriceListSchedulers201ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *PriceListSchedulerCreateData) GetAttributesOk() (*POSTPriceListSchedulers201ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *PriceListSchedulerCreateData) SetAttributes(v POSTPriceListSchedulers201ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PriceListSchedulerCreateData) GetRelationships() PriceListSchedulerCreateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret PriceListSchedulerCreateDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceListSchedulerCreateData) GetRelationshipsOk() (*PriceListSchedulerCreateDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PriceListSchedulerCreateData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given PriceListSchedulerCreateDataRelationships and assigns it to the Relationships field. +func (o *PriceListSchedulerCreateData) SetRelationships(v PriceListSchedulerCreateDataRelationships) { + o.Relationships = &v +} + +func (o PriceListSchedulerCreateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PriceListSchedulerCreateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePriceListSchedulerCreateData struct { + value *PriceListSchedulerCreateData + isSet bool +} + +func (v NullablePriceListSchedulerCreateData) Get() *PriceListSchedulerCreateData { + return v.value +} + +func (v *NullablePriceListSchedulerCreateData) Set(val *PriceListSchedulerCreateData) { + v.value = val + v.isSet = true +} + +func (v NullablePriceListSchedulerCreateData) IsSet() bool { + return v.isSet +} + +func (v *NullablePriceListSchedulerCreateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePriceListSchedulerCreateData(val *PriceListSchedulerCreateData) *NullablePriceListSchedulerCreateData { + return &NullablePriceListSchedulerCreateData{value: val, isSet: true} +} + +func (v NullablePriceListSchedulerCreateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePriceListSchedulerCreateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_price_list_scheduler_create_data_relationships.go b/api/model_price_list_scheduler_create_data_relationships.go new file mode 100644 index 00000000..0cef86a0 --- /dev/null +++ b/api/model_price_list_scheduler_create_data_relationships.go @@ -0,0 +1,143 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PriceListSchedulerCreateDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PriceListSchedulerCreateDataRelationships{} + +// PriceListSchedulerCreateDataRelationships struct for PriceListSchedulerCreateDataRelationships +type PriceListSchedulerCreateDataRelationships struct { + Market BillingInfoValidationRuleCreateDataRelationshipsMarket `json:"market"` + PriceList MarketCreateDataRelationshipsPriceList `json:"price_list"` +} + +// NewPriceListSchedulerCreateDataRelationships instantiates a new PriceListSchedulerCreateDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPriceListSchedulerCreateDataRelationships(market BillingInfoValidationRuleCreateDataRelationshipsMarket, priceList MarketCreateDataRelationshipsPriceList) *PriceListSchedulerCreateDataRelationships { + this := PriceListSchedulerCreateDataRelationships{} + this.Market = market + this.PriceList = priceList + return &this +} + +// NewPriceListSchedulerCreateDataRelationshipsWithDefaults instantiates a new PriceListSchedulerCreateDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPriceListSchedulerCreateDataRelationshipsWithDefaults() *PriceListSchedulerCreateDataRelationships { + this := PriceListSchedulerCreateDataRelationships{} + return &this +} + +// GetMarket returns the Market field value +func (o *PriceListSchedulerCreateDataRelationships) GetMarket() BillingInfoValidationRuleCreateDataRelationshipsMarket { + if o == nil { + var ret BillingInfoValidationRuleCreateDataRelationshipsMarket + return ret + } + + return o.Market +} + +// GetMarketOk returns a tuple with the Market field value +// and a boolean to check if the value has been set. +func (o *PriceListSchedulerCreateDataRelationships) GetMarketOk() (*BillingInfoValidationRuleCreateDataRelationshipsMarket, bool) { + if o == nil { + return nil, false + } + return &o.Market, true +} + +// SetMarket sets field value +func (o *PriceListSchedulerCreateDataRelationships) SetMarket(v BillingInfoValidationRuleCreateDataRelationshipsMarket) { + o.Market = v +} + +// GetPriceList returns the PriceList field value +func (o *PriceListSchedulerCreateDataRelationships) GetPriceList() MarketCreateDataRelationshipsPriceList { + if o == nil { + var ret MarketCreateDataRelationshipsPriceList + return ret + } + + return o.PriceList +} + +// GetPriceListOk returns a tuple with the PriceList field value +// and a boolean to check if the value has been set. +func (o *PriceListSchedulerCreateDataRelationships) GetPriceListOk() (*MarketCreateDataRelationshipsPriceList, bool) { + if o == nil { + return nil, false + } + return &o.PriceList, true +} + +// SetPriceList sets field value +func (o *PriceListSchedulerCreateDataRelationships) SetPriceList(v MarketCreateDataRelationshipsPriceList) { + o.PriceList = v +} + +func (o PriceListSchedulerCreateDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PriceListSchedulerCreateDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["market"] = o.Market + toSerialize["price_list"] = o.PriceList + return toSerialize, nil +} + +type NullablePriceListSchedulerCreateDataRelationships struct { + value *PriceListSchedulerCreateDataRelationships + isSet bool +} + +func (v NullablePriceListSchedulerCreateDataRelationships) Get() *PriceListSchedulerCreateDataRelationships { + return v.value +} + +func (v *NullablePriceListSchedulerCreateDataRelationships) Set(val *PriceListSchedulerCreateDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePriceListSchedulerCreateDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePriceListSchedulerCreateDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePriceListSchedulerCreateDataRelationships(val *PriceListSchedulerCreateDataRelationships) *NullablePriceListSchedulerCreateDataRelationships { + return &NullablePriceListSchedulerCreateDataRelationships{value: val, isSet: true} +} + +func (v NullablePriceListSchedulerCreateDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePriceListSchedulerCreateDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_price_list_scheduler_data.go b/api/model_price_list_scheduler_data.go new file mode 100644 index 00000000..17739f05 --- /dev/null +++ b/api/model_price_list_scheduler_data.go @@ -0,0 +1,184 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PriceListSchedulerData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PriceListSchedulerData{} + +// PriceListSchedulerData struct for PriceListSchedulerData +type PriceListSchedulerData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes `json:"attributes"` + Relationships *PriceListSchedulerDataRelationships `json:"relationships,omitempty"` +} + +// NewPriceListSchedulerData instantiates a new PriceListSchedulerData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPriceListSchedulerData(type_ interface{}, attributes GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) *PriceListSchedulerData { + this := PriceListSchedulerData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewPriceListSchedulerDataWithDefaults instantiates a new PriceListSchedulerData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPriceListSchedulerDataWithDefaults() *PriceListSchedulerData { + this := PriceListSchedulerData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *PriceListSchedulerData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PriceListSchedulerData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PriceListSchedulerData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *PriceListSchedulerData) GetAttributes() GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes { + if o == nil { + var ret GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *PriceListSchedulerData) GetAttributesOk() (*GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *PriceListSchedulerData) SetAttributes(v GETPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PriceListSchedulerData) GetRelationships() PriceListSchedulerDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret PriceListSchedulerDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceListSchedulerData) GetRelationshipsOk() (*PriceListSchedulerDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PriceListSchedulerData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given PriceListSchedulerDataRelationships and assigns it to the Relationships field. +func (o *PriceListSchedulerData) SetRelationships(v PriceListSchedulerDataRelationships) { + o.Relationships = &v +} + +func (o PriceListSchedulerData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PriceListSchedulerData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePriceListSchedulerData struct { + value *PriceListSchedulerData + isSet bool +} + +func (v NullablePriceListSchedulerData) Get() *PriceListSchedulerData { + return v.value +} + +func (v *NullablePriceListSchedulerData) Set(val *PriceListSchedulerData) { + v.value = val + v.isSet = true +} + +func (v NullablePriceListSchedulerData) IsSet() bool { + return v.isSet +} + +func (v *NullablePriceListSchedulerData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePriceListSchedulerData(val *PriceListSchedulerData) *NullablePriceListSchedulerData { + return &NullablePriceListSchedulerData{value: val, isSet: true} +} + +func (v NullablePriceListSchedulerData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePriceListSchedulerData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_price_list_scheduler_data_relationships.go b/api/model_price_list_scheduler_data_relationships.go new file mode 100644 index 00000000..85a6420f --- /dev/null +++ b/api/model_price_list_scheduler_data_relationships.go @@ -0,0 +1,233 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PriceListSchedulerDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PriceListSchedulerDataRelationships{} + +// PriceListSchedulerDataRelationships struct for PriceListSchedulerDataRelationships +type PriceListSchedulerDataRelationships struct { + Market *AvalaraAccountDataRelationshipsMarkets `json:"market,omitempty"` + PriceList *MarketDataRelationshipsPriceList `json:"price_list,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewPriceListSchedulerDataRelationships instantiates a new PriceListSchedulerDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPriceListSchedulerDataRelationships() *PriceListSchedulerDataRelationships { + this := PriceListSchedulerDataRelationships{} + return &this +} + +// NewPriceListSchedulerDataRelationshipsWithDefaults instantiates a new PriceListSchedulerDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPriceListSchedulerDataRelationshipsWithDefaults() *PriceListSchedulerDataRelationships { + this := PriceListSchedulerDataRelationships{} + return &this +} + +// GetMarket returns the Market field value if set, zero value otherwise. +func (o *PriceListSchedulerDataRelationships) GetMarket() AvalaraAccountDataRelationshipsMarkets { + if o == nil || IsNil(o.Market) { + var ret AvalaraAccountDataRelationshipsMarkets + return ret + } + return *o.Market +} + +// GetMarketOk returns a tuple with the Market field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceListSchedulerDataRelationships) GetMarketOk() (*AvalaraAccountDataRelationshipsMarkets, bool) { + if o == nil || IsNil(o.Market) { + return nil, false + } + return o.Market, true +} + +// HasMarket returns a boolean if a field has been set. +func (o *PriceListSchedulerDataRelationships) HasMarket() bool { + if o != nil && !IsNil(o.Market) { + return true + } + + return false +} + +// SetMarket gets a reference to the given AvalaraAccountDataRelationshipsMarkets and assigns it to the Market field. +func (o *PriceListSchedulerDataRelationships) SetMarket(v AvalaraAccountDataRelationshipsMarkets) { + o.Market = &v +} + +// GetPriceList returns the PriceList field value if set, zero value otherwise. +func (o *PriceListSchedulerDataRelationships) GetPriceList() MarketDataRelationshipsPriceList { + if o == nil || IsNil(o.PriceList) { + var ret MarketDataRelationshipsPriceList + return ret + } + return *o.PriceList +} + +// GetPriceListOk returns a tuple with the PriceList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceListSchedulerDataRelationships) GetPriceListOk() (*MarketDataRelationshipsPriceList, bool) { + if o == nil || IsNil(o.PriceList) { + return nil, false + } + return o.PriceList, true +} + +// HasPriceList returns a boolean if a field has been set. +func (o *PriceListSchedulerDataRelationships) HasPriceList() bool { + if o != nil && !IsNil(o.PriceList) { + return true + } + + return false +} + +// SetPriceList gets a reference to the given MarketDataRelationshipsPriceList and assigns it to the PriceList field. +func (o *PriceListSchedulerDataRelationships) SetPriceList(v MarketDataRelationshipsPriceList) { + o.PriceList = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *PriceListSchedulerDataRelationships) GetEvents() AddressDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret AddressDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceListSchedulerDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *PriceListSchedulerDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *PriceListSchedulerDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { + o.Events = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *PriceListSchedulerDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceListSchedulerDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *PriceListSchedulerDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *PriceListSchedulerDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + +func (o PriceListSchedulerDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PriceListSchedulerDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Market) { + toSerialize["market"] = o.Market + } + if !IsNil(o.PriceList) { + toSerialize["price_list"] = o.PriceList + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullablePriceListSchedulerDataRelationships struct { + value *PriceListSchedulerDataRelationships + isSet bool +} + +func (v NullablePriceListSchedulerDataRelationships) Get() *PriceListSchedulerDataRelationships { + return v.value +} + +func (v *NullablePriceListSchedulerDataRelationships) Set(val *PriceListSchedulerDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePriceListSchedulerDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePriceListSchedulerDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePriceListSchedulerDataRelationships(val *PriceListSchedulerDataRelationships) *NullablePriceListSchedulerDataRelationships { + return &NullablePriceListSchedulerDataRelationships{value: val, isSet: true} +} + +func (v NullablePriceListSchedulerDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePriceListSchedulerDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_price_list_scheduler_update.go b/api/model_price_list_scheduler_update.go new file mode 100644 index 00000000..28b5d77e --- /dev/null +++ b/api/model_price_list_scheduler_update.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PriceListSchedulerUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PriceListSchedulerUpdate{} + +// PriceListSchedulerUpdate struct for PriceListSchedulerUpdate +type PriceListSchedulerUpdate struct { + Data PriceListSchedulerUpdateData `json:"data"` +} + +// NewPriceListSchedulerUpdate instantiates a new PriceListSchedulerUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPriceListSchedulerUpdate(data PriceListSchedulerUpdateData) *PriceListSchedulerUpdate { + this := PriceListSchedulerUpdate{} + this.Data = data + return &this +} + +// NewPriceListSchedulerUpdateWithDefaults instantiates a new PriceListSchedulerUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPriceListSchedulerUpdateWithDefaults() *PriceListSchedulerUpdate { + this := PriceListSchedulerUpdate{} + return &this +} + +// GetData returns the Data field value +func (o *PriceListSchedulerUpdate) GetData() PriceListSchedulerUpdateData { + if o == nil { + var ret PriceListSchedulerUpdateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *PriceListSchedulerUpdate) GetDataOk() (*PriceListSchedulerUpdateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *PriceListSchedulerUpdate) SetData(v PriceListSchedulerUpdateData) { + o.Data = v +} + +func (o PriceListSchedulerUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PriceListSchedulerUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullablePriceListSchedulerUpdate struct { + value *PriceListSchedulerUpdate + isSet bool +} + +func (v NullablePriceListSchedulerUpdate) Get() *PriceListSchedulerUpdate { + return v.value +} + +func (v *NullablePriceListSchedulerUpdate) Set(val *PriceListSchedulerUpdate) { + v.value = val + v.isSet = true +} + +func (v NullablePriceListSchedulerUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullablePriceListSchedulerUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePriceListSchedulerUpdate(val *PriceListSchedulerUpdate) *NullablePriceListSchedulerUpdate { + return &NullablePriceListSchedulerUpdate{value: val, isSet: true} +} + +func (v NullablePriceListSchedulerUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePriceListSchedulerUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_price_list_scheduler_update_data.go b/api/model_price_list_scheduler_update_data.go new file mode 100644 index 00000000..6240fa54 --- /dev/null +++ b/api/model_price_list_scheduler_update_data.go @@ -0,0 +1,216 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PriceListSchedulerUpdateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PriceListSchedulerUpdateData{} + +// PriceListSchedulerUpdateData struct for PriceListSchedulerUpdateData +type PriceListSchedulerUpdateData struct { + // The resource's type + Type interface{} `json:"type"` + // The resource's id + Id interface{} `json:"id"` + Attributes PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes `json:"attributes"` + Relationships *PriceListSchedulerUpdateDataRelationships `json:"relationships,omitempty"` +} + +// NewPriceListSchedulerUpdateData instantiates a new PriceListSchedulerUpdateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPriceListSchedulerUpdateData(type_ interface{}, id interface{}, attributes PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) *PriceListSchedulerUpdateData { + this := PriceListSchedulerUpdateData{} + this.Type = type_ + this.Id = id + this.Attributes = attributes + return &this +} + +// NewPriceListSchedulerUpdateDataWithDefaults instantiates a new PriceListSchedulerUpdateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPriceListSchedulerUpdateDataWithDefaults() *PriceListSchedulerUpdateData { + this := PriceListSchedulerUpdateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *PriceListSchedulerUpdateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PriceListSchedulerUpdateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *PriceListSchedulerUpdateData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *PriceListSchedulerUpdateData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PriceListSchedulerUpdateData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *PriceListSchedulerUpdateData) SetId(v interface{}) { + o.Id = v +} + +// GetAttributes returns the Attributes field value +func (o *PriceListSchedulerUpdateData) GetAttributes() PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes { + if o == nil { + var ret PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *PriceListSchedulerUpdateData) GetAttributesOk() (*PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *PriceListSchedulerUpdateData) SetAttributes(v PATCHPriceListSchedulersPriceListSchedulerId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *PriceListSchedulerUpdateData) GetRelationships() PriceListSchedulerUpdateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret PriceListSchedulerUpdateDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceListSchedulerUpdateData) GetRelationshipsOk() (*PriceListSchedulerUpdateDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *PriceListSchedulerUpdateData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given PriceListSchedulerUpdateDataRelationships and assigns it to the Relationships field. +func (o *PriceListSchedulerUpdateData) SetRelationships(v PriceListSchedulerUpdateDataRelationships) { + o.Relationships = &v +} + +func (o PriceListSchedulerUpdateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PriceListSchedulerUpdateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullablePriceListSchedulerUpdateData struct { + value *PriceListSchedulerUpdateData + isSet bool +} + +func (v NullablePriceListSchedulerUpdateData) Get() *PriceListSchedulerUpdateData { + return v.value +} + +func (v *NullablePriceListSchedulerUpdateData) Set(val *PriceListSchedulerUpdateData) { + v.value = val + v.isSet = true +} + +func (v NullablePriceListSchedulerUpdateData) IsSet() bool { + return v.isSet +} + +func (v *NullablePriceListSchedulerUpdateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePriceListSchedulerUpdateData(val *PriceListSchedulerUpdateData) *NullablePriceListSchedulerUpdateData { + return &NullablePriceListSchedulerUpdateData{value: val, isSet: true} +} + +func (v NullablePriceListSchedulerUpdateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePriceListSchedulerUpdateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_price_list_scheduler_update_data_relationships.go b/api/model_price_list_scheduler_update_data_relationships.go new file mode 100644 index 00000000..f796cd31 --- /dev/null +++ b/api/model_price_list_scheduler_update_data_relationships.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the PriceListSchedulerUpdateDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PriceListSchedulerUpdateDataRelationships{} + +// PriceListSchedulerUpdateDataRelationships struct for PriceListSchedulerUpdateDataRelationships +type PriceListSchedulerUpdateDataRelationships struct { + Market *BillingInfoValidationRuleCreateDataRelationshipsMarket `json:"market,omitempty"` + PriceList *MarketCreateDataRelationshipsPriceList `json:"price_list,omitempty"` +} + +// NewPriceListSchedulerUpdateDataRelationships instantiates a new PriceListSchedulerUpdateDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPriceListSchedulerUpdateDataRelationships() *PriceListSchedulerUpdateDataRelationships { + this := PriceListSchedulerUpdateDataRelationships{} + return &this +} + +// NewPriceListSchedulerUpdateDataRelationshipsWithDefaults instantiates a new PriceListSchedulerUpdateDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPriceListSchedulerUpdateDataRelationshipsWithDefaults() *PriceListSchedulerUpdateDataRelationships { + this := PriceListSchedulerUpdateDataRelationships{} + return &this +} + +// GetMarket returns the Market field value if set, zero value otherwise. +func (o *PriceListSchedulerUpdateDataRelationships) GetMarket() BillingInfoValidationRuleCreateDataRelationshipsMarket { + if o == nil || IsNil(o.Market) { + var ret BillingInfoValidationRuleCreateDataRelationshipsMarket + return ret + } + return *o.Market +} + +// GetMarketOk returns a tuple with the Market field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceListSchedulerUpdateDataRelationships) GetMarketOk() (*BillingInfoValidationRuleCreateDataRelationshipsMarket, bool) { + if o == nil || IsNil(o.Market) { + return nil, false + } + return o.Market, true +} + +// HasMarket returns a boolean if a field has been set. +func (o *PriceListSchedulerUpdateDataRelationships) HasMarket() bool { + if o != nil && !IsNil(o.Market) { + return true + } + + return false +} + +// SetMarket gets a reference to the given BillingInfoValidationRuleCreateDataRelationshipsMarket and assigns it to the Market field. +func (o *PriceListSchedulerUpdateDataRelationships) SetMarket(v BillingInfoValidationRuleCreateDataRelationshipsMarket) { + o.Market = &v +} + +// GetPriceList returns the PriceList field value if set, zero value otherwise. +func (o *PriceListSchedulerUpdateDataRelationships) GetPriceList() MarketCreateDataRelationshipsPriceList { + if o == nil || IsNil(o.PriceList) { + var ret MarketCreateDataRelationshipsPriceList + return ret + } + return *o.PriceList +} + +// GetPriceListOk returns a tuple with the PriceList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceListSchedulerUpdateDataRelationships) GetPriceListOk() (*MarketCreateDataRelationshipsPriceList, bool) { + if o == nil || IsNil(o.PriceList) { + return nil, false + } + return o.PriceList, true +} + +// HasPriceList returns a boolean if a field has been set. +func (o *PriceListSchedulerUpdateDataRelationships) HasPriceList() bool { + if o != nil && !IsNil(o.PriceList) { + return true + } + + return false +} + +// SetPriceList gets a reference to the given MarketCreateDataRelationshipsPriceList and assigns it to the PriceList field. +func (o *PriceListSchedulerUpdateDataRelationships) SetPriceList(v MarketCreateDataRelationshipsPriceList) { + o.PriceList = &v +} + +func (o PriceListSchedulerUpdateDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PriceListSchedulerUpdateDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Market) { + toSerialize["market"] = o.Market + } + if !IsNil(o.PriceList) { + toSerialize["price_list"] = o.PriceList + } + return toSerialize, nil +} + +type NullablePriceListSchedulerUpdateDataRelationships struct { + value *PriceListSchedulerUpdateDataRelationships + isSet bool +} + +func (v NullablePriceListSchedulerUpdateDataRelationships) Get() *PriceListSchedulerUpdateDataRelationships { + return v.value +} + +func (v *NullablePriceListSchedulerUpdateDataRelationships) Set(val *PriceListSchedulerUpdateDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullablePriceListSchedulerUpdateDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullablePriceListSchedulerUpdateDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePriceListSchedulerUpdateDataRelationships(val *PriceListSchedulerUpdateDataRelationships) *NullablePriceListSchedulerUpdateDataRelationships { + return &NullablePriceListSchedulerUpdateDataRelationships{value: val, isSet: true} +} + +func (v NullablePriceListSchedulerUpdateDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePriceListSchedulerUpdateDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_price_list_update.go b/api/model_price_list_update.go index 764c7d28..b9bb8dca 100644 --- a/api/model_price_list_update.go +++ b/api/model_price_list_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_list_update_data.go b/api/model_price_list_update_data.go index 4d03ef78..f0ae87ad 100644 --- a/api/model_price_list_update_data.go +++ b/api/model_price_list_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_tier.go b/api/model_price_tier.go index bce976bd..00cbbdd2 100644 --- a/api/model_price_tier.go +++ b/api/model_price_tier.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_tier_data.go b/api/model_price_tier_data.go index 14837042..e6f42157 100644 --- a/api/model_price_tier_data.go +++ b/api/model_price_tier_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_tier_data_relationships.go b/api/model_price_tier_data_relationships.go index a2007122..16230b8d 100644 --- a/api/model_price_tier_data_relationships.go +++ b/api/model_price_tier_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,9 @@ var _ MappedNullable = &PriceTierDataRelationships{} // PriceTierDataRelationships struct for PriceTierDataRelationships type PriceTierDataRelationships struct { - Price *PriceFrequencyTierDataRelationshipsPrice `json:"price,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Price *PriceFrequencyTierDataRelationshipsPrice `json:"price,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewPriceTierDataRelationships instantiates a new PriceTierDataRelationships object @@ -74,9 +75,9 @@ func (o *PriceTierDataRelationships) SetPrice(v PriceFrequencyTierDataRelationsh } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *PriceTierDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *PriceTierDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -84,7 +85,7 @@ func (o *PriceTierDataRelationships) GetAttachments() AvalaraAccountDataRelation // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PriceTierDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *PriceTierDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -100,11 +101,43 @@ func (o *PriceTierDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *PriceTierDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *PriceTierDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *PriceTierDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PriceTierDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *PriceTierDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *PriceTierDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o PriceTierDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o PriceTierDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_price_update.go b/api/model_price_update.go index 283e6d1c..1252c1d8 100644 --- a/api/model_price_update.go +++ b/api/model_price_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_update_data.go b/api/model_price_update_data.go index 9fb62824..8e95fdce 100644 --- a/api/model_price_update_data.go +++ b/api/model_price_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_update_data_relationships.go b/api/model_price_update_data_relationships.go index 0156217e..40524e9f 100644 --- a/api/model_price_update_data_relationships.go +++ b/api/model_price_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_volume_tier.go b/api/model_price_volume_tier.go index 3b345311..37cf763a 100644 --- a/api/model_price_volume_tier.go +++ b/api/model_price_volume_tier.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_volume_tier_create.go b/api/model_price_volume_tier_create.go index 63a0adef..5ea62dba 100644 --- a/api/model_price_volume_tier_create.go +++ b/api/model_price_volume_tier_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_volume_tier_create_data.go b/api/model_price_volume_tier_create_data.go index 5def9880..0084d8b4 100644 --- a/api/model_price_volume_tier_create_data.go +++ b/api/model_price_volume_tier_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_volume_tier_data.go b/api/model_price_volume_tier_data.go index 42c678c3..241ae434 100644 --- a/api/model_price_volume_tier_data.go +++ b/api/model_price_volume_tier_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_volume_tier_update.go b/api/model_price_volume_tier_update.go index 67348360..2392e16a 100644 --- a/api/model_price_volume_tier_update.go +++ b/api/model_price_volume_tier_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_price_volume_tier_update_data.go b/api/model_price_volume_tier_update_data.go index 479fe44c..4429d60f 100644 --- a/api/model_price_volume_tier_update_data.go +++ b/api/model_price_volume_tier_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_promotion.go b/api/model_promotion.go index 3a8c213e..15fd8e79 100644 --- a/api/model_promotion.go +++ b/api/model_promotion.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_promotion_data.go b/api/model_promotion_data.go index 2d9071ca..1d812bfc 100644 --- a/api/model_promotion_data.go +++ b/api/model_promotion_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type PromotionData struct { // The resource's type Type interface{} `json:"type"` Attributes GETFreeShippingPromotionsFreeShippingPromotionId200ResponseDataAttributes `json:"attributes"` - Relationships *ExternalPromotionDataRelationships `json:"relationships,omitempty"` + Relationships *FreeShippingPromotionDataRelationships `json:"relationships,omitempty"` } // NewPromotionData instantiates a new PromotionData object @@ -96,9 +96,9 @@ func (o *PromotionData) SetAttributes(v GETFreeShippingPromotionsFreeShippingPro } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *PromotionData) GetRelationships() ExternalPromotionDataRelationships { +func (o *PromotionData) GetRelationships() FreeShippingPromotionDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret ExternalPromotionDataRelationships + var ret FreeShippingPromotionDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *PromotionData) GetRelationships() ExternalPromotionDataRelationships { // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PromotionData) GetRelationshipsOk() (*ExternalPromotionDataRelationships, bool) { +func (o *PromotionData) GetRelationshipsOk() (*FreeShippingPromotionDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *PromotionData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given ExternalPromotionDataRelationships and assigns it to the Relationships field. -func (o *PromotionData) SetRelationships(v ExternalPromotionDataRelationships) { +// SetRelationships gets a reference to the given FreeShippingPromotionDataRelationships and assigns it to the Relationships field. +func (o *PromotionData) SetRelationships(v FreeShippingPromotionDataRelationships) { o.Relationships = &v } diff --git a/api/model_promotion_rule.go b/api/model_promotion_rule.go index 2580c3b7..cb14ba97 100644 --- a/api/model_promotion_rule.go +++ b/api/model_promotion_rule.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_promotion_rule_data.go b/api/model_promotion_rule_data.go index 4c851229..259a4d4e 100644 --- a/api/model_promotion_rule_data.go +++ b/api/model_promotion_rule_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,16 +21,16 @@ var _ MappedNullable = &PromotionRuleData{} // PromotionRuleData struct for PromotionRuleData type PromotionRuleData struct { // The resource's type - Type interface{} `json:"type"` - Attributes GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes `json:"attributes"` - Relationships *OrderAmountPromotionRuleDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type"` + Attributes GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes `json:"attributes"` + Relationships *CustomPromotionRuleDataRelationships `json:"relationships,omitempty"` } // NewPromotionRuleData instantiates a new PromotionRuleData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPromotionRuleData(type_ interface{}, attributes GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) *PromotionRuleData { +func NewPromotionRuleData(type_ interface{}, attributes GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) *PromotionRuleData { this := PromotionRuleData{} this.Type = type_ this.Attributes = attributes @@ -72,9 +72,9 @@ func (o *PromotionRuleData) SetType(v interface{}) { } // GetAttributes returns the Attributes field value -func (o *PromotionRuleData) GetAttributes() GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes { +func (o *PromotionRuleData) GetAttributes() GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes { if o == nil { - var ret GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes + var ret GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes return ret } @@ -83,7 +83,7 @@ func (o *PromotionRuleData) GetAttributes() GETBillingInfoValidationRulesBilling // GetAttributesOk returns a tuple with the Attributes field value // and a boolean to check if the value has been set. -func (o *PromotionRuleData) GetAttributesOk() (*GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes, bool) { +func (o *PromotionRuleData) GetAttributesOk() (*GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes, bool) { if o == nil { return nil, false } @@ -91,14 +91,14 @@ func (o *PromotionRuleData) GetAttributesOk() (*GETBillingInfoValidationRulesBil } // SetAttributes sets field value -func (o *PromotionRuleData) SetAttributes(v GETBillingInfoValidationRulesBillingInfoValidationRuleId200ResponseDataAttributes) { +func (o *PromotionRuleData) SetAttributes(v GETCouponCodesPromotionRulesCouponCodesPromotionRuleId200ResponseDataAttributes) { o.Attributes = v } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *PromotionRuleData) GetRelationships() OrderAmountPromotionRuleDataRelationships { +func (o *PromotionRuleData) GetRelationships() CustomPromotionRuleDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret OrderAmountPromotionRuleDataRelationships + var ret CustomPromotionRuleDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *PromotionRuleData) GetRelationships() OrderAmountPromotionRuleDataRelat // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PromotionRuleData) GetRelationshipsOk() (*OrderAmountPromotionRuleDataRelationships, bool) { +func (o *PromotionRuleData) GetRelationshipsOk() (*CustomPromotionRuleDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *PromotionRuleData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given OrderAmountPromotionRuleDataRelationships and assigns it to the Relationships field. -func (o *PromotionRuleData) SetRelationships(v OrderAmountPromotionRuleDataRelationships) { +// SetRelationships gets a reference to the given CustomPromotionRuleDataRelationships and assigns it to the Relationships field. +func (o *PromotionRuleData) SetRelationships(v CustomPromotionRuleDataRelationships) { o.Relationships = &v } diff --git a/api/model_recurring_order_copy.go b/api/model_recurring_order_copy.go index 1f018281..52b1502d 100644 --- a/api/model_recurring_order_copy.go +++ b/api/model_recurring_order_copy.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_recurring_order_copy_create.go b/api/model_recurring_order_copy_create.go index 0ac40908..f5c21940 100644 --- a/api/model_recurring_order_copy_create.go +++ b/api/model_recurring_order_copy_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_recurring_order_copy_create_data.go b/api/model_recurring_order_copy_create_data.go index e77efdd3..7d768785 100644 --- a/api/model_recurring_order_copy_create_data.go +++ b/api/model_recurring_order_copy_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_recurring_order_copy_create_data_relationships.go b/api/model_recurring_order_copy_create_data_relationships.go index b3ff01be..2063f36b 100644 --- a/api/model_recurring_order_copy_create_data_relationships.go +++ b/api/model_recurring_order_copy_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_recurring_order_copy_data.go b/api/model_recurring_order_copy_data.go index feefd3e6..aa92a801 100644 --- a/api/model_recurring_order_copy_data.go +++ b/api/model_recurring_order_copy_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_recurring_order_copy_update.go b/api/model_recurring_order_copy_update.go index e321bb02..3f9048fd 100644 --- a/api/model_recurring_order_copy_update.go +++ b/api/model_recurring_order_copy_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_recurring_order_copy_update_data.go b/api/model_recurring_order_copy_update_data.go index d926e8bf..ff78b20b 100644 --- a/api/model_recurring_order_copy_update_data.go +++ b/api/model_recurring_order_copy_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_refund.go b/api/model_refund.go index 90f52602..052821c5 100644 --- a/api/model_refund.go +++ b/api/model_refund.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_refund_data.go b/api/model_refund_data.go index fdd419f0..95a91cb2 100644 --- a/api/model_refund_data.go +++ b/api/model_refund_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_refund_data_relationships.go b/api/model_refund_data_relationships.go index 3b4eff15..79a31f1c 100644 --- a/api/model_refund_data_relationships.go +++ b/api/model_refund_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,12 @@ var _ MappedNullable = &RefundDataRelationships{} // RefundDataRelationships struct for RefundDataRelationships type RefundDataRelationships struct { - Order *AdyenPaymentDataRelationshipsOrder `json:"order,omitempty"` - ReferenceCapture *AuthorizationDataRelationshipsCaptures `json:"reference_capture,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` + Order *AdyenPaymentDataRelationshipsOrder `json:"order,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` + ReferenceCapture *AuthorizationDataRelationshipsCaptures `json:"reference_capture,omitempty"` + Return *CaptureDataRelationshipsReturn `json:"return,omitempty"` } // NewRefundDataRelationships instantiates a new RefundDataRelationships object @@ -74,6 +77,102 @@ func (o *RefundDataRelationships) SetOrder(v AdyenPaymentDataRelationshipsOrder) o.Order = &v } +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *RefundDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret AuthorizationDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RefundDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *RefundDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *RefundDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { + o.Attachments = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *RefundDataRelationships) GetEvents() AddressDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret AddressDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RefundDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *RefundDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *RefundDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { + o.Events = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *RefundDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RefundDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *RefundDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *RefundDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + // GetReferenceCapture returns the ReferenceCapture field value if set, zero value otherwise. func (o *RefundDataRelationships) GetReferenceCapture() AuthorizationDataRelationshipsCaptures { if o == nil || IsNil(o.ReferenceCapture) { @@ -106,36 +205,36 @@ func (o *RefundDataRelationships) SetReferenceCapture(v AuthorizationDataRelatio o.ReferenceCapture = &v } -// GetEvents returns the Events field value if set, zero value otherwise. -func (o *RefundDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { - if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents +// GetReturn returns the Return field value if set, zero value otherwise. +func (o *RefundDataRelationships) GetReturn() CaptureDataRelationshipsReturn { + if o == nil || IsNil(o.Return) { + var ret CaptureDataRelationshipsReturn return ret } - return *o.Events + return *o.Return } -// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// GetReturnOk returns a tuple with the Return field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *RefundDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { - if o == nil || IsNil(o.Events) { +func (o *RefundDataRelationships) GetReturnOk() (*CaptureDataRelationshipsReturn, bool) { + if o == nil || IsNil(o.Return) { return nil, false } - return o.Events, true + return o.Return, true } -// HasEvents returns a boolean if a field has been set. -func (o *RefundDataRelationships) HasEvents() bool { - if o != nil && !IsNil(o.Events) { +// HasReturn returns a boolean if a field has been set. +func (o *RefundDataRelationships) HasReturn() bool { + if o != nil && !IsNil(o.Return) { return true } return false } -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *RefundDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { - o.Events = &v +// SetReturn gets a reference to the given CaptureDataRelationshipsReturn and assigns it to the Return field. +func (o *RefundDataRelationships) SetReturn(v CaptureDataRelationshipsReturn) { + o.Return = &v } func (o RefundDataRelationships) MarshalJSON() ([]byte, error) { @@ -151,12 +250,21 @@ func (o RefundDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Order) { toSerialize["order"] = o.Order } - if !IsNil(o.ReferenceCapture) { - toSerialize["reference_capture"] = o.ReferenceCapture + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments } if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + if !IsNil(o.ReferenceCapture) { + toSerialize["reference_capture"] = o.ReferenceCapture + } + if !IsNil(o.Return) { + toSerialize["return"] = o.Return + } return toSerialize, nil } diff --git a/api/model_refund_update.go b/api/model_refund_update.go new file mode 100644 index 00000000..1c364321 --- /dev/null +++ b/api/model_refund_update.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the RefundUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RefundUpdate{} + +// RefundUpdate struct for RefundUpdate +type RefundUpdate struct { + Data RefundUpdateData `json:"data"` +} + +// NewRefundUpdate instantiates a new RefundUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRefundUpdate(data RefundUpdateData) *RefundUpdate { + this := RefundUpdate{} + this.Data = data + return &this +} + +// NewRefundUpdateWithDefaults instantiates a new RefundUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRefundUpdateWithDefaults() *RefundUpdate { + this := RefundUpdate{} + return &this +} + +// GetData returns the Data field value +func (o *RefundUpdate) GetData() RefundUpdateData { + if o == nil { + var ret RefundUpdateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *RefundUpdate) GetDataOk() (*RefundUpdateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *RefundUpdate) SetData(v RefundUpdateData) { + o.Data = v +} + +func (o RefundUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RefundUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableRefundUpdate struct { + value *RefundUpdate + isSet bool +} + +func (v NullableRefundUpdate) Get() *RefundUpdate { + return v.value +} + +func (v *NullableRefundUpdate) Set(val *RefundUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableRefundUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableRefundUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRefundUpdate(val *RefundUpdate) *NullableRefundUpdate { + return &NullableRefundUpdate{value: val, isSet: true} +} + +func (v NullableRefundUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRefundUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_refund_update_data.go b/api/model_refund_update_data.go new file mode 100644 index 00000000..267e2f7e --- /dev/null +++ b/api/model_refund_update_data.go @@ -0,0 +1,217 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the RefundUpdateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RefundUpdateData{} + +// RefundUpdateData struct for RefundUpdateData +type RefundUpdateData struct { + // The resource's type + Type interface{} `json:"type"` + // The resource's id + Id interface{} `json:"id"` + Attributes PATCHRefundsRefundId200ResponseDataAttributes `json:"attributes"` + Relationships interface{} `json:"relationships,omitempty"` +} + +// NewRefundUpdateData instantiates a new RefundUpdateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRefundUpdateData(type_ interface{}, id interface{}, attributes PATCHRefundsRefundId200ResponseDataAttributes) *RefundUpdateData { + this := RefundUpdateData{} + this.Type = type_ + this.Id = id + this.Attributes = attributes + return &this +} + +// NewRefundUpdateDataWithDefaults instantiates a new RefundUpdateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRefundUpdateDataWithDefaults() *RefundUpdateData { + this := RefundUpdateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *RefundUpdateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RefundUpdateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *RefundUpdateData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *RefundUpdateData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RefundUpdateData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *RefundUpdateData) SetId(v interface{}) { + o.Id = v +} + +// GetAttributes returns the Attributes field value +func (o *RefundUpdateData) GetAttributes() PATCHRefundsRefundId200ResponseDataAttributes { + if o == nil { + var ret PATCHRefundsRefundId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *RefundUpdateData) GetAttributesOk() (*PATCHRefundsRefundId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *RefundUpdateData) SetAttributes(v PATCHRefundsRefundId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RefundUpdateData) GetRelationships() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RefundUpdateData) GetRelationshipsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return &o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *RefundUpdateData) HasRelationships() bool { + if o != nil && IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. +func (o *RefundUpdateData) SetRelationships(v interface{}) { + o.Relationships = v +} + +func (o RefundUpdateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RefundUpdateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + toSerialize["attributes"] = o.Attributes + if o.Relationships != nil { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableRefundUpdateData struct { + value *RefundUpdateData + isSet bool +} + +func (v NullableRefundUpdateData) Get() *RefundUpdateData { + return v.value +} + +func (v *NullableRefundUpdateData) Set(val *RefundUpdateData) { + v.value = val + v.isSet = true +} + +func (v NullableRefundUpdateData) IsSet() bool { + return v.isSet +} + +func (v *NullableRefundUpdateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRefundUpdateData(val *RefundUpdateData) *NullableRefundUpdateData { + return &NullableRefundUpdateData{value: val, isSet: true} +} + +func (v NullableRefundUpdateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRefundUpdateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_reserved_stock.go b/api/model_reserved_stock.go new file mode 100644 index 00000000..0b61288c --- /dev/null +++ b/api/model_reserved_stock.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ReservedStock type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReservedStock{} + +// ReservedStock struct for ReservedStock +type ReservedStock struct { + Data *ReservedStockData `json:"data,omitempty"` +} + +// NewReservedStock instantiates a new ReservedStock object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReservedStock() *ReservedStock { + this := ReservedStock{} + return &this +} + +// NewReservedStockWithDefaults instantiates a new ReservedStock object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReservedStockWithDefaults() *ReservedStock { + this := ReservedStock{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *ReservedStock) GetData() ReservedStockData { + if o == nil || IsNil(o.Data) { + var ret ReservedStockData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedStock) GetDataOk() (*ReservedStockData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *ReservedStock) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given ReservedStockData and assigns it to the Data field. +func (o *ReservedStock) SetData(v ReservedStockData) { + o.Data = &v +} + +func (o ReservedStock) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReservedStock) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableReservedStock struct { + value *ReservedStock + isSet bool +} + +func (v NullableReservedStock) Get() *ReservedStock { + return v.value +} + +func (v *NullableReservedStock) Set(val *ReservedStock) { + v.value = val + v.isSet = true +} + +func (v NullableReservedStock) IsSet() bool { + return v.isSet +} + +func (v *NullableReservedStock) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReservedStock(val *ReservedStock) *NullableReservedStock { + return &NullableReservedStock{value: val, isSet: true} +} + +func (v NullableReservedStock) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReservedStock) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_reserved_stock_data.go b/api/model_reserved_stock_data.go new file mode 100644 index 00000000..24a5ac1c --- /dev/null +++ b/api/model_reserved_stock_data.go @@ -0,0 +1,184 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ReservedStockData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReservedStockData{} + +// ReservedStockData struct for ReservedStockData +type ReservedStockData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes GETReservedStocksReservedStockId200ResponseDataAttributes `json:"attributes"` + Relationships *ReservedStockDataRelationships `json:"relationships,omitempty"` +} + +// NewReservedStockData instantiates a new ReservedStockData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReservedStockData(type_ interface{}, attributes GETReservedStocksReservedStockId200ResponseDataAttributes) *ReservedStockData { + this := ReservedStockData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewReservedStockDataWithDefaults instantiates a new ReservedStockData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReservedStockDataWithDefaults() *ReservedStockData { + this := ReservedStockData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *ReservedStockData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ReservedStockData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ReservedStockData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *ReservedStockData) GetAttributes() GETReservedStocksReservedStockId200ResponseDataAttributes { + if o == nil { + var ret GETReservedStocksReservedStockId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *ReservedStockData) GetAttributesOk() (*GETReservedStocksReservedStockId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *ReservedStockData) SetAttributes(v GETReservedStocksReservedStockId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *ReservedStockData) GetRelationships() ReservedStockDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret ReservedStockDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedStockData) GetRelationshipsOk() (*ReservedStockDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *ReservedStockData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given ReservedStockDataRelationships and assigns it to the Relationships field. +func (o *ReservedStockData) SetRelationships(v ReservedStockDataRelationships) { + o.Relationships = &v +} + +func (o ReservedStockData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReservedStockData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableReservedStockData struct { + value *ReservedStockData + isSet bool +} + +func (v NullableReservedStockData) Get() *ReservedStockData { + return v.value +} + +func (v *NullableReservedStockData) Set(val *ReservedStockData) { + v.value = val + v.isSet = true +} + +func (v NullableReservedStockData) IsSet() bool { + return v.isSet +} + +func (v *NullableReservedStockData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReservedStockData(val *ReservedStockData) *NullableReservedStockData { + return &NullableReservedStockData{value: val, isSet: true} +} + +func (v NullableReservedStockData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReservedStockData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_reserved_stock_data_relationships.go b/api/model_reserved_stock_data_relationships.go new file mode 100644 index 00000000..e6b13d88 --- /dev/null +++ b/api/model_reserved_stock_data_relationships.go @@ -0,0 +1,233 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ReservedStockDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReservedStockDataRelationships{} + +// ReservedStockDataRelationships struct for ReservedStockDataRelationships +type ReservedStockDataRelationships struct { + StockItem *ReservedStockDataRelationshipsStockItem `json:"stock_item,omitempty"` + Sku *BundleDataRelationshipsSkus `json:"sku,omitempty"` + StockReservations *LineItemDataRelationshipsStockReservations `json:"stock_reservations,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewReservedStockDataRelationships instantiates a new ReservedStockDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReservedStockDataRelationships() *ReservedStockDataRelationships { + this := ReservedStockDataRelationships{} + return &this +} + +// NewReservedStockDataRelationshipsWithDefaults instantiates a new ReservedStockDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReservedStockDataRelationshipsWithDefaults() *ReservedStockDataRelationships { + this := ReservedStockDataRelationships{} + return &this +} + +// GetStockItem returns the StockItem field value if set, zero value otherwise. +func (o *ReservedStockDataRelationships) GetStockItem() ReservedStockDataRelationshipsStockItem { + if o == nil || IsNil(o.StockItem) { + var ret ReservedStockDataRelationshipsStockItem + return ret + } + return *o.StockItem +} + +// GetStockItemOk returns a tuple with the StockItem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedStockDataRelationships) GetStockItemOk() (*ReservedStockDataRelationshipsStockItem, bool) { + if o == nil || IsNil(o.StockItem) { + return nil, false + } + return o.StockItem, true +} + +// HasStockItem returns a boolean if a field has been set. +func (o *ReservedStockDataRelationships) HasStockItem() bool { + if o != nil && !IsNil(o.StockItem) { + return true + } + + return false +} + +// SetStockItem gets a reference to the given ReservedStockDataRelationshipsStockItem and assigns it to the StockItem field. +func (o *ReservedStockDataRelationships) SetStockItem(v ReservedStockDataRelationshipsStockItem) { + o.StockItem = &v +} + +// GetSku returns the Sku field value if set, zero value otherwise. +func (o *ReservedStockDataRelationships) GetSku() BundleDataRelationshipsSkus { + if o == nil || IsNil(o.Sku) { + var ret BundleDataRelationshipsSkus + return ret + } + return *o.Sku +} + +// GetSkuOk returns a tuple with the Sku field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedStockDataRelationships) GetSkuOk() (*BundleDataRelationshipsSkus, bool) { + if o == nil || IsNil(o.Sku) { + return nil, false + } + return o.Sku, true +} + +// HasSku returns a boolean if a field has been set. +func (o *ReservedStockDataRelationships) HasSku() bool { + if o != nil && !IsNil(o.Sku) { + return true + } + + return false +} + +// SetSku gets a reference to the given BundleDataRelationshipsSkus and assigns it to the Sku field. +func (o *ReservedStockDataRelationships) SetSku(v BundleDataRelationshipsSkus) { + o.Sku = &v +} + +// GetStockReservations returns the StockReservations field value if set, zero value otherwise. +func (o *ReservedStockDataRelationships) GetStockReservations() LineItemDataRelationshipsStockReservations { + if o == nil || IsNil(o.StockReservations) { + var ret LineItemDataRelationshipsStockReservations + return ret + } + return *o.StockReservations +} + +// GetStockReservationsOk returns a tuple with the StockReservations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedStockDataRelationships) GetStockReservationsOk() (*LineItemDataRelationshipsStockReservations, bool) { + if o == nil || IsNil(o.StockReservations) { + return nil, false + } + return o.StockReservations, true +} + +// HasStockReservations returns a boolean if a field has been set. +func (o *ReservedStockDataRelationships) HasStockReservations() bool { + if o != nil && !IsNil(o.StockReservations) { + return true + } + + return false +} + +// SetStockReservations gets a reference to the given LineItemDataRelationshipsStockReservations and assigns it to the StockReservations field. +func (o *ReservedStockDataRelationships) SetStockReservations(v LineItemDataRelationshipsStockReservations) { + o.StockReservations = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *ReservedStockDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedStockDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *ReservedStockDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *ReservedStockDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + +func (o ReservedStockDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReservedStockDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.StockItem) { + toSerialize["stock_item"] = o.StockItem + } + if !IsNil(o.Sku) { + toSerialize["sku"] = o.Sku + } + if !IsNil(o.StockReservations) { + toSerialize["stock_reservations"] = o.StockReservations + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullableReservedStockDataRelationships struct { + value *ReservedStockDataRelationships + isSet bool +} + +func (v NullableReservedStockDataRelationships) Get() *ReservedStockDataRelationships { + return v.value +} + +func (v *NullableReservedStockDataRelationships) Set(val *ReservedStockDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableReservedStockDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableReservedStockDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReservedStockDataRelationships(val *ReservedStockDataRelationships) *NullableReservedStockDataRelationships { + return &NullableReservedStockDataRelationships{value: val, isSet: true} +} + +func (v NullableReservedStockDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReservedStockDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_reserved_stock_data_relationships_stock_item.go b/api/model_reserved_stock_data_relationships_stock_item.go new file mode 100644 index 00000000..f4cabc7c --- /dev/null +++ b/api/model_reserved_stock_data_relationships_stock_item.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ReservedStockDataRelationshipsStockItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReservedStockDataRelationshipsStockItem{} + +// ReservedStockDataRelationshipsStockItem struct for ReservedStockDataRelationshipsStockItem +type ReservedStockDataRelationshipsStockItem struct { + Data *ReservedStockDataRelationshipsStockItemData `json:"data,omitempty"` +} + +// NewReservedStockDataRelationshipsStockItem instantiates a new ReservedStockDataRelationshipsStockItem object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReservedStockDataRelationshipsStockItem() *ReservedStockDataRelationshipsStockItem { + this := ReservedStockDataRelationshipsStockItem{} + return &this +} + +// NewReservedStockDataRelationshipsStockItemWithDefaults instantiates a new ReservedStockDataRelationshipsStockItem object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReservedStockDataRelationshipsStockItemWithDefaults() *ReservedStockDataRelationshipsStockItem { + this := ReservedStockDataRelationshipsStockItem{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *ReservedStockDataRelationshipsStockItem) GetData() ReservedStockDataRelationshipsStockItemData { + if o == nil || IsNil(o.Data) { + var ret ReservedStockDataRelationshipsStockItemData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReservedStockDataRelationshipsStockItem) GetDataOk() (*ReservedStockDataRelationshipsStockItemData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *ReservedStockDataRelationshipsStockItem) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given ReservedStockDataRelationshipsStockItemData and assigns it to the Data field. +func (o *ReservedStockDataRelationshipsStockItem) SetData(v ReservedStockDataRelationshipsStockItemData) { + o.Data = &v +} + +func (o ReservedStockDataRelationshipsStockItem) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReservedStockDataRelationshipsStockItem) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableReservedStockDataRelationshipsStockItem struct { + value *ReservedStockDataRelationshipsStockItem + isSet bool +} + +func (v NullableReservedStockDataRelationshipsStockItem) Get() *ReservedStockDataRelationshipsStockItem { + return v.value +} + +func (v *NullableReservedStockDataRelationshipsStockItem) Set(val *ReservedStockDataRelationshipsStockItem) { + v.value = val + v.isSet = true +} + +func (v NullableReservedStockDataRelationshipsStockItem) IsSet() bool { + return v.isSet +} + +func (v *NullableReservedStockDataRelationshipsStockItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReservedStockDataRelationshipsStockItem(val *ReservedStockDataRelationshipsStockItem) *NullableReservedStockDataRelationshipsStockItem { + return &NullableReservedStockDataRelationshipsStockItem{value: val, isSet: true} +} + +func (v NullableReservedStockDataRelationshipsStockItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReservedStockDataRelationshipsStockItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_reserved_stock_data_relationships_stock_item_data.go b/api/model_reserved_stock_data_relationships_stock_item_data.go new file mode 100644 index 00000000..1279172d --- /dev/null +++ b/api/model_reserved_stock_data_relationships_stock_item_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ReservedStockDataRelationshipsStockItemData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReservedStockDataRelationshipsStockItemData{} + +// ReservedStockDataRelationshipsStockItemData struct for ReservedStockDataRelationshipsStockItemData +type ReservedStockDataRelationshipsStockItemData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource's id + Id interface{} `json:"id,omitempty"` +} + +// NewReservedStockDataRelationshipsStockItemData instantiates a new ReservedStockDataRelationshipsStockItemData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReservedStockDataRelationshipsStockItemData() *ReservedStockDataRelationshipsStockItemData { + this := ReservedStockDataRelationshipsStockItemData{} + return &this +} + +// NewReservedStockDataRelationshipsStockItemDataWithDefaults instantiates a new ReservedStockDataRelationshipsStockItemData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReservedStockDataRelationshipsStockItemDataWithDefaults() *ReservedStockDataRelationshipsStockItemData { + this := ReservedStockDataRelationshipsStockItemData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ReservedStockDataRelationshipsStockItemData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ReservedStockDataRelationshipsStockItemData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ReservedStockDataRelationshipsStockItemData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *ReservedStockDataRelationshipsStockItemData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ReservedStockDataRelationshipsStockItemData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ReservedStockDataRelationshipsStockItemData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ReservedStockDataRelationshipsStockItemData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *ReservedStockDataRelationshipsStockItemData) SetId(v interface{}) { + o.Id = v +} + +func (o ReservedStockDataRelationshipsStockItemData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReservedStockDataRelationshipsStockItemData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableReservedStockDataRelationshipsStockItemData struct { + value *ReservedStockDataRelationshipsStockItemData + isSet bool +} + +func (v NullableReservedStockDataRelationshipsStockItemData) Get() *ReservedStockDataRelationshipsStockItemData { + return v.value +} + +func (v *NullableReservedStockDataRelationshipsStockItemData) Set(val *ReservedStockDataRelationshipsStockItemData) { + v.value = val + v.isSet = true +} + +func (v NullableReservedStockDataRelationshipsStockItemData) IsSet() bool { + return v.isSet +} + +func (v *NullableReservedStockDataRelationshipsStockItemData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReservedStockDataRelationshipsStockItemData(val *ReservedStockDataRelationshipsStockItemData) *NullableReservedStockDataRelationshipsStockItemData { + return &NullableReservedStockDataRelationshipsStockItemData{value: val, isSet: true} +} + +func (v NullableReservedStockDataRelationshipsStockItemData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReservedStockDataRelationshipsStockItemData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_resource_error.go b/api/model_resource_error.go new file mode 100644 index 00000000..47c88391 --- /dev/null +++ b/api/model_resource_error.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ResourceError type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceError{} + +// ResourceError struct for ResourceError +type ResourceError struct { + Data *ResourceErrorData `json:"data,omitempty"` +} + +// NewResourceError instantiates a new ResourceError object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourceError() *ResourceError { + this := ResourceError{} + return &this +} + +// NewResourceErrorWithDefaults instantiates a new ResourceError object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceErrorWithDefaults() *ResourceError { + this := ResourceError{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *ResourceError) GetData() ResourceErrorData { + if o == nil || IsNil(o.Data) { + var ret ResourceErrorData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceError) GetDataOk() (*ResourceErrorData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *ResourceError) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given ResourceErrorData and assigns it to the Data field. +func (o *ResourceError) SetData(v ResourceErrorData) { + o.Data = &v +} + +func (o ResourceError) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceError) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableResourceError struct { + value *ResourceError + isSet bool +} + +func (v NullableResourceError) Get() *ResourceError { + return v.value +} + +func (v *NullableResourceError) Set(val *ResourceError) { + v.value = val + v.isSet = true +} + +func (v NullableResourceError) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceError) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceError(val *ResourceError) *NullableResourceError { + return &NullableResourceError{value: val, isSet: true} +} + +func (v NullableResourceError) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceError) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_resource_error_data.go b/api/model_resource_error_data.go new file mode 100644 index 00000000..3660ed78 --- /dev/null +++ b/api/model_resource_error_data.go @@ -0,0 +1,184 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ResourceErrorData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceErrorData{} + +// ResourceErrorData struct for ResourceErrorData +type ResourceErrorData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes GETResourceErrorsResourceErrorId200ResponseDataAttributes `json:"attributes"` + Relationships *ResourceErrorDataRelationships `json:"relationships,omitempty"` +} + +// NewResourceErrorData instantiates a new ResourceErrorData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourceErrorData(type_ interface{}, attributes GETResourceErrorsResourceErrorId200ResponseDataAttributes) *ResourceErrorData { + this := ResourceErrorData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewResourceErrorDataWithDefaults instantiates a new ResourceErrorData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceErrorDataWithDefaults() *ResourceErrorData { + this := ResourceErrorData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *ResourceErrorData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ResourceErrorData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ResourceErrorData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *ResourceErrorData) GetAttributes() GETResourceErrorsResourceErrorId200ResponseDataAttributes { + if o == nil { + var ret GETResourceErrorsResourceErrorId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *ResourceErrorData) GetAttributesOk() (*GETResourceErrorsResourceErrorId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *ResourceErrorData) SetAttributes(v GETResourceErrorsResourceErrorId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *ResourceErrorData) GetRelationships() ResourceErrorDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret ResourceErrorDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceErrorData) GetRelationshipsOk() (*ResourceErrorDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *ResourceErrorData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given ResourceErrorDataRelationships and assigns it to the Relationships field. +func (o *ResourceErrorData) SetRelationships(v ResourceErrorDataRelationships) { + o.Relationships = &v +} + +func (o ResourceErrorData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceErrorData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableResourceErrorData struct { + value *ResourceErrorData + isSet bool +} + +func (v NullableResourceErrorData) Get() *ResourceErrorData { + return v.value +} + +func (v *NullableResourceErrorData) Set(val *ResourceErrorData) { + v.value = val + v.isSet = true +} + +func (v NullableResourceErrorData) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceErrorData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceErrorData(val *ResourceErrorData) *NullableResourceErrorData { + return &NullableResourceErrorData{value: val, isSet: true} +} + +func (v NullableResourceErrorData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceErrorData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_resource_error_data_relationships.go b/api/model_resource_error_data_relationships.go new file mode 100644 index 00000000..60a7882a --- /dev/null +++ b/api/model_resource_error_data_relationships.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ResourceErrorDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceErrorDataRelationships{} + +// ResourceErrorDataRelationships struct for ResourceErrorDataRelationships +type ResourceErrorDataRelationships struct { + Resource *ResourceErrorDataRelationshipsResource `json:"resource,omitempty"` +} + +// NewResourceErrorDataRelationships instantiates a new ResourceErrorDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourceErrorDataRelationships() *ResourceErrorDataRelationships { + this := ResourceErrorDataRelationships{} + return &this +} + +// NewResourceErrorDataRelationshipsWithDefaults instantiates a new ResourceErrorDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceErrorDataRelationshipsWithDefaults() *ResourceErrorDataRelationships { + this := ResourceErrorDataRelationships{} + return &this +} + +// GetResource returns the Resource field value if set, zero value otherwise. +func (o *ResourceErrorDataRelationships) GetResource() ResourceErrorDataRelationshipsResource { + if o == nil || IsNil(o.Resource) { + var ret ResourceErrorDataRelationshipsResource + return ret + } + return *o.Resource +} + +// GetResourceOk returns a tuple with the Resource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceErrorDataRelationships) GetResourceOk() (*ResourceErrorDataRelationshipsResource, bool) { + if o == nil || IsNil(o.Resource) { + return nil, false + } + return o.Resource, true +} + +// HasResource returns a boolean if a field has been set. +func (o *ResourceErrorDataRelationships) HasResource() bool { + if o != nil && !IsNil(o.Resource) { + return true + } + + return false +} + +// SetResource gets a reference to the given ResourceErrorDataRelationshipsResource and assigns it to the Resource field. +func (o *ResourceErrorDataRelationships) SetResource(v ResourceErrorDataRelationshipsResource) { + o.Resource = &v +} + +func (o ResourceErrorDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceErrorDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Resource) { + toSerialize["resource"] = o.Resource + } + return toSerialize, nil +} + +type NullableResourceErrorDataRelationships struct { + value *ResourceErrorDataRelationships + isSet bool +} + +func (v NullableResourceErrorDataRelationships) Get() *ResourceErrorDataRelationships { + return v.value +} + +func (v *NullableResourceErrorDataRelationships) Set(val *ResourceErrorDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableResourceErrorDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceErrorDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceErrorDataRelationships(val *ResourceErrorDataRelationships) *NullableResourceErrorDataRelationships { + return &NullableResourceErrorDataRelationships{value: val, isSet: true} +} + +func (v NullableResourceErrorDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceErrorDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_resource_error_data_relationships_resource.go b/api/model_resource_error_data_relationships_resource.go new file mode 100644 index 00000000..13939134 --- /dev/null +++ b/api/model_resource_error_data_relationships_resource.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ResourceErrorDataRelationshipsResource type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceErrorDataRelationshipsResource{} + +// ResourceErrorDataRelationshipsResource struct for ResourceErrorDataRelationshipsResource +type ResourceErrorDataRelationshipsResource struct { + Data *ResourceErrorDataRelationshipsResourceData `json:"data,omitempty"` +} + +// NewResourceErrorDataRelationshipsResource instantiates a new ResourceErrorDataRelationshipsResource object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourceErrorDataRelationshipsResource() *ResourceErrorDataRelationshipsResource { + this := ResourceErrorDataRelationshipsResource{} + return &this +} + +// NewResourceErrorDataRelationshipsResourceWithDefaults instantiates a new ResourceErrorDataRelationshipsResource object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceErrorDataRelationshipsResourceWithDefaults() *ResourceErrorDataRelationshipsResource { + this := ResourceErrorDataRelationshipsResource{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *ResourceErrorDataRelationshipsResource) GetData() ResourceErrorDataRelationshipsResourceData { + if o == nil || IsNil(o.Data) { + var ret ResourceErrorDataRelationshipsResourceData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceErrorDataRelationshipsResource) GetDataOk() (*ResourceErrorDataRelationshipsResourceData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *ResourceErrorDataRelationshipsResource) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given ResourceErrorDataRelationshipsResourceData and assigns it to the Data field. +func (o *ResourceErrorDataRelationshipsResource) SetData(v ResourceErrorDataRelationshipsResourceData) { + o.Data = &v +} + +func (o ResourceErrorDataRelationshipsResource) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceErrorDataRelationshipsResource) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableResourceErrorDataRelationshipsResource struct { + value *ResourceErrorDataRelationshipsResource + isSet bool +} + +func (v NullableResourceErrorDataRelationshipsResource) Get() *ResourceErrorDataRelationshipsResource { + return v.value +} + +func (v *NullableResourceErrorDataRelationshipsResource) Set(val *ResourceErrorDataRelationshipsResource) { + v.value = val + v.isSet = true +} + +func (v NullableResourceErrorDataRelationshipsResource) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceErrorDataRelationshipsResource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceErrorDataRelationshipsResource(val *ResourceErrorDataRelationshipsResource) *NullableResourceErrorDataRelationshipsResource { + return &NullableResourceErrorDataRelationshipsResource{value: val, isSet: true} +} + +func (v NullableResourceErrorDataRelationshipsResource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceErrorDataRelationshipsResource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_resource_error_data_relationships_resource_data.go b/api/model_resource_error_data_relationships_resource_data.go new file mode 100644 index 00000000..f2d7b188 --- /dev/null +++ b/api/model_resource_error_data_relationships_resource_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ResourceErrorDataRelationshipsResourceData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceErrorDataRelationshipsResourceData{} + +// ResourceErrorDataRelationshipsResourceData struct for ResourceErrorDataRelationshipsResourceData +type ResourceErrorDataRelationshipsResourceData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource's id + Id interface{} `json:"id,omitempty"` +} + +// NewResourceErrorDataRelationshipsResourceData instantiates a new ResourceErrorDataRelationshipsResourceData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourceErrorDataRelationshipsResourceData() *ResourceErrorDataRelationshipsResourceData { + this := ResourceErrorDataRelationshipsResourceData{} + return &this +} + +// NewResourceErrorDataRelationshipsResourceDataWithDefaults instantiates a new ResourceErrorDataRelationshipsResourceData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceErrorDataRelationshipsResourceDataWithDefaults() *ResourceErrorDataRelationshipsResourceData { + this := ResourceErrorDataRelationshipsResourceData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ResourceErrorDataRelationshipsResourceData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ResourceErrorDataRelationshipsResourceData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *ResourceErrorDataRelationshipsResourceData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *ResourceErrorDataRelationshipsResourceData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ResourceErrorDataRelationshipsResourceData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ResourceErrorDataRelationshipsResourceData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *ResourceErrorDataRelationshipsResourceData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *ResourceErrorDataRelationshipsResourceData) SetId(v interface{}) { + o.Id = v +} + +func (o ResourceErrorDataRelationshipsResourceData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceErrorDataRelationshipsResourceData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableResourceErrorDataRelationshipsResourceData struct { + value *ResourceErrorDataRelationshipsResourceData + isSet bool +} + +func (v NullableResourceErrorDataRelationshipsResourceData) Get() *ResourceErrorDataRelationshipsResourceData { + return v.value +} + +func (v *NullableResourceErrorDataRelationshipsResourceData) Set(val *ResourceErrorDataRelationshipsResourceData) { + v.value = val + v.isSet = true +} + +func (v NullableResourceErrorDataRelationshipsResourceData) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceErrorDataRelationshipsResourceData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceErrorDataRelationshipsResourceData(val *ResourceErrorDataRelationshipsResourceData) *NullableResourceErrorDataRelationshipsResourceData { + return &NullableResourceErrorDataRelationshipsResourceData{value: val, isSet: true} +} + +func (v NullableResourceErrorDataRelationshipsResourceData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceErrorDataRelationshipsResourceData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_return.go b/api/model_return.go index a3537599..a7ea8d87 100644 --- a/api/model_return.go +++ b/api/model_return.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_return_create.go b/api/model_return_create.go index 4d5d7334..b6f023e9 100644 --- a/api/model_return_create.go +++ b/api/model_return_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_return_create_data.go b/api/model_return_create_data.go index 969053d4..2df7e901 100644 --- a/api/model_return_create_data.go +++ b/api/model_return_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_return_create_data_relationships.go b/api/model_return_create_data_relationships.go index a3e9b673..2635108d 100644 --- a/api/model_return_create_data_relationships.go +++ b/api/model_return_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,10 @@ var _ MappedNullable = &ReturnCreateDataRelationships{} // ReturnCreateDataRelationships struct for ReturnCreateDataRelationships type ReturnCreateDataRelationships struct { - Order AdyenPaymentCreateDataRelationshipsOrder `json:"order"` - StockLocation *DeliveryLeadTimeCreateDataRelationshipsStockLocation `json:"stock_location,omitempty"` + Order AdyenPaymentCreateDataRelationshipsOrder `json:"order"` + StockLocation *DeliveryLeadTimeCreateDataRelationshipsStockLocation `json:"stock_location,omitempty"` + ReferenceCapture *ReturnCreateDataRelationshipsReferenceCapture `json:"reference_capture,omitempty"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` } // NewReturnCreateDataRelationships instantiates a new ReturnCreateDataRelationships object @@ -98,6 +100,70 @@ func (o *ReturnCreateDataRelationships) SetStockLocation(v DeliveryLeadTimeCreat o.StockLocation = &v } +// GetReferenceCapture returns the ReferenceCapture field value if set, zero value otherwise. +func (o *ReturnCreateDataRelationships) GetReferenceCapture() ReturnCreateDataRelationshipsReferenceCapture { + if o == nil || IsNil(o.ReferenceCapture) { + var ret ReturnCreateDataRelationshipsReferenceCapture + return ret + } + return *o.ReferenceCapture +} + +// GetReferenceCaptureOk returns a tuple with the ReferenceCapture field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReturnCreateDataRelationships) GetReferenceCaptureOk() (*ReturnCreateDataRelationshipsReferenceCapture, bool) { + if o == nil || IsNil(o.ReferenceCapture) { + return nil, false + } + return o.ReferenceCapture, true +} + +// HasReferenceCapture returns a boolean if a field has been set. +func (o *ReturnCreateDataRelationships) HasReferenceCapture() bool { + if o != nil && !IsNil(o.ReferenceCapture) { + return true + } + + return false +} + +// SetReferenceCapture gets a reference to the given ReturnCreateDataRelationshipsReferenceCapture and assigns it to the ReferenceCapture field. +func (o *ReturnCreateDataRelationships) SetReferenceCapture(v ReturnCreateDataRelationshipsReferenceCapture) { + o.ReferenceCapture = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ReturnCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReturnCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ReturnCreateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *ReturnCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + func (o ReturnCreateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -112,6 +178,12 @@ func (o ReturnCreateDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.StockLocation) { toSerialize["stock_location"] = o.StockLocation } + if !IsNil(o.ReferenceCapture) { + toSerialize["reference_capture"] = o.ReferenceCapture + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_return_create_data_relationships_reference_capture.go b/api/model_return_create_data_relationships_reference_capture.go new file mode 100644 index 00000000..60790036 --- /dev/null +++ b/api/model_return_create_data_relationships_reference_capture.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ReturnCreateDataRelationshipsReferenceCapture type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReturnCreateDataRelationshipsReferenceCapture{} + +// ReturnCreateDataRelationshipsReferenceCapture struct for ReturnCreateDataRelationshipsReferenceCapture +type ReturnCreateDataRelationshipsReferenceCapture struct { + Data AuthorizationDataRelationshipsCapturesData `json:"data"` +} + +// NewReturnCreateDataRelationshipsReferenceCapture instantiates a new ReturnCreateDataRelationshipsReferenceCapture object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReturnCreateDataRelationshipsReferenceCapture(data AuthorizationDataRelationshipsCapturesData) *ReturnCreateDataRelationshipsReferenceCapture { + this := ReturnCreateDataRelationshipsReferenceCapture{} + this.Data = data + return &this +} + +// NewReturnCreateDataRelationshipsReferenceCaptureWithDefaults instantiates a new ReturnCreateDataRelationshipsReferenceCapture object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReturnCreateDataRelationshipsReferenceCaptureWithDefaults() *ReturnCreateDataRelationshipsReferenceCapture { + this := ReturnCreateDataRelationshipsReferenceCapture{} + return &this +} + +// GetData returns the Data field value +func (o *ReturnCreateDataRelationshipsReferenceCapture) GetData() AuthorizationDataRelationshipsCapturesData { + if o == nil { + var ret AuthorizationDataRelationshipsCapturesData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *ReturnCreateDataRelationshipsReferenceCapture) GetDataOk() (*AuthorizationDataRelationshipsCapturesData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *ReturnCreateDataRelationshipsReferenceCapture) SetData(v AuthorizationDataRelationshipsCapturesData) { + o.Data = v +} + +func (o ReturnCreateDataRelationshipsReferenceCapture) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReturnCreateDataRelationshipsReferenceCapture) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableReturnCreateDataRelationshipsReferenceCapture struct { + value *ReturnCreateDataRelationshipsReferenceCapture + isSet bool +} + +func (v NullableReturnCreateDataRelationshipsReferenceCapture) Get() *ReturnCreateDataRelationshipsReferenceCapture { + return v.value +} + +func (v *NullableReturnCreateDataRelationshipsReferenceCapture) Set(val *ReturnCreateDataRelationshipsReferenceCapture) { + v.value = val + v.isSet = true +} + +func (v NullableReturnCreateDataRelationshipsReferenceCapture) IsSet() bool { + return v.isSet +} + +func (v *NullableReturnCreateDataRelationshipsReferenceCapture) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReturnCreateDataRelationshipsReferenceCapture(val *ReturnCreateDataRelationshipsReferenceCapture) *NullableReturnCreateDataRelationshipsReferenceCapture { + return &NullableReturnCreateDataRelationshipsReferenceCapture{value: val, isSet: true} +} + +func (v NullableReturnCreateDataRelationshipsReferenceCapture) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReturnCreateDataRelationshipsReferenceCapture) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_return_data.go b/api/model_return_data.go index a00dac55..91c64bc7 100644 --- a/api/model_return_data.go +++ b/api/model_return_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_return_data_relationships.go b/api/model_return_data_relationships.go index 750ed020..7a6af17b 100644 --- a/api/model_return_data_relationships.go +++ b/api/model_return_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -25,9 +25,14 @@ type ReturnDataRelationships struct { StockLocation *DeliveryLeadTimeDataRelationshipsStockLocation `json:"stock_location,omitempty"` OriginAddress *BingGeocoderDataRelationshipsAddresses `json:"origin_address,omitempty"` DestinationAddress *BingGeocoderDataRelationshipsAddresses `json:"destination_address,omitempty"` - ReturnLineItems *ReturnDataRelationshipsReturnLineItems `json:"return_line_items,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` + ReferenceCapture *AuthorizationDataRelationshipsCaptures `json:"reference_capture,omitempty"` + ReferenceRefund *CaptureDataRelationshipsRefunds `json:"reference_refund,omitempty"` + ReturnLineItems *LineItemDataRelationshipsReturnLineItems `json:"return_line_items,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + ResourceErrors *OrderDataRelationshipsResourceErrors `json:"resource_errors,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Tags *AddressDataRelationshipsTags `json:"tags,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewReturnDataRelationships instantiates a new ReturnDataRelationships object @@ -207,10 +212,74 @@ func (o *ReturnDataRelationships) SetDestinationAddress(v BingGeocoderDataRelati o.DestinationAddress = &v } +// GetReferenceCapture returns the ReferenceCapture field value if set, zero value otherwise. +func (o *ReturnDataRelationships) GetReferenceCapture() AuthorizationDataRelationshipsCaptures { + if o == nil || IsNil(o.ReferenceCapture) { + var ret AuthorizationDataRelationshipsCaptures + return ret + } + return *o.ReferenceCapture +} + +// GetReferenceCaptureOk returns a tuple with the ReferenceCapture field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReturnDataRelationships) GetReferenceCaptureOk() (*AuthorizationDataRelationshipsCaptures, bool) { + if o == nil || IsNil(o.ReferenceCapture) { + return nil, false + } + return o.ReferenceCapture, true +} + +// HasReferenceCapture returns a boolean if a field has been set. +func (o *ReturnDataRelationships) HasReferenceCapture() bool { + if o != nil && !IsNil(o.ReferenceCapture) { + return true + } + + return false +} + +// SetReferenceCapture gets a reference to the given AuthorizationDataRelationshipsCaptures and assigns it to the ReferenceCapture field. +func (o *ReturnDataRelationships) SetReferenceCapture(v AuthorizationDataRelationshipsCaptures) { + o.ReferenceCapture = &v +} + +// GetReferenceRefund returns the ReferenceRefund field value if set, zero value otherwise. +func (o *ReturnDataRelationships) GetReferenceRefund() CaptureDataRelationshipsRefunds { + if o == nil || IsNil(o.ReferenceRefund) { + var ret CaptureDataRelationshipsRefunds + return ret + } + return *o.ReferenceRefund +} + +// GetReferenceRefundOk returns a tuple with the ReferenceRefund field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReturnDataRelationships) GetReferenceRefundOk() (*CaptureDataRelationshipsRefunds, bool) { + if o == nil || IsNil(o.ReferenceRefund) { + return nil, false + } + return o.ReferenceRefund, true +} + +// HasReferenceRefund returns a boolean if a field has been set. +func (o *ReturnDataRelationships) HasReferenceRefund() bool { + if o != nil && !IsNil(o.ReferenceRefund) { + return true + } + + return false +} + +// SetReferenceRefund gets a reference to the given CaptureDataRelationshipsRefunds and assigns it to the ReferenceRefund field. +func (o *ReturnDataRelationships) SetReferenceRefund(v CaptureDataRelationshipsRefunds) { + o.ReferenceRefund = &v +} + // GetReturnLineItems returns the ReturnLineItems field value if set, zero value otherwise. -func (o *ReturnDataRelationships) GetReturnLineItems() ReturnDataRelationshipsReturnLineItems { +func (o *ReturnDataRelationships) GetReturnLineItems() LineItemDataRelationshipsReturnLineItems { if o == nil || IsNil(o.ReturnLineItems) { - var ret ReturnDataRelationshipsReturnLineItems + var ret LineItemDataRelationshipsReturnLineItems return ret } return *o.ReturnLineItems @@ -218,7 +287,7 @@ func (o *ReturnDataRelationships) GetReturnLineItems() ReturnDataRelationshipsRe // GetReturnLineItemsOk returns a tuple with the ReturnLineItems field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ReturnDataRelationships) GetReturnLineItemsOk() (*ReturnDataRelationshipsReturnLineItems, bool) { +func (o *ReturnDataRelationships) GetReturnLineItemsOk() (*LineItemDataRelationshipsReturnLineItems, bool) { if o == nil || IsNil(o.ReturnLineItems) { return nil, false } @@ -234,15 +303,15 @@ func (o *ReturnDataRelationships) HasReturnLineItems() bool { return false } -// SetReturnLineItems gets a reference to the given ReturnDataRelationshipsReturnLineItems and assigns it to the ReturnLineItems field. -func (o *ReturnDataRelationships) SetReturnLineItems(v ReturnDataRelationshipsReturnLineItems) { +// SetReturnLineItems gets a reference to the given LineItemDataRelationshipsReturnLineItems and assigns it to the ReturnLineItems field. +func (o *ReturnDataRelationships) SetReturnLineItems(v LineItemDataRelationshipsReturnLineItems) { o.ReturnLineItems = &v } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *ReturnDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *ReturnDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -250,7 +319,7 @@ func (o *ReturnDataRelationships) GetAttachments() AvalaraAccountDataRelationshi // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ReturnDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *ReturnDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -266,15 +335,47 @@ func (o *ReturnDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *ReturnDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *ReturnDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetResourceErrors returns the ResourceErrors field value if set, zero value otherwise. +func (o *ReturnDataRelationships) GetResourceErrors() OrderDataRelationshipsResourceErrors { + if o == nil || IsNil(o.ResourceErrors) { + var ret OrderDataRelationshipsResourceErrors + return ret + } + return *o.ResourceErrors +} + +// GetResourceErrorsOk returns a tuple with the ResourceErrors field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReturnDataRelationships) GetResourceErrorsOk() (*OrderDataRelationshipsResourceErrors, bool) { + if o == nil || IsNil(o.ResourceErrors) { + return nil, false + } + return o.ResourceErrors, true +} + +// HasResourceErrors returns a boolean if a field has been set. +func (o *ReturnDataRelationships) HasResourceErrors() bool { + if o != nil && !IsNil(o.ResourceErrors) { + return true + } + + return false +} + +// SetResourceErrors gets a reference to the given OrderDataRelationshipsResourceErrors and assigns it to the ResourceErrors field. +func (o *ReturnDataRelationships) SetResourceErrors(v OrderDataRelationshipsResourceErrors) { + o.ResourceErrors = &v +} + // GetEvents returns the Events field value if set, zero value otherwise. -func (o *ReturnDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { +func (o *ReturnDataRelationships) GetEvents() AddressDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents + var ret AddressDataRelationshipsEvents return ret } return *o.Events @@ -282,7 +383,7 @@ func (o *ReturnDataRelationships) GetEvents() AuthorizationDataRelationshipsEven // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ReturnDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { +func (o *ReturnDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -298,11 +399,75 @@ func (o *ReturnDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *ReturnDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *ReturnDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { o.Events = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ReturnDataRelationships) GetTags() AddressDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReturnDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ReturnDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressDataRelationshipsTags and assigns it to the Tags field. +func (o *ReturnDataRelationships) SetTags(v AddressDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *ReturnDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReturnDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *ReturnDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *ReturnDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o ReturnDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -328,15 +493,30 @@ func (o ReturnDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.DestinationAddress) { toSerialize["destination_address"] = o.DestinationAddress } + if !IsNil(o.ReferenceCapture) { + toSerialize["reference_capture"] = o.ReferenceCapture + } + if !IsNil(o.ReferenceRefund) { + toSerialize["reference_refund"] = o.ReferenceRefund + } if !IsNil(o.ReturnLineItems) { toSerialize["return_line_items"] = o.ReturnLineItems } if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.ResourceErrors) { + toSerialize["resource_errors"] = o.ResourceErrors + } if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_return_data_relationships_return_line_items.go b/api/model_return_data_relationships_return_line_items.go deleted file mode 100644 index c36b5515..00000000 --- a/api/model_return_data_relationships_return_line_items.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the ReturnDataRelationshipsReturnLineItems type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ReturnDataRelationshipsReturnLineItems{} - -// ReturnDataRelationshipsReturnLineItems struct for ReturnDataRelationshipsReturnLineItems -type ReturnDataRelationshipsReturnLineItems struct { - Data *ReturnDataRelationshipsReturnLineItemsData `json:"data,omitempty"` -} - -// NewReturnDataRelationshipsReturnLineItems instantiates a new ReturnDataRelationshipsReturnLineItems object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewReturnDataRelationshipsReturnLineItems() *ReturnDataRelationshipsReturnLineItems { - this := ReturnDataRelationshipsReturnLineItems{} - return &this -} - -// NewReturnDataRelationshipsReturnLineItemsWithDefaults instantiates a new ReturnDataRelationshipsReturnLineItems object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewReturnDataRelationshipsReturnLineItemsWithDefaults() *ReturnDataRelationshipsReturnLineItems { - this := ReturnDataRelationshipsReturnLineItems{} - return &this -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *ReturnDataRelationshipsReturnLineItems) GetData() ReturnDataRelationshipsReturnLineItemsData { - if o == nil || IsNil(o.Data) { - var ret ReturnDataRelationshipsReturnLineItemsData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ReturnDataRelationshipsReturnLineItems) GetDataOk() (*ReturnDataRelationshipsReturnLineItemsData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *ReturnDataRelationshipsReturnLineItems) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given ReturnDataRelationshipsReturnLineItemsData and assigns it to the Data field. -func (o *ReturnDataRelationshipsReturnLineItems) SetData(v ReturnDataRelationshipsReturnLineItemsData) { - o.Data = &v -} - -func (o ReturnDataRelationshipsReturnLineItems) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ReturnDataRelationshipsReturnLineItems) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableReturnDataRelationshipsReturnLineItems struct { - value *ReturnDataRelationshipsReturnLineItems - isSet bool -} - -func (v NullableReturnDataRelationshipsReturnLineItems) Get() *ReturnDataRelationshipsReturnLineItems { - return v.value -} - -func (v *NullableReturnDataRelationshipsReturnLineItems) Set(val *ReturnDataRelationshipsReturnLineItems) { - v.value = val - v.isSet = true -} - -func (v NullableReturnDataRelationshipsReturnLineItems) IsSet() bool { - return v.isSet -} - -func (v *NullableReturnDataRelationshipsReturnLineItems) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableReturnDataRelationshipsReturnLineItems(val *ReturnDataRelationshipsReturnLineItems) *NullableReturnDataRelationshipsReturnLineItems { - return &NullableReturnDataRelationshipsReturnLineItems{value: val, isSet: true} -} - -func (v NullableReturnDataRelationshipsReturnLineItems) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableReturnDataRelationshipsReturnLineItems) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_return_line_item.go b/api/model_return_line_item.go index 85da44e9..73ed2608 100644 --- a/api/model_return_line_item.go +++ b/api/model_return_line_item.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_return_line_item_create.go b/api/model_return_line_item_create.go index 3038b6fc..f78abd6f 100644 --- a/api/model_return_line_item_create.go +++ b/api/model_return_line_item_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_return_line_item_create_data.go b/api/model_return_line_item_create_data.go index 3ee5e698..817926ba 100644 --- a/api/model_return_line_item_create_data.go +++ b/api/model_return_line_item_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_return_line_item_create_data_relationships.go b/api/model_return_line_item_create_data_relationships.go index 2d329259..657929e9 100644 --- a/api/model_return_line_item_create_data_relationships.go +++ b/api/model_return_line_item_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_return_line_item_create_data_relationships_return.go b/api/model_return_line_item_create_data_relationships_return.go index e7d105df..cedeebaa 100644 --- a/api/model_return_line_item_create_data_relationships_return.go +++ b/api/model_return_line_item_create_data_relationships_return.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,14 +20,14 @@ var _ MappedNullable = &ReturnLineItemCreateDataRelationshipsReturn{} // ReturnLineItemCreateDataRelationshipsReturn struct for ReturnLineItemCreateDataRelationshipsReturn type ReturnLineItemCreateDataRelationshipsReturn struct { - Data CustomerDataRelationshipsReturnsData `json:"data"` + Data CaptureDataRelationshipsReturnData `json:"data"` } // NewReturnLineItemCreateDataRelationshipsReturn instantiates a new ReturnLineItemCreateDataRelationshipsReturn object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewReturnLineItemCreateDataRelationshipsReturn(data CustomerDataRelationshipsReturnsData) *ReturnLineItemCreateDataRelationshipsReturn { +func NewReturnLineItemCreateDataRelationshipsReturn(data CaptureDataRelationshipsReturnData) *ReturnLineItemCreateDataRelationshipsReturn { this := ReturnLineItemCreateDataRelationshipsReturn{} this.Data = data return &this @@ -42,9 +42,9 @@ func NewReturnLineItemCreateDataRelationshipsReturnWithDefaults() *ReturnLineIte } // GetData returns the Data field value -func (o *ReturnLineItemCreateDataRelationshipsReturn) GetData() CustomerDataRelationshipsReturnsData { +func (o *ReturnLineItemCreateDataRelationshipsReturn) GetData() CaptureDataRelationshipsReturnData { if o == nil { - var ret CustomerDataRelationshipsReturnsData + var ret CaptureDataRelationshipsReturnData return ret } @@ -53,7 +53,7 @@ func (o *ReturnLineItemCreateDataRelationshipsReturn) GetData() CustomerDataRela // GetDataOk returns a tuple with the Data field value // and a boolean to check if the value has been set. -func (o *ReturnLineItemCreateDataRelationshipsReturn) GetDataOk() (*CustomerDataRelationshipsReturnsData, bool) { +func (o *ReturnLineItemCreateDataRelationshipsReturn) GetDataOk() (*CaptureDataRelationshipsReturnData, bool) { if o == nil { return nil, false } @@ -61,7 +61,7 @@ func (o *ReturnLineItemCreateDataRelationshipsReturn) GetDataOk() (*CustomerData } // SetData sets field value -func (o *ReturnLineItemCreateDataRelationshipsReturn) SetData(v CustomerDataRelationshipsReturnsData) { +func (o *ReturnLineItemCreateDataRelationshipsReturn) SetData(v CaptureDataRelationshipsReturnData) { o.Data = v } diff --git a/api/model_return_line_item_data.go b/api/model_return_line_item_data.go index d753f9a3..104c8af4 100644 --- a/api/model_return_line_item_data.go +++ b/api/model_return_line_item_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_return_line_item_data_relationships.go b/api/model_return_line_item_data_relationships.go index 3d4809c5..31eb3b8b 100644 --- a/api/model_return_line_item_data_relationships.go +++ b/api/model_return_line_item_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,7 @@ var _ MappedNullable = &ReturnLineItemDataRelationships{} // ReturnLineItemDataRelationships struct for ReturnLineItemDataRelationships type ReturnLineItemDataRelationships struct { - Return *CustomerDataRelationshipsReturns `json:"return,omitempty"` + Return *CaptureDataRelationshipsReturn `json:"return,omitempty"` LineItem *LineItemOptionDataRelationshipsLineItem `json:"line_item,omitempty"` } @@ -42,9 +42,9 @@ func NewReturnLineItemDataRelationshipsWithDefaults() *ReturnLineItemDataRelatio } // GetReturn returns the Return field value if set, zero value otherwise. -func (o *ReturnLineItemDataRelationships) GetReturn() CustomerDataRelationshipsReturns { +func (o *ReturnLineItemDataRelationships) GetReturn() CaptureDataRelationshipsReturn { if o == nil || IsNil(o.Return) { - var ret CustomerDataRelationshipsReturns + var ret CaptureDataRelationshipsReturn return ret } return *o.Return @@ -52,7 +52,7 @@ func (o *ReturnLineItemDataRelationships) GetReturn() CustomerDataRelationshipsR // GetReturnOk returns a tuple with the Return field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ReturnLineItemDataRelationships) GetReturnOk() (*CustomerDataRelationshipsReturns, bool) { +func (o *ReturnLineItemDataRelationships) GetReturnOk() (*CaptureDataRelationshipsReturn, bool) { if o == nil || IsNil(o.Return) { return nil, false } @@ -68,8 +68,8 @@ func (o *ReturnLineItemDataRelationships) HasReturn() bool { return false } -// SetReturn gets a reference to the given CustomerDataRelationshipsReturns and assigns it to the Return field. -func (o *ReturnLineItemDataRelationships) SetReturn(v CustomerDataRelationshipsReturns) { +// SetReturn gets a reference to the given CaptureDataRelationshipsReturn and assigns it to the Return field. +func (o *ReturnLineItemDataRelationships) SetReturn(v CaptureDataRelationshipsReturn) { o.Return = &v } diff --git a/api/model_return_line_item_update.go b/api/model_return_line_item_update.go index 3617bf40..4cca3d7d 100644 --- a/api/model_return_line_item_update.go +++ b/api/model_return_line_item_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_return_line_item_update_data.go b/api/model_return_line_item_update_data.go index b4e5c9c5..b57920b4 100644 --- a/api/model_return_line_item_update_data.go +++ b/api/model_return_line_item_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_return_update.go b/api/model_return_update.go index 0372ab8a..def2bbe5 100644 --- a/api/model_return_update.go +++ b/api/model_return_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_return_update_data.go b/api/model_return_update_data.go index 595c72ed..77ca654b 100644 --- a/api/model_return_update_data.go +++ b/api/model_return_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -25,7 +25,7 @@ type ReturnUpdateData struct { // The resource's id Id interface{} `json:"id"` Attributes PATCHReturnsReturnId200ResponseDataAttributes `json:"attributes"` - Relationships *PackageUpdateDataRelationships `json:"relationships,omitempty"` + Relationships *ReturnUpdateDataRelationships `json:"relationships,omitempty"` } // NewReturnUpdateData instantiates a new ReturnUpdateData object @@ -125,9 +125,9 @@ func (o *ReturnUpdateData) SetAttributes(v PATCHReturnsReturnId200ResponseDataAt } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *ReturnUpdateData) GetRelationships() PackageUpdateDataRelationships { +func (o *ReturnUpdateData) GetRelationships() ReturnUpdateDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret PackageUpdateDataRelationships + var ret ReturnUpdateDataRelationships return ret } return *o.Relationships @@ -135,7 +135,7 @@ func (o *ReturnUpdateData) GetRelationships() PackageUpdateDataRelationships { // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ReturnUpdateData) GetRelationshipsOk() (*PackageUpdateDataRelationships, bool) { +func (o *ReturnUpdateData) GetRelationshipsOk() (*ReturnUpdateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -151,8 +151,8 @@ func (o *ReturnUpdateData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given PackageUpdateDataRelationships and assigns it to the Relationships field. -func (o *ReturnUpdateData) SetRelationships(v PackageUpdateDataRelationships) { +// SetRelationships gets a reference to the given ReturnUpdateDataRelationships and assigns it to the Relationships field. +func (o *ReturnUpdateData) SetRelationships(v ReturnUpdateDataRelationships) { o.Relationships = &v } diff --git a/api/model_return_update_data_relationships.go b/api/model_return_update_data_relationships.go new file mode 100644 index 00000000..59f2e231 --- /dev/null +++ b/api/model_return_update_data_relationships.go @@ -0,0 +1,197 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ReturnUpdateDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReturnUpdateDataRelationships{} + +// ReturnUpdateDataRelationships struct for ReturnUpdateDataRelationships +type ReturnUpdateDataRelationships struct { + StockLocation *DeliveryLeadTimeCreateDataRelationshipsStockLocation `json:"stock_location,omitempty"` + ReferenceCapture *ReturnCreateDataRelationshipsReferenceCapture `json:"reference_capture,omitempty"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` +} + +// NewReturnUpdateDataRelationships instantiates a new ReturnUpdateDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewReturnUpdateDataRelationships() *ReturnUpdateDataRelationships { + this := ReturnUpdateDataRelationships{} + return &this +} + +// NewReturnUpdateDataRelationshipsWithDefaults instantiates a new ReturnUpdateDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewReturnUpdateDataRelationshipsWithDefaults() *ReturnUpdateDataRelationships { + this := ReturnUpdateDataRelationships{} + return &this +} + +// GetStockLocation returns the StockLocation field value if set, zero value otherwise. +func (o *ReturnUpdateDataRelationships) GetStockLocation() DeliveryLeadTimeCreateDataRelationshipsStockLocation { + if o == nil || IsNil(o.StockLocation) { + var ret DeliveryLeadTimeCreateDataRelationshipsStockLocation + return ret + } + return *o.StockLocation +} + +// GetStockLocationOk returns a tuple with the StockLocation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReturnUpdateDataRelationships) GetStockLocationOk() (*DeliveryLeadTimeCreateDataRelationshipsStockLocation, bool) { + if o == nil || IsNil(o.StockLocation) { + return nil, false + } + return o.StockLocation, true +} + +// HasStockLocation returns a boolean if a field has been set. +func (o *ReturnUpdateDataRelationships) HasStockLocation() bool { + if o != nil && !IsNil(o.StockLocation) { + return true + } + + return false +} + +// SetStockLocation gets a reference to the given DeliveryLeadTimeCreateDataRelationshipsStockLocation and assigns it to the StockLocation field. +func (o *ReturnUpdateDataRelationships) SetStockLocation(v DeliveryLeadTimeCreateDataRelationshipsStockLocation) { + o.StockLocation = &v +} + +// GetReferenceCapture returns the ReferenceCapture field value if set, zero value otherwise. +func (o *ReturnUpdateDataRelationships) GetReferenceCapture() ReturnCreateDataRelationshipsReferenceCapture { + if o == nil || IsNil(o.ReferenceCapture) { + var ret ReturnCreateDataRelationshipsReferenceCapture + return ret + } + return *o.ReferenceCapture +} + +// GetReferenceCaptureOk returns a tuple with the ReferenceCapture field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReturnUpdateDataRelationships) GetReferenceCaptureOk() (*ReturnCreateDataRelationshipsReferenceCapture, bool) { + if o == nil || IsNil(o.ReferenceCapture) { + return nil, false + } + return o.ReferenceCapture, true +} + +// HasReferenceCapture returns a boolean if a field has been set. +func (o *ReturnUpdateDataRelationships) HasReferenceCapture() bool { + if o != nil && !IsNil(o.ReferenceCapture) { + return true + } + + return false +} + +// SetReferenceCapture gets a reference to the given ReturnCreateDataRelationshipsReferenceCapture and assigns it to the ReferenceCapture field. +func (o *ReturnUpdateDataRelationships) SetReferenceCapture(v ReturnCreateDataRelationshipsReferenceCapture) { + o.ReferenceCapture = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ReturnUpdateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReturnUpdateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ReturnUpdateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *ReturnUpdateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + +func (o ReturnUpdateDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReturnUpdateDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.StockLocation) { + toSerialize["stock_location"] = o.StockLocation + } + if !IsNil(o.ReferenceCapture) { + toSerialize["reference_capture"] = o.ReferenceCapture + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} + +type NullableReturnUpdateDataRelationships struct { + value *ReturnUpdateDataRelationships + isSet bool +} + +func (v NullableReturnUpdateDataRelationships) Get() *ReturnUpdateDataRelationships { + return v.value +} + +func (v *NullableReturnUpdateDataRelationships) Set(val *ReturnUpdateDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableReturnUpdateDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableReturnUpdateDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReturnUpdateDataRelationships(val *ReturnUpdateDataRelationships) *NullableReturnUpdateDataRelationships { + return &NullableReturnUpdateDataRelationships{value: val, isSet: true} +} + +func (v NullableReturnUpdateDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReturnUpdateDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_satispay_gateway.go b/api/model_satispay_gateway.go index 7ea1db98..a9090fc1 100644 --- a/api/model_satispay_gateway.go +++ b/api/model_satispay_gateway.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_satispay_gateway_create.go b/api/model_satispay_gateway_create.go index bc7f63e4..61f4b34f 100644 --- a/api/model_satispay_gateway_create.go +++ b/api/model_satispay_gateway_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_satispay_gateway_create_data.go b/api/model_satispay_gateway_create_data.go index 109f29d0..9061e971 100644 --- a/api/model_satispay_gateway_create_data.go +++ b/api/model_satispay_gateway_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,16 +21,16 @@ var _ MappedNullable = &SatispayGatewayCreateData{} // SatispayGatewayCreateData struct for SatispayGatewayCreateData type SatispayGatewayCreateData struct { // The resource's type - Type interface{} `json:"type"` - Attributes POSTManualGateways201ResponseDataAttributes `json:"attributes"` - Relationships *SatispayGatewayCreateDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type"` + Attributes POSTSatispayGateways201ResponseDataAttributes `json:"attributes"` + Relationships *SatispayGatewayCreateDataRelationships `json:"relationships,omitempty"` } // NewSatispayGatewayCreateData instantiates a new SatispayGatewayCreateData object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSatispayGatewayCreateData(type_ interface{}, attributes POSTManualGateways201ResponseDataAttributes) *SatispayGatewayCreateData { +func NewSatispayGatewayCreateData(type_ interface{}, attributes POSTSatispayGateways201ResponseDataAttributes) *SatispayGatewayCreateData { this := SatispayGatewayCreateData{} this.Type = type_ this.Attributes = attributes @@ -72,9 +72,9 @@ func (o *SatispayGatewayCreateData) SetType(v interface{}) { } // GetAttributes returns the Attributes field value -func (o *SatispayGatewayCreateData) GetAttributes() POSTManualGateways201ResponseDataAttributes { +func (o *SatispayGatewayCreateData) GetAttributes() POSTSatispayGateways201ResponseDataAttributes { if o == nil { - var ret POSTManualGateways201ResponseDataAttributes + var ret POSTSatispayGateways201ResponseDataAttributes return ret } @@ -83,7 +83,7 @@ func (o *SatispayGatewayCreateData) GetAttributes() POSTManualGateways201Respons // GetAttributesOk returns a tuple with the Attributes field value // and a boolean to check if the value has been set. -func (o *SatispayGatewayCreateData) GetAttributesOk() (*POSTManualGateways201ResponseDataAttributes, bool) { +func (o *SatispayGatewayCreateData) GetAttributesOk() (*POSTSatispayGateways201ResponseDataAttributes, bool) { if o == nil { return nil, false } @@ -91,7 +91,7 @@ func (o *SatispayGatewayCreateData) GetAttributesOk() (*POSTManualGateways201Res } // SetAttributes sets field value -func (o *SatispayGatewayCreateData) SetAttributes(v POSTManualGateways201ResponseDataAttributes) { +func (o *SatispayGatewayCreateData) SetAttributes(v POSTSatispayGateways201ResponseDataAttributes) { o.Attributes = v } diff --git a/api/model_satispay_gateway_create_data_relationships.go b/api/model_satispay_gateway_create_data_relationships.go index 25e561c4..01f2e3de 100644 --- a/api/model_satispay_gateway_create_data_relationships.go +++ b/api/model_satispay_gateway_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_satispay_gateway_create_data_relationships_satispay_payments.go b/api/model_satispay_gateway_create_data_relationships_satispay_payments.go index afc088cf..32c7125a 100644 --- a/api/model_satispay_gateway_create_data_relationships_satispay_payments.go +++ b/api/model_satispay_gateway_create_data_relationships_satispay_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_satispay_gateway_data.go b/api/model_satispay_gateway_data.go index 0e01786a..1f6bc4e8 100644 --- a/api/model_satispay_gateway_data.go +++ b/api/model_satispay_gateway_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_satispay_gateway_data_relationships.go b/api/model_satispay_gateway_data_relationships.go index 08c0bfbe..2945a0f1 100644 --- a/api/model_satispay_gateway_data_relationships.go +++ b/api/model_satispay_gateway_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &SatispayGatewayDataRelationships{} // SatispayGatewayDataRelationships struct for SatispayGatewayDataRelationships type SatispayGatewayDataRelationships struct { PaymentMethods *AdyenGatewayDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` SatispayPayments *SatispayGatewayDataRelationshipsSatispayPayments `json:"satispay_payments,omitempty"` } @@ -73,6 +74,38 @@ func (o *SatispayGatewayDataRelationships) SetPaymentMethods(v AdyenGatewayDataR o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *SatispayGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SatispayGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *SatispayGatewayDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *SatispayGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + // GetSatispayPayments returns the SatispayPayments field value if set, zero value otherwise. func (o *SatispayGatewayDataRelationships) GetSatispayPayments() SatispayGatewayDataRelationshipsSatispayPayments { if o == nil || IsNil(o.SatispayPayments) { @@ -118,6 +151,9 @@ func (o SatispayGatewayDataRelationships) ToMap() (map[string]interface{}, error if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.SatispayPayments) { toSerialize["satispay_payments"] = o.SatispayPayments } diff --git a/api/model_satispay_gateway_data_relationships_satispay_payments.go b/api/model_satispay_gateway_data_relationships_satispay_payments.go index 8f50cf6c..5b1cef64 100644 --- a/api/model_satispay_gateway_data_relationships_satispay_payments.go +++ b/api/model_satispay_gateway_data_relationships_satispay_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_satispay_gateway_data_relationships_satispay_payments_data.go b/api/model_satispay_gateway_data_relationships_satispay_payments_data.go index e0df36cc..e1df5573 100644 --- a/api/model_satispay_gateway_data_relationships_satispay_payments_data.go +++ b/api/model_satispay_gateway_data_relationships_satispay_payments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_satispay_gateway_update.go b/api/model_satispay_gateway_update.go index 869ef104..40722186 100644 --- a/api/model_satispay_gateway_update.go +++ b/api/model_satispay_gateway_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_satispay_gateway_update_data.go b/api/model_satispay_gateway_update_data.go index a87b7f28..840b9213 100644 --- a/api/model_satispay_gateway_update_data.go +++ b/api/model_satispay_gateway_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_satispay_payment.go b/api/model_satispay_payment.go index a43f209c..79040500 100644 --- a/api/model_satispay_payment.go +++ b/api/model_satispay_payment.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_satispay_payment_create.go b/api/model_satispay_payment_create.go index 1877c62b..9855c179 100644 --- a/api/model_satispay_payment_create.go +++ b/api/model_satispay_payment_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_satispay_payment_create_data.go b/api/model_satispay_payment_create_data.go index dd700094..985078a6 100644 --- a/api/model_satispay_payment_create_data.go +++ b/api/model_satispay_payment_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_satispay_payment_data.go b/api/model_satispay_payment_data.go index 467d9653..68d639a6 100644 --- a/api/model_satispay_payment_data.go +++ b/api/model_satispay_payment_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_satispay_payment_update.go b/api/model_satispay_payment_update.go index 11f24054..fabb942f 100644 --- a/api/model_satispay_payment_update.go +++ b/api/model_satispay_payment_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_satispay_payment_update_data.go b/api/model_satispay_payment_update_data.go index 46c6c0e3..99a00d15 100644 --- a/api/model_satispay_payment_update_data.go +++ b/api/model_satispay_payment_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipment.go b/api/model_shipment.go index 07c03aa3..38ec505c 100644 --- a/api/model_shipment.go +++ b/api/model_shipment.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipment_create.go b/api/model_shipment_create.go new file mode 100644 index 00000000..6f9ab1f3 --- /dev/null +++ b/api/model_shipment_create.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ShipmentCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ShipmentCreate{} + +// ShipmentCreate struct for ShipmentCreate +type ShipmentCreate struct { + Data ShipmentCreateData `json:"data"` +} + +// NewShipmentCreate instantiates a new ShipmentCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewShipmentCreate(data ShipmentCreateData) *ShipmentCreate { + this := ShipmentCreate{} + this.Data = data + return &this +} + +// NewShipmentCreateWithDefaults instantiates a new ShipmentCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewShipmentCreateWithDefaults() *ShipmentCreate { + this := ShipmentCreate{} + return &this +} + +// GetData returns the Data field value +func (o *ShipmentCreate) GetData() ShipmentCreateData { + if o == nil { + var ret ShipmentCreateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *ShipmentCreate) GetDataOk() (*ShipmentCreateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *ShipmentCreate) SetData(v ShipmentCreateData) { + o.Data = v +} + +func (o ShipmentCreate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ShipmentCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableShipmentCreate struct { + value *ShipmentCreate + isSet bool +} + +func (v NullableShipmentCreate) Get() *ShipmentCreate { + return v.value +} + +func (v *NullableShipmentCreate) Set(val *ShipmentCreate) { + v.value = val + v.isSet = true +} + +func (v NullableShipmentCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableShipmentCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableShipmentCreate(val *ShipmentCreate) *NullableShipmentCreate { + return &NullableShipmentCreate{value: val, isSet: true} +} + +func (v NullableShipmentCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableShipmentCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_shipment_create_data.go b/api/model_shipment_create_data.go new file mode 100644 index 00000000..ee11c351 --- /dev/null +++ b/api/model_shipment_create_data.go @@ -0,0 +1,184 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ShipmentCreateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ShipmentCreateData{} + +// ShipmentCreateData struct for ShipmentCreateData +type ShipmentCreateData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes POSTAdyenPayments201ResponseDataAttributes `json:"attributes"` + Relationships *ShipmentCreateDataRelationships `json:"relationships,omitempty"` +} + +// NewShipmentCreateData instantiates a new ShipmentCreateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewShipmentCreateData(type_ interface{}, attributes POSTAdyenPayments201ResponseDataAttributes) *ShipmentCreateData { + this := ShipmentCreateData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewShipmentCreateDataWithDefaults instantiates a new ShipmentCreateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewShipmentCreateDataWithDefaults() *ShipmentCreateData { + this := ShipmentCreateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *ShipmentCreateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ShipmentCreateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ShipmentCreateData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *ShipmentCreateData) GetAttributes() POSTAdyenPayments201ResponseDataAttributes { + if o == nil { + var ret POSTAdyenPayments201ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *ShipmentCreateData) GetAttributesOk() (*POSTAdyenPayments201ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *ShipmentCreateData) SetAttributes(v POSTAdyenPayments201ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *ShipmentCreateData) GetRelationships() ShipmentCreateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret ShipmentCreateDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShipmentCreateData) GetRelationshipsOk() (*ShipmentCreateDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *ShipmentCreateData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given ShipmentCreateDataRelationships and assigns it to the Relationships field. +func (o *ShipmentCreateData) SetRelationships(v ShipmentCreateDataRelationships) { + o.Relationships = &v +} + +func (o ShipmentCreateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ShipmentCreateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableShipmentCreateData struct { + value *ShipmentCreateData + isSet bool +} + +func (v NullableShipmentCreateData) Get() *ShipmentCreateData { + return v.value +} + +func (v *NullableShipmentCreateData) Set(val *ShipmentCreateData) { + v.value = val + v.isSet = true +} + +func (v NullableShipmentCreateData) IsSet() bool { + return v.isSet +} + +func (v *NullableShipmentCreateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableShipmentCreateData(val *ShipmentCreateData) *NullableShipmentCreateData { + return &NullableShipmentCreateData{value: val, isSet: true} +} + +func (v NullableShipmentCreateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableShipmentCreateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_shipment_create_data_relationships.go b/api/model_shipment_create_data_relationships.go new file mode 100644 index 00000000..be521729 --- /dev/null +++ b/api/model_shipment_create_data_relationships.go @@ -0,0 +1,287 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ShipmentCreateDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ShipmentCreateDataRelationships{} + +// ShipmentCreateDataRelationships struct for ShipmentCreateDataRelationships +type ShipmentCreateDataRelationships struct { + Order AdyenPaymentCreateDataRelationshipsOrder `json:"order"` + ShippingCategory *ShipmentCreateDataRelationshipsShippingCategory `json:"shipping_category,omitempty"` + InventoryStockLocation ShipmentCreateDataRelationshipsInventoryStockLocation `json:"inventory_stock_location"` + ShippingAddress *CustomerAddressCreateDataRelationshipsAddress `json:"shipping_address,omitempty"` + ShippingMethod *DeliveryLeadTimeCreateDataRelationshipsShippingMethod `json:"shipping_method,omitempty"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` +} + +// NewShipmentCreateDataRelationships instantiates a new ShipmentCreateDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewShipmentCreateDataRelationships(order AdyenPaymentCreateDataRelationshipsOrder, inventoryStockLocation ShipmentCreateDataRelationshipsInventoryStockLocation) *ShipmentCreateDataRelationships { + this := ShipmentCreateDataRelationships{} + this.Order = order + this.InventoryStockLocation = inventoryStockLocation + return &this +} + +// NewShipmentCreateDataRelationshipsWithDefaults instantiates a new ShipmentCreateDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewShipmentCreateDataRelationshipsWithDefaults() *ShipmentCreateDataRelationships { + this := ShipmentCreateDataRelationships{} + return &this +} + +// GetOrder returns the Order field value +func (o *ShipmentCreateDataRelationships) GetOrder() AdyenPaymentCreateDataRelationshipsOrder { + if o == nil { + var ret AdyenPaymentCreateDataRelationshipsOrder + return ret + } + + return o.Order +} + +// GetOrderOk returns a tuple with the Order field value +// and a boolean to check if the value has been set. +func (o *ShipmentCreateDataRelationships) GetOrderOk() (*AdyenPaymentCreateDataRelationshipsOrder, bool) { + if o == nil { + return nil, false + } + return &o.Order, true +} + +// SetOrder sets field value +func (o *ShipmentCreateDataRelationships) SetOrder(v AdyenPaymentCreateDataRelationshipsOrder) { + o.Order = v +} + +// GetShippingCategory returns the ShippingCategory field value if set, zero value otherwise. +func (o *ShipmentCreateDataRelationships) GetShippingCategory() ShipmentCreateDataRelationshipsShippingCategory { + if o == nil || IsNil(o.ShippingCategory) { + var ret ShipmentCreateDataRelationshipsShippingCategory + return ret + } + return *o.ShippingCategory +} + +// GetShippingCategoryOk returns a tuple with the ShippingCategory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShipmentCreateDataRelationships) GetShippingCategoryOk() (*ShipmentCreateDataRelationshipsShippingCategory, bool) { + if o == nil || IsNil(o.ShippingCategory) { + return nil, false + } + return o.ShippingCategory, true +} + +// HasShippingCategory returns a boolean if a field has been set. +func (o *ShipmentCreateDataRelationships) HasShippingCategory() bool { + if o != nil && !IsNil(o.ShippingCategory) { + return true + } + + return false +} + +// SetShippingCategory gets a reference to the given ShipmentCreateDataRelationshipsShippingCategory and assigns it to the ShippingCategory field. +func (o *ShipmentCreateDataRelationships) SetShippingCategory(v ShipmentCreateDataRelationshipsShippingCategory) { + o.ShippingCategory = &v +} + +// GetInventoryStockLocation returns the InventoryStockLocation field value +func (o *ShipmentCreateDataRelationships) GetInventoryStockLocation() ShipmentCreateDataRelationshipsInventoryStockLocation { + if o == nil { + var ret ShipmentCreateDataRelationshipsInventoryStockLocation + return ret + } + + return o.InventoryStockLocation +} + +// GetInventoryStockLocationOk returns a tuple with the InventoryStockLocation field value +// and a boolean to check if the value has been set. +func (o *ShipmentCreateDataRelationships) GetInventoryStockLocationOk() (*ShipmentCreateDataRelationshipsInventoryStockLocation, bool) { + if o == nil { + return nil, false + } + return &o.InventoryStockLocation, true +} + +// SetInventoryStockLocation sets field value +func (o *ShipmentCreateDataRelationships) SetInventoryStockLocation(v ShipmentCreateDataRelationshipsInventoryStockLocation) { + o.InventoryStockLocation = v +} + +// GetShippingAddress returns the ShippingAddress field value if set, zero value otherwise. +func (o *ShipmentCreateDataRelationships) GetShippingAddress() CustomerAddressCreateDataRelationshipsAddress { + if o == nil || IsNil(o.ShippingAddress) { + var ret CustomerAddressCreateDataRelationshipsAddress + return ret + } + return *o.ShippingAddress +} + +// GetShippingAddressOk returns a tuple with the ShippingAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShipmentCreateDataRelationships) GetShippingAddressOk() (*CustomerAddressCreateDataRelationshipsAddress, bool) { + if o == nil || IsNil(o.ShippingAddress) { + return nil, false + } + return o.ShippingAddress, true +} + +// HasShippingAddress returns a boolean if a field has been set. +func (o *ShipmentCreateDataRelationships) HasShippingAddress() bool { + if o != nil && !IsNil(o.ShippingAddress) { + return true + } + + return false +} + +// SetShippingAddress gets a reference to the given CustomerAddressCreateDataRelationshipsAddress and assigns it to the ShippingAddress field. +func (o *ShipmentCreateDataRelationships) SetShippingAddress(v CustomerAddressCreateDataRelationshipsAddress) { + o.ShippingAddress = &v +} + +// GetShippingMethod returns the ShippingMethod field value if set, zero value otherwise. +func (o *ShipmentCreateDataRelationships) GetShippingMethod() DeliveryLeadTimeCreateDataRelationshipsShippingMethod { + if o == nil || IsNil(o.ShippingMethod) { + var ret DeliveryLeadTimeCreateDataRelationshipsShippingMethod + return ret + } + return *o.ShippingMethod +} + +// GetShippingMethodOk returns a tuple with the ShippingMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShipmentCreateDataRelationships) GetShippingMethodOk() (*DeliveryLeadTimeCreateDataRelationshipsShippingMethod, bool) { + if o == nil || IsNil(o.ShippingMethod) { + return nil, false + } + return o.ShippingMethod, true +} + +// HasShippingMethod returns a boolean if a field has been set. +func (o *ShipmentCreateDataRelationships) HasShippingMethod() bool { + if o != nil && !IsNil(o.ShippingMethod) { + return true + } + + return false +} + +// SetShippingMethod gets a reference to the given DeliveryLeadTimeCreateDataRelationshipsShippingMethod and assigns it to the ShippingMethod field. +func (o *ShipmentCreateDataRelationships) SetShippingMethod(v DeliveryLeadTimeCreateDataRelationshipsShippingMethod) { + o.ShippingMethod = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ShipmentCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShipmentCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ShipmentCreateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *ShipmentCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + +func (o ShipmentCreateDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ShipmentCreateDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["order"] = o.Order + if !IsNil(o.ShippingCategory) { + toSerialize["shipping_category"] = o.ShippingCategory + } + toSerialize["inventory_stock_location"] = o.InventoryStockLocation + if !IsNil(o.ShippingAddress) { + toSerialize["shipping_address"] = o.ShippingAddress + } + if !IsNil(o.ShippingMethod) { + toSerialize["shipping_method"] = o.ShippingMethod + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} + +type NullableShipmentCreateDataRelationships struct { + value *ShipmentCreateDataRelationships + isSet bool +} + +func (v NullableShipmentCreateDataRelationships) Get() *ShipmentCreateDataRelationships { + return v.value +} + +func (v *NullableShipmentCreateDataRelationships) Set(val *ShipmentCreateDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableShipmentCreateDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableShipmentCreateDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableShipmentCreateDataRelationships(val *ShipmentCreateDataRelationships) *NullableShipmentCreateDataRelationships { + return &NullableShipmentCreateDataRelationships{value: val, isSet: true} +} + +func (v NullableShipmentCreateDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableShipmentCreateDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_shipment_create_data_relationships_inventory_stock_location.go b/api/model_shipment_create_data_relationships_inventory_stock_location.go new file mode 100644 index 00000000..9a1bf3e8 --- /dev/null +++ b/api/model_shipment_create_data_relationships_inventory_stock_location.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ShipmentCreateDataRelationshipsInventoryStockLocation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ShipmentCreateDataRelationshipsInventoryStockLocation{} + +// ShipmentCreateDataRelationshipsInventoryStockLocation struct for ShipmentCreateDataRelationshipsInventoryStockLocation +type ShipmentCreateDataRelationshipsInventoryStockLocation struct { + Data InventoryModelDataRelationshipsInventoryStockLocationsData `json:"data"` +} + +// NewShipmentCreateDataRelationshipsInventoryStockLocation instantiates a new ShipmentCreateDataRelationshipsInventoryStockLocation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewShipmentCreateDataRelationshipsInventoryStockLocation(data InventoryModelDataRelationshipsInventoryStockLocationsData) *ShipmentCreateDataRelationshipsInventoryStockLocation { + this := ShipmentCreateDataRelationshipsInventoryStockLocation{} + this.Data = data + return &this +} + +// NewShipmentCreateDataRelationshipsInventoryStockLocationWithDefaults instantiates a new ShipmentCreateDataRelationshipsInventoryStockLocation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewShipmentCreateDataRelationshipsInventoryStockLocationWithDefaults() *ShipmentCreateDataRelationshipsInventoryStockLocation { + this := ShipmentCreateDataRelationshipsInventoryStockLocation{} + return &this +} + +// GetData returns the Data field value +func (o *ShipmentCreateDataRelationshipsInventoryStockLocation) GetData() InventoryModelDataRelationshipsInventoryStockLocationsData { + if o == nil { + var ret InventoryModelDataRelationshipsInventoryStockLocationsData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *ShipmentCreateDataRelationshipsInventoryStockLocation) GetDataOk() (*InventoryModelDataRelationshipsInventoryStockLocationsData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *ShipmentCreateDataRelationshipsInventoryStockLocation) SetData(v InventoryModelDataRelationshipsInventoryStockLocationsData) { + o.Data = v +} + +func (o ShipmentCreateDataRelationshipsInventoryStockLocation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ShipmentCreateDataRelationshipsInventoryStockLocation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableShipmentCreateDataRelationshipsInventoryStockLocation struct { + value *ShipmentCreateDataRelationshipsInventoryStockLocation + isSet bool +} + +func (v NullableShipmentCreateDataRelationshipsInventoryStockLocation) Get() *ShipmentCreateDataRelationshipsInventoryStockLocation { + return v.value +} + +func (v *NullableShipmentCreateDataRelationshipsInventoryStockLocation) Set(val *ShipmentCreateDataRelationshipsInventoryStockLocation) { + v.value = val + v.isSet = true +} + +func (v NullableShipmentCreateDataRelationshipsInventoryStockLocation) IsSet() bool { + return v.isSet +} + +func (v *NullableShipmentCreateDataRelationshipsInventoryStockLocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableShipmentCreateDataRelationshipsInventoryStockLocation(val *ShipmentCreateDataRelationshipsInventoryStockLocation) *NullableShipmentCreateDataRelationshipsInventoryStockLocation { + return &NullableShipmentCreateDataRelationshipsInventoryStockLocation{value: val, isSet: true} +} + +func (v NullableShipmentCreateDataRelationshipsInventoryStockLocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableShipmentCreateDataRelationshipsInventoryStockLocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_shipment_create_data_relationships_shipping_category.go b/api/model_shipment_create_data_relationships_shipping_category.go new file mode 100644 index 00000000..6de8bde1 --- /dev/null +++ b/api/model_shipment_create_data_relationships_shipping_category.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ShipmentCreateDataRelationshipsShippingCategory type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ShipmentCreateDataRelationshipsShippingCategory{} + +// ShipmentCreateDataRelationshipsShippingCategory struct for ShipmentCreateDataRelationshipsShippingCategory +type ShipmentCreateDataRelationshipsShippingCategory struct { + Data ShipmentDataRelationshipsShippingCategoryData `json:"data"` +} + +// NewShipmentCreateDataRelationshipsShippingCategory instantiates a new ShipmentCreateDataRelationshipsShippingCategory object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewShipmentCreateDataRelationshipsShippingCategory(data ShipmentDataRelationshipsShippingCategoryData) *ShipmentCreateDataRelationshipsShippingCategory { + this := ShipmentCreateDataRelationshipsShippingCategory{} + this.Data = data + return &this +} + +// NewShipmentCreateDataRelationshipsShippingCategoryWithDefaults instantiates a new ShipmentCreateDataRelationshipsShippingCategory object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewShipmentCreateDataRelationshipsShippingCategoryWithDefaults() *ShipmentCreateDataRelationshipsShippingCategory { + this := ShipmentCreateDataRelationshipsShippingCategory{} + return &this +} + +// GetData returns the Data field value +func (o *ShipmentCreateDataRelationshipsShippingCategory) GetData() ShipmentDataRelationshipsShippingCategoryData { + if o == nil { + var ret ShipmentDataRelationshipsShippingCategoryData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *ShipmentCreateDataRelationshipsShippingCategory) GetDataOk() (*ShipmentDataRelationshipsShippingCategoryData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *ShipmentCreateDataRelationshipsShippingCategory) SetData(v ShipmentDataRelationshipsShippingCategoryData) { + o.Data = v +} + +func (o ShipmentCreateDataRelationshipsShippingCategory) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ShipmentCreateDataRelationshipsShippingCategory) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableShipmentCreateDataRelationshipsShippingCategory struct { + value *ShipmentCreateDataRelationshipsShippingCategory + isSet bool +} + +func (v NullableShipmentCreateDataRelationshipsShippingCategory) Get() *ShipmentCreateDataRelationshipsShippingCategory { + return v.value +} + +func (v *NullableShipmentCreateDataRelationshipsShippingCategory) Set(val *ShipmentCreateDataRelationshipsShippingCategory) { + v.value = val + v.isSet = true +} + +func (v NullableShipmentCreateDataRelationshipsShippingCategory) IsSet() bool { + return v.isSet +} + +func (v *NullableShipmentCreateDataRelationshipsShippingCategory) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableShipmentCreateDataRelationshipsShippingCategory(val *ShipmentCreateDataRelationshipsShippingCategory) *NullableShipmentCreateDataRelationshipsShippingCategory { + return &NullableShipmentCreateDataRelationshipsShippingCategory{value: val, isSet: true} +} + +func (v NullableShipmentCreateDataRelationshipsShippingCategory) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableShipmentCreateDataRelationshipsShippingCategory) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_shipment_data.go b/api/model_shipment_data.go index 1f6529cb..89ab44d6 100644 --- a/api/model_shipment_data.go +++ b/api/model_shipment_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipment_data_relationships.go b/api/model_shipment_data_relationships.go index 36c76062..43ff568e 100644 --- a/api/model_shipment_data_relationships.go +++ b/api/model_shipment_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,22 +20,24 @@ var _ MappedNullable = &ShipmentDataRelationships{} // ShipmentDataRelationships struct for ShipmentDataRelationships type ShipmentDataRelationships struct { - Order *AdyenPaymentDataRelationshipsOrder `json:"order,omitempty"` - ShippingCategory *ShipmentDataRelationshipsShippingCategory `json:"shipping_category,omitempty"` - StockLocation *DeliveryLeadTimeDataRelationshipsStockLocation `json:"stock_location,omitempty"` - OriginAddress *BingGeocoderDataRelationshipsAddresses `json:"origin_address,omitempty"` - ShippingAddress *BingGeocoderDataRelationshipsAddresses `json:"shipping_address,omitempty"` - ShippingMethod *DeliveryLeadTimeDataRelationshipsShippingMethod `json:"shipping_method,omitempty"` - DeliveryLeadTime *ShipmentDataRelationshipsDeliveryLeadTime `json:"delivery_lead_time,omitempty"` - // Deprecated - ShipmentLineItems *LineItemDataRelationshipsShipmentLineItems `json:"shipment_line_items,omitempty"` - StockLineItems *LineItemDataRelationshipsStockLineItems `json:"stock_line_items,omitempty"` - StockTransfers *LineItemDataRelationshipsStockTransfers `json:"stock_transfers,omitempty"` - AvailableShippingMethods *DeliveryLeadTimeDataRelationshipsShippingMethod `json:"available_shipping_methods,omitempty"` - CarrierAccounts *ShipmentDataRelationshipsCarrierAccounts `json:"carrier_accounts,omitempty"` - Parcels *PackageDataRelationshipsParcels `json:"parcels,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` + Order *AdyenPaymentDataRelationshipsOrder `json:"order,omitempty"` + ShippingCategory *ShipmentDataRelationshipsShippingCategory `json:"shipping_category,omitempty"` + InventoryStockLocation *InventoryModelDataRelationshipsInventoryStockLocations `json:"inventory_stock_location,omitempty"` + StockLocation *DeliveryLeadTimeDataRelationshipsStockLocation `json:"stock_location,omitempty"` + OriginAddress *BingGeocoderDataRelationshipsAddresses `json:"origin_address,omitempty"` + ShippingAddress *BingGeocoderDataRelationshipsAddresses `json:"shipping_address,omitempty"` + ShippingMethod *DeliveryLeadTimeDataRelationshipsShippingMethod `json:"shipping_method,omitempty"` + DeliveryLeadTime *ShipmentDataRelationshipsDeliveryLeadTime `json:"delivery_lead_time,omitempty"` + StockLineItems *LineItemDataRelationshipsStockLineItems `json:"stock_line_items,omitempty"` + StockTransfers *LineItemDataRelationshipsStockTransfers `json:"stock_transfers,omitempty"` + LineItems *LineItemOptionDataRelationshipsLineItem `json:"line_items,omitempty"` + AvailableShippingMethods *DeliveryLeadTimeDataRelationshipsShippingMethod `json:"available_shipping_methods,omitempty"` + CarrierAccounts *ShipmentDataRelationshipsCarrierAccounts `json:"carrier_accounts,omitempty"` + Parcels *PackageDataRelationshipsParcels `json:"parcels,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Tags *AddressDataRelationshipsTags `json:"tags,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewShipmentDataRelationships instantiates a new ShipmentDataRelationships object @@ -119,6 +121,38 @@ func (o *ShipmentDataRelationships) SetShippingCategory(v ShipmentDataRelationsh o.ShippingCategory = &v } +// GetInventoryStockLocation returns the InventoryStockLocation field value if set, zero value otherwise. +func (o *ShipmentDataRelationships) GetInventoryStockLocation() InventoryModelDataRelationshipsInventoryStockLocations { + if o == nil || IsNil(o.InventoryStockLocation) { + var ret InventoryModelDataRelationshipsInventoryStockLocations + return ret + } + return *o.InventoryStockLocation +} + +// GetInventoryStockLocationOk returns a tuple with the InventoryStockLocation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShipmentDataRelationships) GetInventoryStockLocationOk() (*InventoryModelDataRelationshipsInventoryStockLocations, bool) { + if o == nil || IsNil(o.InventoryStockLocation) { + return nil, false + } + return o.InventoryStockLocation, true +} + +// HasInventoryStockLocation returns a boolean if a field has been set. +func (o *ShipmentDataRelationships) HasInventoryStockLocation() bool { + if o != nil && !IsNil(o.InventoryStockLocation) { + return true + } + + return false +} + +// SetInventoryStockLocation gets a reference to the given InventoryModelDataRelationshipsInventoryStockLocations and assigns it to the InventoryStockLocation field. +func (o *ShipmentDataRelationships) SetInventoryStockLocation(v InventoryModelDataRelationshipsInventoryStockLocations) { + o.InventoryStockLocation = &v +} + // GetStockLocation returns the StockLocation field value if set, zero value otherwise. func (o *ShipmentDataRelationships) GetStockLocation() DeliveryLeadTimeDataRelationshipsStockLocation { if o == nil || IsNil(o.StockLocation) { @@ -279,41 +313,6 @@ func (o *ShipmentDataRelationships) SetDeliveryLeadTime(v ShipmentDataRelationsh o.DeliveryLeadTime = &v } -// GetShipmentLineItems returns the ShipmentLineItems field value if set, zero value otherwise. -// Deprecated -func (o *ShipmentDataRelationships) GetShipmentLineItems() LineItemDataRelationshipsShipmentLineItems { - if o == nil || IsNil(o.ShipmentLineItems) { - var ret LineItemDataRelationshipsShipmentLineItems - return ret - } - return *o.ShipmentLineItems -} - -// GetShipmentLineItemsOk returns a tuple with the ShipmentLineItems field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated -func (o *ShipmentDataRelationships) GetShipmentLineItemsOk() (*LineItemDataRelationshipsShipmentLineItems, bool) { - if o == nil || IsNil(o.ShipmentLineItems) { - return nil, false - } - return o.ShipmentLineItems, true -} - -// HasShipmentLineItems returns a boolean if a field has been set. -func (o *ShipmentDataRelationships) HasShipmentLineItems() bool { - if o != nil && !IsNil(o.ShipmentLineItems) { - return true - } - - return false -} - -// SetShipmentLineItems gets a reference to the given LineItemDataRelationshipsShipmentLineItems and assigns it to the ShipmentLineItems field. -// Deprecated -func (o *ShipmentDataRelationships) SetShipmentLineItems(v LineItemDataRelationshipsShipmentLineItems) { - o.ShipmentLineItems = &v -} - // GetStockLineItems returns the StockLineItems field value if set, zero value otherwise. func (o *ShipmentDataRelationships) GetStockLineItems() LineItemDataRelationshipsStockLineItems { if o == nil || IsNil(o.StockLineItems) { @@ -378,6 +377,38 @@ func (o *ShipmentDataRelationships) SetStockTransfers(v LineItemDataRelationship o.StockTransfers = &v } +// GetLineItems returns the LineItems field value if set, zero value otherwise. +func (o *ShipmentDataRelationships) GetLineItems() LineItemOptionDataRelationshipsLineItem { + if o == nil || IsNil(o.LineItems) { + var ret LineItemOptionDataRelationshipsLineItem + return ret + } + return *o.LineItems +} + +// GetLineItemsOk returns a tuple with the LineItems field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShipmentDataRelationships) GetLineItemsOk() (*LineItemOptionDataRelationshipsLineItem, bool) { + if o == nil || IsNil(o.LineItems) { + return nil, false + } + return o.LineItems, true +} + +// HasLineItems returns a boolean if a field has been set. +func (o *ShipmentDataRelationships) HasLineItems() bool { + if o != nil && !IsNil(o.LineItems) { + return true + } + + return false +} + +// SetLineItems gets a reference to the given LineItemOptionDataRelationshipsLineItem and assigns it to the LineItems field. +func (o *ShipmentDataRelationships) SetLineItems(v LineItemOptionDataRelationshipsLineItem) { + o.LineItems = &v +} + // GetAvailableShippingMethods returns the AvailableShippingMethods field value if set, zero value otherwise. func (o *ShipmentDataRelationships) GetAvailableShippingMethods() DeliveryLeadTimeDataRelationshipsShippingMethod { if o == nil || IsNil(o.AvailableShippingMethods) { @@ -475,9 +506,9 @@ func (o *ShipmentDataRelationships) SetParcels(v PackageDataRelationshipsParcels } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *ShipmentDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *ShipmentDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -485,7 +516,7 @@ func (o *ShipmentDataRelationships) GetAttachments() AvalaraAccountDataRelations // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ShipmentDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *ShipmentDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -501,15 +532,15 @@ func (o *ShipmentDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *ShipmentDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *ShipmentDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *ShipmentDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { +func (o *ShipmentDataRelationships) GetEvents() AddressDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents + var ret AddressDataRelationshipsEvents return ret } return *o.Events @@ -517,7 +548,7 @@ func (o *ShipmentDataRelationships) GetEvents() AuthorizationDataRelationshipsEv // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ShipmentDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { +func (o *ShipmentDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -533,11 +564,75 @@ func (o *ShipmentDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *ShipmentDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *ShipmentDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { o.Events = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ShipmentDataRelationships) GetTags() AddressDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShipmentDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ShipmentDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressDataRelationshipsTags and assigns it to the Tags field. +func (o *ShipmentDataRelationships) SetTags(v AddressDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *ShipmentDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShipmentDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *ShipmentDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *ShipmentDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o ShipmentDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -554,6 +649,9 @@ func (o ShipmentDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.ShippingCategory) { toSerialize["shipping_category"] = o.ShippingCategory } + if !IsNil(o.InventoryStockLocation) { + toSerialize["inventory_stock_location"] = o.InventoryStockLocation + } if !IsNil(o.StockLocation) { toSerialize["stock_location"] = o.StockLocation } @@ -569,15 +667,15 @@ func (o ShipmentDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.DeliveryLeadTime) { toSerialize["delivery_lead_time"] = o.DeliveryLeadTime } - if !IsNil(o.ShipmentLineItems) { - toSerialize["shipment_line_items"] = o.ShipmentLineItems - } if !IsNil(o.StockLineItems) { toSerialize["stock_line_items"] = o.StockLineItems } if !IsNil(o.StockTransfers) { toSerialize["stock_transfers"] = o.StockTransfers } + if !IsNil(o.LineItems) { + toSerialize["line_items"] = o.LineItems + } if !IsNil(o.AvailableShippingMethods) { toSerialize["available_shipping_methods"] = o.AvailableShippingMethods } @@ -593,6 +691,12 @@ func (o ShipmentDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_shipment_data_relationships_carrier_accounts.go b/api/model_shipment_data_relationships_carrier_accounts.go index 73553e80..acc74bc7 100644 --- a/api/model_shipment_data_relationships_carrier_accounts.go +++ b/api/model_shipment_data_relationships_carrier_accounts.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipment_data_relationships_carrier_accounts_data.go b/api/model_shipment_data_relationships_carrier_accounts_data.go index 1a4e3a4e..fd456686 100644 --- a/api/model_shipment_data_relationships_carrier_accounts_data.go +++ b/api/model_shipment_data_relationships_carrier_accounts_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipment_data_relationships_delivery_lead_time.go b/api/model_shipment_data_relationships_delivery_lead_time.go index dd3cceb1..a16eff38 100644 --- a/api/model_shipment_data_relationships_delivery_lead_time.go +++ b/api/model_shipment_data_relationships_delivery_lead_time.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipment_data_relationships_delivery_lead_time_data.go b/api/model_shipment_data_relationships_delivery_lead_time_data.go index 65472c3e..2fd33475 100644 --- a/api/model_shipment_data_relationships_delivery_lead_time_data.go +++ b/api/model_shipment_data_relationships_delivery_lead_time_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipment_data_relationships_shipping_category.go b/api/model_shipment_data_relationships_shipping_category.go index 3bb94c88..87353efb 100644 --- a/api/model_shipment_data_relationships_shipping_category.go +++ b/api/model_shipment_data_relationships_shipping_category.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipment_data_relationships_shipping_category_data.go b/api/model_shipment_data_relationships_shipping_category_data.go index f465ee32..56d8e441 100644 --- a/api/model_shipment_data_relationships_shipping_category_data.go +++ b/api/model_shipment_data_relationships_shipping_category_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipment_update.go b/api/model_shipment_update.go index 4674c3f9..3d81d7cc 100644 --- a/api/model_shipment_update.go +++ b/api/model_shipment_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipment_update_data.go b/api/model_shipment_update_data.go index 1de49d8b..ab2e8637 100644 --- a/api/model_shipment_update_data.go +++ b/api/model_shipment_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipment_update_data_relationships.go b/api/model_shipment_update_data_relationships.go index b385d593..ebd41f96 100644 --- a/api/model_shipment_update_data_relationships.go +++ b/api/model_shipment_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,11 @@ var _ MappedNullable = &ShipmentUpdateDataRelationships{} // ShipmentUpdateDataRelationships struct for ShipmentUpdateDataRelationships type ShipmentUpdateDataRelationships struct { - ShippingMethod *DeliveryLeadTimeCreateDataRelationshipsShippingMethod `json:"shipping_method,omitempty"` + ShippingCategory *ShipmentCreateDataRelationshipsShippingCategory `json:"shipping_category,omitempty"` + InventoryStockLocation *ShipmentCreateDataRelationshipsInventoryStockLocation `json:"inventory_stock_location,omitempty"` + ShippingAddress *CustomerAddressCreateDataRelationshipsAddress `json:"shipping_address,omitempty"` + ShippingMethod *DeliveryLeadTimeCreateDataRelationshipsShippingMethod `json:"shipping_method,omitempty"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` } // NewShipmentUpdateDataRelationships instantiates a new ShipmentUpdateDataRelationships object @@ -40,6 +44,102 @@ func NewShipmentUpdateDataRelationshipsWithDefaults() *ShipmentUpdateDataRelatio return &this } +// GetShippingCategory returns the ShippingCategory field value if set, zero value otherwise. +func (o *ShipmentUpdateDataRelationships) GetShippingCategory() ShipmentCreateDataRelationshipsShippingCategory { + if o == nil || IsNil(o.ShippingCategory) { + var ret ShipmentCreateDataRelationshipsShippingCategory + return ret + } + return *o.ShippingCategory +} + +// GetShippingCategoryOk returns a tuple with the ShippingCategory field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShipmentUpdateDataRelationships) GetShippingCategoryOk() (*ShipmentCreateDataRelationshipsShippingCategory, bool) { + if o == nil || IsNil(o.ShippingCategory) { + return nil, false + } + return o.ShippingCategory, true +} + +// HasShippingCategory returns a boolean if a field has been set. +func (o *ShipmentUpdateDataRelationships) HasShippingCategory() bool { + if o != nil && !IsNil(o.ShippingCategory) { + return true + } + + return false +} + +// SetShippingCategory gets a reference to the given ShipmentCreateDataRelationshipsShippingCategory and assigns it to the ShippingCategory field. +func (o *ShipmentUpdateDataRelationships) SetShippingCategory(v ShipmentCreateDataRelationshipsShippingCategory) { + o.ShippingCategory = &v +} + +// GetInventoryStockLocation returns the InventoryStockLocation field value if set, zero value otherwise. +func (o *ShipmentUpdateDataRelationships) GetInventoryStockLocation() ShipmentCreateDataRelationshipsInventoryStockLocation { + if o == nil || IsNil(o.InventoryStockLocation) { + var ret ShipmentCreateDataRelationshipsInventoryStockLocation + return ret + } + return *o.InventoryStockLocation +} + +// GetInventoryStockLocationOk returns a tuple with the InventoryStockLocation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShipmentUpdateDataRelationships) GetInventoryStockLocationOk() (*ShipmentCreateDataRelationshipsInventoryStockLocation, bool) { + if o == nil || IsNil(o.InventoryStockLocation) { + return nil, false + } + return o.InventoryStockLocation, true +} + +// HasInventoryStockLocation returns a boolean if a field has been set. +func (o *ShipmentUpdateDataRelationships) HasInventoryStockLocation() bool { + if o != nil && !IsNil(o.InventoryStockLocation) { + return true + } + + return false +} + +// SetInventoryStockLocation gets a reference to the given ShipmentCreateDataRelationshipsInventoryStockLocation and assigns it to the InventoryStockLocation field. +func (o *ShipmentUpdateDataRelationships) SetInventoryStockLocation(v ShipmentCreateDataRelationshipsInventoryStockLocation) { + o.InventoryStockLocation = &v +} + +// GetShippingAddress returns the ShippingAddress field value if set, zero value otherwise. +func (o *ShipmentUpdateDataRelationships) GetShippingAddress() CustomerAddressCreateDataRelationshipsAddress { + if o == nil || IsNil(o.ShippingAddress) { + var ret CustomerAddressCreateDataRelationshipsAddress + return ret + } + return *o.ShippingAddress +} + +// GetShippingAddressOk returns a tuple with the ShippingAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShipmentUpdateDataRelationships) GetShippingAddressOk() (*CustomerAddressCreateDataRelationshipsAddress, bool) { + if o == nil || IsNil(o.ShippingAddress) { + return nil, false + } + return o.ShippingAddress, true +} + +// HasShippingAddress returns a boolean if a field has been set. +func (o *ShipmentUpdateDataRelationships) HasShippingAddress() bool { + if o != nil && !IsNil(o.ShippingAddress) { + return true + } + + return false +} + +// SetShippingAddress gets a reference to the given CustomerAddressCreateDataRelationshipsAddress and assigns it to the ShippingAddress field. +func (o *ShipmentUpdateDataRelationships) SetShippingAddress(v CustomerAddressCreateDataRelationshipsAddress) { + o.ShippingAddress = &v +} + // GetShippingMethod returns the ShippingMethod field value if set, zero value otherwise. func (o *ShipmentUpdateDataRelationships) GetShippingMethod() DeliveryLeadTimeCreateDataRelationshipsShippingMethod { if o == nil || IsNil(o.ShippingMethod) { @@ -72,6 +172,38 @@ func (o *ShipmentUpdateDataRelationships) SetShippingMethod(v DeliveryLeadTimeCr o.ShippingMethod = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ShipmentUpdateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShipmentUpdateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ShipmentUpdateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *ShipmentUpdateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + func (o ShipmentUpdateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -82,9 +214,21 @@ func (o ShipmentUpdateDataRelationships) MarshalJSON() ([]byte, error) { func (o ShipmentUpdateDataRelationships) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.ShippingCategory) { + toSerialize["shipping_category"] = o.ShippingCategory + } + if !IsNil(o.InventoryStockLocation) { + toSerialize["inventory_stock_location"] = o.InventoryStockLocation + } + if !IsNil(o.ShippingAddress) { + toSerialize["shipping_address"] = o.ShippingAddress + } if !IsNil(o.ShippingMethod) { toSerialize["shipping_method"] = o.ShippingMethod } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_shipping_category.go b/api/model_shipping_category.go index 50f937f8..6ddb0374 100644 --- a/api/model_shipping_category.go +++ b/api/model_shipping_category.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_category_create.go b/api/model_shipping_category_create.go index 545a1b86..14f60524 100644 --- a/api/model_shipping_category_create.go +++ b/api/model_shipping_category_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_category_create_data.go b/api/model_shipping_category_create_data.go index b812cc46..be87e58e 100644 --- a/api/model_shipping_category_create_data.go +++ b/api/model_shipping_category_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_category_data.go b/api/model_shipping_category_data.go index 1b7c1f30..dd39894d 100644 --- a/api/model_shipping_category_data.go +++ b/api/model_shipping_category_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_category_data_relationships.go b/api/model_shipping_category_data_relationships.go index 09b5b823..80534f9c 100644 --- a/api/model_shipping_category_data_relationships.go +++ b/api/model_shipping_category_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,9 @@ var _ MappedNullable = &ShippingCategoryDataRelationships{} // ShippingCategoryDataRelationships struct for ShippingCategoryDataRelationships type ShippingCategoryDataRelationships struct { - Skus *BundleDataRelationshipsSkus `json:"skus,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Skus *BundleDataRelationshipsSkus `json:"skus,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewShippingCategoryDataRelationships instantiates a new ShippingCategoryDataRelationships object @@ -74,9 +75,9 @@ func (o *ShippingCategoryDataRelationships) SetSkus(v BundleDataRelationshipsSku } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *ShippingCategoryDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *ShippingCategoryDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -84,7 +85,7 @@ func (o *ShippingCategoryDataRelationships) GetAttachments() AvalaraAccountDataR // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ShippingCategoryDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *ShippingCategoryDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -100,11 +101,43 @@ func (o *ShippingCategoryDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *ShippingCategoryDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *ShippingCategoryDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *ShippingCategoryDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShippingCategoryDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *ShippingCategoryDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *ShippingCategoryDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o ShippingCategoryDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o ShippingCategoryDataRelationships) ToMap() (map[string]interface{}, erro if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_shipping_category_update.go b/api/model_shipping_category_update.go index 8c26e27f..648c8321 100644 --- a/api/model_shipping_category_update.go +++ b/api/model_shipping_category_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_category_update_data.go b/api/model_shipping_category_update_data.go index 2de3d17d..2e795bb9 100644 --- a/api/model_shipping_category_update_data.go +++ b/api/model_shipping_category_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_method.go b/api/model_shipping_method.go index 9b1f8fd8..06ec37a9 100644 --- a/api/model_shipping_method.go +++ b/api/model_shipping_method.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_method_create.go b/api/model_shipping_method_create.go index fc809663..32cc8173 100644 --- a/api/model_shipping_method_create.go +++ b/api/model_shipping_method_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_method_create_data.go b/api/model_shipping_method_create_data.go index d770db2e..96c0ec3f 100644 --- a/api/model_shipping_method_create_data.go +++ b/api/model_shipping_method_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_method_create_data_relationships.go b/api/model_shipping_method_create_data_relationships.go index ab52c428..86374c01 100644 --- a/api/model_shipping_method_create_data_relationships.go +++ b/api/model_shipping_method_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,7 +22,7 @@ var _ MappedNullable = &ShippingMethodCreateDataRelationships{} type ShippingMethodCreateDataRelationships struct { Market *BillingInfoValidationRuleCreateDataRelationshipsMarket `json:"market,omitempty"` ShippingZone *ShippingMethodCreateDataRelationshipsShippingZone `json:"shipping_zone,omitempty"` - ShippingCategory *ShippingMethodCreateDataRelationshipsShippingCategory `json:"shipping_category,omitempty"` + ShippingCategory *ShipmentCreateDataRelationshipsShippingCategory `json:"shipping_category,omitempty"` StockLocation *DeliveryLeadTimeCreateDataRelationshipsStockLocation `json:"stock_location,omitempty"` ShippingMethodTiers *ShippingMethodCreateDataRelationshipsShippingMethodTiers `json:"shipping_method_tiers,omitempty"` } @@ -109,9 +109,9 @@ func (o *ShippingMethodCreateDataRelationships) SetShippingZone(v ShippingMethod } // GetShippingCategory returns the ShippingCategory field value if set, zero value otherwise. -func (o *ShippingMethodCreateDataRelationships) GetShippingCategory() ShippingMethodCreateDataRelationshipsShippingCategory { +func (o *ShippingMethodCreateDataRelationships) GetShippingCategory() ShipmentCreateDataRelationshipsShippingCategory { if o == nil || IsNil(o.ShippingCategory) { - var ret ShippingMethodCreateDataRelationshipsShippingCategory + var ret ShipmentCreateDataRelationshipsShippingCategory return ret } return *o.ShippingCategory @@ -119,7 +119,7 @@ func (o *ShippingMethodCreateDataRelationships) GetShippingCategory() ShippingMe // GetShippingCategoryOk returns a tuple with the ShippingCategory field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ShippingMethodCreateDataRelationships) GetShippingCategoryOk() (*ShippingMethodCreateDataRelationshipsShippingCategory, bool) { +func (o *ShippingMethodCreateDataRelationships) GetShippingCategoryOk() (*ShipmentCreateDataRelationshipsShippingCategory, bool) { if o == nil || IsNil(o.ShippingCategory) { return nil, false } @@ -135,8 +135,8 @@ func (o *ShippingMethodCreateDataRelationships) HasShippingCategory() bool { return false } -// SetShippingCategory gets a reference to the given ShippingMethodCreateDataRelationshipsShippingCategory and assigns it to the ShippingCategory field. -func (o *ShippingMethodCreateDataRelationships) SetShippingCategory(v ShippingMethodCreateDataRelationshipsShippingCategory) { +// SetShippingCategory gets a reference to the given ShipmentCreateDataRelationshipsShippingCategory and assigns it to the ShippingCategory field. +func (o *ShippingMethodCreateDataRelationships) SetShippingCategory(v ShipmentCreateDataRelationshipsShippingCategory) { o.ShippingCategory = &v } diff --git a/api/model_shipping_method_create_data_relationships_shipping_category.go b/api/model_shipping_method_create_data_relationships_shipping_category.go deleted file mode 100644 index a1542435..00000000 --- a/api/model_shipping_method_create_data_relationships_shipping_category.go +++ /dev/null @@ -1,116 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the ShippingMethodCreateDataRelationshipsShippingCategory type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ShippingMethodCreateDataRelationshipsShippingCategory{} - -// ShippingMethodCreateDataRelationshipsShippingCategory struct for ShippingMethodCreateDataRelationshipsShippingCategory -type ShippingMethodCreateDataRelationshipsShippingCategory struct { - Data ShipmentDataRelationshipsShippingCategoryData `json:"data"` -} - -// NewShippingMethodCreateDataRelationshipsShippingCategory instantiates a new ShippingMethodCreateDataRelationshipsShippingCategory object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewShippingMethodCreateDataRelationshipsShippingCategory(data ShipmentDataRelationshipsShippingCategoryData) *ShippingMethodCreateDataRelationshipsShippingCategory { - this := ShippingMethodCreateDataRelationshipsShippingCategory{} - this.Data = data - return &this -} - -// NewShippingMethodCreateDataRelationshipsShippingCategoryWithDefaults instantiates a new ShippingMethodCreateDataRelationshipsShippingCategory object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewShippingMethodCreateDataRelationshipsShippingCategoryWithDefaults() *ShippingMethodCreateDataRelationshipsShippingCategory { - this := ShippingMethodCreateDataRelationshipsShippingCategory{} - return &this -} - -// GetData returns the Data field value -func (o *ShippingMethodCreateDataRelationshipsShippingCategory) GetData() ShipmentDataRelationshipsShippingCategoryData { - if o == nil { - var ret ShipmentDataRelationshipsShippingCategoryData - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *ShippingMethodCreateDataRelationshipsShippingCategory) GetDataOk() (*ShipmentDataRelationshipsShippingCategoryData, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *ShippingMethodCreateDataRelationshipsShippingCategory) SetData(v ShipmentDataRelationshipsShippingCategoryData) { - o.Data = v -} - -func (o ShippingMethodCreateDataRelationshipsShippingCategory) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ShippingMethodCreateDataRelationshipsShippingCategory) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - return toSerialize, nil -} - -type NullableShippingMethodCreateDataRelationshipsShippingCategory struct { - value *ShippingMethodCreateDataRelationshipsShippingCategory - isSet bool -} - -func (v NullableShippingMethodCreateDataRelationshipsShippingCategory) Get() *ShippingMethodCreateDataRelationshipsShippingCategory { - return v.value -} - -func (v *NullableShippingMethodCreateDataRelationshipsShippingCategory) Set(val *ShippingMethodCreateDataRelationshipsShippingCategory) { - v.value = val - v.isSet = true -} - -func (v NullableShippingMethodCreateDataRelationshipsShippingCategory) IsSet() bool { - return v.isSet -} - -func (v *NullableShippingMethodCreateDataRelationshipsShippingCategory) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableShippingMethodCreateDataRelationshipsShippingCategory(val *ShippingMethodCreateDataRelationshipsShippingCategory) *NullableShippingMethodCreateDataRelationshipsShippingCategory { - return &NullableShippingMethodCreateDataRelationshipsShippingCategory{value: val, isSet: true} -} - -func (v NullableShippingMethodCreateDataRelationshipsShippingCategory) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableShippingMethodCreateDataRelationshipsShippingCategory) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_shipping_method_create_data_relationships_shipping_method_tiers.go b/api/model_shipping_method_create_data_relationships_shipping_method_tiers.go index d4bea4ca..3838ea3c 100644 --- a/api/model_shipping_method_create_data_relationships_shipping_method_tiers.go +++ b/api/model_shipping_method_create_data_relationships_shipping_method_tiers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_method_create_data_relationships_shipping_zone.go b/api/model_shipping_method_create_data_relationships_shipping_zone.go index 338c36fe..f7e922c9 100644 --- a/api/model_shipping_method_create_data_relationships_shipping_zone.go +++ b/api/model_shipping_method_create_data_relationships_shipping_zone.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_method_data.go b/api/model_shipping_method_data.go index 2f423e6c..812772f4 100644 --- a/api/model_shipping_method_data.go +++ b/api/model_shipping_method_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_method_data_relationships.go b/api/model_shipping_method_data_relationships.go index 65102b40..b00013b5 100644 --- a/api/model_shipping_method_data_relationships.go +++ b/api/model_shipping_method_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -27,7 +27,8 @@ type ShippingMethodDataRelationships struct { DeliveryLeadTimeForShipment *ShipmentDataRelationshipsDeliveryLeadTime `json:"delivery_lead_time_for_shipment,omitempty"` ShippingMethodTiers *ShippingMethodDataRelationshipsShippingMethodTiers `json:"shipping_method_tiers,omitempty"` ShippingWeightTiers *ShippingMethodDataRelationshipsShippingWeightTiers `json:"shipping_weight_tiers,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewShippingMethodDataRelationships instantiates a new ShippingMethodDataRelationships object @@ -272,9 +273,9 @@ func (o *ShippingMethodDataRelationships) SetShippingWeightTiers(v ShippingMetho } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *ShippingMethodDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *ShippingMethodDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -282,7 +283,7 @@ func (o *ShippingMethodDataRelationships) GetAttachments() AvalaraAccountDataRel // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ShippingMethodDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *ShippingMethodDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -298,11 +299,43 @@ func (o *ShippingMethodDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *ShippingMethodDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *ShippingMethodDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *ShippingMethodDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShippingMethodDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *ShippingMethodDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *ShippingMethodDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o ShippingMethodDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -337,6 +370,9 @@ func (o ShippingMethodDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_shipping_method_data_relationships_shipping_method_tiers.go b/api/model_shipping_method_data_relationships_shipping_method_tiers.go index 56394223..0aee3eb0 100644 --- a/api/model_shipping_method_data_relationships_shipping_method_tiers.go +++ b/api/model_shipping_method_data_relationships_shipping_method_tiers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_method_data_relationships_shipping_method_tiers_data.go b/api/model_shipping_method_data_relationships_shipping_method_tiers_data.go index dfa6815c..5d4b06d4 100644 --- a/api/model_shipping_method_data_relationships_shipping_method_tiers_data.go +++ b/api/model_shipping_method_data_relationships_shipping_method_tiers_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_method_data_relationships_shipping_weight_tiers.go b/api/model_shipping_method_data_relationships_shipping_weight_tiers.go index 04bf39e5..8d8c3292 100644 --- a/api/model_shipping_method_data_relationships_shipping_weight_tiers.go +++ b/api/model_shipping_method_data_relationships_shipping_weight_tiers.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_method_data_relationships_shipping_weight_tiers_data.go b/api/model_shipping_method_data_relationships_shipping_weight_tiers_data.go index fcbf3323..05635bf8 100644 --- a/api/model_shipping_method_data_relationships_shipping_weight_tiers_data.go +++ b/api/model_shipping_method_data_relationships_shipping_weight_tiers_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_method_data_relationships_shipping_zone.go b/api/model_shipping_method_data_relationships_shipping_zone.go index 934f0366..cbbda59f 100644 --- a/api/model_shipping_method_data_relationships_shipping_zone.go +++ b/api/model_shipping_method_data_relationships_shipping_zone.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_method_data_relationships_shipping_zone_data.go b/api/model_shipping_method_data_relationships_shipping_zone_data.go index 407c6f5f..aa04748f 100644 --- a/api/model_shipping_method_data_relationships_shipping_zone_data.go +++ b/api/model_shipping_method_data_relationships_shipping_zone_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_method_tier.go b/api/model_shipping_method_tier.go index a1dc75d5..6b2248a9 100644 --- a/api/model_shipping_method_tier.go +++ b/api/model_shipping_method_tier.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_method_tier_data.go b/api/model_shipping_method_tier_data.go index 1ee3e371..78738b59 100644 --- a/api/model_shipping_method_tier_data.go +++ b/api/model_shipping_method_tier_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_method_tier_data_relationships.go b/api/model_shipping_method_tier_data_relationships.go index 2118494f..996fee5a 100644 --- a/api/model_shipping_method_tier_data_relationships.go +++ b/api/model_shipping_method_tier_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,7 +21,8 @@ var _ MappedNullable = &ShippingMethodTierDataRelationships{} // ShippingMethodTierDataRelationships struct for ShippingMethodTierDataRelationships type ShippingMethodTierDataRelationships struct { ShippingMethod *DeliveryLeadTimeDataRelationshipsShippingMethod `json:"shipping_method,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewShippingMethodTierDataRelationships instantiates a new ShippingMethodTierDataRelationships object @@ -74,9 +75,9 @@ func (o *ShippingMethodTierDataRelationships) SetShippingMethod(v DeliveryLeadTi } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *ShippingMethodTierDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *ShippingMethodTierDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -84,7 +85,7 @@ func (o *ShippingMethodTierDataRelationships) GetAttachments() AvalaraAccountDat // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ShippingMethodTierDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *ShippingMethodTierDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -100,11 +101,43 @@ func (o *ShippingMethodTierDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *ShippingMethodTierDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *ShippingMethodTierDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *ShippingMethodTierDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShippingMethodTierDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *ShippingMethodTierDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *ShippingMethodTierDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o ShippingMethodTierDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o ShippingMethodTierDataRelationships) ToMap() (map[string]interface{}, er if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_shipping_method_update.go b/api/model_shipping_method_update.go index 8e58942f..78b1da10 100644 --- a/api/model_shipping_method_update.go +++ b/api/model_shipping_method_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_method_update_data.go b/api/model_shipping_method_update_data.go index a21a745e..3df1cc16 100644 --- a/api/model_shipping_method_update_data.go +++ b/api/model_shipping_method_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_weight_tier.go b/api/model_shipping_weight_tier.go index d065de78..7e5665a0 100644 --- a/api/model_shipping_weight_tier.go +++ b/api/model_shipping_weight_tier.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_weight_tier_create.go b/api/model_shipping_weight_tier_create.go index a28e6fab..df2de02f 100644 --- a/api/model_shipping_weight_tier_create.go +++ b/api/model_shipping_weight_tier_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_weight_tier_create_data.go b/api/model_shipping_weight_tier_create_data.go index 961d0df4..9eb21a15 100644 --- a/api/model_shipping_weight_tier_create_data.go +++ b/api/model_shipping_weight_tier_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_weight_tier_create_data_relationships.go b/api/model_shipping_weight_tier_create_data_relationships.go index 29b577d1..98c70de9 100644 --- a/api/model_shipping_weight_tier_create_data_relationships.go +++ b/api/model_shipping_weight_tier_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_weight_tier_data.go b/api/model_shipping_weight_tier_data.go index 2b876ceb..f39e9af8 100644 --- a/api/model_shipping_weight_tier_data.go +++ b/api/model_shipping_weight_tier_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_weight_tier_update.go b/api/model_shipping_weight_tier_update.go index 9d251cc1..e562b042 100644 --- a/api/model_shipping_weight_tier_update.go +++ b/api/model_shipping_weight_tier_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_weight_tier_update_data.go b/api/model_shipping_weight_tier_update_data.go index 44a18cfb..0696f786 100644 --- a/api/model_shipping_weight_tier_update_data.go +++ b/api/model_shipping_weight_tier_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -25,7 +25,7 @@ type ShippingWeightTierUpdateData struct { // The resource's id Id interface{} `json:"id"` Attributes PATCHShippingWeightTiersShippingWeightTierId200ResponseDataAttributes `json:"attributes"` - Relationships *ShipmentUpdateDataRelationships `json:"relationships,omitempty"` + Relationships *ShippingWeightTierUpdateDataRelationships `json:"relationships,omitempty"` } // NewShippingWeightTierUpdateData instantiates a new ShippingWeightTierUpdateData object @@ -125,9 +125,9 @@ func (o *ShippingWeightTierUpdateData) SetAttributes(v PATCHShippingWeightTiersS } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *ShippingWeightTierUpdateData) GetRelationships() ShipmentUpdateDataRelationships { +func (o *ShippingWeightTierUpdateData) GetRelationships() ShippingWeightTierUpdateDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret ShipmentUpdateDataRelationships + var ret ShippingWeightTierUpdateDataRelationships return ret } return *o.Relationships @@ -135,7 +135,7 @@ func (o *ShippingWeightTierUpdateData) GetRelationships() ShipmentUpdateDataRela // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ShippingWeightTierUpdateData) GetRelationshipsOk() (*ShipmentUpdateDataRelationships, bool) { +func (o *ShippingWeightTierUpdateData) GetRelationshipsOk() (*ShippingWeightTierUpdateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -151,8 +151,8 @@ func (o *ShippingWeightTierUpdateData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given ShipmentUpdateDataRelationships and assigns it to the Relationships field. -func (o *ShippingWeightTierUpdateData) SetRelationships(v ShipmentUpdateDataRelationships) { +// SetRelationships gets a reference to the given ShippingWeightTierUpdateDataRelationships and assigns it to the Relationships field. +func (o *ShippingWeightTierUpdateData) SetRelationships(v ShippingWeightTierUpdateDataRelationships) { o.Relationships = &v } diff --git a/api/model_shipping_weight_tier_update_data_relationships.go b/api/model_shipping_weight_tier_update_data_relationships.go new file mode 100644 index 00000000..b2944ab2 --- /dev/null +++ b/api/model_shipping_weight_tier_update_data_relationships.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the ShippingWeightTierUpdateDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ShippingWeightTierUpdateDataRelationships{} + +// ShippingWeightTierUpdateDataRelationships struct for ShippingWeightTierUpdateDataRelationships +type ShippingWeightTierUpdateDataRelationships struct { + ShippingMethod *DeliveryLeadTimeCreateDataRelationshipsShippingMethod `json:"shipping_method,omitempty"` +} + +// NewShippingWeightTierUpdateDataRelationships instantiates a new ShippingWeightTierUpdateDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewShippingWeightTierUpdateDataRelationships() *ShippingWeightTierUpdateDataRelationships { + this := ShippingWeightTierUpdateDataRelationships{} + return &this +} + +// NewShippingWeightTierUpdateDataRelationshipsWithDefaults instantiates a new ShippingWeightTierUpdateDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewShippingWeightTierUpdateDataRelationshipsWithDefaults() *ShippingWeightTierUpdateDataRelationships { + this := ShippingWeightTierUpdateDataRelationships{} + return &this +} + +// GetShippingMethod returns the ShippingMethod field value if set, zero value otherwise. +func (o *ShippingWeightTierUpdateDataRelationships) GetShippingMethod() DeliveryLeadTimeCreateDataRelationshipsShippingMethod { + if o == nil || IsNil(o.ShippingMethod) { + var ret DeliveryLeadTimeCreateDataRelationshipsShippingMethod + return ret + } + return *o.ShippingMethod +} + +// GetShippingMethodOk returns a tuple with the ShippingMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShippingWeightTierUpdateDataRelationships) GetShippingMethodOk() (*DeliveryLeadTimeCreateDataRelationshipsShippingMethod, bool) { + if o == nil || IsNil(o.ShippingMethod) { + return nil, false + } + return o.ShippingMethod, true +} + +// HasShippingMethod returns a boolean if a field has been set. +func (o *ShippingWeightTierUpdateDataRelationships) HasShippingMethod() bool { + if o != nil && !IsNil(o.ShippingMethod) { + return true + } + + return false +} + +// SetShippingMethod gets a reference to the given DeliveryLeadTimeCreateDataRelationshipsShippingMethod and assigns it to the ShippingMethod field. +func (o *ShippingWeightTierUpdateDataRelationships) SetShippingMethod(v DeliveryLeadTimeCreateDataRelationshipsShippingMethod) { + o.ShippingMethod = &v +} + +func (o ShippingWeightTierUpdateDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ShippingWeightTierUpdateDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ShippingMethod) { + toSerialize["shipping_method"] = o.ShippingMethod + } + return toSerialize, nil +} + +type NullableShippingWeightTierUpdateDataRelationships struct { + value *ShippingWeightTierUpdateDataRelationships + isSet bool +} + +func (v NullableShippingWeightTierUpdateDataRelationships) Get() *ShippingWeightTierUpdateDataRelationships { + return v.value +} + +func (v *NullableShippingWeightTierUpdateDataRelationships) Set(val *ShippingWeightTierUpdateDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableShippingWeightTierUpdateDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableShippingWeightTierUpdateDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableShippingWeightTierUpdateDataRelationships(val *ShippingWeightTierUpdateDataRelationships) *NullableShippingWeightTierUpdateDataRelationships { + return &NullableShippingWeightTierUpdateDataRelationships{value: val, isSet: true} +} + +func (v NullableShippingWeightTierUpdateDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableShippingWeightTierUpdateDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_shipping_zone.go b/api/model_shipping_zone.go index d6762df6..0fb83968 100644 --- a/api/model_shipping_zone.go +++ b/api/model_shipping_zone.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_zone_create.go b/api/model_shipping_zone_create.go index 3bed13c9..a9fd4608 100644 --- a/api/model_shipping_zone_create.go +++ b/api/model_shipping_zone_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_zone_create_data.go b/api/model_shipping_zone_create_data.go index ec157d8c..47293b78 100644 --- a/api/model_shipping_zone_create_data.go +++ b/api/model_shipping_zone_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_zone_data.go b/api/model_shipping_zone_data.go index c8f74d9b..2c055b60 100644 --- a/api/model_shipping_zone_data.go +++ b/api/model_shipping_zone_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_zone_data_relationships.go b/api/model_shipping_zone_data_relationships.go index d6d2e3fe..f76cf57c 100644 --- a/api/model_shipping_zone_data_relationships.go +++ b/api/model_shipping_zone_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,8 @@ var _ MappedNullable = &ShippingZoneDataRelationships{} // ShippingZoneDataRelationships struct for ShippingZoneDataRelationships type ShippingZoneDataRelationships struct { - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewShippingZoneDataRelationships instantiates a new ShippingZoneDataRelationships object @@ -41,9 +42,9 @@ func NewShippingZoneDataRelationshipsWithDefaults() *ShippingZoneDataRelationshi } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *ShippingZoneDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *ShippingZoneDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -51,7 +52,7 @@ func (o *ShippingZoneDataRelationships) GetAttachments() AvalaraAccountDataRelat // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ShippingZoneDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *ShippingZoneDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -67,11 +68,43 @@ func (o *ShippingZoneDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *ShippingZoneDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *ShippingZoneDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *ShippingZoneDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ShippingZoneDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *ShippingZoneDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *ShippingZoneDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o ShippingZoneDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +118,9 @@ func (o ShippingZoneDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_shipping_zone_update.go b/api/model_shipping_zone_update.go index de60df2b..cccc0501 100644 --- a/api/model_shipping_zone_update.go +++ b/api/model_shipping_zone_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_shipping_zone_update_data.go b/api/model_shipping_zone_update_data.go index 5577f37c..c5d0c00b 100644 --- a/api/model_shipping_zone_update_data.go +++ b/api/model_shipping_zone_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku.go b/api/model_sku.go index 531702f5..58ff4afd 100644 --- a/api/model_sku.go +++ b/api/model_sku.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_create.go b/api/model_sku_create.go index 21f66841..1482b759 100644 --- a/api/model_sku_create.go +++ b/api/model_sku_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_create_data.go b/api/model_sku_create_data.go index 5f806f47..0fb27d27 100644 --- a/api/model_sku_create_data.go +++ b/api/model_sku_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_create_data_relationships.go b/api/model_sku_create_data_relationships.go index 9dad641e..84800434 100644 --- a/api/model_sku_create_data_relationships.go +++ b/api/model_sku_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,14 +20,15 @@ var _ MappedNullable = &SkuCreateDataRelationships{} // SkuCreateDataRelationships struct for SkuCreateDataRelationships type SkuCreateDataRelationships struct { - ShippingCategory ShippingMethodCreateDataRelationshipsShippingCategory `json:"shipping_category"` + ShippingCategory ShipmentCreateDataRelationshipsShippingCategory `json:"shipping_category"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` } // NewSkuCreateDataRelationships instantiates a new SkuCreateDataRelationships object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSkuCreateDataRelationships(shippingCategory ShippingMethodCreateDataRelationshipsShippingCategory) *SkuCreateDataRelationships { +func NewSkuCreateDataRelationships(shippingCategory ShipmentCreateDataRelationshipsShippingCategory) *SkuCreateDataRelationships { this := SkuCreateDataRelationships{} this.ShippingCategory = shippingCategory return &this @@ -42,9 +43,9 @@ func NewSkuCreateDataRelationshipsWithDefaults() *SkuCreateDataRelationships { } // GetShippingCategory returns the ShippingCategory field value -func (o *SkuCreateDataRelationships) GetShippingCategory() ShippingMethodCreateDataRelationshipsShippingCategory { +func (o *SkuCreateDataRelationships) GetShippingCategory() ShipmentCreateDataRelationshipsShippingCategory { if o == nil { - var ret ShippingMethodCreateDataRelationshipsShippingCategory + var ret ShipmentCreateDataRelationshipsShippingCategory return ret } @@ -53,7 +54,7 @@ func (o *SkuCreateDataRelationships) GetShippingCategory() ShippingMethodCreateD // GetShippingCategoryOk returns a tuple with the ShippingCategory field value // and a boolean to check if the value has been set. -func (o *SkuCreateDataRelationships) GetShippingCategoryOk() (*ShippingMethodCreateDataRelationshipsShippingCategory, bool) { +func (o *SkuCreateDataRelationships) GetShippingCategoryOk() (*ShipmentCreateDataRelationshipsShippingCategory, bool) { if o == nil { return nil, false } @@ -61,10 +62,42 @@ func (o *SkuCreateDataRelationships) GetShippingCategoryOk() (*ShippingMethodCre } // SetShippingCategory sets field value -func (o *SkuCreateDataRelationships) SetShippingCategory(v ShippingMethodCreateDataRelationshipsShippingCategory) { +func (o *SkuCreateDataRelationships) SetShippingCategory(v ShipmentCreateDataRelationshipsShippingCategory) { o.ShippingCategory = v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *SkuCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *SkuCreateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *SkuCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + func (o SkuCreateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -76,6 +109,9 @@ func (o SkuCreateDataRelationships) MarshalJSON() ([]byte, error) { func (o SkuCreateDataRelationships) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["shipping_category"] = o.ShippingCategory + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_sku_data.go b/api/model_sku_data.go index 0578f457..c04911ce 100644 --- a/api/model_sku_data.go +++ b/api/model_sku_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_data_relationships.go b/api/model_sku_data_relationships.go index 71039fd5..3c376c6b 100644 --- a/api/model_sku_data_relationships.go +++ b/api/model_sku_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,12 +20,22 @@ var _ MappedNullable = &SkuDataRelationships{} // SkuDataRelationships struct for SkuDataRelationships type SkuDataRelationships struct { - ShippingCategory *ShipmentDataRelationshipsShippingCategory `json:"shipping_category,omitempty"` - Prices *PriceFrequencyTierDataRelationshipsPrice `json:"prices,omitempty"` - StockItems *SkuDataRelationshipsStockItems `json:"stock_items,omitempty"` - DeliveryLeadTimes *ShipmentDataRelationshipsDeliveryLeadTime `json:"delivery_lead_times,omitempty"` - SkuOptions *LineItemOptionDataRelationshipsSkuOption `json:"sku_options,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + ShippingCategory *ShipmentDataRelationshipsShippingCategory `json:"shipping_category,omitempty"` + Prices *PriceFrequencyTierDataRelationshipsPrice `json:"prices,omitempty"` + StockItems *ReservedStockDataRelationshipsStockItem `json:"stock_items,omitempty"` + StockReservations *LineItemDataRelationshipsStockReservations `json:"stock_reservations,omitempty"` + DeliveryLeadTimes *ShipmentDataRelationshipsDeliveryLeadTime `json:"delivery_lead_times,omitempty"` + SkuOptions *LineItemOptionDataRelationshipsSkuOption `json:"sku_options,omitempty"` + SkuListItems *SkuListDataRelationshipsSkuListItems `json:"sku_list_items,omitempty"` + SkuLists *BundleDataRelationshipsSkuList `json:"sku_lists,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Links *OrderDataRelationshipsLinks `json:"links,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Tags *AddressDataRelationshipsTags `json:"tags,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` + JwtCustomer *CouponRecipientDataRelationshipsCustomer `json:"jwt_customer,omitempty"` + JwtMarkets *AvalaraAccountDataRelationshipsMarkets `json:"jwt_markets,omitempty"` + JwtStockLocations *DeliveryLeadTimeDataRelationshipsStockLocation `json:"jwt_stock_locations,omitempty"` } // NewSkuDataRelationships instantiates a new SkuDataRelationships object @@ -110,9 +120,9 @@ func (o *SkuDataRelationships) SetPrices(v PriceFrequencyTierDataRelationshipsPr } // GetStockItems returns the StockItems field value if set, zero value otherwise. -func (o *SkuDataRelationships) GetStockItems() SkuDataRelationshipsStockItems { +func (o *SkuDataRelationships) GetStockItems() ReservedStockDataRelationshipsStockItem { if o == nil || IsNil(o.StockItems) { - var ret SkuDataRelationshipsStockItems + var ret ReservedStockDataRelationshipsStockItem return ret } return *o.StockItems @@ -120,7 +130,7 @@ func (o *SkuDataRelationships) GetStockItems() SkuDataRelationshipsStockItems { // GetStockItemsOk returns a tuple with the StockItems field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SkuDataRelationships) GetStockItemsOk() (*SkuDataRelationshipsStockItems, bool) { +func (o *SkuDataRelationships) GetStockItemsOk() (*ReservedStockDataRelationshipsStockItem, bool) { if o == nil || IsNil(o.StockItems) { return nil, false } @@ -136,11 +146,43 @@ func (o *SkuDataRelationships) HasStockItems() bool { return false } -// SetStockItems gets a reference to the given SkuDataRelationshipsStockItems and assigns it to the StockItems field. -func (o *SkuDataRelationships) SetStockItems(v SkuDataRelationshipsStockItems) { +// SetStockItems gets a reference to the given ReservedStockDataRelationshipsStockItem and assigns it to the StockItems field. +func (o *SkuDataRelationships) SetStockItems(v ReservedStockDataRelationshipsStockItem) { o.StockItems = &v } +// GetStockReservations returns the StockReservations field value if set, zero value otherwise. +func (o *SkuDataRelationships) GetStockReservations() LineItemDataRelationshipsStockReservations { + if o == nil || IsNil(o.StockReservations) { + var ret LineItemDataRelationshipsStockReservations + return ret + } + return *o.StockReservations +} + +// GetStockReservationsOk returns a tuple with the StockReservations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuDataRelationships) GetStockReservationsOk() (*LineItemDataRelationshipsStockReservations, bool) { + if o == nil || IsNil(o.StockReservations) { + return nil, false + } + return o.StockReservations, true +} + +// HasStockReservations returns a boolean if a field has been set. +func (o *SkuDataRelationships) HasStockReservations() bool { + if o != nil && !IsNil(o.StockReservations) { + return true + } + + return false +} + +// SetStockReservations gets a reference to the given LineItemDataRelationshipsStockReservations and assigns it to the StockReservations field. +func (o *SkuDataRelationships) SetStockReservations(v LineItemDataRelationshipsStockReservations) { + o.StockReservations = &v +} + // GetDeliveryLeadTimes returns the DeliveryLeadTimes field value if set, zero value otherwise. func (o *SkuDataRelationships) GetDeliveryLeadTimes() ShipmentDataRelationshipsDeliveryLeadTime { if o == nil || IsNil(o.DeliveryLeadTimes) { @@ -205,10 +247,74 @@ func (o *SkuDataRelationships) SetSkuOptions(v LineItemOptionDataRelationshipsSk o.SkuOptions = &v } +// GetSkuListItems returns the SkuListItems field value if set, zero value otherwise. +func (o *SkuDataRelationships) GetSkuListItems() SkuListDataRelationshipsSkuListItems { + if o == nil || IsNil(o.SkuListItems) { + var ret SkuListDataRelationshipsSkuListItems + return ret + } + return *o.SkuListItems +} + +// GetSkuListItemsOk returns a tuple with the SkuListItems field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuDataRelationships) GetSkuListItemsOk() (*SkuListDataRelationshipsSkuListItems, bool) { + if o == nil || IsNil(o.SkuListItems) { + return nil, false + } + return o.SkuListItems, true +} + +// HasSkuListItems returns a boolean if a field has been set. +func (o *SkuDataRelationships) HasSkuListItems() bool { + if o != nil && !IsNil(o.SkuListItems) { + return true + } + + return false +} + +// SetSkuListItems gets a reference to the given SkuListDataRelationshipsSkuListItems and assigns it to the SkuListItems field. +func (o *SkuDataRelationships) SetSkuListItems(v SkuListDataRelationshipsSkuListItems) { + o.SkuListItems = &v +} + +// GetSkuLists returns the SkuLists field value if set, zero value otherwise. +func (o *SkuDataRelationships) GetSkuLists() BundleDataRelationshipsSkuList { + if o == nil || IsNil(o.SkuLists) { + var ret BundleDataRelationshipsSkuList + return ret + } + return *o.SkuLists +} + +// GetSkuListsOk returns a tuple with the SkuLists field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuDataRelationships) GetSkuListsOk() (*BundleDataRelationshipsSkuList, bool) { + if o == nil || IsNil(o.SkuLists) { + return nil, false + } + return o.SkuLists, true +} + +// HasSkuLists returns a boolean if a field has been set. +func (o *SkuDataRelationships) HasSkuLists() bool { + if o != nil && !IsNil(o.SkuLists) { + return true + } + + return false +} + +// SetSkuLists gets a reference to the given BundleDataRelationshipsSkuList and assigns it to the SkuLists field. +func (o *SkuDataRelationships) SetSkuLists(v BundleDataRelationshipsSkuList) { + o.SkuLists = &v +} + // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *SkuDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *SkuDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -216,7 +322,7 @@ func (o *SkuDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsA // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SkuDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *SkuDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -232,11 +338,235 @@ func (o *SkuDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *SkuDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *SkuDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *SkuDataRelationships) GetLinks() OrderDataRelationshipsLinks { + if o == nil || IsNil(o.Links) { + var ret OrderDataRelationshipsLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuDataRelationships) GetLinksOk() (*OrderDataRelationshipsLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *SkuDataRelationships) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given OrderDataRelationshipsLinks and assigns it to the Links field. +func (o *SkuDataRelationships) SetLinks(v OrderDataRelationshipsLinks) { + o.Links = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *SkuDataRelationships) GetEvents() AddressDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret AddressDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *SkuDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *SkuDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *SkuDataRelationships) GetTags() AddressDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *SkuDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressDataRelationshipsTags and assigns it to the Tags field. +func (o *SkuDataRelationships) SetTags(v AddressDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *SkuDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *SkuDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *SkuDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + +// GetJwtCustomer returns the JwtCustomer field value if set, zero value otherwise. +func (o *SkuDataRelationships) GetJwtCustomer() CouponRecipientDataRelationshipsCustomer { + if o == nil || IsNil(o.JwtCustomer) { + var ret CouponRecipientDataRelationshipsCustomer + return ret + } + return *o.JwtCustomer +} + +// GetJwtCustomerOk returns a tuple with the JwtCustomer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuDataRelationships) GetJwtCustomerOk() (*CouponRecipientDataRelationshipsCustomer, bool) { + if o == nil || IsNil(o.JwtCustomer) { + return nil, false + } + return o.JwtCustomer, true +} + +// HasJwtCustomer returns a boolean if a field has been set. +func (o *SkuDataRelationships) HasJwtCustomer() bool { + if o != nil && !IsNil(o.JwtCustomer) { + return true + } + + return false +} + +// SetJwtCustomer gets a reference to the given CouponRecipientDataRelationshipsCustomer and assigns it to the JwtCustomer field. +func (o *SkuDataRelationships) SetJwtCustomer(v CouponRecipientDataRelationshipsCustomer) { + o.JwtCustomer = &v +} + +// GetJwtMarkets returns the JwtMarkets field value if set, zero value otherwise. +func (o *SkuDataRelationships) GetJwtMarkets() AvalaraAccountDataRelationshipsMarkets { + if o == nil || IsNil(o.JwtMarkets) { + var ret AvalaraAccountDataRelationshipsMarkets + return ret + } + return *o.JwtMarkets +} + +// GetJwtMarketsOk returns a tuple with the JwtMarkets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuDataRelationships) GetJwtMarketsOk() (*AvalaraAccountDataRelationshipsMarkets, bool) { + if o == nil || IsNil(o.JwtMarkets) { + return nil, false + } + return o.JwtMarkets, true +} + +// HasJwtMarkets returns a boolean if a field has been set. +func (o *SkuDataRelationships) HasJwtMarkets() bool { + if o != nil && !IsNil(o.JwtMarkets) { + return true + } + + return false +} + +// SetJwtMarkets gets a reference to the given AvalaraAccountDataRelationshipsMarkets and assigns it to the JwtMarkets field. +func (o *SkuDataRelationships) SetJwtMarkets(v AvalaraAccountDataRelationshipsMarkets) { + o.JwtMarkets = &v +} + +// GetJwtStockLocations returns the JwtStockLocations field value if set, zero value otherwise. +func (o *SkuDataRelationships) GetJwtStockLocations() DeliveryLeadTimeDataRelationshipsStockLocation { + if o == nil || IsNil(o.JwtStockLocations) { + var ret DeliveryLeadTimeDataRelationshipsStockLocation + return ret + } + return *o.JwtStockLocations +} + +// GetJwtStockLocationsOk returns a tuple with the JwtStockLocations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuDataRelationships) GetJwtStockLocationsOk() (*DeliveryLeadTimeDataRelationshipsStockLocation, bool) { + if o == nil || IsNil(o.JwtStockLocations) { + return nil, false + } + return o.JwtStockLocations, true +} + +// HasJwtStockLocations returns a boolean if a field has been set. +func (o *SkuDataRelationships) HasJwtStockLocations() bool { + if o != nil && !IsNil(o.JwtStockLocations) { + return true + } + + return false +} + +// SetJwtStockLocations gets a reference to the given DeliveryLeadTimeDataRelationshipsStockLocation and assigns it to the JwtStockLocations field. +func (o *SkuDataRelationships) SetJwtStockLocations(v DeliveryLeadTimeDataRelationshipsStockLocation) { + o.JwtStockLocations = &v +} + func (o SkuDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -256,15 +586,45 @@ func (o SkuDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.StockItems) { toSerialize["stock_items"] = o.StockItems } + if !IsNil(o.StockReservations) { + toSerialize["stock_reservations"] = o.StockReservations + } if !IsNil(o.DeliveryLeadTimes) { toSerialize["delivery_lead_times"] = o.DeliveryLeadTimes } if !IsNil(o.SkuOptions) { toSerialize["sku_options"] = o.SkuOptions } + if !IsNil(o.SkuListItems) { + toSerialize["sku_list_items"] = o.SkuListItems + } + if !IsNil(o.SkuLists) { + toSerialize["sku_lists"] = o.SkuLists + } if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + if !IsNil(o.JwtCustomer) { + toSerialize["jwt_customer"] = o.JwtCustomer + } + if !IsNil(o.JwtMarkets) { + toSerialize["jwt_markets"] = o.JwtMarkets + } + if !IsNil(o.JwtStockLocations) { + toSerialize["jwt_stock_locations"] = o.JwtStockLocations + } return toSerialize, nil } diff --git a/api/model_sku_data_relationships_stock_items.go b/api/model_sku_data_relationships_stock_items.go deleted file mode 100644 index 54e4d49c..00000000 --- a/api/model_sku_data_relationships_stock_items.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the SkuDataRelationshipsStockItems type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &SkuDataRelationshipsStockItems{} - -// SkuDataRelationshipsStockItems struct for SkuDataRelationshipsStockItems -type SkuDataRelationshipsStockItems struct { - Data *SkuDataRelationshipsStockItemsData `json:"data,omitempty"` -} - -// NewSkuDataRelationshipsStockItems instantiates a new SkuDataRelationshipsStockItems object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSkuDataRelationshipsStockItems() *SkuDataRelationshipsStockItems { - this := SkuDataRelationshipsStockItems{} - return &this -} - -// NewSkuDataRelationshipsStockItemsWithDefaults instantiates a new SkuDataRelationshipsStockItems object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSkuDataRelationshipsStockItemsWithDefaults() *SkuDataRelationshipsStockItems { - this := SkuDataRelationshipsStockItems{} - return &this -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *SkuDataRelationshipsStockItems) GetData() SkuDataRelationshipsStockItemsData { - if o == nil || IsNil(o.Data) { - var ret SkuDataRelationshipsStockItemsData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SkuDataRelationshipsStockItems) GetDataOk() (*SkuDataRelationshipsStockItemsData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *SkuDataRelationshipsStockItems) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given SkuDataRelationshipsStockItemsData and assigns it to the Data field. -func (o *SkuDataRelationshipsStockItems) SetData(v SkuDataRelationshipsStockItemsData) { - o.Data = &v -} - -func (o SkuDataRelationshipsStockItems) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o SkuDataRelationshipsStockItems) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableSkuDataRelationshipsStockItems struct { - value *SkuDataRelationshipsStockItems - isSet bool -} - -func (v NullableSkuDataRelationshipsStockItems) Get() *SkuDataRelationshipsStockItems { - return v.value -} - -func (v *NullableSkuDataRelationshipsStockItems) Set(val *SkuDataRelationshipsStockItems) { - v.value = val - v.isSet = true -} - -func (v NullableSkuDataRelationshipsStockItems) IsSet() bool { - return v.isSet -} - -func (v *NullableSkuDataRelationshipsStockItems) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSkuDataRelationshipsStockItems(val *SkuDataRelationshipsStockItems) *NullableSkuDataRelationshipsStockItems { - return &NullableSkuDataRelationshipsStockItems{value: val, isSet: true} -} - -func (v NullableSkuDataRelationshipsStockItems) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSkuDataRelationshipsStockItems) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_sku_list.go b/api/model_sku_list.go index f4e56268..3e8982cf 100644 --- a/api/model_sku_list.go +++ b/api/model_sku_list.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_create.go b/api/model_sku_list_create.go index 042a7062..73e7bbd9 100644 --- a/api/model_sku_list_create.go +++ b/api/model_sku_list_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_create_data.go b/api/model_sku_list_create_data.go index d63478a8..771dce33 100644 --- a/api/model_sku_list_create_data.go +++ b/api/model_sku_list_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_data.go b/api/model_sku_list_data.go index 6fb9fbba..6d2492ff 100644 --- a/api/model_sku_list_data.go +++ b/api/model_sku_list_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_data_relationships.go b/api/model_sku_list_data_relationships.go index 7ae84c59..d2b35f65 100644 --- a/api/model_sku_list_data_relationships.go +++ b/api/model_sku_list_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,11 +20,13 @@ var _ MappedNullable = &SkuListDataRelationships{} // SkuListDataRelationships struct for SkuListDataRelationships type SkuListDataRelationships struct { - Customer *CouponRecipientDataRelationshipsCustomer `json:"customer,omitempty"` - Skus *BundleDataRelationshipsSkus `json:"skus,omitempty"` - SkuListItems *SkuListDataRelationshipsSkuListItems `json:"sku_list_items,omitempty"` - Bundles *OrderDataRelationshipsAvailableFreeBundles `json:"bundles,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Customer *CouponRecipientDataRelationshipsCustomer `json:"customer,omitempty"` + Skus *BundleDataRelationshipsSkus `json:"skus,omitempty"` + SkuListItems *SkuListDataRelationshipsSkuListItems `json:"sku_list_items,omitempty"` + Bundles *LineItemDataRelationshipsBundle `json:"bundles,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Links *OrderDataRelationshipsLinks `json:"links,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewSkuListDataRelationships instantiates a new SkuListDataRelationships object @@ -141,9 +143,9 @@ func (o *SkuListDataRelationships) SetSkuListItems(v SkuListDataRelationshipsSku } // GetBundles returns the Bundles field value if set, zero value otherwise. -func (o *SkuListDataRelationships) GetBundles() OrderDataRelationshipsAvailableFreeBundles { +func (o *SkuListDataRelationships) GetBundles() LineItemDataRelationshipsBundle { if o == nil || IsNil(o.Bundles) { - var ret OrderDataRelationshipsAvailableFreeBundles + var ret LineItemDataRelationshipsBundle return ret } return *o.Bundles @@ -151,7 +153,7 @@ func (o *SkuListDataRelationships) GetBundles() OrderDataRelationshipsAvailableF // GetBundlesOk returns a tuple with the Bundles field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SkuListDataRelationships) GetBundlesOk() (*OrderDataRelationshipsAvailableFreeBundles, bool) { +func (o *SkuListDataRelationships) GetBundlesOk() (*LineItemDataRelationshipsBundle, bool) { if o == nil || IsNil(o.Bundles) { return nil, false } @@ -167,15 +169,15 @@ func (o *SkuListDataRelationships) HasBundles() bool { return false } -// SetBundles gets a reference to the given OrderDataRelationshipsAvailableFreeBundles and assigns it to the Bundles field. -func (o *SkuListDataRelationships) SetBundles(v OrderDataRelationshipsAvailableFreeBundles) { +// SetBundles gets a reference to the given LineItemDataRelationshipsBundle and assigns it to the Bundles field. +func (o *SkuListDataRelationships) SetBundles(v LineItemDataRelationshipsBundle) { o.Bundles = &v } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *SkuListDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *SkuListDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -183,7 +185,7 @@ func (o *SkuListDataRelationships) GetAttachments() AvalaraAccountDataRelationsh // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SkuListDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *SkuListDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -199,11 +201,75 @@ func (o *SkuListDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *SkuListDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *SkuListDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetLinks returns the Links field value if set, zero value otherwise. +func (o *SkuListDataRelationships) GetLinks() OrderDataRelationshipsLinks { + if o == nil || IsNil(o.Links) { + var ret OrderDataRelationshipsLinks + return ret + } + return *o.Links +} + +// GetLinksOk returns a tuple with the Links field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuListDataRelationships) GetLinksOk() (*OrderDataRelationshipsLinks, bool) { + if o == nil || IsNil(o.Links) { + return nil, false + } + return o.Links, true +} + +// HasLinks returns a boolean if a field has been set. +func (o *SkuListDataRelationships) HasLinks() bool { + if o != nil && !IsNil(o.Links) { + return true + } + + return false +} + +// SetLinks gets a reference to the given OrderDataRelationshipsLinks and assigns it to the Links field. +func (o *SkuListDataRelationships) SetLinks(v OrderDataRelationshipsLinks) { + o.Links = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *SkuListDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuListDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *SkuListDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *SkuListDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o SkuListDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -229,6 +295,12 @@ func (o SkuListDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Links) { + toSerialize["links"] = o.Links + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_sku_list_data_relationships_sku_list_items.go b/api/model_sku_list_data_relationships_sku_list_items.go index 9c5ce290..effff1c7 100644 --- a/api/model_sku_list_data_relationships_sku_list_items.go +++ b/api/model_sku_list_data_relationships_sku_list_items.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_data_relationships_sku_list_items_data.go b/api/model_sku_list_data_relationships_sku_list_items_data.go index 7ffbaddd..69907b6c 100644 --- a/api/model_sku_list_data_relationships_sku_list_items_data.go +++ b/api/model_sku_list_data_relationships_sku_list_items_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_item.go b/api/model_sku_list_item.go index fa160d0e..afae22bb 100644 --- a/api/model_sku_list_item.go +++ b/api/model_sku_list_item.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_item_create.go b/api/model_sku_list_item_create.go index b0583795..226be1c7 100644 --- a/api/model_sku_list_item_create.go +++ b/api/model_sku_list_item_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_item_create_data.go b/api/model_sku_list_item_create_data.go index 3852ca73..e328bab2 100644 --- a/api/model_sku_list_item_create_data.go +++ b/api/model_sku_list_item_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_item_create_data_relationships.go b/api/model_sku_list_item_create_data_relationships.go index c379ee7b..0ada0873 100644 --- a/api/model_sku_list_item_create_data_relationships.go +++ b/api/model_sku_list_item_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_item_data.go b/api/model_sku_list_item_data.go index 8d74ddb9..fbb73618 100644 --- a/api/model_sku_list_item_data.go +++ b/api/model_sku_list_item_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_item_data_relationships.go b/api/model_sku_list_item_data_relationships.go index 61bcfd7b..5c9bf630 100644 --- a/api/model_sku_list_item_data_relationships.go +++ b/api/model_sku_list_item_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,8 +20,9 @@ var _ MappedNullable = &SkuListItemDataRelationships{} // SkuListItemDataRelationships struct for SkuListItemDataRelationships type SkuListItemDataRelationships struct { - SkuList *BundleDataRelationshipsSkuList `json:"sku_list,omitempty"` - Sku *BundleDataRelationshipsSkus `json:"sku,omitempty"` + SkuList *BundleDataRelationshipsSkuList `json:"sku_list,omitempty"` + Sku *BundleDataRelationshipsSkus `json:"sku,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewSkuListItemDataRelationships instantiates a new SkuListItemDataRelationships object @@ -105,6 +106,38 @@ func (o *SkuListItemDataRelationships) SetSku(v BundleDataRelationshipsSkus) { o.Sku = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *SkuListItemDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuListItemDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *SkuListItemDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *SkuListItemDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o SkuListItemDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -121,6 +154,9 @@ func (o SkuListItemDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Sku) { toSerialize["sku"] = o.Sku } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_sku_list_item_update.go b/api/model_sku_list_item_update.go index 1dbb95cd..223cd99c 100644 --- a/api/model_sku_list_item_update.go +++ b/api/model_sku_list_item_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_item_update_data.go b/api/model_sku_list_item_update_data.go index 5525cc93..079f067b 100644 --- a/api/model_sku_list_item_update_data.go +++ b/api/model_sku_list_item_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_promotion_rule.go b/api/model_sku_list_promotion_rule.go index 6fef1a9a..00febf3e 100644 --- a/api/model_sku_list_promotion_rule.go +++ b/api/model_sku_list_promotion_rule.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_promotion_rule_create.go b/api/model_sku_list_promotion_rule_create.go index e9d9888a..3c942e4c 100644 --- a/api/model_sku_list_promotion_rule_create.go +++ b/api/model_sku_list_promotion_rule_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_promotion_rule_create_data.go b/api/model_sku_list_promotion_rule_create_data.go index 6186c59e..0f98eb98 100644 --- a/api/model_sku_list_promotion_rule_create_data.go +++ b/api/model_sku_list_promotion_rule_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_promotion_rule_create_data_relationships.go b/api/model_sku_list_promotion_rule_create_data_relationships.go index 8227373a..859db590 100644 --- a/api/model_sku_list_promotion_rule_create_data_relationships.go +++ b/api/model_sku_list_promotion_rule_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_promotion_rule_data.go b/api/model_sku_list_promotion_rule_data.go index 5d086d18..deb502ea 100644 --- a/api/model_sku_list_promotion_rule_data.go +++ b/api/model_sku_list_promotion_rule_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_promotion_rule_data_relationships.go b/api/model_sku_list_promotion_rule_data_relationships.go index cd627137..64faecfa 100644 --- a/api/model_sku_list_promotion_rule_data_relationships.go +++ b/api/model_sku_list_promotion_rule_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &SkuListPromotionRuleDataRelationships{} // SkuListPromotionRuleDataRelationships struct for SkuListPromotionRuleDataRelationships type SkuListPromotionRuleDataRelationships struct { Promotion *CouponCodesPromotionRuleDataRelationshipsPromotion `json:"promotion,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` SkuList *BundleDataRelationshipsSkuList `json:"sku_list,omitempty"` Skus *BundleDataRelationshipsSkus `json:"skus,omitempty"` } @@ -74,6 +75,38 @@ func (o *SkuListPromotionRuleDataRelationships) SetPromotion(v CouponCodesPromot o.Promotion = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *SkuListPromotionRuleDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuListPromotionRuleDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *SkuListPromotionRuleDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *SkuListPromotionRuleDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + // GetSkuList returns the SkuList field value if set, zero value otherwise. func (o *SkuListPromotionRuleDataRelationships) GetSkuList() BundleDataRelationshipsSkuList { if o == nil || IsNil(o.SkuList) { @@ -151,6 +184,9 @@ func (o SkuListPromotionRuleDataRelationships) ToMap() (map[string]interface{}, if !IsNil(o.Promotion) { toSerialize["promotion"] = o.Promotion } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.SkuList) { toSerialize["sku_list"] = o.SkuList } diff --git a/api/model_sku_list_promotion_rule_update.go b/api/model_sku_list_promotion_rule_update.go index 31c9a151..964c6bdd 100644 --- a/api/model_sku_list_promotion_rule_update.go +++ b/api/model_sku_list_promotion_rule_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_promotion_rule_update_data.go b/api/model_sku_list_promotion_rule_update_data.go index a3501e8c..c96bbd90 100644 --- a/api/model_sku_list_promotion_rule_update_data.go +++ b/api/model_sku_list_promotion_rule_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_promotion_rule_update_data_relationships.go b/api/model_sku_list_promotion_rule_update_data_relationships.go index d322872a..f7b69e47 100644 --- a/api/model_sku_list_promotion_rule_update_data_relationships.go +++ b/api/model_sku_list_promotion_rule_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_update.go b/api/model_sku_list_update.go index 88f0d65a..b4155a88 100644 --- a/api/model_sku_list_update.go +++ b/api/model_sku_list_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_list_update_data.go b/api/model_sku_list_update_data.go index 393629db..1c7d70b8 100644 --- a/api/model_sku_list_update_data.go +++ b/api/model_sku_list_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_option.go b/api/model_sku_option.go index feeb7c0f..8e00894a 100644 --- a/api/model_sku_option.go +++ b/api/model_sku_option.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_option_create.go b/api/model_sku_option_create.go index 9c99997a..773a5797 100644 --- a/api/model_sku_option_create.go +++ b/api/model_sku_option_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_option_create_data.go b/api/model_sku_option_create_data.go index 675fd558..fc518288 100644 --- a/api/model_sku_option_create_data.go +++ b/api/model_sku_option_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,9 +21,9 @@ var _ MappedNullable = &SkuOptionCreateData{} // SkuOptionCreateData struct for SkuOptionCreateData type SkuOptionCreateData struct { // The resource's type - Type interface{} `json:"type"` - Attributes POSTSkuOptions201ResponseDataAttributes `json:"attributes"` - Relationships *BillingInfoValidationRuleUpdateDataRelationships `json:"relationships,omitempty"` + Type interface{} `json:"type"` + Attributes POSTSkuOptions201ResponseDataAttributes `json:"attributes"` + Relationships *SkuOptionCreateDataRelationships `json:"relationships,omitempty"` } // NewSkuOptionCreateData instantiates a new SkuOptionCreateData object @@ -96,9 +96,9 @@ func (o *SkuOptionCreateData) SetAttributes(v POSTSkuOptions201ResponseDataAttri } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *SkuOptionCreateData) GetRelationships() BillingInfoValidationRuleUpdateDataRelationships { +func (o *SkuOptionCreateData) GetRelationships() SkuOptionCreateDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret BillingInfoValidationRuleUpdateDataRelationships + var ret SkuOptionCreateDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *SkuOptionCreateData) GetRelationships() BillingInfoValidationRuleUpdate // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SkuOptionCreateData) GetRelationshipsOk() (*BillingInfoValidationRuleUpdateDataRelationships, bool) { +func (o *SkuOptionCreateData) GetRelationshipsOk() (*SkuOptionCreateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *SkuOptionCreateData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given BillingInfoValidationRuleUpdateDataRelationships and assigns it to the Relationships field. -func (o *SkuOptionCreateData) SetRelationships(v BillingInfoValidationRuleUpdateDataRelationships) { +// SetRelationships gets a reference to the given SkuOptionCreateDataRelationships and assigns it to the Relationships field. +func (o *SkuOptionCreateData) SetRelationships(v SkuOptionCreateDataRelationships) { o.Relationships = &v } diff --git a/api/model_sku_option_create_data_relationships.go b/api/model_sku_option_create_data_relationships.go new file mode 100644 index 00000000..b3c256b9 --- /dev/null +++ b/api/model_sku_option_create_data_relationships.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the SkuOptionCreateDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SkuOptionCreateDataRelationships{} + +// SkuOptionCreateDataRelationships struct for SkuOptionCreateDataRelationships +type SkuOptionCreateDataRelationships struct { + Market *BillingInfoValidationRuleCreateDataRelationshipsMarket `json:"market,omitempty"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` +} + +// NewSkuOptionCreateDataRelationships instantiates a new SkuOptionCreateDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSkuOptionCreateDataRelationships() *SkuOptionCreateDataRelationships { + this := SkuOptionCreateDataRelationships{} + return &this +} + +// NewSkuOptionCreateDataRelationshipsWithDefaults instantiates a new SkuOptionCreateDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSkuOptionCreateDataRelationshipsWithDefaults() *SkuOptionCreateDataRelationships { + this := SkuOptionCreateDataRelationships{} + return &this +} + +// GetMarket returns the Market field value if set, zero value otherwise. +func (o *SkuOptionCreateDataRelationships) GetMarket() BillingInfoValidationRuleCreateDataRelationshipsMarket { + if o == nil || IsNil(o.Market) { + var ret BillingInfoValidationRuleCreateDataRelationshipsMarket + return ret + } + return *o.Market +} + +// GetMarketOk returns a tuple with the Market field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuOptionCreateDataRelationships) GetMarketOk() (*BillingInfoValidationRuleCreateDataRelationshipsMarket, bool) { + if o == nil || IsNil(o.Market) { + return nil, false + } + return o.Market, true +} + +// HasMarket returns a boolean if a field has been set. +func (o *SkuOptionCreateDataRelationships) HasMarket() bool { + if o != nil && !IsNil(o.Market) { + return true + } + + return false +} + +// SetMarket gets a reference to the given BillingInfoValidationRuleCreateDataRelationshipsMarket and assigns it to the Market field. +func (o *SkuOptionCreateDataRelationships) SetMarket(v BillingInfoValidationRuleCreateDataRelationshipsMarket) { + o.Market = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *SkuOptionCreateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuOptionCreateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *SkuOptionCreateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *SkuOptionCreateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + +func (o SkuOptionCreateDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SkuOptionCreateDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Market) { + toSerialize["market"] = o.Market + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + return toSerialize, nil +} + +type NullableSkuOptionCreateDataRelationships struct { + value *SkuOptionCreateDataRelationships + isSet bool +} + +func (v NullableSkuOptionCreateDataRelationships) Get() *SkuOptionCreateDataRelationships { + return v.value +} + +func (v *NullableSkuOptionCreateDataRelationships) Set(val *SkuOptionCreateDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableSkuOptionCreateDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableSkuOptionCreateDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSkuOptionCreateDataRelationships(val *SkuOptionCreateDataRelationships) *NullableSkuOptionCreateDataRelationships { + return &NullableSkuOptionCreateDataRelationships{value: val, isSet: true} +} + +func (v NullableSkuOptionCreateDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSkuOptionCreateDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_sku_option_data.go b/api/model_sku_option_data.go index 5ad632f9..32316983 100644 --- a/api/model_sku_option_data.go +++ b/api/model_sku_option_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type SkuOptionData struct { // The resource's type Type interface{} `json:"type"` Attributes GETSkuOptionsSkuOptionId200ResponseDataAttributes `json:"attributes"` - Relationships *BillingInfoValidationRuleDataRelationships `json:"relationships,omitempty"` + Relationships *SkuOptionDataRelationships `json:"relationships,omitempty"` } // NewSkuOptionData instantiates a new SkuOptionData object @@ -96,9 +96,9 @@ func (o *SkuOptionData) SetAttributes(v GETSkuOptionsSkuOptionId200ResponseDataA } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *SkuOptionData) GetRelationships() BillingInfoValidationRuleDataRelationships { +func (o *SkuOptionData) GetRelationships() SkuOptionDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret BillingInfoValidationRuleDataRelationships + var ret SkuOptionDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *SkuOptionData) GetRelationships() BillingInfoValidationRuleDataRelation // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SkuOptionData) GetRelationshipsOk() (*BillingInfoValidationRuleDataRelationships, bool) { +func (o *SkuOptionData) GetRelationshipsOk() (*SkuOptionDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *SkuOptionData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given BillingInfoValidationRuleDataRelationships and assigns it to the Relationships field. -func (o *SkuOptionData) SetRelationships(v BillingInfoValidationRuleDataRelationships) { +// SetRelationships gets a reference to the given SkuOptionDataRelationships and assigns it to the Relationships field. +func (o *SkuOptionData) SetRelationships(v SkuOptionDataRelationships) { o.Relationships = &v } diff --git a/api/model_sku_option_data_relationships.go b/api/model_sku_option_data_relationships.go new file mode 100644 index 00000000..a2871e81 --- /dev/null +++ b/api/model_sku_option_data_relationships.go @@ -0,0 +1,269 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the SkuOptionDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SkuOptionDataRelationships{} + +// SkuOptionDataRelationships struct for SkuOptionDataRelationships +type SkuOptionDataRelationships struct { + Market *AvalaraAccountDataRelationshipsMarkets `json:"market,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Tags *AddressDataRelationshipsTags `json:"tags,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewSkuOptionDataRelationships instantiates a new SkuOptionDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSkuOptionDataRelationships() *SkuOptionDataRelationships { + this := SkuOptionDataRelationships{} + return &this +} + +// NewSkuOptionDataRelationshipsWithDefaults instantiates a new SkuOptionDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSkuOptionDataRelationshipsWithDefaults() *SkuOptionDataRelationships { + this := SkuOptionDataRelationships{} + return &this +} + +// GetMarket returns the Market field value if set, zero value otherwise. +func (o *SkuOptionDataRelationships) GetMarket() AvalaraAccountDataRelationshipsMarkets { + if o == nil || IsNil(o.Market) { + var ret AvalaraAccountDataRelationshipsMarkets + return ret + } + return *o.Market +} + +// GetMarketOk returns a tuple with the Market field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuOptionDataRelationships) GetMarketOk() (*AvalaraAccountDataRelationshipsMarkets, bool) { + if o == nil || IsNil(o.Market) { + return nil, false + } + return o.Market, true +} + +// HasMarket returns a boolean if a field has been set. +func (o *SkuOptionDataRelationships) HasMarket() bool { + if o != nil && !IsNil(o.Market) { + return true + } + + return false +} + +// SetMarket gets a reference to the given AvalaraAccountDataRelationshipsMarkets and assigns it to the Market field. +func (o *SkuOptionDataRelationships) SetMarket(v AvalaraAccountDataRelationshipsMarkets) { + o.Market = &v +} + +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *SkuOptionDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret AuthorizationDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuOptionDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *SkuOptionDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *SkuOptionDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { + o.Attachments = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *SkuOptionDataRelationships) GetEvents() AddressDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret AddressDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuOptionDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *SkuOptionDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *SkuOptionDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { + o.Events = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *SkuOptionDataRelationships) GetTags() AddressDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuOptionDataRelationships) GetTagsOk() (*AddressDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *SkuOptionDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressDataRelationshipsTags and assigns it to the Tags field. +func (o *SkuOptionDataRelationships) SetTags(v AddressDataRelationshipsTags) { + o.Tags = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *SkuOptionDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuOptionDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *SkuOptionDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *SkuOptionDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + +func (o SkuOptionDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SkuOptionDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Market) { + toSerialize["market"] = o.Market + } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullableSkuOptionDataRelationships struct { + value *SkuOptionDataRelationships + isSet bool +} + +func (v NullableSkuOptionDataRelationships) Get() *SkuOptionDataRelationships { + return v.value +} + +func (v *NullableSkuOptionDataRelationships) Set(val *SkuOptionDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableSkuOptionDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableSkuOptionDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSkuOptionDataRelationships(val *SkuOptionDataRelationships) *NullableSkuOptionDataRelationships { + return &NullableSkuOptionDataRelationships{value: val, isSet: true} +} + +func (v NullableSkuOptionDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSkuOptionDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_sku_option_update.go b/api/model_sku_option_update.go index a0433f6e..78ae87c7 100644 --- a/api/model_sku_option_update.go +++ b/api/model_sku_option_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_option_update_data.go b/api/model_sku_option_update_data.go index beec0cf9..4cae80cd 100644 --- a/api/model_sku_option_update_data.go +++ b/api/model_sku_option_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -25,7 +25,7 @@ type SkuOptionUpdateData struct { // The resource's id Id interface{} `json:"id"` Attributes PATCHSkuOptionsSkuOptionId200ResponseDataAttributes `json:"attributes"` - Relationships *BillingInfoValidationRuleUpdateDataRelationships `json:"relationships,omitempty"` + Relationships *SkuOptionCreateDataRelationships `json:"relationships,omitempty"` } // NewSkuOptionUpdateData instantiates a new SkuOptionUpdateData object @@ -125,9 +125,9 @@ func (o *SkuOptionUpdateData) SetAttributes(v PATCHSkuOptionsSkuOptionId200Respo } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *SkuOptionUpdateData) GetRelationships() BillingInfoValidationRuleUpdateDataRelationships { +func (o *SkuOptionUpdateData) GetRelationships() SkuOptionCreateDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret BillingInfoValidationRuleUpdateDataRelationships + var ret SkuOptionCreateDataRelationships return ret } return *o.Relationships @@ -135,7 +135,7 @@ func (o *SkuOptionUpdateData) GetRelationships() BillingInfoValidationRuleUpdate // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SkuOptionUpdateData) GetRelationshipsOk() (*BillingInfoValidationRuleUpdateDataRelationships, bool) { +func (o *SkuOptionUpdateData) GetRelationshipsOk() (*SkuOptionCreateDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -151,8 +151,8 @@ func (o *SkuOptionUpdateData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given BillingInfoValidationRuleUpdateDataRelationships and assigns it to the Relationships field. -func (o *SkuOptionUpdateData) SetRelationships(v BillingInfoValidationRuleUpdateDataRelationships) { +// SetRelationships gets a reference to the given SkuOptionCreateDataRelationships and assigns it to the Relationships field. +func (o *SkuOptionUpdateData) SetRelationships(v SkuOptionCreateDataRelationships) { o.Relationships = &v } diff --git a/api/model_sku_update.go b/api/model_sku_update.go index ebc9ad45..8b459e61 100644 --- a/api/model_sku_update.go +++ b/api/model_sku_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_update_data.go b/api/model_sku_update_data.go index 68c896ab..99e7e38b 100644 --- a/api/model_sku_update_data.go +++ b/api/model_sku_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_sku_update_data_relationships.go b/api/model_sku_update_data_relationships.go index 0b4bf33e..23be6cc3 100644 --- a/api/model_sku_update_data_relationships.go +++ b/api/model_sku_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,8 @@ var _ MappedNullable = &SkuUpdateDataRelationships{} // SkuUpdateDataRelationships struct for SkuUpdateDataRelationships type SkuUpdateDataRelationships struct { - ShippingCategory *ShippingMethodCreateDataRelationshipsShippingCategory `json:"shipping_category,omitempty"` + ShippingCategory *ShipmentCreateDataRelationshipsShippingCategory `json:"shipping_category,omitempty"` + Tags *AddressCreateDataRelationshipsTags `json:"tags,omitempty"` } // NewSkuUpdateDataRelationships instantiates a new SkuUpdateDataRelationships object @@ -41,9 +42,9 @@ func NewSkuUpdateDataRelationshipsWithDefaults() *SkuUpdateDataRelationships { } // GetShippingCategory returns the ShippingCategory field value if set, zero value otherwise. -func (o *SkuUpdateDataRelationships) GetShippingCategory() ShippingMethodCreateDataRelationshipsShippingCategory { +func (o *SkuUpdateDataRelationships) GetShippingCategory() ShipmentCreateDataRelationshipsShippingCategory { if o == nil || IsNil(o.ShippingCategory) { - var ret ShippingMethodCreateDataRelationshipsShippingCategory + var ret ShipmentCreateDataRelationshipsShippingCategory return ret } return *o.ShippingCategory @@ -51,7 +52,7 @@ func (o *SkuUpdateDataRelationships) GetShippingCategory() ShippingMethodCreateD // GetShippingCategoryOk returns a tuple with the ShippingCategory field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SkuUpdateDataRelationships) GetShippingCategoryOk() (*ShippingMethodCreateDataRelationshipsShippingCategory, bool) { +func (o *SkuUpdateDataRelationships) GetShippingCategoryOk() (*ShipmentCreateDataRelationshipsShippingCategory, bool) { if o == nil || IsNil(o.ShippingCategory) { return nil, false } @@ -67,11 +68,43 @@ func (o *SkuUpdateDataRelationships) HasShippingCategory() bool { return false } -// SetShippingCategory gets a reference to the given ShippingMethodCreateDataRelationshipsShippingCategory and assigns it to the ShippingCategory field. -func (o *SkuUpdateDataRelationships) SetShippingCategory(v ShippingMethodCreateDataRelationshipsShippingCategory) { +// SetShippingCategory gets a reference to the given ShipmentCreateDataRelationshipsShippingCategory and assigns it to the ShippingCategory field. +func (o *SkuUpdateDataRelationships) SetShippingCategory(v ShipmentCreateDataRelationshipsShippingCategory) { o.ShippingCategory = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *SkuUpdateDataRelationships) GetTags() AddressCreateDataRelationshipsTags { + if o == nil || IsNil(o.Tags) { + var ret AddressCreateDataRelationshipsTags + return ret + } + return *o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SkuUpdateDataRelationships) GetTagsOk() (*AddressCreateDataRelationshipsTags, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *SkuUpdateDataRelationships) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given AddressCreateDataRelationshipsTags and assigns it to the Tags field. +func (o *SkuUpdateDataRelationships) SetTags(v AddressCreateDataRelationshipsTags) { + o.Tags = &v +} + func (o SkuUpdateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +118,9 @@ func (o SkuUpdateDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.ShippingCategory) { toSerialize["shipping_category"] = o.ShippingCategory } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } return toSerialize, nil } diff --git a/api/model_stock_item.go b/api/model_stock_item.go index 1d01cb8f..cc2cdcfc 100644 --- a/api/model_stock_item.go +++ b/api/model_stock_item.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_item_create.go b/api/model_stock_item_create.go index 46566cc8..dd67417c 100644 --- a/api/model_stock_item_create.go +++ b/api/model_stock_item_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_item_create_data.go b/api/model_stock_item_create_data.go index 0c9df62a..14935001 100644 --- a/api/model_stock_item_create_data.go +++ b/api/model_stock_item_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_item_create_data_relationships.go b/api/model_stock_item_create_data_relationships.go index 7f2fcb78..ac5a3b3f 100644 --- a/api/model_stock_item_create_data_relationships.go +++ b/api/model_stock_item_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_item_data.go b/api/model_stock_item_data.go index 641ee93f..b204d75c 100644 --- a/api/model_stock_item_data.go +++ b/api/model_stock_item_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_item_data_relationships.go b/api/model_stock_item_data_relationships.go index f2817fa6..253299f7 100644 --- a/api/model_stock_item_data_relationships.go +++ b/api/model_stock_item_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,12 @@ var _ MappedNullable = &StockItemDataRelationships{} // StockItemDataRelationships struct for StockItemDataRelationships type StockItemDataRelationships struct { - StockLocation *DeliveryLeadTimeDataRelationshipsStockLocation `json:"stock_location,omitempty"` - Sku *BundleDataRelationshipsSkus `json:"sku,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + StockLocation *DeliveryLeadTimeDataRelationshipsStockLocation `json:"stock_location,omitempty"` + Sku *BundleDataRelationshipsSkus `json:"sku,omitempty"` + ReservedStock *StockItemDataRelationshipsReservedStock `json:"reserved_stock,omitempty"` + StockReservations *LineItemDataRelationshipsStockReservations `json:"stock_reservations,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewStockItemDataRelationships instantiates a new StockItemDataRelationships object @@ -106,10 +109,74 @@ func (o *StockItemDataRelationships) SetSku(v BundleDataRelationshipsSkus) { o.Sku = &v } +// GetReservedStock returns the ReservedStock field value if set, zero value otherwise. +func (o *StockItemDataRelationships) GetReservedStock() StockItemDataRelationshipsReservedStock { + if o == nil || IsNil(o.ReservedStock) { + var ret StockItemDataRelationshipsReservedStock + return ret + } + return *o.ReservedStock +} + +// GetReservedStockOk returns a tuple with the ReservedStock field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockItemDataRelationships) GetReservedStockOk() (*StockItemDataRelationshipsReservedStock, bool) { + if o == nil || IsNil(o.ReservedStock) { + return nil, false + } + return o.ReservedStock, true +} + +// HasReservedStock returns a boolean if a field has been set. +func (o *StockItemDataRelationships) HasReservedStock() bool { + if o != nil && !IsNil(o.ReservedStock) { + return true + } + + return false +} + +// SetReservedStock gets a reference to the given StockItemDataRelationshipsReservedStock and assigns it to the ReservedStock field. +func (o *StockItemDataRelationships) SetReservedStock(v StockItemDataRelationshipsReservedStock) { + o.ReservedStock = &v +} + +// GetStockReservations returns the StockReservations field value if set, zero value otherwise. +func (o *StockItemDataRelationships) GetStockReservations() LineItemDataRelationshipsStockReservations { + if o == nil || IsNil(o.StockReservations) { + var ret LineItemDataRelationshipsStockReservations + return ret + } + return *o.StockReservations +} + +// GetStockReservationsOk returns a tuple with the StockReservations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockItemDataRelationships) GetStockReservationsOk() (*LineItemDataRelationshipsStockReservations, bool) { + if o == nil || IsNil(o.StockReservations) { + return nil, false + } + return o.StockReservations, true +} + +// HasStockReservations returns a boolean if a field has been set. +func (o *StockItemDataRelationships) HasStockReservations() bool { + if o != nil && !IsNil(o.StockReservations) { + return true + } + + return false +} + +// SetStockReservations gets a reference to the given LineItemDataRelationshipsStockReservations and assigns it to the StockReservations field. +func (o *StockItemDataRelationships) SetStockReservations(v LineItemDataRelationshipsStockReservations) { + o.StockReservations = &v +} + // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *StockItemDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *StockItemDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -117,7 +184,7 @@ func (o *StockItemDataRelationships) GetAttachments() AvalaraAccountDataRelation // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *StockItemDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *StockItemDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -133,11 +200,43 @@ func (o *StockItemDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *StockItemDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *StockItemDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *StockItemDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockItemDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *StockItemDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *StockItemDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o StockItemDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -154,9 +253,18 @@ func (o StockItemDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Sku) { toSerialize["sku"] = o.Sku } + if !IsNil(o.ReservedStock) { + toSerialize["reserved_stock"] = o.ReservedStock + } + if !IsNil(o.StockReservations) { + toSerialize["stock_reservations"] = o.StockReservations + } if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_stock_item_data_relationships_reserved_stock.go b/api/model_stock_item_data_relationships_reserved_stock.go new file mode 100644 index 00000000..8043b68b --- /dev/null +++ b/api/model_stock_item_data_relationships_reserved_stock.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the StockItemDataRelationshipsReservedStock type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StockItemDataRelationshipsReservedStock{} + +// StockItemDataRelationshipsReservedStock struct for StockItemDataRelationshipsReservedStock +type StockItemDataRelationshipsReservedStock struct { + Data *StockItemDataRelationshipsReservedStockData `json:"data,omitempty"` +} + +// NewStockItemDataRelationshipsReservedStock instantiates a new StockItemDataRelationshipsReservedStock object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStockItemDataRelationshipsReservedStock() *StockItemDataRelationshipsReservedStock { + this := StockItemDataRelationshipsReservedStock{} + return &this +} + +// NewStockItemDataRelationshipsReservedStockWithDefaults instantiates a new StockItemDataRelationshipsReservedStock object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStockItemDataRelationshipsReservedStockWithDefaults() *StockItemDataRelationshipsReservedStock { + this := StockItemDataRelationshipsReservedStock{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *StockItemDataRelationshipsReservedStock) GetData() StockItemDataRelationshipsReservedStockData { + if o == nil || IsNil(o.Data) { + var ret StockItemDataRelationshipsReservedStockData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockItemDataRelationshipsReservedStock) GetDataOk() (*StockItemDataRelationshipsReservedStockData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *StockItemDataRelationshipsReservedStock) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given StockItemDataRelationshipsReservedStockData and assigns it to the Data field. +func (o *StockItemDataRelationshipsReservedStock) SetData(v StockItemDataRelationshipsReservedStockData) { + o.Data = &v +} + +func (o StockItemDataRelationshipsReservedStock) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StockItemDataRelationshipsReservedStock) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableStockItemDataRelationshipsReservedStock struct { + value *StockItemDataRelationshipsReservedStock + isSet bool +} + +func (v NullableStockItemDataRelationshipsReservedStock) Get() *StockItemDataRelationshipsReservedStock { + return v.value +} + +func (v *NullableStockItemDataRelationshipsReservedStock) Set(val *StockItemDataRelationshipsReservedStock) { + v.value = val + v.isSet = true +} + +func (v NullableStockItemDataRelationshipsReservedStock) IsSet() bool { + return v.isSet +} + +func (v *NullableStockItemDataRelationshipsReservedStock) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStockItemDataRelationshipsReservedStock(val *StockItemDataRelationshipsReservedStock) *NullableStockItemDataRelationshipsReservedStock { + return &NullableStockItemDataRelationshipsReservedStock{value: val, isSet: true} +} + +func (v NullableStockItemDataRelationshipsReservedStock) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStockItemDataRelationshipsReservedStock) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_stock_item_data_relationships_reserved_stock_data.go b/api/model_stock_item_data_relationships_reserved_stock_data.go new file mode 100644 index 00000000..800b9913 --- /dev/null +++ b/api/model_stock_item_data_relationships_reserved_stock_data.go @@ -0,0 +1,165 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the StockItemDataRelationshipsReservedStockData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StockItemDataRelationshipsReservedStockData{} + +// StockItemDataRelationshipsReservedStockData struct for StockItemDataRelationshipsReservedStockData +type StockItemDataRelationshipsReservedStockData struct { + // The resource's type + Type interface{} `json:"type,omitempty"` + // The resource's id + Id interface{} `json:"id,omitempty"` +} + +// NewStockItemDataRelationshipsReservedStockData instantiates a new StockItemDataRelationshipsReservedStockData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStockItemDataRelationshipsReservedStockData() *StockItemDataRelationshipsReservedStockData { + this := StockItemDataRelationshipsReservedStockData{} + return &this +} + +// NewStockItemDataRelationshipsReservedStockDataWithDefaults instantiates a new StockItemDataRelationshipsReservedStockData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStockItemDataRelationshipsReservedStockDataWithDefaults() *StockItemDataRelationshipsReservedStockData { + this := StockItemDataRelationshipsReservedStockData{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *StockItemDataRelationshipsReservedStockData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *StockItemDataRelationshipsReservedStockData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *StockItemDataRelationshipsReservedStockData) HasType() bool { + if o != nil && IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given interface{} and assigns it to the Type field. +func (o *StockItemDataRelationshipsReservedStockData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *StockItemDataRelationshipsReservedStockData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *StockItemDataRelationshipsReservedStockData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *StockItemDataRelationshipsReservedStockData) HasId() bool { + if o != nil && IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given interface{} and assigns it to the Id field. +func (o *StockItemDataRelationshipsReservedStockData) SetId(v interface{}) { + o.Id = v +} + +func (o StockItemDataRelationshipsReservedStockData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StockItemDataRelationshipsReservedStockData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + return toSerialize, nil +} + +type NullableStockItemDataRelationshipsReservedStockData struct { + value *StockItemDataRelationshipsReservedStockData + isSet bool +} + +func (v NullableStockItemDataRelationshipsReservedStockData) Get() *StockItemDataRelationshipsReservedStockData { + return v.value +} + +func (v *NullableStockItemDataRelationshipsReservedStockData) Set(val *StockItemDataRelationshipsReservedStockData) { + v.value = val + v.isSet = true +} + +func (v NullableStockItemDataRelationshipsReservedStockData) IsSet() bool { + return v.isSet +} + +func (v *NullableStockItemDataRelationshipsReservedStockData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStockItemDataRelationshipsReservedStockData(val *StockItemDataRelationshipsReservedStockData) *NullableStockItemDataRelationshipsReservedStockData { + return &NullableStockItemDataRelationshipsReservedStockData{value: val, isSet: true} +} + +func (v NullableStockItemDataRelationshipsReservedStockData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStockItemDataRelationshipsReservedStockData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_stock_item_update.go b/api/model_stock_item_update.go index a572f15d..f4114fa7 100644 --- a/api/model_stock_item_update.go +++ b/api/model_stock_item_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_item_update_data.go b/api/model_stock_item_update_data.go index a949b884..3ed2afca 100644 --- a/api/model_stock_item_update_data.go +++ b/api/model_stock_item_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_item_update_data_relationships.go b/api/model_stock_item_update_data_relationships.go index 079c5349..bbd72218 100644 --- a/api/model_stock_item_update_data_relationships.go +++ b/api/model_stock_item_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_line_item.go b/api/model_stock_line_item.go index dcb34291..6edbaefb 100644 --- a/api/model_stock_line_item.go +++ b/api/model_stock_line_item.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_line_item_create.go b/api/model_stock_line_item_create.go new file mode 100644 index 00000000..10c7c3ef --- /dev/null +++ b/api/model_stock_line_item_create.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the StockLineItemCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StockLineItemCreate{} + +// StockLineItemCreate struct for StockLineItemCreate +type StockLineItemCreate struct { + Data StockLineItemCreateData `json:"data"` +} + +// NewStockLineItemCreate instantiates a new StockLineItemCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStockLineItemCreate(data StockLineItemCreateData) *StockLineItemCreate { + this := StockLineItemCreate{} + this.Data = data + return &this +} + +// NewStockLineItemCreateWithDefaults instantiates a new StockLineItemCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStockLineItemCreateWithDefaults() *StockLineItemCreate { + this := StockLineItemCreate{} + return &this +} + +// GetData returns the Data field value +func (o *StockLineItemCreate) GetData() StockLineItemCreateData { + if o == nil { + var ret StockLineItemCreateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *StockLineItemCreate) GetDataOk() (*StockLineItemCreateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *StockLineItemCreate) SetData(v StockLineItemCreateData) { + o.Data = v +} + +func (o StockLineItemCreate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StockLineItemCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableStockLineItemCreate struct { + value *StockLineItemCreate + isSet bool +} + +func (v NullableStockLineItemCreate) Get() *StockLineItemCreate { + return v.value +} + +func (v *NullableStockLineItemCreate) Set(val *StockLineItemCreate) { + v.value = val + v.isSet = true +} + +func (v NullableStockLineItemCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableStockLineItemCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStockLineItemCreate(val *StockLineItemCreate) *NullableStockLineItemCreate { + return &NullableStockLineItemCreate{value: val, isSet: true} +} + +func (v NullableStockLineItemCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStockLineItemCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_stock_line_item_create_data.go b/api/model_stock_line_item_create_data.go new file mode 100644 index 00000000..235f533c --- /dev/null +++ b/api/model_stock_line_item_create_data.go @@ -0,0 +1,184 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the StockLineItemCreateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StockLineItemCreateData{} + +// StockLineItemCreateData struct for StockLineItemCreateData +type StockLineItemCreateData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes POSTStockLineItems201ResponseDataAttributes `json:"attributes"` + Relationships *StockLineItemCreateDataRelationships `json:"relationships,omitempty"` +} + +// NewStockLineItemCreateData instantiates a new StockLineItemCreateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStockLineItemCreateData(type_ interface{}, attributes POSTStockLineItems201ResponseDataAttributes) *StockLineItemCreateData { + this := StockLineItemCreateData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewStockLineItemCreateDataWithDefaults instantiates a new StockLineItemCreateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStockLineItemCreateDataWithDefaults() *StockLineItemCreateData { + this := StockLineItemCreateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *StockLineItemCreateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *StockLineItemCreateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *StockLineItemCreateData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *StockLineItemCreateData) GetAttributes() POSTStockLineItems201ResponseDataAttributes { + if o == nil { + var ret POSTStockLineItems201ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *StockLineItemCreateData) GetAttributesOk() (*POSTStockLineItems201ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *StockLineItemCreateData) SetAttributes(v POSTStockLineItems201ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *StockLineItemCreateData) GetRelationships() StockLineItemCreateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret StockLineItemCreateDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockLineItemCreateData) GetRelationshipsOk() (*StockLineItemCreateDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *StockLineItemCreateData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given StockLineItemCreateDataRelationships and assigns it to the Relationships field. +func (o *StockLineItemCreateData) SetRelationships(v StockLineItemCreateDataRelationships) { + o.Relationships = &v +} + +func (o StockLineItemCreateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StockLineItemCreateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableStockLineItemCreateData struct { + value *StockLineItemCreateData + isSet bool +} + +func (v NullableStockLineItemCreateData) Get() *StockLineItemCreateData { + return v.value +} + +func (v *NullableStockLineItemCreateData) Set(val *StockLineItemCreateData) { + v.value = val + v.isSet = true +} + +func (v NullableStockLineItemCreateData) IsSet() bool { + return v.isSet +} + +func (v *NullableStockLineItemCreateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStockLineItemCreateData(val *StockLineItemCreateData) *NullableStockLineItemCreateData { + return &NullableStockLineItemCreateData{value: val, isSet: true} +} + +func (v NullableStockLineItemCreateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStockLineItemCreateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_stock_line_item_create_data_relationships.go b/api/model_stock_line_item_create_data_relationships.go new file mode 100644 index 00000000..221c28dd --- /dev/null +++ b/api/model_stock_line_item_create_data_relationships.go @@ -0,0 +1,233 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the StockLineItemCreateDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StockLineItemCreateDataRelationships{} + +// StockLineItemCreateDataRelationships struct for StockLineItemCreateDataRelationships +type StockLineItemCreateDataRelationships struct { + Shipment *ParcelCreateDataRelationshipsShipment `json:"shipment,omitempty"` + LineItem *LineItemOptionCreateDataRelationshipsLineItem `json:"line_item,omitempty"` + StockItem *StockLineItemCreateDataRelationshipsStockItem `json:"stock_item,omitempty"` + Sku *InStockSubscriptionCreateDataRelationshipsSku `json:"sku,omitempty"` +} + +// NewStockLineItemCreateDataRelationships instantiates a new StockLineItemCreateDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStockLineItemCreateDataRelationships() *StockLineItemCreateDataRelationships { + this := StockLineItemCreateDataRelationships{} + return &this +} + +// NewStockLineItemCreateDataRelationshipsWithDefaults instantiates a new StockLineItemCreateDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStockLineItemCreateDataRelationshipsWithDefaults() *StockLineItemCreateDataRelationships { + this := StockLineItemCreateDataRelationships{} + return &this +} + +// GetShipment returns the Shipment field value if set, zero value otherwise. +func (o *StockLineItemCreateDataRelationships) GetShipment() ParcelCreateDataRelationshipsShipment { + if o == nil || IsNil(o.Shipment) { + var ret ParcelCreateDataRelationshipsShipment + return ret + } + return *o.Shipment +} + +// GetShipmentOk returns a tuple with the Shipment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockLineItemCreateDataRelationships) GetShipmentOk() (*ParcelCreateDataRelationshipsShipment, bool) { + if o == nil || IsNil(o.Shipment) { + return nil, false + } + return o.Shipment, true +} + +// HasShipment returns a boolean if a field has been set. +func (o *StockLineItemCreateDataRelationships) HasShipment() bool { + if o != nil && !IsNil(o.Shipment) { + return true + } + + return false +} + +// SetShipment gets a reference to the given ParcelCreateDataRelationshipsShipment and assigns it to the Shipment field. +func (o *StockLineItemCreateDataRelationships) SetShipment(v ParcelCreateDataRelationshipsShipment) { + o.Shipment = &v +} + +// GetLineItem returns the LineItem field value if set, zero value otherwise. +func (o *StockLineItemCreateDataRelationships) GetLineItem() LineItemOptionCreateDataRelationshipsLineItem { + if o == nil || IsNil(o.LineItem) { + var ret LineItemOptionCreateDataRelationshipsLineItem + return ret + } + return *o.LineItem +} + +// GetLineItemOk returns a tuple with the LineItem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockLineItemCreateDataRelationships) GetLineItemOk() (*LineItemOptionCreateDataRelationshipsLineItem, bool) { + if o == nil || IsNil(o.LineItem) { + return nil, false + } + return o.LineItem, true +} + +// HasLineItem returns a boolean if a field has been set. +func (o *StockLineItemCreateDataRelationships) HasLineItem() bool { + if o != nil && !IsNil(o.LineItem) { + return true + } + + return false +} + +// SetLineItem gets a reference to the given LineItemOptionCreateDataRelationshipsLineItem and assigns it to the LineItem field. +func (o *StockLineItemCreateDataRelationships) SetLineItem(v LineItemOptionCreateDataRelationshipsLineItem) { + o.LineItem = &v +} + +// GetStockItem returns the StockItem field value if set, zero value otherwise. +func (o *StockLineItemCreateDataRelationships) GetStockItem() StockLineItemCreateDataRelationshipsStockItem { + if o == nil || IsNil(o.StockItem) { + var ret StockLineItemCreateDataRelationshipsStockItem + return ret + } + return *o.StockItem +} + +// GetStockItemOk returns a tuple with the StockItem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockLineItemCreateDataRelationships) GetStockItemOk() (*StockLineItemCreateDataRelationshipsStockItem, bool) { + if o == nil || IsNil(o.StockItem) { + return nil, false + } + return o.StockItem, true +} + +// HasStockItem returns a boolean if a field has been set. +func (o *StockLineItemCreateDataRelationships) HasStockItem() bool { + if o != nil && !IsNil(o.StockItem) { + return true + } + + return false +} + +// SetStockItem gets a reference to the given StockLineItemCreateDataRelationshipsStockItem and assigns it to the StockItem field. +func (o *StockLineItemCreateDataRelationships) SetStockItem(v StockLineItemCreateDataRelationshipsStockItem) { + o.StockItem = &v +} + +// GetSku returns the Sku field value if set, zero value otherwise. +func (o *StockLineItemCreateDataRelationships) GetSku() InStockSubscriptionCreateDataRelationshipsSku { + if o == nil || IsNil(o.Sku) { + var ret InStockSubscriptionCreateDataRelationshipsSku + return ret + } + return *o.Sku +} + +// GetSkuOk returns a tuple with the Sku field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockLineItemCreateDataRelationships) GetSkuOk() (*InStockSubscriptionCreateDataRelationshipsSku, bool) { + if o == nil || IsNil(o.Sku) { + return nil, false + } + return o.Sku, true +} + +// HasSku returns a boolean if a field has been set. +func (o *StockLineItemCreateDataRelationships) HasSku() bool { + if o != nil && !IsNil(o.Sku) { + return true + } + + return false +} + +// SetSku gets a reference to the given InStockSubscriptionCreateDataRelationshipsSku and assigns it to the Sku field. +func (o *StockLineItemCreateDataRelationships) SetSku(v InStockSubscriptionCreateDataRelationshipsSku) { + o.Sku = &v +} + +func (o StockLineItemCreateDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StockLineItemCreateDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Shipment) { + toSerialize["shipment"] = o.Shipment + } + if !IsNil(o.LineItem) { + toSerialize["line_item"] = o.LineItem + } + if !IsNil(o.StockItem) { + toSerialize["stock_item"] = o.StockItem + } + if !IsNil(o.Sku) { + toSerialize["sku"] = o.Sku + } + return toSerialize, nil +} + +type NullableStockLineItemCreateDataRelationships struct { + value *StockLineItemCreateDataRelationships + isSet bool +} + +func (v NullableStockLineItemCreateDataRelationships) Get() *StockLineItemCreateDataRelationships { + return v.value +} + +func (v *NullableStockLineItemCreateDataRelationships) Set(val *StockLineItemCreateDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableStockLineItemCreateDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableStockLineItemCreateDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStockLineItemCreateDataRelationships(val *StockLineItemCreateDataRelationships) *NullableStockLineItemCreateDataRelationships { + return &NullableStockLineItemCreateDataRelationships{value: val, isSet: true} +} + +func (v NullableStockLineItemCreateDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStockLineItemCreateDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_stock_line_item_create_data_relationships_stock_item.go b/api/model_stock_line_item_create_data_relationships_stock_item.go new file mode 100644 index 00000000..fcf0ef98 --- /dev/null +++ b/api/model_stock_line_item_create_data_relationships_stock_item.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the StockLineItemCreateDataRelationshipsStockItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StockLineItemCreateDataRelationshipsStockItem{} + +// StockLineItemCreateDataRelationshipsStockItem struct for StockLineItemCreateDataRelationshipsStockItem +type StockLineItemCreateDataRelationshipsStockItem struct { + Data ReservedStockDataRelationshipsStockItemData `json:"data"` +} + +// NewStockLineItemCreateDataRelationshipsStockItem instantiates a new StockLineItemCreateDataRelationshipsStockItem object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStockLineItemCreateDataRelationshipsStockItem(data ReservedStockDataRelationshipsStockItemData) *StockLineItemCreateDataRelationshipsStockItem { + this := StockLineItemCreateDataRelationshipsStockItem{} + this.Data = data + return &this +} + +// NewStockLineItemCreateDataRelationshipsStockItemWithDefaults instantiates a new StockLineItemCreateDataRelationshipsStockItem object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStockLineItemCreateDataRelationshipsStockItemWithDefaults() *StockLineItemCreateDataRelationshipsStockItem { + this := StockLineItemCreateDataRelationshipsStockItem{} + return &this +} + +// GetData returns the Data field value +func (o *StockLineItemCreateDataRelationshipsStockItem) GetData() ReservedStockDataRelationshipsStockItemData { + if o == nil { + var ret ReservedStockDataRelationshipsStockItemData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *StockLineItemCreateDataRelationshipsStockItem) GetDataOk() (*ReservedStockDataRelationshipsStockItemData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *StockLineItemCreateDataRelationshipsStockItem) SetData(v ReservedStockDataRelationshipsStockItemData) { + o.Data = v +} + +func (o StockLineItemCreateDataRelationshipsStockItem) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StockLineItemCreateDataRelationshipsStockItem) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableStockLineItemCreateDataRelationshipsStockItem struct { + value *StockLineItemCreateDataRelationshipsStockItem + isSet bool +} + +func (v NullableStockLineItemCreateDataRelationshipsStockItem) Get() *StockLineItemCreateDataRelationshipsStockItem { + return v.value +} + +func (v *NullableStockLineItemCreateDataRelationshipsStockItem) Set(val *StockLineItemCreateDataRelationshipsStockItem) { + v.value = val + v.isSet = true +} + +func (v NullableStockLineItemCreateDataRelationshipsStockItem) IsSet() bool { + return v.isSet +} + +func (v *NullableStockLineItemCreateDataRelationshipsStockItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStockLineItemCreateDataRelationshipsStockItem(val *StockLineItemCreateDataRelationshipsStockItem) *NullableStockLineItemCreateDataRelationshipsStockItem { + return &NullableStockLineItemCreateDataRelationshipsStockItem{value: val, isSet: true} +} + +func (v NullableStockLineItemCreateDataRelationshipsStockItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStockLineItemCreateDataRelationshipsStockItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_stock_line_item_data.go b/api/model_stock_line_item_data.go index 8c06ee8f..c7d3ed1d 100644 --- a/api/model_stock_line_item_data.go +++ b/api/model_stock_line_item_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_line_item_data_relationships.go b/api/model_stock_line_item_data_relationships.go index 7a0085b1..50ebf176 100644 --- a/api/model_stock_line_item_data_relationships.go +++ b/api/model_stock_line_item_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,12 @@ var _ MappedNullable = &StockLineItemDataRelationships{} // StockLineItemDataRelationships struct for StockLineItemDataRelationships type StockLineItemDataRelationships struct { - Shipment *OrderDataRelationshipsShipments `json:"shipment,omitempty"` - LineItem *LineItemOptionDataRelationshipsLineItem `json:"line_item,omitempty"` - StockItem *SkuDataRelationshipsStockItems `json:"stock_item,omitempty"` + Shipment *LineItemDataRelationshipsShipment `json:"shipment,omitempty"` + LineItem *LineItemOptionDataRelationshipsLineItem `json:"line_item,omitempty"` + StockItem *ReservedStockDataRelationshipsStockItem `json:"stock_item,omitempty"` + Sku *BundleDataRelationshipsSkus `json:"sku,omitempty"` + StockReservation *LineItemDataRelationshipsStockReservations `json:"stock_reservation,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewStockLineItemDataRelationships instantiates a new StockLineItemDataRelationships object @@ -43,9 +46,9 @@ func NewStockLineItemDataRelationshipsWithDefaults() *StockLineItemDataRelations } // GetShipment returns the Shipment field value if set, zero value otherwise. -func (o *StockLineItemDataRelationships) GetShipment() OrderDataRelationshipsShipments { +func (o *StockLineItemDataRelationships) GetShipment() LineItemDataRelationshipsShipment { if o == nil || IsNil(o.Shipment) { - var ret OrderDataRelationshipsShipments + var ret LineItemDataRelationshipsShipment return ret } return *o.Shipment @@ -53,7 +56,7 @@ func (o *StockLineItemDataRelationships) GetShipment() OrderDataRelationshipsShi // GetShipmentOk returns a tuple with the Shipment field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *StockLineItemDataRelationships) GetShipmentOk() (*OrderDataRelationshipsShipments, bool) { +func (o *StockLineItemDataRelationships) GetShipmentOk() (*LineItemDataRelationshipsShipment, bool) { if o == nil || IsNil(o.Shipment) { return nil, false } @@ -69,8 +72,8 @@ func (o *StockLineItemDataRelationships) HasShipment() bool { return false } -// SetShipment gets a reference to the given OrderDataRelationshipsShipments and assigns it to the Shipment field. -func (o *StockLineItemDataRelationships) SetShipment(v OrderDataRelationshipsShipments) { +// SetShipment gets a reference to the given LineItemDataRelationshipsShipment and assigns it to the Shipment field. +func (o *StockLineItemDataRelationships) SetShipment(v LineItemDataRelationshipsShipment) { o.Shipment = &v } @@ -107,9 +110,9 @@ func (o *StockLineItemDataRelationships) SetLineItem(v LineItemOptionDataRelatio } // GetStockItem returns the StockItem field value if set, zero value otherwise. -func (o *StockLineItemDataRelationships) GetStockItem() SkuDataRelationshipsStockItems { +func (o *StockLineItemDataRelationships) GetStockItem() ReservedStockDataRelationshipsStockItem { if o == nil || IsNil(o.StockItem) { - var ret SkuDataRelationshipsStockItems + var ret ReservedStockDataRelationshipsStockItem return ret } return *o.StockItem @@ -117,7 +120,7 @@ func (o *StockLineItemDataRelationships) GetStockItem() SkuDataRelationshipsStoc // GetStockItemOk returns a tuple with the StockItem field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *StockLineItemDataRelationships) GetStockItemOk() (*SkuDataRelationshipsStockItems, bool) { +func (o *StockLineItemDataRelationships) GetStockItemOk() (*ReservedStockDataRelationshipsStockItem, bool) { if o == nil || IsNil(o.StockItem) { return nil, false } @@ -133,11 +136,107 @@ func (o *StockLineItemDataRelationships) HasStockItem() bool { return false } -// SetStockItem gets a reference to the given SkuDataRelationshipsStockItems and assigns it to the StockItem field. -func (o *StockLineItemDataRelationships) SetStockItem(v SkuDataRelationshipsStockItems) { +// SetStockItem gets a reference to the given ReservedStockDataRelationshipsStockItem and assigns it to the StockItem field. +func (o *StockLineItemDataRelationships) SetStockItem(v ReservedStockDataRelationshipsStockItem) { o.StockItem = &v } +// GetSku returns the Sku field value if set, zero value otherwise. +func (o *StockLineItemDataRelationships) GetSku() BundleDataRelationshipsSkus { + if o == nil || IsNil(o.Sku) { + var ret BundleDataRelationshipsSkus + return ret + } + return *o.Sku +} + +// GetSkuOk returns a tuple with the Sku field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockLineItemDataRelationships) GetSkuOk() (*BundleDataRelationshipsSkus, bool) { + if o == nil || IsNil(o.Sku) { + return nil, false + } + return o.Sku, true +} + +// HasSku returns a boolean if a field has been set. +func (o *StockLineItemDataRelationships) HasSku() bool { + if o != nil && !IsNil(o.Sku) { + return true + } + + return false +} + +// SetSku gets a reference to the given BundleDataRelationshipsSkus and assigns it to the Sku field. +func (o *StockLineItemDataRelationships) SetSku(v BundleDataRelationshipsSkus) { + o.Sku = &v +} + +// GetStockReservation returns the StockReservation field value if set, zero value otherwise. +func (o *StockLineItemDataRelationships) GetStockReservation() LineItemDataRelationshipsStockReservations { + if o == nil || IsNil(o.StockReservation) { + var ret LineItemDataRelationshipsStockReservations + return ret + } + return *o.StockReservation +} + +// GetStockReservationOk returns a tuple with the StockReservation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockLineItemDataRelationships) GetStockReservationOk() (*LineItemDataRelationshipsStockReservations, bool) { + if o == nil || IsNil(o.StockReservation) { + return nil, false + } + return o.StockReservation, true +} + +// HasStockReservation returns a boolean if a field has been set. +func (o *StockLineItemDataRelationships) HasStockReservation() bool { + if o != nil && !IsNil(o.StockReservation) { + return true + } + + return false +} + +// SetStockReservation gets a reference to the given LineItemDataRelationshipsStockReservations and assigns it to the StockReservation field. +func (o *StockLineItemDataRelationships) SetStockReservation(v LineItemDataRelationshipsStockReservations) { + o.StockReservation = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *StockLineItemDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockLineItemDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *StockLineItemDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *StockLineItemDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o StockLineItemDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -157,6 +256,15 @@ func (o StockLineItemDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.StockItem) { toSerialize["stock_item"] = o.StockItem } + if !IsNil(o.Sku) { + toSerialize["sku"] = o.Sku + } + if !IsNil(o.StockReservation) { + toSerialize["stock_reservation"] = o.StockReservation + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_stock_line_item_update.go b/api/model_stock_line_item_update.go new file mode 100644 index 00000000..a321803c --- /dev/null +++ b/api/model_stock_line_item_update.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the StockLineItemUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StockLineItemUpdate{} + +// StockLineItemUpdate struct for StockLineItemUpdate +type StockLineItemUpdate struct { + Data StockLineItemUpdateData `json:"data"` +} + +// NewStockLineItemUpdate instantiates a new StockLineItemUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStockLineItemUpdate(data StockLineItemUpdateData) *StockLineItemUpdate { + this := StockLineItemUpdate{} + this.Data = data + return &this +} + +// NewStockLineItemUpdateWithDefaults instantiates a new StockLineItemUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStockLineItemUpdateWithDefaults() *StockLineItemUpdate { + this := StockLineItemUpdate{} + return &this +} + +// GetData returns the Data field value +func (o *StockLineItemUpdate) GetData() StockLineItemUpdateData { + if o == nil { + var ret StockLineItemUpdateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *StockLineItemUpdate) GetDataOk() (*StockLineItemUpdateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *StockLineItemUpdate) SetData(v StockLineItemUpdateData) { + o.Data = v +} + +func (o StockLineItemUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StockLineItemUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableStockLineItemUpdate struct { + value *StockLineItemUpdate + isSet bool +} + +func (v NullableStockLineItemUpdate) Get() *StockLineItemUpdate { + return v.value +} + +func (v *NullableStockLineItemUpdate) Set(val *StockLineItemUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableStockLineItemUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableStockLineItemUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStockLineItemUpdate(val *StockLineItemUpdate) *NullableStockLineItemUpdate { + return &NullableStockLineItemUpdate{value: val, isSet: true} +} + +func (v NullableStockLineItemUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStockLineItemUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_stock_line_item_update_data.go b/api/model_stock_line_item_update_data.go new file mode 100644 index 00000000..a4a8177f --- /dev/null +++ b/api/model_stock_line_item_update_data.go @@ -0,0 +1,216 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the StockLineItemUpdateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StockLineItemUpdateData{} + +// StockLineItemUpdateData struct for StockLineItemUpdateData +type StockLineItemUpdateData struct { + // The resource's type + Type interface{} `json:"type"` + // The resource's id + Id interface{} `json:"id"` + Attributes PATCHStockLineItemsStockLineItemId200ResponseDataAttributes `json:"attributes"` + Relationships *StockLineItemCreateDataRelationships `json:"relationships,omitempty"` +} + +// NewStockLineItemUpdateData instantiates a new StockLineItemUpdateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStockLineItemUpdateData(type_ interface{}, id interface{}, attributes PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) *StockLineItemUpdateData { + this := StockLineItemUpdateData{} + this.Type = type_ + this.Id = id + this.Attributes = attributes + return &this +} + +// NewStockLineItemUpdateDataWithDefaults instantiates a new StockLineItemUpdateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStockLineItemUpdateDataWithDefaults() *StockLineItemUpdateData { + this := StockLineItemUpdateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *StockLineItemUpdateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *StockLineItemUpdateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *StockLineItemUpdateData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *StockLineItemUpdateData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *StockLineItemUpdateData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *StockLineItemUpdateData) SetId(v interface{}) { + o.Id = v +} + +// GetAttributes returns the Attributes field value +func (o *StockLineItemUpdateData) GetAttributes() PATCHStockLineItemsStockLineItemId200ResponseDataAttributes { + if o == nil { + var ret PATCHStockLineItemsStockLineItemId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *StockLineItemUpdateData) GetAttributesOk() (*PATCHStockLineItemsStockLineItemId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *StockLineItemUpdateData) SetAttributes(v PATCHStockLineItemsStockLineItemId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *StockLineItemUpdateData) GetRelationships() StockLineItemCreateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret StockLineItemCreateDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockLineItemUpdateData) GetRelationshipsOk() (*StockLineItemCreateDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *StockLineItemUpdateData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given StockLineItemCreateDataRelationships and assigns it to the Relationships field. +func (o *StockLineItemUpdateData) SetRelationships(v StockLineItemCreateDataRelationships) { + o.Relationships = &v +} + +func (o StockLineItemUpdateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StockLineItemUpdateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableStockLineItemUpdateData struct { + value *StockLineItemUpdateData + isSet bool +} + +func (v NullableStockLineItemUpdateData) Get() *StockLineItemUpdateData { + return v.value +} + +func (v *NullableStockLineItemUpdateData) Set(val *StockLineItemUpdateData) { + v.value = val + v.isSet = true +} + +func (v NullableStockLineItemUpdateData) IsSet() bool { + return v.isSet +} + +func (v *NullableStockLineItemUpdateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStockLineItemUpdateData(val *StockLineItemUpdateData) *NullableStockLineItemUpdateData { + return &NullableStockLineItemUpdateData{value: val, isSet: true} +} + +func (v NullableStockLineItemUpdateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStockLineItemUpdateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_stock_location.go b/api/model_stock_location.go index 818990b8..5c2c5915 100644 --- a/api/model_stock_location.go +++ b/api/model_stock_location.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_location_create.go b/api/model_stock_location_create.go index a6833ba5..196fc809 100644 --- a/api/model_stock_location_create.go +++ b/api/model_stock_location_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_location_create_data.go b/api/model_stock_location_create_data.go index 79988b6b..fdbe6b9c 100644 --- a/api/model_stock_location_create_data.go +++ b/api/model_stock_location_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_location_data.go b/api/model_stock_location_data.go index 861ffa9b..c48d81ff 100644 --- a/api/model_stock_location_data.go +++ b/api/model_stock_location_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_location_data_relationships.go b/api/model_stock_location_data_relationships.go index 0259dd7c..6aee401b 100644 --- a/api/model_stock_location_data_relationships.go +++ b/api/model_stock_location_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,9 +23,10 @@ type StockLocationDataRelationships struct { Address *BingGeocoderDataRelationshipsAddresses `json:"address,omitempty"` InventoryStockLocations *InventoryModelDataRelationshipsInventoryStockLocations `json:"inventory_stock_locations,omitempty"` InventoryReturnLocations *InventoryModelDataRelationshipsInventoryReturnLocations `json:"inventory_return_locations,omitempty"` - StockItems *SkuDataRelationshipsStockItems `json:"stock_items,omitempty"` + StockItems *ReservedStockDataRelationshipsStockItem `json:"stock_items,omitempty"` StockTransfers *LineItemDataRelationshipsStockTransfers `json:"stock_transfers,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewStockLocationDataRelationships instantiates a new StockLocationDataRelationships object @@ -142,9 +143,9 @@ func (o *StockLocationDataRelationships) SetInventoryReturnLocations(v Inventory } // GetStockItems returns the StockItems field value if set, zero value otherwise. -func (o *StockLocationDataRelationships) GetStockItems() SkuDataRelationshipsStockItems { +func (o *StockLocationDataRelationships) GetStockItems() ReservedStockDataRelationshipsStockItem { if o == nil || IsNil(o.StockItems) { - var ret SkuDataRelationshipsStockItems + var ret ReservedStockDataRelationshipsStockItem return ret } return *o.StockItems @@ -152,7 +153,7 @@ func (o *StockLocationDataRelationships) GetStockItems() SkuDataRelationshipsSto // GetStockItemsOk returns a tuple with the StockItems field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *StockLocationDataRelationships) GetStockItemsOk() (*SkuDataRelationshipsStockItems, bool) { +func (o *StockLocationDataRelationships) GetStockItemsOk() (*ReservedStockDataRelationshipsStockItem, bool) { if o == nil || IsNil(o.StockItems) { return nil, false } @@ -168,8 +169,8 @@ func (o *StockLocationDataRelationships) HasStockItems() bool { return false } -// SetStockItems gets a reference to the given SkuDataRelationshipsStockItems and assigns it to the StockItems field. -func (o *StockLocationDataRelationships) SetStockItems(v SkuDataRelationshipsStockItems) { +// SetStockItems gets a reference to the given ReservedStockDataRelationshipsStockItem and assigns it to the StockItems field. +func (o *StockLocationDataRelationships) SetStockItems(v ReservedStockDataRelationshipsStockItem) { o.StockItems = &v } @@ -206,9 +207,9 @@ func (o *StockLocationDataRelationships) SetStockTransfers(v LineItemDataRelatio } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *StockLocationDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *StockLocationDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -216,7 +217,7 @@ func (o *StockLocationDataRelationships) GetAttachments() AvalaraAccountDataRela // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *StockLocationDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *StockLocationDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -232,11 +233,43 @@ func (o *StockLocationDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *StockLocationDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *StockLocationDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *StockLocationDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockLocationDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *StockLocationDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *StockLocationDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o StockLocationDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -265,6 +298,9 @@ func (o StockLocationDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_stock_location_update.go b/api/model_stock_location_update.go index 90e7f241..427e20e7 100644 --- a/api/model_stock_location_update.go +++ b/api/model_stock_location_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_location_update_data.go b/api/model_stock_location_update_data.go index c879a1f5..6b8ae75f 100644 --- a/api/model_stock_location_update_data.go +++ b/api/model_stock_location_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_reservation.go b/api/model_stock_reservation.go new file mode 100644 index 00000000..ebb6a716 --- /dev/null +++ b/api/model_stock_reservation.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the StockReservation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StockReservation{} + +// StockReservation struct for StockReservation +type StockReservation struct { + Data *StockReservationData `json:"data,omitempty"` +} + +// NewStockReservation instantiates a new StockReservation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStockReservation() *StockReservation { + this := StockReservation{} + return &this +} + +// NewStockReservationWithDefaults instantiates a new StockReservation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStockReservationWithDefaults() *StockReservation { + this := StockReservation{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *StockReservation) GetData() StockReservationData { + if o == nil || IsNil(o.Data) { + var ret StockReservationData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockReservation) GetDataOk() (*StockReservationData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *StockReservation) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given StockReservationData and assigns it to the Data field. +func (o *StockReservation) SetData(v StockReservationData) { + o.Data = &v +} + +func (o StockReservation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StockReservation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableStockReservation struct { + value *StockReservation + isSet bool +} + +func (v NullableStockReservation) Get() *StockReservation { + return v.value +} + +func (v *NullableStockReservation) Set(val *StockReservation) { + v.value = val + v.isSet = true +} + +func (v NullableStockReservation) IsSet() bool { + return v.isSet +} + +func (v *NullableStockReservation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStockReservation(val *StockReservation) *NullableStockReservation { + return &NullableStockReservation{value: val, isSet: true} +} + +func (v NullableStockReservation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStockReservation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_stock_reservation_create.go b/api/model_stock_reservation_create.go new file mode 100644 index 00000000..a44d973b --- /dev/null +++ b/api/model_stock_reservation_create.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the StockReservationCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StockReservationCreate{} + +// StockReservationCreate struct for StockReservationCreate +type StockReservationCreate struct { + Data StockReservationCreateData `json:"data"` +} + +// NewStockReservationCreate instantiates a new StockReservationCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStockReservationCreate(data StockReservationCreateData) *StockReservationCreate { + this := StockReservationCreate{} + this.Data = data + return &this +} + +// NewStockReservationCreateWithDefaults instantiates a new StockReservationCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStockReservationCreateWithDefaults() *StockReservationCreate { + this := StockReservationCreate{} + return &this +} + +// GetData returns the Data field value +func (o *StockReservationCreate) GetData() StockReservationCreateData { + if o == nil { + var ret StockReservationCreateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *StockReservationCreate) GetDataOk() (*StockReservationCreateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *StockReservationCreate) SetData(v StockReservationCreateData) { + o.Data = v +} + +func (o StockReservationCreate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StockReservationCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableStockReservationCreate struct { + value *StockReservationCreate + isSet bool +} + +func (v NullableStockReservationCreate) Get() *StockReservationCreate { + return v.value +} + +func (v *NullableStockReservationCreate) Set(val *StockReservationCreate) { + v.value = val + v.isSet = true +} + +func (v NullableStockReservationCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableStockReservationCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStockReservationCreate(val *StockReservationCreate) *NullableStockReservationCreate { + return &NullableStockReservationCreate{value: val, isSet: true} +} + +func (v NullableStockReservationCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStockReservationCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_stock_reservation_create_data.go b/api/model_stock_reservation_create_data.go new file mode 100644 index 00000000..9d0e774c --- /dev/null +++ b/api/model_stock_reservation_create_data.go @@ -0,0 +1,184 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the StockReservationCreateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StockReservationCreateData{} + +// StockReservationCreateData struct for StockReservationCreateData +type StockReservationCreateData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes POSTStockReservations201ResponseDataAttributes `json:"attributes"` + Relationships *StockReservationCreateDataRelationships `json:"relationships,omitempty"` +} + +// NewStockReservationCreateData instantiates a new StockReservationCreateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStockReservationCreateData(type_ interface{}, attributes POSTStockReservations201ResponseDataAttributes) *StockReservationCreateData { + this := StockReservationCreateData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewStockReservationCreateDataWithDefaults instantiates a new StockReservationCreateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStockReservationCreateDataWithDefaults() *StockReservationCreateData { + this := StockReservationCreateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *StockReservationCreateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *StockReservationCreateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *StockReservationCreateData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *StockReservationCreateData) GetAttributes() POSTStockReservations201ResponseDataAttributes { + if o == nil { + var ret POSTStockReservations201ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *StockReservationCreateData) GetAttributesOk() (*POSTStockReservations201ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *StockReservationCreateData) SetAttributes(v POSTStockReservations201ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *StockReservationCreateData) GetRelationships() StockReservationCreateDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret StockReservationCreateDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockReservationCreateData) GetRelationshipsOk() (*StockReservationCreateDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *StockReservationCreateData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given StockReservationCreateDataRelationships and assigns it to the Relationships field. +func (o *StockReservationCreateData) SetRelationships(v StockReservationCreateDataRelationships) { + o.Relationships = &v +} + +func (o StockReservationCreateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StockReservationCreateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableStockReservationCreateData struct { + value *StockReservationCreateData + isSet bool +} + +func (v NullableStockReservationCreateData) Get() *StockReservationCreateData { + return v.value +} + +func (v *NullableStockReservationCreateData) Set(val *StockReservationCreateData) { + v.value = val + v.isSet = true +} + +func (v NullableStockReservationCreateData) IsSet() bool { + return v.isSet +} + +func (v *NullableStockReservationCreateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStockReservationCreateData(val *StockReservationCreateData) *NullableStockReservationCreateData { + return &NullableStockReservationCreateData{value: val, isSet: true} +} + +func (v NullableStockReservationCreateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStockReservationCreateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_stock_reservation_create_data_relationships.go b/api/model_stock_reservation_create_data_relationships.go new file mode 100644 index 00000000..d5d78d9e --- /dev/null +++ b/api/model_stock_reservation_create_data_relationships.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the StockReservationCreateDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StockReservationCreateDataRelationships{} + +// StockReservationCreateDataRelationships struct for StockReservationCreateDataRelationships +type StockReservationCreateDataRelationships struct { + StockItem StockLineItemCreateDataRelationshipsStockItem `json:"stock_item"` +} + +// NewStockReservationCreateDataRelationships instantiates a new StockReservationCreateDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStockReservationCreateDataRelationships(stockItem StockLineItemCreateDataRelationshipsStockItem) *StockReservationCreateDataRelationships { + this := StockReservationCreateDataRelationships{} + this.StockItem = stockItem + return &this +} + +// NewStockReservationCreateDataRelationshipsWithDefaults instantiates a new StockReservationCreateDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStockReservationCreateDataRelationshipsWithDefaults() *StockReservationCreateDataRelationships { + this := StockReservationCreateDataRelationships{} + return &this +} + +// GetStockItem returns the StockItem field value +func (o *StockReservationCreateDataRelationships) GetStockItem() StockLineItemCreateDataRelationshipsStockItem { + if o == nil { + var ret StockLineItemCreateDataRelationshipsStockItem + return ret + } + + return o.StockItem +} + +// GetStockItemOk returns a tuple with the StockItem field value +// and a boolean to check if the value has been set. +func (o *StockReservationCreateDataRelationships) GetStockItemOk() (*StockLineItemCreateDataRelationshipsStockItem, bool) { + if o == nil { + return nil, false + } + return &o.StockItem, true +} + +// SetStockItem sets field value +func (o *StockReservationCreateDataRelationships) SetStockItem(v StockLineItemCreateDataRelationshipsStockItem) { + o.StockItem = v +} + +func (o StockReservationCreateDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StockReservationCreateDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["stock_item"] = o.StockItem + return toSerialize, nil +} + +type NullableStockReservationCreateDataRelationships struct { + value *StockReservationCreateDataRelationships + isSet bool +} + +func (v NullableStockReservationCreateDataRelationships) Get() *StockReservationCreateDataRelationships { + return v.value +} + +func (v *NullableStockReservationCreateDataRelationships) Set(val *StockReservationCreateDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableStockReservationCreateDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableStockReservationCreateDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStockReservationCreateDataRelationships(val *StockReservationCreateDataRelationships) *NullableStockReservationCreateDataRelationships { + return &NullableStockReservationCreateDataRelationships{value: val, isSet: true} +} + +func (v NullableStockReservationCreateDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStockReservationCreateDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_stock_reservation_data.go b/api/model_stock_reservation_data.go new file mode 100644 index 00000000..3b3d7da4 --- /dev/null +++ b/api/model_stock_reservation_data.go @@ -0,0 +1,184 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the StockReservationData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StockReservationData{} + +// StockReservationData struct for StockReservationData +type StockReservationData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes GETStockReservationsStockReservationId200ResponseDataAttributes `json:"attributes"` + Relationships *StockReservationDataRelationships `json:"relationships,omitempty"` +} + +// NewStockReservationData instantiates a new StockReservationData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStockReservationData(type_ interface{}, attributes GETStockReservationsStockReservationId200ResponseDataAttributes) *StockReservationData { + this := StockReservationData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewStockReservationDataWithDefaults instantiates a new StockReservationData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStockReservationDataWithDefaults() *StockReservationData { + this := StockReservationData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *StockReservationData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *StockReservationData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *StockReservationData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *StockReservationData) GetAttributes() GETStockReservationsStockReservationId200ResponseDataAttributes { + if o == nil { + var ret GETStockReservationsStockReservationId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *StockReservationData) GetAttributesOk() (*GETStockReservationsStockReservationId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *StockReservationData) SetAttributes(v GETStockReservationsStockReservationId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise. +func (o *StockReservationData) GetRelationships() StockReservationDataRelationships { + if o == nil || IsNil(o.Relationships) { + var ret StockReservationDataRelationships + return ret + } + return *o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockReservationData) GetRelationshipsOk() (*StockReservationDataRelationships, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *StockReservationData) HasRelationships() bool { + if o != nil && !IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given StockReservationDataRelationships and assigns it to the Relationships field. +func (o *StockReservationData) SetRelationships(v StockReservationDataRelationships) { + o.Relationships = &v +} + +func (o StockReservationData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StockReservationData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if !IsNil(o.Relationships) { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableStockReservationData struct { + value *StockReservationData + isSet bool +} + +func (v NullableStockReservationData) Get() *StockReservationData { + return v.value +} + +func (v *NullableStockReservationData) Set(val *StockReservationData) { + v.value = val + v.isSet = true +} + +func (v NullableStockReservationData) IsSet() bool { + return v.isSet +} + +func (v *NullableStockReservationData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStockReservationData(val *StockReservationData) *NullableStockReservationData { + return &NullableStockReservationData{value: val, isSet: true} +} + +func (v NullableStockReservationData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStockReservationData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_stock_reservation_data_relationships.go b/api/model_stock_reservation_data_relationships.go new file mode 100644 index 00000000..99968230 --- /dev/null +++ b/api/model_stock_reservation_data_relationships.go @@ -0,0 +1,341 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the StockReservationDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StockReservationDataRelationships{} + +// StockReservationDataRelationships struct for StockReservationDataRelationships +type StockReservationDataRelationships struct { + LineItem *LineItemOptionDataRelationshipsLineItem `json:"line_item,omitempty"` + Order *AdyenPaymentDataRelationshipsOrder `json:"order,omitempty"` + StockLineItem *LineItemDataRelationshipsStockLineItems `json:"stock_line_item,omitempty"` + StockTransfer *LineItemDataRelationshipsStockTransfers `json:"stock_transfer,omitempty"` + StockItem *ReservedStockDataRelationshipsStockItem `json:"stock_item,omitempty"` + ReservedStock *StockItemDataRelationshipsReservedStock `json:"reserved_stock,omitempty"` + Sku *BundleDataRelationshipsSkus `json:"sku,omitempty"` +} + +// NewStockReservationDataRelationships instantiates a new StockReservationDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStockReservationDataRelationships() *StockReservationDataRelationships { + this := StockReservationDataRelationships{} + return &this +} + +// NewStockReservationDataRelationshipsWithDefaults instantiates a new StockReservationDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStockReservationDataRelationshipsWithDefaults() *StockReservationDataRelationships { + this := StockReservationDataRelationships{} + return &this +} + +// GetLineItem returns the LineItem field value if set, zero value otherwise. +func (o *StockReservationDataRelationships) GetLineItem() LineItemOptionDataRelationshipsLineItem { + if o == nil || IsNil(o.LineItem) { + var ret LineItemOptionDataRelationshipsLineItem + return ret + } + return *o.LineItem +} + +// GetLineItemOk returns a tuple with the LineItem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockReservationDataRelationships) GetLineItemOk() (*LineItemOptionDataRelationshipsLineItem, bool) { + if o == nil || IsNil(o.LineItem) { + return nil, false + } + return o.LineItem, true +} + +// HasLineItem returns a boolean if a field has been set. +func (o *StockReservationDataRelationships) HasLineItem() bool { + if o != nil && !IsNil(o.LineItem) { + return true + } + + return false +} + +// SetLineItem gets a reference to the given LineItemOptionDataRelationshipsLineItem and assigns it to the LineItem field. +func (o *StockReservationDataRelationships) SetLineItem(v LineItemOptionDataRelationshipsLineItem) { + o.LineItem = &v +} + +// GetOrder returns the Order field value if set, zero value otherwise. +func (o *StockReservationDataRelationships) GetOrder() AdyenPaymentDataRelationshipsOrder { + if o == nil || IsNil(o.Order) { + var ret AdyenPaymentDataRelationshipsOrder + return ret + } + return *o.Order +} + +// GetOrderOk returns a tuple with the Order field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockReservationDataRelationships) GetOrderOk() (*AdyenPaymentDataRelationshipsOrder, bool) { + if o == nil || IsNil(o.Order) { + return nil, false + } + return o.Order, true +} + +// HasOrder returns a boolean if a field has been set. +func (o *StockReservationDataRelationships) HasOrder() bool { + if o != nil && !IsNil(o.Order) { + return true + } + + return false +} + +// SetOrder gets a reference to the given AdyenPaymentDataRelationshipsOrder and assigns it to the Order field. +func (o *StockReservationDataRelationships) SetOrder(v AdyenPaymentDataRelationshipsOrder) { + o.Order = &v +} + +// GetStockLineItem returns the StockLineItem field value if set, zero value otherwise. +func (o *StockReservationDataRelationships) GetStockLineItem() LineItemDataRelationshipsStockLineItems { + if o == nil || IsNil(o.StockLineItem) { + var ret LineItemDataRelationshipsStockLineItems + return ret + } + return *o.StockLineItem +} + +// GetStockLineItemOk returns a tuple with the StockLineItem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockReservationDataRelationships) GetStockLineItemOk() (*LineItemDataRelationshipsStockLineItems, bool) { + if o == nil || IsNil(o.StockLineItem) { + return nil, false + } + return o.StockLineItem, true +} + +// HasStockLineItem returns a boolean if a field has been set. +func (o *StockReservationDataRelationships) HasStockLineItem() bool { + if o != nil && !IsNil(o.StockLineItem) { + return true + } + + return false +} + +// SetStockLineItem gets a reference to the given LineItemDataRelationshipsStockLineItems and assigns it to the StockLineItem field. +func (o *StockReservationDataRelationships) SetStockLineItem(v LineItemDataRelationshipsStockLineItems) { + o.StockLineItem = &v +} + +// GetStockTransfer returns the StockTransfer field value if set, zero value otherwise. +func (o *StockReservationDataRelationships) GetStockTransfer() LineItemDataRelationshipsStockTransfers { + if o == nil || IsNil(o.StockTransfer) { + var ret LineItemDataRelationshipsStockTransfers + return ret + } + return *o.StockTransfer +} + +// GetStockTransferOk returns a tuple with the StockTransfer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockReservationDataRelationships) GetStockTransferOk() (*LineItemDataRelationshipsStockTransfers, bool) { + if o == nil || IsNil(o.StockTransfer) { + return nil, false + } + return o.StockTransfer, true +} + +// HasStockTransfer returns a boolean if a field has been set. +func (o *StockReservationDataRelationships) HasStockTransfer() bool { + if o != nil && !IsNil(o.StockTransfer) { + return true + } + + return false +} + +// SetStockTransfer gets a reference to the given LineItemDataRelationshipsStockTransfers and assigns it to the StockTransfer field. +func (o *StockReservationDataRelationships) SetStockTransfer(v LineItemDataRelationshipsStockTransfers) { + o.StockTransfer = &v +} + +// GetStockItem returns the StockItem field value if set, zero value otherwise. +func (o *StockReservationDataRelationships) GetStockItem() ReservedStockDataRelationshipsStockItem { + if o == nil || IsNil(o.StockItem) { + var ret ReservedStockDataRelationshipsStockItem + return ret + } + return *o.StockItem +} + +// GetStockItemOk returns a tuple with the StockItem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockReservationDataRelationships) GetStockItemOk() (*ReservedStockDataRelationshipsStockItem, bool) { + if o == nil || IsNil(o.StockItem) { + return nil, false + } + return o.StockItem, true +} + +// HasStockItem returns a boolean if a field has been set. +func (o *StockReservationDataRelationships) HasStockItem() bool { + if o != nil && !IsNil(o.StockItem) { + return true + } + + return false +} + +// SetStockItem gets a reference to the given ReservedStockDataRelationshipsStockItem and assigns it to the StockItem field. +func (o *StockReservationDataRelationships) SetStockItem(v ReservedStockDataRelationshipsStockItem) { + o.StockItem = &v +} + +// GetReservedStock returns the ReservedStock field value if set, zero value otherwise. +func (o *StockReservationDataRelationships) GetReservedStock() StockItemDataRelationshipsReservedStock { + if o == nil || IsNil(o.ReservedStock) { + var ret StockItemDataRelationshipsReservedStock + return ret + } + return *o.ReservedStock +} + +// GetReservedStockOk returns a tuple with the ReservedStock field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockReservationDataRelationships) GetReservedStockOk() (*StockItemDataRelationshipsReservedStock, bool) { + if o == nil || IsNil(o.ReservedStock) { + return nil, false + } + return o.ReservedStock, true +} + +// HasReservedStock returns a boolean if a field has been set. +func (o *StockReservationDataRelationships) HasReservedStock() bool { + if o != nil && !IsNil(o.ReservedStock) { + return true + } + + return false +} + +// SetReservedStock gets a reference to the given StockItemDataRelationshipsReservedStock and assigns it to the ReservedStock field. +func (o *StockReservationDataRelationships) SetReservedStock(v StockItemDataRelationshipsReservedStock) { + o.ReservedStock = &v +} + +// GetSku returns the Sku field value if set, zero value otherwise. +func (o *StockReservationDataRelationships) GetSku() BundleDataRelationshipsSkus { + if o == nil || IsNil(o.Sku) { + var ret BundleDataRelationshipsSkus + return ret + } + return *o.Sku +} + +// GetSkuOk returns a tuple with the Sku field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockReservationDataRelationships) GetSkuOk() (*BundleDataRelationshipsSkus, bool) { + if o == nil || IsNil(o.Sku) { + return nil, false + } + return o.Sku, true +} + +// HasSku returns a boolean if a field has been set. +func (o *StockReservationDataRelationships) HasSku() bool { + if o != nil && !IsNil(o.Sku) { + return true + } + + return false +} + +// SetSku gets a reference to the given BundleDataRelationshipsSkus and assigns it to the Sku field. +func (o *StockReservationDataRelationships) SetSku(v BundleDataRelationshipsSkus) { + o.Sku = &v +} + +func (o StockReservationDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StockReservationDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.LineItem) { + toSerialize["line_item"] = o.LineItem + } + if !IsNil(o.Order) { + toSerialize["order"] = o.Order + } + if !IsNil(o.StockLineItem) { + toSerialize["stock_line_item"] = o.StockLineItem + } + if !IsNil(o.StockTransfer) { + toSerialize["stock_transfer"] = o.StockTransfer + } + if !IsNil(o.StockItem) { + toSerialize["stock_item"] = o.StockItem + } + if !IsNil(o.ReservedStock) { + toSerialize["reserved_stock"] = o.ReservedStock + } + if !IsNil(o.Sku) { + toSerialize["sku"] = o.Sku + } + return toSerialize, nil +} + +type NullableStockReservationDataRelationships struct { + value *StockReservationDataRelationships + isSet bool +} + +func (v NullableStockReservationDataRelationships) Get() *StockReservationDataRelationships { + return v.value +} + +func (v *NullableStockReservationDataRelationships) Set(val *StockReservationDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableStockReservationDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableStockReservationDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStockReservationDataRelationships(val *StockReservationDataRelationships) *NullableStockReservationDataRelationships { + return &NullableStockReservationDataRelationships{value: val, isSet: true} +} + +func (v NullableStockReservationDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStockReservationDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_stock_reservation_update.go b/api/model_stock_reservation_update.go new file mode 100644 index 00000000..26d2cc0f --- /dev/null +++ b/api/model_stock_reservation_update.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the StockReservationUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StockReservationUpdate{} + +// StockReservationUpdate struct for StockReservationUpdate +type StockReservationUpdate struct { + Data StockReservationUpdateData `json:"data"` +} + +// NewStockReservationUpdate instantiates a new StockReservationUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStockReservationUpdate(data StockReservationUpdateData) *StockReservationUpdate { + this := StockReservationUpdate{} + this.Data = data + return &this +} + +// NewStockReservationUpdateWithDefaults instantiates a new StockReservationUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStockReservationUpdateWithDefaults() *StockReservationUpdate { + this := StockReservationUpdate{} + return &this +} + +// GetData returns the Data field value +func (o *StockReservationUpdate) GetData() StockReservationUpdateData { + if o == nil { + var ret StockReservationUpdateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *StockReservationUpdate) GetDataOk() (*StockReservationUpdateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *StockReservationUpdate) SetData(v StockReservationUpdateData) { + o.Data = v +} + +func (o StockReservationUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StockReservationUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableStockReservationUpdate struct { + value *StockReservationUpdate + isSet bool +} + +func (v NullableStockReservationUpdate) Get() *StockReservationUpdate { + return v.value +} + +func (v *NullableStockReservationUpdate) Set(val *StockReservationUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableStockReservationUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableStockReservationUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStockReservationUpdate(val *StockReservationUpdate) *NullableStockReservationUpdate { + return &NullableStockReservationUpdate{value: val, isSet: true} +} + +func (v NullableStockReservationUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStockReservationUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_stock_reservation_update_data.go b/api/model_stock_reservation_update_data.go new file mode 100644 index 00000000..f7166e24 --- /dev/null +++ b/api/model_stock_reservation_update_data.go @@ -0,0 +1,217 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the StockReservationUpdateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StockReservationUpdateData{} + +// StockReservationUpdateData struct for StockReservationUpdateData +type StockReservationUpdateData struct { + // The resource's type + Type interface{} `json:"type"` + // The resource's id + Id interface{} `json:"id"` + Attributes PATCHStockReservationsStockReservationId200ResponseDataAttributes `json:"attributes"` + Relationships interface{} `json:"relationships,omitempty"` +} + +// NewStockReservationUpdateData instantiates a new StockReservationUpdateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewStockReservationUpdateData(type_ interface{}, id interface{}, attributes PATCHStockReservationsStockReservationId200ResponseDataAttributes) *StockReservationUpdateData { + this := StockReservationUpdateData{} + this.Type = type_ + this.Id = id + this.Attributes = attributes + return &this +} + +// NewStockReservationUpdateDataWithDefaults instantiates a new StockReservationUpdateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewStockReservationUpdateDataWithDefaults() *StockReservationUpdateData { + this := StockReservationUpdateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *StockReservationUpdateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *StockReservationUpdateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *StockReservationUpdateData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *StockReservationUpdateData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *StockReservationUpdateData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *StockReservationUpdateData) SetId(v interface{}) { + o.Id = v +} + +// GetAttributes returns the Attributes field value +func (o *StockReservationUpdateData) GetAttributes() PATCHStockReservationsStockReservationId200ResponseDataAttributes { + if o == nil { + var ret PATCHStockReservationsStockReservationId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *StockReservationUpdateData) GetAttributesOk() (*PATCHStockReservationsStockReservationId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *StockReservationUpdateData) SetAttributes(v PATCHStockReservationsStockReservationId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *StockReservationUpdateData) GetRelationships() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *StockReservationUpdateData) GetRelationshipsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return &o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *StockReservationUpdateData) HasRelationships() bool { + if o != nil && IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. +func (o *StockReservationUpdateData) SetRelationships(v interface{}) { + o.Relationships = v +} + +func (o StockReservationUpdateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StockReservationUpdateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + toSerialize["attributes"] = o.Attributes + if o.Relationships != nil { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableStockReservationUpdateData struct { + value *StockReservationUpdateData + isSet bool +} + +func (v NullableStockReservationUpdateData) Get() *StockReservationUpdateData { + return v.value +} + +func (v *NullableStockReservationUpdateData) Set(val *StockReservationUpdateData) { + v.value = val + v.isSet = true +} + +func (v NullableStockReservationUpdateData) IsSet() bool { + return v.isSet +} + +func (v *NullableStockReservationUpdateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStockReservationUpdateData(val *StockReservationUpdateData) *NullableStockReservationUpdateData { + return &NullableStockReservationUpdateData{value: val, isSet: true} +} + +func (v NullableStockReservationUpdateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStockReservationUpdateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_stock_transfer.go b/api/model_stock_transfer.go index d9e06440..365c838b 100644 --- a/api/model_stock_transfer.go +++ b/api/model_stock_transfer.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_transfer_create.go b/api/model_stock_transfer_create.go index 49c3d607..aa28477b 100644 --- a/api/model_stock_transfer_create.go +++ b/api/model_stock_transfer_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_transfer_create_data.go b/api/model_stock_transfer_create_data.go index 0320075b..8b75db7c 100644 --- a/api/model_stock_transfer_create_data.go +++ b/api/model_stock_transfer_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_transfer_create_data_relationships.go b/api/model_stock_transfer_create_data_relationships.go index c10abe56..f20e72de 100644 --- a/api/model_stock_transfer_create_data_relationships.go +++ b/api/model_stock_transfer_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_transfer_data.go b/api/model_stock_transfer_data.go index 8a8d46a8..3e00b87b 100644 --- a/api/model_stock_transfer_data.go +++ b/api/model_stock_transfer_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_transfer_data_relationships.go b/api/model_stock_transfer_data_relationships.go index b62e95ad..ea1702c3 100644 --- a/api/model_stock_transfer_data_relationships.go +++ b/api/model_stock_transfer_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,9 +23,12 @@ type StockTransferDataRelationships struct { Sku *BundleDataRelationshipsSkus `json:"sku,omitempty"` OriginStockLocation *DeliveryLeadTimeDataRelationshipsStockLocation `json:"origin_stock_location,omitempty"` DestinationStockLocation *DeliveryLeadTimeDataRelationshipsStockLocation `json:"destination_stock_location,omitempty"` - Shipment *OrderDataRelationshipsShipments `json:"shipment,omitempty"` + Shipment *LineItemDataRelationshipsShipment `json:"shipment,omitempty"` LineItem *LineItemOptionDataRelationshipsLineItem `json:"line_item,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` + StockReservation *LineItemDataRelationshipsStockReservations `json:"stock_reservation,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewStockTransferDataRelationships instantiates a new StockTransferDataRelationships object @@ -142,9 +145,9 @@ func (o *StockTransferDataRelationships) SetDestinationStockLocation(v DeliveryL } // GetShipment returns the Shipment field value if set, zero value otherwise. -func (o *StockTransferDataRelationships) GetShipment() OrderDataRelationshipsShipments { +func (o *StockTransferDataRelationships) GetShipment() LineItemDataRelationshipsShipment { if o == nil || IsNil(o.Shipment) { - var ret OrderDataRelationshipsShipments + var ret LineItemDataRelationshipsShipment return ret } return *o.Shipment @@ -152,7 +155,7 @@ func (o *StockTransferDataRelationships) GetShipment() OrderDataRelationshipsShi // GetShipmentOk returns a tuple with the Shipment field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *StockTransferDataRelationships) GetShipmentOk() (*OrderDataRelationshipsShipments, bool) { +func (o *StockTransferDataRelationships) GetShipmentOk() (*LineItemDataRelationshipsShipment, bool) { if o == nil || IsNil(o.Shipment) { return nil, false } @@ -168,8 +171,8 @@ func (o *StockTransferDataRelationships) HasShipment() bool { return false } -// SetShipment gets a reference to the given OrderDataRelationshipsShipments and assigns it to the Shipment field. -func (o *StockTransferDataRelationships) SetShipment(v OrderDataRelationshipsShipments) { +// SetShipment gets a reference to the given LineItemDataRelationshipsShipment and assigns it to the Shipment field. +func (o *StockTransferDataRelationships) SetShipment(v LineItemDataRelationshipsShipment) { o.Shipment = &v } @@ -205,10 +208,74 @@ func (o *StockTransferDataRelationships) SetLineItem(v LineItemOptionDataRelatio o.LineItem = &v } +// GetStockReservation returns the StockReservation field value if set, zero value otherwise. +func (o *StockTransferDataRelationships) GetStockReservation() LineItemDataRelationshipsStockReservations { + if o == nil || IsNil(o.StockReservation) { + var ret LineItemDataRelationshipsStockReservations + return ret + } + return *o.StockReservation +} + +// GetStockReservationOk returns a tuple with the StockReservation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockTransferDataRelationships) GetStockReservationOk() (*LineItemDataRelationshipsStockReservations, bool) { + if o == nil || IsNil(o.StockReservation) { + return nil, false + } + return o.StockReservation, true +} + +// HasStockReservation returns a boolean if a field has been set. +func (o *StockTransferDataRelationships) HasStockReservation() bool { + if o != nil && !IsNil(o.StockReservation) { + return true + } + + return false +} + +// SetStockReservation gets a reference to the given LineItemDataRelationshipsStockReservations and assigns it to the StockReservation field. +func (o *StockTransferDataRelationships) SetStockReservation(v LineItemDataRelationshipsStockReservations) { + o.StockReservation = &v +} + +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *StockTransferDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret AuthorizationDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockTransferDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *StockTransferDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *StockTransferDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { + o.Attachments = &v +} + // GetEvents returns the Events field value if set, zero value otherwise. -func (o *StockTransferDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { +func (o *StockTransferDataRelationships) GetEvents() AddressDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents + var ret AddressDataRelationshipsEvents return ret } return *o.Events @@ -216,7 +283,7 @@ func (o *StockTransferDataRelationships) GetEvents() AuthorizationDataRelationsh // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *StockTransferDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { +func (o *StockTransferDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -232,11 +299,43 @@ func (o *StockTransferDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *StockTransferDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *StockTransferDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { o.Events = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *StockTransferDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockTransferDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *StockTransferDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *StockTransferDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o StockTransferDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -262,9 +361,18 @@ func (o StockTransferDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.LineItem) { toSerialize["line_item"] = o.LineItem } + if !IsNil(o.StockReservation) { + toSerialize["stock_reservation"] = o.StockReservation + } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_stock_transfer_update.go b/api/model_stock_transfer_update.go index a8148da1..2ee7d0a1 100644 --- a/api/model_stock_transfer_update.go +++ b/api/model_stock_transfer_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_transfer_update_data.go b/api/model_stock_transfer_update_data.go index f3cbb54f..260da84d 100644 --- a/api/model_stock_transfer_update_data.go +++ b/api/model_stock_transfer_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stock_transfer_update_data_relationships.go b/api/model_stock_transfer_update_data_relationships.go index bb508405..4afb0ddf 100644 --- a/api/model_stock_transfer_update_data_relationships.go +++ b/api/model_stock_transfer_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,6 +23,8 @@ type StockTransferUpdateDataRelationships struct { Sku *InStockSubscriptionCreateDataRelationshipsSku `json:"sku,omitempty"` OriginStockLocation *DeliveryLeadTimeCreateDataRelationshipsStockLocation `json:"origin_stock_location,omitempty"` DestinationStockLocation *DeliveryLeadTimeCreateDataRelationshipsStockLocation `json:"destination_stock_location,omitempty"` + Shipment *ParcelCreateDataRelationshipsShipment `json:"shipment,omitempty"` + LineItem *LineItemOptionCreateDataRelationshipsLineItem `json:"line_item,omitempty"` } // NewStockTransferUpdateDataRelationships instantiates a new StockTransferUpdateDataRelationships object @@ -138,6 +140,70 @@ func (o *StockTransferUpdateDataRelationships) SetDestinationStockLocation(v Del o.DestinationStockLocation = &v } +// GetShipment returns the Shipment field value if set, zero value otherwise. +func (o *StockTransferUpdateDataRelationships) GetShipment() ParcelCreateDataRelationshipsShipment { + if o == nil || IsNil(o.Shipment) { + var ret ParcelCreateDataRelationshipsShipment + return ret + } + return *o.Shipment +} + +// GetShipmentOk returns a tuple with the Shipment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockTransferUpdateDataRelationships) GetShipmentOk() (*ParcelCreateDataRelationshipsShipment, bool) { + if o == nil || IsNil(o.Shipment) { + return nil, false + } + return o.Shipment, true +} + +// HasShipment returns a boolean if a field has been set. +func (o *StockTransferUpdateDataRelationships) HasShipment() bool { + if o != nil && !IsNil(o.Shipment) { + return true + } + + return false +} + +// SetShipment gets a reference to the given ParcelCreateDataRelationshipsShipment and assigns it to the Shipment field. +func (o *StockTransferUpdateDataRelationships) SetShipment(v ParcelCreateDataRelationshipsShipment) { + o.Shipment = &v +} + +// GetLineItem returns the LineItem field value if set, zero value otherwise. +func (o *StockTransferUpdateDataRelationships) GetLineItem() LineItemOptionCreateDataRelationshipsLineItem { + if o == nil || IsNil(o.LineItem) { + var ret LineItemOptionCreateDataRelationshipsLineItem + return ret + } + return *o.LineItem +} + +// GetLineItemOk returns a tuple with the LineItem field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StockTransferUpdateDataRelationships) GetLineItemOk() (*LineItemOptionCreateDataRelationshipsLineItem, bool) { + if o == nil || IsNil(o.LineItem) { + return nil, false + } + return o.LineItem, true +} + +// HasLineItem returns a boolean if a field has been set. +func (o *StockTransferUpdateDataRelationships) HasLineItem() bool { + if o != nil && !IsNil(o.LineItem) { + return true + } + + return false +} + +// SetLineItem gets a reference to the given LineItemOptionCreateDataRelationshipsLineItem and assigns it to the LineItem field. +func (o *StockTransferUpdateDataRelationships) SetLineItem(v LineItemOptionCreateDataRelationshipsLineItem) { + o.LineItem = &v +} + func (o StockTransferUpdateDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -157,6 +223,12 @@ func (o StockTransferUpdateDataRelationships) ToMap() (map[string]interface{}, e if !IsNil(o.DestinationStockLocation) { toSerialize["destination_stock_location"] = o.DestinationStockLocation } + if !IsNil(o.Shipment) { + toSerialize["shipment"] = o.Shipment + } + if !IsNil(o.LineItem) { + toSerialize["line_item"] = o.LineItem + } return toSerialize, nil } diff --git a/api/model_stripe_gateway.go b/api/model_stripe_gateway.go index 4dc800e9..12b06636 100644 --- a/api/model_stripe_gateway.go +++ b/api/model_stripe_gateway.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stripe_gateway_create.go b/api/model_stripe_gateway_create.go index e83d4985..f980c749 100644 --- a/api/model_stripe_gateway_create.go +++ b/api/model_stripe_gateway_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stripe_gateway_create_data.go b/api/model_stripe_gateway_create_data.go index 00cf5b7d..ce56ca6b 100644 --- a/api/model_stripe_gateway_create_data.go +++ b/api/model_stripe_gateway_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stripe_gateway_data.go b/api/model_stripe_gateway_data.go index dcb13e53..cc5954ed 100644 --- a/api/model_stripe_gateway_data.go +++ b/api/model_stripe_gateway_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stripe_gateway_data_relationships.go b/api/model_stripe_gateway_data_relationships.go index 9d496a85..acbc1306 100644 --- a/api/model_stripe_gateway_data_relationships.go +++ b/api/model_stripe_gateway_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &StripeGatewayDataRelationships{} // StripeGatewayDataRelationships struct for StripeGatewayDataRelationships type StripeGatewayDataRelationships struct { PaymentMethods *AdyenGatewayDataRelationshipsPaymentMethods `json:"payment_methods,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` StripePayments *StripeGatewayDataRelationshipsStripePayments `json:"stripe_payments,omitempty"` } @@ -73,6 +74,38 @@ func (o *StripeGatewayDataRelationships) SetPaymentMethods(v AdyenGatewayDataRel o.PaymentMethods = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *StripeGatewayDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *StripeGatewayDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *StripeGatewayDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *StripeGatewayDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + // GetStripePayments returns the StripePayments field value if set, zero value otherwise. func (o *StripeGatewayDataRelationships) GetStripePayments() StripeGatewayDataRelationshipsStripePayments { if o == nil || IsNil(o.StripePayments) { @@ -118,6 +151,9 @@ func (o StripeGatewayDataRelationships) ToMap() (map[string]interface{}, error) if !IsNil(o.PaymentMethods) { toSerialize["payment_methods"] = o.PaymentMethods } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } if !IsNil(o.StripePayments) { toSerialize["stripe_payments"] = o.StripePayments } diff --git a/api/model_stripe_gateway_data_relationships_stripe_payments.go b/api/model_stripe_gateway_data_relationships_stripe_payments.go index 94723aa6..a2d11974 100644 --- a/api/model_stripe_gateway_data_relationships_stripe_payments.go +++ b/api/model_stripe_gateway_data_relationships_stripe_payments.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stripe_gateway_data_relationships_stripe_payments_data.go b/api/model_stripe_gateway_data_relationships_stripe_payments_data.go index 52fd09bc..78d78957 100644 --- a/api/model_stripe_gateway_data_relationships_stripe_payments_data.go +++ b/api/model_stripe_gateway_data_relationships_stripe_payments_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stripe_gateway_update.go b/api/model_stripe_gateway_update.go index 20ad8b14..da2fe722 100644 --- a/api/model_stripe_gateway_update.go +++ b/api/model_stripe_gateway_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stripe_gateway_update_data.go b/api/model_stripe_gateway_update_data.go index d7bd2e5a..eb86aa99 100644 --- a/api/model_stripe_gateway_update_data.go +++ b/api/model_stripe_gateway_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stripe_payment.go b/api/model_stripe_payment.go index d86b96ef..182de795 100644 --- a/api/model_stripe_payment.go +++ b/api/model_stripe_payment.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stripe_payment_create.go b/api/model_stripe_payment_create.go index f569f1ee..b8c8d2b5 100644 --- a/api/model_stripe_payment_create.go +++ b/api/model_stripe_payment_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stripe_payment_create_data.go b/api/model_stripe_payment_create_data.go index 7970a3e6..e7f3c829 100644 --- a/api/model_stripe_payment_create_data.go +++ b/api/model_stripe_payment_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stripe_payment_data.go b/api/model_stripe_payment_data.go index 75017868..487de46d 100644 --- a/api/model_stripe_payment_data.go +++ b/api/model_stripe_payment_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stripe_payment_update.go b/api/model_stripe_payment_update.go index a877e138..b616252f 100644 --- a/api/model_stripe_payment_update.go +++ b/api/model_stripe_payment_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_stripe_payment_update_data.go b/api/model_stripe_payment_update_data.go index 639713ee..1e7fef3e 100644 --- a/api/model_stripe_payment_update_data.go +++ b/api/model_stripe_payment_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_subscription_model.go b/api/model_subscription_model.go index 9333e4b9..a23d8fed 100644 --- a/api/model_subscription_model.go +++ b/api/model_subscription_model.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_subscription_model_create.go b/api/model_subscription_model_create.go index a7490525..97e3f6f7 100644 --- a/api/model_subscription_model_create.go +++ b/api/model_subscription_model_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_subscription_model_create_data.go b/api/model_subscription_model_create_data.go index 90cfff2e..2409932d 100644 --- a/api/model_subscription_model_create_data.go +++ b/api/model_subscription_model_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_subscription_model_data.go b/api/model_subscription_model_data.go index 45bf4936..73c6a940 100644 --- a/api/model_subscription_model_data.go +++ b/api/model_subscription_model_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_subscription_model_data_relationships.go b/api/model_subscription_model_data_relationships.go index 57c87fcc..6f07a61e 100644 --- a/api/model_subscription_model_data_relationships.go +++ b/api/model_subscription_model_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -22,7 +22,7 @@ var _ MappedNullable = &SubscriptionModelDataRelationships{} type SubscriptionModelDataRelationships struct { Markets *AvalaraAccountDataRelationshipsMarkets `json:"markets,omitempty"` OrderSubscriptions *CustomerDataRelationshipsOrderSubscriptions `json:"order_subscriptions,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` } // NewSubscriptionModelDataRelationships instantiates a new SubscriptionModelDataRelationships object @@ -107,9 +107,9 @@ func (o *SubscriptionModelDataRelationships) SetOrderSubscriptions(v CustomerDat } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *SubscriptionModelDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *SubscriptionModelDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -117,7 +117,7 @@ func (o *SubscriptionModelDataRelationships) GetAttachments() AvalaraAccountData // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SubscriptionModelDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *SubscriptionModelDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -133,8 +133,8 @@ func (o *SubscriptionModelDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *SubscriptionModelDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *SubscriptionModelDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } diff --git a/api/model_subscription_model_update.go b/api/model_subscription_model_update.go index b00c12ca..bd9f4e74 100644 --- a/api/model_subscription_model_update.go +++ b/api/model_subscription_model_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_subscription_model_update_data.go b/api/model_subscription_model_update_data.go index 02671b3e..ffd36e0d 100644 --- a/api/model_subscription_model_update_data.go +++ b/api/model_subscription_model_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tag.go b/api/model_tag.go new file mode 100644 index 00000000..a23eafa3 --- /dev/null +++ b/api/model_tag.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the Tag type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Tag{} + +// Tag struct for Tag +type Tag struct { + Data *TagData `json:"data,omitempty"` +} + +// NewTag instantiates a new Tag object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTag() *Tag { + this := Tag{} + return &this +} + +// NewTagWithDefaults instantiates a new Tag object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTagWithDefaults() *Tag { + this := Tag{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *Tag) GetData() TagData { + if o == nil || IsNil(o.Data) { + var ret TagData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tag) GetDataOk() (*TagData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *Tag) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given TagData and assigns it to the Data field. +func (o *Tag) SetData(v TagData) { + o.Data = &v +} + +func (o Tag) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Tag) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableTag struct { + value *Tag + isSet bool +} + +func (v NullableTag) Get() *Tag { + return v.value +} + +func (v *NullableTag) Set(val *Tag) { + v.value = val + v.isSet = true +} + +func (v NullableTag) IsSet() bool { + return v.isSet +} + +func (v *NullableTag) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTag(val *Tag) *NullableTag { + return &NullableTag{value: val, isSet: true} +} + +func (v NullableTag) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTag) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_tag_create.go b/api/model_tag_create.go new file mode 100644 index 00000000..db503ce5 --- /dev/null +++ b/api/model_tag_create.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the TagCreate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TagCreate{} + +// TagCreate struct for TagCreate +type TagCreate struct { + Data TagCreateData `json:"data"` +} + +// NewTagCreate instantiates a new TagCreate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTagCreate(data TagCreateData) *TagCreate { + this := TagCreate{} + this.Data = data + return &this +} + +// NewTagCreateWithDefaults instantiates a new TagCreate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTagCreateWithDefaults() *TagCreate { + this := TagCreate{} + return &this +} + +// GetData returns the Data field value +func (o *TagCreate) GetData() TagCreateData { + if o == nil { + var ret TagCreateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *TagCreate) GetDataOk() (*TagCreateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *TagCreate) SetData(v TagCreateData) { + o.Data = v +} + +func (o TagCreate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TagCreate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableTagCreate struct { + value *TagCreate + isSet bool +} + +func (v NullableTagCreate) Get() *TagCreate { + return v.value +} + +func (v *NullableTagCreate) Set(val *TagCreate) { + v.value = val + v.isSet = true +} + +func (v NullableTagCreate) IsSet() bool { + return v.isSet +} + +func (v *NullableTagCreate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagCreate(val *TagCreate) *NullableTagCreate { + return &NullableTagCreate{value: val, isSet: true} +} + +func (v NullableTagCreate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagCreate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_tag_create_data.go b/api/model_tag_create_data.go new file mode 100644 index 00000000..edea70ba --- /dev/null +++ b/api/model_tag_create_data.go @@ -0,0 +1,185 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the TagCreateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TagCreateData{} + +// TagCreateData struct for TagCreateData +type TagCreateData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes POSTTags201ResponseDataAttributes `json:"attributes"` + Relationships interface{} `json:"relationships,omitempty"` +} + +// NewTagCreateData instantiates a new TagCreateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTagCreateData(type_ interface{}, attributes POSTTags201ResponseDataAttributes) *TagCreateData { + this := TagCreateData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewTagCreateDataWithDefaults instantiates a new TagCreateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTagCreateDataWithDefaults() *TagCreateData { + this := TagCreateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *TagCreateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TagCreateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *TagCreateData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *TagCreateData) GetAttributes() POSTTags201ResponseDataAttributes { + if o == nil { + var ret POSTTags201ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *TagCreateData) GetAttributesOk() (*POSTTags201ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *TagCreateData) SetAttributes(v POSTTags201ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TagCreateData) GetRelationships() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TagCreateData) GetRelationshipsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return &o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *TagCreateData) HasRelationships() bool { + if o != nil && IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. +func (o *TagCreateData) SetRelationships(v interface{}) { + o.Relationships = v +} + +func (o TagCreateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TagCreateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if o.Relationships != nil { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableTagCreateData struct { + value *TagCreateData + isSet bool +} + +func (v NullableTagCreateData) Get() *TagCreateData { + return v.value +} + +func (v *NullableTagCreateData) Set(val *TagCreateData) { + v.value = val + v.isSet = true +} + +func (v NullableTagCreateData) IsSet() bool { + return v.isSet +} + +func (v *NullableTagCreateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagCreateData(val *TagCreateData) *NullableTagCreateData { + return &NullableTagCreateData{value: val, isSet: true} +} + +func (v NullableTagCreateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagCreateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_tag_data.go b/api/model_tag_data.go new file mode 100644 index 00000000..41d47636 --- /dev/null +++ b/api/model_tag_data.go @@ -0,0 +1,185 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the TagData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TagData{} + +// TagData struct for TagData +type TagData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes GETTagsTagId200ResponseDataAttributes `json:"attributes"` + Relationships interface{} `json:"relationships,omitempty"` +} + +// NewTagData instantiates a new TagData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTagData(type_ interface{}, attributes GETTagsTagId200ResponseDataAttributes) *TagData { + this := TagData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewTagDataWithDefaults instantiates a new TagData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTagDataWithDefaults() *TagData { + this := TagData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *TagData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TagData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *TagData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *TagData) GetAttributes() GETTagsTagId200ResponseDataAttributes { + if o == nil { + var ret GETTagsTagId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *TagData) GetAttributesOk() (*GETTagsTagId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *TagData) SetAttributes(v GETTagsTagId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TagData) GetRelationships() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TagData) GetRelationshipsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return &o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *TagData) HasRelationships() bool { + if o != nil && IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. +func (o *TagData) SetRelationships(v interface{}) { + o.Relationships = v +} + +func (o TagData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TagData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if o.Relationships != nil { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableTagData struct { + value *TagData + isSet bool +} + +func (v NullableTagData) Get() *TagData { + return v.value +} + +func (v *NullableTagData) Set(val *TagData) { + v.value = val + v.isSet = true +} + +func (v NullableTagData) IsSet() bool { + return v.isSet +} + +func (v *NullableTagData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagData(val *TagData) *NullableTagData { + return &NullableTagData{value: val, isSet: true} +} + +func (v NullableTagData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_tag_update.go b/api/model_tag_update.go new file mode 100644 index 00000000..370e25c5 --- /dev/null +++ b/api/model_tag_update.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the TagUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TagUpdate{} + +// TagUpdate struct for TagUpdate +type TagUpdate struct { + Data TagUpdateData `json:"data"` +} + +// NewTagUpdate instantiates a new TagUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTagUpdate(data TagUpdateData) *TagUpdate { + this := TagUpdate{} + this.Data = data + return &this +} + +// NewTagUpdateWithDefaults instantiates a new TagUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTagUpdateWithDefaults() *TagUpdate { + this := TagUpdate{} + return &this +} + +// GetData returns the Data field value +func (o *TagUpdate) GetData() TagUpdateData { + if o == nil { + var ret TagUpdateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *TagUpdate) GetDataOk() (*TagUpdateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *TagUpdate) SetData(v TagUpdateData) { + o.Data = v +} + +func (o TagUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TagUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableTagUpdate struct { + value *TagUpdate + isSet bool +} + +func (v NullableTagUpdate) Get() *TagUpdate { + return v.value +} + +func (v *NullableTagUpdate) Set(val *TagUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableTagUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableTagUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagUpdate(val *TagUpdate) *NullableTagUpdate { + return &NullableTagUpdate{value: val, isSet: true} +} + +func (v NullableTagUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_tag_update_data.go b/api/model_tag_update_data.go new file mode 100644 index 00000000..52fad348 --- /dev/null +++ b/api/model_tag_update_data.go @@ -0,0 +1,217 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the TagUpdateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TagUpdateData{} + +// TagUpdateData struct for TagUpdateData +type TagUpdateData struct { + // The resource's type + Type interface{} `json:"type"` + // The resource's id + Id interface{} `json:"id"` + Attributes PATCHTagsTagId200ResponseDataAttributes `json:"attributes"` + Relationships interface{} `json:"relationships,omitempty"` +} + +// NewTagUpdateData instantiates a new TagUpdateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTagUpdateData(type_ interface{}, id interface{}, attributes PATCHTagsTagId200ResponseDataAttributes) *TagUpdateData { + this := TagUpdateData{} + this.Type = type_ + this.Id = id + this.Attributes = attributes + return &this +} + +// NewTagUpdateDataWithDefaults instantiates a new TagUpdateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTagUpdateDataWithDefaults() *TagUpdateData { + this := TagUpdateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *TagUpdateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TagUpdateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *TagUpdateData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *TagUpdateData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TagUpdateData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *TagUpdateData) SetId(v interface{}) { + o.Id = v +} + +// GetAttributes returns the Attributes field value +func (o *TagUpdateData) GetAttributes() PATCHTagsTagId200ResponseDataAttributes { + if o == nil { + var ret PATCHTagsTagId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *TagUpdateData) GetAttributesOk() (*PATCHTagsTagId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *TagUpdateData) SetAttributes(v PATCHTagsTagId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TagUpdateData) GetRelationships() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TagUpdateData) GetRelationshipsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return &o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *TagUpdateData) HasRelationships() bool { + if o != nil && IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. +func (o *TagUpdateData) SetRelationships(v interface{}) { + o.Relationships = v +} + +func (o TagUpdateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TagUpdateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + toSerialize["attributes"] = o.Attributes + if o.Relationships != nil { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableTagUpdateData struct { + value *TagUpdateData + isSet bool +} + +func (v NullableTagUpdateData) Get() *TagUpdateData { + return v.value +} + +func (v *NullableTagUpdateData) Set(val *TagUpdateData) { + v.value = val + v.isSet = true +} + +func (v NullableTagUpdateData) IsSet() bool { + return v.isSet +} + +func (v *NullableTagUpdateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTagUpdateData(val *TagUpdateData) *NullableTagUpdateData { + return &NullableTagUpdateData{value: val, isSet: true} +} + +func (v NullableTagUpdateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTagUpdateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_tax_calculator.go b/api/model_tax_calculator.go index 16dd0965..cee3259f 100644 --- a/api/model_tax_calculator.go +++ b/api/model_tax_calculator.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tax_calculator_data.go b/api/model_tax_calculator_data.go index fc2ce71e..decf8806 100644 --- a/api/model_tax_calculator_data.go +++ b/api/model_tax_calculator_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tax_category.go b/api/model_tax_category.go index 1a227a31..6c82dd7c 100644 --- a/api/model_tax_category.go +++ b/api/model_tax_category.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tax_category_create.go b/api/model_tax_category_create.go index 06c44da2..33f76a3c 100644 --- a/api/model_tax_category_create.go +++ b/api/model_tax_category_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tax_category_create_data.go b/api/model_tax_category_create_data.go index 6f4876f4..12af6360 100644 --- a/api/model_tax_category_create_data.go +++ b/api/model_tax_category_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tax_category_create_data_relationships.go b/api/model_tax_category_create_data_relationships.go index 40686f41..ab90669e 100644 --- a/api/model_tax_category_create_data_relationships.go +++ b/api/model_tax_category_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,15 +20,15 @@ var _ MappedNullable = &TaxCategoryCreateDataRelationships{} // TaxCategoryCreateDataRelationships struct for TaxCategoryCreateDataRelationships type TaxCategoryCreateDataRelationships struct { - Sku InStockSubscriptionCreateDataRelationshipsSku `json:"sku"` - TaxCalculator TaxCategoryCreateDataRelationshipsTaxCalculator `json:"tax_calculator"` + Sku InStockSubscriptionCreateDataRelationshipsSku `json:"sku"` + TaxCalculator MarketCreateDataRelationshipsTaxCalculator `json:"tax_calculator"` } // NewTaxCategoryCreateDataRelationships instantiates a new TaxCategoryCreateDataRelationships object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewTaxCategoryCreateDataRelationships(sku InStockSubscriptionCreateDataRelationshipsSku, taxCalculator TaxCategoryCreateDataRelationshipsTaxCalculator) *TaxCategoryCreateDataRelationships { +func NewTaxCategoryCreateDataRelationships(sku InStockSubscriptionCreateDataRelationshipsSku, taxCalculator MarketCreateDataRelationshipsTaxCalculator) *TaxCategoryCreateDataRelationships { this := TaxCategoryCreateDataRelationships{} this.Sku = sku this.TaxCalculator = taxCalculator @@ -68,9 +68,9 @@ func (o *TaxCategoryCreateDataRelationships) SetSku(v InStockSubscriptionCreateD } // GetTaxCalculator returns the TaxCalculator field value -func (o *TaxCategoryCreateDataRelationships) GetTaxCalculator() TaxCategoryCreateDataRelationshipsTaxCalculator { +func (o *TaxCategoryCreateDataRelationships) GetTaxCalculator() MarketCreateDataRelationshipsTaxCalculator { if o == nil { - var ret TaxCategoryCreateDataRelationshipsTaxCalculator + var ret MarketCreateDataRelationshipsTaxCalculator return ret } @@ -79,7 +79,7 @@ func (o *TaxCategoryCreateDataRelationships) GetTaxCalculator() TaxCategoryCreat // GetTaxCalculatorOk returns a tuple with the TaxCalculator field value // and a boolean to check if the value has been set. -func (o *TaxCategoryCreateDataRelationships) GetTaxCalculatorOk() (*TaxCategoryCreateDataRelationshipsTaxCalculator, bool) { +func (o *TaxCategoryCreateDataRelationships) GetTaxCalculatorOk() (*MarketCreateDataRelationshipsTaxCalculator, bool) { if o == nil { return nil, false } @@ -87,7 +87,7 @@ func (o *TaxCategoryCreateDataRelationships) GetTaxCalculatorOk() (*TaxCategoryC } // SetTaxCalculator sets field value -func (o *TaxCategoryCreateDataRelationships) SetTaxCalculator(v TaxCategoryCreateDataRelationshipsTaxCalculator) { +func (o *TaxCategoryCreateDataRelationships) SetTaxCalculator(v MarketCreateDataRelationshipsTaxCalculator) { o.TaxCalculator = v } diff --git a/api/model_tax_category_create_data_relationships_tax_calculator.go b/api/model_tax_category_create_data_relationships_tax_calculator.go deleted file mode 100644 index b51ec203..00000000 --- a/api/model_tax_category_create_data_relationships_tax_calculator.go +++ /dev/null @@ -1,116 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the TaxCategoryCreateDataRelationshipsTaxCalculator type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TaxCategoryCreateDataRelationshipsTaxCalculator{} - -// TaxCategoryCreateDataRelationshipsTaxCalculator struct for TaxCategoryCreateDataRelationshipsTaxCalculator -type TaxCategoryCreateDataRelationshipsTaxCalculator struct { - Data TaxCategoryDataRelationshipsTaxCalculatorData `json:"data"` -} - -// NewTaxCategoryCreateDataRelationshipsTaxCalculator instantiates a new TaxCategoryCreateDataRelationshipsTaxCalculator object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTaxCategoryCreateDataRelationshipsTaxCalculator(data TaxCategoryDataRelationshipsTaxCalculatorData) *TaxCategoryCreateDataRelationshipsTaxCalculator { - this := TaxCategoryCreateDataRelationshipsTaxCalculator{} - this.Data = data - return &this -} - -// NewTaxCategoryCreateDataRelationshipsTaxCalculatorWithDefaults instantiates a new TaxCategoryCreateDataRelationshipsTaxCalculator object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTaxCategoryCreateDataRelationshipsTaxCalculatorWithDefaults() *TaxCategoryCreateDataRelationshipsTaxCalculator { - this := TaxCategoryCreateDataRelationshipsTaxCalculator{} - return &this -} - -// GetData returns the Data field value -func (o *TaxCategoryCreateDataRelationshipsTaxCalculator) GetData() TaxCategoryDataRelationshipsTaxCalculatorData { - if o == nil { - var ret TaxCategoryDataRelationshipsTaxCalculatorData - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *TaxCategoryCreateDataRelationshipsTaxCalculator) GetDataOk() (*TaxCategoryDataRelationshipsTaxCalculatorData, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *TaxCategoryCreateDataRelationshipsTaxCalculator) SetData(v TaxCategoryDataRelationshipsTaxCalculatorData) { - o.Data = v -} - -func (o TaxCategoryCreateDataRelationshipsTaxCalculator) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TaxCategoryCreateDataRelationshipsTaxCalculator) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - return toSerialize, nil -} - -type NullableTaxCategoryCreateDataRelationshipsTaxCalculator struct { - value *TaxCategoryCreateDataRelationshipsTaxCalculator - isSet bool -} - -func (v NullableTaxCategoryCreateDataRelationshipsTaxCalculator) Get() *TaxCategoryCreateDataRelationshipsTaxCalculator { - return v.value -} - -func (v *NullableTaxCategoryCreateDataRelationshipsTaxCalculator) Set(val *TaxCategoryCreateDataRelationshipsTaxCalculator) { - v.value = val - v.isSet = true -} - -func (v NullableTaxCategoryCreateDataRelationshipsTaxCalculator) IsSet() bool { - return v.isSet -} - -func (v *NullableTaxCategoryCreateDataRelationshipsTaxCalculator) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTaxCategoryCreateDataRelationshipsTaxCalculator(val *TaxCategoryCreateDataRelationshipsTaxCalculator) *NullableTaxCategoryCreateDataRelationshipsTaxCalculator { - return &NullableTaxCategoryCreateDataRelationshipsTaxCalculator{value: val, isSet: true} -} - -func (v NullableTaxCategoryCreateDataRelationshipsTaxCalculator) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTaxCategoryCreateDataRelationshipsTaxCalculator) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_tax_category_data.go b/api/model_tax_category_data.go index d99268ee..1b2899bd 100644 --- a/api/model_tax_category_data.go +++ b/api/model_tax_category_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tax_category_data_relationships.go b/api/model_tax_category_data_relationships.go index da7cfb54..05470e78 100644 --- a/api/model_tax_category_data_relationships.go +++ b/api/model_tax_category_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,9 +20,10 @@ var _ MappedNullable = &TaxCategoryDataRelationships{} // TaxCategoryDataRelationships struct for TaxCategoryDataRelationships type TaxCategoryDataRelationships struct { - Sku *BundleDataRelationshipsSkus `json:"sku,omitempty"` - TaxCalculator *TaxCategoryDataRelationshipsTaxCalculator `json:"tax_calculator,omitempty"` - Attachments *AvalaraAccountDataRelationshipsAttachments `json:"attachments,omitempty"` + Sku *BundleDataRelationshipsSkus `json:"sku,omitempty"` + TaxCalculator *MarketDataRelationshipsTaxCalculator `json:"tax_calculator,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewTaxCategoryDataRelationships instantiates a new TaxCategoryDataRelationships object @@ -75,9 +76,9 @@ func (o *TaxCategoryDataRelationships) SetSku(v BundleDataRelationshipsSkus) { } // GetTaxCalculator returns the TaxCalculator field value if set, zero value otherwise. -func (o *TaxCategoryDataRelationships) GetTaxCalculator() TaxCategoryDataRelationshipsTaxCalculator { +func (o *TaxCategoryDataRelationships) GetTaxCalculator() MarketDataRelationshipsTaxCalculator { if o == nil || IsNil(o.TaxCalculator) { - var ret TaxCategoryDataRelationshipsTaxCalculator + var ret MarketDataRelationshipsTaxCalculator return ret } return *o.TaxCalculator @@ -85,7 +86,7 @@ func (o *TaxCategoryDataRelationships) GetTaxCalculator() TaxCategoryDataRelatio // GetTaxCalculatorOk returns a tuple with the TaxCalculator field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *TaxCategoryDataRelationships) GetTaxCalculatorOk() (*TaxCategoryDataRelationshipsTaxCalculator, bool) { +func (o *TaxCategoryDataRelationships) GetTaxCalculatorOk() (*MarketDataRelationshipsTaxCalculator, bool) { if o == nil || IsNil(o.TaxCalculator) { return nil, false } @@ -101,15 +102,15 @@ func (o *TaxCategoryDataRelationships) HasTaxCalculator() bool { return false } -// SetTaxCalculator gets a reference to the given TaxCategoryDataRelationshipsTaxCalculator and assigns it to the TaxCalculator field. -func (o *TaxCategoryDataRelationships) SetTaxCalculator(v TaxCategoryDataRelationshipsTaxCalculator) { +// SetTaxCalculator gets a reference to the given MarketDataRelationshipsTaxCalculator and assigns it to the TaxCalculator field. +func (o *TaxCategoryDataRelationships) SetTaxCalculator(v MarketDataRelationshipsTaxCalculator) { o.TaxCalculator = &v } // GetAttachments returns the Attachments field value if set, zero value otherwise. -func (o *TaxCategoryDataRelationships) GetAttachments() AvalaraAccountDataRelationshipsAttachments { +func (o *TaxCategoryDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { if o == nil || IsNil(o.Attachments) { - var ret AvalaraAccountDataRelationshipsAttachments + var ret AuthorizationDataRelationshipsAttachments return ret } return *o.Attachments @@ -117,7 +118,7 @@ func (o *TaxCategoryDataRelationships) GetAttachments() AvalaraAccountDataRelati // GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *TaxCategoryDataRelationships) GetAttachmentsOk() (*AvalaraAccountDataRelationshipsAttachments, bool) { +func (o *TaxCategoryDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { if o == nil || IsNil(o.Attachments) { return nil, false } @@ -133,11 +134,43 @@ func (o *TaxCategoryDataRelationships) HasAttachments() bool { return false } -// SetAttachments gets a reference to the given AvalaraAccountDataRelationshipsAttachments and assigns it to the Attachments field. -func (o *TaxCategoryDataRelationships) SetAttachments(v AvalaraAccountDataRelationshipsAttachments) { +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *TaxCategoryDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { o.Attachments = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *TaxCategoryDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TaxCategoryDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *TaxCategoryDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *TaxCategoryDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o TaxCategoryDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -157,6 +190,9 @@ func (o TaxCategoryDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Attachments) { toSerialize["attachments"] = o.Attachments } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_tax_category_data_relationships_tax_calculator.go b/api/model_tax_category_data_relationships_tax_calculator.go deleted file mode 100644 index efdca7e3..00000000 --- a/api/model_tax_category_data_relationships_tax_calculator.go +++ /dev/null @@ -1,125 +0,0 @@ -/* -Commerce Layer API - -Headless Commerce for Global Brands. - -API version: 4.1.3 -Contact: support@commercelayer.io -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package api - -import ( - "encoding/json" -) - -// checks if the TaxCategoryDataRelationshipsTaxCalculator type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TaxCategoryDataRelationshipsTaxCalculator{} - -// TaxCategoryDataRelationshipsTaxCalculator struct for TaxCategoryDataRelationshipsTaxCalculator -type TaxCategoryDataRelationshipsTaxCalculator struct { - Data *TaxCategoryDataRelationshipsTaxCalculatorData `json:"data,omitempty"` -} - -// NewTaxCategoryDataRelationshipsTaxCalculator instantiates a new TaxCategoryDataRelationshipsTaxCalculator object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTaxCategoryDataRelationshipsTaxCalculator() *TaxCategoryDataRelationshipsTaxCalculator { - this := TaxCategoryDataRelationshipsTaxCalculator{} - return &this -} - -// NewTaxCategoryDataRelationshipsTaxCalculatorWithDefaults instantiates a new TaxCategoryDataRelationshipsTaxCalculator object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTaxCategoryDataRelationshipsTaxCalculatorWithDefaults() *TaxCategoryDataRelationshipsTaxCalculator { - this := TaxCategoryDataRelationshipsTaxCalculator{} - return &this -} - -// GetData returns the Data field value if set, zero value otherwise. -func (o *TaxCategoryDataRelationshipsTaxCalculator) GetData() TaxCategoryDataRelationshipsTaxCalculatorData { - if o == nil || IsNil(o.Data) { - var ret TaxCategoryDataRelationshipsTaxCalculatorData - return ret - } - return *o.Data -} - -// GetDataOk returns a tuple with the Data field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TaxCategoryDataRelationshipsTaxCalculator) GetDataOk() (*TaxCategoryDataRelationshipsTaxCalculatorData, bool) { - if o == nil || IsNil(o.Data) { - return nil, false - } - return o.Data, true -} - -// HasData returns a boolean if a field has been set. -func (o *TaxCategoryDataRelationshipsTaxCalculator) HasData() bool { - if o != nil && !IsNil(o.Data) { - return true - } - - return false -} - -// SetData gets a reference to the given TaxCategoryDataRelationshipsTaxCalculatorData and assigns it to the Data field. -func (o *TaxCategoryDataRelationshipsTaxCalculator) SetData(v TaxCategoryDataRelationshipsTaxCalculatorData) { - o.Data = &v -} - -func (o TaxCategoryDataRelationshipsTaxCalculator) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TaxCategoryDataRelationshipsTaxCalculator) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Data) { - toSerialize["data"] = o.Data - } - return toSerialize, nil -} - -type NullableTaxCategoryDataRelationshipsTaxCalculator struct { - value *TaxCategoryDataRelationshipsTaxCalculator - isSet bool -} - -func (v NullableTaxCategoryDataRelationshipsTaxCalculator) Get() *TaxCategoryDataRelationshipsTaxCalculator { - return v.value -} - -func (v *NullableTaxCategoryDataRelationshipsTaxCalculator) Set(val *TaxCategoryDataRelationshipsTaxCalculator) { - v.value = val - v.isSet = true -} - -func (v NullableTaxCategoryDataRelationshipsTaxCalculator) IsSet() bool { - return v.isSet -} - -func (v *NullableTaxCategoryDataRelationshipsTaxCalculator) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTaxCategoryDataRelationshipsTaxCalculator(val *TaxCategoryDataRelationshipsTaxCalculator) *NullableTaxCategoryDataRelationshipsTaxCalculator { - return &NullableTaxCategoryDataRelationshipsTaxCalculator{value: val, isSet: true} -} - -func (v NullableTaxCategoryDataRelationshipsTaxCalculator) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTaxCategoryDataRelationshipsTaxCalculator) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/api/model_tax_category_update.go b/api/model_tax_category_update.go index dc95dbdb..db8e999f 100644 --- a/api/model_tax_category_update.go +++ b/api/model_tax_category_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tax_category_update_data.go b/api/model_tax_category_update_data.go index 65e1a6df..44cc67a5 100644 --- a/api/model_tax_category_update_data.go +++ b/api/model_tax_category_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tax_category_update_data_relationships.go b/api/model_tax_category_update_data_relationships.go index 13cae065..918af09a 100644 --- a/api/model_tax_category_update_data_relationships.go +++ b/api/model_tax_category_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tax_rule.go b/api/model_tax_rule.go index 5428ce5d..c5ccdefb 100644 --- a/api/model_tax_rule.go +++ b/api/model_tax_rule.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tax_rule_create.go b/api/model_tax_rule_create.go index 32c709ae..ae663be3 100644 --- a/api/model_tax_rule_create.go +++ b/api/model_tax_rule_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tax_rule_create_data.go b/api/model_tax_rule_create_data.go index d07f4a42..43ea8739 100644 --- a/api/model_tax_rule_create_data.go +++ b/api/model_tax_rule_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tax_rule_create_data_relationships.go b/api/model_tax_rule_create_data_relationships.go index b06e644c..76accf78 100644 --- a/api/model_tax_rule_create_data_relationships.go +++ b/api/model_tax_rule_create_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tax_rule_create_data_relationships_manual_tax_calculator.go b/api/model_tax_rule_create_data_relationships_manual_tax_calculator.go index df285750..2946e50e 100644 --- a/api/model_tax_rule_create_data_relationships_manual_tax_calculator.go +++ b/api/model_tax_rule_create_data_relationships_manual_tax_calculator.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tax_rule_data.go b/api/model_tax_rule_data.go index 05ba8e01..f2325307 100644 --- a/api/model_tax_rule_data.go +++ b/api/model_tax_rule_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tax_rule_data_relationships.go b/api/model_tax_rule_data_relationships.go index cfcbc2d7..e1baf02f 100644 --- a/api/model_tax_rule_data_relationships.go +++ b/api/model_tax_rule_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &TaxRuleDataRelationships{} // TaxRuleDataRelationships struct for TaxRuleDataRelationships type TaxRuleDataRelationships struct { ManualTaxCalculator *TaxRuleDataRelationshipsManualTaxCalculator `json:"manual_tax_calculator,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewTaxRuleDataRelationships instantiates a new TaxRuleDataRelationships object @@ -72,6 +73,38 @@ func (o *TaxRuleDataRelationships) SetManualTaxCalculator(v TaxRuleDataRelations o.ManualTaxCalculator = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *TaxRuleDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TaxRuleDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *TaxRuleDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *TaxRuleDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o TaxRuleDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +118,9 @@ func (o TaxRuleDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.ManualTaxCalculator) { toSerialize["manual_tax_calculator"] = o.ManualTaxCalculator } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_tax_rule_data_relationships_manual_tax_calculator.go b/api/model_tax_rule_data_relationships_manual_tax_calculator.go index 4b091a0e..196143ef 100644 --- a/api/model_tax_rule_data_relationships_manual_tax_calculator.go +++ b/api/model_tax_rule_data_relationships_manual_tax_calculator.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tax_rule_data_relationships_manual_tax_calculator_data.go b/api/model_tax_rule_data_relationships_manual_tax_calculator_data.go index 7ee41244..c9112c0d 100644 --- a/api/model_tax_rule_data_relationships_manual_tax_calculator_data.go +++ b/api/model_tax_rule_data_relationships_manual_tax_calculator_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tax_rule_update.go b/api/model_tax_rule_update.go index e78578d0..0f7b4f34 100644 --- a/api/model_tax_rule_update.go +++ b/api/model_tax_rule_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tax_rule_update_data.go b/api/model_tax_rule_update_data.go index 3b67b6e0..7ec2ee7d 100644 --- a/api/model_tax_rule_update_data.go +++ b/api/model_tax_rule_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_tax_rule_update_data_relationships.go b/api/model_tax_rule_update_data_relationships.go index 162b6027..cb7642f4 100644 --- a/api/model_tax_rule_update_data_relationships.go +++ b/api/model_tax_rule_update_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_taxjar_account.go b/api/model_taxjar_account.go index 492a8bb8..4b629d4a 100644 --- a/api/model_taxjar_account.go +++ b/api/model_taxjar_account.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_taxjar_account_create.go b/api/model_taxjar_account_create.go index 4e7a1d79..16046726 100644 --- a/api/model_taxjar_account_create.go +++ b/api/model_taxjar_account_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_taxjar_account_create_data.go b/api/model_taxjar_account_create_data.go index 006f57f0..a17fd30b 100644 --- a/api/model_taxjar_account_create_data.go +++ b/api/model_taxjar_account_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_taxjar_account_data.go b/api/model_taxjar_account_data.go index 63e32b6e..82e99fe3 100644 --- a/api/model_taxjar_account_data.go +++ b/api/model_taxjar_account_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type TaxjarAccountData struct { // The resource's type Type interface{} `json:"type"` Attributes GETManualTaxCalculatorsManualTaxCalculatorId200ResponseDataAttributes `json:"attributes"` - Relationships *AvalaraAccountDataRelationships `json:"relationships,omitempty"` + Relationships *TaxjarAccountDataRelationships `json:"relationships,omitempty"` } // NewTaxjarAccountData instantiates a new TaxjarAccountData object @@ -96,9 +96,9 @@ func (o *TaxjarAccountData) SetAttributes(v GETManualTaxCalculatorsManualTaxCalc } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *TaxjarAccountData) GetRelationships() AvalaraAccountDataRelationships { +func (o *TaxjarAccountData) GetRelationships() TaxjarAccountDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret AvalaraAccountDataRelationships + var ret TaxjarAccountDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *TaxjarAccountData) GetRelationships() AvalaraAccountDataRelationships { // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *TaxjarAccountData) GetRelationshipsOk() (*AvalaraAccountDataRelationships, bool) { +func (o *TaxjarAccountData) GetRelationshipsOk() (*TaxjarAccountDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *TaxjarAccountData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given AvalaraAccountDataRelationships and assigns it to the Relationships field. -func (o *TaxjarAccountData) SetRelationships(v AvalaraAccountDataRelationships) { +// SetRelationships gets a reference to the given TaxjarAccountDataRelationships and assigns it to the Relationships field. +func (o *TaxjarAccountData) SetRelationships(v TaxjarAccountDataRelationships) { o.Relationships = &v } diff --git a/api/model_taxjar_account_data_relationships.go b/api/model_taxjar_account_data_relationships.go new file mode 100644 index 00000000..8ccfc4eb --- /dev/null +++ b/api/model_taxjar_account_data_relationships.go @@ -0,0 +1,233 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the TaxjarAccountDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TaxjarAccountDataRelationships{} + +// TaxjarAccountDataRelationships struct for TaxjarAccountDataRelationships +type TaxjarAccountDataRelationships struct { + Markets *AvalaraAccountDataRelationshipsMarkets `json:"markets,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` + TaxCategories *AvalaraAccountDataRelationshipsTaxCategories `json:"tax_categories,omitempty"` +} + +// NewTaxjarAccountDataRelationships instantiates a new TaxjarAccountDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTaxjarAccountDataRelationships() *TaxjarAccountDataRelationships { + this := TaxjarAccountDataRelationships{} + return &this +} + +// NewTaxjarAccountDataRelationshipsWithDefaults instantiates a new TaxjarAccountDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTaxjarAccountDataRelationshipsWithDefaults() *TaxjarAccountDataRelationships { + this := TaxjarAccountDataRelationships{} + return &this +} + +// GetMarkets returns the Markets field value if set, zero value otherwise. +func (o *TaxjarAccountDataRelationships) GetMarkets() AvalaraAccountDataRelationshipsMarkets { + if o == nil || IsNil(o.Markets) { + var ret AvalaraAccountDataRelationshipsMarkets + return ret + } + return *o.Markets +} + +// GetMarketsOk returns a tuple with the Markets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TaxjarAccountDataRelationships) GetMarketsOk() (*AvalaraAccountDataRelationshipsMarkets, bool) { + if o == nil || IsNil(o.Markets) { + return nil, false + } + return o.Markets, true +} + +// HasMarkets returns a boolean if a field has been set. +func (o *TaxjarAccountDataRelationships) HasMarkets() bool { + if o != nil && !IsNil(o.Markets) { + return true + } + + return false +} + +// SetMarkets gets a reference to the given AvalaraAccountDataRelationshipsMarkets and assigns it to the Markets field. +func (o *TaxjarAccountDataRelationships) SetMarkets(v AvalaraAccountDataRelationshipsMarkets) { + o.Markets = &v +} + +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *TaxjarAccountDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret AuthorizationDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TaxjarAccountDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *TaxjarAccountDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *TaxjarAccountDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { + o.Attachments = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *TaxjarAccountDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TaxjarAccountDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *TaxjarAccountDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *TaxjarAccountDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + +// GetTaxCategories returns the TaxCategories field value if set, zero value otherwise. +func (o *TaxjarAccountDataRelationships) GetTaxCategories() AvalaraAccountDataRelationshipsTaxCategories { + if o == nil || IsNil(o.TaxCategories) { + var ret AvalaraAccountDataRelationshipsTaxCategories + return ret + } + return *o.TaxCategories +} + +// GetTaxCategoriesOk returns a tuple with the TaxCategories field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TaxjarAccountDataRelationships) GetTaxCategoriesOk() (*AvalaraAccountDataRelationshipsTaxCategories, bool) { + if o == nil || IsNil(o.TaxCategories) { + return nil, false + } + return o.TaxCategories, true +} + +// HasTaxCategories returns a boolean if a field has been set. +func (o *TaxjarAccountDataRelationships) HasTaxCategories() bool { + if o != nil && !IsNil(o.TaxCategories) { + return true + } + + return false +} + +// SetTaxCategories gets a reference to the given AvalaraAccountDataRelationshipsTaxCategories and assigns it to the TaxCategories field. +func (o *TaxjarAccountDataRelationships) SetTaxCategories(v AvalaraAccountDataRelationshipsTaxCategories) { + o.TaxCategories = &v +} + +func (o TaxjarAccountDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TaxjarAccountDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Markets) { + toSerialize["markets"] = o.Markets + } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + if !IsNil(o.TaxCategories) { + toSerialize["tax_categories"] = o.TaxCategories + } + return toSerialize, nil +} + +type NullableTaxjarAccountDataRelationships struct { + value *TaxjarAccountDataRelationships + isSet bool +} + +func (v NullableTaxjarAccountDataRelationships) Get() *TaxjarAccountDataRelationships { + return v.value +} + +func (v *NullableTaxjarAccountDataRelationships) Set(val *TaxjarAccountDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableTaxjarAccountDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableTaxjarAccountDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTaxjarAccountDataRelationships(val *TaxjarAccountDataRelationships) *NullableTaxjarAccountDataRelationships { + return &NullableTaxjarAccountDataRelationships{value: val, isSet: true} +} + +func (v NullableTaxjarAccountDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTaxjarAccountDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_taxjar_account_update.go b/api/model_taxjar_account_update.go index 557d513d..5fd131eb 100644 --- a/api/model_taxjar_account_update.go +++ b/api/model_taxjar_account_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_taxjar_account_update_data.go b/api/model_taxjar_account_update_data.go index cefb2476..b7db148c 100644 --- a/api/model_taxjar_account_update_data.go +++ b/api/model_taxjar_account_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_transaction.go b/api/model_transaction.go index a9721a92..964a6f11 100644 --- a/api/model_transaction.go +++ b/api/model_transaction.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_transaction_data.go b/api/model_transaction_data.go index 711c72f6..933dacb5 100644 --- a/api/model_transaction_data.go +++ b/api/model_transaction_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_transaction_data_relationships.go b/api/model_transaction_data_relationships.go index f4bce4cf..5f5b5f26 100644 --- a/api/model_transaction_data_relationships.go +++ b/api/model_transaction_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -20,7 +20,10 @@ var _ MappedNullable = &TransactionDataRelationships{} // TransactionDataRelationships struct for TransactionDataRelationships type TransactionDataRelationships struct { - Order *AdyenPaymentDataRelationshipsOrder `json:"order,omitempty"` + Order *AdyenPaymentDataRelationshipsOrder `json:"order,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewTransactionDataRelationships instantiates a new TransactionDataRelationships object @@ -72,6 +75,102 @@ func (o *TransactionDataRelationships) SetOrder(v AdyenPaymentDataRelationshipsO o.Order = &v } +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *TransactionDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret AuthorizationDataRelationshipsAttachments + return ret + } + return *o.Attachments +} + +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactionDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { + return nil, false + } + return o.Attachments, true +} + +// HasAttachments returns a boolean if a field has been set. +func (o *TransactionDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { + return true + } + + return false +} + +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *TransactionDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { + o.Attachments = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *TransactionDataRelationships) GetEvents() AddressDataRelationshipsEvents { + if o == nil || IsNil(o.Events) { + var ret AddressDataRelationshipsEvents + return ret + } + return *o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactionDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *TransactionDataRelationships) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *TransactionDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { + o.Events = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *TransactionDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactionDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *TransactionDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *TransactionDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o TransactionDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +184,15 @@ func (o TransactionDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Order) { toSerialize["order"] = o.Order } + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_version.go b/api/model_version.go new file mode 100644 index 00000000..3d07b506 --- /dev/null +++ b/api/model_version.go @@ -0,0 +1,125 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the Version type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Version{} + +// Version struct for Version +type Version struct { + Data *VersionData `json:"data,omitempty"` +} + +// NewVersion instantiates a new Version object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVersion() *Version { + this := Version{} + return &this +} + +// NewVersionWithDefaults instantiates a new Version object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVersionWithDefaults() *Version { + this := Version{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *Version) GetData() VersionData { + if o == nil || IsNil(o.Data) { + var ret VersionData + return ret + } + return *o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Version) GetDataOk() (*VersionData, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *Version) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given VersionData and assigns it to the Data field. +func (o *Version) SetData(v VersionData) { + o.Data = &v +} + +func (o Version) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Version) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableVersion struct { + value *Version + isSet bool +} + +func (v NullableVersion) Get() *Version { + return v.value +} + +func (v *NullableVersion) Set(val *Version) { + v.value = val + v.isSet = true +} + +func (v NullableVersion) IsSet() bool { + return v.isSet +} + +func (v *NullableVersion) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVersion(val *Version) *NullableVersion { + return &NullableVersion{value: val, isSet: true} +} + +func (v NullableVersion) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVersion) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_version_data.go b/api/model_version_data.go new file mode 100644 index 00000000..42dcae41 --- /dev/null +++ b/api/model_version_data.go @@ -0,0 +1,185 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the VersionData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VersionData{} + +// VersionData struct for VersionData +type VersionData struct { + // The resource's type + Type interface{} `json:"type"` + Attributes GETVersionsVersionId200ResponseDataAttributes `json:"attributes"` + Relationships interface{} `json:"relationships,omitempty"` +} + +// NewVersionData instantiates a new VersionData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVersionData(type_ interface{}, attributes GETVersionsVersionId200ResponseDataAttributes) *VersionData { + this := VersionData{} + this.Type = type_ + this.Attributes = attributes + return &this +} + +// NewVersionDataWithDefaults instantiates a new VersionData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVersionDataWithDefaults() *VersionData { + this := VersionData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *VersionData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VersionData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *VersionData) SetType(v interface{}) { + o.Type = v +} + +// GetAttributes returns the Attributes field value +func (o *VersionData) GetAttributes() GETVersionsVersionId200ResponseDataAttributes { + if o == nil { + var ret GETVersionsVersionId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *VersionData) GetAttributesOk() (*GETVersionsVersionId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *VersionData) SetAttributes(v GETVersionsVersionId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VersionData) GetRelationships() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VersionData) GetRelationshipsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return &o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *VersionData) HasRelationships() bool { + if o != nil && IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. +func (o *VersionData) SetRelationships(v interface{}) { + o.Relationships = v +} + +func (o VersionData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VersionData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + toSerialize["attributes"] = o.Attributes + if o.Relationships != nil { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableVersionData struct { + value *VersionData + isSet bool +} + +func (v NullableVersionData) Get() *VersionData { + return v.value +} + +func (v *NullableVersionData) Set(val *VersionData) { + v.value = val + v.isSet = true +} + +func (v NullableVersionData) IsSet() bool { + return v.isSet +} + +func (v *NullableVersionData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVersionData(val *VersionData) *NullableVersionData { + return &NullableVersionData{value: val, isSet: true} +} + +func (v NullableVersionData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVersionData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_void.go b/api/model_void.go index 17b87f69..064240f8 100644 --- a/api/model_void.go +++ b/api/model_void.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_void_data.go b/api/model_void_data.go index 640b44d6..bad3871f 100644 --- a/api/model_void_data.go +++ b/api/model_void_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_void_data_relationships.go b/api/model_void_data_relationships.go index 3fac938a..5390f3fb 100644 --- a/api/model_void_data_relationships.go +++ b/api/model_void_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,8 +21,10 @@ var _ MappedNullable = &VoidDataRelationships{} // VoidDataRelationships struct for VoidDataRelationships type VoidDataRelationships struct { Order *AdyenPaymentDataRelationshipsOrder `json:"order,omitempty"` + Attachments *AuthorizationDataRelationshipsAttachments `json:"attachments,omitempty"` + Events *AddressDataRelationshipsEvents `json:"events,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` ReferenceAuthorization *CaptureDataRelationshipsReferenceAuthorization `json:"reference_authorization,omitempty"` - Events *AuthorizationDataRelationshipsEvents `json:"events,omitempty"` } // NewVoidDataRelationships instantiates a new VoidDataRelationships object @@ -74,42 +76,42 @@ func (o *VoidDataRelationships) SetOrder(v AdyenPaymentDataRelationshipsOrder) { o.Order = &v } -// GetReferenceAuthorization returns the ReferenceAuthorization field value if set, zero value otherwise. -func (o *VoidDataRelationships) GetReferenceAuthorization() CaptureDataRelationshipsReferenceAuthorization { - if o == nil || IsNil(o.ReferenceAuthorization) { - var ret CaptureDataRelationshipsReferenceAuthorization +// GetAttachments returns the Attachments field value if set, zero value otherwise. +func (o *VoidDataRelationships) GetAttachments() AuthorizationDataRelationshipsAttachments { + if o == nil || IsNil(o.Attachments) { + var ret AuthorizationDataRelationshipsAttachments return ret } - return *o.ReferenceAuthorization + return *o.Attachments } -// GetReferenceAuthorizationOk returns a tuple with the ReferenceAuthorization field value if set, nil otherwise +// GetAttachmentsOk returns a tuple with the Attachments field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *VoidDataRelationships) GetReferenceAuthorizationOk() (*CaptureDataRelationshipsReferenceAuthorization, bool) { - if o == nil || IsNil(o.ReferenceAuthorization) { +func (o *VoidDataRelationships) GetAttachmentsOk() (*AuthorizationDataRelationshipsAttachments, bool) { + if o == nil || IsNil(o.Attachments) { return nil, false } - return o.ReferenceAuthorization, true + return o.Attachments, true } -// HasReferenceAuthorization returns a boolean if a field has been set. -func (o *VoidDataRelationships) HasReferenceAuthorization() bool { - if o != nil && !IsNil(o.ReferenceAuthorization) { +// HasAttachments returns a boolean if a field has been set. +func (o *VoidDataRelationships) HasAttachments() bool { + if o != nil && !IsNil(o.Attachments) { return true } return false } -// SetReferenceAuthorization gets a reference to the given CaptureDataRelationshipsReferenceAuthorization and assigns it to the ReferenceAuthorization field. -func (o *VoidDataRelationships) SetReferenceAuthorization(v CaptureDataRelationshipsReferenceAuthorization) { - o.ReferenceAuthorization = &v +// SetAttachments gets a reference to the given AuthorizationDataRelationshipsAttachments and assigns it to the Attachments field. +func (o *VoidDataRelationships) SetAttachments(v AuthorizationDataRelationshipsAttachments) { + o.Attachments = &v } // GetEvents returns the Events field value if set, zero value otherwise. -func (o *VoidDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents { +func (o *VoidDataRelationships) GetEvents() AddressDataRelationshipsEvents { if o == nil || IsNil(o.Events) { - var ret AuthorizationDataRelationshipsEvents + var ret AddressDataRelationshipsEvents return ret } return *o.Events @@ -117,7 +119,7 @@ func (o *VoidDataRelationships) GetEvents() AuthorizationDataRelationshipsEvents // GetEventsOk returns a tuple with the Events field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *VoidDataRelationships) GetEventsOk() (*AuthorizationDataRelationshipsEvents, bool) { +func (o *VoidDataRelationships) GetEventsOk() (*AddressDataRelationshipsEvents, bool) { if o == nil || IsNil(o.Events) { return nil, false } @@ -133,11 +135,75 @@ func (o *VoidDataRelationships) HasEvents() bool { return false } -// SetEvents gets a reference to the given AuthorizationDataRelationshipsEvents and assigns it to the Events field. -func (o *VoidDataRelationships) SetEvents(v AuthorizationDataRelationshipsEvents) { +// SetEvents gets a reference to the given AddressDataRelationshipsEvents and assigns it to the Events field. +func (o *VoidDataRelationships) SetEvents(v AddressDataRelationshipsEvents) { o.Events = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *VoidDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VoidDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *VoidDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *VoidDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + +// GetReferenceAuthorization returns the ReferenceAuthorization field value if set, zero value otherwise. +func (o *VoidDataRelationships) GetReferenceAuthorization() CaptureDataRelationshipsReferenceAuthorization { + if o == nil || IsNil(o.ReferenceAuthorization) { + var ret CaptureDataRelationshipsReferenceAuthorization + return ret + } + return *o.ReferenceAuthorization +} + +// GetReferenceAuthorizationOk returns a tuple with the ReferenceAuthorization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VoidDataRelationships) GetReferenceAuthorizationOk() (*CaptureDataRelationshipsReferenceAuthorization, bool) { + if o == nil || IsNil(o.ReferenceAuthorization) { + return nil, false + } + return o.ReferenceAuthorization, true +} + +// HasReferenceAuthorization returns a boolean if a field has been set. +func (o *VoidDataRelationships) HasReferenceAuthorization() bool { + if o != nil && !IsNil(o.ReferenceAuthorization) { + return true + } + + return false +} + +// SetReferenceAuthorization gets a reference to the given CaptureDataRelationshipsReferenceAuthorization and assigns it to the ReferenceAuthorization field. +func (o *VoidDataRelationships) SetReferenceAuthorization(v CaptureDataRelationshipsReferenceAuthorization) { + o.ReferenceAuthorization = &v +} + func (o VoidDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -151,12 +217,18 @@ func (o VoidDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.Order) { toSerialize["order"] = o.Order } - if !IsNil(o.ReferenceAuthorization) { - toSerialize["reference_authorization"] = o.ReferenceAuthorization + if !IsNil(o.Attachments) { + toSerialize["attachments"] = o.Attachments } if !IsNil(o.Events) { toSerialize["events"] = o.Events } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + if !IsNil(o.ReferenceAuthorization) { + toSerialize["reference_authorization"] = o.ReferenceAuthorization + } return toSerialize, nil } diff --git a/api/model_void_update.go b/api/model_void_update.go new file mode 100644 index 00000000..aeb1236c --- /dev/null +++ b/api/model_void_update.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the VoidUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VoidUpdate{} + +// VoidUpdate struct for VoidUpdate +type VoidUpdate struct { + Data VoidUpdateData `json:"data"` +} + +// NewVoidUpdate instantiates a new VoidUpdate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVoidUpdate(data VoidUpdateData) *VoidUpdate { + this := VoidUpdate{} + this.Data = data + return &this +} + +// NewVoidUpdateWithDefaults instantiates a new VoidUpdate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVoidUpdateWithDefaults() *VoidUpdate { + this := VoidUpdate{} + return &this +} + +// GetData returns the Data field value +func (o *VoidUpdate) GetData() VoidUpdateData { + if o == nil { + var ret VoidUpdateData + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *VoidUpdate) GetDataOk() (*VoidUpdateData, bool) { + if o == nil { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *VoidUpdate) SetData(v VoidUpdateData) { + o.Data = v +} + +func (o VoidUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VoidUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + return toSerialize, nil +} + +type NullableVoidUpdate struct { + value *VoidUpdate + isSet bool +} + +func (v NullableVoidUpdate) Get() *VoidUpdate { + return v.value +} + +func (v *NullableVoidUpdate) Set(val *VoidUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableVoidUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableVoidUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVoidUpdate(val *VoidUpdate) *NullableVoidUpdate { + return &NullableVoidUpdate{value: val, isSet: true} +} + +func (v NullableVoidUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVoidUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_void_update_data.go b/api/model_void_update_data.go new file mode 100644 index 00000000..18b8aadb --- /dev/null +++ b/api/model_void_update_data.go @@ -0,0 +1,217 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the VoidUpdateData type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VoidUpdateData{} + +// VoidUpdateData struct for VoidUpdateData +type VoidUpdateData struct { + // The resource's type + Type interface{} `json:"type"` + // The resource's id + Id interface{} `json:"id"` + Attributes PATCHRefundsRefundId200ResponseDataAttributes `json:"attributes"` + Relationships interface{} `json:"relationships,omitempty"` +} + +// NewVoidUpdateData instantiates a new VoidUpdateData object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVoidUpdateData(type_ interface{}, id interface{}, attributes PATCHRefundsRefundId200ResponseDataAttributes) *VoidUpdateData { + this := VoidUpdateData{} + this.Type = type_ + this.Id = id + this.Attributes = attributes + return &this +} + +// NewVoidUpdateDataWithDefaults instantiates a new VoidUpdateData object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVoidUpdateDataWithDefaults() *VoidUpdateData { + this := VoidUpdateData{} + return &this +} + +// GetType returns the Type field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *VoidUpdateData) GetType() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VoidUpdateData) GetTypeOk() (*interface{}, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *VoidUpdateData) SetType(v interface{}) { + o.Type = v +} + +// GetId returns the Id field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *VoidUpdateData) GetId() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VoidUpdateData) GetIdOk() (*interface{}, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *VoidUpdateData) SetId(v interface{}) { + o.Id = v +} + +// GetAttributes returns the Attributes field value +func (o *VoidUpdateData) GetAttributes() PATCHRefundsRefundId200ResponseDataAttributes { + if o == nil { + var ret PATCHRefundsRefundId200ResponseDataAttributes + return ret + } + + return o.Attributes +} + +// GetAttributesOk returns a tuple with the Attributes field value +// and a boolean to check if the value has been set. +func (o *VoidUpdateData) GetAttributesOk() (*PATCHRefundsRefundId200ResponseDataAttributes, bool) { + if o == nil { + return nil, false + } + return &o.Attributes, true +} + +// SetAttributes sets field value +func (o *VoidUpdateData) SetAttributes(v PATCHRefundsRefundId200ResponseDataAttributes) { + o.Attributes = v +} + +// GetRelationships returns the Relationships field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VoidUpdateData) GetRelationships() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Relationships +} + +// GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VoidUpdateData) GetRelationshipsOk() (*interface{}, bool) { + if o == nil || IsNil(o.Relationships) { + return nil, false + } + return &o.Relationships, true +} + +// HasRelationships returns a boolean if a field has been set. +func (o *VoidUpdateData) HasRelationships() bool { + if o != nil && IsNil(o.Relationships) { + return true + } + + return false +} + +// SetRelationships gets a reference to the given interface{} and assigns it to the Relationships field. +func (o *VoidUpdateData) SetRelationships(v interface{}) { + o.Relationships = v +} + +func (o VoidUpdateData) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VoidUpdateData) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Type != nil { + toSerialize["type"] = o.Type + } + if o.Id != nil { + toSerialize["id"] = o.Id + } + toSerialize["attributes"] = o.Attributes + if o.Relationships != nil { + toSerialize["relationships"] = o.Relationships + } + return toSerialize, nil +} + +type NullableVoidUpdateData struct { + value *VoidUpdateData + isSet bool +} + +func (v NullableVoidUpdateData) Get() *VoidUpdateData { + return v.value +} + +func (v *NullableVoidUpdateData) Set(val *VoidUpdateData) { + v.value = val + v.isSet = true +} + +func (v NullableVoidUpdateData) IsSet() bool { + return v.isSet +} + +func (v *NullableVoidUpdateData) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVoidUpdateData(val *VoidUpdateData) *NullableVoidUpdateData { + return &NullableVoidUpdateData{value: val, isSet: true} +} + +func (v NullableVoidUpdateData) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVoidUpdateData) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_webhook.go b/api/model_webhook.go index a08f0e08..c7ef407f 100644 --- a/api/model_webhook.go +++ b/api/model_webhook.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_webhook_create.go b/api/model_webhook_create.go index b9b1a5db..43feaec3 100644 --- a/api/model_webhook_create.go +++ b/api/model_webhook_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_webhook_create_data.go b/api/model_webhook_create_data.go index c8c8f343..52fea3a5 100644 --- a/api/model_webhook_create_data.go +++ b/api/model_webhook_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_webhook_data.go b/api/model_webhook_data.go index 3306ddc3..0fd31de1 100644 --- a/api/model_webhook_data.go +++ b/api/model_webhook_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_webhook_data_relationships.go b/api/model_webhook_data_relationships.go index 21139afc..01eccfe3 100644 --- a/api/model_webhook_data_relationships.go +++ b/api/model_webhook_data_relationships.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -21,6 +21,7 @@ var _ MappedNullable = &WebhookDataRelationships{} // WebhookDataRelationships struct for WebhookDataRelationships type WebhookDataRelationships struct { LastEventCallbacks *EventDataRelationshipsLastEventCallbacks `json:"last_event_callbacks,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` } // NewWebhookDataRelationships instantiates a new WebhookDataRelationships object @@ -72,6 +73,38 @@ func (o *WebhookDataRelationships) SetLastEventCallbacks(v EventDataRelationship o.LastEventCallbacks = &v } +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *WebhookDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebhookDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *WebhookDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *WebhookDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + func (o WebhookDataRelationships) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -85,6 +118,9 @@ func (o WebhookDataRelationships) ToMap() (map[string]interface{}, error) { if !IsNil(o.LastEventCallbacks) { toSerialize["last_event_callbacks"] = o.LastEventCallbacks } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } return toSerialize, nil } diff --git a/api/model_webhook_update.go b/api/model_webhook_update.go index b97ad5e9..099ec5ff 100644 --- a/api/model_webhook_update.go +++ b/api/model_webhook_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_webhook_update_data.go b/api/model_webhook_update_data.go index 9a0775ef..a0f7ac82 100644 --- a/api/model_webhook_update_data.go +++ b/api/model_webhook_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_wire_transfer.go b/api/model_wire_transfer.go index c909b54a..44619756 100644 --- a/api/model_wire_transfer.go +++ b/api/model_wire_transfer.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_wire_transfer_create.go b/api/model_wire_transfer_create.go index ab617237..96fa0522 100644 --- a/api/model_wire_transfer_create.go +++ b/api/model_wire_transfer_create.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_wire_transfer_create_data.go b/api/model_wire_transfer_create_data.go index aca4055f..bbe3f2f6 100644 --- a/api/model_wire_transfer_create_data.go +++ b/api/model_wire_transfer_create_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_wire_transfer_data.go b/api/model_wire_transfer_data.go index e7d1c31b..018f9d4c 100644 --- a/api/model_wire_transfer_data.go +++ b/api/model_wire_transfer_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ @@ -23,7 +23,7 @@ type WireTransferData struct { // The resource's type Type interface{} `json:"type"` Attributes GETWireTransfersWireTransferId200ResponseDataAttributes `json:"attributes"` - Relationships *TransactionDataRelationships `json:"relationships,omitempty"` + Relationships *WireTransferDataRelationships `json:"relationships,omitempty"` } // NewWireTransferData instantiates a new WireTransferData object @@ -96,9 +96,9 @@ func (o *WireTransferData) SetAttributes(v GETWireTransfersWireTransferId200Resp } // GetRelationships returns the Relationships field value if set, zero value otherwise. -func (o *WireTransferData) GetRelationships() TransactionDataRelationships { +func (o *WireTransferData) GetRelationships() WireTransferDataRelationships { if o == nil || IsNil(o.Relationships) { - var ret TransactionDataRelationships + var ret WireTransferDataRelationships return ret } return *o.Relationships @@ -106,7 +106,7 @@ func (o *WireTransferData) GetRelationships() TransactionDataRelationships { // GetRelationshipsOk returns a tuple with the Relationships field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WireTransferData) GetRelationshipsOk() (*TransactionDataRelationships, bool) { +func (o *WireTransferData) GetRelationshipsOk() (*WireTransferDataRelationships, bool) { if o == nil || IsNil(o.Relationships) { return nil, false } @@ -122,8 +122,8 @@ func (o *WireTransferData) HasRelationships() bool { return false } -// SetRelationships gets a reference to the given TransactionDataRelationships and assigns it to the Relationships field. -func (o *WireTransferData) SetRelationships(v TransactionDataRelationships) { +// SetRelationships gets a reference to the given WireTransferDataRelationships and assigns it to the Relationships field. +func (o *WireTransferData) SetRelationships(v WireTransferDataRelationships) { o.Relationships = &v } diff --git a/api/model_wire_transfer_data_relationships.go b/api/model_wire_transfer_data_relationships.go new file mode 100644 index 00000000..c3355361 --- /dev/null +++ b/api/model_wire_transfer_data_relationships.go @@ -0,0 +1,161 @@ +/* +Commerce Layer API + +Headless Commerce for Global Brands. + +API version: 7.3.1 +Contact: support@commercelayer.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package api + +import ( + "encoding/json" +) + +// checks if the WireTransferDataRelationships type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WireTransferDataRelationships{} + +// WireTransferDataRelationships struct for WireTransferDataRelationships +type WireTransferDataRelationships struct { + Order *AdyenPaymentDataRelationshipsOrder `json:"order,omitempty"` + Versions *AddressDataRelationshipsVersions `json:"versions,omitempty"` +} + +// NewWireTransferDataRelationships instantiates a new WireTransferDataRelationships object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWireTransferDataRelationships() *WireTransferDataRelationships { + this := WireTransferDataRelationships{} + return &this +} + +// NewWireTransferDataRelationshipsWithDefaults instantiates a new WireTransferDataRelationships object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWireTransferDataRelationshipsWithDefaults() *WireTransferDataRelationships { + this := WireTransferDataRelationships{} + return &this +} + +// GetOrder returns the Order field value if set, zero value otherwise. +func (o *WireTransferDataRelationships) GetOrder() AdyenPaymentDataRelationshipsOrder { + if o == nil || IsNil(o.Order) { + var ret AdyenPaymentDataRelationshipsOrder + return ret + } + return *o.Order +} + +// GetOrderOk returns a tuple with the Order field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WireTransferDataRelationships) GetOrderOk() (*AdyenPaymentDataRelationshipsOrder, bool) { + if o == nil || IsNil(o.Order) { + return nil, false + } + return o.Order, true +} + +// HasOrder returns a boolean if a field has been set. +func (o *WireTransferDataRelationships) HasOrder() bool { + if o != nil && !IsNil(o.Order) { + return true + } + + return false +} + +// SetOrder gets a reference to the given AdyenPaymentDataRelationshipsOrder and assigns it to the Order field. +func (o *WireTransferDataRelationships) SetOrder(v AdyenPaymentDataRelationshipsOrder) { + o.Order = &v +} + +// GetVersions returns the Versions field value if set, zero value otherwise. +func (o *WireTransferDataRelationships) GetVersions() AddressDataRelationshipsVersions { + if o == nil || IsNil(o.Versions) { + var ret AddressDataRelationshipsVersions + return ret + } + return *o.Versions +} + +// GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WireTransferDataRelationships) GetVersionsOk() (*AddressDataRelationshipsVersions, bool) { + if o == nil || IsNil(o.Versions) { + return nil, false + } + return o.Versions, true +} + +// HasVersions returns a boolean if a field has been set. +func (o *WireTransferDataRelationships) HasVersions() bool { + if o != nil && !IsNil(o.Versions) { + return true + } + + return false +} + +// SetVersions gets a reference to the given AddressDataRelationshipsVersions and assigns it to the Versions field. +func (o *WireTransferDataRelationships) SetVersions(v AddressDataRelationshipsVersions) { + o.Versions = &v +} + +func (o WireTransferDataRelationships) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WireTransferDataRelationships) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Order) { + toSerialize["order"] = o.Order + } + if !IsNil(o.Versions) { + toSerialize["versions"] = o.Versions + } + return toSerialize, nil +} + +type NullableWireTransferDataRelationships struct { + value *WireTransferDataRelationships + isSet bool +} + +func (v NullableWireTransferDataRelationships) Get() *WireTransferDataRelationships { + return v.value +} + +func (v *NullableWireTransferDataRelationships) Set(val *WireTransferDataRelationships) { + v.value = val + v.isSet = true +} + +func (v NullableWireTransferDataRelationships) IsSet() bool { + return v.isSet +} + +func (v *NullableWireTransferDataRelationships) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWireTransferDataRelationships(val *WireTransferDataRelationships) *NullableWireTransferDataRelationships { + return &NullableWireTransferDataRelationships{value: val, isSet: true} +} + +func (v NullableWireTransferDataRelationships) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWireTransferDataRelationships) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/model_wire_transfer_update.go b/api/model_wire_transfer_update.go index e5bf62ef..01d83b77 100644 --- a/api/model_wire_transfer_update.go +++ b/api/model_wire_transfer_update.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/model_wire_transfer_update_data.go b/api/model_wire_transfer_update_data.go index ab4a72a1..ed3ae002 100644 --- a/api/model_wire_transfer_update_data.go +++ b/api/model_wire_transfer_update_data.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/response.go b/api/response.go index 5f2c314c..07c510fd 100644 --- a/api/response.go +++ b/api/response.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/api/test/api_attachments_test.go b/api/test/api_attachments_test.go index 979159a8..ceab93bf 100644 --- a/api/test/api_attachments_test.go +++ b/api/test/api_attachments_test.go @@ -61,6 +61,19 @@ func Test_api_AttachmentsApiService(t *testing.T) { }) + t.Run("Test AttachmentsApiService GETAuthorizationIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var authorizationId interface{} + + httpRes, err := apiClient.AttachmentsApi.GETAuthorizationIdAttachments(context.Background(), authorizationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test AttachmentsApiService GETAvalaraAccountIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -113,6 +126,32 @@ func Test_api_AttachmentsApiService(t *testing.T) { }) + t.Run("Test AttachmentsApiService GETBuyXPayYPromotionIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + httpRes, err := apiClient.AttachmentsApi.GETBuyXPayYPromotionIdAttachments(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AttachmentsApiService GETCaptureIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var captureId interface{} + + httpRes, err := apiClient.AttachmentsApi.GETCaptureIdAttachments(context.Background(), captureId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test AttachmentsApiService GETCarrierAccountIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -230,6 +269,19 @@ func Test_api_AttachmentsApiService(t *testing.T) { }) + t.Run("Test AttachmentsApiService GETFlexPromotionIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var flexPromotionId interface{} + + httpRes, err := apiClient.AttachmentsApi.GETFlexPromotionIdAttachments(context.Background(), flexPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test AttachmentsApiService GETFreeGiftPromotionIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -373,52 +425,52 @@ func Test_api_AttachmentsApiService(t *testing.T) { }) - t.Run("Test AttachmentsApiService GETOrderValidationRuleIdAttachments", func(t *testing.T) { + t.Run("Test AttachmentsApiService GETPackageIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderValidationRuleId interface{} + var packageId interface{} - httpRes, err := apiClient.AttachmentsApi.GETOrderValidationRuleIdAttachments(context.Background(), orderValidationRuleId).Execute() + httpRes, err := apiClient.AttachmentsApi.GETPackageIdAttachments(context.Background(), packageId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test AttachmentsApiService GETPackageIdAttachments", func(t *testing.T) { + t.Run("Test AttachmentsApiService GETParcelIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var packageId interface{} + var parcelId interface{} - httpRes, err := apiClient.AttachmentsApi.GETPackageIdAttachments(context.Background(), packageId).Execute() + httpRes, err := apiClient.AttachmentsApi.GETParcelIdAttachments(context.Background(), parcelId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test AttachmentsApiService GETParcelIdAttachments", func(t *testing.T) { + t.Run("Test AttachmentsApiService GETPaymentMethodIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var parcelId interface{} + var paymentMethodId interface{} - httpRes, err := apiClient.AttachmentsApi.GETParcelIdAttachments(context.Background(), parcelId).Execute() + httpRes, err := apiClient.AttachmentsApi.GETPaymentMethodIdAttachments(context.Background(), paymentMethodId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test AttachmentsApiService GETPaymentMethodIdAttachments", func(t *testing.T) { + t.Run("Test AttachmentsApiService GETPaymentOptionIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var paymentMethodId interface{} + var paymentOptionId interface{} - httpRes, err := apiClient.AttachmentsApi.GETPaymentMethodIdAttachments(context.Background(), paymentMethodId).Execute() + httpRes, err := apiClient.AttachmentsApi.GETPaymentOptionIdAttachments(context.Background(), paymentOptionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -516,6 +568,19 @@ func Test_api_AttachmentsApiService(t *testing.T) { }) + t.Run("Test AttachmentsApiService GETRefundIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var refundId interface{} + + httpRes, err := apiClient.AttachmentsApi.GETRefundIdAttachments(context.Background(), refundId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test AttachmentsApiService GETReturnIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -672,6 +737,19 @@ func Test_api_AttachmentsApiService(t *testing.T) { }) + t.Run("Test AttachmentsApiService GETStockTransferIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockTransferId interface{} + + httpRes, err := apiClient.AttachmentsApi.GETStockTransferIdAttachments(context.Background(), stockTransferId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test AttachmentsApiService GETSubscriptionModelIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -724,6 +802,32 @@ func Test_api_AttachmentsApiService(t *testing.T) { }) + t.Run("Test AttachmentsApiService GETTransactionIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var transactionId interface{} + + httpRes, err := apiClient.AttachmentsApi.GETTransactionIdAttachments(context.Background(), transactionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AttachmentsApiService GETVoidIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var voidId interface{} + + httpRes, err := apiClient.AttachmentsApi.GETVoidIdAttachments(context.Background(), voidId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test AttachmentsApiService PATCHAttachmentsAttachmentId", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_buy_x_pay_y_promotions_test.go b/api/test/api_buy_x_pay_y_promotions_test.go new file mode 100644 index 00000000..00da276d --- /dev/null +++ b/api/test/api_buy_x_pay_y_promotions_test.go @@ -0,0 +1,90 @@ +/* +Commerce Layer API + +Testing BuyXPayYPromotionsApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package api + +import ( + "context" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_api_BuyXPayYPromotionsApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test BuyXPayYPromotionsApiService DELETEBuyXPayYPromotionsBuyXPayYPromotionId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + httpRes, err := apiClient.BuyXPayYPromotionsApi.DELETEBuyXPayYPromotionsBuyXPayYPromotionId(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuyXPayYPromotionsApiService GETBuyXPayYPromotions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.BuyXPayYPromotionsApi.GETBuyXPayYPromotions(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuyXPayYPromotionsApiService GETBuyXPayYPromotionsBuyXPayYPromotionId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + resp, httpRes, err := apiClient.BuyXPayYPromotionsApi.GETBuyXPayYPromotionsBuyXPayYPromotionId(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuyXPayYPromotionsApiService PATCHBuyXPayYPromotionsBuyXPayYPromotionId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + resp, httpRes, err := apiClient.BuyXPayYPromotionsApi.PATCHBuyXPayYPromotionsBuyXPayYPromotionId(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuyXPayYPromotionsApiService POSTBuyXPayYPromotions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.BuyXPayYPromotionsApi.POSTBuyXPayYPromotions(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/api/test/api_captures_test.go b/api/test/api_captures_test.go index bfd89800..62160dcd 100644 --- a/api/test/api_captures_test.go +++ b/api/test/api_captures_test.go @@ -87,6 +87,19 @@ func Test_api_CapturesApiService(t *testing.T) { }) + t.Run("Test CapturesApiService GETReturnIdReferenceCapture", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var returnId interface{} + + httpRes, err := apiClient.CapturesApi.GETReturnIdReferenceCapture(context.Background(), returnId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test CapturesApiService PATCHCapturesCaptureId", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_carrier_accounts_test.go b/api/test/api_carrier_accounts_test.go index e70a882a..d22195b6 100644 --- a/api/test/api_carrier_accounts_test.go +++ b/api/test/api_carrier_accounts_test.go @@ -22,6 +22,19 @@ func Test_api_CarrierAccountsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) + t.Run("Test CarrierAccountsApiService DELETECarrierAccountsCarrierAccountId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var carrierAccountId interface{} + + httpRes, err := apiClient.CarrierAccountsApi.DELETECarrierAccountsCarrierAccountId(context.Background(), carrierAccountId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test CarrierAccountsApiService GETCarrierAccounts", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -61,4 +74,30 @@ func Test_api_CarrierAccountsApiService(t *testing.T) { }) + t.Run("Test CarrierAccountsApiService PATCHCarrierAccountsCarrierAccountId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var carrierAccountId interface{} + + resp, httpRes, err := apiClient.CarrierAccountsApi.PATCHCarrierAccountsCarrierAccountId(context.Background(), carrierAccountId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CarrierAccountsApiService POSTCarrierAccounts", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CarrierAccountsApi.POSTCarrierAccounts(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + } diff --git a/api/test/api_cleanups_test.go b/api/test/api_cleanups_test.go index 93780049..ea1c6491 100644 --- a/api/test/api_cleanups_test.go +++ b/api/test/api_cleanups_test.go @@ -61,6 +61,20 @@ func Test_api_CleanupsApiService(t *testing.T) { }) + t.Run("Test CleanupsApiService PATCHCleanupsCleanupId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var cleanupId interface{} + + resp, httpRes, err := apiClient.CleanupsApi.PATCHCleanupsCleanupId(context.Background(), cleanupId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test CleanupsApiService POSTCleanups", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_coupon_codes_promotion_rules_test.go b/api/test/api_coupon_codes_promotion_rules_test.go index 53f2c1a3..4e91bbc0 100644 --- a/api/test/api_coupon_codes_promotion_rules_test.go +++ b/api/test/api_coupon_codes_promotion_rules_test.go @@ -35,6 +35,19 @@ func Test_api_CouponCodesPromotionRulesApiService(t *testing.T) { }) + t.Run("Test CouponCodesPromotionRulesApiService GETBuyXPayYPromotionIdCouponCodesPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + httpRes, err := apiClient.CouponCodesPromotionRulesApi.GETBuyXPayYPromotionIdCouponCodesPromotionRule(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test CouponCodesPromotionRulesApiService GETCouponCodesPromotionRules", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -113,6 +126,19 @@ func Test_api_CouponCodesPromotionRulesApiService(t *testing.T) { }) + t.Run("Test CouponCodesPromotionRulesApiService GETFlexPromotionIdCouponCodesPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var flexPromotionId interface{} + + httpRes, err := apiClient.CouponCodesPromotionRulesApi.GETFlexPromotionIdCouponCodesPromotionRule(context.Background(), flexPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test CouponCodesPromotionRulesApiService GETFreeGiftPromotionIdCouponCodesPromotionRule", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_coupon_recipients_test.go b/api/test/api_coupon_recipients_test.go index 9ba4d4c7..e6ef44f9 100644 --- a/api/test/api_coupon_recipients_test.go +++ b/api/test/api_coupon_recipients_test.go @@ -35,6 +35,19 @@ func Test_api_CouponRecipientsApiService(t *testing.T) { }) + t.Run("Test CouponRecipientsApiService GETCouponIdCouponRecipient", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var couponId interface{} + + httpRes, err := apiClient.CouponRecipientsApi.GETCouponIdCouponRecipient(context.Background(), couponId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test CouponRecipientsApiService GETCouponRecipients", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_coupons_test.go b/api/test/api_coupons_test.go index 6a1a510a..5ea685c6 100644 --- a/api/test/api_coupons_test.go +++ b/api/test/api_coupons_test.go @@ -35,6 +35,19 @@ func Test_api_CouponsApiService(t *testing.T) { }) + t.Run("Test CouponsApiService GETBuyXPayYPromotionIdCoupons", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + httpRes, err := apiClient.CouponsApi.GETBuyXPayYPromotionIdCoupons(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test CouponsApiService GETCouponCodesPromotionRuleIdCoupons", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -74,6 +87,110 @@ func Test_api_CouponsApiService(t *testing.T) { }) + t.Run("Test CouponsApiService GETExternalPromotionIdCoupons", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalPromotionId interface{} + + httpRes, err := apiClient.CouponsApi.GETExternalPromotionIdCoupons(context.Background(), externalPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CouponsApiService GETFixedAmountPromotionIdCoupons", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedAmountPromotionId interface{} + + httpRes, err := apiClient.CouponsApi.GETFixedAmountPromotionIdCoupons(context.Background(), fixedAmountPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CouponsApiService GETFixedPricePromotionIdCoupons", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedPricePromotionId interface{} + + httpRes, err := apiClient.CouponsApi.GETFixedPricePromotionIdCoupons(context.Background(), fixedPricePromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CouponsApiService GETFlexPromotionIdCoupons", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var flexPromotionId interface{} + + httpRes, err := apiClient.CouponsApi.GETFlexPromotionIdCoupons(context.Background(), flexPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CouponsApiService GETFreeGiftPromotionIdCoupons", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeGiftPromotionId interface{} + + httpRes, err := apiClient.CouponsApi.GETFreeGiftPromotionIdCoupons(context.Background(), freeGiftPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CouponsApiService GETFreeShippingPromotionIdCoupons", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeShippingPromotionId interface{} + + httpRes, err := apiClient.CouponsApi.GETFreeShippingPromotionIdCoupons(context.Background(), freeShippingPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CouponsApiService GETPercentageDiscountPromotionIdCoupons", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var percentageDiscountPromotionId interface{} + + httpRes, err := apiClient.CouponsApi.GETPercentageDiscountPromotionIdCoupons(context.Background(), percentageDiscountPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CouponsApiService GETPromotionIdCoupons", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var promotionId interface{} + + httpRes, err := apiClient.CouponsApi.GETPromotionIdCoupons(context.Background(), promotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test CouponsApiService PATCHCouponsCouponId", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_custom_promotion_rules_test.go b/api/test/api_custom_promotion_rules_test.go new file mode 100644 index 00000000..dd903c96 --- /dev/null +++ b/api/test/api_custom_promotion_rules_test.go @@ -0,0 +1,194 @@ +/* +Commerce Layer API + +Testing CustomPromotionRulesApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package api + +import ( + "context" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_api_CustomPromotionRulesApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test CustomPromotionRulesApiService DELETECustomPromotionRulesCustomPromotionRuleId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customPromotionRuleId interface{} + + httpRes, err := apiClient.CustomPromotionRulesApi.DELETECustomPromotionRulesCustomPromotionRuleId(context.Background(), customPromotionRuleId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CustomPromotionRulesApiService GETBuyXPayYPromotionIdCustomPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + httpRes, err := apiClient.CustomPromotionRulesApi.GETBuyXPayYPromotionIdCustomPromotionRule(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CustomPromotionRulesApiService GETCustomPromotionRules", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CustomPromotionRulesApi.GETCustomPromotionRules(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CustomPromotionRulesApiService GETCustomPromotionRulesCustomPromotionRuleId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customPromotionRuleId interface{} + + resp, httpRes, err := apiClient.CustomPromotionRulesApi.GETCustomPromotionRulesCustomPromotionRuleId(context.Background(), customPromotionRuleId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CustomPromotionRulesApiService GETExternalPromotionIdCustomPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalPromotionId interface{} + + httpRes, err := apiClient.CustomPromotionRulesApi.GETExternalPromotionIdCustomPromotionRule(context.Background(), externalPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CustomPromotionRulesApiService GETFixedAmountPromotionIdCustomPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedAmountPromotionId interface{} + + httpRes, err := apiClient.CustomPromotionRulesApi.GETFixedAmountPromotionIdCustomPromotionRule(context.Background(), fixedAmountPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CustomPromotionRulesApiService GETFixedPricePromotionIdCustomPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedPricePromotionId interface{} + + httpRes, err := apiClient.CustomPromotionRulesApi.GETFixedPricePromotionIdCustomPromotionRule(context.Background(), fixedPricePromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CustomPromotionRulesApiService GETFreeGiftPromotionIdCustomPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeGiftPromotionId interface{} + + httpRes, err := apiClient.CustomPromotionRulesApi.GETFreeGiftPromotionIdCustomPromotionRule(context.Background(), freeGiftPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CustomPromotionRulesApiService GETFreeShippingPromotionIdCustomPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeShippingPromotionId interface{} + + httpRes, err := apiClient.CustomPromotionRulesApi.GETFreeShippingPromotionIdCustomPromotionRule(context.Background(), freeShippingPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CustomPromotionRulesApiService GETPercentageDiscountPromotionIdCustomPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var percentageDiscountPromotionId interface{} + + httpRes, err := apiClient.CustomPromotionRulesApi.GETPercentageDiscountPromotionIdCustomPromotionRule(context.Background(), percentageDiscountPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CustomPromotionRulesApiService GETPromotionIdCustomPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var promotionId interface{} + + httpRes, err := apiClient.CustomPromotionRulesApi.GETPromotionIdCustomPromotionRule(context.Background(), promotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CustomPromotionRulesApiService PATCHCustomPromotionRulesCustomPromotionRuleId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customPromotionRuleId interface{} + + resp, httpRes, err := apiClient.CustomPromotionRulesApi.PATCHCustomPromotionRulesCustomPromotionRuleId(context.Background(), customPromotionRuleId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test CustomPromotionRulesApiService POSTCustomPromotionRules", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.CustomPromotionRulesApi.POSTCustomPromotionRules(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/api/test/api_customers_test.go b/api/test/api_customers_test.go index 7fb4f80b..ef4d8571 100644 --- a/api/test/api_customers_test.go +++ b/api/test/api_customers_test.go @@ -191,6 +191,19 @@ func Test_api_CustomersApiService(t *testing.T) { }) + t.Run("Test CustomersApiService GETPriceIdJwtCustomer", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceId interface{} + + httpRes, err := apiClient.CustomersApi.GETPriceIdJwtCustomer(context.Background(), priceId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test CustomersApiService GETReturnIdCustomer", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -204,6 +217,19 @@ func Test_api_CustomersApiService(t *testing.T) { }) + t.Run("Test CustomersApiService GETSkuIdJwtCustomer", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var skuId interface{} + + httpRes, err := apiClient.CustomersApi.GETSkuIdJwtCustomer(context.Background(), skuId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test CustomersApiService GETSkuListIdCustomer", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_events_test.go b/api/test/api_events_test.go index 8fad4a1e..23d2fc67 100644 --- a/api/test/api_events_test.go +++ b/api/test/api_events_test.go @@ -22,6 +22,19 @@ func Test_api_EventsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) + t.Run("Test EventsApiService GETAddressIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var addressId interface{} + + httpRes, err := apiClient.EventsApi.GETAddressIdEvents(context.Background(), addressId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test EventsApiService GETAuthorizationIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -35,6 +48,45 @@ func Test_api_EventsApiService(t *testing.T) { }) + t.Run("Test EventsApiService GETAvalaraAccountIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var avalaraAccountId interface{} + + httpRes, err := apiClient.EventsApi.GETAvalaraAccountIdEvents(context.Background(), avalaraAccountId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test EventsApiService GETBundleIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var bundleId interface{} + + httpRes, err := apiClient.EventsApi.GETBundleIdEvents(context.Background(), bundleId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test EventsApiService GETBuyXPayYPromotionIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + httpRes, err := apiClient.EventsApi.GETBuyXPayYPromotionIdEvents(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test EventsApiService GETCaptureIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -61,6 +113,19 @@ func Test_api_EventsApiService(t *testing.T) { }) + t.Run("Test EventsApiService GETCouponIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var couponId interface{} + + httpRes, err := apiClient.EventsApi.GETCouponIdEvents(context.Background(), couponId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test EventsApiService GETCustomerAddressIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -191,6 +256,19 @@ func Test_api_EventsApiService(t *testing.T) { }) + t.Run("Test EventsApiService GETFlexPromotionIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var flexPromotionId interface{} + + httpRes, err := apiClient.EventsApi.GETFlexPromotionIdEvents(context.Background(), flexPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test EventsApiService GETFreeGiftPromotionIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -256,6 +334,45 @@ func Test_api_EventsApiService(t *testing.T) { }) + t.Run("Test EventsApiService GETLineItemIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var lineItemId interface{} + + httpRes, err := apiClient.EventsApi.GETLineItemIdEvents(context.Background(), lineItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test EventsApiService GETLineItemOptionIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var lineItemOptionId interface{} + + httpRes, err := apiClient.EventsApi.GETLineItemOptionIdEvents(context.Background(), lineItemOptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test EventsApiService GETLinkIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var linkId interface{} + + httpRes, err := apiClient.EventsApi.GETLinkIdEvents(context.Background(), linkId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test EventsApiService GETOrderCopyIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -347,6 +464,19 @@ func Test_api_EventsApiService(t *testing.T) { }) + t.Run("Test EventsApiService GETPriceListSchedulerIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceListSchedulerId interface{} + + httpRes, err := apiClient.EventsApi.GETPriceListSchedulerIdEvents(context.Background(), priceListSchedulerId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test EventsApiService GETPriceVolumeTierIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -425,6 +555,32 @@ func Test_api_EventsApiService(t *testing.T) { }) + t.Run("Test EventsApiService GETSkuIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var skuId interface{} + + httpRes, err := apiClient.EventsApi.GETSkuIdEvents(context.Background(), skuId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test EventsApiService GETSkuOptionIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var skuOptionId interface{} + + httpRes, err := apiClient.EventsApi.GETSkuOptionIdEvents(context.Background(), skuOptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test EventsApiService GETStockTransferIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -438,6 +594,19 @@ func Test_api_EventsApiService(t *testing.T) { }) + t.Run("Test EventsApiService GETTransactionIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var transactionId interface{} + + httpRes, err := apiClient.EventsApi.GETTransactionIdEvents(context.Background(), transactionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test EventsApiService GETVoidIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -451,4 +620,18 @@ func Test_api_EventsApiService(t *testing.T) { }) + t.Run("Test EventsApiService PATCHEventsEventId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var eventId interface{} + + resp, httpRes, err := apiClient.EventsApi.PATCHEventsEventId(context.Background(), eventId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + } diff --git a/api/test/api_exports_test.go b/api/test/api_exports_test.go index 0d66a5d0..8a69e045 100644 --- a/api/test/api_exports_test.go +++ b/api/test/api_exports_test.go @@ -61,6 +61,20 @@ func Test_api_ExportsApiService(t *testing.T) { }) + t.Run("Test ExportsApiService PATCHExportsExportId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var exportId interface{} + + resp, httpRes, err := apiClient.ExportsApi.PATCHExportsExportId(context.Background(), exportId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test ExportsApiService POSTExports", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_flex_promotions_test.go b/api/test/api_flex_promotions_test.go new file mode 100644 index 00000000..e9be54d3 --- /dev/null +++ b/api/test/api_flex_promotions_test.go @@ -0,0 +1,90 @@ +/* +Commerce Layer API + +Testing FlexPromotionsApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package api + +import ( + "context" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_api_FlexPromotionsApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test FlexPromotionsApiService DELETEFlexPromotionsFlexPromotionId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var flexPromotionId interface{} + + httpRes, err := apiClient.FlexPromotionsApi.DELETEFlexPromotionsFlexPromotionId(context.Background(), flexPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test FlexPromotionsApiService GETFlexPromotions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.FlexPromotionsApi.GETFlexPromotions(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test FlexPromotionsApiService GETFlexPromotionsFlexPromotionId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var flexPromotionId interface{} + + resp, httpRes, err := apiClient.FlexPromotionsApi.GETFlexPromotionsFlexPromotionId(context.Background(), flexPromotionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test FlexPromotionsApiService PATCHFlexPromotionsFlexPromotionId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var flexPromotionId interface{} + + resp, httpRes, err := apiClient.FlexPromotionsApi.PATCHFlexPromotionsFlexPromotionId(context.Background(), flexPromotionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test FlexPromotionsApiService POSTFlexPromotions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.FlexPromotionsApi.POSTFlexPromotions(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/api/test/api_geocoders_test.go b/api/test/api_geocoders_test.go index 6ca24e1d..ffa09779 100644 --- a/api/test/api_geocoders_test.go +++ b/api/test/api_geocoders_test.go @@ -61,4 +61,17 @@ func Test_api_GeocodersApiService(t *testing.T) { }) + t.Run("Test GeocodersApiService GETMarketIdGeocoder", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var marketId interface{} + + httpRes, err := apiClient.GeocodersApi.GETMarketIdGeocoder(context.Background(), marketId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + } diff --git a/api/test/api_has_many_test.go b/api/test/api_has_many_test.go index 48c40bf7..7cca7c78 100644 --- a/api/test/api_has_many_test.go +++ b/api/test/api_has_many_test.go @@ -22,2418 +22,4745 @@ func Test_api_HasManyApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test HasManyApiService GETAdyenGatewayIdAdyenPayments", func(t *testing.T) { + t.Run("Test HasManyApiService GETAddressIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test - var adyenGatewayId interface{} + var addressId interface{} - httpRes, err := apiClient.HasManyApi.GETAdyenGatewayIdAdyenPayments(context.Background(), adyenGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETAddressIdEvents(context.Background(), addressId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETAdyenGatewayIdPaymentMethods", func(t *testing.T) { + t.Run("Test HasManyApiService GETAddressIdTags", func(t *testing.T) { t.Skip("skip test") // remove to run test - var adyenGatewayId interface{} + var addressId interface{} - httpRes, err := apiClient.HasManyApi.GETAdyenGatewayIdPaymentMethods(context.Background(), adyenGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETAddressIdTags(context.Background(), addressId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETAuthorizationIdCaptures", func(t *testing.T) { + t.Run("Test HasManyApiService GETAddressIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var authorizationId interface{} + var addressId interface{} - httpRes, err := apiClient.HasManyApi.GETAuthorizationIdCaptures(context.Background(), authorizationId).Execute() + httpRes, err := apiClient.HasManyApi.GETAddressIdVersions(context.Background(), addressId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETAuthorizationIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETAdjustmentIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var authorizationId interface{} + var adjustmentId interface{} - httpRes, err := apiClient.HasManyApi.GETAuthorizationIdEvents(context.Background(), authorizationId).Execute() + httpRes, err := apiClient.HasManyApi.GETAdjustmentIdVersions(context.Background(), adjustmentId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETAuthorizationIdVoids", func(t *testing.T) { + t.Run("Test HasManyApiService GETAdyenGatewayIdAdyenPayments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var authorizationId interface{} + var adyenGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETAuthorizationIdVoids(context.Background(), authorizationId).Execute() + httpRes, err := apiClient.HasManyApi.GETAdyenGatewayIdAdyenPayments(context.Background(), adyenGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETAvalaraAccountIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETAdyenGatewayIdPaymentMethods", func(t *testing.T) { t.Skip("skip test") // remove to run test - var avalaraAccountId interface{} + var adyenGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETAvalaraAccountIdAttachments(context.Background(), avalaraAccountId).Execute() + httpRes, err := apiClient.HasManyApi.GETAdyenGatewayIdPaymentMethods(context.Background(), adyenGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETAvalaraAccountIdMarkets", func(t *testing.T) { + t.Run("Test HasManyApiService GETAdyenGatewayIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var avalaraAccountId interface{} + var adyenGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETAvalaraAccountIdMarkets(context.Background(), avalaraAccountId).Execute() + httpRes, err := apiClient.HasManyApi.GETAdyenGatewayIdVersions(context.Background(), adyenGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETAvalaraAccountIdTaxCategories", func(t *testing.T) { + t.Run("Test HasManyApiService GETAdyenPaymentIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var avalaraAccountId interface{} + var adyenPaymentId interface{} - httpRes, err := apiClient.HasManyApi.GETAvalaraAccountIdTaxCategories(context.Background(), avalaraAccountId).Execute() + httpRes, err := apiClient.HasManyApi.GETAdyenPaymentIdVersions(context.Background(), adyenPaymentId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETAxerveGatewayIdAxervePayments", func(t *testing.T) { + t.Run("Test HasManyApiService GETAuthorizationIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var axerveGatewayId interface{} + var authorizationId interface{} - httpRes, err := apiClient.HasManyApi.GETAxerveGatewayIdAxervePayments(context.Background(), axerveGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETAuthorizationIdAttachments(context.Background(), authorizationId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETAxerveGatewayIdPaymentMethods", func(t *testing.T) { + t.Run("Test HasManyApiService GETAuthorizationIdCaptures", func(t *testing.T) { t.Skip("skip test") // remove to run test - var axerveGatewayId interface{} + var authorizationId interface{} - httpRes, err := apiClient.HasManyApi.GETAxerveGatewayIdPaymentMethods(context.Background(), axerveGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETAuthorizationIdCaptures(context.Background(), authorizationId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETBillingInfoValidationRuleIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETAuthorizationIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test - var billingInfoValidationRuleId interface{} + var authorizationId interface{} - httpRes, err := apiClient.HasManyApi.GETBillingInfoValidationRuleIdAttachments(context.Background(), billingInfoValidationRuleId).Execute() + httpRes, err := apiClient.HasManyApi.GETAuthorizationIdEvents(context.Background(), authorizationId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETBingGeocoderIdAddresses", func(t *testing.T) { + t.Run("Test HasManyApiService GETAuthorizationIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var bingGeocoderId interface{} + var authorizationId interface{} - httpRes, err := apiClient.HasManyApi.GETBingGeocoderIdAddresses(context.Background(), bingGeocoderId).Execute() + httpRes, err := apiClient.HasManyApi.GETAuthorizationIdVersions(context.Background(), authorizationId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETBingGeocoderIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETAuthorizationIdVoids", func(t *testing.T) { t.Skip("skip test") // remove to run test - var bingGeocoderId interface{} + var authorizationId interface{} - httpRes, err := apiClient.HasManyApi.GETBingGeocoderIdAttachments(context.Background(), bingGeocoderId).Execute() + httpRes, err := apiClient.HasManyApi.GETAuthorizationIdVoids(context.Background(), authorizationId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETBraintreeGatewayIdBraintreePayments", func(t *testing.T) { + t.Run("Test HasManyApiService GETAvalaraAccountIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var braintreeGatewayId interface{} + var avalaraAccountId interface{} - httpRes, err := apiClient.HasManyApi.GETBraintreeGatewayIdBraintreePayments(context.Background(), braintreeGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETAvalaraAccountIdAttachments(context.Background(), avalaraAccountId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETBraintreeGatewayIdPaymentMethods", func(t *testing.T) { + t.Run("Test HasManyApiService GETAvalaraAccountIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test - var braintreeGatewayId interface{} + var avalaraAccountId interface{} - httpRes, err := apiClient.HasManyApi.GETBraintreeGatewayIdPaymentMethods(context.Background(), braintreeGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETAvalaraAccountIdEvents(context.Background(), avalaraAccountId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETBundleIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETAvalaraAccountIdMarkets", func(t *testing.T) { t.Skip("skip test") // remove to run test - var bundleId interface{} + var avalaraAccountId interface{} - httpRes, err := apiClient.HasManyApi.GETBundleIdAttachments(context.Background(), bundleId).Execute() + httpRes, err := apiClient.HasManyApi.GETAvalaraAccountIdMarkets(context.Background(), avalaraAccountId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETBundleIdSkus", func(t *testing.T) { + t.Run("Test HasManyApiService GETAvalaraAccountIdTaxCategories", func(t *testing.T) { t.Skip("skip test") // remove to run test - var bundleId interface{} + var avalaraAccountId interface{} - httpRes, err := apiClient.HasManyApi.GETBundleIdSkus(context.Background(), bundleId).Execute() + httpRes, err := apiClient.HasManyApi.GETAvalaraAccountIdTaxCategories(context.Background(), avalaraAccountId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCaptureIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETAvalaraAccountIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var captureId interface{} + var avalaraAccountId interface{} - httpRes, err := apiClient.HasManyApi.GETCaptureIdEvents(context.Background(), captureId).Execute() + httpRes, err := apiClient.HasManyApi.GETAvalaraAccountIdVersions(context.Background(), avalaraAccountId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCaptureIdRefunds", func(t *testing.T) { + t.Run("Test HasManyApiService GETAxerveGatewayIdAxervePayments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var captureId interface{} + var axerveGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETCaptureIdRefunds(context.Background(), captureId).Execute() + httpRes, err := apiClient.HasManyApi.GETAxerveGatewayIdAxervePayments(context.Background(), axerveGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCarrierAccountIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETAxerveGatewayIdPaymentMethods", func(t *testing.T) { t.Skip("skip test") // remove to run test - var carrierAccountId interface{} + var axerveGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETCarrierAccountIdAttachments(context.Background(), carrierAccountId).Execute() + httpRes, err := apiClient.HasManyApi.GETAxerveGatewayIdPaymentMethods(context.Background(), axerveGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCheckoutComGatewayIdCheckoutComPayments", func(t *testing.T) { + t.Run("Test HasManyApiService GETAxerveGatewayIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var checkoutComGatewayId interface{} + var axerveGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETCheckoutComGatewayIdCheckoutComPayments(context.Background(), checkoutComGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETAxerveGatewayIdVersions(context.Background(), axerveGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCheckoutComGatewayIdPaymentMethods", func(t *testing.T) { + t.Run("Test HasManyApiService GETAxervePaymentIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var checkoutComGatewayId interface{} + var axervePaymentId interface{} - httpRes, err := apiClient.HasManyApi.GETCheckoutComGatewayIdPaymentMethods(context.Background(), checkoutComGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETAxervePaymentIdVersions(context.Background(), axervePaymentId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCleanupIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETBillingInfoValidationRuleIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var cleanupId interface{} + var billingInfoValidationRuleId interface{} - httpRes, err := apiClient.HasManyApi.GETCleanupIdEvents(context.Background(), cleanupId).Execute() + httpRes, err := apiClient.HasManyApi.GETBillingInfoValidationRuleIdAttachments(context.Background(), billingInfoValidationRuleId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCouponCodesPromotionRuleIdCoupons", func(t *testing.T) { + t.Run("Test HasManyApiService GETBillingInfoValidationRuleIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var couponCodesPromotionRuleId interface{} + var billingInfoValidationRuleId interface{} - httpRes, err := apiClient.HasManyApi.GETCouponCodesPromotionRuleIdCoupons(context.Background(), couponCodesPromotionRuleId).Execute() + httpRes, err := apiClient.HasManyApi.GETBillingInfoValidationRuleIdVersions(context.Background(), billingInfoValidationRuleId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCouponRecipientIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETBingGeocoderIdAddresses", func(t *testing.T) { t.Skip("skip test") // remove to run test - var couponRecipientId interface{} + var bingGeocoderId interface{} - httpRes, err := apiClient.HasManyApi.GETCouponRecipientIdAttachments(context.Background(), couponRecipientId).Execute() + httpRes, err := apiClient.HasManyApi.GETBingGeocoderIdAddresses(context.Background(), bingGeocoderId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCustomerAddressIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETBingGeocoderIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var customerAddressId interface{} + var bingGeocoderId interface{} - httpRes, err := apiClient.HasManyApi.GETCustomerAddressIdEvents(context.Background(), customerAddressId).Execute() + httpRes, err := apiClient.HasManyApi.GETBingGeocoderIdAttachments(context.Background(), bingGeocoderId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCustomerGroupIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETBingGeocoderIdMarkets", func(t *testing.T) { t.Skip("skip test") // remove to run test - var customerGroupId interface{} + var bingGeocoderId interface{} - httpRes, err := apiClient.HasManyApi.GETCustomerGroupIdAttachments(context.Background(), customerGroupId).Execute() + httpRes, err := apiClient.HasManyApi.GETBingGeocoderIdMarkets(context.Background(), bingGeocoderId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCustomerGroupIdCustomers", func(t *testing.T) { + t.Run("Test HasManyApiService GETBraintreeGatewayIdBraintreePayments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var customerGroupId interface{} + var braintreeGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETCustomerGroupIdCustomers(context.Background(), customerGroupId).Execute() + httpRes, err := apiClient.HasManyApi.GETBraintreeGatewayIdBraintreePayments(context.Background(), braintreeGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCustomerGroupIdMarkets", func(t *testing.T) { + t.Run("Test HasManyApiService GETBraintreeGatewayIdPaymentMethods", func(t *testing.T) { t.Skip("skip test") // remove to run test - var customerGroupId interface{} + var braintreeGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETCustomerGroupIdMarkets(context.Background(), customerGroupId).Execute() + httpRes, err := apiClient.HasManyApi.GETBraintreeGatewayIdPaymentMethods(context.Background(), braintreeGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCustomerIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETBraintreeGatewayIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var customerId interface{} + var braintreeGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETCustomerIdAttachments(context.Background(), customerId).Execute() + httpRes, err := apiClient.HasManyApi.GETBraintreeGatewayIdVersions(context.Background(), braintreeGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCustomerIdCustomerAddresses", func(t *testing.T) { + t.Run("Test HasManyApiService GETBraintreePaymentIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var customerId interface{} + var braintreePaymentId interface{} - httpRes, err := apiClient.HasManyApi.GETCustomerIdCustomerAddresses(context.Background(), customerId).Execute() + httpRes, err := apiClient.HasManyApi.GETBraintreePaymentIdVersions(context.Background(), braintreePaymentId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCustomerIdCustomerPaymentSources", func(t *testing.T) { + t.Run("Test HasManyApiService GETBundleIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var customerId interface{} + var bundleId interface{} - httpRes, err := apiClient.HasManyApi.GETCustomerIdCustomerPaymentSources(context.Background(), customerId).Execute() + httpRes, err := apiClient.HasManyApi.GETBundleIdAttachments(context.Background(), bundleId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCustomerIdCustomerSubscriptions", func(t *testing.T) { + t.Run("Test HasManyApiService GETBundleIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test - var customerId interface{} + var bundleId interface{} - httpRes, err := apiClient.HasManyApi.GETCustomerIdCustomerSubscriptions(context.Background(), customerId).Execute() + httpRes, err := apiClient.HasManyApi.GETBundleIdEvents(context.Background(), bundleId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCustomerIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETBundleIdSkus", func(t *testing.T) { t.Skip("skip test") // remove to run test - var customerId interface{} + var bundleId interface{} - httpRes, err := apiClient.HasManyApi.GETCustomerIdEvents(context.Background(), customerId).Execute() + httpRes, err := apiClient.HasManyApi.GETBundleIdSkus(context.Background(), bundleId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCustomerIdOrderSubscriptions", func(t *testing.T) { + t.Run("Test HasManyApiService GETBundleIdTags", func(t *testing.T) { t.Skip("skip test") // remove to run test - var customerId interface{} + var bundleId interface{} - httpRes, err := apiClient.HasManyApi.GETCustomerIdOrderSubscriptions(context.Background(), customerId).Execute() + httpRes, err := apiClient.HasManyApi.GETBundleIdTags(context.Background(), bundleId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCustomerIdOrders", func(t *testing.T) { + t.Run("Test HasManyApiService GETBundleIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var customerId interface{} + var bundleId interface{} - httpRes, err := apiClient.HasManyApi.GETCustomerIdOrders(context.Background(), customerId).Execute() + httpRes, err := apiClient.HasManyApi.GETBundleIdVersions(context.Background(), bundleId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCustomerIdReturns", func(t *testing.T) { + t.Run("Test HasManyApiService GETBuyXPayYPromotionIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var customerId interface{} + var buyXPayYPromotionId interface{} - httpRes, err := apiClient.HasManyApi.GETCustomerIdReturns(context.Background(), customerId).Execute() + httpRes, err := apiClient.HasManyApi.GETBuyXPayYPromotionIdAttachments(context.Background(), buyXPayYPromotionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCustomerIdSkuLists", func(t *testing.T) { + t.Run("Test HasManyApiService GETBuyXPayYPromotionIdCoupons", func(t *testing.T) { t.Skip("skip test") // remove to run test - var customerId interface{} + var buyXPayYPromotionId interface{} - httpRes, err := apiClient.HasManyApi.GETCustomerIdSkuLists(context.Background(), customerId).Execute() + httpRes, err := apiClient.HasManyApi.GETBuyXPayYPromotionIdCoupons(context.Background(), buyXPayYPromotionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCustomerPasswordResetIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETBuyXPayYPromotionIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test - var customerPasswordResetId interface{} + var buyXPayYPromotionId interface{} - httpRes, err := apiClient.HasManyApi.GETCustomerPasswordResetIdEvents(context.Background(), customerPasswordResetId).Execute() + httpRes, err := apiClient.HasManyApi.GETBuyXPayYPromotionIdEvents(context.Background(), buyXPayYPromotionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETCustomerSubscriptionIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETBuyXPayYPromotionIdSkus", func(t *testing.T) { t.Skip("skip test") // remove to run test - var customerSubscriptionId interface{} + var buyXPayYPromotionId interface{} - httpRes, err := apiClient.HasManyApi.GETCustomerSubscriptionIdEvents(context.Background(), customerSubscriptionId).Execute() + httpRes, err := apiClient.HasManyApi.GETBuyXPayYPromotionIdSkus(context.Background(), buyXPayYPromotionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETDeliveryLeadTimeIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETBuyXPayYPromotionIdTags", func(t *testing.T) { t.Skip("skip test") // remove to run test - var deliveryLeadTimeId interface{} + var buyXPayYPromotionId interface{} - httpRes, err := apiClient.HasManyApi.GETDeliveryLeadTimeIdAttachments(context.Background(), deliveryLeadTimeId).Execute() + httpRes, err := apiClient.HasManyApi.GETBuyXPayYPromotionIdTags(context.Background(), buyXPayYPromotionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETEventIdLastEventCallbacks", func(t *testing.T) { + t.Run("Test HasManyApiService GETBuyXPayYPromotionIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var eventId interface{} + var buyXPayYPromotionId interface{} - httpRes, err := apiClient.HasManyApi.GETEventIdLastEventCallbacks(context.Background(), eventId).Execute() + httpRes, err := apiClient.HasManyApi.GETBuyXPayYPromotionIdVersions(context.Background(), buyXPayYPromotionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETEventIdWebhooks", func(t *testing.T) { + t.Run("Test HasManyApiService GETCaptureIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var eventId interface{} + var captureId interface{} - httpRes, err := apiClient.HasManyApi.GETEventIdWebhooks(context.Background(), eventId).Execute() + httpRes, err := apiClient.HasManyApi.GETCaptureIdAttachments(context.Background(), captureId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETExportIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETCaptureIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test - var exportId interface{} + var captureId interface{} - httpRes, err := apiClient.HasManyApi.GETExportIdEvents(context.Background(), exportId).Execute() + httpRes, err := apiClient.HasManyApi.GETCaptureIdEvents(context.Background(), captureId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETExternalGatewayIdExternalPayments", func(t *testing.T) { + t.Run("Test HasManyApiService GETCaptureIdRefunds", func(t *testing.T) { t.Skip("skip test") // remove to run test - var externalGatewayId interface{} + var captureId interface{} - httpRes, err := apiClient.HasManyApi.GETExternalGatewayIdExternalPayments(context.Background(), externalGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETCaptureIdRefunds(context.Background(), captureId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETExternalGatewayIdPaymentMethods", func(t *testing.T) { + t.Run("Test HasManyApiService GETCaptureIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var externalGatewayId interface{} + var captureId interface{} - httpRes, err := apiClient.HasManyApi.GETExternalGatewayIdPaymentMethods(context.Background(), externalGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETCaptureIdVersions(context.Background(), captureId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETExternalPromotionIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETCarrierAccountIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var externalPromotionId interface{} + var carrierAccountId interface{} - httpRes, err := apiClient.HasManyApi.GETExternalPromotionIdAttachments(context.Background(), externalPromotionId).Execute() + httpRes, err := apiClient.HasManyApi.GETCarrierAccountIdAttachments(context.Background(), carrierAccountId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETExternalPromotionIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETCarrierAccountIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var externalPromotionId interface{} + var carrierAccountId interface{} - httpRes, err := apiClient.HasManyApi.GETExternalPromotionIdEvents(context.Background(), externalPromotionId).Execute() + httpRes, err := apiClient.HasManyApi.GETCarrierAccountIdVersions(context.Background(), carrierAccountId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETExternalTaxCalculatorIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETCheckoutComGatewayIdCheckoutComPayments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var externalTaxCalculatorId interface{} + var checkoutComGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETExternalTaxCalculatorIdAttachments(context.Background(), externalTaxCalculatorId).Execute() + httpRes, err := apiClient.HasManyApi.GETCheckoutComGatewayIdCheckoutComPayments(context.Background(), checkoutComGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETExternalTaxCalculatorIdMarkets", func(t *testing.T) { + t.Run("Test HasManyApiService GETCheckoutComGatewayIdPaymentMethods", func(t *testing.T) { t.Skip("skip test") // remove to run test - var externalTaxCalculatorId interface{} + var checkoutComGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETExternalTaxCalculatorIdMarkets(context.Background(), externalTaxCalculatorId).Execute() + httpRes, err := apiClient.HasManyApi.GETCheckoutComGatewayIdPaymentMethods(context.Background(), checkoutComGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETFixedAmountPromotionIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETCheckoutComGatewayIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var fixedAmountPromotionId interface{} + var checkoutComGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETFixedAmountPromotionIdAttachments(context.Background(), fixedAmountPromotionId).Execute() + httpRes, err := apiClient.HasManyApi.GETCheckoutComGatewayIdVersions(context.Background(), checkoutComGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETFixedAmountPromotionIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETCheckoutComPaymentIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var fixedAmountPromotionId interface{} + var checkoutComPaymentId interface{} - httpRes, err := apiClient.HasManyApi.GETFixedAmountPromotionIdEvents(context.Background(), fixedAmountPromotionId).Execute() + httpRes, err := apiClient.HasManyApi.GETCheckoutComPaymentIdVersions(context.Background(), checkoutComPaymentId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETFixedPricePromotionIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETCleanupIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test - var fixedPricePromotionId interface{} + var cleanupId interface{} - httpRes, err := apiClient.HasManyApi.GETFixedPricePromotionIdAttachments(context.Background(), fixedPricePromotionId).Execute() + httpRes, err := apiClient.HasManyApi.GETCleanupIdEvents(context.Background(), cleanupId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETFixedPricePromotionIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETCleanupIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var fixedPricePromotionId interface{} + var cleanupId interface{} - httpRes, err := apiClient.HasManyApi.GETFixedPricePromotionIdEvents(context.Background(), fixedPricePromotionId).Execute() + httpRes, err := apiClient.HasManyApi.GETCleanupIdVersions(context.Background(), cleanupId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETFixedPricePromotionIdSkus", func(t *testing.T) { + t.Run("Test HasManyApiService GETCouponCodesPromotionRuleIdCoupons", func(t *testing.T) { t.Skip("skip test") // remove to run test - var fixedPricePromotionId interface{} + var couponCodesPromotionRuleId interface{} - httpRes, err := apiClient.HasManyApi.GETFixedPricePromotionIdSkus(context.Background(), fixedPricePromotionId).Execute() + httpRes, err := apiClient.HasManyApi.GETCouponCodesPromotionRuleIdCoupons(context.Background(), couponCodesPromotionRuleId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETFreeGiftPromotionIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETCouponCodesPromotionRuleIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var freeGiftPromotionId interface{} + var couponCodesPromotionRuleId interface{} + + httpRes, err := apiClient.HasManyApi.GETCouponCodesPromotionRuleIdVersions(context.Background(), couponCodesPromotionRuleId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCouponIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var couponId interface{} + + httpRes, err := apiClient.HasManyApi.GETCouponIdEvents(context.Background(), couponId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCouponIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var couponId interface{} + + httpRes, err := apiClient.HasManyApi.GETCouponIdTags(context.Background(), couponId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCouponIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var couponId interface{} + + httpRes, err := apiClient.HasManyApi.GETCouponIdVersions(context.Background(), couponId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCouponRecipientIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var couponRecipientId interface{} + + httpRes, err := apiClient.HasManyApi.GETCouponRecipientIdAttachments(context.Background(), couponRecipientId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCouponRecipientIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var couponRecipientId interface{} + + httpRes, err := apiClient.HasManyApi.GETCouponRecipientIdVersions(context.Background(), couponRecipientId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomPromotionRuleIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customPromotionRuleId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomPromotionRuleIdVersions(context.Background(), customPromotionRuleId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerAddressIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerAddressId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerAddressIdEvents(context.Background(), customerAddressId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerAddressIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerAddressId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerAddressIdVersions(context.Background(), customerAddressId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerGroupIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerGroupId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerGroupIdAttachments(context.Background(), customerGroupId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerGroupIdCustomers", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerGroupId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerGroupIdCustomers(context.Background(), customerGroupId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerGroupIdMarkets", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerGroupId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerGroupIdMarkets(context.Background(), customerGroupId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerGroupIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerGroupId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerGroupIdVersions(context.Background(), customerGroupId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerIdAttachments(context.Background(), customerId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerIdCustomerAddresses", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerIdCustomerAddresses(context.Background(), customerId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerIdCustomerPaymentSources", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerIdCustomerPaymentSources(context.Background(), customerId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerIdCustomerSubscriptions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerIdCustomerSubscriptions(context.Background(), customerId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerIdEvents(context.Background(), customerId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerIdOrderSubscriptions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerIdOrderSubscriptions(context.Background(), customerId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerIdOrders", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerIdOrders(context.Background(), customerId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerIdReturns", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerIdReturns(context.Background(), customerId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerIdSkuLists", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerIdSkuLists(context.Background(), customerId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerIdTags(context.Background(), customerId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerPasswordResetIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerPasswordResetId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerPasswordResetIdEvents(context.Background(), customerPasswordResetId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerPaymentSourceIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerPaymentSourceId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerPaymentSourceIdVersions(context.Background(), customerPaymentSourceId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerSubscriptionIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerSubscriptionId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerSubscriptionIdEvents(context.Background(), customerSubscriptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETCustomerSubscriptionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerSubscriptionId interface{} + + httpRes, err := apiClient.HasManyApi.GETCustomerSubscriptionIdVersions(context.Background(), customerSubscriptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETDeliveryLeadTimeIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var deliveryLeadTimeId interface{} + + httpRes, err := apiClient.HasManyApi.GETDeliveryLeadTimeIdAttachments(context.Background(), deliveryLeadTimeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETDeliveryLeadTimeIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var deliveryLeadTimeId interface{} + + httpRes, err := apiClient.HasManyApi.GETDeliveryLeadTimeIdVersions(context.Background(), deliveryLeadTimeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETEventIdLastEventCallbacks", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var eventId interface{} + + httpRes, err := apiClient.HasManyApi.GETEventIdLastEventCallbacks(context.Background(), eventId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETEventIdWebhooks", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var eventId interface{} + + httpRes, err := apiClient.HasManyApi.GETEventIdWebhooks(context.Background(), eventId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETExportIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var exportId interface{} + + httpRes, err := apiClient.HasManyApi.GETExportIdEvents(context.Background(), exportId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETExternalGatewayIdExternalPayments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalGatewayId interface{} + + httpRes, err := apiClient.HasManyApi.GETExternalGatewayIdExternalPayments(context.Background(), externalGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETExternalGatewayIdPaymentMethods", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalGatewayId interface{} + + httpRes, err := apiClient.HasManyApi.GETExternalGatewayIdPaymentMethods(context.Background(), externalGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETExternalGatewayIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalGatewayId interface{} + + httpRes, err := apiClient.HasManyApi.GETExternalGatewayIdVersions(context.Background(), externalGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETExternalPaymentIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalPaymentId interface{} + + httpRes, err := apiClient.HasManyApi.GETExternalPaymentIdVersions(context.Background(), externalPaymentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETExternalPromotionIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETExternalPromotionIdAttachments(context.Background(), externalPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETExternalPromotionIdCoupons", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETExternalPromotionIdCoupons(context.Background(), externalPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETExternalPromotionIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETExternalPromotionIdEvents(context.Background(), externalPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETExternalPromotionIdSkus", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETExternalPromotionIdSkus(context.Background(), externalPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETExternalPromotionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETExternalPromotionIdTags(context.Background(), externalPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETExternalPromotionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETExternalPromotionIdVersions(context.Background(), externalPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETExternalTaxCalculatorIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalTaxCalculatorId interface{} + + httpRes, err := apiClient.HasManyApi.GETExternalTaxCalculatorIdAttachments(context.Background(), externalTaxCalculatorId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETExternalTaxCalculatorIdMarkets", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalTaxCalculatorId interface{} + + httpRes, err := apiClient.HasManyApi.GETExternalTaxCalculatorIdMarkets(context.Background(), externalTaxCalculatorId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETExternalTaxCalculatorIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalTaxCalculatorId interface{} + + httpRes, err := apiClient.HasManyApi.GETExternalTaxCalculatorIdVersions(context.Background(), externalTaxCalculatorId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFixedAmountPromotionIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedAmountPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFixedAmountPromotionIdAttachments(context.Background(), fixedAmountPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFixedAmountPromotionIdCoupons", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedAmountPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFixedAmountPromotionIdCoupons(context.Background(), fixedAmountPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFixedAmountPromotionIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedAmountPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFixedAmountPromotionIdEvents(context.Background(), fixedAmountPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFixedAmountPromotionIdSkus", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedAmountPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFixedAmountPromotionIdSkus(context.Background(), fixedAmountPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFixedAmountPromotionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedAmountPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFixedAmountPromotionIdTags(context.Background(), fixedAmountPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFixedAmountPromotionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedAmountPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFixedAmountPromotionIdVersions(context.Background(), fixedAmountPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFixedPricePromotionIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedPricePromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFixedPricePromotionIdAttachments(context.Background(), fixedPricePromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFixedPricePromotionIdCoupons", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedPricePromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFixedPricePromotionIdCoupons(context.Background(), fixedPricePromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFixedPricePromotionIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedPricePromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFixedPricePromotionIdEvents(context.Background(), fixedPricePromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFixedPricePromotionIdSkus", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedPricePromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFixedPricePromotionIdSkus(context.Background(), fixedPricePromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFixedPricePromotionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedPricePromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFixedPricePromotionIdTags(context.Background(), fixedPricePromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFixedPricePromotionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedPricePromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFixedPricePromotionIdVersions(context.Background(), fixedPricePromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFlexPromotionIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var flexPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFlexPromotionIdAttachments(context.Background(), flexPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFlexPromotionIdCoupons", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var flexPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFlexPromotionIdCoupons(context.Background(), flexPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFlexPromotionIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var flexPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFlexPromotionIdEvents(context.Background(), flexPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFlexPromotionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var flexPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFlexPromotionIdTags(context.Background(), flexPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFlexPromotionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var flexPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFlexPromotionIdVersions(context.Background(), flexPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFreeGiftPromotionIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeGiftPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFreeGiftPromotionIdAttachments(context.Background(), freeGiftPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFreeGiftPromotionIdCoupons", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeGiftPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFreeGiftPromotionIdCoupons(context.Background(), freeGiftPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFreeGiftPromotionIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeGiftPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFreeGiftPromotionIdEvents(context.Background(), freeGiftPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFreeGiftPromotionIdSkus", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeGiftPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFreeGiftPromotionIdSkus(context.Background(), freeGiftPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFreeGiftPromotionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeGiftPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFreeGiftPromotionIdTags(context.Background(), freeGiftPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFreeGiftPromotionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeGiftPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFreeGiftPromotionIdVersions(context.Background(), freeGiftPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFreeShippingPromotionIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeShippingPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFreeShippingPromotionIdAttachments(context.Background(), freeShippingPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFreeShippingPromotionIdCoupons", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeShippingPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFreeShippingPromotionIdCoupons(context.Background(), freeShippingPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFreeShippingPromotionIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeShippingPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFreeShippingPromotionIdEvents(context.Background(), freeShippingPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFreeShippingPromotionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeShippingPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFreeShippingPromotionIdTags(context.Background(), freeShippingPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETFreeShippingPromotionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeShippingPromotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETFreeShippingPromotionIdVersions(context.Background(), freeShippingPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETGeocoderIdAddresses", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var geocoderId interface{} + + httpRes, err := apiClient.HasManyApi.GETGeocoderIdAddresses(context.Background(), geocoderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETGeocoderIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var geocoderId interface{} + + httpRes, err := apiClient.HasManyApi.GETGeocoderIdAttachments(context.Background(), geocoderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETGeocoderIdMarkets", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var geocoderId interface{} + + httpRes, err := apiClient.HasManyApi.GETGeocoderIdMarkets(context.Background(), geocoderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETGiftCardIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var giftCardId interface{} + + httpRes, err := apiClient.HasManyApi.GETGiftCardIdAttachments(context.Background(), giftCardId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETGiftCardIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var giftCardId interface{} + + httpRes, err := apiClient.HasManyApi.GETGiftCardIdEvents(context.Background(), giftCardId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETGiftCardIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var giftCardId interface{} + + httpRes, err := apiClient.HasManyApi.GETGiftCardIdTags(context.Background(), giftCardId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETGiftCardIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var giftCardId interface{} + + httpRes, err := apiClient.HasManyApi.GETGiftCardIdVersions(context.Background(), giftCardId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETGiftCardRecipientIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var giftCardRecipientId interface{} + + httpRes, err := apiClient.HasManyApi.GETGiftCardRecipientIdAttachments(context.Background(), giftCardRecipientId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETGiftCardRecipientIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var giftCardRecipientId interface{} + + httpRes, err := apiClient.HasManyApi.GETGiftCardRecipientIdVersions(context.Background(), giftCardRecipientId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETGoogleGeocoderIdAddresses", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var googleGeocoderId interface{} + + httpRes, err := apiClient.HasManyApi.GETGoogleGeocoderIdAddresses(context.Background(), googleGeocoderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETGoogleGeocoderIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var googleGeocoderId interface{} + + httpRes, err := apiClient.HasManyApi.GETGoogleGeocoderIdAttachments(context.Background(), googleGeocoderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETGoogleGeocoderIdMarkets", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var googleGeocoderId interface{} + + httpRes, err := apiClient.HasManyApi.GETGoogleGeocoderIdMarkets(context.Background(), googleGeocoderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETImportIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var importId interface{} + + httpRes, err := apiClient.HasManyApi.GETImportIdEvents(context.Background(), importId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETInStockSubscriptionIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var inStockSubscriptionId interface{} + + httpRes, err := apiClient.HasManyApi.GETInStockSubscriptionIdEvents(context.Background(), inStockSubscriptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETInStockSubscriptionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var inStockSubscriptionId interface{} + + httpRes, err := apiClient.HasManyApi.GETInStockSubscriptionIdVersions(context.Background(), inStockSubscriptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETInventoryModelIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var inventoryModelId interface{} + + httpRes, err := apiClient.HasManyApi.GETInventoryModelIdAttachments(context.Background(), inventoryModelId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETInventoryModelIdInventoryReturnLocations", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var inventoryModelId interface{} + + httpRes, err := apiClient.HasManyApi.GETInventoryModelIdInventoryReturnLocations(context.Background(), inventoryModelId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETInventoryModelIdInventoryStockLocations", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var inventoryModelId interface{} + + httpRes, err := apiClient.HasManyApi.GETInventoryModelIdInventoryStockLocations(context.Background(), inventoryModelId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETInventoryModelIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var inventoryModelId interface{} + + httpRes, err := apiClient.HasManyApi.GETInventoryModelIdVersions(context.Background(), inventoryModelId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETInventoryReturnLocationIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var inventoryReturnLocationId interface{} + + httpRes, err := apiClient.HasManyApi.GETInventoryReturnLocationIdVersions(context.Background(), inventoryReturnLocationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETInventoryStockLocationIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var inventoryStockLocationId interface{} + + httpRes, err := apiClient.HasManyApi.GETInventoryStockLocationIdVersions(context.Background(), inventoryStockLocationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETKlarnaGatewayIdKlarnaPayments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var klarnaGatewayId interface{} + + httpRes, err := apiClient.HasManyApi.GETKlarnaGatewayIdKlarnaPayments(context.Background(), klarnaGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETKlarnaGatewayIdPaymentMethods", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var klarnaGatewayId interface{} + + httpRes, err := apiClient.HasManyApi.GETKlarnaGatewayIdPaymentMethods(context.Background(), klarnaGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETKlarnaGatewayIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var klarnaGatewayId interface{} + + httpRes, err := apiClient.HasManyApi.GETKlarnaGatewayIdVersions(context.Background(), klarnaGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETKlarnaPaymentIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var klarnaPaymentId interface{} + + httpRes, err := apiClient.HasManyApi.GETKlarnaPaymentIdVersions(context.Background(), klarnaPaymentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETLineItemIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var lineItemId interface{} + + httpRes, err := apiClient.HasManyApi.GETLineItemIdEvents(context.Background(), lineItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETLineItemIdLineItemOptions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var lineItemId interface{} + + httpRes, err := apiClient.HasManyApi.GETLineItemIdLineItemOptions(context.Background(), lineItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETLineItemIdReturnLineItems", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var lineItemId interface{} + + httpRes, err := apiClient.HasManyApi.GETLineItemIdReturnLineItems(context.Background(), lineItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETLineItemIdStockLineItems", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var lineItemId interface{} + + httpRes, err := apiClient.HasManyApi.GETLineItemIdStockLineItems(context.Background(), lineItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETLineItemIdStockReservations", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var lineItemId interface{} + + httpRes, err := apiClient.HasManyApi.GETLineItemIdStockReservations(context.Background(), lineItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETLineItemIdStockTransfers", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var lineItemId interface{} + + httpRes, err := apiClient.HasManyApi.GETLineItemIdStockTransfers(context.Background(), lineItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETLineItemIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var lineItemId interface{} + + httpRes, err := apiClient.HasManyApi.GETLineItemIdTags(context.Background(), lineItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETLineItemOptionIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var lineItemOptionId interface{} + + httpRes, err := apiClient.HasManyApi.GETLineItemOptionIdEvents(context.Background(), lineItemOptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETLineItemOptionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var lineItemOptionId interface{} + + httpRes, err := apiClient.HasManyApi.GETLineItemOptionIdTags(context.Background(), lineItemOptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETLinkIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var linkId interface{} + + httpRes, err := apiClient.HasManyApi.GETLinkIdEvents(context.Background(), linkId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETManualGatewayIdPaymentMethods", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var manualGatewayId interface{} + + httpRes, err := apiClient.HasManyApi.GETManualGatewayIdPaymentMethods(context.Background(), manualGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETManualGatewayIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var manualGatewayId interface{} + + httpRes, err := apiClient.HasManyApi.GETManualGatewayIdVersions(context.Background(), manualGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETManualTaxCalculatorIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var manualTaxCalculatorId interface{} + + httpRes, err := apiClient.HasManyApi.GETManualTaxCalculatorIdAttachments(context.Background(), manualTaxCalculatorId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETManualTaxCalculatorIdMarkets", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var manualTaxCalculatorId interface{} + + httpRes, err := apiClient.HasManyApi.GETManualTaxCalculatorIdMarkets(context.Background(), manualTaxCalculatorId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETManualTaxCalculatorIdTaxRules", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var manualTaxCalculatorId interface{} + + httpRes, err := apiClient.HasManyApi.GETManualTaxCalculatorIdTaxRules(context.Background(), manualTaxCalculatorId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETManualTaxCalculatorIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var manualTaxCalculatorId interface{} + + httpRes, err := apiClient.HasManyApi.GETManualTaxCalculatorIdVersions(context.Background(), manualTaxCalculatorId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETMarketIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var marketId interface{} + + httpRes, err := apiClient.HasManyApi.GETMarketIdAttachments(context.Background(), marketId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETMarketIdPriceListSchedulers", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var marketId interface{} + + httpRes, err := apiClient.HasManyApi.GETMarketIdPriceListSchedulers(context.Background(), marketId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETMarketIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var marketId interface{} + + httpRes, err := apiClient.HasManyApi.GETMarketIdVersions(context.Background(), marketId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETMerchantIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var merchantId interface{} + + httpRes, err := apiClient.HasManyApi.GETMerchantIdAttachments(context.Background(), merchantId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETMerchantIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var merchantId interface{} + + httpRes, err := apiClient.HasManyApi.GETMerchantIdVersions(context.Background(), merchantId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderAmountPromotionRuleIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderAmountPromotionRuleId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderAmountPromotionRuleIdVersions(context.Background(), orderAmountPromotionRuleId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderCopyIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderCopyId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderCopyIdEvents(context.Background(), orderCopyId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderFactoryIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderFactoryId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderFactoryIdEvents(context.Background(), orderFactoryId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdAttachments(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdAuthorizations", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdAuthorizations(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdAvailableCustomerPaymentSources", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdAvailableCustomerPaymentSources(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdAvailableFreeBundles", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdAvailableFreeBundles(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdAvailableFreeSkus", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdAvailableFreeSkus(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdAvailablePaymentMethods", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdAvailablePaymentMethods(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdCaptures", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdCaptures(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdEvents(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdLineItemOptions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdLineItemOptions(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdLineItems", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdLineItems(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdLinks", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdLinks(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdOrderCopies", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdOrderCopies(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdOrderFactories", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdOrderFactories(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdOrderSubscriptions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdOrderSubscriptions(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdPaymentOptions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdPaymentOptions(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdRecurringOrderCopies", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdRecurringOrderCopies(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdRefunds", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdRefunds(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdResourceErrors", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdResourceErrors(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdReturns", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdReturns(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdShipments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdShipments(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdStockLineItems", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdStockLineItems(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdStockReservations", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdStockReservations(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdStockTransfers", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdStockTransfers(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdTags(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdVersions(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderIdVoids", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderIdVoids(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderSubscriptionIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderSubscriptionId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderSubscriptionIdEvents(context.Background(), orderSubscriptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderSubscriptionIdOrderFactories", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderSubscriptionId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderSubscriptionIdOrderFactories(context.Background(), orderSubscriptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderSubscriptionIdOrderSubscriptionItems", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderSubscriptionId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderSubscriptionIdOrderSubscriptionItems(context.Background(), orderSubscriptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderSubscriptionIdOrders", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderSubscriptionId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderSubscriptionIdOrders(context.Background(), orderSubscriptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderSubscriptionIdRecurringOrderCopies", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderSubscriptionId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderSubscriptionIdRecurringOrderCopies(context.Background(), orderSubscriptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderSubscriptionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderSubscriptionId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderSubscriptionIdTags(context.Background(), orderSubscriptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETOrderSubscriptionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderSubscriptionId interface{} + + httpRes, err := apiClient.HasManyApi.GETOrderSubscriptionIdVersions(context.Background(), orderSubscriptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPackageIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var packageId interface{} + + httpRes, err := apiClient.HasManyApi.GETPackageIdAttachments(context.Background(), packageId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPackageIdParcels", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var packageId interface{} + + httpRes, err := apiClient.HasManyApi.GETPackageIdParcels(context.Background(), packageId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPackageIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var packageId interface{} + + httpRes, err := apiClient.HasManyApi.GETPackageIdVersions(context.Background(), packageId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETParcelIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var parcelId interface{} + + httpRes, err := apiClient.HasManyApi.GETParcelIdAttachments(context.Background(), parcelId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETParcelIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var parcelId interface{} + + httpRes, err := apiClient.HasManyApi.GETParcelIdEvents(context.Background(), parcelId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETParcelIdParcelLineItems", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var parcelId interface{} + + httpRes, err := apiClient.HasManyApi.GETParcelIdParcelLineItems(context.Background(), parcelId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETParcelIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var parcelId interface{} + + httpRes, err := apiClient.HasManyApi.GETParcelIdVersions(context.Background(), parcelId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETParcelLineItemIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var parcelLineItemId interface{} + + httpRes, err := apiClient.HasManyApi.GETParcelLineItemIdVersions(context.Background(), parcelLineItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPaymentGatewayIdPaymentMethods", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var paymentGatewayId interface{} + + httpRes, err := apiClient.HasManyApi.GETPaymentGatewayIdPaymentMethods(context.Background(), paymentGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPaymentGatewayIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var paymentGatewayId interface{} + + httpRes, err := apiClient.HasManyApi.GETPaymentGatewayIdVersions(context.Background(), paymentGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPaymentMethodIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var paymentMethodId interface{} + + httpRes, err := apiClient.HasManyApi.GETPaymentMethodIdAttachments(context.Background(), paymentMethodId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPaymentMethodIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var paymentMethodId interface{} + + httpRes, err := apiClient.HasManyApi.GETPaymentMethodIdVersions(context.Background(), paymentMethodId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPaymentOptionIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var paymentOptionId interface{} + + httpRes, err := apiClient.HasManyApi.GETPaymentOptionIdAttachments(context.Background(), paymentOptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPaypalGatewayIdPaymentMethods", func(t *testing.T) { + + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.HasManyApi.GETFreeGiftPromotionIdAttachments(context.Background(), freeGiftPromotionId).Execute() + var paypalGatewayId interface{} + + httpRes, err := apiClient.HasManyApi.GETPaypalGatewayIdPaymentMethods(context.Background(), paypalGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETFreeGiftPromotionIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETPaypalGatewayIdPaypalPayments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var freeGiftPromotionId interface{} + var paypalGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETFreeGiftPromotionIdEvents(context.Background(), freeGiftPromotionId).Execute() + httpRes, err := apiClient.HasManyApi.GETPaypalGatewayIdPaypalPayments(context.Background(), paypalGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETFreeGiftPromotionIdSkus", func(t *testing.T) { + t.Run("Test HasManyApiService GETPaypalGatewayIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var freeGiftPromotionId interface{} + var paypalGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETFreeGiftPromotionIdSkus(context.Background(), freeGiftPromotionId).Execute() + httpRes, err := apiClient.HasManyApi.GETPaypalGatewayIdVersions(context.Background(), paypalGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETFreeShippingPromotionIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETPaypalPaymentIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var freeShippingPromotionId interface{} + var paypalPaymentId interface{} - httpRes, err := apiClient.HasManyApi.GETFreeShippingPromotionIdAttachments(context.Background(), freeShippingPromotionId).Execute() + httpRes, err := apiClient.HasManyApi.GETPaypalPaymentIdVersions(context.Background(), paypalPaymentId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETFreeShippingPromotionIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETPercentageDiscountPromotionIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var freeShippingPromotionId interface{} + var percentageDiscountPromotionId interface{} - httpRes, err := apiClient.HasManyApi.GETFreeShippingPromotionIdEvents(context.Background(), freeShippingPromotionId).Execute() + httpRes, err := apiClient.HasManyApi.GETPercentageDiscountPromotionIdAttachments(context.Background(), percentageDiscountPromotionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETGeocoderIdAddresses", func(t *testing.T) { + t.Run("Test HasManyApiService GETPercentageDiscountPromotionIdCoupons", func(t *testing.T) { t.Skip("skip test") // remove to run test - var geocoderId interface{} + var percentageDiscountPromotionId interface{} - httpRes, err := apiClient.HasManyApi.GETGeocoderIdAddresses(context.Background(), geocoderId).Execute() + httpRes, err := apiClient.HasManyApi.GETPercentageDiscountPromotionIdCoupons(context.Background(), percentageDiscountPromotionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETGeocoderIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETPercentageDiscountPromotionIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test - var geocoderId interface{} + var percentageDiscountPromotionId interface{} - httpRes, err := apiClient.HasManyApi.GETGeocoderIdAttachments(context.Background(), geocoderId).Execute() + httpRes, err := apiClient.HasManyApi.GETPercentageDiscountPromotionIdEvents(context.Background(), percentageDiscountPromotionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETGiftCardIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETPercentageDiscountPromotionIdSkus", func(t *testing.T) { t.Skip("skip test") // remove to run test - var giftCardId interface{} + var percentageDiscountPromotionId interface{} - httpRes, err := apiClient.HasManyApi.GETGiftCardIdAttachments(context.Background(), giftCardId).Execute() + httpRes, err := apiClient.HasManyApi.GETPercentageDiscountPromotionIdSkus(context.Background(), percentageDiscountPromotionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETGiftCardIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETPercentageDiscountPromotionIdTags", func(t *testing.T) { t.Skip("skip test") // remove to run test - var giftCardId interface{} + var percentageDiscountPromotionId interface{} - httpRes, err := apiClient.HasManyApi.GETGiftCardIdEvents(context.Background(), giftCardId).Execute() + httpRes, err := apiClient.HasManyApi.GETPercentageDiscountPromotionIdTags(context.Background(), percentageDiscountPromotionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETGiftCardRecipientIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETPercentageDiscountPromotionIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var giftCardRecipientId interface{} + var percentageDiscountPromotionId interface{} - httpRes, err := apiClient.HasManyApi.GETGiftCardRecipientIdAttachments(context.Background(), giftCardRecipientId).Execute() + httpRes, err := apiClient.HasManyApi.GETPercentageDiscountPromotionIdVersions(context.Background(), percentageDiscountPromotionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETGoogleGeocoderIdAddresses", func(t *testing.T) { + t.Run("Test HasManyApiService GETPriceFrequencyTierIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var googleGeocoderId interface{} + var priceFrequencyTierId interface{} - httpRes, err := apiClient.HasManyApi.GETGoogleGeocoderIdAddresses(context.Background(), googleGeocoderId).Execute() + httpRes, err := apiClient.HasManyApi.GETPriceFrequencyTierIdAttachments(context.Background(), priceFrequencyTierId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETGoogleGeocoderIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETPriceFrequencyTierIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test - var googleGeocoderId interface{} + var priceFrequencyTierId interface{} - httpRes, err := apiClient.HasManyApi.GETGoogleGeocoderIdAttachments(context.Background(), googleGeocoderId).Execute() + httpRes, err := apiClient.HasManyApi.GETPriceFrequencyTierIdEvents(context.Background(), priceFrequencyTierId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETImportIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETPriceFrequencyTierIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var importId interface{} + var priceFrequencyTierId interface{} - httpRes, err := apiClient.HasManyApi.GETImportIdEvents(context.Background(), importId).Execute() + httpRes, err := apiClient.HasManyApi.GETPriceFrequencyTierIdVersions(context.Background(), priceFrequencyTierId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETInStockSubscriptionIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETPriceIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var inStockSubscriptionId interface{} + var priceId interface{} - httpRes, err := apiClient.HasManyApi.GETInStockSubscriptionIdEvents(context.Background(), inStockSubscriptionId).Execute() + httpRes, err := apiClient.HasManyApi.GETPriceIdAttachments(context.Background(), priceId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETInventoryModelIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETPriceIdJwtMarkets", func(t *testing.T) { t.Skip("skip test") // remove to run test - var inventoryModelId interface{} + var priceId interface{} - httpRes, err := apiClient.HasManyApi.GETInventoryModelIdAttachments(context.Background(), inventoryModelId).Execute() + httpRes, err := apiClient.HasManyApi.GETPriceIdJwtMarkets(context.Background(), priceId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETInventoryModelIdInventoryReturnLocations", func(t *testing.T) { + t.Run("Test HasManyApiService GETPriceIdJwtStockLocations", func(t *testing.T) { t.Skip("skip test") // remove to run test - var inventoryModelId interface{} + var priceId interface{} - httpRes, err := apiClient.HasManyApi.GETInventoryModelIdInventoryReturnLocations(context.Background(), inventoryModelId).Execute() + httpRes, err := apiClient.HasManyApi.GETPriceIdJwtStockLocations(context.Background(), priceId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETInventoryModelIdInventoryStockLocations", func(t *testing.T) { + t.Run("Test HasManyApiService GETPriceIdPriceFrequencyTiers", func(t *testing.T) { t.Skip("skip test") // remove to run test - var inventoryModelId interface{} + var priceId interface{} - httpRes, err := apiClient.HasManyApi.GETInventoryModelIdInventoryStockLocations(context.Background(), inventoryModelId).Execute() + httpRes, err := apiClient.HasManyApi.GETPriceIdPriceFrequencyTiers(context.Background(), priceId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETKlarnaGatewayIdKlarnaPayments", func(t *testing.T) { + t.Run("Test HasManyApiService GETPriceIdPriceTiers", func(t *testing.T) { t.Skip("skip test") // remove to run test - var klarnaGatewayId interface{} + var priceId interface{} - httpRes, err := apiClient.HasManyApi.GETKlarnaGatewayIdKlarnaPayments(context.Background(), klarnaGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETPriceIdPriceTiers(context.Background(), priceId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETKlarnaGatewayIdPaymentMethods", func(t *testing.T) { + t.Run("Test HasManyApiService GETPriceIdPriceVolumeTiers", func(t *testing.T) { t.Skip("skip test") // remove to run test - var klarnaGatewayId interface{} + var priceId interface{} - httpRes, err := apiClient.HasManyApi.GETKlarnaGatewayIdPaymentMethods(context.Background(), klarnaGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETPriceIdPriceVolumeTiers(context.Background(), priceId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETLineItemIdLineItemOptions", func(t *testing.T) { + t.Run("Test HasManyApiService GETPriceIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var lineItemId interface{} + var priceId interface{} - httpRes, err := apiClient.HasManyApi.GETLineItemIdLineItemOptions(context.Background(), lineItemId).Execute() + httpRes, err := apiClient.HasManyApi.GETPriceIdVersions(context.Background(), priceId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETLineItemIdStockLineItems", func(t *testing.T) { + t.Run("Test HasManyApiService GETPriceListIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var lineItemId interface{} + var priceListId interface{} - httpRes, err := apiClient.HasManyApi.GETLineItemIdStockLineItems(context.Background(), lineItemId).Execute() + httpRes, err := apiClient.HasManyApi.GETPriceListIdAttachments(context.Background(), priceListId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETLineItemIdStockTransfers", func(t *testing.T) { + t.Run("Test HasManyApiService GETPriceListIdPriceListSchedulers", func(t *testing.T) { t.Skip("skip test") // remove to run test - var lineItemId interface{} + var priceListId interface{} - httpRes, err := apiClient.HasManyApi.GETLineItemIdStockTransfers(context.Background(), lineItemId).Execute() + httpRes, err := apiClient.HasManyApi.GETPriceListIdPriceListSchedulers(context.Background(), priceListId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETManualGatewayIdPaymentMethods", func(t *testing.T) { + t.Run("Test HasManyApiService GETPriceListIdPrices", func(t *testing.T) { t.Skip("skip test") // remove to run test - var manualGatewayId interface{} + var priceListId interface{} - httpRes, err := apiClient.HasManyApi.GETManualGatewayIdPaymentMethods(context.Background(), manualGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETPriceListIdPrices(context.Background(), priceListId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETManualTaxCalculatorIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETPriceListIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var manualTaxCalculatorId interface{} + var priceListId interface{} - httpRes, err := apiClient.HasManyApi.GETManualTaxCalculatorIdAttachments(context.Background(), manualTaxCalculatorId).Execute() + httpRes, err := apiClient.HasManyApi.GETPriceListIdVersions(context.Background(), priceListId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETManualTaxCalculatorIdMarkets", func(t *testing.T) { + t.Run("Test HasManyApiService GETPriceListSchedulerIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test - var manualTaxCalculatorId interface{} + var priceListSchedulerId interface{} - httpRes, err := apiClient.HasManyApi.GETManualTaxCalculatorIdMarkets(context.Background(), manualTaxCalculatorId).Execute() + httpRes, err := apiClient.HasManyApi.GETPriceListSchedulerIdEvents(context.Background(), priceListSchedulerId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETManualTaxCalculatorIdTaxRules", func(t *testing.T) { + t.Run("Test HasManyApiService GETPriceListSchedulerIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var manualTaxCalculatorId interface{} + var priceListSchedulerId interface{} - httpRes, err := apiClient.HasManyApi.GETManualTaxCalculatorIdTaxRules(context.Background(), manualTaxCalculatorId).Execute() + httpRes, err := apiClient.HasManyApi.GETPriceListSchedulerIdVersions(context.Background(), priceListSchedulerId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPriceTierIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceTierId interface{} + + httpRes, err := apiClient.HasManyApi.GETPriceTierIdAttachments(context.Background(), priceTierId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPriceTierIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceTierId interface{} + + httpRes, err := apiClient.HasManyApi.GETPriceTierIdVersions(context.Background(), priceTierId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPriceVolumeTierIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceVolumeTierId interface{} + + httpRes, err := apiClient.HasManyApi.GETPriceVolumeTierIdAttachments(context.Background(), priceVolumeTierId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPriceVolumeTierIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceVolumeTierId interface{} + + httpRes, err := apiClient.HasManyApi.GETPriceVolumeTierIdEvents(context.Background(), priceVolumeTierId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPriceVolumeTierIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceVolumeTierId interface{} + + httpRes, err := apiClient.HasManyApi.GETPriceVolumeTierIdVersions(context.Background(), priceVolumeTierId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPromotionIdAttachments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var promotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETPromotionIdAttachments(context.Background(), promotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPromotionIdCoupons", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var promotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETPromotionIdCoupons(context.Background(), promotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPromotionIdEvents", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var promotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETPromotionIdEvents(context.Background(), promotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPromotionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var promotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETPromotionIdTags(context.Background(), promotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPromotionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var promotionId interface{} + + httpRes, err := apiClient.HasManyApi.GETPromotionIdVersions(context.Background(), promotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasManyApiService GETPromotionRuleIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var promotionRuleId interface{} + + httpRes, err := apiClient.HasManyApi.GETPromotionRuleIdVersions(context.Background(), promotionRuleId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETMarketIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETRecurringOrderCopyIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test - var marketId interface{} + var recurringOrderCopyId interface{} - httpRes, err := apiClient.HasManyApi.GETMarketIdAttachments(context.Background(), marketId).Execute() + httpRes, err := apiClient.HasManyApi.GETRecurringOrderCopyIdEvents(context.Background(), recurringOrderCopyId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETMerchantIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETRefundIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var merchantId interface{} + var refundId interface{} - httpRes, err := apiClient.HasManyApi.GETMerchantIdAttachments(context.Background(), merchantId).Execute() + httpRes, err := apiClient.HasManyApi.GETRefundIdAttachments(context.Background(), refundId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderCopyIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETRefundIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderCopyId interface{} + var refundId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderCopyIdEvents(context.Background(), orderCopyId).Execute() + httpRes, err := apiClient.HasManyApi.GETRefundIdEvents(context.Background(), refundId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderFactoryIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETRefundIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderFactoryId interface{} + var refundId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderFactoryIdEvents(context.Background(), orderFactoryId).Execute() + httpRes, err := apiClient.HasManyApi.GETRefundIdVersions(context.Background(), refundId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETReservedStockIdStockReservations", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderId interface{} + var reservedStockId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderIdAttachments(context.Background(), orderId).Execute() + httpRes, err := apiClient.HasManyApi.GETReservedStockIdStockReservations(context.Background(), reservedStockId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderIdAuthorizations", func(t *testing.T) { + t.Run("Test HasManyApiService GETReservedStockIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderId interface{} + var reservedStockId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderIdAuthorizations(context.Background(), orderId).Execute() + httpRes, err := apiClient.HasManyApi.GETReservedStockIdVersions(context.Background(), reservedStockId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderIdAvailableCustomerPaymentSources", func(t *testing.T) { + t.Run("Test HasManyApiService GETReturnIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderId interface{} + var returnId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderIdAvailableCustomerPaymentSources(context.Background(), orderId).Execute() + httpRes, err := apiClient.HasManyApi.GETReturnIdAttachments(context.Background(), returnId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderIdAvailableFreeBundles", func(t *testing.T) { + t.Run("Test HasManyApiService GETReturnIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderId interface{} + var returnId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderIdAvailableFreeBundles(context.Background(), orderId).Execute() + httpRes, err := apiClient.HasManyApi.GETReturnIdEvents(context.Background(), returnId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderIdAvailableFreeSkus", func(t *testing.T) { + t.Run("Test HasManyApiService GETReturnIdResourceErrors", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderId interface{} + var returnId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderIdAvailableFreeSkus(context.Background(), orderId).Execute() + httpRes, err := apiClient.HasManyApi.GETReturnIdResourceErrors(context.Background(), returnId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderIdAvailablePaymentMethods", func(t *testing.T) { + t.Run("Test HasManyApiService GETReturnIdReturnLineItems", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderId interface{} + var returnId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderIdAvailablePaymentMethods(context.Background(), orderId).Execute() + httpRes, err := apiClient.HasManyApi.GETReturnIdReturnLineItems(context.Background(), returnId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderIdCaptures", func(t *testing.T) { + t.Run("Test HasManyApiService GETReturnIdTags", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderId interface{} + var returnId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderIdCaptures(context.Background(), orderId).Execute() + httpRes, err := apiClient.HasManyApi.GETReturnIdTags(context.Background(), returnId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETReturnIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderId interface{} + var returnId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderIdEvents(context.Background(), orderId).Execute() + httpRes, err := apiClient.HasManyApi.GETReturnIdVersions(context.Background(), returnId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderIdLineItems", func(t *testing.T) { + t.Run("Test HasManyApiService GETSatispayGatewayIdPaymentMethods", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderId interface{} + var satispayGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderIdLineItems(context.Background(), orderId).Execute() + httpRes, err := apiClient.HasManyApi.GETSatispayGatewayIdPaymentMethods(context.Background(), satispayGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderIdOrderCopies", func(t *testing.T) { + t.Run("Test HasManyApiService GETSatispayGatewayIdSatispayPayments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderId interface{} + var satispayGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderIdOrderCopies(context.Background(), orderId).Execute() + httpRes, err := apiClient.HasManyApi.GETSatispayGatewayIdSatispayPayments(context.Background(), satispayGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderIdOrderFactories", func(t *testing.T) { + t.Run("Test HasManyApiService GETSatispayGatewayIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderId interface{} + var satispayGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderIdOrderFactories(context.Background(), orderId).Execute() + httpRes, err := apiClient.HasManyApi.GETSatispayGatewayIdVersions(context.Background(), satispayGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderIdOrderSubscriptions", func(t *testing.T) { + t.Run("Test HasManyApiService GETSatispayPaymentIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderId interface{} + var satispayPaymentId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderIdOrderSubscriptions(context.Background(), orderId).Execute() + httpRes, err := apiClient.HasManyApi.GETSatispayPaymentIdVersions(context.Background(), satispayPaymentId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderIdRecurringOrderCopies", func(t *testing.T) { + t.Run("Test HasManyApiService GETShipmentIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderId interface{} + var shipmentId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderIdRecurringOrderCopies(context.Background(), orderId).Execute() + httpRes, err := apiClient.HasManyApi.GETShipmentIdAttachments(context.Background(), shipmentId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderIdRefunds", func(t *testing.T) { + t.Run("Test HasManyApiService GETShipmentIdAvailableShippingMethods", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderId interface{} + var shipmentId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderIdRefunds(context.Background(), orderId).Execute() + httpRes, err := apiClient.HasManyApi.GETShipmentIdAvailableShippingMethods(context.Background(), shipmentId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderIdReturns", func(t *testing.T) { + t.Run("Test HasManyApiService GETShipmentIdCarrierAccounts", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderId interface{} + var shipmentId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderIdReturns(context.Background(), orderId).Execute() + httpRes, err := apiClient.HasManyApi.GETShipmentIdCarrierAccounts(context.Background(), shipmentId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderIdShipments", func(t *testing.T) { + t.Run("Test HasManyApiService GETShipmentIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderId interface{} + var shipmentId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderIdShipments(context.Background(), orderId).Execute() + httpRes, err := apiClient.HasManyApi.GETShipmentIdEvents(context.Background(), shipmentId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderIdVoids", func(t *testing.T) { + t.Run("Test HasManyApiService GETShipmentIdLineItems", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderId interface{} + var shipmentId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderIdVoids(context.Background(), orderId).Execute() + httpRes, err := apiClient.HasManyApi.GETShipmentIdLineItems(context.Background(), shipmentId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderSubscriptionIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETShipmentIdParcels", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderSubscriptionId interface{} + var shipmentId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderSubscriptionIdEvents(context.Background(), orderSubscriptionId).Execute() + httpRes, err := apiClient.HasManyApi.GETShipmentIdParcels(context.Background(), shipmentId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderSubscriptionIdOrderFactories", func(t *testing.T) { + t.Run("Test HasManyApiService GETShipmentIdStockLineItems", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderSubscriptionId interface{} + var shipmentId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderSubscriptionIdOrderFactories(context.Background(), orderSubscriptionId).Execute() + httpRes, err := apiClient.HasManyApi.GETShipmentIdStockLineItems(context.Background(), shipmentId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderSubscriptionIdOrderSubscriptionItems", func(t *testing.T) { + t.Run("Test HasManyApiService GETShipmentIdStockTransfers", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderSubscriptionId interface{} + var shipmentId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderSubscriptionIdOrderSubscriptionItems(context.Background(), orderSubscriptionId).Execute() + httpRes, err := apiClient.HasManyApi.GETShipmentIdStockTransfers(context.Background(), shipmentId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderSubscriptionIdOrders", func(t *testing.T) { + t.Run("Test HasManyApiService GETShipmentIdTags", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderSubscriptionId interface{} + var shipmentId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderSubscriptionIdOrders(context.Background(), orderSubscriptionId).Execute() + httpRes, err := apiClient.HasManyApi.GETShipmentIdTags(context.Background(), shipmentId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderSubscriptionIdRecurringOrderCopies", func(t *testing.T) { + t.Run("Test HasManyApiService GETShipmentIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderSubscriptionId interface{} + var shipmentId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderSubscriptionIdRecurringOrderCopies(context.Background(), orderSubscriptionId).Execute() + httpRes, err := apiClient.HasManyApi.GETShipmentIdVersions(context.Background(), shipmentId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETOrderValidationRuleIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETShippingCategoryIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderValidationRuleId interface{} + var shippingCategoryId interface{} - httpRes, err := apiClient.HasManyApi.GETOrderValidationRuleIdAttachments(context.Background(), orderValidationRuleId).Execute() + httpRes, err := apiClient.HasManyApi.GETShippingCategoryIdAttachments(context.Background(), shippingCategoryId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPackageIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETShippingCategoryIdSkus", func(t *testing.T) { t.Skip("skip test") // remove to run test - var packageId interface{} + var shippingCategoryId interface{} - httpRes, err := apiClient.HasManyApi.GETPackageIdAttachments(context.Background(), packageId).Execute() + httpRes, err := apiClient.HasManyApi.GETShippingCategoryIdSkus(context.Background(), shippingCategoryId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPackageIdParcels", func(t *testing.T) { + t.Run("Test HasManyApiService GETShippingCategoryIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var packageId interface{} + var shippingCategoryId interface{} - httpRes, err := apiClient.HasManyApi.GETPackageIdParcels(context.Background(), packageId).Execute() + httpRes, err := apiClient.HasManyApi.GETShippingCategoryIdVersions(context.Background(), shippingCategoryId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETParcelIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETShippingMethodIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var parcelId interface{} + var shippingMethodId interface{} - httpRes, err := apiClient.HasManyApi.GETParcelIdAttachments(context.Background(), parcelId).Execute() + httpRes, err := apiClient.HasManyApi.GETShippingMethodIdAttachments(context.Background(), shippingMethodId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETParcelIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETShippingMethodIdShippingMethodTiers", func(t *testing.T) { t.Skip("skip test") // remove to run test - var parcelId interface{} + var shippingMethodId interface{} - httpRes, err := apiClient.HasManyApi.GETParcelIdEvents(context.Background(), parcelId).Execute() + httpRes, err := apiClient.HasManyApi.GETShippingMethodIdShippingMethodTiers(context.Background(), shippingMethodId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETParcelIdParcelLineItems", func(t *testing.T) { + t.Run("Test HasManyApiService GETShippingMethodIdShippingWeightTiers", func(t *testing.T) { t.Skip("skip test") // remove to run test - var parcelId interface{} + var shippingMethodId interface{} - httpRes, err := apiClient.HasManyApi.GETParcelIdParcelLineItems(context.Background(), parcelId).Execute() + httpRes, err := apiClient.HasManyApi.GETShippingMethodIdShippingWeightTiers(context.Background(), shippingMethodId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPaymentGatewayIdPaymentMethods", func(t *testing.T) { + t.Run("Test HasManyApiService GETShippingMethodIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var paymentGatewayId interface{} + var shippingMethodId interface{} - httpRes, err := apiClient.HasManyApi.GETPaymentGatewayIdPaymentMethods(context.Background(), paymentGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETShippingMethodIdVersions(context.Background(), shippingMethodId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPaymentMethodIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETShippingMethodTierIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var paymentMethodId interface{} + var shippingMethodTierId interface{} - httpRes, err := apiClient.HasManyApi.GETPaymentMethodIdAttachments(context.Background(), paymentMethodId).Execute() + httpRes, err := apiClient.HasManyApi.GETShippingMethodTierIdAttachments(context.Background(), shippingMethodTierId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPaypalGatewayIdPaymentMethods", func(t *testing.T) { + t.Run("Test HasManyApiService GETShippingMethodTierIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var paypalGatewayId interface{} + var shippingMethodTierId interface{} - httpRes, err := apiClient.HasManyApi.GETPaypalGatewayIdPaymentMethods(context.Background(), paypalGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETShippingMethodTierIdVersions(context.Background(), shippingMethodTierId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPaypalGatewayIdPaypalPayments", func(t *testing.T) { + t.Run("Test HasManyApiService GETShippingWeightTierIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var paypalGatewayId interface{} + var shippingWeightTierId interface{} - httpRes, err := apiClient.HasManyApi.GETPaypalGatewayIdPaypalPayments(context.Background(), paypalGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETShippingWeightTierIdAttachments(context.Background(), shippingWeightTierId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPercentageDiscountPromotionIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETShippingWeightTierIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var percentageDiscountPromotionId interface{} + var shippingWeightTierId interface{} - httpRes, err := apiClient.HasManyApi.GETPercentageDiscountPromotionIdAttachments(context.Background(), percentageDiscountPromotionId).Execute() + httpRes, err := apiClient.HasManyApi.GETShippingWeightTierIdVersions(context.Background(), shippingWeightTierId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPercentageDiscountPromotionIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETShippingZoneIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var percentageDiscountPromotionId interface{} + var shippingZoneId interface{} - httpRes, err := apiClient.HasManyApi.GETPercentageDiscountPromotionIdEvents(context.Background(), percentageDiscountPromotionId).Execute() + httpRes, err := apiClient.HasManyApi.GETShippingZoneIdAttachments(context.Background(), shippingZoneId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPercentageDiscountPromotionIdSkus", func(t *testing.T) { + t.Run("Test HasManyApiService GETShippingZoneIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var percentageDiscountPromotionId interface{} + var shippingZoneId interface{} - httpRes, err := apiClient.HasManyApi.GETPercentageDiscountPromotionIdSkus(context.Background(), percentageDiscountPromotionId).Execute() + httpRes, err := apiClient.HasManyApi.GETShippingZoneIdVersions(context.Background(), shippingZoneId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPriceFrequencyTierIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var priceFrequencyTierId interface{} + var skuId interface{} - httpRes, err := apiClient.HasManyApi.GETPriceFrequencyTierIdAttachments(context.Background(), priceFrequencyTierId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuIdAttachments(context.Background(), skuId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPriceFrequencyTierIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuIdDeliveryLeadTimes", func(t *testing.T) { t.Skip("skip test") // remove to run test - var priceFrequencyTierId interface{} + var skuId interface{} - httpRes, err := apiClient.HasManyApi.GETPriceFrequencyTierIdEvents(context.Background(), priceFrequencyTierId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuIdDeliveryLeadTimes(context.Background(), skuId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPriceIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test - var priceId interface{} + var skuId interface{} - httpRes, err := apiClient.HasManyApi.GETPriceIdAttachments(context.Background(), priceId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuIdEvents(context.Background(), skuId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPriceIdPriceFrequencyTiers", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuIdJwtMarkets", func(t *testing.T) { t.Skip("skip test") // remove to run test - var priceId interface{} + var skuId interface{} - httpRes, err := apiClient.HasManyApi.GETPriceIdPriceFrequencyTiers(context.Background(), priceId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuIdJwtMarkets(context.Background(), skuId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPriceIdPriceTiers", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuIdJwtStockLocations", func(t *testing.T) { t.Skip("skip test") // remove to run test - var priceId interface{} + var skuId interface{} - httpRes, err := apiClient.HasManyApi.GETPriceIdPriceTiers(context.Background(), priceId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuIdJwtStockLocations(context.Background(), skuId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPriceIdPriceVolumeTiers", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuIdLinks", func(t *testing.T) { t.Skip("skip test") // remove to run test - var priceId interface{} + var skuId interface{} - httpRes, err := apiClient.HasManyApi.GETPriceIdPriceVolumeTiers(context.Background(), priceId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuIdLinks(context.Background(), skuId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPriceListIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuIdPrices", func(t *testing.T) { t.Skip("skip test") // remove to run test - var priceListId interface{} + var skuId interface{} - httpRes, err := apiClient.HasManyApi.GETPriceListIdAttachments(context.Background(), priceListId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuIdPrices(context.Background(), skuId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPriceListIdPrices", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuIdSkuListItems", func(t *testing.T) { t.Skip("skip test") // remove to run test - var priceListId interface{} + var skuId interface{} - httpRes, err := apiClient.HasManyApi.GETPriceListIdPrices(context.Background(), priceListId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuIdSkuListItems(context.Background(), skuId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPriceTierIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuIdSkuLists", func(t *testing.T) { t.Skip("skip test") // remove to run test - var priceTierId interface{} + var skuId interface{} - httpRes, err := apiClient.HasManyApi.GETPriceTierIdAttachments(context.Background(), priceTierId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuIdSkuLists(context.Background(), skuId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPriceVolumeTierIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuIdSkuOptions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var priceVolumeTierId interface{} + var skuId interface{} - httpRes, err := apiClient.HasManyApi.GETPriceVolumeTierIdAttachments(context.Background(), priceVolumeTierId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuIdSkuOptions(context.Background(), skuId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPriceVolumeTierIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuIdStockItems", func(t *testing.T) { t.Skip("skip test") // remove to run test - var priceVolumeTierId interface{} + var skuId interface{} - httpRes, err := apiClient.HasManyApi.GETPriceVolumeTierIdEvents(context.Background(), priceVolumeTierId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuIdStockItems(context.Background(), skuId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPromotionIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuIdStockReservations", func(t *testing.T) { t.Skip("skip test") // remove to run test - var promotionId interface{} + var skuId interface{} - httpRes, err := apiClient.HasManyApi.GETPromotionIdAttachments(context.Background(), promotionId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuIdStockReservations(context.Background(), skuId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETPromotionIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuIdTags", func(t *testing.T) { t.Skip("skip test") // remove to run test - var promotionId interface{} + var skuId interface{} - httpRes, err := apiClient.HasManyApi.GETPromotionIdEvents(context.Background(), promotionId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuIdTags(context.Background(), skuId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETRecurringOrderCopyIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var recurringOrderCopyId interface{} + var skuId interface{} - httpRes, err := apiClient.HasManyApi.GETRecurringOrderCopyIdEvents(context.Background(), recurringOrderCopyId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuIdVersions(context.Background(), skuId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETRefundIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuListIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var refundId interface{} + var skuListId interface{} - httpRes, err := apiClient.HasManyApi.GETRefundIdEvents(context.Background(), refundId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuListIdAttachments(context.Background(), skuListId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETReturnIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuListIdBundles", func(t *testing.T) { t.Skip("skip test") // remove to run test - var returnId interface{} + var skuListId interface{} - httpRes, err := apiClient.HasManyApi.GETReturnIdAttachments(context.Background(), returnId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuListIdBundles(context.Background(), skuListId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETReturnIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuListIdLinks", func(t *testing.T) { t.Skip("skip test") // remove to run test - var returnId interface{} + var skuListId interface{} - httpRes, err := apiClient.HasManyApi.GETReturnIdEvents(context.Background(), returnId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuListIdLinks(context.Background(), skuListId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETReturnIdReturnLineItems", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuListIdSkuListItems", func(t *testing.T) { t.Skip("skip test") // remove to run test - var returnId interface{} + var skuListId interface{} - httpRes, err := apiClient.HasManyApi.GETReturnIdReturnLineItems(context.Background(), returnId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuListIdSkuListItems(context.Background(), skuListId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETSatispayGatewayIdPaymentMethods", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuListIdSkus", func(t *testing.T) { t.Skip("skip test") // remove to run test - var satispayGatewayId interface{} + var skuListId interface{} - httpRes, err := apiClient.HasManyApi.GETSatispayGatewayIdPaymentMethods(context.Background(), satispayGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuListIdSkus(context.Background(), skuListId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETSatispayGatewayIdSatispayPayments", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuListIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var satispayGatewayId interface{} + var skuListId interface{} - httpRes, err := apiClient.HasManyApi.GETSatispayGatewayIdSatispayPayments(context.Background(), satispayGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuListIdVersions(context.Background(), skuListId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETShipmentIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuListItemIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var shipmentId interface{} + var skuListItemId interface{} - httpRes, err := apiClient.HasManyApi.GETShipmentIdAttachments(context.Background(), shipmentId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuListItemIdVersions(context.Background(), skuListItemId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETShipmentIdAvailableShippingMethods", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuListPromotionRuleIdSkus", func(t *testing.T) { t.Skip("skip test") // remove to run test - var shipmentId interface{} + var skuListPromotionRuleId interface{} - httpRes, err := apiClient.HasManyApi.GETShipmentIdAvailableShippingMethods(context.Background(), shipmentId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuListPromotionRuleIdSkus(context.Background(), skuListPromotionRuleId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETShipmentIdCarrierAccounts", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuListPromotionRuleIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var shipmentId interface{} + var skuListPromotionRuleId interface{} - httpRes, err := apiClient.HasManyApi.GETShipmentIdCarrierAccounts(context.Background(), shipmentId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuListPromotionRuleIdVersions(context.Background(), skuListPromotionRuleId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETShipmentIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuOptionIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var shipmentId interface{} + var skuOptionId interface{} - httpRes, err := apiClient.HasManyApi.GETShipmentIdEvents(context.Background(), shipmentId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuOptionIdAttachments(context.Background(), skuOptionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETShipmentIdParcels", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuOptionIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test - var shipmentId interface{} + var skuOptionId interface{} - httpRes, err := apiClient.HasManyApi.GETShipmentIdParcels(context.Background(), shipmentId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuOptionIdEvents(context.Background(), skuOptionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETShipmentIdStockLineItems", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuOptionIdTags", func(t *testing.T) { t.Skip("skip test") // remove to run test - var shipmentId interface{} + var skuOptionId interface{} - httpRes, err := apiClient.HasManyApi.GETShipmentIdStockLineItems(context.Background(), shipmentId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuOptionIdTags(context.Background(), skuOptionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETShipmentIdStockTransfers", func(t *testing.T) { + t.Run("Test HasManyApiService GETSkuOptionIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var shipmentId interface{} + var skuOptionId interface{} - httpRes, err := apiClient.HasManyApi.GETShipmentIdStockTransfers(context.Background(), shipmentId).Execute() + httpRes, err := apiClient.HasManyApi.GETSkuOptionIdVersions(context.Background(), skuOptionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETShippingCategoryIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETStockItemIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var shippingCategoryId interface{} + var stockItemId interface{} - httpRes, err := apiClient.HasManyApi.GETShippingCategoryIdAttachments(context.Background(), shippingCategoryId).Execute() + httpRes, err := apiClient.HasManyApi.GETStockItemIdAttachments(context.Background(), stockItemId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETShippingCategoryIdSkus", func(t *testing.T) { + t.Run("Test HasManyApiService GETStockItemIdStockReservations", func(t *testing.T) { t.Skip("skip test") // remove to run test - var shippingCategoryId interface{} + var stockItemId interface{} - httpRes, err := apiClient.HasManyApi.GETShippingCategoryIdSkus(context.Background(), shippingCategoryId).Execute() + httpRes, err := apiClient.HasManyApi.GETStockItemIdStockReservations(context.Background(), stockItemId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETShippingMethodIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETStockItemIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var shippingMethodId interface{} + var stockItemId interface{} - httpRes, err := apiClient.HasManyApi.GETShippingMethodIdAttachments(context.Background(), shippingMethodId).Execute() + httpRes, err := apiClient.HasManyApi.GETStockItemIdVersions(context.Background(), stockItemId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETShippingMethodIdShippingMethodTiers", func(t *testing.T) { + t.Run("Test HasManyApiService GETStockLineItemIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var shippingMethodId interface{} + var stockLineItemId interface{} - httpRes, err := apiClient.HasManyApi.GETShippingMethodIdShippingMethodTiers(context.Background(), shippingMethodId).Execute() + httpRes, err := apiClient.HasManyApi.GETStockLineItemIdVersions(context.Background(), stockLineItemId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETShippingMethodIdShippingWeightTiers", func(t *testing.T) { + t.Run("Test HasManyApiService GETStockLocationIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var shippingMethodId interface{} + var stockLocationId interface{} - httpRes, err := apiClient.HasManyApi.GETShippingMethodIdShippingWeightTiers(context.Background(), shippingMethodId).Execute() + httpRes, err := apiClient.HasManyApi.GETStockLocationIdAttachments(context.Background(), stockLocationId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETShippingMethodTierIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETStockLocationIdInventoryReturnLocations", func(t *testing.T) { t.Skip("skip test") // remove to run test - var shippingMethodTierId interface{} + var stockLocationId interface{} - httpRes, err := apiClient.HasManyApi.GETShippingMethodTierIdAttachments(context.Background(), shippingMethodTierId).Execute() + httpRes, err := apiClient.HasManyApi.GETStockLocationIdInventoryReturnLocations(context.Background(), stockLocationId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETShippingWeightTierIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETStockLocationIdInventoryStockLocations", func(t *testing.T) { t.Skip("skip test") // remove to run test - var shippingWeightTierId interface{} + var stockLocationId interface{} - httpRes, err := apiClient.HasManyApi.GETShippingWeightTierIdAttachments(context.Background(), shippingWeightTierId).Execute() + httpRes, err := apiClient.HasManyApi.GETStockLocationIdInventoryStockLocations(context.Background(), stockLocationId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETShippingZoneIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETStockLocationIdStockItems", func(t *testing.T) { t.Skip("skip test") // remove to run test - var shippingZoneId interface{} + var stockLocationId interface{} - httpRes, err := apiClient.HasManyApi.GETShippingZoneIdAttachments(context.Background(), shippingZoneId).Execute() + httpRes, err := apiClient.HasManyApi.GETStockLocationIdStockItems(context.Background(), stockLocationId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETSkuIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETStockLocationIdStockTransfers", func(t *testing.T) { t.Skip("skip test") // remove to run test - var skuId interface{} + var stockLocationId interface{} - httpRes, err := apiClient.HasManyApi.GETSkuIdAttachments(context.Background(), skuId).Execute() + httpRes, err := apiClient.HasManyApi.GETStockLocationIdStockTransfers(context.Background(), stockLocationId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETSkuIdDeliveryLeadTimes", func(t *testing.T) { + t.Run("Test HasManyApiService GETStockLocationIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var skuId interface{} + var stockLocationId interface{} - httpRes, err := apiClient.HasManyApi.GETSkuIdDeliveryLeadTimes(context.Background(), skuId).Execute() + httpRes, err := apiClient.HasManyApi.GETStockLocationIdVersions(context.Background(), stockLocationId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETSkuIdPrices", func(t *testing.T) { + t.Run("Test HasManyApiService GETStockTransferIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var skuId interface{} + var stockTransferId interface{} - httpRes, err := apiClient.HasManyApi.GETSkuIdPrices(context.Background(), skuId).Execute() + httpRes, err := apiClient.HasManyApi.GETStockTransferIdAttachments(context.Background(), stockTransferId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETSkuIdSkuOptions", func(t *testing.T) { + t.Run("Test HasManyApiService GETStockTransferIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test - var skuId interface{} + var stockTransferId interface{} - httpRes, err := apiClient.HasManyApi.GETSkuIdSkuOptions(context.Background(), skuId).Execute() + httpRes, err := apiClient.HasManyApi.GETStockTransferIdEvents(context.Background(), stockTransferId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETSkuIdStockItems", func(t *testing.T) { + t.Run("Test HasManyApiService GETStockTransferIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var skuId interface{} + var stockTransferId interface{} - httpRes, err := apiClient.HasManyApi.GETSkuIdStockItems(context.Background(), skuId).Execute() + httpRes, err := apiClient.HasManyApi.GETStockTransferIdVersions(context.Background(), stockTransferId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETSkuListIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETStripeGatewayIdPaymentMethods", func(t *testing.T) { t.Skip("skip test") // remove to run test - var skuListId interface{} + var stripeGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETSkuListIdAttachments(context.Background(), skuListId).Execute() + httpRes, err := apiClient.HasManyApi.GETStripeGatewayIdPaymentMethods(context.Background(), stripeGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETSkuListIdBundles", func(t *testing.T) { + t.Run("Test HasManyApiService GETStripeGatewayIdStripePayments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var skuListId interface{} + var stripeGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETSkuListIdBundles(context.Background(), skuListId).Execute() + httpRes, err := apiClient.HasManyApi.GETStripeGatewayIdStripePayments(context.Background(), stripeGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETSkuListIdSkuListItems", func(t *testing.T) { + t.Run("Test HasManyApiService GETStripeGatewayIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var skuListId interface{} + var stripeGatewayId interface{} - httpRes, err := apiClient.HasManyApi.GETSkuListIdSkuListItems(context.Background(), skuListId).Execute() + httpRes, err := apiClient.HasManyApi.GETStripeGatewayIdVersions(context.Background(), stripeGatewayId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETSkuListIdSkus", func(t *testing.T) { + t.Run("Test HasManyApiService GETStripePaymentIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var skuListId interface{} + var stripePaymentId interface{} - httpRes, err := apiClient.HasManyApi.GETSkuListIdSkus(context.Background(), skuListId).Execute() + httpRes, err := apiClient.HasManyApi.GETStripePaymentIdVersions(context.Background(), stripePaymentId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETSkuListPromotionRuleIdSkus", func(t *testing.T) { + t.Run("Test HasManyApiService GETSubscriptionModelIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var skuListPromotionRuleId interface{} + var subscriptionModelId interface{} - httpRes, err := apiClient.HasManyApi.GETSkuListPromotionRuleIdSkus(context.Background(), skuListPromotionRuleId).Execute() + httpRes, err := apiClient.HasManyApi.GETSubscriptionModelIdAttachments(context.Background(), subscriptionModelId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETSkuOptionIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETSubscriptionModelIdMarkets", func(t *testing.T) { t.Skip("skip test") // remove to run test - var skuOptionId interface{} + var subscriptionModelId interface{} - httpRes, err := apiClient.HasManyApi.GETSkuOptionIdAttachments(context.Background(), skuOptionId).Execute() + httpRes, err := apiClient.HasManyApi.GETSubscriptionModelIdMarkets(context.Background(), subscriptionModelId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETStockItemIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETSubscriptionModelIdOrderSubscriptions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var stockItemId interface{} + var subscriptionModelId interface{} - httpRes, err := apiClient.HasManyApi.GETStockItemIdAttachments(context.Background(), stockItemId).Execute() + httpRes, err := apiClient.HasManyApi.GETSubscriptionModelIdOrderSubscriptions(context.Background(), subscriptionModelId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETStockLocationIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETTaxCalculatorIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var stockLocationId interface{} + var taxCalculatorId interface{} - httpRes, err := apiClient.HasManyApi.GETStockLocationIdAttachments(context.Background(), stockLocationId).Execute() + httpRes, err := apiClient.HasManyApi.GETTaxCalculatorIdAttachments(context.Background(), taxCalculatorId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETStockLocationIdInventoryReturnLocations", func(t *testing.T) { + t.Run("Test HasManyApiService GETTaxCalculatorIdMarkets", func(t *testing.T) { t.Skip("skip test") // remove to run test - var stockLocationId interface{} + var taxCalculatorId interface{} - httpRes, err := apiClient.HasManyApi.GETStockLocationIdInventoryReturnLocations(context.Background(), stockLocationId).Execute() + httpRes, err := apiClient.HasManyApi.GETTaxCalculatorIdMarkets(context.Background(), taxCalculatorId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETStockLocationIdInventoryStockLocations", func(t *testing.T) { + t.Run("Test HasManyApiService GETTaxCalculatorIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var stockLocationId interface{} + var taxCalculatorId interface{} - httpRes, err := apiClient.HasManyApi.GETStockLocationIdInventoryStockLocations(context.Background(), stockLocationId).Execute() + httpRes, err := apiClient.HasManyApi.GETTaxCalculatorIdVersions(context.Background(), taxCalculatorId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETStockLocationIdStockItems", func(t *testing.T) { + t.Run("Test HasManyApiService GETTaxCategoryIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var stockLocationId interface{} + var taxCategoryId interface{} - httpRes, err := apiClient.HasManyApi.GETStockLocationIdStockItems(context.Background(), stockLocationId).Execute() + httpRes, err := apiClient.HasManyApi.GETTaxCategoryIdAttachments(context.Background(), taxCategoryId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETStockLocationIdStockTransfers", func(t *testing.T) { + t.Run("Test HasManyApiService GETTaxCategoryIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var stockLocationId interface{} + var taxCategoryId interface{} - httpRes, err := apiClient.HasManyApi.GETStockLocationIdStockTransfers(context.Background(), stockLocationId).Execute() + httpRes, err := apiClient.HasManyApi.GETTaxCategoryIdVersions(context.Background(), taxCategoryId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETStockTransferIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETTaxRuleIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var stockTransferId interface{} + var taxRuleId interface{} - httpRes, err := apiClient.HasManyApi.GETStockTransferIdEvents(context.Background(), stockTransferId).Execute() + httpRes, err := apiClient.HasManyApi.GETTaxRuleIdVersions(context.Background(), taxRuleId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETStripeGatewayIdPaymentMethods", func(t *testing.T) { + t.Run("Test HasManyApiService GETTaxjarAccountIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var stripeGatewayId interface{} + var taxjarAccountId interface{} - httpRes, err := apiClient.HasManyApi.GETStripeGatewayIdPaymentMethods(context.Background(), stripeGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETTaxjarAccountIdAttachments(context.Background(), taxjarAccountId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETStripeGatewayIdStripePayments", func(t *testing.T) { + t.Run("Test HasManyApiService GETTaxjarAccountIdMarkets", func(t *testing.T) { t.Skip("skip test") // remove to run test - var stripeGatewayId interface{} + var taxjarAccountId interface{} - httpRes, err := apiClient.HasManyApi.GETStripeGatewayIdStripePayments(context.Background(), stripeGatewayId).Execute() + httpRes, err := apiClient.HasManyApi.GETTaxjarAccountIdMarkets(context.Background(), taxjarAccountId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETSubscriptionModelIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETTaxjarAccountIdTaxCategories", func(t *testing.T) { t.Skip("skip test") // remove to run test - var subscriptionModelId interface{} + var taxjarAccountId interface{} - httpRes, err := apiClient.HasManyApi.GETSubscriptionModelIdAttachments(context.Background(), subscriptionModelId).Execute() + httpRes, err := apiClient.HasManyApi.GETTaxjarAccountIdTaxCategories(context.Background(), taxjarAccountId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETSubscriptionModelIdMarkets", func(t *testing.T) { + t.Run("Test HasManyApiService GETTaxjarAccountIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var subscriptionModelId interface{} + var taxjarAccountId interface{} - httpRes, err := apiClient.HasManyApi.GETSubscriptionModelIdMarkets(context.Background(), subscriptionModelId).Execute() + httpRes, err := apiClient.HasManyApi.GETTaxjarAccountIdVersions(context.Background(), taxjarAccountId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETSubscriptionModelIdOrderSubscriptions", func(t *testing.T) { + t.Run("Test HasManyApiService GETTransactionIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var subscriptionModelId interface{} + var transactionId interface{} - httpRes, err := apiClient.HasManyApi.GETSubscriptionModelIdOrderSubscriptions(context.Background(), subscriptionModelId).Execute() + httpRes, err := apiClient.HasManyApi.GETTransactionIdAttachments(context.Background(), transactionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETTaxCalculatorIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETTransactionIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test - var taxCalculatorId interface{} + var transactionId interface{} - httpRes, err := apiClient.HasManyApi.GETTaxCalculatorIdAttachments(context.Background(), taxCalculatorId).Execute() + httpRes, err := apiClient.HasManyApi.GETTransactionIdEvents(context.Background(), transactionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETTaxCalculatorIdMarkets", func(t *testing.T) { + t.Run("Test HasManyApiService GETTransactionIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var taxCalculatorId interface{} + var transactionId interface{} - httpRes, err := apiClient.HasManyApi.GETTaxCalculatorIdMarkets(context.Background(), taxCalculatorId).Execute() + httpRes, err := apiClient.HasManyApi.GETTransactionIdVersions(context.Background(), transactionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETTaxCategoryIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETVoidIdAttachments", func(t *testing.T) { t.Skip("skip test") // remove to run test - var taxCategoryId interface{} + var voidId interface{} - httpRes, err := apiClient.HasManyApi.GETTaxCategoryIdAttachments(context.Background(), taxCategoryId).Execute() + httpRes, err := apiClient.HasManyApi.GETVoidIdAttachments(context.Background(), voidId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETTaxjarAccountIdAttachments", func(t *testing.T) { + t.Run("Test HasManyApiService GETVoidIdEvents", func(t *testing.T) { t.Skip("skip test") // remove to run test - var taxjarAccountId interface{} + var voidId interface{} - httpRes, err := apiClient.HasManyApi.GETTaxjarAccountIdAttachments(context.Background(), taxjarAccountId).Execute() + httpRes, err := apiClient.HasManyApi.GETVoidIdEvents(context.Background(), voidId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETTaxjarAccountIdMarkets", func(t *testing.T) { + t.Run("Test HasManyApiService GETVoidIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var taxjarAccountId interface{} + var voidId interface{} - httpRes, err := apiClient.HasManyApi.GETTaxjarAccountIdMarkets(context.Background(), taxjarAccountId).Execute() + httpRes, err := apiClient.HasManyApi.GETVoidIdVersions(context.Background(), voidId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETTaxjarAccountIdTaxCategories", func(t *testing.T) { + t.Run("Test HasManyApiService GETWebhookIdLastEventCallbacks", func(t *testing.T) { t.Skip("skip test") // remove to run test - var taxjarAccountId interface{} + var webhookId interface{} - httpRes, err := apiClient.HasManyApi.GETTaxjarAccountIdTaxCategories(context.Background(), taxjarAccountId).Execute() + httpRes, err := apiClient.HasManyApi.GETWebhookIdLastEventCallbacks(context.Background(), webhookId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETVoidIdEvents", func(t *testing.T) { + t.Run("Test HasManyApiService GETWebhookIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var voidId interface{} + var webhookId interface{} - httpRes, err := apiClient.HasManyApi.GETVoidIdEvents(context.Background(), voidId).Execute() + httpRes, err := apiClient.HasManyApi.GETWebhookIdVersions(context.Background(), webhookId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test HasManyApiService GETWebhookIdLastEventCallbacks", func(t *testing.T) { + t.Run("Test HasManyApiService GETWireTransferIdVersions", func(t *testing.T) { t.Skip("skip test") // remove to run test - var webhookId interface{} + var wireTransferId interface{} - httpRes, err := apiClient.HasManyApi.GETWebhookIdLastEventCallbacks(context.Background(), webhookId).Execute() + httpRes, err := apiClient.HasManyApi.GETWireTransferIdVersions(context.Background(), wireTransferId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) diff --git a/api/test/api_has_one_test.go b/api/test/api_has_one_test.go index f4ee7618..b23e88b5 100644 --- a/api/test/api_has_one_test.go +++ b/api/test/api_has_one_test.go @@ -165,6 +165,84 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETBuyXPayYPromotionIdCouponCodesPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + httpRes, err := apiClient.HasOneApi.GETBuyXPayYPromotionIdCouponCodesPromotionRule(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasOneApiService GETBuyXPayYPromotionIdCustomPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + httpRes, err := apiClient.HasOneApi.GETBuyXPayYPromotionIdCustomPromotionRule(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasOneApiService GETBuyXPayYPromotionIdMarket", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + httpRes, err := apiClient.HasOneApi.GETBuyXPayYPromotionIdMarket(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasOneApiService GETBuyXPayYPromotionIdOrderAmountPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + httpRes, err := apiClient.HasOneApi.GETBuyXPayYPromotionIdOrderAmountPromotionRule(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasOneApiService GETBuyXPayYPromotionIdSkuList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + httpRes, err := apiClient.HasOneApi.GETBuyXPayYPromotionIdSkuList(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasOneApiService GETBuyXPayYPromotionIdSkuListPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + httpRes, err := apiClient.HasOneApi.GETBuyXPayYPromotionIdSkuListPromotionRule(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETCaptureIdOrder", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -191,6 +269,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETCaptureIdReturn", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var captureId interface{} + + httpRes, err := apiClient.HasOneApi.GETCaptureIdReturn(context.Background(), captureId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETCarrierAccountIdMarket", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -230,6 +321,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETCouponIdCouponRecipient", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var couponId interface{} + + httpRes, err := apiClient.HasOneApi.GETCouponIdCouponRecipient(context.Background(), couponId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETCouponIdPromotionRule", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -321,6 +425,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETCustomerPaymentSourceIdPaymentMethod", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerPaymentSourceId interface{} + + httpRes, err := apiClient.HasOneApi.GETCustomerPaymentSourceIdPaymentMethod(context.Background(), customerPaymentSourceId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETCustomerSubscriptionIdCustomer", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -425,6 +542,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETExternalPromotionIdCustomPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalPromotionId interface{} + + httpRes, err := apiClient.HasOneApi.GETExternalPromotionIdCustomPromotionRule(context.Background(), externalPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETExternalPromotionIdMarket", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -451,6 +581,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETExternalPromotionIdSkuList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalPromotionId interface{} + + httpRes, err := apiClient.HasOneApi.GETExternalPromotionIdSkuList(context.Background(), externalPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETExternalPromotionIdSkuListPromotionRule", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -477,6 +620,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETFixedAmountPromotionIdCustomPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedAmountPromotionId interface{} + + httpRes, err := apiClient.HasOneApi.GETFixedAmountPromotionIdCustomPromotionRule(context.Background(), fixedAmountPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETFixedAmountPromotionIdMarket", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -503,6 +659,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETFixedAmountPromotionIdSkuList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedAmountPromotionId interface{} + + httpRes, err := apiClient.HasOneApi.GETFixedAmountPromotionIdSkuList(context.Background(), fixedAmountPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETFixedAmountPromotionIdSkuListPromotionRule", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -529,6 +698,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETFixedPricePromotionIdCustomPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedPricePromotionId interface{} + + httpRes, err := apiClient.HasOneApi.GETFixedPricePromotionIdCustomPromotionRule(context.Background(), fixedPricePromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETFixedPricePromotionIdMarket", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -581,6 +763,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETFlexPromotionIdCouponCodesPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var flexPromotionId interface{} + + httpRes, err := apiClient.HasOneApi.GETFlexPromotionIdCouponCodesPromotionRule(context.Background(), flexPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETFreeGiftPromotionIdCouponCodesPromotionRule", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -594,6 +789,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETFreeGiftPromotionIdCustomPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeGiftPromotionId interface{} + + httpRes, err := apiClient.HasOneApi.GETFreeGiftPromotionIdCustomPromotionRule(context.Background(), freeGiftPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETFreeGiftPromotionIdMarket", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -659,6 +867,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETFreeShippingPromotionIdCustomPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeShippingPromotionId interface{} + + httpRes, err := apiClient.HasOneApi.GETFreeShippingPromotionIdCustomPromotionRule(context.Background(), freeShippingPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETFreeShippingPromotionIdMarket", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -685,6 +906,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETFreeShippingPromotionIdSkuList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeShippingPromotionId interface{} + + httpRes, err := apiClient.HasOneApi.GETFreeShippingPromotionIdSkuList(context.Background(), freeShippingPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETFreeShippingPromotionIdSkuListPromotionRule", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -893,6 +1127,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETMarketIdBasePriceList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var marketId interface{} + + httpRes, err := apiClient.HasOneApi.GETMarketIdBasePriceList(context.Background(), marketId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETMarketIdCustomerGroup", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -906,6 +1153,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETMarketIdGeocoder", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var marketId interface{} + + httpRes, err := apiClient.HasOneApi.GETMarketIdGeocoder(context.Background(), marketId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETMarketIdInventoryModel", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -1088,6 +1348,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETOrderIdOrderSubscription", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.HasOneApi.GETOrderIdOrderSubscription(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETOrderIdPaymentMethod", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -1192,13 +1465,13 @@ func Test_api_HasOneApiService(t *testing.T) { }) - t.Run("Test HasOneApiService GETOrderValidationRuleIdMarket", func(t *testing.T) { + t.Run("Test HasOneApiService GETOrderSubscriptionItemIdSourceLineItem", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderValidationRuleId interface{} + var orderSubscriptionItemId interface{} - httpRes, err := apiClient.HasOneApi.GETOrderValidationRuleIdMarket(context.Background(), orderValidationRuleId).Execute() + httpRes, err := apiClient.HasOneApi.GETOrderSubscriptionItemIdSourceLineItem(context.Background(), orderSubscriptionItemId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -1296,6 +1569,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETPaymentOptionIdOrder", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var paymentOptionId interface{} + + httpRes, err := apiClient.HasOneApi.GETPaymentOptionIdOrder(context.Background(), paymentOptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETPaypalPaymentIdOrder", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -1335,6 +1621,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETPercentageDiscountPromotionIdCustomPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var percentageDiscountPromotionId interface{} + + httpRes, err := apiClient.HasOneApi.GETPercentageDiscountPromotionIdCustomPromotionRule(context.Background(), percentageDiscountPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETPercentageDiscountPromotionIdMarket", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -1400,6 +1699,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETPriceIdJwtCustomer", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceId interface{} + + httpRes, err := apiClient.HasOneApi.GETPriceIdJwtCustomer(context.Background(), priceId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETPriceIdPriceList", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -1426,6 +1738,32 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETPriceListSchedulerIdMarket", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceListSchedulerId interface{} + + httpRes, err := apiClient.HasOneApi.GETPriceListSchedulerIdMarket(context.Background(), priceListSchedulerId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasOneApiService GETPriceListSchedulerIdPriceList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceListSchedulerId interface{} + + httpRes, err := apiClient.HasOneApi.GETPriceListSchedulerIdPriceList(context.Background(), priceListSchedulerId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETPriceTierIdPrice", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -1465,6 +1803,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETPromotionIdCustomPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var promotionId interface{} + + httpRes, err := apiClient.HasOneApi.GETPromotionIdCustomPromotionRule(context.Background(), promotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETPromotionIdMarket", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -1491,6 +1842,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETPromotionIdSkuList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var promotionId interface{} + + httpRes, err := apiClient.HasOneApi.GETPromotionIdSkuList(context.Background(), promotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETPromotionIdSkuListPromotionRule", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -1569,6 +1933,45 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETRefundIdReturn", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var refundId interface{} + + httpRes, err := apiClient.HasOneApi.GETRefundIdReturn(context.Background(), refundId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasOneApiService GETReservedStockIdSku", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var reservedStockId interface{} + + httpRes, err := apiClient.HasOneApi.GETReservedStockIdSku(context.Background(), reservedStockId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasOneApiService GETReservedStockIdStockItem", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var reservedStockId interface{} + + httpRes, err := apiClient.HasOneApi.GETReservedStockIdStockItem(context.Background(), reservedStockId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETReturnIdCustomer", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -1621,6 +2024,32 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETReturnIdReferenceCapture", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var returnId interface{} + + httpRes, err := apiClient.HasOneApi.GETReturnIdReferenceCapture(context.Background(), returnId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasOneApiService GETReturnIdReferenceRefund", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var returnId interface{} + + httpRes, err := apiClient.HasOneApi.GETReturnIdReferenceRefund(context.Background(), returnId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETReturnIdStockLocation", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -1699,6 +2128,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETShipmentIdInventoryStockLocation", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var shipmentId interface{} + + httpRes, err := apiClient.HasOneApi.GETShipmentIdInventoryStockLocation(context.Background(), shipmentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETShipmentIdOrder", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -1868,6 +2310,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETSkuIdJwtCustomer", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var skuId interface{} + + httpRes, err := apiClient.HasOneApi.GETSkuIdJwtCustomer(context.Background(), skuId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETSkuIdShippingCategory", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -1946,6 +2401,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETStockItemIdReservedStock", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockItemId interface{} + + httpRes, err := apiClient.HasOneApi.GETStockItemIdReservedStock(context.Background(), stockItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETStockItemIdSku", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -1998,6 +2466,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETStockLineItemIdSku", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockLineItemId interface{} + + httpRes, err := apiClient.HasOneApi.GETStockLineItemIdSku(context.Background(), stockLineItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETStockLineItemIdStockItem", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -2011,6 +2492,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETStockLineItemIdStockReservation", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockLineItemId interface{} + + httpRes, err := apiClient.HasOneApi.GETStockLineItemIdStockReservation(context.Background(), stockLineItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETStockLocationIdAddress", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -2024,6 +2518,97 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETStockReservationIdLineItem", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockReservationId interface{} + + httpRes, err := apiClient.HasOneApi.GETStockReservationIdLineItem(context.Background(), stockReservationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasOneApiService GETStockReservationIdOrder", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockReservationId interface{} + + httpRes, err := apiClient.HasOneApi.GETStockReservationIdOrder(context.Background(), stockReservationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasOneApiService GETStockReservationIdReservedStock", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockReservationId interface{} + + httpRes, err := apiClient.HasOneApi.GETStockReservationIdReservedStock(context.Background(), stockReservationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasOneApiService GETStockReservationIdSku", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockReservationId interface{} + + httpRes, err := apiClient.HasOneApi.GETStockReservationIdSku(context.Background(), stockReservationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasOneApiService GETStockReservationIdStockItem", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockReservationId interface{} + + httpRes, err := apiClient.HasOneApi.GETStockReservationIdStockItem(context.Background(), stockReservationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasOneApiService GETStockReservationIdStockLineItem", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockReservationId interface{} + + httpRes, err := apiClient.HasOneApi.GETStockReservationIdStockLineItem(context.Background(), stockReservationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test HasOneApiService GETStockReservationIdStockTransfer", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockReservationId interface{} + + httpRes, err := apiClient.HasOneApi.GETStockReservationIdStockTransfer(context.Background(), stockReservationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETStockTransferIdDestinationStockLocation", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -2089,6 +2674,19 @@ func Test_api_HasOneApiService(t *testing.T) { }) + t.Run("Test HasOneApiService GETStockTransferIdStockReservation", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockTransferId interface{} + + httpRes, err := apiClient.HasOneApi.GETStockTransferIdStockReservation(context.Background(), stockTransferId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test HasOneApiService GETStripePaymentIdOrder", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_imports_test.go b/api/test/api_imports_test.go index 4af02da9..0addecff 100644 --- a/api/test/api_imports_test.go +++ b/api/test/api_imports_test.go @@ -61,6 +61,20 @@ func Test_api_ImportsApiService(t *testing.T) { }) + t.Run("Test ImportsApiService PATCHImportsImportId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var importId interface{} + + resp, httpRes, err := apiClient.ImportsApi.PATCHImportsImportId(context.Background(), importId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test ImportsApiService POSTImports", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_inventory_stock_locations_test.go b/api/test/api_inventory_stock_locations_test.go index a2abc972..94b61d7e 100644 --- a/api/test/api_inventory_stock_locations_test.go +++ b/api/test/api_inventory_stock_locations_test.go @@ -74,6 +74,19 @@ func Test_api_InventoryStockLocationsApiService(t *testing.T) { }) + t.Run("Test InventoryStockLocationsApiService GETShipmentIdInventoryStockLocation", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var shipmentId interface{} + + httpRes, err := apiClient.InventoryStockLocationsApi.GETShipmentIdInventoryStockLocation(context.Background(), shipmentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test InventoryStockLocationsApiService GETStockLocationIdInventoryStockLocations", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_line_item_options_test.go b/api/test/api_line_item_options_test.go index 5f5f3e9a..f331f2bf 100644 --- a/api/test/api_line_item_options_test.go +++ b/api/test/api_line_item_options_test.go @@ -74,6 +74,19 @@ func Test_api_LineItemOptionsApiService(t *testing.T) { }) + t.Run("Test LineItemOptionsApiService GETOrderIdLineItemOptions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.LineItemOptionsApi.GETOrderIdLineItemOptions(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test LineItemOptionsApiService PATCHLineItemOptionsLineItemOptionId", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_line_items_test.go b/api/test/api_line_items_test.go index 2920fc63..4a9b3c2e 100644 --- a/api/test/api_line_items_test.go +++ b/api/test/api_line_items_test.go @@ -87,6 +87,19 @@ func Test_api_LineItemsApiService(t *testing.T) { }) + t.Run("Test LineItemsApiService GETOrderSubscriptionItemIdSourceLineItem", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderSubscriptionItemId interface{} + + httpRes, err := apiClient.LineItemsApi.GETOrderSubscriptionItemIdSourceLineItem(context.Background(), orderSubscriptionItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test LineItemsApiService GETReturnLineItemIdLineItem", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -100,6 +113,19 @@ func Test_api_LineItemsApiService(t *testing.T) { }) + t.Run("Test LineItemsApiService GETShipmentIdLineItems", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var shipmentId interface{} + + httpRes, err := apiClient.LineItemsApi.GETShipmentIdLineItems(context.Background(), shipmentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test LineItemsApiService GETStockLineItemIdLineItem", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -113,6 +139,19 @@ func Test_api_LineItemsApiService(t *testing.T) { }) + t.Run("Test LineItemsApiService GETStockReservationIdLineItem", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockReservationId interface{} + + httpRes, err := apiClient.LineItemsApi.GETStockReservationIdLineItem(context.Background(), stockReservationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test LineItemsApiService GETStockTransferIdLineItem", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_links_test.go b/api/test/api_links_test.go new file mode 100644 index 00000000..033da3d7 --- /dev/null +++ b/api/test/api_links_test.go @@ -0,0 +1,129 @@ +/* +Commerce Layer API + +Testing LinksApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package api + +import ( + "context" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_api_LinksApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test LinksApiService DELETELinksLinkId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var linkId interface{} + + httpRes, err := apiClient.LinksApi.DELETELinksLinkId(context.Background(), linkId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test LinksApiService GETLinks", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.LinksApi.GETLinks(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test LinksApiService GETLinksLinkId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var linkId interface{} + + resp, httpRes, err := apiClient.LinksApi.GETLinksLinkId(context.Background(), linkId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test LinksApiService GETOrderIdLinks", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.LinksApi.GETOrderIdLinks(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test LinksApiService GETSkuIdLinks", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var skuId interface{} + + httpRes, err := apiClient.LinksApi.GETSkuIdLinks(context.Background(), skuId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test LinksApiService GETSkuListIdLinks", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var skuListId interface{} + + httpRes, err := apiClient.LinksApi.GETSkuListIdLinks(context.Background(), skuListId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test LinksApiService PATCHLinksLinkId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var linkId interface{} + + resp, httpRes, err := apiClient.LinksApi.PATCHLinksLinkId(context.Background(), linkId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test LinksApiService POSTLinks", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.LinksApi.POSTLinks(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/api/test/api_markets_test.go b/api/test/api_markets_test.go index fb411261..a8c22e95 100644 --- a/api/test/api_markets_test.go +++ b/api/test/api_markets_test.go @@ -61,6 +61,19 @@ func Test_api_MarketsApiService(t *testing.T) { }) + t.Run("Test MarketsApiService GETBingGeocoderIdMarkets", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var bingGeocoderId interface{} + + httpRes, err := apiClient.MarketsApi.GETBingGeocoderIdMarkets(context.Background(), bingGeocoderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test MarketsApiService GETBundleIdMarket", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -74,6 +87,19 @@ func Test_api_MarketsApiService(t *testing.T) { }) + t.Run("Test MarketsApiService GETBuyXPayYPromotionIdMarket", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + httpRes, err := apiClient.MarketsApi.GETBuyXPayYPromotionIdMarket(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test MarketsApiService GETCarrierAccountIdMarket", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -178,6 +204,19 @@ func Test_api_MarketsApiService(t *testing.T) { }) + t.Run("Test MarketsApiService GETGeocoderIdMarkets", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var geocoderId interface{} + + httpRes, err := apiClient.MarketsApi.GETGeocoderIdMarkets(context.Background(), geocoderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test MarketsApiService GETGiftCardIdMarket", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -191,6 +230,19 @@ func Test_api_MarketsApiService(t *testing.T) { }) + t.Run("Test MarketsApiService GETGoogleGeocoderIdMarkets", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var googleGeocoderId interface{} + + httpRes, err := apiClient.MarketsApi.GETGoogleGeocoderIdMarkets(context.Background(), googleGeocoderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test MarketsApiService GETInStockSubscriptionIdMarket", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -269,39 +321,52 @@ func Test_api_MarketsApiService(t *testing.T) { }) - t.Run("Test MarketsApiService GETOrderValidationRuleIdMarket", func(t *testing.T) { + t.Run("Test MarketsApiService GETPaymentMethodIdMarket", func(t *testing.T) { t.Skip("skip test") // remove to run test - var orderValidationRuleId interface{} + var paymentMethodId interface{} - httpRes, err := apiClient.MarketsApi.GETOrderValidationRuleIdMarket(context.Background(), orderValidationRuleId).Execute() + httpRes, err := apiClient.MarketsApi.GETPaymentMethodIdMarket(context.Background(), paymentMethodId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test MarketsApiService GETPaymentMethodIdMarket", func(t *testing.T) { + t.Run("Test MarketsApiService GETPercentageDiscountPromotionIdMarket", func(t *testing.T) { t.Skip("skip test") // remove to run test - var paymentMethodId interface{} + var percentageDiscountPromotionId interface{} - httpRes, err := apiClient.MarketsApi.GETPaymentMethodIdMarket(context.Background(), paymentMethodId).Execute() + httpRes, err := apiClient.MarketsApi.GETPercentageDiscountPromotionIdMarket(context.Background(), percentageDiscountPromotionId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test MarketsApiService GETPercentageDiscountPromotionIdMarket", func(t *testing.T) { + t.Run("Test MarketsApiService GETPriceIdJwtMarkets", func(t *testing.T) { t.Skip("skip test") // remove to run test - var percentageDiscountPromotionId interface{} + var priceId interface{} - httpRes, err := apiClient.MarketsApi.GETPercentageDiscountPromotionIdMarket(context.Background(), percentageDiscountPromotionId).Execute() + httpRes, err := apiClient.MarketsApi.GETPriceIdJwtMarkets(context.Background(), priceId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MarketsApiService GETPriceListSchedulerIdMarket", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceListSchedulerId interface{} + + httpRes, err := apiClient.MarketsApi.GETPriceListSchedulerIdMarket(context.Background(), priceListSchedulerId).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) @@ -334,6 +399,19 @@ func Test_api_MarketsApiService(t *testing.T) { }) + t.Run("Test MarketsApiService GETSkuIdJwtMarkets", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var skuId interface{} + + httpRes, err := apiClient.MarketsApi.GETSkuIdJwtMarkets(context.Background(), skuId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test MarketsApiService GETSkuOptionIdMarket", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_order_amount_promotion_rules_test.go b/api/test/api_order_amount_promotion_rules_test.go index 156b7aca..d354af9a 100644 --- a/api/test/api_order_amount_promotion_rules_test.go +++ b/api/test/api_order_amount_promotion_rules_test.go @@ -35,6 +35,19 @@ func Test_api_OrderAmountPromotionRulesApiService(t *testing.T) { }) + t.Run("Test OrderAmountPromotionRulesApiService GETBuyXPayYPromotionIdOrderAmountPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + httpRes, err := apiClient.OrderAmountPromotionRulesApi.GETBuyXPayYPromotionIdOrderAmountPromotionRule(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test OrderAmountPromotionRulesApiService GETExternalPromotionIdOrderAmountPromotionRule", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_order_subscriptions_test.go b/api/test/api_order_subscriptions_test.go index ded80730..1cb64212 100644 --- a/api/test/api_order_subscriptions_test.go +++ b/api/test/api_order_subscriptions_test.go @@ -61,6 +61,19 @@ func Test_api_OrderSubscriptionsApiService(t *testing.T) { }) + t.Run("Test OrderSubscriptionsApiService GETOrderIdOrderSubscription", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.OrderSubscriptionsApi.GETOrderIdOrderSubscription(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test OrderSubscriptionsApiService GETOrderIdOrderSubscriptions", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_order_validation_rules_test.go b/api/test/api_order_validation_rules_test.go deleted file mode 100644 index c51ddaf8..00000000 --- a/api/test/api_order_validation_rules_test.go +++ /dev/null @@ -1,51 +0,0 @@ -/* -Commerce Layer API - -Testing OrderValidationRulesApiService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package api - -import ( - "context" - openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" - "testing" -) - -func Test_api_OrderValidationRulesApiService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test OrderValidationRulesApiService GETOrderValidationRules", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.OrderValidationRulesApi.GETOrderValidationRules(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test OrderValidationRulesApiService GETOrderValidationRulesOrderValidationRuleId", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var orderValidationRuleId interface{} - - resp, httpRes, err := apiClient.OrderValidationRulesApi.GETOrderValidationRulesOrderValidationRuleId(context.Background(), orderValidationRuleId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/api/test/api_orders_test.go b/api/test/api_orders_test.go index 865e05d3..329461b9 100644 --- a/api/test/api_orders_test.go +++ b/api/test/api_orders_test.go @@ -269,6 +269,19 @@ func Test_api_OrdersApiService(t *testing.T) { }) + t.Run("Test OrdersApiService GETPaymentOptionIdOrder", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var paymentOptionId interface{} + + httpRes, err := apiClient.OrdersApi.GETPaymentOptionIdOrder(context.Background(), paymentOptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test OrdersApiService GETPaypalPaymentIdOrder", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -360,6 +373,19 @@ func Test_api_OrdersApiService(t *testing.T) { }) + t.Run("Test OrdersApiService GETStockReservationIdOrder", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockReservationId interface{} + + httpRes, err := apiClient.OrdersApi.GETStockReservationIdOrder(context.Background(), stockReservationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test OrdersApiService GETStripePaymentIdOrder", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_payment_methods_test.go b/api/test/api_payment_methods_test.go index 136ab6aa..b9f78a98 100644 --- a/api/test/api_payment_methods_test.go +++ b/api/test/api_payment_methods_test.go @@ -87,6 +87,19 @@ func Test_api_PaymentMethodsApiService(t *testing.T) { }) + t.Run("Test PaymentMethodsApiService GETCustomerPaymentSourceIdPaymentMethod", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerPaymentSourceId interface{} + + httpRes, err := apiClient.PaymentMethodsApi.GETCustomerPaymentSourceIdPaymentMethod(context.Background(), customerPaymentSourceId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test PaymentMethodsApiService GETExternalGatewayIdPaymentMethods", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_payment_options_test.go b/api/test/api_payment_options_test.go new file mode 100644 index 00000000..7abfa1d0 --- /dev/null +++ b/api/test/api_payment_options_test.go @@ -0,0 +1,103 @@ +/* +Commerce Layer API + +Testing PaymentOptionsApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package api + +import ( + "context" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_api_PaymentOptionsApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test PaymentOptionsApiService DELETEPaymentOptionsPaymentOptionId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var paymentOptionId interface{} + + httpRes, err := apiClient.PaymentOptionsApi.DELETEPaymentOptionsPaymentOptionId(context.Background(), paymentOptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PaymentOptionsApiService GETOrderIdPaymentOptions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.PaymentOptionsApi.GETOrderIdPaymentOptions(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PaymentOptionsApiService GETPaymentOptions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.PaymentOptionsApi.GETPaymentOptions(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PaymentOptionsApiService GETPaymentOptionsPaymentOptionId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var paymentOptionId interface{} + + resp, httpRes, err := apiClient.PaymentOptionsApi.GETPaymentOptionsPaymentOptionId(context.Background(), paymentOptionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PaymentOptionsApiService PATCHPaymentOptionsPaymentOptionId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var paymentOptionId interface{} + + resp, httpRes, err := apiClient.PaymentOptionsApi.PATCHPaymentOptionsPaymentOptionId(context.Background(), paymentOptionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PaymentOptionsApiService POSTPaymentOptions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.PaymentOptionsApi.POSTPaymentOptions(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/api/test/api_price_list_schedulers_test.go b/api/test/api_price_list_schedulers_test.go new file mode 100644 index 00000000..b9ec3d52 --- /dev/null +++ b/api/test/api_price_list_schedulers_test.go @@ -0,0 +1,116 @@ +/* +Commerce Layer API + +Testing PriceListSchedulersApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package api + +import ( + "context" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_api_PriceListSchedulersApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test PriceListSchedulersApiService DELETEPriceListSchedulersPriceListSchedulerId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceListSchedulerId interface{} + + httpRes, err := apiClient.PriceListSchedulersApi.DELETEPriceListSchedulersPriceListSchedulerId(context.Background(), priceListSchedulerId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PriceListSchedulersApiService GETMarketIdPriceListSchedulers", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var marketId interface{} + + httpRes, err := apiClient.PriceListSchedulersApi.GETMarketIdPriceListSchedulers(context.Background(), marketId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PriceListSchedulersApiService GETPriceListIdPriceListSchedulers", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceListId interface{} + + httpRes, err := apiClient.PriceListSchedulersApi.GETPriceListIdPriceListSchedulers(context.Background(), priceListId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PriceListSchedulersApiService GETPriceListSchedulers", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.PriceListSchedulersApi.GETPriceListSchedulers(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PriceListSchedulersApiService GETPriceListSchedulersPriceListSchedulerId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceListSchedulerId interface{} + + resp, httpRes, err := apiClient.PriceListSchedulersApi.GETPriceListSchedulersPriceListSchedulerId(context.Background(), priceListSchedulerId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PriceListSchedulersApiService PATCHPriceListSchedulersPriceListSchedulerId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceListSchedulerId interface{} + + resp, httpRes, err := apiClient.PriceListSchedulersApi.PATCHPriceListSchedulersPriceListSchedulerId(context.Background(), priceListSchedulerId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PriceListSchedulersApiService POSTPriceListSchedulers", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.PriceListSchedulersApi.POSTPriceListSchedulers(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/api/test/api_price_lists_test.go b/api/test/api_price_lists_test.go index 88e04121..ffc64bf1 100644 --- a/api/test/api_price_lists_test.go +++ b/api/test/api_price_lists_test.go @@ -35,6 +35,19 @@ func Test_api_PriceListsApiService(t *testing.T) { }) + t.Run("Test PriceListsApiService GETMarketIdBasePriceList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var marketId interface{} + + httpRes, err := apiClient.PriceListsApi.GETMarketIdBasePriceList(context.Background(), marketId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test PriceListsApiService GETMarketIdPriceList", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -61,6 +74,19 @@ func Test_api_PriceListsApiService(t *testing.T) { }) + t.Run("Test PriceListsApiService GETPriceListSchedulerIdPriceList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceListSchedulerId interface{} + + httpRes, err := apiClient.PriceListsApi.GETPriceListSchedulerIdPriceList(context.Background(), priceListSchedulerId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test PriceListsApiService GETPriceLists", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_refunds_test.go b/api/test/api_refunds_test.go index f1efea52..91a9a023 100644 --- a/api/test/api_refunds_test.go +++ b/api/test/api_refunds_test.go @@ -74,4 +74,31 @@ func Test_api_RefundsApiService(t *testing.T) { }) + t.Run("Test RefundsApiService GETReturnIdReferenceRefund", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var returnId interface{} + + httpRes, err := apiClient.RefundsApi.GETReturnIdReferenceRefund(context.Background(), returnId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test RefundsApiService PATCHRefundsRefundId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var refundId interface{} + + resp, httpRes, err := apiClient.RefundsApi.PATCHRefundsRefundId(context.Background(), refundId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + } diff --git a/api/test/api_reserved_stocks_test.go b/api/test/api_reserved_stocks_test.go new file mode 100644 index 00000000..65422d6d --- /dev/null +++ b/api/test/api_reserved_stocks_test.go @@ -0,0 +1,77 @@ +/* +Commerce Layer API + +Testing ReservedStocksApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package api + +import ( + "context" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_api_ReservedStocksApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ReservedStocksApiService GETReservedStocks", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ReservedStocksApi.GETReservedStocks(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReservedStocksApiService GETReservedStocksReservedStockId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var reservedStockId interface{} + + resp, httpRes, err := apiClient.ReservedStocksApi.GETReservedStocksReservedStockId(context.Background(), reservedStockId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReservedStocksApiService GETStockItemIdReservedStock", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockItemId interface{} + + httpRes, err := apiClient.ReservedStocksApi.GETStockItemIdReservedStock(context.Background(), stockItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReservedStocksApiService GETStockReservationIdReservedStock", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockReservationId interface{} + + httpRes, err := apiClient.ReservedStocksApi.GETStockReservationIdReservedStock(context.Background(), stockReservationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/api/test/api_resource_errors_test.go b/api/test/api_resource_errors_test.go new file mode 100644 index 00000000..e69ee173 --- /dev/null +++ b/api/test/api_resource_errors_test.go @@ -0,0 +1,77 @@ +/* +Commerce Layer API + +Testing ResourceErrorsApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package api + +import ( + "context" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_api_ResourceErrorsApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ResourceErrorsApiService GETOrderIdResourceErrors", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.ResourceErrorsApi.GETOrderIdResourceErrors(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ResourceErrorsApiService GETResourceErrors", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ResourceErrorsApi.GETResourceErrors(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ResourceErrorsApiService GETResourceErrorsResourceErrorId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var resourceErrorId interface{} + + resp, httpRes, err := apiClient.ResourceErrorsApi.GETResourceErrorsResourceErrorId(context.Background(), resourceErrorId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ResourceErrorsApiService GETReturnIdResourceErrors", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var returnId interface{} + + httpRes, err := apiClient.ResourceErrorsApi.GETReturnIdResourceErrors(context.Background(), returnId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/api/test/api_return_line_items_test.go b/api/test/api_return_line_items_test.go index 89d1e98d..2526f72e 100644 --- a/api/test/api_return_line_items_test.go +++ b/api/test/api_return_line_items_test.go @@ -35,6 +35,19 @@ func Test_api_ReturnLineItemsApiService(t *testing.T) { }) + t.Run("Test ReturnLineItemsApiService GETLineItemIdReturnLineItems", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var lineItemId interface{} + + httpRes, err := apiClient.ReturnLineItemsApi.GETLineItemIdReturnLineItems(context.Background(), lineItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test ReturnLineItemsApiService GETReturnIdReturnLineItems", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_returns_test.go b/api/test/api_returns_test.go index bbbd1607..85da2a06 100644 --- a/api/test/api_returns_test.go +++ b/api/test/api_returns_test.go @@ -35,6 +35,19 @@ func Test_api_ReturnsApiService(t *testing.T) { }) + t.Run("Test ReturnsApiService GETCaptureIdReturn", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var captureId interface{} + + httpRes, err := apiClient.ReturnsApi.GETCaptureIdReturn(context.Background(), captureId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test ReturnsApiService GETCustomerIdReturns", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -61,6 +74,19 @@ func Test_api_ReturnsApiService(t *testing.T) { }) + t.Run("Test ReturnsApiService GETRefundIdReturn", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var refundId interface{} + + httpRes, err := apiClient.ReturnsApi.GETRefundIdReturn(context.Background(), refundId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test ReturnsApiService GETReturnLineItemIdReturn", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_shipments_test.go b/api/test/api_shipments_test.go index 3cdc6872..6a3add85 100644 --- a/api/test/api_shipments_test.go +++ b/api/test/api_shipments_test.go @@ -22,6 +22,19 @@ func Test_api_ShipmentsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) + t.Run("Test ShipmentsApiService DELETEShipmentsShipmentId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var shipmentId interface{} + + httpRes, err := apiClient.ShipmentsApi.DELETEShipmentsShipmentId(context.Background(), shipmentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test ShipmentsApiService GETOrderIdShipments", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -114,4 +127,16 @@ func Test_api_ShipmentsApiService(t *testing.T) { }) + t.Run("Test ShipmentsApiService POSTShipments", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ShipmentsApi.POSTShipments(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + } diff --git a/api/test/api_sku_list_items_test.go b/api/test/api_sku_list_items_test.go index 9f5b18ac..f3884db7 100644 --- a/api/test/api_sku_list_items_test.go +++ b/api/test/api_sku_list_items_test.go @@ -35,6 +35,19 @@ func Test_api_SkuListItemsApiService(t *testing.T) { }) + t.Run("Test SkuListItemsApiService GETSkuIdSkuListItems", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var skuId interface{} + + httpRes, err := apiClient.SkuListItemsApi.GETSkuIdSkuListItems(context.Background(), skuId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test SkuListItemsApiService GETSkuListIdSkuListItems", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_sku_list_promotion_rules_test.go b/api/test/api_sku_list_promotion_rules_test.go index 10c04bad..98a0af6e 100644 --- a/api/test/api_sku_list_promotion_rules_test.go +++ b/api/test/api_sku_list_promotion_rules_test.go @@ -35,6 +35,19 @@ func Test_api_SkuListPromotionRulesApiService(t *testing.T) { }) + t.Run("Test SkuListPromotionRulesApiService GETBuyXPayYPromotionIdSkuListPromotionRule", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + httpRes, err := apiClient.SkuListPromotionRulesApi.GETBuyXPayYPromotionIdSkuListPromotionRule(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test SkuListPromotionRulesApiService GETExternalPromotionIdSkuListPromotionRule", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_sku_lists_test.go b/api/test/api_sku_lists_test.go index e8daa746..54cc8c72 100644 --- a/api/test/api_sku_lists_test.go +++ b/api/test/api_sku_lists_test.go @@ -48,6 +48,19 @@ func Test_api_SkuListsApiService(t *testing.T) { }) + t.Run("Test SkuListsApiService GETBuyXPayYPromotionIdSkuList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + httpRes, err := apiClient.SkuListsApi.GETBuyXPayYPromotionIdSkuList(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test SkuListsApiService GETCustomerIdSkuLists", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -61,6 +74,32 @@ func Test_api_SkuListsApiService(t *testing.T) { }) + t.Run("Test SkuListsApiService GETExternalPromotionIdSkuList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalPromotionId interface{} + + httpRes, err := apiClient.SkuListsApi.GETExternalPromotionIdSkuList(context.Background(), externalPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SkuListsApiService GETFixedAmountPromotionIdSkuList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedAmountPromotionId interface{} + + httpRes, err := apiClient.SkuListsApi.GETFixedAmountPromotionIdSkuList(context.Background(), fixedAmountPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test SkuListsApiService GETFixedPricePromotionIdSkuList", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -87,6 +126,19 @@ func Test_api_SkuListsApiService(t *testing.T) { }) + t.Run("Test SkuListsApiService GETFreeShippingPromotionIdSkuList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeShippingPromotionId interface{} + + httpRes, err := apiClient.SkuListsApi.GETFreeShippingPromotionIdSkuList(context.Background(), freeShippingPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test SkuListsApiService GETPercentageDiscountPromotionIdSkuList", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -100,6 +152,32 @@ func Test_api_SkuListsApiService(t *testing.T) { }) + t.Run("Test SkuListsApiService GETPromotionIdSkuList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var promotionId interface{} + + httpRes, err := apiClient.SkuListsApi.GETPromotionIdSkuList(context.Background(), promotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SkuListsApiService GETSkuIdSkuLists", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var skuId interface{} + + httpRes, err := apiClient.SkuListsApi.GETSkuIdSkuLists(context.Background(), skuId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test SkuListsApiService GETSkuListItemIdSkuList", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_skus_test.go b/api/test/api_skus_test.go index 8abac904..249df5af 100644 --- a/api/test/api_skus_test.go +++ b/api/test/api_skus_test.go @@ -48,6 +48,45 @@ func Test_api_SkusApiService(t *testing.T) { }) + t.Run("Test SkusApiService GETBuyXPayYPromotionIdSkus", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + httpRes, err := apiClient.SkusApi.GETBuyXPayYPromotionIdSkus(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SkusApiService GETExternalPromotionIdSkus", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalPromotionId interface{} + + httpRes, err := apiClient.SkusApi.GETExternalPromotionIdSkus(context.Background(), externalPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SkusApiService GETFixedAmountPromotionIdSkus", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedAmountPromotionId interface{} + + httpRes, err := apiClient.SkusApi.GETFixedAmountPromotionIdSkus(context.Background(), fixedAmountPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test SkusApiService GETFixedPricePromotionIdSkus", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -126,6 +165,19 @@ func Test_api_SkusApiService(t *testing.T) { }) + t.Run("Test SkusApiService GETReservedStockIdSku", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var reservedStockId interface{} + + httpRes, err := apiClient.SkusApi.GETReservedStockIdSku(context.Background(), reservedStockId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test SkusApiService GETShippingCategoryIdSkus", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -217,6 +269,32 @@ func Test_api_SkusApiService(t *testing.T) { }) + t.Run("Test SkusApiService GETStockLineItemIdSku", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockLineItemId interface{} + + httpRes, err := apiClient.SkusApi.GETStockLineItemIdSku(context.Background(), stockLineItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SkusApiService GETStockReservationIdSku", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockReservationId interface{} + + httpRes, err := apiClient.SkusApi.GETStockReservationIdSku(context.Background(), stockReservationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test SkusApiService GETStockTransferIdSku", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_stock_items_test.go b/api/test/api_stock_items_test.go index d017fd6b..65c2dfc9 100644 --- a/api/test/api_stock_items_test.go +++ b/api/test/api_stock_items_test.go @@ -35,6 +35,19 @@ func Test_api_StockItemsApiService(t *testing.T) { }) + t.Run("Test StockItemsApiService GETReservedStockIdStockItem", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var reservedStockId interface{} + + httpRes, err := apiClient.StockItemsApi.GETReservedStockIdStockItem(context.Background(), reservedStockId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test StockItemsApiService GETSkuIdStockItems", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -100,6 +113,19 @@ func Test_api_StockItemsApiService(t *testing.T) { }) + t.Run("Test StockItemsApiService GETStockReservationIdStockItem", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockReservationId interface{} + + httpRes, err := apiClient.StockItemsApi.GETStockReservationIdStockItem(context.Background(), stockReservationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test StockItemsApiService PATCHStockItemsStockItemId", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_stock_line_items_test.go b/api/test/api_stock_line_items_test.go index 8cceae74..e14ed10e 100644 --- a/api/test/api_stock_line_items_test.go +++ b/api/test/api_stock_line_items_test.go @@ -22,6 +22,19 @@ func Test_api_StockLineItemsApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) + t.Run("Test StockLineItemsApiService DELETEStockLineItemsStockLineItemId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockLineItemId interface{} + + httpRes, err := apiClient.StockLineItemsApi.DELETEStockLineItemsStockLineItemId(context.Background(), stockLineItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test StockLineItemsApiService GETLineItemIdStockLineItems", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -35,6 +48,19 @@ func Test_api_StockLineItemsApiService(t *testing.T) { }) + t.Run("Test StockLineItemsApiService GETOrderIdStockLineItems", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.StockLineItemsApi.GETOrderIdStockLineItems(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test StockLineItemsApiService GETParcelLineItemIdStockLineItem", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -87,4 +113,43 @@ func Test_api_StockLineItemsApiService(t *testing.T) { }) + t.Run("Test StockLineItemsApiService GETStockReservationIdStockLineItem", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockReservationId interface{} + + httpRes, err := apiClient.StockLineItemsApi.GETStockReservationIdStockLineItem(context.Background(), stockReservationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test StockLineItemsApiService PATCHStockLineItemsStockLineItemId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockLineItemId interface{} + + resp, httpRes, err := apiClient.StockLineItemsApi.PATCHStockLineItemsStockLineItemId(context.Background(), stockLineItemId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test StockLineItemsApiService POSTStockLineItems", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.StockLineItemsApi.POSTStockLineItems(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + } diff --git a/api/test/api_stock_locations_test.go b/api/test/api_stock_locations_test.go index 1700a461..06918cac 100644 --- a/api/test/api_stock_locations_test.go +++ b/api/test/api_stock_locations_test.go @@ -87,6 +87,19 @@ func Test_api_StockLocationsApiService(t *testing.T) { }) + t.Run("Test StockLocationsApiService GETPriceIdJwtStockLocations", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceId interface{} + + httpRes, err := apiClient.StockLocationsApi.GETPriceIdJwtStockLocations(context.Background(), priceId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test StockLocationsApiService GETReturnIdStockLocation", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -126,6 +139,19 @@ func Test_api_StockLocationsApiService(t *testing.T) { }) + t.Run("Test StockLocationsApiService GETSkuIdJwtStockLocations", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var skuId interface{} + + httpRes, err := apiClient.StockLocationsApi.GETSkuIdJwtStockLocations(context.Background(), skuId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test StockLocationsApiService GETStockItemIdStockLocation", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_stock_reservations_test.go b/api/test/api_stock_reservations_test.go new file mode 100644 index 00000000..ea1520c9 --- /dev/null +++ b/api/test/api_stock_reservations_test.go @@ -0,0 +1,181 @@ +/* +Commerce Layer API + +Testing StockReservationsApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package api + +import ( + "context" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_api_StockReservationsApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test StockReservationsApiService DELETEStockReservationsStockReservationId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockReservationId interface{} + + httpRes, err := apiClient.StockReservationsApi.DELETEStockReservationsStockReservationId(context.Background(), stockReservationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test StockReservationsApiService GETLineItemIdStockReservations", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var lineItemId interface{} + + httpRes, err := apiClient.StockReservationsApi.GETLineItemIdStockReservations(context.Background(), lineItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test StockReservationsApiService GETOrderIdStockReservations", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.StockReservationsApi.GETOrderIdStockReservations(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test StockReservationsApiService GETReservedStockIdStockReservations", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var reservedStockId interface{} + + httpRes, err := apiClient.StockReservationsApi.GETReservedStockIdStockReservations(context.Background(), reservedStockId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test StockReservationsApiService GETSkuIdStockReservations", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var skuId interface{} + + httpRes, err := apiClient.StockReservationsApi.GETSkuIdStockReservations(context.Background(), skuId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test StockReservationsApiService GETStockItemIdStockReservations", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockItemId interface{} + + httpRes, err := apiClient.StockReservationsApi.GETStockItemIdStockReservations(context.Background(), stockItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test StockReservationsApiService GETStockLineItemIdStockReservation", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockLineItemId interface{} + + httpRes, err := apiClient.StockReservationsApi.GETStockLineItemIdStockReservation(context.Background(), stockLineItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test StockReservationsApiService GETStockReservations", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.StockReservationsApi.GETStockReservations(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test StockReservationsApiService GETStockReservationsStockReservationId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockReservationId interface{} + + resp, httpRes, err := apiClient.StockReservationsApi.GETStockReservationsStockReservationId(context.Background(), stockReservationId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test StockReservationsApiService GETStockTransferIdStockReservation", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockTransferId interface{} + + httpRes, err := apiClient.StockReservationsApi.GETStockTransferIdStockReservation(context.Background(), stockTransferId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test StockReservationsApiService PATCHStockReservationsStockReservationId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockReservationId interface{} + + resp, httpRes, err := apiClient.StockReservationsApi.PATCHStockReservationsStockReservationId(context.Background(), stockReservationId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test StockReservationsApiService POSTStockReservations", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.StockReservationsApi.POSTStockReservations(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/api/test/api_stock_transfers_test.go b/api/test/api_stock_transfers_test.go index a6885476..bb2c195a 100644 --- a/api/test/api_stock_transfers_test.go +++ b/api/test/api_stock_transfers_test.go @@ -48,6 +48,19 @@ func Test_api_StockTransfersApiService(t *testing.T) { }) + t.Run("Test StockTransfersApiService GETOrderIdStockTransfers", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.StockTransfersApi.GETOrderIdStockTransfers(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test StockTransfersApiService GETShipmentIdStockTransfers", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -74,6 +87,19 @@ func Test_api_StockTransfersApiService(t *testing.T) { }) + t.Run("Test StockTransfersApiService GETStockReservationIdStockTransfer", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockReservationId interface{} + + httpRes, err := apiClient.StockTransfersApi.GETStockReservationIdStockTransfer(context.Background(), stockReservationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test StockTransfersApiService GETStockTransfers", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/api/test/api_tags_test.go b/api/test/api_tags_test.go new file mode 100644 index 00000000..262cf00f --- /dev/null +++ b/api/test/api_tags_test.go @@ -0,0 +1,376 @@ +/* +Commerce Layer API + +Testing TagsApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package api + +import ( + "context" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_api_TagsApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test TagsApiService DELETETagsTagId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var tagId interface{} + + httpRes, err := apiClient.TagsApi.DELETETagsTagId(context.Background(), tagId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETAddressIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var addressId interface{} + + httpRes, err := apiClient.TagsApi.GETAddressIdTags(context.Background(), addressId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETBundleIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var bundleId interface{} + + httpRes, err := apiClient.TagsApi.GETBundleIdTags(context.Background(), bundleId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETBuyXPayYPromotionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + httpRes, err := apiClient.TagsApi.GETBuyXPayYPromotionIdTags(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETCouponIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var couponId interface{} + + httpRes, err := apiClient.TagsApi.GETCouponIdTags(context.Background(), couponId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETCustomerIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerId interface{} + + httpRes, err := apiClient.TagsApi.GETCustomerIdTags(context.Background(), customerId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETExternalPromotionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalPromotionId interface{} + + httpRes, err := apiClient.TagsApi.GETExternalPromotionIdTags(context.Background(), externalPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETFixedAmountPromotionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedAmountPromotionId interface{} + + httpRes, err := apiClient.TagsApi.GETFixedAmountPromotionIdTags(context.Background(), fixedAmountPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETFixedPricePromotionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedPricePromotionId interface{} + + httpRes, err := apiClient.TagsApi.GETFixedPricePromotionIdTags(context.Background(), fixedPricePromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETFlexPromotionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var flexPromotionId interface{} + + httpRes, err := apiClient.TagsApi.GETFlexPromotionIdTags(context.Background(), flexPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETFreeGiftPromotionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeGiftPromotionId interface{} + + httpRes, err := apiClient.TagsApi.GETFreeGiftPromotionIdTags(context.Background(), freeGiftPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETFreeShippingPromotionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeShippingPromotionId interface{} + + httpRes, err := apiClient.TagsApi.GETFreeShippingPromotionIdTags(context.Background(), freeShippingPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETGiftCardIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var giftCardId interface{} + + httpRes, err := apiClient.TagsApi.GETGiftCardIdTags(context.Background(), giftCardId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETLineItemIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var lineItemId interface{} + + httpRes, err := apiClient.TagsApi.GETLineItemIdTags(context.Background(), lineItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETLineItemOptionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var lineItemOptionId interface{} + + httpRes, err := apiClient.TagsApi.GETLineItemOptionIdTags(context.Background(), lineItemOptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETOrderIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.TagsApi.GETOrderIdTags(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETOrderSubscriptionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderSubscriptionId interface{} + + httpRes, err := apiClient.TagsApi.GETOrderSubscriptionIdTags(context.Background(), orderSubscriptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETPercentageDiscountPromotionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var percentageDiscountPromotionId interface{} + + httpRes, err := apiClient.TagsApi.GETPercentageDiscountPromotionIdTags(context.Background(), percentageDiscountPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETPromotionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var promotionId interface{} + + httpRes, err := apiClient.TagsApi.GETPromotionIdTags(context.Background(), promotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETReturnIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var returnId interface{} + + httpRes, err := apiClient.TagsApi.GETReturnIdTags(context.Background(), returnId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETShipmentIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var shipmentId interface{} + + httpRes, err := apiClient.TagsApi.GETShipmentIdTags(context.Background(), shipmentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETSkuIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var skuId interface{} + + httpRes, err := apiClient.TagsApi.GETSkuIdTags(context.Background(), skuId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETSkuOptionIdTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var skuOptionId interface{} + + httpRes, err := apiClient.TagsApi.GETSkuOptionIdTags(context.Background(), skuOptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TagsApi.GETTags(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService GETTagsTagId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var tagId interface{} + + resp, httpRes, err := apiClient.TagsApi.GETTagsTagId(context.Background(), tagId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService PATCHTagsTagId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var tagId interface{} + + resp, httpRes, err := apiClient.TagsApi.PATCHTagsTagId(context.Background(), tagId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test TagsApiService POSTTags", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.TagsApi.POSTTags(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/api/test/api_versions_test.go b/api/test/api_versions_test.go new file mode 100644 index 00000000..f903ff32 --- /dev/null +++ b/api/test/api_versions_test.go @@ -0,0 +1,1312 @@ +/* +Commerce Layer API + +Testing VersionsApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package api + +import ( + "context" + openapiclient "github.com/incentro-dc/go-commercelayer-sdk/api" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" +) + +func Test_api_VersionsApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test VersionsApiService GETAddressIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var addressId interface{} + + httpRes, err := apiClient.VersionsApi.GETAddressIdVersions(context.Background(), addressId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETAdjustmentIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var adjustmentId interface{} + + httpRes, err := apiClient.VersionsApi.GETAdjustmentIdVersions(context.Background(), adjustmentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETAdyenGatewayIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var adyenGatewayId interface{} + + httpRes, err := apiClient.VersionsApi.GETAdyenGatewayIdVersions(context.Background(), adyenGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETAdyenPaymentIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var adyenPaymentId interface{} + + httpRes, err := apiClient.VersionsApi.GETAdyenPaymentIdVersions(context.Background(), adyenPaymentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETAuthorizationIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var authorizationId interface{} + + httpRes, err := apiClient.VersionsApi.GETAuthorizationIdVersions(context.Background(), authorizationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETAvalaraAccountIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var avalaraAccountId interface{} + + httpRes, err := apiClient.VersionsApi.GETAvalaraAccountIdVersions(context.Background(), avalaraAccountId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETAxerveGatewayIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var axerveGatewayId interface{} + + httpRes, err := apiClient.VersionsApi.GETAxerveGatewayIdVersions(context.Background(), axerveGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETAxervePaymentIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var axervePaymentId interface{} + + httpRes, err := apiClient.VersionsApi.GETAxervePaymentIdVersions(context.Background(), axervePaymentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETBillingInfoValidationRuleIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var billingInfoValidationRuleId interface{} + + httpRes, err := apiClient.VersionsApi.GETBillingInfoValidationRuleIdVersions(context.Background(), billingInfoValidationRuleId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETBraintreeGatewayIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var braintreeGatewayId interface{} + + httpRes, err := apiClient.VersionsApi.GETBraintreeGatewayIdVersions(context.Background(), braintreeGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETBraintreePaymentIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var braintreePaymentId interface{} + + httpRes, err := apiClient.VersionsApi.GETBraintreePaymentIdVersions(context.Background(), braintreePaymentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETBundleIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var bundleId interface{} + + httpRes, err := apiClient.VersionsApi.GETBundleIdVersions(context.Background(), bundleId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETBuyXPayYPromotionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var buyXPayYPromotionId interface{} + + httpRes, err := apiClient.VersionsApi.GETBuyXPayYPromotionIdVersions(context.Background(), buyXPayYPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETCaptureIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var captureId interface{} + + httpRes, err := apiClient.VersionsApi.GETCaptureIdVersions(context.Background(), captureId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETCarrierAccountIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var carrierAccountId interface{} + + httpRes, err := apiClient.VersionsApi.GETCarrierAccountIdVersions(context.Background(), carrierAccountId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETCheckoutComGatewayIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var checkoutComGatewayId interface{} + + httpRes, err := apiClient.VersionsApi.GETCheckoutComGatewayIdVersions(context.Background(), checkoutComGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETCheckoutComPaymentIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var checkoutComPaymentId interface{} + + httpRes, err := apiClient.VersionsApi.GETCheckoutComPaymentIdVersions(context.Background(), checkoutComPaymentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETCleanupIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var cleanupId interface{} + + httpRes, err := apiClient.VersionsApi.GETCleanupIdVersions(context.Background(), cleanupId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETCouponCodesPromotionRuleIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var couponCodesPromotionRuleId interface{} + + httpRes, err := apiClient.VersionsApi.GETCouponCodesPromotionRuleIdVersions(context.Background(), couponCodesPromotionRuleId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETCouponIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var couponId interface{} + + httpRes, err := apiClient.VersionsApi.GETCouponIdVersions(context.Background(), couponId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETCouponRecipientIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var couponRecipientId interface{} + + httpRes, err := apiClient.VersionsApi.GETCouponRecipientIdVersions(context.Background(), couponRecipientId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETCustomPromotionRuleIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customPromotionRuleId interface{} + + httpRes, err := apiClient.VersionsApi.GETCustomPromotionRuleIdVersions(context.Background(), customPromotionRuleId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETCustomerAddressIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerAddressId interface{} + + httpRes, err := apiClient.VersionsApi.GETCustomerAddressIdVersions(context.Background(), customerAddressId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETCustomerGroupIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerGroupId interface{} + + httpRes, err := apiClient.VersionsApi.GETCustomerGroupIdVersions(context.Background(), customerGroupId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETCustomerPaymentSourceIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerPaymentSourceId interface{} + + httpRes, err := apiClient.VersionsApi.GETCustomerPaymentSourceIdVersions(context.Background(), customerPaymentSourceId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETCustomerSubscriptionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var customerSubscriptionId interface{} + + httpRes, err := apiClient.VersionsApi.GETCustomerSubscriptionIdVersions(context.Background(), customerSubscriptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETDeliveryLeadTimeIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var deliveryLeadTimeId interface{} + + httpRes, err := apiClient.VersionsApi.GETDeliveryLeadTimeIdVersions(context.Background(), deliveryLeadTimeId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETExternalGatewayIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalGatewayId interface{} + + httpRes, err := apiClient.VersionsApi.GETExternalGatewayIdVersions(context.Background(), externalGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETExternalPaymentIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalPaymentId interface{} + + httpRes, err := apiClient.VersionsApi.GETExternalPaymentIdVersions(context.Background(), externalPaymentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETExternalPromotionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalPromotionId interface{} + + httpRes, err := apiClient.VersionsApi.GETExternalPromotionIdVersions(context.Background(), externalPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETExternalTaxCalculatorIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var externalTaxCalculatorId interface{} + + httpRes, err := apiClient.VersionsApi.GETExternalTaxCalculatorIdVersions(context.Background(), externalTaxCalculatorId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETFixedAmountPromotionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedAmountPromotionId interface{} + + httpRes, err := apiClient.VersionsApi.GETFixedAmountPromotionIdVersions(context.Background(), fixedAmountPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETFixedPricePromotionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var fixedPricePromotionId interface{} + + httpRes, err := apiClient.VersionsApi.GETFixedPricePromotionIdVersions(context.Background(), fixedPricePromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETFlexPromotionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var flexPromotionId interface{} + + httpRes, err := apiClient.VersionsApi.GETFlexPromotionIdVersions(context.Background(), flexPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETFreeGiftPromotionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeGiftPromotionId interface{} + + httpRes, err := apiClient.VersionsApi.GETFreeGiftPromotionIdVersions(context.Background(), freeGiftPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETFreeShippingPromotionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var freeShippingPromotionId interface{} + + httpRes, err := apiClient.VersionsApi.GETFreeShippingPromotionIdVersions(context.Background(), freeShippingPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETGiftCardIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var giftCardId interface{} + + httpRes, err := apiClient.VersionsApi.GETGiftCardIdVersions(context.Background(), giftCardId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETGiftCardRecipientIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var giftCardRecipientId interface{} + + httpRes, err := apiClient.VersionsApi.GETGiftCardRecipientIdVersions(context.Background(), giftCardRecipientId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETInStockSubscriptionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var inStockSubscriptionId interface{} + + httpRes, err := apiClient.VersionsApi.GETInStockSubscriptionIdVersions(context.Background(), inStockSubscriptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETInventoryModelIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var inventoryModelId interface{} + + httpRes, err := apiClient.VersionsApi.GETInventoryModelIdVersions(context.Background(), inventoryModelId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETInventoryReturnLocationIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var inventoryReturnLocationId interface{} + + httpRes, err := apiClient.VersionsApi.GETInventoryReturnLocationIdVersions(context.Background(), inventoryReturnLocationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETInventoryStockLocationIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var inventoryStockLocationId interface{} + + httpRes, err := apiClient.VersionsApi.GETInventoryStockLocationIdVersions(context.Background(), inventoryStockLocationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETKlarnaGatewayIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var klarnaGatewayId interface{} + + httpRes, err := apiClient.VersionsApi.GETKlarnaGatewayIdVersions(context.Background(), klarnaGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETKlarnaPaymentIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var klarnaPaymentId interface{} + + httpRes, err := apiClient.VersionsApi.GETKlarnaPaymentIdVersions(context.Background(), klarnaPaymentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETManualGatewayIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var manualGatewayId interface{} + + httpRes, err := apiClient.VersionsApi.GETManualGatewayIdVersions(context.Background(), manualGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETManualTaxCalculatorIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var manualTaxCalculatorId interface{} + + httpRes, err := apiClient.VersionsApi.GETManualTaxCalculatorIdVersions(context.Background(), manualTaxCalculatorId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETMarketIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var marketId interface{} + + httpRes, err := apiClient.VersionsApi.GETMarketIdVersions(context.Background(), marketId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETMerchantIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var merchantId interface{} + + httpRes, err := apiClient.VersionsApi.GETMerchantIdVersions(context.Background(), merchantId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETOrderAmountPromotionRuleIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderAmountPromotionRuleId interface{} + + httpRes, err := apiClient.VersionsApi.GETOrderAmountPromotionRuleIdVersions(context.Background(), orderAmountPromotionRuleId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETOrderIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderId interface{} + + httpRes, err := apiClient.VersionsApi.GETOrderIdVersions(context.Background(), orderId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETOrderSubscriptionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orderSubscriptionId interface{} + + httpRes, err := apiClient.VersionsApi.GETOrderSubscriptionIdVersions(context.Background(), orderSubscriptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETPackageIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var packageId interface{} + + httpRes, err := apiClient.VersionsApi.GETPackageIdVersions(context.Background(), packageId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETParcelIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var parcelId interface{} + + httpRes, err := apiClient.VersionsApi.GETParcelIdVersions(context.Background(), parcelId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETParcelLineItemIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var parcelLineItemId interface{} + + httpRes, err := apiClient.VersionsApi.GETParcelLineItemIdVersions(context.Background(), parcelLineItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETPaymentGatewayIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var paymentGatewayId interface{} + + httpRes, err := apiClient.VersionsApi.GETPaymentGatewayIdVersions(context.Background(), paymentGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETPaymentMethodIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var paymentMethodId interface{} + + httpRes, err := apiClient.VersionsApi.GETPaymentMethodIdVersions(context.Background(), paymentMethodId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETPaypalGatewayIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var paypalGatewayId interface{} + + httpRes, err := apiClient.VersionsApi.GETPaypalGatewayIdVersions(context.Background(), paypalGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETPaypalPaymentIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var paypalPaymentId interface{} + + httpRes, err := apiClient.VersionsApi.GETPaypalPaymentIdVersions(context.Background(), paypalPaymentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETPercentageDiscountPromotionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var percentageDiscountPromotionId interface{} + + httpRes, err := apiClient.VersionsApi.GETPercentageDiscountPromotionIdVersions(context.Background(), percentageDiscountPromotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETPriceFrequencyTierIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceFrequencyTierId interface{} + + httpRes, err := apiClient.VersionsApi.GETPriceFrequencyTierIdVersions(context.Background(), priceFrequencyTierId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETPriceIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceId interface{} + + httpRes, err := apiClient.VersionsApi.GETPriceIdVersions(context.Background(), priceId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETPriceListIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceListId interface{} + + httpRes, err := apiClient.VersionsApi.GETPriceListIdVersions(context.Background(), priceListId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETPriceListSchedulerIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceListSchedulerId interface{} + + httpRes, err := apiClient.VersionsApi.GETPriceListSchedulerIdVersions(context.Background(), priceListSchedulerId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETPriceTierIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceTierId interface{} + + httpRes, err := apiClient.VersionsApi.GETPriceTierIdVersions(context.Background(), priceTierId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETPriceVolumeTierIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var priceVolumeTierId interface{} + + httpRes, err := apiClient.VersionsApi.GETPriceVolumeTierIdVersions(context.Background(), priceVolumeTierId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETPromotionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var promotionId interface{} + + httpRes, err := apiClient.VersionsApi.GETPromotionIdVersions(context.Background(), promotionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETPromotionRuleIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var promotionRuleId interface{} + + httpRes, err := apiClient.VersionsApi.GETPromotionRuleIdVersions(context.Background(), promotionRuleId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETRefundIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var refundId interface{} + + httpRes, err := apiClient.VersionsApi.GETRefundIdVersions(context.Background(), refundId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETReservedStockIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var reservedStockId interface{} + + httpRes, err := apiClient.VersionsApi.GETReservedStockIdVersions(context.Background(), reservedStockId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETReturnIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var returnId interface{} + + httpRes, err := apiClient.VersionsApi.GETReturnIdVersions(context.Background(), returnId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETSatispayGatewayIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var satispayGatewayId interface{} + + httpRes, err := apiClient.VersionsApi.GETSatispayGatewayIdVersions(context.Background(), satispayGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETSatispayPaymentIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var satispayPaymentId interface{} + + httpRes, err := apiClient.VersionsApi.GETSatispayPaymentIdVersions(context.Background(), satispayPaymentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETShipmentIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var shipmentId interface{} + + httpRes, err := apiClient.VersionsApi.GETShipmentIdVersions(context.Background(), shipmentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETShippingCategoryIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var shippingCategoryId interface{} + + httpRes, err := apiClient.VersionsApi.GETShippingCategoryIdVersions(context.Background(), shippingCategoryId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETShippingMethodIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var shippingMethodId interface{} + + httpRes, err := apiClient.VersionsApi.GETShippingMethodIdVersions(context.Background(), shippingMethodId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETShippingMethodTierIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var shippingMethodTierId interface{} + + httpRes, err := apiClient.VersionsApi.GETShippingMethodTierIdVersions(context.Background(), shippingMethodTierId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETShippingWeightTierIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var shippingWeightTierId interface{} + + httpRes, err := apiClient.VersionsApi.GETShippingWeightTierIdVersions(context.Background(), shippingWeightTierId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETShippingZoneIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var shippingZoneId interface{} + + httpRes, err := apiClient.VersionsApi.GETShippingZoneIdVersions(context.Background(), shippingZoneId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETSkuIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var skuId interface{} + + httpRes, err := apiClient.VersionsApi.GETSkuIdVersions(context.Background(), skuId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETSkuListIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var skuListId interface{} + + httpRes, err := apiClient.VersionsApi.GETSkuListIdVersions(context.Background(), skuListId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETSkuListItemIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var skuListItemId interface{} + + httpRes, err := apiClient.VersionsApi.GETSkuListItemIdVersions(context.Background(), skuListItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETSkuListPromotionRuleIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var skuListPromotionRuleId interface{} + + httpRes, err := apiClient.VersionsApi.GETSkuListPromotionRuleIdVersions(context.Background(), skuListPromotionRuleId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETSkuOptionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var skuOptionId interface{} + + httpRes, err := apiClient.VersionsApi.GETSkuOptionIdVersions(context.Background(), skuOptionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETStockItemIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockItemId interface{} + + httpRes, err := apiClient.VersionsApi.GETStockItemIdVersions(context.Background(), stockItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETStockLineItemIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockLineItemId interface{} + + httpRes, err := apiClient.VersionsApi.GETStockLineItemIdVersions(context.Background(), stockLineItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETStockLocationIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockLocationId interface{} + + httpRes, err := apiClient.VersionsApi.GETStockLocationIdVersions(context.Background(), stockLocationId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETStockTransferIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stockTransferId interface{} + + httpRes, err := apiClient.VersionsApi.GETStockTransferIdVersions(context.Background(), stockTransferId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETStripeGatewayIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stripeGatewayId interface{} + + httpRes, err := apiClient.VersionsApi.GETStripeGatewayIdVersions(context.Background(), stripeGatewayId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETStripePaymentIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var stripePaymentId interface{} + + httpRes, err := apiClient.VersionsApi.GETStripePaymentIdVersions(context.Background(), stripePaymentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETTaxCalculatorIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var taxCalculatorId interface{} + + httpRes, err := apiClient.VersionsApi.GETTaxCalculatorIdVersions(context.Background(), taxCalculatorId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETTaxCategoryIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var taxCategoryId interface{} + + httpRes, err := apiClient.VersionsApi.GETTaxCategoryIdVersions(context.Background(), taxCategoryId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETTaxRuleIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var taxRuleId interface{} + + httpRes, err := apiClient.VersionsApi.GETTaxRuleIdVersions(context.Background(), taxRuleId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETTaxjarAccountIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var taxjarAccountId interface{} + + httpRes, err := apiClient.VersionsApi.GETTaxjarAccountIdVersions(context.Background(), taxjarAccountId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETTransactionIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var transactionId interface{} + + httpRes, err := apiClient.VersionsApi.GETTransactionIdVersions(context.Background(), transactionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.VersionsApi.GETVersions(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETVersionsVersionId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var versionId interface{} + + resp, httpRes, err := apiClient.VersionsApi.GETVersionsVersionId(context.Background(), versionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETVoidIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var voidId interface{} + + httpRes, err := apiClient.VersionsApi.GETVoidIdVersions(context.Background(), voidId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETWebhookIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var webhookId interface{} + + httpRes, err := apiClient.VersionsApi.GETWebhookIdVersions(context.Background(), webhookId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test VersionsApiService GETWireTransferIdVersions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var wireTransferId interface{} + + httpRes, err := apiClient.VersionsApi.GETWireTransferIdVersions(context.Background(), wireTransferId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/api/test/api_voids_test.go b/api/test/api_voids_test.go index b0bf2b05..eab60d9f 100644 --- a/api/test/api_voids_test.go +++ b/api/test/api_voids_test.go @@ -74,4 +74,18 @@ func Test_api_VoidsApiService(t *testing.T) { }) + t.Run("Test VoidsApiService PATCHVoidsVoidId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var voidId interface{} + + resp, httpRes, err := apiClient.VoidsApi.PATCHVoidsVoidId(context.Background(), voidId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + } diff --git a/api/utils.go b/api/utils.go index 2a269a06..4c5e8827 100644 --- a/api/utils.go +++ b/api/utils.go @@ -3,7 +3,7 @@ Commerce Layer API Headless Commerce for Global Brands. -API version: 4.1.3 +API version: 7.3.1 Contact: support@commercelayer.io */ diff --git a/go.mod b/go.mod index d52d8a0a..fa9eef0a 100644 --- a/go.mod +++ b/go.mod @@ -1,13 +1,14 @@ module github.com/incentro-dc/go-commercelayer-sdk -go 1.18 +go 1.23 -require github.com/stretchr/testify v1.4.0 +require github.com/stretchr/testify v1.9.0 require ( - github.com/davecgh/go-spew v1.1.0 // indirect - github.com/kr/pretty v0.1.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/kr/pretty v0.3.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect - gopkg.in/yaml.v2 v2.2.2 // indirect + github.com/rogpeppe/go-internal v1.13.1 // indirect + gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 577061e4..28fa3a12 100644 --- a/go.sum +++ b/go.sum @@ -1,17 +1,23 @@ -github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= +github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=